@ws-ui/shared 0.2.0-beta.20240712.1 → 0.2.0-beta.20240726.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +78 -72
- package/dist/index.es.js.map +1 -1
- package/dist/utils/datasources.d.ts +1 -0
- package/package.json +1 -1
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
|
`)},uT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return oT(a)},[a]);return L.createElement(aT,{styles:sT(u,!r,a,n?"":"!important")})},El=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{El=!1}var Ei=El?{passive:!1}:!1,lT=function(e){return e.tagName==="TEXTAREA"},_v=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!lT(e)&&n[r]==="visible")},cT=function(e){return _v(e,"overflowY")},fT=function(e){return _v(e,"overflowX")},Op=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Sv(e,o);if(a){var u=Ev(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},dT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},pT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Sv=function(e,r){return e==="v"?cT(r):fT(r)},Ev=function(e,r){return e==="v"?dT(r):pT(r)},hT=function(e,r){return e==="h"&&r==="rtl"?-1:1},vT=function(e,r,n,o,a){var u=hT(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=Ev(e,f),S=v[0],y=v[1],E=v[2],D=y-E-u*S;(S||D)&&Sv(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},Ta=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},mT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},gT=function(e){return`
|
|
124
124
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
125
125
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
126
|
-
`)},yT=0,xi=[];function wT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(yT++)[0],u=L.useState(bv)[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=Ta(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 vT(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):Ta(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&mT(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:bT(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=Ta(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,Ta(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:gT(a)}):null,v?L.createElement(uT,{gapMode:e.gapMode}):null)}function bT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const _T=VO(wv,wT);var xv=L.forwardRef(function(e,r){return L.createElement(as,Dn({},e,{ref:r,sideCar:_T}))});xv.classNames=as.classNames;const ST=xv,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ET=L["useId".toString()]||(()=>{});let xT=0;function OT(e){const[r,n]=L.useState(ET());return po(()=>{e||n(o=>o??String(xT++))},[e]),e||(r?`radix-${r}`:"")}function Ov(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Qr(...e){return L.useCallback(Ov(...e),e)}const Tv=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,wt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,wt({},o,{ref:r}),n)});Tv.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...CT(o,n.props),ref:Ov(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const TT=({children:e})=>L.createElement(L.Fragment,null,e);function Rp(e){return L.isValidElement(e)&&e.type===TT}function CT(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?Tv:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Cv=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=Ca(m.current);_.current=v==="mounted"?y:"none"},[v]),po(()=>{const y=m.current,E=g.current;if(E!==l){const D=_.current,I=Ca(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=Ca(m.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ca(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=Qr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ca(e){return(e==null?void 0:e.animationName)||"none"}Cv.displayName="Presence";let Gu=0;function RT(){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 Rv=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?yo.createPortal(L.createElement(Li.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Zr(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},PT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),m=Zr(a),g=Zr(u),_=L.useRef(null),O=Qr(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:Hr(_.current,{select:!0})},E=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Hr(_.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(Hr(T,{select:C}),document.activeElement!==k)return}((y=Ip(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Hr(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||Hr(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&&Hr(k,{select:!0})):(y.preventDefault(),n&&Hr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,v.paused]);return L.createElement(Li.div,wt({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(!AT(n,{upTo:r}))return n}function AT(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 Hr(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 IT(e){const r=Zr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let kp,Ra=0;function LT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ra--,Ra===0&&(document.body.style.pointerEvents=kp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ra===0&&(kp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ra++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Xr(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 MT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,m=L.useContext(MT),[g,_]=L.useState(null),[,O]=L.useState({}),v=Qr(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=Zr(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=Zr(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 IT(U=>{D===m.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),LT({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,wt({},d,{ref:v,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Xr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Xr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Xr(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 kT(e,r){const n=zr.get(e);return n===void 0?(zr.set(e,{rect:{},callbacks:[r]}),zr.size===1&&(Ol=requestAnimationFrame(Pv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=zr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(zr.delete(e),zr.size===0&&cancelAnimationFrame(Ol))}}let Ol;const zr=new Map;function Pv(){const e=[];zr.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(Pv)}function NT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=kT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Av(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}\``)}]},$T(o,...r)]}function $T(...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 jT({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:FT,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,Ue=_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:Ue,y:se.start+ee},center:{x:Ue,y:se.center},end:{x:Ue,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 FT={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:WT(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 WT(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[Iv,Lv]=Av("Popper"),[UT,Mv]=Iv("Popper"),HT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(UT,{scope:r,anchor:o,onAnchorChange:a},n)},BT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Mv("PopperAnchor",n),l=L.useRef(null),f=Qr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,wt({},a,{ref:f}))}),[zT,d2]=Iv("PopperContent"),qT=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=Mv("PopperContent",n),[_,O]=L.useState(),v=NT(g.anchor),[S,y]=L.useState(null),E=jp(S),[D,I]=L.useState(null),C=jp(D),k=Qr(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}=jT({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(zT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,wt({"data-side":J,"data-align":ee},m,{style:{...m.style,animation:ge?void 0:"none"},ref:k}))))}),GT=HT,KT=BT,YT=qT;function XT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:m}){const g=L.useState(d),[_]=g,O=L.useRef(_),v=Zr(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=Zr(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[VT,p2]=Av("Popover",[Lv]),Ql=Lv(),[JT,So]=VT("Popover"),ZT=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]=XT({prop:o,defaultProp:a,onChange:u});return L.createElement(GT,f,L.createElement(JT,{scope:r,contentId:OT(),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))},QT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=So("PopoverTrigger",n),u=Ql(n),l=Qr(r,a.triggerRef),f=L.createElement(Li.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":kv(a.open)},o,{ref:l,onClick:Xr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(KT,wt({asChild:!0},u),f)}),eC=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=So("PopoverContent",e.__scopePopover);return L.createElement(Cv,{present:n||a.open},a.modal?L.createElement(tC,wt({},o,{ref:r})):L.createElement(nC,wt({},o,{ref:r})))}),tC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=So("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Qr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return UO(g)},[]);const m=o?Rv:L.Fragment;return L.createElement(m,null,L.createElement(ST,{allowPinchZoom:n},L.createElement(Dv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Xr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Xr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),nC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=So("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Rv:L.Fragment;return L.createElement(l,null,L.createElement(Dv,wt({},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()}})))}),Dv=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=So("PopoverContent",n),v=Ql(n);return RT(),L.createElement(PT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(DT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},L.createElement(YT,wt({"data-state":kv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function kv(e){return e?"open":"closed"}const rC=ZT,iC=QT,oC=eC;var Ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ha||{});var Nv={},ss={},ec={},Yu={},Pa={exports:{}},Aa={exports:{}},Be={};/** @license React v16.13.1
|
|
126
|
+
`)},yT=0,xi=[];function wT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(yT++)[0],u=L.useState(bv)[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=Ta(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 vT(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):Ta(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&mT(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:bT(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=Ta(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,Ta(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:gT(a)}):null,v?L.createElement(uT,{gapMode:e.gapMode}):null)}function bT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const _T=VO(wv,wT);var xv=L.forwardRef(function(e,r){return L.createElement(as,Dn({},e,{ref:r,sideCar:_T}))});xv.classNames=as.classNames;const ST=xv,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ET=L["useId".toString()]||(()=>{});let xT=0;function OT(e){const[r,n]=L.useState(ET());return po(()=>{e||n(o=>o??String(xT++))},[e]),e||(r?`radix-${r}`:"")}function Ov(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Qr(...e){return L.useCallback(Ov(...e),e)}const Tv=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,wt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,wt({},o,{ref:r}),n)});Tv.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...CT(o,n.props),ref:Ov(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const TT=({children:e})=>L.createElement(L.Fragment,null,e);function Rp(e){return L.isValidElement(e)&&e.type===TT}function CT(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?Tv:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Cv=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=Ca(m.current);_.current=v==="mounted"?y:"none"},[v]),po(()=>{const y=m.current,E=g.current;if(E!==l){const D=_.current,I=Ca(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=Ca(m.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ca(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=Qr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ca(e){return(e==null?void 0:e.animationName)||"none"}Cv.displayName="Presence";let Gu=0;function RT(){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 Rv=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?yo.createPortal(L.createElement(Li.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Zr(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},PT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),m=Zr(a),g=Zr(u),_=L.useRef(null),O=Qr(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:Hr(_.current,{select:!0})},E=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Hr(_.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(Hr(T,{select:C}),document.activeElement!==k)return}((y=Ip(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Hr(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||Hr(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&&Hr(k,{select:!0})):(y.preventDefault(),n&&Hr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,v.paused]);return L.createElement(Li.div,wt({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(!AT(n,{upTo:r}))return n}function AT(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 Hr(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 IT(e){const r=Zr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let kp,Ra=0;function LT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ra--,Ra===0&&(document.body.style.pointerEvents=kp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ra===0&&(kp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ra++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Xr(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 MT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,m=L.useContext(MT),[g,_]=L.useState(null),[,O]=L.useState({}),v=Qr(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=Zr(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=Zr(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 IT(U=>{D===m.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),LT({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,wt({},d,{ref:v,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Xr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Xr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Xr(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 kT(e,r){const n=zr.get(e);return n===void 0?(zr.set(e,{rect:{},callbacks:[r]}),zr.size===1&&(Ol=requestAnimationFrame(Pv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=zr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(zr.delete(e),zr.size===0&&cancelAnimationFrame(Ol))}}let Ol;const zr=new Map;function Pv(){const e=[];zr.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(Pv)}function NT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=kT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Av(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}\``)}]},$T(o,...r)]}function $T(...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 jT({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:FT,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,Ue=_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:Ue,y:se.start+ee},center:{x:Ue,y:se.center},end:{x:Ue,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 FT={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:WT(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 WT(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[Iv,Lv]=Av("Popper"),[UT,Mv]=Iv("Popper"),HT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(UT,{scope:r,anchor:o,onAnchorChange:a},n)},BT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Mv("PopperAnchor",n),l=L.useRef(null),f=Qr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,wt({},a,{ref:f}))}),[zT,p2]=Iv("PopperContent"),qT=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=Mv("PopperContent",n),[_,O]=L.useState(),v=NT(g.anchor),[S,y]=L.useState(null),E=jp(S),[D,I]=L.useState(null),C=jp(D),k=Qr(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}=jT({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(zT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,wt({"data-side":J,"data-align":ee},m,{style:{...m.style,animation:ge?void 0:"none"},ref:k}))))}),GT=HT,KT=BT,YT=qT;function XT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:m}){const g=L.useState(d),[_]=g,O=L.useRef(_),v=Zr(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=Zr(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[VT,h2]=Av("Popover",[Lv]),Ql=Lv(),[JT,So]=VT("Popover"),ZT=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]=XT({prop:o,defaultProp:a,onChange:u});return L.createElement(GT,f,L.createElement(JT,{scope:r,contentId:OT(),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))},QT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=So("PopoverTrigger",n),u=Ql(n),l=Qr(r,a.triggerRef),f=L.createElement(Li.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":kv(a.open)},o,{ref:l,onClick:Xr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(KT,wt({asChild:!0},u),f)}),eC=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=So("PopoverContent",e.__scopePopover);return L.createElement(Cv,{present:n||a.open},a.modal?L.createElement(tC,wt({},o,{ref:r})):L.createElement(nC,wt({},o,{ref:r})))}),tC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=So("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Qr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return UO(g)},[]);const m=o?Rv:L.Fragment;return L.createElement(m,null,L.createElement(ST,{allowPinchZoom:n},L.createElement(Dv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Xr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Xr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),nC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=So("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Rv:L.Fragment;return L.createElement(l,null,L.createElement(Dv,wt({},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()}})))}),Dv=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=So("PopoverContent",n),v=Ql(n);return RT(),L.createElement(PT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(DT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},L.createElement(YT,wt({"data-state":kv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function kv(e){return e?"open":"closed"}const rC=ZT,iC=QT,oC=eC;var Ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ha||{});var Nv={},ss={},ec={},Yu={},Pa={exports:{}},Aa={exports:{}},Be={};/** @license React v16.13.1
|
|
127
127
|
* react-is.production.min.js
|
|
128
128
|
*
|
|
129
129
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -201,6 +201,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
201
201
|
`)+K+`return __p
|
|
202
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 l_(t){return He(t).toLowerCase()}function c_(t){return He(t).toUpperCase()}function f_(t,i,s){if(t=He(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 d_(t,i,s){if(t=He(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 p_(t,i,s){if(t=He(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 h_(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=He(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,He(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 v_(t){return t=He(t),t&&Ar.test(t)?t.replace(ri,zg):t}var m_=vi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Wf("toUpperCase");function jd(t,i,s){return t=He(t),i=s?n:i,i===n?Fg(t)?Kg(t):Ag(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)}}),g_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function y_(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 w_(t){return z0(cn(t,_))}function bu(t){return function(){return t}}function b_(t,i){return t==null||t!==t?i:t}var __=Hf(),S_=Hf(!0);function zt(t){return t}function _u(t){return yf(typeof t=="function"?t:cn(t,_))}function E_(t){return bf(cn(t,_))}function x_(t,i){return _f(t,cn(i,_))}var O_=Ae(function(t,i){return function(s){return Yi(s,t,i)}}),T_=Ae(function(t,i){return function(s){return Yi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(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 C_(){return _t._===this&&(_t._=Qg),this}function Eu(){}function R_(t){return t=Re(t),Ae(function(i){return Sf(i,t)})}var P_=eu(et),A_=eu(Hc),I_=eu(Os);function Wd(t){return su(t)?Ts(Mn(t)):sy(t)}function L_(t){return function(i){return t==null?n:jr(t,i)}}var M_=zf(),D_=zf(!0);function xu(){return[]}function Ou(){return!1}function k_(){return{}}function N_(){return""}function $_(){return!0}function j_(t,i){if(t=Re(t),t<1||t>Ue)return[];var s=X,c=Ct(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function F_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(ad(He(t)))}function W_(t){var i=++Jg;return He(t)+i}var U_=oa(function(t,i){return t+i},0),H_=tu("ceil"),B_=oa(function(t,i){return t/i},1),z_=tu("floor");function q_(t){return t&&t.length?Zo(t,zt,Ws):n}function G_(t,i){return t&&t.length?Zo(t,he(i,2),Ws):n}function K_(t){return qc(t,zt)}function Y_(t,i){return qc(t,he(i,2))}function X_(t){return t&&t.length?Zo(t,zt,zs):n}function V_(t,i){return t&&t.length?Zo(t,he(i,2),zs):n}var J_=oa(function(t,i){return t*i},1),Z_=tu("round"),Q_=oa(function(t,i){return t-i},0);function eS(t){return t&&t.length?Rs(t,zt):0}function tS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=Ew,w.ary=gd,w.assign=cb,w.assignIn=Id,w.assignInWith=ya,w.assignWith=fb,w.at=db,w.before=yd,w.bind=pu,w.bindAll=g_,w.bindKey=wd,w.castArray=kw,w.chain=hd,w.chunk=zy,w.compact=qy,w.concat=Gy,w.cond=y_,w.conforms=w_,w.constant=bu,w.countBy=ew,w.create=pb,w.curry=bd,w.curryRight=_d,w.debounce=Sd,w.defaults=hb,w.defaultsDeep=vb,w.defer=xw,w.delay=Ow,w.difference=Ky,w.differenceBy=Yy,w.differenceWith=Xy,w.drop=Vy,w.dropRight=Jy,w.dropRightWhile=Zy,w.dropWhile=Qy,w.fill=e1,w.filter=nw,w.flatMap=ow,w.flatMapDeep=aw,w.flatMapDepth=sw,w.flatten=cd,w.flattenDeep=t1,w.flattenDepth=n1,w.flip=Tw,w.flow=__,w.flowRight=S_,w.fromPairs=r1,w.functions=Sb,w.functionsIn=Eb,w.groupBy=uw,w.initial=o1,w.intersection=a1,w.intersectionBy=s1,w.intersectionWith=u1,w.invert=Ob,w.invertBy=Tb,w.invokeMap=cw,w.iteratee=_u,w.keyBy=fw,w.keys=gt,w.keysIn=Bt,w.map=da,w.mapKeys=Rb,w.mapValues=Pb,w.matches=E_,w.matchesProperty=x_,w.memoize=ha,w.merge=Ab,w.mergeWith=Ld,w.method=O_,w.methodOf=T_,w.mixin=Su,w.negate=va,w.nthArg=R_,w.omit=Ib,w.omitBy=Lb,w.once=Cw,w.orderBy=dw,w.over=P_,w.overArgs=Rw,w.overEvery=A_,w.overSome=I_,w.partial=hu,w.partialRight=Ed,w.partition=pw,w.pick=Mb,w.pickBy=Md,w.property=Wd,w.propertyOf=L_,w.pull=d1,w.pullAll=dd,w.pullAllBy=p1,w.pullAllWith=h1,w.pullAt=v1,w.range=M_,w.rangeRight=D_,w.rearg=Pw,w.reject=mw,w.remove=m1,w.rest=Aw,w.reverse=fu,w.sampleSize=yw,w.set=kb,w.setWith=Nb,w.shuffle=ww,w.slice=g1,w.sortBy=Sw,w.sortedUniq=x1,w.sortedUniqBy=O1,w.split=o_,w.spread=Iw,w.tail=T1,w.take=C1,w.takeRight=R1,w.takeRightWhile=P1,w.takeWhile=A1,w.tap=q1,w.throttle=Lw,w.thru=fa,w.toArray=Rd,w.toPairs=Dd,w.toPairsIn=kd,w.toPath=F_,w.toPlainObject=Ad,w.transform=$b,w.unary=Mw,w.union=I1,w.unionBy=L1,w.unionWith=M1,w.uniq=D1,w.uniqBy=k1,w.uniqWith=N1,w.unset=jb,w.unzip=du,w.unzipWith=pd,w.update=Fb,w.updateWith=Wb,w.values=yi,w.valuesIn=Ub,w.without=$1,w.words=jd,w.wrap=Dw,w.xor=j1,w.xorBy=F1,w.xorWith=W1,w.zip=U1,w.zipObject=H1,w.zipObjectDeep=B1,w.zipWith=z1,w.entries=Dd,w.entriesIn=kd,w.extend=Id,w.extendWith=ya,Su(w,w),w.add=U_,w.attempt=Fd,w.camelCase=qb,w.capitalize=Nd,w.ceil=H_,w.clamp=Hb,w.clone=Nw,w.cloneDeep=jw,w.cloneDeepWith=Fw,w.cloneWith=$w,w.conformsTo=Ww,w.deburr=$d,w.defaultTo=b_,w.divide=B_,w.endsWith=Gb,w.eq=En,w.escape=Kb,w.escapeRegExp=Yb,w.every=tw,w.find=rw,w.findIndex=ud,w.findKey=mb,w.findLast=iw,w.findLastIndex=ld,w.findLastKey=gb,w.floor=z_,w.forEach=vd,w.forEachRight=md,w.forIn=yb,w.forInRight=wb,w.forOwn=bb,w.forOwnRight=_b,w.get=gu,w.gt=Uw,w.gte=Hw,w.has=xb,w.hasIn=yu,w.head=fd,w.identity=zt,w.includes=lw,w.indexOf=i1,w.inRange=Bb,w.invoke=Cb,w.isArguments=Ur,w.isArray=Te,w.isArrayBuffer=Bw,w.isArrayLike=Ht,w.isArrayLikeObject=ct,w.isBoolean=zw,w.isBuffer=pr,w.isDate=qw,w.isElement=Gw,w.isEmpty=Kw,w.isEqual=Yw,w.isEqualWith=Xw,w.isError=vu,w.isFinite=Vw,w.isFunction=Xn,w.isInteger=xd,w.isLength=ma,w.isMap=Od,w.isMatch=Jw,w.isMatchWith=Zw,w.isNaN=Qw,w.isNative=eb,w.isNil=nb,w.isNull=tb,w.isNumber=Td,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=eo,w.isRegExp=mu,w.isSafeInteger=rb,w.isSet=Cd,w.isString=ga,w.isSymbol=Zt,w.isTypedArray=gi,w.isUndefined=ib,w.isWeakMap=ob,w.isWeakSet=ab,w.join=l1,w.kebabCase=Xb,w.last=dn,w.lastIndexOf=c1,w.lowerCase=Vb,w.lowerFirst=Jb,w.lt=sb,w.lte=ub,w.max=q_,w.maxBy=G_,w.mean=K_,w.meanBy=Y_,w.min=X_,w.minBy=V_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=k_,w.stubString=N_,w.stubTrue=$_,w.multiply=J_,w.nth=f1,w.noConflict=C_,w.noop=Eu,w.now=pa,w.pad=Zb,w.padEnd=Qb,w.padStart=e_,w.parseInt=t_,w.random=zb,w.reduce=hw,w.reduceRight=vw,w.repeat=n_,w.replace=r_,w.result=Db,w.round=Z_,w.runInContext=A,w.sample=gw,w.size=bw,w.snakeCase=i_,w.some=_w,w.sortedIndex=y1,w.sortedIndexBy=w1,w.sortedIndexOf=b1,w.sortedLastIndex=_1,w.sortedLastIndexBy=S1,w.sortedLastIndexOf=E1,w.startCase=a_,w.startsWith=s_,w.subtract=Q_,w.sum=eS,w.sumBy=tS,w.template=u_,w.times=j_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Pd,w.toLower=l_,w.toNumber=pn,w.toSafeInteger=lb,w.toString=He,w.toUpper=c_,w.trim=f_,w.trimEnd=d_,w.trimStart=p_,w.truncate=h_,w.unescape=v_,w.uniqueId=W_,w.upperCase=m_,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__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(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(va(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:fa,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=$o[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[ia(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=v0,ke.prototype.reverse=m0,ke.prototype.value=g0,w.prototype.at=G1,w.prototype.chain=K1,w.prototype.commit=Y1,w.prototype.next=X1,w.prototype.plant=J1,w.prototype.reverse=Z1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=Q1,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=V1),w},li=Yg();Mr?((Mr.exports=li)._=li,_s._=li):_t._=li}).call(qr)})(es,es.exports);var yt=es.exports;const Ml={FdSave:PE,FdWarningDanger:Kl,FdInfoCircle:TE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Vr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Vr||{}),Oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Oi||{});const im={[Vr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Vr.DANGER]:{icon:"red-500",button:"primary-dark"},[Vr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Vr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=im[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:Ot("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},aP=({name:e,color:r=Vr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${im[r].icon}`;return $.jsx(o,{className:Ot(n,a)})},sP=({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=yt.merge(yt.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=yt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return yo.createPortal($.jsx(Qa,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:Ot("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(Qa.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(aP,{name:o,color:u})}):null,$.jsx(uP,{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:yt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(nm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(lP,{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"))},uP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,lP=e=>e.warnings?$.jsx(Qa,{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(Qa.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:Ot({"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 cP(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 om(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 am(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 fP(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},xt={16:!1,18:!1,17:!1,91:!1},st={};for(var ka=1;ka<20;ka++)ho["f".concat(ka)]=111+ka;var Ve=[],ch=!1,sm="all",um=[],Po=function(r){return ho[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},dP=function(r){return Object.keys(ho).find(function(n){return ho[n]===r})},pP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function lm(e){sm=e||"all"}function vo(){return sm||"all"}function hP(){return Ve.slice(0)}function vP(){return Ve.map(function(e){return dP(e)||pP(e)||String.fromCharCode(e)})}function mP(){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 Po(f)})})})}),e}function gP(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 yP(e){return typeof e=="string"&&(e=Po(e)),Ve.indexOf(e)!==-1}function wP(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&&lm(r||"all")}function bP(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 xt){xt[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function _P(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=am(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Po(_);if(st[O]){o||(o=vo());var v=g>1?om(Un,m):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&fP(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 xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[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 xt){xt[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[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),xt[17]=!0,xt[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(Po(_[v]));O.sort().join("")===Ve.sort().join("")&&fh(e,m,l,r)}}}}function SP(e){return um.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=am(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=om(Un,e)),e=e[e.length-1],e=e==="*"?"*":Po(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"&&!SP(l)&&window&&(um.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),bP(O)},_))}function EP(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:vP,setScope:lm,getScope:vo,deleteScope:wP,getPressedKeyCodes:hP,getAllKeyCodes:mP,isPressed:yP,filter:gP,trigger:EP,unbind:_P,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 xP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=xP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function OP(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 TP=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 CP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function RP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function PP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function AP(e){const[r,n]=N.useState(e),o=(u,l)=>{n(f=>({...f,features:{...f.features,[u]:{enabled:l}}}))},a=N.useCallback((...u)=>u.every(l=>{var f;return(f=r.features[l])==null?void 0:f.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const cm=N.createContext(""),IP=e=>$.jsx(cm.Provider,{value:e.value,children:e.children}),LP=()=>{const e=N.useContext(cm);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${yt.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 fm(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=fm(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
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function kl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var hs=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([],Ya(u)),Ya(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}(),dm=hs.EMPTY;function pm(e){return e instanceof hs||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function ph(e){tr(e)?e():e.unsubscribe()}var hm={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],Ya(n))):setTimeout.apply(void 0,fo([e,r],Ya(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 Ba(e){e()}var vm=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,pm(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}(hs),$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){Na(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Na(o)}else Na(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Na(n)}},e}(),$l=function(e){os(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&&hm.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}(vm);function Na(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 Ba(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??hm.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 vm||zP(e)&&pm(e)}var GP=fm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ni=function(e){os(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;Ba(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;Ba(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;Ba(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?dm:(this.currentObservers=null,f.push(n),new hs(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){os(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:dm},r}(ni),mm=(e=>(e.RELOAD="reload",e))(mm||{}),gm=(e=>(e.RENAME="rename",e))(gm||{});const KP=new ni,YP=new ni,XP=new ni;var ym=(e=>(e.SAVE_ALL="save-all",e))(ym||{});const VP=new ni;var wm=(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))(wm||{});const JP=new ni;var bm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(bm||{});const ZP=new ni,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 _m(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{_m(e)}catch(r){return r.message}}function eA(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!yt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!yt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function vs(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.REPORTS="report",e))(pc||{});const br={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),_r=(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))(_r||{}),hc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hc||{});const Sm="roles.json",Em="qodlyApp.json",tA="model.4DModel";function xm(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===br.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===br.CLASSES):return Cn.CLASS;case e===Sm:return Cn.ROLES;case e===Em:return Cn.SETTINGS;default:return Cn.TEXT}}function nA(e,r=!1){switch(e){case br.REPORTS:case"report":return"QoDoc";case br.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case br.CLASSES:case br.METHODS:return r?"4qs":"4dm";default:return""}}function rA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Om{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 Tm(){const e=new Om;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Cm=yt.curry((e,r,n)=>e&&yt.get(n,e)===r),iA=yt.curry((e,r,n)=>yt.get(n,e)!==r),oA=yt.curry((e,r)=>yt.get(r,"id")!==e),aA=yt.curry((e,r)=>yt.get(r,"id")===e),sA=yt.curry((e,r)=>yt.get(r,"path")===e);function uA(e="id",r,n){return n.findIndex(Cm(e,r))!==-1}function lA(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Rm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function cA(e){return e.type==="object"}function Pm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Am(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Rm(e)}function fA(e){return Pm(e)||Am(e)}function dA(e){return e.applyTo==="dataStore"}function pA(e){return e.applyTo==="dataClass"}function hA(e){return e.applyTo==="entity"}function vA(e){return e.applyTo==="entityCollection"}function mA(e){return e.type==="entity"}function gA(e){return e.type==="entitysel"}function Im(e){return e.dataType==="array"}function Lm(e){return e.dataType==="object"}function Mm(e){return e.type==="scalar"}function yA(e){return Im(e)||Lm(e)||Mm(e)}const wA=e=>e!=null&&e.type==="entity",bA=e=>e.type==="entitysel",_A=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",SA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",EA=e=>e.type==="scalar"&&e.dataType==="date";function xA(){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||{}),Dm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Dm||{}),vc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(vc||{});const OA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function TA(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 km(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 CA(e,r,n=!1){const o=yt.isString(r)?r:km(r);if(!n&&Nm(e))return e;const a=$m(e);return`//%attributes = ${o}\r
|
|
205
|
-
${a}`}function Nm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function $m(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const RA=()=>uv.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Ao="/rest/$designer-ext",go="/$shared";function PA(...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 We(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 AA(e){return We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IA(e){return We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const jm=()=>{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 LA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await We(vt,{method:"POST",body:JSON.stringify({verb:_r.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),jm()}}async function Fm(e){return await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function MA(...e){return(await Promise.all(e.map(o=>Fm({root:o,verb:_r.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function DA(e){return We(`/rest/$getWebForm/${e}`,{method:"GET"})}function kA(e){return We(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)?vs(r.content):r.content}))}function NA(e){return e.type==="folder"?We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function $A(e){return e.type==="folder"?(await We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function jA(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function FA(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function WA(e){return(await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function UA(...e){return await We(vt,{method:"POST",body:JSON.stringify({verb:_r.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function HA(e){const r=await We("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function BA(){return await We("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function zA({name:e,path:r="",root:n="root",asText:o=!1}){return We(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}function yh(e){return typeof e=="string"?JSON.parse(e):e}async function qA(){try{const[e,r]=await Promise.allSettled([We(`${go}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}),We(`${go}/shared_doc_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})]),n=e.status==="fulfilled"?yh(e.value):{},o=r.status==="fulfilled"?yh(r.value):{};return{webform:n,report:o}}catch{return{webform:{},report:{}}}}async function GA(){try{const e=await We(`${go}/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 KA(){try{const e=await We(`${go}/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 YA(){try{return await We("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function XA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const VA=Tm(),JA=async(e,r)=>{const n={verb:_r.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e.webform},o={verb:_r.SET_FILE_CONTENT,asText:!1,name:"shared_doc_datasources.json",path:"",root:"shared",content:e.report};return VA(async()=>{await We(vt,{method:"POST",body:JSON.stringify(r==="webform"?n:o),headers:new Headers({"Content-Type":"application/json"})})}),e},Wm=async e=>{const r=await We(vt,{method:"POST",body:JSON.stringify({...e,verb:_r.SET_FILE_CONTENT,root:pc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=xm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},ZA=async e=>await Wm({name:"crafted_components.json",path:br.WEBFORMS,content:e});function QA(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function n2(e){return We(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)?vs(r.content):r.content})}function r2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function i2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function o2(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 a2(e){const r=i2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=o2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function s2(e,r){const o=e.split(".").pop();try{const a=await We(vt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=vs(a.content);const{params:u,result:l}=a2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Um=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Um||{});function u2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Hm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Hm||{}),Bm=(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))(Bm||{}),zm=(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))(zm||{});const l2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},c2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=oP;exports.ControlledSwitch=nm;exports.DATASOURCE_THEMES=l2;exports.DatasourcesActions=gm;exports.DebuggerActions=bm;exports.DesignerRequestVerb=_r;exports.Dialog=_E;exports.DialogBody=Mh;exports.EActivity=Um;exports.EDITOR=c2;exports.EIDENTIFIERS=Bm;exports.ERROR_CODES=zm;exports.EWebFormStyleClassScope=Hm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=Cn;exports.FolderRootPath=br;exports.FolderRootType=pc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Dm;exports.IPublishedRestScope=vc;exports.IdentityProvider=IP;exports.Incase=pO;exports.IndentLines=lv;exports.LogoSVG=rm;exports.LspActions=wm;exports.MAX_FILE_NAME_LENGTH=fc;exports.MODEL_TAB_PATH=tA;exports.Modal=sP;exports.ModalCloseReason=Oi;exports.ModalColor=Vr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=Om;exports.NameError=dc;exports.Overlay=Lh;exports.Portal=_h;exports.PublishOptions=OA;exports.ROLES_TAB_PATH=Sm;exports.RemoteDebuggerMode=hc;exports.SETTINGS_TAB_PATH=Em;exports.SHARED_API_PREFIX=go;exports.Switcher=cv;exports.TabEventsActions=ym;exports.Tip=sR;exports.TipsProvider=oR;exports.Toast=Mx;exports.Tooltip=rP;exports.Tree=dO;exports.TreeIcon=rv;exports.TreeNode=Jl;exports.WebformActions=mm;exports._isArrayDatasource=_A;exports._isObjectDatasource=SA;exports.addAttributesToContent=CA;exports.addFolder=jA;exports.by=Cm;exports.byId=aA;exports.byPath=sA;exports.checkUpdates=AA;exports.createFolder=QA;exports.datasourcesSubject=KP;exports.debuggerSubject=ZP;exports.dropFile=$A;exports.dropFolder=WA;exports.exists=uA;exports.extractWebformName=rA;exports.generateUUID=RA;exports.getAppSettings=LA;exports.getCatalog=BA;exports.getDatasourceId=lA;exports.getDefaultAppSettings=jm;exports.getFile=kA;exports.getFileContent=zA;exports.getFileExtentionFromType=nA;exports.getFilesInfo=UA;exports.getFolder=Fm;exports.getFolders=MA;exports.getFunctionContent=s2;exports.getMonacoTheme=XA;exports.getNodeInfo=n2;exports.getSavedConditions=KA;exports.getSharedCSS=GA;exports.getSharedDatasources=qA;exports.getTypeFromExtension=xm;exports.getUserPrivileges=YA;exports.getWebForm=DA;exports.hasAttributesString=Nm;exports.http=We;exports.installUpdates=IA;exports.isArrayDatasource=Im;exports.isDataClassMethod=pA;exports.isDataStoreMethod=dA;exports.isDateDatasource=EA;exports.isEntity=wA;exports.isEntityDatasource=mA;exports.isEntityMethod=hA;exports.isEntitySelection=bA;exports.isEntitySelectionDatasource=gA;exports.isEntitySelectionMethod=vA;exports.isObjectAttribute=cA;exports.isObjectDatasource=Lm;exports.isRelatedAttribute=fA;exports.isRelatedEntitiesAttribute=Pm;exports.isRelatedEntityAttribute=Am;exports.isScalarDatasource=Mm;exports.isSimpleAttribute=Rm;exports.isSimpleDatasource=yA;exports.loadDS=xA;exports.log=u2;exports.login=HA;exports.lspSubject=JP;exports.moveItem=t2;exports.outBy=iA;exports.outById=oA;exports.parseAttributes=TA;exports.queue=Tm;exports.removeAttributesString=$m;exports.removeItem=e2;exports.renameFile=NA;exports.renameFolder=FA;exports.sanitizeContent=vs;exports.saveContent=r2;exports.setCraftedComponents=ZA;exports.setFileContent=Wm;exports.setSharedSources=JA;exports.stringifyAttributes=km;exports.tabEventsSubject=VP;exports.toastSubject=XP;exports.transformDates=PA;exports.useDidMountEffect=cP;exports.useDoubleClick=kP;exports.useFeatureFlags=AP;exports.useForwardedRef=PP;exports.useHotkeys=OP;exports.useIdentity=LP;exports.useOutsideClick=TP;exports.usePrevious=CP;exports.useStateObject=MP;exports.useStateRef=RP;exports.useTip=zv;exports.validateName=_m;exports.validateServerSide=QP;exports.validateValue=eA;exports.webformSubject=YP;
|
|
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 hs=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([],Ya(u)),Ya(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}(),dm=hs.EMPTY;function pm(e){return e instanceof hs||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function ph(e){tr(e)?e():e.unsubscribe()}var hm={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],Ya(n))):setTimeout.apply(void 0,fo([e,r],Ya(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 Ba(e){e()}var vm=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,pm(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}(hs),$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){Na(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Na(o)}else Na(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Na(n)}},e}(),$l=function(e){os(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&&hm.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}(vm);function Na(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 Ba(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??hm.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 vm||zP(e)&&pm(e)}var GP=fm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ni=function(e){os(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;Ba(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;Ba(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;Ba(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?dm:(this.currentObservers=null,f.push(n),new hs(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){os(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:dm},r}(ni),mm=(e=>(e.RELOAD="reload",e))(mm||{}),gm=(e=>(e.RENAME="rename",e))(gm||{});const KP=new ni,YP=new ni,XP=new ni;var ym=(e=>(e.SAVE_ALL="save-all",e))(ym||{});const VP=new ni;var wm=(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))(wm||{});const JP=new ni;var bm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(bm||{});const ZP=new ni,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 _m(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{_m(e)}catch(r){return r.message}}function eA(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!yt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!yt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function vs(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.REPORTS="report",e))(pc||{});const br={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),_r=(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))(_r||{}),hc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hc||{});const Sm="roles.json",Em="qodlyApp.json",tA="model.4DModel";function xm(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===br.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===br.CLASSES):return Cn.CLASS;case e===Sm:return Cn.ROLES;case e===Em:return Cn.SETTINGS;default:return Cn.TEXT}}function nA(e,r=!1){switch(e){case br.REPORTS:case"report":return"QoDoc";case br.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case br.CLASSES:case br.METHODS:return r?"4qs":"4dm";default:return""}}function rA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Om{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 Tm(){const e=new Om;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Cm=yt.curry((e,r,n)=>e&&yt.get(n,e)===r),iA=yt.curry((e,r,n)=>yt.get(n,e)!==r),oA=yt.curry((e,r)=>yt.get(r,"id")!==e),aA=yt.curry((e,r)=>yt.get(r,"id")===e),sA=yt.curry((e,r)=>yt.get(r,"path")===e);function uA(e="id",r,n){return n.findIndex(Cm(e,r))!==-1}function lA(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Rm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function cA(e){return e.type==="object"}function Pm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Am(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Rm(e)}function fA(e){return Pm(e)||Am(e)}function dA(e){return e.applyTo==="dataStore"}function pA(e){return e.applyTo==="dataClass"}function hA(e){return e.applyTo==="entity"}function vA(e){return e.applyTo==="entityCollection"}function mA(e){return e.type==="entity"}function gA(e){return e.type==="entitysel"}function Im(e){return e.dataType==="array"}function Lm(e){return e.dataType==="object"}function Mm(e){return e.type==="scalar"}function yA(e){return Im(e)||Lm(e)||Mm(e)}const wA=e=>e!=null&&e.type==="entity",bA=e=>e.type==="entitysel",_A=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",SA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",EA=e=>e.type==="scalar"&&e.dataType==="date";function xA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}function OA(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var mo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(mo||{}),Dm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Dm||{}),vc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(vc||{});const TA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function CA(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 km(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 RA(e,r,n=!1){const o=yt.isString(r)?r:km(r);if(!n&&Nm(e))return e;const a=$m(e);return`//%attributes = ${o}\r
|
|
205
|
+
${a}`}function Nm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function $m(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const PA=()=>uv.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Ao="/rest/$designer-ext",go="/$shared";function AA(...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 We(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 IA(e){return We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LA(e){return We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const jm=()=>{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 MA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await We(vt,{method:"POST",body:JSON.stringify({verb:_r.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),jm()}}async function Fm(e){return await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function DA(...e){return(await Promise.all(e.map(o=>Fm({root:o,verb:_r.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function kA(e){return We(`/rest/$getWebForm/${e}`,{method:"GET"})}function NA(e){return We(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)?vs(r.content):r.content}))}function $A(e){return e.type==="folder"?We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jA(e){return e.type==="folder"?(await We(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function FA(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function WA(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){return(await We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function HA(...e){return await We(vt,{method:"POST",body:JSON.stringify({verb:_r.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function BA(e){const r=await We("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function zA(){return await We("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function qA({name:e,path:r="",root:n="root",asText:o=!1}){return We(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}function yh(e){return typeof e=="string"?JSON.parse(e):e}async function GA(){try{const[e,r]=await Promise.allSettled([We(`${go}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}),We(`${go}/shared_doc_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})]),n=e.status==="fulfilled"?yh(e.value):{},o=r.status==="fulfilled"?yh(r.value):{};return{webform:n,report:o}}catch{return{webform:{},report:{}}}}async function KA(){try{const e=await We(`${go}/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 YA(){try{const e=await We(`${go}/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 XA(){try{return await We("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function VA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const JA=Tm(),ZA=async(e,r)=>{const n={verb:_r.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e.webform},o={verb:_r.SET_FILE_CONTENT,asText:!1,name:"shared_doc_datasources.json",path:"",root:"shared",content:e.report};return JA(async()=>{await We(vt,{method:"POST",body:JSON.stringify(r==="webform"?n:o),headers:new Headers({"Content-Type":"application/json"})})}),e},Wm=async e=>{const r=await We(vt,{method:"POST",body:JSON.stringify({...e,verb:_r.SET_FILE_CONTENT,root:pc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=xm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},QA=async e=>await Wm({name:"crafted_components.json",path:br.WEBFORMS,content:e});function e2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function n2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function r2(e){return We(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)?vs(r.content):r.content})}function i2(e){return We(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function o2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function a2(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 s2(e){const r=o2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=a2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function u2(e,r){const o=e.split(".").pop();try{const a=await We(vt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=vs(a.content);const{params:u,result:l}=s2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Um=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Um||{});function l2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Hm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Hm||{}),Bm=(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))(Bm||{}),zm=(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))(zm||{});const c2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},f2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=oP;exports.ControlledSwitch=nm;exports.DATASOURCE_THEMES=c2;exports.DatasourcesActions=gm;exports.DebuggerActions=bm;exports.DesignerRequestVerb=_r;exports.Dialog=_E;exports.DialogBody=Mh;exports.EActivity=Um;exports.EDITOR=f2;exports.EIDENTIFIERS=Bm;exports.ERROR_CODES=zm;exports.EWebFormStyleClassScope=Hm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=Cn;exports.FolderRootPath=br;exports.FolderRootType=pc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Dm;exports.IPublishedRestScope=vc;exports.IdentityProvider=IP;exports.Incase=pO;exports.IndentLines=lv;exports.LogoSVG=rm;exports.LspActions=wm;exports.MAX_FILE_NAME_LENGTH=fc;exports.MODEL_TAB_PATH=tA;exports.Modal=sP;exports.ModalCloseReason=Oi;exports.ModalColor=Vr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=Om;exports.NameError=dc;exports.Overlay=Lh;exports.Portal=_h;exports.PublishOptions=TA;exports.ROLES_TAB_PATH=Sm;exports.RemoteDebuggerMode=hc;exports.SETTINGS_TAB_PATH=Em;exports.SHARED_API_PREFIX=go;exports.Switcher=cv;exports.TabEventsActions=ym;exports.Tip=sR;exports.TipsProvider=oR;exports.Toast=Mx;exports.Tooltip=rP;exports.Tree=dO;exports.TreeIcon=rv;exports.TreeNode=Jl;exports.WebformActions=mm;exports._isArrayDatasource=_A;exports._isObjectDatasource=SA;exports.addAttributesToContent=RA;exports.addFolder=FA;exports.by=Cm;exports.byId=aA;exports.byPath=sA;exports.checkUpdates=IA;exports.createFolder=e2;exports.datasourcesSubject=KP;exports.debuggerSubject=ZP;exports.dropFile=jA;exports.dropFolder=UA;exports.exists=uA;exports.extractWebformName=rA;exports.generateUUID=PA;exports.getAppSettings=MA;exports.getCatalog=zA;exports.getDatasourceId=lA;exports.getDefaultAppSettings=jm;exports.getFile=NA;exports.getFileContent=qA;exports.getFileExtentionFromType=nA;exports.getFilesInfo=HA;exports.getFolder=Fm;exports.getFolders=DA;exports.getFunctionContent=u2;exports.getMonacoTheme=VA;exports.getNodeInfo=r2;exports.getSavedConditions=YA;exports.getSharedCSS=KA;exports.getSharedDatasources=GA;exports.getTypeFromExtension=xm;exports.getUserPrivileges=XA;exports.getWebForm=kA;exports.hasAttributesString=Nm;exports.http=We;exports.installUpdates=LA;exports.isArrayDatasource=Im;exports.isDataClassMethod=pA;exports.isDataStoreMethod=dA;exports.isDateDatasource=EA;exports.isEntity=wA;exports.isEntityDatasource=mA;exports.isEntityMethod=hA;exports.isEntitySelection=bA;exports.isEntitySelectionDatasource=gA;exports.isEntitySelectionMethod=vA;exports.isObjectAttribute=cA;exports.isObjectDatasource=Lm;exports.isRelatedAttribute=fA;exports.isRelatedEntitiesAttribute=Pm;exports.isRelatedEntityAttribute=Am;exports.isScalarDatasource=Mm;exports.isSimpleAttribute=Rm;exports.isSimpleDatasource=yA;exports.loadDS=xA;exports.loadI18n=OA;exports.log=l2;exports.login=BA;exports.lspSubject=JP;exports.moveItem=n2;exports.outBy=iA;exports.outById=oA;exports.parseAttributes=CA;exports.queue=Tm;exports.removeAttributesString=$m;exports.removeItem=t2;exports.renameFile=$A;exports.renameFolder=WA;exports.sanitizeContent=vs;exports.saveContent=i2;exports.setCraftedComponents=QA;exports.setFileContent=Wm;exports.setSharedSources=ZA;exports.stringifyAttributes=km;exports.tabEventsSubject=VP;exports.toastSubject=XP;exports.transformDates=AA;exports.useDidMountEffect=cP;exports.useDoubleClick=kP;exports.useFeatureFlags=AP;exports.useForwardedRef=PP;exports.useHotkeys=OP;exports.useIdentity=LP;exports.useOutsideClick=TP;exports.usePrevious=CP;exports.useStateObject=MP;exports.useStateRef=RP;exports.useTip=zv;exports.validateName=_m;exports.validateServerSide=QP;exports.validateValue=eA;exports.webformSubject=YP;
|
|
206
206
|
//# sourceMappingURL=index.cjs.js.map
|