polotno 2.41.0 → 2.41.1

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/polotno.bundle.js CHANGED
@@ -369,7 +369,7 @@ https://polotno.com/docs/server-api`,iC={unsplashList:({query:e,page:t=1})=>`${i
369
369
  `.trim()),x:a,y:o,width:l,height:s}}(u,{stroke:g,strokeWidth:p,smooth:!0}),r=e.selectedElementsIds.slice();e.history.transaction(()=>{t.addElement({type:"svg",x:n.x,y:n.y,width:n.width,height:n.height,src:n.src,opacity:m},{skipSelect:!0})}),e.selectElements(r)}catch(e){console.error("Error creating path SVG:",e)}d([])}},[f,s,u,g,p,m,t,e.history,e]);y(_).useEffect(()=>{if(!s)return;let e=()=>w();return window.addEventListener("mouseup",e),window.addEventListener("touchend",e),()=>{window.removeEventListener("mouseup",e),window.removeEventListener("touchend",e)}},[s,w]);let C=y(_).useMemo(()=>u.flatMap(e=>[e.x,e.y]),[u]);return(y(_).useEffect(()=>{if(f&&h.current){let e=h.current.getStage();if(!e)return;let t=p*i;if(t>100||t<4)e.container().style.cursor="crosshair";else{let n=t/2,r=t/2,i=`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}">
370
370
  <circle cx="${r}" cy="${r}" r="${n-1}" fill="${g}" opacity="${m}" stroke="white" stroke-width="1"/>
371
371
  <circle cx="${r}" cy="${r}" r="${n-1}" fill="none" stroke="black" stroke-width="1" opacity="0.3"/>
372
- </svg>`,a=`data:image/svg+xml;base64,${btoa(i)}`;e.container().style.cursor=`url("${a}") ${r} ${r}, crosshair`}return()=>{e.container()&&(e.container().style.cursor="")}}},[f,g,p,m,i]),f)?(0,S.jsxs)(rA,{ref:h,listening:f,x:a+l*i,y:o+l*i,scaleX:i,scaleY:i,children:[(0,S.jsx)(rM,{x:-(a+l*i)/i,y:-(o+l*i)/i,width:n/i,height:r/i,fill:"transparent",onMouseDown:v,onMouseMove:x,onMouseUp:w,onTouchStart:v,onTouchMove:x,onTouchEnd:w}),u.length>0&&(0,S.jsx)(rN,{points:C,stroke:g,strokeWidth:p,lineCap:"round",lineJoin:"round",opacity:m,tension:.5,listening:!1})]}):null});I(e=>{if(rF.isAlreadyRendering())queueMicrotask(()=>rF.batchedUpdates(e,null));else rF.batchedUpdates(e,null)});let gM=nI.DD._drag;window.removeEventListener("mousemove",gM),nI.DD._drag=function(e){(0,P.runInAction)(()=>{gM.call(this,e)})},window.addEventListener("mousemove",nI.DD._drag);let gL={enabledAnchors:["top-left","top-center","top-right","middle-left","bottom-left","bottom-right","bottom-center","middle-right"],rotateEnabled:!0,rotationSnaps:[0,45,90,135,180,225,270,315],ignoreStroke:!0,flipEnabled:!1,keepRatio:!0},gN={text:{enabledAnchors:["top-left","top-right","middle-left","bottom-left","bottom-right","middle-right"]},svg:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},gif:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},line:{enabledAnchors:[],borderEnabled:!1,rotateEnabled:!1},image:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},many:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},group:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},table:{keepRatio:!1,enabledAnchors:["top-left","top-center","top-right","middle-left","middle-right","bottom-left","bottom-center","bottom-right"]}};function gj(e,t){gN[e]=gN[e]||t,Object.assign(gN[e],t)}let gD=e=>(0,S.jsx)(rM,{...e,preventDefault:!1}),gz=({url:e,...t})=>{let[n,r]=y(rV)(e,"anonymous"),i=n?function(e,t,n="scale"){let r,i,a=t.width/t.height;a>=e.width/e.height?(r=e.width,i=e.width/a):(r=e.height*a,i=e.height);let o=0,l=0;return"left-top"===n?(o=0,l=0):"left-middle"===n?(o=0,l=(e.height-i)/2):"left-bottom"===n?(o=0,l=e.height-i):"center-top"===n?(o=(e.width-r)/2,l=0):"center-middle"===n?(o=(e.width-r)/2,l=(e.height-i)/2):"center-bottom"===n?(o=(e.width-r)/2,l=e.height-i):"right-top"===n?(o=e.width-r,l=0):"right-middle"===n?(o=e.width-r,l=(e.height-i)/2):"right-bottom"===n?(o=e.width-r,l=e.height-i):"scale"===n?(o=0,l=0,r=e.width,i=e.height):console.error(Error("Unknown clip position property - "+n)),{cropX:o,cropY:l,cropWidth:r,cropHeight:i}}(n,{width:t.width,height:t.height},"center-middle"):{};return co(r,e,"page background"),(0,S.jsx)(rj,{image:n,...t,...i})},gB=e=>{let t=li({a:{width:e.width,height:e.height},width:e.width,height:e.height},e.fill);return(0,S.jsx)(rM,{...e,...t})},gF=e=>{let{background:t,scale:n,borderColor:r,transparencyBackgroundColor:i,...a}=e,o=y(_).useMemo(()=>!!nI.Util.colorToRGBA(t)||aF(t),[t]),l=y(_).useMemo(()=>{if(aF(t))return!0;let e=nI.Util.colorToRGBA(t);return!e||e.a<1},[t]),s=y(_).useMemo(()=>{if(!l||i)return null;let e=document.createElement("canvas");e.width=60,e.height=60;let t=e.getContext("2d");return t&&(t.fillStyle="black",t.fillRect(30,0,30,30),t.fillRect(0,30,30,30)),e},[l,i]);return(0,S.jsxs)(y(_).Fragment,{children:[l&&(i?(0,S.jsx)(rM,{fill:i,...a,hideInExport:!0}):(0,S.jsx)(rM,{fillPatternImage:s,...a,opacity:.1,hideInExport:!0})),o?(0,S.jsx)(gB,{fill:t,...a}):(0,S.jsx)(gz,{url:t,...a})]})},gH=F(({selection:e})=>{if(!e.visible)return null;let{selectionRectStyle:t}=r9();return(0,S.jsx)(rM,{name:"selection",x:Math.min(e.x1,e.x2),y:Math.min(e.y1,e.y2),width:Math.abs(e.x1-e.x2),height:Math.abs(e.y1-e.y2),fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth})}),gV=F(({x:e,y:t,width:n,height:r,rotation:i,anchor:a,store:o})=>{let l,{transformLabelStyle:s}=r9();if(void 0===e||void 0===t||void 0===n||void 0===r||void 0===i||void 0===a)return null;let c=oc({x:e,y:t,width:n,height:r,rotation:nI.Util.radToDeg(i)}),u=(r/2+70)*Math.cos(i-Math.PI/2),d=(r/2+70)*Math.sin(i-Math.PI/2),h=aN({unit:o.unit,dpi:o.dpi,px:n/o.scale,precious:+("px"!==o.unit)})+" x "+aN({unit:o.unit,dpi:o.dpi,px:r/o.scale,precious:+("px"!==o.unit)})+("px"===o.unit?"":" "+o.unit);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(rR,{x:(c.minX+c.maxX)/2+u,y:(c.minY+c.maxY)/2+d,offsetX:14,offsetY:14,visible:"rotater"===a,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:s.fill}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:s.textFill,padding:8,text:((l=180*i/Math.PI%360)>180?l-=360:l<-180&&(l+=360),Math.round(l)).toString()+"°"})]}),(0,S.jsxs)(rR,{x:(c.minX+c.maxX)/2,y:c.maxY+20,visible:"rotater"!==a,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:s.fill,pointerDirection:"up",pointerHeight:0,pointerWidth:0}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:s.textFill,padding:8,text:h})]})]})}),gU=F(({elements:e,store:t})=>{let n=e.filter(e=>e.alwaysOnTop),r=e.filter(e=>!e.alwaysOnTop).concat(n);return(0,S.jsx)(y(_).Fragment,{children:r.map(e=>(0,S.jsx)(gA,{store:t,element:e,onClick:()=>{console.warn("Polotno warning: onClick callback is deprecated. Just stop using it. Polotno will do selection automatically.")}},e.id))})}),gW=null,gq=e=>{gW=e},g$=atob("UG9sb3RubyBmcmVlIGxpY2Vuc2UgbGltaXRhdGlvbiBleGNlZWRlZCAtIFBsZWFzZSB1cGdyYWRlIHlvdXIgYWNjb3VudC4="),gG=atob("I2MwMzkyYg=="),gK=atob("djAuOS4y"),gX=e=>(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)(rR,{fill:gG,height:200,children:[(0,S.jsx)("Tag",{fill:gG}),(0,S.jsx)(rD,{...e,fill:"white",text:g$,height:void 0,padding:10,fontSize:20})]})}),gY=atob("RlJFRSAgVFJJQUwgIExJQ0VOU0U=");atob("UG93ZXJlZCBieSBQb2xvdG5v");let gZ=atob("TElDRU5TRSAgS0VZICBJUyAgTUlTU0lORw=="),gQ=atob("UGxlYXNlIGFjdGl2YXRlIHlvdXIgbGljZW5zZS4KTGljZW5zZSByZWxhdGVkIHF1ZXN0aW9uczoKcG9sb3Ruby5jb20vY29udGFjdA=="),gJ=e=>{let t=1===iW.value,n=t?230:195;return(0,S.jsxs)(rA,{...e,listening:!1,children:[(0,S.jsx)(rM,{fill:gG,width:n,height:24,cornerRadius:2}),(0,S.jsx)(rD,{text:t?gZ:gY,fill:"white",fontSize:13,fontFamily:"monospace",width:n,align:"center",y:5,listening:!1}),t&&(0,S.jsx)(rD,{text:gQ,fill:"rgba(0,0,0,0.6)",fontSize:14,y:30,listening:!1})]})};var g0=F(({store:e,page:t,width:n,height:r,pageControlsEnabled:i,components:a,altCloneEnabled:o,groupClickBehavior:l="select-child",viewportSize:s,layout:c="vertical",tooltipSafeArea:u,transformerSafeArea:d})=>{var h;let f=r9(),p=f.transformerStyle,g=e.bleedVisible?t.bleed:0,m=t.computedWidth+2*g,b=t.computedHeight+2*g,v=(n-m*e.scale)/2,x=(r-b*e.scale)/2,w=y(_).useRef(null),C=y(_).useRef(null),k=y(_).useRef(null),E=y(_).useRef(!1),[T,O]=y(_).useState(null),[I,A]=y(_).useState({}),[R,M]=y(_).useState(0),L=(({store:e})=>{let[t,n]=y(_).useState(!1),[r,i]=y(_).useState({x:0,y:0});return{open:y(_).useCallback(e=>{n(!0),i(e)},[]),close:y(_).useCallback(()=>{n(!1)},[]),props:{isOpen:t,offset:r,setIsOpen:n}}})({store:e}),N=e.selectedElements.find(e=>e._cropModeEnabled),j=e.selectedElements.find(e=>e.curveEnabled),D=e.selectedShapes.filter(e=>!e.resizable).length>0,z=e.selectedShapes.filter(e=>!e.draggable).length>0,B=e.selectedElements.filter(e=>!e.visible).length>0;y(_).useLayoutEffect(()=>{if(!w.current)return;let t=w.current.getStage(),n=e.selectedShapes.map(e=>e._cropModeEnabled?null:t.findOne("#"+e.id)).filter(e=>!!e),r=1===e.selectedElements.length,i=r&&e.selectedElements[0]?.type||"many",a=gN[i],o={...gL,...a||{}};a&&("svg"!==i&&"image"!==i&&"gif"!==i||e.selectedElements[0].keepRatio||(o.enabledAnchors=gL.enabledAnchors),"text"===i&&iT.textVerticalResizeEnabled&&(o.enabledAnchors=gN.text.enabledAnchors?.concat(["bottom-center","top-center"])),"text"===i&&r&&e.selectedElements[0].curveEnabled&&(o.enabledAnchors=gN.many.enabledAnchors)),w.current.setAttrs({...o,...p}),D&&w.current.enabledAnchors([]),z&&w.current.rotateEnabled(!1),n.find(e=>e?.isDragging())&&n.forEach(e=>{e.isDragging()||e?.startDrag()}),w.current.nodes(n),cR(),w.current.getLayer()?.batchDraw()},[e.selectedShapes,N,D,B,z,j,p]);let F=()=>{let e=w.current;if(!e)return;if(!e.isTransforming())return void A({});if(!e.nodes().length||!e.isTransforming())return;let t=e.__getNodeRect(),n=e?.getActiveAnchor(),r=e.getStage();A({anchor:n,x:t.x-(r?.x()??0),y:t.y-(r?.y()??0),rotation:t.rotation,width:t.width,height:t.height})},H=y(_).useCallback(()=>{if(w.current?.isTransforming())return;let e=w.current;if(!e||!e.nodes().length)return void M(0);let t=e.getClientRect();e.getStage()&&M(function(e,t,n,r=0){let i=e.x+e.width/2,a=e.y+e.height/2,o=e.width/2,l=e.height/2,s=r*Math.PI/180,c=e=>{let t,r=e*Math.PI/180,c=(e%360+360)%360,u=Math.sin(r)*((t=0===c||180===c?l:o)+n),d=-Math.cos(r)*(t+n);return{x:i+(u*Math.cos(s)-d*Math.sin(s)),y:a+(u*Math.sin(s)+d*Math.cos(s))}},u=e=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom;if(u(c(0)))return 0;for(let e of[180,270,90])if(u(c(e)))return e;return 0}(t,{top:d?.top||0,bottom:r-(d?.bottom||0),left:d?.left||0,right:n-(d?.right||0)},p.rotateAnchorOffset,e.rotation()))},[d,n,r]);y(_).useEffect(()=>{w.current?.update(),F(),H()},[e.scale,H]),y(_).useEffect(()=>{H()},[e.selectedShapes,H]);let V=(h=()=>({visible:!1,x1:0,y1:0,x2:0,y2:0}),(0,_.useState)(function(){return(0,P.observable)(h(),void 0,{autoBind:!0})})[0]),U=y(_).useRef(!1),W=(0,P.action)(t=>{if(e.role===sJ.VIEWER)return;U.current=!1;let n=t.target.findAncestor(".elements-container"),r=t.target.findAncestor("Transformer"),i=t.target.findAncestor(".page-abs-container");if(n||r||i)return;let a=t.target.getStage()?.getPointerPosition();a&&(a.x-=t.target.getStage()?.x()??0,a.y-=t.target.getStage()?.y()??0,V.visible=!0,V.x1=a.x,V.y1=a.y,V.x2=a.x,V.y2=a.y,(t.target.getStage()?.getPointersPositions().length??0)>=2&&(V.visible=!1))});(({stageRef:e,containerRef:t,viewportSize:n})=>{y(_).useEffect(()=>{let n=t.current?.closest(".polotno-workspace-inner");function r(){if(!e.current)return;let r=t.current?.getBoundingClientRect(),i=n?.getBoundingClientRect();if(!r||!i)return;let a=Math.max(0,i.left-r.left-100),o=Math.max(0,i.top-r.top-100);e.current.position({x:-a,y:-o}),e.current.container().style.transform=`translate(${a}px, ${o}px)`}return r(),n?.addEventListener("scroll",r),()=>{n?.removeEventListener("scroll",r)}},[n.width,n.height])})({stageRef:C,containerRef:k,viewportSize:s}),y(_).useEffect(()=>{let t=(0,P.action)(e=>{if(!V.visible)return;C.current?.setPointersPositions(e);let t=C.current?.getPointerPosition();t?(t.x-=C.current?.x()??0,t.y-=C.current?.y()??0):t={x:V.x2,y:V.y2},V.x2=t.x,V.y2=t.y}),n=(0,P.action)(()=>{if(!V.visible||!C.current)return;let t=C.current.findOne(".selection"),n=t?t.getClientRect({skipStroke:!0}):{width:0,height:0,x:0,y:0};if(n.width&&n.height){let t=[];C.current.find(".element").forEach(r=>{let i=r.getClientRect(),a=e.getElementById(r.id()),o=a?.draggable,l=a?.selectable;nI.Util.haveIntersection(n,i)&&o&&l&&t.push(a.top.id)});let r=[...new Set(t)];U.current=!0,e.selectElements(r)}V.visible=!1});return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n,{capture:!0}),window.addEventListener("touchend",n,{capture:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n)}},[]);let q=y(_).useCallback(n=>{if(!e.selectedElements[0]||n&&e.selectedElementsIds.includes(n))return;let r=ou(e.selectedShapes),i=oc(n?e.getElementById(n):{x:0,y:0,width:t.computedWidth,height:t.computedHeight,rotation:0}),a=[];r.minX>i.maxX&&a.push({distance:r.minX-i.maxX,box1:r,box2:i,points:[{x:r.minX,y:r.minY+r.height/2},{x:i.maxX,y:r.minY+r.height/2},{x:i.maxX,y:i.minY+i.height/2}]}),r.maxX<i.minX&&a.push({distance:i.minX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:r.minY+r.height/2},{x:i.minX,y:r.minY+r.height/2},{x:i.minX,y:i.minY+i.height/2}]}),r.minY>i.maxY&&a.push({box1:r,box2:i,distance:r.minY-i.maxY,points:[{x:r.minX+r.width/2,y:r.minY},{x:r.minX+r.width/2,y:i.maxY},{x:i.minX+i.width/2,y:i.maxY}]}),r.maxY<i.minY&&a.push({box1:r,box2:i,distance:i.minY-r.maxY,points:[{x:r.minX+r.width/2,y:r.maxY},{x:r.minX+r.width/2,y:i.minY},{x:i.minX+i.width/2,y:i.minY}]});let o=r.minX>=i.minX&&r.maxX<=i.maxX&&r.minY>=i.minY&&r.maxY<=i.maxY;if(o&&(a.push({distance:r.minX-i.minX,box1:r,box2:i,points:[{x:r.minX,y:r.minY+r.height/2},{x:i.minX,y:r.minY+r.height/2},{x:i.minX,y:i.minY+i.height/2}]}),a.push({distance:i.maxX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:r.minY+r.height/2},{x:i.maxX,y:r.minY+r.height/2},{x:i.maxX,y:i.minY+i.height/2}]}),a.push({box1:r,box2:i,distance:r.minY-i.minY,points:[{x:r.minX+r.width/2,y:r.minY},{x:r.minX+r.width/2,y:i.minY},{x:i.minX+i.width/2,y:i.minY}]}),a.push({box1:r,box2:i,distance:i.maxY-r.maxY,points:[{x:r.minX+r.width/2,y:r.maxY},{x:r.minX+r.width/2,y:i.maxY},{x:i.minX+i.width/2,y:i.maxY}]})),0===a.length&&!o){let e=r.minX<i.maxX&&r.maxX>i.minX,t=r.minY<i.maxY&&r.maxY>i.minY;if(e&&t){let e=(Math.max(r.minY,i.minY)+Math.min(r.maxY,i.maxY))/2,t=(Math.max(r.minX,i.minX)+Math.min(r.maxX,i.maxX))/2;r.minX<i.minX?a.push({distance:i.minX-r.minX,box1:r,box2:i,points:[{x:r.minX,y:e},{x:i.minX,y:e},{x:i.minX,y:e}]}):a.push({distance:r.minX-i.minX,box1:r,box2:i,points:[{x:r.minX,y:e},{x:i.minX,y:e},{x:i.minX,y:e}]}),r.maxX>i.maxX?a.push({distance:r.maxX-i.maxX,box1:r,box2:i,points:[{x:i.maxX,y:e},{x:r.maxX,y:e},{x:i.maxX,y:e}]}):a.push({distance:i.maxX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:e},{x:i.maxX,y:e},{x:i.maxX,y:e}]}),r.minY<i.minY?a.push({box1:r,box2:i,distance:i.minY-r.minY,points:[{x:t,y:r.minY},{x:t,y:i.minY},{x:t,y:i.minY}]}):a.push({box1:r,box2:i,distance:r.minY-i.minY,points:[{x:t,y:r.minY},{x:t,y:i.minY},{x:t,y:i.minY}]}),r.maxY>i.maxY?a.push({box1:r,box2:i,distance:r.maxY-i.maxY,points:[{x:t,y:i.maxY},{x:t,y:r.maxY},{x:t,y:i.maxY}]}):a.push({box1:r,box2:i,distance:i.maxY-r.maxY,points:[{x:t,y:r.maxY},{x:t,y:i.maxY},{x:t,y:i.maxY}]})}}JSON.stringify(T)!==JSON.stringify(a)&&O(a)},[e,t]);y(_).useEffect(()=>{if(!e.selectedElements[0]){T&&O(null);return}e.distanceGuidesVisible?q():T&&O(null)},[e.distanceGuidesVisible,q,e.selectedShapes.map(e=>`${e.x},${e.y},${e.width},${e.height},${e.rotation}`).join("|")]);let $=y(_).useRef(!1);y(_).useEffect(()=>{let e,t=k.current?.closest(".polotno-workspace-inner"),n=()=>{$.current=!0,clearTimeout(e),e=setTimeout(()=>{$.current=!1},300)};return t?.addEventListener("scroll",n),()=>{clearTimeout(e),t?.removeEventListener("scroll",n)}},[]),y(_).useEffect(()=>{let e=C.current;if(!e)return;let t=e.container(),n=e=>{e.touches.length>=2&&(w.current?.isDragging()&&w.current.stopDrag(),w.current?.nodes().forEach(e=>{e.isDragging()&&e.stopDrag()}))};return t.addEventListener("touchstart",n,{passive:!0}),t.addEventListener("touchmove",n,{passive:!0}),()=>{t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",n)}},[]);let G=n=>{let r;if(e.role===sJ.VIEWER||(e.activePage!==t&&t.select(),$.current||U.current))return;let i=n.evt.shiftKey,a=n.evt.ctrlKey||n.evt.metaKey,o=n.target.findAncestor(".elements-container"),s=n.target.findAncestor(".page-abs-container"),c=n.target.findAncestor("Transformer"),u=n.target.findAncestor(".page-container",!0);if(!(i||a)&&!o&&!c&&!s&&!u&&!V.visible){e.selectElements([]),e.selectPages([]);return}if(a&&!i){let t,n=C.current,r=n?.getPointerPosition();if(!n||!r)return;let i=n.getAllIntersections(r),a=new Set,o=[];for(let t of[...i].reverse()){let n=t.findAncestor(".element",!0);if(!n)continue;let r=e.getElementById(n.id()),i=r?.top;i&&(a.has(i.id)||(a.add(i.id),o.push(i.id)))}if(0===o.length)return;if(1===e.selectedElementsIds.length){let n=e.selectedElementsIds[0],r=o.indexOf(n);t=-1===r?o[0]:o[(r+1)%o.length]}else t=o[0];e.selectElements([t]),e.selectPages([]);return}let d=n.target.findAncestor(".element-container",!0),h=d?.findOne(".element")||n.target.findAncestor(".element",!0),f=e.getElementById(h?.id()),p=f?.top;r="select-group"===l?p?.id:p?e.selectedElements.some(e=>e.top?.id===p.id)?f?.id:p?.id:void 0;let g=f?.id;if(g&&e.selectedElementsIds.indexOf(g)>=0&&!i)return;let m=!!r&&e.selectedElementsIds.indexOf(r)>=0,y=n.target.findAncestor(".page-container",!0);if(r&&i&&!m){let t=e.selectedElementsIds.concat([r]),n=new Set(t),i=t.filter(t=>{let r=e.getElementById(t);if(!r)return!1;for(let e=r.parent;e;e=e?.parent)if(n.has(e.id))return!1;return!0});e.selectElements(i),e.selectPages([])}else r&&i&&m?e.selectElements(e.selectedElementsIds.filter(e=>e!==r)):!r||i||m?r&&!i&&m||(y?(i||e.selectElements([]),e.selectPages([t.id])):e.selectPages([])):(e.selectElements([r]),e.selectPages([]))};!function(e){let t=y(_).useRef(null),{snapGuideStyle:n}=r9(),r=y(_).useRef(n);r.current=n;let i=e=>e.hasName("element")||e.hasName("page-background")||!t.current&&e.hasName("elements-area");function a(t){let n=e.current?.getStage(),r=[],a=[];return n.find(i).forEach(e=>{if(!(t.indexOf(e)>=0)){var n=e.getClientRect({skipShadow:!0,skipStroke:!0});r.push({offset:n.x,node:e,snap:"start"},{offset:n.x+n.width,node:e,snap:"end"},{offset:n.x+n.width/2,node:e,snap:"center"}),a.push({offset:n.y,node:e,snap:"start"},{offset:n.y+n.height,node:e,snap:"end"},{offset:n.y+n.height/2,node:e,snap:"center"})}}),{vertical:r,horizontal:a}}function o(t){let n=e.current?.getLayer(),i=n?.children.find(e=>"line-guides"===e.name());t.forEach(e=>{if("H"===e.orientation){var t=new nI.Line({x:-n.getStage().x(),y:-n.getStage().y(),points:[-6e3,e.lineGuide,6e3,e.lineGuide],stroke:r.current.stroke,strokeWidth:r.current.strokeWidth,name:"guid-line",dash:r.current.dash});i?.add(t),n.batchDraw()}else if("V"===e.orientation){var t=new nI.Line({x:-n.getStage().x(),y:-n.getStage().y(),points:[e.lineGuide,-6e3,e.lineGuide,6e3],stroke:r.current.stroke,strokeWidth:r.current.strokeWidth,name:"guid-line",dash:r.current.dash});i?.add(t)}})}let l=e=>{let t,n,r,i=e.target.getLayer().children.find(e=>"line-guides"===e.name());i?.destroyChildren();var l,s=cA(a(e.target.nodes()),(n=oc({...t=(l=e.target).__getNodeRect(),rotation:nI.Util.radToDeg(t.rotation)}),r=l.getAbsolutePosition(),{vertical:[{guide:n.x,offset:r.x-n.x,snap:"start",nodes:l.nodes()},{guide:n.x+n.width/2,offset:r.x-n.x-n.width/2,snap:"center",nodes:l.nodes()},{guide:n.x+n.width,offset:r.x-n.x-n.width,snap:"end",nodes:l.nodes()}],horizontal:[{guide:n.y,offset:r.y-n.y,snap:"start",nodes:l.nodes()},{guide:n.y+n.height/2,offset:r.y-n.y-n.height/2,snap:"center",nodes:l.nodes()},{guide:n.y+n.height,offset:r.y-n.y-n.height,snap:"end",nodes:l.nodes()}]}));if(!s.length)return;o(s);let c=e.target.getAbsolutePosition();e.target.nodes().map(e=>e.getAbsolutePosition());let u={...c};s.forEach(e=>{switch(e.snap){case"start":case"center":case"end":switch(e.orientation){case"V":u.x=e.lineGuide+e.offset;break;case"H":u.y=e.lineGuide+e.offset}}});let d=u.x-c.x,h=u.y-c.y;e.evt.ctrlKey||e.evt.metaKey||e.target.nodes().forEach(e=>{let t=e.getAbsolutePosition();e.setAbsolutePosition({x:t.x+d,y:t.y+h})})},s=(t,n,r)=>{let i,l=e.current,s=l.getLayer().children.find(e=>"line-guides"===e.name());if(s?.destroyChildren(),"rotater"===l.getActiveAnchor())return n;let c=cN[l.getActiveAnchor()],u=l.findOne(`.${c}`)?.getAbsolutePosition();if(!u)return n;let d={x:t.x-u.x,y:t.y-u.y},h=(p={x:n.x-t.x,y:n.y-t.y},{x:(i=cL(p,g=d)/cL(g,g))*g.x,y:i*g.y});if(Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2))>5)return n;let f={x:t.x+h.x,y:t.y+h.y};var p,g,m=cA(a(l.nodes()),{vertical:[{guide:f.x,offset:0,snap:"start",nodes:l.nodes()}],horizontal:[{guide:f.y,offset:0,snap:"start",nodes:l.nodes()}]});if(!m.length||(o(m),r.ctrlKey||r.metaKey))return n;let y=[];if(m.forEach(e=>{let t=function(e,t,n){if("V"===n.orientation){let r=n.lineGuide;if(1e-4>Math.abs(t.x-e.x))return null;let i=(t.y-e.y)/(t.x-e.x),a=e.y-i*e.x;return{x:r,y:i*r+a}}{let r=n.lineGuide;if(1e-4>Math.abs(t.y-e.y))return null;let i=(t.y-e.y)/(t.x-e.x);return{x:(r-e.y)/i+e.x,y:r}}}(f,u,{orientation:e.orientation,lineGuide:e.lineGuide});t&&y.push(t)}),y.length>0){let e=y[0],t=Math.sqrt(Math.pow(f.x-e.x,2)+Math.pow(f.y-e.y,2));if(y.forEach(n=>{let r=Math.sqrt(Math.pow(f.x-n.x,2)+Math.pow(f.y-n.y,2));r<t&&(t=r,e=n)}),t<10)return e}return f},c=e=>{if(!e.target)return;let t=e.target.getLayer(),n=t.children.find(e=>"line-guides"===e.name());n?.destroyChildren(),t.batchDraw()};y(_).useEffect(()=>{e.current&&(e.current.anchorDragBoundFunc(s),e.current.on("dragstart",e=>{setTimeout(()=>{cR()})}),e.current.on("dragmove",l),e.current.on("dragend",c),e.current.on("transformend",c),e.current.on("transform",t=>{t.evt.ctrlKey||t.evt.metaKey?e.current?.rotationSnapTolerance(0):e.current?.rotationSnapTolerance(5)}))},[])}(w);let K=e.activePage===t,X=e._selectedPagesIds.includes(t.id),Y=a?.PageControls,Z=a?.Tooltip,Q=a?.ContextMenu,J=1/e.scale,ee=0/e.scale;return(0,S.jsxs)("div",{ref:k,onDragOver:e=>e.preventDefault(),onDrop:n=>{if(n.preventDefault(),e.role===sJ.VIEWER||!C.current)return;C.current.setPointersPositions(n);let r=C.current.findOne(".elements-container"),i=r?.getRelativePointerPosition(),a=C.current.getPointerPosition(),o=[...new Set(C.current.getAllIntersections(a).map(e=>e.findAncestor(".element",!0)).filter(Boolean).reverse())].map(t=>e.getElementById(t.id())).filter(e=>!!e),l=o[0];gW&&i&&(gW(i,l,{elements:o,page:t}),gW=null)},style:{position:"relative",width:n+"px",height:r+"px",overflow:"hidden",flexShrink:0},className:"polotno-page-container"+(K?" active-page":""),children:[(0,S.jsx)(rH,{ref:C,width:Math.min(n,s.width+200),height:Math.min(s.height+200,r),onClick:G,onTap:G,onContextMenu:t=>{if(t.evt.preventDefault(),e.role===sJ.VIEWER)return;let n=t.target.findAncestor(".element",!0),r=e.getElementById(n?.id()),i=r?.top,a=i?.id;a?e.selectedElementsIds.indexOf(a)>=0||e.selectElements([a]):e.selectElements([]),L.open({x:t.evt.clientX,y:t.evt.clientY})},onMouseDown:W,onMouseMove:t=>{if(!(e.distanceGuidesVisible||t.evt.altKey)){T&&O(null);return}let n=t.target.findAncestor(".element",!0);q(n?.id())},onDragStart:t=>{let n=t.target.getStage();if(n&&n.getPointersPositions().length>=2)return void t.target.stopDrag();let r=t.target.findAncestor(".element",!0);if(r){let n=e.getElementById(r?.id()),i=n?.top,a=i?.id;!(n&&e.selectedElementsIds.indexOf(n.id)>=0||a&&e.selectedElementsIds.indexOf(a)>=0)&&a&&(e.selectElements([a]),t.target.stopDrag(),t.target.startDrag(t),w.current?.startDrag(t))}T&&O(null)},pageId:t.id,style:{position:"absolute",overflow:"hidden",top:0,left:0},children:(0,S.jsxs)("Layer",{children:[(0,S.jsx)(gD,{width:n,height:r,fill:f.workspaceBackgroundColor}),(0,S.jsx)(rA,{x:v,y:x,scaleX:e.scale,scaleY:e.scale,name:"page-container",children:(0,S.jsxs)(rA,{name:"page-container-2",children:[(0,S.jsx)(rA,{name:"page-background-group",x:g,y:g,children:(0,S.jsx)(gF,{x:-t.bleed,y:-t.bleed,width:t.computedWidth+2*t.bleed,height:t.computedHeight+2*t.bleed,background:t.background,transparencyBackgroundColor:f.transparencyBackgroundColor,name:"page-background",preventDefault:!1,scale:e.scale})}),(0,S.jsxs)(rA,{x:g,y:g,name:"elements-container",listening:!e.isPlaying&&e.role!==sJ.VIEWER,children:[(0,S.jsx)(rM,{name:"elements-area",width:t.computedWidth,height:t.computedHeight,listening:!1}),(0,S.jsx)(gU,{elements:t.children,store:e})]}),(0,S.jsx)(rM,{stroke:f.bleedColor,name:"bleed",strokeWidth:t.bleed,x:t.bleed/2,y:t.bleed/2,width:t.computedWidth+t.bleed,height:t.computedHeight+t.bleed,listening:!1,visible:t.bleed>0&&e.bleedVisible,hideInExport:!0}),iU.value===gK&&(0,S.jsx)(gX,{name:"hit-detection",x:-J/2-ee,y:-J/2-ee,width:m+J+2*ee,height:b+J+2*ee})]})}),(0,S.jsx)(rN,{name:"workspace-background",points:[0,0,n,0,n,r,0,r,0,0,v,x,v,r-x,n-v,r-x,n-v,x,v,x],listening:!1,closed:!0,fill:f.workspaceBackgroundColor}),(0,S.jsx)(rA,{x:v,y:x,scaleX:e.scale,scaleY:e.scale,children:(0,S.jsx)(rM,{name:"page-highlight",hideInExport:!0,x:-J/2-ee,y:-J/2-ee,width:m+J+2*ee,height:b+J+2*ee,stroke:X?f.activePageBorderColor:f.pageBorderColor,strokeWidth:2,listening:!1,strokeScaleEnabled:!1})}),(0,S.jsxs)(rA,{x:v+g*e.scale,y:x+g*e.scale,scaleX:e.scale,scaleY:e.scale,name:"page-abs-container",children:[(0,S.jsx)(rB,{ref:w,rotateAnchorAngle:R,onDragStart:n=>{let r=n.target.getStage();r&&r.getPointersPositions().length>=2?n.target.stopDrag():(n.evt?.altKey&&o&&e.selectedElements.forEach(e=>{let n=e.clone({},{skipSelect:!0}),r=t.children.indexOf(e);t.setElementZIndex(n.id,r)}),E.current=!0,e.history.startTransaction())},onDragEnd:()=>{E.current&&(e.history.endTransaction(),E.current=!1),H()},onTransformStart:()=>{e.history.startTransaction(),O(null)},boundBoxFunc:(t,n)=>{let r=1>Math.abs(n.width)||1>Math.abs(n.height),i=1>Math.abs(t.width)||1>Math.abs(t.height);if(r&&!i)return t;let a=e.selectedElements;if(1===a.length&&a[0]?.type==="table"){let e=a[0],r=Math.abs(t.width),i=Math.abs(t.height);if(r>0&&i>0){let a=Math.abs(n.width)/r,o=Math.abs(n.height)/i,l=e.width*a,s=e.height*o,c={...n};return l<e.minWidth&&(c.width=t.width,c.x=t.x),s<e.minHeight&&(c.height=t.height,c.y=t.y),c}}return n},onTransform:e=>{let t=w.current.nodes(),n=t[t.length-1];e.target===n&&setTimeout(()=>{F()},0)},onTransformEnd:t=>{A({}),e.history.endTransaction(),H()},visible:!e.isPlaying}),T&&T.map(({points:t,distance:n,box1:r,box2:i},a)=>(0,S.jsxs)(rA,{name:"distances-container",hideInExport:!0,listening:!1,children:[(0,S.jsx)(rM,{...r,stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rM,{...i,stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rN,{points:[t[0].x,t[0].y,t[1].x,t[1].y],stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rN,{points:[t[1].x,t[1].y,t[2].x,t[2].y],stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsxs)(rR,{x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2,offsetY:-10,scaleX:1/e.scale,scaleY:1/e.scale,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:f.distanceGuideStyle.labelFill,pointerDirection:"down"}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:f.distanceGuideStyle.labelTextFill,padding:5,text:(e=>{let t=parseFloat(aL(e).toFixed(1));switch(e.unit){case"pt":return`${Math.round(t)}pt`;case"mm":return`${t}mm`;case"cm":return`${t}cm`;case"in":return`${t}in`;default:return`${Math.round(t)}px`}})({unit:e.unit,dpi:e.dpi,px:n})})]})]},a)),t._rendering&&(0,S.jsxs)(rA,{children:[(0,S.jsx)(rM,{width:m,height:b,fill:"rgba(255,255,255,0.9)"}),(0,S.jsx)(rD,{text:"Rendering...",fontSize:60,width:m,height:b,align:"center",verticalAlign:"middle"})]}),Z&&(0,S.jsx)(Z,{components:a,store:e,page:t,stageRef:C,tooltipSafeArea:u}),Q&&(0,S.jsx)(o4,{children:(0,S.jsx)(Q,{components:a,store:e,...L.props})})]}),(0,S.jsx)(gR,{store:e,page:t,width:n,height:r,scale:e.scale,xPadding:v,yPadding:x,bleed:g}),(0,S.jsx)(gV,{...I,store:e}),(0,S.jsx)(gH,{selection:V}),iW.value>0&&(0,S.jsxs)(rA,{hideInExport:!0,children:[(0,S.jsx)(gJ,{name:"cache-bounds",x:n-(1===iW.value?250:210),y:r-(1===iW.value?95:45)}),(0,S.jsx)(gJ,{name:"cache-bounds-t",x:10,y:10})]}),iV.value&&(0,S.jsx)(rD,{text:"Powered by polotno.com",fontSize:14,fill:"rgba(0,0,0,0.6)",x:n-170,y:r-18,onMouseEnter:e=>{e.target.getStage().container().style.cursor="pointer"},onMouseLeave:e=>{e.target.getStage().container().style.cursor=""},onTouchStart:e=>{e.cancelBubble=!0},onMouseDown:e=>{e.cancelBubble=!0},onClick:()=>{window.open("https://polotno.com","_blank","noopener")},onTap:()=>{window.open("https://polotno.com","_blank","noopener")}}),(0,S.jsx)(rA,{name:"line-guides"})]})}),(i??!0)&&Y&&(0,S.jsx)(Y,{store:e,page:t,xPadding:v,yPadding:x,layout:c})]})}),_=C("8NFma");let g1=cm("div",y(_).forwardRef)`
372
+ </svg>`,a=`data:image/svg+xml;base64,${btoa(i)}`;e.container().style.cursor=`url("${a}") ${r} ${r}, crosshair`}return()=>{e.container()&&(e.container().style.cursor="")}}},[f,g,p,m,i]),f)?(0,S.jsxs)(rA,{ref:h,listening:f,x:a+l*i,y:o+l*i,scaleX:i,scaleY:i,children:[(0,S.jsx)(rM,{x:-(a+l*i)/i,y:-(o+l*i)/i,width:n/i,height:r/i,fill:"transparent",onMouseDown:v,onMouseMove:x,onMouseUp:w,onTouchStart:v,onTouchMove:x,onTouchEnd:w}),u.length>0&&(0,S.jsx)(rN,{points:C,stroke:g,strokeWidth:p,lineCap:"round",lineJoin:"round",opacity:m,tension:.5,listening:!1})]}):null});I(e=>{if(rF.isAlreadyRendering())queueMicrotask(()=>rF.batchedUpdates(e,null));else rF.batchedUpdates(e,null)});let gM=nI.DD._drag;window.removeEventListener("mousemove",gM),nI.DD._drag=function(e){(0,P.runInAction)(()=>{gM.call(this,e)})},window.addEventListener("mousemove",nI.DD._drag);let gL={enabledAnchors:["top-left","top-center","top-right","middle-left","bottom-left","bottom-right","bottom-center","middle-right"],rotateEnabled:!0,rotationSnaps:[0,45,90,135,180,225,270,315],ignoreStroke:!0,flipEnabled:!1,keepRatio:!0},gN={text:{enabledAnchors:["top-left","top-right","middle-left","bottom-left","bottom-right","middle-right"]},svg:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},gif:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},line:{enabledAnchors:[],borderEnabled:!1,rotateEnabled:!1},image:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},many:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},group:{enabledAnchors:["top-left","top-right","bottom-left","bottom-right"]},table:{keepRatio:!1,enabledAnchors:["top-left","top-center","top-right","middle-left","middle-right","bottom-left","bottom-center","bottom-right"]}};function gj(e,t){gN[e]=gN[e]||t,Object.assign(gN[e],t)}let gD=e=>(0,S.jsx)(rM,{...e,preventDefault:!1}),gz=({url:e,...t})=>{let[n,r]=y(rV)(e,"anonymous"),i=n?function(e,t,n="scale"){let r,i,a=t.width/t.height;a>=e.width/e.height?(r=e.width,i=e.width/a):(r=e.height*a,i=e.height);let o=0,l=0;return"left-top"===n?(o=0,l=0):"left-middle"===n?(o=0,l=(e.height-i)/2):"left-bottom"===n?(o=0,l=e.height-i):"center-top"===n?(o=(e.width-r)/2,l=0):"center-middle"===n?(o=(e.width-r)/2,l=(e.height-i)/2):"center-bottom"===n?(o=(e.width-r)/2,l=e.height-i):"right-top"===n?(o=e.width-r,l=0):"right-middle"===n?(o=e.width-r,l=(e.height-i)/2):"right-bottom"===n?(o=e.width-r,l=e.height-i):"scale"===n?(o=0,l=0,r=e.width,i=e.height):console.error(Error("Unknown clip position property - "+n)),{cropX:o,cropY:l,cropWidth:r,cropHeight:i}}(n,{width:t.width,height:t.height},"center-middle"):{};return co(r,e,"page background"),(0,S.jsx)(rj,{image:n,...t,...i})},gB=e=>{let t=li({a:{width:e.width,height:e.height},width:e.width,height:e.height},e.fill);return(0,S.jsx)(rM,{...e,...t})},gF=e=>{let{background:t,scale:n,borderColor:r,transparencyBackgroundColor:i,...a}=e,o=y(_).useMemo(()=>!!nI.Util.colorToRGBA(t)||aF(t),[t]),l=y(_).useMemo(()=>{if(aF(t))return!0;let e=nI.Util.colorToRGBA(t);return!e||e.a<1},[t]),s=y(_).useMemo(()=>{if(!l||i)return null;let e=document.createElement("canvas");e.width=60,e.height=60;let t=e.getContext("2d");return t&&(t.fillStyle="black",t.fillRect(30,0,30,30),t.fillRect(0,30,30,30)),e},[l,i]);return(0,S.jsxs)(y(_).Fragment,{children:[l&&(i?(0,S.jsx)(rM,{fill:i,...a,hideInExport:!0}):(0,S.jsx)(rM,{fillPatternImage:s,...a,opacity:.1,hideInExport:!0})),o?(0,S.jsx)(gB,{fill:t,...a}):(0,S.jsx)(gz,{url:t,...a})]})},gH=F(({selection:e})=>{let{selectionRectStyle:t}=r9();return e.visible?(0,S.jsx)(rM,{name:"selection",x:Math.min(e.x1,e.x2),y:Math.min(e.y1,e.y2),width:Math.abs(e.x1-e.x2),height:Math.abs(e.y1-e.y2),fill:t.fill,stroke:t.stroke,strokeWidth:t.strokeWidth}):null}),gV=F(({x:e,y:t,width:n,height:r,rotation:i,anchor:a,store:o})=>{let l,{transformLabelStyle:s}=r9();if(void 0===e||void 0===t||void 0===n||void 0===r||void 0===i||void 0===a)return null;let c=oc({x:e,y:t,width:n,height:r,rotation:nI.Util.radToDeg(i)}),u=(r/2+70)*Math.cos(i-Math.PI/2),d=(r/2+70)*Math.sin(i-Math.PI/2),h=aN({unit:o.unit,dpi:o.dpi,px:n/o.scale,precious:+("px"!==o.unit)})+" x "+aN({unit:o.unit,dpi:o.dpi,px:r/o.scale,precious:+("px"!==o.unit)})+("px"===o.unit?"":" "+o.unit);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(rR,{x:(c.minX+c.maxX)/2+u,y:(c.minY+c.maxY)/2+d,offsetX:14,offsetY:14,visible:"rotater"===a,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:s.fill}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:s.textFill,padding:8,text:((l=180*i/Math.PI%360)>180?l-=360:l<-180&&(l+=360),Math.round(l)).toString()+"°"})]}),(0,S.jsxs)(rR,{x:(c.minX+c.maxX)/2,y:c.maxY+20,visible:"rotater"!==a,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:s.fill,pointerDirection:"up",pointerHeight:0,pointerWidth:0}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:s.textFill,padding:8,text:h})]})]})}),gU=F(({elements:e,store:t})=>{let n=e.filter(e=>e.alwaysOnTop),r=e.filter(e=>!e.alwaysOnTop).concat(n);return(0,S.jsx)(y(_).Fragment,{children:r.map(e=>(0,S.jsx)(gA,{store:t,element:e,onClick:()=>{console.warn("Polotno warning: onClick callback is deprecated. Just stop using it. Polotno will do selection automatically.")}},e.id))})}),gW=null,gq=e=>{gW=e},g$=atob("UG9sb3RubyBmcmVlIGxpY2Vuc2UgbGltaXRhdGlvbiBleGNlZWRlZCAtIFBsZWFzZSB1cGdyYWRlIHlvdXIgYWNjb3VudC4="),gG=atob("I2MwMzkyYg=="),gK=atob("djAuOS4y"),gX=e=>(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)(rR,{fill:gG,height:200,children:[(0,S.jsx)("Tag",{fill:gG}),(0,S.jsx)(rD,{...e,fill:"white",text:g$,height:void 0,padding:10,fontSize:20})]})}),gY=atob("RlJFRSAgVFJJQUwgIExJQ0VOU0U=");atob("UG93ZXJlZCBieSBQb2xvdG5v");let gZ=atob("TElDRU5TRSAgS0VZICBJUyAgTUlTU0lORw=="),gQ=atob("UGxlYXNlIGFjdGl2YXRlIHlvdXIgbGljZW5zZS4KTGljZW5zZSByZWxhdGVkIHF1ZXN0aW9uczoKcG9sb3Ruby5jb20vY29udGFjdA=="),gJ=e=>{let t=1===iW.value,n=t?230:195;return(0,S.jsxs)(rA,{...e,listening:!1,children:[(0,S.jsx)(rM,{fill:gG,width:n,height:24,cornerRadius:2}),(0,S.jsx)(rD,{text:t?gZ:gY,fill:"white",fontSize:13,fontFamily:"monospace",width:n,align:"center",y:5,listening:!1}),t&&(0,S.jsx)(rD,{text:gQ,fill:"rgba(0,0,0,0.6)",fontSize:14,y:30,listening:!1})]})};var g0=F(({store:e,page:t,width:n,height:r,pageControlsEnabled:i,components:a,altCloneEnabled:o,groupSelectionMode:l="drill",viewportSize:s,layout:c="vertical",tooltipSafeArea:u,transformerSafeArea:d})=>{var h;let f=r9(),p=f.transformerStyle,g=e.bleedVisible?t.bleed:0,m=t.computedWidth+2*g,b=t.computedHeight+2*g,v=(n-m*e.scale)/2,x=(r-b*e.scale)/2,w=y(_).useRef(null),C=y(_).useRef(null),k=y(_).useRef(null),E=y(_).useRef(!1),[T,O]=y(_).useState(null),[I,A]=y(_).useState({}),[R,M]=y(_).useState(0),L=(({store:e})=>{let[t,n]=y(_).useState(!1),[r,i]=y(_).useState({x:0,y:0});return{open:y(_).useCallback(e=>{n(!0),i(e)},[]),close:y(_).useCallback(()=>{n(!1)},[]),props:{isOpen:t,offset:r,setIsOpen:n}}})({store:e}),N=e.selectedElements.find(e=>e._cropModeEnabled),j=e.selectedElements.find(e=>e.curveEnabled),D=e.selectedShapes.filter(e=>!e.resizable).length>0,z=e.selectedShapes.filter(e=>!e.draggable).length>0,B=e.selectedElements.filter(e=>!e.visible).length>0;y(_).useLayoutEffect(()=>{if(!w.current)return;let t=w.current.getStage(),n=e.selectedShapes.map(e=>e._cropModeEnabled?null:t.findOne("#"+e.id)).filter(e=>!!e),r=1===e.selectedElements.length,i=r&&e.selectedElements[0]?.type||"many",a=gN[i],o={...gL,...a||{}};a&&("svg"!==i&&"image"!==i&&"gif"!==i||e.selectedElements[0].keepRatio||(o.enabledAnchors=gL.enabledAnchors),"text"===i&&iT.textVerticalResizeEnabled&&(o.enabledAnchors=gN.text.enabledAnchors?.concat(["bottom-center","top-center"])),"text"===i&&r&&e.selectedElements[0].curveEnabled&&(o.enabledAnchors=gN.many.enabledAnchors)),w.current.setAttrs({...o,...p}),D&&w.current.enabledAnchors([]),z&&w.current.rotateEnabled(!1),n.find(e=>e?.isDragging())&&n.forEach(e=>{e.isDragging()||e?.startDrag()}),w.current.nodes(n),cR(),w.current.getLayer()?.batchDraw()},[e.selectedShapes,N,D,B,z,j,p]);let F=()=>{let e=w.current;if(!e)return;if(!e.isTransforming())return void A({});if(!e.nodes().length||!e.isTransforming())return;let t=e.__getNodeRect(),n=e?.getActiveAnchor(),r=e.getStage();A({anchor:n,x:t.x-(r?.x()??0),y:t.y-(r?.y()??0),rotation:t.rotation,width:t.width,height:t.height})},H=y(_).useCallback(()=>{if(w.current?.isTransforming())return;let e=w.current;if(!e||!e.nodes().length)return void M(0);let t=e.getClientRect();e.getStage()&&M(function(e,t,n,r=0){let i=e.x+e.width/2,a=e.y+e.height/2,o=e.width/2,l=e.height/2,s=r*Math.PI/180,c=e=>{let t,r=e*Math.PI/180,c=(e%360+360)%360,u=Math.sin(r)*((t=0===c||180===c?l:o)+n),d=-Math.cos(r)*(t+n);return{x:i+(u*Math.cos(s)-d*Math.sin(s)),y:a+(u*Math.sin(s)+d*Math.cos(s))}},u=e=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom;if(u(c(0)))return 0;for(let e of[180,270,90])if(u(c(e)))return e;return 0}(t,{top:d?.top||0,bottom:r-(d?.bottom||0),left:d?.left||0,right:n-(d?.right||0)},p.rotateAnchorOffset,e.rotation()))},[d,n,r]);y(_).useEffect(()=>{w.current?.update(),F(),H()},[e.scale,H]),y(_).useEffect(()=>{H()},[e.selectedShapes,H]);let V=(h=()=>({visible:!1,x1:0,y1:0,x2:0,y2:0}),(0,_.useState)(function(){return(0,P.observable)(h(),void 0,{autoBind:!0})})[0]),U=y(_).useRef(!1),W=(0,P.action)(t=>{if(e.role===sJ.VIEWER)return;U.current=!1;let n=t.target.findAncestor(".elements-container"),r=t.target.findAncestor("Transformer"),i=t.target.findAncestor(".page-abs-container");if(n||r||i)return;let a=t.target.getStage()?.getPointerPosition();a&&(a.x-=t.target.getStage()?.x()??0,a.y-=t.target.getStage()?.y()??0,V.visible=!0,V.x1=a.x,V.y1=a.y,V.x2=a.x,V.y2=a.y,(t.target.getStage()?.getPointersPositions().length??0)>=2&&(V.visible=!1))});(({stageRef:e,containerRef:t,viewportSize:n})=>{y(_).useEffect(()=>{let n=t.current?.closest(".polotno-workspace-inner");function r(){if(!e.current)return;let r=t.current?.getBoundingClientRect(),i=n?.getBoundingClientRect();if(!r||!i)return;let a=Math.max(0,i.left-r.left-100),o=Math.max(0,i.top-r.top-100);e.current.position({x:-a,y:-o}),e.current.container().style.transform=`translate(${a}px, ${o}px)`}return r(),n?.addEventListener("scroll",r),()=>{n?.removeEventListener("scroll",r)}},[n.width,n.height])})({stageRef:C,containerRef:k,viewportSize:s}),y(_).useEffect(()=>{let t=(0,P.action)(e=>{if(!V.visible)return;C.current?.setPointersPositions(e);let t=C.current?.getPointerPosition();t?(t.x-=C.current?.x()??0,t.y-=C.current?.y()??0):t={x:V.x2,y:V.y2},V.x2=t.x,V.y2=t.y}),n=(0,P.action)(()=>{if(!V.visible||!C.current)return;let t=C.current.findOne(".selection"),n=t?t.getClientRect({skipStroke:!0}):{width:0,height:0,x:0,y:0};if(n.width&&n.height){let t=[];C.current.find(".element").forEach(r=>{let i=r.getClientRect(),a=e.getElementById(r.id()),o=a?.draggable,l=a?.selectable;nI.Util.haveIntersection(n,i)&&o&&l&&t.push(a.top.id)});let r=[...new Set(t)];U.current=!0,e.selectElements(r)}V.visible=!1});return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n,{capture:!0}),window.addEventListener("touchend",n,{capture:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n)}},[]);let q=y(_).useCallback(n=>{if(!e.selectedElements[0]||n&&e.selectedElementsIds.includes(n))return;let r=ou(e.selectedShapes),i=oc(n?e.getElementById(n):{x:0,y:0,width:t.computedWidth,height:t.computedHeight,rotation:0}),a=[];r.minX>i.maxX&&a.push({distance:r.minX-i.maxX,box1:r,box2:i,points:[{x:r.minX,y:r.minY+r.height/2},{x:i.maxX,y:r.minY+r.height/2},{x:i.maxX,y:i.minY+i.height/2}]}),r.maxX<i.minX&&a.push({distance:i.minX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:r.minY+r.height/2},{x:i.minX,y:r.minY+r.height/2},{x:i.minX,y:i.minY+i.height/2}]}),r.minY>i.maxY&&a.push({box1:r,box2:i,distance:r.minY-i.maxY,points:[{x:r.minX+r.width/2,y:r.minY},{x:r.minX+r.width/2,y:i.maxY},{x:i.minX+i.width/2,y:i.maxY}]}),r.maxY<i.minY&&a.push({box1:r,box2:i,distance:i.minY-r.maxY,points:[{x:r.minX+r.width/2,y:r.maxY},{x:r.minX+r.width/2,y:i.minY},{x:i.minX+i.width/2,y:i.minY}]});let o=r.minX>=i.minX&&r.maxX<=i.maxX&&r.minY>=i.minY&&r.maxY<=i.maxY;if(o&&(a.push({distance:r.minX-i.minX,box1:r,box2:i,points:[{x:r.minX,y:r.minY+r.height/2},{x:i.minX,y:r.minY+r.height/2},{x:i.minX,y:i.minY+i.height/2}]}),a.push({distance:i.maxX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:r.minY+r.height/2},{x:i.maxX,y:r.minY+r.height/2},{x:i.maxX,y:i.minY+i.height/2}]}),a.push({box1:r,box2:i,distance:r.minY-i.minY,points:[{x:r.minX+r.width/2,y:r.minY},{x:r.minX+r.width/2,y:i.minY},{x:i.minX+i.width/2,y:i.minY}]}),a.push({box1:r,box2:i,distance:i.maxY-r.maxY,points:[{x:r.minX+r.width/2,y:r.maxY},{x:r.minX+r.width/2,y:i.maxY},{x:i.minX+i.width/2,y:i.maxY}]})),0===a.length&&!o){let e=r.minX<i.maxX&&r.maxX>i.minX,t=r.minY<i.maxY&&r.maxY>i.minY;if(e&&t){let e=(Math.max(r.minY,i.minY)+Math.min(r.maxY,i.maxY))/2,t=(Math.max(r.minX,i.minX)+Math.min(r.maxX,i.maxX))/2;r.minX<i.minX?a.push({distance:i.minX-r.minX,box1:r,box2:i,points:[{x:r.minX,y:e},{x:i.minX,y:e},{x:i.minX,y:e}]}):a.push({distance:r.minX-i.minX,box1:r,box2:i,points:[{x:r.minX,y:e},{x:i.minX,y:e},{x:i.minX,y:e}]}),r.maxX>i.maxX?a.push({distance:r.maxX-i.maxX,box1:r,box2:i,points:[{x:i.maxX,y:e},{x:r.maxX,y:e},{x:i.maxX,y:e}]}):a.push({distance:i.maxX-r.maxX,box1:r,box2:i,points:[{x:r.maxX,y:e},{x:i.maxX,y:e},{x:i.maxX,y:e}]}),r.minY<i.minY?a.push({box1:r,box2:i,distance:i.minY-r.minY,points:[{x:t,y:r.minY},{x:t,y:i.minY},{x:t,y:i.minY}]}):a.push({box1:r,box2:i,distance:r.minY-i.minY,points:[{x:t,y:r.minY},{x:t,y:i.minY},{x:t,y:i.minY}]}),r.maxY>i.maxY?a.push({box1:r,box2:i,distance:r.maxY-i.maxY,points:[{x:t,y:i.maxY},{x:t,y:r.maxY},{x:t,y:i.maxY}]}):a.push({box1:r,box2:i,distance:i.maxY-r.maxY,points:[{x:t,y:r.maxY},{x:t,y:i.maxY},{x:t,y:i.maxY}]})}}JSON.stringify(T)!==JSON.stringify(a)&&O(a)},[e,t]);y(_).useEffect(()=>{if(!e.selectedElements[0]){T&&O(null);return}e.distanceGuidesVisible?q():T&&O(null)},[e.distanceGuidesVisible,q,e.selectedShapes.map(e=>`${e.x},${e.y},${e.width},${e.height},${e.rotation}`).join("|")]);let $=y(_).useRef(!1);y(_).useEffect(()=>{let e,t=k.current?.closest(".polotno-workspace-inner"),n=()=>{$.current=!0,clearTimeout(e),e=setTimeout(()=>{$.current=!1},300)};return t?.addEventListener("scroll",n),()=>{clearTimeout(e),t?.removeEventListener("scroll",n)}},[]),y(_).useEffect(()=>{let e=C.current;if(!e)return;let t=e.container(),n=e=>{e.touches.length>=2&&(w.current?.isDragging()&&w.current.stopDrag(),w.current?.nodes().forEach(e=>{e.isDragging()&&e.stopDrag()}))};return t.addEventListener("touchstart",n,{passive:!0}),t.addEventListener("touchmove",n,{passive:!0}),()=>{t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",n)}},[]);let G=n=>{let r;if(e.role===sJ.VIEWER||(e.activePage!==t&&t.select(),$.current||U.current))return;let i=n.evt.shiftKey,a=n.evt.ctrlKey||n.evt.metaKey,o=n.target.findAncestor(".elements-container"),s=n.target.findAncestor(".page-abs-container"),c=n.target.findAncestor("Transformer"),u=n.target.findAncestor(".page-container",!0);if(!(i||a)&&!o&&!c&&!s&&!u&&!V.visible){e.selectElements([]),e.selectPages([]);return}if(a&&!i){let t,n=C.current,r=n?.getPointerPosition();if(!n||!r)return;let i=n.getAllIntersections(r),a=new Set,o=[];for(let t of[...i].reverse()){let n=t.findAncestor(".element",!0);if(!n)continue;let r=e.getElementById(n.id()),i=r?.top;i&&(a.has(i.id)||(a.add(i.id),o.push(i.id)))}if(0===o.length)return;if(1===e.selectedElementsIds.length){let n=e.selectedElementsIds[0],r=o.indexOf(n);t=-1===r?o[0]:o[(r+1)%o.length]}else t=o[0];e.selectElements([t]),e.selectPages([]);return}let d=n.target.findAncestor(".element-container",!0),h=d?.findOne(".element")||n.target.findAncestor(".element",!0),f=e.getElementById(h?.id()),p=f?.top;r="group"===l?p?.id:p?e.selectedElements.some(e=>e.top?.id===p.id)?f?.id:p?.id:void 0;let g=f?.id;if(g&&e.selectedElementsIds.indexOf(g)>=0&&!i)return;let m=!!r&&e.selectedElementsIds.indexOf(r)>=0,y=n.target.findAncestor(".page-container",!0);if(r&&i&&!m){let t=e.selectedElementsIds.concat([r]),n=new Set(t),i=t.filter(t=>{let r=e.getElementById(t);if(!r)return!1;for(let e=r.parent;e;e=e?.parent)if(n.has(e.id))return!1;return!0});e.selectElements(i),e.selectPages([])}else r&&i&&m?e.selectElements(e.selectedElementsIds.filter(e=>e!==r)):!r||i||m?r&&!i&&m||(y?(i||e.selectElements([]),e.selectPages([t.id])):e.selectPages([])):(e.selectElements([r]),e.selectPages([]))};!function(e){let t=y(_).useRef(null),{snapGuideStyle:n}=r9(),r=y(_).useRef(n);r.current=n;let i=e=>e.hasName("element")||e.hasName("page-background")||!t.current&&e.hasName("elements-area");function a(t){let n=e.current?.getStage(),r=[],a=[];return n.find(i).forEach(e=>{if(!(t.indexOf(e)>=0)){var n=e.getClientRect({skipShadow:!0,skipStroke:!0});r.push({offset:n.x,node:e,snap:"start"},{offset:n.x+n.width,node:e,snap:"end"},{offset:n.x+n.width/2,node:e,snap:"center"}),a.push({offset:n.y,node:e,snap:"start"},{offset:n.y+n.height,node:e,snap:"end"},{offset:n.y+n.height/2,node:e,snap:"center"})}}),{vertical:r,horizontal:a}}function o(t){let n=e.current?.getLayer(),i=n?.children.find(e=>"line-guides"===e.name());t.forEach(e=>{if("H"===e.orientation){var t=new nI.Line({x:-n.getStage().x(),y:-n.getStage().y(),points:[-6e3,e.lineGuide,6e3,e.lineGuide],stroke:r.current.stroke,strokeWidth:r.current.strokeWidth,name:"guid-line",dash:r.current.dash});i?.add(t),n.batchDraw()}else if("V"===e.orientation){var t=new nI.Line({x:-n.getStage().x(),y:-n.getStage().y(),points:[e.lineGuide,-6e3,e.lineGuide,6e3],stroke:r.current.stroke,strokeWidth:r.current.strokeWidth,name:"guid-line",dash:r.current.dash});i?.add(t)}})}let l=e=>{let t,n,r,i=e.target.getLayer().children.find(e=>"line-guides"===e.name());i?.destroyChildren();var l,s=cA(a(e.target.nodes()),(n=oc({...t=(l=e.target).__getNodeRect(),rotation:nI.Util.radToDeg(t.rotation)}),r=l.getAbsolutePosition(),{vertical:[{guide:n.x,offset:r.x-n.x,snap:"start",nodes:l.nodes()},{guide:n.x+n.width/2,offset:r.x-n.x-n.width/2,snap:"center",nodes:l.nodes()},{guide:n.x+n.width,offset:r.x-n.x-n.width,snap:"end",nodes:l.nodes()}],horizontal:[{guide:n.y,offset:r.y-n.y,snap:"start",nodes:l.nodes()},{guide:n.y+n.height/2,offset:r.y-n.y-n.height/2,snap:"center",nodes:l.nodes()},{guide:n.y+n.height,offset:r.y-n.y-n.height,snap:"end",nodes:l.nodes()}]}));if(!s.length)return;o(s);let c=e.target.getAbsolutePosition();e.target.nodes().map(e=>e.getAbsolutePosition());let u={...c};s.forEach(e=>{switch(e.snap){case"start":case"center":case"end":switch(e.orientation){case"V":u.x=e.lineGuide+e.offset;break;case"H":u.y=e.lineGuide+e.offset}}});let d=u.x-c.x,h=u.y-c.y;e.evt.ctrlKey||e.evt.metaKey||e.target.nodes().forEach(e=>{let t=e.getAbsolutePosition();e.setAbsolutePosition({x:t.x+d,y:t.y+h})})},s=(t,n,r)=>{let i,l=e.current,s=l.getLayer().children.find(e=>"line-guides"===e.name());if(s?.destroyChildren(),"rotater"===l.getActiveAnchor())return n;let c=cN[l.getActiveAnchor()],u=l.findOne(`.${c}`)?.getAbsolutePosition();if(!u)return n;let d={x:t.x-u.x,y:t.y-u.y},h=(p={x:n.x-t.x,y:n.y-t.y},{x:(i=cL(p,g=d)/cL(g,g))*g.x,y:i*g.y});if(Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2))>5)return n;let f={x:t.x+h.x,y:t.y+h.y};var p,g,m=cA(a(l.nodes()),{vertical:[{guide:f.x,offset:0,snap:"start",nodes:l.nodes()}],horizontal:[{guide:f.y,offset:0,snap:"start",nodes:l.nodes()}]});if(!m.length||(o(m),r.ctrlKey||r.metaKey))return n;let y=[];if(m.forEach(e=>{let t=function(e,t,n){if("V"===n.orientation){let r=n.lineGuide;if(1e-4>Math.abs(t.x-e.x))return null;let i=(t.y-e.y)/(t.x-e.x),a=e.y-i*e.x;return{x:r,y:i*r+a}}{let r=n.lineGuide;if(1e-4>Math.abs(t.y-e.y))return null;let i=(t.y-e.y)/(t.x-e.x);return{x:(r-e.y)/i+e.x,y:r}}}(f,u,{orientation:e.orientation,lineGuide:e.lineGuide});t&&y.push(t)}),y.length>0){let e=y[0],t=Math.sqrt(Math.pow(f.x-e.x,2)+Math.pow(f.y-e.y,2));if(y.forEach(n=>{let r=Math.sqrt(Math.pow(f.x-n.x,2)+Math.pow(f.y-n.y,2));r<t&&(t=r,e=n)}),t<10)return e}return f},c=e=>{if(!e.target)return;let t=e.target.getLayer(),n=t.children.find(e=>"line-guides"===e.name());n?.destroyChildren(),t.batchDraw()};y(_).useEffect(()=>{e.current&&(e.current.anchorDragBoundFunc(s),e.current.on("dragstart",e=>{setTimeout(()=>{cR()})}),e.current.on("dragmove",l),e.current.on("dragend",c),e.current.on("transformend",c),e.current.on("transform",t=>{t.evt.ctrlKey||t.evt.metaKey?e.current?.rotationSnapTolerance(0):e.current?.rotationSnapTolerance(5)}))},[])}(w);let K=e.activePage===t,X=e._selectedPagesIds.includes(t.id),Y=a?.PageControls,Z=a?.Tooltip,Q=a?.ContextMenu,J=1/e.scale,ee=0/e.scale;return(0,S.jsxs)("div",{ref:k,onDragOver:e=>e.preventDefault(),onDrop:n=>{if(n.preventDefault(),e.role===sJ.VIEWER||!C.current)return;C.current.setPointersPositions(n);let r=C.current.findOne(".elements-container"),i=r?.getRelativePointerPosition(),a=C.current.getPointerPosition(),o=[...new Set(C.current.getAllIntersections(a).map(e=>e.findAncestor(".element",!0)).filter(Boolean).reverse())].map(t=>e.getElementById(t.id())).filter(e=>!!e),l=o[0];gW&&i&&(gW(i,l,{elements:o,page:t}),gW=null)},style:{position:"relative",width:n+"px",height:r+"px",overflow:"hidden",flexShrink:0},className:"polotno-page-container"+(K?" active-page":""),children:[(0,S.jsx)(rH,{ref:C,width:Math.min(n,s.width+200),height:Math.min(s.height+200,r),onClick:G,onTap:G,onContextMenu:t=>{if(t.evt.preventDefault(),e.role===sJ.VIEWER)return;let n=t.target.findAncestor(".element",!0),r=e.getElementById(n?.id()),i=r?.top,a=i?.id;a?e.selectedElementsIds.indexOf(a)>=0||e.selectElements([a]):e.selectElements([]),L.open({x:t.evt.clientX,y:t.evt.clientY})},onMouseDown:W,onMouseMove:t=>{if(!(e.distanceGuidesVisible||t.evt.altKey)){T&&O(null);return}let n=t.target.findAncestor(".element",!0);q(n?.id())},onDragStart:t=>{let n=t.target.getStage();if(n&&n.getPointersPositions().length>=2)return void t.target.stopDrag();let r=t.target.findAncestor(".element",!0);if(r){let n=e.getElementById(r?.id()),i=n?.top,a=i?.id;!(n&&e.selectedElementsIds.indexOf(n.id)>=0||a&&e.selectedElementsIds.indexOf(a)>=0)&&a&&(e.selectElements([a]),t.target.stopDrag(),t.target.startDrag(t),w.current?.startDrag(t))}T&&O(null)},pageId:t.id,style:{position:"absolute",overflow:"hidden",top:0,left:0},children:(0,S.jsxs)("Layer",{children:[(0,S.jsx)(gD,{width:n,height:r,fill:f.workspaceBackgroundColor}),(0,S.jsx)(rA,{x:v,y:x,scaleX:e.scale,scaleY:e.scale,name:"page-container",children:(0,S.jsxs)(rA,{name:"page-container-2",children:[(0,S.jsx)(rA,{name:"page-background-group",x:g,y:g,children:(0,S.jsx)(gF,{x:-t.bleed,y:-t.bleed,width:t.computedWidth+2*t.bleed,height:t.computedHeight+2*t.bleed,background:t.background,transparencyBackgroundColor:f.transparencyBackgroundColor,name:"page-background",preventDefault:!1,scale:e.scale})}),(0,S.jsxs)(rA,{x:g,y:g,name:"elements-container",listening:!e.isPlaying&&e.role!==sJ.VIEWER,children:[(0,S.jsx)(rM,{name:"elements-area",width:t.computedWidth,height:t.computedHeight,listening:!1}),(0,S.jsx)(gU,{elements:t.children,store:e})]}),(0,S.jsx)(rM,{stroke:f.bleedColor,name:"bleed",strokeWidth:t.bleed,x:t.bleed/2,y:t.bleed/2,width:t.computedWidth+t.bleed,height:t.computedHeight+t.bleed,listening:!1,visible:t.bleed>0&&e.bleedVisible,hideInExport:!0}),iU.value===gK&&(0,S.jsx)(gX,{name:"hit-detection",x:-J/2-ee,y:-J/2-ee,width:m+J+2*ee,height:b+J+2*ee})]})}),(0,S.jsx)(rN,{name:"workspace-background",points:[0,0,n,0,n,r,0,r,0,0,v,x,v,r-x,n-v,r-x,n-v,x,v,x],listening:!1,closed:!0,fill:f.workspaceBackgroundColor}),(0,S.jsx)(rA,{x:v,y:x,scaleX:e.scale,scaleY:e.scale,children:(0,S.jsx)(rM,{name:"page-highlight",hideInExport:!0,x:-J/2-ee,y:-J/2-ee,width:m+J+2*ee,height:b+J+2*ee,stroke:X?f.activePageBorderColor:f.pageBorderColor,strokeWidth:2,listening:!1,strokeScaleEnabled:!1})}),(0,S.jsxs)(rA,{x:v+g*e.scale,y:x+g*e.scale,scaleX:e.scale,scaleY:e.scale,name:"page-abs-container",children:[(0,S.jsx)(rB,{ref:w,rotateAnchorAngle:R,onDragStart:n=>{let r=n.target.getStage();r&&r.getPointersPositions().length>=2?n.target.stopDrag():(n.evt?.altKey&&o&&e.selectedElements.forEach(e=>{let n=e.clone({},{skipSelect:!0}),r=t.children.indexOf(e);t.setElementZIndex(n.id,r)}),E.current=!0,e.history.startTransaction())},onDragEnd:()=>{E.current&&(e.history.endTransaction(),E.current=!1),H()},onTransformStart:()=>{e.history.startTransaction(),O(null)},boundBoxFunc:(t,n)=>{let r=1>Math.abs(n.width)||1>Math.abs(n.height),i=1>Math.abs(t.width)||1>Math.abs(t.height);if(r&&!i)return t;let a=e.selectedElements;if(1===a.length&&a[0]?.type==="table"){let e=a[0],r=Math.abs(t.width),i=Math.abs(t.height);if(r>0&&i>0){let a=Math.abs(n.width)/r,o=Math.abs(n.height)/i,l=e.width*a,s=e.height*o,c={...n};return l<e.minWidth&&(c.width=t.width,c.x=t.x),s<e.minHeight&&(c.height=t.height,c.y=t.y),c}}return n},onTransform:e=>{let t=w.current.nodes(),n=t[t.length-1];e.target===n&&setTimeout(()=>{F()},0)},onTransformEnd:t=>{A({}),e.history.endTransaction(),H()},visible:!e.isPlaying}),T&&T.map(({points:t,distance:n,box1:r,box2:i},a)=>(0,S.jsxs)(rA,{name:"distances-container",hideInExport:!0,listening:!1,children:[(0,S.jsx)(rM,{...r,stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rM,{...i,stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rN,{points:[t[0].x,t[0].y,t[1].x,t[1].y],stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsx)(rN,{points:[t[1].x,t[1].y,t[2].x,t[2].y],stroke:f.distanceGuideStyle.stroke,strokeWidth:1,strokeScaleEnabled:!1}),(0,S.jsxs)(rR,{x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2,offsetY:-10,scaleX:1/e.scale,scaleY:1/e.scale,children:[(0,S.jsx)("Tag",{cornerRadius:5,fill:f.distanceGuideStyle.labelFill,pointerDirection:"down"}),(0,S.jsx)(rD,{align:"center",verticalAlign:"middle",fill:f.distanceGuideStyle.labelTextFill,padding:5,text:(e=>{let t=parseFloat(aL(e).toFixed(1));switch(e.unit){case"pt":return`${Math.round(t)}pt`;case"mm":return`${t}mm`;case"cm":return`${t}cm`;case"in":return`${t}in`;default:return`${Math.round(t)}px`}})({unit:e.unit,dpi:e.dpi,px:n})})]})]},a)),t._rendering&&(0,S.jsxs)(rA,{children:[(0,S.jsx)(rM,{width:m,height:b,fill:"rgba(255,255,255,0.9)"}),(0,S.jsx)(rD,{text:"Rendering...",fontSize:60,width:m,height:b,align:"center",verticalAlign:"middle"})]}),Z&&(0,S.jsx)(Z,{components:a,store:e,page:t,stageRef:C,tooltipSafeArea:u}),Q&&(0,S.jsx)(o4,{children:(0,S.jsx)(Q,{components:a,store:e,...L.props})})]}),(0,S.jsx)(gR,{store:e,page:t,width:n,height:r,scale:e.scale,xPadding:v,yPadding:x,bleed:g}),(0,S.jsx)(gV,{...I,store:e}),(0,S.jsx)(gH,{selection:V}),iW.value>0&&(0,S.jsxs)(rA,{hideInExport:!0,children:[(0,S.jsx)(gJ,{name:"cache-bounds",x:n-(1===iW.value?250:210),y:r-(1===iW.value?95:45)}),(0,S.jsx)(gJ,{name:"cache-bounds-t",x:10,y:10})]}),iV.value&&(0,S.jsx)(rD,{text:"Powered by polotno.com",fontSize:14,fill:"rgba(0,0,0,0.6)",x:n-170,y:r-18,onMouseEnter:e=>{e.target.getStage().container().style.cursor="pointer"},onMouseLeave:e=>{e.target.getStage().container().style.cursor=""},onTouchStart:e=>{e.cancelBubble=!0},onMouseDown:e=>{e.cancelBubble=!0},onClick:()=>{window.open("https://polotno.com","_blank","noopener")},onTap:()=>{window.open("https://polotno.com","_blank","noopener")}}),(0,S.jsx)(rA,{name:"line-guides"})]})}),(i??!0)&&Y&&(0,S.jsx)(Y,{store:e,page:t,xPadding:v,yPadding:x,layout:c})]})}),_=C("8NFma");let g1=cm("div",y(_).forwardRef)`
373
373
  position: absolute;
374
374
  top: 0;
375
375
  left: 0;
@@ -412,7 +412,7 @@ https://polotno.com/docs/server-api`,iC={unsplashList:({query:e,page:t=1})=>`${i
412
412
  `,g6=[.1,.2,.5,1,2,5,10,20,25,50,100,200,500,1e3,2e3,5e3,1e4],g5=F(({store:e,width:t,height:n,pageSizes:r,layout:i="vertical",renderOnlyActivePage:a})=>{let o,{rulerStyle:l}=r9(),s=y(_).useRef(null);if(!e.activePage)return null;let c=e.activePage;e.bleedVisible&&c.bleed;let u=c.computedWidth*e.scale,d=c.computedHeight*e.scale,h=(t-u)/2,f=(n-d)/2,p=(o=t=>aj({unitVal:t,dpi:e.dpi,unit:e.unit})*e.scale,g6.find(e=>o(e)>30)||1e4),g=aj({unitVal:p,dpi:e.dpi,unit:e.unit})*e.scale,m=Math.round(u/g)+1,b=Math.round(d/g)+1,v=ou(e.selectedShapes),{backgroundColor:x,textColor:w,borderColor:C,borderSize:k,tickColor:E,tickSize:T}=l;return(0,S.jsx)(g1,{ref:s,className:"polotno-rulers",style:{display:"flex",flexDirection:"column"},children:"horizontal"===i?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{style:{display:"flex",flexDirection:"row",position:"sticky",top:0,zIndex:1},children:[(0,S.jsx)("div",{className:"polotno-ruler-corner",style:{width:"14px",height:"14px",flexShrink:0,marginRight:"-14px",boxSizing:"border-box",backgroundColor:x,borderRight:`${k}px solid ${C}`,borderBottom:`${k}px solid ${C}`,position:"sticky",left:0,zIndex:2}}),(a?[e.activePage]:e.pages).map((n,i)=>{if(!n)return null;let a=r?r[i]:t,o=(a-n.computedWidth*e.scale)/2;return(0,S.jsxs)(g2,{style:{width:a+"px",flexShrink:0,position:"relative",backgroundColor:x,color:w,borderBottom:`${k}px solid ${C}`},className:"polotno-x-ruler",children:[[...Array(m)].map((t,n)=>(0,S.jsx)(g3,{className:"polotno-ruler-tick",style:{left:o+n*g+"px",width:g+"px",borderLeft:`${T}px solid ${E}`},children:"px"===e.unit||p>=1?Math.round(p*n):(p*n).toFixed(1)},n)),e.selectedShapes[0]?.page===n&&(0,S.jsx)("div",{className:"polotno-ruler-selection",style:{position:"absolute",left:o+v.x*e.scale+"px",height:"14px",width:v.width*e.scale,backgroundColor:"rgba(0,0,0,0.15)"}})]},n.id)})]}),(0,S.jsxs)(g4,{style:{height:n+"px",position:"sticky",left:0,marginTop:"-14px",backgroundColor:x,color:w,borderRight:`${k}px solid ${C}`},className:"polotno-y-ruler",children:[[...Array(b)].map((t,n)=>(0,S.jsx)(g8,{className:"polotno-ruler-tick",style:{top:f+n*g+"px",width:g+"px",borderLeft:`${T}px solid ${E}`},children:"px"===e.unit||p>=1?Math.round(p*n):(p*n).toFixed(1)},n)),!!e.selectedShapes.length&&(0,S.jsx)("div",{className:"polotno-ruler-selection",style:{position:"absolute",top:f+v.y*e.scale+"px",width:"14px",height:v.height*e.scale,backgroundColor:"rgba(0,0,0,0.15)"}})]})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(g2,{style:{width:t+"px",backgroundColor:x,color:w,borderBottom:`${k}px solid ${C}`},className:"polotno-x-ruler",children:[[...Array(m)].map((t,n)=>(0,S.jsx)(g3,{className:"polotno-ruler-tick",style:{left:h+n*g+"px",width:g+"px",borderLeft:`${T}px solid ${E}`},children:"px"===e.unit||p>=1?Math.round(p*n):(p*n).toFixed(1)},n)),!!e.selectedShapes.length&&(0,S.jsx)("div",{className:"polotno-ruler-selection",style:{position:"absolute",left:h+v.x*e.scale+"px",height:"14px",width:v.width*e.scale,backgroundColor:"rgba(0,0,0,0.15)"}})]}),(a?[e.activePage]:e.pages).map((t,i)=>{if(!t)return null;let a=r?r[i]:n,o=(a-t.computedHeight*e.scale)/2,l=14*(0===i);return(0,S.jsxs)(g4,{style:{height:a-l+"px",backgroundColor:x,color:w,borderRight:`${k}px solid ${C}`},className:"polotno-y-ruler",children:[[...Array(b)].map((t,n)=>(0,S.jsx)(g8,{className:"polotno-ruler-tick",style:{top:o+n*g-l+"px",width:g+"px",borderLeft:`${T}px solid ${E}`},children:"px"===e.unit||p>=1?Math.round(p*n):(p*n).toFixed(1)},n)),e.selectedShapes[0]?.page===t&&(0,S.jsx)("div",{className:"polotno-ruler-selection",style:{position:"absolute",top:o+v.y*e.scale-l+"px",width:"14px",height:v.height*e.scale,backgroundColor:"rgba(0,0,0,0.15)"}})]},t.id)})]})})});var _=C("8NFma"),P=C("2SBKn");let g9=F(({audio:e,store:t})=>{let[n,r]=function(e){let[t,n]=y(_).useState(null),[r,i]=y(_).useState("loading");return y(_).useEffect(()=>{let t=new Audio(e),r=()=>{i("loaded"),n(t)},a=()=>{i("failed"),n(null)};return t.addEventListener("canplay",r),t.addEventListener("error",a),()=>{t.removeEventListener("canplay",r),t.removeEventListener("error",a)}},[e]),[t,r]}(e.src);return y(_).useEffect(()=>{n&&t.history.ignore(()=>{e.set({duration:1e3*n.duration})})},[n,e,t.history]),y(_).useEffect(()=>{if(!n)return;let r=()=>{n.currentTime=e.startTime*e.duration/1e3},i=()=>{let t=e.endTime*e.duration/1e3;n.currentTime>=t&&(n.pause(),n.currentTime=e.startTime*e.duration/1e3)};n.addEventListener("ended",r),n.addEventListener("timeupdate",i);let a=(0,P.autorun)(()=>{let r=t.animatedElementsIds;if(r.length&&!r.includes(e.id))return;let i=t.currentTime-e.delay,a=e.duration*(e.endTime-e.startTime);if(!(t.isPlaying&&0===t.animatedElementsIds.length&&i>=0&&i<a))return void n.pause();n.volume=e.volume,n.paused&&n.play();let o=i%a/1e3+e.startTime*e.duration/1e3,l=n.currentTime;Math.abs(l-o)>.5&&o!==l&&(n.currentTime=o)});return()=>{n.pause(),n.removeEventListener("ended",r),n.removeEventListener("timeupdate",i),a()}},[t.isPlaying,e.startTime,e.endTime,e.volume,n]),null}),g7={data:[],pageId:""},me="polotno_clipboard",mt=(e,t)=>{g7={data:JSON.parse(JSON.stringify(e)),pageId:t||""};try{localStorage.setItem(me,JSON.stringify(e)),localStorage.setItem(me+"_page",t||"")}catch(e){}};function mn(e,t){let n=[];e.forEach(e=>{if(!1===e.removable)return;let t=e.clone();"group"===e.type?t.children.forEach(e=>{e.set({x:e.x+50,y:e.y+50})}):t.set({x:e.x+50,y:e.y+50}),n.push(t.id)}),t.selectElements(n)}let mr=e=>{if("group"!==e.type)return oc(e);let t=1/0,n=1/0,r=-1/0,i=-1/0;return e.children.forEach(e=>{let a=mr(e);t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height)}),{x:t,y:n,width:r-t,height:i-n}},mi=(e,t,n)=>{if("group"!==e.type){let r=oc(e),i=t-r.x,a=n-r.y;e.set({x:e.x+i,y:e.y+a})}else{let r=t-mr(e).x,i=n-mr(e).y;e.children.forEach(e=>{let t=mr(e);mi(e,t.x+r,t.y+i)})}};function ma(e){let t=e.activePage?.computedWidth;e.selectedElements.forEach(e=>{t=Math.min(t,mr(e).x)}),1===e.selectedElements.length&&(t=0),e.selectedElements.forEach(e=>{let n=mr(e);mi(e,n.x-n.x+t,n.y)})}function mo(e){let t=0;e.selectedElements.forEach(e=>{let n=mr(e);t=Math.max(t,n.x+n.width)}),1===e.selectedElements.length&&(t=e.activePage?.computedWidth),e.selectedElements.forEach(e=>{let n=mr(e);mi(e,t-n.width,n.y)})}function ml(e){let t=e.activePage?.computedHeight;e.selectedElements.forEach(e=>{t=Math.min(t,mr(e).y)}),1===e.selectedElements.length&&(t=0),e.selectedElements.forEach(e=>{let n=mr(e);mi(e,n.x,n.y-n.y+t)})}function ms(e){let t=e.activePage?.computedHeight,n=0;e.selectedElements.forEach(e=>{let r=mr(e);t=Math.min(t,r.y),n=Math.max(n,r.y+r.height)});let r=(n+t)/2;1===e.selectedElements.length&&(r=e.activePage?.computedHeight/2),e.selectedElements.forEach(e=>{let t=mr(e);mi(e,t.x,r-t.height/2)})}function mc(e){let t=0;e.selectedElements.forEach(e=>{let n=mr(e);t=Math.max(t,n.y+n.height)}),1===e.selectedElements.length&&(t=e.activePage?.computedHeight),e.selectedElements.forEach(e=>{let n=mr(e);mi(e,n.x,t-n.height)})}function mu(e){let t=e.activePage?.computedWidth,n=0;e.selectedElements.forEach(e=>{let r=mr(e);t=Math.min(t,r.x),n=Math.max(n,r.x+r.width)});let r=(n+t)/2;1===e.selectedElements.length&&(r=e.activePage?.computedWidth/2),e.selectedElements.forEach(e=>{let t=mr(e);mi(e,r-t.width/2,t.y)})}let md="rgba(191, 191, 191, 100)";function mh(e,t,n){let r=e.getCell(t,n);r&&e.focusCell(r.id)}function mf(e,t,n){let r=e.getCell(t,n);r&&e.enterCellEdit(r.id)}var P=C("2SBKn");let mp=(0,P.observable)({toolbar:{duration:"Duration",opacity:"Opacity",effects:"Effects",blur:"Blur",curvedText:"Curved text",curvePower:"Power",temperature:"Temperature",saturation:"Saturation",contrast:"Contrast",shadows:"Shadows",white:"White",black:"Black",vibrance:"Vibrance",textBackground:"Background",backgroundCornerRadius:"Corner radius",backgroundOpacity:"Opacity",backgroundPadding:"Padding",brightness:"Brightness",filters:"Filters",sepia:"Sepia",grayscale:"Grayscale",cold:"Cold",natural:"Natural",warm:"Warm",textStroke:"Text Stroke",shadow:"Shadow",border:"Border",cornerRadius:"Corner Radius",copyStyle:"Copy style",uppercase:"Uppercase",position:"Position",layering:"Layering",toForward:"To Front",up:"Forward",down:"Backward",toBottom:"To back",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom",flip:"Flip",flipHorizontally:"Flip horizontally",flipVertically:"Flip vertically",fitToBackground:"Fit to page",removeBackground:"Remove background",removeBackgroundTitle:"Remove background from image",cancelRemoveBackground:"Cancel",confirmRemoveBackground:"Confirm",crop:"Crop",cropDone:"Done",cropCancel:"Cancel",clip:"Apply mask",removeClip:"Remove mask",removeMask:"Remove mask",transparency:"Transparency",lockedDescription:"Object is locked. Unlock it to allow changes from canvas.",unlockedDescription:"Object is unlocked. Lock it to prevent changes from canvas.",removeElements:"Remove elements",duplicateElements:"Duplicate elements",download:"Download",saveAsImage:"Save as image",saveAsPDF:"Save as PDF",lineHeight:"Line height",letterSpacing:"Letter spacing",offsetX:"Offset X",offsetY:"Offset Y",color:"Color",selectable:"Selectable",draggable:"Draggable",removable:"Removable",resizable:"Resizable",contentEditable:"Can change content",styleEditable:"Can change style",alwaysOnTop:"Always on top",showInExport:"Show in export",ungroupElements:"Ungroup",groupElements:"Group",lineSize:"Line size",fade:"Fade",move:"Move",zoom:"Zoom",animate:"Animate",rotate:"Rotate",none:"None",bounce:"Bounce",blink:"Blink",strength:"Strength",spaceEvenly:"Space evenly",horizontalDistribution:"Horizontally",verticalDistribution:"Vertically",strokeWidth:"Stroke Width",strokeSettings:"Stroke settings",spacing:"Spacing",volume:"Volume",lineStyle:"Line style",lineStartHead:"Line start",lineEndHead:"Line end",textDirection:"Text direction",fontSize:"Font size",fontFamily:"Font family",textAlign:"Text align",verticalAlign:"Vertical align",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",cellBackground:"Cell background",tableBorderSettings:"Border settings",tableBorderColor:"Border color",tableBorderWidth:"Border width",tableBorderStyle:"Border style",borderModeAll:"All borders",borderModeOuter:"Outer borders",borderModeInner:"Inner borders",borderModeBottomOnly:"Bottom only",borderModeTopOnly:"Top only",borderModeLeftOnly:"Left only",borderModeRightOnly:"Right only",borderModeInnerHorizontal:"Inner horizontal",borderModeInnerVertical:"Inner vertical",tableStructure:"Table structure",tableRows:"Rows",tableColumns:"Columns",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",deleteRow:"Delete row",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteColumn:"Delete column",deleteRows:"Delete rows",deleteColumns:"Delete columns",distributeRowsEvenly:"Distribute rows evenly",distributeColumnsEvenly:"Distribute columns evenly",cellPadding:"Cell padding",listFormat:"List",colorPicker:{solid:"Solid",linear:"Linear",angle:"Angle"},aiText:{aiWrite:"AI write",rewrite:"Rewrite",shorten:"Shorten",continue:"Continue writing",proofread:"Proofread",tones:"Tones",friendly:"Friendly",professional:"Professional",humorous:"Humorous",formal:"Formal",customPrompt:"Custom prompt",generatedResult:"Generated result",cancel:"Cancel",generate:"Generate",back:"Back",tryAgain:"Try Again",insert:"Insert",promptPlaceholder:"Describe what you want to generate"}},workspace:{noPages:"There are no pages yet...",addPage:"Add page",removePage:"Remove page",duplicatePage:"Duplicate page",moveUp:"Move up",moveDown:"Move down",moveLeft:"Move left",moveRight:"Move right"},scale:{reset:"Reset"},error:{removeBackground:"Ops! Something went wrong. Background can not be removed."},sidePanel:{templates:"Templates",searchTemplatesWithSameSize:"Show templates with the same size",searchPlaceholder:"Search...",otherFormats:"Other formats",noResults:"No results",error:"Loading is failed...",text:"Text",uploadFont:"Upload font",myFonts:"My fonts",photos:"Photos",videos:"Videos",animations:"Animations",effects:"Effects",elements:"Elements",shapes:"Shapes",tables:"Tables",lines:"Lines",draw:"Draw",upload:"Upload",uploadImage:"Add file",uploadTip:"Upload your assets",background:"Background",resize:"Resize",layers:"Layers",animate:"Animate",layerTypes:{image:"Image",text:"Text",svg:"SVG",line:"Line",figure:"Figure",group:"Group"},layersTip:"Elements on your active page:",noLayers:"No elements on the page...",namePlaceholder:"Type element name...",useMagicResize:"Use magic resize",clipImage:"Mask image",width:"Width",height:"Height",magicResizeDescription:"Magic resize will automatically resize and move all elements on the canvas",headerText:"Header",createHeader:"Create header",subHeaderText:"Sub Header",createSubHeader:"Create sub header",bodyText:"Body text",createBody:"Create body text"},pagesTimeline:{pages:"Pages",removePage:"Remove page",addPage:"Add page",duplicatePage:"Duplicate page",removeAudio:"Remove audio",duplicateAudio:"Duplicate audio",muteAudio:"Mute",unmuteAudio:"Unmute",volume:"Volume"},contextMenu:{duplicate:"Duplicate",remove:"Remove",lock:"Lock",unlock:"Unlock",copy:"Copy",paste:"Paste",copyStyle:"Copy style",moveUp:"Move up",moveDown:"Move down",moveBack:"Move back",moveForward:"Move forward"}}),mg=(0,P.action)((e,{validate:t=!1}={})=>{t&&function e(t,n,r=""){Object.keys(n).forEach(i=>{let a=n[i],o=r?`${r}.${i}`:i;if(a&&"object"==typeof a){let n;(n=t[i])&&"object"==typeof n?e(t[i],a,o):console.warn(`Missing nested translation object at '${o}'`)}else void 0===t[i]&&console.warn(`Missing translation '${o}'`)})}(e,mp),function e(t,n){Object.keys(n).forEach(r=>{let i=t[r],a=n[r];a&&"object"==typeof a&&i&&"object"==typeof i?e(i,a):t[r]=a})}(mp,e)}),mm=()=>(0,P.toJS)(mp),my={},mb=e=>{let t=function(e,t){var n,r=t.split("."),i=e;for(n=0;n<r.length;++n)if(void 0==i[r[n]])return;else i=i[r[n]];return i}(mp,e);if(void 0!==t)return t;my[e]||(my[e]=!0,console.warn(`Missing translation '${e}'`));let n=e.split("."),r=n[n.length-1]||" ";return r.charAt(0).toUpperCase()+r.slice(1)},mv=(e,t,n)=>Math.max(t,Math.min(n,e)),mx=(e,t)=>Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)),mw=`Polotno warning: <Workspace /> component can not automatically detect its size.
413
413
  Width or height of parent elements is equal 0.
414
414
  Please make sure it has non-zero size. You may need to adjust it with your styles. <Workspace /> will automatically fit into parent container.
415
- For simpler debugging here is the log of the parent element:`,mC=({store:e})=>(0,S.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"},children:[(0,S.jsx)("p",{children:mb("workspace.noPages")}),(0,S.jsx)("button",{onClick:()=>{e.addPage()},children:mb("workspace.addPage")})]}),mk=({width:e,height:t,xPadding:n,yPadding:r,backgroundColor:i})=>(0,S.jsx)("div",{style:{width:e+"px",height:t+"px",backgroundColor:i,paddingLeft:n+"px",paddingRight:n+"px",paddingTop:r+"px",paddingBottom:r+"px",flexShrink:0},children:(0,S.jsx)("div",{style:{width:" 100%",height:"100%",backgroundColor:"white"}})}),mS=F(({store:e,layout:t="vertical",pageControlsEnabled:n,backgroundColor:r,transparencyBackgroundColor:i,pageBorderColor:a,activePageBorderColor:o,bleedColor:l,snapGuideStroke:s,snapGuideStrokeWidth:c,snapGuideDash:u,selectionRectFill:d,selectionRectStroke:h,selectionRectStrokeWidth:f,transformLabelFill:p,transformLabelTextFill:g,cropOverlayFill:m,transformerStyle:b,innerImageCropTransformerStyle:v,outerImageCropTransformerStyle:x,highlighterStyle:w,mediaLoadingStyle:C,mediaErrorStyle:k,textOverflowIndicatorStyle:E,distanceGuideStroke:T,distanceLabelFill:P,distanceLabelTextFill:O,rulerBackgroundColor:I,rulerTextColor:A,rulerBorderColor:R,rulerBorderSize:M,rulerTickColor:L,rulerTickSize:N,components:j,onKeyDown:D,paddingX:z,paddingY:B,pageGap:F,altCloneEnabled:H=!0,groupClickBehavior:V="select-child",visiblePagesOffset:U,renderOnlyActivePage:W,scrollToPageThreshold:q=.5,tooltipSafeArea:$})=>{var G,K;let X,Y,Z,Q,J,ee,et,en,er,ei,ea,eo,el,es,ec,eu="horizontal"===t,ed=z??20,eh=B??55,[ef,ep]=y(_).useState({width:100,height:100}),eg=y(_).useRef(ef),em=y(_).useRef(null),ey=y(_).useRef(null),eb=y(_).useRef(0),ev=e.bleedVisible?Math.max(0,...e.pages.map(e=>e.bleed)):0,ex=Math.max(...e.pages.map(e=>e.computedWidth)),ew=Math.max(...e.pages.map(e=>e.computedHeight)),eC=e.activePage?.computedHeight||0,ek=ex+2*ev,eS=(W?eC:ew)+2*ev,e_=async({skipTimeout:t}={skipTimeout:!1})=>{if(t||await new Promise(e=>setTimeout(e,50)),null===em.current)return;let n=em.current.getBoundingClientRect();(0===n.width||0===n.height)&&(console.warn(mw),console.log(em.current));let r=ey.current.clientWidth||n.width,i={width:r,height:n.height};(eg.current.width!==i.width||eg.current.height!==i.height)&&(ep(i),eg.current=i);let a=(r-2*ed)/ek,o=e.pages.length>1?3.1:2,l=(n.height-eh*o)/eS,s=(r-ed*(e.pages.length>1?3.1:2))/ek,c=(n.height-2*eh)/eS,u=e.pages.length?Math.max(Math.min(eu?s:a,eu?c:l),.01):1;e.scaleToFit!==u&&(e.setScale(u),e._setScaleToFit(u))};y(_).useLayoutEffect(()=>{e_({skipTimeout:!0})},[]),y(_).useEffect(()=>{e_()},[ek,eS,B,z]),y(_).useLayoutEffect(()=>{e_({skipTimeout:!0})},[e.openedSidePanel]),y(_).useEffect(()=>{e.__()},[]),y(_).useEffect(()=>{let e=em.current;if(window.ResizeObserver){let t=new ResizeObserver(()=>{e_({skipTimeout:!0})});return t.observe(e),()=>t.unobserve(e)}{let e=setInterval(()=>{e_({skipTimeout:!0})},100);return()=>clearInterval(e)}},[ek,eS]);let eE=W?1:e.pages.length;if(eu){let t=ek*e.scale*eE;X=Math.max(ed,(ef.width-t)/eE/2),Y=Math.max(eh,(ef.height-eS*e.scale)/2)}else{X=Math.max(ed,(ef.width-ek*e.scale)/2);let t=eS*e.scale*eE;Y=Math.max(eh,(ef.height-t)/eE/2)}Number.isNaN(X)&&(X=ed),Number.isNaN(Y)&&(Y=eh),y(_).useEffect(()=>{let t=t=>{(D||function(e,t){if(t.role===sJ.VIEWER)return;let n=document.activeElement,r=document.querySelector(".polotno-workspace-container"),i=n?.tagName==="INPUT"||n?.tagName==="TEXTAREA"||!!n?.isContentEditable,a=!!(n&&r?.contains(n)),o=function(e){if(1!==e.selectedElements.length)return null;let t=e.selectedElements[0];return"table"!==t.type?null:t}(t);if(!(i&&!a)&&o&&function(e,t,n){let r=t._focusedCellIds.length>0,i=!!t._editingCellId;if(!r&&!i)return!1;if(i){if("Escape"===e.key)return e.preventDefault(),t.exitCellEdit(),!0;if("Tab"===e.key){e.preventDefault();let n=t.editingCell;if(t.exitCellEdit(),n)if(e.shiftKey){let e=n.col-1,r=n.row;e<0&&(r-=1,e=t.cols-1),r<0&&(r=t.rows-1,e=t.cols-1),mf(t,r,e)}else{let e=n.col+1,r=n.row;e>=t.cols&&(r+=1,e=0),r>=t.rows&&(r=0,e=0),mf(t,r,e)}return!0}if(e.metaKey||e.ctrlKey){let n=t.editingCell;if(n){if("b"===e.key)return e.preventDefault(),n.set({fontWeight:"bold"===n.fontWeight?"normal":"bold"}),!0;if("i"===e.key)return e.preventDefault(),n.set({fontStyle:"italic"===n.fontStyle?"normal":"italic"}),!0;if("u"===e.key){e.preventDefault();let t=n.textDecoration.split(" ").filter(Boolean),r=t.includes("underline");n.set({textDecoration:r?t.filter(e=>"underline"!==e).join(" "):[...t,"underline"].join(" ")})}}}return!0}if("Escape"===e.key)return e.preventDefault(),t.clearCellFocus(),!0;let a=t.focusedCells[0];if(!a)return!1;let o=a.row,l=a.col;if("Enter"===e.key)return e.preventDefault(),t.enterCellEdit(a.id),!0;if("Tab"===e.key){if(e.preventDefault(),e.shiftKey){let e=l-1,n=o;e<0&&(n-=1,e=t.cols-1),n<0&&(n=t.rows-1,e=t.cols-1),mh(t,n,e)}else{let e=l+1,n=o;e>=t.cols&&(n+=1,e=0),n>=t.rows&&(n=0,e=0),mh(t,n,e)}return!0}if("ArrowRight"===e.key||"ArrowLeft"===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){if(e.preventDefault(),e.shiftKey){let n=function(e){let t=e.cells.find(t=>t.id===e._anchorCellId);if(!t)return null;let n=e.focusedCells;if(n.length<=1)return{row:t.row,col:t.col};let r=1/0,i=-1,a=1/0,o=-1;for(let e of n)e.row<r&&(r=e.row),e.row>i&&(i=e.row),e.col<a&&(a=e.col),e.col>o&&(o=e.col);return{row:t.row===r?i:r,col:t.col===a?o:a}}(t)||{row:o,col:l},r=n.row,i=n.col;"ArrowRight"===e.key&&(i=Math.min(n.col+1,t.cols-1)),"ArrowLeft"===e.key&&(i=Math.max(n.col-1,0)),"ArrowDown"===e.key&&(r=Math.min(n.row+1,t.rows-1)),"ArrowUp"===e.key&&(r=Math.max(n.row-1,0)),t.focusCellRange(r,i)}else"ArrowRight"===e.key&&mh(t,o,Math.min(l+1,t.cols-1)),"ArrowLeft"===e.key&&mh(t,o,Math.max(l-1,0)),"ArrowDown"===e.key&&mh(t,Math.min(o+1,t.rows-1),l),"ArrowUp"===e.key&&mh(t,Math.max(o-1,0),l);return!0}let s=e.ctrlKey||e.metaKey;if(!s&&!e.shiftKey&&!e.altKey&&("Delete"===e.key||"Backspace"===e.key))return e.preventDefault(),t.focusedCells.forEach(e=>{e.set({text:""})}),!0;if(s&&e.shiftKey&&!e.altKey&&"Equal"===e.code){e.preventDefault();let r=t.getFocusedCellRange(),i=r?r.maxRow+1:o+1;return n.history.transaction(()=>{t.addRow(i)}),!0}if(s&&e.shiftKey&&e.altKey&&"Equal"===e.code){e.preventDefault();let r=t.getFocusedCellRange(),i=r?r.maxCol+1:l+1;return n.history.transaction(()=>{t.addColumn(i)}),!0}if(s&&!e.shiftKey&&"Backspace"===e.code){let r=t.getFocusedCellRange();if(r&&0===r.minCol&&r.maxCol===t.cols-1&&t.rows>1)return e.preventDefault(),n.history.transaction(()=>{t.removeRowRange(r.minRow,r.maxRow)}),!0}if(s&&e.shiftKey&&"Backspace"===e.code){let r=t.getFocusedCellRange();if(r&&0===r.minRow&&r.maxRow===t.rows-1&&t.cols>1)return e.preventDefault(),n.history.transaction(()=>{t.removeColumnRange(r.minCol,r.maxCol)}),!0}if(s&&"KeyC"===e.code){e.preventDefault();let n=t.focusedCells.map(e=>aa(e.text));return navigator.clipboard.writeText(n.join("\n")),!0}return s&&"KeyV"===e.code?(e.preventDefault(),navigator.clipboard.readText().then(e=>{let n=t.focusedCells[0];n&&n.set({text:e})}),!0):!!s&&"KeyA"===e.code&&(e.preventDefault(),t.cells.forEach(e=>{t.focusCell(e.id,!0)}),!0)}(e,o,t)||i)return;let l=document.activeElement===r||a;if(!l){let e=window.getSelection();if(e&&e.toString().length>0)return}if("Alt"===e.key){(l||t.distanceGuidesVisible||r&&r.matches(":hover"))&&e.preventDefault();return}let s=t.selectedElements.filter(e=>e.removable).map(e=>e.id);(46===e.keyCode||8===e.keyCode)&&t.deleteElements(s);let c=e.ctrlKey||e.metaKey,u=e.shiftKey,d=e.altKey;if("Escape"===e.key){e.preventDefault(),"draw"===t.tool?t.setTool("selection"):t.selectElements([]);return}if(c&&!u&&("z"===e.key.toLowerCase()||"y"===e.key.toLowerCase())&&(e.preventDefault(),t.history.undo()),c&&u&&("z"===e.key.toLowerCase()||"y"===e.key.toLowerCase())&&(e.preventDefault(),t.history.redo()),c&&"KeyA"===e.code){e.preventDefault();let n=t.activePage?.children.filter(e=>e.selectable),r=n?.map(e=>e.id)||[];t.selectElements(r)}if(c&&"KeyC"===e.code&&(e.preventDefault(),0!==t.selectedElements.length&&mt(t.selectedElements.map(e=>e.toJSON()),t.activePage?.id)),c&&"KeyX"===e.code){let n;e.preventDefault(),mt(t.selectedElements.map(e=>e.toJSON()),t.activePage?.id),n=t.selectedElements.filter(e=>e.removable).map(e=>e.id),t.deleteElements(n)}if(c&&"KeyV"===e.code&&(e.preventDefault(),t.history.transaction(()=>{let e=0,n=0,{data:r,pageId:i}=(()=>{try{let e=localStorage.getItem(me),t=localStorage.getItem(me+"_page");if(e)return{data:JSON.parse(e),pageId:t}}catch(e){}return g7})();if(i===t.activePage?.id)e=t.width/20,n=t.height/20;else{let i=[];oG({children:r},e=>{"group"!==e.type&&i.push(e)});let a=ou(i);a.maxX>t.width&&(e=-a.minX),a.maxY>t.height&&(n=-a.minY)}let a=[];oG({children:r},t=>{delete t.id,"group"!==t.type&&(t.x+=e,t.y+=n)}),r.forEach(e=>{let n=t.activePage?.addElement(e);n&&a.push(n.id)}),mt(r,t.activePage?.id),t.selectElements(a)})),"ArrowDown"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({y:e.y+n})})}if("ArrowUp"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({y:e.y-n})})}if("ArrowLeft"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({x:e.x-n})})}if("ArrowRight"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({x:e.x+n})})}if(c&&"KeyG"===e.code){e.preventDefault();let n=t.selectedElements[0];n&&"group"===n.type?t.ungroupElements([n.id]):t.groupElements(t.selectedElements.map(e=>e.id))}if(c&&"KeyD"===e.code&&(e.preventDefault(),mn(t.selectedElements,t)),"KeyT"===e.code&&!c){e.preventDefault();let n=t.width/2,r=t.width/2-n/2,i=t.height/2-15,a=t.width+t.height;t.activePage?.addElement({type:"text",x:r,y:i,width:n,fontSize:a/2160*30,text:"Sample Text",fontFamily:"Roboto"})}if("KeyR"===e.code&&!c){e.preventDefault();let n={type:"figure",x:t.width/4,y:t.height/4,width:300,height:300,fill:md,stroke:"#0c0c0c",strokeWidth:0,subType:"rect"};t.activePage?.addElement(n)}if("KeyL"===e.code&&!c){e.preventDefault();let n=(t.activePage?.computedWidth??0)/3,r={type:"line",x:(t.activePage?.computedWidth??0)/2-n/2,y:(t.activePage?.computedHeight??0)/2,width:n,color:md};t.activePage?.addElement(r)}if("KeyO"===e.code&&!c){e.preventDefault(),e.preventDefault();let n={type:"figure",x:t.width/4,y:t.height/4,width:300,height:300,fill:md,stroke:"#0c0c0c",strokeWidth:0,subType:"circle"};t.activePage?.addElement(n)}c&&"Equal"===e.code&&(e.preventDefault(),t.setScale(t.scale+.1)),c&&"Minus"===e.code&&(e.preventDefault(),t.setScale(t.scale-.1)),d&&("KeyA"===e.code&&(e.preventDefault(),ma(t)),"KeyD"===e.code&&(e.preventDefault(),mo(t)),"KeyS"===e.code&&(e.preventDefault(),mc(t)),"KeyW"===e.code&&(e.preventDefault(),ml(t)),"KeyV"===e.code&&(e.preventDefault(),ms(t)),"KeyH"===e.code&&(e.preventDefault(),mu(t))),"BracketRight"===e.code&&(e.preventDefault(),t.selectedElements.forEach(e=>c?e.moveUp():e.moveTop())),"BracketLeft"===e.code&&(e.preventDefault(),t.selectedElements.forEach(e=>c?e.moveDown():e.moveBottom()))})(t,e)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),y(_).useEffect(()=>{let t=t=>{if(t.ctrlKey||t.metaKey){t.preventDefault();let n=Math.max(5,e.scaleToFit),r=Math.min(.1,e.scaleToFit);eu&&ek>0&&Number.isFinite(ek)&&(r=Math.max(r,300/ek)),r=Math.max(r,.01);let i=mv(t.deltaY<0?1.03*e.scale:e.scale/1.03,r,n);e.setScale(i);return}},n=ey.current;return n?.addEventListener("wheel",t),()=>n?.removeEventListener("wheel",t)},[eu,ek,e]),y(_).useEffect(()=>{let t=ey.current;if(!t)return;let n=e=>{2===e.touches.length&&(eb.current=mx(e.touches[0],e.touches[1]))},r=n=>{if(2===n.touches.length&&eb.current>0){n.preventDefault();let r=mx(n.touches[0],n.touches[1]),i=r/eb.current,a=Math.max(5,e.scaleToFit),o=Math.min(.1,e.scaleToFit);eu&&ek>0&&Number.isFinite(ek)&&(o=Math.max(o,300/ek)),o=Math.max(o,.01);let l=e.scale,s=mv(l*i,o,a),c=s/l,u=t.getBoundingClientRect(),d=(n.touches[0].clientX+n.touches[1].clientX)/2-u.left,h=(n.touches[0].clientY+n.touches[1].clientY)/2-u.top,f=t.scrollLeft+d,p=t.scrollTop+h;eM.current=!0,e.setScale(s),t.scrollLeft=f*c-d,t.scrollTop=p*c-h,eb.current=r}},i=()=>{eb.current=0};return t.addEventListener("touchstart",n,{passive:!0}),t.addEventListener("touchmove",r,{passive:!1}),t.addEventListener("touchend",i,{passive:!0}),()=>{t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",r),t.removeEventListener("touchend",i)}},[eu,ek,e]);let eT=void 0!==F,eP=e.pages.map(t=>{if(eu){let n=(t.computedWidth+2*ev)*e.scale;return eT?n+F:n+2*X}{let n=(t.computedHeight+2*ev)*e.scale;return eT?n+F:n+2*Y}}),eO=[],eI=eT?eu?X:Y:0;for(let e=0;e<eP.length;e++)eO.push(eI),eI+=eP[e];let eA=eP.reduce((e,t)=>e+t,0),eR=eT?eA+(eu?2*X:2*Y):eA,eM=y(_).useRef(!1),[,eL]=y(_).useReducer(e=>e+1,0);G=e.scale,Z=y(_).useRef(0),Q=y(_).useRef(0),J=y(_).useRef(null),ee=y(_).useRef(null),et=y(_).useRef(!1),et.current=(en=y(_).useRef(e.pages.length)).current!==e.pages.length,en.current=e.pages.length,y(_).useEffect(()=>{let e=ey.current,t=()=>{Z.current=e.scrollLeft,Q.current=e.scrollTop,J.current=e.scrollWidth,ee.current=e.scrollHeight};return e.addEventListener("scroll",t),t(),()=>{e.removeEventListener("scroll",t)}},[]),y(_).useLayoutEffect(()=>{if(!ey.current||et.current)return;let e=ey.current,t=J.current,n=ee.current;if(null===t||null===n){J.current=e.scrollWidth,ee.current=e.scrollHeight,Z.current=e.scrollLeft,Q.current=e.scrollTop;return}eM.current=!0;let r=e.offsetWidth,i=e.offsetHeight,a=(Z.current+r/2)/t,o=(Q.current+i/2)/n,l=Math.max(0,e.scrollWidth-r),s=Math.max(0,e.scrollHeight-i);e.scrollLeft=mv(a*e.scrollWidth-r/2,0,l),e.scrollTop=mv(o*e.scrollHeight-i/2,0,s),J.current=e.scrollWidth,ee.current=e.scrollHeight,Z.current=e.scrollLeft,Q.current=e.scrollTop},[G,eR]);let{handleScroll:eN}=(er=y(_).useRef(!1),ei=y(_).useRef(null),ea=y(_).useRef(!1),eo="horizontal"===t,y(_).useEffect(()=>{let e=ey.current,t=()=>{if(eM.current)return};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[]),el=e.pages.indexOf(e.activePage),y(_).useLayoutEffect(()=>{if(W||!e.activePage||!ey.current||er.current)return;let t=ey.current,n=e.pages.indexOf(e.activePage),r=eO[n]||0,i=eo?t.scrollLeft:t.scrollTop,a=Math.min(r,Math.max(0,eo?t.scrollWidth-t.clientWidth:t.scrollHeight-t.clientHeight)),o=eP[n]||eP[0]||0,l=()=>{};return(Math.abs(a-i)>o*q||ea.current)&&(ea.current=!0,l=(({element:e,scrollTop:t,scrollLeft:n,duration:r=300,onFinish:i=()=>{}})=>{let a=void 0!==t,o=a?e.scrollTop:e.scrollLeft,l=a?t:n,s=l-o,c=0,u=!1;if(0===r)return a?e.scrollTop=l:e.scrollLeft=l,()=>{};let d=()=>{if(u)return;let t=h(c+=20,o,s,r);a?e.scrollTop=t:e.scrollLeft=t,c<r?setTimeout(d,20):i()},h=(e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t;return d(),()=>{u=!0}})({element:t,...eo?{scrollLeft:a}:{scrollTop:a},onFinish:()=>{ea.current=!1,eL?.()},duration:300*!e.isPlaying})),l},[e.activePage,el,e.isPlaying,W,t,eO,eP]),{handleScroll:t=>{if(W||ea.current)return;er.current=!0,clearTimeout(ei.current),ei.current=setTimeout(()=>{er.current=!1},300);let n=(eo?t.currentTarget.scrollLeft:t.currentTarget.scrollTop)+(eo?ef.width:ef.height)/3,r=0;for(let e=eO.length-1;e>=0;e--)if(n>=eO[e]){r=e;break}let i=e.pages[r];i&&e.activePage!==i&&i.select()}}),ej=ef.width>=ek*e.scale+2*X,eD=ef.height>=eS*e.scale+2*Y,ez=r||"rgba(232, 232, 232, 0.9)",eB=j?.NoPages||mC,eF=eu?ef.width:ef.height,eH=ey.current?eu?ey.current.scrollLeft:ey.current.scrollTop:0,eV=e=>{for(let t=eO.length-1;t>=0;t--)if(e>=eO[t])return t;return 0},eU=Math.max(0,eV(eH)),eW=Math.min(e.pages.length-1,eV(eH+eF)),eq=U??1,e$=Math.max(0,eU-eq),eG=Math.min(e.pages.length-1,eW+eq),eK=(K={cropOverlayFill:m,workspaceBackgroundColor:r,pageBorderColor:a,activePageBorderColor:o,bleedColor:l,transparencyBackgroundColor:i,transformerStyle:b,innerImageCropTransformerStyle:v,outerImageCropTransformerStyle:x,highlighterStyle:w,snapGuideStroke:s,snapGuideStrokeWidth:c,snapGuideDash:u,selectionRectFill:d,selectionRectStroke:h,selectionRectStrokeWidth:f,transformLabelFill:p,transformLabelTextFill:g,distanceGuideStroke:T,distanceLabelFill:P,distanceLabelTextFill:O,mediaLoadingStyle:C,mediaErrorStyle:k,textOverflowIndicatorStyle:E,rulerBackgroundColor:I,rulerTextColor:A,rulerBorderColor:R,rulerBorderSize:M,rulerTickColor:L,rulerTickSize:N},es=y(_).useSyncExternalStore(ir,ii,ii),(ec=y(_).useRef(null)).current&&ec.current.revision===es&&function(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}(ec.current.overrides,K)||(ec.current={overrides:K,revision:es,resolved:r8(K)}),ec.current.resolved);return(0,S.jsx)(r5,{value:eK,children:(0,S.jsx)("div",{ref:em,style:{width:"100%",height:"100%",position:"relative",outline:"none",flex:1,backgroundColor:ez,overflow:"hidden"},tabIndex:0,className:"polotno-workspace-container",children:(0,S.jsxs)("div",{ref:ey,onScroll:eN,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",flexDirection:eu?"row":"column",overflow:"auto",overflowX:eu?"auto":ej?"hidden":"auto",overflowY:eu&&eD?"hidden":"auto",...eT&&{paddingTop:eu?0:Y,paddingBottom:eu?0:Y,paddingLeft:eu?X:0,paddingRight:eu?X:0,boxSizing:"border-box"}},className:"polotno-workspace-inner",children:[e.pages.map((r,i)=>{let a=r===e.activePage;if(W&&!a&&!(r._exportingOrRendering||r._forceMount))return null;let o=a||i>=e$&&i<=eG||r._exportingOrRendering||r._forceMount,l=eu?eP[i]:ek*e.scale+2*X,s=eu?eS*e.scale+2*Y:eP[i];if(!o)return(0,S.jsx)("div",{style:{flexShrink:0},children:(0,S.jsx)(mk,{width:l,height:s,backgroundColor:ez,xPadding:X,yPadding:Y})},r.id);let c=(0,S.jsx)(g0,{page:r,xPadding:X,yPadding:Y,width:l,height:s,store:e,pageControlsEnabled:n,altCloneEnabled:H,groupClickBehavior:V,components:j,viewportSize:ef,layout:t,tooltipSafeArea:$},r.id);return(r._exportingOrRendering||r._forceMount)&&!a&&W?(0,S.jsx)("div",{style:{display:"none",flexShrink:0},children:c},r.id):c}),e.rulesVisible&&(0,S.jsx)(g5,{store:e,xPadding:X,yPadding:Y,width:ek*e.scale+2*X,height:eS*e.scale+2*Y,pageSizes:eP,layout:t,renderOnlyActivePage:W}),0===e.pages.length&&(0,S.jsx)(eB,{store:e}),e.audios.map(t=>(0,S.jsx)(g9,{audio:t,store:e},t.id))]})})})});C("8NFma");var m_=C("gztBd"),mE={},mT={}.hasOwnProperty;function mP(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=mO(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return mP.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)mT.call(e,n)&&e[n]&&(t=mO(t,n));return t}(n)))}return e}function mO(e,t){return t?e?e+" "+t:e+t:e}mE?(mP.default=mP,mE=mP):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return mP}):window.classNames=mP;var _=(C("8NFma"),C("8NFma"));function mI(e,t){null!=e&&"function"!=typeof e?e.current=t:"function"==typeof e&&e(t)}function mA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){e.forEach(function(e){mI(e,t)})}}function mR(e){return null===e?null:void 0===e.current?e:e.current}function mM(e,t,n){return function(r){e[t]=r,mI(n,r)}}var mL={};p(mL,"clickElementOnKeyPress",()=>mQ),p(mL,"elementIsOrContains",()=>mq),p(mL,"elementIsTextInput",()=>m$),p(mL,"getActiveElement",()=>mG),p(mL,"getFocusableElements",()=>mJ),p(mL,"throttle",()=>mY),p(mL,"throttleEvent",()=>mK),p(mL,"throttleReactEventCallback",()=>mX),p(mL,"isFunction",()=>m0),p(mL,"isDarkTheme",()=>CI),p(mL,"setRef",()=>mI),p(mL,"getRef",()=>mR);var mN={};function mj(e,t,n){return void 0===n&&(n=function(e,t){return e===t}),null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(function(e,r){return n(e,t[r])})}function mD(e,t,n){if(null==e&&null==t)return!0;if(null==e||null==t||Array.isArray(e)||Array.isArray(t))return!1;if(null!=n)return mF(e,t,n);var r=Object.keys(e),i=Object.keys(t);return mF(e,t,{include:r})&&mF(e,t,{include:i})}function mz(e,t,n){if(e===t||null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return mj(e,t,mz);if(mV(e)||mV(t))return e===t;if(null!=n)return mH(e,t,n);if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),i=Object.keys(t);return null!=r&&null!=i&&(0===r.length&&0===i.length||mj(r,i)&&mH(e,t,r))}function mB(e,t,n){void 0===e&&(e={}),void 0===t&&(t={});var r,i,a,o,l,s,c,u,d=null==n?(r=e,i=t,a=Object.keys(r),o=Object.keys(i),Object.keys(mU(a.concat(o)))):n;return l=e,s=t,c=d,u=function(e,t,n){return mz(e,t,[n])},c.filter(function(e){return!u(l,s,e)}).map(function(e){return{key:e,valueA:l[e],valueB:s[e]}})}function mF(e,t,n){return(function(e,t,n){if(null!=(r=n)&&null!=r.include)return n.include;if(null!=(i=n)&&null!=i.exclude){var r,i,a=Object.keys(e),o=Object.keys(t),l=mU(a.concat(o));return n.exclude.forEach(function(e){return delete l[e]}),Object.keys(l)}return[]})(e,t,n).every(function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&e[n]===t[n]})}function mH(e,t,n){return n.every(function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&mz(e[n],t[n])})}function mV(e){return"number"==typeof e||"string"==typeof e||"boolean"==typeof e}function mU(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}p(mN,"arraysEqual",()=>mj),p(mN,"shallowCompareKeys",()=>mD),p(mN,"deepCompareKeys",()=>mz),p(mN,"getDeepUnequalKeyValues",()=>mB);var m_=C("gztBd");function mW(){return"u">typeof window&&null!=window.document}function mq(e,t){return e===t||e.contains(t)}function m$(e){if(null==e||null==e.closest)return!1;var t=e.closest("input, textarea, [contenteditable=true]");if(null==t)return!1;if("input"===t.tagName.toLowerCase()){var n=t.type;if("checkbox"===n||"radio"===n)return!1}return!t.readOnly}function mG(e,t){var n,r=(null!=(n=null==e?void 0:e.getRootNode(t))?n:document).activeElement;return r instanceof HTMLElement?r:null}function mK(e,t,n){var r=mZ(function(t){e.dispatchEvent(new CustomEvent(n,t))});return e.addEventListener(t,r),r}function mX(e,t){return void 0===t&&(t={}),mZ(e,function(e){t.preventDefault&&e.preventDefault()},function(e){return e.persist()})}function mY(e){return mZ(e)}function mZ(e,t,n){var r=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];null==t||t.apply(void 0,i),r||(r=!0,null==n||n.apply(void 0,i),requestAnimationFrame(function(){e.apply(void 0,i),r=!1}))}}function mQ(e){return function(t){e.some(function(e){return t.key===e})&&(m$(t.target)||t.preventDefault(),t.target.dispatchEvent(new MouseEvent("click",(0,m_.__assign)((0,m_.__assign)({},t),{view:void 0}))))}}function mJ(e){return Array.from(e.querySelectorAll('a[href]:not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),details:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),[tabindex]:not([tabindex="-1"])'))}function m0(e){return"function"==typeof e}var m1={};p(m1,"isNodeEnv",()=>yP),p(m1,"arrayLengthCompare",()=>yO),p(m1,"approxEqual",()=>yI),p(m1,"clamp",()=>yA),p(m1,"countDecimalPlaces",()=>yR),p(m1,"uniqueId",()=>yL),p(m1,"isEmptyString",()=>yN);var m2="[Blueprint]",m4=m2+" clamp: max cannot be less than min",m3=m2+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",m8=m2+' <NavbarGroup> does not support align="center". Only "left" or "right" alignment is allowed, and align="center" will be ignored.',m6=m2+" <NumericInput> requires min to be no greater than max if both are defined.",m5=m2+" <NumericInput> requires minorStepSize to be no greater than stepSize.",m9=m2+" <NumericInput> requires stepSize to be no greater than majorStepSize.",m7=m2+" <NumericInput> requires minorStepSize to be strictly greater than zero.",ye=m2+" <NumericInput> requires majorStepSize to be strictly greater than zero.",yt=m2+" <NumericInput> requires stepSize to be strictly greater than zero.",yn=m2+" <NumericInput> controlled value prop does not adhere to stepSize, min, and/or max constraints.",yr=m2+" <OverflowList> does not support changing observeParents after mounting.",yi="".concat(m2," <Popover> requires renderTarget prop or a child element."),ya="".concat(m2,' <Popover hasBackdrop={true}> requires interactionKind="click".'),yo="".concat(m2," <Popover> supports only one child which is rendered as its target; additional children are ignored."),yl=m2+" <Popover> with children ignores renderTarget prop; use either prop or children.",ys=m2+" Disabling <Popover> with empty/whitespace content...",yc=m2+" <Popover usePortal={false}> ignores hasBackdrop",yu=m2+" <Popover> supports either placement or position prop, not both.",yd=m2+" <Popover> onInteraction is ignored when uncontrolled.",yh=m2+" <Popover> targetProps value is ignored when renderTarget API is used.",yf=m2+" <Portal> context blueprintPortalClassName must be string",yp=m2+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",yg=m2+" <Slider> stepSize must be greater than zero.",ym=m2+" <Slider> labelStepSize must be greater than zero.",yy=m2+" <Slider> min prop must be a finite number.",yb=m2+" <Slider> max prop must be a finite number.",yv=m2+" <MultiSlider> children must be <SliderHandle>s or <SliderTrackStop>s",yx=m2+" <MultiSlider> labelStepSize and labelValues prop are mutually exclusive, with labelStepSize taking priority.",yw=m2+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",yC=m2+" <Dialog> iconName is ignored if title is omitted.",yk=m2+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",yS=m2+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",y_=m2+" <Overlay2> cannot use childRef and childRefs props simultaneously",yE=m2+" <Overlay2> requires childRefs prop when rendering multiple child elements",yT=m2+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function yP(e){return"u">typeof NODE_ENV&&NODE_ENV===e}function yO(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length-t.length}function yI(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<=n}function yA(e,t,n){if(null==e)return e;if(n<t)throw Error(m4);return Math.min(Math.max(e,t),n)}function yR(e){if(!isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}var yM=new Map;function yL(e){var t,n=null!=(t=yM.get(e))?t:0;return yM.set(e,n+1),"".concat(e,"-").concat(n)}function yN(e){return"string"==typeof e&&0===e.trim().length}var yj={};p(yj,"isReactNodeEmpty",()=>yD),p(yj,"isReactChildrenElementOrElements",()=>yz),p(yj,"ensureElement",()=>yB),p(yj,"isReactElement",()=>yF),p(yj,"isElementOfType",()=>yH),p(yj,"isReact18OrHigher",()=>yV);var _=C("8NFma");function yD(e,t){return void 0===t&&(t=!1),null==e||""===e||!1===e||!t&&Array.isArray(e)&&(0===e.length||e.every(function(e){return yD(e,!0)}))}function yz(e){return!yD(e,!0)&&!0!==e}function yB(e,t,n){if(void 0===t&&(t="span"),void 0===n&&(n={}),!(null==e||"boolean"==typeof e||yN(e)))return"string"==typeof e||"number"==typeof e||"symbol"==typeof e.type||Array.isArray(e)?_.createElement(t,n,e):yF(e)?Object.keys(n).length>0?_.cloneElement(e,n):e:void 0}function yF(e){return"object"==typeof e&&void 0!==e.type&&void 0!==e.props}function yH(e,t){return null!=e&&null!=e.type&&null!=e.type.displayName&&e.type.displayName===t.displayName}function yV(){return parseInt(_.version.split(".")[0],10)>=18}var yU={};function yW(e){return"Enter"===e.key||" "===e.key}p(yU,"isKeyboardClick",()=>yW),p(yU,"isArrowKey",()=>y$),p(yU,"getArrowKeyDirection",()=>yG);var yq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function y$(e){return yq.includes(e.key)}function yG(e,t,n){return t.includes(e.key)?-1:n.includes(e.key)?1:void 0}var yK={};p(yK,"ACTIVE",()=>y4),p(yK,"ALIGN_LEFT",()=>y3),p(yK,"ALIGN_RIGHT",()=>y8),p(yK,"COMPACT",()=>y6),p(yK,"DARK",()=>y5),p(yK,"DISABLED",()=>y9),p(yK,"FILL",()=>y7),p(yK,"FIXED",()=>be),p(yK,"FIXED_TOP",()=>bt),p(yK,"INLINE",()=>bn),p(yK,"INTERACTIVE",()=>br),p(yK,"LARGE",()=>bi),p(yK,"LOADING",()=>ba),p(yK,"MINIMAL",()=>bo),p(yK,"OUTLINED",()=>bl),p(yK,"PADDED",()=>bs),p(yK,"MULTILINE",()=>bc),p(yK,"READ_ONLY",()=>bu),p(yK,"ROUND",()=>bd),p(yK,"SELECTED",()=>bh),p(yK,"SMALL",()=>bf),p(yK,"VERTICAL",()=>bp),p(yK,"POSITION_TOP",()=>bg),p(yK,"positionClass",()=>CT),p(yK,"POSITION_BOTTOM",()=>bm),p(yK,"POSITION_LEFT",()=>by),p(yK,"POSITION_RIGHT",()=>bb),p(yK,"ELEVATION_0",()=>bv),p(yK,"elevationClass",()=>CS),p(yK,"ELEVATION_1",()=>bx),p(yK,"ELEVATION_2",()=>bw),p(yK,"ELEVATION_3",()=>bC),p(yK,"ELEVATION_4",()=>bk),p(yK,"INTENT_PRIMARY",()=>bS),p(yK,"intentClass",()=>CE),p(yK,"INTENT_SUCCESS",()=>b_),p(yK,"INTENT_WARNING",()=>bE),p(yK,"INTENT_DANGER",()=>bT),p(yK,"FOCUS_DISABLED",()=>bP),p(yK,"FOCUS_STYLE_MANAGER_IGNORE",()=>bO),p(yK,"UI_TEXT",()=>bI),p(yK,"RUNNING_TEXT",()=>bA),p(yK,"MONOSPACE_TEXT",()=>bR),p(yK,"TEXT_LARGE",()=>bM),p(yK,"TEXT_SMALL",()=>bL),p(yK,"TEXT_MUTED",()=>bN),p(yK,"TEXT_DISABLED",()=>bj),p(yK,"TEXT_OVERFLOW_ELLIPSIS",()=>bD),p(yK,"BLOCKQUOTE",()=>bz),p(yK,"CODE",()=>bB),p(yK,"CODE_BLOCK",()=>bF),p(yK,"HEADING",()=>bH),p(yK,"LIST",()=>bV),p(yK,"LIST_UNSTYLED",()=>bU),p(yK,"RTL",()=>bW),p(yK,"ALERT",()=>bq),p(yK,"ALERT_BODY",()=>b$),p(yK,"ALERT_CONTENTS",()=>bG),p(yK,"ALERT_FOOTER",()=>bK),p(yK,"BREADCRUMB",()=>bX),p(yK,"BREADCRUMB_CURRENT",()=>bY),p(yK,"BREADCRUMBS",()=>bZ),p(yK,"BREADCRUMBS_COLLAPSED",()=>bQ),p(yK,"BUTTON",()=>bJ),p(yK,"BUTTON_GROUP",()=>b0),p(yK,"BUTTON_SPINNER",()=>b1),p(yK,"BUTTON_TEXT",()=>b2),p(yK,"CALLOUT",()=>b4),p(yK,"CALLOUT_HAS_BODY_CONTENT",()=>b3),p(yK,"CALLOUT_ICON",()=>b8),p(yK,"CARD",()=>b6),p(yK,"CONTROL_CARD",()=>b5),p(yK,"CONTROL_CARD_LABEL",()=>b9),p(yK,"SWITCH_CONTROL_CARD",()=>b7),p(yK,"CHECKBOX_CONTROL_CARD",()=>ve),p(yK,"RADIO_CONTROL_CARD",()=>vt),p(yK,"CARD_LIST",()=>vn),p(yK,"CARD_LIST_BORDERED",()=>vr),p(yK,"COLLAPSE",()=>vi),p(yK,"COLLAPSE_BODY",()=>va),p(yK,"CONTEXT_MENU",()=>vo),p(yK,"CONTEXT_MENU_VIRTUAL_TARGET",()=>vl),p(yK,"CONTEXT_MENU_POPOVER",()=>vs),p(yK,"CONTEXT_MENU_BACKDROP",()=>vc),p(yK,"CONTROL_GROUP",()=>vu),p(yK,"DIALOG",()=>vd),p(yK,"DIALOG_CONTAINER",()=>vh),p(yK,"DIALOG_HEADER",()=>vf),p(yK,"DIALOG_BODY",()=>vp),p(yK,"DIALOG_BODY_SCROLL_CONTAINER",()=>vg),p(yK,"DIALOG_CLOSE_BUTTON",()=>vm),p(yK,"DIALOG_FOOTER",()=>vy),p(yK,"DIALOG_FOOTER_FIXED",()=>vb),p(yK,"DIALOG_FOOTER_MAIN_SECTION",()=>vv),p(yK,"DIALOG_FOOTER_ACTIONS",()=>vx),p(yK,"DIALOG_STEP",()=>vw),p(yK,"DIALOG_STEP_CONTAINER",()=>vC),p(yK,"DIALOG_STEP_TITLE",()=>vk),p(yK,"DIALOG_STEP_ICON",()=>vS),p(yK,"DIALOG_STEP_VIEWED",()=>v_),p(yK,"DIVIDER",()=>vE),p(yK,"DRAWER",()=>vT),p(yK,"DRAWER_BODY",()=>vP),p(yK,"DRAWER_FOOTER",()=>vO),p(yK,"DRAWER_HEADER",()=>vI),p(yK,"EDITABLE_TEXT",()=>vA),p(yK,"EDITABLE_TEXT_CONTENT",()=>vR),p(yK,"EDITABLE_TEXT_EDITING",()=>vM),p(yK,"EDITABLE_TEXT_INPUT",()=>vL),p(yK,"EDITABLE_TEXT_PLACEHOLDER",()=>vN),p(yK,"ENTITY_TITLE",()=>vj),p(yK,"ENTITY_TITLE_ELLIPSIZE",()=>vD),p(yK,"ENTITY_TITLE_HAS_SUBTITLE",()=>vz),p(yK,"ENTITY_TITLE_ICON_CONTAINER",()=>vB),p(yK,"ENTITY_TITLE_SUBTITLE",()=>vF),p(yK,"ENTITY_TITLE_TAGS_CONTAINER",()=>vH),p(yK,"ENTITY_TITLE_TEXT",()=>vV),p(yK,"ENTITY_TITLE_TITLE",()=>vU),p(yK,"ENTITY_TITLE_TITLE_AND_TAGS",()=>vW),p(yK,"FLEX_EXPANDER",()=>vq),p(yK,"HTML_SELECT",()=>v$),p(yK,"SELECT",()=>vG),p(yK,"HTML_TABLE",()=>vK),p(yK,"HTML_TABLE_BORDERED",()=>vX),p(yK,"HTML_TABLE_STRIPED",()=>vY),p(yK,"INPUT",()=>vZ),p(yK,"INPUT_GHOST",()=>vQ),p(yK,"INPUT_GROUP",()=>vJ),p(yK,"INPUT_LEFT_CONTAINER",()=>v0),p(yK,"INPUT_ACTION",()=>v1),p(yK,"RESIZABLE_INPUT_SPAN",()=>v2),p(yK,"TEXT_AREA",()=>v4),p(yK,"TEXT_AREA_AUTO_RESIZE",()=>v3),p(yK,"CONTROL",()=>v8),p(yK,"CONTROL_INDICATOR",()=>v6),p(yK,"CONTROL_INDICATOR_CHILD",()=>v5),p(yK,"CHECKBOX",()=>v9),p(yK,"RADIO",()=>v7),p(yK,"RADIO_GROUP",()=>xe),p(yK,"SWITCH",()=>xt),p(yK,"SWITCH_INNER_TEXT",()=>xn),p(yK,"FILE_INPUT",()=>xr),p(yK,"FILE_INPUT_HAS_SELECTION",()=>xi),p(yK,"FILE_UPLOAD_INPUT",()=>xa),p(yK,"FILE_UPLOAD_INPUT_CUSTOM_TEXT",()=>xo),p(yK,"KEY",()=>xl),p(yK,"KEY_COMBO",()=>xs),p(yK,"MODIFIER_KEY",()=>xc),p(yK,"HOTKEY",()=>xu),p(yK,"HOTKEY_LABEL",()=>xd),p(yK,"HOTKEY_COLUMN",()=>xh),p(yK,"HOTKEY_DIALOG",()=>xf),p(yK,"LABEL",()=>xp),p(yK,"FORM_GROUP",()=>xg),p(yK,"FORM_CONTENT",()=>xm),p(yK,"FORM_HELPER_TEXT",()=>xy),p(yK,"FORM_GROUP_SUB_LABEL",()=>xb),p(yK,"MENU",()=>xv),p(yK,"MENU_ITEM",()=>xx),p(yK,"MENU_ITEM_IS_SELECTABLE",()=>xw),p(yK,"MENU_ITEM_SELECTED_ICON",()=>xC),p(yK,"MENU_ITEM_ICON",()=>xk),p(yK,"MENU_ITEM_LABEL",()=>xS),p(yK,"MENU_SUBMENU",()=>x_),p(yK,"MENU_SUBMENU_ICON",()=>xE),p(yK,"MENU_DIVIDER",()=>xT),p(yK,"MENU_HEADER",()=>xP),p(yK,"MULTISTEP_DIALOG",()=>xO),p(yK,"MULTISTEP_DIALOG_PANELS",()=>xI),p(yK,"MULTISTEP_DIALOG_LEFT_PANEL",()=>xA),p(yK,"MULTISTEP_DIALOG_RIGHT_PANEL",()=>xR),p(yK,"MULTISTEP_DIALOG_NAV_TOP",()=>xM),p(yK,"MULTISTEP_DIALOG_NAV_RIGHT",()=>xL),p(yK,"SECTION",()=>xN),p(yK,"SECTION_COLLAPSED",()=>xj),p(yK,"SECTION_HEADER",()=>xD),p(yK,"SECTION_HEADER_LEFT",()=>xz),p(yK,"SECTION_HEADER_TITLE",()=>xB),p(yK,"SECTION_HEADER_SUB_TITLE",()=>xF),p(yK,"SECTION_HEADER_DIVIDER",()=>xH),p(yK,"SECTION_HEADER_TABS",()=>xV),p(yK,"SECTION_HEADER_RIGHT",()=>xU),p(yK,"SECTION_HEADER_COLLAPSE_CARET",()=>xW),p(yK,"SECTION_CARD",()=>xq),p(yK,"NAVBAR",()=>x$),p(yK,"NAVBAR_GROUP",()=>xG),p(yK,"NAVBAR_HEADING",()=>xK),p(yK,"NAVBAR_DIVIDER",()=>xX),p(yK,"NON_IDEAL_STATE",()=>xY),p(yK,"NON_IDEAL_STATE_VISUAL",()=>xZ),p(yK,"NON_IDEAL_STATE_TEXT",()=>xQ),p(yK,"NUMERIC_INPUT",()=>xJ),p(yK,"OVERFLOW_LIST",()=>x0),p(yK,"OVERFLOW_LIST_SPACER",()=>x1),p(yK,"OVERLAY",()=>x2),p(yK,"OVERLAY_BACKDROP",()=>x4),p(yK,"OVERLAY_CONTAINER",()=>x3),p(yK,"OVERLAY_CONTENT",()=>x8),p(yK,"OVERLAY_INLINE",()=>x6),p(yK,"OVERLAY_OPEN",()=>x5),p(yK,"OVERLAY_SCROLL_CONTAINER",()=>x9),p(yK,"OVERLAY_START_FOCUS_TRAP",()=>x7),p(yK,"OVERLAY_END_FOCUS_TRAP",()=>we),p(yK,"PANEL_STACK",()=>wt),p(yK,"PANEL_STACK_HEADER",()=>wn),p(yK,"PANEL_STACK_HEADER_BACK",()=>wr),p(yK,"PANEL_STACK_VIEW",()=>wi),p(yK,"PANEL_STACK2",()=>wa),p(yK,"PANEL_STACK2_HEADER",()=>wo),p(yK,"PANEL_STACK2_HEADER_BACK",()=>wl),p(yK,"PANEL_STACK2_VIEW",()=>ws),p(yK,"POPOVER",()=>wc),p(yK,"POPOVER_ARROW",()=>wu),p(yK,"POPOVER_BACKDROP",()=>wd),p(yK,"POPOVER_CAPTURING_DISMISS",()=>wh),p(yK,"POPOVER_CONTENT",()=>wf),p(yK,"POPOVER_CONTENT_PLACEMENT",()=>wp),p(yK,"POPOVER_CONTENT_SIZING",()=>wg),p(yK,"POPOVER_DISMISS",()=>wm),p(yK,"POPOVER_DISMISS_OVERRIDE",()=>wy),p(yK,"POPOVER_MATCH_TARGET_WIDTH",()=>wb),p(yK,"POPOVER_OPEN",()=>wv),p(yK,"POPOVER_POPPER_ESCAPED",()=>wx),p(yK,"POPOVER_REFERENCE_HIDDEN",()=>ww),p(yK,"POPOVER_TARGET",()=>wC),p(yK,"POPOVER_TRANSITION_CONTAINER",()=>wk),p(yK,"POPOVER_WRAPPER",()=>wS),p(yK,"PROGRESS_BAR",()=>w_),p(yK,"PROGRESS_METER",()=>wE),p(yK,"PROGRESS_NO_STRIPES",()=>wT),p(yK,"PROGRESS_NO_ANIMATION",()=>wP),p(yK,"PORTAL",()=>wO),p(yK,"SKELETON",()=>wI),p(yK,"SLIDER",()=>wA),p(yK,"SLIDER_AXIS",()=>wR),p(yK,"SLIDER_HANDLE",()=>wM),p(yK,"SLIDER_LABEL",()=>wL),p(yK,"SLIDER_TRACK",()=>wN),p(yK,"SLIDER_PROGRESS",()=>wj),p(yK,"START",()=>wD),p(yK,"END",()=>wz),p(yK,"SPINNER",()=>wB),p(yK,"SPINNER_ANIMATION",()=>wF),p(yK,"SPINNER_HEAD",()=>wH),p(yK,"SPINNER_NO_SPIN",()=>wV),p(yK,"SPINNER_TRACK",()=>wU),p(yK,"SEGMENTED_CONTROL",()=>wW),p(yK,"TAB",()=>wq),p(yK,"TAB_ICON",()=>w$),p(yK,"TAB_TAG",()=>wG),p(yK,"TAB_INDICATOR",()=>wK),p(yK,"TAB_INDICATOR_WRAPPER",()=>wX),p(yK,"TAB_LIST",()=>wY),p(yK,"TAB_PANEL",()=>wZ),p(yK,"TABS",()=>wQ),p(yK,"TAG",()=>wJ),p(yK,"TAG_REMOVE",()=>w0),p(yK,"COMPOUND_TAG",()=>w1),p(yK,"COMPOUND_TAG_LEFT",()=>w2),p(yK,"COMPOUND_TAG_LEFT_CONTENT",()=>w4),p(yK,"COMPOUND_TAG_RIGHT",()=>w3),p(yK,"COMPOUND_TAG_RIGHT_CONTENT",()=>w8),p(yK,"TAG_INPUT",()=>w6),p(yK,"TAG_INPUT_ICON",()=>w5),p(yK,"TAG_INPUT_VALUES",()=>w9),p(yK,"TOAST",()=>w7),p(yK,"TOAST_CONTAINER",()=>Ce),p(yK,"TOAST_MESSAGE",()=>Ct),p(yK,"TOOLTIP",()=>Cn),p(yK,"TOOLTIP_INDICATOR",()=>Cr),p(yK,"TREE",()=>Ci),p(yK,"TREE_NODE",()=>Ca),p(yK,"TREE_NODE_CARET",()=>Co),p(yK,"TREE_NODE_CARET_CLOSED",()=>Cl),p(yK,"TREE_NODE_CARET_NONE",()=>Cs),p(yK,"TREE_NODE_CARET_OPEN",()=>Cc),p(yK,"TREE_NODE_CONTENT",()=>Cu),p(yK,"TREE_NODE_EXPANDED",()=>Cd),p(yK,"TREE_NODE_ICON",()=>Ch),p(yK,"TREE_NODE_LABEL",()=>Cf),p(yK,"TREE_NODE_LIST",()=>Cp),p(yK,"TREE_NODE_SECONDARY_LABEL",()=>Cg),p(yK,"TREE_NODE_SELECTED",()=>Cm),p(yK,"TREE_ROOT",()=>Cy),p(yK,"ICON",()=>Cb),p(yK,"ICON_STANDARD",()=>Cv),p(yK,"ICON_LARGE",()=>Cx),p(yK,"ICON_MUTED",()=>Cw),p(yK,"getClassNamespace",()=>CC),p(yK,"alignmentClass",()=>Ck),p(yK,"iconClass",()=>C_),p(yK,"sizeClass",()=>CP),p(yK,"variantClass",()=>CO);var yX="left",yY="right",yZ="start",yQ="none",yJ="primary",y0="danger",y1={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},y2="bp5";"u">typeof BLUEPRINT_NAMESPACE?y2=BLUEPRINT_NAMESPACE:"u">typeof REACT_APP_BLUEPRINT_NAMESPACE&&(y2=REACT_APP_BLUEPRINT_NAMESPACE);var y4="".concat(y2,"-active"),y3="".concat(y2,"-align-left"),y8="".concat(y2,"-align-right"),y6="".concat(y2,"-compact"),y5="".concat(y2,"-dark"),y9="".concat(y2,"-disabled"),y7="".concat(y2,"-fill"),be="".concat(y2,"-fixed"),bt="".concat(y2,"-fixed-top"),bn="".concat(y2,"-inline"),br="".concat(y2,"-interactive"),bi="".concat(y2,"-large"),ba="".concat(y2,"-loading"),bo="".concat(y2,"-minimal"),bl="".concat(y2,"-outlined"),bs="".concat(y2,"-padded"),bc="".concat(y2,"-multiline"),bu="".concat(y2,"-read-only"),bd="".concat(y2,"-round"),bh="".concat(y2,"-selected"),bf="".concat(y2,"-small"),bp="".concat(y2,"-vertical"),bg=CT(y1.TOP),bm=CT(y1.BOTTOM),by=CT(y1.LEFT),bb=CT(y1.RIGHT),bv=CS(0),bx=CS(1),bw=CS(2),bC=CS(3),bk=CS(4),bS=CE(yJ),b_=CE("success"),bE=CE("warning"),bT=CE(y0),bP="".concat(y2,"-focus-disabled"),bO="".concat(y2,"-focus-style-manager-ignore"),bI="".concat(y2,"-ui-text"),bA="".concat(y2,"-running-text"),bR="".concat(y2,"-monospace-text"),bM="".concat(y2,"-text-large"),bL="".concat(y2,"-text-small"),bN="".concat(y2,"-text-muted"),bj="".concat(y2,"-text-disabled"),bD="".concat(y2,"-text-overflow-ellipsis"),bz="".concat(y2,"-blockquote"),bB="".concat(y2,"-code"),bF="".concat(y2,"-code-block"),bH="".concat(y2,"-heading"),bV="".concat(y2,"-list"),bU="".concat(y2,"-list-unstyled"),bW="".concat(y2,"-rtl"),bq="".concat(y2,"-alert"),b$="".concat(bq,"-body"),bG="".concat(bq,"-contents"),bK="".concat(bq,"-footer"),bX="".concat(y2,"-breadcrumb"),bY="".concat(bX,"-current"),bZ="".concat(bX,"s"),bQ="".concat(bX,"s-collapsed"),bJ="".concat(y2,"-button"),b0="".concat(bJ,"-group"),b1="".concat(bJ,"-spinner"),b2="".concat(bJ,"-text"),b4="".concat(y2,"-callout"),b3="".concat(b4,"-has-body-content"),b8="".concat(b4,"-icon"),b6="".concat(y2,"-card"),b5="".concat(y2,"-control-card"),b9="".concat(b5,"-label"),b7="".concat(y2,"-switch-control-card"),ve="".concat(y2,"-checkbox-control-card"),vt="".concat(y2,"-radio-control-card"),vn="".concat(y2,"-card-list"),vr="".concat(vn,"-bordered"),vi="".concat(y2,"-collapse"),va="".concat(vi,"-body"),vo="".concat(y2,"-context-menu"),vl="".concat(vo,"-virtual-target"),vs="".concat(vo,"-popover"),vc="".concat(vo,"-backdrop"),vu="".concat(y2,"-control-group"),vd="".concat(y2,"-dialog"),vh="".concat(vd,"-container"),vf="".concat(vd,"-header"),vp="".concat(vd,"-body"),vg="".concat(vd,"-body-scroll-container"),vm="".concat(vd,"-close-button"),vy="".concat(vd,"-footer"),vb="".concat(vd,"-footer-fixed"),vv="".concat(vd,"-footer-main-section"),vx="".concat(vd,"-footer-actions"),vw="".concat(y2,"-dialog-step"),vC="".concat(vw,"-container"),vk="".concat(vw,"-title"),vS="".concat(vw,"-icon"),v_="".concat(vw,"-viewed"),vE="".concat(y2,"-divider"),vT="".concat(y2,"-drawer"),vP="".concat(vT,"-body"),vO="".concat(vT,"-footer"),vI="".concat(vT,"-header"),vA="".concat(y2,"-editable-text"),vR="".concat(vA,"-content"),vM="".concat(vA,"-editing"),vL="".concat(vA,"-input"),vN="".concat(vA,"-placeholder"),vj="".concat(y2,"-entity-title"),vD="".concat(y2,"-entity-title-ellipsize"),vz="".concat(vj,"-has-subtitle"),vB="".concat(vj,"-icon-container"),vF="".concat(vj,"-subtitle"),vH="".concat(vj,"-tags-container"),vV="".concat(vj,"-text"),vU="".concat(vj,"-title"),vW="".concat(vj,"-title-and-tags"),vq="".concat(y2,"-flex-expander"),v$="".concat(y2,"-html-select"),vG="".concat(y2,"-select"),vK="".concat(y2,"-html-table"),vX="".concat(vK,"-bordered"),vY="".concat(vK,"-striped"),vZ="".concat(y2,"-input"),vQ="".concat(vZ,"-ghost"),vJ="".concat(vZ,"-group"),v0="".concat(vZ,"-left-container"),v1="".concat(vZ,"-action"),v2="".concat(y2,"-resizable-input-span"),v4="".concat(y2,"-text-area"),v3="".concat(v4,"-auto-resize"),v8="".concat(y2,"-control"),v6="".concat(v8,"-indicator"),v5="".concat(v6,"-child"),v9="".concat(y2,"-checkbox"),v7="".concat(y2,"-radio"),xe="".concat(y2,"-radio-group"),xt="".concat(y2,"-switch"),xn="".concat(xt,"-inner-text"),xr="".concat(y2,"-file-input"),xi="".concat(y2,"-file-input-has-selection"),xa="".concat(y2,"-file-upload-input"),xo="".concat(y2,"-file-upload-input-custom-text"),xl="".concat(y2,"-key"),xs="".concat(xl,"-combo"),xc="".concat(y2,"-modifier-key"),xu="".concat(y2,"-hotkey"),xd="".concat(xu,"-label"),xh="".concat(xu,"-column"),xf="".concat(xu,"-dialog"),xp="".concat(y2,"-label"),xg="".concat(y2,"-form-group"),xm="".concat(y2,"-form-content"),xy="".concat(y2,"-form-helper-text"),xb="".concat(y2,"-form-group-sub-label"),xv="".concat(y2,"-menu"),xx="".concat(xv,"-item"),xw="".concat(xx,"-is-selectable"),xC="".concat(xx,"-selected-icon"),xk="".concat(xx,"-icon"),xS="".concat(xx,"-label"),x_="".concat(y2,"-submenu"),xE="".concat(x_,"-icon"),xT="".concat(xv,"-divider"),xP="".concat(xv,"-header"),xO="".concat(y2,"-multistep-dialog"),xI="".concat(xO,"-panels"),xA="".concat(xO,"-left-panel"),xR="".concat(xO,"-right-panel"),xM="".concat(xO,"-nav-top"),xL="".concat(xO,"-nav-right"),xN="".concat(y2,"-section"),xj="".concat(xN,"-collapsed"),xD="".concat(xN,"-header"),xz="".concat(xD,"-left"),xB="".concat(xD,"-title"),xF="".concat(xD,"-sub-title"),xH="".concat(xD,"-divider"),xV="".concat(xD,"-tabs"),xU="".concat(xD,"-right"),xW="".concat(xD,"-collapse-caret"),xq="".concat(xN,"-card"),x$="".concat(y2,"-navbar"),xG="".concat(x$,"-group"),xK="".concat(x$,"-heading"),xX="".concat(x$,"-divider"),xY="".concat(y2,"-non-ideal-state"),xZ="".concat(xY,"-visual"),xQ="".concat(xY,"-text"),xJ="".concat(y2,"-numeric-input"),x0="".concat(y2,"-overflow-list"),x1="".concat(x0,"-spacer"),x2="".concat(y2,"-overlay"),x4="".concat(x2,"-backdrop"),x3="".concat(x2,"-container"),x8="".concat(x2,"-content"),x6="".concat(x2,"-inline"),x5="".concat(x2,"-open"),x9="".concat(x2,"-scroll-container"),x7="".concat(x2,"-start-focus-trap"),we="".concat(x2,"-end-focus-trap"),wt="".concat(y2,"-panel-stack"),wn="".concat(wt,"-header"),wr="".concat(wt,"-header-back"),wi="".concat(wt,"-view"),wa="".concat(y2,"-panel-stack2"),wo="".concat(wa,"-header"),wl="".concat(wa,"-header-back"),ws="".concat(wa,"-view"),wc="".concat(y2,"-popover"),wu="".concat(wc,"-arrow"),wd="".concat(wc,"-backdrop"),wh="".concat(wc,"-capturing-dismiss"),wf="".concat(wc,"-content"),wp="".concat(wc,"-placement"),wg="".concat(wf,"-sizing"),wm="".concat(wc,"-dismiss"),wy="".concat(wm,"-override"),wb="".concat(wc,"-match-target-width"),wv="".concat(wc,"-open"),wx="".concat(wc,"-popper-escaped"),ww="".concat(wc,"-reference-hidden"),wC="".concat(wc,"-target"),wk="".concat(wc,"-transition-container"),wS="".concat(wc,"-wrapper"),w_="".concat(y2,"-progress-bar"),wE="".concat(y2,"-progress-meter"),wT="".concat(y2,"-no-stripes"),wP="".concat(y2,"-no-animation"),wO="".concat(y2,"-portal"),wI="".concat(y2,"-skeleton"),wA="".concat(y2,"-slider"),wR="".concat(wA,"-axis"),wM="".concat(wA,"-handle"),wL="".concat(wA,"-label"),wN="".concat(wA,"-track"),wj="".concat(wA,"-progress"),wD="".concat(y2,"-start"),wz="".concat(y2,"-end"),wB="".concat(y2,"-spinner"),wF="".concat(wB,"-animation"),wH="".concat(wB,"-head"),wV="".concat(y2,"-no-spin"),wU="".concat(wB,"-track"),wW="".concat(y2,"-segmented-control"),wq="".concat(y2,"-tab"),w$="".concat(wq,"-icon"),wG="".concat(wq,"-tag"),wK="".concat(wq,"-indicator"),wX="".concat(wK,"-wrapper"),wY="".concat(wq,"-list"),wZ="".concat(wq,"-panel"),wQ="".concat(wq,"s"),wJ="".concat(y2,"-tag"),w0="".concat(wJ,"-remove"),w1="".concat(y2,"-compound-tag"),w2="".concat(w1,"-left"),w4="".concat(w1,"-left-content"),w3="".concat(w1,"-right"),w8="".concat(w1,"-right-content"),w6="".concat(y2,"-tag-input"),w5="".concat(w6,"-icon"),w9="".concat(w6,"-values"),w7="".concat(y2,"-toast"),Ce="".concat(w7,"-container"),Ct="".concat(w7,"-message"),Cn="".concat(y2,"-tooltip"),Cr="".concat(Cn,"-indicator"),Ci="".concat(y2,"-tree"),Ca="".concat(y2,"-tree-node"),Co="".concat(Ca,"-caret"),Cl="".concat(Co,"-closed"),Cs="".concat(Co,"-none"),Cc="".concat(Co,"-open"),Cu="".concat(Ca,"-content"),Cd="".concat(Ca,"-expanded"),Ch="".concat(Ca,"-icon"),Cf="".concat(Ca,"-label"),Cp="".concat(Ca,"-list"),Cg="".concat(Ca,"-secondary-label"),Cm="".concat(Ca,"-selected"),Cy="".concat(y2,"-tree-root"),Cb="".concat(y2,"-icon"),Cv="".concat(Cb,"-standard"),Cx="".concat(Cb,"-large"),Cw="".concat(Cb,"-muted");function CC(){return y2}function Ck(e){switch(e){case yX:case yZ:return y3;case yY:case"end":return y8;default:return}}function CS(e){if(void 0!==e)return"".concat(y2,"-elevation-").concat(e)}function C_(e){if(null!=e)return 0===e.indexOf("".concat(y2,"-icon-"))?e:"".concat(y2,"-icon-").concat(e)}function CE(e){if(null!=e&&e!==yQ)return"".concat(y2,"-intent-").concat(e.toLowerCase())}function CT(e){if(void 0!==e)return"".concat(y2,"-position-").concat(e)}function CP(e,t){if("small"===e)return bf;if("large"===e)return bi;var n,r=t.large,i=t.small;return(n={})[bi]=void 0!==r&&r,n[bf]=void 0!==i&&i,n}function CO(e,t){if("outlined"===e)return bl;if("minimal"===e)return bo;var n,r=t.minimal,i=t.outlined;return(n={})[bo]=void 0!==r&&r,n[bl]=void 0!==i&&i,n}function CI(e){return null!=e&&e instanceof Element&&null!=e.closest(".".concat(y5))}b(mL,mN),b(mL,m1),b(mL,yj),b(mL,yU);var CA={defaultTabIndex:void 0,disabledTabIndex:-1};function CR(e,t,n,r){void 0===r&&(r=CA);var i=r.defaultTabIndex,a=r.disabledTabIndex,o=t.active,l=t.onClick,s=t.onFocus,c=t.onKeyDown,u=t.onKeyUp,d=t.onBlur,h=t.tabIndex,f=_.useState(),p=f[0],g=f[1],m=_.useState(!1),y=m[0],b=m[1],v=_.useRef(null),x=_.useCallback(function(e){y&&b(!1),null==d||d(e)},[y,d]);return[e&&(o||y),{onBlur:x,onClick:e?l:void 0,onFocus:e?s:void 0,onKeyDown:_.useCallback(function(e){mL.isKeyboardClick(e)&&(e.preventDefault(),e.key!==p&&b(!0)),g(e.key),null==c||c(e)},[p,c]),onKeyUp:_.useCallback(function(e){var t;mL.isKeyboardClick(e)&&(b(!1),null==(t=v.current)||t.click()),g(void 0),null==u||u(e)},[u,v]),ref:mA(v,n),tabIndex:e?void 0===h?i:h:a}]}var m_=C("gztBd"),CM="Blueprint5",CL=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","endIcon","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","selectedValue","size","small","tagName","text","textClassName","variant"];function CN(e,t,n){return void 0===t&&(t=CL),void 0===n&&(n=!1),n&&(t=t.concat(CL)),t.reduce(function(e,t){return -1!==t.indexOf("-")||e.hasOwnProperty(t)&&delete e[t],e},(0,m_.__assign)({},e))}var m_=C("gztBd"),_=C("8NFma"),m_=(C("gztBd"),C("gztBd")),Cj=C("704DA"),m_=(C("gztBd"),C("gztBd")),CD=C("bYk83");(zX=BP||(BP={})).AddChild="add-child",zX.AddClip="add-clip",zX.AddColumnLeft="add-column-left",zX.AddColumnRight="add-column-right",zX.AddLocation="add-location",zX.AddParent="add-parent",zX.AddRowBottom="add-row-bottom",zX.AddRowTop="add-row-top",zX.AddToArtifact="add-to-artifact",zX.AddToFolder="add-to-folder",zX.Add="add",zX.AimpointsTarget="aimpoints-target",zX.Airplane="airplane",zX.AlignCenter="align-center",zX.AlignJustify="align-justify",zX.AlignLeft="align-left",zX.AlignRight="align-right",zX.AlignmentBottom="alignment-bottom",zX.AlignmentHorizontalCenter="alignment-horizontal-center",zX.AlignmentLeft="alignment-left",zX.AlignmentRight="alignment-right",zX.AlignmentTop="alignment-top",zX.AlignmentVerticalCenter="alignment-vertical-center",zX.Ammunition="ammunition",zX.Anchor="anchor",zX.Annotation="annotation",zX.Announcement="announcement",zX.Antenna="antenna",zX.AppHeader="app-header",zX.Application="application",zX.Applications="applications",zX.Archive="archive",zX.AreaOfInterest="area-of-interest",zX.ArrayBoolean="array-boolean",zX.ArrayDate="array-date",zX.ArrayFloatingPoint="array-floating-point",zX.ArrayNumeric="array-numeric",zX.ArrayObject="array-object",zX.ArrayString="array-string",zX.ArrayTimestamp="array-timestamp",zX.Array="array",zX.ArrowBottomLeft="arrow-bottom-left",zX.ArrowBottomRight="arrow-bottom-right",zX.ArrowDown="arrow-down",zX.ArrowLeft="arrow-left",zX.ArrowRight="arrow-right",zX.ArrowTopLeft="arrow-top-left",zX.ArrowTopRight="arrow-top-right",zX.ArrowUp="arrow-up",zX.ArrowsArc="arrows-arc",zX.ArrowsHorizontal="arrows-horizontal",zX.ArrowsVertical="arrows-vertical",zX.Asterisk="asterisk",zX.At="at",zX.AutomaticUpdates="automatic-updates",zX.Axle="axle",zX.Backlink="backlink",zX.BackwardTen="backward-ten",zX.Badge="badge",zX.BanCircle="ban-circle",zX.BankAccount="bank-account",zX.Barcode="barcode",zX.BinaryNumber="binary-number",zX.Blank="blank",zX.BlockPromote="block-promote",zX.BlockedPerson="blocked-person",zX.Bold="bold",zX.Book="book",zX.Bookmark="bookmark",zX.Box="box",zX.BranchLocked="branch-locked",zX.BranchUnlocked="branch-unlocked",zX.Briefcase="briefcase",zX.BringData="bring-data",zX.BringForward="bring-forward",zX.BritishPound="british-pound",zX.Bug="bug",zX.Buggy="buggy",zX.Build="build",zX.Bullseye="bullseye",zX.Calculator="calculator",zX.Calendar="calendar",zX.Camera="camera",zX.CaretDown="caret-down",zX.CaretLeft="caret-left",zX.CaretRight="caret-right",zX.CaretUp="caret-up",zX.CargoShip="cargo-ship",zX.CellTower="cell-tower",zX.Changes="changes",zX.Chart="chart",zX.Chat="chat",zX.ChevronBackward="chevron-backward",zX.ChevronDown="chevron-down",zX.ChevronForward="chevron-forward",zX.ChevronLeft="chevron-left",zX.ChevronRight="chevron-right",zX.ChevronUp="chevron-up",zX.CircleArrowDown="circle-arrow-down",zX.CircleArrowLeft="circle-arrow-left",zX.CircleArrowRight="circle-arrow-right",zX.CircleArrowUp="circle-arrow-up",zX.Circle="circle",zX.Citation="citation",zX.Clean="clean",zX.Clip="clip",zX.ClipboardFile="clipboard-file",zX.Clipboard="clipboard",zX.CloudDownload="cloud-download",zX.CloudServer="cloud-server",zX.CloudTick="cloud-tick",zX.CloudUpload="cloud-upload",zX.Cloud="cloud",zX.CodeBlock="code-block",zX.Code="code",zX.Cog="cog",zX.CollapseAll="collapse-all",zX.ColorFill="color-fill",zX.ColumnLayout="column-layout",zX.Comment="comment",zX.Comparison="comparison",zX.Compass="compass",zX.Compressed="compressed",zX.Confirm="confirm",zX.Console="console",zX.Construction="construction",zX.Contrast="contrast",zX.Control="control",zX.CreditCard="credit-card",zX.Crop="crop",zX.CrossCircle="cross-circle",zX.Cross="cross",zX.Crown="crown",zX.CssStyle="css-style",zX.CubeAdd="cube-add",zX.CubeEdit="cube-edit",zX.CubeRemove="cube-remove",zX.Cube="cube",zX.Cubes="cubes",zX.CurlyBraces="curly-braces",zX.CurvedRangeChart="curved-range-chart",zX.Cut="cut",zX.Cycle="cycle",zX.Dashboard="dashboard",zX.DataCloud="data-cloud",zX.DataConnection="data-connection",zX.DataLineage="data-lineage",zX.DataSearch="data-search",zX.DataSync="data-sync",zX.Database="database",zX.DeleteClip="delete-clip",zX.Delete="delete",zX.Delta="delta",zX.DeriveColumn="derive-column",zX.Desktop="desktop",zX.Detection="detection",zX.Diagnosis="diagnosis",zX.DiagramTree="diagram-tree",zX.DirectionLeft="direction-left",zX.DirectionRight="direction-right",zX.Disable="disable",zX.Divide="divide",zX.DocumentCode="document-code",zX.DocumentLocked="document-locked",zX.DocumentOpen="document-open",zX.DocumentShare="document-share",zX.Document="document",zX.Dollar="dollar",zX.Dot="dot",zX.DoubleCaretHorizontal="double-caret-horizontal",zX.DoubleCaretVertical="double-caret-vertical",zX.DoubleChevronDown="double-chevron-down",zX.DoubleChevronLeft="double-chevron-left",zX.DoubleChevronRight="double-chevron-right",zX.DoubleChevronUp="double-chevron-up",zX.DoughnutChart="doughnut-chart",zX.Download="download",zX.DragHandleHorizontal="drag-handle-horizontal",zX.DragHandleVertical="drag-handle-vertical",zX.Draw="draw",zX.DrawerLeftFilled="drawer-left-filled",zX.DrawerLeft="drawer-left",zX.DrawerRightFilled="drawer-right-filled",zX.DrawerRight="drawer-right",zX.DriveTime="drive-time",zX.Duplicate="duplicate",zX.Edit="edit",zX.Eject="eject",zX.Emoji="emoji",zX.Endnote="endnote",zX.Endorsed="endorsed",zX.Envelope="envelope",zX.Equals="equals",zX.Eraser="eraser",zX.Error="error",zX.Euro="euro",zX.Excavator="excavator",zX.Exchange="exchange",zX.ExcludeRow="exclude-row",zX.ExpandAll="expand-all",zX.Explain="explain",zX.Export="export",zX.EyeOff="eye-off",zX.EyeOn="eye-on",zX.EyeOpen="eye-open",zX.FastBackward="fast-backward",zX.FastForward="fast-forward",zX.FeedSubscribed="feed-subscribed",zX.Feed="feed",zX.FighterJet="fighter-jet",zX.Film="film",zX.FilterKeep="filter-keep",zX.FilterList="filter-list",zX.FilterOpen="filter-open",zX.FilterRemove="filter-remove",zX.FilterSortAsc="filter-sort-asc",zX.FilterSortDesc="filter-sort-desc",zX.Filter="filter",zX.Flag="flag",zX.Flame="flame",zX.Flash="flash",zX.FloatingPoint="floating-point",zX.FloppyDisk="floppy-disk",zX.FlowBranch="flow-branch",zX.FlowEnd="flow-end",zX.FlowLinear="flow-linear",zX.FlowReviewBranch="flow-review-branch",zX.FlowReview="flow-review",zX.Flows="flows",zX.FolderClose="folder-close",zX.FolderNew="folder-new",zX.FolderOpen="folder-open",zX.FolderSharedOpen="folder-shared-open",zX.FolderShared="folder-shared",zX.Follower="follower",zX.Following="following",zX.Font="font",zX.Fork="fork",zX.Form="form",zX.ForwardTen="forward-ten",zX.Fuel="fuel",zX.FullCircle="full-circle",zX.FullStackedChart="full-stacked-chart",zX.Fullscreen="fullscreen",zX.Function="function",zX.GanttChart="gantt-chart",zX.Generate="generate",zX.Geofence="geofence",zX.Geolocation="geolocation",zX.Geosearch="geosearch",zX.Geotime="geotime",zX.GiftBox="gift-box",zX.GitBranch="git-branch",zX.GitCommit="git-commit",zX.GitMerge="git-merge",zX.GitNewBranch="git-new-branch",zX.GitPull="git-pull",zX.GitPush="git-push",zX.GitRepo="git-repo",zX.Glass="glass",zX.GlobeNetworkAdd="globe-network-add",zX.GlobeNetwork="globe-network",zX.Globe="globe",zX.GraphRemove="graph-remove",zX.Graph="graph",zX.GreaterThanOrEqualTo="greater-than-or-equal-to",zX.GreaterThan="greater-than",zX.GridView="grid-view",zX.Grid="grid",zX.GroupItem="group-item",zX.GroupObjects="group-objects",zX.GroupedBarChart="grouped-bar-chart",zX.HandDown="hand-down",zX.HandLeft="hand-left",zX.HandRight="hand-right",zX.HandUp="hand-up",zX.Hand="hand",zX.Hat="hat",zX.HeaderOne="header-one",zX.HeaderThree="header-three",zX.HeaderTwo="header-two",zX.Header="header",zX.Headset="headset",zX.HeartBroken="heart-broken",zX.Heart="heart",zX.HeatGrid="heat-grid",zX.Heatmap="heatmap",zX.Helicopter="helicopter",zX.Help="help",zX.HelperManagement="helper-management",zX.Hexagon="hexagon",zX.HighPriority="high-priority",zX.HighVoltagePole="high-voltage-pole",zX.Highlight="highlight",zX.History="history",zX.Home="home",zX.HorizontalBarChartAsc="horizontal-bar-chart-asc",zX.HorizontalBarChartDesc="horizontal-bar-chart-desc",zX.HorizontalBarChart="horizontal-bar-chart",zX.HorizontalDistribution="horizontal-distribution",zX.HorizontalInbetween="horizontal-inbetween",zX.Hurricane="hurricane",zX.IdNumber="id-number",zX.ImageRotateLeft="image-rotate-left",zX.ImageRotateRight="image-rotate-right",zX.Import="import",zX.InboxFiltered="inbox-filtered",zX.InboxGeo="inbox-geo",zX.InboxSearch="inbox-search",zX.InboxUpdate="inbox-update",zX.Inbox="inbox",zX.InfoSign="info-sign",zX.Inheritance="inheritance",zX.InheritedGroup="inherited-group",zX.InnerJoin="inner-join",zX.Input="input",zX.Insert="insert",zX.Intelligence="intelligence",zX.Intersection="intersection",zX.IpAddress="ip-address",zX.IssueClosed="issue-closed",zX.IssueNew="issue-new",zX.Issue="issue",zX.Italic="italic",zX.JoinTable="join-table",zX.KeyBackspace="key-backspace",zX.KeyCommand="key-command",zX.KeyControl="key-control",zX.KeyDelete="key-delete",zX.KeyEnter="key-enter",zX.KeyEscape="key-escape",zX.KeyOption="key-option",zX.KeyShift="key-shift",zX.KeyTab="key-tab",zX.Key="key",zX.KnownVehicle="known-vehicle",zX.LabTest="lab-test",zX.Label="label",zX.LayerOutline="layer-outline",zX.Layer="layer",zX.Layers="layers",zX.LayoutAuto="layout-auto",zX.LayoutBalloon="layout-balloon",zX.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",zX.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",zX.LayoutCircle="layout-circle",zX.LayoutGrid="layout-grid",zX.LayoutGroupBy="layout-group-by",zX.LayoutHierarchy="layout-hierarchy",zX.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",zX.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",zX.LayoutLinear="layout-linear",zX.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",zX.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",zX.LayoutSkewGrid="layout-skew-grid",zX.LayoutSortedClusters="layout-sorted-clusters",zX.LayoutThreeColumns="layout-three-columns",zX.LayoutThreeRows="layout-three-rows",zX.LayoutTopRowThreeTiles="layout-top-row-three-tiles",zX.LayoutTopRowTwoTiles="layout-top-row-two-tiles",zX.LayoutTwoColumns="layout-two-columns",zX.LayoutTwoRows="layout-two-rows",zX.Layout="layout",zX.Learning="learning",zX.LeftJoin="left-join",zX.LengthenText="lengthen-text",zX.LessThanOrEqualTo="less-than-or-equal-to",zX.LessThan="less-than",zX.Lifesaver="lifesaver",zX.Lightbulb="lightbulb",zX.Lightning="lightning",zX.Link="link",zX.LinkedSquares="linked-squares",zX.ListColumns="list-columns",zX.ListDetailView="list-detail-view",zX.List="list",zX.Locate="locate",zX.Lock="lock",zX.Locomotive="locomotive",zX.LogIn="log-in",zX.LogOut="log-out",zX.LowVoltagePole="low-voltage-pole",zX.Manual="manual",zX.ManuallyEnteredData="manually-entered-data",zX.ManyToMany="many-to-many",zX.ManyToOne="many-to-one",zX.MapCreate="map-create",zX.MapMarker="map-marker",zX.Map="map",zX.Maximize="maximize",zX.Media="media",zX.MenuClosed="menu-closed",zX.MenuOpen="menu-open",zX.Menu="menu",zX.MergeColumns="merge-columns",zX.MergeLinks="merge-links",zX.Microphone="microphone",zX.Minimize="minimize",zX.Minus="minus",zX.MobilePhone="mobile-phone",zX.MobileVideo="mobile-video",zX.ModalFilled="modal-filled",zX.Modal="modal",zX.Model="model",zX.Moon="moon",zX.More="more",zX.Mountain="mountain",zX.Move="move",zX.Mugshot="mugshot",zX.MultiSelect="multi-select",zX.Music="music",zX.Nest="nest",zX.NewDrawing="new-drawing",zX.NewGridItem="new-grid-item",zX.NewLayer="new-layer",zX.NewLayers="new-layers",zX.NewLink="new-link",zX.NewObject="new-object",zX.NewPerson="new-person",zX.NewPrescription="new-prescription",zX.NewShield="new-shield",zX.NewTextBox="new-text-box",zX.Ninja="ninja",zX.NotEqualTo="not-equal-to",zX.NotificationsAdd="notifications-add",zX.NotificationsSnooze="notifications-snooze",zX.NotificationsUpdated="notifications-updated",zX.Notifications="notifications",zX.NumberedList="numbered-list",zX.Numerical="numerical",zX.ObjectView="object-view",zX.Office="office",zX.Offline="offline",zX.OilField="oil-field",zX.OneColumn="one-column",zX.OneToMany="one-to-many",zX.OneToOne="one-to-one",zX.OpenApplication="open-application",zX.Outdated="outdated",zX.Output="output",zX.Package="package",zX.PageBreak="page-break",zX.PageLayout="page-layout",zX.PanelStats="panel-stats",zX.PanelTable="panel-table",zX.Panel="panel",zX.Paperclip="paperclip",zX.Paragraph="paragraph",zX.PasteVariable="paste-variable",zX.PathSearch="path-search",zX.Path="path",zX.Pause="pause",zX.People="people",zX.Percentage="percentage",zX.Person="person",zX.PhoneCall="phone-call",zX.PhoneForward="phone-forward",zX.PhoneSearch="phone-search",zX.Phone="phone",zX.PieChart="pie-chart",zX.Pill="pill",zX.Pin="pin",zX.Pistol="pistol",zX.PivotTable="pivot-table",zX.Pivot="pivot",zX.Play="play",zX.Playbook="playbook",zX.Plus="plus",zX.PolygonFilter="polygon-filter",zX.Power="power",zX.PredictiveAnalysis="predictive-analysis",zX.Prescription="prescription",zX.Presentation="presentation",zX.Print="print",zX.Projects="projects",zX.Properties="properties",zX.Property="property",zX.PublishFunction="publish-function",zX.Pulse="pulse",zX.Rain="rain",zX.Random="random",zX.RangeRing="range-ring",zX.Record="record",zX.RectHeight="rect-height",zX.RectWidth="rect-width",zX.Rectangle="rectangle",zX.Redo="redo",zX.Refresh="refresh",zX.Regex="regex",zX.RegressionChart="regression-chart",zX.RemoveColumnLeft="remove-column-left",zX.RemoveColumnRight="remove-column-right",zX.RemoveColumn="remove-column",zX.RemoveRowBottom="remove-row-bottom",zX.RemoveRowTop="remove-row-top",zX.Remove="remove",zX.Repeat="repeat",zX.Reset="reset",zX.Resolve="resolve",zX.Rig="rig",zX.RightJoin="right-join",zX.Ring="ring",zX.RocketSlant="rocket-slant",zX.Rocket="rocket",zX.RootFolder="root-folder",zX.RotateCcw="rotate-ccw",zX.RotateCw="rotate-cw",zX.RotateDocument="rotate-document",zX.RotatePage="rotate-page",zX.Route="route",zX.RunHistory="run-history",zX.Satellite="satellite",zX.Saved="saved",zX.ScatterPlot="scatter-plot",zX.SearchAround="search-around",zX.SearchTemplate="search-template",zX.SearchText="search-text",zX.Search="search",zX.SegmentedControl="segmented-control",zX.Select="select",zX.SelectionBoxAdd="selection-box-add",zX.SelectionBoxEdit="selection-box-edit",zX.SelectionBoxRemove="selection-box-remove",zX.SelectionBox="selection-box",zX.Selection="selection",zX.SendBackward="send-backward",zX.SendMessage="send-message",zX.SendToGraph="send-to-graph",zX.SendToMap="send-to-map",zX.SendTo="send-to",zX.Sensor="sensor",zX.SeriesAdd="series-add",zX.SeriesConfiguration="series-configuration",zX.SeriesDerived="series-derived",zX.SeriesFiltered="series-filtered",zX.SeriesSearch="series-search",zX.ServerInstall="server-install",zX.Server="server",zX.Settings="settings",zX.Shapes="shapes",zX.Share="share",zX.SharedFilter="shared-filter",zX.Shield="shield",zX.Ship="ship",zX.Shop="shop",zX.ShoppingCart="shopping-cart",zX.ShortenText="shorten-text",zX.SignalSearch="signal-search",zX.SimCard="sim-card",zX.Slash="slash",zX.SmallCross="small-cross",zX.SmallInfoSign="small-info-sign",zX.SmallMinus="small-minus",zX.SmallPlus="small-plus",zX.SmallSquare="small-square",zX.SmallTick="small-tick",zX.Snowflake="snowflake",zX.SoccerBall="soccer-ball",zX.SocialMedia="social-media",zX.SortAlphabeticalDesc="sort-alphabetical-desc",zX.SortAlphabetical="sort-alphabetical",zX.SortAsc="sort-asc",zX.SortDesc="sort-desc",zX.SortNumericalDesc="sort-numerical-desc",zX.SortNumerical="sort-numerical",zX.Sort="sort",zX.SpellCheck="spell-check",zX.SplitColumns="split-columns",zX.SportsStadium="sports-stadium",zX.Square="square",zX.StackedChart="stacked-chart",zX.StadiumGeometry="stadium-geometry",zX.StarEmpty="star-empty",zX.Star="star",zX.StepBackward="step-backward",zX.StepChart="step-chart",zX.StepForward="step-forward",zX.Stop="stop",zX.Stopwatch="stopwatch",zX.Strikethrough="strikethrough",zX.Style="style",zX.Subscript="subscript",zX.SubtractRightJoin="subtract-right-join",zX.Superscript="superscript",zX.SwapHorizontal="swap-horizontal",zX.SwapVertical="swap-vertical",zX.Sweep="sweep",zX.Switch="switch",zX.SymbolCircle="symbol-circle",zX.SymbolCross="symbol-cross",zX.SymbolDiamond="symbol-diamond",zX.SymbolRectangle="symbol-rectangle",zX.SymbolSquare="symbol-square",zX.SymbolTriangleDown="symbol-triangle-down",zX.SymbolTriangleUp="symbol-triangle-up",zX.Syringe="syringe",zX.TableSync="table-sync",zX.TagAdd="tag-add",zX.TagPromote="tag-promote",zX.TagRefresh="tag-refresh",zX.TagUndo="tag-undo",zX.Tag="tag",zX.Tags="tags",zX.TakeAction="take-action",zX.Tank="tank",zX.Target="target",zX.Taxi="taxi",zX.Team="team",zX.Temperature="temperature",zX.TextHighlight="text-highlight",zX.ThAdd="th-add",zX.ThDerived="th-derived",zX.ThDisconnect="th-disconnect",zX.ThFiltered="th-filtered",zX.ThListAdd="th-list-add",zX.ThList="th-list",zX.ThVirtualAdd="th-virtual-add",zX.ThVirtual="th-virtual",zX.Th="th",zX.ThirdParty="third-party",zX.ThumbsDown="thumbs-down",zX.ThumbsUp="thumbs-up",zX.TickCircle="tick-circle",zX.Tick="tick",zX.Time="time",zX.TimelineAreaChart="timeline-area-chart",zX.TimelineBarChart="timeline-bar-chart",zX.TimelineEvents="timeline-events",zX.TimelineLineChart="timeline-line-chart",zX.Tint="tint",zX.Torch="torch",zX.Tractor="tractor",zX.Train="train",zX.Translate="translate",zX.Trash="trash",zX.Tree="tree",zX.TrendingDown="trending-down",zX.TrendingUp="trending-up",zX.Trophy="trophy",zX.Truck="truck",zX.TwoColumns="two-columns",zX.Unarchive="unarchive",zX.Underline="underline",zX.Undo="undo",zX.UngroupObjects="ungroup-objects",zX.UnknownVehicle="unknown-vehicle",zX.Unlink="unlink",zX.Unlock="unlock",zX.Unpin="unpin",zX.Unresolve="unresolve",zX.Updated="updated",zX.Upload="upload",zX.User="user",zX.Variable="variable",zX.Vector="vector",zX.VerticalBarChartAsc="vertical-bar-chart-asc",zX.VerticalBarChartDesc="vertical-bar-chart-desc",zX.VerticalDistribution="vertical-distribution",zX.VerticalInbetween="vertical-inbetween",zX.Video="video",zX.Virus="virus",zX.VolumeDown="volume-down",zX.VolumeOff="volume-off",zX.VolumeUp="volume-up",zX.Walk="walk",zX.WarningSign="warning-sign",zX.WaterfallChart="waterfall-chart",zX.Waves="waves",zX.WidgetButton="widget-button",zX.WidgetFooter="widget-footer",zX.WidgetHeader="widget-header",zX.Widget="widget",zX.Wind="wind",zX.WrenchRedo="wrench-redo",zX.WrenchSnooze="wrench-snooze",zX.WrenchTime="wrench-time",zX.Wrench="wrench",zX.ZoomIn="zoom-in",zX.ZoomOut="zoom-out",zX.ZoomToFit="zoom-to-fit",(BT={})[BP.AddChild]="62365",BT[BP.AddClip]="61697",BT[BP.AddColumnLeft]="61698",BT[BP.AddColumnRight]="61699",BT[BP.AddLocation]="61700",BT[BP.AddParent]="62366",BT[BP.AddRowBottom]="61701",BT[BP.AddRowTop]="61702",BT[BP.AddToArtifact]="61703",BT[BP.AddToFolder]="61704",BT[BP.Add]="61705",BT[BP.AimpointsTarget]="62261",BT[BP.Airplane]="61706",BT[BP.AlignCenter]="61707",BT[BP.AlignJustify]="61708",BT[BP.AlignLeft]="61709",BT[BP.AlignRight]="61710",BT[BP.AlignmentBottom]="61711",BT[BP.AlignmentHorizontalCenter]="61712",BT[BP.AlignmentLeft]="61713",BT[BP.AlignmentRight]="61714",BT[BP.AlignmentTop]="61715",BT[BP.AlignmentVerticalCenter]="61716",BT[BP.Ammunition]="62274",BT[BP.Anchor]="62256",BT[BP.Annotation]="61717",BT[BP.Announcement]="62358",BT[BP.Antenna]="61718",BT[BP.AppHeader]="61719",BT[BP.Application]="61720",BT[BP.Applications]="61721",BT[BP.Archive]="61722",BT[BP.AreaOfInterest]="61723",BT[BP.ArrayBoolean]="61724",BT[BP.ArrayDate]="61725",BT[BP.ArrayFloatingPoint]="62253",BT[BP.ArrayNumeric]="61726",BT[BP.ArrayObject]="62356",BT[BP.ArrayString]="61727",BT[BP.ArrayTimestamp]="61728",BT[BP.Array]="61729",BT[BP.ArrowBottomLeft]="61730",BT[BP.ArrowBottomRight]="61731",BT[BP.ArrowDown]="61732",BT[BP.ArrowLeft]="61733",BT[BP.ArrowRight]="61734",BT[BP.ArrowTopLeft]="61735",BT[BP.ArrowTopRight]="61736",BT[BP.ArrowUp]="61737",BT[BP.ArrowsArc]="62343",BT[BP.ArrowsHorizontal]="61738",BT[BP.ArrowsVertical]="61739",BT[BP.Asterisk]="61740",BT[BP.At]="62257",BT[BP.AutomaticUpdates]="61741",BT[BP.Axle]="62264",BT[BP.Backlink]="61742",BT[BP.BackwardTen]="62300",BT[BP.Badge]="61743",BT[BP.BanCircle]="61744",BT[BP.BankAccount]="61745",BT[BP.Barcode]="61746",BT[BP.BinaryNumber]="62295",BT[BP.Blank]="61747",BT[BP.BlockPromote]="62322",BT[BP.BlockedPerson]="61748",BT[BP.Bold]="61749",BT[BP.Book]="61750",BT[BP.Bookmark]="61751",BT[BP.Box]="61752",BT[BP.BranchLocked]="62374",BT[BP.BranchUnlocked]="62375",BT[BP.Briefcase]="61753",BT[BP.BringData]="61754",BT[BP.BringForward]="62292",BT[BP.BritishPound]="62342",BT[BP.Bug]="62254",BT[BP.Buggy]="61755",BT[BP.Build]="61756",BT[BP.Bullseye]="62297",BT[BP.Calculator]="61757",BT[BP.Calendar]="61758",BT[BP.Camera]="61759",BT[BP.CaretDown]="61760",BT[BP.CaretLeft]="61761",BT[BP.CaretRight]="61762",BT[BP.CaretUp]="61763",BT[BP.CargoShip]="61764",BT[BP.CellTower]="61765",BT[BP.Changes]="61766",BT[BP.Chart]="61767",BT[BP.Chat]="61768",BT[BP.ChevronBackward]="61769",BT[BP.ChevronDown]="61770",BT[BP.ChevronForward]="61771",BT[BP.ChevronLeft]="61772",BT[BP.ChevronRight]="61773",BT[BP.ChevronUp]="61774",BT[BP.CircleArrowDown]="61775",BT[BP.CircleArrowLeft]="61776",BT[BP.CircleArrowRight]="61777",BT[BP.CircleArrowUp]="61778",BT[BP.Circle]="61779",BT[BP.Citation]="61780",BT[BP.Clean]="61781",BT[BP.Clip]="61782",BT[BP.ClipboardFile]="62299",BT[BP.Clipboard]="61783",BT[BP.CloudDownload]="61784",BT[BP.CloudServer]="62298",BT[BP.CloudTick]="62286",BT[BP.CloudUpload]="61785",BT[BP.Cloud]="61786",BT[BP.CodeBlock]="61787",BT[BP.Code]="61788",BT[BP.Cog]="61789",BT[BP.CollapseAll]="61790",BT[BP.ColorFill]="62248",BT[BP.ColumnLayout]="61791",BT[BP.Comment]="61792",BT[BP.Comparison]="61793",BT[BP.Compass]="61794",BT[BP.Compressed]="61795",BT[BP.Confirm]="61796",BT[BP.Console]="61797",BT[BP.Construction]="62357",BT[BP.Contrast]="61798",BT[BP.Control]="61799",BT[BP.CreditCard]="61800",BT[BP.Crop]="62291",BT[BP.CrossCircle]="62262",BT[BP.Cross]="61801",BT[BP.Crown]="61802",BT[BP.CssStyle]="62315",BT[BP.CubeAdd]="61803",BT[BP.CubeEdit]="62339",BT[BP.CubeRemove]="61804",BT[BP.Cube]="61805",BT[BP.Cubes]="62323",BT[BP.CurlyBraces]="62296",BT[BP.CurvedRangeChart]="61806",BT[BP.Cut]="61807",BT[BP.Cycle]="61808",BT[BP.Dashboard]="61809",BT[BP.DataCloud]="62353",BT[BP.DataConnection]="61810",BT[BP.DataLineage]="61811",BT[BP.DataSearch]="62319",BT[BP.DataSync]="62316",BT[BP.Database]="61812",BT[BP.DeleteClip]="62371",BT[BP.Delete]="61813",BT[BP.Delta]="61814",BT[BP.DeriveColumn]="61815",BT[BP.Desktop]="61816",BT[BP.Detection]="62273",BT[BP.Diagnosis]="61817",BT[BP.DiagramTree]="61818",BT[BP.DirectionLeft]="61819",BT[BP.DirectionRight]="61820",BT[BP.Disable]="61821",BT[BP.Divide]="62247",BT[BP.DocumentCode]="62368",BT[BP.DocumentLocked]="62369",BT[BP.DocumentOpen]="61822",BT[BP.DocumentShare]="61823",BT[BP.Document]="61824",BT[BP.Dollar]="61825",BT[BP.Dot]="61826",BT[BP.DoubleCaretHorizontal]="61827",BT[BP.DoubleCaretVertical]="61828",BT[BP.DoubleChevronDown]="61829",BT[BP.DoubleChevronLeft]="61830",BT[BP.DoubleChevronRight]="61831",BT[BP.DoubleChevronUp]="61832",BT[BP.DoughnutChart]="61833",BT[BP.Download]="61834",BT[BP.DragHandleHorizontal]="61835",BT[BP.DragHandleVertical]="61836",BT[BP.Draw]="61837",BT[BP.DrawerLeftFilled]="61838",BT[BP.DrawerLeft]="61839",BT[BP.DrawerRightFilled]="61840",BT[BP.DrawerRight]="61841",BT[BP.DriveTime]="61842",BT[BP.Duplicate]="61843",BT[BP.Edit]="61844",BT[BP.Eject]="61845",BT[BP.Emoji]="61846",BT[BP.Endnote]="62294",BT[BP.Endorsed]="61847",BT[BP.Envelope]="61848",BT[BP.Equals]="61849",BT[BP.Eraser]="61850",BT[BP.Error]="61851",BT[BP.Euro]="61852",BT[BP.Excavator]="62317",BT[BP.Exchange]="61853",BT[BP.ExcludeRow]="61854",BT[BP.ExpandAll]="61855",BT[BP.Explain]="62285",BT[BP.Export]="61856",BT[BP.EyeOff]="61857",BT[BP.EyeOn]="61858",BT[BP.EyeOpen]="61859",BT[BP.FastBackward]="61860",BT[BP.FastForward]="61861",BT[BP.FeedSubscribed]="61862",BT[BP.Feed]="61863",BT[BP.FighterJet]="62340",BT[BP.Film]="61864",BT[BP.FilterKeep]="61865",BT[BP.FilterList]="61866",BT[BP.FilterOpen]="61867",BT[BP.FilterRemove]="61868",BT[BP.FilterSortAsc]="62350",BT[BP.FilterSortDesc]="62351",BT[BP.Filter]="61869",BT[BP.Flag]="61870",BT[BP.Flame]="61871",BT[BP.Flash]="61872",BT[BP.FloatingPoint]="62252",BT[BP.FloppyDisk]="61873",BT[BP.FlowBranch]="61874",BT[BP.FlowEnd]="61875",BT[BP.FlowLinear]="61876",BT[BP.FlowReviewBranch]="61877",BT[BP.FlowReview]="61878",BT[BP.Flows]="61879",BT[BP.FolderClose]="61880",BT[BP.FolderNew]="61881",BT[BP.FolderOpen]="61882",BT[BP.FolderSharedOpen]="61883",BT[BP.FolderShared]="61884",BT[BP.Follower]="61885",BT[BP.Following]="61886",BT[BP.Font]="61887",BT[BP.Fork]="61888",BT[BP.Form]="61889",BT[BP.ForwardTen]="62301",BT[BP.Fuel]="62243",BT[BP.FullCircle]="61890",BT[BP.FullStackedChart]="61891",BT[BP.Fullscreen]="61892",BT[BP.Function]="61893",BT[BP.GanttChart]="61894",BT[BP.Generate]="62284",BT[BP.Geofence]="61895",BT[BP.Geolocation]="61896",BT[BP.Geosearch]="61897",BT[BP.Geotime]="62276",BT[BP.GiftBox]="62370",BT[BP.GitBranch]="61898",BT[BP.GitCommit]="61899",BT[BP.GitMerge]="61900",BT[BP.GitNewBranch]="61901",BT[BP.GitPull]="61902",BT[BP.GitPush]="61903",BT[BP.GitRepo]="61904",BT[BP.Glass]="61905",BT[BP.GlobeNetworkAdd]="62338",BT[BP.GlobeNetwork]="61906",BT[BP.Globe]="61907",BT[BP.GraphRemove]="61908",BT[BP.Graph]="61909",BT[BP.GreaterThanOrEqualTo]="61910",BT[BP.GreaterThan]="61911",BT[BP.GridView]="61912",BT[BP.Grid]="61913",BT[BP.GroupItem]="62282",BT[BP.GroupObjects]="61914",BT[BP.GroupedBarChart]="61915",BT[BP.HandDown]="61916",BT[BP.HandLeft]="61917",BT[BP.HandRight]="61918",BT[BP.HandUp]="61919",BT[BP.Hand]="61920",BT[BP.Hat]="61921",BT[BP.HeaderOne]="61922",BT[BP.HeaderThree]="61923",BT[BP.HeaderTwo]="61924",BT[BP.Header]="61925",BT[BP.Headset]="61926",BT[BP.HeartBroken]="61927",BT[BP.Heart]="61928",BT[BP.HeatGrid]="61929",BT[BP.Heatmap]="61930",BT[BP.Helicopter]="61931",BT[BP.Help]="61932",BT[BP.HelperManagement]="61933",BT[BP.Hexagon]="62324",BT[BP.HighPriority]="61934",BT[BP.HighVoltagePole]="62259",BT[BP.Highlight]="61935",BT[BP.History]="61936",BT[BP.Home]="61937",BT[BP.HorizontalBarChartAsc]="61938",BT[BP.HorizontalBarChartDesc]="61939",BT[BP.HorizontalBarChart]="61940",BT[BP.HorizontalDistribution]="61941",BT[BP.HorizontalInbetween]="62249",BT[BP.Hurricane]="61942",BT[BP.IdNumber]="61943",BT[BP.ImageRotateLeft]="61944",BT[BP.ImageRotateRight]="61945",BT[BP.Import]="61946",BT[BP.InboxFiltered]="61947",BT[BP.InboxGeo]="61948",BT[BP.InboxSearch]="61949",BT[BP.InboxUpdate]="61950",BT[BP.Inbox]="61951",BT[BP.InfoSign]="61952",BT[BP.Inheritance]="61953",BT[BP.InheritedGroup]="61954",BT[BP.InnerJoin]="61955",BT[BP.Input]="62283",BT[BP.Insert]="61956",BT[BP.Intelligence]="62263",BT[BP.Intersection]="61957",BT[BP.IpAddress]="61958",BT[BP.IssueClosed]="61959",BT[BP.IssueNew]="61960",BT[BP.Issue]="61961",BT[BP.Italic]="61962",BT[BP.JoinTable]="61963",BT[BP.KeyBackspace]="61964",BT[BP.KeyCommand]="61965",BT[BP.KeyControl]="61966",BT[BP.KeyDelete]="61967",BT[BP.KeyEnter]="61968",BT[BP.KeyEscape]="61969",BT[BP.KeyOption]="61970",BT[BP.KeyShift]="61971",BT[BP.KeyTab]="61972",BT[BP.Key]="61973",BT[BP.KnownVehicle]="61974",BT[BP.LabTest]="61975",BT[BP.Label]="61976",BT[BP.LayerOutline]="61977",BT[BP.Layer]="61978",BT[BP.Layers]="61979",BT[BP.LayoutAuto]="61980",BT[BP.LayoutBalloon]="61981",BT[BP.LayoutBottomRowThreeTiles]="62308",BT[BP.LayoutBottomRowTwoTiles]="62307",BT[BP.LayoutCircle]="61982",BT[BP.LayoutGrid]="61983",BT[BP.LayoutGroupBy]="61984",BT[BP.LayoutHierarchy]="61985",BT[BP.LayoutLeftColumnThreeTiles]="62310",BT[BP.LayoutLeftColumnTwoTiles]="62309",BT[BP.LayoutLinear]="61986",BT[BP.LayoutRightColumnThreeTiles]="62312",BT[BP.LayoutRightColumnTwoTiles]="62311",BT[BP.LayoutSkewGrid]="61987",BT[BP.LayoutSortedClusters]="61988",BT[BP.LayoutThreeColumns]="62305",BT[BP.LayoutThreeRows]="62306",BT[BP.LayoutTopRowThreeTiles]="62314",BT[BP.LayoutTopRowTwoTiles]="62313",BT[BP.LayoutTwoColumns]="62303",BT[BP.LayoutTwoRows]="62304",BT[BP.Layout]="61989",BT[BP.Learning]="61990",BT[BP.LeftJoin]="61991",BT[BP.LengthenText]="62270",BT[BP.LessThanOrEqualTo]="61992",BT[BP.LessThan]="61993",BT[BP.Lifesaver]="61994",BT[BP.Lightbulb]="61995",BT[BP.Lightning]="61996",BT[BP.Link]="61997",BT[BP.LinkedSquares]="62341",BT[BP.ListColumns]="61998",BT[BP.ListDetailView]="61999",BT[BP.List]="62000",BT[BP.Locate]="62001",BT[BP.Lock]="62002",BT[BP.Locomotive]="62267",BT[BP.LogIn]="62003",BT[BP.LogOut]="62004",BT[BP.LowVoltagePole]="62258",BT[BP.Manual]="62005",BT[BP.ManuallyEnteredData]="62006",BT[BP.ManyToMany]="62007",BT[BP.ManyToOne]="62008",BT[BP.MapCreate]="62009",BT[BP.MapMarker]="62010",BT[BP.Map]="62011",BT[BP.Maximize]="62012",BT[BP.Media]="62013",BT[BP.MenuClosed]="62014",BT[BP.MenuOpen]="62015",BT[BP.Menu]="62016",BT[BP.MergeColumns]="62017",BT[BP.MergeLinks]="62018",BT[BP.Microphone]="62275",BT[BP.Minimize]="62019",BT[BP.Minus]="62020",BT[BP.MobilePhone]="62021",BT[BP.MobileVideo]="62022",BT[BP.ModalFilled]="62023",BT[BP.Modal]="62024",BT[BP.Model]="62269",BT[BP.Moon]="62025",BT[BP.More]="62026",BT[BP.Mountain]="62027",BT[BP.Move]="62028",BT[BP.Mugshot]="62029",BT[BP.MultiSelect]="62030",BT[BP.Music]="62031",BT[BP.Nest]="62032",BT[BP.NewDrawing]="62033",BT[BP.NewGridItem]="62034",BT[BP.NewLayer]="62035",BT[BP.NewLayers]="62036",BT[BP.NewLink]="62037",BT[BP.NewObject]="62038",BT[BP.NewPerson]="62039",BT[BP.NewPrescription]="62040",BT[BP.NewShield]="62281",BT[BP.NewTextBox]="62041",BT[BP.Ninja]="62042",BT[BP.NotEqualTo]="62043",BT[BP.NotificationsAdd]="62360",BT[BP.NotificationsSnooze]="62044",BT[BP.NotificationsUpdated]="62045",BT[BP.Notifications]="62046",BT[BP.NumberedList]="62047",BT[BP.Numerical]="62048",BT[BP.ObjectView]="62352",BT[BP.Office]="62049",BT[BP.Offline]="62050",BT[BP.OilField]="62051",BT[BP.OneColumn]="62052",BT[BP.OneToMany]="62053",BT[BP.OneToOne]="62054",BT[BP.OpenApplication]="62251",BT[BP.Outdated]="62055",BT[BP.Output]="62320",BT[BP.Package]="62325",BT[BP.PageBreak]="62373",BT[BP.PageLayout]="62056",BT[BP.PanelStats]="62057",BT[BP.PanelTable]="62058",BT[BP.Panel]="62337",BT[BP.Paperclip]="62059",BT[BP.Paragraph]="62060",BT[BP.PasteVariable]="62278",BT[BP.PathSearch]="62061",BT[BP.Path]="62062",BT[BP.Pause]="62063",BT[BP.People]="62064",BT[BP.Percentage]="62065",BT[BP.Person]="62066",BT[BP.PhoneCall]="62279",BT[BP.PhoneForward]="62280",BT[BP.PhoneSearch]="62359",BT[BP.Phone]="62067",BT[BP.PieChart]="62068",BT[BP.Pill]="62326",BT[BP.Pin]="62069",BT[BP.Pistol]="62364",BT[BP.PivotTable]="62070",BT[BP.Pivot]="62071",BT[BP.Play]="62072",BT[BP.Playbook]="62244",BT[BP.Plus]="62073",BT[BP.PolygonFilter]="62074",BT[BP.Power]="62075",BT[BP.PredictiveAnalysis]="62076",BT[BP.Prescription]="62077",BT[BP.Presentation]="62078",BT[BP.Print]="62079",BT[BP.Projects]="62080",BT[BP.Properties]="62081",BT[BP.Property]="62082",BT[BP.PublishFunction]="62083",BT[BP.Pulse]="62084",BT[BP.Rain]="62085",BT[BP.Random]="62086",BT[BP.RangeRing]="62321",BT[BP.Record]="62087",BT[BP.RectHeight]="62245",BT[BP.RectWidth]="62246",BT[BP.Rectangle]="62241",BT[BP.Redo]="62088",BT[BP.Refresh]="62089",BT[BP.Regex]="62255",BT[BP.RegressionChart]="62090",BT[BP.RemoveColumnLeft]="62091",BT[BP.RemoveColumnRight]="62092",BT[BP.RemoveColumn]="62093",BT[BP.RemoveRowBottom]="62094",BT[BP.RemoveRowTop]="62095",BT[BP.Remove]="62096",BT[BP.Repeat]="62097",BT[BP.Reset]="62098",BT[BP.Resolve]="62099",BT[BP.Rig]="62100",BT[BP.RightJoin]="62101",BT[BP.Ring]="62102",BT[BP.RocketSlant]="62103",BT[BP.Rocket]="62104",BT[BP.RootFolder]="62367",BT[BP.RotateCcw]="62345",BT[BP.RotateCw]="62344",BT[BP.RotateDocument]="62105",BT[BP.RotatePage]="62106",BT[BP.Route]="62107",BT[BP.RunHistory]="62355",BT[BP.Satellite]="62108",BT[BP.Saved]="62109",BT[BP.ScatterPlot]="62110",BT[BP.SearchAround]="62111",BT[BP.SearchTemplate]="62112",BT[BP.SearchText]="62113",BT[BP.Search]="62114",BT[BP.SegmentedControl]="62115",BT[BP.Select]="62116",BT[BP.SelectionBoxAdd]="62362",BT[BP.SelectionBoxEdit]="62363",BT[BP.SelectionBoxRemove]="62376",BT[BP.SelectionBox]="62361",BT[BP.Selection]="62117",BT[BP.SendBackward]="62293",BT[BP.SendMessage]="62118",BT[BP.SendToGraph]="62119",BT[BP.SendToMap]="62120",BT[BP.SendTo]="62121",BT[BP.Sensor]="62268",BT[BP.SeriesAdd]="62122",BT[BP.SeriesConfiguration]="62123",BT[BP.SeriesDerived]="62124",BT[BP.SeriesFiltered]="62125",BT[BP.SeriesSearch]="62126",BT[BP.ServerInstall]="62327",BT[BP.Server]="62328",BT[BP.Settings]="62127",BT[BP.Shapes]="62128",BT[BP.Share]="62129",BT[BP.SharedFilter]="62130",BT[BP.Shield]="62131",BT[BP.Ship]="62132",BT[BP.Shop]="62133",BT[BP.ShoppingCart]="62134",BT[BP.ShortenText]="62271",BT[BP.SignalSearch]="62135",BT[BP.SimCard]="62136",BT[BP.Slash]="62137",BT[BP.SmallCross]="62138",BT[BP.SmallInfoSign]="62260",BT[BP.SmallMinus]="62139",BT[BP.SmallPlus]="62140",BT[BP.SmallSquare]="62141",BT[BP.SmallTick]="62142",BT[BP.Snowflake]="62143",BT[BP.SoccerBall]="62288",BT[BP.SocialMedia]="62144",BT[BP.SortAlphabeticalDesc]="62145",BT[BP.SortAlphabetical]="62146",BT[BP.SortAsc]="62147",BT[BP.SortDesc]="62148",BT[BP.SortNumericalDesc]="62149",BT[BP.SortNumerical]="62150",BT[BP.Sort]="62151",BT[BP.SpellCheck]="62272",BT[BP.SplitColumns]="62152",BT[BP.SportsStadium]="62289",BT[BP.Square]="62153",BT[BP.StackedChart]="62154",BT[BP.StadiumGeometry]="62155",BT[BP.StarEmpty]="62156",BT[BP.Star]="62157",BT[BP.StepBackward]="62158",BT[BP.StepChart]="62159",BT[BP.StepForward]="62160",BT[BP.Stop]="62161",BT[BP.Stopwatch]="62162",BT[BP.Strikethrough]="62163",BT[BP.Style]="62164",BT[BP.Subscript]="62265",BT[BP.SubtractRightJoin]="62354",BT[BP.Superscript]="62266",BT[BP.SwapHorizontal]="62165",BT[BP.SwapVertical]="62166",BT[BP.Sweep]="62372",BT[BP.Switch]="62167",BT[BP.SymbolCircle]="62168",BT[BP.SymbolCross]="62169",BT[BP.SymbolDiamond]="62170",BT[BP.SymbolRectangle]="62242",BT[BP.SymbolSquare]="62171",BT[BP.SymbolTriangleDown]="62172",BT[BP.SymbolTriangleUp]="62173",BT[BP.Syringe]="62174",BT[BP.TableSync]="62318",BT[BP.TagAdd]="62329",BT[BP.TagPromote]="62330",BT[BP.TagRefresh]="62331",BT[BP.TagUndo]="62332",BT[BP.Tag]="62175",BT[BP.Tags]="62333",BT[BP.TakeAction]="62176",BT[BP.Tank]="62177",BT[BP.Target]="62178",BT[BP.Taxi]="62179",BT[BP.Team]="62290",BT[BP.Temperature]="62180",BT[BP.TextHighlight]="62181",BT[BP.ThAdd]="62346",BT[BP.ThDerived]="62182",BT[BP.ThDisconnect]="62183",BT[BP.ThFiltered]="62184",BT[BP.ThListAdd]="62347",BT[BP.ThList]="62185",BT[BP.ThVirtualAdd]="62349",BT[BP.ThVirtual]="62348",BT[BP.Th]="62186",BT[BP.ThirdParty]="62187",BT[BP.ThumbsDown]="62188",BT[BP.ThumbsUp]="62189",BT[BP.TickCircle]="62190",BT[BP.Tick]="62191",BT[BP.Time]="62192",BT[BP.TimelineAreaChart]="62193",BT[BP.TimelineBarChart]="62194",BT[BP.TimelineEvents]="62195",BT[BP.TimelineLineChart]="62196",BT[BP.Tint]="62197",BT[BP.Torch]="62198",BT[BP.Tractor]="62199",BT[BP.Train]="62200",BT[BP.Translate]="62201",BT[BP.Trash]="62202",BT[BP.Tree]="62203",BT[BP.TrendingDown]="62204",BT[BP.TrendingUp]="62205",BT[BP.Trophy]="62287",BT[BP.Truck]="62206",BT[BP.TwoColumns]="62207",BT[BP.Unarchive]="62208",BT[BP.Underline]="62209",BT[BP.Undo]="62210",BT[BP.UngroupObjects]="62211",BT[BP.UnknownVehicle]="62212",BT[BP.Unlink]="62277",BT[BP.Unlock]="62213",BT[BP.Unpin]="62214",BT[BP.Unresolve]="62215",BT[BP.Updated]="62216",BT[BP.Upload]="62217",BT[BP.User]="62218",BT[BP.Variable]="62219",BT[BP.Vector]="62302",BT[BP.VerticalBarChartAsc]="62220",BT[BP.VerticalBarChartDesc]="62221",BT[BP.VerticalDistribution]="62222",BT[BP.VerticalInbetween]="62250",BT[BP.Video]="62223",BT[BP.Virus]="62224",BT[BP.VolumeDown]="62225",BT[BP.VolumeOff]="62226",BT[BP.VolumeUp]="62227",BT[BP.Walk]="62228",BT[BP.WarningSign]="62229",BT[BP.WaterfallChart]="62230",BT[BP.Waves]="62231",BT[BP.WidgetButton]="62232",BT[BP.WidgetFooter]="62233",BT[BP.WidgetHeader]="62234",BT[BP.Widget]="62235",BT[BP.Wind]="62236",BT[BP.WrenchRedo]="62334",BT[BP.WrenchSnooze]="62335",BT[BP.WrenchTime]="62336",BT[BP.Wrench]="62237",BT[BP.ZoomIn]="62238",BT[BP.ZoomOut]="62239",BT[BP.ZoomToFit]="62240";for(var Cz={},CB={},CF=0,CH=Object.values(BP);CF<CH.length;CF++){var CV=CH[CF];Cz[(0,Cj.pascalCase)(CV)]=CV,CB[(function(e,t){var n;return void 0===t&&(t={}),void 0===(n=(0,m_.__assign)({delimiter:"_"},t))&&(n={}),(0,CD.noCase)(e,(0,m_.__assign)({delimiter:"."},n))})(CV).toUpperCase()]=CV}var CU=(0,m_.__assign)((0,m_.__assign)({},Cz),CB),CW=new Set(Object.values(CU)),Cq=C("leH9B"),m_=C("gztBd"),C$=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(e){void 0!==e.loader&&(CG.defaultLoader=e.loader)},e.load=function(e,t,n){return(0,m_.__awaiter)(this,void 0,void 0,function(){var r=this;return(0,m_.__generator)(this,function(i){switch(i.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(e){return r.loadImpl(e,t,n)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(e){return(0,m_.__awaiter)(this,void 0,void 0,function(){var t,n=this;return(0,m_.__generator)(this,function(r){return t=Object.values(CU),!function(e,t){(0,m_.__awaiter)(this,void 0,void 0,function(){var n,r,i;return(0,m_.__generator)(this,function(a){switch(a.label){case 0:return(n="u">typeof NODE_ENV&&"development"===NODE_ENV&&"u">typeof performance)&&(r=performance.now(),console.info("Started '".concat(e,"'..."))),[4,t()];case 1:return a.sent(),n&&(i=Math.round(performance.now()-r),console.info("Finished '".concat(e,"' in ").concat(i,"ms"))),[2]}})})}("[Blueprint] loading all icons",function(){return(0,m_.__awaiter)(n,void 0,void 0,function(){return(0,m_.__generator)(this,function(n){switch(n.label){case 0:return[4,Promise.all([this.load(t,Cq.IconSize.STANDARD,e),this.load(t,Cq.IconSize.LARGE,e)])];case 1:return n.sent(),[2]}})})}),[2]})})},e.getPaths=function(e,t){if(this.isValidIconName(e))return(t<Cq.IconSize.LARGE?CG.loadedIconPaths16:CG.loadedIconPaths20).get(e)},e.loadImpl=function(e,t,n){return void 0===n&&(n={}),(0,m_.__awaiter)(this,void 0,void 0,function(){var r,i,a,o,l;return(0,m_.__generator)(this,function(s){switch(s.label){case 0:if(!this.isValidIconName(e))return console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2];if((r=t<Cq.IconSize.LARGE?CG.loadedIconPaths16:CG.loadedIconPaths20).has(e))return[2];return[4,function(e){return(0,m_.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,m_.__generator)(this,function(r){switch(r.label){case 0:if("function"!=typeof(n=void 0===(t=e.loader)?CG.defaultLoader:t))return[3,1];return[2,n];case 1:if("all"!==n)return[3,3];return[4,C("aymz8")];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,C("bm3dq")];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}(n)];case 1:i=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),a=t<Cq.IconSize.LARGE?Cq.IconSize.STANDARD:Cq.IconSize.LARGE,[4,i(e,a)];case 3:return o=s.sent(),r.set(e,o),[3,5];case 4:return l=s.sent(),console.error("[Blueprint] Unable to load ".concat(t,"px icon '").concat(e,"'"),l),[3,5];case 5:return[2]}})})},e.isValidIconName=function(e){return CW.has(e)},e}(),CG=new C$,Cq=C("leH9B"),m_=C("gztBd"),_=C("8NFma"),CK="".concat("bp5","-icon"),Cq=C("leH9B"),CX=new Map,CY=_.forwardRef(function(e,t){var n,r,i,a=e.children,o=e.className,l=e.color,s=e.htmlTitle,c=e.iconName,u=e.size,d=void 0===u?Cq.IconSize.STANDARD:u,h=e.svgProps,f=e.tagName,p=void 0===f?"span":f,g=e.title,m=(0,m_.__rest)(e,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=d>=Cq.IconSize.LARGE?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,v="0 0 ".concat(b," ").concat(b),x=(n="iconTitle",i=null!=(r=CX.get(n))?r:0,CX.set(n,i+1),"".concat(n,"-").concat(i)),w=(0,m_.__assign)({fill:l,height:d,role:"img",viewBox:v,width:d},h);return null===p?_.createElement("svg",(0,m_.__assign)({"aria-labelledby":g?x:void 0,"data-icon":c,ref:t},w,m,{className:y(mE)(o,null==h?void 0:h.className)}),g&&_.createElement("title",{id:x},g),a):_.createElement(p,(0,m_.__assign)((0,m_.__assign)({"aria-hidden":!g||void 0},m),{className:y(mE)(CK,"".concat(CK,"-").concat(c),o),ref:t,title:s}),_.createElement("svg",(0,m_.__assign)({"data-icon":c},w,{className:null==h?void 0:h.className}),g&&_.createElement("title",null,g),a))});CY.displayName="Blueprint5.SVGIconContainer";var CZ=_.forwardRef(function(e,t){var n,r,i=e.autoLoad,a=void 0===i||i,o=e.className,l=e.color,s=e.icon,c=e.intent,u=e.tagName,d=void 0===u?"span":u,h=e.svgProps,f=e.title,p=e.htmlTitle,g=(0,m_.__rest)(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=null!=(r=null!=(n=e.iconSize)?n:e.size)?r:Cq.IconSize.STANDARD,b=_.useState(function(){return"string"==typeof s?C$.getPaths(s,m):void 0}),v=b[0],x=b[1];if(_.useEffect(function(){var e=!1;if("string"==typeof s){var t=C$.getPaths(s,m);void 0!==t?x(t):a?C$.load(s,m).then(function(){e||x(C$.getPaths(s,m))}).catch(function(e){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),e)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){e=!0}},[a,s,m]),null==s||"boolean"==typeof s)return null;if("string"!=typeof s)return s;if(null==v){var w=m===Cq.IconSize.STANDARD?yK.ICON_STANDARD:m===Cq.IconSize.LARGE?yK.ICON_LARGE:void 0;return _.createElement(d||"span",(0,m_.__assign)((0,m_.__assign)({"aria-hidden":!f||void 0},CN(g)),{className:y(mE)(yK.ICON,w,yK.iconClass(s),yK.intentClass(c),o),"data-icon":s,ref:t,title:p}))}var C=v.map(function(e,t){return _.createElement("path",{d:e,key:t,fillRule:"evenodd"})});return _.createElement(CY,(0,m_.__assign)({children:C,className:y(mE)(yK.intentClass(c),o),color:l,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:d,title:f},CN(g)))});CZ.displayName="".concat(CM,".Icon");var m_=C("gztBd"),_=(C("8NFma"),C("8NFma"));function CQ(e,t){void 0===t&&(t=[]),_.useEffect(function(){yP("production")||e()},t)}(zY=BO||(BO={}))[zY.SMALL=20]="SMALL",zY[zY.STANDARD=50]="STANDARD",zY[zY.LARGE=100]="LARGE";var CJ="M 50,50 m 0,-".concat(45," a ").concat(45,",").concat(45," 0 1 1 0,").concat(90," a ").concat(45,",").concat(45," 0 1 1 0,-").concat(90),C0=function(e){var t,n=e.className,r=void 0===n?"":n,i=e.intent,a=e.value,o=e.tagName,l=void 0===o?"div":o,s=e.size,c=(0,m_.__rest)(e,["className","intent","value","tagName","size"]);CQ(function(){var e=null!=s,t=r.indexOf(yK.SMALL)>=0||r.indexOf(yK.LARGE)>=0;e&&t&&console.warn(yw)},[r,s]);var u=C1(s,r),d=Math.min(16,4*BO.LARGE/u),h=280-280*(null==a?.25:yA(a,0,1)),f=y(mE)(yK.SPINNER,yK.intentClass(i),((t={})[yK.SPINNER_NO_SPIN]=null!=a,t),r);return _.createElement(l,(0,m_.__assign)({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":void 0===a?void 0:100*a,className:f,role:"progressbar"},c),_.createElement(l,{className:yK.SPINNER_ANIMATION},_.createElement("svg",{width:u,height:u,strokeWidth:d.toFixed(2),viewBox:C2(d)},_.createElement("path",{className:yK.SPINNER_TRACK,d:CJ}),_.createElement("path",{className:yK.SPINNER_HEAD,d:CJ,pathLength:280,strokeDasharray:"".concat(280," ").concat(280),strokeDashoffset:h}))))};C0.displayName="".concat(CM,".Spinner");var C1=function(e,t){return null==e?t.indexOf(yK.SMALL)>=0?BO.SMALL:t.indexOf(yK.LARGE)>=0?BO.LARGE:BO.STANDARD:Math.max(10,e)},C2=function(e){var t=45+e/2,n=(50-t).toFixed(2),r=(2*t).toFixed(2);return"".concat(n," ").concat(n," ").concat(r," ").concat(r)},m_=C("gztBd"),_=(C("8NFma"),C("8NFma")),C4=mW()?_.useLayoutEffect:_.useEffect,C3=_.forwardRef(function(e,t){var n,r=e.children,i=e.tagName,a=e.title,o=e.className,l=e.ellipsize,s=void 0!==l&&l,c=(0,m_.__rest)(e,["children","tagName","title","className","ellipsize"]),u=_.useRef(),d=_.useMemo(function(){return mA(u,t)},[t]),h=_.useState(""),f=h[0],p=h[1],g=_.useState(),m=g[0],b=g[1];return C4(function(){var e;(null==(e=u.current)?void 0:e.textContent)!=null&&(b(s&&u.current.scrollWidth>u.current.clientWidth),p(u.current.textContent))},[u,r,s]),_.createElement(void 0===i?"div":i,(0,m_.__assign)((0,m_.__assign)({},c),{className:y(mE)(((n={})[yK.TEXT_OVERFLOW_ELLIPSIS]=s,n),o),ref:d,title:null!=a?a:m?f:void 0}),r)});C3.displayName="".concat(CM,".Text");var C8=_.forwardRef(function(e,t){var n=C6(e,t);return _.createElement("button",(0,m_.__assign)({type:"button"},CN(e),n),C5(e))});function C6(e,t,n){var r,i=e.alignText,a=e.fill,o=e.large,l=e.loading,s=void 0!==l&&l,c=e.minimal,u=e.outlined,d=e.size,h=e.small,f=e.variant,p=e.disabled||s,g=CR(!p,e,t,n),m=g[0],b=g[1],v=y(mE)(yK.BUTTON,((r={})[yK.ACTIVE]=m,r[yK.DISABLED]=p,r[yK.FILL]=a,r[yK.LOADING]=s,r),yK.alignmentClass(i),yK.intentClass(e.intent),yK.sizeClass(void 0===d?"medium":d,{large:o,small:h}),yK.variantClass(void 0===f?"solid":f,{minimal:c,outlined:u}),e.className);return(0,m_.__assign)((0,m_.__assign)({},b),{className:v,disabled:p})}function C5(e){var t=e.children,n=e.ellipsizeText,r=e.endIcon,i=e.icon,a=e.loading,o=e.rightIcon,l=e.text,s=e.textClassName,c=!mL.isReactNodeEmpty(l)||!mL.isReactNodeEmpty(t);return _.createElement(_.Fragment,null,a&&_.createElement(C0,{className:yK.BUTTON_SPINNER,size:BO.SMALL}),_.createElement(CZ,{icon:i}),c&&_.createElement(C3,{className:y(mE)(yK.BUTTON_TEXT,s),ellipsize:n,tagName:"span"},l,t),_.createElement(CZ,{icon:null!=r?r:o}))}C8.displayName="".concat(CM,".Button"),_.forwardRef(function(e,t){var n=e.href,r=C6(e,t,{defaultTabIndex:0,disabledTabIndex:-1});return _.createElement("a",(0,m_.__assign)({role:"button"},CN(e),r,{"aria-disabled":r.disabled,href:r.disabled?void 0:n}),C5(e))}).displayName="".concat(CM,".AnchorButton");var m_=C("gztBd"),_=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),C9=function(e){function t(t){var n=e.call(this,t)||this;return n.timeoutIds=[],n.requestIds=[],n.clearTimeouts=function(){if(n.timeoutIds.length>0){for(var e=0,t=n.timeoutIds;e<t.length;e++){var r=t[e];window.clearTimeout(r)}n.timeoutIds=[]}},n.cancelAnimationFrames=function(){if(n.requestIds.length>0){for(var e=0,t=n.requestIds;e<t.length;e++){var r=t[e];window.cancelAnimationFrame(r)}n.requestIds=[]}},yP("production")||n.validateProps(n.props),n}return(0,m_.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t,n){yP("production")||this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}(_.PureComponent),m_=C("gztBd"),_=(C("8NFma"),C("8NFma")),C7=_.createContext(),ke=_.createContext();function kt(e){var t=e.children,n=_.useState(null),r=n[0],i=n[1],a=_.useRef(!1);_.useEffect(function(){return function(){a.current=!0}},[]);var o=_.useCallback(function(e){a.current||i(e)},[]);return _.createElement(C7.Provider,{value:r},_.createElement(ke.Provider,{value:o},t))}var _=(C("8NFma"),C("8NFma")),kn=function(e){return Array.isArray(e)?e[0]:e},kr=function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},ki=function(e,t){if("function"==typeof e)return kr(e,t);null!=e&&(e.current=t)},ka=function(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e},{})},ko="u">typeof window&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,_=C("8NFma");function kl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ks(e){var t=kl(e).Element;return e instanceof t||e instanceof Element}function kc(e){var t=kl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ku(e){if("u"<typeof ShadowRoot)return!1;var t=kl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var kd=Math.max,kh=Math.min,kf=Math.round;function kp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function kg(){return!/^((?!chrome|android).)*safari/i.test(kp())}function km(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&kc(e)&&(i=e.offsetWidth>0&&kf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kf(r.height)/e.offsetHeight||1);var o=(ks(e)?kl(e):window).visualViewport,l=!kg()&&n,s=(r.left+(l&&o?o.offsetLeft:0))/i,c=(r.top+(l&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ky(e){var t=kl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kb(e){return e?(e.nodeName||"").toLowerCase():null}function kv(e){return((ks(e)?e.ownerDocument:e.document)||window.document).documentElement}function kx(e){return km(kv(e)).left+ky(e).scrollLeft}function kw(e){return kl(e).getComputedStyle(e)}function kC(e){var t=kw(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function kk(e){var t=km(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function kS(e){return"html"===kb(e)?e:e.assignedSlot||e.parentNode||(ku(e)?e.host:null)||kv(e)}function k_(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(kb(t))>=0?t.ownerDocument.body:kc(t)&&kC(t)?t:e(kS(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=kl(r),o=i?[a].concat(a.visualViewport||[],kC(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(k_(kS(o)))}function kE(e){return kc(e)&&"fixed"!==kw(e).position?e.offsetParent:null}function kT(e){for(var t=kl(e),n=kE(e);n&&["table","td","th"].indexOf(kb(n))>=0&&"static"===kw(n).position;)n=kE(n);return n&&("html"===kb(n)||"body"===kb(n)&&"static"===kw(n).position)?t:n||function(e){var t=/firefox/i.test(kp());if(/Trident/i.test(kp())&&kc(e)&&"fixed"===kw(e).position)return null;var n=kS(e);for(ku(n)&&(n=n.host);kc(n)&&0>["html","body"].indexOf(kb(n));){var r=kw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var kP="bottom",kO="right",kI="left",kA="auto",kR=["top",kP,kO,kI],kM="start",kL="viewport",kN="popper",kj=kR.reduce(function(e,t){return e.concat([t+"-"+kM,t+"-end"])},[]),kD=[].concat(kR,[kA]).reduce(function(e,t){return e.concat([t,t+"-"+kM,t+"-end"])},[]),kz=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],kB={placement:"bottom",modifiers:[],strategy:"absolute"};function kF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var kH={passive:!0};function kV(e){return e.split("-")[0]}function kU(e){return e.split("-")[1]}function kW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kq(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?kV(i):null,o=i?kU(i):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:l,y:n.y-r.height};break;case kP:t={x:l,y:n.y+n.height};break;case kO:t={x:n.x+n.width,y:s};break;case kI:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?kW(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case kM:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var k$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kG(e){var t,n,r,i,a,o,l,s=e.popper,c=e.popperRect,u=e.placement,d=e.variation,h=e.offsets,f=e.position,p=e.gpuAcceleration,g=e.adaptive,m=e.roundOffsets,y=e.isFixed,b=h.x,v=void 0===b?0:b,x=h.y,w=void 0===x?0:x,C="function"==typeof m?m({x:v,y:w}):{x:v,y:w};v=C.x,w=C.y;var k=h.hasOwnProperty("x"),S=h.hasOwnProperty("y"),_=kI,E="top",T=window;if(g){var P=kT(s),O="clientHeight",I="clientWidth";P===kl(s)&&"static"!==kw(P=kv(s)).position&&"absolute"===f&&(O="scrollHeight",I="scrollWidth"),("top"===u||(u===kI||u===kO)&&"end"===d)&&(E=kP,w-=(y&&P===T&&T.visualViewport?T.visualViewport.height:P[O])-c.height,w*=p?1:-1),(u===kI||("top"===u||u===kP)&&"end"===d)&&(_=kO,v-=(y&&P===T&&T.visualViewport?T.visualViewport.width:P[I])-c.width,v*=p?1:-1)}var A=Object.assign({position:f},g&&k$),R=!0===m?(t={x:v,y:w},n=kl(s),r=t.x,i=t.y,{x:kf(r*(a=n.devicePixelRatio||1))/a||0,y:kf(i*a)/a||0}):{x:v,y:w};return(v=R.x,w=R.y,p)?Object.assign({},A,((l={})[E]=S?"0":"",l[_]=k?"0":"",l.transform=1>=(T.devicePixelRatio||1)?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",l)):Object.assign({},A,((o={})[E]=S?w+"px":"",o[_]=k?v+"px":"",o.transform="",o))}var kK={left:"right",right:"left",bottom:"top",top:"bottom"};function kX(e){return e.replace(/left|right|bottom|top/g,function(e){return kK[e]})}var kY={start:"end",end:"start"};function kZ(e){return e.replace(/start|end/g,function(e){return kY[e]})}function kQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ku(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kJ(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k0(e,t,n){var r,i,a,o,l,s,c,u,d,h;return t===kL?kJ(function(e,t){var n=kl(e),r=kv(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;var c=kg();(c||!c&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l+kx(e),y:s}}(e,n)):ks(t)?((r=km(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):kJ((i=kv(e),o=kv(i),l=ky(i),s=null==(a=i.ownerDocument)?void 0:a.body,c=kd(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=kd(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-l.scrollLeft+kx(i),h=-l.scrollTop,"rtl"===kw(s||o).direction&&(d+=kd(o.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:d,y:h}))}function k1(){return{top:0,right:0,bottom:0,left:0}}function k2(e){return Object.assign({},k1(),e)}function k4(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function k3(e,t){void 0===t&&(t={});var n,r,i,a,o,l,s,c,u=t,d=u.placement,h=void 0===d?e.placement:d,f=u.strategy,p=void 0===f?e.strategy:f,g=u.boundary,m=u.rootBoundary,y=u.elementContext,b=void 0===y?kN:y,v=u.altBoundary,x=u.padding,w=void 0===x?0:x,C=k2("number"!=typeof w?w:k4(w,kR)),k=e.rects.popper,S=e.elements[void 0!==v&&v?b===kN?"reference":kN:b],_=(n=ks(S)?S:S.contextElement||kv(e.elements.popper),r=void 0===g?"clippingParents":g,i=void 0===m?kL:m,s=(l=[].concat("clippingParents"===r?(a=k_(kS(n)),!ks(o=["absolute","fixed"].indexOf(kw(n).position)>=0&&kc(n)?kT(n):n)?[]:a.filter(function(e){return ks(e)&&kQ(e,o)&&"body"!==kb(e)})):[].concat(r),[i]))[0],(c=l.reduce(function(e,t){var r=k0(n,t,p);return e.top=kd(r.top,e.top),e.right=kh(r.right,e.right),e.bottom=kh(r.bottom,e.bottom),e.left=kd(r.left,e.left),e},k0(n,s,p))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),E=km(e.elements.reference),T=kq({reference:E,element:k,strategy:"absolute",placement:h}),P=kJ(Object.assign({},k,T)),O=b===kN?P:E,I={top:_.top-O.top+C.top,bottom:O.bottom-_.bottom+C.bottom,left:_.left-O.left+C.left,right:O.right-_.right+C.right},A=e.modifiersData.offset;if(b===kN&&A){var R=A[h];Object.keys(I).forEach(function(e){var t=[kO,kP].indexOf(e)>=0?1:-1,n=["top",kP].indexOf(e)>=0?"y":"x";I[e]+=R[n]*t})}return I}function k8(e,t,n){return kd(e,kh(t,n))}function k6(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function k5(e){return["top",kO,kP,kI].some(function(t){return e[t]>=0})}var k9=(zJ=void 0===(zQ=(zZ={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,l=void 0===o||o,s=kl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,kH)}),l&&s.addEventListener("resize",n.update,kH),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,kH)}),l&&s.removeEventListener("resize",n.update,kH)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=kq({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,l={placement:kV(t.placement),variation:kU(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kG(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kG(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];kc(i)&&kb(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});kc(r)&&kb(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=kD.reduce(function(e,n){var r,i,o,l,s,c;return e[n]=(r=t.rects,o=[kI,"top"].indexOf(i=kV(n))>=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],c=l[1],s=s||0,c=(c||0)*o,[kI,kO].indexOf(i)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=o[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,l=void 0===o||o,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,y=kV(m)===m,b=s||(y||!p?[kX(m)]:function(e){if(kV(e)===kA)return[];var t=kX(e);return[kZ(e),t,kZ(t)]}(m)),v=[m].concat(b).reduce(function(e,n){var r,i,a,o,l,s,h,f,m,y,b,v;return e.concat(kV(n)===kA?(i=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}).placement,a=r.boundary,o=r.rootBoundary,l=r.padding,s=r.flipVariations,f=void 0===(h=r.allowedAutoPlacements)?kD:h,0===(b=(y=(m=kU(i))?s?kj:kj.filter(function(e){return kU(e)===m}):kR).filter(function(e){return f.indexOf(e)>=0})).length&&(b=y),Object.keys(v=b.reduce(function(e,n){return e[n]=k3(t,{placement:n,boundary:a,rootBoundary:o,padding:l})[kV(n)],e},{})).sort(function(e,t){return v[e]-v[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=v[0],_=0;_<v.length;_++){var E=v[_],T=kV(E),P=kU(E)===kM,O=["top",kP].indexOf(T)>=0,I=O?"width":"height",A=k3(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),R=O?P?kO:kI:P?kP:"top";x[I]>w[I]&&(R=kX(R));var M=kX(R),L=[];if(a&&L.push(A[T]<=0),l&&L.push(A[R]<=0,A[M]<=0),L.every(function(e){return e})){S=E,k=!1;break}C.set(E,L)}if(k)for(var N=p?3:1,j=function(e){var t=v.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},D=N;D>0&&"break"!==j(D);D--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,l=n.rootBoundary,s=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,h=n.tetherOffset,f=void 0===h?0:h,p=k3(t,{boundary:o,rootBoundary:l,padding:c,altBoundary:s}),g=kV(t.placement),m=kU(t.placement),y=!m,b=kW(g),v="x"===b?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,k="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(x){if(void 0===i||i){var T,P="y"===b?"top":kI,O="y"===b?kP:kO,I="y"===b?"height":"width",A=x[b],R=A+p[P],M=A-p[O],L=d?-C[I]/2:0,N=m===kM?w[I]:C[I],j=m===kM?-C[I]:-w[I],D=t.elements.arrow,z=d&&D?kk(D):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k1(),F=B[P],H=B[O],V=k8(0,w[I],z[I]),U=y?w[I]/2-L-V-F-S.mainAxis:N-V-F-S.mainAxis,W=y?-w[I]/2+L+V+H+S.mainAxis:j+V+H+S.mainAxis,q=t.elements.arrow&&kT(t.elements.arrow),$=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,G=null!=(T=null==_?void 0:_[b])?T:0,K=k8(d?kh(R,A+U-G-$):R,A,d?kd(M,A+W-G):M);x[b]=K,E[b]=K-A}if(void 0!==a&&a){var X,Y,Z="x"===b?"top":kI,Q="x"===b?kP:kO,J=x[v],ee="y"===v?"height":"width",et=J+p[Z],en=J-p[Q],er=-1!==["top",kI].indexOf(g),ei=null!=(Y=null==_?void 0:_[v])?Y:0,ea=er?et:J-w[ee]-C[ee]-ei+S.altAxis,eo=er?J+w[ee]+C[ee]-ei-S.altAxis:en,el=d&&er?(X=k8(ea,J,eo))>eo?eo:X:k8(d?ea:et,J,d?eo:en);x[v]=el,E[v]=el-J}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=kV(n.placement),s=kW(l),c=[kI,kO].indexOf(l)>=0?"height":"width";if(a&&o){var u,d=(u=i.padding,k2("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:k4(u,kR))),h=kk(a),f="y"===s?"top":kI,p="y"===s?kP:kO,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],m=o[s]-n.rects.reference[s],y=kT(a),b=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,v=d[f],x=b-h[c]-d[p],w=b/2-h[c]/2+(g/2-m/2),C=k8(v,w,x);n.modifiersData[r]=((t={})[s]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&kQ(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=k3(t,{elementContext:"reference"}),l=k3(t,{altBoundary:!0}),s=k6(o,r),c=k6(l,i,a),u=k5(s),d=k5(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:zQ,z1=void 0===(z0=zZ.defaultOptions)?kB:z0,function(e,t,n){void 0===n&&(n=z1);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},kB,z1),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],l=!1,s={state:a,setOptions:function(n){var r,i,l,u,d,h,f="function"==typeof n?n(a.options):n;c(),a.options=Object.assign({},z1,a.options,f),a.scrollParents={reference:ks(e)?k_(e):e.contextElement?k_(e.contextElement):[],popper:k_(t)};var p=(i=Object.keys(r=[].concat(zJ,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,u=new Set,d=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var n=l.get(t);n&&e(n)}}),d.push(t)}(e)}),h=d,kz.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=p.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:s,options:void 0===n?{}:n});o.push(i||function(){})}}),s.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(kF(t,n)){a.rects={reference:(r=kT(n),i="fixed"===a.options.strategy,o=kc(r),h=kc(r)&&(u=kf((c=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=kf(c.height)/r.offsetHeight||1,1!==u||1!==d),f=kv(r),p=km(t,h,i),g={scrollLeft:0,scrollTop:0},m={x:0,y:0},(o||!o&&!i)&&(("body"!==kb(r)||kC(f))&&(g=function(e){return e!==kl(e)&&kc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:ky(e)}(r)),kc(r)?(m=km(r,!0),m.x+=r.clientLeft,m.y+=r.clientTop):f&&(m.x=kx(f))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}),popper:kk(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r,i,o,c,u,d,h,f,p,g,m,y=0;y<a.orderedModifiers.length;y++){if(!0===a.reset){a.reset=!1,y=-1;continue}var b=a.orderedModifiers[y],v=b.fn,x=b.options,w=void 0===x?{}:x,C=b.name;"function"==typeof v&&(a=v({state:a,options:w,name:C,instance:s})||a)}}}},update:(r=function(){return new Promise(function(e){s.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){c(),l=!0}};if(!kF(e,t))return s;function c(){o.forEach(function(e){return e()}),o=[]}return s.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),s}),k7={},Se="u">typeof Element,St="function"==typeof Map,Sn="function"==typeof Set,Sr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;k7=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,a,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(St&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;for(o=t.entries();!(i=o.next()).done;)if(!e(i.value[1],n.get(i.value[0])))return!1;return!0}if(Sn&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(Sr&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof n.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof n.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;if(Se&&t instanceof Element)return!1;for(i=r;0!=i--;)if(("_owner"!==a[i]&&"__v"!==a[i]&&"__o"!==a[i]||!t.$$typeof)&&!e(t[a[i]],n[a[i]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};var Si=[],Sa=function(e,t,n){void 0===n&&(n={});var r=_.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Si},a=_.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=a[0],l=a[1],s=_.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);T.flushSync(function(){l({styles:ka(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:ka(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),c=_.useMemo(function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[s,{name:"applyStyles",enabled:!1}])};return y(k7)(r.current,e)?r.current||e:(r.current=e,e)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),u=_.useRef();return ko(function(){u.current&&u.current.setOptions(c)},[c]),ko(function(){if(null!=e&&null!=t){var r=(n.createPopper||k9)(e,t,c);return u.current=r,function(){r.destroy(),u.current=null}}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:o.styles,attributes:o.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},So=function(){},Sl=function(){return Promise.resolve(null)},Ss=[];function Sc(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,i=void 0===r?"absolute":r,a=e.modifiers,o=void 0===a?Ss:a,l=e.referenceElement,s=e.onFirstUpdate,c=e.innerRef,u=e.children,d=_.useContext(C7),h=_.useState(null),f=h[0],p=h[1],g=_.useState(null),m=g[0],y=g[1];_.useEffect(function(){ki(c,f)},[c,f]);var b=Sa(l||d,f,_.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:s,modifiers:[].concat(o,[{name:"arrow",enabled:null!=m,options:{element:m}}])}},[n,i,s,o,m])),v=b.state,x=b.styles,w=b.forceUpdate,C=b.update,k=_.useMemo(function(){return{ref:p,style:x.popper,placement:v?v.placement:n,hasPopperEscaped:v&&v.modifiersData.hide?v.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:v&&v.modifiersData.hide?v.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:x.arrow,ref:y},forceUpdate:w||So,update:C||Sl}},[p,y,n,v,x,C,w]);return kn(u)(k)}var _=C("8NFma"),Su={};function Sd(e){var t=e.children,n=e.innerRef,r=_.useContext(ke),i=_.useCallback(function(e){ki(n,e),kr(r,e)},[n,r]);return _.useEffect(function(){return function(){return ki(n,null)}},[]),_.useEffect(function(){y(Su)(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),kn(t)({ref:i})}Su=function(){};var m_=C("gztBd");function Sh(){return(Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function Sf(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Sp(e,t){return(Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sp(e,t)}function Sm(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var _=(C("8NFma"),C("8NFma"),C("8NFma"),C("8NFma")),Sy=y(_).createContext(null),Sb=function(e){return e.scrollTop},Sv="unmounted",Sx="exited",Sw="entering",SC="entered",Sk="exiting",SS=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(r=Sx,i.appearStatus=Sw):r=SC:r=t.unmountOnExit||t.mountOnEnter?Sv:Sx,i.state={status:r},i.nextCallback=null,i}Sg(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Sv?{status:Sx}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Sw&&n!==SC&&(t=Sw):(n===Sw||n===SC)&&(t=Sk)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sw){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y(T).findDOMNode(this);n&&Sb(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sx&&this.setState({status:Sv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[y(T).findDOMNode(this),r],a=i[0],o=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;(e||n)&&1?(this.props.onEnter(a,o),this.safeSetState({status:Sw},function(){t.props.onEntering(a,o),t.onTransitionEnd(s,function(){t.safeSetState({status:SC},function(){t.props.onEntered(a,o)})})})):this.safeSetState({status:SC},function(){t.props.onEntered(a)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y(T).findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Sk},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Sx},function(){e.props.onExited(r)})})})):this.safeSetState({status:Sx},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y(T).findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===Sv)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Sf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return y(_).createElement(Sy.Provider,{value:null},"function"==typeof n?n(e,r):y(_).cloneElement(y(_).Children.only(n),r))},t}(y(_).Component);function S_(){}SS.contextType=Sy,SS.propTypes={},SS.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S_,onEntering:S_,onEntered:S_,onExit:S_,onExiting:S_,onExited:S_},SS.UNMOUNTED=Sv,SS.EXITED=Sx,SS.ENTERING=Sw,SS.ENTERED=SC,SS.EXITING=Sk;var SE=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Sm(e.className,t):e.setAttribute("class",Sm(e.className&&e.className.baseVal||"",t))})},ST=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.addClass(i,a?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r&&n?n+"-":"",a=r?""+i+e:n[e],o=r?a+"-active":n[e+"Active"],l=r?a+"-done":n[e+"Done"];return{baseClassName:a,activeClassName:o,doneClassName:l}},t}Sg(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,i=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(i+=" "+a),"active"===n&&e&&Sb(e),i&&(this.appliedClasses[t][n]=i,r=i,e&&r&&r.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&SE(e,r),i&&SE(e,i),a&&SE(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Sf(e,["classNames"]));return y(_).createElement(SS,Sh({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(y(_).Component);function SP(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ST.defaultProps={classNames:""},ST.propTypes={};var _=(C("8NFma"),C("8NFma"));function SO(e,t){var n=Object.create(null);return e&&_.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,_.isValidElement)(e)?t(e):e}),n}function SI(e,t,n){return null!=n[t]?n[t]:e.props[t]}var SA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SR=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.handleExited.bind(SP(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Sg(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?SO(e.children,function(t){return(0,_.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:SI(t,"appear",e),enter:SI(t,"enter",e),exit:SI(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var c=i[s][r];l[i[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(i,n=SO(e.children))).forEach(function(t){var o=r[t];if((0,_.isValidElement)(o)){var l=t in i,s=t in n,c=i[t],u=(0,_.isValidElement)(c)&&!c.props.in;s&&(!l||u)?r[t]=(0,_.cloneElement)(o,{onExited:a.bind(null,o),in:!0,exit:SI(o,"exit",e),enter:SI(o,"enter",e)}):s||!l||u?s&&l&&(0,_.isValidElement)(c)&&(r[t]=(0,_.cloneElement)(o,{onExited:a.bind(null,o),in:c.props.in,exit:SI(o,"exit",e),enter:SI(o,"enter",e)})):r[t]=(0,_.cloneElement)(o,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=SO(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Sh({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Sf(e,["component","childFactory"]),i=this.state.contextValue,a=SA(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?y(_).createElement(Sy.Provider,{value:i},a):y(_).createElement(Sy.Provider,{value:i},y(_).createElement(t,r,a))},t}(y(_).Component);SR.propTypes={},SR.defaultProps={component:"div",childFactory:function(e){return e}};var _=(C("8NFma"),C("8NFma")),SM=function(){var e=1,t=new WeakMap,n=function(r,i){return"number"==typeof r||"string"==typeof r?i?"idx-".concat(i):"val-".concat(r):t.has(r)?"uid"+t.get(r):(t.set(r,e++),n(r))};return n};SM();var SL=function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:SM()}},SN=SL(),Sj=_.createContext(SL()),SD=function(e){var t=e||SN,n=(t?t.prefix:"")+t.value++;return{uid:n,gen:function(e){return n+t.uid(e)}}},Sz=function(){var e=(0,_.useContext)(Sj);return(0,_.useState)(function(){return SD(e)})[0]},_=(C("8NFma"),C("8NFma")),SB=_.createContext({hasProvider:!1,stack:{current:[]}}),_=C("8NFma"),SF=[],SH=[],SV=function(e){e(SF),SH.forEach(function(e){return e()})},SU=function(){return SF},SW=function(e){return SH.push(e),function(){var t=SH.indexOf(e);SH.splice(t,1)}};function Sq(e){var t=mR(e);return(null!=t?mJ(t):[]).filter(function(e){return!e.classList.contains(x7)&&!e.classList.contains(we)})}var _=(C("8NFma"),C("8NFma"),C("8NFma")),S$=_.createContext({});function SG(e,t){var n,r=e.className,i=e.stopPropagationEvents,a=e.container,o=e.onChildrenMount,l=e.children;void 0===t&&(t={});var s=_.useContext(S$),c=null!=(n=null!=a?a:s.portalContainer)?n:"u">typeof document?document.body:void 0,u=_.useState(),d=u[0],h=u[1],f=_.useCallback(function(){var e=document.createElement("div");e.classList.add(yK.PORTAL),SK(e.classList,r),SK(e.classList,s.portalClassName),SX(e,i);var n=t.blueprintPortalClassName;return null!=n&&""!==n&&(console.error(yp),SK(e.classList,n)),e},[r,s.portalClassName,t.blueprintPortalClassName,i]);return(_.useEffect(function(){if(null!=c){var e=f();return c.appendChild(e),h(e),function(){SY(e,i),e.remove(),h(void 0)}}},[c,f,i]),_.useEffect(function(){null!=d&&(null==o||o())},[d,o]),_.useEffect(function(){if(null!=d)return SK(d.classList,r),function(){var e,t;return e=d.classList,void(null!=(t=r)&&""!==t&&e.remove.apply(e,t.split(" ")))}},[r,d]),_.useEffect(function(){if(null!=d)return SX(d,i),function(){return SY(d,i)}},[d,i]),"u"<typeof document||null==d)?null:T.createPortal(l,d)}function SK(e,t){null!=t&&""!==t&&e.add.apply(e,t.split(" "))}function SX(e,t){null==t||t.forEach(function(t){return e.addEventListener(t,SZ)})}function SY(e,t){null==t||t.forEach(function(t){return e.removeEventListener(t,SZ)})}function SZ(e){e.stopPropagation()}SG.displayName="".concat(CM,".Portal"),yV()||(SG.contextTypes={blueprintPortalClassName:function(e,t){if(null!=e[t]&&"string"!=typeof e[t])return Error(yf)}});var SQ={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:mW(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:yK.OVERLAY,usePortal:!0},SJ=_.forwardRef(function(e,t){var n,r,i,a,o,l,s,c,u,d,h,f,p,g,m,b,v,x,w,C,k,S,E,T,P=e.autoFocus,O=e.backdropClassName,I=e.backdropProps,A=e.canEscapeKeyClose,R=e.canOutsideClickClose,M=e.childRef,N=e.childRefs,j=e.children,D=e.className,z=e.enforceFocus,B=e.hasBackdrop,F=e.isOpen,H=e.lazy,V=e.onClose,U=e.onClosed,W=e.onClosing,q=e.onOpened,$=e.onOpening,G=e.portalClassName,K=e.portalContainer,X=e.shouldReturnFocusOnClose,Y=e.transitionDuration,Z=e.transitionName,Q=e.usePortal;r=(n=e).childRef,i=n.childRefs,a=n.children,o=_.Children.count(a),_.useEffect(function(){!yP("production")&&(null!=r&&null!=i&&console.error(y_),o>1&&null==i&&console.error(yE))},[r,i,o]);var J=(c=(s=y(_).useContext(SB)).stack,u=s.hasProvider,d=(0,L.useSyncExternalStore)(SW,SU,SU),h=y(_).useCallback(function(){return d[d.length-1]},[d]),f=y(_).useCallback(function(e){var t=d.findIndex(function(t){return t.id===e});return d.slice(t)},[d]),p=y(_).useCallback(function(){SV(function(e){return e.splice(0,e.length)})},[]),g=y(_).useCallback(function(e){SF.push(e),e.props.usePortal&&e.props.hasBackdrop&&document.body.classList.add(yK.OVERLAY_OPEN)},[]),m={closeOverlay:y(_).useCallback(function(e){var t=d.filter(function(t){return t.props.usePortal&&t.props.hasBackdrop&&t.id!==e}),n=SF.findIndex(function(t){return t.id===e});n>-1&&SF.splice(n,1),0===t.length&&document.body.classList.remove(yK.OVERLAY_OPEN)},[d]),getLastOpened:h,getThisOverlayAndDescendants:f,openOverlay:g,resetStack:p},b=y(_).useCallback(function(){return c.current[c.current.length-1]},[c]),v=y(_).useCallback(function(e){var t=c.current.findIndex(function(t){return t.id===e});return -1===t?[]:c.current.slice(t)},[c]),x=y(_).useCallback(function(){c.current=[]},[c]),w=y(_).useCallback(function(e){c.current.push(e),e.props.usePortal&&e.props.hasBackdrop&&document.body.classList.add(yK.OVERLAY_OPEN)},[c]),C=y(_).useCallback(function(e){var t=c.current.filter(function(t){return t.props.usePortal&&t.props.hasBackdrop&&t.id!==e}),n=c.current.findIndex(function(t){return t.id===e});n>-1&&c.current.splice(n,1),0===t.length&&document.body.classList.remove(yK.OVERLAY_OPEN)},[c]),u?{closeOverlay:C,getLastOpened:b,getThisOverlayAndDescendants:v,openOverlay:w,resetStack:x}:(yP("development")&&console.error(yS),m)),ee=J.closeOverlay,et=J.getLastOpened,en=J.getThisOverlayAndDescendants,er=J.openOverlay,ei=_.useState(!1),ea=ei[0],eo=ei[1],el=_.useState(!1),es=el[0],ec=el[1],eu=_.useRef(null),ed=_.useRef(null),eh=_.useRef(null),ef=_.useRef(null),ep=_.useRef(null),eg=_.useRef(null),em=_.useCallback(function(){return requestAnimationFrame(function(){var e,t=mR(ed),n=mG(t);null!=t&&null!=n&&(t.contains(n)||(null==(e=mR(ef))||e.focus({preventScroll:!0}),eo(!1)))})},[]),ey=(l=Sz().uid,"".concat(SJ.displayName,"-").concat(l)),eb=_.useRef(null),ev=_.useCallback(function(e){var t=e.composed?e.composedPath()[0]:e.target,n=mR(ed);null!=n&&t instanceof Node&&!n.contains(t)&&(e.preventDefault(),e.stopImmediatePropagation(),em())},[em]),ex=_.useCallback(function(e){var t=e.composed?e.composedPath()[0]:e.target;en(ey).some(function(e){var n=mR(e.containerElement);return(null==n?void 0:n.contains(t))&&!n.isSameNode(t)})||null==V||V(e)},[en,ey,V]),ew=_.useMemo(function(){return mA(t,eb)},[t]);_.useImperativeHandle(ew,function(){return{bringFocusInsideOverlay:em,containerElement:ed,handleDocumentFocus:ev,handleDocumentMousedown:ex,id:ey,props:{autoFocus:P,enforceFocus:z,hasBackdrop:B,usePortal:Q}}},[P,em,z,ev,ex,B,ey,Q]);var eC=_.useCallback(function(e){"Escape"===e.key&&A&&(null==V||V(e),e.stopPropagation(),e.preventDefault())},[A,V]),ek=_.useCallback(function(){if(null!=eb.current){var e=et();(null==e?void 0:e.handleDocumentFocus)!==void 0&&document.removeEventListener("focus",e.handleDocumentFocus,!0),er(eb.current),P&&(eo(!0),em()),mI(eu,mG(mR(ed)))}},[P,em,et,er]),eS=_.useCallback(function(){document.removeEventListener("focus",ev,!0),document.removeEventListener("mousedown",ex),ee(ey);var e,t=et();void 0!==t&&t.props.autoFocus&&t.props.enforceFocus&&(null==(e=t.bringFocusInsideOverlay)||e.call(t),void 0!==t.handleDocumentFocus&&document.addEventListener("focus",t.handleDocumentFocus,!0))},[ee,et,ev,ex,ey]),e_=null!==(k=_.useRef(),_.useEffect(function(){k.current=F},[F]),E=k.current)&&void 0!==E&&E;_.useEffect(function(){F&&ec(!0),!e_&&F&&ek(),e_&&!F&&eS()},[F,ek,eS,e_]),_.useEffect(function(){if(F&&R&&!B)return document.addEventListener("mousedown",ex),function(){document.removeEventListener("mousedown",ex)}},[ex,F,R,B]),_.useEffect(function(){if(F&&z)return document.addEventListener("focus",ev,!0),function(){document.removeEventListener("focus",ev,!0)}},[ev,z,F]);var eE=_.useRef(eS);eE.current=eS,_.useEffect(function(){return function(){eE.current()}},[]);var eT=_.useCallback(function(e){var t=mR(eu);X&&t instanceof HTMLElement&&t.focus(),null==U||U(e)},[U,X]),eP=_.useCallback(function(){},[]),eO=_.useCallback(function(e){if(null!=M)return M;if(null!=N){var t=e.key;if(null==t){yP("production")||console.error(yT);return}return N[t]}},[M,N]),eI=_.useCallback(function(e){if(null==e||yN(e))return null;var t=eO(e),n=yF(e)?e.props:{},r=yB(e,"span",{className:y(mE)(n.className,yK.OVERLAY_CONTENT),ref:void 0===t?eg:void 0,tabIndex:z||P?0:void 0}),i=null!=t?t:eg;return _.createElement(ST,{addEndListener:eP,classNames:Z,nodeRef:i,onEntered:S0(q,i),onEntering:S0($,i),onExited:S0(eT,i),onExiting:S0(W,i),timeout:Y},r)},[P,z,eO,eP,eT,W,q,$,Y,Z]),eA=_.useCallback(function(e){var t;R&&(null==V||V(e)),z&&em(),null==(t=null==I?void 0:I.onMouseDown)||t.call(I,e)},[I,em,R,z,V]),eR=_.useCallback(function(e,t){return _.createElement(ST,{addEndListener:eP,classNames:Z,key:e,nodeRef:t.ref,timeout:Y,unmountOnExit:!0},_.createElement("div",(0,m_.__assign)({tabIndex:0},t)))},[eP,Y,Z]),eM=_.useCallback(function(e){if(z&&!ea){var t=mR(ed),n=mR(ep);null!=e.relatedTarget&&(null==t?void 0:t.contains(e.relatedTarget))&&e.relatedTarget!==n&&(null==n||n.focus({preventScroll:!0}))}},[z,ea]),eL=_.useCallback(function(e){var t;if(z&&e.shiftKey&&"Tab"===e.key){var n=Sq(ed).pop();null!=n?n.focus():null==(t=mR(ep))||t.focus({preventScroll:!0})}},[z]),eN=_.useCallback(function(e){var t,n=mR(ef);if(null!=e.relatedTarget&&(null==(t=mR(ed))?void 0:t.contains(e.relatedTarget))&&e.relatedTarget!==n){var r=Sq(ed).shift();ea||null==r||r===e.relatedTarget?null==n||n.focus({preventScroll:!0}):r.focus()}else{var i=Sq(ed).pop();null!=i?i.focus():null==n||n.focus({preventScroll:!0})}},[ea]),ej=_.useMemo(function(){return B&&F?_.createElement(ST,{classNames:Z,key:"__backdrop",nodeRef:eh,timeout:Y,addEndListener:eP},_.createElement("div",(0,m_.__assign)({},I,{className:y(mE)(yK.OVERLAY_BACKDROP,O,null==I?void 0:I.className),onMouseDown:eA,ref:eh}))):null},[O,I,eA,eP,B,F,Y,Z]);if(H&&!es)return null;var eD=F&&null!=(T=_.Children.map(j,eI))?T:[];null!==ej&&eD.unshift(ej),F&&(P||z)&&eD.length>0&&(eD.unshift(eR("__start",{className:yK.OVERLAY_START_FOCUS_TRAP,onFocus:eM,onKeyDown:eL,ref:ef})),z&&eD.push(eR("__end",{className:yK.OVERLAY_END_FOCUS_TRAP,onFocus:eN,ref:ep})));var ez=_.createElement("div",{"aria-live":"polite",className:y(mE)(yK.OVERLAY,((S={})[yK.OVERLAY_OPEN]=F,S[yK.OVERLAY_INLINE]=!Q,S),D),onKeyDown:eC,ref:ed},_.createElement(SR,{appear:!0,component:null},eD));return Q?_.createElement(SG,{className:G,container:K},ez):ez});function S0(e,t){return function(){(null==t?void 0:t.current)!=null&&(null==e||e(t.current))}}SJ.defaultProps=SQ,SJ.displayName="".concat(CM,".Overlay2");var m_=C("gztBd"),_=C("8NFma"),S1=function(e){function t(){var t,n=e.apply(this,arguments)||this;return n.targetRef=null!=(t=n.props.targetRef)?t:_.createRef(),n.prevElement=void 0,n}return(0,m_.__extends)(t,e),t.prototype.render=function(){var e=_.Children.only(this.props.children);return void 0!==this.props.targetRef?e:_.cloneElement(e,{ref:this.targetRef})},t.prototype.componentDidMount=function(){var e=this;this.observer=null!=globalThis.ResizeObserver?new ResizeObserver(function(t){var n,r;return null==(r=(n=e.props).onResize)?void 0:r.call(n,t)}):void 0,this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){var e;null==(e=this.observer)||e.disconnect(),this.prevElement=void 0},t.prototype.observeElement=function(e){if(void 0===e&&(e=!1),void 0!==this.observer){if(!(this.targetRef.current instanceof Element))return void this.observer.disconnect();if((this.targetRef.current!==this.prevElement||e)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var t=this.targetRef.current.parentElement;null!=t;)this.observer.observe(t),t=t.parentElement}},t.displayName="".concat(CM,".ResizeSensor"),t}(C9),S2={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state,n=t.elements.reference.getBoundingClientRect().width;t.elements.popper.style.width="".concat(n,"px")}},m_=C("gztBd"),_=C("8NFma");function S4(e){return e.split("-")[0]}function S3(e){return -1!==["left","right"].indexOf(e)}function S8(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function S6(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}var S5=function(e){var t=e.arrowProps,n=t.ref,r=t.style,i=e.placement;return _.createElement("div",{"aria-hidden":!0,className:yK.POPOVER_ARROW,"data-popper-arrow":!0,ref:n,style:(0,m_.__assign)((0,m_.__assign)({},r),function(e){switch(S4(e)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}(i))},_.createElement("svg",{viewBox:"0 0 ".concat(30," ").concat(30),style:{transform:"rotate(".concat(function(e){if(null==e)return 0;switch(S4(e)){case"top":return -90;case"left":return 180;case"bottom":return 90;default:return 0}}(i),"deg)")}},_.createElement("path",{className:yK.POPOVER_ARROW+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),_.createElement("path",{className:yK.POPOVER_ARROW+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};S5.displayName="".concat(CM,".PopoverArrow");var m_=C("gztBd"),S9=(0,m_.__assign)((0,m_.__assign)({},y1),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"}),S7="click",_e="hover",_t="hover-target",_n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.popoverRef=mM(t,"popoverElement",t.props.popoverRef),t.targetRef=_.createRef(),t.transitionContainerElement=_.createRef(),t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return void 0!==t.props.isOpen},t.isArrowEnabled=function(){var e,n;return!t.props.minimal&&(null==(n=null==(e=t.props.modifiers)?void 0:e.arrow)?void 0:n.enabled)!==!1},t.isHoverInteractionKind=function(){return t.props.interactionKind===_e||t.props.interactionKind===_t},t.reposition=function(){var e;return null==(e=t.popperScheduleUpdate)?void 0:e.call(t)},t.renderTarget=function(e){var n,r,i,a,o,l=e.ref,s=t.props,c=s.children,u=s.className,d=s.disabled,h=s.fill,f=s.openOnTargetFocus,p=s.renderTarget,g=t.state.isOpen,m=t.isControlled(),b=t.isHoverInteractionKind(),v=t.props.targetTagName;h&&(v="div");var x=mA(l,t.targetRef),w=b?{onBlur:t.handleTargetBlur,onContextMenu:t.handleTargetContextMenu,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick,onKeyDown:t.handleKeyDown},C=!t.getIsContentEmpty()&&!d&&f&&b?0:void 0,k=(0,m_.__assign)({className:y(mE)(u,yK.POPOVER_TARGET,((n={})[yK.POPOVER_OPEN]=g,n[yK.ACTIVE]=g&&!m&&!b,n)),ref:x},w),S={"aria-expanded":b?void 0:g,"aria-haspopup":t.props.interactionKind===_t?void 0:null!=(i=t.props.popupKind)?i:"menu"},E=((r={})[yK.ACTIVE]=g&&!m&&!b,r[yK.FILL]=h,r);if(void 0!==p)o=p((0,m_.__assign)((0,m_.__assign)((0,m_.__assign)({},k),S),{className:y(mE)(k.className,E),isOpen:g,tabIndex:C}));else{var T=mL.ensureElement(_.Children.toArray(c)[0]);if(void 0===T)return null;var P=_.cloneElement(T,(0,m_.__assign)((0,m_.__assign)({},S),{className:y(mE)(T.props.className,E),disabled:!!(g&&mL.isElementOfType(T,_l))||T.props.disabled,tabIndex:null!=(a=T.props.tabIndex)?a:C}));o=_.createElement(v,(0,m_.__assign)((0,m_.__assign)({},k),t.props.targetProps),P)}return _.createElement(S1,{targetRef:t.targetRef,onResize:t.reposition},o)},t.renderPopover=function(e){var n,r,i,a,o=t.props,l=o.autoFocus,s=o.enforceFocus,c=o.backdropProps,u=o.canEscapeKeyClose,d=o.hasBackdrop,h=o.interactionKind,f=o.usePortal,p=t.state,g=p.isClosingViaEscapeKeypress,m=p.isOpen,b=(n=e.placement,r=t.isArrowEnabled()?e.arrowProps.style:void 0,i=S4(n),void 0===r?S3(i)?"".concat(S8(i)," ").concat(S6(i)):"".concat(S6(i)," ").concat(S8(i)):S3(i)?"".concat(S8(i)," ").concat(parseInt(r.top,10)+15,"px"):"".concat(parseInt(r.left,10)+15,"px ").concat(S8(i)));t.popperScheduleUpdate=e.update;var v={onClick:t.handlePopoverClick,onKeyDown:function(e){return mL.isKeyboardClick(e)&&t.handlePopoverClick(e)}};h!==_e&&(f||h!==_t)||(v.onMouseEnter=t.handleMouseEnter,v.onMouseLeave=t.handleMouseLeave);var x=S4(e.placement),w=y(mE)(yK.POPOVER,((a={})[yK.DARK]=t.props.inheritDarkTheme&&t.state.hasDarkParent,a[yK.MINIMAL]=t.props.minimal,a[yK.POPOVER_CAPTURING_DISMISS]=t.props.captureDismiss,a[yK.POPOVER_MATCH_TARGET_WIDTH]=t.props.matchTargetWidth,a[yK.POPOVER_REFERENCE_HIDDEN]=!0===e.isReferenceHidden,a[yK.POPOVER_POPPER_ESCAPED]=!0===e.hasPopperEscaped,a),"".concat(yK.POPOVER_CONTENT_PLACEMENT,"-").concat(x),t.props.popoverClassName),C=!t.isHoverInteractionKind()&&void 0,k=!t.isHoverInteractionKind()&&(!!g||t.props.shouldReturnFocusOnClose);return _.createElement(SJ,{autoFocus:null!=l?l:C,backdropClassName:yK.POPOVER_BACKDROP,backdropProps:c,canEscapeKeyClose:u,canOutsideClickClose:h===S7,childRef:t.transitionContainerElement,enforceFocus:s,hasBackdrop:d,isOpen:m,lazy:t.props.lazy,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:yK.POPOVER,usePortal:f,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer,portalStopPropagationEvents:t.props.portalStopPropagationEvents,shouldReturnFocusOnClose:k},_.createElement("div",{className:yK.POPOVER_TRANSITION_CONTAINER,ref:mA(e.ref,t.transitionContainerElement),style:e.style},_.createElement(S1,{onResize:t.reposition},_.createElement("div",(0,m_.__assign)({className:w,style:{transformOrigin:b},ref:t.popoverRef},v),t.isArrowEnabled()&&_.createElement(S5,{arrowProps:e.arrowProps,placement:e.placement}),_.createElement("div",{className:yK.POPOVER_CONTENT},t.props.content)))))},t.handleTargetFocus=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null!=e.relatedTarget||t.lostFocusOnSamePage)&&t.handleMouseEnter(e)},t.handleTargetBlur=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null!=e.relatedTarget&&(e.relatedTarget===t.popoverElement||t.isElementInPopover(e.relatedTarget))||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget},t.handleTargetContextMenu=function(e){e.defaultPrevented&&t.setOpenState(!1,e)},t.handleMouseEnter=function(e){t.isMouseInTargetOrPopover=!0,!t.props.usePortal&&t.isElementInPopover(e.target)&&t.props.interactionKind===_t&&!t.props.openOnTargetFocus?t.handleMouseLeave(e):t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay)},t.handleMouseLeave=function(e){t.isMouseInTargetOrPopover=!1,e.persist(),t.setTimeout(function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)})},t.handlePopoverClick=function(e){var n,r,i,a=e.target,o=a.closest(".".concat(yK.POPOVER)),l=a.closest(".".concat(yK.POPOVER)),s=(null!=o?o:l)===t.getPopoverElement(),c=null!=(r=null!=(n=null==o?void 0:o.classList.contains(yK.POPOVER_CAPTURING_DISMISS))?n:null==l?void 0:l.classList.contains(yK.POPOVER_CAPTURING_DISMISS))&&r,u=a.closest(".".concat(yK.POPOVER_DISMISS,", .").concat(yK.POPOVER_DISMISS_OVERRIDE)),d=null!=(i=null==u?void 0:u.classList.contains(yK.POPOVER_DISMISS))&&i,h=null!=a.closest(":disabled, .".concat(yK.DISABLED));d&&!h&&(!c||s)&&t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!=t.targetRef.current&&void 0!==e){var n,r=null!=(n=e.nativeEvent)?n:e,i=r.composed?r.composedPath()[0]:r.target;(!mL.elementIsOrContains(t.targetRef.current,i)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleKeyDown=function(e){mL.isKeyboardClick(e)&&t.handleTargetClick(e)},t.handleTargetClick=function(e){t.state.isOpen&&t.isSimulatedButtonClick(e)||t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState(function(e){return{isOpen:!e.isOpen}}):t.setOpenState(!t.props.isOpen,e))},t.isSimulatedButtonClick=function(e){return!e.isTrusted&&e.target.matches(".".concat(yK.BUTTON))},t}return(0,m_.__extends)(t,e),t.prototype.getPopoverElement=function(){var e;return null==(e=this.popoverElement)?void 0:e.querySelector(".".concat(yK.POPOVER))},t.prototype.getIsOpen=function(e){var t;return!e.disabled&&(null!=(t=e.isOpen)?t:e.defaultIsOpen)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.placement,r=e.position,i=e.positioningStrategy,a=this.state.isOpen;return this.getIsContentEmpty()?(t||!1===a||mL.isNodeEnv("production")||console.warn(ys),this.renderTarget({ref:_r})):_.createElement(kt,null,_.createElement(Sd,null,this.renderTarget),_.createElement(Sc,{innerRef:this.popoverRef,placement:null!=n?n:function(e){switch(e){case S9.TOP_LEFT:return"top-start";case S9.TOP:return"top";case S9.TOP_RIGHT:return"top-end";case S9.RIGHT_TOP:return"right-start";case S9.RIGHT:return"right";case S9.RIGHT_BOTTOM:return"right-end";case S9.BOTTOM_RIGHT:return"bottom-end";case S9.BOTTOM:return"bottom";case S9.BOTTOM_LEFT:return"bottom-start";case S9.LEFT_BOTTOM:return"left-end";case S9.LEFT:return"left";case S9.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:var t=e;throw Error("Unexpected position: "+t)}}(void 0===r?"auto":r),strategy:i,modifiers:this.getPopperModifiers()},this.renderPopover))},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn(yd),e.hasBackdrop&&!e.usePortal&&console.warn(yc),e.hasBackdrop&&e.interactionKind!==S7&&console.warn(ya),void 0!==e.placement&&void 0!==e.position&&console.warn(yu);var t=_.Children.count(e.children),n=void 0!==e.renderTarget,r=void 0!==e.targetProps;0!==t||n||console.warn(yi),t>1&&console.warn(yo),t>0&&n&&console.warn(yl),n&&r&&console.warn(yh)},t.prototype.getPopperModifiers=function(){var e,t,n,r,i=this.props,a=i.matchTargetWidth,o=i.modifiers,l=i.modifiersCustom,s=[(0,m_.__assign)({enabled:this.isArrowEnabled(),name:"arrow"},null==o?void 0:o.arrow),(0,m_.__assign)((0,m_.__assign)({name:"computeStyles"},null==o?void 0:o.computeStyles),{options:(0,m_.__assign)({adaptive:!0,gpuAcceleration:!1},null==(e=null==o?void 0:o.computeStyles)?void 0:e.options)}),(0,m_.__assign)((0,m_.__assign)({enabled:this.isArrowEnabled(),name:"offset"},null==o?void 0:o.offset),{options:(0,m_.__assign)({offset:[0,15]},null==(t=null==o?void 0:o.offset)?void 0:t.options)}),(0,m_.__assign)((0,m_.__assign)({name:"flip"},null==o?void 0:o.flip),{options:(0,m_.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null==(n=null==o?void 0:o.flip)?void 0:n.options)}),(0,m_.__assign)((0,m_.__assign)({name:"preventOverflow"},null==o?void 0:o.preventOverflow),{options:(0,m_.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null==(r=null==o?void 0:o.preventOverflow)?void 0:r.options)})];return a&&s.push(S2),void 0!==l&&s.push.apply(s,l),s},t.prototype.setOpenState=function(e,t,n){var r,i,a,o,l,s,c=this;null==(i=this.cancelOpenTimeout)||i.call(this),void 0!==n&&n>0?(null==t||t.persist(),this.cancelOpenTimeout=this.setTimeout(function(){c.setOpenState(e,t)},n)):(null==this.props.isOpen?this.setState({isOpen:e}):null==(o=(a=this.props).onInteraction)||o.call(a,e,t),e||(null==(s=(l=this.props).onClose)||s.call(l,t),this.setState({isClosingViaEscapeKeypress:(r=null==t?void 0:t.nativeEvent)instanceof KeyboardEvent&&"Escape"===r.key})))},t.prototype.updateDarkParent=function(){var e;if(this.props.usePortal&&this.state.isOpen){var t=(null==(e=this.targetRef.current)?void 0:e.closest(".".concat(yK.DARK)))!=null;this.setState({hasDarkParent:t})}},t.prototype.isElementInPopover=function(e){var t,n;return null!=(n=null==(t=this.getPopoverElement())?void 0:t.contains(e))&&n},t.prototype.getIsContentEmpty=function(){var e=this.props.content;return null==e||mL.isEmptyString(e)},t.displayName="".concat(CM,".Popover"),t.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:S7,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},t}(C9);function _r(){}var _=C("8NFma"),_i=_.createContext([{},function(){return null}]),_a=function(e,t){switch(t.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return e}},_o=function(e){var t=e.children,n=e.forceDisable,r=_.useReducer(_a,{}),i=r[0],a=r[1],o=_.useMemo(function(){return[i,a]},[i,a]);return _.useEffect(function(){n?a({type:"FORCE_DISABLED_STATE"}):a({type:"RESET_DISABLED_STATE"})},[n]),_.createElement(_i.Provider,{value:o},"function"==typeof t?t(i):t)},_l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=_.createRef(),t.renderPopover=function(e){var n,r,i=t.props,a=i.children,o=i.compact,l=i.disabled,s=i.intent,c=i.popoverClassName,u=(0,m_.__rest)(i,["children","compact","disabled","intent","popoverClassName"]),d=y(mE)(Cn,CE(s),c,((n={})[y6]=o,n));return _.createElement(_n,(0,m_.__assign)({modifiers:{arrow:{enabled:!t.props.minimal},offset:{options:{offset:[0,11]}}}},u,{autoFocus:!1,canEscapeKeyClose:!1,disabled:null!=(r=e.forceDisabled)?r:l,enforceFocus:!1,lazy:!0,popoverClassName:d,portalContainer:t.props.portalContainer,ref:t.popoverRef}),a)},t}return(0,m_.__extends)(t,e),t.prototype.render=function(){var e=this;return _.createElement(_i.Consumer,null,function(t){var n=t[0];return _.createElement(_o,(0,m_.__assign)({},n),e.renderPopover)})},t.prototype.reposition=function(){var e;null==(e=this.popoverRef.current)||e.reposition()},t.displayName="".concat(CM,".Tooltip"),t.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},t}(C9),m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_s=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-down",ref:t},e),_.createElement("path",{d:n?"M320 280C314.4000000000001 280 309.4000000000001 277.8 305.8 274.2L200 168.2L94.2 274.2C90.6 277.8 85.6 280 80 280C69 280 60 271 60 260C60 254.4 62.2 249.4 65.8 245.8L185.8 125.8C189.4 122.2 194.4 120 200 120S210.6 122.2 214.2 125.8L334.2000000000001 245.8C337.8 249.4 340 254.4 340 260C340 271 331 280 320 280z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L160 148.2L94.2 214.2C90.6 217.8 85.6 220 80 220C69 220 60 211 60 200C60 194.4 62.2 189.4 65.8 185.8L145.8 105.8C149.4 102.2 154.4 100 160 100S170.6 102.2 174.2 105.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_s.defaultProps={size:Cq.IconSize.STANDARD},_s.displayName="Blueprint5.Icon.ChevronDown";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_c=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-left",ref:t},e),_.createElement("path",{d:n?"M168.2 200L274 305.8C277.8 309.4 280 314.4 280 320C280 331 271 340 260 340C254.4 340 249.4 337.8 245.8 334.2L125.8 214.2C122.2 210.6 120 205.6 120 200C120 194.4 122.2 189.4 125.8 185.8L245.8 65.8C249.4 62.2 254.4 60 260 60C271 60 280 69 280 80C280 85.6 277.8 90.6 274.2000000000001 94.2000000000001L168.2 200z":"M148.2 160L214 225.8C217.8 229.4 220 234.4 220 240C220 251 211 260 200 260C194.4 260 189.4 257.8 185.8 254.2L105.8 174.2C102.2 170.6 100 165.6 100 160C100 154.4 102.2 149.4 105.8 145.8L185.8 65.8C189.4 62.2 194.4 60 200 60C211 60 220 69 220 80C220 85.6 217.8 90.6 214.2 94.2L148.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_c.defaultProps={size:Cq.IconSize.STANDARD},_c.displayName="Blueprint5.Icon.ChevronLeft";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_u=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-right",ref:t},e),_.createElement("path",{d:n?"M274.2000000000001 214.2L154.2 334.2000000000001C150.6 337.8 145.6 340 140 340C129 340 120 331 120 320C120 314.4 122.2 309.4 125.8 305.8L231.8 200L126 94.2000000000001C122.2 90.6 120 85.6 120 80C120 69 129 60 140 60C145.6 60 150.6 62.2 154.2 65.8L274.2000000000001 185.8C277.8 189.4 280 194.4 280 200C280 205.6 277.8 210.6 274.2000000000001 214.2z":"M214.2 174.2L134.2 254.2C130.6 257.8 125.6 260 120 260C109 260 100 251 100 240C100 234.4 102.2 229.4 105.8 225.8L171.8 160L106 94.2C102.2 90.6 100 85.6 100 80C100 69 109 60 120 60C125.6 60 130.6 62.2 134.2 65.8L214.2 145.8C217.8 149.4 220 154.4 220 160C220 165.6 217.8 170.6 214.2 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_u.defaultProps={size:Cq.IconSize.STANDARD},_u.displayName="Blueprint5.Icon.ChevronRight";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_d=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-up",ref:t},e),_.createElement("path",{d:n?"M334.2000000000001 154.2L214.2 274.2000000000001C210.6 277.8 205.6 280 200 280S189.4 277.8 185.8 274.2L65.8 154.2C62.2 150.6 60 145.6 60 140C60 129 69 120 80 120C85.6 120 90.6 122.2 94.2 125.8L200 231.8L305.8 126C309.4000000000001 122.2 314.4000000000001 120 320 120C331 120 340 129 340 140C340 145.6 337.8 150.6 334.2000000000001 154.2z":"M254.2 134.2L174.2 214.2C170.6 217.8 165.6 220 160 220S149.4 217.8 145.8 214.2L65.8 134.2C62.2 130.6 60 125.6 60 120C60 109 69 100 80 100C85.6 100 90.6 102.2 94.2 105.8L160 171.8L225.8 106C229.4 102.2 234.4 100 240 100C251 100 260 109 260 120C260 125.6 257.8 130.6 254.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_d.defaultProps={size:Cq.IconSize.STANDARD},_d.displayName="Blueprint5.Icon.ChevronUp";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_h=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"duplicate",ref:t},e),_.createElement("path",{d:n?"M300 320H20C9 320 0 311 0 300V20C0 9 9 0 20 0H300C311 0 320 9 320 20V300C320 311 311 320 300 320zM280 40H40V280H280V40zM380 400H100C89 400 80 391 80 380V340H120V360H360V120H340V80H380C391 80 400 89 400 100V380C400 391 391 400 380 400z":"M300 320H100C89 320 80 311 80 300V260H120V280H280V140H260V100H300C311 100 320 109 320 120V300C320 311 311 320 300 320zM220 240H20C9 240 0 231 0 220V20C0 9 9 0 20 0H220C231 0 240 9 240 20V220C240 231 231 240 220 240zM200 40H40V200H200V40z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_h.defaultProps={size:Cq.IconSize.STANDARD},_h.displayName="Blueprint5.Icon.Duplicate";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_f=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"insert",ref:t},e),_.createElement("path",{d:n?"M380 400H20C8 400 0 392 0 380V20C0 10 8 0 20 0H380C390 0 400 10 400 20V380C400 392 390 400 380 400L380 400zM360 40H40V360H360V40L360 40zM100 180H180V100C180 88 188 80 200 80S220 88 220 100V180H300C312 180 320 188 320 200S312 220 300 220H220V300C220 312 212 320 200 320S180 312 180 300V220H100C88 220 80 212 80 200S88 180 100 180L100 180z":"M100 140H140V100C140 88 148 80 160 80S180 88 180 100V140H220C232 140 240 148 240 160S232 180 220 180H180V220C180 232 172 240 160 240S140 232 140 220V180H100C88 180 80 172 80 160S88 140 100 140L100 140zM300 320H20C8 320 0 312 0 300V20C0 8 8 0 20 0H300C312 0 320 8 320 20V300C320 312 312 320 300 320L300 320zM280 40H40V280H280V40L280 40z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_f.defaultProps={size:Cq.IconSize.STANDARD},_f.displayName="Blueprint5.Icon.Insert";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_p=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"trash",ref:t},e),_.createElement("path",{d:n?"M340 380H240C240 391 231 400 220 400H180C169 400 160 391 160 380H60C49 380 40 371 40 360V340H360V360C360 371 351 380 340 380zM350 320H50C44.4 320 40 315.6 40 310C40 304.4 44.4 300 50 300H60V20C60 9 69 0 80 0H320C331 0 340 9 340 20V300H350C355.6 300 360 304.4 360 310C360 315.6 355.6 320 350 320zM140 80C140 69 131 60 120 60S100 69 100 80V240C100 251 109 260 120 260S140 251 140 240V80zM220 80C220 69 211 60 200 60S180 69 180 80V240C180 251 189 260 200 260S220 251 220 240V80zM300 80C300 69 291 60 280 60S260 69 260 80V240C260 251 269 260 280 260S300 251 300 240V80z":"M289.8 240.2H29.8C24.2 240.2 19.8 235.8 19.8 230.2S24.2 220.2 29.8 220.2H39.8V20.2C39.8 9.2 48.8 0.2 59.8 0.2H259.8C270.8 0.2 279.8 9.2 279.8 20.2V220.2H289.8C295.4 220.2 299.8 224.6 299.8 230.2S295.4 240.2 289.8 240.2zM119.8 60.2C119.8 49.2 110.8 40.2 99.8 40.2S79.8 49.2 79.8 60.2V180.2C79.8 191.2 88.8 200.2 99.8 200.2S119.8 191.2 119.8 180.2V60.2zM179.8 60.2C179.8 49.2 170.8 40.2 159.8 40.2S139.8 49.2 139.8 60.2V180.2C139.8 191.2 148.8 200.2 159.8 200.2S179.8 191.2 179.8 180.2V60.2zM239.8 60.2C239.8 49.2 230.8 40.2 219.8 40.2S199.8 49.2 199.8 60.2V180.2C199.8 191.2 208.8 200.2 219.8 200.2S239.8 191.2 239.8 180.2V60.2zM279.8 300.2H199.8C199.8 311.2 190.8 320.2 179.8 320.2H139.8C128.8 320.2 119.8 311.2 119.8 300.2H39.8C28.8 300.2 19.8 291.2 19.8 280.2V260.2H299.8V280.2C299.8 291.2 290.8 300.2 279.8 300.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_p.defaultProps={size:Cq.IconSize.STANDARD},_p.displayName="Blueprint5.Icon.Trash";let _g=F(({store:e,page:t,xPadding:n,yPadding:r,layout:i="vertical"})=>{let a=e.pages.length>1,o=e.pages.indexOf(t),l="horizontal"===i,s=l?_c:_d,c=l?_u:_s,u=l?mb("workspace.moveLeft"):mb("workspace.moveUp"),d=l?mb("workspace.moveRight"):mb("workspace.moveDown");return"selection"!==e.tool||e.role===sJ.VIEWER?null:(0,S.jsxs)("div",{style:{position:"absolute",top:r-40+"px",right:n+"px"},children:[a&&(0,S.jsx)(_l,{content:u,disabled:0===o,children:(0,S.jsx)(C8,{icon:(0,S.jsx)(s,{}),minimal:!0,disabled:0===o,onClick:()=>{t.setZIndex(o-1)},"aria-label":u})}),a&&(0,S.jsx)(_l,{content:d,disabled:o===e.pages.length-1,children:(0,S.jsx)(C8,{icon:(0,S.jsx)(c,{}),"aria-label":d,minimal:!0,disabled:o===e.pages.length-1,onClick:()=>{let n=e.pages.indexOf(t);t.setZIndex(n+1)}})}),(0,S.jsx)(_l,{content:mb("workspace.duplicatePage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_h,{}),minimal:!0,"aria-label":mb("workspace.duplicatePage"),onClick:()=>{t.clone()}})}),a&&(0,S.jsx)(_l,{content:mb("workspace.removePage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_p,{}),"aria-label":mb("workspace.removePage"),minimal:!0,onClick:()=>{e.deletePages([t.id])}})}),(0,S.jsx)(_l,{content:mb("workspace.addPage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_f,{}),minimal:!0,"aria-label":mb("workspace.addPage"),onClick:()=>{let n=e.addPage({bleed:e.activePage?.bleed||0,width:e.activePage?.width||"auto",height:e.activePage?.height||"auto"}),r=e.pages.indexOf(t);n.setZIndex(r+1)}})})]})});var _=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),_m=function(e){var t=e.className,n=(0,m_.__rest)(e,["className"]);return _.createElement("div",(0,m_.__assign)({className:y(mE)(yK.NAVBAR_DIVIDER,t)},n))};_m.displayName="".concat(CM,".NavbarDivider");var m_=C("gztBd"),_=C("8NFma"),_y=function(e){var t=e.align,n=void 0===t?yZ:t,r=e.children,i=e.className,a=(0,m_.__rest)(e,["align","children","className"]),o=y(mE)(yK.NAVBAR_GROUP,yK.alignmentClass(n),i);return CQ(function(){"center"===n&&console.warn(m8)},[n]),_.createElement("div",(0,m_.__assign)({className:o},a),r)};_y.displayName="".concat(CM,".NavbarGroup");var m_=C("gztBd"),_=C("8NFma"),_b=function(e){var t=e.children,n=e.className,r=(0,m_.__rest)(e,["children","className"]);return _.createElement("div",(0,m_.__assign)({className:y(mE)(yK.NAVBAR_HEADING,n)},r),t)};_b.displayName="".concat(CM,".NavbarHeading");var _v=function(e){var t,n=e.children,r=e.className,i=e.fixedToTop,a=(0,m_.__rest)(e,["children","className","fixedToTop"]),o=y(mE)(yK.NAVBAR,((t={})[yK.FIXED_TOP]=i,t),r);return _.createElement("div",(0,m_.__assign)({className:o},a),n)};_v.displayName="".concat(CM,".Navbar"),_v.Divider=_m,_v.Group=_y,_v.Heading=_b;var _=C("8NFma"),_x="start",m_=C("gztBd"),_=C("8NFma"),_w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={chopSize:t.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!1,visible:t.props.items},t.spacer=null,t.resize=function(){t.repartition()},t}return(0,m_.__extends)(t,e),t.ofType=function(){return t},t.prototype.componentDidMount=function(){this.repartition()},t.prototype.shouldComponentUpdate=function(e,t){return this.props!==e||!(this.state!==t&&mD(this.state,t))},t.prototype.componentDidUpdate=function(e,t){e.observeParents!==this.props.observeParents&&console.warn(yr),(e.collapseFrom!==this.props.collapseFrom||e.items!==this.props.items||e.minVisibleItems!==this.props.minVisibleItems||e.overflowRenderer!==this.props.overflowRenderer||e.alwaysRenderOverflow!==this.props.alwaysRenderOverflow||e.visibleItemRenderer!==this.props.visibleItemRenderer)&&this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!0,visible:this.props.items});var n,r,i=this.state,a=i.repartitioning,o=i.overflow,l=i.lastOverflowCount;!1===a&&!0===t.repartitioning?o.length!==l&&(null==(r=(n=this.props).onOverflow)||r.call(n,o.slice())):mD(t,this.state)||this.repartition()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.collapseFrom,i=t.observeParents,a=t.style,o=t.tagName,l=t.visibleItemRenderer,s=this.maybeRenderOverflow(),c=_.createElement(void 0===o?"div":o,{className:y(mE)(yK.OVERFLOW_LIST,n),style:a},r===_x?s:null,this.state.visible.map(l),"end"===r?s:null,_.createElement("div",{className:yK.OVERFLOW_LIST_SPACER,ref:function(t){return e.spacer=t}}));return _.createElement(S1,{onResize:this.resize,observeParents:i},c)},t.prototype.maybeRenderOverflow=function(){var e=this.state.overflow;return 0!==e.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(e.slice()):null},t.prototype.repartition=function(){var e,t=this;if(null!=this.spacer){var n=1===this.state.lastChopSize,r=null!=(e=this.props.minVisibleItems)?e:0,i=this.spacer.offsetWidth<.9&&this.state.visible.length>r,a=(this.spacer.offsetWidth>=1||this.state.visible.length<r)&&this.state.overflow.length>0&&!n;i||a?this.setState(function(e){if("end"===t.props.collapseFrom){var n,r,a=_k(e.visible,e.overflow,t.state.chopSize*(i?1:-1));n=a[0],r=a[1]}else{var a=_k(e.overflow,e.visible,t.state.chopSize*(i?-1:1));r=a[0],n=a[1]}return{chopSize:_C(e.chopSize),lastChopSize:e.chopSize,lastOverflowCount:t.isFirstPartitionCycle(e.chopSize)?e.overflow.length:e.lastOverflowCount,overflow:r,repartitioning:!0,visible:n}}):this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,repartitioning:!1})}},t.prototype.defaultChopSize=function(){return _C(this.props.items.length)},t.prototype.isFirstPartitionCycle=function(e){return e===this.defaultChopSize()},t.displayName="".concat(CM,".OverflowList"),t.defaultProps={alwaysRenderOverflow:!1,collapseFrom:_x,minVisibleItems:0},t}(_.Component);function _C(e){return Math.ceil(e/2)}function _k(e,t,n){var r=e.concat(t),i=e.length-n;if(i<=0)return[[],r];if(i>=r.length)return[r,[]];var a=r.length-i;return[r.slice(0,-a),r.slice(-a)]}var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_S=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"more",ref:t},e),_.createElement("path",{d:n?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_S.defaultProps={size:Cq.IconSize.STANDARD},_S.displayName="Blueprint5.Icon.More";let __=cm("div",y(_).forwardRef)`
415
+ For simpler debugging here is the log of the parent element:`,mC=({store:e})=>(0,S.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"},children:[(0,S.jsx)("p",{children:mb("workspace.noPages")}),(0,S.jsx)("button",{onClick:()=>{e.addPage()},children:mb("workspace.addPage")})]}),mk=({width:e,height:t,xPadding:n,yPadding:r,backgroundColor:i})=>(0,S.jsx)("div",{style:{width:e+"px",height:t+"px",backgroundColor:i,paddingLeft:n+"px",paddingRight:n+"px",paddingTop:r+"px",paddingBottom:r+"px",flexShrink:0},children:(0,S.jsx)("div",{style:{width:" 100%",height:"100%",backgroundColor:"white"}})}),mS=F(({store:e,layout:t="vertical",pageControlsEnabled:n,backgroundColor:r,transparencyBackgroundColor:i,pageBorderColor:a,activePageBorderColor:o,bleedColor:l,snapGuideStroke:s,snapGuideStrokeWidth:c,snapGuideDash:u,selectionRectFill:d,selectionRectStroke:h,selectionRectStrokeWidth:f,transformLabelFill:p,transformLabelTextFill:g,cropOverlayFill:m,transformerStyle:b,innerImageCropTransformerStyle:v,outerImageCropTransformerStyle:x,highlighterStyle:w,mediaLoadingStyle:C,mediaErrorStyle:k,textOverflowIndicatorStyle:E,distanceGuideStroke:T,distanceLabelFill:P,distanceLabelTextFill:O,rulerBackgroundColor:I,rulerTextColor:A,rulerBorderColor:R,rulerBorderSize:M,rulerTickColor:L,rulerTickSize:N,components:j,onKeyDown:D,paddingX:z,paddingY:B,pageGap:F,altCloneEnabled:H=!0,groupSelectionMode:V="drill",visiblePagesOffset:U,renderOnlyActivePage:W,scrollToPageThreshold:q=.5,tooltipSafeArea:$})=>{var G,K;let X,Y,Z,Q,J,ee,et,en,er,ei,ea,eo,el,es,ec,eu="horizontal"===t,ed=z??20,eh=B??55,[ef,ep]=y(_).useState({width:100,height:100}),eg=y(_).useRef(ef),em=y(_).useRef(null),ey=y(_).useRef(null),eb=y(_).useRef(0),ev=e.bleedVisible?Math.max(0,...e.pages.map(e=>e.bleed)):0,ex=Math.max(...e.pages.map(e=>e.computedWidth)),ew=Math.max(...e.pages.map(e=>e.computedHeight)),eC=e.activePage?.computedHeight||0,ek=ex+2*ev,eS=(W?eC:ew)+2*ev,e_=async({skipTimeout:t}={skipTimeout:!1})=>{if(t||await new Promise(e=>setTimeout(e,50)),null===em.current)return;let n=em.current.getBoundingClientRect();(0===n.width||0===n.height)&&(console.warn(mw),console.log(em.current));let r=ey.current.clientWidth||n.width,i={width:r,height:n.height};(eg.current.width!==i.width||eg.current.height!==i.height)&&(ep(i),eg.current=i);let a=(r-2*ed)/ek,o=e.pages.length>1?3.1:2,l=(n.height-eh*o)/eS,s=(r-ed*(e.pages.length>1?3.1:2))/ek,c=(n.height-2*eh)/eS,u=e.pages.length?Math.max(Math.min(eu?s:a,eu?c:l),.01):1;e.scaleToFit!==u&&(e.setScale(u),e._setScaleToFit(u))};y(_).useLayoutEffect(()=>{e_({skipTimeout:!0})},[]),y(_).useEffect(()=>{e_()},[ek,eS,B,z]),y(_).useLayoutEffect(()=>{e_({skipTimeout:!0})},[e.openedSidePanel]),y(_).useEffect(()=>{e.__()},[]),y(_).useEffect(()=>{let e=em.current;if(window.ResizeObserver){let t=new ResizeObserver(()=>{e_({skipTimeout:!0})});return t.observe(e),()=>t.unobserve(e)}{let e=setInterval(()=>{e_({skipTimeout:!0})},100);return()=>clearInterval(e)}},[ek,eS]);let eE=W?1:e.pages.length;if(eu){let t=ek*e.scale*eE;X=Math.max(ed,(ef.width-t)/eE/2),Y=Math.max(eh,(ef.height-eS*e.scale)/2)}else{X=Math.max(ed,(ef.width-ek*e.scale)/2);let t=eS*e.scale*eE;Y=Math.max(eh,(ef.height-t)/eE/2)}Number.isNaN(X)&&(X=ed),Number.isNaN(Y)&&(Y=eh),y(_).useEffect(()=>{let t=t=>{(D||function(e,t){if(t.role===sJ.VIEWER)return;let n=document.activeElement,r=document.querySelector(".polotno-workspace-container"),i=n?.tagName==="INPUT"||n?.tagName==="TEXTAREA"||!!n?.isContentEditable,a=!!(n&&r?.contains(n)),o=function(e){if(1!==e.selectedElements.length)return null;let t=e.selectedElements[0];return"table"!==t.type?null:t}(t);if(!(i&&!a)&&o&&function(e,t,n){let r=t._focusedCellIds.length>0,i=!!t._editingCellId;if(!r&&!i)return!1;if(i){if("Escape"===e.key)return e.preventDefault(),t.exitCellEdit(),!0;if("Tab"===e.key){e.preventDefault();let n=t.editingCell;if(t.exitCellEdit(),n)if(e.shiftKey){let e=n.col-1,r=n.row;e<0&&(r-=1,e=t.cols-1),r<0&&(r=t.rows-1,e=t.cols-1),mf(t,r,e)}else{let e=n.col+1,r=n.row;e>=t.cols&&(r+=1,e=0),r>=t.rows&&(r=0,e=0),mf(t,r,e)}return!0}if(e.metaKey||e.ctrlKey){let n=t.editingCell;if(n){if("b"===e.key)return e.preventDefault(),n.set({fontWeight:"bold"===n.fontWeight?"normal":"bold"}),!0;if("i"===e.key)return e.preventDefault(),n.set({fontStyle:"italic"===n.fontStyle?"normal":"italic"}),!0;if("u"===e.key){e.preventDefault();let t=n.textDecoration.split(" ").filter(Boolean),r=t.includes("underline");n.set({textDecoration:r?t.filter(e=>"underline"!==e).join(" "):[...t,"underline"].join(" ")})}}}return!0}if("Escape"===e.key)return e.preventDefault(),t.clearCellFocus(),!0;let a=t.focusedCells[0];if(!a)return!1;let o=a.row,l=a.col;if("Enter"===e.key)return e.preventDefault(),t.enterCellEdit(a.id),!0;if("Tab"===e.key){if(e.preventDefault(),e.shiftKey){let e=l-1,n=o;e<0&&(n-=1,e=t.cols-1),n<0&&(n=t.rows-1,e=t.cols-1),mh(t,n,e)}else{let e=l+1,n=o;e>=t.cols&&(n+=1,e=0),n>=t.rows&&(n=0,e=0),mh(t,n,e)}return!0}if("ArrowRight"===e.key||"ArrowLeft"===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){if(e.preventDefault(),e.shiftKey){let n=function(e){let t=e.cells.find(t=>t.id===e._anchorCellId);if(!t)return null;let n=e.focusedCells;if(n.length<=1)return{row:t.row,col:t.col};let r=1/0,i=-1,a=1/0,o=-1;for(let e of n)e.row<r&&(r=e.row),e.row>i&&(i=e.row),e.col<a&&(a=e.col),e.col>o&&(o=e.col);return{row:t.row===r?i:r,col:t.col===a?o:a}}(t)||{row:o,col:l},r=n.row,i=n.col;"ArrowRight"===e.key&&(i=Math.min(n.col+1,t.cols-1)),"ArrowLeft"===e.key&&(i=Math.max(n.col-1,0)),"ArrowDown"===e.key&&(r=Math.min(n.row+1,t.rows-1)),"ArrowUp"===e.key&&(r=Math.max(n.row-1,0)),t.focusCellRange(r,i)}else"ArrowRight"===e.key&&mh(t,o,Math.min(l+1,t.cols-1)),"ArrowLeft"===e.key&&mh(t,o,Math.max(l-1,0)),"ArrowDown"===e.key&&mh(t,Math.min(o+1,t.rows-1),l),"ArrowUp"===e.key&&mh(t,Math.max(o-1,0),l);return!0}let s=e.ctrlKey||e.metaKey;if(!s&&!e.shiftKey&&!e.altKey&&("Delete"===e.key||"Backspace"===e.key))return e.preventDefault(),t.focusedCells.forEach(e=>{e.set({text:""})}),!0;if(s&&e.shiftKey&&!e.altKey&&"Equal"===e.code){e.preventDefault();let r=t.getFocusedCellRange(),i=r?r.maxRow+1:o+1;return n.history.transaction(()=>{t.addRow(i)}),!0}if(s&&e.shiftKey&&e.altKey&&"Equal"===e.code){e.preventDefault();let r=t.getFocusedCellRange(),i=r?r.maxCol+1:l+1;return n.history.transaction(()=>{t.addColumn(i)}),!0}if(s&&!e.shiftKey&&"Backspace"===e.code){let r=t.getFocusedCellRange();if(r&&0===r.minCol&&r.maxCol===t.cols-1&&t.rows>1)return e.preventDefault(),n.history.transaction(()=>{t.removeRowRange(r.minRow,r.maxRow)}),!0}if(s&&e.shiftKey&&"Backspace"===e.code){let r=t.getFocusedCellRange();if(r&&0===r.minRow&&r.maxRow===t.rows-1&&t.cols>1)return e.preventDefault(),n.history.transaction(()=>{t.removeColumnRange(r.minCol,r.maxCol)}),!0}if(s&&"KeyC"===e.code){e.preventDefault();let n=t.focusedCells.map(e=>aa(e.text));return navigator.clipboard.writeText(n.join("\n")),!0}return s&&"KeyV"===e.code?(e.preventDefault(),navigator.clipboard.readText().then(e=>{let n=t.focusedCells[0];n&&n.set({text:e})}),!0):!!s&&"KeyA"===e.code&&(e.preventDefault(),t.cells.forEach(e=>{t.focusCell(e.id,!0)}),!0)}(e,o,t)||i)return;let l=document.activeElement===r||a;if(!l){let e=window.getSelection();if(e&&e.toString().length>0)return}if("Alt"===e.key){(l||t.distanceGuidesVisible||r&&r.matches(":hover"))&&e.preventDefault();return}let s=t.selectedElements.filter(e=>e.removable).map(e=>e.id);(46===e.keyCode||8===e.keyCode)&&t.deleteElements(s);let c=e.ctrlKey||e.metaKey,u=e.shiftKey,d=e.altKey;if("Escape"===e.key){e.preventDefault(),"draw"===t.tool?t.setTool("selection"):t.selectElements([]);return}if(c&&!u&&("z"===e.key.toLowerCase()||"y"===e.key.toLowerCase())&&(e.preventDefault(),t.history.undo()),c&&u&&("z"===e.key.toLowerCase()||"y"===e.key.toLowerCase())&&(e.preventDefault(),t.history.redo()),c&&"KeyA"===e.code){e.preventDefault();let n=t.activePage?.children.filter(e=>e.selectable),r=n?.map(e=>e.id)||[];t.selectElements(r)}if(c&&"KeyC"===e.code&&(e.preventDefault(),0!==t.selectedElements.length&&mt(t.selectedElements.map(e=>e.toJSON()),t.activePage?.id)),c&&"KeyX"===e.code){let n;e.preventDefault(),mt(t.selectedElements.map(e=>e.toJSON()),t.activePage?.id),n=t.selectedElements.filter(e=>e.removable).map(e=>e.id),t.deleteElements(n)}if(c&&"KeyV"===e.code&&(e.preventDefault(),t.history.transaction(()=>{let e=0,n=0,{data:r,pageId:i}=(()=>{try{let e=localStorage.getItem(me),t=localStorage.getItem(me+"_page");if(e)return{data:JSON.parse(e),pageId:t}}catch(e){}return g7})();if(i===t.activePage?.id)e=t.width/20,n=t.height/20;else{let i=[];oG({children:r},e=>{"group"!==e.type&&i.push(e)});let a=ou(i);a.maxX>t.width&&(e=-a.minX),a.maxY>t.height&&(n=-a.minY)}let a=[];oG({children:r},t=>{delete t.id,"group"!==t.type&&(t.x+=e,t.y+=n)}),r.forEach(e=>{let n=t.activePage?.addElement(e);n&&a.push(n.id)}),mt(r,t.activePage?.id),t.selectElements(a)})),"ArrowDown"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({y:e.y+n})})}if("ArrowUp"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({y:e.y-n})})}if("ArrowLeft"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({x:e.x-n})})}if("ArrowRight"===e.code){e.preventDefault();let n=e.shiftKey?10:1;t.selectedShapes.forEach(e=>{e.draggable&&e.set({x:e.x+n})})}if(c&&"KeyG"===e.code){e.preventDefault();let n=t.selectedElements[0];n&&"group"===n.type?t.ungroupElements([n.id]):t.groupElements(t.selectedElements.map(e=>e.id))}if(c&&"KeyD"===e.code&&(e.preventDefault(),mn(t.selectedElements,t)),"KeyT"===e.code&&!c){e.preventDefault();let n=t.width/2,r=t.width/2-n/2,i=t.height/2-15,a=t.width+t.height;t.activePage?.addElement({type:"text",x:r,y:i,width:n,fontSize:a/2160*30,text:"Sample Text",fontFamily:"Roboto"})}if("KeyR"===e.code&&!c){e.preventDefault();let n={type:"figure",x:t.width/4,y:t.height/4,width:300,height:300,fill:md,stroke:"#0c0c0c",strokeWidth:0,subType:"rect"};t.activePage?.addElement(n)}if("KeyL"===e.code&&!c){e.preventDefault();let n=(t.activePage?.computedWidth??0)/3,r={type:"line",x:(t.activePage?.computedWidth??0)/2-n/2,y:(t.activePage?.computedHeight??0)/2,width:n,color:md};t.activePage?.addElement(r)}if("KeyO"===e.code&&!c){e.preventDefault(),e.preventDefault();let n={type:"figure",x:t.width/4,y:t.height/4,width:300,height:300,fill:md,stroke:"#0c0c0c",strokeWidth:0,subType:"circle"};t.activePage?.addElement(n)}c&&"Equal"===e.code&&(e.preventDefault(),t.setScale(t.scale+.1)),c&&"Minus"===e.code&&(e.preventDefault(),t.setScale(t.scale-.1)),d&&("KeyA"===e.code&&(e.preventDefault(),ma(t)),"KeyD"===e.code&&(e.preventDefault(),mo(t)),"KeyS"===e.code&&(e.preventDefault(),mc(t)),"KeyW"===e.code&&(e.preventDefault(),ml(t)),"KeyV"===e.code&&(e.preventDefault(),ms(t)),"KeyH"===e.code&&(e.preventDefault(),mu(t))),"BracketRight"===e.code&&(e.preventDefault(),t.selectedElements.forEach(e=>c?e.moveUp():e.moveTop())),"BracketLeft"===e.code&&(e.preventDefault(),t.selectedElements.forEach(e=>c?e.moveDown():e.moveBottom()))})(t,e)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),y(_).useEffect(()=>{let t=t=>{if(t.ctrlKey||t.metaKey){t.preventDefault();let n=Math.max(5,e.scaleToFit),r=Math.min(.1,e.scaleToFit);eu&&ek>0&&Number.isFinite(ek)&&(r=Math.max(r,300/ek)),r=Math.max(r,.01);let i=mv(t.deltaY<0?1.03*e.scale:e.scale/1.03,r,n);e.setScale(i);return}},n=ey.current;return n?.addEventListener("wheel",t),()=>n?.removeEventListener("wheel",t)},[eu,ek,e]),y(_).useEffect(()=>{let t=ey.current;if(!t)return;let n=e=>{2===e.touches.length&&(eb.current=mx(e.touches[0],e.touches[1]))},r=n=>{if(2===n.touches.length&&eb.current>0){n.preventDefault();let r=mx(n.touches[0],n.touches[1]),i=r/eb.current,a=Math.max(5,e.scaleToFit),o=Math.min(.1,e.scaleToFit);eu&&ek>0&&Number.isFinite(ek)&&(o=Math.max(o,300/ek)),o=Math.max(o,.01);let l=e.scale,s=mv(l*i,o,a),c=s/l,u=t.getBoundingClientRect(),d=(n.touches[0].clientX+n.touches[1].clientX)/2-u.left,h=(n.touches[0].clientY+n.touches[1].clientY)/2-u.top,f=t.scrollLeft+d,p=t.scrollTop+h;eM.current=!0,e.setScale(s),t.scrollLeft=f*c-d,t.scrollTop=p*c-h,eb.current=r}},i=()=>{eb.current=0};return t.addEventListener("touchstart",n,{passive:!0}),t.addEventListener("touchmove",r,{passive:!1}),t.addEventListener("touchend",i,{passive:!0}),()=>{t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",r),t.removeEventListener("touchend",i)}},[eu,ek,e]);let eT=void 0!==F,eP=e.pages.map(t=>{if(eu){let n=(t.computedWidth+2*ev)*e.scale;return eT?n+F:n+2*X}{let n=(t.computedHeight+2*ev)*e.scale;return eT?n+F:n+2*Y}}),eO=[],eI=eT?eu?X:Y:0;for(let e=0;e<eP.length;e++)eO.push(eI),eI+=eP[e];let eA=eP.reduce((e,t)=>e+t,0),eR=eT?eA+(eu?2*X:2*Y):eA,eM=y(_).useRef(!1),[,eL]=y(_).useReducer(e=>e+1,0);G=e.scale,Z=y(_).useRef(0),Q=y(_).useRef(0),J=y(_).useRef(null),ee=y(_).useRef(null),et=y(_).useRef(!1),et.current=(en=y(_).useRef(e.pages.length)).current!==e.pages.length,en.current=e.pages.length,y(_).useEffect(()=>{let e=ey.current,t=()=>{Z.current=e.scrollLeft,Q.current=e.scrollTop,J.current=e.scrollWidth,ee.current=e.scrollHeight};return e.addEventListener("scroll",t),t(),()=>{e.removeEventListener("scroll",t)}},[]),y(_).useLayoutEffect(()=>{if(!ey.current||et.current)return;let e=ey.current,t=J.current,n=ee.current;if(null===t||null===n){J.current=e.scrollWidth,ee.current=e.scrollHeight,Z.current=e.scrollLeft,Q.current=e.scrollTop;return}eM.current=!0;let r=e.offsetWidth,i=e.offsetHeight,a=(Z.current+r/2)/t,o=(Q.current+i/2)/n,l=Math.max(0,e.scrollWidth-r),s=Math.max(0,e.scrollHeight-i);e.scrollLeft=mv(a*e.scrollWidth-r/2,0,l),e.scrollTop=mv(o*e.scrollHeight-i/2,0,s),J.current=e.scrollWidth,ee.current=e.scrollHeight,Z.current=e.scrollLeft,Q.current=e.scrollTop},[G,eR]);let{handleScroll:eN}=(er=y(_).useRef(!1),ei=y(_).useRef(null),ea=y(_).useRef(!1),eo="horizontal"===t,y(_).useEffect(()=>{let e=ey.current,t=()=>{if(eM.current)return};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[]),el=e.pages.indexOf(e.activePage),y(_).useLayoutEffect(()=>{if(W||!e.activePage||!ey.current||er.current)return;let t=ey.current,n=e.pages.indexOf(e.activePage),r=eO[n]||0,i=eo?t.scrollLeft:t.scrollTop,a=Math.min(r,Math.max(0,eo?t.scrollWidth-t.clientWidth:t.scrollHeight-t.clientHeight)),o=eP[n]||eP[0]||0,l=()=>{};return(Math.abs(a-i)>o*q||ea.current)&&(ea.current=!0,l=(({element:e,scrollTop:t,scrollLeft:n,duration:r=300,onFinish:i=()=>{}})=>{let a=void 0!==t,o=a?e.scrollTop:e.scrollLeft,l=a?t:n,s=l-o,c=0,u=!1;if(0===r)return a?e.scrollTop=l:e.scrollLeft=l,()=>{};let d=()=>{if(u)return;let t=h(c+=20,o,s,r);a?e.scrollTop=t:e.scrollLeft=t,c<r?setTimeout(d,20):i()},h=(e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t;return d(),()=>{u=!0}})({element:t,...eo?{scrollLeft:a}:{scrollTop:a},onFinish:()=>{ea.current=!1,eL?.()},duration:300*!e.isPlaying})),l},[e.activePage,el,e.isPlaying,W,t,eO,eP]),{handleScroll:t=>{if(W||ea.current)return;er.current=!0,clearTimeout(ei.current),ei.current=setTimeout(()=>{er.current=!1},300);let n=(eo?t.currentTarget.scrollLeft:t.currentTarget.scrollTop)+(eo?ef.width:ef.height)/3,r=0;for(let e=eO.length-1;e>=0;e--)if(n>=eO[e]){r=e;break}let i=e.pages[r];i&&e.activePage!==i&&i.select()}}),ej=ef.width>=ek*e.scale+2*X,eD=ef.height>=eS*e.scale+2*Y,ez=r||"rgba(232, 232, 232, 0.9)",eB=j?.NoPages||mC,eF=eu?ef.width:ef.height,eH=ey.current?eu?ey.current.scrollLeft:ey.current.scrollTop:0,eV=e=>{for(let t=eO.length-1;t>=0;t--)if(e>=eO[t])return t;return 0},eU=Math.max(0,eV(eH)),eW=Math.min(e.pages.length-1,eV(eH+eF)),eq=U??1,e$=Math.max(0,eU-eq),eG=Math.min(e.pages.length-1,eW+eq),eK=(K={cropOverlayFill:m,workspaceBackgroundColor:r,pageBorderColor:a,activePageBorderColor:o,bleedColor:l,transparencyBackgroundColor:i,transformerStyle:b,innerImageCropTransformerStyle:v,outerImageCropTransformerStyle:x,highlighterStyle:w,snapGuideStroke:s,snapGuideStrokeWidth:c,snapGuideDash:u,selectionRectFill:d,selectionRectStroke:h,selectionRectStrokeWidth:f,transformLabelFill:p,transformLabelTextFill:g,distanceGuideStroke:T,distanceLabelFill:P,distanceLabelTextFill:O,mediaLoadingStyle:C,mediaErrorStyle:k,textOverflowIndicatorStyle:E,rulerBackgroundColor:I,rulerTextColor:A,rulerBorderColor:R,rulerBorderSize:M,rulerTickColor:L,rulerTickSize:N},es=y(_).useSyncExternalStore(ir,ii,ii),(ec=y(_).useRef(null)).current&&ec.current.revision===es&&function(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}(ec.current.overrides,K)||(ec.current={overrides:K,revision:es,resolved:r8(K)}),ec.current.resolved);return(0,S.jsx)(r5,{value:eK,children:(0,S.jsx)("div",{ref:em,style:{width:"100%",height:"100%",position:"relative",outline:"none",flex:1,backgroundColor:ez,overflow:"hidden"},tabIndex:0,className:"polotno-workspace-container",children:(0,S.jsxs)("div",{ref:ey,onScroll:eN,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",flexDirection:eu?"row":"column",overflow:"auto",overflowX:eu?"auto":ej?"hidden":"auto",overflowY:eu&&eD?"hidden":"auto",...eT&&{paddingTop:eu?0:Y,paddingBottom:eu?0:Y,paddingLeft:eu?X:0,paddingRight:eu?X:0,boxSizing:"border-box"}},className:"polotno-workspace-inner",children:[e.pages.map((r,i)=>{let a=r===e.activePage;if(W&&!a&&!(r._exportingOrRendering||r._forceMount))return null;let o=a||i>=e$&&i<=eG||r._exportingOrRendering||r._forceMount,l=eu?eP[i]:ek*e.scale+2*X,s=eu?eS*e.scale+2*Y:eP[i];if(!o)return(0,S.jsx)("div",{style:{flexShrink:0},children:(0,S.jsx)(mk,{width:l,height:s,backgroundColor:ez,xPadding:X,yPadding:Y})},r.id);let c=(0,S.jsx)(g0,{page:r,xPadding:X,yPadding:Y,width:l,height:s,store:e,pageControlsEnabled:n,altCloneEnabled:H,groupSelectionMode:V,components:j,viewportSize:ef,layout:t,tooltipSafeArea:$},r.id);return(r._exportingOrRendering||r._forceMount)&&!a&&W?(0,S.jsx)("div",{style:{display:"none",flexShrink:0},children:c},r.id):c}),e.rulesVisible&&(0,S.jsx)(g5,{store:e,xPadding:X,yPadding:Y,width:ek*e.scale+2*X,height:eS*e.scale+2*Y,pageSizes:eP,layout:t,renderOnlyActivePage:W}),0===e.pages.length&&(0,S.jsx)(eB,{store:e}),e.audios.map(t=>(0,S.jsx)(g9,{audio:t,store:e},t.id))]})})})});C("8NFma");var m_=C("gztBd"),mE={},mT={}.hasOwnProperty;function mP(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=mO(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return mP.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)mT.call(e,n)&&e[n]&&(t=mO(t,n));return t}(n)))}return e}function mO(e,t){return t?e?e+" "+t:e+t:e}mE?(mP.default=mP,mE=mP):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return mP}):window.classNames=mP;var _=(C("8NFma"),C("8NFma"));function mI(e,t){null!=e&&"function"!=typeof e?e.current=t:"function"==typeof e&&e(t)}function mA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){e.forEach(function(e){mI(e,t)})}}function mR(e){return null===e?null:void 0===e.current?e:e.current}function mM(e,t,n){return function(r){e[t]=r,mI(n,r)}}var mL={};p(mL,"clickElementOnKeyPress",()=>mQ),p(mL,"elementIsOrContains",()=>mq),p(mL,"elementIsTextInput",()=>m$),p(mL,"getActiveElement",()=>mG),p(mL,"getFocusableElements",()=>mJ),p(mL,"throttle",()=>mY),p(mL,"throttleEvent",()=>mK),p(mL,"throttleReactEventCallback",()=>mX),p(mL,"isFunction",()=>m0),p(mL,"isDarkTheme",()=>CI),p(mL,"setRef",()=>mI),p(mL,"getRef",()=>mR);var mN={};function mj(e,t,n){return void 0===n&&(n=function(e,t){return e===t}),null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(function(e,r){return n(e,t[r])})}function mD(e,t,n){if(null==e&&null==t)return!0;if(null==e||null==t||Array.isArray(e)||Array.isArray(t))return!1;if(null!=n)return mF(e,t,n);var r=Object.keys(e),i=Object.keys(t);return mF(e,t,{include:r})&&mF(e,t,{include:i})}function mz(e,t,n){if(e===t||null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return mj(e,t,mz);if(mV(e)||mV(t))return e===t;if(null!=n)return mH(e,t,n);if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),i=Object.keys(t);return null!=r&&null!=i&&(0===r.length&&0===i.length||mj(r,i)&&mH(e,t,r))}function mB(e,t,n){void 0===e&&(e={}),void 0===t&&(t={});var r,i,a,o,l,s,c,u,d=null==n?(r=e,i=t,a=Object.keys(r),o=Object.keys(i),Object.keys(mU(a.concat(o)))):n;return l=e,s=t,c=d,u=function(e,t,n){return mz(e,t,[n])},c.filter(function(e){return!u(l,s,e)}).map(function(e){return{key:e,valueA:l[e],valueB:s[e]}})}function mF(e,t,n){return(function(e,t,n){if(null!=(r=n)&&null!=r.include)return n.include;if(null!=(i=n)&&null!=i.exclude){var r,i,a=Object.keys(e),o=Object.keys(t),l=mU(a.concat(o));return n.exclude.forEach(function(e){return delete l[e]}),Object.keys(l)}return[]})(e,t,n).every(function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&e[n]===t[n]})}function mH(e,t,n){return n.every(function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&mz(e[n],t[n])})}function mV(e){return"number"==typeof e||"string"==typeof e||"boolean"==typeof e}function mU(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}p(mN,"arraysEqual",()=>mj),p(mN,"shallowCompareKeys",()=>mD),p(mN,"deepCompareKeys",()=>mz),p(mN,"getDeepUnequalKeyValues",()=>mB);var m_=C("gztBd");function mW(){return"u">typeof window&&null!=window.document}function mq(e,t){return e===t||e.contains(t)}function m$(e){if(null==e||null==e.closest)return!1;var t=e.closest("input, textarea, [contenteditable=true]");if(null==t)return!1;if("input"===t.tagName.toLowerCase()){var n=t.type;if("checkbox"===n||"radio"===n)return!1}return!t.readOnly}function mG(e,t){var n,r=(null!=(n=null==e?void 0:e.getRootNode(t))?n:document).activeElement;return r instanceof HTMLElement?r:null}function mK(e,t,n){var r=mZ(function(t){e.dispatchEvent(new CustomEvent(n,t))});return e.addEventListener(t,r),r}function mX(e,t){return void 0===t&&(t={}),mZ(e,function(e){t.preventDefault&&e.preventDefault()},function(e){return e.persist()})}function mY(e){return mZ(e)}function mZ(e,t,n){var r=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];null==t||t.apply(void 0,i),r||(r=!0,null==n||n.apply(void 0,i),requestAnimationFrame(function(){e.apply(void 0,i),r=!1}))}}function mQ(e){return function(t){e.some(function(e){return t.key===e})&&(m$(t.target)||t.preventDefault(),t.target.dispatchEvent(new MouseEvent("click",(0,m_.__assign)((0,m_.__assign)({},t),{view:void 0}))))}}function mJ(e){return Array.from(e.querySelectorAll('a[href]:not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),details:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),[tabindex]:not([tabindex="-1"])'))}function m0(e){return"function"==typeof e}var m1={};p(m1,"isNodeEnv",()=>yP),p(m1,"arrayLengthCompare",()=>yO),p(m1,"approxEqual",()=>yI),p(m1,"clamp",()=>yA),p(m1,"countDecimalPlaces",()=>yR),p(m1,"uniqueId",()=>yL),p(m1,"isEmptyString",()=>yN);var m2="[Blueprint]",m4=m2+" clamp: max cannot be less than min",m3=m2+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",m8=m2+' <NavbarGroup> does not support align="center". Only "left" or "right" alignment is allowed, and align="center" will be ignored.',m6=m2+" <NumericInput> requires min to be no greater than max if both are defined.",m5=m2+" <NumericInput> requires minorStepSize to be no greater than stepSize.",m9=m2+" <NumericInput> requires stepSize to be no greater than majorStepSize.",m7=m2+" <NumericInput> requires minorStepSize to be strictly greater than zero.",ye=m2+" <NumericInput> requires majorStepSize to be strictly greater than zero.",yt=m2+" <NumericInput> requires stepSize to be strictly greater than zero.",yn=m2+" <NumericInput> controlled value prop does not adhere to stepSize, min, and/or max constraints.",yr=m2+" <OverflowList> does not support changing observeParents after mounting.",yi="".concat(m2," <Popover> requires renderTarget prop or a child element."),ya="".concat(m2,' <Popover hasBackdrop={true}> requires interactionKind="click".'),yo="".concat(m2," <Popover> supports only one child which is rendered as its target; additional children are ignored."),yl=m2+" <Popover> with children ignores renderTarget prop; use either prop or children.",ys=m2+" Disabling <Popover> with empty/whitespace content...",yc=m2+" <Popover usePortal={false}> ignores hasBackdrop",yu=m2+" <Popover> supports either placement or position prop, not both.",yd=m2+" <Popover> onInteraction is ignored when uncontrolled.",yh=m2+" <Popover> targetProps value is ignored when renderTarget API is used.",yf=m2+" <Portal> context blueprintPortalClassName must be string",yp=m2+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",yg=m2+" <Slider> stepSize must be greater than zero.",ym=m2+" <Slider> labelStepSize must be greater than zero.",yy=m2+" <Slider> min prop must be a finite number.",yb=m2+" <Slider> max prop must be a finite number.",yv=m2+" <MultiSlider> children must be <SliderHandle>s or <SliderTrackStop>s",yx=m2+" <MultiSlider> labelStepSize and labelValues prop are mutually exclusive, with labelStepSize taking priority.",yw=m2+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",yC=m2+" <Dialog> iconName is ignored if title is omitted.",yk=m2+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",yS=m2+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",y_=m2+" <Overlay2> cannot use childRef and childRefs props simultaneously",yE=m2+" <Overlay2> requires childRefs prop when rendering multiple child elements",yT=m2+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function yP(e){return"u">typeof NODE_ENV&&NODE_ENV===e}function yO(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length-t.length}function yI(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<=n}function yA(e,t,n){if(null==e)return e;if(n<t)throw Error(m4);return Math.min(Math.max(e,t),n)}function yR(e){if(!isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}var yM=new Map;function yL(e){var t,n=null!=(t=yM.get(e))?t:0;return yM.set(e,n+1),"".concat(e,"-").concat(n)}function yN(e){return"string"==typeof e&&0===e.trim().length}var yj={};p(yj,"isReactNodeEmpty",()=>yD),p(yj,"isReactChildrenElementOrElements",()=>yz),p(yj,"ensureElement",()=>yB),p(yj,"isReactElement",()=>yF),p(yj,"isElementOfType",()=>yH),p(yj,"isReact18OrHigher",()=>yV);var _=C("8NFma");function yD(e,t){return void 0===t&&(t=!1),null==e||""===e||!1===e||!t&&Array.isArray(e)&&(0===e.length||e.every(function(e){return yD(e,!0)}))}function yz(e){return!yD(e,!0)&&!0!==e}function yB(e,t,n){if(void 0===t&&(t="span"),void 0===n&&(n={}),!(null==e||"boolean"==typeof e||yN(e)))return"string"==typeof e||"number"==typeof e||"symbol"==typeof e.type||Array.isArray(e)?_.createElement(t,n,e):yF(e)?Object.keys(n).length>0?_.cloneElement(e,n):e:void 0}function yF(e){return"object"==typeof e&&void 0!==e.type&&void 0!==e.props}function yH(e,t){return null!=e&&null!=e.type&&null!=e.type.displayName&&e.type.displayName===t.displayName}function yV(){return parseInt(_.version.split(".")[0],10)>=18}var yU={};function yW(e){return"Enter"===e.key||" "===e.key}p(yU,"isKeyboardClick",()=>yW),p(yU,"isArrowKey",()=>y$),p(yU,"getArrowKeyDirection",()=>yG);var yq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function y$(e){return yq.includes(e.key)}function yG(e,t,n){return t.includes(e.key)?-1:n.includes(e.key)?1:void 0}var yK={};p(yK,"ACTIVE",()=>y4),p(yK,"ALIGN_LEFT",()=>y3),p(yK,"ALIGN_RIGHT",()=>y8),p(yK,"COMPACT",()=>y6),p(yK,"DARK",()=>y5),p(yK,"DISABLED",()=>y9),p(yK,"FILL",()=>y7),p(yK,"FIXED",()=>be),p(yK,"FIXED_TOP",()=>bt),p(yK,"INLINE",()=>bn),p(yK,"INTERACTIVE",()=>br),p(yK,"LARGE",()=>bi),p(yK,"LOADING",()=>ba),p(yK,"MINIMAL",()=>bo),p(yK,"OUTLINED",()=>bl),p(yK,"PADDED",()=>bs),p(yK,"MULTILINE",()=>bc),p(yK,"READ_ONLY",()=>bu),p(yK,"ROUND",()=>bd),p(yK,"SELECTED",()=>bh),p(yK,"SMALL",()=>bf),p(yK,"VERTICAL",()=>bp),p(yK,"POSITION_TOP",()=>bg),p(yK,"positionClass",()=>CT),p(yK,"POSITION_BOTTOM",()=>bm),p(yK,"POSITION_LEFT",()=>by),p(yK,"POSITION_RIGHT",()=>bb),p(yK,"ELEVATION_0",()=>bv),p(yK,"elevationClass",()=>CS),p(yK,"ELEVATION_1",()=>bx),p(yK,"ELEVATION_2",()=>bw),p(yK,"ELEVATION_3",()=>bC),p(yK,"ELEVATION_4",()=>bk),p(yK,"INTENT_PRIMARY",()=>bS),p(yK,"intentClass",()=>CE),p(yK,"INTENT_SUCCESS",()=>b_),p(yK,"INTENT_WARNING",()=>bE),p(yK,"INTENT_DANGER",()=>bT),p(yK,"FOCUS_DISABLED",()=>bP),p(yK,"FOCUS_STYLE_MANAGER_IGNORE",()=>bO),p(yK,"UI_TEXT",()=>bI),p(yK,"RUNNING_TEXT",()=>bA),p(yK,"MONOSPACE_TEXT",()=>bR),p(yK,"TEXT_LARGE",()=>bM),p(yK,"TEXT_SMALL",()=>bL),p(yK,"TEXT_MUTED",()=>bN),p(yK,"TEXT_DISABLED",()=>bj),p(yK,"TEXT_OVERFLOW_ELLIPSIS",()=>bD),p(yK,"BLOCKQUOTE",()=>bz),p(yK,"CODE",()=>bB),p(yK,"CODE_BLOCK",()=>bF),p(yK,"HEADING",()=>bH),p(yK,"LIST",()=>bV),p(yK,"LIST_UNSTYLED",()=>bU),p(yK,"RTL",()=>bW),p(yK,"ALERT",()=>bq),p(yK,"ALERT_BODY",()=>b$),p(yK,"ALERT_CONTENTS",()=>bG),p(yK,"ALERT_FOOTER",()=>bK),p(yK,"BREADCRUMB",()=>bX),p(yK,"BREADCRUMB_CURRENT",()=>bY),p(yK,"BREADCRUMBS",()=>bZ),p(yK,"BREADCRUMBS_COLLAPSED",()=>bQ),p(yK,"BUTTON",()=>bJ),p(yK,"BUTTON_GROUP",()=>b0),p(yK,"BUTTON_SPINNER",()=>b1),p(yK,"BUTTON_TEXT",()=>b2),p(yK,"CALLOUT",()=>b4),p(yK,"CALLOUT_HAS_BODY_CONTENT",()=>b3),p(yK,"CALLOUT_ICON",()=>b8),p(yK,"CARD",()=>b6),p(yK,"CONTROL_CARD",()=>b5),p(yK,"CONTROL_CARD_LABEL",()=>b9),p(yK,"SWITCH_CONTROL_CARD",()=>b7),p(yK,"CHECKBOX_CONTROL_CARD",()=>ve),p(yK,"RADIO_CONTROL_CARD",()=>vt),p(yK,"CARD_LIST",()=>vn),p(yK,"CARD_LIST_BORDERED",()=>vr),p(yK,"COLLAPSE",()=>vi),p(yK,"COLLAPSE_BODY",()=>va),p(yK,"CONTEXT_MENU",()=>vo),p(yK,"CONTEXT_MENU_VIRTUAL_TARGET",()=>vl),p(yK,"CONTEXT_MENU_POPOVER",()=>vs),p(yK,"CONTEXT_MENU_BACKDROP",()=>vc),p(yK,"CONTROL_GROUP",()=>vu),p(yK,"DIALOG",()=>vd),p(yK,"DIALOG_CONTAINER",()=>vh),p(yK,"DIALOG_HEADER",()=>vf),p(yK,"DIALOG_BODY",()=>vp),p(yK,"DIALOG_BODY_SCROLL_CONTAINER",()=>vg),p(yK,"DIALOG_CLOSE_BUTTON",()=>vm),p(yK,"DIALOG_FOOTER",()=>vy),p(yK,"DIALOG_FOOTER_FIXED",()=>vb),p(yK,"DIALOG_FOOTER_MAIN_SECTION",()=>vv),p(yK,"DIALOG_FOOTER_ACTIONS",()=>vx),p(yK,"DIALOG_STEP",()=>vw),p(yK,"DIALOG_STEP_CONTAINER",()=>vC),p(yK,"DIALOG_STEP_TITLE",()=>vk),p(yK,"DIALOG_STEP_ICON",()=>vS),p(yK,"DIALOG_STEP_VIEWED",()=>v_),p(yK,"DIVIDER",()=>vE),p(yK,"DRAWER",()=>vT),p(yK,"DRAWER_BODY",()=>vP),p(yK,"DRAWER_FOOTER",()=>vO),p(yK,"DRAWER_HEADER",()=>vI),p(yK,"EDITABLE_TEXT",()=>vA),p(yK,"EDITABLE_TEXT_CONTENT",()=>vR),p(yK,"EDITABLE_TEXT_EDITING",()=>vM),p(yK,"EDITABLE_TEXT_INPUT",()=>vL),p(yK,"EDITABLE_TEXT_PLACEHOLDER",()=>vN),p(yK,"ENTITY_TITLE",()=>vj),p(yK,"ENTITY_TITLE_ELLIPSIZE",()=>vD),p(yK,"ENTITY_TITLE_HAS_SUBTITLE",()=>vz),p(yK,"ENTITY_TITLE_ICON_CONTAINER",()=>vB),p(yK,"ENTITY_TITLE_SUBTITLE",()=>vF),p(yK,"ENTITY_TITLE_TAGS_CONTAINER",()=>vH),p(yK,"ENTITY_TITLE_TEXT",()=>vV),p(yK,"ENTITY_TITLE_TITLE",()=>vU),p(yK,"ENTITY_TITLE_TITLE_AND_TAGS",()=>vW),p(yK,"FLEX_EXPANDER",()=>vq),p(yK,"HTML_SELECT",()=>v$),p(yK,"SELECT",()=>vG),p(yK,"HTML_TABLE",()=>vK),p(yK,"HTML_TABLE_BORDERED",()=>vX),p(yK,"HTML_TABLE_STRIPED",()=>vY),p(yK,"INPUT",()=>vZ),p(yK,"INPUT_GHOST",()=>vQ),p(yK,"INPUT_GROUP",()=>vJ),p(yK,"INPUT_LEFT_CONTAINER",()=>v0),p(yK,"INPUT_ACTION",()=>v1),p(yK,"RESIZABLE_INPUT_SPAN",()=>v2),p(yK,"TEXT_AREA",()=>v4),p(yK,"TEXT_AREA_AUTO_RESIZE",()=>v3),p(yK,"CONTROL",()=>v8),p(yK,"CONTROL_INDICATOR",()=>v6),p(yK,"CONTROL_INDICATOR_CHILD",()=>v5),p(yK,"CHECKBOX",()=>v9),p(yK,"RADIO",()=>v7),p(yK,"RADIO_GROUP",()=>xe),p(yK,"SWITCH",()=>xt),p(yK,"SWITCH_INNER_TEXT",()=>xn),p(yK,"FILE_INPUT",()=>xr),p(yK,"FILE_INPUT_HAS_SELECTION",()=>xi),p(yK,"FILE_UPLOAD_INPUT",()=>xa),p(yK,"FILE_UPLOAD_INPUT_CUSTOM_TEXT",()=>xo),p(yK,"KEY",()=>xl),p(yK,"KEY_COMBO",()=>xs),p(yK,"MODIFIER_KEY",()=>xc),p(yK,"HOTKEY",()=>xu),p(yK,"HOTKEY_LABEL",()=>xd),p(yK,"HOTKEY_COLUMN",()=>xh),p(yK,"HOTKEY_DIALOG",()=>xf),p(yK,"LABEL",()=>xp),p(yK,"FORM_GROUP",()=>xg),p(yK,"FORM_CONTENT",()=>xm),p(yK,"FORM_HELPER_TEXT",()=>xy),p(yK,"FORM_GROUP_SUB_LABEL",()=>xb),p(yK,"MENU",()=>xv),p(yK,"MENU_ITEM",()=>xx),p(yK,"MENU_ITEM_IS_SELECTABLE",()=>xw),p(yK,"MENU_ITEM_SELECTED_ICON",()=>xC),p(yK,"MENU_ITEM_ICON",()=>xk),p(yK,"MENU_ITEM_LABEL",()=>xS),p(yK,"MENU_SUBMENU",()=>x_),p(yK,"MENU_SUBMENU_ICON",()=>xE),p(yK,"MENU_DIVIDER",()=>xT),p(yK,"MENU_HEADER",()=>xP),p(yK,"MULTISTEP_DIALOG",()=>xO),p(yK,"MULTISTEP_DIALOG_PANELS",()=>xI),p(yK,"MULTISTEP_DIALOG_LEFT_PANEL",()=>xA),p(yK,"MULTISTEP_DIALOG_RIGHT_PANEL",()=>xR),p(yK,"MULTISTEP_DIALOG_NAV_TOP",()=>xM),p(yK,"MULTISTEP_DIALOG_NAV_RIGHT",()=>xL),p(yK,"SECTION",()=>xN),p(yK,"SECTION_COLLAPSED",()=>xj),p(yK,"SECTION_HEADER",()=>xD),p(yK,"SECTION_HEADER_LEFT",()=>xz),p(yK,"SECTION_HEADER_TITLE",()=>xB),p(yK,"SECTION_HEADER_SUB_TITLE",()=>xF),p(yK,"SECTION_HEADER_DIVIDER",()=>xH),p(yK,"SECTION_HEADER_TABS",()=>xV),p(yK,"SECTION_HEADER_RIGHT",()=>xU),p(yK,"SECTION_HEADER_COLLAPSE_CARET",()=>xW),p(yK,"SECTION_CARD",()=>xq),p(yK,"NAVBAR",()=>x$),p(yK,"NAVBAR_GROUP",()=>xG),p(yK,"NAVBAR_HEADING",()=>xK),p(yK,"NAVBAR_DIVIDER",()=>xX),p(yK,"NON_IDEAL_STATE",()=>xY),p(yK,"NON_IDEAL_STATE_VISUAL",()=>xZ),p(yK,"NON_IDEAL_STATE_TEXT",()=>xQ),p(yK,"NUMERIC_INPUT",()=>xJ),p(yK,"OVERFLOW_LIST",()=>x0),p(yK,"OVERFLOW_LIST_SPACER",()=>x1),p(yK,"OVERLAY",()=>x2),p(yK,"OVERLAY_BACKDROP",()=>x4),p(yK,"OVERLAY_CONTAINER",()=>x3),p(yK,"OVERLAY_CONTENT",()=>x8),p(yK,"OVERLAY_INLINE",()=>x6),p(yK,"OVERLAY_OPEN",()=>x5),p(yK,"OVERLAY_SCROLL_CONTAINER",()=>x9),p(yK,"OVERLAY_START_FOCUS_TRAP",()=>x7),p(yK,"OVERLAY_END_FOCUS_TRAP",()=>we),p(yK,"PANEL_STACK",()=>wt),p(yK,"PANEL_STACK_HEADER",()=>wn),p(yK,"PANEL_STACK_HEADER_BACK",()=>wr),p(yK,"PANEL_STACK_VIEW",()=>wi),p(yK,"PANEL_STACK2",()=>wa),p(yK,"PANEL_STACK2_HEADER",()=>wo),p(yK,"PANEL_STACK2_HEADER_BACK",()=>wl),p(yK,"PANEL_STACK2_VIEW",()=>ws),p(yK,"POPOVER",()=>wc),p(yK,"POPOVER_ARROW",()=>wu),p(yK,"POPOVER_BACKDROP",()=>wd),p(yK,"POPOVER_CAPTURING_DISMISS",()=>wh),p(yK,"POPOVER_CONTENT",()=>wf),p(yK,"POPOVER_CONTENT_PLACEMENT",()=>wp),p(yK,"POPOVER_CONTENT_SIZING",()=>wg),p(yK,"POPOVER_DISMISS",()=>wm),p(yK,"POPOVER_DISMISS_OVERRIDE",()=>wy),p(yK,"POPOVER_MATCH_TARGET_WIDTH",()=>wb),p(yK,"POPOVER_OPEN",()=>wv),p(yK,"POPOVER_POPPER_ESCAPED",()=>wx),p(yK,"POPOVER_REFERENCE_HIDDEN",()=>ww),p(yK,"POPOVER_TARGET",()=>wC),p(yK,"POPOVER_TRANSITION_CONTAINER",()=>wk),p(yK,"POPOVER_WRAPPER",()=>wS),p(yK,"PROGRESS_BAR",()=>w_),p(yK,"PROGRESS_METER",()=>wE),p(yK,"PROGRESS_NO_STRIPES",()=>wT),p(yK,"PROGRESS_NO_ANIMATION",()=>wP),p(yK,"PORTAL",()=>wO),p(yK,"SKELETON",()=>wI),p(yK,"SLIDER",()=>wA),p(yK,"SLIDER_AXIS",()=>wR),p(yK,"SLIDER_HANDLE",()=>wM),p(yK,"SLIDER_LABEL",()=>wL),p(yK,"SLIDER_TRACK",()=>wN),p(yK,"SLIDER_PROGRESS",()=>wj),p(yK,"START",()=>wD),p(yK,"END",()=>wz),p(yK,"SPINNER",()=>wB),p(yK,"SPINNER_ANIMATION",()=>wF),p(yK,"SPINNER_HEAD",()=>wH),p(yK,"SPINNER_NO_SPIN",()=>wV),p(yK,"SPINNER_TRACK",()=>wU),p(yK,"SEGMENTED_CONTROL",()=>wW),p(yK,"TAB",()=>wq),p(yK,"TAB_ICON",()=>w$),p(yK,"TAB_TAG",()=>wG),p(yK,"TAB_INDICATOR",()=>wK),p(yK,"TAB_INDICATOR_WRAPPER",()=>wX),p(yK,"TAB_LIST",()=>wY),p(yK,"TAB_PANEL",()=>wZ),p(yK,"TABS",()=>wQ),p(yK,"TAG",()=>wJ),p(yK,"TAG_REMOVE",()=>w0),p(yK,"COMPOUND_TAG",()=>w1),p(yK,"COMPOUND_TAG_LEFT",()=>w2),p(yK,"COMPOUND_TAG_LEFT_CONTENT",()=>w4),p(yK,"COMPOUND_TAG_RIGHT",()=>w3),p(yK,"COMPOUND_TAG_RIGHT_CONTENT",()=>w8),p(yK,"TAG_INPUT",()=>w6),p(yK,"TAG_INPUT_ICON",()=>w5),p(yK,"TAG_INPUT_VALUES",()=>w9),p(yK,"TOAST",()=>w7),p(yK,"TOAST_CONTAINER",()=>Ce),p(yK,"TOAST_MESSAGE",()=>Ct),p(yK,"TOOLTIP",()=>Cn),p(yK,"TOOLTIP_INDICATOR",()=>Cr),p(yK,"TREE",()=>Ci),p(yK,"TREE_NODE",()=>Ca),p(yK,"TREE_NODE_CARET",()=>Co),p(yK,"TREE_NODE_CARET_CLOSED",()=>Cl),p(yK,"TREE_NODE_CARET_NONE",()=>Cs),p(yK,"TREE_NODE_CARET_OPEN",()=>Cc),p(yK,"TREE_NODE_CONTENT",()=>Cu),p(yK,"TREE_NODE_EXPANDED",()=>Cd),p(yK,"TREE_NODE_ICON",()=>Ch),p(yK,"TREE_NODE_LABEL",()=>Cf),p(yK,"TREE_NODE_LIST",()=>Cp),p(yK,"TREE_NODE_SECONDARY_LABEL",()=>Cg),p(yK,"TREE_NODE_SELECTED",()=>Cm),p(yK,"TREE_ROOT",()=>Cy),p(yK,"ICON",()=>Cb),p(yK,"ICON_STANDARD",()=>Cv),p(yK,"ICON_LARGE",()=>Cx),p(yK,"ICON_MUTED",()=>Cw),p(yK,"getClassNamespace",()=>CC),p(yK,"alignmentClass",()=>Ck),p(yK,"iconClass",()=>C_),p(yK,"sizeClass",()=>CP),p(yK,"variantClass",()=>CO);var yX="left",yY="right",yZ="start",yQ="none",yJ="primary",y0="danger",y1={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},y2="bp5";"u">typeof BLUEPRINT_NAMESPACE?y2=BLUEPRINT_NAMESPACE:"u">typeof REACT_APP_BLUEPRINT_NAMESPACE&&(y2=REACT_APP_BLUEPRINT_NAMESPACE);var y4="".concat(y2,"-active"),y3="".concat(y2,"-align-left"),y8="".concat(y2,"-align-right"),y6="".concat(y2,"-compact"),y5="".concat(y2,"-dark"),y9="".concat(y2,"-disabled"),y7="".concat(y2,"-fill"),be="".concat(y2,"-fixed"),bt="".concat(y2,"-fixed-top"),bn="".concat(y2,"-inline"),br="".concat(y2,"-interactive"),bi="".concat(y2,"-large"),ba="".concat(y2,"-loading"),bo="".concat(y2,"-minimal"),bl="".concat(y2,"-outlined"),bs="".concat(y2,"-padded"),bc="".concat(y2,"-multiline"),bu="".concat(y2,"-read-only"),bd="".concat(y2,"-round"),bh="".concat(y2,"-selected"),bf="".concat(y2,"-small"),bp="".concat(y2,"-vertical"),bg=CT(y1.TOP),bm=CT(y1.BOTTOM),by=CT(y1.LEFT),bb=CT(y1.RIGHT),bv=CS(0),bx=CS(1),bw=CS(2),bC=CS(3),bk=CS(4),bS=CE(yJ),b_=CE("success"),bE=CE("warning"),bT=CE(y0),bP="".concat(y2,"-focus-disabled"),bO="".concat(y2,"-focus-style-manager-ignore"),bI="".concat(y2,"-ui-text"),bA="".concat(y2,"-running-text"),bR="".concat(y2,"-monospace-text"),bM="".concat(y2,"-text-large"),bL="".concat(y2,"-text-small"),bN="".concat(y2,"-text-muted"),bj="".concat(y2,"-text-disabled"),bD="".concat(y2,"-text-overflow-ellipsis"),bz="".concat(y2,"-blockquote"),bB="".concat(y2,"-code"),bF="".concat(y2,"-code-block"),bH="".concat(y2,"-heading"),bV="".concat(y2,"-list"),bU="".concat(y2,"-list-unstyled"),bW="".concat(y2,"-rtl"),bq="".concat(y2,"-alert"),b$="".concat(bq,"-body"),bG="".concat(bq,"-contents"),bK="".concat(bq,"-footer"),bX="".concat(y2,"-breadcrumb"),bY="".concat(bX,"-current"),bZ="".concat(bX,"s"),bQ="".concat(bX,"s-collapsed"),bJ="".concat(y2,"-button"),b0="".concat(bJ,"-group"),b1="".concat(bJ,"-spinner"),b2="".concat(bJ,"-text"),b4="".concat(y2,"-callout"),b3="".concat(b4,"-has-body-content"),b8="".concat(b4,"-icon"),b6="".concat(y2,"-card"),b5="".concat(y2,"-control-card"),b9="".concat(b5,"-label"),b7="".concat(y2,"-switch-control-card"),ve="".concat(y2,"-checkbox-control-card"),vt="".concat(y2,"-radio-control-card"),vn="".concat(y2,"-card-list"),vr="".concat(vn,"-bordered"),vi="".concat(y2,"-collapse"),va="".concat(vi,"-body"),vo="".concat(y2,"-context-menu"),vl="".concat(vo,"-virtual-target"),vs="".concat(vo,"-popover"),vc="".concat(vo,"-backdrop"),vu="".concat(y2,"-control-group"),vd="".concat(y2,"-dialog"),vh="".concat(vd,"-container"),vf="".concat(vd,"-header"),vp="".concat(vd,"-body"),vg="".concat(vd,"-body-scroll-container"),vm="".concat(vd,"-close-button"),vy="".concat(vd,"-footer"),vb="".concat(vd,"-footer-fixed"),vv="".concat(vd,"-footer-main-section"),vx="".concat(vd,"-footer-actions"),vw="".concat(y2,"-dialog-step"),vC="".concat(vw,"-container"),vk="".concat(vw,"-title"),vS="".concat(vw,"-icon"),v_="".concat(vw,"-viewed"),vE="".concat(y2,"-divider"),vT="".concat(y2,"-drawer"),vP="".concat(vT,"-body"),vO="".concat(vT,"-footer"),vI="".concat(vT,"-header"),vA="".concat(y2,"-editable-text"),vR="".concat(vA,"-content"),vM="".concat(vA,"-editing"),vL="".concat(vA,"-input"),vN="".concat(vA,"-placeholder"),vj="".concat(y2,"-entity-title"),vD="".concat(y2,"-entity-title-ellipsize"),vz="".concat(vj,"-has-subtitle"),vB="".concat(vj,"-icon-container"),vF="".concat(vj,"-subtitle"),vH="".concat(vj,"-tags-container"),vV="".concat(vj,"-text"),vU="".concat(vj,"-title"),vW="".concat(vj,"-title-and-tags"),vq="".concat(y2,"-flex-expander"),v$="".concat(y2,"-html-select"),vG="".concat(y2,"-select"),vK="".concat(y2,"-html-table"),vX="".concat(vK,"-bordered"),vY="".concat(vK,"-striped"),vZ="".concat(y2,"-input"),vQ="".concat(vZ,"-ghost"),vJ="".concat(vZ,"-group"),v0="".concat(vZ,"-left-container"),v1="".concat(vZ,"-action"),v2="".concat(y2,"-resizable-input-span"),v4="".concat(y2,"-text-area"),v3="".concat(v4,"-auto-resize"),v8="".concat(y2,"-control"),v6="".concat(v8,"-indicator"),v5="".concat(v6,"-child"),v9="".concat(y2,"-checkbox"),v7="".concat(y2,"-radio"),xe="".concat(y2,"-radio-group"),xt="".concat(y2,"-switch"),xn="".concat(xt,"-inner-text"),xr="".concat(y2,"-file-input"),xi="".concat(y2,"-file-input-has-selection"),xa="".concat(y2,"-file-upload-input"),xo="".concat(y2,"-file-upload-input-custom-text"),xl="".concat(y2,"-key"),xs="".concat(xl,"-combo"),xc="".concat(y2,"-modifier-key"),xu="".concat(y2,"-hotkey"),xd="".concat(xu,"-label"),xh="".concat(xu,"-column"),xf="".concat(xu,"-dialog"),xp="".concat(y2,"-label"),xg="".concat(y2,"-form-group"),xm="".concat(y2,"-form-content"),xy="".concat(y2,"-form-helper-text"),xb="".concat(y2,"-form-group-sub-label"),xv="".concat(y2,"-menu"),xx="".concat(xv,"-item"),xw="".concat(xx,"-is-selectable"),xC="".concat(xx,"-selected-icon"),xk="".concat(xx,"-icon"),xS="".concat(xx,"-label"),x_="".concat(y2,"-submenu"),xE="".concat(x_,"-icon"),xT="".concat(xv,"-divider"),xP="".concat(xv,"-header"),xO="".concat(y2,"-multistep-dialog"),xI="".concat(xO,"-panels"),xA="".concat(xO,"-left-panel"),xR="".concat(xO,"-right-panel"),xM="".concat(xO,"-nav-top"),xL="".concat(xO,"-nav-right"),xN="".concat(y2,"-section"),xj="".concat(xN,"-collapsed"),xD="".concat(xN,"-header"),xz="".concat(xD,"-left"),xB="".concat(xD,"-title"),xF="".concat(xD,"-sub-title"),xH="".concat(xD,"-divider"),xV="".concat(xD,"-tabs"),xU="".concat(xD,"-right"),xW="".concat(xD,"-collapse-caret"),xq="".concat(xN,"-card"),x$="".concat(y2,"-navbar"),xG="".concat(x$,"-group"),xK="".concat(x$,"-heading"),xX="".concat(x$,"-divider"),xY="".concat(y2,"-non-ideal-state"),xZ="".concat(xY,"-visual"),xQ="".concat(xY,"-text"),xJ="".concat(y2,"-numeric-input"),x0="".concat(y2,"-overflow-list"),x1="".concat(x0,"-spacer"),x2="".concat(y2,"-overlay"),x4="".concat(x2,"-backdrop"),x3="".concat(x2,"-container"),x8="".concat(x2,"-content"),x6="".concat(x2,"-inline"),x5="".concat(x2,"-open"),x9="".concat(x2,"-scroll-container"),x7="".concat(x2,"-start-focus-trap"),we="".concat(x2,"-end-focus-trap"),wt="".concat(y2,"-panel-stack"),wn="".concat(wt,"-header"),wr="".concat(wt,"-header-back"),wi="".concat(wt,"-view"),wa="".concat(y2,"-panel-stack2"),wo="".concat(wa,"-header"),wl="".concat(wa,"-header-back"),ws="".concat(wa,"-view"),wc="".concat(y2,"-popover"),wu="".concat(wc,"-arrow"),wd="".concat(wc,"-backdrop"),wh="".concat(wc,"-capturing-dismiss"),wf="".concat(wc,"-content"),wp="".concat(wc,"-placement"),wg="".concat(wf,"-sizing"),wm="".concat(wc,"-dismiss"),wy="".concat(wm,"-override"),wb="".concat(wc,"-match-target-width"),wv="".concat(wc,"-open"),wx="".concat(wc,"-popper-escaped"),ww="".concat(wc,"-reference-hidden"),wC="".concat(wc,"-target"),wk="".concat(wc,"-transition-container"),wS="".concat(wc,"-wrapper"),w_="".concat(y2,"-progress-bar"),wE="".concat(y2,"-progress-meter"),wT="".concat(y2,"-no-stripes"),wP="".concat(y2,"-no-animation"),wO="".concat(y2,"-portal"),wI="".concat(y2,"-skeleton"),wA="".concat(y2,"-slider"),wR="".concat(wA,"-axis"),wM="".concat(wA,"-handle"),wL="".concat(wA,"-label"),wN="".concat(wA,"-track"),wj="".concat(wA,"-progress"),wD="".concat(y2,"-start"),wz="".concat(y2,"-end"),wB="".concat(y2,"-spinner"),wF="".concat(wB,"-animation"),wH="".concat(wB,"-head"),wV="".concat(y2,"-no-spin"),wU="".concat(wB,"-track"),wW="".concat(y2,"-segmented-control"),wq="".concat(y2,"-tab"),w$="".concat(wq,"-icon"),wG="".concat(wq,"-tag"),wK="".concat(wq,"-indicator"),wX="".concat(wK,"-wrapper"),wY="".concat(wq,"-list"),wZ="".concat(wq,"-panel"),wQ="".concat(wq,"s"),wJ="".concat(y2,"-tag"),w0="".concat(wJ,"-remove"),w1="".concat(y2,"-compound-tag"),w2="".concat(w1,"-left"),w4="".concat(w1,"-left-content"),w3="".concat(w1,"-right"),w8="".concat(w1,"-right-content"),w6="".concat(y2,"-tag-input"),w5="".concat(w6,"-icon"),w9="".concat(w6,"-values"),w7="".concat(y2,"-toast"),Ce="".concat(w7,"-container"),Ct="".concat(w7,"-message"),Cn="".concat(y2,"-tooltip"),Cr="".concat(Cn,"-indicator"),Ci="".concat(y2,"-tree"),Ca="".concat(y2,"-tree-node"),Co="".concat(Ca,"-caret"),Cl="".concat(Co,"-closed"),Cs="".concat(Co,"-none"),Cc="".concat(Co,"-open"),Cu="".concat(Ca,"-content"),Cd="".concat(Ca,"-expanded"),Ch="".concat(Ca,"-icon"),Cf="".concat(Ca,"-label"),Cp="".concat(Ca,"-list"),Cg="".concat(Ca,"-secondary-label"),Cm="".concat(Ca,"-selected"),Cy="".concat(y2,"-tree-root"),Cb="".concat(y2,"-icon"),Cv="".concat(Cb,"-standard"),Cx="".concat(Cb,"-large"),Cw="".concat(Cb,"-muted");function CC(){return y2}function Ck(e){switch(e){case yX:case yZ:return y3;case yY:case"end":return y8;default:return}}function CS(e){if(void 0!==e)return"".concat(y2,"-elevation-").concat(e)}function C_(e){if(null!=e)return 0===e.indexOf("".concat(y2,"-icon-"))?e:"".concat(y2,"-icon-").concat(e)}function CE(e){if(null!=e&&e!==yQ)return"".concat(y2,"-intent-").concat(e.toLowerCase())}function CT(e){if(void 0!==e)return"".concat(y2,"-position-").concat(e)}function CP(e,t){if("small"===e)return bf;if("large"===e)return bi;var n,r=t.large,i=t.small;return(n={})[bi]=void 0!==r&&r,n[bf]=void 0!==i&&i,n}function CO(e,t){if("outlined"===e)return bl;if("minimal"===e)return bo;var n,r=t.minimal,i=t.outlined;return(n={})[bo]=void 0!==r&&r,n[bl]=void 0!==i&&i,n}function CI(e){return null!=e&&e instanceof Element&&null!=e.closest(".".concat(y5))}b(mL,mN),b(mL,m1),b(mL,yj),b(mL,yU);var CA={defaultTabIndex:void 0,disabledTabIndex:-1};function CR(e,t,n,r){void 0===r&&(r=CA);var i=r.defaultTabIndex,a=r.disabledTabIndex,o=t.active,l=t.onClick,s=t.onFocus,c=t.onKeyDown,u=t.onKeyUp,d=t.onBlur,h=t.tabIndex,f=_.useState(),p=f[0],g=f[1],m=_.useState(!1),y=m[0],b=m[1],v=_.useRef(null),x=_.useCallback(function(e){y&&b(!1),null==d||d(e)},[y,d]);return[e&&(o||y),{onBlur:x,onClick:e?l:void 0,onFocus:e?s:void 0,onKeyDown:_.useCallback(function(e){mL.isKeyboardClick(e)&&(e.preventDefault(),e.key!==p&&b(!0)),g(e.key),null==c||c(e)},[p,c]),onKeyUp:_.useCallback(function(e){var t;mL.isKeyboardClick(e)&&(b(!1),null==(t=v.current)||t.click()),g(void 0),null==u||u(e)},[u,v]),ref:mA(v,n),tabIndex:e?void 0===h?i:h:a}]}var m_=C("gztBd"),CM="Blueprint5",CL=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","endIcon","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","selectedValue","size","small","tagName","text","textClassName","variant"];function CN(e,t,n){return void 0===t&&(t=CL),void 0===n&&(n=!1),n&&(t=t.concat(CL)),t.reduce(function(e,t){return -1!==t.indexOf("-")||e.hasOwnProperty(t)&&delete e[t],e},(0,m_.__assign)({},e))}var m_=C("gztBd"),_=C("8NFma"),m_=(C("gztBd"),C("gztBd")),Cj=C("704DA"),m_=(C("gztBd"),C("gztBd")),CD=C("bYk83");(zX=BP||(BP={})).AddChild="add-child",zX.AddClip="add-clip",zX.AddColumnLeft="add-column-left",zX.AddColumnRight="add-column-right",zX.AddLocation="add-location",zX.AddParent="add-parent",zX.AddRowBottom="add-row-bottom",zX.AddRowTop="add-row-top",zX.AddToArtifact="add-to-artifact",zX.AddToFolder="add-to-folder",zX.Add="add",zX.AimpointsTarget="aimpoints-target",zX.Airplane="airplane",zX.AlignCenter="align-center",zX.AlignJustify="align-justify",zX.AlignLeft="align-left",zX.AlignRight="align-right",zX.AlignmentBottom="alignment-bottom",zX.AlignmentHorizontalCenter="alignment-horizontal-center",zX.AlignmentLeft="alignment-left",zX.AlignmentRight="alignment-right",zX.AlignmentTop="alignment-top",zX.AlignmentVerticalCenter="alignment-vertical-center",zX.Ammunition="ammunition",zX.Anchor="anchor",zX.Annotation="annotation",zX.Announcement="announcement",zX.Antenna="antenna",zX.AppHeader="app-header",zX.Application="application",zX.Applications="applications",zX.Archive="archive",zX.AreaOfInterest="area-of-interest",zX.ArrayBoolean="array-boolean",zX.ArrayDate="array-date",zX.ArrayFloatingPoint="array-floating-point",zX.ArrayNumeric="array-numeric",zX.ArrayObject="array-object",zX.ArrayString="array-string",zX.ArrayTimestamp="array-timestamp",zX.Array="array",zX.ArrowBottomLeft="arrow-bottom-left",zX.ArrowBottomRight="arrow-bottom-right",zX.ArrowDown="arrow-down",zX.ArrowLeft="arrow-left",zX.ArrowRight="arrow-right",zX.ArrowTopLeft="arrow-top-left",zX.ArrowTopRight="arrow-top-right",zX.ArrowUp="arrow-up",zX.ArrowsArc="arrows-arc",zX.ArrowsHorizontal="arrows-horizontal",zX.ArrowsVertical="arrows-vertical",zX.Asterisk="asterisk",zX.At="at",zX.AutomaticUpdates="automatic-updates",zX.Axle="axle",zX.Backlink="backlink",zX.BackwardTen="backward-ten",zX.Badge="badge",zX.BanCircle="ban-circle",zX.BankAccount="bank-account",zX.Barcode="barcode",zX.BinaryNumber="binary-number",zX.Blank="blank",zX.BlockPromote="block-promote",zX.BlockedPerson="blocked-person",zX.Bold="bold",zX.Book="book",zX.Bookmark="bookmark",zX.Box="box",zX.BranchLocked="branch-locked",zX.BranchUnlocked="branch-unlocked",zX.Briefcase="briefcase",zX.BringData="bring-data",zX.BringForward="bring-forward",zX.BritishPound="british-pound",zX.Bug="bug",zX.Buggy="buggy",zX.Build="build",zX.Bullseye="bullseye",zX.Calculator="calculator",zX.Calendar="calendar",zX.Camera="camera",zX.CaretDown="caret-down",zX.CaretLeft="caret-left",zX.CaretRight="caret-right",zX.CaretUp="caret-up",zX.CargoShip="cargo-ship",zX.CellTower="cell-tower",zX.Changes="changes",zX.Chart="chart",zX.Chat="chat",zX.ChevronBackward="chevron-backward",zX.ChevronDown="chevron-down",zX.ChevronForward="chevron-forward",zX.ChevronLeft="chevron-left",zX.ChevronRight="chevron-right",zX.ChevronUp="chevron-up",zX.CircleArrowDown="circle-arrow-down",zX.CircleArrowLeft="circle-arrow-left",zX.CircleArrowRight="circle-arrow-right",zX.CircleArrowUp="circle-arrow-up",zX.Circle="circle",zX.Citation="citation",zX.Clean="clean",zX.Clip="clip",zX.ClipboardFile="clipboard-file",zX.Clipboard="clipboard",zX.CloudDownload="cloud-download",zX.CloudServer="cloud-server",zX.CloudTick="cloud-tick",zX.CloudUpload="cloud-upload",zX.Cloud="cloud",zX.CodeBlock="code-block",zX.Code="code",zX.Cog="cog",zX.CollapseAll="collapse-all",zX.ColorFill="color-fill",zX.ColumnLayout="column-layout",zX.Comment="comment",zX.Comparison="comparison",zX.Compass="compass",zX.Compressed="compressed",zX.Confirm="confirm",zX.Console="console",zX.Construction="construction",zX.Contrast="contrast",zX.Control="control",zX.CreditCard="credit-card",zX.Crop="crop",zX.CrossCircle="cross-circle",zX.Cross="cross",zX.Crown="crown",zX.CssStyle="css-style",zX.CubeAdd="cube-add",zX.CubeEdit="cube-edit",zX.CubeRemove="cube-remove",zX.Cube="cube",zX.Cubes="cubes",zX.CurlyBraces="curly-braces",zX.CurvedRangeChart="curved-range-chart",zX.Cut="cut",zX.Cycle="cycle",zX.Dashboard="dashboard",zX.DataCloud="data-cloud",zX.DataConnection="data-connection",zX.DataLineage="data-lineage",zX.DataSearch="data-search",zX.DataSync="data-sync",zX.Database="database",zX.DeleteClip="delete-clip",zX.Delete="delete",zX.Delta="delta",zX.DeriveColumn="derive-column",zX.Desktop="desktop",zX.Detection="detection",zX.Diagnosis="diagnosis",zX.DiagramTree="diagram-tree",zX.DirectionLeft="direction-left",zX.DirectionRight="direction-right",zX.Disable="disable",zX.Divide="divide",zX.DocumentCode="document-code",zX.DocumentLocked="document-locked",zX.DocumentOpen="document-open",zX.DocumentShare="document-share",zX.Document="document",zX.Dollar="dollar",zX.Dot="dot",zX.DoubleCaretHorizontal="double-caret-horizontal",zX.DoubleCaretVertical="double-caret-vertical",zX.DoubleChevronDown="double-chevron-down",zX.DoubleChevronLeft="double-chevron-left",zX.DoubleChevronRight="double-chevron-right",zX.DoubleChevronUp="double-chevron-up",zX.DoughnutChart="doughnut-chart",zX.Download="download",zX.DragHandleHorizontal="drag-handle-horizontal",zX.DragHandleVertical="drag-handle-vertical",zX.Draw="draw",zX.DrawerLeftFilled="drawer-left-filled",zX.DrawerLeft="drawer-left",zX.DrawerRightFilled="drawer-right-filled",zX.DrawerRight="drawer-right",zX.DriveTime="drive-time",zX.Duplicate="duplicate",zX.Edit="edit",zX.Eject="eject",zX.Emoji="emoji",zX.Endnote="endnote",zX.Endorsed="endorsed",zX.Envelope="envelope",zX.Equals="equals",zX.Eraser="eraser",zX.Error="error",zX.Euro="euro",zX.Excavator="excavator",zX.Exchange="exchange",zX.ExcludeRow="exclude-row",zX.ExpandAll="expand-all",zX.Explain="explain",zX.Export="export",zX.EyeOff="eye-off",zX.EyeOn="eye-on",zX.EyeOpen="eye-open",zX.FastBackward="fast-backward",zX.FastForward="fast-forward",zX.FeedSubscribed="feed-subscribed",zX.Feed="feed",zX.FighterJet="fighter-jet",zX.Film="film",zX.FilterKeep="filter-keep",zX.FilterList="filter-list",zX.FilterOpen="filter-open",zX.FilterRemove="filter-remove",zX.FilterSortAsc="filter-sort-asc",zX.FilterSortDesc="filter-sort-desc",zX.Filter="filter",zX.Flag="flag",zX.Flame="flame",zX.Flash="flash",zX.FloatingPoint="floating-point",zX.FloppyDisk="floppy-disk",zX.FlowBranch="flow-branch",zX.FlowEnd="flow-end",zX.FlowLinear="flow-linear",zX.FlowReviewBranch="flow-review-branch",zX.FlowReview="flow-review",zX.Flows="flows",zX.FolderClose="folder-close",zX.FolderNew="folder-new",zX.FolderOpen="folder-open",zX.FolderSharedOpen="folder-shared-open",zX.FolderShared="folder-shared",zX.Follower="follower",zX.Following="following",zX.Font="font",zX.Fork="fork",zX.Form="form",zX.ForwardTen="forward-ten",zX.Fuel="fuel",zX.FullCircle="full-circle",zX.FullStackedChart="full-stacked-chart",zX.Fullscreen="fullscreen",zX.Function="function",zX.GanttChart="gantt-chart",zX.Generate="generate",zX.Geofence="geofence",zX.Geolocation="geolocation",zX.Geosearch="geosearch",zX.Geotime="geotime",zX.GiftBox="gift-box",zX.GitBranch="git-branch",zX.GitCommit="git-commit",zX.GitMerge="git-merge",zX.GitNewBranch="git-new-branch",zX.GitPull="git-pull",zX.GitPush="git-push",zX.GitRepo="git-repo",zX.Glass="glass",zX.GlobeNetworkAdd="globe-network-add",zX.GlobeNetwork="globe-network",zX.Globe="globe",zX.GraphRemove="graph-remove",zX.Graph="graph",zX.GreaterThanOrEqualTo="greater-than-or-equal-to",zX.GreaterThan="greater-than",zX.GridView="grid-view",zX.Grid="grid",zX.GroupItem="group-item",zX.GroupObjects="group-objects",zX.GroupedBarChart="grouped-bar-chart",zX.HandDown="hand-down",zX.HandLeft="hand-left",zX.HandRight="hand-right",zX.HandUp="hand-up",zX.Hand="hand",zX.Hat="hat",zX.HeaderOne="header-one",zX.HeaderThree="header-three",zX.HeaderTwo="header-two",zX.Header="header",zX.Headset="headset",zX.HeartBroken="heart-broken",zX.Heart="heart",zX.HeatGrid="heat-grid",zX.Heatmap="heatmap",zX.Helicopter="helicopter",zX.Help="help",zX.HelperManagement="helper-management",zX.Hexagon="hexagon",zX.HighPriority="high-priority",zX.HighVoltagePole="high-voltage-pole",zX.Highlight="highlight",zX.History="history",zX.Home="home",zX.HorizontalBarChartAsc="horizontal-bar-chart-asc",zX.HorizontalBarChartDesc="horizontal-bar-chart-desc",zX.HorizontalBarChart="horizontal-bar-chart",zX.HorizontalDistribution="horizontal-distribution",zX.HorizontalInbetween="horizontal-inbetween",zX.Hurricane="hurricane",zX.IdNumber="id-number",zX.ImageRotateLeft="image-rotate-left",zX.ImageRotateRight="image-rotate-right",zX.Import="import",zX.InboxFiltered="inbox-filtered",zX.InboxGeo="inbox-geo",zX.InboxSearch="inbox-search",zX.InboxUpdate="inbox-update",zX.Inbox="inbox",zX.InfoSign="info-sign",zX.Inheritance="inheritance",zX.InheritedGroup="inherited-group",zX.InnerJoin="inner-join",zX.Input="input",zX.Insert="insert",zX.Intelligence="intelligence",zX.Intersection="intersection",zX.IpAddress="ip-address",zX.IssueClosed="issue-closed",zX.IssueNew="issue-new",zX.Issue="issue",zX.Italic="italic",zX.JoinTable="join-table",zX.KeyBackspace="key-backspace",zX.KeyCommand="key-command",zX.KeyControl="key-control",zX.KeyDelete="key-delete",zX.KeyEnter="key-enter",zX.KeyEscape="key-escape",zX.KeyOption="key-option",zX.KeyShift="key-shift",zX.KeyTab="key-tab",zX.Key="key",zX.KnownVehicle="known-vehicle",zX.LabTest="lab-test",zX.Label="label",zX.LayerOutline="layer-outline",zX.Layer="layer",zX.Layers="layers",zX.LayoutAuto="layout-auto",zX.LayoutBalloon="layout-balloon",zX.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",zX.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",zX.LayoutCircle="layout-circle",zX.LayoutGrid="layout-grid",zX.LayoutGroupBy="layout-group-by",zX.LayoutHierarchy="layout-hierarchy",zX.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",zX.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",zX.LayoutLinear="layout-linear",zX.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",zX.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",zX.LayoutSkewGrid="layout-skew-grid",zX.LayoutSortedClusters="layout-sorted-clusters",zX.LayoutThreeColumns="layout-three-columns",zX.LayoutThreeRows="layout-three-rows",zX.LayoutTopRowThreeTiles="layout-top-row-three-tiles",zX.LayoutTopRowTwoTiles="layout-top-row-two-tiles",zX.LayoutTwoColumns="layout-two-columns",zX.LayoutTwoRows="layout-two-rows",zX.Layout="layout",zX.Learning="learning",zX.LeftJoin="left-join",zX.LengthenText="lengthen-text",zX.LessThanOrEqualTo="less-than-or-equal-to",zX.LessThan="less-than",zX.Lifesaver="lifesaver",zX.Lightbulb="lightbulb",zX.Lightning="lightning",zX.Link="link",zX.LinkedSquares="linked-squares",zX.ListColumns="list-columns",zX.ListDetailView="list-detail-view",zX.List="list",zX.Locate="locate",zX.Lock="lock",zX.Locomotive="locomotive",zX.LogIn="log-in",zX.LogOut="log-out",zX.LowVoltagePole="low-voltage-pole",zX.Manual="manual",zX.ManuallyEnteredData="manually-entered-data",zX.ManyToMany="many-to-many",zX.ManyToOne="many-to-one",zX.MapCreate="map-create",zX.MapMarker="map-marker",zX.Map="map",zX.Maximize="maximize",zX.Media="media",zX.MenuClosed="menu-closed",zX.MenuOpen="menu-open",zX.Menu="menu",zX.MergeColumns="merge-columns",zX.MergeLinks="merge-links",zX.Microphone="microphone",zX.Minimize="minimize",zX.Minus="minus",zX.MobilePhone="mobile-phone",zX.MobileVideo="mobile-video",zX.ModalFilled="modal-filled",zX.Modal="modal",zX.Model="model",zX.Moon="moon",zX.More="more",zX.Mountain="mountain",zX.Move="move",zX.Mugshot="mugshot",zX.MultiSelect="multi-select",zX.Music="music",zX.Nest="nest",zX.NewDrawing="new-drawing",zX.NewGridItem="new-grid-item",zX.NewLayer="new-layer",zX.NewLayers="new-layers",zX.NewLink="new-link",zX.NewObject="new-object",zX.NewPerson="new-person",zX.NewPrescription="new-prescription",zX.NewShield="new-shield",zX.NewTextBox="new-text-box",zX.Ninja="ninja",zX.NotEqualTo="not-equal-to",zX.NotificationsAdd="notifications-add",zX.NotificationsSnooze="notifications-snooze",zX.NotificationsUpdated="notifications-updated",zX.Notifications="notifications",zX.NumberedList="numbered-list",zX.Numerical="numerical",zX.ObjectView="object-view",zX.Office="office",zX.Offline="offline",zX.OilField="oil-field",zX.OneColumn="one-column",zX.OneToMany="one-to-many",zX.OneToOne="one-to-one",zX.OpenApplication="open-application",zX.Outdated="outdated",zX.Output="output",zX.Package="package",zX.PageBreak="page-break",zX.PageLayout="page-layout",zX.PanelStats="panel-stats",zX.PanelTable="panel-table",zX.Panel="panel",zX.Paperclip="paperclip",zX.Paragraph="paragraph",zX.PasteVariable="paste-variable",zX.PathSearch="path-search",zX.Path="path",zX.Pause="pause",zX.People="people",zX.Percentage="percentage",zX.Person="person",zX.PhoneCall="phone-call",zX.PhoneForward="phone-forward",zX.PhoneSearch="phone-search",zX.Phone="phone",zX.PieChart="pie-chart",zX.Pill="pill",zX.Pin="pin",zX.Pistol="pistol",zX.PivotTable="pivot-table",zX.Pivot="pivot",zX.Play="play",zX.Playbook="playbook",zX.Plus="plus",zX.PolygonFilter="polygon-filter",zX.Power="power",zX.PredictiveAnalysis="predictive-analysis",zX.Prescription="prescription",zX.Presentation="presentation",zX.Print="print",zX.Projects="projects",zX.Properties="properties",zX.Property="property",zX.PublishFunction="publish-function",zX.Pulse="pulse",zX.Rain="rain",zX.Random="random",zX.RangeRing="range-ring",zX.Record="record",zX.RectHeight="rect-height",zX.RectWidth="rect-width",zX.Rectangle="rectangle",zX.Redo="redo",zX.Refresh="refresh",zX.Regex="regex",zX.RegressionChart="regression-chart",zX.RemoveColumnLeft="remove-column-left",zX.RemoveColumnRight="remove-column-right",zX.RemoveColumn="remove-column",zX.RemoveRowBottom="remove-row-bottom",zX.RemoveRowTop="remove-row-top",zX.Remove="remove",zX.Repeat="repeat",zX.Reset="reset",zX.Resolve="resolve",zX.Rig="rig",zX.RightJoin="right-join",zX.Ring="ring",zX.RocketSlant="rocket-slant",zX.Rocket="rocket",zX.RootFolder="root-folder",zX.RotateCcw="rotate-ccw",zX.RotateCw="rotate-cw",zX.RotateDocument="rotate-document",zX.RotatePage="rotate-page",zX.Route="route",zX.RunHistory="run-history",zX.Satellite="satellite",zX.Saved="saved",zX.ScatterPlot="scatter-plot",zX.SearchAround="search-around",zX.SearchTemplate="search-template",zX.SearchText="search-text",zX.Search="search",zX.SegmentedControl="segmented-control",zX.Select="select",zX.SelectionBoxAdd="selection-box-add",zX.SelectionBoxEdit="selection-box-edit",zX.SelectionBoxRemove="selection-box-remove",zX.SelectionBox="selection-box",zX.Selection="selection",zX.SendBackward="send-backward",zX.SendMessage="send-message",zX.SendToGraph="send-to-graph",zX.SendToMap="send-to-map",zX.SendTo="send-to",zX.Sensor="sensor",zX.SeriesAdd="series-add",zX.SeriesConfiguration="series-configuration",zX.SeriesDerived="series-derived",zX.SeriesFiltered="series-filtered",zX.SeriesSearch="series-search",zX.ServerInstall="server-install",zX.Server="server",zX.Settings="settings",zX.Shapes="shapes",zX.Share="share",zX.SharedFilter="shared-filter",zX.Shield="shield",zX.Ship="ship",zX.Shop="shop",zX.ShoppingCart="shopping-cart",zX.ShortenText="shorten-text",zX.SignalSearch="signal-search",zX.SimCard="sim-card",zX.Slash="slash",zX.SmallCross="small-cross",zX.SmallInfoSign="small-info-sign",zX.SmallMinus="small-minus",zX.SmallPlus="small-plus",zX.SmallSquare="small-square",zX.SmallTick="small-tick",zX.Snowflake="snowflake",zX.SoccerBall="soccer-ball",zX.SocialMedia="social-media",zX.SortAlphabeticalDesc="sort-alphabetical-desc",zX.SortAlphabetical="sort-alphabetical",zX.SortAsc="sort-asc",zX.SortDesc="sort-desc",zX.SortNumericalDesc="sort-numerical-desc",zX.SortNumerical="sort-numerical",zX.Sort="sort",zX.SpellCheck="spell-check",zX.SplitColumns="split-columns",zX.SportsStadium="sports-stadium",zX.Square="square",zX.StackedChart="stacked-chart",zX.StadiumGeometry="stadium-geometry",zX.StarEmpty="star-empty",zX.Star="star",zX.StepBackward="step-backward",zX.StepChart="step-chart",zX.StepForward="step-forward",zX.Stop="stop",zX.Stopwatch="stopwatch",zX.Strikethrough="strikethrough",zX.Style="style",zX.Subscript="subscript",zX.SubtractRightJoin="subtract-right-join",zX.Superscript="superscript",zX.SwapHorizontal="swap-horizontal",zX.SwapVertical="swap-vertical",zX.Sweep="sweep",zX.Switch="switch",zX.SymbolCircle="symbol-circle",zX.SymbolCross="symbol-cross",zX.SymbolDiamond="symbol-diamond",zX.SymbolRectangle="symbol-rectangle",zX.SymbolSquare="symbol-square",zX.SymbolTriangleDown="symbol-triangle-down",zX.SymbolTriangleUp="symbol-triangle-up",zX.Syringe="syringe",zX.TableSync="table-sync",zX.TagAdd="tag-add",zX.TagPromote="tag-promote",zX.TagRefresh="tag-refresh",zX.TagUndo="tag-undo",zX.Tag="tag",zX.Tags="tags",zX.TakeAction="take-action",zX.Tank="tank",zX.Target="target",zX.Taxi="taxi",zX.Team="team",zX.Temperature="temperature",zX.TextHighlight="text-highlight",zX.ThAdd="th-add",zX.ThDerived="th-derived",zX.ThDisconnect="th-disconnect",zX.ThFiltered="th-filtered",zX.ThListAdd="th-list-add",zX.ThList="th-list",zX.ThVirtualAdd="th-virtual-add",zX.ThVirtual="th-virtual",zX.Th="th",zX.ThirdParty="third-party",zX.ThumbsDown="thumbs-down",zX.ThumbsUp="thumbs-up",zX.TickCircle="tick-circle",zX.Tick="tick",zX.Time="time",zX.TimelineAreaChart="timeline-area-chart",zX.TimelineBarChart="timeline-bar-chart",zX.TimelineEvents="timeline-events",zX.TimelineLineChart="timeline-line-chart",zX.Tint="tint",zX.Torch="torch",zX.Tractor="tractor",zX.Train="train",zX.Translate="translate",zX.Trash="trash",zX.Tree="tree",zX.TrendingDown="trending-down",zX.TrendingUp="trending-up",zX.Trophy="trophy",zX.Truck="truck",zX.TwoColumns="two-columns",zX.Unarchive="unarchive",zX.Underline="underline",zX.Undo="undo",zX.UngroupObjects="ungroup-objects",zX.UnknownVehicle="unknown-vehicle",zX.Unlink="unlink",zX.Unlock="unlock",zX.Unpin="unpin",zX.Unresolve="unresolve",zX.Updated="updated",zX.Upload="upload",zX.User="user",zX.Variable="variable",zX.Vector="vector",zX.VerticalBarChartAsc="vertical-bar-chart-asc",zX.VerticalBarChartDesc="vertical-bar-chart-desc",zX.VerticalDistribution="vertical-distribution",zX.VerticalInbetween="vertical-inbetween",zX.Video="video",zX.Virus="virus",zX.VolumeDown="volume-down",zX.VolumeOff="volume-off",zX.VolumeUp="volume-up",zX.Walk="walk",zX.WarningSign="warning-sign",zX.WaterfallChart="waterfall-chart",zX.Waves="waves",zX.WidgetButton="widget-button",zX.WidgetFooter="widget-footer",zX.WidgetHeader="widget-header",zX.Widget="widget",zX.Wind="wind",zX.WrenchRedo="wrench-redo",zX.WrenchSnooze="wrench-snooze",zX.WrenchTime="wrench-time",zX.Wrench="wrench",zX.ZoomIn="zoom-in",zX.ZoomOut="zoom-out",zX.ZoomToFit="zoom-to-fit",(BT={})[BP.AddChild]="62365",BT[BP.AddClip]="61697",BT[BP.AddColumnLeft]="61698",BT[BP.AddColumnRight]="61699",BT[BP.AddLocation]="61700",BT[BP.AddParent]="62366",BT[BP.AddRowBottom]="61701",BT[BP.AddRowTop]="61702",BT[BP.AddToArtifact]="61703",BT[BP.AddToFolder]="61704",BT[BP.Add]="61705",BT[BP.AimpointsTarget]="62261",BT[BP.Airplane]="61706",BT[BP.AlignCenter]="61707",BT[BP.AlignJustify]="61708",BT[BP.AlignLeft]="61709",BT[BP.AlignRight]="61710",BT[BP.AlignmentBottom]="61711",BT[BP.AlignmentHorizontalCenter]="61712",BT[BP.AlignmentLeft]="61713",BT[BP.AlignmentRight]="61714",BT[BP.AlignmentTop]="61715",BT[BP.AlignmentVerticalCenter]="61716",BT[BP.Ammunition]="62274",BT[BP.Anchor]="62256",BT[BP.Annotation]="61717",BT[BP.Announcement]="62358",BT[BP.Antenna]="61718",BT[BP.AppHeader]="61719",BT[BP.Application]="61720",BT[BP.Applications]="61721",BT[BP.Archive]="61722",BT[BP.AreaOfInterest]="61723",BT[BP.ArrayBoolean]="61724",BT[BP.ArrayDate]="61725",BT[BP.ArrayFloatingPoint]="62253",BT[BP.ArrayNumeric]="61726",BT[BP.ArrayObject]="62356",BT[BP.ArrayString]="61727",BT[BP.ArrayTimestamp]="61728",BT[BP.Array]="61729",BT[BP.ArrowBottomLeft]="61730",BT[BP.ArrowBottomRight]="61731",BT[BP.ArrowDown]="61732",BT[BP.ArrowLeft]="61733",BT[BP.ArrowRight]="61734",BT[BP.ArrowTopLeft]="61735",BT[BP.ArrowTopRight]="61736",BT[BP.ArrowUp]="61737",BT[BP.ArrowsArc]="62343",BT[BP.ArrowsHorizontal]="61738",BT[BP.ArrowsVertical]="61739",BT[BP.Asterisk]="61740",BT[BP.At]="62257",BT[BP.AutomaticUpdates]="61741",BT[BP.Axle]="62264",BT[BP.Backlink]="61742",BT[BP.BackwardTen]="62300",BT[BP.Badge]="61743",BT[BP.BanCircle]="61744",BT[BP.BankAccount]="61745",BT[BP.Barcode]="61746",BT[BP.BinaryNumber]="62295",BT[BP.Blank]="61747",BT[BP.BlockPromote]="62322",BT[BP.BlockedPerson]="61748",BT[BP.Bold]="61749",BT[BP.Book]="61750",BT[BP.Bookmark]="61751",BT[BP.Box]="61752",BT[BP.BranchLocked]="62374",BT[BP.BranchUnlocked]="62375",BT[BP.Briefcase]="61753",BT[BP.BringData]="61754",BT[BP.BringForward]="62292",BT[BP.BritishPound]="62342",BT[BP.Bug]="62254",BT[BP.Buggy]="61755",BT[BP.Build]="61756",BT[BP.Bullseye]="62297",BT[BP.Calculator]="61757",BT[BP.Calendar]="61758",BT[BP.Camera]="61759",BT[BP.CaretDown]="61760",BT[BP.CaretLeft]="61761",BT[BP.CaretRight]="61762",BT[BP.CaretUp]="61763",BT[BP.CargoShip]="61764",BT[BP.CellTower]="61765",BT[BP.Changes]="61766",BT[BP.Chart]="61767",BT[BP.Chat]="61768",BT[BP.ChevronBackward]="61769",BT[BP.ChevronDown]="61770",BT[BP.ChevronForward]="61771",BT[BP.ChevronLeft]="61772",BT[BP.ChevronRight]="61773",BT[BP.ChevronUp]="61774",BT[BP.CircleArrowDown]="61775",BT[BP.CircleArrowLeft]="61776",BT[BP.CircleArrowRight]="61777",BT[BP.CircleArrowUp]="61778",BT[BP.Circle]="61779",BT[BP.Citation]="61780",BT[BP.Clean]="61781",BT[BP.Clip]="61782",BT[BP.ClipboardFile]="62299",BT[BP.Clipboard]="61783",BT[BP.CloudDownload]="61784",BT[BP.CloudServer]="62298",BT[BP.CloudTick]="62286",BT[BP.CloudUpload]="61785",BT[BP.Cloud]="61786",BT[BP.CodeBlock]="61787",BT[BP.Code]="61788",BT[BP.Cog]="61789",BT[BP.CollapseAll]="61790",BT[BP.ColorFill]="62248",BT[BP.ColumnLayout]="61791",BT[BP.Comment]="61792",BT[BP.Comparison]="61793",BT[BP.Compass]="61794",BT[BP.Compressed]="61795",BT[BP.Confirm]="61796",BT[BP.Console]="61797",BT[BP.Construction]="62357",BT[BP.Contrast]="61798",BT[BP.Control]="61799",BT[BP.CreditCard]="61800",BT[BP.Crop]="62291",BT[BP.CrossCircle]="62262",BT[BP.Cross]="61801",BT[BP.Crown]="61802",BT[BP.CssStyle]="62315",BT[BP.CubeAdd]="61803",BT[BP.CubeEdit]="62339",BT[BP.CubeRemove]="61804",BT[BP.Cube]="61805",BT[BP.Cubes]="62323",BT[BP.CurlyBraces]="62296",BT[BP.CurvedRangeChart]="61806",BT[BP.Cut]="61807",BT[BP.Cycle]="61808",BT[BP.Dashboard]="61809",BT[BP.DataCloud]="62353",BT[BP.DataConnection]="61810",BT[BP.DataLineage]="61811",BT[BP.DataSearch]="62319",BT[BP.DataSync]="62316",BT[BP.Database]="61812",BT[BP.DeleteClip]="62371",BT[BP.Delete]="61813",BT[BP.Delta]="61814",BT[BP.DeriveColumn]="61815",BT[BP.Desktop]="61816",BT[BP.Detection]="62273",BT[BP.Diagnosis]="61817",BT[BP.DiagramTree]="61818",BT[BP.DirectionLeft]="61819",BT[BP.DirectionRight]="61820",BT[BP.Disable]="61821",BT[BP.Divide]="62247",BT[BP.DocumentCode]="62368",BT[BP.DocumentLocked]="62369",BT[BP.DocumentOpen]="61822",BT[BP.DocumentShare]="61823",BT[BP.Document]="61824",BT[BP.Dollar]="61825",BT[BP.Dot]="61826",BT[BP.DoubleCaretHorizontal]="61827",BT[BP.DoubleCaretVertical]="61828",BT[BP.DoubleChevronDown]="61829",BT[BP.DoubleChevronLeft]="61830",BT[BP.DoubleChevronRight]="61831",BT[BP.DoubleChevronUp]="61832",BT[BP.DoughnutChart]="61833",BT[BP.Download]="61834",BT[BP.DragHandleHorizontal]="61835",BT[BP.DragHandleVertical]="61836",BT[BP.Draw]="61837",BT[BP.DrawerLeftFilled]="61838",BT[BP.DrawerLeft]="61839",BT[BP.DrawerRightFilled]="61840",BT[BP.DrawerRight]="61841",BT[BP.DriveTime]="61842",BT[BP.Duplicate]="61843",BT[BP.Edit]="61844",BT[BP.Eject]="61845",BT[BP.Emoji]="61846",BT[BP.Endnote]="62294",BT[BP.Endorsed]="61847",BT[BP.Envelope]="61848",BT[BP.Equals]="61849",BT[BP.Eraser]="61850",BT[BP.Error]="61851",BT[BP.Euro]="61852",BT[BP.Excavator]="62317",BT[BP.Exchange]="61853",BT[BP.ExcludeRow]="61854",BT[BP.ExpandAll]="61855",BT[BP.Explain]="62285",BT[BP.Export]="61856",BT[BP.EyeOff]="61857",BT[BP.EyeOn]="61858",BT[BP.EyeOpen]="61859",BT[BP.FastBackward]="61860",BT[BP.FastForward]="61861",BT[BP.FeedSubscribed]="61862",BT[BP.Feed]="61863",BT[BP.FighterJet]="62340",BT[BP.Film]="61864",BT[BP.FilterKeep]="61865",BT[BP.FilterList]="61866",BT[BP.FilterOpen]="61867",BT[BP.FilterRemove]="61868",BT[BP.FilterSortAsc]="62350",BT[BP.FilterSortDesc]="62351",BT[BP.Filter]="61869",BT[BP.Flag]="61870",BT[BP.Flame]="61871",BT[BP.Flash]="61872",BT[BP.FloatingPoint]="62252",BT[BP.FloppyDisk]="61873",BT[BP.FlowBranch]="61874",BT[BP.FlowEnd]="61875",BT[BP.FlowLinear]="61876",BT[BP.FlowReviewBranch]="61877",BT[BP.FlowReview]="61878",BT[BP.Flows]="61879",BT[BP.FolderClose]="61880",BT[BP.FolderNew]="61881",BT[BP.FolderOpen]="61882",BT[BP.FolderSharedOpen]="61883",BT[BP.FolderShared]="61884",BT[BP.Follower]="61885",BT[BP.Following]="61886",BT[BP.Font]="61887",BT[BP.Fork]="61888",BT[BP.Form]="61889",BT[BP.ForwardTen]="62301",BT[BP.Fuel]="62243",BT[BP.FullCircle]="61890",BT[BP.FullStackedChart]="61891",BT[BP.Fullscreen]="61892",BT[BP.Function]="61893",BT[BP.GanttChart]="61894",BT[BP.Generate]="62284",BT[BP.Geofence]="61895",BT[BP.Geolocation]="61896",BT[BP.Geosearch]="61897",BT[BP.Geotime]="62276",BT[BP.GiftBox]="62370",BT[BP.GitBranch]="61898",BT[BP.GitCommit]="61899",BT[BP.GitMerge]="61900",BT[BP.GitNewBranch]="61901",BT[BP.GitPull]="61902",BT[BP.GitPush]="61903",BT[BP.GitRepo]="61904",BT[BP.Glass]="61905",BT[BP.GlobeNetworkAdd]="62338",BT[BP.GlobeNetwork]="61906",BT[BP.Globe]="61907",BT[BP.GraphRemove]="61908",BT[BP.Graph]="61909",BT[BP.GreaterThanOrEqualTo]="61910",BT[BP.GreaterThan]="61911",BT[BP.GridView]="61912",BT[BP.Grid]="61913",BT[BP.GroupItem]="62282",BT[BP.GroupObjects]="61914",BT[BP.GroupedBarChart]="61915",BT[BP.HandDown]="61916",BT[BP.HandLeft]="61917",BT[BP.HandRight]="61918",BT[BP.HandUp]="61919",BT[BP.Hand]="61920",BT[BP.Hat]="61921",BT[BP.HeaderOne]="61922",BT[BP.HeaderThree]="61923",BT[BP.HeaderTwo]="61924",BT[BP.Header]="61925",BT[BP.Headset]="61926",BT[BP.HeartBroken]="61927",BT[BP.Heart]="61928",BT[BP.HeatGrid]="61929",BT[BP.Heatmap]="61930",BT[BP.Helicopter]="61931",BT[BP.Help]="61932",BT[BP.HelperManagement]="61933",BT[BP.Hexagon]="62324",BT[BP.HighPriority]="61934",BT[BP.HighVoltagePole]="62259",BT[BP.Highlight]="61935",BT[BP.History]="61936",BT[BP.Home]="61937",BT[BP.HorizontalBarChartAsc]="61938",BT[BP.HorizontalBarChartDesc]="61939",BT[BP.HorizontalBarChart]="61940",BT[BP.HorizontalDistribution]="61941",BT[BP.HorizontalInbetween]="62249",BT[BP.Hurricane]="61942",BT[BP.IdNumber]="61943",BT[BP.ImageRotateLeft]="61944",BT[BP.ImageRotateRight]="61945",BT[BP.Import]="61946",BT[BP.InboxFiltered]="61947",BT[BP.InboxGeo]="61948",BT[BP.InboxSearch]="61949",BT[BP.InboxUpdate]="61950",BT[BP.Inbox]="61951",BT[BP.InfoSign]="61952",BT[BP.Inheritance]="61953",BT[BP.InheritedGroup]="61954",BT[BP.InnerJoin]="61955",BT[BP.Input]="62283",BT[BP.Insert]="61956",BT[BP.Intelligence]="62263",BT[BP.Intersection]="61957",BT[BP.IpAddress]="61958",BT[BP.IssueClosed]="61959",BT[BP.IssueNew]="61960",BT[BP.Issue]="61961",BT[BP.Italic]="61962",BT[BP.JoinTable]="61963",BT[BP.KeyBackspace]="61964",BT[BP.KeyCommand]="61965",BT[BP.KeyControl]="61966",BT[BP.KeyDelete]="61967",BT[BP.KeyEnter]="61968",BT[BP.KeyEscape]="61969",BT[BP.KeyOption]="61970",BT[BP.KeyShift]="61971",BT[BP.KeyTab]="61972",BT[BP.Key]="61973",BT[BP.KnownVehicle]="61974",BT[BP.LabTest]="61975",BT[BP.Label]="61976",BT[BP.LayerOutline]="61977",BT[BP.Layer]="61978",BT[BP.Layers]="61979",BT[BP.LayoutAuto]="61980",BT[BP.LayoutBalloon]="61981",BT[BP.LayoutBottomRowThreeTiles]="62308",BT[BP.LayoutBottomRowTwoTiles]="62307",BT[BP.LayoutCircle]="61982",BT[BP.LayoutGrid]="61983",BT[BP.LayoutGroupBy]="61984",BT[BP.LayoutHierarchy]="61985",BT[BP.LayoutLeftColumnThreeTiles]="62310",BT[BP.LayoutLeftColumnTwoTiles]="62309",BT[BP.LayoutLinear]="61986",BT[BP.LayoutRightColumnThreeTiles]="62312",BT[BP.LayoutRightColumnTwoTiles]="62311",BT[BP.LayoutSkewGrid]="61987",BT[BP.LayoutSortedClusters]="61988",BT[BP.LayoutThreeColumns]="62305",BT[BP.LayoutThreeRows]="62306",BT[BP.LayoutTopRowThreeTiles]="62314",BT[BP.LayoutTopRowTwoTiles]="62313",BT[BP.LayoutTwoColumns]="62303",BT[BP.LayoutTwoRows]="62304",BT[BP.Layout]="61989",BT[BP.Learning]="61990",BT[BP.LeftJoin]="61991",BT[BP.LengthenText]="62270",BT[BP.LessThanOrEqualTo]="61992",BT[BP.LessThan]="61993",BT[BP.Lifesaver]="61994",BT[BP.Lightbulb]="61995",BT[BP.Lightning]="61996",BT[BP.Link]="61997",BT[BP.LinkedSquares]="62341",BT[BP.ListColumns]="61998",BT[BP.ListDetailView]="61999",BT[BP.List]="62000",BT[BP.Locate]="62001",BT[BP.Lock]="62002",BT[BP.Locomotive]="62267",BT[BP.LogIn]="62003",BT[BP.LogOut]="62004",BT[BP.LowVoltagePole]="62258",BT[BP.Manual]="62005",BT[BP.ManuallyEnteredData]="62006",BT[BP.ManyToMany]="62007",BT[BP.ManyToOne]="62008",BT[BP.MapCreate]="62009",BT[BP.MapMarker]="62010",BT[BP.Map]="62011",BT[BP.Maximize]="62012",BT[BP.Media]="62013",BT[BP.MenuClosed]="62014",BT[BP.MenuOpen]="62015",BT[BP.Menu]="62016",BT[BP.MergeColumns]="62017",BT[BP.MergeLinks]="62018",BT[BP.Microphone]="62275",BT[BP.Minimize]="62019",BT[BP.Minus]="62020",BT[BP.MobilePhone]="62021",BT[BP.MobileVideo]="62022",BT[BP.ModalFilled]="62023",BT[BP.Modal]="62024",BT[BP.Model]="62269",BT[BP.Moon]="62025",BT[BP.More]="62026",BT[BP.Mountain]="62027",BT[BP.Move]="62028",BT[BP.Mugshot]="62029",BT[BP.MultiSelect]="62030",BT[BP.Music]="62031",BT[BP.Nest]="62032",BT[BP.NewDrawing]="62033",BT[BP.NewGridItem]="62034",BT[BP.NewLayer]="62035",BT[BP.NewLayers]="62036",BT[BP.NewLink]="62037",BT[BP.NewObject]="62038",BT[BP.NewPerson]="62039",BT[BP.NewPrescription]="62040",BT[BP.NewShield]="62281",BT[BP.NewTextBox]="62041",BT[BP.Ninja]="62042",BT[BP.NotEqualTo]="62043",BT[BP.NotificationsAdd]="62360",BT[BP.NotificationsSnooze]="62044",BT[BP.NotificationsUpdated]="62045",BT[BP.Notifications]="62046",BT[BP.NumberedList]="62047",BT[BP.Numerical]="62048",BT[BP.ObjectView]="62352",BT[BP.Office]="62049",BT[BP.Offline]="62050",BT[BP.OilField]="62051",BT[BP.OneColumn]="62052",BT[BP.OneToMany]="62053",BT[BP.OneToOne]="62054",BT[BP.OpenApplication]="62251",BT[BP.Outdated]="62055",BT[BP.Output]="62320",BT[BP.Package]="62325",BT[BP.PageBreak]="62373",BT[BP.PageLayout]="62056",BT[BP.PanelStats]="62057",BT[BP.PanelTable]="62058",BT[BP.Panel]="62337",BT[BP.Paperclip]="62059",BT[BP.Paragraph]="62060",BT[BP.PasteVariable]="62278",BT[BP.PathSearch]="62061",BT[BP.Path]="62062",BT[BP.Pause]="62063",BT[BP.People]="62064",BT[BP.Percentage]="62065",BT[BP.Person]="62066",BT[BP.PhoneCall]="62279",BT[BP.PhoneForward]="62280",BT[BP.PhoneSearch]="62359",BT[BP.Phone]="62067",BT[BP.PieChart]="62068",BT[BP.Pill]="62326",BT[BP.Pin]="62069",BT[BP.Pistol]="62364",BT[BP.PivotTable]="62070",BT[BP.Pivot]="62071",BT[BP.Play]="62072",BT[BP.Playbook]="62244",BT[BP.Plus]="62073",BT[BP.PolygonFilter]="62074",BT[BP.Power]="62075",BT[BP.PredictiveAnalysis]="62076",BT[BP.Prescription]="62077",BT[BP.Presentation]="62078",BT[BP.Print]="62079",BT[BP.Projects]="62080",BT[BP.Properties]="62081",BT[BP.Property]="62082",BT[BP.PublishFunction]="62083",BT[BP.Pulse]="62084",BT[BP.Rain]="62085",BT[BP.Random]="62086",BT[BP.RangeRing]="62321",BT[BP.Record]="62087",BT[BP.RectHeight]="62245",BT[BP.RectWidth]="62246",BT[BP.Rectangle]="62241",BT[BP.Redo]="62088",BT[BP.Refresh]="62089",BT[BP.Regex]="62255",BT[BP.RegressionChart]="62090",BT[BP.RemoveColumnLeft]="62091",BT[BP.RemoveColumnRight]="62092",BT[BP.RemoveColumn]="62093",BT[BP.RemoveRowBottom]="62094",BT[BP.RemoveRowTop]="62095",BT[BP.Remove]="62096",BT[BP.Repeat]="62097",BT[BP.Reset]="62098",BT[BP.Resolve]="62099",BT[BP.Rig]="62100",BT[BP.RightJoin]="62101",BT[BP.Ring]="62102",BT[BP.RocketSlant]="62103",BT[BP.Rocket]="62104",BT[BP.RootFolder]="62367",BT[BP.RotateCcw]="62345",BT[BP.RotateCw]="62344",BT[BP.RotateDocument]="62105",BT[BP.RotatePage]="62106",BT[BP.Route]="62107",BT[BP.RunHistory]="62355",BT[BP.Satellite]="62108",BT[BP.Saved]="62109",BT[BP.ScatterPlot]="62110",BT[BP.SearchAround]="62111",BT[BP.SearchTemplate]="62112",BT[BP.SearchText]="62113",BT[BP.Search]="62114",BT[BP.SegmentedControl]="62115",BT[BP.Select]="62116",BT[BP.SelectionBoxAdd]="62362",BT[BP.SelectionBoxEdit]="62363",BT[BP.SelectionBoxRemove]="62376",BT[BP.SelectionBox]="62361",BT[BP.Selection]="62117",BT[BP.SendBackward]="62293",BT[BP.SendMessage]="62118",BT[BP.SendToGraph]="62119",BT[BP.SendToMap]="62120",BT[BP.SendTo]="62121",BT[BP.Sensor]="62268",BT[BP.SeriesAdd]="62122",BT[BP.SeriesConfiguration]="62123",BT[BP.SeriesDerived]="62124",BT[BP.SeriesFiltered]="62125",BT[BP.SeriesSearch]="62126",BT[BP.ServerInstall]="62327",BT[BP.Server]="62328",BT[BP.Settings]="62127",BT[BP.Shapes]="62128",BT[BP.Share]="62129",BT[BP.SharedFilter]="62130",BT[BP.Shield]="62131",BT[BP.Ship]="62132",BT[BP.Shop]="62133",BT[BP.ShoppingCart]="62134",BT[BP.ShortenText]="62271",BT[BP.SignalSearch]="62135",BT[BP.SimCard]="62136",BT[BP.Slash]="62137",BT[BP.SmallCross]="62138",BT[BP.SmallInfoSign]="62260",BT[BP.SmallMinus]="62139",BT[BP.SmallPlus]="62140",BT[BP.SmallSquare]="62141",BT[BP.SmallTick]="62142",BT[BP.Snowflake]="62143",BT[BP.SoccerBall]="62288",BT[BP.SocialMedia]="62144",BT[BP.SortAlphabeticalDesc]="62145",BT[BP.SortAlphabetical]="62146",BT[BP.SortAsc]="62147",BT[BP.SortDesc]="62148",BT[BP.SortNumericalDesc]="62149",BT[BP.SortNumerical]="62150",BT[BP.Sort]="62151",BT[BP.SpellCheck]="62272",BT[BP.SplitColumns]="62152",BT[BP.SportsStadium]="62289",BT[BP.Square]="62153",BT[BP.StackedChart]="62154",BT[BP.StadiumGeometry]="62155",BT[BP.StarEmpty]="62156",BT[BP.Star]="62157",BT[BP.StepBackward]="62158",BT[BP.StepChart]="62159",BT[BP.StepForward]="62160",BT[BP.Stop]="62161",BT[BP.Stopwatch]="62162",BT[BP.Strikethrough]="62163",BT[BP.Style]="62164",BT[BP.Subscript]="62265",BT[BP.SubtractRightJoin]="62354",BT[BP.Superscript]="62266",BT[BP.SwapHorizontal]="62165",BT[BP.SwapVertical]="62166",BT[BP.Sweep]="62372",BT[BP.Switch]="62167",BT[BP.SymbolCircle]="62168",BT[BP.SymbolCross]="62169",BT[BP.SymbolDiamond]="62170",BT[BP.SymbolRectangle]="62242",BT[BP.SymbolSquare]="62171",BT[BP.SymbolTriangleDown]="62172",BT[BP.SymbolTriangleUp]="62173",BT[BP.Syringe]="62174",BT[BP.TableSync]="62318",BT[BP.TagAdd]="62329",BT[BP.TagPromote]="62330",BT[BP.TagRefresh]="62331",BT[BP.TagUndo]="62332",BT[BP.Tag]="62175",BT[BP.Tags]="62333",BT[BP.TakeAction]="62176",BT[BP.Tank]="62177",BT[BP.Target]="62178",BT[BP.Taxi]="62179",BT[BP.Team]="62290",BT[BP.Temperature]="62180",BT[BP.TextHighlight]="62181",BT[BP.ThAdd]="62346",BT[BP.ThDerived]="62182",BT[BP.ThDisconnect]="62183",BT[BP.ThFiltered]="62184",BT[BP.ThListAdd]="62347",BT[BP.ThList]="62185",BT[BP.ThVirtualAdd]="62349",BT[BP.ThVirtual]="62348",BT[BP.Th]="62186",BT[BP.ThirdParty]="62187",BT[BP.ThumbsDown]="62188",BT[BP.ThumbsUp]="62189",BT[BP.TickCircle]="62190",BT[BP.Tick]="62191",BT[BP.Time]="62192",BT[BP.TimelineAreaChart]="62193",BT[BP.TimelineBarChart]="62194",BT[BP.TimelineEvents]="62195",BT[BP.TimelineLineChart]="62196",BT[BP.Tint]="62197",BT[BP.Torch]="62198",BT[BP.Tractor]="62199",BT[BP.Train]="62200",BT[BP.Translate]="62201",BT[BP.Trash]="62202",BT[BP.Tree]="62203",BT[BP.TrendingDown]="62204",BT[BP.TrendingUp]="62205",BT[BP.Trophy]="62287",BT[BP.Truck]="62206",BT[BP.TwoColumns]="62207",BT[BP.Unarchive]="62208",BT[BP.Underline]="62209",BT[BP.Undo]="62210",BT[BP.UngroupObjects]="62211",BT[BP.UnknownVehicle]="62212",BT[BP.Unlink]="62277",BT[BP.Unlock]="62213",BT[BP.Unpin]="62214",BT[BP.Unresolve]="62215",BT[BP.Updated]="62216",BT[BP.Upload]="62217",BT[BP.User]="62218",BT[BP.Variable]="62219",BT[BP.Vector]="62302",BT[BP.VerticalBarChartAsc]="62220",BT[BP.VerticalBarChartDesc]="62221",BT[BP.VerticalDistribution]="62222",BT[BP.VerticalInbetween]="62250",BT[BP.Video]="62223",BT[BP.Virus]="62224",BT[BP.VolumeDown]="62225",BT[BP.VolumeOff]="62226",BT[BP.VolumeUp]="62227",BT[BP.Walk]="62228",BT[BP.WarningSign]="62229",BT[BP.WaterfallChart]="62230",BT[BP.Waves]="62231",BT[BP.WidgetButton]="62232",BT[BP.WidgetFooter]="62233",BT[BP.WidgetHeader]="62234",BT[BP.Widget]="62235",BT[BP.Wind]="62236",BT[BP.WrenchRedo]="62334",BT[BP.WrenchSnooze]="62335",BT[BP.WrenchTime]="62336",BT[BP.Wrench]="62237",BT[BP.ZoomIn]="62238",BT[BP.ZoomOut]="62239",BT[BP.ZoomToFit]="62240";for(var Cz={},CB={},CF=0,CH=Object.values(BP);CF<CH.length;CF++){var CV=CH[CF];Cz[(0,Cj.pascalCase)(CV)]=CV,CB[(function(e,t){var n;return void 0===t&&(t={}),void 0===(n=(0,m_.__assign)({delimiter:"_"},t))&&(n={}),(0,CD.noCase)(e,(0,m_.__assign)({delimiter:"."},n))})(CV).toUpperCase()]=CV}var CU=(0,m_.__assign)((0,m_.__assign)({},Cz),CB),CW=new Set(Object.values(CU)),Cq=C("leH9B"),m_=C("gztBd"),C$=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(e){void 0!==e.loader&&(CG.defaultLoader=e.loader)},e.load=function(e,t,n){return(0,m_.__awaiter)(this,void 0,void 0,function(){var r=this;return(0,m_.__generator)(this,function(i){switch(i.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(e){return r.loadImpl(e,t,n)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(e){return(0,m_.__awaiter)(this,void 0,void 0,function(){var t,n=this;return(0,m_.__generator)(this,function(r){return t=Object.values(CU),!function(e,t){(0,m_.__awaiter)(this,void 0,void 0,function(){var n,r,i;return(0,m_.__generator)(this,function(a){switch(a.label){case 0:return(n="u">typeof NODE_ENV&&"development"===NODE_ENV&&"u">typeof performance)&&(r=performance.now(),console.info("Started '".concat(e,"'..."))),[4,t()];case 1:return a.sent(),n&&(i=Math.round(performance.now()-r),console.info("Finished '".concat(e,"' in ").concat(i,"ms"))),[2]}})})}("[Blueprint] loading all icons",function(){return(0,m_.__awaiter)(n,void 0,void 0,function(){return(0,m_.__generator)(this,function(n){switch(n.label){case 0:return[4,Promise.all([this.load(t,Cq.IconSize.STANDARD,e),this.load(t,Cq.IconSize.LARGE,e)])];case 1:return n.sent(),[2]}})})}),[2]})})},e.getPaths=function(e,t){if(this.isValidIconName(e))return(t<Cq.IconSize.LARGE?CG.loadedIconPaths16:CG.loadedIconPaths20).get(e)},e.loadImpl=function(e,t,n){return void 0===n&&(n={}),(0,m_.__awaiter)(this,void 0,void 0,function(){var r,i,a,o,l;return(0,m_.__generator)(this,function(s){switch(s.label){case 0:if(!this.isValidIconName(e))return console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2];if((r=t<Cq.IconSize.LARGE?CG.loadedIconPaths16:CG.loadedIconPaths20).has(e))return[2];return[4,function(e){return(0,m_.__awaiter)(this,void 0,void 0,function(){var t,n;return(0,m_.__generator)(this,function(r){switch(r.label){case 0:if("function"!=typeof(n=void 0===(t=e.loader)?CG.defaultLoader:t))return[3,1];return[2,n];case 1:if("all"!==n)return[3,3];return[4,C("aymz8")];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,C("bm3dq")];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}(n)];case 1:i=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),a=t<Cq.IconSize.LARGE?Cq.IconSize.STANDARD:Cq.IconSize.LARGE,[4,i(e,a)];case 3:return o=s.sent(),r.set(e,o),[3,5];case 4:return l=s.sent(),console.error("[Blueprint] Unable to load ".concat(t,"px icon '").concat(e,"'"),l),[3,5];case 5:return[2]}})})},e.isValidIconName=function(e){return CW.has(e)},e}(),CG=new C$,Cq=C("leH9B"),m_=C("gztBd"),_=C("8NFma"),CK="".concat("bp5","-icon"),Cq=C("leH9B"),CX=new Map,CY=_.forwardRef(function(e,t){var n,r,i,a=e.children,o=e.className,l=e.color,s=e.htmlTitle,c=e.iconName,u=e.size,d=void 0===u?Cq.IconSize.STANDARD:u,h=e.svgProps,f=e.tagName,p=void 0===f?"span":f,g=e.title,m=(0,m_.__rest)(e,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=d>=Cq.IconSize.LARGE?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,v="0 0 ".concat(b," ").concat(b),x=(n="iconTitle",i=null!=(r=CX.get(n))?r:0,CX.set(n,i+1),"".concat(n,"-").concat(i)),w=(0,m_.__assign)({fill:l,height:d,role:"img",viewBox:v,width:d},h);return null===p?_.createElement("svg",(0,m_.__assign)({"aria-labelledby":g?x:void 0,"data-icon":c,ref:t},w,m,{className:y(mE)(o,null==h?void 0:h.className)}),g&&_.createElement("title",{id:x},g),a):_.createElement(p,(0,m_.__assign)((0,m_.__assign)({"aria-hidden":!g||void 0},m),{className:y(mE)(CK,"".concat(CK,"-").concat(c),o),ref:t,title:s}),_.createElement("svg",(0,m_.__assign)({"data-icon":c},w,{className:null==h?void 0:h.className}),g&&_.createElement("title",null,g),a))});CY.displayName="Blueprint5.SVGIconContainer";var CZ=_.forwardRef(function(e,t){var n,r,i=e.autoLoad,a=void 0===i||i,o=e.className,l=e.color,s=e.icon,c=e.intent,u=e.tagName,d=void 0===u?"span":u,h=e.svgProps,f=e.title,p=e.htmlTitle,g=(0,m_.__rest)(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=null!=(r=null!=(n=e.iconSize)?n:e.size)?r:Cq.IconSize.STANDARD,b=_.useState(function(){return"string"==typeof s?C$.getPaths(s,m):void 0}),v=b[0],x=b[1];if(_.useEffect(function(){var e=!1;if("string"==typeof s){var t=C$.getPaths(s,m);void 0!==t?x(t):a?C$.load(s,m).then(function(){e||x(C$.getPaths(s,m))}).catch(function(e){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),e)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){e=!0}},[a,s,m]),null==s||"boolean"==typeof s)return null;if("string"!=typeof s)return s;if(null==v){var w=m===Cq.IconSize.STANDARD?yK.ICON_STANDARD:m===Cq.IconSize.LARGE?yK.ICON_LARGE:void 0;return _.createElement(d||"span",(0,m_.__assign)((0,m_.__assign)({"aria-hidden":!f||void 0},CN(g)),{className:y(mE)(yK.ICON,w,yK.iconClass(s),yK.intentClass(c),o),"data-icon":s,ref:t,title:p}))}var C=v.map(function(e,t){return _.createElement("path",{d:e,key:t,fillRule:"evenodd"})});return _.createElement(CY,(0,m_.__assign)({children:C,className:y(mE)(yK.intentClass(c),o),color:l,htmlTitle:p,iconName:s,ref:t,size:m,svgProps:h,tagName:d,title:f},CN(g)))});CZ.displayName="".concat(CM,".Icon");var m_=C("gztBd"),_=(C("8NFma"),C("8NFma"));function CQ(e,t){void 0===t&&(t=[]),_.useEffect(function(){yP("production")||e()},t)}(zY=BO||(BO={}))[zY.SMALL=20]="SMALL",zY[zY.STANDARD=50]="STANDARD",zY[zY.LARGE=100]="LARGE";var CJ="M 50,50 m 0,-".concat(45," a ").concat(45,",").concat(45," 0 1 1 0,").concat(90," a ").concat(45,",").concat(45," 0 1 1 0,-").concat(90),C0=function(e){var t,n=e.className,r=void 0===n?"":n,i=e.intent,a=e.value,o=e.tagName,l=void 0===o?"div":o,s=e.size,c=(0,m_.__rest)(e,["className","intent","value","tagName","size"]);CQ(function(){var e=null!=s,t=r.indexOf(yK.SMALL)>=0||r.indexOf(yK.LARGE)>=0;e&&t&&console.warn(yw)},[r,s]);var u=C1(s,r),d=Math.min(16,4*BO.LARGE/u),h=280-280*(null==a?.25:yA(a,0,1)),f=y(mE)(yK.SPINNER,yK.intentClass(i),((t={})[yK.SPINNER_NO_SPIN]=null!=a,t),r);return _.createElement(l,(0,m_.__assign)({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":void 0===a?void 0:100*a,className:f,role:"progressbar"},c),_.createElement(l,{className:yK.SPINNER_ANIMATION},_.createElement("svg",{width:u,height:u,strokeWidth:d.toFixed(2),viewBox:C2(d)},_.createElement("path",{className:yK.SPINNER_TRACK,d:CJ}),_.createElement("path",{className:yK.SPINNER_HEAD,d:CJ,pathLength:280,strokeDasharray:"".concat(280," ").concat(280),strokeDashoffset:h}))))};C0.displayName="".concat(CM,".Spinner");var C1=function(e,t){return null==e?t.indexOf(yK.SMALL)>=0?BO.SMALL:t.indexOf(yK.LARGE)>=0?BO.LARGE:BO.STANDARD:Math.max(10,e)},C2=function(e){var t=45+e/2,n=(50-t).toFixed(2),r=(2*t).toFixed(2);return"".concat(n," ").concat(n," ").concat(r," ").concat(r)},m_=C("gztBd"),_=(C("8NFma"),C("8NFma")),C4=mW()?_.useLayoutEffect:_.useEffect,C3=_.forwardRef(function(e,t){var n,r=e.children,i=e.tagName,a=e.title,o=e.className,l=e.ellipsize,s=void 0!==l&&l,c=(0,m_.__rest)(e,["children","tagName","title","className","ellipsize"]),u=_.useRef(),d=_.useMemo(function(){return mA(u,t)},[t]),h=_.useState(""),f=h[0],p=h[1],g=_.useState(),m=g[0],b=g[1];return C4(function(){var e;(null==(e=u.current)?void 0:e.textContent)!=null&&(b(s&&u.current.scrollWidth>u.current.clientWidth),p(u.current.textContent))},[u,r,s]),_.createElement(void 0===i?"div":i,(0,m_.__assign)((0,m_.__assign)({},c),{className:y(mE)(((n={})[yK.TEXT_OVERFLOW_ELLIPSIS]=s,n),o),ref:d,title:null!=a?a:m?f:void 0}),r)});C3.displayName="".concat(CM,".Text");var C8=_.forwardRef(function(e,t){var n=C6(e,t);return _.createElement("button",(0,m_.__assign)({type:"button"},CN(e),n),C5(e))});function C6(e,t,n){var r,i=e.alignText,a=e.fill,o=e.large,l=e.loading,s=void 0!==l&&l,c=e.minimal,u=e.outlined,d=e.size,h=e.small,f=e.variant,p=e.disabled||s,g=CR(!p,e,t,n),m=g[0],b=g[1],v=y(mE)(yK.BUTTON,((r={})[yK.ACTIVE]=m,r[yK.DISABLED]=p,r[yK.FILL]=a,r[yK.LOADING]=s,r),yK.alignmentClass(i),yK.intentClass(e.intent),yK.sizeClass(void 0===d?"medium":d,{large:o,small:h}),yK.variantClass(void 0===f?"solid":f,{minimal:c,outlined:u}),e.className);return(0,m_.__assign)((0,m_.__assign)({},b),{className:v,disabled:p})}function C5(e){var t=e.children,n=e.ellipsizeText,r=e.endIcon,i=e.icon,a=e.loading,o=e.rightIcon,l=e.text,s=e.textClassName,c=!mL.isReactNodeEmpty(l)||!mL.isReactNodeEmpty(t);return _.createElement(_.Fragment,null,a&&_.createElement(C0,{className:yK.BUTTON_SPINNER,size:BO.SMALL}),_.createElement(CZ,{icon:i}),c&&_.createElement(C3,{className:y(mE)(yK.BUTTON_TEXT,s),ellipsize:n,tagName:"span"},l,t),_.createElement(CZ,{icon:null!=r?r:o}))}C8.displayName="".concat(CM,".Button"),_.forwardRef(function(e,t){var n=e.href,r=C6(e,t,{defaultTabIndex:0,disabledTabIndex:-1});return _.createElement("a",(0,m_.__assign)({role:"button"},CN(e),r,{"aria-disabled":r.disabled,href:r.disabled?void 0:n}),C5(e))}).displayName="".concat(CM,".AnchorButton");var m_=C("gztBd"),_=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),C9=function(e){function t(t){var n=e.call(this,t)||this;return n.timeoutIds=[],n.requestIds=[],n.clearTimeouts=function(){if(n.timeoutIds.length>0){for(var e=0,t=n.timeoutIds;e<t.length;e++){var r=t[e];window.clearTimeout(r)}n.timeoutIds=[]}},n.cancelAnimationFrames=function(){if(n.requestIds.length>0){for(var e=0,t=n.requestIds;e<t.length;e++){var r=t[e];window.cancelAnimationFrame(r)}n.requestIds=[]}},yP("production")||n.validateProps(n.props),n}return(0,m_.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t,n){yP("production")||this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}(_.PureComponent),m_=C("gztBd"),_=(C("8NFma"),C("8NFma")),C7=_.createContext(),ke=_.createContext();function kt(e){var t=e.children,n=_.useState(null),r=n[0],i=n[1],a=_.useRef(!1);_.useEffect(function(){return function(){a.current=!0}},[]);var o=_.useCallback(function(e){a.current||i(e)},[]);return _.createElement(C7.Provider,{value:r},_.createElement(ke.Provider,{value:o},t))}var _=(C("8NFma"),C("8NFma")),kn=function(e){return Array.isArray(e)?e[0]:e},kr=function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},ki=function(e,t){if("function"==typeof e)return kr(e,t);null!=e&&(e.current=t)},ka=function(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e},{})},ko="u">typeof window&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,_=C("8NFma");function kl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ks(e){var t=kl(e).Element;return e instanceof t||e instanceof Element}function kc(e){var t=kl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ku(e){if("u"<typeof ShadowRoot)return!1;var t=kl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var kd=Math.max,kh=Math.min,kf=Math.round;function kp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function kg(){return!/^((?!chrome|android).)*safari/i.test(kp())}function km(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&kc(e)&&(i=e.offsetWidth>0&&kf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kf(r.height)/e.offsetHeight||1);var o=(ks(e)?kl(e):window).visualViewport,l=!kg()&&n,s=(r.left+(l&&o?o.offsetLeft:0))/i,c=(r.top+(l&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ky(e){var t=kl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kb(e){return e?(e.nodeName||"").toLowerCase():null}function kv(e){return((ks(e)?e.ownerDocument:e.document)||window.document).documentElement}function kx(e){return km(kv(e)).left+ky(e).scrollLeft}function kw(e){return kl(e).getComputedStyle(e)}function kC(e){var t=kw(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function kk(e){var t=km(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function kS(e){return"html"===kb(e)?e:e.assignedSlot||e.parentNode||(ku(e)?e.host:null)||kv(e)}function k_(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(kb(t))>=0?t.ownerDocument.body:kc(t)&&kC(t)?t:e(kS(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=kl(r),o=i?[a].concat(a.visualViewport||[],kC(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(k_(kS(o)))}function kE(e){return kc(e)&&"fixed"!==kw(e).position?e.offsetParent:null}function kT(e){for(var t=kl(e),n=kE(e);n&&["table","td","th"].indexOf(kb(n))>=0&&"static"===kw(n).position;)n=kE(n);return n&&("html"===kb(n)||"body"===kb(n)&&"static"===kw(n).position)?t:n||function(e){var t=/firefox/i.test(kp());if(/Trident/i.test(kp())&&kc(e)&&"fixed"===kw(e).position)return null;var n=kS(e);for(ku(n)&&(n=n.host);kc(n)&&0>["html","body"].indexOf(kb(n));){var r=kw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var kP="bottom",kO="right",kI="left",kA="auto",kR=["top",kP,kO,kI],kM="start",kL="viewport",kN="popper",kj=kR.reduce(function(e,t){return e.concat([t+"-"+kM,t+"-end"])},[]),kD=[].concat(kR,[kA]).reduce(function(e,t){return e.concat([t,t+"-"+kM,t+"-end"])},[]),kz=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],kB={placement:"bottom",modifiers:[],strategy:"absolute"};function kF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var kH={passive:!0};function kV(e){return e.split("-")[0]}function kU(e){return e.split("-")[1]}function kW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kq(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?kV(i):null,o=i?kU(i):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:l,y:n.y-r.height};break;case kP:t={x:l,y:n.y+n.height};break;case kO:t={x:n.x+n.width,y:s};break;case kI:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?kW(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case kM:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var k$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kG(e){var t,n,r,i,a,o,l,s=e.popper,c=e.popperRect,u=e.placement,d=e.variation,h=e.offsets,f=e.position,p=e.gpuAcceleration,g=e.adaptive,m=e.roundOffsets,y=e.isFixed,b=h.x,v=void 0===b?0:b,x=h.y,w=void 0===x?0:x,C="function"==typeof m?m({x:v,y:w}):{x:v,y:w};v=C.x,w=C.y;var k=h.hasOwnProperty("x"),S=h.hasOwnProperty("y"),_=kI,E="top",T=window;if(g){var P=kT(s),O="clientHeight",I="clientWidth";P===kl(s)&&"static"!==kw(P=kv(s)).position&&"absolute"===f&&(O="scrollHeight",I="scrollWidth"),("top"===u||(u===kI||u===kO)&&"end"===d)&&(E=kP,w-=(y&&P===T&&T.visualViewport?T.visualViewport.height:P[O])-c.height,w*=p?1:-1),(u===kI||("top"===u||u===kP)&&"end"===d)&&(_=kO,v-=(y&&P===T&&T.visualViewport?T.visualViewport.width:P[I])-c.width,v*=p?1:-1)}var A=Object.assign({position:f},g&&k$),R=!0===m?(t={x:v,y:w},n=kl(s),r=t.x,i=t.y,{x:kf(r*(a=n.devicePixelRatio||1))/a||0,y:kf(i*a)/a||0}):{x:v,y:w};return(v=R.x,w=R.y,p)?Object.assign({},A,((l={})[E]=S?"0":"",l[_]=k?"0":"",l.transform=1>=(T.devicePixelRatio||1)?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",l)):Object.assign({},A,((o={})[E]=S?w+"px":"",o[_]=k?v+"px":"",o.transform="",o))}var kK={left:"right",right:"left",bottom:"top",top:"bottom"};function kX(e){return e.replace(/left|right|bottom|top/g,function(e){return kK[e]})}var kY={start:"end",end:"start"};function kZ(e){return e.replace(/start|end/g,function(e){return kY[e]})}function kQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ku(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kJ(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k0(e,t,n){var r,i,a,o,l,s,c,u,d,h;return t===kL?kJ(function(e,t){var n=kl(e),r=kv(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;var c=kg();(c||!c&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l+kx(e),y:s}}(e,n)):ks(t)?((r=km(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):kJ((i=kv(e),o=kv(i),l=ky(i),s=null==(a=i.ownerDocument)?void 0:a.body,c=kd(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=kd(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-l.scrollLeft+kx(i),h=-l.scrollTop,"rtl"===kw(s||o).direction&&(d+=kd(o.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:d,y:h}))}function k1(){return{top:0,right:0,bottom:0,left:0}}function k2(e){return Object.assign({},k1(),e)}function k4(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function k3(e,t){void 0===t&&(t={});var n,r,i,a,o,l,s,c,u=t,d=u.placement,h=void 0===d?e.placement:d,f=u.strategy,p=void 0===f?e.strategy:f,g=u.boundary,m=u.rootBoundary,y=u.elementContext,b=void 0===y?kN:y,v=u.altBoundary,x=u.padding,w=void 0===x?0:x,C=k2("number"!=typeof w?w:k4(w,kR)),k=e.rects.popper,S=e.elements[void 0!==v&&v?b===kN?"reference":kN:b],_=(n=ks(S)?S:S.contextElement||kv(e.elements.popper),r=void 0===g?"clippingParents":g,i=void 0===m?kL:m,s=(l=[].concat("clippingParents"===r?(a=k_(kS(n)),!ks(o=["absolute","fixed"].indexOf(kw(n).position)>=0&&kc(n)?kT(n):n)?[]:a.filter(function(e){return ks(e)&&kQ(e,o)&&"body"!==kb(e)})):[].concat(r),[i]))[0],(c=l.reduce(function(e,t){var r=k0(n,t,p);return e.top=kd(r.top,e.top),e.right=kh(r.right,e.right),e.bottom=kh(r.bottom,e.bottom),e.left=kd(r.left,e.left),e},k0(n,s,p))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),E=km(e.elements.reference),T=kq({reference:E,element:k,strategy:"absolute",placement:h}),P=kJ(Object.assign({},k,T)),O=b===kN?P:E,I={top:_.top-O.top+C.top,bottom:O.bottom-_.bottom+C.bottom,left:_.left-O.left+C.left,right:O.right-_.right+C.right},A=e.modifiersData.offset;if(b===kN&&A){var R=A[h];Object.keys(I).forEach(function(e){var t=[kO,kP].indexOf(e)>=0?1:-1,n=["top",kP].indexOf(e)>=0?"y":"x";I[e]+=R[n]*t})}return I}function k8(e,t,n){return kd(e,kh(t,n))}function k6(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function k5(e){return["top",kO,kP,kI].some(function(t){return e[t]>=0})}var k9=(zJ=void 0===(zQ=(zZ={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,l=void 0===o||o,s=kl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,kH)}),l&&s.addEventListener("resize",n.update,kH),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,kH)}),l&&s.removeEventListener("resize",n.update,kH)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=kq({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,l={placement:kV(t.placement),variation:kU(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kG(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kG(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];kc(i)&&kb(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});kc(r)&&kb(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=kD.reduce(function(e,n){var r,i,o,l,s,c;return e[n]=(r=t.rects,o=[kI,"top"].indexOf(i=kV(n))>=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],c=l[1],s=s||0,c=(c||0)*o,[kI,kO].indexOf(i)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=o[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,l=void 0===o||o,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,y=kV(m)===m,b=s||(y||!p?[kX(m)]:function(e){if(kV(e)===kA)return[];var t=kX(e);return[kZ(e),t,kZ(t)]}(m)),v=[m].concat(b).reduce(function(e,n){var r,i,a,o,l,s,h,f,m,y,b,v;return e.concat(kV(n)===kA?(i=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}).placement,a=r.boundary,o=r.rootBoundary,l=r.padding,s=r.flipVariations,f=void 0===(h=r.allowedAutoPlacements)?kD:h,0===(b=(y=(m=kU(i))?s?kj:kj.filter(function(e){return kU(e)===m}):kR).filter(function(e){return f.indexOf(e)>=0})).length&&(b=y),Object.keys(v=b.reduce(function(e,n){return e[n]=k3(t,{placement:n,boundary:a,rootBoundary:o,padding:l})[kV(n)],e},{})).sort(function(e,t){return v[e]-v[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=v[0],_=0;_<v.length;_++){var E=v[_],T=kV(E),P=kU(E)===kM,O=["top",kP].indexOf(T)>=0,I=O?"width":"height",A=k3(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),R=O?P?kO:kI:P?kP:"top";x[I]>w[I]&&(R=kX(R));var M=kX(R),L=[];if(a&&L.push(A[T]<=0),l&&L.push(A[R]<=0,A[M]<=0),L.every(function(e){return e})){S=E,k=!1;break}C.set(E,L)}if(k)for(var N=p?3:1,j=function(e){var t=v.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},D=N;D>0&&"break"!==j(D);D--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,l=n.rootBoundary,s=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,h=n.tetherOffset,f=void 0===h?0:h,p=k3(t,{boundary:o,rootBoundary:l,padding:c,altBoundary:s}),g=kV(t.placement),m=kU(t.placement),y=!m,b=kW(g),v="x"===b?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,k="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(x){if(void 0===i||i){var T,P="y"===b?"top":kI,O="y"===b?kP:kO,I="y"===b?"height":"width",A=x[b],R=A+p[P],M=A-p[O],L=d?-C[I]/2:0,N=m===kM?w[I]:C[I],j=m===kM?-C[I]:-w[I],D=t.elements.arrow,z=d&&D?kk(D):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k1(),F=B[P],H=B[O],V=k8(0,w[I],z[I]),U=y?w[I]/2-L-V-F-S.mainAxis:N-V-F-S.mainAxis,W=y?-w[I]/2+L+V+H+S.mainAxis:j+V+H+S.mainAxis,q=t.elements.arrow&&kT(t.elements.arrow),$=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,G=null!=(T=null==_?void 0:_[b])?T:0,K=k8(d?kh(R,A+U-G-$):R,A,d?kd(M,A+W-G):M);x[b]=K,E[b]=K-A}if(void 0!==a&&a){var X,Y,Z="x"===b?"top":kI,Q="x"===b?kP:kO,J=x[v],ee="y"===v?"height":"width",et=J+p[Z],en=J-p[Q],er=-1!==["top",kI].indexOf(g),ei=null!=(Y=null==_?void 0:_[v])?Y:0,ea=er?et:J-w[ee]-C[ee]-ei+S.altAxis,eo=er?J+w[ee]+C[ee]-ei-S.altAxis:en,el=d&&er?(X=k8(ea,J,eo))>eo?eo:X:k8(d?ea:et,J,d?eo:en);x[v]=el,E[v]=el-J}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=kV(n.placement),s=kW(l),c=[kI,kO].indexOf(l)>=0?"height":"width";if(a&&o){var u,d=(u=i.padding,k2("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:k4(u,kR))),h=kk(a),f="y"===s?"top":kI,p="y"===s?kP:kO,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],m=o[s]-n.rects.reference[s],y=kT(a),b=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,v=d[f],x=b-h[c]-d[p],w=b/2-h[c]/2+(g/2-m/2),C=k8(v,w,x);n.modifiersData[r]=((t={})[s]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&kQ(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=k3(t,{elementContext:"reference"}),l=k3(t,{altBoundary:!0}),s=k6(o,r),c=k6(l,i,a),u=k5(s),d=k5(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:zQ,z1=void 0===(z0=zZ.defaultOptions)?kB:z0,function(e,t,n){void 0===n&&(n=z1);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},kB,z1),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],l=!1,s={state:a,setOptions:function(n){var r,i,l,u,d,h,f="function"==typeof n?n(a.options):n;c(),a.options=Object.assign({},z1,a.options,f),a.scrollParents={reference:ks(e)?k_(e):e.contextElement?k_(e.contextElement):[],popper:k_(t)};var p=(i=Object.keys(r=[].concat(zJ,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,u=new Set,d=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var n=l.get(t);n&&e(n)}}),d.push(t)}(e)}),h=d,kz.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=p.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:s,options:void 0===n?{}:n});o.push(i||function(){})}}),s.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(kF(t,n)){a.rects={reference:(r=kT(n),i="fixed"===a.options.strategy,o=kc(r),h=kc(r)&&(u=kf((c=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=kf(c.height)/r.offsetHeight||1,1!==u||1!==d),f=kv(r),p=km(t,h,i),g={scrollLeft:0,scrollTop:0},m={x:0,y:0},(o||!o&&!i)&&(("body"!==kb(r)||kC(f))&&(g=function(e){return e!==kl(e)&&kc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:ky(e)}(r)),kc(r)?(m=km(r,!0),m.x+=r.clientLeft,m.y+=r.clientTop):f&&(m.x=kx(f))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}),popper:kk(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r,i,o,c,u,d,h,f,p,g,m,y=0;y<a.orderedModifiers.length;y++){if(!0===a.reset){a.reset=!1,y=-1;continue}var b=a.orderedModifiers[y],v=b.fn,x=b.options,w=void 0===x?{}:x,C=b.name;"function"==typeof v&&(a=v({state:a,options:w,name:C,instance:s})||a)}}}},update:(r=function(){return new Promise(function(e){s.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){c(),l=!0}};if(!kF(e,t))return s;function c(){o.forEach(function(e){return e()}),o=[]}return s.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),s}),k7={},Se="u">typeof Element,St="function"==typeof Map,Sn="function"==typeof Set,Sr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;k7=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,a,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(St&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;for(o=t.entries();!(i=o.next()).done;)if(!e(i.value[1],n.get(i.value[0])))return!1;return!0}if(Sn&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(Sr&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof n.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof n.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;if(Se&&t instanceof Element)return!1;for(i=r;0!=i--;)if(("_owner"!==a[i]&&"__v"!==a[i]&&"__o"!==a[i]||!t.$$typeof)&&!e(t[a[i]],n[a[i]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};var Si=[],Sa=function(e,t,n){void 0===n&&(n={});var r=_.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Si},a=_.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=a[0],l=a[1],s=_.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);T.flushSync(function(){l({styles:ka(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:ka(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),c=_.useMemo(function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[s,{name:"applyStyles",enabled:!1}])};return y(k7)(r.current,e)?r.current||e:(r.current=e,e)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),u=_.useRef();return ko(function(){u.current&&u.current.setOptions(c)},[c]),ko(function(){if(null!=e&&null!=t){var r=(n.createPopper||k9)(e,t,c);return u.current=r,function(){r.destroy(),u.current=null}}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:o.styles,attributes:o.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},So=function(){},Sl=function(){return Promise.resolve(null)},Ss=[];function Sc(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,i=void 0===r?"absolute":r,a=e.modifiers,o=void 0===a?Ss:a,l=e.referenceElement,s=e.onFirstUpdate,c=e.innerRef,u=e.children,d=_.useContext(C7),h=_.useState(null),f=h[0],p=h[1],g=_.useState(null),m=g[0],y=g[1];_.useEffect(function(){ki(c,f)},[c,f]);var b=Sa(l||d,f,_.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:s,modifiers:[].concat(o,[{name:"arrow",enabled:null!=m,options:{element:m}}])}},[n,i,s,o,m])),v=b.state,x=b.styles,w=b.forceUpdate,C=b.update,k=_.useMemo(function(){return{ref:p,style:x.popper,placement:v?v.placement:n,hasPopperEscaped:v&&v.modifiersData.hide?v.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:v&&v.modifiersData.hide?v.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:x.arrow,ref:y},forceUpdate:w||So,update:C||Sl}},[p,y,n,v,x,C,w]);return kn(u)(k)}var _=C("8NFma"),Su={};function Sd(e){var t=e.children,n=e.innerRef,r=_.useContext(ke),i=_.useCallback(function(e){ki(n,e),kr(r,e)},[n,r]);return _.useEffect(function(){return function(){return ki(n,null)}},[]),_.useEffect(function(){y(Su)(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),kn(t)({ref:i})}Su=function(){};var m_=C("gztBd");function Sh(){return(Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function Sf(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Sp(e,t){return(Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sp(e,t)}function Sm(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var _=(C("8NFma"),C("8NFma"),C("8NFma"),C("8NFma")),Sy=y(_).createContext(null),Sb=function(e){return e.scrollTop},Sv="unmounted",Sx="exited",Sw="entering",SC="entered",Sk="exiting",SS=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(r=Sx,i.appearStatus=Sw):r=SC:r=t.unmountOnExit||t.mountOnEnter?Sv:Sx,i.state={status:r},i.nextCallback=null,i}Sg(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Sv?{status:Sx}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Sw&&n!==SC&&(t=Sw):(n===Sw||n===SC)&&(t=Sk)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sw){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y(T).findDOMNode(this);n&&Sb(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sx&&this.setState({status:Sv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[y(T).findDOMNode(this),r],a=i[0],o=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;(e||n)&&1?(this.props.onEnter(a,o),this.safeSetState({status:Sw},function(){t.props.onEntering(a,o),t.onTransitionEnd(s,function(){t.safeSetState({status:SC},function(){t.props.onEntered(a,o)})})})):this.safeSetState({status:SC},function(){t.props.onEntered(a)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y(T).findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Sk},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Sx},function(){e.props.onExited(r)})})})):this.safeSetState({status:Sx},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y(T).findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===Sv)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Sf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return y(_).createElement(Sy.Provider,{value:null},"function"==typeof n?n(e,r):y(_).cloneElement(y(_).Children.only(n),r))},t}(y(_).Component);function S_(){}SS.contextType=Sy,SS.propTypes={},SS.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S_,onEntering:S_,onEntered:S_,onExit:S_,onExiting:S_,onExited:S_},SS.UNMOUNTED=Sv,SS.EXITED=Sx,SS.ENTERING=Sw,SS.ENTERED=SC,SS.EXITING=Sk;var SE=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Sm(e.className,t):e.setAttribute("class",Sm(e.className&&e.className.baseVal||"",t))})},ST=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.addClass(i,a?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r&&n?n+"-":"",a=r?""+i+e:n[e],o=r?a+"-active":n[e+"Active"],l=r?a+"-done":n[e+"Done"];return{baseClassName:a,activeClassName:o,doneClassName:l}},t}Sg(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,i=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(i+=" "+a),"active"===n&&e&&Sb(e),i&&(this.appliedClasses[t][n]=i,r=i,e&&r&&r.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&SE(e,r),i&&SE(e,i),a&&SE(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Sf(e,["classNames"]));return y(_).createElement(SS,Sh({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(y(_).Component);function SP(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ST.defaultProps={classNames:""},ST.propTypes={};var _=(C("8NFma"),C("8NFma"));function SO(e,t){var n=Object.create(null);return e&&_.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,_.isValidElement)(e)?t(e):e}),n}function SI(e,t,n){return null!=n[t]?n[t]:e.props[t]}var SA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SR=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.handleExited.bind(SP(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Sg(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?SO(e.children,function(t){return(0,_.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:SI(t,"appear",e),enter:SI(t,"enter",e),exit:SI(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var c=i[s][r];l[i[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(i,n=SO(e.children))).forEach(function(t){var o=r[t];if((0,_.isValidElement)(o)){var l=t in i,s=t in n,c=i[t],u=(0,_.isValidElement)(c)&&!c.props.in;s&&(!l||u)?r[t]=(0,_.cloneElement)(o,{onExited:a.bind(null,o),in:!0,exit:SI(o,"exit",e),enter:SI(o,"enter",e)}):s||!l||u?s&&l&&(0,_.isValidElement)(c)&&(r[t]=(0,_.cloneElement)(o,{onExited:a.bind(null,o),in:c.props.in,exit:SI(o,"exit",e),enter:SI(o,"enter",e)})):r[t]=(0,_.cloneElement)(o,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=SO(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Sh({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Sf(e,["component","childFactory"]),i=this.state.contextValue,a=SA(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?y(_).createElement(Sy.Provider,{value:i},a):y(_).createElement(Sy.Provider,{value:i},y(_).createElement(t,r,a))},t}(y(_).Component);SR.propTypes={},SR.defaultProps={component:"div",childFactory:function(e){return e}};var _=(C("8NFma"),C("8NFma")),SM=function(){var e=1,t=new WeakMap,n=function(r,i){return"number"==typeof r||"string"==typeof r?i?"idx-".concat(i):"val-".concat(r):t.has(r)?"uid"+t.get(r):(t.set(r,e++),n(r))};return n};SM();var SL=function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:SM()}},SN=SL(),Sj=_.createContext(SL()),SD=function(e){var t=e||SN,n=(t?t.prefix:"")+t.value++;return{uid:n,gen:function(e){return n+t.uid(e)}}},Sz=function(){var e=(0,_.useContext)(Sj);return(0,_.useState)(function(){return SD(e)})[0]},_=(C("8NFma"),C("8NFma")),SB=_.createContext({hasProvider:!1,stack:{current:[]}}),_=C("8NFma"),SF=[],SH=[],SV=function(e){e(SF),SH.forEach(function(e){return e()})},SU=function(){return SF},SW=function(e){return SH.push(e),function(){var t=SH.indexOf(e);SH.splice(t,1)}};function Sq(e){var t=mR(e);return(null!=t?mJ(t):[]).filter(function(e){return!e.classList.contains(x7)&&!e.classList.contains(we)})}var _=(C("8NFma"),C("8NFma"),C("8NFma")),S$=_.createContext({});function SG(e,t){var n,r=e.className,i=e.stopPropagationEvents,a=e.container,o=e.onChildrenMount,l=e.children;void 0===t&&(t={});var s=_.useContext(S$),c=null!=(n=null!=a?a:s.portalContainer)?n:"u">typeof document?document.body:void 0,u=_.useState(),d=u[0],h=u[1],f=_.useCallback(function(){var e=document.createElement("div");e.classList.add(yK.PORTAL),SK(e.classList,r),SK(e.classList,s.portalClassName),SX(e,i);var n=t.blueprintPortalClassName;return null!=n&&""!==n&&(console.error(yp),SK(e.classList,n)),e},[r,s.portalClassName,t.blueprintPortalClassName,i]);return(_.useEffect(function(){if(null!=c){var e=f();return c.appendChild(e),h(e),function(){SY(e,i),e.remove(),h(void 0)}}},[c,f,i]),_.useEffect(function(){null!=d&&(null==o||o())},[d,o]),_.useEffect(function(){if(null!=d)return SK(d.classList,r),function(){var e,t;return e=d.classList,void(null!=(t=r)&&""!==t&&e.remove.apply(e,t.split(" ")))}},[r,d]),_.useEffect(function(){if(null!=d)return SX(d,i),function(){return SY(d,i)}},[d,i]),"u"<typeof document||null==d)?null:T.createPortal(l,d)}function SK(e,t){null!=t&&""!==t&&e.add.apply(e,t.split(" "))}function SX(e,t){null==t||t.forEach(function(t){return e.addEventListener(t,SZ)})}function SY(e,t){null==t||t.forEach(function(t){return e.removeEventListener(t,SZ)})}function SZ(e){e.stopPropagation()}SG.displayName="".concat(CM,".Portal"),yV()||(SG.contextTypes={blueprintPortalClassName:function(e,t){if(null!=e[t]&&"string"!=typeof e[t])return Error(yf)}});var SQ={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:mW(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:yK.OVERLAY,usePortal:!0},SJ=_.forwardRef(function(e,t){var n,r,i,a,o,l,s,c,u,d,h,f,p,g,m,b,v,x,w,C,k,S,E,T,P=e.autoFocus,O=e.backdropClassName,I=e.backdropProps,A=e.canEscapeKeyClose,R=e.canOutsideClickClose,M=e.childRef,N=e.childRefs,j=e.children,D=e.className,z=e.enforceFocus,B=e.hasBackdrop,F=e.isOpen,H=e.lazy,V=e.onClose,U=e.onClosed,W=e.onClosing,q=e.onOpened,$=e.onOpening,G=e.portalClassName,K=e.portalContainer,X=e.shouldReturnFocusOnClose,Y=e.transitionDuration,Z=e.transitionName,Q=e.usePortal;r=(n=e).childRef,i=n.childRefs,a=n.children,o=_.Children.count(a),_.useEffect(function(){!yP("production")&&(null!=r&&null!=i&&console.error(y_),o>1&&null==i&&console.error(yE))},[r,i,o]);var J=(c=(s=y(_).useContext(SB)).stack,u=s.hasProvider,d=(0,L.useSyncExternalStore)(SW,SU,SU),h=y(_).useCallback(function(){return d[d.length-1]},[d]),f=y(_).useCallback(function(e){var t=d.findIndex(function(t){return t.id===e});return d.slice(t)},[d]),p=y(_).useCallback(function(){SV(function(e){return e.splice(0,e.length)})},[]),g=y(_).useCallback(function(e){SF.push(e),e.props.usePortal&&e.props.hasBackdrop&&document.body.classList.add(yK.OVERLAY_OPEN)},[]),m={closeOverlay:y(_).useCallback(function(e){var t=d.filter(function(t){return t.props.usePortal&&t.props.hasBackdrop&&t.id!==e}),n=SF.findIndex(function(t){return t.id===e});n>-1&&SF.splice(n,1),0===t.length&&document.body.classList.remove(yK.OVERLAY_OPEN)},[d]),getLastOpened:h,getThisOverlayAndDescendants:f,openOverlay:g,resetStack:p},b=y(_).useCallback(function(){return c.current[c.current.length-1]},[c]),v=y(_).useCallback(function(e){var t=c.current.findIndex(function(t){return t.id===e});return -1===t?[]:c.current.slice(t)},[c]),x=y(_).useCallback(function(){c.current=[]},[c]),w=y(_).useCallback(function(e){c.current.push(e),e.props.usePortal&&e.props.hasBackdrop&&document.body.classList.add(yK.OVERLAY_OPEN)},[c]),C=y(_).useCallback(function(e){var t=c.current.filter(function(t){return t.props.usePortal&&t.props.hasBackdrop&&t.id!==e}),n=c.current.findIndex(function(t){return t.id===e});n>-1&&c.current.splice(n,1),0===t.length&&document.body.classList.remove(yK.OVERLAY_OPEN)},[c]),u?{closeOverlay:C,getLastOpened:b,getThisOverlayAndDescendants:v,openOverlay:w,resetStack:x}:(yP("development")&&console.error(yS),m)),ee=J.closeOverlay,et=J.getLastOpened,en=J.getThisOverlayAndDescendants,er=J.openOverlay,ei=_.useState(!1),ea=ei[0],eo=ei[1],el=_.useState(!1),es=el[0],ec=el[1],eu=_.useRef(null),ed=_.useRef(null),eh=_.useRef(null),ef=_.useRef(null),ep=_.useRef(null),eg=_.useRef(null),em=_.useCallback(function(){return requestAnimationFrame(function(){var e,t=mR(ed),n=mG(t);null!=t&&null!=n&&(t.contains(n)||(null==(e=mR(ef))||e.focus({preventScroll:!0}),eo(!1)))})},[]),ey=(l=Sz().uid,"".concat(SJ.displayName,"-").concat(l)),eb=_.useRef(null),ev=_.useCallback(function(e){var t=e.composed?e.composedPath()[0]:e.target,n=mR(ed);null!=n&&t instanceof Node&&!n.contains(t)&&(e.preventDefault(),e.stopImmediatePropagation(),em())},[em]),ex=_.useCallback(function(e){var t=e.composed?e.composedPath()[0]:e.target;en(ey).some(function(e){var n=mR(e.containerElement);return(null==n?void 0:n.contains(t))&&!n.isSameNode(t)})||null==V||V(e)},[en,ey,V]),ew=_.useMemo(function(){return mA(t,eb)},[t]);_.useImperativeHandle(ew,function(){return{bringFocusInsideOverlay:em,containerElement:ed,handleDocumentFocus:ev,handleDocumentMousedown:ex,id:ey,props:{autoFocus:P,enforceFocus:z,hasBackdrop:B,usePortal:Q}}},[P,em,z,ev,ex,B,ey,Q]);var eC=_.useCallback(function(e){"Escape"===e.key&&A&&(null==V||V(e),e.stopPropagation(),e.preventDefault())},[A,V]),ek=_.useCallback(function(){if(null!=eb.current){var e=et();(null==e?void 0:e.handleDocumentFocus)!==void 0&&document.removeEventListener("focus",e.handleDocumentFocus,!0),er(eb.current),P&&(eo(!0),em()),mI(eu,mG(mR(ed)))}},[P,em,et,er]),eS=_.useCallback(function(){document.removeEventListener("focus",ev,!0),document.removeEventListener("mousedown",ex),ee(ey);var e,t=et();void 0!==t&&t.props.autoFocus&&t.props.enforceFocus&&(null==(e=t.bringFocusInsideOverlay)||e.call(t),void 0!==t.handleDocumentFocus&&document.addEventListener("focus",t.handleDocumentFocus,!0))},[ee,et,ev,ex,ey]),e_=null!==(k=_.useRef(),_.useEffect(function(){k.current=F},[F]),E=k.current)&&void 0!==E&&E;_.useEffect(function(){F&&ec(!0),!e_&&F&&ek(),e_&&!F&&eS()},[F,ek,eS,e_]),_.useEffect(function(){if(F&&R&&!B)return document.addEventListener("mousedown",ex),function(){document.removeEventListener("mousedown",ex)}},[ex,F,R,B]),_.useEffect(function(){if(F&&z)return document.addEventListener("focus",ev,!0),function(){document.removeEventListener("focus",ev,!0)}},[ev,z,F]);var eE=_.useRef(eS);eE.current=eS,_.useEffect(function(){return function(){eE.current()}},[]);var eT=_.useCallback(function(e){var t=mR(eu);X&&t instanceof HTMLElement&&t.focus(),null==U||U(e)},[U,X]),eP=_.useCallback(function(){},[]),eO=_.useCallback(function(e){if(null!=M)return M;if(null!=N){var t=e.key;if(null==t){yP("production")||console.error(yT);return}return N[t]}},[M,N]),eI=_.useCallback(function(e){if(null==e||yN(e))return null;var t=eO(e),n=yF(e)?e.props:{},r=yB(e,"span",{className:y(mE)(n.className,yK.OVERLAY_CONTENT),ref:void 0===t?eg:void 0,tabIndex:z||P?0:void 0}),i=null!=t?t:eg;return _.createElement(ST,{addEndListener:eP,classNames:Z,nodeRef:i,onEntered:S0(q,i),onEntering:S0($,i),onExited:S0(eT,i),onExiting:S0(W,i),timeout:Y},r)},[P,z,eO,eP,eT,W,q,$,Y,Z]),eA=_.useCallback(function(e){var t;R&&(null==V||V(e)),z&&em(),null==(t=null==I?void 0:I.onMouseDown)||t.call(I,e)},[I,em,R,z,V]),eR=_.useCallback(function(e,t){return _.createElement(ST,{addEndListener:eP,classNames:Z,key:e,nodeRef:t.ref,timeout:Y,unmountOnExit:!0},_.createElement("div",(0,m_.__assign)({tabIndex:0},t)))},[eP,Y,Z]),eM=_.useCallback(function(e){if(z&&!ea){var t=mR(ed),n=mR(ep);null!=e.relatedTarget&&(null==t?void 0:t.contains(e.relatedTarget))&&e.relatedTarget!==n&&(null==n||n.focus({preventScroll:!0}))}},[z,ea]),eL=_.useCallback(function(e){var t;if(z&&e.shiftKey&&"Tab"===e.key){var n=Sq(ed).pop();null!=n?n.focus():null==(t=mR(ep))||t.focus({preventScroll:!0})}},[z]),eN=_.useCallback(function(e){var t,n=mR(ef);if(null!=e.relatedTarget&&(null==(t=mR(ed))?void 0:t.contains(e.relatedTarget))&&e.relatedTarget!==n){var r=Sq(ed).shift();ea||null==r||r===e.relatedTarget?null==n||n.focus({preventScroll:!0}):r.focus()}else{var i=Sq(ed).pop();null!=i?i.focus():null==n||n.focus({preventScroll:!0})}},[ea]),ej=_.useMemo(function(){return B&&F?_.createElement(ST,{classNames:Z,key:"__backdrop",nodeRef:eh,timeout:Y,addEndListener:eP},_.createElement("div",(0,m_.__assign)({},I,{className:y(mE)(yK.OVERLAY_BACKDROP,O,null==I?void 0:I.className),onMouseDown:eA,ref:eh}))):null},[O,I,eA,eP,B,F,Y,Z]);if(H&&!es)return null;var eD=F&&null!=(T=_.Children.map(j,eI))?T:[];null!==ej&&eD.unshift(ej),F&&(P||z)&&eD.length>0&&(eD.unshift(eR("__start",{className:yK.OVERLAY_START_FOCUS_TRAP,onFocus:eM,onKeyDown:eL,ref:ef})),z&&eD.push(eR("__end",{className:yK.OVERLAY_END_FOCUS_TRAP,onFocus:eN,ref:ep})));var ez=_.createElement("div",{"aria-live":"polite",className:y(mE)(yK.OVERLAY,((S={})[yK.OVERLAY_OPEN]=F,S[yK.OVERLAY_INLINE]=!Q,S),D),onKeyDown:eC,ref:ed},_.createElement(SR,{appear:!0,component:null},eD));return Q?_.createElement(SG,{className:G,container:K},ez):ez});function S0(e,t){return function(){(null==t?void 0:t.current)!=null&&(null==e||e(t.current))}}SJ.defaultProps=SQ,SJ.displayName="".concat(CM,".Overlay2");var m_=C("gztBd"),_=C("8NFma"),S1=function(e){function t(){var t,n=e.apply(this,arguments)||this;return n.targetRef=null!=(t=n.props.targetRef)?t:_.createRef(),n.prevElement=void 0,n}return(0,m_.__extends)(t,e),t.prototype.render=function(){var e=_.Children.only(this.props.children);return void 0!==this.props.targetRef?e:_.cloneElement(e,{ref:this.targetRef})},t.prototype.componentDidMount=function(){var e=this;this.observer=null!=globalThis.ResizeObserver?new ResizeObserver(function(t){var n,r;return null==(r=(n=e.props).onResize)?void 0:r.call(n,t)}):void 0,this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){var e;null==(e=this.observer)||e.disconnect(),this.prevElement=void 0},t.prototype.observeElement=function(e){if(void 0===e&&(e=!1),void 0!==this.observer){if(!(this.targetRef.current instanceof Element))return void this.observer.disconnect();if((this.targetRef.current!==this.prevElement||e)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var t=this.targetRef.current.parentElement;null!=t;)this.observer.observe(t),t=t.parentElement}},t.displayName="".concat(CM,".ResizeSensor"),t}(C9),S2={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state,n=t.elements.reference.getBoundingClientRect().width;t.elements.popper.style.width="".concat(n,"px")}},m_=C("gztBd"),_=C("8NFma");function S4(e){return e.split("-")[0]}function S3(e){return -1!==["left","right"].indexOf(e)}function S8(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function S6(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}var S5=function(e){var t=e.arrowProps,n=t.ref,r=t.style,i=e.placement;return _.createElement("div",{"aria-hidden":!0,className:yK.POPOVER_ARROW,"data-popper-arrow":!0,ref:n,style:(0,m_.__assign)((0,m_.__assign)({},r),function(e){switch(S4(e)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}(i))},_.createElement("svg",{viewBox:"0 0 ".concat(30," ").concat(30),style:{transform:"rotate(".concat(function(e){if(null==e)return 0;switch(S4(e)){case"top":return -90;case"left":return 180;case"bottom":return 90;default:return 0}}(i),"deg)")}},_.createElement("path",{className:yK.POPOVER_ARROW+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),_.createElement("path",{className:yK.POPOVER_ARROW+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};S5.displayName="".concat(CM,".PopoverArrow");var m_=C("gztBd"),S9=(0,m_.__assign)((0,m_.__assign)({},y1),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"}),S7="click",_e="hover",_t="hover-target",_n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.popoverRef=mM(t,"popoverElement",t.props.popoverRef),t.targetRef=_.createRef(),t.transitionContainerElement=_.createRef(),t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return void 0!==t.props.isOpen},t.isArrowEnabled=function(){var e,n;return!t.props.minimal&&(null==(n=null==(e=t.props.modifiers)?void 0:e.arrow)?void 0:n.enabled)!==!1},t.isHoverInteractionKind=function(){return t.props.interactionKind===_e||t.props.interactionKind===_t},t.reposition=function(){var e;return null==(e=t.popperScheduleUpdate)?void 0:e.call(t)},t.renderTarget=function(e){var n,r,i,a,o,l=e.ref,s=t.props,c=s.children,u=s.className,d=s.disabled,h=s.fill,f=s.openOnTargetFocus,p=s.renderTarget,g=t.state.isOpen,m=t.isControlled(),b=t.isHoverInteractionKind(),v=t.props.targetTagName;h&&(v="div");var x=mA(l,t.targetRef),w=b?{onBlur:t.handleTargetBlur,onContextMenu:t.handleTargetContextMenu,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick,onKeyDown:t.handleKeyDown},C=!t.getIsContentEmpty()&&!d&&f&&b?0:void 0,k=(0,m_.__assign)({className:y(mE)(u,yK.POPOVER_TARGET,((n={})[yK.POPOVER_OPEN]=g,n[yK.ACTIVE]=g&&!m&&!b,n)),ref:x},w),S={"aria-expanded":b?void 0:g,"aria-haspopup":t.props.interactionKind===_t?void 0:null!=(i=t.props.popupKind)?i:"menu"},E=((r={})[yK.ACTIVE]=g&&!m&&!b,r[yK.FILL]=h,r);if(void 0!==p)o=p((0,m_.__assign)((0,m_.__assign)((0,m_.__assign)({},k),S),{className:y(mE)(k.className,E),isOpen:g,tabIndex:C}));else{var T=mL.ensureElement(_.Children.toArray(c)[0]);if(void 0===T)return null;var P=_.cloneElement(T,(0,m_.__assign)((0,m_.__assign)({},S),{className:y(mE)(T.props.className,E),disabled:!!(g&&mL.isElementOfType(T,_l))||T.props.disabled,tabIndex:null!=(a=T.props.tabIndex)?a:C}));o=_.createElement(v,(0,m_.__assign)((0,m_.__assign)({},k),t.props.targetProps),P)}return _.createElement(S1,{targetRef:t.targetRef,onResize:t.reposition},o)},t.renderPopover=function(e){var n,r,i,a,o=t.props,l=o.autoFocus,s=o.enforceFocus,c=o.backdropProps,u=o.canEscapeKeyClose,d=o.hasBackdrop,h=o.interactionKind,f=o.usePortal,p=t.state,g=p.isClosingViaEscapeKeypress,m=p.isOpen,b=(n=e.placement,r=t.isArrowEnabled()?e.arrowProps.style:void 0,i=S4(n),void 0===r?S3(i)?"".concat(S8(i)," ").concat(S6(i)):"".concat(S6(i)," ").concat(S8(i)):S3(i)?"".concat(S8(i)," ").concat(parseInt(r.top,10)+15,"px"):"".concat(parseInt(r.left,10)+15,"px ").concat(S8(i)));t.popperScheduleUpdate=e.update;var v={onClick:t.handlePopoverClick,onKeyDown:function(e){return mL.isKeyboardClick(e)&&t.handlePopoverClick(e)}};h!==_e&&(f||h!==_t)||(v.onMouseEnter=t.handleMouseEnter,v.onMouseLeave=t.handleMouseLeave);var x=S4(e.placement),w=y(mE)(yK.POPOVER,((a={})[yK.DARK]=t.props.inheritDarkTheme&&t.state.hasDarkParent,a[yK.MINIMAL]=t.props.minimal,a[yK.POPOVER_CAPTURING_DISMISS]=t.props.captureDismiss,a[yK.POPOVER_MATCH_TARGET_WIDTH]=t.props.matchTargetWidth,a[yK.POPOVER_REFERENCE_HIDDEN]=!0===e.isReferenceHidden,a[yK.POPOVER_POPPER_ESCAPED]=!0===e.hasPopperEscaped,a),"".concat(yK.POPOVER_CONTENT_PLACEMENT,"-").concat(x),t.props.popoverClassName),C=!t.isHoverInteractionKind()&&void 0,k=!t.isHoverInteractionKind()&&(!!g||t.props.shouldReturnFocusOnClose);return _.createElement(SJ,{autoFocus:null!=l?l:C,backdropClassName:yK.POPOVER_BACKDROP,backdropProps:c,canEscapeKeyClose:u,canOutsideClickClose:h===S7,childRef:t.transitionContainerElement,enforceFocus:s,hasBackdrop:d,isOpen:m,lazy:t.props.lazy,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:yK.POPOVER,usePortal:f,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer,portalStopPropagationEvents:t.props.portalStopPropagationEvents,shouldReturnFocusOnClose:k},_.createElement("div",{className:yK.POPOVER_TRANSITION_CONTAINER,ref:mA(e.ref,t.transitionContainerElement),style:e.style},_.createElement(S1,{onResize:t.reposition},_.createElement("div",(0,m_.__assign)({className:w,style:{transformOrigin:b},ref:t.popoverRef},v),t.isArrowEnabled()&&_.createElement(S5,{arrowProps:e.arrowProps,placement:e.placement}),_.createElement("div",{className:yK.POPOVER_CONTENT},t.props.content)))))},t.handleTargetFocus=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null!=e.relatedTarget||t.lostFocusOnSamePage)&&t.handleMouseEnter(e)},t.handleTargetBlur=function(e){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null!=e.relatedTarget&&(e.relatedTarget===t.popoverElement||t.isElementInPopover(e.relatedTarget))||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget},t.handleTargetContextMenu=function(e){e.defaultPrevented&&t.setOpenState(!1,e)},t.handleMouseEnter=function(e){t.isMouseInTargetOrPopover=!0,!t.props.usePortal&&t.isElementInPopover(e.target)&&t.props.interactionKind===_t&&!t.props.openOnTargetFocus?t.handleMouseLeave(e):t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay)},t.handleMouseLeave=function(e){t.isMouseInTargetOrPopover=!1,e.persist(),t.setTimeout(function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)})},t.handlePopoverClick=function(e){var n,r,i,a=e.target,o=a.closest(".".concat(yK.POPOVER)),l=a.closest(".".concat(yK.POPOVER)),s=(null!=o?o:l)===t.getPopoverElement(),c=null!=(r=null!=(n=null==o?void 0:o.classList.contains(yK.POPOVER_CAPTURING_DISMISS))?n:null==l?void 0:l.classList.contains(yK.POPOVER_CAPTURING_DISMISS))&&r,u=a.closest(".".concat(yK.POPOVER_DISMISS,", .").concat(yK.POPOVER_DISMISS_OVERRIDE)),d=null!=(i=null==u?void 0:u.classList.contains(yK.POPOVER_DISMISS))&&i,h=null!=a.closest(":disabled, .".concat(yK.DISABLED));d&&!h&&(!c||s)&&t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!=t.targetRef.current&&void 0!==e){var n,r=null!=(n=e.nativeEvent)?n:e,i=r.composed?r.composedPath()[0]:r.target;(!mL.elementIsOrContains(t.targetRef.current,i)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleKeyDown=function(e){mL.isKeyboardClick(e)&&t.handleTargetClick(e)},t.handleTargetClick=function(e){t.state.isOpen&&t.isSimulatedButtonClick(e)||t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState(function(e){return{isOpen:!e.isOpen}}):t.setOpenState(!t.props.isOpen,e))},t.isSimulatedButtonClick=function(e){return!e.isTrusted&&e.target.matches(".".concat(yK.BUTTON))},t}return(0,m_.__extends)(t,e),t.prototype.getPopoverElement=function(){var e;return null==(e=this.popoverElement)?void 0:e.querySelector(".".concat(yK.POPOVER))},t.prototype.getIsOpen=function(e){var t;return!e.disabled&&(null!=(t=e.isOpen)?t:e.defaultIsOpen)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.placement,r=e.position,i=e.positioningStrategy,a=this.state.isOpen;return this.getIsContentEmpty()?(t||!1===a||mL.isNodeEnv("production")||console.warn(ys),this.renderTarget({ref:_r})):_.createElement(kt,null,_.createElement(Sd,null,this.renderTarget),_.createElement(Sc,{innerRef:this.popoverRef,placement:null!=n?n:function(e){switch(e){case S9.TOP_LEFT:return"top-start";case S9.TOP:return"top";case S9.TOP_RIGHT:return"top-end";case S9.RIGHT_TOP:return"right-start";case S9.RIGHT:return"right";case S9.RIGHT_BOTTOM:return"right-end";case S9.BOTTOM_RIGHT:return"bottom-end";case S9.BOTTOM:return"bottom";case S9.BOTTOM_LEFT:return"bottom-start";case S9.LEFT_BOTTOM:return"left-end";case S9.LEFT:return"left";case S9.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:var t=e;throw Error("Unexpected position: "+t)}}(void 0===r?"auto":r),strategy:i,modifiers:this.getPopperModifiers()},this.renderPopover))},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn(yd),e.hasBackdrop&&!e.usePortal&&console.warn(yc),e.hasBackdrop&&e.interactionKind!==S7&&console.warn(ya),void 0!==e.placement&&void 0!==e.position&&console.warn(yu);var t=_.Children.count(e.children),n=void 0!==e.renderTarget,r=void 0!==e.targetProps;0!==t||n||console.warn(yi),t>1&&console.warn(yo),t>0&&n&&console.warn(yl),n&&r&&console.warn(yh)},t.prototype.getPopperModifiers=function(){var e,t,n,r,i=this.props,a=i.matchTargetWidth,o=i.modifiers,l=i.modifiersCustom,s=[(0,m_.__assign)({enabled:this.isArrowEnabled(),name:"arrow"},null==o?void 0:o.arrow),(0,m_.__assign)((0,m_.__assign)({name:"computeStyles"},null==o?void 0:o.computeStyles),{options:(0,m_.__assign)({adaptive:!0,gpuAcceleration:!1},null==(e=null==o?void 0:o.computeStyles)?void 0:e.options)}),(0,m_.__assign)((0,m_.__assign)({enabled:this.isArrowEnabled(),name:"offset"},null==o?void 0:o.offset),{options:(0,m_.__assign)({offset:[0,15]},null==(t=null==o?void 0:o.offset)?void 0:t.options)}),(0,m_.__assign)((0,m_.__assign)({name:"flip"},null==o?void 0:o.flip),{options:(0,m_.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null==(n=null==o?void 0:o.flip)?void 0:n.options)}),(0,m_.__assign)((0,m_.__assign)({name:"preventOverflow"},null==o?void 0:o.preventOverflow),{options:(0,m_.__assign)({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},null==(r=null==o?void 0:o.preventOverflow)?void 0:r.options)})];return a&&s.push(S2),void 0!==l&&s.push.apply(s,l),s},t.prototype.setOpenState=function(e,t,n){var r,i,a,o,l,s,c=this;null==(i=this.cancelOpenTimeout)||i.call(this),void 0!==n&&n>0?(null==t||t.persist(),this.cancelOpenTimeout=this.setTimeout(function(){c.setOpenState(e,t)},n)):(null==this.props.isOpen?this.setState({isOpen:e}):null==(o=(a=this.props).onInteraction)||o.call(a,e,t),e||(null==(s=(l=this.props).onClose)||s.call(l,t),this.setState({isClosingViaEscapeKeypress:(r=null==t?void 0:t.nativeEvent)instanceof KeyboardEvent&&"Escape"===r.key})))},t.prototype.updateDarkParent=function(){var e;if(this.props.usePortal&&this.state.isOpen){var t=(null==(e=this.targetRef.current)?void 0:e.closest(".".concat(yK.DARK)))!=null;this.setState({hasDarkParent:t})}},t.prototype.isElementInPopover=function(e){var t,n;return null!=(n=null==(t=this.getPopoverElement())?void 0:t.contains(e))&&n},t.prototype.getIsContentEmpty=function(){var e=this.props.content;return null==e||mL.isEmptyString(e)},t.displayName="".concat(CM,".Popover"),t.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:S7,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},t}(C9);function _r(){}var _=C("8NFma"),_i=_.createContext([{},function(){return null}]),_a=function(e,t){switch(t.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return e}},_o=function(e){var t=e.children,n=e.forceDisable,r=_.useReducer(_a,{}),i=r[0],a=r[1],o=_.useMemo(function(){return[i,a]},[i,a]);return _.useEffect(function(){n?a({type:"FORCE_DISABLED_STATE"}):a({type:"RESET_DISABLED_STATE"})},[n]),_.createElement(_i.Provider,{value:o},"function"==typeof t?t(i):t)},_l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=_.createRef(),t.renderPopover=function(e){var n,r,i=t.props,a=i.children,o=i.compact,l=i.disabled,s=i.intent,c=i.popoverClassName,u=(0,m_.__rest)(i,["children","compact","disabled","intent","popoverClassName"]),d=y(mE)(Cn,CE(s),c,((n={})[y6]=o,n));return _.createElement(_n,(0,m_.__assign)({modifiers:{arrow:{enabled:!t.props.minimal},offset:{options:{offset:[0,11]}}}},u,{autoFocus:!1,canEscapeKeyClose:!1,disabled:null!=(r=e.forceDisabled)?r:l,enforceFocus:!1,lazy:!0,popoverClassName:d,portalContainer:t.props.portalContainer,ref:t.popoverRef}),a)},t}return(0,m_.__extends)(t,e),t.prototype.render=function(){var e=this;return _.createElement(_i.Consumer,null,function(t){var n=t[0];return _.createElement(_o,(0,m_.__assign)({},n),e.renderPopover)})},t.prototype.reposition=function(){var e;null==(e=this.popoverRef.current)||e.reposition()},t.displayName="".concat(CM,".Tooltip"),t.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},t}(C9),m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_s=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-down",ref:t},e),_.createElement("path",{d:n?"M320 280C314.4000000000001 280 309.4000000000001 277.8 305.8 274.2L200 168.2L94.2 274.2C90.6 277.8 85.6 280 80 280C69 280 60 271 60 260C60 254.4 62.2 249.4 65.8 245.8L185.8 125.8C189.4 122.2 194.4 120 200 120S210.6 122.2 214.2 125.8L334.2000000000001 245.8C337.8 249.4 340 254.4 340 260C340 271 331 280 320 280z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L160 148.2L94.2 214.2C90.6 217.8 85.6 220 80 220C69 220 60 211 60 200C60 194.4 62.2 189.4 65.8 185.8L145.8 105.8C149.4 102.2 154.4 100 160 100S170.6 102.2 174.2 105.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_s.defaultProps={size:Cq.IconSize.STANDARD},_s.displayName="Blueprint5.Icon.ChevronDown";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_c=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-left",ref:t},e),_.createElement("path",{d:n?"M168.2 200L274 305.8C277.8 309.4 280 314.4 280 320C280 331 271 340 260 340C254.4 340 249.4 337.8 245.8 334.2L125.8 214.2C122.2 210.6 120 205.6 120 200C120 194.4 122.2 189.4 125.8 185.8L245.8 65.8C249.4 62.2 254.4 60 260 60C271 60 280 69 280 80C280 85.6 277.8 90.6 274.2000000000001 94.2000000000001L168.2 200z":"M148.2 160L214 225.8C217.8 229.4 220 234.4 220 240C220 251 211 260 200 260C194.4 260 189.4 257.8 185.8 254.2L105.8 174.2C102.2 170.6 100 165.6 100 160C100 154.4 102.2 149.4 105.8 145.8L185.8 65.8C189.4 62.2 194.4 60 200 60C211 60 220 69 220 80C220 85.6 217.8 90.6 214.2 94.2L148.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_c.defaultProps={size:Cq.IconSize.STANDARD},_c.displayName="Blueprint5.Icon.ChevronLeft";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_u=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-right",ref:t},e),_.createElement("path",{d:n?"M274.2000000000001 214.2L154.2 334.2000000000001C150.6 337.8 145.6 340 140 340C129 340 120 331 120 320C120 314.4 122.2 309.4 125.8 305.8L231.8 200L126 94.2000000000001C122.2 90.6 120 85.6 120 80C120 69 129 60 140 60C145.6 60 150.6 62.2 154.2 65.8L274.2000000000001 185.8C277.8 189.4 280 194.4 280 200C280 205.6 277.8 210.6 274.2000000000001 214.2z":"M214.2 174.2L134.2 254.2C130.6 257.8 125.6 260 120 260C109 260 100 251 100 240C100 234.4 102.2 229.4 105.8 225.8L171.8 160L106 94.2C102.2 90.6 100 85.6 100 80C100 69 109 60 120 60C125.6 60 130.6 62.2 134.2 65.8L214.2 145.8C217.8 149.4 220 154.4 220 160C220 165.6 217.8 170.6 214.2 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_u.defaultProps={size:Cq.IconSize.STANDARD},_u.displayName="Blueprint5.Icon.ChevronRight";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_d=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"chevron-up",ref:t},e),_.createElement("path",{d:n?"M334.2000000000001 154.2L214.2 274.2000000000001C210.6 277.8 205.6 280 200 280S189.4 277.8 185.8 274.2L65.8 154.2C62.2 150.6 60 145.6 60 140C60 129 69 120 80 120C85.6 120 90.6 122.2 94.2 125.8L200 231.8L305.8 126C309.4000000000001 122.2 314.4000000000001 120 320 120C331 120 340 129 340 140C340 145.6 337.8 150.6 334.2000000000001 154.2z":"M254.2 134.2L174.2 214.2C170.6 217.8 165.6 220 160 220S149.4 217.8 145.8 214.2L65.8 134.2C62.2 130.6 60 125.6 60 120C60 109 69 100 80 100C85.6 100 90.6 102.2 94.2 105.8L160 171.8L225.8 106C229.4 102.2 234.4 100 240 100C251 100 260 109 260 120C260 125.6 257.8 130.6 254.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_d.defaultProps={size:Cq.IconSize.STANDARD},_d.displayName="Blueprint5.Icon.ChevronUp";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_h=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"duplicate",ref:t},e),_.createElement("path",{d:n?"M300 320H20C9 320 0 311 0 300V20C0 9 9 0 20 0H300C311 0 320 9 320 20V300C320 311 311 320 300 320zM280 40H40V280H280V40zM380 400H100C89 400 80 391 80 380V340H120V360H360V120H340V80H380C391 80 400 89 400 100V380C400 391 391 400 380 400z":"M300 320H100C89 320 80 311 80 300V260H120V280H280V140H260V100H300C311 100 320 109 320 120V300C320 311 311 320 300 320zM220 240H20C9 240 0 231 0 220V20C0 9 9 0 20 0H220C231 0 240 9 240 20V220C240 231 231 240 220 240zM200 40H40V200H200V40z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_h.defaultProps={size:Cq.IconSize.STANDARD},_h.displayName="Blueprint5.Icon.Duplicate";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_f=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"insert",ref:t},e),_.createElement("path",{d:n?"M380 400H20C8 400 0 392 0 380V20C0 10 8 0 20 0H380C390 0 400 10 400 20V380C400 392 390 400 380 400L380 400zM360 40H40V360H360V40L360 40zM100 180H180V100C180 88 188 80 200 80S220 88 220 100V180H300C312 180 320 188 320 200S312 220 300 220H220V300C220 312 212 320 200 320S180 312 180 300V220H100C88 220 80 212 80 200S88 180 100 180L100 180z":"M100 140H140V100C140 88 148 80 160 80S180 88 180 100V140H220C232 140 240 148 240 160S232 180 220 180H180V220C180 232 172 240 160 240S140 232 140 220V180H100C88 180 80 172 80 160S88 140 100 140L100 140zM300 320H20C8 320 0 312 0 300V20C0 8 8 0 20 0H300C312 0 320 8 320 20V300C320 312 312 320 300 320L300 320zM280 40H40V280H280V40L280 40z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_f.defaultProps={size:Cq.IconSize.STANDARD},_f.displayName="Blueprint5.Icon.Insert";var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_p=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"trash",ref:t},e),_.createElement("path",{d:n?"M340 380H240C240 391 231 400 220 400H180C169 400 160 391 160 380H60C49 380 40 371 40 360V340H360V360C360 371 351 380 340 380zM350 320H50C44.4 320 40 315.6 40 310C40 304.4 44.4 300 50 300H60V20C60 9 69 0 80 0H320C331 0 340 9 340 20V300H350C355.6 300 360 304.4 360 310C360 315.6 355.6 320 350 320zM140 80C140 69 131 60 120 60S100 69 100 80V240C100 251 109 260 120 260S140 251 140 240V80zM220 80C220 69 211 60 200 60S180 69 180 80V240C180 251 189 260 200 260S220 251 220 240V80zM300 80C300 69 291 60 280 60S260 69 260 80V240C260 251 269 260 280 260S300 251 300 240V80z":"M289.8 240.2H29.8C24.2 240.2 19.8 235.8 19.8 230.2S24.2 220.2 29.8 220.2H39.8V20.2C39.8 9.2 48.8 0.2 59.8 0.2H259.8C270.8 0.2 279.8 9.2 279.8 20.2V220.2H289.8C295.4 220.2 299.8 224.6 299.8 230.2S295.4 240.2 289.8 240.2zM119.8 60.2C119.8 49.2 110.8 40.2 99.8 40.2S79.8 49.2 79.8 60.2V180.2C79.8 191.2 88.8 200.2 99.8 200.2S119.8 191.2 119.8 180.2V60.2zM179.8 60.2C179.8 49.2 170.8 40.2 159.8 40.2S139.8 49.2 139.8 60.2V180.2C139.8 191.2 148.8 200.2 159.8 200.2S179.8 191.2 179.8 180.2V60.2zM239.8 60.2C239.8 49.2 230.8 40.2 219.8 40.2S199.8 49.2 199.8 60.2V180.2C199.8 191.2 208.8 200.2 219.8 200.2S239.8 191.2 239.8 180.2V60.2zM279.8 300.2H199.8C199.8 311.2 190.8 320.2 179.8 320.2H139.8C128.8 320.2 119.8 311.2 119.8 300.2H39.8C28.8 300.2 19.8 291.2 19.8 280.2V260.2H299.8V280.2C299.8 291.2 290.8 300.2 279.8 300.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_p.defaultProps={size:Cq.IconSize.STANDARD},_p.displayName="Blueprint5.Icon.Trash";let _g=F(({store:e,page:t,xPadding:n,yPadding:r,layout:i="vertical"})=>{let a=e.pages.length>1,o=e.pages.indexOf(t),l="horizontal"===i,s=l?_c:_d,c=l?_u:_s,u=l?mb("workspace.moveLeft"):mb("workspace.moveUp"),d=l?mb("workspace.moveRight"):mb("workspace.moveDown");return"selection"!==e.tool||e.role===sJ.VIEWER?null:(0,S.jsxs)("div",{style:{position:"absolute",top:r-40+"px",right:n+"px"},children:[a&&(0,S.jsx)(_l,{content:u,disabled:0===o,children:(0,S.jsx)(C8,{icon:(0,S.jsx)(s,{}),minimal:!0,disabled:0===o,onClick:()=>{t.setZIndex(o-1)},"aria-label":u})}),a&&(0,S.jsx)(_l,{content:d,disabled:o===e.pages.length-1,children:(0,S.jsx)(C8,{icon:(0,S.jsx)(c,{}),"aria-label":d,minimal:!0,disabled:o===e.pages.length-1,onClick:()=>{let n=e.pages.indexOf(t);t.setZIndex(n+1)}})}),(0,S.jsx)(_l,{content:mb("workspace.duplicatePage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_h,{}),minimal:!0,"aria-label":mb("workspace.duplicatePage"),onClick:()=>{t.clone()}})}),a&&(0,S.jsx)(_l,{content:mb("workspace.removePage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_p,{}),"aria-label":mb("workspace.removePage"),minimal:!0,onClick:()=>{e.deletePages([t.id])}})}),(0,S.jsx)(_l,{content:mb("workspace.addPage"),children:(0,S.jsx)(C8,{icon:(0,S.jsx)(_f,{}),minimal:!0,"aria-label":mb("workspace.addPage"),onClick:()=>{let n=e.addPage({bleed:e.activePage?.bleed||0,width:e.activePage?.width||"auto",height:e.activePage?.height||"auto"}),r=e.pages.indexOf(t);n.setZIndex(r+1)}})})]})});var _=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),m_=C("gztBd"),_=C("8NFma"),_m=function(e){var t=e.className,n=(0,m_.__rest)(e,["className"]);return _.createElement("div",(0,m_.__assign)({className:y(mE)(yK.NAVBAR_DIVIDER,t)},n))};_m.displayName="".concat(CM,".NavbarDivider");var m_=C("gztBd"),_=C("8NFma"),_y=function(e){var t=e.align,n=void 0===t?yZ:t,r=e.children,i=e.className,a=(0,m_.__rest)(e,["align","children","className"]),o=y(mE)(yK.NAVBAR_GROUP,yK.alignmentClass(n),i);return CQ(function(){"center"===n&&console.warn(m8)},[n]),_.createElement("div",(0,m_.__assign)({className:o},a),r)};_y.displayName="".concat(CM,".NavbarGroup");var m_=C("gztBd"),_=C("8NFma"),_b=function(e){var t=e.children,n=e.className,r=(0,m_.__rest)(e,["children","className"]);return _.createElement("div",(0,m_.__assign)({className:y(mE)(yK.NAVBAR_HEADING,n)},r),t)};_b.displayName="".concat(CM,".NavbarHeading");var _v=function(e){var t,n=e.children,r=e.className,i=e.fixedToTop,a=(0,m_.__rest)(e,["children","className","fixedToTop"]),o=y(mE)(yK.NAVBAR,((t={})[yK.FIXED_TOP]=i,t),r);return _.createElement("div",(0,m_.__assign)({className:o},a),n)};_v.displayName="".concat(CM,".Navbar"),_v.Divider=_m,_v.Group=_y,_v.Heading=_b;var _=C("8NFma"),_x="start",m_=C("gztBd"),_=C("8NFma"),_w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={chopSize:t.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!1,visible:t.props.items},t.spacer=null,t.resize=function(){t.repartition()},t}return(0,m_.__extends)(t,e),t.ofType=function(){return t},t.prototype.componentDidMount=function(){this.repartition()},t.prototype.shouldComponentUpdate=function(e,t){return this.props!==e||!(this.state!==t&&mD(this.state,t))},t.prototype.componentDidUpdate=function(e,t){e.observeParents!==this.props.observeParents&&console.warn(yr),(e.collapseFrom!==this.props.collapseFrom||e.items!==this.props.items||e.minVisibleItems!==this.props.minVisibleItems||e.overflowRenderer!==this.props.overflowRenderer||e.alwaysRenderOverflow!==this.props.alwaysRenderOverflow||e.visibleItemRenderer!==this.props.visibleItemRenderer)&&this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!0,visible:this.props.items});var n,r,i=this.state,a=i.repartitioning,o=i.overflow,l=i.lastOverflowCount;!1===a&&!0===t.repartitioning?o.length!==l&&(null==(r=(n=this.props).onOverflow)||r.call(n,o.slice())):mD(t,this.state)||this.repartition()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.collapseFrom,i=t.observeParents,a=t.style,o=t.tagName,l=t.visibleItemRenderer,s=this.maybeRenderOverflow(),c=_.createElement(void 0===o?"div":o,{className:y(mE)(yK.OVERFLOW_LIST,n),style:a},r===_x?s:null,this.state.visible.map(l),"end"===r?s:null,_.createElement("div",{className:yK.OVERFLOW_LIST_SPACER,ref:function(t){return e.spacer=t}}));return _.createElement(S1,{onResize:this.resize,observeParents:i},c)},t.prototype.maybeRenderOverflow=function(){var e=this.state.overflow;return 0!==e.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(e.slice()):null},t.prototype.repartition=function(){var e,t=this;if(null!=this.spacer){var n=1===this.state.lastChopSize,r=null!=(e=this.props.minVisibleItems)?e:0,i=this.spacer.offsetWidth<.9&&this.state.visible.length>r,a=(this.spacer.offsetWidth>=1||this.state.visible.length<r)&&this.state.overflow.length>0&&!n;i||a?this.setState(function(e){if("end"===t.props.collapseFrom){var n,r,a=_k(e.visible,e.overflow,t.state.chopSize*(i?1:-1));n=a[0],r=a[1]}else{var a=_k(e.overflow,e.visible,t.state.chopSize*(i?-1:1));r=a[0],n=a[1]}return{chopSize:_C(e.chopSize),lastChopSize:e.chopSize,lastOverflowCount:t.isFirstPartitionCycle(e.chopSize)?e.overflow.length:e.lastOverflowCount,overflow:r,repartitioning:!0,visible:n}}):this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,repartitioning:!1})}},t.prototype.defaultChopSize=function(){return _C(this.props.items.length)},t.prototype.isFirstPartitionCycle=function(e){return e===this.defaultChopSize()},t.displayName="".concat(CM,".OverflowList"),t.defaultProps={alwaysRenderOverflow:!1,collapseFrom:_x,minVisibleItems:0},t}(_.Component);function _C(e){return Math.ceil(e/2)}function _k(e,t,n){var r=e.concat(t),i=e.length-n;if(i<=0)return[[],r];if(i>=r.length)return[r,[]];var a=r.length-i;return[r.slice(0,-a),r.slice(-a)]}var m_=C("gztBd"),_=C("8NFma"),Cq=C("leH9B"),_S=_.forwardRef(function(e,t){var n=e.size>=Cq.IconSize.LARGE,r=n?Cq.IconSize.LARGE:Cq.IconSize.STANDARD,i="".concat(-1*r/.05/2);return _.createElement(CY,(0,m_.__assign)({iconName:"more",ref:t},e),_.createElement("path",{d:n?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:{transformOrigin:"center"}}))});_S.defaultProps={size:Cq.IconSize.STANDARD},_S.displayName="Blueprint5.Icon.More";let __=cm("div",y(_).forwardRef)`
416
416
  ${lp(`
417
417
  width: auto !important;
418
418
  `)}