@ws-ui/shared 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -123,7 +123,7 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
123
123
  `)},sT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return iT(a)},[a]);return L.createElement(oT,{styles:aT(u,!r,a,n?"":"!important")})},El=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{El=!1}var Ei=El?{passive:!1}:!1,uT=function(e){return e.tagName==="TEXTAREA"},bv=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!uT(e)&&n[r]==="visible")},lT=function(e){return bv(e,"overflowY")},cT=function(e){return bv(e,"overflowX")},Op=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=_v(e,o);if(a){var u=Sv(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},fT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},dT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},_v=function(e,r){return e==="v"?lT(r):cT(r)},Sv=function(e,r){return e==="v"?fT(r):dT(r)},pT=function(e,r){return e==="h"&&r==="rtl"?-1:1},hT=function(e,r,n,o,a){var u=pT(e,window.getComputedStyle(r).direction),l=u*o,f=n.target,d=r.contains(f),m=!1,g=l>0,_=0,O=0;do{var v=Sv(e,f),S=v[0],y=v[1],E=v[2],D=y-E-u*S;(S||D)&&_v(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&(a&&Math.abs(_)<1||!a&&l>_)||!g&&(a&&Math.abs(O)<1||!a&&-l>O))&&(m=!0),m},Oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tp=function(e){return[e.deltaX,e.deltaY]},Cp=function(e){return e&&"current"in e?e.current:e},vT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},mT=function(e){return`
124
124
  .block-interactivity-`.concat(e,` {pointer-events: none;}
125
125
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
126
- `)},gT=0,xi=[];function yT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(gT++)[0],u=L.useState(wv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=fo([e.lockRef.current],(e.shards||[]).map(Cp),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Oa(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,U=y.target,H=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&H==="h"&&U.type==="range")return!1;var j=Op(H,U);if(!j)return!0;if(j?T=H:(T=H==="v"?"h":"v",j=Op(H,U)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return hT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!xi.length||xi[xi.length-1]!==u)){var D="deltaY"in E?Tp(E):Oa(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&vT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Cp).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),m=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:wT(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Oa(y),o.current=void 0},[]),_=L.useCallback(function(y){m(y.type,Tp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){m(y.type,Oa(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return xi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,Ei),document.addEventListener("touchmove",d,Ei),document.addEventListener("touchstart",g,Ei),function(){xi=xi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,Ei),document.removeEventListener("touchmove",d,Ei),document.removeEventListener("touchstart",g,Ei)}},[]);var v=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:mT(a)}):null,v?L.createElement(sT,{gapMode:e.gapMode}):null)}function wT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const bT=XO(yv,yT);var Ev=L.forwardRef(function(e,r){return L.createElement(os,Dn({},e,{ref:r,sideCar:bT}))});Ev.classNames=os.classNames;const _T=Ev,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ST=L["useId".toString()]||(()=>{});let ET=0;function xT(e){const[r,n]=L.useState(ST());return po(()=>{e||n(o=>o??String(ET++))},[e]),e||(r?`radix-${r}`:"")}function xv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Zr(...e){return L.useCallback(xv(...e),e)}const Ov=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Rp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Rp(a)?L.createElement(xl,yt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,yt({},o,{ref:r}),n)});Ov.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...TT(o,n.props),ref:xv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const OT=({children:e})=>L.createElement(L.Fragment,null,e);function Rp(e){return L.isValidElement(e)&&e.type===OT}function TT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Ov:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,yt({},u,{ref:o}))})}),{}),Tv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),m=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[v,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ta(m.current);_.current=v==="mounted"?y:"none"},[v]),po(()=>{const y=m.current,E=g.current;if(E!==l){const D=_.current,I=Ta(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),po(()=>{if(f){const y=D=>{const I=Ta(m.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ta(m.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:L.useCallback(y=>{y&&(m.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Zr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Tv.displayName="Presence";let Gu=0;function CT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Pp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Pp()),Gu++,()=>{Gu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Gu--}},[])}function Pp(){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 Cv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return po(()=>{d({})},[]),f?go.createPortal(L.createElement(Li.div,yt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Jr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Ap={bubbles:!1,cancelable:!0},RT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),m=Jr(a),g=Jr(u),_=L.useRef(null),O=Zr(r,y=>d(y)),v=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(v.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Wr(_.current,{select:!0})},E=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Wr(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,v.paused]),L.useEffect(()=>{if(f){Mp.add(v);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Ap);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Wr(T,{select:C}),document.activeElement!==k)return}((y=Ip(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Wr(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Ap);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Wr(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Mp.remove(v)},0)}}var y},[f,m,g,v]);const S=L.useCallback(y=>{if(!n&&!o||v.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const U=Ip(T),H=Lp(U,T),j=Lp(U.reverse(),T);return[H,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Wr(k,{select:!0})):(y.preventDefault(),n&&Wr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,v.paused]);return L.createElement(Li.div,yt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Ip(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Lp(e,r){for(const n of e)if(!PT(n,{upTo:r}))return n}function PT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wr(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Mp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=Dp(e,r),e.unshift(r)},remove(r){var n;e=Dp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function Dp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function AT(e){const r=Jr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let kp,Ca=0;function IT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=kp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ca===0&&(kp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Kr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const LT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,m=L.useContext(LT),[g,_]=L.useState(null),[,O]=L.useState({}),v=Zr(r,U=>_(U)),S=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=m.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&$p("dismissableLayer.pointerDownOutside",H,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(U=>{const H=U.target,j=[...m.branches].some(J=>J.contains(H));C&&!j&&(a==null||a(U),l==null||l(U),U.defaultPrevented||f==null||f())}),T=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&$p("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(U=>{const H=U.target;[...m.branches].some(j=>j.contains(H))||(u==null||u(U),l==null||l(U),U.defaultPrevented||f==null||f())});return AT(U=>{D===m.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),IT({disabled:n}),L.useEffect(()=>{g&&(n&&m.layersWithOutsidePointerEventsDisabled.add(g),m.layers.add(g),Np())},[g,n,m]),L.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Np())},[g,m]),L.useEffect(()=>{const U=()=>O({});return document.addEventListener("dismissableLayer.update",U),()=>document.removeEventListener("dismissableLayer.update",U)},[]),L.createElement(Li.div,yt({},d,{ref:v,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Kr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Kr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Kr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function Np(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function $p(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function jp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,f=m.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function DT(e,r){const n=Hr.get(e);return n===void 0?(Hr.set(e,{rect:{},callbacks:[r]}),Hr.size===1&&(Ol=requestAnimationFrame(Rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Hr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Hr.delete(e),Hr.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Hr=new Map;function Rv(){const e=[];Hr.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Ol=requestAnimationFrame(Rv)}function kT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=DT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Pv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(m){const{scope:g,children:_,...O}=m,v=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(v.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(m,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},NT(o,...r)]}function NT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function $T({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:m,collisionTolerance:g=0}){if(!e||!r||!m)return{popperStyles:jT,arrowStyles:Ku};const _=function(H,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Fp(j,H,"x"),se=Fp(j,H,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const H=Wp(O);let j=Ku;return n&&(j=Hp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Up(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...r,...O}),S=(y=m,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=zp(v,S),I=_[Bp(a)][l],C=function(H,j,J){const ee=Bp(H);return j[H]&&!J[ee]?ee:H}(a,D,zp(DOMRect.fromRect({...r,...I}),S)),k=function(H,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>H[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Wp(_[C][k]);let U=Ku;return n&&(U=Hp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":Up(r,C,k,o,n)},arrowStyles:U,placedSide:C,placedAlign:k}}function Fp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Wp(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 Up(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let m="",g="";return u?(m={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${m} ${g}`}const jT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ku={position:"absolute",opacity:0};function Hp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),m={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:FT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${l}px`),a==="end"&&(m.bottom=`${n}px`)),m}function FT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Bp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function zp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Av,Iv]=Pv("Popper"),[WT,Lv]=Av("Popper"),UT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(WT,{scope:r,anchor:o,onAnchorChange:a},n)},HT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Lv("PopperAnchor",n),l=L.useRef(null),f=Zr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,yt({},a,{ref:f}))}),[BT,c2]=Av("PopperContent"),zT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...m}=e,g=Lv("PopperContent",n),[_,O]=L.useState(),v=kT(g.anchor),[S,y]=L.useState(null),E=jp(S),[D,I]=L.useState(null),C=jp(D),k=Zr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),U=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:J,placedAlign:ee}=$T({anchorRect:v,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:U,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},L.createElement(BT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,yt({"data-side":J,"data-align":ee},m,{style:{...m.style,animation:ge?void 0:"none"},ref:k}))))}),qT=UT,GT=HT,KT=zT;function YT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:m}){const g=L.useState(d),[_]=g,O=L.useRef(_),v=Jr(m);return L.useEffect(()=>{O.current!==_&&(v(_),O.current=_)},[_,O,v]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Jr(n);return[l,L.useCallback(d=>{if(u){const m=d,g=typeof d=="function"?m(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[XT,f2]=Pv("Popover",[Iv]),Ql=Iv(),[VT,_o]=XT("Popover"),JT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=Ql(r),d=L.useRef(null),[m,g]=L.useState(!1),[_=!1,O]=YT({prop:o,defaultProp:a,onChange:u});return L.createElement(qT,f,L.createElement(VT,{scope:r,contentId:xT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(v=>!v),[O]),hasCustomAnchor:m,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},ZT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=_o("PopoverTrigger",n),u=Ql(n),l=Zr(r,a.triggerRef),f=L.createElement(Li.button,yt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dv(a.open)},o,{ref:l,onClick:Kr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(GT,yt({asChild:!0},u),f)}),QT=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=_o("PopoverContent",e.__scopePopover);return L.createElement(Tv,{present:n||a.open},a.modal?L.createElement(eC,yt({},o,{ref:r})):L.createElement(tC,yt({},o,{ref:r})))}),eC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=_o("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Zr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return WO(g)},[]);const m=o?Cv:L.Fragment;return L.createElement(m,null,L.createElement(_T,{allowPinchZoom:n},L.createElement(Mv,yt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Kr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Kr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),tC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=_o("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Cv:L.Fragment;return L.createElement(l,null,L.createElement(Mv,yt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,m;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(g)&&f.preventDefault()}})))}),Mv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:g,..._}=e,O=_o("PopoverContent",n),v=Ql(n);return CT(),L.createElement(RT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(MT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},L.createElement(KT,yt({"data-state":Dv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Dv(e){return e?"open":"closed"}const nC=JT,rC=ZT,iC=QT;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var kv={},as={},ec={},Yu={},Ra={exports:{}},Pa={exports:{}},He={};/** @license React v16.13.1
126
+ `)},gT=0,xi=[];function yT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(gT++)[0],u=L.useState(wv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=fo([e.lockRef.current],(e.shards||[]).map(Cp),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Oa(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,U=y.target,H=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&H==="h"&&U.type==="range")return!1;var j=Op(H,U);if(!j)return!0;if(j?T=H:(T=H==="v"?"h":"v",j=Op(H,U)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return hT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!xi.length||xi[xi.length-1]!==u)){var D="deltaY"in E?Tp(E):Oa(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&vT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Cp).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),m=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:wT(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Oa(y),o.current=void 0},[]),_=L.useCallback(function(y){m(y.type,Tp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){m(y.type,Oa(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return xi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,Ei),document.addEventListener("touchmove",d,Ei),document.addEventListener("touchstart",g,Ei),function(){xi=xi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,Ei),document.removeEventListener("touchmove",d,Ei),document.removeEventListener("touchstart",g,Ei)}},[]);var v=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:mT(a)}):null,v?L.createElement(sT,{gapMode:e.gapMode}):null)}function wT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const bT=XO(yv,yT);var Ev=L.forwardRef(function(e,r){return L.createElement(os,Dn({},e,{ref:r,sideCar:bT}))});Ev.classNames=os.classNames;const _T=Ev,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ST=L["useId".toString()]||(()=>{});let ET=0;function xT(e){const[r,n]=L.useState(ST());return po(()=>{e||n(o=>o??String(ET++))},[e]),e||(r?`radix-${r}`:"")}function xv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Zr(...e){return L.useCallback(xv(...e),e)}const Ov=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Rp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Rp(a)?L.createElement(xl,yt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,yt({},o,{ref:r}),n)});Ov.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...TT(o,n.props),ref:xv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const OT=({children:e})=>L.createElement(L.Fragment,null,e);function Rp(e){return L.isValidElement(e)&&e.type===OT}function TT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Ov:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,yt({},u,{ref:o}))})}),{}),Tv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),m=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[v,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ta(m.current);_.current=v==="mounted"?y:"none"},[v]),po(()=>{const y=m.current,E=g.current;if(E!==l){const D=_.current,I=Ta(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),po(()=>{if(f){const y=D=>{const I=Ta(m.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ta(m.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:L.useCallback(y=>{y&&(m.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Zr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Tv.displayName="Presence";let Gu=0;function CT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Pp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Pp()),Gu++,()=>{Gu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Gu--}},[])}function Pp(){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 Cv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return po(()=>{d({})},[]),f?go.createPortal(L.createElement(Li.div,yt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Jr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Ap={bubbles:!1,cancelable:!0},RT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),m=Jr(a),g=Jr(u),_=L.useRef(null),O=Zr(r,y=>d(y)),v=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(v.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Wr(_.current,{select:!0})},E=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Wr(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,v.paused]),L.useEffect(()=>{if(f){Mp.add(v);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Ap);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Wr(T,{select:C}),document.activeElement!==k)return}((y=Ip(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Wr(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Ap);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Wr(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Mp.remove(v)},0)}}var y},[f,m,g,v]);const S=L.useCallback(y=>{if(!n&&!o||v.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const U=Ip(T),H=Lp(U,T),j=Lp(U.reverse(),T);return[H,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Wr(k,{select:!0})):(y.preventDefault(),n&&Wr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,v.paused]);return L.createElement(Li.div,yt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Ip(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Lp(e,r){for(const n of e)if(!PT(n,{upTo:r}))return n}function PT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wr(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Mp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=Dp(e,r),e.unshift(r)},remove(r){var n;e=Dp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function Dp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function AT(e){const r=Jr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let kp,Ca=0;function IT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=kp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ca===0&&(kp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Kr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const LT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,m=L.useContext(LT),[g,_]=L.useState(null),[,O]=L.useState({}),v=Zr(r,U=>_(U)),S=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=m.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&$p("dismissableLayer.pointerDownOutside",H,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(U=>{const H=U.target,j=[...m.branches].some(J=>J.contains(H));C&&!j&&(a==null||a(U),l==null||l(U),U.defaultPrevented||f==null||f())}),T=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&$p("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(U=>{const H=U.target;[...m.branches].some(j=>j.contains(H))||(u==null||u(U),l==null||l(U),U.defaultPrevented||f==null||f())});return AT(U=>{D===m.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),IT({disabled:n}),L.useEffect(()=>{g&&(n&&m.layersWithOutsidePointerEventsDisabled.add(g),m.layers.add(g),Np())},[g,n,m]),L.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Np())},[g,m]),L.useEffect(()=>{const U=()=>O({});return document.addEventListener("dismissableLayer.update",U),()=>document.removeEventListener("dismissableLayer.update",U)},[]),L.createElement(Li.div,yt({},d,{ref:v,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Kr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Kr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Kr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function Np(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function $p(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function jp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,f=m.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function DT(e,r){const n=Hr.get(e);return n===void 0?(Hr.set(e,{rect:{},callbacks:[r]}),Hr.size===1&&(Ol=requestAnimationFrame(Rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Hr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Hr.delete(e),Hr.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Hr=new Map;function Rv(){const e=[];Hr.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Ol=requestAnimationFrame(Rv)}function kT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=DT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Pv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(m){const{scope:g,children:_,...O}=m,v=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(v.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(m,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},NT(o,...r)]}function NT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function $T({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:m,collisionTolerance:g=0}){if(!e||!r||!m)return{popperStyles:jT,arrowStyles:Ku};const _=function(H,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Fp(j,H,"x"),se=Fp(j,H,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const H=Wp(O);let j=Ku;return n&&(j=Hp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Up(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...r,...O}),S=(y=m,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=zp(v,S),I=_[Bp(a)][l],C=function(H,j,J){const ee=Bp(H);return j[H]&&!J[ee]?ee:H}(a,D,zp(DOMRect.fromRect({...r,...I}),S)),k=function(H,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>H[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Wp(_[C][k]);let U=Ku;return n&&(U=Hp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":Up(r,C,k,o,n)},arrowStyles:U,placedSide:C,placedAlign:k}}function Fp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Wp(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 Up(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let m="",g="";return u?(m={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${m} ${g}`}const jT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ku={position:"absolute",opacity:0};function Hp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),m={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:FT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${l}px`),a==="end"&&(m.bottom=`${n}px`)),m}function FT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Bp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function zp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Av,Iv]=Pv("Popper"),[WT,Lv]=Av("Popper"),UT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(WT,{scope:r,anchor:o,onAnchorChange:a},n)},HT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Lv("PopperAnchor",n),l=L.useRef(null),f=Zr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,yt({},a,{ref:f}))}),[BT,f2]=Av("PopperContent"),zT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...m}=e,g=Lv("PopperContent",n),[_,O]=L.useState(),v=kT(g.anchor),[S,y]=L.useState(null),E=jp(S),[D,I]=L.useState(null),C=jp(D),k=Zr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),U=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:J,placedAlign:ee}=$T({anchorRect:v,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:U,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},L.createElement(BT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,yt({"data-side":J,"data-align":ee},m,{style:{...m.style,animation:ge?void 0:"none"},ref:k}))))}),qT=UT,GT=HT,KT=zT;function YT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:m}){const g=L.useState(d),[_]=g,O=L.useRef(_),v=Jr(m);return L.useEffect(()=>{O.current!==_&&(v(_),O.current=_)},[_,O,v]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Jr(n);return[l,L.useCallback(d=>{if(u){const m=d,g=typeof d=="function"?m(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[XT,d2]=Pv("Popover",[Iv]),Ql=Iv(),[VT,_o]=XT("Popover"),JT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=Ql(r),d=L.useRef(null),[m,g]=L.useState(!1),[_=!1,O]=YT({prop:o,defaultProp:a,onChange:u});return L.createElement(qT,f,L.createElement(VT,{scope:r,contentId:xT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(v=>!v),[O]),hasCustomAnchor:m,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},ZT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=_o("PopoverTrigger",n),u=Ql(n),l=Zr(r,a.triggerRef),f=L.createElement(Li.button,yt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dv(a.open)},o,{ref:l,onClick:Kr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(GT,yt({asChild:!0},u),f)}),QT=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=_o("PopoverContent",e.__scopePopover);return L.createElement(Tv,{present:n||a.open},a.modal?L.createElement(eC,yt({},o,{ref:r})):L.createElement(tC,yt({},o,{ref:r})))}),eC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=_o("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Zr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return WO(g)},[]);const m=o?Cv:L.Fragment;return L.createElement(m,null,L.createElement(_T,{allowPinchZoom:n},L.createElement(Mv,yt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Kr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Kr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),tC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=_o("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Cv:L.Fragment;return L.createElement(l,null,L.createElement(Mv,yt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,m;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(g)&&f.preventDefault()}})))}),Mv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:g,..._}=e,O=_o("PopoverContent",n),v=Ql(n);return CT(),L.createElement(RT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(MT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},L.createElement(KT,yt({"data-state":Dv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Dv(e){return e?"open":"closed"}const nC=JT,rC=ZT,iC=QT;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var kv={},as={},ec={},Yu={},Ra={exports:{}},Pa={exports:{}},He={};/** @license React v16.13.1
127
127
  * react-is.production.min.js
128
128
  *
129
129
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -138,7 +138,7 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
138
138
  * This source code is licensed under the MIT license found in the
139
139
  * LICENSE file in the root directory of this source tree.
140
140
  */var Gp;function aC(){return Gp||(Gp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(V){return typeof V=="string"||typeof V=="function"||V===o||V===m||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===v||V.$$typeof===l||V.$$typeof===f||V.$$typeof===g||V.$$typeof===E||V.$$typeof===D||V.$$typeof===I||V.$$typeof===y)}function k(V){if(typeof V=="object"&&V!==null){var rt=V.$$typeof;switch(rt){case r:var it=V.type;switch(it){case d:case m:case o:case u:case a:case _:return it;default:var dt=it&&it.$$typeof;switch(dt){case f:case g:case S:case v:case l:return dt;default:return rt}}case n:return rt}}}var T=d,U=m,H=f,j=l,J=r,ee=g,ge=o,Ce=S,_e=v,se=n,Le=u,we=a,xe=_,We=!1;function ut(V){return We||(We=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(V)||k(V)===d}function G(V){return k(V)===m}function X(V){return k(V)===f}function de(V){return k(V)===l}function ie(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===g}function fe(V){return k(V)===o}function ue(V){return k(V)===S}function pe(V){return k(V)===v}function le(V){return k(V)===n}function ye(V){return k(V)===u}function be(V){return k(V)===a}function Ke(V){return k(V)===_}Be.AsyncMode=T,Be.ConcurrentMode=U,Be.ContextConsumer=H,Be.ContextProvider=j,Be.Element=J,Be.ForwardRef=ee,Be.Fragment=ge,Be.Lazy=Ce,Be.Memo=_e,Be.Portal=se,Be.Profiler=Le,Be.StrictMode=we,Be.Suspense=xe,Be.isAsyncMode=ut,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=de,Be.isElement=ie,Be.isForwardRef=ce,Be.isFragment=fe,Be.isLazy=ue,Be.isMemo=pe,Be.isPortal=le,Be.isProfiler=ye,Be.isStrictMode=be,Be.isSuspense=Ke,Be.isValidElementType=C,Be.typeOf=k}()),Be}var Kp;function Nv(){return Kp||(Kp=1,process.env.NODE_ENV==="production"?Pa.exports=oC():Pa.exports=aC()),Pa.exports}var Xu,Yp;function tc(){if(Yp)return Xu;Yp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xu=e,Xu}var Vu,Xp;function $v(){return Xp||(Xp=1,Vu=Function.call.bind(Object.prototype.hasOwnProperty)),Vu}var Ju,Vp;function sC(){if(Vp)return Ju;Vp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=tc(),n={},o=$v();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,f,d,m){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var _;try{if(typeof u[g]!="function"){var O=Error((d||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[g](l,g,d,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var v=m?m():"";e("Failed "+f+" type: "+_.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ju=a,Ju}var Zu,Jp;function uC(){if(Jp)return Zu;Jp=1;var e=Nv(),r=Fl(),n=tc(),o=$v(),a=sC(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Zu=function(f,d){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(G){var X=G&&(m&&G[m]||G[g]);if(typeof X=="function")return X}var O="<<anonymous>>",v={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:I(),arrayOf:C,element:k(),elementType:T(),instanceOf:U,node:ee(),objectOf:j,oneOf:H,oneOfType:J,shape:Ce,exact:_e};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function y(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}y.prototype=Error.prototype;function E(G){if(process.env.NODE_ENV!=="production")var X={},de=0;function ie(fe,ue,pe,le,ye,be,Ke){if(le=le||O,be=be||pe,Ke!==n){if(d){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=le+":"+pe;!X[rt]&&de<3&&(u("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+le+"`. 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."),X[rt]=!0,de++)}}return ue[pe]==null?fe?ue[pe]===null?new y("The "+ye+" `"+be+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new y("The "+ye+" `"+be+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:G(ue,pe,le,ye,be)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function D(G){function X(de,ie,ce,fe,ue,pe){var le=de[ie],ye=we(le);if(ye!==G){var be=xe(le);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+be+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(X)}function I(){return E(l)}function C(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var pe=de[ie];if(!Array.isArray(pe)){var le=we(pe);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an array."))}for(var ye=0;ye<pe.length;ye++){var be=G(pe,ye,ce,fe,ue+"["+ye+"]",n);if(be instanceof Error)return be}return null}return E(X)}function k(){function G(X,de,ie,ce,fe){var ue=X[de];if(!f(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return E(G)}function T(){function G(X,de,ie,ce,fe){var ue=X[de];if(!e.isValidElementType(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return E(G)}function U(G){function X(de,ie,ce,fe,ue){if(!(de[ie]instanceof G)){var pe=G.name||O,le=ut(de[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return E(X)}function H(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function X(de,ie,ce,fe,ue){for(var pe=de[ie],le=0;le<G.length;le++)if(S(pe,G[le]))return null;var ye=JSON.stringify(G,function(Ke,V){var rt=xe(V);return rt==="symbol"?String(V):V});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return E(X)}function j(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an object."));for(var ye in pe)if(o(pe,ye)){var be=G(pe,ye,ce,fe,ue+"."+ye,n);if(be instanceof Error)return be}return null}return E(X)}function J(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var X=0;X<G.length;X++){var de=G[X];if(typeof de!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(de)+" at index "+X+"."),l}function ie(ce,fe,ue,pe,le){for(var ye=[],be=0;be<G.length;be++){var Ke=G[be],V=Ke(ce,fe,ue,pe,le,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ye.push(V.data.expectedType)}var rt=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+pe+" `"+le+"` supplied to "+("`"+ue+"`"+rt+"."))}return E(ie)}function ee(){function G(X,de,ie,ce,fe){return se(X[de])?null:new y("Invalid "+ce+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return E(G)}function ge(G,X,de,ie,ce){return new y((G||"React class")+": "+X+" type `"+de+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Ce(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in G){var be=G[ye];if(typeof be!="function")return ge(ce,fe,ue,ye,xe(be));var Ke=be(pe,ye,ce,fe,ue+"."+ye,n);if(Ke)return Ke}return null}return E(X)}function _e(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=r({},de[ie],G);for(var be in ye){var Ke=G[be];if(o(G,be)&&typeof Ke!="function")return ge(ce,fe,ue,be,xe(Ke));if(!Ke)return new y("Invalid "+fe+" `"+ue+"` key `"+be+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(de[ie],null," ")+`
141
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ke(pe,be,ce,fe,ue+"."+be,n);if(V)return V}return null}return E(X)}function se(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(se);if(G===null||f(G))return!0;var X=_(G);if(X){var de=X.call(G),ie;if(X!==G.entries){for(;!(ie=de.next()).done;)if(!se(ie.value))return!1}else for(;!(ie=de.next()).done;){var ce=ie.value;if(ce&&!se(ce[1]))return!1}}else return!1;return!0;default:return!1}}function Le(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function we(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":Le(X,G)?"symbol":X}function xe(G){if(typeof G>"u"||G===null)return""+G;var X=we(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function We(G){var X=xe(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ut(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Zu}var Qu,Zp;function lC(){if(Zp)return Qu;Zp=1;var e=tc();function r(){}function n(){}return n.resetWarningCache=r,Qu=function(){function o(l,f,d,m,g,_){if(_!==e){var O=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 O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Qu}var Qp;function cC(){if(Qp)return Ra.exports;if(Qp=1,process.env.NODE_ENV!=="production"){var e=Nv(),r=!0;Ra.exports=uC()(e.isElement,r)}else Ra.exports=lC()();return Ra.exports}var eh;function fC(){return eh||(eh=1,function(e){(function(r,n){n(e,N,cC())})(Br,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(I[T]=k[T])}return I};function d(I,C){var k={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T]);return k}function m(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,k){for(var T=0;T<k.length;T++){var U=k[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(C,U.key,U)}}return function(C,k,T){return k&&I(C.prototype,k),T&&I(C,T),C}}();function _(I,C){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:I}function O(I,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);I.prototype=Object.create(C&&C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(I,C):I.__proto__=C)}var v=!1;function S(I){v=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],k=C.pageX,T=C.pageY;return{x:k,y:T}}var U=I.screenX,H=I.screenY;return{x:U,y:H}}var D=function(I){O(C,I);function C(){var k;m(this,C);for(var T=arguments.length,U=Array(T),H=0;H<T;H++)U[H]=arguments[H];var j=_(this,(k=C.__proto__||Object.getPrototypeOf(C)).call.apply(k,[this].concat(U)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return g(C,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({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 U=E(T),H=U.x,j=U.y;this.moveStart={x:H,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var U=E(T),H=U.x,j=U.y,J=H-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ge=this.props.onSwipeMove({x:J,y:ee},T);ge&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:J,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var U=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-U?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>U&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-U?this.props.onSwipeUp(1,T):this.movePosition.deltaY>U&&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 U=T.className,H=T.style,j=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var J=d(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:U,style:H},J),j)}}]),C}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Yu)),Yu}(function(e){(function(r,n){n(e,fC())})(Br,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(ec);var So={};Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=dC(Nh);function dC(e){return e&&e.__esModule?e:{default:e}}function pC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var hC={ROOT:function(r){return(0,mr.default)(pC({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,mr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,mr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,mr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,mr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,mr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,mr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,mr.default)({dot:!0,selected:r})}};So.default=hC;var Eo={},ss={};Object.defineProperty(ss,"__esModule",{value:!0});ss.outerWidth=void 0;var vC=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};ss.outerWidth=vC;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.default=void 0;var mC=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};Mi.default=mC;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var gC=function(){return window};xo.default=gC;Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var On=bC(N),Ur=us(So),yC=ss,th=us(Mi),wC=us(ec),Aa=us(xo);function us(e){return e&&e.__esModule?e:{default:e}}function jv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return jv=function(){return e},e}function bC(e){if(e&&e.__esModule)return e;if(e===null||ao(e)!=="object"&&typeof e!="function")return{default:e};var r=jv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ao(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ao=function(n){return typeof n}:ao=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ao(e)}function Tl(){return Tl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tl.apply(this,arguments)}function _C(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function SC(e,r,n){return r&&nh(e.prototype,r),n&&nh(e,n),e}function EC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Cl(e,r)}function Cl(e,r){return Cl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Cl(e,r)}function xC(e){var r=TC();return function(){var o=Ya(e),a;if(r){var u=Ya(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return OC(this,a)}}function OC(e,r){return r&&(ao(r)==="object"||typeof r=="function")?r:Ft(e)}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(){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 Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ya(e)}function Lt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CC=function(r){return r.hasOwnProperty("key")},nc=function(e){EC(n,e);var r=xC(n);function n(o){var a;return _C(this,n),a=r.call(this,o),Lt(Ft(a),"itemsWrapperRef",void 0),Lt(Ft(a),"itemsListRef",void 0),Lt(Ft(a),"thumbsRef",void 0),Lt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Lt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Lt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Lt(Ft(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=On.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,yC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),m=d<u,g=m?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:m?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:m}})}}),Lt(Ft(a),"handleClickItem",function(u,l,f){if(!CC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Lt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Lt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Lt(Ft(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=On.Children.count(a.props.children),m=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;m===f&&l>0&&(l=0),m===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,v=m+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,th.default)(v,"%",a.props.axis)}),!0}),Lt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Lt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Lt(Ft(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return SC(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Aa.default)().addEventListener("resize",this.updateSizes),(0,Aa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Aa.default)().removeEventListener("resize",this.updateSizes),(0,Aa.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=Ur.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(g){return a.setThumbsRef(g,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return On.default.createElement("li",Tl({},d,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=On.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},m=-this.state.firstItem*(this.state.itemSize||0),g=(0,th.default)(m,"px",this.props.axis),_=this.props.transitionTime+"ms";return d={WebkitTransform:g,MozTransform:g,MsTransform:g,OTransform:g,transform:g,msTransform:g,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},On.default.createElement("div",{className:Ur.default.CAROUSEL(!1)},On.default.createElement("div",{className:Ur.default.WRAPPER(!1),ref:this.setItemsWrapperRef},On.default.createElement("button",{type:"button",className:Ur.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?On.default.createElement(wC.default,{tagName:"ul",className:Ur.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):On.default.createElement("ul",{className:Ur.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),On.default.createElement("button",{type:"button",className:Ur.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(On.Component);Eo.default=nc;Lt(nc,"displayName","Thumbs");Lt(nc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var ls={};Object.defineProperty(ls,"__esModule",{value:!0});ls.default=void 0;var RC=function(){return document};ls.default=RC;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.setPosition=tn.getPosition=tn.isKeyboardEvent=tn.defaultStatusFormatter=tn.noop=void 0;var PC=N,AC=IC(Mi);function IC(e){return e&&e.__esModule?e:{default:e}}var LC=function(){};tn.noop=LC;var MC=function(r,n){return"".concat(r," of ").concat(n)};tn.defaultStatusFormatter=MC;var DC=function(r){return r?r.hasOwnProperty("key"):!1};tn.isKeyboardEvent=DC;var kC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=PC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};tn.getPosition=kC;var NC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,AC.default)(r,"%",n)}),o};tn.setPosition=NC;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.fadeAnimationHandler=kn.slideStopSwipingHandler=kn.slideSwipeAnimationHandler=kn.slideAnimationHandler=void 0;var Fv=N,$C=jC(Mi),Nn=tn;function jC(e){return e&&e.__esModule?e:{default:e}}function rh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function qr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?rh(Object(n),!0).forEach(function(o){FC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function FC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var WC=function(r,n){var o={},a=n.selectedItem,u=a,l=Fv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Nn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Nn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Nn.setPosition)(0,r.axis)),o;var d=(0,Nn.getPosition)(a,r),m=(0,$C.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=qr(qr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=WC;var UC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=Fv.Children.count(n.children),d=0,m=(0,Nn.getPosition)(o.selectedItem,n),g=n.infiniteLoop?(0,Nn.getPosition)(f-1,n)-100:(0,Nn.getPosition)(f-1,n),_=l?r.x:r.y,O=_;m===d&&_>0&&(O=0),m===g&&_<0&&(O=0);var v=m+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&v>-100?v-=f*100:o.selectedItem===f-1&&v<-f*100&&(v+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(v,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=UC;var HC=function(r,n){var o=(0,Nn.getPosition)(n.selectedItem,r),a=(0,Nn.setPosition)(o,r.axis);return{itemListStyle:a}};kn.slideStopSwipingHandler=HC;var BC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return n.swiping||(u=qr(qr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:qr(qr({},u),{},{opacity:1,position:"relative"}),prevStyle:qr({},u)}};kn.fadeAnimationHandler=BC;Object.defineProperty(as,"__esModule",{value:!0});as.default=void 0;var qe=GC(N),zC=Oo(ec),Qn=Oo(So),qC=Oo(Eo),Ia=Oo(ls),La=Oo(xo),ro=tn,Xa=kn;function Oo(e){return e&&e.__esModule?e:{default:e}}function Wv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Wv=function(){return e},e}function GC(e){if(e&&e.__esModule)return e;if(e===null||so(e)!=="object"&&typeof e!="function")return{default:e};var r=Wv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function so(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?so=function(n){return typeof n}:so=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},so(e)}function Rl(){return Rl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rl.apply(this,arguments)}function ih(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Tn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ih(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function KC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function oh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function YC(e,r,n){return r&&oh(e.prototype,r),n&&oh(e,n),e}function XC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Pl(e,r)}function Pl(e,r){return Pl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Pl(e,r)}function VC(e){var r=ZC();return function(){var o=Va(e),a;if(r){var u=Va(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return JC(this,a)}}function JC(e,r){return r&&(so(r)==="object"||typeof r=="function")?r:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function Ie(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var rc=function(e){XC(n,e);var r=VC(n);function n(o){var a;KC(this,n),a=r.call(this,o),Ie(Me(a),"thumbsRef",void 0),Ie(Me(a),"carouselWrapperRef",void 0),Ie(Me(a),"listRef",void 0),Ie(Me(a),"itemsRef",void 0),Ie(Me(a),"timer",void 0),Ie(Me(a),"animationHandler",void 0),Ie(Me(a),"setThumbsRef",function(l){a.thumbsRef=l}),Ie(Me(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Ie(Me(a),"setListRef",function(l){a.listRef=l}),Ie(Me(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Ie(Me(a),"autoPlay",function(){qe.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Ie(Me(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Ie(Me(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Ie(Me(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Ie(Me(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Ie(Me(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ia.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ia.default)().activeElement)):!1}),Ie(Me(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?m.ArrowRight:m.ArrowDown,_=d?m.ArrowLeft:m.ArrowUp;g===l.keyCode?a.increment():_===l.keyCode&&a.decrement()}}),Ie(Me(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Ie(Me(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Ie(Me(a),"handleClickItem",function(l,f){if(qe.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Ie(Me(a),"handleOnChange",function(l,f){qe.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Ie(Me(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Ie(Me(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Ie(Me(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Ie(Me(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Me(a)));return a.setState(Tn({},d)),!!Object.keys(d).length}),Ie(Me(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Ie(Me(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Ie(Me(a),"moveTo",function(l){if(typeof l=="number"){var f=qe.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Ie(Me(a),"onClickNext",function(){a.increment(1)}),Ie(Me(a),"onClickPrev",function(){a.decrement(1)}),Ie(Me(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"changeItem",function(l){return function(f){(!(0,ro.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Ie(Me(a),"selectItem",function(l){a.setState(Tn({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,qe.Children.toArray(a.props.children)[l.selectedItem])}),Ie(Me(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),Ie(Me(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var m=d[0];if(!m.complete){var g=function v(){a.forceUpdate(),m.removeEventListener("load",v)};m.addEventListener("load",g)}}var _=d[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=Tn(Tn({},u),a.animationHandler(o,u)),a}return YC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(Tn({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.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 a=this;this.bindEvents(),this.state.autoPlay&&qe.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,La.default)().addEventListener("resize",this.updateSizes),(0,La.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ia.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,La.default)().removeEventListener("resize",this.updateSizes),(0,La.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ia.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var u=this;return this.props.children?qe.Children.map(this.props.children,function(l,f){var d=f===u.state.selectedItem,m=f===u.state.previousItem,g=d&&u.state.selectedStyle||m&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(g=Tn(Tn({},g),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(g=Tn(Tn({},g),{},{pointerEvents:"none"}));var _={ref:function(v){return u.setItemsRef(v,f)},key:"itemKey"+f+(a?"clone":""),className:Qn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:g};return qe.default.createElement("li",_,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,d=u.renderIndicator,m=u.children;return l?qe.default.createElement("ul",{className:"control-dots"},qe.Children.map(m,function(g,_){return d&&d(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?qe.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,qe.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||qe.Children.count(this.props.children)===0?null:qe.default.createElement(qC.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 a=this;if(!this.props.children||qe.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&qe.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&qe.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,m=f&&(this.state.selectedItem<qe.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),v={className:Qn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Tn(Tn({},v.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return qe.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Qn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},qe.default.createElement("div",{className:Qn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),qe.default.createElement("div",{className:Qn.default.WRAPPER(!0,this.props.axis),style:S},u?qe.default.createElement(zC.default,Rl({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):qe.default.createElement("ul",{className:Qn.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(qe.default.Component);as.default=rc;Ie(rc,"displayName","Carousel");Ie(rc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:ro.noop,onClickThumb:ro.noop,onChange:ro.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return qe.default.createElement("li",{className:Qn.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=qe.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=qe.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).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"),[]):n},statusFormatter:ro.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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var QC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(as),n=QC,o=a(Eo);function a(u){return u&&u.__esModule?u:{default:u}}})(kv);const eR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:Uv(e,!0)}),tR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(kv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(eR,{tip:r},r.key))})}),nR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:xt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:$.jsx(za,{children:e,options:{overrides:{a:{component:({children:n,...o})=>$.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,$.jsx(Dh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),rR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:xt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:xt([{"mr-1":!o,"mb-1":o}]),children:$.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:xt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:$.jsx(za,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>$.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(Dh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Uv=(e,r)=>{switch(e.type){case Ua.TEXT:return $.jsx(nR,{body:e.body,isInsideCarousel:r});case Ua.VIDEO:return $.jsx(rR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ua.CAROUSEL:return $.jsx(tR,{pages:e.pages})}},Hv=N.createContext(void 0);function ah(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const iR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=N.useState({tips:{},show:!0});N.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const d=f.reduce((m,g)=>ah(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:ah(f,g.key)}}:{...m,[g.key]:g},{});u(m=>({...m,tips:d}))})},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(Hv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},Bv=e=>{const r=N.useContext(Hv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},oR=Ga(rC)`
141
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ke(pe,be,ce,fe,ue+"."+be,n);if(V)return V}return null}return E(X)}function se(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(se);if(G===null||f(G))return!0;var X=_(G);if(X){var de=X.call(G),ie;if(X!==G.entries){for(;!(ie=de.next()).done;)if(!se(ie.value))return!1}else for(;!(ie=de.next()).done;){var ce=ie.value;if(ce&&!se(ce[1]))return!1}}else return!1;return!0;default:return!1}}function Le(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function we(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":Le(X,G)?"symbol":X}function xe(G){if(typeof G>"u"||G===null)return""+G;var X=we(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function We(G){var X=xe(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ut(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Zu}var Qu,Zp;function lC(){if(Zp)return Qu;Zp=1;var e=tc();function r(){}function n(){}return n.resetWarningCache=r,Qu=function(){function o(l,f,d,m,g,_){if(_!==e){var O=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 O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Qu}var Qp;function cC(){if(Qp)return Ra.exports;if(Qp=1,process.env.NODE_ENV!=="production"){var e=Nv(),r=!0;Ra.exports=uC()(e.isElement,r)}else Ra.exports=lC()();return Ra.exports}var eh;function fC(){return eh||(eh=1,function(e){(function(r,n){n(e,N,cC())})(Br,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(I[T]=k[T])}return I};function d(I,C){var k={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T]);return k}function m(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,k){for(var T=0;T<k.length;T++){var U=k[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(C,U.key,U)}}return function(C,k,T){return k&&I(C.prototype,k),T&&I(C,T),C}}();function _(I,C){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:I}function O(I,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);I.prototype=Object.create(C&&C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(I,C):I.__proto__=C)}var v=!1;function S(I){v=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],k=C.pageX,T=C.pageY;return{x:k,y:T}}var U=I.screenX,H=I.screenY;return{x:U,y:H}}var D=function(I){O(C,I);function C(){var k;m(this,C);for(var T=arguments.length,U=Array(T),H=0;H<T;H++)U[H]=arguments[H];var j=_(this,(k=C.__proto__||Object.getPrototypeOf(C)).call.apply(k,[this].concat(U)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return g(C,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({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 U=E(T),H=U.x,j=U.y;this.moveStart={x:H,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var U=E(T),H=U.x,j=U.y,J=H-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ge=this.props.onSwipeMove({x:J,y:ee},T);ge&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:J,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var U=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-U?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>U&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-U?this.props.onSwipeUp(1,T):this.movePosition.deltaY>U&&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 U=T.className,H=T.style,j=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var J=d(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:U,style:H},J),j)}}]),C}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Yu)),Yu}(function(e){(function(r,n){n(e,fC())})(Br,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(ec);var So={};Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=dC(Nh);function dC(e){return e&&e.__esModule?e:{default:e}}function pC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var hC={ROOT:function(r){return(0,mr.default)(pC({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,mr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,mr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,mr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,mr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,mr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,mr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,mr.default)({dot:!0,selected:r})}};So.default=hC;var Eo={},ss={};Object.defineProperty(ss,"__esModule",{value:!0});ss.outerWidth=void 0;var vC=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};ss.outerWidth=vC;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.default=void 0;var mC=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};Mi.default=mC;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var gC=function(){return window};xo.default=gC;Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var On=bC(N),Ur=us(So),yC=ss,th=us(Mi),wC=us(ec),Aa=us(xo);function us(e){return e&&e.__esModule?e:{default:e}}function jv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return jv=function(){return e},e}function bC(e){if(e&&e.__esModule)return e;if(e===null||ao(e)!=="object"&&typeof e!="function")return{default:e};var r=jv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ao(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ao=function(n){return typeof n}:ao=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ao(e)}function Tl(){return Tl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tl.apply(this,arguments)}function _C(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function SC(e,r,n){return r&&nh(e.prototype,r),n&&nh(e,n),e}function EC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Cl(e,r)}function Cl(e,r){return Cl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Cl(e,r)}function xC(e){var r=TC();return function(){var o=Ya(e),a;if(r){var u=Ya(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return OC(this,a)}}function OC(e,r){return r&&(ao(r)==="object"||typeof r=="function")?r:Ft(e)}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(){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 Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ya(e)}function Lt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CC=function(r){return r.hasOwnProperty("key")},nc=function(e){EC(n,e);var r=xC(n);function n(o){var a;return _C(this,n),a=r.call(this,o),Lt(Ft(a),"itemsWrapperRef",void 0),Lt(Ft(a),"itemsListRef",void 0),Lt(Ft(a),"thumbsRef",void 0),Lt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Lt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Lt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Lt(Ft(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=On.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,yC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),m=d<u,g=m?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:m?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:m}})}}),Lt(Ft(a),"handleClickItem",function(u,l,f){if(!CC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Lt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Lt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Lt(Ft(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=On.Children.count(a.props.children),m=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;m===f&&l>0&&(l=0),m===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,v=m+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,th.default)(v,"%",a.props.axis)}),!0}),Lt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Lt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Lt(Ft(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return SC(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Aa.default)().addEventListener("resize",this.updateSizes),(0,Aa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Aa.default)().removeEventListener("resize",this.updateSizes),(0,Aa.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=Ur.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(g){return a.setThumbsRef(g,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return On.default.createElement("li",Tl({},d,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=On.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},m=-this.state.firstItem*(this.state.itemSize||0),g=(0,th.default)(m,"px",this.props.axis),_=this.props.transitionTime+"ms";return d={WebkitTransform:g,MozTransform:g,MsTransform:g,OTransform:g,transform:g,msTransform:g,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},On.default.createElement("div",{className:Ur.default.CAROUSEL(!1)},On.default.createElement("div",{className:Ur.default.WRAPPER(!1),ref:this.setItemsWrapperRef},On.default.createElement("button",{type:"button",className:Ur.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?On.default.createElement(wC.default,{tagName:"ul",className:Ur.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):On.default.createElement("ul",{className:Ur.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),On.default.createElement("button",{type:"button",className:Ur.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(On.Component);Eo.default=nc;Lt(nc,"displayName","Thumbs");Lt(nc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var ls={};Object.defineProperty(ls,"__esModule",{value:!0});ls.default=void 0;var RC=function(){return document};ls.default=RC;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.setPosition=tn.getPosition=tn.isKeyboardEvent=tn.defaultStatusFormatter=tn.noop=void 0;var PC=N,AC=IC(Mi);function IC(e){return e&&e.__esModule?e:{default:e}}var LC=function(){};tn.noop=LC;var MC=function(r,n){return"".concat(r," of ").concat(n)};tn.defaultStatusFormatter=MC;var DC=function(r){return r?r.hasOwnProperty("key"):!1};tn.isKeyboardEvent=DC;var kC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=PC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};tn.getPosition=kC;var NC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,AC.default)(r,"%",n)}),o};tn.setPosition=NC;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.fadeAnimationHandler=kn.slideStopSwipingHandler=kn.slideSwipeAnimationHandler=kn.slideAnimationHandler=void 0;var Fv=N,$C=jC(Mi),Nn=tn;function jC(e){return e&&e.__esModule?e:{default:e}}function rh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function qr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?rh(Object(n),!0).forEach(function(o){FC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function FC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var WC=function(r,n){var o={},a=n.selectedItem,u=a,l=Fv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Nn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Nn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Nn.setPosition)(0,r.axis)),o;var d=(0,Nn.getPosition)(a,r),m=(0,$C.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=qr(qr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=WC;var UC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=Fv.Children.count(n.children),d=0,m=(0,Nn.getPosition)(o.selectedItem,n),g=n.infiniteLoop?(0,Nn.getPosition)(f-1,n)-100:(0,Nn.getPosition)(f-1,n),_=l?r.x:r.y,O=_;m===d&&_>0&&(O=0),m===g&&_<0&&(O=0);var v=m+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&v>-100?v-=f*100:o.selectedItem===f-1&&v<-f*100&&(v+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(v,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=UC;var HC=function(r,n){var o=(0,Nn.getPosition)(n.selectedItem,r),a=(0,Nn.setPosition)(o,r.axis);return{itemListStyle:a}};kn.slideStopSwipingHandler=HC;var BC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return n.swiping||(u=qr(qr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:qr(qr({},u),{},{opacity:1,position:"relative"}),prevStyle:qr({},u)}};kn.fadeAnimationHandler=BC;Object.defineProperty(as,"__esModule",{value:!0});as.default=void 0;var Ge=GC(N),zC=Oo(ec),Qn=Oo(So),qC=Oo(Eo),Ia=Oo(ls),La=Oo(xo),ro=tn,Xa=kn;function Oo(e){return e&&e.__esModule?e:{default:e}}function Wv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Wv=function(){return e},e}function GC(e){if(e&&e.__esModule)return e;if(e===null||so(e)!=="object"&&typeof e!="function")return{default:e};var r=Wv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function so(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?so=function(n){return typeof n}:so=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},so(e)}function Rl(){return Rl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rl.apply(this,arguments)}function ih(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Tn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ih(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function KC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function oh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function YC(e,r,n){return r&&oh(e.prototype,r),n&&oh(e,n),e}function XC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Pl(e,r)}function Pl(e,r){return Pl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Pl(e,r)}function VC(e){var r=ZC();return function(){var o=Va(e),a;if(r){var u=Va(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return JC(this,a)}}function JC(e,r){return r&&(so(r)==="object"||typeof r=="function")?r:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function Ie(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var rc=function(e){XC(n,e);var r=VC(n);function n(o){var a;KC(this,n),a=r.call(this,o),Ie(Me(a),"thumbsRef",void 0),Ie(Me(a),"carouselWrapperRef",void 0),Ie(Me(a),"listRef",void 0),Ie(Me(a),"itemsRef",void 0),Ie(Me(a),"timer",void 0),Ie(Me(a),"animationHandler",void 0),Ie(Me(a),"setThumbsRef",function(l){a.thumbsRef=l}),Ie(Me(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Ie(Me(a),"setListRef",function(l){a.listRef=l}),Ie(Me(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Ie(Me(a),"autoPlay",function(){Ge.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Ie(Me(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Ie(Me(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Ie(Me(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Ie(Me(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Ie(Me(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ia.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ia.default)().activeElement)):!1}),Ie(Me(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?m.ArrowRight:m.ArrowDown,_=d?m.ArrowLeft:m.ArrowUp;g===l.keyCode?a.increment():_===l.keyCode&&a.decrement()}}),Ie(Me(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Ie(Me(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Ie(Me(a),"handleClickItem",function(l,f){if(Ge.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Ie(Me(a),"handleOnChange",function(l,f){Ge.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Ie(Me(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Ie(Me(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Ie(Me(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Ie(Me(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Me(a)));return a.setState(Tn({},d)),!!Object.keys(d).length}),Ie(Me(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Ie(Me(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Ie(Me(a),"moveTo",function(l){if(typeof l=="number"){var f=Ge.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Ie(Me(a),"onClickNext",function(){a.increment(1)}),Ie(Me(a),"onClickPrev",function(){a.decrement(1)}),Ie(Me(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"changeItem",function(l){return function(f){(!(0,ro.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Ie(Me(a),"selectItem",function(l){a.setState(Tn({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Ge.Children.toArray(a.props.children)[l.selectedItem])}),Ie(Me(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),Ie(Me(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var m=d[0];if(!m.complete){var g=function v(){a.forceUpdate(),m.removeEventListener("load",v)};m.addEventListener("load",g)}}var _=d[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=Tn(Tn({},u),a.animationHandler(o,u)),a}return YC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(Tn({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.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 a=this;this.bindEvents(),this.state.autoPlay&&Ge.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,La.default)().addEventListener("resize",this.updateSizes),(0,La.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ia.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,La.default)().removeEventListener("resize",this.updateSizes),(0,La.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ia.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var u=this;return this.props.children?Ge.Children.map(this.props.children,function(l,f){var d=f===u.state.selectedItem,m=f===u.state.previousItem,g=d&&u.state.selectedStyle||m&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(g=Tn(Tn({},g),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(g=Tn(Tn({},g),{},{pointerEvents:"none"}));var _={ref:function(v){return u.setItemsRef(v,f)},key:"itemKey"+f+(a?"clone":""),className:Qn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:g};return Ge.default.createElement("li",_,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,d=u.renderIndicator,m=u.children;return l?Ge.default.createElement("ul",{className:"control-dots"},Ge.Children.map(m,function(g,_){return d&&d(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Ge.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Ge.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Ge.Children.count(this.props.children)===0?null:Ge.default.createElement(qC.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 a=this;if(!this.props.children||Ge.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&Ge.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&Ge.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,m=f&&(this.state.selectedItem<Ge.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),v={className:Qn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Tn(Tn({},v.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return Ge.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Qn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Ge.default.createElement("div",{className:Qn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Ge.default.createElement("div",{className:Qn.default.WRAPPER(!0,this.props.axis),style:S},u?Ge.default.createElement(zC.default,Rl({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):Ge.default.createElement("ul",{className:Qn.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(Ge.default.Component);as.default=rc;Ie(rc,"displayName","Carousel");Ie(rc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:ro.noop,onClickThumb:ro.noop,onChange:ro.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return Ge.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return Ge.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return Ge.default.createElement("li",{className:Qn.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=Ge.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=Ge.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).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"),[]):n},statusFormatter:ro.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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var QC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(as),n=QC,o=a(Eo);function a(u){return u&&u.__esModule?u:{default:u}}})(kv);const eR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:Uv(e,!0)}),tR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(kv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(eR,{tip:r},r.key))})}),nR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:xt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:$.jsx(za,{children:e,options:{overrides:{a:{component:({children:n,...o})=>$.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,$.jsx(Dh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),rR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:xt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:xt([{"mr-1":!o,"mb-1":o}]),children:$.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:xt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:$.jsx(za,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>$.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(Dh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Uv=(e,r)=>{switch(e.type){case Ua.TEXT:return $.jsx(nR,{body:e.body,isInsideCarousel:r});case Ua.VIDEO:return $.jsx(rR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ua.CAROUSEL:return $.jsx(tR,{pages:e.pages})}},Hv=N.createContext(void 0);function ah(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const iR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=N.useState({tips:{},show:!0});N.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const d=f.reduce((m,g)=>ah(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:ah(f,g.key)}}:{...m,[g.key]:g},{});u(m=>({...m,tips:d}))})},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(Hv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},Bv=e=>{const r=N.useContext(Hv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},oR=Ga(rC)`
142
142
  &[data-state='open'] > * {
143
143
  display: block !important;
144
144
  }
@@ -180,9 +180,9 @@ pointer-events-none inline-block ${il[n].switch} transform rounded-full bg-white
180
180
  * Released under MIT license <https://lodash.com/license>
181
181
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
182
182
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
183
- */Qa.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",_=1,O=2,v=4,S=1,y=2,E=1,D=2,I=4,C=8,k=16,T=32,U=64,H=128,j=256,J=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,we=3,xe=1/0,We=9007199254740991,ut=17976931348623157e292,G=0/0,X=4294967295,de=X-1,ie=X>>>1,ce=[["ary",H],["bind",E],["bindKey",D],["curry",C],["curryRight",k],["flip",J],["partial",T],["partialRight",U],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",be="[object DOMException]",Ke="[object Error]",V="[object Function]",rt="[object GeneratorFunction]",it="[object Map]",dt="[object Number]",An="[object Null]",mt="[object Object]",Wt="[object Promise]",_r="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",rn="[object String]",Kt="[object Symbol]",gn="[object Undefined]",Ot="[object WeakMap]",rr="[object WeakSet]",on="[object ArrayBuffer]",Yt="[object DataView]",Sr="[object Float32Array]",Er="[object Float64Array]",xr="[object Int8Array]",Or="[object Int16Array]",yn="[object Int32Array]",Hn="[object Uint8Array]",wt="[object Uint8ClampedArray]",wn="[object Uint16Array]",bn="[object Uint32Array]",Tr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,Cr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ri=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Rr=RegExp(ri.source),ki=RegExp(ir.source),Ni=/<%-([\s\S]+?)%>/g,Pr=/<%([\s\S]+?)%>/g,ii=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/,Fi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,P=RegExp(p.source),F=/^\s+/,Y=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Ar=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,zm=/^0o[0-7]+$/i,qm=/^(?:0|[1-9]\d*)$/,Gm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ao=/($^)/,Km=/['\n\r\u2028\u2029\\]/g,Io="\\ud800-\\udfff",Ym="\\u0300-\\u036f",Xm="\\ufe20-\\ufe2f",Vm="\\u20d0-\\u20ff",mc=Ym+Xm+Vm,gc="\\u2700-\\u27bf",yc="a-z\\xdf-\\xf6\\xf8-\\xff",Jm="\\xac\\xb1\\xd7\\xf7",Zm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qm="\\u2000-\\u206f",eg=" \\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",wc="A-Z\\xc0-\\xd6\\xd8-\\xde",bc="\\ufe0e\\ufe0f",_c=Jm+Zm+Qm+eg,ms="['’]",tg="["+Io+"]",Sc="["+_c+"]",Lo="["+mc+"]",Ec="\\d+",ng="["+gc+"]",xc="["+yc+"]",Oc="[^"+Io+_c+Ec+gc+yc+wc+"]",gs="\\ud83c[\\udffb-\\udfff]",rg="(?:"+Lo+"|"+gs+")",Tc="[^"+Io+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",ws="[\\ud800-\\udbff][\\udc00-\\udfff]",oi="["+wc+"]",Cc="\\u200d",Rc="(?:"+xc+"|"+Oc+")",ig="(?:"+oi+"|"+Oc+")",Pc="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",Ac="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",Ic=rg+"?",Lc="["+bc+"]?",og="(?:"+Cc+"(?:"+[Tc,ys,ws].join("|")+")"+Lc+Ic+")*",ag="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mc=Lc+Ic+og,ug="(?:"+[ng,ys,ws].join("|")+")"+Mc,lg="(?:"+[Tc+Lo+"?",Lo,ys,ws,tg].join("|")+")",cg=RegExp(ms,"g"),fg=RegExp(Lo,"g"),bs=RegExp(gs+"(?="+gs+")|"+lg+Mc,"g"),dg=RegExp([oi+"?"+xc+"+"+Pc+"(?="+[Sc,oi,"$"].join("|")+")",ig+"+"+Ac+"(?="+[Sc,oi+Rc,"$"].join("|")+")",oi+"?"+Rc+"+"+Pc,oi+"+"+Ac,sg,ag,Ec,ug].join("|"),"g"),pg=RegExp("["+Cc+Io+mc+bc+"]"),hg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vg=["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"],mg=-1,Ze={};Ze[Sr]=Ze[Er]=Ze[xr]=Ze[Or]=Ze[yn]=Ze[Hn]=Ze[wt]=Ze[wn]=Ze[bn]=!0,Ze[fe]=Ze[ue]=Ze[on]=Ze[le]=Ze[Yt]=Ze[ye]=Ze[Ke]=Ze[V]=Ze[it]=Ze[dt]=Ze[mt]=Ze[Je]=Ze[Qe]=Ze[rn]=Ze[Ot]=!1;var Xe={};Xe[fe]=Xe[ue]=Xe[on]=Xe[Yt]=Xe[le]=Xe[ye]=Xe[Sr]=Xe[Er]=Xe[xr]=Xe[Or]=Xe[yn]=Xe[it]=Xe[dt]=Xe[mt]=Xe[Je]=Xe[Qe]=Xe[rn]=Xe[Kt]=Xe[Hn]=Xe[wt]=Xe[wn]=Xe[bn]=!0,Xe[Ke]=Xe[V]=Xe[Ot]=!1;var gg={À:"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"},yg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_g=parseFloat,Sg=parseInt,Dc=typeof Br=="object"&&Br&&Br.Object===Object&&Br,Eg=typeof self=="object"&&self&&self.Object===Object&&self,bt=Dc||Eg||Function("return this")(),_s=r&&!r.nodeType&&r,Ir=_s&&!0&&e&&!e.nodeType&&e,kc=Ir&&Ir.exports===_s,Ss=kc&&Dc.process,an=function(){try{var A=Ir&&Ir.require&&Ir.require("util").types;return A||Ss&&Ss.binding&&Ss.binding("util")}catch{}}(),Nc=an&&an.isArrayBuffer,$c=an&&an.isDate,jc=an&&an.isMap,Fc=an&&an.isRegExp,Wc=an&&an.isSet,Uc=an&&an.isTypedArray;function Xt(A,B,W){switch(W.length){case 0:return A.call(B);case 1:return A.call(B,W[0]);case 2:return A.call(B,W[0],W[1]);case 3:return A.call(B,W[0],W[1],W[2])}return A.apply(B,W)}function xg(A,B,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var pt=A[Ee];B(ne,pt,W(pt),A)}return ne}function sn(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne&&B(A[W],W,A)!==!1;);return A}function Og(A,B){for(var W=A==null?0:A.length;W--&&B(A[W],W,A)!==!1;);return A}function Hc(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!B(A[W],W,A))return!1;return!0}function or(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];B(pt,W,A)&&(Fe[Ee++]=pt)}return Fe}function Mo(A,B){var W=A==null?0:A.length;return!!W&&ai(A,B,0)>-1}function Es(A,B,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(B,A[ne]))return!0;return!1}function et(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=B(A[W],W,A);return Ee}function ar(A,B){for(var W=-1,ne=B.length,Ee=A.length;++W<ne;)A[Ee+W]=B[W];return A}function xs(A,B,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=B(W,A[Ee],Ee,A);return W}function Tg(A,B,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=B(W,A[Ee],Ee,A);return W}function Os(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(B(A[W],W,A))return!0;return!1}var Cg=Ts("length");function Rg(A){return A.split("")}function Pg(A){return A.match(Q)||[]}function Bc(A,B,W){var ne;return W(A,function(Ee,Fe,pt){if(B(Ee,Fe,pt))return ne=Fe,!1}),ne}function Do(A,B,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(B(A[Fe],Fe,A))return Fe;return-1}function ai(A,B,W){return B===B?Ug(A,B,W):Do(A,zc,W)}function Ag(A,B,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],B))return Ee;return-1}function zc(A){return A!==A}function qc(A,B){var W=A==null?0:A.length;return W?Rs(A,B)/W:G}function Ts(A){return function(B){return B==null?n:B[A]}}function Cs(A){return function(B){return A==null?n:A[B]}}function Gc(A,B,W,ne,Ee){return Ee(A,function(Fe,pt,Ye){W=ne?(ne=!1,Fe):B(W,Fe,pt,Ye)}),W}function Ig(A,B){var W=A.length;for(A.sort(B);W--;)A[W]=A[W].value;return A}function Rs(A,B){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=B(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function Ps(A,B){for(var W=-1,ne=Array(A);++W<A;)ne[W]=B(W);return ne}function Lg(A,B){return et(B,function(W){return[W,A[W]]})}function Kc(A){return A&&A.slice(0,Jc(A)+1).replace(F,"")}function Vt(A){return function(B){return A(B)}}function As(A,B){return et(B,function(W){return A[W]})}function Wi(A,B){return A.has(B)}function Yc(A,B){for(var W=-1,ne=A.length;++W<ne&&ai(B,A[W],0)>-1;);return W}function Xc(A,B){for(var W=A.length;W--&&ai(B,A[W],0)>-1;);return W}function Mg(A,B){for(var W=A.length,ne=0;W--;)A[W]===B&&++ne;return ne}var Dg=Cs(gg),kg=Cs(yg);function Ng(A){return"\\"+bg[A]}function $g(A,B){return A==null?n:A[B]}function si(A){return pg.test(A)}function jg(A){return hg.test(A)}function Fg(A){for(var B,W=[];!(B=A.next()).done;)W.push(B.value);return W}function Is(A){var B=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++B]=[Ee,ne]}),W}function Vc(A,B){return function(W){return A(B(W))}}function sr(A,B){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];(pt===B||pt===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function ko(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=ne}),W}function Wg(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=[ne,ne]}),W}function Ug(A,B,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===B)return ne;return-1}function Hg(A,B,W){for(var ne=W+1;ne--;)if(A[ne]===B)return ne;return ne}function ui(A){return si(A)?zg(A):Cg(A)}function _n(A){return si(A)?qg(A):Rg(A)}function Jc(A){for(var B=A.length;B--&&Y.test(A.charAt(B)););return B}var Bg=Cs(wg);function zg(A){for(var B=bs.lastIndex=0;bs.test(A);)++B;return B}function qg(A){return A.match(bs)||[]}function Gg(A){return A.match(dg)||[]}var Kg=function A(B){B=B==null?bt:li.defaults(bt.Object(),B,li.pick(bt,vg));var W=B.Array,ne=B.Date,Ee=B.Error,Fe=B.Function,pt=B.Math,Ye=B.Object,Ls=B.RegExp,Yg=B.String,un=B.TypeError,No=W.prototype,Xg=Fe.prototype,ci=Ye.prototype,$o=B["__core-js_shared__"],jo=Xg.toString,ze=ci.hasOwnProperty,Vg=0,Zc=function(){var t=/[^.]+$/.exec($o&&$o.keys&&$o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Fo=ci.toString,Jg=jo.call(Ye),Zg=bt._,Qg=Ls("^"+jo.call(ze).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wo=kc?B.Buffer:n,ur=B.Symbol,Uo=B.Uint8Array,Qc=Wo?Wo.allocUnsafe:n,Ho=Vc(Ye.getPrototypeOf,Ye),ef=Ye.create,tf=ci.propertyIsEnumerable,Bo=No.splice,nf=ur?ur.isConcatSpreadable:n,Ui=ur?ur.iterator:n,Lr=ur?ur.toStringTag:n,zo=function(){try{var t=$r(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),e0=B.clearTimeout!==bt.clearTimeout&&B.clearTimeout,t0=ne&&ne.now!==bt.Date.now&&ne.now,n0=B.setTimeout!==bt.setTimeout&&B.setTimeout,qo=pt.ceil,Go=pt.floor,Ms=Ye.getOwnPropertySymbols,r0=Wo?Wo.isBuffer:n,rf=B.isFinite,i0=No.join,o0=Vc(Ye.keys,Ye),ht=pt.max,Tt=pt.min,a0=ne.now,s0=B.parseInt,of=pt.random,u0=No.reverse,Ds=$r(B,"DataView"),Hi=$r(B,"Map"),ks=$r(B,"Promise"),fi=$r(B,"Set"),Bi=$r(B,"WeakMap"),zi=$r(Ye,"create"),Ko=Bi&&new Bi,di={},l0=jr(Ds),c0=jr(Hi),f0=jr(ks),d0=jr(fi),p0=jr(Bi),Yo=ur?ur.prototype:n,qi=Yo?Yo.valueOf:n,af=Yo?Yo.toString:n;function w(t){if(at(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(ze.call(t,"__wrapped__"))return sd(t)}return new ln(t)}var pi=function(){function t(){}return function(i){if(!tt(i))return{};if(ef)return ef(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Xo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}w.templateSettings={escape:Ni,evaluate:Pr,interpolate:ii,variable:"",imports:{_:w}},w.prototype=Xo.prototype,w.prototype.constructor=w,ln.prototype=pi(Xo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function h0(){var t=new ke(this.__wrapped__);return t.__actions__=Ut(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ut(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ut(this.__views__),t}function v0(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function m0(){var t=this.__wrapped__.value(),i=this.__dir__,s=Te(t),c=i<0,h=s?t.length:0,b=Ry(0,h,this.__views__),x=b.start,R=b.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,K=q.length,Z=0,re=Tt(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return Af(t,this.__actions__);var ve=[];e:for(;M--&&Z<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<K;){var De=q[Pe],Ne=De.iteratee,Qt=De.type,jt=Ne(me);if(Qt==Le)me=jt;else if(!jt){if(Qt==se)continue e;break e}}ve[Z++]=me}return ve}ke.prototype=pi(Xo.prototype),ke.prototype.constructor=ke;function Mr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function g0(){this.__data__=zi?zi(null):{},this.size=0}function y0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function w0(t){var i=this.__data__;if(zi){var s=i[t];return s===d?n:s}return ze.call(i,t)?i[t]:n}function b0(t){var i=this.__data__;return zi?i[t]!==n:ze.call(i,t)}function _0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=zi&&i===n?d:i,this}Mr.prototype.clear=g0,Mr.prototype.delete=y0,Mr.prototype.get=w0,Mr.prototype.has=b0,Mr.prototype.set=_0;function Bn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function S0(){this.__data__=[],this.size=0}function E0(t){var i=this.__data__,s=Vo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():Bo.call(i,s,1),--this.size,!0}function x0(t){var i=this.__data__,s=Vo(i,t);return s<0?n:i[s][1]}function O0(t){return Vo(this.__data__,t)>-1}function T0(t,i){var s=this.__data__,c=Vo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Bn.prototype.clear=S0,Bn.prototype.delete=E0,Bn.prototype.get=x0,Bn.prototype.has=O0,Bn.prototype.set=T0;function zn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function C0(){this.size=0,this.__data__={hash:new Mr,map:new(Hi||Bn),string:new Mr}}function R0(t){var i=ua(this,t).delete(t);return this.size-=i?1:0,i}function P0(t){return ua(this,t).get(t)}function A0(t){return ua(this,t).has(t)}function I0(t,i){var s=ua(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}zn.prototype.clear=C0,zn.prototype.delete=R0,zn.prototype.get=P0,zn.prototype.has=A0,zn.prototype.set=I0;function Dr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new zn;++i<s;)this.add(t[i])}function L0(t){return this.__data__.set(t,d),this}function M0(t){return this.__data__.has(t)}Dr.prototype.add=Dr.prototype.push=L0,Dr.prototype.has=M0;function Sn(t){var i=this.__data__=new Bn(t);this.size=i.size}function D0(){this.__data__=new Bn,this.size=0}function k0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function N0(t){return this.__data__.get(t)}function $0(t){return this.__data__.has(t)}function j0(t,i){var s=this.__data__;if(s instanceof Bn){var c=s.__data__;if(!Hi||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new zn(c)}return s.set(t,i),this.size=s.size,this}Sn.prototype.clear=D0,Sn.prototype.delete=k0,Sn.prototype.get=N0,Sn.prototype.has=$0,Sn.prototype.set=j0;function sf(t,i){var s=Te(t),c=!s&&Fr(t),h=!s&&!c&&pr(t),b=!s&&!c&&!h&&gi(t),x=s||c||h||b,R=x?Ps(t.length,Yg):[],M=R.length;for(var z in t)(i||ze.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||b&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Yn(z,M)))&&R.push(z);return R}function uf(t){var i=t.length;return i?t[Gs(0,i-1)]:n}function F0(t,i){return la(Ut(t),kr(i,0,t.length))}function W0(t){return la(Ut(t))}function Ns(t,i,s){(s!==n&&!En(t[i],s)||s===n&&!(i in t))&&qn(t,i,s)}function Gi(t,i,s){var c=t[i];(!(ze.call(t,i)&&En(c,s))||s===n&&!(i in t))&&qn(t,i,s)}function Vo(t,i){for(var s=t.length;s--;)if(En(t[s][0],i))return s;return-1}function U0(t,i,s,c){return lr(t,function(h,b,x){i(c,h,s(h),x)}),c}function lf(t,i){return t&&Ln(i,gt(i),t)}function H0(t,i){return t&&Ln(i,Bt(i),t)}function qn(t,i,s){i=="__proto__"&&zo?zo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function $s(t,i){for(var s=-1,c=i.length,h=W(c),b=t==null;++s<c;)h[s]=b?n:gu(t,i[s]);return h}function kr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function cn(t,i,s,c,h,b){var x,R=i&_,M=i&O,z=i&v;if(s&&(x=h?s(t,c,h,b):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Ay(t),!R)return Ut(t,x)}else{var K=Ct(t),Z=K==V||K==rt;if(pr(t))return Mf(t,R);if(K==mt||K==fe||Z&&!h){if(x=M||Z?{}:Zf(t),!R)return M?wy(t,H0(x,t)):yy(t,lf(x,t))}else{if(!Xe[K])return h?t:{};x=Iy(t,K,R)}}b||(b=new Sn);var re=b.get(t);if(re)return re;b.set(t,x),Cd(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,b))}):Od(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,b))});var ve=z?M?ru:nu:M?Bt:gt,Pe=q?n:ve(t);return sn(Pe||t,function(me,De){Pe&&(De=me,me=t[De]),Gi(x,De,cn(me,i,s,De,t,b))}),x}function B0(t){var i=gt(t);return function(s){return cf(s,t,i)}}function cf(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ye(t);c--;){var h=s[c],b=i[h],x=t[h];if(x===n&&!(h in t)||!b(x))return!1}return!0}function ff(t,i,s){if(typeof t!="function")throw new un(l);return Qi(function(){t.apply(n,s)},i)}function Ki(t,i,s,c){var h=-1,b=Mo,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Vt(s))),c?(b=Es,x=!1):i.length>=a&&(b=Wi,x=!1,i=new Dr(i));e:for(;++h<R;){var q=t[h],K=s==null?q:s(q);if(q=c||q!==0?q:0,x&&K===K){for(var Z=z;Z--;)if(i[Z]===K)continue e;M.push(q)}else b(i,K,c)||M.push(q)}return M}var lr=jf(In),df=jf(Fs,!0);function z0(t,i){var s=!0;return lr(t,function(c,h,b){return s=!!i(c,h,b),s}),s}function Jo(t,i,s){for(var c=-1,h=t.length;++c<h;){var b=t[c],x=i(b);if(x!=null&&(R===n?x===x&&!Zt(x):s(x,R)))var R=x,M=b}return M}function q0(t,i,s,c){var h=t.length;for(s=Re(s),s<0&&(s=-s>h?0:h+s),c=c===n||c>h?h:Re(c),c<0&&(c+=h),c=s>c?0:Pd(c);s<c;)t[s++]=i;return t}function pf(t,i){var s=[];return lr(t,function(c,h,b){i(c,h,b)&&s.push(c)}),s}function _t(t,i,s,c,h){var b=-1,x=t.length;for(s||(s=My),h||(h=[]);++b<x;){var R=t[b];i>0&&s(R)?i>1?_t(R,i-1,s,c,h):ar(h,R):c||(h[h.length]=R)}return h}var js=Ff(),hf=Ff(!0);function In(t,i){return t&&js(t,i,gt)}function Fs(t,i){return t&&hf(t,i,gt)}function Zo(t,i){return or(i,function(s){return Xn(t[s])})}function Nr(t,i){i=fr(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[Mn(i[s++])];return s&&s==c?t:n}function vf(t,i,s){var c=i(t);return Te(t)?c:ar(c,s(t))}function Nt(t){return t==null?t===n?gn:An:Lr&&Lr in Ye(t)?Cy(t):Wy(t)}function Ws(t,i){return t>i}function G0(t,i){return t!=null&&ze.call(t,i)}function K0(t,i){return t!=null&&i in Ye(t)}function Y0(t,i,s){return t>=Tt(i,s)&&t<ht(i,s)}function Us(t,i,s){for(var c=s?Es:Mo,h=t[0].length,b=t.length,x=b,R=W(b),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Vt(i))),M=Tt(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new Dr(x&&q):n}q=t[0];var K=-1,Z=R[0];e:for(;++K<h&&z.length<M;){var re=q[K],ve=i?i(re):re;if(re=s||re!==0?re:0,!(Z?Wi(Z,ve):c(z,ve,s))){for(x=b;--x;){var Pe=R[x];if(!(Pe?Wi(Pe,ve):c(t[x],ve,s)))continue e}Z&&Z.push(ve),z.push(re)}}return z}function X0(t,i,s,c){return In(t,function(h,b,x){i(c,s(h),b,x)}),c}function Yi(t,i,s){i=fr(i,t),t=nd(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Xt(c,t,s)}function mf(t){return at(t)&&Nt(t)==fe}function V0(t){return at(t)&&Nt(t)==on}function J0(t){return at(t)&&Nt(t)==ye}function Xi(t,i,s,c,h){return t===i?!0:t==null||i==null||!at(t)&&!at(i)?t!==t&&i!==i:Z0(t,i,s,c,Xi,h)}function Z0(t,i,s,c,h,b){var x=Te(t),R=Te(i),M=x?ue:Ct(t),z=R?ue:Ct(i);M=M==fe?mt:M,z=z==fe?mt:z;var q=M==mt,K=z==mt,Z=M==z;if(Z&&pr(t)){if(!pr(i))return!1;x=!0,q=!1}if(Z&&!q)return b||(b=new Sn),x||gi(t)?Xf(t,i,s,c,h,b):Oy(t,i,M,s,c,h,b);if(!(s&S)){var re=q&&ze.call(t,"__wrapped__"),ve=K&&ze.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return b||(b=new Sn),h(Pe,me,s,c,b)}}return Z?(b||(b=new Sn),Ty(t,i,s,c,h,b)):!1}function Q0(t){return at(t)&&Ct(t)==it}function Hs(t,i,s,c){var h=s.length,b=h,x=!c;if(t==null)return!b;for(t=Ye(t);h--;){var R=s[h];if(x&&R[2]?R[1]!==t[R[0]]:!(R[0]in t))return!1}for(;++h<b;){R=s[h];var M=R[0],z=t[M],q=R[1];if(x&&R[2]){if(z===n&&!(M in t))return!1}else{var K=new Sn;if(c)var Z=c(z,q,M,t,i,K);if(!(Z===n?Xi(q,z,S|y,c,K):Z))return!1}}return!0}function gf(t){if(!tt(t)||ky(t))return!1;var i=Xn(t)?Qg:lt;return i.test(jr(t))}function ey(t){return at(t)&&Nt(t)==Je}function ty(t){return at(t)&&Ct(t)==Qe}function ny(t){return at(t)&&va(t.length)&&!!Ze[Nt(t)]}function yf(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?_f(t[0],t[1]):bf(t):Wd(t)}function Bs(t){if(!Zi(t))return o0(t);var i=[];for(var s in Ye(t))ze.call(t,s)&&s!="constructor"&&i.push(s);return i}function ry(t){if(!tt(t))return Fy(t);var i=Zi(t),s=[];for(var c in t)c=="constructor"&&(i||!ze.call(t,c))||s.push(c);return s}function zs(t,i){return t<i}function wf(t,i){var s=-1,c=Ht(t)?W(t.length):[];return lr(t,function(h,b,x){c[++s]=i(h,b,x)}),c}function bf(t){var i=ou(t);return i.length==1&&i[0][2]?ed(i[0][0],i[0][1]):function(s){return s===t||Hs(s,t,i)}}function _f(t,i){return su(t)&&Qf(i)?ed(Mn(t),i):function(s){var c=gu(s,t);return c===n&&c===i?yu(s,t):Xi(i,c,S|y)}}function Qo(t,i,s,c,h){t!==i&&js(i,function(b,x){if(h||(h=new Sn),tt(b))iy(t,i,x,s,Qo,c,h);else{var R=c?c(lu(t,x),b,x+"",t,i,h):n;R===n&&(R=b),Ns(t,x,R)}},Bt)}function iy(t,i,s,c,h,b,x){var R=lu(t,s),M=lu(i,s),z=x.get(M);if(z){Ns(t,s,z);return}var q=b?b(R,M,s+"",t,i,x):n,K=q===n;if(K){var Z=Te(M),re=!Z&&pr(M),ve=!Z&&!re&&gi(M);q=M,Z||re||ve?Te(R)?q=R:ct(R)?q=Ut(R):re?(K=!1,q=Mf(M,!0)):ve?(K=!1,q=Df(M,!0)):q=[]:eo(M)||Fr(M)?(q=R,Fr(R)?q=Ad(R):(!tt(R)||Xn(R))&&(q=Zf(M))):K=!1}K&&(x.set(M,q),h(q,M,c,b,x),x.delete(M)),Ns(t,s,q)}function Sf(t,i){var s=t.length;if(s)return i+=i<0?s:0,Yn(i,s)?t[i]:n}function Ef(t,i,s){i.length?i=et(i,function(b){return Te(b)?function(x){return Nr(x,b.length===1?b[0]:b)}:b}):i=[zt];var c=-1;i=et(i,Vt(he()));var h=wf(t,function(b,x,R){var M=et(i,function(z){return z(b)});return{criteria:M,index:++c,value:b}});return Ig(h,function(b,x){return gy(b,x,s)})}function oy(t,i){return xf(t,i,function(s,c){return yu(t,c)})}function xf(t,i,s){for(var c=-1,h=i.length,b={};++c<h;){var x=i[c],R=Nr(t,x);s(R,x)&&Vi(b,fr(x,t),R)}return b}function ay(t){return function(i){return Nr(i,t)}}function qs(t,i,s,c){var h=c?Ag:ai,b=-1,x=i.length,R=t;for(t===i&&(i=Ut(i)),s&&(R=et(t,Vt(s)));++b<x;)for(var M=0,z=i[b],q=s?s(z):z;(M=h(R,q,M,c))>-1;)R!==t&&Bo.call(R,M,1),Bo.call(t,M,1);return t}function Of(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==b){var b=h;Yn(h)?Bo.call(t,h,1):Xs(t,h)}}return t}function Gs(t,i){return t+Go(of()*(i-t+1))}function sy(t,i,s,c){for(var h=-1,b=ht(qo((i-t)/(s||1)),0),x=W(b);b--;)x[c?b:++h]=t,t+=s;return x}function Ks(t,i){var s="";if(!t||i<1||i>We)return s;do i%2&&(s+=t),i=Go(i/2),i&&(t+=t);while(i);return s}function Ae(t,i){return cu(td(t,i,zt),t+"")}function uy(t){return uf(yi(t))}function ly(t,i){var s=yi(t);return la(s,kr(i,0,s.length))}function Vi(t,i,s,c){if(!tt(t))return t;i=fr(i,t);for(var h=-1,b=i.length,x=b-1,R=t;R!=null&&++h<b;){var M=Mn(i[h]),z=s;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var q=R[M];z=c?c(q,M,R):n,z===n&&(z=tt(q)?q:Yn(i[h+1])?[]:{})}Gi(R,M,z),R=R[M]}return t}var Tf=Ko?function(t,i){return Ko.set(t,i),t}:zt,cy=zo?function(t,i){return zo(t,"toString",{configurable:!0,enumerable:!1,value:bu(i),writable:!0})}:zt;function fy(t){return la(yi(t))}function fn(t,i,s){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),s=s>h?h:s,s<0&&(s+=h),h=i>s?0:s-i>>>0,i>>>=0;for(var b=W(h);++c<h;)b[c]=t[c+i];return b}function dy(t,i){var s;return lr(t,function(c,h,b){return s=i(c,h,b),!s}),!!s}function ea(t,i,s){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=ie){for(;c<h;){var b=c+h>>>1,x=t[b];x!==null&&!Zt(x)&&(s?x<=i:x<i)?c=b+1:h=b}return h}return Ys(t,i,zt,s)}function Ys(t,i,s,c){var h=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Zt(i),z=i===n;h<b;){var q=Go((h+b)/2),K=s(t[q]),Z=K!==n,re=K===null,ve=K===K,Pe=Zt(K);if(x)var me=c||ve;else z?me=ve&&(c||Z):R?me=ve&&Z&&(c||!re):M?me=ve&&Z&&!re&&(c||!Pe):re||Pe?me=!1:me=c?K<=i:K<i;me?h=q+1:b=q}return Tt(b,de)}function Cf(t,i){for(var s=-1,c=t.length,h=0,b=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!En(R,M)){var M=R;b[h++]=x===0?0:x}}return b}function Rf(t){return typeof t=="number"?t:Zt(t)?G:+t}function Jt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Jt)+"";if(Zt(t))return af?af.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function cr(t,i,s){var c=-1,h=Mo,b=t.length,x=!0,R=[],M=R;if(s)x=!1,h=Es;else if(b>=a){var z=i?null:Ey(t);if(z)return ko(z);x=!1,h=Wi,M=new Dr}else M=i?[]:R;e:for(;++c<b;){var q=t[c],K=i?i(q):q;if(q=s||q!==0?q:0,x&&K===K){for(var Z=M.length;Z--;)if(M[Z]===K)continue e;i&&M.push(K),R.push(q)}else h(M,K,s)||(M!==R&&M.push(K),R.push(q))}return R}function Xs(t,i){return i=fr(i,t),t=nd(t,i),t==null||delete t[Mn(dn(i))]}function Pf(t,i,s,c){return Vi(t,i,s(Nr(t,i)),c)}function ta(t,i,s,c){for(var h=t.length,b=c?h:-1;(c?b--:++b<h)&&i(t[b],b,t););return s?fn(t,c?0:b,c?b+1:h):fn(t,c?b+1:0,c?h:b)}function Af(t,i){var s=t;return s instanceof ke&&(s=s.value()),xs(i,function(c,h){return h.func.apply(h.thisArg,ar([c],h.args))},s)}function Vs(t,i,s){var c=t.length;if(c<2)return c?cr(t[0]):[];for(var h=-1,b=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(b[h]=Ki(b[h]||x,t[R],i,s));return cr(_t(b,1),i,s)}function If(t,i,s){for(var c=-1,h=t.length,b=i.length,x={};++c<h;){var R=c<b?i[c]:n;s(x,t[c],R)}return x}function Js(t){return ct(t)?t:[]}function Zs(t){return typeof t=="function"?t:zt}function fr(t,i){return Te(t)?t:su(t,i)?[t]:ad(Ue(t))}var py=Ae;function dr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:fn(t,i,s)}var Lf=e0||function(t){return bt.clearTimeout(t)};function Mf(t,i){if(i)return t.slice();var s=t.length,c=Qc?Qc(s):new t.constructor(s);return t.copy(c),c}function Qs(t){var i=new t.constructor(t.byteLength);return new Uo(i).set(new Uo(t)),i}function hy(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function vy(t){var i=new t.constructor(t.source,ot.exec(t));return i.lastIndex=t.lastIndex,i}function my(t){return qi?Ye(qi.call(t)):{}}function Df(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function kf(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,b=Zt(t),x=i!==n,R=i===null,M=i===i,z=Zt(i);if(!R&&!z&&!b&&t>i||b&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!b&&!z&&t<i||z&&s&&h&&!c&&!b||R&&s&&h||!x&&h||!M)return-1}return 0}function gy(t,i,s){for(var c=-1,h=t.criteria,b=i.criteria,x=h.length,R=s.length;++c<x;){var M=kf(h[c],b[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function Nf(t,i,s,c){for(var h=-1,b=t.length,x=s.length,R=-1,M=i.length,z=ht(b-x,0),q=W(M+z),K=!c;++R<M;)q[R]=i[R];for(;++h<x;)(K||h<b)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function $f(t,i,s,c){for(var h=-1,b=t.length,x=-1,R=s.length,M=-1,z=i.length,q=ht(b-R,0),K=W(q+z),Z=!c;++h<q;)K[h]=t[h];for(var re=h;++M<z;)K[re+M]=i[M];for(;++x<R;)(Z||h<b)&&(K[re+s[x]]=t[h++]);return K}function Ut(t,i){var s=-1,c=t.length;for(i||(i=W(c));++s<c;)i[s]=t[s];return i}function Ln(t,i,s,c){var h=!s;s||(s={});for(var b=-1,x=i.length;++b<x;){var R=i[b],M=c?c(s[R],t[R],R,s,t):n;M===n&&(M=t[R]),h?qn(s,R,M):Gi(s,R,M)}return s}function yy(t,i){return Ln(t,au(t),i)}function wy(t,i){return Ln(t,Vf(t),i)}function na(t,i){return function(s,c){var h=Te(s)?xg:U0,b=i?i():{};return h(s,t,he(c,2),b)}}function hi(t){return Ae(function(i,s){var c=-1,h=s.length,b=h>1?s[h-1]:n,x=h>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(h--,b):n,x&&$t(s[0],s[1],x)&&(b=h<3?n:b,h=1),i=Ye(i);++c<h;){var R=s[c];R&&t(i,R,c,b)}return i})}function jf(t,i){return function(s,c){if(s==null)return s;if(!Ht(s))return t(s,c);for(var h=s.length,b=i?h:-1,x=Ye(s);(i?b--:++b<h)&&c(x[b],b,x)!==!1;);return s}}function Ff(t){return function(i,s,c){for(var h=-1,b=Ye(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(b[M],M,b)===!1)break}return i}}function by(t,i,s){var c=i&E,h=Ji(t);function b(){var x=this&&this!==bt&&this instanceof b?h:t;return x.apply(c?s:this,arguments)}return b}function Wf(t){return function(i){i=Ue(i);var s=si(i)?_n(i):n,c=s?s[0]:i.charAt(0),h=s?dr(s,1).join(""):i.slice(1);return c[t]()+h}}function vi(t){return function(i){return xs(jd($d(i).replace(cg,"")),t,"")}}function Ji(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=pi(t.prototype),c=t.apply(s,i);return tt(c)?c:s}}function _y(t,i,s){var c=Ji(t);function h(){for(var b=arguments.length,x=W(b),R=b,M=mi(h);R--;)x[R]=arguments[R];var z=b<3&&x[0]!==M&&x[b-1]!==M?[]:sr(x,M);if(b-=z.length,b<s)return qf(t,i,ra,h.placeholder,n,x,z,n,n,s-b);var q=this&&this!==bt&&this instanceof h?c:t;return Xt(q,this,x)}return h}function Uf(t){return function(i,s,c){var h=Ye(i);if(!Ht(i)){var b=he(s,3);i=gt(i),s=function(R){return b(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[b?i[x]:x]:n}}function Hf(t){return Kn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new un(l);if(h&&!x&&sa(b)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){b=i[c];var R=sa(b),M=R=="wrapper"?iu(b):n;M&&uu(M[0])&&M[1]==(H|C|T|j)&&!M[4].length&&M[9]==1?x=x[sa(M[0])].apply(x,M[3]):x=b.length==1&&uu(b)?x[R]():x.thru(b)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var K=0,Z=s?i[K].apply(this,z):q;++K<s;)Z=i[K].call(this,Z);return Z}})}function ra(t,i,s,c,h,b,x,R,M,z){var q=i&H,K=i&E,Z=i&D,re=i&(C|k),ve=i&J,Pe=Z?n:Ji(t);function me(){for(var De=arguments.length,Ne=W(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(re)var jt=mi(me),en=Mg(Ne,jt);if(c&&(Ne=Nf(Ne,c,h,re)),b&&(Ne=$f(Ne,b,x,re)),De-=en,re&&De<z){var ft=sr(Ne,jt);return qf(t,i,ra,me.placeholder,s,Ne,ft,R,M,z-De)}var xn=K?s:this,Jn=Z?xn[t]:t;return De=Ne.length,R?Ne=Uy(Ne,R):ve&&De>1&&Ne.reverse(),q&&M<De&&(Ne.length=M),this&&this!==bt&&this instanceof me&&(Jn=Pe||Ji(Jn)),Jn.apply(xn,Ne)}return me}function Bf(t,i){return function(s,c){return X0(s,t,i(c),{})}}function ia(t,i){return function(s,c){var h;if(s===n&&c===n)return i;if(s!==n&&(h=s),c!==n){if(h===n)return c;typeof s=="string"||typeof c=="string"?(s=Jt(s),c=Jt(c)):(s=Rf(s),c=Rf(c)),h=t(s,c)}return h}}function eu(t){return Kn(function(i){return i=et(i,Vt(he())),Ae(function(s){var c=this;return t(i,function(h){return Xt(h,c,s)})})})}function oa(t,i){i=i===n?" ":Jt(i);var s=i.length;if(s<2)return s?Ks(i,t):i;var c=Ks(i,qo(t/ui(i)));return si(i)?dr(_n(c),0,t).join(""):c.slice(0,t)}function Sy(t,i,s,c){var h=i&E,b=Ji(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,K=W(q+M),Z=this&&this!==bt&&this instanceof x?b:t;++z<q;)K[z]=c[z];for(;M--;)K[z++]=arguments[++R];return Xt(Z,h?s:this,K)}return x}function zf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Vn(i),s===n?(s=i,i=0):s=Vn(s),c=c===n?i<s?1:-1:Vn(c),sy(i,s,c,t)}}function aa(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=pn(i),s=pn(s)),t(i,s)}}function qf(t,i,s,c,h,b,x,R,M,z){var q=i&C,K=q?x:n,Z=q?n:x,re=q?b:n,ve=q?n:b;i|=q?T:U,i&=~(q?U:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,K,ve,Z,R,M,z],me=s.apply(n,Pe);return uu(t)&&rd(me,Pe),me.placeholder=c,id(me,t,i)}function tu(t){var i=pt[t];return function(s,c){if(s=pn(s),c=c==null?0:Tt(Re(c),292),c&&rf(s)){var h=(Ue(s)+"e").split("e"),b=i(h[0]+"e"+(+h[1]+c));return h=(Ue(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(s)}}var Ey=fi&&1/ko(new fi([,-0]))[1]==xe?function(t){return new fi(t)}:Eu;function Gf(t){return function(i){var s=Ct(i);return s==it?Is(i):s==Qe?Wg(i):Lg(i,t(i))}}function Gn(t,i,s,c,h,b,x,R){var M=i&D;if(!M&&typeof t!="function")throw new un(l);var z=c?c.length:0;if(z||(i&=~(T|U),c=h=n),x=x===n?x:ht(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&U){var q=c,K=h;c=h=n}var Z=M?n:iu(t),re=[t,i,s,c,h,q,K,b,x,R];if(Z&&jy(re,Z),t=re[0],i=re[1],s=re[2],c=re[3],h=re[4],R=re[9]=re[9]===n?M?0:t.length:ht(re[9]-z,0),!R&&i&(C|k)&&(i&=~(C|k)),!i||i==E)var ve=by(t,i,s);else i==C||i==k?ve=_y(t,i,R):(i==T||i==(E|T))&&!h.length?ve=Sy(t,i,s,c):ve=ra.apply(n,re);var Pe=Z?Tf:rd;return id(Pe(ve,re),t,i)}function Kf(t,i,s,c){return t===n||En(t,ci[s])&&!ze.call(c,s)?i:t}function Yf(t,i,s,c,h,b){return tt(t)&&tt(i)&&(b.set(i,t),Qo(t,i,n,Yf,b),b.delete(i)),t}function xy(t){return eo(t)?n:t}function Xf(t,i,s,c,h,b){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=b.get(t),q=b.get(i);if(z&&q)return z==i&&q==t;var K=-1,Z=!0,re=s&y?new Dr:n;for(b.set(t,i),b.set(i,t);++K<R;){var ve=t[K],Pe=i[K];if(c)var me=x?c(Pe,ve,K,i,t,b):c(ve,Pe,K,t,i,b);if(me!==n){if(me)continue;Z=!1;break}if(re){if(!Os(i,function(De,Ne){if(!Wi(re,Ne)&&(ve===De||h(ve,De,s,c,b)))return re.push(Ne)})){Z=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,b))){Z=!1;break}}return b.delete(t),b.delete(i),Z}function Oy(t,i,s,c,h,b,x){switch(s){case Yt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case on:return!(t.byteLength!=i.byteLength||!b(new Uo(t),new Uo(i)));case le:case ye:case dt:return En(+t,+i);case Ke:return t.name==i.name&&t.message==i.message;case Je:case rn:return t==i+"";case it:var R=Is;case Qe:var M=c&S;if(R||(R=ko),t.size!=i.size&&!M)return!1;var z=x.get(t);if(z)return z==i;c|=y,x.set(t,i);var q=Xf(R(t),R(i),c,h,b,x);return x.delete(t),q;case Kt:if(qi)return qi.call(t)==qi.call(i)}return!1}function Ty(t,i,s,c,h,b){var x=s&S,R=nu(t),M=R.length,z=nu(i),q=z.length;if(M!=q&&!x)return!1;for(var K=M;K--;){var Z=R[K];if(!(x?Z in i:ze.call(i,Z)))return!1}var re=b.get(t),ve=b.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;b.set(t,i),b.set(i,t);for(var me=x;++K<M;){Z=R[K];var De=t[Z],Ne=i[Z];if(c)var Qt=x?c(Ne,De,Z,i,t,b):c(De,Ne,Z,t,i,b);if(!(Qt===n?De===Ne||h(De,Ne,s,c,b):Qt)){Pe=!1;break}me||(me=Z=="constructor")}if(Pe&&!me){var jt=t.constructor,en=i.constructor;jt!=en&&"constructor"in t&&"constructor"in i&&!(typeof jt=="function"&&jt instanceof jt&&typeof en=="function"&&en instanceof en)&&(Pe=!1)}return b.delete(t),b.delete(i),Pe}function Kn(t){return cu(td(t,n,cd),t+"")}function nu(t){return vf(t,gt,au)}function ru(t){return vf(t,Bt,Vf)}var iu=Ko?function(t){return Ko.get(t)}:Eu;function sa(t){for(var i=t.name+"",s=di[i],c=ze.call(di,i)?s.length:0;c--;){var h=s[c],b=h.func;if(b==null||b==t)return h.name}return i}function mi(t){var i=ze.call(w,"placeholder")?w:t;return i.placeholder}function he(){var t=w.iteratee||_u;return t=t===_u?yf:t,arguments.length?t(arguments[0],arguments[1]):t}function ua(t,i){var s=t.__data__;return Dy(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ou(t){for(var i=gt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,Qf(h)]}return i}function $r(t,i){var s=$g(t,i);return gf(s)?s:n}function Cy(t){var i=ze.call(t,Lr),s=t[Lr];try{t[Lr]=n;var c=!0}catch{}var h=Fo.call(t);return c&&(i?t[Lr]=s:delete t[Lr]),h}var au=Ms?function(t){return t==null?[]:(t=Ye(t),or(Ms(t),function(i){return tf.call(t,i)}))}:xu,Vf=Ms?function(t){for(var i=[];t;)ar(i,au(t)),t=Ho(t);return i}:xu,Ct=Nt;(Ds&&Ct(new Ds(new ArrayBuffer(1)))!=Yt||Hi&&Ct(new Hi)!=it||ks&&Ct(ks.resolve())!=Wt||fi&&Ct(new fi)!=Qe||Bi&&Ct(new Bi)!=Ot)&&(Ct=function(t){var i=Nt(t),s=i==mt?t.constructor:n,c=s?jr(s):"";if(c)switch(c){case l0:return Yt;case c0:return it;case f0:return Wt;case d0:return Qe;case p0:return Ot}return i});function Ry(t,i,s){for(var c=-1,h=s.length;++c<h;){var b=s[c],x=b.size;switch(b.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Tt(i,t+x);break;case"takeRight":t=ht(t,i-x);break}}return{start:t,end:i}}function Py(t){var i=t.match(ae);return i?i[1].split(te):[]}function Jf(t,i,s){i=fr(i,t);for(var c=-1,h=i.length,b=!1;++c<h;){var x=Mn(i[c]);if(!(b=t!=null&&s(t,x)))break;t=t[x]}return b||++c!=h?b:(h=t==null?0:t.length,!!h&&va(h)&&Yn(x,h)&&(Te(t)||Fr(t)))}function Ay(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&ze.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Zf(t){return typeof t.constructor=="function"&&!Zi(t)?pi(Ho(t)):{}}function Iy(t,i,s){var c=t.constructor;switch(i){case on:return Qs(t);case le:case ye:return new c(+t);case Yt:return hy(t,s);case Sr:case Er:case xr:case Or:case yn:case Hn:case wt:case wn:case bn:return Df(t,s);case it:return new c;case dt:case rn:return new c(t);case Je:return vy(t);case Qe:return new c;case Kt:return my(t)}}function Ly(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(oe,`{
183
+ */Qa.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",_=1,O=2,v=4,S=1,y=2,E=1,D=2,I=4,C=8,k=16,T=32,U=64,H=128,j=256,J=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,we=3,xe=1/0,We=9007199254740991,ut=17976931348623157e292,G=0/0,X=4294967295,de=X-1,ie=X>>>1,ce=[["ary",H],["bind",E],["bindKey",D],["curry",C],["curryRight",k],["flip",J],["partial",T],["partialRight",U],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",be="[object DOMException]",Ke="[object Error]",V="[object Function]",rt="[object GeneratorFunction]",it="[object Map]",dt="[object Number]",An="[object Null]",mt="[object Object]",Wt="[object Promise]",_r="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",rn="[object String]",Kt="[object Symbol]",gn="[object Undefined]",Ot="[object WeakMap]",rr="[object WeakSet]",on="[object ArrayBuffer]",Yt="[object DataView]",Sr="[object Float32Array]",Er="[object Float64Array]",xr="[object Int8Array]",Or="[object Int16Array]",yn="[object Int32Array]",Hn="[object Uint8Array]",wt="[object Uint8ClampedArray]",wn="[object Uint16Array]",bn="[object Uint32Array]",Tr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,Cr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ri=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Rr=RegExp(ri.source),ki=RegExp(ir.source),Ni=/<%-([\s\S]+?)%>/g,Pr=/<%([\s\S]+?)%>/g,ii=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/,Fi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,P=RegExp(p.source),F=/^\s+/,Y=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Ar=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,zm=/^0o[0-7]+$/i,qm=/^(?:0|[1-9]\d*)$/,Gm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ao=/($^)/,Km=/['\n\r\u2028\u2029\\]/g,Io="\\ud800-\\udfff",Ym="\\u0300-\\u036f",Xm="\\ufe20-\\ufe2f",Vm="\\u20d0-\\u20ff",mc=Ym+Xm+Vm,gc="\\u2700-\\u27bf",yc="a-z\\xdf-\\xf6\\xf8-\\xff",Jm="\\xac\\xb1\\xd7\\xf7",Zm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qm="\\u2000-\\u206f",eg=" \\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",wc="A-Z\\xc0-\\xd6\\xd8-\\xde",bc="\\ufe0e\\ufe0f",_c=Jm+Zm+Qm+eg,ms="['’]",tg="["+Io+"]",Sc="["+_c+"]",Lo="["+mc+"]",Ec="\\d+",ng="["+gc+"]",xc="["+yc+"]",Oc="[^"+Io+_c+Ec+gc+yc+wc+"]",gs="\\ud83c[\\udffb-\\udfff]",rg="(?:"+Lo+"|"+gs+")",Tc="[^"+Io+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",ws="[\\ud800-\\udbff][\\udc00-\\udfff]",oi="["+wc+"]",Cc="\\u200d",Rc="(?:"+xc+"|"+Oc+")",ig="(?:"+oi+"|"+Oc+")",Pc="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",Ac="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",Ic=rg+"?",Lc="["+bc+"]?",og="(?:"+Cc+"(?:"+[Tc,ys,ws].join("|")+")"+Lc+Ic+")*",ag="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mc=Lc+Ic+og,ug="(?:"+[ng,ys,ws].join("|")+")"+Mc,lg="(?:"+[Tc+Lo+"?",Lo,ys,ws,tg].join("|")+")",cg=RegExp(ms,"g"),fg=RegExp(Lo,"g"),bs=RegExp(gs+"(?="+gs+")|"+lg+Mc,"g"),dg=RegExp([oi+"?"+xc+"+"+Pc+"(?="+[Sc,oi,"$"].join("|")+")",ig+"+"+Ac+"(?="+[Sc,oi+Rc,"$"].join("|")+")",oi+"?"+Rc+"+"+Pc,oi+"+"+Ac,sg,ag,Ec,ug].join("|"),"g"),pg=RegExp("["+Cc+Io+mc+bc+"]"),hg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vg=["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"],mg=-1,Ze={};Ze[Sr]=Ze[Er]=Ze[xr]=Ze[Or]=Ze[yn]=Ze[Hn]=Ze[wt]=Ze[wn]=Ze[bn]=!0,Ze[fe]=Ze[ue]=Ze[on]=Ze[le]=Ze[Yt]=Ze[ye]=Ze[Ke]=Ze[V]=Ze[it]=Ze[dt]=Ze[mt]=Ze[Je]=Ze[Qe]=Ze[rn]=Ze[Ot]=!1;var Xe={};Xe[fe]=Xe[ue]=Xe[on]=Xe[Yt]=Xe[le]=Xe[ye]=Xe[Sr]=Xe[Er]=Xe[xr]=Xe[Or]=Xe[yn]=Xe[it]=Xe[dt]=Xe[mt]=Xe[Je]=Xe[Qe]=Xe[rn]=Xe[Kt]=Xe[Hn]=Xe[wt]=Xe[wn]=Xe[bn]=!0,Xe[Ke]=Xe[V]=Xe[Ot]=!1;var gg={À:"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"},yg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_g=parseFloat,Sg=parseInt,Dc=typeof Br=="object"&&Br&&Br.Object===Object&&Br,Eg=typeof self=="object"&&self&&self.Object===Object&&self,bt=Dc||Eg||Function("return this")(),_s=r&&!r.nodeType&&r,Ir=_s&&!0&&e&&!e.nodeType&&e,kc=Ir&&Ir.exports===_s,Ss=kc&&Dc.process,an=function(){try{var A=Ir&&Ir.require&&Ir.require("util").types;return A||Ss&&Ss.binding&&Ss.binding("util")}catch{}}(),Nc=an&&an.isArrayBuffer,$c=an&&an.isDate,jc=an&&an.isMap,Fc=an&&an.isRegExp,Wc=an&&an.isSet,Uc=an&&an.isTypedArray;function Xt(A,B,W){switch(W.length){case 0:return A.call(B);case 1:return A.call(B,W[0]);case 2:return A.call(B,W[0],W[1]);case 3:return A.call(B,W[0],W[1],W[2])}return A.apply(B,W)}function xg(A,B,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var pt=A[Ee];B(ne,pt,W(pt),A)}return ne}function sn(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne&&B(A[W],W,A)!==!1;);return A}function Og(A,B){for(var W=A==null?0:A.length;W--&&B(A[W],W,A)!==!1;);return A}function Hc(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!B(A[W],W,A))return!1;return!0}function or(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];B(pt,W,A)&&(Fe[Ee++]=pt)}return Fe}function Mo(A,B){var W=A==null?0:A.length;return!!W&&ai(A,B,0)>-1}function Es(A,B,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(B,A[ne]))return!0;return!1}function et(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=B(A[W],W,A);return Ee}function ar(A,B){for(var W=-1,ne=B.length,Ee=A.length;++W<ne;)A[Ee+W]=B[W];return A}function xs(A,B,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=B(W,A[Ee],Ee,A);return W}function Tg(A,B,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=B(W,A[Ee],Ee,A);return W}function Os(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(B(A[W],W,A))return!0;return!1}var Cg=Ts("length");function Rg(A){return A.split("")}function Pg(A){return A.match(Q)||[]}function Bc(A,B,W){var ne;return W(A,function(Ee,Fe,pt){if(B(Ee,Fe,pt))return ne=Fe,!1}),ne}function Do(A,B,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(B(A[Fe],Fe,A))return Fe;return-1}function ai(A,B,W){return B===B?Ug(A,B,W):Do(A,zc,W)}function Ag(A,B,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],B))return Ee;return-1}function zc(A){return A!==A}function qc(A,B){var W=A==null?0:A.length;return W?Rs(A,B)/W:G}function Ts(A){return function(B){return B==null?n:B[A]}}function Cs(A){return function(B){return A==null?n:A[B]}}function Gc(A,B,W,ne,Ee){return Ee(A,function(Fe,pt,Ye){W=ne?(ne=!1,Fe):B(W,Fe,pt,Ye)}),W}function Ig(A,B){var W=A.length;for(A.sort(B);W--;)A[W]=A[W].value;return A}function Rs(A,B){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=B(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function Ps(A,B){for(var W=-1,ne=Array(A);++W<A;)ne[W]=B(W);return ne}function Lg(A,B){return et(B,function(W){return[W,A[W]]})}function Kc(A){return A&&A.slice(0,Jc(A)+1).replace(F,"")}function Vt(A){return function(B){return A(B)}}function As(A,B){return et(B,function(W){return A[W]})}function Wi(A,B){return A.has(B)}function Yc(A,B){for(var W=-1,ne=A.length;++W<ne&&ai(B,A[W],0)>-1;);return W}function Xc(A,B){for(var W=A.length;W--&&ai(B,A[W],0)>-1;);return W}function Mg(A,B){for(var W=A.length,ne=0;W--;)A[W]===B&&++ne;return ne}var Dg=Cs(gg),kg=Cs(yg);function Ng(A){return"\\"+bg[A]}function $g(A,B){return A==null?n:A[B]}function si(A){return pg.test(A)}function jg(A){return hg.test(A)}function Fg(A){for(var B,W=[];!(B=A.next()).done;)W.push(B.value);return W}function Is(A){var B=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++B]=[Ee,ne]}),W}function Vc(A,B){return function(W){return A(B(W))}}function sr(A,B){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];(pt===B||pt===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function ko(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=ne}),W}function Wg(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=[ne,ne]}),W}function Ug(A,B,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===B)return ne;return-1}function Hg(A,B,W){for(var ne=W+1;ne--;)if(A[ne]===B)return ne;return ne}function ui(A){return si(A)?zg(A):Cg(A)}function _n(A){return si(A)?qg(A):Rg(A)}function Jc(A){for(var B=A.length;B--&&Y.test(A.charAt(B)););return B}var Bg=Cs(wg);function zg(A){for(var B=bs.lastIndex=0;bs.test(A);)++B;return B}function qg(A){return A.match(bs)||[]}function Gg(A){return A.match(dg)||[]}var Kg=function A(B){B=B==null?bt:li.defaults(bt.Object(),B,li.pick(bt,vg));var W=B.Array,ne=B.Date,Ee=B.Error,Fe=B.Function,pt=B.Math,Ye=B.Object,Ls=B.RegExp,Yg=B.String,un=B.TypeError,No=W.prototype,Xg=Fe.prototype,ci=Ye.prototype,$o=B["__core-js_shared__"],jo=Xg.toString,qe=ci.hasOwnProperty,Vg=0,Zc=function(){var t=/[^.]+$/.exec($o&&$o.keys&&$o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Fo=ci.toString,Jg=jo.call(Ye),Zg=bt._,Qg=Ls("^"+jo.call(qe).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wo=kc?B.Buffer:n,ur=B.Symbol,Uo=B.Uint8Array,Qc=Wo?Wo.allocUnsafe:n,Ho=Vc(Ye.getPrototypeOf,Ye),ef=Ye.create,tf=ci.propertyIsEnumerable,Bo=No.splice,nf=ur?ur.isConcatSpreadable:n,Ui=ur?ur.iterator:n,Lr=ur?ur.toStringTag:n,zo=function(){try{var t=$r(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),e0=B.clearTimeout!==bt.clearTimeout&&B.clearTimeout,t0=ne&&ne.now!==bt.Date.now&&ne.now,n0=B.setTimeout!==bt.setTimeout&&B.setTimeout,qo=pt.ceil,Go=pt.floor,Ms=Ye.getOwnPropertySymbols,r0=Wo?Wo.isBuffer:n,rf=B.isFinite,i0=No.join,o0=Vc(Ye.keys,Ye),ht=pt.max,Tt=pt.min,a0=ne.now,s0=B.parseInt,of=pt.random,u0=No.reverse,Ds=$r(B,"DataView"),Hi=$r(B,"Map"),ks=$r(B,"Promise"),fi=$r(B,"Set"),Bi=$r(B,"WeakMap"),zi=$r(Ye,"create"),Ko=Bi&&new Bi,di={},l0=jr(Ds),c0=jr(Hi),f0=jr(ks),d0=jr(fi),p0=jr(Bi),Yo=ur?ur.prototype:n,qi=Yo?Yo.valueOf:n,af=Yo?Yo.toString:n;function w(t){if(at(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(qe.call(t,"__wrapped__"))return sd(t)}return new ln(t)}var pi=function(){function t(){}return function(i){if(!tt(i))return{};if(ef)return ef(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Xo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}w.templateSettings={escape:Ni,evaluate:Pr,interpolate:ii,variable:"",imports:{_:w}},w.prototype=Xo.prototype,w.prototype.constructor=w,ln.prototype=pi(Xo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function h0(){var t=new ke(this.__wrapped__);return t.__actions__=Ut(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ut(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ut(this.__views__),t}function v0(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function m0(){var t=this.__wrapped__.value(),i=this.__dir__,s=Te(t),c=i<0,h=s?t.length:0,b=Ry(0,h,this.__views__),x=b.start,R=b.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,K=q.length,Z=0,re=Tt(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return Af(t,this.__actions__);var ve=[];e:for(;M--&&Z<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<K;){var De=q[Pe],Ne=De.iteratee,Qt=De.type,jt=Ne(me);if(Qt==Le)me=jt;else if(!jt){if(Qt==se)continue e;break e}}ve[Z++]=me}return ve}ke.prototype=pi(Xo.prototype),ke.prototype.constructor=ke;function Mr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function g0(){this.__data__=zi?zi(null):{},this.size=0}function y0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function w0(t){var i=this.__data__;if(zi){var s=i[t];return s===d?n:s}return qe.call(i,t)?i[t]:n}function b0(t){var i=this.__data__;return zi?i[t]!==n:qe.call(i,t)}function _0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=zi&&i===n?d:i,this}Mr.prototype.clear=g0,Mr.prototype.delete=y0,Mr.prototype.get=w0,Mr.prototype.has=b0,Mr.prototype.set=_0;function Bn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function S0(){this.__data__=[],this.size=0}function E0(t){var i=this.__data__,s=Vo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():Bo.call(i,s,1),--this.size,!0}function x0(t){var i=this.__data__,s=Vo(i,t);return s<0?n:i[s][1]}function O0(t){return Vo(this.__data__,t)>-1}function T0(t,i){var s=this.__data__,c=Vo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Bn.prototype.clear=S0,Bn.prototype.delete=E0,Bn.prototype.get=x0,Bn.prototype.has=O0,Bn.prototype.set=T0;function zn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function C0(){this.size=0,this.__data__={hash:new Mr,map:new(Hi||Bn),string:new Mr}}function R0(t){var i=ua(this,t).delete(t);return this.size-=i?1:0,i}function P0(t){return ua(this,t).get(t)}function A0(t){return ua(this,t).has(t)}function I0(t,i){var s=ua(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}zn.prototype.clear=C0,zn.prototype.delete=R0,zn.prototype.get=P0,zn.prototype.has=A0,zn.prototype.set=I0;function Dr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new zn;++i<s;)this.add(t[i])}function L0(t){return this.__data__.set(t,d),this}function M0(t){return this.__data__.has(t)}Dr.prototype.add=Dr.prototype.push=L0,Dr.prototype.has=M0;function Sn(t){var i=this.__data__=new Bn(t);this.size=i.size}function D0(){this.__data__=new Bn,this.size=0}function k0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function N0(t){return this.__data__.get(t)}function $0(t){return this.__data__.has(t)}function j0(t,i){var s=this.__data__;if(s instanceof Bn){var c=s.__data__;if(!Hi||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new zn(c)}return s.set(t,i),this.size=s.size,this}Sn.prototype.clear=D0,Sn.prototype.delete=k0,Sn.prototype.get=N0,Sn.prototype.has=$0,Sn.prototype.set=j0;function sf(t,i){var s=Te(t),c=!s&&Fr(t),h=!s&&!c&&pr(t),b=!s&&!c&&!h&&gi(t),x=s||c||h||b,R=x?Ps(t.length,Yg):[],M=R.length;for(var z in t)(i||qe.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||b&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Yn(z,M)))&&R.push(z);return R}function uf(t){var i=t.length;return i?t[Gs(0,i-1)]:n}function F0(t,i){return la(Ut(t),kr(i,0,t.length))}function W0(t){return la(Ut(t))}function Ns(t,i,s){(s!==n&&!En(t[i],s)||s===n&&!(i in t))&&qn(t,i,s)}function Gi(t,i,s){var c=t[i];(!(qe.call(t,i)&&En(c,s))||s===n&&!(i in t))&&qn(t,i,s)}function Vo(t,i){for(var s=t.length;s--;)if(En(t[s][0],i))return s;return-1}function U0(t,i,s,c){return lr(t,function(h,b,x){i(c,h,s(h),x)}),c}function lf(t,i){return t&&Ln(i,gt(i),t)}function H0(t,i){return t&&Ln(i,Bt(i),t)}function qn(t,i,s){i=="__proto__"&&zo?zo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function $s(t,i){for(var s=-1,c=i.length,h=W(c),b=t==null;++s<c;)h[s]=b?n:gu(t,i[s]);return h}function kr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function cn(t,i,s,c,h,b){var x,R=i&_,M=i&O,z=i&v;if(s&&(x=h?s(t,c,h,b):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Ay(t),!R)return Ut(t,x)}else{var K=Ct(t),Z=K==V||K==rt;if(pr(t))return Mf(t,R);if(K==mt||K==fe||Z&&!h){if(x=M||Z?{}:Zf(t),!R)return M?wy(t,H0(x,t)):yy(t,lf(x,t))}else{if(!Xe[K])return h?t:{};x=Iy(t,K,R)}}b||(b=new Sn);var re=b.get(t);if(re)return re;b.set(t,x),Cd(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,b))}):Od(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,b))});var ve=z?M?ru:nu:M?Bt:gt,Pe=q?n:ve(t);return sn(Pe||t,function(me,De){Pe&&(De=me,me=t[De]),Gi(x,De,cn(me,i,s,De,t,b))}),x}function B0(t){var i=gt(t);return function(s){return cf(s,t,i)}}function cf(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ye(t);c--;){var h=s[c],b=i[h],x=t[h];if(x===n&&!(h in t)||!b(x))return!1}return!0}function ff(t,i,s){if(typeof t!="function")throw new un(l);return Qi(function(){t.apply(n,s)},i)}function Ki(t,i,s,c){var h=-1,b=Mo,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Vt(s))),c?(b=Es,x=!1):i.length>=a&&(b=Wi,x=!1,i=new Dr(i));e:for(;++h<R;){var q=t[h],K=s==null?q:s(q);if(q=c||q!==0?q:0,x&&K===K){for(var Z=z;Z--;)if(i[Z]===K)continue e;M.push(q)}else b(i,K,c)||M.push(q)}return M}var lr=jf(In),df=jf(Fs,!0);function z0(t,i){var s=!0;return lr(t,function(c,h,b){return s=!!i(c,h,b),s}),s}function Jo(t,i,s){for(var c=-1,h=t.length;++c<h;){var b=t[c],x=i(b);if(x!=null&&(R===n?x===x&&!Zt(x):s(x,R)))var R=x,M=b}return M}function q0(t,i,s,c){var h=t.length;for(s=Re(s),s<0&&(s=-s>h?0:h+s),c=c===n||c>h?h:Re(c),c<0&&(c+=h),c=s>c?0:Pd(c);s<c;)t[s++]=i;return t}function pf(t,i){var s=[];return lr(t,function(c,h,b){i(c,h,b)&&s.push(c)}),s}function _t(t,i,s,c,h){var b=-1,x=t.length;for(s||(s=My),h||(h=[]);++b<x;){var R=t[b];i>0&&s(R)?i>1?_t(R,i-1,s,c,h):ar(h,R):c||(h[h.length]=R)}return h}var js=Ff(),hf=Ff(!0);function In(t,i){return t&&js(t,i,gt)}function Fs(t,i){return t&&hf(t,i,gt)}function Zo(t,i){return or(i,function(s){return Xn(t[s])})}function Nr(t,i){i=fr(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[Mn(i[s++])];return s&&s==c?t:n}function vf(t,i,s){var c=i(t);return Te(t)?c:ar(c,s(t))}function Nt(t){return t==null?t===n?gn:An:Lr&&Lr in Ye(t)?Cy(t):Wy(t)}function Ws(t,i){return t>i}function G0(t,i){return t!=null&&qe.call(t,i)}function K0(t,i){return t!=null&&i in Ye(t)}function Y0(t,i,s){return t>=Tt(i,s)&&t<ht(i,s)}function Us(t,i,s){for(var c=s?Es:Mo,h=t[0].length,b=t.length,x=b,R=W(b),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Vt(i))),M=Tt(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new Dr(x&&q):n}q=t[0];var K=-1,Z=R[0];e:for(;++K<h&&z.length<M;){var re=q[K],ve=i?i(re):re;if(re=s||re!==0?re:0,!(Z?Wi(Z,ve):c(z,ve,s))){for(x=b;--x;){var Pe=R[x];if(!(Pe?Wi(Pe,ve):c(t[x],ve,s)))continue e}Z&&Z.push(ve),z.push(re)}}return z}function X0(t,i,s,c){return In(t,function(h,b,x){i(c,s(h),b,x)}),c}function Yi(t,i,s){i=fr(i,t),t=nd(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Xt(c,t,s)}function mf(t){return at(t)&&Nt(t)==fe}function V0(t){return at(t)&&Nt(t)==on}function J0(t){return at(t)&&Nt(t)==ye}function Xi(t,i,s,c,h){return t===i?!0:t==null||i==null||!at(t)&&!at(i)?t!==t&&i!==i:Z0(t,i,s,c,Xi,h)}function Z0(t,i,s,c,h,b){var x=Te(t),R=Te(i),M=x?ue:Ct(t),z=R?ue:Ct(i);M=M==fe?mt:M,z=z==fe?mt:z;var q=M==mt,K=z==mt,Z=M==z;if(Z&&pr(t)){if(!pr(i))return!1;x=!0,q=!1}if(Z&&!q)return b||(b=new Sn),x||gi(t)?Xf(t,i,s,c,h,b):Oy(t,i,M,s,c,h,b);if(!(s&S)){var re=q&&qe.call(t,"__wrapped__"),ve=K&&qe.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return b||(b=new Sn),h(Pe,me,s,c,b)}}return Z?(b||(b=new Sn),Ty(t,i,s,c,h,b)):!1}function Q0(t){return at(t)&&Ct(t)==it}function Hs(t,i,s,c){var h=s.length,b=h,x=!c;if(t==null)return!b;for(t=Ye(t);h--;){var R=s[h];if(x&&R[2]?R[1]!==t[R[0]]:!(R[0]in t))return!1}for(;++h<b;){R=s[h];var M=R[0],z=t[M],q=R[1];if(x&&R[2]){if(z===n&&!(M in t))return!1}else{var K=new Sn;if(c)var Z=c(z,q,M,t,i,K);if(!(Z===n?Xi(q,z,S|y,c,K):Z))return!1}}return!0}function gf(t){if(!tt(t)||ky(t))return!1;var i=Xn(t)?Qg:lt;return i.test(jr(t))}function ey(t){return at(t)&&Nt(t)==Je}function ty(t){return at(t)&&Ct(t)==Qe}function ny(t){return at(t)&&va(t.length)&&!!Ze[Nt(t)]}function yf(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?_f(t[0],t[1]):bf(t):Wd(t)}function Bs(t){if(!Zi(t))return o0(t);var i=[];for(var s in Ye(t))qe.call(t,s)&&s!="constructor"&&i.push(s);return i}function ry(t){if(!tt(t))return Fy(t);var i=Zi(t),s=[];for(var c in t)c=="constructor"&&(i||!qe.call(t,c))||s.push(c);return s}function zs(t,i){return t<i}function wf(t,i){var s=-1,c=Ht(t)?W(t.length):[];return lr(t,function(h,b,x){c[++s]=i(h,b,x)}),c}function bf(t){var i=ou(t);return i.length==1&&i[0][2]?ed(i[0][0],i[0][1]):function(s){return s===t||Hs(s,t,i)}}function _f(t,i){return su(t)&&Qf(i)?ed(Mn(t),i):function(s){var c=gu(s,t);return c===n&&c===i?yu(s,t):Xi(i,c,S|y)}}function Qo(t,i,s,c,h){t!==i&&js(i,function(b,x){if(h||(h=new Sn),tt(b))iy(t,i,x,s,Qo,c,h);else{var R=c?c(lu(t,x),b,x+"",t,i,h):n;R===n&&(R=b),Ns(t,x,R)}},Bt)}function iy(t,i,s,c,h,b,x){var R=lu(t,s),M=lu(i,s),z=x.get(M);if(z){Ns(t,s,z);return}var q=b?b(R,M,s+"",t,i,x):n,K=q===n;if(K){var Z=Te(M),re=!Z&&pr(M),ve=!Z&&!re&&gi(M);q=M,Z||re||ve?Te(R)?q=R:ct(R)?q=Ut(R):re?(K=!1,q=Mf(M,!0)):ve?(K=!1,q=Df(M,!0)):q=[]:eo(M)||Fr(M)?(q=R,Fr(R)?q=Ad(R):(!tt(R)||Xn(R))&&(q=Zf(M))):K=!1}K&&(x.set(M,q),h(q,M,c,b,x),x.delete(M)),Ns(t,s,q)}function Sf(t,i){var s=t.length;if(s)return i+=i<0?s:0,Yn(i,s)?t[i]:n}function Ef(t,i,s){i.length?i=et(i,function(b){return Te(b)?function(x){return Nr(x,b.length===1?b[0]:b)}:b}):i=[zt];var c=-1;i=et(i,Vt(he()));var h=wf(t,function(b,x,R){var M=et(i,function(z){return z(b)});return{criteria:M,index:++c,value:b}});return Ig(h,function(b,x){return gy(b,x,s)})}function oy(t,i){return xf(t,i,function(s,c){return yu(t,c)})}function xf(t,i,s){for(var c=-1,h=i.length,b={};++c<h;){var x=i[c],R=Nr(t,x);s(R,x)&&Vi(b,fr(x,t),R)}return b}function ay(t){return function(i){return Nr(i,t)}}function qs(t,i,s,c){var h=c?Ag:ai,b=-1,x=i.length,R=t;for(t===i&&(i=Ut(i)),s&&(R=et(t,Vt(s)));++b<x;)for(var M=0,z=i[b],q=s?s(z):z;(M=h(R,q,M,c))>-1;)R!==t&&Bo.call(R,M,1),Bo.call(t,M,1);return t}function Of(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==b){var b=h;Yn(h)?Bo.call(t,h,1):Xs(t,h)}}return t}function Gs(t,i){return t+Go(of()*(i-t+1))}function sy(t,i,s,c){for(var h=-1,b=ht(qo((i-t)/(s||1)),0),x=W(b);b--;)x[c?b:++h]=t,t+=s;return x}function Ks(t,i){var s="";if(!t||i<1||i>We)return s;do i%2&&(s+=t),i=Go(i/2),i&&(t+=t);while(i);return s}function Ae(t,i){return cu(td(t,i,zt),t+"")}function uy(t){return uf(yi(t))}function ly(t,i){var s=yi(t);return la(s,kr(i,0,s.length))}function Vi(t,i,s,c){if(!tt(t))return t;i=fr(i,t);for(var h=-1,b=i.length,x=b-1,R=t;R!=null&&++h<b;){var M=Mn(i[h]),z=s;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var q=R[M];z=c?c(q,M,R):n,z===n&&(z=tt(q)?q:Yn(i[h+1])?[]:{})}Gi(R,M,z),R=R[M]}return t}var Tf=Ko?function(t,i){return Ko.set(t,i),t}:zt,cy=zo?function(t,i){return zo(t,"toString",{configurable:!0,enumerable:!1,value:bu(i),writable:!0})}:zt;function fy(t){return la(yi(t))}function fn(t,i,s){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),s=s>h?h:s,s<0&&(s+=h),h=i>s?0:s-i>>>0,i>>>=0;for(var b=W(h);++c<h;)b[c]=t[c+i];return b}function dy(t,i){var s;return lr(t,function(c,h,b){return s=i(c,h,b),!s}),!!s}function ea(t,i,s){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=ie){for(;c<h;){var b=c+h>>>1,x=t[b];x!==null&&!Zt(x)&&(s?x<=i:x<i)?c=b+1:h=b}return h}return Ys(t,i,zt,s)}function Ys(t,i,s,c){var h=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Zt(i),z=i===n;h<b;){var q=Go((h+b)/2),K=s(t[q]),Z=K!==n,re=K===null,ve=K===K,Pe=Zt(K);if(x)var me=c||ve;else z?me=ve&&(c||Z):R?me=ve&&Z&&(c||!re):M?me=ve&&Z&&!re&&(c||!Pe):re||Pe?me=!1:me=c?K<=i:K<i;me?h=q+1:b=q}return Tt(b,de)}function Cf(t,i){for(var s=-1,c=t.length,h=0,b=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!En(R,M)){var M=R;b[h++]=x===0?0:x}}return b}function Rf(t){return typeof t=="number"?t:Zt(t)?G:+t}function Jt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Jt)+"";if(Zt(t))return af?af.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function cr(t,i,s){var c=-1,h=Mo,b=t.length,x=!0,R=[],M=R;if(s)x=!1,h=Es;else if(b>=a){var z=i?null:Ey(t);if(z)return ko(z);x=!1,h=Wi,M=new Dr}else M=i?[]:R;e:for(;++c<b;){var q=t[c],K=i?i(q):q;if(q=s||q!==0?q:0,x&&K===K){for(var Z=M.length;Z--;)if(M[Z]===K)continue e;i&&M.push(K),R.push(q)}else h(M,K,s)||(M!==R&&M.push(K),R.push(q))}return R}function Xs(t,i){return i=fr(i,t),t=nd(t,i),t==null||delete t[Mn(dn(i))]}function Pf(t,i,s,c){return Vi(t,i,s(Nr(t,i)),c)}function ta(t,i,s,c){for(var h=t.length,b=c?h:-1;(c?b--:++b<h)&&i(t[b],b,t););return s?fn(t,c?0:b,c?b+1:h):fn(t,c?b+1:0,c?h:b)}function Af(t,i){var s=t;return s instanceof ke&&(s=s.value()),xs(i,function(c,h){return h.func.apply(h.thisArg,ar([c],h.args))},s)}function Vs(t,i,s){var c=t.length;if(c<2)return c?cr(t[0]):[];for(var h=-1,b=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(b[h]=Ki(b[h]||x,t[R],i,s));return cr(_t(b,1),i,s)}function If(t,i,s){for(var c=-1,h=t.length,b=i.length,x={};++c<h;){var R=c<b?i[c]:n;s(x,t[c],R)}return x}function Js(t){return ct(t)?t:[]}function Zs(t){return typeof t=="function"?t:zt}function fr(t,i){return Te(t)?t:su(t,i)?[t]:ad(Ue(t))}var py=Ae;function dr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:fn(t,i,s)}var Lf=e0||function(t){return bt.clearTimeout(t)};function Mf(t,i){if(i)return t.slice();var s=t.length,c=Qc?Qc(s):new t.constructor(s);return t.copy(c),c}function Qs(t){var i=new t.constructor(t.byteLength);return new Uo(i).set(new Uo(t)),i}function hy(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function vy(t){var i=new t.constructor(t.source,ot.exec(t));return i.lastIndex=t.lastIndex,i}function my(t){return qi?Ye(qi.call(t)):{}}function Df(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function kf(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,b=Zt(t),x=i!==n,R=i===null,M=i===i,z=Zt(i);if(!R&&!z&&!b&&t>i||b&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!b&&!z&&t<i||z&&s&&h&&!c&&!b||R&&s&&h||!x&&h||!M)return-1}return 0}function gy(t,i,s){for(var c=-1,h=t.criteria,b=i.criteria,x=h.length,R=s.length;++c<x;){var M=kf(h[c],b[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function Nf(t,i,s,c){for(var h=-1,b=t.length,x=s.length,R=-1,M=i.length,z=ht(b-x,0),q=W(M+z),K=!c;++R<M;)q[R]=i[R];for(;++h<x;)(K||h<b)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function $f(t,i,s,c){for(var h=-1,b=t.length,x=-1,R=s.length,M=-1,z=i.length,q=ht(b-R,0),K=W(q+z),Z=!c;++h<q;)K[h]=t[h];for(var re=h;++M<z;)K[re+M]=i[M];for(;++x<R;)(Z||h<b)&&(K[re+s[x]]=t[h++]);return K}function Ut(t,i){var s=-1,c=t.length;for(i||(i=W(c));++s<c;)i[s]=t[s];return i}function Ln(t,i,s,c){var h=!s;s||(s={});for(var b=-1,x=i.length;++b<x;){var R=i[b],M=c?c(s[R],t[R],R,s,t):n;M===n&&(M=t[R]),h?qn(s,R,M):Gi(s,R,M)}return s}function yy(t,i){return Ln(t,au(t),i)}function wy(t,i){return Ln(t,Vf(t),i)}function na(t,i){return function(s,c){var h=Te(s)?xg:U0,b=i?i():{};return h(s,t,he(c,2),b)}}function hi(t){return Ae(function(i,s){var c=-1,h=s.length,b=h>1?s[h-1]:n,x=h>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(h--,b):n,x&&$t(s[0],s[1],x)&&(b=h<3?n:b,h=1),i=Ye(i);++c<h;){var R=s[c];R&&t(i,R,c,b)}return i})}function jf(t,i){return function(s,c){if(s==null)return s;if(!Ht(s))return t(s,c);for(var h=s.length,b=i?h:-1,x=Ye(s);(i?b--:++b<h)&&c(x[b],b,x)!==!1;);return s}}function Ff(t){return function(i,s,c){for(var h=-1,b=Ye(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(b[M],M,b)===!1)break}return i}}function by(t,i,s){var c=i&E,h=Ji(t);function b(){var x=this&&this!==bt&&this instanceof b?h:t;return x.apply(c?s:this,arguments)}return b}function Wf(t){return function(i){i=Ue(i);var s=si(i)?_n(i):n,c=s?s[0]:i.charAt(0),h=s?dr(s,1).join(""):i.slice(1);return c[t]()+h}}function vi(t){return function(i){return xs(jd($d(i).replace(cg,"")),t,"")}}function Ji(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=pi(t.prototype),c=t.apply(s,i);return tt(c)?c:s}}function _y(t,i,s){var c=Ji(t);function h(){for(var b=arguments.length,x=W(b),R=b,M=mi(h);R--;)x[R]=arguments[R];var z=b<3&&x[0]!==M&&x[b-1]!==M?[]:sr(x,M);if(b-=z.length,b<s)return qf(t,i,ra,h.placeholder,n,x,z,n,n,s-b);var q=this&&this!==bt&&this instanceof h?c:t;return Xt(q,this,x)}return h}function Uf(t){return function(i,s,c){var h=Ye(i);if(!Ht(i)){var b=he(s,3);i=gt(i),s=function(R){return b(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[b?i[x]:x]:n}}function Hf(t){return Kn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new un(l);if(h&&!x&&sa(b)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){b=i[c];var R=sa(b),M=R=="wrapper"?iu(b):n;M&&uu(M[0])&&M[1]==(H|C|T|j)&&!M[4].length&&M[9]==1?x=x[sa(M[0])].apply(x,M[3]):x=b.length==1&&uu(b)?x[R]():x.thru(b)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var K=0,Z=s?i[K].apply(this,z):q;++K<s;)Z=i[K].call(this,Z);return Z}})}function ra(t,i,s,c,h,b,x,R,M,z){var q=i&H,K=i&E,Z=i&D,re=i&(C|k),ve=i&J,Pe=Z?n:Ji(t);function me(){for(var De=arguments.length,Ne=W(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(re)var jt=mi(me),en=Mg(Ne,jt);if(c&&(Ne=Nf(Ne,c,h,re)),b&&(Ne=$f(Ne,b,x,re)),De-=en,re&&De<z){var ft=sr(Ne,jt);return qf(t,i,ra,me.placeholder,s,Ne,ft,R,M,z-De)}var xn=K?s:this,Jn=Z?xn[t]:t;return De=Ne.length,R?Ne=Uy(Ne,R):ve&&De>1&&Ne.reverse(),q&&M<De&&(Ne.length=M),this&&this!==bt&&this instanceof me&&(Jn=Pe||Ji(Jn)),Jn.apply(xn,Ne)}return me}function Bf(t,i){return function(s,c){return X0(s,t,i(c),{})}}function ia(t,i){return function(s,c){var h;if(s===n&&c===n)return i;if(s!==n&&(h=s),c!==n){if(h===n)return c;typeof s=="string"||typeof c=="string"?(s=Jt(s),c=Jt(c)):(s=Rf(s),c=Rf(c)),h=t(s,c)}return h}}function eu(t){return Kn(function(i){return i=et(i,Vt(he())),Ae(function(s){var c=this;return t(i,function(h){return Xt(h,c,s)})})})}function oa(t,i){i=i===n?" ":Jt(i);var s=i.length;if(s<2)return s?Ks(i,t):i;var c=Ks(i,qo(t/ui(i)));return si(i)?dr(_n(c),0,t).join(""):c.slice(0,t)}function Sy(t,i,s,c){var h=i&E,b=Ji(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,K=W(q+M),Z=this&&this!==bt&&this instanceof x?b:t;++z<q;)K[z]=c[z];for(;M--;)K[z++]=arguments[++R];return Xt(Z,h?s:this,K)}return x}function zf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Vn(i),s===n?(s=i,i=0):s=Vn(s),c=c===n?i<s?1:-1:Vn(c),sy(i,s,c,t)}}function aa(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=pn(i),s=pn(s)),t(i,s)}}function qf(t,i,s,c,h,b,x,R,M,z){var q=i&C,K=q?x:n,Z=q?n:x,re=q?b:n,ve=q?n:b;i|=q?T:U,i&=~(q?U:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,K,ve,Z,R,M,z],me=s.apply(n,Pe);return uu(t)&&rd(me,Pe),me.placeholder=c,id(me,t,i)}function tu(t){var i=pt[t];return function(s,c){if(s=pn(s),c=c==null?0:Tt(Re(c),292),c&&rf(s)){var h=(Ue(s)+"e").split("e"),b=i(h[0]+"e"+(+h[1]+c));return h=(Ue(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(s)}}var Ey=fi&&1/ko(new fi([,-0]))[1]==xe?function(t){return new fi(t)}:Eu;function Gf(t){return function(i){var s=Ct(i);return s==it?Is(i):s==Qe?Wg(i):Lg(i,t(i))}}function Gn(t,i,s,c,h,b,x,R){var M=i&D;if(!M&&typeof t!="function")throw new un(l);var z=c?c.length:0;if(z||(i&=~(T|U),c=h=n),x=x===n?x:ht(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&U){var q=c,K=h;c=h=n}var Z=M?n:iu(t),re=[t,i,s,c,h,q,K,b,x,R];if(Z&&jy(re,Z),t=re[0],i=re[1],s=re[2],c=re[3],h=re[4],R=re[9]=re[9]===n?M?0:t.length:ht(re[9]-z,0),!R&&i&(C|k)&&(i&=~(C|k)),!i||i==E)var ve=by(t,i,s);else i==C||i==k?ve=_y(t,i,R):(i==T||i==(E|T))&&!h.length?ve=Sy(t,i,s,c):ve=ra.apply(n,re);var Pe=Z?Tf:rd;return id(Pe(ve,re),t,i)}function Kf(t,i,s,c){return t===n||En(t,ci[s])&&!qe.call(c,s)?i:t}function Yf(t,i,s,c,h,b){return tt(t)&&tt(i)&&(b.set(i,t),Qo(t,i,n,Yf,b),b.delete(i)),t}function xy(t){return eo(t)?n:t}function Xf(t,i,s,c,h,b){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=b.get(t),q=b.get(i);if(z&&q)return z==i&&q==t;var K=-1,Z=!0,re=s&y?new Dr:n;for(b.set(t,i),b.set(i,t);++K<R;){var ve=t[K],Pe=i[K];if(c)var me=x?c(Pe,ve,K,i,t,b):c(ve,Pe,K,t,i,b);if(me!==n){if(me)continue;Z=!1;break}if(re){if(!Os(i,function(De,Ne){if(!Wi(re,Ne)&&(ve===De||h(ve,De,s,c,b)))return re.push(Ne)})){Z=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,b))){Z=!1;break}}return b.delete(t),b.delete(i),Z}function Oy(t,i,s,c,h,b,x){switch(s){case Yt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case on:return!(t.byteLength!=i.byteLength||!b(new Uo(t),new Uo(i)));case le:case ye:case dt:return En(+t,+i);case Ke:return t.name==i.name&&t.message==i.message;case Je:case rn:return t==i+"";case it:var R=Is;case Qe:var M=c&S;if(R||(R=ko),t.size!=i.size&&!M)return!1;var z=x.get(t);if(z)return z==i;c|=y,x.set(t,i);var q=Xf(R(t),R(i),c,h,b,x);return x.delete(t),q;case Kt:if(qi)return qi.call(t)==qi.call(i)}return!1}function Ty(t,i,s,c,h,b){var x=s&S,R=nu(t),M=R.length,z=nu(i),q=z.length;if(M!=q&&!x)return!1;for(var K=M;K--;){var Z=R[K];if(!(x?Z in i:qe.call(i,Z)))return!1}var re=b.get(t),ve=b.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;b.set(t,i),b.set(i,t);for(var me=x;++K<M;){Z=R[K];var De=t[Z],Ne=i[Z];if(c)var Qt=x?c(Ne,De,Z,i,t,b):c(De,Ne,Z,t,i,b);if(!(Qt===n?De===Ne||h(De,Ne,s,c,b):Qt)){Pe=!1;break}me||(me=Z=="constructor")}if(Pe&&!me){var jt=t.constructor,en=i.constructor;jt!=en&&"constructor"in t&&"constructor"in i&&!(typeof jt=="function"&&jt instanceof jt&&typeof en=="function"&&en instanceof en)&&(Pe=!1)}return b.delete(t),b.delete(i),Pe}function Kn(t){return cu(td(t,n,cd),t+"")}function nu(t){return vf(t,gt,au)}function ru(t){return vf(t,Bt,Vf)}var iu=Ko?function(t){return Ko.get(t)}:Eu;function sa(t){for(var i=t.name+"",s=di[i],c=qe.call(di,i)?s.length:0;c--;){var h=s[c],b=h.func;if(b==null||b==t)return h.name}return i}function mi(t){var i=qe.call(w,"placeholder")?w:t;return i.placeholder}function he(){var t=w.iteratee||_u;return t=t===_u?yf:t,arguments.length?t(arguments[0],arguments[1]):t}function ua(t,i){var s=t.__data__;return Dy(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ou(t){for(var i=gt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,Qf(h)]}return i}function $r(t,i){var s=$g(t,i);return gf(s)?s:n}function Cy(t){var i=qe.call(t,Lr),s=t[Lr];try{t[Lr]=n;var c=!0}catch{}var h=Fo.call(t);return c&&(i?t[Lr]=s:delete t[Lr]),h}var au=Ms?function(t){return t==null?[]:(t=Ye(t),or(Ms(t),function(i){return tf.call(t,i)}))}:xu,Vf=Ms?function(t){for(var i=[];t;)ar(i,au(t)),t=Ho(t);return i}:xu,Ct=Nt;(Ds&&Ct(new Ds(new ArrayBuffer(1)))!=Yt||Hi&&Ct(new Hi)!=it||ks&&Ct(ks.resolve())!=Wt||fi&&Ct(new fi)!=Qe||Bi&&Ct(new Bi)!=Ot)&&(Ct=function(t){var i=Nt(t),s=i==mt?t.constructor:n,c=s?jr(s):"";if(c)switch(c){case l0:return Yt;case c0:return it;case f0:return Wt;case d0:return Qe;case p0:return Ot}return i});function Ry(t,i,s){for(var c=-1,h=s.length;++c<h;){var b=s[c],x=b.size;switch(b.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Tt(i,t+x);break;case"takeRight":t=ht(t,i-x);break}}return{start:t,end:i}}function Py(t){var i=t.match(ae);return i?i[1].split(te):[]}function Jf(t,i,s){i=fr(i,t);for(var c=-1,h=i.length,b=!1;++c<h;){var x=Mn(i[c]);if(!(b=t!=null&&s(t,x)))break;t=t[x]}return b||++c!=h?b:(h=t==null?0:t.length,!!h&&va(h)&&Yn(x,h)&&(Te(t)||Fr(t)))}function Ay(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&qe.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Zf(t){return typeof t.constructor=="function"&&!Zi(t)?pi(Ho(t)):{}}function Iy(t,i,s){var c=t.constructor;switch(i){case on:return Qs(t);case le:case ye:return new c(+t);case Yt:return hy(t,s);case Sr:case Er:case xr:case Or:case yn:case Hn:case wt:case wn:case bn:return Df(t,s);case it:return new c;case dt:case rn:return new c(t);case Je:return vy(t);case Qe:return new c;case Kt:return my(t)}}function Ly(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(oe,`{
184
184
  /* [wrapped with `+i+`] */
185
- `)}function My(t){return Te(t)||Fr(t)||!!(nf&&t&&t[nf])}function Yn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&qm.test(t))&&t>-1&&t%1==0&&t<i}function $t(t,i,s){if(!tt(s))return!1;var c=typeof i;return(c=="number"?Ht(s)&&Yn(i,s.length):c=="string"&&i in s)?En(s[i],t):!1}function su(t,i){if(Te(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Zt(t)?!0:ji.test(t)||!$i.test(t)||i!=null&&t in Ye(i)}function Dy(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function uu(t){var i=sa(t),s=w[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(t===s)return!0;var c=iu(s);return!!c&&t===c[0]}function ky(t){return!!Zc&&Zc in t}var Ny=$o?Xn:Ou;function Zi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ci;return t===s}function Qf(t){return t===t&&!tt(t)}function ed(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function $y(t){var i=pa(t,function(c){return s.size===m&&s.clear(),c}),s=i.cache;return i}function jy(t,i){var s=t[1],c=i[1],h=s|c,b=h<(E|D|H),x=c==H&&s==C||c==H&&s==j&&t[7].length<=i[8]||c==(H|j)&&i[7].length<=i[8]&&s==C;if(!(b||x))return t;c&E&&(t[2]=i[2],h|=s&E?0:I);var R=i[3];if(R){var M=t[3];t[3]=M?Nf(M,R,i[4]):R,t[4]=M?sr(t[3],g):i[4]}return R=i[5],R&&(M=t[5],t[5]=M?$f(M,R,i[6]):R,t[6]=M?sr(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&H&&(t[8]=t[8]==null?i[8]:Tt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function Fy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function Wy(t){return Fo.call(t)}function td(t,i,s){return i=ht(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,b=ht(c.length-i,0),x=W(b);++h<b;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Xt(t,this,R)}}function nd(t,i){return i.length<2?t:Nr(t,fn(i,0,-1))}function Uy(t,i){for(var s=t.length,c=Tt(i.length,s),h=Ut(t);c--;){var b=i[c];t[c]=Yn(b,s)?h[b]:n}return t}function lu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var rd=od(Tf),Qi=n0||function(t,i){return bt.setTimeout(t,i)},cu=od(cy);function id(t,i,s){var c=i+"";return cu(t,Ly(c,Hy(Py(c),s)))}function od(t){var i=0,s=0;return function(){var c=a0(),h=_e-(c-s);if(s=c,h>0){if(++i>=Ce)return arguments[0]}else i=0;return t.apply(n,arguments)}}function la(t,i){var s=-1,c=t.length,h=c-1;for(i=i===n?c:i;++s<i;){var b=Gs(s,h),x=t[b];t[b]=t[s],t[s]=x}return t.length=i,t}var ad=$y(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Fi,function(s,c,h,b){i.push(h?b.replace(Se,"$1"):c||s)}),i});function Mn(t){if(typeof t=="string"||Zt(t))return t;var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function jr(t){if(t!=null){try{return jo.call(t)}catch{}try{return t+""}catch{}}return""}function Hy(t,i){return sn(ce,function(s){var c="_."+s[0];i&s[1]&&!Mo(t,c)&&t.push(c)}),t.sort()}function sd(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ut(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function By(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=ht(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,b=0,x=W(qo(c/i));h<c;)x[b++]=fn(t,h,h+=i);return x}function zy(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var b=t[i];b&&(h[c++]=b)}return h}function qy(){var t=arguments.length;if(!t)return[];for(var i=W(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return ar(Te(s)?Ut(s):[s],_t(i,1))}var Gy=Ae(function(t,i){return ct(t)?Ki(t,_t(i,1,ct,!0)):[]}),Ky=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,_t(i,1,ct,!0),he(s,2)):[]}),Yy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,_t(i,1,ct,!0),n,s):[]});function Xy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),fn(t,i<0?0:i,c)):[]}function Vy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,0,i<0?0:i)):[]}function Jy(t,i){return t&&t.length?ta(t,he(i,3),!0,!0):[]}function Zy(t,i){return t&&t.length?ta(t,he(i,3),!0):[]}function Qy(t,i,s,c){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&$t(t,i,s)&&(s=0,c=h),q0(t,i,s,c)):[]}function ud(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=ht(c+h,0)),Do(t,he(i,3),h)}function ld(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return s!==n&&(h=Re(s),h=s<0?ht(c+h,0):Tt(h,c-1)),Do(t,he(i,3),h,!0)}function cd(t){var i=t==null?0:t.length;return i?_t(t,1):[]}function e1(t){var i=t==null?0:t.length;return i?_t(t,xe):[]}function t1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Re(i),_t(t,i)):[]}function n1(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var h=t[i];c[h[0]]=h[1]}return c}function fd(t){return t&&t.length?t[0]:n}function r1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=ht(c+h,0)),ai(t,i,h)}function i1(t){var i=t==null?0:t.length;return i?fn(t,0,-1):[]}var o1=Ae(function(t){var i=et(t,Js);return i.length&&i[0]===t[0]?Us(i):[]}),a1=Ae(function(t){var i=dn(t),s=et(t,Js);return i===dn(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Us(s,he(i,2)):[]}),s1=Ae(function(t){var i=dn(t),s=et(t,Js);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Us(s,n,i):[]});function u1(t,i){return t==null?"":i0.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:n}function l1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c;return s!==n&&(h=Re(s),h=h<0?ht(c+h,0):Tt(h,c-1)),i===i?Hg(t,i,h):Do(t,zc,h,!0)}function c1(t,i){return t&&t.length?Sf(t,Re(i)):n}var f1=Ae(dd);function dd(t,i){return t&&t.length&&i&&i.length?qs(t,i):t}function d1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,he(s,2)):t}function p1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,n,s):t}var h1=Kn(function(t,i){var s=t==null?0:t.length,c=$s(t,i);return Of(t,et(i,function(h){return Yn(h,s)?+h:h}).sort(kf)),c});function v1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],b=t.length;for(i=he(i,3);++c<b;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return Of(t,h),s}function fu(t){return t==null?t:u0.call(t)}function m1(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&$t(t,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),fn(t,i,s)):[]}function g1(t,i){return ea(t,i)}function y1(t,i,s){return Ys(t,i,he(s,2))}function w1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i);if(c<s&&En(t[c],i))return c}return-1}function b1(t,i){return ea(t,i,!0)}function _1(t,i,s){return Ys(t,i,he(s,2),!0)}function S1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i,!0)-1;if(En(t[c],i))return c}return-1}function E1(t){return t&&t.length?Cf(t):[]}function x1(t,i){return t&&t.length?Cf(t,he(i,2)):[]}function O1(t){var i=t==null?0:t.length;return i?fn(t,1,i):[]}function T1(t,i,s){return t&&t.length?(i=s||i===n?1:Re(i),fn(t,0,i<0?0:i)):[]}function C1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,i<0?0:i,c)):[]}function R1(t,i){return t&&t.length?ta(t,he(i,3),!1,!0):[]}function P1(t,i){return t&&t.length?ta(t,he(i,3)):[]}var A1=Ae(function(t){return cr(_t(t,1,ct,!0))}),I1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),cr(_t(t,1,ct,!0),he(i,2))}),L1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,cr(_t(t,1,ct,!0),n,i)});function M1(t){return t&&t.length?cr(t):[]}function D1(t,i){return t&&t.length?cr(t,he(i,2)):[]}function k1(t,i){return i=typeof i=="function"?i:n,t&&t.length?cr(t,n,i):[]}function du(t){if(!(t&&t.length))return[];var i=0;return t=or(t,function(s){if(ct(s))return i=ht(s.length,i),!0}),Ps(i,function(s){return et(t,Ts(s))})}function pd(t,i){if(!(t&&t.length))return[];var s=du(t);return i==null?s:et(s,function(c){return Xt(i,n,c)})}var N1=Ae(function(t,i){return ct(t)?Ki(t,i):[]}),$1=Ae(function(t){return Vs(or(t,ct))}),j1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),Vs(or(t,ct),he(i,2))}),F1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Vs(or(t,ct),n,i)}),W1=Ae(du);function U1(t,i){return If(t||[],i||[],Gi)}function H1(t,i){return If(t||[],i||[],Vi)}var B1=Ae(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,pd(t,s)});function hd(t){var i=w(t);return i.__chain__=!0,i}function z1(t,i){return i(t),t}function ca(t,i){return i(t)}var q1=Kn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(b){return $s(b,t)};return i>1||this.__actions__.length||!(c instanceof ke)||!Yn(s)?this.thru(h):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:ca,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function G1(){return hd(this)}function K1(){return new ln(this.value(),this.__chain__)}function Y1(){this.__values__===n&&(this.__values__=Rd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function X1(){return this}function V1(t){for(var i,s=this;s instanceof Xo;){var c=sd(s);c.__index__=0,c.__values__=n,i?h.__wrapped__=c:i=c;var h=c;s=s.__wrapped__}return h.__wrapped__=t,i}function J1(){var t=this.__wrapped__;if(t instanceof ke){var i=t;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:ca,args:[fu],thisArg:n}),new ln(i,this.__chain__)}return this.thru(fu)}function Z1(){return Af(this.__wrapped__,this.__actions__)}var Q1=na(function(t,i,s){ze.call(t,s)?++t[s]:qn(t,s,1)});function ew(t,i,s){var c=Te(t)?Hc:z0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function tw(t,i){var s=Te(t)?or:pf;return s(t,he(i,3))}var nw=Uf(ud),rw=Uf(ld);function iw(t,i){return _t(fa(t,i),1)}function ow(t,i){return _t(fa(t,i),xe)}function aw(t,i,s){return s=s===n?1:Re(s),_t(fa(t,i),s)}function vd(t,i){var s=Te(t)?sn:lr;return s(t,he(i,3))}function md(t,i){var s=Te(t)?Og:df;return s(t,he(i,3))}var sw=na(function(t,i,s){ze.call(t,s)?t[s].push(i):qn(t,s,[i])});function uw(t,i,s,c){t=Ht(t)?t:yi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=ht(h+s,0)),ma(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&ai(t,i,s)>-1}var lw=Ae(function(t,i,s){var c=-1,h=typeof i=="function",b=Ht(t)?W(t.length):[];return lr(t,function(x){b[++c]=h?Xt(i,x,s):Yi(x,i,s)}),b}),cw=na(function(t,i,s){qn(t,s,i)});function fa(t,i){var s=Te(t)?et:wf;return s(t,he(i,3))}function fw(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),Ef(t,i,s))}var dw=na(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function pw(t,i,s){var c=Te(t)?xs:Gc,h=arguments.length<3;return c(t,he(i,4),s,h,lr)}function hw(t,i,s){var c=Te(t)?Tg:Gc,h=arguments.length<3;return c(t,he(i,4),s,h,df)}function vw(t,i){var s=Te(t)?or:pf;return s(t,ha(he(i,3)))}function mw(t){var i=Te(t)?uf:uy;return i(t)}function gw(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?F0:ly;return c(t,i)}function yw(t){var i=Te(t)?W0:fy;return i(t)}function ww(t){if(t==null)return 0;if(Ht(t))return ma(t)?ui(t):t.length;var i=Ct(t);return i==it||i==Qe?t.size:Bs(t).length}function bw(t,i,s){var c=Te(t)?Os:dy;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var _w=Ae(function(t,i){if(t==null)return[];var s=i.length;return s>1&&$t(t,i[0],i[1])?i=[]:s>2&&$t(i[0],i[1],i[2])&&(i=[i[0]]),Ef(t,_t(i,1),[])}),da=t0||function(){return bt.Date.now()};function Sw(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function gd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Gn(t,H,n,n,n,n,i)}function yd(t,i){var s;if(typeof i!="function")throw new un(l);return t=Re(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var pu=Ae(function(t,i,s){var c=E;if(s.length){var h=sr(s,mi(pu));c|=T}return Gn(t,c,i,s,h)}),wd=Ae(function(t,i,s){var c=E|D;if(s.length){var h=sr(s,mi(wd));c|=T}return Gn(i,c,t,s,h)});function bd(t,i,s){i=s?n:i;var c=Gn(t,C,n,n,n,n,n,i);return c.placeholder=bd.placeholder,c}function _d(t,i,s){i=s?n:i;var c=Gn(t,k,n,n,n,n,n,i);return c.placeholder=_d.placeholder,c}function Sd(t,i,s){var c,h,b,x,R,M,z=0,q=!1,K=!1,Z=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,K="maxWait"in s,b=K?ht(pn(s.maxWait)||0,i):b,Z="trailing"in s?!!s.trailing:Z);function re(ft){var xn=c,Jn=h;return c=h=n,z=ft,x=t.apply(Jn,xn),x}function ve(ft){return z=ft,R=Qi(De,i),q?re(ft):x}function Pe(ft){var xn=ft-M,Jn=ft-z,Ud=i-xn;return K?Tt(Ud,b-Jn):Ud}function me(ft){var xn=ft-M,Jn=ft-z;return M===n||xn>=i||xn<0||K&&Jn>=b}function De(){var ft=da();if(me(ft))return Ne(ft);R=Qi(De,Pe(ft))}function Ne(ft){return R=n,Z&&c?re(ft):(c=h=n,x)}function Qt(){R!==n&&Lf(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(da())}function en(){var ft=da(),xn=me(ft);if(c=arguments,h=this,M=ft,xn){if(R===n)return ve(M);if(K)return Lf(R),R=Qi(De,i),re(M)}return R===n&&(R=Qi(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Ew=Ae(function(t,i){return ff(t,1,i)}),xw=Ae(function(t,i,s){return ff(t,pn(i)||0,s)});function Ow(t){return Gn(t,J)}function pa(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new un(l);var s=function(){var c=arguments,h=i?i.apply(this,c):c[0],b=s.cache;if(b.has(h))return b.get(h);var x=t.apply(this,c);return s.cache=b.set(h,x)||b,x};return s.cache=new(pa.Cache||zn),s}pa.Cache=zn;function ha(t){if(typeof t!="function")throw new un(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Tw(t){return yd(2,t)}var Cw=py(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Vt(he())):et(_t(i,1),Vt(he()));var s=i.length;return Ae(function(c){for(var h=-1,b=Tt(c.length,s);++h<b;)c[h]=i[h].call(this,c[h]);return Xt(t,this,c)})}),hu=Ae(function(t,i){var s=sr(i,mi(hu));return Gn(t,T,n,i,s)}),Ed=Ae(function(t,i){var s=sr(i,mi(Ed));return Gn(t,U,n,i,s)}),Rw=Kn(function(t,i){return Gn(t,j,n,n,n,i)});function Pw(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Aw(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:ht(Re(i),0),Ae(function(s){var c=s[i],h=dr(s,0,i);return c&&ar(h,c),Xt(t,this,h)})}function Iw(t,i,s){var c=!0,h=!0;if(typeof t!="function")throw new un(l);return tt(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),Sd(t,i,{leading:c,maxWait:i,trailing:h})}function Lw(t){return gd(t,1)}function Mw(t,i){return hu(Zs(i),t)}function Dw(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function kw(t){return cn(t,v)}function Nw(t,i){return i=typeof i=="function"?i:n,cn(t,v,i)}function $w(t){return cn(t,_|v)}function jw(t,i){return i=typeof i=="function"?i:n,cn(t,_|v,i)}function Fw(t,i){return i==null||cf(t,i,gt(i))}function En(t,i){return t===i||t!==t&&i!==i}var Ww=aa(Ws),Uw=aa(function(t,i){return t>=i}),Fr=mf(function(){return arguments}())?mf:function(t){return at(t)&&ze.call(t,"callee")&&!tf.call(t,"callee")},Te=W.isArray,Hw=Nc?Vt(Nc):V0;function Ht(t){return t!=null&&va(t.length)&&!Xn(t)}function ct(t){return at(t)&&Ht(t)}function Bw(t){return t===!0||t===!1||at(t)&&Nt(t)==le}var pr=r0||Ou,zw=$c?Vt($c):J0;function qw(t){return at(t)&&t.nodeType===1&&!eo(t)}function Gw(t){if(t==null)return!0;if(Ht(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||pr(t)||gi(t)||Fr(t)))return!t.length;var i=Ct(t);if(i==it||i==Qe)return!t.size;if(Zi(t))return!Bs(t).length;for(var s in t)if(ze.call(t,s))return!1;return!0}function Kw(t,i){return Xi(t,i)}function Yw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Xi(t,i,n,s):!!c}function vu(t){if(!at(t))return!1;var i=Nt(t);return i==Ke||i==be||typeof t.message=="string"&&typeof t.name=="string"&&!eo(t)}function Xw(t){return typeof t=="number"&&rf(t)}function Xn(t){if(!tt(t))return!1;var i=Nt(t);return i==V||i==rt||i==pe||i==_r}function xd(t){return typeof t=="number"&&t==Re(t)}function va(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=We}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function at(t){return t!=null&&typeof t=="object"}var Od=jc?Vt(jc):Q0;function Vw(t,i){return t===i||Hs(t,i,ou(i))}function Jw(t,i,s){return s=typeof s=="function"?s:n,Hs(t,i,ou(i),s)}function Zw(t){return Td(t)&&t!=+t}function Qw(t){if(Ny(t))throw new Ee(u);return gf(t)}function eb(t){return t===null}function tb(t){return t==null}function Td(t){return typeof t=="number"||at(t)&&Nt(t)==dt}function eo(t){if(!at(t)||Nt(t)!=mt)return!1;var i=Ho(t);if(i===null)return!0;var s=ze.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&jo.call(s)==Jg}var mu=Fc?Vt(Fc):ey;function nb(t){return xd(t)&&t>=-We&&t<=We}var Cd=Wc?Vt(Wc):ty;function ma(t){return typeof t=="string"||!Te(t)&&at(t)&&Nt(t)==rn}function Zt(t){return typeof t=="symbol"||at(t)&&Nt(t)==Kt}var gi=Uc?Vt(Uc):ny;function rb(t){return t===n}function ib(t){return at(t)&&Ct(t)==Ot}function ob(t){return at(t)&&Nt(t)==rr}var ab=aa(zs),sb=aa(function(t,i){return t<=i});function Rd(t){if(!t)return[];if(Ht(t))return ma(t)?_n(t):Ut(t);if(Ui&&t[Ui])return Fg(t[Ui]());var i=Ct(t),s=i==it?Is:i==Qe?ko:yi;return s(t)}function Vn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*ut}return t===t?t:0}function Re(t){var i=Vn(t),s=i%1;return i===i?s?i-s:i:0}function Pd(t){return t?kr(Re(t),0,X):0}function pn(t){if(typeof t=="number")return t;if(Zt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Kc(t);var s=Ar.test(t);return s||zm.test(t)?Sg(t.slice(2),s?2:8):kt.test(t)?G:+t}function Ad(t){return Ln(t,Bt(t))}function ub(t){return t?kr(Re(t),-We,We):t===0?t:0}function Ue(t){return t==null?"":Jt(t)}var lb=hi(function(t,i){if(Zi(i)||Ht(i)){Ln(i,gt(i),t);return}for(var s in i)ze.call(i,s)&&Gi(t,s,i[s])}),Id=hi(function(t,i){Ln(i,Bt(i),t)}),ga=hi(function(t,i,s,c){Ln(i,Bt(i),t,c)}),cb=hi(function(t,i,s,c){Ln(i,gt(i),t,c)}),fb=Kn($s);function db(t,i){var s=pi(t);return i==null?s:lf(s,i)}var pb=Ae(function(t,i){t=Ye(t);var s=-1,c=i.length,h=c>2?i[2]:n;for(h&&$t(i[0],i[1],h)&&(c=1);++s<c;)for(var b=i[s],x=Bt(b),R=-1,M=x.length;++R<M;){var z=x[R],q=t[z];(q===n||En(q,ci[z])&&!ze.call(t,z))&&(t[z]=b[z])}return t}),hb=Ae(function(t){return t.push(n,Yf),Xt(Ld,n,t)});function vb(t,i){return Bc(t,he(i,3),In)}function mb(t,i){return Bc(t,he(i,3),Fs)}function gb(t,i){return t==null?t:js(t,he(i,3),Bt)}function yb(t,i){return t==null?t:hf(t,he(i,3),Bt)}function wb(t,i){return t&&In(t,he(i,3))}function bb(t,i){return t&&Fs(t,he(i,3))}function _b(t){return t==null?[]:Zo(t,gt(t))}function Sb(t){return t==null?[]:Zo(t,Bt(t))}function gu(t,i,s){var c=t==null?n:Nr(t,i);return c===n?s:c}function Eb(t,i){return t!=null&&Jf(t,i,G0)}function yu(t,i){return t!=null&&Jf(t,i,K0)}var xb=Bf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),t[i]=s},bu(zt)),Ob=Bf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),ze.call(t,i)?t[i].push(s):t[i]=[s]},he),Tb=Ae(Yi);function gt(t){return Ht(t)?sf(t):Bs(t)}function Bt(t){return Ht(t)?sf(t,!0):ry(t)}function Cb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,i(c,h,b),c)}),s}function Rb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,h,i(c,h,b))}),s}var Pb=hi(function(t,i,s){Qo(t,i,s)}),Ld=hi(function(t,i,s,c){Qo(t,i,s,c)}),Ab=Kn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(b){return b=fr(b,t),c||(c=b.length>1),b}),Ln(t,ru(t),s),c&&(s=cn(s,_|O|v,xy));for(var h=i.length;h--;)Xs(s,i[h]);return s});function Ib(t,i){return Md(t,ha(he(i)))}var Lb=Kn(function(t,i){return t==null?{}:oy(t,i)});function Md(t,i){if(t==null)return{};var s=et(ru(t),function(c){return[c]});return i=he(i),xf(t,s,function(c,h){return i(c,h[0])})}function Mb(t,i,s){i=fr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var b=t==null?n:t[Mn(i[c])];b===n&&(c=h,b=s),t=Xn(b)?b.call(t):b}return t}function Db(t,i,s){return t==null?t:Vi(t,i,s)}function kb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Vi(t,i,s,c)}var Dd=Gf(gt),kd=Gf(Bt);function Nb(t,i,s){var c=Te(t),h=c||pr(t)||gi(t);if(i=he(i,4),s==null){var b=t&&t.constructor;h?s=c?new b:[]:tt(t)?s=Xn(b)?pi(Ho(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function $b(t,i){return t==null?!0:Xs(t,i)}function jb(t,i,s){return t==null?t:Pf(t,i,Zs(s))}function Fb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Pf(t,i,Zs(s),c)}function yi(t){return t==null?[]:As(t,gt(t))}function Wb(t){return t==null?[]:As(t,Bt(t))}function Ub(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=pn(s),s=s===s?s:0),i!==n&&(i=pn(i),i=i===i?i:0),kr(pn(t),i,s)}function Hb(t,i,s){return i=Vn(i),s===n?(s=i,i=0):s=Vn(s),t=pn(t),Y0(t,i,s)}function Bb(t,i,s){if(s&&typeof s!="boolean"&&$t(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Vn(t),i===n?(i=t,t=0):i=Vn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=of();return Tt(t+h*(i-t+_g("1e-"+((h+"").length-1))),i)}return Gs(t,i)}var zb=vi(function(t,i,s){return i=i.toLowerCase(),t+(s?Nd(i):i)});function Nd(t){return wu(Ue(t).toLowerCase())}function $d(t){return t=Ue(t),t&&t.replace(Gm,Dg).replace(fg,"")}function qb(t,i,s){t=Ue(t),i=Jt(i);var c=t.length;s=s===n?c:kr(Re(s),0,c);var h=s;return s-=i.length,s>=0&&t.slice(s,h)==i}function Gb(t){return t=Ue(t),t&&ki.test(t)?t.replace(ir,kg):t}function Kb(t){return t=Ue(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Yb=vi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Xb=vi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Vb=Wf("toLowerCase");function Jb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return oa(Go(h),s)+t+oa(qo(h),s)}function Zb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?t+oa(i-c,s):t}function Qb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?oa(i-c,s)+t:t}function e_(t,i,s){return s||i==null?i=0:i&&(i=+i),s0(Ue(t).replace(F,""),i||0)}function t_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Ks(Ue(t),i)}function n_(){var t=arguments,i=Ue(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var r_=vi(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function i_(t,i,s){return s&&typeof s!="number"&&$t(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=Ue(t),t&&(typeof i=="string"||i!=null&&!mu(i))&&(i=Jt(i),!i&&si(t))?dr(_n(t),0,s):t.split(i,s)):[]}var o_=vi(function(t,i,s){return t+(s?" ":"")+wu(i)});function a_(t,i,s){return t=Ue(t),s=s==null?0:kr(Re(s),0,t.length),i=Jt(i),t.slice(s,s+i.length)==i}function s_(t,i,s){var c=w.templateSettings;s&&$t(t,i,s)&&(i=n),t=Ue(t),i=ga({},i,c,Kf);var h=ga({},i.imports,c.imports,Kf),b=gt(h),x=As(h,b),R,M,z=0,q=i.interpolate||Ao,K="__p += '",Z=Ls((i.escape||Ao).source+"|"+q.source+"|"+(q===ii?Oe:Ao).source+"|"+(i.evaluate||Ao).source+"|$","g"),re="//# sourceURL="+(ze.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mg+"]")+`
185
+ `)}function My(t){return Te(t)||Fr(t)||!!(nf&&t&&t[nf])}function Yn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&qm.test(t))&&t>-1&&t%1==0&&t<i}function $t(t,i,s){if(!tt(s))return!1;var c=typeof i;return(c=="number"?Ht(s)&&Yn(i,s.length):c=="string"&&i in s)?En(s[i],t):!1}function su(t,i){if(Te(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Zt(t)?!0:ji.test(t)||!$i.test(t)||i!=null&&t in Ye(i)}function Dy(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function uu(t){var i=sa(t),s=w[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(t===s)return!0;var c=iu(s);return!!c&&t===c[0]}function ky(t){return!!Zc&&Zc in t}var Ny=$o?Xn:Ou;function Zi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ci;return t===s}function Qf(t){return t===t&&!tt(t)}function ed(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function $y(t){var i=pa(t,function(c){return s.size===m&&s.clear(),c}),s=i.cache;return i}function jy(t,i){var s=t[1],c=i[1],h=s|c,b=h<(E|D|H),x=c==H&&s==C||c==H&&s==j&&t[7].length<=i[8]||c==(H|j)&&i[7].length<=i[8]&&s==C;if(!(b||x))return t;c&E&&(t[2]=i[2],h|=s&E?0:I);var R=i[3];if(R){var M=t[3];t[3]=M?Nf(M,R,i[4]):R,t[4]=M?sr(t[3],g):i[4]}return R=i[5],R&&(M=t[5],t[5]=M?$f(M,R,i[6]):R,t[6]=M?sr(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&H&&(t[8]=t[8]==null?i[8]:Tt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function Fy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function Wy(t){return Fo.call(t)}function td(t,i,s){return i=ht(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,b=ht(c.length-i,0),x=W(b);++h<b;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Xt(t,this,R)}}function nd(t,i){return i.length<2?t:Nr(t,fn(i,0,-1))}function Uy(t,i){for(var s=t.length,c=Tt(i.length,s),h=Ut(t);c--;){var b=i[c];t[c]=Yn(b,s)?h[b]:n}return t}function lu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var rd=od(Tf),Qi=n0||function(t,i){return bt.setTimeout(t,i)},cu=od(cy);function id(t,i,s){var c=i+"";return cu(t,Ly(c,Hy(Py(c),s)))}function od(t){var i=0,s=0;return function(){var c=a0(),h=_e-(c-s);if(s=c,h>0){if(++i>=Ce)return arguments[0]}else i=0;return t.apply(n,arguments)}}function la(t,i){var s=-1,c=t.length,h=c-1;for(i=i===n?c:i;++s<i;){var b=Gs(s,h),x=t[b];t[b]=t[s],t[s]=x}return t.length=i,t}var ad=$y(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Fi,function(s,c,h,b){i.push(h?b.replace(Se,"$1"):c||s)}),i});function Mn(t){if(typeof t=="string"||Zt(t))return t;var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function jr(t){if(t!=null){try{return jo.call(t)}catch{}try{return t+""}catch{}}return""}function Hy(t,i){return sn(ce,function(s){var c="_."+s[0];i&s[1]&&!Mo(t,c)&&t.push(c)}),t.sort()}function sd(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ut(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function By(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=ht(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,b=0,x=W(qo(c/i));h<c;)x[b++]=fn(t,h,h+=i);return x}function zy(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var b=t[i];b&&(h[c++]=b)}return h}function qy(){var t=arguments.length;if(!t)return[];for(var i=W(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return ar(Te(s)?Ut(s):[s],_t(i,1))}var Gy=Ae(function(t,i){return ct(t)?Ki(t,_t(i,1,ct,!0)):[]}),Ky=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,_t(i,1,ct,!0),he(s,2)):[]}),Yy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,_t(i,1,ct,!0),n,s):[]});function Xy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),fn(t,i<0?0:i,c)):[]}function Vy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,0,i<0?0:i)):[]}function Jy(t,i){return t&&t.length?ta(t,he(i,3),!0,!0):[]}function Zy(t,i){return t&&t.length?ta(t,he(i,3),!0):[]}function Qy(t,i,s,c){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&$t(t,i,s)&&(s=0,c=h),q0(t,i,s,c)):[]}function ud(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=ht(c+h,0)),Do(t,he(i,3),h)}function ld(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return s!==n&&(h=Re(s),h=s<0?ht(c+h,0):Tt(h,c-1)),Do(t,he(i,3),h,!0)}function cd(t){var i=t==null?0:t.length;return i?_t(t,1):[]}function e1(t){var i=t==null?0:t.length;return i?_t(t,xe):[]}function t1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Re(i),_t(t,i)):[]}function n1(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var h=t[i];c[h[0]]=h[1]}return c}function fd(t){return t&&t.length?t[0]:n}function r1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=ht(c+h,0)),ai(t,i,h)}function i1(t){var i=t==null?0:t.length;return i?fn(t,0,-1):[]}var o1=Ae(function(t){var i=et(t,Js);return i.length&&i[0]===t[0]?Us(i):[]}),a1=Ae(function(t){var i=dn(t),s=et(t,Js);return i===dn(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Us(s,he(i,2)):[]}),s1=Ae(function(t){var i=dn(t),s=et(t,Js);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Us(s,n,i):[]});function u1(t,i){return t==null?"":i0.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:n}function l1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c;return s!==n&&(h=Re(s),h=h<0?ht(c+h,0):Tt(h,c-1)),i===i?Hg(t,i,h):Do(t,zc,h,!0)}function c1(t,i){return t&&t.length?Sf(t,Re(i)):n}var f1=Ae(dd);function dd(t,i){return t&&t.length&&i&&i.length?qs(t,i):t}function d1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,he(s,2)):t}function p1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,n,s):t}var h1=Kn(function(t,i){var s=t==null?0:t.length,c=$s(t,i);return Of(t,et(i,function(h){return Yn(h,s)?+h:h}).sort(kf)),c});function v1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],b=t.length;for(i=he(i,3);++c<b;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return Of(t,h),s}function fu(t){return t==null?t:u0.call(t)}function m1(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&$t(t,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),fn(t,i,s)):[]}function g1(t,i){return ea(t,i)}function y1(t,i,s){return Ys(t,i,he(s,2))}function w1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i);if(c<s&&En(t[c],i))return c}return-1}function b1(t,i){return ea(t,i,!0)}function _1(t,i,s){return Ys(t,i,he(s,2),!0)}function S1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i,!0)-1;if(En(t[c],i))return c}return-1}function E1(t){return t&&t.length?Cf(t):[]}function x1(t,i){return t&&t.length?Cf(t,he(i,2)):[]}function O1(t){var i=t==null?0:t.length;return i?fn(t,1,i):[]}function T1(t,i,s){return t&&t.length?(i=s||i===n?1:Re(i),fn(t,0,i<0?0:i)):[]}function C1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,i<0?0:i,c)):[]}function R1(t,i){return t&&t.length?ta(t,he(i,3),!1,!0):[]}function P1(t,i){return t&&t.length?ta(t,he(i,3)):[]}var A1=Ae(function(t){return cr(_t(t,1,ct,!0))}),I1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),cr(_t(t,1,ct,!0),he(i,2))}),L1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,cr(_t(t,1,ct,!0),n,i)});function M1(t){return t&&t.length?cr(t):[]}function D1(t,i){return t&&t.length?cr(t,he(i,2)):[]}function k1(t,i){return i=typeof i=="function"?i:n,t&&t.length?cr(t,n,i):[]}function du(t){if(!(t&&t.length))return[];var i=0;return t=or(t,function(s){if(ct(s))return i=ht(s.length,i),!0}),Ps(i,function(s){return et(t,Ts(s))})}function pd(t,i){if(!(t&&t.length))return[];var s=du(t);return i==null?s:et(s,function(c){return Xt(i,n,c)})}var N1=Ae(function(t,i){return ct(t)?Ki(t,i):[]}),$1=Ae(function(t){return Vs(or(t,ct))}),j1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),Vs(or(t,ct),he(i,2))}),F1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Vs(or(t,ct),n,i)}),W1=Ae(du);function U1(t,i){return If(t||[],i||[],Gi)}function H1(t,i){return If(t||[],i||[],Vi)}var B1=Ae(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,pd(t,s)});function hd(t){var i=w(t);return i.__chain__=!0,i}function z1(t,i){return i(t),t}function ca(t,i){return i(t)}var q1=Kn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(b){return $s(b,t)};return i>1||this.__actions__.length||!(c instanceof ke)||!Yn(s)?this.thru(h):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:ca,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function G1(){return hd(this)}function K1(){return new ln(this.value(),this.__chain__)}function Y1(){this.__values__===n&&(this.__values__=Rd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function X1(){return this}function V1(t){for(var i,s=this;s instanceof Xo;){var c=sd(s);c.__index__=0,c.__values__=n,i?h.__wrapped__=c:i=c;var h=c;s=s.__wrapped__}return h.__wrapped__=t,i}function J1(){var t=this.__wrapped__;if(t instanceof ke){var i=t;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:ca,args:[fu],thisArg:n}),new ln(i,this.__chain__)}return this.thru(fu)}function Z1(){return Af(this.__wrapped__,this.__actions__)}var Q1=na(function(t,i,s){qe.call(t,s)?++t[s]:qn(t,s,1)});function ew(t,i,s){var c=Te(t)?Hc:z0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function tw(t,i){var s=Te(t)?or:pf;return s(t,he(i,3))}var nw=Uf(ud),rw=Uf(ld);function iw(t,i){return _t(fa(t,i),1)}function ow(t,i){return _t(fa(t,i),xe)}function aw(t,i,s){return s=s===n?1:Re(s),_t(fa(t,i),s)}function vd(t,i){var s=Te(t)?sn:lr;return s(t,he(i,3))}function md(t,i){var s=Te(t)?Og:df;return s(t,he(i,3))}var sw=na(function(t,i,s){qe.call(t,s)?t[s].push(i):qn(t,s,[i])});function uw(t,i,s,c){t=Ht(t)?t:yi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=ht(h+s,0)),ma(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&ai(t,i,s)>-1}var lw=Ae(function(t,i,s){var c=-1,h=typeof i=="function",b=Ht(t)?W(t.length):[];return lr(t,function(x){b[++c]=h?Xt(i,x,s):Yi(x,i,s)}),b}),cw=na(function(t,i,s){qn(t,s,i)});function fa(t,i){var s=Te(t)?et:wf;return s(t,he(i,3))}function fw(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),Ef(t,i,s))}var dw=na(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function pw(t,i,s){var c=Te(t)?xs:Gc,h=arguments.length<3;return c(t,he(i,4),s,h,lr)}function hw(t,i,s){var c=Te(t)?Tg:Gc,h=arguments.length<3;return c(t,he(i,4),s,h,df)}function vw(t,i){var s=Te(t)?or:pf;return s(t,ha(he(i,3)))}function mw(t){var i=Te(t)?uf:uy;return i(t)}function gw(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?F0:ly;return c(t,i)}function yw(t){var i=Te(t)?W0:fy;return i(t)}function ww(t){if(t==null)return 0;if(Ht(t))return ma(t)?ui(t):t.length;var i=Ct(t);return i==it||i==Qe?t.size:Bs(t).length}function bw(t,i,s){var c=Te(t)?Os:dy;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var _w=Ae(function(t,i){if(t==null)return[];var s=i.length;return s>1&&$t(t,i[0],i[1])?i=[]:s>2&&$t(i[0],i[1],i[2])&&(i=[i[0]]),Ef(t,_t(i,1),[])}),da=t0||function(){return bt.Date.now()};function Sw(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function gd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Gn(t,H,n,n,n,n,i)}function yd(t,i){var s;if(typeof i!="function")throw new un(l);return t=Re(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var pu=Ae(function(t,i,s){var c=E;if(s.length){var h=sr(s,mi(pu));c|=T}return Gn(t,c,i,s,h)}),wd=Ae(function(t,i,s){var c=E|D;if(s.length){var h=sr(s,mi(wd));c|=T}return Gn(i,c,t,s,h)});function bd(t,i,s){i=s?n:i;var c=Gn(t,C,n,n,n,n,n,i);return c.placeholder=bd.placeholder,c}function _d(t,i,s){i=s?n:i;var c=Gn(t,k,n,n,n,n,n,i);return c.placeholder=_d.placeholder,c}function Sd(t,i,s){var c,h,b,x,R,M,z=0,q=!1,K=!1,Z=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,K="maxWait"in s,b=K?ht(pn(s.maxWait)||0,i):b,Z="trailing"in s?!!s.trailing:Z);function re(ft){var xn=c,Jn=h;return c=h=n,z=ft,x=t.apply(Jn,xn),x}function ve(ft){return z=ft,R=Qi(De,i),q?re(ft):x}function Pe(ft){var xn=ft-M,Jn=ft-z,Ud=i-xn;return K?Tt(Ud,b-Jn):Ud}function me(ft){var xn=ft-M,Jn=ft-z;return M===n||xn>=i||xn<0||K&&Jn>=b}function De(){var ft=da();if(me(ft))return Ne(ft);R=Qi(De,Pe(ft))}function Ne(ft){return R=n,Z&&c?re(ft):(c=h=n,x)}function Qt(){R!==n&&Lf(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(da())}function en(){var ft=da(),xn=me(ft);if(c=arguments,h=this,M=ft,xn){if(R===n)return ve(M);if(K)return Lf(R),R=Qi(De,i),re(M)}return R===n&&(R=Qi(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Ew=Ae(function(t,i){return ff(t,1,i)}),xw=Ae(function(t,i,s){return ff(t,pn(i)||0,s)});function Ow(t){return Gn(t,J)}function pa(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new un(l);var s=function(){var c=arguments,h=i?i.apply(this,c):c[0],b=s.cache;if(b.has(h))return b.get(h);var x=t.apply(this,c);return s.cache=b.set(h,x)||b,x};return s.cache=new(pa.Cache||zn),s}pa.Cache=zn;function ha(t){if(typeof t!="function")throw new un(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Tw(t){return yd(2,t)}var Cw=py(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Vt(he())):et(_t(i,1),Vt(he()));var s=i.length;return Ae(function(c){for(var h=-1,b=Tt(c.length,s);++h<b;)c[h]=i[h].call(this,c[h]);return Xt(t,this,c)})}),hu=Ae(function(t,i){var s=sr(i,mi(hu));return Gn(t,T,n,i,s)}),Ed=Ae(function(t,i){var s=sr(i,mi(Ed));return Gn(t,U,n,i,s)}),Rw=Kn(function(t,i){return Gn(t,j,n,n,n,i)});function Pw(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Aw(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:ht(Re(i),0),Ae(function(s){var c=s[i],h=dr(s,0,i);return c&&ar(h,c),Xt(t,this,h)})}function Iw(t,i,s){var c=!0,h=!0;if(typeof t!="function")throw new un(l);return tt(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),Sd(t,i,{leading:c,maxWait:i,trailing:h})}function Lw(t){return gd(t,1)}function Mw(t,i){return hu(Zs(i),t)}function Dw(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function kw(t){return cn(t,v)}function Nw(t,i){return i=typeof i=="function"?i:n,cn(t,v,i)}function $w(t){return cn(t,_|v)}function jw(t,i){return i=typeof i=="function"?i:n,cn(t,_|v,i)}function Fw(t,i){return i==null||cf(t,i,gt(i))}function En(t,i){return t===i||t!==t&&i!==i}var Ww=aa(Ws),Uw=aa(function(t,i){return t>=i}),Fr=mf(function(){return arguments}())?mf:function(t){return at(t)&&qe.call(t,"callee")&&!tf.call(t,"callee")},Te=W.isArray,Hw=Nc?Vt(Nc):V0;function Ht(t){return t!=null&&va(t.length)&&!Xn(t)}function ct(t){return at(t)&&Ht(t)}function Bw(t){return t===!0||t===!1||at(t)&&Nt(t)==le}var pr=r0||Ou,zw=$c?Vt($c):J0;function qw(t){return at(t)&&t.nodeType===1&&!eo(t)}function Gw(t){if(t==null)return!0;if(Ht(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||pr(t)||gi(t)||Fr(t)))return!t.length;var i=Ct(t);if(i==it||i==Qe)return!t.size;if(Zi(t))return!Bs(t).length;for(var s in t)if(qe.call(t,s))return!1;return!0}function Kw(t,i){return Xi(t,i)}function Yw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Xi(t,i,n,s):!!c}function vu(t){if(!at(t))return!1;var i=Nt(t);return i==Ke||i==be||typeof t.message=="string"&&typeof t.name=="string"&&!eo(t)}function Xw(t){return typeof t=="number"&&rf(t)}function Xn(t){if(!tt(t))return!1;var i=Nt(t);return i==V||i==rt||i==pe||i==_r}function xd(t){return typeof t=="number"&&t==Re(t)}function va(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=We}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function at(t){return t!=null&&typeof t=="object"}var Od=jc?Vt(jc):Q0;function Vw(t,i){return t===i||Hs(t,i,ou(i))}function Jw(t,i,s){return s=typeof s=="function"?s:n,Hs(t,i,ou(i),s)}function Zw(t){return Td(t)&&t!=+t}function Qw(t){if(Ny(t))throw new Ee(u);return gf(t)}function eb(t){return t===null}function tb(t){return t==null}function Td(t){return typeof t=="number"||at(t)&&Nt(t)==dt}function eo(t){if(!at(t)||Nt(t)!=mt)return!1;var i=Ho(t);if(i===null)return!0;var s=qe.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&jo.call(s)==Jg}var mu=Fc?Vt(Fc):ey;function nb(t){return xd(t)&&t>=-We&&t<=We}var Cd=Wc?Vt(Wc):ty;function ma(t){return typeof t=="string"||!Te(t)&&at(t)&&Nt(t)==rn}function Zt(t){return typeof t=="symbol"||at(t)&&Nt(t)==Kt}var gi=Uc?Vt(Uc):ny;function rb(t){return t===n}function ib(t){return at(t)&&Ct(t)==Ot}function ob(t){return at(t)&&Nt(t)==rr}var ab=aa(zs),sb=aa(function(t,i){return t<=i});function Rd(t){if(!t)return[];if(Ht(t))return ma(t)?_n(t):Ut(t);if(Ui&&t[Ui])return Fg(t[Ui]());var i=Ct(t),s=i==it?Is:i==Qe?ko:yi;return s(t)}function Vn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*ut}return t===t?t:0}function Re(t){var i=Vn(t),s=i%1;return i===i?s?i-s:i:0}function Pd(t){return t?kr(Re(t),0,X):0}function pn(t){if(typeof t=="number")return t;if(Zt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Kc(t);var s=Ar.test(t);return s||zm.test(t)?Sg(t.slice(2),s?2:8):kt.test(t)?G:+t}function Ad(t){return Ln(t,Bt(t))}function ub(t){return t?kr(Re(t),-We,We):t===0?t:0}function Ue(t){return t==null?"":Jt(t)}var lb=hi(function(t,i){if(Zi(i)||Ht(i)){Ln(i,gt(i),t);return}for(var s in i)qe.call(i,s)&&Gi(t,s,i[s])}),Id=hi(function(t,i){Ln(i,Bt(i),t)}),ga=hi(function(t,i,s,c){Ln(i,Bt(i),t,c)}),cb=hi(function(t,i,s,c){Ln(i,gt(i),t,c)}),fb=Kn($s);function db(t,i){var s=pi(t);return i==null?s:lf(s,i)}var pb=Ae(function(t,i){t=Ye(t);var s=-1,c=i.length,h=c>2?i[2]:n;for(h&&$t(i[0],i[1],h)&&(c=1);++s<c;)for(var b=i[s],x=Bt(b),R=-1,M=x.length;++R<M;){var z=x[R],q=t[z];(q===n||En(q,ci[z])&&!qe.call(t,z))&&(t[z]=b[z])}return t}),hb=Ae(function(t){return t.push(n,Yf),Xt(Ld,n,t)});function vb(t,i){return Bc(t,he(i,3),In)}function mb(t,i){return Bc(t,he(i,3),Fs)}function gb(t,i){return t==null?t:js(t,he(i,3),Bt)}function yb(t,i){return t==null?t:hf(t,he(i,3),Bt)}function wb(t,i){return t&&In(t,he(i,3))}function bb(t,i){return t&&Fs(t,he(i,3))}function _b(t){return t==null?[]:Zo(t,gt(t))}function Sb(t){return t==null?[]:Zo(t,Bt(t))}function gu(t,i,s){var c=t==null?n:Nr(t,i);return c===n?s:c}function Eb(t,i){return t!=null&&Jf(t,i,G0)}function yu(t,i){return t!=null&&Jf(t,i,K0)}var xb=Bf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),t[i]=s},bu(zt)),Ob=Bf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),qe.call(t,i)?t[i].push(s):t[i]=[s]},he),Tb=Ae(Yi);function gt(t){return Ht(t)?sf(t):Bs(t)}function Bt(t){return Ht(t)?sf(t,!0):ry(t)}function Cb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,i(c,h,b),c)}),s}function Rb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,h,i(c,h,b))}),s}var Pb=hi(function(t,i,s){Qo(t,i,s)}),Ld=hi(function(t,i,s,c){Qo(t,i,s,c)}),Ab=Kn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(b){return b=fr(b,t),c||(c=b.length>1),b}),Ln(t,ru(t),s),c&&(s=cn(s,_|O|v,xy));for(var h=i.length;h--;)Xs(s,i[h]);return s});function Ib(t,i){return Md(t,ha(he(i)))}var Lb=Kn(function(t,i){return t==null?{}:oy(t,i)});function Md(t,i){if(t==null)return{};var s=et(ru(t),function(c){return[c]});return i=he(i),xf(t,s,function(c,h){return i(c,h[0])})}function Mb(t,i,s){i=fr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var b=t==null?n:t[Mn(i[c])];b===n&&(c=h,b=s),t=Xn(b)?b.call(t):b}return t}function Db(t,i,s){return t==null?t:Vi(t,i,s)}function kb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Vi(t,i,s,c)}var Dd=Gf(gt),kd=Gf(Bt);function Nb(t,i,s){var c=Te(t),h=c||pr(t)||gi(t);if(i=he(i,4),s==null){var b=t&&t.constructor;h?s=c?new b:[]:tt(t)?s=Xn(b)?pi(Ho(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function $b(t,i){return t==null?!0:Xs(t,i)}function jb(t,i,s){return t==null?t:Pf(t,i,Zs(s))}function Fb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Pf(t,i,Zs(s),c)}function yi(t){return t==null?[]:As(t,gt(t))}function Wb(t){return t==null?[]:As(t,Bt(t))}function Ub(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=pn(s),s=s===s?s:0),i!==n&&(i=pn(i),i=i===i?i:0),kr(pn(t),i,s)}function Hb(t,i,s){return i=Vn(i),s===n?(s=i,i=0):s=Vn(s),t=pn(t),Y0(t,i,s)}function Bb(t,i,s){if(s&&typeof s!="boolean"&&$t(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Vn(t),i===n?(i=t,t=0):i=Vn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=of();return Tt(t+h*(i-t+_g("1e-"+((h+"").length-1))),i)}return Gs(t,i)}var zb=vi(function(t,i,s){return i=i.toLowerCase(),t+(s?Nd(i):i)});function Nd(t){return wu(Ue(t).toLowerCase())}function $d(t){return t=Ue(t),t&&t.replace(Gm,Dg).replace(fg,"")}function qb(t,i,s){t=Ue(t),i=Jt(i);var c=t.length;s=s===n?c:kr(Re(s),0,c);var h=s;return s-=i.length,s>=0&&t.slice(s,h)==i}function Gb(t){return t=Ue(t),t&&ki.test(t)?t.replace(ir,kg):t}function Kb(t){return t=Ue(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Yb=vi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Xb=vi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Vb=Wf("toLowerCase");function Jb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return oa(Go(h),s)+t+oa(qo(h),s)}function Zb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?t+oa(i-c,s):t}function Qb(t,i,s){t=Ue(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?oa(i-c,s)+t:t}function e_(t,i,s){return s||i==null?i=0:i&&(i=+i),s0(Ue(t).replace(F,""),i||0)}function t_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Ks(Ue(t),i)}function n_(){var t=arguments,i=Ue(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var r_=vi(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function i_(t,i,s){return s&&typeof s!="number"&&$t(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=Ue(t),t&&(typeof i=="string"||i!=null&&!mu(i))&&(i=Jt(i),!i&&si(t))?dr(_n(t),0,s):t.split(i,s)):[]}var o_=vi(function(t,i,s){return t+(s?" ":"")+wu(i)});function a_(t,i,s){return t=Ue(t),s=s==null?0:kr(Re(s),0,t.length),i=Jt(i),t.slice(s,s+i.length)==i}function s_(t,i,s){var c=w.templateSettings;s&&$t(t,i,s)&&(i=n),t=Ue(t),i=ga({},i,c,Kf);var h=ga({},i.imports,c.imports,Kf),b=gt(h),x=As(h,b),R,M,z=0,q=i.interpolate||Ao,K="__p += '",Z=Ls((i.escape||Ao).source+"|"+q.source+"|"+(q===ii?Oe:Ao).source+"|"+(i.evaluate||Ao).source+"|$","g"),re="//# sourceURL="+(qe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mg+"]")+`
186
186
  `;t.replace(Z,function(me,De,Ne,Qt,jt,en){return Ne||(Ne=Qt),K+=t.slice(z,en).replace(Km,Ng),De&&(R=!0,K+=`' +
187
187
  __e(`+De+`) +
188
188
  '`),jt&&(M=!0,K+=`';
@@ -190,7 +190,7 @@ __e(`+De+`) +
190
190
  __p += '`),Ne&&(K+=`' +
191
191
  ((__t = (`+Ne+`)) == null ? '' : __t) +
192
192
  '`),z=en+me.length,me}),K+=`';
193
- `;var ve=ze.call(i,"variable")&&i.variable;if(!ve)K=`with (obj) {
193
+ `;var ve=qe.call(i,"variable")&&i.variable;if(!ve)K=`with (obj) {
194
194
  `+K+`
195
195
  }
196
196
  `;else if(je.test(ve))throw new Ee(f);K=(M?K.replace(Tr,""):K).replace(Di,"$1").replace(Cr,"$1;"),K="function("+(ve||"obj")+`) {
@@ -199,8 +199,8 @@ __p += '`),Ne&&(K+=`' +
199
199
  function print() { __p += __j.call(arguments, '') }
200
200
  `:`;
201
201
  `)+K+`return __p
202
- }`;var Pe=Fd(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,vu(Pe))throw Pe;return Pe}function u_(t){return Ue(t).toLowerCase()}function l_(t){return Ue(t).toUpperCase()}function c_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Kc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Yc(c,h),x=Xc(c,h)+1;return dr(c,b,x).join("")}function f_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Jc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Xc(c,_n(i))+1;return dr(c,0,h).join("")}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Yc(c,_n(i));return dr(c,h).join("")}function p_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=Ue(t);var b=t.length;if(si(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-ui(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,Ue(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function h_(t){return t=Ue(t),t&&Rr.test(t)?t.replace(ri,Bg):t}var v_=vi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Wf("toUpperCase");function jd(t,i,s){return t=Ue(t),i=s?n:i,i===n?jg(t)?Gg(t):Pg(t):t.match(i)||[]}var Fd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),m_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function g_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function y_(t){return B0(cn(t,_))}function bu(t){return function(){return t}}function w_(t,i){return t==null||t!==t?i:t}var b_=Hf(),__=Hf(!0);function zt(t){return t}function _u(t){return yf(typeof t=="function"?t:cn(t,_))}function S_(t){return bf(cn(t,_))}function E_(t,i){return _f(t,cn(i,_))}var x_=Ae(function(t,i){return function(s){return Yi(s,t,i)}}),O_=Ae(function(t,i){return function(s){return Yi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Zo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Zo(i,gt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ut(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function T_(){return bt._===this&&(bt._=Zg),this}function Eu(){}function C_(t){return t=Re(t),Ae(function(i){return Sf(i,t)})}var R_=eu(et),P_=eu(Hc),A_=eu(Os);function Wd(t){return su(t)?Ts(Mn(t)):ay(t)}function I_(t){return function(i){return t==null?n:Nr(t,i)}}var L_=zf(),M_=zf(!0);function xu(){return[]}function Ou(){return!1}function D_(){return{}}function k_(){return""}function N_(){return!0}function $_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Tt(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function j_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(ad(Ue(t)))}function F_(t){var i=++Vg;return Ue(t)+i}var W_=ia(function(t,i){return t+i},0),U_=tu("ceil"),H_=ia(function(t,i){return t/i},1),B_=tu("floor");function z_(t){return t&&t.length?Jo(t,zt,Ws):n}function q_(t,i){return t&&t.length?Jo(t,he(i,2),Ws):n}function G_(t){return qc(t,zt)}function K_(t,i){return qc(t,he(i,2))}function Y_(t){return t&&t.length?Jo(t,zt,zs):n}function X_(t,i){return t&&t.length?Jo(t,he(i,2),zs):n}var V_=ia(function(t,i){return t*i},1),J_=tu("round"),Z_=ia(function(t,i){return t-i},0);function Q_(t){return t&&t.length?Rs(t,zt):0}function eS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=Sw,w.ary=gd,w.assign=lb,w.assignIn=Id,w.assignInWith=ga,w.assignWith=cb,w.at=fb,w.before=yd,w.bind=pu,w.bindAll=m_,w.bindKey=wd,w.castArray=Dw,w.chain=hd,w.chunk=By,w.compact=zy,w.concat=qy,w.cond=g_,w.conforms=y_,w.constant=bu,w.countBy=Q1,w.create=db,w.curry=bd,w.curryRight=_d,w.debounce=Sd,w.defaults=pb,w.defaultsDeep=hb,w.defer=Ew,w.delay=xw,w.difference=Gy,w.differenceBy=Ky,w.differenceWith=Yy,w.drop=Xy,w.dropRight=Vy,w.dropRightWhile=Jy,w.dropWhile=Zy,w.fill=Qy,w.filter=tw,w.flatMap=iw,w.flatMapDeep=ow,w.flatMapDepth=aw,w.flatten=cd,w.flattenDeep=e1,w.flattenDepth=t1,w.flip=Ow,w.flow=b_,w.flowRight=__,w.fromPairs=n1,w.functions=_b,w.functionsIn=Sb,w.groupBy=sw,w.initial=i1,w.intersection=o1,w.intersectionBy=a1,w.intersectionWith=s1,w.invert=xb,w.invertBy=Ob,w.invokeMap=lw,w.iteratee=_u,w.keyBy=cw,w.keys=gt,w.keysIn=Bt,w.map=fa,w.mapKeys=Cb,w.mapValues=Rb,w.matches=S_,w.matchesProperty=E_,w.memoize=pa,w.merge=Pb,w.mergeWith=Ld,w.method=x_,w.methodOf=O_,w.mixin=Su,w.negate=ha,w.nthArg=C_,w.omit=Ab,w.omitBy=Ib,w.once=Tw,w.orderBy=fw,w.over=R_,w.overArgs=Cw,w.overEvery=P_,w.overSome=A_,w.partial=hu,w.partialRight=Ed,w.partition=dw,w.pick=Lb,w.pickBy=Md,w.property=Wd,w.propertyOf=I_,w.pull=f1,w.pullAll=dd,w.pullAllBy=d1,w.pullAllWith=p1,w.pullAt=h1,w.range=L_,w.rangeRight=M_,w.rearg=Rw,w.reject=vw,w.remove=v1,w.rest=Pw,w.reverse=fu,w.sampleSize=gw,w.set=Db,w.setWith=kb,w.shuffle=yw,w.slice=m1,w.sortBy=_w,w.sortedUniq=E1,w.sortedUniqBy=x1,w.split=i_,w.spread=Aw,w.tail=O1,w.take=T1,w.takeRight=C1,w.takeRightWhile=R1,w.takeWhile=P1,w.tap=z1,w.throttle=Iw,w.thru=ca,w.toArray=Rd,w.toPairs=Dd,w.toPairsIn=kd,w.toPath=j_,w.toPlainObject=Ad,w.transform=Nb,w.unary=Lw,w.union=A1,w.unionBy=I1,w.unionWith=L1,w.uniq=M1,w.uniqBy=D1,w.uniqWith=k1,w.unset=$b,w.unzip=du,w.unzipWith=pd,w.update=jb,w.updateWith=Fb,w.values=yi,w.valuesIn=Wb,w.without=N1,w.words=jd,w.wrap=Mw,w.xor=$1,w.xorBy=j1,w.xorWith=F1,w.zip=W1,w.zipObject=U1,w.zipObjectDeep=H1,w.zipWith=B1,w.entries=Dd,w.entriesIn=kd,w.extend=Id,w.extendWith=ga,Su(w,w),w.add=W_,w.attempt=Fd,w.camelCase=zb,w.capitalize=Nd,w.ceil=U_,w.clamp=Ub,w.clone=kw,w.cloneDeep=$w,w.cloneDeepWith=jw,w.cloneWith=Nw,w.conformsTo=Fw,w.deburr=$d,w.defaultTo=w_,w.divide=H_,w.endsWith=qb,w.eq=En,w.escape=Gb,w.escapeRegExp=Kb,w.every=ew,w.find=nw,w.findIndex=ud,w.findKey=vb,w.findLast=rw,w.findLastIndex=ld,w.findLastKey=mb,w.floor=B_,w.forEach=vd,w.forEachRight=md,w.forIn=gb,w.forInRight=yb,w.forOwn=wb,w.forOwnRight=bb,w.get=gu,w.gt=Ww,w.gte=Uw,w.has=Eb,w.hasIn=yu,w.head=fd,w.identity=zt,w.includes=uw,w.indexOf=r1,w.inRange=Hb,w.invoke=Tb,w.isArguments=Fr,w.isArray=Te,w.isArrayBuffer=Hw,w.isArrayLike=Ht,w.isArrayLikeObject=ct,w.isBoolean=Bw,w.isBuffer=pr,w.isDate=zw,w.isElement=qw,w.isEmpty=Gw,w.isEqual=Kw,w.isEqualWith=Yw,w.isError=vu,w.isFinite=Xw,w.isFunction=Xn,w.isInteger=xd,w.isLength=va,w.isMap=Od,w.isMatch=Vw,w.isMatchWith=Jw,w.isNaN=Zw,w.isNative=Qw,w.isNil=tb,w.isNull=eb,w.isNumber=Td,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=eo,w.isRegExp=mu,w.isSafeInteger=nb,w.isSet=Cd,w.isString=ma,w.isSymbol=Zt,w.isTypedArray=gi,w.isUndefined=rb,w.isWeakMap=ib,w.isWeakSet=ob,w.join=u1,w.kebabCase=Yb,w.last=dn,w.lastIndexOf=l1,w.lowerCase=Xb,w.lowerFirst=Vb,w.lt=ab,w.lte=sb,w.max=z_,w.maxBy=q_,w.mean=G_,w.meanBy=K_,w.min=Y_,w.minBy=X_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=D_,w.stubString=k_,w.stubTrue=N_,w.multiply=V_,w.nth=c1,w.noConflict=T_,w.noop=Eu,w.now=da,w.pad=Jb,w.padEnd=Zb,w.padStart=Qb,w.parseInt=e_,w.random=Bb,w.reduce=pw,w.reduceRight=hw,w.repeat=t_,w.replace=n_,w.result=Mb,w.round=J_,w.runInContext=A,w.sample=mw,w.size=ww,w.snakeCase=r_,w.some=bw,w.sortedIndex=g1,w.sortedIndexBy=y1,w.sortedIndexOf=w1,w.sortedLastIndex=b1,w.sortedLastIndexBy=_1,w.sortedLastIndexOf=S1,w.startCase=o_,w.startsWith=a_,w.subtract=Z_,w.sum=Q_,w.sumBy=eS,w.template=s_,w.times=$_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Pd,w.toLower=u_,w.toNumber=pn,w.toSafeInteger=ub,w.toString=Ue,w.toUpper=l_,w.trim=c_,w.trimEnd=f_,w.trimStart=d_,w.truncate=p_,w.unescape=h_,w.uniqueId=F_,w.upperCase=v_,w.upperFirst=wu,w.each=vd,w.eachRight=md,w.first=fd,Su(w,function(){var t={};return In(w,function(i,s){ze.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:ht(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Tt(s,c.__takeCount__):c.__views__.push({size:Tt(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Yi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(ha(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:ca,args:[K],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=No[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";ze.call(di,c)||(di[c]=[]),di[c].push({name:i,func:s})}}),di[ra(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=h0,ke.prototype.reverse=v0,ke.prototype.value=m0,w.prototype.at=q1,w.prototype.chain=G1,w.prototype.commit=K1,w.prototype.next=Y1,w.prototype.plant=V1,w.prototype.reverse=J1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=Z1,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=X1),w},li=Kg();Ir?((Ir.exports=li)._=li,_s._=li):bt._=li}).call(Br)})(Qa,Qa.exports);var Dt=Qa.exports;const Ml={FdSave:RE,FdWarningDanger:Kl,FdInfoCircle:OE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Yr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Yr||{}),Oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Oi||{});const rm={[Yr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Yr.DANGER]:{icon:"red-500",button:"primary-dark"},[Yr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Yr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=rm[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:xt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},oP=({name:e,color:r=Yr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${rm[r].icon}`;return $.jsx(o,{className:xt(n,a)})},aP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:m=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Oi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const v=Dt.merge(Dt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=Dt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return go.createPortal($.jsx(Za,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:xt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>O(Oi.CANCELED),children:$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(oP,{name:o,color:u})}):null,$.jsx(sP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:Dt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(tm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(uP,{warnings:v}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===cc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Oi.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Oi.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},sP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,uP=e=>e.warnings?$.jsx(Za,{appear:!0,show:!!e.warnings.length,as:N.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((r,n)=>$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Kl,{className:xt({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function lP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function im(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function cP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var ho={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Et={16:!1,18:!1,17:!1,91:!1},st={};for(var Da=1;Da<20;Da++)ho["f".concat(Da)]=111+Da;var Ve=[],ch=!1,am="all",sm=[],Ro=function(r){return ho[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},fP=function(r){return Object.keys(ho).find(function(n){return ho[n]===r})},dP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function um(e){am=e||"all"}function vo(){return am||"all"}function pP(){return Ve.slice(0)}function hP(){return Ve.map(function(e){return fP(e)||dP(e)||String.fromCharCode(e)})}function vP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Ro(f)})})})}),e}function mP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function gP(e){return typeof e=="string"&&(e=Ro(e)),Ve.indexOf(e)!==-1}function yP(e,r){var n,o;e||(e=vo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;vo()===e&&um(r||"all")}function wP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in Et){Et[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function bP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=om(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Ro(_);if(st[O]){o||(o=vo());var v=g>1?im(Un,m):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&cP(S.mods,v))})}})};function fh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in Et)Object.prototype.hasOwnProperty.call(Et,u)&&(!Et[u]&&r.mods.indexOf(+u)>-1||Et[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!Et[16]&&!Et[18]&&!Et[17]&&!Et[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function dh(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in Et){Et[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in Et)Object.prototype.hasOwnProperty.call(Et,u)&&(Et[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),Et[17]=!0,Et[18]=!0);var l=vo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&fh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var m=st[o][d],g=m.splitKey,_=m.key.split(g),O=[],v=0;v<_.length;v++)O.push(Ro(_[v]));O.sort().join("")===Ve.sort().join("")&&fh(e,m,l,r)}}}}function _P(e){return sm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=om(e),a=[],u="all",l=document,f=0,d=!1,m=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=im(Un,e)),e=e[e.length-1],e=e==="*"?"*":Ro(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!_P(l)&&window&&(sm.push(l),sl(l,"keydown",function(O){dh(O,l)},_),ch||(ch=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){dh(O,l),wP(O)},_))}function SP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:hP,setScope:um,getScope:vo,deleteScope:yP,getPressedKeyCodes:pP,getAllKeyCodes:vP,isPressed:gP,filter:mP,trigger:SP,unbind:bP,keyMap:ho,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var EP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=EP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function xP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const OP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function TP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function CP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function RP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const PP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function AP(){const[e,r]=N.useState(PP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=N.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const lm=N.createContext(""),IP=e=>$.jsx(lm.Provider,{value:e.value,children:e.children}),LP=()=>{const e=N.useContext(lm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function MP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>DP(r,n),[]);return{state:r,actions:{...o,set:n}}}function DP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Dt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const kP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function cm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=cm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
202
+ }`;var Pe=Fd(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,vu(Pe))throw Pe;return Pe}function u_(t){return Ue(t).toLowerCase()}function l_(t){return Ue(t).toUpperCase()}function c_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Kc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Yc(c,h),x=Xc(c,h)+1;return dr(c,b,x).join("")}function f_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Jc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Xc(c,_n(i))+1;return dr(c,0,h).join("")}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Yc(c,_n(i));return dr(c,h).join("")}function p_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=Ue(t);var b=t.length;if(si(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-ui(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,Ue(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function h_(t){return t=Ue(t),t&&Rr.test(t)?t.replace(ri,Bg):t}var v_=vi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Wf("toUpperCase");function jd(t,i,s){return t=Ue(t),i=s?n:i,i===n?jg(t)?Gg(t):Pg(t):t.match(i)||[]}var Fd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),m_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function g_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function y_(t){return B0(cn(t,_))}function bu(t){return function(){return t}}function w_(t,i){return t==null||t!==t?i:t}var b_=Hf(),__=Hf(!0);function zt(t){return t}function _u(t){return yf(typeof t=="function"?t:cn(t,_))}function S_(t){return bf(cn(t,_))}function E_(t,i){return _f(t,cn(i,_))}var x_=Ae(function(t,i){return function(s){return Yi(s,t,i)}}),O_=Ae(function(t,i){return function(s){return Yi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Zo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Zo(i,gt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ut(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function T_(){return bt._===this&&(bt._=Zg),this}function Eu(){}function C_(t){return t=Re(t),Ae(function(i){return Sf(i,t)})}var R_=eu(et),P_=eu(Hc),A_=eu(Os);function Wd(t){return su(t)?Ts(Mn(t)):ay(t)}function I_(t){return function(i){return t==null?n:Nr(t,i)}}var L_=zf(),M_=zf(!0);function xu(){return[]}function Ou(){return!1}function D_(){return{}}function k_(){return""}function N_(){return!0}function $_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Tt(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function j_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(ad(Ue(t)))}function F_(t){var i=++Vg;return Ue(t)+i}var W_=ia(function(t,i){return t+i},0),U_=tu("ceil"),H_=ia(function(t,i){return t/i},1),B_=tu("floor");function z_(t){return t&&t.length?Jo(t,zt,Ws):n}function q_(t,i){return t&&t.length?Jo(t,he(i,2),Ws):n}function G_(t){return qc(t,zt)}function K_(t,i){return qc(t,he(i,2))}function Y_(t){return t&&t.length?Jo(t,zt,zs):n}function X_(t,i){return t&&t.length?Jo(t,he(i,2),zs):n}var V_=ia(function(t,i){return t*i},1),J_=tu("round"),Z_=ia(function(t,i){return t-i},0);function Q_(t){return t&&t.length?Rs(t,zt):0}function eS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=Sw,w.ary=gd,w.assign=lb,w.assignIn=Id,w.assignInWith=ga,w.assignWith=cb,w.at=fb,w.before=yd,w.bind=pu,w.bindAll=m_,w.bindKey=wd,w.castArray=Dw,w.chain=hd,w.chunk=By,w.compact=zy,w.concat=qy,w.cond=g_,w.conforms=y_,w.constant=bu,w.countBy=Q1,w.create=db,w.curry=bd,w.curryRight=_d,w.debounce=Sd,w.defaults=pb,w.defaultsDeep=hb,w.defer=Ew,w.delay=xw,w.difference=Gy,w.differenceBy=Ky,w.differenceWith=Yy,w.drop=Xy,w.dropRight=Vy,w.dropRightWhile=Jy,w.dropWhile=Zy,w.fill=Qy,w.filter=tw,w.flatMap=iw,w.flatMapDeep=ow,w.flatMapDepth=aw,w.flatten=cd,w.flattenDeep=e1,w.flattenDepth=t1,w.flip=Ow,w.flow=b_,w.flowRight=__,w.fromPairs=n1,w.functions=_b,w.functionsIn=Sb,w.groupBy=sw,w.initial=i1,w.intersection=o1,w.intersectionBy=a1,w.intersectionWith=s1,w.invert=xb,w.invertBy=Ob,w.invokeMap=lw,w.iteratee=_u,w.keyBy=cw,w.keys=gt,w.keysIn=Bt,w.map=fa,w.mapKeys=Cb,w.mapValues=Rb,w.matches=S_,w.matchesProperty=E_,w.memoize=pa,w.merge=Pb,w.mergeWith=Ld,w.method=x_,w.methodOf=O_,w.mixin=Su,w.negate=ha,w.nthArg=C_,w.omit=Ab,w.omitBy=Ib,w.once=Tw,w.orderBy=fw,w.over=R_,w.overArgs=Cw,w.overEvery=P_,w.overSome=A_,w.partial=hu,w.partialRight=Ed,w.partition=dw,w.pick=Lb,w.pickBy=Md,w.property=Wd,w.propertyOf=I_,w.pull=f1,w.pullAll=dd,w.pullAllBy=d1,w.pullAllWith=p1,w.pullAt=h1,w.range=L_,w.rangeRight=M_,w.rearg=Rw,w.reject=vw,w.remove=v1,w.rest=Pw,w.reverse=fu,w.sampleSize=gw,w.set=Db,w.setWith=kb,w.shuffle=yw,w.slice=m1,w.sortBy=_w,w.sortedUniq=E1,w.sortedUniqBy=x1,w.split=i_,w.spread=Aw,w.tail=O1,w.take=T1,w.takeRight=C1,w.takeRightWhile=R1,w.takeWhile=P1,w.tap=z1,w.throttle=Iw,w.thru=ca,w.toArray=Rd,w.toPairs=Dd,w.toPairsIn=kd,w.toPath=j_,w.toPlainObject=Ad,w.transform=Nb,w.unary=Lw,w.union=A1,w.unionBy=I1,w.unionWith=L1,w.uniq=M1,w.uniqBy=D1,w.uniqWith=k1,w.unset=$b,w.unzip=du,w.unzipWith=pd,w.update=jb,w.updateWith=Fb,w.values=yi,w.valuesIn=Wb,w.without=N1,w.words=jd,w.wrap=Mw,w.xor=$1,w.xorBy=j1,w.xorWith=F1,w.zip=W1,w.zipObject=U1,w.zipObjectDeep=H1,w.zipWith=B1,w.entries=Dd,w.entriesIn=kd,w.extend=Id,w.extendWith=ga,Su(w,w),w.add=W_,w.attempt=Fd,w.camelCase=zb,w.capitalize=Nd,w.ceil=U_,w.clamp=Ub,w.clone=kw,w.cloneDeep=$w,w.cloneDeepWith=jw,w.cloneWith=Nw,w.conformsTo=Fw,w.deburr=$d,w.defaultTo=w_,w.divide=H_,w.endsWith=qb,w.eq=En,w.escape=Gb,w.escapeRegExp=Kb,w.every=ew,w.find=nw,w.findIndex=ud,w.findKey=vb,w.findLast=rw,w.findLastIndex=ld,w.findLastKey=mb,w.floor=B_,w.forEach=vd,w.forEachRight=md,w.forIn=gb,w.forInRight=yb,w.forOwn=wb,w.forOwnRight=bb,w.get=gu,w.gt=Ww,w.gte=Uw,w.has=Eb,w.hasIn=yu,w.head=fd,w.identity=zt,w.includes=uw,w.indexOf=r1,w.inRange=Hb,w.invoke=Tb,w.isArguments=Fr,w.isArray=Te,w.isArrayBuffer=Hw,w.isArrayLike=Ht,w.isArrayLikeObject=ct,w.isBoolean=Bw,w.isBuffer=pr,w.isDate=zw,w.isElement=qw,w.isEmpty=Gw,w.isEqual=Kw,w.isEqualWith=Yw,w.isError=vu,w.isFinite=Xw,w.isFunction=Xn,w.isInteger=xd,w.isLength=va,w.isMap=Od,w.isMatch=Vw,w.isMatchWith=Jw,w.isNaN=Zw,w.isNative=Qw,w.isNil=tb,w.isNull=eb,w.isNumber=Td,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=eo,w.isRegExp=mu,w.isSafeInteger=nb,w.isSet=Cd,w.isString=ma,w.isSymbol=Zt,w.isTypedArray=gi,w.isUndefined=rb,w.isWeakMap=ib,w.isWeakSet=ob,w.join=u1,w.kebabCase=Yb,w.last=dn,w.lastIndexOf=l1,w.lowerCase=Xb,w.lowerFirst=Vb,w.lt=ab,w.lte=sb,w.max=z_,w.maxBy=q_,w.mean=G_,w.meanBy=K_,w.min=Y_,w.minBy=X_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=D_,w.stubString=k_,w.stubTrue=N_,w.multiply=V_,w.nth=c1,w.noConflict=T_,w.noop=Eu,w.now=da,w.pad=Jb,w.padEnd=Zb,w.padStart=Qb,w.parseInt=e_,w.random=Bb,w.reduce=pw,w.reduceRight=hw,w.repeat=t_,w.replace=n_,w.result=Mb,w.round=J_,w.runInContext=A,w.sample=mw,w.size=ww,w.snakeCase=r_,w.some=bw,w.sortedIndex=g1,w.sortedIndexBy=y1,w.sortedIndexOf=w1,w.sortedLastIndex=b1,w.sortedLastIndexBy=_1,w.sortedLastIndexOf=S1,w.startCase=o_,w.startsWith=a_,w.subtract=Z_,w.sum=Q_,w.sumBy=eS,w.template=s_,w.times=$_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Pd,w.toLower=u_,w.toNumber=pn,w.toSafeInteger=ub,w.toString=Ue,w.toUpper=l_,w.trim=c_,w.trimEnd=f_,w.trimStart=d_,w.truncate=p_,w.unescape=h_,w.uniqueId=F_,w.upperCase=v_,w.upperFirst=wu,w.each=vd,w.eachRight=md,w.first=fd,Su(w,function(){var t={};return In(w,function(i,s){qe.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:ht(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Tt(s,c.__takeCount__):c.__views__.push({size:Tt(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Yi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(ha(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:ca,args:[K],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=No[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";qe.call(di,c)||(di[c]=[]),di[c].push({name:i,func:s})}}),di[ra(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=h0,ke.prototype.reverse=v0,ke.prototype.value=m0,w.prototype.at=q1,w.prototype.chain=G1,w.prototype.commit=K1,w.prototype.next=Y1,w.prototype.plant=V1,w.prototype.reverse=J1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=Z1,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=X1),w},li=Kg();Ir?((Ir.exports=li)._=li,_s._=li):bt._=li}).call(Br)})(Qa,Qa.exports);var Dt=Qa.exports;const Ml={FdSave:RE,FdWarningDanger:Kl,FdInfoCircle:OE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Yr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Yr||{}),Oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Oi||{});const rm={[Yr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Yr.DANGER]:{icon:"red-500",button:"primary-dark"},[Yr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Yr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=rm[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:xt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},oP=({name:e,color:r=Yr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${rm[r].icon}`;return $.jsx(o,{className:xt(n,a)})},aP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:m=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Oi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const v=Dt.merge(Dt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=Dt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return go.createPortal($.jsx(Za,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:xt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>O(Oi.CANCELED),children:$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(oP,{name:o,color:u})}):null,$.jsx(sP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:Dt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(tm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(uP,{warnings:v}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===cc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Oi.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Oi.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},sP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,uP=e=>e.warnings?$.jsx(Za,{appear:!0,show:!!e.warnings.length,as:N.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((r,n)=>$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Kl,{className:xt({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function lP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function im(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function cP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var ho={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Et={16:!1,18:!1,17:!1,91:!1},st={};for(var Da=1;Da<20;Da++)ho["f".concat(Da)]=111+Da;var Ve=[],ch=!1,am="all",sm=[],Ro=function(r){return ho[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},fP=function(r){return Object.keys(ho).find(function(n){return ho[n]===r})},dP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function um(e){am=e||"all"}function vo(){return am||"all"}function pP(){return Ve.slice(0)}function hP(){return Ve.map(function(e){return fP(e)||dP(e)||String.fromCharCode(e)})}function vP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Ro(f)})})})}),e}function mP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function gP(e){return typeof e=="string"&&(e=Ro(e)),Ve.indexOf(e)!==-1}function yP(e,r){var n,o;e||(e=vo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;vo()===e&&um(r||"all")}function wP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in Et){Et[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function bP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=om(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Ro(_);if(st[O]){o||(o=vo());var v=g>1?im(Un,m):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&cP(S.mods,v))})}})};function fh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in Et)Object.prototype.hasOwnProperty.call(Et,u)&&(!Et[u]&&r.mods.indexOf(+u)>-1||Et[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!Et[16]&&!Et[18]&&!Et[17]&&!Et[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function dh(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in Et){Et[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in Et)Object.prototype.hasOwnProperty.call(Et,u)&&(Et[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),Et[17]=!0,Et[18]=!0);var l=vo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&fh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var m=st[o][d],g=m.splitKey,_=m.key.split(g),O=[],v=0;v<_.length;v++)O.push(Ro(_[v]));O.sort().join("")===Ve.sort().join("")&&fh(e,m,l,r)}}}}function _P(e){return sm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=om(e),a=[],u="all",l=document,f=0,d=!1,m=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=im(Un,e)),e=e[e.length-1],e=e==="*"?"*":Ro(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!_P(l)&&window&&(sm.push(l),sl(l,"keydown",function(O){dh(O,l)},_),ch||(ch=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){dh(O,l),wP(O)},_))}function SP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:hP,setScope:um,getScope:vo,deleteScope:yP,getPressedKeyCodes:pP,getAllKeyCodes:vP,isPressed:gP,filter:mP,trigger:SP,unbind:bP,keyMap:ho,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var EP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=EP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function xP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const OP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function TP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function CP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function RP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const PP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function AP(){const[e,r]=N.useState(PP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=N.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const lm=N.createContext(""),IP=e=>$.jsx(lm.Provider,{value:e.value,children:e.children}),LP=()=>{const e=N.useContext(lm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function MP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>DP(r,n),[]);return{state:r,actions:{...o,set:n}}}function DP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Dt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const kP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function cm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=cm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
203
203
  `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
204
204
  `):"",this.name="UnsubscriptionError",this.errors=n}});function kl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var ps=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Sl(l),d=f.next();!d.done;d=f.next()){var m=d.value;m.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(tr(g))try{g()}catch(y){u=y instanceof fl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=Sl(_),v=O.next();!v.done;v=O.next()){var S=v.value;try{ph(S)}catch(y){u=u??[],y instanceof fl?u=fo(fo([],Ka(u)),Ka(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{v&&!v.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new fl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)ph(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&kl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&kl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),fm=ps.EMPTY;function dm(e){return e instanceof ps||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function ph(e){tr(e)?e():e.unsubscribe()}var pm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Nl={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=Nl.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,fo([e,r],Ka(n))):setTimeout.apply(void 0,fo([e,r],Ka(n)))},clearTimeout:function(e){var r=Nl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function NP(e){Nl.setTimeout(function(){throw e})}function hh(){}function Ha(e){e()}var hm=function(e){is(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,dm(n)&&n.add(o)):o.destination=WP,o}return r.create=function(n,o,a){return new $l(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(ps),$P=Function.prototype.bind;function dl(e,r){return $P.call(e,r)}var jP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){ka(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){ka(o)}else ka(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){ka(n)}},e}(),$l=function(e){is(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(tr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&pm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&dl(n.next,f),error:n.error&&dl(n.error,f),complete:n.complete&&dl(n.complete,f)}):l=n}return u.destination=new jP(l),u}return r}(hm);function ka(e){NP(e)}function FP(e){throw e}var WP={closed:!0,next:hh,error:FP,complete:hh},UP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function HP(e){return e}function BP(e){return e.length===0?HP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var vh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=qP(r)?r:new $l(r,n,o);return Ha(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=mh(n),new n(function(a,u){var l=new $l({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[UP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return BP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=mh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function mh(e){var r;return(r=e??pm.Promise)!==null&&r!==void 0?r:Promise}function zP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function qP(e){return e&&e instanceof hm||zP(e)&&dm(e)}var GP=cm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ti=function(e){is(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new gh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new GP},r.prototype.next=function(n){var o=this;Ha(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Sl(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ha(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ha(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?fm:(this.currentObservers=null,f.push(n),new ps(function(){o.currentObservers=null,kl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new vh;return n.source=this,n},r.create=function(n,o){return new gh(n,o)},r}(vh),gh=function(e){is(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:fm},r}(ti),vm=(e=>(e.RELOAD="reload",e))(vm||{}),mm=(e=>(e.RENAME="rename",e))(mm||{});const KP=new ti,YP=new ti,XP=new ti;var gm=(e=>(e.SAVE_ALL="save-all",e))(gm||{});const VP=new ti;var ym=(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))(ym||{});const JP=new ti;var wm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(wm||{});const ZP=new ti,fc=31;var dc=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${fc} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(dc||{});function bm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>fc)throw new Error(dc.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function QP(e){if(!e)return null;if(typeof e=="string")try{bm(e)}catch(r){return r.message}}function hs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var pc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(pc||{});const Xr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),ni=(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))(ni||{}),hc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hc||{});const _m="roles.json",Sm="qodlyApp.json",eA="model.4DModel";function Em(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Cn.MODEL;case n==="WebForm":return Cn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===Xr.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===Xr.CLASSES):return Cn.CLASS;case e===_m:return Cn.ROLES;case e===Sm:return Cn.SETTINGS;default:return Cn.TEXT}}function tA(e,r=!1){switch(e){case Xr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Xr.CLASSES:case Xr.METHODS:return r?"4qs":"4dm";default:return""}}function nA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class xm{constructor(){Hd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Om(){const e=new xm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Tm=Dt.curry((e,r,n)=>e&&Dt.get(n,e)===r),rA=Dt.curry((e,r,n)=>Dt.get(n,e)!==r),iA=Dt.curry((e,r)=>Dt.get(r,"id")!==e),oA=Dt.curry((e,r)=>Dt.get(r,"id")===e),aA=Dt.curry((e,r)=>Dt.get(r,"path")===e);function sA(e="id",r,n){return n.findIndex(Tm(e,r))!==-1}function uA(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Cm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function lA(e){return e.type==="object"}function Rm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Pm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Cm(e)}function cA(e){return Rm(e)||Pm(e)}function fA(e){return e.applyTo==="dataStore"}function dA(e){return e.applyTo==="dataClass"}function pA(e){return e.applyTo==="entity"}function hA(e){return e.applyTo==="entityCollection"}function vA(e){return e.type==="entity"}function mA(e){return e.type==="entitysel"}function Am(e){return e.dataType==="array"}function Im(e){return e.dataType==="object"}function Lm(e){return e.type==="scalar"}function gA(e){return Am(e)||Im(e)||Lm(e)}const yA=e=>e!=null&&e.type==="entity",wA=e=>e.type==="entitysel",bA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",_A=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",SA=e=>e.type==="scalar"&&e.dataType==="date";function EA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var mo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(mo||{}),Mm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Mm||{}),vc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(vc||{});const xA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function OA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:mo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:vc.table}},...o}}function Dm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[mo.capable,mo.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function TA(e,r,n=!1){const o=Dt.isString(r)?r:Dm(r);if(!n&&km(e))return e;const a=Nm(e);return`//%attributes = ${o}\r
205
- ${a}`}function km(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Nm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const CA=()=>sv.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Po="/rest/$designer-ext",vs="/$shared";function RA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Ge(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function PA(e){return Ge(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AA(e){return Ge(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $m=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:hc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function IA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ge(vt,{method:"POST",body:JSON.stringify({verb:ni.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$m()}}async function jm(e){return await Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function LA(...e){return(await Promise.all(e.map(o=>jm({root:o,verb:ni.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function MA(e){return Ge(`/rest/$getWebForm/${e}`,{method:"GET"})}function DA(e){return Ge(vt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?hs(r.content):r.content}))}function kA(e){return e.type==="folder"?Ge(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function NA(e){return e.type==="folder"?(await Ge(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function $A(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jA(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FA(e){return(await Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function WA(...e){return await Ge(vt,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){const r=await Ge("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function HA(){return await Ge("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function BA({name:e,path:r="",root:n="root",asText:o=!1}){return Ge(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function zA(){try{const e=await Ge(`${vs}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function qA(){try{const e=await Ge(`${vs}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function GA(){try{const e=await Ge(`${vs}/shared_conditions.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{conditions:[]}}}async function KA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const YA=Om(),XA=async e=>{const r={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return YA(async()=>(await Ge(vt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Fm=async e=>{const r=await Ge(vt,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:pc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Em(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},VA=async e=>await Fm({name:"crafted_components.json",path:Xr.WEBFORMS,content:e});function JA(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZA(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QA(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?hs(r.content):r.content})}function t2(e){return Ge(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function n2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function r2(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function i2(e){const r=n2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=r2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function o2(e,r){const o=e.split(".").pop();try{const a=await Ge(vt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=hs(a.content);const{params:u,result:l}=i2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Wm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Wm||{});function a2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Um=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Um||{}),Hm=(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))(Hm||{}),Bm=(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))(Bm||{});const s2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},u2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=iP;exports.ControlledSwitch=tm;exports.DATASOURCE_THEMES=s2;exports.DatasourcesActions=mm;exports.DebuggerActions=wm;exports.DesignerRequestVerb=ni;exports.Dialog=bE;exports.DialogBody=Lh;exports.EActivity=Wm;exports.EDITOR=u2;exports.EIDENTIFIERS=Hm;exports.ERROR_CODES=Bm;exports.EWebFormStyleClassScope=Um;exports.EXT_API_PREFIX=Po;exports.FileFolderType=Cn;exports.FolderRootPath=Xr;exports.FolderRootType=pc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Mm;exports.IPublishedRestScope=vc;exports.IdentityProvider=IP;exports.Incase=dO;exports.IndentLines=uv;exports.LogoSVG=nm;exports.LspActions=ym;exports.MAX_FILE_NAME_LENGTH=fc;exports.MODEL_TAB_PATH=eA;exports.Modal=aP;exports.ModalCloseReason=Oi;exports.ModalColor=Yr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=xm;exports.NameError=dc;exports.Overlay=Ih;exports.Portal=bh;exports.PublishOptions=xA;exports.ROLES_TAB_PATH=_m;exports.RemoteDebuggerMode=hc;exports.SETTINGS_TAB_PATH=Sm;exports.SHARED_API_PREFIX=vs;exports.Switcher=lv;exports.TabEventsActions=gm;exports.Tip=aR;exports.TipsProvider=iR;exports.Toast=Lx;exports.Tooltip=nP;exports.Tree=fO;exports.TreeIcon=nv;exports.TreeNode=Jl;exports.WebformActions=vm;exports._isArrayDatasource=bA;exports._isObjectDatasource=_A;exports.addAttributesToContent=TA;exports.addFolder=$A;exports.by=Tm;exports.byId=oA;exports.byPath=aA;exports.checkUpdates=PA;exports.createFolder=JA;exports.datasourcesSubject=KP;exports.debuggerSubject=ZP;exports.dropFile=NA;exports.dropFolder=FA;exports.exists=sA;exports.extractWebformName=nA;exports.generateUUID=CA;exports.getAppSettings=IA;exports.getCatalog=HA;exports.getDatasourceId=uA;exports.getDefaultAppSettings=$m;exports.getFile=DA;exports.getFileContent=BA;exports.getFileExtentionFromType=tA;exports.getFilesInfo=WA;exports.getFolder=jm;exports.getFolders=LA;exports.getFunctionContent=o2;exports.getMonacoTheme=KA;exports.getNodeInfo=e2;exports.getSharedCSS=qA;exports.getSharedConditions=GA;exports.getSharedDatasources=zA;exports.getTypeFromExtension=Em;exports.getWebForm=MA;exports.hasAttributesString=km;exports.http=Ge;exports.installUpdates=AA;exports.isArrayDatasource=Am;exports.isDataClassMethod=dA;exports.isDataStoreMethod=fA;exports.isDateDatasource=SA;exports.isEntity=yA;exports.isEntityDatasource=vA;exports.isEntityMethod=pA;exports.isEntitySelection=wA;exports.isEntitySelectionDatasource=mA;exports.isEntitySelectionMethod=hA;exports.isObjectAttribute=lA;exports.isObjectDatasource=Im;exports.isRelatedAttribute=cA;exports.isRelatedEntitiesAttribute=Rm;exports.isRelatedEntityAttribute=Pm;exports.isScalarDatasource=Lm;exports.isSimpleAttribute=Cm;exports.isSimpleDatasource=gA;exports.loadDS=EA;exports.log=a2;exports.login=UA;exports.lspSubject=JP;exports.moveItem=QA;exports.outBy=rA;exports.outById=iA;exports.parseAttributes=OA;exports.queue=Om;exports.removeAttributesString=Nm;exports.removeItem=ZA;exports.renameFile=kA;exports.renameFolder=jA;exports.sanitizeContent=hs;exports.saveContent=t2;exports.setCraftedComponents=VA;exports.setFileContent=Fm;exports.setSharedSources=XA;exports.stringifyAttributes=Dm;exports.tabEventsSubject=VP;exports.toastSubject=XP;exports.transformDates=RA;exports.useDidMountEffect=lP;exports.useDoubleClick=kP;exports.useFeatureFlags=AP;exports.useForwardedRef=RP;exports.useHotkeys=xP;exports.useIdentity=LP;exports.useOutsideClick=OP;exports.usePrevious=TP;exports.useStateObject=MP;exports.useStateRef=CP;exports.useTip=Bv;exports.validateName=bm;exports.validateServerSide=QP;exports.webformSubject=YP;
205
+ ${a}`}function km(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Nm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const CA=()=>sv.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Po="/rest/$designer-ext",vs="/$shared";function RA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function ze(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function PA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $m=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:hc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function IA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await ze(vt,{method:"POST",body:JSON.stringify({verb:ni.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$m()}}async function jm(e){return await ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function LA(...e){return(await Promise.all(e.map(o=>jm({root:o,verb:ni.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function MA(e){return ze(`/rest/$getWebForm/${e}`,{method:"GET"})}function DA(e){return ze(vt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?hs(r.content):r.content}))}function kA(e){return e.type==="folder"?ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function NA(e){return e.type==="folder"?(await ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function $A(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jA(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FA(e){return(await ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function WA(...e){return await ze(vt,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){const r=await ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function HA(){return await ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function BA({name:e,path:r="",root:n="root",asText:o=!1}){return ze(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function zA(){try{const e=await ze(`${vs}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function qA(){try{const e=await ze(`${vs}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function GA(){try{const e=await ze(`${vs}/saved_conditions.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{conditions:[]}}}async function KA(){try{return await ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function YA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const XA=Om(),VA=async e=>{const r={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return XA(async()=>(await ze(vt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Fm=async e=>{const r=await ze(vt,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:pc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Em(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},JA=async e=>await Fm({name:"crafted_components.json",path:Xr.WEBFORMS,content:e});function ZA(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QA(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t2(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?hs(r.content):r.content})}function n2(e){return ze(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function r2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function i2(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function o2(e){const r=r2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=i2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function a2(e,r){const o=e.split(".").pop();try{const a=await ze(vt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=hs(a.content);const{params:u,result:l}=o2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Wm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Wm||{});function s2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Um=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Um||{}),Hm=(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))(Hm||{}),Bm=(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))(Bm||{});const u2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},l2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=iP;exports.ControlledSwitch=tm;exports.DATASOURCE_THEMES=u2;exports.DatasourcesActions=mm;exports.DebuggerActions=wm;exports.DesignerRequestVerb=ni;exports.Dialog=bE;exports.DialogBody=Lh;exports.EActivity=Wm;exports.EDITOR=l2;exports.EIDENTIFIERS=Hm;exports.ERROR_CODES=Bm;exports.EWebFormStyleClassScope=Um;exports.EXT_API_PREFIX=Po;exports.FileFolderType=Cn;exports.FolderRootPath=Xr;exports.FolderRootType=pc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Mm;exports.IPublishedRestScope=vc;exports.IdentityProvider=IP;exports.Incase=dO;exports.IndentLines=uv;exports.LogoSVG=nm;exports.LspActions=ym;exports.MAX_FILE_NAME_LENGTH=fc;exports.MODEL_TAB_PATH=eA;exports.Modal=aP;exports.ModalCloseReason=Oi;exports.ModalColor=Yr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=xm;exports.NameError=dc;exports.Overlay=Ih;exports.Portal=bh;exports.PublishOptions=xA;exports.ROLES_TAB_PATH=_m;exports.RemoteDebuggerMode=hc;exports.SETTINGS_TAB_PATH=Sm;exports.SHARED_API_PREFIX=vs;exports.Switcher=lv;exports.TabEventsActions=gm;exports.Tip=aR;exports.TipsProvider=iR;exports.Toast=Lx;exports.Tooltip=nP;exports.Tree=fO;exports.TreeIcon=nv;exports.TreeNode=Jl;exports.WebformActions=vm;exports._isArrayDatasource=bA;exports._isObjectDatasource=_A;exports.addAttributesToContent=TA;exports.addFolder=$A;exports.by=Tm;exports.byId=oA;exports.byPath=aA;exports.checkUpdates=PA;exports.createFolder=ZA;exports.datasourcesSubject=KP;exports.debuggerSubject=ZP;exports.dropFile=NA;exports.dropFolder=FA;exports.exists=sA;exports.extractWebformName=nA;exports.generateUUID=CA;exports.getAppSettings=IA;exports.getCatalog=HA;exports.getDatasourceId=uA;exports.getDefaultAppSettings=$m;exports.getFile=DA;exports.getFileContent=BA;exports.getFileExtentionFromType=tA;exports.getFilesInfo=WA;exports.getFolder=jm;exports.getFolders=LA;exports.getFunctionContent=a2;exports.getMonacoTheme=YA;exports.getNodeInfo=t2;exports.getSavedConditions=GA;exports.getSharedCSS=qA;exports.getSharedDatasources=zA;exports.getTypeFromExtension=Em;exports.getUserPrivileges=KA;exports.getWebForm=MA;exports.hasAttributesString=km;exports.http=ze;exports.installUpdates=AA;exports.isArrayDatasource=Am;exports.isDataClassMethod=dA;exports.isDataStoreMethod=fA;exports.isDateDatasource=SA;exports.isEntity=yA;exports.isEntityDatasource=vA;exports.isEntityMethod=pA;exports.isEntitySelection=wA;exports.isEntitySelectionDatasource=mA;exports.isEntitySelectionMethod=hA;exports.isObjectAttribute=lA;exports.isObjectDatasource=Im;exports.isRelatedAttribute=cA;exports.isRelatedEntitiesAttribute=Rm;exports.isRelatedEntityAttribute=Pm;exports.isScalarDatasource=Lm;exports.isSimpleAttribute=Cm;exports.isSimpleDatasource=gA;exports.loadDS=EA;exports.log=s2;exports.login=UA;exports.lspSubject=JP;exports.moveItem=e2;exports.outBy=rA;exports.outById=iA;exports.parseAttributes=OA;exports.queue=Om;exports.removeAttributesString=Nm;exports.removeItem=QA;exports.renameFile=kA;exports.renameFolder=jA;exports.sanitizeContent=hs;exports.saveContent=n2;exports.setCraftedComponents=JA;exports.setFileContent=Fm;exports.setSharedSources=VA;exports.stringifyAttributes=Dm;exports.tabEventsSubject=VP;exports.toastSubject=XP;exports.transformDates=RA;exports.useDidMountEffect=lP;exports.useDoubleClick=kP;exports.useFeatureFlags=AP;exports.useForwardedRef=RP;exports.useHotkeys=xP;exports.useIdentity=LP;exports.useOutsideClick=OP;exports.usePrevious=TP;exports.useStateObject=MP;exports.useStateRef=CP;exports.useTip=Bv;exports.validateName=bm;exports.validateServerSide=QP;exports.webformSubject=YP;
206
206
  //# sourceMappingURL=index.cjs.js.map