@kangtae49/just-layout 0.0.8 → 0.0.9

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.es.js CHANGED
@@ -17335,7 +17335,9 @@ var T2 = {
17335
17335
  function D2({ layoutId: t, justId: e, winInfo: n }) {
17336
17336
  console.log("TabTitle justId", e);
17337
17337
  const [i, a] = nd(), [s] = Et({ x: 0, y: 0 }), c = Cr(t), f = c.getTabTitleTooltip(e), d = (v) => {
17338
- console.log("closeWin!!!", v);
17338
+ c.removeWin({
17339
+ justId: v
17340
+ });
17339
17341
  }, p = (v, b) => {
17340
17342
  c.activeWin({
17341
17343
  justId: b
package/dist/index.umd.js CHANGED
@@ -649,5 +649,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
649
649
  }`;function Kv(){var n=Fv,e=$v,t=de.cssPrefix,r=de.replacementClass,o=bA;if(t!==n||r!==e){var s=new RegExp("\\.".concat(n,"\\-"),"g"),c=new RegExp("\\--".concat(n,"\\-"),"g"),f=new RegExp("\\.".concat(e),"g");o=o.replace(s,".".concat(t,"-")).replace(c,"--".concat(t,"-")).replace(f,".".concat(r))}return o}var Xv=!1;function nf(){de.autoAddCss&&!Xv&&(hA(Kv()),Xv=!0)}var yA={mixout:function(){return{dom:{css:Kv,insertCss:nf}}},hooks:function(){return{beforeDOMElementCreation:function(){nf()},beforeI2svg:function(){nf()}}}},br=Vr||{};br[mr]||(br[mr]={}),br[mr].styles||(br[mr].styles={}),br[mr].hooks||(br[mr].hooks={}),br[mr].shims||(br[mr].shims=[]);var qn=br[mr],Zv=[],Qv=function(){Ze.removeEventListener("DOMContentLoaded",Qv),ys=1,Zv.map(function(e){return e()})},ys=!1;gr&&(ys=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),ys||Ze.addEventListener("DOMContentLoaded",Qv));function _A(n){gr&&(ys?setTimeout(n,0):Zv.push(n))}function qo(n){var e=n.tag,t=n.attributes,r=t===void 0?{}:t,o=n.children,s=o===void 0?[]:o;return typeof n=="string"?Jv(n):"<".concat(e," ").concat(vA(r),">").concat(s.map(qo).join(""),"</").concat(e,">")}function eg(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var rf=function(e,t,r,o){var s=Object.keys(e),c=s.length,f=t,d,p,v;for(r===void 0?(d=1,v=e[s[0]]):(d=0,v=r);d<c;d++)p=s[d],v=f(v,e[p],p,e);return v};function tg(n){return Hn(n).length!==1?null:n.codePointAt(0).toString(16)}function ng(n){return Object.keys(n).reduce(function(e,t){var r=n[t],o=!!r.icon;return o?e[r.iconName]=r.icon:e[t]=r,e},{})}function of(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.skipHooks,o=r===void 0?!1:r,s=ng(e);typeof qn.hooks.addPack=="function"&&!o?qn.hooks.addPack(n,ng(e)):qn.styles[n]=J(J({},qn.styles[n]||{}),s),n==="fas"&&of("fa",e)}var Go=qn.styles,wA=qn.shims,rg=Object.keys(Xc),SA=rg.reduce(function(n,e){return n[e]=Object.keys(Xc[e]),n},{}),af=null,ig={},og={},ag={},sg={},ug={};function OA(n){return~uA.indexOf(n)}function EA(n,e){var t=e.split("-"),r=t[0],o=t.slice(1).join("-");return r===n&&o!==""&&!OA(o)?o:null}var cg=function(){var e=function(s){return rf(Go,function(c,f,d){return c[d]=rf(f,s,{}),c},{})};ig=e(function(o,s,c){if(s[3]&&(o[s[3]]=c),s[2]){var f=s[2].filter(function(d){return typeof d=="number"});f.forEach(function(d){o[d.toString(16)]=c})}return o}),og=e(function(o,s,c){if(o[c]=c,s[2]){var f=s[2].filter(function(d){return typeof d=="string"});f.forEach(function(d){o[d]=c})}return o}),ug=e(function(o,s,c){var f=s[2];return o[c]=c,f.forEach(function(d){o[d]=c}),o});var t="far"in Go||de.autoFetchSvg,r=rf(wA,function(o,s){var c=s[0],f=s[1],d=s[2];return f==="far"&&!t&&(f="fas"),typeof c=="string"&&(o.names[c]={prefix:f,iconName:d}),typeof c=="number"&&(o.unicodes[c.toString(16)]={prefix:f,iconName:d}),o},{names:{},unicodes:{}});ag=r.names,sg=r.unicodes,af=_s(de.styleDefault,{family:de.familyDefault})};dA(function(n){af=_s(n.styleDefault,{family:de.familyDefault})}),cg();function sf(n,e){return(ig[n]||{})[e]}function IA(n,e){return(og[n]||{})[e]}function gi(n,e){return(ug[n]||{})[e]}function fg(n){return ag[n]||{prefix:null,iconName:null}}function AA(n){var e=sg[n],t=sf("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function Wr(){return af}var lg=function(){return{prefix:null,iconName:null,rest:[]}};function TA(n){var e=Tt,t=rg.reduce(function(r,o){return r[o]="".concat(de.cssPrefix,"-").concat(o),r},{});return Mv.forEach(function(r){(n.includes(t[r])||n.some(function(o){return SA[r].includes(o)}))&&(e=r)}),e}function _s(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.family,r=t===void 0?Tt:t,o=rA[r][n];if(r===Wo&&!n)return"fad";var s=Hv[r][n]||Hv[r][o],c=n in qn.styles?n:null,f=s||c||null;return f}function xA(n){var e=[],t=null;return n.forEach(function(r){var o=EA(de.cssPrefix,r);o?t=o:r&&e.push(r)}),{iconName:t,rest:e}}function dg(n){return n.sort().filter(function(e,t,r){return r.indexOf(e)===t})}var hg=Bv.concat(Rv);function ws(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.skipLookups,r=t===void 0?!1:t,o=null,s=dg(n.filter(function(y){return hg.includes(y)})),c=dg(n.filter(function(y){return!hg.includes(y)})),f=s.filter(function(y){return o=y,!gv.includes(y)}),d=ps(f,1),p=d[0],v=p===void 0?null:p,b=TA(s),w=J(J({},xA(c)),{},{prefix:_s(v,{family:b})});return J(J(J({},w),PA({values:n,family:b,styles:Go,config:de,canonical:w,givenPrefix:o})),NA(r,o,w))}function NA(n,e,t){var r=t.prefix,o=t.iconName;if(n||!r||!o)return{prefix:r,iconName:o};var s=e==="fa"?fg(o):{},c=gi(r,o);return o=s.iconName||c||o,r=s.prefix||r,r==="far"&&!Go.far&&Go.fas&&!de.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var DA=Mv.filter(function(n){return n!==Tt||n!==Wo}),CA=Object.keys(zc).filter(function(n){return n!==Tt}).map(function(n){return Object.keys(zc[n])}).flat();function PA(n){var e=n.values,t=n.family,r=n.canonical,o=n.givenPrefix,s=o===void 0?"":o,c=n.styles,f=c===void 0?{}:c,d=n.config,p=d===void 0?{}:d,v=t===Wo,b=e.includes("fa-duotone")||e.includes("fad"),w=p.familyDefault==="duotone",y=r.prefix==="fad"||r.prefix==="fa-duotone";if(!v&&(b||w||y)&&(r.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab"),!r.prefix&&DA.includes(t)){var O=Object.keys(f).find(function(A){return CA.includes(A)});if(O||p.autoFetchSvg){var S=J1.get(t).defaultShortPrefixId;r.prefix=S,r.iconName=gi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Wr()||"fas"),r}var MA=(function(){function n(){m1(this,n),this.definitions={}}return y1(n,[{key:"add",value:function(){for(var t=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var c=o.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(f){t.definitions[f]=J(J({},t.definitions[f]||{}),c[f]),of(f,c[f]);var d=Xc[Tt][f];d&&of(d,c[f]),cg()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(s){var c=o[s],f=c.prefix,d=c.iconName,p=c.icon,v=p[2];t[f]||(t[f]={}),v.length>0&&v.forEach(function(b){typeof b=="string"&&(t[f][b]=p)}),t[f][d]=p}),t}}])})(),pg=[],Hi={},qi={},RA=Object.keys(qi);function LA(n,e){var t=e.mixoutsTo;return pg=n,Hi={},Object.keys(qi).forEach(function(r){RA.indexOf(r)===-1&&delete qi[r]}),pg.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(c){typeof o[c]=="function"&&(t[c]=o[c]),vs(o[c])==="object"&&Object.keys(o[c]).forEach(function(f){t[c]||(t[c]={}),t[c][f]=o[c][f]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(c){Hi[c]||(Hi[c]=[]),Hi[c].push(s[c])})}r.provides&&r.provides(qi)}),t}function uf(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];var s=Hi[n]||[];return s.forEach(function(c){e=c.apply(null,[e].concat(r))}),e}function mi(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var o=Hi[n]||[];o.forEach(function(s){s.apply(null,t)})}function Ur(){var n=arguments[0],e=Array.prototype.slice.call(arguments,1);return qi[n]?qi[n].apply(null,e):void 0}function cf(n){n.prefix==="fa"&&(n.prefix="fas");var e=n.iconName,t=n.prefix||Wr();if(e)return e=gi(t,e)||e,eg(vg.definitions,t,e)||eg(qn.styles,t,e)}var vg=new MA,kA=function(){de.autoReplaceSvg=!1,de.observeMutations=!1,mi("noAuto")},BA={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gr?(mi("beforeI2svg",e),Ur("pseudoElements2svg",e),Ur("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;de.autoReplaceSvg===!1&&(de.autoReplaceSvg=!0),de.observeMutations=!0,_A(function(){FA({autoReplaceSvgRoot:t}),mi("watch",e)})}},jA={icon:function(e){if(e===null)return null;if(vs(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:gi(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=_s(e[0]);return{prefix:r,iconName:gi(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(de.cssPrefix,"-"))>-1||e.match(iA))){var o=ws(e.split(" "),{skipLookups:!0});return{prefix:o.prefix||Wr(),iconName:gi(o.prefix,o.iconName)||o.iconName}}if(typeof e=="string"){var s=Wr();return{prefix:s,iconName:gi(s,e)||e}}}},tn={noAuto:kA,config:de,dom:BA,parse:jA,library:vg,findIconDefinition:cf,toHtml:qo},FA=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,r=t===void 0?Ze:t;(Object.keys(qn.styles).length>0||de.autoFetchSvg)&&gr&&de.autoReplaceSvg&&tn.dom.i2svg({node:r})};function Ss(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(r){return qo(r)})}}),Object.defineProperty(n,"node",{get:function(){if(gr){var r=Ze.createElement("div");return r.innerHTML=n.html,r.children}}}),n}function $A(n){var e=n.children,t=n.main,r=n.mask,o=n.attributes,s=n.styles,c=n.transform;if(tf(c)&&t.found&&!r.found){var f=t.width,d=t.height,p={x:f/d/2,y:.5};o.style=bs(J(J({},s),{},{"transform-origin":"".concat(p.x+c.x/16,"em ").concat(p.y+c.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}function VA(n){var e=n.prefix,t=n.iconName,r=n.children,o=n.attributes,s=n.symbol,c=s===!0?"".concat(e,"-").concat(de.cssPrefix,"-").concat(t):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},o),{},{id:c}),children:r}]}]}function WA(n){var e=["aria-label","aria-labelledby","title","role"];return e.some(function(t){return t in n})}function ff(n){var e=n.icons,t=e.main,r=e.mask,o=n.prefix,s=n.iconName,c=n.transform,f=n.symbol,d=n.maskId,p=n.extra,v=n.watchable,b=v===void 0?!1:v,w=r.found?r:t,y=w.width,O=w.height,S=[de.replacementClass,s?"".concat(de.cssPrefix,"-").concat(s):""].filter(function(q){return p.classes.indexOf(q)===-1}).filter(function(q){return q!==""||!!q}).concat(p.classes).join(" "),A={children:[],attributes:J(J({},p.attributes),{},{"data-prefix":o,"data-icon":s,class:S,role:p.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(O)})};!WA(p.attributes)&&!p.attributes["aria-hidden"]&&(A.attributes["aria-hidden"]="true"),b&&(A.attributes[vi]="");var x=J(J({},A),{},{prefix:o,iconName:s,main:t,mask:r,maskId:d,transform:c,symbol:f,styles:J({},p.styles)}),k=r.found&&t.found?Ur("generateAbstractMask",x)||{children:[],attributes:{}}:Ur("generateAbstractIcon",x)||{children:[],attributes:{}},G=k.children,oe=k.attributes;return x.children=G,x.attributes=oe,f?VA(x):$A(x)}function gg(n){var e=n.content,t=n.width,r=n.height,o=n.transform,s=n.extra,c=n.watchable,f=c===void 0?!1:c,d=J(J({},s.attributes),{},{class:s.classes.join(" ")});f&&(d[vi]="");var p=J({},s.styles);tf(o)&&(p.transform=mA({transform:o,width:t,height:r}),p["-webkit-transform"]=p.transform);var v=bs(p);v.length>0&&(d.style=v);var b=[];return b.push({tag:"span",attributes:d,children:[e]}),b}function UA(n){var e=n.content,t=n.extra,r=J(J({},t.attributes),{},{class:t.classes.join(" ")}),o=bs(t.styles);o.length>0&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[e]}),s}var lf=qn.styles;function df(n){var e=n[0],t=n[1],r=n.slice(4),o=ps(r,1),s=o[0],c=null;return Array.isArray(s)?c={tag:"g",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.PRIMARY),fill:"currentColor",d:s[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:e,height:t,icon:c}}var zA={found:!1,width:512,height:512};function HA(n,e){!Uv&&!de.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function hf(n,e){var t=e;return e==="fa"&&de.styleDefault!==null&&(e=Wr()),new Promise(function(r,o){if(t==="fa"){var s=fg(n)||{};n=s.iconName||n,e=s.prefix||e}if(n&&e&&lf[e]&&lf[e][n]){var c=lf[e][n];return r(df(c))}HA(n,e),r(J(J({},zA),{},{icon:de.showMissingIcons&&n?Ur("missingIconAbstract")||{}:{}}))})}var mg=function(){},pf=de.measurePerformance&&gs&&gs.mark&&gs.measure?gs:{mark:mg,measure:mg},Yo='FA "7.1.0"',qA=function(e){return pf.mark("".concat(Yo," ").concat(e," begins")),function(){return bg(e)}},bg=function(e){pf.mark("".concat(Yo," ").concat(e," ends")),pf.measure("".concat(Yo," ").concat(e),"".concat(Yo," ").concat(e," begins"),"".concat(Yo," ").concat(e," ends"))},vf={begin:qA,end:bg},Os=function(){};function yg(n){var e=n.getAttribute?n.getAttribute(vi):null;return typeof e=="string"}function GA(n){var e=n.getAttribute?n.getAttribute(Gc):null,t=n.getAttribute?n.getAttribute(Yc):null;return e&&t}function YA(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(de.replacementClass)}function JA(){if(de.autoReplaceSvg===!0)return Es.replace;var n=Es[de.autoReplaceSvg];return n||Es.replace}function KA(n){return Ze.createElementNS("http://www.w3.org/2000/svg",n)}function XA(n){return Ze.createElement(n)}function _g(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.ceFn,r=t===void 0?n.tag==="svg"?KA:XA:t;if(typeof n=="string")return Ze.createTextNode(n);var o=r(n.tag);Object.keys(n.attributes||[]).forEach(function(c){o.setAttribute(c,n.attributes[c])});var s=n.children||[];return s.forEach(function(c){o.appendChild(_g(c,{ceFn:r}))}),o}function ZA(n){var e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var Es={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(o){t.parentNode.insertBefore(_g(o),t)}),t.getAttribute(vi)===null&&de.keepOriginalSource){var r=Ze.createComment(ZA(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~ef(t).indexOf(de.replacementClass))return Es.replace(e);var o=new RegExp("".concat(de.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(f,d){return d===de.replacementClass||d.match(o)?f.toSvg.push(d):f.toNode.push(d),f},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",s.toNode.join(" "))}var c=r.map(function(f){return qo(f)}).join(`
650
650
  `);t.setAttribute(vi,""),t.innerHTML=c}};function wg(n){n()}function Sg(n,e){var t=typeof e=="function"?e:Os;if(n.length===0)t();else{var r=wg;de.mutateApproach===tA&&(r=Vr.requestAnimationFrame||wg),r(function(){var o=JA(),s=vf.begin("mutate");n.map(o),s(),t()})}}var gf=!1;function Og(){gf=!0}function mf(){gf=!1}var Is=null;function Eg(n){if(hv&&de.observeMutations){var e=n.treeCallback,t=e===void 0?Os:e,r=n.nodeCallback,o=r===void 0?Os:r,s=n.pseudoElementsCallback,c=s===void 0?Os:s,f=n.observeMutationsRoot,d=f===void 0?Ze:f;Is=new hv(function(p){if(!gf){var v=Wr();zi(p).forEach(function(b){if(b.type==="childList"&&b.addedNodes.length>0&&!yg(b.addedNodes[0])&&(de.searchPseudoElements&&c(b.target),t(b.target)),b.type==="attributes"&&b.target.parentNode&&de.searchPseudoElements&&c([b.target],!0),b.type==="attributes"&&yg(b.target)&&~sA.indexOf(b.attributeName))if(b.attributeName==="class"&&GA(b.target)){var w=ws(ef(b.target)),y=w.prefix,O=w.iconName;b.target.setAttribute(Gc,y||v),O&&b.target.setAttribute(Yc,O)}else YA(b.target)&&o(b.target)})}}),gr&&Is.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function QA(){Is&&Is.disconnect()}function eT(n){var e=n.getAttribute("style"),t=[];return e&&(t=e.split(";").reduce(function(r,o){var s=o.split(":"),c=s[0],f=s.slice(1);return c&&f.length>0&&(r[c]=f.join(":").trim()),r},{})),t}function tT(n){var e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),r=n.innerText!==void 0?n.innerText.trim():"",o=ws(ef(n));return o.prefix||(o.prefix=Wr()),e&&t&&(o.prefix=e,o.iconName=t),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=IA(o.prefix,n.innerText)||sf(o.prefix,tg(n.innerText))),!o.iconName&&de.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=n.firstChild.data)),o}function nT(n){var e=zi(n.attributes).reduce(function(t,r){return t.name!=="class"&&t.name!=="style"&&(t[r.name]=r.value),t},{});return e}function rT(){return{iconName:null,prefix:null,transform:rr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ig(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},t=tT(n),r=t.iconName,o=t.prefix,s=t.rest,c=nT(n),f=uf("parseNodeAttributes",{},n),d=e.styleParser?eT(n):[];return J({iconName:r,prefix:o,transform:rr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:d,attributes:c}},f)}var iT=qn.styles;function Ag(n){var e=de.autoReplaceSvg==="nest"?Ig(n,{styleParser:!1}):Ig(n);return~e.extra.classes.indexOf(qv)?Ur("generateLayersText",n,e):Ur("generateSvgReplacementMutation",n,e)}function oT(){return[].concat(Hn(Rv),Hn(Bv))}function Tg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!gr)return Promise.resolve();var t=Ze.documentElement.classList,r=function(b){return t.add("".concat(Vv,"-").concat(b))},o=function(b){return t.remove("".concat(Vv,"-").concat(b))},s=de.autoFetchSvg?oT():gv.concat(Object.keys(iT));s.includes("fa")||s.push("fa");var c=[".".concat(qv,":not([").concat(vi,"])")].concat(s.map(function(v){return".".concat(v,":not([").concat(vi,"])")})).join(", ");if(c.length===0)return Promise.resolve();var f=[];try{f=zi(n.querySelectorAll(c))}catch{}if(f.length>0)r("pending"),o("complete");else return Promise.resolve();var d=vf.begin("onTree"),p=f.reduce(function(v,b){try{var w=Ag(b);w&&v.push(w)}catch(y){Uv||y.name==="MissingIcon"&&console.error(y)}return v},[]);return new Promise(function(v,b){Promise.all(p).then(function(w){Sg(w,function(){r("active"),r("complete"),o("pending"),typeof e=="function"&&e(),d(),v()})}).catch(function(w){d(),b(w)})})}function aT(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ag(n).then(function(t){t&&Sg([t],e)})}function sT(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:cf(e||{}),o=t.mask;return o&&(o=(o||{}).icon?o:cf(o||{})),n(r,J(J({},t),{},{mask:o}))}}var uT=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.transform,o=r===void 0?rr:r,s=t.symbol,c=s===void 0?!1:s,f=t.mask,d=f===void 0?null:f,p=t.maskId,v=p===void 0?null:p,b=t.classes,w=b===void 0?[]:b,y=t.attributes,O=y===void 0?{}:y,S=t.styles,A=S===void 0?{}:S;if(e){var x=e.prefix,k=e.iconName,G=e.icon;return Ss(J({type:"icon"},e),function(){return mi("beforeDOMElementCreation",{iconDefinition:e,params:t}),ff({icons:{main:df(G),mask:d?df(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:k,transform:J(J({},rr),o),symbol:c,maskId:v,extra:{attributes:O,styles:A,classes:w}})})}},cT={mixout:function(){return{icon:sT(uT)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Tg,t.nodeCallback=aT,t}}},provides:function(e){e.i2svg=function(t){var r=t.node,o=r===void 0?Ze:r,s=t.callback,c=s===void 0?function(){}:s;return Tg(o,c)},e.generateSvgReplacementMutation=function(t,r){var o=r.iconName,s=r.prefix,c=r.transform,f=r.symbol,d=r.mask,p=r.maskId,v=r.extra;return new Promise(function(b,w){Promise.all([hf(o,s),d.iconName?hf(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var O=ps(y,2),S=O[0],A=O[1];b([t,ff({icons:{main:S,mask:A},prefix:s,iconName:o,transform:c,symbol:f,maskId:p,extra:v,watchable:!0})])}).catch(w)})},e.generateAbstractIcon=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.transform,f=t.styles,d=bs(f);d.length>0&&(o.style=d);var p;return tf(c)&&(p=Ur("generateAbstractTransformGrouping",{main:s,transform:c,containerWidth:s.width,iconWidth:s.width})),r.push(p||s.icon),{children:r,attributes:o}}}},fT={mixout:function(){return{layer:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,s=o===void 0?[]:o;return Ss({type:"layer"},function(){mi("beforeDOMElementCreation",{assembler:t,params:r});var c=[];return t(function(f){Array.isArray(f)?f.map(function(d){c=c.concat(d.abstract)}):c=c.concat(f.abstract)}),[{tag:"span",attributes:{class:["".concat(de.cssPrefix,"-layers")].concat(Hn(s)).join(" ")},children:c}]})}}}},lT={mixout:function(){return{counter:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,s=o===void 0?[]:o,c=r.attributes,f=c===void 0?{}:c,d=r.styles,p=d===void 0?{}:d;return Ss({type:"counter",content:t},function(){return mi("beforeDOMElementCreation",{content:t,params:r}),UA({content:t.toString(),extra:{attributes:f,styles:p,classes:["".concat(de.cssPrefix,"-layers-counter")].concat(Hn(s))}})})}}}},dT={mixout:function(){return{text:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?rr:o,c=r.classes,f=c===void 0?[]:c,d=r.attributes,p=d===void 0?{}:d,v=r.styles,b=v===void 0?{}:v;return Ss({type:"text",content:t},function(){return mi("beforeDOMElementCreation",{content:t,params:r}),gg({content:t,transform:J(J({},rr),s),extra:{attributes:p,styles:b,classes:["".concat(de.cssPrefix,"-layers-text")].concat(Hn(f))}})})}}},provides:function(e){e.generateLayersText=function(t,r){var o=r.transform,s=r.extra,c=null,f=null;if(pv){var d=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();c=p.width/d,f=p.height/d}return Promise.resolve([t,gg({content:t.innerHTML,width:c,height:f,transform:o,extra:s,watchable:!0})])}}},xg=new RegExp('"',"ug"),Ng=[1105920,1112319],Dg=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),Y1),QI),rI),bf=Object.keys(Dg).reduce(function(n,e){return n[e.toLowerCase()]=Dg[e],n},{}),hT=Object.keys(bf).reduce(function(n,e){var t=bf[e];return n[e]=t[900]||Hn(Object.entries(t))[0][1],n},{});function pT(n){var e=n.replace(xg,"");return tg(Hn(e)[0]||"")}function vT(n){var e=n.getPropertyValue("font-feature-settings").includes("ss01"),t=n.getPropertyValue("content"),r=t.replace(xg,""),o=r.codePointAt(0),s=o>=Ng[0]&&o<=Ng[1],c=r.length===2?r[0]===r[1]:!1;return s||c||e}function gT(n,e){var t=n.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),o=isNaN(r)?"normal":r;return(bf[t]||{})[o]||hT[t]}function Cg(n,e){var t="".concat(eA).concat(e.replace(":","-"));return new Promise(function(r,o){if(n.getAttribute(t)!==null)return r();var s=zi(n.children),c=s.filter(function(ye){return ye.getAttribute(qc)===e})[0],f=Vr.getComputedStyle(n,e),d=f.getPropertyValue("font-family"),p=d.match(oA),v=f.getPropertyValue("font-weight"),b=f.getPropertyValue("content");if(c&&!p)return n.removeChild(c),r();if(p&&b!=="none"&&b!==""){var w=f.getPropertyValue("content"),y=gT(d,v),O=pT(w),S=p[0].startsWith("FontAwesome"),A=vT(f),x=sf(y,O),k=x;if(S){var G=AA(O);G.iconName&&G.prefix&&(x=G.iconName,y=G.prefix)}if(x&&!A&&(!c||c.getAttribute(Gc)!==y||c.getAttribute(Yc)!==k)){n.setAttribute(t,k),c&&n.removeChild(c);var oe=rT(),q=oe.extra;q.attributes[qc]=e,hf(x,y).then(function(ye){var L=ff(J(J({},oe),{},{icons:{main:ye,mask:lg()},prefix:y,iconName:k,extra:q,watchable:!0})),F=Ze.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(F,n.firstChild):n.appendChild(F),F.outerHTML=L.map(function(ae){return qo(ae)}).join(`
651
651
  `),n.removeAttribute(t),r()}).catch(o)}else r()}else r()})}function mT(n){return Promise.all([Cg(n,"::before"),Cg(n,"::after")])}function bT(n){return n.parentNode!==document.head&&!~nA.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(qc)&&(!n.parentNode||n.parentNode.tagName!=="svg")}var yT=function(e){return!!e&&Wv.some(function(t){return e.includes(t)})},_T=function(e){if(!e)return[];var t=new Set,r=e.split(/,(?![^()]*\))/).map(function(d){return d.trim()});r=r.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(p){return p.trim()})});var o=hs(r),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;if(yT(c)){var f=Wv.reduce(function(d,p){return d.replace(p,"")},c);f!==""&&f!=="*"&&t.add(f)}}}catch(d){o.e(d)}finally{o.f()}return t};function Pg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gr){var t;if(e)t=n;else if(de.searchPseudoElementsFullScan)t=n.querySelectorAll("*");else{var r=new Set,o=hs(document.styleSheets),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;try{var f=hs(c.cssRules),d;try{for(f.s();!(d=f.n()).done;){var p=d.value,v=_T(p.selectorText),b=hs(v),w;try{for(b.s();!(w=b.n()).done;){var y=w.value;r.add(y)}}catch(S){b.e(S)}finally{b.f()}}}catch(S){f.e(S)}finally{f.f()}}catch(S){de.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(c.href," (").concat(S.message,`)
652
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(S){o.e(S)}finally{o.f()}if(!r.size)return;var O=Array.from(r).join(", ");try{t=n.querySelectorAll(O)}catch{}}return new Promise(function(S,A){var x=zi(t).filter(bT).map(mT),k=vf.begin("searchPseudoElements");Og(),Promise.all(x).then(function(){k(),mf(),S()}).catch(function(){k(),mf(),A()})})}}var wT={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Pg,t}}},provides:function(e){e.pseudoElements2svg=function(t){var r=t.node,o=r===void 0?Ze:r;de.searchPseudoElements&&Pg(o)}}},Mg=!1,ST={mixout:function(){return{dom:{unwatch:function(){Og(),Mg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(uf("mutationObserverCallbacks",{}))},noAuto:function(){QA()},watch:function(t){var r=t.observeMutationsRoot;Mg?mf():Eg(uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Rg=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),c=s[0],f=s.slice(1).join("-");if(c&&f==="h")return r.flipX=!0,r;if(c&&f==="v")return r.flipY=!0,r;if(f=parseFloat(f),isNaN(f))return r;switch(c){case"grow":r.size=r.size+f;break;case"shrink":r.size=r.size-f;break;case"left":r.x=r.x-f;break;case"right":r.x=r.x+f;break;case"up":r.y=r.y-f;break;case"down":r.y=r.y+f;break;case"rotate":r.rotate=r.rotate+f;break}return r},t)},OT={mixout:function(){return{parse:{transform:function(t){return Rg(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-transform");return o&&(t.transform=Rg(o)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var r=t.main,o=t.transform,s=t.containerWidth,c=t.iconWidth,f={transform:"translate(".concat(s/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),v="rotate(".concat(o.rotate," 0 0)"),b={transform:"".concat(d," ").concat(p," ").concat(v)},w={transform:"translate(".concat(c/2*-1," -256)")},y={outer:f,inner:b,path:w};return{tag:"g",attributes:J({},y.outer),children:[{tag:"g",attributes:J({},y.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:J(J({},r.icon.attributes),y.path)}]}]}}}},yf={x:0,y:0,width:"100%",height:"100%"};function Lg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function ET(n){return n.tag==="g"?n.children:[n]}var IT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-mask"),s=o?ws(o.split(" ").map(function(c){return c.trim()})):lg();return s.prefix||(s.prefix=Wr()),t.mask=s,t.maskId=r.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.mask,f=t.maskId,d=t.transform,p=s.width,v=s.icon,b=c.width,w=c.icon,y=gA({transform:d,containerWidth:b,iconWidth:p}),O={tag:"rect",attributes:J(J({},yf),{},{fill:"white"})},S=v.children?{children:v.children.map(Lg)}:{},A={tag:"g",attributes:J({},y.inner),children:[Lg(J({tag:v.tag,attributes:J(J({},v.attributes),y.path)},S))]},x={tag:"g",attributes:J({},y.outer),children:[A]},k="mask-".concat(f||Yv()),G="clip-".concat(f||Yv()),oe={tag:"mask",attributes:J(J({},yf),{},{id:k,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,x]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:G},children:ET(w)},oe]};return r.push(q,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(G,")"),mask:"url(#".concat(k,")")},yf)}),{children:r,attributes:o}}}},AT={provides:function(e){var t=!1;Vr.matchMedia&&(t=Vr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:J(J({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=J(J({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:J(J({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:J(J({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},c),{},{values:"1;0;1;1;0;1;"})}),r.push(f),r.push({tag:"path",attributes:J(J({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},c),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:J(J({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},TT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return t.symbol=s,t}}}},xT=[yA,cT,fT,lT,dT,wT,ST,OT,IT,AT,TT];LA(xT,{mixoutsTo:tn}),tn.noAuto;var Jo=tn.config;tn.library,tn.dom;var kg=tn.parse;tn.findIconDefinition,tn.toHtml;var NT=tn.icon;tn.layer,tn.text,tn.counter;function DT(n){return n=n-0,n===n}function Bg(n){return DT(n)?n:(n=n.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():""),n.charAt(0).toLowerCase()+n.slice(1))}function CT(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Gi=new Map,PT=1e3;function MT(n){if(Gi.has(n))return Gi.get(n);const e={};let t=0;const r=n.length;for(;t<r;){const o=n.indexOf(";",t),s=o===-1?r:o,c=n.slice(t,s).trim();if(c){const f=c.indexOf(":");if(f>0){const d=c.slice(0,f).trim(),p=c.slice(f+1).trim();if(d&&p){const v=Bg(d);e[v.startsWith("webkit")?CT(v):v]=p}}}t=s+1}if(Gi.size===PT){const o=Gi.keys().next().value;o&&Gi.delete(o)}return Gi.set(n,e),e}function jg(n,e,t={}){if(typeof e=="string")return e;const r=(e.children||[]).map(v=>jg(n,v)),o=e.attributes||{},s={};for(const[v,b]of Object.entries(o))switch(!0){case v==="class":{s.className=b;break}case v==="style":{s.style=MT(String(b));break}case v.startsWith("aria-"):case v.startsWith("data-"):{s[v.toLowerCase()]=b;break}default:s[Bg(v)]=b}const{style:c,role:f,"aria-label":d,...p}=t;return c&&(s.style=s.style?{...s.style,...c}:c),f&&(s.role=f),d&&(s["aria-label"]=d,s["aria-hidden"]="false"),n(e.tag,{...p,...s},...r)}var RT=jg.bind(null,R.createElement),Fg=(n,e)=>{const t=R.useId();return n||(e?t:void 0)},LT=class{constructor(n="react-fontawesome"){this.enabled=!1;let e=!1;try{e=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=n,this.enabled=e}log(...n){this.enabled&&console.log(`[${this.scope}]`,...n)}warn(...n){this.enabled&&console.warn(`[${this.scope}]`,...n)}error(...n){this.enabled&&console.error(`[${this.scope}]`,...n)}};typeof process<"u"&&process.env.FA_VERSION;var kT="searchPseudoElementsFullScan"in Jo?"7.0.0":"6.0.0",BT=Number.parseInt(kT)>=7,Ko="fa",yr={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},jT={left:"fa-pull-left",right:"fa-pull-right"},FT={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},$T={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function VT(n){const e=Jo.cssPrefix||Jo.familyPrefix||Ko;return e===Ko?n:n.replace(new RegExp(String.raw`(?<=^|\s)${Ko}-`,"g"),`${e}-`)}function WT(n){const{beat:e,fade:t,beatFade:r,bounce:o,shake:s,spin:c,spinPulse:f,spinReverse:d,pulse:p,fixedWidth:v,inverse:b,border:w,flip:y,size:O,rotation:S,pull:A,swapOpacity:x,rotateBy:k,widthAuto:G,className:oe}=n,q=[];return oe&&q.push(...oe.split(" ")),e&&q.push(yr.beat),t&&q.push(yr.fade),r&&q.push(yr.beatFade),o&&q.push(yr.bounce),s&&q.push(yr.shake),c&&q.push(yr.spin),d&&q.push(yr.spinReverse),f&&q.push(yr.spinPulse),p&&q.push(yr.pulse),v&&q.push(_r.fixedWidth),b&&q.push(_r.inverse),w&&q.push(_r.border),y===!0&&q.push(_r.flip),(y==="horizontal"||y==="both")&&q.push(_r.flipHorizontal),(y==="vertical"||y==="both")&&q.push(_r.flipVertical),O!=null&&q.push($T[O]),S!=null&&S!==0&&q.push(FT[S]),A!=null&&q.push(jT[A]),x&&q.push(_r.swapOpacity),BT?(k&&q.push(_r.rotateBy),G&&q.push(_r.widthAuto),(Jo.cssPrefix||Jo.familyPrefix||Ko)===Ko?q:q.map(VT)):q}var UT=n=>typeof n=="object"&&"icon"in n&&!!n.icon;function $g(n){if(n)return UT(n)?n:kg.icon(n)}function zT(n){return Object.keys(n)}var Vg=new LT("FontAwesomeIcon"),Wg={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},HT=new Set(Object.keys(Wg)),Yi=R.forwardRef((n,e)=>{const t={...Wg,...n},{icon:r,mask:o,symbol:s,title:c,titleId:f,maskId:d,transform:p}=t,v=Fg(d,!!o),b=Fg(f,!!c),w=$g(r);if(!w)return Vg.error("Icon lookup is undefined",r),null;const y=WT(t),O=typeof p=="string"?kg.transform(p):p,S=$g(o),A=NT(w,{...y.length>0&&{classes:y},...O&&{transform:O},...S&&{mask:S},symbol:s,title:c,titleId:b,maskId:v});if(!A)return Vg.error("Could not find icon",w),null;const{abstract:x}=A,k={ref:e};for(const G of zT(t))HT.has(G)||(k[G]=t[G]);return RT(x[0],k)});Yi.displayName="FontAwesomeIcon";var qT={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GT={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},Ug={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},YT={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function JT({layoutId:n,justId:e,winInfo:t}){console.log("TabTitle justId",e);const[r,o]=Pc(),[s]=R.useState({x:0,y:0}),c=nr(n),f=c.getTabTitleTooltip(e),d=v=>{console.log("closeWin!!!",v)},p=(v,b)=>{c.activeWin({justId:b})};return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"just-icon",onClick:v=>p(v,e),title:f,children:t.getTabIcon(e,n)}),Q.jsx("div",{className:"just-title",onClick:v=>p(v,e),title:f,children:c.getTabTitle(e)??e.title}),Q.jsx("div",{className:"just-icon just-close",onClick:()=>d(e),children:Q.jsx(Yi,{icon:Ug})}),Q.jsx(qp,{state:r.state,endTransition:r.endTransition,anchorPoint:s,onClose:()=>o(!1),children:Q.jsxs(ls,{onClick:()=>d(e),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close"}),Q.jsx("div",{className:"just-icon"})]})})]})}const zg=vr(JT);function KT(n){const{layoutId:e,isFullScreenView:t,dndAccept:r,winInfo:o,justBranch:s,justId:c,justStack:f,rect:d}=n,p=R.useRef(null),[,v]=Pc(),[,b]=R.useState({x:0,y:0}),w=nr(e),[{isDragging:y},O]=cE({type:c.viewId,item:{justBranch:s,justId:c,index:-1},collect:x=>({isDragging:x.isDragging()})}),[,S]=Sc({accept:r,collect(x){return{handlerId:x.getHandlerId()}},hover(x,k){if(!p.current||c===x.justId)return;const G=p.current.getBoundingClientRect(),oe=k.getClientOffset(),q=(G.right-G.left)/2,ye=oe.x-G.left,L=x.justId,F=c,ae=f.tabs.filter(ce=>!$e.isEquals(ce,L));let we=$e.indexOf(ae,F);ye>q&&(we+=1),x.pos="stack",x.index=we}});R.useEffect(()=>{if($e.isEquals(c,w.lastActiveId??null)){if(p.current==null||d==null)return;const x=p.current.getBoundingClientRect();(d.left>x.left||d.right<x.right)&&p.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[w.lastActiveTm]),R.useLayoutEffect(()=>{p.current&&O(S(p))},[S,O]);const A=R.useCallback(x=>{x.preventDefault(),b({x:x.clientX,y:x.clientY}),v(!0)},[v]);return Q.jsx("div",{className:Un("just-draggable-title","just-title-menus",{dragging:y,"just-active":$e.isEquals(f.active,c),"last-active":$e.isEquals(w.lastActiveId,c)}),ref:p,onContextMenu:A,children:o.getTabTitle?o.getTabTitle({justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o}):Q.jsx(zg,{justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o})})}const Hg=vr(KT);function qg(n){let e=null;return()=>(e==null&&(e=n()),e)}function XT(n,e){return n.filter(t=>t!==e)}function ZT(n,e){const t=new Set,r=s=>t.add(s);n.forEach(r),e.forEach(r);const o=[];return t.forEach(s=>o.push(s)),o}class QT{enter(e){const t=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=ZT(this.entered.filter(r),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=XT(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class ex{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(t[r]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gg="__NATIVE_FILE__",Yg="__NATIVE_URL__",Jg="__NATIVE_TEXT__",Kg="__NATIVE_HTML__",Xg=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gg,HTML:Kg,TEXT:Jg,URL:Yg},Symbol.toStringTag,{value:"Module"}));function _f(n,e,t){const r=e.reduce((o,s)=>o||n.getData(s),"");return r??t}const wf={[Gg]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[Kg]:{exposeProperties:{html:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[Yg]:{exposeProperties:{urls:(n,e)=>_f(n,e,"").split(`
652
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(S){o.e(S)}finally{o.f()}if(!r.size)return;var O=Array.from(r).join(", ");try{t=n.querySelectorAll(O)}catch{}}return new Promise(function(S,A){var x=zi(t).filter(bT).map(mT),k=vf.begin("searchPseudoElements");Og(),Promise.all(x).then(function(){k(),mf(),S()}).catch(function(){k(),mf(),A()})})}}var wT={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Pg,t}}},provides:function(e){e.pseudoElements2svg=function(t){var r=t.node,o=r===void 0?Ze:r;de.searchPseudoElements&&Pg(o)}}},Mg=!1,ST={mixout:function(){return{dom:{unwatch:function(){Og(),Mg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(uf("mutationObserverCallbacks",{}))},noAuto:function(){QA()},watch:function(t){var r=t.observeMutationsRoot;Mg?mf():Eg(uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Rg=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),c=s[0],f=s.slice(1).join("-");if(c&&f==="h")return r.flipX=!0,r;if(c&&f==="v")return r.flipY=!0,r;if(f=parseFloat(f),isNaN(f))return r;switch(c){case"grow":r.size=r.size+f;break;case"shrink":r.size=r.size-f;break;case"left":r.x=r.x-f;break;case"right":r.x=r.x+f;break;case"up":r.y=r.y-f;break;case"down":r.y=r.y+f;break;case"rotate":r.rotate=r.rotate+f;break}return r},t)},OT={mixout:function(){return{parse:{transform:function(t){return Rg(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-transform");return o&&(t.transform=Rg(o)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var r=t.main,o=t.transform,s=t.containerWidth,c=t.iconWidth,f={transform:"translate(".concat(s/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),v="rotate(".concat(o.rotate," 0 0)"),b={transform:"".concat(d," ").concat(p," ").concat(v)},w={transform:"translate(".concat(c/2*-1," -256)")},y={outer:f,inner:b,path:w};return{tag:"g",attributes:J({},y.outer),children:[{tag:"g",attributes:J({},y.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:J(J({},r.icon.attributes),y.path)}]}]}}}},yf={x:0,y:0,width:"100%",height:"100%"};function Lg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function ET(n){return n.tag==="g"?n.children:[n]}var IT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-mask"),s=o?ws(o.split(" ").map(function(c){return c.trim()})):lg();return s.prefix||(s.prefix=Wr()),t.mask=s,t.maskId=r.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.mask,f=t.maskId,d=t.transform,p=s.width,v=s.icon,b=c.width,w=c.icon,y=gA({transform:d,containerWidth:b,iconWidth:p}),O={tag:"rect",attributes:J(J({},yf),{},{fill:"white"})},S=v.children?{children:v.children.map(Lg)}:{},A={tag:"g",attributes:J({},y.inner),children:[Lg(J({tag:v.tag,attributes:J(J({},v.attributes),y.path)},S))]},x={tag:"g",attributes:J({},y.outer),children:[A]},k="mask-".concat(f||Yv()),G="clip-".concat(f||Yv()),oe={tag:"mask",attributes:J(J({},yf),{},{id:k,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,x]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:G},children:ET(w)},oe]};return r.push(q,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(G,")"),mask:"url(#".concat(k,")")},yf)}),{children:r,attributes:o}}}},AT={provides:function(e){var t=!1;Vr.matchMedia&&(t=Vr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:J(J({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=J(J({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:J(J({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:J(J({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},c),{},{values:"1;0;1;1;0;1;"})}),r.push(f),r.push({tag:"path",attributes:J(J({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},c),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:J(J({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},TT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return t.symbol=s,t}}}},xT=[yA,cT,fT,lT,dT,wT,ST,OT,IT,AT,TT];LA(xT,{mixoutsTo:tn}),tn.noAuto;var Jo=tn.config;tn.library,tn.dom;var kg=tn.parse;tn.findIconDefinition,tn.toHtml;var NT=tn.icon;tn.layer,tn.text,tn.counter;function DT(n){return n=n-0,n===n}function Bg(n){return DT(n)?n:(n=n.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():""),n.charAt(0).toLowerCase()+n.slice(1))}function CT(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Gi=new Map,PT=1e3;function MT(n){if(Gi.has(n))return Gi.get(n);const e={};let t=0;const r=n.length;for(;t<r;){const o=n.indexOf(";",t),s=o===-1?r:o,c=n.slice(t,s).trim();if(c){const f=c.indexOf(":");if(f>0){const d=c.slice(0,f).trim(),p=c.slice(f+1).trim();if(d&&p){const v=Bg(d);e[v.startsWith("webkit")?CT(v):v]=p}}}t=s+1}if(Gi.size===PT){const o=Gi.keys().next().value;o&&Gi.delete(o)}return Gi.set(n,e),e}function jg(n,e,t={}){if(typeof e=="string")return e;const r=(e.children||[]).map(v=>jg(n,v)),o=e.attributes||{},s={};for(const[v,b]of Object.entries(o))switch(!0){case v==="class":{s.className=b;break}case v==="style":{s.style=MT(String(b));break}case v.startsWith("aria-"):case v.startsWith("data-"):{s[v.toLowerCase()]=b;break}default:s[Bg(v)]=b}const{style:c,role:f,"aria-label":d,...p}=t;return c&&(s.style=s.style?{...s.style,...c}:c),f&&(s.role=f),d&&(s["aria-label"]=d,s["aria-hidden"]="false"),n(e.tag,{...p,...s},...r)}var RT=jg.bind(null,R.createElement),Fg=(n,e)=>{const t=R.useId();return n||(e?t:void 0)},LT=class{constructor(n="react-fontawesome"){this.enabled=!1;let e=!1;try{e=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=n,this.enabled=e}log(...n){this.enabled&&console.log(`[${this.scope}]`,...n)}warn(...n){this.enabled&&console.warn(`[${this.scope}]`,...n)}error(...n){this.enabled&&console.error(`[${this.scope}]`,...n)}};typeof process<"u"&&process.env.FA_VERSION;var kT="searchPseudoElementsFullScan"in Jo?"7.0.0":"6.0.0",BT=Number.parseInt(kT)>=7,Ko="fa",yr={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},jT={left:"fa-pull-left",right:"fa-pull-right"},FT={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},$T={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function VT(n){const e=Jo.cssPrefix||Jo.familyPrefix||Ko;return e===Ko?n:n.replace(new RegExp(String.raw`(?<=^|\s)${Ko}-`,"g"),`${e}-`)}function WT(n){const{beat:e,fade:t,beatFade:r,bounce:o,shake:s,spin:c,spinPulse:f,spinReverse:d,pulse:p,fixedWidth:v,inverse:b,border:w,flip:y,size:O,rotation:S,pull:A,swapOpacity:x,rotateBy:k,widthAuto:G,className:oe}=n,q=[];return oe&&q.push(...oe.split(" ")),e&&q.push(yr.beat),t&&q.push(yr.fade),r&&q.push(yr.beatFade),o&&q.push(yr.bounce),s&&q.push(yr.shake),c&&q.push(yr.spin),d&&q.push(yr.spinReverse),f&&q.push(yr.spinPulse),p&&q.push(yr.pulse),v&&q.push(_r.fixedWidth),b&&q.push(_r.inverse),w&&q.push(_r.border),y===!0&&q.push(_r.flip),(y==="horizontal"||y==="both")&&q.push(_r.flipHorizontal),(y==="vertical"||y==="both")&&q.push(_r.flipVertical),O!=null&&q.push($T[O]),S!=null&&S!==0&&q.push(FT[S]),A!=null&&q.push(jT[A]),x&&q.push(_r.swapOpacity),BT?(k&&q.push(_r.rotateBy),G&&q.push(_r.widthAuto),(Jo.cssPrefix||Jo.familyPrefix||Ko)===Ko?q:q.map(VT)):q}var UT=n=>typeof n=="object"&&"icon"in n&&!!n.icon;function $g(n){if(n)return UT(n)?n:kg.icon(n)}function zT(n){return Object.keys(n)}var Vg=new LT("FontAwesomeIcon"),Wg={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},HT=new Set(Object.keys(Wg)),Yi=R.forwardRef((n,e)=>{const t={...Wg,...n},{icon:r,mask:o,symbol:s,title:c,titleId:f,maskId:d,transform:p}=t,v=Fg(d,!!o),b=Fg(f,!!c),w=$g(r);if(!w)return Vg.error("Icon lookup is undefined",r),null;const y=WT(t),O=typeof p=="string"?kg.transform(p):p,S=$g(o),A=NT(w,{...y.length>0&&{classes:y},...O&&{transform:O},...S&&{mask:S},symbol:s,title:c,titleId:b,maskId:v});if(!A)return Vg.error("Could not find icon",w),null;const{abstract:x}=A,k={ref:e};for(const G of zT(t))HT.has(G)||(k[G]=t[G]);return RT(x[0],k)});Yi.displayName="FontAwesomeIcon";var qT={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GT={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},Ug={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},YT={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function JT({layoutId:n,justId:e,winInfo:t}){console.log("TabTitle justId",e);const[r,o]=Pc(),[s]=R.useState({x:0,y:0}),c=nr(n),f=c.getTabTitleTooltip(e),d=v=>{c.removeWin({justId:v})},p=(v,b)=>{c.activeWin({justId:b})};return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"just-icon",onClick:v=>p(v,e),title:f,children:t.getTabIcon(e,n)}),Q.jsx("div",{className:"just-title",onClick:v=>p(v,e),title:f,children:c.getTabTitle(e)??e.title}),Q.jsx("div",{className:"just-icon just-close",onClick:()=>d(e),children:Q.jsx(Yi,{icon:Ug})}),Q.jsx(qp,{state:r.state,endTransition:r.endTransition,anchorPoint:s,onClose:()=>o(!1),children:Q.jsxs(ls,{onClick:()=>d(e),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close"}),Q.jsx("div",{className:"just-icon"})]})})]})}const zg=vr(JT);function KT(n){const{layoutId:e,isFullScreenView:t,dndAccept:r,winInfo:o,justBranch:s,justId:c,justStack:f,rect:d}=n,p=R.useRef(null),[,v]=Pc(),[,b]=R.useState({x:0,y:0}),w=nr(e),[{isDragging:y},O]=cE({type:c.viewId,item:{justBranch:s,justId:c,index:-1},collect:x=>({isDragging:x.isDragging()})}),[,S]=Sc({accept:r,collect(x){return{handlerId:x.getHandlerId()}},hover(x,k){if(!p.current||c===x.justId)return;const G=p.current.getBoundingClientRect(),oe=k.getClientOffset(),q=(G.right-G.left)/2,ye=oe.x-G.left,L=x.justId,F=c,ae=f.tabs.filter(ce=>!$e.isEquals(ce,L));let we=$e.indexOf(ae,F);ye>q&&(we+=1),x.pos="stack",x.index=we}});R.useEffect(()=>{if($e.isEquals(c,w.lastActiveId??null)){if(p.current==null||d==null)return;const x=p.current.getBoundingClientRect();(d.left>x.left||d.right<x.right)&&p.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[w.lastActiveTm]),R.useLayoutEffect(()=>{p.current&&O(S(p))},[S,O]);const A=R.useCallback(x=>{x.preventDefault(),b({x:x.clientX,y:x.clientY}),v(!0)},[v]);return Q.jsx("div",{className:Un("just-draggable-title","just-title-menus",{dragging:y,"just-active":$e.isEquals(f.active,c),"last-active":$e.isEquals(w.lastActiveId,c)}),ref:p,onContextMenu:A,children:o.getTabTitle?o.getTabTitle({justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o}):Q.jsx(zg,{justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o})})}const Hg=vr(KT);function qg(n){let e=null;return()=>(e==null&&(e=n()),e)}function XT(n,e){return n.filter(t=>t!==e)}function ZT(n,e){const t=new Set,r=s=>t.add(s);n.forEach(r),e.forEach(r);const o=[];return t.forEach(s=>o.push(s)),o}class QT{enter(e){const t=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=ZT(this.entered.filter(r),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=XT(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class ex{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(t[r]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gg="__NATIVE_FILE__",Yg="__NATIVE_URL__",Jg="__NATIVE_TEXT__",Kg="__NATIVE_HTML__",Xg=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gg,HTML:Kg,TEXT:Jg,URL:Yg},Symbol.toStringTag,{value:"Module"}));function _f(n,e,t){const r=e.reduce((o,s)=>o||n.getData(s),"");return r??t}const wf={[Gg]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[Kg]:{exposeProperties:{html:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[Yg]:{exposeProperties:{urls:(n,e)=>_f(n,e,"").split(`
653
653
  `),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[Jg]:{exposeProperties:{text:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function tx(n,e){const t=wf[n];if(!t)throw new Error(`native type ${n} has no configuration`);const r=new ex(t);return r.loadDataTransfer(e),r}function Sf(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(wf).filter(t=>{const r=wf[t];return r?.matchesTypes?r.matchesTypes.some(o=>e.indexOf(o)>-1):!1})[0]||null}const nx=qg(()=>/firefox/i.test(navigator.userAgent)),Zg=qg(()=>!!window.safari);class Qg{interpolate(e){const{xs:t,ys:r,c1s:o,c2s:s,c3s:c}=this;let f=t.length-1;if(e===t[f])return r[f];let d=0,p=c.length-1,v;for(;d<=p;){v=Math.floor(.5*(d+p));const y=t[v];if(y<e)d=v+1;else if(y>e)p=v-1;else return r[v]}f=Math.max(0,p);const b=e-t[f],w=b*b;return r[f]+o[f]*b+s[f]*w+c[f]*b*w}constructor(e,t){const{length:r}=e,o=[];for(let y=0;y<r;y++)o.push(y);o.sort((y,O)=>e[y]<e[O]?-1:1);const s=[],c=[];let f,d;for(let y=0;y<r-1;y++)f=e[y+1]-e[y],d=t[y+1]-t[y],s.push(f),c.push(d/f);const p=[c[0]];for(let y=0;y<s.length-1;y++){const O=c[y],S=c[y+1];if(O*S<=0)p.push(0);else{f=s[y];const A=s[y+1],x=f+A;p.push(3*x/((x+A)/O+(x+f)/S))}}p.push(c[c.length-1]);const v=[],b=[];let w;for(let y=0;y<p.length-1;y++){w=c[y];const O=p[y],S=1/s[y],A=O+p[y+1]-w-w;v.push((w-O-A)*S),b.push(A*S*S)}this.xs=e,this.ys=t,this.c1s=p,this.c2s=v,this.c3s=b}}const rx=1;function em(n){const e=n.nodeType===rx?n:n.parentElement;if(!e)return null;const{top:t,left:r}=e.getBoundingClientRect();return{x:r,y:t}}function As(n){return{x:n.clientX,y:n.clientY}}function ix(n){var e;return n.nodeName==="IMG"&&(nx()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(n)))}function ox(n,e,t,r){let o=n?e.width:t,s=n?e.height:r;return Zg()&&n&&(s/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:s}}function ax(n,e,t,r,o){const s=ix(e),f=em(s?n:e),d={x:t.x-f.x,y:t.y-f.y},{offsetWidth:p,offsetHeight:v}=n,{anchorX:b,anchorY:w}=r,{dragPreviewWidth:y,dragPreviewHeight:O}=ox(s,e,p,v),S=()=>{let ye=new Qg([0,.5,1],[d.y,d.y/v*O,d.y+O-v]).interpolate(w);return Zg()&&s&&(ye+=(window.devicePixelRatio-1)*O),ye},A=()=>new Qg([0,.5,1],[d.x,d.x/p*y,d.x+y-p]).interpolate(b),{offsetX:x,offsetY:k}=o,G=x===0||x,oe=k===0||k;return{x:G?x:A(),y:oe?k:S()}}class sx{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function ux(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function tm(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){ux(n,o,t[o])})}return n}class cx{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const o=c=>this.handleDragStart(c,e),s=c=>this.handleSelectStart(c);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=c=>this.handleDragEnter(c,e),o=c=>this.handleDragOver(c,e),s=c=>this.handleDrop(c,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return tm({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return tm({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Xg).some(t=>Xg[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=tx(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const s=this.sourceNodes.get(o);return s&&em(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const c=As(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:c});const{dataTransfer:f}=o,d=Sf(f);if(this.monitor.isDragging()){if(f&&typeof f.setDragImage=="function"){const v=this.monitor.getSourceId(),b=this.sourceNodes.get(v),w=this.sourcePreviewNodes.get(v)||b;if(w){const{anchorX:y,anchorY:O,offsetX:S,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),G=ax(b,w,c,{anchorX:y,anchorY:O},{offsetX:S,offsetY:A});f.setDragImage(w,G.x,G.y)}}try{f?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(f&&!f.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:f}=o,d=Sf(f);d&&this.beginDragNativeItem(d,f)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,s.length>0&&this.actions.hover(s,{clientOffset:As(o)}),s.some(f=>this.monitor.canDropOnTarget(f))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=As(o),this.scheduleHover(s),(s||[]).some(f=>this.monitor.canDropOnTarget(f))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;o.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}else Sf(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:As(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const s=o.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(o.preventDefault(),s.dragDrop()))},this.options=new sx(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new QT(this.isNodeInDocument)}}const fx=function(e,t,r){return new cx(e,t,r)};function lx({layoutId:n,justBranch:e,isFullScreenView:t}){const r=nr(n),o=()=>{console.log("closeAllTabs justBranch",e),r.removeAllTabs({branch:e})},s=async(c=!1)=>{t?r.setLayout(null):(r.setFullScreenLayoutByBranch(e),r.setFullScreenHideTitle(c))};return Q.jsxs(Q.Fragment,{children:[Q.jsxs(ls,{className:"just-menu-item",onClick:()=>o(),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close All"}),Q.jsx("div",{className:"just-icon"})]}),Q.jsxs(ls,{className:"just-menu-item",onClick:()=>s(!0),children:[Q.jsx("div",{className:"just-icon",children:Q.jsx(Yi,{icon:qT})}),Q.jsx("div",{className:"just-title",children:t?"F11":"Full"}),Q.jsx("div",{className:"just-icon"})]})]})}const nm=vr(lx);function dx({layoutId:n,isFullScreenView:e,dndAccept:t,justBranch:r,justStack:o,getWinInfo:s,getTabMenu:c}){const f=R.useRef(null),[d,p]=R.useState(null),v=nr(n),b=A=>{v.removeWin({justId:A})},w=A=>{v.activeWin({justId:A})},y=(A,x)=>{v.moveWin({pos:"stack",justId:x.justId,branch:r,index:x.index??-1})},[{isOver:O},S]=Sc(()=>({accept:t,collect:A=>({isOver:A.isOver()}),drop(A,x){y(x.getItemType(),x.getItem())},hover(A,x){f.current&&(A.index=-1)}}),[o]);return R.useLayoutEffect(()=>{f.current&&S(f)},[S]),R.useEffect(()=>{if(f.current===null)return;function A(){if(f.current===null)return;const k=f.current.getBoundingClientRect()??null;p(k)}A();const x=new ResizeObserver(A);return x.observe(f.current),window.addEventListener("scroll",A,!0),()=>{x.disconnect(),window.removeEventListener("scroll",A,!0)}},[]),Q.jsxs("div",{className:Un("just-win-title"),tabIndex:1,children:[Q.jsx("div",{className:Un("just-title-list",{"is-over":O}),ref:f,children:o.tabs.map(A=>Q.jsx(Hg,{layoutId:n,isFullScreenView:e,dndAccept:t,rect:d,justId:A,justBranch:r,justStack:o,winInfo:s(A)},[...r,$e.toString(A)].join(",")))}),Q.jsxs("div",{className:"just-title-menus",children:[Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:YT})}),children:o.tabs.map(A=>Q.jsxs(ls,{className:Un("just-menu-item",{active:$e.isEquals(o.active,A)}),children:[Q.jsx("div",{className:"just-icon",onClick:()=>w(A),children:s(A).getTabIcon(A,n)}),Q.jsx("div",{className:"just-title",onClick:()=>w(A),children:v.getTabTitle(A)??A.title}),Q.jsx("div",{className:"just-icon just-close",onClick:x=>{x.stopPropagation(),b(A)},children:Q.jsx(Yi,{icon:Ug})})]},$e.toString(A)))}),Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:GT})}),children:c?c(n,r,o,e):Q.jsx(nm,{layoutId:n,justBranch:r,justStack:o,isFullScreenView:e})})]})]})}const rm=vr(dx);function hx(n){const e=R.useRef(null),{layoutId:t,dndAccept:r,getWinInfo:o,justBranch:s,justStack:c}=n,[f,d]=R.useState(null),p=nr(t),v=(y,O)=>{O.pos&&(O.pos==="stack"?p.moveWin({pos:O.pos,justId:O.justId,branch:s,index:O.index??-1}):p.moveWin({pos:O.pos,justId:O.justId,branch:s,direction:O.direction??"row"}))},[{isOver:b},w]=Sc(()=>({accept:r,collect:y=>({isOver:y.isOver()}),drop(y,O){e.current&&v(O.getItemType(),O.getItem())},hover(y,O){if(!e.current)return;const S=e.current.getBoundingClientRect(),A=O.getClientOffset(),x=(S.right-S.left)/2,k=(S.bottom-S.top)/2,G=A.x-S.left,oe=A.y-S.top,q=G-x,ye=oe-k,L=Math.abs(q*100/x),F=Math.abs(ye*100/k);if(L<60&&F<60){y.pos="stack";const ae={top:S.top,left:S.left,width:S.width,height:S.height};d(ae)}else{const ae=L>F?"row":"column",ce=Math.sign(ae==="row"?q:ye)>0?"second":"first";y.direction=ae,y.pos=ce;const Se={top:ce==="second"&&ae==="column"?S.top+S.height/2:S.top,left:ce==="second"&&ae==="row"?S.left+S.width/2:S.left,width:ae==="row"?S.width/2:S.width,height:ae==="column"?S.height/2:S.height};d(Se)}}}),[c]);return R.useLayoutEffect(()=>{e.current&&w(e)},[w]),Q.jsxs("div",{className:Un("just-win-body",{isOver:b,"last-active":$e.isEquals(c.active,p.lastActiveId)}),ref:e,children:[c.tabs.map(y=>Q.jsx(R.Activity,{mode:$e.isEquals(c.active,y)?"visible":"hidden",children:o(y).getView(y,t)},$e.toString(y))),b&&f!=null&&Q.jsx("div",{className:"just-overlay",style:{top:f.top,left:f.left,width:`${f.width}px`,height:`${f.height}px`}})]})}const im=vr(hx);function px({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}){const d=nr(n),p=d.fullScreenHideTitle,v=t!==!0,b=()=>{s.active&&d.activeWin({justId:s.active})};return Q.jsxs("div",{className:"just-win",onFocusCapture:b,tabIndex:1,children:[v&&!p&&Q.jsx(rm,{layoutId:n,isFullScreenView:e,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}),Q.jsx(im,{layoutId:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c})]})}const om=vr(px);var Of,am;function Ef(){if(am)return Of;am=1;function n(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Of=n,Of}var If,sm;function vx(){if(sm)return If;sm=1;var n=typeof dn=="object"&&dn&&dn.Object===Object&&dn;return If=n,If}var Af,um;function cm(){if(um)return Af;um=1;var n=vx(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Af=t,Af}var Tf,fm;function gx(){if(fm)return Tf;fm=1;var n=cm(),e=function(){return n.Date.now()};return Tf=e,Tf}var xf,lm;function mx(){if(lm)return xf;lm=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return xf=e,xf}var Nf,dm;function bx(){if(dm)return Nf;dm=1;var n=mx(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return Nf=t,Nf}var Df,hm;function pm(){if(hm)return Df;hm=1;var n=cm(),e=n.Symbol;return Df=e,Df}var Cf,vm;function yx(){if(vm)return Cf;vm=1;var n=pm(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,o=n?n.toStringTag:void 0;function s(c){var f=t.call(c,o),d=c[o];try{c[o]=void 0;var p=!0}catch{}var v=r.call(c);return p&&(f?c[o]=d:delete c[o]),v}return Cf=s,Cf}var Pf,gm;function _x(){if(gm)return Pf;gm=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Pf=t,Pf}var Mf,mm;function wx(){if(mm)return Mf;mm=1;var n=pm(),e=yx(),t=_x(),r="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;function c(f){return f==null?f===void 0?o:r:s&&s in Object(f)?e(f):t(f)}return Mf=c,Mf}var Rf,bm;function Sx(){if(bm)return Rf;bm=1;function n(e){return e!=null&&typeof e=="object"}return Rf=n,Rf}var Lf,ym;function Ox(){if(ym)return Lf;ym=1;var n=wx(),e=Sx(),t="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&n(o)==t}return Lf=r,Lf}var kf,_m;function wm(){if(_m)return kf;_m=1;var n=bx(),e=Ef(),t=Ox(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(p){if(typeof p=="number")return p;if(t(p))return r;if(e(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=e(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=n(p);var b=s.test(p);return b||c.test(p)?f(p.slice(2),b?2:8):o.test(p)?r:+p}return kf=d,kf}var Bf,Sm;function Ex(){if(Sm)return Bf;Sm=1;var n=Ef(),e=gx(),t=wm(),r="Expected a function",o=Math.max,s=Math.min;function c(f,d,p){var v,b,w,y,O,S,A=0,x=!1,k=!1,G=!0;if(typeof f!="function")throw new TypeError(r);d=t(d)||0,n(p)&&(x=!!p.leading,k="maxWait"in p,w=k?o(t(p.maxWait)||0,d):w,G="trailing"in p?!!p.trailing:G);function oe(he){var ct=v,ht=b;return v=b=void 0,A=he,y=f.apply(ht,ct),y}function q(he){return A=he,O=setTimeout(F,d),x?oe(he):y}function ye(he){var ct=he-S,ht=he-A,ft=d-ct;return k?s(ft,w-ht):ft}function L(he){var ct=he-S,ht=he-A;return S===void 0||ct>=d||ct<0||k&&ht>=w}function F(){var he=e();if(L(he))return ae(he);O=setTimeout(F,ye(he))}function ae(he){return O=void 0,G&&v?oe(he):(v=b=void 0,y)}function we(){O!==void 0&&clearTimeout(O),A=0,v=S=b=O=void 0}function ce(){return O===void 0?y:ae(e())}function Se(){var he=e(),ct=L(he);if(v=arguments,b=this,S=he,ct){if(O===void 0)return q(S);if(k)return clearTimeout(O),O=setTimeout(F,d),oe(S)}return O===void 0&&(O=setTimeout(F,d)),y}return Se.cancel=we,Se.flush=ce,Se}return Bf=c,Bf}var jf,Om;function Ix(){if(Om)return jf;Om=1;var n=Ex(),e=Ef(),t="Expected a function";function r(o,s,c){var f=!0,d=!0;if(typeof o!="function")throw new TypeError(t);return e(c)&&(f="leading"in c?!!c.leading:f,d="trailing"in c?!!c.trailing:d),n(o,s,{leading:f,maxWait:s,trailing:d})}return jf=r,jf}var Ax=Ix();const Tx=po(Ax);var Ff,Em;function xx(){if(Em)return Ff;Em=1;function n(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}return Ff=n,Ff}var $f,Im;function Nx(){if(Im)return $f;Im=1;var n=xx(),e=wm();function t(r,o,s){return s===void 0&&(s=o,o=void 0),s!==void 0&&(s=e(s),s=s===s?s:0),o!==void 0&&(o=e(o),o=o===o?o:0),n(e(r),o,s)}return $f=t,$f}var Dx=Nx();const Vf=po(Dx),Cx=1e3/30;function Px({node:n,containerRef:e,onChange:t,onRelease:r}){const o=R.useRef(null),[s,c]=R.useState(!1),f=()=>{s||(o.current.ownerDocument.addEventListener("mousemove",b,!0),o.current.ownerDocument.addEventListener("mouseup",v,!0),c(!0))},d=()=>{o.current&&(o.current.ownerDocument.removeEventListener("mousemove",b,!0),o.current.ownerDocument.removeEventListener("mouseup",v,!0),c(!1))},p=O=>{O.button===0&&(O.preventDefault(),f())},v=O=>{if(d(),e==null)return;const S=w(O,n,e);S!==null&&r(S)},b=O=>{O.preventDefault(),e!=null&&y(O,n,e)},w=(O,S,A)=>{if(A.current==null)return null;const x=A.current.getBoundingClientRect(),k=S.direction==="row"?O.clientX:O.clientY,G=S.direction==="row"?x.left:x.top,oe=S.direction==="row"?x.width:x.height,q=Vf(k-G,0,oe),ye=Vf(oe-q,0,oe),L=Vf(q*100/oe,0,100);return S.type==="split-percentage"?{type:S.type,size:L}:S.type==="split-pixels"?S.primary==="first"?{type:"split-pixels",primary:"first",size:q}:{type:"split-pixels",primary:"second",size:ye}:null},y=Tx((O,S,A)=>{if(A.current==null)return null;const x=w(O,S,A);x!==null&&t(x)},Cx);return R.useEffect(()=>{}),Q.jsx("div",{ref:o,className:Un("just-splitter"),onMouseDown:p})}const Am=vr(Px);function Wf({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,node:o,justBranch:s,getWinInfo:c,getTabMenu:f}){const d=R.useRef(null),p=nr(n),v=({size:w})=>{p.updateResize({branch:s,size:w})},b=(w,y)=>w.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${w.size}% - 3px)`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}%`}:w.type==="split-pixels"&&y===w.primary?{flexBasis:`${w.size}px`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}px`}:{};return Q.jsxs("div",{ref:d,className:Un("just-node"),children:[o?.type==="stack"&&Q.jsx(om,{hideTitle:o.hideTitle??t,layoutId:n,isFullScreenView:e,dndAccept:o.dndAccept??r,justStack:o,justBranch:s,getWinInfo:c,getTabMenu:f}),(o?.type==="split-percentage"||o?.type==="split-pixels")&&Q.jsxs("div",{className:Un(o.type,{"just-column":o.direction==="column","just-row":o.direction==="row"}),children:[Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="first"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-first",{"just-primary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first","just-secondary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first")}),style:b(o,"first"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.first,justBranch:[...s,"first"],getWinInfo:c,getTabMenu:f})})}),!(o.type==="split-pixels"&&(o.noSplitter===!0||o.primaryHide===!0))&&Q.jsx(Am,{layoutId:n,node:o,justBranch:s,containerRef:d,onChange:v,onRelease:v}),Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="second"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-second",{"just-primary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"),"just-secondary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"}),style:b(o,"second"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.second,justBranch:[...s,"second"],getWinInfo:c,getTabMenu:f})})})]},`JustNode-${s.join(",")}`)]})}const Uf=vr(Wf);function Mx({layoutId:n,getWinInfo:e,getTabMenu:t,initialValue:r}){const o=`${n}_FULLSCREEN`,s=nr(n),c=nr(o);return R.useEffect(()=>{c.layout===null&&(s.setFullScreenLayoutByBranch(null),s.setFullScreenHideTitle(!1))},[c.layout]),R.useEffect(()=>{s.setLayout(r),s.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),R.useEffect(()=>{const f=()=>{},d=async p=>{p.key==="Escape"?(console.log("esc"),s.setFullScreenLayoutByBranch(null)):p.key==="F11"&&(console.log("F11"),s.fullScreenLayout!==null&&s.setFullScreenLayoutByBranch(null)),p.altKey&&(p.key==="ArrowRight"?c.layout!==null?c.activeNextWin():s.activeNextWin():p.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():s.activePrevWin()))};return window.addEventListener("keydown",d),document.addEventListener("fullscreenchange",f),()=>{window.removeEventListener("keydown",d),document.removeEventListener("fullscreenchange",f)}},[]),R.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",s.fullScreenLayout),c.setLayout(s.fullScreenLayout),s.lastActiveId&&c.activeWin({justId:s.lastActiveId})},[s.fullScreenLayout]),R.useEffect(()=>{c.setFullScreenHideTitle(s.fullScreenHideTitle)},[s.fullScreenHideTitle]),Q.jsx(jO,{backend:fx,children:Q.jsxs("div",{className:Un("just-layout"),children:[s.fullScreenLayout===null&&Q.jsx(Uf,{layoutId:n,isFullScreenView:!1,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:s.layout,justBranch:[],getWinInfo:e,getTabMenu:t}),s.fullScreenLayout!==null&&Q.jsx(Uf,{layoutId:o,isFullScreenView:!0,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:e,getTabMenu:t})]})})}const Rx=vr(Mx);Fe.JUST_LAYOUT_TYPES=ii,Fe.JustDraggableTitle=Hg,Fe.JustLayoutView=Rx,Fe.JustNodeView=Uf,Fe.JustSplitter=Am,Fe.JustTabMenu=nm,Fe.JustTabTitle=zg,Fe.JustUtil=$e,Fe.JustWinBodyView=im,Fe.JustWinTitleView=rm,Fe.JustWinView=om,Fe.container=Xa,Fe.justLayoutModule=fp,Fe.stableStringify=eh,Fe.storeCache=Bo,Fe.useJustLayoutStore=nr,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kangtae49/just-layout",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -52,6 +52,7 @@
52
52
  "dev": "vite",
53
53
  "build": "tsc -b && vite build",
54
54
  "lint": "eslint .",
55
- "preview": "vite preview"
55
+ "preview": "vite preview",
56
+ "release": "pnpm publish --access public"
56
57
  }
57
58
  }