@ws-ui/shared 1.11.11 → 1.11.12-rc2
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/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 +2 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-ds-change-renderer.d.ts +10 -0
- package/dist/hooks/use-ds-renderer.d.ts +7 -0
- package/dist/index.cjs.js +90 -90
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +8967 -8114
- package/dist/index.es.js.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/studio-context.d.ts +7 -0
- package/dist/shared.css +1 -1
- package/dist/types/explorer.d.ts +26 -0
- package/dist/types/index.d.ts +2 -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 +57 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/roles.d.ts +54 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
"use strict";var xO=Object.defineProperty;var uh=e=>{throw TypeError(e)};var SO=(e,t,r)=>t in e?xO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>SO(e,typeof t!="symbol"?t+"":t,r),vl=(e,t,r)=>t.has(e)||uh("Cannot "+r);var re=(e,t,r)=>(vl(e,t,"read from private field"),r?r.call(e):t.get(e)),xt=(e,t,r)=>t.has(e)?uh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,i)=>(vl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(vl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),W=require("react"),Do=require("react-dom"),et=require("@ws-ui/icons"),uc=require("@emotion/react"),EO=require("re-resizable");function Um(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 $=Um(W),_O=Um(Do),Bm=({children:e,container:t=document.body})=>Do.createPortal(e,t);var lh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},ch=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",sr="right",Lt="left",Mc="auto",No=[It,or,sr,Lt],vi="start",Ao="end",OO="clippingParents",Hm="viewport",Ui="popper",AO="reference",fh=No.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+Ao])},[]),qm=[].concat(No,[Mc]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+Ao])},[]),TO="beforeRead",RO="read",PO="afterRead",CO="beforeMain",kO="main",$O="afterMain",IO="beforeWrite",LO="write",MO="afterWrite",FO=[TO,RO,PO,CO,kO,$O,IO,LO,MO];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DO(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)||!Pr(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function NO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(f,v){return f[v]="",f},{});!ir(s)||!Pr(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const jO={name:"applyStyles",enabled:!0,phase:"write",fn:DO,effect:NO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,ga=Math.min,yi=Math.round;function lc(){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 Zm(){return!/^((?!chrome|android).)*safari/i.test(lc())}function bi(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&&yi(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&yi(i.height)/e.offsetHeight||1);var l=Wn(e)?Ht(e):window,c=l.visualViewport,f=!Zm()&&r,v=(i.left+(f&&c?c.offsetLeft:0))/s,m=(i.top+(f&&c?c.offsetTop:0))/a,g=i.width/s,p=i.height/a;return{width:g,height:p,top:m,right:v+g,bottom:m+p,left:v,x:v,y:m}}function Dc(e){var t=bi(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 Gm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gr(e){return Ht(e).getComputedStyle(e)}function zO(e){return["table","td","th"].indexOf(Pr(e))>=0}function mn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ka(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Fc(e)?e.host:null)||mn(e)}function dh(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function WO(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var s=ka(e);for(Fc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Pr(s))<0;){var a=Gr(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 jo(e){for(var t=Ht(e),r=dh(e);r&&zO(r)&&Gr(r).position==="static";)r=dh(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||WO(e)||t}function Nc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return jn(e,ga(t,r))}function UO(e,t,r){var i=xo(e,t,r);return i>r?r:i}function Km(){return{top:0,right:0,bottom:0,left:0}}function Vm(e){return Object.assign({},Km(),e)}function Ym(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var BO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vm(typeof t!="number"?t:Ym(t,No))};function HO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Nc(c),v=[Lt,sr].indexOf(c)>=0,m=v?"height":"width";if(!(!a||!l)){var g=BO(s.padding,r),p=Dc(a),b=f==="y"?It:Lt,x=f==="y"?or:sr,d=r.rects.reference[m]+r.rects.reference[f]-l[f]-r.rects.popper[m],w=l[f]-r.rects.reference[f],h=jo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=g[b],O=S-p[m]-g[x],k=S/2-p[m]/2+E,U=xo(R,k,O),F=f;r.modifiersData[i]=(t={},t[F]=U,t.centerOffset=U-k,t)}}function qO(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)||Gm(t.elements.popper,s)&&(t.elements.arrow=s))}const ZO={name:"arrow",enabled:!0,phase:"main",fn:HO,effect:qO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var GO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:yi(r*s)/s||0,y:yi(i*s)/s||0}}function ph(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,g=e.isFixed,p=l.x,b=p===void 0?0:p,x=l.y,d=x===void 0?0:x,w=typeof m=="function"?m({x:b,y:d}):{x:b,y:d};b=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Lt,R=It,O=window;if(v){var k=jo(r),U="clientHeight",F="clientWidth";if(k===Ht(r)&&(k=mn(r),Gr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",F="scrollWidth")),k=k,s===It||(s===Lt||s===sr)&&a===Ao){R=or;var D=g&&k===O&&O.visualViewport?O.visualViewport.height:k[U];d-=D-i.height,d*=f?1:-1}if(s===Lt||(s===It||s===or)&&a===Ao){E=sr;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[F];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},v&&GO),L=m===!0?KO({x:b,y:d},Ht(r)):{x:b,y:d};if(b=L.x,d=L.y,f){var B;return Object.assign({},j,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+d+"px)":"translate3d("+b+"px, "+d+"px, 0)",B))}return Object.assign({},j,(t={},t[R]=S?d+"px":"",t[E]=h?b+"px":"",t.transform="",t))}function VO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,v={placement:Tr(t.placement),variation:wi(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,ph(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ph(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const YO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VO,data:{}};var Ds={passive:!0};function XO(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&v.forEach(function(m){m.addEventListener("scroll",r.update,Ds)}),c&&f.addEventListener("resize",r.update,Ds),function(){a&&v.forEach(function(m){m.removeEventListener("scroll",r.update,Ds)}),c&&f.removeEventListener("resize",r.update,Ds)}}const JO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:XO,data:{}};var QO={left:"right",right:"left",bottom:"top",top:"bottom"};function oa(e){return e.replace(/left|right|bottom|top/g,function(t){return QO[t]})}var eA={start:"end",end:"start"};function hh(e){return e.replace(/start|end/g,function(t){return eA[t]})}function jc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function zc(e){return bi(mn(e)).left+jc(e).scrollLeft}function tA(e,t){var r=Ht(e),i=mn(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;var v=Zm();(v||!v&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:c+zc(e),y:f}}function rA(e){var t,r=mn(e),i=jc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=jn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+zc(e),f=-i.scrollTop;return Gr(s||r).direction==="rtl"&&(c+=jn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:f}}function Wc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function Xm(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&Wc(e)?e:Xm(ka(e))}function So(e,t){var r;t===void 0&&(t=[]);var i=Xm(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Ht(i),l=s?[a].concat(a.visualViewport||[],Wc(i)?i:[]):i,c=t.concat(l);return s?c:c.concat(So(ka(l)))}function cc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nA(e,t){var r=bi(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===Hm?cc(tA(e,r)):Wn(t)?nA(t,r):cc(rA(mn(e)))}function iA(e){var t=So(ka(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?jo(e):e;return Wn(i)?t.filter(function(s){return Wn(s)&&Gm(s,i)&&Pr(s)!=="body"}):[]}function oA(e,t,r,i){var s=t==="clippingParents"?iA(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(f,v){var m=gh(e,v,i);return f.top=jn(m.top,f.top),f.right=ga(m.right,f.right),f.bottom=ga(m.bottom,f.bottom),f.left=jn(m.left,f.left),f},gh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Jm(e){var t=e.reference,r=e.element,i=e.placement,s=i?Tr(i):null,a=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Lt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var v=s?Nc(s):null;if(v!=null){var m=v==="y"?"height":"width";switch(a){case vi:f[v]=f[v]-(t[m]/2-r[m]/2);break;case Ao:f[v]=f[v]+(t[m]/2-r[m]/2);break}}return f}function To(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?OO:c,v=r.rootBoundary,m=v===void 0?Hm:v,g=r.elementContext,p=g===void 0?Ui:g,b=r.altBoundary,x=b===void 0?!1:b,d=r.padding,w=d===void 0?0:d,h=Vm(typeof w!="number"?w:Ym(w,No)),S=p===Ui?AO:Ui,E=e.rects.popper,R=e.elements[x?S:p],O=oA(Wn(R)?R:R.contextElement||mn(e.elements.popper),f,m,l),k=bi(e.elements.reference),U=Jm({reference:k,element:E,placement:s}),F=cc(Object.assign({},E,U)),D=p===Ui?F:k,G={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},j=e.modifiersData.offset;if(p===Ui&&j){var L=j[s];Object.keys(G).forEach(function(B){var q=[sr,or].indexOf(B)>=0?1:-1,C=[It,or].indexOf(B)>=0?"y":"x";G[B]+=L[C]*q})}return G}function sA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,v=f===void 0?qm:f,m=wi(i),g=m?c?fh:fh.filter(function(x){return wi(x)===m}):No,p=g.filter(function(x){return v.indexOf(x)>=0});p.length===0&&(p=g);var b=p.reduce(function(x,d){return x[d]=To(e,{placement:d,boundary:s,rootBoundary:a,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function aA(e){if(Tr(e)===Mc)return[];var t=oa(e);return[hh(e),t,hh(t)]}function uA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!0:l,f=r.fallbackPlacements,v=r.padding,m=r.boundary,g=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,d=r.allowedAutoPlacements,w=t.options.placement,h=Tr(w),S=h===w,E=f||(S||!x?[oa(w)]:aA(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Mc?sA(t,{placement:ce,boundary:m,rootBoundary:g,padding:v,flipVariations:x,allowedAutoPlacements:d}):ce)},[]),O=t.rects.reference,k=t.rects.popper,U=new Map,F=!0,D=R[0],G=0;G<R.length;G++){var j=R[G],L=Tr(j),B=wi(j)===vi,q=[It,or].indexOf(L)>=0,C=q?"width":"height",J=To(t,{placement:j,boundary:m,rootBoundary:g,altBoundary:p,padding:v}),Y=q?B?sr:Lt:B?or:It;O[C]>k[C]&&(Y=oa(Y));var te=oa(Y),de=[];if(a&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){D=j,F=!1;break}U.set(j,de)}if(F)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var me=U.get(ye);if(me)return me.slice(0,ce).every(function(Ee){return Ee})});if(fe)return D=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const lA={name:"flip",enabled:!0,phase:"main",fn:uA,requiresIfExists:["offset"],data:{_skip:!1}};function mh(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[It,sr,or,Lt].some(function(t){return e[t]>=0})}function cA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=To(t,{elementContext:"reference"}),c=To(t,{altBoundary:!0}),f=mh(l,i),v=mh(c,s,a),m=vh(f),g=vh(v);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:v,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const fA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cA};function dA(e,t,r){var i=Tr(e),s=[Lt,It].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[Lt,sr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function pA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=qm.reduce(function(m,g){return m[g]=dA(g,t.rects,a),m},{}),c=l[t.placement],f=c.x,v=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=l}const hA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pA};function gA(e){var t=e.state,r=e.name;t.modifiersData[r]=Jm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mA={name:"popperOffsets",enabled:!0,phase:"read",fn:gA,data:{}};function vA(e){return e==="x"?"y":"x"}function yA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,g=r.padding,p=r.tether,b=p===void 0?!0:p,x=r.tetherOffset,d=x===void 0?0:x,w=To(t,{boundary:f,rootBoundary:v,padding:g,altBoundary:m}),h=Tr(t.placement),S=wi(t.placement),E=!S,R=Nc(h),O=vA(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,F=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(a){var B,q=R==="y"?It:Lt,C=R==="y"?or:sr,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=b?-F[J]/2:0,Q=S===vi?U[J]:F[J],se=S===vi?-F[J]:-U[J],ue=t.elements.arrow,ne=b&&ue?Dc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Km(),fe=ce[q],ye=ce[C],me=xo(0,U[J],ne[J]),Ee=E?U[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Ae=E?-U[J]/2+Z+me+ye+G.mainAxis:se+me+ye+G.mainAxis,Ze=t.elements.arrow&&jo(t.elements.arrow),ie=Ze?R==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,vt=(B=j==null?void 0:j[R])!=null?B:0,lt=Y+Ee-vt-ie,mr=Y+Ae-vt,Zo=xo(b?ga(te,lt):te,Y,b?jn(de,mr):de);k[R]=Zo,L[R]=Zo-Y}if(c){var Gt,Go=R==="x"?It:Lt,Va=R==="x"?or:sr,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Go],wn=Mt-w[Va],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Ko=Ai?Kr:Mt-U[yt]-F[yt]-Vr+G.altAxis,Yr=Ai?Mt+U[yt]+F[yt]-Vr-G.altAxis:wn,$r=b&&Ai?UO(Ko,Mt,Yr):xo(b?Ko:Kr,Mt,b?Yr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const bA={name:"preventOverflow",enabled:!0,phase:"main",fn:yA,requiresIfExists:["offset"]};function wA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xA(e){return e===Ht(e)||!ir(e)?jc(e):wA(e)}function SA(e){var t=e.getBoundingClientRect(),r=yi(t.width)/e.offsetWidth||1,i=yi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function EA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&SA(t),a=mn(t),l=bi(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||Wc(a))&&(c=xA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=zc(a))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function _A(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function OA(e){var t=_A(e);return FO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function AA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function TA(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 yh={placement:"bottom",modifiers:[],strategy:"absolute"};function bh(){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 RA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?yh:s;return function(c,f,v){v===void 0&&(v=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},g=[],p=!1,b={state:m,setOptions:function(h){var S=typeof h=="function"?h(m.options):h;d(),m.options=Object.assign({},a,m.options,S),m.scrollParents={reference:Wn(c)?So(c):c.contextElement?So(c.contextElement):[],popper:So(f)};var E=OA(TA([].concat(i,m.options.modifiers)));return m.orderedModifiers=E.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!p){var h=m.elements,S=h.reference,E=h.popper;if(bh(S,E)){m.rects={reference:EA(S,jo(E),m.options.strategy==="fixed"),popper:Dc(E)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(G){return m.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var O=m.orderedModifiers[R],k=O.fn,U=O.options,F=U===void 0?{}:U,D=O.name;typeof k=="function"&&(m=k({state:m,options:F,name:D,instance:b})||m)}}}},update:AA(function(){return new Promise(function(w){b.forceUpdate(),w(m)})}),destroy:function(){d(),p=!0}};if(!bh(c,f))return b;b.setOptions(v).then(function(w){!p&&v.onFirstUpdate&&v.onFirstUpdate(w)});function x(){m.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:m,name:h,instance:b,options:E}),k=function(){};g.push(O||k)}})}function d(){g.forEach(function(w){return w()}),g=[]}return b}}var PA=[JO,mA,YO,jO,hA,lA,bA,ZO,fA],CA=RA({defaultModifiers:PA}),Ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yl,wh;function kA(){if(wh)return yl;wh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,f,v;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!s(a[f],l[f]))return!1;return!0}var m;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;for(m=a.entries();!(f=m.next()).done;)if(!s(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(a[f]!==l[f])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(v=Object.keys(a),c=v.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,v[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((v[f]==="_owner"||v[f]==="__v"||v[f]==="__o")&&a.$$typeof)&&!s(a[v[f]],l[v[f]]))return!1;return!0}return a!==a&&l!==l}return yl=function(l,c){try{return s(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},yl}var $A=kA();const IA=Qm($A);var LA=[],ev=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||LA},l=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],v=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,d=Object.keys(x.elements);_O.flushSync(function(){f({styles:lh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:lh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),m=$.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[v,{name:"applyStyles",enabled:!1}])};return IA(s.current,p)?s.current||p:(s.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,v]),g=$.useRef();return ch(function(){g.current&&g.current.setOptions(m)},[m]),ch(function(){if(!(t==null||r==null)){var p=i.createPopper||CA,b=p(t,r,m);return g.current=b,function(){b.destroy(),g.current=null}}},[t,r,i.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const tv=e=>M.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=W.forwardRef(({children:e,style:t,attributes:r},i)=>M.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})),MA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:f}=ev(e,a,{placement:t||"bottom-start"}),v=W.useCallback(()=>{s&&s()},[s]);return r?M.jsxs(Bm,{children:[M.jsx(tv,{onClick:()=>v()}),M.jsx(rv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var bl={exports:{}};/*!
|
|
1
|
+
"use strict";var UT=Object.defineProperty;var wh=e=>{throw TypeError(e)};var WT=(e,t,r)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>WT(e,typeof t!="symbol"?t+"":t,r),Ol=(e,t,r)=>t.has(e)||wh("Cannot "+r);var re=(e,t,r)=>(Ol(e,t,"read from private field"),r?r.call(e):t.get(e)),Et=(e,t,r)=>t.has(e)?wh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),rt=(e,t,r,i)=>(Ol(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(Ol(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),z=require("react"),Pi=require("react-dom"),Ke=require("@ws-ui/icons"),vc=require("@emotion/react"),HT=require("re-resizable");function rv(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 I=rv(z),qT=rv(Pi),nv=({children:e,container:t=document.body})=>Pi.createPortal(e,t);var xh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},Sh=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Mt="top",ar="bottom",ur="right",Dt="left",Hc="auto",Wo=[Mt,ar,ur,Dt],Si="start",Io="end",ZT="clippingParents",iv="viewport",Vi="popper",GT="reference",Eh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Io])},[]),ov=[].concat(Wo,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Io])},[]),VT="beforeRead",KT="read",YT="afterRead",XT="beforeMain",JT="main",QT="afterMain",eO="beforeWrite",tO="write",rO="afterWrite",nO=[VT,KT,YT,XT,JT,QT,eO,tO,rO];function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Zt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Zt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Zt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Zt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iO(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)||!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 oO(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},{});!sr(s)||!Ir(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const sO={name:"applyStyles",enabled:!0,phase:"write",fn:iO,effect:oO,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Wn=Math.max,wa=Math.min,Ei=Math.round;function yc(){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 sv(){return!/^((?!chrome|android).)*safari/i.test(yc())}function _i(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&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var u=qn(e)?Zt(e):window,c=u.visualViewport,f=!sv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,g=(i.top+(f&&c?c.offsetTop:0))/a,h=i.width/s,d=i.height/a;return{width:h,height:d,top:g,right:m+h,bottom:g+d,left:m,x:m,y:g}}function Zc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function av(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Zt(e).getComputedStyle(e)}function aO(e){return["table","td","th"].indexOf(Ir(e))>=0}function wn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fa(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||wn(e)}function _h(e){return!sr(e)||Yr(e).position==="fixed"?null:e.offsetParent}function uO(e){var t=/firefox/i.test(yc()),r=/Trident/i.test(yc());if(r&&sr(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=Fa(e);for(qc(s)&&(s=s.host);sr(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 Ho(e){for(var t=Zt(e),r=_h(e);r&&aO(r)&&Yr(r).position==="static";)r=_h(r);return r&&(Ir(r)==="html"||Ir(r)==="body"&&Yr(r).position==="static")?t:r||uO(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ao(e,t,r){return Wn(e,wa(t,r))}function lO(e,t,r){var i=Ao(e,t,r);return i>r?r:i}function uv(){return{top:0,right:0,bottom:0,left:0}}function lv(e){return Object.assign({},uv(),e)}function cv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var cO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,lv(typeof t!="number"?t:cv(t,Wo))};function fO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=Cr(r.placement),f=Gc(c),m=[Dt,ur].indexOf(c)>=0,g=m?"height":"width";if(!(!a||!u)){var h=cO(s.padding,r),d=Zc(a),y=f==="y"?Mt:Dt,x=f==="y"?ar:ur,p=r.rects.reference[g]+r.rects.reference[f]-u[f]-r.rects.popper[g],w=u[f]-r.rects.reference[f],v=Ho(a),S=v?f==="y"?v.clientHeight||0:v.clientWidth||0:0,E=p/2-w/2,R=h[y],T=S-d[g]-h[x],k=S/2-d[g]/2+E,U=Ao(R,k,T),D=f;r.modifiersData[i]=(t={},t[D]=U,t.centerOffset=U-k,t)}}function dO(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)||av(t.elements.popper,s)&&(t.elements.arrow=s))}const pO={name:"arrow",enabled:!0,phase:"main",fn:fO,effect:dO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ti(e){return e.split("-")[1]}var hO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gO(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 Th(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,g=e.roundOffsets,h=e.isFixed,d=u.x,y=d===void 0?0:d,x=u.y,p=x===void 0?0:x,w=typeof g=="function"?g({x:y,y:p}):{x:y,y:p};y=w.x,p=w.y;var v=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Dt,R=Mt,T=window;if(m){var k=Ho(r),U="clientHeight",D="clientWidth";if(k===Zt(r)&&(k=wn(r),Yr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",D="scrollWidth")),k=k,s===Mt||(s===Dt||s===ur)&&a===Io){R=ar;var N=h&&k===T&&T.visualViewport?T.visualViewport.height:k[U];p-=N-i.height,p*=f?1:-1}if(s===Dt||(s===Mt||s===ar)&&a===Io){E=ur;var G=h&&k===T&&T.visualViewport?T.visualViewport.width:k[D];y-=G-i.width,y*=f?1:-1}}var j=Object.assign({position:c},m&&hO),M=g===!0?gO({x:y,y:p},Zt(r)):{x:y,y:p};if(y=M.x,p=M.y,f){var W;return Object.assign({},j,(W={},W[R]=S?"0":"",W[E]=v?"0":"",W.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+p+"px)":"translate3d("+y+"px, "+p+"px, 0)",W))}return Object.assign({},j,(t={},t[R]=S?p+"px":"",t[E]=v?y+"px":"",t.transform="",t))}function mO(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:Cr(t.placement),variation:Ti(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,Th(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,Th(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 vO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mO,data:{}};var Us={passive:!0};function yO(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=Zt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(g){g.addEventListener("scroll",r.update,Us)}),c&&f.addEventListener("resize",r.update,Us),function(){a&&m.forEach(function(g){g.removeEventListener("scroll",r.update,Us)}),c&&f.removeEventListener("resize",r.update,Us)}}const bO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yO,data:{}};var wO={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(e){return e.replace(/left|right|bottom|top/g,function(t){return wO[t]})}var xO={start:"end",end:"start"};function Oh(e){return e.replace(/start|end/g,function(t){return xO[t]})}function Vc(e){var t=Zt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Kc(e){return _i(wn(e)).left+Vc(e).scrollLeft}function SO(e,t){var r=Zt(e),i=wn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var m=sv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Kc(e),y:f}}function EO(e){var t,r=wn(e),i=Vc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Wn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Wn(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+=Wn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Yc(e){var t=Yr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function fv(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:sr(e)&&Yc(e)?e:fv(Fa(e))}function Ro(e,t){var r;t===void 0&&(t=[]);var i=fv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Zt(i),u=s?[a].concat(a.visualViewport||[],Yc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ro(Fa(u)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _O(e,t){var r=_i(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ah(e,t,r){return t===iv?bc(SO(e,r)):qn(t)?_O(t,r):bc(EO(wn(e)))}function TO(e){var t=Ro(Fa(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&sr(e)?Ho(e):e;return qn(i)?t.filter(function(s){return qn(s)&&av(s,i)&&Ir(s)!=="body"}):[]}function OO(e,t,r,i){var s=t==="clippingParents"?TO(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,m){var g=Ah(e,m,i);return f.top=Wn(g.top,f.top),f.right=wa(g.right,f.right),f.bottom=wa(g.bottom,f.bottom),f.left=Wn(g.left,f.left),f},Ah(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 dv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cr(i):null,a=i?Ti(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 ar:f={x:u,y:t.y+t.height};break;case ur:f={x:t.x+t.width,y:c};break;case Dt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Gc(s):null;if(m!=null){var g=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[g]/2-r[g]/2);break;case Io:f[m]=f[m]+(t[g]/2-r[g]/2);break}}return f}function $o(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?ZT:c,m=r.rootBoundary,g=m===void 0?iv:m,h=r.elementContext,d=h===void 0?Vi:h,y=r.altBoundary,x=y===void 0?!1:y,p=r.padding,w=p===void 0?0:p,v=lv(typeof w!="number"?w:cv(w,Wo)),S=d===Vi?GT:Vi,E=e.rects.popper,R=e.elements[x?S:d],T=OO(qn(R)?R:R.contextElement||wn(e.elements.popper),f,g,u),k=_i(e.elements.reference),U=dv({reference:k,element:E,placement:s}),D=bc(Object.assign({},E,U)),N=d===Vi?D:k,G={top:T.top-N.top+v.top,bottom:N.bottom-T.bottom+v.bottom,left:T.left-N.left+v.left,right:N.right-T.right+v.right},j=e.modifiersData.offset;if(d===Vi&&j){var M=j[s];Object.keys(G).forEach(function(W){var q=[ur,ar].indexOf(W)>=0?1:-1,C=[Mt,ar].indexOf(W)>=0?"y":"x";G[W]+=M[C]*q})}return G}function AO(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?ov:f,g=Ti(i),h=g?c?Eh:Eh.filter(function(x){return Ti(x)===g}):Wo,d=h.filter(function(x){return m.indexOf(x)>=0});d.length===0&&(d=h);var y=d.reduce(function(x,p){return x[p]=$o(e,{placement:p,boundary:s,rootBoundary:a,padding:u})[Cr(p)],x},{});return Object.keys(y).sort(function(x,p){return y[x]-y[p]})}function RO(e){if(Cr(e)===Hc)return[];var t=ca(e);return[Oh(e),t,Oh(t)]}function PO(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,g=r.boundary,h=r.rootBoundary,d=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,p=r.allowedAutoPlacements,w=t.options.placement,v=Cr(w),S=v===w,E=f||(S||!x?[ca(w)]:RO(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Cr(ce)===Hc?AO(t,{placement:ce,boundary:g,rootBoundary:h,padding:m,flipVariations:x,allowedAutoPlacements:p}):ce)},[]),T=t.rects.reference,k=t.rects.popper,U=new Map,D=!0,N=R[0],G=0;G<R.length;G++){var j=R[G],M=Cr(j),W=Ti(j)===Si,q=[Mt,ar].indexOf(M)>=0,C=q?"width":"height",J=$o(t,{placement:j,boundary:g,rootBoundary:h,altBoundary:d,padding:m}),Y=q?W?ur:Dt:W?ar:Mt;T[C]>k[C]&&(Y=ca(Y));var te=ca(Y),de=[];if(a&&de.push(J[M]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){N=j,D=!1;break}U.set(j,de)}if(D)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var me=U.get(ye);if(me)return me.slice(0,ce).every(function(Ee){return Ee})});if(fe)return N=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==N&&(t.modifiersData[i]._skip=!0,t.placement=N,t.reset=!0)}}const CO={name:"flip",enabled:!0,phase:"main",fn:PO,requiresIfExists:["offset"],data:{_skip:!1}};function Rh(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 Ph(e){return[Mt,ur,ar,Dt].some(function(t){return e[t]>=0})}function kO(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=$o(t,{elementContext:"reference"}),c=$o(t,{altBoundary:!0}),f=Rh(u,i),m=Rh(c,s,a),g=Ph(f),h=Ph(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:g,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":h})}const IO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kO};function $O(e,t,r){var i=Cr(e),s=[Dt,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,[Dt,ur].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function LO(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(g,h){return g[h]=$O(h,t.rects,a),g},{}),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 MO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LO};function DO(e){var t=e.state,r=e.name;t.modifiersData[r]=dv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const NO={name:"popperOffsets",enabled:!0,phase:"read",fn:DO,data:{}};function FO(e){return e==="x"?"y":"x"}function jO(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,g=r.altBoundary,h=r.padding,d=r.tether,y=d===void 0?!0:d,x=r.tetherOffset,p=x===void 0?0:x,w=$o(t,{boundary:f,rootBoundary:m,padding:h,altBoundary:g}),v=Cr(t.placement),S=Ti(t.placement),E=!S,R=Gc(v),T=FO(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,D=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,G=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(a){var W,q=R==="y"?Mt:Dt,C=R==="y"?ar:ur,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=y?-D[J]/2:0,Q=S===Si?U[J]:D[J],se=S===Si?-D[J]:-U[J],ue=t.elements.arrow,ne=y&&ue?Zc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uv(),fe=ce[q],ye=ce[C],me=Ao(0,U[J],ne[J]),Ee=E?U[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Oe=E?-U[J]/2+Z+me+ye+G.mainAxis:se+me+ye+G.mainAxis,Ye=t.elements.arrow&&Ho(t.elements.arrow),ie=Ye?R==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,bt=(W=j==null?void 0:j[R])!=null?W:0,ft=Y+Ee-bt-ie,br=Y+Oe-bt,Xo=Ao(y?wa(te,ft):te,Y,y?Wn(de,br):de);k[R]=Xo,M[R]=Xo-Y}if(c){var Kt,Jo=R==="x"?Mt:Dt,iu=R==="x"?ar:ur,Nt=k[T],wt=T==="y"?"height":"width",Jr=Nt+w[Jo],_n=Nt-w[iu],Ii=[Mt,Dt].indexOf(v)!==-1,Qr=(Kt=j==null?void 0:j[T])!=null?Kt:0,Qo=Ii?Jr:Nt-U[wt]-D[wt]-Qr+G.altAxis,en=Ii?Nt+U[wt]+D[wt]-Qr-G.altAxis:_n,Mr=y&&Ii?lO(Qo,Nt,en):Ao(y?Qo:Jr,Nt,y?en:_n);k[T]=Mr,M[T]=Mr-Nt}t.modifiersData[i]=M}}const zO={name:"preventOverflow",enabled:!0,phase:"main",fn:jO,requiresIfExists:["offset"]};function BO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UO(e){return e===Zt(e)||!sr(e)?Vc(e):BO(e)}function WO(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 HO(e,t,r){r===void 0&&(r=!1);var i=sr(t),s=sr(t)&&WO(t),a=wn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Ir(t)!=="body"||Yc(a))&&(c=UO(t)),sr(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 qO(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 ZO(e){var t=qO(e);return nO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function GO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function VO(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 Ch={placement:"bottom",modifiers:[],strategy:"absolute"};function kh(){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 KO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ch:s;return function(c,f,m){m===void 0&&(m=a);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ch,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},h=[],d=!1,y={state:g,setOptions:function(v){var S=typeof v=="function"?v(g.options):v;p(),g.options=Object.assign({},a,g.options,S),g.scrollParents={reference:qn(c)?Ro(c):c.contextElement?Ro(c.contextElement):[],popper:Ro(f)};var E=ZO(VO([].concat(i,g.options.modifiers)));return g.orderedModifiers=E.filter(function(R){return R.enabled}),x(),y.update()},forceUpdate:function(){if(!d){var v=g.elements,S=v.reference,E=v.popper;if(kh(S,E)){g.rects={reference:HO(S,Ho(E),g.options.strategy==="fixed"),popper:Zc(E)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(G){return g.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<g.orderedModifiers.length;R++){if(g.reset===!0){g.reset=!1,R=-1;continue}var T=g.orderedModifiers[R],k=T.fn,U=T.options,D=U===void 0?{}:U,N=T.name;typeof k=="function"&&(g=k({state:g,options:D,name:N,instance:y})||g)}}}},update:GO(function(){return new Promise(function(w){y.forceUpdate(),w(g)})}),destroy:function(){p(),d=!0}};if(!kh(c,f))return y;y.setOptions(m).then(function(w){!d&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){g.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:g,name:v,instance:y,options:E}),k=function(){};h.push(T||k)}})}function p(){h.forEach(function(w){return w()}),h=[]}return y}}var YO=[bO,NO,vO,sO,MO,CO,zO,pO,IO],XO=KO({defaultModifiers:YO}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al,Ih;function JO(){if(Ih)return Al;Ih=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 g;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(g=a.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;for(g=a.entries();!(f=g.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(g=a.entries();!(f=g.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 Al=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}},Al}var QO=JO();const eA=pv(QO);var tA=[],Xc=function(t,r,i){i===void 0&&(i={});var s=I.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||tA},u=I.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],m=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,p=Object.keys(x.elements);qT.flushSync(function(){f({styles:xh(p.map(function(w){return[w,x.styles[w]||{}]})),attributes:xh(p.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),g=I.useMemo(function(){var d={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return eA(s.current,d)?s.current||d:(s.current=d,d)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),h=I.useRef();return Sh(function(){h.current&&h.current.setOptions(g)},[g]),Sh(function(){if(!(t==null||r==null)){var d=i.createPopper||XO,y=d(t,r,g);return h.current=y,function(){y.destroy(),h.current=null}}},[t,r,i.createPopper]),{state:h.current?h.current.state:null,styles:c.styles,attributes:c.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const hv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),gv=z.forwardRef(({children:e,style:t,attributes:r},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})),rA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=z.useState(null),{styles:c,attributes:f}=Xc(e,a,{placement:t||"bottom-start"}),m=z.useCallback(()=>{s&&s()},[s]);return r?$.jsxs(nv,{children:[$.jsx(hv,{onClick:()=>m()}),$.jsx(gv,{ref:u,style:c.popper,attributes:f.popper,children:i})]}):null};var Rl={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 $h;function mv(){return $h||($h=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var c in a)t.call(a,c)&&a[c]&&(u=s(u,c));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Rl)),Rl.exports}var nA=mv();const je=pv(nA);function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jn.apply(this,arguments)}const iA=["children","options"],Lh=["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"}),Mh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},oA=["style","script","pre"],sA=["src","href","data","formAction","srcDoc","action"],aA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,uA=/\n{2,}$/,Dh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,lA=/^ *> ?/gm,cA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,fA=/^ {2,}\n/,dA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Nh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Fh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,hA=/^(?:\n *)*\n/,gA=/\r\n?/g,mA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,vA=/^\[\^([^\]]+)]/,yA=/\f/g,bA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wA=/^\s*?\[(x|\s)\]/,jh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Bh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Pl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,xA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Uh=/^<!--[\s\S]*?(?:-->)/,SA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Cl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,EA=/^\{.*\}$/,_A=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,TA=/^<([^ >]+[:@\/][^ >]+)>/,OA=/-([a-z])?/gi,Wh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,AA=/^[^\n]+(?: \n|\n{2,})/,RA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,PA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,CA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,IA=/\t/g,$A=/(^ *\||\| *$)/g,LA=/^ *:-+: *$/,MA=/^ *:-+ *$/,DA=/^ *-+: *$/,ja=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,za="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",NA=RegExp(`^([*_])\\1${ja(1)}${za}\\1\\1(?!\\1)`),FA=RegExp(`^([*_])${ja(0)}${za}\\1(?!\\1)`),jA=RegExp(`^(==)${ja(0)}${za}\\1`),zA=RegExp(`^(~~)${ja(0)}${za}\\1`),BA=/^(:[a-zA-Z0-9-_]+:)/,UA=/^\\([^0-9A-Za-z\s])/,WA=/\\([^0-9A-Za-z\s])/g,HA=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,qA=/^\n+/,ZA=/^([ \t]*)/,GA=/(?:^|\n)( *)$/,Jc="(?:\\d+\\.)",Qc="(?:[*+-])";function vv(e){return"( *)("+(e===1?Jc:Qc)+") +"}const yv=vv(1),bv=vv(2);function wv(e){return RegExp("^"+(e===1?yv:bv))}const VA=wv(1),KA=wv(2);function xv(e){return RegExp("^"+(e===1?yv:bv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Jc:Qc)+" )[^\\n]*)*(\\n|$)","gm")}const YA=xv(1),XA=xv(2);function Sv(e){const t=e===1?Jc:Qc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ev=Sv(1),_v=Sv(2);function Hh(e,t){const r=t===1,i=r?Ev:_v,s=r?YA:XA,a=r?VA:KA;return{t:u=>a.test(u),o:Oi(function(u,c){const f=GA.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,c,f){const m=r?+u[2]:void 0,g=u[0].replace(uA,`
|
|
6
|
+
`).match(s);let h=!1;return{items:g.map(function(d,y){const x=a.exec(d)[0].length,p=RegExp("^ {1,"+x+"}","gm"),w=d.replace(p,"").replace(a,""),v=y===g.length-1,S=w.indexOf(`
|
|
7
7
|
|
|
8
|
-
`)!==-1||h
|
|
8
|
+
`)!==-1||v&&h;h=S;const E=f.inline,R=f.list;let T;f.list=!0,S?(f.inline=!1,T=Po(w)+`
|
|
9
9
|
|
|
10
|
-
`):(f.inline=!0,
|
|
11
|
-
`).map(function(
|
|
10
|
+
`):(f.inline=!0,T=Po(w));const k=c(T,f);return f.inline=E,f.list=R,k}),ordered:r,start:m}},l:(u,c,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(m,g){return e("li",{key:g},c(m,f))}))}}const JA=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),QA=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function qh(e){return typeof e=="string"}function Po(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function fa(e,t){return e.startsWith(t)}function eR(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(fa(e,r[i]))return!0;return!1}return r(e,t)}function Ki(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 tR(e){return DA.test(e)?"right":LA.test(e)?"center":MA.test(e)?"left":null}function Zh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function c(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,g)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==g.length-1&&a.push([]):u+=f}),c(),r.inTable=s,a}function rR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace($A,"").split("|").map(tR):[],s=e[3]?(function(u,c,f){return u.trim().split(`
|
|
11
|
+
`).map(function(m){return Zh(m,c,f,!0)})})(e[3],t,r):[],a=Zh(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 Gh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Oi(e){return e.inline=1,e}function Ln(e){return Oi(function(t,r){return r.inline?e.exec(t):null})}function fn(e){return Oi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function qr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Hs(e){return Oi(function(t){return e.exec(t)})}const nR=/(javascript|vbscript|data(?!:image)):/i;function iR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(nR.test(t))return null}catch{return null}return e}function Er(e){return e&&e.replace(WA,"$1")}function da(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 oR(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 sR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const kl=(e,t,r)=>({children:da(t,e[2],r)});function Il(){return{}}function $l(){return null}function aR(...e){return e.filter(Boolean).join(" ")}function Ll(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 uR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Mh,t.namedCodesToUnicode):Mh;const r=t.slugify||Ki,i=t.sanitizer||iR,s=t.createElement||I.createElement,a=[Dh,Nh,Fh,t.enforceAtxHeadings?zh:jh,Bh,Wh,Ev,_v],u=[...a,AA,Pl,Uh,Cl];function c(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=Ll(t.overrides,v+".props",{});return s((function(T,k){const U=Ll(k,T);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Ll(k,T+".component",T):T})(v,t.overrides),jn({},S,R,{className:aR(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(v){v=v.replace(bA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=kA.test(v)===!1);const E=p(x(S?v:Po(v).replace(qA,"")+`
|
|
12
12
|
|
|
13
|
-
`,{inline:S}));for(;
|
|
14
|
-
`);return S>0&&S<
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o:
|
|
13
|
+
`,{inline:S}));for(;qh(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 g(v,S){if(!S||!S.trim())return null;const E=S.match(aA);return E?E.reduce(function(R,T){const k=T.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(SA)===null&&(j=j.replace(OA,function(M,W){return W.toUpperCase()})),j})(T.slice(0,k)).trim(),D=(function(j){const M=j[0];return(M==='"'||M==="'")&&j.length>=2&&j[j.length-1]===M?j.slice(1,-1):j})(T.slice(k+1).trim()),N=Lh[U]||U;if(N==="ref")return R;const G=R[N]=(function(j,M,W,q){return M==="style"?(function(C){const J=[];let Y="",te=!1,de=!1,Z="";if(!C)return J;for(let se=0;se<C.length;se++){const ue=C[se];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const ne=Y.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}Y=""}}const Q=Y.trim();if(Q){const se=Q.indexOf(":");if(se>0){const ue=Q.slice(0,se).trim(),ne=Q.slice(se+1).trim();J.push([ue,ne])}}return J})(W).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,j,J),C},{}):sA.indexOf(M)!==-1?q(Er(W),j,M):(W.match(EA)&&(W=Er(W.slice(1,W.length-1))),W==="true"||W!=="false"&&W)})(v,U,D,i);typeof G=="string"&&(Pl.test(G)||Cl.test(G))&&(R[N]=m(G.trim()))}else T!=="style"&&(R[Lh[T]||T]=!0);return R},{}):null}const h=[],d={},y={0:{t:[">"],o:qr(Dh),i:1,u(v,S,E){const[,R,T]=v[0].replace(lA,"").match(cA);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(),Ki),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:Hs(fA),i:1,u:Il,l:(v,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:qr(dA),i:1,u:Il,l:(v,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:qr(Fh),i:0,u:v=>({lang:void 0,text:Er(Po(v[0].replace(/^ {4}/gm,"")))}),l:(v,S,E)=>f("pre",{key:E.key},f("code",jn({},v.attrs,{className:v.lang?"lang-"+v.lang:""}),v.text))},4:{t:["```","~~~"],o:qr(Nh),i:0,u:v=>({attrs:g("code",v[3]||""),lang:v[2]||void 0,text:v[4],type:"3"})},5:{t:["`"],o:fn(pA),i:3,u:v=>({text:Er(v[2])}),l:(v,S,E)=>f("code",{key:E.key},v.text)},6:{t:["[^"],o:qr(mA),i:0,u:v=>(h.push({footnote:v[2],identifier:v[1]}),{}),l:$l},7:{t:["[^"],o:Ln(vA),i:1,u:v=>({target:"#"+r(v[1],Ki),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:Ln(wA),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:qr(t.enforceAtxHeadings?zh:jh),i:1,u:(v,S,E)=>({children:da(S,v[2],E),id:r(v[2],Ki),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:qr(Bh),i:0,u:(v,S,E)=>({children:da(S,v[1],E),level:v[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Hs(Pl),i:1,u(v,S,E){const[,R]=v[3].match(ZA),T=RegExp("^"+R,"gm"),k=v[3].replace(T,""),U=c(u,k)?sR:da,D=v[1].toLowerCase(),N=oA.indexOf(D)!==-1,G=(N?D:v[1]).trim(),j={attrs:g(G,v[2]),noInnerParse:N,tag:G};if(E.inAnchor=E.inAnchor||D==="a",N)j.text=v[3];else{const M=E.inHTML;E.inHTML=!0,j.children=U(S,k,E),E.inHTML=M}return E.inAnchor=!1,j},l:(v,S,E)=>f(v.tag,jn({key:E.key},v.attrs),v.text||(v.children?S(v.children,E):""))},13:{t:["<"],o:Hs(Cl),i:1,u(v){const S=v[1].trim();return{attrs:g(S,v[2]||""),tag:S}},l:(v,S,E)=>f(v.tag,jn({},v.attrs,{key:E.key}))},12:{t:["<!--"],o:Hs(Uh),i:1,u:()=>({}),l:$l},14:{t:["!["],o:fn(QA),i:1,u:v=>({alt:Er(v[1]),target:Er(v[2]),title:Er(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:Ln(JA),i:3,u:(v,S,E)=>({children:oR(S,v[1],E),target:Er(v[2]),title:Er(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:Ln(TA),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&&(fa(v,"http://")||fa(v,"https://")),o:Ln(_A),i:0,u:v=>({children:[{text:v[1],type:"27"}],target:v[1],title:void 0,type:"15"})},20:Hh(f,1),33:Hh(f,2),19:{t:[`
|
|
15
|
+
`],o:qr(hA),i:3,u:Il,l:()=>`
|
|
16
|
+
`},21:{o:Oi(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 k=
|
|
21
|
-
`,R),U=
|
|
22
|
-
`).replace(XA,"").replace(fT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,U=[];let F=!1;for(let D=0;D<R.length;D++){O.key=D;const G=E(R[D],O),j=Ih(G);j&&F?U[U.length-1]+=G:G!==null&&U.push(G),F=j}return O.key=k,U}return(function(k,U,F){const D=h[k.type].l;return S?S(()=>D(k,U,F),k,U,F):D(k,U,F)})(R,E,O)}})(b,t.renderRule),w=v(e);return g.length?f("div",null,w,f("footer",{key:"footer"},g.map(function(h){return f("div",{id:r(h.identifier,Bi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const ma=e=>{let{children:t="",options:r}=e,i=(function(s,a){if(s==null)return{};var l,c,f={},v=Object.keys(s);for(c=0;c<v.length;c++)a.indexOf(l=v[c])>=0||(f[l]=s[l]);return f})(e,DA);return $.cloneElement(WT(t,r),i)},Fh=({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 M.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return M.jsx(et.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return M.jsx(M.Fragment,{children:M.jsx(et.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return M.jsx(M.Fragment,{children:M.jsx(et.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return M.jsx(M.Fragment,{children:M.jsx(et.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},UT=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const l=({className:c}={})=>M.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:M.jsx(et.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return M.jsx("div",{className:We("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?M.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[M.jsx("div",{className:"pt-1",children:M.jsx(Fh,{kind:r,customIcon:a})}),M.jsx("div",{className:"flex items-center gap-1 prose",children:s?M.jsx(ma,{children:i}):M.jsx(M.Fragment,{children:i})}),l()]}):M.jsxs("div",{className:"flex items-start",children:[M.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>M.jsxs(M.Fragment,{children:[c.title&&M.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[M.jsx(Fh,{kind:r,customIcon:a}),M.jsxs("span",{children:[c.title," :"]})]}),M.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>M.jsx("li",{children:s?M.jsx(ma,{children:f}):M.jsx(M.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},dv=({children:e,size:t,className:r,...i})=>M.jsx("div",{style:{"--width":`${t||24}px`},className:We("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Al={},Hi={},zs={},Dh;function pv(){if(Dh)return zs;Dh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.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 zs}var li={},qi={},Zi={},Nh;function BT(){if(Nh)return Zi;Nh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.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 Zi.default=e,Zi}var jh;function La(){if(jh)return qi;jh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(BT());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 qi.default=i,qi}var zh;function Ma(){if(zh)return li;zh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t(La());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function i(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function s(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return li.default=a,li}var Wh;function HT(){if(Wh)return Hi;Wh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(pv()),t=Ma();function r(v){return v&&v.__esModule?v:{default:v}}let i,s,a=0,l=0;function c(v,m,g){let p=m&&g||0;const b=m||new Array(16);v=v||{};let x=v.node||i,d=v.clockseq!==void 0?v.clockseq:s;if(x==null||d==null){const O=v.random||(v.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=v.msecs!==void 0?v.msecs:Date.now(),h=v.nsecs!==void 0?v.nsecs:l+1;const S=w-a+(h-l)/1e4;if(S<0&&v.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&v.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,l=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;b[p++]=E>>>24&255,b[p++]=E>>>16&255,b[p++]=E>>>8&255,b[p++]=E&255;const R=w/4294967296*1e4&268435455;b[p++]=R>>>8&255,b[p++]=R&255,b[p++]=R>>>24&15|16,b[p++]=R>>>16&255,b[p++]=d>>>8|128,b[p++]=d&255;for(let O=0;O<6;++O)b[p+O]=x[O];return m||(0,t.unsafeStringify)(b)}var f=c;return Hi.default=f,Hi}var Gi={},un={},Ki={},Uh;function hv(){if(Uh)return Ki;Uh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=t(La());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var i=r;return Ki.default=i,Ki}var Bh;function gv(){if(Bh)return un;Bh=1,Object.defineProperty(un,"__esModule",{value:!0}),un.URL=un.DNS=void 0,un.default=l;var e=Ma(),t=r(hv());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let v=0;v<c.length;++v)f.push(c.charCodeAt(v));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=a;function l(c,f,v){function m(g,p,b,x){var d;if(typeof g=="string"&&(g=i(g)),typeof p=="string"&&(p=(0,t.default)(p)),((d=p)===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+g.length);if(w.set(p),w.set(g,p.length),w=v(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,b){x=x||0;for(let h=0;h<16;++h)b[x+h]=w[h];return b}return(0,e.unsafeStringify)(w)}try{m.name=c}catch{}return m.DNS=s,m.URL=a,m}return un}var Vi={},Hh;function qT(){if(Hh)return Vi;Hh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;function e(b){if(typeof b=="string"){const x=unescape(encodeURIComponent(b));b=new Uint8Array(x.length);for(let d=0;d<x.length;++d)b[d]=x.charCodeAt(d)}return t(i(s(b),b.length*8))}function t(b){const x=[],d=b.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=b[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(b){return(b+64>>>9<<4)+14+1}function i(b,x){b[x>>5]|=128<<x%32,b[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<b.length;E+=16){const R=d,O=w,k=h,U=S;d=f(d,w,h,S,b[E],7,-680876936),S=f(S,d,w,h,b[E+1],12,-389564586),h=f(h,S,d,w,b[E+2],17,606105819),w=f(w,h,S,d,b[E+3],22,-1044525330),d=f(d,w,h,S,b[E+4],7,-176418897),S=f(S,d,w,h,b[E+5],12,1200080426),h=f(h,S,d,w,b[E+6],17,-1473231341),w=f(w,h,S,d,b[E+7],22,-45705983),d=f(d,w,h,S,b[E+8],7,1770035416),S=f(S,d,w,h,b[E+9],12,-1958414417),h=f(h,S,d,w,b[E+10],17,-42063),w=f(w,h,S,d,b[E+11],22,-1990404162),d=f(d,w,h,S,b[E+12],7,1804603682),S=f(S,d,w,h,b[E+13],12,-40341101),h=f(h,S,d,w,b[E+14],17,-1502002290),w=f(w,h,S,d,b[E+15],22,1236535329),d=v(d,w,h,S,b[E+1],5,-165796510),S=v(S,d,w,h,b[E+6],9,-1069501632),h=v(h,S,d,w,b[E+11],14,643717713),w=v(w,h,S,d,b[E],20,-373897302),d=v(d,w,h,S,b[E+5],5,-701558691),S=v(S,d,w,h,b[E+10],9,38016083),h=v(h,S,d,w,b[E+15],14,-660478335),w=v(w,h,S,d,b[E+4],20,-405537848),d=v(d,w,h,S,b[E+9],5,568446438),S=v(S,d,w,h,b[E+14],9,-1019803690),h=v(h,S,d,w,b[E+3],14,-187363961),w=v(w,h,S,d,b[E+8],20,1163531501),d=v(d,w,h,S,b[E+13],5,-1444681467),S=v(S,d,w,h,b[E+2],9,-51403784),h=v(h,S,d,w,b[E+7],14,1735328473),w=v(w,h,S,d,b[E+12],20,-1926607734),d=m(d,w,h,S,b[E+5],4,-378558),S=m(S,d,w,h,b[E+8],11,-2022574463),h=m(h,S,d,w,b[E+11],16,1839030562),w=m(w,h,S,d,b[E+14],23,-35309556),d=m(d,w,h,S,b[E+1],4,-1530992060),S=m(S,d,w,h,b[E+4],11,1272893353),h=m(h,S,d,w,b[E+7],16,-155497632),w=m(w,h,S,d,b[E+10],23,-1094730640),d=m(d,w,h,S,b[E+13],4,681279174),S=m(S,d,w,h,b[E],11,-358537222),h=m(h,S,d,w,b[E+3],16,-722521979),w=m(w,h,S,d,b[E+6],23,76029189),d=m(d,w,h,S,b[E+9],4,-640364487),S=m(S,d,w,h,b[E+12],11,-421815835),h=m(h,S,d,w,b[E+15],16,530742520),w=m(w,h,S,d,b[E+2],23,-995338651),d=g(d,w,h,S,b[E],6,-198630844),S=g(S,d,w,h,b[E+7],10,1126891415),h=g(h,S,d,w,b[E+14],15,-1416354905),w=g(w,h,S,d,b[E+5],21,-57434055),d=g(d,w,h,S,b[E+12],6,1700485571),S=g(S,d,w,h,b[E+3],10,-1894986606),h=g(h,S,d,w,b[E+10],15,-1051523),w=g(w,h,S,d,b[E+1],21,-2054922799),d=g(d,w,h,S,b[E+8],6,1873313359),S=g(S,d,w,h,b[E+15],10,-30611744),h=g(h,S,d,w,b[E+6],15,-1560198380),w=g(w,h,S,d,b[E+13],21,1309151649),d=g(d,w,h,S,b[E+4],6,-145523070),S=g(S,d,w,h,b[E+11],10,-1120210379),h=g(h,S,d,w,b[E+2],15,718787259),w=g(w,h,S,d,b[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,k),S=a(S,U)}return[d,w,h,S]}function s(b){if(b.length===0)return[];const x=b.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(b[w/8]&255)<<w%32;return d}function a(b,x){const d=(b&65535)+(x&65535);return(b>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(b,x){return b<<x|b>>>32-x}function c(b,x,d,w,h,S){return a(l(a(a(x,b),a(w,S)),h),d)}function f(b,x,d,w,h,S,E){return c(x&d|~x&w,b,x,h,S,E)}function v(b,x,d,w,h,S,E){return c(x&w|d&~w,b,x,h,S,E)}function m(b,x,d,w,h,S,E){return c(x^d^w,b,x,h,S,E)}function g(b,x,d,w,h,S,E){return c(d^(x|~w),b,x,h,S,E)}var p=e;return Vi.default=p,Vi}var qh;function ZT(){if(qh)return Gi;qh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(gv()),t=r(qT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Gi.default=s,Gi}var Yi={},Xi={},Zh;function GT(){if(Zh)return Xi;Zh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xi.default=t,Xi}var Gh;function KT(){if(Gh)return Yi;Gh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=i(GT()),t=i(pv()),r=Ma();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c,f){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const v=l.random||(l.rng||t.default)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,c){f=f||0;for(let m=0;m<16;++m)c[f+m]=v[m];return c}return(0,r.unsafeStringify)(v)}var a=s;return Yi.default=a,Yi}var Ji={},Qi={},Kh;function VT(){if(Kh)return Qi;Kh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(s,a,l,c){switch(s){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const m=unescape(encodeURIComponent(s));s=[];for(let g=0;g<m.length;++g)s.push(m.charCodeAt(g))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),v=new Array(f);for(let m=0;m<f;++m){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=s[m*64+p*4]<<24|s[m*64+p*4+1]<<16|s[m*64+p*4+2]<<8|s[m*64+p*4+3];v[m]=g}v[f-1][14]=(s.length-1)*8/Math.pow(2,32),v[f-1][14]=Math.floor(v[f-1][14]),v[f-1][15]=(s.length-1)*8&4294967295;for(let m=0;m<f;++m){const g=new Uint32Array(80);for(let h=0;h<16;++h)g[h]=v[m][h];for(let h=16;h<80;++h)g[h]=t(g[h-3]^g[h-8]^g[h-14]^g[h-16],1);let p=l[0],b=l[1],x=l[2],d=l[3],w=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(p,5)+e(S,b,x,d)+w+a[S]+g[h]>>>0;w=d,d=x,x=t(b,30)>>>0,b=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+d>>>0,l[4]=l[4]+w>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var i=r;return Qi.default=i,Qi}var Vh;function YT(){if(Vh)return Ji;Vh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(gv()),t=r(VT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return Ji.default=s,Ji}var eo={},Yh;function XT(){if(Yh)return eo;Yh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return eo.default=e,eo}var to={},Xh;function JT(){if(Xh)return to;Xh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t(La());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 to.default=i,to}var Jh;function QT(){return Jh||(Jh=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 v.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=m(HT()),r=m(ZT()),i=m(KT()),s=m(YT()),a=m(XT()),l=m(JT()),c=m(La()),f=m(Ma()),v=m(hv());function m(g){return g&&g.__esModule?g:{default:g}}})(Al)),Al}var Tl,Qh;function eR(){if(Qh)return Tl;Qh=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,s,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,v=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*l+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,v=this.dstAlphabet.slice(i,i+1).concat(v)}while(s!==0);return v},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Tl=e,Tl}var Rl,eg;function tR(){if(eg)return Rl;eg=1;var e=eR();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",Rl=t,Rl}var Pl,tg;function rR(){if(tg)return Pl;tg=1;const{v4:e,validate:t}=QT(),r=tR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(v,m,g)=>{const p=m(v.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(v,m)=>{const p=m(v).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},f=v=>Math.ceil(Math.log(2**128)/Math.log(v));return Pl=(()=>{const v=(m,g)=>{const p=m||i.flickrBase58,b={...s,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(p.length),d={shortIdLength:x,consistentLength:b.consistentLength,paddingChar:p[0]},w=r(r.HEX,p),h=r(p,r.HEX),S=()=>l(e(),w,d),R={alphabet:p,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const U=b.consistentLength?O.length===x:O.length<=x,F=O.split("").every(D=>p.includes(D));return k===!1?U&&F:U&&F&&t(c(O,h))}};return Object.freeze(R),R};return v.constants=i,v.uuid=e,v.generate=()=>(a||(a=v(i.flickrBase58).generate),a()),v})(),Pl}var Hc=rR();const mv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Hc.generate()}`;return M.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[M.jsx("defs",{children:M.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:M.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?M.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):M.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},vv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?M.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return M.jsx(et.FdDown,{className:We(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?M.jsx(et.FdDown,{}):M.jsx(et.FdRight,{});default:return M.jsx(et.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):M.jsx("div",{className:"flex h-6 w-3 items-center"}),qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var b;const{key:f,children:v}=e,m=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),g=l&&typeof l=="function"?l(e,t,m,s,a):oR(e,t,m,c);return!((b=e.options)!=null&&b.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?M.jsxs(M.Fragment,{children:[M.jsx("div",{className:"flex items-center space-x-2",children:g},f),iR(v||[],t,a,r,i,m.expanded,s,c,l)]}):null},nR=function(e,t){var l;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=M.jsx(dv,{children:i})),M.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,M.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&M.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},iR=function(e,t,r,i,s,a,l,c,f){var v,m;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((v=e[0].data)==null?void 0:v.nodeType)||((m=e[0].data)==null?void 0:m.type))?e:e.sort((g,p)=>o0(g.title,p.title))).map(g=>M.jsx(qc,{actions:l,node:g,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},g.key)):null},oR=function(e,t,r,i){return M.jsxs(M.Fragment,{children:[M.jsx(mv,{showLines:!0,depth:t}),M.jsx(vv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),nR(e,i)]})},Ws=e=>t=>e===t,sR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:v}){const[m,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&m.expandedKeys.length>0||g({...m,expandedKeys:l||m.expandedKeys})},[l]);const p=W.useCallback(h=>{if(!h)return;const S=m.expandedKeys.findIndex(Ws(h.key));let E=[];S===-1?(E=[...m.expandedKeys,h.key],g(()=>({...m,expandedKeys:E})),s&&s(E)):(E=m.expandedKeys.filter(R=>R!==h.key),g(()=>({...m,expandedKeys:E})),s&&s(E))},[m]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ws(h.key))===-1&&g({...m,selectedKeys:[...m.selectedKeys,h.key]})},[m]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ws(h.key))===-1&&g({...m,selectedKeys:[h.key]})},[m]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){g({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Ws(h.key))!==-1&&g({...m,selectedKeys:m.selectedKeys.filter(R=>R!==h.key)})},[m]),w=W.useMemo(()=>({expand:p,select:b,selectSingle:x,deselect:d}),[d,p,b,x]);return M.jsx("div",{className:We("fd-tree",v,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>M.jsx(qc,{node:h,searchQuery:a||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function ua(e){return e.of&&e.children?M.jsx(M.Fragment,{children:e.children}):null}function Xe(){return Xe=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},Xe.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 uR={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 yv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lR=/[A-Z]|^ms/g,cR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bv=function(t){return t.charCodeAt(1)===45},rg=function(t){return t!=null&&typeof t!="boolean"},Cl=yv(function(e){return bv(e)?e:e.replace(lR,"-$&").toLowerCase()}),ng=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(cR,function(i,s,a){return _r={name:s,styles:a,next:_r},s})}return uR[t]!==1&&!bv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ro(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 _r={name:s.name,styles:s.styles,next:_r},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=a.styles+";";return c}return fR(e,t,r)}case"function":{if(e!==void 0){var f=_r,v=r(e);return _r=f,Ro(e,t,v)}break}}var m=r;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function fR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Ro(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":rg(c)&&(i+=Cl(a)+":"+ng(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)rg(l[f])&&(i+=Cl(a)+":"+ng(a,l[f])+";");else{var v=Ro(e,t,l);switch(a){case"animation":case"animationName":{i+=Cl(a)+":"+v+";";break}default:i+=a+"{"+v+"}"}}}return i}var ig=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function dR(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="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Ro(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=Ro(r,t,e[c]),i){var f=a;s+=f[c]}ig.lastIndex=0;for(var v="",m;(m=ig.exec(s))!==null;)v+="-"+m[1];var g=aR(s)+v;return{name:g,styles:s,next:_r}}var pR=function(t){return t()},hR=$.useInsertionEffect?$.useInsertionEffect:!1,gR=hR||pR,mR=!0;function vR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var wv=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||mR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},yR=function(t,r,i){wv(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)}},bR=/^((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)-.*))$/,wR=yv(function(e){return bR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xR=wR,SR=function(t){return t!=="theme"},og=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xR:SR},sg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},ER=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return wv(r,i,s),gR(function(){return yR(r,i,s)}),null},_R=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=sg(t,r,i),f=c||og(s),v=!f("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var p=m[0];g.push(p[0]);for(var b=m.length,x=1;x<b;x++)g.push(m[x],p[x])}var d=uc.withEmotionCache(function(w,h,S){var E=v&&w.as||s,R="",O=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=$.useContext(uc.ThemeContext)}typeof w.className=="string"?R=vR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var F=dR(g.concat(O),h.registered,k);R+=h.key+"-"+F.name,l!==void 0&&(R+=" "+l);var D=v&&c===void 0?og(E):f,G={};for(var j in w)v&&j==="as"||D(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(ER,{cache:h,serialized:F,isStringTag:typeof E=="string"}),$.createElement(E,G))});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=g,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Xe({},r,h,{shouldForwardProp:sg(d,h,!0)}));return S.apply(void 0,g)},d}},OR=["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"],va=_R.bind(null);OR.forEach(function(e){va[e]=va(e)});var AR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Us=new WeakMap,Bs={},kl=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},TR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=xv(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})},RR=function(e,t,r,i){var s=TR(t,Array.isArray(e)?e:[e]);Bs[r]||(Bs[r]=new WeakMap);var a=Bs[r],l=[],c=new Set,f=new Set(s),v=function(g){!g||c.has(g)||(c.add(g),v(g.parentNode))};s.forEach(v);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))m(p);else try{var b=p.getAttribute(i),x=b!==null&&b!=="false",d=(ci.get(p)||0)+1,w=(a.get(p)||0)+1;ci.set(p,d),a.set(p,w),l.push(p),d===1&&x&&Us.set(p,!0),w===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return m(t),c.clear(),kl++,function(){l.forEach(function(g){var p=ci.get(g)-1,b=a.get(g)-1;ci.set(g,p),a.set(g,b),p||(Us.has(g)||g.removeAttribute(i),Us.delete(g)),b||g.removeAttribute(r)}),kl--,kl||(ci=new WeakMap,ci=new WeakMap,Us=new WeakMap,Bs={})}},PR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=AR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),RR(i,s,r,"aria-hidden")):function(){return null}},fc=function(e,t){return fc=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])},fc(e,t)};function Fa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=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},Or.apply(this,arguments)};function Sv(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 dc(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 pc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return a}function ya(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 la="right-scroll-bar-position",ca="width-before-scroll-bar",CR="with-scroll-bars-hidden",kR="--removed-body-scroll-bar-size";function $l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $R(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 IR=typeof window<"u"?$.useLayoutEffect:$.useEffect,ag=new WeakMap;function LR(e,t){var r=$R(null,function(i){return e.forEach(function(s){return $l(s,i)})});return IR(function(){var i=ag.get(r);if(i){var s=new Set(i),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||$l(c,null)}),a.forEach(function(c){s.has(c)||$l(c,l)})}ag.set(r,e)},[e]),r}function MR(e){return e}function FR(e,t){t===void 0&&(t=MR);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var f=function(){var m=l;l=[],m.forEach(a)},v=function(){return Promise.resolve().then(f)};v(),r={push:function(m){l.push(m),v()},filter:function(m){return l=l.filter(m),r}}}};return s}function DR(e){e===void 0&&(e={});var t=FR(null);return t.options=Or({async:!0,ssr:!1},e),t}var Ev=function(e){var t=e.sideCar,r=Sv(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,Or({},r))};Ev.isSideCarExport=!0;function NR(e,t){return e.useMedium(t),Ev}var _v=DR(),Il=function(){},Da=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Il,onWheelCapture:Il,onTouchMoveCapture:Il}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,v=e.removeScrollBar,m=e.enabled,g=e.shards,p=e.sideCar,b=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Sv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=LR([r,t]),U=Or(Or({},R),s);return $.createElement($.Fragment,null,m&&$.createElement(O,{sideCar:_v,removeScrollBar:v,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Or(Or({},U),{ref:k})):$.createElement(S,Or({},U,{className:f,ref:k}),c))});Da.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Da.classNames={fullWidth:ca,zeroRight:la};var jR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jR();return t&&e.setAttribute("nonce",t),e}function WR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zR())&&(WR(t,r),UR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HR=function(){var e=BR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ov=function(){var e=HR(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},qR={left:0,top:0,right:0,gap:0},Ll=function(e){return parseInt(e||"",10)||0},ZR=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[Ll(r),Ll(i),Ll(s)]},GR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qR;var t=ZR(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])}},KR=Ov(),hi="data-scroll-locked",VR=function(e,t,r,i){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
-
.`.concat(
|
|
20
|
+
`)===-1)return null;let E="",R=0;for(;;){const k=v.indexOf(`
|
|
21
|
+
`,R),U=v.slice(R,k===-1?void 0:k+1);if(c(a,U)||(E+=U,k===-1||!U.trim()))break;R=k+1}const T=Po(E);return T===""?null:[E,,T]}),i:3,u:kl,l:(v,S,E)=>f("p",{key:E.key},S(v.children,E))},22:{t:["["],o:Ln(RA),i:0,u:v=>(d[v[1]]={target:v[2],title:v[4]},{}),l:$l},23:{t:["!["],o:fn(PA),i:0,u:v=>({alt:v[1]?Er(v[1]):void 0,ref:v[2]}),l:(v,S,E)=>d[v.ref]?f("img",{key:E.key,alt:v.alt,src:i(d[v.ref].target,"img","src"),title:d[v.ref].title}):null},24:{t:v=>v[0]==="["&&v.indexOf("](")===-1,o:Ln(CA),i:0,u:(v,S,E)=>({children:S(v[1],E),fallbackChildren:v[0],ref:v[2]}),l:(v,S,E)=>d[v.ref]?f("a",{key:E.key,href:i(d[v.ref].target,"a","href"),title:d[v.ref].title},S(v.children,E)):f("span",{key:E.key},v.fallbackChildren)},25:{t:["|"],o:qr(Wh),i:1,u:rR,l(v,S,E){const R=v;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(T,k){return f("th",{key:k,style:Gh(R,k)},S(T,E))}))),f("tbody",null,R.cells.map(function(T,k){return f("tr",{key:k},T.map(function(U,D){return f("td",{key:D,style:Gh(R,D)},S(U,E))}))})))}},27:{o:Oi(function(v,S){let E;return fa(v,":")&&(E=BA.exec(v)),E||HA.exec(v)}),i:4,u(v){const S=v[0];return{text:S.indexOf("&")===-1?S:S.replace(xA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:v=>v.text},28:{t:["**","__"],o:fn(NA),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:fn(FA),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:fn(UA),i:1,u:v=>({text:v[1],type:"27"})},31:{t:["=="],o:fn(jA),i:3,u:kl,l:(v,S,E)=>f("mark",{key:E.key},S(v.children,E))},32:{t:["~~"],o:fn(zA),i:3,u:kl,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 k=[];if(T.prevCapture=T.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var D=S[U],N=v[D];if(!N.t||eR(R,T,N.t)){var G=N.o(R,T);if(G&&G[0]){R=R.substring(G[0].length);var j=N.u(G,E,T);T.prevCapture+=G[0],j.type||(j.type=D),k.push(j);break}U++}else U++}return T.prevCapture="",k}return S.sort(function(R,T){return v[R].i-v[T].i||(R<T?-1:1)}),function(R,T){return E((function(k){return k.replace(gA,`
|
|
22
|
+
`).replace(yA,"").replace(IA," ")})(R),T)}})(y),p=(function(v,S){return function E(R,T={}){if(Array.isArray(R)){const k=T.key,U=[];let D=!1;for(let N=0;N<R.length;N++){T.key=N;const G=E(R[N],T),j=qh(G);j&&D?U[U.length-1]+=G:G!==null&&U.push(G),D=j}return T.key=k,U}return(function(k,U,D){const N=v[k.type].l;return S?S(()=>N(k,U,D),k,U,D):N(k,U,D)})(R,E,T)}})(y,t.renderRule),w=m(e);return h.length?f("div",null,w,f("footer",{key:"footer"},h.map(function(v){return f("div",{id:r(v.identifier,Ki),key:v.identifier},v.identifier,p(x(v.footnote,{inline:!0})))}))):w}const xa=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,iA);return I.cloneElement(uR(t,r),i)},Vh=({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 $.jsx(t,{className:je("flex-none size-6",r)});switch(e){case"error":case"danger":return $.jsx(Ke.FdSanityCheckInfo,{className:je("flex-none size-6",r)});case"info":return $.jsx($.Fragment,{children:$.jsx(Ke.FdInfoBold,{className:je("flex-none size-6",r)})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Ke.FdWarningDanger,{className:je("flex-none size-6",r)})});case"message":return $.jsx($.Fragment,{children:$.jsx(Ke.FdInfoBold,{className:je("flex-none size-6",r)})});default:return null}},lR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:c}={})=>$.jsx("button",{onClick:t,className:je("flex justify-center p-1",c),children:$.jsx(Ke.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return $.jsx("div",{className:je("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[$.jsx("div",{className:"pt-1",children:$.jsx(Vh,{kind:r,customIcon:a})}),$.jsx("div",{className:"flex items-center gap-1 prose",children:s?$.jsx(xa,{children:i}):$.jsx($.Fragment,{children:i})}),u()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>$.jsxs($.Fragment,{children:[c.title&&$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(Vh,{kind:r,customIcon:a}),$.jsxs("span",{children:[c.title," :"]})]}),$.jsx("ul",{className:je("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>$.jsx("li",{children:s?$.jsx(xa,{children:f}):$.jsx($.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},Tv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:je("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Ml={},Yi={},qs={},Kh;function Ov(){if(Kh)return qs;Kh=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.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 qs}var hi={},Xi={},Ji={},Yh;function cR(){if(Yh)return Ji;Yh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.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 Ji.default=e,Ji}var Xh;function Ba(){if(Xh)return Xi;Xh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=t(cR());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 Xi.default=i,Xi}var Jh;function Ua(){if(Jh)return hi;Jh=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=void 0,hi.unsafeStringify=i;var e=t(Ba());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 hi.default=a,hi}var Qh;function fR(){if(Qh)return Yi;Qh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Ov()),t=Ua();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,u=0;function c(m,g,h){let d=g&&h||0;const y=g||new Array(16);m=m||{};let x=m.node||i,p=m.clockseq!==void 0?m.clockseq:s;if(x==null||p==null){const T=m.random||(m.rng||e.default)();x==null&&(x=i=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),p==null&&(p=s=(T[6]<<8|T[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),v=m.nsecs!==void 0?m.nsecs:u+1;const S=w-a+(v-u)/1e4;if(S<0&&m.clockseq===void 0&&(p=p+1&16383),(S<0||w>a)&&m.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=p,w+=122192928e5;const E=((w&268435455)*1e4+v)%4294967296;y[d++]=E>>>24&255,y[d++]=E>>>16&255,y[d++]=E>>>8&255,y[d++]=E&255;const R=w/4294967296*1e4&268435455;y[d++]=R>>>8&255,y[d++]=R&255,y[d++]=R>>>24&15|16,y[d++]=R>>>16&255,y[d++]=p>>>8|128,y[d++]=p&255;for(let T=0;T<6;++T)y[d+T]=x[T];return g||(0,t.unsafeStringify)(y)}var f=c;return Yi.default=f,Yi}var Qi={},dn={},eo={},eg;function Av(){if(eg)return eo;eg=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=t(Ba());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 eo.default=i,eo}var tg;function Rv(){if(tg)return dn;tg=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.URL=dn.DNS=void 0,dn.default=u;var e=Ua(),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";dn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";dn.URL=a;function u(c,f,m){function g(h,d,y,x){var p;if(typeof h=="string"&&(h=i(h)),typeof d=="string"&&(d=(0,t.default)(d)),((p=d)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+h.length);if(w.set(d),w.set(h,d.length),w=m(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{g.name=c}catch{}return g.DNS=s,g.URL=a,g}return dn}var to={},rg;function dR(){if(rg)return to;rg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;function e(y){if(typeof y=="string"){const x=unescape(encodeURIComponent(y));y=new Uint8Array(x.length);for(let p=0;p<x.length;++p)y[p]=x.charCodeAt(p)}return t(i(s(y),y.length*8))}function t(y){const x=[],p=y.length*32,w="0123456789abcdef";for(let v=0;v<p;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 p=1732584193,w=-271733879,v=-1732584194,S=271733878;for(let E=0;E<y.length;E+=16){const R=p,T=w,k=v,U=S;p=f(p,w,v,S,y[E],7,-680876936),S=f(S,p,w,v,y[E+1],12,-389564586),v=f(v,S,p,w,y[E+2],17,606105819),w=f(w,v,S,p,y[E+3],22,-1044525330),p=f(p,w,v,S,y[E+4],7,-176418897),S=f(S,p,w,v,y[E+5],12,1200080426),v=f(v,S,p,w,y[E+6],17,-1473231341),w=f(w,v,S,p,y[E+7],22,-45705983),p=f(p,w,v,S,y[E+8],7,1770035416),S=f(S,p,w,v,y[E+9],12,-1958414417),v=f(v,S,p,w,y[E+10],17,-42063),w=f(w,v,S,p,y[E+11],22,-1990404162),p=f(p,w,v,S,y[E+12],7,1804603682),S=f(S,p,w,v,y[E+13],12,-40341101),v=f(v,S,p,w,y[E+14],17,-1502002290),w=f(w,v,S,p,y[E+15],22,1236535329),p=m(p,w,v,S,y[E+1],5,-165796510),S=m(S,p,w,v,y[E+6],9,-1069501632),v=m(v,S,p,w,y[E+11],14,643717713),w=m(w,v,S,p,y[E],20,-373897302),p=m(p,w,v,S,y[E+5],5,-701558691),S=m(S,p,w,v,y[E+10],9,38016083),v=m(v,S,p,w,y[E+15],14,-660478335),w=m(w,v,S,p,y[E+4],20,-405537848),p=m(p,w,v,S,y[E+9],5,568446438),S=m(S,p,w,v,y[E+14],9,-1019803690),v=m(v,S,p,w,y[E+3],14,-187363961),w=m(w,v,S,p,y[E+8],20,1163531501),p=m(p,w,v,S,y[E+13],5,-1444681467),S=m(S,p,w,v,y[E+2],9,-51403784),v=m(v,S,p,w,y[E+7],14,1735328473),w=m(w,v,S,p,y[E+12],20,-1926607734),p=g(p,w,v,S,y[E+5],4,-378558),S=g(S,p,w,v,y[E+8],11,-2022574463),v=g(v,S,p,w,y[E+11],16,1839030562),w=g(w,v,S,p,y[E+14],23,-35309556),p=g(p,w,v,S,y[E+1],4,-1530992060),S=g(S,p,w,v,y[E+4],11,1272893353),v=g(v,S,p,w,y[E+7],16,-155497632),w=g(w,v,S,p,y[E+10],23,-1094730640),p=g(p,w,v,S,y[E+13],4,681279174),S=g(S,p,w,v,y[E],11,-358537222),v=g(v,S,p,w,y[E+3],16,-722521979),w=g(w,v,S,p,y[E+6],23,76029189),p=g(p,w,v,S,y[E+9],4,-640364487),S=g(S,p,w,v,y[E+12],11,-421815835),v=g(v,S,p,w,y[E+15],16,530742520),w=g(w,v,S,p,y[E+2],23,-995338651),p=h(p,w,v,S,y[E],6,-198630844),S=h(S,p,w,v,y[E+7],10,1126891415),v=h(v,S,p,w,y[E+14],15,-1416354905),w=h(w,v,S,p,y[E+5],21,-57434055),p=h(p,w,v,S,y[E+12],6,1700485571),S=h(S,p,w,v,y[E+3],10,-1894986606),v=h(v,S,p,w,y[E+10],15,-1051523),w=h(w,v,S,p,y[E+1],21,-2054922799),p=h(p,w,v,S,y[E+8],6,1873313359),S=h(S,p,w,v,y[E+15],10,-30611744),v=h(v,S,p,w,y[E+6],15,-1560198380),w=h(w,v,S,p,y[E+13],21,1309151649),p=h(p,w,v,S,y[E+4],6,-145523070),S=h(S,p,w,v,y[E+11],10,-1120210379),v=h(v,S,p,w,y[E+2],15,718787259),w=h(w,v,S,p,y[E+9],21,-343485551),p=a(p,R),w=a(w,T),v=a(v,k),S=a(S,U)}return[p,w,v,S]}function s(y){if(y.length===0)return[];const x=y.length*8,p=new Uint32Array(r(x));for(let w=0;w<x;w+=8)p[w>>5]|=(y[w/8]&255)<<w%32;return p}function a(y,x){const p=(y&65535)+(x&65535);return(y>>16)+(x>>16)+(p>>16)<<16|p&65535}function u(y,x){return y<<x|y>>>32-x}function c(y,x,p,w,v,S){return a(u(a(a(x,y),a(w,S)),v),p)}function f(y,x,p,w,v,S,E){return c(x&p|~x&w,y,x,v,S,E)}function m(y,x,p,w,v,S,E){return c(x&w|p&~w,y,x,v,S,E)}function g(y,x,p,w,v,S,E){return c(x^p^w,y,x,v,S,E)}function h(y,x,p,w,v,S,E){return c(p^(x|~w),y,x,v,S,E)}var d=e;return to.default=d,to}var ng;function pR(){if(ng)return Qi;ng=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=r(Rv()),t=r(dR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Qi.default=s,Qi}var ro={},no={},ig;function hR(){if(ig)return no;ig=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return no.default=t,no}var og;function gR(){if(og)return ro;og=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=i(hR()),t=i(Ov()),r=Ua();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 g=0;g<16;++g)c[f+g]=m[g];return c}return(0,r.unsafeStringify)(m)}var a=s;return ro.default=a,ro}var io={},oo={},sg;function mR(){if(sg)return oo;sg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.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 g=unescape(encodeURIComponent(s));s=[];for(let h=0;h<g.length;++h)s.push(g.charCodeAt(h))}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 g=0;g<f;++g){const h=new Uint32Array(16);for(let d=0;d<16;++d)h[d]=s[g*64+d*4]<<24|s[g*64+d*4+1]<<16|s[g*64+d*4+2]<<8|s[g*64+d*4+3];m[g]=h}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 g=0;g<f;++g){const h=new Uint32Array(80);for(let v=0;v<16;++v)h[v]=m[g][v];for(let v=16;v<80;++v)h[v]=t(h[v-3]^h[v-8]^h[v-14]^h[v-16],1);let d=u[0],y=u[1],x=u[2],p=u[3],w=u[4];for(let v=0;v<80;++v){const S=Math.floor(v/20),E=t(d,5)+e(S,y,x,p)+w+a[S]+h[v]>>>0;w=p,p=x,x=t(y,30)>>>0,y=d,d=E}u[0]=u[0]+d>>>0,u[1]=u[1]+y>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+p>>>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 oo.default=i,oo}var ag;function vR(){if(ag)return io;ag=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=r(Rv()),t=r(mR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return io.default=s,io}var so={},ug;function yR(){if(ug)return so;ug=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e="00000000-0000-0000-0000-000000000000";return so.default=e,so}var ao={},lg;function bR(){if(lg)return ao;lg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(Ba());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 ao.default=i,ao}var cg;function wR(){return cg||(cg=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=g(fR()),r=g(pR()),i=g(gR()),s=g(vR()),a=g(yR()),u=g(bR()),c=g(Ba()),f=g(Ua()),m=g(Av());function g(h){return h&&h.__esModule?h:{default:h}}})(Ml)),Ml}var Dl,fg;function xR(){if(fg)return Dl;fg=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},Dl=e,Dl}var Nl,dg;function SR(){if(dg)return Nl;dg=1;var e=xR();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",Nl=t,Nl}var Fl,pg;function ER(){if(pg)return Fl;pg=1;const{v4:e,validate:t}=wR(),r=SR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(m,g,h)=>{const d=g(m.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?d:d.padStart(h.shortIdLength,h.paddingChar)},c=(m,g)=>{const d=g(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[d[1],d[2],d[3],d[4],d[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Fl=(()=>{const m=(g,h)=>{const d=g||i.flickrBase58,y={...s,...h};if([...new Set(Array.from(d))].length!==d.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(d.length),p={shortIdLength:x,consistentLength:y.consistentLength,paddingChar:d[0]},w=r(r.HEX,d),v=r(d,r.HEX),S=()=>u(e(),w,p),R={alphabet:d,fromUUID:T=>u(T,w,p),maxLength:x,generate:S,new:S,toUUID:T=>c(T,v),uuid:e,validate:(T,k=!1)=>{if(!T||typeof T!="string")return!1;const U=y.consistentLength?T.length===x:T.length<=x,D=T.split("").every(N=>d.includes(N));return k===!1?U&&D:U&&D&&t(c(T,v))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Fl}var Zn=ER();const Pv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Zn.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Cv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return $.jsx(Ke.FdDown,{className:je(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(Ke.FdDown,{}):$.jsx(Ke.FdRight,{});default:return $.jsx(Ke.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),ef=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:c})=>{var y;const{key:f,children:m}=e,g=z.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),h=u&&typeof u=="function"?u(e,t,g,s,a):OR(e,t,g,c);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:h},f),TR(m||[],t,a,r,i,g.expanded,s,c,u)]}):null},_R=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=$.jsx(Tv,{children: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,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},TR=function(e,t,r,i,s,a,u,c,f){var m,g;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((h,d)=>y0(h.title,d.title))).map(h=>$.jsx(ef,{actions:u,node:h,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},h.key)):null},OR=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Pv,{showLines:!0,depth:t}),$.jsx(Cv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),_R(e,i)]})},Zs=e=>t=>e===t,AR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:m}){const[g,h]=z.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));z.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||h({...g,expandedKeys:u||g.expandedKeys})},[u]);const d=z.useCallback(v=>{if(!v)return;const S=g.expandedKeys.findIndex(Zs(v.key));let E=[];S===-1?(E=[...g.expandedKeys,v.key],h(()=>({...g,expandedKeys:E})),s&&s(E)):(E=g.expandedKeys.filter(R=>R!==v.key),h(()=>({...g,expandedKeys:E})),s&&s(E))},[g]),y=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;g.selectedKeys.findIndex(Zs(v.key))===-1&&h({...g,selectedKeys:[...g.selectedKeys,v.key]})},[g]),x=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;g.selectedKeys.findIndex(Zs(v.key))===-1&&h({...g,selectedKeys:[v.key]})},[g]),p=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable)){h({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Zs(v.key))!==-1&&h({...g,selectedKeys:g.selectedKeys.filter(R=>R!==v.key)})},[g]),w=z.useMemo(()=>({expand:d,select:y,selectSingle:x,deselect:p}),[p,d,y,x]);return $.jsx("div",{className:je("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(v=>$.jsx(ef,{node:v,searchQuery:a||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:w,renderNode:r,onNodeClick:i},v.key))})};function pa(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function et(){return et=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},et.apply(null,arguments)}function RR(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 PR={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 kv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var CR=/[A-Z]|^ms/g,kR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Iv=function(t){return t.charCodeAt(1)===45},hg=function(t){return t!=null&&typeof t!="boolean"},jl=kv(function(e){return Iv(e)?e:e.replace(CR,"-$&").toLowerCase()}),gg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kR,function(i,s,a){return Ar={name:s,styles:a,next:Ar},s})}return PR[t]!==1&&!Iv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Lo(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 Ar={name:s.name,styles:s.styles,next:Ar},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Ar={name:u.name,styles:u.styles,next:Ar},u=u.next;var c=a.styles+";";return c}return IR(e,t,r)}case"function":{if(e!==void 0){var f=Ar,m=r(e);return Ar=f,Lo(e,t,m)}break}}var g=r;if(t==null)return g;var h=t[g];return h!==void 0?h:g}function IR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Lo(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]+"}":hg(c)&&(i+=jl(a)+":"+gg(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++)hg(u[f])&&(i+=jl(a)+":"+gg(a,u[f])+";");else{var m=Lo(e,t,u);switch(a){case"animation":case"animationName":{i+=jl(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var mg=/label:\s*([^\s;{]+)\s*(;|$)/g,Ar;function $R(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="";Ar=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Lo(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Lo(r,t,e[c]),i){var f=a;s+=f[c]}mg.lastIndex=0;for(var m="",g;(g=mg.exec(s))!==null;)m+="-"+g[1];var h=RR(s)+m;return{name:h,styles:s,next:Ar}}var LR=function(t){return t()},MR=I.useInsertionEffect?I.useInsertionEffect:!1,DR=MR||LR,NR=!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||NR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},jR=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)}},zR=/^((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)-.*))$/,BR=kv(function(e){return zR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),UR=BR,WR=function(t){return t!=="theme"},vg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?UR:WR},yg=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},HR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),DR(function(){return jR(r,i,s)}),null},qR=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=yg(t,r,i),f=c||vg(s),m=!f("as");return function(){var g=arguments,h=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)h.push.apply(h,g);else{var d=g[0];h.push(d[0]);for(var y=g.length,x=1;x<y;x++)h.push(g[x],d[x])}var p=vc.withEmotionCache(function(w,v,S){var E=m&&w.as||s,R="",T=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=I.useContext(vc.ThemeContext)}typeof w.className=="string"?R=FR(v.registered,T,w.className):w.className!=null&&(R=w.className+" ");var D=$R(h.concat(T),v.registered,k);R+=v.key+"-"+D.name,u!==void 0&&(R+=" "+u);var N=m&&c===void 0?vg(E):f,G={};for(var j in w)m&&j==="as"||N(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),I.createElement(I.Fragment,null,I.createElement(HR,{cache:v,serialized:D,isStringTag:typeof E=="string"}),I.createElement(E,G))});return p.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=h,p.__emotion_forwardProp=c,Object.defineProperty(p,"toString",{value:function(){return"."+u}}),p.withComponent=function(w,v){var S=e(w,et({},r,v,{shouldForwardProp:yg(p,v,!0)}));return S.apply(void 0,h)},p}},ZR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Sa=qR.bind(null);ZR.forEach(function(e){Sa[e]=Sa(e)});var GR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gi=new WeakMap,Gs=new WeakMap,Vs={},zl=0,Lv=function(e){return e&&(e.host||Lv(e.parentNode))},VR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Lv(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})},KR=function(e,t,r,i){var s=VR(t,Array.isArray(e)?e:[e]);Vs[r]||(Vs[r]=new WeakMap);var a=Vs[r],u=[],c=new Set,f=new Set(s),m=function(h){!h||c.has(h)||(c.add(h),m(h.parentNode))};s.forEach(m);var g=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(d){if(c.has(d))g(d);else try{var y=d.getAttribute(i),x=y!==null&&y!=="false",p=(gi.get(d)||0)+1,w=(a.get(d)||0)+1;gi.set(d,p),a.set(d,w),u.push(d),p===1&&x&&Gs.set(d,!0),w===1&&d.setAttribute(r,"true"),x||d.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return g(t),c.clear(),zl++,function(){u.forEach(function(h){var d=gi.get(h)-1,y=a.get(h)-1;gi.set(h,d),a.set(h,y),d||(Gs.has(h)||h.removeAttribute(i),Gs.delete(h)),y||h.removeAttribute(r)}),zl--,zl||(gi=new WeakMap,gi=new WeakMap,Gs=new WeakMap,Vs={})}},YR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=GR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),KR(i,s,r,"aria-hidden")):function(){return null}},wc=function(e,t){return wc=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])},wc(e,t)};function Wa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rr=function(){return Rr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Rr.apply(this,arguments)};function Mv(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 xc(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 Sc(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 Ea(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var ha="right-scroll-bar-position",ga="width-before-scroll-bar",XR="with-scroll-bars-hidden",JR="--removed-body-scroll-bar-size";function Bl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function QR(e,t){var r=z.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 eP=typeof window<"u"?I.useLayoutEffect:I.useEffect,bg=new WeakMap;function tP(e,t){var r=QR(null,function(i){return e.forEach(function(s){return Bl(s,i)})});return eP(function(){var i=bg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||Bl(c,null)}),a.forEach(function(c){s.has(c)||Bl(c,u)})}bg.set(r,e)},[e]),r}function rP(e){return e}function nP(e,t){t===void 0&&(t=rP);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 g=u;u=[],g.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(g){u.push(g),m()},filter:function(g){return u=u.filter(g),r}}}};return s}function iP(e){e===void 0&&(e={});var t=nP(null);return t.options=Rr({async:!0,ssr:!1},e),t}var Dv=function(e){var t=e.sideCar,r=Mv(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 I.createElement(i,Rr({},r))};Dv.isSideCarExport=!0;function oP(e,t){return e.useMedium(t),Dv}var Nv=iP(),Ul=function(){},Ha=I.forwardRef(function(e,t){var r=I.useRef(null),i=I.useState({onScrollCapture:Ul,onWheelCapture:Ul,onTouchMoveCapture:Ul}),s=i[0],a=i[1],u=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,h=e.shards,d=e.sideCar,y=e.noRelative,x=e.noIsolation,p=e.inert,w=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,E=e.gapMode,R=Mv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=d,k=tP([r,t]),U=Rr(Rr({},R),s);return I.createElement(I.Fragment,null,g&&I.createElement(T,{sideCar:Nv,removeScrollBar:m,shards:h,noRelative:y,noIsolation:x,inert:p,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?I.cloneElement(I.Children.only(c),Rr(Rr({},U),{ref:k})):I.createElement(S,Rr({},U,{className:f,ref:k}),c))});Ha.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ha.classNames={fullWidth:ga,zeroRight:ha};var sP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sP();return t&&e.setAttribute("nonce",t),e}function uP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=aP())&&(uP(t,r),lP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fP=function(){var e=cP();return function(t,r){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Fv=function(){var e=fP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},dP={left:0,top:0,right:0,gap:0},Wl=function(e){return parseInt(e||"",10)||0},pP=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[Wl(r),Wl(i),Wl(s)]},hP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dP;var t=pP(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])}},gP=Fv(),bi="data-scroll-locked",mP=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(XR,` {
|
|
24
24
|
overflow: hidden `).concat(i,`;
|
|
25
25
|
padding-right: `).concat(c,"px ").concat(i,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
27
|
+
body[`).concat(bi,`] {
|
|
28
28
|
overflow: hidden `).concat(i,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
31
31
|
padding-left: `.concat(s,`px;
|
|
32
32
|
padding-top: `).concat(a,`px;
|
|
33
|
-
padding-right: `).concat(
|
|
33
|
+
padding-right: `).concat(u,`px;
|
|
34
34
|
margin-left:0;
|
|
35
35
|
margin-top:0;
|
|
36
36
|
margin-right: `).concat(c,"px ").concat(i,`;
|
|
37
37
|
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
40
|
+
.`).concat(ha,` {
|
|
41
41
|
right: `).concat(c,"px ").concat(i,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
44
|
+
.`).concat(ga,` {
|
|
45
45
|
margin-right: `).concat(c,"px ").concat(i,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(ha," .").concat(ha,` {
|
|
49
49
|
right: 0 `).concat(i,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(ga," .").concat(ga,` {
|
|
53
53
|
margin-right: 0 `).concat(i,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
56
|
+
body[`).concat(bi,`] {
|
|
57
|
+
`).concat(JR,": ").concat(c,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},
|
|
59
|
+
`)},wg=function(){var e=parseInt(document.body.getAttribute(bi)||"0",10);return isFinite(e)?e:0},vP=function(){I.useEffect(function(){return document.body.setAttribute(bi,(wg()+1).toString()),function(){var e=wg()-1;e<=0?document.body.removeAttribute(bi):document.body.setAttribute(bi,e.toString())}},[])},yP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;vP();var a=I.useMemo(function(){return hP(s)},[s]);return I.createElement(gP,{styles:mP(a,!t,s,r?"":"!important")})},Ec=!1;if(typeof window<"u")try{var Ks=Object.defineProperty({},"passive",{get:function(){return Ec=!0,!0}});window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{Ec=!1}var mi=Ec?{passive:!1}:!1,bP=function(e){return e.tagName==="TEXTAREA"},jv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bP(e)&&r[t]==="visible")},wP=function(e){return jv(e,"overflowY")},xP=function(e){return jv(e,"overflowX")},xg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=zv(e,i);if(s){var a=Bv(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},SP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},EP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},zv=function(e,t){return e==="v"?wP(t):xP(t)},Bv=function(e,t){return e==="v"?SP(t):EP(t)},_P=function(e,t){return e==="h"&&t==="rtl"?-1:1},TP=function(e,t,r,i,s){var a=_P(e,window.getComputedStyle(t).direction),u=a*i,c=r.target,f=t.contains(c),m=!1,g=u>0,h=0,d=0;do{if(!c)break;var y=Bv(e,c),x=y[0],p=y[1],w=y[2],v=p-w-a*x;(x||v)&&zv(e,c)&&(h+=v,d+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(g&&Math.abs(h)<1||!g&&Math.abs(d)<1)&&(m=!0),m},Ys=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sg=function(e){return[e.deltaX,e.deltaY]},Eg=function(e){return e&&"current"in e?e.current:e},OP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},AP=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},aP=0,di=[];function uP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(aP++)[0],a=$.useState(Ov)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=ya([e.lockRef.current],(e.shards||[]).map(fg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var h=qs(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,k=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&k.type==="range")return!1;var F=lg(U,k);if(!F)return!0;if(F?O=U:(O=U==="v"?"h":"v",F=lg(U,k)),!F)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var D=i.current||O;return iP(D,w,d,D==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==a)){var h="deltaY"in w?cg(w):qs(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&oP(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(fg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),v=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:lP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(d){r.current=qs(d),i.current=void 0},[]),g=$.useCallback(function(d){v(d.type,cg(d),d.target,c(d,e.lockRef.current))},[]),p=$.useCallback(function(d){v(d.type,qs(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",f,fi),document.addEventListener("touchmove",f,fi),document.addEventListener("touchstart",m,fi),function(){di=di.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,fi),document.removeEventListener("touchmove",f,fi),document.removeEventListener("touchstart",m,fi)}},[]);var b=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:sP(s)}):null,b?$.createElement(XR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cP=NR(_v,uP);var Pv=$.forwardRef(function(e,t){return $.createElement(Da,Or({},e,{ref:t,sideCar:cP}))});Pv.classNames=Da.classNames;const fP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},dP=$.useId||(()=>{});let pP=0;function Cv(e){const[t,r]=$.useState(dP());return fP((()=>{r((i=>i??String(pP++)))}),[e]),e||(t?`radix-${t}`:"")}function kv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function vn(...e){return $.useCallback(kv(...e),e)}const $v=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(dg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>dg(s)?$.createElement(gc,Xe({},i,{ref:t}),s.props.children):s))):$.createElement(gc,Xe({},i,{ref:t}),r)}));$v.displayName="Slot";const gc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...hP(i,r.props),ref:kv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));gc.displayName="SlotClone";const Iv=({children:e})=>$.createElement($.Fragment,null,e);function dg(e){return $.isValidElement(e)&&e.type===Iv}function hP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{a==null||a(...l),s==null||s(...l)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const yn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,l=s?$v:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Xe({},a,{ref:i}))}))})),{}),pg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Zc=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),v=$.useRef({}),m=$.useRef(l),g=$.useRef("none"),p=l?"mounted":"unmounted",[b,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Zs(v.current);g.current=b==="mounted"?d:"none"}),[b]),pg((()=>{const d=v.current,w=m.current;if(w!==l){const h=g.current,S=Zs(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),m.current=l}}),[l,x]),pg((()=>{if(c){const d=h=>{const S=Zs(v.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=Zs(v.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(b),ref:$.useCallback((d=>{d&&(v.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=vn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Zs(e){return(e==null?void 0:e.animationName)||"none"}Zc.displayName="Presence";let Ml=0;function gP(){$.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:hg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:hg()),Ml++,()=>{Ml===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Ml--}}),[])}function hg(){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:()=>{},Gc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...l}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return mP((()=>{f({})}),[]),c?Do.createPortal($.createElement(yn.div,Xe({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Un(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},vP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=$.useState(null),v=Un(s),m=Un(a),g=$.useRef(null),p=vn(t,(d=>f(d))),b=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(b.paused||!c)return;const S=h.target;c.contains(S)?g.current=S:kn(g.current,{select:!0})},w=function(h){!b.paused&&c&&(c.contains(h.relatedTarget)||kn(g.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,b.paused]),$.useEffect((()=>{if(c){yg.add(b);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",gg);c.addEventListener("focusScope.autoFocusOnMount",v),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(kn(O,{select:E}),document.activeElement!==R)return})((d=mg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&kn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",gg);c.addEventListener("focusScope.autoFocusOnUnmount",m),c.dispatchEvent(h),h.defaultPrevented||kn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",m),yg.remove(b)}),0)}}var d}),[c,v,m,b]);const x=$.useCallback((d=>{if(!r&&!i||b.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 k=mg(O),U=vg(k,O),F=vg(k.reverse(),O);return[U,F]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&kn(R,{select:!0})):(d.preventDefault(),r&&kn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,b.paused]);return $.createElement(yn.div,Xe({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function mg(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(!yP(r,{upTo:t}))return r}function yP(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 kn(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 yg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=bg(e,t),e.unshift(t)},remove(t){var r;e=bg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function bg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Lv(e){const t=Un(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const bP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let wg,Gs=0;function wP({disabled:e}){const t=$.useRef(!1);bP((()=>{if(e){let r=function(){Gs--,Gs===0&&(document.body.style.pointerEvents=wg)},i=function(s){t.current=s.pointerType!=="mouse"};return Gs===0&&(wg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Gs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Bt(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 xP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),SP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,v=$.useContext(xP),[m,g]=$.useState(null),[,p]=$.useState({}),b=vn(t,(k=>g(k))),x=Array.from(v.layers),[d]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=m?x.indexOf(m):-1,S=v.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(k){const U=Un(k),F=$.useRef(!1);return $.useEffect((()=>{const D=j=>{j.target&&!F.current&&Sg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),F.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>F.current=!0}})((k=>{const U=k.target,F=[...v.branches].some((D=>D.contains(U)));E&&!F&&(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const U=Un(k),F=$.useRef(!1);return $.useEffect((()=>{const D=G=>{G.target&&!F.current&&Sg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>F.current=!0,onBlurCapture:()=>F.current=!1}})((k=>{const U=k.target;[...v.branches].some((F=>F.contains(U)))||(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return Lv((k=>{h===v.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),wP({disabled:r}),$.useEffect((()=>{m&&(r&&v.layersWithOutsidePointerEventsDisabled.add(m),v.layers.add(m),xg())}),[m,r,v]),$.useEffect((()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),xg())}),[m,v]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(yn.div,Xe({},f,{ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function xg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Sg(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 Eg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,v=Array.isArray(f)?f[0]:f;l=v.inlineSize,c=v.blockSize}else{const f=e.getBoundingClientRect();l=f.width,c=f.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function EP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(mc=requestAnimationFrame(Mv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(mc))}}let mc;const $n=new Map;function Mv(){const e=[];$n.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)))})),mc=requestAnimationFrame(Mv)}function Fv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=EP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Kc(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return i.scopeName=e,[function(s,a){const l=$.createContext(a),c=r.length;function f(v){const{scope:m,children:g,...p}=v,b=(m==null?void 0:m[e][c])||l,x=$.useMemo((()=>p),Object.values(p));return $.createElement(b.Provider,{value:x},g)}return r=[...r,a],f.displayName=s+"Provider",[f,function(v,m){const g=(m==null?void 0:m[e][c])||l,p=$.useContext(g);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${v}\` must be used within \`${s}\``)}]},_P(i,...t)]}function _P(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function OP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:v,collisionTolerance:m=0}){if(!e||!t||!v)return{popperStyles:AP,arrowStyles:Fl};const g=(function(U,F,D=0,G=0,j){const L=j?j.height:0,B=_g(F,U,"x"),q=_g(F,U,"y"),C=q.before-D-L,J=q.after+D+L,Y=B.before-D-L,te=B.after+D+L;return{top:{start:{x:B.start+G,y:C},center:{x:B.center,y:C},end:{x:B.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:B.start+G,y:J},center:{x:B.center,y:J},end:{x:B.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),p=g[s][l];if(f===!1){const U=Og(p);let F=Fl;return r&&(F=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Ag(t,s,l,i,r)},arrowStyles:F,placedSide:s,placedAlign:l}}const b=DOMRect.fromRect({...t,...p}),x=(d=v,w=m,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=Pg(b,x),S=g[Rg(s)][l],E=(function(U,F,D){const G=Rg(U);return F[U]&&!D[G]?G:U})(s,h,Pg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,F,D,G,j){const L=D==="top"||D==="bottom",B=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=F[C]>U[C];return(G==="start"||G==="center")&&(j[B]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[B]&&!J)?"start":G})(t,e,s,l,h),O=Og(g[E][R]);let k=Fl;return r&&(k=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Ag(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function _g(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:i-l,start:i,center:i+(a-l)/2,end:i+a-l,after:i+a}}function Og(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 Ag(e,t,r,i,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,f=l/2+i;let v="",m="";return a?(v={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],m=t==="top"?`${e.height+c}px`:-c+"px"):(v=t==="left"?`${e.width+c}px`:-c+"px",m={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${v} ${m}`}const AP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Fl={position:"absolute",opacity:0};function Tg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),v={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:TP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(v.left=`${r}px`),s==="center"&&(v.left=`${a}px`),s==="end"&&(v.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(v.top=`${r}px`),s==="center"&&(v.top=`${l}px`),s==="end"&&(v.bottom=`${r}px`)),v}function TP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Rg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Pg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Dv,Na]=Kc("Popper"),[RP,Nv]=Dv("Popper"),PP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(RP,{scope:t,anchor:i,onAnchorChange:s},r)},CP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Nv("PopperAnchor",r),l=$.useRef(null),c=vn(t,l);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Xe({},s,{ref:c}))})),[kP,pM]=Dv("PopperContent"),$P=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...v}=e,m=Nv("PopperContent",r),[g,p]=$.useState(),b=Fv(m.anchor),[x,d]=$.useState(null),w=Eg(x),[h,S]=$.useState(null),E=Eg(h),R=vn(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){B({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:F,placedSide:D,placedAlign:G}=OP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(kP,{scope:r,arrowStyles:F,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Xe({"data-side":D,"data-align":G},v,{style:{...v.style,animation:j?void 0:"none"},ref:R}))))})),jv=PP,zv=CP,Wv=$P;function Uv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:v}){const m=$.useState(f),[g]=m,p=$.useRef(g),b=Un(v);return $.useEffect((()=>{p.current!==g&&(b(g),p.current=g)}),[g,p,b]),m})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i,c=Un(r);return[l,$.useCallback((f=>{if(a){const v=f,m=typeof f=="function"?v(e):f;m!==e&&c(m)}else s(f)}),[a,e,s,c])]}const[IP]=Kc("Popover",[Na]),Vc=Na(),[LP,zo]=IP("Popover"),MP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=Vc(t),f=$.useRef(null),[v,m]=$.useState(!1),[g=!1,p]=Uv({prop:i,defaultProp:s,onChange:a});return $.createElement(jv,c,$.createElement(LP,{scope:t,contentId:Cv(),triggerRef:f,open:g,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((b=>!b))),[p]),hasCustomAnchor:v,onCustomAnchorAdd:$.useCallback((()=>m(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>m(!1)),[]),modal:l},r))},FP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=zo("PopoverTrigger",r),a=Vc(r),l=vn(t,s.triggerRef),c=$.createElement(yn.button,Xe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hv(s.open)},i,{ref:l,onClick:Bt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(zv,Xe({asChild:!0},a),c)})),DP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=zo("PopoverContent",e.__scopePopover);return $.createElement(Zc,{present:r||s.open},s.modal?$.createElement(NP,Xe({},i,{ref:t})):$.createElement(jP,Xe({},i,{ref:t})))})),NP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=zo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=vn(t,l),f=$.useRef(!1);$.useEffect((()=>{const m=l.current;if(m)return PR(m)}),[]);const v=i?Gc:$.Fragment;return $.createElement(v,null,$.createElement(Pv,{allowPinchZoom:r},$.createElement(Bv,Xe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(m=>{var g;m.preventDefault(),f.current||(g=a.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:Bt(e.onPointerDownOutside,(m=>{const g=m.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,b=g.button===2||p;f.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Bt(e.onFocusOutside,(m=>m.preventDefault()),{checkForDefaultPrevented:!1})}))))})),jP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=zo("PopoverContent",e.__scopePopover),a=$.useRef(!1),l=r?Gc:$.Fragment;return $.createElement(l,null,$.createElement(Bv,Xe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,v;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(v=s.triggerRef.current)===null||v===void 0||v.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,v;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const m=c.target;!((v=s.triggerRef.current)===null||v===void 0)&&v.contains(m)&&c.preventDefault()}})))})),Bv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,...g}=e,p=zo("PopoverContent",r),b=Vc(r);return gP(),$.createElement(vP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(SP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>p.onOpenChange(!1)},$.createElement(Wv,Xe({"data-state":Hv(p.open),role:"dialog",id:p.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Hv(e){return e?"open":"closed"}const zP=MP,WP=FP,UP=DP;var fa=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(fa||{}),Dl={},ro={},Ks={},Vs={},Ys={exports:{}},Xs={exports:{}},Ie={};/** @license React v16.13.1
|
|
62
|
+
`)},RP=0,vi=[];function PP(e){var t=I.useRef([]),r=I.useRef([0,0]),i=I.useRef(),s=I.useState(RP++)[0],a=I.useState(Fv)[0],u=I.useRef(e);I.useEffect(function(){u.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Ea([e.lockRef.current],(e.shards||[]).map(Eg),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=I.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!u.current.allowPinchZoom;var v=Ys(p),S=r.current,E="deltaX"in p?p.deltaX:S[0]-v[0],R="deltaY"in p?p.deltaY:S[1]-v[1],T,k=p.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in p&&U==="h"&&k.type==="range")return!1;var D=xg(U,k);if(!D)return!0;if(D?T=U:(T=U==="v"?"h":"v",D=xg(U,k)),!D)return!1;if(!i.current&&"changedTouches"in p&&(E||R)&&(i.current=T),!T)return!0;var N=i.current||T;return TP(N,w,p,N==="h"?E:R)},[]),f=I.useCallback(function(p){var w=p;if(!(!vi.length||vi[vi.length-1]!==a)){var v="deltaY"in w?Sg(w):Ys(w),S=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&OP(T.delta,v)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(Eg).filter(Boolean).filter(function(T){return T.contains(w.target)}),R=E.length>0?c(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=I.useCallback(function(p,w,v,S){var E={name:p,delta:w,target:v,should:S,shadowParent:CP(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),g=I.useCallback(function(p){r.current=Ys(p),i.current=void 0},[]),h=I.useCallback(function(p){m(p.type,Sg(p),p.target,c(p,e.lockRef.current))},[]),d=I.useCallback(function(p){m(p.type,Ys(p),p.target,c(p,e.lockRef.current))},[]);I.useEffect(function(){return vi.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",f,mi),document.addEventListener("touchmove",f,mi),document.addEventListener("touchstart",g,mi),function(){vi=vi.filter(function(p){return p!==a}),document.removeEventListener("wheel",f,mi),document.removeEventListener("touchmove",f,mi),document.removeEventListener("touchstart",g,mi)}},[]);var y=e.removeScrollBar,x=e.inert;return I.createElement(I.Fragment,null,x?I.createElement(a,{styles:AP(s)}):null,y?I.createElement(yP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kP=oP(Nv,PP);var Uv=I.forwardRef(function(e,t){return I.createElement(Ha,Rr({},e,{ref:t,sideCar:kP}))});Uv.classNames=Ha.classNames;const IP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},$P=I.useId||(()=>{});let LP=0;function Wv(e){const[t,r]=I.useState($P());return IP((()=>{r((i=>i??String(LP++)))}),[e]),e||(t?`radix-${t}`:"")}function Hv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function xn(...e){return I.useCallback(Hv(...e),e)}const qv=I.forwardRef(((e,t)=>{const{children:r,...i}=e;return I.Children.toArray(r).some(_g)?I.createElement(I.Fragment,null,I.Children.map(r,(s=>_g(s)?I.createElement(_c,et({},i,{ref:t}),s.props.children):s))):I.createElement(_c,et({},i,{ref:t}),r)}));qv.displayName="Slot";const _c=I.forwardRef(((e,t)=>{const{children:r,...i}=e;return I.isValidElement(r)?I.cloneElement(r,{...MP(i,r.props),ref:Hv(t,r.ref)}):I.Children.count(r)>1?I.Children.only(null):null}));_c.displayName="SlotClone";const Zv=({children:e})=>I.createElement(I.Fragment,null,e);function _g(e){return I.isValidElement(e)&&e.type===Zv}function MP(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 Sn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:I.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?qv:t;return I.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),I.createElement(u,et({},a,{ref:i}))}))})),{}),Tg=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},tf=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=I.useState(),m=I.useRef({}),g=I.useRef(u),h=I.useRef("none"),d=u?"mounted":"unmounted",[y,x]=(function(p,w){return I.useReducer(((v,S)=>{const E=w[v][S];return E??v}),p)})(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect((()=>{const p=Xs(m.current);h.current=y==="mounted"?p:"none"}),[y]),Tg((()=>{const p=m.current,w=g.current;if(w!==u){const v=h.current,S=Xs(p);u?x("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?x("UNMOUNT"):x(w&&v!==S?"ANIMATION_OUT":"UNMOUNT"),g.current=u}}),[u,x]),Tg((()=>{if(c){const p=v=>{const S=Xs(m.current).includes(v.animationName);v.target===c&&S&&x("ANIMATION_END")},w=v=>{v.target===c&&(h.current=Xs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",p),c.addEventListener("animationend",p),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",p),c.removeEventListener("animationend",p)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:I.useCallback((p=>{p&&(m.current=getComputedStyle(p)),f(p)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):I.Children.only(r),a=xn(i.ref,s.ref);return typeof r=="function"||i.isPresent?I.cloneElement(s,{ref:a}):null};function Xs(e){return(e==null?void 0:e.animationName)||"none"}tf.displayName="Presence";let Hl=0;function DP(){I.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Og()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Og()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Hl--}}),[])}function Og(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const NP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},rf=I.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]=I.useState({});return NP((()=>{f({})}),[]),c?Pi.createPortal(I.createElement(Sn.div,et({"data-radix-portal":""},u,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Gn(e){const t=I.useRef(e);return I.useEffect((()=>{t.current=e})),I.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const Ag={bubbles:!1,cancelable:!0},FP=I.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=I.useState(null),m=Gn(s),g=Gn(a),h=I.useRef(null),d=xn(t,(p=>f(p))),y=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect((()=>{if(i){let p=function(v){if(y.paused||!c)return;const S=v.target;c.contains(S)?h.current=S:Mn(h.current,{select:!0})},w=function(v){!y.paused&&c&&(c.contains(v.relatedTarget)||Mn(h.current,{select:!0}))};return document.addEventListener("focusin",p),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w)}}}),[i,c,y.paused]),I.useEffect((()=>{if(c){Cg.add(y);const w=document.activeElement;if(!c.contains(w)){const v=new Event("focusScope.autoFocusOnMount",Ag);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(v),v.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const T of S)if(Mn(T,{select:E}),document.activeElement!==R)return})((p=Rg(c),p.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Mn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const v=new Event("focusScope.autoFocusOnUnmount",Ag);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(v),v.defaultPrevented||Mn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),Cg.remove(y)}),0)}}var p}),[c,m,g,y]);const x=I.useCallback((p=>{if(!r&&!i||y.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const S=p.currentTarget,[E,R]=(function(T){const k=Rg(T),U=Pg(k,T),D=Pg(k.reverse(),T);return[U,D]})(S);E&&R?p.shiftKey||v!==R?p.shiftKey&&v===E&&(p.preventDefault(),r&&Mn(R,{select:!0})):(p.preventDefault(),r&&Mn(E,{select:!0})):v===S&&p.preventDefault()}}),[r,i,y.paused]);return I.createElement(Sn.div,et({tabIndex:-1},u,{ref:d,onKeyDown:x}))}));function Rg(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 Pg(e,t){for(const r of e)if(!jP(r,{upTo:t}))return r}function jP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Cg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=kg(e,t),e.unshift(t)},remove(t){var r;e=kg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function kg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Gv(e){const t=Gn(e);I.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const zP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{};let Ig,Js=0;function BP({disabled:e}){const t=I.useRef(!1);zP((()=>{if(e){let r=function(){Js--,Js===0&&(document.body.style.pointerEvents=Ig)},i=function(s){t.current=s.pointerType!=="mouse"};return Js===0&&(Ig=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Js++,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 UP=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WP=I.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,m=I.useContext(UP),[g,h]=I.useState(null),[,d]=I.useState({}),y=xn(t,(k=>h(k))),x=Array.from(m.layers),[p]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(p),v=g?x.indexOf(g):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=v>=w,R=(function(k){const U=Gn(k),D=I.useRef(!1);return I.useEffect((()=>{const N=j=>{j.target&&!D.current&&Lg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),D.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",N)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",N)}}),[U]),{onPointerDownCapture:()=>D.current=!0}})((k=>{const U=k.target,D=[...m.branches].some((N=>N.contains(U)));E&&!D&&(s==null||s(k),u==null||u(k),k.defaultPrevented||c==null||c())})),T=(function(k){const U=Gn(k),D=I.useRef(!1);return I.useEffect((()=>{const N=G=>{G.target&&!D.current&&Lg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",N),()=>document.removeEventListener("focusin",N)}),[U]),{onFocusCapture:()=>D.current=!0,onBlurCapture:()=>D.current=!1}})((k=>{const U=k.target;[...m.branches].some((D=>D.contains(U)))||(a==null||a(k),u==null||u(k),k.defaultPrevented||c==null||c())}));return Gv((k=>{v===m.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),BP({disabled:r}),I.useEffect((()=>{g&&(r&&m.layersWithOutsidePointerEventsDisabled.add(g),m.layers.add(g),$g())}),[g,r,m]),I.useEffect((()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),$g())}),[g,m]),I.useEffect((()=>{const k=()=>d({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),I.createElement(Sn.div,et({},f,{ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function $g(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Lg(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 Mg(e){const[t,r]=I.useState(void 0);return I.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 HP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Tc=requestAnimationFrame(Vv))):(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(Tc))}}let Tc;const Dn=new Map;function Vv(){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)))})),Tc=requestAnimationFrame(Vv)}function Kv(e){const[t,r]=I.useState();return I.useEffect((()=>{if(e){const i=HP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function nf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>I.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return I.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=I.createContext(a),c=r.length;function f(m){const{scope:g,children:h,...d}=m,y=(g==null?void 0:g[e][c])||u,x=I.useMemo((()=>d),Object.values(d));return I.createElement(y.Provider,{value:x},h)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,g){const h=(g==null?void 0:g[e][c])||u,d=I.useContext(h);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},qP(i,...t)]}function qP(...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 I.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function ZP({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:g=0}){if(!e||!t||!m)return{popperStyles:GP,arrowStyles:ql};const h=(function(U,D,N=0,G=0,j){const M=j?j.height:0,W=Dg(D,U,"x"),q=Dg(D,U,"y"),C=q.before-N-M,J=q.after+N+M,Y=W.before-N-M,te=W.after+N+M;return{top:{start:{x:W.start+G,y:C},center:{x:W.center,y:C},end:{x:W.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:W.start+G,y:J},center:{x:W.center,y:J},end:{x:W.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),d=h[s][u];if(f===!1){const U=Ng(d);let D=ql;return r&&(D=jg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...U,"--radix-popper-transform-origin":Fg(t,s,u,i,r)},arrowStyles:D,placedSide:s,placedAlign:u}}const y=DOMRect.fromRect({...t,...d}),x=(p=m,w=g,DOMRect.fromRect({width:p.width-2*w,height:p.height-2*w,x:p.left+w,y:p.top+w}));var p,w;const v=Bg(y,x),S=h[zg(s)][u],E=(function(U,D,N){const G=zg(U);return D[U]&&!N[G]?G:U})(s,v,Bg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,D,N,G,j){const M=N==="top"||N==="bottom",W=M?"left":"top",q=M?"right":"bottom",C=M?"width":"height",J=D[C]>U[C];return(G==="start"||G==="center")&&(j[W]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[W]&&!J)?"start":G})(t,e,s,u,v),T=Ng(h[E][R]);let k=ql;return r&&(k=jg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...T,"--radix-popper-transform-origin":Fg(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Dg(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 Ng(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="",g="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${g}`}const GP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ql={position:"absolute",opacity:0};function jg({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:VP(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 VP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function zg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Bg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Yv,qa]=nf("Popper"),[KP,Xv]=Yv("Popper"),YP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=I.useState(null);return I.createElement(KP,{scope:t,anchor:i,onAnchorChange:s},r)},XP=I.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),u=I.useRef(null),c=xn(t,u);return I.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:I.createElement(Sn.div,et({},s,{ref:c}))})),[JP,o2]=Yv("PopperContent"),QP=I.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,g=Xv("PopperContent",r),[h,d]=I.useState(),y=Kv(g.anchor),[x,p]=I.useState(null),w=Mg(x),[v,S]=I.useState(null),E=Mg(v),R=xn(t,(M=>p(M))),T=(function(){const[M,W]=I.useState(void 0);return I.useEffect((()=>{let q;function C(){W({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),M})(),k=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:D,placedSide:N,placedAlign:G}=ZP({anchorRect:y,popperSize:w,arrowSize:E,arrowOffset:h,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=N!==void 0;return I.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},I.createElement(JP,{scope:r,arrowStyles:D,onArrowChange:S,onArrowOffsetChange:d},I.createElement(Sn.div,et({"data-side":N,"data-align":G},m,{style:{...m.style,animation:j?void 0:"none"},ref:R}))))})),Jv=YP,Qv=XP,ey=QP;function ty({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const g=I.useState(f),[h]=g,d=I.useRef(h),y=Gn(m);return I.useEffect((()=>{d.current!==h&&(y(h),d.current=h)}),[h,d,y]),g})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,c=Gn(r);return[u,I.useCallback((f=>{if(a){const m=f,g=typeof f=="function"?m(e):f;g!==e&&c(g)}else s(f)}),[a,e,s,c])]}const[eC]=nf("Popover",[qa]),of=qa(),[tC,qo]=eC("Popover"),rC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=of(t),f=I.useRef(null),[m,g]=I.useState(!1),[h=!1,d]=ty({prop:i,defaultProp:s,onChange:a});return I.createElement(Jv,c,I.createElement(tC,{scope:t,contentId:Wv(),triggerRef:f,open:h,onOpenChange:d,onOpenToggle:I.useCallback((()=>d((y=>!y))),[d]),hasCustomAnchor:m,onCustomAnchorAdd:I.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:I.useCallback((()=>g(!1)),[]),modal:u},r))},nC=I.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=qo("PopoverTrigger",r),a=of(r),u=xn(t,s.triggerRef),c=I.createElement(Sn.button,et({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ny(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:I.createElement(Qv,et({asChild:!0},a),c)})),iC=I.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=qo("PopoverContent",e.__scopePopover);return I.createElement(tf,{present:r||s.open},s.modal?I.createElement(oC,et({},i,{ref:t})):I.createElement(sC,et({},i,{ref:t})))})),oC=I.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=qo("PopoverContent",e.__scopePopover),u=I.useRef(null),c=xn(t,u),f=I.useRef(!1);I.useEffect((()=>{const g=u.current;if(g)return YR(g)}),[]);const m=i?rf:I.Fragment;return I.createElement(m,null,I.createElement(Uv,{allowPinchZoom:r},I.createElement(ry,et({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(g=>{var h;g.preventDefault(),f.current||(h=a.triggerRef.current)===null||h===void 0||h.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(g=>{const h=g.detail.originalEvent,d=h.button===0&&h.ctrlKey===!0,y=h.button===2||d;f.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),sC=I.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=qo("PopoverContent",e.__scopePopover),a=I.useRef(!1),u=r?rf:I.Fragment;return I.createElement(u,null,I.createElement(ry,et({},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 g=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(g)&&c.preventDefault()}})))})),ry=I.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,...h}=e,d=qo("PopoverContent",r),y=of(r);return DP(),I.createElement(FP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},I.createElement(WP,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1)},I.createElement(ey,et({"data-state":ny(d.open),role:"dialog",id:d.contentId},y,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ny(e){return e?"open":"closed"}const aC=rC,uC=nC,lC=iC;var ma=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ma||{}),Zl={},uo={},Qs={},ea={},ta={exports:{}},ra={exports:{}},Le={};/** @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 Ug;function cC(){if(Ug)return Le;Ug=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=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 k=T.$$typeof;switch(k){case t:switch(T=T.type,T){case f:case m:case i:case a:case s:case h:return T;default:switch(T=T&&T.$$typeof,T){case c:case g:case x:case y:case u:return T;default:return k}}case r:return k}}}function R(T){return E(T)===m}return Le.AsyncMode=f,Le.ConcurrentMode=m,Le.ContextConsumer=c,Le.ContextProvider=u,Le.Element=t,Le.ForwardRef=g,Le.Fragment=i,Le.Lazy=x,Le.Memo=y,Le.Portal=r,Le.Profiler=a,Le.StrictMode=s,Le.Suspense=h,Le.isAsyncMode=function(T){return R(T)||E(T)===f},Le.isConcurrentMode=R,Le.isContextConsumer=function(T){return E(T)===c},Le.isContextProvider=function(T){return E(T)===u},Le.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Le.isForwardRef=function(T){return E(T)===g},Le.isFragment=function(T){return E(T)===i},Le.isLazy=function(T){return E(T)===x},Le.isMemo=function(T){return E(T)===y},Le.isPortal=function(T){return E(T)===r},Le.isProfiler=function(T){return E(T)===a},Le.isStrictMode=function(T){return E(T)===s},Le.isSuspense=function(T){return E(T)===h},Le.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===m||T===a||T===s||T===h||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===y||T.$$typeof===u||T.$$typeof===c||T.$$typeof===g||T.$$typeof===w||T.$$typeof===v||T.$$typeof===S||T.$$typeof===p)},Le.typeOf=E,Le}var Me={};/** @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 Wg;function fC(){return Wg||(Wg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=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(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===m||ie===a||ie===s||ie===h||ie===d||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===y||ie.$$typeof===u||ie.$$typeof===c||ie.$$typeof===g||ie.$$typeof===w||ie.$$typeof===v||ie.$$typeof===S||ie.$$typeof===p)}function R(ie){if(typeof ie=="object"&&ie!==null){var bt=ie.$$typeof;switch(bt){case t:var ft=ie.type;switch(ft){case f:case m:case i:case a:case s:case h:return ft;default:var br=ft&&ft.$$typeof;switch(br){case c:case g:case x:case y:case u:return br;default:return bt}}case r:return bt}}}var T=f,k=m,U=c,D=u,N=t,G=g,j=i,M=x,W=y,q=r,C=a,J=s,Y=h,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===f}function Z(ie){return R(ie)===m}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===u}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===g}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===y}function me(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Oe(ie){return R(ie)===s}function Ye(ie){return R(ie)===h}Me.AsyncMode=T,Me.ConcurrentMode=k,Me.ContextConsumer=U,Me.ContextProvider=D,Me.Element=N,Me.ForwardRef=G,Me.Fragment=j,Me.Lazy=M,Me.Memo=W,Me.Portal=q,Me.Profiler=C,Me.StrictMode=J,Me.Suspense=Y,Me.isAsyncMode=de,Me.isConcurrentMode=Z,Me.isContextConsumer=Q,Me.isContextProvider=se,Me.isElement=ue,Me.isForwardRef=ne,Me.isFragment=ce,Me.isLazy=fe,Me.isMemo=ye,Me.isPortal=me,Me.isProfiler=Ee,Me.isStrictMode=Oe,Me.isSuspense=Ye,Me.isValidElementType=E,Me.typeOf=R})()),Me}var Hg;function iy(){return Hg||(Hg=1,process.env.NODE_ENV==="production"?ra.exports=cC():ra.exports=fC()),ra.exports}/*
|
|
77
77
|
object-assign
|
|
78
78
|
(c) Sindre Sorhus
|
|
79
79
|
@license MIT
|
|
80
|
-
*/var
|
|
81
|
-
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ze(ye,Ae,ne,ce,fe+"."+Ae,r);if(ie)return ie}return null}return w(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Ul}var Bl,Ng;function KP(){if(Ng)return Bl;Ng=1;var e=Yc();function t(){}function r(){}return r.resetWarningCache=t,Bl=function(){function i(l,c,f,v,m,g){if(g!==e){var p=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 p.name="Invariant Violation",p}}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},Bl}var jg;function VP(){if(jg)return Ys.exports;if(jg=1,process.env.NODE_ENV!=="production"){var e=qv(),t=!0;Ys.exports=GP()(e.isElement,t)}else Ys.exports=KP()();return Ys.exports}var zg;function YP(){return zg||(zg=1,(function(e){(function(t,r){r(e,W,VP())})(Vs,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(i);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function v(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 O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(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 p(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 b=!1;function x(S){b=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 b?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 k=S.screenX,U=S.screenY;return{x:k,y:U}}var h=(function(S){p(E,S);function E(){var R;v(this,E);for(var O=arguments.length,k=Array(O),U=0;U<O;U++)k[U]=arguments[U];var F=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return F._handleSwipeStart=F._handleSwipeStart.bind(F),F._handleSwipeMove=F._handleSwipeMove.bind(F),F._handleSwipeEnd=F._handleSwipeEnd.bind(F),F._onMouseDown=F._onMouseDown.bind(F),F._onMouseMove=F._onMouseMove.bind(F),F._onMouseUp=F._onMouseUp.bind(F),F._setSwiperRef=F._setSwiperRef.bind(F),F}return m(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 k=w(O),U=k.x,F=k.y;this.moveStart={x:U,y:F},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),U=k.x,F=k.y,D=U-this.moveStart.x,G=F-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:D,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&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 k=O.className,U=O.style,F=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:k,style:U},D),F)}}]),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})})(Vs)),Vs}var Wg;function Gv(){return Wg||(Wg=1,(function(e){(function(t,r){r(e,YP())})(Ks,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})})(Ks)),Ks}var no={},Ug;function Kv(){if(Ug)return no;Ug=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e=t(nv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return no.default=i,no}var io={},oo={},Bg;function XP(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return oo.outerWidth=e,oo}var so={},Hg;function Xc(){if(Hg)return so;Hg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+l.join(",")+")";return c+f};return so.default=e,so}var ao={},qg;function Vv(){if(qg)return ao;qg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(){return window};return ao.default=e,ao}var Zg;function Yv(){if(Zg)return io;Zg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=f(W),t=l(Kv()),r=XP(),i=l(Xc()),s=l(Gv()),a=l(Vv());function l(F){return F&&F.__esModule?F:{default:F}}function c(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return c=function(){return F},F}function f(F){if(F&&F.__esModule)return F;if(F===null||v(F)!=="object"&&typeof F!="function")return{default:F};var D=c();if(D&&D.has(F))return D.get(F);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in F)if(Object.prototype.hasOwnProperty.call(F,L)){var B=j?Object.getOwnPropertyDescriptor(F,L):null;B&&(B.get||B.set)?Object.defineProperty(G,L,B):G[L]=F[L]}return G.default=F,D&&D.set(F,G),G}function v(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(G){return typeof G}:v=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},v(F)}function m(){return m=Object.assign||function(F){for(var D=1;D<arguments.length;D++){var G=arguments[D];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(F[j]=G[j])}return F},m.apply(this,arguments)}function g(F,D){if(!(F instanceof D))throw new TypeError("Cannot call a class as a function")}function p(F,D){for(var G=0;G<D.length;G++){var j=D[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,j.key,j)}}function b(F,D,G){return D&&p(F.prototype,D),F}function x(F,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(D&&D.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),D&&d(F,D)}function d(F,D){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(F,D)}function w(F){var D=E();return function(){var j=R(F),L;if(D){var B=R(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return h(this,L)}}function h(F,D){return D&&(v(D)==="object"||typeof D=="function")?D:S(F)}function S(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}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(F){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(F)}function O(F,D,G){return D in F?Object.defineProperty(F,D,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[D]=G,F}var k=function(D){return D.hasOwnProperty("key")},U=(function(F){x(G,F);var D=w(G);function G(j){var L;return g(this,G),L=D.call(this,j),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,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),Y=J<B,te=Y?B-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(L),"handleClickItem",function(B,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(B,q)}}),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 q=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),Y=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){L.itemsListRef.style[se]=(0,i.default)(Q,"%",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:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return b(G,[{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,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",m({},J,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},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(!q),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:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return io.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}),io}var uo={},Gg;function JP(){if(Gg)return uo;Gg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=function(){return document};return uo.default=e,uo}var Ut={},Kg;function Xv(){if(Kg)return Ut;Kg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.setPosition=Ut.getPosition=Ut.isKeyboardEvent=Ut.defaultStatusFormatter=Ut.noop=void 0;var e=W,t=r(Xc());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ut.noop=i;var s=function(v,m){return"".concat(v," of ").concat(m)};Ut.defaultStatusFormatter=s;var a=function(v){return v?v.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=a;var l=function(v,m){if(m.infiniteLoop&&++v,v===0)return 0;var g=e.Children.count(m.children);if(m.centerMode&&m.axis==="horizontal"){var p=-v*m.centerSlidePercentage,b=g-1;return v&&(v!==b||m.infiniteLoop)?p+=(100-m.centerSlidePercentage)/2:v===b&&(p+=100-m.centerSlidePercentage),p}return-v*100};Ut.getPosition=l;var c=function(v,m){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(v,"%",m)}),g};return Ut.setPosition=c,Ut}var fr={},Vg;function QP(){if(Vg)return fr;Vg=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.fadeAnimationHandler=fr.slideStopSwipingHandler=fr.slideSwipeAnimationHandler=fr.slideAnimationHandler=void 0;var e=W,t=i(Xc()),r=Xv();function i(g){return g&&g.__esModule?g:{default:g}}function s(g,p){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(g,d).enumerable})),b.push.apply(b,x)}return b}function a(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?s(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(b,x))})}return g}function l(g,p,b){return p in g?Object.defineProperty(g,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[p]=b,g}var c=function(p,b){var x={},d=b.selectedItem,w=d,h=e.Children.count(p.children)-1,S=p.infiniteLoop&&(d<0||d>h);if(S)return w<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,p.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(d,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},b.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};fr.slideAnimationHandler=c;var f=function(p,b,x,d){var w={},h=b.axis==="horizontal",S=e.Children.count(b.children),E=0,R=(0,r.getPosition)(x.selectedItem,b),O=b.infiniteLoop?(0,r.getPosition)(S-1,b)-100:(0,r.getPosition)(S-1,b),k=h?p.x:p.y,U=k;R===E&&k>0&&(U=0),R===O&&k<0&&(U=0);var F=R+100/(x.itemSize/U),D=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&D&&(x.selectedItem===0&&F>-100?F-=S*100:x.selectedItem===S-1&&F<-S*100&&(F+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(F,b.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};fr.slideSwipeAnimationHandler=f;var v=function(p,b){var x=(0,r.getPosition)(b.selectedItem,p),d=(0,r.setPosition)(x,p.axis);return{itemListStyle:d}};fr.slideStopSwipingHandler=v;var m=function(p,b){var x=p.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 b.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 fr.fadeAnimationHandler=m,fr}var Yg;function eC(){if(Yg)return ro;Yg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=m(W),t=f(Gv()),r=f(Kv()),i=f(Yv()),s=f(JP()),a=f(Vv()),l=Xv(),c=QP();function f(j){return j&&j.__esModule?j:{default:j}}function v(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return v=function(){return j},j}function m(j){if(j&&j.__esModule)return j;if(j===null||g(j)!=="object"&&typeof j!="function")return{default:j};var L=v();if(L&&L.has(j))return L.get(j);var B={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(B,C,J):B[C]=j[C]}return B.default=j,L&&L.set(j,B),B}function g(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(B){return typeof B}:g=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(j)}function p(){return p=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(j[q]=B[q])}return j},p.apply(this,arguments)}function b(j,L){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),B.push.apply(B,q)}return B}function x(j){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?b(Object(B),!0).forEach(function(q){D(j,q,B[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(B)):b(Object(B)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(B,q))})}return j}function d(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function w(j,L){for(var B=0;B<L.length;B++){var q=L[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function h(j,L,B){return L&&w(j.prototype,L),j}function S(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&E(j,L)}function E(j,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,L)}function R(j){var L=U();return function(){var q=F(j),C;if(L){var J=F(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(j,L){return L&&(g(L)==="object"||typeof L=="function")?L:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}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 F(j){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},F(j)}function D(j,L,B){return L in j?Object.defineProperty(j,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):j[L]=B,j}var G=(function(j){S(B,j);var L=R(B);function B(q){var C;d(this,B),C=L.call(this,q),D(k(C),"thumbsRef",void 0),D(k(C),"carouselWrapperRef",void 0),D(k(C),"listRef",void 0),D(k(C),"itemsRef",void 0),D(k(C),"timer",void 0),D(k(C),"animationHandler",void 0),D(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),D(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),D(k(C),"setListRef",function(Y){C.listRef=Y}),D(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),D(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),D(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),D(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),D(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),D(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),D(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),D(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),D(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),D(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),D(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),D(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),D(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),D(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),D(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),D(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),D(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),D(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),D(k(C),"onClickNext",function(){C.increment(1)}),D(k(C),"onClickPrev",function(){C.decrement(1)}),D(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),D(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),D(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),D(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),D(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),D(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.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 C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.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 C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(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 C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return C.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ro.default=G,D(G,"displayName","Carousel"),D(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,q,C){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return B.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ro}var Xg={},Jg;function tC(){return Jg||(Jg=1),Xg}var Qg;function rC(){return Qg||(Qg=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(eC()),r=tC(),i=s(Yv());function s(a){return a&&a.__esModule?a:{default:a}}})(Dl)),Dl}var nC=rC();const iC=({tip:e})=>M.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Jv(e,!0)}),oC=({pages:e})=>M.jsx("div",{className:"min-h-[10rem] w-96",children:M.jsx(nC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>M.jsx(iC,{tip:t},t.key))})}),sC=({body:e,isInsideCarousel:t})=>M.jsx("article",{className:We(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:M.jsx(ma,{children:e,options:{overrides:{a:{component:({children:r,...i})=>M.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,M.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),aC=({video:e,body:t,title:r,isInsideCarousel:i})=>M.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[M.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:M.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})}),M.jsx("article",{className:We(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:M.jsx(ma,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>M.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,M.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Jv=(e,t)=>{switch(e.type){case fa.TEXT:return M.jsx(sC,{body:e.body,isInsideCarousel:t});case fa.VIDEO:return M.jsx(aC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case fa.CAROUSEL:return M.jsx(oC,{pages:e.pages})}},Qv=W.createContext(void 0);function em(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const uC=({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 v=f.reduce((m,g)=>em(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:em(f,g.key)}}:{...m,[g.key]:g},{});a(m=>({...m,tips:v}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return M.jsx(Qv.Provider,{value:{tips:i,toggleTips:l,show:s,enabled:t},children:e})},ey=e=>{const t=W.useContext(Qv);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}},lC=va(WP)`
|
|
80
|
+
*/var Gl,qg;function dC(){if(qg)return Gl;qg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(g){return u[g]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gl=s()?Object.assign:function(a,u){for(var c,f=i(a),m,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var h in c)t.call(c,h)&&(f[h]=c[h]);if(e){m=e(c);for(var d=0;d<m.length;d++)r.call(c,m[d])&&(f[m[d]]=c[m[d]])}}return f},Gl}var Vl,Zg;function sf(){if(Zg)return Vl;Zg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vl=e,Vl}var Kl,Gg;function oy(){return Gg||(Gg=1,Kl=Function.call.bind(Object.prototype.hasOwnProperty)),Kl}var Yl,Vg;function pC(){if(Vg)return Yl;Vg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sf(),r={},i=oy();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,m){if(process.env.NODE_ENV!=="production"){for(var g in a)if(i(a,g)){var h;try{if(typeof a[g]!="function"){var d=Error((f||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}h=a[g](u,g,f,c,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=m?m():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Yl=s,Yl}var Xl,Kg;function hC(){if(Kg)return Xl;Kg=1;var e=iy(),t=dC(),r=sf(),i=oy(),s=pC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Xl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function h(Z){var Q=Z&&(m&&Z[m]||Z[g]);if(typeof Q=="function")return Q}var d="<<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:k,node:G(),objectOf:D,oneOf:U,oneOfType:N,shape:M,exact:W};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function p(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}p.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,me,Ee,Oe,Ye){if(me=me||d,Oe=Oe||ye,Ye!==r){if(f){var ie=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 ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var bt=me+":"+ye;!Q[bt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Oe+"` prop on `"+me+"`. 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."),Q[bt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new p("The "+Ee+" `"+Oe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new p("The "+Ee+" `"+Oe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(fe,ye,me,Ee,Oe)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function v(Z){function Q(se,ue,ne,ce,fe,ye){var me=se[ue],Ee=J(me);if(Ee!==Z){var Oe=Y(me);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+Oe+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(u)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new p("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=se[ue];if(!Array.isArray(ye)){var me=J(ye);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Oe=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function R(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!c(fe)){var ye=J(fe);return new p("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function T(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new p("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function k(Z){function Q(se,ue,ne,ce,fe){if(!(se[ue]instanceof Z)){var ye=Z.name||d,me=de(se[ue]);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return w(Q)}function U(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 Q(se,ue,ne,ce,fe){for(var ye=se[ue],me=0;me<Z.length;me++)if(x(ye,Z[me]))return null;var Ee=JSON.stringify(Z,function(Ye,ie){var bt=Y(ie);return bt==="symbol"?String(ie):ie});return new p("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return w(Q)}function D(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new p("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Oe=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function N(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 Q=0;Q<Z.length;Q++){var se=Z[Q];if(typeof se!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(se)+" at index "+Q+"."),u}function ue(ne,ce,fe,ye,me){for(var Ee=[],Oe=0;Oe<Z.length;Oe++){var Ye=Z[Oe],ie=Ye(ne,ce,fe,ye,me,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var bt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new p("Invalid "+ye+" `"+me+"` supplied to "+("`"+fe+"`"+bt+"."))}return w(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new p("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,se,ue,ne){return new p((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function M(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Oe=Z[Ee];if(typeof Oe!="function")return j(ne,ce,fe,Ee,Y(Oe));var Ye=Oe(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ye)return Ye}return null}return w(Q)}function W(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Oe in Ee){var Ye=Z[Oe];if(i(Z,Oe)&&typeof Ye!="function")return j(ne,ce,fe,Oe,Y(Ye));if(!Ye)return new p("Invalid "+ce+" `"+fe+"` key `"+Oe+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
|
|
81
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ye(ye,Oe,ne,ce,fe+"."+Oe,r);if(ie)return ie}return null}return w(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=h(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?d:Z.constructor.name}return y.checkPropTypes=s,y.resetWarningCache=s.resetWarningCache,y.PropTypes=y,y},Xl}var Jl,Yg;function gC(){if(Yg)return Jl;Yg=1;var e=sf();function t(){}function r(){}return r.resetWarningCache=t,Jl=function(){function i(u,c,f,m,g,h){if(h!==e){var d=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 d.name="Invariant Violation",d}}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},Jl}var Xg;function mC(){if(Xg)return ta.exports;if(Xg=1,process.env.NODE_ENV!=="production"){var e=iy(),t=!0;ta.exports=hC()(e.isElement,t)}else ta.exports=gC()();return ta.exports}var Jg;function vC(){return Jg||(Jg=1,(function(e){(function(t,r){r(e,z,mC())})(ea,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 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 m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var g=(function(){function S(E,R){for(var T=0;T<R.length;T++){var k=R[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,T){return R&&S(E.prototype,R),T&&S(E,T),E}})();function h(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 d(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 p(){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 k=S.screenX,U=S.screenY;return{x:k,y:U}}var v=(function(S){d(E,S);function E(){var R;m(this,E);for(var T=arguments.length,k=Array(T),U=0;U<T;U++)k[U]=arguments[U];var D=h(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return D._handleSwipeStart=D._handleSwipeStart.bind(D),D._handleSwipeMove=D._handleSwipeMove.bind(D),D._handleSwipeEnd=D._handleSwipeEnd.bind(D),D._onMouseDown=D._onMouseDown.bind(D),D._onMouseMove=D._onMouseMove.bind(D),D._onMouseUp=D._onMouseUp.bind(D),D._setSwiperRef=D._setSwiperRef.bind(D),D}return g(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,p({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 k=w(T),U=k.x,D=k.y;this.moveStart={x:U,y:D},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var k=w(T),U=k.x,D=k.y,N=U-this.moveStart.x,G=D-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:N,y:G},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:N,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,T):this.movePosition.deltaY>k&&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 k=T.className,U=T.style,D=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var N=f(T,["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:k,style:U},N),D)}}]),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})})(ea)),ea}var Qg;function sy(){return Qg||(Qg=1,(function(e){(function(t,r){r(e,vC())})(Qs,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})})(Qs)),Qs}var lo={},em;function ay(){if(em)return lo;em=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e=t(mv());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 lo.default=i,lo}var co={},fo={},tm;function yC(){if(tm)return fo;tm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return fo.outerWidth=e,fo}var po={},rm;function af(){if(rm)return po;rm=1,Object.defineProperty(po,"__esModule",{value:!0}),po.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 po.default=e,po}var ho={},nm;function uy(){if(nm)return ho;nm=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e=function(){return window};return ho.default=e,ho}var im;function ly(){if(im)return co;im=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=f(z),t=u(ay()),r=yC(),i=u(af()),s=u(sy()),a=u(uy());function u(D){return D&&D.__esModule?D:{default:D}}function c(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return c=function(){return D},D}function f(D){if(D&&D.__esModule)return D;if(D===null||m(D)!=="object"&&typeof D!="function")return{default:D};var N=c();if(N&&N.has(D))return N.get(D);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in D)if(Object.prototype.hasOwnProperty.call(D,M)){var W=j?Object.getOwnPropertyDescriptor(D,M):null;W&&(W.get||W.set)?Object.defineProperty(G,M,W):G[M]=D[M]}return G.default=D,N&&N.set(D,G),G}function m(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(D)}function g(){return g=Object.assign||function(D){for(var N=1;N<arguments.length;N++){var G=arguments[N];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(D[j]=G[j])}return D},g.apply(this,arguments)}function h(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}function d(D,N){for(var G=0;G<N.length;G++){var j=N[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}function y(D,N,G){return N&&d(D.prototype,N),D}function x(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(N&&N.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),N&&p(D,N)}function p(D,N){return p=Object.setPrototypeOf||function(j,M){return j.__proto__=M,j},p(D,N)}function w(D){var N=E();return function(){var j=R(D),M;if(N){var W=R(this).constructor;M=Reflect.construct(j,arguments,W)}else M=j.apply(this,arguments);return v(this,M)}}function v(D,N){return N&&(m(N)==="object"||typeof N=="function")?N:S(D)}function S(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}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(D){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(D)}function T(D,N,G){return N in D?Object.defineProperty(D,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):D[N]=G,D}var k=function(N){return N.hasOwnProperty("key")},U=(function(D){x(G,D);var N=w(G);function G(j){var M;return h(this,G),M=N.call(this,j),T(S(M),"itemsWrapperRef",void 0),T(S(M),"itemsListRef",void 0),T(S(M),"thumbsRef",void 0),T(S(M),"setItemsWrapperRef",function(W){M.itemsWrapperRef=W}),T(S(M),"setItemsListRef",function(W){M.itemsListRef=W}),T(S(M),"setThumbsRef",function(W,q){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[q]=W}),T(S(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var W=e.Children.count(M.props.children),q=M.itemsWrapperRef.clientWidth,C=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),J=Math.floor(q/C),Y=J<W,te=Y?W-J:0;M.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?M.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),T(S(M),"handleClickItem",function(W,q,C){if(!k(C)||C.key==="Enter"){var J=M.props.onSelectItem;typeof J=="function"&&J(W,q)}}),T(S(M),"onSwipeStart",function(){M.setState({swiping:!0})}),T(S(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),T(S(M),"onSwipeMove",function(W){var q=W.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var C=0,J=e.Children.count(M.props.children),Y=-(M.state.firstItem*100)/M.state.visibleItems,te=Math.max(J-M.state.visibleItems,0),de=-te*100/M.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=M.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){M.itemsListRef.style[se]=(0,i.default)(Q,"%",M.props.axis)}),!0}),T(S(M),"slideRight",function(W){M.moveTo(M.state.firstItem-(typeof W=="number"?W:1))}),T(S(M),"slideLeft",function(W){M.moveTo(M.state.firstItem+(typeof W=="number"?W:1))}),T(S(M),"moveTo",function(W){W=W<0?0:W,W=W>=M.state.lastPosition?M.state.lastPosition:W,M.setState({firstItem:W})}),M.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return y(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,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(M){var W=M;return M>=this.state.lastPosition&&(W=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(W=this.state.firstItem),M<this.state.firstItem&&(W=M),W}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(W,q){var C=t.default.ITEM(!1,q===M.state.selectedItem),J={key:q,ref:function(te){return M.setThumbsRef(te,q)},className:C,onClick:M.handleClickItem.bind(M,q,M.props.children[q]),onKeyDown:M.handleClickItem.bind(M,q,M.props.children[q]),"aria-label":"".concat(M.props.labels.item," ").concat(q+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},J,{role:"button",tabIndex:0}),W)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var W=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},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(!q),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),W?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:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return M.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return co.default=U,T(U,"displayName","Thumbs"),T(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),co}var go={},om;function bC(){if(om)return go;om=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=function(){return document};return go.default=e,go}var Ht={},sm;function cy(){if(sm)return Ht;sm=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=z,t=r(af());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,g){return"".concat(m," of ").concat(g)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var u=function(m,g){if(g.infiniteLoop&&++m,m===0)return 0;var h=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var d=-m*g.centerSlidePercentage,y=h-1;return m&&(m!==y||g.infiniteLoop)?d+=(100-g.centerSlidePercentage)/2:m===y&&(d+=100-g.centerSlidePercentage),d}return-m*100};Ht.getPosition=u;var c=function(m,g){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(d){h[d]=(0,t.default)(m,"%",g)}),h};return Ht.setPosition=c,Ht}var hr={},am;function wC(){if(am)return hr;am=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.fadeAnimationHandler=hr.slideStopSwipingHandler=hr.slideSwipeAnimationHandler=hr.slideAnimationHandler=void 0;var e=z,t=i(af()),r=cy();function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);d&&(x=x.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),y.push.apply(y,x)}return y}function a(h){for(var d=1;d<arguments.length;d++){var y=arguments[d]!=null?arguments[d]:{};d%2?s(Object(y),!0).forEach(function(x){u(h,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(x){Object.defineProperty(h,x,Object.getOwnPropertyDescriptor(y,x))})}return h}function u(h,d,y){return d in h?Object.defineProperty(h,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[d]=y,h}var c=function(d,y){var x={},p=y.selectedItem,w=p,v=e.Children.count(d.children)-1,S=d.infiniteLoop&&(p<0||p>v);if(S)return w<0?d.centerMode&&d.centerSlidePercentage&&d.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(v+2)*d.centerSlidePercentage-(100-d.centerSlidePercentage)/2,d.axis):x.itemListStyle=(0,r.setPosition)(-(v+2)*100,d.axis):w>v&&(x.itemListStyle=(0,r.setPosition)(0,d.axis)),x;var E=(0,r.getPosition)(p,d),R=(0,t.default)(E,"%",d.axis),T=d.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};hr.slideAnimationHandler=c;var f=function(d,y,x,p){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),k=v?d.x:d.y,U=k;R===E&&k>0&&(U=0),R===T&&k<0&&(U=0);var D=R+100/(x.itemSize/U),N=Math.abs(k)>y.swipeScrollTolerance;return y.infiniteLoop&&N&&(x.selectedItem===0&&D>-100?D-=S*100:x.selectedItem===S-1&&D<-S*100&&(D+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||N||x.swipeMovementStarted)&&(x.swipeMovementStarted||p({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(D,y.axis)),N&&!x.cancelClick&&p({cancelClick:!0}),w};hr.slideSwipeAnimationHandler=f;var m=function(d,y){var x=(0,r.getPosition)(y.selectedItem,d),p=(0,r.setPosition)(x,d.axis);return{itemListStyle:p}};hr.slideStopSwipingHandler=m;var g=function(d,y){var x=d.transitionTime+"ms",p="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:p,msTransitionTimingFunction:p,MozTransitionTimingFunction:p,WebkitTransitionTimingFunction:p,OTransitionTimingFunction:p};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 hr.fadeAnimationHandler=g,hr}var um;function xC(){if(um)return uo;um=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=g(z),t=f(sy()),r=f(ay()),i=f(ly()),s=f(bC()),a=f(uy()),u=cy(),c=wC();function f(j){return j&&j.__esModule?j:{default:j}}function m(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return m=function(){return j},j}function g(j){if(j&&j.__esModule)return j;if(j===null||h(j)!=="object"&&typeof j!="function")return{default:j};var M=m();if(M&&M.has(j))return M.get(j);var W={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(W,C,J):W[C]=j[C]}return W.default=j,M&&M.set(j,W),W}function h(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(W){return typeof W}:h=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},h(j)}function d(){return d=Object.assign||function(j){for(var M=1;M<arguments.length;M++){var W=arguments[M];for(var q in W)Object.prototype.hasOwnProperty.call(W,q)&&(j[q]=W[q])}return j},d.apply(this,arguments)}function y(j,M){var W=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);M&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),W.push.apply(W,q)}return W}function x(j){for(var M=1;M<arguments.length;M++){var W=arguments[M]!=null?arguments[M]:{};M%2?y(Object(W),!0).forEach(function(q){N(j,q,W[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(W)):y(Object(W)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(W,q))})}return j}function p(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function w(j,M){for(var W=0;W<M.length;W++){var q=M[W];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function v(j,M,W){return M&&w(j.prototype,M),j}function S(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),M&&E(j,M)}function E(j,M){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,M)}function R(j){var M=U();return function(){var q=D(j),C;if(M){var J=D(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return T(this,C)}}function T(j,M){return M&&(h(M)==="object"||typeof M=="function")?M:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}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 D(j){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},D(j)}function N(j,M,W){return M in j?Object.defineProperty(j,M,{value:W,enumerable:!0,configurable:!0,writable:!0}):j[M]=W,j}var G=(function(j){S(W,j);var M=R(W);function W(q){var C;p(this,W),C=M.call(this,q),N(k(C),"thumbsRef",void 0),N(k(C),"carouselWrapperRef",void 0),N(k(C),"listRef",void 0),N(k(C),"itemsRef",void 0),N(k(C),"timer",void 0),N(k(C),"animationHandler",void 0),N(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),N(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),N(k(C),"setListRef",function(Y){C.listRef=Y}),N(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),N(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),N(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),N(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),N(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),N(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),N(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),N(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),N(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),N(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),N(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),N(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),N(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),N(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),N(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),N(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),N(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),N(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),N(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),N(k(C),"onClickNext",function(){C.increment(1)}),N(k(C),"onClickPrev",function(){C.decrement(1)}),N(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),N(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),N(k(C),"changeItem",function(Y){return function(te){(!(0,u.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),N(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),N(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),N(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return v(W,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.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 C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.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 C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(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 C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,d({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return C.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),W})(e.default.Component);return uo.default=G,N(G,"displayName","Carousel"),N(G,"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(M,W,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!W),onClick:M})},renderArrowNext:function(M,W,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!W),onClick:M})},renderIndicator:function(M,W,q,C){return e.default.createElement("li",{className:r.default.DOT(W),onClick:M,onKeyDown:M,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(M){return M},renderThumbs:function(M){var W=e.Children.map(M,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return W.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):W},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}),uo}var lm={},cm;function SC(){return cm||(cm=1),lm}var fm;function EC(){return fm||(fm=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(xC()),r=SC(),i=s(ly());function s(a){return a&&a.__esModule?a:{default:a}}})(Zl)),Zl}var _C=EC();const TC=({tip:e})=>$.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:fy(e,!0)}),OC=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(_C.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(TC,{tip:t},t.key))})}),AC=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:je(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(xa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(Ke.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),RC=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:je([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:je([{"mr-1":!i,"mb-1":i}]),children:$.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})}),$.jsx("article",{className:je(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(xa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>$.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,$.jsx(Ke.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),fy=(e,t)=>{switch(e.type){case ma.TEXT:return $.jsx(AC,{body:e.body,isInsideCarousel:t});case ma.VIDEO:return $.jsx(RC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ma.CAROUSEL:return $.jsx(OC,{pages:e.pages})}},dy=z.createContext(void 0);function dm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const PC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=z.useState({tips:{},show:!0});z.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((g,h)=>dm(f,h.key).length>1?{...g,[h.key]:{type:"carousel",pages:dm(f,h.key)}}:{...g,[h.key]:h},{});a(g=>({...g,tips:m}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return $.jsx(dy.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},py=e=>{const t=z.useContext(dy);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}},CC=Sa(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
|
+
`,hy=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=py(e),[u,c]=z.useState(!1),f=z.useRef(null);return z.useEffect(()=>{if(f.current){const m=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?$.jsxs(aC,{open:u,onOpenChange:c,children:[$.jsx(CC,{ref:f,className:je("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:$.jsx("span",{className:je("group-hover:block",{hidden:!r}),children:$.jsx(Ke.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(lC,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:fy(s)})})]}):null};var kC=Object.defineProperty,IC=(e,t,r)=>t in e?kC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ql=(e,t,r)=>(IC(e,typeof t!="symbol"?t+"":t,r),r);let $C=class{constructor(){Ql(this,"current",this.detect()),Ql(this,"handoffState","pending"),Ql(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"}},wi=new $C,$r=(e,t)=>{wi.isServer?z.useEffect(e,t):z.useLayoutEffect(e,t)};function xi(e){let t=z.useRef(e);return $r(()=>{t.current=e},[e]),t}let _t=function(e){let t=xi(e);return z.useCallback((...r)=>t.current(...r),[t])};function LC(e,t,r){let[i,s]=z.useState(r),a=e!==void 0,u=z.useRef(a),c=z.useRef(!1),f=z.useRef(!1);return a&&!u.current&&!c.current?(c.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,_t(m=>(a||s(m),t==null?void 0:t(m)))]}function MC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zo(){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 MC(()=>{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=Zo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function uf(){let[e]=z.useState(Zo);return z.useEffect(()=>()=>e.dispose(),[e]),e}function DC(){let e=typeof document>"u";return"useSyncExternalStore"in I?(t=>t.useSyncExternalStore)(I)(()=>()=>{},()=>!1,()=>!e):!1}function lf(){let e=DC(),[t,r]=I.useState(wi.isHandoffComplete);return t&&wi.isHandoffComplete===!1&&r(!1),I.useEffect(()=>{t!==!0&&r(!0)},[t]),I.useEffect(()=>wi.handoff(),[]),e?!1:t}var pm;let cf=(pm=z.useId)!=null?pm:function(){let e=lf(),[t,r]=z.useState(e?()=>wi.nextId():null);return $r(()=>{t===null&&r(wi.nextId())},[t]),t!=null?""+t:void 0};function Pr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Pr),i}function hm(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 NC(e,t){let[r,i]=z.useState(()=>hm(e));return $r(()=>{i(hm(e))},[e.type,e.as]),$r(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let FC=Symbol();function Go(...e){let t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]);let r=_t(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[FC]))?void 0:r}function _a(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var gy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(gy||{}),vn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vn||{});function Xn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:c}){c=c??jC;let f=my(t,e);if(a)return na(f,r,i,u,c);let m=s??0;if(m&2){let{static:g=!1,...h}=f;if(g)return na(h,r,i,u,c)}if(m&1){let{unmount:g=!0,...h}=f;return Pr(g?0:1,{0(){return null},1(){return na({...h,hidden:!0,style:{display:"none"}},r,i,u,c)}})}return na(f,r,i,u,c)}function na(e,t={},r,i,s){let{as:a=r,children:u,refName:c="ref",...f}=ec(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},g=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let h={};if(t){let d=!1,y=[];for(let[x,p]of Object.entries(t))typeof p=="boolean"&&(d=!0),p===!0&&y.push(x);d&&(h["data-headlessui-state"]=y.join(" "))}if(a===z.Fragment&&Object.keys(Oc(f)).length>0){if(!z.isValidElement(g)||Array.isArray(g)&&g.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(p=>` - ${p}`).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(p=>` - ${p}`).join(`
|
|
87
87
|
`)].join(`
|
|
88
|
-
`));let p=m.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>ba(p==null?void 0:p.className(...d),f.className):ba(p==null?void 0:p.className,f.className),x=b?{className:b}:{};return W.cloneElement(m,Object.assign({},ny(m.props,vc(ql(f,["ref"]))),g,v,{ref:s(m.ref,v.ref)},x))}return W.createElement(a,Object.assign({},ql(f,["ref"]),a!==W.Fragment&&v,a!==W.Fragment&&g),m)}function yC(...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 ny(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let l=r[i];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ql(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let bC="div";var iy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iy||{});function wC(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 Zn({ourProps:a,theirProps:s,slot:{},defaultTag:bC,name:"Hidden"})}let xC=Gn(wC),tf=W.createContext(null);tf.displayName="OpenClosedContext";var Hr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Hr||{});function oy(){return W.useContext(tf)}function SC({value:e,children:t}){return W.createElement(tf.Provider,{value:e},t)}function EC(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&&_C(r)?!1:i}function _C(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function OC(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 yc=(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))(yc||{});function rf(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let sy=W.createContext(null);function ay(){let e=W.useContext(sy);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,ay),t}return e}function AC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(sy.Provider,{value:s},r.children)},[t])]}let TC="p";function RC(e,t){let r=ef(),{id:i=`headlessui-description-${r}`,...s}=e,a=ay(),l=Uo(t);Cr(()=>a.register(i),[i,a.register]);let c={ref:l,...a.props,id:i};return Zn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:TC,name:a.name||"Description"})}let PC=Gn(RC),CC=Object.assign(PC,{}),uy=W.createContext(null);function ly(){let e=W.useContext(uy);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,ly),t}return e}function kC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(uy.Provider,{value:s},r.children)},[t])]}let $C="label";function IC(e,t){let r=ef(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=ly(),c=Uo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Zn({ourProps:f,theirProps:a,slot:l.slot||{},defaultTag:$C,name:l.name||"Label"})}let LC=Gn(IC),MC=Object.assign(LC,{});function FC(e=0){let[t,r]=W.useState(e),i=rf(),s=W.useCallback(f=>{i.current&&r(v=>v|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),l=W.useCallback(f=>{i.current&&r(v=>v&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(v=>v^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let nf=W.createContext(null);nf.displayName="GroupContext";let DC=W.Fragment;function NC(e){var t;let[r,i]=W.useState(null),[s,a]=kC(),[l,c]=AC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:l}),[r,i,s,l]),v={},m=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(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(nf.Provider,{value:f},Zn({ourProps:v,theirProps:m,defaultTag:DC,name:"Switch.Group"}))))}let jC="button";function zC(e,t){var r;let i=ef(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:v,value:m,form:g,...p}=e,b=W.useContext(nf),x=W.useRef(null),d=Uo(x,t,b===null?null:b.setSwitch),[w,h]=pC(a,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(D=>{if(EC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=St(D=>{D.key===yc.Space?(D.preventDefault(),S()):D.key===yc.Enter&&OC(D.currentTarget)}),O=St(D=>D.preventDefault()),k=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":b==null?void 0:b.labelledby,"aria-describedby":b==null?void 0:b.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},F=Jc();return W.useEffect(()=>{var D;let G=(D=x.current)==null?void 0:D.closest("form");G&&l!==void 0&&F.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,v!=null&&w&&W.createElement(xC,{features:iy.Hidden,...vc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:g,checked:w,name:v,value:m})}),Zn({ourProps:U,theirProps:p,slot:k,defaultTag:jC,name:"Switch"}))}let WC=Gn(zC),UC=NC,BC=Object.assign(WC,{Group:UC,Label:MC,Description:CC});function HC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Zl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Gl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qC(e,t){let r=Wo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,l]=[i,s].map(f=>{let[v=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,g)=>g-m);return v}),c=a+l;if(c!==0){r.group(v=>{v.setTimeout(()=>{t(),v.dispose()},c),v.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&v.dispose()})});let f=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function ZC(e,t,r,i){let s=r?"enter":"leave",a=Wo(),l=i!==void 0?HC(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),v=Ar(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Gl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Zl(e,...t.base,...c,...v),a.nextFrame(()=>{Gl(e,...t.base,...c,...v),Zl(e,...t.base,...c,...f),qC(e,()=>(Gl(e,...t.base,...c),Zl(e,...t.base,...t.entered),l()))}),a.dispose}function GC({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let l=rf(),c=Jc(),f=mi(r);Cr(()=>{e&&(f.current="enter")},[e]),Cr(()=>{let v=Wo();c.add(v.dispose);let m=t.current;if(m&&f.current!=="idle"&&l.current)return v.dispose(),s.current(f.current),v.add(ZC(m,i.current,f.current==="enter",()=>{v.dispose(),a.current(f.current)})),v.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ja=W.createContext(null);ja.displayName="TransitionContext";var KC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(KC||{});function VC(){let e=W.useContext(ja);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function YC(){let e=W.useContext(za);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let za=W.createContext(null);za.displayName="NestingContext";function Wa(e){return"children"in e?Wa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function cy(e,t){let r=mi(e),i=W.useRef([]),s=rf(),a=Jc(),l=St((b,x=pn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===b);d!==-1&&(Ar(x,{[pn.Unmount](){i.current.splice(d,1)},[pn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!Wa(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=St(b=>{let x=i.current.find(({el:d})=>d===b);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:b,state:"visible"}),()=>l(b,pn.Unmount)}),f=W.useRef([]),v=W.useRef(Promise.resolve()),m=W.useRef({enter:[],leave:[],idle:[]}),g=St((b,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==b)),t==null||t.chains.current[x].push([b,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([b,new Promise(w=>{Promise.all(m.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?v.current=v.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),p=St((b,x,d)=>{Promise.all(m.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:p,wait:v,chains:m}),[c,l,i,g,p,m,v])}function XC(){}let JC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nm(e){var t;let r={};for(let i of JC)r[i]=(t=e[i])!=null?t:XC;return r}function QC(e){let t=W.useRef(nm(e));return W.useEffect(()=>{t.current=nm(e)},[e]),t}let ek="div",fy=ry.RenderStrategy;function tk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:f,enterFrom:v,enterTo:m,entered:g,leave:p,leaveFrom:b,leaveTo:x,...d}=e,w=W.useRef(null),h=Uo(w,t),S=(r=d.unmount)==null||r?pn.Unmount:pn.Hidden,{show:E,appear:R,initial:O}=VC(),[k,U]=W.useState(E?"visible":"hidden"),F=YC(),{register:D,unregister:G}=F;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>D(w)})}},[k,w,D,G,E,S]);let j=mi({base:ln(d.className),enter:ln(f),enterFrom:ln(v),enterTo:ln(m),entered:ln(g),leave:ln(p),leaveFrom:ln(b),leaveTo:ln(x)}),L=QC({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),B=Qc();W.useEffect(()=>{if(B&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,B]);let q=O&&!R,C=R&&E&&O,J=!B||q?"idle":E?"enter":"leave",Y=FC(0),te=St(ne=>Ar(ne,{enter:()=>{Y.addFlag(Hr.Opening),L.current.beforeEnter()},leave:()=>{Y.addFlag(Hr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=St(ne=>Ar(ne,{enter:()=>{Y.removeFlag(Hr.Opening),L.current.afterEnter()},leave:()=>{Y.removeFlag(Hr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=cy(()=>{U("hidden"),G(w)},F),Q=W.useRef(!1);GC({immediate:C,container:w,classes:j,direction:J,onStart:mi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:mi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!Wa(Z)&&(U("hidden"),G(w))})});let se=d,ue={ref:h};return C?se={...se,className:ba(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=ba(d.className,(i=w.current)==null?void 0:i.className),se.className===""&&delete se.className),W.createElement(za.Provider,{value:Z},W.createElement(SC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|Y.flags},Zn({ourProps:ue,theirProps:se,defaultTag:ek,features:fy,visible:k==="visible",name:"Transition.Child"})))}function rk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=Uo(l,t);Qc();let f=oy();if(r===void 0&&f!==null&&(r=(f&Hr.Open)===Hr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,m]=W.useState(r?"visible":"hidden"),g=cy(()=>{m("hidden")}),[p,b]=W.useState(!0),x=W.useRef([r]);Cr(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),b(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);W.useEffect(()=>{if(r)m("visible");else if(!Wa(g))m("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&m("hidden")}},[r,g]);let w={unmount:s},h=St(()=>{var E;p&&b(!1),(E=e.beforeEnter)==null||E.call(e)}),S=St(()=>{var E;p&&b(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(za.Provider,{value:g},W.createElement(ja.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(dy,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:fy,visible:v==="visible",name:"Transition"})))}function nk(e,t){let r=W.useContext(ja)!==null,i=oy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(bc,{ref:t,...e}):W.createElement(dy,{ref:t,...e}))}let bc=Gn(rk),dy=Gn(tk),ik=Gn(nk),wa=Object.assign(bc,{Child:ik,Root:bc});const Kl={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"}},py=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const l=c=>{e(c)};return M.jsx("div",{className:We("flex items-center",i),children:M.jsx(BC,{as:"span",ref:a,checked:t,onChange:l,onKeyDown:c=>{c.key==="Enter"&&l(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
-
relative inline-flex shrink-0 ${
|
|
90
|
-
pointer-events-none inline-block ${
|
|
91
|
-
]`).replace("lheading",
|
|
92
|
-
`).map(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 d=g.props,y=typeof(d==null?void 0:d.className)=="function"?(...p)=>_a(d==null?void 0:d.className(...p),f.className):_a(d==null?void 0:d.className,f.className),x=y?{className:y}:{};return z.cloneElement(g,Object.assign({},my(g.props,Oc(ec(f,["ref"]))),h,m,{ref:s(g.ref,m.ref)},x))}return z.createElement(a,Object.assign({},ec(f,["ref"]),a!==z.Fragment&&m,a!==z.Fragment&&h),g)}function jC(...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 my(...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 Jn(e){var t;return Object.assign(z.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Oc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ec(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let zC="div";var vy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vy||{});function BC(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 Xn({ourProps:a,theirProps:s,slot:{},defaultTag:zC,name:"Hidden"})}let UC=Jn(BC),ff=z.createContext(null);ff.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function yy(){return z.useContext(ff)}function WC({value:e,children:t}){return z.createElement(ff.Provider,{value:e},t)}function HC(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&&qC(r)?!1:i}function qC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function ZC(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 Ac=(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))(Ac||{});function df(){let e=z.useRef(!1);return $r(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let by=z.createContext(null);function wy(){let e=z.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 GC(){let[e,t]=z.useState([]);return[e.length>0?e.join(" "):void 0,z.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=z.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return z.createElement(by.Provider,{value:s},r.children)},[t])]}let VC="p";function KC(e,t){let r=cf(),{id:i=`headlessui-description-${r}`,...s}=e,a=wy(),u=Go(t);$r(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Xn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:VC,name:a.name||"Description"})}let YC=Jn(KC),XC=Object.assign(YC,{}),xy=z.createContext(null);function Sy(){let e=z.useContext(xy);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,Sy),t}return e}function JC(){let[e,t]=z.useState([]);return[e.length>0?e.join(" "):void 0,z.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=z.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return z.createElement(xy.Provider,{value:s},r.children)},[t])]}let QC="label";function ek(e,t){let r=cf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=Sy(),c=Go(t);$r(()=>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),Xn({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:QC,name:u.name||"Label"})}let tk=Jn(ek),rk=Object.assign(tk,{});function nk(e=0){let[t,r]=z.useState(e),i=df(),s=z.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=z.useCallback(f=>!!(t&f),[t]),u=z.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=z.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:c}}let pf=z.createContext(null);pf.displayName="GroupContext";let ik=z.Fragment;function ok(e){var t;let[r,i]=z.useState(null),[s,a]=JC(),[u,c]=GC(),f=z.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),m={},g=e;return z.createElement(c,{name:"Switch.Description"},z.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(h){r&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},z.createElement(pf.Provider,{value:f},Xn({ourProps:m,theirProps:g,defaultTag:ik,name:"Switch.Group"}))))}let sk="button";function ak(e,t){var r;let i=cf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:m,value:g,form:h,...d}=e,y=z.useContext(pf),x=z.useRef(null),p=Go(x,t,y===null?null:y.setSwitch),[w,v]=LC(a,c,u),S=_t(()=>v==null?void 0:v(!w)),E=_t(N=>{if(HC(N.currentTarget))return N.preventDefault();N.preventDefault(),S()}),R=_t(N=>{N.key===Ac.Space?(N.preventDefault(),S()):N.key===Ac.Enter&&ZC(N.currentTarget)}),T=_t(N=>N.preventDefault()),k=z.useMemo(()=>({checked:w}),[w]),U={id:s,ref:p,role:"switch",type:NC(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},D=uf();return z.useEffect(()=>{var N;let G=(N=x.current)==null?void 0:N.closest("form");G&&u!==void 0&&D.addEventListener(G,"reset",()=>{v(u)})},[x,v]),z.createElement(z.Fragment,null,m!=null&&w&&z.createElement(UC,{features:vy.Hidden,...Oc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:h,checked:w,name:m,value:g})}),Xn({ourProps:U,theirProps:d,slot:k,defaultTag:sk,name:"Switch"}))}let uk=Jn(ak),lk=ok,ck=Object.assign(uk,{Group:lk,Label:rk,Description:XC});function fk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function tc(e,...t){e&&t.length>0&&e.classList.add(...t)}function rc(e,...t){e&&t.length>0&&e.classList.remove(...t)}function dk(e,t){let r=Zo();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(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,h)=>h-g);return m}),c=a+u;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",g=>{g.target===g.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 pk(e,t,r,i){let s=r?"enter":"leave",a=Zo(),u=i!==void 0?fk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Pr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Pr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Pr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return rc(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),tc(e,...t.base,...c,...m),a.nextFrame(()=>{rc(e,...t.base,...c,...m),tc(e,...t.base,...c,...f),dk(e,()=>(rc(e,...t.base,...c),tc(e,...t.base,...t.entered),u()))}),a.dispose}function hk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=df(),c=uf(),f=xi(r);$r(()=>{e&&(f.current="enter")},[e]),$r(()=>{let m=Zo();c.add(m.dispose);let g=t.current;if(g&&f.current!=="idle"&&u.current)return m.dispose(),s.current(f.current),m.add(pk(g,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function pn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Za=z.createContext(null);Za.displayName="TransitionContext";var gk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gk||{});function mk(){let e=z.useContext(Za);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function vk(){let e=z.useContext(Ga);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ga=z.createContext(null);Ga.displayName="NestingContext";function Va(e){return"children"in e?Va(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ey(e,t){let r=xi(e),i=z.useRef([]),s=df(),a=uf(),u=_t((y,x=vn.Hidden)=>{let p=i.current.findIndex(({el:w})=>w===y);p!==-1&&(Pr(x,{[vn.Unmount](){i.current.splice(p,1)},[vn.Hidden](){i.current[p].state="hidden"}}),a.microTask(()=>{var w;!Va(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=_t(y=>{let x=i.current.find(({el:p})=>p===y);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:y,state:"visible"}),()=>u(y,vn.Unmount)}),f=z.useRef([]),m=z.useRef(Promise.resolve()),g=z.useRef({enter:[],leave:[],idle:[]}),h=_t((y,x,p)=>{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(g.current[x].map(([v,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>p(x)):p(x)}),d=_t((y,x,p)=>{Promise.all(g.current[x].splice(0).map(([w,v])=>v)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>p(x))});return z.useMemo(()=>({children:i,register:c,unregister:u,onStart:h,onStop:d,wait:m,chains:g}),[c,u,i,h,d,g,m])}function yk(){}let bk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gm(e){var t;let r={};for(let i of bk)r[i]=(t=e[i])!=null?t:yk;return r}function wk(e){let t=z.useRef(gm(e));return z.useEffect(()=>{t.current=gm(e)},[e]),t}let xk="div",_y=gy.RenderStrategy;function Sk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c,enter:f,enterFrom:m,enterTo:g,entered:h,leave:d,leaveFrom:y,leaveTo:x,...p}=e,w=z.useRef(null),v=Go(w,t),S=(r=p.unmount)==null||r?vn.Unmount:vn.Hidden,{show:E,appear:R,initial:T}=mk(),[k,U]=z.useState(E?"visible":"hidden"),D=vk(),{register:N,unregister:G}=D;z.useEffect(()=>N(w),[N,w]),z.useEffect(()=>{if(S===vn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Pr(k,{hidden:()=>G(w),visible:()=>N(w)})}},[k,w,N,G,E,S]);let j=xi({base:pn(p.className),enter:pn(f),enterFrom:pn(m),enterTo:pn(g),entered:pn(h),leave:pn(d),leaveFrom:pn(y),leaveTo:pn(x)}),M=wk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),W=lf();z.useEffect(()=>{if(W&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,W]);let q=T&&!R,C=R&&E&&T,J=!W||q?"idle":E?"enter":"leave",Y=nk(0),te=_t(ne=>Pr(ne,{enter:()=>{Y.addFlag(Gr.Opening),M.current.beforeEnter()},leave:()=>{Y.addFlag(Gr.Closing),M.current.beforeLeave()},idle:()=>{}})),de=_t(ne=>Pr(ne,{enter:()=>{Y.removeFlag(Gr.Opening),M.current.afterEnter()},leave:()=>{Y.removeFlag(Gr.Closing),M.current.afterLeave()},idle:()=>{}})),Z=Ey(()=>{U("hidden"),G(w)},D),Q=z.useRef(!1);hk({immediate:C,container:w,classes:j,direction:J,onStart:xi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:xi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!Va(Z)&&(U("hidden"),G(w))})});let se=p,ue={ref:v};return C?se={...se,className:_a(p.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=_a(p.className,(i=w.current)==null?void 0:i.className),se.className===""&&delete se.className),z.createElement(Ga.Provider,{value:Z},z.createElement(WC,{value:Pr(k,{visible:Gr.Open,hidden:Gr.Closed})|Y.flags},Xn({ourProps:ue,theirProps:se,defaultTag:xk,features:_y,visible:k==="visible",name:"Transition.Child"})))}function Ek(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=z.useRef(null),c=Go(u,t);lf();let f=yy();if(r===void 0&&f!==null&&(r=(f&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,g]=z.useState(r?"visible":"hidden"),h=Ey(()=>{g("hidden")}),[d,y]=z.useState(!0),x=z.useRef([r]);$r(()=>{d!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),y(!1))},[x,r]);let p=z.useMemo(()=>({show:r,appear:i,initial:d}),[r,i,d]);z.useEffect(()=>{if(r)g("visible");else if(!Va(h))g("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&&g("hidden")}},[r,h]);let w={unmount:s},v=_t(()=>{var E;d&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),S=_t(()=>{var E;d&&y(!1),(E=e.beforeLeave)==null||E.call(e)});return z.createElement(Ga.Provider,{value:h},z.createElement(Za.Provider,{value:p},Xn({ourProps:{...w,as:z.Fragment,children:z.createElement(Ty,{ref:c,...w,...a,beforeEnter:v,beforeLeave:S})},theirProps:{},defaultTag:z.Fragment,features:_y,visible:m==="visible",name:"Transition"})))}function _k(e,t){let r=z.useContext(Za)!==null,i=yy()!==null;return z.createElement(z.Fragment,null,!r&&i?z.createElement(Rc,{ref:t,...e}):z.createElement(Ty,{ref:t,...e}))}let Rc=Jn(Ek),Ty=Jn(Sk),Tk=Jn(_k),Ta=Object.assign(Rc,{Child:Tk,Root:Rc});const nc={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=z.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=c=>{e(c)};return $.jsx("div",{className:je("flex items-center",i),children:$.jsx(ck,{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 ${nc[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:$.jsx("span",{"aria-hidden":"true",className:`${t?nc[r].translate:"translate-x-0"}
|
|
90
|
+
pointer-events-none inline-block ${nc[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function hf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qn=hf();function Ay(e){Qn=e}var Co={exec:()=>null};function ke(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Ct.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var 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")},Ok=/^(?:[ \t]*(?:\n|$))+/,Ak=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gf=/(?:[*+-]|\d{1,9}[.)])/,Ry=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Py=ke(Ry).replace(/bull/g,gf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ck=ke(Ry).replace(/bull/g,gf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kk=/^[^\n]+/,vf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ik=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$k=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gf).getRegex(),Ka="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lk=ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yf).replace("tag",Ka).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Cy=ke(mf).replace("hr",Vo).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",Ka).getRegex(),Mk=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Cy).getRegex(),bf={blockquote:Mk,code:Ak,def:Ik,fences:Rk,heading:Pk,hr:Vo,html:Lk,lheading:Py,list:$k,newline:Ok,paragraph:Cy,table:Co,text:kk},mm=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vo).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",Ka).getRegex(),Dk={...bf,lheading:Ck,table:mm,paragraph:ke(mf).replace("hr",Vo).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",Ka).getRegex()},Nk={...bf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Co,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(mf).replace("hr",Vo).replace("heading",` *#{1,6} *[^
|
|
91
|
+
]`).replace("lheading",Py).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,jk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ky=/^( {2,}|\\)\n(?!\s*$)/,zk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ya=/[\p{P}\p{S}]/u,wf=/[\s\p{P}\p{S}]/u,Iy=/[^\s\p{P}\p{S}]/u,Bk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Uk=/(?!~)[\s\p{P}\p{S}]/u,Wk=/(?:[^\s\p{P}\p{S}]|~)/u,Hk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ly=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qk=ke(Ly,"u").replace(/punct/g,Ya).getRegex(),Zk=ke(Ly,"u").replace(/punct/g,$y).getRegex(),My="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gk=ke(My,"gu").replace(/notPunctSpace/g,Iy).replace(/punctSpace/g,wf).replace(/punct/g,Ya).getRegex(),Vk=ke(My,"gu").replace(/notPunctSpace/g,Wk).replace(/punctSpace/g,Uk).replace(/punct/g,$y).getRegex(),Kk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Iy).replace(/punctSpace/g,wf).replace(/punct/g,Ya).getRegex(),Yk=ke(/\\(punct)/,"gu").replace(/punct/g,Ya).getRegex(),Xk=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jk=ke(yf).replace("(?:-->|$)","-->").getRegex(),Qk=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Jk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,eI=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dy=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",vf).getRegex(),Ny=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",vf).getRegex(),tI=ke("reflink|nolink(?!\\()","g").replace("reflink",Dy).replace("nolink",Ny).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xf={_backpedal:Co,anyPunctuation:Yk,autolink:Xk,blockSkip:Hk,br:ky,code:jk,del:Co,emStrongLDelim:qk,emStrongRDelimAst:Gk,emStrongRDelimUnd:Kk,escape:Fk,link:eI,nolink:Ny,punctuation:Bk,reflink:Dy,reflinkSearch:tI,tag:Qk,text:zk,url:Co},rI={...xf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},Pc={...xf,emStrongRDelimAst:Vk,emStrongLDelim:Zk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},nI={...Pc,br:ke(ky).replace("{2,}","*").getRegex(),text:ke(Pc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ia={normal:bf,gfm:Dk,pedantic:Nk},mo={normal:xf,gfm:Pc,breaks:nI,pedantic:rI},iI={"&":"&","<":"<",">":">",'"':""","'":"'"},ym=e=>iI[e];function Tr(e,t){if(t){if(Ct.escapeTest.test(e))return e.replace(Ct.escapeReplace,ym)}else if(Ct.escapeTestNoEncode.test(e))return e.replace(Ct.escapeReplaceNoEncode,ym);return e}function bm(e){try{e=encodeURI(e).replace(Ct.percentDecode,"%")}catch{return null}return e}function wm(e,t){var a;let r=e.replace(Ct.findPipe,(u,c,f)=>{let m=!1,g=c;for(;--g>=0&&f[g]==="\\";)m=!m;return m?"|":" |"}),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 vo(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 oI(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 xm(e,t,r,i,s){let a=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function sI(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
92
|
+
`).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[c]=u;return c.length>=s.length?a.slice(s.length):a}).join(`
|
|
93
|
+
`)}var Aa=class{constructor(t){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=t||Qn}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:vo(i,`
|
|
94
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=sI(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=vo(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:vo(r[0],`
|
|
95
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=vo(r[0],`
|
|
96
96
|
`).split(`
|
|
97
|
-
`),s="",a="",
|
|
98
|
-
`),g
|
|
97
|
+
`),s="",a="",u=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let g=f.join(`
|
|
98
|
+
`),h=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
99
99
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
100
|
-
${
|
|
101
|
-
${
|
|
100
|
+
${g}`:g,a=a?`${a}
|
|
101
|
+
${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,u,!0),this.lexer.state.top=d,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,p=x.raw+`
|
|
102
102
|
`+i.join(`
|
|
103
|
-
`),w=this.blockquote(
|
|
103
|
+
`),w=this.blockquote(p);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,p=x.raw+`
|
|
104
104
|
`+i.join(`
|
|
105
|
-
`),w=this.list(
|
|
106
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:
|
|
107
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),
|
|
108
|
-
`,1)[0],x=!
|
|
109
|
-
`,t=t.substring(
|
|
110
|
-
`,1)[0],
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`,t=t.substring(U.length+1),
|
|
114
|
-
`):[],
|
|
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
|
|
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,
|
|
117
|
-
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let
|
|
105
|
+
`),w=this.list(p);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=p.substring(u.at(-1).raw.length).split(`
|
|
106
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,g="",h="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let d=r[2].split(`
|
|
107
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),y=t.split(`
|
|
108
|
+
`,1)[0],x=!d.trim(),p=0;if(this.options.pedantic?(p=2,h=d.trimStart()):x?p=r[1].length+1:(p=r[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,h=d.slice(p),p+=r[1].length),x&&this.rules.other.blankLine.test(y)&&(g+=y+`
|
|
109
|
+
`,t=t.substring(y.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(p),E=this.rules.other.hrRegex(p),R=this.rules.other.fencesBeginRegex(p),T=this.rules.other.headingBeginRegex(p),k=this.rules.other.htmlBeginRegex(p);for(;t;){let U=t.split(`
|
|
110
|
+
`,1)[0],D;if(y=U,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),D=y):D=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||T.test(y)||k.test(y)||S.test(y)||E.test(y))break;if(D.search(this.rules.other.nonSpaceChar)>=p||!y.trim())h+=`
|
|
111
|
+
`+D.slice(p);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(d)||T.test(d)||E.test(d))break;h+=`
|
|
112
|
+
`+y}!x&&!y.trim()&&(x=!0),g+=U+`
|
|
113
|
+
`,t=t.substring(U.length+1),d=D.slice(p)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let w=null,v;this.options.gfm&&(w=this.rules.other.listIsTask.exec(h),w&&(v=w[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:g,task:!!w,checked:v,loose:!1,text:h,tokens:[]}),a.raw+=g}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let g=a.items[m].tokens.filter(d=>d.type==="space"),h=g.length>0&&g.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=h}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=wm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
114
|
+
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(wm(f,u.header.length).map((m,g)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:u.align[g]})));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=vo(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=oI(r[2],"()");if(u===-2)return;if(u>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),xm(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 xm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,c,f=a,m=0,g=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+a);(s=g.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(c=[...u].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let h=[...s[0]][0].length,d=t.slice(0,a+s.index+h+c);if(Math.min(a,c)%2){let x=d.slice(1,-1);return{type:"em",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}let y=d.slice(2,-2);return{type:"strong",raw:d,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}}}},gr=class Cc{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"tokenizer");ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qn,this.options.tokenizer=this.options.tokenizer||new Aa,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ct,block:ia.normal,inline:mo.normal};this.options.pedantic?(r.block=ia.pedantic,r.inline=mo.pedantic):this.options.gfm&&(r.block=ia.gfm,this.options.breaks?r.inline=mo.breaks:r.inline=mo.gfm),this.tokenizer.rules=r}static get rules(){return{block:ia,inline:mo}}static lex(t,r){return new Cc(r).lex(t)}static lexInline(t,r){return new Cc(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 c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
|
|
117
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
118
118
|
`)?"":`
|
|
119
|
-
`)+c.raw,
|
|
120
|
-
`+c.text,this.inlineQueue.at(-1).src=
|
|
119
|
+
`)+c.raw,m.text+=`
|
|
120
|
+
`+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
121
121
|
`)?"":`
|
|
122
|
-
`)+c.raw,
|
|
123
|
-
`+c.raw,this.inlineQueue.at(-1).src=
|
|
122
|
+
`)+c.raw,m.text+=`
|
|
123
|
+
`+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let m=1/0,g=t.slice(1),h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},g),typeof h=="number"&&h>=0&&(m=Math.min(m,h))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
|
|
124
124
|
`)?"":`
|
|
125
|
-
`)+c.raw,
|
|
126
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
125
|
+
`)+c.raw,m.text+=`
|
|
126
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
127
127
|
`)?"":`
|
|
128
|
-
`)+c.raw,
|
|
129
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
130
|
-
`;return s?'<pre><code class="language-'+
|
|
131
|
-
`:"<pre><code>"+(i?a:
|
|
128
|
+
`)+c.raw,m.text+=`
|
|
129
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,m,g,h;let i=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.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);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let a=!1,u="";for(;t;){a||(u=""),a=!1;let d;if((g=(m=this.options.extensions)==null?void 0:m.inline)!=null&&g.some(x=>(d=x.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let x=r.at(-1);d.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=d.raw,x.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,u)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let y=t;if((h=this.options.extensions)!=null&&h.startInline){let x=1/0,p=t.slice(1),w;this.options.extensions.startInline.forEach(v=>{w=v.call({lexer:this},p),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(y=t.substring(0,x+1))}if(d=this.tokenizer.inlineText(y)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(u=d.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=d.raw,x.text+=d.text):r.push(d);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Ra=class{constructor(t){ve(this,"options");ve(this,"parser");this.options=t||Qn}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-'+Tr(s)+'">'+(i?a:Tr(a,!0))+`</code></pre>
|
|
131
|
+
`:"<pre><code>"+(i?a:Tr(a,!0))+`</code></pre>
|
|
132
132
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
133
|
${this.parser.parse(t)}</blockquote>
|
|
134
134
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
135
|
`}hr(t){return`<hr>
|
|
136
|
-
`}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",
|
|
136
|
+
`}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
|
|
137
137
|
`+s+"</"+a+`>
|
|
138
|
-
`}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+" "+Tr(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
|
|
140
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let c=0;c<u.length;c++)i+=this.tablecell(u[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
141
141
|
<thead>
|
|
142
142
|
`+r+`</thead>
|
|
143
143
|
`+s+`</table>
|
|
144
144
|
`}tablerow({text:t}){return`<tr>
|
|
145
145
|
${t}</tr>
|
|
146
146
|
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
147
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
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>${Tr(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=bm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+Tr(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=bm(t);if(a===null)return Tr(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${Tr(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Tr(t.text)}},Sf=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},mr=class kc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Qn,this.options.renderer=this.options.renderer||new Ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sf}static parse(t,r){return new kc(r).parse(t)}static parseInline(t,r){return new kc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=g||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,g=this.renderer.text(m);for(;u+1<t.length&&t[u+1].type==="text";)m=t[++u],g+=`
|
|
148
|
+
`+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):i+=g;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},la,wo=(la=class{constructor(t){ve(this,"options");ve(this,"block");this.options=t||Qn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?gr.lex:gr.lexInline}provideParser(){return this.block?mr.parse:mr.parseInline}},ve(la,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(la,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),la),Fy=class{constructor(...t){ve(this,"defaults",hf());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",mr);ve(this,"Renderer",Ra);ve(this,"TextRenderer",Sf);ve(this,"Lexer",gr);ve(this,"Tokenizer",Aa);ve(this,"Hooks",wo);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let c=u;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=u;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=u.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ra(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,f=i.renderer[c],m=a[c];a[c]=(...g)=>{let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Aa(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,f=i.tokenizer[c],m=a[c];a[c]=(...g)=>{let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new wo;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,f=i.hooks[c],m=a[c];wo.passThroughHooks.has(u)?a[c]=g=>{if(this.defaults.async&&wo.passThroughHooksRespectAsync.has(u))return(async()=>{let d=await f.call(a,g);return m.call(a,d)})();let h=f.call(a,g);return m.call(a,h)}:a[c]=(...g)=>{if(this.defaults.async)return(async()=>{let d=await f.apply(a,g);return d===!1&&(d=await m.apply(a,g)),d})();let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(u.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return gr.lex(t,r??this.defaults)}parser(t,r){return mr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?gr.lex:gr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let g=await(a.hooks?await a.hooks.provideParser():t?mr.parse:mr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(g):g})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?gr.lex:gr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?mr.parse:mr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return u(c)}}}onError(t,r){return i=>{if(i.message+=`
|
|
149
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Tr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Vn=new Fy;function ze(e,t){return Vn.parse(e,t)}ze.options=ze.setOptions=function(e){return Vn.setOptions(e),ze.defaults=Vn.defaults,Ay(ze.defaults),ze};ze.getDefaults=hf;ze.defaults=Qn;ze.use=function(...e){return Vn.use(...e),ze.defaults=Vn.defaults,Ay(ze.defaults),ze};ze.walkTokens=function(e,t){return Vn.walkTokens(e,t)};ze.parseInline=Vn.parseInline;ze.Parser=mr;ze.parser=mr.parse;ze.Renderer=Ra;ze.TextRenderer=Sf;ze.Lexer=gr;ze.lexer=gr.lex;ze.Tokenizer=Aa;ze.Hooks=wo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;mr.parse;gr.lex;const aI={"&":"&","<":"<",">":">",""":'"',"'":"'"},jy=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,uI=RegExp(jy.source),Sm=(e="")=>uI.test(e)?e.replace(jy,t=>aI[t]||"'"):e,Em=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var lI=class{constructor(e){ve(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,g)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const g=m.map((h,d)=>this.renderer.tableCell(this.parseInline(h.tokens),{header:!1,align:r.align[d]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([u,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(Sm(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(Sm(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}},cI=lI,hn,We,ot,Ic,tv,fI=(tv=class{constructor(e={}){Et(this,We);ve(this,"elIdList",[]);Et(this,hn);const{renderer:t}=e;rt(this,hn,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 $e(this,We,Ic).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,We,ot).call(this,`h${t}`,e)}paragraph(e){return $e(this,We,ot).call(this,"p",e)}link(e,t){const r=Em(e,re(this,hn).baseURL),i=re(this,hn).openLinksInNewTab?"_blank":null;return $e(this,We,ot).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=Em(e,re(this,hn).baseURL);return $e(this,We,ot).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,hn).langPrefix}${t}`:null;return $e(this,We,ot).call(this,"code",e,{className:r})}code(e,t){return $e(this,We,ot).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,We,ot).call(this,"blockquote",e)}list(e,t,r){return $e(this,We,ot).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,We,ot).call(this,"li",e)}checkbox(e){return $e(this,We,ot).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,We,ot).call(this,"table",e)}tableHeader(e){return $e(this,We,ot).call(this,"thead",e)}tableBody(e){return $e(this,We,ot).call(this,"tbody",e)}tableRow(e){return $e(this,We,ot).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,We,ot).call(this,r,e,{align:t.align})}strong(e){return $e(this,We,ot).call(this,"strong",e)}em(e){return $e(this,We,ot).call(this,"em",e)}del(e){return $e(this,We,ot).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,We,ot).call(this,"hr")}br(){return $e(this,We,ot).call(this,"br")}},hn=new WeakMap,We=new WeakSet,ot=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,We,Ic).call(this),z.createElement(e,{...r,...i},t)},Ic=function(){this.elIdList[this.elIdList.length-1]+=1},tv),dI=fI;const pI=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}`)},hI={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},gI=new Fy,mI=e=>{pI(e);const t={...hI,...e},r=t.instance??gI,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={renderer:new dI({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new cI(u),f=t.isInline?c.parseInline(a):c.parse(a);return z.createElement(z.Fragment,null,f)};var vI=mI,yI=vI;const bI=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,c]=z.useState(null),f=z.useRef(null),[m,g]=z.useState(null),[h,d]=z.useState(!1),{styles:y,attributes:x}=Xc(u,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),p=z.Children.map(e,w=>z.isValidElement(w)?z.cloneElement(w,{ref:c,onMouseEnter:()=>d(!0),onMouseLeave:()=>{f.current=setTimeout(()=>d(!1),50)}}):w);return s?$.jsx($.Fragment,{children:p}):$.jsxs($.Fragment,{children:[p,h&&t&&Pi.createPortal($.jsx("div",{ref:g,style:y.popper,...x.popper,className:je("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),d(!0)},onMouseLeave:()=>d(!1),children:typeof t=="string"?$.jsx(yI,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},zy=({referenceElement:e,label:t})=>{const[r,i]=z.useState(null),{styles:s,attributes:a}=Xc(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return $.jsx("div",{className:"z-[1000] 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,...a.popper,children:t})},wI=vc.keyframes`
|
|
150
150
|
to {
|
|
151
151
|
fill: url(#d);
|
|
152
152
|
stroke-dashoffset: 0;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,By=Sa.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: ${wI} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
& #circle {
|
|
@@ -172,37 +172,37 @@ 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
|
+
`,xI=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(By,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.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"}),$.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"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var xo={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 t$=go.exports,dm;function r$(){return dm||(dm=1,(function(e,t){(function(){var r,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",g=1,p=2,b=4,x=1,d=2,w=1,h=2,S=4,E=8,R=16,O=32,k=64,U=128,F=256,D=512,G=30,j="...",L=800,B=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",h],["curry",E],["curryRight",R],["flip",D],["partial",O],["partialRight",k],["rearg",F]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Ae="[object DOMException]",Ze="[object Error]",ie="[object Function]",vt="[object GeneratorFunction]",lt="[object Map]",mr="[object Number]",Zo="[object Null]",Gt="[object Object]",Go="[object Promise]",Va="[object Proxy]",Mt="[object RegExp]",yt="[object Set]",Kr="[object String]",wn="[object Symbol]",Ai="[object Undefined]",Vr="[object WeakMap]",Ko="[object WeakSet]",Yr="[object ArrayBuffer]",$r="[object DataView]",Ya="[object Float32Array]",Xa="[object Float64Array]",Ja="[object Int8Array]",Qa="[object Int16Array]",eu="[object Int32Array]",tu="[object Uint8Array]",ru="[object Uint8ClampedArray]",nu="[object Uint16Array]",iu="[object Uint32Array]",U0=/\b__p \+= '';/g,B0=/\b(__p \+=) '' \+/g,H0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,If=/&(?:amp|lt|gt|quot|#39);/g,Lf=/[&<>"']/g,q0=RegExp(If.source),Z0=RegExp(Lf.source),G0=/<%-([\s\S]+?)%>/g,K0=/<%([\s\S]+?)%>/g,Mf=/<%=([\s\S]+?)%>/g,V0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y0=/^\w*$/,X0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ou=/[\\^$.*+?()[\]{}|]/g,J0=RegExp(ou.source),su=/^\s+/,Q0=/\s/,eb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tb=/\{\n\/\* \[wrapped with (.+)\] \*/,rb=/,? & /,nb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ib=/[()=,{}\[\]\/\s]/,ob=/\\(\\)?/g,sb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,ab=/^[-+]0x[0-9a-f]+$/i,ub=/^0b[01]+$/i,lb=/^\[object .+?Constructor\]$/,cb=/^0o[0-7]+$/i,fb=/^(?:0|[1-9]\d*)$/,db=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,pb=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",hb="\\u0300-\\u036f",gb="\\ufe20-\\ufe2f",mb="\\u20d0-\\u20ff",Df=hb+gb+mb,Nf="\\u2700-\\u27bf",jf="a-z\\xdf-\\xf6\\xf8-\\xff",vb="\\xac\\xb1\\xd7\\xf7",yb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bb="\\u2000-\\u206f",wb=" \\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",zf="A-Z\\xc0-\\xd6\\xd8-\\xde",Wf="\\ufe0e\\ufe0f",Uf=vb+yb+bb+wb,au="['’]",xb="["+Yo+"]",Bf="["+Uf+"]",Xo="["+Df+"]",Hf="\\d+",Sb="["+Nf+"]",qf="["+jf+"]",Zf="[^"+Yo+Uf+Hf+Nf+jf+zf+"]",uu="\\ud83c[\\udffb-\\udfff]",Eb="(?:"+Xo+"|"+uu+")",Gf="[^"+Yo+"]",lu="(?:\\ud83c[\\udde6-\\uddff]){2}",cu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+zf+"]",Kf="\\u200d",Vf="(?:"+qf+"|"+Zf+")",_b="(?:"+Vn+"|"+Zf+")",Yf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",Xf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Jf=Eb+"?",Qf="["+Wf+"]?",Ob="(?:"+Kf+"(?:"+[Gf,lu,cu].join("|")+")"+Qf+Jf+")*",Ab="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ed=Qf+Jf+Ob,Rb="(?:"+[Sb,lu,cu].join("|")+")"+ed,Pb="(?:"+[Gf+Xo+"?",Xo,lu,cu,xb].join("|")+")",Cb=RegExp(au,"g"),kb=RegExp(Xo,"g"),fu=RegExp(uu+"(?="+uu+")|"+Pb+ed,"g"),$b=RegExp([Vn+"?"+qf+"+"+Yf+"(?="+[Bf,Vn,"$"].join("|")+")",_b+"+"+Xf+"(?="+[Bf,Vn+Vf,"$"].join("|")+")",Vn+"?"+Vf+"+"+Yf,Vn+"+"+Xf,Tb,Ab,Hf,Rb].join("|"),"g"),Ib=RegExp("["+Kf+Yo+Df+Wf+"]"),Lb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mb=["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"],Fb=-1,Ue={};Ue[Ya]=Ue[Xa]=Ue[Ja]=Ue[Qa]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[iu]=!0,Ue[ce]=Ue[fe]=Ue[Yr]=Ue[me]=Ue[$r]=Ue[Ee]=Ue[Ze]=Ue[ie]=Ue[lt]=Ue[mr]=Ue[Gt]=Ue[Mt]=Ue[yt]=Ue[Kr]=Ue[Vr]=!1;var je={};je[ce]=je[fe]=je[Yr]=je[$r]=je[me]=je[Ee]=je[Ya]=je[Xa]=je[Ja]=je[Qa]=je[eu]=je[lt]=je[mr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[wn]=je[tu]=je[ru]=je[nu]=je[iu]=!0,je[Ze]=je[ie]=je[Vr]=!1;var Db={À:"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"},Nb={"&":"&","<":"<",">":">",'"':""","'":"'"},jb={"&":"&","<":"<",">":">",""":'"',"'":"'"},zb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wb=parseFloat,Ub=parseInt,td=typeof Ns=="object"&&Ns&&Ns.Object===Object&&Ns,Bb=typeof self=="object"&&self&&self.Object===Object&&self,dt=td||Bb||Function("return this")(),du=t&&!t.nodeType&&t,xn=du&&!0&&e&&!e.nodeType&&e,rd=xn&&xn.exports===du,pu=rd&&td.process,Kt=(function(){try{var N=xn&&xn.require&&xn.require("util").types;return N||pu&&pu.binding&&pu.binding("util")}catch{}})(),nd=Kt&&Kt.isArrayBuffer,id=Kt&&Kt.isDate,od=Kt&&Kt.isMap,sd=Kt&&Kt.isRegExp,ad=Kt&&Kt.isSet,ud=Kt&&Kt.isTypedArray;function Ft(N,K,H){switch(H.length){case 0:return N.call(K);case 1:return N.call(K,H[0]);case 2:return N.call(K,H[0],H[1]);case 3:return N.call(K,H[0],H[1],H[2])}return N.apply(K,H)}function Hb(N,K,H,ae){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var st=N[be];K(ae,st,H(st),N)}return ae}function Vt(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae&&K(N[H],H,N)!==!1;);return N}function qb(N,K){for(var H=N==null?0:N.length;H--&&K(N[H],H,N)!==!1;);return N}function ld(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(!K(N[H],H,N))return!1;return!0}function Xr(N,K){for(var H=-1,ae=N==null?0:N.length,be=0,Pe=[];++H<ae;){var st=N[H];K(st,H,N)&&(Pe[be++]=st)}return Pe}function Jo(N,K){var H=N==null?0:N.length;return!!H&&Yn(N,K,0)>-1}function hu(N,K,H){for(var ae=-1,be=N==null?0:N.length;++ae<be;)if(H(K,N[ae]))return!0;return!1}function Be(N,K){for(var H=-1,ae=N==null?0:N.length,be=Array(ae);++H<ae;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,ae=K.length,be=N.length;++H<ae;)N[be+H]=K[H];return N}function gu(N,K,H,ae){var be=-1,Pe=N==null?0:N.length;for(ae&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Zb(N,K,H,ae){var be=N==null?0:N.length;for(ae&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function mu(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(K(N[H],H,N))return!0;return!1}var Gb=vu("length");function Kb(N){return N.split("")}function Vb(N){return N.match(nb)||[]}function cd(N,K,H){var ae;return H(N,function(be,Pe,st){if(K(be,Pe,st))return ae=Pe,!1}),ae}function Qo(N,K,H,ae){for(var be=N.length,Pe=H+(ae?1:-1);ae?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Yn(N,K,H){return K===K?aw(N,K,H):Qo(N,fd,H)}function Yb(N,K,H,ae){for(var be=H-1,Pe=N.length;++be<Pe;)if(ae(N[be],K))return be;return-1}function fd(N){return N!==N}function dd(N,K){var H=N==null?0:N.length;return H?bu(N,K)/H:Z}function vu(N){return function(K){return K==null?r:K[N]}}function yu(N){return function(K){return N==null?r:N[K]}}function pd(N,K,H,ae,be){return be(N,function(Pe,st,Ne){H=ae?(ae=!1,Pe):K(H,Pe,st,Ne)}),H}function Xb(N,K){var H=N.length;for(N.sort(K);H--;)N[H]=N[H].value;return N}function bu(N,K){for(var H,ae=-1,be=N.length;++ae<be;){var Pe=K(N[ae]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function wu(N,K){for(var H=-1,ae=Array(N);++H<N;)ae[H]=K(H);return ae}function Jb(N,K){return Be(K,function(H){return[H,N[H]]})}function hd(N){return N&&N.slice(0,yd(N)+1).replace(su,"")}function Dt(N){return function(K){return N(K)}}function xu(N,K){return Be(K,function(H){return N[H]})}function Ti(N,K){return N.has(K)}function gd(N,K){for(var H=-1,ae=N.length;++H<ae&&Yn(K,N[H],0)>-1;);return H}function md(N,K){for(var H=N.length;H--&&Yn(K,N[H],0)>-1;);return H}function Qb(N,K){for(var H=N.length,ae=0;H--;)N[H]===K&&++ae;return ae}var ew=yu(Db),tw=yu(Nb);function rw(N){return"\\"+zb[N]}function nw(N,K){return N==null?r:N[K]}function Xn(N){return Ib.test(N)}function iw(N){return Lb.test(N)}function ow(N){for(var K,H=[];!(K=N.next()).done;)H.push(K.value);return H}function Su(N){var K=-1,H=Array(N.size);return N.forEach(function(ae,be){H[++K]=[be,ae]}),H}function vd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,ae=N.length,be=0,Pe=[];++H<ae;){var st=N[H];(st===K||st===m)&&(N[H]=m,Pe[be++]=H)}return Pe}function es(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=ae}),H}function sw(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=[ae,ae]}),H}function aw(N,K,H){for(var ae=H-1,be=N.length;++ae<be;)if(N[ae]===K)return ae;return-1}function uw(N,K,H){for(var ae=H+1;ae--;)if(N[ae]===K)return ae;return ae}function Jn(N){return Xn(N)?cw(N):Gb(N)}function ar(N){return Xn(N)?fw(N):Kb(N)}function yd(N){for(var K=N.length;K--&&Q0.test(N.charAt(K)););return K}var lw=yu(jb);function cw(N){for(var K=fu.lastIndex=0;fu.test(N);)++K;return K}function fw(N){return N.match(fu)||[]}function dw(N){return N.match($b)||[]}var pw=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,Mb));var H=K.Array,ae=K.Date,be=K.Error,Pe=K.Function,st=K.Math,Ne=K.Object,Eu=K.RegExp,hw=K.String,Yt=K.TypeError,ts=H.prototype,gw=Pe.prototype,ei=Ne.prototype,rs=K["__core-js_shared__"],ns=gw.toString,Fe=ei.hasOwnProperty,mw=0,bd=(function(){var n=/[^.]+$/.exec(rs&&rs.keys&&rs.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),is=ei.toString,vw=ns.call(Ne),yw=dt._,bw=Eu("^"+ns.call(Fe).replace(ou,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),os=rd?K.Buffer:r,en=K.Symbol,ss=K.Uint8Array,wd=os?os.allocUnsafe:r,as=vd(Ne.getPrototypeOf,Ne),xd=Ne.create,Sd=ei.propertyIsEnumerable,us=ts.splice,Ed=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,ls=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),ww=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,xw=ae&&ae.now!==dt.Date.now&&ae.now,Sw=K.setTimeout!==dt.setTimeout&&K.setTimeout,cs=st.ceil,fs=st.floor,_u=Ne.getOwnPropertySymbols,Ew=os?os.isBuffer:r,_d=K.isFinite,_w=ts.join,Ow=vd(Ne.keys,Ne),at=st.max,bt=st.min,Aw=ae.now,Tw=K.parseInt,Od=st.random,Rw=ts.reverse,Ou=Tn(K,"DataView"),Pi=Tn(K,"Map"),Au=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),ds=Ci&&new Ci,ri={},Pw=Rn(Ou),Cw=Rn(Pi),kw=Rn(Au),$w=Rn(ti),Iw=Rn(Ci),ps=en?en.prototype:r,$i=ps?ps.valueOf:r,Ad=ps?ps.toString:r;function A(n){if(Je(n)&&!we(n)&&!(n instanceof Te)){if(n instanceof Xt)return n;if(Fe.call(n,"__wrapped__"))return Tp(n)}return new Xt(n)}var ni=(function(){function n(){}return function(o){if(!Ge(o))return{};if(xd)return xd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function hs(){}function Xt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:G0,evaluate:K0,interpolate:Mf,variable:"",imports:{_:A}},A.prototype=hs.prototype,A.prototype.constructor=A,Xt.prototype=ni(hs.prototype),Xt.prototype.constructor=Xt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Lw(){var n=new Te(this.__wrapped__);return n.__actions__=Pt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Pt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Pt(this.__views__),n}function Mw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Fw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=K1(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=y?I:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=bt(z,this.__takeCount__);if(!u||!y&&_==z&&le==z)return Yd(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=X[Se],Re=Oe.iteratee,zt=Oe.type,At=Re(ge);if(zt==C)ge=At;else if(!At){if(zt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=ni(hs.prototype),Te.prototype.constructor=Te;function En(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Dw(){this.__data__=ki?ki(null):{},this.size=0}function Nw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function jw(n){var o=this.__data__;if(ki){var u=o[n];return u===f?r:u}return Fe.call(o,n)?o[n]:r}function zw(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function Ww(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ki&&o===r?f:o,this}En.prototype.clear=Dw,En.prototype.delete=Nw,En.prototype.get=jw,En.prototype.has=zw,En.prototype.set=Ww;function Ir(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Uw(){this.__data__=[],this.size=0}function Bw(n){var o=this.__data__,u=gs(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():us.call(o,u,1),--this.size,!0}function Hw(n){var o=this.__data__,u=gs(o,n);return u<0?r:o[u][1]}function qw(n){return gs(this.__data__,n)>-1}function Zw(n,o){var u=this.__data__,y=gs(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=Uw,Ir.prototype.delete=Bw,Ir.prototype.get=Hw,Ir.prototype.has=qw,Ir.prototype.set=Zw;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Gw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function Kw(n){var o=Ts(this,n).delete(n);return this.size-=o?1:0,o}function Vw(n){return Ts(this,n).get(n)}function Yw(n){return Ts(this,n).has(n)}function Xw(n,o){var u=Ts(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=Gw,Lr.prototype.delete=Kw,Lr.prototype.get=Vw,Lr.prototype.has=Yw,Lr.prototype.set=Xw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Jw(n){return this.__data__.set(n,f),this}function Qw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Jw,_n.prototype.has=Qw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function e1(){this.__data__=new Ir,this.size=0}function t1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function r1(n){return this.__data__.get(n)}function n1(n){return this.__data__.has(n)}function i1(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<s-1)return y.push([n,o]),this.size=++u.size,this;u=this.__data__=new Lr(y)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=e1,ur.prototype.delete=t1,ur.prototype.get=r1,ur.prototype.has=n1,ur.prototype.set=i1;function Td(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&sn(n),T=!u&&!y&&!_&&ai(n),P=u||y||_||T,I=P?wu(n.length,hw):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Nr(V,z)))&&I.push(V);return I}function Rd(n){var o=n.length;return o?n[Du(0,o-1)]:r}function o1(n,o){return Rs(Pt(n),On(o,0,n.length))}function s1(n){return Rs(Pt(n))}function Tu(n,o,u){(u!==r&&!lr(n[o],u)||u===r&&!(o in n))&&Mr(n,o,u)}function Ii(n,o,u){var y=n[o];(!(Fe.call(n,o)&&lr(y,u))||u===r&&!(o in n))&&Mr(n,o,u)}function gs(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function a1(n,o,u,y){return tn(n,function(_,T,P){o(y,_,u(_),P)}),y}function Pd(n,o){return n&&yr(o,ct(o),n)}function u1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&ls?ls(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Ru(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:ul(n,o[u]);return _}function On(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Jt(n,o,u,y,_,T){var P,I=o&g,z=o&p,V=o&b;if(u&&(P=_?u(n,y,_,T):u(n)),P!==r)return P;if(!Ge(n))return n;var X=we(n);if(X){if(P=Y1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(sn(n))return Qd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:yp(n),!I)return z?j1(n,u1(P,n)):N1(n,Pd(P,n))}else{if(!je[ee])return _?n:{};P=X1(n,ee,I)}}T||(T=new ur);var le=T.get(n);if(le)return le;T.set(n,P),Gp(n)?n.forEach(function(ge){P.add(Jt(ge,o,u,ge,n,T))}):qp(n)&&n.forEach(function(ge,Oe){P.set(Oe,Jt(ge,o,u,Oe,n,T))});var he=V?z?Ku:Gu:z?kt:ct,Se=X?r:he(n);return Vt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),Ii(P,Oe,Jt(ge,o,u,Oe,n,T))}),P}function l1(n){var o=ct(n);return function(u){return Cd(u,n,o)}}function Cd(n,o,u){var y=u.length;if(n==null)return!y;for(n=Ne(n);y--;){var _=u[y],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function kd(n,o,u){if(typeof n!="function")throw new Yt(l);return zi(function(){n.apply(r,u)},o)}function Li(n,o,u,y){var _=-1,T=Jo,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Be(o,Dt(u))),y?(T=hu,P=!1):o.length>=s&&(T=Ti,P=!1,o=new _n(o));e:for(;++_<I;){var X=n[_],ee=u==null?X:u(X);if(X=y||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(X)}else T(o,ee,y)||z.push(X)}return z}var tn=ip(vr),$d=ip(Cu,!0);function c1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ms(n,o,u){for(var y=-1,_=n.length;++y<_;){var T=n[y],P=o(T);if(P!=null&&(I===r?P===P&&!jt(P):u(P,I)))var I=P,z=T}return z}function f1(n,o,u,y){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),y=y===r||y>_?_:xe(y),y<0&&(y+=_),y=u>y?0:Vp(y);u<y;)n[u++]=o;return n}function Id(n,o){var u=[];return tn(n,function(y,_,T){o(y,_,T)&&u.push(y)}),u}function pt(n,o,u,y,_){var T=-1,P=n.length;for(u||(u=Q1),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?pt(I,o-1,u,y,_):Jr(_,I):y||(_[_.length]=I)}return _}var Pu=op(),Ld=op(!0);function vr(n,o){return n&&Pu(n,o,ct)}function Cu(n,o){return n&&Ld(n,o,ct)}function vs(n,o){return Xr(o,function(u){return jr(n[u])})}function An(n,o){o=nn(o,n);for(var u=0,y=o.length;n!=null&&u<y;)n=n[br(o[u++])];return u&&u==y?n:r}function Md(n,o,u){var y=o(n);return we(n)?y:Jr(y,u(n))}function _t(n){return n==null?n===r?Ai:Zo:Sn&&Sn in Ne(n)?G1(n):sx(n)}function ku(n,o){return n>o}function d1(n,o){return n!=null&&Fe.call(n,o)}function p1(n,o){return n!=null&&o in Ne(n)}function h1(n,o,u){return n>=bt(o,u)&&n<at(o,u)}function $u(n,o,u){for(var y=u?hu:Jo,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Be(X,Dt(o))),z=bt(X.length,z),I[P]=!u&&(o||_>=120&&X.length>=120)?new _n(P&&X):r}X=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],he=o?o(le):le;if(le=u||le!==0?le:0,!(oe?Ti(oe,he):y(V,he,u))){for(P=T;--P;){var Se=I[P];if(!(Se?Ti(Se,he):y(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function g1(n,o,u,y){return vr(n,function(_,T,P){o(y,u(_),T,P)}),y}function Mi(n,o,u){o=nn(o,n),n=Sp(n,o);var y=n==null?n:n[br(er(o))];return y==null?r:Ft(y,n,u)}function Fd(n){return Je(n)&&_t(n)==ce}function m1(n){return Je(n)&&_t(n)==Yr}function v1(n){return Je(n)&&_t(n)==Ee}function Fi(n,o,u,y,_){return n===o?!0:n==null||o==null||!Je(n)&&!Je(o)?n!==n&&o!==o:y1(n,o,u,y,Fi,_)}function y1(n,o,u,y,_,T){var P=we(n),I=we(o),z=P?fe:wt(n),V=I?fe:wt(o);z=z==ce?Gt:z,V=V==ce?Gt:V;var X=z==Gt,ee=V==Gt,oe=z==V;if(oe&&sn(n)){if(!sn(o))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ur),P||ai(n)?gp(n,o,u,y,_,T):q1(n,o,z,u,y,_,T);if(!(u&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return T||(T=new ur),_(Se,ge,u,y,T)}}return oe?(T||(T=new ur),Z1(n,o,u,y,_,T)):!1}function b1(n){return Je(n)&&wt(n)==lt}function Iu(n,o,u,y){var _=u.length,T=_,P=!y;if(n==null)return!T;for(n=Ne(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new ur;if(y)var oe=y(V,X,z,n,o,ee);if(!(oe===r?Fi(X,V,x|d,y,ee):oe))return!1}}return!0}function Dd(n){if(!Ge(n)||tx(n))return!1;var o=jr(n)?bw:lb;return o.test(Rn(n))}function w1(n){return Je(n)&&_t(n)==Mt}function x1(n){return Je(n)&&wt(n)==yt}function S1(n){return Je(n)&&Ls(n.length)&&!!Ue[_t(n)]}function Nd(n){return typeof n=="function"?n:n==null?$t:typeof n=="object"?we(n)?Wd(n[0],n[1]):zd(n):sh(n)}function Lu(n){if(!ji(n))return Ow(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function E1(n){if(!Ge(n))return ox(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Mu(n,o){return n<o}function jd(n,o){var u=-1,y=Ct(n)?H(n.length):[];return tn(n,function(_,T,P){y[++u]=o(_,T,P)}),y}function zd(n){var o=Yu(n);return o.length==1&&o[0][2]?wp(o[0][0],o[0][1]):function(u){return u===n||Iu(u,n,o)}}function Wd(n,o){return Ju(n)&&bp(o)?wp(br(n),o):function(u){var y=ul(u,n);return y===r&&y===o?ll(u,n):Fi(o,y,x|d)}}function ys(n,o,u,y,_){n!==o&&Pu(o,function(T,P){if(_||(_=new ur),Ge(T))_1(n,o,P,u,ys,y,_);else{var I=y?y(el(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Tu(n,P,I)}},kt)}function _1(n,o,u,y,_,T,P){var I=el(n,u),z=el(o,u),V=P.get(z);if(V){Tu(n,u,V);return}var X=T?T(I,z,u+"",n,o,P):r,ee=X===r;if(ee){var oe=we(z),le=!oe&&sn(z),he=!oe&&!le&&ai(z);X=z,oe||le||he?we(I)?X=I:tt(I)?X=Pt(I):le?(ee=!1,X=Qd(z,!0)):he?(ee=!1,X=ep(z,!0)):X=[]:Wi(z)||Pn(z)?(X=I,Pn(I)?X=Yp(I):(!Ge(I)||jr(I))&&(X=yp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,y,T,P),P.delete(z)),Tu(n,u,X)}function Ud(n,o){var u=n.length;if(u)return o+=o<0?u:0,Nr(o,u)?n[o]:r}function Bd(n,o,u){o.length?o=Be(o,function(T){return we(T)?function(P){return An(P,T.length===1?T[0]:T)}:T}):o=[$t];var y=-1;o=Be(o,Dt(pe()));var _=jd(n,function(T,P,I){var z=Be(o,function(V){return V(T)});return{criteria:z,index:++y,value:T}});return Xb(_,function(T,P){return D1(T,P,u)})}function O1(n,o){return Hd(n,o,function(u,y){return ll(n,y)})}function Hd(n,o,u){for(var y=-1,_=o.length,T={};++y<_;){var P=o[y],I=An(n,P);u(I,P)&&Di(T,nn(P,n),I)}return T}function A1(n){return function(o){return An(o,n)}}function Fu(n,o,u,y){var _=y?Yb:Yn,T=-1,P=o.length,I=n;for(n===o&&(o=Pt(o)),u&&(I=Be(n,Dt(u)));++T<P;)for(var z=0,V=o[T],X=u?u(V):V;(z=_(I,X,z,y))>-1;)I!==n&&us.call(I,z,1),us.call(n,z,1);return n}function qd(n,o){for(var u=n?o.length:0,y=u-1;u--;){var _=o[u];if(u==y||_!==T){var T=_;Nr(_)?us.call(n,_,1):zu(n,_)}}return n}function Du(n,o){return n+fs(Od()*(o-n+1))}function T1(n,o,u,y){for(var _=-1,T=at(cs((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Nu(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=fs(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return tl(xp(n,o,$t),n+"")}function R1(n){return Rd(ui(n))}function P1(n,o){var u=ui(n);return Rs(u,On(o,0,u.length))}function Di(n,o,u,y){if(!Ge(n))return n;o=nn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=br(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=y?y(X,z,I):r,V===r&&(V=Ge(X)?X:Nr(o[_+1])?[]:{})}Ii(I,z,V),I=I[z]}return n}var Zd=ds?function(n,o){return ds.set(n,o),n}:$t,C1=ls?function(n,o){return ls(n,"toString",{configurable:!0,enumerable:!1,value:fl(o),writable:!0})}:$t;function k1(n){return Rs(ui(n))}function Qt(n,o,u){var y=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++y<_;)T[y]=n[y+o];return T}function $1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function bs(n,o,u){var y=0,_=n==null?y:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;y<_;){var T=y+_>>>1,P=n[T];P!==null&&!jt(P)&&(u?P<=o:P<o)?y=T+1:_=T}return _}return ju(n,o,$t,u)}function ju(n,o,u,y){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=jt(o),V=o===r;_<T;){var X=fs((_+T)/2),ee=u(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=jt(ee);if(P)var ge=y||he;else V?ge=he&&(y||oe):I?ge=he&&oe&&(y||!le):z?ge=he&&oe&&!le&&(y||!Se):le||Se?ge=!1:ge=y?ee<=o:ee<o;ge?_=X+1:T=X}return bt(T,se)}function Gd(n,o){for(var u=-1,y=n.length,_=0,T=[];++u<y;){var P=n[u],I=o?o(P):P;if(!u||!lr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function Kd(n){return typeof n=="number"?n:jt(n)?Z:+n}function Nt(n){if(typeof n=="string")return n;if(we(n))return Be(n,Nt)+"";if(jt(n))return Ad?Ad.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function rn(n,o,u){var y=-1,_=Jo,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=hu;else if(T>=s){var V=o?null:B1(n);if(V)return es(V);P=!1,_=Ti,z=new _n}else z=o?[]:I;e:for(;++y<T;){var X=n[y],ee=o?o(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(X))}return I}function zu(n,o){return o=nn(o,n),n=Sp(n,o),n==null||delete n[br(er(o))]}function Vd(n,o,u,y){return Di(n,o,u(An(n,o)),y)}function ws(n,o,u,y){for(var _=n.length,T=y?_:-1;(y?T--:++T<_)&&o(n[T],T,n););return u?Qt(n,y?0:T,y?T+1:_):Qt(n,y?T+1:0,y?_:T)}function Yd(n,o){var u=n;return u instanceof Te&&(u=u.value()),gu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function Wu(n,o,u){var y=n.length;if(y<2)return y?rn(n[0]):[];for(var _=-1,T=H(y);++_<y;)for(var P=n[_],I=-1;++I<y;)I!=_&&(T[_]=Li(T[_]||P,n[I],o,u));return rn(pt(T,1),o,u)}function Xd(n,o,u){for(var y=-1,_=n.length,T=o.length,P={};++y<_;){var I=y<T?o[y]:r;u(P,n[y],I)}return P}function Uu(n){return tt(n)?n:[]}function Bu(n){return typeof n=="function"?n:$t}function nn(n,o){return we(n)?n:Ju(n,o)?[n]:Ap(ke(n))}var I1=_e;function on(n,o,u){var y=n.length;return u=u===r?y:u,!o&&u>=y?n:Qt(n,o,u)}var Jd=ww||function(n){return dt.clearTimeout(n)};function Qd(n,o){if(o)return n.slice();var u=n.length,y=wd?wd(u):new n.constructor(u);return n.copy(y),y}function Hu(n){var o=new n.constructor(n.byteLength);return new ss(o).set(new ss(n)),o}function L1(n,o){var u=o?Hu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function M1(n){var o=new n.constructor(n.source,Ff.exec(n));return o.lastIndex=n.lastIndex,o}function F1(n){return $i?Ne($i.call(n)):{}}function ep(n,o){var u=o?Hu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function tp(n,o){if(n!==o){var u=n!==r,y=n===null,_=n===n,T=jt(n),P=o!==r,I=o===null,z=o===o,V=jt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||y&&P&&z||!u&&z||!_)return 1;if(!y&&!T&&!V&&n<o||V&&u&&_&&!y&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function D1(n,o,u){for(var y=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++y<P;){var z=tp(_[y],T[y]);if(z){if(y>=I)return z;var V=u[y];return z*(V=="desc"?-1:1)}}return n.index-o.index}function rp(n,o,u,y){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=at(T-P,0),X=H(z+V),ee=!y;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function np(n,o,u,y){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,X=at(T-I,0),ee=H(X+V),oe=!y;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Pt(n,o){var u=-1,y=n.length;for(o||(o=H(y));++u<y;)o[u]=n[u];return o}function yr(n,o,u,y){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=y?y(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?Mr(u,I,z):Ii(u,I,z)}return u}function N1(n,o){return yr(n,Xu(n),o)}function j1(n,o){return yr(n,mp(n),o)}function xs(n,o){return function(u,y){var _=we(u)?Hb:a1,T=o?o():{};return _(u,n,pe(y,2),T)}}function ii(n){return _e(function(o,u){var y=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&Ot(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=Ne(o);++y<_;){var I=u[y];I&&n(o,I,y,T)}return o})}function ip(n,o){return function(u,y){if(u==null)return u;if(!Ct(u))return n(u,y);for(var _=u.length,T=o?_:-1,P=Ne(u);(o?T--:++T<_)&&y(P[T],T,P)!==!1;);return u}}function op(n){return function(o,u,y){for(var _=-1,T=Ne(o),P=y(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function z1(n,o,u){var y=o&w,_=Ni(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(y?u:this,arguments)}return T}function sp(n){return function(o){o=ke(o);var u=Xn(o)?ar(o):r,y=u?u[0]:o.charAt(0),_=u?on(u,1).join(""):o.slice(1);return y[n]()+_}}function oi(n){return function(o){return gu(ih(nh(o).replace(Cb,"")),n,"")}}function Ni(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ni(n.prototype),y=n.apply(u,o);return Ge(y)?y:u}}function W1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=si(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:Qr(P,z);if(T-=V.length,T<u)return fp(n,o,Ss,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?y:n;return Ft(X,this,P)}return _}function ap(n){return function(o,u,y){var _=Ne(o);if(!Ct(o)){var T=pe(u,3);o=ct(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,y);return P>-1?_[T?o[P]:P]:r}}function up(n){return Dr(function(o){var u=o.length,y=u,_=Xt.prototype.thru;for(n&&o.reverse();y--;){var T=o[y];if(typeof T!="function")throw new Yt(l);if(_&&!P&&As(T)=="wrapper")var P=new Xt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=As(T),z=I=="wrapper"?Vu(T):r;z&&Qu(z[0])&&z[1]==(U|E|O|F)&&!z[4].length&&z[9]==1?P=P[As(z[0])].apply(P,z[3]):P=T.length==1&&Qu(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&we(X))return P.plant(X).value();for(var ee=0,oe=u?o[ee].apply(this,V):X;++ee<u;)oe=o[ee].call(this,oe);return oe}})}function Ss(n,o,u,y,_,T,P,I,z,V){var X=o&U,ee=o&w,oe=o&h,le=o&(E|R),he=o&D,Se=oe?r:Ni(n);function ge(){for(var Oe=arguments.length,Re=H(Oe),zt=Oe;zt--;)Re[zt]=arguments[zt];if(le)var At=si(ge),Wt=Qb(Re,At);if(y&&(Re=rp(Re,y,_,le)),T&&(Re=np(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var rt=Qr(Re,At);return fp(n,o,Ss,ge.placeholder,u,Re,rt,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=ax(Re,I):he&&Oe>1&&Re.reverse(),X&&z<Oe&&(Re.length=z),this&&this!==dt&&this instanceof ge&&(Wr=Se||Ni(Wr)),Wr.apply(cr,Re)}return ge}function lp(n,o){return function(u,y){return g1(u,n,o(y),{})}}function Es(n,o){return function(u,y){var _;if(u===r&&y===r)return o;if(u!==r&&(_=u),y!==r){if(_===r)return y;typeof u=="string"||typeof y=="string"?(u=Nt(u),y=Nt(y)):(u=Kd(u),y=Kd(y)),_=n(u,y)}return _}}function qu(n){return Dr(function(o){return o=Be(o,Dt(pe())),_e(function(u){var y=this;return n(o,function(_){return Ft(_,y,u)})})})}function _s(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Nu(o,n):o;var y=Nu(o,cs(n/Jn(o)));return Xn(o)?on(ar(y),0,n).join(""):y.slice(0,n)}function U1(n,o,u,y){var _=o&w,T=Ni(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=y.length,ee=H(X+z),oe=this&&this!==dt&&this instanceof P?T:n;++V<X;)ee[V]=y[V];for(;z--;)ee[V++]=arguments[++I];return Ft(oe,_?u:this,ee)}return P}function cp(n){return function(o,u,y){return y&&typeof y!="number"&&Ot(o,u,y)&&(u=y=r),o=zr(o),u===r?(u=o,o=0):u=zr(u),y=y===r?o<u?1:-1:zr(y),T1(o,u,y,n)}}function Os(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),n(o,u)}}function fp(n,o,u,y,_,T,P,I,z,V){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?T:r,he=X?r:T;o|=X?O:k,o&=~(X?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=u.apply(r,Se);return Qu(n)&&Ep(ge,Se),ge.placeholder=y,_p(ge,n,o)}function Zu(n){var o=st[n];return function(u,y){if(u=tr(u),y=y==null?0:bt(xe(y),292),y&&_d(u)){var _=(ke(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+y));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-y))}return o(u)}}var B1=ti&&1/es(new ti([,-0]))[1]==Y?function(n){return new ti(n)}:hl;function dp(n){return function(o){var u=wt(o);return u==lt?Su(o):u==yt?sw(o):Jb(o,n(o))}}function Fr(n,o,u,y,_,T,P,I){var z=o&h;if(!z&&typeof n!="function")throw new Yt(l);var V=y?y.length:0;if(V||(o&=-97,y=_=r),P=P===r?P:at(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var X=y,ee=_;y=_=r}var oe=z?r:Vu(n),le=[n,o,u,y,_,X,ee,T,P,I];if(oe&&ix(le,oe),n=le[0],o=le[1],u=le[2],y=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:at(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=z1(n,o,u);else o==E||o==R?he=W1(n,o,I):(o==O||o==(w|O))&&!_.length?he=U1(n,o,u,y):he=Ss.apply(r,le);var Se=oe?Zd:Ep;return _p(Se(he,le),n,o)}function pp(n,o,u,y){return n===r||lr(n,ei[u])&&!Fe.call(y,u)?o:n}function hp(n,o,u,y,_,T){return Ge(n)&&Ge(o)&&(T.set(o,n),ys(n,o,r,hp,T),T.delete(o)),n}function H1(n){return Wi(n)?r:n}function gp(n,o,u,y,_,T){var P=u&x,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,oe=!0,le=u&d?new _n:r;for(T.set(n,o),T.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(y)var ge=P?y(Se,he,ee,o,n,T):y(he,Se,ee,n,o,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!mu(o,function(Oe,Re){if(!Ti(le,Re)&&(he===Oe||_(he,Oe,u,y,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,y,T))){oe=!1;break}}return T.delete(n),T.delete(o),oe}function q1(n,o,u,y,_,T,P){switch(u){case $r:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Yr:return!(n.byteLength!=o.byteLength||!T(new ss(n),new ss(o)));case me:case Ee:case mr:return lr(+n,+o);case Ze:return n.name==o.name&&n.message==o.message;case Mt:case Kr:return n==o+"";case lt:var I=Su;case yt:var z=y&x;if(I||(I=es),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;y|=d,P.set(n,o);var X=gp(I(n),I(o),y,_,T,P);return P.delete(n),X;case wn:if($i)return $i.call(n)==$i.call(o)}return!1}function Z1(n,o,u,y,_,T){var P=u&x,I=Gu(n),z=I.length,V=Gu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=T.get(n),he=T.get(o);if(le&&he)return le==o&&he==n;var Se=!0;T.set(n,o),T.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(y)var zt=P?y(Re,Oe,oe,o,n,T):y(Oe,Re,oe,n,o,T);if(!(zt===r?Oe===Re||_(Oe,Re,u,y,T):zt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,Wt=o.constructor;At!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return T.delete(n),T.delete(o),Se}function Dr(n){return tl(xp(n,r,Cp),n+"")}function Gu(n){return Md(n,ct,Xu)}function Ku(n){return Md(n,kt,mp)}var Vu=ds?function(n){return ds.get(n)}:hl;function As(n){for(var o=n.name+"",u=ri[o],y=Fe.call(ri,o)?u.length:0;y--;){var _=u[y],T=_.func;if(T==null||T==n)return _.name}return o}function si(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||dl;return n=n===dl?Nd:n,arguments.length?n(arguments[0],arguments[1]):n}function Ts(n,o){var u=n.__data__;return ex(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=ct(n),u=o.length;u--;){var y=o[u],_=n[y];o[u]=[y,_,bp(_)]}return o}function Tn(n,o){var u=nw(n,o);return Dd(u)?u:r}function G1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=is.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Xu=_u?function(n){return n==null?[]:(n=Ne(n),Xr(_u(n),function(o){return Sd.call(n,o)}))}:gl,mp=_u?function(n){for(var o=[];n;)Jr(o,Xu(n)),n=as(n);return o}:gl,wt=_t;(Ou&&wt(new Ou(new ArrayBuffer(1)))!=$r||Pi&&wt(new Pi)!=lt||Au&&wt(Au.resolve())!=Go||ti&&wt(new ti)!=yt||Ci&&wt(new Ci)!=Vr)&&(wt=function(n){var o=_t(n),u=o==Gt?n.constructor:r,y=u?Rn(u):"";if(y)switch(y){case Pw:return $r;case Cw:return lt;case kw:return Go;case $w:return yt;case Iw:return Vr}return o});function K1(n,o,u){for(var y=-1,_=u.length;++y<_;){var T=u[y],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=bt(o,n+P);break;case"takeRight":n=at(n,o-P);break}}return{start:n,end:o}}function V1(n){var o=n.match(tb);return o?o[1].split(rb):[]}function vp(n,o,u){o=nn(o,n);for(var y=-1,_=o.length,T=!1;++y<_;){var P=br(o[y]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++y!=_?T:(_=n==null?0:n.length,!!_&&Ls(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function Y1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function yp(n){return typeof n.constructor=="function"&&!ji(n)?ni(as(n)):{}}function X1(n,o,u){var y=n.constructor;switch(o){case Yr:return Hu(n);case me:case Ee:return new y(+n);case $r:return L1(n,u);case Ya:case Xa:case Ja:case Qa:case eu:case tu:case ru:case nu:case iu:return ep(n,u);case lt:return new y;case mr:case Kr:return new y(n);case Mt:return M1(n);case yt:return new y;case wn:return F1(n)}}function J1(n,o){var u=o.length;if(!u)return n;var y=u-1;return o[y]=(u>1?"& ":"")+o[y],o=o.join(u>2?", ":" "),n.replace(eb,`{
|
|
182
|
+
*/var SI=xo.exports,_m;function EI(){return _m||(_m=1,(function(e,t){(function(){var r,i="4.17.21",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="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",h=1,d=2,y=4,x=1,p=2,w=1,v=2,S=4,E=8,R=16,T=32,k=64,U=128,D=256,N=512,G=30,j="...",M=800,W=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",v],["curry",E],["curryRight",R],["flip",N],["partial",T],["partialRight",k],["rearg",D]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",Ye="[object Error]",ie="[object Function]",bt="[object GeneratorFunction]",ft="[object Map]",br="[object Number]",Xo="[object Null]",Kt="[object Object]",Jo="[object Promise]",iu="[object Proxy]",Nt="[object RegExp]",wt="[object Set]",Jr="[object String]",_n="[object Symbol]",Ii="[object Undefined]",Qr="[object WeakMap]",Qo="[object WeakSet]",en="[object ArrayBuffer]",Mr="[object DataView]",ou="[object Float32Array]",su="[object Float64Array]",au="[object Int8Array]",uu="[object Int16Array]",lu="[object Int32Array]",cu="[object Uint8Array]",fu="[object Uint8ClampedArray]",du="[object Uint16Array]",pu="[object Uint32Array]",lb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,fb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qf=/&(?:amp|lt|gt|quot|#39);/g,Zf=/[&<>"']/g,db=RegExp(qf.source),pb=RegExp(Zf.source),hb=/<%-([\s\S]+?)%>/g,gb=/<%([\s\S]+?)%>/g,Gf=/<%=([\s\S]+?)%>/g,mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/,yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hu=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(hu.source),gu=/^\s+/,wb=/\s/,xb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sb=/\{\n\/\* \[wrapped with (.+)\] \*/,Eb=/,? & /,_b=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tb=/[()=,{}\[\]\/\s]/,Ob=/\\(\\)?/g,Ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,Rb=/^[-+]0x[0-9a-f]+$/i,Pb=/^0b[01]+$/i,Cb=/^\[object .+?Constructor\]$/,kb=/^0o[0-7]+$/i,Ib=/^(?:0|[1-9]\d*)$/,$b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,es=/($^)/,Lb=/['\n\r\u2028\u2029\\]/g,ts="\\ud800-\\udfff",Mb="\\u0300-\\u036f",Db="\\ufe20-\\ufe2f",Nb="\\u20d0-\\u20ff",Kf=Mb+Db+Nb,Yf="\\u2700-\\u27bf",Xf="a-z\\xdf-\\xf6\\xf8-\\xff",Fb="\\xac\\xb1\\xd7\\xf7",jb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zb="\\u2000-\\u206f",Bb=" \\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",Jf="A-Z\\xc0-\\xd6\\xd8-\\xde",Qf="\\ufe0e\\ufe0f",ed=Fb+jb+zb+Bb,mu="['’]",Ub="["+ts+"]",td="["+ed+"]",rs="["+Kf+"]",rd="\\d+",Wb="["+Yf+"]",nd="["+Xf+"]",id="[^"+ts+ed+rd+Yf+Xf+Jf+"]",vu="\\ud83c[\\udffb-\\udfff]",Hb="(?:"+rs+"|"+vu+")",od="[^"+ts+"]",yu="(?:\\ud83c[\\udde6-\\uddff]){2}",bu="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+Jf+"]",sd="\\u200d",ad="(?:"+nd+"|"+id+")",qb="(?:"+ei+"|"+id+")",ud="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",ld="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",cd=Hb+"?",fd="["+Qf+"]?",Zb="(?:"+sd+"(?:"+[od,yu,bu].join("|")+")"+fd+cd+")*",Gb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dd=fd+cd+Zb,Kb="(?:"+[Wb,yu,bu].join("|")+")"+dd,Yb="(?:"+[od+rs+"?",rs,yu,bu,Ub].join("|")+")",Xb=RegExp(mu,"g"),Jb=RegExp(rs,"g"),wu=RegExp(vu+"(?="+vu+")|"+Yb+dd,"g"),Qb=RegExp([ei+"?"+nd+"+"+ud+"(?="+[td,ei,"$"].join("|")+")",qb+"+"+ld+"(?="+[td,ei+ad,"$"].join("|")+")",ei+"?"+ad+"+"+ud,ei+"+"+ld,Vb,Gb,rd,Kb].join("|"),"g"),ew=RegExp("["+sd+ts+Kf+Qf+"]"),tw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rw=["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"],nw=-1,He={};He[ou]=He[su]=He[au]=He[uu]=He[lu]=He[cu]=He[fu]=He[du]=He[pu]=!0,He[ce]=He[fe]=He[en]=He[me]=He[Mr]=He[Ee]=He[Ye]=He[ie]=He[ft]=He[br]=He[Kt]=He[Nt]=He[wt]=He[Jr]=He[Qr]=!1;var Ue={};Ue[ce]=Ue[fe]=Ue[en]=Ue[Mr]=Ue[me]=Ue[Ee]=Ue[ou]=Ue[su]=Ue[au]=Ue[uu]=Ue[lu]=Ue[ft]=Ue[br]=Ue[Kt]=Ue[Nt]=Ue[wt]=Ue[Jr]=Ue[_n]=Ue[cu]=Ue[fu]=Ue[du]=Ue[pu]=!0,Ue[Ye]=Ue[ie]=Ue[Qr]=!1;var iw={À:"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"},ow={"&":"&","<":"<",">":">",'"':""","'":"'"},sw={"&":"&","<":"<",">":">",""":'"',"'":"'"},aw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uw=parseFloat,lw=parseInt,pd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,cw=typeof self=="object"&&self&&self.Object===Object&&self,ht=pd||cw||Function("return this")(),xu=t&&!t.nodeType&&t,Tn=xu&&!0&&e&&!e.nodeType&&e,hd=Tn&&Tn.exports===xu,Su=hd&&pd.process,Yt=(function(){try{var F=Tn&&Tn.require&&Tn.require("util").types;return F||Su&&Su.binding&&Su.binding("util")}catch{}})(),gd=Yt&&Yt.isArrayBuffer,md=Yt&&Yt.isDate,vd=Yt&&Yt.isMap,yd=Yt&&Yt.isRegExp,bd=Yt&&Yt.isSet,wd=Yt&&Yt.isTypedArray;function Ft(F,V,H){switch(H.length){case 0:return F.call(V);case 1:return F.call(V,H[0]);case 2:return F.call(V,H[0],H[1]);case 3:return F.call(V,H[0],H[1],H[2])}return F.apply(V,H)}function fw(F,V,H,ae){for(var be=-1,Ce=F==null?0:F.length;++be<Ce;){var ut=F[be];V(ae,ut,H(ut),F)}return ae}function Xt(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae&&V(F[H],H,F)!==!1;);return F}function dw(F,V){for(var H=F==null?0:F.length;H--&&V(F[H],H,F)!==!1;);return F}function xd(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(!V(F[H],H,F))return!1;return!0}function tn(F,V){for(var H=-1,ae=F==null?0:F.length,be=0,Ce=[];++H<ae;){var ut=F[H];V(ut,H,F)&&(Ce[be++]=ut)}return Ce}function ns(F,V){var H=F==null?0:F.length;return!!H&&ti(F,V,0)>-1}function Eu(F,V,H){for(var ae=-1,be=F==null?0:F.length;++ae<be;)if(H(V,F[ae]))return!0;return!1}function Ze(F,V){for(var H=-1,ae=F==null?0:F.length,be=Array(ae);++H<ae;)be[H]=V(F[H],H,F);return be}function rn(F,V){for(var H=-1,ae=V.length,be=F.length;++H<ae;)F[be+H]=V[H];return F}function _u(F,V,H,ae){var be=-1,Ce=F==null?0:F.length;for(ae&&Ce&&(H=F[++be]);++be<Ce;)H=V(H,F[be],be,F);return H}function pw(F,V,H,ae){var be=F==null?0:F.length;for(ae&&be&&(H=F[--be]);be--;)H=V(H,F[be],be,F);return H}function Tu(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(V(F[H],H,F))return!0;return!1}var hw=Ou("length");function gw(F){return F.split("")}function mw(F){return F.match(_b)||[]}function Sd(F,V,H){var ae;return H(F,function(be,Ce,ut){if(V(be,Ce,ut))return ae=Ce,!1}),ae}function is(F,V,H,ae){for(var be=F.length,Ce=H+(ae?1:-1);ae?Ce--:++Ce<be;)if(V(F[Ce],Ce,F))return Ce;return-1}function ti(F,V,H){return V===V?Rw(F,V,H):is(F,Ed,H)}function vw(F,V,H,ae){for(var be=H-1,Ce=F.length;++be<Ce;)if(ae(F[be],V))return be;return-1}function Ed(F){return F!==F}function _d(F,V){var H=F==null?0:F.length;return H?Ru(F,V)/H:Z}function Ou(F){return function(V){return V==null?r:V[F]}}function Au(F){return function(V){return F==null?r:F[V]}}function Td(F,V,H,ae,be){return be(F,function(Ce,ut,Be){H=ae?(ae=!1,Ce):V(H,Ce,ut,Be)}),H}function yw(F,V){var H=F.length;for(F.sort(V);H--;)F[H]=F[H].value;return F}function Ru(F,V){for(var H,ae=-1,be=F.length;++ae<be;){var Ce=V(F[ae]);Ce!==r&&(H=H===r?Ce:H+Ce)}return H}function Pu(F,V){for(var H=-1,ae=Array(F);++H<F;)ae[H]=V(H);return ae}function bw(F,V){return Ze(V,function(H){return[H,F[H]]})}function Od(F){return F&&F.slice(0,Cd(F)+1).replace(gu,"")}function jt(F){return function(V){return F(V)}}function Cu(F,V){return Ze(V,function(H){return F[H]})}function $i(F,V){return F.has(V)}function Ad(F,V){for(var H=-1,ae=F.length;++H<ae&&ti(V,F[H],0)>-1;);return H}function Rd(F,V){for(var H=F.length;H--&&ti(V,F[H],0)>-1;);return H}function ww(F,V){for(var H=F.length,ae=0;H--;)F[H]===V&&++ae;return ae}var xw=Au(iw),Sw=Au(ow);function Ew(F){return"\\"+aw[F]}function _w(F,V){return F==null?r:F[V]}function ri(F){return ew.test(F)}function Tw(F){return tw.test(F)}function Ow(F){for(var V,H=[];!(V=F.next()).done;)H.push(V.value);return H}function ku(F){var V=-1,H=Array(F.size);return F.forEach(function(ae,be){H[++V]=[be,ae]}),H}function Pd(F,V){return function(H){return F(V(H))}}function nn(F,V){for(var H=-1,ae=F.length,be=0,Ce=[];++H<ae;){var ut=F[H];(ut===V||ut===g)&&(F[H]=g,Ce[be++]=H)}return Ce}function os(F){var V=-1,H=Array(F.size);return F.forEach(function(ae){H[++V]=ae}),H}function Aw(F){var V=-1,H=Array(F.size);return F.forEach(function(ae){H[++V]=[ae,ae]}),H}function Rw(F,V,H){for(var ae=H-1,be=F.length;++ae<be;)if(F[ae]===V)return ae;return-1}function Pw(F,V,H){for(var ae=H+1;ae--;)if(F[ae]===V)return ae;return ae}function ni(F){return ri(F)?kw(F):hw(F)}function cr(F){return ri(F)?Iw(F):gw(F)}function Cd(F){for(var V=F.length;V--&&wb.test(F.charAt(V)););return V}var Cw=Au(sw);function kw(F){for(var V=wu.lastIndex=0;wu.test(F);)++V;return V}function Iw(F){return F.match(wu)||[]}function $w(F){return F.match(Qb)||[]}var Lw=(function F(V){V=V==null?ht:ii.defaults(ht.Object(),V,ii.pick(ht,rw));var H=V.Array,ae=V.Date,be=V.Error,Ce=V.Function,ut=V.Math,Be=V.Object,Iu=V.RegExp,Mw=V.String,Jt=V.TypeError,ss=H.prototype,Dw=Ce.prototype,oi=Be.prototype,as=V["__core-js_shared__"],us=Dw.toString,Fe=oi.hasOwnProperty,Nw=0,kd=(function(){var n=/[^.]+$/.exec(as&&as.keys&&as.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ls=oi.toString,Fw=us.call(Be),jw=ht._,zw=Iu("^"+us.call(Fe).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cs=hd?V.Buffer:r,on=V.Symbol,fs=V.Uint8Array,Id=cs?cs.allocUnsafe:r,ds=Pd(Be.getPrototypeOf,Be),$d=Be.create,Ld=oi.propertyIsEnumerable,ps=ss.splice,Md=on?on.isConcatSpreadable:r,Li=on?on.iterator:r,On=on?on.toStringTag:r,hs=(function(){try{var n=kn(Be,"defineProperty");return n({},"",{}),n}catch{}})(),Bw=V.clearTimeout!==ht.clearTimeout&&V.clearTimeout,Uw=ae&&ae.now!==ht.Date.now&&ae.now,Ww=V.setTimeout!==ht.setTimeout&&V.setTimeout,gs=ut.ceil,ms=ut.floor,$u=Be.getOwnPropertySymbols,Hw=cs?cs.isBuffer:r,Dd=V.isFinite,qw=ss.join,Zw=Pd(Be.keys,Be),lt=ut.max,xt=ut.min,Gw=ae.now,Vw=V.parseInt,Nd=ut.random,Kw=ss.reverse,Lu=kn(V,"DataView"),Mi=kn(V,"Map"),Mu=kn(V,"Promise"),si=kn(V,"Set"),Di=kn(V,"WeakMap"),Ni=kn(Be,"create"),vs=Di&&new Di,ai={},Yw=In(Lu),Xw=In(Mi),Jw=In(Mu),Qw=In(si),e1=In(Di),ys=on?on.prototype:r,Fi=ys?ys.valueOf:r,Fd=ys?ys.toString:r;function O(n){if(tt(n)&&!we(n)&&!(n instanceof Ae)){if(n instanceof Qt)return n;if(Fe.call(n,"__wrapped__"))return jp(n)}return new Qt(n)}var ui=(function(){function n(){}return function(o){if(!Xe(o))return{};if($d)return $d(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function bs(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}O.templateSettings={escape:hb,evaluate:gb,interpolate:Gf,variable:"",imports:{_:O}},O.prototype=bs.prototype,O.prototype.constructor=O,Qt.prototype=ui(bs.prototype),Qt.prototype.constructor=Qt;function Ae(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function t1(){var n=new Ae(this.__wrapped__);return n.__actions__=kt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=kt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=kt(this.__views__),n}function r1(){if(this.__filtered__){var n=new Ae(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function n1(){var n=this.__wrapped__.value(),o=this.__dir__,l=we(n),b=o<0,_=l?n.length:0,A=gx(0,_,this.__views__),P=A.start,L=A.end,B=L-P,K=b?L:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=xt(B,this.__takeCount__);if(!l||!b&&_==B&&le==B)return up(n,this.__actions__);var he=[];e:for(;B--&&oe<le;){K+=o;for(var Se=-1,ge=n[K];++Se<ee;){var Te=X[Se],Re=Te.iteratee,Ut=Te.type,Rt=Re(ge);if(Ut==C)ge=Rt;else if(!Rt){if(Ut==q)continue e;break e}}he[oe++]=ge}return he}Ae.prototype=ui(bs.prototype),Ae.prototype.constructor=Ae;function An(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 i1(){this.__data__=Ni?Ni(null):{},this.size=0}function o1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function s1(n){var o=this.__data__;if(Ni){var l=o[n];return l===f?r:l}return Fe.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return Ni?o[n]!==r:Fe.call(o,n)}function u1(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Ni&&o===r?f:o,this}An.prototype.clear=i1,An.prototype.delete=o1,An.prototype.get=s1,An.prototype.has=a1,An.prototype.set=u1;function Dr(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 l1(){this.__data__=[],this.size=0}function c1(n){var o=this.__data__,l=ws(o,n);if(l<0)return!1;var b=o.length-1;return l==b?o.pop():ps.call(o,l,1),--this.size,!0}function f1(n){var o=this.__data__,l=ws(o,n);return l<0?r:o[l][1]}function d1(n){return ws(this.__data__,n)>-1}function p1(n,o){var l=this.__data__,b=ws(l,n);return b<0?(++this.size,l.push([n,o])):l[b][1]=o,this}Dr.prototype.clear=l1,Dr.prototype.delete=c1,Dr.prototype.get=f1,Dr.prototype.has=d1,Dr.prototype.set=p1;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 h1(){this.size=0,this.__data__={hash:new An,map:new(Mi||Dr),string:new An}}function g1(n){var o=Is(this,n).delete(n);return this.size-=o?1:0,o}function m1(n){return Is(this,n).get(n)}function v1(n){return Is(this,n).has(n)}function y1(n,o){var l=Is(this,n),b=l.size;return l.set(n,o),this.size+=l.size==b?0:1,this}Nr.prototype.clear=h1,Nr.prototype.delete=g1,Nr.prototype.get=m1,Nr.prototype.has=v1,Nr.prototype.set=y1;function Rn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new Nr;++o<l;)this.add(n[o])}function b1(n){return this.__data__.set(n,f),this}function w1(n){return this.__data__.has(n)}Rn.prototype.add=Rn.prototype.push=b1,Rn.prototype.has=w1;function fr(n){var o=this.__data__=new Dr(n);this.size=o.size}function x1(){this.__data__=new Dr,this.size=0}function S1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function E1(n){return this.__data__.get(n)}function _1(n){return this.__data__.has(n)}function T1(n,o){var l=this.__data__;if(l instanceof Dr){var b=l.__data__;if(!Mi||b.length<s-1)return b.push([n,o]),this.size=++l.size,this;l=this.__data__=new Nr(b)}return l.set(n,o),this.size=l.size,this}fr.prototype.clear=x1,fr.prototype.delete=S1,fr.prototype.get=E1,fr.prototype.has=_1,fr.prototype.set=T1;function jd(n,o){var l=we(n),b=!l&&$n(n),_=!l&&!b&&cn(n),A=!l&&!b&&!_&&di(n),P=l||b||_||A,L=P?Pu(n.length,Mw):[],B=L.length;for(var K in n)(o||Fe.call(n,K))&&!(P&&(K=="length"||_&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Br(K,B)))&&L.push(K);return L}function zd(n){var o=n.length;return o?n[Zu(0,o-1)]:r}function O1(n,o){return $s(kt(n),Pn(o,0,n.length))}function A1(n){return $s(kt(n))}function Du(n,o,l){(l!==r&&!dr(n[o],l)||l===r&&!(o in n))&&Fr(n,o,l)}function ji(n,o,l){var b=n[o];(!(Fe.call(n,o)&&dr(b,l))||l===r&&!(o in n))&&Fr(n,o,l)}function ws(n,o){for(var l=n.length;l--;)if(dr(n[l][0],o))return l;return-1}function R1(n,o,l,b){return sn(n,function(_,A,P){o(b,_,l(_),P)}),b}function Bd(n,o){return n&&xr(o,dt(o),n)}function P1(n,o){return n&&xr(o,$t(o),n)}function Fr(n,o,l){o=="__proto__"&&hs?hs(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function Nu(n,o){for(var l=-1,b=o.length,_=H(b),A=n==null;++l<b;)_[l]=A?r:vl(n,o[l]);return _}function Pn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function er(n,o,l,b,_,A){var P,L=o&h,B=o&d,K=o&y;if(l&&(P=_?l(n,b,_,A):l(n)),P!==r)return P;if(!Xe(n))return n;var X=we(n);if(X){if(P=vx(n),!L)return kt(n,P)}else{var ee=St(n),oe=ee==ie||ee==bt;if(cn(n))return fp(n,L);if(ee==Kt||ee==ce||oe&&!_){if(P=B||oe?{}:Cp(n),!L)return B?sx(n,P1(P,n)):ox(n,Bd(P,n))}else{if(!Ue[ee])return _?n:{};P=yx(n,ee,L)}}A||(A=new fr);var le=A.get(n);if(le)return le;A.set(n,P),oh(n)?n.forEach(function(ge){P.add(er(ge,o,l,ge,n,A))}):nh(n)&&n.forEach(function(ge,Te){P.set(Te,er(ge,o,l,Te,n,A))});var he=K?B?nl:rl:B?$t:dt,Se=X?r:he(n);return Xt(Se||n,function(ge,Te){Se&&(Te=ge,ge=n[Te]),ji(P,Te,er(ge,o,l,Te,n,A))}),P}function C1(n){var o=dt(n);return function(l){return Ud(l,n,o)}}function Ud(n,o,l){var b=l.length;if(n==null)return!b;for(n=Be(n);b--;){var _=l[b],A=o[_],P=n[_];if(P===r&&!(_ in n)||!A(P))return!1}return!0}function Wd(n,o,l){if(typeof n!="function")throw new Jt(u);return Zi(function(){n.apply(r,l)},o)}function zi(n,o,l,b){var _=-1,A=ns,P=!0,L=n.length,B=[],K=o.length;if(!L)return B;l&&(o=Ze(o,jt(l))),b?(A=Eu,P=!1):o.length>=s&&(A=$i,P=!1,o=new Rn(o));e:for(;++_<L;){var X=n[_],ee=l==null?X:l(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var oe=K;oe--;)if(o[oe]===ee)continue e;B.push(X)}else A(o,ee,b)||B.push(X)}return B}var sn=mp(wr),Hd=mp(ju,!0);function k1(n,o){var l=!0;return sn(n,function(b,_,A){return l=!!o(b,_,A),l}),l}function xs(n,o,l){for(var b=-1,_=n.length;++b<_;){var A=n[b],P=o(A);if(P!=null&&(L===r?P===P&&!Bt(P):l(P,L)))var L=P,B=A}return B}function I1(n,o,l,b){var _=n.length;for(l=xe(l),l<0&&(l=-l>_?0:_+l),b=b===r||b>_?_:xe(b),b<0&&(b+=_),b=l>b?0:ah(b);l<b;)n[l++]=o;return n}function qd(n,o){var l=[];return sn(n,function(b,_,A){o(b,_,A)&&l.push(b)}),l}function gt(n,o,l,b,_){var A=-1,P=n.length;for(l||(l=wx),_||(_=[]);++A<P;){var L=n[A];o>0&&l(L)?o>1?gt(L,o-1,l,b,_):rn(_,L):b||(_[_.length]=L)}return _}var Fu=vp(),Zd=vp(!0);function wr(n,o){return n&&Fu(n,o,dt)}function ju(n,o){return n&&Zd(n,o,dt)}function Ss(n,o){return tn(o,function(l){return Ur(n[l])})}function Cn(n,o){o=un(o,n);for(var l=0,b=o.length;n!=null&&l<b;)n=n[Sr(o[l++])];return l&&l==b?n:r}function Gd(n,o,l){var b=o(n);return we(n)?b:rn(b,l(n))}function Ot(n){return n==null?n===r?Ii:Xo:On&&On in Be(n)?hx(n):Ax(n)}function zu(n,o){return n>o}function $1(n,o){return n!=null&&Fe.call(n,o)}function L1(n,o){return n!=null&&o in Be(n)}function M1(n,o,l){return n>=xt(o,l)&&n<lt(o,l)}function Bu(n,o,l){for(var b=l?Eu:ns,_=n[0].length,A=n.length,P=A,L=H(A),B=1/0,K=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),B=xt(X.length,B),L[P]=!l&&(o||_>=120&&X.length>=120)?new Rn(P&&X):r}X=n[0];var ee=-1,oe=L[0];e:for(;++ee<_&&K.length<B;){var le=X[ee],he=o?o(le):le;if(le=l||le!==0?le:0,!(oe?$i(oe,he):b(K,he,l))){for(P=A;--P;){var Se=L[P];if(!(Se?$i(Se,he):b(n[P],he,l)))continue e}oe&&oe.push(he),K.push(le)}}return K}function D1(n,o,l,b){return wr(n,function(_,A,P){o(b,l(_),A,P)}),b}function Bi(n,o,l){o=un(o,n),n=Lp(n,o);var b=n==null?n:n[Sr(rr(o))];return b==null?r:Ft(b,n,l)}function Vd(n){return tt(n)&&Ot(n)==ce}function N1(n){return tt(n)&&Ot(n)==en}function F1(n){return tt(n)&&Ot(n)==Ee}function Ui(n,o,l,b,_){return n===o?!0:n==null||o==null||!tt(n)&&!tt(o)?n!==n&&o!==o:j1(n,o,l,b,Ui,_)}function j1(n,o,l,b,_,A){var P=we(n),L=we(o),B=P?fe:St(n),K=L?fe:St(o);B=B==ce?Kt:B,K=K==ce?Kt:K;var X=B==Kt,ee=K==Kt,oe=B==K;if(oe&&cn(n)){if(!cn(o))return!1;P=!0,X=!1}if(oe&&!X)return A||(A=new fr),P||di(n)?Ap(n,o,l,b,_,A):dx(n,o,B,l,b,_,A);if(!(l&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return A||(A=new fr),_(Se,ge,l,b,A)}}return oe?(A||(A=new fr),px(n,o,l,b,_,A)):!1}function z1(n){return tt(n)&&St(n)==ft}function Uu(n,o,l,b){var _=l.length,A=_,P=!b;if(n==null)return!A;for(n=Be(n);_--;){var L=l[_];if(P&&L[2]?L[1]!==n[L[0]]:!(L[0]in n))return!1}for(;++_<A;){L=l[_];var B=L[0],K=n[B],X=L[1];if(P&&L[2]){if(K===r&&!(B in n))return!1}else{var ee=new fr;if(b)var oe=b(K,X,B,n,o,ee);if(!(oe===r?Ui(X,K,x|p,b,ee):oe))return!1}}return!0}function Kd(n){if(!Xe(n)||Sx(n))return!1;var o=Ur(n)?zw:Cb;return o.test(In(n))}function B1(n){return tt(n)&&Ot(n)==Nt}function U1(n){return tt(n)&&St(n)==wt}function W1(n){return tt(n)&&js(n.length)&&!!He[Ot(n)]}function Yd(n){return typeof n=="function"?n:n==null?Lt:typeof n=="object"?we(n)?Qd(n[0],n[1]):Jd(n):yh(n)}function Wu(n){if(!qi(n))return Zw(n);var o=[];for(var l in Be(n))Fe.call(n,l)&&l!="constructor"&&o.push(l);return o}function H1(n){if(!Xe(n))return Ox(n);var o=qi(n),l=[];for(var b in n)b=="constructor"&&(o||!Fe.call(n,b))||l.push(b);return l}function Hu(n,o){return n<o}function Xd(n,o){var l=-1,b=It(n)?H(n.length):[];return sn(n,function(_,A,P){b[++l]=o(_,A,P)}),b}function Jd(n){var o=ol(n);return o.length==1&&o[0][2]?Ip(o[0][0],o[0][1]):function(l){return l===n||Uu(l,n,o)}}function Qd(n,o){return al(n)&&kp(o)?Ip(Sr(n),o):function(l){var b=vl(l,n);return b===r&&b===o?yl(l,n):Ui(o,b,x|p)}}function Es(n,o,l,b,_){n!==o&&Fu(o,function(A,P){if(_||(_=new fr),Xe(A))q1(n,o,P,l,Es,b,_);else{var L=b?b(ll(n,P),A,P+"",n,o,_):r;L===r&&(L=A),Du(n,P,L)}},$t)}function q1(n,o,l,b,_,A,P){var L=ll(n,l),B=ll(o,l),K=P.get(B);if(K){Du(n,l,K);return}var X=A?A(L,B,l+"",n,o,P):r,ee=X===r;if(ee){var oe=we(B),le=!oe&&cn(B),he=!oe&&!le&&di(B);X=B,oe||le||he?we(L)?X=L:nt(L)?X=kt(L):le?(ee=!1,X=fp(B,!0)):he?(ee=!1,X=dp(B,!0)):X=[]:Gi(B)||$n(B)?(X=L,$n(L)?X=uh(L):(!Xe(L)||Ur(L))&&(X=Cp(B))):ee=!1}ee&&(P.set(B,X),_(X,B,b,A,P),P.delete(B)),Du(n,l,X)}function ep(n,o){var l=n.length;if(l)return o+=o<0?l:0,Br(o,l)?n[o]:r}function tp(n,o,l){o.length?o=Ze(o,function(A){return we(A)?function(P){return Cn(P,A.length===1?A[0]:A)}:A}):o=[Lt];var b=-1;o=Ze(o,jt(pe()));var _=Xd(n,function(A,P,L){var B=Ze(o,function(K){return K(A)});return{criteria:B,index:++b,value:A}});return yw(_,function(A,P){return ix(A,P,l)})}function Z1(n,o){return rp(n,o,function(l,b){return yl(n,b)})}function rp(n,o,l){for(var b=-1,_=o.length,A={};++b<_;){var P=o[b],L=Cn(n,P);l(L,P)&&Wi(A,un(P,n),L)}return A}function G1(n){return function(o){return Cn(o,n)}}function qu(n,o,l,b){var _=b?vw:ti,A=-1,P=o.length,L=n;for(n===o&&(o=kt(o)),l&&(L=Ze(n,jt(l)));++A<P;)for(var B=0,K=o[A],X=l?l(K):K;(B=_(L,X,B,b))>-1;)L!==n&&ps.call(L,B,1),ps.call(n,B,1);return n}function np(n,o){for(var l=n?o.length:0,b=l-1;l--;){var _=o[l];if(l==b||_!==A){var A=_;Br(_)?ps.call(n,_,1):Ku(n,_)}}return n}function Zu(n,o){return n+ms(Nd()*(o-n+1))}function V1(n,o,l,b){for(var _=-1,A=lt(gs((o-n)/(l||1)),0),P=H(A);A--;)P[b?A:++_]=n,n+=l;return P}function Gu(n,o){var l="";if(!n||o<1||o>te)return l;do o%2&&(l+=n),o=ms(o/2),o&&(n+=n);while(o);return l}function _e(n,o){return cl($p(n,o,Lt),n+"")}function K1(n){return zd(pi(n))}function Y1(n,o){var l=pi(n);return $s(l,Pn(o,0,l.length))}function Wi(n,o,l,b){if(!Xe(n))return n;o=un(o,n);for(var _=-1,A=o.length,P=A-1,L=n;L!=null&&++_<A;){var B=Sr(o[_]),K=l;if(B==="__proto__"||B==="constructor"||B==="prototype")return n;if(_!=P){var X=L[B];K=b?b(X,B,L):r,K===r&&(K=Xe(X)?X:Br(o[_+1])?[]:{})}ji(L,B,K),L=L[B]}return n}var ip=vs?function(n,o){return vs.set(n,o),n}:Lt,X1=hs?function(n,o){return hs(n,"toString",{configurable:!0,enumerable:!1,value:wl(o),writable:!0})}:Lt;function J1(n){return $s(pi(n))}function tr(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 A=H(_);++b<_;)A[b]=n[b+o];return A}function Q1(n,o){var l;return sn(n,function(b,_,A){return l=o(b,_,A),!l}),!!l}function _s(n,o,l){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;b<_;){var A=b+_>>>1,P=n[A];P!==null&&!Bt(P)&&(l?P<=o:P<o)?b=A+1:_=A}return _}return Vu(n,o,Lt,l)}function Vu(n,o,l,b){var _=0,A=n==null?0:n.length;if(A===0)return 0;o=l(o);for(var P=o!==o,L=o===null,B=Bt(o),K=o===r;_<A;){var X=ms((_+A)/2),ee=l(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Bt(ee);if(P)var ge=b||he;else K?ge=he&&(b||oe):L?ge=he&&oe&&(b||!le):B?ge=he&&oe&&!le&&(b||!Se):le||Se?ge=!1:ge=b?ee<=o:ee<o;ge?_=X+1:A=X}return xt(A,se)}function op(n,o){for(var l=-1,b=n.length,_=0,A=[];++l<b;){var P=n[l],L=o?o(P):P;if(!l||!dr(L,B)){var B=L;A[_++]=P===0?0:P}}return A}function sp(n){return typeof n=="number"?n:Bt(n)?Z:+n}function zt(n){if(typeof n=="string")return n;if(we(n))return Ze(n,zt)+"";if(Bt(n))return Fd?Fd.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function an(n,o,l){var b=-1,_=ns,A=n.length,P=!0,L=[],B=L;if(l)P=!1,_=Eu;else if(A>=s){var K=o?null:cx(n);if(K)return os(K);P=!1,_=$i,B=new Rn}else B=o?[]:L;e:for(;++b<A;){var X=n[b],ee=o?o(X):X;if(X=l||X!==0?X:0,P&&ee===ee){for(var oe=B.length;oe--;)if(B[oe]===ee)continue e;o&&B.push(ee),L.push(X)}else _(B,ee,l)||(B!==L&&B.push(ee),L.push(X))}return L}function Ku(n,o){return o=un(o,n),n=Lp(n,o),n==null||delete n[Sr(rr(o))]}function ap(n,o,l,b){return Wi(n,o,l(Cn(n,o)),b)}function Ts(n,o,l,b){for(var _=n.length,A=b?_:-1;(b?A--:++A<_)&&o(n[A],A,n););return l?tr(n,b?0:A,b?A+1:_):tr(n,b?A+1:0,b?_:A)}function up(n,o){var l=n;return l instanceof Ae&&(l=l.value()),_u(o,function(b,_){return _.func.apply(_.thisArg,rn([b],_.args))},l)}function Yu(n,o,l){var b=n.length;if(b<2)return b?an(n[0]):[];for(var _=-1,A=H(b);++_<b;)for(var P=n[_],L=-1;++L<b;)L!=_&&(A[_]=zi(A[_]||P,n[L],o,l));return an(gt(A,1),o,l)}function lp(n,o,l){for(var b=-1,_=n.length,A=o.length,P={};++b<_;){var L=b<A?o[b]:r;l(P,n[b],L)}return P}function Xu(n){return nt(n)?n:[]}function Ju(n){return typeof n=="function"?n:Lt}function un(n,o){return we(n)?n:al(n,o)?[n]:Fp(Ie(n))}var ex=_e;function ln(n,o,l){var b=n.length;return l=l===r?b:l,!o&&l>=b?n:tr(n,o,l)}var cp=Bw||function(n){return ht.clearTimeout(n)};function fp(n,o){if(o)return n.slice();var l=n.length,b=Id?Id(l):new n.constructor(l);return n.copy(b),b}function Qu(n){var o=new n.constructor(n.byteLength);return new fs(o).set(new fs(n)),o}function tx(n,o){var l=o?Qu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function rx(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function nx(n){return Fi?Be(Fi.call(n)):{}}function dp(n,o){var l=o?Qu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function pp(n,o){if(n!==o){var l=n!==r,b=n===null,_=n===n,A=Bt(n),P=o!==r,L=o===null,B=o===o,K=Bt(o);if(!L&&!K&&!A&&n>o||A&&P&&B&&!L&&!K||b&&P&&B||!l&&B||!_)return 1;if(!b&&!A&&!K&&n<o||K&&l&&_&&!b&&!A||L&&l&&_||!P&&_||!B)return-1}return 0}function ix(n,o,l){for(var b=-1,_=n.criteria,A=o.criteria,P=_.length,L=l.length;++b<P;){var B=pp(_[b],A[b]);if(B){if(b>=L)return B;var K=l[b];return B*(K=="desc"?-1:1)}}return n.index-o.index}function hp(n,o,l,b){for(var _=-1,A=n.length,P=l.length,L=-1,B=o.length,K=lt(A-P,0),X=H(B+K),ee=!b;++L<B;)X[L]=o[L];for(;++_<P;)(ee||_<A)&&(X[l[_]]=n[_]);for(;K--;)X[L++]=n[_++];return X}function gp(n,o,l,b){for(var _=-1,A=n.length,P=-1,L=l.length,B=-1,K=o.length,X=lt(A-L,0),ee=H(X+K),oe=!b;++_<X;)ee[_]=n[_];for(var le=_;++B<K;)ee[le+B]=o[B];for(;++P<L;)(oe||_<A)&&(ee[le+l[P]]=n[_++]);return ee}function kt(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 A=-1,P=o.length;++A<P;){var L=o[A],B=b?b(l[L],n[L],L,l,n):r;B===r&&(B=n[L]),_?Fr(l,L,B):ji(l,L,B)}return l}function ox(n,o){return xr(n,sl(n),o)}function sx(n,o){return xr(n,Rp(n),o)}function Os(n,o){return function(l,b){var _=we(l)?fw:R1,A=o?o():{};return _(l,n,pe(b,2),A)}}function li(n){return _e(function(o,l){var b=-1,_=l.length,A=_>1?l[_-1]:r,P=_>2?l[2]:r;for(A=n.length>3&&typeof A=="function"?(_--,A):r,P&&At(l[0],l[1],P)&&(A=_<3?r:A,_=1),o=Be(o);++b<_;){var L=l[b];L&&n(o,L,b,A)}return o})}function mp(n,o){return function(l,b){if(l==null)return l;if(!It(l))return n(l,b);for(var _=l.length,A=o?_:-1,P=Be(l);(o?A--:++A<_)&&b(P[A],A,P)!==!1;);return l}}function vp(n){return function(o,l,b){for(var _=-1,A=Be(o),P=b(o),L=P.length;L--;){var B=P[n?L:++_];if(l(A[B],B,A)===!1)break}return o}}function ax(n,o,l){var b=o&w,_=Hi(n);function A(){var P=this&&this!==ht&&this instanceof A?_:n;return P.apply(b?l:this,arguments)}return A}function yp(n){return function(o){o=Ie(o);var l=ri(o)?cr(o):r,b=l?l[0]:o.charAt(0),_=l?ln(l,1).join(""):o.slice(1);return b[n]()+_}}function ci(n){return function(o){return _u(mh(gh(o).replace(Xb,"")),n,"")}}function Hi(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=ui(n.prototype),b=n.apply(l,o);return Xe(b)?b:l}}function ux(n,o,l){var b=Hi(n);function _(){for(var A=arguments.length,P=H(A),L=A,B=fi(_);L--;)P[L]=arguments[L];var K=A<3&&P[0]!==B&&P[A-1]!==B?[]:nn(P,B);if(A-=K.length,A<l)return Ep(n,o,As,_.placeholder,r,P,K,r,r,l-A);var X=this&&this!==ht&&this instanceof _?b:n;return Ft(X,this,P)}return _}function bp(n){return function(o,l,b){var _=Be(o);if(!It(o)){var A=pe(l,3);o=dt(o),l=function(L){return A(_[L],L,_)}}var P=n(o,l,b);return P>-1?_[A?o[P]:P]:r}}function wp(n){return zr(function(o){var l=o.length,b=l,_=Qt.prototype.thru;for(n&&o.reverse();b--;){var A=o[b];if(typeof A!="function")throw new Jt(u);if(_&&!P&&ks(A)=="wrapper")var P=new Qt([],!0)}for(b=P?b:l;++b<l;){A=o[b];var L=ks(A),B=L=="wrapper"?il(A):r;B&&ul(B[0])&&B[1]==(U|E|T|D)&&!B[4].length&&B[9]==1?P=P[ks(B[0])].apply(P,B[3]):P=A.length==1&&ul(A)?P[L]():P.thru(A)}return function(){var K=arguments,X=K[0];if(P&&K.length==1&&we(X))return P.plant(X).value();for(var ee=0,oe=l?o[ee].apply(this,K):X;++ee<l;)oe=o[ee].call(this,oe);return oe}})}function As(n,o,l,b,_,A,P,L,B,K){var X=o&U,ee=o&w,oe=o&v,le=o&(E|R),he=o&N,Se=oe?r:Hi(n);function ge(){for(var Te=arguments.length,Re=H(Te),Ut=Te;Ut--;)Re[Ut]=arguments[Ut];if(le)var Rt=fi(ge),Wt=ww(Re,Rt);if(b&&(Re=hp(Re,b,_,le)),A&&(Re=gp(Re,A,P,le)),Te-=Wt,le&&Te<K){var it=nn(Re,Rt);return Ep(n,o,As,ge.placeholder,l,Re,it,L,B,K-Te)}var pr=ee?l:this,Hr=oe?pr[n]:n;return Te=Re.length,L?Re=Rx(Re,L):he&&Te>1&&Re.reverse(),X&&B<Te&&(Re.length=B),this&&this!==ht&&this instanceof ge&&(Hr=Se||Hi(Hr)),Hr.apply(pr,Re)}return ge}function xp(n,o){return function(l,b){return D1(l,n,o(b),{})}}function Rs(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=sp(l),b=sp(b)),_=n(l,b)}return _}}function el(n){return zr(function(o){return o=Ze(o,jt(pe())),_e(function(l){var b=this;return n(o,function(_){return Ft(_,b,l)})})})}function Ps(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?Gu(o,n):o;var b=Gu(o,gs(n/ni(o)));return ri(o)?ln(cr(b),0,n).join(""):b.slice(0,n)}function lx(n,o,l,b){var _=o&w,A=Hi(n);function P(){for(var L=-1,B=arguments.length,K=-1,X=b.length,ee=H(X+B),oe=this&&this!==ht&&this instanceof P?A:n;++K<X;)ee[K]=b[K];for(;B--;)ee[K++]=arguments[++L];return Ft(oe,_?l:this,ee)}return P}function Sp(n){return function(o,l,b){return b&&typeof b!="number"&&At(o,l,b)&&(l=b=r),o=Wr(o),l===r?(l=o,o=0):l=Wr(l),b=b===r?o<l?1:-1:Wr(b),V1(o,l,b,n)}}function Cs(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=nr(o),l=nr(l)),n(o,l)}}function Ep(n,o,l,b,_,A,P,L,B,K){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?A:r,he=X?r:A;o|=X?T:k,o&=~(X?k:T),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,L,B,K],ge=l.apply(r,Se);return ul(n)&&Mp(ge,Se),ge.placeholder=b,Dp(ge,n,o)}function tl(n){var o=ut[n];return function(l,b){if(l=nr(l),b=b==null?0:xt(xe(b),292),b&&Dd(l)){var _=(Ie(l)+"e").split("e"),A=o(_[0]+"e"+(+_[1]+b));return _=(Ie(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(l)}}var cx=si&&1/os(new si([,-0]))[1]==Y?function(n){return new si(n)}:El;function _p(n){return function(o){var l=St(o);return l==ft?ku(o):l==wt?Aw(o):bw(o,n(o))}}function jr(n,o,l,b,_,A,P,L){var B=o&v;if(!B&&typeof n!="function")throw new Jt(u);var K=b?b.length:0;if(K||(o&=-97,b=_=r),P=P===r?P:lt(xe(P),0),L=L===r?L:xe(L),K-=_?_.length:0,o&k){var X=b,ee=_;b=_=r}var oe=B?r:il(n),le=[n,o,l,b,_,X,ee,A,P,L];if(oe&&Tx(le,oe),n=le[0],o=le[1],l=le[2],b=le[3],_=le[4],L=le[9]=le[9]===r?B?0:n.length:lt(le[9]-K,0),!L&&o&(E|R)&&(o&=-25),!o||o==w)var he=ax(n,o,l);else o==E||o==R?he=ux(n,o,L):(o==T||o==(w|T))&&!_.length?he=lx(n,o,l,b):he=As.apply(r,le);var Se=oe?ip:Mp;return Dp(Se(he,le),n,o)}function Tp(n,o,l,b){return n===r||dr(n,oi[l])&&!Fe.call(b,l)?o:n}function Op(n,o,l,b,_,A){return Xe(n)&&Xe(o)&&(A.set(o,n),Es(n,o,r,Op,A),A.delete(o)),n}function fx(n){return Gi(n)?r:n}function Ap(n,o,l,b,_,A){var P=l&x,L=n.length,B=o.length;if(L!=B&&!(P&&B>L))return!1;var K=A.get(n),X=A.get(o);if(K&&X)return K==o&&X==n;var ee=-1,oe=!0,le=l&p?new Rn:r;for(A.set(n,o),A.set(o,n);++ee<L;){var he=n[ee],Se=o[ee];if(b)var ge=P?b(Se,he,ee,o,n,A):b(he,Se,ee,n,o,A);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!Tu(o,function(Te,Re){if(!$i(le,Re)&&(he===Te||_(he,Te,l,b,A)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,l,b,A))){oe=!1;break}}return A.delete(n),A.delete(o),oe}function dx(n,o,l,b,_,A,P){switch(l){case Mr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case en:return!(n.byteLength!=o.byteLength||!A(new fs(n),new fs(o)));case me:case Ee:case br:return dr(+n,+o);case Ye:return n.name==o.name&&n.message==o.message;case Nt:case Jr:return n==o+"";case ft:var L=ku;case wt:var B=b&x;if(L||(L=os),n.size!=o.size&&!B)return!1;var K=P.get(n);if(K)return K==o;b|=p,P.set(n,o);var X=Ap(L(n),L(o),b,_,A,P);return P.delete(n),X;case _n:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function px(n,o,l,b,_,A){var P=l&x,L=rl(n),B=L.length,K=rl(o),X=K.length;if(B!=X&&!P)return!1;for(var ee=B;ee--;){var oe=L[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=A.get(n),he=A.get(o);if(le&&he)return le==o&&he==n;var Se=!0;A.set(n,o),A.set(o,n);for(var ge=P;++ee<B;){oe=L[ee];var Te=n[oe],Re=o[oe];if(b)var Ut=P?b(Re,Te,oe,o,n,A):b(Te,Re,oe,n,o,A);if(!(Ut===r?Te===Re||_(Te,Re,l,b,A):Ut)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var Rt=n.constructor,Wt=o.constructor;Rt!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof Rt=="function"&&Rt instanceof Rt&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return A.delete(n),A.delete(o),Se}function zr(n){return cl($p(n,r,Up),n+"")}function rl(n){return Gd(n,dt,sl)}function nl(n){return Gd(n,$t,Rp)}var il=vs?function(n){return vs.get(n)}:El;function ks(n){for(var o=n.name+"",l=ai[o],b=Fe.call(ai,o)?l.length:0;b--;){var _=l[b],A=_.func;if(A==null||A==n)return _.name}return o}function fi(n){var o=Fe.call(O,"placeholder")?O:n;return o.placeholder}function pe(){var n=O.iteratee||xl;return n=n===xl?Yd:n,arguments.length?n(arguments[0],arguments[1]):n}function Is(n,o){var l=n.__data__;return xx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function ol(n){for(var o=dt(n),l=o.length;l--;){var b=o[l],_=n[b];o[l]=[b,_,kp(_)]}return o}function kn(n,o){var l=_w(n,o);return Kd(l)?l:r}function hx(n){var o=Fe.call(n,On),l=n[On];try{n[On]=r;var b=!0}catch{}var _=ls.call(n);return b&&(o?n[On]=l:delete n[On]),_}var sl=$u?function(n){return n==null?[]:(n=Be(n),tn($u(n),function(o){return Ld.call(n,o)}))}:_l,Rp=$u?function(n){for(var o=[];n;)rn(o,sl(n)),n=ds(n);return o}:_l,St=Ot;(Lu&&St(new Lu(new ArrayBuffer(1)))!=Mr||Mi&&St(new Mi)!=ft||Mu&&St(Mu.resolve())!=Jo||si&&St(new si)!=wt||Di&&St(new Di)!=Qr)&&(St=function(n){var o=Ot(n),l=o==Kt?n.constructor:r,b=l?In(l):"";if(b)switch(b){case Yw:return Mr;case Xw:return ft;case Jw:return Jo;case Qw:return wt;case e1:return Qr}return o});function gx(n,o,l){for(var b=-1,_=l.length;++b<_;){var A=l[b],P=A.size;switch(A.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=xt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function mx(n){var o=n.match(Sb);return o?o[1].split(Eb):[]}function Pp(n,o,l){o=un(o,n);for(var b=-1,_=o.length,A=!1;++b<_;){var P=Sr(o[b]);if(!(A=n!=null&&l(n,P)))break;n=n[P]}return A||++b!=_?A:(_=n==null?0:n.length,!!_&&js(_)&&Br(P,_)&&(we(n)||$n(n)))}function vx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Cp(n){return typeof n.constructor=="function"&&!qi(n)?ui(ds(n)):{}}function yx(n,o,l){var b=n.constructor;switch(o){case en:return Qu(n);case me:case Ee:return new b(+n);case Mr:return tx(n,l);case ou:case su:case au:case uu:case lu:case cu:case fu:case du:case pu:return dp(n,l);case ft:return new b;case br:case Jr:return new b(n);case Nt:return rx(n);case wt:return new b;case _n:return nx(n)}}function bx(n,o){var l=o.length;if(!l)return n;var b=l-1;return o[b]=(l>1?"& ":"")+o[b],o=o.join(l>2?", ":" "),n.replace(xb,`{
|
|
183
183
|
/* [wrapped with `+o+`] */
|
|
184
|
-
`)}function Q1(n){return we(n)||Pn(n)||!!(Ed&&n&&n[Ed])}function Nr(n,o){var u=typeof n;return o=o??te,!!o&&(u=="number"||u!="symbol"&&fb.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ge(u))return!1;var y=typeof o;return(y=="number"?Ct(u)&&Nr(o,u.length):y=="string"&&o in u)?lr(u[o],n):!1}function Ju(n,o){if(we(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:Y0.test(n)||!V0.test(n)||o!=null&&n in Ne(o)}function ex(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Qu(n){var o=As(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Vu(u);return!!y&&n===y[0]}function tx(n){return!!bd&&bd in n}var rx=rs?jr:ml;function ji(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ei;return n===u}function bp(n){return n===n&&!Ge(n)}function wp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ne(u))}}function nx(n){var o=$s(n,function(y){return u.size===v&&u.clear(),y}),u=o.cache;return o}function ix(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|U),P=y==U&&u==E||y==U&&u==F&&n[7].length<=o[8]||y==(U|F)&&o[7].length<=o[8]&&u==E;if(!(T||P))return n;y&w&&(n[2]=o[2],_|=u&w?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?rp(z,I,o[4]):I,n[4]=z?Qr(n[3],m):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?np(z,I,o[6]):I,n[6]=z?Qr(n[5],m):o[6]),I=o[7],I&&(n[7]=I),y&U&&(n[8]=n[8]==null?o[8]:bt(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 u in Ne(n))o.push(u);return o}function sx(n){return is.call(n)}function xp(n,o,u){return o=at(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=at(y.length-o,0),P=H(T);++_<T;)P[_]=y[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=y[_];return I[o]=u(P),Ft(n,this,I)}}function Sp(n,o){return o.length<2?n:An(n,Qt(o,0,-1))}function ax(n,o){for(var u=n.length,y=bt(o.length,u),_=Pt(n);y--;){var T=o[y];n[y]=Nr(T,u)?_[T]:r}return n}function el(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ep=Op(Zd),zi=Sw||function(n,o){return dt.setTimeout(n,o)},tl=Op(C1);function _p(n,o,u){var y=o+"";return tl(n,J1(y,ux(V1(y),u)))}function Op(n){var o=0,u=0;return function(){var y=Aw(),_=B-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Rs(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Du(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Ap=nx(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(X0,function(u,y,_,T){o.push(_?T.replace(ob,"$1"):y||u)}),o});function br(n){if(typeof n=="string"||jt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function Rn(n){if(n!=null){try{return ns.call(n)}catch{}try{return n+""}catch{}}return""}function ux(n,o){return Vt(ne,function(u){var y="_."+u[0];o&u[1]&&!Jo(n,y)&&n.push(y)}),n.sort()}function Tp(n){if(n instanceof Te)return n.clone();var o=new Xt(n.__wrapped__,n.__chain__);return o.__actions__=Pt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function lx(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=at(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(cs(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function cx(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function fx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],y=n;y--;)o[y-1]=arguments[y];return Jr(we(u)?Pt(u):[u],pt(o,1))}var dx=_e(function(n,o){return tt(n)?Li(n,pt(o,1,tt,!0)):[]}),px=_e(function(n,o){var u=er(o);return tt(u)&&(u=r),tt(n)?Li(n,pt(o,1,tt,!0),pe(u,2)):[]}),hx=_e(function(n,o){var u=er(o);return tt(u)&&(u=r),tt(n)?Li(n,pt(o,1,tt,!0),r,u):[]});function gx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),Qt(n,o<0?0:o,y)):[]}function mx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,0,o<0?0:o)):[]}function vx(n,o){return n&&n.length?ws(n,pe(o,3),!0,!0):[]}function yx(n,o){return n&&n.length?ws(n,pe(o,3),!0):[]}function bx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),f1(n,o,u,y)):[]}function Rp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Qo(n,pe(o,3),_)}function Pp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y-1;return u!==r&&(_=xe(u),_=u<0?at(y+_,0):bt(_,y-1)),Qo(n,pe(o,3),_,!0)}function Cp(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function wx(n){var o=n==null?0:n.length;return o?pt(n,Y):[]}function xx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function Sx(n){for(var o=-1,u=n==null?0:n.length,y={};++o<u;){var _=n[o];y[_[0]]=_[1]}return y}function kp(n){return n&&n.length?n[0]:r}function Ex(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Yn(n,o,_)}function _x(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var Ox=_e(function(n){var o=Be(n,Uu);return o.length&&o[0]===n[0]?$u(o):[]}),Ax=_e(function(n){var o=er(n),u=Be(n,Uu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?$u(u,pe(o,2)):[]}),Tx=_e(function(n){var o=er(n),u=Be(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?$u(u,r,o):[]});function Rx(n,o){return n==null?"":_w.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Px(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?at(y+_,0):bt(_,y-1)),o===o?uw(n,o,_):Qo(n,fd,_,!0)}function Cx(n,o){return n&&n.length?Ud(n,xe(o)):r}var kx=_e($p);function $p(n,o){return n&&n.length&&o&&o.length?Fu(n,o):n}function $x(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,pe(u,2)):n}function Ix(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,r,u):n}var Lx=Dr(function(n,o){var u=n==null?0:n.length,y=Ru(n,o);return qd(n,Be(o,function(_){return Nr(_,u)?+_:_}).sort(tp)),y});function Mx(n,o){var u=[];if(!(n&&n.length))return u;var y=-1,_=[],T=n.length;for(o=pe(o,3);++y<T;){var P=n[y];o(P,y,n)&&(u.push(P),_.push(y))}return qd(n,_),u}function rl(n){return n==null?n:Rw.call(n)}function Fx(n,o,u){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=y):(o=o==null?0:xe(o),u=u===r?y:xe(u)),Qt(n,o,u)):[]}function Dx(n,o){return bs(n,o)}function Nx(n,o,u){return ju(n,o,pe(u,2))}function jx(n,o){var u=n==null?0:n.length;if(u){var y=bs(n,o);if(y<u&&lr(n[y],o))return y}return-1}function zx(n,o){return bs(n,o,!0)}function Wx(n,o,u){return ju(n,o,pe(u,2),!0)}function Ux(n,o){var u=n==null?0:n.length;if(u){var y=bs(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function Bx(n){return n&&n.length?Gd(n):[]}function Hx(n,o){return n&&n.length?Gd(n,pe(o,2)):[]}function qx(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Zx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function Gx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,o<0?0:o,y)):[]}function Kx(n,o){return n&&n.length?ws(n,pe(o,3),!1,!0):[]}function Vx(n,o){return n&&n.length?ws(n,pe(o,3)):[]}var Yx=_e(function(n){return rn(pt(n,1,tt,!0))}),Xx=_e(function(n){var o=er(n);return tt(o)&&(o=r),rn(pt(n,1,tt,!0),pe(o,2))}),Jx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,tt,!0),r,o)});function Qx(n){return n&&n.length?rn(n):[]}function eS(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function tS(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function nl(n){if(!(n&&n.length))return[];var o=0;return n=Xr(n,function(u){if(tt(u))return o=at(u.length,o),!0}),wu(o,function(u){return Be(n,vu(u))})}function Ip(n,o){if(!(n&&n.length))return[];var u=nl(n);return o==null?u:Be(u,function(y){return Ft(o,r,y)})}var rS=_e(function(n,o){return tt(n)?Li(n,o):[]}),nS=_e(function(n){return Wu(Xr(n,tt))}),iS=_e(function(n){var o=er(n);return tt(o)&&(o=r),Wu(Xr(n,tt),pe(o,2))}),oS=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,Wu(Xr(n,tt),r,o)}),sS=_e(nl);function aS(n,o){return Xd(n||[],o||[],Ii)}function uS(n,o){return Xd(n||[],o||[],Di)}var lS=_e(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Ip(n,u)});function Lp(n){var o=A(n);return o.__chain__=!0,o}function cS(n,o){return o(n),n}function Ps(n,o){return o(n)}var fS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Ru(T,n)};return o>1||this.__actions__.length||!(y instanceof Te)||!Nr(u)?this.thru(_):(y=y.slice(u,+u+(o?1:0)),y.__actions__.push({func:Ps,args:[_],thisArg:r}),new Xt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function dS(){return Lp(this)}function pS(){return new Xt(this.value(),this.__chain__)}function hS(){this.__values__===r&&(this.__values__=Kp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function gS(){return this}function mS(n){for(var o,u=this;u instanceof hs;){var y=Tp(u);y.__index__=0,y.__values__=r,o?_.__wrapped__=y:o=y;var _=y;u=u.__wrapped__}return _.__wrapped__=n,o}function vS(){var n=this.__wrapped__;if(n instanceof Te){var o=n;return this.__actions__.length&&(o=new Te(this)),o=o.reverse(),o.__actions__.push({func:Ps,args:[rl],thisArg:r}),new Xt(o,this.__chain__)}return this.thru(rl)}function yS(){return Yd(this.__wrapped__,this.__actions__)}var bS=xs(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function wS(n,o,u){var y=we(n)?ld:c1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function xS(n,o){var u=we(n)?Xr:Id;return u(n,pe(o,3))}var SS=ap(Rp),ES=ap(Pp);function _S(n,o){return pt(Cs(n,o),1)}function OS(n,o){return pt(Cs(n,o),Y)}function AS(n,o,u){return u=u===r?1:xe(u),pt(Cs(n,o),u)}function Mp(n,o){var u=we(n)?Vt:tn;return u(n,pe(o,3))}function Fp(n,o){var u=we(n)?qb:$d;return u(n,pe(o,3))}var TS=xs(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function RS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=at(_+u,0)),Ms(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Yn(n,o,u)>-1}var PS=_e(function(n,o,u){var y=-1,_=typeof o=="function",T=Ct(n)?H(n.length):[];return tn(n,function(P){T[++y]=_?Ft(o,P,u):Mi(P,o,u)}),T}),CS=xs(function(n,o,u){Mr(n,u,o)});function Cs(n,o){var u=we(n)?Be:jd;return u(n,pe(o,3))}function kS(n,o,u,y){return n==null?[]:(we(o)||(o=o==null?[]:[o]),u=y?r:u,we(u)||(u=u==null?[]:[u]),Bd(n,o,u))}var $S=xs(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function IS(n,o,u){var y=we(n)?gu:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function LS(n,o,u){var y=we(n)?Zb:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,$d)}function MS(n,o){var u=we(n)?Xr:Id;return u(n,Is(pe(o,3)))}function FS(n){var o=we(n)?Rd:R1;return o(n)}function DS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?o1:P1;return y(n,o)}function NS(n){var o=we(n)?s1:k1;return o(n)}function jS(n){if(n==null)return 0;if(Ct(n))return Ms(n)?Jn(n):n.length;var o=wt(n);return o==lt||o==yt?n.size:Lu(n).length}function zS(n,o,u){var y=we(n)?mu:$1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var WS=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),Bd(n,pt(o,1),[])}),ks=xw||function(){return dt.Date.now()};function US(n,o){if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Dp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Fr(n,U,r,r,r,r,o)}function Np(n,o){var u;if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var il=_e(function(n,o,u){var y=w;if(u.length){var _=Qr(u,si(il));y|=O}return Fr(n,y,o,u,_)}),jp=_e(function(n,o,u){var y=w|h;if(u.length){var _=Qr(u,si(jp));y|=O}return Fr(o,y,n,u,_)});function zp(n,o,u){o=u?r:o;var y=Fr(n,E,r,r,r,r,r,o);return y.placeholder=zp.placeholder,y}function Wp(n,o,u){o=u?r:o;var y=Fr(n,R,r,r,r,r,r,o);return y.placeholder=Wp.placeholder,y}function Up(n,o,u){var y,_,T,P,I,z,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Yt(l);o=tr(o)||0,Ge(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?at(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(rt){var cr=y,Wr=_;return y=_=r,V=rt,P=n.apply(Wr,cr),P}function he(rt){return V=rt,I=zi(Oe,o),X?le(rt):P}function Se(rt){var cr=rt-z,Wr=rt-V,ah=o-cr;return ee?bt(ah,T-Wr):ah}function ge(rt){var cr=rt-z,Wr=rt-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var rt=ks();if(ge(rt))return Re(rt);I=zi(Oe,Se(rt))}function Re(rt){return I=r,oe&&y?le(rt):(y=_=r,P)}function zt(){I!==r&&Jd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(ks())}function Wt(){var rt=ks(),cr=ge(rt);if(y=arguments,_=this,z=rt,cr){if(I===r)return he(z);if(ee)return Jd(I),I=zi(Oe,o),le(z)}return I===r&&(I=zi(Oe,o)),P}return Wt.cancel=zt,Wt.flush=At,Wt}var BS=_e(function(n,o){return kd(n,1,o)}),HS=_e(function(n,o,u){return kd(n,tr(o)||0,u)});function qS(n){return Fr(n,D)}function $s(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(l);var u=function(){var y=arguments,_=o?o.apply(this,y):y[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,y);return u.cache=T.set(_,P)||T,P};return u.cache=new($s.Cache||Lr),u}$s.Cache=Lr;function Is(n){if(typeof n!="function")throw new Yt(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function ZS(n){return Np(2,n)}var GS=I1(function(n,o){o=o.length==1&&we(o[0])?Be(o[0],Dt(pe())):Be(pt(o,1),Dt(pe()));var u=o.length;return _e(function(y){for(var _=-1,T=bt(y.length,u);++_<T;)y[_]=o[_].call(this,y[_]);return Ft(n,this,y)})}),ol=_e(function(n,o){var u=Qr(o,si(ol));return Fr(n,O,r,o,u)}),Bp=_e(function(n,o){var u=Qr(o,si(Bp));return Fr(n,k,r,o,u)}),KS=Dr(function(n,o){return Fr(n,F,r,r,r,o)});function VS(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:xe(o),_e(n,o)}function YS(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:at(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function XS(n,o,u){var y=!0,_=!0;if(typeof n!="function")throw new Yt(l);return Ge(u)&&(y="leading"in u?!!u.leading:y,_="trailing"in u?!!u.trailing:_),Up(n,o,{leading:y,maxWait:o,trailing:_})}function JS(n){return Dp(n,1)}function QS(n,o){return ol(Bu(o),n)}function eE(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function tE(n){return Jt(n,b)}function rE(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function nE(n){return Jt(n,g|b)}function iE(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function oE(n,o){return o==null||Cd(n,o,ct(o))}function lr(n,o){return n===o||n!==n&&o!==o}var sE=Os(ku),aE=Os(function(n,o){return n>=o}),Pn=Fd((function(){return arguments})())?Fd:function(n){return Je(n)&&Fe.call(n,"callee")&&!Sd.call(n,"callee")},we=H.isArray,uE=nd?Dt(nd):m1;function Ct(n){return n!=null&&Ls(n.length)&&!jr(n)}function tt(n){return Je(n)&&Ct(n)}function lE(n){return n===!0||n===!1||Je(n)&&_t(n)==me}var sn=Ew||ml,cE=id?Dt(id):v1;function fE(n){return Je(n)&&n.nodeType===1&&!Wi(n)}function dE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||sn(n)||ai(n)||Pn(n)))return!n.length;var o=wt(n);if(o==lt||o==yt)return!n.size;if(ji(n))return!Lu(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function pE(n,o){return Fi(n,o)}function hE(n,o,u){u=typeof u=="function"?u:r;var y=u?u(n,o):r;return y===r?Fi(n,o,r,u):!!y}function sl(n){if(!Je(n))return!1;var o=_t(n);return o==Ze||o==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!Wi(n)}function gE(n){return typeof n=="number"&&_d(n)}function jr(n){if(!Ge(n))return!1;var o=_t(n);return o==ie||o==vt||o==ye||o==Va}function Hp(n){return typeof n=="number"&&n==xe(n)}function Ls(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ge(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Je(n){return n!=null&&typeof n=="object"}var qp=od?Dt(od):b1;function mE(n,o){return n===o||Iu(n,o,Yu(o))}function vE(n,o,u){return u=typeof u=="function"?u:r,Iu(n,o,Yu(o),u)}function yE(n){return Zp(n)&&n!=+n}function bE(n){if(rx(n))throw new be(a);return Dd(n)}function wE(n){return n===null}function xE(n){return n==null}function Zp(n){return typeof n=="number"||Je(n)&&_t(n)==mr}function Wi(n){if(!Je(n)||_t(n)!=Gt)return!1;var o=as(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ns.call(u)==vw}var al=sd?Dt(sd):w1;function SE(n){return Hp(n)&&n>=-te&&n<=te}var Gp=ad?Dt(ad):x1;function Ms(n){return typeof n=="string"||!we(n)&&Je(n)&&_t(n)==Kr}function jt(n){return typeof n=="symbol"||Je(n)&&_t(n)==wn}var ai=ud?Dt(ud):S1;function EE(n){return n===r}function _E(n){return Je(n)&&wt(n)==Vr}function OE(n){return Je(n)&&_t(n)==Ko}var AE=Os(Mu),TE=Os(function(n,o){return n<=o});function Kp(n){if(!n)return[];if(Ct(n))return Ms(n)?ar(n):Pt(n);if(Ri&&n[Ri])return ow(n[Ri]());var o=wt(n),u=o==lt?Su:o==yt?es:ui;return u(n)}function zr(n){if(!n)return n===0?n:0;if(n=tr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=zr(n),u=o%1;return o===o?u?o-u:o:0}function Vp(n){return n?On(xe(n),0,Q):0}function tr(n){if(typeof n=="number")return n;if(jt(n))return Z;if(Ge(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ge(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=hd(n);var u=ub.test(n);return u||cb.test(n)?Ub(n.slice(2),u?2:8):ab.test(n)?Z:+n}function Yp(n){return yr(n,kt(n))}function RE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var PE=ii(function(n,o){if(ji(o)||Ct(o)){yr(o,ct(o),n);return}for(var u in o)Fe.call(o,u)&&Ii(n,u,o[u])}),Xp=ii(function(n,o){yr(o,kt(o),n)}),Fs=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),CE=ii(function(n,o,u,y){yr(o,ct(o),n,y)}),kE=Dr(Ru);function $E(n,o){var u=ni(n);return o==null?u:Pd(u,o)}var IE=_e(function(n,o){n=Ne(n);var u=-1,y=o.length,_=y>2?o[2]:r;for(_&&Ot(o[0],o[1],_)&&(y=1);++u<y;)for(var T=o[u],P=kt(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||lr(X,ei[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),LE=_e(function(n){return n.push(r,hp),Ft(Jp,r,n)});function ME(n,o){return cd(n,pe(o,3),vr)}function FE(n,o){return cd(n,pe(o,3),Cu)}function DE(n,o){return n==null?n:Pu(n,pe(o,3),kt)}function NE(n,o){return n==null?n:Ld(n,pe(o,3),kt)}function jE(n,o){return n&&vr(n,pe(o,3))}function zE(n,o){return n&&Cu(n,pe(o,3))}function WE(n){return n==null?[]:vs(n,ct(n))}function UE(n){return n==null?[]:vs(n,kt(n))}function ul(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function BE(n,o){return n!=null&&vp(n,o,d1)}function ll(n,o){return n!=null&&vp(n,o,p1)}var HE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=is.call(o)),n[o]=u},fl($t)),qE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=is.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),ZE=_e(Mi);function ct(n){return Ct(n)?Td(n):Lu(n)}function kt(n){return Ct(n)?Td(n,!0):E1(n)}function GE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function KE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var VE=ii(function(n,o,u){ys(n,o,u)}),Jp=ii(function(n,o,u,y){ys(n,o,u,y)}),YE=Dr(function(n,o){var u={};if(n==null)return u;var y=!1;o=Be(o,function(T){return T=nn(T,n),y||(y=T.length>1),T}),yr(n,Ku(n),u),y&&(u=Jt(u,g|p|b,H1));for(var _=o.length;_--;)zu(u,o[_]);return u});function XE(n,o){return Qp(n,Is(pe(o)))}var JE=Dr(function(n,o){return n==null?{}:O1(n,o)});function Qp(n,o){if(n==null)return{};var u=Be(Ku(n),function(y){return[y]});return o=pe(o),Hd(n,u,function(y,_){return o(y,_[0])})}function QE(n,o,u){o=nn(o,n);var y=-1,_=o.length;for(_||(_=1,n=r);++y<_;){var T=n==null?r:n[br(o[y])];T===r&&(y=_,T=u),n=jr(T)?T.call(n):T}return n}function e_(n,o,u){return n==null?n:Di(n,o,u)}function t_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Di(n,o,u,y)}var eh=dp(ct),th=dp(kt);function r_(n,o,u){var y=we(n),_=y||sn(n)||ai(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(as(n)):{}:u={}}return(_?Vt:vr)(n,function(P,I,z){return o(u,P,I,z)}),u}function n_(n,o){return n==null?!0:zu(n,o)}function i_(n,o,u){return n==null?n:Vd(n,o,Bu(u))}function o_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Vd(n,o,Bu(u),y)}function ui(n){return n==null?[]:xu(n,ct(n))}function s_(n){return n==null?[]:xu(n,kt(n))}function a_(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=tr(u),u=u===u?u:0),o!==r&&(o=tr(o),o=o===o?o:0),On(tr(n),o,u)}function u_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),h1(n,o,u)}function l_(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=zr(n),o===r?(o=n,n=0):o=zr(o)),n>o){var y=n;n=o,o=y}if(u||n%1||o%1){var _=Od();return bt(n+_*(o-n+Wb("1e-"+((_+"").length-1))),o)}return Du(n,o)}var c_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?rh(o):o)});function rh(n){return cl(ke(n).toLowerCase())}function nh(n){return n=ke(n),n&&n.replace(db,ew).replace(kb,"")}function f_(n,o,u){n=ke(n),o=Nt(o);var y=n.length;u=u===r?y:On(xe(u),0,y);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function d_(n){return n=ke(n),n&&Z0.test(n)?n.replace(Lf,tw):n}function p_(n){return n=ke(n),n&&J0.test(n)?n.replace(ou,"\\$&"):n}var h_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),g_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),m_=sp("toLowerCase");function v_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;if(!o||y>=o)return n;var _=(o-y)/2;return _s(fs(_),u)+n+_s(cs(_),u)}function y_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+_s(o-y,u):n}function b_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?_s(o-y,u)+n:n}function w_(n,o,u){return u||o==null?o=0:o&&(o=+o),Tw(ke(n).replace(su,""),o||0)}function x_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Nu(ke(n),o)}function S_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var E_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function __(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=Nt(o),!o&&Xn(n))?on(ar(n),0,u):n.split(o,u)):[]}var O_=oi(function(n,o,u){return n+(u?" ":"")+cl(o)});function A_(n,o,u){return n=ke(n),u=u==null?0:On(xe(u),0,n.length),o=Nt(o),n.slice(u,u+o.length)==o}function T_(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Fs({},o,y,pp);var _=Fs({},o.imports,y.imports,pp),T=ct(_),P=xu(_,T),I,z,V=0,X=o.interpolate||Vo,ee="__p += '",oe=Eu((o.escape||Vo).source+"|"+X.source+"|"+(X===Mf?sb:Vo).source+"|"+(o.evaluate||Vo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fb+"]")+`
|
|
185
|
-
`;n.replace(oe,function(ge,
|
|
186
|
-
__e(`+
|
|
187
|
-
'`),
|
|
188
|
-
`+
|
|
184
|
+
`)}function wx(n){return we(n)||$n(n)||!!(Md&&n&&n[Md])}function Br(n,o){var l=typeof n;return o=o??te,!!o&&(l=="number"||l!="symbol"&&Ib.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Xe(l))return!1;var b=typeof o;return(b=="number"?It(l)&&Br(o,l.length):b=="string"&&o in l)?dr(l[o],n):!1}function al(n,o){if(we(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Bt(n)?!0:vb.test(n)||!mb.test(n)||o!=null&&n in Be(o)}function xx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function ul(n){var o=ks(n),l=O[o];if(typeof l!="function"||!(o in Ae.prototype))return!1;if(n===l)return!0;var b=il(l);return!!b&&n===b[0]}function Sx(n){return!!kd&&kd in n}var Ex=as?Ur:Tl;function qi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||oi;return n===l}function kp(n){return n===n&&!Xe(n)}function Ip(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in Be(l))}}function _x(n){var o=Ns(n,function(b){return l.size===m&&l.clear(),b}),l=o.cache;return o}function Tx(n,o){var l=n[1],b=o[1],_=l|b,A=_<(w|v|U),P=b==U&&l==E||b==U&&l==D&&n[7].length<=o[8]||b==(U|D)&&o[7].length<=o[8]&&l==E;if(!(A||P))return n;b&w&&(n[2]=o[2],_|=l&w?0:S);var L=o[3];if(L){var B=n[3];n[3]=B?hp(B,L,o[4]):L,n[4]=B?nn(n[3],g):o[4]}return L=o[5],L&&(B=n[5],n[5]=B?gp(B,L,o[6]):L,n[6]=B?nn(n[5],g):o[6]),L=o[7],L&&(n[7]=L),b&U&&(n[8]=n[8]==null?o[8]:xt(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 Be(n))o.push(l);return o}function Ax(n){return ls.call(n)}function $p(n,o,l){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,A=lt(b.length-o,0),P=H(A);++_<A;)P[_]=b[o+_];_=-1;for(var L=H(o+1);++_<o;)L[_]=b[_];return L[o]=l(P),Ft(n,this,L)}}function Lp(n,o){return o.length<2?n:Cn(n,tr(o,0,-1))}function Rx(n,o){for(var l=n.length,b=xt(o.length,l),_=kt(n);b--;){var A=o[b];n[b]=Br(A,l)?_[A]:r}return n}function ll(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Mp=Np(ip),Zi=Ww||function(n,o){return ht.setTimeout(n,o)},cl=Np(X1);function Dp(n,o,l){var b=o+"";return cl(n,bx(b,Px(mx(b),l)))}function Np(n){var o=0,l=0;return function(){var b=Gw(),_=W-(b-l);if(l=b,_>0){if(++o>=M)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 A=Zu(l,_),P=n[A];n[A]=n[l],n[l]=P}return n.length=o,n}var Fp=_x(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(yb,function(l,b,_,A){o.push(_?A.replace(Ob,"$1"):b||l)}),o});function Sr(n){if(typeof n=="string"||Bt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function In(n){if(n!=null){try{return us.call(n)}catch{}try{return n+""}catch{}}return""}function Px(n,o){return Xt(ne,function(l){var b="_."+l[0];o&l[1]&&!ns(n,b)&&n.push(b)}),n.sort()}function jp(n){if(n instanceof Ae)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=kt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Cx(n,o,l){(l?At(n,o,l):o===r)?o=1:o=lt(xe(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,A=0,P=H(gs(b/o));_<b;)P[A++]=tr(n,_,_+=o);return P}function kx(n){for(var o=-1,l=n==null?0:n.length,b=0,_=[];++o<l;){var A=n[o];A&&(_[b++]=A)}return _}function Ix(){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 rn(we(l)?kt(l):[l],gt(o,1))}var $x=_e(function(n,o){return nt(n)?zi(n,gt(o,1,nt,!0)):[]}),Lx=_e(function(n,o){var l=rr(o);return nt(l)&&(l=r),nt(n)?zi(n,gt(o,1,nt,!0),pe(l,2)):[]}),Mx=_e(function(n,o){var l=rr(o);return nt(l)&&(l=r),nt(n)?zi(n,gt(o,1,nt,!0),r,l):[]});function Dx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),tr(n,o<0?0:o,b)):[]}function Nx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),o=b-o,tr(n,0,o<0?0:o)):[]}function Fx(n,o){return n&&n.length?Ts(n,pe(o,3),!0,!0):[]}function jx(n,o){return n&&n.length?Ts(n,pe(o,3),!0):[]}function zx(n,o,l,b){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,b=_),I1(n,o,l,b)):[]}function zp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(b+_,0)),is(n,pe(o,3),_)}function Bp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return l!==r&&(_=xe(l),_=l<0?lt(b+_,0):xt(_,b-1)),is(n,pe(o,3),_,!0)}function Up(n){var o=n==null?0:n.length;return o?gt(n,1):[]}function Bx(n){var o=n==null?0:n.length;return o?gt(n,Y):[]}function Ux(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:xe(o),gt(n,o)):[]}function Wx(n){for(var o=-1,l=n==null?0:n.length,b={};++o<l;){var _=n[o];b[_[0]]=_[1]}return b}function Wp(n){return n&&n.length?n[0]:r}function Hx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(b+_,0)),ti(n,o,_)}function qx(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var Zx=_e(function(n){var o=Ze(n,Xu);return o.length&&o[0]===n[0]?Bu(o):[]}),Gx=_e(function(n){var o=rr(n),l=Ze(n,Xu);return o===rr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?Bu(l,pe(o,2)):[]}),Vx=_e(function(n){var o=rr(n),l=Ze(n,Xu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?Bu(l,r,o):[]});function Kx(n,o){return n==null?"":qw.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Yx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b;return l!==r&&(_=xe(l),_=_<0?lt(b+_,0):xt(_,b-1)),o===o?Pw(n,o,_):is(n,Ed,_,!0)}function Xx(n,o){return n&&n.length?ep(n,xe(o)):r}var Jx=_e(Hp);function Hp(n,o){return n&&n.length&&o&&o.length?qu(n,o):n}function Qx(n,o,l){return n&&n.length&&o&&o.length?qu(n,o,pe(l,2)):n}function eS(n,o,l){return n&&n.length&&o&&o.length?qu(n,o,r,l):n}var tS=zr(function(n,o){var l=n==null?0:n.length,b=Nu(n,o);return np(n,Ze(o,function(_){return Br(_,l)?+_:_}).sort(pp)),b});function rS(n,o){var l=[];if(!(n&&n.length))return l;var b=-1,_=[],A=n.length;for(o=pe(o,3);++b<A;){var P=n[b];o(P,b,n)&&(l.push(P),_.push(b))}return np(n,_),l}function fl(n){return n==null?n:Kw.call(n)}function nS(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:xe(o),l=l===r?b:xe(l)),tr(n,o,l)):[]}function iS(n,o){return _s(n,o)}function oS(n,o,l){return Vu(n,o,pe(l,2))}function sS(n,o){var l=n==null?0:n.length;if(l){var b=_s(n,o);if(b<l&&dr(n[b],o))return b}return-1}function aS(n,o){return _s(n,o,!0)}function uS(n,o,l){return Vu(n,o,pe(l,2),!0)}function lS(n,o){var l=n==null?0:n.length;if(l){var b=_s(n,o,!0)-1;if(dr(n[b],o))return b}return-1}function cS(n){return n&&n.length?op(n):[]}function fS(n,o){return n&&n.length?op(n,pe(o,2)):[]}function dS(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function pS(n,o,l){return n&&n.length?(o=l||o===r?1:xe(o),tr(n,0,o<0?0:o)):[]}function hS(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),o=b-o,tr(n,o<0?0:o,b)):[]}function gS(n,o){return n&&n.length?Ts(n,pe(o,3),!1,!0):[]}function mS(n,o){return n&&n.length?Ts(n,pe(o,3)):[]}var vS=_e(function(n){return an(gt(n,1,nt,!0))}),yS=_e(function(n){var o=rr(n);return nt(o)&&(o=r),an(gt(n,1,nt,!0),pe(o,2))}),bS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,an(gt(n,1,nt,!0),r,o)});function wS(n){return n&&n.length?an(n):[]}function xS(n,o){return n&&n.length?an(n,pe(o,2)):[]}function SS(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function dl(n){if(!(n&&n.length))return[];var o=0;return n=tn(n,function(l){if(nt(l))return o=lt(l.length,o),!0}),Pu(o,function(l){return Ze(n,Ou(l))})}function qp(n,o){if(!(n&&n.length))return[];var l=dl(n);return o==null?l:Ze(l,function(b){return Ft(o,r,b)})}var ES=_e(function(n,o){return nt(n)?zi(n,o):[]}),_S=_e(function(n){return Yu(tn(n,nt))}),TS=_e(function(n){var o=rr(n);return nt(o)&&(o=r),Yu(tn(n,nt),pe(o,2))}),OS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,Yu(tn(n,nt),r,o)}),AS=_e(dl);function RS(n,o){return lp(n||[],o||[],ji)}function PS(n,o){return lp(n||[],o||[],Wi)}var CS=_e(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,qp(n,l)});function Zp(n){var o=O(n);return o.__chain__=!0,o}function kS(n,o){return o(n),n}function Ls(n,o){return o(n)}var IS=zr(function(n){var o=n.length,l=o?n[0]:0,b=this.__wrapped__,_=function(A){return Nu(A,n)};return o>1||this.__actions__.length||!(b instanceof Ae)||!Br(l)?this.thru(_):(b=b.slice(l,+l+(o?1:0)),b.__actions__.push({func:Ls,args:[_],thisArg:r}),new Qt(b,this.__chain__).thru(function(A){return o&&!A.length&&A.push(r),A}))});function $S(){return Zp(this)}function LS(){return new Qt(this.value(),this.__chain__)}function MS(){this.__values__===r&&(this.__values__=sh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function DS(){return this}function NS(n){for(var o,l=this;l instanceof bs;){var b=jp(l);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;l=l.__wrapped__}return _.__wrapped__=n,o}function FS(){var n=this.__wrapped__;if(n instanceof Ae){var o=n;return this.__actions__.length&&(o=new Ae(this)),o=o.reverse(),o.__actions__.push({func:Ls,args:[fl],thisArg:r}),new Qt(o,this.__chain__)}return this.thru(fl)}function jS(){return up(this.__wrapped__,this.__actions__)}var zS=Os(function(n,o,l){Fe.call(n,l)?++n[l]:Fr(n,l,1)});function BS(n,o,l){var b=we(n)?xd:k1;return l&&At(n,o,l)&&(o=r),b(n,pe(o,3))}function US(n,o){var l=we(n)?tn:qd;return l(n,pe(o,3))}var WS=bp(zp),HS=bp(Bp);function qS(n,o){return gt(Ms(n,o),1)}function ZS(n,o){return gt(Ms(n,o),Y)}function GS(n,o,l){return l=l===r?1:xe(l),gt(Ms(n,o),l)}function Gp(n,o){var l=we(n)?Xt:sn;return l(n,pe(o,3))}function Vp(n,o){var l=we(n)?dw:Hd;return l(n,pe(o,3))}var VS=Os(function(n,o,l){Fe.call(n,l)?n[l].push(o):Fr(n,l,[o])});function KS(n,o,l,b){n=It(n)?n:pi(n),l=l&&!b?xe(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),zs(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&ti(n,o,l)>-1}var YS=_e(function(n,o,l){var b=-1,_=typeof o=="function",A=It(n)?H(n.length):[];return sn(n,function(P){A[++b]=_?Ft(o,P,l):Bi(P,o,l)}),A}),XS=Os(function(n,o,l){Fr(n,l,o)});function Ms(n,o){var l=we(n)?Ze:Xd;return l(n,pe(o,3))}function JS(n,o,l,b){return n==null?[]:(we(o)||(o=o==null?[]:[o]),l=b?r:l,we(l)||(l=l==null?[]:[l]),tp(n,o,l))}var QS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function eE(n,o,l){var b=we(n)?_u:Td,_=arguments.length<3;return b(n,pe(o,4),l,_,sn)}function tE(n,o,l){var b=we(n)?pw:Td,_=arguments.length<3;return b(n,pe(o,4),l,_,Hd)}function rE(n,o){var l=we(n)?tn:qd;return l(n,Fs(pe(o,3)))}function nE(n){var o=we(n)?zd:K1;return o(n)}function iE(n,o,l){(l?At(n,o,l):o===r)?o=1:o=xe(o);var b=we(n)?O1:Y1;return b(n,o)}function oE(n){var o=we(n)?A1:J1;return o(n)}function sE(n){if(n==null)return 0;if(It(n))return zs(n)?ni(n):n.length;var o=St(n);return o==ft||o==wt?n.size:Wu(n).length}function aE(n,o,l){var b=we(n)?Tu:Q1;return l&&At(n,o,l)&&(o=r),b(n,pe(o,3))}var uE=_e(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]]),tp(n,gt(o,1),[])}),Ds=Uw||function(){return ht.Date.now()};function lE(n,o){if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Kp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,jr(n,U,r,r,r,r,o)}function Yp(n,o){var l;if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var pl=_e(function(n,o,l){var b=w;if(l.length){var _=nn(l,fi(pl));b|=T}return jr(n,b,o,l,_)}),Xp=_e(function(n,o,l){var b=w|v;if(l.length){var _=nn(l,fi(Xp));b|=T}return jr(o,b,n,l,_)});function Jp(n,o,l){o=l?r:o;var b=jr(n,E,r,r,r,r,r,o);return b.placeholder=Jp.placeholder,b}function Qp(n,o,l){o=l?r:o;var b=jr(n,R,r,r,r,r,r,o);return b.placeholder=Qp.placeholder,b}function eh(n,o,l){var b,_,A,P,L,B,K=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Jt(u);o=nr(o)||0,Xe(l)&&(X=!!l.leading,ee="maxWait"in l,A=ee?lt(nr(l.maxWait)||0,o):A,oe="trailing"in l?!!l.trailing:oe);function le(it){var pr=b,Hr=_;return b=_=r,K=it,P=n.apply(Hr,pr),P}function he(it){return K=it,L=Zi(Te,o),X?le(it):P}function Se(it){var pr=it-B,Hr=it-K,bh=o-pr;return ee?xt(bh,A-Hr):bh}function ge(it){var pr=it-B,Hr=it-K;return B===r||pr>=o||pr<0||ee&&Hr>=A}function Te(){var it=Ds();if(ge(it))return Re(it);L=Zi(Te,Se(it))}function Re(it){return L=r,oe&&b?le(it):(b=_=r,P)}function Ut(){L!==r&&cp(L),K=0,b=B=_=L=r}function Rt(){return L===r?P:Re(Ds())}function Wt(){var it=Ds(),pr=ge(it);if(b=arguments,_=this,B=it,pr){if(L===r)return he(B);if(ee)return cp(L),L=Zi(Te,o),le(B)}return L===r&&(L=Zi(Te,o)),P}return Wt.cancel=Ut,Wt.flush=Rt,Wt}var cE=_e(function(n,o){return Wd(n,1,o)}),fE=_e(function(n,o,l){return Wd(n,nr(o)||0,l)});function dE(n){return jr(n,N)}function Ns(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Jt(u);var l=function(){var b=arguments,_=o?o.apply(this,b):b[0],A=l.cache;if(A.has(_))return A.get(_);var P=n.apply(this,b);return l.cache=A.set(_,P)||A,P};return l.cache=new(Ns.Cache||Nr),l}Ns.Cache=Nr;function Fs(n){if(typeof n!="function")throw new Jt(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 pE(n){return Yp(2,n)}var hE=ex(function(n,o){o=o.length==1&&we(o[0])?Ze(o[0],jt(pe())):Ze(gt(o,1),jt(pe()));var l=o.length;return _e(function(b){for(var _=-1,A=xt(b.length,l);++_<A;)b[_]=o[_].call(this,b[_]);return Ft(n,this,b)})}),hl=_e(function(n,o){var l=nn(o,fi(hl));return jr(n,T,r,o,l)}),th=_e(function(n,o){var l=nn(o,fi(th));return jr(n,k,r,o,l)}),gE=zr(function(n,o){return jr(n,D,r,r,r,o)});function mE(n,o){if(typeof n!="function")throw new Jt(u);return o=o===r?o:xe(o),_e(n,o)}function vE(n,o){if(typeof n!="function")throw new Jt(u);return o=o==null?0:lt(xe(o),0),_e(function(l){var b=l[o],_=ln(l,0,o);return b&&rn(_,b),Ft(n,this,_)})}function yE(n,o,l){var b=!0,_=!0;if(typeof n!="function")throw new Jt(u);return Xe(l)&&(b="leading"in l?!!l.leading:b,_="trailing"in l?!!l.trailing:_),eh(n,o,{leading:b,maxWait:o,trailing:_})}function bE(n){return Kp(n,1)}function wE(n,o){return hl(Ju(o),n)}function xE(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function SE(n){return er(n,y)}function EE(n,o){return o=typeof o=="function"?o:r,er(n,y,o)}function _E(n){return er(n,h|y)}function TE(n,o){return o=typeof o=="function"?o:r,er(n,h|y,o)}function OE(n,o){return o==null||Ud(n,o,dt(o))}function dr(n,o){return n===o||n!==n&&o!==o}var AE=Cs(zu),RE=Cs(function(n,o){return n>=o}),$n=Vd((function(){return arguments})())?Vd:function(n){return tt(n)&&Fe.call(n,"callee")&&!Ld.call(n,"callee")},we=H.isArray,PE=gd?jt(gd):N1;function It(n){return n!=null&&js(n.length)&&!Ur(n)}function nt(n){return tt(n)&&It(n)}function CE(n){return n===!0||n===!1||tt(n)&&Ot(n)==me}var cn=Hw||Tl,kE=md?jt(md):F1;function IE(n){return tt(n)&&n.nodeType===1&&!Gi(n)}function $E(n){if(n==null)return!0;if(It(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||cn(n)||di(n)||$n(n)))return!n.length;var o=St(n);if(o==ft||o==wt)return!n.size;if(qi(n))return!Wu(n).length;for(var l in n)if(Fe.call(n,l))return!1;return!0}function LE(n,o){return Ui(n,o)}function ME(n,o,l){l=typeof l=="function"?l:r;var b=l?l(n,o):r;return b===r?Ui(n,o,r,l):!!b}function gl(n){if(!tt(n))return!1;var o=Ot(n);return o==Ye||o==Oe||typeof n.message=="string"&&typeof n.name=="string"&&!Gi(n)}function DE(n){return typeof n=="number"&&Dd(n)}function Ur(n){if(!Xe(n))return!1;var o=Ot(n);return o==ie||o==bt||o==ye||o==iu}function rh(n){return typeof n=="number"&&n==xe(n)}function js(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Xe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function tt(n){return n!=null&&typeof n=="object"}var nh=vd?jt(vd):z1;function NE(n,o){return n===o||Uu(n,o,ol(o))}function FE(n,o,l){return l=typeof l=="function"?l:r,Uu(n,o,ol(o),l)}function jE(n){return ih(n)&&n!=+n}function zE(n){if(Ex(n))throw new be(a);return Kd(n)}function BE(n){return n===null}function UE(n){return n==null}function ih(n){return typeof n=="number"||tt(n)&&Ot(n)==br}function Gi(n){if(!tt(n)||Ot(n)!=Kt)return!1;var o=ds(n);if(o===null)return!0;var l=Fe.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&us.call(l)==Fw}var ml=yd?jt(yd):B1;function WE(n){return rh(n)&&n>=-te&&n<=te}var oh=bd?jt(bd):U1;function zs(n){return typeof n=="string"||!we(n)&&tt(n)&&Ot(n)==Jr}function Bt(n){return typeof n=="symbol"||tt(n)&&Ot(n)==_n}var di=wd?jt(wd):W1;function HE(n){return n===r}function qE(n){return tt(n)&&St(n)==Qr}function ZE(n){return tt(n)&&Ot(n)==Qo}var GE=Cs(Hu),VE=Cs(function(n,o){return n<=o});function sh(n){if(!n)return[];if(It(n))return zs(n)?cr(n):kt(n);if(Li&&n[Li])return Ow(n[Li]());var o=St(n),l=o==ft?ku:o==wt?os:pi;return l(n)}function Wr(n){if(!n)return n===0?n:0;if(n=nr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=Wr(n),l=o%1;return o===o?l?o-l:o:0}function ah(n){return n?Pn(xe(n),0,Q):0}function nr(n){if(typeof n=="number")return n;if(Bt(n))return Z;if(Xe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Xe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Od(n);var l=Pb.test(n);return l||kb.test(n)?lw(n.slice(2),l?2:8):Rb.test(n)?Z:+n}function uh(n){return xr(n,$t(n))}function KE(n){return n?Pn(xe(n),-te,te):n===0?n:0}function Ie(n){return n==null?"":zt(n)}var YE=li(function(n,o){if(qi(o)||It(o)){xr(o,dt(o),n);return}for(var l in o)Fe.call(o,l)&&ji(n,l,o[l])}),lh=li(function(n,o){xr(o,$t(o),n)}),Bs=li(function(n,o,l,b){xr(o,$t(o),n,b)}),XE=li(function(n,o,l,b){xr(o,dt(o),n,b)}),JE=zr(Nu);function QE(n,o){var l=ui(n);return o==null?l:Bd(l,o)}var e_=_e(function(n,o){n=Be(n);var l=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++l<b;)for(var A=o[l],P=$t(A),L=-1,B=P.length;++L<B;){var K=P[L],X=n[K];(X===r||dr(X,oi[K])&&!Fe.call(n,K))&&(n[K]=A[K])}return n}),t_=_e(function(n){return n.push(r,Op),Ft(ch,r,n)});function r_(n,o){return Sd(n,pe(o,3),wr)}function n_(n,o){return Sd(n,pe(o,3),ju)}function i_(n,o){return n==null?n:Fu(n,pe(o,3),$t)}function o_(n,o){return n==null?n:Zd(n,pe(o,3),$t)}function s_(n,o){return n&&wr(n,pe(o,3))}function a_(n,o){return n&&ju(n,pe(o,3))}function u_(n){return n==null?[]:Ss(n,dt(n))}function l_(n){return n==null?[]:Ss(n,$t(n))}function vl(n,o,l){var b=n==null?r:Cn(n,o);return b===r?l:b}function c_(n,o){return n!=null&&Pp(n,o,$1)}function yl(n,o){return n!=null&&Pp(n,o,L1)}var f_=xp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=ls.call(o)),n[o]=l},wl(Lt)),d_=xp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=ls.call(o)),Fe.call(n,o)?n[o].push(l):n[o]=[l]},pe),p_=_e(Bi);function dt(n){return It(n)?jd(n):Wu(n)}function $t(n){return It(n)?jd(n,!0):H1(n)}function h_(n,o){var l={};return o=pe(o,3),wr(n,function(b,_,A){Fr(l,o(b,_,A),b)}),l}function g_(n,o){var l={};return o=pe(o,3),wr(n,function(b,_,A){Fr(l,_,o(b,_,A))}),l}var m_=li(function(n,o,l){Es(n,o,l)}),ch=li(function(n,o,l,b){Es(n,o,l,b)}),v_=zr(function(n,o){var l={};if(n==null)return l;var b=!1;o=Ze(o,function(A){return A=un(A,n),b||(b=A.length>1),A}),xr(n,nl(n),l),b&&(l=er(l,h|d|y,fx));for(var _=o.length;_--;)Ku(l,o[_]);return l});function y_(n,o){return fh(n,Fs(pe(o)))}var b_=zr(function(n,o){return n==null?{}:Z1(n,o)});function fh(n,o){if(n==null)return{};var l=Ze(nl(n),function(b){return[b]});return o=pe(o),rp(n,l,function(b,_){return o(b,_[0])})}function w_(n,o,l){o=un(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var A=n==null?r:n[Sr(o[b])];A===r&&(b=_,A=l),n=Ur(A)?A.call(n):A}return n}function x_(n,o,l){return n==null?n:Wi(n,o,l)}function S_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,l,b)}var dh=_p(dt),ph=_p($t);function E_(n,o,l){var b=we(n),_=b||cn(n)||di(n);if(o=pe(o,4),l==null){var A=n&&n.constructor;_?l=b?new A:[]:Xe(n)?l=Ur(A)?ui(ds(n)):{}:l={}}return(_?Xt:wr)(n,function(P,L,B){return o(l,P,L,B)}),l}function __(n,o){return n==null?!0:Ku(n,o)}function T_(n,o,l){return n==null?n:ap(n,o,Ju(l))}function O_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:ap(n,o,Ju(l),b)}function pi(n){return n==null?[]:Cu(n,dt(n))}function A_(n){return n==null?[]:Cu(n,$t(n))}function R_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=nr(l),l=l===l?l:0),o!==r&&(o=nr(o),o=o===o?o:0),Pn(nr(n),o,l)}function P_(n,o,l){return o=Wr(o),l===r?(l=o,o=0):l=Wr(l),n=nr(n),M1(n,o,l)}function C_(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=Wr(n),o===r?(o=n,n=0):o=Wr(o)),n>o){var b=n;n=o,o=b}if(l||n%1||o%1){var _=Nd();return xt(n+_*(o-n+uw("1e-"+((_+"").length-1))),o)}return Zu(n,o)}var k_=ci(function(n,o,l){return o=o.toLowerCase(),n+(l?hh(o):o)});function hh(n){return bl(Ie(n).toLowerCase())}function gh(n){return n=Ie(n),n&&n.replace($b,xw).replace(Jb,"")}function I_(n,o,l){n=Ie(n),o=zt(o);var b=n.length;l=l===r?b:Pn(xe(l),0,b);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function $_(n){return n=Ie(n),n&&pb.test(n)?n.replace(Zf,Sw):n}function L_(n){return n=Ie(n),n&&bb.test(n)?n.replace(hu,"\\$&"):n}var M_=ci(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),D_=ci(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),N_=yp("toLowerCase");function F_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Ps(ms(_),l)+n+Ps(gs(_),l)}function j_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;return o&&b<o?n+Ps(o-b,l):n}function z_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;return o&&b<o?Ps(o-b,l)+n:n}function B_(n,o,l){return l||o==null?o=0:o&&(o=+o),Vw(Ie(n).replace(gu,""),o||0)}function U_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=xe(o),Gu(Ie(n),o)}function W_(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var H_=ci(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function q_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?Q:l>>>0,l?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!ml(o))&&(o=zt(o),!o&&ri(n))?ln(cr(n),0,l):n.split(o,l)):[]}var Z_=ci(function(n,o,l){return n+(l?" ":"")+bl(o)});function G_(n,o,l){return n=Ie(n),l=l==null?0:Pn(xe(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function V_(n,o,l){var b=O.templateSettings;l&&At(n,o,l)&&(o=r),n=Ie(n),o=Bs({},o,b,Tp);var _=Bs({},o.imports,b.imports,Tp),A=dt(_),P=Cu(_,A),L,B,K=0,X=o.interpolate||es,ee="__p += '",oe=Iu((o.escape||es).source+"|"+X.source+"|"+(X===Gf?Ab:es).source+"|"+(o.evaluate||es).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nw+"]")+`
|
|
185
|
+
`;n.replace(oe,function(ge,Te,Re,Ut,Rt,Wt){return Re||(Re=Ut),ee+=n.slice(K,Wt).replace(Lb,Ew),Te&&(L=!0,ee+=`' +
|
|
186
|
+
__e(`+Te+`) +
|
|
187
|
+
'`),Rt&&(B=!0,ee+=`';
|
|
188
|
+
`+Rt+`;
|
|
189
189
|
__p += '`),Re&&(ee+=`' +
|
|
190
190
|
((__t = (`+Re+`)) == null ? '' : __t) +
|
|
191
|
-
'`),
|
|
191
|
+
'`),K=Wt+ge.length,ge}),ee+=`';
|
|
192
192
|
`;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
|
|
193
193
|
`+ee+`
|
|
194
194
|
}
|
|
195
|
-
`;else if(
|
|
195
|
+
`;else if(Tb.test(he))throw new be(c);ee=(B?ee.replace(lb,""):ee).replace(cb,"$1").replace(fb,"$1;"),ee="function("+(he||"obj")+`) {
|
|
196
196
|
`+(he?"":`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 Se=oh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,sl(Se))throw Se;return Se}function R_(n){return ke(n).toLowerCase()}function P_(n){return ke(n).toUpperCase()}function C_(n,o,u){if(n=ke(n),n&&(u||o===r))return hd(n);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=ar(o),T=gd(y,_),P=md(y,_)+1;return on(y,T,P).join("")}function k_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.slice(0,yd(n)+1);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=md(y,ar(o))+1;return on(y,0,_).join("")}function $_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(su,"");if(!n||!(o=Nt(o)))return n;var y=ar(n),_=gd(y,ar(o));return on(y,_).join("")}function I_(n,o){var u=G,y=j;if(Ge(o)){var _="separator"in o?o.separator:_;u="length"in o?xe(o.length):u,y="omission"in o?Nt(o.omission):y}n=ke(n);var T=n.length;if(Xn(n)){var P=ar(n);T=P.length}if(u>=T)return n;var I=u-Jn(y);if(I<1)return y;var z=P?on(P,0,I).join(""):n.slice(0,I);if(_===r)return z+y;if(P&&(I+=z.length-I),al(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Eu(_.source,ke(Ff.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(Nt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+y}function L_(n){return n=ke(n),n&&q0.test(n)?n.replace(If,lw):n}var M_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),cl=sp("toUpperCase");function ih(n,o,u){return n=ke(n),o=u?r:o,o===r?iw(n)?dw(n):Vb(n):n.match(o)||[]}var oh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return sl(u)?u:new be(u)}}),F_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,il(n[u],n))}),n});function D_(n){var o=n==null?0:n.length,u=pe();return n=o?Be(n,function(y){if(typeof y[1]!="function")throw new Yt(l);return[u(y[0]),y[1]]}):[],_e(function(y){for(var _=-1;++_<o;){var T=n[_];if(Ft(T[0],this,y))return Ft(T[1],this,y)}})}function N_(n){return l1(Jt(n,g))}function fl(n){return function(){return n}}function j_(n,o){return n==null||n!==n?o:n}var z_=up(),W_=up(!0);function $t(n){return n}function dl(n){return Nd(typeof n=="function"?n:Jt(n,g))}function U_(n){return zd(Jt(n,g))}function B_(n,o){return Wd(n,Jt(o,g))}var H_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),q_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function pl(n,o,u){var y=ct(o),_=vs(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=vs(o,ct(o)));var T=!(Ge(u)&&"chain"in u)||!!u.chain,P=jr(n);return Vt(_,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__=Pt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,Jr([this.value()],arguments))})}),n}function Z_(){return dt._===this&&(dt._=yw),this}function hl(){}function G_(n){return n=xe(n),_e(function(o){return Ud(o,n)})}var K_=qu(Be),V_=qu(ld),Y_=qu(mu);function sh(n){return Ju(n)?vu(br(n)):A1(n)}function X_(n){return function(o){return n==null?r:An(n,o)}}var J_=cp(),Q_=cp(!0);function gl(){return[]}function ml(){return!1}function eO(){return{}}function tO(){return""}function rO(){return!0}function nO(n,o){if(n=xe(n),n<1||n>te)return[];var u=Q,y=bt(n,Q);o=pe(o),n-=Q;for(var _=wu(y,o);++u<n;)o(u);return _}function iO(n){return we(n)?Be(n,br):jt(n)?[n]:Pt(Ap(ke(n)))}function oO(n){var o=++mw;return ke(n)+o}var sO=Es(function(n,o){return n+o},0),aO=Zu("ceil"),uO=Es(function(n,o){return n/o},1),lO=Zu("floor");function cO(n){return n&&n.length?ms(n,$t,ku):r}function fO(n,o){return n&&n.length?ms(n,pe(o,2),ku):r}function dO(n){return dd(n,$t)}function pO(n,o){return dd(n,pe(o,2))}function hO(n){return n&&n.length?ms(n,$t,Mu):r}function gO(n,o){return n&&n.length?ms(n,pe(o,2),Mu):r}var mO=Es(function(n,o){return n*o},1),vO=Zu("round"),yO=Es(function(n,o){return n-o},0);function bO(n){return n&&n.length?bu(n,$t):0}function wO(n,o){return n&&n.length?bu(n,pe(o,2)):0}return A.after=US,A.ary=Dp,A.assign=PE,A.assignIn=Xp,A.assignInWith=Fs,A.assignWith=CE,A.at=kE,A.before=Np,A.bind=il,A.bindAll=F_,A.bindKey=jp,A.castArray=eE,A.chain=Lp,A.chunk=lx,A.compact=cx,A.concat=fx,A.cond=D_,A.conforms=N_,A.constant=fl,A.countBy=bS,A.create=$E,A.curry=zp,A.curryRight=Wp,A.debounce=Up,A.defaults=IE,A.defaultsDeep=LE,A.defer=BS,A.delay=HS,A.difference=dx,A.differenceBy=px,A.differenceWith=hx,A.drop=gx,A.dropRight=mx,A.dropRightWhile=vx,A.dropWhile=yx,A.fill=bx,A.filter=xS,A.flatMap=_S,A.flatMapDeep=OS,A.flatMapDepth=AS,A.flatten=Cp,A.flattenDeep=wx,A.flattenDepth=xx,A.flip=qS,A.flow=z_,A.flowRight=W_,A.fromPairs=Sx,A.functions=WE,A.functionsIn=UE,A.groupBy=TS,A.initial=_x,A.intersection=Ox,A.intersectionBy=Ax,A.intersectionWith=Tx,A.invert=HE,A.invertBy=qE,A.invokeMap=PS,A.iteratee=dl,A.keyBy=CS,A.keys=ct,A.keysIn=kt,A.map=Cs,A.mapKeys=GE,A.mapValues=KE,A.matches=U_,A.matchesProperty=B_,A.memoize=$s,A.merge=VE,A.mergeWith=Jp,A.method=H_,A.methodOf=q_,A.mixin=pl,A.negate=Is,A.nthArg=G_,A.omit=YE,A.omitBy=XE,A.once=ZS,A.orderBy=kS,A.over=K_,A.overArgs=GS,A.overEvery=V_,A.overSome=Y_,A.partial=ol,A.partialRight=Bp,A.partition=$S,A.pick=JE,A.pickBy=Qp,A.property=sh,A.propertyOf=X_,A.pull=kx,A.pullAll=$p,A.pullAllBy=$x,A.pullAllWith=Ix,A.pullAt=Lx,A.range=J_,A.rangeRight=Q_,A.rearg=KS,A.reject=MS,A.remove=Mx,A.rest=VS,A.reverse=rl,A.sampleSize=DS,A.set=e_,A.setWith=t_,A.shuffle=NS,A.slice=Fx,A.sortBy=WS,A.sortedUniq=Bx,A.sortedUniqBy=Hx,A.split=__,A.spread=YS,A.tail=qx,A.take=Zx,A.takeRight=Gx,A.takeRightWhile=Kx,A.takeWhile=Vx,A.tap=cS,A.throttle=XS,A.thru=Ps,A.toArray=Kp,A.toPairs=eh,A.toPairsIn=th,A.toPath=iO,A.toPlainObject=Yp,A.transform=r_,A.unary=JS,A.union=Yx,A.unionBy=Xx,A.unionWith=Jx,A.uniq=Qx,A.uniqBy=eS,A.uniqWith=tS,A.unset=n_,A.unzip=nl,A.unzipWith=Ip,A.update=i_,A.updateWith=o_,A.values=ui,A.valuesIn=s_,A.without=rS,A.words=ih,A.wrap=QS,A.xor=nS,A.xorBy=iS,A.xorWith=oS,A.zip=sS,A.zipObject=aS,A.zipObjectDeep=uS,A.zipWith=lS,A.entries=eh,A.entriesIn=th,A.extend=Xp,A.extendWith=Fs,pl(A,A),A.add=sO,A.attempt=oh,A.camelCase=c_,A.capitalize=rh,A.ceil=aO,A.clamp=a_,A.clone=tE,A.cloneDeep=nE,A.cloneDeepWith=iE,A.cloneWith=rE,A.conformsTo=oE,A.deburr=nh,A.defaultTo=j_,A.divide=uO,A.endsWith=f_,A.eq=lr,A.escape=d_,A.escapeRegExp=p_,A.every=wS,A.find=SS,A.findIndex=Rp,A.findKey=ME,A.findLast=ES,A.findLastIndex=Pp,A.findLastKey=FE,A.floor=lO,A.forEach=Mp,A.forEachRight=Fp,A.forIn=DE,A.forInRight=NE,A.forOwn=jE,A.forOwnRight=zE,A.get=ul,A.gt=sE,A.gte=aE,A.has=BE,A.hasIn=ll,A.head=kp,A.identity=$t,A.includes=RS,A.indexOf=Ex,A.inRange=u_,A.invoke=ZE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=uE,A.isArrayLike=Ct,A.isArrayLikeObject=tt,A.isBoolean=lE,A.isBuffer=sn,A.isDate=cE,A.isElement=fE,A.isEmpty=dE,A.isEqual=pE,A.isEqualWith=hE,A.isError=sl,A.isFinite=gE,A.isFunction=jr,A.isInteger=Hp,A.isLength=Ls,A.isMap=qp,A.isMatch=mE,A.isMatchWith=vE,A.isNaN=yE,A.isNative=bE,A.isNil=xE,A.isNull=wE,A.isNumber=Zp,A.isObject=Ge,A.isObjectLike=Je,A.isPlainObject=Wi,A.isRegExp=al,A.isSafeInteger=SE,A.isSet=Gp,A.isString=Ms,A.isSymbol=jt,A.isTypedArray=ai,A.isUndefined=EE,A.isWeakMap=_E,A.isWeakSet=OE,A.join=Rx,A.kebabCase=h_,A.last=er,A.lastIndexOf=Px,A.lowerCase=g_,A.lowerFirst=m_,A.lt=AE,A.lte=TE,A.max=cO,A.maxBy=fO,A.mean=dO,A.meanBy=pO,A.min=hO,A.minBy=gO,A.stubArray=gl,A.stubFalse=ml,A.stubObject=eO,A.stubString=tO,A.stubTrue=rO,A.multiply=mO,A.nth=Cx,A.noConflict=Z_,A.noop=hl,A.now=ks,A.pad=v_,A.padEnd=y_,A.padStart=b_,A.parseInt=w_,A.random=l_,A.reduce=IS,A.reduceRight=LS,A.repeat=x_,A.replace=S_,A.result=QE,A.round=vO,A.runInContext=N,A.sample=FS,A.size=jS,A.snakeCase=E_,A.some=zS,A.sortedIndex=Dx,A.sortedIndexBy=Nx,A.sortedIndexOf=jx,A.sortedLastIndex=zx,A.sortedLastIndexBy=Wx,A.sortedLastIndexOf=Ux,A.startCase=O_,A.startsWith=A_,A.subtract=yO,A.sum=bO,A.sumBy=wO,A.template=T_,A.times=nO,A.toFinite=zr,A.toInteger=xe,A.toLength=Vp,A.toLower=R_,A.toNumber=tr,A.toSafeInteger=RE,A.toString=ke,A.toUpper=P_,A.trim=C_,A.trimEnd=k_,A.trimStart=$_,A.truncate=I_,A.unescape=L_,A.uniqueId=oO,A.upperCase=M_,A.upperFirst=cl,A.each=Mp,A.eachRight=Fp,A.first=kp,pl(A,(function(){var n={};return vr(A,function(o,u){Fe.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Vt(["drop","take"],function(n,o){Te.prototype[n]=function(u){u=u===r?1:at(xe(u),0);var y=this.__filtered__&&!o?new Te(this):this.clone();return y.__filtered__?y.__takeCount__=bt(u,y.__takeCount__):y.__views__.push({size:bt(u,Q),type:n+(y.__dir__<0?"Right":"")}),y},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Vt(["filter","map","takeWhile"],function(n,o){var u=o+1,y=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||y,T}}),Vt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),Vt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter($t)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(u){return Mi(u,n,o)})}),Te.prototype.reject=function(n){return this.filter(Is(pe(n)))},Te.prototype.slice=function(n,o){n=xe(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=xe(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},vr(Te.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),_=A[y?"take"+(o=="last"?"Right":""):o],T=y||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=y?[1]:arguments,z=P instanceof Te,V=I[0],X=z||we(P),ee=function(Oe){var Re=_.apply(A,Jr([Oe],I));return y&&oe?Re[0]:Re};X&&u&&typeof V=="function"&&V.length!=1&&(z=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=z&&!le;if(!T&&X){P=Se?P:new Te(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Ps,args:[ee],thisArg:r}),new Xt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?y?ge.value()[0]:ge.value():ge)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ts[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(y&&!this.__chain__){var T=this.value();return o.apply(we(T)?T:[],_)}return this[u](function(P){return o.apply(we(P)?P:[],_)})}}),vr(Te.prototype,function(n,o){var u=A[o];if(u){var y=u.name+"";Fe.call(ri,y)||(ri[y]=[]),ri[y].push({name:o,func:u})}}),ri[Ss(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=Lw,Te.prototype.reverse=Mw,Te.prototype.value=Fw,A.prototype.at=fS,A.prototype.chain=dS,A.prototype.commit=pS,A.prototype.next=hS,A.prototype.plant=mS,A.prototype.reverse=vS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=yS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=gS),A}),Qn=pw();xn?((xn.exports=Qn)._=Qn,du._=Qn):dt._=Qn}).call(t$)})(go,go.exports)),go.exports}var Ve=r$();const _c={FdSave:et.FdSave,FdWarningDanger:et.FdWarningDanger,FdInfoCircle:et.FdInfoCircle,FdInfoBold:et.FdInfoBold};var hf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(hf||{}),zn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(zn||{}),pi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(pi||{});const Ry={[zn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[zn.DANGER]:{icon:"red-500",button:"primary-dark"},[zn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=Ry[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return M.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},n$=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=_c[e]||_c.FdInfoCircle,s=`text-${Ry[t].icon}`;return M.jsx(i,{className:We(r,s)})},i$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:l=3e3,views:c,width:f=520,hasOverlay:v=!0,container:m,onClose:g,onEdit:p})=>{const b=w=>{g({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&b(pi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ve.merge(Ve.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=Ve.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),p({id:e,views:S})};return Do.createPortal(M.jsx(wa,{appear:!0,show:!0,as:W.Fragment,children:M.jsx("div",{className:We("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>b(pi.CANCELED),children:M.jsx(wa.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:M.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:M.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?M.jsx("div",{className:"flex items-center justify-center",children:M.jsx(n$,{name:i,color:a,className:"w-6 h-6"})}):null,M.jsx(o$,{condition:t,children:M.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),M.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),M.jsx("div",{className:"text-xs text-white",children:Ve.values(c==null?void 0:c.toggles).map(w=>M.jsx("div",{children:M.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[M.jsx(py,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),M.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),M.jsx(s$,{warnings:x}),M.jsx("div",{className:"flex items-center gap-4",children:s===hf.CONFIRM?M.jsxs(M.Fragment,{children:[M.jsx(Vl,{autoFocus:!0,color:a,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),M.jsx(Vl,{color:a,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):M.jsx(Vl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),m||document.body)},o$=e=>e.condition?M.jsx(M.Fragment,{children:e.children}):null,s$=e=>e.warnings?M.jsx(wa,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:M.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)=>M.jsx(wa.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:M.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[M.jsx(et.FdWarningDanger,{className:We({"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")}),M.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Py=(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))(Py||{});const a$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>M.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[M.jsx(et.FdMinusNaked,{onClick:s,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),M.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),M.jsx(et.FdPlusNaked,{onClick:i,className:We("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),u$=$.forwardRef(((e,t)=>$.createElement(yn.span,Xe({},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}})))),l$=u$;function pm(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[Cy]=Kc("Tooltip",[Na]),gf=Na(),c$=700,[bM,f$]=Cy("TooltipProvider",{isOpenDelayed:!0,delayDuration:c$,onOpen:()=>{},onClose:()=>{}}),[d$,Ha]=Cy("Tooltip"),p$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:l}=e,c=f$("Tooltip",t),f=gf(t),[v,m]=$.useState(null),g=Cv(),p=$.useRef(0),b=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=Uv({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(k)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),b)}),[b,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(jv,f,$.createElement(d$,{scope:t,contentId:g,open:h,stateAttribute:E,trigger:v,onTriggerChange:m,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),w()}),[S,w])},r))},h$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ha("TooltipTrigger",r),a=gf(r),l=vn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(zv,Xe({asChild:!0},a),$.createElement(yn.button,Xe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:l,onMouseEnter:Bt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:Bt(e.onMouseLeave,s.onClose),onMouseDown:Bt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Bt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:Bt(e.onBlur,s.onClose),onClick:Bt(e.onClick,(v=>{v.detail===0&&s.onClose()}))})))})),g$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ha("TooltipContent",e.__scopeTooltip);return $.createElement(Zc,{present:r||s.open},$.createElement(m$,Xe({ref:t},i)))})),m$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...l}=e,c=Ha("TooltipContent",r),f=gf(r),v=a?Gc:$.Fragment,{onClose:m}=c;return Lv((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(v,null,$.createElement(v$,{__scopeTooltip:r}),$.createElement(Wv,Xe({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(Iv,null,i),$.createElement(l$,{id:c.contentId,role:"tooltip"},s||i)))}));function v$(e){const{__scopeTooltip:t}=e,r=Ha("CheckTriggerMoved",t),i=Fv(r.trigger),s=i==null?void 0:i.left,a=pm(s),l=i==null?void 0:i.top,c=pm(l),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==l)&&f()}),[f,a,c,s,l]),null}const y$=p$,b$=h$,w$=g$;function x$(e){return M.jsxs(y$,{delayDuration:e.delayDuration,open:e.open,children:[M.jsx(b$,{tabIndex:-1,asChild:!0,children:M.jsx("span",{children:e.children})}),M.jsxs(w$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&M.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 In=30,da=500,S$=()=>M.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),E$=e=>{const[t,r]=W.useState(In),i=W.useRef(),s=t>In,a=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!s&&r(da),!e.isOpen&&s&&r(In)},[e.isOpen]),M.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[M.jsx(EO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:In,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?In:da):i.current=Date.now()},onResize:(l,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var v;(v=e.onResize)==null||v.call(e),a.current=null})},onResizeStop:(l,c,f,v)=>{r(t+v.height)},handleComponent:{top:M.jsx(S$,{})}}),M.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ve.kebabCase(e.path)}`,children:[M.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[M.jsxs("div",{className:"group flex items-center justify-start",children:[M.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),M.jsx("span",{}),e.tipKey?M.jsx(ty,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,M.jsx("button",{"data-cy":`contextualPanel-toggle-button-${s?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(In),e.onClose()):(r(da),e.onOpen())},children:s?M.jsx(et.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):M.jsx(et.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),M.jsxs(ua,{of:s,children:[M.jsx(ua,{of:e.render,children:e.render}),M.jsx(ua,{of:!e.render,children:e.children})]})]})]})};function ky({children:e,viewBox:t="0 0 24 24",...r}){return M.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function $y(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return M.jsx(ky,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function _$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:l,...c}){const f=W.useRef(null),v=i||M.jsx($y,{}),m=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=m||t,p=["base-checkbox-container",a].join(" ");return M.jsxs("label",{className:p,style:l,"data-invalid":r,children:[M.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...c,"aria-invalid":r||void 0}),M.jsx("span",{className:"base-checkbox-control",children:g&&v&&W.cloneElement(v,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&M.jsx("span",{className:"base-checkbox-label",children:s})]})}const O$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s})=>M.jsx("div",{className:"flex h-full w-full items-center justify-center",children:M.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[M.jsxs("div",{className:"relative",children:[M.jsx(et.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),M.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"})]}),M.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),M.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),M.jsxs("div",{className:"flex gap-4",children:[i&&M.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&&M.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:"Reset Page"}),r&&M.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 A$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Yl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function fo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Iy(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 Ly(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 T$(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 Po={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,"-":Yl?173:189,"=":Yl?61:187,";":Yl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},gr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},mo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ye={};for(let e=1;e<20;e++)Po["f".concat(e)]=111+e;let qe=[],Oo=null,My="all";const Br=new Map,_i=e=>Po[e.toLowerCase()]||gr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),R$=e=>Object.keys(Po).find(t=>Po[t]===e),P$=e=>Object.keys(gr).find(t=>gr[t]===e);function Fy(e){My=e||"all"}function Co(){return My||"all"}function C$(){return qe.slice(0)}function k$(){return qe.map(e=>R$(e)||P$(e)||String.fromCharCode(e))}function $$(){const e=[];return Object.keys(Ye).forEach(t=>{Ye[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:i.split("+").map(c=>_i(c))})})}),e}function I$(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 L$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function M$(e,t){let r,i;e||(e=Co());for(const s in Ye)if(Object.prototype.hasOwnProperty.call(Ye,s))for(r=Ye[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return mf(c)}):i++;Co()===e&&Fy(t||"all")}function F$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_i(e.key));const r=qe.indexOf(t);if(r>=0&&qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const i in gr)gr[i]===t&&(hr[i]=!1)}}function Dy(e){if(typeof e>"u")Object.keys(Ye).forEach(s=>{Array.isArray(Ye[s])&&Ye[s].forEach(a=>ea(a)),delete Ye[s]}),mf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&ea(s)});else if(typeof e=="object")e.key&&ea(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=""),ea({key:e,scope:s,method:a,splitKey:"+"})}}const ea=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Ly(t).forEach(l=>{const c=l.split(s),f=c.length,v=c[f-1],m=v==="*"?"*":_i(v);if(!Ye[m])return;r||(r=Co());const g=f>1?Iy(gr,c):[],p=[];Ye[m]=Ye[m].filter(b=>{const d=(i?b.method===i:!0)&&b.scope===r&&T$(b.mods,g);return d&&p.push(b.element),!d}),p.forEach(b=>mf(b))})};function hm(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 gt)Object.prototype.hasOwnProperty.call(gt,a)&&(!gt[a]&&t.mods.indexOf(+a)>-1||gt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function gm(e,t){const r=Ye["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!hr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),qe.indexOf(i)===-1&&i!==229&&qe.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=mo[c];e[c]&&qe.indexOf(f)===-1?qe.push(f):!e[c]&&qe.indexOf(f)>-1?qe.splice(qe.indexOf(f),1):c==="metaKey"&&e[c]&&(qe=qe.filter(v=>v in mo||v===i))}),i in gt){gt[i]=!0;for(const c in gr)if(Object.prototype.hasOwnProperty.call(gr,c)){const f=mo[gr[c]];hr[c]=e[f]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[mo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),gt[17]=!0,gt[18]=!0);const s=Co();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)&&hm(e,r[c],s,t);if(!(i in Ye))return;const a=Ye[i],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:v}=f,m=f.key.split(v),g=[];for(let p=0;p<m.length;p++)g.push(_i(m[p]));g.sort().join("")===qe.sort().join("")&&hm(e,f,s,t)}}function hr(e,t,r){qe=[];const i=Ly(e);let s=[],a="all",l=document,c=0,f=!1,v=!0,m="+",g=!1,p=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(a=t),p&&Dy(e,a);c<i.length;c++)e=i[c].split(m),s=[],e.length>1&&(s=Iy(gr,e)),e=e[e.length-1],e=e==="*"?"*":_i(e),e in Ye||(Ye[e]=[]),Ye[e].push({keyup:f,keydown:v,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:m,element:l});if(typeof l<"u"&&window){if(!Br.has(l)){const b=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return gm(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;gm(d,l),F$(d)};Br.set(l,{keydownListener:b,keyupListenr:x,capture:g}),Xl(l,"keydown",b,g),Xl(l,"keyup",x,g)}if(!Oo){const b=()=>{qe=[]};Oo={listener:b,capture:g},Xl(window,"focus",b,g)}}}function D$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ye).forEach(r=>{Ye[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function mf(e){const t=Object.values(Ye).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Br.get(e)||{};i&&s&&(fo(e,"keyup",s,a),fo(e,"keydown",i,a),Br.delete(e))}if((t.length<=0||Br.size<=0)&&(Object.keys(Br).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Br.get(s)||{};a&&l&&(fo(s,"keyup",l,c),fo(s,"keydown",a,c),Br.delete(s))}),Br.clear(),Object.keys(Ye).forEach(s=>delete Ye[s]),Oo)){const{listener:s,capture:a}=Oo;fo(window,"focus",s,a),Oo=null}}const Jl={getPressedKeyString:k$,setScope:Fy,getScope:Co,deleteScope:M$,getPressedKeyCodes:C$,getAllKeyCodes:$$,isPressed:L$,filter:I$,trigger:D$,unbind:Dy,keyMap:Po,modifier:gr,modifierMap:mo};for(const e in Jl)Object.prototype.hasOwnProperty.call(Jl,e)&&(hr[e]=Jl[e]);if(typeof window<"u"){const e=window.hotkeys;hr.noConflict=t=>(t&&window.hotkeys===hr&&(window.hotkeys=e),hr),window.hotkeys=hr}hr.filter=()=>!0;function N$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,a)};W.useEffect(()=>(hr(e,r,a),l),[e,r,a])}const j$=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function z$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function W$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function U$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function B$(e){const[t,r]=W.useState(e),i=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Ny=W.createContext(""),H$=e=>M.jsx(Ny.Provider,{value:e.value,children:e.children}),q$=()=>{const e=W.useContext(Ny);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Z$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>G$(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function G$(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ve.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const K$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function mt(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=tI[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Si(e){return!!e&&!!e[qt]}function Hn(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)===rI})(e)||Array.isArray(e)||!!e[Em]||!!(!((t=e.constructor)===null||t===void 0)&&t[Em])||vf(e)||yf(e))}function ko(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:Sf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vf(e)?2:yf(e)?3:0}function Oc(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function V$(e,t){return Oi(e)===2?e.get(t):e[t]}function jy(e,t,r){var i=Oi(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Y$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vf(e){return Q$&&e instanceof Map}function yf(e){return eI&&e instanceof Set}function Ln(e){return e.o||e.t}function bf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nI(e);delete t[qt];for(var r=Sf(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 $o(e,t){return t===void 0&&(t=!1),wf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=X$),Object.freeze(e),t&&ko(e,(function(r,i){return $o(i,!0)}),!0)),e}function X$(){mt(2)}function wf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=iI[e];return t||mt(18,e),t}function mm(){return process.env.NODE_ENV==="production"||Ei||mt(0),Ei}function Ql(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function _a(e){Ac(e),e.p.forEach(J$),e.p=null}function Ac(e){e===Ei&&(Ei=e.l)}function vm(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function J$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function ec(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Rr("ES5").S(t,e,i),i?(r[qt].P&&(_a(t),mt(4)),Hn(e)&&(e=Oa(t,e),t.l||Aa(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=Oa(t,r,[]),_a(t),t.u&&t.v(t.u,t.s),e!==Wy?e:void 0}function Oa(e,t,r){if(wf(t))return t;var i=t[qt];if(!i)return ko(t,(function(c,f){return ym(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Aa(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=bf(i.k):i.o,a=s,l=!1;i.i===3&&(a=new Set(s),s.clear(),l=!0),ko(a,(function(c,f){return ym(e,i,s,c,f,r,l)})),Aa(e,s,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function ym(e,t,r,i,s,a,l){if(process.env.NODE_ENV!=="production"&&s===r&&mt(5),Si(s)){var c=Oa(e,s,a&&t&&t.i!==3&&!Oc(t.R,i)?a.concat(i):void 0);if(jy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(s);if(Hn(s)&&!wf(s)){if(!e.h.D&&e._<1)return;Oa(e,s),t&&t.A.l||Aa(e,s)}}function Aa(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&$o(t,r)}function tc(e,t){var r=e[qt];return(r?Ln(r):e)[t]}function bm(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 Tc(e){e.P||(e.P=!0,e.l&&Tc(e.l))}function rc(e){e.o||(e.o=bf(e.t))}function Rc(e,t,r){var i=vf(t)?Rr("MapSet").F(t,r):yf(t)?Rr("MapSet").T(t,r):e.O?(function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:mm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,v=Pc;l&&(f=[c],v=vo);var m=Proxy.revocable(f,v),g=m.revoke,p=m.proxy;return c.k=p,c.j=g,p})(t,r):Rr("ES5").J(t,r);return(r?r.A:mm()).p.push(i),i}function zy(e){return Si(e)||mt(22,e),(function t(r){if(!Hn(r))return r;var i,s=r[qt],a=Oi(r);if(s){if(!s.P&&(s.i<4||!Rr("ES5").K(s)))return s.t;s.I=!0,i=wm(r,a),s.I=!1}else i=wm(r,a);return ko(i,(function(l,c){s&&V$(s.t,l)===c||jy(i,l,t(c))})),a===3?new Set(i):i})(e)}function wm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bf(e)}var xm,Ei,xf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Q$=typeof Map<"u",eI=typeof Set<"u",Sm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wy=xf?Symbol.for("immer-nothing"):((xm={})["immer-nothing"]=!0,xm),Em=xf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=xf?Symbol.for("immer-state"):"__$immer_state",tI={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"},rI=""+Object.prototype.constructor,Sf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,nI=Object.getOwnPropertyDescriptors||function(e){var t={};return Sf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},iI={},Pc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!Oc(r,t))return(function(s,a,l){var c,f=bm(a,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Hn(i)?i:i===tc(e.t,t)?(rc(e),e.o[t]=Rc(e.A.h,i,e)):i},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,r){var i=bm(Ln(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=tc(Ln(e),t),a=s==null?void 0:s[qt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Y$(r,s)&&(r!==void 0||Oc(e.t,t)))return!0;rc(e),Tc(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 tc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,rc(e),Tc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ln(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mt(12)}},vo={};ko(Pc,(function(e,t){vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&mt(13),vo.set.call(this,e,t,void 0)},vo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&mt(14),Pc.set.call(this,e[0],t,r,e[0])};var oI=(function(){function e(r){var i=this;this.O=Sm,this.D=!0,this.produce=function(s,a,l){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var v;if(typeof a!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),Hn(s)){var m=vm(i),g=Rc(i,s,void 0),p=!0;try{v=a(g),p=!1}finally{p?_a(m):Ac(m)}return typeof Promise<"u"&&v instanceof Promise?v.then((function(d){return Ql(m,l),ec(d,m)}),(function(d){throw _a(m),d})):(Ql(m,l),ec(v,m))}if(!s||typeof s!="object"){if((v=a(s))===void 0&&(v=s),v===Wy&&(v=void 0),i.D&&$o(v,!0),l){var b=[],x=[];Rr("Patches").M(s,v,b,x),l(b,x)}return v}mt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(v){for(var m=arguments.length,g=Array(m>1?m-1:0),p=1;p<m;p++)g[p-1]=arguments[p];return i.produceWithPatches(v,(function(b){return s.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(s,a,(function(v,m){l=v,c=m}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return[v,l,c]})):[f,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Hn(r)||mt(8),Si(r)&&(r=zy(r));var i=vm(this),s=Rc(this,r,void 0);return s[qt].C=!0,Ac(i),s},t.finishDraft=function(r,i){var s=r&&r[qt];process.env.NODE_ENV!=="production"&&(s&&s.C||mt(9),s.I&&mt(10));var a=s.A;return Ql(a,i),ec(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Sm&&mt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new oI,sI=Zt.produce;Zt.produceWithPatches.bind(Zt);Zt.setAutoFreeze.bind(Zt);Zt.setUseProxies.bind(Zt);Zt.applyPatches.bind(Zt);Zt.createDraft.bind(Zt);Zt.finishDraft.bind(Zt);function aI(e){var t=W.useState(function(){return $o(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?sI(i):$o(i))},[])]}const uI=process.env.NODE_ENV==="development",nc=uI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,lI=(e,t,r)=>{const[i,s]=aI(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=nc==null?void 0:nc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var v,m;(m=(v=a.current)==null?void 0:v.disconnect)==null||m.call(v)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,v)=>({...f,[v]:m=>(s(g=>{var p;l[v](g,m),(p=a.current)==null||p.send({type:l[v].name},zy(g))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Zr(e){return typeof e=="function"}function Uy(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 ic=Uy(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
201
|
+
}`;var Se=vh(function(){return Ce(A,le+"return "+ee).apply(r,P)});if(Se.source=ee,gl(Se))throw Se;return Se}function K_(n){return Ie(n).toLowerCase()}function Y_(n){return Ie(n).toUpperCase()}function X_(n,o,l){if(n=Ie(n),n&&(l||o===r))return Od(n);if(!n||!(o=zt(o)))return n;var b=cr(n),_=cr(o),A=Ad(b,_),P=Rd(b,_)+1;return ln(b,A,P).join("")}function J_(n,o,l){if(n=Ie(n),n&&(l||o===r))return n.slice(0,Cd(n)+1);if(!n||!(o=zt(o)))return n;var b=cr(n),_=Rd(b,cr(o))+1;return ln(b,0,_).join("")}function Q_(n,o,l){if(n=Ie(n),n&&(l||o===r))return n.replace(gu,"");if(!n||!(o=zt(o)))return n;var b=cr(n),_=Ad(b,cr(o));return ln(b,_).join("")}function eT(n,o){var l=G,b=j;if(Xe(o)){var _="separator"in o?o.separator:_;l="length"in o?xe(o.length):l,b="omission"in o?zt(o.omission):b}n=Ie(n);var A=n.length;if(ri(n)){var P=cr(n);A=P.length}if(l>=A)return n;var L=l-ni(b);if(L<1)return b;var B=P?ln(P,0,L).join(""):n.slice(0,L);if(_===r)return B+b;if(P&&(L+=B.length-L),ml(_)){if(n.slice(L).search(_)){var K,X=B;for(_.global||(_=Iu(_.source,Ie(Vf.exec(_))+"g")),_.lastIndex=0;K=_.exec(X);)var ee=K.index;B=B.slice(0,ee===r?L:ee)}}else if(n.indexOf(zt(_),L)!=L){var oe=B.lastIndexOf(_);oe>-1&&(B=B.slice(0,oe))}return B+b}function tT(n){return n=Ie(n),n&&db.test(n)?n.replace(qf,Cw):n}var rT=ci(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),bl=yp("toUpperCase");function mh(n,o,l){return n=Ie(n),o=l?r:o,o===r?Tw(n)?$w(n):mw(n):n.match(o)||[]}var vh=_e(function(n,o){try{return Ft(n,r,o)}catch(l){return gl(l)?l:new be(l)}}),nT=zr(function(n,o){return Xt(o,function(l){l=Sr(l),Fr(n,l,pl(n[l],n))}),n});function iT(n){var o=n==null?0:n.length,l=pe();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Jt(u);return[l(b[0]),b[1]]}):[],_e(function(b){for(var _=-1;++_<o;){var A=n[_];if(Ft(A[0],this,b))return Ft(A[1],this,b)}})}function oT(n){return C1(er(n,h))}function wl(n){return function(){return n}}function sT(n,o){return n==null||n!==n?o:n}var aT=wp(),uT=wp(!0);function Lt(n){return n}function xl(n){return Yd(typeof n=="function"?n:er(n,h))}function lT(n){return Jd(er(n,h))}function cT(n,o){return Qd(n,er(o,h))}var fT=_e(function(n,o){return function(l){return Bi(l,n,o)}}),dT=_e(function(n,o){return function(l){return Bi(n,l,o)}});function Sl(n,o,l){var b=dt(o),_=Ss(o,b);l==null&&!(Xe(o)&&(_.length||!b.length))&&(l=o,o=n,n=this,_=Ss(o,dt(o)));var A=!(Xe(l)&&"chain"in l)||!!l.chain,P=Ur(n);return Xt(_,function(L){var B=o[L];n[L]=B,P&&(n.prototype[L]=function(){var K=this.__chain__;if(A||K){var X=n(this.__wrapped__),ee=X.__actions__=kt(this.__actions__);return ee.push({func:B,args:arguments,thisArg:n}),X.__chain__=K,X}return B.apply(n,rn([this.value()],arguments))})}),n}function pT(){return ht._===this&&(ht._=jw),this}function El(){}function hT(n){return n=xe(n),_e(function(o){return ep(o,n)})}var gT=el(Ze),mT=el(xd),vT=el(Tu);function yh(n){return al(n)?Ou(Sr(n)):G1(n)}function yT(n){return function(o){return n==null?r:Cn(n,o)}}var bT=Sp(),wT=Sp(!0);function _l(){return[]}function Tl(){return!1}function xT(){return{}}function ST(){return""}function ET(){return!0}function _T(n,o){if(n=xe(n),n<1||n>te)return[];var l=Q,b=xt(n,Q);o=pe(o),n-=Q;for(var _=Pu(b,o);++l<n;)o(l);return _}function TT(n){return we(n)?Ze(n,Sr):Bt(n)?[n]:kt(Fp(Ie(n)))}function OT(n){var o=++Nw;return Ie(n)+o}var AT=Rs(function(n,o){return n+o},0),RT=tl("ceil"),PT=Rs(function(n,o){return n/o},1),CT=tl("floor");function kT(n){return n&&n.length?xs(n,Lt,zu):r}function IT(n,o){return n&&n.length?xs(n,pe(o,2),zu):r}function $T(n){return _d(n,Lt)}function LT(n,o){return _d(n,pe(o,2))}function MT(n){return n&&n.length?xs(n,Lt,Hu):r}function DT(n,o){return n&&n.length?xs(n,pe(o,2),Hu):r}var NT=Rs(function(n,o){return n*o},1),FT=tl("round"),jT=Rs(function(n,o){return n-o},0);function zT(n){return n&&n.length?Ru(n,Lt):0}function BT(n,o){return n&&n.length?Ru(n,pe(o,2)):0}return O.after=lE,O.ary=Kp,O.assign=YE,O.assignIn=lh,O.assignInWith=Bs,O.assignWith=XE,O.at=JE,O.before=Yp,O.bind=pl,O.bindAll=nT,O.bindKey=Xp,O.castArray=xE,O.chain=Zp,O.chunk=Cx,O.compact=kx,O.concat=Ix,O.cond=iT,O.conforms=oT,O.constant=wl,O.countBy=zS,O.create=QE,O.curry=Jp,O.curryRight=Qp,O.debounce=eh,O.defaults=e_,O.defaultsDeep=t_,O.defer=cE,O.delay=fE,O.difference=$x,O.differenceBy=Lx,O.differenceWith=Mx,O.drop=Dx,O.dropRight=Nx,O.dropRightWhile=Fx,O.dropWhile=jx,O.fill=zx,O.filter=US,O.flatMap=qS,O.flatMapDeep=ZS,O.flatMapDepth=GS,O.flatten=Up,O.flattenDeep=Bx,O.flattenDepth=Ux,O.flip=dE,O.flow=aT,O.flowRight=uT,O.fromPairs=Wx,O.functions=u_,O.functionsIn=l_,O.groupBy=VS,O.initial=qx,O.intersection=Zx,O.intersectionBy=Gx,O.intersectionWith=Vx,O.invert=f_,O.invertBy=d_,O.invokeMap=YS,O.iteratee=xl,O.keyBy=XS,O.keys=dt,O.keysIn=$t,O.map=Ms,O.mapKeys=h_,O.mapValues=g_,O.matches=lT,O.matchesProperty=cT,O.memoize=Ns,O.merge=m_,O.mergeWith=ch,O.method=fT,O.methodOf=dT,O.mixin=Sl,O.negate=Fs,O.nthArg=hT,O.omit=v_,O.omitBy=y_,O.once=pE,O.orderBy=JS,O.over=gT,O.overArgs=hE,O.overEvery=mT,O.overSome=vT,O.partial=hl,O.partialRight=th,O.partition=QS,O.pick=b_,O.pickBy=fh,O.property=yh,O.propertyOf=yT,O.pull=Jx,O.pullAll=Hp,O.pullAllBy=Qx,O.pullAllWith=eS,O.pullAt=tS,O.range=bT,O.rangeRight=wT,O.rearg=gE,O.reject=rE,O.remove=rS,O.rest=mE,O.reverse=fl,O.sampleSize=iE,O.set=x_,O.setWith=S_,O.shuffle=oE,O.slice=nS,O.sortBy=uE,O.sortedUniq=cS,O.sortedUniqBy=fS,O.split=q_,O.spread=vE,O.tail=dS,O.take=pS,O.takeRight=hS,O.takeRightWhile=gS,O.takeWhile=mS,O.tap=kS,O.throttle=yE,O.thru=Ls,O.toArray=sh,O.toPairs=dh,O.toPairsIn=ph,O.toPath=TT,O.toPlainObject=uh,O.transform=E_,O.unary=bE,O.union=vS,O.unionBy=yS,O.unionWith=bS,O.uniq=wS,O.uniqBy=xS,O.uniqWith=SS,O.unset=__,O.unzip=dl,O.unzipWith=qp,O.update=T_,O.updateWith=O_,O.values=pi,O.valuesIn=A_,O.without=ES,O.words=mh,O.wrap=wE,O.xor=_S,O.xorBy=TS,O.xorWith=OS,O.zip=AS,O.zipObject=RS,O.zipObjectDeep=PS,O.zipWith=CS,O.entries=dh,O.entriesIn=ph,O.extend=lh,O.extendWith=Bs,Sl(O,O),O.add=AT,O.attempt=vh,O.camelCase=k_,O.capitalize=hh,O.ceil=RT,O.clamp=R_,O.clone=SE,O.cloneDeep=_E,O.cloneDeepWith=TE,O.cloneWith=EE,O.conformsTo=OE,O.deburr=gh,O.defaultTo=sT,O.divide=PT,O.endsWith=I_,O.eq=dr,O.escape=$_,O.escapeRegExp=L_,O.every=BS,O.find=WS,O.findIndex=zp,O.findKey=r_,O.findLast=HS,O.findLastIndex=Bp,O.findLastKey=n_,O.floor=CT,O.forEach=Gp,O.forEachRight=Vp,O.forIn=i_,O.forInRight=o_,O.forOwn=s_,O.forOwnRight=a_,O.get=vl,O.gt=AE,O.gte=RE,O.has=c_,O.hasIn=yl,O.head=Wp,O.identity=Lt,O.includes=KS,O.indexOf=Hx,O.inRange=P_,O.invoke=p_,O.isArguments=$n,O.isArray=we,O.isArrayBuffer=PE,O.isArrayLike=It,O.isArrayLikeObject=nt,O.isBoolean=CE,O.isBuffer=cn,O.isDate=kE,O.isElement=IE,O.isEmpty=$E,O.isEqual=LE,O.isEqualWith=ME,O.isError=gl,O.isFinite=DE,O.isFunction=Ur,O.isInteger=rh,O.isLength=js,O.isMap=nh,O.isMatch=NE,O.isMatchWith=FE,O.isNaN=jE,O.isNative=zE,O.isNil=UE,O.isNull=BE,O.isNumber=ih,O.isObject=Xe,O.isObjectLike=tt,O.isPlainObject=Gi,O.isRegExp=ml,O.isSafeInteger=WE,O.isSet=oh,O.isString=zs,O.isSymbol=Bt,O.isTypedArray=di,O.isUndefined=HE,O.isWeakMap=qE,O.isWeakSet=ZE,O.join=Kx,O.kebabCase=M_,O.last=rr,O.lastIndexOf=Yx,O.lowerCase=D_,O.lowerFirst=N_,O.lt=GE,O.lte=VE,O.max=kT,O.maxBy=IT,O.mean=$T,O.meanBy=LT,O.min=MT,O.minBy=DT,O.stubArray=_l,O.stubFalse=Tl,O.stubObject=xT,O.stubString=ST,O.stubTrue=ET,O.multiply=NT,O.nth=Xx,O.noConflict=pT,O.noop=El,O.now=Ds,O.pad=F_,O.padEnd=j_,O.padStart=z_,O.parseInt=B_,O.random=C_,O.reduce=eE,O.reduceRight=tE,O.repeat=U_,O.replace=W_,O.result=w_,O.round=FT,O.runInContext=F,O.sample=nE,O.size=sE,O.snakeCase=H_,O.some=aE,O.sortedIndex=iS,O.sortedIndexBy=oS,O.sortedIndexOf=sS,O.sortedLastIndex=aS,O.sortedLastIndexBy=uS,O.sortedLastIndexOf=lS,O.startCase=Z_,O.startsWith=G_,O.subtract=jT,O.sum=zT,O.sumBy=BT,O.template=V_,O.times=_T,O.toFinite=Wr,O.toInteger=xe,O.toLength=ah,O.toLower=K_,O.toNumber=nr,O.toSafeInteger=KE,O.toString=Ie,O.toUpper=Y_,O.trim=X_,O.trimEnd=J_,O.trimStart=Q_,O.truncate=eT,O.unescape=tT,O.uniqueId=OT,O.upperCase=rT,O.upperFirst=bl,O.each=Gp,O.eachRight=Vp,O.first=Wp,Sl(O,(function(){var n={};return wr(O,function(o,l){Fe.call(O.prototype,l)||(n[l]=o)}),n})(),{chain:!1}),O.VERSION=i,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){O[n].placeholder=O}),Xt(["drop","take"],function(n,o){Ae.prototype[n]=function(l){l=l===r?1:lt(xe(l),0);var b=this.__filtered__&&!o?new Ae(this):this.clone();return b.__filtered__?b.__takeCount__=xt(l,b.__takeCount__):b.__views__.push({size:xt(l,Q),type:n+(b.__dir__<0?"Right":"")}),b},Ae.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var l=o+1,b=l==q||l==J;Ae.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:pe(_,3),type:l}),A.__filtered__=A.__filtered__||b,A}}),Xt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Ae.prototype[n]=function(){return this[l](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[l](1)}}),Ae.prototype.compact=function(){return this.filter(Lt)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Ae(this):this.map(function(l){return Bi(l,n,o)})}),Ae.prototype.reject=function(n){return this.filter(Fs(pe(n)))},Ae.prototype.slice=function(n,o){n=xe(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Ae(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=xe(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},wr(Ae.prototype,function(n,o){var l=/^(?: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 Ae,K=L[0],X=B||we(P),ee=function(Te){var Re=_.apply(O,rn([Te],L));return b&&oe?Re[0]:Re};X&&l&&typeof K=="function"&&K.length!=1&&(B=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=A&&!oe,Se=B&&!le;if(!A&&X){P=Se?P:new Ae(this);var ge=n.apply(P,L);return ge.__actions__.push({func:Ls,args:[ee],thisArg:r}),new Qt(ge,oe)}return he&&Se?n.apply(this,L):(ge=this.thru(ee),he?b?ge.value()[0]:ge.value():ge)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ss[n],l=/^(?: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(we(A)?A:[],_)}return this[l](function(P){return o.apply(we(P)?P:[],_)})}}),wr(Ae.prototype,function(n,o){var l=O[o];if(l){var b=l.name+"";Fe.call(ai,b)||(ai[b]=[]),ai[b].push({name:o,func:l})}}),ai[As(r,v).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=t1,Ae.prototype.reverse=r1,Ae.prototype.value=n1,O.prototype.at=IS,O.prototype.chain=$S,O.prototype.commit=LS,O.prototype.next=MS,O.prototype.plant=NS,O.prototype.reverse=FS,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=jS,O.prototype.first=O.prototype.head,Li&&(O.prototype[Li]=DS),O}),ii=Lw();Tn?((Tn.exports=ii)._=ii,xu._=ii):ht._=ii}).call(SI)})(xo,xo.exports)),xo.exports}var Pe=EI();const $c={FdSave:Ke.FdSave,FdWarningDanger:Ke.FdWarningDanger,FdInfoCircle:Ke.FdInfoCircle,FdInfoBold:Ke.FdInfoBold};var Ef=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Ef||{}),Hn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Hn||{}),yi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(yi||{});const Uy={[Hn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Hn.DANGER]:{icon:"red-500",button:"primary-dark"},[Hn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ic=({color:e=Hn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=Uy[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 $.jsx("button",{autoFocus:i,className:je("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},_I=({name:e,color:t=Hn.PRIMARY,className:r="w-8 h-8"})=>{const i=$c[e]||$c.FdInfoCircle,s=`text-${Uy[t].icon}`;return $.jsx(i,{className:je(r,s)})},TI=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:c,width:f=520,hasOverlay:m=!0,container:g,onClose:h,onEdit:d})=>{const y=w=>{h({id:e,reason:w})};z.useEffect(()=>{function w(v){v.key==="Escape"&&y(yi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Pe.merge(Pe.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),p=(w,v)=>{var E;if(!(c!=null&&c.toggles))return;const S=Pe.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=v),d({id:e,views:S})};return Pi.createPortal($.jsx(Ta,{appear:!0,show:!0,as:z.Fragment,children:$.jsx("div",{className:je("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:()=>y(yi.CANCELED),children:$.jsx(Ta.Child,{as:z.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:$.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:$.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(_I,{name:i,color:a,className:"w-6 h-6"})}):null,$.jsx(OI,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:Pe.values(c==null?void 0:c.toggles).map(w=>$.jsx("div",{children:$.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[$.jsx(Oy,{size:"xs",value:w.value,onChange:v=>p(w.key,v)}),$.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),$.jsx(AI,{warnings:x}),$.jsx("div",{className:"flex items-center gap-4",children:s===Ef.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ic,{autoFocus:!0,color:a,onClick:()=>y(yi.CONFIRMED),children:"Confirm"}),$.jsx(ic,{color:a,variant:"outlined",onClick:()=>y(yi.CANCELED),children:"Cancel"})]}):$.jsx(ic,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),g||document.body)},OI=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,AI=e=>e.warnings?$.jsx(Ta,{appear:!0,show:!!e.warnings.length,as:z.Fragment,children:$.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)=>$.jsx(Ta.Child,{as:z.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:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Ke.FdWarningDanger,{className:je({"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")}),$.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 RI=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>$.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[$.jsx(Ke.FdMinusNaked,{onClick:s,className:je("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),$.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),$.jsx(Ke.FdPlusNaked,{onClick:i,className:je("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),PI=I.forwardRef(((e,t)=>I.createElement(Sn.span,et({},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}})))),CI=PI;function Tm(e){const t=I.useRef({value:e,previous:e});return I.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Hy]=nf("Tooltip",[qa]),_f=qa(),kI=700,[f2,II]=Hy("TooltipProvider",{isOpenDelayed:!0,delayDuration:kI,onOpen:()=>{},onClose:()=>{}}),[$I,Xa]=Hy("Tooltip"),LI=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=II("Tooltip",t),f=_f(t),[m,g]=I.useState(null),h=Wv(),d=I.useRef(0),y=u??c.delayDuration,x=I.useRef(!1),{onOpen:p,onClose:w}=c,[v=!1,S]=ty({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),a==null||a(k)}}),E=I.useMemo((()=>v?x.current?"delayed-open":"instant-open":"closed"),[v]),R=I.useCallback((()=>{window.clearTimeout(d.current),x.current=!1,S(!0)}),[S]),T=I.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>{x.current=!0,S(!0)}),y)}),[y,S]);return I.useEffect((()=>()=>window.clearTimeout(d.current)),[]),I.createElement(Jv,f,I.createElement($I,{scope:t,contentId:h,open:v,stateAttribute:E,trigger:m,onTriggerChange:g,onTriggerEnter:I.useCallback((()=>{c.isOpenDelayed?T():R()}),[c.isOpenDelayed,T,R]),onOpen:I.useCallback(R,[R]),onClose:I.useCallback((()=>{window.clearTimeout(d.current),S(!1),w()}),[S,w])},r))},MI=I.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Xa("TooltipTrigger",r),a=_f(r),u=xn(t,s.onTriggerChange),c=I.useRef(!1),f=I.useCallback((()=>c.current=!1),[]);return I.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),I.createElement(Qv,et({asChild:!0},a),I.createElement(Sn.button,et({"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()}))})))})),DI=I.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Xa("TooltipContent",e.__scopeTooltip);return I.createElement(tf,{present:r||s.open},I.createElement(NI,et({ref:t},i)))})),NI=I.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Xa("TooltipContent",r),f=_f(r),m=a?rf:I.Fragment,{onClose:g}=c;return Gv((()=>g())),I.useEffect((()=>(document.addEventListener("tooltip.open",g),()=>document.removeEventListener("tooltip.open",g))),[g]),I.createElement(m,null,I.createElement(FI,{__scopeTooltip:r}),I.createElement(ey,et({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),I.createElement(Zv,null,i),I.createElement(CI,{id:c.contentId,role:"tooltip"},s||i)))}));function FI(e){const{__scopeTooltip:t}=e,r=Xa("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=Tm(s),u=i==null?void 0:i.top,c=Tm(u),f=r.onClose;return I.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const jI=LI,zI=MI,BI=DI;function UI(e){return $.jsxs(jI,{delayDuration:e.delayDuration,open:e.open,children:[$.jsx(zI,{tabIndex:-1,asChild:!0,children:$.jsx("span",{children:e.children})}),$.jsxs(BI,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&$.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 Nn=30,va=500,WI=()=>$.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),HI=e=>{const[t,r]=z.useState(Nn),i=z.useRef(),s=t>Nn,a=z.useRef(null);return z.useEffect(()=>{e.isOpen&&!s&&r(va),!e.isOpen&&s&&r(Nn)},[e.isOpen]),$.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[$.jsx(HT.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:Nn,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?Nn:va):i.current=Date.now()},onResize:(u,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var m;(m=e.onResize)==null||m.call(e),a.current=null})},onResizeStop:(u,c,f,m)=>{r(t+m.height)},handleComponent:{top:$.jsx(WI,{})}}),$.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Pe.kebabCase(e.path)}`,children:[$.jsxs("div",{className:je("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[$.jsxs("div",{className:"group flex items-center justify-start",children:[$.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),$.jsx("span",{}),e.tipKey?$.jsx(hy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,$.jsx("button",{"data-cy":`contextualPanel-toggle-button-${s?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(Nn),e.onClose()):(r(va),e.onOpen())},children:s?$.jsx(Ke.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):$.jsx(Ke.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),$.jsxs(pa,{of:s,children:[$.jsx(pa,{of:e.render,children:e.render}),$.jsx(pa,{of:!e.render,children:e.children})]})]})]})};function qy({children:e,viewBox:t="0 0 24 24",...r}){return $.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Pe.omit(r,"isIndeterminate","isChecked"),children:e})}function Zy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return $.jsx(qy,{viewBox:"0 0 24 24",...e,children:$.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function qI({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=z.useRef(null),m=i||$.jsx(Zy,{}),g=c.checked??e;z.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const h=g||t,d=["base-checkbox-container",a].join(" ");return $.jsxs("label",{className:d,style:u,"data-invalid":r,children:[$.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:g,...c,"aria-invalid":r||void 0}),$.jsx("span",{className:"base-checkbox-control",children:h&&m&&z.cloneElement(m,{isChecked:g,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&$.jsx("span",{className:"base-checkbox-label",children:s})]})}const ZI=z.forwardRef(({label:e,Icon:t,as:r="button",className:i="",disableHover:s=!1,iconClassname:a,...u},c)=>{const[f,m]=z.useState(null),[g,h]=z.useState(!1);return z.useImperativeHandle(c,()=>f,[f]),$.jsxs($.Fragment,{children:[$.jsx(r,{ref:m,className:je("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!s},i),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:()=>h(!1),...u,children:$.jsx(t,{className:je("h-4 w-4",a)})}),g&&Pi.createPortal($.jsx(zy,{label:e,referenceElement:f}),document.body)]})}),GI=({onChange:e,value:t,delay:r,placeholder:i,containerClassName:s,onFocusInput:a,icon:u,"data-cy":c})=>{const[f,m]=z.useState(t),g=z.useRef(null);return $.jsxs("div",{className:"w-full flex gap-x-1",children:[u&&$.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 h;return(h=g.current)==null?void 0:h.focus()},children:$.jsx("span",{className:`text-base fa ${u}`})}),$.jsxs("div",{className:je("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",s),children:[$.jsx("span",{className:"flex items-center justify-center",children:!u&&$.jsx(Ke.FdSearch,{className:"text-grey-100"})}),$.jsx("input",{ref:g,"data-cy":c||"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:h=>{m(h.currentTarget.value);const d=Pe.escapeRegExp(h.target.value);if(!r)return e(d);Pe.debounce(e,r)(d)},value:f,onFocus:()=>a&&a(),onDrop:h=>h.preventDefault()}),t&&$.jsx("span",{onClick:()=>{e(""),m("")},className:"flex cursor-pointer items-center justify-center",children:$.jsx(Ke.FdCloseNaked,{})})]})]})},VI=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s})=>$.jsx("div",{className:"flex h-full w-full items-center justify-center",children:$.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[$.jsxs("div",{className:"relative",children:[$.jsx(Ke.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),$.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"})]}),$.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),$.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),$.jsxs("div",{className:"flex gap-4",children:[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&&$.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:"Reset Page"}),r&&$.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 KI(e,t){const r=z.useRef(!1);z.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const oc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function yo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Gy(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 YI(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 Mo={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,"-":oc?173:189,"=":oc?61:187,";":oc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},yr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},So={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},Qe={};for(let e=1;e<20;e++)Mo["f".concat(e)]=111+e;let Ve=[],ko=null,Ky="all";const Zr=new Map,Ci=e=>Mo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),XI=e=>Object.keys(Mo).find(t=>Mo[t]===e),JI=e=>Object.keys(yr).find(t=>yr[t]===e);function Yy(e){Ky=e||"all"}function Do(){return Ky||"all"}function QI(){return Ve.slice(0)}function e$(){return Ve.map(e=>XI(e)||JI(e)||String.fromCharCode(e))}function t$(){const e=[];return Object.keys(Qe).forEach(t=>{Qe[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=>Ci(c))})})}),e}function r$(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 n$(e){return typeof e=="string"&&(e=Ci(e)),Ve.indexOf(e)!==-1}function i$(e,t){let r,i;e||(e=Do());for(const s in Qe)if(Object.prototype.hasOwnProperty.call(Qe,s))for(r=Qe[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:c}=u;return Tf(c)}):i++;Do()===e&&Yy(t||"all")}function o$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Ci(e.key));const r=Ve.indexOf(t);if(r>=0&&Ve.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in yr)yr[i]===t&&(vr[i]=!1)}}function Xy(e){if(typeof e>"u")Object.keys(Qe).forEach(s=>{Array.isArray(Qe[s])&&Qe[s].forEach(a=>oa(a)),delete Qe[s]}),Tf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&oa(s)});else if(typeof e=="object")e.key&&oa(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=""),oa({key:e,scope:s,method:a,splitKey:"+"})}}const oa=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],g=m==="*"?"*":Ci(m);if(!Qe[g])return;r||(r=Do());const h=f>1?Gy(yr,c):[],d=[];Qe[g]=Qe[g].filter(y=>{const p=(i?y.method===i:!0)&&y.scope===r&&YI(y.mods,h);return p&&d.push(y.element),!p}),d.forEach(y=>Tf(y))})};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(Ve),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=Qe["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!vr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ve.indexOf(i)===-1&&i!==229&&Ve.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=So[c];e[c]&&Ve.indexOf(f)===-1?Ve.push(f):!e[c]&&Ve.indexOf(f)>-1?Ve.splice(Ve.indexOf(f),1):c==="metaKey"&&e[c]&&(Ve=Ve.filter(m=>m in So||m===i))}),i in vt){vt[i]=!0;for(const c in yr)if(Object.prototype.hasOwnProperty.call(yr,c)){const f=So[yr[c]];vr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[So[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),vt[17]=!0,vt[18]=!0);const s=Do();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 Qe))return;const a=Qe[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,g=f.key.split(m),h=[];for(let d=0;d<g.length;d++)h.push(Ci(g[d]));h.sort().join("")===Ve.sort().join("")&&Om(e,f,s,t)}}function vr(e,t,r){Ve=[];const i=Vy(e);let s=[],a="all",u=document,c=0,f=!1,m=!0,g="+",h=!1,d=!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&&(h=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(d=!0)),typeof t=="string"&&(a=t),d&&Xy(e,a);c<i.length;c++)e=i[c].split(g),s=[],e.length>1&&(s=Gy(yr,e)),e=e[e.length-1],e=e==="*"?"*":Ci(e),e in Qe||(Qe[e]=[]),Qe[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:g,element:u});if(typeof u<"u"&&window){if(!Zr.has(u)){const y=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(p,u)},x=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(p,u),o$(p)};Zr.set(u,{keydownListener:y,keyupListenr:x,capture:h}),sc(u,"keydown",y,h),sc(u,"keyup",x,h)}if(!ko){const y=()=>{Ve=[]};ko={listener:y,capture:h},sc(window,"focus",y,h)}}}function s$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Qe).forEach(r=>{Qe[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Tf(e){const t=Object.values(Qe).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Zr.get(e)||{};i&&s&&(yo(e,"keyup",s,a),yo(e,"keydown",i,a),Zr.delete(e))}if((t.length<=0||Zr.size<=0)&&(Object.keys(Zr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Zr.get(s)||{};a&&u&&(yo(s,"keyup",u,c),yo(s,"keydown",a,c),Zr.delete(s))}),Zr.clear(),Object.keys(Qe).forEach(s=>delete Qe[s]),ko)){const{listener:s,capture:a}=ko;yo(window,"focus",s,a),ko=null}}const ac={getPressedKeyString:e$,setScope:Yy,getScope:Do,deleteScope:i$,getPressedKeyCodes:QI,getAllKeyCodes:t$,isPressed:n$,filter:r$,trigger:s$,unbind:Xy,keyMap:Mo,modifier:yr,modifierMap:So};for(const e in ac)Object.prototype.hasOwnProperty.call(ac,e)&&(vr[e]=ac[e]);if(typeof window<"u"){const e=window.hotkeys;vr.noConflict=t=>(t&&window.hotkeys===vr&&(window.hotkeys=e),vr),window.hotkeys=vr}vr.filter=()=>!0;function a$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=z.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),u=()=>{vr.unbind(e,a)};z.useEffect(()=>(vr(e,r,a),u),[e,r,a])}const u$=e=>{const t=z.useRef(null);return z.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function l$(e){const t=z.useRef();return z.useEffect(()=>{t.current=e},[e]),t.current}function c$(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e},[e]),t}function f$(e){const t=z.useRef(null);return z.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function d$(e){const[t,r]=z.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=z.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 Jy=z.createContext(""),p$=e=>$.jsx(Jy.Provider,{value:e.value,children:e.children}),h$=()=>{const e=z.useContext(Jy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function g$(e){const[t,r]=z.useState(e),i=z.useMemo(()=>m$(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function m$(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Pe.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const v$=(e,t,r={})=>{r={timeout:200,...r};const i=z.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return z.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=_$[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 Ai(e){return!!e&&!!e[Gt]}function Kn(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)===T$})(e)||Array.isArray(e)||!!e[Mm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Mm])||Of(e)||Af(e))}function No(e,t,r){r===void 0&&(r=!1),ki(e)===0?(r?Object.keys:kf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function ki(e){var t=e[Gt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Of(e)?2:Af(e)?3:0}function Lc(e,t){return ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y$(e,t){return ki(e)===2?e.get(t):e[t]}function Qy(e,t,r){var i=ki(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function b$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Of(e){return S$&&e instanceof Map}function Af(e){return E$&&e instanceof Set}function Fn(e){return e.o||e.t}function Rf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=O$(e);delete t[Gt];for(var r=kf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Pf(e)||Ai(e)||!Kn(e)||(ki(e)>1&&(e.set=e.add=e.clear=e.delete=w$),Object.freeze(e),t&&No(e,(function(r,i){return Fo(i,!0)}),!0)),e}function w$(){yt(2)}function Pf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kr(e){var t=A$[e];return t||yt(18,e),t}function Rm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function uc(e,t){t&&(kr("Patches"),e.u=[],e.s=[],e.v=t)}function Pa(e){Mc(e),e.p.forEach(x$),e.p=null}function Mc(e){e===Ri&&(Ri=e.l)}function Pm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function x$(e){var t=e[Gt];t.i===0||t.i===1?t.j():t.g=!0}function lc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||kr("ES5").S(t,e,i),i?(r[Gt].P&&(Pa(t),yt(4)),Kn(e)&&(e=Ca(t,e),t.l||ka(t,e)),t.u&&kr("Patches").M(r[Gt].t,e,t.u,t.s)):e=Ca(t,r,[]),Pa(t),t.u&&t.v(t.u,t.s),e!==t0?e:void 0}function Ca(e,t,r){if(Pf(t))return t;var i=t[Gt];if(!i)return No(t,(function(c,f){return Cm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return ka(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Rf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),No(a,(function(c,f){return Cm(e,i,s,c,f,r,u)})),ka(e,s,!1),r&&e.u&&kr("Patches").N(i,r,e.u,e.s)}return i.o}function Cm(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ai(s)){var c=Ca(e,s,a&&t&&t.i!==3&&!Lc(t.R,i)?a.concat(i):void 0);if(Qy(r,i,c),!Ai(c))return;e.m=!1}else u&&r.add(s);if(Kn(s)&&!Pf(s)){if(!e.h.D&&e._<1)return;Ca(e,s),t&&t.A.l||ka(e,s)}}function ka(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function cc(e,t){var r=e[Gt];return(r?Fn(r):e)[t]}function km(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 Dc(e){e.P||(e.P=!0,e.l&&Dc(e.l))}function fc(e){e.o||(e.o=Rf(e.t))}function Nc(e,t,r){var i=Of(t)?kr("MapSet").F(t,r):Af(t)?kr("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?1:0,A:a?a.A:Rm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Fc;u&&(f=[c],m=Eo);var g=Proxy.revocable(f,m),h=g.revoke,d=g.proxy;return c.k=d,c.j=h,d})(t,r):kr("ES5").J(t,r);return(r?r.A:Rm()).p.push(i),i}function e0(e){return Ai(e)||yt(22,e),(function t(r){if(!Kn(r))return r;var i,s=r[Gt],a=ki(r);if(s){if(!s.P&&(s.i<4||!kr("ES5").K(s)))return s.t;s.I=!0,i=Im(r,a),s.I=!1}else i=Im(r,a);return No(i,(function(u,c){s&&y$(s.t,u)===c||Qy(i,u,t(c))})),a===3?new Set(i):i})(e)}function Im(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Rf(e)}var $m,Ri,Cf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",S$=typeof Map<"u",E$=typeof Set<"u",Lm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",t0=Cf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Mm=Cf?Symbol.for("immer-draftable"):"__$immer_draftable",Gt=Cf?Symbol.for("immer-state"):"__$immer_state",_$={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"},T$=""+Object.prototype.constructor,kf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,O$=Object.getOwnPropertyDescriptors||function(e){var t={};return kf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},A$={},Fc={get:function(e,t){if(t===Gt)return e;var r=Fn(e);if(!Lc(r,t))return(function(s,a,u){var c,f=km(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||!Kn(i)?i:i===cc(e.t,t)?(fc(e),e.o[t]=Nc(e.A.h,i,e)):i},has:function(e,t){return t in Fn(e)},ownKeys:function(e){return Reflect.ownKeys(Fn(e))},set:function(e,t,r){var i=km(Fn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=cc(Fn(e),t),a=s==null?void 0:s[Gt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(b$(r,s)&&(r!==void 0||Lc(e.t,t)))return!0;fc(e),Dc(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 cc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,fc(e),Dc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Fn(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)}},Eo={};No(Fc,(function(e,t){Eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),Eo.set.call(this,e,t,void 0)},Eo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Fc.set.call(this,e[0],t,r,e[0])};var R$=(function(){function e(r){var i=this;this.O=Lm,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(p){var w=this;p===void 0&&(p=c);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(p,(function(R){var T;return(T=a).call.apply(T,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&yt(6),u!==void 0&&typeof u!="function"&&yt(7),Kn(s)){var g=Pm(i),h=Nc(i,s,void 0),d=!0;try{m=a(h),d=!1}finally{d?Pa(g):Mc(g)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(p){return uc(g,u),lc(p,g)}),(function(p){throw Pa(g),p})):(uc(g,u),lc(m,g))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===t0&&(m=void 0),i.D&&Fo(m,!0),u){var y=[],x=[];kr("Patches").M(s,m,y,x),u(y,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var g=arguments.length,h=Array(g>1?g-1:0),d=1;d<g;d++)h[d-1]=arguments[d];return i.produceWithPatches(m,(function(y){return s.apply(void 0,[y].concat(h))}))};var u,c,f=i.produce(s,a,(function(m,g){u=m,c=g}));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){Kn(r)||yt(8),Ai(r)&&(r=e0(r));var i=Pm(this),s=Nc(this,r,void 0);return s[Gt].C=!0,Mc(i),s},t.finishDraft=function(r,i){var s=r&&r[Gt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return uc(a,i),lc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Lm&&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=kr("Patches").$;return Ai(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Vt=new R$,P$=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 C$(e){var t=z.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],z.useCallback(function(i){r(typeof i=="function"?P$(i):Fo(i))},[])]}const k$=process.env.NODE_ENV==="development",dc=k$&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,I$=(e,t,r)=>{const[i,s]=C$(e),a=z.useRef(null);z.useEffect(()=>{var f;return r&&(a.current=dc==null?void 0:dc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,g;(g=(m=a.current)==null?void 0:m.disconnect)==null||g.call(m)}},[]);const u=t&&typeof t=="object"?t:{},c=z.useMemo(()=>Object.keys(u).reduce((f,m)=>({...f,[m]:g=>(s(h=>{var d;u[m](h,g),(d=a.current)==null||d.send({type:u[m].name},e0(h))}),c)}),{}),[s]);return{state:i,dispatch:c}},$$=e=>{const t=Ff(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()}}},L$=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:i,namespace:s}=Ff(e),[a,u]=z.useState(!1),c=z.useCallback(()=>{try{return window.DataSource.getSource(i,s)}catch{return}},[s,i]),f=(h,d)=>{const y=c();y&&y.setValue(h,d)},m=async()=>{const h=c();if(!h)return;const d=await(h==null?void 0:h.getValue());r==null||r(d)},g=h=>{const{id:d}=h;!a&&d&&d.startsWith(i)&&u(!0)};return z.useEffect(()=>{if(a){const h=c();return h?(h==null||h.addListener("changed",m),()=>h==null?void 0:h.removeListener("changed",m)):void 0}},[a]),z.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:a,setCurrentSource:f}};function Kr(e){return typeof e=="function"}function r0(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 pc=r0(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 Cc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var qa=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=dc(l),f=c.next();!f.done;f=c.next()){var v=f.value;v.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var m=this.initialTeardown;if(Zr(m))try{m()}catch(d){a=d instanceof ic?d.errors:[d]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=dc(g),b=p.next();!b.done;b=p.next()){var x=b.value;try{_m(x)}catch(d){a=a??[],d instanceof ic?a=ya(ya([],pc(a)),pc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}if(a)throw new ic(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_m(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)&&Cc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Cc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),By=qa.EMPTY;function Hy(e){return e instanceof qa||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function _m(e){Zr(e)?e():e.unsubscribe()}var cI={Promise:void 0},fI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ya([e,t],pc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function dI(e){fI.setTimeout(function(){throw e})}function Om(){}function pa(e){e()}var qy=(function(e){Fa(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Hy(r)&&r.add(i)):i.destination=gI,i}return t.create=function(r,i,s){return new kc(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})(qa),pI=(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){ta(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ta(i)}else ta(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ta(r)}},e})(),kc=(function(e){Fa(t,e);function t(r,i,s){var a=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:s??void 0}:l=r,a.destination=new pI(l),a}return t})(qy);function ta(e){dI(e)}function hI(e){throw e}var gI={closed:!0,next:Om,error:hI,complete:Om},mI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function vI(e){return e}function yI(e){return e.length===0?vI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Am=(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 kc(t,r,i);return pa(function(){var l=s,c=l.operator,f=l.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Tm(r),new r(function(s,a){var l=new kc({next:function(c){try{t(c)}catch(f){a(f),l.unsubscribe()}},error:a,complete:s});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[mI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return yI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Tm(t),new t(function(i,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Tm(e){var t;return(t=e??cI.Promise)!==null&&t!==void 0?t:Promise}function bI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function wI(e){return e&&e instanceof qy||bI(e)&&Hy(e)}var xI=Uy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){Fa(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 Rm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new xI},t.prototype.next=function(r){var i=this;pa(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=dc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(v){s={error:v}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;pa(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;pa(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,l=s.isStopped,c=s.observers;return a||l?By:(this.currentObservers=null,c.push(r),new qa(function(){i.currentObservers=null,Cc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,l=i.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Am;return r.source=this,r},t.create=function(r,i){return new Rm(r,i)},t})(Am),Rm=(function(e){Fa(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:By},t})(kr),Zy=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Zy||{}),Gy=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Gy||{});const SI=new kr,EI=new kr,Ky=new kr;var Vy=(e=>(e.SAVE_ALL="save-all",e))(Vy||{});const _I=new kr;var Yy=(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))(Yy||{});const OI=new kr;var Xy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xy||{});const AI=new kr,TI=new kr;var Io=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Io||{});const Ta=new kr,RI=new kr,Ef=255;var _f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Ef} 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 Jy(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Ef)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 PI(e){if(!e)return null;if(typeof e=="string")try{Jy(e)}catch(t){return t.message}}function CI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ve.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ve.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function kI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Za(e){const{PLACEHOLDER_PREFIX:t,counter:r}=kI();let i=r;const s=[],a="@!",l=m=>(s.push(m),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(m,g,p)=>g+l(p)),c=c.replace(/:\d{2}:\d{2}/g,l);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let v=c.replace(f,"");for(let m=0;m<s.length;m++){const p=`${t}${m}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");v=v.replace(b,s[m])}return v}var Of=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Of||{});const hn={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||{}),bn=(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))(bn||{}),Af=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Af||{});const Qy="roles.json",e0="qodlyApp.json",$I="model.4DModel",t0="HTTPHandlers.json",r0="Shared/i18n.json";function II(e){const t=Tf(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 Tf(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===hn.METHODS):return Ke.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===hn.CLASSES):return Ke.CLASS;case e===Qy:return Ke.ROLES;case e===t0:return Ke.HTTP_HANDLERS;case e===e0:return Ke.SETTINGS;case e===r0:return Ke.LOCALIZATION;default:return Ke.TEXT}}function LI(e,t=!1){switch(e){case hn.REPORTS:case"report":return"QoDoc";case hn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case hn.CLASSES:case hn.METHODS:return t?"4qs":"4dm";default:return""}}function MI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function FI(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 n0{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 Rf(){const e=new n0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const i0=Ve.curry((e,t,r)=>e&&Ve.get(r,e)===t),DI=Ve.curry((e,t,r)=>Ve.get(r,e)!==t),NI=Ve.curry((e,t)=>Ve.get(t,"id")!==e),jI=Ve.curry((e,t)=>Ve.get(t,"id")===e),zI=Ve.curry((e,t)=>Ve.get(t,"path")===e);function WI(e="id",t,r){return r.findIndex(i0(e,t))!==-1}function o0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function UI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function BI(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 s0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function HI(e){return e.type==="object"}function a0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function u0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!s0(e)}function qI(e){return a0(e)||u0(e)}function ZI(e){return e.applyTo==="dataStore"}function GI(e){return e.applyTo==="dataClass"}function KI(e){return e.applyTo==="entity"}function VI(e){return e.applyTo==="entityCollection"}function YI(e){return e.type==="entity"}function XI(e){return e.type==="entitysel"}function l0(e){return e.dataType==="array"}function c0(e){return e.dataType==="object"}function f0(e){return e.type==="scalar"}function JI(e){return l0(e)||c0(e)||f0(e)}const QI=e=>e!=null&&e.type==="entity",e2=e=>e.type==="entitysel",t2=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",r2=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",n2=e=>e.type==="scalar"&&e.dataType==="date",i2=(e,t)=>(e||"")===(t||"");function o2(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function s2(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const yo="Qodly",d0="Location",p0="UserLanguage",h0="Title",Ra={[yo]:[{id:h0,dataType:"string",type:"scalar",namespace:yo,initialValue:""},{id:d0,dataType:"object",type:"scalar",namespace:yo,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:p0,dataType:"object",type:"scalar",namespace:yo,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 Lo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Lo||{}),g0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(g0||{}),Pf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Pf||{});const a2={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function u2(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Lo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Pf.table}},...i}}function m0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Lo.capable,Lo.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 l2(e,t,r=!1){const i=Ve.isString(t)?t:m0(t);if(!r&&v0(e))return e;const s=y0(e);return`//%attributes = ${i}\r
|
|
204
|
-
${s}`}function v0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function y0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const c2=()=>Hc.uuid().replaceAll("-","").toUpperCase(),f2=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function b0(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 w0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function d2(e,t){const r=b0(e);return w0(r,t)}function p2(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const ot="/rest/$designer",Ho="/rest/$designer-ext";function h2(...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 $c 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 Me(e,t){var s;Ta.next({action:Io.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((s=l==null?void 0:l.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Ta.next({action:Io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new $c(e,r,l)}catch{a=new $c(e,r)}throw a.log(),a}return await r.json()}function g2(e){return Ta.next({action:Io.REQUEST_SENT}),e}var xr={},ht={},Pm;function Fn(){if(Pm)return ht;Pm=1;var e=ht.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,U){return k+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=ht.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}}),ht.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=ht.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=ht.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 b(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=b(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(d,w,h){if(typeof d=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(d);if(typeof l[w]=="function")return l[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=ht.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};ht.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]=g(x[h],w):x.indexOf(w)===-1&&d.push(w)}function v(x,d,w){d[w]=x[w]}function m(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=g(x[h],d[h]):w[h]=d[h]}function g(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(v.bind(null,x,h)),Object.keys(d).forEach(m.bind(null,x,d,h))),h}ht.deepMerge=g,ht.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 p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(d){return d.map(p).join("")},ht.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},ht.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var b=ht.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 ht}var oc,Cm;function m2(){if(Cm)return oc;Cm=1;var e=Fn(),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(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=Array.isArray(p.type)?p.type:[p.type];if(!w.some(this.testType.bind(this,g,p,b,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(m,g,p,b,x){var d=g.throwError,w=g.throwAll;g.throwError=!1,g.throwAll=!1;var h=this.validateSchema(m,x,g,p);return g.throwError=d,g.throwAll=w,!h.valid&&b instanceof Function&&b(h),h.valid}s.anyOf=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=new t(g,p,b,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(a.bind(this,g,b,x,function(S){w.importErrors(S)}))){var h=p.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+"]"});b.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var d=new t(g,p,b,x),w=this;return p.allOf.forEach(function(h,S){var E=w.validateSchema(g,h,b,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(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var d=new t(g,p,b,x),w=new t(g,p,b,x),h=p.oneOf.filter(a.bind(this,g,b,x,function(E){w.importErrors(E)})).length,S=p.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&&(b.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(g,p,b,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,g,b,x,null,p.if),w=new t(g,p,b,x),h;if(d){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(g,p.then,b,x.makeChild(p.then)),w.importErrors(h)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(g,p.else,b,x.makeChild(p.else)),w.importErrors(h)}return w};function l(m,g){if(Object.hasOwnProperty.call(m,g))return m[g];if(g in m){for(;m=Object.getPrototypeOf(m);)if(Object.propertyIsEnumerable.call(m,g))return m[g]}}s.propertyNames=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in g)if(l(g,h)!==void 0){var S=this.validateSchema(h,w,b,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.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 b.preValidateProperty=="function"&&b.preValidateProperty(g,h,S,b,x);var E=l(g,h),R=this.validateSchema(E,S,b,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(m,g,p,b,x,d){if(this.types.object(m)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(m,x,w,p,b);var h=this.validateSchema(m[x],w,p,b.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.patternProperties||{};for(var h in g){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 b.preValidateProperty=="function"&&b.preValidateProperty(g,h,R,b,x);var k=this.validateSchema(g[h],R,b,x.makeChild(R,h));k.instance!==d.instance[h]&&(d.instance[h]=k.instance),d.importErrors(k)}}}S&&c.call(this,g,p,b,x,h,d)}return d}},s.additionalProperties=function(g,p,b,x){if(this.types.object(g)){if(p.patternProperties)return null;var d=new t(g,p,b,x);for(var w in g)c.call(this,g,p,b,x,w,d);return d}},s.minProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length>=p.minProperties||d.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),d}},s.maxProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length<=p.maxProperties||d.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),d}},s.items=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.items!==void 0){var w=new t(g,p,b,x);return g.every(function(h,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.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,b,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(g,p,b,x),h=g.some(function(S,E){var R=d.validateSchema(S,p.contains,b,x.makeChild(p.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),d}},s.maximum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),d}},s.exclusiveMinimum=function(g,p,b,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g>p.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),d}},s.exclusiveMaximum=function(g,p,b,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g<p.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),d}};var f=function(g,p,b,x,d,w){if(this.types.number(g)){var h=p[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(g,p,b,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(h),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(h*k)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(g,p,b,x){var d=new t(g,p,b,x);return g===void 0&&p.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(w){l(g,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=p.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return g.match(h)||d.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),d}},s.format=function(g,p,b,x){if(g!==void 0){var d=new t(g,p,b,x);return!d.disableFormat&&!e.isFormat(g,p.format,this)&&d.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),d}},s.minLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h>=p.minLength||d.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),d}},s.maxLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h<=p.maxLength||d.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),d}},s.minItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length>=p.minItems||d.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),d}},s.maxItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length<=p.maxItems||d.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),d}};function v(m,g,p){var b,x=p.length;for(b=g+1,x;b<x;b++)if(e.deepCompareStrict(m,p[b]))return!1;return!0}return s.uniqueItems=function(g,p,b,x){if(p.uniqueItems===!0&&this.types.array(g)){var d=new t(g,p,b,x);return g.every(v)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x);for(var w in p.dependencies)if(g[w]!==void 0){var h=p.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){g[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,h,b,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(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var d=new t(g,p,b,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||d.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),d},s.const=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x);return e.deepCompareStrict(p.const,g)||d.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),d},s.not=s.disallow=function(g,p,b,x){var d=this;if(g===void 0)return null;var w=new t(g,p,b,x),h=p.not||p.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(g,p,b,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},oc=i,oc}var ra={},km;function Ic(){if(km)return ra;km=1;var e=Fn();ra.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return ra.scan=function(i,s){function a(m,g){if(!g||typeof g!="object")return;if(g.$ref){let d=e.resolveUrl(m,g.$ref);v[d]=v[d]?v[d]+1:0;return}var p=g.$id||g.id;let b=e.resolveUrl(m,p);var x=p?b:m;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=g,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),a(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),a(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),a(x+"/not",g.not)}function l(m,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)a(m+"/"+p,g[p])}function c(m,g){if(!(!g||typeof g!="object"))for(var p in g)a(m+"/"+p,g[p])}var f={},v={};return a(i,s),new t(f,v)},ra}var sc,$m;function v2(){if($m)return sc;$m=1;var e=m2(),t=Fn(),r=Ic().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",f=function g(){this.customFormats=Object.create(g.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(p,b){var x=this;if(!p)return null;var d=r(b||c,p),w=b||p.$id||p.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(p,b){if(Array.isArray(b))for(var x=0;x<b.length;x++)this.addSubSchema(p,b[x])},f.prototype.addSubSchemaObject=function(p,b){if(!(!b||typeof b!="object"))for(var x in b)this.addSubSchema(p,b[x])},f.prototype.setSchemas=function(p){this.schemas=p},f.prototype.getSchema=function(p){return this.schemas[p]},f.prototype.validate=function(p,b,x,d){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=b.$id||b.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(b,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=b);var S=r(h,b);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,b,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,b,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function v(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}f.prototype.validateSchema=function(p,b,x,d){var w=new i(p,b,x,d);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var h={schema:b,ctx:d};b.extends.forEach(this.schemaTraverser.bind(this,h)),b=h.schema,h.schema=null,h.ctx=null,h=null}else b=t.deepMerge(b,this.superResolve(b.extends,d));var S=v(b);if(S){var E=this.resolve(b,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in b)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var U=null,F=this.attributes[k];if(F)U=F.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,b);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,p,b,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(p,b){p.schema=t.deepMerge(p.schema,this.superResolve(b,p.ctx))},f.prototype.superResolve=function(p,b){var x=v(p);return x?this.resolve(p,x,b).subschema:p},f.prototype.resolve=function(p,b,x){if(b=x.resolve(b),x.schemas[b])return{subschema:x.schemas[b],switchSchema:b};let w=new URL(b,"thismessage::/").hash;var h=w&&w.length&&b.substr(0,b.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",p);return{subschema:S,switchSchema:b}},f.prototype.testType=function(p,b,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,p);if(w&&typeof w=="object"){var h=this.validateSchema(p,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var m=f.prototype.types={};return m.string=function(p){return typeof p=="string"},m.number=function(p){return typeof p=="number"&&isFinite(p)},m.integer=function(p){return typeof p=="number"&&p%1===0},m.boolean=function(p){return typeof p=="boolean"},m.array=function(p){return Array.isArray(p)},m.null=function(p){return p===null},m.date=function(p){return p instanceof Date},m.any=function(p){return!0},m.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},sc=f,sc}var Im;function y2(){if(Im)return xr;Im=1;var e=xr.Validator=v2();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=Ic().SchemaScanResult,xr.scan=Ic().scan,xr.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},xr}var b2=y2();const x0=(e,t,r)=>{const i=e instanceof RegExp?Lm(e,r):e,s=t instanceof RegExp?Lm(t,r):t,a=i!==null&&s!=null&&w2(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)}},Lm=(e,t)=>{const r=t.match(e);return r?r[0]:null},w2=(e,t,r)=>{let i,s,a,l,c,f=r.indexOf(e),v=r.indexOf(t,f+1),m=f;if(f>=0&&v>0){if(e===t)return[f,v];for(i=[],a=r.length;m>=0&&!c;){if(m===f)i.push(m),f=r.indexOf(e,m+1);else if(i.length===1){const g=i.pop();g!==void 0&&(c=[g,v])}else s=i.pop(),s!==void 0&&s<a&&(a=s,l=v),v=r.indexOf(t,m+1);m=f<v&&f>=0?f:v}i.length&&l!==void 0&&(c=[a,l])}return c},S0="\0SLASH"+Math.random()+"\0",E0="\0OPEN"+Math.random()+"\0",Cf="\0CLOSE"+Math.random()+"\0",_0="\0COMMA"+Math.random()+"\0",O0="\0PERIOD"+Math.random()+"\0",x2=new RegExp(S0,"g"),S2=new RegExp(E0,"g"),E2=new RegExp(Cf,"g"),_2=new RegExp(_0,"g"),O2=new RegExp(O0,"g"),A2=/\\\\/g,T2=/\\{/g,R2=/\\}/g,P2=/\\,/g,C2=/\\./g;function ac(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function k2(e){return e.replace(A2,S0).replace(T2,E0).replace(R2,Cf).replace(P2,_0).replace(C2,O0)}function $2(e){return e.replace(x2,"\\").replace(S2,"{").replace(E2,"}").replace(_2,",").replace(O2,".")}function A0(e){if(!e)return[""];const t=[],r=x0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,l=i.split(",");l[l.length-1]+="{"+s+"}";const c=A0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function I2(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),bo(k2(e),!0).map($2)):[]}function L2(e){return"{"+e+"}"}function M2(e){return/^-?0\d/.test(e)}function F2(e,t){return e<=t}function D2(e,t){return e>=t}function bo(e,t){const r=[],i=x0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<a.length;l++){const c=s+"{"+i.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||c,v=i.body.indexOf(",")>=0;if(!f&&!v)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Cf+i.post,bo(e)):[e];let m;if(f)m=i.body.split(/\.\./);else if(m=A0(i.body),m.length===1&&m[0]!==void 0&&(m=bo(m[0],!1).map(L2),m.length===1))return a.map(p=>i.pre+m[0]+p);let g;if(f&&m[0]!==void 0&&m[1]!==void 0){const p=ac(m[0]),b=ac(m[1]),x=Math.max(m[0].length,m[1].length);let d=m.length===3&&m[2]!==void 0?Math.abs(ac(m[2])):1,w=F2;b<p&&(d*=-1,w=D2);const S=m.some(M2);g=[];for(let E=p;w(E,b);E+=d){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<m.length;p++)g.push.apply(g,bo(m[p],!1))}for(let p=0;p<g.length;p++)for(let b=0;b<a.length;b++){const x=s+g[p]+a[b];(!t||f||x)&&r.push(x)}}return r}const N2=1024*64,Pa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>N2)throw new TypeError("pattern is too long")},j2={"[: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]},po=e=>e.replace(/[[\]\\-]/g,"\\$&"),z2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Mm=e=>e.join(""),W2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,l=!1,c=!1,f=!1,v=!1,m=r,g="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){v=!0,a++;continue}if(d==="]"&&l&&!f){m=a+1;break}if(l=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(j2))if(e.startsWith(w,a)){if(g)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,g){d>g?i.push(po(g)+"-"+po(d)):d===g&&i.push(po(d)),g="",a++;continue}if(e.startsWith("-]",a+1)){i.push(po(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){g=d,a+=2;continue}i.push(po(d)),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])&&!v){const d=i[0].length===2?i[0].slice(-1):i[0];return[z2(d),!1,m-r,!1]}const p="["+(v?"^":"")+Mm(i)+"]",b="["+(v?"":"^")+Mm(s)+"]";return[i.length&&s.length?"("+p+"|"+b+")":i.length?p:b,c,m-r,!0]},wo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),U2=new Set(["!","?","+","*","@"]),Fm=e=>U2.has(e),B2="(?!(?:^|/)\\.\\.?(?:$|/))",na="(?!\\.)",H2=new Set(["[","."]),q2=new Set(["..","."]),Z2=new Set("().*{}+?[]^$\\!"),G2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kf="[^/]",Dm=kf+"*?",Nm=kf+"+?";var ut,ft,qr,He,it,fn,Dn,dn,Er,Nn,Fo,qn,T0,gn,ha,Lc,R0;const Tt=class Tt{constructor(t,r,i={}){xt(this,qn);ve(this,"type");xt(this,ut);xt(this,ft);xt(this,qr,!1);xt(this,He,[]);xt(this,it);xt(this,fn);xt(this,Dn);xt(this,dn,!1);xt(this,Er);xt(this,Nn);xt(this,Fo,!1);this.type=t,t&&Qe(this,ft,!0),Qe(this,it,r),Qe(this,ut,re(this,it)?re(re(this,it),ut):this),Qe(this,Er,re(this,ut)===this?i:re(re(this,ut),Er)),Qe(this,Dn,re(this,ut)===this?[]:re(re(this,ut),Dn)),t==="!"&&!re(re(this,ut),dn)&&re(this,Dn).push(this),Qe(this,fn,re(this,it)?re(re(this,it),He).length:0)}get hasMagic(){if(re(this,ft)!==void 0)return re(this,ft);for(const t of re(this,He))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,ft,!0);return re(this,ft)}toString(){return re(this,Nn)!==void 0?re(this,Nn):this.type?Qe(this,Nn,this.type+"("+re(this,He).map(t=>String(t)).join("|")+")"):Qe(this,Nn,re(this,He).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&re(r,it)===this))throw new Error("invalid part: "+r);re(this,He).push(r)}}toJSON(){var r;const t=this.type===null?re(this,He).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,He).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ut)||re(re(this,ut),dn)&&((r=re(this,it))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ut)===this)return!0;if(!((r=re(this,it))!=null&&r.isStart()))return!1;if(re(this,fn)===0)return!0;const t=re(this,it);for(let i=0;i<re(this,fn);i++){const s=re(t,He)[i];if(!(s instanceof Tt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,ut)===this||((r=re(this,it))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,it))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,it))==null?void 0:s.isEnd();const t=re(this,it)?re(re(this,it),He).length:0;return re(this,fn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const i of re(this,He))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Tt(null,void 0,r);return $e(s=Tt,gn,ha).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,ut))return re(this,ut).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,ft)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Er)}toRegExpSource(t){var f;const r=t??!!re(this,Er).dot;if(re(this,ut)===this&&$e(this,qn,T0).call(this),!this.type){const v=this.isStart()&&this.isEnd(),m=re(this,He).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?$e(E=Tt,gn,R0).call(E,x,re(this,ft),v):x.toRegExpSource(t);return Qe(this,ft,re(this,ft)||h),Qe(this,qr,re(this,qr)||S),d}).join("");let g="";if(this.isStart()&&typeof re(this,He)[0]=="string"&&!(re(this,He).length===1&&q2.has(re(this,He)[0]))){const d=H2,w=r&&d.has(m.charAt(0))||m.startsWith("\\.")&&d.has(m.charAt(2))||m.startsWith("\\.\\.")&&d.has(m.charAt(4)),h=!r&&!t&&d.has(m.charAt(0));g=w?B2:h?na:""}let p="";return this.isEnd()&&re(re(this,ut),dn)&&((f=re(this,it))==null?void 0:f.type)==="!"&&(p="(?:$|\\/)"),[g+m+p,wo(m),Qe(this,ft,!!re(this,ft)),re(this,qr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,qn,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const v=this.toString();return Qe(this,He,[v]),this.type=null,Qe(this,ft,void 0),[v,wo(this.toString()),!1,!1]}let l=!i||t||r||!na?"":$e(this,qn,Lc).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Fo))c=(this.isStart()&&!r?na:"")+Nm;else{const v=this.type==="!"?"))"+(this.isStart()&&!r&&!t?na:"")+Dm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+v}return[c,wo(a),Qe(this,ft,!!re(this,ft)),re(this,qr)]}};ut=new WeakMap,ft=new WeakMap,qr=new WeakMap,He=new WeakMap,it=new WeakMap,fn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,Er=new WeakMap,Nn=new WeakMap,Fo=new WeakMap,qn=new WeakSet,T0=function(){if(this!==re(this,ut))throw new Error("should only call on root");if(re(this,dn))return this;this.toString(),Qe(this,dn,!0);let t;for(;t=re(this,Dn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,it);for(;i;){for(let s=re(r,fn)+1;!i.type&&s<re(i,He).length;s++)for(const a of re(t,He)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,He)[s])}r=i,i=re(r,it)}}return this},gn=new WeakSet,ha=function(t,r,i,s){var b,x;let a=!1,l=!1,c=-1,f=!1;if(r.type===null){let d=i,w="";for(;d<t.length;){const h=t.charAt(d++);if(a||h==="\\"){a=!a,w+=h;continue}if(l){d===c+1?(h==="^"||h==="!")&&(f=!0):h==="]"&&!(d===c+2&&f)&&(l=!1),w+=h;continue}else if(h==="["){l=!0,c=d,f=!1,w+=h;continue}if(!s.noext&&Fm(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,ha).call(b,t,S,d,s),r.push(S);continue}w+=h}return r.push(w),d}let v=i+1,m=new Tt(null,r);const g=[];let p="";for(;v<t.length;){const d=t.charAt(v++);if(a||d==="\\"){a=!a,p+=d;continue}if(l){v===c+1?(d==="^"||d==="!")&&(f=!0):d==="]"&&!(v===c+2&&f)&&(l=!1),p+=d;continue}else if(d==="["){l=!0,c=v,f=!1,p+=d;continue}if(Fm(d)&&t.charAt(v)==="("){m.push(p),p="";const w=new Tt(d,m);m.push(w),v=$e(x=Tt,gn,ha).call(x,t,w,v,s);continue}if(d==="|"){m.push(p),p="",g.push(m),m=new Tt(null,r);continue}if(d===")")return p===""&&re(r,He).length===0&&Qe(r,Fo,!0),m.push(p),p="",r.push(...g,m),v;p+=d}return r.type=null,Qe(r,ft,void 0),Qe(r,He,[t.substring(i-1)]),v},Lc=function(t){return re(this,He).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,l]=r.toRegExpSource(t);return Qe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},R0=function(t,r,i=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=(Z2.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[v,m,g,p]=W2(t,c);if(g){a+=v,l=l||m,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?a+=Nm:a+=Dm,r=!0;continue}if(f==="?"){a+=kf,r=!0;continue}a+=G2(f)}return[a,wo(t),!!r,l]},xt(Tt,gn);let Ca=Tt;const K2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Pa(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ga(t,r).match(e)),V2=/^\*+([^+@!?\*\[\(]*)$/,Y2=e=>t=>!t.startsWith(".")&&t.endsWith(e),X2=e=>t=>t.endsWith(e),J2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Q2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),eL=/^\*+\.\*+$/,tL=e=>!e.startsWith(".")&&e.includes("."),rL=e=>e!=="."&&e!==".."&&e.includes("."),nL=/^\.\*+$/,iL=e=>e!=="."&&e!==".."&&e.startsWith("."),oL=/^\*+$/,sL=e=>e.length!==0&&!e.startsWith("."),aL=e=>e.length!==0&&e!=="."&&e!=="..",uL=/^\?+([^+@!?\*\[\(]*)?$/,lL=([e,t=""])=>{const r=P0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},cL=([e,t=""])=>{const r=C0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},fL=([e,t=""])=>{const r=C0([e]);return t?i=>r(i)&&i.endsWith(t):r},dL=([e,t=""])=>{const r=P0([e]);return t?i=>r(i)&&i.endsWith(t):r},P0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},C0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},k0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jm={win32:{sep:"\\"},posix:{sep:"/"}},pL=k0==="win32"?jm.win32.sep:jm.posix.sep;Et.sep=pL;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const hL="[^/]",gL=hL+"*?",mL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",vL="(?:(?!(?:\\/|^)\\.).)*?",yL=(e,t={})=>r=>Et(r,e,t);Et.filter=yL;const rr=(e,t={})=>Object.assign({},e,t),bL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,s,a={})=>t(i,s,rr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,rr(e,a))}static defaults(s){return t.defaults(rr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,rr(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,rr(e,a))}},unescape:(i,s={})=>t.unescape(i,rr(e,s)),escape:(i,s={})=>t.escape(i,rr(e,s)),filter:(i,s={})=>t.filter(i,rr(e,s)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,s={})=>t.makeRe(i,rr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,rr(e,s)),match:(i,s,a={})=>t.match(i,s,rr(e,a)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=bL;const $0=(e,t={})=>(Pa(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:I2(e));Et.braceExpand=$0;const wL=(e,t={})=>new Ga(e,t).makeRe();Et.makeRe=wL;const xL=(e,t,r={})=>{const i=new Ga(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=xL;const zm=/[?*]|[+@!]\(.*?\)|\[|\]/,SL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ga{constructor(t,r={}){ve(this,"options");ve(this,"set");ve(this,"pattern");ve(this,"windowsPathsNoEscape");ve(this,"nonegate");ve(this,"negate");ve(this,"comment");ve(this,"empty");ve(this,"preserveMultipleSlashes");ve(this,"partial");ve(this,"globSet");ve(this,"globParts");ve(this,"nocase");ve(this,"isWindows");ve(this,"platform");ve(this,"windowsNoMagicRoot");ve(this,"regexp");Pa(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||k0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!zm.test(a[2]))&&!zm.test(a[3]),v=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(m=>this.parse(m))];if(v)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 l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let s=0;s<t[i].length;s++)t[i][s]==="**"&&(t[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!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let l=s;for(;i[l+1]==="**";)l++;l>s&&i.splice(s+1,l-s);let c=i[s+1];const f=i[s+2],v=i[s+3];if(c!==".."||!f||f==="."||f===".."||!v||v==="."||v==="..")continue;r=!0,i.splice(s,1);const m=i.slice(0);m[s]="**",t.push(m),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const l=i[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const s=this.options;if(this.isWindows){const d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),h=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!h&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:d?0:void 0,R=S?3:h?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,f=t.length,v=r.length;l<f&&c<v;l++,c++){this.debug("matchOne loop");var m=r[c],g=t[l];if(this.debug(r,m,g),m===!1)return!1;if(m===nr){this.debug("GLOBSTAR",[r,m,g]);var p=l,b=c+1;if(b===v){for(this.debug("** at the end");l<f;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
|
|
206
|
-
globstar while`,t,
|
|
207
|
-
>>> no match, partial?`,t,p,r,b),p===f))}let d;if(typeof m=="string"?(d=g===m,this.debug("string match",m,g,d)):(d=m.test(g),this.debug("pattern match",m,g,d)),!d)return!1}if(l===f&&c===v)return!0;if(l===f)return i;if(c===v)return l===f-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return $0(this.pattern,this.options)}parse(t){Pa(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,s=null;(i=t.match(oL))?s=r.dot?aL:sL:(i=t.match(V2))?s=(r.nocase?r.dot?Q2:J2:r.dot?X2:Y2)(i[1]):(i=t.match(uL))?s=(r.nocase?r.dot?cL:lL:r.dot?fL:dL)(i):(i=t.match(eL))?s=r.dot?rL:tL:(i=t.match(nL))&&(s=iL);const a=Ca.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?gL:r.dot?mL:vL,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const v=f.map(m=>{if(m instanceof RegExp)for(const g of m.flags.split(""))s.add(g);return typeof m=="string"?SL(m):m===nr?nr:m._src});return v.forEach((m,g)=>{const p=v[g+1],b=v[g-1];m!==nr||b===nr||(b===void 0?p!==void 0&&p!==nr?v[g+1]="(?:\\/|"+i+"\\/)?"+p:v[g]=i:p===void 0?v[g-1]=b+"(?:\\/|"+i+")?":p!==nr&&(v[g-1]=b+"(?:\\/|\\/"+i+"\\/)"+p,v[g+1]=nr))}),v.filter(m=>m!==nr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){const f=a[c];let v=s;if(i.matchBase&&f.length===1&&(v=[l]),this.matchOne(v,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Et.defaults(t).Minimatch}}Et.AST=Ca;Et.Minimatch=Ga;Et.escape=K2;Et.unescape=wo;const Mo="/$shared",EL={"**/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 I0(e){const t=Object.entries(EL).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Ka(e){var i;const t=(i=I0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Mo}/`,"Shared/");$f({name:r,content:t,asText:typeof t=="string"})}async function _L(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Me(`${Mo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){L0(r)&&Ka(`${Mo}/${t}`)}}function qo({path:e,createIfNotExists:t=!1}){const r=`${Mo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=I0(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 b2.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(L0(i)&&t){const s=OL(i,e);Ky.next({message:s,kind:"warning"}),Ka(r)}throw i})}function L0(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 OL(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 AL(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TL(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const M0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Af.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function RL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:l:s.webServerHTTPPort?l:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),M0()}}async function F0(e){return await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function PL(...e){return(await Promise.all(e.map(i=>F0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function CL(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ve.entries(i.components).map(([a,l])=>{const c=a,{resolvedName:f}=l.type;if(f==="WebformLoader"){const v=Hc.generate();s.set(a,v),a=v}return[a,l,c]}).reduce((a,[l,c,f])=>{var v;return c.nodes&&(c.nodes=c.nodes.map(m=>s.get(m)||m)),c.linkedNodes&&(c.linkedNodes=Ve.entries(c.linkedNodes).reduce((m,[g,p])=>({...m,[g]:s.get(p)||p}),{})),(v=c.props)!=null&&v.events&&(c.props.events=c.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=s.get(m.loader)||m.loader),m))),{...a,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function kL(e){return Me(ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Ke.METHOD,Ke.CLASS].includes(t.type)?Za(t.content):t.content}))}function $L(e){return e.type==="folder"?Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function IL(e){return e.type==="folder"?(await Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function LL(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ML(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FL(e){return(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function DL(...e){return await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function NL(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function jL(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function zL(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 WL({name:e,path:t="",root:r="root",asText:i=!1}){return Me(ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function UL(e={}){try{return{...await qo({path:"shared_datasources.json",...e}),...Ra}}catch{return{...Ra}}}async function BL(e={}){try{return await qo({path:"shared_app_events.json",...e})}catch{return[]}}async function HL(e={}){try{return await qo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function qL(e={}){try{return await qo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function ZL(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function GL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const KL=Rf(),VL=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ve.omit(e,Ve.keys(Ra))};return KL(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},YL=Rf(),XL=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return YL(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},$f=async e=>{const t=await Me(ot,{method:"POST",body:JSON.stringify({...e,verb:bn.SET_FILE_CONTENT,root:Of.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Tf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},JL=async e=>await $f({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function QL(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function eM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function tM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rM(e){return Me(ot,{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)?Za(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&&Ka(e.path),t})}function nM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function iM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function oM(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 sM(e){const t=iM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=oM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function aM(e,t){const i=e.split(".").pop();try{const s=await Me(ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Za(s.content);const{params:a,result:l}=sM(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var D0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(D0||{});function uM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function lM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var N0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(N0||{}),j0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(j0||{}),z0=(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))(z0||{}),W0=(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))(W0||{});const cM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},fM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ot;exports.AppLoader=e$;exports.BaseCheckboxIcon=ky;exports.Checkbox=_$;exports.ControlledSwitch=py;exports.DATASOURCE_THEMES=cM;exports.DatasourcesActions=Gy;exports.DebuggerActions=Xy;exports.DefaultCheckboxIcon=$y;exports.DesignerRequestVerb=bn;exports.Dialog=MA;exports.DialogBody=rv;exports.EActivity=D0;exports.EDITOR=fM;exports.EIDENTIFIERS=z0;exports.ERROR_CODES=W0;exports.EWebFormStyleClassScope=N0;exports.EXT_API_PREFIX=Ho;exports.FileFolderType=Ke;exports.FloatingTooltip=x$;exports.FolderRootPath=hn;exports.FolderRootType=Of;exports.HTTPError=$c;exports.HTTP_HANDLERS_TAB_PATH=t0;exports.IPreemptive=Lo;exports.IPublished=g0;exports.IPublishedRestScope=Pf;exports.IdentityProvider=H$;exports.Incase=ua;exports.IndentLines=mv;exports.InvalidJsonError=O$;exports.LOCALIZATION_TAB_PATH=r0;exports.LOCATION_DATASOURCE_ID=d0;exports.LogoSVG=Ty;exports.LspActions=Yy;exports.MAX_FILE_NAME_LENGTH=Ef;exports.MODEL_TAB_PATH=$I;exports.Modal=i$;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=_c;exports.ModalType=hf;exports.Mutex=n0;exports.NameError=_f;exports.Overlay=tv;exports.PANEL_EXPANDED_HEIGHT=da;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=E$;exports.Portal=Bm;exports.PublishOptions=a2;exports.QODLY_NAMESPACE=yo;exports.ROLES_TAB_PATH=Qy;exports.RemoteDebuggerMode=Af;exports.SETTINGS_TAB_PATH=e0;exports.SHARED_API_PREFIX=Mo;exports.SHARED_USER_NAMESPACE=Ra;exports.SourceCodeDescriptor=j0;exports.Switcher=vv;exports.TITLE_DATASOURCE_ID=h0;exports.TabEventsActions=Vy;exports.Tip=ty;exports.TipsProvider=uC;exports.Toast=UT;exports.Tooltip=Jk;exports.Tree=sR;exports.TreeIcon=dv;exports.TreeNode=qc;exports.USER_LANGUAGE_DATASOURCE_ID=p0;exports.WebformActions=Zy;exports.WebformEventsActions=Io;exports.ZoomComponent=a$;exports.ZoomLevel=Py;exports._isArrayDatasource=t2;exports._isObjectDatasource=r2;exports.addAttributesToContent=l2;exports.addFolder=LL;exports.by=i0;exports.byId=jI;exports.byPath=zI;exports.callServerSideParser=g2;exports.checkUpdates=AL;exports.createFolder=QL;exports.datasourcesSubject=SI;exports.debuggerSubject=AI;exports.dropFile=IL;exports.dropFolder=FL;exports.exists=WI;exports.extractWebformName=MI;exports.filterBySeriousError=w0;exports.formatErrorsAsBulletToast=p2;exports.generateUUID=c2;exports.getAppSettings=RL;exports.getCatalog=jL;exports.getDatasourceId=UI;exports.getDefaultAppSettings=M0;exports.getDisplayableFeedbackErrors=d2;exports.getErrorListFromPayload=b0;exports.getFile=kL;exports.getFileContent=WL;exports.getFileExtentionFromType=LI;exports.getFilenameAndTypeFromPath=II;exports.getFilenameFromType=FI;exports.getFilesInfo=DL;exports.getFolder=F0;exports.getFolders=PL;exports.getFunctionContent=aM;exports.getMonacoTheme=GL;exports.getNodeInfo=rM;exports.getSavedConditions=qL;exports.getSharedAppEvents=BL;exports.getSharedCSS=HL;exports.getSharedDatasources=UL;exports.getSharedResource=qo;exports.getSupportedLanguages=zL;exports.getTypeFromExtension=Tf;exports.getUserPrivileges=ZL;exports.getWebForm=CL;exports.hasAttributesString=v0;exports.http=Me;exports.i18nSubject=RI;exports.initializeDefaultProjectFiles=_L;exports.installUpdates=TL;exports.isArrayDatasource=l0;exports.isDataClassMethod=GI;exports.isDataStoreMethod=ZI;exports.isDateDatasource=n2;exports.isEntity=QI;exports.isEntityDatasource=YI;exports.isEntityMethod=KI;exports.isEntitySelection=e2;exports.isEntitySelectionDatasource=XI;exports.isEntitySelectionMethod=VI;exports.isObjectAttribute=HI;exports.isObjectDatasource=c0;exports.isRelatedAttribute=qI;exports.isRelatedEntitiesAttribute=a0;exports.isRelatedEntityAttribute=u0;exports.isSameNamespace=i2;exports.isScalarDatasource=f0;exports.isSimpleAttribute=s0;exports.isSimpleDatasource=JI;exports.loadDS=o2;exports.loadI18n=s2;exports.localeCompare=o0;exports.log=uM;exports.login=NL;exports.lspSubject=OI;exports.moveItem=tM;exports.outBy=DI;exports.outById=NI;exports.parseAttributes=u2;exports.queue=Rf;exports.removeAttributesString=y0;exports.removeItem=eM;exports.renameFile=$L;exports.renameFolder=ML;exports.sanitizeContent=Za;exports.sanitizeNameCY=f2;exports.saveContent=nM;exports.setCraftedComponents=JL;exports.setFileContent=$f;exports.setSharedAppEvents=XL;exports.setSharedSources=VL;exports.splitDatasourceID=BI;exports.stringifyAttributes=m0;exports.tabEventsSubject=_I;exports.tasksManagerSubject=TI;exports.toastSubject=Ky;exports.trackEvent=lM;exports.transformDates=h2;exports.tryCreateSharedResource=Ka;exports.useDidMountEffect=A$;exports.useDoubleClick=K$;exports.useEnhancedState=lI;exports.useFeatureFlags=B$;exports.useForwardedRef=U$;exports.useHotkeys=N$;exports.useIdentity=q$;exports.useOutsideClick=j$;exports.usePrevious=z$;exports.useStateObject=Z$;exports.useStateRef=W$;exports.useTip=ey;exports.validateName=Jy;exports.validateServerSide=PI;exports.validateValue=CI;exports.webformEventsSubject=Ta;exports.webformSubject=EI;
|
|
203
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function jc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ja=(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=xc(u),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(p){t={error:p}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else u.remove(this);var g=this.initialTeardown;if(Kr(g))try{g()}catch(p){a=p instanceof pc?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=xc(h),y=d.next();!y.done;y=d.next()){var x=y.value;try{Dm(x)}catch(p){a=a??[],p instanceof pc?a=Ea(Ea([],Sc(a)),Sc(p.errors)):a.push(p)}}}catch(p){i={error:p}}finally{try{y&&!y.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}if(a)throw new pc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Dm(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)&&jc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&jc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),n0=Ja.EMPTY;function i0(e){return e instanceof Ja||e&&"closed"in e&&Kr(e.remove)&&Kr(e.add)&&Kr(e.unsubscribe)}function Dm(e){Kr(e)?e():e.unsubscribe()}var M$={Promise:void 0},D$={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Ea([e,t],Sc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function N$(e){D$.setTimeout(function(){throw e})}function Nm(){}function ya(e){e()}var o0=(function(e){Wa(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,i0(r)&&r.add(i)):i.destination=z$,i}return t.create=function(r,i,s){return new zc(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})(Ja),F$=(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){sa(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){sa(i)}else sa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){sa(r)}},e})(),zc=(function(e){Wa(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Kr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new F$(u),a}return t})(o0);function sa(e){N$(e)}function j$(e){throw e}var z$={closed:!0,next:Nm,error:j$,complete:Nm},B$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function U$(e){return e}function W$(e){return e.length===0?U$:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Fm=(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=q$(t)?t:new zc(t,r,i);return ya(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=jm(r),new r(function(s,a){var u=new zc({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[B$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return W$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=jm(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 jm(e){var t;return(t=e??M$.Promise)!==null&&t!==void 0?t:Promise}function H$(e){return e&&Kr(e.next)&&Kr(e.error)&&Kr(e.complete)}function q$(e){return e&&e instanceof o0||H$(e)&&i0(e)}var Z$=r0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=(function(e){Wa(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 zm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Z$},t.prototype.next=function(r){var i=this;ya(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=xc(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;ya(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;ya(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?n0:(this.currentObservers=null,c.push(r),new Ja(function(){i.currentObservers=null,jc(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 Fm;return r.source=this,r},t.create=function(r,i){return new zm(r,i)},t})(Fm),zm=(function(e){Wa(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:n0},t})(Lr),s0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(s0||{}),a0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(a0||{});const G$=new Lr,V$=new Lr,u0=new Lr;var l0=(e=>(e.SAVE_ALL="save-all",e))(l0||{});const K$=new Lr;var c0=(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))(c0||{});const Y$=new Lr;var f0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(f0||{});const X$=new Lr,J$=new Lr;var jo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(jo||{});const Ia=new Lr,Q$=new Lr,If=255;var $f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${If} 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 Qa(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>If)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 eL(e){if(!e)return null;if(typeof e=="string")try{Qa(e)}catch(t){return t.message}}function tL(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Pe.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Pe.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 rL(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function eu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=rL();let i=r;const s=[],a="@!",u=g=>(s.push(g),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,h,d)=>h+u(d)),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 g=0;g<s.length;g++){const d=`${t}${g}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(d,"g");m=m.replace(y,s[g])}return m}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const yn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Je=(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))(Je||{}),En=(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))(En||{}),Mf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Mf||{});const d0="roles.json",p0="qodlyApp.json",nL="model.4DModel",h0="HTTPHandlers.json",g0="Shared/i18n.json";function iL(e){const t=Df(e);switch(t){case Je.SETTINGS:return{filename:"Settings",type:t};case Je.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Je.ROLES:return{filename:"Roles & Privileges",type:t};case Je.LOCALIZATION:return{filename:"Localization",type:t};case Je.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Df(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Je.MODEL;case r==="WebForm":return Je.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===yn.METHODS):return Je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===yn.CLASSES):return Je.CLASS;case e===d0:return Je.ROLES;case e===h0:return Je.HTTP_HANDLERS;case e===p0:return Je.SETTINGS;case e===g0:return Je.LOCALIZATION;default:return Je.TEXT}}function oL(e,t=!1){switch(e){case yn.REPORTS:case"report":return"QoDoc";case yn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case yn.CLASSES:case yn.METHODS:return t?"4qs":"4dm";default:return""}}function sL(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function aL(e,t,r){switch(t){case Je.MOBILEFORM:return`${e}.MForm`;case Je.WEBFORM:return`${e}.WebForm`;case Je.REPORT:return`${e}.QoDoc`;case Je.METHOD:case Je.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class m0{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 Nf(){const e=new m0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const v0=Pe.curry((e,t,r)=>e&&Pe.get(r,e)===t),uL=Pe.curry((e,t,r)=>Pe.get(r,e)!==t),lL=Pe.curry((e,t)=>Pe.get(t,"id")!==e),cL=Pe.curry((e,t)=>Pe.get(t,"id")===e),fL=Pe.curry((e,t)=>Pe.get(t,"path")===e);function dL(e="id",t,r){return r.findIndex(v0(e,t))!==-1}function y0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function pL(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Ff(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 b0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function hL(e){return e.type==="object"}function w0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function x0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!b0(e)}function gL(e){return w0(e)||x0(e)}function mL(e){return e.applyTo==="dataStore"}function vL(e){return e.applyTo==="dataClass"}function yL(e){return e.applyTo==="entity"}function bL(e){return e.applyTo==="entityCollection"}function wL(e){return e.type==="entity"}function xL(e){return e.type==="entitysel"}function S0(e){return e.dataType==="array"}function E0(e){return e.dataType==="object"}function _0(e){return e.type==="scalar"}function SL(e){return S0(e)||E0(e)||_0(e)}const EL=e=>e!=null&&e.type==="entity",_L=e=>e.type==="entitysel",TL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",OL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",AL=e=>e.type==="scalar"&&e.dataType==="date",RL=(e,t)=>(e||"")===(t||"");function PL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function CL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const _o="Qodly",T0="Location",O0="UserLanguage",A0="Title",$a={[_o]:[{id:A0,dataType:"string",type:"scalar",namespace:_o,initialValue:""},{id:T0,dataType:"object",type:"scalar",namespace:_o,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:O0,dataType:"object",type:"scalar",namespace:_o,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 zo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(zo||{}),R0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(R0||{}),jf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(jf||{});const kL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function IL(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:zo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:jf.table}},...i}}function P0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[zo.capable,zo.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 $L(e,t,r=!1){const i=Pe.isString(t)?t:P0(t);if(!r&&C0(e))return e;const s=k0(e);return`//%attributes = ${i}\r
|
|
204
|
+
${s}`}function C0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function k0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const LL=()=>Zn.uuid().replaceAll("-","").toUpperCase(),ML=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var De=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(De||{}),qe=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(qe||{});const DL=[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE,De.SINGLETON_METHOD,De.SINGLETON,De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD],Bm=e=>[qe.DS_METHOD,qe.ENTITY_METHOD,qe.DATACLASS_METHOD].includes(e)?De.METHOD:e,La="guest",zf=[{key:"read",label:"Read",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[De.DATASTORE,De.DATACLASS,De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,De.SINGLETON,De.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,De.SINGLETON_METHOD]}];function lr(e,...t){return Array.from(new Set([...e,...t]))}function I0(e){const t={},r=new Map;e.forEach(f=>{const m=f.id||Zn.generate();t[m]={...f,id:m,parents:[],includes:lr(f.includes||[]),resources:[]},r.set(f.privilege,m)}),Object.entries(t).forEach(([f,m])=>{const g=m.includes.map(h=>{const d=r.get(h);return d?(t[d].parents=lr(t[d].parents,d),d):""}).filter(Boolean);t[f]={...m,includes:g}});const i=$0(t),s=new Set;function a(f){s.add(f.id),f.includes=f.includes.filter(m=>!s.has(m))}if(i.forEach(a),i.forEach(f=>f.parents=[]),i.forEach(f=>{f.includes.forEach(m=>t[m].parents.push(f.id))}),Object.values(t).find(({privilege:f})=>f===La))return t;const c=Zn.generate();return{[c]:{id:c,privilege:La,includes:[],parents:[],resources:[]},...t}}function $0(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function tu(e,t){const r=t[e];let i=[];return r&&r.parents.forEach(s=>{i=lr(i,...tu(s,t),s)}),i}function Ma(e,t){const r=t[e];let i=[];return r&&r.includes.forEach(s=>{i=lr(i,...Ma(s,t),s)}),i}function NL(e,t){const r=t[e];if(!r)return[];const i=[e,...tu(e,t),...r.includes];return Object.keys(t).filter(s=>!i.includes(s))}function FL(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 jL(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 zL(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 BL(e,t){Qa(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=Zn.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function UL(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 WL(e,t){return e.map(r=>Xr(r,t))}function Xr(e,t){return t[e]?t[e]:null}function L0({applyTo:e,type:t,...r}){return Object.entries(r).reduce((i,[s,a])=>{const u=Pe.find(zf,["key",s]);return!u||!u.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(f=>{i[f]=lr(i[f]||[],s)}),i},{})}const Um=(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 Bf(e){return{permissions:zf.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const i={name:t,from:[]};switch(e.type){case De.DATASTORE:return{...i,info:Um(r,!0)};case De.DATACLASS:return{...i,info:Um(r)};default:return i}}),resource:e.applyTo,type:e.type}}function M0(e,t){const r=D0(t),i={};return e.filter(({type:s})=>DL.includes(s)).forEach(s=>{const a=L0(s);Object.entries(a).forEach(([u,c])=>{var g;const f=(g=r[u])==null?void 0:g.id;if(!f)return;i[f]=i[f]||{...t[f]};let m=Pe.find(i[f].resources,{resource:s.applyTo,type:s.type});m||(m=Bf(s),i[f].resources.push(m)),m.permissions=m.permissions.map(h=>({...h,checked:h.checked||c.includes(h.name)}))})}),{...t,...i}}function D0(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function HL(e){var r;if(!e)throw new Error("Invalid roles data");const t=I0(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:M0(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:i=Zn.generate(),role:s,privileges:a=[]})=>({id:i,role:s,privileges:lr(a).map(u=>{var c;return(c=Object.values(t).find(({privilege:f})=>f===u))==null?void 0:c.id}).filter(Boolean)})).reduce((i,s)=>({...i,[s.id]:{...s}}),{})}}function qL(e){const t=Object.values(e.privileges).filter(({includes:i})=>i.length===0).map(({id:i})=>i),r=[...t,...t.map(i=>tu(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:c})=>{let f=Pe.find(i,{applyTo:u,type:Bm(c)});f||(f={applyTo:u,type:Bm(c)},i.push(f)),a.forEach(({name:m,checked:g})=>{g&&f&&(f[m]=f[m]||[],f[m].push(s.privilege))})}),i),[])},privileges:r.filter(({privilege:i})=>i!==La).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 ZL(e,t){const r=t[e],i={children:[],links:[],parents:[],selected:e};if(!r)return i;function s(c,f,m=[]){const g=c.reduce((h,d)=>[...h,...t[d][f]],[]);return g.length===0?m:(m.push(g),s(g,f,m))}function a(c){const f=[],m=[];for(let g=c.length-1;g>=0;g-=1){const h=c[g].filter(d=>f.includes(d)?!1:(f.push(d),!0));h.length>0&&m.unshift(lr(h))}return m}function u(c,f){const m=[];return c.reduce((g,h)=>(h.forEach(d=>{t[d][f==="parents"?"includes":"parents"].forEach(x=>{m.includes(x)&&g.push(f==="parents"?{source:d,target:x}:{source:x,target:d})}),m.push(d)}),g),[])}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 GL(e,t,r){const i=Xr(e,r);if(!i||Pe.find(i.resources,{resource:t.applyTo,type:t.type}))return r;const s={...i,resources:[...i.resources,Bf(t)]};return{...r,[e]:s}}function VL(e,t,r){const i=Xr(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 KL(e,t){const r=Object.entries(e).map(([i,s])=>{const a=Xr(i,t);if(!a)return{[i]:t[i]};const u={...a,resources:a.resources.filter(({resource:c,type:f})=>!s.some(m=>m.applyTo===c&&m.type===f))};return{[i]:u}}).reduce((i,s)=>({...i,...s}),{});return{...t,...r}}function YL(e,t){const r=Xr(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 XL(e,t,r,i){const s=Xr(e,i);if(!s)return i;const u=Pe.find(s.resources,{type:t.type,resource:t.resource})?{...s,resources:s.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(f=>f.name===r.name?{...f,checked:!f.checked,from:[]}:f)}:c)}:{...s,resources:[...s.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...i,[e]:u}}function JL(e,t){var f;const r=N0(e,t)||[],i=((f=Xr(e,t))==null?void 0:f.resources)||[],u=([...r,...i].filter(({type:m})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(m))||[]).map(({resource:m})=>m);return Object.entries(t).reduce((m,[g,{resources:h}])=>(h.filter(({resource:d,type:y})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(y)&&u.includes(d)).forEach(({permissions:d,resource:y})=>{var p;((p=d.find(({name:w})=>w==="promote"))==null?void 0:p.checked)&&(m[y]=lr(m[y]||[],g))}),m),{})}function N0(e,t){var u;const r=Xr(e,t);if(!r)return[];const i=(u=Object.values(t).find(c=>c.privilege===La))==null?void 0:u.id;return(i&&i!==e?lr(Ma(e,t),i):Ma(e,t)).reduce((c,f)=>(t[f].resources.forEach(g=>{if(g.permissions.filter(({checked:y,name:x})=>y&&x!=="promote").length===0)return;const d=Pe.find(c,{type:g.type,resource:g.resource});if(!d){c.push({...g,permissions:g.permissions.map(y=>({...y,from:y.checked?[f]:[],checked:!1}))});return}d.permissions=d.permissions.map((y,x)=>{let{from:p=[]}=y;return g.permissions[x].checked&&!p.includes(f)&&(p=[...p,f]),{...y,from:p,checked:y.checked}})}),c),Pe.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:f,...m})=>({...m,checked:!!f}))}))))}const QL=(e,t,r)=>{const i={id:e,role:t,privileges:[]};return{...r,[i.id]:i}},eM=(e,t)=>t[e]?Object.values(t).reduce((r,i)=>e===i.id||i.role===""?r:{...r,[i.id]:i},{}):t,tM=(e,t)=>{if(Qa(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 F0(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 j0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function rM(e,t){const r=F0(e);return j0(r,t)}function nM(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Ko="/rest/$designer-ext";function iM(...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 Bc 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;Ia.next({action:jo.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))&&Ia.next({action:jo.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Bc(e,r,u)}catch{a=new Bc(e,r)}throw a.log(),a}return await r.json()}function oM(e){return Ia.next({action:jo.REQUEST_SENT}),e}var _r={},mt={},Wm;function zn(){if(Wm)return mt;Wm=1;var e=mt.ValidationError=function(p,w,v,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,U){return k+c(U)},"instance")):S!==void 0&&(this.property=S),p&&(this.message=p),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=mt.ValidatorResult=function(p,w,v,S){this.instance=p,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(p){var w;if(typeof p=="string")w=new e(p,this.instance,this.schema,this.path);else{if(!p)throw new Error("Missing error detail");if(!p.message)throw new Error("Missing error message");if(!p.name)throw new Error("Missing validator type");w=new e(p.message,this.instance,this.schema,this.path,p.name,p.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(p){typeof p=="string"||p&&p.validatorType?this.addError(p):p&&p.errors&&(this.errors=this.errors.concat(p.errors))};function r(x,p){return p+": "+x.toString()+`
|
|
205
|
+
`}t.prototype.toString=function(p){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(p,w){this.message=p,this.schema=w,Error.call(this,p),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(p,w,v,S,E){this.schema=p,this.options=w,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(R,T){return R+c(T)},"instance")):this.propertyPath=v,this.base=S,this.schemas=E};a.prototype.resolve=function(p){return y(this.base,p)},a.prototype.makeChild=function(p,w){var v=w===void 0?this.path:this.path.concat([w]),S=p.$id||p.id;let E=y(this.base,S||"");var R=new a(p,this.options,v,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=p),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 p=!0;try{new RegExp(x)}catch{p=!1}return p},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(p,w,v){if(typeof p=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(p);if(typeof u[w]=="function")return u[w](p)}else if(v&&v.customFormats&&typeof v.customFormats[w]=="function")return v.customFormats[w](p);return!0};var c=mt.makeSuffix=function(p){return p=p.toString(),!p.match(/[.\s\[\]]/)&&!p.match(/^[\d]/)?"."+p:p.match(/^\d+$/)?"["+p+"]":"["+JSON.stringify(p)+"]"};mt.deepCompareStrict=function x(p,w){if(typeof p!=typeof w)return!1;if(Array.isArray(p))return!Array.isArray(w)||p.length!==w.length?!1:p.every(function(E,R){return x(p[R],w[R])});if(typeof p=="object"){if(!p||!w)return p===w;var v=Object.keys(p),S=Object.keys(w);return v.length!==S.length?!1:v.every(function(E){return x(p[E],w[E])})}return p===w};function f(x,p,w,v){typeof w=="object"?p[v]=h(x[v],w):x.indexOf(w)===-1&&p.push(w)}function m(x,p,w){p[w]=x[w]}function g(x,p,w,v){typeof p[v]!="object"||!p[v]?w[v]=p[v]:x[v]?w[v]=h(x[v],p[v]):w[v]=p[v]}function h(x,p){var w=Array.isArray(p),v=w&&[]||{};return w?(x=x||[],v=v.concat(x),p.forEach(f.bind(null,x,v))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,v)),Object.keys(p).forEach(g.bind(null,x,p,v))),v}mt.deepMerge=h,mt.objectGetPath=function(p,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 p))return;p=p[E]}return p};function d(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(p){return p.map(d).join("")},mt.getDecimalPlaces=function(p){var w=0;if(isNaN(p))return w;typeof p!="number"&&(p=Number(p));var v=p.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},mt.isSchema=function(p){return typeof p=="object"&&p||typeof p=="boolean"};var y=mt.resolveUrl=function(p,w){const v=new URL(w,new URL(p,"resolve://"));if(v.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=v;return S+E+R}return v.toString()};return mt}var hc,Hm;function sM(){if(Hm)return hc;Hm=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(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x),w=Array.isArray(d.type)?d.type:[d.type];if(!w.some(this.testType.bind(this,h,d,y,x))){var v=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});p.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return p};function a(g,h,d,y,x){var p=h.throwError,w=h.throwAll;h.throwError=!1,h.throwAll=!1;var v=this.validateSchema(g,x,h,d);return h.throwError=p,h.throwAll=w,!v.valid&&y instanceof Function&&y(v),v.valid}s.anyOf=function(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x),w=new t(h,d,y,x);if(!Array.isArray(d.anyOf))throw new r("anyOf must be an array");if(!d.anyOf.some(a.bind(this,h,y,x,function(S){w.importErrors(S)}))){var v=d.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&&p.importErrors(w),p.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return p},s.allOf=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.allOf))throw new r("allOf must be an array");var p=new t(h,d,y,x),w=this;return d.allOf.forEach(function(v,S){var E=w.validateSchema(h,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+"]";p.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]:"}),p.importErrors(E)}}),p},s.oneOf=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.oneOf))throw new r("oneOf must be an array");var p=new t(h,d,y,x),w=new t(h,d,y,x),v=d.oneOf.filter(a.bind(this,h,y,x,function(E){w.importErrors(E)})).length,S=d.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&&p.importErrors(w),p.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),p},s.if=function(h,d,y,x){if(h===void 0)return null;if(!e.isSchema(d.if))throw new Error('Expected "if" keyword to be a schema');var p=a.call(this,h,y,x,null,d.if),w=new t(h,d,y,x),v;if(p){if(d.then===void 0)return;if(!e.isSchema(d.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(h,d.then,y,x.makeChild(d.then)),w.importErrors(v)}else{if(d.else===void 0)return;if(!e.isSchema(d.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(h,d.else,y,x.makeChild(d.else)),w.importErrors(v)}return w};function u(g,h){if(Object.hasOwnProperty.call(g,h))return g[h];if(h in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,h))return g[h]}}s.propertyNames=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.propertyNames!==void 0?d.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var v in h)if(u(h,v)!==void 0){var S=this.validateSchema(v,w,y,x.makeChild(w));p.importErrors(S)}return p}},s.properties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.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(h,v,S,y,x);var E=u(h,v),R=this.validateSchema(E,S,y,x.makeChild(S,v));R.instance!==p.instance[v]&&(p.instance[v]=R.instance),p.importErrors(R)}}return p}};function c(g,h,d,y,x,p){if(this.types.object(g)&&!(h.properties&&h.properties[x]!==void 0))if(h.additionalProperties===!1)p.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=h.additionalProperties||{};typeof d.preValidateProperty=="function"&&d.preValidateProperty(g,x,w,d,y);var v=this.validateSchema(g[x],w,d,y.makeChild(w,x));v.instance!==p.instance[x]&&(p.instance[x]=v.instance),p.importErrors(v)}}s.patternProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.patternProperties||{};for(var v in h){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(h,v,R,y,x);var k=this.validateSchema(h[v],R,y,x.makeChild(R,v));k.instance!==p.instance[v]&&(p.instance[v]=k.instance),p.importErrors(k)}}}S&&c.call(this,h,d,y,x,v,p)}return p}},s.additionalProperties=function(h,d,y,x){if(this.types.object(h)){if(d.patternProperties)return null;var p=new t(h,d,y,x);for(var w in h)c.call(this,h,d,y,x,w,p);return p}},s.minProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=Object.keys(h);return w.length>=d.minProperties||p.addError({name:"minProperties",argument:d.minProperties,message:"does not meet minimum property length of "+d.minProperties}),p}},s.maxProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=Object.keys(h);return w.length<=d.maxProperties||p.addError({name:"maxProperties",argument:d.maxProperties,message:"does not meet maximum property length of "+d.maxProperties}),p}},s.items=function(h,d,y,x){var p=this;if(this.types.array(h)&&d.items!==void 0){var w=new t(h,d,y,x);return h.every(function(v,S){if(Array.isArray(d.items))var E=d.items[S]===void 0?d.additionalItems:d.items[S];else var E=d.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=p.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(h,d,y,x){var p=this;if(this.types.array(h)&&d.contains!==void 0){if(!e.isSchema(d.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(h,d,y,x),v=h.some(function(S,E){var R=p.validateSchema(S,d.contains,y,x.makeChild(d.contains,E));return R.errors.length===0});return v===!1&&w.addError({name:"contains",argument:d.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(h,d,y,x){if(this.types.number(h)){var p=new t(h,d,y,x);return d.exclusiveMinimum&&d.exclusiveMinimum===!0?h>d.minimum||p.addError({name:"minimum",argument:d.minimum,message:"must be greater than "+d.minimum}):h>=d.minimum||p.addError({name:"minimum",argument:d.minimum,message:"must be greater than or equal to "+d.minimum}),p}},s.maximum=function(h,d,y,x){if(this.types.number(h)){var p=new t(h,d,y,x);return d.exclusiveMaximum&&d.exclusiveMaximum===!0?h<d.maximum||p.addError({name:"maximum",argument:d.maximum,message:"must be less than "+d.maximum}):h<=d.maximum||p.addError({name:"maximum",argument:d.maximum,message:"must be less than or equal to "+d.maximum}),p}},s.exclusiveMinimum=function(h,d,y,x){if(typeof d.exclusiveMinimum!="boolean"&&this.types.number(h)){var p=new t(h,d,y,x),w=h>d.exclusiveMinimum;return w||p.addError({name:"exclusiveMinimum",argument:d.exclusiveMinimum,message:"must be strictly greater than "+d.exclusiveMinimum}),p}},s.exclusiveMaximum=function(h,d,y,x){if(typeof d.exclusiveMaximum!="boolean"&&this.types.number(h)){var p=new t(h,d,y,x),w=h<d.exclusiveMaximum;return w||p.addError({name:"exclusiveMaximum",argument:d.exclusiveMaximum,message:"must be strictly less than "+d.exclusiveMaximum}),p}};var f=function(h,d,y,x,p,w){if(this.types.number(h)){var v=d[p];if(v==0)throw new r(p+" cannot be zero");var S=new t(h,d,y,x),E=e.getDecimalPlaces(h),R=e.getDecimalPlaces(v),T=Math.max(E,R),k=Math.pow(10,T);return Math.round(h*k)%Math.round(v*k)!==0&&S.addError({name:p,argument:v,message:w+JSON.stringify(v)}),S}};s.multipleOf=function(h,d,y,x){return f.call(this,h,d,y,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(h,d,y,x){return f.call(this,h,d,y,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(h,d,y,x){var p=new t(h,d,y,x);return h===void 0&&d.required===!0?p.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(d.required)&&d.required.forEach(function(w){u(h,w)===void 0&&p.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),p},s.pattern=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=d.pattern;try{var v=new RegExp(w,"u")}catch{v=new RegExp(w)}return h.match(v)||p.addError({name:"pattern",argument:d.pattern,message:"does not match pattern "+JSON.stringify(d.pattern.toString())}),p}},s.format=function(h,d,y,x){if(h!==void 0){var p=new t(h,d,y,x);return!p.disableFormat&&!e.isFormat(h,d.format,this)&&p.addError({name:"format",argument:d.format,message:"does not conform to the "+JSON.stringify(d.format)+" format"}),p}},s.minLength=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=h.match(/[\uDC00-\uDFFF]/g),v=h.length-(w?w.length:0);return v>=d.minLength||p.addError({name:"minLength",argument:d.minLength,message:"does not meet minimum length of "+d.minLength}),p}},s.maxLength=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=h.match(/[\uDC00-\uDFFF]/g),v=h.length-(w?w.length:0);return v<=d.maxLength||p.addError({name:"maxLength",argument:d.maxLength,message:"does not meet maximum length of "+d.maxLength}),p}},s.minItems=function(h,d,y,x){if(this.types.array(h)){var p=new t(h,d,y,x);return h.length>=d.minItems||p.addError({name:"minItems",argument:d.minItems,message:"does not meet minimum length of "+d.minItems}),p}},s.maxItems=function(h,d,y,x){if(this.types.array(h)){var p=new t(h,d,y,x);return h.length<=d.maxItems||p.addError({name:"maxItems",argument:d.maxItems,message:"does not meet maximum length of "+d.maxItems}),p}};function m(g,h,d){var y,x=d.length;for(y=h+1,x;y<x;y++)if(e.deepCompareStrict(g,d[y]))return!1;return!0}return s.uniqueItems=function(h,d,y,x){if(d.uniqueItems===!0&&this.types.array(h)){var p=new t(h,d,y,x);return h.every(m)||p.addError({name:"uniqueItems",message:"contains duplicate item"}),p}},s.dependencies=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x);for(var w in d.dependencies)if(h[w]!==void 0){var v=d.dependencies[w],S=x.makeChild(v,w);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(R){h[R]===void 0&&p.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(h,v,y,S);p.instance!==E.instance&&(p.instance=E.instance),E&&E.errors.length&&(p.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),p.importErrors(E))}}return p}},s.enum=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.enum))throw new r("enum expects an array",d);var p=new t(h,d,y,x);return d.enum.some(e.deepCompareStrict.bind(null,h))||p.addError({name:"enum",argument:d.enum,message:"is not one of enum values: "+d.enum.map(String).join(",")}),p},s.const=function(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x);return e.deepCompareStrict(d.const,h)||p.addError({name:"const",argument:d.const,message:"does not exactly match expected constant: "+d.const}),p},s.not=s.disallow=function(h,d,y,x){var p=this;if(h===void 0)return null;var w=new t(h,d,y,x),v=d.not||d.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(S){if(p.testType(h,d,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},hc=i,hc}var aa={},qm;function Uc(){if(qm)return aa;qm=1;var e=zn();aa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return aa.scan=function(i,s){function a(g,h){if(!h||typeof h!="object")return;if(h.$ref){let p=e.resolveUrl(g,h.$ref);m[p]=m[p]?m[p]+1:0;return}var d=h.$id||h.id;let y=e.resolveUrl(g,d);var x=d?y:g;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],h))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=h,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=h)}u(x+"/items",Array.isArray(h.items)?h.items:[h.items]),u(x+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),a(x+"/additionalItems",h.additionalItems),c(x+"/properties",h.properties),a(x+"/additionalProperties",h.additionalProperties),c(x+"/definitions",h.definitions),c(x+"/patternProperties",h.patternProperties),c(x+"/dependencies",h.dependencies),u(x+"/disallow",h.disallow),u(x+"/allOf",h.allOf),u(x+"/anyOf",h.anyOf),u(x+"/oneOf",h.oneOf),a(x+"/not",h.not)}function u(g,h){if(Array.isArray(h))for(var d=0;d<h.length;d++)a(g+"/"+d,h[d])}function c(g,h){if(!(!h||typeof h!="object"))for(var d in h)a(g+"/"+d,h[d])}var f={},m={};return a(i,s),new t(f,m)},aa}var gc,Zm;function aM(){if(Zm)return gc;Zm=1;var e=sM(),t=zn(),r=Uc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,c="/",f=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),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(d,y){var x=this;if(!d)return null;var p=r(y||c,d),w=y||d.$id||d.id;for(var v in p.id)this.schemas[v]=p.id[v];for(var v in p.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(d,y){if(Array.isArray(y))for(var x=0;x<y.length;x++)this.addSubSchema(d,y[x])},f.prototype.addSubSchemaObject=function(d,y){if(!(!y||typeof y!="object"))for(var x in y)this.addSubSchema(d,y[x])},f.prototype.setSchemas=function(d){this.schemas=d},f.prototype.getSchema=function(d){return this.schemas[d]},f.prototype.validate=function(d,y,x,p){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(!p){p=new u(y,x,[],v,Object.create(this.schemas)),p.schemas[v]||(p.schemas[v]=y);var S=r(v,y);for(var E in S.id){var R=S.id[E];p.schemas[E]=R}}if(x.required&&d===void 0){var T=new i(d,y,x,p);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(d,y,x,p);if(T){if(x.throwAll&&T.errors.length)throw new s(T)}else throw new Error("Result undefined");return T};function m(h){var d=typeof h=="string"?h:h.$ref;return typeof d=="string"?d:!1}f.prototype.validateSchema=function(d,y,x,p){var w=new i(d,y,x,p);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:p};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,p));var S=m(y);if(S){var E=this.resolve(y,S,p),R=new u(E.subschema,x,p.path,E.switchSchema,p.schemas);return this.validateSchema(d,E.subschema,x,R)}var T=x&&x.skipAttributes||[];for(var k in y)if(!e.ignoreProperties[k]&&T.indexOf(k)<0){var U=null,D=this.attributes[k];if(D)U=D.call(this,d,y,x,p);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,y);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var N=x.rewrite.call(this,d,y,x,p);w.instance=N}return w},f.prototype.schemaTraverser=function(d,y){d.schema=t.deepMerge(d.schema,this.superResolve(y,d.ctx))},f.prototype.superResolve=function(d,y){var x=m(d);return x?this.resolve(d,x,y).subschema:d},f.prototype.resolve=function(d,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+">",d);var S=t.objectGetPath(x.schemas[v],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+v+">",d);return{subschema:S,switchSchema:y}},f.prototype.testType=function(d,y,x,p,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,d);if(w&&typeof w=="object"){var v=this.validateSchema(d,w,x,p);return v===void 0||!(v&&v.errors.length)}return!0}};var g=f.prototype.types={};return g.string=function(d){return typeof d=="string"},g.number=function(d){return typeof d=="number"&&isFinite(d)},g.integer=function(d){return typeof d=="number"&&d%1===0},g.boolean=function(d){return typeof d=="boolean"},g.array=function(d){return Array.isArray(d)},g.null=function(d){return d===null},g.date=function(d){return d instanceof Date},g.any=function(d){return!0},g.object=function(d){return d&&typeof d=="object"&&!Array.isArray(d)&&!(d instanceof Date)},gc=f,gc}var Gm;function uM(){if(Gm)return _r;Gm=1;var e=_r.Validator=aM();return _r.ValidatorResult=zn().ValidatorResult,_r.ValidatorResultError=zn().ValidatorResultError,_r.ValidationError=zn().ValidationError,_r.SchemaError=zn().SchemaError,_r.SchemaScanResult=Uc().SchemaScanResult,_r.scan=Uc().scan,_r.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},_r}var lM=uM();const z0=(e,t,r)=>{const i=e instanceof RegExp?Vm(e,r):e,s=t instanceof RegExp?Vm(t,r):t,a=i!==null&&s!=null&&cM(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)}},Vm=(e,t)=>{const r=t.match(e);return r?r[0]:null},cM=(e,t,r)=>{let i,s,a,u,c,f=r.indexOf(e),m=r.indexOf(t,f+1),g=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;g>=0&&!c;){if(g===f)i.push(g),f=r.indexOf(e,g+1);else if(i.length===1){const h=i.pop();h!==void 0&&(c=[h,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=m),m=r.indexOf(t,g+1);g=f<m&&f>=0?f:m}i.length&&u!==void 0&&(c=[a,u])}return c},B0="\0SLASH"+Math.random()+"\0",U0="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",W0="\0COMMA"+Math.random()+"\0",H0="\0PERIOD"+Math.random()+"\0",fM=new RegExp(B0,"g"),dM=new RegExp(U0,"g"),pM=new RegExp(Uf,"g"),hM=new RegExp(W0,"g"),gM=new RegExp(H0,"g"),mM=/\\\\/g,vM=/\\{/g,yM=/\\}/g,bM=/\\,/g,wM=/\\./g;function mc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function xM(e){return e.replace(mM,B0).replace(vM,U0).replace(yM,Uf).replace(bM,W0).replace(wM,H0)}function SM(e){return e.replace(fM,"\\").replace(dM,"{").replace(pM,"}").replace(hM,",").replace(gM,".")}function q0(e){if(!e)return[""];const t=[],r=z0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=q0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function EM(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),To(xM(e),!0).map(SM)):[]}function _M(e){return"{"+e+"}"}function TM(e){return/^-?0\d/.test(e)}function OM(e,t){return e<=t}function AM(e,t){return e>=t}function To(e,t){const r=[],i=z0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?To(i.post,!1):[""];if(/\$$/.test(i.pre))for(let u=0;u<a.length;u++){const c=s+"{"+i.body+"}"+a[u];r.push(c)}else{const u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=u||c,m=i.body.indexOf(",")>=0;if(!f&&!m)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,To(e)):[e];let g;if(f)g=i.body.split(/\.\./);else if(g=q0(i.body),g.length===1&&g[0]!==void 0&&(g=To(g[0],!1).map(_M),g.length===1))return a.map(d=>i.pre+g[0]+d);let h;if(f&&g[0]!==void 0&&g[1]!==void 0){const d=mc(g[0]),y=mc(g[1]),x=Math.max(g[0].length,g[1].length);let p=g.length===3&&g[2]!==void 0?Math.abs(mc(g[2])):1,w=OM;y<d&&(p*=-1,w=AM);const S=g.some(TM);h=[];for(let E=d;w(E,y);E+=p){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const T=x-R.length;if(T>0){const k=new Array(T+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}h.push(R)}}else{h=[];for(let d=0;d<g.length;d++)h.push.apply(h,To(g[d],!1))}for(let d=0;d<h.length;d++)for(let y=0;y<a.length;y++){const x=s+h[d]+a[y];(!t||f||x)&&r.push(x)}}return r}const RM=1024*64,Da=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>RM)throw new TypeError("pattern is too long")},PM={"[: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]},bo=e=>e.replace(/[[\]\\-]/g,"\\$&"),CM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Km=e=>e.join(""),kM=(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,g=r,h="";e:for(;a<e.length;){const p=e.charAt(a);if((p==="!"||p==="^")&&a===r+1){m=!0,a++;continue}if(p==="]"&&u&&!f){g=a+1;break}if(u=!0,p==="\\"&&!f){f=!0,a++;continue}if(p==="["&&!f){for(const[w,[v,S,E]]of Object.entries(PM))if(e.startsWith(w,a)){if(h)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(v):i.push(v),c=c||S;continue e}}if(f=!1,h){p>h?i.push(bo(h)+"-"+bo(p)):p===h&&i.push(bo(p)),h="",a++;continue}if(e.startsWith("-]",a+1)){i.push(bo(p+"-")),a+=2;continue}if(e.startsWith("-",a+1)){h=p,a+=2;continue}i.push(bo(p)),a++}if(g<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 p=i[0].length===2?i[0].slice(-1):i[0];return[CM(p),!1,g-r,!1]}const d="["+(m?"^":"")+Km(i)+"]",y="["+(m?"":"^")+Km(s)+"]";return[i.length&&s.length?"("+d+"|"+y+")":i.length?d:y,c,g-r,!0]},Oo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),IM=new Set(["!","?","+","*","@"]),Ym=e=>IM.has(e),$M="(?!(?:^|/)\\.\\.?(?:$|/))",ua="(?!\\.)",LM=new Set(["[","."]),MM=new Set(["..","."]),DM=new Set("().*{}+?[]^$\\!"),NM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Wf="[^/]",Xm=Wf+"*?",Jm=Wf+"+?";var ct,pt,Vr,Ge,st,gn,Bn,mn,Or,Un,Uo,Yn,Z0,bn,ba,Wc,G0;const Pt=class Pt{constructor(t,r,i={}){Et(this,Yn);ve(this,"type");Et(this,ct);Et(this,pt);Et(this,Vr,!1);Et(this,Ge,[]);Et(this,st);Et(this,gn);Et(this,Bn);Et(this,mn,!1);Et(this,Or);Et(this,Un);Et(this,Uo,!1);this.type=t,t&&rt(this,pt,!0),rt(this,st,r),rt(this,ct,re(this,st)?re(re(this,st),ct):this),rt(this,Or,re(this,ct)===this?i:re(re(this,ct),Or)),rt(this,Bn,re(this,ct)===this?[]:re(re(this,ct),Bn)),t==="!"&&!re(re(this,ct),mn)&&re(this,Bn).push(this),rt(this,gn,re(this,st)?re(re(this,st),Ge).length:0)}get hasMagic(){if(re(this,pt)!==void 0)return re(this,pt);for(const t of re(this,Ge))if(typeof t!="string"&&(t.type||t.hasMagic))return rt(this,pt,!0);return re(this,pt)}toString(){return re(this,Un)!==void 0?re(this,Un):this.type?rt(this,Un,this.type+"("+re(this,Ge).map(t=>String(t)).join("|")+")"):rt(this,Un,re(this,Ge).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Pt&&re(r,st)===this))throw new Error("invalid part: "+r);re(this,Ge).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ge).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,Ge).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ct)||re(re(this,ct),mn)&&((r=re(this,st))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ct)===this)return!0;if(!((r=re(this,st))!=null&&r.isStart()))return!1;if(re(this,gn)===0)return!0;const t=re(this,st);for(let i=0;i<re(this,gn);i++){const s=re(t,Ge)[i];if(!(s instanceof Pt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,ct)===this||((r=re(this,st))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,st))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,st))==null?void 0:s.isEnd();const t=re(this,st)?re(re(this,st),Ge).length:0;return re(this,gn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Pt(this.type,t);for(const i of re(this,Ge))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Pt(null,void 0,r);return $e(s=Pt,bn,ba).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,ct))return re(this,ct).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,pt)||re(this,Or).nocase&&!re(this,Or).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Or).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Or)}toRegExpSource(t){var f;const r=t??!!re(this,Or).dot;if(re(this,ct)===this&&$e(this,Yn,Z0).call(this),!this.type){const m=this.isStart()&&this.isEnd(),g=re(this,Ge).map(x=>{var E;const[p,w,v,S]=typeof x=="string"?$e(E=Pt,bn,G0).call(E,x,re(this,pt),m):x.toRegExpSource(t);return rt(this,pt,re(this,pt)||v),rt(this,Vr,re(this,Vr)||S),p}).join("");let h="";if(this.isStart()&&typeof re(this,Ge)[0]=="string"&&!(re(this,Ge).length===1&&MM.has(re(this,Ge)[0]))){const p=LM,w=r&&p.has(g.charAt(0))||g.startsWith("\\.")&&p.has(g.charAt(2))||g.startsWith("\\.\\.")&&p.has(g.charAt(4)),v=!r&&!t&&p.has(g.charAt(0));h=w?$M:v?ua:""}let d="";return this.isEnd()&&re(re(this,ct),mn)&&((f=re(this,st))==null?void 0:f.type)==="!"&&(d="(?:$|\\/)"),[h+g+d,Oo(g),rt(this,pt,!!re(this,pt)),re(this,Vr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,Yn,Wc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString();return rt(this,Ge,[m]),this.type=null,rt(this,pt,void 0),[m,Oo(this.toString()),!1,!1]}let u=!i||t||r||!ua?"":$e(this,Yn,Wc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let c="";if(this.type==="!"&&re(this,Uo))c=(this.isStart()&&!r?ua:"")+Jm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ua:"")+Xm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+m}return[c,Oo(a),rt(this,pt,!!re(this,pt)),re(this,Vr)]}};ct=new WeakMap,pt=new WeakMap,Vr=new WeakMap,Ge=new WeakMap,st=new WeakMap,gn=new WeakMap,Bn=new WeakMap,mn=new WeakMap,Or=new WeakMap,Un=new WeakMap,Uo=new WeakMap,Yn=new WeakSet,Z0=function(){if(this!==re(this,ct))throw new Error("should only call on root");if(re(this,mn))return this;this.toString(),rt(this,mn,!0);let t;for(;t=re(this,Bn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,st);for(;i;){for(let s=re(r,gn)+1;!i.type&&s<re(i,Ge).length;s++)for(const a of re(t,Ge)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,Ge)[s])}r=i,i=re(r,st)}}return this},bn=new WeakSet,ba=function(t,r,i,s){var y,x;let a=!1,u=!1,c=-1,f=!1;if(r.type===null){let p=i,w="";for(;p<t.length;){const v=t.charAt(p++);if(a||v==="\\"){a=!a,w+=v;continue}if(u){p===c+1?(v==="^"||v==="!")&&(f=!0):v==="]"&&!(p===c+2&&f)&&(u=!1),w+=v;continue}else if(v==="["){u=!0,c=p,f=!1,w+=v;continue}if(!s.noext&&Ym(v)&&t.charAt(p)==="("){r.push(w),w="";const S=new Pt(v,r);p=$e(y=Pt,bn,ba).call(y,t,S,p,s),r.push(S);continue}w+=v}return r.push(w),p}let m=i+1,g=new Pt(null,r);const h=[];let d="";for(;m<t.length;){const p=t.charAt(m++);if(a||p==="\\"){a=!a,d+=p;continue}if(u){m===c+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(m===c+2&&f)&&(u=!1),d+=p;continue}else if(p==="["){u=!0,c=m,f=!1,d+=p;continue}if(Ym(p)&&t.charAt(m)==="("){g.push(d),d="";const w=new Pt(p,g);g.push(w),m=$e(x=Pt,bn,ba).call(x,t,w,m,s);continue}if(p==="|"){g.push(d),d="",h.push(g),g=new Pt(null,r);continue}if(p===")")return d===""&&re(r,Ge).length===0&&rt(r,Uo,!0),g.push(d),d="",r.push(...h,g),m;d+=p}return r.type=null,rt(r,pt,void 0),rt(r,Ge,[t.substring(i-1)]),m},Wc=function(t){return re(this,Ge).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return rt(this,Vr,re(this,Vr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},G0=function(t,r,i=!1){let s=!1,a="",u=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=(DM.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[m,g,h,d]=kM(t,c);if(h){a+=m,u=u||g,c+=h-1,r=r||d;continue}}if(f==="*"){i&&t==="*"?a+=Jm:a+=Xm,r=!0;continue}if(f==="?"){a+=Wf,r=!0;continue}a+=NM(f)}return[a,Oo(t),!!r,u]},Et(Pt,bn);let Na=Pt;const FM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(Da(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ru(t,r).match(e)),jM=/^\*+([^+@!?\*\[\(]*)$/,zM=e=>t=>!t.startsWith(".")&&t.endsWith(e),BM=e=>t=>t.endsWith(e),UM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),WM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),HM=/^\*+\.\*+$/,qM=e=>!e.startsWith(".")&&e.includes("."),ZM=e=>e!=="."&&e!==".."&&e.includes("."),GM=/^\.\*+$/,VM=e=>e!=="."&&e!==".."&&e.startsWith("."),KM=/^\*+$/,YM=e=>e.length!==0&&!e.startsWith("."),XM=e=>e.length!==0&&e!=="."&&e!=="..",JM=/^\?+([^+@!?\*\[\(]*)?$/,QM=([e,t=""])=>{const r=V0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},eD=([e,t=""])=>{const r=K0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},tD=([e,t=""])=>{const r=K0([e]);return t?i=>r(i)&&i.endsWith(t):r},rD=([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(".")},K0=([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",Qm={win32:{sep:"\\"},posix:{sep:"/"}},nD=Y0==="win32"?Qm.win32.sep:Qm.posix.sep;Tt.sep=nD;const or=Symbol("globstar **");Tt.GLOBSTAR=or;const iD="[^/]",oD=iD+"*?",sD="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",aD="(?:(?!(?:\\/|^)\\.).)*?",uD=(e,t={})=>r=>Tt(r,e,t);Tt.filter=uD;const ir=(e,t={})=>Object.assign({},e,t),lD=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,s,a={})=>t(i,s,ir(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,ir(e,a))}static defaults(s){return t.defaults(ir(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,ir(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,ir(e,a))}},unescape:(i,s={})=>t.unescape(i,ir(e,s)),escape:(i,s={})=>t.escape(i,ir(e,s)),filter:(i,s={})=>t.filter(i,ir(e,s)),defaults:i=>t.defaults(ir(e,i)),makeRe:(i,s={})=>t.makeRe(i,ir(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,ir(e,s)),match:(i,s,a={})=>t.match(i,s,ir(e,a)),sep:t.sep,GLOBSTAR:or})};Tt.defaults=lD;const X0=(e,t={})=>(Da(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:EM(e));Tt.braceExpand=X0;const cD=(e,t={})=>new ru(e,t).makeRe();Tt.makeRe=cD;const fD=(e,t,r={})=>{const i=new ru(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=fD;const ev=/[?*]|[+@!]\(.*?\)|\[|\]/,dD=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ru{constructor(t,r={}){ve(this,"options");ve(this,"set");ve(this,"pattern");ve(this,"windowsPathsNoEscape");ve(this,"nonegate");ve(this,"negate");ve(this,"comment");ve(this,"empty");ve(this,"preserveMultipleSlashes");ve(this,"partial");ve(this,"globSet");ve(this,"globParts");ve(this,"nocase");ve(this,"isWindows");ve(this,"platform");ve(this,"windowsNoMagicRoot");ve(this,"regexp");Da(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Y0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!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]==="?"||!ev.test(a[2]))&&!ev.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(g=>this.parse(g))];if(m)return[a[0],...a.slice(1).map(g=>this.parse(g))]}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(let i=0;i<t.length;i++)for(let s=0;s<t[i].length;s++)t[i][s]==="**"&&(t[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!=="**"&&(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 g=i.slice(0);g[s]="**",t.push(g),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){const s=this.options;if(this.isWindows){const p=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!p&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),v=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!v&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:p?0:void 0,R=S?3:v?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[T,k]=[t[E],r[R]];T.toLowerCase()===k.toLowerCase()&&(r[R]=T,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var u=0,c=0,f=t.length,m=r.length;u<f&&c<m;u++,c++){this.debug("matchOne loop");var g=r[c],h=t[u];if(this.debug(r,g,h),g===!1)return!1;if(g===or){this.debug("GLOBSTAR",[r,g,h]);var d=u,y=c+1;if(y===m){for(this.debug("** at the end");u<f;u++)if(t[u]==="."||t[u]===".."||!s.dot&&t[u].charAt(0)===".")return!1;return!0}for(;d<f;){var x=t[d];if(this.debug(`
|
|
206
|
+
globstar while`,t,d,r,y,x),this.matchOne(t.slice(d),r.slice(y),i))return this.debug("globstar found match!",d,f,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,d,r,y);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
|
|
207
|
+
>>> no match, partial?`,t,d,r,y),d===f))}let p;if(typeof g=="string"?(p=h===g,this.debug("string match",g,h,p)):(p=g.test(h),this.debug("pattern match",g,h,p)),!p)return!1}if(u===f&&c===m)return!0;if(u===f)return i;if(c===m)return u===f-1&&t[u]==="";throw new Error("wtf?")}braceExpand(){return X0(this.pattern,this.options)}parse(t){Da(t);const r=this.options;if(t==="**")return or;if(t==="")return"";let i,s=null;(i=t.match(KM))?s=r.dot?XM:YM:(i=t.match(jM))?s=(r.nocase?r.dot?WM:UM:r.dot?BM:zM)(i[1]):(i=t.match(JM))?s=(r.nocase?r.dot?eD:QM:r.dot?tD:rD)(i):(i=t.match(HM))?s=r.dot?ZM:qM:(i=t.match(GM))&&(s=VM);const a=Na.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?oD:r.dot?sD:aD,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(g=>{if(g instanceof RegExp)for(const h of g.flags.split(""))s.add(h);return typeof g=="string"?dD(g):g===or?or:g._src});return m.forEach((g,h)=>{const d=m[h+1],y=m[h-1];g!==or||y===or||(y===void 0?d!==void 0&&d!==or?m[h+1]="(?:\\/|"+i+"\\/)?"+d:m[h]=i:d===void 0?m[h-1]=y+"(?:\\/|"+i+")?":d!==or&&(m[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+d,m[h+1]=or))}),m.filter(g=>g!==or).join("/")}).join("|");const[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+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(let c=0;c<a.length;c++){const f=a[c];let m=s;if(i.matchBase&&f.length===1&&(m=[u]),this.matchOne(m,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=Na;Tt.Minimatch=ru;Tt.escape=FM;Tt.unescape=Oo;const Bo="/$shared",pD={"**/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 J0(e){const t=Object.entries(pD).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function nu(e){var i;const t=(i=J0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Bo}/`,"Shared/");Hf({name:r,content:t,asText:typeof t=="string"})}async function hD(){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(`${Bo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){Q0(r)&&nu(`${Bo}/${t}`)}}function Yo({path:e,createIfNotExists:t=!1}){const r=`${Bo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=J0(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 lM.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(Q0(i)&&t){const s=gD(i,e);u0.next({message:s,kind:"warning"}),nu(r)}throw i})}function Q0(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 gD(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 mD(e){return Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vD(e){return Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const eb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Mf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function yD(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:En.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),eb()}}async function tb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function bD(...e){return(await Promise.all(e.map(i=>tb({root:i,verb:En.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function wD(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:Pe.entries(i.components).map(([a,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const m=Zn.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(g=>s.get(g)||g)),c.linkedNodes&&(c.linkedNodes=Pe.entries(c.linkedNodes).reduce((g,[h,d])=>({...g,[h]:s.get(d)||d}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=s.get(g.loader)||g.loader),g))),{...a,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function xD(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Je.METHOD,Je.CLASS].includes(t.type)?eu(t.content):t.content}))}function SD(e){return e.type==="folder"?Ne(Ko,{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 ED(e){return e.type==="folder"?(await Ne(Ko,{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 _D(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function OD(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function AD(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:En.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function RD(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 PD(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function CD(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 kD({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 ID(e={}){try{return{...await Yo({path:"shared_datasources.json",...e}),...$a}}catch{return{...$a}}}async function $D(e={}){try{return await Yo({path:"shared_app_events.json",...e})}catch{return[]}}async function LD(e={}){try{return await Yo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function MD(e={}){try{return await Yo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function DD(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function ND(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const FD=Nf(),jD=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Pe.omit(e,Pe.keys($a))};return FD(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},zD=Nf(),BD=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return zD(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Hf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:En.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Df(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},UD=async e=>await Hf({name:"crafted_components.json",path:yn.WEBFORMS,content:e});function WD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function HD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZD(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)?eu(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&&nu(e.path),t})}function GD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VD(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function KD(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 YD(e){const t=VD(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=KD(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function XD(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=eu(s.content);const{params:a,result:u}=YD(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var rb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(rb||{});function JD(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function QD(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var nb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(nb||{}),ib=(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))(ib||{}),ob=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(ob||{}),sb=(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))(sb||{}),ab=(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))(ab||{});const e2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},t2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},ub=z.createContext(void 0),r2=z.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const i=z.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return $.jsx(ub.Provider,{value:i,children:e})});function n2(){const e=z.useContext(ub);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}exports.API_PREFIX=at;exports.AppLoader=xI;exports.BaseCheckboxIcon=qy;exports.Checkbox=qI;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=e2;exports.DatasourcesActions=a0;exports.DebuggerActions=f0;exports.DefaultCheckboxIcon=Zy;exports.DesignerRequestVerb=En;exports.Dialog=rA;exports.DialogBody=gv;exports.EActivity=rb;exports.EDITOR=t2;exports.EIDENTIFIERS=sb;exports.EPermissionType=De;exports.ERROR_CODES=ab;exports.ESetting=ib;exports.ESubPermissionType=qe;exports.EWebFormStyleClassScope=nb;exports.EXT_API_PREFIX=Ko;exports.FileFolderType=Je;exports.FloatingTooltip=UI;exports.FolderRootPath=yn;exports.FolderRootType=Lf;exports.HTTPError=Bc;exports.HTTP_HANDLERS_TAB_PATH=h0;exports.IPreemptive=zo;exports.IPublished=R0;exports.IPublishedRestScope=jf;exports.IdentityProvider=p$;exports.Incase=pa;exports.IndentLines=Pv;exports.InvalidJsonError=VI;exports.LOCALIZATION_TAB_PATH=g0;exports.LOCATION_DATASOURCE_ID=T0;exports.LogoSVG=By;exports.LspActions=c0;exports.MAX_FILE_NAME_LENGTH=If;exports.MODEL_TAB_PATH=nL;exports.Modal=TI;exports.ModalCloseReason=yi;exports.ModalColor=Hn;exports.ModalIcons=$c;exports.ModalType=Ef;exports.Mutex=m0;exports.NameError=$f;exports.Overlay=hv;exports.PANEL_EXPANDED_HEIGHT=va;exports.PANEL_INITIAL_HEIGHT=Nn;exports.PERMISSIONS=zf;exports.Panel=HI;exports.PopperTooltip=zy;exports.Portal=nv;exports.PublishOptions=kL;exports.QODLY_NAMESPACE=_o;exports.ROLES_TAB_PATH=d0;exports.RemoteDebuggerMode=Mf;exports.SETTINGS_TAB_PATH=p0;exports.SHARED_API_PREFIX=Bo;exports.SHARED_USER_NAMESPACE=$a;exports.SearchInput=GI;exports.SourceCodeDescriptor=ob;exports.StudioContextProvider=r2;exports.Switcher=Cv;exports.TITLE_DATASOURCE_ID=A0;exports.TabEventsActions=l0;exports.Tip=hy;exports.TipsProvider=PC;exports.Toast=lR;exports.ToolbarIcon=ZI;exports.Tooltip=bI;exports.Tree=AR;exports.TreeIcon=Tv;exports.TreeNode=ef;exports.USER_LANGUAGE_DATASOURCE_ID=O0;exports.WebformActions=s0;exports.WebformEventsActions=jo;exports.ZoomComponent=RI;exports.ZoomLevel=Wy;exports._isArrayDatasource=TL;exports._isObjectDatasource=OL;exports.actionsToPrivs=L0;exports.addAttributesToContent=$L;exports.addFolder=_D;exports.addPermission=GL;exports.addPrivilegeIn=jL;exports.allowed=NL;exports.by=v0;exports.byId=cL;exports.byPath=fL;exports.callServerSideParser=oM;exports.checkUpdates=mD;exports.children=Ma;exports.createFolder=WD;exports.createPrivilege=BL;exports.createRole=QL;exports.datasourcesSubject=G$;exports.debuggerSubject=X$;exports.dropFile=ED;exports.dropFolder=OD;exports.exists=dL;exports.extractWebformName=sL;exports.filterBySeriousError=j0;exports.formatErrorsAsBulletToast=nM;exports.generateUUID=LL;exports.getAppSettings=yD;exports.getCatalog=PD;exports.getDatasourceId=pL;exports.getDefaultAppSettings=eb;exports.getDictByName=D0;exports.getDisplayableFeedbackErrors=rM;exports.getErrorListFromPayload=F0;exports.getFile=xD;exports.getFileContent=kD;exports.getFileExtentionFromType=oL;exports.getFilenameAndTypeFromPath=iL;exports.getFilenameFromType=aL;exports.getFilesInfo=AD;exports.getFolder=tb;exports.getFolders=bD;exports.getFunctionContent=XD;exports.getGraphData=ZL;exports.getInheritedResources=N0;exports.getMonacoTheme=ND;exports.getNodeInfo=ZD;exports.getPrivilegeById=Xr;exports.getPromotions=JL;exports.getResourceFromType=Bf;exports.getSavedConditions=MD;exports.getSharedAppEvents=$D;exports.getSharedCSS=LD;exports.getSharedDatasources=ID;exports.getSharedResource=Yo;exports.getSupportedLanguages=CD;exports.getTypeFromExtension=Df;exports.getUserPrivileges=DD;exports.getWebForm=wD;exports.hasAttributesString=C0;exports.http=Ne;exports.i18nSubject=Q$;exports.initializeDefaultProjectFiles=hD;exports.installUpdates=vD;exports.isArrayDatasource=S0;exports.isDataClassMethod=vL;exports.isDataStoreMethod=mL;exports.isDateDatasource=AL;exports.isEntity=EL;exports.isEntityDatasource=wL;exports.isEntityMethod=yL;exports.isEntitySelection=_L;exports.isEntitySelectionDatasource=xL;exports.isEntitySelectionMethod=bL;exports.isObjectAttribute=hL;exports.isObjectDatasource=E0;exports.isRelatedAttribute=gL;exports.isRelatedEntitiesAttribute=w0;exports.isRelatedEntityAttribute=x0;exports.isSameNamespace=RL;exports.isScalarDatasource=_0;exports.isSimpleAttribute=b0;exports.isSimpleDatasource=SL;exports.loadDS=PL;exports.loadI18n=CL;exports.localeCompare=y0;exports.log=JD;exports.login=RD;exports.lspSubject=Y$;exports.moveItem=qD;exports.outBy=uL;exports.outById=lL;exports.parents=tu;exports.parseAttributes=IL;exports.populateShallow=WL;exports.queue=Nf;exports.removeAttributesString=k0;exports.removeItem=HD;exports.removeMultiplePermissions=KL;exports.removePermission=VL;exports.removePrivilege=FL;exports.removePrivilegeFrom=zL;exports.removeRole=eM;exports.renameFile=SD;exports.renameFolder=TD;exports.renamePrivilege=UL;exports.resetResources=YL;exports.rolesToAPI=qL;exports.sanitizeContent=eu;exports.sanitizeNameCY=ML;exports.sanitizePermissions=M0;exports.sanitizePrivileges=I0;exports.sanitizeRoles=HL;exports.saveContent=GD;exports.saveRole=tM;exports.setCraftedComponents=UD;exports.setFileContent=Hf;exports.setSharedAppEvents=BD;exports.setSharedSources=jD;exports.sortPrivileges=$0;exports.splitDatasourceID=Ff;exports.stringifyAttributes=P0;exports.tabEventsSubject=K$;exports.tasksManagerSubject=J$;exports.toastSubject=u0;exports.togglePermission=XL;exports.trackEvent=QD;exports.transformDates=iM;exports.tryCreateSharedResource=nu;exports.uniquePush=lr;exports.useDidMountEffect=KI;exports.useDoubleClick=v$;exports.useDsChangeRenderer=L$;exports.useDsRendererAdapter=$$;exports.useEnhancedState=I$;exports.useFeatureFlags=d$;exports.useForwardedRef=f$;exports.useHotkeys=a$;exports.useIdentity=h$;exports.useOutsideClick=u$;exports.usePrevious=l$;exports.useStateObject=g$;exports.useStateRef=c$;exports.useStudioContext=n2;exports.useTip=py;exports.validateName=Qa;exports.validateServerSide=eL;exports.validateValue=tL;exports.webformEventsSubject=Ia;exports.webformSubject=V$;
|
|
208
208
|
//# sourceMappingURL=index.cjs.js.map
|