ados-rcm 1.1.350 → 1.1.351
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 +1 -1
- package/dist/index.es.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -346,7 +346,7 @@ Error generating stack: `+d.message+`
|
|
346
346
|
`,"user"),t.index+=2):(this.quill.insertText(t.index,`
|
347
347
|
`,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Iu={},Wb;function IP(){if(Wb)return Iu;Wb=1;var r=Fs;if(process.env.NODE_ENV==="production")Iu.createRoot=r.createRoot,Iu.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Iu.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Iu.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Iu}var LP=IP();const Vb=il(LP);class MP{constructor(e,t){it(this,"DEFAULTS",{maxRowCount:-1});it(this,"quill");it(this,"options");it(this,"position",null);it(this,"table");it(this,"selectedCell",null);it(this,"menuRoot",null);it(this,"helperTextElement",null);it(this,"scrollTimeout",null);it(this,"SCROLL_DEBOUNCE_TIME",80);it(this,"lastSelectedCellRef",null);it(this,"boundDocClickHandler",this.hideMenu.bind(this));it(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));it(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));it(this,"boundCopyHandler",this.copyHandler.bind(this));it(this,"boundScrollHandler",this.handleScroll.bind(this));it(this,"boundPasteHandler",this.pasteHandler.bind(this));it(this,"menuItems",[]);it(this,"positionCache",new Map);it(this,"POSITION_CACHE_LIFETIME",1e3);it(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Os.renderToString(v.jsx(Br,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Os.renderToString(v.jsx(Br,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Os.renderToString(v.jsx(Br,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=Wn["ql-tableui-helper"];const e=document.createElement("span");e.className=qe.clsx("Caption1",Wn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=Wn["ql-tableui-helper__icon"],t.innerHTML=Os.renderToString(v.jsx(Br,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=I.memo(({item:u,index:h})=>v.jsxs("div",{className:Wn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:Wn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:Wn["ql-tableui-options__item-text"],children:u.title})]},h)),l=()=>v.jsx("div",{className:Wn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,h)=>v.jsx(i,{item:u,index:h},h))});try{Vb.createRoot?(this.reactRoot=Vb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Fs.render(v.jsx(l,{}),this.menuRoot)}catch{Fs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const h=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+h.width>t&&(m=e.right-h.width+window.scrollX),g+h.height>n+window.scrollY&&(g=e.top-h.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Fs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const h=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-h.top,height:g.height,left:g.left-h.left,right:g.right-h.left,top:g.top-h.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let h=i.top-l.top-20;i.top<l.top&&(h=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${h}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const lS=[1,2,3,!1,4],cS=$e.import("ui/icons");cS.table=Os.renderToString(v.jsx(Br,{icon:"Table",strokeWidth:2.5}));cS.divider=Os.renderToString(v.jsx(Br,{icon:"Minus",strokeWidth:2.5}));const DP=$e.import("blots/block/embed");class rm extends DP{static create(e){const t=super.create(e);return t.style.border="var(--AEditor_Addon_Primary_border)",t.style.borderBottom="none",t.style.transition="border var(--Transition)",t}}it(rm,"blotName","divider"),it(rm,"tagName","hr");$e.register({"modules/imageCompress":ZD,"modules/resize":JD,"modules/tablePicker":RP,"modules/tableUI":MP,"formats/header":FP(lS),"formats/divider":rm},!0);const OP=["bold","italic","underline","strike","blockquote","table","size","header","color","indent","list","align","image","link","video","divider"],PP=[[{header:lS}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],NP=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:h,tabIndex:g,autoFocus:m,editorProps:M,wrapProps:T,helperText:C,label:_,labelProps:S,wrapType:D,style:A,minHeight:b="100%",maxHeight:k,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",readOnly:G,...Y}=r,ue=I.useMemo(()=>n==="ReadOnly"||G,[n,G]),ee=I.useMemo(()=>O?20:0,[O]),[fe,N]=I.useState(q==="Med"?40:50),re=I.useMemo(()=>ue?0:fe,[ue,fe]),[K,ne]=I.useMemo(()=>[20,6],[]),ie=I.useMemo(()=>u?K+ne:0,[u,K,ne]),[ce,me]=I.useState(O),[ae,be]=I.useState(!1),[ge,xe]=I.useState(!1),Le=I.useRef(null),Pe=I.useRef(0),We=I.useRef(0),Te=I.useCallback(et=>{if(!ae||!O)return;const Se=et.clientY-We.current,Ze=Math.min(H,Math.max(O,Pe.current+Se));me(Ze)},[O,ae,H]),ot=I.useCallback(()=>{be(!1),xe(!1),window.removeEventListener("mousemove",Te),window.removeEventListener("mouseup",ot)},[Te]),pt=I.useCallback(et=>{if(!ce)return;if(et.detail===2){me(O);return}be(!0),xe(!0),Pe.current=ce,We.current=et.clientY;const Se=at=>{if(!O)return;const gt=at.clientY-We.current,Tt=Math.min(H,Math.max(O,Pe.current+gt));me(Tt)},Ze=()=>{be(!1),xe(!1),window.removeEventListener("mousemove",Se),window.removeEventListener("mouseup",Ze)};window.addEventListener("mousemove",Se),window.addEventListener("mouseup",Ze)},[O,ce,H]),Ke=I.useMemo(()=>{if(O){if(ce)switch(n){case"ReadOnly":return ce;case"Raw":return ce+ie;default:return ce+re+ie}}else return b},[O,ce,n,re,ie,b]),Ye=I.useMemo(()=>{if(!(!k||k<=re+ie))switch(n){case"ReadOnly":return k;case"Raw":return k-ie;default:return k-re-ie}},[n,re,ie,k]),Oe=I.useMemo(()=>jP(t)?"Error":n,[t,n]),[ke,Ee]=pn(l,""),[Ne,Re]=pn(u,!1),[Je,ft]=I.useState(()=>{if(!ke)return new $t;try{const et=document.createElement("div");return et.innerHTML=ke,new $e(et,{readOnly:!0}).getContents()}catch(et){return console.warn("Error parsing HTML content:",et),new $t}}),xt=I.useMemo(()=>Math.floor(5e4*.68234)*3,[]),St=I.useCallback(et=>et.ops?et.ops.reduce((Se,Ze)=>{if(typeof Ze.insert=="string"){const at=Ze.insert.replace(/\n/g,"");return Se+at.split("").reduce((gt,Tt)=>gt+(Tt.charCodeAt(0)<=127?1:3),0)}return typeof Ze.insert=="object"&&Ze.insert.image?Se+Ze.insert.image.length:Se},0):0,[]),mt=I.useMemo(()=>({clipboard:{matchVisual:!1},imageCompress:{quality:.5},...!ue&&{resize:{locale:{altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,floatLeft:hn.AEditor.floatLeft,floatRight:hn.AEditor.floatRight,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore}},table:!0,tablePicker:!0,tableUI:!0,toolbar:{container:PP,handlers:{divider:function(){const et=this.quill,Se=et.getSelection(!0),Ze=et.getModule("table"),at=Ze&&(()=>{try{return!!Ze.getTable(Se)[0]}catch{return!1}})();at||et.insertText(Se.index,`
|
348
348
|
`,$e.sources.USER);const gt=at?0:1;et.insertEmbed(Se.index+gt,"divider",!0,$e.sources.USER),et.setSelection(Se.index+gt+1,0,$e.sources.SILENT)}}}}}),[ue]),It=I.useCallback((et,Se,Ze,at)=>{var _t;if(!Ee||Ze!=="user")return;const gt=at.getContents(),Tt=at.getHTML(),je=((_t=gt.ops)==null?void 0:_t.length)===1&>.ops[0].insert===`
|
349
|
-
`;if(Re){const Mt=St(gt);Re(Mt>xt)}Ee(je?"":Tt),ft(gt)},[St,xt,Re,Ee]),Ct=I.useMemo(()=>q==="Med"?8:12.5,[q]),ct=I.useCallback(et=>{if(!et)return;const Se=et.getEditor();if(!Se)return;const Ze=[],at={input:nr=>{const Zt=nr.target;Zt.value=Zt.value.replace(/[^0-9]/g,"");const he=parseInt(Zt.value);he>100&&(Zt.value="100"),he<1&&(Zt.value="1")},keyDown:nr=>{if(nr.key!=="Delete"&&nr.key!=="Backspace")return;const Zt=document.querySelector("#image-resizer");if(!Zt)return;const he=Zt.getBoundingClientRect(),te=document.querySelectorAll(".ql-editor img"),Fe=Array.from(te).find(Xe=>{const Lt=Xe.getBoundingClientRect();return Math.abs(Lt.left-he.left)<5&&Math.abs(Lt.top-he.top)<5});if(Fe){Zt.style.display="none";const Xe=$e.find(Fe),Lt=Se.getIndex(Xe);Xe.remove(),Se.setSelection(Lt,0,$e.sources.USER)}},formatExpand:nr=>{const Zt=Se.getFormat();nr.forEach(he=>{if(Zt[he]){const te=Zt[he],Fe=`.ql-${he}`,Xe=document.querySelector(`${Fe} .ql-picker-label`),Lt=document.querySelectorAll(`${Fe} .ql-picker-item`),vt=Array.from(Lt).find(wt=>wt.getAttribute("data-value")===te);vt&&(vt.classList.add("ql-selected"),Xe==null||Xe.classList.add("ql-active"))}})},resizeToolbar:nr=>{requestAnimationFrame(()=>{for(const Zt of nr)N(Zt.contentRect.height+Ct*2)})}},gt=Se.root,Tt=document.querySelector(".ql-snow.ql-toolbar"),je=document.querySelector("#image-resizer .input-wrapper input"),_t=new ResizeObserver(at.resizeToolbar),Mt=["header","color"],vr=[];return gt==null||gt.addEventListener("keydown",at.keyDown),je==null||je.addEventListener("input",at.input),_t.observe(Tt),Mt.forEach(nr=>{const Zt=document.querySelector(`.ql-${nr} .ql-picker-label`);Zt&&(Zt.addEventListener("click",()=>at.formatExpand(Mt)),vr.push(Zt))}),Ze.push(()=>{gt==null||gt.removeEventListener("keydown",at.keyDown),je==null||je.removeEventListener("input",at.input),_t.disconnect(),vr.forEach(nr=>nr.removeEventListener("click",()=>at.formatExpand(Mt)))}),()=>Ze.forEach(nr=>nr())},[Ct]),ut=I.useCallback(et=>{i&&(typeof i=="function"?i(et):i.current=et),et&&ct(et)},[i,ct]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,minHeight:"fit-content"}},children:v.jsxs(Ur,{...Y,className:qe.clsx(Y.className,Wn.AEditorContainer),style:{...A,height:Ke},children:[v.jsx(bh,{...M,ref:ut,className:qe.clsx(M==null?void 0:M.className,Wn.AEditor,Wn[Oe]),formats:OP,modules:mt,placeholder:h,readOnly:ue,theme:"snow",value:Je,style:{"--icon-size":`${q==="Med"?18:24}px`,"--toolbar-padding":`${Ct}px`,"--content-height":ce?`${ce-ee}px`:"100%","--max-height":k?`${Ye}px`:void 0,"--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`},onChange:It}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:Le,className:Wn.Resizer,style:{height:ee,bottom:u&&!ue?ie:0},onMouseDown:pt}),ge&&v.jsx("div",{className:qe.clsx(Wn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!ue?ie+2:2},children:`${Math.round(ce)}px`})]}),u&&!ue&&v.jsx("div",{className:qe.clsx(Wn.LimitContainer,"NoSelect"),style:{marginTop:ne,minHeight:K},children:v.jsxs(Xl,{className:Wn.Limit,children:["(",v.jsx("span",{className:Ne?Wn.Error:void 0,children:nm(St(Je))})," / ",nm(xt),")"]})})]})})};function jP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function FP(r){const e=$e.import("formats/header");return e.whitelist=r,e}const nm=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`};function eh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=eh(t.children,e);if(n)return n}}function sd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&sd(t.children,e)}function uS(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>t.push(e(n,i))),t}function fS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!fS(t.children,e))return!1}return!0}function BP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function qP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function HP(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,e))}),l=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),h=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(h,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),h=i.children.findIndex(g=>n(g,t));return u===void 0||h===void 0?null:(i.children.splice(u,1),i.children.splice(h,0,e),i.children=[...i.children],[...r])}return null}function zP(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function $P(r,e,t){Array.isArray(r)||(r=[r]);const n=uS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const h=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(M=>t(M,u))});h&&l.push(h)}return i}const Qa={find:eh,forEach:sd,map:uS,every:fS,filter:BP,length:qP,replace:HP,descendants:zP,ancestors:$P},UP="_AWrap_f5le3_1",WP="_AContainer_f5le3_10",VP="_ATree_f5le3_18",GP="_ATreeBody_f5le3_30",ZP="_CoverBorder_f5le3_36",YP="_InsertBorder_f5le3_45",KP="_ATreeHeader_f5le3_76",XP="_ATreeBodyHeader_f5le3_82",JP="_ATreeBodyHeaderResources_f5le3_92",QP="_ATreeItem_f5le3_98",eN="_IsSelectUsed_f5le3_114",tN="_IsSelected_f5le3_117",rN="_IsSearchSelected_f5le3_122",nN="_IsHovered_f5le3_133",iN="_CheckBox_f5le3_137",oN="_Indents_f5le3_149",sN="_ExpandIcon_f5le3_156",aN="_Content_f5le3_168",lN="_RightSticky_f5le3_177",cN="_SearchInputWrap_f5le3_188",uN="_SearchInput_f5le3_188",fN="_RightAddon_f5le3_200",dN="_RightAddonIcon_f5le3_211",hN="_Loader_f5le3_218",fn={AWrap:UP,AContainer:WP,ATree:VP,ATreeBody:GP,CoverBorder:ZP,InsertBorder:YP,ATreeHeader:KP,ATreeBodyHeader:XP,ATreeBodyHeaderResources:JP,ATreeItem:QP,IsSelectUsed:eN,IsSelected:tN,IsSearchSelected:rN,IsHovered:nN,CheckBox:iN,Indents:oN,ExpandIcon:sN,Content:aN,RightSticky:lN,SearchInputWrap:cN,SearchInput:uN,RightAddon:fN,RightAddonIcon:dN,Loader:hN},pN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemStyle:ne,searchItemClassName:ie,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[ge,xe]=I.useMemo(()=>m,[m]),[Le,Pe]=I.useMemo(()=>M,[M]),We=I.useMemo(()=>i?i(t):!1,[i,t]),Te=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),ot=I.useMemo(()=>ae.some(je=>e(je,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":ot?"expanded":"collapsed",[me,ot]),Ke=I.useMemo(()=>{const je=D[pt];return am.includes(je)?v.jsx(Br,{style:{width:A,height:A},icon:je}):je},[D,A,pt]),Ye=I.useCallback(je=>{!be||pt==="noChild"||(be(ot?ae.filter(_t=>!e(_t,t)):[...ae,t]),je.stopPropagation())},[be,ae,ot,t,e,pt]),Oe=I.useMemo(()=>ge.some(je=>e(je,t)),[ge,e,t]),ke=I.useCallback(()=>{!xe||Te||(xe(b?Oe?ge.filter(je=>!e(je,t)):[...ge,t]:[t]),Le&&Pe&&Le.items.some(je=>e(je,t))&&Pe({...Le,item:t}))},[b,Te,Oe,Le,Pe,xe,e,ge,t]),Ee=I.useMemo(()=>Le==null?void 0:Le.items.some(je=>e(je,t)),[Le,e,t]),Ne=I.useMemo(()=>Ee&&(Le==null?void 0:Le.item)&&e(Le.item,t),[Ee,Le,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Ne&&Re.current&&N.current){const{top:je,bottom:_t}=Re.current.getBoundingClientRect(),{top:Mt,bottom:vr}=N.current.getBoundingClientRect();(je<Mt||_t>vr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[N,Ne]);const[Je,ft]=I.useState(!1),xt=I.useCallback(()=>!Te&&ft(!0),[Te]),St=I.useCallback(()=>!Te&&ft(!1),[Te]),mt=I.useMemo(()=>Qa.map(t,je=>je).filter(je=>!(n!=null&&n(je))&&!(i!=null&&i(je))),[n,i,t]),It=I.useMemo(()=>!S||!b?!1:Oe&&mt.some(je=>ge.some(_t=>e(je,_t)))&&mt.some(je=>!ge.some(_t=>e(je,_t))),[S,b,Oe,mt,e,ge]),Ct=I.useMemo(()=>S?b?mt.every(je=>ge.some(_t=>e(je,_t))):ge.some(je=>e(je,t)):!1,[S,b,mt,t,e,ge]),ct=I.useCallback(()=>{if(!(!xe||Te))if(b)if(Oe){const je=ge.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&mt.some(Mt=>e(Mt,_t)));je.length>0&&xe(ge.filter(_t=>!je.some(Mt=>e(_t,Mt))))}else{const je=mt.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&!ge.some(Mt=>e(Mt,_t)));je.length>0&&xe([...ge,...je])}else xe([t])},[Te,n,i,b,xe,e,Oe,ge,mt,t]),ut=I.useCallback(je=>{Te||ct(),je.stopPropagation()},[Te,ct]),et=I.useMemo(()=>{if(!S||!b||Te)return"";if(Oe){const _t=ge.filter(Mt=>!(i!=null&&i(Mt))&&!(n!=null&&n(Mt))&&mt.some(vr=>e(vr,Mt)));if(_t.length>0)return fe["deselect n"](_t.length)}const je=mt.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&!ge.some(Mt=>e(Mt,_t)));return fe["select n"](je.length)},[n,i,fe,Te,S,b,Oe,mt,e,ge]),Se=I.useMemo(()=>kr.getContent(ee,r),[ee,r]),Ze=I.useMemo(()=>kr.getContent(re,r),[r,re]),at=I.useMemo(()=>kr.getContent(K,r),[r,K]),gt=I.useMemo(()=>kr.getContent(ie,r),[r,ie]),Tt=I.useMemo(()=>kr.getContent(ne,r),[r,ne]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:qe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Te&&(Je||O)&&fn.IsHovered,Ee&&fn.IsSearched,Ne&&(gt||fn.IsSearchSelected),!We&&fn.IsSelectUsed,"NoSelect",at),style:{...Ze,...Ne&&Tt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:je=>C==null?void 0:C(je,t),onDragEnd:je=>_==null?void 0:_(je,t),onClick:ke,abaseRef:Re,isDisabled:Te,onMouseOver:je=>q==null?void 0:q(je,t),onMouseLeave:je=>G==null?void 0:G(je,t),children:[S&&v.jsx(Uu,{style:{visibility:Te||We?"hidden":"visible",zIndex:Te||We?0:2},className:fn.CheckBox,useCheck:[+Ct,ct],onClick:ut,isIndeterminate:It,onMouseOver:xt,onMouseOut:St,tooltip:et,isDisabled:Te}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((je,_t)=>{const Mt=_t===u.length-1;return v.jsx(I2,{value:je,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(mN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:Mt}).expanded:v.jsx(gN,{iconWidth:A,isLast:Mt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(vN,{iconWidth:A})}},_t)})}),Ke&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ye,children:Ke}),v.jsx("div",{className:qe.clsx(fn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Je||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemClassName:gt,searchItemStyle:ne,height:ce})}),Se&&v.jsx("div",{className:fn.RightSticky,children:Se})]}),ot&&(me==null?void 0:me.map((je,_t)=>v.jsx(ue,{isEqual:e,item:je,selectDisabled:n,selectUnused:i,indents:[...u.map(Mt=>Mt==="IsLast"?"Collapsed":Mt),_t===me.length-1?"IsLast":"Expanded"],extIndents:h,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Je||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemClassName:gt,searchItemStyle:ne,height:ce},_t)))]})},gN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),mN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),vN=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),yN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:h,isLoading:g,resources:m,maxLength:M,autoFocus:T}=r,C=I.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),_=I.useCallback(D=>{n(D)},[n]),S=I.useMemo(()=>h||g?-1:void 0,[h,g]);return v.jsx(Jl,{className:fn.SearchInput,wrapProps:{className:fn.SearchInputWrap},isDisabled:h,tabIndex:S,useValue:[(t==null?void 0:t.keyword)??"",_],onKeyDown:C,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(bN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},bN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,h=I.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(S=>t.item&&e(S,t.item))+1,[t,e]),g=I.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=I.useMemo(()=>h<2,[h]),M=I.useMemo(()=>h>=g,[h,g]),T=I.useCallback(S=>{S.stopPropagation(),!m&&n()},[n,m]),C=I.useCallback(S=>{S.stopPropagation(),!M&&i()},[i,M]),_=I.useCallback(S=>{S.stopPropagation(),l()},[l]);return v.jsx("div",{className:qe.clsx(fn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[h,"/",g,v.jsx(Ur,{onClick:T,isDisabled:m,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},_N=r=>{var Wr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:h,showCheckbox:g,iconWidth:m=24,icons:M={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:T,isSelectMulti:C=!1,noSearch:_=!1,isDraggable:S,noSyncSearchSelect:D=!1,actionRef:A,placeholder:b,searchPredicate:k=SN,isDisabled:O,isLoading:H,ContentRenderer:q=xN,TreeItemRenderer:G=pN,RightStickyAddon:Y,TopRightAddon:ue,TreeTopAddon:ee,resources:fe,maxLength:N,autoFocus:re,TreeItemStyle:K,TreeItemClassName:ne,OverflowPadding:ie,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:ge=40,...xe}=r,Le=I.useMemo(()=>({...hn.ATree,...fe}),[fe]),Pe=I.useCallback((st,Rt)=>e!==void 0?Array.isArray(e)?e.every(bt=>el.isEqual(st[bt],Rt[bt])):el.isEqual(st[e],Rt[e]):el.isEqual(st,Rt),[e]),We=I.useRef(null),[Te,ot]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Te,st=>st),[Te]),[Ke,Ye]=pn(l,[]),[Oe,ke]=pn(u,[]),[Ee,Ne]=pn(h,void 0),Re=I.useCallback(st=>{if(O||!Ye||Ke.some(Qe=>Pe(Qe,st)))return;const Rt=[];let bt=st;for(;bt;){const Qe=bt;Ke.find(Nt=>Pe(Nt,Qe))||Rt.push(Qe),bt=pt.find(Nt=>{var Q;return(Q=Nt.children)==null?void 0:Q.some(He=>Pe(He,Qe))})}Ye([...Ke,...Rt])},[Ke,O,Pe,Ye,pt]),Je=I.useCallback(()=>{!Ye||O||Ye([...pt])},[pt,O,Ye]),ft=I.useCallback(()=>{!Ye||O||Ye([])},[Ye,O]),xt=I.useCallback(st=>{!ke||O||n!=null&&n(st)||(ke([st]),Re(st))},[ke,O,n,Re]),St=I.useCallback(st=>{if(!Ne||O)return;if(!st||_){Ne(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Te,Qe=>k(st,Qe));let bt;if(Rt.find(Qe=>(Ee==null?void 0:Ee.item)&&Pe(Qe,Ee.item))?bt=Ee==null?void 0:Ee.item:Rt.length>0&&(bt=Rt[0]),Ne({keyword:st,items:Rt,item:bt}),bt&&Re(bt),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Nt=>bt&&Pe(Nt,bt));ke(Qe?[Qe]:[])}},[Te,O,Pe,k,Ne,ke,Re,D,_,C,Ee]),mt=I.useRef(!1);I.useEffect(()=>{mt.current=!0},[Te]),I.useEffect(()=>{Ee&&mt.current&&(St(Ee.keyword),mt.current=!1)},[St,Ee]);const It=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))-1;st<0||(Ne({...Ee,item:Ee.items[st]}),Re(Ee.items[st]),D||xt(Ee.items[st]))},[Ee,Re,Ne,O,xt,Pe,D]),Ct=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))+1;st>=Ee.items.length||(Ne({...Ee,item:Ee.items[st]}),Re(Ee.items[st]),D||xt(Ee.items[st]))},[Ee,Re,O,Ne,xt,Pe,D]),ct=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(bt=>Ee.item&&Pe(bt,Ee.item));if(!D||n!=null&&n(Ee.items[st])){Ct();return}if(Oe.some(bt=>Ee.item&&Pe(bt,Ee.item))){let bt=st+1;const Qe=Ee.items[bt];if(bt>=Ee.items.length)return;Ne({...Ee,item:Qe}),xt(Qe)}else xt(Ee.items[st])},[Ee,Ne,O,Oe,D,Ct,Pe,xt,n]),[ut,et]=I.useState(!1),Se=I.useCallback(()=>et(!0),[]),Ze=I.useCallback(()=>et(!1),[]),at=I.useMemo(()=>n?Qa.map(Te,st=>st).filter(st=>!n(st)):t?Qa.map(Te,st=>st).filter(st=>!t(st)):Qa.map(Te,st=>st),[n,t,Te]),gt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&at.length>Oe.length,[g,C,Oe,at]),Tt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&at.length===Oe.length,[g,C,Oe,at]),je=I.useCallback(()=>{if(!ke||!C||O)return;const st=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&at.some(bt=>Pe(bt,Rt)));if(st.length>0)ke(Oe.filter(Rt=>!st.some(bt=>Pe(Rt,bt))));else{const Rt=at.filter(bt=>!(n!=null&&n(bt))&&!(t!=null&&t(bt))&&!Oe.some(Qe=>Pe(Qe,bt)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,at,Pe]),_t=I.useMemo(()=>{if(!g||!C||O)return"";const st=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&at.some(bt=>Pe(bt,Rt)));if(st.length>0)return Le["deselect n"](st.length);{const Rt=at.filter(bt=>!(n!=null&&n(bt))&&!(t!=null&&t(bt))&&!Oe.some(Qe=>Pe(Qe,bt)));return Le["select n"](Rt.length)}},[n,t,O,Le,g,C,at,Oe,Pe]),[Mt,vr]=I.useState(null),[nr,Zt]=I.useState(null),he=I.useCallback(st=>{!S||O||vr(st)},[O,S]),te=I.useCallback((st,Rt)=>{if(!S||O||!Mt||(st.preventDefault(),st.stopPropagation(),Zt(Rt),!ot))return;const bt=Qa.replace(Te,Mt,Rt,Pe);bt&&ot(bt)},[S,Te,Mt,O,ot,Pe]),Fe=I.useCallback(()=>{if(!S||O||!Mt||!nr||!ot||Pe(Mt,nr))return;const st=Qa.replace(Te,Mt,nr,Pe);st&&(ot(st),vr(null))},[S,ot,Te,Mt,nr,Pe,O]);I.useEffect(()=>{var st;g||(st=We.current)==null||st.scrollTo(0,0)},[g,We]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:Je,collapseAll:ft})},[A,Je,ft]),I.useEffect(()=>{if(!t||!ke)return;const st=Oe.filter(Rt=>!t(Rt));Oe.length!==st.length&&ke(st)},[t,Oe,ke]),I.useEffect(()=>{if(!n||!ke)return;const st=Oe.filter(Rt=>!n(Rt));Oe.length!==st.length&&ke(st)},[n,Oe,ke]),I.useEffect(()=>{Ne&&Ne(void 0)},[Ne]);const[Xe,Lt]=I.useState(!1);I.useEffect(()=>{Lt(st=>!st)},[Te]);const[vt,wt]=I.useState(null),Gt=I.useCallback((st,Rt)=>{O||(st.stopPropagation(),st.preventDefault(),wt(Rt))},[O]),Ft=I.useCallback((st,Rt)=>{vt===null||O||Pe(Rt,vt)&&(st.stopPropagation(),st.preventDefault(),wt(null))},[vt,O,Pe]),sr=I.useRef(null),[dr,Rr]=I.useState(!1),[ur,xr]=I.useState((Wr=sr.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Ke.length<0)return;const st=We.current,Rt=sr.current,bt=st.clientHeight<Rt.clientHeight;xr(bt?Rt.scrollHeight:st.clientHeight),Rr(bt)},[Ke]),v.jsxs(Ur,{...xe,isDisabled:O,className:qe.clsx(xe.className,fn.AWrap),children:[(!_||ue)&&v.jsxs(si,{className:fn.ATreeHeader,children:[!_&&v.jsx(yN,{isEqual:Pe,searchResult:Ee,initSearch:St,searchUp:It,searchDown:Ct,searchEnter:ct,isLoading:H,isDisabled:O,resources:Le,maxLength:N,autoFocus:re}),!_&&ue&&v.jsx(mn,{w:8}),ue]}),(!_||ue||g&&C||S)&&v.jsx(hm,{isLoading:H&&Te.length!==0}),(g&&C||S)&&v.jsxs("div",{className:qe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Tt,()=>je()],isIndeterminate:gt,onMouseOver:Se,onMouseOut:Ze,isDisabled:O,tooltip:_t}),Le.Items,v.jsx(Yc,{}),v.jsxs("div",{className:qe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:dr?8:0},children:[v.jsx("span",{children:g&&Le["*Click row for single select"]}),v.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),v.jsx("div",{ref:We,className:qe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:ie&&dr?8:0},children:[v.jsxs("div",{ref:sr,className:fn.ATreeBody,children:[Te.length===0?H?v.jsx(CN,{text:Le["Loading Contents..."]}):b:ee,Te.map((st,Rt)=>v.jsx(G,{isEqual:Pe,indents:[],extIndents:T,item:st,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Ke,Ye],useSelect:[Oe,ke],useSearch:[Ee,Ne],onDragStart:he,onDragOver:te,onDragEnd:Fe,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&ut,ContentRenderer:q,TreeItemRenderer:G,RightStickyAddon:Y,resources:Le,containerRef:We,TreeItemStyle:K,TreeItemClassName:ne,hoverdItem:vt,onMouseOver:Gt,onMouseLeave:Ft,searchItemClassName:ae,searchItemStyle:be,height:ge},`${Rt}${Xe}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:dr?ur:"100%"}})]})]})})]})},xN=r=>{const{item:e}=r,t={};return Xt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function SN(r,e){return Xt.some(e,(t,n)=>{var i;return(i=Xt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const CN=r=>{const{text:e}=r;return v.jsxs(si,{className:qe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Br,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(z2,{text:e})]})};var $g,Gb;function Qu(){return Gb||(Gb=1,$g=TypeError),$g}const wN={},AN=Object.freeze(Object.defineProperty({__proto__:null,default:wN},Symbol.toStringTag,{value:"Module"})),TN=t4(AN);var Ug,Zb;function _h(){if(Zb)return Ug;Zb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,h=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,M=typeof WeakSet=="function"&&WeakSet.prototype,T=M?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype,_=C?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,D=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,k=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,G=RegExp.prototype.test,Y=Array.prototype.concat,ue=Array.prototype.join,ee=Array.prototype.slice,fe=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(he){return he.__proto__}:null);function ae(he,te){if(he===1/0||he===-1/0||he!==he||he&&he>-1e3&&he<1e3||G.call(/e/,te))return te;var Fe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof he=="number"){var Xe=he<0?-fe(-he):fe(he);if(Xe!==he){var Lt=String(Xe),vt=k.call(te,Lt.length+1);return O.call(Lt,Fe,"$&_")+"."+O.call(O.call(vt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,Fe,"$&_")}var be=TN,ge=be.custom,xe=Re(ge)?ge:null,Le={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function he(te,Fe,Xe,Lt){var vt=Fe||{};if(xt(vt,"quoteStyle")&&!xt(Le,vt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(vt,"maxStringLength")&&(typeof vt.maxStringLength=="number"?vt.maxStringLength<0&&vt.maxStringLength!==1/0:vt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var wt=xt(vt,"customInspect")?vt.customInspect:!0;if(typeof wt!="boolean"&&wt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(vt,"indent")&&vt.indent!==null&&vt.indent!==" "&&!(parseInt(vt.indent,10)===vt.indent&&vt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(vt,"numericSeparator")&&typeof vt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=vt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return at(te,vt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var Ft=String(te);return Gt?ae(te,Ft):Ft}if(typeof te=="bigint"){var sr=String(te)+"n";return Gt?ae(te,sr):sr}var dr=typeof vt.depth>"u"?5:vt.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=dr&&dr>0&&typeof te=="object")return pt(te)?"[Array]":"[Object]";var Rr=vr(vt,Xe);if(typeof Lt>"u")Lt=[];else if(It(Lt,te)>=0)return"[Circular]";function ur(ar,fr,zr){if(fr&&(Lt=ee.call(Lt),Lt.push(fr)),zr){var gr={depth:vt.depth};return xt(vt,"quoteStyle")&&(gr.quoteStyle=vt.quoteStyle),he(ar,gr,Xe+1,Lt)}return he(ar,vt,Xe+1,Lt)}if(typeof te=="function"&&!Ye(te)){var xr=mt(te),Wr=Zt(te,ur);return"[Function"+(xr?": "+xr:" (anonymous)")+"]"+(Wr.length>0?" { "+ue.call(Wr,", ")+" }":"")}if(Re(te)){var st=ne?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(te);return typeof te=="object"&&!ne?Tt(st):st}if(Ze(te)){for(var Rt="<"+q.call(String(te.nodeName)),bt=te.attributes||[],Qe=0;Qe<bt.length;Qe++)Rt+=" "+bt[Qe].name+"="+We(Te(bt[Qe].value),"double",vt);return Rt+=">",te.childNodes&&te.childNodes.length&&(Rt+="..."),Rt+="</"+q.call(String(te.nodeName))+">",Rt}if(pt(te)){if(te.length===0)return"[]";var Nt=Zt(te,ur);return Rr&&!Mt(Nt)?"["+nr(Nt,Rr)+"]":"[ "+ue.call(Nt,", ")+" ]"}if(Oe(te)){var Q=Zt(te,ur);return!("cause"in Error.prototype)&&"cause"in te&&!ce.call(te,"cause")?"{ ["+String(te)+"] "+ue.call(Y.call("[cause]: "+ur(te.cause),Q),", ")+" }":Q.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+ue.call(Q,", ")+" }"}if(typeof te=="object"&&wt){if(xe&&typeof te[xe]=="function"&&be)return be(te,{depth:dr-Xe});if(wt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(Ct(te)){var He=[];return n&&n.call(te,function(ar,fr){He.push(ur(fr,te,!0)+" => "+ur(ar,te))}),_t("Map",t.call(te),He,Rr)}if(et(te)){var ht=[];return h&&h.call(te,function(ar){ht.push(ur(ar,te))}),_t("Set",u.call(te),ht,Rr)}if(ct(te))return je("WeakMap");if(Se(te))return je("WeakSet");if(ut(te))return je("WeakRef");if(Ee(te))return Tt(ur(Number(te)));if(Je(te))return Tt(ur(N.call(te)));if(Ne(te))return Tt(S.call(te));if(ke(te))return Tt(ur(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof yi<"u"&&te===yi)return"{ [object globalThis] }";if(!Ke(te)&&!Ye(te)){var Ot=Zt(te,ur),er=me?me(te)===Object.prototype:te instanceof Object||te.constructor===Object,Yt=te instanceof Object?"":"null prototype",Dt=!er&&ie&&Object(te)===te&&ie in te?k.call(St(te),8,-1):Yt?"Object":"",Kt=er||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",Mr=Kt+(Dt||Yt?"["+ue.call(Y.call([],Dt||[],Yt||[]),": ")+"] ":"");return Ot.length===0?Mr+"{}":Rr?Mr+"{"+nr(Ot,Rr)+"}":Mr+"{ "+ue.call(Ot,", ")+" }"}return String(te)};function We(he,te,Fe){var Xe=Fe.quoteStyle||te,Lt=Le[Xe];return Lt+he+Lt}function Te(he){return O.call(String(he),/"/g,""")}function ot(he){return!ie||!(typeof he=="object"&&(ie in he||typeof he[ie]<"u"))}function pt(he){return St(he)==="[object Array]"&&ot(he)}function Ke(he){return St(he)==="[object Date]"&&ot(he)}function Ye(he){return St(he)==="[object RegExp]"&&ot(he)}function Oe(he){return St(he)==="[object Error]"&&ot(he)}function ke(he){return St(he)==="[object String]"&&ot(he)}function Ee(he){return St(he)==="[object Number]"&&ot(he)}function Ne(he){return St(he)==="[object Boolean]"&&ot(he)}function Re(he){if(ne)return he&&typeof he=="object"&&he instanceof Symbol;if(typeof he=="symbol")return!0;if(!he||typeof he!="object"||!K)return!1;try{return K.call(he),!0}catch{}return!1}function Je(he){if(!he||typeof he!="object"||!N)return!1;try{return N.call(he),!0}catch{}return!1}var ft=Object.prototype.hasOwnProperty||function(he){return he in this};function xt(he,te){return ft.call(he,te)}function St(he){return D.call(he)}function mt(he){if(he.name)return he.name;var te=b.call(A.call(he),/^function\s*([\w$]+)/);return te?te[1]:null}function It(he,te){if(he.indexOf)return he.indexOf(te);for(var Fe=0,Xe=he.length;Fe<Xe;Fe++)if(he[Fe]===te)return Fe;return-1}function Ct(he){if(!t||!he||typeof he!="object")return!1;try{t.call(he);try{u.call(he)}catch{return!0}return he instanceof Map}catch{}return!1}function ct(he){if(!m||!he||typeof he!="object")return!1;try{m.call(he,m);try{T.call(he,T)}catch{return!0}return he instanceof WeakMap}catch{}return!1}function ut(he){if(!_||!he||typeof he!="object")return!1;try{return _.call(he),!0}catch{}return!1}function et(he){if(!u||!he||typeof he!="object")return!1;try{u.call(he);try{t.call(he)}catch{return!0}return he instanceof Set}catch{}return!1}function Se(he){if(!T||!he||typeof he!="object")return!1;try{T.call(he,T);try{m.call(he,m)}catch{return!0}return he instanceof WeakSet}catch{}return!1}function Ze(he){return!he||typeof he!="object"?!1:typeof HTMLElement<"u"&&he instanceof HTMLElement?!0:typeof he.nodeName=="string"&&typeof he.getAttribute=="function"}function at(he,te){if(he.length>te.maxStringLength){var Fe=he.length-te.maxStringLength,Xe="... "+Fe+" more character"+(Fe>1?"s":"");return at(k.call(he,0,te.maxStringLength),te)+Xe}var Lt=Pe[te.quoteStyle||"single"];Lt.lastIndex=0;var vt=O.call(O.call(he,Lt,"\\$1"),/[\x00-\x1f]/g,gt);return We(vt,"single",te)}function gt(he){var te=he.charCodeAt(0),Fe={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return Fe?"\\"+Fe:"\\x"+(te<16?"0":"")+H.call(te.toString(16))}function Tt(he){return"Object("+he+")"}function je(he){return he+" { ? }"}function _t(he,te,Fe,Xe){var Lt=Xe?nr(Fe,Xe):ue.call(Fe,", ");return he+" ("+te+") {"+Lt+"}"}function Mt(he){for(var te=0;te<he.length;te++)if(It(he[te],`
|
349
|
+
`;if(Re){const Mt=St(gt);Re(Mt>xt)}Ee(je?"":Tt),ft(gt)},[St,xt,Re,Ee]),Ct=I.useMemo(()=>q==="Med"?8:12.5,[q]),ct=I.useCallback(et=>{if(!et)return;const Se=et.getEditor();if(!Se)return;const Ze=[],at={input:nr=>{const Zt=nr.target;Zt.value=Zt.value.replace(/[^0-9]/g,"");const he=parseInt(Zt.value);he>100&&(Zt.value="100"),he<1&&(Zt.value="1")},keyDown:nr=>{if(nr.key!=="Delete"&&nr.key!=="Backspace")return;const Zt=document.querySelector("#image-resizer");if(!Zt)return;const he=Zt.getBoundingClientRect(),te=document.querySelectorAll(".ql-editor img"),Fe=Array.from(te).find(Xe=>{const Lt=Xe.getBoundingClientRect();return Math.abs(Lt.left-he.left)<5&&Math.abs(Lt.top-he.top)<5});if(Fe){Zt.style.display="none";const Xe=$e.find(Fe),Lt=Se.getIndex(Xe);Xe.remove(),Se.setSelection(Lt,0,$e.sources.USER)}},formatExpand:nr=>{const Zt=Se.getFormat();nr.forEach(he=>{if(Zt[he]){const te=Zt[he],Fe=`.ql-${he}`,Xe=document.querySelector(`${Fe} .ql-picker-label`),Lt=document.querySelectorAll(`${Fe} .ql-picker-item`),vt=Array.from(Lt).find(wt=>wt.getAttribute("data-value")===te);vt&&(vt.classList.add("ql-selected"),Xe==null||Xe.classList.add("ql-active"))}})},resizeToolbar:nr=>{requestAnimationFrame(()=>{for(const Zt of nr)N(Zt.contentRect.height+Ct*2)})}},gt=Se.root,Tt=document.querySelector(".ql-snow.ql-toolbar"),je=document.querySelector("#image-resizer .input-wrapper input"),_t=new ResizeObserver(at.resizeToolbar),Mt=["header","color"],vr=[];return gt==null||gt.addEventListener("keydown",at.keyDown),je==null||je.addEventListener("input",at.input),_t.observe(Tt),Mt.forEach(nr=>{const Zt=document.querySelector(`.ql-${nr} .ql-picker-label`);Zt&&(Zt.addEventListener("click",()=>at.formatExpand(Mt)),vr.push(Zt))}),Ze.push(()=>{gt==null||gt.removeEventListener("keydown",at.keyDown),je==null||je.removeEventListener("input",at.input),_t.disconnect(),vr.forEach(nr=>nr.removeEventListener("click",()=>at.formatExpand(Mt)))}),()=>Ze.forEach(nr=>nr())},[Ct]),ut=I.useCallback(et=>{i&&(typeof i=="function"?i(et):i.current=et),et&&ct(et)},[i,ct]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,minHeight:"fit-content",height:"100%"}},children:v.jsxs(Ur,{...Y,className:qe.clsx(Y.className,Wn.AEditorContainer),style:{...A,height:Ke},children:[v.jsx(bh,{...M,ref:ut,className:qe.clsx(M==null?void 0:M.className,Wn.AEditor,Wn[Oe]),formats:OP,modules:mt,placeholder:h,readOnly:ue,theme:"snow",value:Je,style:{"--icon-size":`${q==="Med"?18:24}px`,"--toolbar-padding":`${Ct}px`,"--content-height":ce?`${ce-ee}px`:"100%","--max-height":k?`${Ye}px`:void 0,"--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`},onChange:It}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:Le,className:Wn.Resizer,style:{height:ee,bottom:u&&!ue?ie:0},onMouseDown:pt}),ge&&v.jsx("div",{className:qe.clsx(Wn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!ue?ie+2:2},children:`${Math.round(ce)}px`})]}),u&&!ue&&v.jsx("div",{className:qe.clsx(Wn.LimitContainer,"NoSelect"),style:{marginTop:ne,minHeight:K},children:v.jsxs(Xl,{className:Wn.Limit,children:["(",v.jsx("span",{className:Ne?Wn.Error:void 0,children:nm(St(Je))})," / ",nm(xt),")"]})})]})})};function jP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function FP(r){const e=$e.import("formats/header");return e.whitelist=r,e}const nm=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`};function eh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=eh(t.children,e);if(n)return n}}function sd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&sd(t.children,e)}function uS(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>t.push(e(n,i))),t}function fS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!fS(t.children,e))return!1}return!0}function BP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function qP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function HP(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,e))}),l=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),h=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(h,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),h=i.children.findIndex(g=>n(g,t));return u===void 0||h===void 0?null:(i.children.splice(u,1),i.children.splice(h,0,e),i.children=[...i.children],[...r])}return null}function zP(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function $P(r,e,t){Array.isArray(r)||(r=[r]);const n=uS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const h=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(M=>t(M,u))});h&&l.push(h)}return i}const Qa={find:eh,forEach:sd,map:uS,every:fS,filter:BP,length:qP,replace:HP,descendants:zP,ancestors:$P},UP="_AWrap_f5le3_1",WP="_AContainer_f5le3_10",VP="_ATree_f5le3_18",GP="_ATreeBody_f5le3_30",ZP="_CoverBorder_f5le3_36",YP="_InsertBorder_f5le3_45",KP="_ATreeHeader_f5le3_76",XP="_ATreeBodyHeader_f5le3_82",JP="_ATreeBodyHeaderResources_f5le3_92",QP="_ATreeItem_f5le3_98",eN="_IsSelectUsed_f5le3_114",tN="_IsSelected_f5le3_117",rN="_IsSearchSelected_f5le3_122",nN="_IsHovered_f5le3_133",iN="_CheckBox_f5le3_137",oN="_Indents_f5le3_149",sN="_ExpandIcon_f5le3_156",aN="_Content_f5le3_168",lN="_RightSticky_f5le3_177",cN="_SearchInputWrap_f5le3_188",uN="_SearchInput_f5le3_188",fN="_RightAddon_f5le3_200",dN="_RightAddonIcon_f5le3_211",hN="_Loader_f5le3_218",fn={AWrap:UP,AContainer:WP,ATree:VP,ATreeBody:GP,CoverBorder:ZP,InsertBorder:YP,ATreeHeader:KP,ATreeBodyHeader:XP,ATreeBodyHeaderResources:JP,ATreeItem:QP,IsSelectUsed:eN,IsSelected:tN,IsSearchSelected:rN,IsHovered:nN,CheckBox:iN,Indents:oN,ExpandIcon:sN,Content:aN,RightSticky:lN,SearchInputWrap:cN,SearchInput:uN,RightAddon:fN,RightAddonIcon:dN,Loader:hN},pN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemStyle:ne,searchItemClassName:ie,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[ge,xe]=I.useMemo(()=>m,[m]),[Le,Pe]=I.useMemo(()=>M,[M]),We=I.useMemo(()=>i?i(t):!1,[i,t]),Te=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),ot=I.useMemo(()=>ae.some(je=>e(je,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":ot?"expanded":"collapsed",[me,ot]),Ke=I.useMemo(()=>{const je=D[pt];return am.includes(je)?v.jsx(Br,{style:{width:A,height:A},icon:je}):je},[D,A,pt]),Ye=I.useCallback(je=>{!be||pt==="noChild"||(be(ot?ae.filter(_t=>!e(_t,t)):[...ae,t]),je.stopPropagation())},[be,ae,ot,t,e,pt]),Oe=I.useMemo(()=>ge.some(je=>e(je,t)),[ge,e,t]),ke=I.useCallback(()=>{!xe||Te||(xe(b?Oe?ge.filter(je=>!e(je,t)):[...ge,t]:[t]),Le&&Pe&&Le.items.some(je=>e(je,t))&&Pe({...Le,item:t}))},[b,Te,Oe,Le,Pe,xe,e,ge,t]),Ee=I.useMemo(()=>Le==null?void 0:Le.items.some(je=>e(je,t)),[Le,e,t]),Ne=I.useMemo(()=>Ee&&(Le==null?void 0:Le.item)&&e(Le.item,t),[Ee,Le,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Ne&&Re.current&&N.current){const{top:je,bottom:_t}=Re.current.getBoundingClientRect(),{top:Mt,bottom:vr}=N.current.getBoundingClientRect();(je<Mt||_t>vr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[N,Ne]);const[Je,ft]=I.useState(!1),xt=I.useCallback(()=>!Te&&ft(!0),[Te]),St=I.useCallback(()=>!Te&&ft(!1),[Te]),mt=I.useMemo(()=>Qa.map(t,je=>je).filter(je=>!(n!=null&&n(je))&&!(i!=null&&i(je))),[n,i,t]),It=I.useMemo(()=>!S||!b?!1:Oe&&mt.some(je=>ge.some(_t=>e(je,_t)))&&mt.some(je=>!ge.some(_t=>e(je,_t))),[S,b,Oe,mt,e,ge]),Ct=I.useMemo(()=>S?b?mt.every(je=>ge.some(_t=>e(je,_t))):ge.some(je=>e(je,t)):!1,[S,b,mt,t,e,ge]),ct=I.useCallback(()=>{if(!(!xe||Te))if(b)if(Oe){const je=ge.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&mt.some(Mt=>e(Mt,_t)));je.length>0&&xe(ge.filter(_t=>!je.some(Mt=>e(_t,Mt))))}else{const je=mt.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&!ge.some(Mt=>e(Mt,_t)));je.length>0&&xe([...ge,...je])}else xe([t])},[Te,n,i,b,xe,e,Oe,ge,mt,t]),ut=I.useCallback(je=>{Te||ct(),je.stopPropagation()},[Te,ct]),et=I.useMemo(()=>{if(!S||!b||Te)return"";if(Oe){const _t=ge.filter(Mt=>!(i!=null&&i(Mt))&&!(n!=null&&n(Mt))&&mt.some(vr=>e(vr,Mt)));if(_t.length>0)return fe["deselect n"](_t.length)}const je=mt.filter(_t=>!(i!=null&&i(_t))&&!(n!=null&&n(_t))&&!ge.some(Mt=>e(Mt,_t)));return fe["select n"](je.length)},[n,i,fe,Te,S,b,Oe,mt,e,ge]),Se=I.useMemo(()=>kr.getContent(ee,r),[ee,r]),Ze=I.useMemo(()=>kr.getContent(re,r),[r,re]),at=I.useMemo(()=>kr.getContent(K,r),[r,K]),gt=I.useMemo(()=>kr.getContent(ie,r),[r,ie]),Tt=I.useMemo(()=>kr.getContent(ne,r),[r,ne]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:qe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Te&&(Je||O)&&fn.IsHovered,Ee&&fn.IsSearched,Ne&&(gt||fn.IsSearchSelected),!We&&fn.IsSelectUsed,"NoSelect",at),style:{...Ze,...Ne&&Tt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:je=>C==null?void 0:C(je,t),onDragEnd:je=>_==null?void 0:_(je,t),onClick:ke,abaseRef:Re,isDisabled:Te,onMouseOver:je=>q==null?void 0:q(je,t),onMouseLeave:je=>G==null?void 0:G(je,t),children:[S&&v.jsx(Uu,{style:{visibility:Te||We?"hidden":"visible",zIndex:Te||We?0:2},className:fn.CheckBox,useCheck:[+Ct,ct],onClick:ut,isIndeterminate:It,onMouseOver:xt,onMouseOut:St,tooltip:et,isDisabled:Te}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((je,_t)=>{const Mt=_t===u.length-1;return v.jsx(I2,{value:je,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(mN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:Mt}).expanded:v.jsx(gN,{iconWidth:A,isLast:Mt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(vN,{iconWidth:A})}},_t)})}),Ke&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ye,children:Ke}),v.jsx("div",{className:qe.clsx(fn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Je||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemClassName:gt,searchItemStyle:ne,height:ce})}),Se&&v.jsx("div",{className:fn.RightSticky,children:Se})]}),ot&&(me==null?void 0:me.map((je,_t)=>v.jsx(ue,{isEqual:e,item:je,selectDisabled:n,selectUnused:i,indents:[...u.map(Mt=>Mt==="IsLast"?"Collapsed":Mt),_t===me.length-1?"IsLast":"Expanded"],extIndents:h,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(Je||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,TreeItemRenderer:ue,RightStickyAddon:ee,resources:fe,containerRef:N,TreeItemStyle:re,TreeItemClassName:K,searchItemClassName:gt,searchItemStyle:ne,height:ce},_t)))]})},gN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),mN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),vN=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),yN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:h,isLoading:g,resources:m,maxLength:M,autoFocus:T}=r,C=I.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),_=I.useCallback(D=>{n(D)},[n]),S=I.useMemo(()=>h||g?-1:void 0,[h,g]);return v.jsx(Jl,{className:fn.SearchInput,wrapProps:{className:fn.SearchInputWrap},isDisabled:h,tabIndex:S,useValue:[(t==null?void 0:t.keyword)??"",_],onKeyDown:C,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(bN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},bN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,h=I.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(S=>t.item&&e(S,t.item))+1,[t,e]),g=I.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=I.useMemo(()=>h<2,[h]),M=I.useMemo(()=>h>=g,[h,g]),T=I.useCallback(S=>{S.stopPropagation(),!m&&n()},[n,m]),C=I.useCallback(S=>{S.stopPropagation(),!M&&i()},[i,M]),_=I.useCallback(S=>{S.stopPropagation(),l()},[l]);return v.jsx("div",{className:qe.clsx(fn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[h,"/",g,v.jsx(Ur,{onClick:T,isDisabled:m,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},_N=r=>{var Wr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:h,showCheckbox:g,iconWidth:m=24,icons:M={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:T,isSelectMulti:C=!1,noSearch:_=!1,isDraggable:S,noSyncSearchSelect:D=!1,actionRef:A,placeholder:b,searchPredicate:k=SN,isDisabled:O,isLoading:H,ContentRenderer:q=xN,TreeItemRenderer:G=pN,RightStickyAddon:Y,TopRightAddon:ue,TreeTopAddon:ee,resources:fe,maxLength:N,autoFocus:re,TreeItemStyle:K,TreeItemClassName:ne,OverflowPadding:ie,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:ge=40,...xe}=r,Le=I.useMemo(()=>({...hn.ATree,...fe}),[fe]),Pe=I.useCallback((st,Rt)=>e!==void 0?Array.isArray(e)?e.every(bt=>el.isEqual(st[bt],Rt[bt])):el.isEqual(st[e],Rt[e]):el.isEqual(st,Rt),[e]),We=I.useRef(null),[Te,ot]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Te,st=>st),[Te]),[Ke,Ye]=pn(l,[]),[Oe,ke]=pn(u,[]),[Ee,Ne]=pn(h,void 0),Re=I.useCallback(st=>{if(O||!Ye||Ke.some(Qe=>Pe(Qe,st)))return;const Rt=[];let bt=st;for(;bt;){const Qe=bt;Ke.find(Nt=>Pe(Nt,Qe))||Rt.push(Qe),bt=pt.find(Nt=>{var Q;return(Q=Nt.children)==null?void 0:Q.some(He=>Pe(He,Qe))})}Ye([...Ke,...Rt])},[Ke,O,Pe,Ye,pt]),Je=I.useCallback(()=>{!Ye||O||Ye([...pt])},[pt,O,Ye]),ft=I.useCallback(()=>{!Ye||O||Ye([])},[Ye,O]),xt=I.useCallback(st=>{!ke||O||n!=null&&n(st)||(ke([st]),Re(st))},[ke,O,n,Re]),St=I.useCallback(st=>{if(!Ne||O)return;if(!st||_){Ne(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Te,Qe=>k(st,Qe));let bt;if(Rt.find(Qe=>(Ee==null?void 0:Ee.item)&&Pe(Qe,Ee.item))?bt=Ee==null?void 0:Ee.item:Rt.length>0&&(bt=Rt[0]),Ne({keyword:st,items:Rt,item:bt}),bt&&Re(bt),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Nt=>bt&&Pe(Nt,bt));ke(Qe?[Qe]:[])}},[Te,O,Pe,k,Ne,ke,Re,D,_,C,Ee]),mt=I.useRef(!1);I.useEffect(()=>{mt.current=!0},[Te]),I.useEffect(()=>{Ee&&mt.current&&(St(Ee.keyword),mt.current=!1)},[St,Ee]);const It=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))-1;st<0||(Ne({...Ee,item:Ee.items[st]}),Re(Ee.items[st]),D||xt(Ee.items[st]))},[Ee,Re,Ne,O,xt,Pe,D]),Ct=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))+1;st>=Ee.items.length||(Ne({...Ee,item:Ee.items[st]}),Re(Ee.items[st]),D||xt(Ee.items[st]))},[Ee,Re,O,Ne,xt,Pe,D]),ct=I.useCallback(()=>{if(!Ee||!Ne||O)return;let st=Ee.items.findIndex(bt=>Ee.item&&Pe(bt,Ee.item));if(!D||n!=null&&n(Ee.items[st])){Ct();return}if(Oe.some(bt=>Ee.item&&Pe(bt,Ee.item))){let bt=st+1;const Qe=Ee.items[bt];if(bt>=Ee.items.length)return;Ne({...Ee,item:Qe}),xt(Qe)}else xt(Ee.items[st])},[Ee,Ne,O,Oe,D,Ct,Pe,xt,n]),[ut,et]=I.useState(!1),Se=I.useCallback(()=>et(!0),[]),Ze=I.useCallback(()=>et(!1),[]),at=I.useMemo(()=>n?Qa.map(Te,st=>st).filter(st=>!n(st)):t?Qa.map(Te,st=>st).filter(st=>!t(st)):Qa.map(Te,st=>st),[n,t,Te]),gt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&at.length>Oe.length,[g,C,Oe,at]),Tt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&at.length===Oe.length,[g,C,Oe,at]),je=I.useCallback(()=>{if(!ke||!C||O)return;const st=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&at.some(bt=>Pe(bt,Rt)));if(st.length>0)ke(Oe.filter(Rt=>!st.some(bt=>Pe(Rt,bt))));else{const Rt=at.filter(bt=>!(n!=null&&n(bt))&&!(t!=null&&t(bt))&&!Oe.some(Qe=>Pe(Qe,bt)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,at,Pe]),_t=I.useMemo(()=>{if(!g||!C||O)return"";const st=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&at.some(bt=>Pe(bt,Rt)));if(st.length>0)return Le["deselect n"](st.length);{const Rt=at.filter(bt=>!(n!=null&&n(bt))&&!(t!=null&&t(bt))&&!Oe.some(Qe=>Pe(Qe,bt)));return Le["select n"](Rt.length)}},[n,t,O,Le,g,C,at,Oe,Pe]),[Mt,vr]=I.useState(null),[nr,Zt]=I.useState(null),he=I.useCallback(st=>{!S||O||vr(st)},[O,S]),te=I.useCallback((st,Rt)=>{if(!S||O||!Mt||(st.preventDefault(),st.stopPropagation(),Zt(Rt),!ot))return;const bt=Qa.replace(Te,Mt,Rt,Pe);bt&&ot(bt)},[S,Te,Mt,O,ot,Pe]),Fe=I.useCallback(()=>{if(!S||O||!Mt||!nr||!ot||Pe(Mt,nr))return;const st=Qa.replace(Te,Mt,nr,Pe);st&&(ot(st),vr(null))},[S,ot,Te,Mt,nr,Pe,O]);I.useEffect(()=>{var st;g||(st=We.current)==null||st.scrollTo(0,0)},[g,We]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:Je,collapseAll:ft})},[A,Je,ft]),I.useEffect(()=>{if(!t||!ke)return;const st=Oe.filter(Rt=>!t(Rt));Oe.length!==st.length&&ke(st)},[t,Oe,ke]),I.useEffect(()=>{if(!n||!ke)return;const st=Oe.filter(Rt=>!n(Rt));Oe.length!==st.length&&ke(st)},[n,Oe,ke]),I.useEffect(()=>{Ne&&Ne(void 0)},[Ne]);const[Xe,Lt]=I.useState(!1);I.useEffect(()=>{Lt(st=>!st)},[Te]);const[vt,wt]=I.useState(null),Gt=I.useCallback((st,Rt)=>{O||(st.stopPropagation(),st.preventDefault(),wt(Rt))},[O]),Ft=I.useCallback((st,Rt)=>{vt===null||O||Pe(Rt,vt)&&(st.stopPropagation(),st.preventDefault(),wt(null))},[vt,O,Pe]),sr=I.useRef(null),[dr,Rr]=I.useState(!1),[ur,xr]=I.useState((Wr=sr.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Ke.length<0)return;const st=We.current,Rt=sr.current,bt=st.clientHeight<Rt.clientHeight;xr(bt?Rt.scrollHeight:st.clientHeight),Rr(bt)},[Ke]),v.jsxs(Ur,{...xe,isDisabled:O,className:qe.clsx(xe.className,fn.AWrap),children:[(!_||ue)&&v.jsxs(si,{className:fn.ATreeHeader,children:[!_&&v.jsx(yN,{isEqual:Pe,searchResult:Ee,initSearch:St,searchUp:It,searchDown:Ct,searchEnter:ct,isLoading:H,isDisabled:O,resources:Le,maxLength:N,autoFocus:re}),!_&&ue&&v.jsx(mn,{w:8}),ue]}),(!_||ue||g&&C||S)&&v.jsx(hm,{isLoading:H&&Te.length!==0}),(g&&C||S)&&v.jsxs("div",{className:qe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Tt,()=>je()],isIndeterminate:gt,onMouseOver:Se,onMouseOut:Ze,isDisabled:O,tooltip:_t}),Le.Items,v.jsx(Yc,{}),v.jsxs("div",{className:qe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:dr?8:0},children:[v.jsx("span",{children:g&&Le["*Click row for single select"]}),v.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),v.jsx("div",{ref:We,className:qe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:ie&&dr?8:0},children:[v.jsxs("div",{ref:sr,className:fn.ATreeBody,children:[Te.length===0?H?v.jsx(CN,{text:Le["Loading Contents..."]}):b:ee,Te.map((st,Rt)=>v.jsx(G,{isEqual:Pe,indents:[],extIndents:T,item:st,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Ke,Ye],useSelect:[Oe,ke],useSearch:[Ee,Ne],onDragStart:he,onDragOver:te,onDragEnd:Fe,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&ut,ContentRenderer:q,TreeItemRenderer:G,RightStickyAddon:Y,resources:Le,containerRef:We,TreeItemStyle:K,TreeItemClassName:ne,hoverdItem:vt,onMouseOver:Gt,onMouseLeave:Ft,searchItemClassName:ae,searchItemStyle:be,height:ge},`${Rt}${Xe}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:dr?ur:"100%"}})]})]})})]})},xN=r=>{const{item:e}=r,t={};return Xt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function SN(r,e){return Xt.some(e,(t,n)=>{var i;return(i=Xt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const CN=r=>{const{text:e}=r;return v.jsxs(si,{className:qe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Br,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(z2,{text:e})]})};var $g,Gb;function Qu(){return Gb||(Gb=1,$g=TypeError),$g}const wN={},AN=Object.freeze(Object.defineProperty({__proto__:null,default:wN},Symbol.toStringTag,{value:"Module"})),TN=t4(AN);var Ug,Zb;function _h(){if(Zb)return Ug;Zb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,h=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,M=typeof WeakSet=="function"&&WeakSet.prototype,T=M?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype,_=C?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,D=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,k=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,G=RegExp.prototype.test,Y=Array.prototype.concat,ue=Array.prototype.join,ee=Array.prototype.slice,fe=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(he){return he.__proto__}:null);function ae(he,te){if(he===1/0||he===-1/0||he!==he||he&&he>-1e3&&he<1e3||G.call(/e/,te))return te;var Fe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof he=="number"){var Xe=he<0?-fe(-he):fe(he);if(Xe!==he){var Lt=String(Xe),vt=k.call(te,Lt.length+1);return O.call(Lt,Fe,"$&_")+"."+O.call(O.call(vt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,Fe,"$&_")}var be=TN,ge=be.custom,xe=Re(ge)?ge:null,Le={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function he(te,Fe,Xe,Lt){var vt=Fe||{};if(xt(vt,"quoteStyle")&&!xt(Le,vt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(vt,"maxStringLength")&&(typeof vt.maxStringLength=="number"?vt.maxStringLength<0&&vt.maxStringLength!==1/0:vt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var wt=xt(vt,"customInspect")?vt.customInspect:!0;if(typeof wt!="boolean"&&wt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(vt,"indent")&&vt.indent!==null&&vt.indent!==" "&&!(parseInt(vt.indent,10)===vt.indent&&vt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(vt,"numericSeparator")&&typeof vt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=vt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return at(te,vt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var Ft=String(te);return Gt?ae(te,Ft):Ft}if(typeof te=="bigint"){var sr=String(te)+"n";return Gt?ae(te,sr):sr}var dr=typeof vt.depth>"u"?5:vt.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=dr&&dr>0&&typeof te=="object")return pt(te)?"[Array]":"[Object]";var Rr=vr(vt,Xe);if(typeof Lt>"u")Lt=[];else if(It(Lt,te)>=0)return"[Circular]";function ur(ar,fr,zr){if(fr&&(Lt=ee.call(Lt),Lt.push(fr)),zr){var gr={depth:vt.depth};return xt(vt,"quoteStyle")&&(gr.quoteStyle=vt.quoteStyle),he(ar,gr,Xe+1,Lt)}return he(ar,vt,Xe+1,Lt)}if(typeof te=="function"&&!Ye(te)){var xr=mt(te),Wr=Zt(te,ur);return"[Function"+(xr?": "+xr:" (anonymous)")+"]"+(Wr.length>0?" { "+ue.call(Wr,", ")+" }":"")}if(Re(te)){var st=ne?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(te);return typeof te=="object"&&!ne?Tt(st):st}if(Ze(te)){for(var Rt="<"+q.call(String(te.nodeName)),bt=te.attributes||[],Qe=0;Qe<bt.length;Qe++)Rt+=" "+bt[Qe].name+"="+We(Te(bt[Qe].value),"double",vt);return Rt+=">",te.childNodes&&te.childNodes.length&&(Rt+="..."),Rt+="</"+q.call(String(te.nodeName))+">",Rt}if(pt(te)){if(te.length===0)return"[]";var Nt=Zt(te,ur);return Rr&&!Mt(Nt)?"["+nr(Nt,Rr)+"]":"[ "+ue.call(Nt,", ")+" ]"}if(Oe(te)){var Q=Zt(te,ur);return!("cause"in Error.prototype)&&"cause"in te&&!ce.call(te,"cause")?"{ ["+String(te)+"] "+ue.call(Y.call("[cause]: "+ur(te.cause),Q),", ")+" }":Q.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+ue.call(Q,", ")+" }"}if(typeof te=="object"&&wt){if(xe&&typeof te[xe]=="function"&&be)return be(te,{depth:dr-Xe});if(wt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(Ct(te)){var He=[];return n&&n.call(te,function(ar,fr){He.push(ur(fr,te,!0)+" => "+ur(ar,te))}),_t("Map",t.call(te),He,Rr)}if(et(te)){var ht=[];return h&&h.call(te,function(ar){ht.push(ur(ar,te))}),_t("Set",u.call(te),ht,Rr)}if(ct(te))return je("WeakMap");if(Se(te))return je("WeakSet");if(ut(te))return je("WeakRef");if(Ee(te))return Tt(ur(Number(te)));if(Je(te))return Tt(ur(N.call(te)));if(Ne(te))return Tt(S.call(te));if(ke(te))return Tt(ur(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof yi<"u"&&te===yi)return"{ [object globalThis] }";if(!Ke(te)&&!Ye(te)){var Ot=Zt(te,ur),er=me?me(te)===Object.prototype:te instanceof Object||te.constructor===Object,Yt=te instanceof Object?"":"null prototype",Dt=!er&&ie&&Object(te)===te&&ie in te?k.call(St(te),8,-1):Yt?"Object":"",Kt=er||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",Mr=Kt+(Dt||Yt?"["+ue.call(Y.call([],Dt||[],Yt||[]),": ")+"] ":"");return Ot.length===0?Mr+"{}":Rr?Mr+"{"+nr(Ot,Rr)+"}":Mr+"{ "+ue.call(Ot,", ")+" }"}return String(te)};function We(he,te,Fe){var Xe=Fe.quoteStyle||te,Lt=Le[Xe];return Lt+he+Lt}function Te(he){return O.call(String(he),/"/g,""")}function ot(he){return!ie||!(typeof he=="object"&&(ie in he||typeof he[ie]<"u"))}function pt(he){return St(he)==="[object Array]"&&ot(he)}function Ke(he){return St(he)==="[object Date]"&&ot(he)}function Ye(he){return St(he)==="[object RegExp]"&&ot(he)}function Oe(he){return St(he)==="[object Error]"&&ot(he)}function ke(he){return St(he)==="[object String]"&&ot(he)}function Ee(he){return St(he)==="[object Number]"&&ot(he)}function Ne(he){return St(he)==="[object Boolean]"&&ot(he)}function Re(he){if(ne)return he&&typeof he=="object"&&he instanceof Symbol;if(typeof he=="symbol")return!0;if(!he||typeof he!="object"||!K)return!1;try{return K.call(he),!0}catch{}return!1}function Je(he){if(!he||typeof he!="object"||!N)return!1;try{return N.call(he),!0}catch{}return!1}var ft=Object.prototype.hasOwnProperty||function(he){return he in this};function xt(he,te){return ft.call(he,te)}function St(he){return D.call(he)}function mt(he){if(he.name)return he.name;var te=b.call(A.call(he),/^function\s*([\w$]+)/);return te?te[1]:null}function It(he,te){if(he.indexOf)return he.indexOf(te);for(var Fe=0,Xe=he.length;Fe<Xe;Fe++)if(he[Fe]===te)return Fe;return-1}function Ct(he){if(!t||!he||typeof he!="object")return!1;try{t.call(he);try{u.call(he)}catch{return!0}return he instanceof Map}catch{}return!1}function ct(he){if(!m||!he||typeof he!="object")return!1;try{m.call(he,m);try{T.call(he,T)}catch{return!0}return he instanceof WeakMap}catch{}return!1}function ut(he){if(!_||!he||typeof he!="object")return!1;try{return _.call(he),!0}catch{}return!1}function et(he){if(!u||!he||typeof he!="object")return!1;try{u.call(he);try{t.call(he)}catch{return!0}return he instanceof Set}catch{}return!1}function Se(he){if(!T||!he||typeof he!="object")return!1;try{T.call(he,T);try{m.call(he,m)}catch{return!0}return he instanceof WeakSet}catch{}return!1}function Ze(he){return!he||typeof he!="object"?!1:typeof HTMLElement<"u"&&he instanceof HTMLElement?!0:typeof he.nodeName=="string"&&typeof he.getAttribute=="function"}function at(he,te){if(he.length>te.maxStringLength){var Fe=he.length-te.maxStringLength,Xe="... "+Fe+" more character"+(Fe>1?"s":"");return at(k.call(he,0,te.maxStringLength),te)+Xe}var Lt=Pe[te.quoteStyle||"single"];Lt.lastIndex=0;var vt=O.call(O.call(he,Lt,"\\$1"),/[\x00-\x1f]/g,gt);return We(vt,"single",te)}function gt(he){var te=he.charCodeAt(0),Fe={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return Fe?"\\"+Fe:"\\x"+(te<16?"0":"")+H.call(te.toString(16))}function Tt(he){return"Object("+he+")"}function je(he){return he+" { ? }"}function _t(he,te,Fe,Xe){var Lt=Xe?nr(Fe,Xe):ue.call(Fe,", ");return he+" ("+te+") {"+Lt+"}"}function Mt(he){for(var te=0;te<he.length;te++)if(It(he[te],`
|
350
350
|
`)>=0)return!1;return!0}function vr(he,te){var Fe;if(he.indent===" ")Fe=" ";else if(typeof he.indent=="number"&&he.indent>0)Fe=ue.call(Array(he.indent+1)," ");else return null;return{base:Fe,prev:ue.call(Array(te+1),Fe)}}function nr(he,te){if(he.length===0)return"";var Fe=`
|
351
351
|
`+te.prev+te.base;return Fe+ue.call(he,","+Fe)+`
|
352
352
|
`+te.prev}function Zt(he,te){var Fe=pt(he),Xe=[];if(Fe){Xe.length=he.length;for(var Lt=0;Lt<he.length;Lt++)Xe[Lt]=xt(he,Lt)?te(he[Lt],he):""}var vt=typeof re=="function"?re(he):[],wt;if(ne){wt={};for(var Gt=0;Gt<vt.length;Gt++)wt["$"+vt[Gt]]=vt[Gt]}for(var Ft in he)xt(he,Ft)&&(Fe&&String(Number(Ft))===Ft&&Ft<he.length||ne&&wt["$"+Ft]instanceof Symbol||(G.call(/[^\w$]/,Ft)?Xe.push(te(Ft,he)+": "+te(he[Ft],he)):Xe.push(Ft+": "+te(he[Ft],he))));if(typeof re=="function")for(var sr=0;sr<vt.length;sr++)ce.call(he,vt[sr])&&Xe.push("["+te(vt[sr])+"]: "+te(he[vt[sr]],he));return Xe}return Ug}var Wg,Yb;function EN(){if(Yb)return Wg;Yb=1;var r=_h(),e=Qu(),t=function(h,g,m){for(var M=h,T;(T=M.next)!=null;M=T)if(T.key===g)return M.next=T.next,m||(T.next=h.next,h.next=T),T},n=function(h,g){if(h){var m=t(h,g);return m&&m.value}},i=function(h,g,m){var M=t(h,g);M?M.value=m:h.next={key:g,next:h.next,value:m}},l=function(h,g){return h?!!t(h,g):!1},u=function(h,g){if(h)return t(h,g,!0)};return Wg=function(){var g,m={assert:function(M){if(!m.has(M))throw new e("Side channel does not contain "+r(M))},delete:function(M){var T=g&&g.next,C=u(g,M);return C&&T&&T===C&&(g=void 0),!!C},get:function(M){return n(g,M)},has:function(M){return l(g,M)},set:function(M,T){g||(g={next:void 0}),i(g,M,T)}};return m},Wg}var Vg,Kb;function dS(){return Kb||(Kb=1,Vg=Object),Vg}var Gg,Xb;function kN(){return Xb||(Xb=1,Gg=Error),Gg}var Zg,Jb;function RN(){return Jb||(Jb=1,Zg=EvalError),Zg}var Yg,Qb;function IN(){return Qb||(Qb=1,Yg=RangeError),Yg}var Kg,e_;function LN(){return e_||(e_=1,Kg=ReferenceError),Kg}var Xg,t_;function MN(){return t_||(t_=1,Xg=SyntaxError),Xg}var Jg,r_;function DN(){return r_||(r_=1,Jg=URIError),Jg}var Qg,n_;function ON(){return n_||(n_=1,Qg=Math.abs),Qg}var e1,i_;function PN(){return i_||(i_=1,e1=Math.floor),e1}var t1,o_;function NN(){return o_||(o_=1,t1=Math.max),t1}var r1,s_;function jN(){return s_||(s_=1,r1=Math.min),r1}var n1,a_;function FN(){return a_||(a_=1,n1=Math.pow),n1}var i1,l_;function BN(){return l_||(l_=1,i1=Math.round),i1}var o1,c_;function qN(){return c_||(c_=1,o1=Number.isNaN||function(e){return e!==e}),o1}var s1,u_;function HN(){if(u_)return s1;u_=1;var r=qN();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,f_;function zN(){return f_||(f_=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,d_;function hS(){if(d_)return l1;d_=1;var r=zN();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,h_;function $N(){if(h_)return c1;h_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return c1=r,c1}var u1,p_;function UN(){return p_||(p_=1,u1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,t);if(h.value!==i||h.enumerable!==!0)return!1}return!0}),u1}var f1,g_;function WN(){if(g_)return f1;g_=1;var r=typeof Symbol<"u"&&Symbol,e=UN();return f1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},f1}var d1,m_;function pS(){return m_||(m_=1,d1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),d1}var h1,v_;function gS(){if(v_)return h1;v_=1;var r=dS();return h1=r.getPrototypeOf||null,h1}var p1,y_;function VN(){if(y_)return p1;y_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var M=[],T=0;T<g.length;T+=1)M[T]=g[T];for(var C=0;C<m.length;C+=1)M[C+g.length]=m[C];return M},l=function(g,m){for(var M=[],T=m,C=0;T<g.length;T+=1,C+=1)M[C]=g[T];return M},u=function(h,g){for(var m="",M=0;M<h.length;M+=1)m+=h[M],M+1<h.length&&(m+=g);return m};return p1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var M=l(arguments,1),T,C=function(){if(this instanceof T){var b=m.apply(this,i(M,arguments));return Object(b)===b?b:this}return m.apply(g,i(M,arguments))},_=t(0,m.length-M.length),S=[],D=0;D<_;D++)S[D]="$"+D;if(T=Function("binder","return function ("+u(S,",")+"){ return binder.apply(this,arguments); }")(C),m.prototype){var A=function(){};A.prototype=m.prototype,T.prototype=new A,A.prototype=null}return T},p1}var g1,b_;function xh(){if(b_)return g1;b_=1;var r=VN();return g1=Function.prototype.bind||r,g1}var m1,__;function Bm(){return __||(__=1,m1=Function.prototype.call),m1}var v1,x_;function mS(){return x_||(x_=1,v1=Function.prototype.apply),v1}var y1,S_;function GN(){return S_||(S_=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,C_;function ZN(){if(C_)return b1;C_=1;var r=xh(),e=mS(),t=Bm(),n=GN();return b1=n||r.call(t,e),b1}var _1,w_;function vS(){if(w_)return _1;w_=1;var r=xh(),e=Qu(),t=Bm(),n=ZN();return _1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},_1}var x1,A_;function YN(){if(A_)return x1;A_=1;var r=vS(),e=hS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return x1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(h){return l(h==null?h:i(h))}:!1,x1}var S1,T_;function KN(){if(T_)return S1;T_=1;var r=pS(),e=gS(),t=YN();return S1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,S1}var C1,E_;function XN(){if(E_)return C1;E_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=xh();return C1=t.call(r,e),C1}var w1,k_;function qm(){if(k_)return w1;k_=1;var r,e=dS(),t=kN(),n=RN(),i=IN(),l=LN(),u=MN(),h=Qu(),g=DN(),m=ON(),M=PN(),T=NN(),C=jN(),_=FN(),S=BN(),D=HN(),A=Function,b=function(Ye){try{return A('"use strict"; return ('+Ye+").constructor;")()}catch{}},k=hS(),O=$N(),H=function(){throw new h},q=k?function(){try{return arguments.callee,H}catch{try{return k(arguments,"callee").get}catch{return H}}}():H,G=WN()(),Y=KN(),ue=gS(),ee=pS(),fe=mS(),N=Bm(),re={},K=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":G&&Y?Y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G&&Y?Y(Y([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!Y?r:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G||!Y?r:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&Y?Y(""[Symbol.iterator]()):r,"%Symbol%":G?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":K,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":fe,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":ue,"%Math.abs%":m,"%Math.floor%":M,"%Math.max%":T,"%Math.min%":C,"%Math.pow%":_,"%Math.round%":S,"%Math.sign%":D,"%Reflect.getPrototypeOf%":ee};if(Y)try{null.error}catch(Ye){var ie=Y(Y(Ye));ne["%Error.prototype%"]=ie}var ce=function Ye(Oe){var ke;if(Oe==="%AsyncFunction%")ke=b("async function () {}");else if(Oe==="%GeneratorFunction%")ke=b("function* () {}");else if(Oe==="%AsyncGeneratorFunction%")ke=b("async function* () {}");else if(Oe==="%AsyncGenerator%"){var Ee=Ye("%AsyncGeneratorFunction%");Ee&&(ke=Ee.prototype)}else if(Oe==="%AsyncIteratorPrototype%"){var Ne=Ye("%AsyncGenerator%");Ne&&Y&&(ke=Y(Ne.prototype))}return ne[Oe]=ke,ke},me={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=xh(),be=XN(),ge=ae.call(N,Array.prototype.concat),xe=ae.call(fe,Array.prototype.splice),Le=ae.call(N,String.prototype.replace),Pe=ae.call(N,String.prototype.slice),We=ae.call(N,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ot=/\\(\\)?/g,pt=function(Oe){var ke=Pe(Oe,0,1),Ee=Pe(Oe,-1);if(ke==="%"&&Ee!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(Ee==="%"&&ke!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ne=[];return Le(Oe,Te,function(Re,Je,ft,xt){Ne[Ne.length]=ft?Le(xt,ot,"$1"):Je||Re}),Ne},Ke=function(Oe,ke){var Ee=Oe,Ne;if(be(me,Ee)&&(Ne=me[Ee],Ee="%"+Ne[0]+"%"),be(ne,Ee)){var Re=ne[Ee];if(Re===re&&(Re=ce(Ee)),typeof Re>"u"&&!ke)throw new h("intrinsic "+Oe+" exists, but is not available. Please file an issue!");return{alias:Ne,name:Ee,value:Re}}throw new u("intrinsic "+Oe+" does not exist!")};return w1=function(Oe,ke){if(typeof Oe!="string"||Oe.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ke!="boolean")throw new h('"allowMissing" argument must be a boolean');if(We(/^%?[^%]*%?$/,Oe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ee=pt(Oe),Ne=Ee.length>0?Ee[0]:"",Re=Ke("%"+Ne+"%",ke),Je=Re.name,ft=Re.value,xt=!1,St=Re.alias;St&&(Ne=St[0],xe(Ee,ge([0,1],St)));for(var mt=1,It=!0;mt<Ee.length;mt+=1){var Ct=Ee[mt],ct=Pe(Ct,0,1),ut=Pe(Ct,-1);if((ct==='"'||ct==="'"||ct==="`"||ut==='"'||ut==="'"||ut==="`")&&ct!==ut)throw new u("property names with quotes must have matching quotes");if((Ct==="constructor"||!It)&&(xt=!0),Ne+="."+Ct,Je="%"+Ne+"%",be(ne,Je))ft=ne[Je];else if(ft!=null){if(!(Ct in ft)){if(!ke)throw new h("base intrinsic for "+Oe+" exists, but the property is not available.");return}if(k&&mt+1>=Ee.length){var et=k(ft,Ct);It=!!et,It&&"get"in et&&!("originalValue"in et.get)?ft=et.get:ft=ft[Ct]}else It=be(ft,Ct),ft=ft[Ct];It&&!xt&&(ne[Je]=ft)}}return ft},w1}var A1,R_;function yS(){if(R_)return A1;R_=1;var r=qm(),e=vS(),t=e([r("%String.prototype.indexOf%")]);return A1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},A1}var T1,I_;function bS(){if(I_)return T1;I_=1;var r=qm(),e=yS(),t=_h(),n=Qu(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),h=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return T1=!!i&&function(){var T,C={assert:function(_){if(!C.has(_))throw new n("Side channel does not contain "+t(_))},delete:function(_){if(T){var S=g(T,_);return m(T)===0&&(T=void 0),S}return!1},get:function(_){if(T)return l(T,_)},has:function(_){return T?h(T,_):!1},set:function(_,S){T||(T=new i),u(T,_,S)}};return C},T1}var E1,L_;function JN(){if(L_)return E1;L_=1;var r=qm(),e=yS(),t=_h(),n=bS(),i=Qu(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),h=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return E1=l?function(){var T,C,_={assert:function(S){if(!_.has(S))throw new i("Side channel does not contain "+t(S))},delete:function(S){if(l&&S&&(typeof S=="object"||typeof S=="function")){if(T)return m(T,S)}else if(n&&C)return C.delete(S);return!1},get:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?u(T,S):C&&C.get(S)},has:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?g(T,S):!!C&&C.has(S)},set:function(S,D){l&&S&&(typeof S=="object"||typeof S=="function")?(T||(T=new l),h(T,S,D)):n&&(C||(C=n()),C.set(S,D))}};return _}:n,E1}var k1,M_;function QN(){if(M_)return k1;M_=1;var r=Qu(),e=_h(),t=EN(),n=bS(),i=JN(),l=i||n||t;return k1=function(){var h,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!h&&h.delete(m)},get:function(m){return h&&h.get(m)},has:function(m){return!!h&&h.has(m)},set:function(m,M){h||(h=l()),h.set(m,M)}};return g},k1}var R1,D_;function Hm(){if(D_)return R1;D_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return R1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},R1}var I1,O_;function _S(){if(O_)return I1;O_=1;var r=Hm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var A=[],b=0;b<256;++b)A.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return A}(),i=function(b){for(;b.length>1;){var k=b.pop(),O=k.obj[k.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);k.obj[k.prop]=H}}},l=function(b,k){for(var O=k&&k.plainObjects?{__proto__:null}:{},H=0;H<b.length;++H)typeof b[H]<"u"&&(O[H]=b[H]);return O},u=function A(b,k,O){if(!k)return b;if(typeof k!="object"&&typeof k!="function"){if(t(b))b.push(k);else if(b&&typeof b=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,k))&&(b[k]=!0);else return[b,k];return b}if(!b||typeof b!="object")return[b].concat(k);var H=b;return t(b)&&!t(k)&&(H=l(b,O)),t(b)&&t(k)?(k.forEach(function(q,G){if(e.call(b,G)){var Y=b[G];Y&&typeof Y=="object"&&q&&typeof q=="object"?b[G]=A(Y,q,O):b.push(q)}else b[G]=q}),b):Object.keys(k).reduce(function(q,G){var Y=k[G];return e.call(q,G)?q[G]=A(q[G],Y,O):q[G]=Y,q},H)},h=function(b,k){return Object.keys(k).reduce(function(O,H){return O[H]=k[H],O},b)},g=function(A,b,k){var O=A.replace(/\+/g," ");if(k==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,M=function(b,k,O,H,q){if(b.length===0)return b;var G=b;if(typeof b=="symbol"?G=Symbol.prototype.toString.call(b):typeof b!="string"&&(G=String(b)),O==="iso-8859-1")return escape(G).replace(/%u[0-9a-f]{4}/gi,function(K){return"%26%23"+parseInt(K.slice(2),16)+"%3B"});for(var Y="",ue=0;ue<G.length;ue+=m){for(var ee=G.length>=m?G.slice(ue,ue+m):G,fe=[],N=0;N<ee.length;++N){var re=ee.charCodeAt(N);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||q===r.RFC1738&&(re===40||re===41)){fe[fe.length]=ee.charAt(N);continue}if(re<128){fe[fe.length]=n[re];continue}if(re<2048){fe[fe.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){fe[fe.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}N+=1,re=65536+((re&1023)<<10|ee.charCodeAt(N)&1023),fe[fe.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}Y+=fe.join("")}return Y},T=function(b){for(var k=[{obj:{o:b},prop:"o"}],O=[],H=0;H<k.length;++H)for(var q=k[H],G=q.obj[q.prop],Y=Object.keys(G),ue=0;ue<Y.length;++ue){var ee=Y[ue],fe=G[ee];typeof fe=="object"&&fe!==null&&O.indexOf(fe)===-1&&(k.push({obj:G,prop:ee}),O.push(fe))}return i(k),b},C=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},_=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,k){return[].concat(b,k)},D=function(b,k){if(t(b)){for(var O=[],H=0;H<b.length;H+=1)O.push(k(b[H]));return O}return k(b)};return I1={arrayToObject:l,assign:h,combine:S,compact:T,decode:g,encode:M,isBuffer:_,isRegExp:C,maybeMap:D,merge:u},I1}var L1,P_;function ej(){if(P_)return L1;P_=1;var r=QN(),e=_S(),t=Hm(),n=Object.prototype.hasOwnProperty,i={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,b){return A+"["+b+"]"},repeat:function(A){return A}},l=Array.isArray,u=Array.prototype.push,h=function(D,A){u.apply(D,l(A)?A:[A])},g=Date.prototype.toISOString,m=t.default,M={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(A){return g.call(A)},skipNulls:!1,strictNullHandling:!1},T=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},C={},_=function D(A,b,k,O,H,q,G,Y,ue,ee,fe,N,re,K,ne,ie,ce,me){for(var ae=A,be=me,ge=0,xe=!1;(be=be.get(C))!==void 0&&!xe;){var Le=be.get(A);if(ge+=1,typeof Le<"u"){if(Le===ge)throw new RangeError("Cyclic object value");xe=!0}typeof be.get(C)>"u"&&(ge=0)}if(typeof ee=="function"?ae=ee(b,ae):ae instanceof Date?ae=re(ae):k==="comma"&&l(ae)&&(ae=e.maybeMap(ae,function(Je){return Je instanceof Date?re(Je):Je})),ae===null){if(q)return ue&&!ie?ue(b,M.encoder,ce,"key",K):b;ae=""}if(T(ae)||e.isBuffer(ae)){if(ue){var Pe=ie?b:ue(b,M.encoder,ce,"key",K);return[ne(Pe)+"="+ne(ue(ae,M.encoder,ce,"value",K))]}return[ne(b)+"="+ne(String(ae))]}var We=[];if(typeof ae>"u")return We;var Te;if(k==="comma"&&l(ae))ie&&ue&&(ae=e.maybeMap(ae,ue)),Te=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(l(ee))Te=ee;else{var ot=Object.keys(ae);Te=fe?ot.sort(fe):ot}var pt=Y?String(b).replace(/\./g,"%2E"):String(b),Ke=O&&l(ae)&&ae.length===1?pt+"[]":pt;if(H&&l(ae)&&ae.length===0)return Ke+"[]";for(var Ye=0;Ye<Te.length;++Ye){var Oe=Te[Ye],ke=typeof Oe=="object"&&Oe&&typeof Oe.value<"u"?Oe.value:ae[Oe];if(!(G&&ke===null)){var Ee=N&&Y?String(Oe).replace(/\./g,"%2E"):String(Oe),Ne=l(ae)?typeof k=="function"?k(Ke,Ee):Ke:Ke+(N?"."+Ee:"["+Ee+"]");me.set(A,ge);var Re=r();Re.set(C,me),h(We,D(ke,Ne,k,O,H,q,G,Y,k==="comma"&&ie&&l(ae)?null:ue,ee,fe,N,re,K,ne,ie,ce,Re))}}return We},S=function(A){if(!A)return M;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=A.charset||M.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var k=t.default;if(typeof A.format<"u"){if(!n.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");k=A.format}var O=t.formatters[k],H=M.filter;(typeof A.filter=="function"||l(A.filter))&&(H=A.filter);var q;if(A.arrayFormat in i?q=A.arrayFormat:"indices"in A?q=A.indices?"indices":"repeat":q=M.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var G=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:M.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:M.addQueryPrefix,allowDots:G,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:M.allowEmptyArrays,arrayFormat:q,charset:b,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:M.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?M.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:M.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:M.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:M.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:M.encodeValuesOnly,filter:H,format:k,formatter:O,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:M.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:M.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:M.strictNullHandling}};return L1=function(D,A){var b=D,k=S(A),O,H;typeof k.filter=="function"?(H=k.filter,b=H("",b)):l(k.filter)&&(H=k.filter,O=H);var q=[];if(typeof b!="object"||b===null)return"";var G=i[k.arrayFormat],Y=G==="comma"&&k.commaRoundTrip;O||(O=Object.keys(b)),k.sort&&O.sort(k.sort);for(var ue=r(),ee=0;ee<O.length;++ee){var fe=O[ee],N=b[fe];k.skipNulls&&N===null||h(q,_(N,fe,G,Y,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,ue))}var re=q.join(k.delimiter),K=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?K+="utf8=%26%2310003%3B&":K+="utf8=%E2%9C%93&"),re.length>0?K+re:""},L1}var M1,N_;function tj(){if(N_)return M1;N_=1;var r=_S(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(C){return C.replace(/&#(\d+);/g,function(_,S){return String.fromCharCode(parseInt(S,10))})},l=function(C,_,S){if(C&&typeof C=="string"&&_.comma&&C.indexOf(",")>-1)return C.split(",");if(_.throwOnLimitExceeded&&S>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return C},u="utf8=%26%2310003%3B",h="utf8=%E2%9C%93",g=function(_,S){var D={__proto__:null},A=S.ignoreQueryPrefix?_.replace(/^\?/,""):_;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,k=A.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&k.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var O=-1,H,q=S.charset;if(S.charsetSentinel)for(H=0;H<k.length;++H)k[H].indexOf("utf8=")===0&&(k[H]===h?q="utf-8":k[H]===u&&(q="iso-8859-1"),O=H,H=k.length);for(H=0;H<k.length;++H)if(H!==O){var G=k[H],Y=G.indexOf("]="),ue=Y===-1?G.indexOf("="):Y+1,ee,fe;ue===-1?(ee=S.decoder(G,n.decoder,q,"key"),fe=S.strictNullHandling?null:""):(ee=S.decoder(G.slice(0,ue),n.decoder,q,"key"),fe=r.maybeMap(l(G.slice(ue+1),S,t(D[ee])?D[ee].length:0),function(re){return S.decoder(re,n.decoder,q,"value")})),fe&&S.interpretNumericEntities&&q==="iso-8859-1"&&(fe=i(String(fe))),G.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var N=e.call(D,ee);N&&S.duplicates==="combine"?D[ee]=r.combine(D[ee],fe):(!N||S.duplicates==="last")&&(D[ee]=fe)}return D},m=function(C,_,S,D){var A=0;if(C.length>0&&C[C.length-1]==="[]"){var b=C.slice(0,-1).join("");A=Array.isArray(_)&&_[b]?_[b].length:0}for(var k=D?_:l(_,S,A),O=C.length-1;O>=0;--O){var H,q=C[O];if(q==="[]"&&S.parseArrays)H=S.allowEmptyArrays&&(k===""||S.strictNullHandling&&k===null)?[]:r.combine([],k);else{H=S.plainObjects?{__proto__:null}:{};var G=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=S.decodeDotInKeys?G.replace(/%2E/g,"."):G,ue=parseInt(Y,10);!S.parseArrays&&Y===""?H={0:k}:!isNaN(ue)&&q!==Y&&String(ue)===Y&&ue>=0&&S.parseArrays&&ue<=S.arrayLimit?(H=[],H[ue]=k):Y!=="__proto__"&&(H[Y]=k)}k=H}return k},M=function(_,S,D,A){if(_){var b=D.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,k=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=D.depth>0&&k.exec(b),q=H?b.slice(0,H.index):b,G=[];if(q){if(!D.plainObjects&&e.call(Object.prototype,q)&&!D.allowPrototypes)return;G.push(q)}for(var Y=0;D.depth>0&&(H=O.exec(b))!==null&&Y<D.depth;){if(Y+=1,!D.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!D.allowPrototypes)return;G.push(H[1])}if(H){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");G.push("["+b.slice(H.index)+"]")}return m(G,S,D,A)}},T=function(_){if(!_)return n;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded<"u"&&typeof _.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof _.charset>"u"?n.charset:_.charset,D=typeof _.duplicates>"u"?n.duplicates:_.duplicates;if(D!=="combine"&&D!=="first"&&D!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:n.allowDots:!!_.allowDots;return{allowDots:A,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:n.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:n.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:n.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:n.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:n.decoder,delimiter:typeof _.delimiter=="string"||r.isRegExp(_.delimiter)?_.delimiter:n.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:n.depth,duplicates:D,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:n.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:n.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:n.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return M1=function(C,_){var S=T(_);if(C===""||C===null||typeof C>"u")return S.plainObjects?{__proto__:null}:{};for(var D=typeof C=="string"?g(C,S):C,A=S.plainObjects?{__proto__:null}:{},b=Object.keys(D),k=0;k<b.length;++k){var O=b[k],H=M(O,D[O],S,typeof C=="string");A=r.merge(A,H,S)}return S.allowSparse===!0?A:r.compact(A)},M1}var D1,j_;function rj(){if(j_)return D1;j_=1;var r=ej(),e=tj(),t=Hm();return D1={formats:t,parse:e,stringify:r},D1}var nj=rj();const ij=il(nj),im={StoredContexts:{},defaultHandler:()=>{}},xS={Init:()=>{},Create:r=>{const e=r.method+r.url;return im.StoredContexts[e]=r,oj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{im.defaultHandler=r}};function oj(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:h}=r;const{po:g,onStream:m,onStreamEnd:M,noDefaultHandle:T=[]}=n??{};(h==="query"||l==="GET")&&g!==void 0&&(i+="?"+ij.stringify(g,{arrayFormat:"comma"}));const C={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(h==="form"){const D=new FormData;if(g!==void 0)for(const A in g){const b=g[A];D.append(A,b)}C.body=D}else(h==="body"||h===void 0&&r.method!=="GET")&&(C.body=JSON.stringify(g),C.headers["Content-Type"]="application/json;charset=UTF-8");let _={errorCode:0,message:""};const S=Date.now();i=xS.FetchBaseUrl()+i;try{let D=await fetch(i,C);if(D.ok===!1)return _.errorCode=D.status,_.message=D.statusText,_;{const A=new TextDecoder("utf-8");if(u){if(D.body){let b=D.body.getReader(),k="";for(;;){const O=await b.read();if(O.done)break;const H=A.decode(O.value).trim();k+=H;let q=null;try{const G=H.split("\0");let Y=G[G.length-1];for(let ue=G.length-2;ue>=0;ue--)if(G[ue].trim().length!==0){Y=G[ue];break}q=await JSON.parse(Y)}catch{try{const Y=k.split("\0");let ue=Y[Y.length-1];for(let ee=Y.length-2;ee>=0;ee--)if(Y[ee].trim().length!==0){ue=Y[ee];break}q=await JSON.parse(ue)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?_.errorCode=q.err_code:(_.errorCode=0,_.data=q,k="",O.done?M==null||M(_.data):m==null||m(_.data))),O.done)break}}}else if(D.body){const k=await D.body.getReader().read(),O=A.decode(k.value);if(O==="null")return _;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(_.errorCode=H.err_code,_.message=H.err_msg):_.data=H}}}}catch(D){console.warn(D),_.errorCode=-1,_.message=D.message}return console.debug(`${e} ${Date.now()-S}ms`),T!==!0&&await im.defaultHandler(_,T),_}}}async function sj(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function aj(r,e){var h,g;const t=r.split(","),n=(g=(h=t[0])==null?void 0:h.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const lj={toBase64:sj,toFile:aj};exports.ABase=Ur;exports.ABaseStyleKeys=r2;exports.AButton=Bi;exports.AButtonStyleKeys=i2;exports.AButtonTypes=r5;exports.ACheckBox=Uu;exports.ACheckBoxStyleKeys=l2;exports.AChip=L2;exports.AChipKeys=E2;exports.AChips=vT;exports.AClock=IT;exports.AColFrame=R2;exports.ADatePicker=dm;exports.ADatePickerStyleKeys=y2;exports.ADatePickerTypes=n6;exports.ADateRangePicker=um;exports.ADateRangePickerStyleKeys=b2;exports.ADialog=d6;exports.ADialogStyleKeys=c2;exports.ADialogTypes=f6;exports.ADivideFrame=oT;exports.AEditor=NP;exports.AEditorStyleKeys=a2;exports.AFileBox=C6;exports.AFileBoxStyleKeys=g2;exports.AFloatMenu=O2;exports.AFloatMenuKeys=C2;exports.AFrameStyleKeys=S2;exports.AGrow=Yc;exports.AIcon=Br;exports.AIconButton=vo;exports.AIconButtonStyleKeys=_2;exports.AIconButtonTypes=n5;exports.AIconHOC=F4;exports.AIcons=am;exports.AInput=Jl;exports.AInputStyleKeys=o2;exports.AInputTypes=$T;exports.AListView=P6;exports.AListViewStyleKeys=m2;exports.ALoadingBorder=hm;exports.ALoadingBorderKeys=w2;exports.AMultiSelect=c8;exports.AMultiSelectStyleKeys=f2;exports.ANumInput=I6;exports.AOverflowFrame=Xl;exports.ARadioSelect=Z6;exports.ARadioSelectKeys=T2;exports.ARowFrame=si;exports.ASelect=Wc;exports.ASelectStyleKeys=u2;exports.ASelectTypes=iE;exports.ASpace=mn;exports.AStepper=w8;exports.AStepperStyleKeys=v2;exports.ASwitch=Y_;exports.ASwitchFrame=I2;exports.ASwitchStyleKeys=h2;exports.ATab=j2;exports.ATabStyleKeys=p2;exports.ATabTypes=N8;exports.ATable=$k;exports.ATableStyleKeys=x2;exports.AText=z2;exports.ATextArea=eR;exports.ATextAreaStyleKeys=s2;exports.ATextAreaTypes=Qk;exports.AThemeButton=H5;exports.AThemes=Df;exports.ATooltip=Z_;exports.ATooltipStyleKeys=n2;exports.ATree=_N;exports.ATreeStyleKeys=d2;exports.AWrap=Uc;exports.AWrapKeys=A2;exports.AWrapTypes=x5;exports.ApiContext=xS;exports.BodyStyleKeys=t2;exports.CreateADC=y6;exports.DefaultOptionRenderer=N2;exports.EDir12=Ku;exports.EDir4=vi;exports.FileSizeTrans=nm;exports.Icons=th;exports.IsCursorPointer=z_;exports.IsFixedShape=H_;exports.IsInteractive=$_;exports.NoSelect=q_;exports.Resources=hn;exports.SetResources=g5;exports.alphanumericRegex=bT;exports.bound=Mf;exports.cbF=kr;exports.changeSemanticMode=cm;exports.componentStyleKeys=D5;exports.createEvent=$c;exports.dateF=zt;exports.defaultPredicate=B2;exports.dlgF=b6;exports.emailIdRegex=xT;exports.emailRegex=_T;exports.fileF=lj;exports.getMonthsOptions=Wf;exports.getYearsOptions=fm;exports.hangulRegex=CT;exports.hexRegex=ST;exports.noHanguljamoRegex=AT;exports.noSpaceRegex=wT;exports.numF=P2;exports.objF=Xt;exports.paletteKeys=K_;exports.paletteModes=rh;exports.passwordRegex=ET;exports.refinedDesignTokens=bi;exports.sF=qe;exports.semanticKeys=Q_;exports.semanticModes=$u;exports.setDir12Style=lm;exports.setDir12StyleElem=V_;exports.specialCharRegex=TT;exports.strF=D2;exports.tableF=Ja;exports.treeF=Qa;exports.useADialogCore=m6;exports.useADialogCores=g6;exports.useEvent=H2;exports.useInit=F2;exports.useValues=pn;exports.uuidRegex=kT;
|
package/dist/index.es.js
CHANGED
@@ -30827,7 +30827,8 @@ const nM = [
|
|
30827
30827
|
...T,
|
30828
30828
|
style: {
|
30829
30829
|
...T == null ? void 0 : T.style,
|
30830
|
-
minHeight: "fit-content"
|
30830
|
+
minHeight: "fit-content",
|
30831
|
+
height: "100%"
|
30831
30832
|
}
|
30832
30833
|
},
|
30833
30834
|
children: /* @__PURE__ */ v.jsxs(
|