Files
smartmate/docs/design/HTML/mb-proto2/3.h4vam-vendor-2d698da2724b2e432fa0.js
2026-02-01 22:09:59 +08:00

32 lines
5.5 MiB
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
try{let eo=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},ot=new eo.Error().stack;ot&&(eo._sentryDebugIds=eo._sentryDebugIds||{},eo._sentryDebugIds[ot]="26381732-b681-4c6f-b6b3-336f3a03b887",eo._sentryDebugIdIdentifier="sentry-dbid-26381732-b681-4c6f-b6b3-336f3a03b887")}catch(eo){}{let eo=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};eo.SENTRY_RELEASE={id:"22.14.12"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[347],{456:(eo,ot,i)=>{"use strict";i.d(ot,{I:()=>M});var a=i(38502),k=i(8580);const M=(P,C,q)=>(0,a.useMemo)(()=>{if(!P||!C||!sdkStore.getHotItem(P)||sdkStore.isTrashed(P))return null;const{transform:Y,rect:J}=(0,k.Oj)(P),{x:O,y:l}=Y.clone().scale(q,q).apply({x:J.x,y:J.y}),D={top:C.top*q,left:C.left*q,width:C.width*q,height:C.height*q};return{top:l+D.top,left:O+D.left,width:D.width,height:D.height}},[P,C,q])},509:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(95549),k=i(38502),M=i(18381),P=i(75504),C=i(46998),q=i(72214);class Y extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"handleCloseModal",l=>{if(typeof l=="string"){this.props.dispatch({type:"previewModal:reset:popup:state",payload:{modalName:l}});return}this.props.dispatch({type:"previewModal:reset:state"})})}render(){const{preOpenHyperlinkModal:l,imagePreviewModal:D}=this.props;return(0,q.jsxs)(q.Fragment,{children:[l.isOpen&&(0,q.jsx)(P.A,{...l,onClose:this.handleCloseModal}),D.isOpen&&(0,q.jsx)(C.A,{...D,onClose:()=>{this.handleCloseModal("imagePreviewModal")}})]})}}const J=(0,M.Ng)(O=>({...O.container.modals}))(Y)},601:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Ze});var a=i(18381),k=i(12211),M=i(16454),P=i(96986),C=i(38502),q=i(89960),Y=i(72214);const J=fe=>((0,C.useEffect)(()=>{const{dispatch:it}=fe;return it({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),()=>{it({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[]),(0,Y.jsx)(q.L,{...fe,commentPanelWidth:fe.rightPaneWidth})),O=(0,k.Mz)([P.VT,P.Cb,P.c1,P.M5,M.bF,M.O4],(fe,it,et,Ut,G,Ht)=>{let{isHTMLZip:Tt}=G;return{commentList:fe,activeCommentCid:it,selected:et,isShowCompletedComment:Ut,viewType:new URLSearchParams(location.search).get("view_mode"),isHtmlZipPreview:Tt,theme:Ht}}),l=(0,a.Ng)(fe=>O(fe))(J);var D=i(67787);const m=D.Ay.div.withConfig({displayName:"styles__StyledRightPane",componentId:"sc-14zoiba-0"})(["position:relative;display:flex;flex-direction:column;height:calc(100% - 48px);top:48px;border-left:1px solid ",";z-index:100;.border-resizer.left{left:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.preview-panel-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;}&:hover{.toggle-minimized-button{&:not(.is-minimized){opacity:1;pointer-events:auto;}}}"],fe=>fe.theme.color_bg_border_01);var E=i(5352),f=i(89208),h=i(53940),S=i(44599),V=i(47892);const We=null,re=()=>{},ve=(0,k.Mz)([M.x,M.PL,M.bF,M.Ur,M.HW,M.wA],(fe,it,et,Ut,G,Ht)=>{let{isHTMLZip:Tt}=et;return{newSelection:[],isST:!0,currentScreen:Ut,isWidgetBeingExported:fe,isHtmlZipPreview:Tt,currentProject:it,currentUser:G,currentOrg:Ht}}),we=(fe,it)=>({updateExportSettings:re,exportItem:et=>fe({type:"entry:export:item",payload:{exportConfigList:et,itemToExportKeyList:it.itemToExportKeyList}})}),Ae=(0,a.Ng)(fe=>ve(fe),we)(V.A);var Oe=i(73658),Be=i(33394),tt=i(52490),Xe=i(53707);const ne=()=>{},lt=fe=>{var it,et;let{rightPaneWidth:Ut,maxRightPaneWidth:G}=fe;const{activeCanvasKey:Ht,overlayStack:Tt}=(0,a.d4)(M.mf),{isHTMLZip:Vt}=(0,a.d4)(M.bF),He=(0,a.d4)(M.PL),rn="recommend",Lt=Tt.length>0?(0,Oe.Je)(Tt[Tt.length-1].targetOverlayKey,sdkStore):(0,Oe.Je)(Ht,sdkStore),jt=(0,a.wA)(),[mt,Jn]=(0,C.useState)(""),[o,so]=(0,C.useState)(!1),[Et,Jt]=(0,C.useState)(new Set),[Ot,dn]=(0,C.useState)(new Set),Ce=!Lt.every(Yt=>{let{key:Gt}=Yt;return Ot.has(Gt)}),Pt=new Set([...Array.from(Et),...Array.from(Ot)]),Nn=Lt.every(Yt=>{let{key:Gt}=Yt;return Pt.has(Gt)}),At=Yt=>{jt({type:"preview:set:rightPaneWidth",payload:{rightPaneWidth:Yt,projectCid:He.cid}})},on=Yt=>{Jn(Yt)},no=()=>Jn(""),mo=Yt=>{const Gt=new Set(Et);Gt.has(Yt)?Gt.delete(Yt):Gt.add(Yt),Jt(Gt)},mn=Yt=>{const Gt=new Set(Ot);Gt.add(Yt),dn(Gt)},ht=Yt=>{const Gt=new Set(Ot);Ot.delete(Yt),dn(Gt)},Fn=()=>{Jt(Nn?new Set:new Set(Lt.map(Yt=>{let{key:Gt}=Yt;return Gt})))};return(0,Y.jsxs)(rt,{style:{width:Ut},children:[(0,Y.jsx)(E.A,{placement:"left",className:"v-resizer",value:Ut,min:h.xM,max:G,onChange:At}),(0,Y.jsxs)(Be.b,{children:[(0,Y.jsx)(Be.u,{activeIndex:0,onTabChange:ne,layoutV9:rn,children:(0,Y.jsx)(f.n,{label:I18N.Note.note,active:!0})}),Ce&&(0,Y.jsx)("span",{className:"expandAll",onClick:Fn,children:Nn?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),Lt.length===0?(0,Y.jsx)(S.h,{}):(0,Y.jsx)(Xe.TV,{onClick:no,children:(0,Y.jsx)("div",{className:"st-list",children:Lt.map((Yt,Gt)=>(0,Y.jsx)(tt.i,{isActive:mt===Yt.key,st:Yt,isHtmlZipPreview:Vt,setIsExportOpenFromContainer:so,onMouseDown:ne,editable:!1,selectST:on,deleteST:ne,isExpanded:Et.has(Yt.key),isAlreadyExpanded:Ot.has(Yt.key),STPanelWidth:Ut,toggleExpandKeySet:mo,pushToAlreadyExpandKeySet:mn,deleteFromAlreadyExpandKeySet:ht},Gt))})}),!Vt&&(0,Y.jsx)(Ae,{selectedWidgetCount:mt?1:Lt.length,itemToExportKeyList:mt?[mt]:Lt.map(Yt=>{let{key:Gt}=Yt;return Gt}),exportWidgetTreeCids:mt||Lt.map(Yt=>{let{key:Gt}=Yt;return Gt}).join("-"),isLogin:!!(!((it=MB)==null||(it=it.user)==null)&&it.id),widgetDisplayName:mt?""+I18N.Note.note+(((et=Lt.find(Yt=>{let{key:Gt}=Yt;return Gt===mt}))==null||(et=et.hotAttr)==null?void 0:et.order)||""):I18N.Note.selected_notes,isExportOpenFromContainer:o,setIsExportOpenFromContainer:so})]})},rt=D.Ay.div.withConfig({displayName:"STPanel__StyledSTPanelWrapper",componentId:"sc-rki154-0"})(["display:flex;flex-direction:column;height:100%;"]);var Te=i(23200);const Ge=(0,Te.$)(lt),ue=fe=>{let{isCommentPanelShow:it,isFullScreenMode:et}=fe;const Ut=(0,a.d4)(M.E1),G=(0,a.d4)(M.zo),Ht=window.innerWidth-h.K_-Ut,Tt=(0,a.d4)(M.UB),{isHTMLZip:Vt}=(0,a.d4)(M.bF),He=(0,a.wA)(),rn=(0,a.d4)(M.U4),Lt=()=>He({type:"entry:preview-setting:toggle:rightPane"}),jt=Vt||Tt&&(typeof Tt.view_sticky=="string"?Tt.view_sticky==="view_sticky":Tt.view_sticky);return(0,Y.jsx)(m,{id:"mb-preview-rightpane",className:et?"is-fullscreen-mode":"",children:it?(0,Y.jsx)(l,{rightPaneWidth:G}):jt&&(0,Y.jsx)(Ge,{isVisible:rn,orientation:"right",toggleFunc:Lt,rightPaneWidth:G,maxRightPaneWidth:Ht})})},Me=(0,k.Mz)([P.sI,M.Ph,M.ZR],(fe,it,et)=>{let{isShowRightPane:Ut}=et;return{isCommentPanelShow:fe&&MB.user.id,isFullScreenMode:it,isShowRightPane:Ut}}),Ze=(0,a.Ng)(fe=>Me(fe))(ue)},1061:(eo,ot,i)=>{"use strict";i.d(ot,{Pq:()=>J});const a=null,k=null,M=null,P=null,C=null,q=null,Y=null,J=(O,l)=>!!(O&l)},1072:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>We,r:()=>V});var a=i(95549),k=i(38502),M=i(39e3),P=i(10393),C=i(11619),q=i(20089),Y=i(11246),J=i(79869),O=i(72214);class l extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"handleClick",we=>{we.stopPropagation(),we.preventDefault();const{dispatch:Ae,tearHi:Oe}=this.props;Ae({type:"ST:update",payload:{activeTearPreview:Oe}})})}render(){const{scale:we,tearHi:Ae,pageKey:Oe,activeKey:Be,scrollTop:tt,scrollLeft:Xe,STBasketMap:ne,basketScrollTopMap:lt,basketScrollLeftMap:rt}=this.props,{key:Te,hotAttr:Ge}=Ae,ue=100/we;let Me,Ze="visible";Ge.isInBasket?((0,C.xC)(Ge,Oe,tt,Xe,Be,ne,lt,rt)||(Ze="hidden"),Me=(0,C.HN)(Ge,ne,lt,rt)):V(Ge.refWCKey)?((0,C.D)(Ge,Oe,Be)||(Ze="hidden"),Me=(0,C.$S)(Ge,Oe,Be)):((0,C.Zb)(Ge,Oe,tt,Xe,Be)||(Ze="hidden"),Me=(0,C.n2)(Ge,Oe));const fe={left:Me.left,top:Me.top,transform:"scale("+ue+")",opacity:Ge.isVisible?Ge.opacity:0,position:Me.position,visibility:Ze};if(Ge.refWCKey){const it=(0,J.R)(Ge.refWCKey,Ge.basketKey);it&&(fe.opacity=it.visible?1:0,it.duration&&(fe.transition="opacity "+it.duration+"ms"))}return(0,O.jsx)("div",{"data-cid":Te,"data-basket-key":Ge.basketKey,"data-basketcanvas-key":Ge.basketCanvasKey,id:"widget"+Te+"p",style:fe,onClick:this.handleClick,children:(0,O.jsx)(Y._,{widget:Ae,canHover:!0})},Te)}}var D=i(24281),m=i(63986),E=i.n(m),f=i(34602),h=i(67787);const S=h.Ay.div.withConfig({displayName:"styled__StyledStickyContainer",componentId:"sc-14e01np-0"})(["{overflow:visible;position:absolute;top:0;left:0;height:0;z-index:200;& > div{overflow:visible;position:relative;top:0;left:0;height:0;}.sticky{user-select:text;.arrow{pointer-events:none;}&:hover{.sideline,.arrow{opacity:0.7;}}}}"]);function V(ve){const{fixedOnTop:we,fixedOnBottom:Ae}=(0,D.dI)(ve);return we||Ae}class We extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"state",{stickyList:[],fixedStickyList:[],tearList:[],fixedTearList:[],animatingPageOffset:null}),(0,a.A)(this,"removeRanges",()=>{window.getSelection().removeAllRanges()}),(0,a.A)(this,"handleClickOutside",we=>{if(typeof we.clientX!="number"||typeof we.clientY!="number")return;const Ae=document.elementFromPoint(we.clientX,we.clientY);if((Ae&&Ae.closest(".STSticky"))!==null)return;const{dispatch:Be}=this.props;Be({type:"ST:update",payload:{activeTearPreview:null}})}),(0,a.A)(this,"getSTList",()=>{const{stList:we,basketSTList:Ae,STBasketMap:Oe,offset:Be,scale:tt,dispatch:Xe}=this.props,ne=[],lt=[],rt=[],Te=[];we.forEach(Me=>{Me.hotAttr.type===q.x.WSticky?V(Me.hotAttr.refWCKey)?lt.push(Me):ne.push(Me):Me.hotAttr.type===q.x.WTear&&(V(Me.hotAttr.refWCKey)?Te.push(Me):rt.push(Me))}),Ae.forEach(Me=>{Me.hotAttr={...Me.hotAttr,cid:Me.key,isInBasket:!0,basketKey:Me.basketKey,basketCanvasKey:Me.basketCanvasKey},Me.hotAttr.type===q.x.WSticky?ne.push(Me):Me.hotAttr.type===q.x.WTear&&rt.push(Me)}),this.setState({stickyList:ne,fixedStickyList:lt,tearList:rt,fixedTearList:Te});const Ge=(0,C.vb)(we.concat(Ae),Oe),ue=[Ge[0]+Math.abs(Be.x*100/tt),Ge[1]+Math.abs(Be.y*100/tt)];Xe({type:"preview:set:STRenderArea",payload:{STRenderArea:ue}})}),(0,a.A)(this,"componentDidMount",()=>{this.getSTList(),this.observeAppPageAnimating()}),(0,a.A)(this,"observeAppPageAnimating",()=>{const we=document.getElementById("app");if(we){const Ae=Be=>{for(const tt of Be){const{attributeName:Xe,target:ne}=tt;if(!ne)return;if(Xe==="style"&&ne.id==="pscreen"+this.props.pageKey){const lt=(0,f.q)(ne);this.setState({animatingPageOffset:lt})}}},Oe=new MutationObserver(Ae);Oe.observe(we,{subtree:!0,attributes:!0,attributeFilter:["style"]}),this._observer=Oe}}),(0,a.A)(this,"clearObserver",()=>{this._observer&&this._observer.disconnect(),this._observer=null}),(0,a.A)(this,"componentDidUpdate",we=>{(we.tearStickyCacheTag!==this.props.tearStickyCacheTag||we.pageKey!==this.props.pageKey||!E()(we.basketSTList,this.props.basketSTList)||!E()(we.stList,this.props.stList))&&this.getSTList()})}componentWillUnmount(){this.clearObserver()}render(){let{scrollTop:we,scale:Ae,dispatch:Oe,pageKey:Be,activeKey:tt,scrollLeft:Xe,STBasketMap:ne,basketScrollTopMap:lt,basketScrollLeftMap:rt}=this.props;const{stickyList:Te,tearList:Ge,fixedStickyList:ue,fixedTearList:Me,animatingPageOffset:Ze}=this.state;return Ze&&(we+=Ze.translateY,Xe+=Ze.translateX),(0,O.jsxs)(S,{id:"sticky-container",children:[(0,O.jsxs)("div",{style:{marginTop:we||0,marginLeft:Xe},children:[Te.map((fe,it)=>(0,O.jsx)(re,{sticky:fe,scrollTop:we,scrollLeft:Xe,pageKey:Be,activeKey:tt,STBasketMap:ne,basketScrollTopMap:lt,basketScrollLeftMap:rt},it)),Ge.map((fe,it)=>(0,O.jsx)(l,{tearHi:fe,scale:Ae,dispatch:Oe,pageKey:Be,activeKey:tt,scrollTop:we,scrollLeft:Xe,STBasketMap:ne,basketScrollTopMap:lt,basketScrollLeftMap:rt},it))]}),(0,O.jsxs)("div",{children:[ue.map(fe=>(0,O.jsx)(re,{sticky:fe,scrollTop:0,scrollLeft:0,pageKey:Be,activeKey:tt},fe.key)),Me.map((fe,it)=>(0,O.jsx)(l,{tearHi:fe,scale:Ae,dispatch:Oe,pageKey:Be,activeKey:tt,scrollTop:0,scrollLeft:0},it))]}),(0,O.jsx)(M.A,{target:document,onClick:(0,M.t)(this.handleClickOutside,{capture:!0})}),(0,O.jsx)(M.A,{target:document,onMouseDown:(0,M.t)(this.removeRanges,{capture:!0})})]})}}const re=ve=>{const{sticky:we,pageKey:Ae,scrollTop:Oe,activeKey:Be,scrollLeft:tt,STBasketMap:Xe,basketScrollTopMap:ne,basketScrollLeftMap:lt}=ve,{key:rt,hotAttr:Te}=we,{type:Ge,refWCKey:ue,isInBasket:Me,isVisible:Ze,basketKey:fe,basketCanvasKey:it,zIndex:et}=Te,Ut="widget "+Ge;let G,Ht="visible",Tt=[...sdkStore.getHotAABB(rt)];Me?((0,C.xC)(Te,Ae,Oe,tt,Be,Xe,ne,lt)||(Ht="hidden"),Tt=[...(0,C.ec)(rt,Te,Xe)],G=(0,C.HN)(Te,Xe,ne,lt)):V(ue)?((0,C.tv)(Te,Ae,Be)||(Ht="hidden"),G=(0,C.$S)(Te,Ae,Be)):((0,C.J3)(Te,Ae,Oe,tt,Be)||(Ht="hidden"),G=(0,C.n2)(Te,Ae));const Vt={...G,zIndex:et,opacity:Number(Ze),visibility:Ht};if(ue){const He=(0,J.R)(ue,fe);He&&(Vt.opacity=He.visible?1:0,He.duration&&(Vt.transition="opacity "+He.duration+"ms"))}return Vt.pointerEvents=Vt.opacity?"auto":"none",(0,O.jsx)("div",{"data-cid":rt,"data-basket-key":fe,"data-basketcanvas-key":it,id:"widget"+rt+"p",className:Ut,style:Vt,children:(0,O.jsx)(P.l,{widget:we,aabb:Tt,isPreview:!0,sdk:sdkStore,type:"preview"})},rt)}},1268:eo=>{eo.exports=function(){var ot=document.getSelection();if(!ot.rangeCount)return function(){};for(var i=document.activeElement,a=[],k=0;k<ot.rangeCount;k++)a.push(ot.getRangeAt(k));switch(i.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":i.blur();break;default:i=null;break}return ot.removeAllRanges(),function(){ot.type==="Caret"&&ot.removeAllRanges(),ot.rangeCount||a.forEach(function(M){ot.addRange(M)}),i&&i.focus()}}},1404:(eo,ot,i)=>{"use strict";i.d(ot,{n:()=>P});var a=i(67787),k=i(24492),M=i(69594);const P=a.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-1mzbbw4-0"})(["",";position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%;color:",";font-size:12px;z-index:1;background-color:",";ol,ul{list-style:none;}.main-content{position:relative;flex:1;display:flex;justify-content:space-between;overflow:hidden;.mb-viewport{flex:1;display:flex;flex-direction:column;min-width:400px;}}.fixed_area{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;> *{pointer-events:auto;}}a{&.link-highlight,.link-highlight{background:#BAD7FB;}}&.isDeleteRulerLine{cursor:",";}"],k.c,C=>C.theme.color_text_L2,C=>C.theme.color_btn_secondary_active,M.M.rulerDelete)},2815:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>C});var a=i(38502),k=i(10712),M=i(72214);const C=q=>(0,M.jsx)(k.A,{...q,className:"draft-toolbar-dropdown-option"})},3149:(eo,ot,i)=>{"use strict";i.d(ot,{r:()=>k,t:()=>a});const a={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"},"command+[":{type:"entry:preview-setting:toggle:isMinimized"},"ctrl+[":{type:"entry:preview-setting:toggle:isMinimized"},"command+]":{type:"entry:preview-setting:toggle:rightPane"},"ctrl+]":{type:"entry:preview-setting:toggle:rightPane"},"command+alt+a":{type:"entry:ST:STMode:toggle"},"ctrl+alt+a":{type:"entry:ST:STMode:toggle"}}},k={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"}}}},3485:eo=>{var ot=typeof Element<"u",i=typeof Map=="function",a=typeof Set=="function",k=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function M(P,C){if(P===C)return!0;if(P&&C&&typeof P=="object"&&typeof C=="object"){if(P.constructor!==C.constructor)return!1;var q,Y,J;if(Array.isArray(P)){if(q=P.length,q!=C.length)return!1;for(Y=q;Y--!==0;)if(!M(P[Y],C[Y]))return!1;return!0}var O;if(i&&P instanceof Map&&C instanceof Map){if(P.size!==C.size)return!1;for(O=P.entries();!(Y=O.next()).done;)if(!C.has(Y.value[0]))return!1;for(O=P.entries();!(Y=O.next()).done;)if(!M(Y.value[1],C.get(Y.value[0])))return!1;return!0}if(a&&P instanceof Set&&C instanceof Set){if(P.size!==C.size)return!1;for(O=P.entries();!(Y=O.next()).done;)if(!C.has(Y.value[0]))return!1;return!0}if(k&&ArrayBuffer.isView(P)&&ArrayBuffer.isView(C)){if(q=P.length,q!=C.length)return!1;for(Y=q;Y--!==0;)if(P[Y]!==C[Y])return!1;return!0}if(P.constructor===RegExp)return P.source===C.source&&P.flags===C.flags;if(P.valueOf!==Object.prototype.valueOf&&typeof P.valueOf=="function"&&typeof C.valueOf=="function")return P.valueOf()===C.valueOf();if(P.toString!==Object.prototype.toString&&typeof P.toString=="function"&&typeof C.toString=="function")return P.toString()===C.toString();if(J=Object.keys(P),q=J.length,q!==Object.keys(C).length)return!1;for(Y=q;Y--!==0;)if(!Object.prototype.hasOwnProperty.call(C,J[Y]))return!1;if(ot&&P instanceof Element)return!1;for(Y=q;Y--!==0;)if(!((J[Y]==="_owner"||J[Y]==="__v"||J[Y]==="__o")&&P.$$typeof)&&!M(P[J[Y]],C[J[Y]]))return!1;return!0}return P!==P&&C!==C}eo.exports=function(C,q){try{return M(C,q)}catch(Y){if((Y.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw Y}}},3876:(eo,ot,i)=>{"use strict";i.d(ot,{E:()=>h});var a=i(38502),k=i(18381),M=i(12211),P=i(70248),C=i(70933),q=i(60651),Y=i(7457),J=i(4235),O=i(67787);const l=O.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspotContainer",componentId:"sc-1nlyllx-0"})(["position:absolute;z-index:3;"]),D=O.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspot",componentId:"sc-1nlyllx-1"})(["position:absolute;pointer-events:auto;z-index:",";transform:",";width:","px;height:","px;"],re=>re.zIndex,re=>"translate("+(re.x-re.w*.5)*re.scale+"px,"+(re.y-re.h*.5)*re.scale+"px) rotate("+re.r+"deg)",re=>re.w*re.scale,re=>re.h*re.scale);var m=i(20089),E=i(98915),f=i(72214),h=function(re){return re[re.canvas=1]="canvas",re[re.canvasList=2]="canvasList",re[re.widget=3]="widget",re[re.group=4]="group",re[re.panel=5]="panel",re[re.page=6]="page",re[re.canvasStateList=7]="canvasStateList",re[re.overlay=8]="overlay",re}(h||{});const S=(0,M.Mz)([Y.nF,J.p$,q.IL,C.X_,q.jI],(re,ve,we,Ae,Oe)=>{const Be=ve[0];return{isDragLink:re,editingBDanliKey:Oe,interactiveTriggerKey:Be,interactiveTargetKey:we,scale:Ae}}),V=re=>{let{editingBDanliKey:ve,targetKey:we,scale:Ae}=re;const Oe=sdkStore.getHotItem(we);if(!Oe)return null;const{hotAttr:{zIndex:Be}}=Oe,tt=Widget.USE_CLIP_TEXT.includes(Oe.hotAttr.type)?calcRichTextedHotBound(we):Oe.hotAttr.type==="wWrap"?calcRichTextedWrapHotBound(we):sdkStore.getHotBound(we);let Xe,ne=ve?connShadowKeyRefSeqs([ve,we]):we;switch(Oe.hotAttr.type){case"rResCanvas":{Xe=Oe.hotAttr.asOverlay?h.overlay:h.canvas,ne=we;break}case"wWrap":{Xe=h.group;break}case"wBasket":{Xe=h.panel;break}default:Xe=h.widget}const lt=useMemo(()=>{var rt,Te;const Ge=sdkStore.locUpMainCanvasKey(we);if(!Ge)return Be;const ue=((rt=sdkStore.getHotItem(Ge))==null?void 0:rt.hotAttr)||{};return Oe.hotAttr.type==="rResCanvas"?Be:((Te=ue.zIndex)!=null?Te:0)+Be},[we]);return _jsx(StyledInteractiveTargetHotspot,{className:"interactive-target-hotspot","data-interactive-target-key":ne,"data-interactive-target-type":Xe,scale:Ae/100,zIndex:lt,...tt},Oe.key)},We=()=>{const{editingBDanliKey:re,interactiveTriggerKey:ve,interactiveTargetKey:we,isDragLink:Ae,scale:Oe}=useSelector(S);return Ae?_jsxs(StyledInteractiveTargetHotspotContainer,{children:[we&&_jsx(V,{targetKey:we,editingBDanliKey:re,scale:Oe}),ve&&_jsx(V,{targetKey:ve,editingBDanliKey:re,scale:Oe})]}):null}},4803:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z",fill:"#19191A"}))})},5352:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(25582),k=i.n(a),M=i(38502),P=i(53732),C=i.n(P),q=i(67787);const Y=q.Ay.div.withConfig({displayName:"styles__StyledBorderResizer",componentId:"sc-13o263g-0"})(["position:absolute;z-index:3;.v-resizer{z-index:11;}&.top,&.bottom{left:0;width:100%;height:3px;cursor:ns-resize;}&.top{top:1px;}&.bottom{bottom:-1px;}&.left,&.right{top:0;width:3px;height:100%;cursor:ew-resize;}&.left{left:1px;}&.right{right:0;}&:hover,&.active{background:#ff6161;}&.none-active-style{&:hover,&.active{background:none;}}"]),J=(0,q.DU)([".body-ns-resize{cursor:ns-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}.body-ew-resize{cursor:ew-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}"]);var O=i(72214);function l(f,h,S){return(h=D(h))in f?Object.defineProperty(f,h,{value:S,enumerable:!0,configurable:!0,writable:!0}):f[h]=S,f}function D(f){var h=m(f,"string");return typeof h=="symbol"?h:h+""}function m(f,h){if(typeof f!="object"||!f)return f;var S=f[Symbol.toPrimitive];if(S!==void 0){var V=S.call(f,h||"default");if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}class E extends M.Component{constructor(){super(),l(this,"handleDown",h=>{h.preventDefault();const{placement:S,value:V,onResizeStart:We,onResizeEnd:re,onChange:ve}=this.props,we=["left","right"].includes(S),Ae=we?h.clientX:h.clientY,Oe=["bottom","right"].includes(S)?1:-1;this.setState({active:!0}),We();const Be=document.createElement("div");document.body.appendChild(Be),Be.classList.add(we?"body-ew-resize":"body-ns-resize");const tt=ne=>{const{min:lt,max:rt}=this.props,Ge=((we?ne.clientX:ne.clientY)-Ae)*Oe,ue=Math.max(Math.min(V+Ge,rt),lt);ve(ue)},Xe=()=>{Be.remove(),document.removeEventListener("mousemove",tt),document.removeEventListener("mouseup",Xe),this.setState({active:!1}),re()};document.addEventListener("mousemove",tt),document.addEventListener("mouseup",Xe)}),this.state={active:!1}}render(){const{placement:h,className:S}=this.props,{active:V}=this.state;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Y,{className:C()("border-resizer",S,h,{active:V}),onMouseDown:this.handleDown}),(0,O.jsx)(J,{})]})}}l(E,"propTypes",{placement:k().oneOf(["top","left","right","bottom"]),min:k().number,max:k().number,className:k().string,value:k().number,onChange:k().func,onResizeStart:k().func,onResizeEnd:k().func}),l(E,"defaultProps",{onResizeStart:()=>null,onResizeEnd:()=>null})},6323:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Y});var a=i(59895),k=i(76241),M=i(91834),P=i(38502),C=["show"];function q(J,O){if(!O.max)return!0;var l=O.strategy(J);return l<=O.max}function Y(J,O){return P.useMemo(function(){var l={};O&&(l.show=(0,M.A)(O)==="object"&&O.formatter?O.formatter:!!O),l=(0,k.A)((0,k.A)({},l),J);var D=l,m=D.show,E=(0,a.A)(D,C);return(0,k.A)((0,k.A)({},E),{},{show:!!m,showFormatter:typeof m=="function"?m:void 0,strategy:E.strategy||function(f){return f.length}})},[J,O])}},6357:(eo,ot,i)=>{"use strict";i.d(ot,{g$:()=>C,hb:()=>q,nU:()=>M,n_:()=>P});var a=i(67787),k=i(21066);const M=(0,a.Ay)(k.Ay).withConfig({displayName:"styles__StyledRightClickMenu",componentId:"sc-11cd6gn-0"})(["ul{padding:8px;border-radius:8px;background:",";box-shadow:",";border:1px solid ",";}li.MenuItem{&:not(.disabled).active{a{background:",";border-radius:4px;}}a{color:",";svg:not(.is-multi-color-icon) > path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}&.in-beta-icon{a{flex-direction:row-reverse;justify-content:flex-end;.beta{width:31px !important;height:14px !important;}> span{flex:none;margin-right:4px;}}}}"],Y=>Y.theme.color_bg_white,Y=>Y.theme.shadow_m,Y=>Y.theme.color_bg_border_01,Y=>Y.theme.color_btn_secondary_hover,Y=>Y.theme.color_text_L1,Y=>Y.theme.color_text_L1,Y=>Y.theme.color_text_L3,Y=>Y.theme.color_text_L3,Y=>Y.theme.color_text_disabled01,Y=>Y.theme.color_text_disabled01,Y=>Y.theme.color_text_disabled01),P=a.Ay.div.withConfig({displayName:"styles__StyledIconMenuItem",componentId:"sc-11cd6gn-1"})(["display:flex;align-items:center;justify-content:space-between;height:28px;li.MenuItem{flex:1;a{padding-right:6px;}}.icon-box{flex:0 0 26px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;svg.svg-icon{width:16px;}& .menu-z_forward,.menu-z_backward{svg.svg-icon{width:24px;}}&::before{display:inline-block;content:'';width:1px;height:16px;background:",";position:absolute;left:0;margin:0 2px;}&.disabled{opacity:0.4;cursor:not-allowed;a{cursor:not-allowed;}}&:not(.disabled):hover{background:#666;}&.forward,&.backward,&.unGroup{a{color:#979797;}}&.menu-right-box{padding-left:5px;padding-right:10px;&.from-topbar{padding-right:12px;}&:hover{background:rgba(0,0,0,0);}.auto-fill-box:hover{background:#666;}.menu-icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:",";&:hover{background:",";}}}&.unGroup{svg.svg-icon{path{&:nth-child(2),&:nth-child(4){fill:#dedee4;}}}}}.en-auto-fill-box{position:absolute;right:14px;pointer-events:none;width:24px;&.from-topbar{right:12px;}svg{width:24px;height:24px;}}"],Y=>Y.theme.color_bg_border_01,Y=>Y.theme.color_text_L1,Y=>Y.theme.color_btn_secondary_hover),C=a.Ay.div.withConfig({displayName:"styles__StyledMenuItemTips",componentId:"sc-11cd6gn-2"})(["display:flex;align-items:center;height:28px;position:relative;li.MenuItem{width:100%;a{padding-right:8px;}}.tipsIcon{position:absolute;right:10px;top:0px;width:24px;height:24px;border-radius:4px;path{color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}"],Y=>Y.theme.color_text_L1,Y=>Y.theme.color_btn_secondary_hover,Y=>Y.theme.color_btn_secondary_hover),q=(0,a.DU)(["#IBOT_TOOLTIP_ROOT{.tips-container{&.Tip.on-right{transform:translate(0,-50%);}&.is-open{transform:translate(0,-50%);}}}"])},6991:(eo,ot,i)=>{"use strict";i.d(ot,{s:()=>m});var a=i(38502),k=i(78401),M=i(30728),P=i(33908),C=i(35862),q=i(18381),Y=i(73629),J=i(36449),O=i(13642),l=i(34602),D=i(72214);function m(E){const{activeTear:f,mode:h,isReadonly:S,scale:V,tearOffset:We,editingCid:re,activeCanvasKey:ve,activePageKey:we,STBasketMap:Ae,scrollLeft:Oe,scrollTop:Be,basketScrollTopMap:tt,basketScrollLeftMap:Xe}=E,{hotAttr:ne}=f,lt=(0,q.wA)(),rt=(0,a.useRef)(null),Te=(0,a.useCallback)(Ze=>{var fe;Ze.stopPropagation(),(Ze.metaKey||Ze.ctrlKey)&&Ze.preventDefault(),((fe=document.elementFromPoint(Ze.clientX,Ze.clientY))==null?void 0:fe.closest("a"))||(lt({type:J.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),O.A.emit("draft:link-toast:hide"))},[lt]),Ge=(0,a.useCallback)(Ze=>{Ze.stopPropagation();const fe=document.elementFromPoint(Ze.clientX,Ze.clientY);if(S&&fe&&(fe.tagName==="SPAN"||fe.tagName==="P"||fe.tagName==="IMG"))return;const it={x:Ze.clientX,y:Ze.clientY},et=We;lt({type:"ST:update",payload:{isDraggingWTear:!1}}),lt({type:"ST:update",payload:{isDraggingTearSticky:!0}}),(0,k.FJ)({onDrag:(Ut,G)=>{const Ht={x:Ut,y:G},Tt=M.Z.subtract(Ht,it),{x:Vt,y:He}=M.Z.add(M.Z.xy(et.left,et.top),Tt),rn={...et,left:Vt,top:He};lt({type:"ST:update",payload:{tearOffset:rn}})},onDrop:()=>{lt({type:"ST:update",payload:{isDraggingTearSticky:!1}})}})},[lt,S,We]),ue=(0,a.useCallback)(()=>{ne.isLock||S||lt({type:"set:editing:cid",payload:{cid:f.key}})},[f.key,lt,S,ne.isLock]);if((0,a.useEffect)(()=>{var Ze;return(Ze=rt.current)==null||Ze.addEventListener("wheel",Te,{passive:!1}),lt({type:"ST:update",payload:{isShowTearSticky:!0}}),()=>{var fe;(fe=rt.current)==null||fe.removeEventListener("wheel",Te,{passive:!1}),lt({type:"ST:update",payload:{isDraggingTearSticky:!1,isShowTearSticky:!1,isLeftDown:!1,tearOffset:{left:0,top:0}}})}},[lt,Te]),(f==null?void 0:f.key)===re)return null;const Me=h==="design"?(0,Y._l)(f==null?void 0:f.hotAttr,V,We):(0,Y.Ot)({tearAttr:ne,scale:V,activeCanvasKey:ve,scrollTop:Be,scrollLeft:Oe,activePageKey:we,STBasketMap:Ae,basketScrollTopMap:tt,basketScrollLeftMap:Xe,tearOffset:We});if(h==="preview"){const Ze=document.querySelector("#pscreen"+ve);if(Ze){const{translateX:fe,translateY:it}=(0,l.q)(Ze);Me.transform="translate("+fe*V/100+"px, "+it*V/100+"px)"}}return(0,D.jsx)("div",{"data-cid":f.key,className:"STSticky tear-sticky-panel-container wiggle--wiggle--animate",style:{...Me,width:"280px",position:"absolute"},onMouseDown:Ge,onDoubleClick:ue,ref:rt,children:(0,D.jsx)(P.A,{widget:{...ne,w:280,h:ne.stickyH},children:h==="design"?(0,D.jsx)(C.M,{is4Tear:!0,widget:{...ne,w:280,h:ne.stickyH,cid:f.key},placeHolderColor:"#7D8694"}):(0,D.jsx)(C.a,{is4Tear:!0,widget:{...ne,w:280,h:ne.stickyH,cid:f.key},placeHolderColor:"#7D8694",isPreview:!0})})})}},7499:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=i(18381),M=i(53732),P=i.n(M),C=i(39e3),q=i(83199),Y=i(70933),J=i(67787),O=i(51090);const l=J.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownDiv",componentId:"sc-lw5ri7-0"})(["position:relative;margin-right:6px;&.transparent > .content{background-color:transparent;}> .content{position:absolute;top:100%;border-radius:4px;transform-origin:50% 0;transition:all 0.2s ease-in-out;z-index:1000;}.trigger-container{height:32px;border-radius:6px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px;padding-right:6px;&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}.icon{flex:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;color:",";svg{fill:none;}}.title{display:block;white-space:nowrap;color:",";font-size:14px;line-height:20px;margin-right:2px;}.var-tag{border:1px solid ",";height:20px;padding:0 4px;border-radius:4px;overflow:hidden;background:",";color:",";display:inline-flex;align-items:center;max-width:calc(100% - 3px);&:hover{background-color:",";border-color:transparent;}span{max-width:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;}.var-icon{margin-right:2px;flex-shrink:0;font-size:12px;path{fill:",";}}&.is-invaild{span{text-decoration:line-through;}}}.trigger{display:flex;flex-direction:row;justify-content:center;align-items:center;.arrow{transition:all 0.2s ease-in-out;path[stroke]{stroke:",";}}.questionMark{margin-right:6px;border-radius:2px;}}.open-lib-icon{margin-left:0;max-width:150px;.content{border:none;background:none;padding-left:2px;}.clear_style_ref{width:24px;height:24px;display:flex;flex:0 0 24px;margin-left:2px;&:hover{background:",";}}&:hover,&.is-active{.content{background:none;}}}.trigger-icon{width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;&:not(.pure-icon){path[fill]{fill:",";}rect[fill]{fill:",";}}&.size-24{width:24px;height:24px;}&.margin-right-2{margin-right:2px;}.shadow{rect{stroke:",";}path[fill]{fill:",";}}}&.padding-0{padding:0;}&.padding-left-0{padding-left:0;}&.max-width-150{max-width:150px;.title,.var-title{",";}}&.has-var{.trigger{max-width:150px;}}&:not(.disabled):hover{background-color:",";&.has-var{.var-tag{background:",";border-color:transparent;}}}}&.visible{.trigger-container{background-color:",";&:not(.has-arrow){background-color:",";color:",";.trigger-icon{&:not(.pure-icon){svg{color:inherit;path[fill]{fill:currentColor;}rect[fill]{fill:currentColor;}&.shadow{rect{stroke:",";}path[fill]{fill:",";}}}}}}.trigger{.arrow{transform:rotate(180deg);}}}}.content-container{position:absolute;top:0;left:0;background-color:",";color:",";border-radius:8px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;filter:drop-shadow(4px 12px 40px rgba(39,54,78,0.1)) drop-shadow(0px 2px 10px rgba(39,54,78,0.08));}"],f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_02,f=>f.theme.color_bg_white,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_01,f=>f.theme.color_text_L3,f=>f.theme.color_text_L1,f=>f.theme.color_navigation_active,f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_text_disabled01,O.L9,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_bg_border_01,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_bg_tab,f=>f.theme.color_btn_primary_normal,f=>f.theme.color_btn_primary_normal,f=>f.theme.color_bg_select01,f=>f.theme.color_bg_white,f=>f.theme.color_text_L1);var D=i(72214);const m=(f,h)=>{const{disabled:S,title:V,position:We,top:re,right:ve,bottom:we,left:Ae,className:Oe,trigger:Be,onShow:tt,onClose:Xe,registerTogglePanel:ne}=f,lt=(0,k.d4)(Y.an),[rt,Te]=(0,a.useState)(!1),Ge=(0,a.useRef)(null),ue=(0,a.useRef)(null),Me=!S&&rt,Ze=(0,a.useMemo)(()=>({position:We,top:re,right:ve,bottom:we,left:Ae}),[We,re,ve,Ae,we]),fe=(0,a.useCallback)(()=>{Te(!0),tt&&tt()},[Te,tt]),it=(0,a.useCallback)(()=>{Te(!1),Xe&&Xe()},[Te,Xe]);(0,a.useEffect)(()=>{ne==null||ne(rt,it)},[rt,it]),(0,a.useImperativeHandle)(h,()=>({setDropdownVisible:Te,show:fe,close:it}));const et=(0,a.useCallback)(()=>{if(!S){if(rt){it();return}fe()}},[S,rt,it,fe]),Ut=G=>{const{target:Ht}=G,Tt=Ge&&Ge.current&&Ge.current.contains(G.target),Vt=ue&&ue.current&&ue.current.contains(Ht);lt||Tt||Vt||Ht.closest(".--mb--color-picker")||Ht.closest(".context-menu-mask")||Ht.closest(".SelectNumberMenu")||Ht.closest("#lib-panel-modal")||Ht.closest("#lib-panel-text-edit-modal")||Ht.closest("#lib-panel-color-edit-modal")||Ht.closest("#lib-panel-appear-edit-modal")||Ht.closest(".lib-panel-actions-menu")||Ht.closest(".WorkspaceSelectMenu")&&!Ht.closest(".autoFillPanelSelectScreenMenu")||Ht.closest(".border-width-menu")||Ht.closest(".font-options-menu")||Ht.closest(".var-dropmenu")||Ht.closest(".var-editor")||Ht.closest("#font-list-panel")||it()};return(0,D.jsxs)(l,{className:P()("quick-menu-option",Oe,{visible:Me}),children:[(0,D.jsx)("a",{ref:Ge,className:"trigger",id:"drop-trigger",onClick:et,children:Be&&(V?(0,D.jsx)(q.A,{className:"floating-tooltip",content:V,direction:"down",distance:12,children:a.cloneElement(Be,{className:P()(Be.props.className,{visible:Me})})}):a.cloneElement(Be,{className:P()(Be.props.className,{visible:Me})}))}),!S&&rt&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{ref:ue,className:"content",style:Ze,children:f.children}),(0,D.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(Ut,{capture:!0})})]})]})},E=a.memo(a.forwardRef(m))},8342:(eo,ot,i)=>{"use strict";i.d(ot,{c:()=>q});var a=i(93413),k=i(32060),M=i(81717),P=i(10245),C=i(47695);const q=Y=>({[a.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE]:{selector:"."+a.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE,relativePos:"top",content:Y.CommonGuides.inspect_feature_locate_bottom},[a.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN]:{selector:"."+a.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:Y.CommonGuides.toggle_left_panel},[a.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN]:{selector:"."+a.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:Y.CommonGuides.toggle_left_panel},[a.c.GUIDE_2309_CLICK_SHARE]:{selector:"."+a.c.GUIDE_2309_CLICK_SHARE,relativePos:"bottom",content:"\u70B9\u51FB\u5206\u4EAB\u6309\u94AE\u5373\u53EF\u5FEB\u901F\u5C06\u539F\u578B\u5206\u4EAB\u7ED9\u4ED6\u4EBA\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-8},arrowPosition:{left:196},howToShow:J=>{let{isInDesign:O=!0}=J;(0,k.CK)()&&setTimeout(()=>{var l;const D=(l=MB.getRootProject())==null?void 0:l.scene_tag;if((0,M.IP)(D),!(0,k.CK)())return!1;MB.commonGuideHelper.tryToShowGuide(a.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(a.c.GUIDE_2309_CLICK_SHARE)},O?P.b:0)}},[a.c.GUIDE_2407_PREVIEW]:{selector:"."+a.c.GUIDE_2407_PREVIEW,relativePos:"bottom",content:"\u70B9\u51FB\u6309\u94AE\u5373\u53EF\u4F53\u9A8C\u771F\u673A\u4EA4\u4E92\u6548\u679C\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-3},arrowPosition:{left:196},howToShow:J=>{let{isInDesign:O=!0}=J;(0,k.WM)()&&setTimeout(()=>{var l;const D=(l=MB.getRootProject())==null?void 0:l.scene_tag;if((0,M.t4)(D),!(0,k.WM)())return!1;MB.commonGuideHelper.tryToShowGuide(a.c.GUIDE_2407_PREVIEW),MB.commonGuideHelper.markGuideAsRead(a.c.GUIDE_2407_PREVIEW)},O?P.b:0)}},[a.c.GUIDE_2506_LIB_INTERGRATED]:{selector:"."+a.c.GUIDE_2506_LIB_INTERGRATED,relativePos:"right",content:'\n <p class="title">\u672C\u5730\u6BCD\u7248\u8D44\u6E90</p>\n <p class="desc">\u5F53\u524D\u6587\u4EF6\u6240\u521B\u5EFA\u7684\u6BCD\u7248\u90FD\u88AB\u6574\u5408\u5230\u4E86\u672C\u5730\u6BCD\u7248\u8D44\u6E90\u4E2D\u3002</p>',offset:{x:4,y:-3},arrowPosition:{left:-2},hasKnow:!0,howToShow:J=>{let{currentUser:O}=J;setTimeout(()=>{if(MB.commonGuideHelper.checkGuideHasShown(a.c.GUIDE_2506_LIB_INTERGRATED))return;const l=(0,C.yX)();l!=null&&l.isCompleted&&(0,k.Wq)(O)&&MB.commonGuideHelper.tryToShowGuide(a.c.GUIDE_2506_LIB_INTERGRATED)},1e3)}},[a.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT]:{selector:"."+a.c.GUIDE_2506_LIB_INTERGRATED,relativePos:"right",content:'\n <p class="title">\u672C\u5730\u6BCD\u7248\u8D44\u6E90</p>\n <p class="desc">\u5F53\u524D\u6587\u4EF6\u6240\u521B\u5EFA\u7684\u6BCD\u7248\u90FD\u88AB\u6574\u5408\u5230\u4E86\u672C\u5730\u6BCD\u7248\u8D44\u6E90\u4E2D\u3002</p>',offset:{x:-558,y:0},arrowPosition:{left:297},hasKnow:!0,howToShow:J=>{let{currentUser:O}=J;setTimeout(()=>{if(MB.commonGuideHelper.checkGuideHasShown(a.c.GUIDE_2506_LIB_INTERGRATED))return;const l=(0,C.yX)();l!=null&&l.isCompleted&&(0,k.Wq)(O)&&MB.commonGuideHelper.tryToShowGuide(a.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)},1e3)}}})},8702:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>gc});var a=i(18381),k=i(12211),M=i(70933),P=i(28173),C=i(10472),q=i(7457),Y=i(67588),J=i(60651),O=i(81973),l=i(78915),D=i(95549),m=i(38502),E=i(17307),f=i(67787),h=i(72214);class S extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"handleDoubleClick",()=>{const{dispatch:Ca}=this.props;Ca({type:"entry:auto:create:combo:on:screenList"})})}render(){return(0,h.jsx)(V,{onDoubleClick:this.handleDoubleClick,children:(0,h.jsxs)("div",{className:"main",children:[(0,h.jsx)(E.C,{name:"art_board/empty/combo"}),(0,h.jsx)("span",{className:"none",children:"\u6682\u65E0\u7EC4\u4EF6"}),(0,h.jsx)("span",{className:"double",children:"\u53CC\u51FB\u521B\u5EFA\u7EC4\u4EF6"})]})})}}const V=f.Ay.div.withConfig({displayName:"EmptyEditCombo__StyledEmptyEditCombo",componentId:"sc-19i6v5g-0"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;transition:background 0.2s ease-in-out;background:rgba(31,41,46,0.3);cursor:pointer;pointer-events:auto;.main{display:flex;flex-direction:column;align-items:center;svg.svg-icon{width:90px;}span{display:inline-block;&.none{margin-top:22px;color:",";}&.double{margin-top:12px;color:",";}}}"],Fo=>Fo.theme.color_text_L2,Fo=>Fo.theme.color_text_L1);var We=i(93257),re=i(3876);const ve=f.Ay.div.withConfig({displayName:"styles__StyledStickyBoard",componentId:"sc-1hpbcbf-0"})(["z-index:4;position:absolute;left:32px;top:",";display:flex;justify-content:center;gap:12px;align-items:center;.stickyBoardItem{width:30px;height:30px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;white-space:nowrap;cursor:pointer;pointer-events:auto;background-color:",";.svg-icon{width:30px;height:30px;color:",";}.undoIcon,.redoIcon{width:24px;height:24px;path{fill:",";}}&.disabled{cursor:not-allowed;.undoIcon,.redoIcon{path{fill:",";}}}&:not(.disabled):hover{background-color:",";}&.linking{background:",";color:",";}}.stickyBoardContainer{display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:4px;box-shadow:0 2px 6px rgba(39,54,78,0.08);overflow:hidden;position:relative;.stickyBoardItem{border-radius:0;box-shadow:none;position:relative;&:first-child{&::after{content:'';display:inline-block;width:1px;height:16px;background:",";position:absolute;right:0;}}}}"],Fo=>Fo.showPanelEditBreadNav?"76px":"30px",Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_text_L2,Fo=>Fo.theme.color_text_disabled01,Fo=>Fo.theme.color_btn_secondary_active,Fo=>Fo.theme.color_btn_secondary_active,Fo=>Fo.theme.color_text_L2,Fo=>Fo.theme.color_btn_secondary_active),Ae=Fo=>{let{showPanelEditBreadNav:Ca,dispatch:ya}=Fo;const Ba=()=>{ya({type:"modal:update:state",payload:{linkBackModal:{isOpen:!0}}})},Xa=(0,a.d4)(q.nF);return(0,h.jsx)(ve,{showPanelEditBreadNav:Ca,children:Xa&&(0,h.jsx)(We.A,{content:I18N.ArtBoard.link_to_prev,direction:"down",children:(0,h.jsx)("div",{className:"stickyBoardItem interactive-target-hotspot","data-interactive-target-key":"source","data-interactive-target-type":re.E.canvas,onClick:Ba,children:(0,h.jsx)(E.C,{name:"art_board/linkBack",className:"linkBackIcon"})})})})};var Oe=i(15974),Be=i(79287),tt=i.n(Be),Xe=i(53732),ne=i.n(Xe),lt=i(39e3),rt=i(93413),Te=i(88670),Ge=i(83199),ue=i(21677),Me=i(8228);const Ze=f.Ay.div.withConfig({displayName:"styles__StyledHelperButton",componentId:"sc-83yeen-0"})(["z-index:106;position:absolute;right:20px;bottom:20px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;height:34px;padding:0 8px;background:",";box-shadow:0px 3.25px 4.875px 0px rgba(0,0,0,0.10);border-radius:17px;&.only-helpButton{padding:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;}.round{width:28px;height:28px;display:flex;justify-content:center;align-items:center;position:relative;color:",";svg{width:100%;height:100%;path{fill:currentColor;}}}.expand-panel{position:absolute;border-radius:8px;right:0;bottom:44px;width:176px;padding:8px;background-color:",";font-size:12px;color:",";box-shadow:",";line-height:0px;.box-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;position:relative;svg path{fill:",";}&.tempDisabled,&.tempDisabled + span{opacity:0.4;}.video{font-size:14px;}}.show-task-list{position:relative;.text-icon{font-size:14px;}.task-list-text{position:relative;.task-tips{top:0;left:100%;}}}& > div{height:28px;display:flex;justify-content:flex-start;align-items:center;& > *{margin-left:13px;&.qr-code-box{margin:0;}}&:hover{background-color:",";.in{border-color:",";}}}}.expand-panel{border:1px solid ",";.box-icon{svg path{color:",";}}& > div{border-radius:4px;.in{border-color:",";}}}.question-button{pointer-events:none;path{fill:",";}}.ai-semantic{width:26px;height:26px;position:relative;svg{width:100%;height:100%;}.semantic-tip{background-color:#1684FC;right:-4px;}}.line{width:1px;height:24px;background-color:",";margin:0 6px;}"],Fo=>Fo.theme.help_button_background_color,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.shadow_m,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_btn_secondary_hover,Fo=>Fo.theme.color_btn_secondary_hover,Fo=>Fo.theme.color_bg_border_01,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.help_button_question_fill_color,Fo=>Fo.theme.help_button_line_color),fe=f.Ay.span.withConfig({displayName:"styles__StyledDivider",componentId:"sc-83yeen-1"})(["display:inline-block;width:160px;height:1px;background:",";margin:8px 0;"],Fo=>Fo.theme.color_bg_border_01),it=f.Ay.div.withConfig({displayName:"styles__StyledBlueTips",componentId:"sc-83yeen-2"})(["position:absolute;top:0;right:0;display:inline-block;width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;&.in{top:-2px;right:-2px;border-color:#333;}"],Fo=>Fo.theme.color_bg_menu);var et=i(56202);function Ut(Fo){let{isShowBlueTips:Ca,setShowBlueTips:ya,onClose:Ba}=Fo;const Xa=(0,a.wA)(),Kt=(0,m.useMemo)(()=>{const io=(0,et.cX)()?"\u2318 K":"Ctrl + K";return(0,Ge.u)({text:I18N.ChatGPT.ai_semantic,key:"<kbd>"+io+"</kbd>"})},[]),Vn=io=>{io.stopPropagation(),Xa({type:Te.X.AIToggleOpenSemantic,payload:{source:"\u5DE6\u4FA7AI\u5165\u53E3"}}),ya(!1),(0,ue.Z)(Me.SR.Semantic),Ba&&Ba()};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ge.A,{content:Kt,direction:"down",children:(0,h.jsxs)("div",{className:"ai-semantic",onClick:Vn,children:[(0,h.jsx)(E.C,{name:"chatGPT/ai-semantic",isColorPure:!0}),Ca&&(0,h.jsx)(it,{className:"semantic-tip"})]})}),(0,h.jsx)("div",{className:"line"})]})}const G=(0,m.memo)(Ut);function Ht(Fo){let{isShowBlueTips:Ca,isOpen:ya,onClick:Ba}=Fo;return(0,h.jsx)(Ge.A,{content:I18N.ToolBar.help,direction:"down",children:(0,h.jsxs)("div",{className:"round",onClick:Ba,children:[(0,h.jsx)(E.C,{className:"question-button",name:ya?"common/question_close":"common/question_mark",isColorPure:!0}),Ca&&(0,h.jsx)(it,{})]})})}const Tt=(0,m.memo)(Ht);var Vt=i(5209);let He=function(Fo){return Fo.ChatGroup="\u65B0\u7248\u4EA4\u6D41\u7FA4",Fo.TaskList="\u65B0\u4EBA\u5F15\u5BFC",Fo.NewFeature="\u65B0\u7248\u672C\u529F\u80FD",Fo.NewbieVideo="\u5FEB\u901F\u5165\u95E8",Fo.ShortcutKey="\u5FEB\u6377\u952E",Fo.HelperCenter="\u5E2E\u52A9\u4E2D\u5FC3",Fo.Feedback="\u9700\u6C42\u53CD\u9988",Fo.OnlineSupport="\u5728\u7EBF\u5BA2\u670D",Fo.LayoutV9="\u65B0\u7248\u5E03\u5C40\u5207\u6362",Fo}({}),rn=!1;const Lt=()=>{rn=!0},jt=Fo=>{(0,Vt.kH)("v8_q_action",{click_options:Fo,is_v7_upgrade:rn})},mt=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6021 2.58107C10.8632 2.31128 11.283 2.27488 11.5866 2.4957C12.0089 2.80289 12.1251 3.38255 11.8539 3.82883L11.7189 4.05107H9.17989L10.6021 2.58107ZM7.98585 5.05107C7.99153 5.05123 7.99723 5.0513 8.00294 5.05126C8.00682 5.05124 8.0107 5.05118 8.01457 5.05107L11.9829 5.05107C11.994 5.05144 12.0051 5.05144 12.0162 5.05107H13.4989L13.4989 6.45066H2.50098V5.05107H4.0178C4.02871 5.05142 4.03963 5.05142 4.05056 5.05107L7.98585 5.05107ZM6.80237 4.05107L5.37883 2.61155C5.12745 2.35735 4.72897 2.32256 4.43734 2.52935C4.01231 2.83074 3.89891 3.41281 4.17972 3.85172L4.30726 4.05107H6.80237ZM3.16345 4.05107C2.83495 3.22072 3.10435 2.24869 3.8589 1.71363C4.54995 1.2236 5.4942 1.30603 6.08988 1.9084L7.9963 3.83623L9.88345 1.88573C10.491 1.25778 11.4682 1.17303 12.1748 1.68702C12.9267 2.23396 13.1926 3.2136 12.8571 4.05107H13.4989C14.0512 4.05107 14.4989 4.49878 14.4989 5.05107V6.45066C14.4989 6.96917 14.1043 7.39551 13.599 7.44572V13.1495C13.599 13.9779 12.9274 14.6495 12.099 14.6495H7.99994H3.90075C3.07232 14.6495 2.40075 13.9779 2.40075 13.1495V7.4457C1.89553 7.39542 1.50098 6.96912 1.50098 6.45066V5.05107C1.50098 4.49878 1.94869 4.05107 2.50098 4.05107H3.16345ZM7.49994 7.4507H3.40075V13.1495C3.40075 13.4256 3.62461 13.6495 3.90075 13.6495H7.49994V7.4507ZM8.49994 13.6495V7.4507H12.599V13.1495C12.599 13.4256 12.3752 13.6495 12.099 13.6495H8.49994Z",fill:"#333333"})});function Jn(Fo){let{onClose:Ca}=Fo;const ya=(0,a.wA)(),Ba=(0,m.useCallback)(Xa=>{Xa.stopPropagation(),ya({type:"entry:show:taskList"}),Ca&&Ca(),jt(He.TaskList)},[ya,Ca]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"show-task-list",onClick:Ba,children:[(0,h.jsx)("div",{className:"box-icon",children:mt}),(0,h.jsx)("span",{className:"task-list-text",children:I18N.CommonGuides.show_novice_tasks})]}),(0,h.jsx)(fe,{})]})}const o=(0,m.memo)(Jn),so=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.1001 3.50156C3.1001 3.28065 3.27918 3.10156 3.5001 3.10156H12.5001C12.721 3.10156 12.9001 3.28065 12.9001 3.50156V12.5016C12.9001 12.7225 12.721 12.9016 12.5001 12.9016H3.5001C3.27918 12.9016 3.1001 12.7225 3.1001 12.5016V3.50156ZM3.5001 2.10156C2.7269 2.10156 2.1001 2.72836 2.1001 3.50156V12.5016C2.1001 13.2748 2.7269 13.9016 3.5001 13.9016H12.5001C13.2733 13.9016 13.9001 13.2748 13.9001 12.5016V3.50156C13.9001 2.72836 13.2733 2.10156 12.5001 2.10156H3.5001ZM6.6001 5.23022C6.4454 5.1409 6.2548 5.1409 6.1001 5.23022C5.9454 5.31954 5.8501 5.4846 5.8501 5.66323V8.00149V10.3398C5.8501 10.5184 5.9454 10.6834 6.1001 10.7728C6.2548 10.8621 6.4454 10.8621 6.6001 10.7728L8.6251 9.60364L10.6501 8.43451C10.8048 8.34519 10.9001 8.18013 10.9001 8.00149C10.9001 7.82286 10.8048 7.6578 10.6501 7.56848L8.6251 6.39935L6.6001 5.23022ZM6.8501 8.00149V6.52926L8.1251 7.26538L9.40009 8.00149L8.1251 8.73761L6.8501 9.47373V8.00149Z",fill:"black",fillOpacity:"0.85"})});function Et(Fo){let{isShowBlueTips:Ca,setShowBlueTips:ya,onClose:Ba}=Fo;const Xa=(0,a.wA)(),Kt=(0,m.useCallback)(()=>{Xa({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),MB.commonGuideHelper.markGuideAsRead(rt.c.GUIDE_NEWBIE_VIDEO),ya(!1),Ba&&Ba(),jt(He.NewbieVideo)},[Xa,ya,Ba]);return(0,h.jsxs)("div",{onClick:Kt,children:[(0,h.jsxs)("div",{className:"box-icon",children:[so,Ca&&(0,h.jsx)(it,{className:"in"})]}),(0,h.jsx)("span",{children:I18N.ToolBar.newbie_video})]})}const Jt=(0,m.memo)(Et),Ot=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 4H13.5V12H2.5L2.5 4ZM1.5 4C1.5 3.44772 1.94772 3 2.5 3H13.5C14.0523 3 14.5 3.44772 14.5 4V12C14.5 12.5523 14.0523 13 13.5 13H2.5C1.94772 13 1.5 12.5523 1.5 12V4ZM4 7C4 6.72386 4.22386 6.5 4.5 6.5H5.09929C5.37543 6.5 5.59929 6.72386 5.59929 7C5.59929 7.27614 5.37543 7.5 5.09929 7.5H4.5C4.22386 7.5 4 7.27614 4 7ZM7.19971 6.5C6.92356 6.5 6.69971 6.72386 6.69971 7C6.69971 7.27614 6.92356 7.5 7.19971 7.5H7.799C8.07514 7.5 8.299 7.27614 8.299 7C8.299 6.72386 8.07514 6.5 7.799 6.5H7.19971ZM9.09961 7C9.09961 6.72386 9.32347 6.5 9.59961 6.5H11.6994C11.9756 6.5 12.1994 6.72386 12.1994 7C12.1994 7.27614 11.9756 7.5 11.6994 7.5H9.59961C9.32347 7.5 9.09961 7.27614 9.09961 7ZM4.5 9.19971C4.22386 9.19971 4 9.42356 4 9.69971C4 9.97585 4.22386 10.1997 4.5 10.1997H11.6993C11.9755 10.1997 12.1993 9.97585 12.1993 9.69971C12.1993 9.42356 11.9755 9.19971 11.6993 9.19971H4.5Z",fill:"black",fillOpacity:"0.85"})});function dn(Fo){let{isShowBlueTips:Ca,setShowBlueTips:ya,onClose:Ba}=Fo;const Xa=(0,a.wA)(),Kt=(0,m.useCallback)(()=>{Xa({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}}),MB.commonGuideHelper.markGuideAsRead(rt.c.GUIDE_SHORT_CUT_PANEL),ya(!1),Ba&&Ba(),jt(He.ShortcutKey)},[Xa,ya,Ba]);return(0,h.jsxs)("div",{onClick:Kt,children:[(0,h.jsxs)("div",{className:"box-icon",children:[Ot,Ca&&(0,h.jsx)(it,{className:"in"})]}),(0,h.jsx)("span",{children:I18N.ArtBoard.shortCutKey})]})}const Ce=(0,m.memo)(dn);var Pt=i(36518),Nn=i(25582),At=i.n(Nn),on=i(95358);no.propTypes={productId:At().string,children:At().oneOfType([At().array,At().string,At().node]),isWonderShare:At().bool,className:At().string,wsLink:At().string,onClick:At().func,data:At().object,params:At().string,disabled:At().bool,canClick:At().bool};function no(Fo){let{isWonderShare:Ca=!1,wsLink:ya="https://mockitt.wondershare.com/feedback.html",productId:Ba="315118",className:Xa="",params:Kt="",data:Vn,children:io,onClick:Wn=null,disabled:$n,canClick:Vo}=Fo;const Do=()=>{if($n){Vo&&Wn&&Wn();return}Wn&&Wn(),(0,on.v)({productId:Ba,data:Vn,params:Kt,isWonderShare:Ca,wsLink:ya})};return(0,h.jsx)("div",{className:Xa,onClick:Do,children:io})}var mo=i(47163),mn=i(37342);const ht=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13ZM8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"black",fillOpacity:"0.85"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5C7.17157 5 6.5 5.67157 6.5 6.5C6.5 6.77614 6.27614 7 6 7C5.72386 7 5.5 6.77614 5.5 6.5C5.5 5.11929 6.61929 4 8 4C9.38071 4 10.5 5.11929 10.5 6.5C10.5 7.07815 10.3472 7.51571 10.0838 7.85811C9.83337 8.18368 9.50835 8.38604 9.25952 8.53714C9.24553 8.54564 9.2318 8.55396 9.21833 8.56214C8.96702 8.71457 8.80401 8.81345 8.6832 8.94692C8.58235 9.05834 8.5 9.209 8.5 9.5C8.5 9.77614 8.27614 10 8 10C7.72386 10 7.5 9.77614 7.5 9.5C7.5 8.97141 7.66765 8.57876 7.9418 8.27587C8.16636 8.02776 8.45515 7.8541 8.67487 7.72197C8.69752 7.70835 8.71944 7.69516 8.74048 7.68239C8.99165 7.52987 9.16663 7.41033 9.29119 7.2484C9.4028 7.10331 9.5 6.88779 9.5 6.5C9.5 5.67157 8.82843 5 8 5Z",fill:"black",fillOpacity:"0.85"}),(0,h.jsx)("path",{d:"M8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5C7.25 11.0858 7.58579 10.75 8 10.75C8.41421 10.75 8.75 11.0858 8.75 11.5Z",fill:"black",fillOpacity:"0.85"})]}),Fn=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("g",{clipPath:"url(#clip0_2026_37846)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 4.00684V12C1.5 12.5523 1.94772 13 2.5 13H13.5C14.0523 13 14.5 12.5523 14.5 12V4C14.5 3.44772 14.0523 3 13.5 3H2.5C1.95143 3 1.50603 3.44171 1.50006 3.98886C1.50002 3.99257 1.5 3.99628 1.5 4M2.5 4.93426L7.72265 8.41603C7.89679 8.53212 8.12482 8.52747 8.29409 8.40437L13.5 4.61825V12H2.5L2.5 4.93426ZM12.6499 4H2.90139L7.98757 7.39079L12.6499 4Z",fill:"black",fillOpacity:"0.85"})}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"clip0_2026_37846",children:(0,h.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),Yt=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("g",{clipPath:"url(#clip0_2026_37851)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97058 2.25C2.1584 2.25 1.5 2.9084 1.5 3.72058V10.7794C1.5 11.5916 2.1584 12.25 2.97058 12.25H3.6V13.25C3.6 13.4233 3.68973 13.5842 3.83713 13.6753C3.98454 13.7664 4.16861 13.7747 4.32361 13.6972L7.21803 12.25H13.0294C13.8416 12.25 14.5 11.5916 14.5 10.7794V3.72058C14.5 2.9084 13.8416 2.25 13.0294 2.25H2.97058ZM2.5 3.72058C2.5 3.46069 2.71069 3.25 2.97058 3.25H13.0294C13.2893 3.25 13.5 3.46069 13.5 3.72058V10.7794C13.5 11.0393 13.2893 11.25 13.0294 11.25H7.1C7.02238 11.25 6.94582 11.2681 6.87639 11.3028L4.6 12.441V11.75C4.6 11.4739 4.37614 11.25 4.1 11.25H2.97058C2.71069 11.25 2.5 11.0393 2.5 10.7794V3.72058ZM10.5996 5.44995C10.5996 5.17381 10.3758 4.94995 10.0996 4.94995C9.82347 4.94995 9.59961 5.17381 9.59961 5.44995V5.74995C9.59961 6.02609 9.82347 6.24995 10.0996 6.24995C10.3758 6.24995 10.5996 6.02609 10.5996 5.74995V5.44995ZM5.90039 4.94995C6.17653 4.94995 6.40039 5.17381 6.40039 5.44995V5.74995C6.40039 6.02609 6.17653 6.24995 5.90039 6.24995C5.62425 6.24995 5.40039 6.02609 5.40039 5.74995V5.44995C5.40039 5.17381 5.62425 4.94995 5.90039 4.94995ZM5.67678 7.70293C5.92363 7.57951 6.22376 7.67943 6.34739 7.92611L6.34719 7.92572L6.34714 7.92548C6.34918 7.92924 6.3534 7.93689 6.35987 7.94786C6.37284 7.96987 6.39461 8.0049 6.42559 8.04864C6.48794 8.13666 6.58517 8.25653 6.72007 8.37644C6.98568 8.61253 7.39679 8.85015 8.00039 8.85015C8.60399 8.85015 9.0151 8.61253 9.28071 8.37644C9.41561 8.25653 9.51284 8.13666 9.57519 8.04864C9.60617 8.0049 9.62794 7.96987 9.64091 7.94786C9.64738 7.93689 9.6516 7.92924 9.65364 7.92548L9.65359 7.92572L9.65339 7.92612C9.77701 7.67944 10.0771 7.57951 10.324 7.70293C10.571 7.82643 10.6711 8.12676 10.5476 8.37375L10.1004 8.15015C10.5476 8.37375 10.5475 8.37398 10.5474 8.3742L10.5471 8.37468L10.5466 8.37573L10.5454 8.37815L10.5422 8.38432L10.5329 8.40176C10.5254 8.41558 10.5153 8.43372 10.5024 8.45555C10.4767 8.49917 10.4399 8.5579 10.3912 8.62666C10.2942 8.76363 10.1477 8.94377 9.94507 9.12385C9.53568 9.48776 8.89679 9.85015 8.00039 9.85015C7.10399 9.85015 6.4651 9.48776 6.05571 9.12385C5.85311 8.94377 5.70659 8.76363 5.60957 8.62666C5.56086 8.5579 5.52403 8.49917 5.49833 8.45555C5.48546 8.43372 5.47533 8.41558 5.46785 8.40176L5.45858 8.38432L5.4554 8.37815L5.45417 8.37573L5.45364 8.37468L5.4534 8.3742C5.45329 8.37398 5.45318 8.37375 5.90039 8.15015L5.45318 8.37375C5.32968 8.12676 5.42979 7.82643 5.67678 7.70293ZM9.65364 7.92548L9.65395 7.925L9.65452 7.92388L9.65504 7.92286L9.65505 7.92284C9.65505 7.92284 9.65458 7.92374 9.65364 7.92548ZM6.34714 7.92548L6.34683 7.925L6.34626 7.92388L6.34574 7.92286L6.34573 7.92284C6.34573 7.92284 6.3462 7.92374 6.34714 7.92548Z",fill:"black",fillOpacity:"0.85"})}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"clip0_2026_37851",children:(0,h.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]});function Gt(Fo){let{onClose:Ca}=Fo;const ya=(0,a.wA)(),Ba=(0,m.useCallback)(()=>{(0,mo.k)()?ya({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}}):(0,mn.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"),Ca&&Ca(),jt(He.HelperCenter)},[ya,Ca]),Xa=(0,m.useCallback)(()=>{jt(He.Feedback),Ca&&Ca()},[Ca]),Kt=(0,m.useCallback)(()=>{jt(He.OnlineSupport),Ca&&Ca()},[Ca]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{onClick:Ba,children:[(0,h.jsx)("div",{className:"box-icon",children:ht}),(0,h.jsx)("span",{children:I18N.ArtBoard.helpCenter})]}),(0,h.jsxs)(no,{isWonderShare:ENV.IS_MO,data:{nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid},canClick:!0,onClick:Xa,children:[(0,h.jsx)("div",{className:"box-icon",children:Fn}),(0,h.jsx)("span",{children:I18N.ArtBoard.feedBack})]}),(0,h.jsxs)(Pt.kN,{isWonderShare:ENV.IS_MO,canClick:!0,onClick:Kt,children:[(0,h.jsx)("div",{className:"box-icon",children:Yt}),(0,h.jsx)("span",{children:I18N.ArtBoard.onLine})]})]})}const Bn=(0,m.memo)(Gt);var qt=i(15515),Zt=i(18501);const jn="2022-08-17",ro=(0,k.j8)({rootProject:M.PL,currentUser:M.HW,currentOrg:M.wA,isHideTaskList:M.SD,isCompleteTaskList:M.jj,currentViewType:J.jx,currentEditMode:C.r,showAISemanticTip:Zt.tK,layoutV9:Y.MZ});function Tn(){const{rootProject:Fo,currentUser:Ca,currentOrg:ya,isHideTaskList:Ba,isCompleteTaskList:Xa,currentViewType:Kt,currentEditMode:{isEditingProjectMain:Vn},showAISemanticTip:io,layoutV9:Wn}=(0,a.d4)(ro),[$n,Vo]=(0,m.useState)(!1),Do=(0,m.useRef)(null),Bo=(0,m.useCallback)(()=>Vo(mr=>!mr),[]),Ro=(0,m.useCallback)(()=>Vo(!1),[]),Pa=(0,m.useCallback)(mr=>{var Yr;let{target:yi}=mr;!((Yr=Do.current)!=null&&Yr.contains(yi))&&Vo(!1)},[]),[la,Go]=(0,m.useState)(()=>!MB.commonGuideHelper.checkGuideHasShown(rt.c.GUIDE_SEMANTIC_PANEL)),[ir,tr]=(0,m.useState)(()=>{const mr=Ca?tt()(Ca==null?void 0:Ca.created_at).isAfter(tt()(jn)):!1;return!ENV.IS_MO&&mr&&!MB.commonGuideHelper.checkGuideHasShown(rt.c.GUIDE_NEWBIE_VIDEO)}),[wr,Pr]=(0,m.useState)(()=>{const mr=Ca?tt()(Ca==null?void 0:Ca.created_at).isAfter(tt()(jn)):!1;return!ENV.IS_MO&&mr&&!MB.commonGuideHelper.checkGuideHasShown(rt.c.GUIDE_SHORT_CUT_PANEL)}),br=(0,qt.Yt)("UPGRADED_PROJECT_"+(Fo==null?void 0:Fo.cid),!1,qt.qW.String),[lr,ei]=(0,m.useState)(br&&!MB.commonGuideHelper.checkGuideHasShown(rt.c.UPGRADE_V8_COMMUNITY_GROUP)),vr=!ENV.IS_ON_PREMISES&&!Xa&&Ba,ar=!1,hr=wr||lr||ir;return(0,h.jsxs)(Ze,{ref:Do,className:ne()(!ar&&"only-helpButton"),children:[ar&&(0,h.jsx)(G,{isShowBlueTips:la&&io,setShowBlueTips:Go}),(0,h.jsx)(Tt,{isOpen:$n,isShowBlueTips:hr,onClick:Bo}),$n&&(0,h.jsxs)("div",{className:"expand-panel",children:[vr&&io&&(0,h.jsx)(o,{onClose:Ro}),!ENV.IS_MO&&(0,h.jsx)(Jt,{isShowBlueTips:ir,setShowBlueTips:tr,onClose:Ro}),(0,h.jsx)(Ce,{isShowBlueTips:wr,setShowBlueTips:Pr,onClose:Ro}),!ENV.IS_MO&&!ENV.IS_ON_PREMISES&&(0,h.jsx)(fe,{}),!ENV.IS_ON_PREMISES&&(0,h.jsx)(Bn,{onClose:Ro})]}),$n&&(0,h.jsx)(lt.A,{target:document,onClick:Pa})]})}const bt=(0,m.memo)(Tn);var Wt=i(51582),wn=i(58603),uo=i(28681);const In=(0,f.DU)(["::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar{width:6px;height:6px;}::-webkit-scrollbar-thumb{background-color:rgb(222,222,228);border-radius:4px;}::-webkit-scrollbar-corner{background-color:transparent;}"]),Dn=f.Ay.div.withConfig({displayName:"styled__StyledShortCut",componentId:"sc-e1juno-0"})(["position:absolute;background:#333;border:1px solid rgba(0,0,0,0.11);border-radius:8px;color:#fff;header{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,0.1);padding:0 10%;position:relative;a{margin:auto;line-height:32px;cursor:pointer;p{margin:0 auto;width:fit-content;opacity:0.6;line-height:1.2;padding-top:12px;padding-bottom:8px;}&.is-active p{opacity:1;font-weight:500;}}}.indicator{position:absolute;height:2px;width:28px;background-color:#fff;bottom:0px;display:inline-block;transition:0.2s all ease-out;}.close-icon{position:absolute;right:14px;top:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1;svg{width:24px;height:24px;path{fill:#fff;}}}.shortcut-content{overflow-x:auto;height:calc(100% - 34px);padding:27px 50px;.shortcut-box{display:flex;height:100%;justify-content:space-start;margin:0 auto;.shortcut-column{&.has-border{border-right:1px solid rgba(255,255,255,0.1);}}.shortcut-item{padding:10px 40px;min-width:275px;line-height:1.33;display:flex;justify-content:space-between;p{margin:0px;}&:first-child{padding-top:0px;}&:last-child{padding-bottom:0px;}&:lang(en){min-width:325px;}.left-svg{margin-left:5px;}}}}"]),So=f.Ay.div.withConfig({displayName:"styled__ShortcutItemStyled",componentId:"sc-e1juno-1"})(["color:",";.shortcut-item{padding:2px 10px;cursor:pointer;&:hover{background-color:",";}}"],Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_btn_secondary_hover);class Qt extends m.PureComponent{constructor(Ca){super(Ca),(0,D.A)(this,"state",{activeIndex:this.props.defaultIndex||0,isOpenDropdown:!1}),(0,D.A)(this,"maxColumn",0),(0,D.A)(this,"formatData",()=>{let{list:ya,maxRows:Ba}=this.props,Xa=[];ya.map((Kt,Vn)=>{Xa[Vn]=Xa[Vn]||[],Xa[Vn].label=Kt.label,Xa[Vn].title=Kt.title;let io=[];Kt.data.map((Wn,$n)=>{let Vo=Math.floor($n/Ba);io[Vo]=io[Vo]||[],io[Vo].push(Wn),Vo>this.maxColumn&&(this.maxColumn=Vo)}),Xa[Vn].data=io}),this.list=Xa}),(0,D.A)(this,"componentDidMount",()=>{let ya=document.querySelector(".shortcut-content").offsetWidth,Ba=document.querySelector(".shortcut-column").offsetWidth*(this.maxColumn+1);Ba<ya&&(document.querySelector(".shortcut-box").style.width=Ba+"px"),this.placeIndicator(this.state.activeIndex)}),(0,D.A)(this,"changeTab",ya=>{let Ba=ya.target.dataset.index,{activeIndex:Xa}=this.state;if(Ba!==Xa){this.setState({activeIndex:Ba}),this.placeIndicator(Ba);const{onTrack:Kt}=this.props,Vn=ya.target.dataset.track;Kt&&Kt(Vn)}}),(0,D.A)(this,"placeIndicator",ya=>{const Ba=document.querySelector(".shortcut-panel"),Xa=Ba&&Ba.querySelector("[data-index='"+ya+"']"),Kt=Ba&&Ba.querySelector(".indicator");!Ba||!Xa||!Kt||requestAnimationFrame(()=>{const{left:Vn}=Ba.getBoundingClientRect(),{left:io}=Xa.getBoundingClientRect(),Wn=Xa.offsetWidth,$n=Kt.offsetWidth,Vo=io-Vn+Wn/2-$n/2;Object.assign(Kt.style,{left:Vo+"px"})})}),(0,D.A)(this,"handleToggle",ya=>{this.setState({isOpenDropdown:ya})}),(0,D.A)(this,"handleChangeShortcut",ya=>{this.handleToggle(!1),(0,qt.cH)(uo._v,ya.key)}),(0,D.A)(this,"getFastCopyShortcutName",ya=>{var Ba;if(ya.key!=="fast_copy")return ya.shortcut;const Xa=(0,qt.kV)(uo._v);return Xa&&((Ba=ya.options)==null||(Ba=Ba.find(Kt=>Kt.key===Xa))==null?void 0:Ba.label)||ya.shortcut}),this.formatData()}render(){const{activeIndex:Ca,isOpenDropdown:ya}=this.state,{changeTab:Ba,list:Xa}=this,{onClose:Kt,style:Vn}=this.props,io=Xa[Ca].data;return(0,h.jsxs)(Dn,{className:"shortcut-panel",style:Vn,children:[(0,h.jsx)(In,{}),(0,h.jsx)("div",{className:"close-icon",onClick:Kt,children:(0,h.jsx)(Wt.A,{name:"general/modal/times"})}),(0,h.jsxs)("header",{children:[Xa.map((Wn,$n)=>(0,h.jsx)("a",{className:ne()({"is-active":parseInt(Ca)===$n}),"data-index":$n,"data-track":Wn.title,onClick:Ba,children:Wn.title},Wn.label)),(0,h.jsx)("span",{className:"indicator"})]}),(0,h.jsx)("div",{className:"shortcut-content",children:(0,h.jsx)("div",{className:"shortcut-box",children:io.map((Wn,$n)=>(0,h.jsx)("div",{className:ne()("shortcut-column",{"has-border":$n!==io.length-1||$n===0}),children:Wn.map((Vo,Do)=>Vo.options?(0,h.jsx)(wn.A,{menuY:"bottom",onToggle:this.handleToggle,isOpen:ya,opener:(0,h.jsxs)("div",{className:"shortcut-item",children:[(0,h.jsx)("p",{children:Vo.label}),(0,h.jsxs)("p",{className:"shortcut",children:[this.getFastCopyShortcutName(Vo),(0,h.jsx)(E.C,{className:"left-svg",name:"toolbar/triangle-down-16-left"})]})]}),menu:(0,h.jsx)(So,{children:Vo.options.map(Bo=>(0,h.jsx)("div",{className:"shortcut-item",onClick:()=>this.handleChangeShortcut(Bo),children:(0,h.jsx)("p",{children:Bo.label})},Bo.key))})}):(0,h.jsxs)("div",{className:"shortcut-item",children:[(0,h.jsx)("p",{children:Vo.label}),(0,h.jsx)("p",{children:Vo.shortcut})]},Do))},$n))})})]})}}(0,D.A)(Qt,"propTypes",{defaultIndex:At().number,maxRows:At().number,list:At().array.isRequired,style:At().object.isRequired,onClose:At().func.isRequired,onTrack:At().func}),(0,D.A)(Qt,"defaultProps",{defaultIndex:0,maxRows:6,list:[],style:{},onClose:()=>null});const Ln=()=>{const Fo=ENV.IS_ON_PREMISES?[{key:"fast_copy_alt",label:Qe("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{key:"fast_copy_ctrl",label:Qe("ctrl+"+I18N.WorkspaceGuidePane.mouse_dray,"+")}]:void 0;return[{label:"frequency",title:I18N.WorkspaceGuidePane.frequency,data:[{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Qe("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+"),key:"fast_copy",options:Fo},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Qe("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.WorkspaceGuidePane.group,shortcut:Qe("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Qe("shift+mod+g")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Qe("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Qe(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Qe("1")},{label:I18N.WorkspaceGuidePane.bold_text,shortcut:Qe("mod+B")},{label:I18N.WorkspaceGuidePane.preview,shortcut:Qe("mod+P")}]},{label:"tool",title:I18N.WorkspaceGuidePane.tool,data:[{label:I18N.WorkspaceGuidePane.artboard,shortcut:Qe("A")},{label:I18N.WorkspaceGuidePane.text,shortcut:Qe("T")},{label:I18N.WorkspaceGuidePane.rounded_rect,shortcut:Qe("R")},{label:I18N.WorkspaceGuidePane.circle,shortcut:Qe("O")},{label:I18N.WorkspaceGuidePane.straight_line,shortcut:Qe("L")},{label:I18N.WorkspaceGuidePane.lr,shortcut:Qe("H")},{label:I18N.WorkspaceGuidePane.connect_line,shortcut:Qe("E")},{label:I18N.w.sticky,shortcut:Qe("N")},{label:I18N.w.annotate,shortcut:Qe("W")},{label:I18N.WorkspaceGuidePane.comment,shortcut:Qe("C")},{label:I18N.WorkspaceGuidePane.color_picker,shortcut:Qe("I")}]},{label:"edit",title:I18N.WorkspaceGuidePane.edit,data:[{label:I18N.WorkspaceGuidePane.save,shortcut:Qe("mod+S")},{label:I18N.WorkspaceGuidePane.delete,shortcut:Qe("Del/Backspace")},{label:I18N.WorkspaceGuidePane.undo,shortcut:Qe("mod+Z")},{label:I18N.WorkspaceGuidePane.redo,shortcut:Qe("shift+mod+Z")},{label:I18N.WorkspaceGuidePane.cut,shortcut:Qe("mod+X")},{label:I18N.WorkspaceGuidePane.copy+"/"+I18N.ContextMenu.copy_properties,shortcut:Qe("mod+C")},{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Qe("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+"),key:"fast_copy",options:Fo},{label:I18N.WorkspaceGuidePane.duplicate,shortcut:Qe("mod+D")},{label:I18N.WorkspaceGuidePane.paste,shortcut:Qe("mod+V")},{label:I18N.WorkspaceGuidePane.p_to_cursor,shortcut:Qe("shift+mod+V")},{label:I18N.ContextMenu.paste_properties,shortcut:Qe("alt+mod+V")},{label:I18N.WorkspaceGuidePane.launch,shortcut:Qe("mod+P")},{label:I18N.ToolBar.find_replace,shortcut:Qe("mod+F")}]},{label:"selectOperation",title:I18N.WorkspaceGuidePane.selectOperation,data:[{label:I18N.WorkspaceGuidePane.multi_select,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.click,"+")},{label:I18N.WorkspaceGuidePane.select_part,shortcut:Qe("S+"+I18N.WorkspaceGuidePane.electorates,"+")},{label:I18N.WorkspaceGuidePane.select_all,shortcut:Qe("mod+A")},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Qe("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.ContextMenu.hide,shortcut:Qe("shift+mod+H")},{label:I18N.ContextMenu.lock_widget,shortcut:Qe("shift+mod+L")},{label:I18N.WorkspaceGuidePane.group,shortcut:Qe("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Qe("shift+mod+g")},{label:I18N.WorkspaceGuidePane.text_editor,shortcut:Qe("Enter")},{label:I18N.WorkspaceGuidePane.exit_editing,shortcut:Qe("mod+Enter")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.hide_or_show_stroke,shortcut:Qe("shift+/")}]},{label:"text",title:I18N.WorkspaceGuidePane.text,data:[{label:I18N.WorkspaceGuidePane.bold,shortcut:Qe("mod+B")},{label:I18N.WorkspaceGuidePane.italic,shortcut:Qe("mod+ I")},{label:I18N.WorkspaceGuidePane.underline,shortcut:Qe("mod+U")},{label:I18N.WorkspaceGuidePane.strike_through,shortcut:Qe("shift+mod+S")},{label:I18N.WorkspaceGuidePane.add_fond_size,shortcut:Qe("shift+mod+ .")},{label:I18N.WorkspaceGuidePane.reduce_font_size,shortcut:Qe("shift+mod+ ,")}]},{label:"arrayControl",title:I18N.WorkspaceGuidePane.arrayControl,data:[{label:I18N.WorkspaceGuidePane.vtop_2,shortcut:Qe("alt+mod+T")},{label:I18N.WorkspaceGuidePane.vbottom_2,shortcut:Qe("alt+mod+B")},{label:I18N.WorkspaceGuidePane.hleft_2,shortcut:Qe("alt+mod+L")},{label:I18N.WorkspaceGuidePane.hright_2,shortcut:Qe("alt+mod+R")},{label:I18N.WorkspaceGuidePane.hcenter_2,shortcut:Qe("alt+mod+C")},{label:I18N.WorkspaceGuidePane.vcenter_2,shortcut:Qe("alt+mod+M")},{label:I18N.WorkspaceGuidePane.hdistribute,shortcut:Qe("alt+mod+H")},{label:I18N.WorkspaceGuidePane.vdistribute,shortcut:Qe("alt+mod+U")},{label:I18N.WorkspaceGuidePane.forward,shortcut:Qe("alt+mod+\u2191")},{label:I18N.WorkspaceGuidePane.backward,shortcut:Qe("alt+mod+\u2193")},{label:I18N.WorkspaceGuidePane.send_front_2,shortcut:Qe("shift+mod+\u2191")},{label:I18N.WorkspaceGuidePane.send_back_2,shortcut:Qe("shift+mod+\u2193")},{label:I18N.WorkspaceGuidePane.expand_all,shortcut:Qe("mod+;")},{label:I18N.WorkspaceGuidePane.shrink_all,shortcut:Qe("mod+'")}]},{label:"view",title:I18N.WorkspaceGuidePane.view,data:[{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Qe("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.horizontalScroll,shortcut:Qe("shift+"+I18N.WorkspaceGuidePane.wheel,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Qe(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.catalogue_panel,shortcut:Qe("alt+1")},{label:I18N.WorkspaceGuidePane.layer_panel,shortcut:Qe("alt+2")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Qe("1")},{label:I18N.WorkspaceGuidePane.page_panel,shortcut:Qe("2")},{label:I18N.WorkspaceGuidePane.icon_pannel,shortcut:Qe("3")},{label:I18N.WorkspaceGuidePane.image_panel,shortcut:Qe("4")},{label:I18N.WorkspaceGuidePane.master_panel,shortcut:Qe("5")},{label:I18N.WorkspaceGuidePane.hideLeftSidePanel,shortcut:Qe("mod+[")},{label:I18N.WorkspaceGuidePane.hideRightSidePanel,shortcut:Qe("mod+]")},{label:I18N.WorkspaceGuidePane.showOrHideAnnotatePanel,shortcut:Qe("alt+mod+A")}]}]},Mn=new Map;function Rt(Fo,Ca){if(Ca===void 0&&(Ca=""),!Fo)return;let ya=Mn.get(Fo);if(ya!==void 0)return ya;const Ba=Fo.split("+");if((0,et.cX)()){const Xa=Kt=>Kt==="mod"?"\u2318":Kt==="alt"?"\u2325":Kt==="shift"?"\u21E7":Kt==="ctrl"?"\u2303":Kt==="backspace"?"\u232B":Kt==="del"?"Delete":Kt.charAt(0).toUpperCase()+Kt.slice(1);ya=Ba.map(Xa).join(Ca)}else{const Xa=Kt=>Kt==="mod"?"Ctrl":Kt.toLowerCase()==="alt"?"Alt":Kt.toLowerCase()==="shift"?"Shift":Kt.toLowerCase()==="ctrl"?"Ctrl":Kt==="backspace"?"Backspace":Kt==="del"?"Delete":Kt.toLowerCase()==="return"?"Enter":Kt.charAt(0).toUpperCase()+Kt.slice(1);ya=Ba.map(Xa).join("+")}return Mn.set(Fo,ya),ya}function Qe(Fo,Ca){if(Ca===void 0&&(Ca=""),!!Fo)if(Array.isArray(Fo)){const ya=[];return Fo.forEach(Ba=>{ya.push(Rt(Ba,Ca))}),ya.join("")}else return Rt(Fo,Ca)}class En extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"close",()=>{const{dispatch:Ca}=this.props;Ca({type:"hide:showShortCutArtBoard"})})}render(){var Ca,ya,Ba,Xa;const io=document.body.clientHeight,Wn=document.body.clientWidth,$n=(Ca=(ya=document.querySelector("#left-slide-panel"))==null?void 0:ya.getBoundingClientRect().width)!=null?Ca:0,Vo=(Ba=(Xa=document.querySelector("#right-slide-panel"))==null?void 0:Xa.getBoundingClientRect().width)!=null?Ba:0,Do={top:io-56-Math.min(io,244),left:25,width:Wn-$n-Vo-25-20,height:Math.min(io-64,244),zIndex:107,pointerEvents:"auto"};return(0,h.jsx)(Qt,{style:Do,maxRows:5,list:Ln(),onClose:this.close})}}var qn=i(68455);const Hn=(0,f.Ay)(qn.A).withConfig({displayName:"styles__StyledListMenu",componentId:"sc-1eh6q20-0"})(["&.list-content{min-width:120px;margin-left:-105px;.action{height:24px;}}"]),Yn=f.Ay.div.withConfig({displayName:"styles__StyledTaskList",componentId:"sc-1eh6q20-1"})(['z-index:106;position:absolute;right:21px;bottom:58px;pointer-events:auto;.tack-list-container{width:190px;background-color:#fff;background-image:url("/mb-proto2/images/guide/noviceGuides2309/task_list_bg.png");background-repeat:no-repeat;background-size:100% auto;border-radius:4px;box-shadow:0 3px 6px rgb(0 0 0 / 2%),0 6px 16px rgb(0 0 0 / 2%),0 9px 28px rgb(0 0 0 / 9%);margin-bottom:12px;.header{width:100%;height:60px;padding:18px 16px;display:flex;align-items:center;justify-content:space-between;.title{font-size:14px;color:#333;font-weight:500;}.action{width:24px;height:24px;border-radius:4px;margin-bottom:12px;color:',";&:hover{background-color:rgba(22,132,252,0.15)}&.is-open{background-color:rgba(22,132,252,0.15)}.more-icon{cursor:pointer;width:24px;}}}.content{position:relative;padding-bottom:8px;.task-list{li.task-item{height:36px;color:#333333;font-size:12px;font-weight:400;cursor:pointer;position:relative;&:hover{background-color:#F1F8FF;}&.complete{color:#CCCCCC;&:hover{background-color:#F5F5F5;}.task-icon{background-color:#F7F7F7;color:#CCCCCC;}.check{color:#E5E5E5;}}.task-content{display:flex;align-items:center;padding:0 25px 0 16px;height:100%;}.task-icon{width:28px;height:28px;border-radius:50%;background-color:#F1F8FF;color:#1684FC;display:flex;align-items:center;justify-content:center;}.title{margin-left:9px;flex:1;}.check{color:#1684FC;}.task-img-wrap{position:absolute;left:-264px;top:-75px;width:260px;background-color:#ffffff;visibility:hidden;background-color:#1685FC;padding:10px;border-radius:10px;color:#FFFFFF;&.show{visibility:visible;}img.task-img{width:100%;height:100%;border-radius:8px;}.task-img-desc{line-height:18px;font-weight:500;font-size:12px;img{vertical-align:text-top;}}}}}}.bottom{width:100%;height:36px;padding:8px 20px;display:flex;align-items:center;justify-content:flex-start;background:linear-gradient(97deg,#FDEEFF -36.68%,#E8F7FF 66.4%);border-bottom-right-radius:4px;border-bottom-left-radius:4px;.gift-icon{width:20px;margin-right:4px;}.desc{font-size:12px;font-weight:400;line-height:12px;background:linear-gradient(77deg,#1E8AFF 25.47%,#F67EFF 108.44%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}}.gift{cursor:pointer;}.animate-gift{width:40px;height:60px;position:absolute;bottom:0px;right:-6px;overflow:hidden;.new-box{width:80px;position:absolute;left:-20px;}}.ani-gift{animation-duration:1s;animation-iteration-count:infinite;}.task-icon-btn{width:28px;height:28px;background-color:#1684fc;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;margin-left:auto;cursor:pointer;box-shadow:0 4px 6px rgba(0,96,185,0.100306);}.collapse-task-list{display:none;}"],Fo=>Fo.theme.color_text_L1);var oo=i(60129),To=i(18250),po=i.n(To),Oo=i(88987),Qo=i(34),ea=i(21385);const _n=(0,h.jsxs)("svg",{width:"16",height:"16",fill:"none",children:[(0,h.jsx)("path",{fill:"white",d:"M2.136 2.136a.75.75 0 0 1 1.061 0l10.667 10.667a.75.75 0 0 1-1.061 1.06L2.136 3.198a.75.75 0 0 1 0-1.06Z"}),(0,h.jsx)("path",{fill:"white",d:"M13.864 2.136a.75.75 0 0 1 0 1.061L3.197 13.864a.75.75 0 1 1-1.06-1.061L12.802 2.136a.75.75 0 0 1 1.06 0Z"})]});class Un extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"state",{activeGuide:null,isOpenActionsMenu:!1,canReceiveReward:!1,isAnimateGift:!0}),(0,D.A)(this,"setElementRef",Ca=>this.$element=Ca),(0,D.A)(this,"handleToggleTaskListData",()=>{const{dispatch:Ca,isCollapse:ya}=this.props;Ca({type:"update:taskList:isCollapse",payload:{isCollapse:!ya}}),ya||this.handleToggleActionMenu(!1)}),(0,D.A)(this,"handleHideTaskList",()=>{const{dispatch:Ca}=this.props;this.handleToggleActionMenu(!1),Ca({type:"entry:hide:taskList"})}),(0,D.A)(this,"handleHover",Ca=>this.setState({activeGuide:Ca})),(0,D.A)(this,"handleToggleActionMenu",Ca=>this.setState({isOpenActionsMenu:po()(Ca)?Ca:!this.state.isOpenActionsMenu}))}async componentDidMount(){const{dispatch:Ca,currentOrg:ya}=this.props;this.isHidden||(0,Qo.BT)(Object.values(oo.Pr==null?void 0:oo.Pr.map(io=>io==null?void 0:io.imgUrl)));const{orgs:Ba}=await(0,Oo.F3)(),Xa=Ba.find(io=>io.cid===(ya==null?void 0:ya.cid))||Ba[Ba.length-1],{cid:Kt,is_ws_rewarded:Vn}=Xa||{cid:"",is_ws_rewarded:!0};this.setState({canReceiveReward:Kt&&!Vn}),Ca({type:"entry:initial:guide:task"})}componentDidUpdate(Ca){Ca.isCollapse!==this.props.isCollapse&&this.state.isAnimateGift&&this.setState({isAnimateGift:!1})}render(){const{isCollapse:Ca,isHide:ya,completeList:Ba,isComplete:Xa,sourceUpperCid:Kt,sceneTag:Vn=""}=this.props,{activeGuide:io,isOpenActionsMenu:Wn,canReceiveReward:$n,isAnimateGift:Vo}=this.state,Do=MB.commonGuideHelper.checkGuideHasShown(rt.c.GUIDE_AWARDED),Bo=!!Kt,Pa=["MP","PC","DS"].includes((0,ea.VC)(Vn))&&!Ba.includes(rt.c.GUIDE_NOVICE_2309)&&!Bo;return this.isHidden=ya||Xa||Do||Pa,this.isHidden?null:(0,h.jsxs)(Yn,{children:[(0,h.jsxs)("div",{className:ne()("tack-list-container",{"collapse-task-list":Ca}),children:[(0,h.jsxs)("div",{className:"header",children:[(0,h.jsx)("span",{className:"title",children:I18N.CommonGuides.novice_tasks}),(0,h.jsx)("div",{className:ne()("action",{active:Wn}),onClick:this.handleToggleActionMenu,ref:this.setElementRef,children:(0,h.jsx)(E.C,{name:"common/more",className:"more-icon"})}),Wn&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(Hn,{targetNode:this.$element,direction:"bottom",distance:4,menuItems:[{isShow:!0,label:I18N.CommonGuides.hide_tasks,onClick:this.handleHideTaskList}]})})]}),(0,h.jsx)("div",{className:"content",children:(0,h.jsx)("ul",{className:"task-list",children:oo.Pr.map((la,Go)=>{const ir=Ba.findIndex(br=>br===la.guideKey)!==-1,tr=io===la.guideKey,wr="v8guide_task_step"+(Go+1),Pr=I18N.CommonGuides[wr];return(0,h.jsxs)("li",{className:ne()("task-item",{complete:ir}),children:[(0,h.jsxs)("div",{className:"task-content",onMouseEnter:()=>this.handleHover(la.guideKey),onMouseLeave:()=>this.handleHover(null),children:[(0,h.jsx)("div",{className:"task-icon",children:(0,h.jsx)(E.C,{name:la.icon.name,style:{width:la.icon.width,height:la.icon.height}})}),(0,h.jsx)("span",{className:"title",children:I18N.CommonGuides[la.label]}),ir&&(0,h.jsx)(E.C,{className:"check",name:"art_board/guide/task/check"})]}),(0,h.jsxs)("div",{className:ne()("task-img-wrap",{show:tr}),children:[(0,h.jsx)("img",{src:la.imgUrl,alt:I18N.CommonGuides.guidance_image,className:"task-img"}),(0,h.jsx)("div",{className:"task-img-desc",dangerouslySetInnerHTML:{__html:Pr}})]})]},la.guideKey)})})}),(!ENV.IS_MO||ENV.IS_MO&&$n)&&(0,h.jsxs)("div",{className:"bottom",children:[(0,h.jsx)(E.C,{name:"art_board/guide/task/gift",className:"gift-icon",isColorPure:!0}),(0,h.jsx)("span",{className:"desc",children:I18N.CommonGuides.finish_tasks_to_get_rewards})]})]}),Ca?Vo?(0,h.jsx)("div",{className:"animate-gift",children:(0,h.jsx)("img",{className:"gift new-box",src:"/mb-proto2/images/guide-gift.gif",onClick:this.handleToggleTaskListData})}):(0,h.jsx)(E.C,{name:"art_board/guide/task/gift/new",className:"tada gift",onClick:this.handleToggleTaskListData,size:32,isColorPure:!0}):(0,h.jsx)("div",{className:"task-icon-btn",onClick:this.handleToggleTaskListData,children:_n})]})}}const cn=(0,k.Mz)([M.Rm,M.zv,M.SD,M.jj,M.wA,M.PL],(Fo,Ca,ya,Ba,Xa,Kt)=>{const{source_upper_cid:Vn,scene_tag:io}=Kt;return{isHide:ya,isCollapse:Fo,completeList:Ca,isComplete:Ba,currentOrg:Xa,sourceUpperCid:Vn,sceneTag:io}}),nn=(0,a.Ng)(Fo=>cn(Fo))(Un);var Zn=i(75276);const ho=f.Ay.div.withConfig({displayName:"styles__StyledMktWMTip",componentId:"sc-1uvm0mq-0"})(['z-index:106;position:absolute;right:58px;bottom:16px;pointer-events:auto;.up-mkt-btn{padding:6px 14px;display:flex;justify-content:center;align-items:center;border-radius:100px;border:0.5px solid rgba(255,74,118,0.20);box-shadow:2px 2px 8px 0px rgba(140,1,24,0.10);background:linear-gradient(250deg,rgba(255,61,112,0.00) 50.75%,rgba(255,61,112,0.08) 100%),linear-gradient(68deg,rgba(255,196,59,0.00) 1.79%,rgba(255,196,59,0.15) 100%),#FFF3F2;gap:6px;cursor:pointer;&:hover{background:linear-gradient(250deg,rgba(255,61,112,0.00) 50.75%,rgba(255,61,112,0.15) 100%),linear-gradient(68deg,rgba(255,196,59,0.00) 1.79%,rgba(255,196,59,0.20) 100%),#FFEDEB;}span{text-align:center;font-family:"HarmonyOS Sans SC";font-size:13px;font-weight:500;background:linear-gradient(90deg,#FF6871 0%,#FF65A8 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}.icon{width:14px;height:14px;}}.up-mkt-tip{width:395px;height:310px;border-radius:10px;box-shadow:',";background:url('/mb-proto2/images/mktWM/mkt_wm_export_modal_bg-new.svg');background-size:395px 310px;animation:expandFromBottomRight 0.25s ease-in-out;transform-origin:bottom right;display:flex;justify-content:center;.up-mkt-btn{padding:8.5px 64px;position:absolute;bottom:16px;box-shadow:none;span{font-weight:700;}}}@keyframes expandFromBottomRight{from{transform:scale(0.5);}to{transform:scale(1);}}"],Pt.$B.shadow_l.value_light);var Xn=i(21770),Mo=i(35428),Zo=i(17573),ia=i(70812);const fa=Fo=>{const{mdMktList:Ca,mtMktlist:ya,isShowUpMktTip:Ba,currentUser:Xa}=Fo,Kt=(0,a.wA)(),Vn=!!Ca.size,io=!!ya.size,{isSoloMdMember:Wn}=(0,Xn.s)(Xa,MB.currentOrg),$n=Vn||io,[Vo,Do]=(0,m.useState)(!0),[Bo,Ro]=(0,m.useState)(!1);(0,m.useEffect)(()=>{if(Ba){Do(!1),Ro(!0),Kt({type:"reducer:watermark:update:is-show-up-mkt-tip",payload:!1});const wr=setTimeout(()=>{Do(!0),Ro(!1),clearTimeout(wr)},8*1e3)}},[Ba]);const Pa=()=>{const wr=!!MB.currentOrg,Pr={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(wr?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u53F3\u4E0B\u89D2-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(wr?"org":"solo")+"_watermark_bottom-right_"+(Wn?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...Pr}),(0,Mo._)({click_button:"\u7F16\u8F91\u533A\u53F3\u4E0B\u89D2-"+(Wn?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},la=()=>{Do(!1),!Bo&&ia.U4.watermarkExposureTrack("conrner")},Go=()=>{Do(!0)},ir=()=>(0,h.jsxs)("div",{className:"up-mkt-btn",onMouseEnter:la,children:[(0,h.jsx)(E.C,{className:"upgrade-icon",name:"common/watermark/new-upgrade-mt",isColorPure:!0}),(0,h.jsx)("span",{children:I18N.WaterMark.mkt.remove_wm})]}),tr=()=>(0,h.jsx)("div",{className:"up-mkt-tip",onMouseLeave:Go,children:(0,h.jsxs)("div",{className:"up-mkt-btn",onClick:Pa,children:[(0,h.jsx)(E.C,{className:"upgrade-icon",name:"common/watermark/new-upgrade-mt",isColorPure:!0}),(0,h.jsx)("span",{children:I18N.WaterMark.mkt.remove_wm})]})});return!(0,Zo._5)()||!$n?null:(0,h.jsx)(ho,{children:Bo||!Vo?tr():ir()})},zo=(0,k.Mz)([Zn.S1,Zn.U6,Zn.gK,M.HW],(Fo,Ca,ya,Ba)=>({mdMktList:Fo,mtMktlist:Ca,isShowUpMktTip:ya,currentUser:Ba})),Ra=(0,a.Ng)(Fo=>zo(Fo))(fa),Sa=Fo=>{let{showShortCutArtBoard:Ca,isShowNps:ya,currentUser:Ba,theme:Xa,dispatch:Kt,onlyView:Vn}=Fo;const io=!ENV.IS_ON_PREMISES&&!Vn&&Ba;return(0,h.jsxs)(h.Fragment,{children:[io&&(0,h.jsx)(nn,{}),!ENV.IS_ON_PREMISES&&(0,h.jsx)(bt,{}),Ca&&(0,h.jsx)(En,{dispatch:Kt}),!Vn&&(0,h.jsx)(Ra,{}),(0,h.jsx)(Oe.A,{})]})};var ln=i(67052),ta=i(4235),ko=i(70629),bo=i(20089),aa=i(3862),ma=i(80226);class dr extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,D.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,D.A)(this,"handleZoomInitialScale",Ca=>{Ca.stopPropagation(),Ca.preventDefault();const{dispatch:ya}=this.props;ya({type:"entry:zoom:fit:scale:offset"})}),(0,D.A)(this,"handleZoomSpecifiedScale",Ca=>{const ya=Number(Ca);this.props.dispatch({type:"entry:set:scale",payload:{scale:ya}})}),(0,D.A)(this,"handleZoomSelection",Ca=>{Ca.stopPropagation(),Ca.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,D.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"}))}render(){const{scale:Ca,isEmbedV2Preview:ya,isCommunityComboPreview:Ba,viewModeSwitchable:Xa,dispatch:Kt}=this.props;return(0,h.jsxs)(h.Fragment,{children:[Xa&&(0,h.jsx)(ma.D,{size:"compact",mode:"read_only",isShowInspect:!1}),(0,h.jsx)(ko.j,{isReadOnly:!0,scale:Ca,isCommunityPreview:!0,isEmbedV2Preview:ya,isCommunityComboPreview:Ba,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleZoomSelection:this.handleZoomSelection,handleToggleFullScreenMode:this.handleToggleFullScreenMode,dispatch:Kt})]})}}const ni=(0,k.Mz)([M.X_,ln.Hs,ta.nE,M.PL],(Fo,Ca,ya,Ba)=>{let{category:Xa}=Ba;const Kt=ya.filter(Wn=>Wn.hotAttr.type===bo.x.Canvas),Vn=Xa===aa.t_,io=Xa!==aa.t_&&Xa!==aa.Gd;return{scale:Fo,screenSelection:Ca,selectionsCanvas:Kt,isCommunityComboPreview:Vn,viewModeSwitchable:io}}),Ir=(0,a.Ng)(Fo=>ni(Fo))(dr);var $a=i(32424),Va=i(16966),Ha=i(70248),or=i(69623),gi=i(69874),Qr=i(93446);const Qi=f.Ay.div.withConfig({displayName:"styles__StyledBasketEditorControl",componentId:"sc-1a2l41f-0"})(["pointer-events:auto;position:absolute;display:flex;z-index:5;right:14px;top:","px;width:calc(100% - ","px);height:36px;justify-content:space-between;align-items:center;background-color:",";border-radius:4px;overflow:hidden;padding-right:3px;box-shadow:0 2px 10px rgba(0,0,0,0.1);.left-content,.right-content{display:flex;align-items:center;}.left-content{flex:1;max-width:calc(100% - 238px - 40px);overflow:hidden;.quit-container{display:flex;align-items:center;cursor:pointer;}.icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;&.quit{width:30px;height:30px;margin:0 4px 0 3px;color:",";.svg-icon{width:30px;height:30px;}&:hover{background-color:",";border-radius:4px;}}&.arrow{color:",";.svg-icon{transform:rotate(180deg);}}}}.ctrl-btn-wrapper{display:flex;justify-content:center;align-items:center;width:34px;height:28px;cursor:pointer;border-radius:4px;color:",";&:last-child{margin-right:0;}.svg-icon.state{width:24px;height:24px;}&:hover,&.active{background-color:",";}.icon{width:34px;height:28px;}&.layout-row{svg.icon{path{stroke:currentColor;}}}}.divide{height:20px;width:1px;background-color:",";margin:0 10px;}"],Fo=>14+(Fo.isShowRuler?18:0),Fo=>2*14+(Fo.isShowRuler?18:0),Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_btn_secondary_active,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_btn_secondary_active,Fo=>Fo.theme.color_bg_border_02),rs=(0,f.AH)(["display:flex;flex:1;align-items:center;cursor:pointer;position:relative;height:32px;padding-left:8px;padding-right:4px;color:",";font-size:12px;max-width:200px;white-space:nowrap;.state-icon{display:flex;margin-right:2px;.svg-icon{width:20px;height:20px;}}"],Fo=>Fo.theme.color_content_text_item_state),Li=f.Ay.div.withConfig({displayName:"styles__StyledStatePanel",componentId:"sc-1a2l41f-1"})(["position:fixed;width:240px;background-color:",";color:",";box-shadow:4px 12px 40px rgba(39,54,78,0.1),0 2px 10px rgba(39,54,78,0.08);border-radius:4px;border:1px solid ",";z-index:110;pointer-events:auto;header{height:40px;background-color:",";display:flex;justify-content:space-between;align-items:center;padding:0 16px;cursor:move;border-radius:4px 4px 0;.title{font-weight:500;}.icon{color:",";width:18px;height:18px;&:hover{color:",";}}}#mb-state-list{position:relative;}.state-list{display:flex;flex-direction:column;max-height:320px;width:100%;padding:8px 0;overflow-x:hidden;.list-index{font-weight:500;flex-shrink:0;height:32px;width:30px;line-height:32px;text-align:center;color:",";padding-left:5px;}.state-list-box{display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}&.active{background-color:",";color:#333333;.list-index{font-weight:500;}}.state-list-item{",";.invisible{width:20px;height:20px;margin-right:6px;color:",";}}}}"],Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.color_title_text_state,Fo=>Fo.theme.color_border_state,Fo=>Fo.theme.color_header_background_state,Fo=>Fo.theme.color_text_L2,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_content_text_item_state,Fo=>Fo.theme.color_content_background_item_state_hover,Fo=>Fo.theme.color_content_background_item_state_active,rs,Pt.fm.color_text_L2.value_light),ns=(0,f.DU)([".dragging-item{.state-list-item{","}}"],rs),Es=(0,f.DU)([".DesignDropdownMenuBase{.basket-path-list{.content{padding:8px 0;}}}"]),ys=f.Ay.ul.withConfig({displayName:"styles__StyledBasketPathList",componentId:"sc-1a2l41f-2"})(["display:flex;flex-direction:column;max-width:240px;align-items:center;cursor:pointer;font-size:12px;font-weight:400;width:auto;padding:8px;background-color:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";li{display:flex;align-items:center;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-left:10px;padding-right:12px;border-radius:4px;height:24px;svg.svg-icon{width:20px;height:20px;margin-right:4px;}& > .Ellipsis{flex:1;}&:not(.is-disabled):hover{background-color:",";}}"],Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.shadow_m,Fo=>Fo.theme.color_text_L0,Fo=>Fo.theme.color_bg_border_01,Fo=>Fo.theme.color_btn_secondary_hover),sr=f.Ay.div.withConfig({displayName:"styles__StyledBasketPathBreadCrumb",componentId:"sc-1a2l41f-3"})(["display:flex;flex:1 1 0%;min-width:0;align-items:center;.breadcrumb-item{white-space:nowrap;color:",";cursor:pointer;font-size:12px;line-height:28px;flex-shrink:100000;min-width:24px;&.page{max-width:84px;}&.ellipsis{min-width:fit-content;}div.path-name-container{display:flex;span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}}&.active{color:",";font-weight:500;}&:hover{color:",";}&:not(:first-child):last-child{flex-shrink:1;max-width:100%;min-width:70px;text-overflow:ellipsis;overflow:hidden;}}.breadcrumb-separator{width:24px;flex-shrink:0;height:24px;display:flex;align-items:center;justify-content:center;color:",";.svg-icon{transform:rotate(180deg);}}"],Fo=>Fo.theme.color_text_L2,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_text_L1,Fo=>Fo.theme.color_text_L1);var mi=i(30542),Bt=i(78401);const vn=Fo=>{const Ca=document.querySelector("#mb-state-list-container"),ya=document.querySelector("#mb-state-list"),Ba=Array.from(ya.querySelectorAll(".state-list-item")),Xa=ya.getBoundingClientRect(),Kt=Ca.getBoundingClientRect(),Vn=[],io={},Wn={},$n={},Vo={};return Ba.forEach((Do,Bo)=>{const{cid:Ro}=Do.dataset,Pa=Do.getBoundingClientRect();io[Ro]=$n[Ro]=Pa;const la=(0,Bt.yB)(Do);Wn[Ro]=la;const{left:Go,top:ir,width:tr,height:wr}=Pa,Pr=Go-Xa.left,br=ir-Xa.top,lr=Pr+tr,ei=br+wr,vr={top:br,left:la.left-Xa.left,width:tr,height:wr};if(Vo[Ro]={contentRect:vr,rect:vr,treeRect:vr},Ro===Fo.key){Vn.push({cid:Ro,type:null,min:{x:Pr,y:br},max:{x:lr,y:ei},isValid:!1,parentCid:null});return}Vn.push({cid:Ro,type:"prevSibling",min:{x:Pr,y:br},max:{x:lr,y:br+wr/2},isValid:!0,parentCid:null}),Vn.push({cid:Ro,type:"nextSibling",min:{x:Pr,y:br+wr/2},max:{x:lr,y:ei},isValid:!0,parentCid:null})}),{matchDataList:Vn,containerRect:Kt,rectQueryMap:Vo}},Io=Fo=>{let{cid:Ca,type:ya,screenState:Ba,refRBPageKey:Xa}=Fo;const Vn=sdkStore.getSubHotItemList(Xa).filter($n=>{let{hotAttr:{type:Vo}}=$n;return Vo===bo.x.Canvas}).sort(($n,Vo)=>$n.hotAttr.order-Vo.hotAttr.order).filter($n=>$n.key!==Ba.key),io=Vn.findIndex($n=>$n.key===Ca),Wn=ya==="prevSibling"?io:ya==="nextSibling"?io+1:"error";Vn.splice(Wn,0,Ba),Vn.forEach(($n,Vo)=>{$n.hotAttr.order!==Vo+1&&sdkStore.updateHotAttrKV($n.key,"order",Vo+1)})},No=Fo=>sdkStore.getSubHotItemList(Fo).filter(Ca=>{let{hotAttr:{type:ya}}=Ca;return ya===bo.x.Canvas}).sort((Ca,ya)=>Ca.hotAttr.order-ya.hotAttr.order);class _a extends m.PureComponent{constructor(Ca){super(Ca),(0,D.A)(this,"portal",document.createElement("div")),(0,D.A)(this,"setElementRef",ya=>this.$item=ya),(0,D.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,D.A)(this,"handleWheel",ya=>ya.preventDefault()),(0,D.A)(this,"handleMove",(ya,Ba)=>{this.props.dispatch(l.GO.updateBasketStatePanelPosition({left:ya,top:Ba}))}),(0,D.A)(this,"handleClose",()=>{this.props.onClose(),document.removeChild(this.portal)}),(0,D.A)(this,"getContainerElement",()=>document.getElementById("mb-state-list-container")),(0,D.A)(this,"handleMouseDown",(ya,Ba,Xa)=>{ya.stopPropagation();const{top:Kt,left:Vn}=Xa.getBoundingClientRect(),io=ya.clientX-Vn,Wn=ya.clientY-Kt,$n={screenState:Ba,$element:Xa,offsetX:io,offsetY:Wn,...vn(Ba)};this.setState({dragAndDropState:$n})}),(0,D.A)(this,"handleDropState",ya=>{let{cid:Ba,type:Xa,isValid:Kt}=ya;const{dragAndDropState:{screenState:Vn}}=this.state;if(this.setState({dragAndDropState:null}),!Kt)return;const{refRBPageKey:io,dispatch:Wn}=this.props;Io({cid:Ba,type:Xa,screenState:Vn,refRBPageKey:io}),this.setState({stateList:No(io)}),Wn({type:"entry:layout:basket-canvas"})}),(0,D.A)(this,"handleScroll",()=>{}),(0,D.A)(this,"handleNameChange",(ya,Ba)=>{if(Ba==="")return;const{dispatch:Xa}=this.props;Xa({type:"entry:widget:change",payload:{flatChgList:[{key:ya.key,hotAttr:{name:Ba}}],shouldBreakLayerUICache:!0}}),this.setState({stateList:No(this.props.refRBPageKey)})}),this.state={dragAndDropState:null,stateList:No(Ca.refRBPageKey),innerHeight:window.innerHeight,innerWidth:window.innerWidth}}componentDidUpdate(Ca,ya,Ba){JSON.stringify(No(this.props.refRBPageKey))!==JSON.stringify(this.state.stateList)&&this.setState({stateList:No(this.props.refRBPageKey)})}static getDerivedStateFromProps(Ca,ya){let{stateList:Ba}=ya;return sdkStore.getHotItem(Ca.refRBPageKey).sub.length!==Ba.length?{stateList:No(Ca.refRBPageKey)}:null}componentDidMount(){document.body.appendChild(this.portal),this.portal.addEventListener("wheel",this.handleWheel,{passive:!1}),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){document.body.removeChild(this.portal),this.portal.removeEventListener("wheel",this.handleWheel,{passive:!1}),window.removeEventListener("resize",this.handleUpdateState)}render(){const{isOpen:Ca,statePanelPosition:ya,onClose:Ba,newSelections:Xa,dispatch:Kt}=this.props;if(!Ca)return null;const{dragAndDropState:Vn,stateList:io,innerWidth:Wn,innerHeight:$n}=this.state,{$element:Vo,matchDataList:Do,containerRect:Bo,rectQueryMap:Ro,offsetX:Pa,offsetY:la}=Vn||{},Go=Math.max(Math.min(ya==null?void 0:ya.left,Wn-240),0),ir=Math.max(Math.min(ya==null?void 0:ya.top,$n-360),0);return(0,h.jsx)(h.Fragment,{children:(0,or.createPortal)((0,h.jsx)(Qr.A,{position:{left:Go,top:ir},onMove:this.handleMove,children:(0,h.jsxs)(Li,{className:"basket-state-panel-container","data-is-widget-insertable":!1,children:[(0,h.jsxs)("header",{type:"draggable",children:[(0,h.jsx)("span",{className:"title",children:I18N.builtin.state}),(0,h.jsx)("a",{className:"icon",onClick:Ba,children:(0,h.jsx)(E.C,{className:"times-icon",name:"general/times"})})]}),(0,h.jsx)("div",{id:"mb-state-list-container",className:"state-list",onScroll:this.handleScroll,children:(0,h.jsx)("div",{id:"mb-state-list-indicator-container",className:"mb-state-list-indicator-container",children:(0,h.jsxs)("div",{id:"mb-state-list",children:[io.map(tr=>(0,h.jsxs)("div",{"data-type":"state",className:ne()("state-list-box","interactive-target-hotspot",{active:tr.key===Xa[0]}),"data-cid":tr.key,"data-interactive-target-key":tr.key,"data-interactive-target-type":re.E.canvasStateList,children:[(0,h.jsx)("span",{className:"list-index",children:tr.hotAttr.order}),(0,h.jsx)(Ur,{item:tr,onMouseDown:this.handleMouseDown,onChangeName:this.handleNameChange,dispatch:Kt})]},tr.key)),Vn&&(0,h.jsx)(mi.A,{draggingElement:Vo,getContainerElement:this.getContainerElement,matchDataList:Do,containerRect:Bo,rectQueryMap:Ro,offsetX:Pa,offsetY:la,onDrop:this.handleDropState})]})})}),(0,h.jsx)(ns,{})]})}),document.querySelector(".statePanelRoot"))})}}class Ur extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"setElementRef",Ca=>this.$item=Ca),(0,D.A)(this,"state",{isEditing:!1}),(0,D.A)(this,"handleMouseDown",Ca=>{const{item:ya}=this.props;this.props.onMouseDown(Ca,ya,this.$item)}),(0,D.A)(this,"handleClick",()=>{this.props.dispatch(l.GO.select([this.props.item.key])),this.props.dispatch({type:"entry:design:zoom:selection",payload:{initScale:!0}})}),(0,D.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,D.A)(this,"handleNameChange",(Ca,ya)=>{this.setState({isEditing:!1}),Ca!==""&&this.props.onChangeName(this.props.item,Ca)}),(0,D.A)(this,"handleInvisibleClick",(Ca,ya)=>{Ca.stopPropagation(),this.props.dispatch({type:"entry:toggle:visible",payload:{widget:ya}})})}render(){const{item:Ca}=this.props,{isEditing:ya}=this.state;return(0,h.jsxs)("div",{"data-cid":Ca.key,ref:this.setElementRef,className:"state-list-item",onMouseDown:this.handleMouseDown,onClick:this.handleClick,onDoubleClick:this.handleEdit,children:[(0,h.jsx)(gi.A,{isEditing:ya,className:"editable-span",value:(0,Bt.wh)(Ca.hotAttr.name),onConfirm:this.handleNameChange},Ca.hotAttr.name),!Ca.hotAttr.isVisible&&(0,h.jsx)(E.C,{className:"invisible",name:"common/invisible",onClick:Ba=>this.handleInvisibleClick(Ba,Ca)})]})}}var fr=i(68677),Ar=i(87332),zr=i(74222),Fr=function(Fo){return Fo[Fo.mainPage=0]="mainPage",Fo[Fo.mubanRefPage=1]="mubanRefPage",Fo[Fo.danli=2]="danli",Fo}(Fr||{});const os=Fo=>{const Ca=sdkStore.getHotItem(Fo);if(!Ca)return null;const{hotAttr:{name:ya,basket:Ba},sup:Xa}=Ca,Kt=Ba==="bDanli"?Fr.danli:Xa===zr.fW?Fr.mubanRefPage:Fr.mainPage;return{key:Fo,name:ya,type:Kt}},Ei=Fo=>{const Ca=[];if((0,Ha.OO)(Fo)){const ya=(0,Ha.QL)(Fo);for(let Ba=0;Ba<ya.length;Ba++)Ba===0?Ca.push(os(ya[Ba])):Ca.push(os((0,Ha.iK)(ya.slice(0,Ba),ya[Ba])))}else Ca.push(os(Fo));return Ca.filter(ya=>!!ya)},Kl=Fo=>{let{basketPathList:Ca,onBasketPathClick:ya}=Fo;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ar.A,{shouldPreventScrollingPropagation:!0,isDisabled:!1,menuX:"left",isPlaceholder:!1,className:"",renderOpener:(0,h.jsx)("div",{className:"breadcrumb-item ellipsis",children:"..."}),menuClassName:"basket-path-list",renderMenu:(0,h.jsx)(ys,{children:Ca.map(Ba=>(0,h.jsxs)("li",{onClick:()=>ya(Ba),children:[(0,h.jsx)(E.C,{name:"left_panel/dynamic/new"}),(0,h.jsx)(fr.A,{children:Ba.name})]},Ba.key))})}),(0,h.jsx)(Es,{})]})},as=Fo=>{let{currentPageKey:Ca,editingBasketKey:ya,editingBasketRefPage:Ba,dispatch:Xa}=Fo;const Kt=Ca&&os(Ca),Vn=Kt?[Kt]:[],io=Ba&&os(Ba);io&&Vn.push(io),ya&&Vn.push(...Ei(ya));const Wn=Vn.slice(1,-1).at(-1),$n=Vn.slice(1,-1).slice(0,-1),Vo=Bo=>{if(!Bo)return;const{type:Ro,key:Pa}=Bo;switch(Ro){case Fr.mainPage:{Xa({type:"entry:exit:edit:basket"});break}case Fr.mubanRefPage:{const la=sdkStore.getHotItem(Pa);Xa({type:"entry:edit:basket:source:muban",payload:{item:{...la,...la.hotAttr}}});break}case Fr.danli:{Xa({type:"entry:edit:bDanli",payload:{bDanliKey:Pa}});break}default:break}},Do=Vn.at(-1);return(0,h.jsxs)(sr,{hasEllipsis:$n.length>0,hasSecondLastPath:!!Wn,children:[ya&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"breadcrumb-item page",onClick:()=>Vo(Vn[0]),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:Vn[0].name})})}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(E.C,{name:"common/back"})})]}),$n.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Kl,{basketPathList:$n,onBasketPathClick:Vo}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(E.C,{name:"common/back"})})]}),Wn&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ge.A,{content:Wn.name,distance:5,direction:"down",children:(0,h.jsx)("div",{className:"breadcrumb-item",onClick:()=>Vo(Wn),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:Wn.name})})})}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(E.C,{name:"common/back"})})]}),Do&&(0,h.jsx)(Ge.A,{content:Do.name,distance:5,direction:"down",children:(0,h.jsx)("div",{className:"breadcrumb-item active",onClick:()=>Vo(Do),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:Do.name})})})})]})};var al=i(25997),pd=i(65209),Cd=i(85131),wc=i(94590),ba=i(64580),$r=i(47693);const Ni=(0,k.Mz)([J.jI,J.bt,J.jj,ta.p$,ln.p$,J.jx,M.$S,Y.qT,J.pH,J.rg,J.uu,al.UV,J.PR,al.RX,J.YL],(Fo,Ca,ya,Ba,Xa,Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro,Pa)=>{const la=Kt===l.qi.OnlyView,Go=Vn&&io&&!Wn&&!$n&&!Vo;return{statePanelPosition:ya,editingBasketKey:Fo,editingBasketRefPage:Ca,newSelections:Ba,pageKey:Xa==null?void 0:Xa.key,onlyView:la,isShowRuler:Go,editingBasketHotItem:Bo,isVersionPreview:Pa,widgetStore:Do}});function Bs(Fo){const[Ca,ya]=(0,m.useState)(Fo);return(0,m.useEffect)(()=>{ya(Fo)},[Fo]),[Ca,ya]}const Ec=(0,m.memo)(Fo=>{var Ca,ya,Ba,Xa,Kt;let{editingBasketHotItem:Vn,editingBasketKey:io,editingBasketRefPage:Wn,statePanelPosition:$n,newSelections:Vo,pageKey:Do,onlyView:Bo,isShowRuler:Ro,isVersionPreview:Pa,widgetStore:la,dispatch:Go}=Fo;const[ir,tr]=(0,m.useState)(!1),wr=(0,m.useRef)(null),[Pr,br]=(0,m.useState)(0),lr=Vn==null?void 0:Vn.key,ei=(Vn==null||(Ca=Vn.hotAttr)==null?void 0:Ca.type)==="rResBunch"?lr:Vn==null||(ya=Vn.hotAttr)==null?void 0:ya.refRBPageKey,[vr,ar]=Bs(Vn==null||(Ba=Vn.hotAttr)==null?void 0:Ba.layout),hr=(Vn==null||(Xa=Vn.hotAttr)==null?void 0:Xa.type)===bo.x.WBasket&&(Vn==null||(Kt=Vn.hotAttr)==null?void 0:Kt.basket)==="bDanli",mr=(0,m.useRef)(Vn);mr.current=Vn;const Yr=(0,m.useCallback)(()=>{var us,Nr,si;if(!Vn)return;const Is=Vn==null||(us=Vn.hotAttr)==null?void 0:us.w,St=Vn==null||(Nr=Vn.hotAttr)==null?void 0:Nr.h,je=(si=(0,Cd.BZ)(ei))==null?void 0:si.length,qe=(0,$a.kt)("rc");sdkStore.combineMergeMark("add-canvas");const Le={key:qe,sup:ei,sub:[],hotAttr:{...(0,Va.Nc)(I18N.builtin.state+" "+(je+1),je+1),w:Is,h:St,x:Is/2,y:St/2,fill:{fillIsVisible:!0,fill:"solid",solidColor:4294967040},order:(0,Cd.QN)(ei),zIndex:(0,pd._)(ei)}};sdkStore.updateHotItem(Le),sdkStore.updateHotAttrKV(ei,"mtime",rootSdk.fssCmt.getClockStore().getMtime()),je||(hr?sdkStore.updateHotAttrKV(lr,"refContentKey",Le.key):sdkStore.updateHotAttrKV(lr,"defaultCanvasKey",Le.key),Go(l.GO.editBasketHotItem(sdkStore.getHotItem(lr)))),Go({type:"entry:layout:basket-canvas"}),sdkStore.combineMerge("add-canvas"),Go({type:"entry:refresh:link-list"}),Go({type:"entry:clear:selection"}),Go({type:"entry:select:items",payload:{cids:[qe]}}),(0,$r.RW)({operation_type:$r.Q1.AddState,operation_from:hr?$r.IL.Dynamic:$r.IL.Muban})},[Go,Vn,hr,ei]),yi=(0,m.useCallback)(()=>{Go({type:"entry:preview:current-project"}),Bo?(0,ba.A)({operation_type:hr?ba.D.BasketPreview:ba.D.MubanPreview}):(0,wc.kX)({operation_type:hr?wc.mV.BasketPreview:wc.mV.MubanPreview}),(0,$r.RW)({operation_type:$r.Q1.Device,operation_from:hr?$r.IL.Dynamic:$r.IL.Muban})},[Go,hr,Bo]),Ri=(0,m.useCallback)(us=>{ar(us),io&&sdkStore.updateHotAttrKV((0,Ha.OO)(io)?(0,Ha.QL)(io).pop():io,"layout",us),Wn&&sdkStore.updateHotAttrKV(Wn,"layout",us),Go({type:"entry:layout:basket-canvas"}),Go({type:"entry:refresh:link-list"}),Go({type:"entry:zoom:fit:scale:offset"}),(0,$r.RW)({operation_type:$r.Q1[us],operation_from:hr?$r.IL.Dynamic:$r.IL.Muban})},[Go,io,Wn,hr,ar]),vs=(0,m.useCallback)(()=>{Go({type:"entry:exit:edit:basket"}),(0,$r.RW)({operation_type:$r.Q1.BackToCanvas,operation_from:hr?$r.IL.Dynamic:$r.IL.Muban})},[Go,hr]),ri=(0,m.useCallback)(()=>{if($n.top===0&&$n.left===0&&!ir){const{left:us,top:Nr,width:si,height:Is}=wr.current.getBoundingClientRect(),St=us-240+si,je=Nr+Is+16;Go(l.GO.updateBasketStatePanelPosition({left:St,top:je}))}tr(!ir),(0,$r.RW)({operation_type:$r.Q1.StatePanel,operation_from:hr?$r.IL.Dynamic:$r.IL.Muban})},[Go,hr,ir,$n.left,$n.top]);return(0,m.useEffect)(()=>{const us=la.addSdkStoreChangeListener(Nr=>{let{changedKeyList:si,isRemote:Is}=Nr;if(!Is||!lr)return;const St=lr!==ei;if(la.isTrashed(lr)||io&&la.isTrashed(io))Go({type:"entry:exit:edit:basket"}),MB.notice({text:"\u5F53\u524D\u7F16\u8F91"+(St?"\u52A8\u6001\u7EC4\u4EF6":"\u6BCD\u7248")+"\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"});else{const je=la.getHotItem(ei),qe=je==null?void 0:je.sub;if(!(qe!=null&&qe.length)||qe.every(kt=>la.isTrashed(kt))){Go({type:"entry:exit:edit:basket"}),sdkStore.deleteHotItem(lr);return}const Le=(0,Ha.OO)(lr)?(0,Ha.QL)(lr):[lr];St&&Le.push(je.key,Do);const at=Le.some(kt=>si.includes(kt)),ft=la.sdkStore.getHotItem(lr);at&&(Go(l.GO.editBasketHotItem(ft)),St&&br(Math.random())),(["w","h"].some(kt=>mr.current.hotAttr[kt]!==ft.hotAttr[kt])||mr.current.sub.join(" ")!==ft.sub.join(" ")||si.some(kt=>{const en=la.sdkStore.getHotItem(kt);return(en==null?void 0:en.hotAttr.type)===bo.x.Canvas&&(en.sup===lr||en.sup===ei)}))&&Go({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}})}});return()=>{us()}},[la,Do,io,lr,ei]),(0,h.jsxs)(Qi,{isShowRuler:Ro,"data-is-widget-insertable":!1,children:[(0,h.jsxs)("div",{className:"left-content",children:[(0,h.jsx)("div",{className:"quit-container",onClick:vs,children:(0,h.jsx)("div",{className:"icon-box quit",children:(0,h.jsx)(Ge.A,{content:I18N.dModule.exit_editing,direction:"down",children:(0,h.jsx)(E.C,{name:"art_board/basket/quit"})})})}),(0,h.jsx)(as,{currentPageKey:Do,editingBasketKey:io,editingBasketRefPage:Wn,basketPathCacheTag:Pr,dispatch:Go})]}),(0,h.jsxs)("div",{className:"right-content",children:[!Pa&&(0,h.jsx)(Ge.A,{content:I18N.builtin.demo,direction:"down",distance:8,children:(0,h.jsx)("div",{className:"ctrl-btn-wrapper",onClick:yi,children:(0,h.jsx)(E.C,{name:"art_board/basket/preview"})})}),!Bo&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ge.A,{content:I18N.builtin.add_state,direction:"down",distance:8,children:(0,h.jsx)("div",{className:"ctrl-btn-wrapper",onClick:Yr,children:(0,h.jsx)(E.C,{name:"art_board/basket/add"})})}),(0,h.jsx)("div",{className:"divide"}),(0,h.jsx)(Ge.A,{content:I18N.builtin.horizontal,direction:"down",distance:8,children:(0,h.jsx)("div",{className:ne()("ctrl-btn-wrapper",{active:vr==="col"}),onClick:()=>Ri("col"),children:(0,h.jsx)(E.C,{name:"art_board/basket/layout/col"})})}),(0,h.jsx)(Ge.A,{content:I18N.builtin.vertical,direction:"down",distance:8,children:(0,h.jsx)("div",{className:ne()("ctrl-btn-wrapper","layout-row",{active:vr==="row"}),onClick:()=>Ri("row"),children:(0,h.jsx)(E.C,{name:"art_board/basket/layout/row"})})}),(0,h.jsx)("div",{className:"divide"}),(0,h.jsx)(Ge.A,{content:I18N.builtin.state_panel,direction:"down",distance:8,children:(0,h.jsx)("div",{ref:wr,className:ne()("ctrl-btn-wrapper",{active:ir}),onClick:ri,children:(0,h.jsx)(E.C,{name:"art_board/state",className:"state"})})})]})]}),ei&&(0,h.jsx)(_a,{isOpen:ir,statePanelPosition:$n,refRBPageKey:ei,newSelections:Vo,onClose:()=>tr(!1),dispatch:Go})]})}),ps=(0,a.Ng)(Fo=>Ni(Fo))(Ec);var Yl=i(27660),ls=i(48892);class wl extends m.PureComponent{constructor(){super(),(0,D.A)(this,"handleScroll",Ca=>{Ca.stopPropagation();const ya=Ca.target.dataset.axis,{clientX:Ba,clientY:Xa}=Ca,{canvasOffset:{x:Kt,y:Vn},viewportHeight:io,viewportWidth:Wn,canvasRange:$n,onScroll:Vo}=this.props,Do=ya==="x"?Wn:io,Bo=Pa=>{const{clientY:la,clientX:Go}=Pa;let ir=ya==="x"?Go-Ba:la-Xa;ir=ir/(Do-Do/$n[ya]*Do)*$n[ya];const tr=ya==="x"?{x:Kt-ir,y:Vn}:{x:Kt,y:Vn-ir};Vo(tr)},Ro=Pa=>{document.removeEventListener("mousemove",Bo),document.removeEventListener("mouseup",Ro)};document.addEventListener("mousemove",Bo),document.addEventListener("mouseup",Ro)}),(0,D.A)(this,"handleClickTrack",Ca=>{const ya=Ca.target.dataset.axis,{clientX:Ba,clientY:Xa}=Ca,{onScroll:Kt,canvasRange:Vn,viewportHeight:io,viewportWidth:Wn}=this.props,{top:$n,bottom:Vo,left:Do,right:Bo}=this.scrollbarX.getBoundingClientRect(),Ro=ya==="x"?this.scrollbarX:this.scrollbarY,Pa=ya==="x"?Ba>Bo:Xa>Vo,la=ya==="x"?Ba<Do:Xa<$n,Go=ya==="x"?Wn:io,ir=()=>{const{top:wr,bottom:Pr,left:br,right:lr}=Ro.getBoundingClientRect(),{canvasOffset:{x:ei,y:vr}}=this.props,ar=ya==="x"?Ba>lr:Xa>Pr,hr=ya==="x"?Ba<br:Xa<wr,Yr=(hr?-1:ar?1:0)*Math.min(Vn[ya]/10,Go),yi=ya==="x"?{x:ei-Yr,y:vr}:{x:ei,y:vr-Yr};(ar||hr)&&Kt(yi)};(Pa||la)&&(Ro.style.transition="all 0.1s linear",ir(),this.timer=setTimeout(()=>this.timeInterval=setInterval(ir,100),500));const tr=wr=>{Ro.style.transition="",clearTimeout(this.timer),clearInterval(this.timeInterval),document.removeEventListener("mouseup",tr)};document.addEventListener("mouseup",tr)}),this.setRefY=Ca=>this.scrollbarY=Ca,this.setRefX=Ca=>this.scrollbarX=Ca}render(){const{className:Ca,canvasOffset:{x:ya,y:Ba},canvasRange:Xa,viewportWidth:Kt,viewportHeight:Vn,showRuler:io}=this.props,Wn=Kt/Xa.x;let $n=(Xa.x/2-ya)*(Xa.x-Kt)/(Xa.x*Xa.x);$n=Math.min(Math.max($n,0),(Xa.x-Kt)/Xa.x);const Vo=Vn/Xa.y;let Do=(Xa.y/2-Ba)*(Xa.y-Vn)/(Xa.y*Xa.y);Do=Math.min(Math.max(Do,0),(Xa.y-Vn)/Xa.y);const Bo={width:Wn*100+"%",transform:"translateX("+$n*Kt+"px)",willChange:"transform"},Ro={height:Vo*100+"%",transform:"translateY("+Do*Vn+"px)",willChange:"transform"},Pa=io?null:{left:0},la=io?null:{top:0};return(0,h.jsxs)(ls.W,{className:Ca,children:[(0,h.jsx)("div",{"data-axis":"x",className:"track x-track",style:Pa,onMouseDown:this.handleClickTrack,children:(0,h.jsx)("div",{ref:this.setRefX,className:"handler","data-axis":"x",onMouseDown:this.handleScroll,style:Bo,children:(0,h.jsx)("div",{className:"thumb"})})}),(0,h.jsx)("div",{"data-axis":"y",className:"track y-track",style:la,onMouseDown:this.handleClickTrack,children:(0,h.jsx)("div",{ref:this.setRefY,className:"handler y-handler","data-axis":"y",onMouseDown:this.handleScroll,style:Ro,children:(0,h.jsx)("div",{className:"thumb"})})})]})}}(0,D.A)(wl,"propTypes",{className:At().string,canvasOffset:At().object,canvasRange:At().object,viewportWidth:At().number,viewportHeight:At().number,showRuler:At().bool,onScroll:At().func}),(0,D.A)(wl,"defaultProps",{showRuler:!1});const Sc=(0,Yl.R)((Fo,Ca)=>({x:Fo,y:Ca})),lc=(0,k.Mz)([M.$S,M.X_,M.Ur],(Fo,Ca,ya)=>{var Ba;if(!Fo||!ya)return{x:0,y:0};const Xa=(Ba=sdkStore.getHotItem(ya==null?void 0:ya.cid))==null?void 0:Ba.sub.filter(Bo=>sdkStore.isActiveKey(Bo)&&sdkStore.getHotItem(Bo).hotAttr.type!=="rResBunch");let[Kt,Vn,io,Wn]=sdkStore.getHotKeyListAABB(Xa);const $n=Ca/100;Kt=Math.min(Kt*$n,-Fo.width*3/2),io=Math.max(io*$n,Fo.width*3/2),Vn=Math.min(Vn*$n,-Fo.height*3/2),Wn=Math.max(Wn*$n,Fo.height*3/2);const Vo=Math.max(-Kt,io,0),Do=Math.max(-Vn,Wn,0);return Sc(Vo*2,Do*2)}),Ic=Fo=>{let{viewportRect:Ca,showRuler:ya,onScroll:Ba}=Fo;const Xa=(0,a.d4)(Vn=>(0,M.ER)(Vn)),Kt=(0,a.d4)(Vn=>lc(Vn));return(0,h.jsx)(wl,{viewportWidth:Ca.width,viewportHeight:Ca.height,canvasOffset:Xa,canvasRange:Kt,showRuler:ya,onScroll:Ba})},Gc=f.Ay.section.withConfig({displayName:"styles__StyledArtboard",componentId:"sc-1a974hx-0"})(["flex:1;position:relative;pointer-events:none;#mb-ruler{.h-container,.v-container{.indicator .value{padding:3px;background-color:",";color:",";}}.corner::after{top:8px;left:6px;padding:0 6px;}}.shortcut-panel{header{a{color:#b8bcbf;&.is-active{color:#fff;}}}.shortcut-box{.shortcut-column{&:last-child{border:none;}.shortcut-item{p:last-child{letter-spacing:1px;}}}}}.operate{z-index:106;pointer-events:auto;cursor:pointer;position:absolute;top:15px;right:30px;display:flex;column-gap:5px;}"],Fo=>Fo.theme.color_bg_white,Fo=>Fo.theme.color_text_L2);class mc extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"handleScroll",Ca=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:Ca}}))}componentDidMount(){const{isCommunityPreview:Ca,isEmbedV2Preview:ya,handMode:Ba,dispatch:Xa}=this.props;this.props.dispatch({type:"entry:update:viewport:rect"}),(Ca||ya)&&!Ba&&(Xa({type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}}),Xa(l.GO.toggleInspectMode(!1)))}render(){const{showPanelEditBreadNav:Ca,viewportRect:ya,showRuler:Ba,showLinkBack:Xa,dispatch:Kt,showShortCutArtBoard:Vn,isShowNps:io,currentUser:Wn,theme:$n,onlyView:Vo,isCommunityPreview:Do,isEmbedV2Preview:Bo,isHtmlZipPreview:Ro,isVersionPreview:Pa,fullScreenMode:la,showEmptyEditCombo:Go,isShowVersionView:ir}=this.props,tr=!(Do||Bo||Ro||Pa||ir);return ya?(0,h.jsx)(Gc,{id:"mb-artboard",className:rt.c.GUIDE_NEW_OVERLAY_ONCE,children:Go?(0,h.jsx)(S,{dispatch:Kt}):(0,h.jsxs)(h.Fragment,{children:[!Vo&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ae,{showLinkBack:Xa,showPanelEditBreadNav:Ca,dispatch:Kt}),(0,h.jsx)("div",{className:"statePanelRoot"})]}),Ca&&(0,h.jsx)(ps,{}),tr&&(0,h.jsx)(Sa,{showShortCutArtBoard:Vn,isShowNps:io,currentUser:Wn,theme:$n,dispatch:Kt,onlyView:Vo}),!Do&&(0,h.jsx)(Ic,{viewportRect:ya,showRuler:Ba,onScroll:this.handleScroll}),Do&&!la&&(0,h.jsx)(Ir,{isEmbedV2Preview:Bo})]})}):null}}const Zc=(0,k.Mz)([M.$S,Y.qT,q.Z7,M.HW,q.xM,Y.O4,J.jx,C.r,J.pH,J.rg,J.uu,J.YL,J.T7,J.Ro,P.C,q.nF,O.cS],(Fo,Ca,ya,Ba,Xa,Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro,Pa,la,Go)=>{let{isEditingBasket:ir,isDirectlyEditingBasket:tr,isEditingCombo:wr}=io,{isEmptyScreen:Pr}=Pa;const br=!!Go.currentViewing;return{onlyView:Vn===l.qi.OnlyView,isCommunityPreview:Wn,isEmbedV2Preview:$n,isHtmlZipPreview:Vo,isVersionPreview:Do,fullScreenMode:Bo,showLinkBack:la,showPanelEditBreadNav:ir||tr,showRuler:Ca,viewportRect:Fo,showShortCutArtBoard:ya,isShowNps:Xa,currentUser:Ba,theme:Kt,handMode:Ro,showEmptyEditCombo:Pr&&wr,isShowVersionView:br}}),gc=(0,a.Ng)(Fo=>Zc(Fo))(mc)},9106:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_72)"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_72)",fillOpacity:"0.9"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_72)",fillOpacity:"0.8"}),a.createElement("g",{filter:"url(#filter0_d_941_72)"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("mask",{id:"mask0_941_72",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("g",{mask:"url(#mask0_941_72)"},a.createElement("path",{d:"M7.5 7.50011V5.00006L6.68054 2.13201C6.68054 2.13201 6.53336 1.78672 6.14453 1.74609C5.86401 1.71679 5.35547 1.66797 5.35547 1.66797C4.80859 1.48047 4.55469 1.32422 3.5 1L2 2.5001L3.50035 7.50011H7.5Z",fill:"url(#paint3_linear_941_72)"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_d_941_72",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.388235 0 0 0 0 0.490196 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_72"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_72",result:"shape"})),a.createElement("linearGradient",{id:"paint0_linear_941_72",x1:"7",y1:"0.5",x2:"7.9638",y2:"9.79641",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FEAF92"}),a.createElement("stop",{offset:"1",stopColor:"#FE3666"})),a.createElement("linearGradient",{id:"paint1_linear_941_72",x1:"12",y1:"11.3889",x2:"7.98929",y2:"10.5319",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#D55C81"}),a.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_941_72",x1:"11.0294",y1:"-1.1551e-07",x2:"7.5861",y2:"2.53388",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_941_72",x1:"7",y1:"4",x2:"7",y2:"7.5",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFD5DF"}),a.createElement("stop",{offset:"1",stopColor:"#FFD5DF",stopOpacity:"0"}))))})},9135:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Rt});var a=i(38502),k=i(18381),M=i(12211),P=i(16454),C=i(95549),q=i(53732),Y=i.n(q),J=i(79150),O=i(17307),l=i(83199),D=i(21066),m=i(78301),E=i(25067),f=i(93413),h=i(53940),S=i(48281),V=i(67787),We=i(87332);const re=V.Ay.div.withConfig({displayName:"styles__StyledCanvasPreviewToolbar",componentId:"sc-mefi91-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;.prev,.next{width:28px;height:28px;color:",";path{fill:none;stroke:currentColor;}&.disabled{color:",";}}.next{transform:rotate(180deg);margin-left:6px;}.reset{width:28px;height:28px;margin:0 6px;}}.toolbar-right{display:flex;align-items:center;.open-in-device-mode{width:28px;height:28px;margin-left:6px;color:",";}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.prev,.next,.open-in-device-mode{color:",";&:not(.disabled):hover{color:",";}&:not(.disabled):active{color:",";}}"],Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_disabled01,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1),ve=(0,V.Ay)(We.A).withConfig({displayName:"styles__StyledViewMenu",componentId:"sc-mefi91-1"})([".toolbar-icon-item{width:28px;height:28px;color:",";cursor:pointer;&:hover{color:",";}}&.is-open{.toolbar-icon-item{color:",";}}"],Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1);var we=i(72214);class Ae extends a.PureComponent{render(){const{dispatch:En,propsForMenu:qn}=this.props;return(0,we.jsx)(Oe,{dispatch:En,propsForMenu:qn})}}const Oe=Qe=>{let{dispatch:En,propsForMenu:qn}=Qe;const Hn=(0,we.jsx)(O.C,{name:"toolbar/selected",className:"selected-icon"}),{theme:Yn,isHighlight:oo,isPreviewAIComponent:To}=qn,po=(0,a.useRef)(null),[Oo,Qo]=(0,a.useState)({left:-999,top:-999}),ea=()=>{En({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!oo}}),(0,S.v)({operation_type:S.$.HighLight})},_n=cn=>{En({type:"reducer:preview-toolbar:update",payload:{theme:cn}}),(0,S.v)({operation_type:cn===h.Sx.DARK?S.$.DarkBackground:S.$.LightBackground})},Un=cn=>{var nn,Zn,ho;if(po!=null&&(nn=po.current)!=null&&nn.$element&&cn){var Xn;const Mo=po==null||(Xn=po.current)==null||(Xn=Xn.$element)==null?void 0:Xn.getBoundingClientRect();if(Mo){const Zo=(48-Mo.height)/2,ia={left:Mo.left-2+32,top:Mo.bottom+Zo-2};Qo(ia)}}(Zn=MB)==null||(Zn=Zn.commonGuideHelper)==null||Zn.closeGuide(f.c.GUIDE_PREVIEW_VIEW_BTN),(ho=MB)==null||(ho=ho.commonGuideHelper)==null||ho.markGuideAsRead(f.c.GUIDE_PREVIEW_VIEW_BTN)};return(0,we.jsx)(ve,{ref:po,onClick:Un,className:"canvas-preview-toolbar-view-menu",renderOpener:(0,we.jsx)(E.A,{name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/canvas_preview/view",toolTipDistance:8,size:24}),renderMenu:(0,we.jsxs)(m.Sv,{className:Y()("onlyPreview"),position:Oo,onClose:()=>{},children:[!To&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(D.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:oo?Hn:void 0,onClick:ea}),(0,we.jsx)("div",{className:"menu-divider"})]}),(0,we.jsx)(D.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:Yn===h.Sx.DARK?Hn:void 0,onClick:()=>_n(h.Sx.DARK)}),(0,we.jsx)(D.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:Yn===h.Sx.LIGHT?Hn:void 0,onClick:()=>_n(h.Sx.LIGHT)}),(0,we.jsx)(m.kb,{})]})})},Be=(0,M.Mz)([P.m5,P.Re,P.ks],(Qe,En,qn)=>({propsForMenu:{theme:Qe,isHighlight:En,isPreviewAIComponent:qn}})),tt=(0,k.Ng)(Qe=>Be(Qe))(Ae);class Xe extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleGoto",En=>{const{dispatch:qn}=this.props;qn({type:"entry:preview:switch:page",payload:{isPrev:En}}),(0,S.v)({operation_type:En?S.$.previousPage:S.$.NextPage})}),(0,C.A)(this,"handleResetScreen",()=>{const{dispatch:En}=this.props;En({type:"entry:runner:reset"})})}render(){const{activeCanvasKey:En,activePageKey:qn,canvasKeyList:Hn,onCloseModal:Yn,onLunch:oo}=this.props,To=Hn==null?void 0:Hn.length,po=Hn.indexOf(En)+1,Oo=[0,1].includes(po),Qo=[0,To].includes(po);return(0,we.jsxs)(re,{type:"draggable",children:[(0,we.jsxs)("div",{className:"toolbar-left",children:[(0,we.jsx)(l.A,{content:I18N.w.prev_page,direction:"down",children:(0,we.jsx)(J.A,{name:"toolbar/preview/arrow",className:Y()("prev",{disabled:Oo}),onClick:Oo?void 0:()=>this.handleGoto(!0)})}),(0,we.jsx)(l.A,{content:I18N.w.next_page,direction:"down",children:(0,we.jsx)(J.A,{name:"toolbar/preview/arrow",className:Y()("next",{disabled:Qo}),onClick:Qo?void 0:()=>this.handleGoto(!1)})}),(0,we.jsx)(l.A,{content:I18N.SettingPanel.reset,direction:"down",children:(0,we.jsx)(J.A,{name:"toolbar/preview/reset",className:"reset",onClick:this.handleResetScreen})})]}),(0,we.jsxs)("div",{className:"toolbar-right",children:[(0,we.jsx)(tt,{}),(0,we.jsx)(l.A,{content:I18N.dModals.canvas_preview.open_in_device_mode,direction:"down",children:(0,we.jsx)(J.A,{className:"open-in-device-mode",name:"toolbar/canvas_preview/open_in_device_mode",onClick:()=>oo({activePageKey:qn,activeCanvasKey:En})})}),(0,we.jsx)(O.C,{name:"general/times",className:"close",onClick:Yn})]})]})}}const ne=(0,M.Mz)([P.mf,P.lR],(Qe,En)=>{let{activeCanvasKey:qn,activePageKey:Hn}=Qe;return{activeCanvasKey:qn,activePageKey:Hn,canvasKeyList:En}}),lt=(0,k.Ng)(Qe=>ne(Qe))(Xe);var rt=i(69246),Te=i(46464),Ge=i(20089),ue=i(20640);const Me=(0,V.Ay)(D.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1nes2uf-0"})(["&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;li{&.rResBunch::after{top:11px;}a{height:24px;}}}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:4px;}&.rResBunch.selected .arrow-right{}&.rResBunch::before{opacity:0;position:absolute;top:9.5px;right:25px;content:'';display:none;width:5px;height:5px;background-color:#999999;border-radius:50%;}&.rResBunch.selected:not(.isPreviewCombo):not(.isPanelPreview)::before{display:block;opacity:1;}&.rResBunch::after{opacity:0;position:absolute;top:13px;left:8px;content:'';width:7px;height:4px;display:none;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected.isPreviewCombo::after{opacity:1;display:inline-block;}}a{height:24px;padding-left:16px;color:#fff;&>.expander{padding-left:4px;padding-right:8px !important;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:#fff;}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:",";}}.arrow-right{position:absolute;right:7px;top:7px;width:10px;transform:rotate(-90deg);path{fill:#999;}}}span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;}}.MenuItem{flex:1;width:100%;.is-selected{width:8px;height:6px;margin-right:8px;}&.isPanelPreview{& > a{padding-left:8px;}}.right-arrow{display:none;}}.SubMenu{border-radius:4px;min-width:200px;background:#333;color:#fff;box-shadow:",";border:1px solid #454647;}ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.rResBunch::after{border-color:",";}li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}& > .expander .screen-icon .page path{fill:",";}& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}a{color:",";}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}"],Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.menu_content_shadow,Qe=>Qe.theme.color_bg_border_01,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.shadow_m,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_btn_secondary_hover,Qe=>Qe.theme.color_text_disabled01,Qe=>Qe.theme.color_text_disabled01,Qe=>Qe.theme.color_text_disabled01,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.shadow_m,Qe=>Qe.theme.color_bg_border_01),Ze=V.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1nes2uf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:28px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],Qe=>Qe.theme.color_border_state,Qe=>Qe.theme.color_content_background_item_state_hover,Qe=>Qe.theme.color_content_text_item_state,Qe=>Qe.theme.color_content_text_item_state);class fe extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,C.A)(this,"createRef",En=>this.$ref=En),(0,C.A)(this,"handleToggle",En=>{const{isOpen:qn}=this.state,Hn=En===void 0?!qn:En;this.setState({isOpen:Hn,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(Hn)}),(0,C.A)(this,"handleSetPosition",En=>{if(!this.$ref||!En)return;const{isEmbedV2NotFull:qn}=this.props,Hn=this.$ref.getBoundingClientRect(),Yn=qn?32:48;if(Hn){const oo=(Yn-Hn.height)/2,To={left:Hn.left-2,top:Hn.bottom+oo-2};this.setState({position:To})}}),(0,C.A)(this,"handleScreenList",(En,qn,Hn)=>{const Yn=qn.children;for(const oo of Yn){const To={...oo,depth:Hn,canExpand:!1,expand:!1,show:!0};oo.children&&oo.children.length>0?(En.push({...To,canExpand:!0,expand:!0}),this.handleScreenList(En,oo,Hn+1)):En.push(To)}}),(0,C.A)(this,"handleClickScreen",(En,qn)=>{const{dispatch:Hn}=this.props;qn||Hn({type:"entry:sync-runner:set-screen",payload:{cid:En}}),this.handleToggle(!1)}),(0,C.A)(this,"handleClickCanvas",async(En,qn)=>{let{screenCid:Hn,asFolder:Yn}=qn;await this.handleClickScreen(Hn,Yn);const{activePageKey:oo,activeCanvasKey:To,dispatch:po}=this.props;En!==To&&(po({type:"entry:runner:activate:canvas",payload:{pageKey:oo,canvasKey:En}}),(0,S.v)({operation_type:S.$.SwitchPage}))})}render(){var En,qn;const{screenTreeData:Hn,activePageKey:Yn,activeCanvasKey:oo,isFullScreenMode:To,theme:po,isPreviewCombo:Oo}=this.props,{position:Qo,isOpen:ea}=this.state,_n=new URLSearchParams(location.search),Un=oo||Yn?((qn=sdkStore.getHotItem(oo||Yn||""))==null||(qn=qn.hotAttr)==null?void 0:qn.name)||"":((En=sdkStore.getHotItem(_n.get("canvasId")||_n.get("screen")||""))==null||(En=En.hotAttr)==null?void 0:En.name)||"",cn=[];return this.handleScreenList(cn,Hn,0),cn.length===0?null:(0,we.jsxs)(Ze,{children:[(0,we.jsxs)("div",{className:Y()("toolbar-menu-opener",{isFullScreen:To},""+po),onClick:()=>this.handleToggle(!ea),ref:this.createRef,children:[(0,we.jsx)("span",{className:"title",children:Un}),(0,we.jsx)(O.C,{className:"arrow-right",name:"common/expand"})]}),ea&&(0,we.jsxs)(Me,{className:Y()(To?"isFullScreen":"canvas-menu-container"),position:Qo,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,we.jsx)(it,{activeScreenCid:Yn,activeCanvasCid:oo,screenList:cn,isPreviewCombo:Oo,onClickScreen:this.handleClickScreen,onClickCanvas:this.handleClickCanvas}),(0,we.jsx)(m.kb,{})]})]})}}(0,C.A)(fe,"defaultProps",{isEmbedV2NotFull:!1});const it=Qe=>{let{activeScreenCid:En,activeCanvasCid:qn,screenList:Hn,isPreviewCombo:Yn,onClickScreen:oo,onClickCanvas:To}=Qe;const[po,Oo]=(0,a.useState)(Hn),[Qo,ea]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const nn=document.querySelector(".scroll.rResBunch"),Zn=document.querySelector(".content-list.rResBunch");if(En){const ho=document.querySelector(".padd."+En);if(nn&&Zn&&ho){const{top:Xn}=Zn.getBoundingClientRect(),{top:Mo}=ho.getBoundingClientRect();nn.scrollTo(0,Mo-Xn)}}},[En]);const _n=(0,a.useCallback)(()=>{const nn=document.querySelector(".scroll.rResCanvas"),Zn=document.querySelector(".content-list.rResCanvas");if(qn){const ho=document.querySelector(".rResCanvas."+qn);if(nn&&Zn&&ho){const{top:Xn}=Zn.getBoundingClientRect(),{top:Mo}=ho.getBoundingClientRect();nn.scrollTo(0,Mo-Xn)}}},[qn]);(0,a.useEffect)(()=>{Qo&&setTimeout(()=>_n(),10),ea(!1)},[Qo,_n]);const Un=(nn,Zn,ho,Xn,Mo)=>{nn.stopPropagation();let Zo=1/0,ia=0,xa=!1;const fa=[];po.forEach((zo,Ra)=>{let Sa=zo;zo.cid===Zn&&(Sa={...zo,expand:!zo.expand},Zo=Ra),xa&&(Ra===ia?xa=!1:Sa={...zo,show:!1}),!xa&&Ra>Zo&&(zo.data.sup!==ho&&zo.depth>Xn?Sa={...zo,show:!Mo}:(zo.data.sup===ho||zo.depth<=Xn)&&(Zo=1/0),!Mo&&!zo.expand&&(ia=po.slice(Ra+1).findIndex(ln=>ln.data.sup===zo.data.sup||ln.depth<=zo.depth)+(Ra+1),ia!==-1&&(xa=!0))),fa.push(Sa)}),Oo(fa)},cn=nn=>{let{type:Zn,canExpand:ho,cid:Xn,supCid:Mo,depth:Zo,expand:ia,icon:xa,hasSubCanvas:fa,isSelected:zo}=nn;return Zn==="rResBunch"?(0,we.jsxs)("a",{className:Y()("expander rResBunch",{canExpand:ho}),onClick:Ra=>Un(Ra,Xn,Mo,Zo,ia),style:{paddingLeft:8*Zo+"px"},children:[ho&&(0,we.jsx)(O.C,{className:Y()("arrow-icon",{"is-expand":ia}),name:"common/triangle-filled-down"}),(0,we.jsx)(rt.k,{icon:xa,theme:"",isExpand:ia}),fa&&(0,we.jsx)(O.C,{className:Y()("arrow-right",{"is-expand":ia}),name:"common/expand"})]}):(0,we.jsxs)("a",{className:Y()("expander rResCanvas"),children:[zo?(0,we.jsx)(O.C,{className:"is-selected",name:"toolbar/selected"}):(0,we.jsx)("i",{className:"is-selected"}),(0,we.jsx)(Te.A,{widget:{key:Xn,hotAttr:{type:Ge.x.Canvas}}})]})};return(0,we.jsx)("div",{className:"scroll rResBunch",children:(0,we.jsx)("div",{className:"content-list rResBunch screen-menu",children:po.map(nn=>{let{cid:Zn,isVisible:ho,data:{name:Xn,asFolder:Mo,sup:Zo,icon:ia},depth:xa,show:fa,expand:zo,canExpand:Ra}=nn;const Sa=sdkStore.getSubHotItemList(Zn).filter(ko=>{let{hotAttr:{type:bo,asOverlay:aa}}=ko;return bo===Ge.x.Canvas&&!aa}),ln=Sa.length>0,ta=!ln&&!Yn&&!Mo;if(fa)return(0,we.jsx)("div",{className:"padd "+Zn,children:(0,we.jsx)(D.Dr,{dataIndex:Zn,text:Xn,icon:cn({type:"rResBunch",canExpand:Ra,cid:Zn,supCid:Zo,depth:xa,expand:zo,icon:ia,hasSubCanvas:ln,isSelected:!1}),onClick:()=>oo(Zn,Mo),className:Y()("rResBunch",Ra&&"canExpand",{isFolder:Mo},{selected:En===Zn},{isPreviewCombo:Yn,selected:En===Zn},{disabled:ta}),disabled:ta,onMouseEnter:()=>ea(!0),isAiry:!0,children:!Mo&&ln&&(0,we.jsx)("div",{className:"scroll rResCanvas",children:(0,we.jsx)("div",{className:"content-list rResCanvas",children:Sa.map(ko=>{let{key:bo,hotAttr:{name:aa,isVisible:ma}}=ko;return(0,we.jsx)(D.Dr,{text:aa,dataIndex:bo,icon:cn({type:"rResCanvas",canExpand:Ra,cid:Zn,supCid:Zo,depth:xa,expand:zo,icon:ia,hasSubCanvas:!1,isSelected:qn===bo}),onClick:()=>To(bo,{screenCid:Zn,asFolder:Mo}),isVisible:!ma,className:Y()("rResCanvas "+bo,{selected:qn===bo})},bo)})})})},Zn)},Zn)})})})},et=(0,M.Mz)([P.HA,P.mf,P.Ph,P.m5,P.bF,P.UB,P.hM],(Qe,En,qn,Hn,Yn,oo,To)=>{let{activePageKey:po,activeCanvasKey:Oo}=En,{isEmbedV2:Qo}=Yn,ea=Qe;if(oo){const{screen_visible_list:_n,screen_visible_switch:Un}=oo;if(Un){const{screenTreeData:cn}=(0,ue.wb)(_n);ea=cn}}return{screenTreeData:ea,activePageKey:po,activeCanvasKey:Oo,isFullScreenMode:qn,theme:Hn,isEmbedV2:Qo,isPreviewCombo:To}}),Ut=(0,k.Ng)(Qe=>et(Qe))(fe);var G=i(70248),Ht=i(26067);class Tt extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,C.A)(this,"createRef",En=>this.$ref=En),(0,C.A)(this,"handleToggle",En=>{const{isOpen:qn}=this.state,Hn=En===void 0?!qn:En;this.setState({isOpen:Hn,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(Hn)}),(0,C.A)(this,"handleSetPosition",En=>{if(!this.$ref||!En)return;const qn=this.$ref.getBoundingClientRect();if(qn){const Hn=(48-qn.height)/2,Yn={left:qn.left-2,top:qn.bottom+Hn-2};this.setState({position:Yn})}}),(0,C.A)(this,"handleActivate",En=>{const{activePageKey:qn,dispatch:Hn}=this.props;Hn({type:"entry:runner:activate:canvas",payload:{pageKey:qn,canvasKey:En}})})}render(){const{stateList:En,activeCanvasKey:qn,activeWidgetKey:Hn}=this.props,{position:Yn,isOpen:oo}=this.state;if((En==null?void 0:En.length)===0||Hn)return null;const To=En.find(po=>po.key===qn);return(0,we.jsxs)(Ze,{children:[(0,we.jsxs)("div",{className:Y()("toolbar-menu-opener state-list"),onClick:()=>this.handleToggle(!oo),ref:this.createRef,children:[(0,we.jsx)("span",{className:"title",children:To==null?void 0:To.name}),(0,we.jsx)(O.C,{className:"arrow-right",name:"common/expand"})]}),oo&&(0,we.jsxs)(Me,{position:Yn,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,we.jsx)("div",{className:"scroll",children:En.map(po=>{let{key:Oo,name:Qo,isVisible:ea}=po;return(0,we.jsx)("div",{className:"padd",children:(0,we.jsx)(D.Dr,{isVisible:!ea,icon:qn===Oo?(0,we.jsx)(O.C,{className:"is-selected",name:"toolbar/selected"}):(0,we.jsx)("i",{className:"is-selected"}),dataIndex:Oo,text:Qo,onClick:()=>this.handleActivate(Oo),className:Y()("rResBunch","isPanelPreview",{selected:qn===Oo})},Oo)},Oo)})}),(0,we.jsx)(m.kb,{})]})]})}}const Vt=(0,M.Mz)([P.mf,P.Mo],(Qe,En)=>{let{activePageKey:qn,activeCanvasKey:Hn,activeWidgetKey:Yn,panelPreviewStateListCacheTag:oo}=Qe;return{stateList:(qn?(0,Ht.Y2)(qn):[]).map(po=>{var Oo;return{key:En&&((Oo=sdkStore.getHotItem(En))==null||(Oo=Oo.hotAttr)==null?void 0:Oo.type)==="wBasket"?(0,G.j_)([En,po.key]):po.key,...po.hotAttr}}),activePageKey:qn,activeCanvasKey:Hn,activeWidgetKey:Yn}}),He=(0,k.Ng)(Qe=>Vt(Qe))(Tt),rn=(0,a.memo)(()=>{const Qe=(0,k.d4)(P.Cb),En=()=>{if(!Qe)return;const qn=sdkStore.getHotItem(Qe);if(!(!qn||qn.hotAttr.type!==Ge.x.WCode))try{var Hn;const Yn=(Hn=document.querySelector("#preview-combo-modal"))==null||(Hn=Hn.querySelector("#simulator-container"))==null||(Hn=Hn.querySelector('[data-cid="'+Qe+'"]'))==null?void 0:Hn.querySelector("iframe");if(!Yn||!(Yn!=null&&Yn.contentWindow))return;Yn.contentWindow.postMessage({type:"reloadWidget"},"*")}catch(Yn){console.error(Yn)}};return(0,we.jsx)(E.A,{className:"preview-view-icon preview-view-icon-refresh",name:"\u91CD\u65B0\u52A0\u8F7D",toolTipName:"\u91CD\u65B0\u52A0\u8F7D",svgIconName:"toolbar/reload",toolTipDistance:8,onClick:En,size:24})}),Lt=V.Ay.div.withConfig({displayName:"styles__StyledComboPreviewToolbar",componentId:"sc-1y80tqu-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;.reset{width:28px;height:28px;margin:0 6px;}}.toolbar-right{display:flex;align-items:center;.preview-view-icon-refresh{width:28px;height:28px;margin-right:6px;color:",";cursor:pointer;svg.svg-icon{width:24px;height:24px;}&:hover{color:",";}&:active{color:",";}}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}"],Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1);class jt extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleResetScreen",()=>{const{dispatch:En}=this.props;En({type:"entry:runner:reset"})})}render(){const{isPanelPreviewMode:En,isPreviewAIComponent:qn,onCloseModal:Hn}=this.props;return(0,we.jsxs)(Lt,{type:"draggable",children:[(0,we.jsxs)("div",{className:"toolbar-left",children:[En?(0,we.jsx)(He,{}):qn?null:(0,we.jsx)(Ut,{}),!qn&&(0,we.jsx)(l.A,{content:I18N.SettingPanel.reset,direction:"down",children:(0,we.jsx)(J.A,{name:"toolbar/preview/reset",className:"reset",onClick:this.handleResetScreen})})]}),(0,we.jsxs)("div",{className:"toolbar-right",children:[qn&&(0,we.jsx)(rn,{}),(0,we.jsx)(tt,{}),(0,we.jsx)(O.C,{name:"general/times",className:"close",onClick:Hn})]})]})}}const mt=(0,M.Mz)([P.KR,P.ks],(Qe,En)=>({isPanelPreviewMode:Qe,isPreviewAIComponent:En})),Jn=(0,k.Ng)(Qe=>mt(Qe))(jt);var o=i(96986),so=i(82066);class Et extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleZoomIn",()=>{const{dispatch:En}=this.props;En({type:"entry:preview:zoom-in"})}),(0,C.A)(this,"handleZoomOut",()=>{const{dispatch:En}=this.props;En({type:"entry:preview:zoom-out:set-offset"})}),(0,C.A)(this,"handleZoomSpecifiedScale",En=>{const{dispatch:qn,scale:Hn}=this.props;qn({type:"entry:preview:set:scale",payload:{scale:En}}),Hn>En&&qn({type:"entry:preview:zoom-out:center-position",payload:{nextScale:En,oldScale:Hn}})}),(0,C.A)(this,"handleZoomInitialScale",En=>{En==null||En.stopPropagation(),En==null||En.preventDefault();const{dispatch:qn}=this.props;qn({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),qn({type:"entry:auto-fit:preview:scale"}),qn({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})})}componentDidMount(){const{isEmbedV2:En}=this.props;En&&this.handleZoomInitialScale(null)}render(){const{scale:En,isEmbedV2:qn,isSquare:Hn,isHTMLZip:Yn,isFullScreenMode:oo}=this.props;return(0,we.jsx)("div",{className:Y()("ZoomButton",{isEmbedV2Preview:qn},{isCommunity:Hn},{NotFullScreen:!oo},{isBorder:Hn||qn||Yn}),children:(0,we.jsx)(so.Pd,{onlyPreview:!0,scale:En,isShowZoomSelection:!1,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale})})}}const Jt=(0,M.Mz)([P.St,P.Ph,P.bF],(Qe,En,qn)=>{let{isEmbedV2:Hn,isSquare:Yn,isHTMLZip:oo}=qn;return{scale:Qe,isFullScreenMode:En,isEmbedV2:Hn,isSquare:Yn,isHTMLZip:oo}}),Ot=(0,k.Ng)(Qe=>Jt(Qe))(Et);var dn=i(8342),Ce=i(30986),Pt=i(29342);const At=Qe=>{const{user:En,dispatch:qn}=Qe,Hn=(0,a.useContext)(Ce.G),Yn=(0,a.useContext)(Ce.n),[oo,To]=(0,a.useState)((0,Pt.N)()),[po,Oo]=(0,a.useState)(!1),Qo=async()=>{MB.global.experienceLoginModalHelper&&MB.global.experienceLoginModalHelper("isSave")||(oo&&(MB.commonGuideHelper.closeGuide(f.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE),Oo(oo),setTimeout(()=>{To(!1),Oo(!1)},6e3)),qn({type:"entry:preview:toggle:sharingManager"}))};return(0,a.useEffect)(()=>{Hn!=="read_only"&&Yn&&(0,dn.c)(I18N)[f.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:!1})},[Hn,Yn]),Hn==="read_only"?null:(0,we.jsx)("div",{style:{fontSize:12},id:"preview-sharing-box",className:f.c.GUIDE_2309_CLICK_SHARE,children:(0,we.jsxs)("div",{className:Y()("share-menu-wrapper",{fill:En==null?void 0:En.id,"show-animation":oo}),onClick:Qo,children:[(0,we.jsx)("span",{children:I18N.pPreviewToolbar.share}),oo&&(0,we.jsx)("div",{className:Y()("animation-list",{"is-hidding":oo&&po}),children:Array(12).fill(0).map((ea,_n)=>(0,we.jsx)("div",{className:"circle circle-"+(_n+1)},_n))})]})})};var on=i(29303),no=i(25234),mo=i(39e3),mn=i(78401),ht=i(18183),Fn=i(53008),Yt=i(24437),Gt=i(15515),Bn=i(47695),qt=i(58053),Zt=i(37342),jn=i(22835),ro=i(5209),Tn=i(80226),bt=i(86102),Wt=i(81122),wn=i(62118),uo=i(97644);const In=V.Ay.header.withConfig({displayName:"styles__StyledPreviewToolbar",componentId:"sc-1jkr5iz-0"})(["position:absolute;display:flex;align-items:center;z-index:",";background:",";height:48px;width:100%;box-shadow:0 1px 0 ",";padding:0 8px;transition:all 0.3s ease-in-out;color:",";opacity:1;pointer-events:auto;top:0px;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.toolbar-left{.modao-logo{margin-left:8px;}.toolbar-logo-icon{width:24px;height:24px;margin:4px 12px;path{fill:",";}}}&.isHTMLZip > .toolbar-left{.modao-logo{margin-right:13px}}.svg-icon{color:",';> *{fill:currentColor;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}&.isCommunity,&.isEmbedV2{.toolbar-left svg.modao-logo{cursor:default;}}&.dark{.toolbar-right{.settings-dropdown,.fullscreen-box{svg{color:#f2f4f5 !important;}}.ZoomButton{&.isBorder,&.isEmbedV2Preview.NotFullScreen > div:first-child{outline:1px solid #454647;}}}}.toolbar-right{font-size:18px;display:flex;align-items:center;justify-content:flex-end;height:100%;&.toolbar-right-abar-import{padding-right:78px;}.new_version_artboard_guide{margin-right:15px;text-decoration:none;display:flex;align-items:flex-end;img{width:27px;}span{margin-bottom:2px;margin-left:6px;font-size:14px;line-height:16px;color:#FFFFFF;line-height:17px;background:linear-gradient(90.17deg,#FF6D20 4.49%,#FC1616 44.72%,#FC8D16 97.02%,#FCE516 158.98%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}.preview-seeting{width:21px;height:22px;}.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}.share-menu-wrapper{display:flex;align-items:center;height:32px;padding:0 15px;font-weight:500;background:',";border:1px solid ",";border-radius:6px;font-size:13px;color:",";transition:all 0.2s ease-in-out;white-space:nowrap;cursor:pointer;&.fill{background:",";border:none;color:#fff;&:hover{background:",";}&:active{background:",";}}&:not(.fill):hover{color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}}.share-menu-wrapper.show-animation{",";}a,.svg-icon{&:active,&.active{cursor:pointer;}}label.Dropdown:not(:global(.is-disabled)){&:hover{.svg-icon{color:#415058;}}}span.share-icon:hover{color:",";}.full-screen-button{width:32px;height:32px;border-radius:6px;&.small{width:24px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}svg.svg-icon{width:32px;height:32px;}}.ZoomButton{&.isBorder{outline:1px solid #e5e5e5;border-radius:3px;margin:0 6px;& > div:first-child{width:71px;height:28px;.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}}}&.isEmbedV2Preview{&.NotFullScreen{margin:0 4px;& > div:first-child{width:48px;height:20px;outline:1px solid #e5e5e5;border-radius:2px;.zoom-main > .zoom-box{width:100%;height:100%;.zoom-scale{flex:1;margin-left:2px;font-size:13px;font-weight:400;transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:0;margin-right:6px;}}}}.mac,.others{top:132%;}}&.isCommunity{.mac,.others{top:132%;}}}.close{margin-left:8px;width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}.settings-dropdown{margin-left:6px;cursor:pointer;.isEmbedV2Preview.toolbar-icon-item{width:38px;height:32px;svg{width:32px;height:32px;}&.NotFullScreen{width:28px;height:24px;svg{width:24px;height:24px;}}}}.preview-view-icon{width:32px;}.comment{cursor:pointer;width:32px;height:32px;border-radius:6px;margin-right:6px;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:32px;height:32px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}}a{&[disabled]{cursor:not-allowed;color:#c8cdd0 !important;> span{color:#c8cdd0 !important;}}}.back-icon{display:flex;width:32px;height:100%;justify-content:center;align-items:center;margin-left:-8px;margin-right:-6px;color:",";font-size:16px;cursor:pointer;transition:all 0.1s linear;> div{width:32px;height:32px;}}.line{height:20px;width:1px;background:",";margin:0 25px;}.toolbar-left{flex-basis:510px;flex-shrink:0;}.toolbar-right{flex-basis:510px;flex-shrink:0;}.toolbar-left{position:relative;display:flex;height:100%;align-items:center;.modao-logo{height:32px;cursor:pointer;margin-right:","px;g{path:nth-child(2){fill:","}path:nth-child(3){fill:","}}}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-left:8px;}div.divider{border-left:1px solid ",";margin:0px 16px 0px 16px;height:24px;}.toolbar-item{width:38px;height:32px;border-radius:4px;}.arrow-back{margin-right:10px;}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.toolbar-center{flex:1;max-width:calc(100% - 596px);min-width:334px;height:100%;}.toolbar-main{position:relative;height:100%;display:flex;align-items:center;justify-content:center;flex:1;.toolbar-center-dropDown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-left:4px;.svg-icon{color:",";width:7px;height:4px;}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.project-name{font-size:14px;font-weight:500;color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text;text-align:center;}.update{display:flex;align-items:center;justify-content:center;margin-right:4px;width:24px;height:24px;border-radius:4px;&:hover{background:",";}&:active{background:",";}.unRead{position:relative;top:auto;right:auto;}svg.svg-icon{width:14px;height:14px;cursor:pointer;color:#DE1E00;path{fill:#DE1E00;}}}}.preview-toolbar-nav{display:flex;height:100%;background:#fff;border-bottom:none;justify-content:space-between;.nav-icon{.svg-icon{width:28px;height:28px;}&:hover{color:#415058;}}.active .nav-icon,.active .nav-label{color:#f55d54;transition:none;.svg-icon{color:",";}}> li{width:260px;font-size:14px;border-bottom:2px solid transparent;&:not(.active){&:hover{overflow:visible;.icon{color:#415058;}}}}.background-cube{border:none;height:calc(100% + 1px);&::after{content:'';position:absolute;left:18px;bottom:-1px;width:52px;border-top:2px solid #f55d54;}}}.toolbar-main-wrapper{position:relative;display:flex;justify-content:space-around;width:200px;height:100%;}@media only screen and (max-width:985px){.toolbar-left{.project-name{max-width:140px;}}.toolbar-right{label.Dropdown:first-child,span.line:nth-child(2){display:none;}#preview-sharing-box{.share-menu-wrapper{font-size:12px;}}}}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{flex-basis:calc(50% - 75px);}}}"],Qe=>Qe.isEmbedV2?198:1e3,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_bg_border_01,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_btn_primary_normal,Qe=>Qe.theme.color_btn_primary_hover,Qe=>Qe.theme.color_btn_primary_clicked,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_white,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_btn_secondary_hover,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_btn_secondary_active,Qe=>Qe.theme.color_bg_border_02,uo.e,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L2,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_disabled01,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L3,Qe=>Qe.theme.color_bg_canvas,Qe=>Qe.isEmbedV2||Qe.isSquare?13:0,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_bg_border_02,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_text_L1,Qe=>Qe.theme.color_btn_secondary_active,Qe=>Qe.theme.color_btn_secondary_active,Qe=>Qe.theme.color_primary_brand01);class Dn extends a.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleTabChange",En=>{const{dispatch:qn}=this.props;switch(qn({type:"entry:preview:select",payload:{toolbarActiveItem:En}}),En){case"comment":{qn({type:"entry:comment:toggle"});break}}}),(0,C.A)(this,"handleCloseGuide",()=>{(0,Gt.a0)("new_version_artboard_guide_has_shown",!0,Gt.qW.Boolean)}),(0,C.A)(this,"handleExitFullScreen",async()=>{qt.A.isFullscreen&&await qt.A.exit(),this.props.dispatch({type:"entry:exit:fill-screen-mode"})}),(0,C.A)(this,"handleEnterFullScreen",()=>{this.props.dispatch({type:"entry:enter:full-screen-mode"})}),(0,C.A)(this,"handleBackReadOnly",()=>{const{sharing:En}=this.props,{page_begin:qn,canvas_begin:Hn,screen_visible_list:Yn}=En,oo=(0,Fn.Uh)(Yn),To=(0,ht.H)({search:"",pathname:location.pathname}),po=(0,Yt.s_)({accessToken:To,viewMode:"read_only",pageId:qn,canvasId:Hn,selection:oo});(0,Zt.JW)(po,"_self")}),(0,C.A)(this,"handleClickOutSide",En=>{let{target:qn}=En;const Hn=document.querySelector("#simulator"),Yn=document.querySelector("#mb-toolbar.preview-toolbar"),oo=document.querySelector(".preview-footer-toolbar"),To=document.querySelector(".canvas-menu-container"),po=document.querySelector(".context-menu-mask"),Oo=document.querySelector("#app-sharing");Hn!=null&&Hn.contains(qn)||Yn&&Yn!=null&&Yn.contains(qn)||oo&&oo!=null&&oo.contains(qn)||To&&To!=null&&To.contains(qn)||po&&po!=null&&po.contains(qn)||Oo&&Oo!=null&&Oo.contains(qn)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0}})}),(0,C.A)(this,"handleMouseLeave",En=>{let{target:qn}=En;const Hn=document.querySelector(".context-menu-mask"),Yn=document.querySelector("#preview-sharing-box"),oo=document.querySelector("#app-sharing"),To=document.querySelector(".sharingBoxV2"),po=document.querySelector(".preview-zoom-options-panel"),Oo=document.querySelector(".ZoomButton"),Qo=document.querySelector(".toolbar-center-dropDown-menu");Hn&&Hn!=null&&Hn.contains(qn)||(oo||To)&&Yn!=null&&Yn.contains(qn)||po&&Oo!=null&&Oo.contains(qn)||Qo&&Qo!=null&&Qo.contains(qn)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}),(0,C.A)(this,"handleToggleMinimized",()=>{const{dispatch:En,isMinimized:qn,activeCanvasKey:Hn,activePageKey:Yn}=this.props;En({type:"entry:preview-setting:toggle:isMinimized"});const oo=setTimeout(()=>{(0,jn.cL)(Hn),(0,jn.fl)(Yn),clearTimeout(oo)},50);qn?(0,S.v)({operation_type:S.$.OpenPageList}):(0,S.v)({operation_type:S.$.ClosePageList})}),(0,C.A)(this,"onClickLogo",()=>{const{isSquare:En,isEmbedV2:qn,isHTMLZip:Hn}=this.props;En||qn||(setTimeout(()=>(0,S.v)({operation_type:S.$.Logo}),0),Hn?location.href="https://modao.cc/workspace/home":location.href=location.origin+"/workspace/home")}),(0,C.A)(this,"handleGoEdit",()=>{if((0,Wt.BG)())(0,Wt.sg)(Wt.ZW.enterEdit);else{const{project:En,sharing:qn}=this.props,Hn=new URLSearchParams(location.search),Yn=(Hn.get("selection")?"&selection="+Hn.get("selection"):"")+(Hn.get("screen")?"&screen="+Hn.get("screen"):"")+(Hn.get("canvasId")?"&canvasId="+Hn.get("canvasId"):""),oo=MB.canEditByCurrentUser?(0,ht.Dw)("design/"+En.cid):(0,ht.Dw)(qn.access_token+"/sharing?view_mode=read_only"+Yn);(0,Gt.a0)(h.NF+"-"+En.cid,Hn.get("screen")+","+(Hn.get("canvasId")||""),Gt.qW.String),location.href=""+location.origin+oo}(0,ro.kH)("model_change",{change_type:"\u6F14\u793A\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})}),(0,C.A)(this,"handleSwitchPreviewViewMode",En=>{MB.action("entry:handle-tool:preview:view_mode",{previewViewMode:En})}),(0,C.A)(this,"handleToggleComment",()=>{const{sharing:En,dispatch:qn}=this.props;(En==null?void 0:En.comment_permission)==="off"||qn({type:"entry:comment:toggle"})})}get isShowNewVersionArtboardGuide(){const{toolbarActiveItem:En,isShowNewVersionArtboardGuide:qn}=this.props;return En==="inspect"&&qn}componentDidMount(){const{isSquare:En,isEmbedV2:qn,isHTMLZip:Hn,dispatch:Yn,isFromAbar:oo}=this.props;oo&&Yn({type:"entry:preview-setting:toggle:isMinimized"}),!(En||Hn||qn)&&setTimeout(()=>{(0,Bn.jo)()||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})},4e3)}render(){var En,qn,Hn;const{project:Yn,dispatch:oo,isHTMLZip:To,isSquare:po,isEmbedV2:Oo,isFullScreenMode:Qo,theme:ea,user:_n,isHiddenToolBar:Un,previewViewMode:cn,isInCommentMode:nn,sharing:Zn}=this.props,{isShowNewVersionArtboardGuide:ho,onClickLogo:Xn}=this,Mo=Yn.name||"",Zo=Oo&&((En=new URLSearchParams(location.search))==null?void 0:En.get("from"))==="launch",ia=Oo&&!Qo||po&&!bt.isFullscreen,xa=(0,h.Y8)(ea);return(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)(In,{id:"mb-toolbar",className:Y()("preview-toolbar",""+ea,{"is-fullscreen-mode":Qo,isEmbedV2NotFull:Oo&&!Qo,isEmbedV2:Oo,isCommunity:po,isHTMLZip:To,isHidden:Un}),isEmbedV2:Oo,isSquare:po,onMouseEnter:()=>oo({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:this.handleMouseLeave,children:[(0,we.jsxs)("div",{className:"toolbar-left",children:[Zo?(0,we.jsx)(J.A,{className:Y()("arrow-back"),onClick:this.handleBackReadOnly,name:"common/back"}):(0,we.jsx)(l.A,{content:I18N.ToolBar.back_to_dashboard,direction:"down",tipClassName:"toolbar-modao-logo-tips",children:(0,we.jsx)("img",{className:"toolbar-logo-icon",src:xa,onClick:()=>this.onClickLogo()})}),ia&&(0,we.jsx)(Ut,{isEmbedV2NotFull:Oo&&!Qo}),(Oo||po?Qo:!0)&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("span",{className:Y()("project-name"),children:(0,mn.qk)(Mo)}),MB.canEditByCurrentUser&&!(Oo||po)&&(0,we.jsx)(no.Oc,{className:"edit-btn "+f.c.GUIDE_NOVICE_2309_TIP_1,type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}),(0,we.jsx)("div",{className:"toolbar-center",children:(!po||Yn.category==="project_basic"&&Qo)&&(0,we.jsx)("div",{className:"toolbar-main",children:(0,we.jsx)(Tn.D,{size:Oo&&!Qo?"small":"normal",isShowInspect:!Oo&&!po,mode:cn,onSwitch:this.handleSwitchPreviewViewMode})})}),(0,we.jsxs)("div",{className:Y()("toolbar-right",{"toolbar-right-abar-import":(0,Wt.Zt)()}),children:[!ENV.IS_ON_PREMISES&&ho&&(0,we.jsxs)("a",{onClick:this.handleCloseGuide,className:"new_version_artboard_guide",href:"/feature/aboard/index.html",target:"_blank",children:[(0,we.jsx)("img",{src:"/mb-workspace/images/preview/toolbar-artboard-guide.png"}),(0,we.jsx)("span",{children:"\u4E0A\u65B0\uFF01\u5F00\u53D1\u6807\u6CE8\u66F4\u7CBE\u51C6\uFF0C\u62A2\u5148\u4F53\u9A8C"})]}),!((qn=MB)!=null&&(qn=qn.user)!=null&&qn.id)&&!To&&!ENV.IS_ON_PREMISES&&!po&&!Oo?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(no.tA,{className:"login",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,Zt.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_MO&&(0,ro.lW)("Readonly-Top-Signin")},type:"signin",source:"proto-preview"}),children:I18N.pPreviewToolbar.login}),(0,we.jsx)(no.jn,{className:"signup",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,Zt.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_MO&&(0,ro.lW)("Readonly-Top-Start for Free")},type:"signup",source:"proto-preview"}),children:I18N.pPreviewToolbar.signup}),(0,we.jsx)(on.A,{}),(0,we.jsx)(Ot,{}),Qo?(0,we.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,we.jsx)(J.A,{className:Y()("full-screen-button",{small:Oo&&!Qo}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,we.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,we.jsx)(J.A,{className:Y()("full-screen-button",{small:Oo&&!Qo}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]}):(0,we.jsxs)(we.Fragment,{children:[!To&&!Oo&&!po&&((Hn=MB)==null||(Hn=Hn.user)==null?void 0:Hn.id)&&(0,we.jsx)(E.A,{svgIconName:"design/preview/comment",active:nn,className:"comment",disabled:(Zn==null?void 0:Zn.comment_permission)==="off",toolTipName:(0,wn.Qc)("comment"),direction:"down",toolTipDistance:8,onClick:this.handleToggleComment}),!(To||Oo||po||(0,Wt.BG)())&&(0,we.jsx)(At,{dispatch:oo,user:_n}),(0,we.jsx)(on.A,{}),(0,we.jsx)(Ot,{}),Qo?(0,we.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,we.jsx)(J.A,{className:Y()("full-screen-button",{small:Oo&&!Qo}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,we.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,we.jsx)(J.A,{className:Y()("full-screen-button",{small:Oo&&!Qo}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]})]})]}),(0,we.jsx)(mo.A,{target:document,onPointerDown:(0,mo.t)(this.handleClickOutSide,{capture:!0})})]})}}const So=(0,M.Mz)([P.bF,P.Br,P.PL,P.Ph,P.m5,P.HW,P.H9,P.kM,P.Pf,P.UB,P.mf,P.Zr,P.tp,o.sI],(Qe,En,qn,Hn,Yn,oo,To,po,Oo,Qo,ea,_n,Un,cn)=>{let{isHTMLZip:nn,isSquare:Zn,isEmbedV2:ho}=Qe,{isShowNewVersionArtboardGuide:Xn}=To,{activePageKey:Mo,activeCanvasKey:Zo}=ea;return{project:qn||{},isHTMLZip:nn,isSquare:Zn,isEmbedV2:ho,isFullScreenMode:Hn,toolbarActiveItem:En,theme:Yn,user:oo,isShowNewVersionArtboardGuide:Xn,isHiddenToolBar:po,isMinimized:Oo,sharing:Qo,activePageKey:Mo,activeCanvasKey:Zo,isFromAbar:_n,previewViewMode:Un,isInCommentMode:cn}}),Qt=(0,k.Ng)(Qe=>So(Qe))(Dn);class Ln extends a.PureComponent{render(){const{isPanelPreviewMode:En,isPreviewCombo:qn,isQuickPreview:Hn,...Yn}=this.props;return(0,we.jsx)(we.Fragment,{children:Hn?(0,we.jsx)(lt,{...Yn}):En||qn?(0,we.jsx)(Jn,{...Yn}):(0,we.jsx)(Qt,{})})}}const Mn=(0,M.Mz)([P.KR,P.hM,P.k6],(Qe,En,qn)=>({isPanelPreviewMode:Qe,isPreviewCombo:En,isQuickPreview:qn})),Rt=(0,k.Ng)(Mn)(Ln)},9338:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(38502),k=i(56193),M=i(27937),P=i(47163),C=i(29158),q=i(85449),Y=i(72214);class J extends a.Component{render(){return(0,Y.jsx)(M.tH,{fallback:(0,Y.jsx)(k.A,{locale:(0,P.w)()}),beforeCapture:l=>{var D,m,E;l.setLevel("fatal");const f=window.reduxLogList.filter(Boolean).map(rt=>rt.type),h=JSON.stringify(f,null,2),S=(0,q.dP)(),V=[];if(S){var We;const rt=(S==null||(We=S.editor)==null||(We=We.state)==null||(We=We.mode)==null?void 0:We.selections)||[];for(const Te of rt){var re,ve,we;!((re=sdkStore)!=null&&re.isTrashed(Te))&&(ve=sdkStore)!=null&&(we=ve.findUpHotItemList)!=null&&we.call(ve,Te,C.gT)&&V.push(sdkStore.findUpHotItemList(Te,C.gT).map(Ge=>({key:Ge.key,type:Ge.hotAttr.type,name:Ge.hotAttr.name})))}}const{language:Ae,hardwareConcurrency:Oe}=navigator,{devicePixelRatio:Be,outerWidth:tt,outerHeight:Xe,innerWidth:ne,innerHeight:lt}=window;l.setExtras({reduxLogList:h,selectionKeyPathList:JSON.stringify(V,null,2),htmlLang:(D=document.querySelector("html"))==null?void 0:D.getAttribute("lang"),navigator:JSON.stringify({language:Ae,hardwareConcurrency:Oe,devicePixelRatio:Be,outerWidth:tt,outerHeight:Xe,innerWidth:ne,innerHeight:lt},null,2),multiCursor:((m=rootSdk)==null||(m=m.cssCur)==null?void 0:m.getRoomStat().length)>1?JSON.stringify([...(E=rootSdk)==null||(E=E.cssCur)==null||(E=E.__curStatMap)==null?void 0:E.values()],null,2):void 0})},children:this.props.children})}}},10245:(eo,ot,i)=>{"use strict";i.d(ot,{b:()=>a});const a=1e4},10712:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>l});var a=i(38502),k=i(53732),M=i.n(k),P=i(83199),C=i(67787);const q=C.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownOptionDiv",componentId:"sc-2w3qad-0"})(["&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;background-color:transparent;color:",";cursor:pointer;border-radius:4px;position:relative;&:hover{background-color:",";}&.active{background-color:",";}&.disabled{cursor:not-allowed;opacity:0.3;background-color:unset!important;}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;margin-left:32px;&:lang(en){white-space:nowrap;}}.draft-check{width:16px;height:16px;position:absolute;left:8px;}}"],D=>D.theme.color_text_L1,D=>D.theme.color_btn_secondary_hover,D=>D.theme.color_btn_secondary_hover),Y=C.Ay.div.withConfig({displayName:"styles__StyledDraftOptionWrapperDiv",componentId:"sc-2w3qad-1"})(["min-width:32px;width:32px;height:32px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-right:6px;border-radius:6px;background-color:transparent;cursor:pointer;&:not(.active):not(.disabled):hover{background-color:",";}&.active{background-color:",";color:",";}&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}.Tooltip{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}&:not(.pure-icon){svg{color:inherit;path[fill]{fill:",";}}}&.code-generate-preview{svg{path[stroke]{stroke:",";}}}&.image-mirror-h,&.image-mirror-v{svg{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.image-canvas-ai{img{width:18px;height:18px;border-radius:4px;}}&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;background-color:transparent;color:",";cursor:pointer;border-radius:4px;position:relative;margin-right:0;&:hover,&:active,&.active{background-color:",";}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;margin-left:32px;&:lang(en){white-space:nowrap;}}.draft-check{width:16px;height:16px;position:absolute;left:8px;}}"],D=>D.theme.color_btn_secondary_hover,D=>D.theme.color_bg_tab,D=>D.theme.color_btn_primary_normal,D=>D.theme.color_text_L1,D=>D.theme.color_text_L1,D=>D.theme.color_text_L1,D=>D.theme.color_text_disabled01,D=>D.theme.color_text_L1,D=>D.theme.color_btn_secondary_hover);var J=i(72214);const O=D=>{const{className:m="",disabled:E,value:f,active:h,children:S,title:V,onClick:We,preventDefault:re=!0}=D,ve=(0,a.useRef)(null),we=(0,a.useCallback)(Ae=>{re&&Ae.preventDefault(),Ae.stopPropagation(),!E&&We&&We(f,ve)},[E,We,f,re]);return(0,J.jsx)(Y,{ref:ve,className:M()("quick-menu-option",m,{active:h,disabled:E}),onClick:we,children:V?(0,J.jsx)(P.A,{content:V,direction:"down",distance:12,className:"floating-tooltip",children:S}):S})},l=(0,a.memo)(O)},11494:(eo,ot,i)=>{"use strict";i.d(ot,{KY:()=>M,ec:()=>P,hA:()=>Y,p9:()=>q,wv:()=>C});var a=i(67787),k=i(64814);const M=a.Ay.div.withConfig({displayName:"styles__StyledFontContent",componentId:"sc-cd3h02-0"})(["display:flex;&.content-container.width-240{padding:8px 10px;&.font-lib-options{padding:0;}}.header{width:100%;display:flex;align-items:center;justify-content:space-between;height:32px;padding-left:6px;padding-right:6px;.title{color:",";font-weight:500;font-size:12px;display:flex;align-items:center;}.padding-all-number{width:66px;height:28px;",";background-color:transparent;}}.text-settings{width:100%;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:flex-start;& >:nth-child(2){margin-left:46px;.radio-option svg{width:24px;height:24px;}}.paragraph-input{.input.input-number{",";background-color:transparent;}}}&.flex-between{.has-ref-style-font-menus{display:flex;justify-content:flex-end;}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}.is-signle-show-direction-link{&.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0 4px 6px;color:",";.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;&.svg-size{.icon{width:24px;height:24px;}}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}.radio-option{border-radius:4px;overflow:hidden;}}}}}&.is-show-lib-opener{.is-single-button{right:60px;}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}}.draft-separator-h{margin:8px 0;}.padding-size{width:100%;padding:20px 0;display:flex;align-items:center;justify-content:center;.wrapper-padding{width:168px;height:70px;border:1px dashed ",";border-radius:4px;display:flex;align-items:center;justify-content:center;.wrapper{width:100%;height:calc(100% + 28px);display:flex;align-items:center;flex-direction:column;justify-content:space-between;.row{width:calc(100% + 40px);display:flex;align-items:center;justify-content:space-between;}.padding-number{width:40px;height:28px;",";input{text-align:center;margin-left:0;}&.is-active,&:hover{input{margin-left:8px;text-align:left;}}}.var-input-container{.toolbar-dropdown-opener{display:flex;align-items:center;justify-content:center;}.var-input.number{margin-left:0 !important;width:23px !important;max-width:23px !important;.var-tag{padding:0 2px;width:100%;max-width:100%;justify-content:center;}}&.is-active,&:hover{.toolbar-dropdown-opener{display:block;}.var-input.number{margin-left:4px !important;}}}}}}"],J=>J.theme.color_text_L1,k.I,J=>J.theme.color_text_L2,J=>J.theme.color_bg_border_02,J=>J.theme.color_btn_secondary_active,k.I,J=>J.theme.color_text_L1,J=>J.theme.color_btn_secondary_active,J=>J.theme.color_btn_secondary_hover,J=>J.theme.color_text_L2,J=>J.theme.color_text_L1,J=>J.theme.color_btn_secondary_hover,J=>J.theme.color_text_L1,J=>J.theme.color_btn_secondary_active,J=>J.theme.color_text_L1,J=>J.theme.color_text_disabled01,k.I),P=a.Ay.div.withConfig({displayName:"styles__StyledFontAlignTrigger",componentId:"sc-cd3h02-1"})(["&.re{svg{transform:rotate(-90deg);}}"]),C=a.Ay.div.withConfig({displayName:"styles__StyledFontAlign",componentId:"sc-cd3h02-2"})(["width:156px;display:flex;padding:8px;.h-alignment,.v-alignment,.indent{height:32px;width:100%;justify-content:flex-start;.radio-option{flex:0 0 32px;width:32px;height:32px;border-radius:6px;margin-right:4px;color:",";&:last-child{margin-right:0;}svg{color:inherit;path[fill]{fill:currentColor;}}&.disabled{color:",";background:none;}&:not(.disabled).active{background:",";color:",";}&:not(.active):hover{border-radius:6px;}}&.re{.radio-option{transform:rotate(-90deg);}}}.indent{.radio-option{&.disabled{background:",";}}}.h-alignment{&.re{.radio-option{transform:rotate(90deg);}}}.v-alignment{&.re{.radio-option{&:not([data-value='center']){transform:rotate(-90deg);}}}}.draft-separator-h{margin:4px 0;}"],J=>J.theme.color_text_L1,J=>J.theme.color_text_disabled01,J=>J.theme.color_bg_tab,J=>J.theme.color_btn_primary_normal,J=>J.theme.color_btn_secondary_active),q=a.Ay.div.withConfig({displayName:"styles__StyledFontFamily",componentId:"sc-cd3h02-3"})([".typeface2-btn{max-width:150px;margin-right:6px;.font-family-label{border:none;height:32px;color:",";max-width:150px;font-size:14px;line-height:20px;button{color:",";max-width:128px;}&:not(.is-disabled):not(.readonly):hover,&.is-open{width:auto;background-color:",";}.arrow{margin-left:2px;margin-right:6px;transition:all 0.2s ease-in-out;path[stroke]{stroke:",";}}&.is-open{.arrow{transform:rotate(180deg);}}}}"],J=>J.theme.color_text_L1,J=>J.theme.color_text_L1,J=>J.theme.color_btn_secondary_hover,J=>J.theme.color_text_L1),Y=a.Ay.div.withConfig({displayName:"styles__StyledDraftFontColorIconDiv",componentId:"sc-cd3h02-4"})(["svg{path[fill]{fill:",";}rect[fill]{fill:",";}rect[stroke]{stroke-opacity:1;stroke:",";}}"],J=>J.theme.color_text_L1,J=>J.color?J.color:"unset",J=>J.theme.color_bg_border_02)},11817:eo=>{const ot=Y=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[Y.APOS_STRING_MODE,Y.QUOTE_STRING_MODE]}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],M=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],P=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),C=k.concat(M);function q(Y){const J=ot(Y),O=C,l="and or not only",D="[\\w-]+",m="("+D+"|@\\{"+D+"\\})",E=[],f=[],h=function(Xe){return{className:"string",begin:"~?"+Xe+".*?"+Xe}},S=function(Xe,ne,lt){return{className:Xe,begin:ne,relevance:lt}},V={$pattern:/[a-z-]+/,keyword:l,attribute:a.join(" ")},We={begin:"\\(",end:"\\)",contains:f,keywords:V,relevance:0};f.push(Y.C_LINE_COMMENT_MODE,Y.C_BLOCK_COMMENT_MODE,h("'"),h('"'),Y.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},J.HEXCOLOR,We,S("variable","@@?"+D,10),S("variable","@\\{"+D+"\\}"),S("built_in","~?`[^`]*?`"),{className:"attribute",begin:D+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},J.IMPORTANT);const re=f.concat({begin:/\{/,end:/\}/,contains:E}),ve={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(f)},we={begin:m+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+P.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:f}}]},Ae={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:V,returnEnd:!0,contains:f,relevance:0}},Oe={className:"variable",variants:[{begin:"@"+D+"\\s*:",relevance:15},{begin:"@"+D}],starts:{end:"[;}]",returnEnd:!0,contains:re}},Be={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:m,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[Y.C_LINE_COMMENT_MODE,Y.C_BLOCK_COMMENT_MODE,ve,S("keyword","all\\b"),S("variable","@\\{"+D+"\\}"),{begin:"\\b("+i.join("|")+")\\b",className:"selector-tag"},S("selector-tag",m+"%?",0),S("selector-id","#"+m),S("selector-class","\\."+m,0),S("selector-tag","&",0),J.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+k.join("|")+")"},{className:"selector-pseudo",begin:"::("+M.join("|")+")"},{begin:"\\(",end:"\\)",contains:re},{begin:"!important"}]},tt={begin:D+":(:)?"+("("+O.join("|")+")"),returnBegin:!0,contains:[Be]};return E.push(Y.C_LINE_COMMENT_MODE,Y.C_BLOCK_COMMENT_MODE,Ae,Oe,tt,we,Be),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:E}}eo.exports=q},12247:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_90)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_90)",fillOpacity:"0.5"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_90)",fillOpacity:"0.8"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_90)",strokeWidth:"0.5"}),a.createElement("path",{d:"M12.01 10.88C13.53 11.16 14.88 11.49 16.27 11.97V13.07C14.78 12.58 13.45 12.25 12.01 11.98V10.88ZM11.48 11.15V12.26L8.07 12.69L7.91 11.6L11.48 11.15ZM15.21 7.71C15.76 7.99 16.42 8.25 17.2 8.45L16.92 9.53C15.96 9.25 15.07 8.86 14.31 8.38C13.91 8.62 13.46 8.85 12.95 9.05C13.97 9.26 14.83 9.47 15.92 9.8V10.9C14.7 10.53 13.77 10.31 12.59 10.08V9.19C12.29 9.3 11.96 9.41 11.62 9.51L11.32 8.47C12.14 8.27 12.82 8.01 13.39 7.69C13.1 7.43 12.83 7.16 12.6 6.86C12.36 7.09 12.1 7.31 11.8 7.54L11.46 6.66C11.14 7.61 10.6 8.46 9.91 9.17L11.23 9.03V10.11L8.25 10.41L8.12 9.37L8.41 9.34C8.91 8.92 9.33 8.44 9.67 7.91L8.11 7.98L7.97 6.94L8.17 6.93C8.87 6.03 9.29 5.14 9.57 4H10.71C10.47 5.09 10.02 6.05 9.43 6.89L10.23 6.86C10.39 6.48 10.52 6.09 10.62 5.68H11.7C11.67 5.87 11.63 6.05 11.59 6.23C12.35 5.59 12.68 4.83 12.9 4.01H14.16C14.1 4.3 14.02 4.57 13.93 4.83H15.95C16.4 4.83 16.65 5.06 16.65 5.49C16.65 5.69 16.59 5.92 16.5 6.09C16.17 6.71 15.75 7.24 15.21 7.71ZM14.25 7.11C14.7 6.74 15.06 6.31 15.36 5.83H13.45C13.36 5.97 13.27 6.1 13.17 6.23H13.37C13.58 6.52 13.87 6.82 14.25 7.11ZM25.4 9.92V12.05C25.4 12.56 24.98 12.92 24.45 12.98C23.99 13.03 22.89 12.92 22.48 12.82L22.21 11.83C22.56 11.94 23.58 12.04 23.93 12.01C24.1 12 24.2 11.9 24.2 11.73V10.73C22.57 11.71 20.58 12.45 17.88 13L17.62 11.85C19.51 11.47 21.22 10.96 22.77 10.19H17.67L17.57 9.21H18.8V5.43C18.8 4.98 19.05 4.73 19.5 4.73H20.92L21.07 4.01H22.53L22.38 4.73H24.69C25.14 4.73 25.4 4.97 25.4 5.43V8.47C25.76 8.16 26.11 7.83 26.44 7.48L26.82 8.7C26.37 9.14 25.9 9.54 25.4 9.92ZM24.2 9.21V8.66H20V9.21H24.2ZM24.2 7.74V7.18H20V7.74H24.2ZM24.2 6.26V5.86C24.2 5.77 24.14 5.71 24.05 5.71H20.15C20.06 5.71 20 5.77 20 5.86V6.26H24.2Z",fill:"#7E2203"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_90",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE6DD"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),a.createElement("linearGradient",{id:"paint1_linear_291_90",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#D55C81"}),a.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_90",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_90",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE7DE"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},12953:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M9.72363 2.0882C9.90657 2.03488 10.1013 2.03476 10.2842 2.0882L16.3047 3.84698C16.7311 3.97162 17.0244 4.36271 17.0244 4.80695V8.263C17.0242 12.5721 14.3356 16.4107 10.3154 17.8958C10.1128 17.9705 9.88915 17.9706 9.68652 17.8958C5.6652 16.4107 2.97577 12.5712 2.97559 8.26105V4.80695C2.97559 4.3626 3.26976 3.97152 3.69629 3.84698L9.72363 2.0882ZM10.1006 5.47882C8.56872 5.47929 7.32664 6.72137 7.32617 8.25323C7.32629 9.5237 8.18151 10.5921 9.34668 10.9212V13.8069C9.34688 14.1783 9.64823 14.4796 10.0195 14.4798C10.3909 14.4797 10.6922 14.1783 10.6924 13.8069V12.931C10.7058 12.9318 10.7198 12.9358 10.7334 12.9359H11.4297C11.8009 12.9356 12.1023 12.6343 12.1025 12.263C12.1023 11.8917 11.8009 11.5904 11.4297 11.5901H10.7334C10.7198 11.5902 10.7058 11.5932 10.6924 11.5941V10.9632C11.9404 10.6918 12.8759 9.58243 12.876 8.25323C12.8755 6.72109 11.6328 5.47884 10.1006 5.47882ZM10.1006 6.82452C10.8896 6.82454 11.5298 7.46435 11.5303 8.25323L11.5225 8.39972C11.4492 9.12026 10.8405 9.68291 10.1006 9.68292L9.95508 9.67511C9.23467 9.60178 8.67201 8.99297 8.67188 8.25323C8.67234 7.46463 9.31198 6.82499 10.1006 6.82452Z",fill:"#B7B9BD"}))})},13696:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>mn});var a=i(18381),k=i(12211),M=i(16454),P=i(53940),C=i(95549),q=i(38502),Y=i(53732),J=i.n(Y),O=i(39e3),l=i(77533),D=i(17307),m=i(62490),E=i(60121),f=i(78401),h=i(93257),S=i(69246),V=i(85584),We=i(29078),re=i(67787),ve=i(51090);const we=re.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-bxhybw-0"})([""," .expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:14px;height:14px;margin-left:-15px;margin-right:1px;.arrow-icon{color:#999;width:8px;height:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{display:flex;align-items:center;width:100%;padding-right:5px;.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{color:",";",";line-height:24px;border:none;span.highlight-keyword{font-weight:600;}}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0 10px;.actions-ellipsis{font-size:14px;pointer-events:none;color:",";}&:hover{.actions-ellipsis{color:",";}}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{color:",";background:",";.screen-name .screen-item-icon .icon{color:",";}}&.dummy-select{background:",";border-radius:0;}&.active,&.is-active{color:",";background-color:",";.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],ve.Aw,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L1,ve.L9,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_proto,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_bg_select02,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_directory_hover,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_directory_hover,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_directory_active,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_link_normal);var Ae=i(72214);class Oe extends q.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"setElementRef",Fn=>this.$elem=Fn),(0,C.A)(this,"handleExpand",Fn=>{Fn.stopPropagation();const{screenMeta:Yt,actionProps:{onExpand:Gt}}=this.props;Gt(Yt)}),(0,C.A)(this,"handleClick",Fn=>{Fn.stopPropagation();const{screenMeta:Yt,actionProps:{onSelect:Gt}}=this.props;Gt(Fn,Yt)}),(0,C.A)(this,"onShowTipsByTarget",(Fn,Yt)=>{const Gt=Yt.querySelector(".editable-span");return Gt?Gt.offsetWidth<Gt.scrollWidth:!1}),(0,C.A)(this,"handleToggleHover",(Fn,Yt)=>{Fn.stopPropagation();const{actionProps:{onToggleHover:Gt},screenMeta:{cid:Bn}}=this.props;Gt&&Gt(Yt?Bn:"")})}stopPropagation(Fn){Fn.stopPropagation()}render(){const{screenMeta:Fn,depth:Yt,isExpand:Gt,isDummySelect:Bn,isActive:qt,showExpander:Zt,isHTMLZip:jn,screenCommentThreadCountMap:ro,theme:Tn,initPaddingLeft:bt,paddingLeftLayout:Wt,highlightKeyword:wn}=this.props,uo=(0,We.N8)(Yt,Wt,bt),In=(0,V.Mo)(Fn),{cid:Dn,name:So,icon:Qt}=Fn,Mn=(ro&&ro[Dn]||0)>=1&&!jn;return(0,Ae.jsx)(h.A,{content:So,distance:5,direction:"right",onMouseEvent:"onDoubleClick",onChangeTooltipsHover:(Rt,Qe)=>Qe==null?void 0:Qe(),isShowTipsByTarget:this.onShowTipsByTarget,children:(0,Ae.jsxs)(we,{ref:this.setElementRef,"data-cid":Dn,onClick:this.handleClick,onMouseEnter:Rt=>this.handleToggleHover(Rt,!0),onMouseLeave:Rt=>this.handleToggleHover(Rt,!1),style:{paddingLeft:uo},className:J()("rn-list-item",{"dummy-select":Bn,active:qt,select:qt,folder:In}),children:[Zt&&(0,Ae.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,Ae.jsx)(D.C,{className:J()("arrow-icon",{"is-expand":Gt}),name:"common/expand"})}),(0,Ae.jsxs)("div",{className:"screen-name",children:[(0,Ae.jsx)("div",{className:"screen-item-icon",children:(0,Ae.jsx)(S.k,{icon:Qt,theme:Tn,isExpand:Gt})}),(0,Ae.jsx)(m.O,{className:"editable-span",children:(0,Ae.jsx)(E.A,{value:(0,f.wh)(So),highlightKeyword:wn})})]}),Mn&&(0,Ae.jsx)("span",{className:"toggle-comment",children:(0,Ae.jsx)(D.C,{name:"new_replace/comment"})}),qt&&(0,Ae.jsx)("span",{className:"active-circle"})]})})}}var Be=i(31228),tt=i(86969),Xe=i(93413);let ne=function(ht){return ht.community="community",ht.workspace="workspace",ht}({});var lt=i(22835);class rt extends q.PureComponent{constructor(Fn){super(Fn),(0,C.A)(this,"setElementRef",Yt=>this.$elem=Yt),(0,C.A)(this,"autoScrollSelected",()=>{const{activePageKey:Yt}=this.props;Yt&&this.$elem&&(0,lt.yA)(this.$elem,Yt)}),(0,C.A)(this,"handleScreenMetaExpand",Yt=>{let{cid:Gt}=Yt;const{collapseKeySet:Bn,dispatch:qt}=this.props,Zt=new Set(Bn);Bn.has(Gt)?Zt.delete(Gt):Zt.add(Gt),qt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:Zt}})}),(0,C.A)(this,"handleSelectScreenMeta",(Yt,Gt)=>{const{activePageKey:Bn,dispatch:qt,toolbarActiveItem:Zt}=this.props;(0,V.Mo)(Gt)?this.handleScreenMetaExpand(Gt):Bn===Gt.cid?this.handleScreenMetaExpand(Gt):(qt({type:"entry:sync-runner:set-screen",payload:{cid:Gt.cid}}),qt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),qt({type:"entry:auto-fit:preview:scale"}),Zt===tt.YK&&qt({type:"entry:state:update:previewUserCommonGuidesData",payload:{key:Xe.c.GUIDE_PREVIEW_ADD_COMMENT}}))}),(0,C.A)(this,"handleSearch",Yt=>{const{screenTreeData:Gt}=this.props,Bn=Yt==null?void 0:Yt.toLowerCase(),[qt]=(0,V.ZG)(Gt,Bn);this.setState({displayTreeData:qt,keyword:Bn})}),(0,C.A)(this,"handleToggleExpanded",()=>{const{collapseKeySet:Yt}=this.props;Yt.size>0?this.unfoldAllScreen():this.foldAllScreen()}),(0,C.A)(this,"handleKeyDown",Yt=>{(Yt.ctrlKey||Yt.metaKey)&&(Yt.keyCode===186&&(Yt.preventDefault(),this.unfoldAllScreen()),Yt.keyCode===222&&(Yt.preventDefault(),this.foldAllScreen()))}),(0,C.A)(this,"unfoldAllScreen",()=>{const{dispatch:Yt}=this.props;Yt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set}})}),(0,C.A)(this,"foldAllScreen",()=>{const{screenTreeData:Yt,dispatch:Gt}=this.props,Bn=(0,V.YU)(Yt),qt=new Set(Bn.map(Zt=>Zt.cid));Gt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:qt}})}),(0,C.A)(this,"handleToggleHover",Yt=>this.setState({hoverCid:Yt})),(0,C.A)(this,"renderScreenMetaItem",Yt=>{let{depth:Gt,screenMeta:Bn,hasScreenMetaChildren:qt,collapseScreenMetaCidSet:Zt,activeScreenMetaCid:jn,dummySelect:ro}=Yt;const{isHTMLZip:Tn,screenCommentThreadCountMap:bt,theme:Wt,isSquare:wn}=this.props,{keyword:uo}=this.state,{cid:In}=Bn,Dn=jn===In,So=ro.has(In),Qt=!Zt.has(In),Ln=qt||(0,V.Mo)(Bn),{initPaddingLeft:Mn,paddingLeftLayout:Rt}=(0,We.zD)({isPreview:!0,isCommunityPreview:wn});return(0,Ae.jsx)(Oe,{theme:Wt,depth:Gt,screenMeta:Bn,isActive:Dn,isExpand:Qt,isDummySelect:So,showExpander:Ln,actionProps:this.literalActionProps,isHTMLZip:Tn,screenCommentThreadCountMap:bt,paddingLeftLayout:Rt,initPaddingLeft:Mn,highlightKeyword:uo})}),this.state={displayTreeData:Fn.screenTreeData,keyword:"",hoverCid:""},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta,onToggleHover:this.handleToggleHover},this.thumbnailActionProps={onClick:this.handleSelectScreenMeta}}componentDidMount(){this.autoScrollSelected()}componentDidUpdate(Fn,Yt){const{activePageKey:Gt,screenCommentThreadCountMap:Bn,screenTreeData:qt,collapseKeySet:Zt,dispatch:jn}=this.props,{keyword:ro,displayTreeData:Tn,hoverCid:bt}=this.state;if(Fn.screenTreeData!==qt){const[Wt]=(0,V.ZG)(qt,ro);this.setState({displayTreeData:Wt})}if(Fn.activePageKey!==Gt){const Wt=(0,V.e7)(Gt),wn=new Set(Zt);Wt.forEach(uo=>{let{cid:In}=uo;return Zt.has(In)&&wn.delete(In)}),wn.size!==Zt.size&&jn({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:wn}}),this.autoScrollSelected()}Fn.screenCommentThreadCountMap!==Bn&&jn({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set(Zt)}})}render(){const{screenDataMap:Fn={},activePageKey:Yt,isSquare:Gt,collapseKeySet:Bn}=this.props,{keyword:qt}=this.state,{displayTreeData:Zt}=this.state,jn=Bn.size>0,ro=Object.values(Fn).filter(bt=>!bt.hotAttr.asFolder).length,Tn=(0,V.he)([Yt],Zt);return(0,Ae.jsxs)("div",{className:"screen-panel",style:{minHeight:100},children:[(0,Ae.jsx)(Be.A,{onlyView:!1,keyword:qt,hasFoldedScreen:jn,isPreview:!0,isCommunityPreview:Gt,onSearch:this.handleSearch,nonFolderPGCount:ro,onToggleExpanded:this.handleToggleExpanded}),(0,Ae.jsx)("div",{className:"screen-list-container",ref:this.setElementRef,children:Zt&&(0,Ae.jsx)(l.A,{screenTreeData:Zt,activeScreenMetaCid:Yt,collapseScreenMetaCidSet:Bn,dummySelect:Tn,renderScreenMetaItem:this.renderScreenMetaItem})}),(0,Ae.jsx)(O.A,{target:document,onKeyDown:(0,O.t)(this.handleKeyDown,{capture:!0})})]})}}(0,C.A)(rt,"defaultProps",{from:ne.workspace});var Te=i(20640),Ge=i(34860);const ue=new Set(["demo","cS1AXKF5jtrJePbEKiYcdcHosQPdzrk","workout","sI3GY2tDz76RrZ4MGFiIcZTZpAHyluC","UMQzYmknxWeHNvvVyeyJDuSkgyvi6Xw","9Py1L5RdC8ZPRSmnWEt4uuUUSDUAxkM"]),Me=(0,k.Mz)([M.hm,M.Br,M.PL,M.He,M.HA,M.jm,M.Ur,M.O4,M.UR,M.bm,M.mf,M.UB,M.bF,M.M2],(ht,Fn,Yt,Gt,Bn,qt,Zt,jn,ro,Tn,bt,Wt,wn,uo)=>{let{activePageKey:In}=bt,{isSquare:Dn}=wn,So=Bn,Qt=Gt,Ln=Tn.length;if((0,Ge.St)()){const{screen_visible_list:Mn,screen_visible_switch:Rt}=Wt;if(Rt){const{screenTreeData:Qe,screenDataMap:En}=(0,Te.wb)(Mn);So=Qe,Qt=En,Ln=Mn.length}else So=Bn,Ln=Tn.length}return{designOptions:ht,toolbarActiveItem:Fn,isDemo:ue.has(Yt==null?void 0:Yt.accessToken),screenTreeData:So,screenCommentThreadCountMap:qt,activeCid:Zt==null?void 0:Zt.cid,theme:jn,panelHeight:ro,screensCount:Ln,activePageKey:In,projectShare:Wt,isSquare:Dn,screenDataMap:Qt,collapseKeySet:uo}}),Ze=(0,a.Ng)(ht=>Me(ht))(rt);var fe=i(5352),it=i(25912),et=i(98722),Ut=i(20089),G=i(98267),Ht=i(83199),Tt=i(79150),Vt=i(19295),He=i(37361);const rn=re.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasPanel",componentId:"sc-1o2w5ph-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;",";.canvas-sortable-list{position:relative;.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";}.homepage{width:20px;height:20px;color:",";margin-right:6px;}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:hidden;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],ht=>ht.theme.color_bg_white,ve.eP,ve.Aw,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_proto,ht=>ht.theme.color_directory_hover,ht=>ht.theme.color_directory_active,ht=>ht.theme.color_directory_hover,He.u6,ht=>ht.theme.color_text_L3,ht=>ht.theme.color_proto),Lt=re.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1o2w5ph-1"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 24px;&:lang(en){padding:0 9px 0 16px;}&.isCommunityPreview{padding:0 6px 0 14px;}}&.dark{.buttons .sticky-collapse svg path{stroke:rgb(242,244,245);}}.title{color:",";font-weight:500;&:lang(en){width:52px;text-align:center;}}&.has-drag{cursor:grab;}.header-icon{"," &:not(:first-child){margin-left:6px;}}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}"],ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_text_L1,ve.n9);class jt extends q.PureComponent{constructor(Fn){super(Fn),(0,C.A)(this,"handleDown",Yt=>{Yt.stopPropagation();const{height:Gt,onChangeHeight:Bn}=this.props,{isSearching:qt}=this.state;if(qt)return;const Zt=window.innerHeight-310,jn=Yt.clientY,ro=-1,Tn=Wt=>{const uo=(Wt.clientY-jn)*ro,In=Math.max(Math.min(Gt+uo,Zt),P.nG);Bn(In)},bt=()=>{document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",bt)};document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",bt)}),(0,C.A)(this,"handleExitSearch",Yt=>{Yt.stopPropagation(),this.props.onChangeKeyword(""),this.setState({isSearching:!1})}),(0,C.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),this.state={isSearching:!1}}handStopPropagation(Fn){Fn.stopPropagation()}render(){const{isSearching:Fn}=this.state,{keyword:Yt,onChangeKeyword:Gt,isCommunityPreview:Bn,theme:qt}=this.props;return(0,Ae.jsx)(Lt,{className:J()({"has-drag":!Fn},{"is-search-mode":Fn},{isCommunityPreview:Bn},""+qt),onMouseDown:this.handleDown,children:Fn?(0,Ae.jsx)(Vt.A,{keyword:Yt,placeholder:I18N.ScreenPanel.search_screen,onChangeKeyword:Gt,onExitSearch:this.handleExitSearch}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{className:"title",children:I18N.LeftSidePanel.artboard}),(0,Ae.jsx)("div",{className:"buttons",children:(0,Ae.jsx)(Ht.A,{content:I18N.ScreenPanel.element_search,direction:"down",children:(0,Ae.jsx)("a",{className:"header-icon",onMouseDown:this.handStopPropagation,onClick:this.handleOpenSearch,children:(0,Ae.jsx)(Tt.A,{name:"common/search"})})})})]})})}}class mt extends q.PureComponent{constructor(Fn){super(Fn),(0,C.A)(this,"handleHeightChange",Yt=>{this.props.dispatch({type:"preview:panel:set:height",payload:{panelHeight:Yt}})}),(0,C.A)(this,"handleChangeKeyword",Yt=>this.setState({keyword:Yt})),(0,C.A)(this,"handleClick",(Yt,Gt)=>{const{activePageKey:Bn,activeCanvasKey:qt,dispatch:Zt}=this.props,jn=Gt.key;jn!==qt&&(Zt({type:"entry:runner:activate:canvas",payload:{pageKey:Bn,canvasKey:jn}}),Zt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}))}),this.state={keyword:"",hoverCid:""},this.treeProps={onClick:this.handleClick,onMouseEnter:Yt=>{const{cid:Gt}=Yt;this.setState({hoverCid:Gt})},onMouseLeave:()=>{this.setState({hoverCid:""})}}}render(){const{height:Fn,canvasList:Yt,activeCanvasKey:Gt,history:Bn=[],isSquare:qt,theme:Zt}=this.props,{keyword:jn}=this.state,ro=[];Yt.forEach(uo=>{const In=(0,et._k)(uo,sdkStore,(0,et.B8)(jn),!1);In&&ro.push(In)});const Tn=qt?262:310,{initPaddingLeft:bt,paddingLeftLayout:Wt}=(0,We.zD)({isPreview:!0,isCommunityPreview:qt,isCanvasSortableList:!0}),wn=(0,G.Lf)(Bn.at(-1))[1];return(0,Ae.jsxs)(rn,{style:{flexBasis:Fn},children:[(0,Ae.jsx)(fe.A,{placement:"top",value:Fn,min:P.nG,max:window.innerHeight-Tn,onChange:this.handleHeightChange}),(0,Ae.jsx)(jt,{height:Fn,keyword:jn,isCommunityPreview:qt,theme:Zt,onChangeKeyword:this.handleChangeKeyword,onChangeHeight:this.handleHeightChange}),ro&&(0,Ae.jsx)("div",{className:"canvas-scroll-list",children:(0,Ae.jsx)("ul",{className:"canvas-sortable-list",children:ro.map((uo,In)=>(0,Ae.jsx)(it.A,{depth:0,index:In+1,treeNode:uo,hoverItem:"",newSelection:Gt?[Gt]:[],childrenSelect:!1,onlyView:!0,isHomepage:Dn=>wn===Dn,treeProps:this.treeProps,showAction:!1,maxOrderDigit:ro.length,initPaddingLeft:bt,paddingLeftLayout:Wt,isPreview:!0},uo.key))})})]})}}const Jn=(0,k.Mz)([M.De,M.UR,M.mf,M.bF,M.m5],(ht,Fn,Yt,Gt,Bn)=>{let{activePageKey:qt,activeCanvasKey:Zt,history:jn}=Yt,{isSquare:ro}=Gt;return{canvasList:ht?sdkStore.getSubHotItemList(ht.key).filter(bt=>{let{hotAttr:{type:Wt,asOverlay:wn}}=bt;return Wt===Ut.x.Canvas&&!wn}).sort((bt,Wt)=>bt.hotAttr.order-Wt.hotAttr.order):[],height:Fn,activePageKey:qt,activeCanvasKey:Zt,history:jn,isSquare:ro,theme:Bn}}),o=(0,a.Ng)(ht=>Jn(ht))(mt);var so=i(56202);const Et=re.Ay.div.withConfig({displayName:"styles__StyledPreviewPanel",componentId:"sc-1ohehmd-0"})(["position:relative;width:100%;height:calc(100% - 48px);display:flex;flex-direction:column;font-size:12px;color:#525e71;background-color:",";box-shadow:1px 0 0 ",";overflow:hidden;.title{white-space:nowrap;}&.is-uichina{box-shadow:none;}&.is-community{height:100%;}header{.screen-count{color:",';padding:0 3px;font-weight:600;}.toggle-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;color:#8d9ea7;cursor:pointer;.icon{height:12px;}}}.screen-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;.screen-header{height:36px;padding:0 4px 0 10px;display:flex;align-items:center;[type="search"]{flex:1;margin-right:4px;}.header-icon{',";}}.screen-list-container{flex:1;overflow-x:hidden;overflow-y:auto;padding:8px;",";.toggle-comment{position:absolute;right:22px;top:50%;transform:translateX(100%) translateY(-50%);& > .icon{color:",";}& > .icon-comment{margin-right:2px;}}&.thumbnail{padding-left:10px;.toggle-comment{display:none;}}.thumbnail-list{width:calc(100% + 15px);.thumbnail-item{width:105px;margin-right:10px;.image-wrapper{height:105px;}}}}}.no-slice{display:flex;align-items:center;justify-content:center;flex-direction:column;height:calc(100% - 50px);> img{width:93px;margin:-100px 10px 0;}span{color:",";font-size:14px;&:nth-child(2){padding-top:21px;}&:nth-child(3){font-size:12px;padding-top:8px;}&:nth-child(4){padding-top:4px;font-size:12px;}}a{margin-top:31px;text-decoration:none;padding:4px 13px;font-size:12px;color:",";border:1px solid ",";border-radius:3px;background-color:",";&:hover{color:",";background-color:",";}&:active{color:",";background:",";}img{width:14px;display:inline-block;vertical-align:middle;margin-right:5px;}}}"],ht=>ht.theme.color_bg_white,ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_text_L2,ve.n9,ve.eP,ht=>ht.theme.color_text_L3,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_bg_canvas);class Jt extends q.PureComponent{render(){const{isHTMLZip:Fn,isCommunityComboPreview:Yt,isSquare:Gt}=this.props;return(0,Ae.jsxs)(Et,{className:J()("preview-panel",{"is-uichina":(0,so.II)()||(0,so.uf)()},{"is-community":Gt}),children:[(0,Ae.jsx)(Ze,{isHTMLZip:Fn}),!Yt&&(0,Ae.jsx)(o,{})]})}}const Ot=(0,k.Mz)([M.bF,M.ub],(ht,Fn)=>{let{isHTMLZip:Yt,isSquare:Gt}=ht;return{isHTMLZip:Yt,isCommunityComboPreview:Fn,isSquare:Gt}}),dn=(0,a.Ng)(ht=>Ot(ht))(Jt);var Ce=i(23200),Pt=i(64639);const Nn=re.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-1ryw8zy-0"})(["position:relative;top:48px;height:100%;z-index:100;&.isCommunity{top:0;transition:none;}.preview-panel-wrapper{position:absolute;top:0;right:0;height:100%;width:100%;}svg:not(.","):not(.","):not(.",") > *{fill:currentColor;}.nav-back-icon{svg:not(.","):not(.","):not(.",") > *{fill:none;}}.toggle-minimized-button{width:28px;height:28px;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.08);border-radius:4px;position:absolute;left:calc(100% + 26px);bottom:30px;cursor:pointer;color:",";svg.svg-icon{width:28px;height:28px;}&.is-minimized{svg.svg-icon{transform:rotate(180deg);}}&:hover{background:",";}&:active{background:",";}&.isSquare{display:none;}}.border-resizer.right{position:absolute;right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],Pt.Gd,Pt.pf,Pt.FQ,Pt.Gd,Pt.pf,Pt.FQ,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_btn_secondary_active),At=(0,q.memo)(ht=>{let{isMinimized:Fn,leftPaneWidth:Yt,maxLeftPaneWidth:Gt,handleWidthChange:Bn}=ht;return Fn?null:(0,Ae.jsxs)("div",{style:{width:Yt},children:[(0,Ae.jsx)("div",{className:"preview-panel-wrapper",children:(0,Ae.jsx)(dn,{})}),(0,Ae.jsx)(fe.A,{placement:"right",className:"v-resizer",value:Yt,min:tt.CN,max:Gt,onChange:Bn})]})}),on=(0,Ce.$)(At);class no extends q.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleWidthChange",Fn=>{const{dispatch:Yt,currentProject:Gt}=this.props;Yt({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:Fn,projectCid:Gt.cid}})}),(0,C.A)(this,"toggleLeftPane",()=>this.props.dispatch({type:"entry:preview-setting:toggle:isMinimized"}))}render(){const{isFullScreenMode:Fn,isMinimized:Yt,isEmbedV2:Gt,isSquare:Bn,leftPaneWidth:qt,maxLeftPaneWidth:Zt}=this.props;return(0,Ae.jsx)(Nn,{id:"mb-preview-leftpane",className:J()(Fn&&!Gt?"is-fullscreen-mode":"",{isCommunity:Bn&&!Fn}),children:Bn&&!Fn?(0,Ae.jsx)(At,{leftPaneWidth:qt,maxLeftPaneWidth:Zt,isMinimized:Yt,handleWidthChange:this.handleWidthChange}):(0,Ae.jsx)(on,{orientation:"left",toggleFunc:this.toggleLeftPane,isVisible:!Yt,leftPaneWidth:qt,maxLeftPaneWidth:Zt,isMinimized:Yt,handleWidthChange:this.handleWidthChange,guideKey:Xe.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN})})}}const mo=(0,k.Mz)([M.Ph,M.Pf,M.bF,M.E1,M.zo,M.PL],(ht,Fn,Yt,Gt,Bn,qt)=>{const{isEmbedV2:Zt,isSquare:jn}=Yt;return{isFullScreenMode:ht,isMinimized:Fn,isEmbedV2:Zt,isSquare:jn,leftPaneWidth:Gt,maxLeftPaneWidth:window.innerWidth-P.K_-Bn,currentProject:qt}}),mn=(0,a.Ng)(ht=>mo(ht))(no)},14084:(eo,ot,i)=>{"use strict";i.d(ot,{j:()=>P});var a=i(12211),k=i(59025),M=i(4235);const P=(0,a.Mz)([M.p$],C=>(0,k.td)(C))},14794:(eo,ot,i)=>{"use strict";i.d(ot,{v:()=>E});var a=i(38502),k=i(79287),M=i.n(k),P=i(17307),C=i(15515),q=i(81122),Y=i(37342),J=i(5209),O=i(67787);const l=O.Ay.div.withConfig({displayName:"styles__StyledSignUpPrompt",componentId:"sc-1iuu3ne-0"})(["svg.close-btn{cursor:pointer;width:24px;height:24px;border-radius:4px;transition:background-color 0.2s ease-in-out;&:hover{background:#f2f2f2;}&:active{background:#e5e5e5;}}position:absolute;display:flex;align-items:center;flex-direction:row;left:50%;top:78px;transform:translateX(-50%);padding:16px;width:430px;height:64px;background-color:#fff;box-shadow:0 2px 10px rgba(82,94,113,0.1);border-radius:4px;pointer-events:auto;z-index:11;.content{display:flex;flex-direction:column;> span:first-child{font-weight:500;font-size:14px;line-height:14px;color:#333;margin-bottom:4px;}}.login-btn{cursor:pointer;&:lang(en){color:#5303AF;}}button.signup-btn{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:auto;margin-right:12px;padding:8px 15px;white-space:nowrap;width:77px;height:28px;color:#fff;border-radius:6px;font-size:13px;&:lang(en){background:#FFC401;color:#000;&:hover{color:#000;border:1px solid #000;}}}svg.close-btn{bottom:36px;}.logo{height:22px;margin-right:16px;}.login-btn{color:#f33;}button.signup-btn{background:linear-gradient(230.47deg,#ffa41c -0.87%,#fe4141 25.89%,#f4153e 77.87%,#ff27c3 97.94%),#e73828;}"]);var D=i(72214);const m="local_signup_prompt_close",E=f=>{let{withOffset:h}=f;const S=()=>{setTimeout(()=>{if((0,q.BG)()){window.top.location.reload();return}location.reload()},50),(0,Y.JW)("/dashboard/me","_blank","noreferrer")},V=()=>{MB.global.popupHelper.loginAsync({onConfirm:S,type:"signin",source:"proto-preview"}),ENV.IS_MO&&(0,J.lW)("Readonly-Middlie-Signin")},We=()=>{MB.global.popupHelper.loginAsync({onConfirm:S,type:"signup",source:"proto-preview"}),ENV.IS_MO&&(0,J.lW)("Readonly-Middle-Join Now")},re=(0,C.Yt)(m,null,C.qW.Object),ve=re?M()().isAfter(M()(re.expired)):!0,we=I18N.SignUpPrompt.after_sigin_1;return(0,D.jsx)(D.Fragment,{children:ve&&(0,D.jsxs)(l,{withOffset:h,children:[ENV.IS_MO?(0,D.jsx)(P.C,{className:"logo",name:"common/mockitt-logo/new",isColorPure:!0}):(0,D.jsx)("img",{className:"logo",src:"/mb-static/2509/logo-text.svg"}),(0,D.jsxs)("div",{className:"content",children:[(0,D.jsx)("span",{children:I18N.SignUpPrompt.welcome}),(0,D.jsxs)("span",{children:[(0,D.jsx)("span",{className:"login-btn",onClick:V,children:I18N.SignUpPrompt.signin}),(0,D.jsxs)("span",{children:[" ",we]})]})]}),(0,D.jsx)("button",{className:"signup-btn",onClick:We,children:I18N.pComment.signIn}),(0,D.jsx)(P.C,{className:"close-btn",onClick:Ae=>{Ae.currentTarget.parentElement.style.display="none";const Oe=M()().add(1,"week").startOf("week").format("YYYY-MM-DD");(0,C.a0)(m,{expired:Oe},C.qW.Object)},name:"common/close_sm"})]})})}},15170:(eo,ot,i)=>{"use strict";i.d(ot,{M:()=>M,y:()=>k});var a=i(14861);const k=P=>{switch(P){case"iphone":case"ipad":case"apple_watch":return"ios";case"android":return"android";default:return"others"}},M=(P,C)=>{let{width:q,orientation:Y}=C;const J=Y==="landscape";let O="customize";return!J&&P.width===q||J&&P.height===q?O=P.device:Object.entries(a.v2).forEach(l=>{let[D]=l;(!J&&D.width===q||J&&D.height===q)&&(O=D.device)}),!P.template&&!P.combo&&["android","ipad","iphone"].includes(P.device)&&["android","ipad","iphone"].includes(O)}},15399:(eo,ot,i)=>{"use strict";i.d(ot,{F:()=>a});var a=function(k){return k[k.Design=0]="Design",k[k.Experience=1]="Experience",k}(a||{})},15921:(eo,ot,i)=>{"use strict";i.d(ot,{FJ:()=>V,Q4:()=>Y,Qh:()=>we,dP:()=>f,hB:()=>h,hY:()=>lt,lX:()=>S});var a=i(95549),k=i(40461),M=i(55112);const P=(rt,Te)=>[rt,Te].join(","),C=rt=>rt.split(","),q="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNSIgaGVpZ2h0PSIzNSIgZmlsbD0ibm9uZSI+PGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xMTU1XzM4MTc1KSI+PHBhdGggZmlsbD0iIzAwMCIgc3Ryb2tlPSIjZmZmIiBkPSJtMTYuMTU4IDE1LjUyNi0uOTQ5LS4zMTYuMzE3Ljk0OCA0LjM4NyAxMy4xNjMuNDE2IDEuMjQ4LjUxOC0xLjIxIDIuNTg2LTYuMDQ0IDUuOTIyLTIuNDY2IDEuMjMzLS41MTQtMS4yNjctLjQyMi0xMy4xNjMtNC4zODdaIi8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8xMTU1XzM4MTc1IiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHg9Ii0yIiB5PSItMSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9ImhhcmRBbHBoYSIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIvPjxmZU9mZnNldCBkeT0iMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwIi8+PGZlQmxlbmQgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzExNTVfMzgxNzUiLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTE1NV8zODE3NSIgcmVzdWx0PSJzaGFwZSIvPjwvZmlsdGVyPjwvZGVmcz48L3N2Zz4=",Y="MB_AI_SETTER_INJECT_IFRAME_MASK",J="MB_AI_SETTER_INJECT_STYLES",O="is-mb-ai-setting",l="is-mb-setting-no-pointer",D="mb-setting-dnd",m="mb-setting-selected",E="mb-setting-empty",f=function(rt,Te){Te===void 0&&(Te=!0),Te?rt.classList.add(l):rt.classList.remove(l)},h=function(rt,Te){Te===void 0&&(Te=!0),Te?rt.classList.add(m):rt.classList.remove(m)},S=(rt,Te)=>{Te==="none"?rt.removeAttribute(D):rt.setAttribute(D,Te)},V=rt=>{rt.classList.contains(m)&&rt.isContentEditable&&(rt.clientHeight===0||rt.clientWidth===0)?rt.classList.add(E):rt.classList.contains(E)&&!rt.isContentEditable&&rt.classList.remove(E)},We=rt=>{var Te,Ge,ue;(Te=rt.querySelectorAll("#"+J))==null||Te.forEach(Me=>Me.remove()),rt.head.insertAdjacentHTML("beforeend",'\n <style id="'+J+'">\n * {\n cursor: url('+q+') 16 16, auto !important;\n }\n\n [contenteditable="true"]:focus-visible {\n outline: none;\n cursor: text !important;\n }\n\n [contenteditable="plaintext-only"]:focus-visible {\n outline: none;\n cursor: text !important;\n }\n\n input[type="text"]:focus,\n input[type="textarea"]:focus,\n textarea:focus {\n cursor: text !important;\n }\n \n [contenteditable="*"]:empty::after {\n content: " ";\n padding: 0 2px;\n }\n\n .'+O+' {\n [mb-setting-dnd="dragging"] {\n cursor: grabbing !important;\n }\n [mb-setting-dnd="out"] {\n cursor: no-drop !important;\n }\n }\n .'+l+" {\n pointer-events: none !important;\n transition: none !important;\n }\n ."+l+" * {\n transition: none !important;\n }\n ."+m+" {\n transition: none !important;\n\n }\n ."+m+" * {\n transition: none !important;\n }\n ."+m+"."+E+" {\n display: inline-block;\n min-height: 1em;\n min-width: 4px;\n }\n </style>\n "),rt.body&&!rt.body.classList.contains(O)&&rt.body.classList.add(O),(Ge=rt.querySelectorAll("."+l))==null||Ge.forEach(Me=>Me.classList.remove(l)),(ue=rt.querySelectorAll("."+m))==null||ue.forEach(Me=>Me.classList.remove(m))},re=rt=>{var Te,Ge,ue,Me;rt==null||(Te=rt.querySelectorAll("#"+J))==null||Te.forEach(fe=>fe.remove());const Ze=rt==null||(Ge=rt.ownerDocument)==null?void 0:Ge.querySelector("body");Ze!=null&&Ze.classList.contains(O)&&Ze.classList.remove(O),(ue=rt.querySelectorAll("."+l))==null||ue.forEach(fe=>fe.classList.remove(l)),(Me=rt.querySelectorAll("."+m))==null||Me.forEach(fe=>fe.classList.remove(m))},ve=rt=>{var Te;if(!rt||rt.getElementById(Y))return;const Ge=rt.createElement("div");Ge.id=Y,Ge.style.position="fixed",Ge.style.zIndex="1000",Ge.style.pointerEvents="auto",(Te=rt.body)==null||Te.appendChild(Ge)},we=(rt,Te)=>{const Ge=Te.getBoundingClientRect(),ue=rt.getElementById(Y);ue&&(ue.style.width=Ge.width+"px",ue.style.height=Ge.height+"px",ue.style.top=Ge.top+"px",ue.style.left=Ge.left+"px")},Ae=rt=>{var Te;rt&&(rt==null||(Te=rt.querySelectorAll("#"+Y))==null||Te.forEach(Ge=>Ge.remove()))},Oe=rt=>{if(!rt)return;const Te=rt.querySelector("head"),Ge=!!(Te!=null&&Te.querySelector('script[src*="tailwindcss"]')),ue=new Set;Te.querySelectorAll("style").forEach(Me=>{var Ze;Ge&&(Ze=Me.textContent)!=null&&Ze.includes("MIT License | https://tailwindcss.com")||ue.has(Me.textContent)?Me.remove():ue.add(Me.textContent)})},Be=function(rt,Te,Ge){Ge===void 0&&(Ge=rt.length-1),rt.forEach((ue,Me)=>{Me<=Ge&&(ue.saved=Te)})},tt=rt=>rt.map(Te=>({...Te,states:Te.states.map(Ge=>({...Ge,element:void 0}))})),Xe=new Map;let ne=!1;class lt{constructor(Te,Ge){var ue=this;(0,a.A)(this,"undoStack",[]),(0,a.A)(this,"redoStack",[]),(0,a.A)(this,"willCombineMarks",new Map),(0,a.A)(this,"maxLength",50),(0,a.A)(this,"currentCombineMark",""),(0,a.A)(this,"increaceId",0),(0,a.A)(this,"changeListeners",new Set),(0,a.A)(this,"isChanged",!1),(0,a.A)(this,"beforeSave",null),(0,a.A)(this,"getDocument",()=>this.doc),(0,a.A)(this,"readCache",()=>{const Me=Xe.get(this.htmlId);if(!Me)return;const{undoStack:Ze,redoStack:fe}=Me;this.undoStack=Ze,this.redoStack=fe,this.emitListeners()}),(0,a.A)(this,"cache",()=>{!this.undoStack.length&&!this.redoStack.length||Xe.set(this.htmlId,{undoStack:tt(this.undoStack),redoStack:tt(this.redoStack)})}),(0,a.A)(this,"push",function(Me,Ze){Ze===void 0&&(Ze="auto"),ue.undoStack.length>=ue.maxLength&&ue.undoStack.shift(),ue.redoStack.length&&(ue.redoStack=[]);const fe={id:ue.increaceId++,mark:Ze,saved:!1,states:Me,timestamp:Date.now()};ue.undoStack.push(fe),ue.emitListeners(),ue.saveAfterChange()}),(0,a.A)(this,"undo",()=>{if(!this.undoStack.length)return;const Me=this.undoStack.pop();if(Me){for(let Ze=Me.states.length-1;Ze>=0;Ze--){const fe=Me.states[Ze];this.updateElementByState(fe)}this.redoStack.push({...Me}),Be(this.undoStack,!1),Be(this.redoStack,!1),this.emitListeners(),this.saveAfterChange()}}),(0,a.A)(this,"redo",()=>{if(!this.redoStack.length)return;const Me=this.redoStack.pop();if(Me){for(let Ze=0;Ze<Me.states.length;Ze++){const fe=Me.states[Ze];this.updateElementByState(fe,!0)}this.undoStack.push({...Me}),Be(this.undoStack,!1),Be(this.redoStack,!1),this.emitListeners(),this.saveAfterChange()}}),(0,a.A)(this,"updateElementByState",(Me,Ze)=>{if(!this.doc)return;let fe;if(Me.element&&this.doc.contains(Me.element)?fe=Me.element:(fe=(0,k.md)(Me.xpath,this.doc),Me.element=fe),!fe){console.warn("[undo failed] miss xpath element",Me.xpath);return}const it=Ze?Me.toValue:Me.fromValue;Me.type==="style"&&this.setElementStyle(fe,it,!0),Me.type==="text"&&(this.editingState=Me,this.editElementTextContent(fe,"revert",it)),Me.type==="attrs"&&this.setElementAttributes(fe,JSON.parse(it),!0),Me.type==="innerHTML"&&(fe.innerHTML=it)}),(0,a.A)(this,"setElementStyle",(Me,Ze,fe)=>{if(this.doc)try{if(!Me||!this.doc.contains(Me))return;const it=(0,k.wU)(Me),et=Me.getAttribute("style")||"";if(typeof Ze=="string")Me.setAttribute("style",Ze);else for(const Ut in Ze)Me.style[Ut]=Ze[Ut];if(!fe){const Ut=Me.getAttribute("style")||"";if(Ut===et)return;this.appendMarkState({type:"style",xpath:it,element:Me,fromValue:et,toValue:Ut})}}catch(it){console.warn("[setStyle error]",Ze,Me,it)}}),(0,a.A)(this,"setElementAttributes",(Me,Ze,fe)=>{if(this.doc)try{if(!Me||!this.doc.contains(Me))return;const it=(0,k.wU)(Me),et={};let Ut=!1;for(const G in Ze)et[G]=Me.getAttribute(G),et[G]!==Ze[G]&&(Me.setAttribute(G,Ze[G]||""),Ut=!0);!fe&&Ut&&this.appendMarkState({type:"attrs",xpath:it,element:Me,fromValue:JSON.stringify(et),toValue:JSON.stringify(Ze)})}catch(it){console.warn("[setAttrs error]",Ze,Me,it)}}),(0,a.A)(this,"editElementTextContent",function(Me,Ze,fe){var it;if(Ze===void 0&&(Ze="edit"),Me||(Me=(it=ue.editingState)==null?void 0:it.element),!ue.doc||!Me)return;const et=Me.tagName.toLowerCase()==="input";if(Ze==="edit"){const Vt=Me.getAttribute("contenteditable"),He=()=>{var rn;if(!ue.doc||!Me||!ue.editingState)return;const Lt=Me||(0,k.md)(ue.editingState.xpath,ue.doc);Lt&&(Lt.blur(),(rn=ue.doc.getSelection())==null||rn.removeAllRanges(),Vt?Lt.setAttribute("contenteditable",Vt):Lt.removeAttribute("contenteditable"),Lt.removeEventListener("blur",He),ue.editingState&&(ue.editingState.beforeSave=void 0))};ue.editingState={element:Me,xpath:(0,k.wU)(Me),type:"text",fromValue:et?Me.value:Me.innerHTML,toValue:et?Me.value:Me.innerHTML,beforeSave:He},!Me.isContentEditable&&!(0,k.AI)(Me)&&Me.setAttribute("contenteditable","true"),(0,k.Lb)(Me),Me.addEventListener("blur",He);return}if(Ze==="revert"&&ue.editingState&&ue.editingState.element===Me){var Ut,G;if(et){const Vt=fe!=null?fe:ue.editingState.fromValue;Me.value=Vt,Me.setAttribute("value",Vt)}else Me.innerHTML=fe!=null?fe:ue.editingState.fromValue;(Ut=(G=ue.editingState).beforeSave)==null||Ut.call(G),ue.editingState=void 0,ue.saveAfterChange();return}if(Ze==="save"&&ue.editingState&&ue.editingState.element===Me){var Ht,Tt;if(et){const He=Me.value;ue.editingState.toValue=He,Me.setAttribute("value",He)}else ue.editingState.toValue=Me.innerHTML;(Ht=(Tt=ue.editingState).beforeSave)==null||Ht.call(Tt);const Vt=ue.editingState;ue.editingState=void 0,Vt&&Vt.toValue!==Vt.fromValue&&ue.appendMarkState(Vt)}}),(0,a.A)(this,"removeElement",Me=>{const Ze=Me.parentElement;if(!Ze)return;const fe=Ze.innerHTML;Me.remove();const it=Ze.innerHTML;this.appendMarkState({type:"innerHTML",element:Ze,xpath:(0,k.wU)(Ze),fromValue:fe,toValue:it})}),(0,a.A)(this,"appendElement",(Me,Ze)=>{if(!Me||!Ze||Me.ownerDocument!==Ze.ownerDocument)return;const fe=Ze.innerHTML;Ze.append(Me);const it=Ze.innerHTML;this.appendMarkState({type:"innerHTML",element:Ze,xpath:(0,k.wU)(Ze),fromValue:fe,toValue:it})}),(0,a.A)(this,"setElementInnerHTML",(Me,Ze,fe)=>{if(!Me)return;fe||(fe=Me.innerHTML,Me.innerHTML=Ze);const it=Me.innerHTML;this.appendMarkState({type:"innerHTML",element:Me,xpath:(0,k.wU)(Me),fromValue:fe,toValue:it})}),(0,a.A)(this,"replaceElement",(Me,Ze)=>{const fe=Me.parentElement,it=fe.innerHTML;fe.replaceChild(Ze,Me),this.appendMarkState({type:"innerHTML",element:fe,xpath:(0,k.wU)(fe),fromValue:it,toValue:fe.innerHTML})}),(0,a.A)(this,"combineMarkStart",Me=>{this.currentCombineMark&&this.combineMarkEnd(this.currentCombineMark),this.willCombineMarks.set(Me,[]),this.currentCombineMark=Me}),(0,a.A)(this,"combineMarkEnd",function(Me,Ze){Me===void 0&&(Me=ue.currentCombineMark);const fe=[...ue.willCombineMarks.get(Me)||[]];if(Ze?ue.willCombineMarks.set(Me,[]):(ue.willCombineMarks.delete(Me),ue.currentCombineMark=""),fe!=null&&fe.length){const it=fe.reduce((et,Ut)=>{const G=et[et.length-1];return G&&G.type===Ut.type&&G.xpath===Ut.xpath?G.toValue=Ut.toValue:et.push(Ut),et},[]);ue.push(it,Me)}}),(0,a.A)(this,"appendMarkState",function(Me,Ze){if(Ze===void 0&&(Ze=ue.currentCombineMark),ue.willCombineMarks.has(Ze)){var fe;(fe=ue.willCombineMarks.get(Ze))==null||fe.push(Me)}else ue.push([Me],Ze)}),(0,a.A)(this,"saveToCloud",async()=>{var Me,Ze,fe;if(!this.doc||this.beforeSave&&!this.beforeSave())return;this.editingState&&this.editElementTextContent(this.editingState.element,"save"),this.undoStack.forEach(He=>He.states.forEach(rn=>{var Lt;return(Lt=rn.beforeSave)==null?void 0:Lt.call(rn)})),this.redoStack.forEach(He=>He.states.forEach(rn=>{var Lt;return(Lt=rn.beforeSave)==null?void 0:Lt.call(rn)}));const it=(Me=this.doc.querySelector("html"))==null?void 0:Me.cloneNode(!0);if(!it)return;Oe(it),re(it),Ae(it),(Ze=(fe=this.option).removeRejectElement)==null||Ze.call(fe,it);let et=it.outerHTML;if(!et)return;const Ut="<!DOCTYPE html>";if(et.startsWith(Ut)||(et=Ut+"\n"+et),new Blob([et],{type:"text/html; charset=utf-8"}).size>1024*1024*5){M.Ay.warning(I18N.HtmlVisualEditor.save_failed_size,2);return}const Ht=this.undoStack.slice(0),Tt=this.redoStack.slice(0);let Vt=null;try{const He={htmlId:this.htmlId,content:et};if(await this.option.saveFile(He),!this.undoStack.length&&!this.redoStack.length){const rn=Xe.get(this.htmlId);if(!rn)return;Be(Ht.map(Lt=>{let{id:jt}=Lt;return rn.undoStack.find(mt=>mt.id===jt)}).filter(Lt=>!!Lt),!0),Be(Tt.map(Lt=>{let{id:jt}=Lt;return rn.redoStack.find(mt=>mt.id===jt)}).filter(Lt=>!!Lt),!0)}else Be(Ht,!0),Be(Tt,!0);return this.emitListeners(),!0}catch(He){this.emitListeners(He),this.saveAfterChange(),He.code==="ERR_NETWORK"&&(ne=!0),Vt=He}if(Vt)throw new Error(Vt.message)}),(0,a.A)(this,"saveAfterChange",()=>{if(this.isChanged=!0,!this.getSaved()){var Ze;(Ze=this.saveToCloud())==null||Ze.then(fe=>{fe&&ne&&navigator.onLine&&(ne=!1,M.Ay.success(I18N.HtmlVisualEditor.save_success,2))})}}),(0,a.A)(this,"getEnableUndo",()=>this.undoStack.length>0),(0,a.A)(this,"getEnableRedo",()=>this.redoStack.length>0),(0,a.A)(this,"getSaved",()=>{var Me;return this.undoStack.every(Ze=>Ze.saved)&&this.redoStack.every(Ze=>Ze.saved)&&(!this.currentCombineMark||!((Me=this.willCombineMarks.get(this.currentCombineMark))!=null&&Me.length))}),(0,a.A)(this,"isEditingText",()=>!!this.editingState),(0,a.A)(this,"getChanged",()=>this.isChanged),(0,a.A)(this,"setBeforeSave",Me=>{this.beforeSave=Me}),(0,a.A)(this,"addChangeListener",Me=>(this.changeListeners.add(Me),()=>this.changeListeners.delete(Me))),(0,a.A)(this,"emitListeners",Me=>{Array.from(this.changeListeners).forEach(Ze=>Ze(this,Me))}),(0,a.A)(this,"clear",()=>{re(this.doc),Ae(this.doc),this.isChanged=!1,this.undoStack=[],this.redoStack=[],this.changeListeners.clear(),this.doc=void 0}),this.option=Te,this.htmlId=Te.htmlId,Ge&&this.setDocument(Ge)}setDocument(Te){this.doc=Te,We(Te),ve(Te)}}},15974:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>O});var a=i(38502),k=i(67787);const M=k.Ay.div.withConfig({displayName:"styles__StyledBrowserPrompt",componentId:"sc-lp9kv4-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;padding:6px 12px;z-Index:10;position:absolute;height:36px;min-width:460px;bottom:40px;left:50%;transform:translateX(-50%);background:#FFFFFF;box-shadow:0 2px 6px rgba(39,54,78,0.08),0 6px 12px rgba(39,54,78,0.05);border-radius:100px;pointer-events:auto;svg.tik{color:#FF9000;}p{height:12px;font-size:12px;line-height:12px;color:#333333;margin:0 10px;}a{color:#1684fc;&:hover{text-decoration:underline;}}.clickble{cursor:pointer;}.close-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:20px;height:20px;}&:hover{background:#F2F2F2;border-radius:4px;}&:active{background:#E5E5E5;border-radius:4px;}}"]);var P=i(66633),C=i(28990),q=i(51582),Y=i(72214);const J="local_browser_prompt_show";function O(){if((0,P.H8)())return null;const D=Date.parse((0,C.Yt)(J,"",C.qW.String));return D&&D>Date.now()?null:(0,Y.jsx)(l,{})}const l=()=>{const[D,m]=(0,a.useState)(!0),E=()=>{const f=new Date;f.setUTCDate(f.getUTCDate()+1),(0,C.a0)(J,f.toISOString(),C.qW.String),m(!1)};return D&&(0,Y.jsxs)(M,{children:[(0,Y.jsx)(q.A,{name:"sigh",className:"tik"}),(0,Y.jsxs)("p",{children:["\u5F53\u524D\u6D4F\u89C8\u5668\u517C\u5BB9\u6027\u5DEE\uFF0C\u8BF7\u4F7F\u7528 ",(0,Y.jsx)("a",{href:"https://www.google.cn/chrome/",target:"_blank",rel:"noreferrer",children:" Chrome \u6D4F\u89C8\u5668"}),"\u6216 ",(0,Y.jsx)("a",{className:"clickble",href:"https://modao.cc/feature/downloads.html",target:"_blank",rel:"noreferrer",children:"\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF"})," \u4F7F\u7528"]}),(0,Y.jsx)("div",{className:"close-btn",onClick:E,children:(0,Y.jsx)(q.A,{name:"close_sm"})})]})}},16666:(eo,ot,i)=>{"use strict";i.d(ot,{Qt:()=>k,Ue:()=>P});var a=i(19249);const k=C=>(0,a.zi)("/api/payment/v4/coupon/workspace_guide_2203_coupon",{space_type:C}),M=C=>fetchPostJSON("/api/web/v3/account/workspace_guide_days",{org_cid:C}),P=()=>(0,a.SN)("/api/dashboard/v4/users/enable_trial")},16738:(eo,ot,i)=>{"use strict";i.d(ot,{D:()=>P});var a=i(38502),k=i(72214);const M={light:"plain",grey:"core",dark:"core"},P=a.createContext("light"),C=q=>{class Y extends PureComponent{render(){const{forwardedRef:O,...l}=this.props;return _jsx(P.Consumer,{children:D=>React.createElement(q,{ref:O,theme:M[D],...l})})}}return _defineProperty(Y,"propTypes",{forwardedRef:PropTypes.object}),React.forwardRef((J,O)=>_jsx(Y,{...J,forwardedRef:O}))}},16810:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>rn});var a=i(18381),k=i(16454),M=i(95549),P=i(38502),C=i(53732),q=i.n(C),Y=i(15974),J=i(13696),O=i(601),l=i(46147),D=i(67787);const m=D.Ay.div.withConfig({displayName:"styles__StyledMainContent",componentId:"sc-yjqvb1-0"})(["flex:1;position:relative;width:100%;height:100%;pointer-events:none;"]);var E=i(72214);class f extends P.PureComponent{constructor(){super(...arguments),(0,M.A)(this,"handleResize",()=>{const jt=document.querySelector("#preview_scrollBar_viewport");if(!jt)return;const{width:mt,height:Jn,left:o,top:so}=jt.getBoundingClientRect();this.props.dispatch({type:"preview:scrollbar:viewport",payload:{width:mt,height:Jn,left:o,top:so}})})}componentDidMount(){this.handleResize()}render(){return(0,E.jsx)(m,{id:"preview_scrollBar_viewport",children:(0,E.jsx)(l.A,{onResize:this.handleResize})})}}var h=i(16976),S=i(78795),V=i(509),We=i(9135),re=i(14794),ve=i(29372),we=i(12211),Ae=i(69623),Oe=i(39e3),Be=i(3289),tt=i(20640);const Xe=D.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-2qoxmh-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:",";top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;z-index:100;&.isNotLogined{right:-88px;}"],Lt=>Lt.theme.color_bg_white,Lt=>Lt.theme.color_text_L2,Lt=>Lt.isLogined?"translateX(-80%)":"translateX(-48%)",Lt=>Lt.theme.color_bg_border_02,Lt=>Lt.theme.shadow_5),ne=(0,we.Mz)([k.O4,k.H5,k.HW,k.wA,k.UB],(Lt,jt,mt,Jn,o)=>({theme:Lt,isShowSharingManager:jt,currentUser:mt,currentOrg:Jn,currentProjectShare:o}));function lt(){var Lt;const{theme:jt,isShowSharingManager:mt,currentUser:Jn,currentProjectShare:o,currentOrg:so}=(0,a.d4)(no=>ne(no)),Et=!!((Lt=MB.user)!=null&&Lt.id),Jt=MB.currentProject,Ot=(0,a.wA)(),[dn,Ce]=(0,P.useState)(void 0),Pt=no=>{const mo=document.elementFromPoint(no.clientX,no.clientY),mn=document.querySelector("#preview-sharing-box"),ht=no.target.closest("#preview-sharing-box");document.querySelector("#IBOT_MODAL_ROOT").contains(mo)||ht!==null||mn.contains(mo)||no.target.closest(".context-menu-mask")!==null||no.target.closest(".sharing--drop-canvas-list")!==null||no.target.closest(".dropmenu-no-exit")!==null||Ot({type:"entry:preview:toggle:sharingManager"})},{screenDataMap:Nn,screenTreeData:At}=(0,tt.tb)(),on={pageAttrMap:Nn,pageKeyList:Object.keys(Nn),treeData:At};return(0,P.useEffect)(()=>{mt&&Ce(document.getElementById("preview-sharing-box"))},[mt,dn]),!dn||!mt?null:(0,Ae.createPortal)((0,E.jsxs)(Xe,{id:"app-sharing",isLogined:Et,className:q()({isNotLogined:!Et}),children:[(0,E.jsx)(Be.n,{theme:jt,user:Jn,project:Jt,hostType:"proto",org:so,screenMetaList:on,hostSharingData:o}),(0,E.jsx)(Oe.A,{target:document,onClick:(0,Oe.t)(Pt,{capture:!0})})]}),dn)}var rt=i(71123),Te=i(88849),Ge=i(93413),ue=i(88856),Me=i(58053),Ze=i(3149),fe=i(12583),it=i(81122),et=i(33236),Ut=i(15305),G=i(24492);const Ht=D.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-17zn461-0"})(["",";&{width:100%;height:100%;display:flex;flex-direction:column;background:",";a{&.link-highlight,.link-highlight{background:#BAD7FB;}}.svg-icon{",";}.preview-content-container{position:relative;flex:1;display:flex;overflow:hidden;.center-main{position:relative;flex:1;.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}}}&.full-screen{#preview_scrollBar_viewport{transition:opacity 0.5s ease-in-out;}}.download-client-tip{display:flex;justify-content:space-around;align-items:center;position:absolute;left:50%;bottom:26px;transform:translate(-50%);padding:0 12px 0 10px;height:34px;border-radius:22px;background:#fff;box-shadow:0 -2px 30px 0 rgba(39,54,78,0.11);.download-text{color:#415058;margin:0 10px;}span{color:#415058;a{color:",";}}.download-client-tip-icon{font-size:22px;color:",";}.download-client-close-icon{cursor:pointer;color:#c8cdd0;&:hover{color:#8d9ea7;}}}.marign-top-20{margin-top:20px;}&.is-offline-mode{.screen-actions .viewmode,.download-client-tip{display:none;}.event-gift{display:none;}.preview-sub-toolbar{.mode{min-width:initial;.picker{display:none;}}.param{margin-left:0;}}}&.is-uichina{header{background:transparent;.toolbar-main{order:1;flex:unset;flex-basis:240px;.toolbar-main-wrapper{display:none;flex:unset;}}.toolbar-left{flex:1;order:2;justify-content:center;.project-name{text-align:center;margin-left:0;}}.toolbar-right{order:3;}}}@media only screen and (max-width:985px){&.is-uichina{header{.toolbar-main{flex-basis:140px;padding:0;}}}}}"],G.c,Lt=>Lt.theme.color_bg_canvas,Ut.T,Lt=>Lt.theme.color_primary_brand01,Lt=>Lt.theme.color_polyline_normal),Tt=(0,D.DU)([".context-menu-mask{z-index:1000;}"]);var Vt=i(34860);class He extends P.PureComponent{constructor(){super(...arguments),(0,M.A)(this,"abarHandleOnMessage",jt=>{(0,it.cS)(jt,this.props.dispatch)}),(0,M.A)(this,"handleFullScreenChange",()=>{if(Me.A.isFullscreen){(0,Vt.oK)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(Ge.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),1e3);return}this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}),MB.commonGuideHelper.closeGuide(Ge.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(Ge.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN)})}componentDidMount(){Me.A.on("change",this.handleFullScreenChange),(0,it.BG)()&&(0,it.sg)("currentTheme",{theme:this.props.theme}),(0,it.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1)}componentWillUnmount(){Me.A.off("change",this.handleFullScreenChange),(0,it.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}preventDefault(jt){jt.preventDefault()}render(){var jt;const{previewOptions:mt,previewSetting:Jn,user:o,onCloseModal:so,isHiddenToolBar:Et,isPanelPreviewMode:Jt,isQuickPreview:Ot,onLunch:dn,dispatch:Ce}=this.props,{isMobile:Pt,isEmbedV1:Nn,isHTMLZip:At,isUIChina:on,isForum:no}=mt;if(Pt||Nn){const{appVersion:Bn}=Jn,qt=!!Bn;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(rt.A,{}),qt&&(0,E.jsx)(S.A,{}),(0,E.jsx)(V.A,{}),(0,E.jsx)(ue.Ay,{})]})}const{isFullScreenMode:mo}=Jn,mn=!Jt&&!Ot,ht=!Jt&&!Ot,Fn=!Jt&&!Ot,Yt=q()("preview-app",{"is-offline-mode":At,"is-uichina":on||no,"full-screen":mo}),Gt=!Jt&&!Ot&&!ENV.IS_ON_PREMISES&&!At&&!(o!=null&&o.id||(jt=MB)!=null&&(jt=jt.user)!=null&&jt.id);return(0,E.jsxs)(Ht,{className:Yt,onContextMenu:this.preventDefault,children:[Fn&&(0,E.jsx)(fe.Ad,{sheet:Ze.t,viewMode:"device"}),(0,E.jsx)(We.A,{onCloseModal:so,onLunch:dn}),(0,E.jsxs)("div",{id:"preview-content-container",className:"preview-content-container",children:[ht&&(0,E.jsx)(J.A,{}),(0,E.jsxs)("div",{className:"center-main",children:[(0,E.jsx)(h.A,{}),!Ot&&!Jt&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(f,{dispatch:Ce}),(0,E.jsx)("div",{onMouseEnter:()=>Ce({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>Ce({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:q()("preview-footer-toolbar",{hidden:Et}),children:(0,E.jsx)(Te.A,{})})]})]}),mn&&(0,E.jsx)(O.A,{}),(0,E.jsx)(ve.d,{})]}),(0,E.jsxs)("div",{className:"fixed_area",children:[Gt&&(0,E.jsx)(re.v,{}),(0,E.jsx)(lt,{}),(0,E.jsx)(Y.A,{}),!Jt&&(0,E.jsx)(ue.Ay,{})]}),(0,E.jsx)(V.A,{}),!Jt&&!Ot&&(0,E.jsx)(et.r,{}),(0,E.jsx)(Tt,{})]})}}const rn=(0,a.Ng)(Lt=>{const jt=(0,k.ZR)(Lt),mt=(0,k.bF)(Lt),Jn=(0,k.Br)(Lt),o=(0,k.HW)(Lt),so=(0,k.m5)(Lt),Et=(0,k.KR)(Lt),Jt=(0,k.k6)(Lt);return{user:o,mode:Jn,theme:so,previewOptions:mt,previewSetting:jt,isHiddenToolBar:(0,k.kM)(Lt),isPanelPreviewMode:Et,isQuickPreview:Jt}})(He)},16880:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),a.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H13.25C13.6642 11.25 14 11.5858 14 12C14 12.4142 13.6642 12.75 13.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),a.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))})},16958:(eo,ot,i)=>{"use strict";i.d(ot,{H0:()=>k,Jj:()=>P,PE:()=>M});var a=i(67787);const k=(0,a.AH)(["&.mac{&.ios{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.others{font-family:Roboto,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}}"]),M=(0,a.AH)(["&.windows,&.other-os{&.ios{font-family:BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.others{font-family:Roboto,BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}}"]),P=(0,a.AH)(["&.mb-screen{color:#5b6b73;&.others{input,textarea{cursor:text;&[type='radio'],&[type='checkbox']{cursor:pointer;}}}"," ","}"],k,M)},16976:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>dn});var a=i(18381),k=i(12211),M=i(16454),P=i(96986),C=i(4410),q=i(61565),Y=i(95549),J=i(38502),O=i(53732),l=i.n(O),D=i(39e3),m=i(68818),E=i(42715),f=i(67787);const h=f.Ay.div.withConfig({displayName:"styles__StyledShell",componentId:"sc-1kdv61o-0"})(["position:absolute;pointer-events:none;background-size:cover;z-index:4;"]);var S=i(72214);class V extends J.PureComponent{render(){const{page:Pt}=this.props,Nn=(0,E.MR)(Pt.device);if(!Nn)return null;const{shellStyle:At,topOffset:on,leftOffset:no,imageUrl:mo}=(0,E.eC)(Nn,(Pt==null?void 0:Pt.orientation)==="landscape"),mn="url("+((0,m.FM)()?".":"")+mo;return(0,S.jsx)(h,{className:"shell",id:"simulator-shell",style:{...At,top:-on,left:-no,backgroundImage:mn}})}}var We=i(71123),re=i(42520);const ve=(0,J.memo)(Ce=>{let{previewCommentCacheTag:Pt,...Nn}=Ce;return(0,S.jsx)(re.A,{mode:"preview",...Nn},Pt)}),we=(0,k.Mz)([M.X_,M.ER,P.Cb,P.YW,P.uX,P.QV,P.Ou,P.fd,P.RF,P.Li,P.V8,P.VT,M.mf,M.wA,M.O4,P.sT],(Ce,Pt,Nn,At,on,no,mo,mn,ht,Fn,Yt,Gt,Bn,qt,Zt,jn)=>{let{runnerCacheTag:ro}=Bn;return{viewport:{offset:Pt,scale:Ce},activeCommentCid:Nn,wigglingCommentCid:At,editorRawContentObject:on,commentIsEditing:no,editingRecordCid:mo,isCommentDragging:mn,emojiToastStyle:ht,atStyle:Fn,creatingComment:Yt,commentList:Gt,viewType:new URLSearchParams(location.search).get("view_mode"),runnerCacheTag:ro,currentOrg:qt,theme:Zt,previewCommentCacheTag:jn}}),Ae=(0,a.Ng)(Ce=>we(Ce))(ve);var Oe=i(73658),Be=i(1072),tt=i(70248);const Xe=Ce=>{let{scrollTop:Pt,scale:Nn,activePageKey:At,activeCanvasKey:on,STMode:no,scrollLeft:mo,tearStickyCacheTag:mn,basketCanvasMap:ht,screenScrollTopMap:Fn,screenScrollLeftMap:Yt,offset:Gt,dispatch:Bn}=Ce;const[qt,Zt]=(0,J.useState)([]),[jn,ro]=(0,J.useState)([]),[Tn,bt]=(0,J.useState)(new Map);(0,J.useEffect)(()=>{if(!no||!At||!on)return;const uo=(0,Oe.GG)(At,on);Zt(uo)},[no,At,on,mn]),(0,J.useEffect)(()=>{if(!no||!At||!on||!ht)return;const{basketSTList:uo,STBasketMap:In}=(0,Oe.ej)(on,ht);ro(uo),bt(In)},[no,on,At,ht,mn]);const{basketScrollTopMap:Wt,basketScrollLeftMap:wn}=(0,J.useMemo)(()=>{const uo={},In={};return ht&&[...ht.keys()].forEach(Dn=>{let So=Dn;(0,tt.OO)(Dn)&&(So=(0,tt.QL)(Dn).at(-1));const{activeCanvas:Qt}=ht.get(Dn)||{};So&&Qt&&(uo[So]=-Fn[Qt]||0,In[So]=-Yt[Qt]||0)}),{basketScrollTopMap:uo,basketScrollLeftMap:In}},[ht,Fn]);return!no||!At||!on?null:(0,S.jsx)(Be.A,{activeKey:At,pageKey:on,stList:qt,basketSTList:jn,STBasketMap:Tn,scrollTop:Pt,scrollLeft:mo,scale:Nn,dispatch:Bn,tearStickyCacheTag:mn,basketScrollTopMap:Wt,basketScrollLeftMap:wn,offset:Gt},At)},ne=Ce=>{var Pt,Nn;const{activePageKey:At,activeCanvasKey:on,screenScrollTopMap:no={},screenScrollLeftMap:mo={},tearStickyCacheTag:mn,basketCanvasMap:ht,overlayStack:Fn}=(0,M.mf)(Ce),Yt=(0,M.X_)(Ce),Gt=(0,q.Lc)(Ce),Bn=(0,M.A3)(Ce),qt=Fn==null?void 0:Fn[Fn.length-1],Zt=qt?{activePageKey:qt.targetRBPageKey,activeCanvasKey:qt.targetOverlayKey,scrollTop:qt.overlayRelativePosY,scrollLeft:qt.overlayRelativePosX}:{activePageKey:At,activeCanvasKey:on,scrollTop:(Pt=no[on])!=null?Pt:0,scrollLeft:(Nn=mo[on])!=null?Nn:0};return{scale:Yt,STMode:Gt,tearStickyCacheTag:mn,basketCanvasMap:ht,screenScrollTopMap:no,screenScrollLeftMap:mo,offset:Bn,...Zt}},lt=(0,a.Ng)(ne)(Xe);var rt=i(6991);const Te=Ce=>{const{show:Pt,activeTear:Nn,STMode:At,activePageKey:on,activeCanvasKey:no,basketCanvasMap:mo,tearStickyCacheTag:mn,screenScrollTopMap:ht,screenScrollLeftMap:Fn,...Yt}=Ce,[Gt,Bn]=(0,J.useState)(new Map);(0,J.useEffect)(()=>{if(!At||!on||!no||!mo)return;const{STBasketMap:jn}=(0,Oe.ej)(no,mo);Bn(jn)},[At,no,on,mo,mn]);const{basketScrollTopMap:qt,basketScrollLeftMap:Zt}=(0,J.useMemo)(()=>{const jn={},ro={};return mo&&[...mo.keys()].forEach(Tn=>{let bt=Tn;(0,tt.OO)(Tn)&&(bt=(0,tt.QL)(Tn).at(-1));const{activeCanvas:Wt}=mo.get(Tn)||{};bt&&Wt&&(jn[bt]=-(ht==null?void 0:ht[Wt])||0,ro[bt]=-(Fn==null?void 0:Fn[Wt])||0)}),{basketScrollTopMap:jn,basketScrollLeftMap:ro}},[mo,ht]);return!Pt||!Nn?null:(0,S.jsx)(rt.s,{mode:"preview",activeTear:Nn,STBasketMap:Gt,activePageKey:on,activeCanvasKey:no,basketScrollTopMap:qt,basketScrollLeftMap:Zt,...Yt})},Ge=(0,k.Mz)([M.X_,q.nC,q.yc,M.mf,q.Lc],(Ce,Pt,Nn,At,on)=>{let{activePageKey:no,activeCanvasKey:mo,screenScrollTopMap:mn,screenScrollLeftMap:ht,basketCanvasMap:Fn,tearStickyCacheTag:Yt,overlayStack:Gt}=At;if(!Pt)return{show:!1};const Bn=Gt[Gt.length-1];return Bn?{show:!0,activeTear:Pt,scale:Ce,isReadonly:!0,tearOffset:Nn,activePageKey:Bn==null?void 0:Bn.targetRBPageKey,activeCanvasKey:Bn==null?void 0:Bn.targetOverlayKey,scrollTop:Bn==null?void 0:Bn.overlayRelativePosY,scrollLeft:Bn==null?void 0:Bn.overlayRelativePosX,basketCanvasMap:Fn,screenScrollTopMap:mn,screenScrollLeftMap:ht,STMode:on,tearStickyCacheTag:Yt}:{show:!0,activeTear:Pt,scale:Ce,isReadonly:!0,tearOffset:Nn,activePageKey:no,activeCanvasKey:mo,scrollTop:mn[mo],scrollLeft:ht[mo],basketCanvasMap:Fn,screenScrollTopMap:mn,screenScrollLeftMap:ht,STMode:on,tearStickyCacheTag:Yt}}),ue=(0,a.Ng)(Ce=>Ge(Ce))(Te);var Me=i(36449),Ze=i(76805),fe=i(31561),it=i(85449),et=i(63986),Ut=i.n(et),G=i(20089),Ht=i(89989);const Tt=Ce=>{var Pt,Nn,At,on,no;const mo=(0,it.ll)();if(!mo)return;const mn=sdkStore.getHotItem(Ce[0]),ht=(0,M.Ur)(mo),{activePageKey:Fn,activeCanvasKey:Yt}=(0,M.mf)(mo),Gt=(0,M.KR)(mo),Bn=(0,M.Mo)(mo),qt=(0,M.hM)(mo),Zt=(0,tt.OO)(Yt)?(0,tt.QL)(Yt).pop():Yt;if((mn==null?void 0:mn.hotAttr.type)==="rResBunch"&&(mn==null?void 0:mn.hotAttr.bunch)===G.x.RbPage){const No=mo.container.current.screenDataMap[Ce[0]];if(!No)MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),!Fn&&qt&&MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(sdkStore.isTrashed(Ce[0]))MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(mn){if(!Ut()(mn==null?void 0:mn.hotAttr,No==null?void 0:No.hotAttr)){var jn,ro,Tn,bt;if(((No==null||(jn=No.hotAttr)==null?void 0:jn.name)!==(mn==null||(ro=mn.hotAttr)==null?void 0:ro.name)||(No==null||(Tn=No.hotAttr)==null?void 0:Tn.zIndex)!==(mn==null||(bt=mn.hotAttr)==null?void 0:bt.zIndex))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),(ht==null?void 0:ht.cid)===Ce[0]){var Wt,wn,uo,In,Dn,So,Qt,Ln,Mn,Rt,Qe,En,qn,Hn,Yn,oo;if((No==null||(Wt=No.hotAttr)==null?void 0:Wt.deviceOrientation)!==(mn==null||(wn=mn.hotAttr)==null?void 0:wn.deviceOrientation)||(No==null||(uo=No.hotAttr)==null?void 0:uo.device)!==(mn==null||(In=mn.hotAttr)==null?void 0:In.device)||(No==null||(Dn=No.hotAttr)==null?void 0:Dn.deviceW)!==(mn==null||(So=mn.hotAttr)==null?void 0:So.deviceW)||(No==null||(Qt=No.hotAttr)==null?void 0:Qt.deviceH)!==(mn==null||(Ln=mn.hotAttr)==null?void 0:Ln.deviceH)||(No==null||(Mn=No.hotAttr)==null?void 0:Mn.deviceScroll)!==(mn==null||(Rt=mn.hotAttr)==null?void 0:Rt.deviceScroll)||Gt&&((No==null||(Qe=No.hotAttr)==null?void 0:Qe.scroll)!==(mn==null||(En=mn.hotAttr)==null?void 0:En.scroll)||(No==null||(qn=No.hotAttr)==null?void 0:qn.w)!==(mn==null||(Hn=mn.hotAttr)==null?void 0:Hn.w)||(No==null||(Yn=No.hotAttr)==null?void 0:Yn.h)!==(mn==null||(oo=mn.hotAttr)==null?void 0:oo.h))){var To,po,Oo,Qo,ea,_n,Un,cn,nn,Zn,ho,Xn;MB.webpackInterface.store.dispatch({type:"entry:preview:reload"}),((No==null||(To=No.hotAttr)==null?void 0:To.deviceOrientation)!==(mn==null||(po=mn.hotAttr)==null?void 0:po.deviceOrientation)||(No==null||(Oo=No.hotAttr)==null?void 0:Oo.device)!==(mn==null||(Qo=mn.hotAttr)==null?void 0:Qo.device)||(No==null||(ea=No.hotAttr)==null?void 0:ea.deviceW)!==(mn==null||(_n=mn.hotAttr)==null?void 0:_n.deviceW)||(No==null||(Un=No.hotAttr)==null?void 0:Un.deviceH)!==(mn==null||(cn=mn.hotAttr)==null?void 0:cn.deviceH)||(No==null||(nn=No.hotAttr)==null?void 0:nn.w)!==(mn==null||(Zn=mn.hotAttr)==null?void 0:Zn.w)||(No==null||(ho=No.hotAttr)==null?void 0:ho.h)!==(mn==null||(Xn=mn.hotAttr)==null?void 0:Xn.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}(ht==null?void 0:ht.cid)===Ce[0]&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"})}}else if((mn==null||(Pt=mn.hotAttr)==null?void 0:Pt.type)===G.x.Canvas){const No=mo.container.current.folderTreeData.widgetStore.getNode(Ce[0]);if(!No)mn.sup===ht.cid&&(Zt?MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}):MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}));else if(No.sup===ht.cid){if(sdkStore.isTrashed(Ce[0]))Zt===Ce[0]?MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}):(MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),No.hotAttr.asOverlay&&MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:Ce[0]}}));else if(!Ut()(mn==null?void 0:mn.hotAttr,No==null?void 0:No.hotAttr)){var Mo,Zo,ia,xa,fa;if(((No==null||(Mo=No.hotAttr)==null?void 0:Mo.name)!==(mn==null||(Zo=mn.hotAttr)==null?void 0:Zo.name)||(No==null||(ia=No.hotAttr)==null?void 0:ia.order)!==(mn==null||(xa=mn.hotAttr)==null?void 0:xa.order))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),No!=null&&(fa=No.hotAttr)!=null&&fa.asOverlay){var zo;if(!(mn!=null&&(zo=mn.hotAttr)!=null&&zo.isVisible))MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:Ce[0]}});else{var Ra,Sa,ln,ta;((No==null||(Ra=No.hotAttr)==null?void 0:Ra.w)!==(mn==null||(Sa=mn.hotAttr)==null?void 0:Sa.w)||(No==null||(ln=No.hotAttr)==null?void 0:ln.h)!==(mn==null||(ta=mn.hotAttr)==null?void 0:ta.h))&&MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay",payload:{targetOverlayKey:Ce[0]}})}}if(Zt===Ce[0]){var ko,bo,aa,ma,dr,ni,Ir,$a,Va,Ha,or,gi,Qr,Qi,rs,Li;if(!Ut()(No==null||(ko=No.hotAttr)==null?void 0:ko.fill,mn==null||(bo=mn.hotAttr)==null?void 0:bo.fill)||(No==null||(aa=No.hotAttr)==null?void 0:aa.orientation)!==(mn==null||(ma=mn.hotAttr)==null?void 0:ma.orientation)||(No==null||(dr=No.hotAttr)==null?void 0:dr.w)!==(mn==null||(ni=mn.hotAttr)==null?void 0:ni.w)||(No==null||(Ir=No.hotAttr)==null?void 0:Ir.h)!==(mn==null||($a=mn.hotAttr)==null?void 0:$a.h)||(No==null||(Va=No.hotAttr)==null?void 0:Va.stickyHeaderHeight)!==(mn==null||(Ha=mn.hotAttr)==null?void 0:Ha.stickyHeaderHeight)||(No==null||(or=No.hotAttr)==null?void 0:or.stickyFooterHeight)!==(mn==null||(gi=mn.hotAttr)==null?void 0:gi.stickyFooterHeight)||Gt&&((No==null||(Qr=No.hotAttr)==null?void 0:Qr.x)!==(mn==null||(Qi=mn.hotAttr)==null?void 0:Qi.x)||(No==null||(rs=No.hotAttr)==null?void 0:rs.y)!==(mn==null||(Li=mn.hotAttr)==null?void 0:Li.y))){var ns,Es,ys,sr,mi,Bt;MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}),ht.device==="none"&&((No==null||(ns=No.hotAttr)==null?void 0:ns.orientation)!==(mn==null||(Es=mn.hotAttr)==null?void 0:Es.orientation)||(No==null||(ys=No.hotAttr)==null?void 0:ys.w)!==(mn==null||(sr=mn.hotAttr)==null?void 0:sr.w)||(No==null||(mi=No.hotAttr)==null?void 0:mi.h)!==(mn==null||(Bt=mn.hotAttr)==null?void 0:Bt.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}}}else(0,Oe.yT)(mn==null||(Nn=mn.hotAttr)==null?void 0:Nn.type)?MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}):(mn==null||(At=mn.hotAttr)==null?void 0:At.type)===G.x.WAudio?(MB.webpackInterface.store.dispatch({type:"entry:runner:cleanup:audio"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{audioList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(mn==null||(on=mn.hotAttr)==null?void 0:on.type)===G.x.WVideo?(MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{videoList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(mn==null||(no=mn.hotAttr)==null?void 0:no.type)===G.x.WBasket&&Gt&&((0,tt.OO)(Bn)?(0,tt.QL)(Bn).pop():Bn)===Ce[0]&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}));MB.webpackInterface.store.dispatch({type:"entry:runner:update:overlay:stack",payload:{keyItemUpdated:Ce[0]}});let vn=!1,Io=!1;if(Ce.forEach(No=>{const _a=sdkStore.getHotItem(No);(0,Oe.yT)(_a==null?void 0:_a.hotAttr.type)?vn=!0:(_a==null?void 0:_a.hotAttr.type)===G.x.WBasket&&(Io=!0)}),vn&&MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}),Io){const No=qt?Fn:Yt;No&&MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:under",payload:{key:No}}),MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:in:overlay"})}},Vt=Ce=>{Tt(Ce)},He={repaint:Ce=>{let{type:Pt,payload:Nn}=Ce;Pt===fe.a&&Vt(Nn.changedKeyList)}},rn=(0,Ze.nF)(()=>{const Ce=(0,it.ll)();!Ce||!(0,P.sI)(Ce)||MB.webpackInterface.store.dispatch({type:"comment:update:state",payload:{previewCommentCacheTag:Math.random()}})},.5*1e3),Lt={repaint:Ce=>{let{type:Pt,payload:Nn}=Ce;Pt===Ht.a&&rn()}},jt=(0,k.Mz)([M.bF,P.sI],(Ce,Pt)=>{let{isHTMLZip:Nn,isSquare:At}=Ce;return{isHTMLZip:Nn,isSquare:At,isInCommentMode:Pt}}),mt=(0,J.memo)(Ce=>{let{isHTMLZip:Pt,isSquare:Nn,isInCommentMode:At}=Ce;const on=no=>{Lt.repaint(no)};return(0,J.useEffect)(()=>{if(!(Nn||Pt))return At&&rootSdk.cmtStore.subscribe(on),()=>{At&&rootSdk.cmtStore.unsubscribe(on)}},[Pt,Nn,At]),null}),Jn=(0,a.Ng)(jt)(mt);var o=i(55804),so=i(69594);const Et=(0,f.Ay)(o.A).withConfig({displayName:"styles__StyledSimulatorContainer",componentId:"sc-19u8nby-0"})(["transition:right 0.5s ease-in-out;z-index:0;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;overflow:hidden;&.wait-create-comment{.zoom-area .screen-content{cursor:",";*{pointer-events:none !important;}}}&.is-dragging{cursor:grabbing;}&.is-try-drag{cursor:grab;}.screen-viewport{position:relative;.zoom-area{position:absolute;width:100%;height:100%;}.no-zoom-area{position:absolute;}}"],so.M.comment);class Jt extends J.PureComponent{constructor(){super(...arguments),(0,Y.A)(this,"state",{isCmdDown:!1,multiple:1,isDragging:!1}),(0,Y.A)(this,"handleScaleAndOffsetChange",(Pt,Nn,At)=>{const{dispatch:on,scale:no}=this.props;At-no>=0?(on({type:"entry:preview:set:scale",payload:{scale:At}}),At<=400&&At>=20&&this.handleOffSet({x:Pt,y:Nn})):(on({type:"entry:preview:set:scale",payload:{scale:At}}),At<=400&&At>=20&&on({type:"entry:preview:zoom-out:center-position",payload:{nextScale:At,oldScale:no}}))}),(0,Y.A)(this,"handleOffsetChange",(Pt,Nn)=>{this.handleOffSet({x:Pt,y:Nn})}),(0,Y.A)(this,"handleKeyDown",Pt=>{var Nn,At,on,no,mo,mn;const{dispatch:ht,isInCommentMode:Fn}=this.props,Yt=((Nn=(At=Pt.target).matches)==null?void 0:Nn.call(At,"input"))||((on=(no=Pt.target).matches)==null?void 0:on.call(no,"textarea"))||((mo=(mn=Pt.target).matches)==null?void 0:mo.call(mn,"[contenteditable]:focus"))||Pt.target.ariaLabel==="rdw-editor";Pt.keyCode===32&&(Yt||(Pt.preventDefault(),ht({type:"preview:set:key:flags",payload:{isSpaceDown:!0}}))),Pt.keyCode===16&&!Yt&&(Pt.preventDefault(),ht({type:"preview:set:key:flags",payload:{isShiftDown:!0}})),Pt.keyCode===27&&!Yt&&(Pt.preventDefault(),Fn&&ht({type:"entry:comment:create:esc"})),(Pt.keyCode===8||Pt.keyCode===46)&&!Yt&&(Pt.preventDefault(),Fn&&ht({type:"enter:comment:shortcut:del"})),(Pt.keyCode===91||Pt.keyCode===93||Pt.keyCode===224)&&this.setState({isCmdDown:!0})}),(0,Y.A)(this,"handleKeyUp",Pt=>{this.props.dispatch({type:"preview:reset:key:flags"}),(Pt.keyCode===91||Pt.keyCode===93||Pt.keyCode===224)&&this.setState({isCmdDown:!1})}),(0,Y.A)(this,"handleOffSet",Pt=>{const{STRenderArea:Nn,scale:At,dispatch:on,offset:no,STMode:mo,isInCommentMode:mn,leftPaneWidth:ht,isMinimized:Fn}=this.props,[Yt,Gt]=Nn,Bn=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),{top:qt,bottom:Zt,left:jn,right:ro}=Bn,{clientHeight:Tn,clientWidth:bt}=document.body,Wt=jn-(Fn?0:ht),wn=bt-ro-(mn?240:0),uo=mo?Yt*At/100:0,In=(mo?Gt*At/100:0)+48,Dn=Pt.x-no.x,So=Pt.y-no.y;Dn>0?Wt+Dn<=uo?on({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Pt.x}}}):Wt+Dn>uo&&Wt<uo&&on({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Pt.x-(Wt+Dn-uo)}}}):Dn<0&&(wn-Dn<=uo?on({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Pt.x}}}):wn-Dn>uo&&wn<uo&&on({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Pt.x+(wn-Dn-uo)}}})),So>0?qt+So<=In?on({type:"preview:set:canvas:offset:dev",payload:{offset:{y:Pt.y}}}):qt+So>In&&qt<In&&on({type:"preview:set:canvas:offset:dev",payload:{offset:{y:Pt.y-(qt+So-In)}}}):So<0&&(Tn-Zt-So<=In?on({type:"preview:set:canvas:offset:dev",payload:{offset:{y:Pt.y}}}):Tn-Zt-So>In&&Tn-Zt<In&&on({type:"preview:set:canvas:offset:dev",payload:{offset:{y:Pt.y+(Tn-Zt-So-In)}}}))}),(0,Y.A)(this,"handleMouseDown",Pt=>{const{dispatch:Nn,isSpaceDown:At}=this.props;if(Pt.button===1||Pt.button===0&&At){this.setState({isDragging:!0});const on=Pt.target.closest(".panel");if(on&&(on.offsetWidth<on.scrollWidth||on.offsetHeight<on.scrollHeight))return;this.initDraggingCanvas(Pt)}else Nn({type:"entry:comment:mousedown",payload:{event:Pt}})}),(0,Y.A)(this,"handleMouseMove",Pt=>{const{isInCommentMode:Nn,dispatch:At}=this.props,{isDragging:on}=this.state;Nn&&!on&&At({type:"entry:comment:create:mousemove",payload:{event:Pt}}),At({type:Me.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:Pt,from:"preview"}})}),(0,Y.A)(this,"handleMouseUp",Pt=>{const{isInCommentMode:Nn,dispatch:At}=this.props,{isDragging:on}=this.state;Nn&&!on&&At({type:"entry:comment:create:mouseup",payload:{event:Pt}}),on&&this.setState({isDragging:!1})}),(0,Y.A)(this,"handlePreventWheel",Pt=>{var Nn,At;return!!((Nn=Pt.target)!=null&&(At=Nn.closest)!=null&&At.call(Nn,"#simulator #app"))})}componentDidUpdate(Pt,Nn){const{dispatch:At}=this.props;Pt.runnerCacheTag!==this.props.runnerCacheTag&&At({type:"entry:preview:set:shellContainer"})}initDraggingCanvas(Pt){const Nn=Pt.clientX,At=Pt.clientY,{offset:on}=this.props,{x:no,y:mo}=on,mn=Fn=>{const Yt={x:no+(Fn.clientX-Nn),y:mo+(Fn.clientY-At)};this.handleOffSet(Yt)},ht=Fn=>{document.removeEventListener("mousemove",mn),document.removeEventListener("mouseup",ht)};document.addEventListener("mousemove",mn),document.addEventListener("mouseup",ht)}render(){const{scale:Pt,page:Nn,showShell:At,isInCommentMode:on,offset:no,isSpaceDown:mo,isQuickPreview:mn,isPanelPreviewMode:ht,isPreviewCombo:Fn}=this.props,{isDragging:Yt}=this.state,Gt={transform:"scale("+Pt/100+")"},Bn={top:(100-Pt)/2+"%",left:(100-Pt)/2+"%"},{w:qt,h:Zt,orientation:jn}=Nn,ro=jn==="landscape",[Tn,bt]=ro?[Zt,qt]:[qt,Zt],Wt={width:Tn,height:bt,minWidth:Tn,minHeight:bt,transform:"matrix(1, 0, 0, 1, "+Math.round(no.x)+", "+Math.round(no.y)+")"},wn=l()("simulator-container",{"wait-create-comment":on&&!Yt},{"is-dragging":Yt},{"is-try-drag":mo&&!Yt}),uo=!mn&&!ht&&!Fn,In=At&&uo;return(0,S.jsxs)(Et,{x:no.x,y:no.y,scale:Pt,id:"simulator-container",className:wn,isDisabled:!uo,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMouseMove,preventWheelEvent:this.handlePreventWheel,children:[(0,S.jsxs)("div",{className:"screen-viewport",style:Wt,children:[(0,S.jsxs)("div",{className:"zoom-area",style:Gt,children:[(0,S.jsx)(We.A,{isShellShow:In}),In&&(0,S.jsx)(V,{page:Nn}),uo&&(0,S.jsx)(lt,{})]}),uo&&(0,S.jsxs)("div",{className:"no-zoom-area",style:Bn,children:[on&&(0,S.jsx)(Ae,{}),(0,S.jsx)(ue,{})]})]},"1"),(0,S.jsx)(Jn,{}),(0,S.jsx)(D.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const Ot=(0,k.Mz)([M.St,M.Kv,M.m5,M.KR,M.mf,M.Mh,M.ub,M.hM,P.sI,M.PN,M.A3,q.Lc,M.p$,M.E1,M.Pf,M._v,M.k6,M.Mo],(Ce,Pt,Nn,At,on,no,mo,mn,ht,Fn,Yt,Gt,Bn,qt,Zt,jn,ro,Tn)=>{var bt,Wt;let{activePageKey:wn,activeCanvasKey:uo,activeWidgetKey:In,runnerCacheTag:Dn}=on;const So=sdkStore.getHotItem(wn);let Qt={};if(At){if(Tn){const Qe=sdkStore.getHotItem(Tn);Qe&&(Qt={...Qe.hotAttr,orientation:"portrait"})}}else if(So){const{hotAttr:{deviceW:Qe,deviceH:En,deviceOrientation:qn,device:Hn}}=So;if(Qt={w:Qe,h:En,orientation:qn,device:Hn},Hn==="none"&&uo){const Yn=sdkStore.getHotItem(uo);Qt=Hn==="none"?{...Qt,w:Yn==null?void 0:Yn.hotAttr.w,h:Yn==null?void 0:Yn.hotAttr.h}:{...Yn.hotAttr}}if(mo||mn){let{w:Yn,h:oo}=(0,C.lY)(So,sdkStore,!0);if(In&&!sdkStore.isTrashed(In)){var Ln,Mn;const To=sdkStore.getHotItem(In);Yn=To==null||(Ln=To.hotAttr)==null?void 0:Ln.w,oo=To==null||(Mn=To.hotAttr)==null?void 0:Mn.h}Qt={device:"customize",orientation:"portrait",w:Yn,h:oo}}}const Rt=((bt=Qt)==null?void 0:bt.device)&&!["customize","none"].includes((Wt=Qt)==null?void 0:Wt.device);return{page:Qt,scale:Ce,isImmersive:Pt,theme:Nn,showShell:no&&!At&&Rt,runnerCacheTag:Dn,isInCommentMode:ht,STRenderArea:Fn,offset:Yt,STMode:Gt,isSpaceDown:Bn,leftPaneWidth:qt,isMinimized:Zt,shellContainer:jn,isQuickPreview:ro,isPanelPreviewMode:At,isPreviewCombo:mn}}),dn=(0,a.Ng)(Ce=>Ot(Ce))(Jt)},17730:function(){(function(eo,ot){eo.Shake=ot(eo,eo.document)})(typeof window<"u"?window:this,function(eo,ot){"use strict";function i(a){if(this.hasDeviceMotion="ondevicemotion"in eo,this.options={threshold:15,timeout:1e3},typeof a=="object")for(var k in a)a.hasOwnProperty(k)&&(this.options[k]=a[k]);if(this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null,typeof ot.CustomEvent=="function")this.event=new ot.CustomEvent("shake",{bubbles:!0,cancelable:!0});else if(typeof ot.createEvent=="function")this.event=ot.createEvent("Event"),this.event.initEvent("shake",!0,!0);else return!1}return i.prototype.reset=function(){this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null},i.prototype.start=function(){this.reset(),this.hasDeviceMotion&&eo.addEventListener("devicemotion",this,!1)},i.prototype.stop=function(){this.hasDeviceMotion&&eo.removeEventListener("devicemotion",this,!1),this.reset()},i.prototype.devicemotion=function(a){var k=a.accelerationIncludingGravity;if(k){var M,P,C=0,q=0,Y=0;if(this.lastX===null&&this.lastY===null&&this.lastZ===null){this.lastX=k.x,this.lastY=k.y,this.lastZ=k.z;return}C=Math.abs(this.lastX-k.x),q=Math.abs(this.lastY-k.y),Y=Math.abs(this.lastZ-k.z),(C>this.options.threshold&&q>this.options.threshold||C>this.options.threshold&&Y>this.options.threshold||q>this.options.threshold&&Y>this.options.threshold)&&(M=new Date,P=M.getTime()-this.lastTime.getTime(),P>this.options.timeout&&(eo.dispatchEvent(this.event),this.lastTime=new Date)),this.lastX=k.x,this.lastY=k.y,this.lastZ=k.z}},i.prototype.handleEvent=function(a){if(typeof this[a.type]=="function")return this[a.type](a)},i})},18102:eo=>{const ot=q=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[q.APOS_STRING_MODE,q.QUOTE_STRING_MODE]}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],M=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],P=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(q){const Y=ot(q),J="and or not only",O={className:"variable",begin:"\\$"+q.IDENT_RE},l=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],D="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[q.QUOTE_STRING_MODE,q.APOS_STRING_MODE,q.C_LINE_COMMENT_MODE,q.C_BLOCK_COMMENT_MODE,Y.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+D,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+D,className:"selector-id"},{begin:"\\b("+i.join("|")+")"+D,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+k.join("|")+")"+D},{className:"selector-pseudo",begin:"&?::("+M.join("|")+")"+D},Y.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:J,attribute:a.join(" ")},contains:[q.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+l.join("|")+"))\\b"},O,q.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[Y.HEXCOLOR,O,q.APOS_STRING_MODE,q.CSS_NUMBER_MODE,q.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+P.join("|")+")\\b",starts:{end:/;|$/,contains:[Y.HEXCOLOR,O,q.APOS_STRING_MODE,q.QUOTE_STRING_MODE,q.CSS_NUMBER_MODE,q.C_BLOCK_COMMENT_MODE,Y.IMPORTANT],illegal:/\./,relevance:0}}]}}eo.exports=C},19167:(eo,ot,i)=>{var a=i(46269),k=i(71882),M=i(92898),P=parseFloat,C=Math.min,q=Math.random;function Y(J,O,l){if(l&&typeof l!="boolean"&&k(J,O,l)&&(O=l=void 0),l===void 0&&(typeof O=="boolean"?(l=O,O=void 0):typeof J=="boolean"&&(l=J,J=void 0)),J===void 0&&O===void 0?(J=0,O=1):(J=M(J),O===void 0?(O=J,J=0):O=M(O)),J>O){var D=J;J=O,O=D}if(l||J%1||O%1){var m=q();return C(J+m*(O-J+P("1e-"+((m+"").length-1))),O)}return a(J,O)}eo.exports=Y},19199:(eo,ot,i)=>{"use strict";i.d(ot,{J7:()=>D,PF:()=>S,tt:()=>f,xO:()=>h,xz:()=>E});var a=i(79287),k=i.n(a),M=i(86594),P=i(7198),C=i(32286),q=i(56202),Y=i(43838),J=i(88670),O=i(78915),l=i(94456);const D=()=>MB.getSelectionItems().length===0,m=async()=>{const V={clientX:MB.clientX,clientY:MB.clientY},We=await(0,M.LD)({isShowPrompt:!1});await(0,Y.$H)({hasNotice:!1})&&We!=null&&We.data?MB.action("entry:paste:items:at",{clientPos:V,hasPrompt:!0}):MB.action("entry:prepare:paste:by:contextmenu",{cursorPos:V})},E={keys:{tab:()=>{if(document.activeElement===document.body)return!1},enter:()=>{MB.action("entry:enter:key"),(0,C.L)("enter")},f2:()=>{MB.action("entry:enter:key"),(0,C.L)("f2")},"command+shift+h":()=>{MB.action("entry:toggle:visible"),(0,C.L)("command+shift+h")},"ctrl+shift+h":()=>{MB.action("entry:toggle:visible"),(0,C.L)("ctrl+shift+h")},left:()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,C.L)("left")},"alt+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,C.L)("alt+left")},right:()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,C.L)("right")},"alt+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,C.L)("alt+right")},up:()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,C.L)("up")},"alt+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,C.L)("alt+up")},down:()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,C.L)("down")},"alt+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,C.L)("alt+down")},"shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,C.L)("shift+left")},"alt+shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,C.L)("alt+shift+left")},"shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,C.L)("shift+right")},"alt+shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,C.L)("alt+shift+right")},"shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,C.L)("shift+up")},"alt+shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,C.L)("alt+shift+up")},"shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,C.L)("shift+down")},"alt+shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,C.L)("alt+shift+down")},"command+c":()=>{D()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,M.P8)(),(0,C.L)("command+c"))},"ctrl+c":()=>{D()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,M.P8)(),(0,C.L)("ctrl+c"))},"command+d":()=>{D()||(MB.action("entry:duplicate:items",{shift:!1}),(0,C.L)("command+d"))},"ctrl+d":()=>{D()||(MB.action("entry:duplicate:items",{shift:!1}),(0,C.L)("ctrl+d"))},"command+shift+d":()=>{D()||(MB.action("entry:duplicate:items",{shift:!0}),(0,C.L)("command+shift+d"))},"ctrl+shift+d":()=>{D()||(MB.action("entry:duplicate:items",{shift:!0}),(0,C.L)("ctrl+shift+d"))},"command+shift+v":()=>{m(),(0,C.L)("command+shift+v")},"ctrl+shift+v":()=>{m(),(0,C.L)("ctrl+shift+v")},"command+x":()=>{D()||(MB.action("entry:cut:items"),(0,M.P8)(),(0,C.L)("command+x"))},"ctrl+x":()=>{D()||(MB.action("entry:cut:items"),(0,M.P8)(),(0,C.L)("ctrl+x"))},backspace:()=>{var V,We,re,ve;(V=MB.shortKeyCallbackBucket)!=null&&(We=V.deleteItaNodeCallback)!=null&&We.call(V)||(re=MB.shortKeyCallbackBucket)!=null&&(ve=re.deleteVarNodeCallback)!=null&&ve.call(re)||(MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,C.L)("backspace"))},del:()=>{var V,We,re,ve;(V=MB.shortKeyCallbackBucket)!=null&&(We=V.deleteItaNodeCallback)!=null&&We.call(V)||(re=MB.shortKeyCallbackBucket)!=null&&(ve=re.deleteVarNodeCallback)!=null&&ve.call(re)||(MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,C.L)("delete"))},"command+shift+l":()=>{MB.action("entry:toggle:lock"),(0,C.L)("command+shift+l")},"ctrl+shift+l":()=>{MB.action("entry:toggle:lock"),(0,C.L)("ctrl+shift+l")},"command+g":()=>{MB.action("entry:group:items"),(0,C.L)("command+g")},"ctrl+g":()=>{MB.action("entry:group:items"),(0,C.L)("ctrl+g")},"command+shift+g":()=>{MB.action("entry:ungroup:items"),(0,C.L)("command+shift+g")},"ctrl+shift+g":()=>{MB.action("entry:ungroup:items"),(0,C.L)("ctrl+shift+g")},"command+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,C.L)("command+alt+l")},"ctrl+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,C.L)("ctrl+alt+l")},"command+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,C.L)("command+alt+c")},"ctrl+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,C.L)("ctrl+alt+c")},"command+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,C.L)("command+alt+r")},"ctrl+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,C.L)("ctrl+alt+r")},"command+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,C.L)("command+alt+t")},"ctrl+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,C.L)("ctrl+alt+t")},"command+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,C.L)("command+alt+m")},"ctrl+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,C.L)("ctrl+alt+m")},"command+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,C.L)("command+alt+b")},"ctrl+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,C.L)("ctrl+alt+b")},"command+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,C.L)("command+alt+h")},"ctrl+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,C.L)("ctrl+alt+h")},"command+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,C.L)("command+alt+u")},"ctrl+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,C.L)("ctrl+alt+u")},"command+alt+up":()=>{MB.action("entry:items:forward"),(0,C.L)("command+alt+up")},"ctrl+alt+up":()=>{MB.action("entry:items:forward"),(0,C.L)("ctrl+alt+up")},"command+alt+down":()=>{MB.action("entry:items:backward"),(0,C.L)("command+alt+down")},"ctrl+alt+down":()=>{MB.action("entry:items:backward"),(0,C.L)("ctrl+alt+down")},"command+shift+up":()=>{MB.action("entry:items:send:front"),(0,C.L)("command+shift+up")},"ctrl+shift+up":()=>{MB.action("entry:items:send:front"),(0,C.L)("ctrl+shift+up")},"command+shift+down":()=>{MB.action("entry:items:send:back"),(0,C.L)("command+shift+down")},"ctrl+shift+down":()=>{MB.action("entry:items:send:back"),(0,C.L)("ctrl+shift+down")},"command+;":()=>{MB.action("entry:expand:all:screen"),(0,C.L)("command+;")},"ctrl+;":()=>{MB.action("entry:expand:all:screen"),(0,C.L)("ctrl+;")},"command+'":()=>{MB.action("entry:unExpand:all:screen"),(0,C.L)("command+''")},"ctrl+'":()=>{MB.action("entry:unExpand:all:screen"),(0,C.L)("ctrl+'")},"`":()=>{(0,C.L)("`")},"\xB7":()=>{(0,C.L)("`")},"[, ]":()=>{k()().isBefore("2021-11-12 23:59:59")&&MB.notice({text:I18N.Common.brackets_key_update_tips.replace("%key%",'<span class="key">'+((0,q.uF)()?"Ctrl":"\u2318")+"</span>")}),(0,C.L)("[, ]")},"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")},"command+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,C.L)("command+s")},"ctrl+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,C.L)("ctrl+s")},"command+k":()=>{MB.action(J.X.AIToggleOpenSemantic)},"ctrl+k":()=>{MB.action(J.X.AIToggleOpenSemantic)},1:()=>{MB.action("entry:number:key",{key:1}),(0,C.L)("1")},2:()=>{MB.action("entry:number:key",{key:2}),(0,C.L)("2")},3:()=>{MB.action("entry:number:key",{key:3}),(0,C.L)("3")},4:()=>{MB.action("entry:number:key",{key:"4"}),(0,C.L)("4")},5:()=>{MB.action("entry:number:key",{key:5}),(0,C.L)("5")},6:()=>{MB.action("entry:number:key",{key:6}),(0,C.L)("6")},7:()=>{MB.action("entry:number:key",{key:7}),(0,C.L)("7")},8:()=>{MB.action("entry:number:key",{key:8}),(0,C.L)("8")},"command+a":()=>{MB.action("entry:select:all"),(0,C.L)("command+a")},"ctrl+a":()=>{MB.action("entry:select:all"),(0,C.L)("ctrl+a")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+z":()=>{MB.action("entry:undo-stack:undo"),(0,C.L)("command+z")},"ctrl+z":()=>{MB.action("entry:undo-stack:undo"),(0,C.L)("ctrl+z")},"command+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,C.L)("command+shift+z")},"ctrl+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,C.L)("ctrl+shift+z")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("ctrl+alt+a")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},"command+alt+v":()=>{D()||(MB.action("entry:paste:items:properties"),(0,C.L)("command+alt+v"))},"ctrl+alt+v":()=>{D()||(MB.action("entry:paste:items:properties"),(0,C.L)("ctrl+alt+v"))},"command+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,C.L)("command+b \u9009\u4E2D\u6574\u4F53")},"ctrl+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,C.L)("command+b \u9009\u4E2D\u6574\u4F53")},"command+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,C.L)("command+i \u9009\u4E2D\u6574\u4F53")},"ctrl+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,C.L)("command+i \u9009\u4E2D\u6574\u4F53")},"command+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,C.L)("command+u \u9009\u4E2D\u6574\u4F53")},"ctrl+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,C.L)("command+u \u9009\u4E2D\u6574\u4F53")},"command+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,C.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,C.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"command+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,C.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,C.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"command+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,C.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,C.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"shift+/":()=>{MB.action("entry:shortcut:undoable:items:set:attr:border")},i:()=>{l.w[(0,l.y)()]()(We=>{let{sRGBHex:re}=We;return MB.action("entry:i:key",{color:re})}),(0,C.L)("i")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},c:()=>{MB.action("entry:keyC"),(0,C.L)("c")},e:()=>{MB.action("entry:elbow:isInElbowMode:toggle"),MB.action("entry:ST:STMode:disable"),MB.action("set:quick-create-widget",{widget:null})}},priority:P.zu.Normal,isGlobal:!1},f={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},c:()=>{MB.action("entry:comment:toggle",{onlyView:!0}),MB.action("entry:observe:dom:size:update-viewport-rect"),MB.action(O.GO.toggleInspectMode(!1)),MB.action(O.GO.toggleHandMode(!1)),MB.action(O.GO.select([])),MB.action({type:"elbow:update",payload:{isInElbowMode:!1}}),MB.action({type:"entry:ST:STMode:disable"}),(0,C.L)("c")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("ctrl+alt+a")}},priority:P.zu.Normal,isGlobal:!1},h={keys:{esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")}},priority:P.zu.Normal,isGlobal:!1},S={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")}},priority:P.zu.Normal,isGlobal:!1}},19295:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(95549),k=i(38502),M=i(88463),P=i(79150),C=i(67787);const q=C.Ay.div.withConfig({displayName:"styles__StyledSearchComponent",componentId:"sc-tgw1rb-0"})(["display:flex;width:100%;height:100%;align-items:center;padding:0 12px 0 8px;.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.searchBar{height:28px;border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}.WorkspaceInput{border-radius:13px;}"],O=>O.theme.color_text_L1,O=>O.theme.color_bg_border_02,O=>O.theme.color_bg_white,O=>O.theme.color_text_L3,O=>O.theme.color_bg_white,O=>O.theme.color_text_link_normal);var Y=i(72214);class J extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"setSearchBarRef",l=>this.searchBar=l)}componentDidMount(){this.searchBar&&this.searchBar.focus()}render(){const{keyword:l,placeholder:D,onChangeKeyword:m,onExitSearch:E}=this.props;return(0,Y.jsxs)(q,{children:[(0,Y.jsx)(P.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:E}),(0,Y.jsx)(M.A,{className:"searchBar",ref:this.setSearchBarRef,value:l,placeholder:D,onChange:m})]})}}},19713:(eo,ot,i)=>{"use strict";i.d(ot,{FH:()=>He,LH:()=>Vt,Ly:()=>rn,YU:()=>Me,_H:()=>ne,bB:()=>Et,k1:()=>ue,kB:()=>o,qk:()=>Ht,rn:()=>so,t$:()=>Xe,wp:()=>Ge});var a=i(41589),k=i.n(a),M=i(20089),P=i(69986),C=i(86493),q=i(69815),Y=i(28068),J=i(41815),O=i(44916),l=i(9521),D=i(43838),m=i(39563),E=i(9680);const f=[M.x.WRichText,M.x.WRect,M.x.WOval,M.x.WPolygon,M.x.WStar,M.x.WSticky,M.x.WVector,M.x.WTriangle,M.x.WMindNode,M.x.wFlowClosed,M.x.WFlowOpened,M.x.WButton],h=[M.x.WPlaceholder,M.x.WMTooltip],S=[M.x.WButtonSolid,M.x.WMTextInput,M.x.WMTextArea],V=[M.x.WDropMenu,M.x.WNavigationMenu,M.x.WCollapse,M.x.WSegmentedControl,M.x.WTabs,M.x.WMobileTabBars,M.x.WSelectionControl,M.x.WTree],We=h.concat(S),re=/(>)[^>]+(?=<[/]?\w+.*>)/g,ve=[],we="xAxis",Ae="series",Oe="highOption",Be="highText",tt=Jt=>Jt.length===0||Jt==="<p></p>"?"<p>&nbsp;</p>":Jt,Xe=Jt=>Jt.toLowerCase(),ne=Jt=>{const Ot={"<":"&lt;",">":"&gt;","&":"&amp;"};return Jt.replace(/(<|>|&)/g,dn=>Ot[dn])},lt=function(Jt,Ot){return Ot===void 0&&(Ot="-"),Jt.toString().split(Ot).map(dn=>isNaN(parseInt(dn))?dn:parseInt(dn))},rt=Jt=>Jt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Te=Jt=>{const Ot=rt(Jt);return new RegExp(Ot,"ig")},Ge=Jt=>{let{isCurrentScreen:Ot,currentScreenCid:dn}=Jt;const Ce=(Pt,Nn,At,on)=>{var no;const mo=[];if(!Pt)return mo;const{key:mn,sub:ht,hotAttr:Fn}=Pt,Yt=(no=Fn.bunch)!=null?no:Fn.type;if([M.x.RbPage,M.x.Canvas,M.x.WWrap].includes(Yt)){const Gt=ht.map(qt=>sdkStore.getHotItem(qt)).sort((qt,Zt)=>{var jn,ro;return((jn=Zt.hotAttr)==null?void 0:jn.zIndex)-((ro=qt.hotAttr)==null?void 0:ro.zIndex)}),Bn=Yt===M.x.RbPage?Pt.key:Nn;mo.push(...Gt.map(qt=>[...Ce(qt,Bn,At,on)]).flat(1/0))}else if(Yt===M.x.WBasket&&Fn.basket==="bMuban"){const Gt=ht.map(qt=>sdkStore.getHotItem(qt)).sort((qt,Zt)=>{var jn,ro;return((jn=Zt.hotAttr)==null?void 0:jn.zIndex)-((ro=qt.hotAttr)==null?void 0:ro.zIndex)}),Bn=Nn;mo.push(...Gt.map(qt=>[...Ce(qt,Bn,!0)]).flat(1/0))}else if(Yt===M.x.WMind&&ht.length){const Gt=sdkStore.getHotItem(Fn.refContentKey);mo.push(...Ce(Gt,Nn,At,mn))}else if(Yt===M.x.WMindNode){if(At&&Fn.basket==="bDanli")return mo;mo.push({...Pt,pageKey:Nn,mindKey:on});const Gt=ht.map(Bn=>sdkStore.getHotItem(Bn)).sort((Bn,qt)=>{var Zt,jn;return((Zt=Bn.hotAttr)==null?void 0:Zt.order)-((jn=qt.hotAttr)==null?void 0:jn.order)});mo.push(...Gt.map(Bn=>[...Ce(Bn,Nn,At,on)]).flat(1/0))}else{if(At&&Fn.basket==="bDanli")return mo;mo.push({...Pt,pageKey:Nn})}return mo};if(Ot){const Pt=sdkStore.getHotItem(dn);return Ce(Pt,dn,!1)}else return sdkStore.getSubHotItemList("B@main").filter(Nn=>{var At;return((At=Nn.hotAttr.bunch)!=null?At:Nn.hotAttr.type)===M.x.RbPage}).sort((Nn,At)=>{var on,no;return((on=At.hotAttr)==null?void 0:on.zIndex)-((no=Nn.hotAttr)==null?void 0:no.zIndex)}).map(Nn=>[...Ce(Nn,Nn.key,!1)]).flat(1/0)},ue=Jt=>{let{widgetList:Ot,searchValue:dn,findWidgetList:Ce,findWidgetPanelList:Pt,mubans:Nn,parent:At=null}=Jt,on=!0;on&&Ot.forEach(no=>{const{hotAttr:{type:mo,refRBPageKey:mn},pageKey:ht,mindKey:Fn}=no;if(mo===M.x.WBasket&&no.hotAttr.basket==="bDanli"){const Yt=Ge({isCurrentScreen:!0,currentScreenCid:mn});ue({widgetList:Yt,searchValue:dn,findWidgetList:Ce,findWidgetPanelList:Pt,mubans:Nn,parent:{widget:no,pageKey:ht}})}else{const Yt=Me(no,dn);if((Yt==null?void 0:Yt.length)>0&&(Yt.forEach((Gt,Bn)=>{Ce.push({widget:no,parent:At,index:Bn,pageKey:ht,mindKey:Fn})}),At)){const{widget:{hotAttr:{type:Gt,refRBPageKey:Bn,basket:qt}}}=At,Zt=Gt===M.x.WBasket&&qt==="bMuban";on=!Zt||!Nn.has(Bn),Zt&&Nn.add(Bn),!Zt&&Pt.push(At)}}})},Me=function(Jt,Ot,dn){dn===void 0&&(dn=0);const{hotAttr:{type:Ce,textV0:Pt,textV1:Nn,tableData:At,chartData:on,optionData:no}}=Jt;if(f.includes(Ce)){Ot=ne(Ot);const mo=(0,q.YZ)(Nn,!0);return Ut({str:mo,matchValue:Ot,replaceEndIndex:dn})}else if(We.includes(Ce)){const mo=Pt.text,mn=S.includes(Ce);return Ot=S.includes(Ce)?Ot:ne(Ot),Ut({str:mo,matchValue:Ot,pureHTML:mn,replaceEndIndex:dn})}else{if(Ce===M.x.WMSelect)return Pt.text.split(/\n/).map((mn,ht)=>Ut({str:mn,matchValue:Ot,pureHTML:!0}).map(Yt=>ht+"-"+Yt)).flat();if(Ce===M.x.WTable){const mo=[];if(Ot=ne(Ot),(0,m.SS)(Jt.hotAttr))for(const[mn,ht]of Object.entries(Jt.hotAttr.cells)){const Fn=Ut({str:ht.data,matchValue:Ot,pureHTML:!0});Fn.length>0&&mo.push(Fn.map(Yt=>mn+"-"+Yt))}else At.data.forEach((ht,Fn)=>{ht.forEach((Yt,Gt)=>{const Bn=Ut({str:Yt,matchValue:Ot,pureHTML:!0});Bn.length>0&&mo.push(Bn.map(qt=>Fn+"-"+Gt+"-"+qt))})});return mo.flat()}else if(Ce===M.x.WChart){const{xAxis:mo,series:mn}=on,ht=mn.map(Gt=>{let{name:Bn}=Gt;return Bn}),Fn=mo.map((Gt,Bn)=>Ut({str:Gt,matchValue:Ot,pureHTML:!0}).map(Zt=>we+"-"+Bn+"-"+Zt)),Yt=ht.map((Gt,Bn)=>Ut({str:Gt,matchValue:Ot,pureHTML:!0}).map(Zt=>Ae+"-"+Bn+"-"+Zt));return Fn.concat(Yt).flat()}else if(V.includes(Ce)){const mo=Ce===M.x.WDropMenu?Pt.text:"",mn=[];G(no,mn,Ot);const ht=Ut({str:mo,matchValue:Ot,pureHTML:!0});return mn.push(ht.map(Fn=>Be+"/"+Fn)),mn.flat()}}return ve},Ze=function(Jt,Ot,dn){return dn===void 0&&(dn=0),Xe(Jt).indexOf(Xe(Ot),dn)},fe=function(Jt,Ot,dn){dn===void 0&&(dn=0);let Ce=[],Pt=Ze(Jt,Ot,dn);for(;Pt!==-1;)Ce.push(Pt),Pt=Ze(Jt,Ot,Pt+Ot.length);return Ce=Ce.sort((Nn,At)=>Nn-At),Ce},it=Jt=>{const Ot=[...Jt.matchAll(re)];return Ot&&Ot.length>0?Ot.map(dn=>({...dn,0:dn[0].replace(">",""),index:dn.index+1})):ve},et=function(Jt,Ot,dn){dn===void 0&&(dn=0);const Ce=it(Jt),Pt=[];if(Ce&&Ce.length>0){const Nn=Xe(Ot.substring(0,1)),At=Xe(Ot.substring(Ot.length-1)),on=Ce.map((Gt,Bn)=>Xe(Gt[0]).includes(Nn)?Bn:null).filter(Gt=>Gt!==null),no=Ce.map((Gt,Bn)=>Xe(Gt[0]).includes(At)?Bn:null).filter(Gt=>Gt!==null),mo=[],mn=[];on.forEach(Gt=>{const Bn=Ce[Gt][0];fe(Bn,Nn).forEach(Zt=>{mo.push(Gt+"-"+Zt)})}),no.forEach(Gt=>{const Bn=Ce[Gt][0];fe(Bn,At).forEach(Zt=>{mn.push(Gt+"-"+Zt)})});const ht=[];mo.forEach(Gt=>{const Bn=lt(Gt);mn.forEach(qt=>{const Zt=lt(qt);Zt[0]===Bn[0]?Zt[1]>=Bn[1]&&ht.push({start:Gt,end:qt}):Zt[0]>Bn[0]&&ht.push({start:Gt,end:qt})})});const Fn=ht.map(Gt=>{let{start:Bn,end:qt}=Gt;const Zt=lt(Bn),jn=lt(qt),ro={contents:[],startIndex:Zt[1],endIndex:jn[1]};return Ce.forEach((Tn,bt)=>{bt>=Zt[0]&&bt<=jn[0]&&ro.contents.push(Tn)}),ro}),Yt=[];Fn.forEach(Gt=>{const{contents:Bn,startIndex:qt,endIndex:Zt}=Gt;if(Bn.length===1)Xe(Bn[0][0].substring(qt,Zt+1))===Xe(Ot)&&Yt.push(Gt);else{const jn=Bn.reduce((ro,Tn,bt)=>bt===0?ro+Tn[0].substring(qt):bt===Bn.length-1?ro+Tn[0].substring(0,Zt+1):ro+Tn[0],"");Xe(jn)===Xe(Ot)&&Yt.push(Gt)}}),Yt.forEach(Gt=>{const Bn=Gt.contents[0].index+Gt.startIndex;if(Bn>=dn)if(Pt.length>0){const{contents:qt,endIndex:Zt}=Pt[Pt.length-1],jn=qt[qt.length-1].index+Zt;Bn>jn&&Pt.push(Gt)}else Pt.push(Gt)})}return Pt},Ut=Jt=>{let{str:Ot,matchValue:dn,pureHTML:Ce=!1,replaceEndIndex:Pt=0}=Jt,Nn=[];return Ot&&(Ce||it(Ot).length===0?Nn=fe(Ot,dn,Pt):Nn=et(Ot,dn,Pt)),Nn},G=function(Jt,Ot,dn,Ce){Ce===void 0&&(Ce=""),Jt.forEach((Pt,Nn)=>{let{data:At,children:on}=Pt;const no=Ce.length>0?Ce+"-"+Nn:""+Nn,mo=Ut({str:At.name,matchValue:dn,pureHTML:!0});Ot.push(mo.map(mn=>Oe+"/"+no+"/"+mn)),on&&on.length>0&&G(on,Ot,dn,no)})},Ht=Jt=>{let{hotItem:Ot,matchValue:dn,replaceValue:Ce,current:Pt}=Jt;const{hotAttr:{type:Nn,textV0:At,textV1:on,tableData:no,chartData:mo,optionData:mn,refVars:ht}}=Ot,Fn=(0,E.m5)(Ot.hotAttr);if(f.includes(Nn)){const qt=(0,q.YZ)(on,!0);Ce=ne(Ce);const{newHtml:Zt,replaceEndIndex:jn}=jt(qt,Pt,dn,Ce),ro=Nn===M.x.WTear||Nn===M.x.WSticky?O.a.COMMON:Nn===M.x.WRichText?O.a.TEXT:O.a.BASIC,Tn=(0,J.A)({html:Zt,componentType:ro,isSearchReplace:!0}),bt=Y.z6.createFromBlockArray(Tn.contentBlocks,Tn.entityMap),wn=Y.$t.createWithContent(bt).getCurrentContent(),uo=(0,Y.dM)(wn),In=(0,C.qn)(uo),Dn={...Ot.hotAttr,textV1:In},So=wn.getPlainText();return Fn&&So!==(0,E.U_)(Fn)&&(Dn.refVars={...ht,textV1:(0,E.JK)(ht==null?void 0:ht.textV1,"text")}),Nn===M.x.WRichText&&(0,l.PQ)(Dn),{newItem:{...Ot,hotAttr:Dn},replaceEndIndex:jn}}else if(h.includes(Nn)){const qt=At.text;if(Ce=ne(Ce),isNaN(Pt)){const{newHtml:Zt,replaceEndIndex:jn}=jt(qt,Pt,dn,Ce),ro=tt(Zt),Tn={...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:ro}};return Fn&&ro!==(0,E.U_)(Fn)&&(Tn.refVars={...ht,textV0:(0,E.JK)(ht==null?void 0:ht.textV0,"text")}),{newItem:{...Ot,hotAttr:Tn},replaceEndIndex:jn}}else{const{newData:Zt,replaceEndIndex:jn}=mt(qt,Pt,dn,Ce),ro=tt(Zt),Tn={...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:ro}};return Fn&&ro!==(0,E.U_)(Fn)&&(Tn.refVars={...ht,textV0:(0,E.JK)(ht==null?void 0:ht.textV0,"text")}),{newItem:{...Ot,hotAttr:Tn},replaceEndIndex:jn}}}else if(Nn===M.x.WMSelect){const qt=At.text.split(/\n/),Zt=lt(Pt),ro=Jn({data:qt,indexArr:Zt,matchValue:dn,replaceValue:Ce}).join("\n"),Tn={...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:ro}};return Fn&&ro!==(0,E.U_)(Fn)&&(Tn.refVars={...ht,textV0:(0,E.JK)(ht==null?void 0:ht.textV0,"text")}),{newItem:{...Ot,hotAttr:Tn}}}else if(Nn===M.x.WTable){const qt=lt(Pt);if(Ce=ne(Ce),dn=ne(dn),(0,m.SS)(Ot.hotAttr)){const Zt={...Ot.hotAttr.cells},jn={...ht==null?void 0:ht.cells},ro={...Ot.hotAttr,cells:Zt,refVars:{...Ot.hotAttr.refVars,cells:jn}};for(const[Tn,bt]of Object.entries(Zt))if(Tn===""+qt[0]){var Yt;const{newData:Wt}=mt(bt.data||"",qt[1],dn,Ce);Zt[Tn].data=Wt;const wn=jn==null||(Yt=jn[Tn])==null?void 0:Yt.data;wn&&Wt!==(0,E.U_)(wn)&&(jn[Tn].data=void 0)}return{newItem:{...Ot,hotAttr:ro}}}else{const jn=no.data.map((ro,Tn)=>Tn===qt[0]?ro.map((bt,Wt)=>{if(Wt===qt[1]){const{newData:wn}=mt(bt,qt[2],dn,Ce);return wn}return bt}):ro);return{newItem:{...Ot,hotAttr:{...Ot.hotAttr,tableData:{...Ot.hotAttr.tableData,data:jn}}}}}}else if(Nn===M.x.WChart){const{xAxis:qt,series:Zt}=mo,jn=lt(Pt),ro=jn[0]===we;let Tn=[];return ro?Tn=Jn({data:qt,indexArr:jn.slice(1),matchValue:dn,replaceValue:Ce}):Tn=Zt.map((bt,Wt)=>{if(Wt===jn[1]){const{newData:wn}=mt(bt.name,jn[2],dn,Ce);return{...bt,name:wn}}return bt}),ro?{newItem:{...Ot,hotAttr:{...Ot.hotAttr,chartData:{...Ot.hotAttr.chartData,xAxis:Tn}}}}:{newItem:{...Ot,hotAttr:{...Ot.hotAttr,chartData:{...Ot.hotAttr.chartData,series:Tn}}}}}else if(S.includes(Nn)){const qt=At.text,{newData:Zt,replaceEndIndex:jn}=mt(qt,Pt,dn,Ce),ro={...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:Zt}};return Fn&&Zt!==(0,E.U_)(Fn)&&(ro.refVars={...ht,textV0:(0,E.JK)(ht==null?void 0:ht.textV0,"text")}),{newItem:{...Ot,hotAttr:{...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:Zt}}},replaceEndIndex:jn}}else if(V.includes(Nn)){const qt=Pt.split("/");if(qt[0]===Oe){const Zt=k()(mn),jn=k()(ht==null?void 0:ht.optionData)||[],ro=qt[1],Tn=lt(ro);if(Tn.length===1){var Gt;const Wt=Zt[Tn[0]],{newData:wn}=mt(Wt.data.name,parseInt(qt[2]),dn,Ce);Zt[Tn[0]].data={...Zt[Tn[0]].data,name:wn};const uo=(Gt=jn[Tn[0]])==null||(Gt=Gt.data)==null?void 0:Gt.name;uo&&wn!==(0,E.U_)(uo)&&(jn[Tn[0]].data.name=void 0)}else{var Bn;let Wt;const wn=(Dn,So)=>{const{newData:Qt}=mt(Dn.data.name,parseInt(qt[2]),dn,Ce);Dn.data={...Dn.data,name:Qt},Wt=Qt};(0,P.PM)({newOptionData:Zt,pathArr:Tn.slice(),onUpdate:wn});const uo=Tn.reduce((Dn,So,Qt)=>{if(Qt===0)return Dn[So];if(Qt<=Tn.length-1){var Ln;return Dn==null||(Ln=Dn.children)==null?void 0:Ln[So]}},jn),In=uo==null||(Bn=uo.data)==null?void 0:Bn.name;In&&Wt!==(0,E.U_)(In)&&(uo.data.name=void 0)}return{newItem:{...Ot,hotAttr:{...Ot.hotAttr,optionData:Zt,refVars:{...ht,optionData:jn}}}}}else{const Zt=At.text,{newData:jn}=mt(Zt,qt[1],dn,Ce),ro={...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:jn}};return Fn&&jn!==(0,E.U_)(Fn)&&(ro.refVars={...ht,textV0:(0,E.JK)(ht==null?void 0:ht.textV0,"text")}),{newItem:{...Ot,hotAttr:ro}}}}return null},Tt=(Jt,Ot)=>{const{widget:{key:dn},pageKey:Ce}=Jt,{widget:{key:Pt},pageKey:Nn}=Ot;return dn===Pt&&Ce===Nn},Vt=(Jt,Ot,dn)=>{const Ce=Jt.find((At,on)=>on===Ot-1),Nn=Jt.filter(At=>Tt(Ce,At)).filter(At=>{let{index:on}=At;return on!==Ce.index}).map((At,on)=>({...At,newIndex:on}));return Jt.filter((At,on)=>on!==Ot-1).map(At=>{const{index:on}=At,no=Nn.find(mo=>{let{index:mn,...ht}=mo;return Tt(At,ht)&&on===mn});return no?{...At,index:no.newIndex,widget:dn}:At})},He=Jt=>{const Ot=new Map;return Jt.forEach(dn=>{const{widget:{key:Ce},pageKey:Pt}=dn,Nn=Pt+"-"+Ce;if(Ot.has(Nn))Ot.get(Nn).push(dn);else{const At=[dn];Ot.set(Nn,At)}}),[...Ot.values()]},rn=Jt=>{let{hotItem:Ot,matchValue:dn,replaceValue:Ce,indexs:Pt}=Jt,Nn=Te(dn);const{hotAttr:{type:At,textV0:on,tableData:no,chartData:mo,optionData:mn}}=Ot;if(f.concat(h).concat(S).includes(At)){let ht=Ot;const Fn=Pt.length;let Yt=0;for(;Pt.length&&Yt<Fn;){const Gt=Pt[0],{newItem:Bn,replaceEndIndex:qt}=Ht({hotItem:ht,matchValue:dn,replaceValue:Ce,current:Gt});Yt+=1,ht=Bn,ht?Pt=Me(ht,dn,qt):Pt.shift()}return ht}else if(At===M.x.WMSelect){const Fn=on.text.split(/\n/).map(Yt=>Yt.replace(Nn,Ce));return{...Ot,hotAttr:{...Ot.hotAttr,textV0:{...Ot.hotAttr.textV0,text:Fn.join("\n")}}}}else if(At===M.x.WTable)if(Ce=ne(Ce),dn=ne(dn),Nn=Te(dn),(0,m.SS)(Ot.hotAttr)){const ht={...Ot.hotAttr.cells};for(const[Fn,Yt]of Object.entries(ht))ht[Fn].data=(Yt.data||"").replace(Nn,Ce);return{...Ot,hotAttr:{...Ot.hotAttr,cells:ht}}}else{const Fn=no.data.map(Yt=>Yt.map(Gt=>Gt.replace(Nn,Ce)));return{...Ot,hotAttr:{...Ot.hotAttr,tableData:{...Ot.hotAttr.tableData,data:Fn}}}}else if(At===M.x.WChart){const{xAxis:ht,series:Fn}=mo,Yt=ht.map(Bn=>Bn.replace(Nn,Ce)),Gt=Fn.map(Bn=>({...Bn,name:Bn.name.replace(Nn,Ce)}));return{...Ot,hotAttr:{...Ot.hotAttr,chartData:{...Ot.hotAttr.chartData,xAxis:Yt,series:Gt}}}}else if(V.includes(At)){const ht=k()(mn);Lt(ht,Nn,Ce);let Fn={...Ot,hotAttr:{...Ot.hotAttr,optionData:ht}};if(on){const Gt=on.text.replace(Nn,Ce);Fn={...Fn,hotAttr:{...Fn.hotAttr,textV0:{...Ot.hotAttr.textV0,text:Gt}}}}return Fn}},Lt=(Jt,Ot,dn)=>{Jt.forEach(Ce=>{let{data:Pt,children:Nn}=Ce;Pt.name=Pt.name.replace(Ot,dn),Nn&&Nn.length>0&&Lt(Nn,Ot,dn)})},jt=(Jt,Ot,dn,Ce)=>{let Pt="",Nn=0;const{contents:At,startIndex:on,endIndex:no}=Ot;if(At&&At.length>0)if(At.length===1){const{index:mo}=At[0];Pt=Jt.substring(0,mo+on)+Ce+Jt.substring(mo+no+1),Nn=mo+on+Ce.length}else Pt=At.reduce((mo,mn,ht)=>{const{index:Fn}=mn;return ht===0?(Nn=Fn+on+Ce.length,mo+Jt.substring(0,Fn+on)+Ce+Jt.substring(Fn+mn[0].length,At[ht+1].index)):ht===At.length-1?mo+Jt.substring(Fn+no+1):mo+Jt.substring(Fn+mn[0].length,At[ht+1].index)},"");return{newHtml:Pt.trim()+D.ze,replaceEndIndex:Nn}},mt=(Jt,Ot,dn,Ce)=>{const Pt=Jt.substring(0,Ot)+Ce+Jt.substring(Ot+dn.length),Nn=Ot+Ce.length;return{newData:Pt.trim(),replaceEndIndex:Nn}},Jn=Jt=>{let{data:Ot,indexArr:dn,matchValue:Ce,replaceValue:Pt}=Jt;return Ot.map((Nn,At)=>At===dn[0]?mt(Nn,dn[1],Ce,Pt).newData:Nn)},o=Jt=>{const{widget:Ot}=Jt;return sdkStore.isTrashed(Ot.key)?null:sdkStore.getHotItem(Ot.key)},so=Jt=>{},Et=Jt=>{let Ot=sdkStore.getHotItem(Jt);for(;Ot;){var dn;if(((dn=Ot.hotAttr.bunch)!=null?dn:Ot.hotAttr.type)===M.x.RbPage)return Ot.key;Ot=sdkStore.getHotItem(Ot.sup)}return null}},20014:(eo,ot,i)=>{"use strict";i.d(ot,{e:()=>l});var a=i(38502),k=i(18381),M=i(87332),P=i(17307),C=i(67787),q=i(53732),Y=i.n(q),J=i(53940),O=i(72214);const l=m=>{let{layout:E}=m;const f=(0,k.wA)(),h=S=>{var V;E!==S&&(f({type:"entry:update:preference-layout_v8",payload:{layout_v8:S}}),f({type:"left-panel:set:width",payload:{width:S==="old_right"?J.sR:J.Cj,projectCid:(V=MB.getRootProject())==null?void 0:V.cid}}))};return(0,O.jsx)(M.A,{className:"set-layout-dropdown",renderOpener:(0,O.jsx)(P.C,{name:"common/set-layout-dropdown",className:"more-icon",size:24}),direction:"right",renderMenu:(0,O.jsxs)(D,{className:Y()("set-layout-dropdown-menu"),children:[(0,O.jsxs)("li",{className:"item-menu left",onMouseDown:()=>h("recommend"),children:[(0,O.jsx)(P.C,{name:"toolbar/selected",className:Y()("selected-icon",{show:E==="recommend"})}),(0,O.jsx)(P.C,{name:"left_panel/layout/left",className:"layout-icon"}),(0,O.jsx)("span",{className:"title",children:I18N.LeftSidePanel.left_aligned})]}),(0,O.jsxs)("li",{className:"item-menu right",onMouseDown:()=>h("old_right"),children:[(0,O.jsx)(P.C,{name:"toolbar/selected",className:Y()("selected-icon",{show:E==="old_right"})}),(0,O.jsx)(P.C,{name:"left_panel/layout/right",className:"layout-icon"}),(0,O.jsx)("span",{className:"title",children:I18N.LeftSidePanel.right_aligned})]})]})})},D=C.Ay.ul.withConfig({displayName:"LayoutDropDown__StyledLayoutMenu",componentId:"sc-1m8444o-0"})(["width:126px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";padding:8px;&:lang(en){width:166px;}li.item-menu{list-style:none;height:28px;padding-left:16px;padding-right:14px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}.selected-icon{opacity:0;width:8px;&.show{opacity:1;}}.layout-icon{width:20px;margin:0 4px 0 8px;}}li.item-menu{border-radius:4px;}"],m=>m.theme.color_bg_white,m=>m.theme.shadow_m,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_01,m=>m.theme.color_btn_secondary_hover)},20085:(eo,ot,i)=>{"use strict";i.d(ot,{H:()=>a});function a(k){const M=new Map;k.forEach(q=>{M.set(q.cid,{...q,subFolder:[],level:1})});const P=[],C=(q,Y,J)=>{J.has(q.cid)||(J.add(q.cid),q.level=Y,q.subFolder.forEach(O=>C(O,Y+1,J)))};return k.forEach(q=>{if(q.parent_cid===null){const Y=M.get(q.cid);P.push(Y),C(Y,1,new Set)}else{const Y=M.get(q.parent_cid);if(Y){const J=M.get(q.cid);J.level=(Y.level||1)+1,Y.subFolder.push(J),C(J,J.level,new Set)}}}),P}},20852:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19",stroke:"#6669FF",strokeWidth:"1.8",strokeLinecap:"round"}))})},21337:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=i(53732),M=i.n(k),P=i(23744),C=i(37342),q=i(46905),Y=i(67787);const J=Y.Ay.div.withConfig({displayName:"styles__StyledAIPointTag",componentId:"sc-w3t3ub-0"})(["background:",";font-weight:500;font-size:12px;border-radius:12px;padding:0 10px;display:flex;height:24px;align-items:center;min-width:70px;justify-content:center;&:not(.isbeta):hover{background:",";}&:not(.disable){cursor:pointer;}&.disable{pointer-events:none;}&.free-limited-time{background:none;}svg{width:14px;height:14px;margin-right:5px;}span{line-height:16px;background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;flex:none;order:0;flex-grow:0;}&.isbeta{pointer-events:none;span{padding:0 12px;}}&.right-tag-red{background:",";&:not(.isbeta):hover{background:",";}span{line-height:16px;background:linear-gradient(265.2deg,#EC4954 -21.19%,#FA52D6 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}&.ai-semantic{padding:0 10px;min-width:0;height:20px;font-size:10px;svg{width:12px;height:12px;}}"],f=>f.theme.color_background_AI_head_tag,f=>f.theme.color_background_AI_head_tag_hover,f=>f.theme.color_AI_switch_gradient_start,f=>f.theme.color_AI_switch_gradient_end,f=>f.theme.color_background_AI_head_tag_red,f=>f.theme.color_background_AI_head_tag_red_hover);var O=i(72214);const l=f=>{const{from:h,user:S,org:V,project:We}=f,re=(0,a.useCallback)(Be=>{Be.preventDefault(),Be.stopPropagation(),ENV.IS_WONDER_SHARE?(0,C.Ix)(q.Jh,"_blank","noreferrer"):MB.global.popupHelper.chargeAsync({orgCid:(V==null?void 0:V.cid)||"",checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_popup",isChatGPT:!0})},[V]),ve=(0,a.useMemo)(()=>({aiPoints:(0,q._F)({user:S,org:V}),aiUseTimes:(0,q.kK)({user:S,org:V})}),[S,V]);let we="",Ae=!1;const Oe=(0,q.vW)(S,V,We);return ENV.IS_WONDER_SHARE?(we=Oe?"Beta":I18N.ChatGPT.Limit+": "+(q.Dw-ve.aiUseTimes<0?0:q.Dw-ve.aiUseTimes),Ae=!Oe&&q.Dw-ve.aiUseTimes<=3):(we=""+ve.aiPoints,Ae=ve.aiPoints<=200),h!=="ai-left-panel"&&(Ae=!1,we=I18N.ChatGPT.ai_limited_time_free),ENV.IS_ON_PREMISES||h!=="ai-left-panel"&&ENV.IS_WONDER_SHARE?null:(0,O.jsxs)(J,{className:M()(Ae&&"right-tag-red",h==="ai-semantic"&&"ai-semantic","disable"),onMouseDown:re,children:[h==="ai-left-panel"&&!ENV.IS_WONDER_SHARE&&(0,O.jsx)(P.C,{name:"chatGPT/ai-point-icon"+(Ae?"-red":""),isColorPure:!0}),(0,O.jsx)("span",{children:we})]})},D=(0,a.memo)(l),m=Y.Ay.div.withConfig({displayName:"styles__StyledAIToolBar",componentId:"sc-1rvrsfz-0"})(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;height:100%;position:relative;&.tool-bar{padding:0 20px;height:50px;}&.is-ai-chat{border-bottom:1px solid ",";}.title{display:flex;align-items:center;}.sub-title{color:",";font-size:12px;font-weight:400;}.tool-title{line-height:40px;font-family:PingFang SC;display:flex;align-items:center;color:",";font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;}.ai-beta{width:40px;margin-left:4px;}.ai-help{margin-left:4px;&:hover{path{fill:#666666;}}}.tips{z-index:1;max-width:351px;background-color:#fff;box-sizing:border-box;padding:20px 24px;background:#333333;border-radius:4px;font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;position:fixed;div{white-space:pre-line;line-height:18px;margin-top:10px;}span{color:white;}.tip-title{font-size:14px;font-weight:500;margin-top:0;display:flex;svg{margin-right:2px;}}.tip-desc{margin-top:10px;font-size:12px;line-height:18px;display:flex;align-items:center;color:rgba(255,255,255,0.5);}}.tool-right{display:flex;align-items:center;white-space:nowrap;order:2;margin-left:6px;.close-modal{cursor:pointer;width:24px;height:24px;margin-left:6px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}"],f=>f.theme.color_bg_border_01,f=>f.theme.color_text_L3,f=>f.theme.color_text_L1,f=>f.theme.color_text_L2,f=>f.theme.color_text_L1);function E(f){const{title:h,closeModal:S,isHeaderPanel:V,project:We,org:re,user:ve,isAIChatPanel:we=!1}=f,Ae=(0,a.useRef)(null);return(0,O.jsxs)(m,{ref:Ae,className:M()(V?"ai-panel-header":"tool-bar",{"is-ai-chat":we}),type:we&&"draggable",children:[(0,O.jsxs)("div",{className:V?"title":"tool-title",type:we&&"draggable",children:[(0,O.jsxs)(O.Fragment,{children:[h||I18N.ChatGPT.mockitt_ai,we&&(0,O.jsx)("span",{className:"sub-title",children:"\uFF08"+I18N.ChatGPT.ai_chat_supported_full_version+"\uFF09"})]}),V&&!ENV.IS_WONDER_SHARE&&(0,O.jsx)(P.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,O.jsxs)("div",{className:"tool-right",children:[(0,O.jsx)(D,{from:V?"ai-left-panel":"ai-component",user:ve,org:re,project:We}),!V&&(0,O.jsx)(P.C,{name:"chatGPT/ai-panel-head-close",className:"close-modal",onClick:S})]})]})}},21385:(eo,ot,i)=>{"use strict";i.d(ot,{CJ:()=>we,Dx:()=>m,H:()=>P,NR:()=>re,VC:()=>Ae,bu:()=>M,g7:()=>ve,jI:()=>We,xR:()=>V});var a=i(93413);const k=+(ENV.IS_MO===!0),M=[a.c.GUIDE_NOVICE_2309_STEP_2,a.c.GUIDE_NOVICE_2309_STEP_3,a.c.GUIDE_NOVICE_2309_STEP_4,a.c.GUIDE_NOVICE_2309_STEP_5],P=[a.c.GUIDE_NOVICE_2309_STEP_1,a.c.GUIDE_NOVICE_2309_STEP_2,a.c.GUIDE_NOVICE_2309_STEP_3,a.c.GUIDE_NOVICE_2309_STEP_4,a.c.GUIDE_NOVICE_2309_STEP_5],C={[a.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_2+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif"],[a.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_3+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif"],[a.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_4+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif"],[a.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_5+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif"],[a.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TIP_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TIP_1_ws.gif"],[a.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_STEP_1_ws.gif"]},q={[a.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[a.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_TIP_1+".gif"],[a.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_1+".gif"]},Y={[a.c.GUIDE_NOVICE_2309_STEP_1]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_1+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[a.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+a.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[a.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+a.c.GUIDE_NOVICE_2309_TIP_1+".gif"]},J=Oe=>({[a.c.GUIDE_NOVICE_2309_STEP_2]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:Oe.CommonGuides.v8guide_novice_step2},imgUrl:C[a.c.GUIDE_NOVICE_2309_STEP_2][k]},[a.c.GUIDE_NOVICE_2309_STEP_3]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:Oe.CommonGuides.v8guide_novice_step3},imgUrl:C[a.c.GUIDE_NOVICE_2309_STEP_3][k]},[a.c.GUIDE_NOVICE_2309_STEP_4]:{selector:a.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:Oe.CommonGuides.v8guide_novice_step4},imgUrl:C[a.c.GUIDE_NOVICE_2309_STEP_4][k]},[a.c.GUIDE_NOVICE_2309_STEP_5]:{selector:a.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:Oe.CommonGuides.v8guide_novice_step5},imgUrl:C[a.c.GUIDE_NOVICE_2309_STEP_5][k]},[a.c.GUIDE_NOVICE_2309_TIP_1]:{selector:a.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:Oe.CommonGuides.v8guide_novice_tip1},imgUrl:C[a.c.GUIDE_NOVICE_2309_TIP_1][k]},[a.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:a.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:Oe.CommonGuides.v8guide_novice_step1},imgUrl:C[a.c.GUIDE_NOVICE_2408_CREATE_PAGE][k]}}),O=Oe=>({[a.c.GUIDE_NOVICE_2309_STEP_2]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:Oe.CommonGuides.v8guide_novice_step2},imgUrl:q[a.c.GUIDE_NOVICE_2309_STEP_2][k]},[a.c.GUIDE_NOVICE_2309_STEP_3]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:Oe.CommonGuides.v8guide_novice_step3},imgUrl:q[a.c.GUIDE_NOVICE_2309_STEP_3][k]},[a.c.GUIDE_NOVICE_2309_STEP_4]:{selector:a.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:Oe.CommonGuides.v8guide_novice_step4},imgUrl:q[a.c.GUIDE_NOVICE_2309_STEP_4][k]},[a.c.GUIDE_NOVICE_2309_STEP_5]:{selector:a.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:Oe.CommonGuides.v8guide_novice_step5},imgUrl:q[a.c.GUIDE_NOVICE_2309_STEP_5][k]},[a.c.GUIDE_NOVICE_2309_TIP_1]:{selector:a.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:Oe.CommonGuides.v8guide_novice_tip1},imgUrl:q[a.c.GUIDE_NOVICE_2309_TIP_1][k]},[a.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:a.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:Oe.CommonGuides.v8guide_novice_step1},imgUrl:q[a.c.GUIDE_NOVICE_2408_CREATE_PAGE][k]}}),l=Oe=>({[a.c.GUIDE_NOVICE_2309_STEP_1]:{selector:a.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:Oe.CommonGuides.v8guide_novice_step1},imgUrl:Y[a.c.GUIDE_NOVICE_2309_STEP_1][k]},[a.c.GUIDE_NOVICE_2309_STEP_2]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:Oe.CommonGuides.v8guide_novice_step2_DS},imgUrl:Y[a.c.GUIDE_NOVICE_2309_STEP_2][k]},[a.c.GUIDE_NOVICE_2309_STEP_3]:{selector:a.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:Oe.CommonGuides.v8guide_novice_step3_DS},imgUrl:Y[a.c.GUIDE_NOVICE_2309_STEP_3][k]},[a.c.GUIDE_NOVICE_2309_STEP_4]:{selector:a.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:Oe.CommonGuides.v8guide_novice_step4},imgUrl:Y[a.c.GUIDE_NOVICE_2309_STEP_4][k]},[a.c.GUIDE_NOVICE_2309_STEP_5]:{selector:a.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:Oe.CommonGuides.v8guide_novice_step5},imgUrl:Y[a.c.GUIDE_NOVICE_2309_STEP_5][k]},[a.c.GUIDE_NOVICE_2309_TIP_1]:{selector:a.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:53,x:150},content:Oe.CommonGuides.v8guide_novice_tip1},imgUrl:Y[a.c.GUIDE_NOVICE_2309_TIP_1][k]}}),D=new Map([["MP",J],["PC",O],["DS",l]]),m=(Oe,Be)=>{const tt=Ae(Oe);return D.has(tt)?D.get(tt)(Be):D.get("MP")(Be)},E=new Map([["MP",["mtlnslwr5rypkaqh","mtlzqys30zwyejs"]],["PC",["mtlnslwr5rypkaqh","mtlzwbocy0zzxbvn"]]]),f=new Map([["MP",["rcTnYFbNTspk9Oq1IW6BNo",["rcTnYFbNULCdungtfnN8ST","rcTnYHQXULCdunhG5Sz8GJ"]]],["PC",["rcTnYFbNTspk9Oq1IW6BNo",["rcU55LSYU55wSd6rxYCo1U","rcU4swuuU4ufqiHYqNOzk8"]]]]),h=new Map([["MP",["rcTnYHQXTspk9OpcBxaoMz","rcTnYHQXULCdunhG5Sz8GJ"]],["PC",["rcTnYHQXTspk9OpcBxaoMz","rcU4swuuU4ufqiHYqNOzk8"]]]),S=(Oe,Be)=>{var tt;let Xe=((tt=Oe.split("-"))==null?void 0:tt[0])||"MP";Be.has(Xe)||(Xe="MP");const ne=Be.get(Xe);return Array.isArray(ne)?ne[+!ENV.IS_MO]:ne},V=Oe=>S(Oe,E),We=Oe=>S(Oe,f),re=Oe=>S(Oe,h),ve=["mtltnojakmadr9kr","mtltnolur84xkk9k"],we=["rbpU6lViN5GdzBr9G","rbpU6lWXjFqf4SBnp"],Ae=Oe=>Oe?Oe.split("-")[0]:""},21605:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_73)"}),a.createElement("g",{filter:"url(#filter0_d_941_73)"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("mask",{id:"mask0_941_73",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("g",{mask:"url(#mask0_941_73)"},a.createElement("path",{d:"M7.5 7.50011V5.00006L6.68054 2.13201C6.68054 2.13201 6.53336 1.78672 6.14453 1.74609C5.86401 1.71679 5.35547 1.66797 5.35547 1.66797C4.80859 1.48047 4.55469 1.32422 3.5 1L2 2.5001L3.50035 7.50011H7.5Z",fill:"url(#paint1_linear_941_73)"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_d_941_73",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.983333 0 0 0 0 0.620304 0 0 0 0 0.0778472 0 0 0 0.5 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_73"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_73",result:"shape"})),a.createElement("linearGradient",{id:"paint0_linear_941_73",x1:"-0.5",y1:"-2.5",x2:"3.48782",y2:"11.4977",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFDF8B"}),a.createElement("stop",{offset:"0.463542",stopColor:"#FFCC7E"}),a.createElement("stop",{offset:"1",stopColor:"#EA920E"})),a.createElement("linearGradient",{id:"paint1_linear_941_73",x1:"7",y1:"4",x2:"7",y2:"7.5",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE9C8"}),a.createElement("stop",{offset:"1",stopColor:"#FFE9C8",stopOpacity:"0"}))))})},22215:(eo,ot,i)=>{"use strict";i.d(ot,{o:()=>ro});var a=i(38502),k=i(70768),M=i(67787),P=i(60690),C=i(70933),q=i(60651),Y=i(16454),J=i(72214);const O=a.createContext("light"),D=Tn=>{var bt,Wt,wn,uo;let{Component:In,props:Dn}=Tn;const So=Dn==null?void 0:Dn.params.isDesign,Qt=Dn==null?void 0:Dn.params.isPreview,Ln=Dn.store.getState(),Mn=Qt?(0,Y.bF)(Ln):{},Rt=So?(0,q.uu)(Ln):Mn==null?void 0:Mn.isHTMLZip,Qe=So?(0,q.pH)(Ln):Mn==null?void 0:Mn.isSquare,En=So?(0,q.rg)(Ln):Mn==null?void 0:Mn.isEmbedV2,qn=So?(0,C.HW)(Ln):(0,Y.HW)(Ln),Hn=So?!1:(0,Y.hM)(Ln),Yn=So?!1:(0,Y.KR)(Ln),oo=(0,q.bT)(Ln);if(Rt||Qe||En||!qn||Hn||Yn||oo)return;let po=document.querySelector("#GUIDES");po||(po=document.createElement("div"),po.id="GUIDES",document.body.appendChild(po));const Oo=document.createElement("div");po.appendChild(Oo);const Qo=(0,k.createRoot)(Oo),ea=()=>{Qo.unmount(),Oo.remove()},_n=So?Ln==null||(bt=Ln.ui)==null||(bt=bt.fixedLayout)==null?void 0:bt.preference:Ln==null||(Wt=Ln.container)==null||(Wt=Wt.common)==null?void 0:Wt.preference,Un=(wn=_n==null?void 0:_n.theme)!=null?wn:"light",cn=(uo=MB)==null?void 0:uo.user;Qo.render((0,J.jsx)(M.NP,{theme:P.A[Un],children:(0,J.jsx)(O.Provider,{value:Un,children:(0,J.jsx)(In,{onClose:ea,currentUser:cn,...Dn})})}))};var m=i(93413),E=i(95549),f=i(53732),h=i.n(f),S=i(37342),V=i(17307),We=i(79150),re=i(56202),ve=i(25234),we=i(36518);const Ae=M.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-1ucr0lj-0"})(["position:absolute;z-index:1049;pointer-events:none;&.grabbing{pointer-events:initial;cursor:grab;.grab-box{display:flex;}}.context{position:absolute;width:236px;padding:20px 16px 20px 20px;pointer-events:auto;background:#fff;border-radius:4px;box-shadow:0 0 20px 0 rgba(39,54,78,0.10);.content-title{position:relative;font-size:14px;font-weight:500;color:#1F292E;margin-bottom:10px;z-index:2;&.main-1{&::after{content:'';position:absolute;left:0;top:13px;width:32px;height:4px;background:#C8CDD0;z-index:-1;}}&.main-2{&::after{content:'';position:absolute;left:0;top:13px;width:28px;height:4px;background:#C8CDD0;z-index:-1;}}}.content-text{font-size:12px;color:#415058;margin-bottom:26px;}.close{margin-top:20px;margin-left:auto;width:80px;height:28px;display:flex;align-items:center;justify-content:center;background:#5B6B73;border-radius:2px;color:#FFFFFF;cursor:pointer;transition:all 0.2s ease-out;&:hover{background:#1F292E;color:#fff;}&:active{background:#1F292E;color:rgba(255,255,255,0.6);}}.icon-triangle{position:absolute;width:11px;height:6px;color:#fff;&.left{transform:rotate(-90deg);}&.right{transform:rotate(90deg);}}&:not(.grabbing){cursor:default;}.grab-box{display:none;position:absolute;top:0px;left:118px;cursor:grab;}&:hover{.grab-box{display:flex;}}}&#MD_",",&#MD_","{z-index:1102;.context{width:248px;border-radius:8px;border:2px solid ",";}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:",";}.line{width:2px;background-color:",";}}.container-box{display:flex;align-items:center;justify-content:center;img{width:208px;border-radius:4px;}.title{display:block;color:",";font-weight:500;font-size:14px;margin-top:9px;}.desc{display:block;font-size:12px;color:",";margin-top:10px;}.btn-wrapper{display:flex;margin-top:22px;margin-left:auto;flex-direction:row;align-items:center;justify-content:flex-end;.btn{width:64px;}}}}&#MD_","{.container-box{.btn-wrapper{gap:6px;.btn{width:76px;font-weight:400;&.tutorial{border:1px solid ",";background:",";color:",";&:hover{background:",";}}}}}}&#MD_","{.container-box .box img{border-radius:4px;}.arrow-container .line{height:29px;}}&#MD_",",&#MD_",",&#MD_","{top:auto !important;bottom:40px !important;left:50% !important;transform:translateX(-50%);.context{background:rgba(21,21,21,0.8);border:1px solid #363738;position:relative;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);border-radius:6px;width:auto;height:auto;padding:0;}}"],m.c.GUIDE_NEW_OVERLAY_ONCE,m.c.GUIDE_POSITION_STICKY_FEATURES,Tn=>Tn.theme.color_proto,Tn=>Tn.theme.color_proto,Tn=>Tn.theme.color_proto,Tn=>Tn.theme.color_proto,we.fm.color_text_L2.value_light,m.c.GUIDE_NEW_OVERLAY_ONCE,we.fm.color_bg_border_02.value_light,we.fm.color_bg_white.value_light,we.fm.color_text_L1.value_light,we.fm.color_btn_secondary_hover.value_light,m.c.GUIDE_POSITION_STICKY_FEATURES,m.c.GUIDE_VECTOR_TASK_QUICK_CREATE,m.c.GUIDE_VECTOR_TASK_ENDING_EDITING,m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),Oe=M.Ay.div.withConfig({displayName:"styles__StyledGuideRectBoxTips",componentId:"sc-1ucr0lj-1"})(["display:flex;align-items:center;width:100%;height:100%;padding:6px 10px;.vector{width:24px;margin-right:10px;path{&:not([fill]){fill:none;}}}span{font-size:12px;line-height:18px;color:rgba(255,255,255,0.9);white-space:nowrap;overflow:hidden;}.closeIcon{margin-left:10px;svg{path{fill:#b8bcbf;}}&:hover,&:active{background:#4f5052;}}"]),Be=(Tn,bt)=>({selector:bt,renderBox:Wt=>{let{close:wn}=Wt;return(0,J.jsxs)(Oe,{children:[(0,J.jsx)(V.C,{name:"art_board/guide/vector",className:"vector"}),(0,J.jsx)("span",{dangerouslySetInnerHTML:{__html:Tn}}),(0,J.jsx)(We.A,{className:"closeIcon",name:"art_board/guide/vector/close",onClick:wn})]})}}),tt=Tn=>{let{selector:bt,title:Wt,desc:wn,getPosition:uo,arrow:In,imgUrl:Dn,subSelector:So,isShowGrab:Qt=!1,howToShow:Ln,hasTutorial:Mn=!1,tutorialUrl:Rt=""}=Tn;return{selector:bt,getPosition:uo,subSelector:So,isShowGrab:Qt,hasTutorial:Mn,tutorialUrl:Rt,renderBox:Qe=>{let{close:En}=Qe;return(0,J.jsxs)(J.Fragment,{children:[In&&(0,J.jsxs)("div",{className:"arrow-container "+In.position,style:In.offset,children:[(0,J.jsx)("div",{className:"circle"}),(0,J.jsx)("div",{className:"line"})]}),(0,J.jsx)("div",{className:"container-box",children:(0,J.jsxs)("div",{className:"box",children:[(0,J.jsx)("img",{src:Dn,alt:""}),(0,J.jsx)("span",{className:"title",children:Wt}),(0,J.jsx)("span",{className:"desc",children:wn}),(0,J.jsxs)("div",{className:"btn-wrapper",children:[Mn&&(0,J.jsx)(ve.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn tutorial",onClick:()=>(0,S.Ix)(Rt),children:I18N.CommonGuides.visit_tutorial}),(0,J.jsx)(ve.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn",onClick:En,children:I18N.CommonGuides.v8guide3})]})]})})]})},howToShow:Qe=>{Ln&&Ln(Qe)}}},Xe=Tn=>({[m.c.GUIDE_VECTOR_TASK_QUICK_CREATE]:Be(Tn.CommonGuides.guide_vector_task_quick_create,"mb-viewport"),[m.c.GUIDE_VECTOR_TASK_ENDING_EDITING]:Be(Tn.CommonGuides.guide_vector_task_ending_editing,"mb-viewport"),[m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR]:Be(Tn.CommonGuides.guide_vector_task_editing_exist_vector.replace(/%shortcut%/,(0,re.cX)()?"\u2318":"ctrl"),"mb-viewport"),[m.c.GUIDE_POSITION_STICKY_FEATURES]:tt({selector:m.c.GUIDE_POSITION_STICKY_FEATURES,subSelector:'[data-value="sticky"]',imgUrl:"/mb-proto2/images/guide/newGuides/guide_"+m.c.GUIDE_POSITION_STICKY_FEATURES+".gif",title:"\u65B0\u589E\u5438\u9876\u56FA\u5B9A",desc:"\u652F\u6301\u8BA9\u7EC4\u4EF6\u6EDA\u52A8\u5230\u7279\u5B9A\u4F4D\u7F6E\u65F6\u56FA\u5B9A",getPosition:()=>({top:-152,right:33}),arrow:{position:"right",offset:{top:143,right:-26}}}),[m.c.GUIDE_NEW_OVERLAY_ONCE]:tt({selector:m.c.GUIDE_NEW_OVERLAY_ONCE,imgUrl:"/mb-proto2/images/guide/guide_new_overlay_once.png",title:Tn.CommonGuides.guide_new_overlay_once.title,desc:Tn.CommonGuides.guide_new_overlay_once.desc,hasTutorial:!0,tutorialUrl:"/hc/articles/441",getPosition:()=>({top:30,left:30})})});var ne=i(34);class lt extends a.PureComponent{constructor(bt){super(bt),(0,E.A)(this,"minLeft",0),(0,E.A)(this,"minTop",0),(0,E.A)(this,"maxLeft",window.innerWidth),(0,E.A)(this,"maxTop",window.innerHeight),(0,E.A)(this,"setRef",wn=>this.$ref=wn),(0,E.A)(this,"handleResize",()=>{const wn=Xe(I18N)[this.props.guideType];this.setState({style:(0,ne.gd)("."+wn.selector+" "+(wn.subSelector?wn.subSelector:""))})}),(0,E.A)(this,"handleCloseGuide",()=>{const{guideType:wn}=this.props;setTimeout(this.props.onClose,250),MB.commonGuideHelper.markGuideAsRead(wn)}),(0,E.A)(this,"handleCustom",()=>{const{guideType:wn}=this.props;this.handleCustomAction(wn)}),(0,E.A)(this,"handleCustomAction",wn=>{({[m.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD]:()=>{MB.commonGuideHelper.closeGuide(m.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD)}})[wn]()}),(0,E.A)(this,"getLimitValue",()=>{if(!this.$ref)return;const{width:wn,height:uo}=this.$ref.getBoundingClientRect();this.minLeft=0,this.minTop=66,this.maxLeft=window.innerWidth-wn,this.maxTop=window.innerHeight-uo}),(0,E.A)(this,"validatePosition",(wn,uo)=>(wn>this.maxLeft&&(wn=this.maxLeft),wn<this.minLeft&&(wn=this.minLeft),uo>this.maxTop&&(uo=this.maxTop),uo<this.minTop&&(uo=this.minTop),{left:wn,top:uo})),(0,E.A)(this,"handleMouseDown",(wn,uo)=>{const{style:In}=this.state;if(!In)return;this.setState({isGrabbing:!0});const{x:Dn,y:So}=In;this.getLimitValue();const{clientX:Qt,clientY:Ln}=wn,Mn=(uo==null?void 0:uo.left)||0,Rt=(uo==null?void 0:uo.top)||0,Qe=qn=>{const Hn=qn.clientX-Qt+Mn,Yn=qn.clientY-Ln+Rt,{left:oo,top:To}=this.validatePosition(Dn+Hn,So+Yn),po=oo-Mn,Oo=To-Rt;this.setState({style:{...In,x:po,y:Oo}})},En=()=>{this.setState({isGrabbing:!1}),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",Qe)};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",En)});const Wt=Xe(I18N)[this.props.guideType];this.state={style:(0,ne.gd)("."+Wt.selector+" "+(Wt.subSelector?Wt.subSelector:"")),tabIndex:0,isGrabbing:!1}}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{guideType:bt}=this.props,{style:Wt,isGrabbing:wn}=this.state;if(!Wt)return null;const{y:uo,x:In,width:Dn,height:So}=Wt,Qt=Xe(I18N)[bt],{getPosition:Ln,isShowGrab:Mn}=Qt,Rt=typeof Ln=="function"?Ln({width:Dn,height:So}):void 0;return(0,J.jsx)(Ae,{id:"MD_"+bt,style:{top:uo,left:In},className:h()(wn&&"grabbing"),children:(0,J.jsxs)("div",{className:h()("context",wn&&"grabbing"),style:{...Rt},ref:this.setRef,children:[Mn&&(0,J.jsx)("div",{className:"grab-box",onMouseDown:Qe=>this.handleMouseDown(Qe,Rt),children:(0,J.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,J.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),Qt.renderBox({close:this.handleCloseGuide,custom:this.handleCustom,tabIndex:this.state.tabIndex})]})})}}var rt=i(76431);const Te=M.Ay.div.withConfig({displayName:"styles__StyledNewGuideText",componentId:"sc-13rt4x7-0"})(["position:absolute;&#MD_GUIDE_SELECT_STICKY{.context{margin-left:100%;}}.context{position:absolute;width:290px;min-height:136px;padding:17px 38px 13px 14px;pointer-events:auto;display:flex;background:linear-gradient(110.63deg,#1684FC -0.49%,#6C72FF 87.66%);border-radius:4px;color:#ffffff;z-index:1049;.context-background.svg-icon{position:absolute;width:120px;height:127px;bottom:0;right:0;z-index:1;> *{fill:none;}}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:13px;height:13px;border-radius:50%;background-color:",";}.line{width:2px;height:13px;background-color:",";}}.content-container{flex:1;display:flex;flex-direction:column;justify-content:center;z-index:2;row-gap:6px;.content{flex:1;.title{font-size:14px;line-height:20px;font-weight:500;height:28px;display:flex;align-items:center;margin-bottom:6px;.title-icon{width:28px;height:100%;margin-right:6px;background:rgba(255,255,255,0.2);border-radius:50%;display:flex;align-items:center;justify-content:center;.svg-icon{&.GUIDE_MORE_PAGE,&.GUIDE_TO_PREVIEW_IN_SHARE{> *{fill:none;}}}}}}.bottom{display:flex;justify-content:end;.btn{width:69px;height:28px;background-color:#ffffff;color:#1684FC;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:hover{background-color:#F1F8FF;}&.more{background-color:inherit;border:1px solid #FFFFFF;color:#fff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}&.secondry{background-color:transparent;color:#ffffff;border:1px solid #ffffff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}}}}}"],Tn=>Tn.arrowColor,Tn=>Tn.arrowColor),Ge=Tn=>{const{guideType:bt,onClose:Wt,store:wn,params:uo}=Tn,In=(0,a.useMemo)(()=>{var nn;return!uo.isDesign||!wn||typeof(wn==null?void 0:wn.getState)!="function"?!1:((nn=wn.getState().ui)==null?void 0:nn.fixedLayout.preference.layoutV8)==="old_right"},[wn,uo]),Dn=(0,a.useMemo)(()=>{var nn;return!uo.isDesign||!wn||typeof(wn==null?void 0:wn.getState)!="function"?0:((nn=wn.getState().ui)==null?void 0:nn.leftLayout.leftPanel.width)+(In?0:48)},[wn,uo,In]),[So,Qt]=(0,a.useState)(!1),Ln=(0,a.useCallback)(()=>(0,ne.gd)("."+(0,rt.K)(I18N,In)[bt].selector),[bt,In]);(0,a.useEffect)(()=>{So&&(MB.commonGuideHelper.closeGuide(bt),MB.commonGuideHelper.markGuideAsRead(bt))},[So,bt]);const Mn=Ln();if(!Mn)return null;const{y:Rt,x:Qe,width:En,height:qn}=Mn,Hn=(0,rt.K)(I18N,In)[bt],{primaryBtnText:Yn,secondaryBtnText:oo,onClickPrimaryBtn:To,onClickSecondryBtn:po}=Hn,Oo=Hn==null?void 0:Hn.guide;if(Hn!=null&&Hn.getPositionOffset){const nn=Hn.getPositionOffset(Qe,Rt,En,qn,Dn),Zn=(Oo==null?void 0:Oo.position)||{};for(const ho in Zn)Zn[ho]=Zn[ho]+nn[ho]}const Qo=Hn==null?void 0:Hn.arrow,ea=Hn==null?void 0:Hn.icon,_n=async()=>{await MB.commonGuideHelper.markGuideAsRead(bt),Hn.callback&&Hn.callback(),Wt(),Qt(!0)},Un=async()=>{await _n(),To&&To()},cn=async()=>{await _n(),po&&po()};return(0,J.jsx)(Te,{id:"MD_"+bt,style:{top:Rt,left:Qe,width:En,height:qn},arrowColor:Qo==null?void 0:Qo.color,children:(0,J.jsxs)("div",{className:"context",style:{...Oo==null?void 0:Oo.position},children:[(0,J.jsx)(V.C,{name:"art_board/guide/text/background",className:"context-background"}),Qo&&(0,J.jsxs)("div",{className:h()(Qo==null?void 0:Qo.direction,"arrow-container"),style:{...Qo==null?void 0:Qo.position},children:[(0,J.jsx)("div",{className:"circle"}),(0,J.jsx)("div",{className:"line"})]}),(0,J.jsxs)("div",{className:"content-container",children:[(0,J.jsxs)("div",{className:"content",children:[(0,J.jsxs)("div",{className:"title",children:[(0,J.jsx)("div",{className:"title-icon",children:(0,J.jsx)(V.C,{className:bt,name:ea==null?void 0:ea.name,style:{width:ea.width,height:ea.height}})}),Oo.title]}),(0,J.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Oo==null?void 0:Oo.content}})]}),(0,J.jsxs)("div",{className:"bottom",children:[(Hn==null?void 0:Hn.moreLink)&&(0,J.jsx)("a",{className:"btn more",href:Hn==null?void 0:Hn.moreLink,target:"_blank",rel:"noopener noreferrer",children:I18N.CommonGuides.version_guide_learn_more}),po&&(0,J.jsx)("div",{className:"btn secondry",onClick:cn,children:oo||I18N.CommonGuides.v8guide3}),(0,J.jsx)("div",{className:"btn primary",onClick:Un,children:Yn||I18N.CommonGuides.v8guide3})]})]})]})})};var ue=i(38462),Me=i(5209),Ze=i(91110),fe=i(67588);const it=M.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-c63e9t-0"})(["position:absolute;.frame-border{position:absolute;border-radius:6px;border:1px solid #1684FC;outline:2px solid rgba(22,132,252,0.25);z-index:1;pointer-events:none;}.context{position:absolute;width:248px;height:320px;padding:20px 20px 24px;pointer-events:auto;background-color:#fff;border-radius:8px;display:flex;border:2px solid #1684FC;z-index:1049;.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:#1684FC;}.line{width:2px;height:13px;background-color:#1684FC;}}.content-container{display:flex;flex-direction:column;justify-content:center;.top-content{position:relative;width:208px;height:151px;border-radius:4px;overflow:hidden;img{width:100%;height:100%;}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom-content{font-size:12px;color:#666;flex:1;display:flex;flex-direction:column;.content{flex:1;.title{color:#1684FC;font-size:14px;line-height:20px;font-weight:500;margin:9px 0 10px;}}.bottom{display:flex;justify-content:flex-end;align-items:center;.steps{color:#999999;}.steps-btn{display:flex;.btn{width:76px;height:24px;border-radius:4px;font-size:12px;line-height:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.next{background-color:#1684FC;color:#ffffff;margin-left:6px;&:hover{background-color:#1169C9;}}&.prev{border:1px solid #DBDBDB;color:#333333;&:hover{background-color:#F2F2F2;}}}}}}}}"]),et=Tn=>{const{guideType:bt,params:Wt,onClose:wn}=Tn,{store:{getState:uo}}=Tn,In=Wt.isDesign,Dn=uo(),Qt=(In&&(0,fe.bP)(Dn))==="old_right",[Ln,Mn]=(0,a.useState)(!1),Rt=(0,ue.K)(I18N,Qt)[bt],Qe="."+Rt.selector,En=!document.querySelector(Qe),qn=(0,a.useCallback)(()=>En?(0,ne.gd)("."+m.c.GUIDE_TOOLBAR_COMMON):(0,ne.gd)(Qe),[En,Qe]),Hn=ue.E;(0,a.useEffect)(()=>{Ln&&(MB.commonGuideHelper.closeGuide(bt),MB.commonGuideHelper.markGuideAsRead(bt))},[Ln,bt]);const Yn=qn();if(!Yn)return null;const{y:oo,x:To,width:po,height:Oo}=Yn,Qo=Rt,ea=Qo==null?void 0:Qo.guide,_n=Qo==null?void 0:Qo.imgUrl,Un=En||Qo==null?void 0:Qo.arrow,cn=En||Qo==null?void 0:Qo.frame,nn=Hn.indexOf(bt)+1,Zn=En?(0,ue.K)(I18N)[m.c.GUIDE_TOOLBAR_COMMON].position:ea==null?void 0:ea.position,ho=()=>{(0,Me.kH)("step_guide_V8",{guide_number:nn,guide_type:"\u8001\u7528\u6237"}),!ENV.IS_MO&&(0,Me.kH)("novice_task_V8",{operation_type:"\u5F00\u59CB"})},Xn=()=>{MB.commonGuideHelper.batchMarkGuideAsRead(Hn),wn(),Mn(!0),ho(),Ze.Y.closeNewGuideTrack({step_num:nn})},Mo=async()=>{if(wn(),Ze.Y.clickNewGuideTrack({step_num:nn}),MB.commonGuideHelper.markGuideAsRead(bt),nn===Hn.length){ho();return}const Zo=Hn[nn];MB.commonGuideHelper.tryToShowGuide(Zo)};return MB.commonGuideHelper.batchMarkGuideAsRead(Hn),(0,J.jsxs)(it,{id:"MD_"+bt,style:{top:oo,left:To,width:po,height:Oo},children:[cn&&(0,J.jsx)("div",{className:"frame-border",style:{...cn.position,width:cn.width,height:cn.height}}),(0,J.jsxs)("div",{className:"context",style:{...Zn},children:[Un&&(0,J.jsxs)("div",{className:h()(Un==null?void 0:Un.direction,"arrow-container"),style:{...Un==null?void 0:Un.position},children:[(0,J.jsx)("div",{className:"circle"}),(0,J.jsx)("div",{className:"line"})]}),(0,J.jsxs)("div",{className:"content-container",children:[(0,J.jsxs)("div",{className:"top-content",children:[(0,J.jsx)("img",{src:_n,alt:""}),(0,J.jsx)("div",{className:"close-btn",onClick:Xn,children:(0,J.jsx)(V.C,{name:"common/close_weight"})})]}),(0,J.jsxs)("div",{className:"bottom-content",children:[(0,J.jsxs)("div",{className:"content",children:[(0,J.jsx)("div",{className:"title",children:ea.title}),(0,J.jsx)("div",{className:"text",children:ea.content})]}),(0,J.jsx)("div",{className:"bottom",children:(0,J.jsx)("div",{className:"steps-btn",children:(0,J.jsx)("div",{onClick:Mo,className:"btn next",children:nn===Hn.length?I18N.CommonGuides.tryNow:I18N.CommonGuides.next})})})]})]})]})]})},Ut=(0,a.memo)(et);var G=i(75908),Ht=i(21385),Tt=i(78257),Vt=i(60129),He=i(46712),rn=i(4235),Lt=i(62532);const jt=Tn=>{const{guideType:bt,guideConfig:Wt,currentStep:wn=1,totalStep:uo,resizeFlag:In=0,sceneTag:Dn,handleCloseGuide:So,dispatch:Qt,isOpenCreatePage:Ln}=Tn,[Mn,Rt]=(0,a.useState)({x:0,y:0}),[Qe,En]=(0,a.useState)({x:0,y:0}),[qn,Hn]=(0,a.useState)(wn),[Yn,oo]=(0,a.useState)(!1),[To,po]=(0,a.useState)(!0),{guide:Oo,imgUrl:Qo,selector:ea}=Wt||{},_n=Oo==null?void 0:Oo.offset,Un=(0,a.useMemo)(()=>{var Mo,Zo;let ia=(0,ne.gd)("."+ea);if(bt===m.c.GUIDE_NOVICE_2309_TIP_1&&(ia={x:0,y:0}),bt===m.c.GUIDE_NOVICE_2309_STEP_3){var xa,fa;const Sa=MB.__store__.getState(),ln=(0,rn.nE)(Sa);if((0,Ht.VC)(Dn)==="DS"||!ln[0])ia={x:0,y:0};else{var zo,Ra;const{x:ko=0,y:bo=0,w:aa=0,h:ma=0}=sdkStore.getLocalBound((zo=ln[0])==null?void 0:zo.key)||{},dr=ko-aa/2,ni=bo-ma/2,Ir=(Ra=ln[0])==null?void 0:Ra.sup,{hotAttr:$a}=sdkStore.getHotItem(Ir),{x:Va,y:Ha,w:or,h:gi}=$a||{},Qr=Va-or/2,Qi=Ha-gi/2,rs=(0,C.X_)(Sa)/100,{startX:Li,startY:ns}=(0,Lt.$U)(Sa);ia={x:(Li-Qr-dr)*rs,y:(ns-Qi-ni)*rs}}return{top:-((xa=ia)==null?void 0:xa.y)+_n.y,left:-((fa=ia)==null?void 0:fa.x)+(_n==null?void 0:_n.x)}}return ia?{top:((Mo=ia)==null?void 0:Mo.y)+_n.y,left:((Zo=ia)==null?void 0:Zo.x)+(_n==null?void 0:_n.x)}:null},[ea,bt,_n,Dn]),cn=(0,a.useMemo)(()=>qn!==wn?Un:{...Un||{},transform:"translate("+(Qe.x+Mn.x)+"px, "+(Qe.y+Mn.y)+"px)"},[Un,Qe,Mn,wn,qn]),nn=(0,a.useCallback)(Mo=>{const{pageX:Zo,pageY:ia}=Mo.nativeEvent;oo(!0);const xa=(Un==null?void 0:Un.top)||0,fa=(Un==null?void 0:Un.left)||0,zo=xa+Qe.y,Ra=fa+Qe.x,Sa=ko=>{const bo=ko.pageX-Zo,aa=ko.pageY-ia,ma=Math.min(window.innerHeight-zo-He.mO-10,Math.max(-zo+10,aa));return{offsetX:Math.min(window.innerWidth-Ra-He.NW-10,Math.max(-Ra+10,bo)),offsetY:ma}},ln=ko=>{const{offsetX:bo,offsetY:aa}=Sa(ko);Rt({x:bo,y:aa})},ta=ko=>{const{offsetX:bo,offsetY:aa}=Sa(ko);En({x:Qe.x+bo,y:Qe.y+aa}),Rt({x:0,y:0}),oo(!1),document.removeEventListener("mousemove",ln),document.removeEventListener("mouseup",ta)};document.addEventListener("mousemove",ln),document.addEventListener("mouseup",ta)},[Un,Qe]),Zn=(0,a.useMemo)(()=>(0,J.jsxs)(J.Fragment,{children:[wn===1&&(0,J.jsx)(He.yP,{}),wn===3&&(0,J.jsx)(He.id,{}),wn===4&&(0,J.jsx)(He.ss,{})]}),[wn]),ho=(0,a.useMemo)(()=>(0,J.jsxs)(J.Fragment,{children:[wn===1&&(0,J.jsx)(He.$D,{}),(wn===2||wn===3)&&(0,J.jsx)(He.no,{currentStep:wn}),wn===4&&(0,J.jsx)(He.id,{}),wn===5&&(0,J.jsx)(He.ss,{})]}),[wn]),Xn=(0,a.useCallback)(()=>{if(!To)return null;const Mo=(0,Ht.VC)(Dn);if(Ln)return(0,J.jsx)(He.$D,{});switch(Mo){case"MP":case"PC":return Zn;case"DS":return ho;default:return null}},[Zn,ho,To,Ln,Dn]);return(0,a.useEffect)(()=>{Rt({x:0,y:0}),En({x:0,y:0}),Hn(wn)},[wn]),!Wt||!wn||!Un?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(He.GT,{id:"MD_"+bt,className:h()(Yn&&"grabbing"),children:(0,J.jsxs)("div",{className:h()("context",Yn&&"grabbing"),style:{...cn},children:[(0,J.jsx)("div",{className:"grab-box",onMouseDown:nn,children:(0,J.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,J.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),(0,J.jsxs)("div",{className:"content",children:[(0,J.jsx)("div",{className:"top",children:(0,J.jsx)("img",{src:Qo,alt:"",draggable:"false"})}),(0,J.jsxs)("div",{className:"bottom",children:[(0,J.jsx)("div",{className:"desc-guide",children:(0,J.jsx)(mt,{guideType:bt,content:Oo==null?void 0:Oo.content})}),(0,J.jsxs)("div",{className:"steps-guide",children:[(0,J.jsx)("div",{className:"step-info",children:uo&&wn+"/"+uo}),(0,J.jsx)("div",{className:"action-btn",children:!uo&&(0,J.jsx)("button",{onClick:So,className:"btn know",children:I18N.CommonGuides.v8guide3})})]})]})]})]})}),Xn()]})};function mt(Tn){const{guideType:bt,content:Wt}=Tn;if(bt===m.c.GUIDE_NOVICE_2309_STEP_3&&Wt!=null&&Wt.includes("\u3010\u26A1\uFE0F\u3011")){const wn=Wt==null?void 0:Wt.split("\u3010\u26A1\uFE0F\u3011");return(0,J.jsxs)("div",{className:"text",children:[wn[0],(0,J.jsx)("div",{className:"handler",children:(0,J.jsx)(V.C,{name:"new_replace/thunder"})}),wn[1]]})}return bt===m.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("div",{className:"guide-title",children:I18N.CommonGuides.v8guide_create_page}),(0,J.jsx)("div",{className:"text",children:I18N.CommonGuides.v8guide_novice_step1})]}):(0,J.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Wt}})}const Jn=(0,a.memo)(jt),o=M.Ay.div.withConfig({displayName:"styles__StyledGuideStartModal",componentId:"sc-1woarnk-0"})(["position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.4);z-index:9999;transition:all 0.3s;.modal-bg{z-index:10;opacity:1;cursor:initial;position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;top:50%;right:50%;transform:translate(50%,-60%);transition:all 0.3s;width:400px;padding:20px 20px 14px 20px;background:#FFF;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.image{width:100%;height:180px;border-radius:10px;margin-bottom:20px;img{width:100%;}}.title{color:#333;font-size:18px;font-weight:700;margin-bottom:8px;}.description{color:#333;font-size:14px;font-weight:400;margin-bottom:14px;.step{color:#1684FC;font-weight:500;}.new-user-gift-tips{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,#366eff,#1abccb);}}.start-button{display:flex;width:180px;height:36px;justify-content:center;align-items:center;background-color:#1684FC;border-radius:6px;margin-bottom:10px;color:#ffffff;font-size:14px;font-weight:500;transition:background-color 0.3 ease-in;&:hover{background-color:#459DFD;}&:active{background-color:#1971D1;}.new-user-tips-icon{width:20px;height:20px;}}.guide-close{position:absolute;top:-30px;right:-30px;cursor:pointer;svg{width:24px;height:24px;rect{fill:",";&:hover{fill:",";}}}}}"],Tn=>Tn.theme.color_slider_normal,Tn=>Tn.theme.color_slider_hover);var so=i(47163);function Et(Tn){let{sceneTag:bt="",handleStart:Wt,handleClose:wn}=Tn;const uo=(0,Ht.VC)(bt)==="DS";return(0,a.useEffect)(()=>{var In;(In=MB)==null||(In=In.commonGuideHelper)==null||In.markGuideAsRead(m.c.GUIDE_NOVICE_2309_START)},[]),(0,J.jsx)(o,{children:(0,J.jsxs)("div",{className:"modal-bg",onClick:In=>In.stopPropagation(),children:[(0,J.jsx)("div",{className:"image",children:(0,J.jsx)("img",{src:"/mb-proto2/images/guide/noviceGuides2309/guide_start_background_image.png",alt:I18N.CommonGuides.guide_start_2309_title,draggable:"false"})}),(0,J.jsx)("div",{className:"title",children:uo?I18N.CommonGuides.guide_start_2309_DS_title:I18N.CommonGuides.guide_start_2309_title}),(0,J.jsxs)("div",{className:"description",children:[I18N.CommonGuides.guide_start_2309_desc_1,(0,J.jsxs)("span",{className:"step",children:[" ",uo?5:4," "]}),I18N.CommonGuides.guide_start_2309_desc_2,(0,J.jsx)("span",{className:"new-user-gift-tips",children:I18N.CommonGuides.guide_start_2309_desc_3})]}),(0,J.jsxs)("button",{className:"start-button",onClick:Wt,children:[I18N.CommonGuides.guide_start_2309_button_start,(0,so.w)()==="zh-CN"&&(0,J.jsx)("img",{className:"new-user-tips-icon",src:"https://cdn.modao.cc/dashboard/guide/new_user_gift_tips.png"})]}),(0,J.jsx)("div",{className:"guide-close",onClick:wn,children:(0,J.jsx)(V.C,{name:"design/guides/close"})})]})})}const Jt=Et;var Ot=i(47695);const Ce=Tn=>{const{dispatch:bt,sceneTag:Wt="",onClose:wn}=Tn,[uo,In]=(0,a.useState)(0),[Dn,So]=(0,a.useState)(0),Qt=(0,Ht.VC)(Wt)==="DS",Ln=Qt?Ht.H:Ht.bu,Mn=Ln[uo-1],Rt=(0,Ht.Dx)(Wt,I18N)[Mn],Qe=(0,a.useCallback)(async To=>{var po;const Oo=(0,Ht.VC)(Wt)==="DS";switch(To){case 1:if(Oo)break;await bt({type:"entry:prepare:novice:guide:screen:data",payload:{mtResourceCid:(0,Ht.xR)(Wt),marketTemplateKey:(0,Ht.jI)(Wt),sceneTag:Wt}}),await bt({type:"set:current:popup:panel",payload:{name:Tt.lS.Builtin}});break;case 2:if(!Oo)break;bt({type:"widget-panel:update:platFormType",payload:{platformType:"DS-screen",projectCid:(po=MB.getRootProject())==null?void 0:po.cid}}),bt({type:"widget-panel:update:level1",payload:{level1:"\u6846\u67B6\u80CC\u666F",isScrollLevel1:!0}});break;case 3:if(Oo){var Qo;bt({type:"widget-panel:update:platFormType",payload:{platformType:"DS-screen",projectCid:(Qo=MB.getRootProject())==null?void 0:Qo.cid}}),bt({type:"widget-panel:update:level1",payload:{level1:"\u5730\u56FE",isScrollLevel1:!0}})}break;default:break}},[Wt,bt]),En=(0,a.useCallback)(()=>{MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_NOVICE_2309),wn()},[wn]),qn=(0,a.useCallback)(async()=>{await Qe(1),In(1),Ze.Y.noviceGuide2309StartClick("\u7ACB\u5373\u5F00\u59CB",Wt),["PC","DS"].includes((0,Ht.VC)(Wt))&&bt({type:"entry:set:scale",payload:{scale:30}})},[bt,Qe,Wt]),Hn=(0,a.useCallback)(()=>{bt({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_NOVICE_2309),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_2407_PREVIEW_CLOSE);const To=MB.commonGuideHelper.getState().commonGuidesHasShown;bt({type:"update:taskList:data",payload:{completeList:To}}),bt({type:"update:taskList:isCollapse",payload:{isCollapse:!1}}),Ze.Y.noviceGuide2309StartClick("\u81EA\u884C\u63A2\u7D22",Wt),En()},[Wt,En,bt]),Yn=(0,a.useCallback)(async To=>{const po=Ln[uo-1];if(To&&To!==po)return;if(po&&MB.commonGuideHelper.markGuideAsRead(po),Ze.Y.noviceGuide2309StepClick(uo,Wt),uo===Ln.length){try{await bt({type:"entry:fetch:guideTask:award"})}catch(ea){console.error("guide error:",ea)}setTimeout(()=>En(),200);return}let Oo=uo;if(!Qt)try{var Qo;const ea=(Qo=MB)==null||(Qo=Qo.commonGuideHelper)==null?void 0:Qo.getState().commonGuidesHasShown,_n=Vt._D.filter((nn,Zn)=>Zn+1!==uo).find(nn=>!ea.includes(nn)),Un=Vt._D.indexOf(_n),cn=Un<0?Ln.length:Un;Oo=Math.max(uo,cn)}catch(ea){console.log(ea.message)}if(Oo===Ln.length){try{await bt({type:"entry:fetch:guideTask:award"})}catch(ea){console.error("guide error:",ea)}setTimeout(()=>En(),200);return}await Qe(Oo+1),In(Oo+1)},[uo,Qe,En,Wt]),oo=(0,a.useCallback)(()=>So(To=>(To+1)%10),[]);if((0,a.useEffect)(()=>{window.addEventListener("resize",oo)},[oo]),(0,a.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(m.c.GUIDE_NOVICE_2309,{handleContinue:Yn,handleClose:En,handleResize:oo}),()=>{MB.commonGuideHelper.removeMountGuideCallback(m.c.GUIDE_NOVICE_2309)}),[Yn,En,oo]),(0,a.useEffect)(()=>{if((0,Ot.cz)())return;const To=(0,Ht.VC)(Wt)==="DS"?Ht.g7:[(0,Ht.xR)(Wt)];bt({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:To}})},[Wt,bt]),uo===0){if((0,Ot.cz)()){bt({type:"set:current:popup:panel",payload:{name:Tt.lS.AI}}),bt({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_NOVICE_2309);const To=MB.commonGuideHelper.getState().commonGuidesHasShown;bt({type:"update:taskList:data",payload:{completeList:To}});return}return(0,J.jsx)(Jt,{sceneTag:Wt,handleStart:qn,handleClose:Hn})}return Rt?(0,J.jsx)(Jn,{guideType:Mn,guideConfig:Rt,currentStep:uo,totalStep:Ln.length,sceneTag:Wt,resizeFlag:Dn,dispatch:bt}):null},Pt=Tn=>{const{guideType:bt,sceneTag:Wt,onClose:wn}=Tn,[uo,In]=(0,a.useState)(!0),Dn=(0,a.useCallback)(()=>{wn(),MB.commonGuideHelper.closeGuide(bt),MB.commonGuideHelper.markGuideAsRead(bt),In(!1)},[wn,bt]),So=(0,Ht.Dx)(Wt,I18N)[bt];return(0,a.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(m.c.GUIDE_NOVICE_2408_CREATE_PAGE,{handleClose:Dn}),()=>{MB.commonGuideHelper.removeMountGuideCallback(m.c.GUIDE_NOVICE_2408_CREATE_PAGE)}),[Dn]),(0,J.jsx)(Jn,{guideType:bt,guideConfig:So,sceneTag:Wt,currentStep:5,handleCloseGuide:Dn,isOpenCreatePage:uo})},Nn=(0,a.memo)(Pt),At=Tn=>{const{onClose:bt,guideType:Wt}=Tn,{store:{dispatch:wn,getState:uo}}=Tn,In=uo(),{scene_tag:Dn}=(0,C.PL)(In),So=(0,a.useCallback)(async()=>{var Qt,Ln;(Qt=MB)!=null&&(Qt=Qt.commonGuideHelper)!=null&&Qt.checkGuideHasShown(Wt)||Wt&&((Ln=MB)==null||(Ln=Ln.commonGuideHelper)==null||Ln.markGuideAsRead(Wt))},[Wt]);return(0,a.useEffect)(()=>(window.addEventListener("beforeunload",So),()=>{window.removeEventListener("beforeunload",So)}),[So]),(0,a.useEffect)(()=>{var Qt;(0,ne.BT)((Qt=Object.values((0,Ht.Dx)(Dn,I18N)))==null?void 0:Qt.map(Ln=>Ln==null?void 0:Ln.imgUrl))},[Dn]),Wt===m.c.GUIDE_NOVICE_2309_TIP_1||Wt===m.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,J.jsx)(Nn,{guideType:Wt,sceneTag:Dn,onClose:bt}):(0,J.jsx)(Ce,{dispatch:wn,sceneTag:Dn,onClose:bt})},on=(0,a.memo)(At);var no=i(8342);const mo=M.Ay.div.withConfig({displayName:"styles__StyledBubbleGuide",componentId:"sc-wol0v6-0"})(["position:absolute;padding:4px 4px;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);}}> .content{position:relative;z-index:20;width:max-content;min-width:2em;min-height:2em;padding:8px 16px;background-color:",";border-radius:10px;color:#fff;display:flex;.text{max-width:156px;&:lang(en){max-width:max-content;}}.bottom{display:flex;justify-content:end;margin-top:8px;.btn{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;}}}.times-icon{margin-left:16px;cursor:pointer;width:18px;height:18px;}&#MD_GUIDE_2506_LIB_INTERGRATED,&#MD_GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT,&#MD_GUIDE_DRAW_IO_NAV,&#MD_GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT{width:300px;.content{padding:18px 20px 20px 20px;display:flex;flex-direction:column;width:100%;.text{max-width:max-content;.title{font-size:14px;font-weight:500;margin-bottom:10px;}.desc{font-size:12px;}}.times-icon{position:absolute;top:16px;right:19px;}}}&#MD_GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT{.arrow{svg{transform:rotate(180deg);}}}"],Tn=>Tn.theme.color_proto,Tn=>Tn.theme.color_proto,Tn=>Tn.theme.color_proto),mn=(0,M.DU)(["#popups-template-panel{.lib-item-container.GUIDE_2506_LIB_INTERGRATED{",";}}"],He.K6),ht=(Tn,bt,Wt)=>{const wn=document.querySelector(Tn);if(!wn)return null;const{top:uo,left:In,bottom:Dn,right:So,width:Qt,height:Ln}=wn.getBoundingClientRect(),{x:Mn=0,y:Rt=0}=Wt||{};switch(bt){case"top":return{bottom:Rt+window.innerHeight-uo+4,left:Mn+In+Qt/2};case"bottom":return{top:Rt+Dn+4,left:Mn+In+Qt/2};case"left":return{top:Rt+uo+Ln/2,right:Mn+In+4};case"right":return{top:Rt+uo+Ln/2,left:Mn+So+4}}},Fn=Tn=>{let{guideType:bt,onClose:Wt,store:wn}=Tn;const{dispatch:uo}=wn,In=()=>{Wt(),bt===m.c.GUIDE_2407_PREVIEW?MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_2407_PREVIEW_CLOSE):MB.commonGuideHelper.markGuideAsRead(bt);const Hn=MB.commonGuideHelper.getState().commonGuidesHasShown;uo({type:"update:taskList:data",payload:{completeList:Hn}})},Dn=()=>bt===m.c.GUIDE_2506_LIB_INTERGRATED||bt===m.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT?(0,J.jsx)(mn,{}):null,So=(0,no.c)(I18N)[bt],{relativePos:Qt,selector:Ln,content:Mn,offset:Rt,arrowPosition:Qe,hasKnow:En=!1}=So,qn=ht(Ln,Qt,Rt);return qn?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(mo,{id:"MD_"+bt,className:h()("on-"+Qt),style:qn,children:[(0,J.jsx)("div",{className:"arrow",style:Qe,children:(0,J.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,J.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,J.jsxs)("div",{className:"content",children:[(0,J.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Mn}}),(0,J.jsx)(V.C,{className:"times-icon",name:"general/times",onClick:In}),En&&(0,J.jsx)("div",{className:"bottom",children:(0,J.jsx)("div",{className:"btn primary",onClick:In,children:I18N.CommonGuides.v8guide3})})]})]}),Dn()]}):null},Yt=()=>({[m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE]:{selector:"."+m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,arrowPosition:{right:-8},relativePos:"left",offset:{x:312,y:-2},title:"\u5E38\u7528\u64CD\u4F5C",content:"\u5BF9\u9F50\u3001\u56FE\u5C42\u3001\u7EC4\u5408\u7B49\u5E38\u7528\u64CD\u4F5C\u805A\u5408\u5728\u53F3\u4FA7\u9762\u677F\u3002"}});var Gt=i(77257);const Bn=(0,M.Ay)(Gt.eA).withConfig({displayName:"styles__StyledToolTipGuide",componentId:"sc-124w038-0"})(["> .content{.footer{justify-content:flex-end;}}"]),qt=(Tn,bt,Wt)=>{const wn=document.querySelector(Tn);if(!wn)return null;const{top:uo,left:In,bottom:Dn,right:So,width:Qt,height:Ln}=wn.getBoundingClientRect(),{x:Mn=0,y:Rt=0}=Wt||{};switch(bt){case"top":return{bottom:Rt+window.innerHeight-uo+4,left:Mn+In+Qt/2};case"bottom":return{top:Rt+Dn+4,left:Mn+In+Qt/2};case"left":return{top:Rt+uo+Ln/2,left:In-Mn-6};case"right":return{top:Rt+uo+Ln/2,left:So-Mn+4}}},Zt=Tn=>{let{guideType:bt,onClose:Wt,store:wn}=Tn;const{dispatch:uo,getState:In}=wn,Dn=In(),So=Yt()[m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE],{relativePos:Qt,selector:Ln,title:Mn,content:Rt,arrowPosition:Qe,offset:En}=So,qn=(0,Ot.XM)(),Hn=(0,fe.MZ)(Dn);(0,a.useEffect)(()=>{var To;(To=MB)==null||(To=To.commonGuideHelper)==null||To.markGuideAsRead(bt)},[]);const Yn=qt(Ln,Qt,En),oo=()=>{var To,po;Wt(),(To=MB.commonGuideHelper)==null||To.markGuideAsRead(m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE);const Oo=((po=MB)==null||(po=po.commonGuideHelper)==null||(po=po.getState())==null?void 0:po.commonGuidesHasShown)||[];uo({type:"update:taskList:data",payload:{completeList:Oo}})};return qn||!Yn?null:(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(Bn,{id:"MD_"+bt,className:h()("on-"+Qt),style:Yn,children:[(0,J.jsx)("div",{className:"arrow",style:Qe,children:(0,J.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,J.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,J.jsxs)("div",{className:"content",children:[(0,J.jsx)("svg",{className:"close-icon",onClick:oo,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,J.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,J.jsx)("span",{className:"title",children:Mn}),(0,J.jsx)("span",{className:"main-content",children:Rt}),(0,J.jsx)("div",{className:"footer",children:(0,J.jsx)("span",{className:"btn-next",onClick:oo,children:"\u77E5\u9053\u4E86"})})]})]})})},jn=(0,a.memo)(Zt),ro=(Tn,bt,Wt)=>{switch(Tn){case m.c.GUIDE_POSITION_STICKY_FEATURES:case m.c.GUIDE_NEW_OVERLAY_ONCE:case m.c.GUIDE_VECTOR_TASK_QUICK_CREATE:case m.c.GUIDE_VECTOR_TASK_ENDING_EDITING:case m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR:D({Component:lt,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.GUIDE_NOVICE_2309:case m.c.GUIDE_NOVICE_2309_TIP_1:case m.c.GUIDE_NOVICE_2408_CREATE_PAGE:D({Component:on,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.GUIDE_OLD_NEW_CREATE_PAGE:case m.c.GUIDE_OLD_ADD_LINE_FEATURE:case m.c.GUIDE_OLD_UPGRADE_ANNOTATE:case m.c.GUIDE_OLD_USE_COMMENT:D({Component:Ut,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.GUIDE_NOVICE_V9_2408:case m.c.GUIDE_NOVICE_V9_2408_STEP_1:case m.c.GUIDE_NOVICE_V9_2408_STEP_2:case m.c.GUIDE_NOVICE_V9_2408_STEP_3:D({Component:G.A,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE:D({Component:jn,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.GUIDE_ALL_REPLACE_PAGE:case m.c.GUIDE_SELECT_STICKY:case m.c.GUIDE_BASKET_QUICK_COPY_CANVAS:case m.c.GUIDE_PAGE_CREAT_LINK:case m.c.GUIDE_PAGE_CREAT_LINK2:case m.c.GUIDE_TO_PREVIEW_IN_SHARE:case m.c.GUIDE_MORE_PAGE:case m.c.GUIDE_PREVIEW_VIEW_BTN:case m.c.GUIDE_BASKET_MUBAN_USE:case m.c.GUIDE_FIND_MORE_SCENE_COMBO:case m.c.GUIDE_PUBLISH_COMBO_TO_MKT:case m.c.GUIDE_COPY_AS_PNG:D({Component:Ge,props:{store:bt,guideType:Tn,params:Wt}});break;case m.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE:case m.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN:case m.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN:case m.c.GUIDE_2309_CLICK_SHARE:case m.c.GUIDE_2407_PREVIEW:case m.c.GUIDE_2506_LIB_INTERGRATED:case m.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT:{D({Component:Fn,props:{store:bt,guideType:Tn,params:Wt}});break}default:break}}},22375:(eo,ot,i)=>{"use strict";i.d(ot,{Cl:()=>P,_n:()=>Y,h0:()=>q,kA:()=>J,yK:()=>M});var a=i(15722);const k={name:"\u5168\u90E8",value:a.y,position:0},M=[k,{name:"App",value:"app",position:1},{name:"Web\u540E\u53F0",value:"web_back",position:2},{name:"\u5C0F\u7A0B\u5E8F",value:"applet",position:3},{name:"Web\u7F51\u7AD9",value:"website",position:4},{name:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"display_screen",position:5},{name:"HMI",value:"HMI",position:6},{name:"\u5E73\u677F\u7AEF",value:"ipad",position:7},{name:"\u667A\u80FD\u7535\u89C6",value:"smart_tv",position:8},{name:"\u6D3B\u52A8",value:"activity",position:9},{name:"\u624B\u8868",value:"apple_watch",position:10},{name:"\u5E7B\u706F\u7247",value:"slide",position:11},{name:"\u5176\u5B83",value:"other",position:12}],P=[k,{name:"App",value:"app",position:1},{name:"Web\u540E\u53F0",value:"web_back",position:2},{name:"\u5C0F\u7A0B\u5E8F",value:"applet",position:3},{name:"Web\u7F51\u7AD9",value:"website",position:4},{name:"\u5E73\u677F\u7AEF",value:"ipad",position:7},{name:"\u5176\u5B83",value:"other",position:12}];let C=function(l){return l.Platform="platform",l.PLabel="plabel",l.CLabel="clabel",l.Category="category",l}({});const q=[{name:"\u70ED\u95E8\u63A8\u8350",value:"recommend"},{name:"\u6700\u65B0\u53D1\u5E03",value:"recent"},{name:"\u6700\u591A\u6D4F\u89C8",value:"views"},{name:"\u6700\u591A\u4F7F\u7528",value:"used"}],Y={Everyone:"everyone",MdMemberFree:"member_free",MdMemberDiscount:"member_discount",MdOriginPrice:"origin_price",MktMemberFree:"mt_member_free",MktMemberDiscount:"mt_member_discount",MktOriginPrice:"mt_origin_price"},J=[{label:"\u5168\u90E8\u4F5C\u54C1",key:a.y},{type:"divider",key:""},{label:"\u514D\u8D39",key:Y.Everyone},{label:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",key:Y.MktMemberFree},{label:"\u4F1A\u5458\u514D\u8D39",key:Y.MdMemberFree}];let O=function(l){return l.Basic="project_basic",l.Page="screen_list",l.Combo="combo_group",l.Icon="icon_group",l.Default="default",l}({})},22424:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"61",height:"17",viewBox:"0 0 61 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_104)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_104)",fillOpacity:"0.68"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_104)",fillOpacity:"0.62"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",stroke:"#F6E0B1",strokeWidth:"0.5"}),a.createElement("path",{d:"M6.55 6.48C8.34 5.71 9.59 4.8 10.55 3.5H11.6C12.57 4.81 13.93 5.73 15.64 6.48L15.34 7.6C13.49 6.85 12.07 5.84 11.08 4.56C10.17 5.84 8.65 6.85 6.85 7.6L6.55 6.48ZM12.02 11.09H15.43V12.13H6.71L6.61 11.09H7.94V7.55H9.12V11.09H10.8V6.18H12.02V8.06H14.46V9.06H12.02V11.09ZM25.04 4.9C24.86 6.42 24.58 7.95 24.22 9.47H23.02C23.38 7.95 23.66 6.42 23.84 4.9H25.04ZM17.36 9.47C17.16 7.95 16.88 6.42 16.54 4.9H17.74C18.08 6.42 18.36 7.95 18.56 9.47H17.36ZM22.53 11.09H25.3V12.13H16.43L16.34 11.09H19.09V3.5H20.31V11.09H21.31V3.5H22.53V11.09ZM31.04 10.96H33.65L32.72 7.57H33.94L34.89 11.08C35.05 11.66 34.79 12.04 34.19 12.04H29.72L29.62 10.96H29.81C30.81 8.6 31.2 6.62 31.28 3.7H32.56C32.5 6.48 32.1 8.67 31.04 10.96ZM28.86 9.28V12.5H27.68V9.07C27.54 9.05 27.39 9.04 27.24 9.03C27.18 9.7 27.04 10.49 26.77 11.25L25.81 11C26.21 9.81 26.34 8.69 26.34 8.05V7.4H27.29V7.96C27.42 7.97 27.55 7.98 27.68 7.99V7.04H26.15L26.06 6H27.68V4.91H27.51H26.24L26.14 3.87H27.51C28.43 3.87 29.29 3.88 30.08 3.64V4.62C29.67 4.76 29.27 4.84 28.86 4.87V6H30.26V7.04H28.86V8.19C29.29 8.29 29.71 8.42 30.11 8.58V9.68C29.71 9.52 29.29 9.38 28.86 9.28ZM42.7 10.59H38.44V12.5H37.22V8.32C36.87 8.61 36.5 8.89 36.09 9.18L35.62 8.02C36.69 7.22 37.48 6.42 38.05 5.48H35.91L35.8 4.42H38.57C38.68 4.13 38.78 3.82 38.87 3.5H40.25C40.18 3.82 40.09 4.13 39.99 4.42H44.63V5.48H39.55C39.41 5.77 39.25 6.04 39.07 6.31H43.12C43.6 6.31 43.92 6.63 43.92 7.11V11.42C43.92 12.05 43.56 12.42 42.84 12.45C42.35 12.47 41.56 12.46 40.95 12.32L40.67 11.3C41.14 11.41 41.92 11.48 42.35 11.45C42.57 11.43 42.7 11.31 42.7 11.12V10.59ZM42.7 9.63V8.95H38.44V9.63H42.7ZM42.7 7.99V7.46C42.7 7.36 42.65 7.31 42.55 7.31H38.59C38.49 7.31 38.44 7.37 38.44 7.46V7.99H42.7ZM51.05 8.84V10.83C51.05 11.13 51.19 11.31 51.5 11.35C51.88 11.4 52.31 11.4 52.68 11.35C53.01 11.31 53.17 11.12 53.17 10.8V9.45L54.39 9.61V11.15C54.39 11.82 54.03 12.3 53.21 12.39C52.47 12.47 51.66 12.47 50.94 12.39C50.28 12.32 49.83 11.82 49.83 11.15V9.57C49.44 9.78 49.03 9.97 48.59 10.16L48.27 8.97C48.84 8.73 49.36 8.48 49.83 8.2V3.5H51.05V7.35C51.98 6.58 52.63 5.69 53.06 4.7H54.34C53.72 6.41 52.64 7.75 51.05 8.84ZM46.41 7.06H47.24C47.69 7.06 47.94 7.31 47.94 7.76V12.5H46.72V7.87H45.62L45.25 6.72C46.48 5.67 47.17 4.57 47.45 3.5H48.74C48.38 4.91 47.61 6.13 46.41 7.06Z",fill:"#F6E0B1"}),a.createElement("path",{d:"M6.55 6.48C8.34 5.71 9.59 4.8 10.55 3.5H11.6C12.57 4.81 13.93 5.73 15.64 6.48L15.34 7.6C13.49 6.85 12.07 5.84 11.08 4.56C10.17 5.84 8.65 6.85 6.85 7.6L6.55 6.48ZM12.02 11.09H15.43V12.13H6.71L6.61 11.09H7.94V7.55H9.12V11.09H10.8V6.18H12.02V8.06H14.46V9.06H12.02V11.09ZM25.04 4.9C24.86 6.42 24.58 7.95 24.22 9.47H23.02C23.38 7.95 23.66 6.42 23.84 4.9H25.04ZM17.36 9.47C17.16 7.95 16.88 6.42 16.54 4.9H17.74C18.08 6.42 18.36 7.95 18.56 9.47H17.36ZM22.53 11.09H25.3V12.13H16.43L16.34 11.09H19.09V3.5H20.31V11.09H21.31V3.5H22.53V11.09ZM31.04 10.96H33.65L32.72 7.57H33.94L34.89 11.08C35.05 11.66 34.79 12.04 34.19 12.04H29.72L29.62 10.96H29.81C30.81 8.6 31.2 6.62 31.28 3.7H32.56C32.5 6.48 32.1 8.67 31.04 10.96ZM28.86 9.28V12.5H27.68V9.07C27.54 9.05 27.39 9.04 27.24 9.03C27.18 9.7 27.04 10.49 26.77 11.25L25.81 11C26.21 9.81 26.34 8.69 26.34 8.05V7.4H27.29V7.96C27.42 7.97 27.55 7.98 27.68 7.99V7.04H26.15L26.06 6H27.68V4.91H27.51H26.24L26.14 3.87H27.51C28.43 3.87 29.29 3.88 30.08 3.64V4.62C29.67 4.76 29.27 4.84 28.86 4.87V6H30.26V7.04H28.86V8.19C29.29 8.29 29.71 8.42 30.11 8.58V9.68C29.71 9.52 29.29 9.38 28.86 9.28ZM42.7 10.59H38.44V12.5H37.22V8.32C36.87 8.61 36.5 8.89 36.09 9.18L35.62 8.02C36.69 7.22 37.48 6.42 38.05 5.48H35.91L35.8 4.42H38.57C38.68 4.13 38.78 3.82 38.87 3.5H40.25C40.18 3.82 40.09 4.13 39.99 4.42H44.63V5.48H39.55C39.41 5.77 39.25 6.04 39.07 6.31H43.12C43.6 6.31 43.92 6.63 43.92 7.11V11.42C43.92 12.05 43.56 12.42 42.84 12.45C42.35 12.47 41.56 12.46 40.95 12.32L40.67 11.3C41.14 11.41 41.92 11.48 42.35 11.45C42.57 11.43 42.7 11.31 42.7 11.12V10.59ZM42.7 9.63V8.95H38.44V9.63H42.7ZM42.7 7.99V7.46C42.7 7.36 42.65 7.31 42.55 7.31H38.59C38.49 7.31 38.44 7.37 38.44 7.46V7.99H42.7ZM51.05 8.84V10.83C51.05 11.13 51.19 11.31 51.5 11.35C51.88 11.4 52.31 11.4 52.68 11.35C53.01 11.31 53.17 11.12 53.17 10.8V9.45L54.39 9.61V11.15C54.39 11.82 54.03 12.3 53.21 12.39C52.47 12.47 51.66 12.47 50.94 12.39C50.28 12.32 49.83 11.82 49.83 11.15V9.57C49.44 9.78 49.03 9.97 48.59 10.16L48.27 8.97C48.84 8.73 49.36 8.48 49.83 8.2V3.5H51.05V7.35C51.98 6.58 52.63 5.69 53.06 4.7H54.34C53.72 6.41 52.64 7.75 51.05 8.84ZM46.41 7.06H47.24C47.69 7.06 47.94 7.31 47.94 7.76V12.5H46.72V7.87H45.62L45.25 6.72C46.48 5.67 47.17 4.57 47.45 3.5H48.74C48.38 4.91 47.61 6.13 46.41 7.06Z",fill:"url(#paint3_linear_291_104)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_104",x1:"27.7727",y1:"3.05333",x2:"32.6585",y2:"19.0268",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#131210"}),a.createElement("stop",{offset:"1",stopColor:"#515459"})),a.createElement("linearGradient",{id:"paint1_linear_291_104",x1:"2.10714",y1:"16.5",x2:"16.0953",y2:"8.73261",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#682B00"}),a.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_104",x1:"5.35294",y1:"2.06943",x2:"8.89102",y2:"11.0906",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF8DF"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_104",x1:"55.2552",y1:"15.4203",x2:"42.2763",y2:"9.62375",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#EFB66D"}),a.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"}))))})},22440:(eo,ot,i)=>{"use strict";i.d(ot,{Nd:()=>V});var a=i(38502),k=i(70768),M=i(78401),P=i(37342),C=i(67787),q=i(58320);const Y=(0,C.Ay)(q.H).withConfig({displayName:"styles__StyledWSRenewModal",componentId:"sc-1m4aq3c-0"})(["",""],We=>ENV.IS_MO&&We.action==="comment_deny_limitation"?"&.functional-modal {\n .confirm-btn {\n background-color: #425fff;\n border-radius: 2px;\n color: #fff;\n padding: 0 1em;\n font-weight: normal;\n\n &:not([disabled]):hover {\n background-color: #3c4ee5;\n color: #fff;\n }\n }\n }":null),J=(0,C.DU)([".renew-modal{z-index:1049 !important;}"]);var O=i(72214);function l(We,re){const ve=(0,M.XN)(),we=(0,k.createRoot)(ve),Ae=()=>setTimeout(()=>{we.unmount(),document.body.removeChild(ve)});we.render((0,O.jsx)(We,{...re,onClose:Ae}))}const D=We=>(0,P.JW)("/renew?"+new URLSearchParams(We).toString(),"_blank","noreferrer"),m=()=>(0,P.JW)("/pricing?next="+location.href,"_blank","noreferrer"),E=(We,re)=>{const ve={...re,orgCid:We,checkoutArea:re.from||"proto"};MB.global.popupHelper.chargeAsync(ve)},f=(We,re)=>{We?MB.global.popupHelper.chargeAsync({mode:"org",orgCid:We,payEntrance:re.payEntrance}):MB.global.popupHelper.chargeAsync({mode:"solo",payEntrance:re.payEntrance})},h=We=>{let{reason:re,data:ve,onClose:we}=We;return(0,O.jsxs)(Y,{isOpen:!0,portalClassName:"renew-modal",title:I18N.dModals.renew_prompt.title,isUsePortal:!1,onConfirm:ENV.IS_MO?()=>{f(ve.orgCid,ve.paymentRenewModalParams),we()}:ve&&ve.renewRedirectParams?()=>D(ve.renewRedirectParams):ve.gotoPrice?()=>m():ve.paymentRenewModalParams?()=>{E(ve.orgCid,ve.paymentRenewModalParams),we()}:null,confirmText:ve&&ve.renewRedirectParams?I18N.dModals.renew_now:ve.submit?ve.submit:null,canConfirm:!0,onClose:we,action:ve.action,canCancel:!1,children:[ve.format===I18N.dModals.apk_file?(0,O.jsx)("p",{children:I18N.dModals.renew_prompt.apk_exportable_on_web}):(0,O.jsx)("p",{children:S(re,ve)}),(0,O.jsx)(J,{})]})},S=(We,re)=>{let{storage:ve="",format:we="",action:Ae=MB.user&&MB.user.expired?"renew":"upgrade",role:Oe="user"}=re;return(I18N.dModals.renew_prompt[We]+(Ae?I18N.dModals.renew_prompt[Oe+"_"+Ae]:"")).replace("{storage}",ve).replace("{format}",we)},V=function(We,re){re===void 0&&(re={}),l(h,{reason:We,data:re})}},23036:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M6.99843 9.84928C6.99843 10.4015 6.55058 10.8491 5.99843 10.8493C5.44615 10.8493 4.99843 10.4016 4.99843 9.84928V5.84928H3.04043C2.62132 5.84928 2.38833 5.36513 2.6498 5.03776L5.60976 1.33756C5.80987 1.08762 6.18984 1.08773 6.39003 1.33756L9.35 5.03776C9.61169 5.36514 9.37855 5.84928 8.95937 5.84928H6.99843V9.84928Z",fill:"url(#paint0_linear_511_62)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_511_62",x1:"5.99995",y1:"1.15015",x2:"6.00049",y2:"12.4998",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.373469",stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"}))))})},23138:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_94)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_94)",fillOpacity:"0.5"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_94)",fillOpacity:"0.8"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_94)",strokeWidth:"0.5"}),a.createElement("path",{d:"M15.49 4.21H16.44L16.73 5.37H15.78L15.49 4.21ZM10.39 5.77L8.35 5.08V4.08L10.39 4.77V5.77ZM15.27 6.55C15.42 8.47 15.72 10.24 15.98 11.33C16.12 11.89 16.4 11.97 17.18 11.59L17.02 12.75C15.86 13.16 15.2 13.02 14.94 12.05C14.58 10.71 14.24 8.6 14.09 6.55H10.91L10.81 5.52H14.04L13.96 4H15.11L15.2 5.52H17.07V6.55H15.27ZM13.01 11.11L14.14 10.93V11.95L10.82 12.51L10.64 11.66L8.71 12.88L8.51 11.65L8.74 11.51C8.83 10.92 8.85 10.27 8.85 9.72V7.67C8.85 7.58 8.79 7.51 8.7 7.51H8.06L7.96 6.41H9.31C9.77 6.41 10.02 6.66 10.02 7.12V9.73C10.02 10.12 9.98 10.47 9.92 10.8L10.78 10.27V11.46L11.85 11.29V8.72H10.95L10.85 7.7H13.91V8.72H13.01V11.11ZM25.02 10.11H22.93V12.89H21.73V10.11H19.55C19.45 11.28 19.25 12.17 18.89 13.01H17.62C18.24 11.42 18.42 10.14 18.42 7.78V5.2C18.42 4.66 18.68 4.4 19.22 4.4H25.43C25.97 4.4 26.23 4.66 26.23 5.2V11.82C26.23 12.46 25.76 12.95 25.05 12.99C24.46 13.02 24.02 12.98 23.54 12.86L23.27 11.83C24.14 11.98 24.1 11.99 24.52 11.96C24.85 11.94 25.02 11.77 25.02 11.45V10.11ZM25.02 9.09V7.77H22.93V9.09H25.02ZM25.02 6.75V5.59C25.02 5.49 24.97 5.44 24.87 5.44H22.93V6.75H25.02ZM21.73 9.09V7.77H19.63V7.78C19.63 8.25 19.62 8.69 19.61 9.09H21.73ZM21.73 6.75V5.44H19.78C19.68 5.44 19.63 5.49 19.63 5.59V6.75H21.73Z",fill:"#C6500F"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#C6500F"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_94",x1:"23.2273",y1:"1.59091",x2:"29.9893",y2:"18.2067",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFCC7C"}),a.createElement("stop",{offset:"1",stopColor:"#FFF1CC"})),a.createElement("linearGradient",{id:"paint1_linear_291_94",x1:"-2.55304",y1:"20.9444",x2:"9.30572",y2:"2.20874",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF7658"}),a.createElement("stop",{offset:"1",stopColor:"#D55C5C",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_94",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_94",x1:"0.867647",y1:"8",x2:"50.8676",y2:"8",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFD897"}),a.createElement("stop",{offset:"1",stopColor:"#FFEDC6"}))))})},23200:(eo,ot,i)=>{"use strict";i.d(ot,{$:()=>Y});var a=i(38502),k=i(53732),M=i.n(k),P=i(67787),C=i(17307),q=i(72214);const Y=O=>D=>{const[m,E]=(0,a.useState)(!1),f=(0,a.useRef)(null),{className:h=""}=D,S=()=>{clearTimeout(f.current),E(!0)},V=()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{E(!1)},200)};return(0,q.jsxs)(J,{orientation:D.orientation,vacuum:D.vacuum,onMouseLeave:V,className:h,children:[(0,q.jsx)("div",{className:M()("toggleable-zone",{"is-visible":D.isVisible,"pane-visible":D.isVisible}),onMouseEnter:S,children:(0,q.jsx)(O,{...D})}),(0,q.jsx)("button",{className:M()("toggle-button",D.guideKey||"",{[D.orientation]:D.orientation,visible:m,"pane-visible":D.isVisible}),onClick:D.toggleFunc,onMouseEnter:S,children:(0,q.jsx)(C.C,{name:"common/back/new"})})]})},J=P.Ay.div.withConfig({displayName:"ToggleVisibilityButtonHOC__StyledToggleWrapper",componentId:"sc-10pgtyu-0"})(["display:flex;height:100%;width:100%;position:relative;.toggleable-zone{display:flex;flex-direction:column;height:100%;width:0;&.is-visible{width:100%;}&:not(.pane-visible)::after{width:48px;",";}&::after{content:'';position:absolute;top:0;",";width:","px;height:100%;}}.toggle-button{position:absolute;display:flex;align-items:center;justify-content:center;background-color:",";border:1px solid ",";transition:all 0.3s ease-in-out;visibility:hidden;opacity:0;width:16px;height:44px;flex-shrink:0;border-radius:8px;top:40%;.svg-icon:not(.progress):not(.pane-visible){width:6px;height:12px;path{fill:",";}}&:hover{.svg-icon:not(.pane-visible) > path{fill :",";}}&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}&.left:not(.pane-visible){.svg-icon{rotate:180deg;}}&.right.pane-visible{.svg-icon{rotate:180deg;}}&.left{transform:translateY(-40%);}",";}"],O=>O.orientation==="right"?"left: -48px":"right: -48px",O=>O.orientation==="right"?"left: -"+(O.vacuum>0?14+O.vacuum:20)+"px":"right: -"+(O.vacuum>0?14+O.vacuum:20)+"px",O=>O.vacuum>0?14:20,O=>O.theme.color_bg_white,O=>O.theme.color_bg_border_02,O=>O.theme.color_text_L3,O=>O.theme.color_text_L1,O=>O.orientation==="right"?"left: -"+(O.vacuum>0?14+O.vacuum:22)+"px":"right: -"+(O.vacuum>0?14+O.vacuum:22)+"px")},23522:(eo,ot,i)=>{"use strict";i.d(ot,{C:()=>a,g:()=>k});const a="#266fff",k={[a]:["#eef5ff","#faf5ff","#bcd8ff","#8ec0ff","#599dff","#266fff","#1b56f5","#1441e1","#1735b6","#19328f","#142057"],"#6366f1":["#eeeeff","#e0e1ff","#c7c8fe","#a5a7fc","#8184f8","#6366f1","#4649e5","#383bca","#3032a3","#2e3081","#1b1c4b"],"#8b5cf6":["#f7f3ff","#efe9fe","#e2d6fe","#cbb5fd","#ad8bfa","#8b5cf6","#713aed","#5e28d9","#4e21b6","#421d95","#2a1065"],"#a855f7":["#faf5ff","#f4e8ff","#ebd5ff","#dab4fe","#c184fc","#a855f7","#9133ea","#7a22ce","#6621a8","#531c87","#370764"],"#d946ef":["#fef4ff","#fce8ff","#f8d0fe","#f1abfc","#e879f9","#d946ef","#bc26d3","#9c1caf","#80198f","#691a75","#44044e"],"#ec4899":["#fdf2f7","#fce7f1","#fbcfe5","#f9a8d0","#f472b2","#ec4899","#db2780","#be186a","#9d1759","#83184d","#50072b"],"#f43f5e":["#fff1f3","#ffe4e9","#fecdd5","#fda4b3","#fb7189","#f43f5e","#e11d3f","#be122f","#9f122a","#881327","#4c0511"],"#ef4444":["#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#450a0a"],"#f97316":["#fff4ed","#ffe6d5","#feccaa","#fdac74","#fb8a3c","#f97316","#ea670c","#c2570c","#9a4a12","#7c3d12","#432007"],"#f59e0b":["#fff8eb","#feeac7","#fdd28a","#fcbb4d","#fbab24","#f59e0b","#d98b06","#b47409","#92610e","#78510f","#452c03"],"#eab308":["#fef9e8","#fef0c3","#fee28a","#fdd147","#fac215","#eab308","#ca9a04","#a17c07","#85680e","#715a12","#423306"],"#84cc16":["#f5fee7","#e9fccb","#d5f99d","#baf264","#a0e635","#84cc16","#68a30d","#517c0f","#426212","#3a5314","#1e2e05"],"#22c55e":["#f0fdf5","#dcfce8","#bbf7d1","#86efad","#4ade80","#22c55e","#16a34a","#15803c","#166533","#14532b","#052e14"],"#10b981":["#ecfdf7","#d1faec","#a7f3da","#6ee7bf","#34d39e","#10b981","#059666","#047852","#065f42","#064e36","#022c1e"],"#14b8a6":["#f0fdfc","#ccfbf6","#99f6ec","#5eeadb","#2dd4c2","#14b8a6","#0d9485","#0f766b","#115e56","#134e48","#042f2a"],"#06b6d4":["#ecfcff","#cff7fe","#a5effc","#67e4f9","#22d0ee","#06b6d4","#0899b2","#0e7d90","#156775","#165863","#083b44"],"#0ea5e9":["#f0faff","#e0f5fe","#bae8fd","#7dd5fc","#38bcf8","#0ea5e9","#028ac7","#0370a1","#075e85","#0c506e","#083549"],"#697486":["#f6f7f9","#edeef1","#d7dae0","#b4bbc5","#8b95a5","#697486","#576172","#474e5d","#3d434f","#363b44","#24262d"]}},24457:(eo,ot,i)=>{"use strict";i.d(ot,{c:()=>P});var a=i(12211),k=i(40610),M=i(20119);const P=(0,a.Mz)([M.c],C=>C&&(0,k.gM)(C.hotAttr.type)?C:null)},24492:(eo,ot,i)=>{"use strict";i.d(ot,{c:()=>k});var a=i(67787);const k=(0,a.AH)(["*::selection{background-color:",";text-shadow:none;}*::-webkit-selection{background-color:",";text-shadow:none;}*::-moz-selection{background-color:",";text-shadow:none;}"],M=>M.theme.color_textarea,M=>M.theme.color_textarea,M=>M.theme.color_textarea)},25337:(eo,ot,i)=>{"use strict";i.d(ot,{EX:()=>P,WG:()=>k,WR:()=>C,av:()=>J,mk:()=>M});function a(O){return O*Math.PI/180}function k(O,l,D){const m=a(D),E=Math.cos(m),f=Math.sin(m),h=O.x-l.x,S=O.y-l.y;return{x:h*E-S*f+l.x,y:h*f+S*E+l.y}}function M(O,l,D){const{x:m,y:E,w:f,h,rotate:S}=O;let V;switch(D){case"t":V={x:m+f/2,y:E};break;case"b":V={x:m+f/2,y:E+h};break;case"l":V={x:m,y:E+h/2};break;case"r":V={x:m+f,y:E+h/2};break;case"tl":V={x:m,y:E};break;case"tr":V={x:m+f,y:E};break;case"bl":V={x:m,y:E+h};break;case"br":V={x:m+f,y:E+h};break;default:break}return k(V,l,S)}function P(O,l){return{x:O.x+(l.x-O.x)/2,y:O.y+(l.y-O.y)/2}}function C(O){return(O+360)%360}function q(O){return Math.abs(Math.sin(a(O)))}function Y(O){return Math.abs(Math.cos(a(O)))}function J(O,l){l===void 0&&(l="deg");let D;if(l==="deg")D=O-O%45;else{let m=Math.round(O*(180/Math.PI));m=m-m%45,D=m*Math.PI/180}return D}},25530:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>l});var a=i(38502),k=i(15921);const M=["font-family","font-size","font-weight","font-style","color","text-style","text-decoration","text-decoration-line","text-align","line-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-color","border-style","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","background-color","fill","position"],P={svg:["data-is-multi-color-icon"]},C=["top","bottom","left","right","width","height","x","y"],q=(D,m)=>{const E=Math.max(D.top,m.top),f=Math.min(D.bottom,m.bottom),h=Math.max(D.left,m.left),S=Math.min(D.right,m.right);return{x:D.x,y:D.y,top:E,bottom:f,left:h,right:S,width:S-h,height:Math.max(f-E,0)}},Y=(D,m)=>{var E;const f=D==null||(E=D.style)==null?void 0:E.margin;if(!m||!f||!f.includes("auto"))return;const[h,S=h,V=h,We=S]=f.split(" "),re={top:h,right:S,bottom:V,left:We};let ve={margin:f};return Object.keys(re).forEach(we=>{re[we]==="auto"&&parseFloat(m==null?void 0:m.getPropertyValue("margin-"+we))===0&&(ve||(ve={}),ve["margin-"+we]="auto")}),ve},J=(D,m)=>{const E=P[m];if(!E||E.length===0)return{};const f={};return E.forEach(h=>{f[h]=D.getAttribute(h)}),f},O=D=>{if(!D||D.tagName.toLowerCase()!=="svg")return null;const m=D.style.color;if(m&&m!=="currentColor")return{color:m};const E=Array.from(D.querySelectorAll("*"));for(const f of E){const h=f.getAttribute("fill");if(h&&h!=="none"&&h!=="currentColor"&&(h.startsWith("#")||h.startsWith("rgb")))return{color:h}}return null},l=(D,m,E)=>{const[f,h]=(0,a.useState)();return(0,a.useEffect)(()=>{const S=()=>{var re,ve;if(!m||!D)return h(void 0);const{clientWidth:we,clientHeight:Ae}=D,Oe={top:0,left:0,right:we,bottom:Ae-1,width:we,height:Ae,x:0,y:0},Be=q(m.getBoundingClientRect(),Oe),tt=E?(re=m.ownerDocument.defaultView)==null?void 0:re.getComputedStyle(m):null,Xe=(ve=m.tagName)==null?void 0:ve.toLowerCase();E&&(0,k.FJ)(m),h(ne=>{if(!ne||ne.element!==m){const Te=E&&Y(m,tt),Ge=E?M.reduce((Ze,fe)=>(Ze[fe]=tt==null?void 0:tt.getPropertyValue(fe),Ze),{}):{};Te&&Object.assign(Ge,Te);const ue=E&&O(m);ue&&Object.assign(Ge,ue);const Me=J(m,Xe);return{element:m,nodeName:Xe,rect:Be,computedStyle:Ge,stateId:Date.now(),attributes:Me}}let lt=ne;const rt=ne.rect;if(C.some(Te=>Be[Te]!==rt[Te])&&(lt={...lt,rect:Be}),E){const Te=ne.computedStyle,Ge={...Te},ue=Y(m,tt),Me=O(m);let Ze=!1;M.forEach(Ut=>{const G=tt==null?void 0:tt.getPropertyValue(Ut);ue&&Ut in ue?Te[Ut]!==ue[Ut]&&(Ge[Ut]=ue[Ut],Ze=!0):Me&&Ut==="color"?Te[Ut]!==Me.color&&(Ge[Ut]=Me.color,Ze=!0):G!==Te[Ut]&&(Ge[Ut]=G,Ze=!0)}),Ze&&(lt={...lt,computedStyle:Ge});const fe=J(m,Xe),it=ne.attributes;let et=!1;for(const Ut in fe)if(fe[Ut]!==it[Ut]){et=!0;break}et&&(lt={...lt,attributes:fe})}return lt})};let V;const We=()=>{var re;if(!m||!((re=m.ownerDocument)!=null&&re.contains(m))){h(void 0);return}S(),V=requestAnimationFrame(We)};return We(),E&&m&&(0,k.hB)(m),()=>{h(void 0),cancelAnimationFrame(V),m&&(0,k.hB)(m,!1)}},[m,E]),{elementState:f,updateElementState:h}}},25884:(eo,ot,i)=>{"use strict";var a;a={value:!0},a=a=a=a=a=a=a=void 0;var k=i(80595),M=h(k),P=i(34835),C=h(P),q=i(27276),Y=h(q),J=i(27122),O=h(J),l=i(65251),D=h(l),m=i(52171),E=h(m),f=i(27921);function h(S){return S&&S.__esModule?S:{default:S}}ot.Ay=M.default,a=C.default,a=Y.default,a=O.default,a=D.default,a=E.default,a=f.renderValue,a=f.renderData},25912:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Xe});var a=i(38502),k=i(95549),M=i(53732),P=i.n(M),C=i(69173),q=i.n(C),Y=i(17307),J=i(46464),O=i(83199),l=i(61790),D=i(69874),m=i(20089),E=i(3876),f=i(37361),h=i(70248),S=i(29078),V=i(72214);class We extends a.PureComponent{constructor(lt){super(lt),(0,k.A)(this,"setElementRef",rt=>this.$element=rt),(0,k.A)(this,"handleMouseDown",rt=>{const{isEditing:Te}=this.state;if(Te)return;const{onMouseDown:Ge,onContextMenu:ue}=this.props;if(rt.button===0)this.timer=setTimeout(()=>{Ge&&this.$element&&Ge(rt,this.$element)},200);else if(rt.button===2){if(MB.f.editing||(rt.preventDefault(),rt.ctrlKey))return;ue&&ue(rt)}}),(0,k.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,k.A)(this,"handleToggleLock",rt=>{rt.stopPropagation();const{treeNode:Te,onLock:Ge}=this.props;Ge(Te)}),(0,k.A)(this,"handleToggleVisible",rt=>{rt.stopPropagation();const{treeNode:Te,onVisible:Ge}=this.props;Ge(Te)}),(0,k.A)(this,"handleToggleExpand",rt=>{rt.stopPropagation();const{onToggleExpanded:Te}=this.props;Te()}),(0,k.A)(this,"handleDoubleClick",()=>{const{isDisabled:rt}=this.props;rt||this.setState({isEditing:!0})}),(0,k.A)(this,"handleConfirm",async(rt,Te)=>{if(Te){const{onChangeDisplayName:Ge,treeNode:ue}=this.props;await Ge(ue.key,rt)}this.setState({isEditing:!1})}),(0,k.A)(this,"onShowTipsByTarget",(rt,Te)=>{const Ge=Te.querySelector(".editable-name");return Ge.offsetWidth<Ge.scrollWidth}),this.state={isEditing:!1}}stopPropagation(lt){lt.stopPropagation()}render(){const{index:lt,depth:rt,isSelect:Te,isExpanded:Ge,isHover:ue,isDisabled:Me,isLinked:Ze,onClick:fe,onMouseEnter:it,onMouseLeave:et,onClickLink:Ut,onClickIcon:G,initPaddingLeft:Ht,paddingLeftLayout:Tt,isDummySelect:Vt,treeNode:He,onlyView:rn,showAction:Lt,maxOrderDigit:jt,isCanvasList:mt,isPreview:Jn,expandEnable:o,isHomepage:so}=this.props;if(!He)return null;const{isEditing:Et}=this.state,{key:Jt,hotAttr:Ot}=He,{type:dn,isLock:Ce,isVisible:Pt,basket:Nn}=Ot,At=(0,l.KD)(He),on=dn===m.x.WBasket&&Nn==="bDanli",no=Ce?"lock":"unlock",mo=Pt?"visible":"invisible",mn=Lt&&!Me&&!Et,ht=(0,S.N8)(rt,Tt,Ht);return(0,V.jsx)(O.A,{content:Me?(0,V.jsx)(re,{}):At,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:Me?void 0:this.onShowTipsByTarget,style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"10","-webkit-box-orient":"vertical",lineHeight:"20px",textAlign:"left"},children:(0,V.jsxs)("div",{"data-interactive-target-key":Jt,"data-interactive-target-type":mt?E.E.canvasList:"",ref:this.setElementRef,className:P()("rn-list-item","layer-item",{active:Te,"dummy-select":Vt,"is-disabled":Me,"is-hidden":!Pt,"is-locked":Ce,hover:ue,"is-linked":Ze,"is-not-drag":(0,h.OO)(Jt),"interactive-target-hotspot":mt}),style:{paddingLeft:ht},onClick:fe,onMouseEnter:it,onMouseLeave:et,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onDoubleClick:this.handleDoubleClick,children:[q()(lt)&&jt&&(0,V.jsx)(f.MI,{len:JSON.stringify(jt).length,children:lt}),o&&(0,V.jsx)("a",{className:"expander",onClick:this.handleToggleExpand,onDoubleClick:this.stopPropagation,children:(0,V.jsx)(Y.C,{className:P()("arrow-icon",{"is-expand":Ge}),name:"common/expand"})}),!Jn&&(0,V.jsx)("div",{className:"layer-item-icon",onDoubleClick:G,children:(0,V.jsx)(J.A,{widget:He,isDynamic:on,isExpanded:Ge})}),rn?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"editable-name",children:At}),so&&(0,V.jsx)(Y.C,{className:"homepage",name:"toolbar/preview/homepage"}),!Pt&&!mn&&(0,V.jsx)(Y.C,{className:"homepage invisible",name:"common/invisible"})]}):(0,V.jsxs)(V.Fragment,{children:[Me?(0,V.jsx)("span",{className:"editable-name",children:At}):(0,V.jsx)(D.A,{value:At,className:"editable-name",isEditing:Et,onConfirm:this.handleConfirm},At),mn&&(0,V.jsxs)("div",{className:"actions",onDoubleClick:this.stopPropagation,children:[(0,V.jsx)("i",{className:P()("action"),onClick:this.handleToggleVisible,children:(0,V.jsx)(Y.C,{name:"left_panel/"+mo,className:"eye-icon"})}),(0,V.jsx)("i",{className:"action",onClick:this.handleToggleLock,children:(0,V.jsx)(Y.C,{name:"left_panel/"+no,className:"lock-icon"})}),(0,V.jsx)("i",{className:"action",onClick:Ut,children:(0,V.jsx)(Y.C,{name:"left_panel/link_mark",className:"link-icon"})})]})]})]})})}}const re=()=>(0,V.jsx)("p",{style:{textAlign:"justify"},children:I18N.ScreenPanel.layer_item_disabled});var ve=i(95106),we=i(18381),Ae=i(25997),Oe=i(60651);const Be=[m.x.WSticky],tt=ne=>{var lt;const{index:rt,depth:Te,treeNode:Ge,hoverItem:ue,newSelection:Me,treeProps:Ze,childrenSelect:fe,initPaddingLeft:it,paddingLeftLayout:et=4,dummySelect:Ut=new Set,layerExpandedKeySet:G=new Set,onlyView:Ht,isHomepage:Tt,showAction:Vt=!0,maxOrderDigit:He,isCanvasList:rn,isPreview:Lt,keyword:jt}=ne,mt=(0,we.d4)(Ae.UV),Jn=(0,we.d4)(Oe.jI),o=(0,we.d4)(Oe.oO),{key:so,node:Et,children:Jt}=Ge,{hotAttr:{type:Ot,basket:dn}}=Et,{onLock:Ce,onVisible:Pt,onChangeDisplayName:Nn}=Ze,At=G.has(so),on=Ot===m.x.WBasket&&dn==="bDanli",no=Ot===m.x.WBasket&&dn==="bMuban",mo=Ot===m.x.WMind,mn=ue===so,ht=Me.some(In=>In===so),Fn=(no?(lt=Jt[0])==null?void 0:lt.children:Jt)||[],Yt=fe?!0:ht&&Ot===m.x.WWrap&&Fn.length>=1,Gt=Ut==null?void 0:Ut.has(so),Bn=Fn.length>0&&!on&&!mo,qt=(0,a.useMemo)(()=>mt?(0,ve.Xr)(mt,Et.key,o,Jn):[],[Et,mt,o,Jn]),Zt=In=>{In.stopPropagation(),Ze.onClick(In,Et)},jn=(In,Dn)=>{Ht||Ze.onMouseDown(In,Et,Dn)},ro=In=>{Ht||Ze.onContextMenu(In,Et)},Tn=()=>{var In;(In=Ze.onMouseEnter)==null||In.call(Ze,Et)},bt=()=>{var In;(In=Ze.onMouseLeave)==null||In.call(Ze,Et)},Wt=()=>{Ze.onToggleExpanded(so)},wn=In=>{In.stopPropagation(),Ze.onClick(In,Et);const Dn=qt.find(So=>So.interactive);Dn?MB.action("entry:select:link",{link:Dn}):MB.action("links:active:link",{cid:[]}),MB.action("right-side-panel:show:panel"),MB.action("settings:set:autoTabIndex",{autoTabIndex:1})},uo=In=>{In.stopPropagation(),Ze.onClickIcon()};return(0,V.jsxs)("li",{"data-cid":so,className:P()("rn-content-item",{active:ht,hover:mn,"dummy-select":Gt}),children:[(0,V.jsx)(We,{index:rt,depth:Te,treeNode:Et,initPaddingLeft:it,paddingLeftLayout:et,isHover:mn,isSelect:ht,isExpanded:At,isLinked:qt.some(In=>In.interactive),isDummySelect:Gt,maxOrderDigit:He,isCanvasList:rn,onClick:Zt,onClickLink:wn,onContextMenu:ro,onMouseDown:jn,onMouseEnter:Tn,onMouseLeave:bt,onToggleExpanded:Wt,onLock:Ce,onVisible:Pt,onChangeDisplayName:Nn,onClickIcon:uo,onlyView:Ht,isHomepage:!!(Tt&&Tt(so)),isPreview:Lt,showAction:Vt,expandEnable:Bn}),Bn&&At&&(0,V.jsx)("ul",{className:"children",children:Fn.map(In=>(0,V.jsx)(tt,{initPaddingLeft:it,paddingLeftLayout:et,depth:Te+1,treeNode:In,hoverItem:ue,newSelection:Me,childrenSelect:Yt,treeProps:Ze,dummySelect:Ut,layerExpandedKeySet:G,onlyView:Ht,isHomepage:Tt,showAction:Vt,maxOrderDigit:He,isPreview:Lt,keyword:jt},In.key))})]})},Xe=tt},26348:(eo,ot,i)=>{"use strict";i.d(ot,{G:()=>P});var a=i(38502);const M={defaultFirst:"",defaultActiveIndex:0,defaultSecond:"",secondQueryName:"",defaultScrollTop:0,defaultOffsetTop:50},P=function(C,q){q===void 0&&(q={});const Y={...M,...q},{defaultFirst:J,defaultActiveIndex:O,defaultSecond:l,secondQueryName:D,defaultScrollTop:m,defaultOffsetTop:E}=Y,[f,h]=(0,a.useState)(J),[S,V]=(0,a.useState)(l),[We,re]=(0,a.useState)(O||0),[ve,we]=(0,a.useState)(0),Ae=(0,a.useRef)([]),[Oe,Be]=(0,a.useState)(m||0);return(0,a.useEffect)(()=>{var rt;const Te=()=>{const ue=Ae.current[0];if(!ue)return;const Me=ue==null?void 0:ue.querySelector("span.title");if(Me){const{key:et}=Me==null?void 0:Me.dataset;h(et!=null?et:"")}if(re(0),D){var Ze;const et=(Ze=Ae.current[0])==null?void 0:Ze.querySelectorAll(D);if(et.length>0){var fe;const Ut=et[0];if(!Ut)return;if((fe=Ut.dataset)!=null&&fe.key){var it;V((it=Ut.dataset)==null?void 0:it.key)}else{const G=Ut.querySelector("span.title"),{key:Ht}=(G==null?void 0:G.dataset)||{};V(Ht!=null?Ht:"")}we(0)}}},Ge=ue=>{const Me=ue.target.scrollTop;Be(Me);let Ze=0;if(Me===0){Te();return}for(let Vt=0;Vt<((fe=Ae.current)==null?void 0:fe.length);Vt++){var fe;const He=Ae.current[Vt];if(He&&He.offsetTop-E<=Me&&He.offsetTop-E+He.offsetHeight>Me){const rn=He==null?void 0:He.querySelector("span.title");if(rn){const{key:Lt}=rn==null?void 0:rn.dataset;h(Lt!=null?Lt:"")}re(Vt),Ze=Vt;break}}if(D){var it,et;const Vt=(it=Ae.current[Ze])==null?void 0:it.querySelectorAll(D),He=(et=Ae.current[Ze])==null?void 0:et.querySelector(".show-title");if(Vt.length>0)for(let rn=0;rn<Vt.length;rn++){const Lt=Vt[rn];if(Lt){if(rn===0&&He){if(He.offsetTop-E<=Me&&He.offsetTop-E+He.offsetHeight+Lt.offsetHeight>Me){var Ut;if((Ut=Lt.dataset)!=null&&Ut.key){var G;V((G=Lt.dataset)==null?void 0:G.key)}else{const jt=Lt.querySelector("span.title"),{key:mt}=(jt==null?void 0:jt.dataset)||{};V(mt!=null?mt:"")}we(rn);break}}else if(Lt.offsetTop-E<=Me&&Lt.offsetTop-E+Lt.offsetHeight>Me){var Ht;if((Ht=Lt.dataset)!=null&&Ht.key){var Tt;V((Tt=Lt.dataset)==null?void 0:Tt.key)}else{const jt=Lt.querySelector("span.title"),{key:mt}=(jt==null?void 0:jt.dataset)||{};V(mt!=null?mt:"")}we(rn);break}}}}};return C==null||(rt=C.current)==null||rt.addEventListener("scroll",Ge),()=>{var ue;return C==null||(ue=C.current)==null?void 0:ue.removeEventListener("scroll",Ge)}},[]),{setItemRef:(0,a.useCallback)(rt=>Te=>{Ae.current[rt]=Te},[]),scrollToItem:function(rt,Te,Ge){if(Te===void 0&&(Te=0),Ge===void 0&&(Ge=!0),Ge&&rt===We&&Te===ve)return;re(rt),we(Te);let ue=0;if(rt===0&&Te===0)ue=0;else if(D){if(Ae.current[rt]){var Me;const et=((Me=Ae.current[rt])==null?void 0:Me.querySelectorAll(D))[Te];if(et)if(Te===0){var Ze;const Ut=(Ze=Ae.current[rt])==null?void 0:Ze.querySelector(".show-title");Ut?ue=(Ut==null?void 0:Ut.offsetTop)-E:ue=(et==null?void 0:et.offsetTop)-E}else ue=(et==null?void 0:et.offsetTop)-E}}else if(Te===0){var fe;ue=((fe=Ae.current[rt])==null?void 0:fe.offsetTop)-E}C.current.scrollTop=ue},scrollToSecondItem:rt=>{if(Ae.current[We]){var Te;const ue=(Te=Ae.current[We])==null?void 0:Te.querySelectorAll(D);if(ue[rt]){var Ge;C.current.scrollTop=((Ge=ue[rt])==null?void 0:Ge.offsetTop)-E}}},activeTitleValue:f,setActiveTitle:h,activeSecondTitleValue:S,scrollTop:Oe,scrollToByOffset:rt=>{C.current.scrollTop=rt}}}},26781:(eo,ot,i)=>{"use strict";i.d(ot,{dP:()=>O,nM:()=>l,q2:()=>J,zG:()=>D});var a=i(99963),k=i(61627),M=i(27480),P=i(43605),C=i(547),q=i(20089),Y=i(8580);const J=(m,E)=>[q.x.WLine,q.x.WArrow].includes(m)?(0,P.ne)([E.startX,E.startY],[E.endX,E.endY]):(0,C.rn)(E),O=m=>{const E=m.map(f=>{const h=a.o.toBoundingPoints((0,Y.Oj)(f));return k.a.axisAligned(h)});return M.rw.enclosingRects(E)},l=m=>{const{x:E,y:f,w:h,h:S}=O(m);return{top:f,left:E,right:E+h,bottom:f+S,width:h,height:S}},D=m=>{let{key:E}=m;const f=(0,Y.Oj)(E),{transform:h,rect:{w:S,h:V}}=f,We=h.clone().apply(M.rw.center(f.rect)),re=We.x-S/2,ve=We.y-V/2;return{top:ve,left:re,width:S,height:V,right:re+S,bottom:ve+V}}},26880:(eo,ot,i)=>{"use strict";i.d(ot,{s:()=>Dn});var a=i(38502),k=i(7499),M=i(67787),P=i(53732),C=i.n(P),q=i(46757),Y=i(90852),J=i(97320);const l=Qt=>{const{getPrefixCls:Ln,direction:Mn}=(0,a.useContext)(q.QO),{prefixCls:Rt,className:Qe}=Qt,En=Ln("input-group",Rt),qn=Ln("input"),[Hn,Yn,oo]=(0,J.Ay)(qn),To=C()(En,oo,{[En+"-lg"]:Qt.size==="large",[En+"-sm"]:Qt.size==="small",[En+"-compact"]:Qt.compact,[En+"-rtl"]:Mn==="rtl"},Yn,Qe),po=(0,a.useContext)(Y.$W),Oo=(0,a.useMemo)(()=>Object.assign(Object.assign({},po),{isFormItemInput:!1}),[po]);return Hn(a.createElement("span",{className:To,style:Qt.style,onMouseEnter:Qt.onMouseEnter,onMouseLeave:Qt.onMouseLeave,onFocus:Qt.onFocus,onBlur:Qt.onBlur},a.createElement(Y.$W.Provider,{value:Oo},Qt.children)))};var D=i(51885),m=i(21425),E=i(27479),f=i(74901),h=i(49212),S=i(16981),V=i(46656),We=i(37567),re=i(73650),ve=i(31161);function we(Qt,Ln){const Mn=(0,a.useRef)([]),Rt=()=>{Mn.current.push(setTimeout(()=>{var Qe,En,qn,Hn;!((Qe=Qt.current)===null||Qe===void 0)&&Qe.input&&((En=Qt.current)===null||En===void 0?void 0:En.input.getAttribute("type"))==="password"&&(!((qn=Qt.current)===null||qn===void 0)&&qn.input.hasAttribute("value"))&&((Hn=Qt.current)===null||Hn===void 0||Hn.input.removeAttribute("value"))}))};return(0,a.useEffect)(()=>(Ln&&Rt(),()=>Mn.current.forEach(Qe=>{Qe&&clearTimeout(Qe)})),[]),Rt}function Ae(Qt){return!!(Qt.prefix||Qt.suffix||Qt.allowClear||Qt.showCount)}var Oe=function(Qt,Ln){var Mn={};for(var Rt in Qt)Object.prototype.hasOwnProperty.call(Qt,Rt)&&Ln.indexOf(Rt)<0&&(Mn[Rt]=Qt[Rt]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Rt=Object.getOwnPropertySymbols(Qt);Qe<Rt.length;Qe++)Ln.indexOf(Rt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Rt[Qe])&&(Mn[Rt[Qe]]=Qt[Rt[Qe]]);return Mn};const tt=(0,a.forwardRef)((Qt,Ln)=>{const{prefixCls:Mn,bordered:Rt=!0,status:Qe,size:En,disabled:qn,onBlur:Hn,onFocus:Yn,suffix:oo,allowClear:To,addonAfter:po,addonBefore:Oo,className:Qo,style:ea,styles:_n,rootClassName:Un,onChange:cn,classNames:nn,variant:Zn}=Qt,ho=Oe(Qt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Xn,direction:Mo,allowClear:Zo,autoComplete:ia,className:xa,style:fa,classNames:zo,styles:Ra}=(0,q.TP)("input"),Sa=Xn("input",Mn),ln=(0,a.useRef)(null),ta=(0,V.A)(Sa),[ko,bo,aa]=(0,J.MG)(Sa,Un),[ma]=(0,J.Ay)(Sa,ta),{compactSize:dr,compactItemClassnames:ni}=(0,ve.RQ)(Sa,Mo),Ir=(0,We.A)(Io=>{var No;return(No=En!=null?En:dr)!==null&&No!==void 0?No:Io}),$a=a.useContext(S.A),Va=qn!=null?qn:$a,{status:Ha,hasFeedback:or,feedbackIcon:gi}=(0,a.useContext)(Y.$W),Qr=(0,h.v)(Ha,Qe),Qi=Ae(Qt)||!!or,rs=(0,a.useRef)(Qi),Li=we(ln,!0),ns=Io=>{Li(),Hn==null||Hn(Io)},Es=Io=>{Li(),Yn==null||Yn(Io)},ys=Io=>{Li(),cn==null||cn(Io)},sr=(or||oo)&&a.createElement(a.Fragment,null,oo,or&&gi),mi=(0,f.A)(To!=null?To:Zo),[Bt,vn]=(0,re.A)("input",Zn,Rt);return ko(ma(a.createElement(D.A,Object.assign({ref:(0,m.K4)(Ln,ln),prefixCls:Sa,autoComplete:ia},ho,{disabled:Va,onBlur:ns,onFocus:Es,style:Object.assign(Object.assign({},fa),ea),styles:Object.assign(Object.assign({},Ra),_n),suffix:sr,allowClear:mi,className:C()(Qo,Un,aa,ta,ni,xa),onChange:ys,addonBefore:Oo&&a.createElement(E.A,{form:!0,space:!0},Oo),addonAfter:po&&a.createElement(E.A,{form:!0,space:!0},po),classNames:Object.assign(Object.assign(Object.assign({},nn),zo),{input:C()({[Sa+"-sm"]:Ir==="small",[Sa+"-lg"]:Ir==="large",[Sa+"-rtl"]:Mo==="rtl"},nn==null?void 0:nn.input,zo.input,bo),variant:C()({[Sa+"-"+Bt]:vn},(0,h.L)(Sa,Qr)),affixWrapper:C()({[Sa+"-affix-wrapper-sm"]:Ir==="small",[Sa+"-affix-wrapper-lg"]:Ir==="large",[Sa+"-affix-wrapper-rtl"]:Mo==="rtl"},bo),wrapper:C()({[Sa+"-group-rtl"]:Mo==="rtl"},bo),groupWrapper:C()({[Sa+"-group-wrapper-sm"]:Ir==="small",[Sa+"-group-wrapper-lg"]:Ir==="large",[Sa+"-group-wrapper-rtl"]:Mo==="rtl",[Sa+"-group-wrapper-"+Bt]:vn},(0,h.L)(Sa+"-group-wrapper",Qr,or),bo)})}))))});var Xe=i(63296),ne=i(75586),lt=i(24243),rt=i(58196),Te=i(48150),Ge=i(35125);const ue=Qt=>{const{componentCls:Ln,paddingXS:Mn}=Qt;return{[Ln]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Mn,[Ln+"-input-wrapper"]:{position:"relative",[Ln+"-mask-icon"]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[Ln+"-mask-input"]:{color:"transparent",caretColor:"var(--ant-color-text)"},[Ln+"-mask-input[type=number]::-webkit-inner-spin-button"]:{"-webkit-appearance":"none",margin:0},[Ln+"-mask-input[type=number]"]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[Ln+"-input"]:{textAlign:"center",paddingInline:Qt.paddingXXS},["&"+Ln+"-sm "+Ln+"-input"]:{paddingInline:Qt.calc(Qt.paddingXXS).div(2).equal()},["&"+Ln+"-lg "+Ln+"-input"]:{paddingInline:Qt.paddingXS}}}},Me=(0,rt.OF)(["Input","OTP"],Qt=>{const Ln=(0,Te.oX)(Qt,(0,Ge.C)(Qt));return[ue(Ln)]},Ge.b);var Ze=i(23653),fe=function(Qt,Ln){var Mn={};for(var Rt in Qt)Object.prototype.hasOwnProperty.call(Qt,Rt)&&Ln.indexOf(Rt)<0&&(Mn[Rt]=Qt[Rt]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Rt=Object.getOwnPropertySymbols(Qt);Qe<Rt.length;Qe++)Ln.indexOf(Rt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Rt[Qe])&&(Mn[Rt[Qe]]=Qt[Rt[Qe]]);return Mn};const et=a.forwardRef((Qt,Ln)=>{const{className:Mn,value:Rt,onChange:Qe,onActiveChange:En,index:qn,mask:Hn}=Qt,Yn=fe(Qt,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:oo}=a.useContext(q.QO),To=oo("otp"),po=typeof Hn=="string"?Hn:Rt,Oo=a.useRef(null);a.useImperativeHandle(Ln,()=>Oo.current);const Qo=cn=>{Qe(qn,cn.target.value)},ea=()=>{(0,Ze.A)(()=>{var cn;const nn=(cn=Oo.current)===null||cn===void 0?void 0:cn.input;document.activeElement===nn&&nn&&nn.select()})},_n=cn=>{const{key:nn,ctrlKey:Zn,metaKey:ho}=cn;nn==="ArrowLeft"?En(qn-1):nn==="ArrowRight"?En(qn+1):nn==="z"&&(Zn||ho)&&cn.preventDefault(),ea()},Un=cn=>{cn.key==="Backspace"&&!Rt&&En(qn-1),ea()};return a.createElement("span",{className:To+"-input-wrapper",role:"presentation"},Hn&&Rt!==""&&Rt!==void 0&&a.createElement("span",{className:To+"-mask-icon","aria-hidden":"true"},po),a.createElement(tt,Object.assign({"aria-label":"OTP Input "+(qn+1),type:Hn===!0?"password":"text"},Yn,{ref:Oo,value:Rt,onInput:Qo,onFocus:ea,onKeyDown:_n,onKeyUp:Un,onMouseDown:ea,onMouseUp:ea,className:C()(Mn,{[To+"-mask-input"]:Hn})})))});var Ut=function(Qt,Ln){var Mn={};for(var Rt in Qt)Object.prototype.hasOwnProperty.call(Qt,Rt)&&Ln.indexOf(Rt)<0&&(Mn[Rt]=Qt[Rt]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Rt=Object.getOwnPropertySymbols(Qt);Qe<Rt.length;Qe++)Ln.indexOf(Rt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Rt[Qe])&&(Mn[Rt[Qe]]=Qt[Rt[Qe]]);return Mn};function G(Qt){return(Qt||"").split("")}const Ht=Qt=>{const{index:Ln,prefixCls:Mn,separator:Rt}=Qt,Qe=typeof Rt=="function"?Rt(Ln):Rt;return Qe?a.createElement("span",{className:Mn+"-separator"},Qe):null},Vt=a.forwardRef((Qt,Ln)=>{const{prefixCls:Mn,length:Rt=6,size:Qe,defaultValue:En,value:qn,onChange:Hn,formatter:Yn,separator:oo,variant:To,disabled:po,status:Oo,autoFocus:Qo,mask:ea,type:_n,onInput:Un,inputMode:cn}=Qt,nn=Ut(Qt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Zn,direction:ho}=a.useContext(q.QO),Xn=Zn("otp",Mn),Mo=(0,lt.A)(nn,{aria:!0,data:!0,attr:!0}),[Zo,ia,xa]=Me(Xn),fa=(0,We.A)(Va=>Qe!=null?Qe:Va),zo=a.useContext(Y.$W),Ra=(0,h.v)(zo.status,Oo),Sa=a.useMemo(()=>Object.assign(Object.assign({},zo),{status:Ra,hasFeedback:!1,feedbackIcon:null}),[zo,Ra]),ln=a.useRef(null),ta=a.useRef({});a.useImperativeHandle(Ln,()=>({focus:()=>{var Va;(Va=ta.current[0])===null||Va===void 0||Va.focus()},blur:()=>{var Va;for(let Ha=0;Ha<Rt;Ha+=1)(Va=ta.current[Ha])===null||Va===void 0||Va.blur()},nativeElement:ln.current}));const ko=Va=>Yn?Yn(Va):Va,[bo,aa]=a.useState(()=>G(ko(En||"")));a.useEffect(()=>{qn!==void 0&&aa(G(qn))},[qn]);const ma=(0,ne.A)(Va=>{aa(Va),Un&&Un(Va),Hn&&Va.length===Rt&&Va.every(Ha=>Ha)&&Va.some((Ha,or)=>bo[or]!==Ha)&&Hn(Va.join(""))}),dr=(0,ne.A)((Va,Ha)=>{let or=(0,Xe.A)(bo);for(let Qr=0;Qr<Va;Qr+=1)or[Qr]||(or[Qr]="");Ha.length<=1?or[Va]=Ha:or=or.slice(0,Va).concat(G(Ha)),or=or.slice(0,Rt);for(let Qr=or.length-1;Qr>=0&&!or[Qr];Qr-=1)or.pop();const gi=ko(or.map(Qr=>Qr||" ").join(""));return or=G(gi).map((Qr,Qi)=>Qr===" "&&!or[Qi]?or[Qi]:Qr),or}),ni=(Va,Ha)=>{var or;const gi=dr(Va,Ha),Qr=Math.min(Va+Ha.length,Rt-1);Qr!==Va&&gi[Va]!==void 0&&((or=ta.current[Qr])===null||or===void 0||or.focus()),ma(gi)},Ir=Va=>{var Ha;(Ha=ta.current[Va])===null||Ha===void 0||Ha.focus()},$a={variant:To,disabled:po,status:Ra,mask:ea,type:_n,inputMode:cn};return Zo(a.createElement("div",Object.assign({},Mo,{ref:ln,className:C()(Xn,{[Xn+"-sm"]:fa==="small",[Xn+"-lg"]:fa==="large",[Xn+"-rtl"]:ho==="rtl"},xa,ia),role:"group"}),a.createElement(Y.$W.Provider,{value:Sa},Array.from({length:Rt}).map((Va,Ha)=>{const or="otp-"+Ha,gi=bo[Ha]||"";return a.createElement(a.Fragment,{key:or},a.createElement(et,Object.assign({ref:Qr=>{ta.current[Ha]=Qr},index:Ha,size:fa,htmlSize:1,className:Xn+"-input",onChange:ni,value:gi,onActiveChange:Ir,autoFocus:Ha===0&&Qo},$a)),Ha<Rt-1&&a.createElement(Ht,{separator:oo,index:Ha,prefixCls:Xn}))}))))});var He=i(94586),rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const Lt=rn;var jt=i(40080),mt=function(Ln,Mn){return a.createElement(jt.A,(0,He.A)({},Ln,{ref:Mn,icon:Lt}))},Jn=a.forwardRef(mt);const o=Jn;var so=i(95132),Et=i(13199),Jt=function(Qt,Ln){var Mn={};for(var Rt in Qt)Object.prototype.hasOwnProperty.call(Qt,Rt)&&Ln.indexOf(Rt)<0&&(Mn[Rt]=Qt[Rt]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Rt=Object.getOwnPropertySymbols(Qt);Qe<Rt.length;Qe++)Ln.indexOf(Rt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Rt[Qe])&&(Mn[Rt[Qe]]=Qt[Rt[Qe]]);return Mn};const Ot=Qt=>Qt?a.createElement(so.A,null):a.createElement(o,null),dn={click:"onClick",hover:"onMouseOver"},Pt=a.forwardRef((Qt,Ln)=>{const{disabled:Mn,action:Rt="click",visibilityToggle:Qe=!0,iconRender:En=Ot}=Qt,qn=a.useContext(S.A),Hn=Mn!=null?Mn:qn,Yn=typeof Qe=="object"&&Qe.visible!==void 0,[oo,To]=(0,a.useState)(()=>Yn?Qe.visible:!1),po=(0,a.useRef)(null);a.useEffect(()=>{Yn&&To(Qe.visible)},[Yn,Qe]);const Oo=we(po),Qo=()=>{var fa;if(Hn)return;oo&&Oo();const zo=!oo;To(zo),typeof Qe=="object"&&((fa=Qe.onVisibleChange)===null||fa===void 0||fa.call(Qe,zo))},ea=fa=>{const zo=dn[Rt]||"",Ra=En(oo),Sa={[zo]:Qo,className:fa+"-icon",key:"passwordIcon",onMouseDown:ln=>{ln.preventDefault()},onMouseUp:ln=>{ln.preventDefault()}};return a.cloneElement(a.isValidElement(Ra)?Ra:a.createElement("span",null,Ra),Sa)},{className:_n,prefixCls:Un,inputPrefixCls:cn,size:nn}=Qt,Zn=Jt(Qt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ho}=a.useContext(q.QO),Xn=ho("input",cn),Mo=ho("input-password",Un),Zo=Qe&&ea(Mo),ia=C()(Mo,_n,{[Mo+"-"+nn]:!!nn}),xa=Object.assign(Object.assign({},(0,Et.A)(Zn,["suffix","iconRender","visibilityToggle"])),{type:oo?"text":"password",className:ia,prefixCls:Xn,suffix:Zo});return nn&&(xa.size=nn),a.createElement(tt,Object.assign({ref:(0,m.K4)(Ln,po)},xa))});var Nn=i(21297),At=i(67916),on=i(92312),no=function(Qt,Ln){var Mn={};for(var Rt in Qt)Object.prototype.hasOwnProperty.call(Qt,Rt)&&Ln.indexOf(Rt)<0&&(Mn[Rt]=Qt[Rt]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Rt=Object.getOwnPropertySymbols(Qt);Qe<Rt.length;Qe++)Ln.indexOf(Rt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Rt[Qe])&&(Mn[Rt[Qe]]=Qt[Rt[Qe]]);return Mn};const mn=a.forwardRef((Qt,Ln)=>{const{prefixCls:Mn,inputPrefixCls:Rt,className:Qe,size:En,suffix:qn,enterButton:Hn=!1,addonAfter:Yn,loading:oo,disabled:To,onSearch:po,onChange:Oo,onCompositionStart:Qo,onCompositionEnd:ea,variant:_n,onPressEnter:Un}=Qt,cn=no(Qt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:nn,direction:Zn}=a.useContext(q.QO),ho=a.useRef(!1),Xn=nn("input-search",Mn),Mo=nn("input",Rt),{compactSize:Zo}=(0,ve.RQ)(Xn,Zn),ia=(0,We.A)($a=>{var Va;return(Va=En!=null?En:Zo)!==null&&Va!==void 0?Va:$a}),xa=a.useRef(null),fa=$a=>{$a!=null&&$a.target&&$a.type==="click"&&po&&po($a.target.value,$a,{source:"clear"}),Oo==null||Oo($a)},zo=$a=>{var Va;document.activeElement===((Va=xa.current)===null||Va===void 0?void 0:Va.input)&&$a.preventDefault()},Ra=$a=>{var Va,Ha;po&&po((Ha=(Va=xa.current)===null||Va===void 0?void 0:Va.input)===null||Ha===void 0?void 0:Ha.value,$a,{source:"input"})},Sa=$a=>{ho.current||oo||(Un==null||Un($a),Ra($a))},ln=typeof Hn=="boolean"?a.createElement(Nn.A,null):null,ta=Xn+"-button";let ko;const bo=Hn||{},aa=bo.type&&bo.type.__ANT_BUTTON===!0;aa||bo.type==="button"?ko=(0,At.Ob)(bo,Object.assign({onMouseDown:zo,onClick:$a=>{var Va,Ha;(Ha=(Va=bo==null?void 0:bo.props)===null||Va===void 0?void 0:Va.onClick)===null||Ha===void 0||Ha.call(Va,$a),Ra($a)},key:"enterButton"},aa?{className:ta,size:ia}:{})):ko=a.createElement(on.Ay,{className:ta,color:Hn?"primary":"default",size:ia,disabled:To,key:"enterButton",onMouseDown:zo,onClick:Ra,loading:oo,icon:ln,variant:_n==="borderless"||_n==="filled"||_n==="underlined"?"text":Hn?"solid":void 0},Hn),Yn&&(ko=[ko,(0,At.Ob)(Yn,{key:"addonAfter"})]);const ma=C()(Xn,{[Xn+"-rtl"]:Zn==="rtl",[Xn+"-"+ia]:!!ia,[Xn+"-with-button"]:!!Hn},Qe),dr=$a=>{ho.current=!0,Qo==null||Qo($a)},ni=$a=>{ho.current=!1,ea==null||ea($a)},Ir=Object.assign(Object.assign({},cn),{className:ma,prefixCls:Mo,type:"search",size:ia,variant:_n,onPressEnter:Sa,onCompositionStart:dr,onCompositionEnd:ni,addonAfter:ko,suffix:qn,onChange:fa,disabled:To});return a.createElement(tt,Object.assign({ref:(0,m.K4)(xa,Ln)},Ir))});var ht=i(52401);const Fn=tt;Fn.Group=l,Fn.Search=mn,Fn.TextArea=ht.A,Fn.Password=Pt,Fn.OTP=Vt;const Yt=Fn;var Gt=i(51886),Bn=i(64165),qt=i(66313),Zt=i(72214);const jn=Qt=>{let{isDisable:Ln,storedText:Mn,updateStoredText:Rt,placeholder:Qe=I18N.ChatGPT.aicomponent.edit_whole_component,onSubmit:En,onEscape:qn}=Qt;const[Hn,Yn]=(0,a.useState)(Mn||""),oo=(0,a.useRef)(null),[To,po]=(0,a.useState)(!1),Oo=(0,a.useRef)(!1),{creditCount:Qo,isInsufficientCredit:ea,costPerGeneration:_n,openPurchaseModal:Un}=(0,Bn.mk)({cost:Bn.CW}),cn=Zo=>{Yn(Zo.target.value),Rt==null||Rt(Zo.target.value)},nn=Zo=>{Zo.key==="Enter"&&!Zo.shiftKey&&(Xn(),Zo.preventDefault()),Zo.key==="Escape"&&(qn==null||qn(),Zo.preventDefault())},Zn=()=>{Oo.current=!0},ho=()=>{Oo.current=!1},Xn=async()=>{if(!Ln){if(ea){MB.notice({text:I18N.ChatGPT.aicomponent.insufficient_points,type:"error",duration:3e3}),Un();return}Hn&&(Oo.current||(po(!0),await En(Hn),po(!1)))}};(0,a.useEffect)(()=>{Hn&&document.querySelector(".chat-input-textarea").setSelectionRange(0,Hn.length)},[]);const Mo=!(Hn!=null&&Hn.trim())||To||Ln;return(0,Zt.jsxs)(Tn,{children:[(0,Zt.jsx)(ro,{disabled:To,ref:oo,className:"chat-input-textarea",variant:"borderless",placeholder:Qe,autoSize:{minRows:2,maxRows:4},maxLength:2e4,value:Hn,onChange:cn,onKeyDown:nn,autoFocus:!0,onCompositionStart:Zn,onCompositionEnd:ho}),(0,Zt.jsxs)("div",{className:"chat-input-button-area",children:[(0,Zt.jsx)(Gt.U,{creditCount:Qo,isInsufficientCredit:ea,costPerGeneration:_n,openPurchaseModal:Un}),(0,Zt.jsx)(qt.q,{onClick:Xn,isDisabled:Mo})]})]})},ro=(0,M.Ay)(Yt.TextArea).withConfig({displayName:"ChatInputArea__StyledChatInputTextArea",componentId:"sc-j1li8m-0"})(["&.ant-input{&::-webkit-scrollbar{display:block !important;width:6px !important;}&::-webkit-scrollbar-thumb{background:"," !important;border:1px solid transparent !important;background-clip:content-box !important;}border-radius:0;padding:0;line-height:20px;transition:none;text-align:justify;color:",";caret-color:",";&::placeholder{color:",";}}"],Qt=>Qt.theme.color_slider_normal,Qt=>Qt.theme.color_text_L1,Qt=>Qt.theme.color_btn_primary_clicked,Qt=>Qt.theme.color_text_L3),Tn=M.Ay.div.withConfig({displayName:"ChatInputArea__StyledChatInputArea",componentId:"sc-j1li8m-1"})(["position:relative;width:360px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;border-radius:8px;border:1px solid ",";background:",";padding:12px 12px 6px 12px;box-shadow:",";.chat-input-button-area{display:flex;justify-content:flex-end;align-items:center;gap:8px;}"],Qt=>Qt.theme.color_bg_border_01,Qt=>Qt.theme.color_bg_white,Qt=>Qt.theme.shadow_m);var bt=i(18381),Wt=i(95657),wn=i(57808);const uo="/mb-proto2/images/AIGC/aicomponent-toolbar-edit.gif",In=()=>{const[Qt,Ln]=(0,a.useState)(!1),[Mn,Rt]=(0,a.useState)(!1),Qe=()=>{Ln(!0)},En=()=>{Ln(!1),Rt(!1)};return(0,Zt.jsxs)(So,{className:"trigger-icon pure-icon",$gifLoaded:Mn,onMouseEnter:Qe,onMouseLeave:En,children:[(0,Zt.jsx)(wn.F,{}),Qt&&(0,Zt.jsx)("img",{className:"ai-component-toolbar-edit-gif",src:uo,alt:"",onLoad:qn=>{Rt(!0)}})]})},Dn=Qt=>{const{dropdownPosition:Ln="bottom",placeholder:Mn=I18N.ChatGPT.aicomponent.edit_whole_component,onSubmit:Rt,registerTogglePanel:Qe,isCanEsc:En=!0}=Qt,qn=(0,bt.wA)(),Hn=(0,a.useRef)(null),Yn=(0,bt.d4)(Wt.SH),oo=(0,bt.d4)(Wt.Lu),To=Qo=>{qn({type:"ai-component:update:editInputAreaText",payload:{editInputAreaText:Qo}})},po=async Qo=>{var ea,_n;await Rt(Qo),(ea=Hn.current)==null||(_n=ea.close)==null||_n.call(ea)},Oo=()=>{var Qo,ea;En&&((Qo=Hn.current)==null||(ea=Qo.close)==null||ea.call(Qo))};return(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(k.A,{ref:Hn,title:I18N.TextToolbar.code.ai_editor,top:Ln==="bottom"?40:-110,left:-28,registerTogglePanel:Qe,trigger:(0,Zt.jsx)("div",{className:"trigger-container padding-0",children:(0,Zt.jsx)(In,{})}),children:(0,Zt.jsx)(jn,{isDisable:oo,storedText:Yn,placeholder:Mn,updateStoredText:To,onSubmit:po,onEscape:Oo})})})},So=M.Ay.div.withConfig({displayName:"CodeAIEdit__StyledTriggerIcon",componentId:"sc-1win7bi-0"})(["position:relative;.ai-component-toolbar-edit-gif{width:24px;height:24px;position:absolute;top:4px;left:4px;z-index:1;opacity:0;}",""],Qt=>Qt.$gifLoaded&&"\n svg {\n opacity: 0;\n }\n\n .ai-component-toolbar-edit-gif {\n opacity: 1;\n }\n ")},26998:(eo,ot,i)=>{"use strict";i.d(ot,{P:()=>M,g:()=>P});var a=i(25306),k=i(27845);const M=C=>{if(!C)return"\u514D\u8D39\u7248";const q=a.tz.InitialUser(C),Y=q.planSdk.prototypePlan.getUserPlan();return q.planSdk.prototypePlan.getUserStatus()===k.pZ.Trial?"\u8BD5\u7528\u7248":Y===k.L1.PremiumLifetime?"\u5C0A\u4EAB\u7EC8\u8EAB\u7248":Y===k.L1.Lifetime?"\u7EC8\u8EAB\u7248":Y===k.L1.Solo?"\u6807\u51C6\u7248":"\u514D\u8D39\u7248"},P=C=>{if(!C)return"free";const q=a.tz.InitialUser(C),Y=q.planSdk.prototypePlan.getUserPlan();return q.planSdk.prototypePlan.getUserStatus()===k.pZ.Trial?"trial":Y!==k.L1.Free?"paid":"free"}},27122:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=Object.assign||function(f){for(var h=1;h<arguments.length;h++){var S=arguments[h];for(var V in S)Object.prototype.hasOwnProperty.call(S,V)&&(f[V]=S[V])}return f},k=function(){function f(h,S){for(var V=0;V<S.length;V++){var We=S[V];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(h,We.key,We)}}return function(h,S,V){return S&&f(h.prototype,S),V&&f(h,V),h}}(),M=i(38502),P=O(M),C=i(25582),q=O(C),Y=i(36221),J=O(Y);function O(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function D(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function m(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var E=function(f){m(h,f);function h(){return l(this,h),D(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return k(h,[{key:"render",value:function(){var V=this.props,We=V.cell,re=V.row,ve=V.col,we=V.attributesRenderer,Ae=V.className,Oe=V.style,Be=V.onMouseDown,tt=V.onMouseOver,Xe=V.onDoubleClick,ne=V.onContextMenu,lt=We.colSpan,rt=We.rowSpan,Te=we?we(We,re,ve):{};return P.default.createElement("td",a({className:Ae,onMouseDown:Be,onMouseOver:tt,onDoubleClick:Xe,onTouchEnd:Xe,onContextMenu:ne,colSpan:lt,rowSpan:rt,style:Oe},Te),this.props.children)}}]),h}(M.PureComponent);ot.default=E,E.propTypes={row:q.default.number.isRequired,col:q.default.number.isRequired,cell:q.default.shape(J.default).isRequired,selected:q.default.bool,editing:q.default.bool,updated:q.default.bool,attributesRenderer:q.default.func,onMouseDown:q.default.func.isRequired,onMouseOver:q.default.func.isRequired,onDoubleClick:q.default.func.isRequired,onContextMenu:q.default.func.isRequired,className:q.default.string,style:q.default.object},E.defaultProps={selected:!1,editing:!1,updated:!1,attributesRenderer:function(){}}},27276:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=function(){function E(f,h){for(var S=0;S<h.length;S++){var V=h[S];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(f,V.key,V)}}return function(f,h,S){return h&&E(f.prototype,h),S&&E(f,S),f}}(),k=i(38502),M=J(k),P=i(25582),C=J(P),q=i(36221),Y=J(q);function J(E){return E&&E.__esModule?E:{default:E}}function O(E,f){if(!(E instanceof f))throw new TypeError("Cannot call a class as a function")}function l(E,f){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:E}function D(E,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);E.prototype=Object.create(f&&f.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(E,f):E.__proto__=f)}var m=function(E){D(f,E);function f(){return O(this,f),l(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return a(f,[{key:"render",value:function(){return M.default.createElement("tr",null,this.props.children)}}]),f}(k.PureComponent);m.propTypes={row:C.default.number.isRequired,cells:C.default.arrayOf(C.default.shape(Y.default)).isRequired},ot.default=m},27921:(eo,ot)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0}),ot.renderValue=i,ot.renderData=a;function i(k,M,P,C){var q=C(k,M,P);return q===null||typeof q>"u"?"":q}function a(k,M,P,C,q){var Y=q?q(k,M,P):null;return Y===null||typeof Y>"u"?i(k,M,P,C):Y}},28147:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M13.7041 7.01074C14.7128 7.113 15.5 7.96435 15.5 9V18C15.5 19.0357 14.7128 19.887 13.7041 19.9893L13.5 20H6.5C5.46435 20 4.613 19.2128 4.51074 18.2041L4.5 18V9C4.5 7.89543 5.39543 7 6.5 7H13.5L13.7041 7.01074ZM6.5 8.5C6.22386 8.5 6 8.72386 6 9V18C6 18.2761 6.22386 18.5 6.5 18.5H13.5C13.7761 18.5 14 18.2761 14 18V9C14 8.72386 13.7761 8.5 13.5 8.5H6.5ZM17.7041 4.01074C18.7128 4.113 19.5 4.96435 19.5 6V15C19.5 16.0357 18.7128 16.887 17.7041 16.9893L17.5 17H16.5V15.5H17.5C17.7761 15.5 18 15.2761 18 15V6C18 5.72386 17.7761 5.5 17.5 5.5H10.5C10.2239 5.5 10 5.72386 10 6H8.5C8.5 4.89543 9.39543 4 10.5 4H17.5L17.7041 4.01074Z",fill:"#19191A"}))})},28173:(eo,ot,i)=>{"use strict";i.d(ot,{C:()=>q});var a=i(12211),k=i(20089),M=i(85584),P=i(70933),C=i(67052);const q=(0,a.Mz)([C.HA,P.Ur],(Y,J)=>{var O;const l=!Y||(Y==null||(O=Y.children)==null?void 0:O.length)===0;if(!l){const D=(0,M.YU)(Y).filter(m=>m.bunch===k.x.RbPage&&!(0,M.Mo)(m));return{isEmptyScreen:!(D!=null&&D.length)||!J,isEmpty:l}}return{isEmptyScreen:!0,isEmpty:l}})},28731:(eo,ot,i)=>{"use strict";i.d(ot,{I:()=>k,a:()=>M});var a=i(18833);const k={request401:"request401",requestVersion403:"requestVersion403",requestVersionRO403:"requestVersionRO403",requestVersion404:"requestVersion404"},M=P=>{const{type:C}=P.data;switch(C){case k.request401:MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm,isHTML:!1}).then(()=>(0,a.AG)());break;case k.requestVersion403:MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>MB.global.onBackButtonClick());break;case k.requestVersionRO403:MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload());break;case k.requestVersion404:MB.global.popupHelper.alertAsync({title:I18N.dModule.version_deleted,confirmText:I18N.dModule.confirm,desc:I18N.dModule.version_deleted_desc}).then(()=>location.reload());break;default:break}}},28732:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{clipPath:"url(#clip0_121_559)"},a.createElement("rect",{width:"32",height:"32",rx:"7.07292",fill:"#FF75E8"}),a.createElement("path",{d:"M28.2575 22.815C28.2509 22.6265 28.1274 22.4913 27.9491 22.4781C27.8014 22.4674 27.6658 22.4613 27.5344 22.4589C27.2658 22.455 26.9967 22.5077 26.7119 22.6202C26.4386 22.7281 26.0833 22.8824 25.7575 23.1191C25.502 23.3048 25.1678 23.5521 24.8479 23.8186C24.7783 23.8767 24.7106 23.9369 24.6453 23.9952C24.5097 24.116 24.3816 24.2301 24.24 24.3227C24.0983 24.4153 23.9808 24.4784 23.8559 24.4924C23.6605 24.5144 23.6299 24.4533 23.6018 24.3499C23.5622 24.2031 23.5663 24.0452 23.5707 23.8774C23.5733 23.7735 23.58 23.6702 23.587 23.5613C23.5932 23.4649 23.5996 23.365 23.6029 23.2651L23.6033 23.2544C23.611 23.0167 23.6198 22.771 23.6141 22.5261C23.6073 22.198 23.5444 21.91 23.4219 21.6464C23.2679 21.3145 23.0155 21.0658 22.6718 20.9072C22.4693 20.8136 22.2663 20.7787 22.041 20.7456C21.7858 20.7082 21.5236 20.731 21.2408 20.8156C20.8199 20.9417 20.429 21.185 20.0791 21.5385C19.7522 21.8692 19.4844 22.2444 19.2436 22.6006C19.2023 22.6618 19.1611 22.7232 19.12 22.7847C18.9129 23.0944 18.717 23.388 18.481 23.6547C18.3585 23.7939 18.2444 23.9126 18.0957 23.9647C17.9975 23.9991 17.9605 23.9742 17.9311 23.9459C17.8989 23.9153 17.8821 23.8668 17.8669 23.762C17.8283 23.5003 17.8583 23.234 17.8907 22.9521L17.8923 22.9406C17.9213 22.6831 17.9593 22.4248 17.9961 22.1751C18.0121 22.0664 18.0271 21.9639 18.0416 21.8608L18.0438 21.8452C18.0491 21.7677 18.0548 21.6921 18.0603 21.6185C18.0729 21.4492 18.0848 21.2892 18.0908 21.1268C18.0974 20.9623 18.0955 20.7886 18.0854 20.6096C18.0689 20.3242 18.0042 20.044 17.8941 19.7812C17.7594 19.4582 17.5601 19.2033 17.3022 19.0237C16.939 18.7704 16.5115 18.6469 16.0328 18.6569C15.7998 18.6632 15.5688 18.7041 15.3472 18.7783C15.0291 18.8801 14.7268 19.0274 14.4495 19.2156L14.4315 19.2281C14.2048 19.383 13.9702 19.5432 13.7543 19.7348C13.4233 20.0284 13.1814 20.2667 12.9696 20.5091C12.7989 20.7039 12.5987 20.9355 12.4083 21.1749C12.2032 21.4327 11.9856 21.7105 11.782 21.9991C11.5136 22.3792 11.273 22.7372 11.0464 23.0936C10.7797 23.5133 10.5226 23.9453 10.2823 24.3516C10.1431 24.5871 10.0975 24.8097 10.1433 25.032C10.2145 25.3783 10.424 25.618 10.7493 25.7258C10.8107 25.7459 10.8737 25.7605 10.9377 25.7693C11.2859 25.8183 11.5929 25.6701 11.7986 25.3464C11.9008 25.1856 11.9953 25.0193 12.0868 24.8584C12.1512 24.7452 12.2177 24.6282 12.2853 24.5159C12.3239 24.4519 12.3624 24.3878 12.4009 24.3237C12.5973 23.9968 12.8003 23.6589 13.0119 23.3374C13.2493 22.9769 13.5052 22.629 13.7471 22.3034C13.8815 22.1225 14.0335 21.9377 14.2259 21.7224C14.4048 21.5203 14.5965 21.3282 14.7434 21.1834C14.8726 21.0559 15.0002 20.9327 15.138 20.8299C15.2996 20.7092 15.48 20.6035 15.619 20.5254C15.7901 20.4292 15.9528 20.3801 16.116 20.3755C16.3044 20.3703 16.3616 20.5113 16.3789 20.5957C16.3998 20.6977 16.4045 20.8104 16.3934 20.9504C16.3862 21.0423 16.3802 21.1353 16.3739 21.2251C16.3632 21.3857 16.3522 21.5518 16.3352 21.7123C16.3142 21.912 16.2892 22.1155 16.2651 22.3125C16.2404 22.5139 16.2148 22.7224 16.1933 22.9279C16.1717 23.1334 16.164 23.3386 16.1565 23.5377L16.1556 23.5622C16.1462 23.8374 16.1794 24.1121 16.2538 24.3766C16.3425 24.6966 16.4779 24.947 16.6677 25.142C17.0148 25.4985 17.4592 25.6825 17.9889 25.6891C18.411 25.6942 18.8142 25.5602 19.1872 25.291C19.4822 25.0781 19.749 24.8004 19.98 24.4658C20.1633 24.2002 20.3421 23.9263 20.5151 23.6616C20.5814 23.5599 20.648 23.4582 20.7148 23.3567C20.9069 23.0653 21.1006 22.7848 21.3561 22.5609C21.4951 22.439 21.6366 22.3648 21.7888 22.3341C21.8376 22.3241 21.9065 22.3206 21.9586 22.3599C22.0072 22.3966 22.0221 22.4572 22.0263 22.5016C22.0364 22.6144 22.0377 22.7278 22.0301 22.8409C22.02 22.9878 22.0058 23.1383 21.992 23.2839C21.9819 23.3915 21.9714 23.5025 21.9624 23.6133L21.9599 23.6462C21.9474 23.8009 21.9344 23.9614 21.9344 24.1234C21.9343 24.3855 21.9597 24.6147 22.0119 24.825C22.0881 25.1313 22.2206 25.3776 22.4167 25.5779C22.6441 25.8102 22.9191 25.9535 23.2575 26.0163C23.5677 26.0738 23.8796 26.0449 24.2107 25.9287C24.5007 25.8261 24.7465 25.6568 24.9282 25.5213C25.1761 25.3355 25.3899 25.117 25.5967 24.906C25.6297 24.8723 25.6629 24.8385 25.6962 24.8047C25.7922 24.7074 25.889 24.608 25.9825 24.512C26.208 24.2805 26.4411 24.0412 26.6778 23.817C26.857 23.6468 27.0582 23.5018 27.2757 23.3861C27.4956 23.2696 27.7315 23.1874 27.9753 23.1422C28.1473 23.1086 28.2631 22.9747 28.2575 22.815Z",fill:"url(#paint0_linear_121_559)"}),a.createElement("path",{d:"M19.1285 9.0139C19.6194 8.29134 19.1773 7.12975 18.1407 6.41024C17.1041 5.69073 15.8572 5.69073 15.3572 6.41024L14.3816 7.79743C14.2539 7.99783 14.2093 8.24003 14.2571 8.47277C14.3049 8.7055 14.4414 8.91051 14.6377 9.04439L16.8968 10.6054C17.091 10.7417 17.3305 10.7972 17.5649 10.7603C17.7993 10.7233 18.0101 10.5967 18.1529 10.4072L19.1163 9.0139H19.1285Z",fill:"white",fillOpacity:"0.7"}),a.createElement("path",{d:"M8.23823 24.7349L16.4699 12.8629C16.6104 12.6709 16.6706 12.4316 16.6376 12.196C16.6045 11.9603 16.481 11.7468 16.2931 11.6007L13.9364 9.96964C13.7337 9.84499 13.4904 9.80425 13.2582 9.85604C13.0259 9.90784 12.823 10.0481 12.6925 10.2471L4.4608 22.119C4.21001 22.473 4.10121 22.9082 4.15592 23.3385L4.29311 24.3294C4.32048 24.5485 4.39378 24.7594 4.50821 24.9483C4.62264 25.1372 4.77563 25.2998 4.95718 25.4256C5.13874 25.5513 5.34478 25.6373 5.56185 25.678C5.77892 25.7187 6.00212 25.7131 6.21689 25.6617L7.19555 25.4452C7.62044 25.3488 7.99301 25.095 8.23823 24.7349Z",fill:"white"})),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_121_559",x1:"19.3752",y1:"22.5255",x2:"30.3741",y2:"24.2232",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.14"})),a.createElement("clipPath",{id:"clip0_121_559"},a.createElement("rect",{width:"32",height:"32",fill:"white"}))))})},28878:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12.8889 14.6667C12.8889 15.1576 12.4909 15.5556 12 15.5556C11.5091 15.5556 11.1111 15.1576 11.1111 14.6667C11.1111 14.1757 11.5091 13.7778 12 13.7778C12.4909 13.7778 12.8889 14.1757 12.8889 14.6667Z",fill:"#19191A"}),a.createElement("path",{d:"M12.0002 12.8893C12.3666 12.8893 12.6735 12.6116 12.7099 12.247L13.0217 9.12924C13.0822 8.52487 12.6075 8.00043 12.0002 8.00043C11.3928 8.00043 10.9182 8.52487 10.9786 9.12925L11.2904 12.247C11.3268 12.6116 11.6337 12.8893 12.0002 12.8893Z",fill:"#19191A"}),a.createElement("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM18.6667 12C18.6667 15.6819 15.6819 18.6667 12 18.6667C8.3181 18.6667 5.33333 15.6819 5.33333 12C5.33333 8.3181 8.3181 5.33333 12 5.33333C15.6819 5.33333 18.6667 8.3181 18.6667 12Z",fill:"#19191A"}))})},29078:(eo,ot,i)=>{"use strict";i.d(ot,{N8:()=>E,uX:()=>We,vl:()=>l,ww:()=>D,zD:()=>m});var a=i(80777),k=i.n(a),M=i(83106),P=i.n(M),C=i(76967),q=i.n(C),Y=i(20089),J=i(24437),O=i(85449);const l=re=>[...sdkStore.findAllTypeUnderNoSubPage(re,Y.x.Canvas).map(ve=>ve.key),...sdkStore.findAllTypeUnderNoSubPage(re,Y.x.WWrap).map(ve=>ve.key),...sdkStore.findAllTypeUnderNoSubPage(re,Y.x.WBasket).filter(ve=>ve.hotAttr.basket==="bMuban").map(ve=>ve.key)],D=(re,ve)=>{if(!(0,O.dP)())return!1;const Ae=l(re==null?void 0:re.cid);let Oe=!0;for(const Be of Ae)if(!ve.has(Be)){Oe=!1;break}return Oe},m=re=>{const{isPreview:ve,isCommunityPreview:we,isCanvasSortableList:Ae}=re||{};let Oe=20,Be=20;return ve&&(Oe=20),we&&(Oe=24,Be=10),Ae&&(Oe=20,Be=20,we&&(Oe=14,Be=14)),{initPaddingLeft:Oe,paddingLeftLayout:Be}},E=(re,ve,we)=>(we||21)+(ve||22)*re,f=re=>re?re.shiftKey?"range":re.metaKey||re.ctrlKey?"multiple":"single":"single",h=(re,ve)=>re.includes(ve)?P()(re,ve):re.concat(ve),S=(re,ve)=>{const we=(0,J.BH)([ve]);return re.includes(ve)?P()(re,...we):k()(re.concat([...we]))},V=(re,ve)=>re.findIndex(we=>we===ve),We=(re,ve,we)=>{const{rangeStart:Ae,rangeEnd:Oe,selected:Be}=re,{cid:tt,cids:Xe,e:ne,selectFrom:lt,isMultiplePage:rt=!1,canCheck:Te=!0}=ve;let Ge=f(ne);lt==="screen"&&(Ge=rt?"multiple":Te?Ge:"single");const ue=Xe.indexOf(tt);if(Ge==="range")if(Oe===void 0){const fe=ue<Ae?Xe.slice(ue,Ae+1):Xe.slice(Ae,ue+1);Ae>ue&&fe.reverse();const it=fe.filter(Ut=>V(Be,Ut)===-1),et={rangeStart:Ae,rangeEnd:ue,selected:Be.concat(it)};return we&&we(et),et}else{if(ue===Oe)return we&&we(re),re;{const fe=Xe.slice(Math.min(Ae,Oe),Math.max(Ae,Oe)+1),it=Xe.slice(Math.min(Ae,ue),Math.max(Ae,ue)+1),et=k()(q()(Be,fe),it);Ae>ue&&et.reverse();const Ut={rangeStart:Ae,rangeEnd:ue,selected:et};return we&&we(Ut),Ut}}let Me=Ge==="single"?[tt]:h(Be,tt);if(lt==="screen"){const fe=Be.length===1?Be[0]:void 0;Me=Ge==="single"?[tt]:!rt&&Ge==="multiple"&&tt===fe?(0,J.BH)([tt]):S(Be,tt)}const Ze={rangeStart:ue,rangeEnd:void 0,selected:Me};return we&&we(Ze),Ze}},29303:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Ae});var a=i(38502),k=i(18381),M=i(53732),P=i.n(M),C=i(12211),q=i(21066),Y=i(87332),J=i(78301),O=i(25067),l=i(17307),D=i(93413),m=i(78661),E=i(16454),f=i(53940),h=i(48281),S=i(61565),V=i(20089),We=i(72214);class re extends a.PureComponent{render(){const{dispatch:Be,propsForMenu:tt}=this.props;return(0,We.jsx)(ve,{dispatch:Be,propsForMenu:tt})}}const ve=Oe=>{let{dispatch:Be,propsForMenu:tt}=Oe;const Xe=(0,We.jsx)(l.C,{name:"toolbar/selected",className:"selected-icon"}),{isFullScreenMode:ne,isSquare:lt,isEmbedV2:rt,theme:Te,isHighlight:Ge,isPreviewAIComponent:ue,isShowShell:Me,isCommunityComboPreview:Ze,isPreviewCombo:fe,isPanelPreviewMode:it,STMode:et,isViewSticky:Ut,isLeftShow:G,isRightShow:Ht}=tt,Tt=!Ut,Vt=(0,a.useRef)(null),[He,rn]=(0,a.useState)({left:-999,top:-999}),Lt=!Ze&&!fe&&!it;(0,a.useEffect)(()=>{Lt&&Be({type:"ST:update",payload:{STMode:!Tt}})},[Be,Lt,Tt]);const jt=()=>{Be({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Ge}}),(0,h.v)({operation_type:h.$.HighLight})},mt=Pt=>{Pt&&Be({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),Be({type:"entry:ST:STMode:toggle"}),(0,h.v)({operation_type:h.$.Sticky})},Jn=()=>{Be({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!Me}}),(0,h.v)({operation_type:h.$.ShowShell})},o=Pt=>{Be({type:"reducer:preview-toolbar:update",payload:{theme:Pt}}),(0,h.v)({operation_type:Pt===f.Sx.DARK?h.$.DarkBackground:h.$.LightBackground})},so=!fe&&!it&&!lt&&!rt,Et=!fe&&!it&&!lt&&!rt,Jt=!ue,Ot=Pt=>{var Nn,At,on;if(Vt!=null&&(Nn=Vt.current)!=null&&Nn.$element&&Pt){var no;const mo=Vt==null||(no=Vt.current)==null||(no=no.$element)==null?void 0:no.getBoundingClientRect();if(mo){const mn=(48-mo.height)/2,ht={left:mo.left-2+32,top:mo.bottom+mn-2};rn(ht)}}(At=MB)==null||(At=At.commonGuideHelper)==null||At.closeGuide(D.c.GUIDE_PREVIEW_VIEW_BTN),(on=MB)==null||(on=on.commonGuideHelper)==null||on.markGuideAsRead(D.c.GUIDE_PREVIEW_VIEW_BTN)},dn=()=>Be({type:"entry:preview-setting:toggle:isMinimized"}),Ce=()=>Be({type:"entry:preview-setting:toggle:rightPane"});return(0,We.jsx)(Y.A,{ref:Vt,onClick:Ot,className:P()("settings-dropdown",{isCommunity:lt}),renderOpener:(0,We.jsx)(O.A,{className:P()("fixed-layout-position","preview-view-icon",{isEmbedV2Preview:rt},{NotFullScreen:!ne}),name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),renderMenu:(0,We.jsxs)(J.Sv,{className:P()("onlyPreview",{fullScreen:ne},{isCommunity:lt},{isEmbedV2Preview:rt},{combo_group:Ze}),position:He,onClose:()=>{},children:[so&&(0,We.jsx)(q.Dr,{text:I18N.PreferenceBar.left_panel,disabled:!1,icon:G?Xe:void 0,onClick:dn,hotKeyText:m.V.showLeftPanel}),Et&&(0,We.jsx)(q.Dr,{text:I18N.PreferenceBar.right_panel,disabled:!Ut,icon:Ht?Xe:void 0,onClick:Ce,hotKeyText:m.V.showRightPanel}),Jt&&(0,We.jsx)(q.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:Ge?Xe:void 0,onClick:jt}),Lt&&(0,We.jsx)(q.Dr,{text:I18N.PreferenceBar.show_device_frame,disabled:!1,icon:Me?Xe:void 0,onClick:Jn}),Lt&&(0,We.jsx)(q.Dr,{text:I18N.ToolBar.sticky,disabled:Tt,icon:et&&!Tt?Xe:void 0,onClick:()=>mt(et)}),(Jt||Lt)&&(0,We.jsx)("div",{className:"menu-divider"}),(0,We.jsx)(q.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:Te===f.Sx.DARK?Xe:void 0,onClick:()=>o(f.Sx.DARK)}),(0,We.jsx)(q.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:Te===f.Sx.LIGHT?Xe:void 0,onClick:()=>o(f.Sx.LIGHT)}),(0,We.jsx)(J.kb,{})]})})},we=(0,C.Mz)([E.Ph,E.Pf,E.U4,E.bF,E.m5,E.Re,E.Mh,E.ub,E.hM,E.KR,S.Lc,E.UB,E.Cb],(Oe,Be,tt,Xe,ne,lt,rt,Te,Ge,ue,Me,Ze,fe)=>{var it;let{isSquare:et,isEmbedV2:Ut,isHTMLZip:G}=Xe,Ht=!0;return G||(Ht=Ze==null?void 0:Ze.view_sticky,Ze&&typeof Ze.view_sticky=="string"&&(Ht=Ze.view_sticky==="view_sticky")),{propsForMenu:{isPreviewAIComponent:fe&&((it=sdkStore.getHotItem(fe))==null?void 0:it.hotAttr.type)===V.x.WCode,isFullScreenMode:Oe,isLeftShow:!Be,isRightShow:tt,isSquare:et,isEmbedV2:Ut,theme:ne,isHighlight:lt,isShowShell:rt,isCommunityComboPreview:Te,isPreviewCombo:Ge,isPanelPreviewMode:ue,STMode:Me,isViewSticky:Ht}}}),Ae=(0,k.Ng)(Oe=>we(Oe))(re)},29342:(eo,ot,i)=>{"use strict";i.d(ot,{N:()=>k});var a=i(93413);const k=()=>{var M;const P=(M=MB)==null?void 0:M.user;if(!!!(P!=null&&P.id)||ENV.IS_ON_PREMISES)return!1;const q=MB.commonGuideHelper.getState().commonGuidesHasShown||[];if(q.includes(a.c.GUIDE_NOVICE_2309_TASK_5)||q.includes(a.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE))return!1;const Y=24*60*60*1e3,J=new Date().getTime(),O=new Date(P.created_at).getTime();return!(J-7*Y>O)}},29372:(eo,ot,i)=>{"use strict";i.d(ot,{H:()=>Oe,d:()=>Be});var a=i(95549),k=i(38502),M=i(18381),P=i(12211),C=i(79371),q=i.n(C),Y=i(79150),J=i(13642),O=i(70933),l=i(60651),D=i(16454),m=i(36449),E=i(78915),f=i(20089),h=i(57479),S=i(10549),V=i(67787);const We=V.Ay.div.withConfig({displayName:"styles__StyledDraftLinkToastDiv",componentId:"sc-bordw3-0"})(["position:absolute;width:max-content;z-index:107;left:50%;-webkit-transform:translate(-50%) scale(0);-ms-transform:translate(-50%) scale(0);transform:translate(-50%) scale(0);transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);.container{width:240px;height:32px;box-sizing:border-box;border:1px solid ",";background:",";border-radius:6px;padding:4px;position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;&::before{top:0;left:10%;border:solid transparent;content:' ';position:absolute;pointer-events:none;transform:rotate(135deg);border-radius:2px;border-width:1px;background-color:",";border-color:transparent transparent "," ",";margin-left:-4px;margin-top:-5px;height:10px;width:10px;}.link-hot-area{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex:1;padding-right:8px;.link-separator-v{margin-left:4px;}}.link-input{min-width:120px;height:18px;border:none;outline:none;text-indent:8px;color:",";width:100%;&::placeholder{font-size:12px;}}.link-separator-v{height:12px;border-right:1px solid ",";}.link-icon{border-radius:6px;}.right{display:flex;flex-direction:row;justify-content:center;align-items:center;.link-separator-v{margin-right:4px;}}}.modal{width:100%;height:8px;position:relative;background:transparent;}"],tt=>tt.theme.color_border_state,tt=>tt.theme.color_bg_white,tt=>tt.theme.color_bg_white,tt=>tt.theme.color_border_state,tt=>tt.theme.color_border_state,tt=>tt.theme.color_text_L1,tt=>tt.theme.color_bg_border_01);var re=i(72214);class ve extends k.Component{constructor(){var Xe;super(...arguments),Xe=this,(0,a.A)(this,"$inputRef",null),(0,a.A)(this,"$containerRef",null),(0,a.A)(this,"state",{widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0,canEditLink:!1,settingLevel:"editing",selection:void 0,isPreviewModal:!1}),(0,a.A)(this,"setContainerRef",ne=>{this.$containerRef=ne}),(0,a.A)(this,"setInputRef",ne=>{this.$inputRef=ne}),(0,a.A)(this,"handleLinkToastAdd",ne=>{var lt;let{widget:rt,linkTitle:Te,linkTarget:Ge,style:ue,blockKey:Me,start:Ze,end:fe,fromType:it,settingLevel:et,selection:Ut}=ne;!rt||!(rt.cid||rt.key)||(this.setState({widget:rt,linkMode:"add",linkTitle:Te,originLinkTarget:Ge,linkTarget:Ge,linkStyle:ue,blockKey:Me,start:Ze,end:fe,fromType:it,settingLevel:et,selection:Ut},()=>{this.$inputRef&&this.$inputRef.focus()}),(lt=MB)!=null&&lt.action&&MB.action("draft:update:state",{linkToastShow:!0}))}),(0,a.A)(this,"handleLinkToastView",q()(ne=>{let{widget:lt,linkTitle:rt,linkTarget:Te,style:Ge,blockKey:ue,start:Me,end:Ze,fromType:fe,canEditLink:it=!0,isPreviewModal:et}=ne;!lt||!(lt.cid||lt.key)||(this.setState({widget:lt,linkMode:"view",linkTitle:rt,originLinkTarget:Te,linkTarget:Te,linkStyle:Ge,blockKey:ue,start:Me,end:Ze,fromType:fe,canEditLink:it,isPreviewModal:et}),this.setLinkToastShow(et))},300,{leading:!1,trailing:!0})),(0,a.A)(this,"handleLinkToastEdit",ne=>{let{widget:lt,linkTitle:rt,linkTarget:Te,style:Ge,blockKey:ue,start:Me,end:Ze,fromType:fe,settingLevel:it}=ne;!lt||!(lt.cid||lt.key)||(this.setState({widget:lt,linkMode:"edit",linkTitle:rt,originLinkTarget:Te,linkTarget:Te,linkStyle:Ge,blockKey:ue,start:Me,end:Ze,fromType:fe,settingLevel:it}),this.setLinkToastShow())}),(0,a.A)(this,"handleLinkToastHide",()=>{const{linkMode:ne}=this.state;["add","edit"].includes(ne)||this.resetState()}),(0,a.A)(this,"handleLinkToastQuit",()=>{if(!this.props.linkToastShow)return;const{linkMode:ne}=this.state;if(["add","edit"].includes(ne)){this.onLink();return}this.resetState()}),(0,a.A)(this,"setLinkToastShow",function(ne){ne===void 0&&(ne=!1);const{linkToastShow:lt,dispatch:rt}=Xe.props;if(!lt){if(ne){var Te,Ge;!((Te=MB)==null||(Te=Te.webpackInterface)==null)&&Te.store&&((Ge=MB)==null||(Ge=Ge.webpackInterface)==null||Ge.store.dispatch({type:"draft:update:state",payload:{linkToastShow:!0}}));return}rt({type:m.k.EntryKey["entry:draft:linkToastShow:update"],payload:{linkToastShow:!0}})}}),(0,a.A)(this,"resetState",q()(()=>{this.setState({widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0});const{linkToastShow:ne,dispatch:lt}=this.props;ne&&lt({type:m.k.EntryKey["entry:draft:batch:update"],payload:{linkToastShow:!1,isCreatingLink:!1}})},10,{leading:!1,trailing:!0})),(0,a.A)(this,"getStyle",(ne,lt)=>{if(!ne||!lt)return{left:0,top:-100,visibility:"hidden"};const{left:rt,top:Te}=lt;return{top:Te,left:rt,visibility:"visible",transform:"scale(1)"}}),(0,a.A)(this,"onLink",()=>{const{linkTitle:ne,linkTarget:lt,originLinkTarget:rt,blockKey:Te,start:Ge,end:ue,fromType:Me,widget:Ze,settingLevel:fe}=this.state;fe==="editing"?J.A.emit("draft:inline-toolbar:link",{action:"link",linkTitle:ne,linkTarget:lt,originLinkTarget:rt,blockKey:Te,start:Ge,end:ue,fromType:Me,widget:Ze}):J.A.emit("draft:inline-toolbar:link-widget",{action:"link",linkTitle:ne,linkTarget:lt,originLinkTarget:rt,fromType:Me,widget:Ze}),this.resetState()}),(0,a.A)(this,"handleUrlChange",ne=>{this.setState({linkTarget:ne.target.value})}),(0,a.A)(this,"handleInputKeyDown",ne=>{ne.keyCode===h.Ju.Enter&&(ne.preventDefault(),ne.stopPropagation(),this.onLink()),ne.key==="Escape"&&(ne.preventDefault(),ne.stopPropagation(),this.resetState())}),(0,a.A)(this,"handleEdit",ne=>{var lt;ne.preventDefault(),ne.stopPropagation();const{dispatch:rt}=this.props,{widget:Te,linkTitle:Ge,originLinkTarget:ue,blockKey:Me,start:Ze,end:fe,fromType:it}=this.state;rt({type:m.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}});const et=Te.cid||Te.key,Ut=((0,S.HO)((Te==null?void 0:Te.hotAttr)||Te)==="exist","editing");(Te.type||((lt=Te.hotAttr)==null?void 0:lt.type))===f.x.WMindNode?rt({type:"mind:update:state",payload:{selectedMindNodeKeys:[et]}}):Ut!=="widget"&&(rt({type:"entry:select:items",payload:{cids:[et]}}),rt({type:"set:editing:cid",payload:{cid:et}})),setTimeout(()=>{it==="settingPanel"?J.A.emit("draft:design:editorState:selection:basic",{widget:Te,linkTitle:Ge,originLinkTarget:ue,blockKey:Me,start:Ze,end:fe}):J.A.emit("draft:design:editorState:selection",{widget:Te,linkTitle:Ge,originLinkTarget:ue,blockKey:Me,start:Ze,end:fe}),this.setLinkToastShow(),this.setState({linkMode:"edit",settingLevel:Ut,widget:Te},()=>{setTimeout(()=>{this.$inputRef&&this.$inputRef.focus()},16.7)})},16.7)}),(0,a.A)(this,"handleUnlink",ne=>{ne.preventDefault(),ne.stopPropagation();const{linkTitle:lt,linkTarget:rt,originLinkTarget:Te,blockKey:Ge,start:ue,end:Me,fromType:Ze,widget:fe,settingLevel:it}=this.state;it!=="widget"?J.A.emit("draft:inline-toolbar:link",{action:"unlink",linkTitle:lt,linkTarget:rt,originLinkTarget:Te,blockKey:Ge,start:ue,end:Me,fromType:Ze,widget:fe}):J.A.emit("draft:inline-toolbar:link-widget",{action:"unlink",linkTitle:lt,linkTarget:rt,originLinkTarget:Te,blockKey:Ge,start:ue,end:Me,fromType:Ze,widget:fe}),this.resetState()}),(0,a.A)(this,"handleView",ne=>{ne.preventDefault(),ne.stopPropagation();const{linkMode:lt,linkTarget:rt,isPreviewModal:Te}=this.state;if(lt!=="view")return;const{dispatch:Ge}=this.props;Ge({type:m.k.EntryKey["entry:draft:open:hyperlink"],payload:{hyperlink:rt,transition:"newTab",isPreviewModal:Te}})})}componentDidMount(){J.A.on("draft:link-toast:add",this.handleLinkToastAdd),J.A.on("draft:link-toast:view",this.handleLinkToastView),J.A.on("draft:link-toast:edit",this.handleLinkToastEdit),J.A.on("draft:link-toast:hide",this.handleLinkToastHide),J.A.on("draft:link-toast:quit",this.handleLinkToastQuit)}componentDidUpdate(Xe){const{canvasScale:ne,canvasOffset:{x:lt=0,y:rt=0}={}}=Xe,{canvasScale:Te,canvasOffset:{x:Ge=0,y:ue=0}={},linkToastShow:Me}=this.props;(Te!==ne||Ge+"$"+ue!=lt+"$"+rt)&&Me&&this.resetState()}componentWillUnmount(){this.setState=()=>!1,J.A.off("draft:link-toast:add",this.handleLinkToastAdd),J.A.off("draft:link-toast:view",this.handleLinkToastView),J.A.off("draft:link-toast:edit",this.handleLinkToastEdit),J.A.off("draft:link-toast:hide",this.handleLinkToastHide),J.A.off("draft:link-toast:quit",this.handleLinkToastQuit)}render(){const{linkMode:Xe,linkStyle:ne,linkTarget:lt,canEditLink:rt}=this.state,{linkToastShow:Te}=this.props;if(!Te)return null;const Ge=this.getStyle(Te,ne),{isReadOnly:ue}=this.props;return(0,re.jsxs)(We,{className:"draft-link-toast",style:Ge,ref:this.setContainerRef,children:[(0,re.jsxs)("div",{className:"container",children:[(0,re.jsxs)("div",{className:"link-hot-area",onClick:this.handleView,children:[Xe==="view"&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Y.A,{name:"draft/link/add",className:"link-icon"}),(0,re.jsx)("span",{className:"link-separator-v"})]}),(0,re.jsx)("input",{ref:this.setInputRef,type:"text",className:"link-input",placeholder:I18N.TextToolbar.url1,readOnly:Xe==="view",style:{cursor:Xe==="view"?"pointer":"default"},value:lt,onChange:this.handleUrlChange,onBlur:this.handleUrlChange,onKeyDown:this.handleInputKeyDown})]}),Xe==="view"&&!ue&&rt&&(0,re.jsxs)("div",{className:"right",children:[(0,re.jsx)("span",{className:"link-separator-v"}),(0,re.jsx)(Y.A,{name:"draft/link/edit",className:"link-icon",onClick:this.handleEdit})]}),Xe==="edit"&&(0,re.jsxs)("div",{className:"right",children:[(0,re.jsx)("span",{className:"link-separator-v"}),(0,re.jsx)(Y.A,{name:"draft/link/remove",className:"link-icon",onClick:this.handleUnlink})]})]}),(0,re.jsx)("div",{className:"modal",style:{display:ne&&(ne.left||ne.top)?"block":"none"}})]})}}const we=(0,P.Mz)([m.k.Query.getLinkToastShow,O.X_,O.ER,l.jx],(tt,Xe,ne,lt)=>{const rt=lt===E.qi.OnlyView;return{linkToastShow:tt,canvasScale:Xe,canvasOffset:ne,isReadOnly:rt}}),Ae=(0,P.Mz)([m.k.Query.getLinkToastShow,D.X_,D.A3],(tt,Xe,ne)=>({linkToastShow:tt,canvasScale:Xe,canvasOffset:ne,isReadOnly:!0})),Oe=(0,M.Ng)(tt=>we(tt))(ve),Be=(0,M.Ng)(tt=>Ae(tt))(ve)},29767:(eo,ot,i)=>{"use strict";i.d(ot,{V:()=>J,X:()=>Y});var a=i(56193),k=i(23033),M=i(38502),P=i(85584),C=i(47163),q=i(72214);const Y=O=>{if((0,P.lB)(O))return J()},J=function(O){return O===void 0&&(O=!0),setTimeout(()=>{var l;return(l=MB)==null||(l=l.messageBucket)==null?void 0:l.send("mobileLoadProjectError",{errMsg:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8"})},1e3),(0,q.jsx)(a.A,{errorType:404,locale:(0,C.w)(),isShowPrimaryBtn:O,customTitle:I18N.dModule.project_screen_err_title,customDes:I18N.ToolBar.ReEnter,isShowSecondaryBtn:!1,primaryClick:()=>(0,k.os)("zh-CN","\u539F\u578B-\u5206\u4EAB\u94FE\u63A5\u9875\u9762\u4E3A\u7A7A")})}},29794:(eo,ot,i)=>{"use strict";i.d(ot,{Dd:()=>l,eA:()=>m,hJ:()=>D});var a=i(53102);const k=.83,M=1,P=!1,C=(E,f,h)=>Math.round(f+E/h),q=E=>E<=.05?200:E<=.1?100:E<=.2?50:E<=.5?20:E<=1?10:E<=2?5:E<=5?2:(E<=40,1),Y=E=>E<=10?10:E<=20?5:E<=40?2:10,J=(E,f)=>{const h=q(E),S=h*E,V=h*Y(E),We=V*E,re=Math.floor(f/h)*h,ve=Math.floor(f/V)*V,we=(re-f)/h*S,Ae=(ve-f)/V*We;return{gridSize:h,gridPixel:S,gridSize_10:V,gridPixel_10:We,startValue:re,startValue_10:ve,offset:we,offset_10:Ae}},O=function(E,f,h,S,V,We){if(We===void 0&&(We="h"),!V)return;const{x:re,y:ve,w:we,h:Ae}=V,Oe=We==="h"?(re-S)*h:0,Be=We==="h"?0:(ve-S)*h,tt=We==="h"?we*h:we*M,Xe=We==="h"?Ae*M:Ae*h;E.fillStyle=f,E.fillRect(Oe,Be,tt,Xe)},l=(E,f,h,S)=>{const{scale:V,width:We,height:re,canvasConfigs:ve}=S,{bgColor:we,fontColor:Ae,ratio:Oe,shadowColor:Be,longfgColor:tt,shortfgColor:Xe}=ve,ne=P;E.scale(Oe,Oe),E.clearRect(0,0,We,re),E.fillStyle=we,E.fillRect(0,0,We,re),O(E,Be,V,f,h);const{gridSize:lt,gridPixel:rt,gridSize_10:Te,gridPixel_10:Ge,startValue:ue,startValue_10:Me,offset:Ze,offset_10:fe}=J(V,f),it=f+Math.ceil(We/V);E.beginPath(),E.fillStyle=Ae,E.strokeStyle=tt;for(let et=Me,Ut=0;et<it;et+=Te,Ut++){const G=fe+Ut*Ge+.5;E.moveTo(G,0),E.save(),E.translate(G,re*.4),E.scale(k/Oe,k/Oe),E.fillText(et,-E.measureText(et).width/2,4*Oe),E.restore(),E.moveTo(G,re-2),E.lineTo(G,re)}if(E.stroke(),E.closePath(),ne){E.beginPath(),E.strokeStyle=Xe;for(let et=ue,Ut=0;et<it;et+=lt,Ut++){const G=Ze+Ut*rt+.5;E.moveTo(G,0),et%Te!==0&&E.lineTo(G,re*1/4)}E.stroke(),E.closePath()}E.setTransform(1,0,0,1,0,0)},D=(E,f,h,S)=>{const{scale:V,width:We,height:re,canvasConfigs:ve}=S,{bgColor:we,fontColor:Ae,ratio:Oe,shadowColor:Be,longfgColor:tt,shortfgColor:Xe}=ve,ne=P;E.scale(Oe,Oe),E.clearRect(0,0,We,re),E.fillStyle=we,E.fillRect(0,0,We,re),O(E,Be,V,f,h,"v");const{gridSize:lt,gridPixel:rt,gridSize_10:Te,gridPixel_10:Ge,startValue:ue,startValue_10:Me,offset:Ze,offset_10:fe}=J(V,f),it=f+Math.ceil(re/V);E.beginPath(),E.fillStyle=Ae,E.strokeStyle=tt;for(let et=Me,Ut=0;et<it;et+=Te,Ut++){const G=fe+Ut*Ge+.5;E.moveTo(0,G),E.save(),E.translate(We*.4,G),E.rotate(-Math.PI/2),E.scale(k/Oe,k/Oe),E.fillText(et,-E.measureText(et).width/2,4*Oe),E.restore(),E.moveTo(We-2,G),E.lineTo(We,G)}if(E.stroke(),E.closePath(),ne){E.beginPath(),E.strokeStyle=Xe;for(let et=ue,Ut=0;et<it;et+=lt,Ut++){const G=Ze+Ut*rt+.5;E.moveTo(0,G),et%Te!==0&&E.lineTo(We*1/4,G)}E.stroke(),E.closePath()}E.setTransform(1,0,0,1,0,0)},m=E=>{const{ratio:f,viewportRect:h,canvasLeft:S,canvasTop:V,x:We,y:re,width:ve,height:we,selectedParentCanvas:Ae,rulerLineCanvas:Oe}=E,Be=h.width-a.MV,tt=h.height-a.MV,Xe=(h.left+a.MV-S)/f,ne=(h.top+a.MV-V)/f;return{rulerWidth:Be,rulerHeight:tt,startX:Xe,startY:ne,shadow:{x:We,y:re,width:ve,height:we},startWithCanvas:Oe||Ae}}},30024:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>l});var a=i(38502),k=i(38182),M=i(68455),P=i(39e3),C=i(67787);const q=C.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1dwln2t-0"})([".toolbar-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:#f7f7f7;}&:active,&.active{background-color:#e5e5e5;}&.active:hover{background-color:#e5e5e5;}}.toolbar-btn .svg-icon{width:32px;height:32px;}"]),Y=(0,C.DU)([".more-drop-menu.list-content{min-width:96px;}"]);var J=i(72214);const l=D=>{const{onChange:m,options:E}=D,f=(0,a.useRef)(null),[h,S]=(0,a.useState)(!1),V=(0,a.useCallback)(Oe=>()=>{m&&m(Oe),re()},[m]),We=()=>{S(!0)},re=()=>{S(!1)},ve=()=>{h?re():We()},we=Oe=>{var Be;let{target:tt}=Oe;!h||!(f!=null&&f.current)||f!=null&&(Be=f.current)!=null&&Be.contains(tt)||tt.closest(".list-content")||re()},Ae=()=>E.map(Oe=>({isShow:!0,label:I18N.Comment[Oe.label],onClick:V(Oe.value)}));return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(q,{ref:f,onClick:ve,children:(0,J.jsx)(k.A,{className:"toolbar-btn comment-more-btn",name:I18N.Comment.more,icon:"more",active:h})}),h&&(f==null?void 0:f.current)&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Y,{}),(0,J.jsx)(M.A,{className:"more-drop-menu",menuItems:Ae(),targetNode:f==null?void 0:f.current,direction:"down-end",distance:2}),(0,J.jsx)(P.A,{target:document,onMouseDown:(0,P.t)(we,{capture:!0})})]})]})}},30179:(eo,ot,i)=>{"use strict";i.d(ot,{t5:()=>_o,$j:()=>li,S1:()=>x0,vp:()=>Qi,ac:()=>jm,q:()=>Wh,zE:()=>ju,Mc:()=>wc,HN:()=>np,rK:()=>kn,kX:()=>N1,MH:()=>rl,qR:()=>Hh,bK:()=>Yn,wy:()=>Rp,GM:()=>Xl});var a=i(38502),k=i(18381),M=i(50001),P=i(28537),C=i(13642),q=i(37320),Y=i(67588),J=i(30728),O=i(93e3),l=i(70933),D=i(60651),m=i(20089),E=i(79770),f=i(53940),h=i(78915),S=i(77709),V=i(25997),We=i(67052),re=i(53102),ve=i(95549);class we{constructor(){(0,ve.A)(this,"_scale",1)}static getInstance(){return we.instance||(we.instance=new we),we.instance}get scale(){return this._scale}set scale(U){this._scale=U}}const Ae=we.getInstance(),Oe=$=>{const{ratio:U,viewportRect:H,canvasRect:ae}=$,de=(H.left+re.MV-ae.canvasLeft)/U,ge=(H.top+re.MV-ae.canvasTop)/U,le=(H.right-ae.canvasLeft)/U,Ee=(H.bottom-ae.canvasTop)/U;return{startX:de,startY:ge,endX:le,endY:Ee}},Be=$=>{let{canvas:U,type:H,value:ae}=$;const{x:de=0,y:ge=0,w:le=0,h:Ee=0}=(U==null?void 0:U.hotAttr)||{},Pe=ge-Ee*.5,Fe=de-le*.5;return ae+(U?H==="horizontal"?Pe:Fe:0)},tt=$=>{let{fromCanvas:U,curCanvas:H,type:ae,value:de,realValue:ge}=$;if(!H)return ge;const{x:le,y:Ee,w:Pe,h:Fe}=(H==null?void 0:H.hotAttr)||{},Ke=Ee-Fe*.5,ct=le-Pe*.5;if(!U)return ae==="horizontal"?de-Ke:de-ct;if(U.key===H.key)return de;const{x:vt,y:Ft,w:pn,h:bn}=(U==null?void 0:U.hotAttr)||{},to=Ft-bn*.5,Po=vt-pn*.5;return ae==="horizontal"?de+to-Ke:de+Po-ct};var Xe=i(62532);const ne=($,U)=>{let{scale:H,offset:ae,viewportRect:de}=U;const ge=J.Z.xy($.clientX-window.innerWidth/2,$.clientY-de.top-de.height/2);return O.L.applyInverse({offset:ae,scale:H/100},ge)},lt=()=>{const $=(0,k.d4)(l.X_),U=(0,k.d4)(l.Pz),H=re.MF[(0,k.d4)(Y.O4)],ae=(0,k.d4)(l.ER),de=(0,k.d4)(l.eo),ge=(0,k.d4)(S.wT),le=(0,k.d4)(l.$S),Ee=(0,k.d4)(We.uE),Pe=(0,k.d4)(We.Xf),Fe=(0,k.d4)(D.T7),Ke=(0,k.d4)(Y.bP),vt=(0,k.d4)(D.jx)===h.qi.OnlyView,Ft=Fe||Ke==="old_right"||vt?0:f.fn,pn=(0,k.d4)(Y.gf)&&!vt,bn={width:le==null?void 0:le.width,height:le==null?void 0:le.height,left:Pe?Ee+Ft:Ft,transform:"matrix(1, 0, 0, 1, "+(Math.round(-ae.x)-Math.round(window.innerWidth/2))+", "+(Math.round(-ae.y)-Math.round((window.innerHeight-ge)/2))+")"};return{scale:$,theme:H,canvasRect:U,viewportRect:le,containerStyle:bn,currentScreenCid:de,curToolBarHeight:ge,isShowReferLine:pn}},rt=()=>{const U=(0,k.d4)(D.jx)===h.qi.OnlyView;return(0,k.d4)(Y.gf)&&!U},Te=()=>{const $=(0,k.d4)(l.$S),U=(0,k.d4)(Y.qT),H=(0,k.d4)(D.pH),ae=(0,k.d4)(D.rg),de=(0,k.d4)(D.uu);return $&&U&&!H&&!ae&&!de},Ge=()=>{var $,U;const H=(0,k.d4)(l.eo),ae=(0,k.d4)(V.UV),de=H?ae.getHotItem(H):null;return{alignH:(de==null||($=de.hotAttr)==null?void 0:$.alignH)||[],alignV:(de==null||(U=de.hotAttr)==null?void 0:U.alignV)||[]}},ue=()=>{const $=(0,k.d4)(l.eo),U=(0,k.d4)(V.RX),H=(0,k.d4)(V.UV);return(0,a.useMemo)(()=>{const de={};return H.getSubHotItemList($).forEach(ge=>{var le,Ee;const{key:Pe,hotAttr:Fe}=ge;Fe.type===m.x.Canvas&&(((le=Fe.alignH)==null?void 0:le.length)>0||((Ee=Fe.alignV)==null?void 0:Ee.length)>0)&&(de[Pe]=ge)}),de},[$,U,H])},Me=()=>{const $=(0,k.d4)(l.eo),U=(0,k.d4)(l.X_),H=(0,k.d4)(l.$S),ae=(0,k.d4)(l.ER);return(0,a.useCallback)(de=>{const ge=ne(de,{scale:U,offset:ae,viewportRect:H}),le=(0,E.Tg)(ge,$);return le?sdkStore.getHotItem(le):null},[$,U,H,ae])},Ze=$=>Me()($),fe=()=>{const U=(0,k.d4)(D.jx)===h.qi.OnlyView,H=(0,k.d4)(Y.gf)&&!U,ae=(0,k.d4)(Y.Nn);return{showRuler:(0,k.d4)(Y.qT),isShowReferLine:H,isShowAlignLine:ae}},it=$=>{let{canvas:U,type:H,value:ae}=$;const de=(0,k.d4)(l.X_)/100,{startY:ge,startX:le}=(0,k.d4)(Xe.$U)||{};return(0,P.qK)(()=>{const Ee=H==="horizontal",Pe=Ee?ge:le,Ke=(Be({canvas:U,type:H,value:ae})-Pe)*de+re.MV;return Ee?"translateY("+Ke+"px)":"translateX("+Ke+"px)"})},et=()=>{const $=(0,k.d4)(l.X_)/100,U=(0,k.d4)(l.$S),{startY:H,startX:ae}=(0,k.d4)(Xe.$U)||{};return(0,P.qK)(de=>{let{type:ge,canvas:le}=de;const Ee=ge==="horizontal",{x:Pe=0,y:Fe=0,w:Ke=0,h:ct=0}=(le==null?void 0:le.hotAttr)||{},vt=Fe-ct*.5,Ft=Pe-Ke*.5,pn=Ee?U==null?void 0:U.width:U==null?void 0:U.height,bn=Ee?Ke:ct,to=(Ee?Ft-ae:vt-H)*$+re.MV,Po=to<0?0:to>pn?pn:to,fo=to<0?Math.max(bn*$+to,0):to+bn*$>pn?pn-to:bn*$,Ho=to+bn*$>pn?0:pn-to-bn*$,Ko=Ee?"width":"height";return{left:Math.max(Po,0),conter:Math.max(fo,0),right:Math.max(Ho,0),styleKey:Ko}})},Ut=()=>{var $;const U=($=(0,k.d4)(Xe.KF))==null?void 0:$[0];return(0,P.qK)(H=>{let{index:ae,canvas:de,type:ge}=H;if(!U||U.type!==ge)return!1;if(de){var le;return(U==null||(le=U.canvas)==null?void 0:le.key)===de.key&&U.index===ae}return!U.canvas&&U.index===ae})},G=()=>(0,k.d4)(D.jx)===h.qi.OnlyView,Ht=()=>!(0,k.d4)(l.p$),Tt=($,U)=>{$({type:"entry:update:current-screen:screen-align",payload:{lines:U}})},Vt=($,U,H)=>{$({type:"entry:update:canvas:align",payload:{canvasCid:U.key,lines:H}})},He={dispatchOuterLines:Tt,dispatchCanvasLines:Vt},rn=$=>{let{dispatch:U,curCanvas:H,type:ae,value:de,outerAlignH:ge,outerAlignV:le}=$;if(H){const{hotAttr:{x:Fe,y:Ke,w:ct,h:vt}}=H,Ft=Ke-vt*.5,pn=Fe-ct*.5,bn=ae==="horizontal"?de-Ft:de-pn,Po=[...ae==="horizontal"?H.hotAttr.alignH:H.hotAttr.alignV,bn],fo=ae==="horizontal"?{h:Po,v:H.hotAttr.alignV}:{h:H.hotAttr.alignH,v:Po};return Vt(U,H,fo),{newIndex:Po.length-1,realValue:bn}}const Ee=ae==="horizontal"?{h:[...ge,de],v:le}:{h:ge,v:[...le,de]};return Tt(U,Ee),{newIndex:ae==="horizontal"?Ee.h.length-1:Ee.v.length-1,realValue:de}},Lt=$=>{let{formCanvas:U,dispatch:H,index:ae,type:de,outerAlignH:ge,outerAlignV:le}=$;if(!U){const vt=(de==="horizontal"?ge:le).filter((pn,bn)=>bn!==ae);Tt(H,de==="horizontal"?{h:vt,v:le}:{h:ge,v:vt});return}const Ee={h:U.hotAttr.alignH,v:U.hotAttr.alignV},Fe=(de==="horizontal"?Ee.h:Ee.v).filter((ct,vt)=>vt!==ae),Ke=de==="horizontal"?{...Ee,h:Fe}:{...Ee,v:Fe};Vt(H,U,Ke)},jt=$=>{let{dispatch:U,formCanvas:H,index:ae,type:de,value:ge,outerAlignH:le,outerAlignV:Ee}=$;if(H){Jn({dispatch:U,formCanvas:H,index:ae,type:de,value:ge});return}mt({dispatch:U,index:ae,type:de,value:ge,outerAlignH:le,outerAlignV:Ee})},mt=$=>{let{dispatch:U,index:H,type:ae,value:de,outerAlignH:ge,outerAlignV:le}=$;const Pe=(ae==="horizontal"?ge:le).map((Ke,ct)=>ct===H?de:Ke);return Tt(U,ae==="horizontal"?{h:Pe,v:le}:{h:ge,v:Pe}),{newIndex:H,newValue:de}},Jn=$=>{let{dispatch:U,formCanvas:H,index:ae,type:de,value:ge}=$;const le={h:H.hotAttr.alignH,v:H.hotAttr.alignV},Ee=de==="horizontal"?le.h:le.v,Pe=ae===Ee.length?[...Ee,ge]:Ee.map((Ke,ct)=>ct===ae?ge:Ke),Fe=de==="horizontal"?{...le,h:Pe}:{...le,v:Pe};return Vt(U,H,Fe),{newIndex:ae,newValue:ge}},Jt={addLine:rn,moveLine:jt,delectLine:Lt,moveOutsideLine:mt,moveBetweenSameCanvas:Jn,moveInsideToOutside:$=>{let{dispatch:U,formCanvas:H,index:ae,type:de,value:ge,outerAlignH:le,outerAlignV:Ee}=$;const Pe={h:H.hotAttr.alignH,v:H.hotAttr.alignV},Ke=(de==="horizontal"?Pe.h:Pe.v).filter((Aa,I)=>I!==ae),ct=de==="horizontal"?{...Pe,h:Ke}:{...Pe,v:Ke};Vt(U,H,ct);const{hotAttr:{x:vt,y:Ft,w:pn,h:bn}}=H,to=Ft-bn*.5,Po=vt-pn*.5,fo=de==="horizontal"?ge+to:ge+Po,Ko=[...de==="horizontal"?le:Ee,fo];return Tt(U,de==="horizontal"?{h:Ko,v:Ee}:{h:le,v:Ko}),{newIndex:Ko.length-1,newValue:fo}},moveOutsideToInside:$=>{let{dispatch:U,curCanvas:H,index:ae,type:de,value:ge,outerAlignH:le,outerAlignV:Ee}=$;const Fe=(de==="horizontal"?le:Ee).filter((Aa,I)=>I!==ae);Tt(U,de==="horizontal"?{h:Fe,v:Ee}:{h:le,v:Fe});const{hotAttr:{x:ct,y:vt,w:Ft,h:pn}}=H,bn=vt-pn*.5,to=ct-Ft*.5,Po=de==="horizontal"?ge-bn:ge-to,Ho=[...de==="horizontal"?H.hotAttr.alignH:H.hotAttr.alignV,Po],Ko=de==="horizontal"?{h:Ho,v:H.hotAttr.alignV}:{h:H.hotAttr.alignH,v:Ho},ha=Ho.length-1;return Vt(U,H,Ko),{newIndex:ha,newValue:Po}},moveBetweenDifferentCanvas:$=>{let{dispatch:U,formCanvas:H,curCanvas:ae,index:de,type:ge,value:le}=$;const Ee={h:H.hotAttr.alignH,v:H.hotAttr.alignV},Fe=(ge==="horizontal"?Ee.h:Ee.v).filter((Mt,ut)=>ut!==de),Ke=ge==="horizontal"?{...Ee,h:Fe}:{...Ee,v:Fe};Vt(U,H,Ke);const{hotAttr:{x:ct,y:vt,w:Ft,h:pn}}=ae,bn=vt-pn*.5,to=ct-Ft*.5,{hotAttr:{x:Po,y:fo,w:Ho,h:Ko}}=H,ha=fo-Ko*.5,Aa=Po-Ho*.5,I=ge==="horizontal"?le+ha-bn:le+Aa-to,oe=[...ge==="horizontal"?ae.hotAttr.alignH:ae.hotAttr.alignV,I],be=ge==="horizontal"?{h:oe,v:ae.hotAttr.alignV}:{h:ae.hotAttr.alignH,v:oe};return Vt(U,ae,be),{newIndex:oe.length-1,newValue:I}}};var Ot=i(53732),dn=i.n(Ot),Ce=i(72214);const Nn=(0,a.memo)($=>{let{type:U,value:H,canvas:ae,index:de,isActive:ge,onClick:le,onMousemove:Ee,onMouseup:Pe,onHover:Fe}=$;const Ke=Ht(),[ct,vt]=(0,a.useState)(H),[Ft,pn]=(0,a.useState)(!1),bn=et(),to=it({canvas:ae,type:U,value:ct}),Po=(0,k.d4)(Xe.Q),{left:fo,conter:Ho,styleKey:Ko}=bn({type:U,canvas:ae}),ha=U==="horizontal"?"marginLeft":"marginTop",Aa=dn()("ruler-line real",U,{event:!ae&&Ke,line:!ae,"in-canvas":!!ae,hide:ge,dragging:Ft,"is-delete-ruler-line":Po}),I=dn()("line-center line",{event:Ke});(0,a.useEffect)(()=>{vt(H)},[H]);const F=(0,P.qK)(be=>{Ke&&Fe&&!Ft&&Fe({type:U,index:de,open:be,value:H,canvas:ae})}),oe=(0,P.qK)(be=>{if(!Ke)return;let Mt=!0,ut=0,tn=0;const Xt=H;let Kn=H;ut=be.clientX,tn=be.clientY;const ao=K=>{if(!Mt)return;const te=Ae.scale/100,me=K.clientX-ut,$e=K.clientY-tn,nt=U==="horizontal"?$e:me;nt!==0&&(Kn=Math.round(Xt+nt/te),pn(!0),vt(Kn),Ee==null||Ee({type:U,value:Kn,index:de,event:K,canvas:ae}))},v=K=>{Mt=!1,pn(!1),ut===K.clientX&&tn===K.clientY?le==null||le({type:U,value:Kn,index:de,event:K,canvas:ae}):Pe==null||Pe({type:U,value:Kn,index:de,event:K,canvas:ae,callback:te=>{vt(te)}}),window.removeEventListener("mousemove",ao),window.removeEventListener("mouseup",v)};window.addEventListener("mousemove",ao),window.addEventListener("mouseup",v)});return ae?(0,Ce.jsx)("div",{className:Aa,style:{transform:to()},children:(0,Ce.jsx)("div",{style:{[Ko]:Ho,[ha]:fo},className:"line-center-wapper",children:(0,Ce.jsx)("div",{className:I,onMouseDown:oe,onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1)})})}):(0,Ce.jsx)("div",{className:Aa,style:{transform:to()},onMouseDown:oe,onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1)})}),on=()=>{const $=(0,k.wA)(),U=Ut(),H=ue(),{alignH:ae,alignV:de}=Ge(),ge=Me(),le=rt(),Ee=vt=>{const{hotAttr:{alignH:Ft=[],alignV:pn=[],w:bn,h:to}}=vt,Po=[];return Ft.forEach((fo,Ho)=>{fo<=to&&fo>=0&&Po.push({value:fo,index:Ho,type:"horizontal",canvas:vt})}),pn.forEach((fo,Ho)=>{fo<=bn&&fo>=0&&Po.push({value:fo,index:Ho,type:"vertical",canvas:vt})}),Po},Pe=(0,P.qK)(vt=>{let{type:Ft,index:pn,open:bn,value:to,canvas:Po}=vt;C.A.emit("ruler:line:hover",{type:Ft,index:pn,open:bn,canvas:Po,value:to})}),Fe=(0,P.qK)(vt=>{var Ft;const pn=ge(vt.event);let bn=vt.index,to=vt.value;if(pn&&pn.key!==((Ft=vt.canvas)==null?void 0:Ft.key)){const{newIndex:Po,newValue:fo}=Jt.moveOutsideToInside({dispatch:$,curCanvas:pn,index:vt.index,type:vt.type,value:vt.value,outerAlignH:ae,outerAlignV:de});bn=Po,to=fo}$({type:"ruler:update:state",payload:{rulerLineCanvas:pn,selectedLine:[{canvas:vt.canvas||pn,type:vt.type,index:bn,value:to}]}}),$({type:"entry:update:ruler"}),$({type:"entry:clear:selection"})}),Ke=(0,P.qK)(vt=>{let{type:Ft,value:pn,index:bn,event:to,canvas:Po,callback:fo}=vt;C.A.emit("ruler:line:mouseup",{type:Ft,value:pn,index:bn,event:to,canvas:Po,callback:fo})}),ct=(0,P.qK)(vt=>{let{type:Ft,value:pn,index:bn,event:to,canvas:Po}=vt;C.A.emit("ruler:line:mousemove",{type:Ft,value:pn,index:bn,event:to,canvas:Po})});return le?(0,Ce.jsxs)("div",{className:"ruler-line-wrapper",children:[ae.map((vt,Ft)=>(0,Ce.jsx)(Nn,{type:"horizontal",value:vt,index:Ft,onHover:Pe,onClick:Fe,onMouseup:Ke,onMousemove:ct,isActive:U({index:Ft,type:"horizontal",canvas:null})},"h-"+Ft)),de.map((vt,Ft)=>(0,Ce.jsx)(Nn,{type:"vertical",value:vt,index:Ft,onHover:Pe,onClick:Fe,onMouseup:Ke,onMousemove:ct,isActive:U({index:Ft,type:"vertical",canvas:null})},"v-"+Ft)),Object.values(H).map(vt=>Ee(vt).map(Ft=>(0,Ce.jsx)(Nn,{value:Ft.value,type:Ft.type,canvas:Ft.canvas,index:Ft.index,onHover:Pe,onClick:Fe,onMouseup:Ke,onMousemove:ct,isActive:U(Ft)},vt.key+Ft.type+Ft.index)))]}):null};var no=i(69623),mo=i(47163),mn=i(67787);const ht=(0,mn.i7)(["from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:scale(1);}"]),Fn=(0,mn.i7)(["from{opacity:1;transform:scale(1);}to{opacity:0;transform:scale(0.8);}"]),Yt=mn.Ay.div.withConfig({displayName:"style__StyleMenu",componentId:"sc-1xsn7rd-0"})(["position:fixed;display:flex;flex-direction:column;align-items:flex-start;box-shadow:",";background:",";border-radius:8px;padding:8px;transition:opacity 0.2s ease-in-out;transform-origin:0 0;animation:"," 0.2s;animation-fill-mode:forwards;z-index:999;width:166px;&.hide-menu{animation:"," 0.1s;animation-fill-mode:forwards;z-index:-9999;}.divider{border-top:1px solid ",";margin:4px 0;width:100%;}.menu-content{font-size:12px;color:",";background:",";width:100%;height:26px;display:flex;align-items:center;padding-left:31px;cursor:pointer;border-radius:4px;&.hasIcon{padding-left:11px;}svg{margin-right:12px;path{fill:currentColor;}}&.disabled{color:",";pointer-events:none;&:hover{cursor:not-allowed;background:none;color:",";}}&:hover{background:",";cursor:pointer;color:",";}}"],$=>$.theme.shadow_m,$=>$.theme.color_bg_white,ht,Fn,$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1,$=>$.theme.color_bg_white,$=>$.theme.color_text_disabled01,$=>$.theme.color_text_disabled01,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_text_L1),Bn=$=>{let{position:U,onClose:H,menuConfigs:ae,type:de}=$;const ge=(0,mo.w)(),le=(0,k.wA)(),Ee=(0,a.useRef)(document.createElement("div")),{isShowAlignLine:Pe,isShowReferLine:Fe,showRuler:Ke}=fe(),ct=ue(),{alignH:vt,alignV:Ft}=Ge(),pn=de==="vertical"?re.qZ[ge].vertical:re.qZ[ge].horizontal;(0,a.useEffect)(()=>{const ha=Ee.current;return document.body.appendChild(ha),document.addEventListener("click",H),document.addEventListener("mousedown",to),()=>{document.removeEventListener("mousedown",to),document.removeEventListener("click",H),document.body.removeChild(ha)}},[]);const bn=(0,a.useMemo)(()=>{let ha=vt.length>0,Aa=Ft.length>0;return Object.values(ct).forEach(I=>{var F,oe;ha=ha||((F=I.hotAttr)==null||(F=F.alignH)==null?void 0:F.length)>0,Aa=Aa||((oe=I.hotAttr)==null||(oe=oe.alignV)==null?void 0:oe.length)>0}),de==="vertical"?Aa:ha},[vt,Ft,ct,de]),to=ha=>{ha.button===2&&H()},Po=()=>{le({type:"entry:update:preference",payload:{ruler:!Ke}})},fo=()=>{le({type:"entry:update:preference",payload:{show_ruler_line:!Fe}})},Ho=()=>{le({type:"entry:update:preference",payload:{show_align_line:!Pe}})},Ko=()=>{const ha=de==="vertical"?{v:[],h:vt}:{h:[],v:Ft};He.dispatchOuterLines(le,ha),Object.values(ct).forEach(Aa=>{const I=de==="vertical"?{v:[],h:Aa.hotAttr.alignH}:{h:[],v:Aa.hotAttr.alignV};He.dispatchCanvasLines(le,Aa,I)})};return(0,Ce.jsx)(Ce.Fragment,{children:(0,no.createPortal)((0,Ce.jsxs)(Yt,{menuConfigs:ae,style:{left:U.left,top:U.top},id:"rulerContextMenu",children:[(0,Ce.jsxs)("a",{className:"menu-content hasIcon",onClick:Po,children:[re.iU,re.qZ[ge].show_ruler]}),(0,Ce.jsxs)("a",{className:dn()("menu-content",{hasIcon:Fe}),onClick:fo,children:[Fe&&re.iU,re.qZ[ge].show_refer_line]}),(0,Ce.jsxs)("a",{className:dn()("menu-content",{hasIcon:Pe,disabled:!Fe}),onClick:Ho,children:[Pe&&re.iU,re.qZ[ge].align_line]}),(0,Ce.jsx)("div",{className:"divider"}),(0,Ce.jsxs)("a",{className:dn()("menu-content",{disabled:!bn}),onClick:Ko,children:[re.qZ[ge].remove_all,pn,re.qZ[ge].refer_line]})]}),Ee.current)})};var qt=i(79371),Zt=i.n(qt),jn=i(29794);class ro{constructor(U,H){var ae=this;if((0,ve.A)(this,"canvasH",document.createElement("canvas")),(0,ve.A)(this,"canvasV",document.createElement("canvas")),(0,ve.A)(this,"handleUpdateCanvasConfig",()=>{const{ratio:de,palette:ge}=this.config,le=ge||re.GT,Ee={ratio:de||re.tj,bgColor:le.bgColor,longfgColor:le.longfgColor,shortfgColor:le.shortfgColor,fontColor:le.fontColor,shadowColor:le.shadowColor};this.config={...this.config,canvasConfigs:Ee}}),(0,ve.A)(this,"handleCompare",de=>{if(!de)return!0;const ge={...this.config,...de},{scale:le,width:Ee,height:Pe,thick:Fe,startX:Ke,startY:ct,theme:vt,shadow:{x:Ft,y:pn,width:bn,height:to},startWithCanvas:Po}=this.config;return this.config=ge,this.handleUpdateCanvasConfig(),le!==ge.scale||Ee!==ge.width||Pe!==ge.height||Fe!==ge.thick||Ke!==ge.startX||ct!==ge.startY||vt!==ge.theme||Ft!==ge.shadow.x||pn!==ge.shadow.y||bn!==ge.shadow.width||to!==ge.shadow.height||Po!==ge.startWithCanvas}),(0,ve.A)(this,"drawContext",function(de){de===void 0&&(de=null),ae.handleCompare(de)&&(ae.ctxH=ae.drawContextByDirection(ae.canvasH),ae.ctxV=ae.drawContextByDirection(ae.canvasV,"v"))}),(0,ve.A)(this,"drawRuler",function(de,ge){de===void 0&&(de=null),ge===void 0&&(ge=!1),!(!ge&&!ae.handleCompare(de))&&(ae.drawRulerByDirection(),ae.drawRulerByDirection("v"))}),(0,ve.A)(this,"drawContextByDirection",function(de,ge){ge===void 0&&(ge="h");const{width:le,height:Ee,thick:Pe,canvasConfigs:Fe}=ae.config,{ratio:Ke}=Fe;ge==="h"?(de.width=le*Ke,de.height=Pe*Ke):(de.width=Pe*Ke,de.height=Ee*Ke);const ct=de.getContext("2d");return ct.font=12*Ke+'px -apple-system, "Helvetica Neue", ".SFNSText-Regular", "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif',ct.lineWidth=1,ct.textBaseline="middle",ct}),(0,ve.A)(this,"drawRulerByDirection",function(de){de===void 0&&(de="h");const{scale:ge,width:le,height:Ee,thick:Pe,startX:Fe,startY:Ke,shadow:ct,canvasConfigs:vt,startWithCanvas:Ft,layoutV9:pn}=ae.config,{x:bn,y:to,width:Po,height:fo}=ct;let Ho=Fe,Ko=Ke,ha=bn,Aa=to;if(Ft&&sdkStore.getHotItem(Ft.key)){const{hotAttr:{x:F,y:oe,w:be,h:Mt}}=sdkStore.getHotItem(Ft.key),ut=F-be/2,tn=oe-Mt/2;Ho-=ut,Ko-=tn,ha-=ut,Aa-=tn}if(de==="h"){const I={scale:ge,width:le,height:Pe,canvasConfigs:vt};(0,jn.Dd)(ae.ctxH,Ho,{x:ha,w:Po,h:Pe},I)}else{const I={scale:ge,width:Pe,height:Ee,canvasConfigs:vt};(0,jn.hJ)(ae.ctxV,Ko,{y:Aa,w:Pe,h:fo},I)}}),(0,ve.A)(this,"updateCanvasContext",Zt()(de=>{this.timer&&window.cancelAnimationFrame(this.timer),this.timer=window.requestAnimationFrame(()=>{this.drawContext(de),this.drawRuler(de,!0)})},10)),(0,ve.A)(this,"updateCanvasRuler",Zt()(de=>{this.timer&&window.cancelAnimationFrame(this.timer),this.timer=window.requestAnimationFrame(()=>{this.drawRuler(de)})},10)),this.canvasH.className="ruler rulerH",this.canvasV.className="ruler rulerV",U){for(;U.firstChild;)U.removeChild(U.firstChild);U.appendChild(this.canvasH),U.appendChild(this.canvasV)}this.config=H,this.handleUpdateCanvasConfig()}destory(){this.ctxH=null,this.ctxV=null,this.updateCanvasContext.cancel(),this.updateCanvasRuler.cancel(),this.timer&&window.cancelAnimationFrame(this.timer),this.canvasH.remove(),this.canvasV.remove()}}const bt=()=>{const $=(0,k.d4)(Xe.f2),U=(0,a.useRef)(null),H=(0,a.useRef)();return(0,a.useEffect)(()=>{if($)if(H.current)$.isUpdateContext?H.current.updateCanvasContext($):H.current.updateCanvasRuler($);else{const ae=new ro(U.current,$);ae.drawContext(),ae.drawRuler(),H.current=ae}},[$]),(0,a.useEffect)(()=>()=>{var ae;(ae=H.current)==null||ae.destory()},[]),(0,Ce.jsx)("div",{className:"canvas-container",ref:U})},Wt=$=>{let{type:U,onGetAlignUtil:H,onRightClick:ae}=$;const de=(0,a.useRef)(null),ge=dn()("ruler-event",U),{scale:le,viewportRect:Ee,canvasRect:Pe}=lt();let Fe,Ke,ct=0,vt=0;const Ft=to=>{const Po=le/100,fo=to.clientX-ct,Ho=to.clientY-vt;Ke=Math.round(Fe+(U==="horizontal"?Ho:fo)/Po),C.A.emit("ruler:line:mousemove",{type:U,value:Ke,event:to,action:"create"})},pn=to=>{ct=0,vt=0,C.A.emit("ruler:line:mouseup",{event:to,type:U,value:Ke,action:"create"}),window.removeEventListener("mousemove",Ft),window.removeEventListener("mouseup",pn)},bn=to=>{var Po;if(to.stopPropagation(),to.button===2){ae(to);return}H(),ct=to.clientX,vt=to.clientY;const{bottom:fo,right:Ho}=((Po=de.current)==null?void 0:Po.getBoundingClientRect())||{},Ko=U==="horizontal"?to.clientY-fo:to.clientX-Ho,ha=Oe({ratio:le/100,viewportRect:Ee,canvasRect:Pe}),Aa=U==="horizontal"?ha.startY:ha.startX;Fe=Math.round(Aa+Ko/(le/100)),Ke=Fe,window.addEventListener("mousemove",Ft),window.addEventListener("mouseup",pn)};return(0,Ce.jsx)("div",{className:ge,onMouseDown:bn,ref:de})},uo=(0,a.memo)($=>{let{lineTheme:U,onGetAlignUtil:H}=$;const ae=G(),[de,ge]=(0,a.useState)({isShowMenu:!1,type:"vertical",position:{left:0,top:0}}),le=U.menu||re.my,Ee={bgColor:le.bgColor,dividerColor:le.dividerColor,listItem:le.listItem},Pe=Ke=>ct=>{ge({isShowMenu:!0,type:Ke,position:{left:ct.clientX,top:ct.clientY}})},Fe=()=>{ge({...de,isShowMenu:!1})};return(0,Ce.jsxs)("div",{className:"ruler-canvas-wrapper",children:[(0,Ce.jsx)(bt,{}),(0,Ce.jsx)("a",{className:"corner",style:{backgroundColor:U.bgColor}}),!ae&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Wt,{type:"horizontal",onRightClick:Pe("horizontal"),onGetAlignUtil:H}),(0,Ce.jsx)(Wt,{type:"vertical",onRightClick:Pe("vertical"),onGetAlignUtil:H}),de.isShowMenu&&(0,Ce.jsx)(Bn,{position:de.position,onClose:Fe,menuConfigs:Ee,type:de.type})]})]})}),Dn=$=>{let{type:U,value:H,canvas:ae,isActive:de,isBoundary:ge,isDragging:le,className:Ee}=$;const Pe=it({canvas:ae,type:U,value:H}),Fe=et(),{left:Ke,conter:ct,right:vt,styleKey:Ft}=Fe({type:U,canvas:ae}),pn=dn()("ruler-line",U,Ee,{"in-canvas":!!ae,active:de,"move-cursor":le}),bn=U==="horizontal",{w:to=0,h:Po=0}=(ae==null?void 0:ae.hotAttr)||{},fo=bn?Po:to,Ho=ge&&(H<0||H>fo),Ko=dn()("line-center",{dashed:Ho});return(0,Ce.jsxs)("div",{className:pn,style:{transform:Pe()},children:[(0,Ce.jsx)("span",{className:"line-value",children:Math.floor(H)}),ae&&(0,Ce.jsxs)("div",{className:"line-box",children:[(0,Ce.jsx)("div",{className:"line-left",style:{[Ft]:Ke}}),(0,Ce.jsx)("div",{className:Ko,style:{[Ft]:ct}}),(0,Ce.jsx)("div",{className:"line-right",style:{[Ft]:vt}})]})]})},Qt=()=>{const $=(0,k.d4)(Xe.iX),U=(0,k.d4)(Xe.ks),H=(0,k.d4)(Xe.Q);if(!$)return;const ae=dn()("active-dragging",{event:$.action==="create","is-delete-ruler-line":H}),de=tt({value:$.value,realValue:$.realValue,type:$.type,fromCanvas:$.canvas,curCanvas:$.curCanvas});return(0,Ce.jsx)("div",{className:"ruler-active-line",children:(0,Ce.jsx)(Dn,{value:de,type:$.type,canvas:$.curCanvas,isActive:U,isBoundary:!0,isDragging:!0,className:ae})})},Mn=(0,a.memo)(()=>{var $,U;const H=(0,a.useRef)(null),[ae,de]=(0,a.useState)(),ge=(0,k.d4)(Xe.KF)[0],le=(0,k.d4)(Xe.o5),Ee=(0,k.d4)(l.pO),Pe=(0,k.d4)(Xe.ks),Fe=ge&&!Pe,Ke=ae&&ge&&ae.type===ge.type&&ae.index===ge.index&&(!(ae!=null&&ae.canvas)&&!(ge!=null&&ge.canvas)||(($=ae.canvas)==null?void 0:$.key)===((U=ge.canvas)==null?void 0:U.key)),ct=ae&&!le&&!Ke&&!Ee;(0,a.useEffect)(()=>(C.A.on("ruler:line:hover",vt),()=>{C.A.off("ruler:line:hover",vt)}),[]),(0,a.useEffect)(()=>{(le&&ae||Ke)&&de(null)},[le,ae,Ke]);const vt=Ft=>{let{value:pn,canvas:bn,type:to,open:Po,index:fo}=Ft;const{type:Ho,index:Ko,canvas:ha}=H.current||{};to===Ho&&fo===Ko&&Po&&(!bn&&!ha||(bn==null?void 0:bn.key)===(ha==null?void 0:ha.key))||(H.current=Po?{value:pn,canvas:bn,type:to,index:fo}:null,de(H.current))};if(!(!ct&&!Fe))return(0,Ce.jsxs)("div",{className:"ruler-active-line",children:[ct&&(0,Ce.jsx)(Dn,{value:ae.value,type:ae.type,canvas:ae.canvas}),Fe&&(0,Ce.jsx)(Dn,{value:ge.value,type:ge.type,canvas:ge.canvas,isActive:!0,isBoundary:ge.isBoundary})]})});var Rt=i(69594);const Qe=4,En=mn.Ay.div.attrs($=>({style:{"--r-thick":$.thick+"px","--r-cavas-width":$.containerStyle.width+"px","--r-cavas-height":$.containerStyle.height+"px","--r-cavas-left":$.containerStyle.left+"px","--r-cavas-transform":$.containerStyle.transform,"--r-border-color":$.theme.borderColor,"--r-line-hover-color":$.theme.line.hover,"--r-line-active-color":$.theme.line.active,"--r-line-normal-color":$.theme.line.normal,"--r-line-bgColor":$.theme.bgColor}})).withConfig({displayName:"styles__StyledRulerContainer",componentId:"sc-73css9-0"})(["position:absolute;pointer-events:none;z-index:3;width:var(--r-cavas-width);height:var(--r-cavas-height);left:var(--r-cavas-left);transform:var(--r-cavas-transform);.ruler-canvas-wrapper{position:absolute;left:0;top:0;width:100%;height:100%;}.canvas-container{.ruler{width:100%;height:100%;pointer-events:none;position:absolute;&.rulerH{left:var(--r-thick);top:0;width:calc(100% - var(--r-thick));height:var(--r-thick);border-bottom:1px solid var(--r-border-color);}&.rulerV{top:var(--r-thick);left:0;width:var(--r-thick);height:calc(100% - var(--r-thick));border-right:1px solid var(--r-border-color);}}}.corner{position:absolute;left:0;top:0;width:var(--r-thick);height:var(--r-thick);border-right:1px solid var(--r-border-color);border-bottom:1px solid var(--r-border-color);transition:all 0.2s ease-in-out;box-sizing:border-box;}.ruler-event{pointer-events:auto;display:block;&.vertical{height:calc(100% - var(--r-thick));width:var(--r-thick);cursor:col-resize;cursor:",";}&.horizontal{margin-left:var(--r-thick);height:var(--r-thick);width:calc(100% - var(--r-thick));cursor:row-resize;cursor:",";}}.ruler-active-line{position:absolute;left:0;top:0;}.ruler-active-line,.ruler-line-wrapper{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;.ruler-line{position:absolute;&.dragging,&.move-cursor{will-change:transform;}&.hide,&.dragging{opacity:0;}&.event{pointer-events:auto;}&.is-delete-ruler-line{cursor:"," !important;}&.horizontal{width:100%;height:1px;cursor:",";&:not(.in-canvas){border-top:1px solid var(--r-line-normal-color);&.active-dragging{border-top:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-top-width:1px;border-top-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-top-color:var(--r-line-hover-color);}}.line-left,.line-right{border-top-style:dashed;}.line-center-wapper{position:absolute;}.line-center{border-top-style:solid;&.event{pointer-events:auto;cursor:",";}&.dashed{border-top-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:100%;height:","px;position:absolute;content:'';display:inline-block;}&::before{top:-","px;}&::after{top:0px;}}&.active{pointer-events:auto;&:not(.in-canvas){border-top:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-top-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:row;}}&.vertical{height:100%;width:1px;cursor:",";&:not(.in-canvas){border-left:1px solid var(--r-line-normal-color);&.active-dragging{border-left:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-left-width:1px;border-left-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-left-color:var(--r-line-hover-color);}}.line-left,.line-right{border-left-style:dashed;}.line-center-wapper{position:absolute;.line-center{height:100%;}}.line-center{border-left-style:solid;&.event{pointer-events:auto;}&.dashed{border-left-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:","px;height:100%;position:absolute;content:'';display:inline-block;}&::before{left:0px;}&::after{right:1px;}}&.active{&:not(.in-canvas){border-left:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-left-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:column;}.line-value{left:auto;top:4px;transform:translateX(4px);}}.line-value{position:absolute;top:0;left:4px;transform-origin:0 0;color:#ff4040;scale:0.83;line-height:12px;font-size:12px;font-weight:600;background-color:var(--r-line-bgColor);transform:translateY(-5px) rotate(-90deg);}.line-box{display:flex;position:absolute;width:100%;height:100%;top:0;left:0;}}}"],Rt.M.colloumResize,Rt.M.rowResize,Rt.M.rulerDelete,Rt.M.rowResize,Rt.M.rowResize,Qe,Qe,Rt.M.colloumResize,Qe),qn=()=>{var $;const U=(0,k.wA)(),H=Me(),ae=(0,k.d4)(Xe.KF),de=ae[0],ge=(0,k.d4)(Xe.Hw),le=(0,a.useRef)(($=ae[0])==null?void 0:$.value),Ee=(0,k.d4)(Xe.o5),{alignH:Pe,alignV:Fe}=Ge(),Ke=(0,k.d4)(Y.k3),ct=(0,a.useRef)({isDraggingDelete:!1}),vt=(0,a.useRef)(Kn=>({left:0,top:0})),Ft=Kn=>{U({type:"ruler:update:state",payload:{draggingLine:Kn}})},pn=Kn=>{Ee!==Kn&&U({type:"ruler:update:state",payload:{isDraggingLine:Kn}})},{theme:bn,scale:to,curToolBarHeight:Po,containerStyle:fo,viewportRect:Ho,canvasRect:Ko,currentScreenCid:ha}=lt();(0,a.useEffect)(()=>{Ae.scale=to},[to]),(0,a.useEffect)(()=>{U({type:"entry:init:ruler:canvas"})},[U]),(0,P._N)(re.CX,()=>{de&&(Jt.delectLine({dispatch:U,formCanvas:de.canvas,index:de.index,outerAlignH:Pe,outerAlignV:Fe,type:de.type}),U({type:"ruler:update:state",payload:{selectedLine:[]}}))},{exactMatch:!0,useCapture:!0}),(0,P._N)(re.zF,(Kn,ao)=>{if(!de)return;const{type:v,index:K,canvas:te}=de,me=le.current,$e=re.Jx.includes(ao)?1:10;let nt=me;v==="vertical"&&re.n2.includes(ao)&&(nt=ao.includes("rightarrow")?me+$e:me-$e),v==="horizontal"&&re.BE.includes(ao)&&(nt=ao.includes("downarrow")?me+$e:me-$e),le.current=nt,Jt.moveLine({dispatch:U,formCanvas:te,index:K,type:v,value:nt,outerAlignH:Pe,outerAlignV:Fe}),be({newIndex:K,oldIndex:K,canvas:te,value:nt,formCanvas:te,type:v,isBoundary:!0})},{exactMatch:!0,useCapture:!0,target:document});const Aa=(0,P.qK)(Kn=>{let{rect:ao,type:v,value:K,sup:te}=Kn;if(!Ke)return K;const me=vt.current({_rect:ao,sup:te||ha}),{left:$e=0,top:nt=0}=me||{},yt={x:$e-ao.left,y:nt-ao.top},dt=v==="vertical"?yt.x:yt.y;return K+dt}),I=(0,P.qK)(Kn=>{let{value:ao,type:v,curCanvas:K}=Kn;const te=Oe({ratio:to/100,viewportRect:Ho,canvasRect:Ko}),me={left:v==="vertical"?ao:Math.round(te.startX),top:v==="horizontal"?ao:Math.round(te.startY),width:v==="vertical"?1:Math.round(te.endX-te.startX),height:v==="horizontal"?1:Math.round(te.endY-te.startY)};return Aa({rect:me,type:v,value:ao,sup:K==null?void 0:K.key})}),F=Kn=>{var ao;let{formCanvas:v,type:K,index:te}=Kn;return!!(de&&(!v&&!de.canvas||(v==null?void 0:v.key)===((ao=de.canvas)==null?void 0:ao.key))&&de.index===te&&de.type===K)},oe=Kn=>{let{formCanvas:ao,type:v,index:K}=Kn;F({formCanvas:ao,type:v,index:K})&&U({type:"ruler:update:state",payload:{selectedLine:[]}})},be=Kn=>{const{isBoundary:ao=!1}=Kn;if(F({formCanvas:Kn.formCanvas,type:Kn.type,index:Kn.oldIndex})){const v={...de,index:Kn.newIndex,canvas:Kn.canvas,value:Kn.value,isBoundary:ao};U({type:"ruler:update:state",payload:{selectedLine:[v]}})}},Mt=(0,P.qK)(Kn=>{let{canvas:ao,type:v,value:K,event:te,index:me,action:$e}=Kn;const nt=H(te);pn(!0);const yt=Oe({ratio:to/100,viewportRect:Ho,canvasRect:Ko}),dt=Math.round(v==="horizontal"?yt.startY:yt.startX),It=Math.round(v==="horizontal"?yt.endY:yt.endX),un=Be({canvas:ao,type:v,value:K});un<dt||un>It?(ct.current.isDraggingDelete=!0,U({type:"ruler:update:state",payload:{isDeleteLine:!0}})):(ct.current.isDraggingDelete=!1,U({type:"ruler:update:state",payload:{isDeleteLine:!1}}));const xn=I({type:v,value:un,curCanvas:nt}),gn=xn-un+K;Ft({type:v,value:gn,canvas:ao,event:te,curCanvas:nt,index:me,realValue:xn,action:$e}),!(!nt&&!ge)&&(nt==null?void 0:nt.key)!==(ge==null?void 0:ge.key)&&(U({type:"ruler:update:state",payload:{rulerLineCanvas:nt}}),U({type:"entry:update:ruler"}))}),ut=(0,P.qK)(Kn=>{let{type:ao,value:v,index:K,event:te,action:me,canvas:$e,callback:nt}=Kn;Ft(null),pn(!1);const yt=H(te),dt=Be({canvas:$e,type:ao,value:v}),un=I({type:ao,value:dt,curCanvas:yt})-dt+v;if(nt==null||nt(un),F({formCanvas:$e,type:ao,index:K})&&(le.current=un),me==="create"&&ct.current.isDraggingDelete){ct.current.isDraggingDelete=!1,U({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(ct.current.isDraggingDelete){Jt.delectLine({formCanvas:$e,dispatch:U,index:K,type:ao,outerAlignH:Pe,outerAlignV:Fe}),oe({formCanvas:$e,type:ao,index:K}),U({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(me==="create"){const{newIndex:xn,realValue:gn}=Jt.addLine({dispatch:U,curCanvas:yt,type:ao,value:un,outerAlignH:Pe,outerAlignV:Fe});U({type:"ruler:update:state",payload:{rulerLineCanvas:yt,selectedLine:[{canvas:yt,type:ao,index:xn,value:gn}]}});return}if(!yt&&!$e){const{newIndex:xn,newValue:gn}=Jt.moveOutsideLine({dispatch:U,index:K,type:ao,value:un,outerAlignH:Pe,outerAlignV:Fe});be({newIndex:xn,oldIndex:K,canvas:null,value:gn,formCanvas:$e,type:ao});return}if(yt&&$e&&yt.key===$e.key){const{newIndex:xn,newValue:gn}=Jt.moveBetweenSameCanvas({dispatch:U,formCanvas:$e,index:K,type:ao,value:un});be({newIndex:xn,oldIndex:K,canvas:$e,value:gn,formCanvas:$e,type:ao});return}if(!yt&&$e){const{newIndex:xn,newValue:gn}=Jt.moveInsideToOutside({dispatch:U,formCanvas:$e,index:K,type:ao,value:un,outerAlignH:Pe,outerAlignV:Fe});be({newIndex:xn,oldIndex:K,canvas:null,value:gn,formCanvas:$e,type:ao});return}if(yt&&!$e){const{newIndex:xn,newValue:gn}=Jt.moveOutsideToInside({dispatch:U,curCanvas:yt,index:K,type:ao,value:un,outerAlignH:Pe,outerAlignV:Fe});be({newIndex:xn,oldIndex:K,canvas:yt,value:gn,formCanvas:null,type:ao});return}if(yt&&$e&&yt.key!==$e.key){const{newIndex:xn,newValue:gn}=Jt.moveBetweenDifferentCanvas({dispatch:U,formCanvas:$e,curCanvas:yt,index:K,type:ao,value:un});be({newIndex:xn,oldIndex:K,canvas:yt,value:gn,formCanvas:$e,type:ao})}});(0,a.useEffect)(()=>(C.A.on("ruler:line:mouseup",ut),C.A.on("ruler:line:mousemove",Mt),()=>{C.A.off("ruler:line:mouseup",ut),C.A.off("ruler:line:mousemove",Mt)}),[U,ut,Mt]);const tn=(0,P.qK)(()=>{vt.current=(0,q.ay)({movableItems:[],createSnapper:M.WY,viewport:{scale:to/100},isRuleLine:!0,getCurrentScreenAlign:()=>q.p$,getCommonParentAlign:()=>q.p$})}),Xt=(0,P.qK)(Kn=>{if(Kn.target.closest(".line-center")||Kn.target.closest(".ruler-line")||Kn.target.closest(".line")){tn();return}if(!de||(U({type:"ruler:update:state",payload:{selectedLine:[],rulerLineCanvas:null}}),U({type:"entry:update:ruler"}),!de.canvas))return;const v=de.type==="horizontal"?de.canvas.hotAttr.h:de.canvas.hotAttr.w;(le.current<0||le.current>v)&&(Ft(null),Jt.delectLine({formCanvas:de.canvas,dispatch:U,index:de.index,type:de.type,outerAlignH:Pe,outerAlignV:Fe}))});return(0,a.useEffect)(()=>{var Kn;return document.addEventListener("mousedown",Xt),le.current=(Kn=ae[0])==null?void 0:Kn.value,()=>{document.removeEventListener("mousedown",Xt)}},[Xt,ae]),(0,Ce.jsxs)(En,{id:"mb-ruler",currentToolBarHeight:Po,theme:bn,thick:re.MV,containerStyle:fo,children:[(0,Ce.jsx)(uo,{lineTheme:bn,onGetAlignUtil:tn}),(0,Ce.jsx)(on,{}),(0,Ce.jsx)(Qt,{}),(0,Ce.jsx)(Mn,{})]})},Yn=()=>Te()?(0,Ce.jsx)(qn,{}):null;var oo=i(12211),To=i(87765);const po=(0,oo.Mz)([l.lh,l.KW,To.$],($,U,H)=>{var ae,de,ge,le;const Ee=$&&sdkStore.getHotItem($),Pe=(Ee==null||(ae=Ee.hotAttr)==null?void 0:ae.type)===m.x.WRichText&&(Ee==null||(de=Ee.hotAttr)==null||(de=de.richTextV1)==null?void 0:de.sizeType)!==1,Fe=(Ee==null||(ge=Ee.hotAttr)==null?void 0:ge.type)===m.x.WSticky||(Ee==null||(le=Ee.hotAttr)==null?void 0:le.type)===m.x.WTear;return Pe||U||H.isDragging||H.isAdjustingGap||Fe});var Oo=i(65744),Qo=i.n(Oo),ea=i(70248);const _n=(0,oo.Mz)([V.VH,D.jI,V.UV],function($,U,H){if(U===void 0&&(U=""),!$)return null;let ae=$;if(U&&(0,ea.OO)(ae)){const de=(0,ea.QL)(ae),ge=Qo()(de.slice(0,-1),le=>U.includes(le));ge.length>0?ae=(0,ea.iK)(ge,de.at(-1)):ae=de.at(-1)}return H.getSnapshotItem(ae)});var Un=i(43605),cn=i(8580);const nn=mn.Ay.svg.withConfig({displayName:"styles__StyledPathBorder",componentId:"sc-sf1eif-0"})(["position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.echo-line{path{stroke:",";}}&.is-line-select{path{stroke:",";stroke-width:1;}}&.is-locked{path{stroke:#7d8694;}}"],$=>$.theme.color_proto,$=>$.theme.color_proto);class Zn extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"getStrokePath",(U,H,ae,de)=>{const ge=[U*ae.x,H*ae.y],le=[U*de.x,H*de.y];return"M "+ge[0]+" "+ge[1]+" L "+le[0]+" "+le[1]})}render(){const{widget:U,showEchoLayer:H,isLineSelect:ae,ratio:de}=this.props,{key:ge,hotAttr:le}=U,{isLock:Ee}=le,{from:Pe,to:Fe}=(0,Un.Ne)(le),{transform:Ke,rect:ct}=(0,cn.Oj)(ge),{a:vt,b:Ft,c:pn,d:bn}=Ke,{x:to,y:Po}=Ke.clone().scale(de,de).apply({x:ct.x,y:ct.y}),{x:fo,y:Ho}=J.Z.mul(J.Z.xy(ct.w,ct.h),de),Ko=Ho<1?1:Ho,Aa={...{left:to,top:Po,width:fo,height:Ko},transform:"matrix("+vt+","+Ft+","+pn+","+bn+",0,0)",transformOrigin:"0 0"},I=this.getStrokePath(fo,Ko,Pe,Fe);return(0,Ce.jsx)(nn,{className:dn()({"echo-line":H},{"is-locked":Ee},{"is-line-select":ae}),style:Aa,children:(0,Ce.jsx)("path",{d:I})})}}(0,ve.A)(Zn,"defaultProps",{isLineSelect:!1});const ho=mn.Ay.div.withConfig({displayName:"styles__StyledItemsHoverBorder",componentId:"sc-aa2v06-0"})(["position:absolute;transform-origin:0 0;&.item-hover-border{border:2px solid ",";}&.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}&.is-locked{border-color:#7d8694;}"],$=>$.theme.color_proto,$=>$.theme.color_proto);var Xn=i(99917),Mo=i(51561);class Zo extends a.PureComponent{get noBorderRadius(){const{widget:{hotAttr:{type:U}}}=this.props;return U===m.x.WPolygon||U===m.x.WStar||U===m.x.WDigitalStepper||U.startsWith("wCollapse")||U.startsWith("wPagination")}get allBorderRadius(){const{widget:{hotAttr:{type:U,image:H}}}=this.props;return U===m.x.WOval||U===m.x.WImage&&(H==null?void 0:H.imageClipType)===Xn.Mg.circular}render(){const{widget:{key:U,hotAttr:H},showEchoLayer:ae,ratio:de}=this.props,{x:ge,y:le,r:Ee,w:Pe,h:Fe}=sdkStore.getHotBound(U),Ke={...H.borderRadiusIsVisible===!1?void 0:(0,Mo.Nb)(H,de),width:Pe*de,height:Fe*de,transform:"translate("+(ge-Pe*.5)*de+"px,"+(le-Fe*.5)*de+"px) rotate("+Ee+"deg)",transformOrigin:"center center"};return this.allBorderRadius&&(Ke.borderRadius="100%"),this.noBorderRadius&&(Ke.borderRadius="none"),(0,Ce.jsx)(ho,{className:dn()({"item-echo-layer":ae,"item-hover-border":!ae,"is-locked":H.isLock}),style:Ke})}}var ia=i(65057),xa=i(5379),fa=i(33848),zo=i(18637);const Ra=($,U,H)=>{const{x:ae,y:de,w:ge,h:le}=sdkStore.getHotBound($),{elbowType:Ee,dPathList:Pe}=U,Fe=ae-ge*.5-H.offset.x/H.scale,Ke=de-le*.5-H.offset.y/H.scale;let ct;return Ee==="curve"?ct=(0,zo.Ig)({closed:!1,points:Pe}).map((vt,Ft)=>({x:vt.x+Fe,y:vt.y+Ke,isAdjusted:!1})):ct=(0,fa.Ui)(J.Z.xy(Fe,Ke),Pe),ct.map(vt=>{const Ft=O.L.apply(H,vt);return{x:Math.round(Ft.x),y:Math.round(Ft.y)}})},Sa=$=>{const U=Math.round($.length/2)-1,H=[];for(let ae=0,de=$.length;ae<de-1;ae+=1){const ge=$[ae],le=$[ae+1],Ee=Math.round(J.Z.distance(ge,le)),Pe=Math.atan2(ge.y-le.y,le.x-ge.x)*(180/Math.PI),Fe=le.x-ge.x,Ke=le.y-ge.y;H.push({from:ae,to:ae+1,length:Ee,x:ge.x+Fe/2,y:ge.y+Ke/2,angle:Pe,direction:(0,fa.b4)(Pe),xList:[ge.x+Fe/10,ge.x+Fe*9/10],yList:[ge.y+Ke/10,ge.y+Ke*9/10],isTextCommentIndex:ae===U})}return H},ln=mn.Ay.div.withConfig({displayName:"styles__StyledElbowResize",componentId:"sc-6p290h-0"})(["pointer-events:none;position:absolute;"]),ta=mn.Ay.div.withConfig({displayName:"styles__StyledRectAnchor",componentId:"sc-6p290h-1"})(["pointer-events:auto;.line-rect-anchor{display:block;background-color:rgba(0,119,255,1);position:absolute;transform:translate(-50%,-50%);border-radius:2px;transition:all .3s;&.vertical{cursor:"," !important;}&.horizontal{cursor:"," !important;}}"],Rt.M.nsResize,Rt.M.ewResize),ko=mn.Ay.div.withConfig({displayName:"styles__StyledCircleAnchor",componentId:"sc-6p290h-2"})(["pointer-events:auto;.line-circle-anchor{display:block;width:12px;height:12px;background-color:#298df8;border:1px solid #298df8;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:#ffffff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}.line-circle-anchor-attached{display:block;width:12px;height:12px;background-color:#ffffff;border:1px solid rgba(0,119,255,1);border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:rgba(0,119,255,1);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}"]);var bo=i(21191);class aa extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"state",{isMove:!1,count:0,moveAnchor:""}),(0,ve.A)(this,"onMouseDown",U=>{U.stopPropagation();const{current:H}=U.target.dataset;this.setState({isMove:!0,moveAnchor:H});const{widget:{key:ae,hotAttr:de,sup:ge},dispatch:le,currPageKey:Ee}=this.props;if(de.isLock)return;const Pe=ae;le({type:"elbow:update",payload:{isDraggingElbow:!0,activeElbowKey:Pe}}),sdkStore.combineMergeMark("elbow-drag");const Fe=Zt()(ct=>{const{isMove:vt,count:Ft,moveAnchor:pn}=this.state;if(!vt)return;if(sdkStore.isTrashed(ae)){var bn;(bn=this.removeMouseEvents)==null||bn.call(this);return}Ft<2&&this.setState({count:Ft+1});const{viewport:to,viewportRect:Po,dispatch:fo}=this.props,Ho=(0,ia.mG)(ct,{scale:100,offset:to.offset,viewportRect:Po}),Ko={x:Ho.x/to.scale,y:Ho.y/to.scale};fo({type:"entry:elbow:drag:start",payload:{elbowKey:Pe,moveAnchor:pn,cursorWorldPos:Ko,event:ct}})},10),Ke=ct=>{var vt;if((vt=this.removeMouseEvents)==null||vt.call(this),sdkStore.isTrashed(ae))return;const Ft=(0,bo.G9)(Ee),pn=sdkStore.getHotItem(ae),bn=sdkStore.getHotAABB(ae),to={x:.5*(bn[0]+bn[2]),y:.5*(bn[1]+bn[3])},Po=(0,bo.fW)(ae,Ee,Ft);if(ge!==Po){const fo=(0,bo.Us)();sdkStore.updateHotItem({...pn,sup:Po,hotAttr:{...pn.hotAttr,...sdkStore.toAttrXY(to,ae,Po),zIndex:fo(ae,Po)}})}sdkStore.combineMerge("elbow-drag"),le({type:"elbow:update",payload:{isDraggingElbow:!1,activeElbowKey:""}}),this.setState({isMove:!1,count:0,moveAnchor:""})};this.removeMouseEvents=()=>{document.removeEventListener("mousemove",Fe,!1),document.removeEventListener("mouseup",Ke,!1)},document.addEventListener("mousemove",Fe,!1),document.addEventListener("mouseup",Ke,!1)}),(0,ve.A)(this,"handleGetCircleList",U=>{const H=sdkStore.getHotItem(U);if(!H)return[];const{viewport:ae}=this.props,{elbow:de,refFromKey:ge,refToKey:le}=H.hotAttr,Ee=Ra(U,de,ae),{isRefFromExist:Pe,isRefToExist:Fe}=(0,xa.v)(U,ge,le);return H.hotAttr.elbow.elbowType==="curve"?[{...Ee[0],attached:Pe},{...Ee[1],attached:!1},{...Ee[Ee.length-1],attached:Fe}]:[{...Ee[0],attached:Pe},{...Ee[Ee.length-1],attached:Fe}]}),(0,ve.A)(this,"handleDoubleClick",U=>{const{widget:{key:H},dispatch:ae}=this.props,{current:de}=U.target.dataset;de==="middle"&&ae({type:"entry:elbow:middle-anchor:reset",payload:{elbowKey:H}})})}componentWillUnmount(){this.setState=()=>!1}render(){const{widget:{key:U,hotAttr:H}}=this.props,ae=this.handleGetCircleList(U);if(!H.isLock)return(0,Ce.jsx)(ko,{children:ae&&ae.map((de,ge)=>{const le=ge===0?"start":ge===ae.length-1?"end":"middle",Ee=de.attached?"line-circle-anchor-attached line_circle_anchor_hover_"+U:"line-circle-anchor line_circle_anchor_hover_"+U;return(0,Ce.jsx)("span",{className:Ee,onMouseDown:this.onMouseDown,onDoubleClick:this.handleDoubleClick,"data-current":le,style:{left:de.x,top:de.y,cursor:"pointer"}},de.x+"&"+de.y+"&"+ge)})})}}const ma=(0,oo.Mz)([l.X_,l.ER,l.$S,l.eo],($,U,H,ae)=>({viewport:{offset:U,scale:$/100},viewportRect:H,currPageKey:ae})),dr=(0,k.Ng)($=>ma($))(aa);var ni=i(45815),Ir=i(10390);const $a=$=>{let{widget:U,scale:H,strokeWidth:ae=1,stroke:de="rgba(0, 119, 255, 1)"}=$;const{key:ge,hotAttr:{elbow:le,isLock:Ee}}=U,{dPathList:Pe,elbowType:Fe}=le,Ke=ge+"-selection-path",ct=(0,a.useMemo)(()=>Fe==="curve"?(0,Ir.tE)({points:(0,Ir.Ig)({points:Pe,closed:!1}),closed:!1}):(0,ni.X)(Pe,Fe),[Pe,Fe]);ae=ae/H;const{x:vt,y:Ft,r:pn,w:bn,h:to}=sdkStore.getHotBound(ge),Po=bn+ae*2,fo=to+ae*2,Ho={width:Po*H,height:fo*H,transform:"translate("+(vt-Po*.5)*H+"px,"+(Ft-fo*.5)*H+"px) rotate("+pn+"deg)",transformOrigin:"center center"};return Ee&&(de="#7d8694"),(0,Ce.jsx)(Va,{width:Po||1,height:fo||1,viewBox:-ae+" "+-ae+" "+(Po||1)+" "+(fo||1),xmlns:"http://www.w3.org/2000/svg",style:Ho,children:(0,Ce.jsx)("path",{id:Ke,d:ct,stroke:de,strokeWidth:ae,fill:"none"})})},Va=mn.Ay.svg.withConfig({displayName:"ElbowPath__StyledElbowPath",componentId:"sc-12hnvmq-0"})(["position:absolute;"]),Ha=$a,or=mn.Ay.div.withConfig({displayName:"styles__StyledEchoArea",componentId:"sc-1bcl9nz-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),gi=(0,oo.Mz)([l.X_,po,_n,D.jx],($,U,H,ae)=>{if(U||!H||(H==null?void 0:H.hotAttr.type)===m.x.WTear)return{isShow:!1};const de=ae===h.qi.OnlyView;return{isShow:!0,widget:H,scale:$,onlyView:de,showEchoLayer:!0}}),Qr=$=>{const{isShow:U,scale:H,widget:ae,showEchoLayer:de,onlyView:ge}=$;if(!U||!ae)return null;const le=H/100,{hotAttr:{type:Ee}}=ae;return Ee===m.x.WTear?null:Ee===m.x.WElbow?(0,Ce.jsxs)(or,{children:[(0,Ce.jsx)(Ha,{widget:ae,scale:le,strokeWidth:2}),!ge&&(0,Ce.jsx)(dr,{widget:ae})]}):Ee===m.x.WLine||Ee===m.x.WArrow?(0,Ce.jsx)(or,{children:(0,Ce.jsx)(Zn,{showEchoLayer:de,widget:ae,ratio:le})}):(0,Ce.jsx)(or,{children:(0,Ce.jsx)(Zo,{showEchoLayer:de,widget:ae,ratio:le})})},Qi=(0,k.Ng)($=>gi($))(Qr),rs=$=>{$=$||{};const{target:U,onH:H,onV:ae}=$,de={onH:null,onV:null},ge={onH:null,onV:null};return H&&H.size>0&&(H.forEach((le,Ee)=>{ge.onH=Ee,de.onH=le}),de.onH.push([U.left,U.top])),ae&&ae.size>0&&(ae.forEach((le,Ee)=>{ge.onV=Ee,de.onV=le}),de.onV.push([U.left,U.top])),{lines:de,distances:ge}},Li=mn.Ay.div.withConfig({displayName:"styles__StyledSameLines",componentId:"sc-1n9w0mf-0"})([".same-size-h-line{position:absolute;height:1px;border-top:1px solid ",';z-index:11;&::after{width:1px;height:5px;content:" ";background-color:',';position:absolute;right:0;bottom:0;}&::before{width:1px;height:5px;content:" ";background-color:',";position:absolute;bottom:0;}}.same-size-v-line{position:absolute;width:1px;border-left:1px solid ",';z-index:11;&::after{width:5px;height:1px;content:" ";background-color:',';position:absolute;bottom:0;right:0;}&::before{width:5px;height:1px;content:" ";background-color:',";position:absolute;top:0;right:0;}}.same-size-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.same-size-v-value{position:absolute;left:-40px;top:50%;color:",";transform:translate(0,-50%);}"],$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline);class ns extends a.PureComponent{render(){const{ratio:U,sameSize:H}=this.props,{lines:{onH:ae,onV:de},distances:{onH:ge,onV:le}}=rs(H);return(0,Ce.jsxs)(Li,{children:[ge&&ae.map((Ee,Pe)=>{let[Fe,Ke]=Ee;return(0,Ce.jsx)("div",{className:"same-size-h-line",style:{transform:"translate("+Fe*U+"px,"+Ke*U+"px)",width:ge*U},children:(0,Ce.jsx)("span",{className:"same-size-h-value",children:ge})},"same-size-h-line-"+Pe)}),le&&de.map((Ee,Pe)=>{let[Fe,Ke]=Ee;return(0,Ce.jsx)("div",{className:"same-size-v-line",style:{transform:"translate("+Fe*U+"px,"+Ke*U+"px)",height:le*U},children:(0,Ce.jsx)("span",{className:"same-size-v-value",style:{left:-String(le).length*6-6},children:le})},"same-size-v-line-"+Pe)})]})}}const Es=($,U)=>{const{target:H,onH:ae,onV:de}=$,ge={onH:null,onV:null},le={onH:null,onV:null};U||(U={onH:null,onV:null});const{onH:Ee,onV:Pe}=U;let Fe=!0;if((Ee||Pe)&&(Fe=!1),ae&&ae.length&&H){const Ke=ae.map(ct=>sr(ct.y,H,ct.refTotalRect,"onH"));if(ge.onH=Ke,Fe){const ct=ae.map(vt=>mi(vt.y,H,vt.refRects,"onH"));le.onH=ys(ct,"onH")}}if(de&&de.length&&H){const Ke=de.map(ct=>sr(ct.x,H,ct.refTotalRect,"onV"));if(ge.onV=Ke,Fe){const ct=de.map(vt=>mi(vt.x,H,vt.refRects,"onV"));le.onV=ys(ct,"onV")}}return{lines:ge,distances:le}},ys=($,U)=>{const H=new Map;$.forEach(de=>{de.forEach(ge=>{const le=H.get(ge.length)||[];let Ee=!1;le.forEach((Pe,Fe)=>{U==="onV"&&Pe[0].y===ge.line[0].y&&(Pe[0].x>ge.line[0].x&&(le[Fe]=ge.line,H.set(ge.length,le)),Ee=!0),U==="onH"&&Pe[0].x===ge.line[0].x&&(Pe[0].y>ge.line[0].y&&(le[Fe]=ge.line,H.set(ge.length,le)),Ee=!0)}),Ee||(le.push(ge.line),H.set(ge.length,le))})});const ae=[];return H.forEach((de,ge)=>{de.forEach(le=>{ae.push({length:ge,line:le})})}),ae},sr=($,U,H,ae)=>{if(ae==="onH")return[{x:Math.min(U.left,H.left),y:$},{x:Math.max(U.right,H.right),y:$}];if(ae==="onV")return[{x:$,y:Math.min(U.top,H.top)},{x:$,y:Math.max(U.bottom,H.bottom)}]},mi=($,U,H,ae)=>{let de=[];if(ae==="onH"){const{rect:ge,relationship:le,allRects:Ee}=_a(U,H,"onH");if(le==="overlap")de=[{line:[{x:ge.left,y:$},{x:U.left,y:$}].sort((Pe,Fe)=>Pe.x-Fe.x),length:Math.abs(ge.left-U.left)},{line:[{x:ge.right,y:$},{x:U.right,y:$}].sort((Pe,Fe)=>Pe.x-Fe.x),length:Math.abs(ge.right-U.right)}];else{const Pe=Io({pos:$,allRects:Ee,target:U});if(Pe)return Pe;de=No($,ge,U)}de=de.filter(Pe=>Pe.length===U.width&&Pe.line[0].x===U.left&&Pe.line[1].x===U.right||Pe.length===U.width/2&&(Pe.line[0].x===U.left||Pe.line[1].x===U.right)?!1:Pe)}else if(ae==="onV"){const{rect:ge,relationship:le,allRects:Ee}=_a(U,H,"onV");if(le==="overlap")de=[{line:[{x:$,y:ge.top},{x:$,y:U.top}].sort((Pe,Fe)=>Pe.y-Fe.y),length:Math.abs(ge.top-U.top)},{line:[{x:$,y:ge.bottom},{x:$,y:U.bottom}].sort((Pe,Fe)=>Pe.y-Fe.y),length:Math.abs(ge.bottom-U.bottom)}];else{const Pe=Bt({pos:$,allRects:Ee,target:U});if(Pe)return Pe;de=vn($,ge,U)}de=de.filter(Pe=>Pe.length===U.height&&Pe.line[0].y===U.top&&Pe.line[1].y===U.bottom||Pe.length===U.height/2&&(Pe.line[0].y===U.top||Pe.line[1].y===U.bottom)?!1:Pe)}return de},Bt=$=>{let{pos:U,allRects:H,target:ae}=$;if(H.top.length<1||H.bottom.length<1)return!1;H.top.sort((Ee,Pe)=>Ee.length-Pe.length),H.bottom.sort((Ee,Pe)=>Ee.length-Pe.length);const de=H.top[0],ge=H.bottom[0];let le=[];return le=le.concat(vn(U,de.rect,ae)),le=le.concat(vn(U,ge.rect,ae)),le},vn=($,U,H)=>{const ae=H.top>U.top;return[{line:ae?[{x:$,y:U.bottom},{x:$,y:H.top}]:[{x:$,y:H.bottom},{x:$,y:H.top}],length:Math.abs(ae?H.top-U.bottom:U.top-H.bottom)}]},Io=$=>{let{pos:U,allRects:H,target:ae}=$;if(H.left.length<1||H.right.length<1)return!1;H.left.sort((Ee,Pe)=>Ee.length-Pe.length),H.right.sort((Ee,Pe)=>Ee.length-Pe.length);const de=H.left[0],ge=H.right[0];let le=[];return le=le.concat(No(U,de.rect,ae)),le=le.concat(No(U,ge.rect,ae)),le},No=($,U,H)=>{if(!H||!U)return[];const ae=H.left>U.left;return[{line:ae?[{x:U.right,y:$},{x:H.left,y:$}]:[{x:H.right,y:$},{x:U.left,y:$}],length:Math.abs(ae?H.left-U.right:U.left-H.right)}]},_a=($,U,H)=>{const ae=H==="onH"?"right":"bottom",de=H==="onH"?"left":"top",ge=H==="onH"?"width":"height";let le=1/0;const Ee={rect:null,relationship:"",allRects:{top:[],bottom:[],left:[],right:[]}};return U.forEach(Pe=>{const Fe=Ur(Pe),Ke=Math.max(Fe[ae],$[ae])-Math.min(Fe[de],$[de]);if(Ke<le){le=Ke,Ee.rect=Fe;const vt=$[ge]+Fe[ge]>=Ke?"overlap":"noOverlap";Ee.relationship=vt}Fe.bottom<=$.top&&Ee.allRects.top.push({length:Ke,rect:Fe}),Fe.top>=$.bottom&&Ee.allRects.bottom.push({length:Ke,rect:Fe}),Fe.right<=$.left&&Ee.allRects.left.push({length:Ke,rect:Fe}),Fe.left>=$.right&&Ee.allRects.right.push({length:Ke,rect:Fe})}),Ee},Ur=$=>{const U=$.cid||$.key;if(U===void 0)return $;const[H,ae,de,ge]=(0,E.C0)(sdkStore,U);return{left:H,top:ae,right:de,bottom:ge,width:de-H,height:ge-ae}},fr=mn.Ay.div.withConfig({displayName:"styles__StyledAlignLines",componentId:"sc-1ohv00a-0"})([".h-line,.dis-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.v-line,.dis-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-value,.dis-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.edge-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.edge-v-value,.dis-v-value{position:absolute;right:0;top:50%;color:",";transform:translate(0,-50%);}.dis-h-line{border-top:1px solid ",";z-index:10;}.dis-v-line{border-left:1px solid ",";z-index:10;}"],$=>$.theme.color_polyline_hover,$=>$.theme.color_polyline_hover,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline,$=>$.theme.color_smartline);class Ar extends a.PureComponent{render(){const{alignment:U,distributed:H,ratio:ae}=this.props,{lines:{onH:de,onV:ge},distances:{onH:le,onV:Ee}}=Es(U,H);return(0,Ce.jsxs)(fr,{children:[de&&de.map((Pe,Fe)=>(0,Ce.jsx)("div",{className:"h-line",style:{transform:"translate("+Pe[0].x*ae+"px,"+Pe[0].y*ae+"px)",width:(Pe[1].x-Pe[0].x)*ae}},"h-line-"+Fe)),ge&&ge.map((Pe,Fe)=>(0,Ce.jsx)("div",{className:"v-line",style:{transform:"translate("+Pe[0].x*ae+"px,"+Pe[0].y*ae+"px)",height:(Pe[1].y-Pe[0].y)*ae}},"v-line-"+Fe)),le&&le.map((Pe,Fe)=>{let{line:[Ke],length:ct}=Pe;return ct?(0,Ce.jsx)("div",{className:"dis-h-line",style:{transform:"translate("+Ke.x*ae+"px,"+Ke.y*ae+"px)",width:ct*ae},children:(0,Ce.jsx)("span",{className:"dis-h-value",children:ct})},"dis-h-line-"+Fe):null}),Ee&&Ee.map((Pe,Fe)=>{let{line:[Ke],length:ct}=Pe;return ct?(0,Ce.jsx)("div",{className:"dis-v-line",style:{transform:"translate("+Ke.x*ae+"px,"+Ke.y*ae+"px)",height:ct*ae},children:(0,Ce.jsx)("span",{className:"dis-v-value",style:{left:-String(ct).length*6-8},children:ct})},"dis-v-line-"+Fe):null})]})}}const zr=$=>{const{onV:U,onH:H}=$,ae={onV:null,onH:null},de={onV:{edge:[],gap:[]},onH:{edge:[],gap:[]}};if(U){ae.onV=U.gap;const ge=U.rects.map(Ee=>{let[Pe,Fe]=Ee;const Ke=Math.min(Pe.left,Fe.left),ct=Math.min(Pe.bottom,Fe.bottom),vt=Math.max(Pe.right,Fe.right)-Ke;return{left:Ke,top:ct,width:vt,height:U.gap}}),le=new Map;if(ge.forEach(Ee=>{const Pe=Ee.top,Fe=le.get(Pe)||[];Fe.push(Ee),le.set(Pe,Fe)}),le.size<2)de.onV.gap=[];else{const Ee=[];le.forEach((Pe,Fe)=>{if(Pe.length===1){Ee.push(Pe[0]);return}const Ke=Math.max.apply(Math,Pe.map(function(vt){return vt.left+vt.width})),ct=Math.min.apply(Math,Pe.map(function(vt){return vt.left}));Ee.push({left:ct,top:Pe[0].top,width:Ke-ct,height:Pe[0].height})}),de.onV.gap=Ee}}if(H){ae.onH=H.gap;const ge=H.rects.map(Ee=>{let[Pe,Fe]=Ee;const Ke=Math.min(Pe.right,Fe.right),ct=Math.min(Pe.top,Fe.top),vt=Math.max(Pe.bottom,Fe.bottom)-ct;return{left:Ke,top:ct,width:H.gap,height:vt}}),le=new Map;if(ge.forEach(Ee=>{const Pe=Ee.left,Fe=le.get(Pe)||[];Fe.push(Ee),le.set(Pe,Fe)}),le.size<2)de.onH.gap=[];else{const Ee=[];le.forEach((Pe,Fe)=>{if(Pe.length===1){Ee.push(Pe[0]);return}const Ke=Math.min.apply(Math,Pe.map(function(vt){return vt.top})),ct=Math.max.apply(Math,Pe.map(function(vt){return vt.top+vt.height}));Ee.push({left:Pe[0].left,top:Ke,width:Pe[0].width,height:ct-Ke})}),de.onH.gap=Ee}}return{gap:ae,lines:de}},Fr=mn.Ay.div.withConfig({displayName:"styles__StyledDistributedLines",componentId:"sc-1nvuwzk-0"})([".h-gap{position:absolute;background:",";.value{position:absolute;top:0;left:50%;transform:translate(-50%,calc(-100% - 3px));color:",";}}.v-gap{position:absolute;background:",";.value{position:absolute;top:50%;transform:translate(0,-50%);color:",";}}"],$=>$.theme.color_spacing,$=>$.theme.color_smartline,$=>$.theme.color_spacing,$=>$.theme.color_smartline);class os extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"genHGapIndicators",(U,H,ae,de)=>{let{left:ge,width:le,top:Ee,height:Pe}=U;const Fe={transform:"translate("+ge*ae+"px,"+Ee*ae+"px)",height:Pe*ae,width:le*ae};return(0,Ce.jsx)("div",{className:"h-gap",style:Fe,children:(0,Ce.jsx)("span",{className:"value",children:de.onH})},"gap-"+H)}),(0,ve.A)(this,"genVGapIndicators",(U,H,ae,de)=>{let{left:ge,width:le,top:Ee,height:Pe}=U;const Fe={transform:"translate("+ge*ae+"px,"+Ee*ae+"px)",height:Pe*ae,width:le*ae};return(0,Ce.jsx)("div",{className:"v-gap",style:Fe,children:(0,Ce.jsx)("span",{className:"value",style:{left:-String(de.onV).length*6-6},children:de.onV})},"v-gap-"+H)})}render(){const{distributed:U,ratio:H}=this.props,{gap:ae,lines:de}=zr(U);return(0,Ce.jsxs)(Fr,{children:[ae.onH?de.onH.gap.map((ge,le)=>this.genHGapIndicators(ge,le,H,ae)):null,ae.onV?de.onV.gap.map((ge,le)=>this.genVGapIndicators(ge,le,H,ae)):null]})}}const Kl=(0,a.memo)($=>{let{sameSize:U,alignment:H,distributed:ae,ratio:de}=$;return(0,Ce.jsxs)(a.Fragment,{children:[ae&&(0,Ce.jsx)(os,{distributed:ae,ratio:de}),H&&(0,Ce.jsx)(Ar,{alignment:H,distributed:ae,ratio:de}),U&&(0,Ce.jsx)(ns,{sameSize:U,ratio:de})]})}),as=$=>$.screencontainer.alignment,al=$=>$.screencontainer.distributed,pd=$=>$.screencontainer.sameSize,Cd=(0,oo.Mz)([l.X_,pd,as,al],($,U,H,ae)=>({ratio:$/100,sameSize:U,alignment:H,distributed:ae})),wc=(0,k.Ng)($=>Cd($))(Kl);var ba=i(14166),$r=i(39695),Ni=i(21066),Bs=i(24229),Ec=i(29187),ps=i(17307),Yl=i(89853),ls=i(5209),wl=i(81717);const{LinkToCanvas:Sc,LinkToSourceCanvas:lc,SetBasketCanvas:Ic,OpenExternalUrl:Gc,ScrollTo:mc,SetVisibility:Zc,OpenOverlay:gc,SwapOverlay:Fo,CloseOverlay:Ca}=$r.O2;let ya=function($){return $.settings="\u5C5E\u6027\u9762\u677F\u8BBE\u7F6E",$.handleLinkPage="\u624B\u67C4\u94FE\u63A5\u753B\u5E03(\u5217\u8868)",$.handleLinkScreen="\u624B\u67C4\u94FE\u63A5\u9875\u9762",$.handleLinkScreenList="\u624B\u67C4\u94FE\u63A5\u9875\u9762(\u5217\u8868)",$.handleLinkScreenState="\u624B\u67C4\u94FE\u63A5\u72B6\u6001",$.handleLinkScreenStateList="\u624B\u67C4\u94FE\u63A5\u72B6\u6001(\u5217\u8868)",$.handleLinkPrev="\u8FDE\u7EBF\u8FD4\u56DE\u6765\u6E90\u9875\u9762",$.handleLinkWidget="\u624B\u67C4\u94FE\u63A5\u5143\u7D20",$.handleLinkOverlay="\u624B\u67C4\u94FE\u63A5\u5BB9\u5668",$.handleLinkOverlayClose="\u8FDE\u7EBF\u5173\u95ED\u5F39\u7A97",$}({}),Ba=function($){return $.pageCanvas="\u9875\u9762",$.basketCanvas="\u52A8\u6001\u7EC4\u4EF6",$.muBan="\u6BCD\u7248",$}({});var Xa=function($){return $.handle="\u624B\u578B",$.click="\u5355\u51FB",$.timer="\u5B9A\u65F6\u5668",$}(Xa||{});const Kt={[Sc]:"\u8DF3\u8F6C\u9875\u9762",[Gc]:"\u8DF3\u8F6C\u8D85\u94FE\u63A5",[lc]:"\u8FD4\u56DE\u6765\u6E90\u753B\u677F",[Ic]:"\u5207\u6362\u7EC4\u4EF6\u72B6\u6001",[mc]:"\u6EDA\u52A8\u5230",[Zc]:"\u663E\u793A/\u9690\u85CF",[gc]:"\u6253\u5F00\u5F39\u7A97",[Fo]:"\u5207\u6362\u5F39\u7A97",[Ca]:"\u5173\u95ED\u5F39\u7A97"},Vn=["tap","left","right","up","down","hold","dtap","shake-divider","shake"],io=["click","dbclick","longpress","mouseIn","mouseOut","rightClick"],Wn=["timer"],$n=[...Vn,...io,...Wn],Vo=$=>{let{add_mode:U,element_type:H,link:ae,event_number:de,canvas_type:ge}=$;const{interactionType:le,interactionTrigger:Ee,transition:Pe}=ae,Fe=$n.includes(Ee)?Vn.includes(Ee)?Xa.handle:io.includes(Ee)?Xa.click:Xa.timer:"",Ke=I18N.SettingPanel.g[Ee],ct=de>=10?">=10":""+de,vt=le===mc?ae.scrollToDir==="vertical"?"\u5782\u76F4\u6EDA\u52A8":ae.scrollToDir==="horizontal"?"\u6C34\u5E73\u6EDA\u52A8":"\u53CC\u5411\u6EDA\u52A8":Kt[le],Ft={add_mode:U,element_type:H,event_behavior:vt,event_trigger_mode:Fe+"-"+Ke,state_animation:"",page_animation:Pe==="auto"?"\u667A\u80FD\u52A8\u753B":"\u65E0\u6548\u679C",event_number:ct,canvas_type:ge};(0,ls.kH)("event_set_V8",Ft),wl.Y4.editProjectNew("\u8BBE\u7F6E\u4E8B\u4EF6")},Do=$=>{let{add_mode:U,link:H,widgetNode:{key:ae,hotAttr:{type:de}},isEditGlobalLink:ge,eventNumber:le,canvas_type:Ee}=$;const Pe=ge?"\u5168\u5C40\u94FE\u63A5":de==="group"?"\u7EC4\u5408":de==="lr"?"\u94FE\u63A5\u533A\u57DF":de==="sticky"?"\u6279\u6CE8":de==="panel"?"\u52A8\u6001\u7EC4\u4EF6":(0,ea.OO)(ae)?"\u52A8\u6001\u7EC4\u4EF6\u5185\u5143\u7D20":"\u5176\u4ED6";Vo({add_mode:U,element_type:Pe,link:H,event_number:le,canvas_type:Ee})};var Bo=i(76613),Ro=i(37780),Pa=i(26067),la=i(93257),Go=i(51090);const ir=(0,mn.Ay)(Ni.Ay).withConfig({displayName:"styles__StyledLinkDesignContextMenu",componentId:"sc-69h6p3-0"})(["",";> ul{max-width:240px;width:max-content;li{a{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}}"],Go.ZJ),tr=mn.Ay.div.withConfig({displayName:"styles__StyledLinkDesign",componentId:"sc-69h6p3-1"})(["position:fixed;z-index:5;pointer-events:auto;&.is-dragging{z-index:200;pointer-events:none;.line{border-color:#8d9ea7;}.handler{color:#8d9ea7;}}&.is-active{.line{border-color:#298df8;}.handler{color:#298df8;}}&.shield-corner-events{pointer-events:none;}&.hide{display:none;}.line{position:absolute;top:0;left:0;width:26px;border-top:2px solid #c8cdd0;transform-origin:left center;}.handler{position:absolute;display:flex;justify-content:center;align-items:center;font-size:18px;width:1em;height:1em;margin-top:-0.5em;margin-left:-0.5em;background:white;color:#c8cdd0;border:2px solid #c8cdd0;border-radius:50%;cursor:grab;.icon{font-size:12px;}}"]),wr=mn.Ay.div.withConfig({displayName:"styles__StyledQuickCreateMark",componentId:"sc-69h6p3-2"})(["position:fixed;color:",";&.isHighlight{color:",";}path{fill:#fff !important;}"],$=>$.theme.color_btn_primary_disabled,$=>$.theme.color_proto);var Pr=i(7457),br=i(4235);const lr=mn.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspotContainer",componentId:"sc-1c47x5u-0"})(["position:absolute;z-index:3;"]),ei=mn.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspot",componentId:"sc-1c47x5u-1"})(["position:absolute;pointer-events:auto;z-index:",";transform:",";width:","px;height:","px;"],$=>$.zIndex,$=>"translate("+($.x-$.w*.5)*$.scale+"px,"+($.y-$.h*.5)*$.scale+"px) rotate("+$.r+"deg)",$=>$.w*$.scale,$=>$.h*$.scale);var vr=i(98915),ar=function($){return $[$.canvas=1]="canvas",$[$.canvasList=2]="canvasList",$[$.widget=3]="widget",$[$.group=4]="group",$[$.panel=5]="panel",$[$.page=6]="page",$[$.canvasStateList=7]="canvasStateList",$[$.overlay=8]="overlay",$}(ar||{});const hr=(0,oo.Mz)([Pr.nF,br.p$,D.IL,l.X_,D.jI],($,U,H,ae,de)=>{const ge=U[0];return{isDragLink:$,editingBDanliKey:de,interactiveTriggerKey:ge,interactiveTargetKey:H,scale:ae}}),mr=$=>{let{editingBDanliKey:U,targetKey:H,scale:ae}=$;const de=sdkStore.getHotItem(H);if(!de)return null;const{hotAttr:{zIndex:ge}}=de,le=m.Q.USE_CLIP_TEXT.includes(de.hotAttr.type)?(0,vr.VU)(H):de.hotAttr.type==="wWrap"?(0,vr.py)(H):sdkStore.getHotBound(H);let Ee,Pe=U?(0,ea.j_)([U,H]):H;switch(de.hotAttr.type){case"rResCanvas":{Ee=de.hotAttr.asOverlay?ar.overlay:ar.canvas,Pe=H;break}case"wWrap":{Ee=ar.group;break}case"wBasket":{Ee=ar.panel;break}default:Ee=ar.widget}const Fe=(0,a.useMemo)(()=>{var Ke,ct;const vt=sdkStore.locUpMainCanvasKey(H);if(!vt)return ge;const Ft=((Ke=sdkStore.getHotItem(vt))==null?void 0:Ke.hotAttr)||{};return de.hotAttr.type==="rResCanvas"?ge:((ct=Ft.zIndex)!=null?ct:0)+ge},[H]);return(0,Ce.jsx)(ei,{className:"interactive-target-hotspot","data-interactive-target-key":Pe,"data-interactive-target-type":Ee,scale:ae/100,zIndex:Fe,...le},de.key)},Yr=()=>{const{editingBDanliKey:$,interactiveTriggerKey:U,interactiveTargetKey:H,isDragLink:ae,scale:de}=(0,k.d4)(hr);return ae?(0,Ce.jsxs)(lr,{children:[H&&(0,Ce.jsx)(mr,{targetKey:H,editingBDanliKey:$,scale:de}),U&&(0,Ce.jsx)(mr,{targetKey:U,editingBDanliKey:$,scale:de})]}):null};var yi=i(93413),Ri=i(83485),vs=i(17573),ri=i(99566),us=i(88981);const Nr=$=>{if(!$)return us.O.Tap;const U=sdkStore.getHotItem($);return(0,ri.b7)(U==null?void 0:U.hotAttr.type)&&(0,vs.qK)()?us.O.InputEvent:us.O.Tap},si={isDragging:!1,isActive:!1,deltaX:0,deltaY:0,isShowContextMenu:!1,mouseX:0,mouseY:0,targetCid:"",targetPanel:void 0,linkTargetType:void 0,canvasList:[],isLinkDesignQuickMarkHighlightState:!1,isShowSelfMark:!1};var Is=function($){return $.left="left",$.right="right",$}(Is||{});class St extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"highlight",H=>{const{dispatch:ae}=this.props;ae({type:"links:singleSelectLink:update",payload:{singleSelectLink:H}})}),(0,ve.A)(this,"handleDown",H=>{var ae;H.stopPropagation();const{rootScreenCid:de,selectedItems:ge,editingPanelCid:le,isEditingCombo:Ee,dispatch:Pe}=this.props;Pe({type:"artboard:update:state",payload:{isDragLink:!0}}),this.setState({...si,isDragging:!0});const Fe=H.clientX,Ke=H.clientY;let ct,vt,Ft;const pn=sdkStore.locUpColdCanvasKey(((ae=ge[0])==null?void 0:ae.key)||""),bn=le?sdkStore.locUpColdCanvasKey(le):null;let to=!1,Po=[];Pe(Ro.R7.command.clearAllCommand({}));const fo=Ko=>{var ha,Aa;const I=Ko.clientX-Fe,F=Ko.clientY-Ke;ct=null;const oe=(ha=(Aa=Ko.target).closest)==null?void 0:ha.call(Aa,".interactive-target-hotspot");if(oe)switch(to=!0,ct=oe,vt=ct.dataset.interactiveTargetType,Ft=ct.dataset.interactiveTargetKey,Po=(0,Pa.Y2)(Ft),Number(vt)){case ar.canvasStateList:case ar.overlay:case ar.canvas:{pn===Ft&&(to=!1);break}case ar.page:{var be;const tn=((be=Po)==null?void 0:be.length)===0;(Ee||tn)&&(to=!1);break}case ar.canvasList:{const tn=sdkStore.getHotItem(Ft);(pn===Ft||bn===Ft||!tn)&&(to=!1);break}}else{var Mt,ut;const tn=(Mt=(ut=Ko.target).closest)==null?void 0:Mt.call(ut,".quick-create-mark");tn?(ct=tn,vt="dummy",to=!0):(vt="",to=!1)}this.setState({deltaX:I,deltaY:F,isActive:to,isLinkDesignQuickMarkHighlightState:vt==="dummy"})},Ho=Ko=>{const{editingPanelCid:ha,isEditingMuban:Aa,dispatch:I,selectedItems:F}=this.props;if(I({type:"artboard:update:state",payload:{isDragLink:!1}}),document.removeEventListener("mousemove",fo),document.removeEventListener("mouseup",Ho),!ct||!to){this.setState(si);return}if(vt==="dummy"){this.setState({...si}),I(Ro.R7.command.intActConnectorDummySelectCommand({e:Ko})),(0,Ri.X)();return}switch(Number(vt)){case ar.widget:case ar.group:{const $e=this.state.deltaX,nt=this.state.deltaY;this.setState({...si,isActive:!0,isDragging:!0,deltaX:$e,deltaY:nt,isShowContextMenu:!0,mouseX:Ko.clientX+5,mouseY:Ko.clientY,linkTargetType:ar.widget,targetCid:Ft});break}case ar.panel:{const $e=this.state.deltaX,nt=this.state.deltaY,yt=sdkStore.getHotItem(Ft);this.setState({...si,isActive:!0,isDragging:!0,deltaX:$e,deltaY:nt,isShowContextMenu:!0,mouseX:Ko.clientX+5,mouseY:Ko.clientY,linkTargetType:ar.panel,targetCid:Ft,targetPanel:yt});break}case ar.canvasStateList:{var oe,be;this.setState({...si,linkTargetType:ar.canvasStateList});const $e={key:(0,Bs.cF)("ita"),interactionType:3,interactionTrigger:Nr((oe=F[0])==null?void 0:oe.key),targetBasketKey:Bo.VZ,targetResCanvasKey:Ft,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0",resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0};I(Ro.R7.command.linkDesignCreateIta({newInteraction:$e,interactionTrigger:Nr((be=F[0])==null?void 0:be.key),e:Ko}));break}case ar.overlay:{var Mt;this.setState(si);let $e;if(Ft==="close"){var ut;$e={key:(0,Bs.cF)("ita"),interactionType:$r.O2.CloseOverlay,interactionTrigger:Nr((ut=F[0])==null?void 0:ut.key)}}else{var tn;$e={key:(0,Bs.cF)("ita"),interactionType:$r.O2.OpenOverlay,interactionTrigger:Nr((tn=F[0])==null?void 0:tn.key),targetRBPageKey:de,targetOverlayKey:Ft,closeWhenClickingOutside:!0,addBackdrop:!0,backdropColor:102,backdropFilterBlurRadius:0,overlayRelativePos:"ce",overlayRelativePosX:.42,overlayRelativePosY:.42,transition:"none",transitionDuration:"",transitionDelay:"0",resetTargetSubWidgetsState:!0}}I(Ro.R7.command.linkDesignCreateIta({newInteraction:$e,interactionTrigger:Nr((Mt=F[0])==null?void 0:Mt.key),e:Ko}));break}case ar.canvas:{var Xt;this.setState(si);let $e;if(Ft==="source"){var Kn;$e={key:(0,Bs.cF)("ita"),interactionType:2,interactionTrigger:Nr((Kn=F[0])==null?void 0:Kn.key),resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"}}else if(ha||Aa){var ao;$e={key:(0,Bs.cF)("ita"),interactionType:3,interactionTrigger:Nr((ao=F[0])==null?void 0:ao.key),targetBasketKey:ha&&sdkStore.isActiveKey((0,ea.j_)([ha,Ft]))?ha:Bo.VZ,targetResCanvasKey:Ft,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0"}}else{var v;$e={key:(0,Bs.cF)("ita"),interactionType:1,interactionTrigger:Nr((v=F[0])==null?void 0:v.key),targetRBPageKey:de,targetResCanvasKey:Ft,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"}}I(Ro.R7.command.linkDesignCreateIta({newInteraction:$e,interactionTrigger:Nr((Xt=F[0])==null?void 0:Xt.key),e:Ko}));break}case ar.page:{var K;const $e=((K=Po)==null?void 0:K.length)===0;(Ee||$e)&&!Ee&&$e&&MB.notice({text:"\u8BE5\u753B\u5E03\u65E0\u9875\u9762",type:"warning"});const nt=this.state.deltaX,yt=this.state.deltaY;this.setState({...si,isActive:!0,isDragging:!0,deltaX:nt,deltaY:yt,isShowContextMenu:!0,mouseX:Ko.clientX+5,mouseY:Ko.clientY,linkTargetType:ar.page,targetCid:Ft,canvasList:Po});break}case ar.canvasList:{var te,me;this.setState({...si,linkTargetType:ar.canvasList});const $e=sdkStore.getHotItem(Ft);if(!$e)return;const nt={key:(0,Bs.cF)("ita"),interactionType:1,interactionTrigger:Nr((te=F[0])==null?void 0:te.key),targetRBPageKey:$e.sup,targetResCanvasKey:Ft,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"};I(Ro.R7.command.linkDesignCreateIta({newInteraction:nt,interactionTrigger:Nr((me=F[0])==null?void 0:me.key),e:Ko}));break}}};document.addEventListener("mousemove",fo),document.addEventListener("mouseup",Ho)}),(0,ve.A)(this,"linkTrack",(H,ae)=>{const{selectedItems:de,selectedLinks:ge,isEditingBasket:le,isEditingMuban:Ee}=this.props;if(H){const{linkTargetType:Pe}=this.state,{interactionType:Fe}=H;let Ke,ct;switch(Fe){case Bo.N_.TYPE.LinkToCanvas:Pe===ar.canvasList?Ke=ya.handleLinkScreenList:Pe===ar.page?Ke=ya.handleLinkPage:Ke=ya.handleLinkScreen;break;case Bo.N_.TYPE.LinkToSourceCanvas:Ke=ya.handleLinkPrev;break;case Bo.N_.TYPE.SetBasketCanvas:Pe===ar.canvasStateList?Ke=ya.handleLinkScreenStateList:Ke=ya.handleLinkScreenState;break;case Bo.N_.TYPE.openOverlay:Ke=ya.handleLinkOverlay;break;case Bo.N_.TYPE.closeOverlay:Ke=ya.handleLinkOverlayClose;break;default:Ke=ya.handleLinkWidget;break}Ee?ct=Ba.muBan:le?ct=Ba.basketCanvas:ct=Ba.pageCanvas,ae&&de!=null&&de.length&&Do({link:H,widgetNode:de[0],isEditGlobalLink:!1,eventNumber:ge.length+1,add_mode:Ke,canvas_type:ct})}}),(0,ve.A)(this,"getContextMenu",()=>{const{selectedItems:H,editingPanelCid:ae}=this.props,{linkTargetType:de,targetPanel:ge,canvasList:le,targetCid:Ee}=this.state;let Fe=[this.showHideLinkOption,this.scrollLinkOption];switch(de){case ar.panel:{const vt=sdkStore.getSubHotItemList(ge.hotAttr.refRBPageKey).reduce((bn,to)=>(to.hotAttr.type==="rResCanvas"&&bn.push({label:to.hotAttr.name,onClick:Po=>this.createPanelStateLink(to.key,Po)}),bn),[]),pn=[{label:I18N.SettingPanel.first_state,onClick:()=>this.createPanelStateLink(Bo.L8)},{label:I18N.SettingPanel.pre_state,onClick:()=>this.createPanelStateLink(Bo.Gp)},{label:I18N.SettingPanel.next_state,onClick:()=>this.createPanelStateLink(Bo.Oh)},{label:I18N.SettingPanel.last_state,onClick:()=>this.createPanelStateLink(Bo.Hg)},{label:"divider"}].concat(vt);Fe.push({label:I18N.SettingPanel.link_widget_change,children:pn});break}case ar.page:{var Ke;const vt=ae?sdkStore.locUpColdCanvasKey(ae):null,Ft=sdkStore.locUpColdCanvasKey((Ke=H[0])==null?void 0:Ke.key,!0);Fe=le.map(pn=>{let{key:bn,hotAttr:to}=pn;return{label:to.name,disabled:bn===Ft||bn===vt,onClick:Po=>this.createCanvasLink(bn,Po)}});break}}if(de!==ar.page&&(Fe.push(this.transformLinkOption),Fe.push(this.setAnimationLinkOption),de===ar.widget&&(0,vs.qK)())){var ct;const vt=(ct=sdkStore.getHotItem(Ee))==null?void 0:ct.hotAttr.type;(0,ri.b7)(vt)&&Fe.push(this.setInputFocusLinkOption)}return Fe}),(0,ve.A)(this,"createPanelStateLink",H=>{var ae;const{dispatch:de,selectedItems:ge}=this.props,{targetCid:le,mouseX:Ee,mouseY:Pe}=this.state,Fe=Nr((ae=ge[0])==null?void 0:ae.key),Ke={key:(0,Bs.cF)("ita"),interactionType:3,interactionTrigger:Fe,targetBasketKey:le,targetResCanvasKey:H,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0",resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0},ct={clientX:Ee,clientY:Pe};de(Ro.R7.command.linkDesignCreateIta({newInteraction:Ke,interactionTrigger:Fe,e:ct}))}),(0,ve.A)(this,"createScrollLink",H=>{var ae;const{dispatch:de,selectedItems:ge}=this.props,{targetCid:le,mouseX:Ee,mouseY:Pe}=this.state,Fe=Nr((ae=ge[0])==null?void 0:ae.key),Ke={key:(0,Bs.cF)("ita"),interactionType:5,interactionTrigger:Fe,targetWidgetKey:le,scrollToOffsetX:0,scrollToOffsetY:0,scrollToDir:H,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s",iterationCount:"1",iterationInterval:"0"},ct={clientX:Ee,clientY:Pe};de(Ro.R7.command.linkDesignCreateIta({newInteraction:Ke,interactionTrigger:Fe,e:ct}))}),(0,ve.A)(this,"createVisibilityLink",H=>{var ae;const{dispatch:de,selectedItems:ge}=this.props,{targetCid:le,mouseX:Ee,mouseY:Pe}=this.state,Fe=Nr((ae=ge[0])==null?void 0:ae.key),Ke={key:(0,Bs.cF)("ita"),targetWidgetKey:le,interactionType:6,interactionTrigger:Fe,...H==="toggleVisibility"?{actionType:H,setVisibleTransition:"auto",setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:H==="setVisible"?{actionType:H,setVisibleTransition:"auto",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:{actionType:H,setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",transitionDelay:"0"}},ct={clientX:Ee,clientY:Pe};de(Ro.R7.command.linkDesignCreateIta({newInteraction:Ke,interactionTrigger:Fe,e:ct}))}),(0,ve.A)(this,"createCanvasLink",(H,ae)=>{var de;const{targetCid:ge}=this.state,{dispatch:le,selectedItems:Ee}=this.props,Pe=Nr((de=Ee[0])==null?void 0:de.key),Fe={key:(0,Bs.cF)("ita"),interactionType:$r.O2.LinkToCanvas,interactionTrigger:Pe,targetRBPageKey:ge,targetResCanvasKey:H,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s"};le(Ro.R7.command.linkDesignCreateIta({newInteraction:Fe,interactionTrigger:Pe,e:ae}))}),(0,ve.A)(this,"createTransformLink",()=>{var H,ae;const{dispatch:de,selectedItems:ge}=this.props,{targetCid:le,mouseX:Ee,mouseY:Pe}=this.state,Fe=Nr((H=ge[0])==null?void 0:H.key),Ke={key:(0,Bs.cF)("ita"),interactionType:13,interactionTrigger:Fe,targetWidgetKey:le,transformTranslateX:0,transformTranslateY:0,transformScaleX:100,transformScaleY:100,transformRotateZ:((ae=sdkStore.getHotItem(le||""))==null?void 0:ae.hotAttr.r)||0,transformRotateX:0,transformRotateY:0,transformOriginX:50,transformOriginY:50,rotate3d:!1,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s",iterationCount:"1",iterationInterval:"0"},ct={clientX:Ee,clientY:Pe};de(Ro.R7.command.linkDesignCreateIta({newInteraction:Ke,interactionTrigger:Fe,e:ct}))}),(0,ve.A)(this,"createSetAnimationLink",()=>{var H;const{dispatch:ae,selectedItems:de}=this.props,{targetCid:ge,mouseX:le,mouseY:Ee}=this.state,Pe=Nr((H=de[0])==null?void 0:H.key),Fe={key:(0,Bs.cF)("ita"),interactionType:14,interactionTrigger:Pe,targetWidgetKey:ge,animationName:"",animationDuration:1e3,transitionDelay:"0",iterationCount:"1",iterationInterval:"0"},Ke={clientX:le,clientY:Ee};ae(Ro.R7.command.linkDesignCreateIta({newInteraction:Fe,interactionTrigger:Pe,e:Ke}))}),(0,ve.A)(this,"createSetInputFocusLink",()=>{var H;const{dispatch:ae,selectedItems:de}=this.props,{targetCid:ge,mouseX:le,mouseY:Ee}=this.state,Pe=Nr((H=de[0])==null?void 0:H.key),Fe={key:(0,Bs.cF)("ita"),interactionType:15,interactionTrigger:Pe,targetWidgetKey:ge,isFocus:!0,isSelectContent:!1,transitionDelay:"0"},Ke={clientX:le,clientY:Ee};ae(Ro.R7.command.linkDesignCreateIta({newInteraction:Fe,interactionTrigger:Pe,e:Ke}))}),this.state=si,this.showHideLinkOption={label:I18N.SettingPanel.show_hide,children:[{label:I18N.SettingPanel.show,onClick:H=>this.createVisibilityLink("setVisible",H)},{label:I18N.SettingPanel.hide,onClick:H=>this.createVisibilityLink("setHidden",H)},{label:I18N.SettingPanel.switch,onClick:H=>this.createVisibilityLink("toggleVisibility",H)}]},this.scrollLinkOption={label:I18N.SettingPanel.roll_to,children:[{label:I18N.SettingPanel.scroll_to_vertical,onClick:H=>this.createScrollLink("vertical",H)},{label:I18N.SettingPanel.scroll_to_horizontal,onClick:H=>this.createScrollLink("horizontal",H)},{label:I18N.SettingPanel.scroll_to_both,onClick:H=>this.createScrollLink("both",H)}]},this.transformLinkOption={label:I18N.Interaction.transform.name,onClick:this.createTransformLink},this.setAnimationLinkOption={label:I18N.Interaction.set_animation.name,onClick:this.createSetAnimationLink},this.setInputFocusLinkOption={label:I18N.Interaction.setInputFocus.name,onClick:this.createSetInputFocusLink}}render(){const{showLinkDesign:U,placement:H,startX:ae,startY:de,canvasLeft:ge,canvasTop:le,isQuickCreateWidget:Ee,height:Pe}=this.props;if(!U)return null;const{isDragging:Fe,isActive:Ke,deltaX:ct,deltaY:vt,isShowContextMenu:Ft,mouseX:pn,mouseY:bn}=this.state,to={left:ae+ge,top:de+le},fo={x:ae+(H==="left"?-26:26)+ct,y:de+vt},Ho={left:fo.x-ae,top:fo.y-de},Ko=(0,Yl.Xb)(fo.x-ae,fo.y-de),ha=(0,Yl.FP)(fo.x-ae,fo.y-de),Aa={width:Ko,transform:"rotate("+ha+"deg)"},I=dn()("design",{"is-dragging":Fe,"is-active":Ke,"shield-corner-events":Ee}),F=this.state.isLinkDesignQuickMarkHighlightState;return(0,Ce.jsxs)(Ce.Fragment,{children:[(Fe||F)&&(0,Ec.Hl)(yi.c.GUIDE_NOVICE_2309_TASK_3)&&(0,Ce.jsx)(wr,{className:dn()("quick-create-mark",{isHighlight:F}),style:{top:to.top-Pe/2,left:to.left+8},children:(0,Ce.jsx)(la.A,{content:I18N.Interaction.header_title1,children:(0,Ce.jsx)(ps.C,{size:16,name:"interaction/self_mark"})})}),(0,Ce.jsxs)(tr,{id:"link-design",className:I,style:to,children:[(0,Ce.jsx)("div",{className:"line",style:Aa}),(0,Ce.jsx)("div",{className:"handler",style:Ho,onMouseDown:this.handleDown,children:(0,Ce.jsx)(ps.C,{name:"new_replace/thunder"})}),Ft&&(0,Ce.jsx)(ir,{position:{top:bn,left:pn},className:"size-small",onClose:()=>{this.setState(si)},children:this.getContextMenu().map((oe,be)=>oe.children?(0,Ce.jsx)(Ni.Dr,{text:oe.label,dataIndex:be,isAiry:!0,children:oe.children.map((Mt,ut)=>Mt.label==="divider"?(0,Ce.jsx)(Ni.cG,{},ut):(0,Ce.jsx)(Ni.Dr,{text:Mt.label,dataIndex:ut,onClick:Mt.onClick},ut))},be):(0,Ce.jsx)(Ni.Dr,{text:oe.label,dataIndex:be,disabled:oe.disabled,onClick:oe.onClick},be))})]})]})}}var je=i(20119),qe=i(10472),Le=i(67934),at=i(40610),ft=i(12410);const kt=(0,oo.Mz)([br.nE,je.c,l.dK,l.pO,l.Jv,V.FG,l.eo,qe.r,D.lY,l.M_,ft.X.query.getIsShallowEditing,D.jx],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct)=>{let{isEditingCombo:vt}=Ee;const Ft=$[0],pn=$.length===1&&Ft.key===le;if($.length===1&&Ft.hotAttr.type===m.x.WCode||pn||Pe||ct===h.qi.OnlyView)return!1;const to=$.length===0,Po=U&&(0,at.AG)(U),fo=H||ae||de||ge,Ho=vt?!1:$.some(I=>!sdkStore.locUpHotCanvasKey(I.key)),Ko=$.some(I=>[m.x.wFlowClosed,m.x.WFlowOpened].includes(I.hotAttr.type)),ha=$.some(I=>I.hotAttr.type===m.x.WSwimlane)&&Ke,Aa=$.some(I=>[m.x.WSticky,m.x.WTear].includes(I.hotAttr.type));return!(to||Po||fo||Ho||Ko||ha||Aa||!to&&Fe)}),en=(0,oo.Mz)([kt,l.eo,l.X_,br.nE,l.wq,l.YT,V.UV,D.jI,Le.V5,qe.r,l.Pz],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke)=>{let{isEditingCombo:ct,isEditingMuban:vt,isEditingBasket:Ft}=Fe;if(!$||(ae==null?void 0:ae.length)!==1)return{showLinkDesign:!1};const{canvasTop:pn,canvasLeft:bn}=Ke,to="right",Po=ae.length===1&&ae[0].hotAttr.type===m.x.WTable;let fo,Ho,Ko,ha;if($){const I=H/100,F=ae.map(tn=>tn.key),[oe,be,Mt,ut]=F.reduce((tn,Xt)=>(0,ba.il)(tn,sdkStore.getHotAABB(Xt)),(0,ba.F1)());fo=Mt*I,Ho=(Po?be:.5*(be+ut))*I,Ko=Math.abs(Mt-oe)*I,ha=Math.abs(ut-be)*I}return{showLinkDesign:$,rootScreenCid:U,placement:to,startX:fo,startY:Ho,width:Ko,height:ha,isQuickCreateWidget:!!de,currentProjectMeta:ge,widgetStore:le,selectedItems:ae,editingPanelCid:Ee,selectedLinks:Pe,isEditingCombo:ct,isEditingMuban:vt,isEditingBasket:Ft,canvasTop:pn,canvasLeft:bn}}),kn=(0,k.Ng)($=>en($))(St);var yn=i(96986),yo=i(24496),Uo=i(45611);const Xo=(0,oo.Mz)([br.nE],$=>{const U=[];return $.forEach(H=>U.push(...(0,Uo.Dx)(H))),U});var Ia=i(39e3);const ja=mn.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionGapInfo",componentId:"sc-1jlh17j-0"})(["position:absolute;background-color:#f54edb;border-radius:2px;z-index:9999;span{font-size:12px;padding:4px;line-height:12px;color:#fff;}"]),ka=mn.Ay.div.withConfig({displayName:"styles__StyledRadiusResizerHandler",componentId:"sc-1jlh17j-1"})(["position:absolute;padding:6px;background-color:#333333;border-radius:2px;top:9999px;left:999px;display:flex;pointer-events:none;z-index:",";span{font-size:12px;line-height:12px;color:#fff;}"],m.Q.STICKY_Z+1);class ga extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"handleMove",H=>{if(!document.querySelector("#screens").contains(H.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:H.clientX+22+"px",top:H.clientY+8+"px"}})}),(0,ve.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,ve.A)(this,"handleMouseOut",H=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_RADIUS_RESIZER_HANDLER",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{resizingRadiusNum:U}=this.props,{position:H}=this.state,ae=I18N.dConst.inspector.radius+" "+U;return(0,no.createPortal)((0,Ce.jsx)(ka,{style:H,children:(0,Ce.jsx)("span",{children:ae})}),this.$elem)}}class er extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"handleMove",H=>{if(!document.querySelector("#screens").contains(H.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:H.clientX+8+"px",top:H.clientY+8+"px"}})}),(0,ve.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,ve.A)(this,"handleMouseOut",H=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_ADJUST_GAP_INFO",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{gap:U}=this.props,{position:H}=this.state;return(0,no.createPortal)((0,Ce.jsx)(ja,{style:H,children:(0,Ce.jsx)("span",{children:U})}),this.$elem)}}class Za extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleKeyDown",U=>{const{dispatch:H,isEditingComment:ae}=this.props;if(U.repeat||MB.f.isEditTable||MB.isEditing(U)||ae)return;const de=U.metaKey||U.ctrlKey||U.altKey||U.shiftKey,ge=U.keyCode===83,le=U.keyCode===32,Ee=U.metaKey||U.ctrlKey,Pe=U.altKey;Pe&&U.preventDefault();const Fe=U.shiftKey;H({type:"set:key:flags",payload:{isKeySDown:ge,isSpaceDown:le,isCtrlDown:Ee,isAltDown:Pe,isShiftDown:Fe}}),!Ee&&ge?(H(h.GO.hoverItem("")),H(h.GO.select([]))):le&&U.preventDefault()}),(0,ve.A)(this,"handleKeyUp",async U=>{this.props.dispatch({type:"set:key:keyFlags",payload:{isAltDown:U.altKey}}),this.props.dispatch(h.GO.toggleIsShowFloatingToolbar(!0));const{getIsAltDown:H}=this.props;H()||this.props.dispatch({type:"reset:key:flags"})})}componentDidMount(){window.addEventListener("blur",this.handleKeyUp)}componentWillUnmount(){window.removeEventListener("blur",this.handleKeyUp)}render(){const{isKeyDown:U,isAdjustingGap:H,gap:ae,isShowRadiusResizerHandler:de,resizingRadiusNum:ge}=this.props;return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Ia.A,{target:document,onKeyDown:this.handleKeyDown}),U&&(0,Ce.jsx)(Ia.A,{target:document,onKeyUp:this.handleKeyUp}),H&&(0,Ce.jsx)(er,{gap:ae}),de&&(0,Ce.jsx)(ga,{resizingRadiusNum:ge})]})}}const Cr=$=>{let U;return[function(){for(var H=arguments.length,ae=new Array(H),de=0;de<H;de++)ae[de]=arguments[de];return U=ae},()=>$(...U)]},[Dr,ti]=Cr($=>$),Xr=(0,oo.Mz)([yn.ud,l.X_,l.ZS,Xo,l.Pz,l.wq,l.aM,To.$,l.iv,l.w8,l.mX,D.Ro,yo.aJ],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct,vt)=>{const{isKeySDown:Ft,isSpaceDown:pn,isCtrlDown:bn,isAltDown:to,isShiftDown:Po}=H,fo=Ft||pn||bn||to||Po||vt,{isAdjustingColGap:Ho,isAdjustingRowGap:Ko,colGap:ha,rowGap:Aa}=Ee,I=Ho?ha:Aa,F=Ho||Ko,oe=Pe&&Fe;return Dr(to),{isEditingComment:$,isKeyDown:fo,getIsAltDown:ti,isInPreview:le,gap:I,isAdjustingGap:F,isShowRadiusResizerHandler:oe,resizingRadiusNum:Ke,handMode:ct}}),li=(0,k.Ng)($=>Xr($))(Za);var ur=i(36518);const oi=(0,a.memo)($=>{var U,H,ae;let{hotItem:de,scale:ge,basket:le}=$;const Ee=((U=le.hotAttr)==null?void 0:U.bunch)===m.x.RbPage,Pe=de.key,{x:Fe,y:Ke}=((H=sdkStore.getHotItem(Pe))==null?void 0:H.hotAttr)||{},{x:ct,y:vt}=((ae=sdkStore.getSourceHotItem(Pe))==null?void 0:ae.hotAttr)||{},{w:Ft,h:pn}=le.hotAttr,bn=ge/100,to={position:"absolute",transform:"translate("+(Fe-ct)*bn+"px,"+(Ke-vt)*bn+"px)",width:Ft*bn,height:pn*bn,border:Ee?"1px dashed "+ur.fm.color_master.value_light:"1px dashed "+ur.fm.color_comments.value_light,pointerEvents:"none"};return(0,Ce.jsx)("div",{className:"basket-viewport",style:to})});var hs=i(21856),Di=i(79209),Gr=i(47693);const ms=mn.Ay.span.withConfig({displayName:"styles__StyledCanvasName",componentId:"sc-1jxaee9-0"})(["position:absolute;cursor:pointer;display:inline-flex;height:20px;color:rgba(255,255,255,0.8);&.is-black{color:rgba(0,0,0,0.7);}&.is-editing-title{span:not(.overlay-icon){visibility:hidden;padding:1px 3px;}input{visibility:visible;}}span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:inherit;line-height:20px;}&.active,&:active,&:hover{color:",";.overlay-icon{color:",";}}.overlay-icon{flex-shrink:0;width:20px;height:20px;color:",";svg{width:20px;height:20px;}}&.as-overlay{input{width:calc(100% - 20px);left:20px;}}input{position:absolute;display:flex;left:-3px;top:-1px;width:100%;height:20px;pointer-events:auto;font-size:12px;line-height:16px;background-color:",";border:1.5px solid ",";border-radius:1px;padding:0 1.5px;min-width:8px;max-width:inherit;visibility:hidden;}"],$=>$.theme.color_text_link_normal,$=>$.theme.color_text_link_normal,$=>$.theme.color_text_L3,$=>$.theme.color_text_btn,$=>$.theme.color_proto),Zi=mn.Ay.div.withConfig({displayName:"styles__StyledCanvasCtrlButtons",componentId:"sc-1jxaee9-1"})(["position:absolute;cursor:pointer;display:flex;.icon{&:not(:last-child){margin-right:4px;}width:16px;height:16px;color:",";&:hover{color:",";}&.is-disabled{cursor:not-allowed;> *{fill:",";}}}"],$=>$.theme.color_text_L2,$=>$.theme.color_text_link_normal,$=>$.theme.color_text_L3),El=(0,a.memo)($=>{var U;let{hotItem:H,scale:ae,className:de,dispatch:ge,canDel:le,basket:Ee}=$;const Pe=(Ee==null||(U=Ee.hotAttr)==null?void 0:U.bunch)===m.x.RbPage,Fe=(0,a.useCallback)(()=>{const{sup:Ho,hotAttr:{zIndex:Ko,order:ha}}=H,Aa=sdkStore.getSubHotItemList(Ho).map(ut=>ut.key),{highZIndexItemsKeyList:I}=(0,hs.CB)(Aa,Ko),F=sdkStore.dupWithinPage([H.key])[0],oe=[F,...I];let be=Ko,Mt=ha;return oe.forEach(ut=>{sdkStore.updateHotAttrMerge(ut,{zIndex:++be,order:++Mt})}),(0,hs.rq)([F],Ho,sdkStore,!1),F},[H]),Ke=(0,a.useCallback)(()=>{if(!(0,Di._c)({type:"widget",count:(0,Di.UU)({initKeyList:[H.key],sdk:sdkStore})}))return;sdkStore.combineMergeMark("dup-canvas");const Ho=Fe();ge({type:"entry:refresh:canvas:order"}),ge({type:"entry:layout:basket-canvas"}),sdkStore.updateHotAttrKV(H.sup,"mtime",rootSdk.fssCmt.getClockStore().getMtime()),sdkStore.combineMerge("dup-canvas"),ge({type:"entry:clear:selection"}),ge({type:"entry:select:items",payload:{cids:[Ho]}}),MB.commonGuideHelper.closeGuide(yi.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(yi.c.GUIDE_BASKET_QUICK_COPY_CANVAS),(0,Gr.RW)({operation_type:Gr.Q1.CopyState,operation_from:Pe?Gr.IL.Muban:Gr.IL.Dynamic})},[ge,H.key,Fe,Pe]),ct=(0,a.useCallback)(()=>{ge({type:"entry:basket:delete",payload:{removeList:[H.key]}}),ge({type:"entry:refresh:link-list"}),ge({type:"entry:clear:selection"}),(0,Gr.RW)({operation_type:Gr.Q1.DeleteState,operation_from:Pe?Gr.IL.Muban:Gr.IL.Dynamic})},[ge,H.key,H.sup,Pe]);if(!sdkStore.isActiveKey(H==null?void 0:H.key))return null;const vt=ae/100,{x:Ft,y:pn,r:bn,w:to,h:Po}=sdkStore.getHotBound(H.key),fo={transform:"translate("+((Ft+to*.5)*vt-40)+"px,"+((pn-Po*.5)*vt-20)+"px) rotate("+bn+"deg)"};return(0,Ce.jsxs)(Zi,{className:de,style:fo,children:[(0,Ce.jsx)(ps.C,{name:"art_board/basket/canvas_dup",onClick:Ke}),(0,Ce.jsx)(ps.C,{name:"art_board/basket/canvas_del",onClick:le?ct:void 0,isDisabled:!le})]})}),yc=(0,a.memo)($=>{var U,H;let{hotItem:ae,scale:de,currentScreen:ge}=$;if(!sdkStore.isActiveKey(ae==null?void 0:ae.key))return null;const le=de/100,{x:Ee,y:Pe,r:Fe,w:Ke,h:ct}=sdkStore.getHotBound(ae.key),{deviceOrientation:vt,deviceW:Ft,deviceH:pn}=ge,bn=vt==="landscape",to=bn?pn:Ft,Po=bn?Ft:pn,fo={width:Math.min(to*le,Ke*le),transform:"translate("+(Ee-Ke*.5)*le+"px,"+(Pe-ct*.5+Po)*le+"px) rotate("+Fe+"deg)",opacity:(U=ae.hotAttr)!=null&&U.isVisible?1:0},Ho={height:Math.min(Po*le,ct*le),transform:"translate("+(Ee-Ke*.5+to)*le+"px,"+(Pe-ct*.5)*le+"px) rotate("+Fe+"deg)",opacity:(H=ae.hotAttr)!=null&&H.isVisible?1:0};return(0,Ce.jsxs)(Ce.Fragment,{children:[ct>Po&&(0,Ce.jsx)("div",{className:"first-page-divider",style:fo},ae.key+"-h"),Ke>to&&(0,Ce.jsx)("div",{className:"first-page-divider",style:Ho},ae.key+"-v")]})});var Ts=i(57479),Pn=i(75810);class an extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"setInputRef",H=>this.$input=H),(0,ve.A)(this,"handleInputChanged",H=>{this.setState({title:H.target.value})}),(0,ve.A)(this,"handleInputConfirmed",H=>{const{hotItem:ae,dispatch:de}=this.props;if(H.trim()===""||H.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}),this.setState({title:ae.hotAttr.name,isEditingTitle:!1});return}this.setState({isEditingTitle:!1}),de({type:"entry:widget:change",payload:{flatChgList:[{key:ae.key,hotAttr:{name:H}}],shouldReBuildTree:!0}})}),(0,ve.A)(this,"handleInputKeyDown",H=>{(H.key===Ts._.Enter||H.key===Ts._.Escape)&&(H.preventDefault(),this.handleInputConfirmed(H.target.value))}),(0,ve.A)(this,"handleInputFocus",H=>{H.target.select()}),(0,ve.A)(this,"handleInputBlur",H=>{this.handleInputConfirmed(H.target.value)}),(0,ve.A)(this,"handleTitleDblClicked",()=>{const{onlyView:H}=this.props;H||this.setState({isEditingTitle:!0},()=>{var ae;return(ae=this.$input)==null?void 0:ae.focus()})}),this.state={isEditingTitle:!1,title:U.hotItem.hotAttr.name},this.$input=null}static getDerivedStateFromProps(U,H){let{title:ae,isEditingTitle:de}=H;return U.hotItem.hotAttr.name!==ae&&!de?{title:U.hotItem.hotAttr.name}:null}render(){const{hotItem:U,scale:H,isTitleActive:ae,screenBgSolidColor:de}=this.props,ge=de.toString(16).padStart(8,"0"),le=(0,Pn.EM)(ge,"E5E5E5"),Ee=(0,Pn.bJ)(le,"FFFFFF"),Pe=(0,Pn.bJ)(le,"000000"),Fe=Ee<Pe,Ke=U.hotAttr.asOverlay,{key:ct}=U;if(!sdkStore.isActiveKey(ct))return null;const{isEditingTitle:vt,title:Ft}=this.state,pn=H/100,{x:bn,y:to,r:Po,w:fo,h:Ho}=sdkStore.getHotBound(ct),Ko={maxWidth:(fo-20)*pn,transform:"translate("+(bn-fo*.5)*pn+"px,"+((to-Ho*.5)*pn-22)+"px) rotate("+Po+"deg)"};return(0,Ce.jsxs)(ms,{className:dn()("canvas_title_"+ct,"canvas-title",{"is-editing-title":vt,active:ae,"is-black":Fe,"as-overlay":Ke}),style:Ko,onDoubleClick:this.handleTitleDblClicked,children:[Ke&&(0,Ce.jsx)("span",{className:"overlay-icon",children:(0,Ce.jsx)(ps.C,{name:"left_panel/overlay/new"})}),(0,Ce.jsx)("form",{children:(0,Ce.jsx)("input",{ref:this.setInputRef,value:Ft,onChange:this.handleInputChanged,onKeyDown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur})}),(0,Ce.jsx)("span",{children:Ft})]})}}const _o=$=>{const{onlyView:U}=$,H=(0,k.d4)(l.Ur),ae=(0,k.d4)(Y.O4),de=(0,k.d4)(l.X_),ge=(0,f.t6)(ae,H),le=(0,k.d4)(V.UV),Ee=(0,k.d4)(V.RX),Pe=(0,k.d4)(br.p$),Fe=(0,a.useMemo)(()=>Ee?le.getRenderableSubHotItems(Ee).filter(pn=>pn.hotAttr.type===m.x.Canvas):[],[le,Ee]),Ke=(0,k.d4)(D.jI),ct=(0,k.d4)(D.bt),vt=(0,k.d4)(D.PR),Ft=(0,k.wA)();return Ee?(0,Ce.jsxs)("div",{className:"canvas-operation-wrap",children:[(0,Ce.jsx)("div",{className:"canvas-title",children:Fe.map(pn=>{const bn=Pe.includes(pn.key);return pn.hotAttr.isVisible?(0,Ce.jsx)(an,{hotItem:pn,scale:de,onlyView:U,dispatch:Ft,isTitleActive:bn,screenBgSolidColor:ge},"title"+pn.key):null})}),(Ke||ct)&&vt&&!U&&(0,Ce.jsx)("div",{className:"basket-actions-container",children:Fe.map((pn,bn)=>(0,Ce.jsxs)(a.Fragment,{children:[(0,Ce.jsx)(El,{className:bn===0?yi.c.GUIDE_BASKET_QUICK_COPY_CANVAS:"",hotItem:pn,scale:de,dispatch:Ft,canDel:Fe.length>1,basket:vt}),(0,Ce.jsx)(oi,{hotItem:pn,scale:de,basket:vt})]},pn.key))}),!U&&!Ke&&!ct&&H.isShowDeviceGuide&&H.device!=="none"&&(0,Ce.jsx)("div",{className:"canvas-divider",children:Fe.map(pn=>!pn.hotAttr.asOverlay&&(0,Ce.jsx)(yc,{hotItem:pn,currentScreen:H,scale:de},"divider"+pn.key))})]}):null};var Da=i(19396),pr=i.n(Da),Lr=i(547);const Sr=mn.Ay.div.withConfig({displayName:"styles__StyledRange",componentId:"sc-1k7dwzc-0"})(["z-index:1;position:absolute;pointer-events:none;background:",";border:1px solid ",";"],$=>$.theme.color_grid,$=>$.theme.color_proto);class Bi extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"startWithShift",!1),(0,ve.A)(this,"originalSelection",[]),(0,ve.A)(this,"isRangeSelectMindNode",!1),(0,ve.A)(this,"handleScrollContainer",(U,H)=>{const{canvasOffset:{x:ae,y:de},dispatch:ge}=this.props,le={x:ae+U,y:de+H};ge({type:"entry:set:canvas:offset",payload:{offset:le}})}),(0,ve.A)(this,"handleFirstDrag",U=>{this.startWithShift=U.shiftKey;const{isFromLockWidget:H,selection:ae,editMindKey:de,selectedMindNodeKeys:ge,dispatch:le}=this.props;this.isRangeSelectMindNode=de&&ae.includes(de),this.originalSelection=this.isRangeSelectMindNode?ge:ae,H&&!this.isRangeSelectMindNode&&le({type:"entry:clear:selection"})}),(0,ve.A)(this,"handleDrag",pr()(U=>{this.props.dispatch({type:"selection:update:state",payload:{selectionUndone:!0}}),this.dispatchSelectItems({mouseInfo:U})},16,{trailing:!1})),(0,ve.A)(this,"handleRelease",U=>{let{x1:H,y1:ae,x2:de,y2:ge}=U;const{dispatch:le}=this.props;le({type:"end:range:select"}),le({type:"selection:update:state",payload:{selectionUndone:!1}}),!(Math.abs(H-de)<=4&&Math.abs(ae-ge)<=4)&&(le({type:"entry:update:select:items:links"}),this.startWithShift=!1)}),(0,ve.A)(this,"dispatchSelectItems",U=>{let{mouseInfo:{x1:H,y1:ae,x2:de,y2:ge}}=U;const{scale:le,dispatch:Ee}=this.props,Pe=(0,Lr.vI)({startX:H,startY:ae,endX:de,endY:ge},le),Fe=(0,Lr.rn)(Pe);if(this.isRangeSelectMindNode){setTimeout(()=>Ee({type:"entry:mind:mindNode:by:rect",payload:{rect:Fe,originalSelection:this.startWithShift?this.originalSelection:[]}}));return}setTimeout(()=>Ee({type:"entry:select:items:by:rect",payload:{rect:Fe,originalSelection:this.startWithShift?this.originalSelection:[]}}))})}render(){const{isActive:U,startX:H,startY:ae,viewportRect:de,canvasOffset:ge,scale:le,selection:Ee}=this.props;return U?(0,Ce.jsx)(cs,{startX:H,startY:ae,canvasOffset:ge,viewportRect:de,scale:le,selection:Ee,onScrollContainer:this.handleScrollContainer,onFirstDrag:this.handleFirstDrag,onDrag:this.handleDrag,onRelease:this.handleRelease}):null}}class cs extends a.PureComponent{constructor(U){super(U);const{startX:H,startY:ae,scale:de,canvasOffset:ge,viewportRect:le}=U;this.startWorldPos={x:(H-window.innerWidth/2-ge.x)/(de/100),y:(ae-le.top-le.height/2-ge.y)/(de/100)},this.state={pointRangeStart:{x:H,y:ae-le.top},pointRangeEnd:{x:H,y:ae-le.top},startWorldPos:{x:(H-window.innerWidth/2-ge.x)/(de/100),y:(ae-le.top-le.height/2-ge.y)/(de/100)},startScale:de,startOffset:ge}}static getDerivedStateFromProps(U,H){const{canvasOffset:ae,scale:de,viewportRect:ge,onDrag:le}=U,{startWorldPos:Ee,startOffset:Pe,startScale:Fe,pointRangeEnd:Ke}=H;if(Pe.x!==ae.x||Pe.y!==ae.y||Fe!==de){const ct={x:Ee.x*de/100+ae.x+window.innerWidth/2,y:Ee.y*de/100+ae.y+ge.height/2};return le({x1:ct.x,y1:ct.y,x2:Ke.x,y2:Ke.y}),{pointRangeStart:ct}}return null}componentDidMount(){const{startX:U,startY:H,viewportRect:ae,onFirstDrag:de,onScrollContainer:ge,onRelease:le}=this.props,{top:Ee,left:Pe,bottom:Fe,right:Ke}=ae;MB.f.isSelecting=!0;let ct=!1;const vt=pn=>{const bn=pn.clientX,to=pn.clientY;let Po=0,fo=0;if(bn<Pe?Po=10:bn>Ke&&(Po=-10),to<0?fo=10:to>Fe-Ee&&(fo=-10),(Po||fo)&&ge(Po,fo),ct===!1&&(ct=Math.abs(bn-U)>5||Math.abs(to-H)>5,ct&&de(pn)),ct){const Ho={pointRangeEnd:{x:bn,y:to-Ee}};this.setState(Ho,()=>{const{pointRangeStart:Ko,pointRangeEnd:ha}=this.state;this.props.onDrag({x1:Ko.x,y1:Ko.y,x2:ha.x,y2:ha.y})})}},Ft=()=>{var pn,bn;document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",Ft),MB.f.isSelecting=!1;const{pointRangeStart:to,pointRangeEnd:Po}=this.state;le({x1:to.x,y1:to.y,x2:Po.x,y2:Po.y}),!(ENV.IS_WONDER_SHARE||this.props.selection.length<2||(pn=MB)!=null&&(pn=pn.commonGuideHelper)!=null&&pn.checkGuideHasShown(yi.c.GUIDE_COPY_AS_PNG))&&((bn=MB)==null||(bn=bn.commonGuideHelper)==null||bn.tryToShowGuide(yi.c.GUIDE_COPY_AS_PNG))};document.addEventListener("mousemove",vt),document.addEventListener("mouseup",Ft)}render(){const{pointRangeStart:U,pointRangeEnd:H}=this.state,ae={top:Math.min(U.y,H.y),left:Math.min(U.x,H.x),width:Math.abs(U.x-H.x),height:Math.abs(U.y-H.y)};return ae.width>4||ae.height>4?(0,Ce.jsx)(Sr,{style:ae}):null}}const Us=(0,oo.Mz)([l.X_,l.ER,l.$S,l.rV,br.p$,yo.WH,yo.ul],($,U,H,ae,de,ge,le)=>{const{isActive:Ee,isFromLockWidget:Pe,startX:Fe,startY:Ke}=ae;return{scale:$,canvasOffset:U,viewportRect:H,isActive:Ee,isFromLockWidget:Pe,startX:Fe,startY:Ke,selection:de,editMindKey:ge,selectedMindNodeKeys:le}}),rl=(0,k.Ng)($=>Us($))(Bi);var zl=i(70093),ds=i.n(zl),Ys=i(26781);const Tc=function($,U,H){return $===void 0&&($=0),U===void 0&&(U=1),H===void 0&&(H=null),Number.parseFloat((1/U*$).toFixed(2))+H},Pd=($,U)=>{const H=[],ae=(0,Lr.H4)($,U);if(ae.width<$.width+U.width)H[0]=null;else{const de=Math.round(ae.width)-(Math.round($.width)+Math.round(U.width)),ge=U.left>$.left;H[0]=ge?de:-de}if(ae.height<$.height+U.height)H[1]=null;else{const de=Math.round(ae.height)-(Math.round($.height)+Math.round(U.height)),ge=U.top>$.top;H[1]=ge?de:-de}return H},Kc=($,U)=>{if((0,Lr.CU)($,U))return{top:Math.round($.top)-Math.round(U.top),right:Math.round(U.left)+Math.round(U.width)-(Math.round($.left)+Math.round($.width)),bottom:Math.round(U.top)+Math.round(U.height)-(Math.round($.top)+Math.round($.height)),left:Math.round($.left)-Math.round(U.left)};{const H={},ae=Pd($,U);return ae[0]>0?H.right=ae[0]:ae[0]<0&&(H.left=Math.abs(ae[0])),ae[1]>0?H.bottom=ae[1]:ae[1]<0&&(H.top=Math.abs(ae[1])),H}},ui=$=>$*100+"%",Ls=$=>[$.left,$.top,$.left+$.width,$.top+$.height];class zs extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"getDistanceMarksStyle",U=>{const{ratio:H}=this.props;return{width:U.width*H,height:U.height*H,left:U.left*H,top:U.top*H}}),(0,ve.A)(this,"mapDistanceMarks",(U,H)=>{let[ae,de]=U;const{style:ge,renderValue:le}=this.props,{showStartAndEndBoundary:Ee,colorForLines:Pe,colorForText:Fe,backgroundColorForText:Ke,dashed:ct}=ge,vt=this.getMarkStyle(ae,de),Ft=Math.abs(de),pn=Math.round(Tc(Ft));return(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:"distance-line "+ae,style:{...vt.line,[["top","bottom"].includes(ae)?"borderLeftStyle":"borderTopStyle"]:ct?"dashed":"solid",borderColor:Pe}}),le?le({value:pn,style:vt.value,customClassName:"distance-value "+ae}):(0,Ce.jsx)("span",{className:"distance-value "+ae,style:{...vt.value,color:Fe,backgroundColor:Ke},children:pn})]},H+"-"+de)}),(0,ve.A)(this,"getMarkStyle",(U,H)=>{const{baseRect:ae,refRect:de}=this.props,ge={line:{},value:{},endBoundary:{}},le=Ls(ae),Ee=Ls(de),Pe=(0,ba.Pn)(le,Ee),Fe=["right","left"],Ke=["right","bottom"],ct=["top","bottom"],vt=Fe.includes(U)?H/ae.width:H/ae.height,Ft=(de.left-ae.left+de.width/2)/ae.width,pn=(de.top-ae.top+de.height/2)/ae.height,bn=ct.includes(U)?"left":"top";return ge.line={[U]:H<0?0:ui(-vt),[bn]:Pe?ui(Math.abs(bn==="left"?Ft:pn)):"50%",[Fe.includes(U)?"width":"height"]:ui(Math.abs(vt))},ge.endBoundary={[U]:ui(-vt)},ge.value={[Fe.includes(U)?"left":"top"]:Ke.includes(U)?ui(1+vt/2):ui(-vt/2),[bn]:Pe?ui(Math.abs(bn==="left"?Ft:pn)):"50%"},ge})}render(){const{baseRect:U,refRect:H}=this.props,ae=Kc(U,H),de=this.getDistanceMarksStyle(U);return(0,Ce.jsx)("div",{className:"distance-marks",style:de,children:Object.entries(ae).map(this.mapDistanceMarks)})}}const ul=$=>{let{refRect:U,ratio:H,style:{dashed:ae,colorForLines:de}}=$;return(0,Ce.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:U.width*H,height:U.height*H,left:U.left*H,top:U.top*H,border:"1px "+(ae?"dashed":"solid")+" "+de}})};class Oc extends a.Component{constructor(){super(...arguments),(0,ve.A)(this,"getAuxiliaryLinesStyle",U=>{const{ratio:H}=this.props;return{width:U.width*H,height:U.height*H,top:U.top*H,left:U.left*H}}),(0,ve.A)(this,"getAuxiliaryLinesLength",()=>{const U={},{baseRect:H,refRect:ae}=this.props,de=(0,Lr.H4)(H,ae),ge=de.width-ae.width;de.height-(H.height+ae.height)>0&&ge>H.width/2&&(U.horizontal=ge);const Ee=de.height-ae.height;return de.width-(H.width+ae.width)>0&&Ee>H.height/2&&(U.vertical=Ee),U}),(0,ve.A)(this,"getLineStyle",(U,H)=>{const{baseRect:ae,refRect:de,ratio:ge}=this.props,le=ae.left>de.left,Ee=ae.top>de.top,Pe={};if(U){const Fe=U/de.width;Pe.horizontal={[Ee?"bottom":"top"]:0,[le?"right":"left"]:ui(-Fe),width:ui(Fe)}}if(H){const Fe=H/de.height;Pe.vertical={[le?"right":"left"]:0,[Ee?"bottom":"top"]:-Fe*ge,height:Fe*ge}}return Pe})}render(){const{refRect:U,style:H}=this.props,{horizontal:ae,vertical:de}=this.getAuxiliaryLinesLength();if(!ae&&!de)return null;const ge=this.getAuxiliaryLinesStyle(U),le=this.getLineStyle(ae,de);return(0,Ce.jsxs)("div",{className:"smart-auxiliary-lines",style:ge,children:[ae&&(0,Ce.jsx)("div",{className:"line horizontal",style:{...le.horizontal,borderTopStyle:H.dashed?"dashed":"solid",borderTopColor:H.colorForLines}}),de&&(0,Ce.jsx)("div",{className:"line vertical",style:{...le.vertical,borderLeftStyle:H.dashed?"dashed":"solid",borderLeftColor:H.colorForLines}})]})}}const _c=mn.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1q2z63f-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]),Wd={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:ur.fm.color_polyline_hover.value_light,colorForText:ur.fm.color_polyline_hover.value_light},refRectBorder:{dashed:!1,colorForLines:ur.fm.color_polyline_hover.value_light},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:ur.fm.color_polyline_hover.value_light}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:ur.fm.color_polyline_hover.value_light},refRectBorder:{dashed:!0,colorForLines:ur.fm.color_proto.value_light},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:ur.fm.color_proto.value_light}}};class Jd extends a.Component{shouldComponentUpdate(U){return!((0,Lr.Jz)(U.baseRect,this.props.baseRect)&&(0,Lr.Jz)(U.refRect,this.props.refRect)&&U.ratio===this.props.ratio&&U.theme===this.props.theme)}render(){const{baseRect:U,refRect:H,theme:ae,renderValue:de,ratio:ge}=this.props;return(0,Ce.jsxs)(_c,{className:"distance-measurement-container",children:[(0,Ce.jsx)(zs,{baseRect:U,refRect:H,ratio:ge,style:Wd[ae].distanceMarks,renderValue:de}),(0,Ce.jsx)(Oc,{baseRect:U,refRect:H,ratio:ge,style:Wd[ae].auxiliaryLines}),(0,Ce.jsx)(ul,{refRect:H,ratio:ge,style:Wd[ae].refRectBorder})]})}}const Op=$=>{let{enableSelectionDistance:U,hoverTree:H,newSelection:ae,scale:de}=$;if(!U)return null;const ge=H?(0,Uo.Dx)(H):[],le=ae,Ee=ge.map(ct=>ct.key);let Pe,Fe;if(le.length)if(H&&ds()(Ee,le).length===0)le.includes(H.key)||(Pe=(0,Ys.nM)(le),Fe=(0,Ys.nM)(Ee));else{var Ke;const ct=(0,hs.dk)(le),vt=ct?sdkStore.getHotItem(ct):null;if(vt&&((Ke=vt.hotAttr)==null?void 0:Ke.type)==="rResCanvas"){const{x:Ft,y:pn,w:bn,h:to}=vt.hotAttr;Pe=(0,Ys.nM)(le),Fe={top:pn-to/2,left:Ft-bn/2,right:Ft+bn/2,bottom:pn+to/2,width:bn,height:to}}}else if(H){const ct=sdkStore.locUpColdCanvasKey((H==null?void 0:H.key)||"");if(ct&&ct!==(H==null?void 0:H.key)){const{hotAttr:{x:vt,y:Ft,w:pn,h:bn}}=sdkStore.getHotItem(ct);Pe=(0,Ys.nM)(Ee),Fe={top:Ft-bn/2,left:vt-pn/2,right:vt+pn/2,bottom:Ft+bn/2,width:pn,height:bn}}}return(0,Ce.jsx)(ep,{baseRect:Pe,refRect:Fe,scale:de})};class ep extends a.PureComponent{componentDidMount(){var U,H,ae;(U=document.querySelector("#link-design"))==null||U.classList.add("hide"),(H=document.querySelector("#mb-linklist"))==null||H.classList.add("hide"),(ae=document.querySelectorAll(".selection-handler"))==null||ae.forEach(de=>de.classList.add("hide"))}componentWillUnmount(){var U,H,ae;(U=document.querySelector("#link-design"))==null||U.classList.remove("hide"),(H=document.querySelector("#mb-linklist"))==null||H.classList.remove("hide"),(ae=document.querySelectorAll(".selection-handler"))==null||ae.forEach(de=>de.classList.remove("hide"))}render(){const{baseRect:U,refRect:H,scale:ae}=this.props;return U&&H?(0,Ce.jsx)(Jd,{baseRect:U,refRect:H,theme:"design",ratio:ae/100}):null}}const o1=Op,N0=(0,oo.Mz)([l.Ur,D.$c,br.p$,l.X_,l.pO,l.M_,D._b,V.RX],($,U,H,ae,de,ge,le,Ee)=>({rootScreen:$,screen,hoverTree:U,newSelection:H,scale:ae,rootItem:Ee,enableSelectionDistance:!de&&ge&&!le})),Rp=(0,k.Ng)($=>N0($))(o1),a1=mn.Ay.div.withConfig({displayName:"styles__StyledMultiCurosr",componentId:"sc-1i4vckz-0"})(["position:absolute;display:flex;transition:left 0.15s ease-out,top 0.15s ease-out;svg{margin:-2px 0 0 -2px;fill:",";}span{flex:1;overflow:visible;margin-top:18px;background-color:",";color:#fff;font-size:12px;min-height:16px;padding:0 4px;white-space:nowrap;}"],$=>$.$fill,$=>$.$fill),p0=[{color:"#ff3333"},{color:"#23B571"},{color:"#1684FC"},{color:"#FF6161"},{color:"#FAAD14"},{color:"#6C4BD5"},{color:"#39CCBC"},{color:"#F54EDB"},{color:"#FF1D47"},{color:"#FF7100"}],p2=(0,oo.Mz)([l.X_,l.Ur,D.pH,D.rg,D.uu,Y.lU],($,U,H,ae,de,ge)=>({scale:$,currentScreen:U,enableMultiCursor:!(H||ae||de),isShowMultiCursor:ge}));function r1(){const{scale:$,currentScreen:U,enableMultiCursor:H,isShowMultiCursor:ae}=(0,k.d4)(p2),[,de]=(0,a.useState)(0);if((0,a.useEffect)(()=>{if(!ae||!window.cssCur)return;let Ee=0;const Pe=()=>{Ee=requestAnimationFrame(Pe),!(!window.cssCur||!window.cssCur.pollCurChg())&&de(Date.now())};return Pe(),()=>{cancelAnimationFrame(Ee)}},[ae]),!H||!ae||!window.cssCur)return null;const ge=U==null?void 0:U.cid,le=window.cssCur.getCurStat(ge);return(0,Ce.jsx)(Ce.Fragment,{children:le.map(Ee=>{let[Pe,Fe,Ke,ct]=Ee;const vt={left:Fe*$*.01,top:Ke*$*.01},Ft=p0[Pe%10].color;return(0,Ce.jsxs)(a1,{style:vt,$fill:Ft,children:[(0,Ce.jsxs)("svg",{width:"22",height:"22",viewBox:"13 13 22 22",fill:"none",children:[(0,Ce.jsx)("path",{stroke:"#fff",d:"m16.16 15.53-.95-.32.32.95 4.38 13.16.42 1.25.52-1.21 2.58-6.05 5.92-2.46 1.24-.52-1.27-.42-13.16-4.38Z",filter:"url(#a)"}),(0,Ce.jsxs)("filter",{id:"a",width:"30",height:"30",x:"-2",y:"-1",children:[(0,Ce.jsx)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"1"}),(0,Ce.jsx)("feOffset",{dy:"1"}),(0,Ce.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,Ce.jsxs)("feMerge",{children:[(0,Ce.jsx)("feMergeNode",{}),(0,Ce.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})]}),(0,Ce.jsx)("span",{children:ct})]},Pe+"-"+$)})})}const N1=r1;var i1=i(6991),s1=i(20315);const K2=$=>{const{show:U}=$;return U?(0,Ce.jsx)(i1.s,{mode:"design",...$}):null},Bp=(0,oo.Mz)([l.Ur,br.p$,l.X_,S.$7,l.pO,s1.MS,D.jx,V.UV,l.lh,s1.yc],($,U,H,ae,de,ge,le,Ee,Pe,Fe)=>{var Ke;let ct;if(U.length===1)for(const Ft of U){const pn=sdkStore.getHotItem(Ft);pn&&pn.hotAttr.type==="wTear"&&pn.sup!=="@@T"&&(ct=pn)}if(ct===void 0||!ge||!ae||de||(Ke=MB.f)!=null&&Ke.isSelecting)return{show:!1};const vt=le===h.qi.OnlyView;return{show:!0,activeTear:ct,scale:H,isReadonly:vt,widgetStore:Ee,tearOffset:Fe,editingCid:Pe}}),x0=(0,k.Ng)($=>Bp($))(K2);var j0=i(94299),D0=i(95106),od=i(39563),wd=i(70422),u2=i(66195),Sd=i(81973);const Y2=(0,oo.Mz)([br.nE,wd.zX,Sd.Yg,Sd.w_,Sd.Jg,Sd.gX,u2.y,qe.r,D.jx,D.jI,br.U2,Ro.R7.query.getSelectInteractionKeyList],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct)=>{let{isWidgetSetting:vt,isCanvasSetting:Ft}=le,{isEditingCombo:pn}=Ee;try{const to=Pe===h.qi.OnlyView,Po=$[0];if(!Po||$.length>1||(0,ea.OO)(Po.key)||!Po.hotAttr.isVisible||pn&&!Fe||to)return null;const fo=(Ft||vt)&&de===1;let Ho=[];if(fo){const Ko=U&&U.selectionLeftTopInfo.y===U.selectionRightBottomInfo.y?U.selectionLeftTopInfo.y:null,ha=U&&U.selectionLeftTopInfo.x===U.selectionRightBottomInfo.x?U.selectionLeftTopInfo.x:null;Ko!==null&&ha!==null?Ho=!isNaN(Ko)&&!isNaN(ha)?(0,od.SS)(Po.hotAttr)?(0,D0.wI)(sdkStore,Ke,Ko,ha,pn,Fe):(0,D0.je)(sdkStore,Ke,Ko,ha,pn,Fe):[]:Ho=(0,D0.Xr)(sdkStore,Ke,pn,Fe)}else if(ge){var bn;const Ko=H!==null?((bn=sdkStore.getHotItem(Ke))==null||(bn=bn.hotAttr.carousel)==null?void 0:bn.slides[H].linkCids)||"":ae?ae.data.linkCids:"";Ho=Ko?(0,D0.ER)(sdkStore,Ke,Ko,pn,Fe):[]}if(Ho&&Ho.length>0)return Ho.filter(Ko=>Ko.data.interactionType===$r.O2.ScrollTo&&Ko.isUiValid&&ct.includes(Ko.key))}catch(to){return console.error(to),null}}),O0=()=>{const $=(0,k.d4)(Y2),U=(0,k.d4)(l.ER),H=(0,k.d4)(l.X_),ae=(0,a.useRef)(U.x),de=(0,a.useRef)(U.y);return(0,a.useEffect)(()=>{ae.current=U.x,de.current=U.y},[U]),$?$.map((ge,le)=>(0,Ce.jsx)(Up,{interactionScrollToOnSelectedItem:ge,canvasOffset:U,canvasOffsetXRef:ae,canvasOffsetYRef:de,scale:H},le)):null},Up=$=>{let{interactionScrollToOnSelectedItem:U,canvasOffsetXRef:H,canvasOffsetYRef:ae,scale:de,canvasOffset:ge}=$;const le=(0,k.wA)(),[Ee,Pe]=(0,a.useState)(!1),[Fe,Ke]=(0,a.useState)(!1);if((0,k.d4)(fo=>{var Ho,Ko;return(Ho=U.expression)!=null&&Ho.scrollToOffsetX||(Ko=U.expression)!=null&&Ko.scrollToOffsetY?(0,Sd.ue)(fo):null}),!U||!(0,ri.Yy)(U.runtimeNodeTrigger))return null;let ct,vt;try{let fo=U.targetWidgetKey===Bo.rE?U.triggerItemKey:U.targetWidgetKey,Ho=sdkStore.locUpHotCanvasKey(fo)||"";const Ko=sdkStore.locUpHotCanvasKey(U.triggerItemKey)||"";if(Ho!==Ko)return null;fo=(0,ea.OO)(fo)?(0,ea.QL)(fo).pop():fo,ct=fo?sdkStore.getHotAABB(fo):null,Ho=(0,ea.OO)(Ho)?(0,ea.QL)(Ho).pop():Ho,vt=Ho?sdkStore.getHotAABB(Ho):null}catch(fo){return null}const Ft=Math.round((0,j0.qE)((0,ri.SP)(U,"scrollToOffsetX","number"),vt&&ct?vt[0]-ct[0]:-1/0,vt&&ct?vt[2]-ct[0]:1/0)),pn=Math.round((0,j0.qE)((0,ri.SP)(U,"scrollToOffsetY","number"),vt&&ct?vt[1]-ct[1]:-1/0,vt&&ct?vt[3]-ct[1]:1/0));if(!U||!ct||!vt)return null;const bn=de/100,to=fo=>{fo.stopPropagation(),Pe(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Ho=fo.clientX,Ko=ge.x;let ha=Ft;const Aa=F=>{if(F.stopPropagation(),vt===null||ct===null)return;const oe=Math.round((F.clientX-Ho+Ko-H.current)/bn);ha=(0,j0.qE)(Ft+oe,vt[0]-ct[0],vt[2]-ct[0]),le(Ro.R7.command.updateItaKVDirect({runtimeIta:U,attrValueList:[["scrollToOffsetX",ha]]}))},I=()=>{Pe(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",Aa),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",Aa),document.addEventListener("mouseup",I)},Po=fo=>{fo.stopPropagation(),Ke(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Ho=fo.clientY,Ko=ge.y;let ha=pn;const Aa=F=>{if(F.stopPropagation(),vt===null||ct===null)return;const oe=Math.round((F.clientY-Ho+Ko-ae.current)/bn);ha=(0,j0.qE)(pn+oe,vt[1]-ct[1],vt[3]-ct[1]),le(Ro.R7.command.updateItaKVDirect({runtimeIta:U,attrValueList:[["scrollToOffsetY",ha]]}))},I=()=>{Ke(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",Aa),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",Aa),document.addEventListener("mouseup",I)};return(0,Ce.jsxs)(l1,{id:"scroll-to-offset-guidelines",children:[Ee&&(0,Ce.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+(Math.min(ct[0],ct[0]+Ft)+Math.abs(Ft)/2)*bn+"px, "+((ct[1]+ct[3])/2+5)*bn+"px)"},children:Ft}),U.scrollToDir!=="vertical"&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)("div",{className:"guideline vertical handle",onMouseDown:to,style:{height:(vt[3]-vt[1])*bn,transform:"translate("+(ct[0]+Ft)*bn+"px, "+vt[1]*bn+"px)"}}),ct[1]<vt[1]&&(0,Ce.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:to,style:{height:(vt[1]-ct[1])*bn,transform:"translate("+(ct[0]+Ft)*bn+"px, "+ct[1]*bn+"px)"}}),ct[3]>vt[3]&&(0,Ce.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:to,style:{height:(ct[3]-vt[3])*bn,transform:"translate("+(ct[0]+Ft)*bn+"px, "+vt[3]*bn+"px)"}}),(0,Ce.jsx)("div",{className:"guideline horizontal dashed",style:{width:Math.abs(Ft)*bn,transform:"translate("+Math.min(ct[0],ct[0]+Ft)*bn+"px, "+(ct[1]+ct[3])/2*bn+"px)"}})]}),Fe&&(0,Ce.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+((ct[0]+ct[2])/2+5)*bn+"px, "+(Math.min(ct[1],ct[1]+pn)+Math.abs(pn)/2)*bn+"px)"},children:pn}),U.scrollToDir!=="horizontal"&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)("div",{className:"guideline horizontal handle",onMouseDown:Po,style:{width:(vt[2]-vt[0])*bn,transform:"translate("+vt[0]*bn+"px, "+(ct[1]+pn)*bn+"px)"}}),ct[0]<vt[0]&&(0,Ce.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:Po,style:{width:(vt[0]-ct[0])*bn,transform:"translate("+ct[0]*bn+"px, "+(ct[1]+pn)*bn+"px)"}}),ct[2]>vt[2]&&(0,Ce.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:Po,style:{width:(ct[2]-vt[2])*bn,transform:"translate("+vt[2]*bn+"px, "+(ct[1]+pn)*bn+"px)"}}),(0,Ce.jsx)("div",{className:"guideline vertical dashed",style:{height:Math.abs(pn)*bn,transform:"translate("+(ct[0]+ct[2])/2*bn+"px, "+Math.min(ct[1],ct[1]+pn)*bn+"px)"}})]})]})},l1=mn.Ay.div.withConfig({displayName:"InteractionScrollToGuidelines__StyledScrollToOffsetGuidelines",componentId:"sc-1mkxz07-0"})(["pointer-events:none;.guideline{position:absolute;&.horizontal{height:1px;z-index:65535;background-color:#5CDDA1;&.dashed{background-color:transparent;border-top:1px dashed #5CDDA1;&:hover{background-color:transparent;}}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;width:inherit;height:8px;position:absolute;top:-4px;}}}&.vertical{border-right:1px solid #5CDDA1;z-index:65535;&.dashed{border-right:1px dashed #5CDDA1;}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;height:inherit;width:8px;position:absolute;left:-4px;}}}}.scroll-to-offset{position:absolute;color:#5CDDA1;}"],Rt.M.rowResize,Rt.M.colloumResize);var Tl=i(75006),il=i(92598),Fp=i(78409);const X2=(0,oo.Mz)([br.nE,wd.zX,Sd.Yg,Sd.w_,Sd.Jg,Sd.gX,u2.y,qe.r,D.jx,D.jI,br.U2,Ro.R7.query.getSelectInteractionKeyList],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct)=>{let{isWidgetSetting:vt,isCanvasSetting:Ft}=le,{isEditingCombo:pn,isEditingBasket:bn,isEditingMuban:to}=Ee;try{var Po;const Ho=Pe===h.qi.OnlyView,Ko=$[0];if(!Ko||$.length>1||(0,ea.OO)(Ko.key)&&((Po=sdkStore.getHotItem(sdkStore.locUpColdBasketKey(Ko.key)||""))==null?void 0:Po.hotAttr.basket)==="bDanli"||!Ko.hotAttr.isVisible||pn||bn||to||Ho)return null;const ha=(Ft||vt)&&de===1;let Aa=[];if(ha){const I=U&&U.selectionLeftTopInfo.y===U.selectionRightBottomInfo.y?U.selectionLeftTopInfo.y:null,F=U&&U.selectionLeftTopInfo.x===U.selectionRightBottomInfo.x?U.selectionLeftTopInfo.x:null;I!==null&&F!==null?Aa=!isNaN(I)&&!isNaN(F)?(0,od.SS)(Ko.hotAttr)?(0,D0.wI)(sdkStore,Ke,I,F,pn,Fe):(0,D0.je)(sdkStore,Ke,I,F,pn,Fe):[]:Aa=(0,D0.Xr)(sdkStore,Ke,pn,Fe)}else if(ge){var fo;const I=H!==null?((fo=sdkStore.getHotItem(Ke))==null||(fo=fo.hotAttr.carousel)==null?void 0:fo.slides[H].linkCids)||"":ae?ae.data.linkCids:"";Aa=I?(0,D0.ER)(sdkStore,Ke,I,pn,Fe):[]}if(Aa&&Aa.length>0)return Aa.filter(I=>I.data.interactionType===$r.O2.OpenOverlay&&I.data.overlayRelativePos==="manual"&&I.isUiValid&&ct.includes(I.key))}catch(Ho){return console.error(Ho),null}}),tp=()=>{const $=(0,k.d4)(X2),U=(0,k.d4)(Pr.RT),H=(0,k.d4)(br.nE),ae=(0,k.d4)(l.X_),de=(0,k.d4)(Y.PI),ge=(0,k.d4)(Y.k3);if(!$)return null;const le=H[0],Ee=sdkStore.locUpColdCanvasKey((le==null?void 0:le.key)||"");if(!Ee)return null;const Pe=sdkStore.getHotItem(Ee);return!Pe||Pe.hotAttr.asOverlay?null:$.map(Fe=>(0,Ce.jsx)(h2,{isAdjustOverlayRelPos:U,selectedItems:H,scale:ae,isDragModeShow:de,isAdsorbentReferenceLine:ge,manuallyPosOpenOverlayInteraction:Fe,rcToSelected:Pe},Fe.key))},h2=$=>{let{isAdjustOverlayRelPos:U,selectedItems:H,scale:ae,isDragModeShow:de,isAdsorbentReferenceLine:ge,manuallyPosOpenOverlayInteraction:le,rcToSelected:Ee,keyRcToSelected:Pe}=$;const Fe=(0,k.wA)(),Ke=H[0],{data:ct,data:{targetOverlayKey:vt,expression:Ft}}=le;(0,k.d4)(It=>Ft!=null&&Ft.overlayRelativePosX||Ft!=null&&Ft.overlayRelativePosX?(0,Sd.ue)(It):null);const pn=new Tl.A(sdkStore,vt,Tl.A.MODE.snapshot),bn=pn.getRootSnapshot(),[to,Po,fo,Ho]=sdkStore.getHotAABB(Ke.key),{hotAttr:{x:Ko,y:ha,w:Aa,h:I}}=Ee,{hotAttr:{x:F,y:oe,w:be,h:Mt}}=bn,ut=Ko-Aa/2,tn=ha-I/2,Xt=F-be/2,Kn=oe-Mt/2,ao=ut+(0,ri.SP)(ct,"overlayRelativePosX","number"),v=tn+(0,ri.SP)(ct,"overlayRelativePosY","number"),K=It=>{It.stopPropagation(),Fe(h.GO.hoverItem("")),Fe({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!0}}),sdkStore.combineMergeMark("update-interaction-overlay-rel-pos-xy");const un=It.clientX,xn=It.clientY;let gn=null;(de||ge)&&(gn=(0,q.ay)({movableItems:[],createSnapper:de?M.WY:q.xb,viewport:{scale:ae/100}}));const wo=Co=>{Co.stopPropagation();const Eo=(Co.clientX-un)/(ae/100),go=(Co.clientY-xn)/(ae/100),xo=Math.round(ao+Eo),jo=Math.round(v+go),{alignment:pa,left:na,top:Ma}=typeof gn=="function"?gn({_rect:{width:be,height:Mt,left:xo,top:jo,right:xo+be,bottom:jo+Mt},sup:Pe}):{alignment:{},left:xo,top:jo},Ka=na-ut,Fa=Ma-tn;Fe({type:"set:alignment",payload:{alignment:pa}}),Fe(Ro.R7.command.updateItaKVDirect({runtimeIta:le,attrValueList:[["overlayRelativePosX",Ka],["overlayRelativePosY",Fa]]}))},vo=()=>{Fe({type:"set:alignment",payload:{alignment:{}}}),Fe({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!1}}),sdkStore.combineMerge("update-interaction-overlay-rel-pos-xy"),document.removeEventListener("mousemove",wo),document.removeEventListener("mouseup",vo)};document.addEventListener("mousemove",wo),document.addEventListener("mouseup",vo)},te={transform:"translate("+(ao-Xt)+"px, "+(v-Kn)+"px)"},me={transform:"translate("+ao+"px, "+v+"px)",width:be,height:Mt},$e={transform:"translate("+(Ko-Aa/2)+"px, "+(ha-I/2)+"px)",width:Aa,height:I},nt={position:"absolute",top:-2,left:-2,width:be,height:Mt},yt={transform:"scale("+ae/100+")"},dt={transform:"translate(-50%, -50%) scale("+100/ae+")"};return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsxs)(Vp,{id:"overlay-rel-pos-ctrl",style:yt,children:[(0,Ce.jsxs)("div",{className:"virtual-overlay-mask",style:me,onMouseDown:K,children:[(0,Ce.jsxs)("svg",{className:"virtual-overlay-mask-diagonal-line",xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"none",style:nt,children:[(0,Ce.jsx)("line",{x1:"0",y1:"0",x2:be,y2:Mt}),(0,Ce.jsx)("line",{x1:"0",y1:Mt,x2:be,y2:"0"})]}),(0,Ce.jsx)("div",{className:"virtual-overlay-pos-handle",style:dt,children:(0,Ce.jsx)(ps.C,{name:"art_board/move_handle"})})]}),(0,Ce.jsx)("div",{className:dn()("canvas-to-trigger-indicator",{"is-adjust-overlay-rel-pos":U}),style:$e}),(0,Ce.jsx)("div",{className:"virtual-overlay",style:te,children:(0,Ce.jsx)(Fp.A,{sdkStore:pn,children:(0,Ce.jsx)(il.o,{hotItem:bn,mode:"snapshot"})})})]}),U&&(0,Ce.jsx)(Jd,{theme:"design",baseRect:{top:v,left:ao,right:ao+be,bottom:v+Mt,width:be,height:Mt},refRect:{top:Po,left:to,right:fo,bottom:Ho,width:fo-to,height:Ho-Po},ratio:ae/100})]})},Vp=mn.Ay.div.withConfig({displayName:"InteractionOverlayRelPosCtrl__StyledInteractionOverlayRelPosCtrl",componentId:"sc-mi90gv-0"})(["position:absolute;z-index:10000;&:hover{.virtual-overlay-mask{.virtual-overlay-pos-handle{background-color:",";color:#fff;}}.virtual-overlay{opacity:1;}}&:active{.virtual-overlay-mask{opacity:0;}.virtual-overlay{opacity:1;}}.virtual-overlay-mask{position:absolute;top:0;left:0;border:2px solid ",";z-index:3;.virtual-overlay-mask-diagonal-line{color:",";line{stroke:currentColor;stroke-width:2;}}.virtual-overlay-pos-handle{position:absolute;display:flex;justify-content:center;align-items:center;top:50%;left:50%;width:20px;height:20px;background-color:#fff;border-radius:50%;z-index:2;border:2px solid ",";color:",";svg{width:12px;height:12px;}}}.canvas-to-trigger-indicator{position:absolute;pointer-events:none;border:2px dashed ",";z-index:2;&.is-adjust-overlay-rel-pos{border:1px solid ",";}}.virtual-overlay{position:absolute;opacity:0.3;z-index:1;.widget-idendity-key{*{pointer-events:none !important;}}}"],$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_polyline_hover),np=()=>(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Yr,{}),(0,Ce.jsx)(O0,{}),(0,Ce.jsx)(tp,{})]}),ad=()=>{var $;const U=(0,k.d4)(Ga),{isFocusStickyOffset:H,selectedItems:ae,editingBasketHotItem:de,scale:ge}=U;if(ae.length===0||!(H&&ae.length===1))return null;let le;const Ee=ge/100,{x:Pe,w:Fe,h:Ke}=sdkStore.getHotBound(ae[0].key);if((0,ea.OO)(ae[0].key)){const vt=sdkStore.locUpBasketKey(ae[0].key),{y:Ft,h:pn}=sdkStore.getHotBound(vt);le=Ft-pn*.5}else{const vt=sdkStore.locUpMainCanvasKey(ae[0].key);if(!vt)return null;const{y:Ft,h:pn}=sdkStore.getHotBound(vt);if(de){const{y:bn}=sdkStore.getHotItem(vt).hotAttr,{y:to}=sdkStore.getSourceHotItem(vt).hotAttr;le=bn-to}else le=Ft-pn*.5}const ct={width:Fe*Ee,height:Ke*Ee,transform:"translate("+(Pe-Fe*.5)*Ee+"px,"+(le+(($=ae[0])==null?void 0:$.hotAttr.stickyOffset))*Ee+"px)",transformOrigin:"center center"};return(0,Ce.jsx)(Pc,{style:ct})},Pc=mn.Ay.div.withConfig({displayName:"StickyVirtualComponent__StyledStickyVirtualComponent",componentId:"sc-ajoela-0"})(["position:absolute;border:1px solid #5CDDA1;"]),Ga=(0,oo.Mz)([D.HD,br.nE,D.PR,l.X_],($,U,H,ae)=>({isFocusStickyOffset:$,selectedItems:U,editingBasketHotItem:H,scale:ae})),Xl=ad;var js=i(3902);const ai=mn.Ay.div.withConfig({displayName:"styles__StyledFindReplaceHighLightArea",componentId:"sc-5u35x1-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),Oa=mn.Ay.div.withConfig({displayName:"styles__StyledHighLight",componentId:"sc-5u35x1-1"})(["position:absolute;transform-origin:0 0;width:100%;height:100%;background:",";border:2px solid #ffd500;&.selected{background:rgba(22,132,252,0.2);border:2px solid #1684fc;}"],$=>$.theme.color_feedback_highlight_bg);class Ql extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleRenderArea",U=>{if(!U||sdkStore.isTrashed(U)||!sdkStore.getHotItem(U))return null;const{scale:H,findSelectWidgetCid:ae}=this.props,{x:de,y:ge,r:le,w:Ee,h:Pe}=sdkStore.getHotBound(U),Fe=H/100,Ke={width:Ee*Fe,height:Pe*Fe,transform:"translate("+(de-Ee*.5)*Fe+"px,"+(ge-Pe*.5)*Fe+"px) rotate("+le+"deg)",transformOrigin:"center center"},ct=ae===U;return(0,Ce.jsx)(Oa,{"data-key":U,className:dn()({selected:ct}),style:Ke})})}render(){const{isShow:U,findReplaceKeys:H,editingCid:ae,editingEditableWidgetCid:de,editingTableKey:ge}=this.props;return U?(0,Ce.jsx)(ai,{children:H.map(le=>ae===le||de===le||ge===le?null:this.handleRenderArea(le))}):null}}const Sl=(0,oo.Mz)([l.X_,js.W,js.gP,l.lh,D.Pm,wd.tS,wd.nh],($,U,H,ae,de,ge,le)=>{let{findReplaceKeys:Ee}=U;if(!(Ee!=null&&Ee.length))return{isShow:!1};const Pe=ge&&(le==null?void 0:le.key);return{isShow:!0,findReplaceKeys:Ee,findSelectWidgetCid:H,scale:$,editingCid:ae,editingEditableWidgetCid:de,editingTableKey:Pe}}),ju=(0,k.Ng)($=>Sl($))(Ql),Du=$=>{const{items:U,ratio:H,isResizing:ae}=$,de=U.filter(Ft=>!Ft.hotAttr.isLock&&!(0,ea.OO)(Ft.key));if(de.length<2)return null;const ge=de.filter(Ft=>Ft.hotAttr.type!==m.x.WTear).map(Ft=>Ft.key);if(ge.length===0)return null;const[le,Ee,Pe,Fe]=sdkStore.getHotKeyListAABB(ge),Ke=Pe-le,ct=Fe-Ee,vt={width:Ke*H,height:ct*H,transform:"translate("+le*H+"px, "+Ee*H+"px)",...ae&&{borderColor:"transparent"}};return(0,Ce.jsx)("div",{className:"items-total-border",style:vt})},Q2=(0,a.memo)(Du);var qd=i(83199),c1=i(18390),Hd=i(64580),$d=i(94590),Ad=i(93157);class vc extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleUnlock",U=>{U.stopPropagation();const{onlyView:H,dispatch:ae}=this.props;!H&&ae({type:"entry:toggle:lock"})}),(0,ve.A)(this,"stopPropagation",U=>U.stopPropagation()),(0,ve.A)(this,"handlePreview",(U,H)=>{let{isDynamicWidget:ae}=H;U.stopPropagation(),U.preventDefault();const{onlyView:de,widget:ge,keyToAccessIntAct:le,dispatch:Ee}=this.props,{key:Pe,hotAttr:Fe}=ge,{refRBPageKey:Ke,refContentKey:ct}=Fe;Ee({type:"entry:preview:panel",payload:{activePageKey:Ke,activeCanvasKey:(0,ea.j_)([le,ct]),basketKey:le}}),de?(0,Hd.A)({operation_type:ae?Hd.D.BasketPreview:Hd.D.MubanPreview}):(0,$d.kX)({operation_type:ae?$d.mV.BasketPreview:$d.mV.MubanPreview}),de?(0,Ad.bO)({currentProject:this.props.rootProject,source:ae?Hd.D.ReadOnlyBasketPreview:Hd.D.ReadOnlyMubanPreview,preview_type:"\u603B\u89C8\u6A21\u5F0F"}):(0,Ad.bO)({currentProject:this.props.rootProject,source:ae?$d.mV.EditBasketPreview:$d.mV.EditMubanPreview,preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,ve.A)(this,"handlePreviewCode",()=>{const{widget:{sup:U,key:H},dispatch:ae,onlyView:de}=this.props;ae({type:"entry:preview:widget",payload:{activeWidgetKey:H,activePageKey:U}}),(0,Ad.bO)({currentProject:this.props.rootProject,source:de?Hd.D.ReadOnlyAIComponentPreview:$d.mV.EditAIComponentPreview,preview_type:de?"\u603B\u89C8\u6A21\u5F0F":"\u6F14\u793A\u6A21\u5F0F"})}),(0,ve.A)(this,"handleEditChart",async U=>{U.stopPropagation(),U.preventDefault();const{widget:H,dispatch:ae}=this.props;H.hotAttr.isLock||ae({type:"entry:chart:in:edit",payload:{widget:H,trackType:"\u5355\u51FB\u63D0\u793A"}})}),(0,ve.A)(this,"handlePreviewCanvas",U=>{if(U.stopPropagation(),U.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;const{widget:{sup:H,key:ae},rootProject:de,onlyView:ge,dispatch:le}=this.props;le({type:"entry:preview:canvas",payload:{activePageKey:H,activeCanvasKey:ae}}),(0,Ad.bO)({currentProject:de,source:ge?"\u603B\u89C8\u6A21\u5F0F-\u9875\u9762\u6F14\u793A":"\u7F16\u8F91\u533A-\u9875\u9762\u6F14\u793A",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,ve.A)(this,"handleEditGraph",()=>this.props.dispatch({type:"entry:widget:graph:edit",payload:{action:"update-widget"}}))}render(){const{ratio:U,widget:H,dashedBorder:ae,editingEditableWidgetCid:de,editingBasketKey:ge,isCommunityPreview:le,isVersionPreview:Ee,editingBasketRefPage:Pe,isMultiSelect:Fe,editMindKey:Ke,onlyView:ct,editingAIComponentKey:vt,isShowAIComponentPreview:Ft,needWillChange:pn,isSelectItemsInMuban:bn}=this.props,{key:to,hotAttr:{type:Po,isLock:fo,basket:Ho,chartConfig:Ko,asOverlay:ha}}=H,Aa=Po===m.x.WBasket&&Ho==="bDanli",I=Po===m.x.WCode,F=Po===m.x.WBasket&&Ho==="bMuban",oe=Po===m.x.WTear,be=to===de,Mt=Po===m.x.WChart&&![c1.N.progress_chart,c1.N.gauge_chart].includes(Ko.chartType),ut=to===Ke,tn=Po===m.x.WGraph,{x:Xt,y:Kn,r:ao,w:v,h:K}=sdkStore.getHotBound(to),te=oe?"translate("+(Xt*U-v*.5)+"px,"+(Kn*U-K*.5)+"px)":"translate("+(Xt-v*.5)*U+"px,"+(Kn-K*.5)*U+"px) rotate("+ao+"deg)",me=oe?v:v*U,$e=oe?K:K*U,nt={borderStyle:oe?"":ae?"dashed":"solid",width:me,height:$e,transform:te,transformOrigin:"center center"};return pn&&(nt.willChange="transform"),(0,Ce.jsxs)("div",{className:dn()("item-select-border",{"is-locked":fo,"is-dy-widget":Aa,"is-code":I,"is-master":F,"is-editable-widget":be,"is-tear":oe,"is-shadow-key":(0,ea.OO)(to),"is-edit-mind":ut,"is-edit-code":!!vt}),style:nt,children:[fo&&!oe&&(0,Ce.jsxs)(a.Fragment,{children:[(0,Ce.jsx)("span",{}),(0,Ce.jsx)("span",{}),(0,Ce.jsx)("span",{}),(0,Ce.jsx)(ps.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock})]}),fo&&oe&&(0,Ce.jsx)(ps.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock}),(Aa||F)&&!fo&&!Ee&&(0,Ce.jsx)("div",{className:"action preview",onMouseDown:yt=>this.handlePreview(yt,{isDynamicWidget:Aa}),children:(0,Ce.jsx)(ps.C,{name:"design/panel/mark"})}),Po===m.x.Canvas&&!ha&&!ge&&!le&&!Ee&&!Pe&&!Fe&&(0,Ce.jsx)("div",{className:"action preview canvas",onMouseDown:this.handlePreviewCanvas,children:(0,Ce.jsx)(ps.C,{name:"design/panel/mark"})}),I&&!fo&&Ft&&!Ee&&(0,Ce.jsx)("div",{className:"action preview code",onMouseDown:this.handlePreviewCode,children:(0,Ce.jsx)(ps.C,{name:"design/panel/mark"})}),Mt&&!fo&&!ct&&(0,Ce.jsx)("div",{className:"action preview editChartAction",onMouseDown:this.handleEditChart,children:(0,Ce.jsx)(ps.C,{name:"setting_panel/chart/edit"})}),tn&&!fo&&!ct&&!bn&&(0,Ce.jsx)(qd.A,{content:"\u7F16\u8F91",direction:"down",children:(0,Ce.jsx)("div",{className:"action edit-graph-action",onMouseDown:this.handleEditGraph,children:(0,Ce.jsx)(ps.C,{name:"design/graph/edit",size:32})})})]})}}var Pl=i(91174),Md=i(38047),Ld=i(16958),Jl=i(97605);const d1=($,U)=>{const{hotAttr:H}=sdkStore.getHotItem($),{x:ae,y:de,r:ge}=sdkStore.getRelocateLocalXYR($,U),le=sdkStore.getLocalBound($),Ee=ae-(H.x-le.x),Pe=de-(H.y-le.y),Fe=ge,Ke=le.w,ct=le.h,vt=(0,Pl.e)({x:Ee-Ke/2,y:Pe-ct/2},(0,Md.EQ)(Fe));return{w:Ke,h:ct,...vt,r:Fe,rx:Ee,ry:Pe}},Wl=($,U)=>{const H='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">\n <defs>\n <mask id="mask">\n <rect width="'+($[2]-$[0])+'" height="'+($[3]-$[1])+'" fill="white"></rect>\n <g transform="translate('+(U[0]-$[0])+" "+(U[1]-$[1])+')">\n <rect width="'+(U[2]-U[0])+'" height="'+(U[3]-U[1])+'" fill="black"></rect>\n </g>\n </mask>\n </defs>\n <rect width="'+($[2]-$[0])+'" height="'+($[3]-$[1])+'" fill="white" mask="url(#mask)"></rect>\n </svg>';return"url('data:image/svg+xml;charset=utf8,"+encodeURIComponent(H)+"')"},Ll=new Set(["rResCanvas","wWrap"]),p1=(0,a.memo)($=>{let{widget:U,multiple:H,isDraggingItem:ae}=$;const de=(0,a.useRef)(null),{key:ge,hotAttr:{type:le}}=U,Ee=sdkStore.locUpHotCanvasKey(ge),Pe='#canvas .widget[data-cid="'+ge+'"]';(0,a.useEffect)(()=>{const Aa=document.querySelector(Pe);let I;if(Aa&&de.current){const F=()=>{const oe=Aa.cloneNode(!0);oe.style.transform="none",de.current&&(de.current.firstElementChild?de.current.replaceChild(oe,de.current.firstElementChild):de.current.appendChild(oe))};I=new MutationObserver(F),I.observe(Aa,{attributes:!0,childList:!0,subtree:!0}),F()}return()=>{var F;(F=I)==null||F.disconnect()}},[]);const Fe=sdkStore.getHotAABB(ge),Ke=sdkStore.getHotAABB(Ee),ct=(0,a.useMemo)(()=>[Math.min(Ke[0],Fe[0]),Math.min(Ke[1],Fe[1]),Math.max(Ke[2],Fe[2]),Math.max(Ke[3],Fe[3])],[Ke,Fe]),vt=(ae?H:!0)&&(0,ba.cj)(Fe,Ke),Ft=(0,a.useMemo)(()=>vt?Wl(ct,Ke):void 0,[vt,ct.join(" "),Ke]),{w:pn,h:bn}=sdkStore.getHotBound(Ee),{w:to,h:Po}=sdkStore.getHotBound(ge),fo={width:ct[2]-ct[0],height:ct[3]-ct[1],transform:"translate("+ct[0]+"px, "+ct[1]+"px)",maskImage:Ft},Ho={width:pn,height:bn,transform:"translate("+(Ke[0]-ct[0])+"px, "+(Ke[1]-ct[1])+"px)"},Ko={};if(le==="wWrap"){const{x:Aa,y:I,r:F}=sdkStore.getRelocateLocalXYR(ge,Ee);Ko.transform="translate("+Aa+"px, "+I+"px) rotate("+F+"deg)",Ko.transformOrigin="0 0"}else{const{x:Aa,y:I,r:F,rx:oe,ry:be}=d1(ge,Ee);Ko.transform="translate("+Aa+"px, "+I+"px) rotate("+F+"deg)",Ko.transformOrigin=oe+"px "+be+"px"}const ha={width:to,height:Po,...Ko};return(0,Ce.jsx)(ap,{className:"oob-indicator",style:fo,children:(0,Ce.jsx)("div",{className:"oob-canvas",style:Ho,children:(0,Ce.jsx)("div",{className:"oob-wrap",style:ha,ref:de})})})}),op=$=>{var U;const{widget:H}=$,ae=(0,k.d4)(V.UV),{key:de,sup:ge,hotAttr:{type:le}}=H,Ee=le!=="rResCanvas"?sdkStore.locUpHotCanvasKey(de):null,Pe=le===m.x.WCode,Fe=ae.getHotItem(ge);if(!Fe||!Ll.has(Fe.hotAttr.type)||Pe||!Ee||!((U=ae.getHotItem(Ee))!=null&&U.hotAttr.isClipContent))return null;const ct=sdkStore.getHotAABB(de),vt=sdkStore.getHotAABB(Ee);return(0,ba.Pn)(vt,ct)?null:(0,Ce.jsx)(p1,{...$})},ap=mn.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicator",componentId:"sc-6j36ve-0"})(["position:absolute;will-change:transform;.oob-canvas{position:absolute;overflow:visible;}.oob-wrap{position:absolute;z-index:1;opacity:0.5;*{pointer-events:none !important;}}.wMind{.select-wrap{display:none !important;}}"]),j1=$=>{let{scale:U,selectWidgets:H,isDraggingItem:ae}=$;const de=(0,k.d4)(l.PL),ge=(0,a.useMemo)(()=>{if(!de)return"";const Ee=(0,Jl.Ep)(de.device),Pe=(0,Jl.Qx)();return dn()(Ee,Pe)},[de]),le=H.length>1;return(0,Ce.jsx)(b0,{className:ge,scale:U,children:H.map(Ee=>(0,Ce.jsx)(op,{widget:Ee,multiple:le,isDraggingItem:ae},Ee.key))})},b0=mn.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicatorWrapper",componentId:"sc-6j36ve-1"})(["position:absolute;transform:scale(",");"," ",""],$=>$.scale/100,Ld.H0,Ld.PE),Gd=mn.Ay.div.withConfig({displayName:"styles__StyledSelectionBorder",componentId:"sc-pyopc3-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;&.shield-corner-events{.resizable,.square,.action{pointer-events:none !important;}}.items-total-border,.item-hover-border,.item-echo-layer,.item-select-border{position:absolute;transform-origin:0 0;&.is-screen{top:0;left:0;width:100%;height:100%;}&.is-locked{border-color:#7d8694;}}.items-total-border{border:1px solid ",";}.item-hover-border{border:2px solid ",";}.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}.item-select-border{position:absolute;border:1px solid ",";&.is-tear{border:0;}&.is-dy-widget:not(.is-locked){border:1px solid ",";.preview .svg-icon .main{fill:",";}}&.is-editable-widget:not(.is-locked){border:1px solid ",";}&.is-master:not(.is-locked){border:1px solid #7146FE;.preview .svg-icon .main{fill:",";}}&.is-shadow-key:not(.is-locked){border:1px solid #7146FE;}&.is-screen{.resizable{position:absolute;width:14px;height:14px;&.can-resizer-x{cursor:e-resize;pointer-events:auto;}&.can-resizer-y{cursor:s-resize;pointer-events:auto;}&.can-resizer-t{cursor:n-resize;pointer-events:auto;}&.can-resizer-l{cursor:w-resize;pointer-events:auto;}&.lt{cursor:nw-resize;pointer-events:auto;}&.lb{cursor:sw-resize;pointer-events:auto;}&.rt{cursor:ne-resize;pointer-events:auto;}&.rb{cursor:se-resize;pointer-events:auto;}&.r{top:50%;right:-7px;margin-top:-7px;}&.b{bottom:-7px;left:50%;margin-left:-7px;}&.l{top:50%;left:-7px;margin-top:-7px;}&.t{top:-7px;left:50%;margin-left:-7px;}&.lt{top:-7px;left:-7px;}&.lb{bottom:-7px;left:-7px;}&.rt{top:-7px;right:-7px;}&.rb{bottom:-7px;right:-7px;}}.square{position:absolute;width:7px;height:7px;background:white;border:1px solid ",";border-radius:50%;&.lt{top:-3px;left:-3px;}&.lb{bottom:-3px;left:-3px;}&.rt{top:-3px;right:-3px;}&.rb{bottom:-3px;right:-3px;}}}&.is-edit-mind,&.is-edit-code{border:1px solid ",";}span{position:absolute;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#7d8694;border:1px solid #fff;border-radius:50%;&:nth-child(1){top:0;left:0;}&:nth-child(2){top:100%;left:0;}&:nth-child(3){top:100%;left:100%;}}.circle-lock{width:18px;height:18px;position:absolute;left:100%;margin-top:-9px;margin-left:-9px;pointer-events:auto;cursor:pointer;circle{fill:#7D8694;}path{fill:#ffffff;}}.preview{display:flex;position:absolute;bottom:calc(100% + 8px);right:0;z-index:101;cursor:pointer;pointer-events:auto;border-radius:4px;transform:scale(0.8);transform-origin:bottom right;transition:transform 0.2s ease-out;color:#fff;div{transform-origin:bottom right;}.svg-icon{width:20px;height:20px;border-radius:4px;}&:hover{transform:scale(1);}}.action.edit-graph-action{width:44px;height:42px;background:",";border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px #0000001A;justify-content:center;display:flex;align-items:center;position:absolute;bottom:calc(100% + 40px);right:50%;margin-right:-22px;z-index:101;cursor:pointer;pointer-events:auto;color:",";.svg-icon{border-radius:6px;&:hover{background:",";}}}.action.canvas,.action.editChartAction,.action.edit-graph-action,.action.code{svg.icon{.main{fill:",";}}}}.echo-line,.hover-line,.is-line-select{position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.is-locked{path{stroke:#7d8694;}}}.echo-line{path{stroke:",";}}.is-line-select{path{stroke:",";stroke-width:1;}}"],$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_comments,$=>$.theme.color_comments,$=>$.theme.color_comments,$=>$.theme.color_master,$=>$.theme.color_proto,$=>$.theme.color_grid,$=>$.theme.color_bg_white,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_btn_primary_normal,$=>$.theme.color_proto,$=>$.theme.color_proto);var Zd=i(95657),qc=i(14084),u1=i(74945);class h1 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"state",{isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null,direction:null,dbClickCount:0,isMove:!1,prevPoint:{x:0,y:0},dataset:{direction:void 0,from:void 0,to:void 0}}),(0,ve.A)(this,"onClick",()=>{const{dbClickCount:U}=this.state;this.setState({dbClickCount:U+1}),setTimeout(()=>{const{dbClickCount:H}=this.state;if(H>1){const{elbowKey:ae,dispatch:de}=this.props;de({type:"entry:elbow:line-adjust",payload:{elbowKey:ae}})}this.setState({dbClickCount:0})},300)}),(0,ve.A)(this,"onMouseDown",U=>{U.preventDefault(),U.stopPropagation();const{direction:H,from:ae,to:de}=U.target.dataset;if(["horizontal","vertical"].includes(H))return this.setState({isMove:!0,dataset:{direction:H,from:ae,to:de}}),sdkStore.combineMergeMark("elbow-rect-drag"),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("mouseup",this.onMouseUp,!1),!1}),(0,ve.A)(this,"onMouseMove",U=>{U.preventDefault(),U.stopPropagation();const{elbowKey:H}=this.props,{direction:ae,from:de,to:ge}=this.state.dataset,{fixedFromIndex:le,fixedToIndex:Ee}=this.state;let Pe,Fe;if(le!==null?(Pe=le,Fe=Ee):(Pe=parseInt(de,10),Fe=parseInt(ge,10)),!["horizontal","vertical"].includes(ae))return;const{elbowKey:Ke,rectList:ct,dispatch:vt}=this.props,{isMove:Ft,prevPoint:pn,isLineAnchorAdding:bn}=this.state;if(Ft&&!(ae==="vertical"&&U.pageY===pn.y)&&!(ae==="horizontal"&&U.pageX===pn.x))return this.setState({prevPoint:{x:U.pageX,y:U.pageY}}),ct.length===1||Pe===0||Fe===ct.length?(bn||this.handleAnchorAdd(Pe,Fe,Ke,ct,ae,U,vt),!1):(vt({type:"entry:elbow:line-segment-move",payload:{event:U,fromIndex:Pe,toIndex:Fe,direction:ae,elbowKey:H}}),!1)}),(0,ve.A)(this,"onMouseUp",()=>{const{elbowKey:U,dispatch:H}=this.props;this.setState({isMove:!1,prevPoint:{x:0,y:0},dataset:{},isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null}),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),sdkStore.combineMerge("elbow-rect-drag"),H({type:"entry:elbow:line-optimize",payload:{elbowKey:U}})}),(0,ve.A)(this,"handleAnchorAdd",Zt()((U,H,ae,de,ge,le,Ee)=>{const Pe=U===0?U:H,Fe=U===0?U+2:U,Ke=U===0?H+2:H;this.setState({isLineAnchorAdding:!0,fixedFromIndex:Fe,fixedToIndex:Ke}),Ee({type:"entry:elbow:line-anchor-add",payload:{length:de.length,index:Pe,direction:ge,event:le,elbowKey:ae}})},300,{leading:!0,trailing:!1}))}componentWillUnmount(){this.setState=()=>!1}render(){const{rectList:U,isLineDragging:H,rectAnchorDraggingIndex:ae,hasLineComment:de}=this.props,ge=de;return(0,Ce.jsx)(ta,{children:U&&U.map((le,Ee)=>(Ee===0||Ee===U.length-1)&&le.length<=20?null:ge&&le.isTextCommentIndex&&typeof le.xList=="object"?(0,Ce.jsx)("span",{children:[0,1].map(Pe=>(0,Ce.jsx)("span",{className:dn()({"line-rect-anchor vertical":le.direction==="vertical","line-rect-anchor horizontal":le.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":le.direction,"data-from":le.from,"data-to":le.to,style:{opacity:H&&ae!==Ee?0:1,width:le.direction==="horizontal"?"8px":"14px",height:le.direction==="horizontal"?"14px":"8px",left:le.xList[Pe],top:le.yList[Pe]}},""+Pe))},le.x+"&"+le.y+"&"+Ee):(0,Ce.jsx)("span",{className:dn()({"line-rect-anchor vertical":le.direction==="vertical","line-rect-anchor horizontal":le.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":le.direction,"data-from":le.from,"data-to":le.to,style:{opacity:H&&ae!==Ee?0:1,width:le.direction==="horizontal"?"8px":"20px",height:le.direction==="horizontal"?"20px":"8px",left:le.x,top:le.y}},le.x+"&"+le.y+"&"+Ee))})}}class J2 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"getComputedInfo",()=>{const{item:{key:U,hotAttr:H},offset:ae,scale:de}=this.props,{elbow:ge,textV0:le}=H,Ee=Ra(U,ge,{offset:ae,scale:de});return{rectList:Sa(Ee),hasLineComment:!!(le&&le.text)}})}render(){const{editingCid:U,item:H,item:{key:ae,hotAttr:de},isDraggingElbowText:ge,scale:le,dispatch:Ee}=this.props,{rectList:Pe,hasLineComment:Fe}=this.getComputedInfo(),Ke=U===ae,ct=de.elbow.elbowType,vt=(ct==="rounded"||ct==="sharp")&&!Ke&&!ge;return(0,Ce.jsxs)(ln,{children:[(0,Ce.jsx)(Ha,{widget:H,scale:le}),(0,Ce.jsx)(dr,{widget:H}),vt&&(0,Ce.jsx)(h1,{elbowKey:ae,rectList:Pe,dispatch:Ee,isLineDragging:!1,hasLineComment:Fe,rectAnchorDraggingIndex:void 0})]})}}const zp=(0,oo.Mz)([l.ER,l.X_,l.lh,u1.CP],($,U,H,ae)=>({offset:$,scale:U/100,editingCid:H,isDraggingElbowText:ae})),D1=(0,k.Ng)($=>zp($))(J2),u0=(0,a.memo)($=>{const{scale:U,selectedWidgets:H,showTotalBorder:ae,onlyView:de}=$,ge=(0,k.d4)(D.lY),le=(0,k.d4)(yo.WH),Ee=(0,k.d4)(Zd.Ag),Pe=Ee==null?void 0:Ee.key,Fe=(0,k.d4)(Zd.G1),Ke=(0,k.d4)(Zd.ul),ct=(0,k.d4)(D.Pm),vt=(0,k.d4)(l.PL),Ft=(0,k.d4)(D.jI),pn=(0,k.d4)(D.bt),bn=(0,k.d4)(D.pH),to=(0,k.d4)(D.YL),Po=(0,k.d4)(br.U2),fo=(0,k.d4)(je.c),Ho=(0,k.d4)(qc.j),Ko=(0,k.d4)(u1.n9),ha=(fo==null?void 0:fo.hotAttr.type)===m.x.WRichText&&fo.hotAttr.richTextV1.sizeType===1,Aa=(0,k.wA)(),I=U/100;return Ko?(0,Ce.jsx)(D1,{item:Ko}):H.map(F=>{const{key:oe,hotAttr:{type:be}}=F;if(ge&&be===m.x.WVector)return null;const Mt=H.length<10;if(be===m.x.WLine||be===m.x.WArrow)return(0,Ce.jsx)(Zn,{isLineSelect:!0,widget:F,ratio:I},oe);if(be===m.x.WElbow)return(0,Ce.jsx)(Ha,{widget:F,scale:I});const{type:ut="common"}=Fe[oe]||{},tn=oe!==Pe&&ut==="common"&&oe!==Ke;return(0,Ce.jsx)(vc,{dispatch:Aa,editingEditableWidgetCid:ct,dashedBorder:ha,editingBasketKey:Ft,editingBasketRefPage:pn,keyToAccessIntAct:Po,isMultiSelect:ae,widget:F,editingAIComponentKey:Pe,isShowAIComponentPreview:tn,rootProject:vt,isCommunityPreview:bn,isVersionPreview:to,onlyView:de,editMindKey:le,ratio:I,needWillChange:Mt,isSelectItemsInMuban:Ho},oe)})}),R0=()=>{var $;const U=(0,k.d4)(po),H=(0,k.d4)(l.X_),ae=(0,k.d4)(D.jx)===h.qi.OnlyView,de=!!(0,k.d4)(l.wq),ge=(0,k.d4)(l.pO),le=(0,k.d4)(br.p$),Ee=(0,k.d4)(D.IL),Pe=(0,k.d4)(br.nE),Fe=(0,k.d4)(D.HY),Ke=(0,a.useMemo)(()=>Pe.filter(Ft=>!(0,Uo.SB)(Ft)),[Pe]),ct=(0,a.useMemo)(()=>Pe.length>1&&Pe.filter(Uo.pT).length>1,[Pe]),vt=!!(Ee&&Fe&&!le.includes(Ee));return U?null:(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsxs)(Gd,{className:dn()("selection-border",{"shield-corner-events":de}),children:[ct&&(0,Ce.jsx)(Q2,{items:Ke,ratio:H/100,isResizing:($=MB)==null||($=$.f)==null?void 0:$.isResizing}),vt&&(0,Ce.jsx)(Qr,{isShow:!0,widget:Fe,scale:H,onlyView:ae}),(0,Ce.jsx)(u0,{selectedWidgets:Ke,showTotalBorder:ct,scale:H,onlyView:ae})]}),Ke.length>0&&(0,Ce.jsx)(j1,{scale:H,selectWidgets:Ke,isDraggingItem:ge})]})};var kd=i(99587),B0=i(59025),Wp=i(73662),O1=i(62280),Hp=i(33421),Yc=i(94986);class q2 extends a.Component{constructor(){super(...arguments),(0,ve.A)(this,"offsetX",0),(0,ve.A)(this,"offsetY",0),(0,ve.A)(this,"controllerOriginalPosition",null),(0,ve.A)(this,"movingControllerIndex",null),(0,ve.A)(this,"state",{points:[]}),(0,ve.A)(this,"getControllerPosition",U=>{const{x:H,y:ae,w:de,h:ge}=this.props.item.hotAttr,{points:le}=this.state,Ee=H-de/2,Pe=ae-ge/2;return(0,Un.NG)(le)?[Ee+de*Math.floor(le[U][0]),Pe+ge*Math.floor(le[U][1])]:[Ee+de*le[U][0],Pe+ge*le[U][1]]}),(0,ve.A)(this,"adjustLineByAngle",(U,H)=>{const ae=(0,Un._H)(H[0]-U[0],H[1]-U[1]),de=45*Math.round(ae/45)%360,ge=(0,Un.R3)(H[0]-U[0],H[1]-U[1])*Math.cos((0,Un.ql)(ae-de)),le=[ge*Math.cos((0,Un.ql)(de)),ge*Math.sin((0,Un.ql)(de))];return[U[0]+le[0],U[1]+le[1]]}),(0,ve.A)(this,"adjustLineByAxis",(U,H)=>{const de=[...H];return Math.abs(H[0]-U[0])<=6?de[0]=U[0]:Math.abs(H[1]-U[1])<=6&&(de[1]=U[1]),de}),(0,ve.A)(this,"getWidgetPositionAndPoints",(U,H)=>{var ae;const de=(ae=this.controllerOriginalPosition)==null?void 0:ae[1-this.movingControllerIndex],ge=H?this.adjustLineByAngle(de,U):this.adjustLineByAxis(de,U),le=[];return le[this.movingControllerIndex]=ge,le[1-this.movingControllerIndex]=de,(0,Un.ne)(...le)}),(0,ve.A)(this,"handleControllerDown",U=>{const{item:H,item:{key:ae},offsetX:de=0,offsetY:ge=0,isDragModeShow:le,isAdsorbentReferenceLine:Ee,ratio:Pe}=this.props;U.stopPropagation(),this.before=(0,cn.Oj)(ae),this.ro=this.before.transform.decompose().ro;const{x:Fe,y:Ke,w:ct,h:vt}=sdkStore.getRelocateLocalBound(ae,sdkStore.locUpHotCanvasKey(ae)||sdkStore.locUpRBPageKey(ae));this.left=Fe-ct/2,this.top=Ke-vt/2,MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),this.offsetX=de,this.offsetY=ge,this.movingControllerIndex=Number(U.target.dataset.pointindex),this.controllerOriginalPosition=[],this.controllerOriginalPosition[this.movingControllerIndex]=this.getControllerPosition(this.movingControllerIndex),this.controllerOriginalPosition[1-this.movingControllerIndex]=this.getControllerPosition(1-this.movingControllerIndex),this.movingControllerOriginPositionOnScreen=[U.clientX,U.clientY],(le||Ee)&&(this.alignUtil=(0,q.ay)({movableItems:[H],createSnapper:le?M.WY:q.xb,viewport:{scale:Pe}})),sdkStore.combineMergeMark("line-resize-drag"),document.addEventListener("mousemove",this.handleControllerMove),document.addEventListener("mouseup",this.handleControllerUp)}),(0,ve.A)(this,"getControllerMoveVector",(U,H)=>{const{ratio:ae,item:de}=this.props,ge=(0,cn.Oj)(de.key).transform.decompose().ro*180/Math.PI,le=[(U-this.movingControllerOriginPositionOnScreen[0])/ae,(H-this.movingControllerOriginPositionOnScreen[1])/ae];return(0,Un.gA)(le,ge)}),(0,ve.A)(this,"handleControllerMove",U=>{const{item:H,isDragModeShow:ae,isAdsorbentReferenceLine:de,dispatch:ge}=this.props,le=this.getControllerMoveVector(U.clientX,U.clientY),Ee=[this.controllerOriginalPosition[this.movingControllerIndex][0]+le[0],this.controllerOriginalPosition[this.movingControllerIndex][1]+le[1]],Pe=U.shiftKey;let{top:Fe,left:Ke,width:ct,height:vt,line:Ft}=this.getWidgetPositionAndPoints(Ee,Pe);if(ae||de){const Po={top:Fe,left:Ke,width:ct,height:vt},fo=this.getDirection(ct,vt,Ft,this.movingControllerIndex),Ho=this.alignUtil({_rect:Po,resizing:(0,Yc.t)(fo)});let Ko,ha,Aa;({top:Fe,left:Ke,width:ct,height:vt,alignment:Ko,distributed:ha,sameSize:Aa}=Ho),MB.action("set:alignment",{alignment:Ko}),MB.action("set:sameSize",{sameSize:Aa}),MB.action("set:distributed",{distributed:ha})}const pn=H.hotAttr,bn=pn.type===m.x.WArrow?{arrow:{...pn.arrow,arrowPointFrom:Ft.linePointFrom,arrowPointTo:Ft.linePointTo}}:{line:Ft};ct!==pn.w&&(bn.refVars={...pn.refVars,w:void 0});const to=[{key:H.key,hotAttr:{...bn,x:Ke+ct*.5,y:Fe+vt*.5,w:ct,h:vt}}];ge({type:"entry:widget:change",payload:{flatChgList:to}})}),(0,ve.A)(this,"getDirection",(U,H,ae,de)=>{if(isNaN(de))return"";let ge;const{linePointFrom:le,linePointTo:Ee}=ae,Pe=[le.x,le.y],Fe=[Ee.x,Ee.y],Ke=(0,Un.W8)(U,H,[Pe,Fe]);return Ke>=0&&Ke<22.5||Ke>=360-22.5&&Ke<360?ge=["l","r"]:Ke>=45-22.5&&Ke<45+22.5?ge=["tl","br"]:Ke>=90-22.5&&Ke<90+22.5?ge=["t","b"]:Ke>=135-22.5&&Ke<135+22.5?ge=["tr","bl"]:Ke>=180-22.5&&Ke<180+22.5?ge=["r","l"]:Ke>=225-22.5&&Ke<225+22.5?ge=["br","tl"]:Ke>=270-22.5&&Ke<270+22.5?ge=["b","t"]:Ke>=315-22.5&&Ke<315+22.5?ge=["bl","tr"]:ge=["l","r"],ge[de]}),(0,ve.A)(this,"handleControllerUp",()=>{const{isDragModeShow:U,isAdsorbentReferenceLine:H}=this.props;document.removeEventListener("mousemove",this.handleControllerMove),document.removeEventListener("mouseup",this.handleControllerUp),MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(U||H)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}})),sdkStore.combineMerge("line-resize-drag")}),(0,ve.A)(this,"getControllerCursor",(U,H,ae)=>{let[de,ge]=ae;const le=(0,Un.W8)(U,H,[de,ge]);return le>=0&&le<22.5||le>=360-22.5&&le<360?["w-resize","e-resize"]:le>=45-22.5&&le<45+22.5?["nw-resize","se-resize"]:le>=90-22.5&&le<90+22.5?["n-resize","s-resize"]:le>=135-22.5&&le<135+22.5?["ne-resize","sw-resize"]:le>=180-22.5&&le<180+22.5?["e-resize","w-resize"]:le>=225-22.5&&le<225+22.5?["se-resize","nw-resize"]:le>=270-22.5&&le<270+22.5?["s-resize","n-resize"]:le>=315-22.5&&le<315+22.5?["sw-resize","ne-resize"]:["default","default"]}),(0,ve.A)(this,"getResizerWrapperStyle",U=>{let{top:H,left:ae,width:de,height:ge,ratio:le,transform:Ee}=U;const{a:Pe,b:Fe,c:Ke,d:ct}=Ee;return{position:"absolute",pointerEvents:"none",top:Math.round(H*le)+"px",left:Math.round(ae*le)+"px",transform:"matrix("+Pe+","+Fe+","+Ke+","+ct+",0,0)"}}),(0,ve.A)(this,"getControllerStyle",(U,H,ae,de,ge)=>{const le={display:"block",position:"absolute",width:"7px",height:"7px",border:"1px solid #298df8",pointerEvents:"auto",background:"#fff",borderRadius:"50%"},Ee={top:Math.round(U[ge][1]*ae*de-3)+"px",left:Math.round(U[ge][0]*H*de-3)+"px"},Pe=this.getControllerCursor(H,ae,U);return{...le,...Ee,cursor:Pe[ge]}})}static getDerivedStateFromProps(U){const{start:H,end:ae}=U;return{points:[H,ae]}}render(){const{item:U,ratio:H}=this.props,{transform:ae,rect:{x:de,y:ge,w:le,h:Ee}}=(0,cn.Oj)(U.key),{x:Pe,y:Fe}=ae.clone().apply({x:de,y:ge}),{points:Ke}=this.state;return(0,Ce.jsxs)("div",{style:this.getResizerWrapperStyle({top:Fe,left:Pe,width:le,height:Ee,ratio:H,transform:ae}),children:[(0,Ce.jsx)("i",{style:this.getControllerStyle(Ke,le,Ee,H,0),"data-pointindex":"0",onMouseDown:this.handleControllerDown}),(0,Ce.jsx)("i",{style:this.getControllerStyle(Ke,le,Ee,H,1),"data-pointindex":"1",onMouseDown:this.handleControllerDown})]})}}var U0=i(20166),h0=i(18630),m1=i(38358),m0=i(9680),Xc=i(5621);const ac={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},xc={t:"n",b:"s",r:"e",l:"w",tr:"ne",tl:"nw",br:"se",bl:"sw"},g2={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},Gp={ne:"tr",nw:"tl",se:"br",sw:"bl"},F0="n,s,e,w,ne,sw,se,nw",Rc={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},f1={hr:"w,e,n",ve:"n,s,w",ios_switch:" ",android_switch:" ",rectangle:"n,s",search_bar:"w,e",status_bar:" ",tab_item:"w,e",tab_bar:"n",pg:" "},y2=14,rp=8,rc=5,fc=20,Bc=10,g1=20,ip=6,v2=($,U)=>{let H=Math.round(U+$);return H>=360?H-=360:H<0&&(H+=360),H>356||H<4?H=0:H>86&&H<94?H=90:H>176&&H<184?H=180:H>266&&H<274&&(H=270),H},y1=($,U)=>(J.Z.radian($,U)/Math.PI*180+360)%360,sp=($,U)=>{const{w:H,h:ae}=(0,cn.NO)($.key),{hotAttr:{type:de,isLockAspect:ge}}=$,le=U||ge?(0,Xc.K)(H,ae):-1,Ee=de===m.x.WUnifiedKeyboard,Pe=de===m.x.WQRCode;return Ee?Zp(de):Pe?1:le===-1?!1:le},x2={ipad:{portrait:[1536,526],landscape:[2048,704]},iphone:{portrait:[640,348],landscape:[1136,252]},android:{portrait:[574,354],landscape:[956,278]}},Zp=$=>{const U=$.includes("iphone")?"iphone":$.includes("ipad")?"ipad":$.includes("android")?"android":"iphone",H=$.includes("landscape")?"landscape":"portrait",[ae,de]=x2[U][H];return ae/de},lp=$=>{let{w:U,h:H,ratio:ae,isTable:de=!1}=$;const ge=U*ae,le=H*ae,Ee=ge<fc||le<fc,Pe=de?ge<g1||le<g1:ge<Bc&&le<Bc;return{isHotCornerCriticalPoint:Ee,isNoHotZone:Pe,anchorHotZone:Ee?rp:y2,lineHotZone:Ee?rc:y2,lineTableZone:Ee?rc:ip}},cp=mn.Ay.div.withConfig({displayName:"styles__StyledResizer",componentId:"sc-1ifttgj-0"})(["position:absolute;transform-origin:0 0;border:1px solid ",";&.is-dy-widget:not(.is-locked){border:1px solid ",";.square{border-color:",";}}&.is-master:not(.is-locked){border:1px solid #7146FE;.square{border-color:#7146FE;}}& > *{pointer-events:auto;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:2px;}.resizable-handler{position:absolute;width:","px;height:","px;cursor:pointer;z-index:1;&.t,&.b{height:","px;width:100%;left:3px;}&.l,&.r{width:","px;height:100%;top:3px;}&:not(.is-hotCorner-critical-point){&.tl,&.tr{top:-8.5px;}&.tl,&.bl{left:-8.5px;}&.bl,&.br{bottom:-8.5px;}&.br,&.tr{right:-8.5px;}&.r{right:-8.5px;}&.l{left:-8.5px;}&.t{top:-8.5px;}&.b{bottom:-8.5px;}}&.is-table{&.t{height:","px;}&.l{width:","px;}&:not(.is-hotCorner-critical-point){&.t{top:0;}&.l{left:0;}}}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;path{fill:",";}}.t,.tl,.tr{top:-4.5px;}.b,.bl,.br{bottom:-4.5px;}.r,.tr,.br{right:-4.5px;}.tl,.l,.bl{left:-4.5px;}.l,.r{top:50%;margin-top:-4px;}.t,.b{left:50%;margin-left:-4px;}.ai-semantic{position:absolute;width:16px;height:16px;top:-24px;right:-8px;cursor:pointer;svg{width:100%;height:100%;}}"],$=>$.theme.color_proto,$=>$.theme.color_comments,$=>$.theme.color_comments,$=>$.theme.color_proto,$=>$.anchorHotZone,$=>$.anchorHotZone,$=>$.lineHotZone,$=>$.lineHotZone,$=>$.lineTableZone,$=>$.lineTableZone,$=>$.theme.color_proto),R1=(0,Ce.jsx)("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,Ce.jsx)("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"})});class $2 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"setElementRef",U=>this.$element=U),(0,ve.A)(this,"onRotate",U=>{if(U.button!==0)return;const{clientX:H,clientY:ae}=U,{item:de,dispatch:ge}=this.props,{key:le,hotAttr:{r:Ee=0}}=de,Pe=(0,bo.s_)(le),Fe=this.$element.getBoundingClientRect(),Ke=J.Z.xy(Fe.left+Fe.width/2,Fe.top+Fe.height/2),ct=J.Z.xy(H-Ke.x,ae-Ke.y);sdkStore.combineMergeMark("resize-rotate-drag");const vt=pn=>{pn.stopImmediatePropagation();const{clientX:bn,clientY:to}=pn,Po=J.Z.xy(bn-Ke.x,to-Ke.y),fo=y1(ct,Po),Ho=v2(Ee+fo,0),Ko=[];(0,h0.bp)(Ko,le,Ho,!1),Ko.length&&(Ko.forEach(ha=>{let{key:Aa,hotAttr:I}=ha;I.refVars=(0,m0.VN)(Aa,I)}),ge({type:"entry:widget:change",payload:{flatChgList:Ko}}))},Ft=()=>{document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",Ft);const{currPageKey:pn}=this.props,bn=[],to=(0,bo.G9)(pn,[le]),Po=(0,bo.wr)(),fo=(0,bo.Rv)(bn,le,Pe,to,Po);ge({type:"entry:widget:change",payload:{flatChgList:bn,shouldBreakLayerUICache:fo}}),sdkStore.combineMerge("resize-rotate-drag")};document.addEventListener("mousemove",vt),document.addEventListener("mouseup",Ft)}),(0,ve.A)(this,"onResize",U=>{const{item:H,isDragModeShow:ae,isAdsorbentReferenceLine:de,ratio:ge,isForbiddenSingleResize:le,dispatch:Ee}=this.props;if(le){Ee({type:Wp.y.entryKey["font:miss:modal:open"]});return}const{clientX:Pe,clientY:Fe}=U,{direction:Ke}=U.currentTarget.dataset,ct=ae||de;MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0});const{key:vt,hotAttr:{isLockAspect:Ft}}=H,pn=sp(H,U.shiftKey),{w:bn,h:to}=(0,cn.NO)(vt),Po=(0,Xc.K)(bn,to);ct&&(this.alignUtil=(0,q.ay)({movableItems:[H],createSnapper:ae?M.WY:q.xb,viewport:{scale:ge}})),sdkStore.combineMergeMark("resize-drag");const fo=(0,h0.Ie)(vt),Ho=(0,bo.s_)(vt);let Ko=pn,ha=Pe,Aa=Fe;const I=(ut,tn)=>{const{hb:Xt}=fo[vt];tn==="mouseMove"&&(ha=ut.clientX,Aa=ut.clientY);const Kn=(0,Pl.e)({x:(ha-Pe)/ge,y:(Aa-Fe)/ge},(0,Md.EQ)(-Xt.r));let ao=(0,m1.AL)(Xt,Kn.x,Kn.y,Ke,Ko);if(Xt.r===0){const K=ao.w*.5,te=ao.h*.5,me={left:Math.round(ao.x-K),top:Math.round(ao.y-te),right:Math.round(ao.x+K),bottom:Math.round(ao.y+te),width:Math.round(ao.w),height:Math.round(ao.h)};if(ct){const $e=this.alignUtil({_rect:me,resizing:(0,Yc.t)(Ke),altKey:!1,originAspectRatio:Ko||void 0});if($e){const{top:nt,left:yt,bottom:dt,right:It,alignment:un,distributed:xn,sameSize:gn}=$e;MB.action("set:alignment",{alignment:un}),MB.action("set:sameSize",{sameSize:gn}),MB.action("set:distributed",{distributed:xn}),ao={x:(yt+It)*.5,y:(nt+dt)*.5,w:It-yt,h:dt-nt}}}}const v=[];(0,h0.$O)(v,vt,ao,fo,Ko,Ke),v.forEach(K=>{let{key:te,hotAttr:me}=K;me.refVars=(0,m0.VN)(te,me)}),Ee({type:"update:resize-event:state",payload:{isActive:!0,preResizeSnapshot:fo}}),Ee({type:"entry:widget:change",payload:{flatChgList:v}})},F=ut=>{I(ut,"mouseMove")},oe=ut=>{ut.repeat||(ut.shiftKey?Ko=Po:Ko=pn,I(ut,"shiftKey"))},be=ut=>{ut.key==="Shift"&&(Ko=Ft?pn:!1,I(ut,"shiftKey"))},Mt=()=>{const{isDragModeShow:ut,isAdsorbentReferenceLine:tn,editingPanelCid:Xt,editingPanelRefPage:Kn,currPageKey:ao}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(ut||tn)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const v=[],K=(0,bo.G9)(ao,[vt]),te=(0,bo.wr)(),me=(0,bo.Rv)(v,vt,Ho,K,te);Ee({type:"entry:widget:change",payload:{flatChgList:v,shouldBreakLayerUICache:me}}),(Xt||Kn)&&(Ee({type:"entry:finish:resize:canvas:within:basket"}),Ee({type:"entry:layout:basket-canvas"})),Ee({type:"reset:resize-event:state"}),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",Mt),document.removeEventListener("keydown",oe),document.removeEventListener("keyup",be),sdkStore.combineMerge("resize-drag")};document.addEventListener("mousemove",F),document.addEventListener("mouseup",Mt),document.addEventListener("keydown",oe),document.addEventListener("keyup",be),(0,U0.Yq)()}),(0,ve.A)(this,"handleDoubleClick",U=>H=>{const{isForbiddenSingleResize:ae,item:de,dispatch:ge}=this.props;if(ae)return;const{type:le,richTextV1:Ee}=de.hotAttr;if(le===m.x.WRichText){if(U==="e"||U==="w"){if(Ee.fontDirection==="vertical-lr"&&Ee.sizeType===0)return;if(H.stopPropagation(),Ee.fontDirection==="vertical-lr"){if(Ee.sizeType===0)return;ge({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}else ge({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}})}else if(U==="n"||U==="s"){if(Ee.fontDirection==="horizontal-tb"&&Ee.sizeType===0)return;H.stopPropagation(),Ee.fontDirection==="vertical-lr"?ge({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}}):ge({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}}})}render(){const{ratio:U,canRotate:H,item:ae}=this.props,{key:de,hotAttr:ge}=ae,{x:le,y:Ee,r:Pe,w:Fe,h:Ke}=sdkStore.getHotBound(de),ct={width:Fe*U,height:Ke*U,transform:"translate("+(le-Fe*.5)*U+"px,"+(Ee-Ke*.5)*U+"px) rotate("+Pe+"deg)",transformOrigin:"center center"},{type:vt,basket:Ft,isLock:pn}=ge,bn=vt===m.x.WBasket&&Ft==="bDanli",to=vt===m.x.WBasket&&Ft==="bMuban",Po=vt===m.x.WTable,fo=F0.split(",").map(oe=>oe.trim()).filter(oe=>oe),Ho=fo.filter(oe=>Gp[oe]),{isHotCornerCriticalPoint:Ko,isNoHotZone:ha,anchorHotZone:Aa,lineHotZone:I,lineTableZone:F}=lp({w:Fe,h:Ke,ratio:U,isTable:Po});return(0,Ce.jsx)(cp,{className:dn()({"is-locked":pn,"is-dy-widget":bn,"is-master":to}),style:ct,ref:this.setElementRef,anchorHotZone:Aa,lineHotZone:I,lineTableZone:F,children:ha?null:(0,Ce.jsxs)(Ce.Fragment,{children:[H&&(0,Ce.jsx)("div",{className:"rotate",onMouseDown:this.onRotate,children:R1}),fo.map(oe=>{const be=Pe+g2[oe],Mt=Rc.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+be);return(0,Ce.jsx)("div",{style:{cursor:Mt},"data-direction":ac[oe],className:dn()(ac[oe]+" resizable-handler",Ko&&"is-hotCorner-critical-point",Po&&"is-table"),onMouseDown:this.onResize,onDoubleClick:this.handleDoubleClick(oe)},oe)}),Ho.map(oe=>(0,Ce.jsx)("div",{className:dn()(ac[oe]+" square")},oe))]})})}}const pp=$=>{const{item:U}=$,{hotAttr:H}=U;switch(H.type){case m.x.WLine:case m.x.WArrow:{const{from:ae,to:de}=(0,Un.Ne)(H),ge=[ae.x,ae.y],le=[de.x,de.y];return(0,Ce.jsx)(q2,{...$,start:ge,end:le})}case m.x.WElbow:return(0,Ce.jsx)(D1,{item:U});default:return(0,Ce.jsx)($2,{...$})}};var Nl=i(36050);class Nd extends a.Component{constructor(U){super(U),(0,ve.A)(this,"onResize",(H,ae)=>{const{ratio:de,isDragModeShow:ge,isAdsorbentReferenceLine:le,dispatch:Ee,isForbiddenMultiResize:Pe}=this.props,{filteredSelectedWidgets:Fe,aabb:Ke}=this.state,{clientX:ct,clientY:vt,shiftKey:Ft}=H,{direction:pn}=H.currentTarget.dataset;if(Pe){Ee({type:Wp.y.entryKey["font:miss:modal:open"]});return}const bn=Fe.some(K=>{let{hotAttr:{isLockAspect:te,type:me}}=K;return te||me===m.x.WImage||(0,Nl.If)(me)||/_(check|radio)$/.test(me)}),[to,Po,fo,Ho]=Ke,Ko=(0,Xc.K)(fo-to,Ho-Po),ha=bn||Ft?Ko:void 0,Aa=pn&&(ge||le);MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),Aa&&(this.alignUtil=(0,q.ay)({movableItems:Fe,createSnapper:ge?M.WY:q.xb,viewport:{scale:de}}));const I=[],F={},oe=new Map;for(const{key:K}of Fe)I.push(K),(0,h0.Ie)(K,F),(0,bo.s_)(K,oe);F["@@START-MR"]={hb:(0,O1.T3)(sdkStore.getHotKeyListAABB(I)),lbR:0,wasoX:0,wasoY:0},sdkStore.combineMergeMark("multi-resize-drag");let be=ha,Mt=ct,ut=vt;const tn=(K,te)=>{const{hb:me}=F["@@START-MR"];te==="mouseMove"&&(Mt=K.clientX,ut=K.clientY);const $e={x:(Mt-ct)/de,y:(ut-vt)/de};let nt=(0,m1.AL)(me,$e.x,$e.y,pn,be);if(Object.values(F).some(dt=>{let{hb:It}=dt;return It.r===0})){const dt=nt.w*.5,It=nt.h*.5,un={left:Math.round(nt.x-dt),top:Math.round(nt.y-It),right:Math.round(nt.x+dt),bottom:Math.round(nt.y+It),width:Math.round(nt.w),height:Math.round(nt.h)};if(Aa){const xn=this.alignUtil({_rect:un,resizing:(0,Yc.t)(pn),altKey:!1,originAspectRatio:be||void 0});if(xn){const{top:gn,left:wo,bottom:vo,right:Co,alignment:Eo,distributed:go,sameSize:xo}=xn;MB.action("set:alignment",{alignment:Eo}),MB.action("set:sameSize",{sameSize:xo}),MB.action("set:distributed",{distributed:go}),nt={x:(wo+Co)*.5,y:(gn+vo)*.5,w:Co-wo,h:vo-gn}}}}const yt=[];for(const dt of I){const It=(0,h0.h1)("@@START-MR",dt,nt,F,ae);(0,h0.$O)(yt,dt,It,F,be,pn)}yt.forEach(dt=>{let{key:It,hotAttr:un}=dt;un.refVars=(0,m0.VN)(It,un)}),Ee({type:"update:resize-event:state",payload:{isActive:!0,preResizeSnapshot:F}}),Ee({type:"entry:widget:change",payload:{flatChgList:yt}})},Xt=K=>{tn(K,"mouseMove")},Kn=K=>{K.repeat||(K.shiftKey?be=Ko:be=ha,tn(K,"shiftKey"))},ao=K=>{K.key==="Shift"&&(be=bn?ha:void 0,tn(K,"shiftKey"))},v=()=>{const{isDragModeShow:K,currPageKey:te}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),K&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const me=[],$e=(0,bo.G9)(te,I),nt=(0,bo.wr)();let yt=!1;for(const dt of I){const It=(0,bo.Rv)(me,dt,oe,$e,nt);yt=yt||It!==null}Ee({type:"entry:widget:change",payload:{flatChgList:me,shouldBreakLayerUICache:yt}}),Ee({type:"entry:finish:resize:canvas:within:basket"}),Ee({type:"entry:layout:basket-canvas"}),Ee({type:"entry:select:smartly"}),Ee({type:"reset:resize-event:state"}),document.removeEventListener("mousemove",Xt),document.removeEventListener("mouseup",v),document.removeEventListener("keydown",Kn),document.removeEventListener("keyup",ao),sdkStore.combineMerge("multi-resize-drag")};document.addEventListener("mousemove",Xt),document.addEventListener("mouseup",v),document.addEventListener("keydown",Kn),document.addEventListener("keyup",ao)}),this.state={filteredSelectedWidgets:[],newSelection:[],aabb:[]}}static getDerivedStateFromProps(U,H){var ae,de;let{prevProps:ge}=H;if((U==null||(ae=U.selectedWidgets)==null?void 0:ae.length)!==(ge==null||(de=ge.selectedWidgets)==null?void 0:de.length)){var le;const Ee=U==null||(le=U.selectedWidgets)==null?void 0:le.filter(Fe=>Fe.type!==m.x.WTear),Pe=Ee==null?void 0:Ee.map(Fe=>Fe.key);return{filteredSelectedWidgets:Ee,newSelection:Pe,aabb:sdkStore.getHotKeyListAABB(Pe)}}return null}render(){const{ratio:U}=this.props,{filteredSelectedWidgets:H,newSelection:ae,aabb:de}=this.state;if(H.length===0)return null;const[ge,le,Ee,Pe]=de,Fe=Ee-ge,Ke=Pe-le,ct={left:ge*U,top:le*U,width:Fe*U,height:Ke*U},vt=F0.split(",").map(fo=>fo.trim()).filter(fo=>fo),Ft=vt.filter(fo=>Gp[fo]),{isHotCornerCriticalPoint:pn,isNoHotZone:bn,anchorHotZone:to,lineHotZone:Po}=lp({w:Fe,h:Ke,ratio:U});return(0,Ce.jsx)(cp,{style:ct,anchorHotZone:to,lineHotZone:Po,children:bn?null:(0,Ce.jsxs)(Ce.Fragment,{children:[vt.map(fo=>{const Ho=g2[fo],Ko=Rc.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+Ho);return(0,Ce.jsx)("div",{style:{cursor:Ko},"data-direction":ac[fo],className:dn()(ac[fo]+" resizable-handler",{isHotCornerCriticalPoint:pn}),onMouseDown:ha=>this.onResize(ha,fo)},fo)}),Ft.map(fo=>(0,Ce.jsx)("div",{className:ac[fo]+" square"},fo))]})})}}(0,ve.A)(Nd,"defaultProps",{offsetX:0,offsetY:0});const ud=$=>{const{tree:U,ratio:H}=$,{transform:ae,rect:de}=(0,cn.Oj)(U.key),{a:ge,b:le,c:Ee,d:Pe}=ae,{x:Fe,y:Ke}=ae.clone().scale(H,H).apply({x:de.x,y:de.y}),{x:ct,y:vt}=J.Z.mul(J.Z.xy(de.w,de.h),H),Ft=U.hotAttr.type==="wLine",pn={left:Fe,top:Ke,width:ct,height:vt,transform:"matrix("+ge+","+le+","+Ee+","+Pe+",0,0)"},bn=de.w,to=Ft?1:de.h,Po=Math.round(bn),fo=Math.round(to);return(0,Ce.jsx)(e0,{style:pn,children:(0,Ce.jsx)("div",{className:"meta-info",children:Po+" \xD7 "+fo})})},e0=mn.Ay.div.withConfig({displayName:"MetaInfo__StyledMetaInfo",componentId:"sc-1mcn3bb-0"})(["z-index:1;position:absolute;pointer-events:none;.meta-info{padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:50%;transform:translateX(-50%);border-radius:2px;white-space:nowrap;position:absolute;}"]),Ds=ud,Xs=mn.Ay.div.withConfig({displayName:"styles__StyledSelectionResizer",componentId:"sc-1mji8la-0"})(["position:absolute;z-index:2;.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}&.hide{display:none;}&.hide-h-side .rect{.t,.b{display:none;}}&.hide-v-side .rect{.l,.r{display:none;}}&.hide-corner .rect{.resizable-handler,.square{display:none;}}&.shield-corner-events{.resizable-handler,.square,.rotate{pointer-events:none;}}&.is-dy-widget{.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}}&.is-master{.rect{border:none;.rotate path{fill:#7146FE;}.square{border-radius:50%;border-color:#9f51c0;}}}"],$=>$.theme.color_proto,$=>$.theme.color_proto,$=>$.theme.color_comments,$=>$.theme.color_comments);class Kp extends a.PureComponent{constructor(U){super(U),this.state={bound:(0,O1.T3)(sdkStore.getHotKeyListAABB((U==null?void 0:U.newSelection)||[]))}}render(){const{isHide:U,scale:H,selectedWidgets:ae,editingPanelCid:de,editingPanelRefPage:ge,canRotate:le,showWidgetMetaInfo:Ee,showSingleResizer:Pe,showMultipleResizer:Fe,isQuickCreateWidget:Ke,isDragModeShow:ct,isAdsorbentReferenceLine:vt,currPageKey:Ft,missFontHiKeySet:pn,dispatch:bn}=this.props,{bound:{w:to,h:Po}}=this.state;if(U)return null;const fo=H/100,Ho=ae.length===1?ae[0]:null,Ko=Ho?Ho.hotAttr:null,ha=Ko==null?void 0:Ko.type;if(ha===m.x.Bunch&&(Ko==null?void 0:Ko.bunch)===m.x.RbPage)return null;const Aa=ha===m.x.WLR,I=ha===m.x.WRichText&&(Ko==null?void 0:Ko.size_type)===0,F=ha===m.x.WRichText&&(Ko==null?void 0:Ko.size_type)!==0,oe=ha===m.x.WBasket&&(Ko==null?void 0:Ko.basket)==="bDanli",be=ha===m.x.WBasket&&(Ko==null?void 0:Ko.basket)==="bMuban",Mt=dn()("selection-handler",!Aa&&!I&&{"hide-h-side":to*fo<20,"hide-v-side":Po*fo<20,"hide-corner":(to*fo<10||Po*fo<10)&&!F,"shield-corner-events":Ke,"is-dy-widget":oe,"is-master":be}),ut=Pe?(0,Hp.f5)([Ho.key],pn):!1,tn=Fe?(0,Hp.f5)(ae.map(Xt=>Xt.key),pn):!1;return(0,Ce.jsxs)(Xs,{className:Mt,children:[Pe&&(0,Ce.jsx)(pp,{item:Ho,ratio:fo,isDragModeShow:ct,isAdsorbentReferenceLine:vt,editingPanelCid:de,editingPanelRefPage:ge,currPageKey:Ft,canRotate:le,isForbiddenSingleResize:ut,dispatch:bn},Ho.key),Fe&&(0,Ce.jsx)(Nd,{selectedWidgets:ae,isDragModeShow:ct,isAdsorbentReferenceLine:vt,ratio:fo,currPageKey:Ft,isForbiddenMultiResize:tn,dispatch:bn}),Ee&&(0,Ce.jsx)(Ds,{tree:Ho,ratio:fo})]})}}(0,ve.A)(Kp,"defaultProps",{isHide:!1});const V0=(0,oo.Mz)([br.p$],$=>(0,B0.QH)($)),z0=(0,oo.Mz)([To.$,l.X_,V0,D.jI,D.bt,br.nE,je.c,l.wq,Y.PI,Y.k3,l.pO,l.KW,l.lv,kd.P2,D.Pm,wd.tS,l.Jv,D.jx,qc.j,D.lY,ft.X.query.getIsShallowEditing,ft.X.query.getIsDeepEditing,Zd.Ag,br.p$,l.eo,Wp.y.query.getMissFontHiKeySet],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct,vt,Ft,pn,bn,to,Po,fo,Ho,Ko,ha,Aa,I,F,oe)=>{ge=ge.filter(Uo.pT);const be=!!Ee,Mt=Po===h.qi.OnlyView,ut=Aa==null?void 0:Aa.key;if(Ke||le||MB.f.editing||ge.length===0||ct||vt||Ft||pn||bn||$.isAdjustingGap||Mt||fo||Ko||ha||ut)return{isHide:!0};const tn=ge.length===1&&ge.some(ao=>{let{hotAttr:{type:v}}=ao;return v===m.x.WTear||v===m.x.WVector&&Ho?!1:v!==m.x.WMind}),Xt=ge.length>1&&!ge.every(ao=>ao.hotAttr.type===m.x.WMind);return{scale:U,canRotate:H,showSingleResizer:tn,showMultipleResizer:Xt,selectedWidgets:ge,isQuickCreateWidget:be,isDragModeShow:Pe,isAdsorbentReferenceLine:Fe,editingPanelCid:ae,showWidgetMetaInfo:tn&&to,newSelection:I,editingPanelRefPage:de,currPageKey:F,missFontHiKeySet:oe}}),b2=(0,k.Ng)($=>z0($))(Kp);var f0=i(63986),W0=i.n(f0),v1=i(50353),eu=i(99963),C2=i(61627);const Ou=["tl","tr","bl","br"],t0=($,U)=>{switch($){case"tl":return{operation:J.Z.xy(1,1),offset:J.Z.zero};case"tr":return{operation:J.Z.xy(-1,1),offset:J.Z.xy(U.w,0)};case"bl":return{operation:J.Z.xy(1,-1),offset:J.Z.xy(0,U.h)};case"br":return{operation:J.Z.xy(-1,-1),offset:J.Z.xy(U.w,U.h)};default:return{operation:J.Z.zero,offset:J.Z.zero}}},B1=($,U,H)=>{const ae=J.Z.distance(U,$),de=J.Z.distance($,H),ge=J.Z.distance(U,H);return de>ae?ge>de?0:1:ge>ae?de>ge?1:0:J.Z.distance(H,$)/ae},hd=($,U,H)=>$<=12/H?12/H:$>U?U:$,U1=($,U,H)=>H?$*U-4:$<=12?8:$*U-4,Lc=$=>{const{hotAttr:{type:U,image:H}}=$;return!(U===m.x.WImage&&(H==null?void 0:H.imageClipType)===Xn.Mg.circular)};var H0=i(2371),G0=i(60312);const up=mn.Ay.div.withConfig({displayName:"styles__StyledSmartRadius",componentId:"sc-1msg8ap-0"})(["position:absolute;width:100%;height:100%;pointer-events:none;z-index:9999;.smart-radius-wrapper{position:absolute;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:50%;pointer-events:auto;}.tl{left:",";top:",";}.tr{right:",";top:",";&.last{display:none;}}.bl{left:",";bottom:",";&.hide{display:none;}}.br{right:",";bottom:",";&.hide{display:none;}}"],$=>$.theme.color_proto,$=>$.resizerStyle.tl,$=>$.resizerStyle.tl,$=>$.resizerStyle.tr,$=>$.resizerStyle.tr,$=>$.resizerStyle.bl,$=>$.resizerStyle.bl,$=>$.resizerStyle.br,$=>$.resizerStyle.br);class tl extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"limits",new Map),(0,ve.A)(this,"points",new Map),(0,ve.A)(this,"removeMouseEvents",null),(0,ve.A)(this,"state",{setAll:!0,isRadiusResizing:!1,isResizingRadiusDirection:"",prevProps:{borderRadius:this.props.borderRadius}}),(0,ve.A)(this,"getPointsLimits",()=>{const{widget:{key:U,hotAttr:H},scaleRatio:ae,isResizingRadius:de,boundingPoints:ge}=this.props,{isResizingRadiusDirection:le}=this.state,{transform:Ee,rect:Pe}=(0,cn.Oj)(U),Fe=Ee.clone(),{borderRadius:Ke,borderRadiusIsRound:ct}=H,vt=Math.min(Pe.w,Pe.h)*.5,Ft=ct?vt:Ke,pn=(0,H0.jf)(Ft);Object.entries(ge).forEach(bn=>{let[to,Po]=bn;const{operation:fo,offset:Ho}=t0(to,Pe),Ko=Math.min(Pe.w,Pe.h)*.5,ha=to===le&&de?pn[to]:hd(pn[to],Ko,ae),Aa=J.Z.mul(fo,ha),I=Fe.apply(J.Z.add(Ho,Aa));this.points.set(to,{worldPoint:I,operationOffset:Aa,radius:ha,maxValue:Ko});const F=J.Z.mul(fo,0),oe=J.Z.mul(fo,Ko),be=Fe.apply(J.Z.add(Ho,F)),Mt=Fe.apply(J.Z.add(Ho,oe));this.limits.set(to,{min:be,max:Mt,maxValue:Ko})})}),(0,ve.A)(this,"getHoverStyle",()=>{const{widget:{key:U},scaleRatio:H,isResizingRadius:ae}=this.props,{transform:de,rect:ge}=(0,cn.Oj)(U),{a:le,b:Ee,c:Pe,d:Fe}=de,{x:Ke,y:ct}=de.clone().scale(H,H).apply({x:ge.x,y:ge.y}),{x:vt,y:Ft}=J.Z.mul(J.Z.xy(ge.w,ge.h),H);return{left:Ke,top:ct,width:vt,height:Ft,transform:"matrix("+le+","+Ee+","+Pe+","+Fe+",0,0)",transformOrigin:"0 0",pointerEvents:ae?"auto":"none"}}),(0,ve.A)(this,"getResizerStyle",()=>{const{widget:{key:U},scaleRatio:H,isResizingRadius:ae}=this.props,{isResizingRadiusDirection:de}=this.state,{rect:ge}=(0,cn.Oj)(U),{x:le,y:Ee}=J.Z.mul(J.Z.xy(ge.w,ge.h),H),Pe=this.points.get("tl").radius,Fe=this.points.get("tr").radius,Ke=this.points.get("bl").radius,ct=this.points.get("br").radius,vt={isResizingRadius:ae,tl:U1(Pe,H,de==="tl")+"px",tr:U1(Fe,H,de==="tr")+"px",bl:U1(Ke,H,de==="bl")+"px",br:U1(ct,H,de==="br")+"px"},Ft=Pe===Ke&&Pe===this.points.get("bl").maxValue,pn=Fe===ct&&Fe===this.points.get("br").maxValue;return{resizerStyle:vt,tlEqualsBl:Ft,trEqualsBr:le!==Ee&&Ft&&pn?!1:pn,allEquals:Ft&&pn&&le===Ee}}),(0,ve.A)(this,"getIsNotSmall",()=>{const{scaleRatio:U,boundingPoints:H,widget:{hotAttr:{type:ae}}}=this.props,de=m.x.WMTextInput===ae||m.x.WMTextArea===ae,ge=J.Z.distance(H.tl,H.tr)*U,le=J.Z.distance(H.tl,H.bl)*U;return de?ge>108&&le>60:ge>108||le>108}),(0,ve.A)(this,"setBorderRadius",(U,H)=>{const{dispatch:ae,widget:{key:de,hotAttr:ge}={}}=this.props;if(!de)return;const{refStyles:le}=ge;if(le!=null&&le.appear){const Ee=sdkStore.getHotItem(le==null?void 0:le.appear);ae({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:[de],refStyle:Ee}}),ae({type:"settings:update:currentAppearRefStyle",payload:null})}ae({type:"entry:widget:change",payload:{flatChgList:[{key:de,hotAttr:{borderRadius:U,refVars:H,borderRadiusIsRound:!1}}]}})}),(0,ve.A)(this,"handleSetRadius",(U,H)=>{const{borderRadius:ae,widget:{hotAttr:{refVars:de}}}=this.props,{setAll:ge}=this.state,le=parseInt(U)||0;let Ee;if(ge)Ee=le,de!=null&&de.borderRadius&&Ee!==ae&&(de.borderRadius=void 0);else{var Pe;const Fe=(0,H0.jf)(ae),Ke="radius"+H.toUpperCase();Ee={radiusTL:Fe.tl,radiusTR:Fe.tr,radiusBL:Fe.bl,radiusBR:Fe.br,[Ke]:le},de!=null&&(Pe=de.borderRadius)!=null&&Pe[Ke]&&Ee[Ke]!==Fe[H]&&(de.borderRadius[Ke]=void 0)}this.setBorderRadius(Ee,de)}),(0,ve.A)(this,"onResize",U=>{this.setState({isRadiusResizing:!0}),U.stopPropagation();const{dispatch:H,scaleRatio:ae,boundingPoints:de}=this.props,ge=U.nativeEvent.clientX,le=U.nativeEvent.clientY,{direction:Ee}=U.currentTarget.dataset,Pe=this.points.get(Ee).worldPoint;this.setState({isResizingRadiusDirection:""}),H({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),H({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}}),sdkStore.combineMergeMark("smart-radius"),(U.metaKey||U.ctrlKey)&&this.setState({setAll:!1});let Fe,Ke;const ct=Ft=>{if(!this.props.widget){var pn;(pn=this.removeMouseEvents)==null||pn.call(this);return}Ft.stopPropagation(),this.setState({isResizingRadiusDirection:Ee}),H({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}});const bn=this.limits.get(Ee);if(!bn)return!1;const{min:to,max:Po,maxValue:fo}=bn,Ho=(Ft.clientX-ge)/ae>>0,Ko=(Ft.clientY-le)/ae>>0,ha=J.Z.add(Pe,J.Z.xy(Ho,Ko)),Aa=J.Z.round(ha);Fe=C2.a.contains(de,Aa);const I=eu.o.projectOnePoint2Line(Aa,[to,Po]),F=B1(to,Po,I);Ke=Math.round(fo*F),this.handleSetRadius(Ke,Ee),H({type:"set:resizing:radius:num",payload:{resizingRadiusNum:Ke}})},vt=Ft=>{var pn;if(!this.props.widget){var bn;(bn=this.removeMouseEvents)==null||bn.call(this);return}this.setState({isRadiusResizing:!1,isResizingRadiusDirection:""}),Ft.button===0&&this.handleSetRadius(Ke,Ee),H({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),Fe||H({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),(pn=this.removeMouseEvents)==null||pn.call(this),sdkStore.combineMerge("smart-radius")};this.removeMouseEvents=()=>{document.removeEventListener("mousemove",ct),document.removeEventListener("mouseup",vt),this.removeMouseEvents=null},document.addEventListener("mousemove",ct),document.addEventListener("mouseup",vt)}),(0,ve.A)(this,"onEnter",U=>{const{borderRadius:H,dispatch:ae}=this.props,de=(0,H0.jf)(H),{direction:ge}=U.currentTarget.dataset,le=de[ge];ae({type:"set:resizing:radius:num",payload:{resizingRadiusNum:le}}),ae({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),ae({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}})}),(0,ve.A)(this,"onLeave",()=>{const{dispatch:U}=this.props;this.state.isRadiusResizing||U({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}})})}static getDerivedStateFromProps(U,H){let{borderRadius:ae}=U,{prevProps:de}=H;const{borderRadius:ge}=de;return W0()(ae,ge)?null:{setAll:ae?!(0,H0.k4)(ae):!0,prevProps:{borderRadius:ae}}}componentWillUnmount(){var U;(U=this.removeMouseEvents)==null||U.call(this)}render(){const{widget:U,isHide:H,isShowRadiusResizer:ae}=this.props;if(H||!ae||!U||!this.getIsNotSmall())return null;this.getPointsLimits();const ge=this.getHoverStyle(),{resizerStyle:le,tlEqualsBl:Ee,trEqualsBr:Pe,allEquals:Fe}=this.getResizerStyle();return(0,Ce.jsx)(up,{resizerStyle:le,children:(0,Ce.jsx)("div",{className:"smart-radius-wrapper",style:ge,children:Ou.map(Ke=>(0,Ce.jsx)("div",{"data-direction":Ke,className:dn()("square",""+Ke,{hide:Ee&&Ke==="bl"||Pe&&Ke==="br",last:Fe}),onMouseDown:this.onResize,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},Ke))})})}}const F1=(0,oo.Mz)([l.X_,l.iv,l.w8,l.pO,l.Jv,je.c,br.nE,D.Pm],($,U,H,ae,de,ge,le,Ee)=>{le=le.filter(to=>!to.hotAttr.isLock);const Pe=le.length===1?le[0]:null,{type:Fe,borderRadius:Ke}=(Pe==null?void 0:Pe.hotAttr)||{};if(Fe===v1.Z6.screenMeta)return{};const ct=!(0,v1.v8)(Fe),vt=ge||MB.f.editing;if(ct||(ae||de)||vt||le.length!==1||!Pe)return{isHide:!0};if(Ee&&(0,G0.ji)(Pe.hotAttr))return{isHide:!0};if(!Lc(Pe))return{isHide:!0};const pn=$/100,bn=eu.o.toBoundingPoints((0,cn.Oj)(Pe.key));return{widget:Pe,scaleRatio:pn,borderRadius:Ke,boundingPoints:bn,isResizingRadius:H,isShowRadiusResizer:U}}),tu=(0,k.Ng)($=>F1($))(tl);var nu=i(41589),ou=i.n(nu),cc=i(81900);const au="n,s,e,w,ne,nw,se,sw";class w2 extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"handleResizeStart",()=>{const{activeImage:H}=this.props;MB.f.isResizing=!0,this.activeItem=ou()({...H})}),(0,ve.A)(this,"handleResize",H=>{let{top:ae,left:de,width:ge,height:le}=H;const{ratio:Ee,dispatch:Pe}=this.props;if(!this.activeItem)return;const{key:Fe,hotAttr:{image:Ke}}=this.activeItem,{imageRectCenterX:ct,imageRectCenterY:vt,imageRectWidth:Ft,imageRectHeight:pn}=Ke,bn={...Ke,imageRectCenterX:ct-Ft/2+ge/Ee/2+de/Ee,imageRectCenterY:vt-pn/2+le/Ee/2+ae/Ee,imageRectWidth:Math.round(ge/Ee),imageRectHeight:Math.round(le/Ee)};Pe({type:"entry:widget:change",payload:{flatChgList:[{key:Fe,hotAttr:{image:bn}}]}})}),(0,ve.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,this.activeItem=null}),(0,ve.A)(this,"handleRotateStart",()=>{const{activeImage:H}=this.props;this.activeItem={...H}}),(0,ve.A)(this,"handleRotate",H=>{const{dispatch:ae}=this.props;if(!this.activeItem)return;const{key:de,hotAttr:{image:ge}}=this.activeItem,le={...ge,imageRectR:(ge.imageRectR+Math.round(H))%360};ae({type:"entry:widget:change",payload:{flatChgList:[{key:de,hotAttr:{image:le}}]}})}),(0,ve.A)(this,"handleRotateEnd",()=>{this.activeItem=null}),(0,ve.A)(this,"onDrag",(H,ae)=>{const{activeImage:de,ratio:ge,dispatch:le}=this.props,{key:Ee,hotAttr:{image:Pe}}=de,{imageRectWidth:Fe,imageRectHeight:Ke,imageRectCenterX:ct,imageRectCenterY:vt}=Pe,Ft={...Pe,imageRectCenterX:ct+H/ge,imageRectCenterY:vt+ae/ge,imageRectWidth:Fe,imageRectHeight:Ke};le({type:"entry:widget:change",payload:{flatChgList:[{key:Ee,hotAttr:{image:Ft}}]}})}),(0,ve.A)(this,"onDragStart",()=>{const{activeImage:H,changeCurrentSelect:ae}=this.props;ae(Xn.Q7.img),this.activeItem={...H},sdkStore.combineMergeMark("re-position-image-wrt-clip")}),(0,ve.A)(this,"onDragEnd",()=>{this.activeItem=null,sdkStore.combineMerge("re-position-image-wrt-clip")}),this.activeItem=null}render(){const{activeImage:U,ratio:H,currentSelect:ae}=this.props,{key:de,hotAttr:{image:ge}}=U,{imageRectWidth:le,imageRectHeight:Ee,imageRectAspectRatio:Pe,imageRectR:Fe,imageRectCenterX:Ke,imageRectCenterY:ct}=ge,{x:vt,y:Ft,w:pn,h:bn,r:to}=sdkStore.getHotBound(de),Po={zIndex:3,width:pn*H,height:bn*H,transform:"translate("+(vt-pn*.5)*H+"px,"+(Ft-bn*.5)*H+"px) rotate("+to+"deg)",transformOrigin:"center center"},fo={width:le*H,height:Ee*H,transform:"translate("+(Ke-le*.5)*H+"px,"+(ct-Ee*.5)*H+"px) rotate("+Fe+"deg)",transformOrigin:"center center"},Ho={top:0,left:0,width:le*H,height:Ee*H};return(0,Ce.jsx)("div",{className:dn()("imageSelectBorder",{currentNotSelect:ae!=="img"}),style:Po,children:(0,Ce.jsx)("div",{style:fo,children:(0,Ce.jsx)(cc.A,{aspectRatio:Pe,...Ho,minWidth:H,minHeight:H,zoomable:au,rotatable:!0,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onRotateStart:this.handleRotateStart,onRotate:this.handleRotate,onRotateEnd:this.handleRotateEnd,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:to})})})}}var hp=i(81592);const mp=($,U,H,ae)=>{const[de,ge,le,Ee]=$;let Pe;switch(ae){case"br":{Pe={x:de+U/2,y:ge+H/2};break}case"bl":{Pe={x:le-U/2,y:ge+H/2};break}case"tl":{Pe={x:le-U/2,y:Ee-H/2};break}case"tr":{Pe={x:de+U/2,y:Ee-H/2};break}case"t":{Pe={y:Ee-H/2};break}case"r":{Pe={x:de+U/2};break}case"b":{Pe={y:ge+H/2};break}case"l":{Pe={x:le-U/2};break}}return Pe},V1=mn.Ay.div.withConfig({displayName:"styles__StyledCuttingSelectBorderStyle",componentId:"sc-nieg8z-0"})(["position:absolute;z-index:3;&.clipCircular{.single-resizer{border-radius:50%;}}.dragDiv{background:transparent;position:absolute;pointer-events:all;}&.currentNotSelect{.square{display:none;}&.showHoverBorder{.single-resizer{&:first-child{outline:2px solid #2F90F9;}}}}.single-resizer{outline:1px dashed #2F90F9;border:none;&:first-child{pointer-events:auto!important;z-index:1!important;border:none;outline:1px solid #ffffff;}.square{background:#2F90F9;border:1px solid #FFFFFF;width:8px;height:8px;border-radius:2px;&.t{top:-5px;}&.b{bottom:-5px;}&.r{right:-5px;}&.l{left:-5px;}&.tr{right:-5px;top:-5px;}&.tl{top:-5px;left:-5px;}&.br{bottom:-5px;right:-5px;}&.bl{bottom:-5px;left:-5px;}}}"]);class n0 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"state",{shouldShowHoverBorder:!1,isShiftKeyDown:!1}),(0,ve.A)(this,"handleResizeStart",()=>{const{changeCurrentSelect:U}=this.props;U(Xn.Q7.cutFrame),MB.f.isResizing=!0,this.top=0,this.left=0,sdkStore.combineMergeMark("resize-image-clip")}),(0,ve.A)(this,"handleResize",(U,H,ae)=>{let{top:de,left:ge,width:le,height:Ee}=U;const{ratio:Pe,activeImage:{key:Fe,hotAttr:Ke},dispatch:ct}=this.props,{r:vt,image:Ft}=Ke,{x:pn,y:bn,w:to,h:Po}=sdkStore.getHotBound(Fe),fo=sdkStore.getHotKeyAABB(Fe),Ho=(this.top-de)/Pe,Ko=(this.left-ge)/Pe;this.top=de,this.left=ge;const ha=Math.round(le/Pe),Aa=Math.round(Ee/Pe),I={x:pn-to/2-Ko,y:bn-Po/2-Ho},F=mp(fo,ha,Aa,ae),oe=vt===0?{x:pn,y:bn,r:vt,w:ha,h:Aa,...F}:{x:I.x+ha/2,y:I.y+Aa/2,r:vt,w:ha,h:Aa},{x:be,y:Mt}=sdkStore.toAttrXY(oe,Fe),ut={x:be,y:Mt,w:ha,h:Aa,image:{...Ft,...(0,hp.N)(Fe,oe),imageFillType:"stretch"}};ut.refVars=(0,m0.VN)(Fe,ut),ct({type:"entry:widget:change",payload:{flatChgList:[{key:Fe,hotAttr:ut}]}})}),(0,ve.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,sdkStore.combineMerge("resize-image-clip")}),(0,ve.A)(this,"onDrag",(U,H)=>{const{activeImage:ae,ratio:de,dispatch:ge}=this.props,{key:le,hotAttr:{r:Ee,image:Pe}}=ae,{x:Fe,y:Ke,w:ct,h:vt}=sdkStore.getHotBound(le);let Ft=U,pn=H;this.state.isShiftKeyDown?this.lockedDragAxis?(this.lockedDragAxis==="y"&&(Ft=0),this.lockedDragAxis==="x"&&(pn=0)):Math.abs(U)>Math.abs(H)?(pn=0,this.lockedDragAxis="x"):(Ft=0,this.lockedDragAxis="y"):this.lockedDragAxis=null;const bn={x:Fe-ct/2+Ft/de,y:Ke-vt/2+pn/de},to={x:Math.round(bn.x+ct/2),y:Math.round(bn.y+vt/2),r:Ee,w:ct,h:vt},{x:Po,y:fo}=sdkStore.toAttrXY(to,le),Ho={x:Po,y:fo,image:{...Pe,...(0,hp.N)(le,to),imageFillType:"stretch"}};Ho.refVars=(0,m0.VN)(le,Ho),ge({type:"entry:widget:change",payload:{flatChgList:[{key:le,hotAttr:Ho}]}})}),(0,ve.A)(this,"onDragStart",()=>{const{changeCurrentSelect:U}=this.props;this.lockedDragAxis=null,U(Xn.Q7.cutFrame),sdkStore.combineMergeMark("re-position-image-clip")}),(0,ve.A)(this,"onDragEnd",()=>{sdkStore.combineMerge("re-position-image-clip")}),(0,ve.A)(this,"handleDrap",U=>{this.onDragStart(),U.stopPropagation();let H=U.clientX,ae=U.clientY;const de=le=>{const Ee=le.clientX-H,Pe=le.clientY-ae;H=le.clientX,ae=le.clientY,this.onDrag(Ee,Pe)},ge=()=>{document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",ge),this.onDragEnd()};document.addEventListener("mousemove",de),document.addEventListener("mouseup",ge)}),(0,ve.A)(this,"handleMouseEnter",()=>{this.setState({shouldShowHoverBorder:!0})}),(0,ve.A)(this,"handleMouseLeave",()=>{this.setState({shouldShowHoverBorder:!1})}),(0,ve.A)(this,"handlePressShift",U=>{this.setState({isShiftKeyDown:U.shiftKey})}),(0,ve.A)(this,"handleReleaseShift",U=>{this.setState({isShiftKeyDown:U.shiftKey})})}render(){const{activeImage:{key:U,hotAttr:H},ratio:ae,currentSelect:de}=this.props,{shouldShowHoverBorder:ge}=this.state,{image:{imageClipType:le}}=H,{x:Ee,y:Pe,w:Fe,h:Ke,r:ct}=sdkStore.getHotBound(U),vt=Fe*ae,Ft=Ke*ae;let pn=0;le===Xn.Mg.circular&&(pn=1);const bn=[{top:-5,left:0,width:vt,height:10},{top:-5,left:vt-5,width:10,height:Ft},{top:Ft-5,left:-5,width:vt+10,height:10},{top:-5,left:-5,width:10,height:Ft}],to={position:"absolute",width:vt,height:Ft,transform:"translate("+(Ee-Fe*.5)*ae+"px,"+(Pe-Ke*.5)*ae+"px) rotate("+ct+"deg)",transformOrigin:"center center"};return(0,Ce.jsxs)(V1,{className:dn()({clipCircular:le===Xn.Mg.circular,currentNotSelect:de==="img",showHoverBorder:de==="img"&&ge}),style:to,children:[(0,Ce.jsx)(cc.A,{aspectRatio:pn,top:0,left:0,width:vt,height:Ft,minWidth:ae,minHeight:ae,zoomable:"",rotatable:!1,rotateAngle:0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:ct}),(0,Ce.jsx)("div",{children:bn.map((Po,fo)=>(0,Ce.jsx)("div",{style:Po,className:"dragDiv",onMouseDown:this.handleDrap,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},fo))}),(0,Ce.jsx)(cc.A,{aspectRatio:pn,top:0,left:0,width:vt,height:Ft,minWidth:ae,minHeight:ae,zoomable:F0,rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,cursorAngle:ct}),(0,Ce.jsx)(Ia.A,{target:document,onKeyDown:(0,Ia.t)(this.handlePressShift,{capture:!0}),onKeyUp:(0,Ia.t)(this.handleReleaseShift,{capture:!0})})]})}}var Yp=i(92272);const fp=mn.Ay.div.withConfig({displayName:"styles__StyledCuttingClipSvgStyle",componentId:"sc-svnva1-0"})(["position:absolute;svg{position:absolute;}.imageWarp{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;.img{position:absolute;}}.originImageWarp{position:absolute;top:0;left:0;width:100%;height:100%;.img{position:absolute;}}"]);class gp extends a.PureComponent{render(){const{activeImage:U,ratio:H}=this.props,{key:ae,hotAttr:de,hotAttr:{image:ge,opacity:le,borderRadius:Ee}}=U,{imageRef:Pe,imageFilter:Fe,imageRectCenterX:Ke,imageRectCenterY:ct,imageRectWidth:vt,imageRectHeight:Ft,imageRectR:pn}=ge,bn=(0,Yp.Kf)(Pe),{x:to,y:Po,w:fo,h:Ho,r:Ko}=sdkStore.getHotBound(ae),ha={width:fo*H,height:Ho*H,transform:"translate("+(to-fo*.5)*H+"px,"+(Po-Ho*.5)*H+"px) rotate("+Ko+"deg)",transformOrigin:"center center"},Aa=oe=>{let{w:be,h:Mt,ratio:ut,borderRadius:tn}=oe;const{radiusTL:Xt,radiusTR:Kn,radiusBL:ao,radiusBR:v}=typeof tn=="number"?{radiusTL:tn,radiusTR:tn,radiusBL:tn,radiusBR:tn}:tn,K="\n M "+Xt*ut+" 0\n H "+(be-Kn)*ut+"\n A "+Kn*ut+" "+Kn*ut+" 0 0 1 "+be*ut+" "+Kn*ut+"\n V "+(Mt-ao)*ut+"\n A "+ao*ut+" "+ao*ut+" 0 0 1 "+(be-ao)*ut+" "+Mt*ut+"\n H "+v*ut+"\n A "+v*ut+" "+v*ut+" 0 0 1 0 "+(Mt-v)*ut+"\n V "+Xt*ut+"\n A "+Xt*ut+" "+Xt*ut+" 0 0 1 "+Xt*ut+" 0\n Z\n ";return(0,Ce.jsx)("path",{d:K})},I={filter:Fe,width:vt*H,height:Ft*H,opacity:le,transform:"translate("+(Ke-vt*.5)*H+"px,"+(ct-Ft*.5)*H+"px) rotate("+pn+"deg) "+(0,Mo.xc)(de),transformOrigin:"center center"},F={background:"rgba(221,221,221,0.50)",width:vt*H,height:Ft*H,transform:"translate("+(Ke-vt*.5)*H+"px,"+(ct-Ft*.5)*H+"px) rotate("+pn+"deg)",transformOrigin:"center center"};return(0,Ce.jsxs)(fp,{style:ha,children:[(0,Ce.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:vt,height:Ft,children:(0,Ce.jsx)("defs",{children:(0,Ce.jsx)("clipPath",{id:"cut-"+ae,children:Aa({w:fo,h:Ho,ratio:H,borderRadius:Ee})})})}),(0,Ce.jsx)("div",{className:"imageWarp",children:(0,Ce.jsx)("div",{className:"divMask",style:F,children:" "})}),(0,Ce.jsx)("div",{className:"imageWarp",style:{clipPath:"url(#cut-"+ae+")"},children:(0,Ce.jsx)("img",{src:bn,className:"img",width:vt*H,height:Ft*H,style:I,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})}),(0,Ce.jsx)("div",{className:"originImageWarp",style:I,children:(0,Ce.jsx)("img",{src:bn,className:"img",width:vt*H,height:Ft*H,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})})]})}}var Kd=i(23108),Xp=i(61675),Qp=i(55052);const S2=324,iu=mn.Ay.div.withConfig({displayName:"styles__StyledImageEditorOperate",componentId:"sc-w21ycp-0"})(["position:absolute;z-index:4;width:","px;height:","px;background:",";box-shadow:0 4px 10px rgba(0,0,0,0.1);border-radius:8px;transition:opacity,transform 0.2s ease-in-out;transform-origin:0 0;animation-fill-mode:forwards;color:",";border:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 12px;.left,.right{display:flex;align-items:center;justify-content:center;}.left{.title{color:",";margin-right:6px;}.radio-line{margin-bottom:0;height:32px;background:",";.radio-option.check-line{flex:0 0 32px;width:32px;height:32px;border-radius:6px;transition:all 0.2s ease-in-out;cursor:pointer;pointer-events:auto;a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:",";.svg-icon{width:14px;rect{fill:transparent;stroke:",";}&:not([fill]){[stroke]{fill:none;}}}}&:not(:last-child){margin-right:6px;}&:not(.active):hover{background:",";}&.active{background:",";svg{rect{stroke:",";}}}}}}.right{button{width:60px;height:32px;background:",";border:1px solid ",";color:",";border-radius:6px;cursor:pointer;pointer-events:auto;&:not(:last-child){margin-right:8px;}&:hover{background:",";}}}"],S2,40,$=>$.theme.color_bg_white,$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_text_L1,$=>$.theme.color_bg_white,$=>$.theme.color_text_L1,$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_bg_tab,$=>$.theme.color_btn_primary_normal,$=>$.theme.color_bg_white,$=>$.theme.color_bg_border_02,$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover),z1=8;class md extends a.PureComponent{constructor(U){var H;super(U),(0,ve.A)(this,"IMAGE_OPERATE_LIST",[{label:I18N.SettingPanel.slicing,value:Xn.bl.slicing},{label:I18N.SettingPanel.cutting,value:Xn.bl.cutting}]),(0,ve.A)(this,"CUTTING_OPTIONS",[{label:(0,Ce.jsx)(Kd.P,{name:"setting_panel/image_view/square",tagName:"SVGIcon",content:I18N.SettingPanel.rectangle_cutting,direction:"down"}),value:Xn.Mg.square},{label:(0,Ce.jsx)(Kd.P,{name:"setting_panel/image_view/circular",tagName:"SVGIcon",content:I18N.SettingPanel.circular_cutting,direction:"down"}),value:Xn.Mg.circular}]),(0,ve.A)(this,"SLICING_OPTIONS",[{label:(0,Ce.jsx)(Kd.P,{name:"setting_panel/image_view/cross",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_cross,direction:"down"}),value:Xn.Pv.cross},{label:(0,Ce.jsx)(Kd.P,{name:"setting_panel/image_view/horizontal",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_horizontal,direction:"down"}),value:Xn.Pv.horizontal},{label:(0,Ce.jsx)(Kd.P,{name:"setting_panel/image_view/vertical",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_vertical,direction:"down"}),value:Xn.Pv.vertical}]),(0,ve.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:ae}=this.props;return ae===Xn.bl.cutting}),(0,ve.A)(this,"handleShape",ae=>{const{dispatch:de}=this.props,{cuttingType:ge}=this.state,le=ae.currentTarget.dataset.value;ge&&ge===le||(this.setState({cuttingType:le}),de({type:"entry:items:set:clipType",payload:{clipType:le}}))}),(0,ve.A)(this,"handleChangeSlicingType",ae=>{const{slicingType:de,onChangeSlicingType:ge}=this.props,le=ae.currentTarget.dataset.value;de&&le===de||ge(le)}),(0,ve.A)(this,"resetClipType",()=>{const{dispatch:ae}=this.props;ae({type:"entry:items:set:clipType",payload:{clipType:"none"}})}),(0,ve.A)(this,"handleExit",()=>{const{dispatch:ae,editingImageNodes:de}=this.props,{isCut:ge}=this.handleGetImageEditorOperateAttr();if(ge){const le=de.map(Ee=>{let{key:Pe,hotAttr:Fe}=Ee;return{key:Pe,hotAttr:{...Fe,image:{...Fe.image,imageFillType:"stretch"}}}});ae({type:"entry:widget:change",payload:{flatChgList:le}})}ae({type:"entry:image-view:exit:edit"})}),(0,ve.A)(this,"handleGetImageEditorOperateAttr",()=>{const{ratio:ae,editingImageNodes:de,canvasRect:ge}=this.props,le=this.handleGetIsCutting(),Ee=(0,Qp.Am)(de[0].hotAttr);let Pe={};const Fe=-ge.canvasTop+35+40,Ke=window.innerHeight-48-ge.canvasTop-35;let ct=Fe;const[vt,Ft,pn,bn]=sdkStore.getHotKeyListAABB(de.map(Aa=>Aa.key)),to=pn-vt,Po=bn-Ft,{x:fo,y:Ho}=J.Z.mul(J.Z.xy(vt,Ft),ae),{x:Ko,y:ha}=J.Z.mul(J.Z.xy(to,Po),ae);return ct=Math.round(Ho+ha+z1),Pe={left:Math.floor(fo+Ko/2-S2/2)},Pe={...Pe,top:ct<Fe?Fe:ct>Ke?Ke:ct},{isCut:le,canShowResetImage:Ee,imageStyle:Pe}}),this.state={cuttingType:(H=U.editingImageNodes[0])==null||(H=H.hotAttr)==null||(H=H.image)==null?void 0:H.imageClipType}}render(){var U;const{currentImageOperateType:H,slicingType:ae,editingImageNodes:de}=this.props;if(!de||!(de!=null&&de.length))return null;const{cuttingType:ge}=this.state,le=(U=this.IMAGE_OPERATE_LIST.find(Ke=>{let{value:ct}=Ke;return ct===H}))==null?void 0:U.label,{isCut:Ee,canShowResetImage:Pe,imageStyle:Fe}=this.handleGetImageEditorOperateAttr();return(0,Ce.jsxs)(iu,{style:Fe,className:"imageEditorOperate",children:[(0,Ce.jsxs)("div",{className:"left",children:[(0,Ce.jsx)("span",{className:"title",children:le}),(0,Ce.jsx)(Xp.A,{className:dn()({cut:Ee}),options:Ee?this.CUTTING_OPTIONS:this.SLICING_OPTIONS,value:Ee?ge:ae,handleChange:Ee?this.handleShape:this.handleChangeSlicingType})]}),(0,Ce.jsxs)("div",{className:"right",children:[Ee&&Pe&&(0,Ce.jsx)("button",{onClick:this.resetClipType,children:I18N.SettingPanel.undo}),(0,Ce.jsx)("button",{onClick:this.handleExit,children:Ee?I18N.SettingPanel.confirm:I18N.SettingPanel.exit})]})]})}}const rd=mn.Ay.svg.withConfig({displayName:"styles__StyledImageSlicing",componentId:"sc-19j82hu-0"})(["position:absolute;z-index:4;width:100vw;height:100vh;top:0;left:0;pointer-events:auto;&.image-editing-slicing{cursor:",";}line{stroke:",";stroke-width:1px;stroke-dasharray:3 2;}"],Rt.M.imageBlade,$=>$.theme.color_polyline_normal);class Jp extends a.PureComponent{constructor(U){var H,ae,de,ge;super(U),(0,ve.A)(this,"handleGetSlicingDirection",()=>{const{slicingType:le}=this.props,Ee=le!==Xn.Pv.vertical,Pe=le!==Xn.Pv.horizontal;return{isH:Ee,isV:Pe}}),(0,ve.A)(this,"handleClick",le=>{const{scale:Ee,editingImageNodes:Pe,isSpaceDown:Fe,isDraggingCanvas:Ke,handMode:ct,canvasOffset:vt,viewportRect:Ft,dispatch:pn}=this.props,{show:bn}=this.state;if(!bn||!(Pe!=null&&Pe.length)||Fe||Ke||ct)return;const to=this.handleGetSlicingDirection(),Po=(0,ia.mG)(le,{scale:Ee,offset:vt,viewportRect:Ft}),fo=Pe.map(Ho=>Ho.key);pn({type:"entry:image-view:slicing",payload:{sliceWorldPos:Po,wImageKeyList:fo,slicingDirection:to}})}),(0,ve.A)(this,"handleChangeOffset",(le,Ee)=>this.setState({show:!0,offsetX:le,offsetY:Ee})),(0,ve.A)(this,"handleEnter",le=>this.handleChangeOffset(le.nativeEvent.offsetX,le.nativeEvent.offsetY)),(0,ve.A)(this,"handleMove",le=>this.handleChangeOffset(le.nativeEvent.offsetX,le.nativeEvent.offsetY)),(0,ve.A)(this,"handleLeave",()=>this.setState({show:!1})),this.state={show:((H=U.defaultImageSlicingOffset)==null?void 0:H.x)&&((ae=U.defaultImageSlicingOffset)==null?void 0:ae.y),offsetX:((de=U.defaultImageSlicingOffset)==null?void 0:de.x)||0,offsetY:((ge=U.defaultImageSlicingOffset)==null?void 0:ge.y)||0}}render(){const{show:U,offsetX:H,offsetY:ae}=this.state,{isSpaceDown:de,isDraggingCanvas:ge,handMode:le,canvasRect:{canvasLeft:Ee,canvasTop:Pe}}=this.props,Fe={left:-Ee+"px",top:-Pe+"px"},{isH:Ke,isV:ct}=this.handleGetSlicingDirection(),vt=!de&&!ge&&!le&&U;return(0,Ce.jsx)(rd,{className:dn()("imageSlicing",{"image-editing-slicing":vt}),xmlns:"http://www.w3.org/2000/svg",style:Fe,onClick:this.handleClick,onMouseEnter:this.handleEnter,onMouseMove:this.handleMove,onMouseLeave:this.handleLeave,children:vt&&(0,Ce.jsxs)(Ce.Fragment,{children:[Ke&&(0,Ce.jsx)("line",{className:"horizontal",xmlns:"http://www.w3.org/2000/svg",x1:0,y1:ae,x2:"100%",y2:ae}),ct&&(0,Ce.jsx)("line",{xmlns:"http://www.w3.org/2000/svg",className:"vertical",x1:H,y1:0,x2:H,y2:"100%"})]})})}}const A2=mn.Ay.div.withConfig({displayName:"styles__StyledImageWrapperMask",componentId:"sc-1cs6ddm-0"})([".cutWrapper{position:absolute;}.single-resizer{position:absolute;z-index:3;pointer-events:none;& > *{pointer-events:auto;}}.imageSelectBorder{position:absolute;&.currentNotSelect{.single-resizer{border:none;.rotate,.square{display:none;}&:hover{outline:2px solid #2F90F9;}}}.single-resizer{pointer-events:auto;border:1px solid #2F90F9;.rotate{path{fill:#2F90F9;}}.square{background:#FFFFFF;border:1px solid #2F90F9;width:8px;height:8px;border-radius:50%;&.t{top:-4px;}&.b{bottom:-4px;}&.r{right:-4px;}&.l{left:-4px;}&.tr{right:-4px;top:-4px;}&.tl{top:-4px;left:-4px;}&.br{bottom:-4px;right:-4px;}&.bl{bottom:-4px;left:-4px;}}}.imgDragWarp{position:absolute;pointer-events:auto;}}"]);class W1 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"state",{slicingType:Xn.Pv.cross}),(0,ve.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:U}=this.props;return U===Xn.bl.cutting}),(0,ve.A)(this,"changeCurrentSelect",U=>{const{dispatch:H}=this.props;H({type:"image:update:state",payload:{currentImageClipSelected:U}})}),(0,ve.A)(this,"handleDocDown",U=>{const{dispatch:H}=this.props;U.target.closest(".imageWrapperResizeBox")||U.target.closest("#setting-panel")||U.target.closest("#IBOT_DROPDOWN_MENU_ROOT")||U.target.closest(".imageSlicing")||H({type:"entry:image-view:exit:edit"})}),(0,ve.A)(this,"handleChangeSlicingType",U=>this.setState({slicingType:U}))}componentDidMount(){var U;(U=document.querySelector("#link-design"))==null||U.classList.add("hide")}componentDidUpdate(U){const{newSelections:H,dispatch:ae,editingImageNodes:de}=this.props,{editingImageNodes:ge}=U;this.handleGetIsCutting()&&de&&!ge&&this.changeCurrentSelect(Xn.Q7.cutFrame),de&&H!=null&&H.length&&(de.find(Pe=>{let{key:Fe}=Pe;return H.includes(Fe)})||ae({type:"entry:image-view:exit:edit"})),de&&de.some(Pe=>{let{key:Fe}=Pe;return sdkStore.isTrashed(Fe)})&&ae({type:"entry:image-view:exit:edit"})}componentWillUnmount(){var U;(U=document.querySelector("#link-design"))==null||U.classList.remove("hide")}render(){const{editingImageNodes:U,scale:H,dispatch:ae,canvasOffset:de,viewportRect:ge,currentImageClipSelected:le,currentImageOperateType:Ee,isSpaceDown:Pe,isDraggingCanvas:Fe,canvasRect:Ke,defaultImageSlicingOffset:ct}=this.props,{slicingType:vt}=this.state;if(!U||!(U!=null&&U.length))return null;const Ft=H/100,pn=this.handleGetIsCutting();return(0,Ce.jsxs)(A2,{className:"imageWrapperResizeBox",children:[pn?(0,Ce.jsxs)("div",{className:"cutWrapper",children:[(0,Ce.jsx)(w2,{dispatch:ae,activeImage:U[0],ratio:Ft,currentSelect:le,changeCurrentSelect:this.changeCurrentSelect}),(0,Ce.jsx)(gp,{activeImage:U[0],ratio:Ft}),(0,Ce.jsx)(n0,{dispatch:ae,activeImage:U[0],ratio:Ft,currentSelect:le,changeCurrentSelect:this.changeCurrentSelect})]}):(0,Ce.jsx)(Jp,{scale:H,canvasOffset:de,viewportRect:ge,editingImageNodes:U,slicingType:vt,isSpaceDown:Pe,isDraggingCanvas:Fe,canvasRect:Ke,defaultImageSlicingOffset:ct,dispatch:ae}),(0,Ce.jsx)(md,{editingImageNodes:U,currentImageOperateType:Ee,ratio:Ft,slicingType:vt,canvasRect:Ke,onChangeSlicingType:this.handleChangeSlicingType,dispatch:ae}),(0,Ce.jsx)(Ia.A,{target:document,onMouseDown:(0,Ia.t)(this.handleDocDown,{capture:!0})})]})}}const Ru=(0,oo.Mz)([kd.tl,l.X_,l.$S,l.ER,br.p$,kd.KF,kd.tR,l.ZS,l.AW,l.Pz,l.Fe],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke)=>{let{isSpaceDown:ct}=Ee;return{editingImageNodes:$,scale:U,canvasOffset:ae,viewportRect:H,newSelections:de,currentImageClipSelected:ge,currentImageOperateType:le,isSpaceDown:ct,isDraggingCanvas:Pe,canvasRect:Fe,defaultImageSlicingOffset:Ke}}),su=(0,k.Ng)($=>Ru($))(W1),H1=mn.Ay.div.withConfig({displayName:"styles__StyledItemElbowAnchorContainer",componentId:"sc-10t3c75-0"})([".anchor-container{.anchor{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",';&:hover{background:"red";}svg{width:100%;height:100%;}}.anchor-top{top:-',"px;left:50%;}.anchor-left{top:50%;left:-","px;}.anchor-right{top:50%;left:calc(100% + ","px);}.anchor-bottom{top:calc(100% + ","px);left:50%;}.arrow{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",";svg{width:100%;height:100%;}}.arrow-top{top:0;left:50%;}.arrow-left{top:50%;left:0;}.arrow-right{top:50%;left:100%;}.arrow-bottom{top:100%;left:50%;}}"],Rt.M.elbowConnect,$=>$.delta,$=>$.delta,$=>$.delta,$=>$.delta,Rt.M.elbowConnect);class lu extends a.PureComponent{render(){const{isShow:U,viewport:H,testHoverItem:ae,dispatch:de}=this.props;if(!U)return null;const ge={position:"absolute",left:0,top:0,pointerEvents:"none",zIndex:2};return(0,Ce.jsx)("div",{style:ge,children:(0,Ce.jsx)(qp,{viewport:H,hoverItem:ae,dispatch:de})})}}class qp extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"handleMouseLeave",()=>{this.setState({activeAnchor:"none"})}),(0,ve.A)(this,"handleMouseEnter",H=>{this.setState({activeAnchor:H})}),(0,ve.A)(this,"handleMouseDown",(H,ae)=>{H.stopPropagation(),H.persist();const{hoverItem:de,dispatch:ge}=this.props,le={key:de.key,startDirection:ae};ge({type:"entry:elbow:isInElbowMode:create",payload:{event:H,key:de.key,givinStartInfo:le,canInstantCreate:!0}})}),this.state={activeAnchor:"none"}}render(){const{viewport:U,hoverItem:H}=this.props,{activeAnchor:ae}=this.state,{x:de,y:ge,w:le,h:Ee,r:Pe}=sdkStore.getHotBound(H.key),Fe=U.scale,Ke=(de-le*.5)*U.scale,ct=(ge-Ee*.5)*U.scale,vt="translate("+Ke+"px,"+ct+"px) rotate("+Pe+"deg)",Ft={position:"absolute",width:le*Fe,height:Ee*Fe,transform:vt,cursor:"move"},pn=16,bn={width:pn+"px",height:pn+"px"},to=20*1,Po=["top","right","bottom","left"];return(0,Ce.jsx)(H1,{delta:to,className:"artboard-item",style:Ft,children:(0,Ce.jsx)("div",{className:"anchor-container",children:Po.map(fo=>(0,Ce.jsx)("div",{className:"anchor anchor-"+fo,onMouseEnter:()=>this.handleMouseEnter(fo),onMouseLeave:()=>this.handleMouseLeave(fo),children:(0,Ce.jsx)("span",{style:bn,onMouseDown:Ho=>this.handleMouseDown(Ho,fo),children:ae===fo?(0,Ce.jsx)(ps.C,{isColorPure:!0,size:16,name:"flow/create/add"}):(0,Ce.jsx)(ps.C,{isColorPure:!0,size:16,name:"flow/create/ready"})})},fo))})})}}const cu=(0,oo.Mz)([l.$S,l.X_,l.ER],($,U,H)=>{var ae,de;return{scale:U/100,size:{w:(ae=$==null?void 0:$.width)!=null?ae:0,h:(de=$==null?void 0:$.height)!=null?de:0},offset:H}}),yp=(0,oo.Mz)([cu,u1.rP,u1.Q1,br.p$,l.lh,l.pO,l.Jv,D.jx],($,U,H,ae,de,ge,le,Ee)=>{if(ae.length!==1)return{isShow:!1};const Pe=sdkStore.getHotItem(ae[0]);return!Pe||![m.x.WFlowOpened,m.x.wFlowClosed].includes(Pe.hotAttr.type)?{isShow:!1}:{isShow:!(Ee===h.qi.OnlyView||le||ge||de||H||U||ae.length!==1||(0,ea.OO)(ae[0])),viewport:$,testHoverItem:Pe}}),Yd=(0,k.Ng)($=>yp($))(lu);var Z0=i(1002),Fl=i(7198),jd=i(8452);const fd={keys:{mod:{type:"entry:vector:shortcut:by:mod"},"command+a":{type:"entry:vector:shortcut:by:selectAll"},"ctrl+a":{type:"entry:vector:shortcut:by:selectAll"},"mod+alt+o":{type:"entry:vector:shortcut:by:toggle:closed"},tab:{type:"entry:vector:shortcut:by:tab"},backspace:{type:"entry:vector:shortcut:by:del"},del:{type:"entry:vector:shortcut:by:del"},"command+x":{type:"entry:vector:shortcut:by:del"},"ctrl+x":{type:"entry:vector:shortcut:by:del"},1:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:zo.pQ.Straight}},2:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:zo.pQ.Mirrored}},3:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:zo.pQ.Asymmetric}},4:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:zo.pQ.Disconnected}},enter:{type:"entry:vector:exit:edit",payload:{end:jd.z9.Enter}},esc:{type:"entry:vector:esc"},"mod+enter":{type:"entry:vector:exit:edit",payload:{end:jd.z9.Enter}},left:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-1}},right:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:1}},up:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-1}},down:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:1}},"shift+left":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-10}},"shift+right":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:10}},"shift+up":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-10}},"shift+down":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:10}}},priority:Fl.zu.Mode},vp=mn.Ay.div.withConfig({displayName:"styles__StyledVectorContainer",componentId:"sc-1ey6xav-0"})(["position:absolute;width:100vw;height:",";pointer-events:none;z-index:3;.vector-container{position:absolute;top:0;height:100%;}"],$=>"calc(100vh - "+$.currentToolBarHeight+"px)"),$p={top:-f.MV,left:-f.MV};class M2 extends a.PureComponent{constructor(U){var H;super(U),H=this,(0,ve.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,ve.A)(this,"handleAdsorption",(ae,de)=>{(0,Di._c)({type:m.x.WVector})||this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}});const{viewport:ge,listX:le,listY:Ee}=this.props,Pe=(0,zo.pF)(ge.scale*100),{x:Fe,y:Ke}=O.L.applyInverse(ge,ae),ct=(0,zo.xZ)(Math.round(Fe),le,Pe),vt=(0,zo.xZ)(Math.round(Ke),Ee,Pe);return de.inverted().apply({x:ct||Math.round(Fe),y:vt||Math.round(Ke)})}),(0,ve.A)(this,"handleClientPosition",ae=>{const{leftPanelWidth:de,currentToolBarHeight:ge}=this.props;return J.Z.xy(ae.clientX-de,ae.clientY-ge)}),(0,ve.A)(this,"handleChangeProps",function(ae,de){de===void 0&&(de=!1);const{vector:ge}=ae,{dispatch:le}=H.props;ge&&le({type:"entry:vector:update:vector",payload:{vector:ge,compressible:de}})}),(0,ve.A)(this,"handleChangeState",function(ae,de){de===void 0&&(de=void 0);const{vectorEditor:ge,dispatch:le}=H.props;le(h.GO.update({vectorEditor:{...ge,selectedIndex:ae,selectedAssistIndex:de}}))}),(0,ve.A)(this,"handleExitEdit",()=>{this.props.dispatch(h.GO.update({enabledRangeSelection:2}))}),(0,ve.A)(this,"handleClearSelection",()=>{this.props.dispatch(h.GO.update({enabledRangeSelection:1}))}),(0,ve.A)(this,"handleMouseUp",()=>{}),(0,ve.A)(this,"handleClickOutSide",ae=>{const de=document.querySelector("svg.vector-container"),ge=document.querySelector("#setting-panel");de&&!de.contains(ae.target)&&!(ge!=null&&ge.contains(ae.target))&&!ae.target.closest(".var-dropmenu")&&!ae.target.closest(".var-editor")&&this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:jd.z9.ClickBlank}})}),(0,ve.A)(this,"handleCombineMarkChange",ae=>sdkStore.combineMergeMark(ae)),(0,ve.A)(this,"handleCombineChange",ae=>sdkStore.combineMerge(ae)),this.state={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}componentDidMount(){window.addEventListener("resize",this.handleUpdateState);const{widgetStore:U,widget:H,dispatch:ae}=this.props;this.removeRemoteListener=U==null?void 0:U.addSdkStoreChangeListener(de=>{let{isRemote:ge}=de;ge&&H&&U.isTrashed(H.key)&&(ae({type:"entry:clear:selection"}),ae({type:"entry:vector:clear:vectorEditor"}))})}componentWillUnmount(){var U;window.removeEventListener("resize",this.handleUpdateState),(U=this.removeRemoteListener)==null||U.call(this)}render(){var U;const{mapX:H,mapY:ae,viewport:de,widget:ge,rect:le,vectorEditor:Ee,boundingBoxTransform:Pe,leftPanelWidth:Fe,currentToolBarHeight:Ke,canvasOffset:ct}=this.props;if(!Ee)return null;const{x:vt,y:Ft}=ct,{innerWidth:pn,innerHeight:bn}=this.state,to={top:f.MV,left:f.MV,pointerEvents:"auto"},Po={width:((U=de.size)==null?void 0:U.w)+"px",left:Fe+"px"},fo={transform:"matrix(1, 0, 0, 1, "+(Math.round(-vt)-pn/2)+", "+(Math.round(-Ft)-(bn-Ke)/2)+")"};return(0,Ce.jsx)(vp,{currentToolBarHeight:Ke,style:fo,children:(0,Ce.jsxs)("div",{className:"vector-container",style:Po,children:[(0,Ce.jsx)(zo.VV,{shortcutsSheet:fd,svgStyle:$p,wrapperStyle:to,mapX:H,mapY:ae,rect:le,widget:ge,viewport:de,vectorEditor:Ee,boundingBoxTransform:Pe,onExit:this.handleExitEdit,onClearSelection:this.handleClearSelection,onMouseUp:this.handleMouseUp,onChangeProps:this.handleChangeProps,onChangeState:this.handleChangeState,handleAdsorption:this.handleAdsorption,handleClientPosition:this.handleClientPosition,handleCombineMarkChange:this.handleCombineMarkChange,handleCombineChange:this.handleCombineChange}),(0,Ce.jsx)(Ia.A,{target:document,onPointerDown:(0,Ia.t)(this.handleClickOutSide,{capture:!0})})]})})}}var K0=i(16402);const k2=(0,oo.Mz)([K0.H,V.UV,D.lY,K0.n,S.wT,l.ER,V.RX],($,U,H,ae,de,ge)=>{if(!H)return{};const{key:le}=H,Ee=U.getHotItem(le);if(!Ee)return{};const{hotAttr:{type:Pe,vector:Fe}}=Ee;if(Pe!==m.x.WVector||!Fe)return{};const Ke=(0,zo.YW)(le),ct=O.L.toMutableTransform($).append(Ke);return{viewport:$,vectorEditor:H,widget:Ee,boundingBoxTransform:ct,leftPanelWidth:ae,rect:(0,zo.rj)(Fe),mapX:new Map,mapY:new Map,listX:[],listY:[],currentToolBarHeight:de,canvasOffset:ge,widgetStore:U}}),E2=(0,k.Ng)($=>k2($))(M2),I2=($,U,H)=>({x:H.a*$+H.c*U+H.e,y:H.b*$+H.d*U+H.f});var x1=i(15186);const e2=mn.Ay.div.withConfig({displayName:"styles__StyledPencilDraw",componentId:"sc-q64jqb-0"})(["position:absolute;width:100%;height:100%;overflow:hidden;&.init-cursor{cursor:",";}.vector-container{position:absolute;top:0;left:0;width:100%;height:100%;}"],Rt.M.pencilCreate);var T2=i(28894);const C0={top:re.MV,left:re.MV,pointerEvents:"auto"},b1={top:-re.MV,left:-re.MV},C1=$=>({closed:!!$.closed,points:$.segments.map(U=>{let{point:H,handleOut:ae,handleIn:de}=U;return{x:H.x,y:H.y,type:zo.pQ.Mirrored,radius:0,prev:{x:de.x,y:de.y},next:{x:ae.x,y:ae.y}}})});class xp extends a.Component{constructor(){super(...arguments),(0,ve.A)(this,"state",{points:[],isDrawing:!1}),(0,ve.A)(this,"svgRef",a.createRef()),(0,ve.A)(this,"path",null),(0,ve.A)(this,"paper",null),(0,ve.A)(this,"handleKeydown",U=>{U.key===Ts._.Enter&&(this.props.dispatch({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}}))}),(0,ve.A)(this,"getMouseRelativePoint",U=>{var H;const de=(H=this.svgRef.current.getScreenCTM())==null?void 0:H.inverse();return I2(U.clientX,U.clientY,de)}),(0,ve.A)(this,"drawPoint",U=>{var H;const ae=this.getMouseRelativePoint(U);if(!this.paper)return;const de=new this.paper.Point(ae.x,ae.y);this.setState({points:[...this.state.points,de]}),(H=this.path)==null||H.add(de)}),(0,ve.A)(this,"endDraw",()=>{if(!this.path)return;const{dispatch:U}=this.props;U({type:"entry:pencil:create:vector",payload:{path:this.path.clone(),getRelativeVectorFromPath:C1}}),this.setState({isDrawing:!1,points:[]}),this.path.remove(),this.paper&&(this.path=new this.paper.Path)}),(0,ve.A)(this,"handleMouseDown",U=>{this.setState({isDrawing:!0}),this.drawPoint(U)}),(0,ve.A)(this,"handleMouseMove",U=>{this.state.isDrawing&&this.drawPoint(U)}),(0,ve.A)(this,"handleMouseUp",U=>{this.state.isDrawing&&(this.drawPoint(U),this.endDraw())})}async componentDidMount(){const{paper:U}=await T2.W3.loadLLG();U&&(U.setup(document.createElement("canvas")),this.path=new U.Path,this.paper=U,document.addEventListener("keydown",this.handleKeydown))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeydown)}render(){const U=this.state.points.map(Ke=>Ke.x+","+Ke.y).join(" "),H="init-cursor",{bdrStyle:ae,bdrColor:de,bdrWidth:ge,scale:le}=this.props,Ee=(0,x1.t0)(de),Pe=(0,Ir.Mx)(ae,Number.parseInt(ge)),Fe=ge*le/100;return(0,Ce.jsx)(e2,{className:H+" pencil-draw-container",style:C0,children:(0,Ce.jsx)("svg",{ref:this.svgRef,className:"vector-container",style:b1,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,children:(0,Ce.jsx)("polyline",{points:U,fill:"transparent",stroke:Ee,strokeWidth:Fe,strokeDasharray:Pe})})})}}var w1=i(31093);const G1=(0,oo.Mz)([K0.H,K0.n,S.wT,l.ER,w1.lu,w1.E,w1.pp,l.X_],($,U,H,ae,de,ge,le,Ee)=>({viewport:$,leftPanelWidth:U,currentToolBarHeight:H,canvasOffset:ae,bdrColor:de,bdrWidth:ge,bdrStyle:le,scale:Ee})),w0=()=>{var $;const{viewport:U,leftPanelWidth:H,currentToolBarHeight:ae,canvasOffset:de,bdrColor:ge,bdrWidth:le,bdrStyle:Ee,scale:Pe}=(0,k.d4)(G1),Fe=(0,k.wA)(),[[Ke,ct],vt]=(0,a.useState)([window.innerWidth,window.innerHeight]),{x:Ft,y:pn}=de,bn={transform:"matrix(1, 0, 0, 1, "+(Math.round(-Ft)-Ke/2)+", "+(Math.round(-pn)-(ct-ae)/2)+")"},to={width:(($=U.size)==null?void 0:$.w)+"px",left:H+"px"};return(0,a.useEffect)(()=>{const Po=()=>{vt([window.innerWidth,window.innerHeight])};return window.addEventListener("resize",Po),()=>{window.removeEventListener("resize",Po)}},[]),(0,Ce.jsx)(vp,{currentToolBarHeight:ae,style:bn,children:(0,Ce.jsx)("div",{className:"vector-container",style:to,children:(0,Ce.jsx)(xp,{bdrColor:ge,bdrWidth:le,bdrStyle:Ee,scale:Pe,dispatch:Fe})})})};var o0=i(50365);const Z1=mn.Ay.div.withConfig({displayName:"styles__StyledTableResize",componentId:"sc-1oejtjh-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;&.ns{cursor:",";pointer-events:auto;}&.ew{cursor:",";pointer-events:auto;}.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical,.horizontal{opacity:0;&:hover,&.active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}"],Rt.M.nsResize,Rt.M.ewResize,Rt.M.nsResize,Rt.M.ewResize),du=(0,oo.Mz)([br.p$,l.X_],($,U)=>{const H=U/100;return{selection:$,ratio:H}}),Dd=()=>{const{selection:$,ratio:U}=(0,k.d4)(du);if($.length!==1)return null;const H=$[0],ae=sdkStore.getHotItem(H);if(!ae||ae.hotAttr.type!==m.x.WSwimlane)return null;const de={widgetKey:H,ratio:U};return(0,Ce.jsx)(Y0,{...de})},Y0=$=>{const{widgetKey:U,ratio:H}=$,ae=sdkStore.getHotItem(U),{x:de,y:ge,w:le,h:Ee}=sdkStore.getHotBound(U),{database:Pe,swimConfig:Fe,swimlaneType:Ke}=ae.hotAttr,{isShowBigTitle:ct}=Fe,{table:vt,widthList:Ft,heightList:pn}=Pe,bn=(0,k.wA)(),[to,Po]=(0,a.useState)([]),[fo,Ho]=(0,a.useState)([]),[Ko,ha]=(0,a.useState)(""),[Aa,I]=(0,a.useState)(""),F=(0,a.useCallback)(ut=>{const tn=[];let Xt=0,Kn=0;!ct&&Ke==="topBottom"&&(Kn=1);for(let ao=Kn;ao<vt[1].length;ao++){const v=ut[ao];Xt+=v,tn.push(Xt)}Ho(tn)},[ct,Ke,vt]),oe=(0,a.useCallback)(ut=>{const tn=[];let Xt=0,Kn=0;!ct&&Ke==="leftRight"&&(Kn=1);for(let ao=Kn;ao<vt.length;ao++){const v=ut[ao];Xt+=v,tn.push(Xt)}Po(tn)},[ct,Ke,vt.length]);(0,a.useEffect)(()=>{oe(pn),F(Ft)},[pn,Ft,oe,F]);const be=ut=>{ut.preventDefault(),ut.stopPropagation();const{clientX:tn,clientY:Xt}=ut,{lineType:Kn,pos:ao}=ut.currentTarget.dataset,v=(0,h0.Ie)(ae.key),{hb:K}=v[ae.key],te=K.x-K.w*.5,me=K.y-K.h*.5,$e=yt=>{const dt=[{key:ae.key,hotAttr:{...ae.hotAttr,database:{...Pe}}}],It=Math.ceil(Number(yt.clientX-tn)/H),un=Math.ceil(Number(yt.clientY-Xt)/H);I(Kn);let xn=null;if(Kn.includes("HL")){const{newHeightList:gn,newH:wo}=(0,o0.s2)({handleAttr:{type:"bottom",delta:un,heightList:pn,x:parseInt(ao),swimlaneType:Ke,isShowBigTitle:ct}});dt[0].hotAttr.h=wo,dt[0].hotAttr.y=me+wo*.5;const{y:vo}=sdkStore.toAttrXY({x:0,y:me+wo*.5},ae.key);dt[0].hotAttr.y=vo,dt[0].hotAttr.database.heightList=gn,xn=()=>oe(gn),ha("ns")}else{const{newWidthList:gn,newW:wo}=(0,o0.s2)({handleAttr:{type:"right",delta:It,widthList:Ft,y:parseInt(ao),swimlaneType:Ke,isShowBigTitle:ct}});dt[0].hotAttr.w=wo,dt[0].hotAttr.x=te+wo*.5;const{x:vo}=sdkStore.toAttrXY({x:te+wo*.5,y:0},ae.key);dt[0].hotAttr.x=vo,dt[0].hotAttr.database.widthList=gn,xn=()=>F(gn),ha("ew")}bn({type:"entry:widget:change",payload:{flatChgList:dt}}),xn&&xn()},nt=()=>{I(""),ha(""),document.removeEventListener("mousemove",$e),document.removeEventListener("mouseup",nt)};document.addEventListener("mousemove",$e),document.addEventListener("mouseup",nt)},Mt={width:le*H,height:Ee*H,transform:"translate("+(de-le*.5)*H+"px,"+(ge-Ee*.5)*H+"px) "};return(0,Ce.jsxs)(Z1,{className:dn()("tableResize",Ko&&Ko),style:Mt,children:[to.map((ut,tn)=>{let Xt=tn;const Kn="HL-"+(tn+1);return!ct&&Ke==="leftRight"&&(Xt+=1),(0,Ce.jsx)("div",{"data-pos":Xt,"data-line-type":Kn,onMouseDown:be,className:dn()("horizontal",Aa===Kn&&"active"),style:{top:(ut-1)*H+"px"}},tn)}),fo.map((ut,tn)=>{let Xt=tn;const Kn="VL-"+(tn+1);return!ct&&Ke==="topBottom"&&(Xt+=1),(0,Ce.jsx)("div",{"data-pos":Xt,"data-line-type":Kn,onMouseDown:be,className:dn()("vertical",Aa===Kn&&"active"),style:{left:(ut-1)*H+"px"}},tn)})]})},K1=mn.Ay.div.withConfig({displayName:"styles__StyledBasketTooltip",componentId:"sc-s75pp2-0"})(["z-index:2;.behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class _2 extends a.PureComponent{render(){var U;const{onlyView:H,hoverItem:ae,scale:de,isShow:ge}=this.props;if(!ge)return null;const le=sdkStore.getHotItem(ae);if(!le||le!=null&&(U=le.hotAttr)!=null&&U.isLock)return null;const Ee=(le==null?void 0:le.hotAttr.type)==="wBasket"&&(le==null?void 0:le.hotAttr.basket)==="bDanli",Pe=(0,B0.td)([le.key]);if(!Ee||Pe&&!H)return null;const{transform:Fe,rect:Ke}=(0,cn.Oj)(ae),{a:ct,b:vt,c:Ft,d:pn}=Fe,{x:bn,y:to}=Fe.clone().scale(de/100,de/100).apply({x:Ke.x,y:Ke.y}),{x:Po,y:fo}=J.Z.mul(J.Z.xy(Ke.w,Ke.h),de/100),Ho={position:"absolute",overflow:"hidden",left:bn,top:to,width:Po,height:fo,transform:"matrix("+ct+","+vt+","+Ft+","+pn+",0,0)"};return(0,Ce.jsx)(K1,{style:Ho,children:(0,Ce.jsx)("div",{className:"behavior",children:(0,Ce.jsx)("p",{children:Ee?H?"\u53CC\u51FB\u67E5\u770B\u52A8\u6001\u7EC4\u4EF6":I18N.ScreenContainer.dblclick_to_edit_dy:I18N.ScreenContainer.dblclick_to_edit})})})}}const P2=(0,oo.Mz)([D.IL,l.X_,D.jx,l.pO],($,U,H,ae)=>{var de;return!$||ae?{isShow:!1}:((de=sdkStore.getHotItem($))==null?void 0:de.hotAttr.type)!==m.x.WBasket?{isShow:!1}:{isShow:!0,hoverItem:$,scale:U,onlyView:H===h.qi.OnlyView}}),t2=(0,k.Ng)($=>P2($))(_2);var S1=i(89002);const bp=mn.Ay.div.withConfig({displayName:"style__StyledTableResize",componentId:"sc-1vrbotd-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:row-resize;pointer-events:all;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:col-resize;pointer-events:all;}.vertical,.horizontal{opacity:0;&.is-table-dragging{cursor:grabbing;&:hover,&:active{opacity:0;}}&:hover,&:active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}.horizontal-options{position:absolute;width:100%;left:0;top:-30px;height:30px;background-color:red;display:flex;align-items:center;}.vertical-options{position:absolute;height:100%;left:-30px;top:0;width:30px;background-color:gray;display:flex;align-items:center;flex-direction:column;}"]),S0=14,n2=24,Nc=10,Xd=Nc+1,o2=40,A1=mn.Ay.div.withConfig({displayName:"styles__TableAddStyled",componentId:"sc-12imdr0-0"})(["width:","px;height:","px;position:absolute;pointer-events:all;display:flex;cursor:pointer;display:flex;align-items:center;flex-direction:row;&.horizontal-add-handle-warp{left:-","px;align-items:center;}&.vertical-add-handle-warp{top:-","px;justify-content:center;}.horizontal-add-handle{background:#DBDBDB;width:4px;height:4px;border-radius:50%;position:absolute;left:5px;}.vertical-add-handle{width:4px;height:4px;background:#DBDBDB;border-radius:50%;position:absolute;top:5px;}.add-lineH,.add-lineV,.horizontal-add-handle-svg,.vertical-add-handle-svg{display:none;}.horizontal-add-handle-svg,.vertical-add-handle-svg,.on-mouser-leaveV,.on-mouser-leaveH{width:","px;height:","px;}.on-mouser-leaveH{animation:0.4s svgScaleReverseH 1;animation-fill-mode:forwards;position:absolute;left:-5px;}.on-mouser-leaveV{animation:0.4s svgScaleReverseV 1;animation-fill-mode:forwards;position:absolute;top:-5px;}&.drag-select{.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{display:block;}}&.is-dragging{cursor:grabbing;.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{pointer-events:none;}}.add-lineH{height:2px;background:#298DF8;position:absolute;left:","px;}.add-lineV{width:2px;background:#298DF8;position:absolute;top:","px;}&:not(.drag-select):not(.is-dragging):hover{.horizontal-add-handle-svg,.add-lineH,.add-lineV,.vertical-add-handle-svg{display:block;}.vertical-add-handle-svg{position:absolute;top:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle-svg{position:absolute;left:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle,.on-mouser-leaveH,.on-mouser-leaveV .vertical-add-handle{display:none;}}@keyframes svgScaleV{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svgScaleReverseH{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}@keyframes svgScaleReverseV{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}"],S0,S0,S0+Xd,S0+Xd,n2,n2,S0+Xd,S0+Xd),Cp=$=>{let{values:U,indexAndType:H,handleAddRows:ae,onAddHandleMouseLeave:de,styles:ge,isDragSelect:le}=$;const Ee=(0,k.d4)(wd.CY),Pe=(0,k.d4)(wd.sx);return(0,Ce.jsx)(Ce.Fragment,{children:U.map((Fe,Ke)=>{const ct=le&&H&&H.index===String(Ke)&&H.rtype==="h";return(0,Ce.jsxs)(A1,{"data-index":Ke,"data-rtype":"h",className:"table-add-handle horizontal-add-handle-warp "+(ct&&"drag-select")+" "+(Pe&&"is-dragging"),style:{top:Fe-S0/2+"px"},onMouseDown:ae,onMouseLeave:de,children:[(0,Ce.jsx)("div",{className:"horizontal-add-handle"}),(0,Ce.jsx)(ps.C,{name:"design/table/Hhandle",className:"horizontal-add-handle-svg"}),!Ee&&H&&H.index===String(Ke)&&H.rtype==="h"&&(0,Ce.jsx)(ps.C,{name:"design/table/Hhandle",className:"on-mouser-leaveH"}),(0,Ce.jsx)("div",{className:"add-lineH",style:ge})]},Ke)})})},A0=$=>{let{values:U,indexAndType:H,handleAddColumns:ae,onAddHandleMouseLeave:de,styles:ge,isDragSelect:le}=$;const Ee=(0,k.d4)(wd.CY),Pe=(0,k.d4)(wd.sx);return(0,Ce.jsx)(Ce.Fragment,{children:U.map((Fe,Ke)=>{const ct=le&&H&&H.index===String(Ke)&&H.rtype==="v";return(0,Ce.jsxs)(A1,{"data-index":Ke,"data-rtype":"v",className:"table-add-handle vertical-add-handle-warp "+(ct&&"drag-select")+" "+(Pe&&"is-dragging"),style:{left:Fe-S0/2+"px"},onMouseDown:ae,onMouseLeave:de,children:[(0,Ce.jsx)("div",{className:"vertical-add-handle"}),(0,Ce.jsx)(ps.C,{name:"design/table/handle",className:"vertical-add-handle-svg"}),!Ee&&H&&H.index===String(Ke)&&H.rtype==="v"&&(0,Ce.jsx)(ps.C,{name:"design/table/handle",className:"on-mouser-leaveV"}),(0,Ce.jsx)("div",{className:"add-lineV",style:ge})]},Fe)})})},Qd=(0,a.memo)($=>{const{isRow:U,widget:H,radio:ae}=$,{hotAttr:{w:de,h:ge}}=H;return(0,Ce.jsx)(Ce.Fragment,{children:U?(0,Ce.jsx)(Cp,{...$,styles:{width:de*ae,height:2*ae}}):(0,Ce.jsx)(A0,{...$,styles:{height:ge*ae,width:2*ae}})})});var wp=i(76805),a0=i(15776),M0=i(40860);const ke=($,U)=>{if(!$||!U)return{selRows:[],selColumns:[]};const{selectionLeftTopInfo:{x:H,y:ae},selectionRightBottomInfo:{x:de,y:ge}}=U;let le,Ee;const Pe=de-H+1,Fe=ge-ae+1;if((0,od.SS)($)){const{widthList:Ke,heightList:ct}=$;le=ct.map((vt,Ft)=>{if(Ft>=ae&&Ft<=ge&&Pe===Ke.length)return Ft}).filter(vt=>vt!==void 0),Ee=Ke.map((vt,Ft)=>{if(Ft>=H&&Ft<=de&&Fe===ct.length)return Ft}).filter(vt=>vt!==void 0)}else{const{tableData:{data:Ke,rows:ct,columns:vt}}=$;le=ct.map((Ft,pn)=>{if(pn>=ae&&pn<=ge&&Ke[pn].length===Pe)return pn}).filter(Ft=>Ft!==void 0),Ee=vt.map((Ft,pn)=>{if(pn>=H&&pn<=de&&Ke.length===Fe)return pn}).filter(Ft=>Ft!==void 0)}return{selRows:le,selColumns:Ee}},Ve=$=>{let{isHorizontal:U,isShiftDown:H,index:ae,widget:de,selectTableCellInfo:ge}=$;const{hotAttr:le}=de,{tableData:{rows:Ee,columns:Pe}}=le;let Fe,Ke;if((0,od.SS)(le)){const{widthColumns:pn,heightRows:bn}=(0,o0.SK)(le);Ke=pn,Fe=bn}else Ke=Pe,Fe=Ee;const{selColumns:ct,selRows:vt}=ke(le,ge);let Ft={x1:0,y1:0,x2:0,y2:0};if(U)if(ct.length===0||!H)Ft={x1:ae,y1:0,x2:ae,y2:Fe.length-1};else{const{selectionLeftTopInfo:{x:pn,y:bn},selectionRightBottomInfo:{x:to,y:Po}}=ge;Ft=ct.some(Ho=>Number(Ho)>ae)?{x1:ae,y1:0,x2:to,y2:Po}:{x1:pn,y1:bn,x2:ae,y2:Fe.length-1}}else if(vt.length===0||!H)Ft={x1:0,y1:ae,x2:Ke.length-1,y2:ae};else{const{selectionLeftTopInfo:{x:pn,y:bn},selectionRightBottomInfo:{x:to,y:Po}}=ge;Ft=vt.some(Ho=>Number(Ho)>ae)?{x1:pn,y1:ae,x2:to,y2:Po}:{x1:pn,y1:bn,x2:Ke.length-1,y2:ae}}(0,a0.Z)({widget:de,...Ft,isDragSelected:!0}),(0,M0.t0)({isEditTable:!0})},Ye=($,U,H)=>{if(!U||!H)return!1;const{tableData:{mergeCells:ae}}=U.hotAttr,{selectionLeftTopInfo:{x:de,y:ge},selectionRightBottomInfo:{x:le,y:Ee}}=H;return!Object.entries(ae).some(Fe=>{let[Ke,ct]=Fe;if($){const vt=ct[0],Ft=Number(Ke.split("-")[0]),pn=Ft+vt,bn=le+1;return Ft<de&&pn>de||pn>bn&&Ft<bn}else{const vt=ct[1],Ft=Number(Ke.split("-")[1]),pn=Ft+vt,bn=Ee+1;return Ft<ge&&pn>ge||pn>bn&&Ft<bn}})},wt=$=>{let{widget:U,values:H,selectRowsOrColumns:ae,isHorizontal:de,scale:ge}=$;const le=[0],{tableData:{mergeCells:Ee}}=U;H.reduce((ct,vt)=>(ct=ct+vt*ge,le.push(ct),ct),0);let Pe=le.map((ct,vt)=>{let Ft=0,pn=0;const bn=H.map(to=>to*ge);return vt===0?(Ft=-1e6,pn=bn[vt]/2):vt===bn.length?(Ft=ct-bn[vt-1]/2,pn=ct+1e6):(Ft=ct-bn[vt-1]/2,pn=ct+bn[vt]/2),{index:vt,location:ct,hotZoonStart:Ft,hotZoonEnd:pn}}).filter((ct,vt)=>!ae.includes(vt-1));ae.length>0&&(Pe=Pe.filter(ct=>{let{index:vt}=ct;return vt!==Number(ae[0])}));function Fe(ct,vt){const Ft=[];for(let pn=ct;pn<=vt;pn++)Ft.push(pn);return Ft}let Ke=[];return Object.entries(Ee).some(ct=>{let[vt,Ft]=ct;if(de){const pn=Ft[0],bn=Number(vt.split("-")[0]),to=bn+pn,Po=Fe(bn+1,to-1);Ke=Array.from(new Set(Ke.concat(Po)))}else{const pn=Ft[1],bn=Number(vt.split("-")[1]),to=bn+pn,Po=Fe(bn+1,to-1);Ke=Array.from(new Set(Ke.concat(Po)))}}),Pe=Pe.filter(ct=>{let{index:vt}=ct;return!Ke.includes(vt)}),Pe},Ua=$=>{let{dispatch:U,widget:H,isHorizontal:ae,startIndex:de,dragMoveIndex:ge,rowOrColumnNum:le,selectRowsOrColumns:Ee}=$;const{key:Pe,hotAttr:Fe,hotAttr:{tableData:Ke,widthList:ct,heightList:vt}}=H,Ft=Ee.length,{cellStyles:pn,columns:bn,links:to,data:Po,rows:fo,mergeCells:Ho}=ou()(Ke),Ko=ge>de?ge-Ft:ge,ha=Ee[0],Aa=[];let I;(0,od.SS)(Fe)?I=ae?ct.length-1:vt.length-1:I=ae?bn.length-1:fo.length-1;for(let ut=0;ut<=I;ut++)Aa.push(ut);const F=ut=>{const tn=ut.splice(ha,Ft);ut.splice(Ko,0,...tn)};let oe;ae?((0,od.SS)(Fe)?oe=(0,o0.A8)({database:(0,o0.Nf)(Fe),areaStart:ha,dragLength:Ft,moveIndex:Ko}):(pn.forEach(ut=>{F(ut)}),to.forEach(ut=>{F(ut)}),Po.forEach(ut=>{F(ut)}),F(bn)),F(Aa)):((0,od.SS)(Fe)?oe=(0,o0.gh)({database:(0,o0.Nf)(Fe),areaStart:ha,dragLength:Ft,moveIndex:Ko}):(F(pn),F(to),F(Po),F(fo)),F(Aa));const be={};Object.entries(Ho).some(ut=>{let[tn,Xt]=ut;if(ae){const[Kn,ao]=tn.split("-"),K=Aa.indexOf(Number(Kn))+"-"+ao;be[K]=Xt}else{const[Kn,ao]=tn.split("-"),v=Aa.indexOf(Number(ao)),K=Kn+"-"+v;be[K]=Xt}}),Ke.mergeCells=be,U({type:"entry:widget:change",payload:{flatChgList:[{key:Pe,hotAttr:{tableData:Ke,...oe}}]}}),ge=ge>de?Math.max(ge-Ft,0):ge;const Mt=ae?{x1:ge,y1:0,x2:ge+Ft-1,y2:le-1}:{x1:0,y1:ge,x2:le-1,y2:ge+Ft-1};U({type:"table:update:info",payload:{isMouseDownInTable:!1}}),(0,a0.Z)({widget:H,...Mt,isDragSelected:!0}),(0,wl.of)(ae?"row":"column")},za=mn.Ay.div.withConfig({displayName:"styles__TableRowOrColumnDragStyle",componentId:"sc-1qgg2iu-0"})(["display:flex;position:absolute;align-items:center;overflow:hidden;background-color:#E5E5E5;border-top-left-radius:3px;&.horizontal-drag{left:0;top:-","px;height:","px;border-top-right-radius:3px;}&.vertical-drag{border-bottom-left-radius:3px;flex-direction:column;top:0;left:-","px;height:100%;width:","px;}"],Xd,Nc,Xd,Nc),Qa=mn.Ay.div.withConfig({displayName:"styles__TableDragStyled",componentId:"sc-1qgg2iu-1"})(["cursor:pointer;width:100%;height:100%;overflow:hidden;pointer-events:all;&.is-dragging{cursor:grabbing;}&.is-selected{background-color:#1685FC;cursor:grab;}&:not(.is-selected):not(.is-dragging):hover{background-color:#B8BCBF;}"]),rr=mn.Ay.div.withConfig({displayName:"styles__TableDragMoveStyled",componentId:"sc-1qgg2iu-2"})(["display:flex;position:absolute;width:60px;height:90px;z-index:1;overflow:hidden;flex-direction:column;border-radius:4px;border:1px solid #1685FC;.drag-move-top{width:100%;height:10px;background-color:#1685FC;}.drag-move-number{width:100%;height:calc(100% - 10px);display:flex;align-items:center;justify-content:center;color:#333;font-family:PingFang SC;font-size:14px;background-color:rgba(218,235,254,0.7);}&.is-row{width:110px;height:40px;flex-direction:row;.drag-move-top{width:10px;height:100%;background-color:#1685FC;}.drag-move-number{width:calc(100% - 10px);height:100%;}}"]),Ji=(0,a.memo)($=>{let{isHorizontal:U,values:H,widget:ae,scale:de,setHoverIndexAndType:ge}=$;const le=(0,k.d4)(wd.zX),Ee=(0,k.d4)(wd.sx),Pe=(0,k.wA)(),Fe=(0,a.useRef)(null),[Ke,ct]=(0,a.useState)([]),[vt,Ft]=(0,a.useState)([]),[pn,bn]=(0,a.useState)(!1),[to,Po]=(0,a.useState)({left:0,top:0}),fo=U?"drag-row":"drag-column",Ho=1*de,Ko=U?{top:"-"+Nc+"px",width:"calc(100% + "+Ho+"px)"}:{left:"-"+Nc+"px",height:"calc(100% + "+Ho+"px)"};let ha;const{hotAttr:Aa}=ae,{heightList:I,widthList:F,tableData:oe}=Aa;if((0,od.SS)(Aa))ha=U?I.length:F.length;else{var be,Mt;ha=U?oe==null||(be=oe.rows)==null?void 0:be.length:oe==null||(Mt=oe.columns)==null?void 0:Mt.length}(0,a.useEffect)(()=>{if(!le||!Aa){ct([]),Ft([]);return}const{selRows:K,selColumns:te}=ke(Aa,le);ct(K),Ft(te)},[le,Aa,H,de]);const ut=(0,a.useCallback)(K=>{const{clientX:te,clientY:me}=K;MB.action("entry:contextmenu:withtype",{position:{top:me,left:te}}),(0,M0.t0)({isShowTableDragMenu:!0,tableRightClickDragInfo:{isHorizontal:U,index:Number(K.target.dataset.index)}})},[U]),tn=(0,a.useCallback)(K=>U?vt.includes(K):Ke.includes(K),[U,Ke,vt]),Xt=(0,a.useCallback)(K=>{const te=Number(K.target.dataset.index),me=K.shiftKey;tn(te)||(Ve({isHorizontal:U,isShiftDown:me,index:te,selectTableCellInfo:le,widget:ae}),(0,M0.KN)("isEditTable",!0))},[ae,le,U,tn]),Kn=(0,wp.nF)((0,a.useCallback)(()=>{MB.notice({text:I18N.Popups.do_not_drag_table_merge_cell,type:"warning"})},[]),1e3,!0),ao=K=>{K.stopPropagation();const te=Number(K.target.dataset.index),me=tn(te),$e=K.clientX,nt=K.clientY;let yt=0,dt=0,It=!1,un=0,xn=!1;if(me||Xt(K),K.button===2){ut(K);return}if(Pe({type:"table:update:info",payload:{isMovingInDrag:!0}}),me){xn=Ye(U,ae,le);const Co=Fe.current.getBoundingClientRect();yt=K.clientX-Co.left,dt=K.clientY-Co.top,Po({left:yt,top:dt})}const gn=wt({widget:Aa,scale:de,isHorizontal:U,selectRowsOrColumns:U?vt:Ke,values:H}),wo=Co=>{if(me){if(!xn){Kn();return}It=!0,bn(!0),Pe({type:"table:update:info",payload:{isDragging:!0}});const Eo=Co.clientX-$e+yt,go=Co.clientY-nt+dt,xo=U?Eo:go,jo=gn.find(pa=>{let{hotZoonStart:na,hotZoonEnd:Ma}=pa;return xo<=Ma&&xo>=na});ge(jo?{rtype:U?"v":"h",index:""+jo.index}:null),un=jo?jo.index:-1,Po({left:Eo,top:go})}else{if(Co.target.dataset.horizontal!==fo)return;const Eo=Co.target.dataset.index;if(te>=0&&Eo>=0){const go=Eo>=te?Eo:te,xo=Eo<te?Eo:te,jo=U?{x1:xo,y1:0,x2:go,y2:ha-1}:{x1:0,y1:xo,x2:ha-1,y2:go};(0,a0.Z)({widget:ae,...jo,isDragSelected:!0})}}},vo=()=>{bn(!1),ge(null),Pe({type:"table:update:info",payload:{isDragging:!1,isMovingInDrag:!1}}),It&&un>=0&&ae&&Ua({dispatch:Pe,widget:ae,isHorizontal:U,selectRowsOrColumns:U?vt:Ke,dragMoveIndex:un,startIndex:te,rowOrColumnNum:ha}),document.removeEventListener("mousemove",wo),document.removeEventListener("mouseup",vo)};document.addEventListener("mousemove",wo),document.addEventListener("mouseup",vo)},v=(0,a.useMemo)(()=>{let K=U?I18N.ContextMenu.table_drag_total_column.replace("%num",vt.length):I18N.ContextMenu.table_drag_total_row.replace("%num",Ke.length);const te=U?vt.length:Ke.length;return ENV.IS_MO&&te>1&&(K=K+"s"),K},[U,vt,Ke]);return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(za,{className:U?"horizontal-drag":"vertical-drag",ref:Fe,style:Ko,children:H&&H.map((K,te)=>{let me=!1;(U?vt.length>0:Ke.length>0)?me=U?vt.at(-1)===te:Ke.at(-1)===te:me=te===H.length-1;const nt=me?Ho:0;return(0,Ce.jsx)(Qa,{"data-index":te,"data-horizontal":fo,className:dn()(fo,tn(te)&&"is-selected",Ee&&"is-dragging"),style:U?{width:K*de+nt+"px"}:{height:K*de+nt+"px"},onMouseDown:ao},te)})}),pn&&(0,Ce.jsxs)(rr,{className:!U&&"is-row ",style:to,children:[(0,Ce.jsx)("div",{className:"drag-move-top"}),(0,Ce.jsx)("div",{className:"drag-move-number",children:v})]})]})});var Jr=i(175);class qi extends a.PureComponent{constructor(){var U;super(...arguments),U=this,(0,ve.A)(this,"state",{v:[],h:[],startX:null,startY:null,selectLineInfo:null,widths:[],heights:[],isResizeCell:!1,hoverIndexAndType:null,originTopLeft:[0,0],isDragSelectIndex:!1,dragWidths:[],dragHeights:[]}),(0,ve.A)(this,"setWidthHeight",function(H){H===void 0&&(H=U.props);const{widget:{hotAttr:ae},scale:de}=H,{widthList:ge,heightList:le,tableData:Ee}=ae;let Pe,Fe;(0,od.SS)(ae)?(Pe=ge,Fe=le):(Pe=Ee.columns.map(Ke=>Ke.width),Fe=Ee.rows.map(Ke=>Ke.height)),U.setState({widths:Pe,heights:Fe}),U.init(Pe,Fe,de)}),(0,ve.A)(this,"init",function(H,ae,de){de===void 0&&(de=U.props.scale);const ge=de/100,le=[0],Ee=[0];H.reduce((Pe,Fe)=>(Pe=Pe+Fe*ge,le.push(Pe),Pe),0),ae.reduce((Pe,Fe)=>(Pe=Pe+Number.parseFloat(Fe)*ge,Ee.push(Pe),Pe),0),U.setState({v:Ee,h:le,dragWidths:H,dragHeights:ae})}),(0,ve.A)(this,"handleDown",H=>{const{widget:{hotAttr:{x:ae,y:de}}}=this.props,{rtype:ge,index:le}=H.currentTarget.dataset,{clientX:Ee,clientY:Pe}=H;H.stopPropagation(),sdkStore.combineMergeMark("drag-table-cell"),this.setState({startX:Ee,startY:Pe,selectLineInfo:{rtype:ge,index:le},originTopLeft:[ae,de]}),this.setState({isResizeCell:!0}),(0,M0.t0)({isResizeCell:!0})}),(0,ve.A)(this,"handleMouseUp",()=>{const{selectLineInfo:H}=this.state,{widget:ae}=this.props;H&&((0,Jr.On)(ae),this.setState({startX:null,startY:null,selectLineInfo:null}),(0,M0.t0)({isResizeCell:!1}),this.setWidthHeight(),this.setState({isResizeCell:!1}),sdkStore.combineMerge("drag-table-cell"))}),(0,ve.A)(this,"onDrag",H=>{const{selectLineInfo:ae,startX:de,startY:ge,widths:le,heights:Ee}=this.state,{widget:Pe,scale:Fe}=this.props,Ke=Fe/100;if(!ae)return;const ct=[...le],vt=[...Ee],{rtype:Ft,index:pn}=ae,bn=Math.ceil(Number(H.clientX-(de||0))/Ke),to=Math.ceil(Number(H.clientY-(ge||0))/Ke),Po=pn===0?0:pn-1;if(Ft==="h"){const Ho=Number.parseFloat(vt[Po])+to;if(Ho<S1.__)return;vt[Po]+=to;const Ko=(0,S1.M$)(Pe,Number(Po),Ho);MB.action("entry:table:widget:change",{data:Ko})}if(Ft==="v"){const Ho=Number.parseFloat(ct[Po])+bn;if(Ho<S1.__)return;ct[Po]+=bn;const Ko=(0,S1.V0)(Pe,Number(Po),Ho);MB.action("entry:table:widget:change",{data:Ko})}this.init(ct,vt)}),(0,ve.A)(this,"handleAddRows",H=>{if(H.buttons===2)return;H.stopPropagation();const{widget:ae}=this.props,{index:de}=H.currentTarget.dataset,ge=Number(de),le=(0,S1.BG)(ae,1,Math.max(ge-1,0),ge===0);le&&((0,Jr.On)(le),(0,wl.Wv)(1))}),(0,ve.A)(this,"handleAddColumns",H=>{if(H.buttons===2)return;H.stopPropagation();const{widget:ae}=this.props,{index:de}=H.currentTarget.dataset,ge=Number(de),le=(0,S1.GF)(ae,1,Math.max(ge-1,0),ge===0);le&&((0,Jr.On)(le),(0,wl.qt)(1))}),(0,ve.A)(this,"onAddHandleMouseLeave",H=>{const{rtype:ae,index:de}=H.currentTarget.dataset;this.setState({isDragSelectIndex:!1,hoverIndexAndType:{rtype:ae,index:de}}),setTimeout(()=>{this.setState({isDragSelectIndex:!1,hoverIndexAndType:null})},350)}),(0,ve.A)(this,"setHoverIndexAndType",H=>{this.setState({isDragSelectIndex:!0,hoverIndexAndType:H})})}componentDidMount(){this.setWidthHeight()}UNSAFE_componentWillUpdate(U,H){const{widget:ae,scale:de}=U,{widget:ge,scale:le}=this.props,{h:Ee,w:Pe,tableData:Fe}=ae.hotAttr,{h:Ke,w:ct,tableData:vt}=ge.hotAttr,{isResizeCell:Ft}=H;((ct!==Pe||Ee!==Ke||Fe!==vt)&&!Ft||de!==le)&&this.setWidthHeight(U)}componentWillUnmount(){(0,M0.t0)({selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),(0,M0.KN)("isEditTable",!1)}render(){const{isMouseDownInTable:U,widget:H,scale:ae,isResizingItem:de,isEditTable:ge,isTableDragging:le}=this.props,{v:Ee,h:Pe,selectLineInfo:Fe,hoverIndexAndType:Ke,isDragSelectIndex:ct,dragWidths:vt,dragHeights:Ft,isResizeCell:pn}=this.state,{w:bn,h:to,isLock:Po}=H.hotAttr;if(Po)return null;const fo=!!(Fe&&Fe.rtype==="v"),Ho=!!(Fe&&Fe.rtype==="h"),Ko=ae/100,{transform:ha,rect:Aa}=(0,cn.Oj)(H.key),{x:I,y:F}=ha.clone().apply({x:Aa.x,y:Aa.y}),{a:oe,b:be,c:Mt,d:ut}=ha,tn={left:I*Ko,top:F*Ko,width:bn*Ko,height:to*Ko,transform:"matrix("+oe+","+be+","+Mt+","+ut+",0,0)",transformOrigin:"0px 0px"},Xt={indexAndType:Ke,widget:H,radio:Ko,onAddHandleMouseLeave:this.onAddHandleMouseLeave};return(0,Ce.jsxs)(bp,{className:"tableResize",style:tn,children:[!fo&&ge&&!U&&Ee.map((Kn,ao)=>(0,Ce.jsx)("div",{"data-index":ao,"data-rtype":"h",onMouseDown:this.handleDown,className:dn()("horizontal",le&&"is-table-dragging"),style:{top:Kn-1+"px"}},Kn)),!Ho&&ge&&!U&&Pe.map((Kn,ao)=>(0,Ce.jsx)("div",{"data-index":ao,"data-rtype":"v",onMouseDown:this.handleDown,className:dn()("vertical",le&&"is-table-dragging"),style:{left:Kn-1+"px"}},Kn)),!de&&!pn&&(0,Ce.jsxs)(Ce.Fragment,{children:[[vt,Ft].map((Kn,ao)=>(0,Ce.jsx)(Ji,{values:Kn,scale:Ko,isHorizontal:ao===0,widget:H,setHoverIndexAndType:this.setHoverIndexAndType},ao)),[Ee,Pe].map((Kn,ao)=>(0,Ce.jsx)(Qd,{...Xt,isRow:ao===0,values:Kn,isDragSelect:ct,handleAddRows:this.handleAddRows,handleAddColumns:this.handleAddColumns},ao))]}),Fe&&(0,Ce.jsx)(Ia.A,{target:document,onMouseMove:this.onDrag,onMouseUp:this.handleMouseUp})]})}}function jr($){if($.isDraggingItem||!$.widget||$.onlyView)return null;const{isSpaceDown:U,isCtrlDown:H}=$.keyFlags;return U||H?null:(0,Ce.jsx)(qi,{...$})}const zi=(0,oo.Mz)([l.X_,l.Jv,br.nE,wd.tS,wd.p$,D.jx,wd.sx,l.pO,l.ZS],($,U,H,ae,de,ge,le,Ee,Pe)=>{var Fe;let Ke=null;const ct=ge===h.qi.OnlyView;return((Fe=H[0])==null?void 0:Fe.hotAttr.type)===m.x.WTable&&(Ke=H[0]),{scale:$,widget:Ke,isResizingItem:U,isEditTable:ae,isMouseDownInTable:de,onlyView:ct,isTableDragging:le,isDraggingItem:Ee,keyFlags:Pe}}),Ki=(0,k.Ng)($=>zi($))(jr);var Zr=i(24457),Si=i(29158);const Ii=mn.Ay.div.withConfig({displayName:"styles__StyledFixedSlider",componentId:"sc-1ljh147-0"})(["position:absolute;width:0;.slider{position:absolute;width:3px;top:0;left:-15px;bottom:0;background:transparent;pointer-events:auto;}"]),_i=25,ii=16,$i=mn.Ay.div.withConfig({displayName:"styles__StyledArrowSlider",componentId:"sc-1ljh147-1"})(["position:absolute;cursor:grab;margin-left:-15px;width:","px;height:","px;&.hh{margin-top:-7px;}&.fh{margin-bottom:-10px;}&:active{cursor:grabbing;}.slider-arrow{width:22px;height:13px;.main{fill:",";}.fore{fill:#fff;}}.slider-line{position:absolute;top:6px;left:30px;width:320px;border-top:1px dashed ",";z-index:65535;}.slider-number{position:absolute;top:0;left:-25px;font-size:12px;line-height:","px;color:#f54edb;}.slider-vertical-surface{position:absolute;left:30px;background:rgba(255,0,255,0.2);z-index:65535;&.hh{bottom:10px;}&.fh{top:7px;}}"],_i,ii,$=>$.theme.color_proto,$=>$.theme.color_proto,ii),Ta=($,U,H)=>{const ae=[],de=$.getHotItem(U).hotAttr.h;return $.walkHotItemSubtree2(U,ge=>{if((0,ea.OO)(ge.key))return Si.NU;const{y:le,h:Ee}=$.getRelocateLocalBound(ge.key,U);ae.push(H?le-Ee/2:de-(le-Ee/2)),ae.push(H?le+Ee/2:de-(le+Ee/2))}),ae};class vi extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleDown",U=>{U.stopPropagation();const{screenCid:H,attr:ae,value:de,editingRichText:ge,dispatch:le}=this.props;ge&&le({type:"quit:rich:text:editing"});const Ee=U.clientY,Pe=de,Fe=Ta(sdkStore,H,ae==="hh");le({type:"set:numberLineType:show",payload:{type:ae}}),le({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),le({type:"entry:update:selection:select:items",payload:{cids:[H]}}),sdkStore.combineMergeMark("drag-fixed-h");const Ke=vt=>{const{attr:Ft,screenHeight:pn,scale:bn,onChange:to}=this.props,Po=(vt.clientY-Ee)/(bn/100);let fo;Ft==="hh"?fo=Pe+Po:fo=Pe-Po,fo<0&&(fo=0),fo>pn&&(fo=pn),Fe.forEach(Ho=>{Math.abs(fo-Ho)<=5&&(fo=Ho)}),to(Math.round(fo))},ct=()=>{le({type:"set:numberLineType:show",payload:{type:""}}),le({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),document.removeEventListener("mousemove",Ke),document.removeEventListener("mouseup",ct),sdkStore.combineMerge("drag-fixed-h")};document.addEventListener("mousemove",Ke),document.addEventListener("mouseup",ct)})}render(){const{attr:U,value:H,scale:ae,screenWidth:de,showNumberLineType:ge}=this.props,le=ae/100,Ee=H*le,Pe=U==="hh"?{top:Ee}:{bottom:Ee},Fe=de,Ke=Fe-2>0?Fe-2:0,ct=Ee-2>0?Ee-2:0;return(0,Ce.jsxs)($i,{style:Pe,className:dn()("slider-wrapper",U),onMouseDown:this.handleDown,children:[(0,Ce.jsx)(ps.C,{className:"slider-arrow",name:"design/slider_arrow"}),ge===U&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)("span",{className:"slider-line",style:{width:Fe}}),(0,Ce.jsx)("span",{className:dn()("slider-vertical-surface",U),style:{width:Ke+2,height:ct+1}}),(0,Ce.jsx)("span",{className:"slider-number",children:H})]})]})}}const Yi=$=>{const U=(0,l.v7)($),H=(0,l.X_)($),ae=(0,Zr.c)($);return{showNumberLineType:U,scale:H,editingRichText:ae}};class hl extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleHeaderHeight",U=>{const{widget:{key:H,hotAttr:ae},dispatch:de}=this.props,{stickyFooterHeight:ge,h:le}=ae;U+ge>le-14&&(U=le-ge-14),de({type:"entry:widget:change",payload:{flatChgList:[{key:H,hotAttr:{stickyHeaderHeight:U}}]}})}),(0,ve.A)(this,"handleFooterHeight",U=>{const{widget:{key:H,hotAttr:ae},dispatch:de}=this.props,{stickyHeaderHeight:ge,h:le}=ae;U+ge>le-14&&(U=le-ge-14),de({type:"entry:widget:change",payload:{flatChgList:[{key:H,hotAttr:{stickyFooterHeight:U}}]}})})}render(){const{widget:U,scale:H,showNumberLineType:ae,editingRichText:de,dispatch:ge}=this.props,{key:le,hotAttr:{asOverlay:Ee,h:Pe,stickyHeaderHeight:Fe,stickyFooterHeight:Ke}}=U;if(!(!Ee&&Pe*H/100>=110))return null;const vt=H/100,{x:Ft,y:pn,r:bn,w:to,h:Po}=sdkStore.getHotBound(le),fo={height:Po*vt,transform:"translate("+(Ft-to*.5)*vt+"px,"+(pn-Po*.5)*vt+"px) rotate("+bn+"deg)"},Ho=Fe<=Pe,Ko=Fe+Ke<=Pe-14;return(0,Ce.jsx)(Ii,{style:fo,children:(0,Ce.jsxs)("div",{className:"slider",children:[Ho&&(0,Ce.jsx)(vi,{attr:"hh",value:Fe,scale:H,screenCid:le,screenWidth:to*vt,screenHeight:Po,showNumberLineType:ae,editingRichText:de,onChange:this.handleHeaderHeight,dispatch:ge}),Ko&&(0,Ce.jsx)(vi,{attr:"fh",value:Ke,scale:H,screenCid:le,screenWidth:to*vt,screenHeight:Po,showNumberLineType:ae,editingRichText:de,onChange:this.handleFooterHeight,dispatch:ge})]})})}}const _s=(0,k.Ng)(Yi)(hl),As=(0,oo.Mz)([br.nE],$=>{if($.length===1&&$[0].hotAttr.type===m.x.Canvas)return $[0]}),ql=(0,oo.Mz)([D.jI,D.bt,As],($,U,H)=>$||U||!H?{isShow:!1}:{isShow:!0,canvas:H}),dc=()=>{const{isShow:$,canvas:U}=(0,k.d4)(H=>ql(H));return $?(0,Ce.jsx)(_s,{widget:U}):null},Hl=(0,a.memo)(dc),gd=mn.Ay.div.withConfig({displayName:"styles__StyleCodeTooltip",componentId:"sc-cs11vq-0"})([".behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class ss extends a.PureComponent{render(){var U;const{hoverItem:H,scale:ae,isShow:de}=this.props;if(!de)return null;const ge=sdkStore.getHotItem(H);if(!ge||ge!=null&&(U=ge.hotAttr)!=null&&U.isLock)return null;const{transform:le,rect:Ee}=(0,cn.Oj)(H),{a:Pe,b:Fe,c:Ke,d:ct}=le,{x:vt,y:Ft}=le.clone().scale(ae/100,ae/100).apply({x:Ee.x,y:Ee.y}),{x:pn,y:bn}=J.Z.mul(J.Z.xy(Ee.w,Ee.h),ae/100),to={position:"absolute",overflow:"hidden",left:vt,top:Ft,width:pn,height:bn,transform:"matrix("+Pe+","+Fe+","+Ke+","+ct+",0,0)",transformOrigin:"0px 0px"};return(0,Ce.jsx)(gd,{style:to,children:(0,Ce.jsx)("div",{className:"behavior",children:(0,Ce.jsx)("p",{children:"\u53CC\u51FB\u7F16\u8F91 AI \u7EC4\u4EF6"})})})}}const fs=(0,oo.Mz)([D.IL,l.X_,l.pO,Zd.Ag,Zd.ul,br.nE],($,U,H,ae,de)=>{if(!$||H)return{isShow:!1};const ge=sdkStore.getHotItem($),le=ae==null?void 0:ae.key;return(ge==null?void 0:ge.hotAttr.type)!==m.x.WCode||$===le||$===de?{isShow:!1}:{isShow:!0,hoverItem:$,scale:U}}),Wi=(0,k.Ng)($=>fs($))(ss);var es=i(7018);const xs=["\u901A\u8FC7\u591A\u6B65\u8C03\u6574\u6765\u4E0D\u65AD\u5B8C\u5584\u7EC4\u4EF6","\u660E\u786E\u5177\u4F53\u7684\u63D0\u793A\u8BCD\u6548\u679C\u66F4\u4F73","\u9009\u4E2D\u7EC4\u4EF6\u5185\u5143\u7D20\u6765\u5B9E\u73B0\u7CBE\u786E\u8C03\u6574","\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5177\u6709\u8BEF\u5BFC\u6027\u6216\u9519\u8BEF","Al\u751F\u6210\u7ED3\u679C\u5177\u6709\u968F\u673A\u6027\uFF0C\u53EF\u591A\u6B21\u5C1D\u8BD5"],Ui=$=>{var U;return $==null||(U=$.screencontainer)==null?void 0:U.dragEventState},Ns=$=>{var U;return $==null||(U=$.screencontainer)==null?void 0:U.resizeEventState},Uc=($,U)=>{const H=(0,k.d4)(Ui),ae=(0,k.d4)(Ns),de=(0,a.useRef)({}),ge=()=>{if(!$||!sdkStore.getHotItem($)||sdkStore.isTrashed($))return{};const{transform:le,rect:Ee}=(0,cn.Oj)($),{a:Pe,b:Fe,c:Ke,d:ct}=le,{x:vt,y:Ft}=le.clone().scale(U,U).apply({x:Ee.x,y:Ee.y}),{x:pn,y:bn}=J.Z.mul(J.Z.xy(Ee.w,Ee.h),U);return{position:"absolute",overflow:"hidden",left:vt,top:Ft,width:pn,height:bn,transform:"matrix("+Pe+","+Fe+","+Ke+","+ct+",0,0)",transformOrigin:"0px 0px"}};return de.current=ge(),(0,a.useEffect)(()=>{var le,Ee;(H!=null&&H.isActive&&H!=null&&(le=H.preDragSnapshot)!=null&&le[$]||ae!=null&&ae.isActive&&ae!=null&&(Ee=ae.preResizeSnapshot)!=null&&Ee[$])&&(de.current=ge())},[H,$]),de.current},ic=$=>{const U=xs.length,[H,ae]=(0,a.useState)(Math.floor(Math.random()*U));return(0,a.useEffect)(()=>{if(!$)return;const de=setInterval(()=>{ae((H+1)%U)},8e3);return()=>clearInterval(de)},[H,$,U]),xs[H]},Fc=()=>{const $=(0,k.d4)(Zd.ul),U=$&&sdkStore.getHotItem($);return{isShowLoading:(0,a.useMemo)(()=>$&&U&&!sdkStore.isTrashed($),[$,U])}},Nh=()=>{const $=(0,k.d4)(Zd.ul),U=(0,k.d4)(l.X_),H=$&&sdkStore.getHotItem($),ae=U/100,{w:de,h:ge,injection:le}=(H==null?void 0:H.hotAttr)||{},Ee=(0,es.f)(le),Pe=(0,a.useMemo)(()=>{const{x:ct,y:vt}=J.Z.mul(J.Z.xy(de,ge),ae);return H&&Number(ct)>240&&Number(vt)>180&&!Ee.includes("<body")},[de,ge,ae,H,Ee]),Fe=ic(Pe),Ke=Uc($,U/100);return{isShowTips:Pe,text:Fe,style:Ke}},Bu=mn.Ay.div.withConfig({displayName:"style__StyledCodeLoadingTip",componentId:"sc-1hj0d6h-0"})(["position:absolute;height:100%;width:100%;left:0;top:0;.loading-container{width:50%;height:50%;max-width:66px;max-height:66px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}.loading-icon{width:100%;height:100%;display:flex;justify-content:center;align-items:center;animation:loading 1s infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.progress{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:rgba(22,132,252,1);font-size:16px;}.tips-container{position:absolute;bottom:10px;left:0;right:0;margin:auto;width:max-content;color:rgba(0,0,0,0.9);background-color:#F1F8FF;border:1px solid rgba(214,232,255,1);padding:6px 8px;border-radius:6px;display:flex;align-items:center;.tips-icon{width:20px;height:20px;margin-right:6px;}}"]),Sp=()=>{const{isShowLoading:$}=Fc();return $?(0,Ce.jsx)(nh,{}):null},nh=()=>{const{isShowTips:$,text:U,style:H}=Nh();return(0,Ce.jsxs)(Bu,{style:H,children:[(0,Ce.jsx)("div",{className:"loading-container",children:(0,Ce.jsx)(ps.C,{className:"loading-icon",name:"chatGPT/ai-component/generate-loading",isColorPure:!0})}),$&&(0,Ce.jsxs)("div",{className:"tips-container",children:[(0,Ce.jsx)(ps.C,{className:"tips-icon",name:"chatGPT/ai-component/generate-tips",isColorPure:!0}),(0,Ce.jsx)("span",{children:U})]})]})};var B=i(53439),R=i(89759),A=i(63405),u=i(456),x=i(63274);const b=($,U)=>{var H;return!$||!U?!1:(H=$==null?void 0:$.isSameNode(U))!=null?H:!1},T=(0,a.memo)(()=>{const $=(0,k.d4)(Zd.Ag),U=(0,k.d4)(l.X_),{key:H,editingMode:ae,selectedElementState:de,hoverElementState:ge,editStore:le,iframe:Ee}=$||{},Pe=(0,a.useMemo)(()=>U/100,[U]),Fe=(0,u.I)(H,ge==null?void 0:ge.rect,Pe),Ke=(0,u.I)(H,de==null?void 0:de.rect,Pe),ct=(0,a.useMemo)(()=>!ge||!Fe?null:{...ge,rect:Fe},[ge,Fe]),vt=(0,a.useCallback)(bn=>{H&&MB.action("ai-component:update:editingAIComponentInfo",{updateInfo:{editingMode:bn}})},[H]),Ft=2,pn=1;return!H||!$||!sdkStore.getHotItem(H)||sdkStore.isTrashed(H)?null:(0,Ce.jsxs)(z,{children:[ae!=="drag"&&ge&&Fe&&!b(ge.element,de==null?void 0:de.element)&&(0,Ce.jsx)(R.A,{outline:Fe,offset:-1,zIndex:1e4,outlineWidth:Ft}),de&&Ke&&(0,Ce.jsx)(R.A,{outline:Ke,offset:-1,zIndex:1e4,outlineWidth:pn}),ae!=="text"&&ct&&Ee&&(0,Ce.jsx)(B.A,{widgetKey:H,iframe:Ee,editingMode:ae,element:ct,editStore:le,onUpdateEditingMode:vt,zIndex:1e4,outlineWidth:pn,ratio:Pe}),(0,Ce.jsx)(A.TA,{removeRejectElement:x.yp})]})}),L=()=>{const $=(0,k.d4)(Zd.Ag);return $!=null&&$.key?(0,Ce.jsx)(T,{}):null},z=mn.Ay.div.withConfig({displayName:"CodeEditingStatus__StyledCodeEditingStatus",componentId:"sc-hcnsj4-0"})(['position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:10000;[data-editor-ui="dnd-setter"]{pointer-events:auto;}[data-editor-ui="outline-box"]{pointer-events:none;}']),W=$=>{let{type:U}=$;if(!U)return null;switch(U){case m.x.WSwimlane:return(0,Ce.jsx)(Dd,{});case m.x.WFlowOpened:case m.x.wFlowClosed:return(0,Ce.jsx)(Yd,{});case m.x.WTable:return(0,Ce.jsx)(Ki,{});case m.x.Canvas:return(0,Ce.jsx)(Hl,{});default:return null}},X=$=>{let{type:U,isElbowMode:H}=$;return U?(0,Ce.jsxs)(Ce.Fragment,{children:[U===m.x.WBasket&&(0,Ce.jsx)(t2,{}),U===m.x.WCode&&(0,Ce.jsx)(Wi,{}),H&&(0,Ce.jsx)(Z0.uw,{})]}):null},ee=(0,oo.Mz)([D.IL,kd.P2,br.p$,D.lY,u1.Q1,u1.rP,D.pq],($,U,H,ae,de,ge,le)=>{var Ee,Pe;const Fe=$&&((Ee=sdkStore.getHotItem($))==null||(Ee=Ee.hotAttr)==null?void 0:Ee.type),Ke=(H==null?void 0:H.length)===1&&H[0],ct=Ke&&((Pe=sdkStore.getHotItem(Ke))==null||(Pe=Pe.hotAttr)==null?void 0:Pe.type);return{isEditingImageWrapperCid:U,singleSelectItemType:ct,hoverItemType:Fe,enableVectorEditor:!!ae,isElbowMode:de||ge,isPencilMode:!!le}}),ye=(0,a.memo)(()=>{const{isEditingImageWrapperCid:$,singleSelectItemType:U,hoverItemType:H,enableVectorEditor:ae,isElbowMode:de,isPencilMode:ge}=(0,k.d4)(ee);return(0,Ce.jsxs)(Ce.Fragment,{children:[$&&(0,Ce.jsx)(su,{}),ae&&(0,Ce.jsx)(E2,{}),ge&&(0,Ce.jsx)(w0,{}),(0,Ce.jsx)(W,{type:U}),(0,Ce.jsx)(X,{type:H,isElbowMode:de}),(0,Ce.jsx)(Sp,{}),(0,Ce.jsx)(L,{})]})});var Ie=i(78401),Ue=i(32286),Re=i(89054),ze=i(28068),st=i(4820),xt=i(39679),Nt=i(70169),$t=i(46745),An=i(86493),zn=i(55584),lo=i(46199);const Qn=mn.Ay.div.withConfig({displayName:"styles__StyledTextEditor",componentId:"sc-1qetlj9-0"})(["&.editor{display:flex;position:absolute;top:0;left:0;min-width:12px;min-height:12px;z-index:16;outline:none;overflow:hidden;background-color:lightblue;border-color:transparent;user-select:text;pointer-events:auto;}*{user-select:text;}.text{width:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}}&.wMTextarea{p{margin-bottom:0;}}&.wMTooltip .text{position:static;padding:0 !important;}&.wElbow{border:1px solid #1684fc;border-radius:4px;}&.hleft{justify-content:flex-start;}&.hcenter{justify-content:center;}&.hright{justify-content:flex-end;}&.vtop{align-items:flex-start;}&.vmiddle{align-items:center;}&.vertical-lr{writing-mode:vertical-lr;}&.horizontal-tb{writing-mode:horizontal-tb;}&.vbottom{align-items:flex-end;}"]);function Sn($){let{widget:U}=$;if((0,lo.kY)(U)||U.type===m.x.WElbow){const{placeholderStyle:H,placeholderHTML:ae}=(0,lo.s3)(U);return(0,Ce.jsx)(Qn,{style:{...H},dangerouslySetInnerHTML:{__html:ae}})}else return null}class Wo extends a.Component{constructor(U){super(U),(0,ve.A)(this,"setElementRef",ae=>this.$elem=ae),(0,ve.A)(this,"handleMouseDown",ae=>{const{dispatch:de}=this.props;ae.button===2&&(ae.preventDefault(),de({type:"open:contextmenu",payload:{position:{top:ae.clientY,left:ae.clientX}}})),ae.stopPropagation()}),(0,ve.A)(this,"handleKeyDown",ae=>{const{dispatch:de,item:ge}=this.props,le=ae.key===Ts._.Escape,Ee=ae.key===Ts._.Enter,Pe=ae.metaKey||ae.ctrlKey;(le||Pe&&Ee)&&((0,Re.ay)(ge,"remove"),de({type:"set:editing:cid",payload:{cid:""}}),de(h.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})))}),(0,ve.A)(this,"handleSave",()=>{const{dispatch:ae,item:de,item:{key:ge,hotAttr:le}}=this.props,Ee=this.getEditorContent(),Pe=(0,m0.m5)(le),Fe=Pe&&Ee!==(0,m0.U_)(Pe),Ke=(0,Nt.oB)(de,Ee.split("\n"),Fe?void 0:Pe).hotAttr;ae({type:"entry:widget:change",payload:{flatChgList:[{key:ge,hotAttr:Ke}]}})}),(0,ve.A)(this,"handleInput",()=>{const{item:{hotAttr:ae}}=this.props,{needPlaceholder:de}=this.state,ge=this.getEditorContent();this.prevText!==ge&&(this.prevText=ge,((0,lo.kY)(ae)||ae.type===m.x.WElbow)&&(ge!==""&&de?this.setState({needPlaceholder:!1}):ge===""&&!de&&this.setState({needPlaceholder:!0})))}),(0,ve.A)(this,"handleCopy",ae=>{var de;const{item:{hotAttr:ge}}=this.props,{textV0:le={}}=ge,Ee=((de=window.getSelection())==null?void 0:de.toString())||"",Pe=(0,xt.lN)(Ee),Fe=(0,$t.n)((0,An.mx)(Pe)),Ke=ze.$t.forceSelection(Fe,new ze.wc({anchorKey:"#000000",anchorOffset:0,focusKey:"#000000",focusOffset:Ee.length,isBackward:!1,hasFocus:!1})),ct=le.textDecoration==="normal"?{}:le.textDecoration==="underline"?{underline:!0}:le.textDecoration==="line-through"?{strikethrough:!0}:{},vt={...(0,st.$$)(),textColor:(0,x1.t0)(le.textColor),bold:le.bold,italic:le.italic,fontSize:le.fontSize,lineHeight:le.lineHeight,...ct},Ft=(0,zn.vd)({editorState:Ke,richTextV1:vt});ae.preventDefault(),ae.clipboardData.setData("text/html",Ft),ae.clipboardData.setData("text/plain",Ee)});const{item:{hotAttr:H}}=U;this.state={needPlaceholder:H.type===m.x.WElbow?H.textV0.text==="":(0,lo.kY)(H)?(0,G0.vr)(H).needShowPlaceholder:!1}}componentDidMount(){MB.f.editing=!0,this.prevText=null;const{item:{hotAttr:U}}=this.props;(0,lo.kY)(U)?setTimeout(()=>{this.focusLast()}):setTimeout(()=>{this.selectAll()})}componentDidUpdate(){qo(this.$elem)}componentWillUnmount(){MB.f.editing=!1,this.handleSave()}focusLast(){const U=this.$elem;if(U&&(U.focus(),U.childNodes.length>0)){const H=document.createRange();H.selectNodeContents(U),H.collapse(!1);const ae=window.getSelection();ae==null||ae.removeAllRanges(),ae==null||ae.addRange(H)}}selectAll(){const U=this.$elem;if(U&&(U.focus(),U.childNodes.length>0)){const H=document.createRange(),ae=window.getSelection();H.setStartBefore(U.childNodes[0]),H.setEndAfter(U.childNodes[U.childNodes.length-1]),ae==null||ae.removeAllRanges(),ae==null||ae.addRange(H)}}getEditorContent(){const{item:{hotAttr:U}}=this.props,H=this.$elem;if(lo.XQ.includes(U.type)){const ae=H.querySelector(".text");return ae?ae.innerHTML:H.innerHTML}else if([m.x.WMSelect,m.x.WMTextArea,m.x.WElbow].includes(U.type)){const ae=this.$elem.querySelectorAll("p"),de=H.innerText;return de.trim()===""?"":Array.from(ae).length===0&&de?de:Array.from(ae).map(le=>le.innerText==="\n"?"":le.innerText).join("\n")}else return H.textContent}render(){const{item:U}=this.props,{hotAttr:H}=U,{needPlaceholder:ae}=this.state,de=(0,lo.NX)(H,ae),ge=(0,lo.sV)(H),{horizontalAlign:le,verticalAlign:Ee}=H.textV0||{},Pe=dn()("editor",H.type,{["h"+le]:le,["v"+Ee]:Ee});return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Qn,{contentEditable:!0,id:"text_editor",style:de,className:Pe,ref:this.setElementRef,dangerouslySetInnerHTML:{__html:ge},onInput:this.handleInput,onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onCopy:this.handleCopy}),ae&&(0,Ce.jsx)(Sn,{widget:H})]})}}const qo=$=>{const U=document.createTextNode("");$.appendChild(U);const H=document.activeElement===$;if(!U||!U.nodeValue||!H)return;const ae=window.getSelection();if(ae!==null){const de=document.createRange();de.setStart(U,U.nodeValue.length),de.collapse(!0),ae.removeAllRanges(),ae.addRange(de)}$ instanceof HTMLElement&&$.focus()};class ua extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"handleKeyDown",U=>{const{dispatch:H}=this.props,ae=U.metaKey||U.ctrlKey,de=U.shiftKey,ge=window.getSelection().toString();if(ge&&ge!=="")switch(U.keyCode){case Ts.Ju.B:ae&&(U.preventDefault(),H({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"bold"}}),(0,Ue.L)("command+b \u9009\u4E2D\u90E8\u5206"));break;case Ts.Ju.I:ae&&(U.preventDefault(),H({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"italic"}}),(0,Ue.L)("command+i \u9009\u4E2D\u90E8\u5206"));break;case Ts.Ju.U:ae&&(U.preventDefault(),H({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"underline"}}),(0,Ue.L)("command+u \u9009\u4E2D\u90E8\u5206"));break;case Ts.Ju.S:ae&&de&&(U.preventDefault(),H({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"lineThrough"}}),(0,Ue.L)("command+shift+s \u9009\u4E2D\u90E8\u5206"));break}}),(0,ve.A)(this,"handleDocDown",U=>{if(U.target.closest("#text_editor"))return;if(U.target.closest("#text-settings")||U.target.closest("#text-settings-font-menu")||U.target.closest(".DropdownMenuBase")||U.target.closest('[type="color-panel"]')||U.target.closest(".--mb--color-picker")||U.target.closest(".draft-inline-toolbar")||U.target.closest(".quick-menu-option .content")||U.target.closest("#ai-semantic-modal")||U.target.closest("#textediting-menu")){U.preventDefault();return}const{dispatch:H,item:ae}=this.props;(0,Re.ay)(ae,"remove"),H({type:"set:editing:cid",payload:{cid:""}}),H({type:"elbow:update",payload:{activeElbowKey:""}}),H(h.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),H({type:"colorpanel:set:attr",payload:{attr:void 0}}),H({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})}),(0,ve.A)(this,"handleSelectionChange",()=>{const U=(0,Ie.Ay)();this.props.dispatch(h.GO.update({textEditor:{selectionAttrs:U}}))})}render(){const{item:U,dispatch:H}=this.props,ae={position:"absolute",...(0,Ys.zG)(U)};return(0,Ce.jsxs)("div",{className:"editor-wrapper",style:ae,children:[(0,Ce.jsx)(Wo,{item:U,dispatch:H}),(0,Ce.jsx)(Ia.A,{target:document,onMouseDown:(0,Ia.t)(this.handleDocDown,{capture:!0}),onSelectionChange:this.handleSelectionChange,onKeyDown:this.handleKeyDown})]})}}const Ea=(0,oo.Mz)([je.c],$=>$&&(0,at.yD)($.hotAttr.type)?$:null),Ja=()=>{const $=(0,k.d4)(Ea),U=(0,k.wA)();return $?(0,Ce.jsx)(ua,{item:$,dispatch:U}):null},La=mn.Ay.div.withConfig({displayName:"style__StyledRichEditor",componentId:"sc-1wppsg6-0"})(["&.draft-rich-text-editor-wrapper{display:flex;position:absolute;top:0;left:0;min-width:1px;min-height:12px;z-index:16;overflow:visible;cursor:text;pointer-events:auto;&.wLine,&.wArrow{.draft-basic-text-editor-wrapper{word-break:keep-all;}}&.wFlowClosed,&.wFlowOpened{top:50%;left:50%;transform:translate(-50%,-50%);}.editor{outline:none;border-color:transparent;user-select:text;}}*{user-select:text;}&.auto{width:max-content;}&.left{text-align:left;}&.center{text-align:center;justify-content:center;}&.right{text-align:right;justify-content:flex-end;}&.justify{text-align:justify;}&.top{align-items:flex-start;}&.middle{align-items:center;}&.bottom{align-items:flex-end;}a{color:",";}&.isShallowEditText{pointer-events:none;}"],$=>$.style.color);var Na=i(45709),gr=i(39182);const Pi=$=>{let U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct,vt,Ft="hidden";if(at.VV.includes($.type)){const{richTextV1:{fontSize:bn,textColor:to,lineHeight:Po,paddingTuple:fo,letterSpacing:Ho,fontFamily:Ko,fontWeight:ha,italic:Aa,bold:I,verticalAlign:F,horizontalAlign:oe,fontDirection:be}}=$;Ee=bn,Ke=to,Pe=Po,ct=(0,B0.N3)(fo),H=oe,ae=F,Fe=Ho,de=Ko,ge=ha,U=be,le=Aa?"italic":"normal",vt=I}if([m.x.WRichText,m.x.WMindNode,m.x.WLine,m.x.WArrow,m.x.WPlaceholder,m.x.WElbow].includes($.type)){const{richTextV1:{fontFamily:bn,fontDirection:to,fontWeight:Po}}=$;de=bn,ge=Po,Ft="visible"}m.Q.USE_CLIP_TEXT.includes($.type)&&!$.richTextV1.isClipText&&(Ft="visible"),$.type===m.x.WRect&&$.richTextV1.isClipText===void 0&&(Ft="hidden");const pn=(0,Na._y)(ge,vt);return{fontFamily:de,fontWeight:pn,fontStyle:le,fontSize:Ee+"px",lineHeight:Pe+"px",letterSpacing:Fe+"px",color:Ke,writingMode:U,justifyContent:ae,alignItems:(0,gr.xC)(H),padding:ct,flexDirection:"column",overflow:Ft}};var _r=i(86433),ci=i(84877),Ws=i(28064),kr=i(66360);const Fi=mn.Ay.div.withConfig({displayName:"styles__StyledDraftBasicTextEditorDiv",componentId:"sc-1qxigk0-0"})(["position:relative;::-webkit-scrollbar-thumb{background-color:rgba(51,51,51,.2);}"," &.horizontal:not(.wLine):not(.wArrow):not(.auto){width:100%;}&.vertical:not(.wLine):not(.wArrow){height:100%;}&.auto{.draft-basic-text-editor-wrapper{width:max-content;}}&.","{.draft-basic-text-editor{.draft-link-decorator-a.","{background-color:#BAD7FB !important;}}}.draft-basic-text-editor-wrapper{width:100%;height:100%;word-break:break-word;white-space:break-spaces;.draft-basic-text-editor{width:100%;.DraftEditor-editorContainer{height:initial;border:none;> div > div{ul,ol{> li{",":","px;}}> div{",":",'px;}}}[data-contents="true"] > :last-child{margin:0!important;}span::selection{background-color:'," !important;}span::-webkit-selection{background-color:"," !important;}span::-moz-selection{background-color:"," !important;}.public-DraftEditorPlaceholder-inner{color:","}.public-DraftEditor-content{line-height:",";text-align:",";&[contenteditable=false]{user-select:none!important;}}.public-DraftStyleDefault-block{margin:0;text-align:",";min-width:1px;min-height:1px;display:",";& > span,& > a,& > div{text-decoration:",";}}.rdw-left-aligned-block{.public-DraftStyleDefault-block{text-align:left;}}.rdw-center-aligned-block{.public-DraftStyleDefault-block{text-align:center;}}.rdw-right-aligned-block{.public-DraftStyleDefault-block{text-align:right;}}.rdw-justify-aligned-block{.public-DraftStyleDefault-block{text-align:justify;}}.rdw-indent-0{margin-left:0;}.rdw-indent-2{margin-left:2rem;}.rdw-indent-4{margin-left:4rem;}.rdw-indent-6{margin-left:6rem;}}}&:not(.wRichText) .draft-basic-text-editor-wrapper .draft-basic-text-editor .public-DraftEditor-content{h1{font-size:26px;span{font-size:26px !important;}}h2{font-size:22px;span{font-size:22px !important;}}h3{font-size:18px;span{font-size:18px !important;}}}"],$=>$.psList.map(U=>"\n .rdw-paraspacing-"+(U+"").replace(".","-")+"{ \n "+($.fontDirection==="vertical-lr"&&$.psVersion===3?"margin-right":"margin-bottom")+": "+U+"px !important; \n }\n\n .rdw-paraspacing-"+(U+"").replace(".","-")+":last-child {\n "+($.fontDirection==="vertical-lr"&&$.psVersion===3?"margin-right":"margin-bottom")+": 0 !important;\n }\n "),$=>"active-"+$.activeKey,$=>"active-"+$.activeKey,$=>$.psVersion!==3?void 0:$.fontDirection==="vertical-lr"?"margin-right":"margin-bottom",$=>$.paraSpacing,$=>$.fontDirection==="vertical-lr"&&$.psVersion===3?"margin-right":"margin-bottom",$=>$.paraSpacing,$=>$.isShallowEditText?"transparent":$.theme.color_textarea,$=>$.isShallowEditText?"transparent":$.theme.color_textarea,$=>$.isShallowEditText?"transparent":$.theme.color_textarea,$=>$.placeHolderColor||"#101010",$=>$.lineHeight+"px",$=>$.horizontalAlign,$=>$.horizontalAlign,$=>$.isWRichText?"inline-block":"block",$=>$.textDecoration);var xi=i(51648),Ai=i(45469);const Rr=mn.Ay.a.withConfig({displayName:"styles__StyledDraftLinkA",componentId:"sc-953nd7-0"})(["position:relative;display:inline-block;color:#333333;cursor:inherit;span{text-decoration:"," !important;}"],$=>$.liVersion===3||$.isNeedMigrateLinkItalic?"":"underline");function Cs($,U,H){$.findEntityRanges(ae=>{const de=ae.getEntity();return de!==null&&H.getEntity(de).getType()==="LINK"},U)}class Hr extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"onMouseEnter",U=>{if(this.isFree)return;const{contentState:H,entityKey:ae,blockKey:de,decoratedText:ge,start:le,end:Ee,callback:Pe}=this.props,{url:Fe}=H.getEntity(ae).getData();if(!Pe)return;const Ke=U.currentTarget.getBoundingClientRect();if(!Ke)return;const{top:ct,bottom:vt,left:Ft,width:pn}=Ke,bn={top:vt,left:Ft+pn/2-24};Pe&&Pe({entityKey:ae,style:bn,decoratedText:ge,url:Fe,blockKey:de,start:le,end:Ee})}),(0,ve.A)(this,"openLink",U=>(U.preventDefault(),!1)),(0,ve.A)(this,"isFree",(0,Di._S)())}render(){const{contentState:U,entityKey:H,children:ae,version:de,isNeedMigrateLinkItalic:ge}=this.props,{url:le,targetOption:Ee}=U.getEntity(H).getData();return(0,Ce.jsx)(Rr,{className:"draft-link-decorator-a active-"+H,href:this.isFree?"":(0,Ai.H)(le),target:Ee,onClick:this.openLink,onMouseEnter:this.onMouseEnter,liVersion:de,isNeedMigrateLinkItalic:ge,children:ae})}}var Wr=i(788);const Ti=($,U,H)=>ae=>{const de=ae.getData();let ge="";if(de){const le=de.get("textIndent");if(Object.keys(Wr.En).map(Pe=>parseInt(Pe,10)).filter(Pe=>Pe!==0).includes(le)&&(ge+="rdw-indent-"+le+" "),$){const Pe=de.get("textAlign");if(Pe)return ge+("rdw-"+Pe+"-aligned-block")}else return ge+("rdw-"+U+"-aligned-block");const Ee=de.get("paraSpacing");return Ee!==void 0?ge+("rdw-paraspacing-"+(Ee+"").replace(".","-")):ge}return ge};var jl=i(69815),bs=i(44916),Vs=i(56202);const Dl=(0,Vs.cX)(),ji={isCtrlKeyCommand:$=>!!$.ctrlKey&&!$.altKey,hasCommandModifier:$=>Dl?!!$.metaKey&&!$.altKey:ji.isCtrlKeyCommand($)},Or=Dl,Ms=ji.hasCommandModifier,Qs=ji.isCtrlKeyCommand;function r0($){return Dl&&$.altKey||Qs($)}function sd($){return Ms($)?$.shiftKey?"redo":"undo":null}function Od($){return!Dl&&$.shiftKey?null:r0($)?"delete-word":"delete"}function a2($){return Ms($)&&Dl?"backspace-to-start-of-line":r0($)?"backspace-word":"backspace"}const oc=$=>{switch($.keyCode){case 66:return Ms($)?"bold":null;case 68:return Qs($)?"delete":null;case 72:return Qs($)?"backspace":null;case 73:return Ms($)?"italic":null;case 74:return Ms($)?"code":null;case 75:return Dl&&Qs($)?"secondary-cut":null;case 77:return Qs($)?"split-block":null;case 79:return Qs($)?"split-block":null;case 84:return Dl&&Qs($)?"transpose-characters":null;case 85:return Ms($)?"underline":null;case 87:return Dl&&Qs($)?"backspace-word":null;case 90:return sd($)||null;case 13:return"split-block";case 46:return Od($);case 8:return a2($);case 37:return Or&&Ms($)?"move-selection-to-start-of-block":null;case 39:return Or&&Ms($)?"move-selection-to-end-of-block":null;default:return null}};var Rd=i(34697),Bd=i(10549);const Ap=$=>{let{editorState:U}=$;if(!U.getSelection().isCollapsed())return;const H=(0,Wr.d8)(U);if((0,Bd.oY)(H.type))return;const ae=H.text,de=le=>{let{value:Ee}=le;const{_setEditorState:Pe}=(0,jl.DT)();if(!Pe)return;const Fe=Ee==="ordered"?2:1;let Ke=(0,kr.ZQ)(U,0,Fe);Ke=(0,Wr.ws)(Ke,Ee),Pe(Ke)},ge=U.getSelection();if(ge.isCollapsed()){const le=ge.getFocusOffset();return le===2&&(ae.startsWith("1.")||ae.startsWith("1)"))?(de({value:"ordered"}),"skip"):le===1&&ae.startsWith("-")?(de({value:"unordered"}),"skip"):void 0}},ym={"header-one":{deleteLength:1,fontSize:26},"header-two":{deleteLength:2,fontSize:22},"header-three":{deleteLength:3,fontSize:18},default:{deleteLength:0,fontSize:14}},oh=$=>{let{editorState:U}=$;if(!U.getSelection().isCollapsed())return;const H=(0,Wr.d8)(U);if((0,Bd.wH)(H.type))return;const ae=H.text,de=le=>{let{value:Ee}=le;const{_setEditorState:Pe}=(0,jl.DT)();if(!Pe)return;const Fe=ym[Ee]||ym.default;let Ke=(0,kr.ZQ)(U,0,Fe.deleteLength);Ke=(0,Wr.et)(Ke,Ee),(0,jl.l2)(Ke,"fontSize",Fe.fontSize)},ge=U.getSelection();if(ge.isCollapsed()){const le=ge.getFocusOffset();return le===1&&ae.startsWith("#")?(de({value:"header-one"}),"skip"):le===2&&ae.startsWith("##")?(de({value:"header-two"}),"skip"):le===3&&ae.startsWith("###")?(de({value:"header-three"}),"skip"):void 0}};var ah=i(83744);const Vc=["backspace","backspace-word","backspace-to-start-of-line","delete","delete-word","delete-to-end-of-block"],jh=($,U)=>{if((0,kr.$B)($)){const H=(0,ze.dM)($.getCurrentContent()),ae=(0,An.qn)(H);(0,ah.Xq)([(0,cn.Op)(U.key,{textV1:ae})])}},L2=$=>{var U,H,ae,de,ge,le,Ee;if(!($!=null&&(U=$.refStyles)!=null&&U.text))return;const Pe=sdkStore.getHotItem($==null||(H=$.refStyles)==null?void 0:H.text),Fe=Pe?{color:{...(ae=$==null||(de=$.refStyles)==null?void 0:de.color)!=null?ae:{},...(ge=Pe==null||(le=Pe.hotAttr)==null||(le=le.refStyles)==null?void 0:le.color)!=null?ge:{}},appear:$==null||(Ee=$.refStyles)==null?void 0:Ee.appear,text:""}:{...$==null?void 0:$.refStyles};MB.action("entry:widget:change",{flatChgList:[{key:$.key,hotAttr:{refStyles:Fe}}]}),MB.action("settings:update:currentTextRefStyle",null)};function vm(){const $=(0,kr.SZ)();let U,H;return{store:$,onChange:ae=>{const de=ae.getCurrentContent();if(!de.equals(H))return H=de,ae;H=de;const ge=ae.getSelection();if(U&&ge.equals(U))return U=ae.getSelection(),ae;const le=$.getAll();return U&&(0,kr.AA)(de,U.getStartKey(),U.getEndKey()).some(Fe=>le.includes(Fe))||(0,kr.AA)(de,ge.getStartKey(),ge.getEndKey()).some(Pe=>le.includes(Pe))?(U=ge,(0,kr.Qg)(ae)):ae},handleReturn:(ae,de,ge)=>{const le=ae.setEditorState;if((0,kr.pU)(ge,$))return le((0,kr.p2)(ge)),"handled";const Ee=(0,Wr.d8)(ge),Pe=Ee.getType(),Fe=ge.getSelection(),Ke=Ee.getText(),ct=Fe.getStartOffset(),vt=Ke.slice(ct);if((0,Bd.wH)(Pe))if(vt.length>0){const pn=(0,kr.h_)(ge,de);if(pn)return le(pn),"handled"}else{const pn=(0,kr.h_)(ge,de),bn=(0,Wr.ex)(pn,"unstyled"),to=(0,Wr.xE)(bn,14);if(to)return le(to),"handled"}const Ft=(0,kr.h_)(ge,de);return Ft?(le(Ft),"handled"):"not-handled"},handleKeyCommand:(ae,de,ge,le)=>{const Ee=ae.setEditorState,Pe=ae.getWidget(),{type:Fe}=Pe;if(["bold","italic","underline","strikethrough"].includes(de)){let Ke;if(de==="bold"?[m.x.WTear,m.x.WSticky].includes(Fe)?(Ke=(0,Wr.q0)(ge),Ke=ze.U7.handleKeyCommand(Ke,"bold")):(Ke=ze.U7.removeInlineStyle(ge,"bold"),Ke=(0,Wr.IP)(ge,700)):Ke=ze.U7.handleKeyCommand(ge,de),Ke)return Ee(Ke),jh(Ke,Pe),L2(Pe),"handled"}if(Vc.includes(de)&&(0,kr.pU)(ge,$)){const Ke=ge.getSelection().getStartKey(),ct=(0,kr.wC)(ge,Ke);if(ct!==ge)return Ee(ct),"handled"}if(de==="backspace"&&ge){const Ke=(0,_r.$w)(ge);if(Ke){const ct=Ke.getText(),vt=Ke.get("type"),Ft=(0,_r.BU)(ge).get("textIndent"),bn=ge.getSelection().getEndOffset();if(bn===0){const Po=ge.getSelection().getAnchorKey(),fo=ge.getCurrentContent().getBlockBefore(Po),Ho=fo==null?void 0:fo.getType();if(["unordered-list-item","ordered-list-item"].includes(vt)){const Ko=(0,Wr.ex)(ge,"unstyled");return Ko&&Ee(Ko),"handled"}if((0,Bd.wH)(vt)&&!ct){const Ko=(0,Wr.ex)(ge,"unstyled"),ha=(0,Wr.xE)(Ko,14);return ha&&Ee(ha),"handled"}if(fo){if(fo.getText())return"not-handled";if((0,Bd.wH)(Ho)&&!fo.getText()){const Ko=Ho==="header-one"?26:Ho==="header-two"?22:Ho==="header-three"?18:14,ha=(0,Wr.ex)(ge,"unstyled"),Aa=(0,Wr.xE)(ha,Ko);return(0,kr.D8)(()=>Aa,Ee,fo),"handled"}}}if(bn===1&&(0,Bd.wH)(vt)){const to=vt==="header-one"?26:vt==="header-two"?22:vt==="header-three"?18:14,Po=(0,kr.ZQ)(ge,0,1),fo=(0,Wr.xE)(Po,to);return Ee(fo),"handled"}if(!ct&&Ft===2){const to=(0,Wr.fM)(ge,"outdent",2);return to&&Ee(to),"handled"}}}return"not-handled"},keyBindingFn:(ae,de)=>{const ge=ae.getEditorState,le=ae.setEditorState,Ee=ge(),Pe=ae.getWidget();if(!(rh({evt:de,editorState:Ee,setEditorState:le,widget:Pe})==="SKIP"||sh({evt:de,editorState:Ee,setEditorState:le,editorType:"common"})==="SKIP"||ih({blockKeyStore:$,editorState:Ee,evt:de,getEditorState:ge,setEditorState:le})==="SKIP")){if(pu({blockKeyStore:$,editorState:Ee,evt:de,getEditorState:ge,setEditorState:le}),de.keyCode===32){const vt=Ap({editorState:Ee}),Ft=oh({editorState:Ee});return vt==="skip"||Ft==="skip"?"apply":void 0}return oc(de)}},keyBindingFn2:(ae,de)=>{const ge=ae.getEditorState,le=ae.setEditorState,Ee=ge(),Pe=ae.getWidget(),Fe=ae.isShallowEditText;if(!(r2({evt:de,editorState:Ee,setEditorState:le,widget:Pe,isShallowEditText:Fe})==="SKIP"||rh({evt:de,editorState:Ee,setEditorState:le,widget:Pe})==="SKIP"||sh({evt:de,editorState:Ee,setEditorState:le,editorType:"basic"})==="SKIP"||ih({blockKeyStore:$,editorState:Ee,evt:de,getEditorState:ge,setEditorState:le})==="SKIP"))return pu({blockKeyStore:$,editorState:Ee,evt:de,getEditorState:ge,setEditorState:le}),de.keyCode===32&&Pe.type===m.x.WRichText?Ap({editorState:Ee})==="skip"?"apply":void 0:oc(de)}}}const pu=$=>{let{editorState:U,getEditorState:H,setEditorState:ae,blockKeyStore:de,evt:ge}=$;if(ge.keyCode===37){const le=U.getSelection(),Ee=le.getAnchorKey(),Pe=U.getCurrentContent().getBlockBefore(Ee);Pe&&le.getAnchorOffset()===0&&de.includes(Pe.getKey())&&(0,kr.td)(H,ae,"up",ge)}if(ge.keyCode===39){const le=U.getSelection(),Ee=le.getFocusKey(),Pe=U.getCurrentContent().getBlockForKey(Ee),Fe=U.getCurrentContent().getBlockAfter(Ee),Ke=Pe.getType()!=="atomic"&&Pe.getLength()===le.getFocusOffset();Fe&&Ke&&de.includes(Fe.getKey())&&(0,kr.td)(H,ae,"down",ge)}if(ge.keyCode===38){const le=U.getSelection().getAnchorKey(),Ee=U.getCurrentContent().getBlockBefore(le);Ee&&de.includes(Ee.getKey())&&(0,kr.td)(H,ae,"up",ge)}if(ge.keyCode===40){const le=U.getSelection().getAnchorKey(),Ee=U.getCurrentContent().getBlockAfter(le);Ee&&de.includes(Ee.getKey())&&(0,kr.td)(H,ae,"down",ge)}},rh=$=>{let{evt:U,editorState:H,setEditorState:ae,widget:de}=$;if(((0,Vs.cX)()?U.metaKey:U.ctrlKey)&&U.shiftKey){var le;const Ee=(0,Wr.ny)(H).fontSize||((le=de.richTextV1)==null?void 0:le.fontSize)||14,Pe=Fe=>{jh(Fe,de),L2(de)};return U.keyCode===190||U.keyCode===188?U.keyCode===190?(0,jl.l2)(H,"fontSize",Ee+1,!0,Pe):(0,jl.l2)(H,"fontSize",Ee-1,!0,Pe):U.keyCode===83&&(0,jl.l2)(H,"line-through",void 0,!0,Pe),"SKIP"}},ih=$=>{let{editorState:U,blockKeyStore:H,setEditorState:ae,getEditorState:de,evt:ge}=$;if((0,kr.pU)(U,H)&&(ge.keyCode===37&&(0,kr.td)(de,ae,"up",ge),ge.keyCode===39&&(0,kr.td)(de,ae,"down",ge),ge.keyCode===38&&(0,kr.td)(de,ae,"up",ge),ge.keyCode===40))return(0,kr.td)(de,ae,"down",ge),"SKIP"},sh=$=>{let{evt:U,editorState:H,setEditorState:ae,editorType:de}=$;if(U.key==="Tab"){U.preventDefault();let ge;const le=U.shiftKey?"outdent":"indent",Ee=(0,Wr.DN)(H),Pe=(0,_r.ew)(H);for(const Fe of Pe){if((0,_r.Eg)(Fe)){const Ke=Fe.depth;le==="outdent"&&Ke===0?ge=(0,Wr.ex)(H,"unstyled"):ge=(0,kr.ar)(H,le==="outdent"?-1:1,4)}else de==="common"&&(ge=(0,Wr.fM)(H,le,Ee));ae(ge)}return"SKIP"}},r2=$=>{let{evt:U,editorState:H,setEditorState:ae,widget:de,isShallowEditText:ge}=$;if(de.type===m.x.WMindNode){if(ge){if((0,Rd.or)(U))return"SKIP"}else if(U.key==="Enter"&&!U.shiftKey&&!U.altKey)return ae((0,kr.gN)(H)),"SKIP"}},Os=vm();var X0=i(36449),i2=i(93093),uu=i(86594),M1=i(43838),Oh=i(1320);const{handleReturn:lh}=Ws.A,{handleKeyCommand:xm,keyBindingFn2:$c}=Os,k0=[Ws.A,Os],Mp=500;class Hs extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"editorRef",null),(0,ve.A)(this,"containerRef",null),(0,ve.A)(this,"handleCompositionstart",()=>{const{editorState:le}=this.state,Ee=(0,kr.AR)(le);this.setState({editorState:Ee})}),(0,ve.A)(this,"initSelectionOnMind",()=>{const{widget:le,isEditingSelectAll:Ee,isShallowEditText:Pe,isEditingMoveToEnd:Fe}=this.props;le.type===m.x.WMindNode&&(Pe?this.handleEditorStateChange((0,kr.gN)(this.state.editorState)):Ee?this.handleEditorStateChange((0,kr.gN)(this.state.editorState)):Fe&&this.handleEditorStateChange(ze.$t.moveFocusToEnd(this.state.editorState)))}),(0,ve.A)(this,"handleEditorSelection",le=>{let{widget:Ee,linkTitle:Pe,originLinkTarget:Fe,blockKey:Ke,start:ct,end:vt}=le;const Ft=Ee.cid||Ee.key;if(!Ee||!Ft)return;const{editorState:pn}=this.state,{widget:bn,dispatch:to}=this.props;if(!bn||!bn.cid||bn.cid!==Ft)return;let Po;if(Ke){const Ko=pn.getCurrentContent(),ha=Ko.getBlockForKey(Ke);if(Po=ha.getEntityAt(ct),!Po){let Aa;ha.findEntityRanges(I=>(Aa=I.getEntity(),Aa!==null&&Ko.getEntity(Aa).getType()==="LINK"),(I,F)=>{I===ct&&vt===F&&(Po=Aa)})}}const fo=(0,Wr.Bm)(pn.getCurrentContent(),Ke,ct,vt,Fe,Pe);if(!fo)return;const Ho=(0,Wr.N$)(pn,fo);Ho&&this.handleEditorStateChange(Ho),Po&&to({type:X0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Po}})}),(0,ve.A)(this,"getBasicTextEditor",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,isShallowEditText:this.props.isShallowEditText})),(0,ve.A)(this,"setContainerEditorRef",le=>{this.containerRef=le}),(0,ve.A)(this,"setEditorRef",le=>{this.editorRef=le}),(0,ve.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,ve.A)(this,"getEditorState",()=>this.state.editorState),(0,ve.A)(this,"getWidget",()=>this.props.widget),(0,ve.A)(this,"handleEditorStateChange",(le,Ee)=>{const{onSelectionChange:Pe,isWidgetFirstEdit:Fe,widget:Ke,dispatch:ct}=this.props,{richTextV1:vt,type:Ft}=Ke;if(!le)return;let pn=le;Fe&&Ee!=null&&Ee.firstcall&&(pn=(0,ah.Z5)({editorState:pn,widgetType:Ft,richTextV1:vt})),this.setState({editorState:pn},()=>{k0.forEach(bn=>{bn.onChange&&(pn=bn.onChange(pn))})}),Pe(pn,Ee)}),(0,ve.A)(this,"handleEditorClick",le=>{document.activeElement.contentEditable!=="true"&&this.focus();const{dispatch:Ee}=this.props;le.button===2&&Ee({type:"open:contextmenu",payload:{position:{top:le.clientY,left:le.clientX}}})}),(0,ve.A)(this,"handleMouseDown",le=>{const{widget:Ee,dispatch:Pe}=this.props;Ee.type!==m.x.WMindNode&&le.button===2&&Pe({type:"entry:contextmenu:withtype",payload:{position:{top:le.clientY,left:le.clientX},type:"text"}})}),(0,ve.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,ve.A)(this,"getTextDecoration",(le,Ee)=>{let Pe="";return le&&(Pe="underline"),Ee&&(Pe+=(Pe?" ":"")+"line-through"),Pe===""&&(Pe="none"),Pe}),(0,ve.A)(this,"handlePaste",async()=>{const le=await(0,M1.v)();le!=null&&le.content&&this.handlePastedText(le==null?void 0:le.content,le==null?void 0:le.content)}),(0,ve.A)(this,"handlePastedText",(le,Ee)=>{const{isShallowEditText:Pe}=this.props;if(Pe)return!0;if(Ee){const{widget:Fe}=this.props,{editorState:Ke}=this.state,ct=(0,zn.DL)({html:Ee,editorState:Ke,inlineProcessType:"merge",componentType:Fe.type===m.x.WRichText?bs.a.TEXT:bs.a.BASIC});if(ct)return this.handleEditorStateChange(ct),!0}return!1}),(0,ve.A)(this,"linkCallback",le=>{let{entityKey:Ee,style:Pe,decoratedText:Fe,url:Ke,blockKey:ct,start:vt,end:Ft}=le;const{widget:pn,isCreatingLink:bn,dispatch:to}=this.props;bn||(to({type:X0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Ee}}),C.A.emit("draft:link-toast:view",{widget:pn,linkTitle:Fe,linkTarget:Ke,style:Pe,blockKey:ct,start:vt,end:Ft,fromType:"settingPanel"}))}),(0,ve.A)(this,"handleFocus",()=>{setTimeout(()=>{this.getEditorState().getSelection().hasFocus},10)}),(0,ve.A)(this,"handleBlur",()=>{const{isShallowEditText:le}=this.props;le&&this.handleEditorStateChange((0,kr.gN)(this.state.editorState))}),(0,ve.A)(this,"handleCopy",async(le,Ee)=>{const{widget:Pe,isShallowEditText:Fe}=this.props,{editorState:Ke}=this.state;if(Fe)Ee&&(Ee.preventDefault(),Ee.stopPropagation(),Pe.type===m.x.WMindNode&&Ee.clipboardData.setData("text/plain","COPIED__MB__WIDGET"));else{var ct;const vt=Pe.type==="wRichText"?Pe.w:void 0,Ft=Pe.type==="wRichText"?Pe.h:void 0,pn=Pe==null||(ct=Pe.refStyles)==null?void 0:ct.text,bn=(0,zn.vd)({editorState:Ke,richTextV1:Pe.richTextV1,refStyleText:pn,w:vt,h:Ft}),to=(0,_r.u0)(Ke);Ee&&(Ee.preventDefault(),Ee.clipboardData.setData("text/html",bn),Ee.clipboardData.setData("text/plain",to)),await(0,M1.$H)({hasNotice:!1})?await(0,uu.NO)({html:bn}):await(0,M1.qG)({html:bn,selectionText:to})}}),(0,ve.A)(this,"handleCut",async(le,Ee)=>{const{widget:Pe}=this.props,{editorState:Fe}=this.state,Ke=(0,_r.u0)(Fe),ct=(0,zn.ag)({editorState:Fe,richTextV1:Pe.richTextV1,w:Pe.w,h:Pe.h});Ee&&(Ee.preventDefault(),Ee.clipboardData.setData("text/html",ct),Ee.clipboardData.setData("text/plain",Ke)),await(0,M1.$H)({hasNotice:!1})?(0,uu.NO)({html:ct}):(0,M1.qG)({html:ct,selectionText:Ke})}),(0,ve.A)(this,"handleBeforeInput",()=>MB.f.isPastingRichText?"handled":"not-handled"),(0,ve.A)(this,"handleCustomStyleFn",(le,Ee)=>{const Pe=Ee.getText();if((le==null?void 0:le.size)===0&&!(Pe!=null&&Pe.length)){const{editorState:Fe}=this.state;try{const Ke=Fe.getCurrentInlineStyle();return(0,Wr.Od)(Ke)}catch(Ke){return(0,i2.Cp)(Ke,{level:"debug",fingerprint:["get-sltyle-CSS-From-InlineStyle"],extra:{selection:JSON.stringify(Fe.getSelection()),blocks:JSON.stringify(Fe.getCurrentContent().getBlockMap())}}),{}}}return{}}),(0,ve.A)(this,"handleDrop",(le,Ee,Pe)=>(0,kr.$B)(this.state.editorState)&&Pe==="internal"?"handled":"not-handled");const{widget:H}=U,{textV1:ae}=H,de=(0,An.mx)(ae);let ge=(0,$t.n)(de);U.isNeedMigrateLinkItalic&&(ge=(0,Oh.cA)({textV1:ae,editorState:ge})),this.state={editorState:ge}}componentDidMount(){k0.forEach(ae=>{ae&&ae.initialize&&typeof ae.initialize=="function"&&ae.initialize(this.getBasicTextEditor())});const{isLinkToastShow:U}=this.props,{editorState:H}=this.state;if(this.props.widget.type===m.x.WMindNode?this.initSelectionOnMind():U||this.handleEditorStateChange((0,kr.gN)(H),{firstcall:!0}),C.A.on("draft:design:editorState:selection:basic",this.handleEditorSelection),C.A.on("draft:text:copy",this.handleCopy),C.A.on("draft:text:cut",this.handleCut),C.A.on("draft:text:paste",this.handlePaste),this.editorRef){const ae=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');ae&&ae.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(U){const{widget:{key:H,textV1:ae,richTextV1:de},isShallowEditText:ge,isEditingSelectAll:le,isEditingMoveToEnd:Ee}=U,{widget:{key:Pe,type:Fe,textV1:Ke,richTextV1:ct},isShallowEditText:vt,isEditingSelectAll:Ft,isEditingMoveToEnd:pn}=this.props;if(Fe===m.x.WMindNode)if(!(0,xt.eI)(Ke,ae)&&H!==Pe||!W0()(de,ct)){const bn=(0,An.mx)(Ke);this.handleEditorStateChange((0,kr.gN)((0,$t.n)(bn)))}else(vt!==ge||Ft!==le||pn!==Ee)&&this.initSelectionOnMind()}componentWillUnmount(){if(k0.forEach(U=>{U&&U.unmounted&&typeof U.unmounted=="function"&&U.unmounted()}),C.A.off("draft:design:editorState:selection:basic",this.handleEditorSelection),C.A.off("draft:text:copy",this.handleCopy),C.A.off("draft:text:cut",this.handleCut),C.A.off("draft:text:paste",this.handlePaste),this.setState=()=>!1,this.editorRef){const U=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');U&&U.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{editorState:U}=this.state,{widget:H,activeEntityKey:ae,isShallowEditText:de,dispatch:ge,fontDirection:le,lhVersion:Ee,isNeedMigrateLinkItalic:Pe}=this.props,Fe=H.type===m.x.WRichText,Ke=H["!liVersion"],ct=Fe?H["!psVersion"]:3,vt=[{strategy:Cs,component:Hr,props:{callback:this.linkCallback,version:Ke,isNeedMigrateLinkItalic:Pe,dispatch:ge}}],{richTextV1:{sizeType:Ft,lineHeight:pn,paraSpacing:bn,horizontalAlign:to,underline:Po,strikethrough:fo},shadow:Ho}=H,Ko=H.type==="wRichText"&&Ho?{textShadow:Ho!=null&&Ho.shadowIsVisible?(Ho==null?void 0:Ho.offsetX)+"px "+(Ho==null?void 0:Ho.offsetY)+"px "+(Ho==null?void 0:Ho.blurRadius)+"px "+(0,x1.t0)(Ho==null?void 0:Ho.shadowColor):"none"}:{},ha=this.getTextDecoration(Po,fo),Aa=dn()(H.type,{auto:Ft===0,fixed:Ft!==0,vertical:le==="vertical-lr",horizontal:le==="horizontal-tb"}),I=(0,jl.FM)(U,"state");return(0,Ce.jsx)(Fi,{style:Ko,className:Aa,lineHeight:pn,psVersion:ct,paraSpacing:bn,horizontalAlign:to,fontDirection:le,psList:I,textDecoration:ha,activeKey:ae,isWRichText:Fe,isShallowEditText:de,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,id:"test-design-dom"+H.cid,children:(0,Ce.jsx)(ci.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-basic-text-editor-wrapper",editorClassName:"draft-basic-text-editor",ref:this.setEditorRef,editorState:U,blockStyleFn:Ti(!0,"center"),customDecorators:vt,onEditorStateChange:this.handleEditorStateChange,customStyleMap:{...xi.a2,...xi.cN,...xi.aV},handlePastedText:this.handlePastedText,keyBindingFn:$c.bind(this,this.getBasicTextEditor()),handleKeyCommand:xm.bind(this,this.getBasicTextEditor()),handleReturn:lh.bind(this,this.getBasicTextEditor()),handleBeforeInput:this.handleBeforeInput,handleDrop:this.handleDrop,onFocus:this.handleFocus,onBlur:this.handleBlur,onCopy:this.handleCopy,onCut:this.handleCut,customStyleFn:this.handleCustomStyleFn,canBlockAlign:!1,lhVersion:Ee})})}}const ch=Hs;var Rh=i(15748),hu=i(30294),bm=i(68049);class Cm extends a.Component{constructor(U){var H;super(U),(0,ve.A)(this,"saveAction",()=>{this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic,onlySave:!0}})}),(0,ve.A)(this,"getWrapperStyleV0",le=>{const{swimlaneSelectedCellInfo:Ee}=this.props,{richTextV1:{sizeType:Pe,fontDirection:Fe,horizontalAlign:Ke,verticalAlign:ct}}=le,{borderLeft:vt,borderTop:Ft,borderRight:pn,borderBottom:bn}=(0,Mo.NV)(le),{top:to,left:Po,width:fo,height:Ho}=(0,Ys.zG)(le);let Ko=to,ha=Po,Aa=fo-vt-pn,I=Ho-Ft-bn,F={};const oe=le.type;if(oe===m.x.WSwimlane){const{x:ut,y:tn}=Ee.tl,{database:Xt,swimlaneType:Kn,swimConfig:{isShowBigTitle:ao}}=le,{table:v}=Xt,K=(0,o0.u3)({database:Xt,x:ut,y:tn,swimlaneType:Kn}),te=(0,o0.XY)({database:Xt,x:ut,y:tn,swimlaneType:Kn,isShowBigTitle:ao}),me=le.border.bdrWidth;(ut===v[tn].length-1?"last":"normal")==="normal"?(ha+=te.left+me,Aa=K.width-me):(ha+=te.left+me,Aa=K.width-me*2),(tn===v.length-1?"last":"normal")==="normal"?(Ko+=te.top+me*1.5,I=K.height-me*2):(Ko+=te.top,I=K.height)}if(oe===m.x.WFlowOpened){const ut=le.subType;ut!=="concurrent"&&(Aa=fo*.8,(ut==="commentRight"||ut==="noteRight")&&(ha+=fo*.2))}if(oe===m.x.wFlowClosed&&le.subType==="subProcess"&&(Aa=fo*.7,ha+=fo*.14),[m.x.WFlowOpened,m.x.wFlowClosed].includes(oe)&&(Aa=Aa+vt+pn,I=I+Ft+bn,ha=ha-vt,Ko=Ko-Ft),(oe===m.x.WLine||oe===m.x.WArrow)&&(I=I>0?I+Ft+bn:1,Aa=Aa>0?Aa+vt+pn:1,F={top:Ko,left:ha,minHeight:"auto"}),oe===m.x.WMTooltip){const ut=le.tooltip.placement,tn=le.tooltip.arrowSize,Xt={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},Kn=["top","bottom"].includes(ut);F={[Xt[ut]]:tn,width:Kn?Aa:Aa-tn,height:Kn?I-tn:I}}if(oe===m.x.WElbow){const{elbow:{dPathList:ut,elbowType:tn,textPositionProportion:Xt}}=le,{x:Kn,y:ao}=(0,hu.xd)(ut,tn,Xt);Ko=Ko+ao,ha=ha+Kn,F={width:"max-content",transform:"translate(-50%, -50%)",height:"auto",padding:"4px 8px",border:"1px solid #1684fc",borderRadius:6,fontFamily:"PingFangSC",backgroundColor:"#fff"}}if(oe===m.x.WButton){const{icon:ut}=le;if(ut!=null&&ut.path){const{width:tn}=(0,bm.F7)(le),{iconSize:Xt,gap:Kn,position:ao}=ut;Fe==="vertical-lr"?ao==="left"?ct==="flex-start"?ha=ha+Xt+Kn:ct==="center"&&(ha=ha+(Xt+Kn+tn)/2-tn/2):ct==="flex-end"?ha=ha-(Xt+Kn):ct==="center"&&(ha=ha+tn/2-(Xt+Kn+tn)/2):ao==="left"?Ke==="center"?ha=ha+(Xt+Kn+tn)/2-tn/2:Ke==="left"&&(ha=ha+Xt+Kn):Ke==="center"?ha=ha+tn/2-(Xt+Kn+tn)/2:Ke==="right"&&(ha=ha-(Xt+Kn))}}const{padding:be,...Mt}=Pi(le);return{display:"flex",top:Ko+Ft,left:ha+vt,width:Aa,height:Fe==="vertical-lr"||Pe===1?I:"",borderRadius:oe===m.x.WOval&&0,...be,...Mt,...F}}),(0,ve.A)(this,"getMindNodeWrapperStyleV0",()=>{const{editingMindNode:le,widgetStore:Ee}=this.props,{richTextNode:Pe,mindNode:Fe}=le,Ke=Ee.mindTrees.get(Fe.key),{top:ct,left:vt}=(0,Ys.zG)(Fe),{hotAttr:{border:{bdrIsVisible:Ft,bdrWidth:pn},theme:bn}}=Fe,to=Ft&&pn||0,{richTextV1:{sizeType:Po,fontDirection:fo},border:{bdrIsVisible:Ho,bdrWidth:Ko}}=Pe.hotAttr,ha=Ho&&Ko||0,Aa=(0,Rh.ss)({theme:bn,node:Pe.hotAttr,isRootSub:Ke==null?void 0:Ke.isRootSub(Pe.key)}),I=Pi({...Pe.hotAttr,richTextV1:{...Pe.hotAttr.richTextV1,...Aa}}),F=(Ke==null?void 0:Ke.getMindPosition())||{x:0,y:0},{x:oe,y:be}=(Ke==null?void 0:Ke.getNodePosition(Pe.key))||{x:0,y:0},Mt=Ke==null?void 0:Ke.getNodeSize(Pe.key),{w:ut,h:tn}=(Mt==null?void 0:Mt.text)||{w:0,h:0},{x:Xt,y:Kn}=(Ke==null?void 0:Ke.calcNodeTextPosition(Pe.key))||{x:0,y:0},ao=vt+oe+F.x+to+ha+Xt,v=ct+be+F.y+to+ha+Kn;return{display:"flex",left:ao,top:v,width:ut,height:fo==="vertical-lr"||Po===1?tn:"",...I}}),(0,ve.A)(this,"handleMouseDown",le=>{(0,Ie.kI)(le)}),(0,ve.A)(this,"handleSelectionChange",(le,Ee)=>{const{node:Pe,defaultAttrs:Fe,dispatch:Ke}=this.props;Ke({type:"set:rich:text:editor:state",payload:{richTextEditorState:le}}),Ee!=="color"&&(Ke({type:"entry:mind:update:textV1"}),Ke({type:"entry:button:update:textV1",payload:{firstcall:Ee==null?void 0:Ee.firstcall}})),le.getCurrentContent().getPlainText()===""&&Pe&&Ke({type:"entry:widget:change",payload:{flatChgList:[{key:Pe==null?void 0:Pe.key,hotAttr:{richTextV1:Fe}}]}})}),(0,ve.A)(this,"handleKeyDownOnMindNodeEdit",le=>{if(!le.target.closest(".editing-text-area"))return;const{isLinkToastShow:Ee,isShallowEditText:Pe,richTextEditorState:Fe,dispatch:Ke}=this.props,ct=le.shiftKey,vt=le.altKey,Ft=le.metaKey||le.ctrlKey,pn=le.key===Ts._.Escape,bn=le.key===Ts._.Enter,to=le.keyCode===Ts.Ju.Space,Po=(Fe==null?void 0:Fe.isInCompositionMode)&&(Fe==null?void 0:Fe.isInCompositionMode()),fo=Ee?Ft&&bn:!ct&&!vt&&bn&&!Po,Ho=Pe&&(0,Rd.or)(le);(pn||fo||Ho&&!to)&&(this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:!1,isNeedMigrateLinkItalic:!1}}),Ke({type:"mind:update:isShallowEditText",payload:!0})),Ho&&(le.preventDefault(),le.stopPropagation(),(0,Rd.or)(le,Ke))}),(0,ve.A)(this,"handleKeySave",le=>{le.preventDefault(),this.saveAction()}),(0,ve.A)(this,"quitRichTextEditingByEsc",le=>{if(le.key==="s"&&(le.ctrlKey||le.metaKey)){this.handleKeySave(le);return}const{editingMindNode:Pe}=this.props;if(Pe){this.handleKeyDownOnMindNodeEdit(le);return}const Fe=le.metaKey||le.ctrlKey,Ke=le.key===Ts._.Escape,ct=le.key===Ts._.Enter;(Ke||Fe&&ct)&&this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}})}),(0,ve.A)(this,"quitRichTextEditing",le=>{const{isLinkToastShow:Ee,isShallowEditText:Pe}=this.props;if(!Pe){if(!le.target.closest(".draft-link-toast")&&Ee&&!le.target.dataset.text){["INPUT","LABEL","TEXTAREA"].includes(le.target.tagName)||(le.preventDefault(),le.stopPropagation()),C.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}});return}le.target.closest(".draft-link-toast")||le.target.closest(".draft-inline-toolbar")||le.target.closest(".quick-menu-option .content")||le.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||le.target.closest(".image-content")||le.target.closest("#ai-semantic-modal")||le.target.closest(".ai-semantic-recommend-panel")||le.target.closest(".WorkspaceInputNumber")||le.target.closest("#textediting-menu")||le.target.closest(".font-family-menu")||le.target.closest(".--mb--color-picker")||le.target.closest("#ai-semantic-modal")||le.target.closest(".ai-semantic-recommend-panel")||le.target.closest(".context-menu-mask")||le.target.closest(".draft-rich-text-editor.draft-rich-text-editor-wrapper")||le.target.closest(".font-size-input-menu")||le.target.closest("#text-settings")||le.target.closest(".font-options-menu #text-settings-font-menu")||document.getElementById("font-list-panel")||le.target.closest(".md-magnifier-color-item")||(C.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}}))}}),(0,ve.A)(this,"getEditorStyle",()=>{const{node:le,swimlaneSelectedCellInfo:Ee,editingMindNode:Pe}=this.props;let Fe=le?{...le.hotAttr,key:le.key}:void 0,Ke={},ct={};if(Fe){if(Ke=Fe.richTextV1,Fe.type===m.x.WSwimlane){const{cells:F,table:oe}=Fe.database,{x:be,y:Mt}=Ee.tl,ut=F[oe[Mt][be]];ut&&(Fe.textV1=ut.textV1,Fe.richTextV1=ut.richTextV1,Ke=ut.richTextV1)}ct=this.getWrapperStyleV0(Fe)}if(Pe){const{richTextNode:F}=Pe;Fe={...F.hotAttr,key:F.key},Ke=Fe.richTextV1,ct=this.getMindNodeWrapperStyleV0()}if(!Fe)return null;const{type:vt}=Fe,{sizeType:Ft,fontDirection:pn,horizontalAlign:bn,verticalAlign:to}=Ke,Po=Ke["!lhVersion"],fo=Ft===0?"auto":"fixed",{left:Ho,top:Ko,...ha}=ct,Aa={transform:"translate("+Ho+"px, "+Ko+"px)",width:ha.width,height:ha.height,display:"flex"},I={...ha};return pn==="vertical-lr"&&Ft===0&&(I.height="max-content"),{widget:Fe,type:vt,editorWarpperStyle:Aa,richEditorStyle:I,lhVersion:Po,sizeType:fo,fontDirection:pn,horizontalAlign:bn,verticalAlign:to}});let ae=!1,de=!1;const ge=(H=this.props.node)==null?void 0:H.hotAttr;ge!=null&&ge.textV1&&(ae=(0,Bd.SD)(ge.textV1.blocks),de=ge["!liVersion"]===1),this.state={containerBorderHeight:0,containerBorderWidth:0,isWidgetFirstEdit:ae,isNeedMigrateLinkItalic:de}}componentDidMount(){var U;MB.f.editing=!0,MB.f.editingRichText=!0;const H=this.props.node||((U=this.props.editingMindNode)==null?void 0:U.richTextNode);H!=null&&H.hotAttr.textV1&&(0,Re.ay)(H,"add")}componentWillUnmount(){var U;MB.f.editing=!1,MB.f.editingRichText=!1;const H=this.props.node||((U=this.props.editingMindNode)==null?void 0:U.richTextNode);H!=null&&H.hotAttr.textV1&&(0,Re.ay)(H,"remove")}render(){const{activeEntityKey:U,isLinkToastShow:H,isCreatingLink:ae,isShallowEditText:de,isEditingSelectAll:ge,isEditingMoveToEnd:le,dispatch:Ee}=this.props,{isNeedMigrateLinkItalic:Pe,isWidgetFirstEdit:Fe}=this.state,Ke=this.getEditorStyle();if(!(Ke!=null&&Ke.widget)||sdkStore.isTrashed(Ke.widget.key))return this.props.dispatch({type:"quit:rich:text:editing"}),null;const ct=dn()("draft-rich-text-editor","draft-rich-text-editor-wrapper",Ke.type,Ke.sizeType,Ke.fontDirection,{horizontalAlign:Ke.horizontalAlign,verticalAlign:Ke.verticalAlign,fontDirection:Ke.fontDirection,isShallowEditText:de});return(0,Ce.jsx)("div",{style:Ke.editorWarpperStyle,children:(0,Ce.jsxs)(La,{className:ct,style:Ke.richEditorStyle,onMouseDown:this.handleMouseDown,children:[(0,Ce.jsx)(ch,{isShallowEditText:de,isEditingSelectAll:ge,isEditingMoveToEnd:le,widget:Ke.widget,onSelectionChange:this.handleSelectionChange,activeEntityKey:U,isLinkToastShow:H,isCreatingLink:ae,fontDirection:Ke.fontDirection,dispatch:Ee,lhVersion:Ke.lhVersion,isWidgetFirstEdit:Fe,isNeedMigrateLinkItalic:Pe}),(0,Ce.jsx)(Ia.A,{target:document,onKeyDown:(0,Ia.t)(this.quitRichTextEditingByEsc,{capture:!0}),onMouseDown:(0,Ia.t)(this.quitRichTextEditing,{capture:!0})})]})})}}const Km=(0,oo.Mz)([Zr.c,yo.oi,yo.uA,yo.ah,yo.aJ,X0.k.Query.getActiveEntityKey,X0.k.Query.getLinkToastShow,X0.k.Query.getIsCreatingLink,ft.X.query.getSelectedCellsInfo,ft.X.query.getIsDeepEditing,l.Mj,D.Gq,V.UV],($,U,H,ae,de,ge,le,Ee,Pe,Fe,Ke,ct,vt)=>({node:$,activeEntityKey:ge,isLinkToastShow:le,isCreatingLink:Ee,swimlaneSelectedCellInfo:Pe,swimlaneIsDeepEditing:Fe,editingMindNode:U,isShallowEditText:de,isEditingSelectAll:H,isEditingMoveToEnd:ae,richTextEditorState:Ke,defaultAttrs:ct,widgetStore:vt})),Vl=$=>($.node||$.editingMindNode)&&(0,Ce.jsx)(Cm,{...$}),wm=(0,k.Ng)($=>Km($))(Vl);var Sm=i(56074);function s2(){const $=(0,Sm.A)({isVisible:!1});return{store:$,initialize:U=>{const H=U.getReadOnly,ae=U.getEditorState,de=U.setEditorState,ge=U.getWidget;$.updateItem("getReadOnly",H),$.updateItem("getEditorState",ae),$.updateItem("setEditorState",de),$.updateItem("getWidget",ge)},unmounted:()=>{$.updateItem("getReadOnly",null),$.updateItem("getEditorState",null),$.updateItem("setEditorState",()=>!1),$.updateItem("getWidget",null)}}}const mu=s2();function Bh(){const $={getEditorRef:void 0,getReadOnly:void 0,getEditorState:void 0,setEditorState:void 0};return{store:$,initialize:U=>{$.getReadOnly=U.getReadOnly,$.getEditorRef=U.getEditorRef,$.getEditorState=U.getEditorState,$.setEditorState=U.setEditorState}}}const N2=Bh();var Mm=i(42738);const ph=$=>{const U=$.WrappedComponent||$;return U.displayName||U.name||"Component"},Ym=$=>{const U=$.blockKeyStore;return H=>{const ae=(de,ge)=>{const{block:le,mode:Ee,contentState:Pe,blockProps:Fe,className:Ke,style:ct,onMouseDown:vt,onMouseMove:Ft,onMouseLeave:pn}=de,{isFocused:bn,alignment:to,setFocusToBlock:Po}=Fe;(0,a.useEffect)(()=>(U.add(le.getKey()),()=>{U.remove(le.getKey())}),[]);const fo=Ko=>{Ko.preventDefault(),Ko.stopPropagation(),Po()},Ho=dn()(Ke,{focused:bn,unfocused:!bn});return(0,Ce.jsx)(H,{block:le,mode:Ee,contentState:Pe,ref:ge,className:Ho,alignment:to,style:ct,onClick:fo,onMouseDown:vt,onMouseMove:Ft,onMouseLeave:pn})};return ae.displayName="BlockFocus("+ph(H)+")",ae.WrappedComponent=H.WrappedComponent||H,a.forwardRef(ae)}},fu=$=>{const U=$.WrappedComponent||$;return U.displayName||U.name||"Component"},gu=$=>{const U=$.store;return H=>{const ae=(de,ge)=>{const{block:le,mode:Ee,contentState:Pe,className:Fe,blockProps:Ke,style:ct,onMouseDown:vt,onMouseMove:Ft,onMouseLeave:pn}=de,{src:bn,alt:to,isFocused:Po,isCollapsedSelection:fo,alignment:Ho,setAlignment:Ko}=Ke,ha=(0,a.useRef)();return(0,a.useEffect)(()=>{if(Po&&fo&&ha.current){const Aa=ha.current.getBoundingClientRect();U.updateItem("setAlignment",Ko),U.updateItem("alignment",Ho),U.updateItem("boundingRect",Aa),U.updateItem("visibleBlock",le.getKey()),U.updateItem("imageProps",{src:bn,alt:to})}else U.getItem("visibleBlock")===le.getKey()&&U.updateItem("visibleBlock",null);return()=>{U.updateItem("visibleBlock",null)}},[bn,to,Po,fo,Ho,Ko,le]),(0,Ce.jsx)(H,{block:le,mode:Ee,contentState:Pe,className:Fe,blockProps:Ke,style:ct,ref:Aa=>{ha.current=Aa,typeof ge=="function"?ge(Aa):ge&&(ge.current=Aa)},onMouseDown:vt,onMouseMove:Ft,onMouseLeave:pn})};return ae.displayName="Alignment("+fu(H)+")",ae.WrappedComponent=H.WrappedComponent||H,a.forwardRef(ae)}},pc=($,U,H)=>{let{isLeft:ae,isRight:de}=$,{startWidth:ge,startX:le}=U;return ae?ge+le-H.clientX:ge+H.clientX-le},yu=($,U,H)=>{let{isTop:ae,isBottom:de}=$,{startHeight:ge,startWidth:le,startY:Ee}=U;const Pe=le/ge;return(ae?ge+Ee-H.clientY:ge+H.clientY-Ee)*Pe},Q0=$=>{const U=$.WrappedComponent||$;return U.displayName||U.name||"Component"},J0=($,U)=>Math.ceil($/U)*U,Ud=$=>{const U=$.store;return H=>{const ae=(de,ge)=>{const{block:le,mode:Ee,contentState:Pe,className:Fe,blockProps:Ke,initialWidth:ct,initialHeight:vt}=de,{resizeData:Ft,setResizeData:pn}=Ke,bn=de.isResizable===void 0?!0:de.isResizable,to=de.resizeSteps===void 0?1:de.resizeSteps,Po=U.getReadOnly&&U.getReadOnly(),fo=de.vertical===void 0?"relative":de.vertical,Ho=de.horizontal===void 0?"relative":de.horizontal,[Ko,ha]=(0,a.useState)(!1),[Aa,I]=(0,a.useState)(0),[F,oe]=(0,a.useState)(0),[be,Mt]=(0,a.useState)({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0}),ut=(0,a.useRef)(),tn=(0,a.useCallback)(()=>{!Ko&&Mt({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0})},[Ko]),Xt=(0,a.useCallback)(v=>{const te=ut.current.getBoundingClientRect(),me=v.clientX-te.left,$e=v.clientY-te.top,nt=fo&&fo!=="auto"?$e<6:!1,yt=Ho?me<6:!1,dt=Ho?me>=te.width-6&&me<te.width:!1,It=fo&&fo!=="auto"?$e>=te.height-6&&$e<te.height:!1,xn={isTop:nt,isLeft:yt,isRight:dt,isBottom:It,canResize:(nt||yt||dt||It)&&bn};Mt(gn=>Object.keys(xn).filter(vo=>gn[vo]!==xn[vo]).length?xn:gn)},[fo,Ho,bn]),Kn=(0,a.useCallback)(v=>{if(!be.canResize)return;v.preventDefault();const K=be.isTop,te=be.isLeft,me=be.isRight,$e=be.isBottom,nt=ut.current.getImgElement(),yt=v.clientX,dt=v.clientY,It=nt&&parseInt(document.defaultView.getComputedStyle(nt).width,10),un=nt&&parseInt(document.defaultView.getComputedStyle(nt).height,10);let xn=Aa,gn=F;const wo=Co=>{let Eo=pc({isLeft:te,isRight:me},{startWidth:It,startX:yt},Co),go=yu({isTop:K,isBottom:$e},{startHeight:un,startWidth:It,startY:dt},Co);const xo=U.getEditorRef(),jo=xo.refs&&xo.refs.editor?xo.refs.editor:xo.editor;Eo=Math.min(jo.clientWidth,Eo),go=Math.min(jo.clientWidth,go);const pa=100/jo.clientWidth*Eo,na=100/jo.clientWidth*go;(te||me)&&Ho==="relative"?(xn=to?J0(pa,to):pa,I(xn)):(te||me)&&Ho==="absolute"&&(xn=to?J0(Eo,to):Eo,I(xn)),(K||$e)&&fo==="relative"?(xn=to?J0(na,to):na,I(xn)):(K||$e)&&fo==="absolute"&&(gn=to?J0(go,to):go,oe(gn)),Co.preventDefault()},vo=()=>{document.removeEventListener("mousemove",wo,!1),document.removeEventListener("mouseup",vo,!1),ha(!1),pn({width:xn,height:gn||void 0})};document.addEventListener("mousemove",wo,!1),document.addEventListener("mouseup",vo,!1),ha(!0)},[be,Aa,F,Ho,fo,pn,to]),ao=(0,a.useMemo)(()=>{const v={position:"relative",cursor:"pointer",width:"100%",height:"auto"},K=be.isTop,te=be.isLeft,me=be.isRight,$e=be.isBottom;if(Ho==="auto")v.width="auto";else if(Ho==="relative"){const nt=Aa||Ft.width;!nt&&ct?v.width=ct:v.width=(nt||40)+(nt&&(nt+"").includes("%")?"":"%")}else if(Ho==="absolute"){const nt=Aa||Ft.width;!nt&&ct?v.width=ct:v.width=(nt||40)+"px"}if(fo==="auto")v.height="auto";else if(fo==="relative"){const nt=Aa||Ft.width;!nt&&ct?v.width=ct:v.width=(nt||40)+(nt&&(nt+"").includes("%")?"":"%")}else if(fo==="absolute"){const nt=F||Ft.height;!nt&&vt?v.height=vt:v.height=(nt||40)+"%"}return bn?me&&$e||te&&K?v.cursor="nwse-resize":me&&K||$e&&te?v.cursor="nesw-resize":me||te?v.cursor="ew-resize":$e||K?v.cursor="ns-resize":v.cursor="pointer":v.cursor="pointer",v},[Ho,fo,bn,be,Aa,F,ct,vt,Ft.width,Ft.height]);return(0,Ce.jsx)(H,{block:le,mode:Ee,contentState:Pe,className:Fe,blockProps:Ke,style:ao,onMouseDown:Po?void 0:Kn,onMouseMove:Po?void 0:Xt,onMouseLeave:Po?void 0:tn,ref:v=>{ut.current=v,typeof ge=="function"?ge(v):ge&&(ge.current=v)}})};return ae.displayName="BlockResizeable("+Q0(H)+")",ae.WrappedComponent=H.WrappedComponent||H,a.forwardRef(ae)}},vu={options:["imageAlign","v_separator","enlarge"],imageAlign:{inDropdown:!0,icon:"draft/alignment",className:"draft-alignment",title:"\u5BF9\u9F50\u65B9\u5F0F",options:["left","center","right","justify"],left:{icon:"draft/text-align/left",className:"draft-text-align-left",title:"\u5DE6\u5BF9\u9F50"},center:{icon:"draft/text-align/center",className:"draft-text-align-center",title:"\u5C45\u4E2D\u5BF9\u9F50"},right:{icon:"draft/text-align/right",className:"draft-text-align-right",title:"\u53F3\u5BF9\u9F50"},justify:{icon:"draft/text-align/justify",className:"draft-text-align-justify",title:"\u4E24\u7AEF\u5BF9\u9F50"}},enlarge:{inDropdown:!1,icon:"draft/enlarge",className:"draft-enlarge",title:"\u9884\u89C8"},v_separator:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},Uu=mn.Ay.div.withConfig({displayName:"styles__StyledDraftImageAtomicDiv",componentId:"sc-5nznd1-0"})(['.draggable-btn{position:absolute;width:20px;height:20px;display:none;justify-content:center;align-items:center;z-index:1;&.top{top:0px;}&.left{left:0px;}&.right{right:0px;}&.bottom{bottom:0px;}&::after{content:"";display:block;height:10px;width:10px;border:1px solid #3370ff;border-radius:50%;box-sizing:border-box;background-color:#ffffff;}}&.focused{.draggable-btn{display:flex;z-index:2;}}']),xu=" ",Fu=($,U)=>{const{block:H,mode:ae,className:de,alignment:ge,contentState:le,style:Ee,onClick:Pe,onMouseDown:Fe,onMouseMove:Ke,onMouseLeave:ct}=$,vt=le.getEntity(H.getEntityAt(0)),{src:Ft,alt:pn}=vt.getData(),bn=a.useRef(null),to=fo=>{fo.preventDefault(),fo.stopPropagation(),MB.action&&MB.action("modal:update:state",{imagePreviewModal:{isOpen:!0,imgSrc:Ft,alt:pn}})},Po={width:"100%",height:"max-content",fontSize:0,textAlign:void 0};return vu.imageAlign.options.includes(ge)&&(Po.textAlign=ge),a.useImperativeHandle(U,()=>({getImgElement:()=>bn.current,getBoundingClientRect:()=>bn.current.getBoundingClientRect()})),(0,Ce.jsxs)(Uu,{style:Po,children:[xu,(0,Ce.jsx)("img",{ref:bn,style:Ee,className:de,onDoubleClick:ae==="edit"?void 0:to,onClick:Pe,onMouseDown:Fe,onMouseMove:Ke,onMouseLeave:ct,src:Ft,alt:pn,draggable:"false",role:"presentation"})]})},Vu=a.forwardRef(Fu),Y1=$=>{let{contentState:U,block:H}=$;const ae=H.getKey(),ge=U.getFirstBlock().getKey(),Ee=U.getLastBlock().getKey(),Pe=U.getBlockBefore(ae),Fe=U.getBlockAfter(ae),Ke="draft-image-atomic",ct=ae!==ge&&(Pe.getType()==="atomic"||Pe.getType()!=="atomic"&&Pe.getText()),vt=ae!==Ee&&Fe.getType()!=="atomic";return Ke},uh=$=>{let{alignmentStore:U,resizeableStore:H,blockKeyStore:ae}=$;return(de,ge)=>{const le=de.getEditorState,Ee=de.setEditorState;if(ge.getType()==="atomic"){const Pe=le(),Fe=Pe.getCurrentContent(),Ke=ge.getEntityAt(0);if(!Ke)return null;const ct=Fe.getEntity(Ke);if(!ct)return null;const vt=ct.getType();if(["image","IMAGE"].includes(vt)){const Ft=ct.getData(),{src:pn,alt:bn,width:to,height:Po,alignment:fo}=Ft,Ho={src:pn,alt:bn},Ko=to?typeof to=="number"?to+"%":to.includes("%")?to:to+"%":"100%",ha=Ym({blockKeyStore:ae}),Aa={isFocused:Pe.getSelection().getHasFocus()&&(0,kr.rr)(Pe,ge.getKey()),isCollapsedSelection:Pe.getSelection().isCollapsed(),setFocusToBlock:()=>{(0,kr.D8)(le,Ee,ge)}},I=gu({store:U}),F={alignment:fo||"default",setAlignment:(0,kr.Uf)(ge,{getEditorState:le,setEditorState:Ee})},oe=Ud({store:H}),be={resizeData:{width:to,height:Po},setResizeData:(0,kr.Rr)(ge,{getEditorState:le,setEditorState:Ee})},Mt=Y1({contentState:Fe,block:ge}),ut=a.createElement(oe(I(ha(Vu))),{block:ge,mode:"edit",contentState:Fe,className:Mt,isResizable:void 0,resizeSteps:void 0,vertical:void 0,horizontal:void 0,initialWidth:Ko,initialHeight:void 0,blockProps:{...Ho,...F,...Aa,...be}});return{component:()=>ut,editable:!1}}return null}return null}};var zu=i(73629);const E0=[Ws.A,mu,N2,Os];class yd extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"editorRef",null),(0,ve.A)(this,"containerRef",null),(0,ve.A)(this,"handleCompositionstart",()=>{const{editorState:le}=this.state,Ee=(0,kr.AR)(le);this.setState({editorState:Ee})}),(0,ve.A)(this,"handleWheel",le=>{le.stopPropagation(),(le.metaKey||le.ctrlKey)&&le.preventDefault()}),(0,ve.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget})),(0,ve.A)(this,"setContainerEditorRef",le=>{this.containerRef=le}),(0,ve.A)(this,"setEditorRef",le=>{this.editorRef=le}),(0,ve.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,ve.A)(this,"getEditorState",()=>this.state.editorState),(0,ve.A)(this,"getWidget",()=>this.state.widget),(0,ve.A)(this,"handleEditorSelection",le=>{let{widget:Ee,linkTitle:Pe,originLinkTarget:Fe,blockKey:Ke,start:ct,end:vt}=le;if(!Ee||!Ee.cid)return;const{widget:Ft,editorState:pn}=this.state;if(!Ft||!Ft.cid||Ft.cid!==Ee.cid)return;let bn;if(Ke){const Ho=pn.getCurrentContent(),Ko=Ho.getBlockForKey(Ke);if(bn=Ko.getEntityAt(ct),!bn){let ha;Ko.findEntityRanges(Aa=>(ha=Aa.getEntity(),ha!==null&&Ho.getEntity(ha).getType()==="LINK"),(Aa,I)=>{Aa===ct&&vt===I&&(bn=ha)})}}const to=(0,Wr.Bm)(pn.getCurrentContent(),Ke,ct,vt,Fe,Pe);if(!to)return;const Po=(0,Wr.N$)(pn,to);Po&&this.handleEditorStateChange(Po);const{dispatch:fo}=this.props;bn&&fo({type:X0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:bn}})}),(0,ve.A)(this,"handleEditorStateChange",le=>{let Ee=le;E0.forEach(Pe=>{Pe.onChange&&(Ee=Pe.onChange(Ee))}),this.setState({editorState:Ee})}),(0,ve.A)(this,"handleEditorClick",()=>{document.activeElement.contentEditable!=="true"&&this.focus()}),(0,ve.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,ve.A)(this,"handlePastedText",(le,Ee)=>{if(Ee){const{editorState:Pe}=this.state,Fe=(0,zn.DL)({html:Ee,editorState:Pe,inlineProcessType:"merge",componentType:bs.a.COMMON});if(Fe)return this.handleEditorStateChange(Fe),!0}return!1}),(0,ve.A)(this,"handlePastedFiles",le=>{if(!le||!le.length)return;const Ee=le[0];if(["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml"].includes(Ee.type))return C.A.emit("draft:side-toolbar:image-paste",{target:{files:[Ee]}}),"handled"});const{widget:H}=U,{textV1:ae}=H,de=(0,An.mx)(ae),ge=(0,$t.n)(de);this.blockRendererFn=uh({alignmentStore:mu.store,resizeableStore:N2.store,blockKeyStore:Os.store}),this.state={widget:H,editorState:ge,readOnly:!1}}componentDidMount(){if(E0.forEach(U=>{U&&U.initialize&&typeof U.initialize=="function"&&U.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,C.A.on("draft:design:editorState:selection",this.handleEditorSelection),this.focus(),this.editorRef){const U=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');U&&U.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(E0.forEach(U=>{U&&U.unmounted&&typeof U.unmounted=="function"&&U.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,C.A.off("draft:design:editorState:selection",this.handleEditorSelection),this.editorRef){const U=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');U&&U.removeEventListener("compositionstart",this.handleCompositionstart)}}}const{handleKeyCommand:km,handleReturn:Em,keyBindingFn:bu}=Os,Wu=[Ws.A,mu,N2,Os];class Cu extends yd{constructor(U){super(U),(0,ve.A)(this,"editorRef",null),(0,ve.A)(this,"containerRef",null),(0,ve.A)(this,"handleCompositionstart",()=>{const{editorState:le}=this.state,Ee=(0,kr.AR)(le);this.setState({editorState:Ee})}),(0,ve.A)(this,"getReadOnly",()=>this.state.readOnly),(0,ve.A)(this,"setReadOnly",le=>{le!==this.state.readOnly&&this.setState({readOnly:le})}),(0,ve.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,getReadOnly:this.getReadOnly,setReadOnly:this.setReadOnly})),(0,ve.A)(this,"handleEditorStateChange",(le,Ee)=>{var Pe;const{isNeedMigrateLinkItalic:Fe,dispatch:Ke,widget:ct}=this.props;let vt=le;const Ft=(0,ze.dM)(vt.getCurrentContent()),pn=(0,An.qn)(Ft);vt=(0,ah.Jk)(Ft,vt,ct.type),this.setState({editorState:vt},()=>{Wu.forEach(Po=>{Po.onChange&&(vt=Po.onChange(vt))})}),(Pe=MB)==null||Pe.action("set:rich:text:editor:state",{richTextEditorState:vt});const to=(Ee==null?void 0:Ee.isImageInserted)?200:16.7;setTimeout(()=>{const{widgetKey:Po,widget:{textV1:fo,textV0:{padding:Ho},h:Ko,type:ha}}=this.props;let Aa=!1,I=!1;(0,xt.eI)(pn,fo)||(Aa=!0);let F=Ko;if(this.editorRef&&this.editorRef.editor&&this.editorRef.editor.editorContainer){F=this.editorRef.editor.editorContainer.offsetHeight||0;const{showAuthor:be,showTime:Mt}=this.props.widget.info;(be||Mt)&&(F+=28),F=F+(Ho||0)*2,F<100&&(F=100),F>Ko&&(I=ha===m.x.WTear?(0,zu.SW)(F)&&(0,zu.qz)(F)!==Ko:!0)}if(!Aa&&!I)return;const oe={key:Po,textV1:void 0,h:void 0,stickyH:void 0,isNeedMigrateLinkItalic:Fe};Aa&&(oe.textV1=pn),ha===m.x.WTear?(0,zu.SW)(F)&&(oe.stickyH=(0,zu.qz)(F)):I&&(oe.h=F),Ke({type:X0.k.EntryKey["entry:draft:sticky:update"],payload:oe})},to)}),(0,ve.A)(this,"linkCallback",le=>{let{entityKey:Ee,style:Pe,decoratedText:Fe,url:Ke,blockKey:ct,start:vt,end:Ft}=le;const{widget:pn,widgetKey:bn,isCreatingLink:to,dispatch:Po}=this.props;to||(Po({type:X0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Ee}}),C.A.emit("draft:link-toast:view",{widget:{key:bn,...pn},linkTitle:Fe,linkTarget:Ke,style:Pe,blockKey:ct,start:vt,end:Ft}))}),(0,ve.A)(this,"handleCustomStyleFn",(le,Ee)=>{const Pe=Ee.getText();if((le==null?void 0:le.size)===0&&!(Pe!=null&&Pe.length)){const{editorState:Fe}=this.state,Ke=Fe.getCurrentInlineStyle();return(0,Wr.Od)(Ke)}return{}}),(0,ve.A)(this,"handleMouseDown",le=>{const{dispatch:Ee}=this.props;if(le.button===2){if(le.target.tagName==="IMG")return;Ee({type:"entry:contextmenu:withtype",payload:{position:{top:le.clientY,left:le.clientX},type:"text"}})}}),(0,ve.A)(this,"handleCopy",async(le,Ee)=>{const{editorState:Pe}=this.state,Fe=(0,zn.vd)({editorState:Pe,richTextV1:void 0}),Ke=(0,_r.u0)(Pe);Ee&&(Ee.preventDefault(),Ee.clipboardData.setData("text/html",Fe),Ee.clipboardData.setData("text/plain",Ke)),await(0,M1.$H)({hasNotice:!1})?await(0,uu.NO)({html:Fe}):await(0,M1.qG)({html:Fe,selectionText:Ke})}),(0,ve.A)(this,"handleCut",async(le,Ee)=>{const{widget:Pe}=this.props,{editorState:Fe}=this.state,Ke=(0,_r.u0)(Fe),ct=(0,zn.ag)({editorState:Fe,richTextV1:void 0,w:Pe.w,h:Pe.h});Ee&&(Ee.preventDefault(),Ee.clipboardData.setData("text/html",ct),Ee.clipboardData.setData("text/plain",Ke)),await(0,M1.$H)({hasNotice:!1})?(0,uu.NO)({html:ct}):(0,M1.qG)({html:ct,selectionText:Ke})}),(0,ve.A)(this,"handlePaste",async()=>{const le=await(0,M1.v)();le!=null&&le.content&&this.handlePastedText(le==null?void 0:le.content,le==null?void 0:le.content)});const{widget:H}=U,{textV1:ae}=H,de=(0,An.mx)(ae);let ge=(0,$t.n)(de);U.isNeedMigrateLinkItalic&&(ge=(0,Oh.cA)({textV1:ae,editorState:ge})),this.blockRendererFn=uh({alignmentStore:mu.store,resizeableStore:N2.store,blockKeyStore:Os.store}),this.state={widget:H,editorState:ge,readOnly:!1}}componentDidUpdate(U){const{widget:{textV0:H}}=U,{widget:{textV1:ae,textV0:de}}=this.props;if(!W0()(H,de)){const ge=(0,An.mx)(ae);this.setState({editorState:(0,$t.n)(ge)})}}componentDidMount(){if(Wu.forEach(U=>{U&&U.initialize&&typeof U.initialize=="function"&&U.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,C.A.on("draft:design:editorState:selection",this.handleEditorSelection),C.A.on("draft:text:copy",this.handleCopy),C.A.on("draft:text:cut",this.handleCut),C.A.on("draft:text:paste",this.handlePaste),this.focus(),this.props.is4Tear&&this.containerRef.addEventListener("wheel",this.handleWheel,{passive:!1}),this.handleEditorStateChange(ze.$t.moveFocusToEnd(this.state.editorState)),this.editorRef){const U=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');U&&U.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(Wu.forEach(U=>{U&&U.unmounted&&typeof U.unmounted=="function"&&U.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,C.A.off("draft:design:editorState:selection",this.handleEditorSelection),C.A.off("draft:text:copy",this.handleCopy),C.A.off("draft:text:cut",this.handleCut),C.A.off("draft:text:paste",this.handlePaste),this.props.is4Tear&&this.containerRef.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.editorRef){const U=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');U&&U.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{activeEntityKey:U,is4Tear:H,widget:ae,isNeedMigrateLinkItalic:de,dispatch:ge}=this.props,{editorState:le}=this.state,Ee=ae["!liVersion"],Pe=[{strategy:Cs,component:Hr,props:{callback:this.linkCallback,version:Ee,isNeedMigrateLinkItalic:de,dispatch:ge}}];let Fe=!1;(ae.type==="wTear"||ae.type==="wSticky")&&(Fe=ae["!haVersion"]!==3);const Ke=ae.textV0.horizontalAlign,ct=Ti(Fe,Ke);return(0,Ce.jsx)(Mm.w,{className:dn()("editing",H&&"wTear"),activeKey:U,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,children:(0,Ce.jsx)(ci.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-common-editor-wrapper",editorClassName:"draft-common-editor",ref:this.setEditorRef,editorState:le,onEditorStateChange:this.handleEditorStateChange,blockStyleFn:ct,customDecorators:Pe,customStyleMap:{...xi.a2},customBlockRenderFunc:this.blockRendererFn.bind(this,this.getPluginMethods()),keyBindingFn:bu.bind(this,this.getPluginMethods()),handleKeyCommand:km.bind(this,this.getPluginMethods()),handleReturn:Em.bind(this,this.getPluginMethods()),handlePastedText:this.handlePastedText,handlePastedFiles:this.handlePastedFiles,customStyleFn:this.handleCustomStyleFn,onCopy:this.handleCopy,onCut:this.handleCut,textAlign:Ke})})}}var Im=i(33908);class q0 extends a.PureComponent{constructor(U){super(U),(0,ve.A)(this,"handleDocDown",H=>{const{item:ae,linkToastShow:de,dispatch:ge}=this.props;if(!H.target.closest(".draft-link-toast")&&de){["INPUT","LABEL","TEXTAREA"].includes(H.target.tagName)||(H.preventDefault(),H.stopPropagation()),C.A.emit("draft:link-toast:quit");return}if(!(H.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||H.target.closest(".image-content"))){if(H.target.closest(".draft-rich-editor-wrapper")){H.stopPropagation();return}if(H.target.closest("#text-settings")||H.target.closest("#text-settings-font-menu")||H.target.closest(".DropdownMenuBase")||H.target.closest('[type="color-panel"]')||H.target.closest(".--mb--color-picker")||H.target.closest(".draft-inline-toolbar")||H.target.closest(".quick-menu-option .content")||H.target.closest(".draft-alignment-toolbar")||H.target.closest(".image-preview-modal-portal")||H.target.closest(".side-sticky-content-menu")||H.target.closest(".context-menu-mask")){H.preventDefault();return}if(H.target.closest(".draft-link-toast")){["INPUT","LABEL","TEXTAREA"].includes(H.target.tagName)||H.preventDefault();return}if(de){H.preventDefault(),H.stopPropagation();return}H.target.closest("#ai-semantic-modal")||((0,Re.ay)(ae,"remove"),ge({type:"set:editing:cid",payload:{cid:""}}),ge({type:"colorpanel:set:attr",payload:{attr:void 0}}),ge({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}))}}),(0,ve.A)(this,"getPositionV0",()=>{const{item:H,tearOffset:ae,scale:de}=this.props;if(!H)return{left:0,top:0};if(H.hotAttr.type===m.x.WTear)return(0,zu._l)(H.hotAttr,de,ae);{const{x:ge,y:le,w:Ee,h:Pe}=sdkStore.getHotBound(H.key);return{left:ge-Ee*.5,top:le-Pe*.5}}}),(0,ve.A)(this,"handleMouseDown",H=>{(0,Ie.kI)(H)}),this.state={freshCount:0,position:{top:0,left:0,width:0,height:0}}}render(){const{item:U,activeEntityKey:H,isCreatingLink:ae,dispatch:de}=this.props;if(!U)return null;const{hotAttr:ge}=U,le=ge["!liVersion"]===1,Ee={position:"absolute",pointerEvents:"auto",...this.getPositionV0(),zIndex:99999};let Pe={...ge,key:U.key,cid:U.key};const Fe=ge.type===m.x.WTear;return Fe&&(Pe={...Pe,h:ge.stickyH,w:280}),(0,Ce.jsxs)("div",{className:dn()("draft-rich-editor-wrapper",{STSticky:Fe}),style:Ee,"data-cid":U.key,onMouseDown:this.handleMouseDown,children:[(0,Ce.jsx)(Im.A,{widget:Pe,isEditingArea:!0,hasPositionStyle:!1,mode:"design",children:(0,Ce.jsx)(Cu,{is4Tear:Fe,stickyH:Pe.h,widgetKey:U.key,widget:Pe,activeEntityKey:H,isCreatingLink:ae,dispatch:de,isNeedMigrateLinkItalic:le})}),(0,Ce.jsx)(Ia.A,{target:document,onMouseDown:(0,Ia.t)(this.handleDocDown)})]})}}const Tm=q0,_m=(0,oo.Mz)([je.c],$=>$&&(0,at.e_)($.hotAttr.type)?$:null),Uh=(0,oo.Mz)([_m,X0.k.Query.getLinkToastShow,X0.k.Query.getActiveEntityKey,s1.yc,X0.k.Query.getIsCreatingLink,l.X_],($,U,H,ae,de,ge)=>({item:$,linkToastShow:U,activeEntityKey:H,tearOffset:ae,isCreatingLink:de,scale:ge})),hh=(0,k.Ng)($=>Uh($))(Tm);var Fh=i(27937);const Vh=(0,oo.Mz)([l.lh,yo.A6,V.UV,V.RX],($,U,H,ae)=>{const de=$||U;if(!(!de||H.isTrashed(de)))return H.getHotItem(de)}),mh=()=>{var $;const U=(0,k.d4)(Vh);if(!U)return null;switch((0,at.wz)(U==null||($=U.hotAttr)==null?void 0:$.type)){case at.N1.Text:return(0,Ce.jsx)(Ja,{});case at.N1.RichDraft:return(0,Ce.jsx)(wm,{});case at.N1.Draft:return(0,Ce.jsx)(hh,{});default:return null}},Pm=()=>{const $=(0,k.d4)(l.PL).device,U=(0,k.d4)(l.X_),H=(0,k.d4)(Vh);if(!H)return null;const ae=H.hotAttr.type===m.x.WTear?void 0:{transform:"scale("+U/100+")"};return(0,Ce.jsx)("div",{className:"zoom-area editing-text-area "+(0,Jl.Km)($),style:ae,children:(0,Ce.jsx)(Fh.tH,{fallback:(0,Ce.jsx)(mh,{},H.key),beforeCapture:()=>{console.warn("-- Capture TextEditor error to prevent page crashed\uFF01")},children:(0,Ce.jsx)(mh,{},H.key)})})};var fh=i(64972),wu=i(27480),I0=i(27879);const gh=mn.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionController",componentId:"sc-f8r5qv-0"})(["position:absolute;pointer-events:auto;will-change:transform;&.unclickable{pointer-events:none;}div.tidy-up-button{position:absolute;bottom:5px;right:5px;pointer-events:auto;width:20px;height:20px;background-color:#1684fc;border-radius:4px;white-space:nowrap;will-change:transform;svg{width:20px;height:20px;color:#fff;}}"]),l2=mn.Ay.div.withConfig({displayName:"styles__StyledGapAdjuster",componentId:"sc-f8r5qv-1"})(["&.gap-adjuster-wrapper{position:absolute;box-sizing:content-box;background-color:#f54edb;background-clip:content-box;pointer-events:auto;border-radius:5px;will-change:transform;cursor:",";}"],$=>$.type==="row"?Rt.M.nsResize:Rt.M.ewResize);var Hu=function($){return $.Row="row",$.Column="column",$.Grid="grid",$}(Hu||{}),Gu=function($){return $.Row="row",$.Column="column",$}(Gu||{});const k1=$=>{let U=Hu.Grid;return $.length>0&&($.length===1&&(U=Hu.Row),$.every(H=>H.items.length===1)&&(U=Hu.Column)),U};class j2 extends a.PureComponent{constructor(){super(...arguments),(0,ve.A)(this,"state",{isLimited:!0,selectedWidgetInfo:[],tidyUpActionType:k1(this.props.sortedRows),filteredSelectedItems:[],aabb:[]}),(0,ve.A)(this,"handleSortWidgets",U=>{U.stopPropagation();const{dispatch:H}=this.props;H({type:"entry:smart-selection:arrange:widgets"})}),(0,ve.A)(this,"onGapAdjusterMouseDown",(U,H,ae)=>{const{itemMargin:de,lineSpace:ge,viewport:le,dispatch:Ee}=this.props,{selectedWidgetInfo:Pe}=this.state,{result:Fe}=(0,I0.N8)(Pe,null),{minItemMargin:Ke,minLineSpace:ct}=(0,I0.no)(Fe),vt=U.clientX,Ft=U.clientY;sdkStore.combineMergeMark("adjust-ss-gap");const pn=to=>{Ee({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),Ee({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}});const{scale:Po}=le,fo=(to.clientX-vt)/Po>>0,Ho=(to.clientY-Ft)/Po>>0,Ko=Math.round(fo),ha=Math.round(Ho),Aa={x:Ko,y:ha};if(Ee(fh.UU.update({[H===Gu.Row?"isAdjustingRowGap":"isAdjustingColGap"]:!0})),H===Gu.Column){const I=Math.max(Math.round(de+Aa.x*ae),Ke);Ee({type:"entry:smart-selection:updating:gap",payload:{colGap:I}})}if(H===Gu.Row){const I=Math.max(Math.round(ge+Aa.y*ae),ct);Ee({type:"entry:smart-selection:updating:gap",payload:{rowGap:I}})}},bn=()=>{Ee({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),Ee({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),Ee(fh.UU.update({isAdjustingColGap:!1,isAdjustingRowGap:!1})),Ee({type:"entry:select:smartly"}),document.removeEventListener("pointermove",pn),document.removeEventListener("pointerup",bn),sdkStore.combineMerge("adjust-ss-gap")};return document.addEventListener("pointermove",pn),document.addEventListener("pointerup",bn),!0})}static getDerivedStateFromProps(U,H){var ae,de,ge,le;let{prevProps:Ee,selectedWidgetInfo:Pe}=H;if((U==null||(ae=U.selectedItems)==null?void 0:ae.length)!==(Ee==null||(de=Ee.selectedItems)==null?void 0:de.length)){const Fe=(0,I0.$3)(U.selectedItems),Ke=Fe.map(Ft=>Ft.key),ct=(0,I0.cb)(Fe),vt=k1(U.sortedRows);return{filteredSelectedItems:Fe,selectedWidgetInfo:ct,aabb:sdkStore.getHotKeyListAABB(Ke),isLimited:ct.findIndex(Ft=>{let{wW:pn,wH:bn}=Ft;return pn*U.viewport.scale<40||bn*U.viewport.scale<40})!==-1,tidyUpActionType:vt}}if((U==null||(ge=U.viewport)==null?void 0:ge.scale)!==(Ee==null||(le=Ee.viewport)==null?void 0:le.scale))return{isLimited:Pe.findIndex(Fe=>{let{wW:Ke,wH:ct}=Fe;return Ke*U.viewport.scale<40||ct*U.viewport.scale<40})!==-1}}render(){const{isActive:U,lineSpace:H,itemMargin:ae,sortedRows:de,isAdjustingRowGap:ge,isAdjustingColGap:le,isUnSmartSelectable:Ee,viewport:Pe,isDraggingItem:Fe}=this.props,{isLimited:Ke,selectedWidgetInfo:ct,tidyUpActionType:vt,filteredSelectedItems:Ft,aabb:pn}=this.state;if(Ee||Ft.length<2)return null;const{scale:bn}=Pe,[to,Po,fo,Ho]=pn,Ko=fo-to,ha=Ho-Po,Aa={width:Ko*bn,height:ha*bn,transform:"translate("+to*bn+"px,"+Po*bn+"px)"},I={transform:vt===Hu.Column?"rotate(90deg)":void 0};return(0,Ce.jsxs)("div",{className:"smart-wrap",children:[(0,Ce.jsx)(gh,{className:yi.c.GUIDE_COPY_AS_PNG,ref:this.smartSelectionController,onMouseDown:F=>F.currentTarget.classList.add("unclickable"),style:Aa,children:!U&&bn>=.3&&(0,Ce.jsx)("div",{className:"tidy-up-button",onMouseDown:this.handleSortWidgets,style:I,children:(0,Ce.jsx)(ps.C,{name:"art_board/smart_selection/"+vt})})}),U&&!Fe&&!Ke&&!(ge||le)&&Qm({viewport:Pe,itemMargin:ae,lineSpace:H,sortedRows:de,selectedWidgetInfo:ct,handleGapAdjusterMouseDown:this.onGapAdjusterMouseDown,isAdjustingGap:le||ge}),(ge||le)&&zh({isAdjustingRowGap:ge,isAdjustingColGap:le,lineSpace:H,itemMargin:ae,selectedWidgetInfo:ct,sortedRows:de,scale:bn})]})}}const yh=$=>{let{type:U,position:H,ratio:ae,scale:de,handleMouseDown:ge,isAdjustingGap:le,lineWidth:Ee}=$;const Pe=U==="row"?Ee*de*.8:2,Fe=U==="row"?2:16,Ke=H.x*de-Pe/2-(U==="row"?0:8),ct=H.y*de-Fe/2-(U==="row"?8:0),vt=U==="row"?"8px 0":"0 8px",Ft={opacity:le?"0":"1",transform:"translate("+Ke+"px,"+ct+"px)",padding:vt,width:Pe+"px",height:Fe+"px"};return(0,Ce.jsx)(l2,{className:"gap-adjuster-wrapper",style:Ft,type:U,onPointerDown:pn=>ge(pn,U,ae)})},zh=$=>{let{isAdjustingRowGap:U,isAdjustingColGap:H,sortedRows:ae,selectedWidgetInfo:de,lineSpace:ge,itemMargin:le,scale:Ee}=$,Pe=null;return ae.flatMap((Ke,ct)=>{const{items:vt,rowH:Ft}=Ke,pn=[];if(U){const{w:bn,x:to}=wu.rw.enclosing(de.flatMap(Po=>C2.a.points(Po.boundingPoints)));if(ct>0&&Pe!==null){const Po={x:to,y:Pe,w:Math.abs(bn),h:Math.abs(ge)};ge<0&&(Po.y=Po.y+ge);const fo=wu.rw.xywh(Po.x*Ee,Po.y*Ee,Po.w*Ee,Po.h*Ee);pn.push(fo),Pe=Pe+ge+Ft}else Pe=ae[0].centerY+ae[0].rowH*.5}if(H){let bn=0,to=null;for(;bn<vt.length;){const Po=vt[bn];if(to!==null){const fo={x:to.x,y:to.y,w:Math.abs(le),h:Math.abs(Ft)};le<0&&(fo.x=fo.x+le);const Ho=wu.rw.xywh(fo.x*Ee,fo.y*Ee,fo.w*Ee,fo.h*Ee);pn.push(Ho),to=J.Z.xy(to.x+le+Po.width,to.y)}else to=J.Z.xy(Po.boundingPoints.tr.x,Math.min(...vt.map(fo=>fo.boundingPoints.tr.y)));bn++}}return pn}).map((Ke,ct)=>{const vt={position:"absolute",width:Ke.w,height:Ke.h,transform:"translate("+Ke.x+"px,"+Ke.y+"px)",zIndex:9999,backgroundColor:"rgba(245, 78, 219, 0.3)"};return(0,Ce.jsx)("div",{style:vt},ct)})},Qm=$=>{let{sortedRows:U,selectedWidgetInfo:H,itemMargin:ae,lineSpace:de,viewport:ge,handleGapAdjusterMouseDown:le,isAdjustingGap:Ee}=$;const Pe=[];return U.forEach((Fe,Ke)=>{const{centerY:ct,items:vt}=Fe,{w:Ft,x:pn}=wu.rw.enclosing(H.flatMap(fo=>C2.a.points(fo.boundingPoints))),bn=U[Ke-1];if(Ke>0){const fo={x:pn,y:bn.centerY+bn.rowH*.5,w:Ft,h:de},Ho=wu.rw.center(fo),Ko=Ft*ge.scale,ha=1/(Ke-.5),Aa=J.Z.div(J.Z.xy(Ko*.4+I0.v_,3+I0.v_),ge.scale),I=O.L.apply(ge,J.Z.subtract(Ho,Aa)),F=J.Z.xy(Ko*.8+I0.v_*2,6+I0.v_*2),oe={x:I.x,y:I.y,w:F.x,h:F.y};Pe.push({type:"row",rect:oe,rowIndex:Ke,ratio:ha,position:Ho,lineWidth:Ft})}let to=0,Po=null;for(;to<vt.length;){const fo=vt[to];if(Po!==null){const Ho=Po+ae*.5,Ko=ct,ha=1/(to-.5),Aa=J.Z.div(J.Z.xy(1+I0.v_,9+I0.v_),ge.scale),I=O.L.apply(ge,J.Z.subtract(J.Z.xy(Ho,Ko),Aa)),F=J.Z.xy(4+I0.v_*2,18+I0.v_*2),oe={x:I.x,y:I.y,w:F.x,h:F.y};Pe.push({type:"column",rect:oe,rowIndex:Ke,ratio:ha,scale:ge.scale,position:{x:Ho,y:Ko}})}Po=fo.boundingPoints.br.x,to++}}),Pe.map((Fe,Ke)=>(0,Ce.jsx)(yh,{...Fe,scale:ge.scale,handleMouseDown:le,isAdjustingGap:Ee},Ke))},Lm=(0,oo.Mz)([kd.P2,kd.tR],($,U)=>$?U===Xn.bl.slicing:!1),Nm=(0,oo.Mz)([br.nE,To.$,l.$S,l.ER,l.X_,l.Jv,Lm,l.pO],($,U,H,ae,de,ge,le,Ee)=>{const{isHidden:Pe,isActive:Fe,rowStates:Ke,rowGap:ct,colGap:vt,changes:Ft,enableMarginChange:pn,isDragging:bn,isResizingGap:to,isAdjustingColGap:Po,isAdjustingRowGap:fo}=U,Ho={scale:de/100,size:H,offset:ae};return{changes:Ft,sortedRows:Ke,lineSpace:ct,itemMargin:vt,rowGap:ct,colGap:vt,viewport:Ho,isActive:Fe,selectedItems:$,isDragging:bn,isAdjustingColGap:Po,isAdjustingRowGap:fo,isUnSmartSelectable:!pn||ge||to||Pe||le,isDraggingItem:Ee}}),uc=(0,k.Ng)($=>Nm($))(j2),Su={position:"absolute",top:0,left:0,pointerEvents:"none"},Wh=()=>(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsxs)("div",{className:"fe-canvas",style:Su,children:[(0,Ce.jsx)(ye,{}),(0,Ce.jsx)(R0,{}),(0,Ce.jsx)(b2,{}),(0,Ce.jsx)(uc,{}),(0,Ce.jsx)(tu,{})]}),(0,Ce.jsx)(Pm,{})]}),Hh=()=>{const $=(0,k.d4)(D._b),U={position:"absolute",top:0,left:0,pointerEvents:"none"};return(0,Ce.jsxs)("div",{className:"ro-fe-canvas",id:"ro-fe-canvas",style:U,children:[!$&&(0,Ce.jsx)(R0,{}),(0,Ce.jsx)(t2,{})]})},Ku=mn.Ay.div.withConfig({displayName:"styles__StyledAIHTMLCtrlBar",componentId:"sc-11x62dz-0"})(["position:absolute;border-radius:8px;border:1px solid ",";box-shadow:0px 4px 10px 0px rgba(0,0,0,0.10);display:flex;background:",";z-index:150;> *{transition:all 0.3s ease-in-out;}&:not(.is-collapsed){> *{opacity:0;}}.handle{width:22px;background:",";display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:2.5px;padding:14px 7.5px;cursor:grab;&.is-grabbing{cursor:grabbing;}&:hover{.knob{background:#7582FF;}}.knob{width:2.5px;height:2.5px;background:",";border-radius:100%;}}.btn-container{padding:4px 6px;display:flex;gap:6px;.divider{height:16px;border:0.5px solid ",";align-self:center;border-radius:1px;}.status{.spinner{width:14px;height:14px;border-radius:50%;border:2px solid transparent;border-top:2px #7582FF solid;border-right:2px #7582FF solid;border-bottom:2px #7582FF solid;animation:spin 1.5s linear infinite;}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.status,.expand,.close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;cursor:pointer;&:not(.status) svg{color:",";}svg{width:32px;height:32px;}&:hover{background:",";}&:active{background:",";}}}"],$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_bg_white,$=>$.theme.color_navigation_hover,$=>$.theme.color_text_disabled01,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_btn_secondary_active),Gh=mn.Ay.div.withConfig({displayName:"styles__StyledAIHTMLIframe",componentId:"sc-11x62dz-1"})(["width:100vw;height:100vh;background:rgba(247,247,253,1);position:absolute;top:0;left:0;z-index:2147483647;transform:scale(1);transition:transform .3s ease-in-out,opacity .3s ease-in-out;display:flex;flex-direction:column;iframe{width:100%;height:100%;border:none;}"]),vh=$=>{let{embededPotato:U,collapsed:H,position:ae,onLoadingChange:de}=$;const[ge,le]=(0,a.useState)(!0),Ee=(0,k.d4)(D.w5),Pe=(0,k.d4)(D.P$),Fe=(0,k.d4)(D.vN),Ke=(0,k.d4)(D.C1),ct=(0,a.useMemo)(()=>{const pn=new URLSearchParams;return pn.append("defaultAgentType",Fe||"prototyping"),pn.append("isLoadInPrototype","true"),Ke&&pn.append("fileStorageKey",Ke),Ee&&pn.append("presetScene",Ee),Pe&&pn.append("source",Pe),new URL("/ai",location.origin).toString()+"?"+pn.toString()},[Ee,Pe]),vt=(0,a.useMemo)(()=>{const pn=ae.left+75+"px "+ae.top+"px";return H?{transform:"scale(0.1)",opacity:0,pointerEvents:"none",transformOrigin:pn}:{transformOrigin:pn}},[H,ae.left,ae.top]),Ft=()=>{le(!1)};return(0,a.useEffect)(()=>{de==null||de(ge)},[ge,de]),(0,Ce.jsx)(Gh,{style:vt,children:(0,Ce.jsx)("iframe",{src:ct,ref:U,onLoad:Ft,title:Ee||"Modao AI"})})},jm=()=>{const $=(0,k.wA)(),U=(0,k.d4)(D.Rk),H=(0,k.d4)(D.bT),[ae,de]=(0,a.useState)("idle"),ge=(0,a.useRef)(""),[le,Ee]=(0,a.useState)(!1),Pe=(0,k.d4)(We.uE),Fe=(0,k.d4)(Y.bP),Ke=(0,k.d4)(We.Xf),ct=(0,k.d4)(l.$S),vt=(0,a.useRef)(!1),[Ft,pn]=(0,a.useState)(!0),[bn,to]=(0,a.useState)({top:0,left:0}),Po=(0,a.useRef)(null);(0,a.useEffect)(()=>{ct&&!vt.current&&(to({top:window.innerHeight-64,left:(Ke?Pe:0)+(Fe==="old_right"?0:f.fn)+(ct==null?void 0:ct.width)/2-75}),vt.current=!0)},[Ke,Pe,Fe,ct]);const fo=(0,a.useCallback)(I=>{Ee(!0);const F=I.clientX-bn.left,oe=I.clientY-bn.top,be=ut=>{to({left:Math.max(Math.min(ut.clientX-F,window.innerWidth-150),0),top:Math.max(Math.min(ut.clientY-oe,window.innerHeight-64),0)})},Mt=()=>{Ee(!1),window.removeEventListener("mousemove",be),window.removeEventListener("mouseup",Mt)};window.addEventListener("mousemove",be),window.addEventListener("mouseup",Mt)},[bn]),Ho=()=>{ae==="pending"?MB.global.popupHelper.confirmAsync({title:I18N.Popups.terminateAIHTMLTask,desc:I18N.Popups.terminateAIHTMLTaskDesc,confirmText:I18N.Popups.terminateAIHTMLTaskConfirm,cancelText:I18N.Popups.terminateAIHTMLTaskCancel}).then(I=>{I&&($(h.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides(),$(h.GO.updateAIHTMLSceenTag("")),$(h.GO.updateAIHTMLSource("")))}):($(h.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides(),$(h.GO.updateAIHTMLSceenTag("")),$(h.GO.updateAIHTMLSource("")))},Ko=()=>{$(h.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides(),ae!=="pending"&&de("idle")},ha=()=>{$(h.GO.collapseAIHTML()),MB.commonGuideHelper.restoreAllGuides(),de(I=>I!=="pending"?"idle":I)};(0,a.useEffect)(()=>{const I=async F=>{switch(F.data.type){case"begin-generate":{de("pending"),ge.current=F.data.msgCid;break}case"succeed-generate":{F.data.msgCid===ge.current&&(de("succeeded"),ge.current="");break}case"fail-generate":{F.data.msgCid===ge.current&&(de("failed"),ge.current="");break}case"collapse-me":{ha();break}case"close-me":{$(h.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides();break}case"succeed-export":{const{htmlText:be,htmlString:Mt}=F.data;$({type:"entry:import:aihtml",payload:{htmlText:be,htmlString:Mt}}),ha();break}case"fail-export":{MB.notice({text:F.data.reason,type:"error"});break}case"request-auth-info-and-start":{var oe;(oe=Po.current)==null||oe.contentWindow.postMessage({type:"start",uId:MB.user.id,upperCid:MB.getRootProject().cid});break}}};return window.addEventListener("message",I),()=>{window.removeEventListener("message",I)}},[]);const Aa=()=>{const I=Math.max(Math.min(bn.left,window.innerWidth-150),0),F=Math.max(Math.min(bn.top,window.innerHeight-64),0);to({left:I,top:F})};return(0,a.useEffect)(()=>(window.addEventListener("resize",Aa),()=>{window.removeEventListener("resize",Aa)}),[Aa]),(0,a.useEffect)(()=>{H&&!U&&(Ft?MB.safeLoading(I18N.dModals.in_progress):MB.safeLoading(!1))},[H,U,Ft]),(0,a.useEffect)(()=>{H||(pn(!0),de("idle"))},[H]),H?(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsxs)(Ku,{id:"aihtml-ctrl-bar",className:dn()({"is-collapsed":U}),style:{...bn},children:[(0,Ce.jsx)("div",{className:dn()("handle",{"is-grabbing":le}),onMouseDown:fo,children:Array(6).fill(1).map((I,F)=>(0,Ce.jsx)("div",{className:"knob"},F))}),(0,Ce.jsxs)("div",{className:"btn-container",children:[(0,Ce.jsx)(qd.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.aiHTML["generate_"+ae],direction:"up",children:(0,Ce.jsx)("div",{className:dn()("status",{succeeded:ae==="succeeded",failed:ae==="failed"}),onClick:Ko,children:ae==="pending"?(0,Ce.jsx)("div",{className:"spinner"}):(0,Ce.jsx)(ps.C,{name:"aihtml/"+ae,isColorPure:!0})})}),(0,Ce.jsx)("div",{className:"divider"}),(0,Ce.jsx)(qd.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.Common.expandPanel,direction:"up",children:(0,Ce.jsx)("div",{className:"expand",onClick:Ko,children:(0,Ce.jsx)(ps.C,{name:"aihtml/expand"})})}),(0,Ce.jsx)(qd.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.Common.close,direction:"up",children:(0,Ce.jsx)("div",{className:"close",onClick:Ho,children:(0,Ce.jsx)(ps.C,{name:"aihtml/close"})})})]})]}),(0,Ce.jsx)(vh,{embededPotato:Po,collapsed:U,position:bn,onLoadingChange:pn})]}):null}},30245:(eo,ot,i)=>{"use strict";i.d(ot,{v:()=>Y});var a=i(33831),k=i(72680),M=i(28732),P=i(83291),C=i(30508),q=i(83815);const Y=(J,O)=>{var l,D,m,E;const f=J==="light",h=O==="solo";return[{id:a.fv,title:"\u58A8\u5200\u539F\u578B",icon:C.A,hoverBgColor:f?"#E6EFFF":"#223252",shortTitle:"\u539F\u578B"},...(l=ENV)!=null&&l.NO_FEAT_BOMX?[]:[{id:a.Pq,title:"\u58A8\u5200\u767D\u677F",icon:M.A,hoverBgColor:f?"#FBE9F6":"#523149",shortTitle:"\u767D\u677F"}],...(D=ENV)!=null&&D.NO_FEAT_DESIGN?[]:[{id:a.N5,title:"\u58A8\u5200\u8BBE\u8BA1",icon:q.A,hoverBgColor:f?"#EEEDFF":"#383659",shortTitle:"\u8BBE\u8BA1"}],...(m=ENV)!=null&&m.NO_FEAT_AIPPT?[]:[{id:a.X3,title:"\u58A8\u5200AIPPT",icon:k.A,hoverBgColor:f?"#FFEDF0":"#59363B",shortTitle:"AIPPT"}],...(E=ENV)!=null&&E.IS_FEAT_AI||!ENV.IS_ON_PREMISES&&h?[{id:a.Zl,title:"\u58A8\u5200AI",icon:P.A,hoverBgColor:f?"#EDEDFF":"#37375C",shortTitle:"AI"}]:[]]}},30508:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"32",height:"32.0025",rx:"7",fill:"#459BFF"}),a.createElement("rect",{x:"6.42213",y:"9.60242",width:"9.6",height:"16",rx:"1.38962",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.956 16.0557C17.956 14.8885 18.9022 13.9423 20.0694 13.9423H24.6235C25.7907 13.9423 26.7369 14.8885 26.7369 16.0557V23.9431C26.7369 25.1103 25.7907 26.0565 24.6235 26.0565H20.0694C18.9022 26.0565 17.956 25.1103 17.956 23.9431V16.0557ZM20.0694 15.3898C19.7016 15.3898 19.4035 15.688 19.4035 16.0557V23.9431C19.4035 24.3109 19.7016 24.609 20.0694 24.609H24.6235C24.9912 24.609 25.2893 24.3109 25.2893 23.9431V16.0557C25.2893 15.688 24.9912 15.3898 24.6235 15.3898H20.0694Z",fill:"white",fillOpacity:"0.8"}),a.createElement("rect",{x:"4.79961",y:"6.40015",width:"22.4",height:"6.4",rx:"1.38962",fill:"#BADAFF",fillOpacity:"0.8"}))})},30719:(eo,ot,i)=>{"use strict";i.d(ot,{O:()=>Ln});var a=i(95549),k=i(38502),M=i(12211),P=i(18381),C=i(70933),q=i(67052),Y=i(10472),J=i(78257),O=i(88463),l=i(94344),D=i(67588),m=i(44817),E=i(16335),f=i(67787),h=i(80985),S=i(89208);const V=f.Ay.div.withConfig({displayName:"styles__StyledHistoryPanel",componentId:"sc-4wgm4b-0"})(["height:100%;overflow-y:hidden;flex:1 1 0%;display:flex;flex-direction:column;"]),We=(0,f.Ay)(h.A).withConfig({displayName:"styles__StyledHistoryContent",componentId:"sc-4wgm4b-1"})(["flex:1 1 0;height:100%;transition:box-shadow 0.2s ease-in-out;overflow-x:hidden;overflow-y:overlay;"]),re=f.Ay.div.withConfig({displayName:"styles__StyledHistoryHeader",componentId:"sc-4wgm4b-2"})(["display:flex;align-items:center;justify-content:space-between;height:40px;min-height:40px;padding:0 12px;border-bottom:1px solid ",";.back{.template-title{font-size:14px;font-weight:500;flex:1;text-align:center;}}"],Mn=>Mn.theme.color_btn_secondary_active),ve=(0,f.Ay)(S.A).withConfig({displayName:"styles__StyledHistoryNewSlideNav",componentId:"sc-4wgm4b-3"})(["height:40px;min-height:36px;background:transparent;align-items:center;.nav-underline{display:none;}.nav-item{justify-content:center;font-size:13px;height:24px;padding:4px 6px;margin-right:16px;border-radius:5px;&:hover{background:",";}&.active{background:",";}}.nav-item:not(:first-child){margin-left:unset;}.nav-label{flex-shrink:0;padding:0;}&.template-modal{margin:0 0 0 32px !important;padding:0;.nav-item{font-size:12px;height:32px;border:1px solid ",";padding:8px 12px;&.active{color:",";font-weight:500;background:",";border-color:",";}}}"],Mn=>Mn.theme.color_btn_secondary_hover,Mn=>Mn.theme.color_btn_secondary_active,Mn=>Mn.theme.color_bg_border_01,Mn=>Mn.theme.color_text_link_normal,Mn=>Mn.theme.color_bg_tab,Mn=>Mn.theme.color_bg_tab),we=f.Ay.div.withConfig({displayName:"styles__StyledSearchResultMessage",componentId:"sc-4wgm4b-4"})(["display:flex;align-items:center;height:28px;padding-left:13px;background:",";"],Mn=>Mn.theme.color_bg_canvas),Ae=f.Ay.div.withConfig({displayName:"styles__StyledIconContent",componentId:"sc-4wgm4b-5"})(["flex:1;overflow-y:overlay;overflow-x:hidden;margin:12px 0;.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],Mn=>Mn.theme.color_btn_secondary_hover);var Oe=i(93971),Be=i(49903),tt=i(3862),Xe=i(72214);const ne=(0,M.Mz)([D.O4,C.PL],(Mn,Rt)=>({theme:Mn,rootProject:Rt})),lt=k.memo(function(Rt){const{theme:Qe,rootProject:En}=(0,P.d4)(Oo=>ne(Oo)),{data:{iconItems:qn},keyword:Hn,multiColorIconObj:Yn}=Rt,oo=(0,P.wA)(),To=(Oo,Qo,ea,_n)=>{const Un=nn=>{let{itemCid:Zn,groupCid:ho}=nn;const Xn={projectUpperType:"icon_group",projectUpperCid:ho,itemCid:Zn};(0,E.Cp)(Xn)},cn=Yn[Qo.groupCid];oo({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:Oo,icon:Qo,iconName:ea,iconDisplayName:_n,isMultiColorIcon:cn,callback:()=>{Un({itemCid:Qo.id,groupCid:Qo.groupCid}),po({addType:(Oo==null?void 0:Oo.type)==="mousedown"?Oe.k8.Drag:Oe.k8.DoubleClick,iconName:ea,iconType:Qo.type,isMultiColorIcon:cn,groupCid:Qo.groupCid})}}})},po=Oo=>{let{addType:Qo,iconName:ea,iconType:_n,isMultiColorIcon:Un,groupCid:cn}=Oo;const nn=Be.jS[_n]||_n,Zn=Un?tt.WY:tt.C;(0,Oe.Mi)({popupsName:J.lS.History,addType:Qo,source:Oe.Jj[Zn],category:Zn,templateGroupName:nn,name:ea,rootProject:En,templateGroupCid:cn})};return(0,Xe.jsx)(Xe.Fragment,{children:(0,Xe.jsx)(Ae,{children:qn.length!==0?(0,Xe.jsx)(m.q,{iconList:qn,multiColorIconObj:Yn,onMouseDown:To,onDoubleClick:To}):(0,Xe.jsx)(l.A,{theme:Qe,hasNoTips2:!0,keyword:Hn,onHandleClickSquarePanel:()=>{}})})})});var rt=i(78401),Te=i(92272),Ge=i(4410),ue=i(88225),Me=i(78903),Ze=i(7279),fe=i(19062);const it=f.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-vx4onj-0"})(["width:100%;margin-top:120px;display:flex;justify-content:center;.loading{width:50px;height:50px;}"]),et=(0,f.Ay)(h.A).withConfig({displayName:"styles__StyledImagePanelContent",componentId:"sc-vx4onj-1"})(["flex:1;margin-top:0;overflow-y:overlay;overflow-x:hidden;margin-top:12px;"]),Ut=f.Ay.div.withConfig({displayName:"styles__StyledRecentPanelContent",componentId:"sc-vx4onj-2"})(["flex:1;width:100%;position:relative;overflow:hidden;.recent-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}}&.template{margin-top:0;}&.recent-panel-content{height:100%;.empty-template-search-container{padding-top:120px;.center{.pure-svg-icon{width:80px;height:80px;}}}.combos-container,.screens-container{padding:0 4px 0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}.combo-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}.screens-container{padding-top:8px;}.file-container{padding:8px;display:grid;grid-row-gap:2px;grid-column-gap:2px;grid-template-columns:repeat(auto-fill,116px);}.iconGroup-container{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;margin-right:7px;margin-bottom:8px;&:hover{background:",";}}}.collapse-panel{.arrow-icon{width:16px;}.title{color:",";font-size:14px;font-weight:500;}}}"],Mn=>Mn.theme.color_btn_secondary_hover,Mn=>Mn.theme.color_text_L2),G=(0,M.Mz)([D.O4,C.wA,C.Pz,C.PL,D.PI,D.k3,C.HW,q.oE,D.MZ,q.p],(Mn,Rt,Qe,En,qn,Hn,Yn,oo,To,po)=>({theme:Mn,canvasRect:Qe,rootProject:En,showDragMode:qn,isAdsorbentReferenceLine:Hn,isOrgProject:!!Rt,currentUser:Yn,isRequestFindAssets:oo,layoutV9:To,stickerData:po})),Ht=k.memo(function(Rt){const{theme:Qe,canvasRect:En,rootProject:qn,showDragMode:Hn,isAdsorbentReferenceLine:Yn,isOrgProject:oo,currentUser:To,isRequestFindAssets:po,layoutV9:Oo,stickerData:Qo}=(0,P.d4)(Mo=>G(Mo)),{keyword:ea,data:{assetList:_n,pictureList:Un}}=Rt,[cn,nn]=(0,k.useState)(!1),Zn=(0,P.wA)(),ho=(Mo,Zo,ia,xa)=>{(0,Oe.BZ)({popupsName:J.lS.History,addType:Zo,category:tt.b4,name:ia,rootProject:qn,currentUser:To,esSearchKey:Mo,resId:xa})},Xn={onAssetDownload:Mo=>{(0,rt.z3)(Mo.name,Mo.image)},onAssetMove:Mo=>{MB.global.experienceLoginModalHelper("isSave")||Zn({type:"entry:batch:transfer:user-asset",payload:{userAsset:Mo}})},onAssetRemove:Mo=>{MB.global.experienceLoginModalHelper("isSave")||Zn({type:"entry:batch:remove:user-asset",payload:{userAsset:Mo}})},onAssetAdd:oo?Mo=>{MB.global.experienceLoginModalHelper("isSave")||Zn({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:Mo}})}:null,onAssetNameConfirm:(Mo,Zo)=>{const ia={...Mo};ia.name=Zo,Zn({type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[ia]}})},onAssetImport:Mo=>{var Zo;Zn({type:"entry:create:widget:by:asset",payload:{asset:Mo}}),ho((Zo=Mo.cid)!=null?Zo:Mo.asset_cid,Oe.k8.DoubleClick,Mo.name,Mo.id)},onMouseDown:async(Mo,Zo)=>{const ia=(0,Te.BL)(Zo),xa=(0,Ge.g)(J.lS.History);(0,Ge.dD)({e:Mo,items:[ia],width:ia.w,height:ia.h,doNotCreateRect:xa,callback:()=>{var fa;ho((fa=Zo.cid)!=null?fa:Zo.asset_cid,Oe.k8.Drag,Zo.name,Zo.id)},canvasRect:En,rootProject:qn,showDragMode:Hn,isAdsorbentReferenceLine:Yn})}};return(0,k.useEffect)(()=>{const Mo=Un==null?void 0:Un.find(ia=>ia.includes("findPicture_")),Zo=Un==null?void 0:Un.find(ia=>ia.includes("findSticker_"));Mo&&!po&&(nn(!0),(0,ue._)().then(ia=>nn(!1)).catch(ia=>{console.error("download meta.json failed",ia),nn(!1)})),Zo&&(!Qo||Qo.length===0)&&(nn(!0),(0,Ze.e)().then(ia=>nn(!1)).catch(ia=>{console.error("download meta.json failed",ia),nn(!1)}))},[Un]),cn?(0,Xe.jsx)(fe.S,{}):(0,Xe.jsx)(et,{children:Mo=>_n.length+Un.length>0?(0,Xe.jsx)(Me.R,{containerRect:Mo,currentUserId:void 0,assetList:_n,pictureList:Un.filter(Zo=>Zo!==null),shouldAuth:!1,assetActions:Xn,canListItemGroup:!1}):(0,Xe.jsx)(l.A,{theme:Qe,keyword:ea,hasNoTips2:!0})})});var Tt=i(44421),Vt=i(39303);class He extends k.PureComponent{render(){const{isLoading:Rt,isSearchLoading:Qe,foundNum:En,historyKeyword:qn,isShowResultMessage:Hn}=this.props;return(0,Xe.jsx)(Xe.Fragment,{children:Rt?(0,Xe.jsx)(it,{className:"history-loading",children:(0,Xe.jsx)(Vt.A,{className:"loading"})}):Qe?(0,Xe.jsx)(fe.S,{className:"history-loading margin-top-120",children:(0,Xe.jsx)("span",{children:I18N.Resources.searching.load})}):qn!=null&&qn.length&&Hn?(0,Xe.jsx)(we,{className:"result",children:(0,Xe.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc.replace(/%num%/,(0,rt.rB)().process(String(En))).replace(/%keyword%/,(0,rt.rB)().process(qn))}})}):null})}}var rn=i(53732),Lt=i.n(rn),jt=i(29294),mt=i(64966),Jn=i(33573),o=i(99402),so=i(31757),Et=i(83199),Jt=i(78161),Ot=i(88194),dn=i(41240);const Ce=(0,f.AH)(["opacity:0;pointer-events:none;"]),Pt=(0,f.AH)(["opacity:1;pointer-events:auto;"]),Nn=f.Ay.li.withConfig({displayName:"styles__StyledComboThumbnailItem",componentId:"sc-h0w76r-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;margin-left:-1px;.img-wrapper{position:relative;width:75px;height:70px;border:1px solid ",";background-color:",";display:flex;align-items:center;justify-content:center;border-radius:6px;",";img{max-width:100%;max-height:100%;pointer-events:none;}}.dynamic-flag{display:flex;align-items:center;justify-content:center;position:absolute;top:2px;left:2px;width:16px;height:16px;background:",";border-top-left-radius:2px;.icon{width:8px;}}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";",";.check{visibility:visible;position:relative;top:0;left:0;}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}.svgContainer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;svg{border-radius:none;background:none;&:hover{background:none;}}}}}}.combo-name{width:72px;height:31px;line-height:31px;text-align:center;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.img-wrapper{border-color:",";border-width:2px;}}&:hover{.operation-box{.left,.right{",";.check{visibility:visible;}}}}&.checked{&:hover{.img-wrapper{border-width:1px;border-color:",";outline:1px solid ",";}}.img-wrapper{border-color:",";outline:1px solid ",";.operation-box{.left{",";.check{visibility:visible;}}}}}"],Mn=>Mn.theme.color_btn_secondary_active,Mn=>Mn.theme.color_bg_card,dn.GR,Mn=>Mn.theme.color_bg_border_02,Ce,dn.GR,Ce,Mn=>Mn.theme.color_slider_hover,Mn=>Mn.theme.color_bg_mask,Mn=>Mn.theme.color_text_btn,Mn=>Mn.theme.color_text_L2,Mn=>Mn.theme.color_proto,Pt,Mn=>Mn.theme.color_btn_primary_normal,Mn=>Mn.theme.color_btn_primary_normal,Mn=>Mn.theme.color_btn_primary_normal,Mn=>Mn.theme.color_btn_primary_normal,Pt);class At extends k.PureComponent{constructor(Rt){super(Rt),(0,a.A)(this,"setElementRef",Qe=>this.$elem=Qe),(0,a.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,a.A)(this,"handleImport",Qe=>{Qe.stopPropagation();const{item:En,comboActions:{onImport:qn},from:Hn}=this.props;Hn!=="widget-modal"&&qn&&qn(Qe,En)}),(0,a.A)(this,"handleMouseDown",Qe=>{Qe.preventDefault();const{item:En,comboActions:{onMouseDown:qn},from:Hn}=this.props;Hn!=="widget-modal"&&qn&&qn(Qe,En)}),(0,a.A)(this,"handleClick",Qe=>{const{item:En,from:qn,canChecked:Hn,checkedSet:Yn,onAddItem:oo,dispatch:To}=this.props;qn==="widget-modal"&&(Hn&&Yn!=null&&Yn.size?this.handleCheckedResource(Qe):oo(En.key))}),(0,a.A)(this,"handleCheckedResource",Qe=>{const{onCheckedResource:En,item:qn}=this.props;Qe.stopPropagation(),En==null||En(qn.key)}),(0,a.A)(this,"handleClickOpenPreviewModal",Qe=>{const{onOpenPreviewModal:En,item:qn}=this.props;Qe.stopPropagation(),Qe.preventDefault(),En==null||En(qn.key)}),(0,a.A)(this,"handleGetFlatshotData",()=>{const{item:Qe}=this.props,{key:En,flpakKey:qn}=Qe,Hn=Qe.sup==="B@ref-muban"?Qe.hotAttr.defaultCanvasKey:En,Yn=Qe.sup==="B@ref-muban"?Ot.rY.PNG_CANVAS:Ot.rY.PNG_PAGE;return{flpakKey:qn,snapshotKey:Hn,snapshotMode:Yn}}),(0,a.A)(this,"handleGetImageSrc",()=>{const{flpakKey:Qe,snapshotKey:En,snapshotMode:qn}=this.handleGetFlatshotData();return(0,Jn.NI)({flpakKey:Qe,ssKey:En,ssTaskMode:qn,ssZoomMode:Ot.BU.LETTERBOX_256})}),(0,a.A)(this,"handleShowTipsByTarget",(Qe,En)=>En.offsetWidth<En.scrollWidth),this.state={isVisible:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:Rt}=this.props;if(!Rt||!this.$elem)return!1;const Qe=this.$elem.getBoundingClientRect();return Qe.bottom>Rt.top&&Qe.top<Rt.bottom}render(){var Rt,Qe;const{item:En,canChecked:qn,checkedSet:Hn,isCanPreviewInModal:Yn}=this.props,{isVisible:oo}=this.state,{key:To}=En,{flpakKey:po,snapshotKey:Oo,snapshotMode:Qo}=this.handleGetFlatshotData();return(0,Xe.jsxs)(Nn,{className:Lt()("combo-item",{checked:Hn==null?void 0:Hn.has(To)}),onClick:this.handleClick,children:[(0,Xe.jsxs)("div",{ref:this.setElementRef,className:"img-wrapper",onDoubleClick:this.handleImport,onMouseDown:this.handleMouseDown,children:[(0,Xe.jsx)(Jn.Ay,{projectMetaCid:po,snapshotKey:Oo,isVisible:oo,mode:Qo}),(0,Xe.jsxs)("div",{className:"operation-box",children:[qn&&(0,Xe.jsx)("div",{className:"left",children:(0,Xe.jsx)(o.A,{className:"check "+((Hn==null?void 0:Hn.has(To))&&"is-show"),checked:Hn==null?void 0:Hn.has(To),onChange:this.handleCheckedResource,onClick:ea=>ea.stopPropagation()})}),Yn&&(0,Xe.jsx)("div",{className:"right",children:(0,Xe.jsx)(Jt.Y,{className:"scale-box",getImgSrc:this.handleGetImageSrc,onClick:this.handleClickOpenPreviewModal,modalName:"mb-widget-modals",children:(0,Xe.jsx)(so.A,{size:12})})})]})]}),(0,Xe.jsx)(Et.A,{content:(Rt=En.hotAttr)==null?void 0:Rt.name,direction:"down",isShowTipsByTarget:this.handleShowTipsByTarget,children:(0,Xe.jsx)("span",{className:"combo-name",children:(Qe=En.hotAttr)==null?void 0:Qe.name})})]})}}var on=i(53940),no=i(60589),mo=i(34771),mn=i(40410),ht=i(38382),Fn=i(77698),Yt=i(84864),Gt=i(60440);const Bn=Mn=>{let{from:Rt,data:Qe}=Mn;if(Rt==="template-modal")return(0,Yt.B)({templateList:Qe.screenItems,marketTemplateListMap:Qe.marketTemplateListMap,isFromSameResource:!1});if(Rt==="widget-modal"){const{checkedSet:En,curRes:qn,handleChangeChecked:Hn,handleSelectAll:Yn,handleClearAll:oo,handleBySeparately:To,handleMemberClick:po,handleAddItem:Oo,handleAddItems:Qo,handleAddItemsAll:ea,handleOpenPreviewModal:_n}=(0,Gt.m)({templateList:Qe.comboItems,resourcesMap:Qe.marketTemplateListMap,isFromSameResource:!1});return{checkedResourceSet:En,currentResources:qn,handleChangeCheckedResource:Hn,handleBySeparately:To,handleMemberClick:po,handleAddItem:Oo,handleAddItems:Qo,handleAddItemsAll:ea,handleSelectAll:Yn,handleClearAll:oo,handleOpenPreviewModal:_n}}return{}};var qt=i(47424),Zt=i(42459);const jn=(0,M.Mz)([D.O4,C.X_,C.Pz,C.PL,D.PI,D.k3,C.HW],(Mn,Rt,Qe,En,qn,Hn,Yn)=>({theme:Mn,scale:Rt,canvasRect:Qe,rootProject:En,showDragMode:qn,isAdsorbentReferenceLine:Hn,currentUser:Yn})),ro=k.memo(function(Rt){var Qe;const{theme:En,scale:qn,canvasRect:Hn,rootProject:Yn,showDragMode:oo,isAdsorbentReferenceLine:To,currentUser:po}=(0,P.d4)(sr=>jn(sr)),Oo=(0,P.wA)(),{activeIndex:Qo,data:ea,keyword:_n,onPaidResources:Un,isShowTag:cn,from:nn,onUpdateFileRecent:Zn}=Rt,[ho,Xn]=(0,k.useState)(0),{checkedResourceSet:Mo,currentResources:Zo,handleChangeCheckedResource:ia,handleBySeparately:xa,handleMemberClick:fa,handleAddItems:zo,handleAddItem:Ra,handleAddItemsAll:Sa,handleSelectAll:ln,handleClearAll:ta,handleOpenPreviewModal:ko}=Bn({from:nn,data:ea}),bo=(0,P.d4)(no.Kr),aa=(0,k.useRef)(null),ma=(0,k.useMemo)(()=>[{key:0,label:"\u9875\u9762"},{key:1,label:"\u6587\u4EF6"}],[]),dr=(0,k.useMemo)(()=>{if(Qo!==0||!Mo||(Mo==null?void 0:Mo.size)===0)return!1;const{comboItems:sr}=ea;return Array.from(Mo).map(Bt=>sr.find(vn=>vn.key===Bt)).every(Bt=>Bt.type==="user-combo")},[ea,Qo,Mo]),ni=async(sr,mi)=>{sr.persist&&sr.persist();const Bt=(0,Ge.g)(J.lS.History);(0,Ge.WP)({e:sr,combo:mi,store:userSdkStore,doNotCreateRect:Bt,scale:qn,canvasRect:Hn,showDragMode:oo,isAdsorbentReferenceLine:To,callback:()=>{$a(mi),Va(Oe.k8.Drag,mi)}})},Ir=(sr,mi)=>{(0,Ge.QI)({e:sr,combo:mi,store:userSdkStore,scale:qn}),$a(mi)},$a=sr=>{const mi={projectUpperType:"user_combo",projectUpperCid:sr==null?void 0:sr.fcgCid,itemCid:sr.key};(0,E.Cp)(mi)},Va=(sr,mi)=>{const{type:Bt,hotAttr:{name:vn}}=mi,Io=Bt.includes("combo")?tt.t_:tt.Gd;(0,Oe.BZ)({popupsName:J.lS.History,addType:sr,category:Io,name:vn,rootProject:Yn,currentUser:po})},Ha=(sr,mi,Bt,vn)=>{const{policy:Io,category:No,title:_a,platform:Ur}=Bt;(0,Oe.Mi)({popupsName:J.lS.History,addType:mi,source:Oe.Jj[No],category:No,platform:Ur,policy:Io,templateGroupName:_a,name:vn,rootProject:Yn,esSearchKey:sr})},or={onMouseDown:ni,onImport:Ir},gi=sr=>{Oo({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:sr}}})},Qr=(0,k.useCallback)(sr=>{sr.category===tt.t_?Oo({type:"widget-modal:update:state",payload:{currentResource:sr}}):Oo({type:"modal:update:state",payload:{templateModal:{...bo,currentDetailResource:sr}}})},[bo,Oo]),Qi=(0,k.useCallback)(async sr=>{if(!sr||MB.global.experienceLoginModalHelper("isSave"))return;const mi=!sr.is_liked,Bt=sr.target_upper_cid||sr.cid;mi?await(0,qt.q3)(Bt):await(0,qt.V)(Bt);const vn=mi?sr.liked_count+1:sr.liked_count-1,Io={is_liked:mi,liked_count:vn},No=(0,Zt.$G)(ea.fileItems,_a=>_a.cid===sr.cid,{...sr,...Io});Zn&&Zn(No)},[ea.fileItems,Zn]),rs=(0,k.useCallback)(sr=>{const mi={used_count:sr.used_count+1},Bt=(0,Zt.$G)(ea.fileItems,vn=>vn.cid===sr.cid,{...sr,...mi});Zn&&Zn(Bt)},[ea.fileItems,Zn]),{comboItems:Li,screenItems:ns,marketTemplateListMap:Es,fileItems:ys}=ea;return(0,Xe.jsxs)(Ut,{className:Lt()("recent-panel-content",{template:Qo===2},{widget:Qo===0}),children:[(0,Xe.jsx)(h.o,{className:Lt()("recent-scroll-container",{"show-footer":(Mo==null?void 0:Mo.size)>0}),ref:aa,children:sr=>(0,Xe.jsxs)(Xe.Fragment,{children:[Qo===0&&(0,Xe.jsx)(Xe.Fragment,{children:Li.length===0?(0,Xe.jsx)(ht.H,{type:"common",desc:I18N.LibraryContainer.no_widget_group}):(0,Xe.jsx)("ul",{className:Lt()("combos-container"),style:{width:on.qv},children:Li.map(mi=>{const{type:Bt}=mi;return Bt==="user-combo"?(0,Xe.jsx)(At,{from:nn,item:mi,comboActions:or,containerRect:sr,canChecked:nn==="widget-modal",checkedSet:Mo,onCheckedResource:ia,onOpenPreviewModal:ko,onAddItem:Ra,isCanPreviewInModal:nn==="widget-modal",dispatch:Oo},mi.key):(0,Xe.jsx)(jt.A,{isFloatPreviewMkt:nn!=="widget-modal",from:nn,marketTemplate:mi,currentResources:Es==null?void 0:Es.get(mi.marketTemplateCid),containerRect:sr,onTrack:Ha,onPaidTemplates:()=>Un(mi.marketTemplateCid),canChecked:nn==="widget-modal",checkedSet:Mo,onCheckedResource:ia,onOpenPreviewModal:ko,onOpenFolder:Qr,isShowFolderIcon:nn==="widget-modal"},mi.key)})})}),Qo===2&&(0,Xe.jsxs)(Xe.Fragment,{children:[!(nn==="template-modal"&&ns.length===0&&(ys==null?void 0:ys.length)===0)&&(0,Xe.jsx)(ve,{activeIndex:ho,onTabChange:Xn,className:Lt()("slide-nav",nn),children:ma.map(mi=>{let{key:Bt,label:vn}=mi;return(0,Xe.jsx)(mo.nl,{label:vn},Bt)})}),(0,Xe.jsxs)("div",{className:"content",children:[ho===0&&(0,Xe.jsx)(Xe.Fragment,{children:ns.length===0?(0,Xe.jsx)(ht.H,{type:"common",desc:I18N.LeftSidePanel.modals.not_found}):(0,Xe.jsx)("ul",{className:"screens-container",style:{width:on.qv},children:ns.map(mi=>(0,Xe.jsx)(jt.A,{marketTemplate:mi,from:nn,currentResources:Es.get(mi.marketTemplateCid),containerRect:sr,onPaidTemplates:()=>Un(mi.marketTemplateCid),canChecked:nn==="template-modal",checkedSet:Mo,onCheckedResource:ia,onOpenPreviewModal:ko,onOpenFolder:Qr,isShowFolderIcon:nn==="template-modal",isFloatPreviewMkt:nn!=="template-modal"},mi.key))})}),ho===1&&(0,Xe.jsx)(Xe.Fragment,{children:ys.length===0?(0,Xe.jsx)(ht.H,{type:"common",desc:I18N.LeftSidePanel.modals.not_found}):(0,Xe.jsx)("ul",{className:"file-container",style:{width:on.qv},children:ys.map(mi=>(0,Xe.jsx)(mn.A,{isStared:mi.is_star,marketTemplate:mi,isShowStar:!1,isShowTag:cn,onClickCard:gi,onFavorite:Qi,onUsedCallback:rs},mi.cid))})})]})]})]})}),(0,Xe.jsx)(Fn.yP,{type:"vertical",containerRef:aa,isAutoHideBar:!0}),((Qe=Mo==null?void 0:Mo.size)!=null?Qe:0)>0&&nn!==void 0&&["widget-modal","template-modal"].includes(nn)&&(0,Xe.jsx)(mt.W,{type:nn==="widget-modal"?"widget":"page",isOnlyShowCreates:dr,resource:Zo,checkedSet:Mo!=null?Mo:new Set,onBuySeparately:xa,onMemberClick:fa,onSelectAll:ln,onClearAll:ta,onAddItems:zo,onAddItemsAll:Sa})]})});var Tn=i(40610);const bt=Mn=>{let{groups:Rt,p2mMMap:Qe={},projectUppers:En,marketTemplateListMap:qn,type:Hn}=Mn;const Yn=[];return Rt!=null&&Rt.length&&Rt.forEach(oo=>{const[To,po]=oo,Oo=En[To];if(Oo){const{project_metas:ea,market_template:_n}=Oo;if(ea!=null&&ea.length&&_n){var Qo;qn.set(To,_n);const Un=(Qo=ea[0])==null?void 0:Qo.cid,cn=Qe[Un];if(cn){const nn=cn[po];if(nn){const[Zn,ho,Xn]=nn;Yn.push({key:Zn,sup:ho,hotAttr:Xn,type:Hn,marketTemplateCid:To,projectMetaCid:Un,marketTemplateSource:_n})}}}}}),Yn},Wt=Mn=>{let{protoLists:Rt,projectUppers:Qe}=Mn;const En=[];if((Rt==null?void 0:Rt.length)>0)for(const qn of Rt){const[Hn,Yn]=qn,oo=Qe[Hn];oo!=null&&oo.market_template&&En.push(oo.market_template)}return En},wn=Mn=>{const{combo_groups:Rt,screen_lists:Qe,user_combo_groups:En,p2mMMap:qn,icon_groups:Hn,project_uppers:Yn,user_fcg:oo,proto_lists:To}=Mn,po=new Map,Oo=bt({groups:Rt,p2mMMap:qn,projectUppers:Yn,marketTemplateListMap:po,type:tt.t_}),Qo=bt({groups:Qe,p2mMMap:qn,projectUppers:Yn,marketTemplateListMap:po,type:tt.Gd});if(En!=null&&En.length&&oo){const{project_meta_cid:Un}=oo;En.forEach(cn=>{const[nn,Zn]=cn;if(nn===oo.cid){const Xn=qn[Un];if(Xn){const Mo=Xn[Zn];if(Mo){var ho;const[Zo,ia,xa]=Mo;Oo.push({key:Zo,sup:ia,hotAttr:xa,type:"user-combo",fcgCid:nn,flpakKey:(ho=userSdk)==null||(ho=ho.fssDat)==null?void 0:ho.flpakKey})}}}})}const ea=(0,Tn.D2)(Hn),_n=Wt({protoLists:To,projectUppers:Yn});return{comboItems:Oo,screenItems:Qo,iconItems:ea,fileItems:_n,marketTemplateListMap:po}};var uo=i(55914),In=i(82515),Dn=function(Mn){return Mn[Mn.Builtin=0]="Builtin",Mn[Mn.Icon=1]="Icon",Mn[Mn.Asset=2]="Asset",Mn[Mn.Page=3]="Page",Mn[Mn.FIle=4]="FIle",Mn}(Dn||{});const So=(0,M.Mz)([q.OW,q.ld,C.HW,C.wA,C.F2,C._x,Y.r,D.MZ,q.p],(Mn,Rt,Qe,En,qn,Hn,Yn,oo,To)=>{const{isEditingBasket:po,isEditingMuban:Oo,isEditingCombo:Qo}=Yn;return{currentPopupPanel:Mn,findPictureMetaData:Rt,currentUser:Qe,currentOrg:En,userFcg:qn,orgFcg:Hn,isShowPage:!(po||Oo||Qo),layoutV9:oo,findStickerData:To}});class Qt extends k.PureComponent{constructor(Rt){var Qe;super(Rt),(0,a.A)(this,"getHsitoryTabs",()=>[{key:Dn.Builtin,panel:J.lS.Builtin,label:I18N.ArtBoard.widget},{key:Dn.Icon,panel:J.lS.Icon,label:I18N.ArtBoard.icon},{key:Dn.Asset,panel:J.lS.Asset,label:I18N.ArtBoard.image},{key:Dn.Page,panel:J.lS.Page,label:"\u6A21\u677F"}]),(0,a.A)(this,"initComboSdkStore",async()=>{const{currentUser:Hn,currentOrg:Yn,userFcg:oo,orgFcg:To}=this.props,po=Hn==null?void 0:Hn.id;po&&(!window.userSdkStore&&oo&&await(0,In.Z)({fcg:oo,userId:po}),Yn!=null&&Yn.cid&&!window.orgSdkStore&&To&&await(0,In.Z)({fcg:To,userId:po,isOrg:!0}))}),(0,a.A)(this,"handleSetMtSdkStore",Hn=>{const{dispatch:Yn}=this.props,{comboItems:oo,screenItems:To}=Hn,po=oo.filter(_n=>_n.type===tt.t_).concat(To),Oo=[],Qo=new Map,ea=new Map;po.forEach(_n=>{const{marketTemplateCid:Un,projectMetaCid:cn,marketTemplateSource:nn}=_n;Oo.push(Un),Qo.set(Un,cn),ea.set(Un,nn)}),Yn({type:"resources:set:resources_map",payload:{mtResourcesMap:ea}}),Yn({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:Oo,mtProjectMetaCidMap:Qo}})}),(0,a.A)(this,"renderPanel",()=>{const{recentData:Hn,searchRecentData:Yn,keyword:oo,multiColorIconObj:To}=this.state,{from:po}=this.props,Oo=Yn||Hn;switch(this.getRealKey()){case Dn.Builtin:return(0,Xe.jsx)(ro,{activeIndex:0,data:Oo,keyword:oo,from:po,onPaidResources:this.handlePaidResources});case Dn.Icon:return(0,Xe.jsx)(lt,{data:Oo,keyword:oo,multiColorIconObj:To});case Dn.Asset:return(0,Xe.jsx)(Ht,{data:Oo,keyword:oo});case Dn.Page:return(0,Xe.jsx)(ro,{activeIndex:2,data:Oo,keyword:oo,from:po,onPaidResources:this.handlePaidResources,isShowTag:po==="template-modal",onUpdateFileRecent:this.handleUpdateFileRecent})}}),(0,a.A)(this,"handleTabChange",Hn=>this.setState({navIndex:Hn})),(0,a.A)(this,"handleNavBack",()=>this.props.dispatch({type:"historyPanel:set:show",payload:{show:!1}})),(0,a.A)(this,"handleSearch",Hn=>{const{findPictureMetaData:Yn,findStickerData:oo,onUpdateKeyword:To}=this.props,{recentData:po}=this.state;if(this.setState({searchRecentData:null,keyword:Hn}),To==null||To(Hn),Hn){this.setState({isSearchLoading:!0});const Oo=new RegExp((0,uo.$)(Hn),"i"),{comboItems:Qo,iconItems:ea,screenItems:_n,assetList:Un,pictureList:cn,fileItems:nn}=po,Zn=[];Yn!=null&&Yn.length&&Yn.forEach(Xn=>{Xn.imgs.forEach(Mo=>{let[Zo,,,ia]=Mo;for(const xa of ia)xa.includes(Hn)&&cn.includes("findPicture_"+Zo)&&Zn.push("findPicture_"+Zo)})}),oo!=null&&oo.length&&oo.forEach(Xn=>{var Mo;Xn==null||(Mo=Xn.list)==null||Mo.forEach(Zo=>{Zo!=null&&Zo.name.includes(Hn)&&cn.includes("findSticker_"+(Zo==null?void 0:Zo.url))&&Zn.push("findSticker_"+(Zo==null?void 0:Zo.url))})});const ho={...po,comboItems:Qo.filter(Xn=>{var Mo;return Oo.test((Mo=Xn.hotAttr)==null?void 0:Mo.name)}),iconItems:ea.filter(Xn=>Oo.test(Xn.keywords)),screenItems:_n.filter(Xn=>{var Mo;return Oo.test((Mo=Xn.hotAttr)==null?void 0:Mo.name)}),assetList:Un.filter(Xn=>Oo.test(Xn.name)),pictureList:Zn,fileItems:nn.filter(Xn=>Oo.test(Xn.title))};setTimeout(()=>{this.setState({isSearchLoading:!1,searchRecentData:ho})},1e3)}}),(0,a.A)(this,"getRealKey",()=>{var Hn;const{navIndex:Yn}=this.state;return(Hn=this.getHsitoryTabs()[Yn])==null?void 0:Hn.key}),(0,a.A)(this,"handleGetFoundNum",()=>{const{searchRecentData:Hn}=this.state;if(Hn){const{comboItems:Yn,screenItems:oo,iconItems:To,assetList:po,pictureList:Oo,fileItems:Qo}=Hn;switch(this.getRealKey()){case Dn.Builtin:return(Yn==null?void 0:Yn.length)||0;case Dn.Icon:return(To==null?void 0:To.length)||0;case Dn.Asset:return(po==null?void 0:po.length)+(Oo==null?void 0:Oo.length)||0;case Dn.Page:return(oo==null?void 0:oo.length)+(Qo==null?void 0:Qo.length)||0}}return 0}),(0,a.A)(this,"handlePaidResources",Hn=>{const{searchRecentData:Yn,recentData:oo}=this.state,To=Yn||oo;if(!To)return;const{marketTemplateListMap:po}=To;if(!po)return;const Oo=new Map;let Qo=null;if(po)for(const[_n,Un]of po)_n===Hn&&(Oo.set(_n,{...Un,is_purchased:!0,is_star:!0}),Qo=Un),Oo.set(_n,Un);const ea={...To,marketTemplateListMap:Oo};Yn?this.setState({searchRecentData:ea}):this.setState({recentData:ea}),Qo&&this.props.dispatch({type:"entry:resources:update:find:data",payload:{cid:Qo.cid,category:Qo.category}})}),(0,a.A)(this,"handleUpdateFileRecent",Hn=>{const{recentData:Yn,searchRecentData:oo}=this.state;if(oo){this.setState({searchRecentData:{...oo,fileItems:Hn}});return}this.setState({recentData:{...Yn,fileItems:Hn}})});const En=((Qe=this.getHsitoryTabs().find(Hn=>Hn.panel===Rt.currentPopupPanel))==null?void 0:Qe.key)||Dn.Builtin,qn=Rt.from==="widget-modal"?0:Rt.from==="template-modal"?3:En;this.state={keyword:Rt.keyword,navIndex:qn,isLoading:!1,isSearchLoading:!1,recentData:{comboItems:[],screenItems:[],iconItems:[],assetList:[],pictureList:[],fileItems:[]},searchRecentData:null,multiColorIconObj:{}}}async componentDidMount(){this.props.keyword?this.setState({isSearchLoading:!0}):this.setState({isLoading:!0}),await this.initComboSdkStore();const[Rt,Qe]=await Promise.all([(0,E.Uy)(),(0,E.PJ)()]);if(Rt){const En=await wn(Rt);this.handleSetMtSdkStore(En),this.setState({recentData:{...En,assetList:Rt.user_assets,pictureList:Rt.pictures},multiColorIconObj:Qe},()=>{this.state.keyword&&this.handleSearch(this.state.keyword)})}this.setState({isLoading:!1})}render(){const{navIndex:Rt,isLoading:Qe,isSearchLoading:En,keyword:qn}=this.state,{isShowPage:Hn,layoutV9:Yn,from:oo}=this.props,To=this.handleGetFoundNum(),po=["widget-modal","template-modal"].includes(oo);return(0,Xe.jsxs)(V,{children:[(0,Xe.jsx)(re,{className:"history-header",children:po?(0,Xe.jsx)(O.A,{className:"search-bar is-searching",value:qn,placeholder:I18N.ScreenPanel.keyword_search,onSearch:this.handleSearch}):(0,Xe.jsx)(Tt.H,{title:I18N.Resources.searchHeader.history,iconName:"design/arrow/right",layoutV9:Yn,onBack:this.handleNavBack,onSearch:this.handleSearch})}),!po&&(0,Xe.jsx)(ve,{className:"history-slide-nav",activeIndex:Rt,onTabChange:this.handleTabChange,children:this.getHsitoryTabs().map(Oo=>{let{key:Qo,label:ea}=Oo;return Qo===Dn.Page&&!Hn?(0,Xe.jsx)(Xe.Fragment,{}):(0,Xe.jsx)(S.n,{index:Qo,label:ea},Qo)})}),(0,Xe.jsx)(He,{isLoading:Qe,isSearchLoading:En,foundNum:To,historyKeyword:qn,isShowResultMessage:oo!=="template-modal"}),!Qe&&!En&&(0,Xe.jsx)(We,{children:()=>this.renderPanel()})]})}}const Ln=(0,P.Ng)(Mn=>So(Mn))(Qt)},31093:(eo,ot,i)=>{"use strict";i.d(ot,{E:()=>M,lu:()=>k,n$:()=>P,pp:()=>a});const a=C=>C.editor.state.pencil.bdrStyle,k=C=>C.editor.state.pencil.bdrColor,M=C=>C.editor.state.pencil.bdrWidth,P=C=>C.editor.state.pencil.lastCreateKey},31174:(eo,ot,i)=>{"use strict";i.d(ot,{G:()=>Y});var a=i(38502),k=i(18381),M=i(67588),P=i(67787);const C=P.Ay.ul.withConfig({displayName:"styles__StyledOpenModalCard",componentId:"sc-1ga0mut-0"})(["display:flex;align-items:center;padding:12px;background:",";z-index:2;&.sticky{position:absolute;top:40px;width:100%;li{padding:4px 0;svg{display:none !important;}}}li{display:flex;flex-direction:column;align-items:center;max-width:108px;min-width:68px;flex:1;padding-bottom:8px;border-radius:6px;cursor:pointer;span{font-weight:500;}&.page{background:#F6F3FF;margin-right:10px;&:hover{background:#F0EBFF;}span.name{color:#8742FF;}&.dark{background:#372c5c;&:hover{background:#463975;}span.name{color:#b68cff;}}}&.file{background:#F0F7FF;&:hover{background:#E5F2FF;}span.name{color:#008CEE;}&.dark{background:#2a3a5c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.largeFactory,&.user-widget{background:#f6f3ff;margin-right:6px;&:hover{background:#f0ebff;}span.name{color:#8742ff;}&.dark{background:#372C5C;&:hover{background:#463975;}span.name{color:#B68CFF;}}}&.componentLibrary,&.org-widget{background:#f0f7ff;margin-right:6px;&:hover{background:#e5f1ff;}span.name{color:#008cee;}&.dark{background:#2a3a4c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.file{background:#F0F7FF;&.dark{background:#2a3a5c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.icon{background:#fef6ee;&:hover{background:#fef0e2;}span.name{color:#ff8802;}&.dark{background:#473222;&:hover{background:#664731;}span.name{color:#f58200;}}}}"],J=>J.theme.color_bg_white);var q=i(72214);const Y=(0,a.forwardRef)((J,O)=>{let{cardList:l}=J;const D=(0,k.d4)(M.O4);return(0,q.jsx)(C,{className:"open-modal-cards-wrap",ref:O,children:l.map(m=>(0,q.jsxs)("li",{className:"card-item "+m.value+" "+D,onClick:()=>m==null?void 0:m.onClick(m.value),children:[m.icon,(0,q.jsx)("span",{className:"name",children:m.label})]},m.value))})})},31181:(eo,ot,i)=>{"use strict";i.d(ot,{J:()=>M,r:()=>k});var a=i(19249);const k=()=>(0,a.DE)("/api/web/v3/guide/guide_data"),M=P=>(0,a.iv)("/api/web/v3/guide/workspace_guides",{guide:{workspace_guides:P}})},31228:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Xe});var a=i(95549),k=i(38502),M=i(53732),P=i.n(M),C=i(83199),q=i(79150),Y=i(39e3),J=i(68455),O=i(67787),l=i(51090);const D=O.Ay.div.withConfig({displayName:"styles__StyledScreenActionsMenu",componentId:"sc-1fn9xyn-0"})(["",";&.is-open{.action-menu-opener{background:",";}}"],l.n9,ne=>ne.theme.color_btn_secondary_active);var m=i(72214);class E extends k.PureComponent{constructor(lt){var rt;super(lt),rt=this,(0,a.A)(this,"setElementRef",Te=>this.$element=Te),(0,a.A)(this,"handleClickAction",Te=>{Te.stopPropagation(),this.handleToggleActionMenu()}),(0,a.A)(this,"handleToggleActionMenu",function(Te){Te===void 0&&(Te=void 0);const{isOpenScreenActionsMenu:Ge}=rt.state,{onCloseGuide:ue}=rt.props,Me=Te===void 0?!Ge:Te;rt.setState({isOpenScreenActionsMenu:Me}),Me&&ue&&ue()}),(0,a.A)(this,"actionToggleExpanded",Te=>{const{handleToggleExpanded:Ge,isPreview:ue,dispatch:Me}=this.props;Te.stopPropagation(),Ge(),this.handleToggleActionMenu(!1),!ue&&setTimeout(()=>{Me({type:"entry:update:screen_list_rect"})},50)}),(0,a.A)(this,"actionOpenTrash",Te=>{Te.stopPropagation(),this.props.handleOpenTrash(),this.handleToggleActionMenu(!1)}),(0,a.A)(this,"handleMultipleSelect",()=>{const{isMultiplePage:Te,dispatch:Ge}=this.props;Ge({type:"screen:update:state",payload:{isMultiplePage:!Te}}),this.handleToggleActionMenu(!1)}),(0,a.A)(this,"getScreenActionsMenuItems",()=>{const{isPreview:Te,hasFoldedScreen:Ge,isEditingCombo:ue,isMultiplePage:Me,isOnlyView:Ze}=this.props;return ue?[{isShow:!0,label:Ge?I18N.LeftSidePanel.expand_combo:I18N.LeftSidePanel.collapse_combo,onClick:this.actionToggleExpanded},{isShow:!0,label:"divider"},{isShow:!0,label:I18N.ToolBar.widget_trash_bin,onClick:this.actionOpenTrash}]:[{isShow:!0,label:Ge?I18N.LeftSidePanel.expand_page:I18N.LeftSidePanel.collapse_page,onClick:this.actionToggleExpanded},{isShow:!Ze&&!Te,label:(0,m.jsx)("span",{className:"exit-multiple-btn-in-list-menu",children:Me?I18N.LeftSidePanel.exit_multi_select:I18N.LeftSidePanel.multi_select_page}),onClick:this.handleMultipleSelect},{isShow:!Te,label:"divider"},{isShow:!Te,label:I18N.LeftSidePanel.page_recycle_bin,onClick:this.actionOpenTrash}]}),(0,a.A)(this,"handleDocDown",Te=>{let{target:Ge}=Te;const{isOpenScreenActionsMenu:ue}=this.state;ue&&(Ge.closest(".screenHeaderAction")||Ge.closest(".list-content")||this.handleToggleActionMenu(!1))}),this.state={isOpenScreenActionsMenu:!1}}render(){const{isOpenScreenActionsMenu:lt}=this.state,{className:rt}=this.props,Te=this.getScreenActionsMenuItems();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(C.A,{content:I18N.LeftSidePanel.menu,direction:"down",children:(0,m.jsx)(D,{className:P()("screenHeaderAction",{"is-open":lt},rt),ref:this.setElementRef,onClick:this.handleClickAction,children:(0,m.jsx)(q.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"})})}),lt&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(J.A,{targetNode:this.$element,direction:"right-start",distance:0,menuItems:Te}),(0,m.jsx)(Y.A,{target:document,onMouseDown:(0,Y.t)(this.handleDocDown,{capture:!0})})]})]})}}(0,a.A)(E,"defaultProps",{isPreview:!1,handleOpenTrash:()=>null});var f=i(19295),h=i(24437),S=i(74923),V=i(61068);const We=O.Ay.div.withConfig({displayName:"styles__StyledMultiplePageTop",componentId:"sc-1x5cwqh-0"})(["width:100%;height:100%;display:flex;align-items:center;.page-count{font-size:12px;font-weight:400;line-height:16px;color:",";margin-left:8px;}"],ne=>ne.theme.color_text_L1);var re=i(93093),ve=i(18381);const we=(ne,lt)=>ne.length!==lt.length?!1:ne.every(rt=>lt.includes(rt)),Ae=ne=>{const{screenSelection:lt,handleSelectAll:rt,displayTreeData:Te}=ne,{screenDataMap:Ge,currentPage:ue,keyword:Me}=(0,ve.d4)(S.CY);Te||(0,re.Cp)(new Error("DEBUG setry issue 57258"),{level:"debug",fingerprint:["debug-sentry-issue-57258"],extra:{displayTreeData:JSON.stringify(Te),screenSelection:lt,screenDataMap:Object.keys(Ge),currentPage:ue==null?void 0:ue.key,keyWord:Me}});const Ze=Te.children.map(Ht=>Ht.cid),fe=(0,k.useMemo)(()=>(0,h.BH)(Ze),[Ze]),it=(0,k.useMemo)(()=>(0,h.FT)(lt),[lt]),et=(0,k.useMemo)(()=>lt.length===0,[lt]),Ut=(0,k.useMemo)(()=>we(fe,lt),[fe,lt]),G=!Ut&&!et?"mixed":Ut;return(0,m.jsxs)(We,{className:"multiple-page-top",children:[(0,m.jsx)(V.A,{attr:"isMultiplePage",isChecked:G,onChange:rt}),(0,m.jsx)("span",{className:"page-count",children:I18N.SettingPanel.choose_pages2.replace(/%page/,it.length)})]})},Oe=(0,k.memo)(Ae);var Be=i(93413);const tt=O.Ay.div.withConfig({displayName:"styles__StyledScreenHeader",componentId:"sc-e653cx-0"})(["height:40px;display:flex;align-items:center;border-top:1px solid transparent;border-bottom:1px solid ",";flex-shrink:0;&:not(.is-search-mode){padding:0 11px 0 24px;&.isCommunityPreview{padding:0 6px 0 14px;}}.title{color:",";font-weight:500;}.screen-title-right{display:flex;margin-left:auto;align-items:center;height:100%;color:#415058;transition:flex 0.2s ease-in-out;.box{&:not(:first-child){margin-left:4px;}}.svg-icon{width:24px;height:24px;}.arrow-icon{margin-left:4px;.svg-icon{transform:rotate(-90deg);}&.expanded .svg-icon{transform:rotate(0);}}}.header-icon{",";}"],ne=>ne.theme.color_bg_border_01,ne=>ne.theme.color_text_L1,l.n9);class Xe extends k.PureComponent{constructor(lt){super(lt),(0,a.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),(0,a.A)(this,"handleExitSearch",rt=>{rt.stopPropagation(),this.setState({isSearching:!1});const{keyword:Te,onSearch:Ge}=this.props;Te&&Ge("")}),(0,a.A)(this,"handleNewScreen",rt=>{rt.preventDefault();const{isEditingCombo:Te,dispatch:Ge}=this.props;if(Te){Ge({type:"entry:auto:create:combo:on:screenList"});return}Ge({type:"entry:create:screen:auto:to:root-project"})}),(0,a.A)(this,"handleNewScreenFolder",rt=>{rt.preventDefault();const{isEditingCombo:Te,dispatch:Ge}=this.props;if(Te){Ge({type:"entry:auto:create:comboGroup:on:screenList"});return}Ge({type:"entry:create:screen_folder:auto:to:root-project"})}),(0,a.A)(this,"handleToggleExpanded",()=>{const{hasFoldedScreen:rt,onToggleExpanded:Te}=this.props;Te(rt)}),(0,a.A)(this,"handleOpenTrash",()=>{const{dispatch:rt,isEditingCombo:Te,isEditingUserCombo:Ge}=this.props;rt({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:Te,isEditingUserCombo:Ge}}})}),(0,a.A)(this,"handleCloseGuide",()=>{const{onlyView:rt,isPreview:Te}=this.props;rt||Te||MB.commonGuideHelper.checkGuideHasShown(Be.c.GUIDE_TOOLBAR_TRASH)&&MB.commonGuideHelper.closeGuide(Be.c.GUIDE_TOOLBAR_TRASH)}),(0,a.A)(this,"handleSelectAll",rt=>{const{displayTreeData:Te,dispatch:Ge}=this.props,ue=Te.children.map(Me=>Me.cid);typeof rt=="boolean"&&Ge({type:"screen:update:state",payload:{screenSelection:rt?(0,h.BH)(ue):[]}})}),this.state={isSearching:!1}}render(){const{isEditingCombo:lt,isMultiplePage:rt,keyword:Te,hasFoldedScreen:Ge,onlyView:ue,nonFolderPGCount:Me,isPreview:Ze,isCommunityPreview:fe,onSearch:it,screenSelection:et,displayTreeData:Ut,dispatch:G}=this.props,{isSearching:Ht}=this.state,Tt=lt?I18N.LeftSidePanel.widget:ue||Ze?I18N.LeftSidePanel.page+"\uFF08"+Me+"\uFF09":I18N.LeftSidePanel.page;return(0,m.jsx)(tt,{className:P()("header",{"is-search-mode":Ht},{isCommunityPreview:fe}),children:Ht?(0,m.jsx)(f.A,{keyword:Te,placeholder:I18N.ScreenPanel.keyword_search,onChangeKeyword:it,onExitSearch:this.handleExitSearch}):(0,m.jsxs)(m.Fragment,{children:[rt?(0,m.jsx)(Oe,{screenSelection:et,displayTreeData:Ut,handleSelectAll:this.handleSelectAll}):(0,m.jsx)("span",{className:"title",children:Tt}),(0,m.jsxs)("div",{className:P()("screen-title-right",{"is-search-mode":Ht}),children:[!rt&&!(ue||Ze)&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(C.A,{content:lt?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.build_page,direction:"down",children:(0,m.jsx)("div",{className:"box screen-title",onClick:this.handleNewScreen,children:(0,m.jsx)(q.A,{className:"s-page",name:"common/add_plus"})})}),(0,m.jsx)(C.A,{content:lt?I18N.LeftSidePanel.widget_folder:I18N.LeftSidePanel.build_page_folder,direction:"down",children:(0,m.jsx)("div",{className:"box screen-folder",onClick:this.handleNewScreenFolder,children:(0,m.jsx)(q.A,{className:"s-folder",name:"left_panel/screen/folder"})})})]}),(0,m.jsx)(C.A,{content:lt?I18N.LeftSidePanel.search_widget:I18N.LeftSidePanel.search_page,direction:"down",children:(0,m.jsx)("div",{className:"box header-icon",onClick:this.handleOpenSearch,children:(0,m.jsx)(q.A,{name:"common/search"})})}),(0,m.jsx)(E,{className:Be.c.GUIDE_TOOLBAR_TRASH,hasFoldedScreen:Ge,handleToggleExpanded:this.handleToggleExpanded,handleOpenTrash:this.handleOpenTrash,onCloseGuide:this.handleCloseGuide,isPreview:ue||Ze,isEditingCombo:lt,isMultiplePage:rt,isOnlyView:ue,dispatch:G})]})]})})}}},31254:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M46.7119 57.4805L17.2891 57.4805L2.57715 32L17.2891 6.51953L46.7119 6.51953L61.4238 32L46.7119 57.4805Z",fill:"white",stroke:"#8B8C8F"}))})},31348:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>P});var a=i(18833),k=i(19249);const P={noticeCommentAtUsers:async C=>{let{projectCid:q,noticeType:Y,userCids:J,content:O,screenCid:l,commentCid:D,basketCid:m=""}=C;try{await(0,k.Ds)("/api/aboard/web_v1/comment_notice",{project_cid:q,notice_type:Y,content:O,user_cids:J,screen_cid:l,comment_cid:D,basket_cid:m})}catch(E){await(0,a.FY)(E)}}}},31541:(eo,ot,i)=>{"use strict";i.d(ot,{LX:()=>oo,Uh:()=>ue,Z6:()=>ht,kD:()=>Jn,OS:()=>_n,jo:()=>wn,KQ:()=>Xa,Z2:()=>Ur,rw:()=>$r,ay:()=>ps,b6:()=>lc,Z4:()=>Zc,EC:()=>a0,In:()=>o1,cV:()=>ms,N_:()=>ds,c$:()=>wp,Vo:()=>od,s4:()=>Qd,So:()=>M0});var a=i(38502),k=i(53732),M=i.n(k),P=i(5649),C=i(7499),q=i(4648),Y=i(2815),J=i(62587),O=i(67787);const l=O.Ay.div.withConfig({displayName:"styles__StyledRectColorOptionList",componentId:"sc-n7p896-0"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,28px);gap:0 6px;.draft-toolbar-dropdown-option{min-width:100%;width:100%;height:28px;display:flex;align-items:center;justify-content:center;border-radius:100%;&:hover,&:active,&.active{background-color:transparent;}&.active{outline:1.5px solid ",";}}.color-btn-wrap{width:28px;height:28px;display:flex;align-items:center;justify-content:center;div{width:22px !important;height:22px !important;margin:0 !important;border-radius:100% !important;background:conic-gradient(from 180deg at 50% 50%,#FF0000 0deg,#FFF700 69.23deg,#00FF11 131.54deg,#2571FF 212.88deg,#9D14FF 289.04deg,#FF009D 360deg);outline:1px solid ",";img{display:none;}}}"],ke=>ke.theme.color_btn_primary_normal,ke=>ke.theme.color_bg_border_01),D=O.Ay.div.withConfig({displayName:"styles__StyledDraftBorderColorItemDiv",componentId:"sc-n7p896-1"})(["width:22px;height:22px;box-sizing:border-box;border-radius:100%;display:flex;align-items:center;justify-content:center;&.transparent{background:#fff;border:1px solid ",";&::before{content:'';display:block;width:1.5px;height:12px;background:#020910;opacity:0.13;transform:rotate(30deg);}}&:not(.transparent){background-color:",";border:1px solid ",";}"],ke=>ke.theme.color_bg_border_01,ke=>ke.value,ke=>ke.borderColor||ke.theme.color_bg_border_01);var m=i(72214);const E=(0,a.memo)(ke=>{const{config:Ve,fill:Ye,contentRef:wt,onChange:Ua,onOpenColorPanel:za,onCloseColorPanel:Qa}=ke,{colors:rr,hasCheck:Ji,hasColorBtn:Jr}=Ve,qi=(0,a.useMemo)(()=>rr.map(zi=>({...zi,fill:(0,J.dT)(zi.color)})),[rr]),jr=()=>{var zi;if(!wt||typeof wt=="function"||!wt.current)return null;const Ki=(zi=wt.current)==null?void 0:zi.getBoundingClientRect();return{left:Ki.right+2,top:Ki.top}};return(0,m.jsxs)(l,{className:"rect-color-option-list",children:[Ji&&(0,m.jsx)(Y.A,{value:"rgba(255, 255, 255, 1)",active:!(Ye!=null&&Ye.fillIsVisible),onClick:()=>Ua("transparent"),children:(0,m.jsx)(D,{className:"transparent"})}),qi.map((zi,Ki)=>{let{color:Zr,borderColor:Si,fill:Ii}=zi;return(0,m.jsx)(Y.A,{value:Zr,active:(Ye==null?void 0:Ye.fillIsVisible)&&"solidColor"in Ye&&"solidColor"in Ii&&Ye.solidColor===Ii.solidColor,onClick:()=>Ua(Ii),children:(0,m.jsx)(D,{value:Zr,borderColor:Si})},Ki)}),Jr&&(0,m.jsx)(q.R_,{supAttr:"fill",attr:"solidColor",color:Ye,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:16,height:16,marginLeft:5,marginRight:5,marginTop:3,marginBottom:3},onChange:zi=>Ua(zi,!1),onOpenColorPanel:za,onCloseColorPanel:Qa,canOpenLib:!1,onPosition:jr})]})});var f=Object.defineProperty,h=Object.defineProperties,S=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ve=(ke,Ve,Ye)=>Ve in ke?f(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,we=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))We.call(Ve,Ye)&&ve(ke,Ye,Ve[Ye]);if(V)for(var Ye of V(Ve))re.call(Ve,Ye)&&ve(ke,Ye,Ve[Ye]);return ke},Ae=(ke,Ve)=>h(ke,S(Ve)),Oe=(ke,Ve)=>{var Ye={};for(var wt in ke)We.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&V)for(var wt of V(ke))Ve.indexOf(wt)<0&&re.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},tt=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Oe(Ye,["size","spin","style"]);const rr=we(we({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Ae(we({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8Z",fill:"url(#pattern0_2581_612)",fillOpacity:"0.1"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12ZM12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16Z",fill:"#020910",fillOpacity:"0.13"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:"#020910",fillOpacity:"0.13"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2581_612",patternContentUnits:"objectBoundingBox",width:"1.6",height:"1.6"},a.createElement("use",{xlinkHref:"#image0_2581_612",transform:"matrix(0 0.0333333 -0.0333333 0 1.6 0)"})),a.createElement("image",{id:"image0_2581_612",width:"48",height:"48",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABrSURBVHgB7dYxCsAgEAXRvyH3v/KKvdbjwrwy2AxE+ZWkc9B9/JyqykvnvwxnAM0A2j/ltbmd9xeiGUAbH7CvtluIZADNAJpbiGYAzQCaW4hmAM0AmluIZgDNAJpbiGYAzQCaW4hmAM0A2gKcLmRVzjvmyQAAAABJRU5ErkJggg=="})))}),Xe=i(15186),ne=i(66339),lt=i(64814);const rt=O.Ay.div.withConfig({displayName:"styles__StyledBorderStyleContent",componentId:"sc-1o0rj75-0"})(["display:flex;padding-top:16px;.var-input-container{width:100%;}.border-width-input{",";}.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;margin-top:8px;}.tab-list{width:100%;display:grid;align-items:center;grid-template-columns:repeat(auto-fill,64px);grid-gap:8px;.tab{width:64px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;&.is-active{background:",";}&:not(.is-active):hover{background:",";}}}.border-style-container{width:100%;padding:2px;margin:4px 0 12px 0;height:28px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;justify-content:center;border-radius:6px;background:",";.style-box{width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;.line{width:32px;&.solid{border-bottom:1.5px solid ",";}&.dotted{border-bottom:1.5px dotted ",";}&.dashed{border-bottom:1.5px dashed ",";}}&.is-active{background:",";box-shadow:",";.line{border-color:",";}}}}.border-visible-wrapper{width:100%;padding:20px 0;display:flex;align-items:center;justify-content:center;.wrapper-border{width:168px;height:70px;border:1px dashed ",";border-radius:4px;display:flex;align-items:center;justify-content:center;.wrapper{width:100%;height:calc(100% + 24px);display:flex;align-items:center;flex-direction:column;justify-content:space-between;.row{width:calc(100% + 24px);display:flex;align-items:center;justify-content:space-between;}.border-set-width-item{width:24px;height:24px;cursor:pointer;border-radius:4px;color:",";background:",";&.is-active{background:",";.svg-icon{path{fill:",";}}}&:not(.is-active):hover{background:",";}&.border-left-width{transform:rotate(-90deg);}&.border-right-width{transform:rotate(90deg);}&.border-bottom-width{transform:rotate(180deg);}.svg-icon{path{fill:",";}}}}}}"],lt.I,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_btn_secondary_active,ke=>ke.theme.color_btn_secondary_hover,ke=>ke.theme.color_navigation_hover,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_bg_white,ke=>ke.theme.shadow_s,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_text_disabled01,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_bg_white,ke=>ke.theme.color_bg_tab,ke=>ke.theme.color_btn_primary_normal,ke=>ke.theme.color_btn_secondary_hover,ke=>ke.theme.color_text_L3),Te=O.Ay.div.withConfig({displayName:"styles__StyledBorderHasColorBox",componentId:"sc-1o0rj75-1"})(["&.trigger-container{width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;svg{path:nth-child(2),path:nth-child(3){fill:",";fill-opacity:1;}&:not(.hide){path:nth-child(1){fill:",";fill-opacity:1;}}}}"],ke=>ke.theme.color_bg_border_02,ke=>ke.color?ke.color:"unset"),Ge=O.Ay.div.withConfig({displayName:"styles__StyledBorderHasColorContainer",componentId:"sc-1o0rj75-2"})(["width:100%;.content-container{width:196px;justify-content:center;flex-direction:column;align-items:center;padding:8px 16px 16px 16px;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;}.border-style-container{width:100%;padding:2px;margin:4px 0 12px 0;height:28px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;justify-content:center;border-radius:6px;background:",";.style-box{width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;.line{width:32px;&.solid{border-bottom:1.5px solid ",";}&.dotted{border-bottom:1.5px dotted ",";}&.dashed{border-bottom:1.5px dashed ",";}}&.is-active{background:",";box-shadow:",";.line{border-color:",";}}}}}.bdr-width-container{display:flex;align-items:center;justify-content:space-between;width:100%;height:28px;.bdr-text{color:",";font-weight:500;font-size:12px;}.bdr-input{width:60px;height:28px;",";.arrow{cursor:pointer;transform:rotate(-90deg);margin-right:7px;path{stroke:",";}}&.has-menu:hover:not(.is-active):not(.is-disabled){.action.caret{background:",";}}&.has-menu.is-active{.action.caret{&:hover{background:none;border-radius:0;outline:none;}}}}}.color-options-container{width:100%;margin-top:8px;}"],ke=>ke.theme.color_text_L1,ke=>ke.theme.color_navigation_hover,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_bg_white,ke=>ke.theme.shadow_s,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_text_L1,lt.I,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_btn_secondary_active),ue=ke=>{var Ve;const{config:Ye,dropdownPosition:wt,border:Ua,handleBorderChange:za,onOpenColorPanel:Qa,onCloseColorPanel:rr}=ke,{bdrWidth:Ji,bdrColor:Jr,bdrStyle:qi,bdrIsVisible:jr}=Ua,{colors:zi,hasCheck:Ki,hasColorBtn:Zr}=Ye,Si=(0,a.useRef)(null),Ii=(0,a.useMemo)(()=>[{key:"solid",value:"solid"},{key:"dashed",value:"dashed"},{key:"dotted",value:"dotted"}],[]),_i=(vi,Yi)=>{const hl={...Ua};hl[Yi]=vi,za(hl)},ii=vi=>{const Yi={...Ua};vi==="transparent"?(Yi.bdrIsVisible=!1,Yi.bdrColor=4294967040):(Yi.bdrIsVisible=!0,Yi.bdrColor=vi.solidColor),za(Yi)},$i=(0,Xe.t0)(Jr),Ta=!jr||((Ve=(0,Xe.BN)(Jr))==null?void 0:Ve.A)===0;return(0,m.jsx)(Ge,{children:(0,m.jsx)(C.A,{top:wt==="bottom"?40:-223,left:-87,title:Ye.title,trigger:(0,m.jsx)(Te,{className:"trigger-container padding-0",color:$i,children:(0,m.jsx)(tt,{className:M()({hide:Ta}),size:24})}),children:(0,m.jsxs)("div",{className:"content-container draft-border-options",ref:Si,children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_style}),(0,m.jsx)("div",{className:"border-style-container",children:Ii.map(vi=>(0,m.jsx)("div",{className:M()("style-box",{"is-active":vi.value===qi}),onClick:()=>_i(vi.value,"bdrStyle"),children:(0,m.jsx)("div",{className:M()("line",vi.value)})},vi.key))}),(0,m.jsxs)("div",{className:"bdr-width-container",children:[(0,m.jsx)("div",{className:"bdr-text",children:I18N.TextToolbar.borderStyle.line_width}),(0,m.jsx)(P.A,{className:"bdr-input",attr:"bdrWidth",value:Ji,optionList:ne.$d,onConfirm:_i,menuClassName:"bdr-width-input-menu"})]}),(0,m.jsxs)("div",{className:"color-options-container",children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_color}),(0,m.jsx)(E,{contentRef:Si,config:{colors:zi,hasCheck:Ki,hasColorBtn:Zr},fill:{fillIsVisible:jr,fill:"solid",solidColor:Jr},onChange:ii,onOpenColorPanel:Qa,onCloseColorPanel:rr})]})]})})})};var Me=Object.defineProperty,Ze=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,G=(ke,Ve,Ye)=>Ve in ke?Me(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Ht=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))et.call(Ve,Ye)&&G(ke,Ye,Ve[Ye]);if(it)for(var Ye of it(Ve))Ut.call(Ve,Ye)&&G(ke,Ye,Ve[Ye]);return ke},Tt=(ke,Ve)=>Ze(ke,fe(Ve)),Vt=(ke,Ve)=>{var Ye={};for(var wt in ke)et.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&it)for(var wt of it(ke))Ve.indexOf(wt)<0&&Ut.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},rn=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Vt(Ye,["size","spin","style"]);const rr=Ht(Ht({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Tt(Ht({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"4",y:"5",width:"16",height:"1",rx:"0.5",fill:"#19191A"}),a.createElement("rect",{x:"4",y:"10.25",width:"16",height:"2",rx:"1",fill:"#19191A"}),a.createElement("rect",{x:"4",y:"16.5",width:"16",height:"2.5",rx:"1.25",fill:"#19191A"}))}),Lt=i(30523),jt=i(17307),mt=i(9680);const Jn=ke=>{var Ve;const{config:Ye,dropdownPosition:wt,widget:Ua,canSetBorderVisibility:za,onChange:Qa,dispatch:rr}=ke,{key:Ji,hotAttr:{border:Jr,borderVisibility:qi}}=Ua,{bdrIsVisible:jr,bdrWidth:zi,bdrStyle:Ki}=Jr,Zr={border:(0,mt.xj)([Ua],"border")},Si=(0,a.useRef)(null),[Ii,_i]=(0,a.useState)(null),ii=(0,a.useMemo)(()=>[{key:"thin",label:I18N.TextToolbar.borderStyle.thin,value:1},{key:"middle",label:I18N.TextToolbar.borderStyle.middle,value:2},{key:"thick",label:I18N.TextToolbar.borderStyle.thick,value:4},{key:"none",label:I18N.TextToolbar.borderStyle.none,value:0}],[]),$i=(0,a.useMemo)(()=>[{key:"solid",value:"solid"},{key:"dashed",value:"dashed"},{key:"dotted",value:"dotted"}],[]),Ta=(_s,As,ql)=>{let dc={...Jr,[As]:As==="bdrWidth"?parseInt(_s):_s};As==="bdrWidth"&&(dc={...dc,bdrIsVisible:!0});const Hl={...Zr==null?void 0:Zr.border,[As]:ql};Qa({value:dc,attr:"border",refVar:Hl,selections:[Ji],dispatch:rr})},vi=(0,a.useCallback)(_s=>{const{borderSide:As}=_s.currentTarget.dataset,ql={...qi,["bdrIsVisible"+As]:!qi["bdrIsVisible"+As]};Qa({value:ql,attr:"borderVisibility",selections:[Ji],dispatch:rr})},[qi,Qa,rr]),Yi=(0,a.useCallback)((_s,As)=>{Ta(_s,As,"")},[Ta]),hl=(0,a.useCallback)(()=>{setTimeout(()=>{_i({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:Si==null?void 0:Si.current})})},[Si]);return(0,m.jsx)(C.A,{top:wt==="bottom"?40:za?-392:-239,left:-104,title:Ye.title,onShow:hl,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:(0,m.jsx)(rn,{size:24})})}),children:(0,m.jsxs)(rt,{className:"content-container draft-border-options width-240",ref:Si,children:[(0,m.jsx)(Lt.Yw,{type:"number",attr:"bdrWidth",value:Jr.bdrWidth,refVar:Zr==null||(Ve=Zr.border)==null?void 0:Ve.bdrWidth,inputClassName:M()("border-width-input"),canAddVar:!0,showCaretIcon:!0,isShowAddVarIcon:!1,dropdownProps:Ii,onConfirm:(_s,As)=>Ta(_s,"bdrWidth",As)}),(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.default}),(0,m.jsx)("div",{className:"tab-list",children:ii.map(_s=>(0,m.jsx)("div",{className:M()("tab",{"is-active":jr&&zi===_s.value}),onClick:()=>Yi(_s.value,"bdrWidth"),children:_s.label},_s.key))}),(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_style}),(0,m.jsx)("div",{className:"border-style-container",children:$i.map(_s=>(0,m.jsx)("div",{className:M()("style-box",{"is-active":_s.value===Ki}),onClick:()=>Yi(_s.value,"bdrStyle"),children:(0,m.jsx)("div",{className:M()("line",_s.value)})},_s.key))}),za&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a0,{}),(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.single_setting}),(0,m.jsx)("div",{className:"border-visible-wrapper",children:(0,m.jsx)("div",{className:"wrapper-border",children:(0,m.jsxs)("div",{className:"wrapper",children:[(0,m.jsx)("div",{"data-border-side":"T",className:M()("border-set-width-item border-top-width",{"is-active":qi.bdrIsVisibleT}),onClick:vi,children:(0,m.jsx)(jt.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,m.jsxs)("div",{className:"row",children:[(0,m.jsx)("div",{"data-border-side":"L",className:M()("border-set-width-item border-left-width",{"is-active":qi.bdrIsVisibleL}),onClick:vi,children:(0,m.jsx)(jt.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,m.jsx)("div",{"data-border-side":"R",className:M()("border-set-width-item border-right-width",{"is-active":qi.bdrIsVisibleR}),onClick:vi,children:(0,m.jsx)(jt.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]}),(0,m.jsx)("div",{"data-border-side":"B",className:M()("border-set-width-item border-bottom-width",{"is-active":qi.bdrIsVisibleB}),onClick:vi,children:(0,m.jsx)(jt.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]})})})]})]})})};var o=Object.defineProperty,so=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,Ce=(ke,Ve,Ye)=>Ve in ke?o(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Pt=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Ot.call(Ve,Ye)&&Ce(ke,Ye,Ve[Ye]);if(Jt)for(var Ye of Jt(Ve))dn.call(Ve,Ye)&&Ce(ke,Ye,Ve[Ye]);return ke},Nn=(ke,Ve)=>so(ke,Et(Ve)),At=(ke,Ve)=>{var Ye={};for(var wt in ke)Ot.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Jt)for(var wt of Jt(ke))Ve.indexOf(wt)<0&&dn.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},no=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=At(Ye,["size","spin","style"]);const rr=Pt(Pt({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Nn(Pt({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M5.5 18.5H5.875V20H5L4.89746 19.9951C4.39333 19.9438 4 19.5177 4 19V18.125H5.5V18.5ZM9.375 20H7.625V18.5H9.375V20ZM12.875 20H11.125V18.5H12.875V20ZM16.375 20H14.625V18.5H16.375V20ZM20 19C20 19.5523 19.5523 20 19 20H18.125V18.5H18.5V18.125H20V19ZM5.5 16.375H4V14.625H5.5V16.375ZM20 16.375H18.5V14.625H20V16.375ZM20 12.875H18.5V11.125H20V12.875ZM12 5.5C8.41015 5.5 5.5 8.41015 5.5 12H4C4 7.58172 7.58172 4 12 4V5.5ZM20 9.375H18.5V7.625H20V9.375ZM19 4C19.5523 4 20 4.44772 20 5V5.875H18.5V5.5H18.125V4H19ZM16.375 5.5H14.625V4H16.375V5.5Z",fill:"#19191A"}))}),mo=i(5680);const mn=O.Ay.div.withConfig({displayName:"styles__StyledBorderRadiusContent",componentId:"sc-1ly4mfl-0"})(["display:flex;.border-radius-input{",";}.draft-separator-h{border-bottom:1px solid ",";margin:8px 0;}.radius-option-list{width:100%;}.separate-wrap{display:flex;flex-wrap:wrap;.var-input-container{margin-right:0;&:first-child,&:nth-child(2){margin-bottom:8px;}&:first-child,&:nth-child(3){margin-right:8px;}}.separate-input{width:58px;height:28px;.title{padding-left:11px;.svg-icon{fill:none;width:10px;height:10px;path{fill:none;}}}&.tr,&.br{margin-right:0;}&.bl,&.br{margin-bottom:0;}}}"],lt.I,ke=>ke.theme.color_bg_border_01),ht=(0,a.memo)(ke=>{const{config:Ve,dropdownPosition:Ye,widget:wt,canSetSingleRadius:Ua,borderRadiusInfo:za,attr:Qa,supAttr:rr,onChange:Ji,dispatch:Jr}=ke,{title:qi}=Ve,{key:jr,hotAttr:{borderRadiusIsRound:zi,refVars:Ki}}=wt,{borderRadius:Zr,borderRadiusIsVisible:Si,refVars:Ii}=za,_i=(0,a.useRef)(null),ii=(0,a.useRef)(null),[$i,Ta]=(0,a.useState)(null),vi=Ii==null?void 0:Ii.borderRadius;let Yi;typeof Zr!="number"?Yi=Zr:Yi={radiusTL:Zr,radiusTR:Zr,radiusBR:Zr,radiusBL:Zr};const hl=typeof Zr=="object"?Yi.radiusTL===Yi.radiusTR&&Yi.radiusTL===Yi.radiusBR&&Yi.radiusTL===Yi.radiusBL:!0,_s=(0,a.useMemo)(()=>[{key:"no_radius",label:I18N.TextToolbar.borderRadius.no_radius,value:0},{key:"extra_small",label:I18N.TextToolbar.borderRadius.extra_small,value:2},{key:"small",label:I18N.TextToolbar.borderRadius.small,value:4},{key:"middle",label:I18N.TextToolbar.borderRadius.middle,value:8},{key:"big",label:I18N.TextToolbar.borderRadius.big,value:12},{key:"pure_rounded_corners",label:I18N.TextToolbar.borderRadius.pure_rounded_corners}],[]),As=(Wi,es,xs)=>{Ji(es&&rr&&es!=="borderRadiusIsVisible"?{value:Wi,attr:es,refVar:xs,dispatch:Jr,supAttr:rr,selections:[jr]}:{value:Wi,attr:es,refVar:xs,selections:[jr],dispatch:Jr})},ql=Wi=>{As(Wi,"borderRadiusIsVisible")},dc=Wi=>{let es=Ki;rr?es={...Ki,[rr]:{...Ki==null?void 0:Ki[rr],[Qa]:""}}:es={...Ki,[Qa]:""},Jr({type:"entry:widget:change",payload:{flatChgList:[{key:jr,hotAttr:{borderRadiusIsRound:Wi,borderRadiusIsVisible:!0,refVars:es}}]}})},Hl=(Wi,es)=>{const xs=parseInt(Wi)||0;if(!(0,mo.k4)(Zr)){const{radiusTL:Ui}=Zr;if(xs===Ui)return}As(xs,Qa||"borderRadius",es),ql(!0)},gd=(Wi,es,xs)=>{var Ui;const Ns=parseInt(Wi)||0;if(Ns===Yi[es]&&(Ii==null||(Ui=Ii.borderRadius)==null?void 0:Ui[es])===xs)return;const{radiusTL:Uc,radiusTR:ic,radiusBR:Fc,radiusBL:Nh}=Yi,Bu={radiusTL:Uc,radiusTR:ic,radiusBR:Fc,radiusBL:Nh,[es]:Ns};let Sp;typeof(Ii==null?void 0:Ii.borderRadius)!="object"?Sp={}:Sp={...Ii.borderRadius},Sp[es]=xs,As(Bu,"borderRadius",Sp),ql(!0)},ss=(0,a.useCallback)((Wi,es)=>{var xs,Ui;Wi==="pure_rounded_corners"?dc(!0):Hl(es,""),(xs=ii.current)==null||(Ui=xs.close)==null||Ui.call(xs)},[ii,ql,dc,Hl]),fs=(0,a.useCallback)(()=>{setTimeout(()=>{Ta({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:_i==null?void 0:_i.current})})},[_i]);return(0,m.jsx)(C.A,{ref:ii,title:qi,top:Ye==="bottom"?40:Ua?-297:-226,left:-54,onShow:fs,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:(0,m.jsx)(no,{size:24})})}),children:(0,m.jsxs)(mn,{className:"content-container border-radius-options width-140",ref:_i,children:[(0,m.jsx)(Lt.Yw,{type:"number",inputClassName:"border-radius-input",min:0,max:9999,value:typeof Zr=="object"?hl?Zr.radiusTL:void 0:Zr,refVar:typeof vi=="string"?vi:void 0,isNotVerify:!hl,placeholder:hl?"":I18N.TextToolbar.none,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:$i,onConfirm:Hl}),(0,m.jsx)("div",{className:"radius-option-list",children:_s.map(Wi=>{let{key:es,label:xs,value:Ui}=Wi;const Ns=es==="pure_rounded_corners"?Si&&zi:Si&&Yi.radiusTL===Ui&&Yi.radiusTR===Ui&&Yi.radiusBR===Ui&&Yi.radiusBL===Ui;return(0,m.jsx)(Y.A,{value:Ui,active:Ns,onClick:()=>ss(es,Ui),children:(0,m.jsxs)(m.Fragment,{children:[Ns&&(0,m.jsx)(jt.C,{name:"draft/check",className:"draft-check"}),(0,m.jsx)("span",{className:"option-title",children:xs})]})},es)})}),Ua&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a0,{}),(0,m.jsx)("div",{className:"separate-wrap",children:mo.BK.map(Wi=>{var es;return(0,m.jsx)(Lt.Yw,{attr:Wi,type:"number",title:(0,m.jsx)(jt.C,{name:"setting_panel/br/"+Wi,className:"tl-icon"}),inputClassName:"separate-input border-radius-input",min:0,max:9999,value:Yi[Wi],refVar:vi==null?void 0:vi[Wi],canAddVar:!0,tooltipsContentText:(es=I18N.SettingPanel.border_radius)==null?void 0:es[Wi],isShowAddVarIcon:!1,dropdownProps:$i,onConfirm:(xs,Ui)=>gd(xs,Wi,Ui)},Wi)})})]})]})})});var Fn=i(36620),Yt=i(44518),Gt=i(71181),Bn=i(93645);const qt=O.Ay.div.withConfig({displayName:"styles__StyledTriggerColorDiv",componentId:"sc-6nuy2q-0"})(["width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;.instance-color{&:not(.active):hover{outline:none;}}"]),Zt=O.Ay.div.withConfig({displayName:"styles__StyledInstanceColorsContent",componentId:"sc-6nuy2q-1"})(["width:240px;display:flex;padding:8px 0;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;padding-left:16px;display:flex;align-items:center;}.colors{width:100%;padding:8px 14px;display:grid;grid-template-columns:repeat(auto-fill,30px);gap:6px;}.apper-setting{width:100%;padding:0 10px 0 16px;.height-32{height:32px;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;color:",";&.text-color-label{margin-left:28px;}}}}"],ke=>ke.theme.color_text_L1,ke=>ke.theme.color_text_L2),jn=O.Ay.div.withConfig({displayName:"styles__StyledInstanceColor",componentId:"sc-6nuy2q-2"})(["width:30px;height:30px;padding:3px;border-radius:6px;cursor:pointer;.inner{width:100%;height:100%;border-radius:4px;overflow:hidden;display:grid;flex-direction:column;grid-template-columns:repeat(3,33.33%);position:relative;&::after{content:'';position:relative;display:block;position:absolute;width:100%;height:100%;top:0;left:0;border:1px solid ",";border-radius:4px;overflow:hidden;}}&.active{outline:1.5px solid ",";;}&:not(.active):hover{outline:1.5px solid ",";}"],ke=>ke.theme.color_bg_border_02,ke=>ke.theme.color_btn_primary_normal,ke=>ke.theme.color_btn_primary_disabled),ro=O.Ay.div.withConfig({displayName:"styles__StyledInstanceColorSingle",componentId:"sc-6nuy2q-3"})(["width:100%;height:100%;background-color:",";"],ke=>ke.color),Tn=O.Ay.div.withConfig({displayName:"styles__StyledRoundColorItem",componentId:"sc-6nuy2q-4"})(["width:","px;height:","px;padding:3px;border-radius:100%;cursor:pointer;display:flex;align-items:center;justify-content:center;.inner{width:100%;height:100%;border-radius:100%;background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 0px),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 0px);background-size:10px 10px;background-position:0px 0px,0px 5px,5px -5px,-5px 0px;background-clip:padding-box;outline:1px solid ",";.color-box{width:100%;height:100%;border-radius:100%;transform:translateZ(0);background:",";&.fourths{transform:rotate(-45deg);}}}&.active{outline:1.5px solid ",";;}&:not(.active):not(.no-hover):hover{outline:1.5px solid ",";}"],ke=>ke.size+6,ke=>ke.size+6,ke=>ke.borderColor||ke.theme.color_bg_border_02,ke=>{const{colors:Ve}=ke,Ye=Ve==null?void 0:Ve.length,wt=360/Ye;let Ua="repeating-conic-gradient(from 0deg, ";for(let za=0;za<Ye;za++){const Qa=za*wt,rr=(za+1)*wt,Ji=Ve[za];Ua+=Ji+" "+Qa+"deg "+rr+"deg",za<Ye-1&&(Ua+=", ")}return Ua+=")",Ua},ke=>ke.theme.color_btn_primary_normal,ke=>ke.theme.color_btn_primary_disabled),bt=O.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorIconDiv",componentId:"sc-6nuy2q-5"})(["width:32px;height:32px;justify-content:center !important;"]),Wt=O.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorActiveDiv",componentId:"sc-6nuy2q-6"})(["width:18px;height:18px;box-sizing:border-box;border-radius:50%;background-color:",";border:1px solid ",";"],ke=>ke.value,ke=>ke.borderColor||ke.theme.color_bg_border_01),wn=(0,a.memo)(ke=>{var Ve;const{config:Ye,dropdownPosition:wt,widget:Ua,isTextEditing:za,editorState:Qa,getTextV1:rr,setTextV1:Ji,dispatch:Jr}=ke,{title:qi,isShowDefaultColors:jr=!0}=Ye,{key:zi,hotAttr:{fill:Ki,refStyles:Zr,border:Si,borderVisibility:Ii}}=Ua,_i=(Ve=rr(Qa))==null?void 0:Ve.color,{colors:ii,defaultColorHex:$i,activeColorItem:Ta,handleClearTextRef:vi,handleClearTextColorRef:Yi,handleChangeAppearAttr:hl,handleChangeDefaultColor:_s}=(0,Gt.d)({widget:Ua,editorState:Qa,getTextV1:rr,setTextV1:Ji,dispatch:Jr}),{isCustomize:As,colorItem:ql}=Ta,dc=(0,a.useRef)(null),Hl=(0,a.useRef)(null),gd=(0,a.useMemo)(()=>{if(Zr!=null&&Zr.text){var xs;return(xs=sdkStore.getHotItem(Zr.text))==null||(xs=xs.hotAttr)==null?void 0:xs.refStyles}return Zr},[Zr]),ss=xs=>{let{value:Ui,attr:Ns}=xs;hl({value:Ui,attr:Ns}),Jr({type:"entry:auto:show:hide:item"})},fs=xs=>{hl({value:xs,attr:"color"}),vi(),Jr({type:"entry:auto:show:hide:item"}),za&&Yi()},Wi=()=>{var xs;if(!(Hl!=null&&Hl.current))return null;const Ui=(xs=Hl.current)==null?void 0:xs.getBoundingClientRect();return{left:Ui.right+2,top:Ui.top}},es=xs=>{var Ui,Ns;_s(xs),(Ui=dc.current)==null||(Ns=Ui.close)==null||Ns.call(Ui)};return(0,m.jsx)(C.A,{ref:dc,title:qi,top:wt==="bottom"?40:jr?-304:-119,left:-104,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)(qt,{children:ql?(0,m.jsx)(uo,{className:"no-hover",borderColor:As?void 0:ql[3],colors:ql,size:18}):(0,m.jsx)("span",{className:"title",children:"--"})})}),children:(0,m.jsxs)(Zt,{className:"content-container instance-color-options",ref:Hl,children:[jr&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.button.color.default}),(0,m.jsx)("div",{className:"colors",children:ii.map((xs,Ui)=>{const Ns=!As&&xs[3]===$i;return(0,m.jsx)(uo,{colors:xs,isActive:Ns,borderColor:xs[3],onClick:()=>es(xs)},Ui)})}),(0,m.jsx)(Bn.TQ,{}),(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.button.color.customize})]}),(0,m.jsxs)("div",{className:"apper-setting",children:[(0,m.jsx)(Fn.s,{fill:Ki,onChange:ss,selections:[zi],canOpenLib:!0,refStyles:Zr,index:1,onPosition:Wi}),(0,m.jsx)(Yt.$,{border:Si,borderVisibility:Ii,canBorderWidth:!1,canBorderStyle:!1,canSetBorderVisibility:!1,canOpenLib:!0,canAddVar:!1,refStyles:Zr,onChange:ss,onPosition:Wi}),(0,m.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,m.jsx)("div",{className:"common-check-label-box",children:(0,m.jsx)("label",{className:"left-label text-color-label",children:I18N.TextToolbar.button.color.text})}),(0,m.jsx)(q.R_,{className:q.EY,mode:"input",attr:"textColor",supAttr:"richTextV1",color:_i,isLibText:!!(Zr!=null&&Zr.text),refStyles:gd,pIsSolidColorOnly:!0,canOpenLib:!za,canCreateColorRef:!za,onPosition:Wi,onChange:fs})]})]})]})})}),uo=(0,a.memo)(ke=>{const{className:Ve="",borderColor:Ye,colors:wt,size:Ua=22,isActive:za,onClick:Qa=()=>{}}=ke;return(0,m.jsx)(Tn,{size:Ua,colors:wt,borderColor:Ye,className:M()(Ve,{active:za}),onClick:Qa,children:(0,m.jsx)("div",{className:"inner",children:(0,m.jsx)("div",{className:M()("color-box",{fourths:(wt==null?void 0:wt.length)==4})})})})});var In=Object.defineProperty,Dn=Object.defineProperties,So=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Rt=(ke,Ve,Ye)=>Ve in ke?In(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Qe=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Ln.call(Ve,Ye)&&Rt(ke,Ye,Ve[Ye]);if(Qt)for(var Ye of Qt(Ve))Mn.call(Ve,Ye)&&Rt(ke,Ye,Ve[Ye]);return ke},En=(ke,Ve)=>Dn(ke,So(Ve)),qn=(ke,Ve)=>{var Ye={};for(var wt in ke)Ln.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Qt)for(var wt of Qt(ke))Ve.indexOf(wt)<0&&Mn.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Yn=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=qn(Ye,["size","spin","style"]);const rr=Qe(Qe({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",En(Qe({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"9",fill:"url(#pattern0_2581_617)"}),a.createElement("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"8.5",stroke:"#020910",strokeOpacity:"0.13"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2581_617",patternContentUnits:"objectBoundingBox",width:"3.27111",height:"3.27111"},a.createElement("use",{xlinkHref:"#image0_2581_617",transform:"scale(0.0127778)"})),a.createElement("image",{id:"image0_2581_617",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOTSURBVHgB7duxkQMxDARB3hdTUP4BKgCY/BxE62q6E1hvCg6emTnrwvf7XTc+n8+6Yd++/d/9LSBLACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLB/7KOfQFtGNhQAAAAASUVORK5CYII="})))});const oo=(0,a.memo)(ke=>{var Ve;const{config:Ye,dropdownPosition:wt,widget:Ua,fill:za,handleColorChange:Qa,onOpenColorPanel:rr,onCloseColorPanel:Ji}=ke,{title:Jr,colors:qi,hasCheck:jr,hasColorBtn:zi}=Ye,Ki=(0,a.useRef)(null),Zr=(0,a.useRef)(null),Si=(0,a.useMemo)(()=>za||{fillIsVisible:!0,fill:"solid",solidColor:4258350079},[za]),Ii=(0,a.useMemo)(()=>{let vi=qi.map(Yi=>({...Yi,fill:(0,J.dT)(Yi.color)})).find(Yi=>Yi.fill.solidColor===Si.solidColor);if(!vi){const Yi=(0,J.n7)({fill:za,width:Ua.hotAttr.w,height:Ua.hotAttr.h});vi={color:Yi,borderColor:Yi.replace(/,1\)/,",0.5)"),fill:Si}}return vi},[qi,Ua,Si]),_i=function(Ta,vi){var Yi,hl;if(vi===void 0&&(vi=!0),!!MB.action){if(Ta==="transparent"){const _s={...za,solidColor:4294967040,fillIsVisible:!1};Qa(_s)}else Qa(Ta);vi&&((Yi=Ki.current)==null||(hl=Yi.close)==null||hl.call(Yi))}},$i=!(za!=null&&za.fillIsVisible)||((Ve=(0,Xe.BN)(za==null?void 0:za.solidColor))==null?void 0:Ve.A)===0;return(0,m.jsx)(C.A,{ref:Ki,top:wt==="bottom"?40:-101,left:-85,title:Jr,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)(bt,{className:"icon",children:$i?(0,m.jsx)(Yn,{size:24}):(0,m.jsx)(Wt,{value:Ii.color,borderColor:Ii.borderColor,className:Ye.className})})}),children:(0,m.jsx)("div",{className:"content-container draft-bg-color-options",ref:Zr,children:(0,m.jsx)(E,{contentRef:Zr,config:{colors:qi,hasCheck:jr,hasColorBtn:zi},fill:za,onChange:_i,onOpenColorPanel:rr,onCloseColorPanel:Ji})})})});var To=i(2099),po=i(39446),Oo=i(51090);const Qo=O.Ay.div.withConfig({displayName:"styles__StyledColorBtn",componentId:"sc-13pqbvu-0"})(['flex:0 0 32px;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin:0 6px;cursor:pointer;&:not(.is-used-style-ref){.open-lib-icon{display:none;}div[type="color-btn"]{width:32px;height:32px;align-items:center;border-radius:6px;.color-btn-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}&:not(.is-open):hover{background-color:',";}&.is-open{background-color:",';}}}.color-button-thumbnail{width:18px;height:18px;border-radius:50%;.thumbnail{border-radius:50%;}}&.is-used-style-ref{width:auto;flex:1 1 0%;div[type="color-btn"]{padding:0 6px;border-radius:6px;height:100%;align-items:center;&.is-open,&:hover{background-color:',";}}.color-btn-wrap{display:flex;align-items:center;overflow:hidden;max-width:124px;}.used-ref-style{padding-left:2px;flex:1;",";color:",";}.clear-style-ref-icon{width:24px;height:24px;flex:0 0 24px;margin-left:6px;border-radius:4px;display:flex;&:hover{background:",";}}}"],ke=>ke.theme.color_btn_secondary_hover,ke=>ke.theme.color_bg_tab,ke=>ke.theme.color_btn_secondary_hover,Oo.L9,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_navigation_active),ea=O.Ay.div.withConfig({displayName:"styles__StyledIconContent",componentId:"sc-13pqbvu-1"})(["width:258px;height:420px;padding:2px 4px;overflow:hidden;#popups-icon-panel{border:none;box-shadow:none;border-radius:0;height:420px;min-height:420px;}#popups-search-panel{border:none;box-shadow:none;border-radius:0;}&.is-show-footer{#popups-icon-panel{height:376px;min-height:376px;}}.footer{width:100%;height:44px;position:absolute;bottom:0;padding:8px 10px;background:",";border-top:1px solid ",";display:flex;align-items:center;justify-content:space-between;.position-container{height:28px;padding:2px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:",";.position-box{width:56px;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;color:",";&.is-active{background:",";color:",";box-shadow:",";}}}.remove{display:flex;align-items:center;justify-content:center;color:",";font-weight:500;font-size:12px;padding:4px 6px;height:28px;cursor:pointer;border-radius:6px;&.disabled{pointer-events:none;color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}"],ke=>ke.theme.color_bg_white,ke=>ke.theme.color_bg_border_01,ke=>ke.theme.color_navigation_hover,ke=>ke.theme.color_text_L3,ke=>ke.theme.color_bg_white,ke=>ke.theme.color_text_L1,ke=>ke.theme.shadow_s,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_text_disabled01,ke=>ke.theme.color_btn_secondary_hover,ke=>ke.theme.color_btn_secondary_active),_n=(0,a.memo)(ke=>{const{config:Ve,widget:Ye,dropdownPosition:wt,color:Ua,attr:za,supAttr:Qa,disabled:rr,canOpenLib:Ji,canCreateColorRef:Jr,isTextEditing:qi,getMode:jr,onChange:zi,customBtn:Ki,style:Zr,registerTogglePanel:Si}=ke,{title:Ii,pIsSolidColorOnly:_i=!1}=Ve,{hotAttr:{refStyles:ii}}=Ye,$i=(0,a.useMemo)(()=>(0,To.OP)({selections:[Ye.key],attr:za,supAttr:Qa,styleType:"color"}),[Ye,Qa]),Ta=hl=>{zi(hl)},vi=hl=>(0,po.v)({$ref:hl,dropdownPosition:wt,contentWidth:240,contentHeight:558,offset:14}),Yi=(hl,_s)=>{const As=_s.getBoundingClientRect(),{width:ql,height:dc}=As,Hl=(0,po.v)({$ref:hl,dropdownPosition:wt,contentWidth:ql,contentHeight:dc,offset:14});if(!Hl)return;const{left:gd,top:ss}=Hl,fs=gd+ql,Wi=ss+dc;let es=0,xs=0;return gd<0&&(es=0-gd),fs>window.innerWidth&&(es=window.innerWidth-fs),ss<56&&(xs=56-ss),Wi>window.innerHeight-18&&(xs=window.innerHeight-Wi-18),es||xs?{left:gd+es,top:ss+xs}:Hl};return(0,m.jsx)(Qo,{className:M()({"is-used-style-ref":$i&&!qi}),style:Zr,children:(0,m.jsx)(q.R_,{mode:jr?jr($i):"input",supAttr:Qa,attr:za,color:Ua,disabled:rr,onChange:Ta,canOpenLib:Ji,canCreateColorRef:Jr,refStyles:ii,pIsSolidColorOnly:_i,toolTips:Ii,onPosition:vi,onApplyDidMountSideEffect:Yi,canStopPropagation:!1,direction:"down",distance2:5,size:18,solidRenderType:"circle",customBtn:Ki,registerToggleColorPanel:Si})})});var Un=i(16880),cn=i(95142),nn=i(31891),Zn=i(79495),ho=Object.defineProperty,Xn=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,Zo=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,fa=(ke,Ve,Ye)=>Ve in ke?ho(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,zo=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))ia.call(Ve,Ye)&&fa(ke,Ye,Ve[Ye]);if(Zo)for(var Ye of Zo(Ve))xa.call(Ve,Ye)&&fa(ke,Ye,Ve[Ye]);return ke},Ra=(ke,Ve)=>Xn(ke,Mo(Ve)),Sa=(ke,Ve)=>{var Ye={};for(var wt in ke)ia.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Zo)for(var wt of Zo(ke))Ve.indexOf(wt)<0&&xa.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},ta=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Sa(Ye,["size","spin","style"]);const rr=zo(zo({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Ra(zo({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 4.75C4 4.33579 4.33579 4 4.75 4H18.75C19.1642 4 19.5 4.33579 19.5 4.75C19.5 5.16421 19.1642 5.5 18.75 5.5H4.75C4.33579 5.5 4 5.16421 4 4.75Z",fill:"#19191A"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7542 7.00391C11.9531 7.00391 12.1439 7.08292 12.2845 7.22358L16.6988 11.6378C16.9916 11.9307 16.9916 12.4056 16.6988 12.6985C16.4059 12.9913 15.931 12.9913 15.6381 12.6985L12.5042 9.56457V19.2539C12.5042 19.6681 12.1684 20.0039 11.7542 20.0039C11.34 20.0039 11.0042 19.6681 11.0042 19.2539V9.56457L7.87033 12.6985C7.57744 12.9913 7.10256 12.9913 6.80967 12.6985C6.51678 12.4056 6.51678 11.9307 6.80967 11.6378L11.2239 7.22358C11.3645 7.08292 11.5553 7.00391 11.7542 7.00391Z",fill:"#19191A"}))}),ko=Object.defineProperty,bo=Object.defineProperties,aa=Object.getOwnPropertyDescriptors,ma=Object.getOwnPropertySymbols,dr=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Ir=(ke,Ve,Ye)=>Ve in ke?ko(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,$a=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))dr.call(Ve,Ye)&&Ir(ke,Ye,Ve[Ye]);if(ma)for(var Ye of ma(Ve))ni.call(Ve,Ye)&&Ir(ke,Ye,Ve[Ye]);return ke},Va=(ke,Ve)=>bo(ke,aa(Ve)),Ha=(ke,Ve)=>{var Ye={};for(var wt in ke)dr.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&ma)for(var wt of ma(ke))Ve.indexOf(wt)<0&&ni.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},gi=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Ha(Ye,["size","spin","style"]);const rr=$a($a({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Va($a({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M18.5 11.7497C18.5 12.1639 18.1642 12.4997 17.75 12.4997L5.75 12.4997C5.33579 12.4997 5 12.1639 5 11.7497C5 11.3355 5.33579 10.9997 5.75 10.9997L17.75 10.9997C18.1642 10.9997 18.5 11.3355 18.5 11.7497Z",fill:"#19191A"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.755 9.49561C11.9539 9.49561 12.1447 9.4166 12.2854 9.27595L15.1139 6.44752C15.4068 6.15463 15.4068 5.67976 15.114 5.38686C14.8211 5.09396 14.3462 5.09395 14.0533 5.38684L12.5051 6.935L12.5051 3.74561C12.5051 3.33139 12.1693 2.99561 11.7551 2.99561C11.3408 2.99561 11.0051 3.33139 11.0051 3.74561L11.0051 6.93489L9.4571 5.38686C9.16421 5.09396 8.68934 5.09395 8.39644 5.38684C8.10354 5.67972 8.10353 6.1546 8.39642 6.4475L11.2247 9.27592C11.3654 9.41658 11.5561 9.4956 11.755 9.49561Z",fill:"#19191A"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7538 13.9955C11.5548 13.9955 11.3641 14.0745 11.2234 14.2152L8.39486 17.0436C8.10196 17.3365 8.10195 17.8114 8.39483 18.1043C8.68772 18.3972 9.16259 18.3972 9.45549 18.1043L11.0037 16.5561L11.0037 19.7455C11.0037 20.1597 11.3395 20.4955 11.7537 20.4955C12.1679 20.4955 12.5037 20.1597 12.5037 19.7455L12.5037 16.5562L14.0517 18.1043C14.3446 18.3972 14.8194 18.3972 15.1123 18.1043C15.4052 17.8114 15.4053 17.3365 15.1124 17.0436L12.2841 14.2152C12.1434 14.0746 11.9527 13.9955 11.7538 13.9955Z",fill:"#19191A"}))}),Qr=Object.defineProperty,Qi=Object.defineProperties,rs=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,ns=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,ys=(ke,Ve,Ye)=>Ve in ke?Qr(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,sr=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))ns.call(Ve,Ye)&&ys(ke,Ye,Ve[Ye]);if(Li)for(var Ye of Li(Ve))Es.call(Ve,Ye)&&ys(ke,Ye,Ve[Ye]);return ke},mi=(ke,Ve)=>Qi(ke,rs(Ve)),Bt=(ke,Ve)=>{var Ye={};for(var wt in ke)ns.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Li)for(var wt of Li(ke))Ve.indexOf(wt)<0&&Es.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Io=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Bt(Ye,["size","spin","style"]);const rr=sr(sr({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",mi(sr({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M19.5 19.2502C19.5 19.6644 19.1642 20.0002 18.75 20.0002L4.75 20.0002C4.33579 20.0002 4 19.6644 4 19.2502C4 18.836 4.33579 18.5002 4.75 18.5002L18.75 18.5002C19.1642 18.5002 19.5 18.836 19.5 19.2502Z",fill:"#19191A"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7443 17C11.5454 17 11.3546 16.921 11.214 16.7803L6.79974 12.3661C6.50685 12.0732 6.50685 11.5984 6.79974 11.3055C7.09263 11.0126 7.56751 11.0126 7.8604 11.3055L10.9943 14.4393L10.9943 4.75C10.9943 4.33579 11.3301 4 11.7443 4C12.1585 4 12.4943 4.33579 12.4943 4.75L12.4943 14.4393L15.6282 11.3055C15.9211 11.0126 16.3959 11.0126 16.6888 11.3055C16.9817 11.5984 16.9817 12.0732 16.6888 12.3661L12.2746 16.7803C12.134 16.921 11.9432 17 11.7443 17Z",fill:"#19191A"}))}),No=i(49989),_a=i(11494);const Ur=ke=>{const{config:Ve,dropdownPosition:Ye,alignInfo:wt,onChange:Ua,dispatch:za}=ke,{ha:Qa,va:rr,canHa:Ji,canVa:Jr,hasMissFontHi:qi,shouldReverseDesc:jr}=wt,zi=(0,a.useRef)(null),Ki=(0,a.useMemo)(()=>[{value:"left",tip_title:jr?I18N.SettingPanel.vtop_2:I18N.SettingPanel.hleft_2,label:(0,m.jsx)(Un.A,{size:24})},{value:"center",tip_title:jr?I18N.SettingPanel.vcenter_2:I18N.SettingPanel.align_text_center,label:(0,m.jsx)(cn.A,{size:24})},{value:"right",tip_title:jr?I18N.SettingPanel.vbottom_2:I18N.SettingPanel.hright_2,label:(0,m.jsx)(nn.A,{size:24})},{value:"justify",tip_title:I18N.SettingPanel.text_Justify,label:(0,m.jsx)(Zn.A,{size:24})}],[jr]),Zr=(0,a.useMemo)(()=>[{value:"flex-start",tip_title:jr?I18N.SettingPanel.hleft_2:I18N.SettingPanel.vtop_2,label:(0,m.jsx)(ta,{size:24})},{value:"center",tip_title:jr?I18N.SettingPanel.align_text_center:I18N.SettingPanel.vcenter_2,label:(0,m.jsx)(gi,{size:24})},{value:"flex-end",tip_title:jr?I18N.SettingPanel.hright_2:I18N.SettingPanel.vbottom_2,label:(0,m.jsx)(Io,{size:24})}],[jr]),Si=($i,Ta)=>{Ua({value:$i,attr:Ta,dispatch:za})},Ii=$i=>{var Ta,vi;Si($i,"horizontalAlign"),(Ta=zi.current)==null||(vi=Ta.close)==null||vi.call(Ta)},_i=$i=>{var Ta,vi;Si($i,"verticalAlign"),(Ta=zi.current)==null||(vi=Ta.close)==null||vi.call(Ta)},ii=(0,a.useMemo)(()=>{const $i=Ki.find(Ta=>Ta.value===Qa);return($i==null?void 0:$i.label)||(0,m.jsx)(Un.A,{size:24})},[Ki,Qa]);return(0,m.jsx)(C.A,{ref:zi,top:Ye==="bottom"?40:Jr?-96:-55,left:-62,title:Ve.title,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)(_a.ec,{className:M()("trigger-icon",{re:jr}),children:ii})}),children:(0,m.jsxs)(_a.wv,{className:M()("content-container font-align-options",{re:jr}),children:[Ji&&(0,m.jsx)(No.z,{className:M()("h-alignment",{re:jr}),options:Ki,value:Qa,isLongTimeHover:!0,disabled:qi,handleChange:Ii}),Jr&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a0,{}),(0,m.jsx)(No.z,{className:M()("v-alignment",{re:jr}),options:Zr,value:rr,isLongTimeHover:!0,disabled:qi,handleChange:_i})]})]})})};var fr=Object.defineProperty,Ar=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,Kl=(ke,Ve,Ye)=>Ve in ke?fr(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,as=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))os.call(Ve,Ye)&&Kl(ke,Ye,Ve[Ye]);if(Fr)for(var Ye of Fr(Ve))Ei.call(Ve,Ye)&&Kl(ke,Ye,Ve[Ye]);return ke},al=(ke,Ve)=>Ar(ke,zr(Ve)),pd=(ke,Ve)=>{var Ye={};for(var wt in ke)os.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Fr)for(var wt of Fr(ke))Ve.indexOf(wt)<0&&Ei.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},wc=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=pd(Ye,["size","spin","style"]);const rr=as(as({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",al(as({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M10.9799 4.23642C11.0085 4.16223 11.0798 4.11328 11.1593 4.11328H12.8405C12.92 4.11328 12.9913 4.16223 13.0199 4.23642L17.1855 15.052C17.234 15.1779 17.1411 15.3133 17.0061 15.3133H15.5855C15.5047 15.3133 15.4325 15.2627 15.4048 15.1868L14.3999 12.427H9.58421L8.57928 15.1868C8.55163 15.2627 8.47945 15.3133 8.39865 15.3133H6.99365C6.85871 15.3133 6.76577 15.1779 6.81427 15.052L10.9799 4.23642ZM10.1019 11.0152H13.8823L12.0421 5.97809C12.0356 5.96036 12.0187 5.94858 11.9999 5.94858C11.981 5.94858 11.9642 5.96031 11.9577 5.97797L10.1019 11.0152Z",fill:"#19191A"}),a.createElement("rect",{x:"4",y:"16.8872",width:"16",height:"3",rx:"1",fill:"#19191A"}),a.createElement("rect",{x:"4.25",y:"17.1372",width:"15.5",height:"2.5",rx:"0.75",stroke:"#020910",strokeOpacity:"0.13",strokeWidth:"0.5"}))}),ba=i(788);const $r=(0,a.memo)(ke=>{var Ve;const{config:Ye,dropdownPosition:wt,editorState:Ua,onChange:za,getTextV1:Qa,setTextV1:rr}=ke,{colors:Ji,hasCheck:Jr,hasColorBtn:qi,left:jr}=Ye,zi=(0,a.useRef)(null),Zr=((Ve=Qa(Ua))==null?void 0:Ve.color)||Ji[0].color,Si=(0,J.dT)(Zr),Ii=(0,a.useRef)(null),_i=function(ii,$i){var Ta,vi;$i===void 0&&($i=!0);const Yi=(0,J.$8)(ii,{w:0,h:0}),hl=(0,J.wB)(Yi),_s=(0,J.d9)(hl);if(Ua){const As=(0,ba.vS)(Ua,_s);As&&za(As,{attr:"color"})}else rr("color",(0,Xe.t0)(ii.solidColor));$i&&((Ta=zi.current)==null||(vi=Ta.close)==null||vi.call(Ta))};return(0,m.jsx)(C.A,{ref:zi,top:wt==="bottom"?40:-101,left:jr||-67,title:Ye.title,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)(_a.hA,{color:Zr,className:"trigger-icon pure-icon",children:(0,m.jsx)(wc,{size:24})})}),children:(0,m.jsx)("div",{className:"content-container draft-font-color-options",ref:Ii,children:(0,m.jsx)(E,{contentRef:Ii,config:{colors:Ji,hasCheck:Jr,hasColorBtn:qi},fill:Si,onChange:_i})})})});var Ni=i(33568),Bs=i(83199),Ec=i(89240);const ps=ke=>{const{config:Ve,dropdownPosition:Ye,textInfo:wt,onChange:Ua,onFakeOverrideChange:za,onLoadAllFontList:Qa,dispatch:rr,registerTogglePanel:Ji}=ke,{fontFamily:Jr,fontWeight:qi,fontStyle:jr,wbiVersion:zi,subMenuDirection:Ki,subMenuLeftOffset:Zr,isShowFontWeightLabel:Si,isTextEditing:Ii,isMissFont:_i,fontSize:ii,lineHeight:$i,supAttr:Ta}=wt,vi=(As,ql)=>{Ua&&Ua({value:As,attr:ql,dispatch:rr})},Yi=As=>{if(za){za(As);return}rr({type:"entry:set:text:attr:fakeOverride",payload:{attrValueList:As,supAttr:Ta,isTreeSelectNode:Ta==="wTree-selectNode"}})},hl=As=>(0,m.jsx)(Bs.A,{content:Ve.title,direction:"down",distance2:6,children:(0,m.jsx)("span",{children:As})}),_s=()=>(0,m.jsx)(Ec.A,{className:"arrow",size:14});return(0,m.jsx)(_a.p9,{children:(0,m.jsx)(Ni.A,{dropdownPosition:Ye,fontFamily:Jr,isTextEditing:Ii,fontWeight:qi,fontStyle:jr,handleChange:vi,wbiVersion:zi,dispatch:rr,subMenuDirection:Ki,subMenuLeftOffset:Zr,isShowFontWeightLabel:Si,handleFakeOverrideChange:Yi,positionRelative:{xOffset:0,yOffset:Ye==="top"?-7:7},isMissFont:_i,fontSize:ii,lineHeight:$i,renderTitle:hl,renderArrow:_s,onLoadAllFontList:Qa,registerToggleFontPanel:Ji})})};var Yl=i(18381),ls=i(80228),wl=i(60007),Sc=i(81973);const lc=ke=>{const{config:Ve,dropdownPosition:Ye}=ke,wt=(0,Yl.d4)(Sc.jj),Ua=(0,a.useRef)(null),za=(0,a.useCallback)(()=>{var Qa;if(!(Ua!=null&&Ua.current))return{left:0,top:0};const{top:rr,right:Ji}=Ua==null||(Qa=Ua.current)==null?void 0:Qa.getBoundingClientRect();return{left:Ji+2,top:rr}},[Ua]);return(0,m.jsx)(C.A,{top:Ye==="bottom"?40:-437,left:ENV.IS_MO?-10:-16,title:Ve.title,trigger:(0,m.jsx)("div",{className:M()("trigger-container","has-arrow",{"padding-left-0":wt}),children:wt?(0,m.jsx)(wl.M,{canOpenModal:!1}):(0,m.jsxs)("div",{className:"trigger",children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.font.styleText}),(0,m.jsx)(Ec.A,{className:"arrow",size:14})]})}),children:(0,m.jsx)(_a.KY,{className:"content-container font-lib-options width-240",children:(0,m.jsx)(ls.A,{type:"text",ref:Ua,onGetNewEditModalPostion:za})})})};var Ic=i(92414),Gc=i(21259),mc=i(70933);const Zc=(0,a.memo)(ke=>{const{dropdownPosition:Ve,disabled:Ye=!1,config:wt,onGetRefVar:Ua,onGetCurrentSize:za,onChangeFontSize:Qa,dispatch:rr,registerTogglePanel:Ji}=ke,{options:Jr,title:qi,suffix:jr="",min:zi=1,max:Ki=99999,precision:Zr=0,top:Si=-275}=wt,Ii=(0,Yl.d4)(mc.tW),_i=za(),ii=Ua(),$i=ii?(0,mt.hZ)(ii):null,Ta=!!$i,vi=$i==null?void 0:$i.isTrashed,Yi=Ta&&$i.varData!==_i,hl=(0,a.useRef)(null),_s=(0,a.useRef)(null),As=(0,a.useRef)(null),ql=Ii&&_i<12,dc=(0,a.useCallback)((ss,fs)=>{var Wi,es;Qa(ss,fs),(Wi=_s.current)==null||(es=Wi.close)==null||es.call(Wi)},[_s,Qa]),Hl=(0,a.useCallback)(ss=>{if(rr({type:"quit:rich:text:editing"}),!ss)return dc==null?void 0:dc(_i,ss);const fs=sdkStore.getHotItem(ss);if(!fs)return;const{varData:Wi}=fs.hotAttr;let es=Wi;typeof zi=="number"&&(es=Math.max(es,zi)),typeof Ki=="number"&&(es=Math.min(es,Ki)),es=Number(Number(es).toFixed(Zr)),dc==null||dc(es,ss)},[dc,Zr]),gd=ss=>{var fs;if(ss.stopPropagation(),!(As!=null&&As.current))return;const Wi=(fs=As.current)==null?void 0:fs.getBoundingClientRect(),es=(0,po.M)({left:Wi.left-Gc.T.width/2,top:Ve==="bottom"?Wi.bottom+15:Wi.top-15-Gc.T.height});es&&rr({type:"modal:toggle:less12FontSizeTipsModal",payload:{position:es}})};return(0,m.jsx)(C.A,{ref:_s,title:qi,top:Ve==="bottom"?40:Si,left:-52,disabled:Ye,registerTogglePanel:Ji,trigger:(0,m.jsx)("div",{className:M()("trigger-container","max-width-150","has-arrow",{disabled:Ye},{"has-var":$i}),children:(0,m.jsxs)("div",{className:"trigger",children:[ql&&(0,m.jsx)(jt.C,{ref:As,isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:gd}),$i?(0,m.jsxs)("div",{className:M()("var-tag",{"is-invaild":Yi},{"is-trashed":vi}),children:[vi&&(0,m.jsx)(jt.C,{name:"design/preferencePanel/nav/tips",className:"tip-icon var-icon"}),(0,m.jsx)("span",{className:"var-title",children:String($i.varData)})]}):(0,m.jsx)("span",{className:"title",children:_i?""+_i+jr:I18N.TextToolbar.icon.size.title}),(0,m.jsx)(Ec.A,{className:"arrow",size:14})]})}),children:$i?(0,m.jsx)(Ic.A,{style:{width:220},ref:hl,type:"number",className:"var-dropmenu",value:ii,defaultVarData:_i,selectedStyle:"binded",needConfirm:!0,onChange:Hl}):(0,m.jsx)("div",{className:"content-container draft-fontsize-options",children:Jr.map((ss,fs)=>(0,m.jsx)(Y.A,{value:ss,active:!1,onClick:()=>dc(ss),children:(0,m.jsxs)(m.Fragment,{children:[_i===ss&&(0,m.jsx)(jt.C,{name:"draft/check",className:"draft-check"}),(0,m.jsx)("span",{className:"option-title",children:""+ss+jr})]})},fs))})})});var gc=i(32409),Fo=i(3507),Ca=i(55203),ya=i(77643),Ba=i(50077);const Xa=ke=>{var Ve,Ye,wt,Ua;const{widget:za,config:Qa,dropdownPosition:rr,isTextEditing:Ji,textInfo:Jr,spacingInfo:qi,hasMissFontHi:jr,onChange:zi,dispatch:Ki}=ke,{paddingTuple:Zr,refVars:Si}=qi,{isShowFontLib:Ii=!0,isShowFamily:_i=!0,isShowText:ii=!0,isShowSpacing:$i=!0}=Qa,Ta=(0,a.useRef)(null),[vi,Yi]=(0,a.useState)(null),hl=(Zr==null?void 0:Zr.pT)===(Zr==null?void 0:Zr.pB)&&(Zr==null?void 0:Zr.pT)===(Zr==null?void 0:Zr.pL)&&(Zr==null?void 0:Zr.pT)===(Zr==null?void 0:Zr.pR),{handleClearTextColorRef:_s}=(0,Ba.l)(za),As=(fs,Wi,es)=>{const xs={...Zr,[Wi]:fs},Ui=Si!=null&&Si.paddingTuple?{...Si.paddingTuple,[Wi]:es}:{[Wi]:es};zi({value:xs,attr:"paddingTuple",refVar:Ui,dispatch:Ki})},ql=fs=>{const Wi={...Zr,pT:fs,pB:fs,pL:fs,pR:fs};zi({value:Wi,attr:"paddingTuple",refVar:{pT:"",pB:"",pL:"",pR:""},dispatch:Ki})},dc=(0,a.useCallback)(()=>{var fs;if(!(Ta!=null&&Ta.current))return{left:0,top:0};const{top:Wi,right:es}=Ta==null||(fs=Ta.current)==null?void 0:fs.getBoundingClientRect();return{left:es+2,top:Wi}},[Ta]),Hl=(0,a.useCallback)(()=>{setTimeout(()=>{Yi({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:Ta==null?void 0:Ta.current})})},[Ta]),gd=(0,a.useCallback)(()=>{var fs;if(!(Ta!=null&&Ta.current))return;const{top:Wi,left:es}=Ta==null||(fs=Ta.current)==null?void 0:fs.getBoundingClientRect();return{left:es-242-2,top:Wi}},[Ta]),ss=fs=>{zi(fs),fs.attr==="textColor"&&Ji&&_s()};return(0,a.useEffect)(()=>()=>{Ki({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}})},[]),(0,m.jsx)(C.A,{top:rr==="bottom"?40:Ii&&_i&&ii?-332:-210,left:-104,title:Qa.title,onShow:Hl,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:Qa.icon})}),children:(0,m.jsxs)(_a.KY,{className:"content-container font-options width-240",ref:Ta,children:[Ii&&(0,m.jsxs)("div",{className:"header",children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.font.styleText}),(0,m.jsx)(gc.r,{type:"text",onGetNewEditModalPostion:dc})]}),(0,m.jsxs)("div",{className:"text-settings",children:[_i&&(0,m.jsx)(Fo.X,{...Jr,onChange:zi,dispatch:Ki}),ii&&(0,m.jsx)(Ca.L,{...Jr,isShowAddVarIcon:!1,dropdownProps:vi,onChange:ss,dispatch:Ki,onPosition:gd}),$i&&(0,m.jsx)(ya.O,{...qi,isShowAddVarIcon:!1,showOptionsMenu:!1,dropdownProps:vi,onChange:zi,dispatch:Ki})]}),(0,m.jsx)(a0,{}),(0,m.jsxs)("div",{className:"header",children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.font.paddingText}),(0,m.jsx)(P.A,{disabled:jr,min:0,max:99999,attr:"padding",className:"padding-all-number",value:hl?Zr==null?void 0:Zr.pL:void 0,isNotVerify:!hl,placeholder:hl?"":I18N.TextToolbar.none,normalRight:!0,onConfirm:ql})]}),(0,m.jsx)("div",{className:"padding-size",children:(0,m.jsx)("div",{className:"wrapper-padding",children:(0,m.jsxs)("div",{className:"wrapper",children:[(0,m.jsx)(Lt.Yw,{type:"number",min:0,max:99999,disabled:jr,inputClassName:"padding-number",refVar:Si==null||(Ve=Si.paddingTuple)==null?void 0:Ve.pT,value:(Zr==null?void 0:Zr.pT)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:vi,onConfirm:(fs,Wi)=>As(Number(fs),"pT",Wi)}),(0,m.jsxs)("div",{className:"row",children:[(0,m.jsx)(Lt.Yw,{type:"number",min:0,max:99999,disabled:jr,inputClassName:"padding-number",refVar:Si==null||(Ye=Si.paddingTuple)==null?void 0:Ye.pL,value:(Zr==null?void 0:Zr.pL)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:vi,onConfirm:(fs,Wi)=>As(Number(fs),"pL",Wi)}),(0,m.jsx)(Lt.Yw,{type:"number",min:0,max:99999,disabled:jr,inputClassName:"padding-number",refVar:Si==null||(wt=Si.paddingTuple)==null?void 0:wt.pR,value:(Zr==null?void 0:Zr.pR)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:vi,onConfirm:(fs,Wi)=>As(Number(fs),"pR",Wi)})]}),(0,m.jsx)(Lt.Yw,{type:"number",min:0,max:99999,disabled:jr,inputClassName:"padding-number",refVar:Si==null||(Ua=Si.paddingTuple)==null?void 0:Ua.pB,value:(Zr==null?void 0:Zr.pB)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:vi,onConfirm:(fs,Wi)=>As(Number(fs),"pB",Wi)})]})})})]})})};var Kt=Object.defineProperty,Vn=Object.defineProperties,io=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Do=(ke,Ve,Ye)=>Ve in ke?Kt(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Bo=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))$n.call(Ve,Ye)&&Do(ke,Ye,Ve[Ye]);if(Wn)for(var Ye of Wn(Ve))Vo.call(Ve,Ye)&&Do(ke,Ye,Ve[Ye]);return ke},Ro=(ke,Ve)=>Vn(ke,io(Ve)),Pa=(ke,Ve)=>{var Ye={};for(var wt in ke)$n.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Wn)for(var wt of Wn(ke))Ve.indexOf(wt)<0&&Vo.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Go=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Pa(Ye,["size","spin","style"]);const rr=Bo(Bo({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Ro(Bo({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M7.95508 19C7.40279 19 6.95508 18.5523 6.95508 18V6C6.95508 5.44772 7.40279 5 7.95508 5H12.082C13.0755 5 13.8981 5.16406 14.5498 5.49219C15.2015 5.81576 15.6891 6.25553 16.0127 6.81152C16.3363 7.36296 16.498 7.98503 16.498 8.67773C16.498 9.26107 16.391 9.75326 16.1768 10.1543C15.9626 10.5508 15.6755 10.8698 15.3154 11.1113C14.96 11.3483 14.568 11.5215 14.1396 11.6309V11.7676C14.6045 11.7904 15.0579 11.9408 15.5 12.2188C15.9466 12.4922 16.3158 12.8818 16.6074 13.3877C16.8991 13.8936 17.0449 14.5088 17.0449 15.2334C17.0449 15.9489 16.8763 16.5915 16.5391 17.1611C16.2064 17.7262 15.6914 18.1751 14.9941 18.5078C14.2969 18.8359 13.4059 19 12.3213 19H7.95508ZM9.06738 17.1885H12.1162C13.1279 17.1885 13.8525 16.9925 14.29 16.6006C14.7275 16.2087 14.9463 15.7188 14.9463 15.1309C14.9463 14.6888 14.8346 14.2832 14.6113 13.9141C14.388 13.5449 14.069 13.251 13.6543 13.0322C13.2441 12.8135 12.7565 12.7041 12.1914 12.7041H9.06738V17.1885ZM9.06738 11.0566H11.8975C12.3714 11.0566 12.7975 10.9655 13.1758 10.7832C13.5586 10.6009 13.8617 10.3457 14.085 10.0176C14.3128 9.6849 14.4268 9.29297 14.4268 8.8418C14.4268 8.26302 14.224 7.77767 13.8184 7.38574C13.4128 6.99382 12.7907 6.79785 11.9521 6.79785H9.06738V11.0566Z",fill:"#19191A"}))}),ir=Object.defineProperty,tr=Object.defineProperties,wr=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,ei=(ke,Ve,Ye)=>Ve in ke?ir(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,vr=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))br.call(Ve,Ye)&&ei(ke,Ye,Ve[Ye]);if(Pr)for(var Ye of Pr(Ve))lr.call(Ve,Ye)&&ei(ke,Ye,Ve[Ye]);return ke},ar=(ke,Ve)=>tr(ke,wr(Ve)),hr=(ke,Ve)=>{var Ye={};for(var wt in ke)br.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Pr)for(var wt of Pr(ke))Ve.indexOf(wt)<0&&lr.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Yr=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=hr(Ye,["size","spin","style"]);const rr=vr(vr({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",ar(vr({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M10 5.75C10 5.33579 10.3358 5 10.75 5H16.25C16.6642 5 17 5.33579 17 5.75C17 6.16421 16.6642 6.5 16.25 6.5H14.1481L11.3981 17.5H13.25C13.6642 17.5 14 17.8358 14 18.25C14 18.6642 13.6642 19 13.25 19H7.75C7.33579 19 7 18.6642 7 18.25C7 17.8358 7.33579 17.5 7.75 17.5H9.85192L12.6019 6.5H10.75C10.3358 6.5 10 6.16421 10 5.75Z",fill:"#19191A"}))}),yi=Object.defineProperty,Ri=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,si=(ke,Ve,Ye)=>Ve in ke?yi(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Is=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))us.call(Ve,Ye)&&si(ke,Ye,Ve[Ye]);if(ri)for(var Ye of ri(Ve))Nr.call(Ve,Ye)&&si(ke,Ye,Ve[Ye]);return ke},St=(ke,Ve)=>Ri(ke,vs(Ve)),je=(ke,Ve)=>{var Ye={};for(var wt in ke)us.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&ri)for(var wt of ri(ke))Ve.indexOf(wt)<0&&Nr.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Le=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=je(Ye,["size","spin","style"]);const rr=Is(Is({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",St(Is({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8.50049 5.5C8.50049 5.08579 8.1647 4.75 7.75049 4.75C7.33627 4.75 7.00049 5.08579 7.00049 5.5V10.75C7.00049 13.5114 9.23906 15.75 12.0005 15.75C14.7619 15.75 17.0005 13.5114 17.0005 10.75V5.5C17.0005 5.08579 16.6647 4.75 16.2505 4.75C15.8363 4.75 15.5005 5.08579 15.5005 5.5V10.75C15.5005 12.683 13.9335 14.25 12.0005 14.25C10.0675 14.25 8.50049 12.683 8.50049 10.75V5.5Z",fill:"#19191A"}),a.createElement("path",{d:"M5.75 17.75C5.33579 17.75 5 18.0858 5 18.5C5 18.9142 5.33579 19.25 5.75 19.25H18.25C18.6642 19.25 19 18.9142 19 18.5C19 18.0858 18.6642 17.75 18.25 17.75H5.75Z",fill:"#19191A"}))}),at=Object.defineProperty,ft=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,yo=(ke,Ve,Ye)=>Ve in ke?at(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Uo=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))kn.call(Ve,Ye)&&yo(ke,Ye,Ve[Ye]);if(en)for(var Ye of en(Ve))yn.call(Ve,Ye)&&yo(ke,Ye,Ve[Ye]);return ke},Xo=(ke,Ve)=>ft(ke,kt(Ve)),Ia=(ke,Ve)=>{var Ye={};for(var wt in ke)kn.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&en)for(var wt of en(ke))Ve.indexOf(wt)<0&&yn.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},ka=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Ia(Ye,["size","spin","style"]);const rr=Uo(Uo({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Xo(Uo({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M14.593 7.4902C14.0729 6.5989 13.1064 6 12 6C10.3431 6 9 7.34315 9 9C9 9.35064 9.06015 9.68722 9.17071 10H7.61151C7.53853 9.67839 7.5 9.34369 7.5 9C7.5 6.51472 9.51472 4.5 12 4.5C13.7909 4.5 15.3374 5.54613 16.0618 7.06063C16.2821 7.52117 15.9025 8 15.392 8C15.0548 8 14.7629 7.78147 14.593 7.4902Z",fill:"#19191A"}),a.createElement("path",{d:"M7.94 16.9394C8.66444 18.4538 10.2109 19.4999 12.0018 19.4999C14.487 19.4999 16.5018 17.4852 16.5018 14.9999C16.5018 14.6562 16.4632 14.3216 16.3903 14H14.8311C14.9416 14.3128 15.0018 14.6493 15.0018 14.9999C15.0018 16.6568 13.6586 17.9999 12.0018 17.9999C10.8954 17.9999 9.92894 17.401 9.40883 16.5098C9.23886 16.2185 8.94703 16 8.6098 16C8.09928 16 7.7197 16.4788 7.94 16.9394Z",fill:"#19191A"}),a.createElement("path",{d:"M5.5 11.25C5.08579 11.25 4.75 11.5858 4.75 12C4.75 12.4142 5.08579 12.75 5.5 12.75H18.5C18.9142 12.75 19.25 12.4142 19.25 12C19.25 11.5858 18.9142 11.25 18.5 11.25H5.5Z",fill:"#19191A"}))}),ga=Object.defineProperty,er=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,Xr=(ke,Ve,Ye)=>Ve in ke?ga(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,li=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Dr.call(Ve,Ye)&&Xr(ke,Ye,Ve[Ye]);if(Cr)for(var Ye of Cr(Ve))ti.call(Ve,Ye)&&Xr(ke,Ye,Ve[Ye]);return ke},ur=(ke,Ve)=>er(ke,Za(Ve)),oi=(ke,Ve)=>{var Ye={};for(var wt in ke)Dr.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Cr)for(var wt of Cr(ke))Ve.indexOf(wt)<0&&ti.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Di=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=oi(Ye,["size","spin","style"]);const rr=li(li({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",ur(li({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6145 14.7362C15.9587 14.271 16.1799 13.747 16.2781 13.1655C16.3756 12.5577 16.3398 12.0335 16.1617 11.5999C15.9866 11.1735 15.735 10.8411 15.4048 10.608C15.1463 10.4256 14.8771 10.3068 14.5976 10.2539C14.8739 10.165 15.141 10.0427 15.3987 9.88753C15.7203 9.69602 15.9951 9.43606 16.2231 9.10928C16.4579 8.77816 16.6149 8.36249 16.6976 7.86633C16.7957 7.30006 16.7567 6.77989 16.5767 6.30866C16.395 5.82918 16.0586 5.45013 15.5741 5.17155C15.0866 4.88761 14.4403 4.75 13.643 4.75H10.5142C9.99154 4.75 9.54556 5.12805 9.45996 5.64366L7.90572 15.0057C7.79761 15.6569 8.29986 16.2494 8.95997 16.2494H11.8987C12.7982 16.2494 13.5578 16.1157 14.1736 15.8437C14.7863 15.573 15.2681 15.2045 15.6145 14.7362ZM14.0018 11.3891C14.313 11.5744 14.5321 11.8204 14.6632 12.1276L14.6638 12.1288C14.7989 12.4338 14.8398 12.7677 14.7837 13.1334C14.6998 13.6039 14.4509 14.0067 14.0296 14.343C13.6202 14.6691 12.9821 14.8407 12.0974 14.8407H9.49645L10.1261 11.1047H12.8261C13.3065 11.1047 13.6961 11.2015 14.0007 11.3884L14.0018 11.3891ZM14.9262 6.64802C15.1926 6.96909 15.2874 7.36053 15.2034 7.83307L15.203 7.83583C15.1465 8.21675 15.0025 8.54599 14.7715 8.82602C14.5384 9.10849 14.2489 9.32767 13.9013 9.4837C13.5537 9.63977 13.181 9.71806 12.7819 9.71806H10.3571L10.9434 6.15872H13.4443C14.1847 6.15872 14.6669 6.33219 14.9262 6.64802Z",fill:"#19191A"}),a.createElement("path",{d:"M6.75 17.75C6.33579 17.75 6 18.0858 6 18.5C6 18.9142 6.33579 19.25 6.75 19.25H17.25C17.6642 19.25 18 18.9142 18 18.5C18 18.0858 17.6642 17.75 17.25 17.75H6.75Z",fill:"#19191A"}))}),Gr=i(20089);const ms=(0,a.memo)(ke=>{const{dropdownPosition:Ve,config:Ye,editorState:wt,onChange:Ua,getTextV1:za,setTextV1:Qa,widget:rr}=ke,{title:Ji}=Ye,Jr=za(wt),{bold:qi,italic:jr,underline:zi,strikethrough:Ki,blockType:Zr}=Jr,Si=(0,a.useMemo)(()=>[{value:"bold",icon:(0,m.jsx)(Go,{size:24}),tip_title:I18N.TextToolbar.style1},{value:"italic",icon:(0,m.jsx)(Yr,{size:24}),tip_title:I18N.TextToolbar.style2},{value:"underline",icon:(0,m.jsx)(Le,{size:24}),tip_title:I18N.TextToolbar.style3},{value:"strikethrough",icon:(0,m.jsx)(ka,{size:24}),tip_title:I18N.TextToolbar.style4}],[]),Ii=(0,a.useMemo)(()=>{let ii="";Ki&&(ii="strikethrough"),zi&&(ii="underline"),jr&&(ii="italic"),qi&&(ii="bold");const $i=Si.find(Ta=>Ta.value===ii);return($i==null?void 0:$i.icon)||(0,m.jsx)(Di,{size:24})},[qi,jr,zi,Ki,Si]),_i=(ii,$i)=>{const Ta=rr.hotAttr.type;if(wt){const vi=ii==="bold"&&(Ta===Gr.x.WSticky||Ta===Gr.x.WTear)?(0,ba.q0)(wt):wt;Ua((0,ba.Bu)(vi,ii))}else Qa(ii,$i)};return(0,m.jsx)(C.A,{top:Ve==="bottom"?40:-55,left:-48,title:Ji,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:Ii})}),children:(0,m.jsx)("div",{className:"content-container draft-inline-options",children:Si.map((ii,$i)=>{let Ta=Jr[ii.value]===!0,vi=!1;ii.value==="bold"&&["header-one","header-two","header-three"].includes(Zr)&&(vi=!0,Ta=!0);const Yi=!Jr[ii.value];return(0,m.jsx)(Y.A,{value:ii.value,active:Ta,disabled:vi,title:ii.tip_title,onClick:()=>_i(ii.value,Yi),children:ii.icon},$i)})})})});var Zi=i(95549),El=Object.defineProperty,yc=Object.defineProperties,Ts=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,_o=(ke,Ve,Ye)=>Ve in ke?El(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Da=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))an.call(Ve,Ye)&&_o(ke,Ye,Ve[Ye]);if(Pn)for(var Ye of Pn(Ve))Gn.call(Ve,Ye)&&_o(ke,Ye,Ve[Ye]);return ke},pr=(ke,Ve)=>yc(ke,Ts(Ve)),Lr=(ke,Ve)=>{var Ye={};for(var wt in ke)an.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Pn)for(var wt of Pn(ke))Ve.indexOf(wt)<0&&Gn.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Bi=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Lr(Ye,["size","spin","style"]);const rr=Da(Da({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",pr(Da({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M7.22712 10.4089C7.52002 10.116 7.99489 10.116 8.28779 10.4089C8.58068 10.7018 8.58068 11.1766 8.28779 11.4695L6.69679 13.0605C5.52522 14.2321 5.52522 16.1316 6.69679 17.3032C7.86837 18.4747 9.76786 18.4747 10.9394 17.3032L12.5304 15.7122C12.8233 15.4193 13.2982 15.4193 13.5911 15.7122C13.884 16.0051 13.884 16.4799 13.5911 16.7728L12.0001 18.3638C10.2427 20.1212 7.39349 20.1212 5.63613 18.3638C3.87878 16.6065 3.87878 13.7572 5.63613 11.9999L7.22712 10.4089Z",fill:"#19191A"}),a.createElement("path",{d:"M15.7124 12.5302C15.4195 12.8231 15.4195 13.2979 15.7124 13.5908C16.0053 13.8837 16.4802 13.8837 16.7731 13.5908L18.3641 11.9999C20.1214 10.2425 20.1214 7.39325 18.3641 5.63589C16.6067 3.87853 13.7575 3.87853 12.0001 5.63589L10.4091 7.22688C10.1162 7.51977 10.1162 7.99465 10.4091 8.28754C10.702 8.58043 11.1769 8.58043 11.4698 8.28754L13.0608 6.69655C14.2323 5.52498 16.1318 5.52498 17.3034 6.69655C18.475 7.86812 18.475 9.76762 17.3034 10.9392L15.7124 12.5302Z",fill:"#19191A"}),a.createElement("path",{d:"M9.17198 13.7677C8.87909 14.0606 8.87909 14.5355 9.17198 14.8284C9.46488 15.1213 9.93975 15.1213 10.2326 14.8284L14.8288 10.2322C15.1217 9.93929 15.1217 9.46441 14.8288 9.17152C14.5359 8.87863 14.0611 8.87863 13.7682 9.17152L9.17198 13.7677Z",fill:"#19191A"}))}),cs=i(10712),Us=i(28068),rl=i(13642),zl=i(66360);class ds extends a.Component{constructor(Ve){super(Ve),(0,Zi.A)(this,"insertFragment",async()=>new Promise(wt=>{const{editorState:Ua,onChange:za}=this.props,Qa=(0,zl.a2)(Ua," ");Qa&&za(Qa),setTimeout(()=>{wt(!0)},16.9)})),(0,Zi.A)(this,"deleteFragment",async()=>new Promise(wt=>{const{editorState:Ua,onChange:za}=this.props,Qa=(0,zl.Jh)(Ua);Qa&&za(Qa),setTimeout(()=>{wt(!0)},0)})),(0,Zi.A)(this,"handleClick",async()=>{let wt=(0,Us.Jy)(window);if(wt||(await this.insertFragment(),wt=(0,Us.Jy)(window),await this.deleteFragment()),!wt)return;const{left:Ua,top:za,bottom:Qa,width:rr}=wt,Ji={top:Qa,left:Ua+rr/2-24},{widget:Jr,editorState:qi}=this.props,{currentEntityKey:jr}=this.state,{link:zi,selectionText:Ki,blockKey:Zr,start:Si,end:Ii}=Ys(qi,jr);zi&&zi.target?rl.A.emit("draft:link-toast:edit",{widget:Jr,linkTitle:zi.title||Ki||"",linkTarget:zi.target||"",style:Ji,blockKey:Zr,start:Si,end:Ii,settingLevel:"editing"}):rl.A.emit("draft:link-toast:add",{widget:Jr,linkTitle:zi.title||Ki||"",linkTarget:zi.target||"",style:Ji,blockKey:Zr,start:Si,end:Ii,settingLevel:"editing"})});const{editorState:Ye}=Ve;this.state={currentEntityKey:Ye?(0,ba.A_)(Ye):void 0}}componentDidUpdate(Ve){const{editorState:Ye}=this.props;Ye&&Ye!==Ve.editorState&&this.setState({currentEntityKey:(0,ba.A_)(Ye)})}render(){const{config:Ve,widget:Ye,editorState:wt}=this.props,{currentEntityKey:Ua}=this.state,{link:za,blockKey:Qa}=Ys(wt,Ua);return(0,m.jsx)(cs.A,{disabled:!Qa,active:za&&za.target,title:Ve.title,widget:Ye,onClick:this.handleClick,children:(0,m.jsx)(Bi,{size:24})})}}const Ys=(ke,Ve)=>{if(!ke)return{link:{target:"",title:""},selectionText:""};const Ye=ke.getSelection();let wt="",Ua,za;Ye&&Ye.getAnchorKey()===Ye.getFocusKey()&&(wt=Ye.getAnchorKey(),Ua=Ye.getAnchorOffset(),za=Ye.getFocusOffset());const Qa=ke.getCurrentContent();let rr,Ji;if(Ve){const qi=Qa.getEntity(Ve).get("type");if(qi==="IMAGE")return{link:{target:"",title:""},selectionText:""};if(qi==="LINK"){const jr=(0,ba.Cs)(ke,Ve);rr=Qa.getEntity(Ve).get("data").url,Ji=jr&&jr.text,Ua=jr&&jr.start,za=jr&&jr.end}}const Jr=(0,ba.R_)(ke);return{link:{target:rr,title:Ji},selectionText:Jr,blockKey:wt,start:Ua,end:za}};var Tc=Object.defineProperty,Pd=Object.defineProperties,Kc=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,zs=Object.prototype.propertyIsEnumerable,Il=(ke,Ve,Ye)=>Ve in ke?Tc(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,ul=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Ls.call(Ve,Ye)&&Il(ke,Ye,Ve[Ye]);if(ui)for(var Ye of ui(Ve))zs.call(Ve,Ye)&&Il(ke,Ye,Ve[Ye]);return ke},Oc=(ke,Ve)=>Pd(ke,Kc(Ve)),_c=(ke,Ve)=>{var Ye={};for(var wt in ke)Ls.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&ui)for(var wt of ui(ke))Ve.indexOf(wt)<0&&zs.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Jd=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=_c(Ye,["size","spin","style"]);const rr=ul(ul({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Oc(ul({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 3.02148C16.9587 3.02151 20.9785 7.04131 20.9785 12C20.9785 16.9587 16.9587 20.9785 12 20.9785C7.04131 20.9785 3.02151 16.9587 3.02148 12C3.02151 7.04131 7.04131 3.02151 12 3.02148ZM12 4.52148C7.86974 4.52151 4.52151 7.86974 4.52148 12C4.52151 16.1303 7.86974 19.4785 12 19.4785C16.1303 19.4785 19.4785 16.1303 19.4785 12C19.4785 7.86974 16.1303 4.52151 12 4.52148ZM8.09668 13.665C8.45513 13.4578 8.91464 13.5802 9.12207 13.9385C9.70489 14.9458 10.7921 15.6219 12.0361 15.6221C13.2803 15.6219 14.3684 14.9459 14.9512 13.9385C15.1586 13.5803 15.6172 13.458 15.9756 13.665C16.3339 13.8725 16.4573 14.332 16.25 14.6904C15.4101 16.1423 13.8374 17.1219 12.0361 17.1221C10.2351 17.1219 8.66319 16.142 7.82324 14.6904C7.61587 14.3319 7.73828 13.8725 8.09668 13.665ZM8.91406 9.17188C9.48213 9.17188 9.94238 9.63213 9.94238 10.2002C9.94228 10.7682 9.48206 11.2285 8.91406 11.2285C8.34617 11.2284 7.88585 10.7681 7.88574 10.2002C7.88574 9.63221 8.3461 9.172 8.91406 9.17188ZM15.0859 9.17188C15.6539 9.172 16.1143 9.63221 16.1143 10.2002C16.1142 10.7681 15.6538 11.2284 15.0859 11.2285C14.5179 11.2285 14.0577 10.7682 14.0576 10.2002C14.0576 9.63213 14.5179 9.17188 15.0859 9.17188Z",fill:"#19191A"}))}),Op=i(98407),ep=i(30275);const o1=(0,a.memo)(ke=>{const{config:Ve,dropdownPosition:Ye,icon:wt,onSetCurrentNodeIcon:Ua,onChangePosition:za,dispatch:Qa,registerTogglePanel:rr}=ke,{title:Ji,source:Jr,left:qi}=Ve,jr=(0,a.useRef)(null),zi=(0,a.useMemo)(()=>[{key:"left",label:I18N.TextToolbar.button.icon.position.left},{key:"right",label:I18N.TextToolbar.button.icon.position.right}],[]),Ki=Si=>{Si&&Qa({type:"entry:toggle:icon-select-popup",payload:{iconName:wt==null?void 0:wt.iconName,source:Jr}}),Qa({type:"entry:search-panel:clear:state",payload:{from:ep.Z.iconSelectPopup}})},Zr=(Si,Ii)=>{var _i;!(jr==null||(_i=jr.current)==null)&&_i.close&&jr.current.close(),Ua(Si,Ii)};return(0,m.jsx)(C.A,{ref:jr,title:Ji,top:Ye==="bottom"?40:-427,left:qi||-113,onShow:()=>Ki(!0),onClose:()=>Ki(!1),registerTogglePanel:rr,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:(0,m.jsx)(Jd,{size:24})})}),children:(0,m.jsxs)(ea,{className:M()("content-container icon-options",{"is-show-footer":za}),children:[(0,m.jsx)(Op.e,{isDraggable:!1,onSetCurrentNodeIcon:Zr}),za&&(0,m.jsxs)("div",{className:"footer",children:[(0,m.jsx)("div",{className:"position-container",children:zi.map(Si=>{const Ii=Si.key==="none"?!(wt!=null&&wt.path)&&!(wt!=null&&wt.position):(wt==null?void 0:wt.position)===Si.key;return(0,m.jsx)("div",{className:M()("position-box",{"is-active":Ii}),onClick:()=>za(Si.key),children:Si.label},Si.key)})}),(0,m.jsx)("div",{className:M()("remove",{disabled:!(wt!=null&&wt.path)}),onClick:()=>za("none"),children:I18N.TextToolbar.button.icon.remove})]})]})})});var N0=Object.defineProperty,Rp=Object.defineProperties,a1=Object.getOwnPropertyDescriptors,p0=Object.getOwnPropertySymbols,p2=Object.prototype.hasOwnProperty,r1=Object.prototype.propertyIsEnumerable,N1=(ke,Ve,Ye)=>Ve in ke?N0(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,i1=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))p2.call(Ve,Ye)&&N1(ke,Ye,Ve[Ye]);if(p0)for(var Ye of p0(Ve))r1.call(Ve,Ye)&&N1(ke,Ye,Ve[Ye]);return ke},s1=(ke,Ve)=>Rp(ke,a1(Ve)),K2=(ke,Ve)=>{var Ye={};for(var wt in ke)p2.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&p0)for(var wt of p0(ke))Ve.indexOf(wt)<0&&r1.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},x0=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=K2(Ye,["size","spin","style"]);const rr=i1(i1({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",s1(i1({ref:Ve,style:rr},Qa),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"3.75",y:"4.75",width:"14.5",height:"14.5",rx:"2.25",stroke:"#19191A",strokeWidth:"1.5"}),a.createElement("path",{d:"M18.8701 6.12891C20.1025 6.50191 21 7.64582 21 9V19C21 20.6569 19.6569 22 18 22H8C6.64582 22 5.50191 21.1025 5.12891 19.8701C5.40471 19.9537 5.6969 20 6 20H16C17.6569 20 19 18.6569 19 17V7C19 6.6969 18.9537 6.40471 18.8701 6.12891Z",fill:"#B7B9BD"}))}),j0=i(38571);const D0=O.Ay.div.withConfig({displayName:"styles__StyledShadowContent",componentId:"sc-860bu2-0"})(["display:flex;width:174px;padding:8px 0;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;padding-left:16px;}.shadow-option-list{width:100%;padding:8px 16px 0 16px;}.draft-separator-h{margin:8px 16px;width:calc(100% - 32px);}.color-btn-has-hex-input{width:100%;padding-left:10px;padding-right:12px;}"],ke=>ke.theme.color_text_L1),od=(0,a.memo)(ke=>{const{config:Ve,dropdownPosition:Ye,widget:wt,onChange:Ua,dispatch:za}=ke,{title:Qa}=Ve,{key:rr,hotAttr:{shadow:Ji,refStyles:Jr}}=wt,qi=(0,mt.xj)([wt],"shadow"),jr=(0,a.useRef)(null),zi=(0,a.useRef)(null),Ki=(0,a.useMemo)(()=>[{key:"none",label:I18N.TextToolbar.shadow.none,data:{shadowIsVisible:!1}},{key:"shallow",label:I18N.TextToolbar.shadow.shallow,data:{shadowIsVisible:!0,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0}},{key:"middle",label:I18N.TextToolbar.shadow.middle,data:{shadowIsVisible:!0,offsetX:0,offsetY:4,blurRadius:12,spreadRadius:0}},{key:"deep",label:I18N.TextToolbar.shadow.deep,data:{shadowIsVisible:!0,offsetX:0,offsetY:6,blurRadius:18,spreadRadius:0}}],[]),Zr=(_i,ii,$i)=>{const Ta={...Ji};Ta[ii]=_i;const vi={...qi,[ii]:$i},Yi=(0,j0.S)({...Ta},wt);Ua({value:Yi,attr:"shadow",refVar:vi,selections:[rr],dispatch:za})},Si=_i=>{var ii,$i;const Ta={...Ji,..._i.data},vi=_i.key==="none"?qi:{...qi,offsetX:"",offsetY:"",blurRadius:"",spreadRadius:""};Ua({value:Ta,attr:"shadow",refVar:vi,selections:[rr],dispatch:za}),(ii=jr.current)==null||($i=ii.close)==null||$i.call(ii)},Ii=()=>{var _i;if(!(zi!=null&&zi.current))return null;const ii=(_i=zi.current)==null?void 0:_i.getBoundingClientRect();return{left:ii.right+2,top:ii.top}};return(0,m.jsx)(C.A,{ref:jr,title:Qa,top:Ye==="bottom"?40:-246,left:-71,trigger:(0,m.jsx)("div",{className:"trigger-container padding-0",children:(0,m.jsx)("div",{className:"trigger-icon",children:(0,m.jsx)(x0,{className:"shadow",size:24})})}),children:(0,m.jsxs)(D0,{className:"content-container shadow-options",ref:zi,children:[(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.shadow.default}),(0,m.jsx)("div",{className:"shadow-option-list",children:Ki.map(_i=>{const{key:ii,label:$i,data:Ta}=_i,vi=ii==="none"?!Ji.shadowIsVisible:Ji.shadowIsVisible&&Ji.offsetX===Ta.offsetX&&Ji.offsetY===Ta.offsetY&&Ji.blurRadius===Ta.blurRadius&&(Ji.type==="text_shadow"?!0:Ji.spreadRadius===Ta.spreadRadius);return(0,m.jsx)(Y.A,{value:ii,active:vi,onClick:()=>Si(_i),children:(0,m.jsxs)(m.Fragment,{children:[vi&&(0,m.jsx)(jt.C,{name:"draft/check",className:"draft-check"}),(0,m.jsx)("span",{className:"option-title",children:$i})]})},ii)})}),(0,m.jsx)(a0,{}),(0,m.jsx)("span",{className:"title",children:I18N.TextToolbar.shadow.color}),(0,m.jsx)(q.R_,{mode:"input",className:q.EY,supAttr:"shadow",attr:"shadowColor",color:Ji.shadowColor,refStyles:Jr,onChange:Zr,onPosition:Ii})]})})});var wd=i(73681),u2=Object.defineProperty,Sd=Object.defineProperties,Y2=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertySymbols,Up=Object.prototype.hasOwnProperty,l1=Object.prototype.propertyIsEnumerable,Tl=(ke,Ve,Ye)=>Ve in ke?u2(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,il=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Up.call(Ve,Ye)&&Tl(ke,Ye,Ve[Ye]);if(O0)for(var Ye of O0(Ve))l1.call(Ve,Ye)&&Tl(ke,Ye,Ve[Ye]);return ke},Fp=(ke,Ve)=>Sd(ke,Y2(Ve)),X2=(ke,Ve)=>{var Ye={};for(var wt in ke)Up.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&O0)for(var wt of O0(ke))Ve.indexOf(wt)<0&&l1.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},h2=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=X2(Ye,["size","spin","style"]);const rr=il(il({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Fp(il({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"4",y:"15",width:"56",height:"34",fill:"#EEEEF0"}))}),Vp=Object.defineProperty,m2=Object.defineProperties,np=Object.getOwnPropertyDescriptors,ad=Object.getOwnPropertySymbols,Pc=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,Xl=(ke,Ve,Ye)=>Ve in ke?Vp(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,js=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Pc.call(Ve,Ye)&&Xl(ke,Ye,Ve[Ye]);if(ad)for(var Ye of ad(Ve))Ga.call(Ve,Ye)&&Xl(ke,Ye,Ve[Ye]);return ke},ai=(ke,Ve)=>m2(ke,np(Ve)),Oa=(ke,Ve)=>{var Ye={};for(var wt in ke)Pc.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&ad)for(var wt of ad(ke))Ve.indexOf(wt)<0&&Ga.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Sl=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Oa(Ye,["size","spin","style"]);const rr=js(js({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",ai(js({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("path",{d:"M59.5 15.5V48.5H4.5V15.5H59.5Z",fill:"url(#pattern0_2914_1222)",stroke:"#8B8C8F"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2914_1222",patternContentUnits:"objectBoundingBox",width:"1.00571",height:"1.65647"},a.createElement("use",{xlinkHref:"#image0_2914_1222",transform:"scale(0.00392857 0.00647059)"})),a.createElement("image",{id:"image0_2914_1222",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),ju=Object.defineProperty,Du=Object.defineProperties,Q2=Object.getOwnPropertyDescriptors,qd=Object.getOwnPropertySymbols,c1=Object.prototype.hasOwnProperty,Hd=Object.prototype.propertyIsEnumerable,$d=(ke,Ve,Ye)=>Ve in ke?ju(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Ad=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))c1.call(Ve,Ye)&&$d(ke,Ye,Ve[Ye]);if(qd)for(var Ye of qd(Ve))Hd.call(Ve,Ye)&&$d(ke,Ye,Ve[Ye]);return ke},vc=(ke,Ve)=>Du(ke,Q2(Ve)),Pl=(ke,Ve)=>{var Ye={};for(var wt in ke)c1.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&qd)for(var wt of qd(ke))Ve.indexOf(wt)<0&&Hd.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Ld=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Pl(Ye,["size","spin","style"]);const rr=Ad(Ad({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",vc(Ad({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 15H60V49H4V15Z",fill:"white"}),a.createElement("path",{d:"M5 48V49H4V48H5ZM9 48V49H7V48H9ZM13 48V49H11V48H13ZM17 48V49H15V48H17ZM21 48V49H19V48H21ZM25 48V49H23V48H25ZM29 48V49H27V48H29ZM33 48V49H31V48H33ZM37 48V49H35V48H37ZM41 48V49H39V48H41ZM45 48V49H43V48H45ZM49 48V49H47V48H49ZM53 48V49H51V48H53ZM57 48V49H55V48H57ZM60 48V49H59V48H60ZM5 44.2773V46.167H4V44.2773H5ZM60 44.2773V46.167H59V44.2773H60ZM5 40.5V42.3887H4V40.5H5ZM60 40.5V42.3887H59V40.5H60ZM5 36.7227V38.6113H4V36.7227H5ZM60 36.7227V38.6113H59V36.7227H60ZM5 32.9443V34.833H4V32.9443H5ZM60 32.9443V34.833H59V32.9443H60ZM5 29.167V31.0557H4V29.167H5ZM60 29.167V31.0557H59V29.167H60ZM5 25.3887V27.2773H4V25.3887H5ZM60 25.3887V27.2773H59V25.3887H60ZM5 21.6113V23.5H4V21.6113H5ZM60 21.6113V23.5H59V21.6113H60ZM5 17.833V19.7227H4V17.833H5ZM60 17.833V19.7227H59V17.833H60ZM5 15V16H4V15H5ZM9 15V16H7V15H9ZM13 15V16H11V15H13ZM17 15V16H15V15H17ZM21 15V16H19V15H21ZM25 15V16H23V15H25ZM29 15V16H27V15H29ZM33 15V16H31V15H33ZM37 15V16H35V15H37ZM41 15V16H39V15H41ZM45 15V16H43V15H45ZM49 15V16H47V15H49ZM53 15V16H51V15H53ZM57 15V16H55V15H57ZM60 15V16H59V15H60Z",fill:"#8B8C8F"}))}),Jl=i(70829),d1=Object.defineProperty,Wl=Object.defineProperties,Ll=Object.getOwnPropertyDescriptors,p1=Object.getOwnPropertySymbols,op=Object.prototype.hasOwnProperty,ap=Object.prototype.propertyIsEnumerable,j1=(ke,Ve,Ye)=>Ve in ke?d1(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,b0=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))op.call(Ve,Ye)&&j1(ke,Ye,Ve[Ye]);if(p1)for(var Ye of p1(Ve))ap.call(Ve,Ye)&&j1(ke,Ye,Ve[Ye]);return ke},Gd=(ke,Ve)=>Wl(ke,Ll(Ve)),Zd=(ke,Ve)=>{var Ye={};for(var wt in ke)op.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&p1)for(var wt of p1(ke))Ve.indexOf(wt)<0&&ap.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},u1=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Zd(Ye,["size","spin","style"]);const rr=b0(b0({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Gd(b0({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"4",y:"4",width:"56",height:"56",rx:"28",fill:"#EEEEF0"}))}),h1=Object.defineProperty,J2=Object.defineProperties,zp=Object.getOwnPropertyDescriptors,D1=Object.getOwnPropertySymbols,u0=Object.prototype.hasOwnProperty,f2=Object.prototype.propertyIsEnumerable,R0=(ke,Ve,Ye)=>Ve in ke?h1(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,kd=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))u0.call(Ve,Ye)&&R0(ke,Ye,Ve[Ye]);if(D1)for(var Ye of D1(Ve))f2.call(Ve,Ye)&&R0(ke,Ye,Ve[Ye]);return ke},B0=(ke,Ve)=>J2(ke,zp(Ve)),Wp=(ke,Ve)=>{var Ye={};for(var wt in ke)u0.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&D1)for(var wt of D1(ke))Ve.indexOf(wt)<0&&f2.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Hp=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Wp(Ye,["size","spin","style"]);const rr=kd(kd({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",B0(kd({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("rect",{x:"4.5",y:"4.5",width:"55",height:"55",rx:"27.5",fill:"url(#pattern0_2914_1236)",stroke:"#8B8C8F"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2914_1236",patternContentUnits:"objectBoundingBox",width:"1.00571",height:"1.00571"},a.createElement("use",{xlinkHref:"#image0_2914_1236",transform:"scale(0.00392857)"})),a.createElement("image",{id:"image0_2914_1236",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),Yc=Object.defineProperty,q2=Object.defineProperties,U0=Object.getOwnPropertyDescriptors,h0=Object.getOwnPropertySymbols,m1=Object.prototype.hasOwnProperty,m0=Object.prototype.propertyIsEnumerable,Xc=(ke,Ve,Ye)=>Ve in ke?Yc(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,ac=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))m1.call(Ve,Ye)&&Xc(ke,Ye,Ve[Ye]);if(h0)for(var Ye of h0(Ve))m0.call(Ve,Ye)&&Xc(ke,Ye,Ve[Ye]);return ke},xc=(ke,Ve)=>q2(ke,U0(Ve)),g2=(ke,Ve)=>{var Ye={};for(var wt in ke)m1.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&h0)for(var wt of h0(ke))Ve.indexOf(wt)<0&&m0.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},F0=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=g2(Ye,["size","spin","style"]);const rr=ac(ac({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",xc(ac({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 32C4 16.536 16.536 4 32 4C47.464 4 60 16.536 60 32C60 47.464 47.464 60 32 60C16.536 60 4 47.464 4 32Z",fill:"white"}),a.createElement("path",{d:"M31.0342 58.9834C31.3547 58.9947 31.6767 59 32 59V60C31.6649 60 31.3313 59.9921 30.999 59.9805L31.0342 58.9834ZM33 59.9805C32.6681 59.9921 32.3348 60 32 60V59C32.3233 59 32.6453 58.9947 32.9658 58.9834L33 59.9805ZM27.2021 58.5752C27.8311 58.688 28.4679 58.7793 29.1113 58.8477L29.0059 59.8398C28.3388 59.7689 27.6786 59.6755 27.0264 59.5586L27.2021 58.5752ZM36.8857 59.0674L36.9727 59.5586C36.3204 59.6755 35.6603 59.7689 34.9932 59.8398L34.8887 58.8477C35.5321 58.7793 36.1689 58.688 36.7979 58.5752L36.8857 59.0674ZM23.4697 57.625C24.077 57.8271 24.6947 58.0088 25.3203 58.168L25.0732 59.1348C24.4242 58.9696 23.7843 58.7819 23.1543 58.5723L23.2148 58.3926L23.4697 57.625ZM40.8447 58.5723C40.2147 58.7819 39.5748 58.9696 38.9258 59.1348L38.6797 58.168C39.3053 58.0088 39.923 57.8271 40.5303 57.625L40.8447 58.5723ZM19.9121 56.1494C20.485 56.4367 21.0698 56.7043 21.665 56.9512L21.4736 57.4131L21.2822 57.873C20.6648 57.617 20.059 57.339 19.4648 57.041L19.9121 56.1494ZM44.5342 57.041C43.94 57.339 43.3342 57.617 42.7168 57.873L42.335 56.9512C42.9302 56.7043 43.515 56.4367 44.0879 56.1494L44.5342 57.041ZM16.6006 54.1807C17.1275 54.5472 17.6684 54.8956 18.2217 55.2246L17.7109 56.082C17.1374 55.741 16.5774 55.3799 16.0312 55L16.123 54.8682L16.6006 54.1807ZM47.877 54.8682L47.9678 55C47.4216 55.3799 46.8616 55.741 46.2881 56.082L45.7783 55.2246C46.3316 54.8956 46.8725 54.5472 47.3994 54.1807L47.877 54.8682ZM13.6016 51.7617C14.0717 52.1997 14.5581 52.6206 15.0586 53.0244L14.4307 53.8008C13.9118 53.3821 13.4083 52.9452 12.9209 52.4912L13.6016 51.7617ZM51.0781 52.4912C50.5907 52.9452 50.0873 53.3821 49.5684 53.8008L48.9414 53.0244C49.4419 52.6206 49.9283 52.1997 50.3984 51.7617L51.0781 52.4912ZM10.9756 48.9414C11.3794 49.4419 11.8003 49.9283 12.2383 50.3984L11.8721 50.7383L11.7793 50.8262L11.5078 51.0781C11.0538 50.5907 10.6169 50.0873 10.1982 49.5684L10.9756 48.9414ZM53.8008 49.5684C53.3821 50.0873 52.9452 50.5907 52.4912 51.0781L52.127 50.7393L51.7617 50.3984C52.1997 49.9283 52.6206 49.4419 53.0244 48.9414L53.8008 49.5684ZM8.77539 45.7783C9.10436 46.3316 9.45283 46.8725 9.81934 47.3994L8.99902 47.9678C8.61916 47.4216 8.258 46.8616 7.91699 46.2881L8.77539 45.7783ZM56.082 46.2881C55.741 46.8616 55.3799 47.4216 55 47.9678L54.5918 47.6846L54.1807 47.3994C54.5472 46.8725 54.8956 46.3316 55.2246 45.7783L56.082 46.2881ZM7.04883 42.335C7.29566 42.9302 7.56326 43.515 7.85059 44.0879L6.95801 44.5342C6.66003 43.94 6.38198 43.3342 6.12598 42.7168L6.58691 42.5264L7.04883 42.335ZM57.873 42.7168C57.617 43.3342 57.339 43.94 57.041 44.5342L56.1494 44.0879C56.4367 43.515 56.7043 42.9302 56.9512 42.335L57.873 42.7168ZM5.83203 38.6797C5.99124 39.3053 6.17295 39.923 6.375 40.5303L5.42676 40.8447C5.21716 40.2147 5.02941 39.5748 4.86426 38.9258L5.83203 38.6797ZM59.1348 38.9258C58.9696 39.5748 58.7819 40.2147 58.5723 40.8447L57.625 40.5303C57.8271 39.923 58.0088 39.3053 58.168 38.6797L59.1348 38.9258ZM5.15234 34.8887C5.22075 35.5321 5.31204 36.1689 5.4248 36.7979L4.93262 36.8857L4.44043 36.9727C4.32352 36.3204 4.23007 35.6602 4.15918 34.9932L5.15234 34.8887ZM59.8398 34.9932C59.7689 35.6603 59.6755 36.3204 59.5586 36.9727L59.0674 36.8857L58.5752 36.7979C58.688 36.1689 58.7793 35.5321 58.8477 34.8887L59.8398 34.9932ZM4 32C4 31.6649 4.00688 31.3313 4.01855 30.999L4.51758 31.0166L5.0166 31.0342C5.00534 31.3547 5 31.6767 5 32C5 32.3233 5.00534 32.6453 5.0166 32.9658L4.01855 33C4.0069 32.6681 4 32.3347 4 32ZM60 32C60 32.3348 59.9921 32.6681 59.9805 33L58.9834 32.9658C58.9947 32.6453 59 32.3233 59 32C59 31.6767 58.9947 31.3547 58.9834 31.0342L59.9805 30.999C59.9921 31.3313 60 31.6649 60 32ZM4.44043 27.0264L5.4248 27.2021C5.31204 27.8311 5.22075 28.4679 5.15234 29.1113L4.15918 29.0059C4.22946 28.3448 4.32202 27.6905 4.4375 27.0439L4.44043 27.0264ZM59.5586 27.0264C59.6755 27.6786 59.7689 28.3388 59.8398 29.0059L58.8477 29.1113C58.7793 28.4679 58.688 27.8311 58.5752 27.2021L59.5586 27.0264ZM6.375 23.4697C6.17295 24.077 5.99124 24.6947 5.83203 25.3203L4.86426 25.0732C5.02943 24.4242 5.21714 23.7843 5.42676 23.1543L6.375 23.4697ZM58.5723 23.1543C58.7819 23.7843 58.9696 24.4242 59.1348 25.0732L58.168 25.3203C58.0088 24.6947 57.8271 24.077 57.625 23.4697L58.5723 23.1543ZM7.85059 19.9121C7.56326 20.485 7.29566 21.0698 7.04883 21.665L6.12598 21.2822C6.382 20.6649 6.66001 20.059 6.95801 19.4648L7.85059 19.9121ZM57.041 19.4648C57.339 20.059 57.617 20.6648 57.873 21.2822L56.9512 21.665C56.7043 21.0698 56.4367 20.485 56.1494 19.9121L57.041 19.4648ZM9.81934 16.6006C9.45283 17.1275 9.10436 17.6684 8.77539 18.2217L7.91699 17.7109C8.25801 17.1374 8.61915 16.5774 8.99902 16.0312L9.81934 16.6006ZM55 16.0312C55.3799 16.5774 55.741 17.1374 56.082 17.7109L55.2246 18.2217C54.8956 17.6684 54.5472 17.1275 54.1807 16.6006L55 16.0312ZM12.2383 13.6016C11.8003 14.0717 11.3794 14.5581 10.9756 15.0586L10.1982 14.4307C10.6169 13.9118 11.0538 13.4083 11.5078 12.9209L12.2383 13.6016ZM52.4912 12.9209C52.9452 13.4083 53.3821 13.9118 53.8008 14.4307L53.0244 15.0586C52.6206 14.5581 52.1997 14.0717 51.7617 13.6016L52.4912 12.9209ZM15.0586 10.9756C14.5581 11.3794 14.0717 11.8003 13.6016 12.2383L12.9209 11.5078C13.4083 11.0538 13.9118 10.6169 14.4307 10.1982L15.0586 10.9756ZM49.5684 10.1982C50.0873 10.6169 50.5907 11.0538 51.0781 11.5078L50.3984 12.2383C49.9283 11.8003 49.4419 11.3794 48.9414 10.9756L49.5684 10.1982ZM18.2217 8.77539C17.6684 9.10436 17.1275 9.45283 16.6006 9.81934L16.0312 8.99902C16.5774 8.61915 17.1374 8.25801 17.7109 7.91699L18.2217 8.77539ZM46.2881 7.91699C46.8616 8.258 47.4216 8.61916 47.9678 8.99902L47.3994 9.81934C46.8725 9.45283 46.3316 9.10436 45.7783 8.77539L46.2881 7.91699ZM21.665 7.04883C21.0698 7.29566 20.485 7.56326 19.9121 7.85059L19.4648 6.95801C20.059 6.66001 20.6649 6.382 21.2822 6.12598L21.665 7.04883ZM42.7168 6.12598C43.3342 6.38198 43.94 6.66003 44.5342 6.95801L44.0879 7.85059C43.515 7.56326 42.9302 7.29566 42.335 7.04883L42.7168 6.12598ZM25.3203 5.83203C24.6947 5.99124 24.077 6.17295 23.4697 6.375L23.1543 5.42676C23.7843 5.21714 24.4242 5.02943 25.0732 4.86426L25.3203 5.83203ZM38.9258 4.86426C39.5748 5.0294 40.2147 5.21716 40.8447 5.42676L40.5303 6.375C39.923 6.17295 39.3053 5.99124 38.6797 5.83203L38.9258 4.86426ZM29.1113 5.15234C28.4679 5.22075 27.8311 5.31204 27.2021 5.4248L27.0264 4.44043C27.6786 4.3235 28.3388 4.2301 29.0059 4.15918L29.1113 5.15234ZM34.9932 4.15918C35.6602 4.23007 36.3204 4.32352 36.9727 4.44043L36.7979 5.4248C36.1689 5.31204 35.5321 5.22075 34.8887 5.15234L34.9932 4.15918ZM32 4C32.3347 4 32.6681 4.0069 33 4.01855L32.9658 5.0166C32.6453 5.00534 32.3233 5 32 5C31.6767 5 31.3547 5.00534 31.0342 5.0166L30.999 4.01855C31.3313 4.00688 31.6649 4 32 4Z",fill:"#8B8C8F"}))}),Rc=i(59098),f1=Object.defineProperty,y2=Object.defineProperties,rp=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,Bc=Object.prototype.propertyIsEnumerable,g1=(ke,Ve,Ye)=>Ve in ke?f1(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,ip=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))fc.call(Ve,Ye)&&g1(ke,Ye,Ve[Ye]);if(rc)for(var Ye of rc(Ve))Bc.call(Ve,Ye)&&g1(ke,Ye,Ve[Ye]);return ke},v2=(ke,Ve)=>y2(ke,rp(Ve)),y1=(ke,Ve)=>{var Ye={};for(var wt in ke)fc.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&rc)for(var wt of rc(ke))Ve.indexOf(wt)<0&&Bc.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},x2=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=y1(Ye,["size","spin","style"]);const rr=ip(ip({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",v2(ip({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M32 7L60 57H4L32 7Z",fill:"#EEEEF0"}))}),Zp=Object.defineProperty,lp=Object.defineProperties,cp=Object.getOwnPropertyDescriptors,R1=Object.getOwnPropertySymbols,$2=Object.prototype.hasOwnProperty,dp=Object.prototype.propertyIsEnumerable,pp=(ke,Ve,Ye)=>Ve in ke?Zp(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,Nl=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))$2.call(Ve,Ye)&&pp(ke,Ye,Ve[Ye]);if(R1)for(var Ye of R1(Ve))dp.call(Ve,Ye)&&pp(ke,Ye,Ve[Ye]);return ke},Nd=(ke,Ve)=>lp(ke,cp(Ve)),ud=(ke,Ve)=>{var Ye={};for(var wt in ke)$2.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&R1)for(var wt of R1(ke))Ve.indexOf(wt)<0&&dp.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Ds=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=ud(Ye,["size","spin","style"]);const rr=Nl(Nl({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",Nd(Nl({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("path",{d:"M59.1465 56.5H4.85352L32 8.02344L59.1465 56.5Z",fill:"url(#pattern0_2914_1242)",stroke:"#8B8C8F"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2914_1242",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},a.createElement("use",{xlinkHref:"#image0_2914_1242",transform:"matrix(0.00390625 0 0 0.004375 0 -0.06)"})),a.createElement("image",{id:"image0_2914_1242",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),Xs=Object.defineProperty,Kp=Object.defineProperties,V0=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertySymbols,b2=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable,W0=(ke,Ve,Ye)=>Ve in ke?Xs(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,v1=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))b2.call(Ve,Ye)&&W0(ke,Ye,Ve[Ye]);if(z0)for(var Ye of z0(Ve))f0.call(Ve,Ye)&&W0(ke,Ye,Ve[Ye]);return ke},eu=(ke,Ve)=>Kp(ke,V0(Ve)),C2=(ke,Ve)=>{var Ye={};for(var wt in ke)b2.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&z0)for(var wt of z0(ke))Ve.indexOf(wt)<0&&f0.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},t0=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=C2(Ye,["size","spin","style"]);const rr=v1(v1({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",eu(v1({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M32 7L60 57H4L32 7Z",fill:"white"}),a.createElement("path",{d:"M5 56V56.3867L5.37207 56.5957L5.14551 57H4L4.55957 56H5ZM9 56V57H7V56H9ZM13 56V57H11V56H13ZM17 56V57H15V56H17ZM21 56V57H19V56H21ZM25 56V57H23V56H25ZM29 56V57H27V56H29ZM33 56V57H31V56H33ZM37 56V57H35V56H37ZM41 56V57H39V56H41ZM45 56V57H43V56H45ZM49 56V57H47V56H49ZM53 56V57H51V56H53ZM57 56V57H55V56H57ZM59.4404 56L60 57H58.8545L58.6279 56.5957L59 56.3867V56H59.4404ZM6.5 52.5361L7.37207 53.0244L6.37207 54.8096L5.5 54.3213L6.49902 52.5352L6.5 52.5361ZM58.499 54.3213H58.5L57.6279 54.8096L56.6279 53.0244L57.5 52.5361V52.5352L58.499 54.3213ZM8.5 48.9639L9.37207 49.4531L8.37207 51.2383L7.5 50.75L8.5 48.9639ZM55.499 48.9639L56.5 50.75L55.6279 51.2383L54.6279 49.4531L55.499 48.9639ZM10.5 45.3926L10.9365 45.6367H10.9355L11.3721 45.8818L10.3721 47.667L9.5 47.1787L9.49902 47.1777L10.5 45.3926ZM53.499 45.3926L54.5 47.1777V47.1787L53.6279 47.667L52.6279 45.8818L53.0635 45.6367L53.499 45.3926ZM12.5 41.8213L13.3721 42.3096L12.3721 44.0957L11.5 43.6074L11.499 43.6064L12.5 41.8213ZM51.499 41.8213L52.5 43.6064V43.6074L51.6279 44.0957L50.6279 42.3096L51.499 41.8213ZM14.5 38.25L15.3721 38.7383L14.3721 40.5244L13.5 40.0361L13.499 40.0352L14.5 38.25ZM50.5 40.0352V40.0361L49.6279 40.5244L48.6279 38.7383L49.5 38.25L50.5 40.0352ZM16.5 34.6787L17.3721 35.167L16.3721 36.9531L15.5 36.4639L16.499 34.6777L16.5 34.6787ZM48.499 36.4639H48.5L47.6279 36.9531L46.6279 35.167L47.5 34.6787V34.6777L48.499 36.4639ZM18.5 31.1074L19.3721 31.5957L18.3721 33.3818L17.5 32.8926L18.499 31.1064L18.5 31.1074ZM46.499 32.8926H46.5L45.6279 33.3818L44.6279 31.5957L45.5 31.1074V31.1064L46.499 32.8926ZM20.5 27.5361L21.3721 28.0244L20.3721 29.8096L19.5 29.3213L20.499 27.5352L20.5 27.5361ZM44.499 29.3213H44.5L43.6279 29.8096L42.6279 28.0244L43.5 27.5361V27.5352L44.499 29.3213ZM22.5 23.9639L23.3721 24.4531L22.3721 26.2383L21.5 25.75L22.5 23.9639ZM41.499 23.9639L42.5 25.75L41.6279 26.2383L40.6279 24.4531L41.499 23.9639ZM24.5 20.3926L24.9365 20.6367H24.9355L25.3721 20.8818L24.3721 22.667L23.5 22.1787L23.499 22.1777L24.5 20.3926ZM39.499 20.3926L40.5 22.1777V22.1787L39.6279 22.667L38.6279 20.8818L39.0635 20.6367L39.499 20.3926ZM26.5 16.8213L27.3721 17.3096L26.3721 19.0957L25.5 18.6074L25.499 18.6064L26.5 16.8213ZM37.499 16.8213L38.5 18.6064V18.6074L37.6279 19.0957L36.6279 17.3096L37.499 16.8213ZM28.5 13.25L29.3721 13.7383L28.3721 15.5244L27.5 15.0361L27.499 15.0352L28.5 13.25ZM36.5 15.0352V15.0361L35.6279 15.5244L34.6279 13.7383L35.5 13.25L36.5 15.0352ZM30.5 9.67871L31.3721 10.167L30.3721 11.9531L29.5 11.4639L30.499 9.67773L30.5 9.67871ZM34.499 11.4639H34.5L33.6279 11.9531L32.6279 10.167L33.5 9.67871V9.67773L34.499 11.4639ZM32.5723 8.02246L32.3721 8.38184L32 8.17285L31.6279 8.38184L31.4268 8.02246L32 7L32.5723 8.02246Z",fill:"#8B8C8F"}))}),B1=i(35658),hd=Object.defineProperty,U1=Object.defineProperties,Lc=Object.getOwnPropertyDescriptors,H0=Object.getOwnPropertySymbols,G0=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,tl=(ke,Ve,Ye)=>Ve in ke?hd(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,F1=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))G0.call(Ve,Ye)&&tl(ke,Ye,Ve[Ye]);if(H0)for(var Ye of H0(Ve))up.call(Ve,Ye)&&tl(ke,Ye,Ve[Ye]);return ke},tu=(ke,Ve)=>U1(ke,Lc(Ve)),nu=(ke,Ve)=>{var Ye={};for(var wt in ke)G0.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&H0)for(var wt of H0(ke))Ve.indexOf(wt)<0&&up.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},cc=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=nu(Ye,["size","spin","style"]);const rr=F1(F1({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",tu(F1({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M32 4L39.4061 21.8064L58.6296 23.3475L43.9833 35.8936L48.458 54.6525L32 44.6L15.542 54.6525L20.0167 35.8936L5.37042 23.3475L24.5939 21.8064L32 4Z",fill:"#EEEEF0"}))}),au=Object.defineProperty,w2=Object.defineProperties,hp=Object.getOwnPropertyDescriptors,mp=Object.getOwnPropertySymbols,V1=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,Yp=(ke,Ve,Ye)=>Ve in ke?au(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,fp=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))V1.call(Ve,Ye)&&Yp(ke,Ye,Ve[Ye]);if(mp)for(var Ye of mp(Ve))n0.call(Ve,Ye)&&Yp(ke,Ye,Ve[Ye]);return ke},gp=(ke,Ve)=>w2(ke,hp(Ve)),Kd=(ke,Ve)=>{var Ye={};for(var wt in ke)V1.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&mp)for(var wt of mp(ke))Ve.indexOf(wt)<0&&n0.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},Qp=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Kd(Ye,["size","spin","style"]);const rr=fp(fp({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",gp(fp({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("path",{d:"M38.9443 21.998L39.0615 22.2803L39.3662 22.3047L57.3916 23.749L43.6582 35.5137L43.4258 35.7129L43.4971 36.0098L47.6924 53.5986L32.2607 44.1729L32 44.0137L31.7393 44.1729L16.3066 53.5986L20.5029 36.0098L20.5742 35.7129L20.3418 35.5137L6.60742 23.749L24.6338 22.3047L24.9385 22.2803L25.0557 21.998L32 5.30273L38.9443 21.998Z",fill:"url(#pattern0_2914_1248)",stroke:"#8B8C8F"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2914_1248",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},a.createElement("use",{xlinkHref:"#image0_2914_1248",transform:"scale(0.00390625)"})),a.createElement("image",{id:"image0_2914_1248",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),S2=Object.defineProperty,ru=Object.defineProperties,iu=Object.getOwnPropertyDescriptors,z1=Object.getOwnPropertySymbols,md=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,Jp=(ke,Ve,Ye)=>Ve in ke?S2(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,A2=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))md.call(Ve,Ye)&&Jp(ke,Ye,Ve[Ye]);if(z1)for(var Ye of z1(Ve))rd.call(Ve,Ye)&&Jp(ke,Ye,Ve[Ye]);return ke},W1=(ke,Ve)=>ru(ke,iu(Ve)),Ru=(ke,Ve)=>{var Ye={};for(var wt in ke)md.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&z1)for(var wt of z1(ke))Ve.indexOf(wt)<0&&rd.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},H1=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=Ru(Ye,["size","spin","style"]);const rr=A2(A2({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",W1(A2({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M32 4L39.4061 21.8064L58.6296 23.3475L43.9833 35.8936L48.458 54.6525L32 44.6L15.542 54.6525L20.0167 35.8936L5.37042 23.3475L24.5939 21.8064L32 4Z",fill:"white"}),a.createElement("path",{d:"M16.1553 53.8066L16.252 53.8301L16.709 53.9385L15.542 54.6523L15.8584 53.3213L16.1553 53.8066ZM48.458 54.6523L47.29 53.9385L47.748 53.8301L47.8438 53.8066L47.8955 53.7236L48.1406 53.3213L48.458 54.6523ZM19.6553 52.1387L18.0098 53.1436L17.4893 52.291L19.1357 51.2861L19.6553 52.1387ZM46.5107 52.291L45.9893 53.1436L44.3438 52.1387L44.8643 51.2861L46.5107 52.291ZM16.6611 49.9629L17.6338 50.1943L17.1855 52.0703L16.6992 51.9541L16.2129 51.8389L16.6602 49.9619L16.6611 49.9629ZM47.7861 51.8389L47.3008 51.9551L47.2998 51.9541L46.8145 52.0703L46.3662 50.1943L47.3389 49.9629L47.7861 51.8389ZM22.9473 50.1279L21.3018 51.1328L20.7812 50.2803L22.4268 49.2754L22.9473 50.1279ZM43.2188 50.2803L42.958 50.707L42.6973 51.1328L41.0518 50.1279L41.5732 49.2754L43.2188 50.2803ZM25.7188 47.2646L26.2393 48.1182L24.5928 49.123L24.0723 48.2705L25.7188 47.2646ZM39.9277 48.2705L39.4062 49.123L37.7598 48.1182L38.2812 47.2646L39.9277 48.2705ZM17.5557 46.2109L18.5283 46.4434L18.0811 48.3193L17.1084 48.0869L17.1074 48.0859L17.5547 46.21L17.5557 46.2109ZM46.8916 48.0859L45.9189 48.3193L45.4717 46.4434L46.4443 46.2109L46.8916 48.0859ZM29.5312 46.1074L27.8848 47.1123L27.3643 46.2598L29.0098 45.2549L29.5312 46.1074ZM36.6357 46.2598L36.1143 47.1123L34.4678 46.1074L34.9902 45.2549L36.6357 46.2598ZM32.5215 43.7471L33.3438 44.249L33.083 44.6748L33.084 44.6758L32.8701 45.0264L32.8232 45.1016L32 44.5996L31.1758 45.1016L30.916 44.6758L30.6562 44.249L31.4785 43.7471L32 43.4277L32.5215 43.7471ZM18.4502 42.459L19.4229 42.6914L18.9756 44.5674L18.0029 44.335L18.4502 42.459ZM45.5488 42.459L45.9961 44.335L45.0244 44.5674L44.5771 42.6914L45.5488 42.459ZM19.3457 38.707L20.3184 38.9395L19.8711 40.8154L18.8984 40.583L18.8975 40.582L19.3447 38.7061L19.3457 38.707ZM45.1016 40.582L44.1289 40.8154L43.6816 38.9395L44.6543 38.707L45.1016 40.582ZM21.1309 35.5312L20.7656 37.0635L19.793 36.832L19.792 36.8311L20.0166 35.8936L19.2842 35.2656L19.9346 34.5068L21.1309 35.5312ZM44.7148 35.2656L43.9834 35.8936L44.207 36.8311L43.2344 37.0635L42.8691 35.5312L44.0654 34.5068L44.7148 35.2656ZM18.4707 33.252L17.8193 34.0107L16.3545 32.7568L17.0059 31.998L18.4707 33.252ZM47.6445 32.7568L46.1797 34.0107L45.5293 33.252L46.9941 31.998L47.6445 32.7568ZM15.541 30.7432L14.8906 31.502L13.4258 30.2471L14.0762 29.4883L15.541 30.7432ZM50.5732 30.2471L49.1084 31.502L48.459 30.7432L49.9238 29.4883L50.5732 30.2471ZM12.6113 28.2334L11.96 28.9932L10.4961 27.7383L10.8223 27.3594L11.1475 26.9795L12.6113 28.2334ZM52.8525 26.9795L53.5029 27.7383L52.0391 28.9932L51.3887 28.2334L52.8525 26.9795ZM9.68262 25.7246L9.03125 26.4844L7.56641 25.2295L8.21777 24.4697L9.68262 25.7246ZM56.4326 25.2295L54.9678 26.4844L54.3174 25.7246L55.7822 24.4697L56.4326 25.2295ZM6.36328 23.6689L6.4082 24.2373L5.37012 23.3477L6.7334 23.2383L6.36328 23.6689ZM58.6299 23.3477L57.5908 24.2373L57.6357 23.6689L57.2656 23.2383L58.6299 23.3477ZM10.2559 23.959L8.33398 24.1133L8.25391 23.1162L10.1768 22.9619L10.2559 23.959ZM55.7451 23.1162L55.666 24.1133L53.7441 23.959L53.8223 22.9619L55.7451 23.1162ZM14.0205 22.6543L14.1006 23.6504L12.1787 23.8047L12.0986 22.8086L12.0977 22.8076L14.0195 22.6533L14.0205 22.6543ZM51.9014 22.8076L51.8213 23.8047L49.8994 23.6504L49.9795 22.6543L51.9014 22.8076ZM17.9453 23.3428L16.0234 23.4971L15.9434 22.5L17.8652 22.3457L17.9453 23.3428ZM48.0557 22.5L47.9766 23.4971L46.0547 23.3428L46.1338 22.3457L48.0557 22.5ZM21.79 23.0342L19.8682 23.1885L19.7881 22.1914L21.71 22.0371L21.79 23.0342ZM44.2109 22.1914L44.1318 23.1885L42.21 23.0342L42.2891 22.0371L44.2109 22.1914ZM24.9639 20.916L25.8877 21.2998L25.5176 22.1904L25.2822 22.7539L23.7129 22.8799L23.6328 21.8838L23.6318 21.8828L24.5938 21.8066L24.9639 20.916ZM39.0352 20.916L39.4062 21.8066L40.3672 21.8828L40.2871 22.8799L38.7178 22.7539L38.4824 22.1904L38.1123 21.2998L39.0352 20.916ZM26.4453 17.3545L27.3691 17.7393L26.6279 19.5195L25.7051 19.1357L25.7041 19.1348L26.4453 17.3545ZM37.5537 17.3545L38.2949 19.1348L37.3721 19.5195L36.6309 17.7393L37.5537 17.3545ZM27.9268 13.7939L28.3887 13.9854L28.8496 14.1777L28.1094 15.958L27.6475 15.7656L27.1865 15.5742L27.1855 15.5732L27.9258 13.793L27.9268 13.7939ZM36.8135 15.5732L36.3525 15.7666L36.3516 15.7656L35.8906 15.958L35.1504 14.1777L35.6113 13.9854L36.0732 13.7939L36.8135 15.5732ZM29.4082 10.2324L29.8691 10.4238L30.3311 10.6162L29.5908 12.3965L29.1289 12.2041L28.667 12.0127L29.4072 10.2314L29.4082 10.2324ZM35.332 12.0127L34.8711 12.2051L34.8701 12.2041L34.4092 12.3965L33.6689 10.6162L34.5918 10.2324L35.332 12.0127ZM30.8887 6.6709L31.8125 7.05469L31.0723 8.83594L30.1484 8.45117L30.8887 6.6709ZM33.1104 6.6709L33.8506 8.45117L32.9277 8.83594L32.1875 7.05469L33.1104 6.6709ZM32.5244 5.2627L32 5.04395L31.4746 5.2627L32 4L32.5244 5.2627Z",fill:"#8B8C8F"}))}),lu=i(31254),qp=Object.defineProperty,cu=Object.defineProperties,yp=Object.getOwnPropertyDescriptors,Yd=Object.getOwnPropertySymbols,Z0=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,jd=(ke,Ve,Ye)=>Ve in ke?qp(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,fd=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))Z0.call(Ve,Ye)&&jd(ke,Ye,Ve[Ye]);if(Yd)for(var Ye of Yd(Ve))Fl.call(Ve,Ye)&&jd(ke,Ye,Ve[Ye]);return ke},vp=(ke,Ve)=>cu(ke,yp(Ve)),$p=(ke,Ve)=>{var Ye={};for(var wt in ke)Z0.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Yd)for(var wt of Yd(ke))Ve.indexOf(wt)<0&&Fl.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},K0=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=$p(Ye,["size","spin","style"]);const rr=fd(fd({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",vp(fd({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M62 32L47 57.9808L17 57.9808L2.00001 32L17 6.01924L47 6.01924L62 32Z",fill:"#EEEEF0"}))}),k2=Object.defineProperty,E2=Object.defineProperties,I2=Object.getOwnPropertyDescriptors,x1=Object.getOwnPropertySymbols,e2=Object.prototype.hasOwnProperty,T2=Object.prototype.propertyIsEnumerable,C0=(ke,Ve,Ye)=>Ve in ke?k2(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,b1=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))e2.call(Ve,Ye)&&C0(ke,Ye,Ve[Ye]);if(x1)for(var Ye of x1(Ve))T2.call(Ve,Ye)&&C0(ke,Ye,Ve[Ye]);return ke},C1=(ke,Ve)=>E2(ke,I2(Ve)),xp=(ke,Ve)=>{var Ye={};for(var wt in ke)e2.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&x1)for(var wt of x1(ke))Ve.indexOf(wt)<0&&T2.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},G1=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=xp(Ye,["size","spin","style"]);const rr=b1(b1({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",C1(b1({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),a.createElement("path",{d:"M46.7119 57.4805L17.2891 57.4805L2.57715 32L17.2891 6.51953L46.7119 6.51953L61.4238 32L46.7119 57.4805Z",fill:"url(#pattern0_2914_1254)",stroke:"#8B8C8F"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_2914_1254",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},a.createElement("use",{xlinkHref:"#image0_2914_1254",transform:"scale(0.00390625)"})),a.createElement("image",{id:"image0_2914_1254",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),id=Object.defineProperty,w0=Object.defineProperties,o0=Object.getOwnPropertyDescriptors,Z1=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,Dd=Object.prototype.propertyIsEnumerable,Y0=(ke,Ve,Ye)=>Ve in ke?id(ke,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ke[Ve]=Ye,K1=(ke,Ve)=>{for(var Ye in Ve||(Ve={}))du.call(Ve,Ye)&&Y0(ke,Ye,Ve[Ye]);if(Z1)for(var Ye of Z1(Ve))Dd.call(Ve,Ye)&&Y0(ke,Ye,Ve[Ye]);return ke},_2=(ke,Ve)=>w0(ke,o0(Ve)),P2=(ke,Ve)=>{var Ye={};for(var wt in ke)du.call(ke,wt)&&Ve.indexOf(wt)<0&&(Ye[wt]=ke[wt]);if(ke!=null&&Z1)for(var wt of Z1(ke))Ve.indexOf(wt)<0&&Dd.call(ke,wt)&&(Ye[wt]=ke[wt]);return Ye},S1=(0,a.forwardRef)((ke,Ve)=>{var Ye=ke,{size:wt,spin:Ua,style:za}=Ye,Qa=P2(Ye,["size","spin","style"]);const rr=K1(K1({width:wt||"var(--x-icon-size, 1em)",height:wt||"var(--x-icon-size, 1em)",animation:Ua?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return a.createElement("svg",_2(K1({ref:Ve,style:rr},Qa),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M62 32L47 57.9807L17 57.9807L2.00001 32L17 6.01922L47 6.01923L62 32Z",fill:"white"}),a.createElement("path",{d:"M2.53613 32.9277L2 32L2.53613 31.0713L2.53613 31.0723L3.40137 31.5723L3.15527 32L3.40137 32.4277L2.53613 32.9277ZM4.47363 29.7168L3.60742 29.2168L3.60742 29.2158L4.67969 27.3603L5.54492 27.8603L4.47363 29.7168ZM4.67969 36.6387L3.60742 34.7832L4.47363 34.2832L5.54492 36.1396L4.67969 36.6387ZM6.61621 26.0049L5.75 25.5049L6.82129 23.6484L7.6875 24.1494L6.61621 26.0049ZM6.82129 40.3506L5.75 38.4951L6.61621 37.9951L7.6875 39.8506L6.82129 40.3506ZM8.75879 22.293L7.89355 21.793L8.96484 19.9375L9.83008 20.4375L8.75879 22.293ZM8.96484 44.0615L7.89355 42.2061L8.75879 41.707L9.83008 43.5625L8.96484 44.0615ZM10.9014 18.582L10.0361 18.082L10.0361 18.0811L11.1084 16.2256L11.9736 16.7256L10.9014 18.582ZM11.1084 47.7734L10.0361 45.918L10.9014 45.418L11.9736 47.2744L11.1084 47.7734ZM13.0449 14.8701L12.1797 14.3701L13.25 12.5146L14.1162 13.0146L13.0449 14.8701ZM13.25 51.4853L12.1797 49.6289L13.0449 49.1299L14.1162 50.9853L13.25 51.4853ZM15.1875 11.1582L14.3223 10.6582L15.3936 8.80273L16.2588 9.30273L15.1875 11.1582ZM15.3936 55.1963L14.3223 53.3408L15.1875 52.8418L16.2588 54.6973L15.3936 55.1963ZM18.0713 7.01953L17.5781 7.01953L17.3301 7.44726L16.4648 6.94726L17 6.01953L18.0713 6.01953L18.0713 7.01953ZM18.0713 57.9805L17 57.9805L16.4648 57.0518L17.3301 56.5527L17.5781 56.9805L18.0713 56.9805L18.0713 57.9805ZM22.3574 7.01953L20.2139 7.01953L20.2139 6.01953L22.3574 6.01953L22.3574 7.01953ZM22.3574 57.9805L20.2139 57.9805L20.2139 56.9805L22.3574 56.9805L22.3574 57.9805ZM26.6426 7.01953L24.5 7.01953L24.5 6.01953L26.6426 6.01953L26.6426 7.01953ZM26.6426 57.9805L24.5 57.9805L24.5 56.9805L26.6426 56.9805L26.6426 57.9805ZM30.9287 7.01953L28.7861 7.01953L28.7861 6.01953L30.9287 6.01953L30.9287 7.01953ZM30.9287 57.9805L28.7861 57.9805L28.7861 56.9805L30.9287 56.9805L30.9287 57.9805ZM35.2139 7.01953L33.0713 7.01953L33.0713 6.01953L35.2139 6.01953L35.2139 7.01953ZM35.2139 57.9805L33.0713 57.9805L33.0713 56.9805L35.2139 56.9805L35.2139 57.9805ZM39.5 7.01953L37.3574 7.01953L37.3574 6.01953L39.5 6.01953L39.5 7.01953ZM39.5 57.9805L37.3574 57.9805L37.3574 56.9805L39.5 56.9805L39.5 57.9805ZM43.7861 7.01953L41.6426 7.01953L41.6426 6.01953L43.7861 6.01953L43.7861 7.01953ZM43.7861 57.9805L41.6426 57.9805L41.6426 56.9805L43.7861 56.9805L43.7861 57.9805ZM46.6699 7.44726L46.4229 7.01953L45.9287 7.01953L45.9287 6.01953L47 6.01953L47.5361 6.94726L46.6699 7.44726ZM47 57.9805L45.9287 57.9805L45.9287 56.9805L46.4228 56.9805L46.6699 56.5527L47.5361 57.0518L47 57.9805ZM48.8125 11.1582L47.7412 9.30273L48.6074 8.80273L49.6787 10.6582L48.8125 11.1582ZM48.6074 55.1963L47.7412 54.6973L48.8125 52.8418L49.6787 53.3408L48.6074 55.1963ZM51.8213 14.3701L50.9551 14.8701L49.8838 13.0146L50.75 12.5146L51.8213 14.3701ZM51.8213 49.6289L50.75 51.4854L49.8838 50.9854L50.9551 49.1299L51.8213 49.6289ZM53.9639 18.082L53.0986 18.582L52.0264 16.7256L52.8926 16.2256L53.9648 18.0811L53.9639 18.082ZM52.8926 47.7734L52.8926 47.7744L52.0264 47.2744L53.0986 45.418L53.9639 45.918L53.9648 45.918L52.8926 47.7734ZM55.2412 22.293L54.1699 20.4375L55.0361 19.9375L56.1074 21.793L55.2412 22.293ZM55.0361 44.0615L54.1699 43.5625L55.2412 41.707L56.1074 42.2061L55.0361 44.0615ZM58.25 25.5049L57.3838 26.0049L56.3125 24.1494L57.1787 23.6494L57.1797 23.6484L58.25 25.5049ZM57.1797 40.3506L57.1787 40.3506L56.3125 39.8506L57.3838 37.9951L58.25 38.4951L57.1797 40.3506ZM60.3926 29.2168L59.5264 29.7168L58.4551 27.8604L59.3213 27.3604L60.3936 29.2158L60.3926 29.2168ZM59.3213 36.6387L59.3213 36.6396L58.4551 36.1396L59.5264 34.2832L60.3926 34.7832L60.3936 34.7832L59.3213 36.6387ZM61.4648 32.9277L61.4639 32.9277L60.5986 32.4277L60.8457 32L60.5986 31.5723L61.4639 31.0723L61.4648 31.0713L62 32L61.4648 32.9277Z",fill:"#8B8C8F"}))}),bp=i(34771),S0=i(80077),n2=i(23522),Nc=i(41818),Xd=i(26842);const o2=O.Ay.div.withConfig({displayName:"styles__StyledStyleTypeContent",componentId:"sc-vewiek-0"})(["width:240px;display:flex;.header{width:100%;height:40px;border-bottom:1px solid ",";display:flex;justify-content:space-between;align-items:center;padding-right:10px;.slide-nav{height:40px;padding:0 10px;.nav-item{margin-right:4px;&.active{font-weight:600;}}}.svg-icon{",";color:",";}}.bottom-content{width:100%;.default-content{width:100%;padding:16px;display:grid;grid-template-columns:repeat(auto-fill,92px);grid-column-gap:22px;grid-row-gap:8px;.button-box{width:100%;height:42px;border-radius:6px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;.inner{width:100%;height:100%;border-radius:4px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;line-height:20px;}&.active{outline:1.5px solid ",";}&:not(.active):hover{outline:1.5px solid ",';}&.border,&.ghost{.inner{border:1px solid;}}&.border_dashed{.inner{border:1px dashed;}}&.ghost{.inner{background-color:#fff;background-image:linear-gradient(-45deg,#f2f2f2 25%,transparent 25%,transparent 75%,#f2f2f2 75%,#f2f2f2),linear-gradient(135deg,#f2f2f2 25%,transparent 25%,transparent 75%,#f2f2f2 75%,#f2f2f2);background-size:12px 12px;background-position:0 0,6px 6px;}}}&.shape-style{grid-template-columns:repeat(auto-fill,64px);gap:8px;.button-box{height:64px;padding:0;}}}.appear-content{width:100%;box-sizing:content-box;font-size:12px;text-align:left;}.lib-panel-modal-content{header[type="draggable"] + .divider,header[type="draggable"]{display:none;}}}'],ke=>ke.theme.color_bg_border_01,Xd.eK,ke=>ke.theme.color_text_L1,ke=>ke.theme.color_btn_primary_normal,ke=>ke.theme.color_bg_select01),A1={[Gr.x.WRect]:{border:(0,m.jsx)(wd.A,{size:64}),fill:(0,m.jsx)(h2,{size:64}),ghost:(0,m.jsx)(Sl,{size:64}),border_dashed:(0,m.jsx)(Ld,{size:64})},[Gr.x.WOval]:{border:(0,m.jsx)(Jl.A,{size:64}),fill:(0,m.jsx)(u1,{size:64}),ghost:(0,m.jsx)(Hp,{size:64}),border_dashed:(0,m.jsx)(F0,{size:64})},[Gr.x.WTriangle]:{border:(0,m.jsx)(Rc.A,{size:64}),fill:(0,m.jsx)(x2,{size:64}),ghost:(0,m.jsx)(Ds,{size:64}),border_dashed:(0,m.jsx)(t0,{size:64})},[Gr.x.WStar]:{border:(0,m.jsx)(B1.A,{size:64}),fill:(0,m.jsx)(cc,{size:64}),ghost:(0,m.jsx)(Qp,{size:64}),border_dashed:(0,m.jsx)(H1,{size:64})},[Gr.x.WPolygon]:{border:(0,m.jsx)(lu.A,{size:64}),fill:(0,m.jsx)(K0,{size:64}),ghost:(0,m.jsx)(G1,{size:64}),border_dashed:(0,m.jsx)(S1,{size:64})}},Cp=ke=>{const Ve=Nc.Q.hex(ke);return(0,Xe.u_)({R:Ve[0]*255,G:Ve[1]*255,B:Ve[2]*255,A:100})},A0=[Cp("#ffffff"),Cp("#efefef"),Cp("#BBBBBB"),Cp("#101010")],Qd=(0,a.memo)(ke=>{const{config:Ve,dropdownPosition:Ye,widget:wt,editorState:Ua,getTextV1:za,setTextV1:Qa,dispatch:rr}=ke,{title:Ji}=Ve,{hotAttr:{type:Jr,styleType:qi}}=wt,[jr,zi]=(0,a.useState)(0),Ki=(0,Yl.d4)(Sc.Dw),Zr=(0,a.useRef)(null),Si=(0,a.useRef)(null),{handleClearRef:Ii}=(0,Ba.l)(wt),_i=Jr===Gr.x.WButton,ii=_i?void 0:wt.hotAttr.border,[$i,Ta]=(0,a.useState)(-447),{defaultColorHex:vi,gradientMainColorsHexNumberMap:Yi,handleChangeStyleType:hl}=(0,Gt.d)({widget:wt,editorState:Ua,getTextV1:za,setTextV1:Qa,dispatch:rr}),_s=(0,a.useMemo)(()=>{const Ui=vi||n2.C;return n2.g[Ui]},[vi,Yi]),As=(0,a.useMemo)(()=>[{key:0,label:I18N.TextToolbar.styleType.tab.default},{key:1,label:I18N.TextToolbar.styleType.tab.appear}],[]);(0,a.useEffect)(()=>{Ki&&zi(1)},[Ki,zi]);const ql=(0,a.useMemo)(()=>_i?[{key:"fill_drak",label:I18N.TextToolbar.button.styleType.fill_drak},{key:"fill_light",label:I18N.TextToolbar.button.styleType.fill_light},{key:"border",label:I18N.TextToolbar.button.styleType.border},{key:"border_dashed",label:I18N.TextToolbar.button.styleType.border_dashed},{key:"ghost",label:I18N.TextToolbar.button.styleType.ghost},{key:"text",label:I18N.TextToolbar.button.styleType.text}]:[{key:"border",label:I18N.TextToolbar.shape.styleType.border},{key:"fill",label:I18N.TextToolbar.shape.styleType.fill},{key:"ghost",label:I18N.TextToolbar.shape.styleType.ghost},{key:"border_dashed",label:I18N.TextToolbar.shape.styleType.border_dashed}],[_i]),dc=(0,a.useMemo)(()=>{const Ui=ql.find(Ns=>Ns.key===qi);return Ui?Ui.label:I18N.TextToolbar.button.styleType.none},[qi,ql]),Hl=(0,a.useCallback)(Ui=>{const Ns=_s[5];return{fill_drak:{background:Ns,color:"#ffffff"},fill_light:{background:_s[0],color:Ns},border:{background:"#ffffff",color:Ns,borderColor:Ns},border_dashed:{background:"#ffffff",color:Ns,borderColor:Ns},ghost:{color:Ns,borderColor:Ns},text:{color:Ns}}[Ui]||{}},[_s]),gd=(0,a.useCallback)(()=>{var Ui;if(!(Si!=null&&Si.current))return{left:0,top:0};const{top:Ns,right:Uc}=Si==null||(Ui=Si.current)==null?void 0:Ui.getBoundingClientRect();return{left:Uc+2,top:_i?Ns-40:Ns}},[Si,_i]),ss=(0,a.useCallback)(Ui=>{let{value:Ns,attr:Uc}=Ui;switch(Uc){case"fill":case"border":rr({type:"entry:widget:change",payload:{flatChgList:[{key:wt.key,hotAttr:{[Uc]:Ns}}]}});break;case"color":Qa("color",(0,Xe.t0)(Ns));default:break}},[rr,Qa,wt.key]),fs=(0,a.useCallback)(Ui=>{rr({type:"entry:widget:change",payload:{flatChgList:[{key:wt.key,hotAttr:{styleType:Ui}}]}});const Uc={border:{fill:{fillIsVisible:!0,fill:"solid",solidColor:A0[0]},border:{...ii,bdrIsVisible:!0,bdrColor:A0[2],bdrStyle:"solid"}},fill:{fill:{fillIsVisible:!0,fill:"solid",solidColor:A0[1]},border:{...ii,bdrIsVisible:!1,bdrColor:A0[2]}},ghost:{fill:{fillIsVisible:!1,fill:"solid",solidColor:A0[0]},border:{...ii,bdrIsVisible:!0,bdrColor:A0[2],bdrStyle:"solid"}},border_dashed:{fill:{fillIsVisible:!0,fill:"solid",solidColor:A0[0]},border:{...ii,bdrIsVisible:!0,bdrStyle:"dashed",bdrColor:A0[2]}}}[Ui];Uc&&(ss({attr:"fill",value:Uc.fill}),ss({attr:"border",value:Uc.border}),ss({attr:"color",value:A0[3]}),Ii())},[rr,wt.key,ii,ss,Ii]),Wi=(0,a.useCallback)(Ui=>{var Ns,Uc;_i?hl(Ui):fs(Ui),(Ns=Zr.current)==null||(Uc=Ns.close)==null||Uc.call(Ns)},[_i,hl,fs,Zr]),es=()=>{const Ui=gd();rr({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Ui,type:"create",...(0,To.xe)([wt.key])}}})},xs=()=>{var Ui;if(!(Si!=null&&Si.current)||Ye==="bottom")return;const{height:Ns}=Si==null||(Ui=Si.current)==null?void 0:Ui.getBoundingClientRect();Ta(-(Ns+40+7))};return(0,m.jsx)(C.A,{ref:Zr,title:Ji,top:Ye==="bottom"?40:jr===1?$i:_i?-221:-215,left:_i?ENV.IS_MO?-10:-16:-104,trigger:(0,m.jsx)("div",{className:"trigger-container has-arrow",children:Ki?(0,m.jsx)(S0.O,{canOpenModal:!1}):(0,m.jsxs)("div",{className:"trigger",children:[(0,m.jsx)("span",{className:"title",children:dc}),(0,m.jsx)(Ec.A,{className:"arrow",size:14})]})}),children:(0,m.jsxs)(o2,{className:"content-container fill-style-type-options",children:[(0,m.jsxs)("div",{className:"header",children:[(0,m.jsx)(bp.np,{activeIndex:jr,className:"slide-nav",onTabChange:zi,children:As.map(Ui=>{let{key:Ns,label:Uc}=Ui;return(0,m.jsx)(bp.nl,{label:Uc},Ns)})}),jr===1&&(0,m.jsx)(Bs.A,{content:I18N.libPanel.manage.create_ref.appear,direction:"down",distance:8,children:(0,m.jsx)(jt.C,{className:"add-icon",name:"common/add@24",size:24,onClick:es})})]}),(0,m.jsxs)("div",{className:"bottom-content",children:[jr===0&&(0,m.jsx)("div",{className:M()("default-content",{"shape-style":!_i}),children:ql.map(Ui=>{var Ns;return(0,m.jsx)(Bs.A,{className:"floating-tooltip",content:Ui.label,direction:"down",distance:12,children:(0,m.jsx)("div",{className:M()("button-box",{active:!Ki&&qi===Ui.key},Ui.key),onClick:()=>Wi(Ui.key),children:_i?(0,m.jsx)("div",{className:"inner",style:Hl(Ui.key),children:I18N.TextToolbar.button.styleType.buttonText}):(Ns=A1[Jr])==null?void 0:Ns[Ui.key]})},Ui.key)})}),jr===1&&(0,m.jsx)(ls.A,{type:"appear",ref:Si,isShowCreate:!1,onGetNewEditModalPostion:gd,onDidMount:xs})]})]})})}),wp=(0,a.memo)(ke=>{const{config:Ve,onClick:Ye,active:wt}=ke,{icon:Ua,isShowUploadFile:za,...Qa}=Ve,rr=(0,a.useRef)(null),Ji=(qi,jr)=>{za?rr!=null&&rr.current&&(rr==null||rr.current.click()):Ye(qi,jr)},Jr=qi=>{const jr=qi.target.files[0];rr!=null&&rr.current&&(rr.current.value="",rr.current.setAttribute("value",""),Ye(jr))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(cs.A,{...Qa,active:wt,onClick:Ji,children:Ua}),za&&(0,m.jsx)("input",{ref:rr,type:"file",onChange:Jr,hidden:!0,multiple:!0,accept:"image/*"})]})}),a0=ke=>{var Ve;return(0,m.jsx)("div",{className:M()("draft-separator-h",ke==null||(Ve=ke.config)==null?void 0:Ve.className)})},M0=ke=>{var Ve;return(0,m.jsx)("div",{className:M()("draft-separator-v",ke==null||(Ve=ke.config)==null?void 0:Ve.className)})}},31891:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 5.75C4 5.33579 4.33579 5 4.75 5H19.25C19.6642 5 20 5.33579 20 5.75C20 6.16421 19.6642 6.5 19.25 6.5H4.75C4.33579 6.5 4 6.16421 4 5.75Z",fill:"#19191A"}),a.createElement("path",{d:"M10 11.75C10 11.3358 10.3358 11 10.75 11H19.25C19.6642 11 20 11.3358 20 11.75C20 12.1642 19.6642 12.5 19.25 12.5H10.75C10.3358 12.5 10 12.1642 10 11.75Z",fill:"#19191A"}),a.createElement("path",{d:"M4 17.75C4 17.3358 4.33579 17 4.75 17H19.25C19.6642 17 20 17.3358 20 17.75C20 18.1642 19.6642 18.5 19.25 18.5H4.75C4.33579 18.5 4 18.1642 4 17.75Z",fill:"#19191A"}))})},32060:(eo,ot,i)=>{"use strict";i.d(ot,{CK:()=>J,WM:()=>O,Wq:()=>D,iX:()=>l});var a=i(79287),k=i.n(a),M=i(93413),P=i(29187),C=i(34860);const q="2024-02-27",Y=()=>{var m;return dayjs((m=MB.user)==null?void 0:m.created_at).isBefore(dayjs(q))},J=()=>{var m;const E=(m=MB)==null?void 0:m.user;if(!!!(E!=null&&E.id)||ENV.IS_MO)return!1;const h=(0,C.OB)(),S=24*60*60*1e3,V=new Date().getTime(),We=new Date(E.created_at).getTime();return V-7*S>We||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309_TASK_5)||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE)||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_2309_CLICK_SHARE)||h?!1:!MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309_START)},O=()=>{var m;const E=(m=MB)==null?void 0:m.user;if(!!!(E!=null&&E.id)||ENV.IS_MO)return!1;const h=(0,C.OB)(),S=24*60*60*1e3,V=new Date().getTime(),We=new Date(E.created_at).getTime();return!(V-7*S>We||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309_TASK_4)||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_2407_PREVIEW_CLOSE)||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_2407_PREVIEW)||h&&!MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309)&&!(0,P.p7)())},l=()=>{const m=(0,P.Po)();if(m!=null&&m.isAllGuidesCompleted){if(MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2408_CREATE_PAGE)||MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_NOVICE_2309_TASK_1))return;MB.commonGuideHelper.tryToShowGuide(M.c.GUIDE_NOVICE_2408_CREATE_PAGE),MB.action("entry:move:screen:right")}},D=m=>m?k()(m.created_at).isBefore(k()("2025-06-03")):!1},32267:(eo,ot,i)=>{"use strict";i.d(ot,{T:()=>a});const a=k=>{var M,P;let{activePageKey:C,activeCanvasKey:q,previewOptions:Y,windowSize:J={width:window.innerWidth,height:window.innerHeight}}=k;const O=(M=sdkStore.getHotItem(C))==null?void 0:M.hotAttr,l=(P=sdkStore.getHotItem(q))==null?void 0:P.hotAttr;if(!O||!l)return{};const{isMobile:D}=Y,m=D;let E;if(m){const f=J,h=f.width,S=f.height,V=h/l.w,We=l.w;let re=S,ve=0;l.h*V<S&&(re=l.h*V,ve=Math.floor(Math.max((S-re)/2,0))),l.w===O.w&&f.width<f.height&&(re=Math.min(O.h*V,S),ve=Math.floor(Math.max((S-re)/2,0))),E={width:We,height:re/V,transform:"scale("+V+")",marginTop:ve}}return E}},33394:(eo,ot,i)=>{"use strict";i.d(ot,{b:()=>M,u:()=>P});var a=i(67787),k=i(89208);const M=a.Ay.div.withConfig({displayName:"styles__StyledSTCommentSwitchHeader",componentId:"sc-24q1pa-0"})(["width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.tab-container{display:inline-flex;align-items:center;}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";margin-right:6px;&:hover,&:active{color:",";}}"],C=>C.theme.color_bg_border_01,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_text_L2,C=>C.theme.color_text_L1),P=(0,a.Ay)(k.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-24q1pa-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;"])},33674:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M18.2579 7.21973C18.5507 6.92691 19.0255 6.92705 19.3184 7.21973C19.6112 7.51263 19.6113 7.98743 19.3184 8.28027L10.8331 16.7656C10.6925 16.9062 10.5016 16.9853 10.3028 16.9854C10.1041 16.9853 9.91309 16.9061 9.77252 16.7656L4.6817 11.6748C4.38884 11.3819 4.38891 10.9072 4.6817 10.6143C4.97459 10.3214 5.44936 10.3214 5.74225 10.6143L10.3028 15.1748L18.2579 7.21973Z",fill:"#19191A"}))})},33704:(eo,ot,i)=>{"use strict";i.d(ot,{Sh:()=>k,dM:()=>a,m7:()=>M,qT:()=>q,vj:()=>C});function a(Y){const{avatar:J,name:O,email:l,mobile:D,cid:m,id:E}=Y||{},f=O||l||D||m,h=J||"";return{isDefaultAvatar:h.includes("/images/avatar.png"),name:f,avatarUrl:h,id:E}}function k(Y){const{logo:J,name:O,cid:l}=Y||{},D=!J,m=Number(l.split("").filter(E=>parseInt(E)).join(""))||0;return{isDefaultAvatar:D,name:O,avatarUrl:J,id:m}}function M(Y){const{logo:J,name:O,cid:l}=Y||{},D=!J,m=Number(l.split("").filter(E=>parseInt(E)).join(""))||0;return{isDefaultAvatar:D,name:O,avatarUrl:J,id:m}}const P=["#64b6fa","#a088ff","#5ad5c6","#da89f1"];function C(Y){return Y?P[Y%P.length]:P[0]}function q(Y){return{backgroundColor:Y,border:"1px solid rgba(18, 17, 42, 0.07)"}}},34428:(eo,ot,i)=>{"use strict";i.d(ot,{CW:()=>q,Xw:()=>D,er:()=>E,ke:()=>m,lp:()=>C,qd:()=>l,tP:()=>Y});const a=300,k=1200,M=240,P=800,C=50,q=480,Y=480,J=P-C,O=J/k,l=(f,h,S)=>{const V=document.querySelector(".main-content");if(!V)return;const We=V.getBoundingClientRect(),{top:re,left:ve,width:we,height:Ae}=f,Oe={left:ve,top:re};let Be={width:we,height:Ae};if(["tl","tr","bl","br"].includes(h)){if((we<a||we>k)&&(Ae<M||Ae>P))return;const tt=Math.min(Math.max(we,a),k),Xe=Math.min(Math.max(Ae,M),P);Oe.left=Math.max(We.left,Math.min(ve,We.right-tt)),Oe.top=Math.max(We.top,Math.min(re,We.bottom-Xe)),Be={width:tt,height:Xe}}else{if(we<a||we>k||Ae<M||Ae>P)return;Oe.left=Math.max(We.left,Math.min(ve,We.right-we)),Oe.top=Math.max(We.top,Math.min(re,We.bottom-Ae))}S({...Be,...Oe})},D=(f,h)=>{let{width:S,height:V}=f;const{width:We,height:re}=h,ve=re/We;let we=S,Ae=V;return(S>k||V>J)&&(ve>=O?(we=J/re*We,Ae=J):(we=k,Ae=k/We*re)),{width:Math.min(Math.max(we,a),k),height:Math.min(Math.max(Ae,M),P)}},m=()=>{const f=document.getElementById("IBOT_MODAL_ROOT")||Object.assign(document.createElement("div"),{id:"IBOT_MODAL_ROOT"});return document.body.contains(f)||document.body.appendChild(f),f},E={CanvasModal:"preview-canvas-modal",ComboModal:"preview-combo-modal",PanelModal:"preview-panel-modal"}},34567:(eo,ot,i)=>{"use strict";i.d(ot,{e:()=>q});var a=i(16454),k=i(20640),M=i(85584),P=i(56202);const C=l=>{const{screenTreeData:D,dataMap:m}=(0,k.tb)(l),E=[];(0,M.sV)(D,h=>{const S=h.data;S&&!(0,M.Mo)(S)&&E.push(S),S&&S.parent_cid&&m[S.parent_cid]&&(0,M.Mo)(m[S.parent_cid])&&(S.parent_cid=m[S.parent_cid].parent_cid)});const f={};for(const h of E){const S=m[h.parent_cid],V=S&&S.cid!==h.cid?S.cid:"root";f[V]=f[V]||[],f[V].push(h)}for(const h of Object.values(f))h.forEach((S,V)=>{S&&S.position!==0+V&&(S.position=0+V)});return E},q=()=>{const l=f=>{let{type:h,payload:S}=f;try{return J[h]&&J[h]({type:h,payload:S})}catch(V){console.warn("[request] error message data",V,h,S)}},D=function(f,h,S){h===void 0&&(h={}),S===void 0&&(S="*"),!(!window.ReactNativeWebView&&!window.parent)&&(f&&window.ReactNativeWebView?window.ReactNativeWebView.postMessage(JSON.stringify({event:f,payload:h})):f&&window.parent.postMessage(JSON.stringify({event:f,payload:h}),S))},m=f=>{if(!(f.source===window||f.origin.includes("qiyukf")||!f.data||typeof f.data!="string"))try{const{event:h,type:S=h,payload:V={}}=JSON.parse(f.data),We=l({type:S,payload:V});We&&D(We.type,We.payload)}catch(h){console.warn("[receive] error message data",h,f)}},E=()=>window.removeEventListener("message",m);return(0,P.m0)()?document.addEventListener("message",m):window.addEventListener("message",m),{request:l,send:D,clear:E}},Y={"preview-ready":!1},J={"message:get:record":()=>({type:"message:data:record",payload:Y}),"message:set:record":l=>{let{payload:{key:D,value:m}}=l;Y[D]=m},"message:get:preview-state":()=>{const{state:l,isHighlight:D}=O();return{type:"message:data:preview-state",payload:{screenCid:l.container.current.screenMeta.cid,isHighlight:D}}},"message:set:preview-state":l=>{let{payload:{isHighlight:D,screenCid:m}}=l;const{state:{model:{screens:E},container:{current:{screenMeta:f}}},dispatch:h}=O();if(D!==void 0&&h({type:"reducer:preview-toolbar:update:highlight",payload:{isHighlight:D}}),f.cid&&m!==void 0&&m!==f.cid){if(!E.find(S=>S.cid===m))return console.warn("[message:set:preview-state] invalid screenCid");h({type:"entry:sync-runner:set-screen",payload:{cid:m}})}},"message:get:screen-list":()=>{const l=MB.webpackInterface.store.getState(),D=(0,a.PL)(l).cid,m=(0,a.Qv)(l);return{type:"message:data:screen-list",payload:C(m.concat()).map(h=>{let{cid:S,name:V,position:We,parent_cid:re}=h;return{cid:S,name:V,position:We,parent_cid:re,project_cid:D}})}},"message:get:notification-state":()=>{const{notifications:l}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-state",payload:{unreadCount:l?l.notifications.unreadNum:0}}},"message:get:notification-list":()=>{const{notifications:l}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-list",payload:l?l.notifications.notifications:[]}},"message:get:app:init:status":l=>{let{payload:{version:D,isDummyApk:m=!1}}=l;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{appVersion:D,isDummyApk:m}})}},O=()=>{const{getState:l,dispatch:D}=MB.webpackInterface.store,m=l(),E=(0,a.Re)(m);return{dispatch:D,state:m,isHighlight:E}}},34602:(eo,ot,i)=>{"use strict";i.d(ot,{q:()=>a});const a=k=>{const M=window.getComputedStyle(k),P=new DOMMatrixReadOnly(M.transform);return{translateX:P.m41,translateY:P.m42}}},34835:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=function(){function D(m,E){for(var f=0;f<E.length;f++){var h=E[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}return function(m,E,f){return E&&D(m.prototype,E),f&&D(m,f),m}}(),k=i(38502),M=q(k),P=i(25582),C=q(P);function q(D){return D&&D.__esModule?D:{default:D}}function Y(D,m){if(!(D instanceof m))throw new TypeError("Cannot call a class as a function")}function J(D,m){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:D}function O(D,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);D.prototype=Object.create(m&&m.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(D,m):D.__proto__=m)}var l=function(D){O(m,D);function m(){return Y(this,m),J(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"render",value:function(){return M.default.createElement("table",{className:this.props.className},M.default.createElement("tbody",null,this.props.children))}}]),m}(k.PureComponent);l.propTypes={className:C.default.string,data:C.default.array.isRequired},ot.default=l},35125:(eo,ot,i)=>{"use strict";i.d(ot,{C:()=>k,b:()=>M});var a=i(48150);function k(P){return(0,a.oX)(P,{inputAffixPadding:P.paddingXXS})}const M=P=>{const{controlHeight:C,fontSize:q,lineHeight:Y,lineWidth:J,controlHeightSM:O,controlHeightLG:l,fontSizeLG:D,lineHeightLG:m,paddingSM:E,controlPaddingHorizontalSM:f,controlPaddingHorizontal:h,colorFillAlter:S,colorPrimaryHover:V,colorPrimary:We,controlOutlineWidth:re,controlOutline:ve,colorErrorOutline:we,colorWarningOutline:Ae,colorBgContainer:Oe,inputFontSize:Be,inputFontSizeLG:tt,inputFontSizeSM:Xe}=P,ne=Be||q,lt=Xe||ne,rt=tt||D,Te=Math.round((C-ne*Y)/2*10)/10-J,Ge=Math.round((O-lt*Y)/2*10)/10-J,ue=Math.ceil((l-rt*m)/2*10)/10-J;return{paddingBlock:Math.max(Te,0),paddingBlockSM:Math.max(Ge,0),paddingBlockLG:Math.max(ue,0),paddingInline:E-J,paddingInlineSM:f-J,paddingInlineLG:h-J,addonBg:S,activeBorderColor:We,hoverBorderColor:V,activeShadow:"0 0 0 "+re+"px "+ve,errorActiveShadow:"0 0 0 "+re+"px "+we,warningActiveShadow:"0 0 0 "+re+"px "+Ae,hoverBg:Oe,activeBg:Oe,inputFontSize:ne,inputFontSizeLG:rt,inputFontSizeSM:lt}}},35658:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M38.9443 21.998L39.0615 22.2803L39.3662 22.3047L57.3916 23.749L43.6582 35.5137L43.4258 35.7129L43.4971 36.0098L47.6924 53.5986L32.2607 44.1729L32 44.0137L31.7393 44.1729L16.3066 53.5986L20.5029 36.0098L20.5742 35.7129L20.3418 35.5137L6.60742 23.749L24.6338 22.3047L24.9385 22.2803L25.0557 21.998L32 5.30273L38.9443 21.998Z",fill:"white",stroke:"#8B8C8F"}))})},36221:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=i(25582),k=M(a);function M(C){return C&&C.__esModule?C:{default:C}}var P={readOnly:k.default.bool,key:k.default.string,className:k.default.string,component:k.default.oneOfType([k.default.element,k.default.func]),forceComponent:k.default.bool,disableEvents:k.default.bool,disableUpdatedFlag:k.default.bool,colSpan:k.default.number,rowSpan:k.default.number,width:k.default.oneOfType([k.default.number,k.default.string]),overflow:k.default.oneOf(["wrap","nowrap","clip"]),dataEditor:k.default.func,valueViewer:k.default.func};ot.default=P},36315:(eo,ot,i)=>{var a=i(92898);function k(M){var P=a(M),C=P%1;return P===P?C?P-C:P:0}eo.exports=k},36466:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Sa});var a=i(38502),k=i(63296),M=i(94586),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const C=P;var q=i(40080),Y=function(ta,ko){return a.createElement(q.A,(0,M.A)({},ta,{ref:ko,icon:C}))},J=a.forwardRef(Y);const O=J;var l=i(53732),D=i.n(l),m=i(59063),E=i(77172),f=i(18767),h=i(94815),S=i(13199),V=i(21425),We=i(79544),re=function(ta){if((0,We.A)()&&window.document.documentElement){var ko=Array.isArray(ta)?ta:[ta],bo=window.document.documentElement;return ko.some(function(aa){return aa in bo.style})}return!1},ve=function(ta,ko){if(!re(ta))return!1;var bo=document.createElement("div"),aa=bo.style[ta];return bo.style[ta]=ko,bo.style[ta]!==aa};function we(ln,ta){return!Array.isArray(ln)&&ta!==void 0?ve(ln,ta):re(ln)}var Ae=i(46757),Oe=i(34321),Be=i(20366),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Xe=tt;var ne=function(ta,ko){return a.createElement(q.A,(0,M.A)({},ta,{ref:ko,icon:Xe}))},lt=a.forwardRef(ne);const rt=lt;var Te=i(49358),Ge=i(67916),ue=i(52401),Me=i(55095),Ze=i(58196),fe=i(59640),it=i(61972);const et=(ln,ta,ko,bo)=>{const{titleMarginBottom:aa,fontWeightStrong:ma}=bo;return{marginBottom:aa,color:ko,fontWeight:ma,fontSize:ln,lineHeight:ta}},Ut=ln=>{const ta=[1,2,3,4,5],ko={};return ta.forEach(bo=>{ko["\n h"+bo+"&,\n div&-h"+bo+",\n div&-h"+bo+" > textarea,\n h"+bo+"\n "]=et(ln["fontSizeHeading"+bo],ln["lineHeightHeading"+bo],ln.colorTextHeading,ln)}),ko},G=ln=>{const{componentCls:ta}=ln;return{"a&, a":Object.assign(Object.assign({},(0,Me.Y1)(ln)),{userSelect:"text",["&[disabled], &"+ta+"-disabled"]:{color:ln.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:ln.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Ht=ln=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:ln.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:ln.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:fe.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:ln.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:ln.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Tt=ln=>{const{componentCls:ta,paddingSM:ko}=ln,bo=ko;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:ln.calc(ln.paddingSM).mul(-1).equal(),marginTop:ln.calc(bo).mul(-1).equal(),marginBottom:"calc(1em - "+(0,it.zA)(bo)+")"},[ta+"-edit-content-confirm"]:{position:"absolute",insetInlineEnd:ln.calc(ln.marginXS).add(2).equal(),insetBlockEnd:ln.marginXS,color:ln.colorIcon,fontWeight:"normal",fontSize:ln.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Vt=ln=>({[ln.componentCls+"-copy-success"]:{"\n &,\n &:hover,\n &:focus":{color:ln.colorSuccess}},[ln.componentCls+"-copy-icon-only"]:{marginInlineStart:0}}),He=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),rn=ln=>{const{componentCls:ta,titleMarginTop:ko}=ln;return{[ta]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:ln.colorText,wordBreak:"break-word",lineHeight:ln.lineHeight,["&"+ta+"-secondary"]:{color:ln.colorTextDescription},["&"+ta+"-success"]:{color:ln.colorSuccessText},["&"+ta+"-warning"]:{color:ln.colorWarningText},["&"+ta+"-danger"]:{color:ln.colorErrorText,"a&:active, a&:focus":{color:ln.colorErrorTextActive},"a&:hover":{color:ln.colorErrorTextHover}},["&"+ta+"-disabled"]:{color:ln.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Ut(ln)),{["\n & + h1"+ta+",\n & + h2"+ta+",\n & + h3"+ta+",\n & + h4"+ta+",\n & + h5"+ta+"\n "]:{marginTop:ko},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:ko}}}),Ht(ln)),G(ln)),{["\n "+ta+"-expand,\n "+ta+"-collapse,\n "+ta+"-edit,\n "+ta+"-copy\n "]:Object.assign(Object.assign({},(0,Me.Y1)(ln)),{marginInlineStart:ln.marginXXS})}),Tt(ln)),Vt(ln)),He()),{"&-rtl":{direction:"rtl"}})}},Lt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),jt=(0,Ze.OF)("Typography",ln=>[rn(ln)],Lt),Jn=ln=>{const{prefixCls:ta,"aria-label":ko,className:bo,style:aa,direction:ma,maxLength:dr,autoSize:ni=!0,value:Ir,onSave:$a,onCancel:Va,onEnd:Ha,component:or,enterIcon:gi=a.createElement(rt,null)}=ln,Qr=a.useRef(null),Qi=a.useRef(!1),rs=a.useRef(null),[Li,ns]=a.useState(Ir);a.useEffect(()=>{ns(Ir)},[Ir]),a.useEffect(()=>{var Ar;if(!((Ar=Qr.current)===null||Ar===void 0)&&Ar.resizableTextArea){const{textArea:zr}=Qr.current.resizableTextArea;zr.focus();const{length:Fr}=zr.value;zr.setSelectionRange(Fr,Fr)}},[]);const Es=Ar=>{let{target:zr}=Ar;ns(zr.value.replace(/[\n\r]/g,""))},ys=()=>{Qi.current=!0},sr=()=>{Qi.current=!1},mi=Ar=>{let{keyCode:zr}=Ar;Qi.current||(rs.current=zr)},Bt=()=>{$a(Li.trim())},vn=Ar=>{let{keyCode:zr,ctrlKey:Fr,altKey:os,metaKey:Ei,shiftKey:Kl}=Ar;rs.current!==zr||Qi.current||Fr||os||Ei||Kl||(zr===Te.A.ENTER?(Bt(),Ha==null||Ha()):zr===Te.A.ESC&&Va())},Io=()=>{Bt()},[No,_a,Ur]=jt(ta),fr=D()(ta,ta+"-edit-content",{[ta+"-rtl"]:ma==="rtl",[ta+"-"+or]:!!or},bo,_a,Ur);return No(a.createElement("div",{className:fr,style:aa},a.createElement(ue.A,{ref:Qr,maxLength:dr,value:Li,onChange:Es,onKeyDown:mi,onKeyUp:vn,onCompositionStart:ys,onCompositionEnd:sr,onBlur:Io,"aria-label":ko,rows:1,autoSize:ni}),gi!==null?(0,Ge.Ob)(gi,{className:ta+"-edit-content-confirm"}):null))};var o=i(46675),so=i.n(o),Et=i(75586);const Ot=function(ln,ta){return ta===void 0&&(ta=!1),ta&&ln==null?[]:Array.isArray(ln)?ln:[ln]};var dn=function(ln,ta,ko,bo){function aa(ma){return ma instanceof ko?ma:new ko(function(dr){dr(ma)})}return new(ko||(ko=Promise))(function(ma,dr){function ni(Va){try{$a(bo.next(Va))}catch(Ha){dr(Ha)}}function Ir(Va){try{$a(bo.throw(Va))}catch(Ha){dr(Ha)}}function $a(Va){Va.done?ma(Va.value):aa(Va.value).then(ni,Ir)}$a((bo=bo.apply(ln,ta||[])).next())})};const Pt=ln=>{let{copyConfig:ta,children:ko}=ln;const[bo,aa]=a.useState(!1),[ma,dr]=a.useState(!1),ni=a.useRef(null),Ir=()=>{ni.current&&clearTimeout(ni.current)},$a={};ta.format&&($a.format=ta.format),a.useEffect(()=>Ir,[]);const Va=(0,Et.A)(Ha=>dn(void 0,void 0,void 0,function*(){var or;Ha==null||Ha.preventDefault(),Ha==null||Ha.stopPropagation(),dr(!0);try{const gi=typeof ta.text=="function"?yield ta.text():ta.text;so()(gi||Ot(ko,!0).join("")||"",$a),dr(!1),aa(!0),Ir(),ni.current=setTimeout(()=>{aa(!1)},3e3),(or=ta.onCopy)===null||or===void 0||or.call(ta,Ha)}catch(gi){throw dr(!1),gi}}));return{copied:bo,copyLoading:ma,onClick:Va}};function Nn(ln,ta){return a.useMemo(()=>{const ko=!!ln;return[ko,Object.assign(Object.assign({},ta),ko&&typeof ln=="object"?ln:null)]},[ln])}const on=ln=>{const ta=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{ta.current=ln}),ta.current},mo=(ln,ta,ko)=>(0,a.useMemo)(()=>ln===!0?{title:ta!=null?ta:ko}:(0,a.isValidElement)(ln)?{title:ln}:typeof ln=="object"?Object.assign({title:ta!=null?ta:ko},ln):{title:ln},[ln,ta,ko]);var mn=function(ln,ta){var ko={};for(var bo in ln)Object.prototype.hasOwnProperty.call(ln,bo)&&ta.indexOf(bo)<0&&(ko[bo]=ln[bo]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,bo=Object.getOwnPropertySymbols(ln);aa<bo.length;aa++)ta.indexOf(bo[aa])<0&&Object.prototype.propertyIsEnumerable.call(ln,bo[aa])&&(ko[bo[aa]]=ln[bo[aa]]);return ko};const Fn=a.forwardRef((ln,ta)=>{const{prefixCls:ko,component:bo="article",className:aa,rootClassName:ma,setContentRef:dr,children:ni,direction:Ir,style:$a}=ln,Va=mn(ln,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Ha,direction:or,className:gi,style:Qr}=(0,Ae.TP)("typography"),Qi=Ir!=null?Ir:or,rs=dr?(0,V.K4)(ta,dr):ta,Li=Ha("typography",ko),[ns,Es,ys]=jt(Li),sr=D()(Li,gi,{[Li+"-rtl"]:Qi==="rtl"},aa,ma,Es,ys),mi=Object.assign(Object.assign({},Qr),$a);return ns(a.createElement(bo,Object.assign({className:sr,style:mi,ref:rs},Va),ni))});var Yt=i(52656),Gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Bn=Gt;var qt=function(ta,ko){return a.createElement(q.A,(0,M.A)({},ta,{ref:ko,icon:Bn}))},Zt=a.forwardRef(qt);const jn=Zt;var ro=i(66147);function Tn(ln){return ln===!1?[!1,!1]:Array.isArray(ln)?ln:[ln]}function bt(ln,ta,ko){return ln===!0||ln===void 0?ta:ln||ko&&ta}function Wt(ln){const ta=document.createElement("em");ln.appendChild(ta);const ko=ln.getBoundingClientRect(),bo=ta.getBoundingClientRect();return ln.removeChild(ta),ko.left>bo.left||bo.right>ko.right||ko.top>bo.top||bo.bottom>ko.bottom}const wn=ln=>["string","number"].includes(typeof ln),In=ln=>{let{prefixCls:ta,copied:ko,locale:bo,iconOnly:aa,tooltips:ma,icon:dr,tabIndex:ni,onCopy:Ir,loading:$a}=ln;const Va=Tn(ma),Ha=Tn(dr),{copied:or,copy:gi}=bo!=null?bo:{},Qr=ko?or:gi,Qi=bt(Va[ko?1:0],Qr),rs=typeof Qi=="string"?Qi:Qr;return a.createElement(Be.A,{title:Qi},a.createElement("button",{type:"button",className:D()(ta+"-copy",{[ta+"-copy-success"]:ko,[ta+"-copy-icon-only"]:aa}),onClick:Ir,"aria-label":rs,tabIndex:ni},ko?bt(Ha[1],a.createElement(Yt.A,null),!0):bt(Ha[0],$a?a.createElement(ro.A,null):a.createElement(jn,null),!0)))},Dn=a.forwardRef((ln,ta)=>{let{style:ko,children:bo}=ln;const aa=a.useRef(null);return a.useImperativeHandle(ta,()=>({isExceed:()=>{const ma=aa.current;return ma.scrollHeight>ma.clientHeight},getHeight:()=>aa.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:aa,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},ko)},bo)}),So=ln=>ln.reduce((ta,ko)=>ta+(wn(ko)?String(ko).length:1),0);function Qt(ln,ta){let ko=0;const bo=[];for(let aa=0;aa<ln.length;aa+=1){if(ko===ta)return bo;const ma=ln[aa],ni=wn(ma)?String(ma).length:1,Ir=ko+ni;if(Ir>ta){const $a=ta-ko;return bo.push(String(ma).slice(0,$a)),bo}bo.push(ma),ko=Ir}return ln}const Ln=0,Mn=1,Rt=2,Qe=3,En=4,qn={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Hn(ln){const{enableMeasure:ta,width:ko,text:bo,children:aa,rows:ma,expanded:dr,miscDeps:ni,onEllipsis:Ir}=ln,$a=a.useMemo(()=>(0,E.A)(bo),[bo]),Va=a.useMemo(()=>So($a),[bo]),Ha=a.useMemo(()=>aa($a,!1),[bo]),[or,gi]=a.useState(null),Qr=a.useRef(null),Qi=a.useRef(null),rs=a.useRef(null),Li=a.useRef(null),ns=a.useRef(null),[Es,ys]=a.useState(!1),[sr,mi]=a.useState(Ln),[Bt,vn]=a.useState(0),[Io,No]=a.useState(null);(0,f.A)(()=>{mi(ta&&ko&&Va?Mn:Ln)},[ko,bo,ma,ta,$a]),(0,f.A)(()=>{var Ar,zr,Fr,os;if(sr===Mn){mi(Rt);const Ei=Qi.current&&getComputedStyle(Qi.current).whiteSpace;No(Ei)}else if(sr===Rt){const Ei=!!(!((Ar=rs.current)===null||Ar===void 0)&&Ar.isExceed());mi(Ei?Qe:En),gi(Ei?[0,Va]:null),ys(Ei);const Kl=((zr=rs.current)===null||zr===void 0?void 0:zr.getHeight())||0,as=ma===1?0:((Fr=Li.current)===null||Fr===void 0?void 0:Fr.getHeight())||0,al=((os=ns.current)===null||os===void 0?void 0:os.getHeight())||0,pd=Math.max(Kl,as+al);vn(pd+1),Ir(Ei)}},[sr]);const _a=or?Math.ceil((or[0]+or[1])/2):0;(0,f.A)(()=>{var Ar;const[zr,Fr]=or||[0,0];if(zr!==Fr){const Ei=(((Ar=Qr.current)===null||Ar===void 0?void 0:Ar.getHeight())||0)>Bt;let Kl=_a;Fr-zr===1&&(Kl=Ei?zr:Fr),gi(Ei?[zr,Kl]:[Kl,Fr])}},[or,_a]);const Ur=a.useMemo(()=>{if(!ta)return aa($a,!1);if(sr!==Qe||!or||or[0]!==or[1]){const Ar=aa($a,!1);return[En,Ln].includes(sr)?Ar:a.createElement("span",{style:Object.assign(Object.assign({},qn),{WebkitLineClamp:ma})},Ar)}return aa(dr?$a:Qt($a,or[0]),Es)},[dr,sr,or,$a].concat((0,k.A)(ni))),fr={width:ko,margin:0,padding:0,whiteSpace:Io==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,Ur,sr===Rt&&a.createElement(a.Fragment,null,a.createElement(Dn,{style:Object.assign(Object.assign(Object.assign({},fr),qn),{WebkitLineClamp:ma}),ref:rs},Ha),a.createElement(Dn,{style:Object.assign(Object.assign(Object.assign({},fr),qn),{WebkitLineClamp:ma-1}),ref:Li},Ha),a.createElement(Dn,{style:Object.assign(Object.assign(Object.assign({},fr),qn),{WebkitLineClamp:1}),ref:ns},aa([],!0))),sr===Qe&&or&&or[0]!==or[1]&&a.createElement(Dn,{style:Object.assign(Object.assign({},fr),{top:400}),ref:Qr},aa(Qt($a,_a),!0)),sr===Mn&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:Qi}))}const oo=ln=>{let{enableEllipsis:ta,isEllipsis:ko,children:bo,tooltipProps:aa}=ln;return!(aa!=null&&aa.title)||!ta?bo:a.createElement(Be.A,Object.assign({open:ko?void 0:!1},aa),bo)};var To=function(ln,ta){var ko={};for(var bo in ln)Object.prototype.hasOwnProperty.call(ln,bo)&&ta.indexOf(bo)<0&&(ko[bo]=ln[bo]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,bo=Object.getOwnPropertySymbols(ln);aa<bo.length;aa++)ta.indexOf(bo[aa])<0&&Object.prototype.propertyIsEnumerable.call(ln,bo[aa])&&(ko[bo[aa]]=ln[bo[aa]]);return ko};function po(ln,ta){let{mark:ko,code:bo,underline:aa,delete:ma,strong:dr,keyboard:ni,italic:Ir}=ln,$a=ta;function Va(Ha,or){or&&($a=a.createElement(Ha,{},$a))}return Va("strong",dr),Va("u",aa),Va("del",ma),Va("code",bo),Va("mark",ko),Va("kbd",ni),Va("i",Ir),$a}const Oo="...",Qo=["delete","mark","code","underline","strong","keyboard","italic"],_n=a.forwardRef((ln,ta)=>{var ko;const{prefixCls:bo,className:aa,style:ma,type:dr,disabled:ni,children:Ir,ellipsis:$a,editable:Va,copyable:Ha,component:or,title:gi}=ln,Qr=To(ln,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:Qi,direction:rs}=a.useContext(Ae.QO),[Li]=(0,Oe.A)("Text"),ns=a.useRef(null),Es=a.useRef(null),ys=Qi("typography",bo),sr=(0,S.A)(Qr,Qo),[mi,Bt]=Nn(Va),[vn,Io]=(0,h.A)(!1,{value:Bt.editing}),{triggerType:No=["icon"]}=Bt,_a=la=>{var Go;la&&((Go=Bt.onStart)===null||Go===void 0||Go.call(Bt)),Io(la)},Ur=on(vn);(0,f.A)(()=>{var la;!vn&&Ur&&((la=Es.current)===null||la===void 0||la.focus())},[vn]);const fr=la=>{la==null||la.preventDefault(),_a(!0)},Ar=la=>{var Go;(Go=Bt.onChange)===null||Go===void 0||Go.call(Bt,la),_a(!1)},zr=()=>{var la;(la=Bt.onCancel)===null||la===void 0||la.call(Bt),_a(!1)},[Fr,os]=Nn(Ha),{copied:Ei,copyLoading:Kl,onClick:as}=Pt({copyConfig:os,children:Ir}),[al,pd]=a.useState(!1),[Cd,wc]=a.useState(!1),[ba,$r]=a.useState(!1),[Ni,Bs]=a.useState(!1),[Ec,ps]=a.useState(!0),[Yl,ls]=Nn($a,{expandable:!1,symbol:la=>la?Li==null?void 0:Li.collapse:Li==null?void 0:Li.expand}),[wl,Sc]=(0,h.A)(ls.defaultExpanded||!1,{value:ls.expanded}),lc=Yl&&(!wl||ls.expandable==="collapsible"),{rows:Ic=1}=ls,Gc=a.useMemo(()=>lc&&(ls.suffix!==void 0||ls.onEllipsis||ls.expandable||mi||Fr),[lc,ls,mi,Fr]);(0,f.A)(()=>{Yl&&!Gc&&(pd(we("webkitLineClamp")),wc(we("textOverflow")))},[Gc,Yl]);const[mc,Zc]=a.useState(lc),gc=a.useMemo(()=>Gc?!1:Ic===1?Cd:al,[Gc,Cd,al]);(0,f.A)(()=>{Zc(gc&&lc)},[gc,lc]);const Fo=lc&&(mc?Ni:ba),Ca=lc&&Ic===1&&mc,ya=lc&&Ic>1&&mc,Ba=(la,Go)=>{var ir;Sc(Go.expanded),(ir=ls.onExpand)===null||ir===void 0||ir.call(ls,la,Go)},[Xa,Kt]=a.useState(0),Vn=la=>{let{offsetWidth:Go}=la;Kt(Go)},io=la=>{var Go;$r(la),ba!==la&&((Go=ls.onEllipsis)===null||Go===void 0||Go.call(ls,la))};a.useEffect(()=>{const la=ns.current;if(Yl&&mc&&la){const Go=Wt(la);Ni!==Go&&Bs(Go)}},[Yl,mc,Ir,ya,Ec,Xa]),a.useEffect(()=>{const la=ns.current;if(typeof IntersectionObserver>"u"||!la||!mc||!lc)return;const Go=new IntersectionObserver(()=>{ps(!!la.offsetParent)});return Go.observe(la),()=>{Go.disconnect()}},[mc,lc]);const Wn=mo(ls.tooltip,Bt.text,Ir),$n=a.useMemo(()=>{if(!(!Yl||mc))return[Bt.text,Ir,gi,Wn.title].find(wn)},[Yl,mc,gi,Wn.title,Fo]);if(vn)return a.createElement(Jn,{value:(ko=Bt.text)!==null&&ko!==void 0?ko:typeof Ir=="string"?Ir:"",onSave:Ar,onCancel:zr,onEnd:Bt.onEnd,prefixCls:ys,className:aa,style:ma,direction:rs,component:or,maxLength:Bt.maxLength,autoSize:Bt.autoSize,enterIcon:Bt.enterIcon});const Vo=()=>{const{expandable:la,symbol:Go}=ls;return la?a.createElement("button",{type:"button",key:"expand",className:ys+"-"+(wl?"collapse":"expand"),onClick:ir=>Ba(ir,{expanded:!wl}),"aria-label":wl?Li.collapse:Li==null?void 0:Li.expand},typeof Go=="function"?Go(wl):Go):null},Do=()=>{if(!mi)return;const{icon:la,tooltip:Go,tabIndex:ir}=Bt,tr=(0,E.A)(Go)[0]||(Li==null?void 0:Li.edit),wr=typeof tr=="string"?tr:"";return No.includes("icon")?a.createElement(Be.A,{key:"edit",title:Go===!1?"":tr},a.createElement("button",{type:"button",ref:Es,className:ys+"-edit",onClick:fr,"aria-label":wr,tabIndex:ir},la||a.createElement(O,{role:"button"}))):null},Bo=()=>Fr?a.createElement(In,Object.assign({key:"copy"},os,{prefixCls:ys,copied:Ei,locale:Li,onCopy:as,loading:Kl,iconOnly:Ir==null})):null,Ro=la=>[la&&Vo(),Do(),Bo()],Pa=la=>[la&&!wl&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Oo),ls.suffix,Ro(la)];return a.createElement(m.A,{onResize:Vn,disabled:!lc},la=>a.createElement(oo,{tooltipProps:Wn,enableEllipsis:lc,isEllipsis:Fo},a.createElement(Fn,Object.assign({className:D()({[ys+"-"+dr]:dr,[ys+"-disabled"]:ni,[ys+"-ellipsis"]:Yl,[ys+"-ellipsis-single-line"]:Ca,[ys+"-ellipsis-multiple-line"]:ya},aa),prefixCls:bo,style:Object.assign(Object.assign({},ma),{WebkitLineClamp:ya?Ic:void 0}),component:or,ref:(0,V.K4)(la,ns,ta),direction:rs,onClick:No.includes("text")?fr:void 0,"aria-label":$n==null?void 0:$n.toString(),title:gi},sr),a.createElement(Hn,{enableMeasure:lc&&!mc,text:Ir,rows:Ic,width:Xa,onEllipsis:io,expanded:wl,miscDeps:[Ei,wl,Kl,mi,Fr,Li].concat((0,k.A)(Qo.map(Go=>ln[Go])))},(Go,ir)=>po(ln,a.createElement(a.Fragment,null,Go.length>0&&ir&&!wl&&$n?a.createElement("span",{key:"show-content","aria-hidden":!0},Go):Go,Pa(ir)))))))});var Un=function(ln,ta){var ko={};for(var bo in ln)Object.prototype.hasOwnProperty.call(ln,bo)&&ta.indexOf(bo)<0&&(ko[bo]=ln[bo]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,bo=Object.getOwnPropertySymbols(ln);aa<bo.length;aa++)ta.indexOf(bo[aa])<0&&Object.prototype.propertyIsEnumerable.call(ln,bo[aa])&&(ko[bo[aa]]=ln[bo[aa]]);return ko};const nn=a.forwardRef((ln,ta)=>{var{ellipsis:ko,rel:bo}=ln,aa=Un(ln,["ellipsis","rel"]);const ma=Object.assign(Object.assign({},aa),{rel:bo===void 0&&aa.target==="_blank"?"noopener noreferrer":bo});return delete ma.navigate,a.createElement(_n,Object.assign({},ma,{ref:ta,ellipsis:!!ko,component:"a"}))}),ho=a.forwardRef((ln,ta)=>a.createElement(_n,Object.assign({ref:ta},ln,{component:"div"})));var Xn=function(ln,ta){var ko={};for(var bo in ln)Object.prototype.hasOwnProperty.call(ln,bo)&&ta.indexOf(bo)<0&&(ko[bo]=ln[bo]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,bo=Object.getOwnPropertySymbols(ln);aa<bo.length;aa++)ta.indexOf(bo[aa])<0&&Object.prototype.propertyIsEnumerable.call(ln,bo[aa])&&(ko[bo[aa]]=ln[bo[aa]]);return ko};const Mo=(ln,ta)=>{var{ellipsis:ko}=ln,bo=Xn(ln,["ellipsis"]);const aa=a.useMemo(()=>ko&&typeof ko=="object"?(0,S.A)(ko,["expandable","rows"]):ko,[ko]);return a.createElement(_n,Object.assign({ref:ta},bo,{ellipsis:aa,component:"span"}))},Zo=a.forwardRef(Mo);var ia=function(ln,ta){var ko={};for(var bo in ln)Object.prototype.hasOwnProperty.call(ln,bo)&&ta.indexOf(bo)<0&&(ko[bo]=ln[bo]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,bo=Object.getOwnPropertySymbols(ln);aa<bo.length;aa++)ta.indexOf(bo[aa])<0&&Object.prototype.propertyIsEnumerable.call(ln,bo[aa])&&(ko[bo[aa]]=ln[bo[aa]]);return ko};const xa=[1,2,3,4,5],zo=a.forwardRef((ln,ta)=>{const{level:ko=1}=ln,bo=ia(ln,["level"]),aa=xa.includes(ko)?"h"+ko:"h1";return a.createElement(_n,Object.assign({ref:ta},bo,{component:aa}))}),Ra=Fn;Ra.Text=Zo,Ra.Link=nn,Ra.Title=zo,Ra.Paragraph=ho;const Sa=Ra},36689:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>D});var a=i(95549),k=i(38502),M=i(53732),P=i.n(M),C=i(82066),q=i(79150),Y=i(25067),J=i(67787);const O=J.Ay.div.withConfig({displayName:"styles__StyledDesignZoomBoxExpand",componentId:"sc-125c6kt-0"})(["display:flex;align-items:center;.zoomBox{display:flex;align-items:center;margin:0 8px;width:111px;height:32px;border:1px solid ",";border-radius:6px;.zoom-control{width:30px;height:30px;&.zoom-out{border-radius:6px 0 0 6px;}&.zoom-in{border-radius:0 6px 6px 0;}svg{width:30px;height:30px;path{fill:",";}}}.zoomBoxExpand{flex:1;width:24px;height:32px;border-radius:0;.zoom-box{line-height:20px;.zoom-scale{flex:1 1 0%;margin-left:2px;font-size:13px;font-weight:400;transform:scale(1);}.zoom-arrow{width:7px;margin-left:7px;margin-right:6px;transform:translateY(0);}}.mac,.others{top:132%;}}&.is-embed-v2:not(.is-fullscreen-mode){width:96px;height:20px;.zoom-control{width:24px;height:20px;svg{width:16px;height:20px;}}.zoomBoxExpand{width:32px;height:20px;border-radius:0;.zoom-main > .zoom-box{.zoom-scale{transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:4px;}}}}}.full-screen-button{width:38px;height:32px;&.small{width:24px !important;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L1);var l=i(72214);class D extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"})),(0,a.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:E}=this.props;E({type:"entry:toolbar:toggle:fullScreen"})})}componentDidMount(){const{isEmbedV2Preview:E,onZoomInitialScale:f}=this.props;E&&f(null)}render(){const{scale:E,fullScreenMode:f,isShowZoomSelection:h,isEmbedV2Preview:S,onZoomSpecifiedScale:V,onZoomIn:We,onZoomOut:re,onZoomInitialScale:ve,onZoomSelection:we}=this.props;return(0,l.jsxs)(O,{children:[(0,l.jsxs)("div",{className:P()("zoomBox",{"is-fullscreen-mode":f,"is-embed-v2":S}),children:[(0,l.jsx)(q.A,{className:"zoom-control zoom-out",onClick:re,name:"common/minus_bold"}),(0,l.jsx)(C.Pd,{scale:E,className:"zoomBoxExpand",isShowZoomSelection:h,onZoomIn:We,onZoomOut:re,onZoomInitialScale:ve,onZoomSpecifiedScale:V,onZoomSelection:we,withDropdownMarker:!1}),(0,l.jsx)(q.A,{className:"zoom-control zoom-in",onClick:We,name:"common/add_bold"})]}),f?(0,l.jsx)(Y.A,{size:32,className:P()("full-screen-button",{small:S&&!f}),svgIconName:"design/collapse_screen",toolTipName:I18N.pPreviewToolbar.exit_fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleExitFullScreenMode}):(0,l.jsx)(Y.A,{size:32,className:P()("full-screen-button",{small:S&&!f}),svgIconName:"design/fullscreen",toolTipName:I18N.pPreviewToolbar.fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleToggleFullScreenMode})]})}}},37754:(eo,ot,i)=>{"use strict";i.d(ot,{P:()=>k});var a=i(19249);const k=async M=>{let{keyword:P,size:C=6,uId:q,projectCid:Y="0",triggerSensitiveWord:J=()=>null}=M;const O={uId:q,upperCid:Y,Q:P,N:C};try{return(await(0,a.zi)("/js-hpr/v8ai2408/pick-image-list?"+new URLSearchParams(O))).map(D=>{const{size:m,sizeThmb:E,imageUrl:f="",imageUrlThmb:h}=D,S=f.split("/").pop().split(".")[0],V=Number.isNaN(Number(S))?S:f;let We=E.w,re=E.h;return We!==200&&(re=Math.floor(200*re/We),We=200),{asset_cid:V,image:f,width:We,height:re,img_tag:[P],copyright:{},size:m,thumb:h,name:"\u793A\u4F8B\u56FE\u7247",group_cid:"",from:""}})}catch(l){return console.log("#### error:",l),l.status===451&&l.errors==="detected illegal text"&&J(),[]}}},37898:(eo,ot,i)=>{"use strict";i.d(ot,{F4:()=>C,OL:()=>k,bk:()=>a,gS:()=>P});function a(q){return!!(q.addonBefore||q.addonAfter)}function k(q){return!!(q.prefix||q.suffix||q.allowClear)}function M(q,Y,J){var O=Y.cloneNode(!0),l=Object.create(q,{target:{value:O},currentTarget:{value:O}});return O.value=J,typeof Y.selectionStart=="number"&&typeof Y.selectionEnd=="number"&&(O.selectionStart=Y.selectionStart,O.selectionEnd=Y.selectionEnd),O.setSelectionRange=function(){Y.setSelectionRange.apply(Y,arguments)},l}function P(q,Y,J,O){if(J){var l=Y;if(Y.type==="click"){l=M(Y,q,""),J(l);return}if(q.type!=="file"&&O!==void 0){l=M(Y,q,O),J(l);return}J(l)}}function C(q,Y){if(q){q.focus(Y);var J=Y||{},O=J.cursor;if(O){var l=q.value.length;switch(O){case"start":q.setSelectionRange(0,0);break;case"end":q.setSelectionRange(l,l);break;default:q.setSelectionRange(0,l)}}}}},38182:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>l});var a=i(95549),k=i(38502),M=i(53732),P=i.n(M),C=i(17307),q=i(83199),Y=i(67787);const J=Y.Ay.span.withConfig({displayName:"styles__StyledCommentIcon",componentId:"sc-ruhsdd-0"})(["position:relative;height:28px;width:28px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:",";svg circle{stroke:currentColor;}&.active{background-color:#e5e5e5;}"],D=>D.theme.color_text_L1);var O=i(72214);class l extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"ref",null),(0,a.A)(this,"handleClick",m=>{const{disabled:E,onClick:f}=this.props;E||(f&&m.stopPropagation(),f&&f(m))}),(0,a.A)(this,"setRef",m=>{this.props.iconRef&&this.props.iconRef(m),this.ref=m})}render(){const{id:m,disabled:E,active:f,name:h,icon:S,className:V,selected:We,svgClassName:re}=this.props,ve=this.props.content||h;return(0,O.jsx)(q.A,{content:ve,direction:"down",children:(0,O.jsx)(J,{ref:this.setRef,id:m,className:P()("comment-icon",{"is-selected":We},V,{disabled:E,active:f}),onClick:this.handleClick,children:S?(0,O.jsx)(C.C,{style:{},className:re,name:"comment/"+S}):(0,O.jsx)("p",{children:h})})})}}},38382:(eo,ot,i)=>{"use strict";i.d(ot,{H:()=>J});var a=i(18381),k=i(53732),M=i.n(k),P=i(17307),C=i(67588),q=i(67787),Y=i(72214);const J=l=>{const D=(0,a.d4)(C.O4),{type:m="search",desc:E,className:f=""}=l,h="left_panel/modal/"+D+"_empty_"+m+"_icon";return(0,Y.jsx)(O,{className:M()("empty-template-search-container",m,D,f),children:(0,Y.jsxs)("div",{className:"center-container",children:[(0,Y.jsx)(P.C,{name:h,isColorPure:!0}),(0,Y.jsx)("span",{children:E||I18N.LeftSidePanel.modals.search_not_found})]})})},O=q.Ay.div.withConfig({displayName:"ModalEmptySearchContainer__StyledEmptyTemplateContainer",componentId:"sc-xrbhzq-0"})(["width:100%;flex:1;padding-top:170px;&.center{padding:0;display:flex;align-items:center;justify-content:center;}.center-container{display:flex;flex-direction:column;align-items:center;justify-content:center;.pure-svg-icon{width:88px;height:88px;}span{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:16px;}}"],l=>l.theme.color_text_L3)},38739:(eo,ot,i)=>{"use strict";i.d(ot,{l:()=>a});var a=function(k){return k.LargeFactory="largeFactory",k.ComponentLibrary="componentLibrary",k.Me="me",k.History="history",k}(a||{})},38829:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M15.5253 15.6429H2.47474C2.04085 15.6429 1.6754 15.3187 1.6237 14.8879L0.603573 6.38683C0.525383 5.73524 1.1785 5.24109 1.78428 5.4935L4.11126 6.46307C4.46746 6.61148 4.87891 6.50359 5.11644 6.19948L8.286 2.14145C8.62692 1.70497 9.28609 1.70155 9.63152 2.13448L12.8826 6.20914C13.1213 6.5082 13.5292 6.61291 13.8823 6.46576L16.2158 5.4935C16.8215 5.24109 17.4747 5.73524 17.3965 6.38683L16.3763 14.8879C16.3246 15.3187 15.9592 15.6429 15.5253 15.6429Z",fill:"url(#paint0_linear_291_69)"}),a.createElement("path",{d:"M13.6512 8.21462H9.42845C9.19176 8.21462 8.99988 8.02275 8.99988 7.78605V2.50765C8.99988 2.10253 9.51003 1.92358 9.76311 2.23993L13.9858 7.51832C14.2103 7.79894 14.0105 8.21462 13.6512 8.21462Z",fill:"url(#paint1_linear_291_69)",style:{mixBlendMode:"overlay"}}),a.createElement("path",{d:"M8.79919 9.90656L5.85506 8.34528C5.43691 8.12353 5.02085 8.64346 5.32887 9.00282L8.67458 12.9061C8.84562 13.1057 9.15433 13.1057 9.32537 12.9061L12.6711 9.00282C12.9791 8.64346 12.563 8.12353 12.1449 8.34528L9.20076 9.90656C9.07518 9.97315 8.92476 9.97315 8.79919 9.90656Z",fill:"url(#paint2_linear_291_69)"}),a.createElement("path",{d:"M8.77219 9.89224L5.85506 8.34528C5.43691 8.12353 5.02085 8.64346 5.32887 9.00282L8.62299 12.846C8.75246 12.997 8.99997 12.9054 8.99997 12.7065V10.2709C8.99997 10.1122 8.91234 9.96657 8.77219 9.89224Z",fill:"url(#paint3_linear_291_69)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_69",x1:"5.35716",y1:"0.64291",x2:"13.7771",y2:"17.8378",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.166018",stopColor:"#4EF29D"}),a.createElement("stop",{offset:"0.649716",stopColor:"#09C761"}),a.createElement("stop",{offset:"0.932292",stopColor:"#1AB866"})),a.createElement("linearGradient",{id:"paint1_linear_291_69",x1:"10.9173",y1:"7.39446",x2:"9.71118",y2:"1.68137",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white",stopOpacity:"0"}),a.createElement("stop",{offset:"1",stopColor:"#C7FFE2"})),a.createElement("linearGradient",{id:"paint2_linear_291_69",x1:"9",y1:"8",x2:"8.55235",y2:"13.2476",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"#9BE8C0"})),a.createElement("linearGradient",{id:"paint3_linear_291_69",x1:"7.0714",y1:"9.8572",x2:"8.5374",y2:"12.768",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white",stopOpacity:"0.7"}),a.createElement("stop",{offset:"1",stopColor:"white"}))))})},39446:(eo,ot,i)=>{"use strict";i.d(ot,{M:()=>k,v:()=>a});const a=M=>{var P;let{$ref:C,dropdownPosition:q,contentWidth:Y,contentHeight:J,offset:O=5}=M;if(!(C!=null&&C.current))return null;const l=(P=C.current)==null?void 0:P.getBoundingClientRect(),D=l.left+l.width/2-Y/2;return q==="top"?{top:l.top-J-O,left:D}:{top:l.bottom+O,left:D}},k=M=>{var P,C;let{left:q,top:Y}=M;const J=(P=document.querySelector("#screens"))==null?void 0:P.getBoundingClientRect();if(!J)return;const O=(C=document.querySelector(".draft-inline-toolbar"))==null?void 0:C.getBoundingClientRect();if(!O)return;const l=J.left,D=J.top,m=J.right-O.width,E=J.bottom-O.height-10;return q>m&&(q=m),q<l&&(q=l),Y>E&&(Y=E),Y<D&&(Y=D),Y=Y>>0,q=q>>0,{left:q,top:Y}}},40011:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_87)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_87)",fillOpacity:"0.5"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_87)",fillOpacity:"0.8"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_87)",strokeWidth:"0.5"}),a.createElement("path",{d:"M7.87 7.19C9.81 6.37 11.2 5.21 11.96 4H13.04C13.88 5.33 15.22 6.37 17.13 7.15L16.84 8.27C14.81 7.42 13.44 6.45 12.5 5.19C11.55 6.44 10.17 7.41 8.16 8.27L7.87 7.19ZM13.12 13H11.88V7.27H13.12V13ZM22.8 5.76C22.95 8.18 24.16 10.03 26.8 11.74L26.46 13.01C24.34 11.72 22.95 10.17 22.23 8.36C21.52 10.13 20.12 11.68 17.94 13.01L17.6 11.74C20.61 9.87 21.58 7.76 21.58 5.21V4H22.82V5.21C22.82 5.39 22.81 5.58 22.8 5.76Z",fill:"#7E2203"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_87",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE6DD"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),a.createElement("linearGradient",{id:"paint1_linear_291_87",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#D55C81"}),a.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_87",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_87",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE7DE"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},40191:(eo,ot,i)=>{"use strict";i.d(ot,{D:()=>Xa});var a=i(95549),k=i(38502),M=i(18381),P=i(12211),C=i(60651),q=i(67588),Y=i(78915),J=i(53732),O=i.n(J),l=i(83199),D=i(62118),m=i(17307),E=i(67052),f=i(70933),h=i(28173),S=i(10472),V=i(78257),We=i(56202),re=i(20014),ve=i(53940),we=i(15515),Ae=i(93413),Oe=i(94590),Be=i(88670),tt=i(8228),Xe=i(46905),ne=i(67787);const lt=ne.Ay.div.withConfig({displayName:"styles__StyledRecommendNav",componentId:"sc-3kb17s-0"})(["position:absolute;left:105%;bottom:32px;width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;background:",";border-radius:4px;z-index:4;transition:all 0.2s ease-in-out;box-shadow:0px 2px 6px rgba(0,0,0,0.08);&:hover{background:",";}.toggle-btn{color:",";&.isToggle{transform:rotate(180deg);}}"],Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_btn_secondary_active,Kt=>Kt.theme.color_text_L2),rt=ne.Ay.div.withConfig({displayName:"styles__StyledLeftNav",componentId:"sc-3kb17s-1"})(["width:","px;height:100%;padding:6px 0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";border-right:1px solid ",";.left-nav-top{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;}ul.catalog-list{width:100%;display:flex;flex-direction:column;align-items:center;li{width:38px;height:52px;border-radius:6px;display:flex;flex-direction:column;align-items:center;cursor:pointer;position:relative;color:",";.item-label{font-size:12px;font-weight:400;line-height:12px;white-space:nowrap;}.item-icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.active{background:",";}&.disabled{color:",";cursor:not-allowed;}&:not(.active):not(.disabled):hover{background:",";}&:not(.active):not(.disabled):active{background:",";}&:not(:first-child){margin-top:8px;}}}.set-layout-dropdown{width:24px;height:24px;border-radius:4px;margin-bottom:4px;color:",";&:hover{background-color:",";}&.is-open{background-color:",";}.more-icon{cursor:pointer;width:24px;}}.toggle-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.isToggle{svg.svg-icon{transform:rotate(180deg);}}svg.svg-icon{width:32px;height:32px;path{fill:",";}&:hover{path{fill:",";}}&:active{path{fill:",";}}}}"],ve.fn,Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_bg_border_01,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_disabled01,Kt=>Kt.theme.color_text_disabled01,Kt=>Kt.theme.color_navigation_active,Kt=>Kt.theme.color_text_disabled01,Kt=>Kt.theme.color_navigation_active,Kt=>Kt.theme.color_navigation_active,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_btn_secondary_active,Kt=>Kt.theme.color_btn_secondary_active,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_interaction_text_area,Kt=>Kt.theme.color_proto),Te=(0,ne.DU)(["ul.set-layout-dropdown-menu{position:absolute;top:-72px;}#IBOT_TOOLTIP_ROOT{.nav-item-tooltip.on-right{transform:translate(-5px,-50%);}.nav-item-tooltip.on-right.is-open{transform:translate(-5px,-50%);}}"]);var Ge=i(8342),ue=i(47695),Me=i(70812),Ze=i(99863),fe=i(72214);const it=(0,P.Mz)([E.Xf,E.OW,C.T7,S.r,h.C,q.bP,f.PL,f.HW,q.MZ],(Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro)=>{let{isEditingCombo:Pa,isEditingMuban:la,isEditingBasket:Go}=Wn,{isEmptyScreen:ir}=$n;return{currentPopupPanel:Vn,isLeftPanelShow:Kt,fullScreenMode:io,isEditingBasket:Go||la,isEditingCombo:Pa,isEmptyScreen:ir,layout:Vo,rootProject:Do,currentUser:Bo,layoutV9:Ro}}),et=()=>{const{currentPopupPanel:Kt,isLeftPanelShow:Vn,fullScreenMode:io,isEditingBasket:Wn,isEditingCombo:$n,isEmptyScreen:Vo,layout:Do,rootProject:Bo,currentUser:Ro,layoutV9:Pa}=(0,M.d4)(vr=>it(vr)),la=(0,k.useRef)(),Go=(0,k.useRef)(!1),ir=(0,M.wA)(),tr=(0,k.useMemo)(()=>[{key:V.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:D.lk["catalogue_"+((0,We.cX)()?"mac":"win")]},{key:V.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:V.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"2"},{key:V.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"3"},{key:V.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"4"},{key:V.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}],[]),wr=(0,k.useMemo)(()=>[{key:V.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:D.lk["catalogue_"+((0,We.cX)()?"mac":"win")]},{key:V.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:V.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:V.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:V.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}],[]),Pr=(0,k.useMemo)(()=>[{key:V.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:D.lk["catalogue_"+((0,We.cX)()?"mac":"win")]},{key:V.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:V.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:V.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"}],[]);(0,k.useEffect)(()=>{var vr,ar;const hr=(0,ue.XM)();return Pa==="recommend"&&!hr&&!((vr=MB.commonGuideHelper)!=null&&vr.checkGuideHasShown(Ae.c.GUIDE_NOVICE_V9_2408))&&!((ar=MB.commonGuideHelper)!=null&&ar.checkGuideHasShown(Ae.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{Kt!==V.lS.Builtin&&ir({type:"entry:active:popup:panel",payload:{name:V.lS.Builtin}})},0),Kt===V.lS.Template&&Pa==="recommend"&&(0,Ge.c)(I18N)[Ae.c.GUIDE_2506_LIB_INTERGRATED].howToShow({currentUser:Ro}),()=>{Pa==="recommend"&&MB.commonGuideHelper.closeGuide(Ae.c.GUIDE_2506_LIB_INTERGRATED)}},[]);const br=(0,k.useMemo)(()=>{const vr=!!(Ro!=null&&Ro.id);return Wn?wr:$n?Pr:tr},[Wn,$n,Ro==null?void 0:Ro.id]),lr=()=>ir({type:"entry:toggle:left-nav-panel"}),ei=vr=>{if(Go.current)return;const ar=(0,Xe.gu)();if(vr===V.lS.AI&&ar){ir({type:Be.X.AIOpenModal,payload:{type:tt.SR.AIAssistant}}),(0,Oe.kX)({operation_type:Oe.bZ[vr]});return}if(vr===V.lS.Template?(0,Ge.c)(I18N)[Ae.c.GUIDE_2506_LIB_INTERGRATED].howToShow({currentUser:Ro}):(MB.commonGuideHelper.markGuideAsRead(Ae.c.GUIDE_2506_LIB_INTERGRATED),MB.commonGuideHelper.closeGuide(Ae.c.GUIDE_2506_LIB_INTERGRATED)),Kt!==vr){ir({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const mr=Do==="old_right"?ve.sR:ve.Cj;vr===V.lS.Directory?ir({type:"left-panel:set:width",payload:{width:(0,we.Yt)("layer_left_panel_width_"+Bo.cid,mr,we.qW.Number),isNotSaveLocal:!0}}):ir({type:"left-panel:set:width",payload:{width:mr,isNotSaveLocal:!0}}),ir({type:"entry:active:popup:panel",payload:{name:vr}})}else ir({type:"entry:toggle:left-nav-panel"});if((0,Oe.kX)({operation_type:Oe.bZ[vr]}),vr===V.lS.Template){var hr;Me.U4.protoMasterClickTrack((hr=MB)==null||(hr=hr.user)==null?void 0:hr.id)}};return io?(0,fe.jsx)(lt,{onClick:lr,children:(0,fe.jsx)(m.C,{size:28,className:O()("toggle-btn",{isToggle:!Vn}),name:"left_panel/nav/arrow"})}):(0,fe.jsxs)(rt,{children:[(0,fe.jsx)("div",{className:"left-nav-top",children:(0,fe.jsxs)("ul",{className:O()("catalog-list",Ae.c.GUIDE_MORE_PAGE),children:[br.map(vr=>{let{key:ar,label:hr,icon:mr,shortCut:Yr,isColorPure:yi=!1}=vr;const Ri=Yr?(0,l.u)({text:ar===V.lS.AI?I18N.LeftSidePanel.ai_label:hr,key:Yr}):hr,vs=Vo&&![V.lS.Directory].includes(ar),ri=Vn&&Kt===ar;return(0,fe.jsx)(l.A,{content:Ri,direction:"right",tipClassName:"nav-item-tooltip",distance2:5,children:(0,fe.jsxs)("li",{className:O()(ar,{active:ri},{disabled:vs}),onClick:vs?null:()=>ei(ar),children:[(0,fe.jsx)(m.C,{className:"item-icon",name:ri?mr+"/selected":mr,isColorPure:yi}),(0,fe.jsx)("span",{className:"item-label",children:hr})]})},ar)}),(0,fe.jsx)(l.A,{content:I18N.WorkspaceGuidePane.tool,direction:"right",tipClassName:"nav-item-tooltip",distance2:5,children:(0,fe.jsx)(Ze.j,{})})]})}),(0,fe.jsx)(re.e,{layout:Do}),(0,fe.jsx)(Te,{})]})};var Ut=i(62532),G=i(74923),Ht=i(5352),Tt=i(39e3),Vt=i(64639),He=i(21066),rn=i(88856),Lt=i(65575),jt=i(85584),mt=i(66361),Jn=i(20089),o=i(61893),so=i(53008),Et=i(43641),Jt=i(81122),Ot=i(85449);const dn=(0,ne.Ay)(He.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-1p3afdo-0"})(["&.mb-screen-context-menu{ul{min-width:176px;padding:8px;}ul{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}.SubMenu{min-width:160px;max-width:152px;position:absolute;&:lang(en){max-width:200px;}li.MenuItem{position:relative;width:100%;> a{padding-left:16px;align-items:stretch;span{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.text{line-height:28px;}}}}}}"],Kt=>Kt.theme.color_bg_border_01,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.shadow_m,Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L3,Kt=>Kt.theme.color_text_L3,Kt=>Kt.theme.color_btn_secondary_hover,Kt=>Kt.theme.color_text_disabled01,Kt=>Kt.theme.color_text_disabled01,Kt=>Kt.theme.color_text_disabled01);var Ce=i(15400);const Pt=Kt=>{const Vn=Do=>sdkStore.getHotItem(Do),io=Do=>{let Bo=0,Ro=Do;for(;Ro!=="B@main";){const Pa=Vn(Ro);if(!Pa)return-1;Bo++,Ro=Pa.sup}return Bo},Wn=Do=>{const Bo=Vn(Do);if(!Bo||Bo.hotAttr.asFolder===!1)return 0;let Ro=0;for(const Pa of Bo.sub){const la=Wn(Pa);la>Ro&&(Ro=la)}return Ro+1},$n=io(Kt),Vo=Wn(Kt);return{rootToTargetDepth:$n,targetSubtreeDepth:Vo}};class Nn extends k.PureComponent{render(){const{position:Vn,screenTreeData:io,screenDataMap:Wn,screenSelection:$n,onMouseLeave:Vo,actionProps:Do,screenMeta:Bo,isEditingCombo:Ro,isEditingProjectMain:Pa,currentProject:la,isMultiplePage:Go}=this.props;return(0,fe.jsx)(dn,{className:O()("mb-screen-context-menu"),position:Vn,onClose:Vo,children:(0,fe.jsx)(At,{isSelectedSingle:!0,contextScreenSelection:[Bo.cid],onMouseLeave:Vo,screenTreeData:io,screenDataMap:Wn,screenSelection:$n,isEditingProjectMain:Pa,currentProject:la,isEditingCombo:Ro,isMultiplePage:Go,...Do})})}}const At=Kt=>{let{isSelectedSingle:Vn,onCreateNewScreenMetaChild:io,onCreateNewScreenMetaPrevSibling:Wn,onCreateNewScreenMetaNextSibling:$n,onCreateNewScreenFolderNextSibling:Vo,onCreateNewScreenFolderPrevSibling:Do,onNewScreenFolderChild:Bo,onUpdateScreenLevel:Ro,onDup:Pa,onTransfer:la,onDel:Go,onExportPng:ir,onSingleSelect:tr,onRename:wr,selectNotMoveDownScreenSet:Pr,selectNotMoveUpScreenSet:br,isNotUpgrade:lr,isNotDownGrade:ei,contextScreenSelection:vr,screenTreeData:ar,screenDataMap:hr,screenSelection:mr,currentProject:Yr,isEditingProjectMain:yi,isEditingCombo:Ri,isMultiplePage:vs}=Kt;const ri=hr[vr[0]];if(!ri)return null;const us=vr.every(ur=>hr[ur].hotAttr.asFolder),Nr=vs&&(!Vn||Vn&&mr.length===1&&ri.key===mr[0]),si=ur=>{ur.preventDefault(),io(Vn?ri:null)},Is=ur=>{ur.preventDefault(),Wn(Vn?ri:null)},St=ur=>{ur.preventDefault(),$n(Vn?ri:null)},je=ur=>{ur.preventDefault(),Do(Vn?ri:null)},qe=ur=>{ur.preventDefault(),Vo(Vn?ri:null)},Le=ur=>{ur.preventDefault(),Bo(Vn?ri:null)},at=function(ur,oi){oi===void 0&&(oi=1),ur.preventDefault(),Ro(Vn?ri:null,oi)},ft=ur=>{ur.preventDefault(),Pa(Vn?ri:null,Nr)},kt=ur=>{ur.preventDefault(),la(Vn?ri:null,Nr)},en=ur=>{ur.preventDefault(),Go(Vn?ri:null,Nr)},kn=ur=>{ur.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&(Vn&&tr(Vn?ri:null),ir())},yn=()=>{wr(ri)},yo=ur=>async oi=>{if(oi.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:o.hC.MaxSharingCount,isFromScreenList:!0,project:Yr}});else{var Di,Gr;let ms;const Zi=vr[0];ur==="curPage"?ms=vr:ur==="curPageWithChid"||ur==="selectedMultiPage"?ms=Array.from(new Set([...vr,...(0,jt.he)(vr,ar)])):ur==="curFolderWithChid"?ms=vr:ur==="allPage"&&(ms=[]);const El=ri.hotAttr.name;let yc="\u5206\u4EAB";ms.length===1?yc=""+El:ms.length>1&&(yc=El+"...\u7B49"+ms.length+"\u4E2A\u9875\u9762"),ms=(0,so.Uh)(ms);const Ts=(0,we.Yt)(Yr.cid+"_default_sharing_view_mode","read_only",we.qW.String),Pn=(0,so.CV)({accessToken:Yr.access_token,view_mode:Ts,selection:null,pageKey:Zi}),an=(0,so.R_)(Pn,MB.getRootProject().name,yc,"");(0,Et.$)(an);const Gn=(0,Ot.dP)();(Gn==null||(Di=Gn.current)==null||(Di=Di.importAbarOptions)==null?void 0:Di.isFromAbar)&&(0,Jt.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:rn.pU,duration:5e3}),Me.U4.protoEditorShareTrack((Gr=MB)==null||(Gr=Gr.user)==null?void 0:Gr.id,"\u753B\u5E03\u53F3\u952E\u5206\u4EAB")}};let Uo,Xo,Ia,ja,ka,ga,er=!1,Za=!1,Cr=!1,Dr=!1;if(Vn){var ti,Xr,li;const{sup:ur}=ri,oi=(0,jt.BS)(ri);Uo=((ti=oi[(oi==null?void 0:oi.length)-1])==null?void 0:ti.cid)===ri.key;const hs=(0,jt.c$)(ri),Di=(0,jt.zK)(ri.key);ka=Di<7;const Gr=4;Xo=((Xr=oi[0])==null?void 0:Xr.cid)===(ri==null?void 0:ri.key),ja=Di-1+hs===7||Xo,Ia=((li=sdkStore.getHotItem(ur))==null?void 0:li.hotAttr.bunch)!==Jn.x.RbPage,er=(0,jt.Mo)(ri);const ms=oi.findIndex(yc=>yc.cid===ri.key),{rootToTargetDepth:Zi,targetSubtreeDepth:El}=Pt(ri.key);Cr=Zi+El>Gr||Xo||!(0,jt.Mo)(oi[ms-1]),Za=ur==="B@main",Dr=Di<Gr,(0,jt.Mo)(ri)?ga="curFolderWithChid":(ur==null?void 0:ur.length)>0?ga="curPageWithChid":ga="curPage"}else Uo=Array.from(Pr||[]).length===vr.length,Xo=Array.from(br||[]).length===vr.length,Ia=lr,ja=ei||Xo,ga="selectedMultiPage";return(0,fe.jsxs)(fe.Fragment,{children:[!vs&&Vn&&!Ri&&(0,fe.jsxs)(He.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.sub_page,disabled:!ka,onClick:si}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.add_page_above,onClick:Is}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.add_page_below,onClick:St}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!ka,onClick:Le})]}),!vs&&Vn&&Ri&&Ri&&er&&(0,fe.jsxs)(He.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,fe.jsx)(He.Dr,{text:I18N.Resources.combo_panel.add_folder_above,onClick:je}),(0,fe.jsx)(He.Dr,{text:I18N.Resources.combo_panel.add_folder_below,onClick:qe}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!Dr,onClick:Le})]}),(0,fe.jsxs)(He.Dr,{text:I18N.ContextMenu.move,isAiry:!0,children:[(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.move_up,disabled:Xo,onClick:ur=>at(ur,mt.$.MOVEUP)}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.move_down,disabled:Uo,onClick:ur=>at(ur,mt.$.MOVEDOWN)}),Ri&&er&&(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.upgrade,disabled:Za,onClick:ur=>at(ur,mt.$.UPGRADE)}),Ri&&er&&(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.downgrade,disabled:Cr,onClick:ur=>at(ur,mt.$.DOWNGRADE)}),!Ri&&(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.upgrade,disabled:Ia,onClick:ur=>at(ur,mt.$.UPGRADE)}),!Ri&&(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.downgrade,disabled:ja,onClick:ur=>at(ur,mt.$.DOWNGRADE)})]}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.duplicate,onClick:ft}),!Ri&&(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.move_to,onClick:kt,canClick:!0}),!vs&&Vn&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.rename,onClick:yn}),!Ri&&(0,fe.jsx)(Ce.cG,{})]}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.delete,onClick:en}),(Vn&&(ri==null?void 0:ri.orientation)!=="folder"||!Vn)&&!Ri&&yi&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Ce.cG,{}),(0,fe.jsx)(He.Dr,{text:I18N.ContextMenu.export_to_png,onClick:kn,disabled:us})]}),!vs&&(Vn||ga==="curFolderWithChid")&&!Ri&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Ce.cG,{}),ga==="curFolderWithChid"?(0,fe.jsx)(Lt.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.include_all_paged,onClick:yo("allPage")}):(0,fe.jsx)(Lt.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_page,onClick:yo("allPage")})]})]})},on=Kt=>{let{screenMeta:Vn,screenTreeData:io}=Kt;return(0,jt.Bq)((Vn==null?void 0:Vn.sup)||"B@main",io).children.findIndex($n=>$n.cid===(Vn==null?void 0:Vn.key))+1},no=Kt=>{let{screenSelection:Vn,screenDataMap:io,screenTreeData:Wn}=Kt;const $n=new Set,Do=Vn.map(Ro=>io[Ro]).filter(Ro=>Ro==null?void 0:Ro.key).sort((Ro,Pa)=>Ro.hotAttr.zIndex-Pa.hotAttr.zIndex);return Do.forEach(Ro=>{on({screenMeta:Ro,screenTreeData:Wn})<=1&&$n.add(Ro==null?void 0:Ro.key)}),Do.filter(Ro=>{let{key:Pa}=Ro;return!$n.has(Pa)}).forEach(Ro=>{var Pa;const la=(0,jt.Bq)((Ro==null?void 0:Ro.sup)||"B@main",Wn),Go=la.children.findIndex(ir=>ir.cid===(Ro==null?void 0:Ro.key))+1;$n.has((Pa=la.children[Go-1-1])==null?void 0:Pa.cid)&&$n.add(Ro==null?void 0:Ro.key)}),$n},mo=Kt=>{let{screenSelection:Vn,screenDataMap:io,screenTreeData:Wn}=Kt;const $n=new Set,Do=Vn.map(Ro=>io[Ro]).filter(Ro=>Ro==null?void 0:Ro.key).sort((Ro,Pa)=>Pa.hotAttr.zIndex-Ro.hotAttr.zIndex);return Do.forEach(Ro=>{const Pa=(0,jt.Bq)((Ro==null?void 0:Ro.sup)||"B@main",Wn);Pa.children.findIndex(Go=>Go.cid===(Ro==null?void 0:Ro.key))+1>=Pa.children.length&&$n.add(Ro==null?void 0:Ro.key)}),Do.filter(Ro=>{let{key:Pa}=Ro;return!$n.has(Pa)}).forEach(Ro=>{var Pa;const la=(0,jt.Bq)((Ro==null?void 0:Ro.sup)||"B@main",Wn),Go=la.children.findIndex(ir=>ir.cid===(Ro==null?void 0:Ro.key))+1;$n.has((Pa=la.children[Go])==null?void 0:Pa.cid)&&$n.add(Ro==null?void 0:Ro.key)}),$n},mn=Kt=>{let{screenSelection:Vn,selectScreenMetaParentSet:io,screenDataMap:Wn,screenTreeData:$n,selectNotMoveUpScreenSet:Vo}=Kt;const Do=new Set;return Vn.map(Go=>Wn[Go]).filter(Go=>Go==null?void 0:Go.key).forEach(Go=>{const ir=(0,jt.Bq)(Go==null?void 0:Go.key,$n),tr=(0,jt.QR)(ir),wr=(0,jt.zK)(Go==null?void 0:Go.key),Pr=on({screenMeta:Go,screenTreeData:$n});(wr-1+tr===7||Pr===1)&&Do.add(Go.key)}),{isNotDownGrade:Array.from(io).filter(Go=>!Do.has(Go)&&!Vo.has(Go)).length===0,selectNotDownGradeScreenSet:Do}},ht=Kt=>{let{screenSelection:Vn,screenDataMap:io,screenTreeData:Wn}=Kt;const $n=new Set,Do=Vn.map(Bo=>io[Bo]).filter(Bo=>Bo==null?void 0:Bo.key).sort((Bo,Ro)=>Ro.hotAttr.zIndex-Bo.hotAttr.zIndex);return Do.forEach(Bo=>{(0,jt.Bq)(Bo.key,Wn).children.length>=0&&$n.add(Bo.key)}),Do.forEach(Bo=>{(0,jt.e7)(Bo.key).forEach(Pa=>{$n.has(Pa.key)&&$n.delete(Bo.key)})}),$n},Fn=Kt=>{let{screenSelection:Vn,screenDataMap:io,selectScreenMetaParentSet:Wn}=Kt;const $n=new Set;return Vn.map(Bo=>io[Bo]).filter(Bo=>Bo==null?void 0:Bo.key).forEach(Bo=>{(!Bo.sup||Bo.sup==="B@main")&&$n.add(Bo.key)}),{isNotUpgrade:$n.size===Wn.size}};class Yt extends k.PureComponent{constructor(Vn){var io;super(Vn),io=this,(0,a.A)(this,"handleClose",()=>{this.props.dispatch({type:"screen:close:contextmenu"})}),(0,a.A)(this,"handleDelete",function(Do,Bo){Bo===void 0&&(Bo=!1);const{contextScreenSelection:Ro,dispatch:Pa}=io.props;if(Bo){Pa({type:"entry:remove:screen:selection:del"});return}if(Do){Pa({type:"entry:remove:screen:check:del",payload:{screen:Do}});return}Pa({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:Ro}})}),(0,a.A)(this,"handleUpdateScreenLevel",(Do,Bo)=>{const{dispatch:Ro}=this.props;Ro({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:Do,direction:Bo}})}),(0,a.A)(this,"handleExportPng",()=>this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})),(0,a.A)(this,"handleTransfer",function(Do,Bo){Bo===void 0&&(Bo=!1);const{dispatch:Ro}=io.props;MB.global.experienceLoginModalHelper("isSave")||Ro({type:"entry:transfer:screen",payload:{screen:Do,isScreenSelectionContextMenu:Bo}})}),(0,a.A)(this,"handleOnDup",function(Do,Bo){Bo===void 0&&(Bo=!1);const{dispatch:Ro}=io.props;if(Bo){Ro({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:Bo}});return}if(Do){Ro({type:"entry:check:dup:screen:page:folder",payload:{screen:Do}});return}Ro({type:"entry:check:dup:screen:page:folder:batch"})}),(0,a.A)(this,"handleCreateNewScreenMetaChild",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:Do}})}),(0,a.A)(this,"handleCreateNewScreenMetaNextSibling",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Do}})}),(0,a.A)(this,"handleCreateNewScreenMetaPrevSibling",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Do,direction:mt.$.MOVEDOWN}})}),(0,a.A)(this,"handleNewScreenFolderChild",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:Do}})}),(0,a.A)(this,"handleNewScreenFolderNextSibling",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:Do}})}),(0,a.A)(this,"handleNewScreenFolderPrevSibling",Do=>{const{dispatch:Bo}=this.props;Bo({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:Do}})}),(0,a.A)(this,"handleActiveScreenMeta",Do=>{const{dispatch:Bo}=this.props,{cid:Ro,key:Pa}=Do,la=Ro||Pa;Bo({type:"entry:memory:current:screen:offset:scale"}),Bo({type:"entry:exit:edit:basket"}),Bo({type:"entry:goto:project-alike",payload:{screenMetaCid:la}}),Bo({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:la}}),Bo({type:"screen:update:screen-selection",payload:{screenSelection:[la]}}),Bo({type:"entry:activate:screen",payload:{screenCid:la}})}),(0,a.A)(this,"onRename",Do=>{const{key:Bo,hotAttr:Ro,sup:Pa,sub:la}=Do,Go={cid:Bo,...Ro,sup:Pa,sub:la};this.handleActiveScreenMeta(Go);const{dispatch:ir}=this.props;ir({type:"screen:update:editing-screen-cid",payload:{cid:Go.cid}})});const{screenTreeData:Wn,screenDataMap:$n,contextScreenSelection:Vo}=Vn;if(Vo.length>1){const Do=ht({screenSelection:Vo,screenDataMap:$n,screenTreeData:Wn}),Bo=no({screenTreeData:Wn,screenSelection:Vo,screenDataMap:$n}),Ro=mo({screenTreeData:Wn,screenSelection:Vo,screenDataMap:$n}),{isNotUpgrade:Pa}=Fn({screenSelection:Vo,screenDataMap:$n,selectScreenMetaParentSet:Do});this.isNotUpgrade=Pa;const{isNotDownGrade:la,selectNotDownGradeScreenSet:Go}=mn({screenSelection:Vo,screenTreeData:Wn,selectScreenMetaParentSet:Do,screenDataMap:$n,selectNotMoveUpScreenSet:Bo});this.isNotDownGrade=la,this.props.dispatch({type:"screen:update:state",payload:{selectNotMoveUpScreenSet:Bo,selectNotMoveDownScreenSet:Ro,selectNotDownGradeScreenSet:Go,selectScreenMetaParentSet:Do}})}}render(){const{position:Vn,selectNotMoveUpScreenSet:io,selectNotMoveDownScreenSet:Wn,screenTreeData:$n,contextScreenSelection:Vo,screenDataMap:Do,currentProject:Bo,isEditingProjectMain:Ro,isEditingCombo:Pa,isMultiplePage:la,screenSelection:Go}=this.props;return(0,fe.jsx)(dn,{className:O()("mb-screen-context-menu"),position:Vn,onClose:this.handleClose,children:(0,fe.jsx)(At,{isSelectedSingle:Vo.length===1,onUpdateScreenLevel:this.handleUpdateScreenLevel,onExportPng:this.handleExportPng,onDel:this.handleDelete,onTransfer:this.handleTransfer,onDup:this.handleOnDup,selectNotMoveUpScreenSet:io,selectNotMoveDownScreenSet:Wn,isNotUpgrade:this.isNotUpgrade,isNotDownGrade:this.isNotDownGrade,contextScreenSelection:Vo,screenTreeData:$n,screenDataMap:Do,screenSelection:Go,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onSingleSelect:this.handleActiveScreenMeta,onRename:this.onRename,currentProject:Bo,isEditingProjectMain:Ro,isEditingCombo:Pa,isMultiplePage:la})})}}const Gt=(0,P.Mz)([G.I_,E.Hs,E.He,E.HA,G.ey,G.Xw,G.nF,E.WU,f.Ur,f.PL,S.r,f.fv],(Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro,Pa,la,Go)=>{let{isEditingProjectMain:ir,isEditingCombo:tr}=la,{isFromAbar:wr}=Go;const{position:Pr,show:br,contextScreenSelection:lr}=Kt,{cid:ei}=Ro||{};return{show:br,contextScreenSelection:lr,position:Pr,screenSelection:Vn,screenDataMap:io,screenTreeData:Wn,selectNotMoveUpScreenSet:$n,selectNotMoveDownScreenSet:Vo,selectNotDownGradeScreenSet:Do,activeScreenMetaCid:ei,currentProject:Pa,isEditingProjectMain:ir,isEditingCombo:tr,isFromAbar:wr,isMultiplePage:Bo}}),Bn=Kt=>{let{show:Vn,dispatch:io,position:Wn,...$n}=Kt;return Vn&&(0,fe.jsx)(Yt,{position:Wn,dispatch:io,...$n},String(Wn.top)+String(Wn.left))},qt=(0,M.Ng)(Kt=>Gt(Kt))(Bn);var Zt=i(31228),jn=i(30542),ro=i(77533),Tn=i(69874),bt=i(60121),Wt=i(78401);class wn extends k.PureComponent{constructor(){var Vn;super(...arguments),Vn=this,(0,a.A)(this,"state",{isMenuOpen:!1,position:{left:0,top:0}}),(0,a.A)(this,"setElementRef",io=>this.$element=io),(0,a.A)(this,"handleClickAction",io=>{io.stopPropagation(),this.handleToggle()}),(0,a.A)(this,"handleToggle",function(io){io===void 0&&(io=void 0);const{isMenuOpen:Wn}=Vn.state,{screenMeta:$n,onToggle:Vo}=Vn.props,Do=io!==void 0?io:!Wn;Vn.setState({isMenuOpen:Do}),Vo(Do?$n.cid:""),Vn.handleSetPosition()}),(0,a.A)(this,"handleSetPosition",()=>{if(!this.$element)return;const io=this.$element.getBoundingClientRect();this.setState({position:{left:io.left+io.width,top:io.top}})}),(0,a.A)(this,"handleClickOutSide",io=>{let{target:Wn}=io;const{isMenuOpen:$n}=this.state;$n&&(Wn.closest(".MenuItem")||this.$element.contains(Wn)||Wn.closest(".action")||Wn.closest(".settingScreenConfig")||Wn.closest(".go-to-sharing")||this.handleToggle(!1))})}render(){const{screenMeta:Vn,actionProps:io,screenTreeData:Wn,screenDataMap:$n,screenSelection:Vo,isEditingCombo:Do,isEditingProjectMain:Bo,currentProject:Ro,isMultiplePage:Pa}=this.props,{isMenuOpen:la,position:Go}=this.state;return(0,fe.jsxs)("div",{ref:this.setElementRef,className:O()("actions",{"is-active":la}),onClick:this.handleClickAction,children:[(0,fe.jsx)(m.C,{className:"actions-ellipsis",name:"left_panel/screen_action_menu/min"}),la&&(0,fe.jsx)(Nn,{screenMeta:Vn,actionProps:io,position:Go,onMouseLeave:()=>this.handleToggle(!1),screenTreeData:Wn,screenDataMap:$n,screenSelection:Vo,isEditingProjectMain:Bo,isEditingCombo:Do,currentProject:Ro,isMultiplePage:Pa}),(0,fe.jsx)(Tt.A,{target:document,onMouseDown:(0,Tt.t)(this.handleClickOutSide,{capture:!0})})]})}}var uo=i(69246),In=i(29078),Dn=i(3876),So=i(61068),Qt=i(18654),Ln=i(36518),Mn=i(51090);const Rt=(Kt,Vn)=>{var io,Wn;if(Kt.forceDarkTheme)switch(Vn){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1A70D8";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";case"color_bg_select01":return"rgba(69, 157, 253, 0.5)";case"color_bg_select02":return"rgba(69, 157, 253, 0.3)";default:return((io=Ln.fm[Vn])==null?void 0:io.value_dark)||((Wn=Qt.qY[Vn])==null?void 0:Wn.value)}return Kt.theme[Vn]},Qe=(0,ne.AH)(["position:relative;height:32px;width:100%;padding-left:14px;display:flex;align-items:center;border:1px solid transparent;color:",";font-size:12px;cursor:pointer;.expander{width:12px;margin-left:-12px;color:",";}.editable-span,.editable-name{margin-right:14px;line-height:24px;border-radius:2px;&.is-editing{border-bottom-color:transparent;}}.actions{display:none;height:100%;padding-left:6px;.Dropdown > button{display:flex;padding:8px 10px 8px 0;}.action{margin-right:6px;font-size:12px;color:",";&:hover{color:",";}}&.is-active{display:flex;align-items:center;color:",";}}&:hover{.actions{display:flex;align-items:center;}}&:hover,&.hover{color:",";background:",";}&.active{color:",";}"],Kt=>Rt(Kt,"color_text_L2"),Kt=>Rt(Kt,"color_text_disabled01"),Kt=>Rt(Kt,"color_text_L2"),Kt=>Rt(Kt,"color_text_L2"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_btn_secondary_hover"),Kt=>Rt(Kt,"color_text_L1")),En=ne.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-121m7wg-0"})([""," .screen-checkbox{position:absolute;z-index:1;left:16px;}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;width:14px;height:14px;margin-right:1px;pointer-events:all;.arrow-icon{color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{flex:1;color:",";margin-right:0;border:none;",";&.show-circle{margin-right:16px;}span.highlight-keyword{font-weight:600;}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0;margin-right:4px;width:20px;height:20px;border-radius:4px;color:#333;.svg-icon{width:100%;height:100%;color:",";}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{background:",";color:unset;}&:not(.is-mult-select):hover,&:not(.is-mult-select).hover{.active-circle{display:none;}.editable-span{margin-right:0;}}&.active,&.is-active{color:",";background:unset;.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}&.dummy-select{background:",";.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.select{color:",";background:",";.editable-span{font-weight:500;}.screen-name .screen-item-icon .icon{color:",";}.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.active .editable-span{font-weight:500;}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}&.is-mult-select{background:",";.screen-name .screen-item-icon .icon{color:",";}}&.context-menu-select{border:1px solid ",";border-radius:4px;&:not(.dummy-select):not(.select){background-color:",";}}.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],Qe,Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_text_L1"),Mn.L9,Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_text_L2"),Kt=>Rt(Kt,"color_bg_select02"),Kt=>Rt(Kt,"color_directory_hover"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_directory_hover"),Kt=>Rt(Kt,"color_bg_border_01"),Kt=>Rt(Kt,"color_bg_border_01"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_directory_active"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Rt(Kt,"color_bg_border_02"),Kt=>Rt(Kt,"color_bg_border_02"),Kt=>Rt(Kt,"color_text_link_normal"),Kt=>Rt(Kt,"color_directory_active"),Kt=>Rt(Kt,"color_text_L1"),Kt=>Kt.theme.color_btn_primary_normal,Kt=>Rt(Kt,"color_directory_active"));class qn extends k.PureComponent{constructor(Vn){super(Vn),(0,a.A)(this,"timer",null),(0,a.A)(this,"setElementRef",io=>this.$elem=io),(0,a.A)(this,"handleExpand",io=>{io.stopPropagation();const{screenMeta:Wn,actionProps:{onExpand:$n}}=this.props;$n(Wn)}),(0,a.A)(this,"handleClick",async io=>{io.stopPropagation();const{depth:Wn,screenMeta:$n,actionProps:{onClick:Vo},isMultiplePage:Do}=this.props;Vo(io,$n,Wn,Do)}),(0,a.A)(this,"handleDown",io=>{const{screenMeta:Wn,actionProps:{onDropDown:$n,onContextMenu:Vo}}=this.props;io.button===0?this.timer=setTimeout(()=>{$n&&$n(io,Wn)},200):io.button===2&&Vo&&Vo(io,Wn)}),(0,a.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,a.A)(this,"handleEdit",()=>{const{isMultiplePage:io}=this.props;if(io)return;const{screenMeta:Wn,actionProps:{onEdit:$n}}=this.props;$n&&$n(Wn)}),(0,a.A)(this,"handleNameChange",(io,Wn)=>{const{screenMeta:$n,actionProps:{onNameChange:Vo}}=this.props;Vo&&Vo($n,io,this.isNewScreenMeta,Wn),this.isNewScreenMeta=!1}),(0,a.A)(this,"handleToggle",io=>{this.setState({hoverCid:io})}),(0,a.A)(this,"onShowTipsByTarget",(io,Wn)=>{const $n=Wn.querySelector(".editable-span");return $n.offsetWidth<$n.scrollWidth}),(0,a.A)(this,"onSelectByCheckbox",(io,Wn,$n)=>{$n.stopPropagation();const{depth:Vo,screenMeta:Do,actionProps:{onClick:Bo},isMultiplePage:Ro}=this.props;Bo($n,Do,Vo,Ro)}),(0,a.A)(this,"handleToggleHover",(io,Wn)=>{io.stopPropagation();const{actionProps:{onToggleHover:$n},screenMeta:{cid:Vo}}=this.props;$n&&$n(Wn?Vo:"")}),this.isNewScreenMeta=!1,this.state={hoverCid:""}}componentDidMount(){this.props.isEditing&&(this.isNewScreenMeta=!0)}stopPropagation(Vn){Vn.stopPropagation()}render(){const{depth:Vn,screenMeta:io,actionProps:Wn,isMultSelect:$n,screenTreeData:Vo,screenDataMap:Do,screenSelection:Bo,contextMenuState:Ro,isActive:Pa,isEditing:la,isSelect:Go,isExpand:ir,showExpander:tr,isDummySelect:wr,paddingLeftLayout:Pr,theme:br,recentlyUsedScreenMetaIcons:lr,onlyView:ei,isEditingCombo:vr,initPaddingLeft:ar,isEditingProjectMain:hr,currentProject:mr,isMultiplePage:Yr,highlightKeyword:yi}=this.props,{hoverCid:Ri}=this.state,vs=(0,In.N8)(Vn,Pr,ar)+28*Number(Yr),ri=(0,jt.Mo)(io),{cid:us,name:Nr,icon:si}=io,Is=Ri===us,St=(Ro==null?void 0:Ro.show)&&(Ro==null?void 0:Ro.contextScreenSelection.length)===1&&(Ro==null?void 0:Ro.contextScreenSelection[0])===us,je=Pa&&!la&&!Is;return(0,fe.jsx)(l.A,{content:Nr,distance:5,direction:"right",onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,fe.jsxs)(En,{ref:this.setElementRef,"data-cid":us,"data-interactive-target-type":ri?"":Dn.E.page,"data-interactive-target-key":us,onClick:this.handleClick,onMouseDown:this.handleDown,onDoubleClick:this.handleEdit,onMouseUp:this.handleMouseUp,onMouseEnter:qe=>this.handleToggleHover(qe,!0),onMouseLeave:qe=>this.handleToggleHover(qe,!1),style:{paddingLeft:vs},className:O()("rn-list-item",{active:Pa,select:Go,hover:Is&&!St,folder:ri,page:!ri,"dummy-select":wr,"is-mult-select":$n,"context-menu-select":St,"interactive-target-hotspot":!ri}),children:[Yr&&(0,fe.jsx)("div",{className:"screen-checkbox",onClick:this.stopPropagation,children:(0,fe.jsx)(So.A,{attr:"selectByCheckbox",isChecked:Go,onChange:this.onSelectByCheckbox})}),tr&&(0,fe.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,fe.jsx)(m.C,{className:O()("arrow-icon",{"is-expand":ir}),name:"common/expand"})}),(0,fe.jsx)("div",{className:"screen-item-icon",onClick:tr?this.handleExpand:null,onDoubleClick:this.stopPropagation,children:(0,fe.jsx)(uo.k,{isEditingCombo:vr,screenMeta:io,icon:si,theme:br,isExpand:ir,recentlyUsedScreenMetaIcons:lr,actionProps:Wn.iconAction})}),ei?(0,fe.jsx)("span",{className:O()("editable-span",{"show-circle":je}),children:(0,fe.jsx)(bt.A,{value:(0,Wt.wh)(Nr),highlightKeyword:yi})}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Tn.A,{isEditing:la,className:O()("editable-span",{"show-circle":je}),value:(0,Wt.wh)(Nr),highlightKeyword:yi,onConfirm:this.handleNameChange},Nr),!la&&!$n&&!St&&(0,fe.jsx)(wn,{screenMeta:io,actionProps:Wn,viewMode:"literal",onToggle:this.handleToggle,screenTreeData:Vo,screenDataMap:Do,screenSelection:Bo,isEditingCombo:vr,isEditingProjectMain:hr,currentProject:mr,isMultiplePage:Yr})]}),je&&(0,fe.jsx)("span",{className:"active-circle"})]})})}}const Hn=(Kt,Vn,io)=>{const Wn=document.querySelector("#screen-scroll-list"),$n=Wn.firstChild,Vo=Array.from(Wn.querySelectorAll(".rn-content-item")),Do=Wn.getBoundingClientRect(),Bo=$n.getBoundingClientRect(),Ro=[],Pa={},la=MB.__store__.getState(),Go=(0,G.TZ)(la);let ir=new Set,tr=1,wr=Vn;if(Kt){const br=new Set(Vn),lr=new Set;for(const vr of Vn){const ar=sdkStore.getHotItem(vr);ar&&br.has(ar.sup)&&lr.add(ar.key)}for(const vr of lr)br.delete(vr);wr=Array.from(br),ir=new Set(wr);const ei=[];(0,jt.sV)(io,vr=>{const{cid:ar,children:hr}=vr;if(ir.has(ar)&&hr.length>0)for(const mr of vr.children)ir.add(mr.cid);Vn.includes(ar)&&ei.push(vr)});for(const vr of ei){const ar=(0,jt.QR)(vr);tr=Math.max(ar,tr)}}const Pr=Vo.length;return Vo.forEach((br,lr)=>{const{cid:ei}=br.dataset,vr=(0,jt.Bq)(ei,io),ar=vr.data,hr=(0,jt.zK)(vr.cid,io),mr=br.querySelector(":scope > .rn-list-item"),Yr=mr.getBoundingClientRect(),yi=(0,Wt.yB)(mr),Ri=br.getBoundingClientRect(),vs={top:Yr.top-Bo.top,left:Yr.left-Bo.left,width:Yr.width,height:Yr.height},ri={top:yi.top-Bo.top,left:yi.left-Bo.left,width:yi.width,height:yi.height},us={top:Ri.top-Bo.top,left:ri.left,width:ri.width,height:Ri.height};Pa[ei]={rect:vs,contentRect:ri,treeRect:us};const{left:Nr,top:si,width:Is,height:St}=vs,je=Nr+Is,qe=si+St/3,Le=si+St/3*2,at=si+St;if(ir.has(ei)){Ro.push({cid:ei,type:null,min:{x:Nr,y:si},max:{x:je,y:at},isValid:!1});return}lr===0&&Ro.push({cid:ei,type:"prevSibling",parentCid:ar.sup,min:{x:Nr,y:si},max:{x:je,y:qe},isValid:!0}),lr===Pr-1&&Ro.push({cid:ei,type:"nextSibling",parentCid:ar.sup,min:{x:Nr,y:at},max:{x:je,y:Do.height},isValid:!0});const ft=7,kt=hr+tr<=ft,en=hr-1+tr<=ft;if(Ro.push({cid:ei,type:"firstChild",parentCid:ei,min:{x:Nr,y:si},max:{x:je,y:Le},isValid:kt}),!Go.has(ei)&&vr.children.length>0){const{cid:yn}=vr.children[0];Ro.push({cid:yn,type:"prevSibling",parentCid:ei,min:{x:Nr,y:Le},max:{x:je,y:at},isValid:kt})}else{const yn=(0,jt.Bq)(ar.sup,io);if((0,jt.pe)(ei,io)&&yn){Ro.push({cid:ei,type:"nextSibling",parentCid:ar.sup,min:{x:Pa[ei].contentRect.left,y:Le},max:{x:je,y:at},isValid:en});let Uo=vr,Xo=null;for(;Uo&&(0,jt.pe)(Uo.cid,io)&&(Xo=(0,jt.Bq)(Uo.data.parent_cid,io));){const Ia=(0,jt.zK)(Xo,io)-1+tr<=4;Ro.push({cid:Xo.cid,type:"nextSibling",parentCid:Xo.data.sup,min:{x:Pa[Xo.cid].contentRect.left,y:Le},max:{x:Pa[Uo.cid].contentRect.left,y:at},isValid:Ia}),Uo=Xo}}else Ro.push({cid:ei,type:"nextSibling",parentCid:ar.sup,min:{x:Nr,y:Le},max:{x:je,y:at},isValid:en})}}),{matchDataList:Ro,containerRect:Do,rectQueryMap:Pa,pathSelectedIds:wr}},Yn=(Kt,Vn,io)=>{const Wn=document.querySelector("#screen-scroll-list"),$n=Wn.firstChild,Vo=Array.from(Wn.querySelectorAll(".rn-content-item")),Do=Wn.getBoundingClientRect(),Bo=$n.getBoundingClientRect(),Ro=[],Pa={},la=MB.__store__.getState(),Go=(0,G.TZ)(la);let ir=new Set,tr=1,wr=Vn,Pr=!1,br=!1;if(Kt){const vr=new Set(Vn),ar=new Set;for(const mr of Vn){const Yr=sdkStore.getHotItem(mr);Yr&&vr.has(Yr.sup)&&ar.add(Yr.key)}for(const mr of ar)vr.delete(mr);wr=Array.from(vr),ir=new Set(wr);const hr=[];(0,jt.sV)(io,mr=>{const{cid:Yr,children:yi}=mr;if(ir.has(Yr)&&yi.length>0)for(const Ri of mr.children)ir.add(Ri.cid);Vn.includes(Yr)&&hr.push(mr)}),Pr=hr.find(mr=>!(0,jt.Mo)(mr.data)),br=hr.find(mr=>(0,jt.Mo)(mr.data));for(const mr of hr){const Yr=(0,jt._A)(mr);tr=Math.max(Yr,tr)}}const lr=vr=>vr?Pr?vr!=="B@main":!0:!1,ei=Vo.length;return Vo.forEach((vr,ar)=>{const{cid:hr}=vr.dataset,mr=(0,jt.Bq)(hr,io),Yr=mr.data,yi=(0,jt.zK)(mr.cid,io),Ri=vr.querySelector(":scope > .rn-list-item"),vs=Ri.getBoundingClientRect(),ri=(0,Wt.yB)(Ri),us=vr.getBoundingClientRect(),Nr={top:vs.top-Bo.top,left:vs.left-Bo.left,width:vs.width,height:vs.height},si={top:ri.top-Bo.top,left:ri.left-Bo.left,width:ri.width,height:ri.height},Is={top:us.top-Bo.top,left:si.left,width:si.width,height:us.height};Pa[hr]={rect:Nr,contentRect:si,treeRect:Is};const{left:St,top:je,width:qe,height:Le}=Nr,at=St+qe,ft=je+Le/3,kt=je+Le/3*2,en=je+Le;if(ir.has(hr)){Ro.push({cid:hr,type:null,min:{x:St,y:je},max:{x:at,y:en},isValid:!1});return}ar===0&&Ro.push({cid:hr,type:"prevSibling",parentCid:Yr.sup,min:{x:St,y:je},max:{x:at,y:ft},isValid:lr(Yr.sup)}),ar===ei-1&&Ro.push({cid:hr,type:"nextSibling",parentCid:Yr.sup,min:{x:St,y:en},max:{x:at,y:Do.height},isValid:lr(Yr.sup)});const kn=4,yn=yi+tr<=kn&&(0,jt.Mo)(Yr),yo=yi-1+tr<=kn;if((0,jt.Mo)(Yr)){let Xo=!1;tr>1||(0,jt.Mo)(Kt)?Xo=yi+tr<=kn:Xo=yi+tr<=kn+1,Ro.push({cid:hr,type:"firstChild",parentCid:hr,min:{x:St,y:je},max:{x:at,y:kt},isValid:Xo&&lr(hr)})}else Ro.push({cid:hr,type:null,parentCid:hr,min:{x:St,y:je},max:{x:at,y:kt},isValid:yn&&lr(hr)});if(!Go.has(hr)&&mr.children.length>0){const{cid:Xo}=mr.children[0];Ro.push({cid:Xo,type:"prevSibling",parentCid:hr,min:{x:St,y:kt},max:{x:at,y:en},isValid:yn&&lr(hr)})}else{const Xo=(0,jt.Bq)(Yr.sup,io);if((0,jt.pe)(hr,io)&&Xo){Ro.push({cid:hr,type:"nextSibling",parentCid:Yr.sup,min:{x:Pa[hr].contentRect.left,y:kt},max:{x:at,y:en},isValid:yo&&lr(Yr.sup)});let ja=mr,ka=null;for(;ja&&(0,jt.pe)(ja.cid,io)&&(ka=(0,jt.Bq)(ja.data.parent_cid,io));){const ga=(0,jt.zK)(ka,io)-1+tr<=kn;Ro.push({cid:ka.cid,type:"nextSibling",parentCid:ka.data.sup,min:{x:Pa[ka.cid].contentRect.left,y:kt},max:{x:Pa[ja.cid].contentRect.left,y:en},isValid:ga&&lr(ka.data.sup)}),ja=ka}}else Ro.push({cid:hr,type:"nextSibling",parentCid:Yr.sup,min:{x:St,y:kt},max:{x:at,y:en},isValid:yo&&lr(Yr.sup)})}}),{matchDataList:Ro,containerRect:Do,rectQueryMap:Pa,pathSelectedIds:wr}};var oo=i(77872);const To=ne.Ay.div.withConfig({displayName:"styles__StyledSortableList",componentId:"sc-gd43tn-0"})([".sm-list{",";}&.is-multiple{.sm-list{padding-bottom:42px;}}"],Mn.nw);class po extends k.PureComponent{constructor(Vn){super(Vn),(0,a.A)(this,"handleScreenMetaDropDown",(io,Wn)=>{const{editingScreenMetaCid:$n,searchKeyword:Vo,screenTreeData:Do,screenSelection:Bo,isEditingCombo:Ro,onlyView:Pa}=this.props;if(Pa||$n===Wn.cid||Vo)return;const la=document.querySelector('#screen_list [data-cid="'+Wn.cid+'"] .rn-list-item'),{top:Go,left:ir}=la.getBoundingClientRect(),tr=io.clientX-ir,wr=io.clientY-Go,Pr=Bo.includes(Wn.cid)?Bo:[Wn.cid],lr={screen:Wn,$element:la,offsetX:tr,offsetY:wr,...(Ro?Yn:Hn)(Wn,Pr,Do)};this.setState({dragAndDropState:lr})}),(0,a.A)(this,"handleDropScreen",io=>{let{cid:Wn,type:$n,parentCid:Vo,isValid:Do}=io;const{dispatch:Bo,isEditingCombo:Ro}=this.props,{dragAndDropState:Pa}=this.state;if(!Pa)return;const{pathSelectedIds:la}=Pa;if(this.setState({dragAndDropState:null}),!Do){$n&&MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,Ro?4:7),type:"warning"});return}Bo({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:la,parentCid:Vo,type:$n,cid:Wn}}),Bo({type:"entry:update:screen_list_rect"})}),(0,a.A)(this,"getContainerElement",()=>document.getElementById("screen-scroll-list")),(0,a.A)(this,"handleToggleHover",io=>this.setState({hoverCid:io})),(0,a.A)(this,"renderScreenMetaItem",io=>{let{depth:Wn,screenMeta:$n,hasScreenMetaChildren:Vo,screenSelection:Do,activeScreenMetaCid:Bo,editingScreenMetaCid:Ro,collapseScreenMetaCidSet:Pa,dummySelect:la}=io;const{screenTreeData:Go,screenDataMap:ir,contextMenuState:tr,theme:wr,recentlyUsedScreenMetaIcons:Pr,onlyView:br,isEditingCombo:lr,isEditingProjectMain:ei,isCommunityPreview:vr,currentProject:ar,isMultiplePage:hr,searchKeyword:mr}=this.props,{cid:Yr}=$n,yi=Bo===Yr,Ri=Ro===Yr,vs=!Pa.has(Yr),ri=Do.includes(Yr),us=Vo||(0,jt.Mo)($n),Nr=la.has(Yr),si=Do.length>1&&ri||Do.length===1&&ri&&hr,{initPaddingLeft:Is,paddingLeftLayout:St}=(0,In.zD)({isCommunityPreview:vr});return(0,fe.jsx)(qn,{theme:wr,depth:Wn,screenMeta:$n,isActive:yi,isEditing:Ri,isSelect:ri,isMultSelect:si,isExpand:vs,isDummySelect:Nr,showExpander:us,initPaddingLeft:Is,paddingLeftLayout:St,actionProps:this.literalActionProps,screenTreeData:Go,screenDataMap:ir,screenSelection:Do,contextMenuState:tr,recentlyUsedScreenMetaIcons:Pr,onlyView:br,isEditingProjectMain:ei,isEditingCombo:lr,currentProject:ar,isMultiplePage:hr,highlightKeyword:mr})}),this.state={dragAndDropState:null,hoverCid:"",dummySelect:new Set},this.literalActionProps={...Vn.literalActionProps,onDropDown:this.handleScreenMetaDropDown,onToggleHover:this.handleToggleHover}}componentDidMount(){const{currentProject:{cid:Vn},onlyView:io,dispatch:Wn}=this.props;if(!io){const $n=(0,we.Yt)((0,oo.l)(Vn),[],we.qW.Array);Wn({type:"screen:add:collapseKeySet",payload:{refs:$n}})}}render(){const{screenTreeData:Vn,screenSelection:io,activeScreenMetaCid:Wn,editingScreenMetaCid:$n,screenCollapseKeySet:Vo,onlyView:Do,isMultiplePage:Bo}=this.props,{dragAndDropState:Ro}=this.state,Pa=(0,jt.he)(io,Vn),{$element:la,matchDataList:Go,containerRect:ir,rectQueryMap:tr,offsetX:wr,offsetY:Pr}=Ro||{};return(0,fe.jsxs)(To,{className:"sortable-container "+(Bo?"is-multiple":""),children:[(0,fe.jsx)("div",{className:"sm-list",children:(0,fe.jsx)(ro.A,{screenTreeData:Vn,activeScreenMetaCid:Wn,editingScreenMetaCid:$n,screenSelection:io,dummySelect:Pa,collapseScreenMetaCidSet:Vo,renderScreenMetaItem:this.renderScreenMetaItem})}),Ro&&!Do&&(0,fe.jsx)(jn.A,{draggingElement:la,getContainerElement:this.getContainerElement,matchDataList:Go,containerRect:ir,rectQueryMap:tr,offsetX:wr,offsetY:Pr,onDrop:this.handleDropScreen})]})}}const Oo=ne.Ay.div.withConfig({displayName:"styles__StyledScreenListBottom",componentId:"sc-qsyvjd-0"})(["position:absolute;width:calc(100% - 24px);height:34px;margin:0 12px;padding:4px 0;bottom:4px;background-color:",";border:1px solid ",";border-radius:6px;display:flex;align-items:center;justify-content:space-between;z-index:2;.btn{width:100%;height:24px;border-radius:4px;margin:0 4px;color:",";background-color:",";display:flex;align-items:center;justify-content:center;&:hover,&.active{background-color:",";}&.disabled{color:#999;background-color:",";cursor:not-allowed;}}.svg-box svg{width:auto;height:13px;}.divider{width:1px;height:16px;margin:0 4px;background-color:",";flex-shrink:0;}.exit-multiple-btn{font-size:12px;font-weight:400;line-height:16px;}"],Kt=>Kt.theme.color_bg_card,Kt=>Kt.theme.color_bg_border_02,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_bg_card,Kt=>Kt.theme.color_btn_secondary_active,Kt=>Kt.theme.color_bg_card,Kt=>Kt.theme.color_bg_border_02),Qo=Kt=>{const{screenSelection:Vn,screenDataMap:io,dispatch:Wn}=Kt,$n=Vn.length===1,Vo=Vn.length===0,Do=io[Vn[0]],Bo=(0,k.useCallback)(Go=>{Vo||(Go.preventDefault(),Wn({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:!0}}))},[Wn,Vo]),Ro=(0,k.useCallback)(Go=>{Vo||(Go.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&Wn({type:"entry:transfer:screen",payload:{screen:$n?Do:null,isScreenSelectionContextMenu:!0}}))},[Wn,Vo,$n,Do]),Pa=(0,k.useCallback)(Go=>{Vo||(Go.preventDefault(),Wn({type:"entry:remove:screen:selection:del"}))},[Wn,Vo]),la=(0,k.useCallback)(()=>{Wn({type:"screen:update:state",payload:{isMultiplePage:!1}})},[Wn]);return(0,fe.jsxs)(Oo,{className:"screen-list-bottom",children:[(0,fe.jsx)(l.A,{isShowTips:!Vo,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.make_a_copy,direction:"up",children:(0,fe.jsx)("div",{className:O()("svg-box","btn",{disabled:Vo}),onClick:Bo,children:(0,fe.jsx)(m.C,{className:"",name:"left_panel/bottom/dup"})})}),(0,fe.jsx)(l.A,{isShowTips:!Vo,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.move_or_copy_to2,direction:"up",children:(0,fe.jsx)("div",{className:O()("svg-box","btn",{disabled:Vo}),onClick:Ro,children:(0,fe.jsx)(m.C,{className:"",name:"left_panel/bottom/transfer"})})}),(0,fe.jsx)(l.A,{isShowTips:!Vo,distance:8,enterHoverTime:100,content:I18N.SettingPanel.delete,direction:"up",children:(0,fe.jsx)("div",{className:O()("svg-box","btn",{disabled:Vo}),onClick:Pa,children:(0,fe.jsx)(m.C,{className:"",name:"left_panel/bottom/del"})})}),(0,fe.jsx)("div",{className:"divider"}),(0,fe.jsx)("div",{className:"exit-multiple-btn btn",onClick:la,children:I18N.SettingPanel.exit})]})},ea=(0,k.memo)(Qo);var _n=i(77698),Un=i(98267),cn=i(64580),nn=i(70466),Zn=i(24437),ho=i(22835);const Xn=ne.Ay.div.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-3gv3ja-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:100px;.sortable-container{position:relative;min-height:100%;}.screen-scroll-list{width:","}"],Kt=>Kt.scrollHeight>Kt.clientHeight?"calc(100% - 2px)":"100%");var Mo=i(19396),Zo=i.n(Mo);class ia extends k.PureComponent{constructor(Vn){var io;super(Vn),io=this,(0,a.A)(this,"setElementRef",Wn=>this.$elem=Wn),(0,a.A)(this,"autoScrollSelected",()=>{const{screenSelection:Wn}=this.props,$n=Wn[0];$n&&this.$elem&&(0,ho.yA)(this.$elem,$n)}),(0,a.A)(this,"setAttr",(Wn,$n,Vo)=>{const{dispatch:Do}=this.props;Do({type:"entry:update:screen-name",payload:{attr:Wn,value:$n,screen:Vo}})}),(0,a.A)(this,"handleScreenMetaContextMenu",(Wn,$n)=>{const{screenSelection:Vo,dispatch:Do,onlyView:Bo}=this.props;if(Bo)return;const Ro={left:Wn.clientX,top:Wn.clientY},Pa=Vo.findIndex(la=>la===$n.cid)!==-1?Vo:[$n.cid];Do({type:"screen:open:contextmenu",payload:{contextMenuState:{contextScreenSelection:Pa,show:!0,position:Ro}}})}),(0,a.A)(this,"handleCloseScreenMetaContextMenu",()=>this.props.dispatch({type:"screen:open:contextmenu",payload:{contextMenuState:{show:!1,contextScreenSelection:[],position:{left:-9999,top:-9999}}}})),(0,a.A)(this,"handleSingleSelectedScreenMeta",Wn=>{const{dispatch:$n}=this.props,Vo=(0,nn.F)();if(Vo){$n({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Vo}});return}$n({type:"entry:comment:clear"}),this.handleActiveScreenMeta(Wn),$n({type:"screen:update:screen-selection",payload:{screenSelection:[Wn.cid||Wn.key]}})}),(0,a.A)(this,"handleSelectScreenMeta",function(Wn,$n,Vo,Do){Do===void 0&&(Do=!1);const{onlyView:Bo,isEditingCombo:Ro}=io.props,Pa=!Bo&&!Ro,la=Wn.target.type==="checkbox";if(Wn.button!==0&&!Do)return;const{dispatch:Go}=io.props,ir=(0,nn.F)();if(ir){Go({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:ir}});return}Go({type:"entry:comment:clear"}),(Wn.shiftKey||Wn.metaKey||Wn.ctrlKey)&&Pa?Go({type:"screen:update:state",payload:{isMultiplePage:!0}}):(!la||!Pa)&&io.handleActiveScreenMeta($n);const{screenSelection:tr,screenRange:wr}=io.props,{displayTreeData:Pr}=io.state,br=(0,jt.kz)(Pr);br.shift(),(0,In.uX)({rangeStart:wr.start,rangeEnd:wr.end,selected:tr},{cid:$n.cid,cids:br,e:Wn,selectFrom:"screen",isMultiplePage:Do,canCheck:Pa},lr=>{let{rangeStart:ei,rangeEnd:vr,selected:ar}=lr,hr=ar;if(ar.length>0&&vr!==void 0){let mr,Yr;ei<vr?(mr=ar.pop(),Yr=(0,Zn.BH)([mr]),hr=ar.concat(Yr)):(mr=ar.shift(),Yr=(0,Zn.BH)([mr]),hr=Yr.concat(ar))}Go({type:"screen:update:select:range",payload:{screenRange:{start:ei,end:vr}}}),Go({type:"screen:update:screen-selection",payload:{screenSelection:hr}})})}),(0,a.A)(this,"handleScreenMetaNameChange",(Wn,$n)=>{const{isEditingCombo:Vo}=this.props,Do=$n.trim()==="";if(Vo?Do:Do||$n.includes("/")){this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}});const Ro=Vo?I18N.Common.name_cannot_be_empty:I18N.Common.name_cannot_be_empty_or_symbol;MB.notice({text:Ro,type:"warning"})}else this.setAttr("name",$n,Wn),this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}})}),(0,a.A)(this,"handleScreenMetaEdit",Wn=>{this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:Wn.cid}})}),(0,a.A)(this,"handleScreenMetaRename",Wn=>{const{key:$n,hotAttr:Vo,sup:Do,sub:Bo}=Wn,Ro={cid:$n,...Vo,sup:Do,sub:Bo};this.handleSingleSelectedScreenMeta(Ro),this.handleScreenMetaEdit(Ro)}),(0,a.A)(this,"handleScreenMetaExpand",Wn=>{const{currentProject:{cid:$n},dispatch:Vo}=this.props,{keyword:Do}=this.state,Bo=Wn.cid;if(Do){const{searchCollapseKeySet:Ro}=this.state,Pa=new Set(Ro);Ro.has(Bo)?Pa.delete(Bo):Pa.add(Bo),this.setState({searchCollapseKeySet:Pa})}else Vo({type:"screen:update:collapseKeySet",payload:{screenExpandedKeySetRef:Bo,projectCid:$n}});setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,a.A)(this,"handleActiveScreenMeta",Wn=>{if((0,jt.Mo)(Wn))return;const{onlyView:Vo,activeScreenMetaCid:Do,dispatch:Bo}=this.props,{cid:Ro,key:Pa}=Wn,la=Ro||Pa;if(Do===la)return;Bo({type:"entry:exit:edit:basket"}),Bo({type:"entry:memory:current:screen:offset:scale"}),Bo({type:"entry:goto:project-alike",payload:{screenMetaCid:la,isResetScale:!0}}),Bo({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:la}}),Vo&&(0,Un.AT)(la,"",!1);const Go=sdkStore.getHotItem(la);Bo({type:"screen:update:state",payload:{currentPage:Go}})}),(0,a.A)(this,"handleCreateNewScreenMetaChild",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:Wn}})}),(0,a.A)(this,"handleCreateNewScreenMetaNextSibling",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Wn}})}),(0,a.A)(this,"handleCreateNewScreenMetaPrevSibling",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Wn,direction:mt.$.MOVEDOWN}})}),(0,a.A)(this,"handleUpdateScreenLevel",(Wn,$n)=>{const{dispatch:Vo}=this.props;Vo({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:Wn,direction:$n}})}),(0,a.A)(this,"handleNewScreenFolderChild",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:Wn}})}),(0,a.A)(this,"handleNewScreenFolderNextSibling",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:Wn}})}),(0,a.A)(this,"handleNewScreenFolderPrevSibling",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:Wn}})}),(0,a.A)(this,"handleScreenMetaDup",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:check:dup:screen:page:folder",payload:{screen:Wn}})}),(0,a.A)(this,"handleScreenMetaTransfer",Wn=>{const{dispatch:$n}=this.props;MB.global.experienceLoginModalHelper("isSave")||$n({type:"entry:transfer:screen",payload:{screen:Wn}})}),(0,a.A)(this,"handleScreenMetaDel",Wn=>{const{dispatch:$n}=this.props;$n({type:"entry:remove:screen:check:del",payload:{screen:Wn}})}),(0,a.A)(this,"handleThrottleUpdateScreenListRect",Zo()(Wn=>{Wn({type:"entry:update:screen_list_rect"})},20)),(0,a.A)(this,"handleScroll",Wn=>{const{dispatch:$n}=this.props;this.handleThrottleUpdateScreenListRect($n)}),(0,a.A)(this,"handleExportPng",()=>{this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})}),(0,a.A)(this,"onClickOutside",Wn=>{var $n,Vo;const{activeScreenMetaCid:Do,screenSelection:Bo,isMultiplePage:Ro,dispatch:Pa}=this.props,{target:la}=Wn;let Go;const ir=[".mb-screen-context-menu",".screenSettings",".screen-info-menu",".export-panel-menu",".export-panel-more-pages-state-menu",".export-screen-btn",".export-screen-btn2",".transfer-screen-modal",".transfer-screen-modal-select-menu",".screen-action-modal",".WorkspaceSelectMenu","#right-slide-panel",".screen-name-edit",".screen-width-edit",".screen-height-edit",".exit-multiple-btn"];($n=this.$elem)!=null&&$n.contains(la)||document.querySelector(".--mb--color-picker")||!Ro&&Bo.length===1||Ro&&[".catalog-list",".exit-multiple-btn"].every(tr=>{var wr;return!((wr=la.closest)!=null&&wr.call(la,tr))})&&!(Go=(Vo=document.querySelector(".exit-multiple-btn-in-list-menu"))==null||(Vo=Vo.parentNode)==null||(Vo=Vo.parentNode)==null?void 0:Vo.contains(la))||ir.some(tr=>{var wr;return(wr=la.closest)==null?void 0:wr.call(la,tr)})||(!Go&&Pa({type:"screen:update:state",payload:{isMultiplePage:!1}}),Pa({type:"entry:reset:screen:selection",payload:{resetScreenCid:Do}}))}),(0,a.A)(this,"handleChangeIcon",async(Wn,$n)=>{$n&&(this.setAttr("icon",$n,Wn),await this.handleUpdateRecentlyUsedScreenMetaIcon($n))}),(0,a.A)(this,"handleUpdateRecentlyUsedScreenMetaIcon",async Wn=>{const{isDesign:$n,isLoggedExperience:Vo,recentlyUsedScreenMetaIcons:Do,dispatch:Bo}=this.props,[Ro,Pa]=Wn.split(Vt.wv),la=Ro===Vt.L7&&Pa;if(($n||Vo)&&!la){const Go=Array.from(new Set(Do));Go.unshift(Wn);const ir=JSON.stringify(Go.splice(0,12));Bo({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:ir}})}}),(0,a.A)(this,"handleCloseGuide",()=>{}),(0,a.A)(this,"handleTrack",()=>{}),(0,a.A)(this,"handleSearch",Wn=>{const{screenTreeData:$n}=this.props,[Vo,Do]=(0,jt.ZG)($n,Wn);this.setState({displayTreeData:Vo,searchCollapseKeySet:new Set(Do),keyword:Wn}),Wn&&(0,cn.A)({operation_type:cn.D.SearchCanvas}),setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,a.A)(this,"handleToggleExpanded",Wn=>{const{dispatch:$n}=this.props;$n(Wn?{type:"entry:expand:all:screen"}:{type:"entry:unExpand:all:screen"}),(0,cn.A)({operation_type:Wn?cn.D.ExpandCanvas:cn.D.CollapseCanvas})}),this.literalActionProps={onExpand:this.handleScreenMetaExpand,onActive:this.handleActiveScreenMeta,onEdit:this.handleScreenMetaEdit,onNameChange:this.handleScreenMetaNameChange,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onUpdateScreenLevel:this.handleUpdateScreenLevel,onDup:this.handleScreenMetaDup,onTransfer:this.handleScreenMetaTransfer,onDel:this.handleScreenMetaDel,onExportPng:this.handleExportPng,onContextMenu:this.handleScreenMetaContextMenu,onCloseContextMenu:this.handleCloseScreenMetaContextMenu,onClick:this.handleSelectScreenMeta,onSingleSelect:this.handleSingleSelectedScreenMeta,iconAction:Vn.onlyView?null:{onChangeIcon:this.handleChangeIcon,onClickIcon:this.handleCloseGuide,onTrack:this.handleTrack},onRename:this.handleScreenMetaRename},this.state={displayTreeData:Vn.screenTreeData,searchCollapseKeySet:new Set,keyword:""}}componentDidUpdate(Vn){const{screenTreeData:io}=this.props,{keyword:Wn}=this.state;if(Vn.screenTreeData!==io){const[$n]=(0,jt.ZG)(io,Wn);this.setState({displayTreeData:$n})}}componentDidMount(){const{dispatch:Vn}=this.props;Vn({type:"entry:update:screen_list_rect"}),this.autoScrollSelected()}render(){var Vn,io;const{isExperience:Wn,isLoggedExperience:$n,activeScreenMetaCid:Vo,editingScreenMetaCid:Do,screenRange:Bo,screenSelection:Ro,dispatch:Pa,screenDataMap:la,screenCollapseKeySet:Go,contextMenuState:ir,theme:tr,recentlyUsedScreenMetaIcons:wr,onlyView:Pr,isEditingCombo:br,isCommunityPreview:lr,currentProject:ei,isEditingProjectMain:vr,isEditingUserCombo:ar,isMultiplePage:hr,layoutV9:mr}=this.props,{displayTreeData:Yr,searchCollapseKeySet:yi,keyword:Ri}=this.state,vs=Ri?yi:Go,ri=Go.size>0,us=Object.values(la).filter(Nr=>!Nr.hotAttr.asFolder).length;return(0,fe.jsxs)(Xn,{id:"screen_list",scrollHeight:(Vn=this.$elem)==null?void 0:Vn.scrollHeight,clientHeight:(io=this.$elem)==null?void 0:io.clientHeight,children:[(0,fe.jsx)(Zt.A,{isEditingCombo:br,isEditingUserCombo:ar,isMultiplePage:hr,screenSelection:Ro,displayTreeData:Yr,onlyView:Pr,keyword:Ri,hasFoldedScreen:ri,isCommunityPreview:lr,dispatch:Pa,nonFolderPGCount:us,onSearch:this.handleSearch,onToggleExpanded:this.handleToggleExpanded}),(0,fe.jsxs)("div",{ref:this.setElementRef,id:"screen-scroll-list",className:O()("rn-content-body","scrollbar2-container",{isCommunityPreview:lr}),onScroll:this.handleScroll,children:[Yr&&(0,fe.jsx)(po,{theme:tr,isExperience:Wn,isLoggedExperience:$n,activeScreenMetaCid:Vo,searchKeyword:Ri,editingScreenMetaCid:Do,screenTreeData:Yr,screenRange:Bo,screenSelection:Ro,screenCollapseKeySet:vs,dispatch:Pa,literalActionProps:this.literalActionProps,screenDataMap:la,contextMenuState:ir,recentlyUsedScreenMetaIcons:wr,onlyView:Pr,isEditingProjectMain:vr,isEditingCombo:br,isEditingUserCombo:ar,isCommunityPreview:lr,currentProject:ei,isMultiplePage:hr,layoutV9:mr}),this.$elem&&(0,fe.jsx)(_n.yP,{type:"vertical",containerRef:{current:this.$elem},isAutoHideBar:!0})]}),hr&&(0,fe.jsx)(ea,{screenSelection:Ro,screenDataMap:la,dispatch:Pa}),(0,fe.jsx)(qt,{}),(0,fe.jsx)(Tt.A,{target:document,onMouseDown:(0,Tt.t)(this.onClickOutside,{capture:!0})})]})}}const xa=(0,P.Mz)([G.CY,E.HA,E.Hs,E.He,G.TZ,G.I_,E.WU,q.O4,f.W4,f.PL,q.Dc,f.HW,f.wA,C.jx,S.r,C.pH,E.p$,q.MZ],(Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro,Pa,la,Go,ir,tr,wr,Pr,br,lr)=>{let{isDesign:ei,isExperience:vr,isLoggedExperience:ar}=Ro,{isEditingProjectMain:hr,isEditingCombo:mr,isEditingUserCombo:Yr}=wr;const{editingScreenMetaCid:yi,screenRange:Ri,height:vs}=Kt,{key:ri}=br;return{onlyView:tr===Y.qi.OnlyView,theme:Bo,isExperience:vr,isLoggedExperience:ar,isDesign:ei,activeScreenMetaCid:ri,editingScreenMetaCid:yi,screenTreeData:Vn,screenSelection:io,screenDataMap:Wn,screenRange:Ri,screenCollapseKeySet:$n,contextMenuState:Vo,recentlyUsedScreenMetaIcons:la,currentUser:Go,currentOrg:ir,componentPanelHeight:vs,isEditingProjectMain:hr,isEditingCombo:mr,isEditingUserCombo:Yr,isCommunityPreview:Pr,currentProject:Pa,isMultiplePage:Do,layoutV9:lr}}),fa=(0,M.Ng)(Kt=>xa(Kt))(ia);var zo=i(25997),Ra=i(4235),Sa=i(25912),ln=i(98722),ta=i(59025),ko=i(70248);const bo=()=>document.getElementById("layer-scroll-list"),ma=Kt=>{const{treeNode:Vn,hoverItem:io,layerExpandedKeySet:Wn,onlyView:$n,widgetStore:Vo,newSelection:Do,keyword:Bo}=Kt,[Ro,Pa]=(0,k.useState)(),{matchDataList:la,containerRect:Go,rectQueryMap:ir,$element:tr,offsetX:wr,offsetY:Pr}=Ro||{},br=(0,ln.xk)(Do),lr=(0,M.d4)(C._b),ei=(0,M.d4)(f.eo),vr=(0,M.d4)(G.vB),ar=(0,M.wA)(),{initPaddingLeft:hr,paddingLeftLayout:mr}=(0,In.zD)(),Yr=(0,k.useMemo)(()=>{var Nr;const si=(0,ln.B8)(Bo);return((Nr=(0,ln._k)(Vn,Vo,si))==null?void 0:Nr.children)||[]},[Bo,Vn,Vo]),yi=(0,k.useCallback)((Nr,si)=>{const{key:Is,hotAttr:St}=si;if(St.type===Jn.x.WWrap&&lr)return;const je=Do.length===1&&Do[0]===ei?[]:Do,qe=(0,ln.aW)(ei);(0,In.uX)({rangeStart:vr.start,rangeEnd:vr.end,selected:je},{cid:Is,cids:qe,e:Nr},Le=>{const{rangeStart:at,rangeEnd:ft,selected:kt}=(0,ln.MQ)(Le.selected,qe),en=kt.filter(kn=>{var yn;return!(((yn=sdkStore.getHotItem(kn))==null||(yn=yn.hotAttr)==null?void 0:yn.type)===Jn.x.Canvas&&(0,ko.OO)(kn))});ar({type:"entry:select:items",payload:{cids:en,hasNotScrollTop:!0}}),MB.action("update:layer:select:range",{layerRange:{start:at,end:ft}})})},[Do,lr,ei,vr,ar]),Ri=(0,k.useCallback)((Nr,si,Is)=>{const{key:St}=si,je=Do.includes(St)?Do:[St];if((0,ta.td)(je)||Bo)return;const{top:qe,left:Le}=Is.getBoundingClientRect(),at=Nr.clientX-Le,ft=Nr.clientY-qe,kt={item:si,$element:Is,offsetX:at,offsetY:ft,...(0,ln.tE)(Yr,je,Wn)};Pa(kt)},[Bo,Wn,Do,Yr]),vs=(0,k.useCallback)((Nr,si)=>{const{key:Is}=si,St=(0,ln.aW)(ei),je={left:Nr.clientX,top:Nr.clientY};ar({type:"entry:open:contextmenu:by:component-list",payload:{key:Is,position:je}}),ar({type:"update:layer:select:range",payload:{layerRange:{start:St.findIndex(qe=>qe===Is),end:void 0}}})},[Vn,ar]),ri=(0,k.useCallback)(Nr=>{let{cid:si,type:Is,parentCid:St,isValid:je}=Nr;if(Pa(null),!je||!Ro)return;const{pathSelectedIds:qe}=Ro,Le=qe.map(yn=>Vo.getHotItem(yn)).filter(yn=>!!yn);Le.sort((yn,yo)=>yo.hotAttr.zIndex-yn.hotAttr.zIndex);const at=Yr.map(yn=>yn.node),kt=((St?Vo.getRenderableSubHotItems(St):at)||[]).filter(yn=>!qe.includes(yn.key)),en=kt.findIndex(yn=>yn.key===si),kn=Is==="prevSibling"?en:Is==="firstChild"?-kt.length:Is==="nextSibling"?en+1:"error";if(kn==="error")throw new Error("drag type error");kt.splice(kn,0,...Le),sdkStore.combineMergeMark("sort-component"),kt.reverse().forEach((yn,yo)=>{if(yn.sup!==St||yn.hotAttr.zIndex!==yo+1){const Uo={...yn,hotAttr:{...yn.hotAttr,zIndex:yo+1}};sdkStore.updateHotItem(Uo),yn.sup!==St&&sdkStore.changeRndSup(yn.key,St)}}),sdkStore.combineMerge("sort-component"),ar({type:"entry:refresh:link-list"})},[Ro,ar,Yr,Vo]),us=(0,k.useMemo)(()=>({onClick:yi,onMouseDown:Ri,onMouseEnter:Nr=>{const{key:si}=Nr;ar({type:"set:echo:item",payload:{cid:si}})},onMouseLeave:()=>{ar({type:"clear:echo:item"})},onContextMenu:vs,onToggleExpanded:Nr=>{ar({type:"layerExpandedKeySet:toggle:ref",payload:{layerExpandedKeySetRef:Nr}})},onLock:Nr=>ar({type:"entry:toggle:lock",payload:{widget:Nr}}),onVisible:Nr=>ar({type:"entry:toggle:visible",payload:{widget:Nr}}),onChangeDisplayName:(Nr,si)=>{si.trim()===""||si.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):ar({type:"entry:widget:change",payload:{flatChgList:[{key:Nr,hotAttr:{name:si}}],shouldBreakLayerUICache:!0}})},onClickIcon:()=>{ar({type:"entry:design:zoom:selection"})}}),[yi,Ri,vs,ar]);return(0,fe.jsxs)("div",{className:"layer-sortable-list",children:[(0,fe.jsx)("ul",{id:"mb-enabled-layer-list",children:Yr.map(Nr=>(0,fe.jsx)(Sa.A,{depth:0,treeNode:Nr,hoverItem:io,newSelection:Do,layerExpandedKeySet:Wn,childrenSelect:!1,initPaddingLeft:hr,paddingLeftLayout:mr,treeProps:us,dummySelect:br,onlyView:$n,isPreview:!1,keyword:Bo},Nr.key))}),Ro&&(0,fe.jsx)(jn.A,{draggingElement:tr,getContainerElement:bo,matchDataList:la,containerRect:Go,rectQueryMap:ir,offsetX:wr,offsetY:Pr,onDrop:ri})]})};var dr=i(37361);const Ir=(0,k.memo)(Kt=>{const{show:Vn,keyword:io,hoverItem:Wn,newSelection:$n=[],layerExpandedKeySet:Vo,dispatch:Do,onlyView:Bo,currentScreen:Ro}=Kt,Pa=(0,M.d4)(zo.UV),la=(0,M.d4)(zo.RX),Go=(0,k.useRef)(null);(0,k.useEffect)(()=>{if($n.length){const tr=new Set;$n.forEach(wr=>{const Pr=sdkStore.locUpColdCanvasKey(wr);Pr&&!Vo.has(Pr)&&tr.add(Pr)}),tr.size&&Do({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:tr}})}},[]),(0,k.useEffect)(()=>{(0,ho.yA)(Go.current,$n[0])},[$n]);const ir=(0,k.useDeferredValue)(Wn);return!Vn||!la?null:(0,fe.jsx)(dr.PN,{className:O()("mb-layer-panel"),children:(0,fe.jsxs)("div",{id:"layer-scroll-list",className:"layer-scroll-list scrollbar2-container",ref:Go,children:[(0,fe.jsx)(ma,{keyword:io,hoverItem:ir,treeNode:la,newSelection:$n,layerExpandedKeySet:Vo,onlyView:Bo,widgetStore:Pa,currentScreen:Ro}),Go&&(0,fe.jsx)(_n.yP,{type:"vertical",containerRef:Go,isAutoHideBar:!0})]})})}),$a=(0,P.Mz)([zo.GO,zo.Aw],(Kt,Vn)=>Kt.map(io=>Vn[io][0].data)),Va=(0,P.Mz)([G.vB,E.wJ,C.IL,Ra.p$,$a,C.jx,C._b,f.Ur],(Kt,Vn,io,Wn,$n,Vo,Do,Bo)=>{if(!Bo)return{show:!1};const Ro=Vo===Y.qi.OnlyView;return{show:!0,hoverItem:io,newSelection:Wn,ghostLayers:$n,layerRange:Kt,layerExpandedKeySet:Vn,onlyView:Ro,inspectMode:Do,currentScreen:Bo}}),Ha=(0,M.Ng)(Kt=>Va(Kt))(Ir);var or=i(69173),gi=i.n(or);class Qr extends k.PureComponent{constructor(Vn){super(Vn),(0,a.A)(this,"timer",null),(0,a.A)(this,"setElementRef",io=>this.$element=io),(0,a.A)(this,"handleClick",io=>{io.stopPropagation();const{canvas:Wn,treeProps:{onClick:$n}}=this.props;$n(io,Wn),io.shiftKey||io.ctrlKey||this.handleClickIcon(io)}),(0,a.A)(this,"handleClickIcon",io=>{io.stopPropagation();const{treeProps:{onClickIcon:Wn}}=this.props;Wn(),(0,cn.A)({operation_type:cn.D.DoubleClickPageIcon})}),(0,a.A)(this,"handleMouseDown",io=>{const{isEditing:Wn}=this.state;if(Wn)return;const{canvas:$n,onlyView:Vo,treeProps:{onMouseDown:Do,onContextMenu:Bo}}=this.props;if(!Vo){if(io.button===0)this.timer=setTimeout(()=>{Do&&Do(io,$n,this.$element)},200);else if(io.button===2){if(MB.f.editing||(io.preventDefault(),io.ctrlKey))return;Bo&&Bo(io,$n)}}}),(0,a.A)(this,"handleDoubleClick",()=>{this.setState({isEditing:!0})}),(0,a.A)(this,"handleConfirm",async(io,Wn)=>{if(Wn){const{treeProps:{onChangeDisplayName:$n}}=this.props;$n(io)}this.setState({isEditing:!1})}),(0,a.A)(this,"onShowTipsByTarget",(io,Wn)=>{const $n=Wn.querySelector(".editable-name");return $n.offsetWidth<$n.scrollWidth}),(0,a.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,a.A)(this,"handleInvisibleClick",io=>{io.stopPropagation();const{onlyView:Wn,canvas:$n,treeProps:{onToggleVisible:Vo}}=this.props;Wn||Vo&&Vo($n)}),this.state={isEditing:!1}}render(){const{index:Vn,depth:io,canvas:Wn,isHover:$n,isSelected:Vo,onlyView:Do,maxOrderDigit:Bo,initPaddingLeft:Ro,paddingLeftLayout:Pa,treeProps:{onMouseEnter:la,onMouseLeave:Go}}=this.props;if(!Wn)return null;const{isEditing:ir}=this.state,{hotAttr:{isLock:tr,isVisible:wr,name:Pr}}=Wn,br=Pr,lr=(0,In.N8)(io,Pa,Ro);return(0,fe.jsx)("li",{"data-cid":Wn.key,className:O()("rn-content-item",{active:Vo,hover:$n}),children:(0,fe.jsx)(l.A,{content:br,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,fe.jsxs)("div",{"data-interactive-target-type":Dn.E.canvasList,"data-interactive-target-key":Wn==null?void 0:Wn.key,ref:this.setElementRef,className:O()("rn-list-item","layer-item","interactive-target-hotspot",{active:Vo,"is-hidden":!wr,"is-locked":tr,hover:$n}),style:{paddingLeft:lr},onClick:this.handleClick,onMouseEnter:()=>la(Wn),onMouseLeave:Go,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,onMouseUp:this.handleMouseUp,children:[gi()(Vn)?(0,fe.jsxs)(dr.MI,{len:JSON.stringify(Bo).length,children:[Vn," "]}):(0,fe.jsx)(dr.MI,{len:JSON.stringify(Bo).length}),(0,fe.jsxs)(fe.Fragment,{children:[Do?(0,fe.jsx)("span",{className:"editable-name",children:br}):(0,fe.jsx)(Tn.A,{value:br,className:"editable-name",isEditing:ir,onConfirm:this.handleConfirm},br),wr?null:(0,fe.jsx)(m.C,{name:"left_panel/invisible",className:"eye-icon",onClick:this.handleInvisibleClick})]})]})})})}}const Qi=Kt=>{const Vn=document.querySelector("#canvas-scroll-list"),Wn=document.querySelector("#mb-enabled-canvas-list").getBoundingClientRect(),$n=Vn.getBoundingClientRect(),Vo=[],Do={},Bo={},Ro={},Pa={};return Array.from(document.querySelectorAll("#mb-enabled-canvas-list >.rn-content-item")).forEach((Go,ir)=>{const{cid:tr}=Go.dataset,wr=Go.querySelector(":scope > .rn-list-item"),Pr=wr.getBoundingClientRect();Do[tr]=Ro[tr]=Pr;const br=(0,Wt.yB)(wr);Bo[tr]=br;const{left:lr,top:ei,width:vr,height:ar}=Pr,hr=lr-Wn.left,mr=ei-Wn.top,Yr=hr+vr,yi=mr+ar,Ri={top:mr,left:br.left-Wn.left,width:vr,height:ar};if(Pa[tr]={contentRect:Ri,rect:Ri,treeRect:Ri},Kt.includes(tr)){Vo.push({cid:tr,type:null,min:{x:hr,y:mr},max:{x:Yr,y:yi},isValid:!1,parentCid:null});return}Vo.push({cid:tr,type:"prevSibling",min:{x:hr,y:mr},max:{x:Yr,y:mr+ar/2},isValid:!0,parentCid:null}),Vo.push({cid:tr,type:"nextSibling",min:{x:hr,y:mr+ar/2},max:{x:Yr,y:yi},isValid:!0,parentCid:null})}),{matchDataList:Vo,containerRect:$n,rectQueryMap:Pa}},rs=ne.Ay.div.withConfig({displayName:"styles__StyledCanvasListPanel",componentId:"sc-9vkdg5-0"})(["&.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;width:100%;.canvas-sortable-list{position:relative;",";.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}.eye-icon{width:20px;height:20px;}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";svg.design-rResCanvas-new{color:",";}}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:visible;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;margin-right:6px;color:",";}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}&.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],Mn.eP,Mn.Aw,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_proto,Kt=>Kt.theme.color_bg_select03,Kt=>Kt.theme.color_directory_active,Kt=>Kt.theme.color_directory_hover,dr.u6,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L2,Kt=>Kt.theme.color_proto),Li=function(Kt,Vn){return Vn===void 0&&(Vn=sdkStore),Kt?Vn.getSubHotItemList(Kt).filter(io=>io&&io.hotAttr.type===Jn.x.Canvas&&!io.hotAttr.asOverlay).sort((io,Wn)=>io.hotAttr.order-Wn.hotAttr.order):[]},ns=Kt=>{let{widgetStore:Vn,pageKey:io,newSelection:Wn=[],hoverItem:$n,onlyView:Vo,isCommunityPreview:Do,show:Bo,keyword:Ro,layoutV9:Pa,dispatch:la}=Kt;const[Go,ir]=(0,k.useState)([]),[tr,wr]=(0,k.useState)(null),[Pr,br]=(0,k.useState)({start:0,end:void 0}),lr=(0,k.useRef)();(0,k.useEffect)(()=>{let je;return Vn&&(ir(Li(io,Vn)),je=Vn==null?void 0:Vn.externalSubscribe(()=>{ir(Li(io,Vn))})),()=>{var qe;(qe=je)==null||qe()}},[Vn,io]),(0,k.useEffect)(()=>{(()=>{var qe;const Le=Wn[0];Le&&lr.current&&(Vn==null||(qe=Vn.getHotItem(Le))==null?void 0:qe.hotAttr.type)===Jn.x.Canvas&&(0,ho.yA)(lr.current,Le)})()},[Vn,Wn]);const ei=(je,qe)=>{const Le=MB.getCurrentScreen().cid,at=Wn.length===1&&Wn[0]===Le?[]:Wn,ft=Go.map(kt=>{let{key:en}=kt;return en});(0,In.uX)({rangeStart:Pr.start,rangeEnd:Pr.end,selected:at},{cid:qe.key,cids:ft,e:je},kt=>{let{rangeStart:en,rangeEnd:kn,selected:yn}=kt;la({type:"entry:exit:edit:basket"}),la({type:"entry:select:items",payload:{cids:yn,hasNotScrollTop:!0}}),br({start:en,end:kn})})},vr=(je,qe,Le)=>{if(Ro)return;const{top:at,left:ft}=Le.getBoundingClientRect(),kt=je.clientX-ft,en=je.clientY-at,kn=Wn.includes(qe.key)?Wn:[qe.key],yn={$element:Le,offsetX:kt,offsetY:en,selection:kn,...Qi(kn)};wr(yn)},ar=(je,qe)=>{const Le={left:je.clientX,top:je.clientY};la({type:"entry:open:contextmenu:by:component-list",payload:{key:qe.key,position:Le,byCanvasLayers:!0,byComponentList:!1}}),br({start:Go.findIndex(at=>{let{key:ft}=at;return ft===qe.key}),end:void 0})},hr=je=>{let{cid:qe,type:Le,isValid:at}=je;if(wr(null),!at)return;const ft=[];for(const yn of tr==null?void 0:tr.selection){const yo=sdkStore.getHotItem(yn);yo&&ft.push(yo)}ft.sort((yn,yo)=>yn.hotAttr.order-yo.hotAttr.order);const kt=(Go||[]).filter(yn=>!(tr!=null&&tr.selection.includes(yn.key))),en=kt.findIndex(yn=>yn.key===qe),kn=Le==="prevSibling"?en:Le==="nextSibling"?en+1:"error";if(kn==="error")throw new Error("drag type error");kt.splice(kn,0,...ft),sdkStore.combineMergeMark("sort-canvas"),kt.forEach((yn,yo)=>{if(yn.hotAttr.order!==yo+1){const Uo={...yn,hotAttr:{...yn.hotAttr,order:yo+1}};sdkStore.updateHotItem(Uo)}}),sdkStore.combineMerge("sort-canvas"),la({type:"entry:refresh:link-list"}),la({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})},mr={onClick:ei,onMouseDown:vr,onMouseEnter:je=>{la({type:"set:echo:item",payload:{cid:je.key}})},onMouseLeave:()=>{la({type:"clear:echo:item"})},onContextMenu:ar,onChangeDisplayName:je=>{if(je.trim()===""||je.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const Le=Wn.map(at=>({key:at,hotAttr:{name:je}}));la({type:"entry:widget:change",payload:{flatChgList:Le,shouldBreakLayerUICache:!0,shouldBreakCanvasUICache:!0}})}},onClickIcon:()=>{la({type:"entry:design:zoom:selection"})},onToggleVisible:je=>{la({type:"entry:toggle:visible",payload:{widget:je}})}};if(!Bo)return null;const{matchDataList:Yr,containerRect:yi,rectQueryMap:Ri,$element:vs,offsetX:ri,offsetY:us}=tr||{},Nr=Ro?Go.filter(je=>je.hotAttr.name.toLowerCase().indexOf(Ro)!==-1):Go,{initPaddingLeft:si,paddingLeftLayout:Is}=(0,In.zD)({isCommunityPreview:Do,isCanvasSortableList:!0}),St=Pa==="recommend";return(0,fe.jsxs)(rs,{id:"canvas-scroll-list",className:O()("canvas-scroll-list","scrollbar2-container",{isV9Layout:St}),ref:lr,children:[(0,fe.jsxs)("div",{className:"canvas-sortable-list",children:[(0,fe.jsx)("ul",{id:"mb-enabled-canvas-list",children:Nr.map((je,qe)=>(0,fe.jsx)(Qr,{depth:0,index:qe+1,canvas:je,isHover:$n===je.key,isSelected:Wn.includes(je.key),onlyView:Vo,treeProps:mr,initPaddingLeft:si,paddingLeftLayout:Is,maxOrderDigit:Nr.length},je.key))}),tr&&!Vo&&(0,fe.jsx)(jn.A,{draggingElement:vs,getContainerElement:()=>lr.current,matchDataList:Yr,containerRect:yi,rectQueryMap:Ri,offsetX:ri,offsetY:us,onDrop:hr})]}),lr.current&&(0,fe.jsx)(_n.yP,{type:"vertical",containerRef:lr,isAutoHideBar:!0})]})},Es=(0,P.Mz)([Ra.p$,C.IL,C.jx,C.pH,E.p$,zo.UV,q.MZ],(Kt,Vn,io,Wn,$n,Vo,Do)=>{const Bo=$n==null?void 0:$n.key;if(!Bo)return{show:!1};const Ro=io===Y.qi.OnlyView;return{show:!0,newSelection:Kt,hoverItem:Vn,onlyView:Ro,isCommunityPreview:Wn,widgetStore:Vo,layoutV9:Do,pageKey:Bo}}),ys=(0,M.Ng)(Kt=>Es(Kt))(ns);var sr=i(79150),mi=i(71272),Bt=i(19295),vn=i(63763),Io=i(20166);function No(){const Kt=(0,M.d4)(f.Ur),Vn=(0,M.wA)(),io=(0,k.useCallback)($n=>$n.stopPropagation(),[]),Wn=(0,k.useCallback)(()=>{if(!Kt){MB.notice({text:"\u5F53\u524D\u65E0\u753B\u5E03\uFF0C\u8BF7\u5148\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u753B\u5E03",type:"warning"});return}const $n=(0,vn.gu)({type:Jn.x.Canvas,screen:Kt,attrs:{width:0,height:0}});Vn({type:"entry:batch:create:items:position",payload:{finalWidget:$n}}),(0,Io.wH)({page:$n})},[Vn,Kt]);return(0,fe.jsx)(l.A,{content:I18N.ScreenPanel.screen,direction:"down",children:(0,fe.jsx)("a",{className:"header-icon",onMouseDown:io,onClick:Wn,children:(0,fe.jsx)(sr.A,{name:"common/add_plus"})})})}const _a=(0,k.memo)(No);var Ur=i(93257);function fr(){const Kt=(0,M.d4)(f.Ur),Vn=(0,M.d4)(E.wJ),io=(0,M.wA)(),Wn=(0,k.useMemo)(()=>(0,In.ww)(Kt,Vn),[Kt,Vn]),$n=(0,k.useMemo)(()=>Wn?{content:I18N.Comment.collapse,onClick:()=>io({type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}),iconName:"common/layer_collpase_close"}:{content:I18N.ScreenPanel.expand,onClick:()=>io({type:"layerExpandedKeySet:open:ref"}),iconName:"common/layer_collpase_open"},[io,Wn]),Vo=(0,k.useCallback)(Do=>Do.stopPropagation(),[]);return(0,fe.jsx)(Ur.A,{content:$n.content,direction:"down",children:(0,fe.jsx)("a",{className:"header-icon",onMouseDown:Vo,onClick:$n.onClick,children:(0,fe.jsx)(sr.A,{name:$n.iconName})})})}const Ar=(0,k.memo)(fr),zr=ne.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1vhzls3-0"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 16px;&.isCommunityPreview{padding:0 6px 0 14px;}}.switch-tab{position:relative;display:flex;align-items:center;height:100%;.label{color:",";font-size:12px;font-style:normal;font-weight:400;line-height:12px;&.active{color:",";font-weight:500;}}button{height:40px;width:40px;&:lang(en){width:52px;}display:flex;justify-content:center;align-items:center;&.readonly{pointer-events:none;color:",";}}.indicator{position:absolute;left:8px;bottom:0px;height:2px;width:24px;background-color:",";transition:left 0.2s ease-in-out;&.page{left:8px;}&.layer{left:48px;&:lang(en){left:60px;}}}}&.has-drag{cursor:grab;}.header-icon{","}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}.searchBar{height:28px;margin:6px 0;}"],Kt=>Kt.theme.color_bg_border_01,Kt=>Kt.theme.color_bg_border_01,Kt=>Kt.theme.color_text_L3,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_text_L1,Mn.n9);function Fr(Kt){const{mode:Vn="all",keyword:io,height:Wn,navIndex:$n,onSwitchTab:Vo,onChangeHeight:Do,onChangeKeyword:Bo}=Kt,Ro=(0,M.d4)(C.pH),Pa=(0,M.d4)(C.jx),la=(0,M.d4)(S.r),Go=(0,k.useRef)(null),ir=Pa===Y.qi.OnlyView,tr=la==null?void 0:la.isEditingProjectMain,[wr,Pr]=(0,k.useState)(!1),br=(0,k.useCallback)(Ri=>Ri.stopPropagation(),[]),lr=(0,k.useCallback)(Ri=>{Ri.stopPropagation(),Vo(Number(Ri.currentTarget.dataset.index))},[Vo]),ei=(0,k.useCallback)(Ri=>{if(Ri.stopPropagation(),wr)return;const vs=window.innerHeight-310,ri=Ri.clientY,us=-1,Nr=Is=>{const je=(Is.clientY-ri)*us,qe=Math.max(Math.min(Wn+je,vs),ve.nG);Do(qe)},si=()=>{document.removeEventListener("mousemove",Nr),document.removeEventListener("mouseup",si)};document.addEventListener("mousemove",Nr),document.addEventListener("mouseup",si)},[wr,Wn,Do]),vr=(0,k.useCallback)(()=>Pr(!0),[]),ar=(0,k.useCallback)(Ri=>{Ri.stopPropagation(),Bo(""),Pr(!1)},[Bo]),hr=Ri=>{Go.current&&clearTimeout(Go.current),Go.current=setTimeout(()=>{Vo(Number(Ri))},mi.wy)},mr=()=>{Go.current&&(clearTimeout(Go.current),Go.current=null)},Yr=Ro?262:310,yi=$n===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.search_widgets;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Ht.A,{placement:"top",value:Wn,min:ve.nG,max:window.innerHeight-Yr,onChange:Do}),(0,fe.jsx)(zr,{className:O()({"has-drag":!wr},{"is-search-mode":wr},{isCommunityPreview:Ro}),onMouseDown:ei,children:wr?(0,fe.jsx)(Bt.A,{keyword:io,placeholder:yi,onChangeKeyword:Bo,onExitSearch:ar}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{className:"switch-tab",children:[["all","page"].includes(Vn)&&(0,fe.jsx)("button",{className:O()("label page",$n===0&&"active",Vn!=="all"&&"readonly"),"data-index":"0",onClick:lr,onMouseEnter:()=>hr(0),onMouseLeave:mr,children:I18N.LeftSidePanel.artboard}),["all","layer"].includes(Vn)&&(0,fe.jsx)("button",{className:O()("label layer",$n===1&&"active",Vn!=="all"&&"readonly"),"data-index":"1",onClick:lr,onMouseEnter:()=>hr(1),onMouseLeave:mr,children:I18N.LeftSidePanel.layer})]}),(0,fe.jsxs)("div",{className:"buttons",children:[$n===0&&!ir&&tr&&(0,fe.jsx)(_a,{}),(0,fe.jsx)(l.A,{content:$n===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.element_search,direction:"down",children:(0,fe.jsx)("a",{className:"header-icon",onMouseDown:br,onClick:vr,children:(0,fe.jsx)(sr.A,{name:"common/search"})})}),$n===1&&(0,fe.jsx)(Ar,{})]})]})})]})}const os=(0,k.memo)(Fr),Ei=ne.Ay.div.withConfig({displayName:"styles__StyledBottomPanel",componentId:"sc-1uo4d86-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;&.has-bottom-padding{padding-bottom:130px;}.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],Kt=>Kt.theme.color_bg_white);function Kl(Kt,Vn){Vn==="click"&&(0,Oe.kX)({operation_type:Kt===0?Oe.mV.directoryPage:Oe.mV.directoryLayer}),Vn==="search"&&(0,cn.A)({operation_type:Kt===0?cn.D.SearchPage:cn.D.SearchLayers})}function as(Kt){let{mode:Vn="all",isRenderFreeNumberExceeded:io}=Kt;const Wn=(0,M.wA)(),$n=(0,M.d4)(E.K_),Vo=(0,M.d4)(E.AT),[Do,Bo]=(0,k.useState)(""),Ro=O()({"has-bottom-padding":io}),Pa=(0,k.useMemo)(()=>Vn==="all"?Vo:Vn==="page"?0:Vn==="layer"?1:Vo,[Vn,Vo]),la=(0,k.useCallback)(Pr=>{Wn({type:"directory-panel:bottom:set:nav",payload:{nav:Pr}}),Kl(Pr,"click")},[Wn]),Go=Zo()((0,k.useCallback)(Pr=>{Pr({type:"entry:update:screen_list_rect"})},[]),20),ir=(0,k.useCallback)(Pr=>{Wn({type:"directory-panel:bottom:set:height",payload:{height:Pr}}),Go(Wn)},[Wn,Go]),tr=(0,k.useCallback)(Pr=>{Bo(Pr),Kl(Pa,"search")},[Pa]);(0,k.useEffect)(()=>{Kl(Pa,"click")},[]);const wr=Do.toLowerCase();return(0,fe.jsxs)(Ei,{style:{flexBasis:$n},className:Ro,children:[(0,fe.jsx)(os,{mode:Vn,height:$n,keyword:Do,navIndex:Pa,onSwitchTab:la,onChangeKeyword:tr,onChangeHeight:ir}),Pa===0&&(0,fe.jsx)(ys,{keyword:wr}),Pa===1&&(0,fe.jsx)(Ha,{keyword:wr})]})}const al=(0,k.memo)(as);var pd=i(25306),Cd=i(12246);const wc=ne.Ay.div.withConfig({displayName:"styles__StyledFreeNumberExceeded",componentId:"sc-8hzan9-0"})(["width:100%;padding:16px 10px 10px 10px;display:flex;align-items:center;justify-content:center;color:",";font-size:12px;position:absolute;bottom:0;.free-container{width:100%;border-radius:10px;border:1px solid ",";background:",";display:flex;flex-direction:column;overflow:hidden;.upgrade-head{padding:0 12px;height:40px;background:",";display:flex;align-items:center;justify-content:space-between;color:",';font-family:"PingFang SC";font-size:12px;font-style:normal;font-weight:500;line-height:normal;.upgrade-title{display:flex;align-items:center;gap:6px;.img-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:100%;background:',";img{width:15px;height:15px;}}}.upgrade-btn{padding:4px 8px;border-radius:6px;background:",";;display:flex;align-items:center;font-size:11px;color:white;font-weight:500;gap:2px;cursor:pointer;&:hover{svg{transform:translateY(-2px);transition:all 0.3s ease-in-out;}}}}.rights-box{padding:12px;display:flex;flex-direction:column;gap:8px;}}"],Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.free_exceeded_panel_border_color,Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.free_exceeded_panel_bg,Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.free_exceeded_panel_rocket_bg,Kt=>Kt.theme.free_card_panel_upgrade_btn_bg);var ba=i(79209),$r=i(27845);const Ni={[$r.L1.Free]:{maxWidgetCount:100,maxPageCount:10,maxCanvasCount:2},[$r.L1.Solo]:{maxWidgetCount:-1,maxPageCount:480,maxCanvasCount:480},[$r.Sj.OrgFree]:{maxWidgetCount:100,maxPageCount:10,maxCanvasCount:2},[$r.Sj.OrgLite]:{maxWidgetCount:-1,maxPageCount:2900,maxCanvasCount:2900}},Bs=ne.Ay.div.withConfig({displayName:"styles__StyledRightsProgressItem",componentId:"sc-oqbum8-0"})(["width:100%;height:15px;display:flex;align-items:center;justify-content:space-between;color:",';font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:400;line-height:normal;.left-container{display:flex;align-items:center;gap:8px;flex:1 0;margin-right:16px;.progress-container{flex:1 0;height:3px;border-radius:2px;background:',";position:relative;.progress-val{position:absolute;top:0;left:0;height:100%;border-radius:2px;background:#4F5BFF;&.red{background:",";}}}}.value-box{display:flex;align-items:center;justify-content:flex-end;.red{color:",";}}"],Kt=>Kt.theme.color_text_L1,Kt=>Kt.theme.color_bg_border_01,Kt=>Kt.theme.color_btn_danger_normal,Kt=>Kt.theme.color_btn_danger_normal),Ec=(0,k.memo)(Kt=>{let{label:Vn,value:io,maxValue:Wn,minWidth:$n,showValue:Vo}=Kt;const Do=io>=Wn;return(0,fe.jsxs)(Bs,{children:[(0,fe.jsxs)("div",{className:"left-container",children:[Vn,(0,fe.jsx)("div",{className:"progress-container",children:(0,fe.jsx)("div",{className:O()("progress-val",{red:Do}),style:{width:Math.min(io/Wn,1)*100+"%"}})})]}),(0,fe.jsxs)("div",{className:"value-box",style:{minWidth:$n+"px"},children:[(0,fe.jsx)("span",{className:O()("current-val",{red:Do}),children:Vo}),(0,fe.jsxs)("span",{className:"max-val",children:["/",Wn]})]})]})}),ps=Kt=>{const io=document.createElement("canvas").getContext("2d");if(!io)return 0;io.font='400 11px "PingFang SC", sans-serif';const Wn=io.measureText(Kt).width;return Math.floor(Wn)},Yl=Kt=>{let{org:Vn,setIsRenderFreeNumberExceeded:io}=Kt;const Wn=(0,M.d4)(zo.RX),$n=(0,M.d4)(E.HA),[Vo,Do]=(0,k.useState)(0),[Bo,Ro]=(0,k.useState)(0),[Pa,la]=(0,k.useState)(!1),{maxScreenCount:Go,maxWidgetCount:ir,limitExceeded:tr}=(0,k.useMemo)(()=>{const vr=pd.tz.InitialOrg(Vn),ar=vr.limitationSdk.prototypeLimit,{plan:hr}=vr.planSdk.prototypePlan,mr=Ni[hr];return{maxScreenCount:ar.getV8MaxPageCount(),maxWidgetCount:ar.getMaxWidgetCount(),limitExceeded:mr}},[Vn]);(0,k.useEffect)(()=>{const vr=(0,ba.Uu)();Do(vr),Ro((0,ba.UU)({}))},[Wn,Vo,$n]);const wr=function(vr){vr===void 0&&(vr=!1);const ar=Vn&&Vn.otype!=="personal",hr=ar?"v8_\u4F01\u4E1A_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB":"v8_\u4E2A\u4EBA_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB",mr=vr?"proto-v8_file_info_upgrade":"proto-v8_file_info_click",Yr=(0,Cd.l)(ar&&Vn,hr,mr);MB.global.popupHelper.chargeAsync(Yr)};if((0,k.useEffect)(()=>{if(!tr)return;const{maxCanvasCount:vr,maxWidgetCount:ar}=tr;if(vr<=Vo||ar>0&&ar<=Bo){la(!0),io(!0);return}la(!1)},[Vo,Bo,io,tr]),!Pa||!Vn)return null;const Pr=(0,ba.N)(ir),br=Vo+"/"+Go,lr=Math.min(Bo,999)+"/"+ir,ei=ps(br.length>lr.length?br:lr);return(0,fe.jsx)(wc,{children:(0,fe.jsxs)("div",{className:"free-container",children:[(0,fe.jsxs)("div",{className:"upgrade-head",children:[(0,fe.jsxs)("div",{className:"upgrade-title",children:[(0,fe.jsx)("div",{className:"img-box",children:(0,fe.jsx)("img",{src:"/mb-proto2/images/free-up-rocket.png",alt:""})}),I18N.payment.number_exceeded]}),(0,fe.jsxs)("div",{className:"upgrade-btn",onClick:()=>wr(!0),children:[I18N.payment.upgrade,(0,fe.jsx)(m.C,{name:"plan/upgrade-white-arrow",isColorPure:!0})]})]}),(0,fe.jsxs)("div",{className:"rights-box",children:[(0,fe.jsx)(Ec,{label:I18N.LeftSidePanel.page,value:Vo,maxValue:Go,minWidth:ei,showValue:Vo}),!Pr&&(0,fe.jsx)(Ec,{label:I18N.LeftSidePanel.widgets,value:Bo,maxValue:ir,minWidth:ei,showValue:Math.min(Bo,999)})]})]})})},ls=(0,k.memo)(Yl);function wl(){const Kt=(0,M.d4)(S.r),Vn=Kt==null?void 0:Kt.isEditingCombo,io=(0,M.d4)(C.jx),Wn=(0,M.d4)(f.K$),[$n,Vo]=(0,k.useState)(!1),Do=!Vn&&io!==Y.qi.OnlyView&&Wn;return(0,fe.jsx)("div",{className:"mb-left-panel-container",children:(0,fe.jsxs)("div",{className:"list-panel",children:[(0,fe.jsx)(fa,{}),(0,fe.jsx)(al,{mode:Vn?"layer":"all",isRenderFreeNumberExceeded:$n}),Do&&(0,fe.jsx)(ls,{setIsRenderFreeNumberExceeded:Vo,org:Wn})]})})}const Sc=(0,k.memo)(wl);var lc=i(46573);const Ic=ne.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-5fx6js-0"})(["box-sizing:border-box;position:relative;flex-shrink:0;display:flex;align-items:stretch;background:",";box-shadow:1px 0 0 ",";font-size:12px;z-index:4;width:","px;height:100%;&.left-panel-size{box-sizing:border-box;}.mb-left-panel{width:100%;height:100%;display:flex;overflow:hidden;.title{white-space:nowrap;}.mb-left-panel-container{display:flex;flex-direction:column;width:100%;header.tabs-container{height:40px;flex-shrink:0;border-bottom:1px solid ",";font-size:12px;padding:0px 20px 0px 20px;.nav-item:not(:first-child){margin-left:16%;}.nav-item{padding:0;.nav-label{padding:0;width:30px;}&.active{font-weight:500;}}.left-panel-tabs{max-width:104px;}}#mb-layer-panel{flex:1;}}.list-panel{flex:1;position:relative;background:",";display:flex;flex-direction:column;overflow:hidden;.rn-content-body{flex:1;overflow-x:hidden;overflow-y:overlay;padding:8px;}}aside.popups-panel{width:100%;height:100%;border:none;box-shadow:none;}.border-resizer.right{right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.scrollbar2-container{overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}}}&.isDeleteRulerLine{pointer-events:none;}"],Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_bg_border_01,ve.Cj,Kt=>Kt.theme.color_bg_border_02,Kt=>Kt.theme.color_bg_white);class Gc extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"setElementRef",Vn=>this.$elem=Vn),(0,a.A)(this,"handleResizeStart",()=>{this.$elem.style.transition="none"}),(0,a.A)(this,"handleResizeEnd",()=>this.$elem.style.transition=""),(0,a.A)(this,"handleWidthChange",Vn=>{const{dispatch:io,rootProject:Wn}=this.props;io({type:"left-panel:set:width",payload:{width:Vn,projectCid:Wn.cid}}),io({type:"entry:update:viewport:rect"}),io({type:"entry:observe:dom:left-panel-width"})})}render(){const{isLeftShow:Vn,currentPopupPanel:io,leftPanelWidth:Wn,isDeleteRulerLine:$n,maxWidth:Vo,layout:Do,isCommunityPreview:Bo}=this.props,Ro=Bo||Vn?1:0,Pa=io===V.lS.Directory,la=io===V.lS.AI,Go=V.P4.includes(io)||Do==="old_right",ir=Ro*Wn,tr=Ro===0?"none":" ";return(0,fe.jsx)(Ic,{className:O()("left-panel-box",{"left-panel-size":!Vn},{isDeleteRulerLine:$n}),style:{width:ir,display:tr},children:(0,fe.jsxs)("div",{className:"mb-left-panel left-panel-body",ref:this.setElementRef,children:[Do==="old_right"&&(0,fe.jsx)(Sc,{}),Do!=="old_right"&&(0,fe.jsxs)(fe.Fragment,{children:[" ",Pa?(0,fe.jsx)(Sc,{}):(0,fe.jsx)(lc.A,{})]}),Vn&&!$n&&Go&&(0,fe.jsx)(Ht.A,{placement:"right",className:"v-resizer",value:Wn,min:la?ve.Cj:ve.CN,max:Vo,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onChange:this.handleWidthChange})]})})}}const mc=(0,P.Mz)([E.Xf,E.OW,E.uE,Ut.Q,G.g6,f.PL,q.bP,C.pH],(Kt,Vn,io,Wn,$n,Vo,Do,Bo)=>({isLeftShow:Kt,currentPopupPanel:Vn,leftPanelWidth:io,isDeleteRulerLine:Wn,maxWidth:$n,rootProject:Vo,layout:Do,isCommunityPreview:Bo})),Zc=(0,M.Ng)(Kt=>mc(Kt))(Gc),gc=ne.Ay.div.withConfig({displayName:"styles__StyledLeftSidePanel",componentId:"sc-1i1nmxp-0"})(["display:flex;position:relative;z-index:2;"]);var Fo=i(23200);const Ca=(0,Fo.$)(Zc);class ya extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"toggleLeftPane",()=>{const{dispatch:Vn}=this.props;Vn({type:"entry:toggle:left-nav-panel"})})}componentDidMount(){var Vn,io;const{dispatch:Wn,layoutV9:$n}=this.props,Vo=(0,ue.XM)();$n==="recommend"&&!Vo&&!((Vn=MB.commonGuideHelper)!=null&&Vn.checkGuideHasShown(Ae.c.GUIDE_NOVICE_V9_2408))&&!((io=MB.commonGuideHelper)!=null&&io.checkGuideHasShown(Ae.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{Wn({type:"left-panel:collapse:panel:show"})},0)}render(){const{isCommunityPreview:Vn,isHTMLZipPreviewMode:io,isEmbedV2Preview:Wn,layout:$n,isShowRuler:Vo,isShowLeftPane:Do,isFullScreenMode:Bo,onlyView:Ro}=this.props;return(0,fe.jsxs)(gc,{id:"left-slide-panel","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,children:[!Vn&&!Wn&&!Ro&&$n!=="old_right"&&(0,fe.jsx)(et,{}),Ro&&(!Vn||Bo)?(0,fe.jsx)(Ca,{isVisible:Do,orientation:"left",vacuum:!Vo||Vn||Wn||io?0:24,toggleFunc:this.toggleLeftPane,guideKey:Ae.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN}):(0,fe.jsx)(Zc,{})]})}}const Ba=(0,P.Mz)([C.pH,C.rg,C.uu,q.bP,q.qT,E.Xf,C.T7,C.jx,q.MZ],(Kt,Vn,io,Wn,$n,Vo,Do,Bo,Ro)=>{const Pa=Bo===Y.qi.OnlyView;return{isCommunityPreview:Kt,isHTMLZipPreviewMode:Vn,isEmbedV2Preview:io,layout:Wn,isShowLeftPane:Vo,isShowRuler:$n,isFullScreenMode:Do,onlyView:Pa,layoutV9:Ro}}),Xa=(0,M.Ng)(Kt=>Ba(Kt))(ya)},40461:(eo,ot,i)=>{"use strict";i.d(ot,{AI:()=>We,Hi:()=>l,Lb:()=>S,RB:()=>Y,S1:()=>O,Xl:()=>V,ZI:()=>Oe,aA:()=>m,c8:()=>D,fg:()=>ve,lN:()=>J,md:()=>f,pN:()=>C,vY:()=>h,wU:()=>E});async function a(Be){if(!navigator.clipboard)return console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 navigator.clipboard API"),!1;try{return await navigator.clipboard.writeText(Be),!0}catch(tt){return console.error("\u590D\u5236\u5931\u8D25:",tt),!1}}async function k(Be){return new Promise(tt=>{const Xe=document.createElement("textarea");Xe.value=Be,Xe.style.position="fixed",Xe.style.opacity="0",Xe.addEventListener("copy",ne=>{ne.preventDefault(),tt(!0)}),Xe.addEventListener("error",()=>{tt(!1)}),document.body.appendChild(Xe),Xe.select();try{const ne=document.execCommand("copy");tt(ne)}finally{document.body.removeChild(Xe)}})}async function M(Be){return navigator.clipboard?a(Be):k(Be)}const P=Be=>{const Xe=new DOMParser().parseFromString(Be,"text/html");return Xe.querySelectorAll("img").forEach(lt=>{const rt=lt.getAttribute("src")||"",Te=new URL(rt,location.origin).href;lt.src=Te}),"<!DOCTYPE html>"+Xe.documentElement.outerHTML},C=Be=>{const tt=Array.from(Be),Xe=[];for(let ne=0;ne<tt.length;ne++){const lt=tt[ne];if(lt){const{top:rt,bottom:Te,left:Ge,right:ue,width:Me,height:Ze}=lt.getBoundingClientRect();Xe.push({top:rt,bottom:Te,left:Ge,right:ue,width:Me,height:Ze})}}return Xe},q=Be=>{let{left:tt,width:Xe,top:ne,height:lt}=Be;return[tt+Xe/2,ne+lt/2]},Y=(Be,tt)=>{var Xe;const ne=typeof tt=="number"?tt:Be.indexOf(tt);if(tt=(Xe=Be[ne])!=null?Xe:tt,typeof tt!="object")return[];const lt=q(tt);let rt=1/0,Te=0,Ge=-1/0,ue=0;const Me=[];return Be.forEach((Ze,fe)=>{if(ne===fe){Me.push({x:0,y:0,abs:0,isMin:!1,isMax:!1});return}const it=q(Ze),et=lt[0]-it[0],Ut=lt[1]-it[1],G=Math.sqrt(et*et+Ut*Ut);rt>G&&(rt=G,Te=fe),Ge<G&&(Ge=G,ue=fe),Me.push({x:et,y:Ut,abs:G,isMin:!1,isMax:!1})}),Me[Te].isMin=!0,Me[ue].isMax=!0,Me},J=(Be,tt)=>!(Be.top>tt.bottom||Be.bottom<tt.top||Be.left>tt.right||Be.right<Be.left),O=Be=>{if(Be.startsWith("matrix")){var tt;const Xe=(tt=Be.match(/\((.*)\)/))==null?void 0:tt[1].split(",").map(Number);if(Xe)return Xe}return[1,0,0,1,0,0]},l=Be=>"matrix"+(Be.length===16?"3d":"")+"("+Be.join(", ")+")",D=Be=>Be.length===16?[Be[12],Be[13]]:[Be[4],Be[5]],m=(Be,tt)=>{const Xe=Be.slice();return Xe.length===16?(Xe[12]=tt[0],Xe[13]=tt[1]):(Xe[4]=tt[0],Xe[5]=tt[1]),Xe},E=function(Be,tt){if(tt===void 0&&(tt=!0),!Be)return"";const Xe=Be.ownerDocument;if(Be===Xe)return"/";if(Be===Xe.documentElement)return"/html";function ne(Te){if(Te.indexOf("'")===-1)return"'"+Te+"'";if(Te.indexOf('"')===-1)return'"'+Te+'"';const Ge=Te.split("'"),ue=[];for(let Me=0;Me<Ge.length;Me++)Ge[Me].length&&ue.push("'"+Ge[Me]+"'"),Me<Ge.length-1&&ue.push('"\'"');return"concat("+ue.join(",")+")"}if(tt&&Be.id)return"//*[@id="+ne(Be.id)+"]";if(tt&&Be.getAttribute&&Be.getAttribute("name")){const Te=Be.getAttribute("name");return"//*[@name="+ne(Te)+"]"}const lt=[];let rt=Be;for(;rt&&rt.nodeType===Node.ELEMENT_NODE;){const Te=rt.nodeName.toLowerCase();let Ge=1,ue=rt.previousSibling;for(;ue;)ue.nodeType===Node.ELEMENT_NODE&&ue.nodeName.toLowerCase()===Te&&Ge++,ue=ue.previousSibling;let Me=!1;if(Ge>1)Me=!0;else{let Ze=rt.nextSibling;for(;Ze;){if(Ze.nodeType===Node.ELEMENT_NODE&&Ze.nodeName.toLowerCase()===Te){Me=!0;break}Ze=Ze.nextSibling}}if(lt.unshift(Te+(Me?"["+Ge+"]":"")),rt=rt.parentNode,rt&&rt.nodeType===Node.DOCUMENT_NODE)break}return lt.length&&lt[0]!=="html"&&lt.unshift("html"),"/"+lt.join("/")},f=(Be,tt)=>tt.evaluate(Be,tt,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,h=(Be,tt,Xe,ne)=>{if(Be){typeof tt=="string"&&(tt=[tt]);for(const lt of tt)Be.addEventListener(lt,Xe,ne)}return()=>{if(Be)for(const lt of tt)Be.removeEventListener(lt,Xe,ne)}},S=Be=>{if(We(Be)){var tt;Be.focus(),(tt=Be.select)==null||tt.call(Be);return}const Xe=Be.ownerDocument,ne=Xe.defaultView,lt=Be.childNodes;if(!ne||!lt.length)return;Be.focus();const rt=ne.getSelection();if(!rt)return;const Te=Xe.createRange();Te.setStartBefore(lt[0]),Te.setEndAfter(lt[lt.length-1]),rt.removeAllRanges(),rt.addRange(Te)},V=Be=>!Be||!(Be&&Be.ownerDocument.activeElement===Be)?!1:We(Be)||Be.isContentEditable,We=Be=>{if(!Be)return!1;const tt=Be.tagName.toLowerCase();if(tt==="input"){var Xe;return["text","textarea","password","email","search","tel","url"].includes((Xe=Be.type)==null?void 0:Xe.toLowerCase())}return tt==="textarea"},re=Be=>Be.nodeType===3||Be.nodeName.toLowerCase()==="br",ve=function(Be,tt){return tt===void 0&&(tt=!0),We(Be)?!0:Be.tagName.toLowerCase()==="button"?Be.childNodes.length>0&&Array.from(Be.childNodes).some(Xe=>{var ne;return Xe.nodeType===3&&((ne=Xe.textContent)==null?void 0:ne.trim().length)||Xe.nodeName.toLowerCase()==="br"}):Be.childNodes.length>0&&(tt?Array.from(Be.childNodes).every(re):Array.from(Be.childNodes).some(re))},we=function(Be){Be===void 0&&(Be=document);const tt=Be.getSelection();if(!(tt!=null&&tt.focusNode))return!1;if(tt.focusNode.nodeType===3){var Xe;return tt.focusOffset===((Xe=tt.focusNode)==null||(Xe=Xe.textContent)==null?void 0:Xe.length)}const ne=tt.focusNode.childNodes.length;return tt.focusOffset===ne||tt.focusOffset===ne-1&&tt.focusNode.childNodes[ne-1].nodeName.toLowerCase()==="br"},Ae=function(Be){var tt,Xe,ne;Be===void 0&&(Be=document);const lt=Be.getSelection();if(!lt)return null;const{focusNode:rt,focusOffset:Te}=lt;if(!rt)return null;const Ge=rt.nodeType===3,ue=Array.from(Ge?((tt=rt.parentElement)==null?void 0:tt.childNodes)||[]:rt.childNodes||[]),Me=Ge?ue.indexOf(rt):Te,Ze=Ge&&Te===((Xe=rt.textContent)==null?void 0:Xe.length),fe=Ge?"text":(ne=ue[Me])==null?void 0:ne.nodeName.toLowerCase(),it=ue[Me+1],et=(it==null?void 0:it.nodeType)===3?"text":it==null?void 0:it.nodeName.toLowerCase();return{isText:Ge,isTextEnd:Ze,nodeName:fe,siblingNodeName:et,focusOffset:Te,siblings:ue}},Oe=function(Be){Be===void 0&&(Be=document);const{isText:tt,isTextEnd:Xe,nodeName:ne,siblingNodeName:lt,focusOffset:rt}=Ae(Be)||{};let Te="<br>",Ge=!1;tt&&!Xe?Te="<br>":Xe&&lt!=="text"?Te+="<br>":(!lt||lt==="br"||ne==="br")&&(Te+="<br>",Ge=!0),Be.execCommand("insertHTML",!1,Te);const ue=Ae(Be);if(Ge&&(ue==null?void 0:ue.focusOffset)-rt===2){var Me,Ze;const fe=Be.createRange();fe.selectNode(ue.siblings[ue.focusOffset-1]),fe.collapse(!0),(Me=Be.getSelection())==null||Me.removeAllRanges(),(Ze=Be.getSelection())==null||Ze.addRange(fe)}}},40715:(eo,ot,i)=>{"use strict";i.d(ot,{m:()=>l});var a=i(38502),k=i(18381),M=i(67787),P=i(83199),C=i(17307),q=i(8614),Y=i(44229),J=i(15400),O=i(72214);const l=()=>{const m=(0,k.d4)(q.eP),E=(0,k.d4)(q.SP),f=(0,k.wA)();(0,a.useEffect)(()=>{(0,Y._o)(()=>{E&&f({type:"entry:libStyle:manage:set:needUpdateLibs"})})},[f,E]);const h=()=>{f({type:"modal:update:state",payload:{manageStyleLibModal:{isOpen:!0}}})};return(0,O.jsx)(P.A,{content:"\u7BA1\u7406\u8D44\u6E90\u5E93",direction:"down",children:(0,O.jsxs)(D,{className:"manage-libs-opener",children:[m.length>0&&(0,O.jsx)(J.Jz,{className:"update-red-tip"}),(0,O.jsx)(C.C,{name:"setting_panel/libPanel/manage",size:24,className:"manage-libs-icon",onClick:h})]})})},D=M.Ay.div.withConfig({displayName:"LibManageOpenIcon__StyledLibManageOpenIcon",componentId:"sc-1ixn35e-0"})(["&.manage-libs-opener{width:24px;height:24px;margin-right:4px;position:relative;border-radius:4px;cursor:pointer;&:hover{background:",";}&:active{background:",";}.update-red-tip{top:3px;right:3px;}.svg-icon.manage-libs-icon{fill:none;color:",";path{fill:none;stroke:currentColor;}}}"],m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1)},42520:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>ea});var a=i(38502),k=i(95549),M=i(53732),P=i.n(M),C=i(17307),q=i(21489),Y=i(93e3),J=i(27480),O=i(30728),l=i(25337);function D(_n,Un,cn,nn,Zn,ho,Xn){const{rotate:Mo}=_n,{w:Zo}=Un,ia=(0,l.WG)(cn,nn,-Mo),xa=(0,l.WG)({x:nn.x,y:ia.y},nn,Mo);let fa=Math.sqrt((xa.x-nn.x)**2+(xa.y-nn.y)**2);const zo={x:xa.x-(xa.x-nn.x)/2,y:xa.y+(nn.y-xa.y)/2};if(Zn)return{x:zo.x-fa/2,y:zo.y-fa/2,w:fa,h:fa};if(Xn){const{h:Ra}=Xn;if(fa<Ra&&(zo.y=zo.y-(Ra-fa)/2,fa=Ra),xa.y>=nn.y)return Un}return{x:zo.x-Zo/2,y:zo.y-fa/2,w:Zo,h:fa}}function m(_n,Un,cn,nn,Zn,ho,Xn){const{rotate:Mo}=_n,{w:Zo}=Un,ia=(0,l.WG)(cn,nn,-Mo),xa=(0,l.WG)({x:nn.x,y:ia.y},nn,Mo);let fa=Math.sqrt((xa.x-nn.x)**2+(xa.y-nn.y)**2);const zo={x:xa.x-(xa.x-nn.x)/2,y:xa.y+(nn.y-xa.y)/2};if(Zn)return{x:zo.x-fa/2,y:zo.y-fa/2,w:fa,h:fa};if(Xn){const{h:Ra}=Xn;if(fa<Ra&&(zo.y=zo.y+(Ra-fa)/2,fa=Ra),xa.y<=nn.y)return Un}return{x:zo.x-Zo/2,y:zo.y-fa/2,w:Zo,h:fa}}function E(_n,Un,cn,nn,Zn,ho,Xn){const{rotate:Mo}=_n,{h:Zo}=Un,ia=(0,l.WG)(cn,nn,-Mo),xa=(0,l.WG)({x:ia.x,y:nn.y},nn,Mo);let fa=Math.sqrt((xa.x-nn.x)**2+(xa.y-nn.y)**2);const zo={x:xa.x-(xa.x-nn.x)/2,y:xa.y+(nn.y-xa.y)/2};if(Zn)return{x:zo.x-fa/2,y:zo.y-fa/2,w:fa,h:fa};if(Xn){const{w:Ra}=Xn;if(fa<Ra&&(zo.x=zo.x-(Ra-fa)/2,fa=Ra),xa.x>=nn.x)return Un}return{x:zo.x-fa/2,y:zo.y-Zo/2,w:fa,h:Zo}}function f(_n,Un,cn,nn,Zn,ho,Xn){const{rotate:Mo}=_n,{h:Zo}=Un,ia=(0,l.WG)(cn,nn,-Mo),xa=(0,l.WG)({x:ia.x,y:nn.y},nn,Mo);let fa=Math.sqrt((xa.x-nn.x)**2+(xa.y-nn.y)**2);const zo={x:xa.x-(xa.x-nn.x)/2,y:xa.y+(nn.y-xa.y)/2};if(Zn)return{x:zo.x-fa/2,y:zo.y-fa/2,w:fa,h:fa};if(Xn){const{w:Ra}=Xn;if(fa<Ra&&(zo.x=zo.x+(Ra-fa)/2,fa=Ra),xa.x<=nn.x)return Un}return{x:zo.x-fa/2,y:zo.y-Zo/2,w:fa,h:Zo}}function h(_n,Un,cn,nn,Zn,ho,Xn){let Mo=Un,Zo=cn;if(Zn){const Ra=Math.atan2(nn.y-ho.y,ho.x-nn.x),Sa=O.Z.distance(cn,nn),ln={x:nn.x+Sa,y:nn.y};cn.x<nn.x||cn.y<nn.y?Zo=O.Z.rotate(nn,-Ra,ln):Zo=O.Z.rotate(nn,Math.PI-Ra,ln)}const{rotate:ia}=_n,xa=(0,l.EX)(Zo,nn),fa=(0,l.WG)(Zo,xa,-ia),zo=(0,l.WG)(nn,xa,-ia);if(Xn){const{w:Ra,h:Sa}=Xn,ln=zo.x-fa.x,ta=zo.y-fa.y;if(ln<=0||ta<=0)return Un;ln<Ra&&(fa.x=fa.x-(Ra-ln)),ta<Sa&&(fa.y=fa.y-(Sa-ta))}return Mo={x:fa.x<zo.x?fa.x:zo.x,y:fa.y<zo.y?fa.y:zo.y,w:Math.abs(zo.x-fa.x),h:Math.abs(zo.y-fa.y)},Mo}function S(_n,Un,cn,nn,Zn,ho,Xn){let Mo=Un,Zo=cn;if(Zn){const Ra=Math.atan2(nn.y-ho.y,ho.x-nn.x),Sa=O.Z.distance(cn,nn),ln={x:nn.x+Sa,y:nn.y};cn.x>nn.x||cn.y<nn.y?Zo=O.Z.rotate(nn,-Ra,ln):Zo=O.Z.rotate(nn,Math.PI-Ra,ln)}const{rotate:ia}=_n,xa=(0,l.EX)(Zo,nn),fa=(0,l.WG)(Zo,xa,-ia),zo=(0,l.WG)(nn,xa,-ia);if(Xn){const{w:Ra,h:Sa}=Xn,ln=fa.x-zo.x,ta=zo.y-fa.y;if(ln<=0||ta<=0)return Un;ln<Ra&&(fa.x=fa.x+(Ra-ln)),ta<Sa&&(fa.y=fa.y-(Sa-ta))}return Mo={x:zo.x<fa.x?zo.x:fa.x,y:zo.y<fa.y?zo.y:fa.y,w:Math.abs(fa.x-zo.x),h:Math.abs(zo.y-fa.y)},Mo}function V(_n,Un,cn,nn,Zn,ho,Xn){let Mo=Un,Zo=cn;if(Zn){const Ra=Math.atan2(nn.y-ho.y,ho.x-nn.x),Sa=O.Z.distance(cn,nn),ln={x:nn.x+Sa,y:nn.y};cn.x<nn.x||cn.y>nn.y?Zo=O.Z.rotate(nn,-Ra,ln):Zo=O.Z.rotate(nn,Math.PI-Ra,ln)}const{rotate:ia}=_n,xa=(0,l.EX)(Zo,nn),fa=(0,l.WG)(nn,xa,-ia),zo=(0,l.WG)(Zo,xa,-ia);if(Xn){const{w:Ra,h:Sa}=Xn,ln=fa.x-zo.x,ta=zo.y-fa.y;if(ln<=0||ta<=0)return Un;ln<Ra&&(zo.x=zo.x-(Ra-ln)),ta<Sa&&(zo.y=zo.y+(Sa-ta))}return Mo={x:zo.x<fa.x?zo.x:fa.x,y:zo.y<fa.y?zo.y:fa.y,w:Math.abs(fa.x-zo.x),h:Math.abs(zo.y-fa.y)},Mo}function We(_n,Un,cn,nn,Zn,ho,Xn){let Mo=Un,Zo=cn;if(Zn){const Ra=Math.atan2(nn.y-ho.y,ho.x-nn.x),Sa=O.Z.distance(cn,nn),ln={x:nn.x+Sa,y:nn.y};cn.x>nn.x||cn.y>nn.y?Zo=O.Z.rotate(nn,-Ra,ln):Zo=O.Z.rotate(nn,Math.PI-Ra,ln)}const{rotate:ia}=_n,xa=(0,l.EX)(Zo,nn),fa=(0,l.WG)(nn,xa,-ia),zo=(0,l.WG)(Zo,xa,-ia);if(Xn){const{w:Ra,h:Sa}=Xn,ln=zo.x-fa.x,ta=zo.y-fa.y;if(ln<=0||ta<=0)return Un;ln<Ra&&(zo.x=zo.x+(Ra-ln)),ta<Sa&&(zo.y=zo.y+(Sa-ta))}return Mo={x:fa.x<zo.x?fa.x:zo.x,y:fa.y<zo.y?fa.y:zo.y,w:Math.abs(zo.x-fa.x),h:Math.abs(zo.y-fa.y)},Mo}const re={t:D,r:f,l:E,b:m,tl:h,tr:S,bl:V,br:We};function ve(_n,Un,cn,nn,Zn,ho,Xn,Mo){return re[_n](Un,cn,nn,Zn,ho,Xn,Mo)}const we=["tl","t","tr","r","br","b","bl","l"],Ae=["tl","tr","br","bl"],Oe={tl:0,t:45,tr:90,r:135,br:180,b:225,bl:270,l:315},Be=[{start:338,end:23,cursor:"nw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDI3Ni45Nzc5MjU2ODcyNDkzNWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:23,end:68,cursor:"n",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDMxMi45OTIzMDc4MzEwMDM3ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:68,end:113,cursor:"ne",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDQuOTY0NDg0NzY1NjM0MjExZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:113,end:158,cursor:"e",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDM4LjQ1NTk0Nzc2NzY3MzcwNmRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:158,end:203,cursor:"se",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEwMC42MTE5NjU2NDIyMTg1OWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:203,end:248,cursor:"s",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEzMC4wMDY5MDQxMzM2NjA5ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:248,end:293,cursor:"sw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDE3OC4xNjgxMzM0MTgxMDYzZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:293,end:338,cursor:"w",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDIyMi41OTMwMjg0OTU4OTM5OGRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"}];var tt=i(67787);const Xe=tt.Ay.div.withConfig({displayName:"styles__StyledResizerDiv",componentId:"sc-2o9ura-0"})(["position:absolute;z-index:2;& > *{pointer-events:auto;}.square{position:absolute;width:15px;height:15px;&::before{content:'';display:block;width:7px;height:7px;position:absolute;left:4px;top:4px;background-color:#fff;border:1px solid #1684FC;}}.rotate{position:absolute;width:14px;height:14px;background-color:transparent;&.tr{top:-14px;right:-14px;transform:scale(1.5);}&.tl{top:-14px;left:-14px;transform:scale(1.5);}&.br{bottom:-14px;right:-14px;transform:scale(1.5);}&.bl{bottom:-14px;left:-14px;transform:scale(1.5);}}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.tr,&.bl,&.br{z-index:2;}&.tl,&.tr{top:-7px;}&.tl,&.bl{left:-7px;}&.bl,&.br{bottom:-7px;}&.br,&.tr{right:-7px;}&.r,&.l{height:100%;top:3px;}&.r{right:-7px;}&.l{left:-7px;}&.t,&.b{left:3px;width:100%;}&.t{top:-7px;}&.b{bottom:-7px;}}.t,.tl,.tr{top:-7px;}.b,.bl,.br{bottom:-7px;}.r,.tr,.br{right:-7px;}.tl,.l,.bl{left:-7px;}.l,.r{top:50%;margin-top:-7px;}.t,.b{left:50%;margin-left:-7px;}"]);var ne=i(72214);class lt extends a.Component{constructor(){super(...arguments),(0,k.A)(this,"onResize",Un=>{const{style:cn,comment:{canvasCid:nn,cid:Zn,rect:ho},viewport:{scale:Xn,offset:Mo},mode:Zo,dispatch:ia}=this.props,xa={offset:{x:0,y:0},scale:Xn/100},{direction:fa}=Un.currentTarget.dataset,{rotate:zo=0}=ho||{rotate:0};let Ra={...Y.L.applyRect(xa,ho),rotate:zo};Zo==="preview"&&(Ra={...J.rw.xywh(Number(cn.left),Number(cn.top),Number(cn.width),Number(cn.height)),rotate:zo});const Sa=J.rw.center(Ra),ln=(0,l.mk)(Ra,Sa,fa),ta={x:Un.clientX,y:Un.clientY},ko={x:Sa.x-(ln.x-Sa.x),y:Sa.y-(ln.y-Sa.y)};let bo=!0;const aa=dr=>{if(bo){bo=!1;return}ia({type:"entry:comment:be-dragging"});const{style:ni}=this.props,Ir={x:dr.clientX,y:dr.clientY},$a=O.Z.add(ln,O.Z.subtract(Ir,ta)),Va=ve(fa,Ra,{x:ni.left,y:ni.top,w:ni.width,h:ni.height},$a,ko),Ha={x:Va.x,y:Va.y},or={x:Va.x+Va.w,y:Va.y+Va.h};if(Zo==="design"){const gi=Y.L.applyInverse(xa,Ha),Qr=Y.L.applyInverse(xa,or),Qi={x:gi.x,y:gi.y,w:Qr.x-gi.x,h:Qr.y-gi.y,rotate:zo};ia({type:"entry:comment:resize",payload:{cid:Zn,rect:Qi}})}else{const gi=(0,q._p)(Ha,nn,{offset:Mo,scale:Xn/100}),Qr=(0,q._p)(or,nn,{offset:Mo,scale:Xn/100}),Qi={x:gi.x,y:gi.y,w:Qr.x-gi.x,h:Qr.y-gi.y,rotate:zo};ia({type:"entry:comment:resize",payload:{cid:Zn,rect:Qi,screenRect:Va}})}},ma=()=>{ia({type:"entry:comment:benot-dragging",payload:{cid:Zn,undo:!0}}),document.removeEventListener("mousemove",aa,!1),document.removeEventListener("mouseup",ma,!1)};document.addEventListener("mousemove",aa,!1),document.addEventListener("mouseup",ma,!1)}),(0,k.A)(this,"getCursor",Un=>{const cn=(0,l.WR)(Un),nn={};let Zn=-1;return we.forEach(ho=>{const Xn=(0,l.WR)(Oe[ho]+cn),Mo=Be.length;for(;;){Zn=(Zn+1)%Mo;const Zo=Be[Zn];if(Xn<23||Xn>=338){nn[ho]={cursor:Be[0].cursor+"-resize",rotateCursor:Be[0].rotateCursor};return}if(Zo.start<=Xn&&Xn<Zo.end){nn[ho]={cursor:Zo.cursor+"-resize",rotateCursor:Zo.rotateCursor};return}}}),nn})}render(){const{style:Un,comment:{rect:cn}}=this.props,nn=(cn==null?void 0:cn.rotate)||0,Zn=this.getCursor(nn);return(0,ne.jsxs)(Xe,{className:"single-resizer",style:Un,children:[Ae.map(ho=>(0,ne.jsx)("div",{className:ho+" square"},ho)),we.map(ho=>{const Xn=Zn[ho].cursor;return(0,ne.jsx)("div",{style:{cursor:Xn},"data-direction":ho,className:ho+" resizable-handler",onMouseDown:this.onResize},ho)})]})}}const rt=lt;class Te extends a.Component{constructor(){super(...arguments),(0,k.A)(this,"onAnchorMouseDown",Un=>{Un.stopPropagation();const{comment:cn,dispatch:nn}=this.props;nn({type:"entry:comment:anchor:mousedown",payload:{event:Un,comment:cn}})}),(0,k.A)(this,"getAvatar",(Un,cn)=>{if(cn!=null&&cn.includes("/images/avatar.png")||!cn){var nn;return(0,ne.jsx)("div",{className:P()("anchor--anchorLabel"),style:{color:"#FFF",fontSize:"14px",lineHeight:"24px",backgroundColor:"rgba(22, 132, 252)"},children:(nn=Un.slice(0,1))==null?void 0:nn.toUpperCase()})}else return(0,ne.jsx)("img",{className:"anchor--anchorLabel",src:cn,draggable:"false",alt:""})}),(0,k.A)(this,"getAnchorRenderDom",(Un,cn,nn)=>{const Zn=(0,q.ug)(nn),ho=this.getAvatar(Zn.name,Zn.avatar);return(0,ne.jsxs)(ne.Fragment,{children:[Un==="creating"&&(0,ne.jsx)(C.C,{className:"comment-icon",name:"comment/creating_comment",size:38}),Un==="created"&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(C.C,{className:"comment-icon comment-created-icon "+(cn&&"is-active"),name:"comment/created_comment",size:32}),ho]}),Un==="checked"&&(0,ne.jsxs)("span",{style:{opacity:.5},children:[(0,ne.jsx)(C.C,{className:"comment-icon comment-created-icon "+(cn&&"is-active"),name:"comment/created_comment",size:32}),ho]})]})})}render(){const{mode:Un,viewport:cn,comment:nn,activeCommentCid:Zn,dispatch:ho,creatingComment:Xn}=this.props,{cid:Mo,status:Zo,userInfo:ia}=nn,xa=Mo===Zn,fa=Mo===(Xn==null?void 0:Xn.cid),zo=this.getAnchorRenderDom(Zo,xa,ia),{threadType:Ra}=nn,Sa=(0,q.V3)({comment:nn,mode:Un,viewport:cn});return(0,ne.jsx)(ne.Fragment,{children:Ra==="point"?(0,ne.jsx)("div",{"data-cid":Mo,className:P()({"comment-anchor-container point comment-anchor":!0,active:xa}),style:Sa,onMouseDown:this.onAnchorMouseDown,children:zo}):(0,ne.jsxs)("div",{"data-cid":Mo,className:P()("rect-anchor-container",{active:xa,creating:fa}),style:{pointerEvents:"none"},children:[(0,ne.jsx)("div",{className:"comment-anchor-container frame",style:{pointerEvents:"none",position:"absolute",...Sa},children:(0,ne.jsx)("div",{className:P()({"comment-anchor":!0,active:xa}),style:{right:-36.5,top:-32},onMouseDown:this.onAnchorMouseDown,children:zo})}),(0,ne.jsx)("div",{className:"comment-rect-anchor",style:{...Sa},onMouseDown:this.onAnchorMouseDown}),xa&&(0,ne.jsx)(rt,{mode:Un,style:Sa,viewport:cn,comment:nn,dispatch:ho})]})})}}var Ge=i(78401),ue=i(77866),Me=i(28068),Ze=i(84877),fe=i(66360);function it(){return{handleReturn:(_n,Un,cn)=>{const nn=_n.setEditorState,Zn=(0,fe.h_)(cn,Un);return Zn?(nn(Zn),"handled"):"not-handled"},keyBindingFn:(_n,Un)=>[13,38,40].includes(Un.keyCode)?Un.keyCode:(0,Me.K6)(Un),handleKeyCommand:(_n,Un)=>{const cn=_n.getIsInSearch,nn=_n.handleConfirm,{isInSearch:Zn}=cn(),ho=_n.getIsAt();return Zn&&[13,38,40].includes(Un)?"handled":[13,"split-block"].includes(Un)&&!ho?(nn(),"handled"):"not-handled"}}}const Ut=it();var G=i(13642),Ht=i(25234),Tt=i(38182),Vt=i(36518);const He=tt.Ay.span.withConfig({displayName:"styles__StyledEmojiIconDiv",componentId:"sc-1uxa3yv-0"})([".emoji-btn{margin:0 4px;width:28px;height:28px;cursor:pointer;border-radius:4px;color:",";&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";}}.emoji-btn .svg-icon{width:32px;height:32px;}"],_n=>_n.theme.color_text_L1,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_btn_secondary_active),rn=tt.Ay.div.withConfig({displayName:"styles__StyledEmojiToastDiv",componentId:"sc-1uxa3yv-1"})(["pointer-events:auto;position:absolute;width:282px;border-radius:8px;background-color:",";border:1px solid ",";filter:drop-shadow(2px 8px 20px rgba(0,0,0,0.10));cursor:default;z-index:5;.emoji-triangle{width:24px;height:12px;position:absolute;left:24px;top:-12px;g{path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";stroke-opacity:1;fill:none;}}}}.expression-container{width:100%;box-sizing:border-box;padding:10px 0;.expression-title{font-size:12px;flex-wrap:500;line-height:16px;padding:0 20px;margin-bottom:8px;color:",";}.expression-list{color:black;width:100%;height:236px;padding:0 16px;overflow-y:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;.emoji-span{width:30px;height:30px;padding:6px;font-size:20px;border-radius:50%;display:flex;flex-direction:row;justify-content:center;align-items:center;&:hover{background-color:",";}}}}.icon-list{width:100%;box-sizing:border-box;border-top:1px solid ",";padding:15px 16px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.emoji-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";.svg-icon{color:",";}}}.emoji-btn .svg-icon{width:32px;height:32px;}"],_n=>_n.theme.color_bg_white,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_bg_white,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_btn_secondary_hover,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_text_L3,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_text_L1);class Lt extends a.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"ref",null),(0,k.A)(this,"state",{active:!1}),(0,k.A)(this,"handleEmojiAdd",Un=>{let{commentCid:cn,emoji:nn}=Un;const{active:Zn}=this.state;if(!Zn)return;const{commentCid:ho,onValueChange:Xn}=this.props;ho===cn&&Xn&&Xn(nn)}),(0,k.A)(this,"handleClick",()=>{if(!this.ref){this.setState({active:!1});return}const Un=this.ref.getBoundingClientRect();if(!Un){this.setState({active:!1});return}const{recordCid:cn,dispatch:nn}=this.props;let Zn=0;if(cn){const Xn=document.querySelector(".comment-panel-container .comment-record-list");Zn=Xn&&Xn.scrollTop||0}const ho={clientX:Un.x,clientY:Un.y};nn({type:"entry:comment:update:emojiToastStyle",payload:{event:ho,scrollTop:Zn,dom:this.ref}}),this.setState({active:!0})})}componentDidMount(){G.A.on("comment:emoji:add",this.handleEmojiAdd)}componentDidUpdate(){const{emojiToastStyle:Un}=this.props,{left:cn,top:nn}=Un,{active:Zn}=this.state;!cn&&!nn&&Zn&&this.setState({active:!1})}componentWillUnmount(){G.A.off("comment:emoji:add",this.handleEmojiAdd)}render(){const{active:Un}=this.state;return(0,ne.jsx)(He,{className:"emoji-icon",children:(0,ne.jsx)(Tt.A,{iconRef:cn=>{this.ref=cn},className:"emoji-btn",name:I18N.Comment.emoji,icon:"expressions",active:Un,onClick:this.handleClick})})}}const jt=Lt,mt=_n=>{const{confirmIsDisabled:Un,commentCid:cn,recordCid:nn,onAddEmoji:Zn,emojiToastStyle:ho,dispatch:Xn,onConfirm:Mo,onCancel:Zo}=_n,ia=(0,a.useCallback)(()=>{Zo&&Zo()},[Zo]),xa=(0,a.useCallback)(()=>{Un||Mo&&Mo()},[Un,Mo]),fa=(0,a.useCallback)(Ra=>{Zn&&Zn(Ra)},[Zn]),zo=Ra=>{Ra.stopPropagation()};return(0,ne.jsxs)("div",{className:"comment-operation-container clearfix",children:[(0,ne.jsx)("div",{className:"pull-left",onMouseDown:zo,children:(0,ne.jsx)(jt,{commentCid:cn,recordCid:nn,emojiToastStyle:ho,dispatch:Xn,onValueChange:fa})}),(0,ne.jsxs)("div",{className:"pull-right",onMouseDown:zo,children:[(0,ne.jsx)(Ht.Oc,{forceTheme:"light",type:"text",size:"tiny",corner:"soft",className:"operation-btn cancel-btn",onClick:ia,children:I18N.Comment.cancel}),(0,ne.jsx)(Ht.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"operation-btn confirm-btn",disabled:Un,onClick:xa,children:I18N.Comment.submit})]})]})},Jn=(0,a.memo)(mt),{handleKeyCommand:o,handleReturn:so,keyBindingFn:Et}=Ut;class Jt extends a.PureComponent{constructor(Un){super(Un),(0,k.A)(this,"editorRef",null),(0,k.A)(this,"handleCompositionstart",()=>{const{editorState:cn}=this.state,nn=(0,fe.AR)(cn);this.setState({editorState:nn})}),(0,k.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,k.A)(this,"getEditorState",()=>this.state.editorState),(0,k.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,k.A)(this,"getIsAt",()=>{var cn,nn;return((cn=this.props.atStyle)==null?void 0:cn.left)!==0&&((nn=this.props.atStyle)==null?void 0:nn.top)!==0}),(0,k.A)(this,"initFocus",()=>{const cn=Me.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(cn)}),(0,k.A)(this,"handleKeyDown",cn=>{const{atStyle:nn}=this.props,{isInSearch:Zn}=this.state,ho=(nn==null?void 0:nn.left)!==0&&(nn==null?void 0:nn.top)!==0;if((Zn||ho)&&[13,38,40].includes(cn.keyCode))return cn.preventDefault(),!1;const{dispatch:Xn}=this.props;cn.keyCode===27&&Xn({type:"entry:comment:create:esc"})}),(0,k.A)(this,"handleAddEmoji",cn=>{const{editorState:nn}=this.state,Zn=Me.e6.insertText(nn.getCurrentContent(),nn.getSelection(),cn,nn.getCurrentInlineStyle()),ho=Me.$t.push(nn,Zn,"insert-characters");this.handleEditorStateChange(ho)}),(0,k.A)(this,"handleCancel",()=>{const{onCancel:cn}=this.props;cn&&cn()}),(0,k.A)(this,"handleConfirm",()=>{var cn;const{editorRawContentObject:nn,onConfirm:Zn}=this.props;(cn=nn.blocks)!=null&&(cn=cn[0])!=null&&cn.text&&Zn&&Zn()}),(0,k.A)(this,"handleFocus",()=>{var cn;const{isEditing:nn,editorRawContentObject:Zn,isCreating:ho,onChange:Xn}=this.props;if(!nn&&Xn({isEditing:!0}),(cn=Zn.blocks)!=null&&(cn=cn[0])!=null&&cn.text||ho)return;const{insertText:Mo,insertUrl:Zo}=this.insertEntity;if(!Mo||!Zo)return;const{editorState:ia}=this.state,xa=(0,fe.ts)(ia,Mo,Zo);this.handleEditorStateChange(xa)}),(0,k.A)(this,"onSearchChange",cn=>{const{isInSearch:nn}=this.state,{dispatch:Zn}=this.props,[ho,Xn,Mo]=(0,fe.Aw)(cn);if(!ho){this.state.isInSearch&&(Zn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!nn){const Zo=this.editorRef.getBoundingClientRect(),ia={clientX:Zo.x,clientY:Zo.y};Zn({type:"entry:comment:update:atStyle",payload:{event:ia,dom:this.editorRef}}),Zn({type:"comment:update:atStyle",payload:{atStyle:{keywords:Xn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:Mo});return}Zn({type:"comment:update:atStyle",payload:{atStyle:{keywords:Xn}}}),this.setState({inSearchSelectionJson:Mo})}),(0,k.A)(this,"handleAtChange",cn=>{let{user:nn,commentCid:Zn,recordCid:ho}=cn;if(ho)return;const{cid:Xn}=this.props;if(Xn!==Zn||!nn)return;const Zo="@"+(nn.name||nn.email||nn.mobile||nn.user_cid),ia="userCid:"+nn.user_cid,{editorState:xa,inSearchSelectionJson:fa}=this.state,zo=(0,fe.dy)(xa,fa,Zo,ia);this.handleEditorStateChange(zo,!0,!0)}),(0,k.A)(this,"handleEditorStateChange",(cn,nn,Zn)=>{const{onChange:ho,dispatch:Xn}=this.props;Zn?(Xn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:cn,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:cn}),setTimeout(()=>{nn||this.onSearchChange(cn)},10);const Mo=(0,Me.dM)(cn.getCurrentContent());ho({editorRawContentObject:Mo})}),(0,k.A)(this,"handlePastedText",(cn,nn,Zn)=>{if(!cn)return"not-handled";const ho=Me.e6.replaceText(Zn.getCurrentContent(),Zn.getSelection(),cn.replace(/\s/g,"").replace(/&nbsp;/g,"").trim());return this.handleEditorStateChange(Me.$t.push(Zn,ho,"insert-fragment")),"handled"}),(0,k.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:cn}=this.state;cn||this.initFocus()}}),(0,k.A)(this,"handleMouseDown",(cn,nn)=>{let{confirmIsDisabled:Zn}=nn;Zn||cn.stopPropagation()}),this.state={editorState:Me.$t.createEmpty(),isInSearch:!1,inSearchSelectionJson:null}}get insertEntity(){const{isCreating:Un,comment:cn,members:nn}=this.props;if(Un)return{insertText:"",insertUrl:""};const{user:Zn}=window.MB,{userInfo:ho}=cn;if(Zn.cid===ho.cid)return{insertText:"",insertUrl:""};const Xn=nn.find(xa=>xa.user_cid===ho.cid);Xn&&(ho.name=Xn.name,ho.avatar=Xn.avatar,ho.email=Xn.email);const Zo="\u56DE\u590D@"+((ho==null?void 0:ho.name)||ho.email||ho.mobile||ho.cid)+": ",ia="replyUserCid:"+ho.cid;return{insertText:Zo,insertUrl:ia}}componentDidMount(){const{isCreating:Un}=this.props;if(Un&&this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),G.A.on("comment:at:add",this.handleAtChange),this.editorRef){const cn=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');cn&&cn.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(Un){Un.length!==this.props.length&&this.props.editorRawContentObject===""&&this.setState({editorState:Me.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)}),Un.isEditing!==this.props.isEditing&&this.props.isEditing===!1&&this.setState({editorState:Me.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)})}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),G.A.off("comment:at:add",this.handleAtChange),this.editorRef){const Un=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Un&&Un.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var Un;const{cid:cn,placeholder:nn,isEditing:Zn,isRecordEditing:ho,editorRawContentObject:Xn,emojiToastStyle:Mo,dispatch:Zo}=this.props,{editorState:ia}=this.state,{insertText:xa}=this.insertEntity,fa=xa||nn,zo=ho||!(Xn&&(Un=Xn.blocks)!=null&&(Un=Un[0])!=null&&Un.text);return(0,ne.jsxs)("div",{className:"comment-text-area",children:[(0,ne.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,onMouseDown:Ra=>this.handleMouseDown(Ra,{confirmIsDisabled:zo}),children:(0,ne.jsx)(Ze.c,{editorRef:Ra=>{this.editorRef=Ra},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:fa,editorState:ia,onEditorStateChange:this.handleEditorStateChange,onFocus:this.handleFocus,handlePastedText:this.handlePastedText,keyBindingFn:Et.bind(this,this.getPluginMethods()),handleKeyCommand:o.bind(this,this.getPluginMethods()),handleReturn:so.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}},cn)}),Zn&&(0,ne.jsx)(Jn,{commentCid:cn,confirmIsDisabled:zo,emojiToastStyle:Mo,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:Zo})]})}}const Ot=Jt,dn=_n=>{const{cid:Un,commentIsEditing:cn,isRecordEditing:nn,length:Zn,isCreating:ho,placeholder:Xn,comment:Mo,emojiToastStyle:Zo,editorRawContentObject:ia,viewType:xa,members:fa,atStyle:zo,dispatch:Ra}=_n,{threadType:Sa,canvasCid:ln}=Mo,ta=(0,a.useCallback)(()=>{Ra({type:"entry:comment:confirm",payload:{cid:Un}}),(0,ue.i4)({operation_type:ho?ue.nU.Create:ue.nU.Response,comment_type:ue.ej[Sa],relation:!!ln,operation_from:ue.HI[xa]})},[ln,Un,Ra,ho,Sa,xa]),ko=(0,a.useCallback)(()=>{Ra({type:"entry:comment:cancel"})},[Ra]),bo=(0,a.useCallback)(aa=>{let{isEditing:ma,rawContent:dr,editorRawContentObject:ni}=aa;ma&&(Ra({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),Ra({type:"comment:update:editingCommentCid",payload:{editingCommentCid:Un}})),ni&&Ra({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:ni}})},[Un,Ra]);return(0,ne.jsx)("div",{className:"comment-text-input-component",children:(0,ne.jsx)(Ot,{cid:Un,editorRawContentObject:ia,isEditing:cn,isRecordEditing:nn,placeholder:Xn,comment:Mo,length:Zn,isCreating:ho,emojiToastStyle:Zo,members:fa,atStyle:zo,onChange:bo,onConfirm:ta,onCancel:ko,dispatch:Ra})})},Ce=(0,a.memo)(dn);var Pt=i(55244),Nn=i(34860),At=i(30024),on=i(69815),no=i(86493),mo=i(46745);const{handleKeyCommand:mn,handleReturn:ht,keyBindingFn:Fn}=Ut;class Yt extends a.PureComponent{constructor(Un){super(Un),(0,k.A)(this,"editorRef",null),(0,k.A)(this,"getInitData",Zn=>{const ho=(0,no.mx)(Zn);return(0,mo.n)(ho)}),(0,k.A)(this,"handleCompositionstart",()=>{const{editorState:Zn}=this.state,ho=(0,fe.AR)(Zn);this.setState({editorState:ho})}),(0,k.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,k.A)(this,"handleCompositionstart",()=>{const{editorState:Zn}=this.state,ho=(0,fe.AR)(Zn);this.setState({editorState:ho})}),(0,k.A)(this,"getEditorState",()=>this.state.editorState),(0,k.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,k.A)(this,"getIsAt",()=>{var Zn,ho;return((Zn=this.props.atStyle)==null?void 0:Zn.left)!==0&&((ho=this.props.atStyle)==null?void 0:ho.top)!==0}),(0,k.A)(this,"initFocus",()=>{const Zn=Me.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(Zn)}),(0,k.A)(this,"handleKeyDown",Zn=>{const{isInSearch:ho}=this.state;if(ho&&[13,38,40].includes(Zn.keyCode))return Zn.preventDefault(),!1}),(0,k.A)(this,"handleAddEmoji",Zn=>{const{editorState:ho}=this.state,Xn=Me.e6.insertText(ho.getCurrentContent(),ho.getSelection(),Zn,ho.getCurrentInlineStyle()),Mo=Me.$t.push(ho,Xn,"insert-characters");this.handleEditorStateChange(Mo)}),(0,k.A)(this,"handleCancel",()=>{const{onCancel:Zn}=this.props;Zn&&Zn()}),(0,k.A)(this,"handleConfirm",()=>{const{onConfirm:Zn}=this.props,{editorState:ho}=this.state,Xn=(0,Me.dM)(ho.getCurrentContent());Zn&&Zn(Xn)}),(0,k.A)(this,"onSearchChange",Zn=>{const{isInSearch:ho}=this.state,{recordCid:Xn,dispatch:Mo}=this.props,[Zo,ia,xa]=(0,fe.Aw)(Zn);if(!Zo){this.state.isInSearch&&(Mo({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!ho){const fa=this.editorRef.getBoundingClientRect(),zo={clientX:fa.x,clientY:fa.y};Mo({type:"entry:comment:update:atStyle",payload:{event:zo,dom:this.editorRef}}),Mo({type:"comment:update:atStyle",payload:{atStyle:{keywords:ia,recordCid:Xn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:xa});return}ia!==this.state.searchText&&(Mo({type:"comment:update:atStyle",payload:{atStyle:{keywords:ia,recordCid:Xn}}}),this.setState({inSearchSelectionJson:xa}))}),(0,k.A)(this,"handleAtChange",Zn=>{let{user:ho,commentCid:Xn,recordCid:Mo}=Zn;const{commentCid:Zo,recordCid:ia}=this.props;if(Zo!==Xn||ia!==Mo||!ho)return;const fa="@"+(ho.name||ho.email||ho.mobile||ho.user_cid),zo="userCid:"+ho.user_cid,{editorState:Ra,inSearchSelectionJson:Sa}=this.state,ln=(0,fe.dy)(Ra,Sa,fa,zo);this.handleEditorStateChange(ln,!0,!0)}),(0,k.A)(this,"handleEditorStateChange",(Zn,ho,Xn)=>{const{dispatch:Mo}=this.props,Zo=(0,Me.dM)(Zn.getCurrentContent());Xn?(Mo({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:Zn,curContentObject:Zo,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:Zn,curContentObject:Zo}),setTimeout(()=>{ho||this.onSearchChange(Zn)},10)}),(0,k.A)(this,"handlePastedText",(Zn,ho,Xn)=>{if(!Zn)return"not-handled";const Mo=Me.e6.replaceText(Xn.getCurrentContent(),Xn.getSelection(),Zn.replace(/\s/g,"").replace(/&nbsp;/g,"").trim());return this.handleEditorStateChange(Me.$t.push(Xn,Mo,"insert-fragment")),"handled"}),(0,k.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:Zn}=this.state;Zn||this.initFocus()}}),(0,k.A)(this,"handleMouseDown",(Zn,ho)=>{let{confirmIsDisabled:Xn}=ho;Xn||Zn.stopPropagation()});const{message:cn}=Un,nn=this.getInitData(cn);this.state={searchText:"",editorState:nn,curContentObject:(0,no.mx)(cn),isInSearch:!1,inSearchSelectionJson:null}}componentDidMount(){if(this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),G.A.on("comment:at:add",this.handleAtChange),this.editorRef){const Un=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Un&&Un.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),G.A.off("comment:at:add",this.handleAtChange),this.editorRef){const Un=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Un&&Un.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var Un;const{commentCid:cn,recordCid:nn,emojiToastStyle:Zn,dispatch:ho}=this.props,{editorState:Xn,curContentObject:Mo}=this.state,Zo=!(Mo&&(Un=Mo.blocks)!=null&&(Un=Un[0])!=null&&Un.text);return(0,ne.jsxs)("div",{className:"comment-text-area comment-record-text-area",onMouseDown:ia=>{this.handleMouseDown(ia,{confirmIsDisabled:Zo})},children:[(0,ne.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,children:(0,ne.jsx)(Ze.c,{editorRef:ia=>{this.editorRef=ia},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:"\u8F93\u5165\u8BC4\u8BBA",editorState:Xn,onEditorStateChange:this.handleEditorStateChange,handlePastedText:this.handlePastedText,keyBindingFn:Fn.bind(this,this.getPluginMethods()),handleKeyCommand:mn.bind(this,this.getPluginMethods()),handleReturn:ht.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}})}),(0,ne.jsx)(Jn,{recordCid:nn,commentCid:cn,emojiToastStyle:Zn,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:ho,confirmIsDisabled:Zo})]})}}const Gt=Yt,Bn=_n=>{const{isEditing:Un,commentCid:cn,record:nn,emojiToastStyle:Zn,atStyle:ho,dispatch:Xn}=_n,{cid:Mo,message:Zo}=nn,ia=(0,a.useMemo)(()=>(0,on.vp)(Zo,!0),[Zo]),xa=(0,a.useCallback)(zo=>{Xn({type:"entry:comment:record:confirm",payload:{cid:cn,recordCid:Mo,rawContent:zo}})},[cn,Mo,Xn]),fa=(0,a.useCallback)(()=>{Xn({type:"entry:comment:record:cancel",payload:{cid:cn,recordCid:Mo}})},[cn,Mo,Xn]);return(0,ne.jsx)("div",{className:"record-content-component",children:Un?(0,ne.jsx)(Gt,{commentCid:cn,recordCid:Mo,message:Zo,emojiToastStyle:Zn,atStyle:ho,onConfirm:xa,onCancel:fa,dispatch:Xn}):(0,ne.jsx)("div",{onMouseDown:zo=>{zo.stopPropagation()},className:"record-plain-text",readOnly:!0,dangerouslySetInnerHTML:{__html:ia}})})},qt=(0,a.memo)(Bn),Zt=[{label:"edit",value:"edit"},{label:"delete",value:"delete"}],ro=_n=>{var Un;const{commentCid:cn,commentStatus:nn,index:Zn,record:ho,editingRecordCid:Xn,prevRecord:Mo,emojiToastStyle:Zo,dispatch:ia,comment:xa,viewType:fa,atStyle:zo,theme:Ra}=_n,{cid:Sa,userInfo:ln,ctime:ta,mtime:ko}=ho,{threadType:bo,canvasCid:aa}=xa||{},[ma,dr]=(0,a.useState)(""),ni=!!ko,{user:Ir}=window.MB,$a=(0,a.useMemo)(()=>Zn!==0,[Zn]),Va=(0,q.ug)(ln);(0,a.useEffect)(()=>{const Li=ni?ko:ta,ns=(0,Pt.zW)(Li);dr(ns)},[ko]);const Ha=(0,a.useMemo)(()=>{let Li=Zt;return(Ir==null?void 0:Ir.cid)!==(Va==null?void 0:Va.cid)&&(Li=Li.filter(ns=>!["edit","delete"].includes(ns.value))),Li},[Ir,Va]),or=(0,a.useMemo)(()=>Xn===Sa,[Xn,Sa]),gi=(0,a.useMemo)(()=>Ir.cid!==(Va==null?void 0:Va.cid)?!1:or,[or,Ir,Va]),Qr=(0,a.useCallback)(Li=>{Li==="edit"&&(!or&&ia({type:"entry:comment:record:editing",payload:{cid:cn,recordCid:Sa}}),(0,ue.i4)({operation_type:ue.nU.edit,comment_type:ue.ej[bo],relation:!!aa,operation_from:ue.HI[fa]})),Li==="delete"&&(Zn===0&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,theme:Ra,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc}).then(ns=>{ns&&ia({type:"entry:comment:delete",payload:{cid:cn}}),ns&&(0,ue.i4)({operation_type:ue.nU.deleteInEditArea,comment_type:ue.ej[bo],relation:!!aa,operation_from:ue.HI[fa]})}),Zn!==0&&ia({type:"entry:comment:record:delete",payload:{cid:cn,recordCid:Sa}}))},[or,ia,cn,Sa,bo,aa,fa,Zn]),Qi=(0,a.useCallback)(()=>{ia({type:"entry:comment:checked",payload:{cid:cn,status:nn!=="checked"}}),(0,ue.i4)({operation_type:nn==="checked"?ue.nU.CancelFinishInEditArea:ue.nU.FinishInEditArea,comment_type:ue.ej[bo],relation:!!aa,operation_from:ue.HI[fa]})},[ia,cn,nn,bo,aa,fa]),rs=(0,a.useMemo)(()=>Zn===1,[Zn]);return(0,ne.jsxs)("div",{className:P()("record-item-container",{isReply:$a,isFirstReplay:rs}),children:[(0,ne.jsxs)("div",{className:"top-area",children:[(0,ne.jsxs)("div",{className:"left-content",children:[(0,ne.jsx)("div",{className:"avatar-container",children:Va.avatar&&!Va.avatar.includes("/images/avatar.png")?(0,ne.jsx)("img",{className:"image-avatar",src:Va.avatar,alt:"avatar"}):(0,ne.jsx)("span",{className:"image-avatar isSpan",children:(Un=Va.name.substring(0,1))==null?void 0:Un.toUpperCase()})}),(0,ne.jsxs)("div",{className:"name-item",children:[Va.name&&(0,ne.jsx)("h3",{className:"user-name",children:Va.name}),(0,ne.jsxs)("p",{className:"update-time",children:[ma,ni&&(0,ne.jsx)("span",{className:"isEdited-text",children:I18N.Comment.edited})]})]})]}),(0,ne.jsxs)("div",{className:"operation-item",children:[!Mo&&((0,Nn.OB)()||MB.canEditByCurrentUser||Va.cid===Ir.cid)&&(0,ne.jsx)(Tt.A,{className:"toolbar-btn comment-check-btn "+nn,name:nn==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:nn==="checked"?"checked":"un_checked",onClick:Qi}),Ha.length>0&&(0,ne.jsx)(At.A,{options:Ha,onChange:Qr})]})]}),(0,ne.jsx)("div",{className:"bottom-area",children:(0,ne.jsx)(qt,{commentCid:cn,record:ho,isEditing:gi,emojiToastStyle:Zo,atStyle:zo,dispatch:ia})})]})};class Tn extends a.Component{constructor(Un){super(Un),(0,k.A)(this,"panelRef",null),(0,k.A)(this,"listRef",null),(0,k.A)(this,"handleWheel",Xn=>{Xn.stopPropagation(),(Xn.metaKey||Xn.ctrlKey)&&Xn.preventDefault()}),(0,k.A)(this,"handleMouseDown",Xn=>{Xn.stopPropagation();const{mode:Mo}=this.props,Zo={x:Xn.clientX,y:Xn.clientY},ia=this.state.style,xa=document.elementFromPoint(Xn.clientX,Xn.clientY),fa=document.querySelector("#"+Mo+"-comment-view-container .comment-check-btn");if(fa&&fa.contains(xa))return;const zo=document.querySelector("#"+Mo+"-comment-view-container .comment-more-btn");zo&&zo.contains(xa)||(0,Ge.FJ)({onDrag:(Ra,Sa)=>{const ln={x:Ra,y:Sa},ta=O.Z.subtract(ln,Zo),{x:ko,y:bo}=O.Z.add(O.Z.xy(ia.left,ia.top),ta),aa={...ia,left:ko,top:bo};this.setState({style:aa})},onDrop:()=>{}})}),(0,k.A)(this,"scrollToBottom",()=>{if(!this.listRef)return;const{scrollHeight:Xn,clientHeight:Mo}=this.listRef;Xn!==Mo&&(0,Ge.VG)(this.listRef,Xn-Mo,200)});const{comment:cn,viewport:nn,mode:Zn}=Un,ho=cn.status==="creating"?[]:[{...cn},...cn.comments];this.state={style:(0,q.KA)({comment:cn,viewport:nn,mode:Zn,recordList:ho})}}componentDidMount(){this.panelRef&&this.panelRef.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(Un){const{viewport:cn,emojiToastStyle:nn,atStyle:Zn,comment:ho,dispatch:Xn,activeCommentCid:Mo,mode:Zo}=this.props,{left:ia,top:xa}=nn,{left:fa,top:zo}=Zn;JSON.stringify(Un.viewport)!==JSON.stringify(cn)&&(ia||xa)&&Xn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}),JSON.stringify(Un.viewport)!==JSON.stringify(cn)&&(fa||zo)&&Xn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});const{comments:Ra}=ho,Sa=ho.status==="creating"?[]:[{...ho},...ho.comments];Un.comment.comments.length!==Ra.length&&this.scrollToBottom(),Mo!==Un.activeCommentCid&&this.setState({style:(0,q.KA)({comment:ho,viewport:cn,mode:Zo,recordList:Sa})}),Un.viewport.scale!==cn.scale&&this.setState({style:(0,q.KA)({comment:ho,viewport:cn,mode:Zo,recordList:Sa})})}componentWillUnmount(){this.panelRef&&this.panelRef.removeEventListener("wheel",this.handleWheel,{passive:!1});const{emojiToastStyle:Un,dispatch:cn}=this.props,{left:nn,top:Zn}=Un;(nn||Zn)&&cn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}render(){const{comment:Un,wigglingCommentCid:cn,editorRawContentObject:nn,commentIsEditing:Zn,editingRecordCid:ho,emojiToastStyle:Xn,viewType:Mo,members:Zo,atStyle:ia,theme:xa,dispatch:fa}=this.props,{cid:zo,comments:Ra,status:Sa}=Un,ln=Sa==="creating";let ta,ko;ln?(ko=I18N.Comment.add_a_comment,ta=[]):(ko=I18N.Comment.reply,ta=[{...Un},...Ra]);const{style:bo}=this.state,aa=ta.some(ma=>ma.cid===ho);return(0,ne.jsxs)("div",{className:P()({"comment-panel-container":!0,"wiggle--wiggle--animate":zo===cn}),style:bo,ref:ma=>{this.panelRef=ma},onMouseDown:this.handleMouseDown,children:[ta&&ta.length>0&&(0,ne.jsx)("div",{className:"comment-record-list",ref:ma=>{this.listRef=ma},children:ta.map((ma,dr)=>{let ni=null;return dr>0&&(ni=ta[dr-1]),(0,ne.jsx)(ro,{index:dr,commentStatus:Sa,commentCid:zo,record:ma,editingRecordCid:ho,emojiToastStyle:Xn,prevRecord:ni,dispatch:fa,comment:Un,viewType:Mo,atStyle:ia,theme:xa},ma.cid)})}),(0,ne.jsx)(Ce,{cid:zo,commentIsEditing:Zn,isRecordEditing:aa,isCreating:ln,length:ta.length,placeholder:ko,editorRawContentObject:nn,comment:Un,emojiToastStyle:Xn,viewType:Mo,members:Zo,atStyle:ia,dispatch:fa})]})}}const bt=Tn;var Wt=i(27660);const wn=["\u{1F604}","\u{1F606}","\u{1F60A}","\u{1F603}","\u{1F60F}","\u{1F60D}","\u{1F618}","\u{1F61A}","\u{1F633}","\u{1F60C}","\u{1F601}","\u{1F609}","\u{1F61C}","\u{1F61D}","\u{1F600}","\u{1F617}","\u{1F619}","\u{1F61B}","\u{1F634}","\u{1F61F}","\u{1F626}","\u{1F627}","\u{1F62E}","\u{1F62C}","\u{1F615}","\u{1F62F}","\u{1F611}","\u{1F612}","\u{1F605}","\u{1F613}","\u{1F625}","\u{1F629}","\u{1F614}","\u{1F61E}","\u{1F616}","\u{1F628}","\u{1F630}","\u{1F623}","\u{1F622}","\u{1F62D}","\u{1F602}","\u{1F632}","\u{1F631}","\u{1F62B}","\u{1F620}","\u{1F621}","\u{1F624}","\u{1F62A}","\u{1F60B}","\u{1F637}","\u{1F60E}","\u{1F635}","\u{1F47F}","\u{1F608}","\u{1F610}","\u{1F636}","\u{1F607}","\u{1F47D}","\u{1F49B}","\u{1F499}","\u{1F49C}","\u2764\uFE0F","\u{1F49A}","\u{1F494}","\u{1F493}","\u{1F497}","\u{1F495}","\u{1F49E}","\u{1F498}","\u{1F496}","\u2728","\u2B50","\u{1F31F}","\u{1F4AB}","\u{1F4A5}","\u{1F4A2}","\u2757","\u2753","\u2755","\u2754","\u{1F4A4}","\u{1F4A8}","\u{1F4A6}","\u{1F3B6}","\u{1F3B5}","\u{1F525}","\u{1F4A9}","\u{1F44D}","\u{1F44E}","\u{1F44C}","\u{1F44A}","\u270A","\u270C\uFE0F","\u{1F44B}","\u270B","\u{1F450}","\u261D\uFE0F","\u{1F447}","\u{1F448}","\u{1F449}","\u{1F64C}","\u{1F64F}","\u{1F446}","\u{1F44F}","\u{1F4AA}","\u{1F918}","\u{1F595}","\u{1F6B6}","\u{1F3C3}","\u{1F46B}","\u{1F46A}","\u{1F46C}","\u{1F46D}","\u{1F483}","\u{1F46F}","\u{1F646}\u200D\u2640\uFE0F","\u{1F645}","\u{1F481}","\u{1F64B}","\u{1F470}","\u{1F647}","\u{1F48F}","\u{1F491}","\u{1F486}","\u{1F487}","\u{1F485}","\u{1F466}","\u{1F467}","\u{1F469}","\u{1F468}","\u{1F476}","\u{1F475}","\u{1F474}","\u{1F472}","\u{1F473}\u200D\u2642\uFE0F","\u{1F477}","\u{1F46E}","\u{1F47C}","\u{1F478}","\u{1F63A}","\u{1F638}","\u{1F63B}","\u{1F63D}","\u{1F63C}","\u{1F640}","\u{1F63F}","\u{1F639}","\u{1F63E}","\u{1F479}","\u{1F47A}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F482}\u200D\u2642\uFE0F","\u{1F480}","\u{1F43E}","\u{1F444}","\u{1F48B}","\u{1F4A7}","\u{1F442}","\u{1F440}","\u{1F443}","\u{1F445}","\u{1F48C}","\u{1F464}","\u{1F465}","\u{1F4AC}","\u{1F4AD}"],uo=["\u2600\uFE0F","\u2614","\u2601\uFE0F","\u2744\uFE0F","\u26C4","\u26A1","\u{1F300}","\u{1F301}","\u{1F30A}","\u{1F431}","\u{1F436}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F43A}","\u{1F438}","\u{1F42F}","\u{1F428}","\u{1F43B}","\u{1F437}","\u{1F43D}","\u{1F42E}","\u{1F417}","\u{1F435}","\u{1F412}","\u{1F434}","\u{1F40E}","\u{1F42B}","\u{1F411}","\u{1F418}","\u{1F43C}","\u{1F40D}","\u{1F426}","\u{1F424}","\u{1F425}","\u{1F423}","\u{1F414}","\u{1F427}","\u{1F422}","\u{1F41B}","\u{1F41D}","\u{1F41C}","\u{1F41E}","\u{1F40C}","\u{1F419}","\u{1F420}","\u{1F41F}","\u{1F433}","\u{1F40B}","\u{1F42C}","\u{1F404}","\u{1F40F}","\u{1F400}","\u{1F403}","\u{1F405}","\u{1F407}","\u{1F409}","\u{1F410}","\u{1F413}","\u{1F415}","\u{1F416}","\u{1F401}","\u{1F402}","\u{1F432}","\u{1F421}","\u{1F40A}","\u{1F42A}","\u{1F406}","\u{1F408}","\u{1F429}","\u{1F43E}","\u{1F490}","\u{1F338}","\u{1F337}","\u{1F340}","\u{1F339}","\u{1F33B}","\u{1F33A}","\u{1F341}","\u{1F343}","\u{1F342}","\u{1F33F}","\u{1F344}","\u{1F335}","\u{1F334}","\u{1F332}","\u{1F333}","\u{1F330}","\u{1F331}","\u{1F33C}","\u{1F33E}","\u{1F41A}","\u{1F310}","\u{1F31E}","\u{1F31D}","\u{1F31A}","\u{1F311}","\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F31C}","\u{1F31B}","\u{1F30D}","\u{1F30E}","\u{1F30F}","\u{1F30B}","\u{1F30C}","\u26C5"],In=["\u{1F38D}","\u{1F49D}","\u{1F38E}","\u{1F392}","\u{1F393}","\u{1F38F}","\u{1F386}","\u{1F387}","\u{1F390}","\u{1F391}","\u{1F383}","\u{1F47B}","\u{1F385}","\u{1F384}","\u{1F381}","\u{1F514}","\u{1F515}","\u{1F38B}","\u{1F389}","\u{1F38A}","\u{1F388}","\u{1F52E}","\u{1F4BF}","\u{1F4C0}","\u{1F4BE}","\u{1F4F7}","\u{1F4F9}","\u{1F3A5}","\u{1F4BB}","\u{1F4FA}","\u{1F4F1}","\u260E\uFE0F","\u{1F4DE}","\u{1F4DF}","\u{1F4E0}","\u{1F4BD}","\u{1F4FC}","\u{1F509}","\u{1F508}","\u{1F507}","\u{1F4E2}","\u{1F4E3}","\u231B","\u23F3","\u23F0","\u231A","\u{1F4FB}","\u{1F4E1}","\u27BF","\u{1F50D}","\u{1F50E}","\u{1F513}","\u{1F512}","\u{1F50F}","\u{1F510}","\u{1F511}","\u{1F4A1}","\u{1F526}","\u{1F506}","\u{1F505}","\u{1F50C}","\u{1F50B}","\u{1F4F2}","\u2709\uFE0F","\u{1F4EB}","\u{1F4EE}","\u{1F6C0}","\u{1F6C1}","\u{1F6BF}","\u{1F6BD}","\u{1F527}","\u{1F529}","\u{1F528}","\u{1F4BA}","\u{1F4B0}","\u{1F4B4}","\u{1F4B5}","\u{1F4B7}","\u{1F4B6}","\u{1F4B3}","\u{1F4B8}","\u{1F4E7}","\u{1F4E5}","\u{1F4E4}","\u{1F4E8}","\u{1F4EF}","\u{1F4EA}","\u{1F4EC}","\u{1F4ED}","\u{1F4E6}","\u{1F6AA}","\u{1F6AC}","\u{1F4A3}","\u{1F52B}","\u{1F52A}","\u{1F48A}","\u{1F489}","\u{1F4C4}","\u{1F4C3}","\u{1F4D1}","\u{1F4CA}","\u{1F4C8}","\u{1F4C9}","\u{1F4DC}","\u{1F4CB}","\u{1F4C6}","\u{1F4C5}","\u{1F4C7}","\u{1F4C1}","\u{1F4C2}","\u2702\uFE0F","\u{1F4CC}","\u{1F4CE}","\u2712\uFE0F","\u270F\uFE0F","\u{1F4CF}","\u{1F4D0}","\u{1F4D5}","\u{1F4D7}","\u{1F4D8}","\u{1F4D9}","\u{1F4D3}","\u{1F4D4}","\u{1F4D2}","\u{1F4DA}","\u{1F516}","\u{1F4DB}","\u{1F52C}","\u{1F52D}","\u{1F4F0}","\u{1F3C8}","\u{1F3C0}","\u26BD","\u26BE","\u{1F3BE}","\u{1F3B1}","\u{1F3C9}","\u{1F3B3}","\u26F3","\u{1F6B5}","\u{1F6B4}","\u{1F3C7}","\u{1F3C2}","\u{1F3CA}","\u{1F3C4}","\u{1F3BF}","\u2660\uFE0F","\u2665\uFE0F","\u2663\uFE0F","\u2666\uFE0F","\u{1F48E}","\u{1F48D}","\u{1F3C6}","\u{1F3BC}","\u{1F3B9}","\u{1F3BB}","\u{1F47E}","\u{1F3AE}","\u{1F0CF}","\u{1F3B4}","\u{1F3B2}","\u{1F3AF}","\u{1F004}","\u{1F3AC}","\u{1F4DD}","\u{1F4D6}","\u{1F3A8}","\u{1F3A4}","\u{1F3A7}","\u{1F3BA}","\u{1F3B7}","\u{1F3B8}","\u{1F45E}","\u{1F461}","\u{1F460}","\u{1F484}","\u{1F462}","\u{1F455}","\u{1F454}","\u{1F45A}","\u{1F457}","\u{1F3BD}","\u{1F456}","\u{1F458}","\u{1F459}","\u{1F380}","\u{1F3A9}","\u{1F451}","\u{1F452}","\u{1F302}","\u{1F4BC}","\u{1F45C}","\u{1F45D}","\u{1F45B}","\u{1F453}","\u{1F3A3}","\u2615","\u{1F375}","\u{1F376}","\u{1F37C}","\u{1F37A}","\u{1F37B}","\u{1F378}","\u{1F379}","\u{1F377}","\u{1F374}","\u{1F355}","\u{1F354}","\u{1F35F}","\u{1F357}","\u{1F356}","\u{1F35D}","\u{1F35B}","\u{1F364}","\u{1F371}","\u{1F363}","\u{1F365}","\u{1F359}","\u{1F358}","\u{1F35A}","\u{1F35C}","\u{1F372}","\u{1F362}","\u{1F361}","\u{1F95A}","\u{1F35E}","\u{1F369}","\u{1F36E}","\u{1F366}","\u{1F368}","\u{1F367}","\u{1F382}","\u{1F370}","\u{1F36A}","\u{1F36B}","\u{1F36C}","\u{1F36D}","\u{1F36F}","\u{1F34E}","\u{1F34F}","\u{1F34A}","\u{1F34B}","\u{1F352}","\u{1F347}","\u{1F349}","\u{1F353}","\u{1F351}","\u{1F348}","\u{1F34C}","\u{1F350}","\u{1F34D}","\u{1F360}","\u{1F346}","\u{1F345}","\u{1F33D}"],Dn=["\u{1F3E0}","\u{1F3E1}","\u{1F3EB}","\u{1F3E2}","\u{1F3E3}","\u{1F3E5}","\u{1F3E6}","\u{1F3EA}","\u{1F3E9}","\u{1F3E8}","\u{1F492}","\u26EA","\u{1F3EC}","\u{1F3E4}","\u{1F307}","\u{1F306}","\u{1F3EF}","\u{1F3F0}","\u26FA","\u{1F3ED}","\u{1F5FC}","\u{1F5FE}","\u{1F5FB}","\u{1F304}","\u{1F305}","\u{1F320}","\u{1F5FD}","\u{1F309}","\u{1F3A0}","\u{1F308}","\u{1F3A1}","\u26F2","\u{1F3A2}","\u{1F6A2}","\u{1F6A4}","\u26F5","\u{1F6A3}","\u2693","\u{1F680}","\u2708\uFE0F","\u{1F681}","\u{1F682}","\u{1F68A}","\u{1F69E}","\u{1F6B2}","\u{1F6A1}","\u{1F69F}","\u{1F6A0}","\u{1F69C}","\u{1F699}","\u{1F698}","\u{1F697}","\u{1F695}","\u{1F696}","\u{1F69B}","\u{1F68C}","\u{1F68D}","\u{1F6A8}","\u{1F693}","\u{1F694}","\u{1F692}","\u{1F691}","\u{1F690}","\u{1F69A}","\u{1F68B}","\u{1F689}","\u{1F686}","\u{1F685}","\u{1F684}","\u{1F688}","\u{1F69D}","\u{1F683}","\u{1F68E}","\u{1F3AB}","\u26FD","\u{1F6A6}","\u{1F6A5}","\u26A0\uFE0F","\u{1F6A7}","\u{1F530}","\u{1F3E7}","\u{1F3B0}","\u{1F68F}","\u{1F488}","\u2668\uFE0F","\u{1F3C1}","\u{1F38C}","\u{1F3EE}","\u{1F5FF}","\u{1F3AA}","\u{1F3AD}","\u{1F4CD}","\u{1F6A9}","\u{1F1EF}\u{1F1F5}","\u{1F1F0}\u{1F1F7}","\u{1F1E8}\u{1F1F3}","\u{1F1FA}\u{1F1F8}","\u{1F1EB}\u{1F1F7}","\u{1F1EA}\u{1F1F8}","\u{1F1EE}\u{1F1F9}","\u{1F1F7}\u{1F1FA}","\u{1F1EC}\u{1F1E7}","\u{1F1E9}\u{1F1EA}"],So=["1\uFE0F\u20E3","2\uFE0F\u20E3","3\uFE0F\u20E3","4\uFE0F\u20E3","5\uFE0F\u20E3","6\uFE0F\u20E3","7\uFE0F\u20E3","8\uFE0F\u20E3","9\uFE0F\u20E3","\u{1F51F}","\u{1F522}","0\uFE0F\u20E3","#\uFE0F\u20E3","\u{1F523}","\u25C0\uFE0F","\u2B07\uFE0F","\u25B6\uFE0F","\u2B05\uFE0F","\u{1F520}","\u{1F521}","\u{1F524}","\u2199\uFE0F","\u2198\uFE0F","\u27A1\uFE0F","\u2B06\uFE0F","\u2196\uFE0F","\u2197\uFE0F","\u23EC","\u23EB","\u{1F53D}","\u2935\uFE0F","\u2934\uFE0F","\u21A9\uFE0F","\u21AA\uFE0F","\u2194\uFE0F","\u2195\uFE0F","\u{1F53C}","\u{1F503}","\u{1F504}","\u23EA","\u23E9","\u2139\uFE0F","\u{1F197}","\u{1F500}","\u{1F501}","\u{1F502}","\u{1F195}","\u{1F51D}","\u{1F199}","\u{1F192}","\u{1F193}","\u{1F196}","\u{1F3A6}","\u{1F201}","\u{1F4F6}","\u{1F239}","\u{1F234}","\u{1F23A}","\u{1F22F}","\u{1F237}\uFE0F","\u{1F236}","\u{1F235}","\u{1F21A}","\u{1F238}","\u{1F233}","\u{1F232}","\u{1F202}\uFE0F","\u{1F6BB}","\u{1F6B9}","\u{1F6BA}","\u{1F6BC}","\u{1F6AD}","\u{1F17F}\uFE0F","\u267F","\u{1F687}","\u{1F6C4}","\u{1F251}","\u{1F6BE}","\u{1F6B0}","\u{1F6AE}","\u3299\uFE0F","\u3297\uFE0F","\u24C2\uFE0F","\u{1F6C2}","\u{1F6C5}","\u{1F6C3}","\u{1F250}","\u{1F191}","\u{1F198}","\u{1F194}","\u{1F6AB}","\u{1F51E}","\u{1F4F5}","\u{1F6AF}","\u{1F6B1}","\u{1F6B3}","\u{1F6B7}","\u{1F6B8}","\u26D4","\u2733\uFE0F","\u2747\uFE0F","\u2734\uFE0F","\u{1F49F}","\u{1F19A}","\u{1F4F3}","\u{1F4F4}","\u{1F4B9}","\u{1F4B1}","\u274E","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F17E}\uFE0F","\u{1F4A0}","\u267B\uFE0F","\u{1F51A}","\u{1F519}","\u{1F51B}","\u{1F51C}","\u{1F550}","\u{1F55C}","\u{1F559}","\u{1F565}","\u{1F55A}","\u{1F566}","\u{1F55B}","\u{1F567}","\u{1F551}","\u{1F55D}","\u{1F552}","\u{1F55E}","\u{1F553}","\u{1F55F}","\u{1F554}","\u{1F560}","\u{1F555}","\u{1F561}","\u{1F556}","\u{1F562}","\u{1F557}","\u{1F563}","\u{1F558}","\u{1F564}","\u{1F4B2}","\xA9\uFE0F","\xAE\uFE0F","\u2122\uFE0F","\u274C","\u2757","\u203C\uFE0F","\u2049\uFE0F","\u2B55","\u2716\uFE0F","\u2795","\u2796","\u2797","\u{1F4AE}","\u{1F4AF}","\u2714\uFE0F","\u2611\uFE0F","\u{1F518}","\u{1F517}","\u27B0","\u3030\uFE0F","\u303D\uFE0F","\u{1F531}","\u25AA\uFE0F","\u25AB\uFE0F","\u25FE","\u25FD","\u25FC\uFE0F","\u25FB\uFE0F","\u2B1B","\u2B1C","\u2705","\u{1F532}","\u{1F533}","\u26AB","\u26AA","\u{1F534}","\u{1F535}","\u{1F537}","\u{1F536}","\u{1F539}","\u{1F538}","\u{1F53A}","\u{1F53B}"],Qt=(0,Wt.R)(()=>({expressions:{label:I18N.Comment.smileys_people,options:wn},animals:{label:I18N.Comment.animals_nature,options:uo},goods:{label:I18N.Comment.food_drinks,options:In},locations:{label:I18N.Comment.travel_places,options:Dn},symbols:{label:I18N.Comment.symbols,options:So}}));class Ln extends a.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"emojiRef",null),(0,k.A)(this,"state",{value:"expressions"}),(0,k.A)(this,"handleWheel",Un=>{Un.stopPropagation()}),(0,k.A)(this,"handleGlobalClick",Un=>{if(!this.emojiRef||!Un.target||this.emojiRef===Un.target||this.emojiRef.contains(Un.target))return;const{dispatch:cn}=this.props;cn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}),(0,k.A)(this,"handleTab",Un=>{const{icon:cn}=Un.currentTarget.dataset;this.setState({value:cn})}),(0,k.A)(this,"handleSelect",Un=>()=>{const{commentCid:cn,dispatch:nn}=this.props;cn&&(G.A.emit("comment:emoji:add",{commentCid:cn,emoji:Un}),nn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}))}),(0,k.A)(this,"stopPropagation",Un=>{Un.stopPropagation()})}componentDidMount(){this.emojiRef&&this.emojiRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentWillUnmount(){this.emojiRef&&this.emojiRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{left:Un=0,top:cn=0}=this.props,{value:nn}=this.state,Zn=Qt(),ho=Zn[nn]||Zn.expressions,Xn=ho.label,Mo=ho.options;return(0,ne.jsxs)(rn,{className:"emoji-toast",style:{top:cn,left:Un},onClick:this.stopPropagation,ref:Zo=>{this.emojiRef=Zo},children:[(0,ne.jsx)(C.C,{name:"art_board/emoji_triangle",className:"emoji-triangle"}),(0,ne.jsxs)("div",{className:"expression-container",children:[(0,ne.jsx)("h3",{className:"expression-title",children:Xn}),(0,ne.jsx)("div",{className:"expression-list",children:Mo&&Mo.length>0&&Mo.map((Zo,ia)=>(0,ne.jsx)("span",{className:"emoji-span",onClick:this.handleSelect(Zo),children:Zo},ia))})]}),(0,ne.jsxs)("div",{className:"icon-list",children:[(0,ne.jsx)("span",{"data-icon":"expressions",onClick:this.handleTab,children:(0,ne.jsx)(Tt.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.smileys_people,icon:"expressions",active:nn==="expressions"})}),(0,ne.jsx)("span",{"data-icon":"animals",onClick:this.handleTab,children:(0,ne.jsx)(Tt.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.animals_nature,icon:"animals",active:nn==="animals"})}),(0,ne.jsx)("span",{"data-icon":"goods",onClick:this.handleTab,children:(0,ne.jsx)(Tt.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.food_drinks,icon:"goods",active:nn==="goods"})}),(0,ne.jsx)("span",{"data-icon":"locations",onClick:this.handleTab,children:(0,ne.jsx)(Tt.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.travel_places,icon:"locations",active:nn==="locations"})}),(0,ne.jsx)("span",{"data-icon":"symbols",onClick:this.handleTab,children:(0,ne.jsx)(Tt.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.symbols,icon:"symbols",active:nn==="symbols"})})]})]})}}const Mn=Ln;function Rt(_n){const Un=_n.length,cn=[];for(let Zn=0;Zn<Un;Zn+=1){let Xn=_n[Zn],Mo=Zn+1,Zo=_n[Mo];for(;Zo;)Xn=Xn+" "+Zo,cn.push(Xn),Mo+=1,Zo=_n[Mo]}const nn=[..._n];return cn.concat(nn)}function Qe(_n,Un){return Un.map(cn=>{if(cn.name===_n||cn.email===_n)return{...cn,priority:0};let nn,Zn;if(cn.name){const ho=cn.name.indexOf(_n);ho!==-1&&(nn={...cn,priority:ho+1})}if(cn.email){const ho=cn.email.indexOf(_n);ho!==-1&&(Zn={...cn,priority:ho+1})}if(nn&&Zn){const ho=nn.priority,Xn=Zn.priority;return ho<=Xn?nn:Zn}return nn||Zn||null}).filter(Boolean)}function En(_n){const Un=_n.reduce((Zn,ho)=>Zn.concat(ho.map(Xn=>Xn.user_cid)),[]);return Array.from(new Set(Un)).map(Zn=>_n.map(Xn=>Xn.find(Mo=>Mo.user_cid===Zn)).filter(Boolean).sort((Xn,Mo)=>Xn.priority-Mo.priority)[0]).sort((Zn,ho)=>Zn.priority===ho.priority?Zn.id-ho.id:Zn.priority-ho.priority)}function qn(_n,Un){if(!_n)return Un;let cn=_n.trim();cn=cn.replace(/( )+/g," ");const nn=cn.split(" "),ho=Rt(nn).map(Mo=>Qe(Mo,Un));return En(ho)}const Hn=tt.Ay.div.withConfig({displayName:"styles__StyledProjectMembersListDiv",componentId:"sc-ibhzo0-0"})(["pointer-events:auto;width:253px;height:238px;position:absolute;overflow:hidden;overflow-y:auto;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.1);border-radius:4px;box-sizing:border-box;padding:6px 0;cursor:default;z-index:3;::-webkit-scrollbar{width:0px;}.member-item-container{width:100%;position:relative;box-sizing:border-box;padding:6px 12px;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;&:hover,&.active{background-color:#f2f2f2;}.left-area{width:32px;height:32px;margin-right:12px;position:relative;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:12px;text-align:center;line-height:32px;&.isSpan{background-color:#e96d2c;}}}.right-area{width:calc(100% - 44px);position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;.user-name{font-size:14px;font-weight:500;line-height:18px;color:#333333;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.user-email{font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}.empty-item-container{width:100%;height:44px;position:relative;box-sizing:border-box;font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);display:flex;flex-direction:row;justify-content:center;align-items:center;}"]);class Yn extends a.Component{constructor(){super(...arguments),(0,k.A)(this,"state",{filterMembers:[],activeCid:""}),(0,k.A)(this,"handleWheel",Un=>{Un.stopPropagation()}),(0,k.A)(this,"handleGlobalClick",Un=>{if(!this.atRef||!Un.target||this.atRef===Un.target||this.atRef.contains(Un.target))return;const{dispatch:cn}=this.props;cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})}),(0,k.A)(this,"getMembers",Un=>{const{members:cn,dispatch:nn,recordCid:Zn,commentCid:ho}=this.props,Xn=qn(Un,cn);if(!Xn.length)nn({type:"comment:update:atStyle",payload:{atStyle:{display:"none"}}});else{nn({type:"comment:update:atStyle",payload:{atStyle:{display:"block",recordCid:Zn,commentCid:ho}}});const Mo={filterMembers:Xn};this.state.activeCid||(Mo.activeCid=Xn[0].user_cid),this.setState(Mo)}}),(0,k.A)(this,"handleKeyDown",Un=>{if(![13,38,40].includes(Un.keyCode))return;const{filterMembers:cn,activeCid:nn}=this.state;if(cn.length===0)return;if(!nn){this.setState({activeCid:cn[0].user_cid});return}if(Un.keyCode===13){let xa;nn&&(xa=cn.find(Sa=>Sa.user_cid===nn)),xa||(xa=cn[0]);const{commentCid:fa,recordCid:zo,dispatch:Ra}=this.props;G.A.emit("comment:at:add",{user:xa,commentCid:fa,recordCid:zo}),Ra({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});return}const Zn=cn.findIndex(xa=>xa.user_cid===nn);let ho;Un.keyCode===40&&(ho=Zn+1),Un.keyCode===38&&(ho=Zn-1),ho>=cn.length&&(ho=0),ho<0&&(ho=cn.length-1);const{clientHeight:Xn,scrollTop:Mo}=this.atRef,Zo=6+ho*44,ia=Zo-Mo;ia<0&&(this.atRef.scrollTop=Zo),ia+44>Xn&&(this.atRef.scrollTop=Zo+44),this.setState({activeCid:cn[ho].user_cid})}),(0,k.A)(this,"handleSelect",Un=>()=>{const{commentCid:cn,recordCid:nn,dispatch:Zn}=this.props;G.A.emit("comment:at:add",{user:Un,commentCid:cn,recordCid:nn}),Zn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})})}componentDidMount(){this.getMembers(this.props.keywords),window.addEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentDidUpdate(Un){Un.keywords!==this.props.keywords&&this.getMembers(this.props.keywords)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{activeCid:Un,filterMembers:cn}=this.state,{left:nn,top:Zn,atDisplay:ho}=this.props;return(0,ne.jsxs)(Hn,{style:{left:nn,top:Zn,display:ho},ref:Xn=>{this.atRef=Xn},className:"project-member-list",children:[cn.length>0&&cn.map(Xn=>(0,ne.jsxs)("div",{className:Un===Xn.user_cid?"member-item-container active":"member-item-container",onClick:this.handleSelect(Xn),children:[(0,ne.jsx)("div",{className:"left-area",children:Xn.avatar?(0,ne.jsx)("img",{className:"image-avatar",src:Xn.avatar,alt:Xn.name||Xn.email||Xn.mobile||Xn.user_cid}):(0,ne.jsx)("span",{className:"image-avatar isSpan",children:(Xn.name||Xn.email||Xn.mobile||Xn.user_cid).substring(0,1)})}),(0,ne.jsxs)("div",{className:"right-area",children:[(0,ne.jsx)("div",{className:"user-name",children:Xn.name||Xn.email||Xn.mobile||Xn.user_cid}),(0,ne.jsx)("div",{className:"user-email",children:Xn.email||"--"})]})]},Xn.user_cid)),cn.length===0&&(0,ne.jsx)("div",{className:"empty-item-container",children:"\u6682\u65E0\u6570\u636E"})]})}}const oo=Yn;var To=i(97974);const po=tt.Ay.div.withConfig({displayName:"styles__StyledCommentsViewContainerDiv",componentId:"sc-i62rwr-0"})(["position:absolute;top:0;left:0;z-index:10;.clearfix:before,.clearfix:after{content:'';display:table;}.clearfix:after{clear:both;}.pull-right{float:right !important;.operation-btn{border-radius:6px;font-size:13px;}.cancel-btn{background-color:",";border:1px solid ",";color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&:active:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&[class*='is-disabled']{background-color:",";border:1px solid ",";}}.confirm-btn{background-color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";}&:active:not([class*='is-disabled']){color:",";background-color:",";}&[class*='is-disabled']{opacity:1;background-color:",";color:",";}}}.pull-left{float:left !important;}.comment-anchor{width:37px;height:35px;pointer-events:auto;position:absolute;cursor:default;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.2));transform-origin:left bottom;transition:transform .12s ease-in-out;z-index:3;&:hover{transform:scale(1.2);}&.active{.comment-created-icon{color:#1684FC;}}.comment-icon{filter:drop-shadow(0px 1px 3px rgba(0,0,0,0.2));}.comment-created-icon{color:#fff;}.anchor--anchorLabel{position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;display:block;text-align:center;}}.rect-anchor-container{.comment-rect-anchor{position:absolute;pointer-events:auto;cursor:pointer;border:2px dashed #1684FC;display:none;}&:hover,&.active,&.creating{.comment-rect-anchor{display:block;}}}.comment-panel-container{background-color:",";pointer-events:auto;position:absolute;box-shadow:",";border:1px solid ",";border-radius:8px;box-sizing:border-box;cursor:default;z-index:3;.comment-record-list{width:100%;max-height:472px;position:relative;overflow-y:auto;border-bottom:1px solid ",";.record-item-container{width:100%;min-height:106px;box-sizing:border-box;padding:20px 0 15px 0;flex-direction:row;justify-content:flex-start;align-items:flex-start;.top-area{display:flex;padding:0 20px;.left-content{flex:1;display:flex;align-items:center;.avatar-container{width:40px;height:40px;margin-right:10px;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:40px;&.isSpan{font-size:18px;display:flex;align-items:center;justify-content:center;background-color:#1684FC;}}}.name-item{flex:1;.user-name{font-size:14px;font-weight:500;line-height:14px;color:",";margin-bottom:4px;}.update-time{font-size:12px;font-weight:normal;line-height:12px;color:",";opacity:0.5;.isEdited-text{margin-left:16px;}}}}.operation-item{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;.checked svg{color:",";}}}.bottom-area{margin-top:10px;padding-left:70px;padding-right:20px;.record-content-component{margin:0;.record-plain-text{p{font-size:14px;line-height:20px;color:",";text-align:justify;}}}}&.isFirstReplay{border-top:1px solid ",";}&.isReply{position:relative;&:not(:last-child)::after{position:absolute;bottom:0;left:41px;content:'';width:258px;height:1px;background-color:",";}.top-area{.avatar-container{width:28px;height:28px;margin-left:22px;.image-avatar.isSpan{font-size:14px;}}}.bottom-area{padding-left:80px;}}}.toolbar-btn{margin:0 2px;width:24px;height:24px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background:",";}&:active,&.active{background:",";}}.toolbar-btn .svg-icon{width:24px;height:24px;}}.record-content-component{margin:10px 0;.record-plain-text{width:100%;text-align:left;word-break:break-all;word-wrap:break-word;a{color:#298DF8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:14px;line-height:20px;color:",";padding:2px 0;}}}.record-content-component:hover{cursor:text;}.comment-text-input-component{width:100%;box-sizing:border-box;padding:16px;position:relative;}.comment-operation-container{width:100%;margin-top:16px;.emoji-icon{color:black;display:flex;flex-direction:row;justify-content:center;align-items:center;}.operation-btn{margin-left:1em;transition:color ease-in-out 0.1s;transition:100ms;}}.comment-text-area{width:100%;box-sizing:border-box;position:relative;}.comment-editor-container{cursor:text;}.comment-editor-wrapper{width:100%;}.comment-editor{width:100%;max-height:280px;overflow-y:auto;a{color:",";display:inline-block;padding-right:2px;border-radius:2px;text-decoration:none;}.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial;}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only;}.DraftEditor-root{position:relative;margin-top:-5px;}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);position:relative;z-index:1;}.public-DraftEditor-block{position:relative;}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left;}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left;}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center;}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%;}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right;}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right;}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1;padding:2px 0;}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9;}.DraftEditorPlaceholder-hidden{display:none;}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap;margin:0;padding:2px 0;word-break:break-all;word-wrap:break-word;font-size:14px;line-height:20px;color:",';}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left;}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right;}.public-DraftStyleDefault-listLTR{direction:ltr;}.public-DraftStyleDefault-listRTL{direction:rtl;}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:0;padding:0;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em;}.public-DraftStyleDefault-unorderedListItem{list-style-type:disc;position:relative;}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px;}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4;}.public-DraftEditorPlaceholder-inner{color:#999999;font-size:14px;line-height:20px;}}}.wiggle--wiggle--animate{animation:wiggle-wiggle-01 .6s linear;transform-origin:center;}@keyframes wiggle-wiggle-01{0%{transform:translate(0)}20%{transform:translate(-24px) rotate(-1deg)}40%{transform:translate(24px) rotate(1deg)}60%{transform:translate(-24px) rotate(-1deg)}80%{transform:translate(24px) rotate(1deg)}to{transform:translate(0)}}'],_n=>_n.theme.color_bg_white,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_btn_secondary_hover,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_bg_white,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_btn_primary_normal,_n=>_n.theme.color_text_btn,_n=>_n.theme.color_btn_primary_hover,_n=>_n.theme.color_text_btn,_n=>_n.theme.color_btn_primary_clicked,_n=>_n.theme.color_btn_primary_disabled,_n=>_n.theme.color_text_disabled02,_n=>_n.theme.color_bg_white,_n=>_n.theme.shadow_l,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_btn_primary_normal,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_bg_border_01,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_btn_secondary_active,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_text_link_normal,_n=>_n.theme.color_text_L1),Oo=(0,tt.DU)([".DeleteCommentModal{background:",";box-shadow:0px 4px 20px 6px rgba(31,41,46,0.103438);border-radius:8px;width:400px;border:1px solid ",";.header{border-bottom:1px solid ",";color:",";background-color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";background-color:",";p{color:",";}}footer{background:",";.button-root{","}}}"],_n=>_n.theme.color_bg_white,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_bg_border_02,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_bg_white,_n=>_n.theme.color_text_L2,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_text_L1,_n=>_n.theme.color_bg_white,_n=>_n.theme.color_text_L2,_n=>_n.theme.color_bg_white,To.in);class Qo extends a.PureComponent{async componentDidMount(){this.props.dispatch({type:"entry:comment:rebuild:commentList"}),this.handleShowAnchor(),this.updateAnchor()}componentDidUpdate(Un,cn){this.props.commentList.length!==(Un==null?void 0:Un.commentList.length)&&this.handleShowAnchor(),this.props.runnerCacheTag!==(Un==null?void 0:Un.runnerCacheTag)&&this.updateAnchor()}handleShowAnchor(){this.props.dispatch({type:"entry:comment:show-or-hide:anchor-node"})}updateAnchor(){this.props.dispatch({type:"entry:comment:update:view-container-style"})}render(){const{viewport:Un,commentList:cn=[],activeCommentCid:nn,wigglingCommentCid:Zn,editorRawContentObject:ho,commentIsEditing:Xn,editingRecordCid:Mo,isCommentDragging:Zo,dispatch:ia,creatingComment:xa,mode:fa,viewType:zo,currentOrg:Ra,theme:Sa}=this.props,ln=cn.concat(xa||[]);if((ln==null?void 0:ln.length)===0)return null;let ta;nn&&(ta=ln.find(Ha=>Ha.cid===nn));const{emojiToastStyle:ko,atStyle:bo}=this.props,{left:aa,top:ma}=ko,{left:dr,top:ni,keywords:Ir,recordCid:$a,display:Va}=bo;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(po,{id:fa+"-comment-view-container",className:fa+"-comment",children:[ln.map(Ha=>(0,ne.jsx)(Te,{mode:fa,creatingComment:xa,viewport:Un,comment:Ha,activeCommentCid:nn,dispatch:ia},Ha.cid)),!Zo&&ta&&(0,ne.jsx)(bt,{mode:fa,viewport:Un,activeCommentCid:nn,comment:ta,wigglingCommentCid:Zn,editorRawContentObject:ho,commentIsEditing:Xn,editingRecordCid:Mo,emojiToastStyle:ko,atStyle:bo,viewType:zo,members:(Ra==null?void 0:Ra.members)||[],theme:Sa,dispatch:ia}),ta&&(aa!==0||ma!==0)&&(0,ne.jsx)(Mn,{commentCid:ta.cid,left:aa,top:ma,dispatch:ia}),ta&&(dr!==0||ni!==0)&&(0,ne.jsx)(oo,{atDisplay:Va,commentCid:ta.cid,recordCid:$a,keywords:Ir,left:dr,top:ni,members:(Ra==null?void 0:Ra.members)||[],dispatch:ia})]}),(0,ne.jsx)(Oo,{})]})}}const ea=Qo},43619:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_100)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_100)",fillOpacity:"0.68"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_100)",fillOpacity:"0.62"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"#F6E0B1",strokeWidth:"0.5"}),a.createElement("path",{d:"M7.95 6.98C9.74 6.21 10.99 5.3 11.95 4H13C13.97 5.31 15.33 6.23 17.04 6.98L16.74 8.1C14.89 7.35 13.47 6.34 12.48 5.06C11.57 6.34 10.05 7.35 8.25 8.1L7.95 6.98ZM13.42 11.59H16.83V12.63H8.11L8.01 11.59H9.34V8.05H10.52V11.59H12.2V6.68H13.42V8.56H15.86V9.56H13.42V11.59ZM26.44 5.4C26.26 6.92 25.98 8.45 25.62 9.97H24.42C24.78 8.45 25.06 6.92 25.24 5.4H26.44ZM18.76 9.97C18.56 8.45 18.28 6.92 17.94 5.4H19.14C19.48 6.92 19.76 8.45 19.96 9.97H18.76ZM23.93 11.59H26.7V12.63H17.83L17.74 11.59H20.49V4H21.71V11.59H22.71V4H23.93V11.59Z",fill:"#F6E0B1"}),a.createElement("path",{d:"M7.95 6.98C9.74 6.21 10.99 5.3 11.95 4H13C13.97 5.31 15.33 6.23 17.04 6.98L16.74 8.1C14.89 7.35 13.47 6.34 12.48 5.06C11.57 6.34 10.05 7.35 8.25 8.1L7.95 6.98ZM13.42 11.59H16.83V12.63H8.11L8.01 11.59H9.34V8.05H10.52V11.59H12.2V6.68H13.42V8.56H15.86V9.56H13.42V11.59ZM26.44 5.4C26.26 6.92 25.98 8.45 25.62 9.97H24.42C24.78 8.45 25.06 6.92 25.24 5.4H26.44ZM18.76 9.97C18.56 8.45 18.28 6.92 17.94 5.4H19.14C19.48 6.92 19.76 8.45 19.96 9.97H18.76ZM23.93 11.59H26.7V12.63H17.83L17.74 11.59H20.49V4H21.71V11.59H22.71V4H23.93V11.59Z",fill:"url(#paint3_linear_291_100)"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#F6E0B1"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"url(#paint4_linear_291_100)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_100",x1:"23.2273",y1:"3.05333",x2:"28.8776",y2:"18.4473",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#131210"}),a.createElement("stop",{offset:"1",stopColor:"#515459"})),a.createElement("linearGradient",{id:"paint1_linear_291_100",x1:"1.83929",y1:"16.5",x2:"14.4007",y2:"10.6874",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#682B00"}),a.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_100",x1:"4.54412",y1:"2.06943",x2:"8.55457",y2:"10.5908",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF8DF"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_100",x1:"27.6042",y1:"14.9878",x2:"21.4815",y2:"13.7973",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#EFB66D"}),a.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint4_linear_291_100",x1:"45.5938",y1:"15.4203",x2:"40.0249",y2:"14.5067",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#EFB66D"}),a.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"}))))})},44007:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>jt});var a=i(95549),k=i(38502);let M=function(mt){return mt[mt.message=0]="message",mt[mt.picture=1]="picture",mt[mt.video=2]="video",mt[mt.unknown=3]="unknown",mt}({}),P=function(mt){return mt.user="user",mt.bot="bot",mt}({}),C=function(mt){return mt[mt.finish=0]="finish",mt[mt.generating=1]="generating",mt[mt.fail=2]="fail",mt[mt.streaming=3]="streaming",mt}({});var q=i(46905);const Y=()=>({content:"You are the intelligent AI assistant of the prototyping tool Mockitt",role:"system"}),J=(mt,Jn,o,so)=>{const Et=""+(mt.length+1),Jt=(0,q.AM)({user:o,project:so}),Ot={id:Et,role:P.user,associateID:Jt,status:C.finish,message:Jn},dn={id:Jt,role:P.bot,associateID:Et,status:C.generating,message:"",time:m()};return{chatList:mt.concat([Ot]),streamChat:dn}};async function O(mt){if(mt){try{return await navigator.clipboard.writeText(mt),!0}catch(Jn){const o=document.createElement("textarea");o.value=mt,document.body.appendChild(o),o.focus(),o.select();try{return document.execCommand("copy"),document.body.removeChild(o),!0}catch(so){console.log("### \u590D\u5236\u5931\u8D25"),document.body.removeChild(o)}}return!1}}const l=mt=>{let Jn=0;for(let o=0;o<mt.length;o++){const so=mt.charCodeAt(o);so>=19968&&so<=40869?Jn+=2:(so>=32&&so<=126,Jn+=1)}return Jn},D=(mt,Jn)=>{const o=[...Jn],so=Jn.filter(Ot=>{const dn=o.find(Ce=>Ce.associateID===Ot.id);return dn&&dn.role===P.bot&&dn.status!==C.finish||Ot.role===P.bot&&Ot.status!==C.finish?!1:dn});let Et=13+l(mt);const Jt=[];for(let Ot=0;Ot<so.length;Ot++){const dn=so[so.length-Ot-1];if(dn&&(Et=Et+l(dn.message),Et<2e3)){Jt.push({[dn.role]:dn.message});continue}}return Jt.reverse(),Jt.length>0&&Jt[Jt.length-1].role===P.user&&Jt.pop(),ENV.IS_WONDER_SHARE&&(Jt.unshift(Y()),Jt.push({content:mt,role:P.user})),Jt},m=()=>{const mt=new Date,Jn=String(mt.getMonth()+1).padStart(2,"0"),o=String(mt.getDate()).padStart(2,"0"),so=String(mt.getHours()).padStart(2,"0"),Et=String(mt.getMinutes()).padStart(2,"0");return Jn+"/"+o+" "+so+":"+Et},E=mt=>{let Jn="",o="";for(const so of mt.split("\n"))if(so.trim())try{const{value:Et,done:Jt}=JSON.parse(so);if(Jt)return{value:Et,done:!0};Jn+=Et.partialAnswer,Et.partialReasoning&&(o+=Et.partialReasoning)}catch(Et){break}return{content:Jn,reasoningContent:o,done:!1}};var f=i(46723),h=i(53732),S=i.n(h),V=i(46219),We=i(23744),re=i(67787);const ve=re.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1m3zz5y-0"})(["padding-top:10px;padding-bottom:16px;padding-right:18px;.new-dialogue{line-height:28px;padding:0px 11px 0 8px;font-size:13px;font-weight:500;border-radius:6px;display:flex;align-items:center;width:fit-content;text-align:center;cursor:pointer;color:",";border:1px solid ",";background:",";svg{width:12px;height:12px;margin-right:4px;path{stroke:",";}}&.disabled{pointer-events:none;color:",";svg{path{stroke:",";}}}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}"],mt=>mt.theme.color_text_L1,mt=>mt.theme.color_bg_border_02,mt=>mt.theme.color_bg_white,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_disabled01,mt=>mt.theme.color_text_disabled01,mt=>mt.theme.color_btn_secondary_hover,mt=>mt.theme.color_btn_secondary_active),we=re.Ay.div.withConfig({displayName:"styles__StyledChatTextArea",componentId:"sc-1m3zz5y-1"})(["width:100%;flex-direction:column;font-size:12px;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:not(.generating):hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{padding:10px;border-radius:4px;background-color:",";}&.generating{pointer-events:none;}.chat-input{width:100%;height:42px;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";word-break:break-all;}.chat-input::-webkit-scrollbar{width:4px;height:4px;margin-left:5px;}.chat-input::-webkit-scrollbar-thumb{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;background:rgba(22,132,252,0.25);}.chat-input::-webkit-scrollbar-track{background-color:transparent;}.chat-input::-webkit-input-placeholder{color:",";}.chat-input:-moz-placeholder{color:",";}.chat-input::-moz-placeholder{color:",";}.chat-input::-ms-input-placeholder{color:",";}.bottom-tool{display:flex;align-items:center;justify-content:space-between;pointer-events:auto;.bottom-right{display:flex;align-items:center;}.input-number{color:",";font-size:12px;line-height:17px;margin-right:16px;&.error{color:",";}}.send-message{display:flex;font-family:PingFang SC;align-items:center;justify-content:center;color:white;cursor:pointer;font-weight:500;font-size:12px;svg{height:28px;width:28px;}&:not(.disabled):hover{svg{rect{&:not(.center-rect){fill:",";}}}}&.disabled{pointer-events:none;svg{rect{fill:",";}path{fill:",";}}}}}"],mt=>mt.theme.color_bg_white,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_primary_brand02,mt=>mt.theme.color_btn_primary_normal,mt=>mt.theme.color_btn_primary_disabled,mt=>mt.theme.color_text_disabled02);var Ae=i(72214);function Oe(mt){let{isEmpty:Jn,generating:o,userInput:so,isDark:Et,sendMessageHandle:Jt,createNewDialogueHandle:Ot,handleChatInputValue:dn,stopGeneratingHandle:Ce}=mt;const[Pt,Nn]=(0,k.useState)(!1),At=(0,k.useRef)(null),on=(so==null?void 0:so.length)===0&&!o,no=ht=>{ht.keyCode===13&&!ht.shiftKey&&(so.length>0&&mo(),ht.preventDefault())},mo=()=>{var ht;if(!on){if(o){Ce();return}At==null||(ht=At.current)==null||ht.blur(),Jt(so)}},mn=()=>{Ot()};return(0,Ae.jsx)(ve,{isDark:Et,children:(0,Ae.jsx)(we,{isDark:Et,className:S()(Pt&&"isFocus",o&&"generating"),children:(0,Ae.jsxs)("div",{className:"colorful-border-content",children:[(0,Ae.jsx)("textarea",{ref:At,id:"chat-input",className:"chat-input",maxLength:200,value:so,onChange:ht=>dn(ht.target.value),onKeyDown:no,onFocus:()=>{Nn(!0)},rows:3,onBlur:()=>{Nn(!1)},placeholder:I18N.ChatGPT.ask_me_anything}),(0,Ae.jsxs)("div",{className:"bottom-tool",children:[(0,Ae.jsxs)("div",{className:S()("new-dialogue",Jn&&"disabled"),onClick:mn,children:[(0,Ae.jsx)(We.C,{name:"chatGPT/ai-add_new_dialogue",isColorPure:!0}),I18N.ChatGPT.add_new_chat]}),(0,Ae.jsxs)("div",{className:"bottom-right",children:[(0,Ae.jsxs)("div",{className:S()("input-number",{error:so.length>=200}),children:[so.length>=200?200:so.length,"/200"]}),(0,Ae.jsx)(V.A,{arrowed:!0,content:{click:null,hover:o?I18N.ChatGPT.ai_chat_stop:null},duration:1500,position:"top",onClick:mo,children:(0,Ae.jsx)("div",{className:S()("send-message",on&&"disabled",o&&"is-generating"),children:(0,Ae.jsx)(We.C,{name:o?"chatGPT/ai-chat-stop":"chatGPT/ai-chat-send",isColorPure:!0})})})]})]})]})})})}const Be=re.Ay.div.withConfig({displayName:"styles__StyledChatMessageEmpty",componentId:"sc-b70yeb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;.question-tip{font-size:12px;line-height:20px;color:",";}.recommend-list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:24px 0;}.chat-recommend-item{padding:1px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-style:normal;font-weight:400;font-size:12px;color:",";cursor:pointer;border-radius:16px;&:hover{color:",";background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);& .item-message{border:1px solid rgba(0,0,0,0);}}.item-message{width:fit-content;line-height:30px;border-radius:15px;background:",";padding:0 16px;border:1px solid ",";}}.refresh{font-size:12px;line-height:20px;display:flex;align-items:center;color:",";justify-content:center;width:fit-content;margin:0 auto;cursor:pointer;&:hover{color:",";path{stroke:",";}}svg{width:24px;height:24px;margin-right:4px;path{fill:white;}}}"],mt=>mt.theme.color_text_L3,mt=>mt.isDark?"rgba(255,255,255,0.9)":mt.theme.color_text_L1,mt=>mt.isDark?"white":mt.theme.color_text_L1,mt=>mt.theme.color_background_white,mt=>mt.isDark?"#FFFFFF14":"#12112A12",mt=>mt.theme.color_primary_proto01,mt=>mt.theme.color_primary_proto02,mt=>mt.theme.color_primary_proto02);class tt extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"state",{currentPage:0,recommendedDialogues:[[I18N.ChatGPT.recommended_dialogue1,I18N.ChatGPT.recommended_dialogue2,I18N.ChatGPT.recommended_dialogue3,I18N.ChatGPT.recommended_dialogue4,I18N.ChatGPT.recommended_dialogue5],[I18N.ChatGPT.recommended_dialogue6,I18N.ChatGPT.recommended_dialogue7,I18N.ChatGPT.recommended_dialogue8,I18N.ChatGPT.recommended_dialogue9,I18N.ChatGPT.recommended_dialogue10],[I18N.ChatGPT.recommended_dialogue11,I18N.ChatGPT.recommended_dialogue12,I18N.ChatGPT.recommended_dialogue13,I18N.ChatGPT.recommended_dialogue14,I18N.ChatGPT.recommended_dialogue15]]}),(0,a.A)(this,"changePage",()=>{const{currentPage:Jn}=this.state;this.setState({currentPage:Jn===2?0:Jn+1})}),(0,a.A)(this,"selectItemHandle",Jn=>{const{sendMessageHandle:o}=this.props;o&&o(Jn)})}render(){const{isDark:Jn}=this.props,{currentPage:o,recommendedDialogues:so}=this.state,Et=so[o];return(0,Ae.jsxs)(Be,{isDark:Jn,children:[(0,Ae.jsx)("div",{className:"question-tip",children:I18N.ChatGPT.you_can_ask}),(0,Ae.jsx)("div",{className:"recommend-list",children:Et.map((Jt,Ot)=>(0,Ae.jsx)("div",{"data-item":Jt,className:"chat-recommend-item",onClick:()=>this.selectItemHandle(Jt),children:(0,Ae.jsx)("span",{className:"item-message",children:Jt})},Jt+"-"+Ot))}),(0,Ae.jsx)("div",{className:"refresh",onClick:this.changePage,children:I18N.ChatGPT.Change})]})}}const Xe=re.Ay.div.withConfig({displayName:"styles__StyledChatGPTModal",componentId:"sc-nbqxms-0"})(["display:flex;justify-content:center;align-items:center;color:",";width:100%;padding:0 2px 0 20px;height:calc(100% - 64px);&.show-switch{height:calc(100% - 88px);}.chat-content{display:flex;position:relative;width:100%;height:100%;flex-direction:column;scroll-behavior:smooth;.chat-body{flex:1 1;overflow:auto;overflow-y:overlay;padding-right:18px;padding-bottom:15px;padding-top:10px;::-webkit-scrollbar{--bar-width:4px;width:var(--bar-width);height:var(--bar-width);}::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}border-radius:20px;border:1px solid transparent;}}.stop-generating{position:absolute;left:50%;bottom:158px;transform:translateX(-50%);background:",";padding:6px 9px;line-height:14px;text-align:center;border:1px solid ",";border-radius:6px;font-size:12px;color:",";&:hover{background:",";}&:active{background:",";}}}"],mt=>mt.theme.color_text_L1,mt=>mt.theme.color_slider_normal,mt=>mt.theme.color_slider_hover,mt=>mt.theme.color_background_white,mt=>mt.theme.color_background_white_modal_active,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_background_icon_hover,mt=>mt.theme.color_background_white_modal_hover),ne=re.Ay.div.withConfig({displayName:"styles__StyledChatBorderButton",componentId:"sc-nbqxms-1"})(["border:1px solid ",";border-radius:6px;font-size:12px;display:flex;align-items:center;text-align:center;color:",";padding:0px 10px;width:fit-content;height:28px;cursor:pointer;background:",";&:hover{background:",";}&:active{background:",";}"],mt=>mt.theme.color_ai_button_border,mt=>mt.theme.color_text_L0,mt=>mt.theme.color_ai_button_bg,mt=>mt.theme.color_ai_button_bg_hover,mt=>mt.theme.color_ai_button_bg_active);var lt=i(57999),rt=i(69623);const Te=re.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-170tjww-0"})(["display:flex;align-items:center;font-size:0;color:",";height:14px;gap:4px;& > div{position:relative;box-sizing:border-box;display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;border-radius:100%;animation:ball-beat 0.7s -0.15s infinite linear;}& > div:nth-child(2n-1){animation-delay:-0.5s;}@keyframes ball-beat{50%{opacity:0.25;transform:scale(0.75);}100%{opacity:1;transform:scale(1);}}"],mt=>mt.theme.color_text_L3);class Ge extends k.PureComponent{render(){return(0,Ae.jsx)(Te,{children:Array.from({length:3}).map((Jn,o)=>(0,Ae.jsx)("div",{},o))})}}var ue=i(28894),Me=i(93093),Ze=i(85449);class fe extends k.Component{constructor(){super(...arguments),(0,a.A)(this,"state",{hasError:!1,libRehype:ue.zl.hasLLG()?ue.zl.getLLG():void 0})}componentDidMount(){this.state.libRehype||ue.zl.loadLLG().then(Jn=>this.setState({libRehype:Jn}))}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(Jn,o){var so;const{message:Et,id:Jt}=this.props,dn=(((so=(0,Ze.dP)())==null||(so=so.ai)==null?void 0:so.chatMessages)||[]).find(Ce=>Ce.associateID===Jt);(0,Me.Cp)(Jn,{level:"debug",fingerprint:["ai chat render error"],extra:{message:Et,question:dn==null?void 0:dn.message}})}render(){const{hasError:Jn,libRehype:o}=this.state;if(!o)return null;const{message:so,className:Et}=this.props,{ReactMarkdown:Jt,RehypeHighlight:Ot,RemarkMath:dn,RemarkBreaks:Ce,RehypeKatex:Pt,RemarkGfm:Nn}=o,At=[dn,Nn,Ce],on=Jn?[Pt]:[Pt,[Ot,{detect:!1,ignoreMissing:!0}]];return(0,Ae.jsx)("div",{className:S()("markdown-body",Et),onMouseDown:no=>{no.stopPropagation()},children:(0,Ae.jsx)(Jt,{remarkPlugins:At,rehypePlugins:on,linkTarget:"_blank",children:so})})}}const it=fe,et=re.Ay.div.withConfig({displayName:"styles__StyledChatMessageItem",componentId:"sc-18jikxs-0"})(["width:100%;display:flex;flex-direction:column;.row-content{display:flex;width:100%;align-items:center;margin-top:10px;&.user{justify-content:flex-end;}&.assistant{justify-content:flex-start;}}.message-content{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;padding:10px 16px;max-width:100%;color:",";&.loading{width:66px;padding:12px 0;display:flex;justify-content:center;}&.fail{color:",";.markdown-body{border-radius:10px;padding:10px 16px;background:",";}}&.user{border-radius:10px;background:",";}&.is-stream{width:100%;padding:10px 0px;}}.deep-seek-container{width:100%;border-radius:10px;overflow:hidden;border:1px solid ",";display:flex;flex-direction:column;margin-bottom:20px;color:",";.deep-seek-head{padding:0 12px;height:36px;display:flex;align-items:center;justify-content:space-between;background:",";border-bottom:1px solid rgba(0,0,0,0);&:not(.is-collapse){border-bottom:1px solid ",";}}.head-left{display:flex;align-items:center;.status{font-size:12px;font-weight:500;margin-left:6px;margin-right:12px;color:",";span{font-weight:400;color:",";}}}.svg-box{display:flex;align-items:center;cursor:pointer;animation:rotate 1.5s linear infinite;&.is-collapse{transform:rotate(-90deg);}&:hover{color:",";background-color:",";border-radius:4px;}.ai-chat-expand-arrow{path{stroke:currentColor;fill:rgba(0,0,0,0);}}.ai-chat-copy{path{fill:currentColor;stroke:rgba(0,0,0,0);}}}svg{width:24px;height:24px;cursor:pointer;}}.markdown-body-deep-seek{padding:16px;}"],mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_error,mt=>mt.theme.color_error_bg,mt=>mt.theme.color_bg_tab,mt=>mt.theme.color_bg_border_01,mt=>mt.theme.color_text_L2,mt=>mt.theme.color_navigation_hover,mt=>mt.theme.color_bg_border_01,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_L3,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_btn_secondary_active),Ut=(0,re.DU)(['.markdown-body{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;*{-webkit-user-select:text !important;-ms-user-select:text !important;user-select:text !important;}pre{padding:0;}pre,code{font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;}pre code{display:block;overflow-x:auto;padding:1em;}code{padding:3px 5px;}.hljs,pre{background:#1a1b26;color:#cbd2ea;}.hljs-comment,.hljs-meta{color:#565f89;}.hljs-deletion,.hljs-doctag,.hljs-regexp,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-tag,.hljs-template-tag,.hljs-variable.language_{color:#f7768e;}.hljs-link,.hljs-literal,.hljs-number,.hljs-params,.hljs-template-variable,.hljs-type,.hljs-variable{color:#ff9e64;}.hljs-attribute,.hljs-built_in{color:#e0af68;}.hljs-keyword,.hljs-property,.hljs-subst,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#7dcfff;}.hljs-selector-tag{color:#73daca;}.hljs-addition,.hljs-bullet,.hljs-quote,.hljs-string,.hljs-symbol{color:#9ece6a;}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7;}.hljs-attr,.hljs-char.escape_,.hljs-keyword,.hljs-name,.hljs-operator{color:#bb9af7;}.hljs-punctuation{color:#c0caf5;}.hljs-emphasis{font-style:italic;}.hljs-strong{font-weight:700;}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;background-color:var(--color-canvas-default);font-size:12px;line-height:1.5;word-wrap:break-word;}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom;}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block;}.markdown-body summary{display:list-item;}.markdown-body [hidden]{display:none !important;}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none;}.markdown-body abbr[title]{border-bottom:none;text-decoration:underline dotted;}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold,600);}.markdown-body dfn{font-style:italic;}.markdown-body h1{margin:0.67em 0;font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted);}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default);}.markdown-body small{font-size:90%;}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}.markdown-body sub{bottom:-0.25em;}.markdown-body sup{top:-0.5em;}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default);}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em;}.markdown-body figure{margin:1em 40px;}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:1px;padding:0;margin:15px 0;background-color:',';border:0;}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit;}.markdown-body [type="button"],.markdown-body [type="reset"],.markdown-body [type="submit"]{-webkit-appearance:button;}.markdown-body [type="checkbox"],.markdown-body [type="radio"]{box-sizing:border-box;padding:0;}.markdown-body [type="number"]::-webkit-inner-spin-button,.markdown-body [type="number"]::-webkit-outer-spin-button{height:auto;}.markdown-body [type="search"]::-webkit-search-cancel-button,.markdown-body [type="search"]::-webkit-search-decoration{-webkit-appearance:none;}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:0.54;}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}.markdown-body a:hover{text-decoration:underline;}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1;}.markdown-body hr::before{display:table;content:"";}.markdown-body hr::after{display:table;clear:both;content:"";}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;}.markdown-body td,.markdown-body th{padding:0;}.markdown-body details summary{cursor:pointer;}.markdown-body details:not([open]) > *:not(summary){display:none !important;}.markdown-body a:focus,.markdown-body [role="button"]:focus,.markdown-body input[type="radio"]:focus,.markdown-body input[type="checkbox"]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:focus:not(:focus-visible),.markdown-body [role="button"]:focus:not(:focus-visible),.markdown-body input[type="radio"]:focus:not(:focus-visible),.markdown-body input[type="checkbox"]:focus:not(:focus-visible){outline:solid 1px transparent;}.markdown-body a:focus-visible,.markdown-body [role="button"]:focus-visible,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type="radio"]:focus,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus,.markdown-body input[type="checkbox"]:focus-visible{outline-offset:0;}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted);}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold,600);line-height:1.25;}.markdown-body h2{font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted);}.markdown-body h3{font-weight:var(--base-text-weight-semibold,600);font-size:1.25em;}.markdown-body h4{font-weight:var(--base-text-weight-semibold,600);font-size:1em;}.markdown-body h5{font-weight:var(--base-text-weight-semibold,600);font-size:0.875em;}.markdown-body h6{font-weight:var(--base-text-weight-semibold,600);font-size:0.85em;color:var(--color-fg-muted);}.markdown-body p{margin-top:0;margin-bottom:10px;}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:0.25em solid var(--color-border-default);}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em;}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman;}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha;}.markdown-body dd{margin-left:0;}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal;}.markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor;}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none;}.markdown-body::before{display:table;content:"";}.markdown-body::after{display:table;clear:both;content:"";}.markdown-body > *:first-child{margin-top:0 !important;}.markdown-body > *:last-child{margin-bottom:0 !important;}.markdown-body a:not([href]){color:inherit;text-decoration:none;}.markdown-body .absent{color:var(--color-danger-fg);}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1;}.markdown-body .anchor:focus{outline:none;}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px;}.markdown-body blockquote > :first-child{margin-top:0;}.markdown-body blockquote > :last-child{margin-bottom:0;}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden;}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none;}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible;}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 0.2em;font-size:inherit;}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block;}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px;}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0;}.markdown-body ol li{list-style:auto;}.markdown-body ul li{list-style:initial;}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none;}.markdown-body ol[type="a"]{list-style-type:lower-alpha;}.markdown-body ol[type="A"]{list-style-type:upper-alpha;}.markdown-body ol[type="i"]{list-style-type:lower-roman;}.markdown-body ol[type="I"]{list-style-type:upper-roman;}.markdown-body ol[type="1"]{list-style-type:decimal;}.markdown-body div > ol:not([type]){list-style-type:decimal;}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0;}.markdown-body li > p{margin-top:16px;}.markdown-body li + li{margin-top:0.25em;}.markdown-body dl{padding:0;}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold,600);}.markdown-body dl dd{padding:0 16px;margin-bottom:16px;}.markdown-body table th{font-weight:var(--base-text-weight-semibold,600);}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default);}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted);}.markdown-body table img{background-color:transparent;}.markdown-body img[align="right"]{padding-left:20px;}.markdown-body img[align="left"]{padding-right:20px;}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent;}.markdown-body span.frame{display:block;overflow:hidden;}.markdown-body span.frame > span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default);}.markdown-body span.frame span img{display:block;float:left;}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default);}.markdown-body span.align-center{display:block;overflow:hidden;clear:both;}.markdown-body span.align-center > span{display:block;margin:13px auto 0;overflow:hidden;text-align:center;}.markdown-body span.align-center span img{margin:0 auto;text-align:center;}.markdown-body span.align-right{display:block;overflow:hidden;clear:both;}.markdown-body span.align-right > span{display:block;margin:13px 0 0;overflow:hidden;text-align:right;}.markdown-body span.align-right span img{margin:0;text-align:right;}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden;}.markdown-body span.float-left span{margin:13px 0 0;}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden;}.markdown-body span.float-right > span{display:block;margin:13px auto 0;overflow:hidden;text-align:right;}.markdown-body code,.markdown-body tt{padding:0.2em 0.4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px;}.markdown-body code br,.markdown-body tt br{display:none;}.markdown-body del code{text-decoration:inherit;}.markdown-body samp{font-size:85%;}.markdown-body pre code{font-size:100%;}.markdown-body pre > code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0;}.markdown-body .highlight{margin-bottom:16px;}.markdown-body .highlight pre{margin-bottom:0;word-break:normal;}.markdown-body .highlight pre,.markdown-body pre{padding:16px 16px 8px 16px;overflow:auto;font-size:85%;line-height:1.45;border-radius:6px;}.markdown-body pre code,.markdown-body pre tt{display:inline-block;max-width:100%;padding:0;margin:0;overflow-x:scroll;line-height:inherit;word-wrap:normal;background-color:transparent;border:0;}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap;}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0;}.markdown-body .csv-data tr{border-top:0;}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold,600);background:var(--color-canvas-subtle);border-top:0;}.markdown-body [data-footnote-ref]::before{content:"[";}.markdown-body [data-footnote-ref]::after{content:"]";}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default);}.markdown-body .footnotes ol{padding-left:16px;}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px;}.markdown-body .footnotes li{position:relative;}.markdown-body .footnotes li:target::before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px;}.markdown-body .footnotes li:target{color:var(--color-fg-default);}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace;}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment);}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant);}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity);}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import);}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag);}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword);}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string);}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable);}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched);}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg);}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg);}.markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp);}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list);}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading);}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic);}.markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold);}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg);}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg);}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg);}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg);}.markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range);}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle);}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark);}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link);}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal,400);line-height:1;vertical-align:-0.075em;}.markdown-body g-emoji img{width:1em;height:1em;}.markdown-body .task-list-item{}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal,400);}.markdown-body .task-list-item.enabled label{cursor:pointer;}.markdown-body .task-list-item + .task-list-item{margin-top:4px;}.markdown-body .task-list-item .handle{display:none;}.markdown-body .task-list-item-checkbox{margin:0 0.2em 0.25em -1.4em;vertical-align:middle;}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em 0.25em 0.2em;}.markdown-body .contains-task-list{position:relative;}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto;}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%);}'],mt=>mt.theme.color_bg_border_01),G=re.Ay.div.withConfig({displayName:"styles__StyledChatMessageHead",componentId:"sc-1hjb7u8-0"})(["display:flex;align-items:center;margin-bottom:10px;svg{width:30px;height:30px;margin-right:8px;border-radius:15px;border:1px solid ",";}.header-right{.name{color:",';font-family:"PingFang SC";font-size:12px;font-weight:500;line-height:18px;}.time{color:',';font-family:"PingFang SC";font-size:12px;line-height:18px;}}'],mt=>mt.theme.color_bg_border_01,mt=>mt.theme.color_text_L1,mt=>mt.theme.color_text_L3),Ht=(0,k.memo)(mt=>{let{time:Jn}=mt;return(0,Ae.jsxs)(G,{children:[(0,Ae.jsx)(We.C,{name:"chatGPT/ai-chat-avatar",isColorPure:!0}),(0,Ae.jsxs)("div",{className:"header-right",children:[(0,Ae.jsx)("div",{className:"name",children:I18N.ChatGPT.ai_chat_mockitt+" DeepSeek-R1"}),(0,Ae.jsx)("div",{className:"time",children:Jn})]})]})}),Tt=(0,k.memo)(mt=>{let{chatMessage:Jn,onChatCollapseDt:o}=mt;const{status:so,id:Et,message:Jt,time:Ot="",dtMessage:dn="",dtTime:Ce,collapseDt:Pt}=Jn,{isFail:Nn,isStreaming:At,isSuccess:on}=(0,k.useMemo)(()=>{const mn=so===C.generating,ht=so===C.fail,Fn=so===C.streaming,Yt=so===C.finish;return{isFail:ht,isStreaming:mn||Fn,isSuccess:Yt}},[so]),no=(0,k.useCallback)(async()=>{var mn;await O(Jt)&&((mn=MB)==null||mn.notice({text:I18N.ChatGPT.copied_successfully,svgName:"chatGPT/copy-success"}))},[Jt]),mo=(0,k.useCallback)(()=>{on&&o&&o(Jn)},[on,Jn,o]);return(0,Ae.jsxs)(et,{id:"message-"+Et,children:[(0,Ae.jsx)("div",{className:S()("row-content","assistant"),children:(0,Ae.jsxs)("div",{className:S()("message-content",Nn&&"fail",(At||on)&&"is-stream"),children:[(0,Ae.jsx)(Ht,{time:Ot}),!Nn&&(0,Ae.jsxs)("div",{className:"deep-seek-container",children:[(0,Ae.jsxs)("div",{className:S()("deep-seek-head",Pt&&"is-collapse"),children:[(0,Ae.jsxs)("div",{className:"head-left",children:[(0,Ae.jsx)("div",{className:S()("svg-box",Pt&&"is-collapse"),children:(0,Ae.jsx)(We.C,{name:"chatGPT/ai-chat-expand-arrow",className:"ai-chat-expand-arrow",onClick:mo})}),(0,Ae.jsxs)("div",{className:"status",children:[At&&!Jt.length?I18N.ChatGPT.ai_chat_thinking:I18N.ChatGPT.ai_chat_deeply_thought,(!At||Jt.length>0)&&(0,Ae.jsx)("span",{children:"\uFF08"+I18N.ChatGPT.ai_chat_elapsed+" "+(Ce||0)+"s\uFF09"})]}),At&&(0,Ae.jsx)(Ge,{})]}),(0,Ae.jsx)("div",{className:"svg-box",children:on&&(0,Ae.jsx)(We.C,{name:"chatGPT/ai-chat-copy",className:"ai-chat-copy",onClick:no})})]}),!Pt&&(0,Ae.jsx)(it,{message:dn,id:Et,className:"markdown-body-deep-seek"})]}),(0,Ae.jsx)(it,{message:Jt,id:Et})]})}),(0,Ae.jsx)(Ut,{})]})}),Vt=(0,k.memo)(mt=>{let{chatMessage:Jn}=mt;const{id:o,message:so}=Jn;return(0,Ae.jsxs)(et,{id:"message-"+o,children:[(0,Ae.jsx)("div",{className:S()("row-content","user"),children:(0,Ae.jsx)("div",{className:S()("message-content","user"),children:(0,Ae.jsx)(it,{message:so,id:o})})}),(0,Ae.jsx)(Ut,{})]})}),He=(0,k.memo)(mt=>{let{chatMessage:Jn,onChatCollapseDt:o}=mt;const{role:so}=Jn;return so===P.user?(0,Ae.jsx)(Vt,{chatMessage:Jn}):(0,Ae.jsx)(Tt,{chatMessage:Jn,onChatCollapseDt:o})}),rn=async mt=>{let{params:Jn,chatID:o,user:so,org:Et,projectCid:Jt,signal:Ot,handelChatResult:dn,handleChatStream:Ce}=mt;try{const Pt=await fetch("/js-hpr/v8chat?uId="+so.id+"&upperCid="+Jt,{signal:Ot,method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(Jn)});if(!Pt||!Pt.ok||!Pt.body){dn({success:!1,erroMsg:(0,f.iH)({code:Pt.status,user:so,org:Et}),chatID:o,status:Pt.status}),(Pt==null?void 0:Pt.status)===401&&((0,f.K7)(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,f.AG)()));return}const Nn=Pt.body.getReader(),At=new TextDecoder("utf-8"),on=performance.now();let no="",mo=!1;const mn=ht=>{const{content:Fn,reasoningContent:Yt,done:Gt,value:Bn}=E(ht),qt=Zt=>{let{message:jn="",dtMessage:ro=""}=Zt;const Tn={chatId:o,chatContent:{message:jn,dtMessage:ro}};if(jn&&!mo){const bt=((performance.now()-on)/1e3).toFixed(2).replace(/\.?0+$/,"");Tn.chatContent={...Tn.chatContent,dtTime:bt,collapseDt:!0},mo=!0}Ce(Tn)};if(Gt&&Bn&&Bn.answer){const{answer:Zt,reasoning:jn}=Bn;qt({message:Zt,dtMessage:jn});return}qt({message:Fn,dtMessage:Yt})};for(;;){const{value:ht,done:Fn}=await Nn.read();if(ht&&(no+=At.decode(ht,{stream:!0}),mn(no)),Fn)break}dn({success:!0,erroMsg:"",chatID:o,status:200})}catch(Pt){dn({success:!1,erroMsg:(0,f.iH)({code:0,user:so,org:Et}),chatID:o,status:402})}};let Lt=null;class jt extends k.PureComponent{constructor(){var Jn;super(...arguments),Jn=this,(0,a.A)(this,"state",{style:{left:0,top:0},inputChat:"",streamChat:null,chatMessages:[],generating:!1,isUserScrolling:!1}),(0,a.A)(this,"setElemRef",o=>this.$chatBody=o),(0,a.A)(this,"getOrgID",()=>{const{commonData:{org:o,user:so}}=this.props;return(0,q.WX)({user:so,org:o})}),(0,a.A)(this,"handleScroll",o=>{const{scrollTop:so,scrollHeight:Et,clientHeight:Jt}=o.currentTarget;this.setState({isUserScrolling:!0}),so+Jt>=Et-5&&setTimeout(()=>this.setState({isUserScrolling:!1}),50)}),(0,a.A)(this,"onChatBodyScrollBottom",()=>{const{isUserScrolling:o}=this.state;!this.$chatBody||o||requestAnimationFrame(()=>{this.$chatBody.scrollTop=this.$chatBody.scrollHeight})}),(0,a.A)(this,"sendMessageHandle",async function(o,so){so===void 0&&(so=!1),Jn.setState({inputChat:""});const{commonData:{user:Et,project:Jt}}=Jn.props,{chatMessages:Ot}=Jn.state,{chatList:dn,streamChat:Ce}=J(Ot,o,Et,Jt);Jn.setState({chatMessages:dn,streamChat:Ce,generating:!0,isUserScrolling:!1},()=>{Pt()});const Pt=async()=>{Jn.onChatBodyScrollBottom(),ENV.IS_WONDER_SHARE?await Jn.handleWonderShareChat(o,Ce):await Jn.handleStreamChat(o,Ce,so)}}),(0,a.A)(this,"handleUpdateAIUsedTimes",o=>{const{commonData:{user:so,org:Et,project:Jt},actions:{updateCurrentOrg:Ot,updateCurrentUser:dn}}=this.props;Jt.is_org_project&&Et?Ot({org:Object.assign(Et,{used_times:o})}):dn({user:Object.assign(so,{used_times:o})})}),(0,a.A)(this,"handleUpdateAIPoints",o=>{const{commonData:{user:so,org:Et,project:Jt},actions:{updateCurrentOrg:Ot,updateCurrentUser:dn}}=this.props;Jt.is_org_project&&Et?Ot({org:Object.assign(Et,{ai_points:o})}):dn({user:Object.assign(so,{ai_points:o})})}),(0,a.A)(this,"handleWonderShareChat",async(o,so)=>{try{const{chatMessages:Et,generating:Jt,streamChat:Ot}=this.state,{commonData:{user:dn,org:Ce}}=this.props,Pt=await(0,f.om)(D(o,Et),this.getOrgID(),so.id);if(!Jt)return;const{reply:Nn,loadingID:At}=Pt;if(At!==Ot.id)return;let{limited:on}=Pt;if(Nn&&Nn){const{limited:mo,success:mn}=await(0,f.GM)({user:dn,org:Ce,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes});mn&&(on=mo)}const no=Nn&&!on;this.setState({chatMessages:[...Et,{...Ot,message:on?I18N.ChatGPT.chat_restricted:Nn||I18N.ChatGPT.chat_error,status:no?C.finish:C.fail}],streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}catch(Et){this.setState({streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}}),(0,a.A)(this,"handleStreamChat",async(o,so,Et)=>{const{chatMessages:Jt}=this.state,{commonData:{user:Ot,org:dn,project:Ce}}=this.props;Lt&&Lt.abort(),Lt=new AbortController,await rn({params:{user:o,history:D(o,Jt)},chatID:so.id,user:Ot,org:dn,projectCid:(Ce==null?void 0:Ce.cid)||"",signal:Lt.signal,handelChatResult:Pt=>{let{success:Nn,erroMsg:At,chatID:on,status:no}=Pt;const{chatMessages:mo,streamChat:mn,generating:ht}=this.state;if(ht&&mn&&mn.id===on){const Yt={...mn,status:Nn?C.finish:C.fail,message:mn.message||I18N.ChatGPT.ai_chat_stream_error};Nn||(Yt.message=At),(0,rt.flushSync)(()=>{this.setState({generating:!1,streamChat:null,chatMessages:[...mo,Yt]})}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}if(Lt=null,Et)return;const Fn=document.getElementById("chat-input");Fn&&Fn.focus()},handleChatStream:Pt=>{let{chatId:Nn,chatContent:At}=Pt;const{streamChat:on,generating:no}=this.state;no&&on&&on.id===Nn&&((0,rt.flushSync)(()=>{this.setState({streamChat:{...on,...At,status:C.streaming}})}),this.onChatBodyScrollBottom())}})}),(0,a.A)(this,"stopGeneratingHandle",async function(o){o===void 0&&(o=!1);const{chatMessages:so,streamChat:Et}=Jn.state,Jt=o?[]:so;!o&&Et&&(Et.dtMessage||Et.message)&&Jt.push({...Et,status:C.finish}),Jn.setState({chatMessages:Jt,streamChat:null,generating:!1});const Ot=document.getElementById("chat-input");Ot&&Ot.focus(),Lt&&(Lt.abort(),Lt=null)}),(0,a.A)(this,"aiFunctionTrackHandle",o=>{const{actions:{track:so}}=this.props;so("proto_ai_use",{ai_func:"AI\u5BF9\u8BDD",ai_input:o})}),(0,a.A)(this,"createNewDialogueHandle",async()=>{this.setState({inputChat:""}),await this.stopGeneratingHandle(!0)}),(0,a.A)(this,"modalOnMouseOver",()=>{const{actions:{updateIsInChatModal:o}}=this.props;o(!0)}),(0,a.A)(this,"modalOnMouseLeave",()=>{const{actions:{updateIsInChatModal:o}}=this.props;o(!1)}),(0,a.A)(this,"handleSelectRecommend",o=>{this.handleChatInputValue(o);const so=document.getElementById("chat-input");so&&so.focus()}),(0,a.A)(this,"handleChatInputValue",o=>{this.setState({inputChat:o})}),(0,a.A)(this,"handleChatCollapseDt",o=>{const{chatMessages:so}=this.state,Et=so.map(Jt=>Jt.id===o.id?{...Jt,collapseDt:!Jt.collapseDt}:Jt);this.setState({chatMessages:Et})})}componentDidMount(){lt.A.addListener(lt.d,Jn=>{this.stopGeneratingHandle(!1),this.sendMessageHandle(Jn,!0)}),this.$chatBody&&this.$chatBody.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){lt.A.removeAllListeners(),this.$chatBody&&this.$chatBody.removeEventListener("scroll",this.handleScroll)}render(){const{inputChat:Jn,generating:o,streamChat:so,chatMessages:Et}=this.state,{commonData:{theme:Jt,showHeadSwitch:Ot}}=this.props,dn=!Et||Et.length===0,Ce=Jt==="dark";return(0,Ae.jsx)(Xe,{className:Ot?"show-switch":"",onMouseOver:this.modalOnMouseOver,onMouseLeave:this.modalOnMouseLeave,children:(0,Ae.jsxs)("div",{className:"chat-content",children:[(0,Ae.jsx)("div",{className:"chat-body",ref:this.setElemRef,children:dn?(0,Ae.jsx)(tt,{isDark:Ce,sendMessageHandle:this.handleSelectRecommend}):(0,Ae.jsxs)(Ae.Fragment,{children:[Et.map((Pt,Nn)=>(0,Ae.jsx)(He,{chatMessage:Pt,onChatCollapseDt:this.handleChatCollapseDt},Nn+"-"+Pt.id)),so&&(0,Ae.jsx)(He,{chatMessage:so})]})}),(0,Ae.jsx)(Oe,{isDark:Ce,sendMessageHandle:this.sendMessageHandle,isEmpty:dn,userInput:Jn,generating:o,createNewDialogueHandle:this.createNewDialogueHandle,handleChatInputValue:this.handleChatInputValue,stopGeneratingHandle:this.stopGeneratingHandle})]})})}}},44174:(eo,ot,i)=>{"use strict";i.d(ot,{Q:()=>Y,t:()=>q});var a=i(50960),k=i.n(a),M=i(46905),P=i(34394),C=i(18848);const q=J=>{let{selectedTrees:O,selectedCarouseImage:l}=J;try{const m=(0,M.n3)(O).filter(f=>f.type===(P.x.WImage||P.x.WCarousel));let E=0;return m.forEach(f=>{f.type===P.x.WImage&&(E=E+1),f.type===P.x.WCarousel&&(l==null?E=E+f.carousel.slides.length:E=E+1)}),E=Math.max(E,3),E}catch(D){return console.error("getImageAutoFillNumber error:",D),3}},Y=(J,O)=>{try{if(!J||Object.keys(J).length===0)return null;const{images:l}=J;if(!l||l.length===0)return null;const D=l.map((m,E)=>{const{keyword:f,originalSize:{width:h,height:S},url:V}=m,We=200,re=k()(200*S/h);return{asset_cid:"ai_"+E,image:V,width:We,height:re,img_tag:[f],size:"",thumb:V,name:"\u793A\u4F8B\u56FE\u7247",group_cid:""}});(0,C.bY)({result:D,...O})}catch(l){return null}}},44599:(eo,ot,i)=>{"use strict";i.d(ot,{h:()=>P});var a=i(38502),k=i(67787),M=i(72214);function P(){return(0,M.jsxs)(C,{children:[q,(0,M.jsx)("span",{className:"text",children:I18N.Note.no_node})]})}const C=k.Ay.div.withConfig({displayName:"STEmptyList__StyledEmptyList",componentId:"sc-nz9lz6-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;background:",";.text{white-space:nowrap;margin-top:16px;font-size:12px;line-height:16px;color:#666666;}"],Y=>Y.theme.color_bg_white),q=(0,M.jsxs)("svg",{width:"123",height:"94",viewBox:"0 0 123 94",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M47.4341 29.4479C46.8511 29.4478 46.2703 29.5195 45.705 29.6616C45.705 29.5868 45.705 29.5227 45.705 29.4479C45.7986 28.4797 45.6878 27.5028 45.3795 26.5797C45.0713 25.6567 44.5725 24.808 43.9152 24.0881C43.2579 23.3681 42.4566 22.7929 41.5627 22.3992C40.6688 22.0056 39.702 21.8022 38.7245 21.8022C37.7469 21.8022 36.7802 22.0056 35.8863 22.3992C34.9924 22.7929 34.1911 23.3681 33.5338 24.0881C32.8764 24.808 32.3777 25.6567 32.0695 26.5797C31.7612 27.5028 31.6503 28.4797 31.7439 29.4479V29.512C30.7145 29.6494 29.7287 30.0127 28.8575 30.5754C27.9864 31.1382 27.2518 31.8865 26.7068 32.7663C26.1618 33.646 25.82 34.6352 25.7061 35.6624C25.5922 36.6896 25.7091 37.7291 26.0482 38.7059C26.3873 39.6827 26.9403 40.5723 27.6671 41.3105C28.394 42.0487 29.2766 42.6171 30.2511 42.9745C31.2256 43.3319 32.2678 43.4695 33.3023 43.3773C34.3368 43.2851 35.3378 42.9654 36.233 42.4413C37.1564 42.862 38.1599 43.0806 39.1755 43.0824C40.5826 43.0908 41.9583 42.6694 43.1169 41.875C43.9936 42.5663 45.0241 43.0385 46.122 43.2521C47.2199 43.4657 48.3533 43.4144 49.4272 43.1026C50.5011 42.7908 51.4843 42.2275 52.2944 41.4599C53.1045 40.6923 53.718 39.7427 54.0835 38.6907C54.4489 37.6387 54.5558 36.5149 54.395 35.4134C54.2342 34.3118 53.8105 33.2647 53.1594 32.3596C52.5082 31.4545 51.6486 30.7178 50.6525 30.2112C49.6564 29.7046 48.5528 29.4429 47.4341 29.4479Z",fill:"url(#paint0_linear_7226_73395)"}),(0,M.jsx)("path",{d:"M16.4603 19.5625C16.2338 19.5655 16.0084 19.5952 15.7888 19.6508C15.7888 19.6508 15.7888 19.5919 15.7888 19.5625C15.7525 18.8657 15.4494 18.2095 14.9421 17.7291C14.4348 17.2488 13.762 16.981 13.0625 16.981C12.363 16.981 11.6902 17.2488 11.1829 17.7291C10.6756 18.2095 10.3725 18.8657 10.3362 19.5625C9.93751 19.6176 9.55607 19.7602 9.21929 19.98C8.88251 20.1998 8.59877 20.4913 8.38849 20.8336C8.17821 21.1758 8.04662 21.5604 8.0032 21.9595C7.95978 22.3585 8.00559 22.7623 8.13736 23.1416C8.26912 23.5209 8.48355 23.8663 8.76522 24.1531C9.04688 24.4398 9.38878 24.6607 9.76629 24.7998C10.1438 24.939 10.5475 24.9929 10.9485 24.9577C11.3494 24.9226 11.7375 24.7992 12.0849 24.5965C12.4426 24.7646 12.833 24.8525 13.2285 24.8541C13.7758 24.8536 14.3104 24.6895 14.7632 24.383C15.1042 24.6506 15.5043 24.833 15.9302 24.9151C16.3561 24.9972 16.7956 24.9766 17.2119 24.855C17.6282 24.7334 18.0094 24.5143 18.3236 24.216C18.6379 23.9178 18.8761 23.5489 19.0185 23.1402C19.1609 22.7314 19.2034 22.2947 19.1423 21.8663C19.0812 21.4379 18.9183 21.0303 18.6673 20.6774C18.4163 20.3245 18.0844 20.0365 17.6992 19.8374C17.314 19.6384 16.8867 19.534 16.4529 19.5331L16.4603 19.5625Z",fill:"url(#paint1_linear_7226_73395)"}),(0,M.jsx)("path",{d:"M114.874 27.4273C114.205 27.4211 113.538 27.5034 112.89 27.672C112.902 27.5909 112.902 27.5084 112.89 27.4273C112.89 25.2988 112.044 23.2575 110.537 21.7525C109.031 20.2474 106.987 19.4019 104.857 19.4019C102.726 19.4019 100.683 20.2474 99.1767 21.7525C97.6702 23.2575 96.8238 25.2988 96.8238 27.4273C95.6461 27.5872 94.5185 28.0062 93.5224 28.6541C92.5263 29.302 91.6866 30.1626 91.0637 31.174C90.4409 32.1853 90.0503 33.3221 89.9204 34.5025C89.7905 35.6828 89.9245 36.8773 90.3125 37.9997C90.7006 39.1221 91.3331 40.1445 92.1644 40.9931C92.9958 41.8418 94.0053 42.4955 95.1201 42.9072C96.235 43.319 97.4274 43.4784 98.6114 43.374C99.7954 43.2696 100.942 42.9041 101.967 42.3037C103.029 42.7855 104.181 43.0358 105.347 43.0377C106.952 43.0382 108.52 42.5612 109.853 41.6675C110.861 42.4656 112.045 43.0104 113.308 43.2561C114.57 43.5018 115.872 43.4411 117.106 43.0793C118.34 42.7175 119.469 42.0651 120.398 41.1768C121.327 40.2886 122.029 39.1906 122.445 37.975C122.861 36.7594 122.979 35.4618 122.788 34.1913C122.598 32.9208 122.105 31.7145 121.351 30.6738C120.598 29.633 119.605 28.7883 118.456 28.2106C117.308 27.6329 116.037 27.3391 114.751 27.3539L114.874 27.4273Z",fill:"url(#paint2_linear_7226_73395)"}),(0,M.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90182 42.1735L4.9033 42.173L4.90182 42.1735ZM8.65192 40.7023C9.70269 40.8731 10.6949 41.099 11.5664 41.3514C12.4957 41.6204 14.0916 43.1779 14.804 44.8451C15.0107 45.6439 14.3012 44.7245 12.9295 44.0637C12.4627 43.8323 11.7991 43.5814 10.9887 43.3468C9.37049 42.8783 7.27742 42.5063 5.22568 42.4583C4.94562 42.4518 4.69145 42.434 4.48486 42.3997C4.38696 42.3834 4.25506 42.3565 4.12267 42.3055C4.05726 42.2803 3.95273 42.2347 3.84302 42.1554C3.74251 42.0828 3.54639 41.9161 3.44697 41.6218C3.33065 41.2776 3.40935 40.9523 3.54558 40.7268C3.66102 40.5357 3.80804 40.4257 3.88305 40.3752C4.03676 40.2719 4.19543 40.2177 4.2836 40.1902C4.4856 40.1272 4.73907 40.0802 5.01413 40.0424C5.521 39.9729 6.00599 39.8888 6.40015 39.7641C6.59471 39.7025 6.74016 39.6392 6.84207 39.5795C6.88994 39.5515 6.92113 39.5284 6.94053 39.5121C6.93116 39.474 6.9082 39.4098 6.85576 39.3105C6.66666 38.9526 6.19845 38.3837 5.21304 37.5672C5.10857 37.4807 5.00723 37.3901 4.91842 37.2972C4.83994 37.2151 4.72111 37.0801 4.63382 36.9024C4.55259 36.737 4.39548 36.3094 4.65066 35.8513C4.88228 35.4355 5.27808 35.3269 5.40897 35.2975C5.69258 35.2337 5.99798 35.2713 6.1595 35.2928C6.3695 35.3208 6.61315 35.3667 6.86198 35.4169C7.02851 35.4504 7.20266 35.4868 7.38239 35.5243C8.33205 35.7225 9.43774 35.9533 10.4012 35.9788C10.9761 35.994 11.3655 35.9285 11.589 35.8262C11.7428 35.7558 11.7804 35.6992 11.7987 35.5603C11.8303 35.3212 11.7731 34.81 11.3334 33.8899C10.9045 32.9924 10.1643 31.8135 8.99751 30.2862C8.81698 30.0498 8.65698 29.7828 8.5642 29.4964C8.47756 29.2289 8.40489 28.7974 8.6235 28.3665C8.86976 27.8811 9.3282 27.6919 9.69446 27.6518C10.0353 27.6144 10.3706 27.6879 10.6555 27.7857C12.3008 28.351 14.8172 29.2126 17.3407 28.7778C19.7277 28.3666 22.3473 26.7438 24.1075 21.7794C24.2545 21.3648 24.5483 20.9527 24.8784 20.7055C24.9683 20.6381 25.1024 20.5514 25.2735 20.4931C25.4371 20.4373 25.7442 20.372 26.086 20.5108C26.4614 20.6633 26.6535 20.9678 26.7342 21.2076C26.8074 21.425 26.8069 21.6272 26.7973 21.7596C26.7752 22.0648 26.7068 22.456 26.6261 22.9177C26.2518 25.0584 26.9827 29.1871 28.732 32.5794C29.3613 33.7997 29.2973 33.9554 28.3944 32.9211C26.8671 31.1717 24.6585 28.0482 24.6827 24.7135C23.4253 29.176 20.0491 30.4192 17.6934 30.825C15.4193 31.2168 13.207 30.7566 11.5607 30.2674C12.2928 31.31 12.8342 32.2125 13.2078 32.9942C13.7116 34.0486 13.968 35.0011 13.8582 35.8324C13.7351 36.764 13.1763 37.3844 12.4534 37.7152C11.8004 38.014 11.0332 38.0736 10.3462 38.0554C9.70776 38.0385 9.02219 37.9478 8.37878 37.8369C8.50096 38.0079 8.60557 38.1755 8.69256 38.3401C9.09917 39.1098 9.17525 39.9528 8.67178 40.6743C8.66523 40.6837 8.65861 40.693 8.65192 40.7023ZM6.94448 39.5578C6.94448 39.5578 6.94171 39.5483 6.94503 39.5343C6.94762 39.5516 6.94448 39.5578 6.94448 39.5578Z",fill:"#FF6161"}),(0,M.jsx)("g",{clipPath:"url(#clip0_7226_73395)",children:(0,M.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.7292 30.9892L62.4203 19.8885C61.6436 19.651 60.8215 20.0882 60.584 20.8648L49.4833 57.1737C49.2458 57.9504 49.6829 58.7726 50.4596 59.01L81.7007 68.5614C82.0737 68.6754 82.4767 68.6366 82.821 68.4535L89.4383 64.935C89.7827 64.7519 90.0402 64.4395 90.1542 64.0666L99.7056 32.8255C99.943 32.0488 99.5059 31.2267 98.7292 30.9892ZM63.7493 15.5416C60.5719 14.5702 57.2086 16.3585 56.2372 19.5359L45.1364 55.8448C44.165 59.0222 45.9533 62.3854 49.1307 63.3569L80.3717 72.9082C81.8976 73.3747 83.5462 73.216 84.955 72.4669L91.5723 68.9484C92.981 68.1994 94.0346 66.9214 94.5011 65.3955L104.052 34.1545C105.024 30.9771 103.236 27.6138 100.058 26.6424L63.7493 15.5416ZM59.8927 46.4463C59.5257 47.6466 60.2013 48.9172 61.4016 49.2842L72.2687 52.6066C73.4691 52.9736 74.7397 52.298 75.1066 51.0977C75.4736 49.8973 74.798 48.6267 73.5977 48.2598L62.7306 44.9373C61.5303 44.5704 60.2597 45.2459 59.8927 46.4463ZM64.724 38.4171C63.5237 38.0501 62.8481 36.7795 63.2151 35.5792C63.5821 34.3788 64.8527 33.7033 66.053 34.0702L87.7872 40.7151C88.9875 41.082 89.6631 42.3526 89.2961 43.553C88.9292 44.7533 87.6586 45.4289 86.4582 45.0619L64.724 38.4171Z",fill:"#90C0FA"})}),(0,M.jsx)("ellipse",{cx:"61.3846",cy:"85.3804",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3846 85.3804)",fill:"url(#paint3_linear_7226_73395)"}),(0,M.jsx)("path",{d:"M36.4098 69.0505L35.9903 68.1427L33.9816 69.0711C33.4802 69.3027 32.886 69.0842 32.6543 68.5828L31.7453 66.616L30.8376 67.0356L29.0197 63.102L29.9274 62.6825L28.1095 58.7489L27.2018 59.1684L25.3838 55.2349L26.2916 54.8153L24.4737 50.8818L23.5659 51.3013L21.748 47.3677L22.6557 46.9482L21.7468 44.9814C21.5151 44.4801 21.7337 43.8859 22.235 43.6542L24.2018 42.7452L23.7823 41.8375L27.7158 40.0195L28.1354 40.9273L32.0689 39.1094L31.6494 38.2016L35.583 36.3837L36.0025 37.2914L39.9361 35.4735L39.5165 34.5658L43.4501 32.7479L43.8696 33.6556L45.8364 32.7467C46.3378 32.515 46.932 32.7335 47.1637 33.2349L48.1149 35.2932L49.0227 34.8736L50.9252 38.9902L50.0174 39.4097L51.9199 43.5263L52.8277 43.1068L54.7302 47.2234L53.8224 47.6429L54.7737 49.7012C54.8889 49.9504 54.8965 50.2361 54.7948 50.4911L53.7363 53.1451L54.6651 53.5156L52.5481 58.8235L51.6193 58.453L50.5608 61.107C50.466 61.3447 50.2837 61.5369 50.0514 61.6443L48.0427 62.5726L48.4622 63.4804L44.4448 65.3371L44.0252 64.4293L40.0078 66.286L40.4273 67.1938L36.4098 69.0505Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeDasharray:"4 4"}),(0,M.jsx)("path",{d:"M45.5695 41.6833L29.8901 48.9296C29.5212 49.1001 29.3604 49.5373 29.5309 49.9062L29.821 50.5341C29.9915 50.903 30.4288 51.0639 30.7977 50.8934L46.4771 43.6471C46.846 43.4766 47.0068 43.0393 46.8363 42.6704L46.5461 42.0426C46.3756 41.6736 45.9384 41.5128 45.5695 41.6833Z",fill:"#9EA9BC"}),(0,M.jsx)("path",{d:"M41.4228 50.2093L32.0409 54.5452C31.8743 54.6222 31.867 54.961 32.0246 55.3021L32.2929 55.8825C32.4505 56.2236 32.7134 56.4376 32.88 56.3606L42.2618 52.0248C42.4284 51.9478 42.4357 51.6089 42.2781 51.2678L42.0099 50.6874C41.8522 50.3463 41.5894 50.1323 41.4228 50.2093Z",fill:"#9EA9BC"}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear_7226_73395",x1:"31.1855",y1:"15.0012",x2:"42.8442",y2:"43.4977",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CEE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear_7226_73395",x1:"10.1443",y1:"13.9103",x2:"14.699",y2:"25.0094",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CEE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint2_linear_7226_73395",x1:"105.812",y1:"17.3955",x2:"106.545",y2:"39.1474",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#E9EEFF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint3_linear_7226_73395",x1:"46.1107",y1:"78.4505",x2:"68.9711",y2:"99.6003",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CDE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,M.jsx)("clipPath",{id:"clip0_7226_73395",children:(0,M.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(51.2004) rotate(17.3641)"})})]})]})},46147:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>C});var a=i(95549),k=i(38502);const M={detector:"nT4U2_NOIS7CAZHovWxY"};var P=i(72214);class C extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"handleResize",()=>{const Y=this.elem.getBoundingClientRect();this.props.onResize(Y)})}componentDidMount(){var Y;((Y=this.elem)==null?void 0:Y.contentWindow)&&this.elem.contentWindow.addEventListener("resize",this.handleResize)}componentWillUnmount(){var Y;const J=(Y=this.elem)==null?void 0:Y.contentWindow;J&&J.removeEventListener("resize",this.handleResize)}render(){return(0,P.jsx)("iframe",{ref:Y=>this.elem=Y,className:M.detector})}}},46199:(eo,ot,i)=>{"use strict";i.d(ot,{NX:()=>m,XQ:()=>O,kY:()=>f,s3:()=>E,sV:()=>l});var a=i(15186),k=i(40610),M=i(20089),P=i(69815),C=i(78401),q=i(30294),Y=i(59025),J=i(45709);const O=["text_view",M.x.WMTooltip,M.x.WPlaceholder];function l(h){if(k.VV.includes(h.type)){const V=(0,P.YZ)(h.textV1);return(0,C.wh)(V)}else{if(O.includes(h.type))return h.type===M.x.WPlaceholder?'<div class="text" style="background-color: ">'+(0,C.c1)(h.textV0.text)+"</div>":'<div class="text">'+(0,C.c1)(h.textV0.text)+"</div>";if([M.x.WMSelect,M.x.WElbow].includes(h.type))return(0,C.c1)(h.textV0.text);if(h.type===M.x.WWebpage)return(0,C.wh)(h.webpage.url);if(h.type===M.x.WMTextInput||h.type===M.x.WMTextArea)return h.type===M.x.WMTextArea?(0,C.c1)(h.textInput.prefillTextV0):(0,C.wh)(h.textInput.prefillTextV0||"");var S;return(0,C.wh)(((S=h.textV0)==null?void 0:S.text)||"")}}const D=h=>{let{w:S,needPlaceHolder:V}=h,We;return V?We=(0,a.t0)(S.textV0.textColor):We=(0,a.t0)(S.textInput.prefillTextColorV0),We};function m(h,S){const{type:V,w:We,h:re,border:ve,textV0:we}=h;let Ae=0,Oe=0,Be=We,tt=re,Xe=we!=null&&we.paddingTuple?(0,Y.JG)(we==null?void 0:we.paddingTuple):{padding:(we==null?void 0:we.padding)+"px"},ne="transparent",lt="flex",rt=we?(0,a.t0)(we.textColor):"rgb(102, 102, 102)",Te=we==null?void 0:we.verticalAlign,Ge=we==null?void 0:we.horizontalAlign;const ue=(we==null?void 0:we.lineHeight)+"px";let Me=null,Ze={},fe={};switch(V){case M.x.WMSelect:{Oe=-6,Ae=-2,tt=200,ne="white",lt="block",Ge=void 0,fe={boxShadow:"0px 2px 14px 0px rgba(0,0,0,0.08)",borderRadius:"6px"},Be=Be+4;break}case M.x.WMTextArea:{const it=Math.max(Math.round(we.padding-(we.lineHeight-we.fontSize)/2),0);Xe={padding:it+1+"px "+we.padding+"px "+it+"px "+(we.padding+1)+"px"},Te=void 0,lt="block",Ae=1,rt=D({w:h,needPlaceHolder:S});break}case M.x.WMTextInput:{const it=ve.bdrWidth;S&&(fe={lineHeight:tt-2*it+"px"}),Xe={padding:"0 8px"},rt=D({w:h,needPlaceHolder:S}),Ae=1,Me="nowrap";break}case M.x.WWebpage:{tt=50,Xe={paddingTop:"11px",paddingRight:"0",paddingBottom:"0",paddingLeft:"86px"};break}case M.x.WElbow:{const{elbow:{dPathList:it,elbowType:et}}=h,{x:Ut,y:G}=(0,q.zG)(it,et),Ht=(0,q.X)(h,S);lt="block",Ae=Ut,Oe=G,Xe={paddingTop:"4px",paddingRight:"6px",paddingBottom:"4px",paddingLeft:"6px"},ne=S?"transparent":"#fff",Ze={width:"max-content",height:"auto",transform:"translateX(-50%) translateY(-50%)",minWidth:Ht}}}return{display:lt,top:Oe+"px",left:Ae+"px",width:Be+"px",height:tt+"px",backgroundColor:ne,justifyContent:we==null?void 0:we.horizontalAlign,fontSize:(we==null?void 0:we.fontSize)+"px",lineHeight:ue,color:rt,alignItems:Te,textAlign:Ge,...Xe,fontWeight:(0,J._y)(we==null?void 0:we.fontWeight,we==null?void 0:we.bold),fontStyle:we!=null&&we.italic?"italic":"",textDecoration:we==null?void 0:we.textDecoration,fontFamily:(we==null?void 0:we.fontFamily)||"PingFangSC",whiteSpace:Me,cursor:"text",letterSpacing:(we==null?void 0:we.letterSpacing)||0,...Ze,...fe}}const E=h=>{const S=h.type===M.x.WElbow?I18N.Widget.text:h.textV0.text,V=h.type===M.x.WElbow?"#666666":(0,a.t0)(h.textV0.textColor),We=m(h,!1);return We.overflowX="hidden",We.color=V,We.wordWrap="break-word",We.position="absolute",h.type===M.x.WMTextInput&&(We.overflowY="hidden"),{placeholderHTML:S,placeholderStyle:We}},f=h=>{let{type:S}=h;return[M.x.WMTextArea,M.x.WMTextInput].includes(S)}},46269:eo=>{var ot=Math.floor,i=Math.random;function a(k,M){return k+ot(i()*(M-k+1))}eo.exports=a},46407:(eo,ot,i)=>{"use strict";i.d(ot,{F:()=>C,c:()=>q});var a=i(19249),k=i(81122),M=i(91771),P=i(98033);const C=function(Y){var J;Y===void 0&&(Y="");const{isExperience:O,isLoggedExperience:l}=(J=MB.global)==null?void 0:J.designOptions;if(Y==="isSave"){if(O)return MB.global.popupHelper.loginAsync({onConfirm:q}),!0;if(l){const D=MB.getRootProject&&MB.getRootProject();return MB.global.popupHelper.teamSelectModalAsync({projectCid:D==null?void 0:D.cid,onConfirm:m=>(0,M.E)(m)}),!0}else return!1}else return O?(MB.global.popupHelper.loginAsync({onConfirm:q}),!0):!1},q=async()=>{if((0,k.BG)()){window.parent.location.reload();return}const{user:Y}=await(0,a.DE)("/api/web/v3/initial"),{currentUser:J}=(0,P.n)({user:Y,org:{}});(0,a.iv)("/api/web/v3/guide/complete_workspace_guide"),MB.user=Y,Object.assign(MB.global.designOptions,{isExperience:!1,isLoggedExperience:!0}),MB.action("update:design:options",{designOptions:{...MB.global.designOptions}}),MB.action("current:update:state",{currentUser:J});const O=MB.getRootProject&&MB.getRootProject();MB.global.popupHelper.teamSelectModalAsync({projectCid:O==null?void 0:O.cid,onConfirm:l=>(0,M.E)(l)})}},46573:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>ao});var a=i(38502),k=i(18381),M=i(12211),P=i(67052),C=i(74923),q=i(67588),Y=i(10472),J=i(70933),O=i(34771),l=i(83199),D=i(79150),m=i(53732),E=i.n(m),f=i(79287),h=i.n(f),S=i(17307),V=i(89240),We=Object.defineProperty,re=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Be=(v,K,te)=>K in v?We(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,tt=(v,K)=>{for(var te in K||(K={}))Ae.call(K,te)&&Be(v,te,K[te]);if(we)for(var te of we(K))Oe.call(K,te)&&Be(v,te,K[te]);return v},Xe=(v,K)=>re(v,ve(K)),ne=(v,K)=>{var te={};for(var me in v)Ae.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&we)for(var me of we(v))K.indexOf(me)<0&&Oe.call(v,me)&&(te[me]=v[me]);return te},rt=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=ne(te,["size","spin","style"]);const dt=tt(tt({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Xe(tt({ref:K,style:dt},yt),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6093 5.88625L10.1186 4.39228L7.60573 6.91841L7.04754 6.80104C6.64371 6.71613 6.22609 6.72212 5.82485 6.81856C5.68321 6.85261 5.54485 6.89762 5.41097 6.95303L9.04453 10.6106C9.09865 10.4786 9.14273 10.3422 9.17621 10.2026C9.27266 9.80046 9.27865 9.38185 9.19373 8.97707L9.07712 8.42125L11.6093 5.88625ZM8.93237 11.9876L4.04111 7.06395C4.00645 7.029 3.97947 6.98719 3.9619 6.94119C3.94434 6.89519 3.93657 6.84602 3.9391 6.79684C3.94162 6.74766 3.95439 6.69955 3.97659 6.6556C3.99878 6.61165 4.0299 6.57283 4.06796 6.54163C4.51052 6.1846 5.02679 5.93048 5.57945 5.79764C6.13211 5.6648 6.70735 5.65656 7.26358 5.77351L9.11651 3.91083L8.84413 3.63814C8.70207 3.5039 8.61843 3.31913 8.61125 3.12369C8.60407 2.92825 8.67394 2.73783 8.80577 2.5935C8.95111 2.46132 9.14273 2.39199 9.3389 2.40062C9.53507 2.40925 9.71988 2.49515 9.85307 2.63959L13.3786 6.17293C13.5175 6.31025 13.597 6.4967 13.5998 6.69211C13.6027 6.88751 13.5288 7.07622 13.394 7.21757C13.2496 7.35072 13.0586 7.4214 12.8624 7.41421C12.6865 7.40775 12.5192 7.33914 12.3898 7.22162C12.3749 7.20811 12.3605 7.19395 12.3467 7.17916L12.0743 6.90648L10.2214 8.76149C10.3382 9.31834 10.3299 9.89423 10.1973 10.4475C10.0646 11.0008 9.81073 11.5176 9.4541 11.9607C9.42294 11.9988 9.38416 12.03 9.34026 12.0522C9.29636 12.0744 9.2483 12.0872 9.19918 12.0897C9.15005 12.0922 9.10094 12.0845 9.05499 12.0669C9.00904 12.0493 8.96728 12.0223 8.93237 11.9876ZM5.13828 9.80613L6.20861 10.8584L3.036 13.5238C2.98407 13.5727 2.91547 13.5999 2.84419 13.5999C2.77291 13.5999 2.70431 13.5727 2.65237 13.5238L2.47591 13.3471C2.42708 13.2952 2.3999 13.2265 2.3999 13.1551C2.3999 13.0838 2.42708 13.0151 2.47591 12.9631L5.13828 9.80613Z",fill:"#8B8C8F"}))}),Te=i(58603),Ge=i(40486),ue=i(67787),Me=i(21066),Ze=i(51090);const fe=ue.Ay.div.withConfig({displayName:"styles__StyledMenuFilter",componentId:"sc-17ksmo3-0"})([".filter-opener{width:100%;height:24px;display:flex;align-items:center;border-radius:6px;padding-left:6px;padding-right:4px;cursor:pointer;.level-box,.display-name{text-align:left;color:",";}.display-name{max-width:132px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.level-box{width:132px;height:100%;display:flex;align-items:center;flex-direction:row;.level1-span{max-width:40%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.level2-span{max-width:60%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}}button{display:flex;align-items:center;.arrow-icon{margin-left:2px;transition:transform 0.2s ease-out 0s;path{stroke:",";}&.is-expand{transform:rotateX(180deg);}}}&:hover,&.is-open{background:",";}}"],v=>v.theme.color_text_L1,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover),it=(0,ue.Ay)(Me.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-17ksmo3-1"})(["",";ul,ul.is-normal{width:140px;min-width:140px;li.MenuItem.hasIcon,li.MenuItem{> a{padding-left:32px;.checked{width:16px;height:16px;position:absolute;left:8px;}.right-arrow{display:none;}> span{width:100%;span.text{display:block;}}}&.menu-displayed{> a{padding-left:8px;svg{margin-right:8px;}}}}}&.widget-modal-detail-header-menu{z-index:1052;}"],Ze.ZJ),et=ue.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-17ksmo3-2"})(["width:100%;height:1px;background:",";margin:8px 0;"],v=>v.theme.color_bg_border_01),Ut=(0,ue.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.DesignDropdownMenuBase{.DesignDropdownMenu{&.official-sub-filter-menu{width:100%;border-radius:9px;box-shadow:",";border:1px solid ",";margin-top:0;&.is-downward{top:0;right:0;left:0;bottom:initial;}&.x-center.is-open{transition:unset;transform:unset;}.content{padding:0;background:",";color:",";width:100%;}ul{width:100%;list-style:none;font-size:12px;padding:8px;li{border-radius:4px;height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.checked{width:16px;height:16px;position:absolute;left:8px;}svg:not(.checked){margin-right:8px;}&:hover,&.show-sub{background:",";}&.menu-displayed{padding-left:8px;}}}.sub-ul{position:absolute;left:100%;top:0;background:",";border-radius:9px;box-shadow:",";border:1px solid ",";}}}}}"],v=>v.theme.shadow_m,v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_white,v=>v.theme.shadow_m,v=>v.theme.color_bg_border_01);var G=i(72214);const Ht=(0,a.memo)(v=>{var K;const{level1:te,level2:me="",optionList:$e,onChange:nt,onChangeMode:yt}=v,[dt,It]=(0,a.useState)(!1),un=(0,a.useRef)(null),[xn,gn]=(0,a.useState)({}),[wo,vo]=(0,a.useState)(te),Co=(0,a.useCallback)(()=>{var pa;const na=$e.find(Ka=>Ka.value===te),Ma=na!=null&&(pa=na.children)!=null&&pa.length?na.children.find(Ka=>Ka.value===me):null;return na&&Ma?(0,Ge.JT)(te+"/"+me)<132?(0,G.jsxs)("span",{className:"display-name",children:[te,"\xA0/\xA0",me]}):(0,G.jsxs)("div",{className:"level-box",children:[(0,G.jsx)("span",{className:"level1-span",children:te}),"\xA0/\xA0",(0,G.jsx)("span",{className:"level2-span",children:me})]}):na?(0,G.jsx)("span",{className:"display-name",children:na.text||na.value}):""},[te,me,$e]),Eo=(0,a.useMemo)(()=>{let pa=null;return $e.forEach((na,Ma)=>{na.value===wo&&(pa={...na,index:Ma})}),pa},[wo,$e]);(0,a.useEffect)(()=>{var pa;if(!un.current)return;const na=(pa=un.current)==null?void 0:pa.querySelector("label.filter-opener");if(!na)return;const{bottom:Ma,right:Ka,top:Fa,height:xr}=na.getBoundingClientRect();gn({top:Ma+5,right:Ka})},[un.current]);const go=(0,a.useCallback)(pa=>{vo(pa)},[vo]),xo=(0,a.useCallback)(pa=>{It(pa),vo(te)},[te,vo,It]),jo=(0,a.useCallback)((pa,na)=>{nt(pa,na),It(!1)},[nt,It]);return(0,G.jsxs)(fe,{className:"official-menu-filter-container",ref:un,children:[(0,G.jsx)(Te.A,{menuY:"bottom",isOpen:dt,className:"filter-opener",onToggle:xo,shouldPreventScrollingPropagation:!1,menuBaseStyle:{...xn,width:140},hoverDelay:150,closeDelay:100,opener:(0,G.jsxs)(a.Fragment,{children:[Co(),(0,G.jsx)(V.A,{className:E()("arrow-icon",{"is-expand":dt}),size:14})]}),menuClassName:"official-sub-filter-menu",menu:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("ul",{children:[$e.map((pa,na)=>{let{value:Ma,text:Ka,children:Fa}=pa;const xr=te===Ma;return Ma==="divider"?(0,G.jsx)(et,{}):(0,G.jsxs)("li",{className:E()({active:xr},{"show-sub":wo===Ma}),"data-key":Ma,onClick:Fa!=null&&Fa.length?()=>{var Tr;return jo({data:Ma,index:na},{data:(Tr=Fa[0])==null?void 0:Tr.value,index:0})}:()=>jo({data:Ma,index:na}),onMouseEnter:()=>go(Ma),children:[xr&&(0,G.jsx)(S.C,{name:"common/checked",className:"checked"}),(0,G.jsx)("span",{children:Ka||Ma})]},Ma)}),yt&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(et,{}),(0,G.jsxs)("li",{className:"menu-displayed",onClick:yt,children:[(0,G.jsx)(rt,{size:16}),(0,G.jsx)("span",{children:I18N.LeftSidePanel.official.menuDisplayed})]})]})]}),Eo&&(Eo==null||(K=Eo.children)==null?void 0:K.length)&&(0,G.jsx)("ul",{className:"sub-ul",style:{top:28*(Eo==null?void 0:Eo.index)},children:Eo==null?void 0:Eo.children.map((pa,na)=>{let{value:Ma,text:Ka}=pa;const Fa=me===Ma;return(0,G.jsxs)("li",{className:E()({active:Fa}),"data-key":Ma,onClick:()=>jo({data:Eo.value,index:Eo.index},{data:Ma,index:na}),children:[Fa&&(0,G.jsx)(S.C,{name:"common/checked",className:"checked"}),(0,G.jsx)("span",{children:Ka||Ma})]},Ma)})})]})}),(0,G.jsx)(Ut,{})]})});var Tt=i(55326),Vt=i(93413),He=i(50325);const rn=ue.Ay.div.withConfig({displayName:"styles__StyledOfficialFilter",componentId:"sc-1cyl466-0"})(["width:100%;display:flex;align-items:center;flex-direction:column;border-bottom:1px solid ",";&.menu{height:40px;}.top{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;.left{margin-left:6px;.tile-box{font-size:12px;font-weight:400;color:",";margin-left:6px;height:24px;display:flex;align-items:center;padding:0 4px 0 6px;border-radius:5px;cursor:pointer;&:hover{background:",";}&:active{background:",";}}}.right{margin-right:6px;.platform-sub-filter{height:24px;.filter-opener{padding-left:4px;button{svg:not(.arrow-icon){path{fill:",";}&.mp-applet{path{stroke:",";fill:none;}}}}}}}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1),Lt=ue.Ay.div.withConfig({displayName:"styles__StyledOfficialMenuFilter",componentId:"sc-1cyl466-1"})([".filter-opener{width:100%;height:24px;display:flex;align-items:center;border-radius:6px;padding-left:6px;cursor:pointer;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";}.arrow-icon{margin-left:10px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}&:hover,&.is-open{background:",";}}label{width:100%;height:24px;display:flex;border-radius:6px;padding-left:6px;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";}button{display:flex;align-items:center;.arrow-icon{margin-left:10px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}}&:hover,&.is-open{background:",";}}.svg-icon{width:8px;height:8px;margin-right:7px;}"],v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover),jt=(0,ue.Ay)(Me.Ay).withConfig({displayName:"styles__StyledOfficialContextMenu",componentId:"sc-1cyl466-2"})(["",";ul,ul.is-normal{width:140px;min-width:140px;li.MenuItem.hasIcon,li.MenuItem{> a{padding-left:32px;.checked{width:16px;height:16px;position:absolute;left:8px;}.right-arrow{display:none;}}&.menu-displayed{> a{padding-left:8px;svg{margin-right:8px;}}}}}&.widget-modal-detail-header-menu{z-index:1052;}"],Ze.ZJ),mt=ue.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-1cyl466-3"})(["width:100%;height:1px;background:",";margin:8px 0;"],v=>v.theme.color_bg_border_01),Jn=ue.Ay.div.withConfig({displayName:"styles__StyledOfficialListFilter",componentId:"sc-1cyl466-4"})(["width:100%;display:flex;align-items:center;flex-flow:row wrap;align-items:flex-start;padding:4px 11px 8px 12px;row-gap:8px;column-gap:6px;.option,.platform-sub-filter .filter-opener{font-family:PingFang SC;height:24px;width:auto;word-break:keep-all;padding:0 8px;display:flex;flex-direction:row;align-items:center;text-decoration:none;color:",";max-width:123px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;background:",";border-radius:5px;button,.display-name{color:",";span.active{color:",";font-weight:500;}}.arrow-icon{margin-left:4px;margin-right:0;color:",";}&:hover{background:",";}&.is-active{background:",";color:",";font-weight:500;}}"],v=>v.theme.color_text_L2,v=>v.theme.color_navigation_hover,v=>v.theme.color_text_L2,v=>v.theme.color_text_L1,v=>v.theme.color_text_L2,v=>v.theme.color_navigation_active,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L1),o=(0,a.memo)(v=>{const{platformType:K,optionList:te,level1:me,onChange:$e}=v,nt=(0,a.useMemo)(()=>He.iv[K]||(te==null?void 0:te.length),[K,te]),yt=(0,a.useMemo)(()=>te.slice(0,nt),[te,nt]),dt=(0,a.useMemo)(()=>te.slice(nt).map(xn=>({value:xn.value,label:xn.value})),[te]),It=(0,a.useCallback)(()=>dt.find(gn=>gn.value===me)?(0,G.jsx)("span",{className:"active",children:me}):(0,G.jsx)("span",{children:I18N.LeftSidePanel.pLabel.more}),[me,dt]),un=(0,a.useCallback)((xn,gn)=>{$e({...xn,index:gn+6})},[$e]);return(0,G.jsxs)(Jn,{className:"official-list-filter-container",children:[yt.map((xn,gn)=>{let{value:wo}=xn;return(0,G.jsx)("div",{"data-category-guide-id":wo,className:E()("option",{"is-active":me===wo},{[Vt.c.GUIDE_NOVICE_V9_2408_STEP_1]:me==="\u6D41\u7A0B"}),onClick:()=>$e({data:wo,index:gn}),children:(0,G.jsx)("span",{children:wo})},wo)}),dt!=null&&dt.length?(0,G.jsx)(Tt.A,{width:140,selectedValue:me,optionList:dt,onChange:un,renderDisplayName:It}):null]})});var so=i(80783),Et=Object.defineProperty,Jt=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Nn=(v,K,te)=>K in v?Et(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,At=(v,K)=>{for(var te in K||(K={}))Ce.call(K,te)&&Nn(v,te,K[te]);if(dn)for(var te of dn(K))Pt.call(K,te)&&Nn(v,te,K[te]);return v},on=(v,K)=>Jt(v,Ot(K)),no=(v,K)=>{var te={};for(var me in v)Ce.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&dn)for(var me of dn(v))K.indexOf(me)<0&&Pt.call(v,me)&&(te[me]=v[me]);return te},mn=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=no(te,["size","spin","style"]);const dt=At(At({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",on(At({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M13.5 3.5C14.3284 3.5 15 4.17157 15 5V15C15 15.8284 14.3284 16.5 13.5 16.5H6.5C5.67157 16.5 5 15.8284 5 15V5C5 4.17157 5.67157 3.5 6.5 3.5H13.5ZM6.5 4.5C6.22386 4.5 6 4.72386 6 5V15C6 15.2761 6.22386 15.5 6.5 15.5H13.5C13.7761 15.5 14 15.2761 14 15V5C14 4.72386 13.7761 4.5 13.5 4.5H6.5ZM8.01562 13.1006C7.98887 13.1538 7.95089 13.201 7.90527 13.2393C7.85969 13.2774 7.80695 13.3062 7.75 13.3232C7.69286 13.3403 7.63247 13.3449 7.57324 13.3379C7.5141 13.3309 7.45682 13.3121 7.40527 13.2822C7.35387 13.2524 7.3089 13.2127 7.27344 13.165C7.23789 13.1172 7.21191 13.062 7.19824 13.0039C7.18465 12.946 7.18294 12.8857 7.19336 12.8271C7.20381 12.7685 7.22695 12.7128 7.25977 12.6631L7.28418 12.6211C7.33086 12.541 7.39803 12.4738 7.47852 12.4277C7.5588 12.3819 7.64973 12.3581 7.74219 12.3584H8.44238L8.01562 13.1006ZM11.8057 11.0459H13.0625C13.1785 11.0459 13.29 11.0918 13.3721 11.1738C13.4541 11.2559 13.5 11.3674 13.5 11.4834C13.5 11.5994 13.4541 11.711 13.3721 11.793C13.29 11.875 13.1785 11.9209 13.0625 11.9209H12.3135L12.7373 12.6631C12.77 12.7127 12.7923 12.7686 12.8027 12.8271C12.8132 12.8858 12.8115 12.9459 12.7979 13.0039C12.7842 13.062 12.7592 13.1172 12.7236 13.165C12.6881 13.2129 12.6424 13.2524 12.5908 13.2822C12.5392 13.3121 12.4821 13.3319 12.4229 13.3389C12.3639 13.3458 12.304 13.3402 12.2471 13.3232C12.19 13.3062 12.1365 13.2775 12.0908 13.2393C12.0453 13.201 12.0082 13.1537 11.9814 13.1006L10.5527 10.6289C10.4608 10.4694 10.4122 10.2886 10.4121 10.1045C10.4121 9.92018 10.4606 9.73872 10.5527 9.5791L10.7559 9.22949L11.8057 11.0459ZM10.8203 7.00293C10.8795 7.00991 10.9367 7.02875 10.9883 7.05859C11.0399 7.08846 11.0846 7.12889 11.1201 7.17676C11.1556 7.22457 11.1816 7.27895 11.1953 7.33691C11.209 7.39496 11.2107 7.45594 11.2002 7.51465C11.1897 7.57325 11.1666 7.62904 11.1338 7.67871L9.18848 11.0459H9.8877C10.0087 11.0478 10.1272 11.0812 10.2314 11.1426C10.3357 11.2039 10.4229 11.2907 10.4834 11.3955L10.7871 11.9209H6.9375C6.82152 11.9209 6.70997 11.875 6.62793 11.793C6.54593 11.711 6.50006 11.5994 6.5 11.4834C6.5 11.3674 6.54595 11.2559 6.62793 11.1738C6.70998 11.0918 6.82147 11.0459 6.9375 11.0459H8.19434L9.49609 8.79199L8.85547 7.67871C8.82267 7.62907 8.80053 7.5732 8.79004 7.51465C8.77958 7.45594 8.78126 7.39496 8.79492 7.33691C8.8086 7.27905 8.83371 7.22451 8.86914 7.17676C8.90464 7.12895 8.94946 7.08845 9.00098 7.05859C9.05259 7.02872 9.1107 7.0099 9.16992 7.00293C9.22897 6.99605 9.28874 7.00154 9.3457 7.01855C9.40284 7.03563 9.45626 7.06422 9.50195 7.10254C9.54751 7.14081 9.58462 7.18804 9.61133 7.24121L10 7.91699L10.3779 7.24121C10.4047 7.18792 10.4426 7.14086 10.4883 7.10254C10.5339 7.06432 10.5866 7.03562 10.6436 7.01855C10.7007 7.00148 10.7611 6.99596 10.8203 7.00293Z",fill:"black",fillOpacity:"0.85"}))}),ht=Object.defineProperty,Fn=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Zt=(v,K,te)=>K in v?ht(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,jn=(v,K)=>{for(var te in K||(K={}))Bn.call(K,te)&&Zt(v,te,K[te]);if(Gt)for(var te of Gt(K))qt.call(K,te)&&Zt(v,te,K[te]);return v},ro=(v,K)=>Fn(v,Yt(K)),Tn=(v,K)=>{var te={};for(var me in v)Bn.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Gt)for(var me of Gt(v))K.indexOf(me)<0&&qt.call(v,me)&&(te[me]=v[me]);return te},Wt=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Tn(te,["size","spin","style"]);const dt=jn(jn({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",ro(jn({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M5.5 5C5.5 4.44771 5.94772 4 6.5 4H13.5C14.0523 4 14.5 4.44772 14.5 5V15.0004C14.5 15.5527 14.0523 16.0004 13.5 16.0004H6.5C5.94772 16.0004 5.5 15.5527 5.5 15.0004V5Z",stroke:"black",strokeOpacity:"0.85"}),a.createElement("path",{d:"M11.5 10C11.7967 10 12.0867 9.91204 12.3334 9.74722C12.58 9.58237 12.7723 9.3481 12.8858 9.07402C12.9993 8.79994 13.0291 8.49835 12.9712 8.20738C12.9133 7.91638 12.7704 7.64911 12.5606 7.43935C12.3509 7.22956 12.0836 7.0867 11.7926 7.02883C11.5016 6.97093 11.2001 7.00066 10.926 7.11418C10.6519 7.2277 10.4176 7.41997 10.2528 7.66666C10.088 7.91332 10 8.20333 10 8.5V11.5C10 11.7967 9.91204 12.0867 9.74722 12.3334C9.58237 12.58 9.34813 12.7723 9.07402 12.8858C8.79994 12.9993 8.49835 13.0291 8.20738 12.9712C7.91638 12.9133 7.64911 12.7704 7.43935 12.5606C7.22956 12.3509 7.0867 12.0836 7.02883 11.7926C6.97093 11.5016 7.00066 11.2001 7.11418 10.926C7.2277 10.6519 7.41997 10.4176 7.66666 10.2528C7.91332 10.088 8.20333 10 8.5 10",stroke:"black",strokeOpacity:"0.85",strokeLinecap:"round",strokeLinejoin:"round"}))}),wn=Object.defineProperty,uo=Object.defineProperties,In=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Ln=(v,K,te)=>K in v?wn(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Mn=(v,K)=>{for(var te in K||(K={}))So.call(K,te)&&Ln(v,te,K[te]);if(Dn)for(var te of Dn(K))Qt.call(K,te)&&Ln(v,te,K[te]);return v},Rt=(v,K)=>uo(v,In(K)),Qe=(v,K)=>{var te={};for(var me in v)So.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Dn)for(var me of Dn(v))K.indexOf(me)<0&&Qt.call(v,me)&&(te[me]=v[me]);return te},qn=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Qe(te,["size","spin","style"]);const dt=Mn(Mn({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Rt(Mn({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M13.5 3.5C14.3284 3.5 15 4.17157 15 5V15C15 15.8284 14.3284 16.5 13.5 16.5H6.5C5.67157 16.5 5 15.8284 5 15V5C5 4.17157 5.67157 3.5 6.5 3.5H13.5ZM6.5 4.5C6.22386 4.5 6 4.72386 6 5V15C6 15.2761 6.22386 15.5 6.5 15.5H13.5C13.7761 15.5 14 15.2761 14 15V5C14 4.72386 13.7761 4.5 13.5 4.5H6.5ZM12.0996 6.59961C12.7622 6.59961 13.2996 7.13726 13.2998 7.7998V12C13.2998 12.6627 12.7624 13.2002 12.0996 13.2002H7.89941C7.23693 13.1999 6.69922 12.6626 6.69922 12V7.7998C6.69946 7.13745 7.23708 6.59991 7.89941 6.59961H12.0996ZM7.60352 11.8818C7.60248 11.8828 7.60065 11.8829 7.59961 11.8838V12C7.59961 12.1655 7.73399 12.2995 7.89941 12.2998H12.0996C12.2653 12.2998 12.3994 12.1657 12.3994 12V11.2871L11.541 10.6445L11.1338 11.0508L11.4922 11.3584C11.6809 11.5201 11.7028 11.8045 11.541 11.9932C11.3793 12.1814 11.0958 12.2034 10.9072 12.042L9.10938 10.501L7.60352 11.8818ZM7.89941 7.5C7.73413 7.5003 7.59985 7.63451 7.59961 7.7998V10.665L8.59961 9.74805L8.71094 9.66406C8.94484 9.51857 9.24173 9.51304 9.48047 9.65039L9.59473 9.73145L10.4482 10.4639L10.9971 9.91602L11.1035 9.82812C11.3643 9.64898 11.7164 9.65099 11.9775 9.84668L12.3994 10.1631V7.7998C12.3992 7.63432 12.2651 7.5 12.0996 7.5H7.89941Z",fill:"black",fillOpacity:"0.85"}))}),Hn=Object.defineProperty,Yn=Object.defineProperties,oo=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,po=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Qo=(v,K,te)=>K in v?Hn(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,ea=(v,K)=>{for(var te in K||(K={}))po.call(K,te)&&Qo(v,te,K[te]);if(To)for(var te of To(K))Oo.call(K,te)&&Qo(v,te,K[te]);return v},_n=(v,K)=>Yn(v,oo(K)),Un=(v,K)=>{var te={};for(var me in v)po.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&To)for(var me of To(v))K.indexOf(me)<0&&Oo.call(v,me)&&(te[me]=v[me]);return te},nn=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Un(te,["size","spin","style"]);const dt=ea(ea({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",_n(ea({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM3 15H17V7H3V15ZM3.5 5C3.22386 5 3 5.22386 3 5.5C3 5.77614 3.22386 6 3.5 6C3.77614 6 4 5.77614 4 5.5C4 5.22386 3.77614 5 3.5 5ZM5 5C4.72386 5 4.5 5.22386 4.5 5.5C4.5 5.77614 4.72386 6 5 6C5.27614 6 5.5 5.77614 5.5 5.5C5.5 5.22386 5.27614 5 5 5ZM6.5 5C6.22386 5 6 5.22386 6 5.5C6 5.77614 6.22386 6 6.5 6C6.77614 6 7 5.77614 7 5.5C7 5.22386 6.77614 5 6.5 5Z",fill:"black",fillOpacity:"0.85"}))}),Zn=Object.defineProperty,ho=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,Zo=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,xa=(v,K,te)=>K in v?Zn(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,fa=(v,K)=>{for(var te in K||(K={}))Zo.call(K,te)&&xa(v,te,K[te]);if(Mo)for(var te of Mo(K))ia.call(K,te)&&xa(v,te,K[te]);return v},zo=(v,K)=>ho(v,Xn(K)),Ra=(v,K)=>{var te={};for(var me in v)Zo.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Mo)for(var me of Mo(v))K.indexOf(me)<0&&ia.call(v,me)&&(te[me]=v[me]);return te},ln=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Ra(te,["size","spin","style"]);const dt=fa(fa({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",zo(fa({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM6 15H17V5H6V15ZM3.25 9.5C2.97386 9.5 2.75 9.72386 2.75 10C2.75 10.2761 2.97386 10.5 3.25 10.5H4.75C5.02614 10.5 5.25 10.2761 5.25 10C5.25 9.72386 5.02614 9.5 4.75 9.5H3.25ZM3.25 7.5C2.97386 7.5 2.75 7.72386 2.75 8C2.75 8.27614 2.97386 8.5 3.25 8.5H4.75C5.02614 8.5 5.25 8.27614 5.25 8C5.25 7.72386 5.02614 7.5 4.75 7.5H3.25ZM3.25 5.5C2.97386 5.5 2.75 5.72386 2.75 6C2.75 6.27614 2.97386 6.5 3.25 6.5H4.75C5.02614 6.5 5.25 6.27614 5.25 6C5.25 5.72386 5.02614 5.5 4.75 5.5H3.25Z",fill:"black",fillOpacity:"0.85"}))}),ta=Object.defineProperty,ko=Object.defineProperties,bo=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,ni=(v,K,te)=>K in v?ta(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Ir=(v,K)=>{for(var te in K||(K={}))ma.call(K,te)&&ni(v,te,K[te]);if(aa)for(var te of aa(K))dr.call(K,te)&&ni(v,te,K[te]);return v},$a=(v,K)=>ko(v,bo(K)),Va=(v,K)=>{var te={};for(var me in v)ma.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&aa)for(var me of aa(v))K.indexOf(me)<0&&dr.call(v,me)&&(te[me]=v[me]);return te},or=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Va(te,["size","spin","style"]);const dt=Ir(Ir({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",$a(Ir({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM3 15H17V5H3V15ZM11.7002 14C11.8657 14.0001 11.9999 14.1343 12 14.2998C12 14.4654 11.8658 14.5995 11.7002 14.5996H8.2998C8.13421 14.5995 8 14.4654 8 14.2998C8.00011 14.1343 8.13427 14.0001 8.2998 14H11.7002Z",fill:"black",fillOpacity:"0.85"}))}),gi=Object.defineProperty,Qr=Object.defineProperties,Qi=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,Es=(v,K,te)=>K in v?gi(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,ys=(v,K)=>{for(var te in K||(K={}))Li.call(K,te)&&Es(v,te,K[te]);if(rs)for(var te of rs(K))ns.call(K,te)&&Es(v,te,K[te]);return v},sr=(v,K)=>Qr(v,Qi(K)),mi=(v,K)=>{var te={};for(var me in v)Li.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&rs)for(var me of rs(v))K.indexOf(me)<0&&ns.call(v,me)&&(te[me]=v[me]);return te},vn=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=mi(te,["size","spin","style"]);const dt=ys(ys({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",sr(ys({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M16.0049 4.5C16.6218 4.5 17.1219 4.93764 17.1221 5.47754V14.5225L17.1172 14.6221C17.0601 15.1152 16.5834 15.5 16.0049 15.5H3.99512C3.41663 15.5 2.94094 15.1152 2.88379 14.6221L2.87793 14.5225V5.47754C2.87808 4.93765 3.3782 4.50002 3.99512 4.5H16.0049ZM3.99512 5.5C3.93762 5.50001 3.89919 5.51718 3.87793 5.53027V14.4688C3.89909 14.4819 3.93722 14.5 3.99512 14.5H16.0049C16.0625 14.5 16.1008 14.4819 16.1221 14.4688V5.53027C16.1007 5.51721 16.0621 5.5 16.0049 5.5H3.99512Z",fill:"black",fillOpacity:"0.85"}),a.createElement("path",{d:"M9.56764 7.85254C8.06271 7.85254 6.83472 9.06663 6.83472 10.5465C6.83472 12.0264 8.06636 13.2405 9.56764 13.2405C11.0689 13.2405 12.3006 12.0264 12.3006 10.5465C12.3006 10.41 12.2095 10.3202 12.071 10.3202H9.79721V8.07883C9.79721 7.94234 9.70611 7.85254 9.56764 7.85254ZM11.8451 10.7728C11.7066 12.0085 10.5916 12.9065 9.33808 12.77C8.08458 12.6335 7.17724 11.5343 7.31207 10.2987C7.42867 9.24623 8.27042 8.41289 9.34172 8.30154V10.5465C9.34172 10.683 9.43282 10.7728 9.57129 10.7728H11.8451Z",fill:"black",fillOpacity:"0.85"}),a.createElement("path",{d:"M9.56812 7.75293C9.65913 7.75303 9.7429 7.78308 9.80444 7.84375C9.86611 7.90464 9.89722 7.98812 9.89722 8.0791V10.2207H12.071C12.1622 10.2207 12.2467 10.2498 12.3083 10.3105C12.3701 10.3715 12.4001 10.4558 12.4001 10.5469C12.4 12.083 11.1229 13.3406 9.56812 13.3408C8.01307 13.3408 6.7353 12.0832 6.73511 10.5469C6.73511 9.01048 8.00922 7.75293 9.56812 7.75293ZM9.24194 8.41699C8.33284 8.55751 7.61686 9.24317 7.44019 10.124L7.41187 10.3096C7.28325 11.4883 8.14872 12.5402 9.34937 12.6709C10.5099 12.797 11.5424 11.9954 11.7273 10.873H9.57104C9.48006 10.873 9.39629 10.8428 9.33472 10.7822C9.27301 10.7214 9.24202 10.6378 9.24194 10.5469V8.41699Z",stroke:"black",strokeOpacity:"0.85",strokeWidth:"0.2"}),a.createElement("path",{d:"M10.882 6.43896C10.7362 6.43896 10.6403 6.53352 10.6403 6.67725V9.27953C10.6403 9.42326 10.7362 9.51782 10.882 9.51782H13.5219C13.6677 9.51782 13.7636 9.42326 13.7636 9.27953C13.7598 7.71741 12.4667 6.43896 10.882 6.43896ZM11.1237 9.04124V6.91176C12.2748 7.02902 13.1612 7.90653 13.284 9.04124H11.1237Z",fill:"black",fillOpacity:"0.85"}),a.createElement("path",{d:"M10.8824 6.33936C12.5209 6.3396 13.8597 7.66089 13.8639 9.27881V9.27979C13.8638 9.37437 13.8311 9.46098 13.7672 9.52393C13.7035 9.58656 13.6167 9.61763 13.5221 9.61768H10.8824C10.7876 9.61768 10.7001 9.58671 10.6364 9.52393C10.5725 9.46098 10.5407 9.37437 10.5406 9.27979V6.67725C10.5407 6.58256 10.5724 6.4961 10.6364 6.43311C10.7001 6.37024 10.7876 6.33936 10.8824 6.33936ZM11.2233 8.94092H13.1676C13.0115 7.94387 12.2365 7.17666 11.2233 7.02686V8.94092Z",stroke:"black",strokeOpacity:"0.85",strokeWidth:"0.2"}))}),Io=Object.defineProperty,No=Object.defineProperties,_a=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,zr=(v,K,te)=>K in v?Io(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Fr=(v,K)=>{for(var te in K||(K={}))fr.call(K,te)&&zr(v,te,K[te]);if(Ur)for(var te of Ur(K))Ar.call(K,te)&&zr(v,te,K[te]);return v},os=(v,K)=>No(v,_a(K)),Ei=(v,K)=>{var te={};for(var me in v)fr.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Ur)for(var me of Ur(v))K.indexOf(me)<0&&Ar.call(v,me)&&(te[me]=v[me]);return te},as=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Ei(te,["size","spin","style"]);const dt=Fr(Fr({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",os(Fr({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M13.5 15.7222C13.7761 15.7222 14 15.946 14 16.2222C14 16.4983 13.7761 16.7222 13.5 16.7222H6.5C6.22386 16.7222 6 16.4983 6 16.2222C6 15.946 6.22386 15.7222 6.5 15.7222H13.5ZM16.7451 3.27783C17.4382 3.27784 18 3.7379 18 4.30518V13.8062C18 14.3734 17.4382 14.8335 16.7451 14.8335H3.25488C2.56183 14.8335 2 14.3734 2 13.8062V4.30518C2 3.7379 2.56183 3.27784 3.25488 3.27783H16.7451ZM3.5957 4.24268C3.28173 4.2427 3.02478 4.43439 3.00195 4.67725L3 4.7124V13.3979C3 13.6455 3.2435 13.8488 3.55176 13.8667L3.5957 13.8677H16.4043C16.7184 13.8677 16.9753 13.676 16.998 13.4331L17 13.3979V4.7124C17 4.46502 16.7572 4.26274 16.4492 4.24463L16.4043 4.24268H3.5957Z",fill:"black",fillOpacity:"0.85"}))}),al=Object.defineProperty,pd=Object.defineProperties,Cd=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Ni=(v,K,te)=>K in v?al(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Bs=(v,K)=>{for(var te in K||(K={}))ba.call(K,te)&&Ni(v,te,K[te]);if(wc)for(var te of wc(K))$r.call(K,te)&&Ni(v,te,K[te]);return v},Ec=(v,K)=>pd(v,Cd(K)),ps=(v,K)=>{var te={};for(var me in v)ba.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&wc)for(var me of wc(v))K.indexOf(me)<0&&$r.call(v,me)&&(te[me]=v[me]);return te},ls=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=ps(te,["size","spin","style"]);const dt=Bs(Bs({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Ec(Bs({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M9.23145 7.87744C9.48059 7.8899 9.71643 7.99476 9.89258 8.17139C10.0687 8.348 10.1728 8.58436 10.1846 8.8335V9.45947C10.2877 9.42454 10.396 9.40753 10.5049 9.40771C10.6971 9.407 10.8856 9.46096 11.0479 9.56396C11.2101 9.66697 11.3397 9.81456 11.4209 9.98877C11.6626 9.88151 11.9367 9.87454 12.1836 9.96924C12.4305 10.064 12.6303 10.2523 12.7383 10.4937L12.748 10.5171C12.9919 10.4118 13.2676 10.4076 13.5146 10.5054C13.7618 10.6033 13.9608 10.7955 14.0664 11.0396C14.1202 11.1637 14.1477 11.2978 14.1484 11.4331V14.4556C14.1468 15.0279 13.9182 15.576 13.5127 15.98C13.1071 16.384 12.5578 16.6105 11.9854 16.6099H10.4658C10.0922 16.6083 9.72699 16.4999 9.41309 16.2974C9.32939 16.2493 9.25245 16.1902 9.18457 16.1216L6.32227 13.2622C6.11594 13.0557 6 12.7758 6 12.4839C6.00001 12.1919 6.11593 11.9121 6.32227 11.7056C6.52874 11.4991 6.8086 11.3825 7.10059 11.3823C7.39274 11.3823 7.67329 11.499 7.87988 11.7056L8.17969 12.0054V8.8335C8.18593 8.70171 8.21819 8.57199 8.27441 8.45264C8.33066 8.33326 8.41015 8.22594 8.50781 8.13721C8.60544 8.04854 8.71962 7.97961 8.84375 7.93506C8.96789 7.89052 9.09971 7.87108 9.23145 7.87744ZM9.1377 8.54248C9.06314 8.54927 8.9934 8.58235 8.94043 8.63525C8.88738 8.6883 8.8544 8.75878 8.84766 8.8335V12.8413C8.84868 12.9095 8.82933 12.9766 8.79199 13.0337C8.75458 13.0907 8.70062 13.1353 8.6377 13.1616C8.57586 13.1854 8.50826 13.1915 8.44336 13.1782C8.37841 13.1649 8.31808 13.1336 8.27051 13.0874L7.38574 12.2007C7.31053 12.1249 7.20829 12.0815 7.10156 12.0796C6.99171 12.0798 6.88621 12.1239 6.80859 12.2017C6.73112 12.2794 6.6875 12.3849 6.6875 12.4946C6.68727 12.5492 6.69802 12.6033 6.71875 12.6538C6.73951 12.7043 6.77006 12.75 6.80859 12.7886L9.64258 15.6362C9.671 15.6636 9.7032 15.6866 9.73828 15.7046L9.76367 15.7192C9.96682 15.8551 10.2058 15.9279 10.4502 15.9292H11.9697C12.3605 15.9292 12.7353 15.7738 13.0117 15.4976C13.288 15.2212 13.4432 14.8463 13.4434 14.4556V11.4331C13.4499 11.3492 13.4234 11.266 13.3691 11.2017C13.3148 11.1372 13.2372 11.096 13.1533 11.0884C13.0725 11.0824 12.9919 11.1079 12.9287 11.1587C12.8656 11.2095 12.8241 11.2826 12.8125 11.3628V11.8276C12.8126 11.8728 12.8034 11.9177 12.7861 11.9595C12.7689 12.0011 12.7438 12.039 12.7119 12.0708C12.6801 12.1026 12.6422 12.1278 12.6006 12.145C12.5589 12.1622 12.5138 12.1715 12.4688 12.1714C12.3777 12.1714 12.29 12.1351 12.2256 12.0708C12.1612 12.0064 12.125 11.9187 12.125 11.8276V11.4634C12.1219 11.4533 12.1221 11.4432 12.1221 11.4331V10.9038C12.1285 10.8201 12.1019 10.7366 12.0479 10.6724C11.9937 10.608 11.9158 10.5679 11.832 10.5601C11.7511 10.554 11.6707 10.5786 11.6074 10.6294C11.5442 10.6801 11.5029 10.7533 11.4912 10.8335V11.5786C11.4887 11.668 11.4514 11.7531 11.3877 11.8159C11.3239 11.8787 11.2379 11.9144 11.1484 11.9155C11.0576 11.9154 10.9705 11.8792 10.9062 11.8149C10.8418 11.7505 10.8057 11.6629 10.8057 11.5718V10.9399C10.8025 10.9298 10.8018 10.9198 10.8018 10.9097V10.4175C10.8084 10.3336 10.7817 10.2504 10.7275 10.186C10.6734 10.1217 10.5964 10.0806 10.5127 10.0728C10.436 10.0671 10.3596 10.0894 10.2979 10.1353C10.2361 10.1813 10.1924 10.2485 10.1758 10.3237C10.1783 10.3392 10.1802 10.3549 10.1807 10.3706V11.2036C10.1806 11.2945 10.1443 11.3814 10.0801 11.4458C10.0158 11.5102 9.92883 11.5472 9.83789 11.5474C9.74684 11.5474 9.65913 11.5111 9.59473 11.4468C9.53033 11.3824 9.49416 11.2947 9.49414 11.2036V10.4985C9.48653 10.4703 9.48288 10.4408 9.48242 10.4116V8.8335C9.47476 8.74958 9.43355 8.67201 9.36914 8.61768C9.30474 8.56339 9.22166 8.5359 9.1377 8.54248ZM17 3.39014C17.5523 3.39014 18 3.83785 18 4.39014V14.3901C18 14.9424 17.5523 15.3901 17 15.3901H15.5C15.2239 15.3901 15 15.1663 15 14.8901C15 14.614 15.2239 14.3901 15.5 14.3901H17V4.89014H3V14.3901H6C6.27614 14.3901 6.5 14.614 6.5 14.8901C6.5 15.1663 6.27614 15.3901 6 15.3901H3C2.44772 15.3901 2 14.9424 2 14.3901V4.39014C2 3.83785 2.44772 3.39014 3 3.39014H17ZM9.05566 6.39111C9.63986 6.37246 10.2074 6.58702 10.6338 6.98682C11.0601 7.38654 11.3101 7.9389 11.3291 8.52295V8.66553C11.3291 8.7106 11.321 8.75573 11.3037 8.79736C11.2864 8.83892 11.2604 8.8769 11.2285 8.90869C11.1967 8.94036 11.1587 8.96579 11.1172 8.98291C11.0757 8.99998 11.0312 9.00834 10.9863 9.0083C10.8954 9.0083 10.8075 8.97201 10.7432 8.90771C10.6791 8.84345 10.6436 8.75628 10.6436 8.66553C10.6513 8.46628 10.6189 8.2676 10.5498 8.08057C10.4807 7.89356 10.3757 7.72196 10.2402 7.57568C10.1048 7.42948 9.94183 7.31124 9.76074 7.22803C9.5795 7.14481 9.38289 7.09776 9.18359 7.09033C8.78189 7.07519 8.39062 7.22048 8.0957 7.49365C7.80084 7.76683 7.62594 8.14571 7.61035 8.54736V8.66553C7.61035 8.7106 7.60223 8.75573 7.58496 8.79736C7.56769 8.83892 7.54162 8.8769 7.50977 8.90869C7.47794 8.94036 7.43995 8.96579 7.39844 8.98291C7.35696 8.99998 7.31243 9.00834 7.26758 9.0083C7.22252 9.00839 7.1774 9.00009 7.13574 8.98291C7.09417 8.96576 7.05627 8.94043 7.02441 8.90869C6.99262 8.87696 6.96746 8.83882 6.9502 8.79736C6.93293 8.75573 6.92383 8.7106 6.92383 8.66553C6.90503 8.08141 7.11897 7.51385 7.51855 7.0874C7.91835 6.66092 8.4714 6.41005 9.05566 6.39111Z",fill:"black",fillOpacity:"0.85"}))}),wl=Object.defineProperty,Sc=Object.defineProperties,lc=Object.getOwnPropertyDescriptors,Ic=Object.getOwnPropertySymbols,Gc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,Zc=(v,K,te)=>K in v?wl(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,gc=(v,K)=>{for(var te in K||(K={}))Gc.call(K,te)&&Zc(v,te,K[te]);if(Ic)for(var te of Ic(K))mc.call(K,te)&&Zc(v,te,K[te]);return v},Fo=(v,K)=>Sc(v,lc(K)),Ca=(v,K)=>{var te={};for(var me in v)Gc.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Ic)for(var me of Ic(v))K.indexOf(me)<0&&mc.call(v,me)&&(te[me]=v[me]);return te},Ba=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Ca(te,["size","spin","style"]);const dt=gc(gc({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Fo(gc({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6018 4.29835L17.5988 3.79835H2.40156C2.18338 3.79805 1.96716 3.84286 1.76679 3.92921C1.56635 4.01559 1.38532 4.14151 1.23554 4.3003C1.08586 4.45903 0.970421 4.64707 0.895699 4.85206C0.821146 5.05676 0.788773 5.27517 0.800972 5.49268V5.49366L1.27656 14.686V14.6909C1.30185 15.0984 1.48096 15.4817 1.77753 15.7622C2.07409 16.0427 2.46604 16.2002 2.87421 16.2017H17.1262C17.535 16.2012 17.9282 16.0435 18.2248 15.7622C18.5214 15.4809 18.6996 15.097 18.7228 14.689V14.686L19.1984 5.49366C19.2116 5.27645 19.1804 5.05877 19.1066 4.85401C19.0325 4.64823 18.9166 4.45962 18.7668 4.3003C18.6171 4.14114 18.4363 4.01458 18.2355 3.92823C18.0354 3.84218 17.8196 3.79767 17.6018 3.79835V4.29835ZM2.1623 4.84718C2.23733 4.81484 2.31902 4.79823 2.40058 4.79835H17.6037C17.6848 4.79796 17.7654 4.81418 17.84 4.8462C17.9148 4.87834 17.9823 4.92632 18.0383 4.98585C18.0942 5.04537 18.1374 5.1157 18.1652 5.19288C18.193 5.27008 18.2055 5.35209 18.2004 5.43409L17.7248 14.6333C17.7157 14.787 17.6483 14.9312 17.5373 15.0366C17.426 15.1422 17.2777 15.2014 17.1252 15.2017H2.87714C2.72399 15.2009 2.57595 15.1415 2.46406 15.0357C2.35261 14.9301 2.28472 14.7854 2.27461 14.6314L1.8 5.43995L1.79902 5.43702C1.79433 5.35467 1.80698 5.27225 1.83515 5.19483C1.86334 5.11743 1.90681 5.04653 1.96308 4.98682C2.01938 4.92712 2.08725 4.87953 2.1623 4.84718ZM11.5137 6.56051C11.029 6.32915 10.4863 6.20016 9.91508 6.20016C7.86345 6.2002 6.20028 7.86337 6.20023 9.915C6.20023 11.9667 7.86342 13.6298 9.91508 13.6298C10.9607 13.6298 11.9066 13.1976 12.5811 12.5029C12.7473 12.3317 12.8973 12.1441 13.0284 11.9433C13.1791 11.7121 13.114 11.4018 12.8829 11.2509C12.6517 11.1 12.3415 11.1654 12.1905 11.3964C12.0947 11.5432 11.985 11.6803 11.8633 11.8056C11.3693 12.3145 10.6794 12.6298 9.91508 12.6298C8.4157 12.6298 7.20023 11.4144 7.20023 9.915C7.20028 8.41565 8.41573 7.2002 9.91508 7.20016C10.3341 7.20016 10.7299 7.29433 11.083 7.46285C11.3756 7.60251 11.6396 7.79391 11.8633 8.02437C12.0556 8.22235 12.3722 8.22721 12.5704 8.03512C12.7684 7.84288 12.7731 7.52624 12.5811 7.32809C12.2757 7.01352 11.9146 6.75185 11.5137 6.56051ZM9.89945 8.24312C9.31734 7.96329 8.6114 8.3831 8.61137 9.05855V10.7714C8.61137 11.4917 9.41438 11.9219 10.0137 11.5224L11.2979 10.665C11.8334 10.308 11.8334 9.52198 11.2979 9.165L10.0137 8.30855L9.89945 8.24312ZM10.6202 9.915L9.61137 10.5879V9.24215L10.6202 9.915Z",fill:"black",fillOpacity:"0.85"}))}),Xa=Object.defineProperty,Kt=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Vo=(v,K,te)=>K in v?Xa(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Do=(v,K)=>{for(var te in K||(K={}))Wn.call(K,te)&&Vo(v,te,K[te]);if(io)for(var te of io(K))$n.call(K,te)&&Vo(v,te,K[te]);return v},Bo=(v,K)=>Kt(v,Vn(K)),Ro=(v,K)=>{var te={};for(var me in v)Wn.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&io)for(var me of io(v))K.indexOf(me)<0&&$n.call(v,me)&&(te[me]=v[me]);return te},la=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Ro(te,["size","spin","style"]);const dt=Do(Do({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Bo(Do({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M7.47119 14.6499C8.1267 15.0031 8.87655 15.2036 9.67334 15.2036C10.4701 15.2036 11.22 15.003 11.8755 14.6499H11.9233V16.0005C11.9231 16.663 11.3857 17.1997 10.7231 17.1997H8.62354C7.96093 17.1997 7.42358 16.663 7.42334 16.0005V14.6499H7.47119ZM9.9126 5.40283C11.9428 5.5059 13.6284 6.91139 14.1528 8.80029H14.7192C14.8617 8.80068 14.9771 8.91649 14.9771 9.05908V10.9341C14.9768 11.0765 14.8616 11.1915 14.7192 11.1919H14.1812C13.671 13.206 11.8461 14.6966 9.67334 14.6968L9.43408 14.6909C7.05655 14.5705 5.14969 12.664 5.02881 10.2866L5.02295 10.0474C5.02295 7.4793 7.10531 5.39708 9.67334 5.39697L9.9126 5.40283ZM9.67334 6.39697C7.65759 6.39708 6.02295 8.03159 6.02295 10.0474C6.02337 12.0628 7.65785 13.6967 9.67334 13.6968C11.6887 13.6966 13.3223 12.0627 13.3228 10.0474C13.3228 8.03165 11.689 6.39718 9.67334 6.39697ZM10.7231 2.80029C11.3859 2.80029 11.9233 3.33774 11.9233 4.00049V5.3501H11.8755C11.22 4.99703 10.47 4.79639 9.67334 4.79639C8.87663 4.7964 8.12666 4.997 7.47119 5.3501H7.42334V4.00049C7.42334 3.33774 7.96078 2.80029 8.62354 2.80029H10.7231Z",fill:"black",fillOpacity:"0.85"}))}),Go=Object.defineProperty,ir=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,lr=(v,K,te)=>K in v?Go(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,ei=(v,K)=>{for(var te in K||(K={}))Pr.call(K,te)&&lr(v,te,K[te]);if(wr)for(var te of wr(K))br.call(K,te)&&lr(v,te,K[te]);return v},vr=(v,K)=>ir(v,tr(K)),ar=(v,K)=>{var te={};for(var me in v)Pr.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&wr)for(var me of wr(v))K.indexOf(me)<0&&br.call(v,me)&&(te[me]=v[me]);return te},mr=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=ar(te,["size","spin","style"]);const dt=ei(ei({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",vr(ei({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8 10.5C8.82843 10.5 9.5 11.1716 9.5 12V15C9.5 15.8284 8.82843 16.5 8 16.5H5C4.17157 16.5 3.5 15.8284 3.5 15V12C3.5 11.1716 4.17157 10.5 5 10.5H8ZM15 10.5C15.8284 10.5 16.5 11.1716 16.5 12V15C16.5 15.8284 15.8284 16.5 15 16.5H12C11.1716 16.5 10.5 15.8284 10.5 15V12C10.5 11.1716 11.1716 10.5 12 10.5H15ZM5 11.5C4.72386 11.5 4.5 11.7239 4.5 12V15C4.5 15.2761 4.72386 15.5 5 15.5H8C8.27614 15.5 8.5 15.2761 8.5 15V12C8.5 11.7239 8.27614 11.5 8 11.5H5ZM12 11.5C11.7239 11.5 11.5 11.7239 11.5 12V15C11.5 15.2761 11.7239 15.5 12 15.5H15C15.2761 15.5 15.5 15.2761 15.5 15V12C15.5 11.7239 15.2761 11.5 15 11.5H12ZM8 3.5C8.82843 3.5 9.5 4.17157 9.5 5V8C9.5 8.82843 8.82843 9.5 8 9.5H5C4.17157 9.5 3.5 8.82843 3.5 8V5C3.5 4.17157 4.17157 3.5 5 3.5H8ZM13.5 3.5C15.1569 3.5 16.5 4.84315 16.5 6.5C16.5 8.15685 15.1569 9.5 13.5 9.5C11.8431 9.5 10.5 8.15685 10.5 6.5C10.5 4.84315 11.8431 3.5 13.5 3.5ZM5 4.5C4.72386 4.5 4.5 4.72386 4.5 5V8C4.5 8.27614 4.72386 8.5 5 8.5H8C8.27614 8.5 8.5 8.27614 8.5 8V5C8.5 4.72386 8.27614 4.5 8 4.5H5ZM13.5 4.5C12.3954 4.5 11.5 5.39543 11.5 6.5C11.5 7.60457 12.3954 8.5 13.5 8.5C14.6046 8.5 15.5 7.60457 15.5 6.5C15.5 5.39543 14.6046 4.5 13.5 4.5Z",fill:"black",fillOpacity:"0.85"}))}),Yr=Object.defineProperty,yi=Object.defineProperties,Ri=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,Nr=(v,K,te)=>K in v?Yr(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,si=(v,K)=>{for(var te in K||(K={}))ri.call(K,te)&&Nr(v,te,K[te]);if(vs)for(var te of vs(K))us.call(K,te)&&Nr(v,te,K[te]);return v},Is=(v,K)=>yi(v,Ri(K)),St=(v,K)=>{var te={};for(var me in v)ri.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&vs)for(var me of vs(v))K.indexOf(me)<0&&us.call(v,me)&&(te[me]=v[me]);return te},qe=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=St(te,["size","spin","style"]);const dt=si(si({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Is(si({ref:K,style:dt},yt),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M11.0256 16.5H6.02563V15.5H11.0256V16.5ZM14.6467 13.1465C14.842 12.9513 15.1585 12.9513 15.3538 13.1465L17.8293 15.6211L17.8928 15.6992C18.021 15.8932 17.9999 16.1572 17.8293 16.3281C17.6584 16.499 17.3936 16.5209 17.1995 16.3926L17.1213 16.3281L15.0002 14.207L12.8792 16.3281C12.6839 16.5234 12.3674 16.5234 12.1721 16.3281C11.977 16.1329 11.9769 15.8163 12.1721 15.6211L14.6467 13.1465ZM11.0256 12.5H6.02563V11.5H11.0256V12.5ZM12.1721 7.67188C12.3674 7.47666 12.6839 7.47663 12.8792 7.67188L15.0002 9.79297L17.1213 7.67188L17.1995 7.60742C17.3936 7.47912 17.6574 7.50096 17.8284 7.67188C17.9993 7.8428 18.0211 8.1067 17.8928 8.30078L17.8284 8.37891L15.3538 10.8535C15.26 10.9473 15.1328 11 15.0002 11C14.8677 11 14.7405 10.9473 14.6467 10.8535L12.1721 8.37891C11.9769 8.18365 11.9769 7.86714 12.1721 7.67188ZM11.0247 8.5H6.02466V7.5H11.0247V8.5Z",fill:"#8B8C8F"}))}),Le=i(82959),at=i(15515),ft=i(18356);const kt=v=>v?h()(v.created_at).isBefore(h()("2025-10-01")):!1,en={[Le.Iw.MP_App]:(0,G.jsx)(mn,{size:20}),[Le.Iw.MP_Applet]:(0,G.jsx)(Wt,{className:"mp-applet",size:20}),[Le.Iw.MP_H5]:(0,G.jsx)(qn,{size:20}),[Le.Iw.PC_WebBack]:(0,G.jsx)(nn,{size:20}),[Le.Iw.PC_Website]:(0,G.jsx)(ln,{size:20}),[Le.Iw.Pad]:(0,G.jsx)(or,{size:20}),[Le.Iw.DS_Screen]:(0,G.jsx)(vn,{size:20}),[Le.Iw.SmartTV]:(0,G.jsx)(as,{size:20}),[Le.Iw.HMI_IndusHmi]:(0,G.jsx)(ls,{size:20}),[Le.Iw.HMI_Car]:(0,G.jsx)(Ba,{size:20}),[Le.Iw.Watch]:(0,G.jsx)(la,{size:20}),[Le.Iw.Common]:(0,G.jsx)(mr,{size:20})},kn=v=>{var K;const{isWatchCommonPlatformType:te,officialFilterList:me,scrollToItem:$e,scrollToByOffset:nt}=v,[yt,dt]=(0,a.useState)((0,at.Yt)(Le.I8,Le.JS.menu,at.qW.String)),It=(0,k.d4)(C.f3),un=(0,k.d4)(C.tt),xn=(0,k.d4)(C.mR),gn=(0,k.d4)(J.HW),wo=(0,k.d4)(C.S2),vo=(0,k.wA)(),{sceName:Co}=(0,ft.yj)(),Eo=(0,k.d4)(J.PL),go=(0,a.useMemo)(()=>{const Fa=[];for(const[xr,Tr]of Object.entries(Le.Iw))Fa.push({label:I18N.LeftSidePanel.category[Tr],value:Tr,icon:en[Tr]});return Fa},[]),xo=(0,a.useMemo)(()=>kt(gn),[gn]),jo=(0,a.useCallback)(Fa=>{(0,at.a0)(Le.I8,Fa,at.qW.String),dt(Fa)},[]);(0,a.useEffect)(()=>{!xo&&yt===Le.JS.tile&&jo(Le.JS.menu)},[xo,jo,yt]);const pa=(0,a.useCallback)(Fa=>{vo({type:"widget-panel:update:platFormType",payload:{platformType:Fa,projectCid:Eo==null?void 0:Eo.cid}}),nt(0)},[vo,Eo]),na=(0,a.useCallback)((Fa,xr)=>{$e(Fa.index,(xr==null?void 0:xr.index)||0);const Tr=wo.filter(fi=>fi!==(xr==null?void 0:xr.data));vo({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:Tr}}),(0,at.a0)(Co+"-collapsed-categories",Tr,at.qW.Array)},[Co,$e,wo,vo]),Ma=(0,a.useCallback)((Fa,xr)=>{if(te){const Tr=(0,Le.HA)()[It]||[],fi=Tr==null?void 0:Tr.length;(Fa==null?void 0:Fa.index)<fi?na({data:Le.ni,index:0},Fa):na({...Fa,index:Fa.index-fi+1});return}na(Fa,xr)},[na,It]),Ka=(0,a.useCallback)(()=>{const Fa=en[It];return Fa||null},[It]);return(0,G.jsxs)(rn,{className:E()("official-filter",yt),children:[(0,G.jsxs)("div",{className:"top",children:[(0,G.jsxs)("div",{className:"left",children:[yt===Le.JS.menu&&(0,G.jsx)(Ht,{level1:un,level2:xn,optionList:me,onChange:Ma,onChangeMode:xo?()=>jo(Le.JS.tile):void 0}),yt===Le.JS.tile&&(0,G.jsxs)("div",{className:"tile-box",onClick:()=>jo(Le.JS.menu),children:[(0,G.jsx)("span",{children:I18N.BasicWidgetsNav.fold}),(0,G.jsx)(qe,{size:24})]})]}),(0,G.jsxs)("div",{className:"right",children:[(0,G.jsx)(Tt.A,{menuClassName:"official-platform-type-menu",width:140,selectedValue:It,optionList:go,tooltips:((K=I18N.LeftSidePanel)==null?void 0:K.category[It])||It,shouldOpenOnHover:!1,onChange:pa,renderDisplayName:Ka}),(0,G.jsx)(so.R,{})]})]}),(0,G.jsx)("div",{className:"bottom",children:yt===Le.JS.tile&&(0,G.jsx)(o,{platformType:It,level1:un,optionList:me,onChange:Ma})})]})},yn=(0,a.memo)(kn);var yo=i(77698),Uo=i(11582),Xo=i(68434),Ia=i(19396),ja=i.n(Ia),ka=i(67061),ga=Object.defineProperty,er=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,Xr=(v,K,te)=>K in v?ga(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,li=(v,K)=>{for(var te in K||(K={}))Dr.call(K,te)&&Xr(v,te,K[te]);if(Cr)for(var te of Cr(K))ti.call(K,te)&&Xr(v,te,K[te]);return v},ur=(v,K)=>er(v,Za(K)),oi=(v,K)=>{var te={};for(var me in v)Dr.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Cr)for(var me of Cr(v))K.indexOf(me)<0&&ti.call(v,me)&&(te[me]=v[me]);return te},Di=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=oi(te,["size","spin","style"]);const dt=li(li({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",ur(li({ref:K,style:dt},yt),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8 9.27368L10.8286 6.44507C11.089 6.18481 11.511 6.18481 11.7714 6.44507C12.0316 6.70532 12.0316 7.12768 11.7714 7.38794L8.70715 10.4519C8.31653 10.8425 7.68335 10.8425 7.29285 10.4519L4.22864 7.38794C3.96838 7.12768 3.96838 6.70532 4.22864 6.44507C4.48901 6.18481 4.91101 6.18481 5.17126 6.44507L8 9.27368Z",fill:"#555557"}))});const Gr=(v,K)=>v.reduce((te,me,$e)=>($e%K===0&&te.push([]),te[te.length-1].push(me),te),[]),Zi=(0,a.memo)(v=>{let{className:K,list:te,size:me=6,renderItem:$e,onGetNextScrollLeft:nt}=v;const yt=(0,a.useRef)(null),[dt,It]=(0,a.useState)(null),[un,xn]=(0,a.useState)(),gn=(0,a.useMemo)(()=>Gr(te,me),[te,me]);(0,a.useEffect)(()=>{var Co;It(yt.current),xn((Co=yt.current)==null?void 0:Co.getBoundingClientRect())},[]);const wo=Co=>{if(nt)return nt(dt,Co);if(!dt)return 0;const Eo=dt.scrollLeft,go=Co==="right"?2:-2;return Math.floor(Math.ceil(Eo)/117+go)*117},vo=ja()(Co=>{if(!dt)return null;xn(dt.getBoundingClientRect())},100,{trailing:!1});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("ul",{onScroll:vo,ref:yt,className:K,children:gn.map((Co,Eo)=>(0,G.jsx)("li",{children:Co.map((go,xo)=>$e({item:go,index:Eo+"-"+xo},un))},Eo))}),dt&&gn.length>=2&&(0,G.jsx)(ka.j,{scrollContainerEl:dt,getNextScrollLeft:wo,leftIcon:(0,G.jsx)(Di,{size:16}),rightIcon:(0,G.jsx)(Di,{size:16})})]})});var El=i(79743),yc=i(47695),Ts=i(53940),Pn=i(32879);const an=(v,K)=>{const te=(0,k.d4)(C.S2);(0,a.useEffect)(()=>{const $e=(0,at.Yt)(v+"-collapsed-categories",[],at.qW.Array);K({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:$e}})},[]),(0,a.useEffect)(()=>{Array.isArray(te)&&(0,at.a0)(v+"-collapsed-categories",te,at.qW.Array)},[v,te]);const me=(0,a.useCallback)($e=>{K({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:$e}})},[K]);return[te,me]},_o=v=>{const{categoryToWidgetInsertableMap:K,onSetItemRef:te,onChangeCurWidgetInsertable:me}=v,$e=(0,k.d4)(q.MZ),nt=(0,k.d4)(J.L8),yt=(0,k.wA)(),{sceName:dt}=(0,ft.yj)(),[It,un]=an(dt,yt),{basic:xn,flow:gn}=(0,Le.YN)(),wo=(0,a.useCallback)(go=>{It.includes(go)?un(It.filter(xo=>xo!==go)):un(It.concat([go]))},[It,un]),vo=(0,yc.XM)();(0,a.useEffect)(()=>{var go,xo;$e==="recommend"&&!vo&&!((go=MB.commonGuideHelper)!=null&&go.checkGuideHasShown(Vt.c.GUIDE_NOVICE_V9_2408))&&!((xo=MB.commonGuideHelper)!=null&&xo.checkGuideHasShown(Vt.c.GUIDE_NOVICE_V9_2408_STEP_1))&&un(It.filter(jo=>jo!==xn&&jo!==gn))},[]);const Co=(0,a.useCallback)(go=>{let{item:xo}=go;return(0,G.jsx)(Xo.A,{widgetInsertableData:xo,className:E()({active:nt===xo.data})},xo.key)},[nt]),Eo=(go,xo)=>{if(!go||!(xo!=null&&xo.length))return 0;const jo=go.scrollLeft,pa=xo==="right"?3:-3;return Math.floor(Math.ceil(jo)/78+pa)*78};return(0,G.jsxs)(Pn.cF,{ref:te(0),children:[(0,G.jsx)("span",{className:"title hide","data-key":Le.ni,children:Le.ni}),Array.from(K.entries()).map(go=>{let[xo,jo]=go;return xo===gn?(0,G.jsx)(El.A,{className:"flow-collapse-panel second-collapse-panel "+Vt.c.GUIDE_NOVICE_V9_2408_STEP_1,dataCid:xo,title:xo,canCollapse:!1,onClickResources:()=>me({title:xo,list:jo}),children:(0,G.jsx)("div",{className:"widget-insertable-list",style:{width:Ts.qv},children:(0,G.jsx)(Zi,{list:jo,className:"widget-flow-list",size:18,renderItem:Co,onGetNextScrollLeft:Eo})})},xo):(0,G.jsx)(Uo.A,{className:"second-collapse-panel",id:xo,"data-category":xo,title:xo,width:Ts.qv,expanded:!It.includes(xo),onToggle:wo,children:(0,G.jsx)("div",{className:"widget-insertable-list",style:{width:Ts.qv},children:jo.map(na=>(0,G.jsx)(Xo.A,{widgetInsertableData:na,className:E()({active:nt===na.data})},na.key))})},xo)})]})};var Da=i(31174),pr=Object.defineProperty,Lr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,rl=(v,K,te)=>K in v?pr(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,zl=(v,K)=>{for(var te in K||(K={}))cs.call(K,te)&&rl(v,te,K[te]);if(Bi)for(var te of Bi(K))Us.call(K,te)&&rl(v,te,K[te]);return v},ds=(v,K)=>Lr(v,Sr(K)),Ys=(v,K)=>{var te={};for(var me in v)cs.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Bi)for(var me of Bi(v))K.indexOf(me)<0&&Us.call(v,me)&&(te[me]=v[me]);return te},Pd=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Ys(te,["size","spin","style"]);const dt=zl(zl({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",ds(zl({ref:K,style:dt},yt),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{filter:"url(#filter0_i_915_70)"},a.createElement("path",{d:"M11 14.2C11 13.0799 11 12.5198 11.218 12.092C11.4097 11.7157 11.7157 11.4097 12.092 11.218C12.5198 11 13.0799 11 14.2 11H15.9C17.0201 11 17.5802 11 18.008 11.218C18.3843 11.4097 18.6903 11.7157 18.882 12.092C19.1 12.5198 19.1 13.0799 19.1 14.2V19.1H14.2C13.0799 19.1 12.5198 19.1 12.092 18.882C11.7157 18.6903 11.4097 18.3843 11.218 18.008C11 17.5802 11 17.0201 11 15.9V14.2Z",fill:"#A069FF"})),a.createElement("g",{filter:"url(#filter1_i_915_70)"},a.createElement("path",{d:"M29 14.2C29 13.0799 29 12.5198 28.782 12.092C28.5903 11.7157 28.2843 11.4097 27.908 11.218C27.4802 11 26.9201 11 25.8 11H24.1C22.9799 11 22.4198 11 21.992 11.218C21.6157 11.4097 21.3097 11.7157 21.118 12.092C20.9 12.5198 20.9 13.0799 20.9 14.2V19.1H25.8C26.9201 19.1 27.4802 19.1 27.908 18.882C28.2843 18.6903 28.5903 18.3843 28.782 18.008C29 17.5802 29 17.0201 29 15.9V14.2Z",fill:"#A069FF"})),a.createElement("g",{filter:"url(#filter2_i_915_70)"},a.createElement("path",{d:"M11 25.8C11 26.9201 11 27.4802 11.218 27.908C11.4097 28.2843 11.7157 28.5903 12.092 28.782C12.5198 29 13.0799 29 14.2 29H15.9C17.0201 29 17.5802 29 18.008 28.782C18.3843 28.5903 18.6903 28.2843 18.882 27.908C19.1 27.4802 19.1 26.9201 19.1 25.8V20.9H14.2C13.0799 20.9 12.5198 20.9 12.092 21.118C11.7157 21.3097 11.4097 21.6157 11.218 21.992C11 22.4198 11 22.9799 11 24.1V25.8Z",fill:"#A069FF"})),a.createElement("g",{filter:"url(#filter3_i_915_70)"},a.createElement("path",{d:"M29 27.2C29 28.1941 28.1941 29 27.2 29H22.7C21.7059 29 20.9 28.1941 20.9 27.2V20.9H27.2C28.1941 20.9 29 21.7059 29 22.7V27.2Z",fill:"#D5BCFF"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_i_915_70",x:"11",y:"11",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.5",dy:"0.5"}),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),a.createElement("filter",{id:"filter1_i_915_70",x:"20.8999",y:"11",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.5",dy:"0.5"}),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),a.createElement("filter",{id:"filter2_i_915_70",x:"11",y:"20.8999",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.5",dy:"0.5"}),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),a.createElement("filter",{id:"filter3_i_915_70",x:"20.3999",y:"20.3999",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-0.5",dy:"-0.5"}),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.775373 0 0 0 0 0.65 0 0 0 0 1 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"}))))}),Kc=Object.defineProperty,ui=Object.defineProperties,Ls=Object.getOwnPropertyDescriptors,zs=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,ul=Object.prototype.propertyIsEnumerable,Oc=(v,K,te)=>K in v?Kc(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,_c=(v,K)=>{for(var te in K||(K={}))Il.call(K,te)&&Oc(v,te,K[te]);if(zs)for(var te of zs(K))ul.call(K,te)&&Oc(v,te,K[te]);return v},Wd=(v,K)=>ui(v,Ls(K)),Jd=(v,K)=>{var te={};for(var me in v)Il.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&zs)for(var me of zs(v))K.indexOf(me)<0&&ul.call(v,me)&&(te[me]=v[me]);return te},ep=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Jd(te,["size","spin","style"]);const dt=_c(_c({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Wd(_c({ref:K,style:dt},yt),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12.0789 12.2222C11.1069 12.2222 10.3188 13.0102 10.3188 13.9823V28.2398C10.3188 29.2118 11.1069 29.9999 12.0789 29.9999H27.8179C28.79 29.9999 29.578 29.2118 29.578 28.2398V13.9823C29.578 13.0102 28.79 12.2222 27.8179 12.2222H12.0789Z",fill:"url(#paint0_linear_915_77)"}),a.createElement("g",{filter:"url(#filter0_ddd_915_77)"},a.createElement("rect",{width:"7.17121",height:"7.17125",rx:"1.40741",transform:"matrix(0.877882 0.478877 -0.478875 0.877883 23.3855 10)",fill:"#99C8FF"})),a.createElement("g",{filter:"url(#filter1_ddd_915_77)"},a.createElement("path",{d:"M14.5886 11.5075L11.3831 16.6364C10.9205 17.3764 11.4526 18.3363 12.3253 18.3363H18.7363C19.609 18.3363 20.141 17.3764 19.6785 16.6364L16.473 11.5075C16.0378 10.8113 15.0237 10.8113 14.5886 11.5075Z",fill:"#CCE3FF"})),a.createElement("g",{filter:"url(#filter2_ddd_915_77)"},a.createElement("circle",{cx:"19.9508",cy:"18.8888",r:"4.44443",fill:"white"})),a.createElement("foreignObject",{x:"8.11872",y:"15.9483",width:"23.6595",height:"16.2518"},a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.1px)",clipPath:"url(#bgblur_0_915_77_clip_path)",height:"100%",width:"100%"}})),a.createElement("path",{dataFigmaBgBlurRadius:"2.20013",d:"M12.0789 18.1486C11.1069 18.1484 10.3188 18.9365 10.3188 19.9085V28.2401C10.3188 29.2122 11.1069 30.0002 12.0789 30.0002H27.8179C28.79 30.0002 29.578 29.2122 29.578 28.2401V19.9106C29.578 18.9379 28.7891 18.1497 27.8164 18.1502C22.5706 18.1532 17.3248 18.1494 12.0789 18.1486Z",fill:"url(#paint1_linear_915_77)"}),a.createElement("rect",{x:"16.988",y:"22.5928",width:"5.9259",height:"2.96295",rx:"0.740738",fill:"#E1ECFA"}),a.createElement("defs",null,a.createElement("filter",{id:"filter0_ddd_915_77",x:"14.8235",y:"6.27973",width:"19.9853",height:"19.9853",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.703703"}),a.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1.40741"}),a.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),a.createElement("filter",{id:"filter1_ddd_915_77",x:"5.58278",y:"6.76313",width:"19.896",height:"18.6103",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.703703"}),a.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1.40741"}),a.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),a.createElement("filter",{id:"filter2_ddd_915_77",x:"9.87672",y:"10.2221",width:"20.1482",height:"20.1479",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.703703"}),a.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1.40741"}),a.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),a.createElement("clipPath",{id:"bgblur_0_915_77_clip_path",transform:"translate(-8.11872 -15.9483)"},a.createElement("path",{d:"M12.0789 18.1486C11.1069 18.1484 10.3188 18.9365 10.3188 19.9085V28.2401C10.3188 29.2122 11.1069 30.0002 12.0789 30.0002H27.8179C28.79 30.0002 29.578 29.2122 29.578 28.2401V19.9106C29.578 18.9379 28.7891 18.1497 27.8164 18.1502C22.5706 18.1532 17.3248 18.1494 12.0789 18.1486Z"})),a.createElement("linearGradient",{id:"paint0_linear_915_77",x1:"19.467",y1:"12.2222",x2:"19.467",y2:"29.506",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.175273",stopColor:"#479CFF"}),a.createElement("stop",{offset:"1",stopColor:"#215BCC"})),a.createElement("linearGradient",{id:"paint1_linear_915_77",x1:"19.9484",y1:"18.1484",x2:"19.9484",y2:"31.6934",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.015922",stopColor:"#76D6FF",stopOpacity:"0.75"}),a.createElement("stop",{offset:"0.615584",stopColor:"#57B7F8"}),a.createElement("stop",{offset:"0.834691",stopColor:"#44A3F4"}),a.createElement("stop",{offset:"1",stopColor:"#3191F0"}))))}),o1=Object.defineProperty,N0=Object.defineProperties,Rp=Object.getOwnPropertyDescriptors,a1=Object.getOwnPropertySymbols,p0=Object.prototype.hasOwnProperty,p2=Object.prototype.propertyIsEnumerable,r1=(v,K,te)=>K in v?o1(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,N1=(v,K)=>{for(var te in K||(K={}))p0.call(K,te)&&r1(v,te,K[te]);if(a1)for(var te of a1(K))p2.call(K,te)&&r1(v,te,K[te]);return v},i1=(v,K)=>N0(v,Rp(K)),s1=(v,K)=>{var te={};for(var me in v)p0.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&a1)for(var me of a1(v))K.indexOf(me)<0&&p2.call(v,me)&&(te[me]=v[me]);return te},Bp=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=s1(te,["size","spin","style"]);const dt=N1(N1({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",i1(N1({ref:K,style:dt},yt),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("circle",{cx:"19.9994",cy:"20.0004",r:"9.99986",fill:"url(#paint0_linear_915_86)"}),a.createElement("g",{filter:"url(#filter0_iii_915_86)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint1_linear_915_86)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint2_radial_915_86)",fillOpacity:"0.5"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint3_radial_915_86)",fillOpacity:"0.5"})),a.createElement("g",{filter:"url(#filter1_iii_915_86)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint4_linear_915_86)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint5_radial_915_86)",fillOpacity:"0.5"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint6_radial_915_86)",fillOpacity:"0.5"})),a.createElement("g",{filter:"url(#filter2_d_915_86)"},a.createElement("path",{d:"M19.9971 19.2407C21.9509 19.2407 23.797 19.4605 25.4333 19.8498C25.7598 19.9275 26.0019 20.2089 26.002 20.5444C26.002 23.8817 23.3145 26.5873 19.999 26.5874C16.6835 26.5874 13.9951 23.8818 13.9951 20.5444C13.9951 20.2089 14.2363 19.9275 14.5627 19.8499C16.1986 19.4607 18.044 19.2407 19.9971 19.2407Z",fill:"url(#paint7_radial_915_86)"})),a.createElement("mask",{id:"mask0_915_86",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"13",y:"19",width:"14",height:"8"},a.createElement("path",{d:"M19.9963 19.2407C21.9498 19.2407 23.7956 19.4604 25.4316 19.8496C25.7587 19.9274 26.0012 20.2093 26.0012 20.5454C26.001 23.8825 23.3136 26.5873 19.9983 26.5874C16.6829 26.5874 13.9946 23.8826 13.9944 20.5454C13.9944 20.2093 14.236 19.9274 14.563 19.8496C16.1986 19.4606 18.0436 19.2407 19.9963 19.2407Z",fill:"url(#paint8_radial_915_86)"})),a.createElement("g",{mask:"url(#mask0_915_86)"},a.createElement("path",{d:"M15.0935 16.834C15.0935 16.2229 15.5889 15.7275 16.2 15.7275H23.7961C24.4072 15.7275 24.9026 16.2229 24.9026 16.834V19.6151C24.9026 20.2262 24.4072 20.7216 23.7961 20.7216H16.2C15.5889 20.7216 15.0935 20.2262 15.0935 19.6151V16.834Z",fill:"url(#paint9_linear_915_86)"}),a.createElement("ellipse",{cx:"19.9995",cy:"29.0369",rx:"5.24246",ry:"5.0808",fill:"url(#paint10_linear_915_86)"}),a.createElement("ellipse",{cx:"19.9995",cy:"29.0369",rx:"5.24246",ry:"5.0808",fill:"url(#paint11_radial_915_86)"})),a.createElement("g",{filter:"url(#filter3_iii_915_86)"},a.createElement("circle",{cx:"20.0004",cy:"19.9999",r:"9.99986",fill:"url(#paint12_linear_915_86)"})),a.createElement("g",{style:{mixBlendMode:"multiply"},filter:"url(#filter4_f_915_86)"},a.createElement("circle",{cx:"13.3513",cy:"17.9143",r:"3.35078",fill:"url(#paint13_radial_915_86)"})),a.createElement("g",{style:{mixBlendMode:"multiply"},filter:"url(#filter5_f_915_86)"},a.createElement("circle",{cx:"26.6499",cy:"17.9143",r:"3.35078",fill:"url(#paint14_radial_915_86)"})),a.createElement("g",{filter:"url(#filter6_iii_915_86)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint15_linear_915_86)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint16_radial_915_86)",fillOpacity:"0.5"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint17_radial_915_86)",fillOpacity:"0.5"})),a.createElement("g",{filter:"url(#filter7_iii_915_86)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint18_linear_915_86)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint19_radial_915_86)",fillOpacity:"0.5"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint20_radial_915_86)",fillOpacity:"0.5"})),a.createElement("g",{filter:"url(#filter8_d_915_86)"},a.createElement("path",{d:"M19.998 19.2402C21.9519 19.2402 23.798 19.46 25.4343 19.8493C25.7608 19.927 26.0029 20.2084 26.0029 20.5439C26.0029 23.8813 23.3154 26.5868 20 26.5869C16.6844 26.5869 13.9961 23.8813 13.9961 20.5439C13.9961 20.2084 14.2373 19.927 14.5637 19.8494C16.1996 19.4602 18.0449 19.2402 19.998 19.2402Z",fill:"url(#paint21_radial_915_86)"})),a.createElement("mask",{id:"mask1_915_86",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"13",y:"19",width:"14",height:"8"},a.createElement("path",{d:"M19.9973 19.2402C21.9511 19.2402 23.7972 19.46 25.4336 19.8493C25.76 19.927 26.0022 20.2084 26.0022 20.5439C26.0022 23.8813 23.3147 26.5868 19.9993 26.5869C16.6837 26.5869 13.9954 23.8813 13.9954 20.5439C13.9954 20.2084 14.2366 19.927 14.563 19.8494C16.1988 19.4602 18.0442 19.2402 19.9973 19.2402Z",fill:"url(#paint22_radial_915_86)"})),a.createElement("g",{mask:"url(#mask1_915_86)"},a.createElement("path",{d:"M15.0945 16.8335C15.0945 16.2224 15.5899 15.7271 16.201 15.7271H23.7971C24.4082 15.7271 24.9036 16.2224 24.9036 16.8335V19.6146C24.9036 20.2257 24.4082 20.7211 23.7971 20.7211H16.201C15.5899 20.7211 15.0945 20.2257 15.0945 19.6146V16.8335Z",fill:"url(#paint23_linear_915_86)"}),a.createElement("ellipse",{cx:"20.0005",cy:"29.0364",rx:"5.24246",ry:"5.0808",fill:"url(#paint24_linear_915_86)"}),a.createElement("ellipse",{cx:"20.0005",cy:"29.0364",rx:"5.24246",ry:"5.0808",fill:"url(#paint25_radial_915_86)"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_iii_915_86",x:"9.72223",y:"10.5746",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),a.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),a.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),a.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),a.createElement("filter",{id:"filter1_iii_915_86",x:"20.2405",y:"10.5746",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),a.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),a.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),a.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),a.createElement("filter",{id:"filter2_d_915_86",x:"13.4419",y:"18.9641",width:"13.1133",height:"8.45316",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.276619"}),a.createElement("feGaussianBlur",{stdDeviation:"0.276619"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.804651 0 0 0 0 0.4 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_86"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_915_86",result:"shape"})),a.createElement("filter",{id:"filter3_iii_915_86",x:"8.34077",y:"7.78705",width:"22.2127",height:"22.7657",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-1.65971",dy:"-2.21295"}),a.createElement("feGaussianBlur",{stdDeviation:"2.76619"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.605392 0 0 0 0 0.0416667 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-1.10648",dy:"-1.10648"}),a.createElement("feGaussianBlur",{stdDeviation:"0.849311"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.95 0 0 0 0 0.57 0 0 0 0 0 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.553238",dy:"0.553238"}),a.createElement("feGaussianBlur",{stdDeviation:"1.38309"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.882353 0 0 0 0 0.517647 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),a.createElement("filter",{id:"filter4_f_915_86",x:"8.04169",y:"12.6047",width:"10.6193",height:"10.6193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feGaussianBlur",{stdDeviation:"0.979398",result:"effect1_foregroundBlur_915_86"})),a.createElement("filter",{id:"filter5_f_915_86",x:"21.3403",y:"12.6047",width:"10.6193",height:"10.6193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feGaussianBlur",{stdDeviation:"0.979398",result:"effect1_foregroundBlur_915_86"})),a.createElement("filter",{id:"filter6_iii_915_86",x:"9.72296",y:"10.5741",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),a.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),a.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),a.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),a.createElement("filter",{id:"filter7_iii_915_86",x:"20.2435",y:"10.5741",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),a.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),a.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),a.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),a.createElement("filter",{id:"filter8_d_915_86",x:"13.4429",y:"18.9636",width:"13.1133",height:"8.45316",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.276619"}),a.createElement("feGaussianBlur",{stdDeviation:"0.276619"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.804651 0 0 0 0 0.4 0 0 0 1 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_86"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_915_86",result:"shape"})),a.createElement("linearGradient",{id:"paint0_linear_915_86",x1:"15.7446",y1:"13.3934",x2:"24.7102",y2:"25.6663",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF2B9"}),a.createElement("stop",{offset:"0.378122",stopColor:"#FFE976"}),a.createElement("stop",{offset:"0.887607",stopColor:"#FFD752"})),a.createElement("linearGradient",{id:"paint1_linear_915_86",x1:"9.70071",y1:"11.2826",x2:"17.7679",y2:"18.5944",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF00AE"}),a.createElement("stop",{offset:"0.373582",stopColor:"#FF2976"}),a.createElement("stop",{offset:"1",stopColor:"#FF003D"})),a.createElement("radialGradient",{id:"paint2_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(16.0416 13.6044) rotate(69.6769) scale(1.54409 1.99954)"},a.createElement("stop",{stopColor:"#FFB9D1"}),a.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint3_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11.8518 13.7164) rotate(28.1043) scale(3.28694 4.25648)"},a.createElement("stop",{stopColor:"#FFE4EE"}),a.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint4_linear_915_86",x1:"21.7851",y1:"9.85354",x2:"27.7687",y2:"18.2756",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF39C0"}),a.createElement("stop",{offset:"0.373582",stopColor:"#FF327C"}),a.createElement("stop",{offset:"1",stopColor:"#FF003D"})),a.createElement("radialGradient",{id:"paint5_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(22.4262 13.2487) rotate(61.1668) scale(2.05888 2.66618)"},a.createElement("stop",{stopColor:"#FFB9D1"}),a.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint6_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(27.0448 13.991) rotate(144.698) scale(2.20426 2.85444)"},a.createElement("stop",{stopColor:"#FFE4EE"}),a.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint7_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9985 19.8943) rotate(90) scale(8.75897 24.6984)"},a.createElement("stop",{stopColor:"#000018"}),a.createElement("stop",{offset:"1",stopColor:"#D70892"})),a.createElement("radialGradient",{id:"paint8_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9978 22.2719) rotate(90) scale(4.31553 7.05297)"},a.createElement("stop",{stopColor:"#361B13"}),a.createElement("stop",{offset:"1",stopColor:"white"})),a.createElement("linearGradient",{id:"paint9_linear_915_86",x1:"19.998",y1:"19.3858",x2:"19.998",y2:"20.4311",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#E2E2EB"}),a.createElement("stop",{offset:"1",stopColor:"white"})),a.createElement("linearGradient",{id:"paint10_linear_915_86",x1:"19.9995",y1:"23.9561",x2:"19.9996",y2:"27.558",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF37A3"}),a.createElement("stop",{offset:"1",stopColor:"#F30036"})),a.createElement("radialGradient",{id:"paint11_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.7844 23.0481) rotate(158.54) scale(3.3632 2.5817)"},a.createElement("stop",{stopColor:"#FF408B"}),a.createElement("stop",{offset:"1",stopColor:"#FF79AF",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint12_linear_915_86",x1:"15.7456",y1:"13.3929",x2:"24.7112",y2:"25.6659",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF2B9"}),a.createElement("stop",{offset:"0.378122",stopColor:"#FFE976"}),a.createElement("stop",{offset:"0.887607",stopColor:"#FFD752"})),a.createElement("radialGradient",{id:"paint13_radial_915_86",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(-1.14305 3.85281 -3.86218 -1.09953 13.3513 17.9142)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF8989"}),a.createElement("stop",{offset:"1",stopColor:"#FFBABA",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint14_radial_915_86",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(-1.14305 3.85281 -3.86218 -1.09953 26.6499 17.9142)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF7E7E"}),a.createElement("stop",{offset:"1",stopColor:"#FFBABA",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint15_linear_915_86",x1:"9.70145",y1:"11.2821",x2:"17.7686",y2:"18.5939",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF00AE"}),a.createElement("stop",{offset:"0.373582",stopColor:"#FF2976"}),a.createElement("stop",{offset:"1",stopColor:"#FF003D"})),a.createElement("radialGradient",{id:"paint16_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(16.0424 13.6039) rotate(69.6769) scale(1.54409 1.99954)"},a.createElement("stop",{stopColor:"#FFB9D1"}),a.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint17_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11.8525 13.7159) rotate(28.1043) scale(3.28694 4.25648)"},a.createElement("stop",{stopColor:"#FFE4EE"}),a.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint18_linear_915_86",x1:"21.788",y1:"9.85305",x2:"27.7717",y2:"18.2752",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF39C0"}),a.createElement("stop",{offset:"0.373582",stopColor:"#FF327C"}),a.createElement("stop",{offset:"1",stopColor:"#FF003D"})),a.createElement("radialGradient",{id:"paint19_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(22.4292 13.2483) rotate(61.1668) scale(2.05888 2.66618)"},a.createElement("stop",{stopColor:"#FFB9D1"}),a.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint20_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(27.0478 13.9905) rotate(144.698) scale(2.20426 2.85444)"},a.createElement("stop",{stopColor:"#FFE4EE"}),a.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint21_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9995 19.8939) rotate(90) scale(8.75897 24.6984)"},a.createElement("stop",{stopColor:"#000018"}),a.createElement("stop",{offset:"1",stopColor:"#D70892"})),a.createElement("radialGradient",{id:"paint22_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9988 22.2714) rotate(90) scale(4.31553 7.05297)"},a.createElement("stop",{stopColor:"#361B13"}),a.createElement("stop",{offset:"1",stopColor:"white"})),a.createElement("linearGradient",{id:"paint23_linear_915_86",x1:"19.999",y1:"19.3854",x2:"19.999",y2:"20.4306",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#E2E2EB"}),a.createElement("stop",{offset:"1",stopColor:"white"})),a.createElement("linearGradient",{id:"paint24_linear_915_86",x1:"20.0005",y1:"23.9556",x2:"20.0005",y2:"27.5575",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF37A3"}),a.createElement("stop",{offset:"1",stopColor:"#F30036"})),a.createElement("radialGradient",{id:"paint25_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.7854 23.0476) rotate(158.54) scale(3.3632 2.5817)"},a.createElement("stop",{stopColor:"#FF408B"}),a.createElement("stop",{offset:"1",stopColor:"#FF79AF",stopOpacity:"0"}))))}),x0=i(15207),j0=i(29294),D0=i(46442),od=i(80985);const wd=(0,ue.Ay)(od.A).withConfig({displayName:"styles__StyledStarResourcesPanel",componentId:"sc-1kxvdvm-0"})(["flex:1;overflow-x:hidden;overflow-y:overlay;.combo-groups-item-collapse{& > header{padding-left:12px;.title{color:",";font-size:12px;font-weight:normal;}svg.arrow-icon{width:12px;}.star{display:none;}.sign{display:inline-block;}&:hover{.star{display:flex;}.sign{display:none;}}}.combo-groups-item-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}}"],v=>v.theme.color_text_L1),u2=ue.Ay.div.withConfig({displayName:"styles__StyledLoadingContainer",componentId:"sc-1kxvdvm-1"})(["display:flex;align-items:center;justify-content:center;.loading{width:18px;height:18px;}&.all-height{flex:1;}"]),Sd=ue.Ay.div.withConfig({displayName:"styles__StyledStarScreenList",componentId:"sc-1kxvdvm-2"})(["display:flex;flex:1 1 0;flex-direction:column;margin-top:10px;overflow-x:hidden;overflow-y:overlay;.screen_list_star{.resources-card-list{padding:0 8px;}}"]),Y2=(0,a.memo)(v=>{let{containerRect:K,list:te,onPaidTemplates:me,onOpenFolder:$e}=v;const nt=(0,a.useCallback)((yt,dt)=>{let{item:It,index:un}=yt;return"hotAttr"in It&&"marketTemplateSource"in It?(0,G.jsx)(j0.A,{marketTemplate:It,currentResources:It.marketTemplateSource,containerRect:K,xContainerRect:dt,isShowSign:!0,isShowFolderIcon:!0,onPaidTemplates:()=>me(It.marketTemplateSource),onOpenFolder:$e},It.key+un):(0,G.jsx)(D0.a,{item:It},It.key+un)},[K,me,$e]);return(0,G.jsx)(Zi,{className:E()("combo-groups-item-container",{"list-2":te.length<=2},{"list-4":te.length>2&&te.length<=4}),list:te,renderItem:nt})}),O0=v=>{const{containerRect:K,resource:te,resource:{type:me,name:$e,title:nt,list:yt,children:dt},onChangeCurOfSubPlatResource:It,onOpenFolder:un}=v,xn=(0,k.wA)(),{sceName:gn}=(0,ft.yj)(),[wo,vo]=an(gn,xn),Co=(0,a.useCallback)(go=>{wo.includes(go)?vo(wo.filter(xo=>xo!==go)):vo(wo.concat([go]))},[wo,vo]),Eo=(0,a.useCallback)(go=>{const{cid:xo,category:jo}=go;xn({type:"entry:resources:update:find:data",payload:{cid:xo,category:jo}})},[]);return dt!=null&&dt.length?(0,G.jsx)(El.A,{className:"combo-group second-collapse-panel",dataCid:$e,title:$e,canCollapse:!1,onClickResources:(dt==null?void 0:dt.length)>6?()=>It(te):void 0,children:(0,G.jsx)(Y2,{list:dt,containerRect:K,onPaidTemplates:Eo,onOpenFolder:un})},$e):yt!=null&&yt.length?me===Le.O3.Builtin?(0,G.jsx)(Uo.A,{className:"second-collapse-panel",id:nt,"data-category":nt,title:nt,width:Ts.qv,expanded:!wo.includes(nt),onToggle:Co,children:(0,G.jsx)("div",{className:"widget-insertable-list",style:{width:Ts.qv},children:yt.map(go=>(0,G.jsx)(Xo.A,{widgetInsertableData:go},go.key))})},nt):yt.map((go,xo)=>{const{name:jo,children:pa}=go,na=!(pa!=null&&pa.length),Ma=(pa==null?void 0:pa.length)>6;return(0,G.jsx)(El.A,{className:"combo-group second-collapse-panel",dataCid:jo,title:jo,canCollapse:!1,onClickResources:Ma?()=>It(go):void 0,children:na?(0,G.jsx)(u2,{children:(0,G.jsx)(x0.f,{className:"loading"})}):(0,G.jsx)(Y2,{list:pa,containerRect:K,onPaidTemplates:Eo,onOpenFolder:un})},jo+xo)}):null},Up=(0,a.memo)(O0);var l1=i(28306),Tl=i(13642),il=i(88909);const Fp=ue.Ay.div.withConfig({displayName:"styles__StyledSceResourcesPanel",componentId:"sc-1ici4r5-0"})(["margin-top:6px;.sec-container{.sec-header{height:33px;border-bottom:1px solid ",";align-items:center;margin:0 12px 8px 12px;display:none;span.title{font-family:PingFang SC;font-size:12px;font-weight:400;color:",";}&.show-title{display:flex;}}}.combo-group{&:not(:last-child){margin-bottom:8px;}.header{.right{.arrow-right{display:none;}}}}.combo-group .collapse-box{position:relative;width:250px;padding:0 12px;&:hover{.scroll-bar{opacity:1;}}}.combo-groups-item-container{width:100%;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:row;&.list-2{> li{grid-template-rows:repeat(1,1fr);}}&.list-4{> li{grid-template-rows:repeat(2,1fr);}}> li{width:100%;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(2,109px);align-items:flex-start;grid-template-rows:repeat(3,1fr);margin-right:8px;> li{margin-bottom:0;> .img-wrapper{width:109px;height:109px;}}}&::-webkit-scrollbar{display:none;}.template-item{width:109px;span.template-name{width:100%;text-align:left;padding:6px 6px 0 6px;}}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L3),X2=v=>{let{resources:K,sceTag:te,plabel:me}=v;return(0,a.useEffect)(()=>{let $e=[];K!=null&&K.length&&K.forEach(yt=>{if((yt==null?void 0:yt.type)===Le.O3.Resources){var dt,It;yt!=null&&(dt=yt.list)!=null&&dt.length?$e=$e.concat(yt.list):yt!=null&&(It=yt.children)!=null&&It.length&&($e=$e.concat(yt.children))}});const nt=(0,l1.X_)({list:$e,sceTag:te,plabel:me});Tl.A.emit(il.jy,{observeMtItemObj:nt}),Tl.A.emit(il.BD)},[K,me,te]),(0,a.useEffect)(()=>(setTimeout(()=>{Tl.A.emit(il.l7),Tl.A.emit(il.wO)}),()=>{Tl.A.emit(il.P2,{shownMtItemCids:[]})}),[me,te]),null},tp=v=>{const{containerRect:K,sec:{isLoading:te,officialPlatResources:me},onSetItemRef:$e,onChangeCurOfSubPlatResource:nt,onOpenFolder:yt}=v,dt=(0,k.d4)(C.xH),It=(0,k.d4)(C.tt),un=(0,k.d4)(C.mR),xn=(0,k.d4)(C.AC),gn=(0,k.d4)(C.f3),wo=(0,k.wA)(),vo=[Le.Iw.MP_App,Le.Iw.MP_Applet,Le.Iw.MP_H5,Le.Iw.PC_WebBack,Le.Iw.PC_Website].includes(gn),Co=(0,a.useMemo)(()=>me.filter(Eo=>!!Eo.num),[me]);return(0,G.jsx)(Fp,{className:"variable-height",children:te?null:Co.map((Eo,go)=>(0,G.jsxs)("div",{className:"sec-container",ref:$e(go+1),children:[(0,G.jsx)("header",{className:E()("sec-header",{"show-title":vo}),"data-key":Eo.title,children:(0,G.jsx)("span",{className:"title","data-key":Eo.title,children:Eo.title+"\uFF08"+Eo.num+"\uFF09"})}),Eo.list.map((xo,jo)=>(0,G.jsx)(Up,{containerRect:K,resource:xo,onChangeCurOfSubPlatResource:nt,onOpenFolder:yt},jo)),(0,G.jsx)(X2,{resources:Eo.list,sceTag:gn,plabel:It})]},go))})},h2=(0,a.memo)(tp);var Vp=i(25409),m2=i(65415),np=i(77036),ad=i(19062);const Pc=(v,K)=>v.length===0?[]:v.map(te=>(K.get(te.mtCid)||[]).find(nt=>nt.key===te.key)||te);var Ga=i(3862),Xl=i(55914);const js=ue.Ay.div.withConfig({displayName:"styles__StyledOfficialResDetailPanel",componentId:"sc-1ce1jta-0"})(["height:100%;flex:1 1 0%;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{height:28px;}.search-no-results{flex:1;justify-content:center;}.marketTemplate-list{height:100%;overflow:hidden;position:relative;}.template-item{width:109px;}"]),ai=(0,a.memo)(v=>{const{res:{name:K,children:te},onBack:me,onOpenFolder:$e}=v,nt=(0,k.d4)(C.AC),yt=(0,k.d4)(C.xH),dt=(0,k.d4)(q.MZ),It=(0,k.wA)(),[un,xn]=a.useState(!1),[gn,wo]=a.useState(null),vo=na=>{var Ma;return(na==null||(Ma=na.marketTemplateSource)==null?void 0:Ma.cid)||(na==null?void 0:na.mtCid)},Co=(0,a.useMemo)(()=>te.every((na,Ma,Ka)=>vo(na)===vo(Ka[0])),[te,vo]),Eo=(0,a.useMemo)(()=>Pc(te,nt),[te,nt]);(0,a.useEffect)(()=>{if(te.length===0)return;const na=te.map(Ma=>Ma.mtCid).filter(Ma=>!!Ma);na!=null&&na.length&&It({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:na}})},[te,It]);const go=na=>{It({type:"entry:resources:update:find:data",payload:{cid:na.cid,category:Ga.t_}})},xo=na=>{if(wo(null),na){const Ma=new RegExp((0,Xl.$)(na),"i");if(Eo&&Eo.length>0){xn(!0);const Ka=Eo.filter(Fa=>{var xr;return Ma.test((xr=Fa.hotAttr)==null?void 0:xr.name)});setTimeout(()=>{xn(!1),wo(Ka)},1e3)}}},jo=gn||Eo,pa=jo&&jo.length===0;return(0,G.jsxs)(js,{children:[(0,G.jsx)(Vp.l,{resources:{title:K},onBack:me,showStar:!1,onSearch:xo}),un?(0,G.jsx)(ad.S,{children:(0,G.jsx)("span",{children:I18N.Resources.searching.load})}):pa?(0,G.jsx)(m2.b,{isNeedLink:!gn}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"marketTemplate-list",children:(0,G.jsx)(np.L,{category:Ga.t_,marketTemplateItemList:jo,isShowFolderIcon:!Co,isShowSign:!Co,onTrack:()=>{},onPaidResources:go,onOpenFolder:$e})}),(0,G.jsx)(Oa,{list:jo})]})]})}),Oa=v=>{let{list:K}=v;return(0,a.useEffect)(()=>{const te=(0,l1.R9)({source:"detail",list:K});Tl.A.emit(il.jy,{observeMtItemObj:te}),Tl.A.emit(il.BD)},[K]),null};var Ql=i(80771),Sl=i(11032);const Du=v=>{const{currentResources:K,setCurrentResources:te,onBack:me}=v,$e=(0,k.wA)(),nt=async()=>{if(!K||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:It,cid:un}=K,xn={...K,is_star:!It};te(xn),$e({type:"entry:resources:update:find:data",payload:{cid:un,category:Ga.t_,updateData:gn=>({...gn,is_star:!gn.is_star})}}),await(0,Sl.lU)(It,un)},yt=()=>{te({...K,is_star:!0,is_purchased:!0}),dt(K)},dt=It=>{$e({type:"entry:resources:update:find:data",payload:{cid:It.cid,category:Ga.t_}})};return(0,G.jsx)(Ql.A,{className:"search-resources-detail-panel",currentResources:K,onStarTemplates:nt,onPaidTemplates:yt,onBack:me})},Q2=ue.Ay.div.withConfig({displayName:"styles__StyledWidgetInsertableDetailPanel",componentId:"sc-1cyqkxd-0"})(["height:100%;flex:1 1 0%;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{height:28px;}.search-no-results{flex:1;justify-content:center;}.widget-insertable-list{position:relative;width:100%;flex:1;overflow:hidden;.widget-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.list{width:100%;height:100%;padding:0 4px 0 12px;display:flex;flex-flow:row wrap;}}}"]),qd=(0,a.memo)(v=>{const{curWidgetInsertable:{title:K,list:te},onBack:me}=v,$e=(0,k.d4)(q.MZ),[nt,yt]=(0,a.useState)(!1),[dt,It]=(0,a.useState)(null),un=(0,a.useRef)(null),xn=vo=>{if(It(null),vo){const Co=new RegExp((0,Xl.$)(vo),"i");if(te&&te.length>0){yt(!0);const Eo=te.filter(go=>{var xo;return Co.test((xo=go.meta)==null?void 0:xo.name)});setTimeout(()=>{yt(!1),It(Eo)},1e3)}}},gn=dt||te,wo=gn&&(gn==null?void 0:gn.length)===0;return(0,G.jsxs)(Q2,{children:[(0,G.jsx)(Vp.l,{resources:{title:K},layoutV9:$e,onBack:me,showStar:!1,onSearch:xn}),nt?(0,G.jsx)(ad.S,{children:(0,G.jsx)("span",{children:I18N.Resources.searching.load})}):wo?(0,G.jsx)(m2.b,{isNeedLink:!dt}):(0,G.jsx)("div",{className:"widget-insertable-list",children:(0,G.jsxs)("div",{className:"widget-scroll-container",ref:un,children:[(0,G.jsx)("div",{className:"list",children:gn.map(vo=>(0,G.jsx)(Xo.A,{widgetInsertableData:vo},vo.key))}),un&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:un,isAutoHideBar:!0})]})})]})});var c1=i(32330);const Hd=v=>{let{scrollRef:K}=v;const[te,me]=(0,a.useState)(!1),$e=ja()(()=>{if(!K.current)return;K.current.scrollTop>K.current.offsetHeight?me(!0):me(!1)},100);(0,a.useEffect)(()=>{if(K.current)return K.current.addEventListener("scroll",$e),()=>{var yt,dt;(yt=$e.cancel)==null||yt.call($e),(dt=K.current)==null||dt.removeEventListener("scroll",$e)}},[K,$e]);const nt=()=>{K.current.scrollTop=0};return te?(0,G.jsx)(l.A,{content:"\u6EDA\u52A8\u5230\u9876\u90E8",direction:"up",children:(0,G.jsx)($d,{onClick:nt,children:(0,G.jsx)(c1.A,{size:24})})}):null},$d=ue.Ay.div.withConfig({displayName:"ScrollTopButton__StyledScrollTopButton",componentId:"sc-pettco-0"})(["width:32px;height:32px;border-radius:50%;border:1px solid ",";background:",";box-shadow:0 4px 10px 0 rgba(0,18,38,0.10);display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:16px;cursor:pointer;z-index:999;svg path{fill:",";}&:hover{svg path{fill:",";}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_menu,v=>v.theme.color_text_L1,v=>v.theme.color_btn_primary_normal);var Ad=i(26348);const vc=v=>{const[K,te]=(0,a.useState)(),me=ja()(()=>{if(!v.current)return;const $e=v.current.scrollTop;$e>40&&te("up"),$e<=40&&te("down")},100);return(0,a.useEffect)(()=>{const $e=v.current;if($e)return me(),$e.addEventListener("scroll",me),()=>{var nt;(nt=me.cancel)==null||nt.call(me),$e.removeEventListener("scroll",me)}},[v,me]),K};var Pl=i(16335);const Md={[Le.Iw.MP_App]:"app",[Le.Iw.MP_Applet]:"applet",[Le.Iw.MP_H5]:"activity",[Le.Iw.PC_Website]:"website",[Le.Iw.PC_WebBack]:"web_back",[Le.Iw.Pad]:"ipad",[Le.Iw.DS_Screen]:"display_screen",[Le.Iw.SmartTV]:"smart_tv",[Le.Iw.HMI_IndusHmi]:"HMI",[Le.Iw.HMI_Car]:"smart_car",[Le.Iw.Watch]:"apple_watch",[Le.Iw.Common]:"common"},Ld=()=>{const v=(0,k.d4)(C.f3),K=(0,k.d4)(C.AC),te=(0,k.d4)(C.up),{isEditingCombo:me,isEditingBasket:$e,isEditingMuban:nt}=(0,k.d4)(Y.r),yt=(0,k.wA)(),[dt,It]=(0,a.useState)(!1),un=(0,a.useMemo)(()=>[Le.Iw.Watch,Le.Iw.Common].includes(v),[v]),xn=(0,a.useCallback)(Eo=>{const go=He.gD[Eo]||[],xo=te.get(Eo)||[],jo=(0,Le.HA)()[Eo]||[];return go.map(pa=>{var na;if(pa.value===Le.ni)return[Le.Iw.Watch,Le.Iw.Common].includes(Eo)?jo.map(Ka=>({value:Ka})):{...pa,children:jo.map(Ka=>({value:Ka}))};const Ma=xo.find(Ka=>Ka.name===pa.value);return Ma?{...pa,children:pa==null||(na=pa.children)==null?void 0:na.filter(Ka=>{if(!Ka.value.includes("\u5185\u7F6E")){var Fa,xr;const Tr=Ma==null||(Fa=Ma.children)==null?void 0:Fa.find(fi=>fi.name===Ka.value);return Tr&&(Tr==null||(xr=Tr.children)==null?void 0:xr.length)>0}return!0})}:null}).filter(pa=>!!pa).flat(1/0)},[te]),gn=(0,a.useMemo)(()=>xn(v),[v,te,xn]),wo=(0,a.useCallback)(Eo=>{const{sceListing:go,sceData:xo}=(0,ft.yj)(),jo=nt||me||$e?go.filter(Fa=>{var xr;return((xr=xo[Fa.split("/")[1]])==null?void 0:xr.meta.type)!=="rResCanvasAsOverlay"}):go,pa=(0,Le.HA)()[Eo]||[],na=new Map;return pa.forEach((Fa,xr)=>{na.set(Fa,xr)}),jo.filter(Fa=>pa.includes(Fa.split("/")[0])).sort((Fa,xr)=>na.get(Fa.split("/")[0])-na.get(xr.split("/")[0])).reduce((Fa,xr)=>{const[Tr,fi]=xr.split("/");return Fa.has(Tr)?Fa.set(Tr,[...Fa.get(Tr),{key:fi,...xo[fi]}]):Fa.set(Tr,[{key:fi,...xo[fi]}]),Fa},new Map)},[me,$e,nt]),vo=(0,a.useMemo)(()=>wo(v),[v,wo]);(0,a.useEffect)(()=>{const Eo=async()=>{try{It(!0);const go=Md[v];if(go!=null&&go.length){const xo=await(0,Pl.GH)("v1",go),jo=new Map(te);jo.set(v,xo||[]),yt({type:"widget-panel:update:platformMarketTemplatesMap",payload:jo})}It(!1)}catch(go){}};te.get(v)||Eo()},[yt,v,te]);const Co=(0,a.useMemo)(()=>{const Eo=te.get(v)||[],{fetchList:go}=(0,He.aM)(Eo,K),xo=wo("all");if(Eo){const jo=[];return gn.filter(pa=>pa.value!==Le.ni).forEach(pa=>{var na;const Ma=[];let Ka=0;(na=pa.children)==null||na.forEach(Er=>{if(Er.value.includes("\u5185\u7F6E")){const[Ya,Br]=Er.value.split("\u5185\u7F6E");if(Br!=null&&Br.length){const qa=xo.get(Br);qa!=null&&qa.length&&(Ma.push({type:Le.O3.Builtin,title:Er.value,list:qa}),Ka+=qa==null?void 0:qa.length)}}});const Fa=go.find(Er=>Er.name===pa.value);if(Fa){var xr;if((xr=pa.children)!=null&&xr.length){var Tr;const Er=(Tr=pa.children)==null?void 0:Tr.map(Ya=>Fa.children.find(qa=>qa.name===Ya.value)).filter(Ya=>!!Ya);Ma.push({type:Le.O3.Resources,title:pa.value,list:Er||[]}),Ka=Er==null?void 0:Er.reduce((Ya,Br)=>{var qa;return Ya+=Br==null||(qa=Br.children)==null?void 0:qa.length,Ya},Ka)}else{var fi;if(pa.value===(Fa==null||(fi=Fa.children)==null||(fi=fi[0])==null?void 0:fi.name)){var bi;const Er=Fa==null||(bi=Fa.children)==null||(bi=bi[0])==null?void 0:bi.children;Ma.push({type:Le.O3.Resources,name:pa.value,children:Er||[]}),Ka+=Er==null?void 0:Er.length}}}jo.push({title:pa.value,list:Ma,num:Ka})}),jo}return[]},[te,v,gn,K,wo]);return{isWatchCommonPlatformType:un,officialFilterList:gn,handleGetOfficialFilterList:xn,categoryToWidgetInsertableMap:vo,sec:{isLoading:dt,officialPlatResources:Co}}};var Jl=i(38739);const d1=ue.Ay.div.withConfig({displayName:"styles__StyledOfficial",componentId:"sc-1utg50z-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.bar-vertical{z-index:3;}.official-bottom{width:100%;height:100%;position:relative;overflow:hidden;.open-modal-cards-wrap{&.sticky{top:0;}}}"]),Wl=(0,ue.Ay)(od.o).withConfig({displayName:"styles__StyledWidgetInsertableContainer",componentId:"sc-1utg50z-1"})(["height:100%;overflow:hidden auto;margin-bottom:8px;display:flex;flex-direction:column;scrollbar-width:none;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}&.padding-top-90{padding-top:90px;}.widget-insertable-list{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;margin-top:8px;position:relative;.widget-flow-list{width:100%;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:row;> li{width:100%;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(3,70px);grid-template-rows:repeat(6,1fr);margin-right:8px;}}&:hover{.scroll-bar{opacity:1;}}}.x-scroll-bar-action{.scroll-bar{width:16px;height:32px;top:calc(50% - 16px);background:",";border:1px solid ",";cursor:pointer;border-radius:4px;transition:all 0.2s ease-in-out;&:hover{background:",";}&.dark{background:",";&:hover{background:",";}}&.left,&.right{&:hover{height:40px;background:",";top:calc(50% - 20px);}}svg{path{fill:",";}}&.left{svg{transform:rotate(90deg);}}&.right{svg{transform:rotate(-90deg);}}}}"],v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_02,v=>v.theme.color_bg_white,v=>v.theme.color_bg_white,v=>v.theme.color_bg_white,v=>v.theme.color_bg_white,v=>v.theme.color_text_L2),Ll=v=>{var K;const{isOffUpdateScroll:te,onIsUpdateScroll:me}=v,[$e,nt]=(0,a.useState)(null),[yt,dt]=(0,a.useState)(null),[It,un]=(0,a.useState)(null),xn=(0,a.useCallback)(()=>{nt(null),un(null),dt(null),me()},[nt,un,dt,me]);return It?(0,G.jsx)(qd,{curWidgetInsertable:It,onBack:xn}):yt?(0,G.jsx)(Du,{currentResources:yt,setCurrentResources:dt,onBack:xn}):$e!=null&&(K=$e.children)!=null&&K.length?(0,G.jsx)(ai,{res:$e,onBack:xn,onOpenFolder:dt}):(0,G.jsx)(p1,{isOffUpdateScroll:te,onChangeCurWidgetInsertable:un,onChangeCurOfSubPlatResource:nt,onOpenFolder:dt})},p1=(0,a.memo)(v=>{const{isOffUpdateScroll:K,onChangeCurWidgetInsertable:te,onChangeCurOfSubPlatResource:me,onOpenFolder:$e}=v,nt=(0,a.useRef)(null),yt=(0,a.useRef)(null),dt=vc(nt),It=(0,k.wA)(),un=(0,k.d4)(C.f3),{scene_tag:xn,cid:gn}=(0,k.d4)(J.PL),wo=(0,k.d4)(C.tt),vo=(0,k.d4)(C.mR),Co=(0,k.d4)(C.eH),Eo=(0,k.d4)(C.ok),{setItemRef:go,activeTitleValue:xo,activeSecondTitleValue:jo,scrollTop:pa,scrollToItem:na,scrollToByOffset:Ma}=(0,Ad.G)(nt,{defaultFirst:wo,defaultSecond:vo,secondQueryName:".second-collapse-panel",defaultScrollTop:Co}),{isWatchCommonPlatformType:Ka,officialFilterList:Fa,categoryToWidgetInsertableMap:xr,sec:Tr}=Ld(),fi=(0,a.useMemo)(()=>(0,Le.Ow)(xn),[xn]),bi=(0,a.useCallback)(Br=>{It({type:"modal:update:state",payload:{widgetModal:{isOpen:!0,source:Br}}})},[It]),Er=(0,a.useCallback)(Br=>{It({type:"modal:update:state",payload:{iconModal:{isOpen:!0}}})},[It]),Ya=(0,a.useMemo)(()=>[{label:I18N.LeftSidePanel.widgetPanel.largeFactoryModal,value:Jl.l.LargeFactory,icon:(0,G.jsx)(Pd,{size:40}),onClick:bi},{label:I18N.LeftSidePanel.widgetPanel.componentsModal,value:Jl.l.ComponentLibrary,icon:(0,G.jsx)(ep,{size:40}),onClick:bi},{label:I18N.LeftSidePanel.widgetPanel.iconsModal,value:"icon",icon:(0,G.jsx)(Bp,{size:40}),onClick:Er}],[bi,Er]);return(0,a.useEffect)(()=>{un||It({type:"widget-panel:update:platFormType",payload:{platformType:fi,projectCid:gn}})},[un,gn]),(0,a.useEffect)(()=>{xo===Le.ni&&Ka&&(It({type:"widget-panel:update:level1",payload:{level1:jo||""}}),It({type:"widget-panel:update:level2",payload:{level2:""}}));const Br=Fa.find(Mr=>Mr.value===xo);if(Br){var qa;It({type:"widget-panel:update:level1",payload:{level1:xo}});const Mr=(qa=Br.children)==null?void 0:qa.find(qr=>qr.value===jo);It({type:"widget-panel:update:level2",payload:{level2:(Mr==null?void 0:Mr.value)||""}})}},[xo,jo,Fa,un,Ka]),(0,a.useEffect)(()=>{if(dt==="up"){if(yt.current){var Br,qa;(Br=yt.current)==null||Br.classList.add("sticky"),nt==null||(qa=nt.current)==null||qa.classList.add("padding-top-90")}}else{var Mr,qr;(Mr=yt.current)==null||Mr.classList.remove("sticky"),nt==null||(qr=nt.current)==null||qr.classList.remove("padding-top-90")}},[dt]),(0,a.useEffect)(()=>{It({type:"widget-panel:update:state",payload:{scrollTop:pa}})},[It,pa]),(0,a.useEffect)(()=>{K&&Ma(Co)},[K,Co,Ma]),(0,a.useEffect)(()=>{if(Eo){const Br=Fa.findIndex(qa=>qa.value===wo);Br>-1&&na(Br)}},[na,Eo,wo,Fa]),(0,G.jsxs)(d1,{children:[(0,G.jsx)(yn,{isWatchCommonPlatformType:Ka,officialFilterList:Fa,scrollToItem:na,scrollToByOffset:Ma}),(0,G.jsxs)("div",{className:"official-bottom",children:[(0,G.jsx)(Wl,{ref:nt,children:Br=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Da.G,{cardList:Ya,ref:yt}),(0,G.jsx)(_o,{categoryToWidgetInsertableMap:xr,onSetItemRef:go,onChangeCurWidgetInsertable:te}),(0,G.jsx)(h2,{containerRect:Br,sec:Tr,onSetItemRef:go,onChangeCurOfSubPlatResource:me,onOpenFolder:$e})]})}),nt&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:nt,isAutoHideBar:!0}),(0,G.jsx)(Hd,{scrollRef:nt})]})]})}),op=Ll;var ap=Object.defineProperty,j1=Object.defineProperties,b0=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,Zd=Object.prototype.hasOwnProperty,qc=Object.prototype.propertyIsEnumerable,u1=(v,K,te)=>K in v?ap(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,h1=(v,K)=>{for(var te in K||(K={}))Zd.call(K,te)&&u1(v,te,K[te]);if(Gd)for(var te of Gd(K))qc.call(K,te)&&u1(v,te,K[te]);return v},J2=(v,K)=>j1(v,b0(K)),zp=(v,K)=>{var te={};for(var me in v)Zd.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Gd)for(var me of Gd(v))K.indexOf(me)<0&&qc.call(v,me)&&(te[me]=v[me]);return te},u0=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=zp(te,["size","spin","style"]);const dt=h1(h1({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",J2(h1({ref:K,style:dt},yt),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M10 13C10.5523 13 11 13.4477 11 14V17C11 17.5177 10.6067 17.9438 10.1025 17.9951L10 18H7L6.89746 17.9951C6.42703 17.9472 6.05278 17.573 6.00488 17.1025L6 17V14C6 13.4477 6.44772 13 7 13H10ZM17 13C17.5523 13 18 13.4477 18 14V17C18 17.5177 17.6067 17.9438 17.1025 17.9951L17 18H14L13.8975 17.9951C13.427 17.9472 13.0528 17.573 13.0049 17.1025L13 17V14C13 13.4477 13.4477 13 14 13H17ZM14 17H17V14H14V17ZM7 17H10V14H7V17ZM10 6C10.5523 6 11 6.44772 11 7V10C11 10.5177 10.6067 10.9438 10.1025 10.9951L10 11H7L6.89746 10.9951C6.42703 10.9472 6.05278 10.573 6.00488 10.1025L6 10V7C6 6.44772 6.44772 6 7 6H10ZM17 6C17.5523 6 18 6.44772 18 7V10C18 10.5177 17.6067 10.9438 17.1025 10.9951L17 11H14L13.8975 10.9951C13.427 10.9472 13.0528 10.573 13.0049 10.1025L13 10V7C13 6.44772 13.4477 6 14 6H17ZM7 10H10V7H7V10ZM14 10H17V7H14V10Z",fill:"#19191A"}))}),f2=Object.defineProperty,R0=Object.defineProperties,kd=Object.getOwnPropertyDescriptors,B0=Object.getOwnPropertySymbols,Wp=Object.prototype.hasOwnProperty,O1=Object.prototype.propertyIsEnumerable,Hp=(v,K,te)=>K in v?f2(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Yc=(v,K)=>{for(var te in K||(K={}))Wp.call(K,te)&&Hp(v,te,K[te]);if(B0)for(var te of B0(K))O1.call(K,te)&&Hp(v,te,K[te]);return v},q2=(v,K)=>R0(v,kd(K)),U0=(v,K)=>{var te={};for(var me in v)Wp.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&B0)for(var me of B0(v))K.indexOf(me)<0&&O1.call(v,me)&&(te[me]=v[me]);return te},m1=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=U0(te,["size","spin","style"]);const dt=Yc(Yc({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",q2(Yc({ref:K,style:dt},yt),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M7.00098 6.5C7.55326 6.5 8.00293 6.94772 8.00293 7.5C8.00293 8.05228 7.55326 8.5 7.00098 8.5C6.44884 8.49983 6 8.05218 6 7.5C6 6.94782 6.44884 6.50017 7.00098 6.5ZM17.5 7C17.7761 7 18 7.22386 18 7.5C18 7.77614 17.7761 8 17.5 8H9.98926C9.71312 8 9.48926 7.77614 9.48926 7.5C9.48926 7.22386 9.71312 7 9.98926 7H17.5Z",fill:"#19191A"}),a.createElement("path",{d:"M7.00098 11C7.55326 11 8.00293 11.4477 8.00293 12C8.00293 12.5523 7.55326 13 7.00098 13C6.44884 12.9998 6 12.5522 6 12C6 11.4478 6.44884 11.0002 7.00098 11ZM17.5 11.5C17.7761 11.5 18 11.7239 18 12C18 12.2761 17.7761 12.5 17.5 12.5H9.98926C9.71312 12.5 9.48926 12.2761 9.48926 12C9.48926 11.7239 9.71312 11.5 9.98926 11.5H17.5Z",fill:"#19191A"}),a.createElement("path",{d:"M7.00098 15.5C7.55326 15.5 8.00293 15.9477 8.00293 16.5C8.00293 17.0523 7.55326 17.5 7.00098 17.5C6.44884 17.4998 6 17.0522 6 16.5C6 15.9478 6.44884 15.5002 7.00098 15.5ZM17.5 16C17.7761 16 18 16.2239 18 16.5C18 16.7761 17.7761 17 17.5 17H9.98926C9.71312 17 9.48926 16.7761 9.48926 16.5C9.48926 16.2239 9.71312 16 9.98926 16H17.5Z",fill:"#19191A"}))});const m0=ue.Ay.div.withConfig({displayName:"styles__StyledMeFilter",componentId:"sc-100i2m6-0"})(["&.me-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;.nav-item{margin-left:8px;&:first-child{margin-left:0;}}.right-mode-icon{cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover{background:",";}&:active{background:",";}}}"],v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active),Xc=ue.Ay.div.withConfig({displayName:"styles__StyledMeSelect",componentId:"sc-100i2m6-1"})(["width:100%;height:40px;display:flex;align-items:center;padding:0 6px;border-bottom:1px solid ",";"],v=>v.theme.color_bg_border_01),ac="local-widget-panel-me-tab-mode",xc=(0,a.memo)(v=>{let{navIndex:K,mode:te,onSetMode:me}=v;const $e=(0,k.wA)(),nt=(0,a.useMemo)(()=>[{key:"1",label:I18N.Popups.my_widgets},{key:"2",label:ENV.IS_ON_PREMISES?"\u6536\u85CF":I18N.LeftSidePanel.modals.tab.star_purchased}],[]),yt=(0,a.useCallback)(()=>{const It=te==="list"?"grid":"list";me(It),(0,at.a0)(ac,It,at.qW.String)},[te,me]),dt=(0,a.useCallback)(It=>{$e({type:"widget-panel:update:state",payload:{meNavIndex:It}})},[$e]);return(0,G.jsxs)(m0,{className:"me-filter-group",children:[(0,G.jsx)(O.Ay,{activeIndex:K,onTabChange:dt,children:nt.map(It=>{let{key:un,label:xn}=It;return(0,G.jsx)(O.nl,{label:xn},un)})}),K===1&&(0,G.jsx)(l.A,{content:te==="list"?"\u5BAB\u683C\u6A21\u5F0F":"\u5217\u8868\u6A21\u5F0F",direction:"down",distance:8,children:te==="list"?(0,G.jsx)(u0,{size:24,className:"right-mode-icon",onClick:yt}):(0,G.jsx)(m1,{size:24,className:"right-mode-icon",onClick:yt})})]})}),g2=null;var Gp=i(62987),F0=i(38382),Rc=i(40410);const f1=ue.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-18fdmk0-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.me-filter-group{flex:0 0 40px;}.custom-combo-group-panel{> header{padding-top:4px;}}.container{flex:1;width:100%;display:flex;flex-direction:column;overflow:hidden;position:relative;.widget-starbuy-scroll-list{display:flex;flex-direction:column;flex:1;overflow-x:hidden;overflow-y:overlay;width:100%;scrollbar-width:none;.widget-starbuy-scrollable-list{position:relative;min-height:100%;.me-com-entry{display:flex;flex-direction:row;align-items:center;height:60px;padding:6px;margin:8px 6px;border-radius:8px;cursor:pointer;.left{background:#f6f3ff;width:64px;height:48px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex:0 0 64px;}.right{flex:1;display:flex;flex-direction:column;margin-left:12px;span{font-size:12px;font-family:PingFang SC;color:",";}}&.dark{.left{background:#372c5c;}&:hover{.left{background:#463975;}}}&:hover{background:",";.left{background:#f0ebff;}}}.loading-container{margin-left:0;}}}}.fixed-bottom-button{width:100%;flex:0 0 40px;background-color:",";display:flex;align-items:center;justify-content:center;border-top:1px solid transparent;&.show-border{border-top:1px solid ",";}.button{width:226px;height:28px;background:",";border:1px solid ",";border-radius:6px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-size:12px;color:",";cursor:pointer;&:hover{background:",";}&:active{background:",";}svg{margin-right:4px;}}}"],v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_white,v=>v.theme.color_btn_primary_disabled,v=>v.theme.color_text_L1,v=>v.theme.color_bg_select03,v=>v.theme.color_bg_tab),y2=ue.Ay.div.withConfig({displayName:"styles__StyledResources",componentId:"sc-18fdmk0-1"})(["&.list{padding:0 6px;ul{flex-direction:column;padding:0;}}&.grid{padding:0 8px;ul{padding:0;}.chosen-title{padding-left:4px;}}.divider.show{margin:8px 0;width:100%;height:1px;background:",";}.chosen-title{width:100%;display:flex;height:32px;align-items:center;font-family:PingFang SC;font-weight:500;font-size:12px;color:",";padding-left:6px;margin-bottom:4px;}ul{display:flex;flex-wrap:wrap;padding:0 12px;}.empty-template-search-container{height:185px;.center{.pure-svg-icon{width:70px;height:70px;}span{font-size:12px;}}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1),rp=ue.Ay.li.withConfig({displayName:"styles__StyledListResourceItem",componentId:"sc-18fdmk0-2"})(["display:flex;flex-direction:row;align-items:center;position:relative;margin-bottom:8px;border-radius:8px;cursor:pointer;padding:6px;width:100%;.img-box{width:74px;height:54px;margin-right:12px;flex:0 0 74px;border-radius:8px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}.list-right{flex:1;.title{color:",";margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;max-width:145px;}.text-container{flex:1;display:flex;align-items:center;color:",";margin-top:4px;.period{width:2px;height:2px;background:",";border-radius:100%;margin:0 7px;}}}.star{display:none;border-radius:4px;align-items:center;justify-content:center;flex:0 0 24px;&:not(.isStarred):hover{background:",";}}&:hover{background:",";.star{display:flex;}.title{max-width:120px;}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_card,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L3,v=>v.theme.color_navigation_active,v=>v.theme.color_btn_secondary_hover),rc=ue.Ay.li.withConfig({displayName:"styles__StyledGridResourceItem",componentId:"sc-18fdmk0-3"})(["display:flex;flex-direction:column;align-items:center;position:relative;margin-bottom:8px;cursor:pointer;width:116px;height:112px;position:relative;border-radius:8px;padding:4px 4px 8px 4px;.img-box{width:108px;height:76px;border-radius:6px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}&:nth-child(2n + 1){margin-right:2px;}.title-container{display:flex;justify-content:space-between;align-items:center;width:100%;height:16px;margin-top:8px;.title{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;color:",";}.arrow-left{display:none;.svg-icon{width:6px;height:10px;color:",";}}}.star{display:none;border-radius:4px;align-items:center;justify-content:center;position:absolute;width:16px;height:16px;flex:0 0 16px;top:58px;right:10px;.pure-svg-icon{path{fill:",";stroke:",";}}&.isStarred{background:",";.pure-svg-icon{path{fill:",";stroke:",";}}}&:not(.isStarred){background:",";backdrop-filter:blur(4px);}}&:hover{background:",";.star{display:flex;}.arrow-left{display:block;}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_card,v=>v.theme.color_text_L2,v=>v.theme.color_text_L3,v=>v.theme.color_text_btn,v=>v.theme.color_text_btn,v=>v.theme.color_btn_primary_normal,v=>v.theme.color_text_btn,v=>v.theme.color_text_btn,v=>v.theme.color_slider_normal,v=>v.theme.color_btn_secondary_hover),fc=(0,a.memo)(v=>{const{isLoading:K,mode:te,resources:me,chosens:$e,onChangeCurrentResource:nt,onStartTemplates:yt}=v;return K?(0,G.jsx)(ad.S,{}):(0,G.jsxs)(y2,{className:te,children:[me!=null&&me.length?(0,G.jsx)("ul",{children:me.map(dt=>(0,G.jsx)(Bc,{resource:dt,mode:te,onGotoDetail:nt,onToggleStar:yt}))}):(0,G.jsx)(F0.H,{className:"center",type:"common",desc:I18N.LeftSidePanel.widgetPanel.no_star_purchased_desc}),($e==null?void 0:$e.length)>0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:E()("divider",{show:!!($e!=null&&$e.length)})}),(0,G.jsx)("span",{className:"chosen-title",children:"\u7CBE\u9009\u8D44\u6E90\u5E93"}),(0,G.jsx)("ul",{children:$e.map(dt=>(0,G.jsx)(Bc,{resource:dt,mode:te,isChosen:!0,onGotoDetail:nt,onToggleStar:yt}))})]})]})}),Bc=(0,a.memo)(v=>{const{mode:K,resource:te,isChosen:me=!1,onGotoDetail:$e,onToggleStar:nt}=v,{cid:yt,title:dt,cover:It,is_star:un,is_purchased:xn}=te,gn=K==="list",wo=(go,xo)=>{const jo=xo.querySelector(".title");return jo.offsetWidth<jo.scrollWidth},vo=(0,a.useCallback)(async go=>{go.stopPropagation(),go.preventDefault(),nt(te)},[nt,te]),Co=(0,a.useCallback)(()=>(0,G.jsxs)(rp,{onClick:()=>$e(te),children:[(0,G.jsx)("div",{className:"img-box",children:(0,G.jsx)("img",{src:It||"/mb-proto2/images/lib/lib-emtry.png"})}),(0,G.jsxs)("div",{className:"list-right",children:[(0,G.jsx)("span",{className:"title",children:dt}),me?null:(0,G.jsxs)("div",{className:"text-container",children:[xn&&(0,G.jsx)("span",{children:"\u5DF2\u8D2D"}),xn&&un&&(0,G.jsx)("span",{className:"period"}),un&&(0,G.jsx)("span",{children:"\u5DF2\u6536\u85CF"})]})]}),(0,G.jsx)(Gp.X,{isStar:un,onClick:vo})]}),[te]),Eo=(0,a.useCallback)(()=>(0,G.jsx)(Rc.A,{isStared:te.is_star,marketTemplate:te,onStarTemplates:()=>nt(te),onClickCard:()=>$e(te)}),[te]);return(0,G.jsx)(l.A,{content:dt,distance:20,direction:"down",isShowTipsByTarget:wo,children:gn?Co():Eo()},yt)});var g1=Object.defineProperty,ip=Object.defineProperties,v2=Object.getOwnPropertyDescriptors,y1=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,x2=Object.prototype.propertyIsEnumerable,Zp=(v,K,te)=>K in v?g1(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,lp=(v,K)=>{for(var te in K||(K={}))sp.call(K,te)&&Zp(v,te,K[te]);if(y1)for(var te of y1(K))x2.call(K,te)&&Zp(v,te,K[te]);return v},cp=(v,K)=>ip(v,v2(K)),R1=(v,K)=>{var te={};for(var me in v)sp.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&y1)for(var me of y1(v))K.indexOf(me)<0&&x2.call(v,me)&&(te[me]=v[me]);return te},dp=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=R1(te,["size","spin","style"]);const dt=lp(lp({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",cp(lp({ref:K,style:dt},yt),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{clipPath:"url(#clip0_1011_142)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.40203 13.653L10.5631 9.03816C11.1897 8.12335 12.6271 8.12335 13.2537 9.03816L16.4147 13.653C17.0903 14.6393 16.3277 15.9298 15.0694 15.9298H8.74735C7.48905 15.9298 6.72648 14.6393 7.40203 13.653Z",fill:"#3D7FFF"}),a.createElement("path",{d:"M9.89024 8.64044C10.8302 7.26823 12.9863 7.26823 13.9262 8.64044L14.3899 9.31786L15.2879 10.6289C15.2906 10.6193 15.2931 10.6097 15.2955 10.6L16.2563 6.78144C16.4568 5.98472 15.9241 5.18788 15.0665 5.00165L10.9563 4.10904C10.0987 3.92281 9.24105 4.4177 9.04059 5.21442L8.07981 9.03296C7.93798 9.59666 8.16317 10.1604 8.61077 10.5079L9.27629 9.53634L9.89024 8.64044Z",fill:"#FF75E8"}),a.createElement("path",{d:"M7.30368 8.55427C7.09067 9.40088 7.43003 10.2463 8.09975 10.7663L8.1793 10.828L7.82114 11.3508L6.99605 12.5554C4.96367 12.5036 3.33325 10.9566 3.33325 9.05595C3.33325 7.12253 5.0203 5.55518 7.10138 5.55518C7.42228 5.55518 7.73381 5.59244 8.03123 5.66257L7.75887 6.74506L7.30368 8.55427Z",fill:"#FFA558"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_1011_142"},a.createElement("rect",{width:"20",height:"20",fill:"white"}))))}),pp=i(25234),Nl=i(95549),Nd=i(54450);const ud=ue.Ay.div.withConfig({displayName:"styles__StyledItemThumbnailList",componentId:"sc-1qlb8ua-0"})(["height:100%;padding-top:4px;padding-left:12px;overflow-x:hidden;overflow-y:auto;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}ul{width:calc(100% + 18px);display:flex;flex-wrap:wrap;}"]);class e0 extends a.PureComponent{render(){const{groupCid:K,currentUserId:te,canEditLibrary:me,canAddToOrg:$e,selectCidSet:nt,items:yt,itemActions:dt,containerRect:It,createTemplatesData:un}=this.props;return(0,G.jsx)(ud,{className:E()("item-thumbnail-list","thumbnail-list"),children:(0,G.jsx)("ul",{children:yt.map(xn=>(0,G.jsx)(Nd.A,{canAddToOrg:$e,canEditLibrary:me,groupCid:K,item:xn,currentUserId:te,isSelect:nt.has(xn.key),containerRect:It,comboActions:dt,createTemplatesData:un},xn.key))})})}}(0,Nl.A)(e0,"defaultProps",{selectCidSet:new Set,canEditLibrary:!0});var Ds=i(39303),Xs=i(78257),Kp=i(72140),V0=i(69874);const z0=(0,ue.Ay)(Me.Ay).withConfig({displayName:"styles__StyledActionsMenu",componentId:"sc-1cwo72i-0"})(["",";"],Ze.ZJ),b2=(0,ue.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;.mb-resource-action-menu{ul{min-width:auto;width:136px;.add-sub-item > a{padding-left:16px;}}}}"]);var f0=i(39e3),W0=i(81717);const v1=(v,K)=>{if(!v)return 0;let te=K?v.assets_count:v.children?v.children.length:0;if(v.subFolder)for(const me of v.subFolder)te+=v1(me,K);return te},eu=(0,a.memo)(v=>{const{canRemove:K,position:te,isShowAddToOrg:me,level:$e,onShowMenu:nt}=v,{onEdit:yt,onTransferOrg:dt,onRemove:It,onAdd:un,onAddSub:xn}=v,gn=(0,k.d4)(J.qv),wo=xo=>{dt(xo),nt(!1)},vo=xo=>{yt(xo),nt(!1)},Co=xo=>{It(xo),nt(!1)},Eo=xo=>{xo.stopPropagation(),xn(xo),nt(!1)},go=(xo,jo)=>{xo.stopPropagation(),un(xo,jo),nt(!1)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(z0,{className:E()("mb-resource-action-menu"),position:te,children:[(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.rename,onClick:vo}),(0,G.jsxs)(Me.Dr,{text:I18N.Resources.combo_panel.add,isAiry:!0,children:[(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.subfolder,className:"add-sub-item",disabled:$e===4,onClick:Eo}),(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.add_folder_above,className:"add-sub-item",onClick:xo=>go(xo,"up")}),(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.add_folder_below,className:"add-sub-item",onClick:xo=>go(xo,"down")})]}),me&&gn&&(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.add_to_org,onClick:wo}),K&&(0,G.jsx)(Me.Dr,{text:I18N.Resources.combo_panel.delete,onClick:Co})]}),(0,G.jsx)(b2,{})]})});eu.displayName="ActionsMenu";const C2=v=>{const{source:K,isOrg:te,sceneTag:me,canRemove:$e,cgCid:nt,level:yt,isShowAddToOrg:dt,showMenu:It,projectUpperCid:un,teamCid:xn,group:gn,onShowMenu:wo,onEdit:vo,onRemove:Co,onTransferOrg:Eo,onAdd:go,onAddSub:xo}=v,{name:jo,children:pa}=gn,Ma=v1(gn,!1)>0,[Ka,Fa]=a.useState({top:0,left:0}),xr=a.useRef(null),Tr=Er=>{if(Er.stopPropagation(),wo(!It),It)return;const{top:Ya,left:Br}=xr.current.getBoundingClientRect();Fa({top:Ya+24,left:Br})},fi=Er=>{let{target:Ya}=Er;!It||!xr||Ya.closest(".resource-menu-opener."+nt)||Ya.closest(".mb-resource-action-menu")||wo(!1)},bi=Er=>{Er.stopPropagation(),Ma?(MB.action("modal:update:state",{comboUploadModal:{isOpen:!0,cgCid:nt,projectUpperCid:un,teamCid:xn,comboName:jo}}),(0,W0.d8)(jo,me)):MB.notice({type:"warning",text:I18N.Resources.combo_panel.no_combo_publish_mkt_error})};return(0,G.jsxs)(G.Fragment,{children:[K===Xs.lS.Builtin&&!te&&!ENV.IS_ON_PREMISES&&(0,G.jsx)(l.A,{content:I18N.Resources.combo_panel.publish_to_mkt,direction:"down",children:(0,G.jsx)("a",{className:"action",onClick:bi,children:(0,G.jsx)(S.C,{name:"left_panel/combo/upload"})})}),(0,G.jsx)(l.A,{content:I18N.Resources.all,direction:"down",children:(0,G.jsx)("a",{className:E()("action resource-menu-opener",nt,{"show-menu":It}),onClick:Tr,ref:xr,children:(0,G.jsx)(S.C,{name:"left_panel/combo/action_menu"})})}),It&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(eu,{position:Ka,isShowAddToOrg:dt,canRemove:$e,level:yt,onEdit:vo,onRemove:Co,onTransferOrg:Eo,onShowMenu:wo,onAdd:go,onAddSub:xo}),(0,G.jsx)(f0.A,{target:document,onMouseDown:(0,f0.t)(fi,{capture:!0})})]})]})},Ou=(0,M.Mz)([J.F2,J.H7,J.PL],(v,K,te)=>{let{scene_tag:me}=te;return{projectUpperCid:v==null?void 0:v.cid,teamCid:K==null?void 0:K.cid,sceneTag:me}}),t0=(0,k.Ng)(v=>Ou(v))((0,a.memo)(C2)),B1=v=>{const{isOrg:K,source:te,level:me,cgCid:$e,isShowAddToOrg:nt,canRemove:yt,groupAction:dt,group:It,isEditing:un,showMenu:xn,onShowMenu:gn}=v,{onTransfer:wo,onEdit:vo,onRemove:Co,onAdd:Eo,onAddSub:go}=dt,xo=(0,a.useMemo)(()=>un?"":It.cid,[un,It.cid]),jo=(0,a.useCallback)(xr=>{xr.stopPropagation(),wo(It)},[It,wo]),pa=(0,a.useCallback)(xr=>{xr.stopPropagation(),vo(xo)},[xo,vo]),na=(0,a.useCallback)(xr=>{xr.stopPropagation(),Co(It)},[It,Co]),Ma=(0,a.useCallback)((xr,Tr)=>{xr.stopPropagation(),Eo(It,Tr)},[It,Eo]),Ka=(0,a.useCallback)(xr=>{xr.stopPropagation(),go(It)},[It,go]),Fa=xr=>xr.preventDefault();return un?null:(0,G.jsx)("div",{className:"actions "+(te||""),children:ENV.IS_MO?te===Xs.lS.Builtin&&!K?(0,G.jsx)(t0,{cgCid:$e,isShowAddToOrg:nt,showMenu:xn,canRemove:yt,group:It,onShowMenu:gn,onEdit:pa,onRemove:na,onTransferOrg:jo}):(0,G.jsxs)(G.Fragment,{children:[nt?(0,G.jsx)(l.A,{content:I18N.Popups.add_to_org,direction:"down",children:(0,G.jsx)("a",{className:"action",onClick:jo,children:(0,G.jsx)(S.C,{name:"design/add_to_org"})})}):null,(0,G.jsx)("a",{className:"action",onMouseDown:Fa,onClick:pa,children:(0,G.jsx)(S.C,{name:"general/pen"})}),yt&&(0,G.jsx)("a",{className:"action",onClick:na,children:(0,G.jsx)(S.C,{name:"design/trash"})})]}):(0,G.jsx)(t0,{isOrg:K,source:te,cgCid:$e,level:me,isShowAddToOrg:nt,showMenu:xn,canRemove:yt,group:It,onShowMenu:gn,onEdit:pa,onRemove:na,onTransferOrg:jo,onAdd:(xr,Tr)=>Ma(xr,Tr),onAddSub:Ka})})},hd=(0,a.memo)(B1),U1=ue.Ay.div.withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-jkmcuu-0"})(["&.show-guide:first-child header{background:",";}header{height:32px;padding-left:10px;padding-right:10px;display:flex;align-items:center;cursor:pointer;.title{flex:1;height:20px;line-height:18px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.arrow-16{margin-right:6px;transition:transform 0.2s ease-in-out;path{stroke:",";}}.arrow-icon{flex-shrink:0;margin:0 6px 0 4px;width:6px;height:8px;text-align:center;color:",";transition:transform 0.2s ease-in-out;}.expanded-icon{width:14px;height:14px;margin-right:4px;.main{fill:",";}.secondary{fill:",";}}&:hover,&.show-menu{background:",";}}&.collapse-children > header{padding-left:12px;}&:not(.expanded) > header .arrow-16{transform:rotate(-90deg);}"],v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.sce_svg_arrow_icon_color,v=>v.theme.color_text_L3,v=>v.theme.color_text_disabled01,v=>v.theme.color_btn_secondary_hover);function Lc(v){let{isOrg:K,canEditLibrary:te,className:me,width:$e,level:nt,isEditing:yt=!1,shouldAuth:dt=!1,currentUserId:It="",isShowTransferOrg:un,children:xn,groupAction:gn,group:wo,isAsset:vo,isExpanded:Co,source:Eo,showComboUploadGuide:go,onConfirm:xo}=v;const jo=(0,a.useRef)(null),[pa,na]=a.useState(!1),Ma=Er=>{Er.stopPropagation();const{onToggle:Ya}=gn;Ya(wo)},{cid:Ka,name:Fa}=wo,xr=v1(wo,vo),{onTransfer:Tr}=gn,fi=!0,bi=Co?"design/group_open":"design/group_close";return(0,G.jsxs)(U1,{type:"asset-collapse-panel",className:E()("collapse-panel","collapse-children",me,{expanded:Co},{"show-guide":go}),"data-cid":Ka,children:[(0,G.jsxs)("header",{className:E()({"show-menu":pa}),onClick:Ma,style:{width:$e},children:[(0,G.jsx)(V.A,{className:"arrow-16",size:16}),(0,G.jsx)(S.C,{className:"expanded-icon",name:bi}),(0,G.jsx)(V0.A,{value:Fa,className:"title",isEditing:yt,onConfirm:xo},yt+Fa),!yt&&(0,G.jsx)("span",{className:E()("count",{"is-always-show":!te}),children:xr}),te&&(0,G.jsx)(hd,{isOrg:K,source:Eo,level:nt,cgCid:Ka,isEditing:yt,isShowAddToOrg:Tr&&un,canRemove:fi,group:wo,groupAction:gn,showMenu:pa,onShowMenu:na})]}),(0,G.jsx)(Kp.A,{collapse:!Co,children:xn})]})}const H0=(0,ue.Ay)(Lc).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-71qotj-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}&.show-guide:first-child header{.expanded-icon .main{fill:",";}.actions{display:block;background:",";color:",";}.count{display:none;}}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;column-gap:4px;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover,&.show-menu{background-color:",";}}}&:hover,&.show-menu{.expanded-icon .main{fill:",";}.title{width:","px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}.item-thumbnail-list.thumbnail-list{ul{li.thumbnail-list-item{.item-name{text-align:left;padding:0 6px;}}}}"],v=>12+(v.level-1)*8,v=>v.theme.color_proto,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_proto,v=>v.theme.color_text_L3,v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_proto,v=>v.isOrg?185:165,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_proto);class G0 extends a.PureComponent{constructor(K){super(K),(0,Nl.A)(this,"handleConfirm",te=>{const{comboGroupAction:{onConfirm:me},comboGroup:$e}=this.props;me(te,$e,()=>{this.isNewGroup&&MB.notice({text:I18N.Popups.folder_save_success}),this.isNewGroup=!1})}),(0,Nl.A)(this,"renderSubFolders",te=>{const{isOrg:me,isEditing:$e,canEditLibrary:nt,canAddToOrg:yt,editingCid:dt,width:It,level:un,containerRect:xn,comboActions:gn,comboGroupAction:wo,isShowTransferOrg:vo,currentUserId:Co,comboOpenCids:Eo,showComboUploadGuide:go,createTemplatesData:xo}=this.props;return te.map(jo=>(0,G.jsx)(G0,{isOrg:me,canEditLibrary:!me||nt,canAddToOrg:yt,comboGroup:jo,isEditing:dt===jo.cid,editingCid:dt,width:It,level:un+1,containerRect:xn,comboActions:gn,comboGroupAction:wo,isShowTransferOrg:vo,currentUserId:Co,comboOpenCids:Eo,showComboUploadGuide:go,createTemplatesData:xo},jo.cid))}),this.isNewGroup=!1}componentDidMount(){this.props.isEditing&&(this.isNewGroup=!0)}render(){const{isOrg:K,canEditLibrary:te,canAddToOrg:me,comboGroup:$e,isEditing:nt,editingCid:yt,width:dt,level:It,containerRect:un,comboActions:xn,comboGroupAction:gn,isShowTransferOrg:wo,currentUserId:vo,comboOpenCids:Co,showComboUploadGuide:Eo,createTemplatesData:go}=this.props,{cid:xo,children:jo,subFolder:pa}=$e,na=Co.includes(xo);let Ma;const Ka=jo,Fa=!!(jo!=null&&jo.length);return(0,G.jsx)(H0,{isOrg:K,canEditLibrary:te,source:Xs.lS.Builtin,"data-cid":xo,className:"combo-group-panel",group:$e,isExpanded:na,width:dt,level:It,isEditing:nt,editingCid:yt,currentUserId:vo,isShowTransferOrg:wo,groupAction:gn,showComboUploadGuide:Eo,onConfirm:this.handleConfirm,children:(0,G.jsxs)(G.Fragment,{children:[Ma?(0,G.jsx)(Ds.A,{className:"collapse-loading"}):null,Fa?(0,G.jsx)(e0,{groupCid:xo,canEditLibrary:te,canAddToOrg:me,items:Ka,currentUserId:vo,containerRect:na?un:null,itemActions:xn,createTemplatesData:go}):null,pa&&this.renderSubFolders(pa)]})})}}(0,Nl.A)(G0,"defaultProps",{level:1});const up=ue.Ay.div.withConfig({displayName:"StyledNoComboGroups",componentId:"sc-3xhtxy-0"})(["padding:0 12px;display:flex;align-items:center;justify-content:center;img{width:48px;height:48px;margin-right:11px;}p{color:",";a{color:",";&:hover{color:",";}}}"],v=>v.theme.color_text_L3,v=>v.theme.color_text_link_normal,v=>v.theme.color_text_link_hover),tl=(0,ue.Ay)(od.o).withConfig({displayName:"StyledCustomizeList",componentId:"sc-txzsf6-0"})(["&.active{box-shadow:inset 0 0 0 3px rgba(41,141,248,0.6);}.thumbnail-list{height:unset;padding-top:8px;}"]);var F1=i(51007),tu=i(43371),nu=i(27508),ou=i(76431);const cc=(0,a.memo)(v=>{const{isOrg:K,comboGroupList:te,rootProject:me,editingCid:$e,canEditLibrary:nt,canAddToOrg:yt,currentOrg:dt,currentUser:It,comboOpenCids:un,isShowUpgradeButton:xn,showComboUploadGuide:gn,createTemplatesData:wo,onScroll:vo}=v,Co=(0,a.useRef)(null),Eo=(0,k.wA)();return(0,a.useEffect)(()=>{!K&&(0,ou.K)(I18N)[Vt.c.GUIDE_PUBLISH_COMBO_TO_MKT].howToShow({sceneTag:me.scene_tag,hasComboFolder:!!te&&te.length>0})},[]),(0,G.jsx)(F1.Z,{id:"group-list-container",isShowUpgradeButton:xn,children:(0,G.jsx)("div",{className:E()("group-main",Vt.c.GUIDE_PUBLISH_COMBO_TO_MKT),children:(0,G.jsx)(tl,{id:"group-list",show:!0,type:"main",style:{width:Ts.qv},ref:Co,onScrollChange:vo,children:(go,xo)=>(0,G.jsx)(G.Fragment,{children:te.length?te.map(jo=>(0,G.jsx)(G0,{isOrg:K,canEditLibrary:nt,canAddToOrg:yt,level:jo.level+1,comboGroup:jo,comboOpenCids:un,width:Ts.qv,isEditing:$e===jo.cid,editingCid:$e,containerRect:xo?go:null,comboActions:(0,tu.s)({...v,dispatch:Eo,group:jo,popupsName:Xs.lS.Builtin}),comboGroupAction:(0,nu.H)({...v,dispatch:Eo,popupsName:Xs.lS.Builtin}),isShowTransferOrg:!!dt,currentUserId:It==null?void 0:It.id,showComboUploadGuide:gn,createTemplatesData:wo},jo.cid)):(0,G.jsx)(au,{isOrg:K})})})})})}),au=v=>{let{isOrg:K}=v;return(0,G.jsxs)(up,{children:[(0,G.jsx)("img",{src:"/mb-workspace/images/workspace/design/empty_self_make.png",alt:""}),(0,G.jsx)("p",{children:K?I18N.Resources.ComboPanel.noOrgCombo:I18N.Resources.ComboPanel.noUserCombo})]})},w2=cc;var hp=i(54190),mp=i(83413);const V1=ue.Ay.div.withConfig({displayName:"styles__StyledCustomComboGroupPanel",componentId:"sc-mpecqb-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{display:flex;align-items:center;padding:16px 12px;.box-item{border:1px solid ",";background:",";color:",";p{margin-left:0;}&.disabled{color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}"],v=>v.theme.color_bg_border_02,v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.color_text_disabled01,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active),n0=ue.Ay.div.withConfig({displayName:"styles__StyledCustomComboPanel",componentId:"sc-mpecqb-1"})(["display:flex;flex:1;overflow:hidden;.upgrade-combo{width:100%;height:40px;background-color:",";display:flex;align-items:center;justify-content:center;position:absolute;bottom:0;left:0;border-top:1px solid transparent;&.show-border{border-top:1px solid ",";}.button-root{width:226px;height:28px;}}"],v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_02),Yp=(0,M.Mz)([C.tl,J.wA,J.qv,C.tY,J.X_,J.Pz,J.PL,J.HW,q.PI,q.k3,C.wS,C.lb,C.MV,C.bg,Y.r,J.F2,J._x,C.L,C.G6,C.TD,C.WF,J.H7,C.wY,J.YY],(v,K,te,me,$e,nt,yt,dt,It,un,xn,gn,wo,vo,Co,Eo,go,xo,jo,pa,na,Ma,Ka,Fa)=>({userComboGroupList:xn,orgComboGroupList:gn,editingCid:v,currentOrg:K,canEditLibrary:te,collapsePanelSet:me,scale:$e,canvasRect:nt,rootProject:yt,currentUser:dt,showDragMode:It,isAdsorbentReferenceLine:un,localUserComboOpenCids:wo,localOrgComboOpenCids:vo,currentEditMode:Co,projectUpperCid:Eo==null?void 0:Eo.cid,userFcg:Eo,orgFcg:go,upgradeUserComboGroupList:xo,upgradeOrgComboGroupList:jo,isRequestV7UserComboGroup:pa,isRequestV7OrgComboGroup:na,teamCid:Ma==null?void 0:Ma.cid,showComboUploadGuide:Ka,createTemplatesData:Fa})),fp=(0,a.memo)(v=>{let{isOrg:K}=v;const te=(0,k.d4)(Yp),[me,$e]=(0,a.useState)(!1),{isLoading:nt,initComboSdkStore:yt}=(0,mp.x)(),dt=(0,k.wA)(),{canEditLibrary:It,userComboGroupList:un,orgComboGroupList:xn,localUserComboOpenCids:gn,localOrgComboOpenCids:wo,projectUpperCid:vo,upgradeUserComboGroupList:Co,upgradeOrgComboGroupList:Eo,...go}=te,xo=K&&Eo.length!==0||!K&&Co.length!==0,jo=async()=>{const{currentUser:Ma,currentOrg:Ka,isRequestV7UserComboGroup:Fa,isRequestV7OrgComboGroup:xr}=te;if(Ma!=null&&Ma.id){if(K){if(Ka!=null&&Ka.cid&&!xr){const{orgComboGroupList:fi}=await(0,hp.bX)({orgCid:Ka.cid}),bi=fi.sort((Er,Ya)=>Er.position-Ya.position);MB.action("entry:upgrade:org:combo:group:list",{upgradeOrgComboGroupList:bi||[]})}}else if(!Fa){const{userComboGroupList:fi}=await(0,hp.qi)(),bi=fi.sort((Er,Ya)=>Er.position-Ya.position);MB.action("entry:upgrade:user:combo:group:list",{upgradeUserComboGroupList:bi||[]})}}},pa=()=>{const{currentUser:Ma,userFcg:Ka,orgFcg:Fa,orgComboGroupList:xr,userComboGroupList:Tr,upgradeUserComboGroupList:fi,upgradeOrgComboGroupList:bi}=te;dt({type:"modal:update:state",payload:{upgradeComboModal:{isOpen:!0,currentComboPanel:K?"org":"user",comboGroupList:K?xr:Tr,upgradeComboGroupList:K?bi:fi,userFcg:Ka,orgFcg:Fa,userId:Ma==null?void 0:Ma.id}}})};(0,a.useEffect)(()=>{(async()=>{await yt(K),await jo()})()},[]);const na=Ma=>{var Ka;$e(((Ka=Ma.target)==null?void 0:Ka.scrollTop)>0)};return nt?(0,G.jsx)(ad.S,{className:"margin-top-120"}):(0,G.jsxs)(n0,{children:[(0,G.jsx)(w2,{isOrg:K,canEditLibrary:!K||It,canAddToOrg:It,comboGroupList:K?xn:un,comboOpenCids:K?wo:gn,projectUpperCid:K?"":vo,isShowUpgradeButton:(!K||It)&&xo,...go,onScroll:na}),(!K||It)&&xo&&(0,G.jsx)("div",{className:E()("upgrade-combo",{"show-border":me}),onClick:pa,children:(0,G.jsx)(pp.Oc,{type:"secondary",size:"tiny",corner:"soft",children:I18N.Resources.import_old_widgets})})]})});var gp=i(5288),Kd=i(47163);const Xp=ue.Ay.div.withConfig({displayName:"styles__StyledTabResourcesOptionBox",componentId:"sc-17ufrg5-0"})(["width:100%;display:flex;flex-shrink:0;align-items:center;cursor:pointer;.new-picture{margin-left:14px;}.box-item{height:28px;background:",";color:",";border-radius:6px;display:flex;flex:1;flex-shrink:0;align-items:center;justify-content:center;&.disabled{cursor:not-allowed;color:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}&:not(.disabled):hover{background:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}p{margin-left:2px;}}"],v=>v.theme.color_bg_card,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L3,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1),Qp=ue.Ay.div.withConfig({displayName:"styles__StyledIconResourcesOptionBox",componentId:"sc-17ufrg5-1"})(["display:flex;align-items:center;.container{&:first-child{margin-right:8px;}}"]),S2=ue.Ay.div.withConfig({displayName:"styles__StyledIconPark",componentId:"sc-17ufrg5-2"})(["width:","px;height:","px;display:flex;align-items:center;justify-content:center;&.add{svg.svg-icon{width:10px;height:10px;}}&.add-folder{svg.svg-icon{width:13px;height:12px;}}&.upload-image{svg.svg-icon{width:8px;height:10px;path{stroke:",";}}}&.disabled{cursor:not-allowed;color:",";}&:not(.disabled).icon-container{border-radius:4px;cursor:pointer;transition:all 0.2s ease-in-out;&:active{background-color:",";}&:not(:active):hover{background-color:",";}}"],v=>v.width||16,v=>v.width||16,v=>v.theme.color_text_L2,v=>v.theme.color_text_L3,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_btn_secondary_active);class ru extends a.PureComponent{constructor(){super(...arguments),(0,Nl.A)(this,"handleAddToNewWeights",()=>{const{canCreateCombo:K,isOrg:te,dispatch:me}=this.props;K&&me({type:"entry:check:combo:auto:to:user:org:group",payload:{isOrg:te}})}),(0,Nl.A)(this,"handleAddToNewAssets",()=>{const{dispatch:K,isOrg:te}=this.props;K({type:"entry:check:asset:auto:to:user:org:group",payload:{isOrg:te}})}),(0,Nl.A)(this,"handleCreateGroup",()=>{const{isOrg:K,isImage:te,collapsePanelSet:me,dispatch:$e}=this.props;$e(te?{type:"entry:auto:create:asset-group",payload:{isOrg:K}}:{type:"entry:auto:create:combo-group",payload:{isOrg:K}});const nt=new Set(me),yt=te?K?gp.eA:gp.Hj:K?gp.iT:gp.fO;nt.add(yt),$e({type:"resources:update:collapsePanelSet",payload:{collapsePanelSet:nt}})})}render(){const{canCreateCombo:K,hasSelectedTree:te,isPureIcon:me,isStar:$e,isImage:nt,isOrg:yt,canEditLibrary:dt,onGotoFind:It}=this.props,un=nt?"":te?K&&me?I18N.Popups.new_weights:"":I18N.Resources.userResources.selectedElement;return(0,G.jsx)(G.Fragment,{children:me?$e?(0,Kd.k)()?(0,G.jsx)(l.A,{content:I18N.Popups.findMore,direction:"down",children:(0,G.jsx)("div",{className:"container",children:(0,G.jsx)(md,{name:"panel/add",className:"add icon-container",width:24,onClick:It})})}):null:(0,G.jsx)(iu,{comboTips:un,canCreateCombo:K,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup}):(0,G.jsx)(z1,{comboTips:un,canCreateCombo:K,isOrg:yt,canEditLibrary:dt,isImage:nt,onAddToNewAssets:this.handleAddToNewAssets,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup})})}}const iu=(0,a.memo)(v=>{let{comboTips:K,canCreateCombo:te,onAddToNewWeights:me,onCreateGroup:$e}=v;return(0,G.jsxs)(Qp,{children:[(0,G.jsx)(l.A,{content:K,direction:"down",children:(0,G.jsx)("div",{className:"container",children:(0,G.jsx)(md,{name:"panel/add",className:E()("add","icon-container",{disabled:!te}),width:24,onClick:me})})}),(0,G.jsx)(l.A,{content:I18N.Popups.new_folder,direction:"down",children:(0,G.jsx)("div",{className:"container",children:(0,G.jsx)(md,{name:"common/add/folder",className:"add-folder icon-container",width:24,onClick:$e})})})]})}),z1=(0,a.memo)(v=>{let{comboTips:K,canCreateCombo:te,isImage:me,isOrg:$e,canEditLibrary:nt,onAddToNewWeights:yt,onAddToNewAssets:dt,onCreateGroup:It}=v;const un=$e&&!nt||!me&&!te,xn=$e&&!nt;return(0,G.jsxs)(Xp,{children:[(0,G.jsx)(l.A,{maxWidth:"236px",content:$e?nt?K:I18N.pComment.no_permission_contact_administrator:K,direction:"down",children:(0,G.jsxs)("div",{className:E()("box-item",{disabled:un}),onClick:un?void 0:me?dt:yt,children:[(0,G.jsx)(md,{name:me?"art_board/upload/image":"panel/add",className:me?"upload-image":"add",width:24}),(0,G.jsx)("p",{children:me?I18N.LibraryContainer.add_image:I18N.Popups.new_weights})]})}),(0,G.jsx)(l.A,{content:xn?I18N.pComment.no_permission_contact_administrator:"",direction:"down",maxWidth:"236px",style:{padding:"12px 16px"},children:(0,G.jsxs)("div",{className:E()("new-picture box-item",{disabled:xn}),onClick:xn?void 0:It,children:[(0,G.jsx)(md,{name:"common/add/folder",className:"add-folder",width:24}),(0,G.jsx)("p",{children:I18N.Popups.new_folder})]})})]})}),md=(0,a.memo)(v=>{let{className:K,name:te,width:me,onClick:$e}=v;return(0,G.jsx)(S2,{className:K,width:me,onClick:$e,children:(0,G.jsx)(S.C,{name:te})})});var rd=i(4235),Jp=i(59025);const W1=(0,a.memo)(v=>{const{isOrg:K}=v,te=(0,k.wA)(),me=(0,k.d4)(rd.nE),$e=me.length>0,nt=!!((0,Jp.ju)(me)&&!(0,Jp.vZ)(me)),yt=(0,k.d4)(C.tY),dt=(0,k.d4)(J.qv);return(0,G.jsxs)(V1,{className:"custom-combo-group-panel",children:[(0,G.jsx)("header",{children:(0,G.jsx)(ru,{isOrg:!!K,hasSelectedTree:$e,canCreateCombo:nt,collapsePanelSet:yt,isPureIcon:!1,isStar:!1,canEditLibrary:dt,dispatch:te})}),(0,G.jsx)(fp,{isOrg:!!K})]})}),su=(0,a.memo)(v=>{const{isLoading:K,resources:te,chosens:me,onChangeCurrentResource:$e,onStartTemplates:nt}=v,[yt,dt]=(0,a.useState)((0,at.Yt)(ac,"grid",at.qW.String)),It=(0,a.useRef)(null),un=(0,k.d4)(C.dR),[xn,gn]=(0,a.useState)(!1),wo=(0,k.wA)(),vo=Eo=>{var go;gn(((go=Eo.target)==null?void 0:go.scrollTop)>0)},Co=(0,a.useCallback)(()=>{wo({type:"modal:update:state",payload:{widgetModal:{isOpen:!0,source:Jl.l.ComponentLibrary}}})},[wo]);return(0,G.jsxs)(f1,{children:[(0,G.jsx)(xc,{navIndex:un,mode:yt,onSetMode:dt}),un===0&&(0,G.jsx)(W1,{}),un===1&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"container",children:(0,G.jsxs)("div",{className:"widget-starbuy-scroll-list",ref:It,onScroll:vo,children:[(0,G.jsx)(od.A,{className:"widget-starbuy-scrollable-list",children:Eo=>(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(fc,{isLoading:K,mode:yt,resources:te,chosens:me,onChangeCurrentResource:$e,onStartTemplates:nt})})}),It&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:It,isAutoHideBar:!0})]})}),!ENV.IS_ON_PREMISES&&(0,G.jsx)("div",{className:E()("fixed-bottom-button",{"show-border":xn}),children:(0,G.jsxs)("div",{className:"button",onClick:Co,children:[(0,G.jsx)(dp,{size:20}),I18N.LeftSidePanel.widgetPanel.more_selected_component_libraries]})})]})]})}),H1=["mtk6lnxh00wgcu8u","mtk6rlt9u4p7hmtf","mtk6lnewpp7b5x00","mtki03rbk1qwhipm","mtk7mtq58izz3teo"],lu=["mtk6lnxh00wgcu8u","mtm1eo13xsfdpjtu","mtk6rlt9u4p7hmtf","mtk6rmq9a5jc4q79","mtk4s6tmmqedt3o3","mtki03rbk1qwhipm"],qp=()=>{const v=window.location.hostname;return v.includes("modao.cc")?lu:v.includes("d2test.dev2")?H1:[]},yp=(0,a.memo)(()=>{const v=(0,k.d4)(C.w2),[K,te]=(0,a.useState)(!0),[me,$e]=(0,a.useState)(!1),[nt,yt]=(0,a.useState)([]),[dt,It]=(0,a.useState)(null),un=(0,k.d4)(q.rk),xn=(0,k.d4)(C.fK),gn=(0,k.wA)(),wo=(0,a.useMemo)(()=>qp(),[]),vo=(0,a.useMemo)(()=>wo.map(na=>{const Ma=xn.get(na);if(Ma&&!(Ma!=null&&Ma.is_star))return Ma}).filter(na=>!!na),[xn]);(0,a.useEffect)(()=>{(async()=>{if(me)return;te(!0);const Ma=await(0,Pl.YC)(Ga.t_,un);await gn({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:wo}}),yt(Ma),te(!1),$e(!0)})()},[me]),(0,a.useEffect)(()=>{if(!(nt!=null&&nt.length))return;const na=nt.find(Ma=>Ma.cid===v);na!=null&&na.cid&&It(na)},[v,nt,It]);const Co=(0,a.useCallback)(async(na,Ma)=>{const{cid:Ka}=na,Fa=await(0,Pl.YC)(Ga.t_,un);if(yt(Fa),(dt==null?void 0:dt.cid)===Ka&&It(Ma(dt)),wo.includes(Ka)){const xr=new Map;xr.set(Ka,Ma(na)),gn({type:"resources:set:resources_map",payload:{mtResourcesMap:xr}})}},[un,yt,dt,It,gn]),Eo=(0,a.useCallback)(async na=>{if(!na)return;const{is_star:Ma,cid:Ka}=na,Fa=xr=>({...xr,is_star:!na.is_star,star_count:na.is_star?(na.star_count||1)-1:(na.star_count||0)+1});await(0,Sl.lU)(Ma,Ka),await Co(na,Fa)},[Co]),go=(0,a.useCallback)(()=>{It(null),gn({type:"widget-panel:update:state",payload:{currentStarResourcesCid:""}})},[gn]),xo=na=>{gn({type:"entry:resources:update:find:data",payload:{cid:na.cid,category:Ga.t_}})},jo=(0,a.useCallback)(async()=>{const na=Ma=>({...Ma,is_purchased:!0});dt&&dt.cid&&(await Co(dt,na),xo(dt))},[Co,xo]),pa=(0,a.useCallback)(na=>{It(na)},[]);return dt!=null&&dt.cid?(0,G.jsx)(Ql.A,{className:"me-resources-detail-panel",currentResources:dt,onStarTemplates:Eo,onPaidTemplates:jo,onBack:go}):(0,G.jsx)(su,{isLoading:K,resources:nt,chosens:vo,onChangeCurrentResource:pa,onStartTemplates:Eo})});var Yd=i(40610),Z0=i(4410),Fl=i(78161),jd=i(73298),fd=i(69623);const vp=ue.Ay.div.withConfig({displayName:"style__StyledCopyPromptIcon",componentId:"sc-jf92za-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]),$p=ue.Ay.div.withConfig({displayName:"style__StyledTooltipChildren",componentId:"sc-jf92za-1"})(["padding:12px 16px 12px 16px;color:rgba(255,255,255,1);font-size:12px;line-height:20px;font-weight:400;.title{font-weight:500;margin-bottom:4px;}.copy-btn{color:rgba(128,188,255,1);&:hover{color:rgba(166,210,255,1);}}"]),M2=(0,ue.DU)([".tooltip-with-hover{position:absolute;left:0;top:0;z-index:1;width:250px;height:auto;background-color:rgba(69,70,71,1);box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05);box-shadow:0px 6px 16px 0px rgba(0,0,0,0.08);box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:6px;.arrow{position:absolute;width:12px;height:7px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}}"]),K0=a.memo(v=>{let{className:K,prompt:te,onToggleHover:me}=v;const[$e,nt]=(0,a.useState)(!1),yt=(0,a.useRef)(null),dt=(0,a.useRef)(null),It=vo=>{nt(vo),me(vo)},un=vo=>{vo.buttons===0&&(clearTimeout(yt.current),It(!0))},xn=()=>{yt.current=setTimeout(()=>{It(!1)},200)},gn=vo=>{const{height:Co}=vo.current.getBoundingClientRect();Co>255&&(vo.current.style.width="350px")},wo=(0,a.useMemo)(()=>(0,G.jsxs)($p,{children:[(0,G.jsx)("div",{className:"title",children:"\u63D0\u793A\u8BCD"}),(0,G.jsx)("div",{className:"prompt",children:te})]}),[te]);return(0,G.jsxs)(vp,{className:K,children:[(0,G.jsx)("div",{className:"svgContainer",onMouseEnter:un,onMouseLeave:xn,ref:dt,children:(0,G.jsx)(S.C,{name:"design/view/prompt"})}),$e&&(0,G.jsx)(x1,{setTooltipSize:gn,tooltipChildren:wo,targetNode:dt.current,handMouseEnter:un,handMouseLeave:xn})]})}),k2=12,E2=7,I2=10,x1=v=>{let{setTooltipSize:K,tooltipChildren:te,targetNode:me,handMouseEnter:$e,handMouseLeave:nt}=v;const yt=(0,a.useRef)(null),[dt,It]=(0,a.useState)({});(0,a.useEffect)(()=>{yt.current&&K&&K(yt)},[K,yt]),(0,a.useEffect)(()=>{It((()=>{if(!me||!yt.current)return;const{left:Co,top:Eo,width:go,height:xo}=me.getBoundingClientRect(),{offsetWidth:jo,offsetHeight:pa}=yt.current,na=Co+go/2,Ma=Eo+xo,Ka=()=>{let Er=na-jo/2;Er<0&&(Er=0),Er+jo>window.innerWidth&&(Er=window.innerWidth-jo);let Ya=Ma+I2;return Ya+pa>window.innerHeight&&(Ya=Eo-pa-I2),{tooltipLeft:Er,tooltipTop:Ya}},Fa=(Er,Ya)=>{const Br=Co-Er+go/2-k2/2;return Ya<Eo?{position:{left:Br+"px",top:"100%"},className:"bottom"}:{position:{left:Br+"px",top:-E2+"px"},className:"top"}},{tooltipLeft:xr,tooltipTop:Tr}=Ka(),{position:fi,className:bi}=Fa(xr,Tr);return{tooltipPosition:{left:xr+"px",top:Tr+"px"},arrowPosition:fi,arrowClassName:bi}})())},[me,yt]);const un=vo=>{vo.stopPropagation()},{tooltipPosition:xn,arrowPosition:gn,arrowClassName:wo}=dt;return me===null?null:(0,fd.createPortal)((0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:"tooltip-with-hover",ref:yt,style:xn,onMouseEnter:$e,onMouseLeave:nt,onMouseDown:un,children:[te,(0,G.jsx)(S.C,{className:"arrow "+wo,style:gn,name:"design/view/prompt/arrow",isColorPure:!0})]}),(0,G.jsx)(M2,{})]}),document.body)};var e2=i(4179);const T2=ue.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoList",componentId:"sc-1p4ymf5-0"})(["height:100%;display:flex;flex-direction:column;.demo-list-title{height:32px;min-height:32px;margin:0 12px 8px 12px;display:flex;align-items:center;font-weight:500;font-size:12px;color:",";}.demo-list-container{padding:0 12px;overflow-y:auto;flex:1;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}}.list-wrap{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;.ai-widget-item{&.active{opacity:0.5;}}}"],v=>v.theme.color_text_L1),C0=ue.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoItem",componentId:"sc-1p4ymf5-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.img-container{width:109px;height:109px;display:flex;justify-content:center;align-items:center;border-radius:6px;overflow:hidden;border:1px solid ",";position:relative;background-color:",";img{max-width:100%;max-height:100%;pointer-events:none;}.preview-icon,.copy-prompt-icon{position:absolute;bottom:6px;opacity:0;z-index:1;}.copy-prompt-icon{right:28px;}.preview-icon{right:6px;}&:hover,&.is-hover{background:",";.preview-icon,.copy-prompt-icon{opacity:1;}}}.demo-title{margin-top:4px;color:",";}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_card,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L3),b1=(0,a.memo)(v=>{let{className:K}=v;const te=(0,k.d4)(J.X_),me=(0,k.d4)(J.Pz),$e=(0,k.d4)(P.B8),nt=(0,k.d4)(J.L8),yt=!0,dt=!0,It=(0,k.wA)(),[un,xn]=(0,a.useState)(null),gn=(jo,pa)=>{var na;const Ma=(na=document.getElementById($e))==null?void 0:na.getBoundingClientRect(),Ka=(0,Yd.yC)()[pa];(0,Z0.ow)({e:jo,template:Ka,doNotCreateRect:Ma,canvasRect:me,scale:te,showDragMode:yt,isAdsorbentReferenceLine:dt,callback:()=>{xn(null),jd.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,jd.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})},onMouseMove:()=>{xn(pa)}})},wo=(0,a.useCallback)(async(jo,pa)=>{const na=(0,Yd.yC)()[pa];await(0,Z0.lc)(jo,na),jd.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,jd.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})},[]),vo=(0,a.useCallback)(async(jo,pa)=>{if(Co!=null&&Co.current){xn(null);return}const na=(0,Yd.yC)()[pa];if(na!=null&&na.data){if(nt===(na==null?void 0:na.data)){It({type:"set:quick-create-widget",payload:{widget:null}});return}It({type:"set:quick-create-widget",payload:{widget:null,quickCreateBuiltinSceneData:na==null?void 0:na.data}})}},[nt,It]),{isMoveAfterClick:Co,handleMouseDown:Eo,handleClick:go,handleDoubleClick:xo}=(0,e2.A)({onMouseDown:(jo,pa)=>gn(jo,pa),onClick:(jo,pa)=>vo(jo,pa),onDoubleClick:(jo,pa)=>wo(jo,pa)});return(0,G.jsxs)(T2,{className:K,children:[(0,G.jsx)("div",{className:"demo-list-title",children:"\u7EC4\u4EF6\u751F\u6210\u6848\u4F8B"}),(0,G.jsx)("div",{className:"demo-list-container",children:(0,G.jsx)("div",{className:"list-wrap",children:(0,Yd.yC)().map((jo,pa)=>{let{prompt:na,imgUrl:Ma,name:Ka,data:Fa}=jo;return(0,G.jsx)("div",{className:E()("ai-widget-item",{active:nt===Fa||un===pa}),onClick:xr=>go(xr,pa),onDoubleClick:xr=>xo(xr,pa),onMouseDown:xr=>Eo(xr,pa),children:(0,G.jsx)(C1,{prompt:na,imgUrl:Ma,name:Ka})},pa)})})})]})}),C1=v=>{let{imgUrl:K,name:te,prompt:me}=v;const[$e,nt]=(0,a.useState)(!1),yt=dt=>{nt(dt)};return(0,G.jsxs)(C0,{children:[(0,G.jsxs)("div",{className:"img-container "+($e?"is-hover":""),children:[(0,G.jsx)("img",{src:K,alt:""}),(0,G.jsx)("span",{className:"frame"}),(0,G.jsx)(K0,{className:"copy-prompt-icon",prompt:me,onToggleHover:yt}),(0,G.jsx)(Fl.Y,{className:"preview-icon",getImgSrc:()=>K,onToggleHover:yt})]}),(0,G.jsx)("span",{className:"demo-title",children:te})]})};var xp=i(23744);const w1=ue.Ay.div.withConfig({displayName:"styles__StylesAIComponentListItem",componentId:"sc-1v5zp2r-0"})(["position:relative;width:100%;height:74px;margin-top:10px;.item-content{width:100%;height:100%;background:",";box-shadow:0px 2px 12px rgba(3,3,3,0.06);border-radius:8px;display:flex;align-items:start;padding:12px;cursor:pointer;transition:0.2s;&:hover{transform:translateY(-4px);box-shadow:0px 2px 14px rgba(3,3,3,0.12);}.item-left{width:32px;height:32px;display:flex;align-items:center;border-radius:8px;margin-right:12px;justify-content:center;svg{width:32px;height:32px;}&.ai-page{background:",";}&.ai-component{background:",";svg{stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}&.ai-flow{background:",";svg{path{fill:",";}}}&.ai-mind{background:",";svg{path{fill:",";}}}&.ai-table{background:",";svg{path{fill:",";}}}&.ai-chart{background:",";svg{path{fill:",";}}}&.ai-magic-fill{background:",";svg{path{fill:",";}}}}.item-right{width:calc(100% - 44px);.item-title{display:flex;justify-content:space-between;align-items:center;font-weight:500;font-size:12px;line-height:17px;color:",";.title-container{height:20px;display:flex;align-items:center;}svg.item-arrow{width:14px;height:14px;path{fill:rgba(0,0,0,0);stroke:",";}}svg.icon-beta{width:40px;height:20px;margin-left:4px;}}.item-des{margin-top:2px;font-weight:400;font-size:12px;line-height:17px;color:",";position:relative;text-align:justify;margin-right:2px;.help-des{color:",";position:absolute;right:0;bottom:0;&:hover{color:",";}}}}}"],v=>v.theme.color_background_white_modal,v=>v.theme.comment_active,v=>v.theme.color_background_AI_component,v=>v.theme.color_AI_component_stop_color_1,v=>v.theme.color_AI_component_stop_color_2,v=>v.theme.color_background_AI_flow,v=>v.theme.color_AI_flow_path,v=>v.theme.color_background_AI_mind,v=>v.theme.color_AI_mind_path,v=>v.theme.color_background_AI_table,v=>v.theme.color_AI_table_path,v=>v.theme.color_background_AI_chart,v=>v.theme.color_AI_chart_path,v=>v.theme.color_background_AI_magin_fill,v=>v.theme.color_AI_magic_fill_path,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1,v=>v.theme.color_text_L2,v=>v.theme.color_text_link_normal,v=>v.theme.color_text_link_hover);class G1 extends a.PureComponent{constructor(){super(...arguments),(0,Nl.A)(this,"handleSelectAIComponent",()=>{const{onSelect:K,item:te}=this.props;te.source="\u5DE6\u4FA7AI\u5165\u53E3",K(te)}),(0,Nl.A)(this,"handleJumpToHelp",K=>{K.stopPropagation();const{item:{helpUrl:te}}=this.props;te&&window.open(te)})}render(){const{item:{icon:K,title:te,desc:me,className:$e,componentTitle:nt,isShowBeta:yt,helpUrl:dt}}=this.props;return(0,G.jsx)(w1,{className:"item-content-container",onClick:this.handleSelectAIComponent,children:(0,G.jsxs)("div",{className:"item-content",children:[(0,G.jsx)("div",{className:E()("item-left",$e),children:(0,G.jsx)(xp.C,{name:K,isColorPure:!0})}),(0,G.jsxs)("div",{className:"item-right",children:[(0,G.jsxs)("div",{className:"item-title",children:[(0,G.jsxs)("div",{className:"title-container",children:[nt||te,yt&&(0,G.jsx)(xp.C,{className:"icon-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,G.jsx)(xp.C,{className:"item-arrow",name:"chatGPT/ai-component-item-arror"})]}),(0,G.jsxs)("div",{className:"item-des",children:[me,dt&&(0,G.jsx)("a",{className:"help-des",onClick:this.handleJumpToHelp,target:"__brank",children:I18N.ChatGPT.view_help})]})]})]})})}}const id=(0,k.Ng)()(G1);var w0=i(49612);const o0=v=>{let{aiOpenTrackSource:K,aiFunctionTrackSource:te}=v;const me=(0,k.wA)(),$e={title:"AI\u751F\u6210\u7EC4\u4EF6",type:w0.SR.Component,points:200,aiType:"AI\u751F\u6210\u7EC4\u4EF6",source:"",icon:"chatGPT/ai-component-component",desc:I18N.ChatGPT.ai_component_desc,className:"ai-component",isShowBeta:!0,helpUrl:"https://modao.cc/hc/articles/410"},nt=()=>{jd.ZF.setCache(te),(0,jd.U2)({source:K}),me({type:"entry:aiComponent:open:mode"})};return(0,G.jsx)(id,{item:$e,onSelect:nt})},Z1=v=>{let{theme:K}=v;return(0,G.jsxs)(du,{className:K,children:[(0,G.jsx)(o0,{aiOpenTrackSource:"\u7EC4\u4EF6\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6",aiFunctionTrackSource:"\u7EC4\u4EF6AI"}),(0,G.jsx)(b1,{className:"demo-list"})]})},du=ue.Ay.div.withConfig({displayName:"AIComponentPanel__StyledAIComponentPanel",componentId:"sc-11rxfbl-0"})(["height:100%;display:flex;flex-direction:column;flex:1;overflow:hidden;.item-content-container{margin:12px;width:auto;.item-content{.item-right{.item-des{.help-des{position:relative;color:",";margin-left:1px;}}}}}.demo-list{flex:1;overflow:hidden;}&.dark{.item-content-container{.item-content{.item-right{.item-title{.title-container{.icon-beta{defs{linearGradient{stop{&:nth-child(1){stop-color:#BA52FA;}&:nth-child(2){stop-color:#7EBCFF;}}}}}}}}}}}"],v=>v.theme.color_text_link_normal);var Dd=i(68789);const Y0=ue.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-11gy8y5-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.panel-header{ol{li.nav-item:not(:first-child){margin-left:4px;}}}.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}.resources-new-slide-nav{height:40px;}"],v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L3,v=>v.theme.color_bg_canvas,v=>v.theme.color_bg_canvas,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L2),K1=(0,ue.AH)(["width:100%;display:flex;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.history-box-icon{position:relative;&::before{content:'';position:absolute;top:4px;left:-12px;display:block;width:1px;height:16px;background:",";}}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_border_01),_2=ue.Ay.div.withConfig({displayName:"styles__StyledWidgetPanel",componentId:"sc-11gy8y5-1"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.panel-header{",";}"],K1),P2=(0,M.Mz)([P.OW,q.O4,Y.r,J.wA],(v,K,te,me)=>{let{isEditingUserCombo:$e,isEditingOrgCombo:nt}=te;return{show:v===Xs.lS.Builtin,theme:K,isEditingUserCombo:$e,isEditingOrgCombo:nt,currentOrg:me}}),t2=()=>{const{show:v,theme:K,isEditingUserCombo:te,isEditingOrgCombo:me,currentOrg:$e}=(0,k.d4)(xo=>P2(xo)),nt=(0,k.d4)(C.SG),yt=(0,k.wA)(),[dt,It]=(0,a.useState)(!1),un=[{label:I18N.Resources.widgetPanel.tab.official,source:Dd.V.Find},{label:I18N.LeftSidePanel.user_resources,source:Dd.V.User},{label:I18N.LeftSidePanel.org_resources,source:Dd.V.Org},{label:I18N.LeftSidePanel.ai_component,source:Dd.V.AIComponent}],xn=(0,a.useMemo)(()=>{const xo=$e?un:un.filter((jo,pa)=>pa!==2);return te?xo.filter(jo=>jo.source!==Dd.V.User&&jo.source!==Dd.V.AIComponent):me?xo.filter(jo=>jo.source!==Dd.V.Org&&jo.source!==Dd.V.AIComponent):ENV.IS_ON_PREMISES?xo.filter(jo=>jo.source!==Dd.V.AIComponent):xo},[un,$e,me,te]),gn=(0,a.useCallback)(()=>{It(!0),setTimeout(()=>{It(!1)},500)},[It]),wo=xo=>{nt!==xo&&(xo===1&&MB.global.experienceLoginModalHelper("isSave")||(yt({type:"widget-panel:update:state",payload:{navIndex:xo}}),xo===0&&gn()))},vo=()=>{MB.global.experienceLoginModalHelper("isSave")||(yt({type:"exalt:panel:order",payload:{name:Xs.lS.History}}),yt({type:"historyPanel:set:show",payload:{show:!0}}))};if(!v)return null;const Co=te?!1:nt===1,Eo=$e&&(te?nt===1:me?!1:nt===2),go=$e?nt===3:nt===2;return(0,G.jsxs)(_2,{children:[(0,G.jsxs)("div",{className:"panel-header",children:[(0,G.jsx)(O.Ay,{activeIndex:nt,onTabChange:wo,children:xn.map((xo,jo)=>(0,G.jsx)(O.nl,{label:xo.label},jo))}),(0,G.jsx)(l.A,{content:I18N.Resources.searchHeader.history,direction:"down",children:(0,G.jsx)("a",{className:"history-box-icon",onClick:vo,children:(0,G.jsx)(D.A,{name:"art_board/widget/history",className:"history"})})})]}),nt===0&&(0,G.jsx)(op,{isOffUpdateScroll:dt,onIsUpdateScroll:gn}),Co&&(0,G.jsx)(yp,{}),Eo&&(0,G.jsx)(W1,{isOrg:!0}),go&&(0,G.jsx)(Z1,{theme:K})]})},S1=ue.Ay.div.withConfig({displayName:"PopupPanelBody",componentId:"sc-m9v6xh-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.iconLibrary-active{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;animation:twinkling 0.8s 2 ease-in-out;}@keyframes twinkling{0%{background:unset;box-shadow:unset;}50%{background:rgba(41,141,248,0.3);box-shadow:inset 0 0 0 4px rgba(41,141,248,0.6);}100%{background:unset;box-shadow:unset;}}.panel-content-nav{justify-content:space-around;height:32px;border-bottom:1px solid ",';}& > [type="search"]{margin:10px;}.template-panel-header [type="text"]{border-radius:13px;}& > main,& > [type="main"]{flex:1;overflow-x:hidden;overflow-y:auto;}'],v=>v.theme.color_bg_canvas);var bp=i(76527),S0=i(79581),n2=i(50521),Nc=i(8614),Xd=i(60651);const o2=ue.Ay.ul.withConfig({displayName:"styles__StyledLibList",componentId:"sc-1irdab5-0"})(["&.lib-list{margin:0 4px;display:flex;align-items:center;flex-direction:column;&.list{margin:0 8px;li.lib-item-container{padding:6px;flex-direction:row;height:66px;border-radius:8px;&:hover{background:",";}img{width:72px;height:55px;margin-right:12px;-webkit-user-drag:none;object-fit:cover;}.lib-item-content{margin-top:0;width:calc(100% - 84px);.content-left{flex-direction:column;align-items:flex-start;justify-content:center;width:100%;.nums{margin-left:0;margin-top:8px;}.name{",";width:100%;}}}}}li.lib-item-container{display:flex;flex-direction:column;width:100%;height:197px;border-radius:10px;padding:8px;margin-bottom:8px;cursor:pointer;&:hover{background:",";}img{width:100%;height:155px;border-radius:8px;background:",";border:1px solid ",";-webkit-user-drag:none;object-fit:cover;}.lib-item-content{display:flex;align-items:center;color:",";margin-top:8px;justify-content:space-between;.content-left{display:flex;align-items:center;.nums{color:",";margin-left:8px;}}.arrow-left{display:none;.svg-icon{width:6px;height:10px;color:",";}}}}&.grid{li.lib-item-container{&:hover{.arrow-left{display:block;}.lib-item-content .content-left .name{max-width:135px;}}.lib-item-content{.content-left{.name{max-width:144px;",";}}}}}}"],v=>v.theme.color_btn_secondary_hover,Ze.L9,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_card,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L3,Ze.L9),A1=ue.Ay.div.withConfig({displayName:"styles__StyledRecommendList",componentId:"sc-1irdab5-1"})(["border-top:1px solid ",";margin:0 8px;.recommend-header{margin-top:8px;margin-bottom:8px;justify-content:flex-start;padding:0 4px;height:32px;display:flex;align-items:center;color:",";font-weight:500;.question-icon{width:12px;color:",";}a:hover{background:none;}}&.list{ul{flex-direction:column;padding:0;li.recommend-lib-item{flex-direction:row;padding:6px;width:100%;.img-box{width:74px;height:54px;margin-right:12px;flex:0 0 74px;img{width:100%;height:100%;}}.title{color:",";margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;}.action.add{position:relative;margin-right:2px;margin-left:12px;top:0;left:0;background:unset;color:",";&:hover{background:",";color:",";}}&:hover{background:",";.action.add{display:flex;}}}}}&.grid{ul{padding:0 4px;li.recommend-lib-item{width:109px;.title{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;}&:nth-child(2n + 1){margin-right:8px;}.img-box{&::before{content:'';display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:",";backdrop-filter:blur(4px);}}&:hover{.action.add{display:flex;}.img-box{&::before{display:block;}}}}}}ul{display:flex;flex-wrap:wrap;padding:0 12px;li.recommend-lib-item{display:flex;flex-direction:column;align-items:center;position:relative;margin-bottom:8px;border-radius:8px;cursor:pointer;.title{color:",";margin-top:8px;}.action.add{display:none;align-items:center;justify-content:center;width:24px;height:24px;position:absolute;top:29px;left:43px;border-radius:4px;background:",";color:",";flex:0 0 24px;}.added-flag{padding:3px 6px;border-radius:4px;background:",";position:absolute;top:16px;left:16px;}.img-box{width:109px;height:82px;border-radius:8px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_navigation_active,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_slider_normal,v=>v.theme.color_text_L3,v=>v.theme.color_btn_primary_normal,v=>v.theme.color_text_btn,v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_card),Cp=ue.Ay.div.withConfig({displayName:"styles__StyledEmptyContent",componentId:"sc-1irdab5-2"})(["display:flex;align-items:center;flex-direction:column;background:",";border-radius:10px;padding:16px;margin:10px 12px 14px;padding:16px;.title{color:",";font-weight:500;}.desc{color:",";margin:12px 0;}button.solid.muban-manage{height:28px;padding:5px 54px;}"],v=>v.theme.color_navigation_hover,v=>v.theme.color_text_L1,v=>v.theme.color_text_L2),A0=(0,ue.Ay)(Me.Ay).withConfig({displayName:"styles__StyledMubanContextMenu",componentId:"sc-1irdab5-3"})(["&.mb-muban-context-menu{ul{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";min-width:130px;li.MenuItem{a{border-radius:4px;background:",";color:",";}&:not(.disabled).active{a{background:",";}}}}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_bg_white,v=>v.theme.shadow_m,v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover);var Qd=i(17573),wp=i(8926);const a0=v=>{let K=v==null?void 0:v.filter(te=>!te.hotAttr.asFolder).length;return v==null||v.forEach(te=>{K+=te.children.length}),K},M0=v=>{let{isHasMubanInLocal:K,libMubanTreeMap:te,addedLibList:me,currentMode:$e,onGotoLib:nt,onRemoveLib:yt}=v;const dt=(0,k.d4)(J.PL),[It,un]=(0,a.useState)(!1),[xn,gn]=(0,a.useState)(null),[wo,vo]=(0,a.useState)(null),Co=(0,a.useMemo)(()=>{var Ma;return dt!=null&&dt.is_custom_cover?dt==null?void 0:dt.custom_cover:(Ma=dt==null?void 0:dt.cover)!=null?Ma:""},[dt==null?void 0:dt.cover,dt==null?void 0:dt.custom_cover,dt==null?void 0:dt.is_custom_cover]),Eo=(0,a.useMemo)(()=>me.map(Ma=>{const Ka=a0(te==null?void 0:te.get(Ma.hotAttr.extInfo.flatKey));if(Ka>0)return{...Ma,nums:Ka}}).filter(Ma=>Ma),[me,te]),go=(0,a.useCallback)((Ma,Ka)=>{if(Ma.button===2){const Fa={left:Ma.clientX,top:Ma.clientY};gn(Fa),vo(Ka),un(!0)}},[]),xo=()=>{gn(null),vo(null),un(!1)},jo=(Ma,Ka)=>{Ma.stopPropagation(),yt(Ma,Ka),xo(),(0,wp.Cj)()},pa=Ma=>{nt(Ma),xo()},na=(Ma,Ka)=>{const Fa=Ka.querySelector(".name");return Fa.offsetWidth<Fa.scrollWidth};return!K&&Eo.length===0?(0,Qd.bJ)()?(0,G.jsx)(ke,{}):(0,G.jsx)(Fc,{keyword:""}):(0,G.jsxs)(o2,{className:E()("lib-list",$e,{"has-bottom-border":!0}),children:[K&&(0,G.jsxs)("li",{className:"lib-item-container "+Vt.c.GUIDE_2506_LIB_INTERGRATED,onClick:()=>nt({key:"local"}),children:[(0,G.jsx)("img",{src:Co||"/mb-proto2/images/lib/lib-emtry.png",onError:Ma=>{Ma.target.src="/mb-proto2/images/lib/lib-emtry.png",Ma.target.onerror=null}}),(0,G.jsxs)("div",{className:"lib-item-content",children:[(0,G.jsxs)("div",{className:"content-left",children:[(0,G.jsx)("span",{className:"name",children:I18N.Resources.muban.lib.local.title}),(0,G.jsx)("span",{className:"nums",children:a0(te==null?void 0:te.get("local"))+" \u4E2A\u6BCD\u7248"})]}),(0,G.jsx)(D.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]}),Eo.map(Ma=>(0,G.jsxs)("li",{className:"lib-item-container",onClick:()=>nt(Ma),onMouseDown:Ka=>go(Ka,Ma),children:[(0,G.jsx)("img",{src:Ma.hotAttr.extData||"/mb-proto2/images/lib/lib-emtry.png"}),(0,G.jsx)(l.A,{content:Ma.hotAttr.name,distance:20,direction:"down",isShowTipsByTarget:na,children:(0,G.jsxs)("div",{className:"lib-item-content",children:[(0,G.jsxs)("div",{className:"content-left",children:[(0,G.jsx)("span",{className:"name",children:Ma.hotAttr.name}),(0,G.jsx)("span",{className:"nums",children:Ma.nums+" \u4E2A\u6BCD\u7248"})]}),(0,G.jsx)(D.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})})]},Ma.key)),It&&(0,G.jsxs)(A0,{className:"mb-muban-context-menu",position:xn,onClose:xo,children:[(0,G.jsx)(Me.Dr,{text:I18N.Resources.muban.lib.remove,onClick:Ma=>wo&&jo(Ma,wo)}),(0,G.jsx)(Me.Dr,{text:I18N.Resources.muban.lib.open,onClick:()=>wo&&pa(wo)})]})]})},ke=()=>{const v=(0,k.d4)(J.wA),K=(0,k.wA)(),te=()=>{K({type:"modal:update:state",payload:{manageStyleLibModal:{isOpen:!0,activeTab:"team"}}})};return(0,G.jsxs)(Cp,{className:"empty-content",children:[(0,G.jsx)("span",{className:"title",children:"\u5F53\u524D\u6587\u4EF6\u6682\u65E0\u6BCD\u7248\u8D44\u6E90"}),(0,G.jsx)("span",{className:"desc",children:"\u60A8\u53EF\u4EE5\u6DFB\u52A0"+(v?"\u56E2\u961F":"\u4E2A\u4EBA")+"\u7A7A\u95F4\u8D44\u6E90\u5E93\u4EE5\u4F7F\u7528\u6BCD\u7248\u8D44\u6E90\u3001\u6837\u5F0F\u8D44\u6E90\u6765\u5FEB\u901F\u642D\u5EFA\u9875\u9762"}),(0,G.jsx)("button",{className:"solid muban-manage",onClick:te,children:"\u6DFB\u52A0"+(v?"\u56E2\u961F":"\u6211\u7684")+"\u8D44\u6E90\u5E93"})]})};var Ve=i(47946);const Ye=v=>{const K=(0,a.useRef)(!1);return(0,a.useCallback)(function(){K.current||(K.current=!0,v(...arguments))},[v])};var wt=i(70812);const Ua=v=>{let{currentMode:K,onGotoLib:te}=v;const[me,$e]=(0,a.useState)(!1),nt=(0,k.d4)(Nc.Qe),yt=(0,k.d4)(Nc.oo),dt=(0,k.d4)(Nc.nC),It=(0,k.wA)(),un=(0,a.useMemo)(()=>nt.filter(vo=>yt.findIndex(Co=>Co.hotAttr.extInfo.projectCid===vo.cid&&!Co.hotAttr.extInfo.isRemove)===-1),[yt,nt]),xn=Ye((vo,Co)=>{var Eo;vo.stopPropagation(),It({type:"entry:libStyle:add:recommendLib",payload:{lib:Co}}),wt.U4.protoMasterUseTrack((Eo=MB)==null||(Eo=Eo.user)==null?void 0:Eo.id,"\u7CBE\u9009\u8D44\u6E90\u5E93","\u6DFB\u52A0")}),gn=Ye(async vo=>{if(me)return;const Co=vo.sclib_cid,Eo=dt.get(Co);$e(!0);try{if(!Eo){const{sdkStore:xo}=await(0,Ve.O3)({flpakKey:Co});await It({type:"style-lib:set:libSdkStoreMap",payload:{key:Co,value:xo}})}await It({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:vo.sclib_cid}});const go={...vo,key:vo.cid,hotAttr:{extData:vo.cover,extInfo:{flatKey:vo.sclib_cid,projectCid:vo.cid,name:vo.name},extType:"extProtoLib",name:vo.name}};te(go)}finally{$e(!1)}}),wo=(vo,Co)=>{const Eo=Co.querySelector(".title");return Eo.offsetWidth<Eo.scrollWidth};return un.length===0?null:(0,G.jsxs)(A1,{className:K,children:[(0,G.jsx)("div",{className:"recommend-header",children:(0,G.jsx)("span",{children:I18N.Resources.muban.lib.recommend.title})}),(0,G.jsx)("ul",{children:un.map(vo=>(0,G.jsx)(l.A,{content:vo.name,distance:20,direction:"down",isShowTipsByTarget:wo,children:(0,G.jsxs)("li",{className:"recommend-lib-item",onClick:()=>gn(vo),children:[(0,G.jsx)("div",{className:"img-box",children:(0,G.jsx)("img",{src:vo.cover||"/mb-proto2/images/lib/lib-emtry.png"})}),(0,G.jsx)("span",{className:"title",children:vo.name}),(0,G.jsx)(l.A,{content:"\u6DFB\u52A0",direction:"down",distance:8,isShowTipsByTarget:()=>K==="list",children:(0,G.jsx)("div",{className:"action add",onClick:Co=>xn(Co,vo),children:(0,G.jsx)(S.C,{name:"common/add@10"})})})]})},vo.cid))})]})};var za=i(11891),Qa=i(88194),rr=i(33573),Ji=i(79209),Jr=i(93971);const qi=v=>{const[K,te]=(0,a.useState)({isOpen:!1,isRightClick:!1,position:{left:0,top:0}});return{menuState:K,handleCloseMenu:()=>{te({isOpen:!1,isRightClick:!1,position:{left:0,top:0}})},handleOpenMenu:nt=>{nt.stopPropagation(),nt.preventDefault();let yt=0,dt=0,It=!1;if(nt.button===0){if(v){const{top:un,left:xn,height:gn}=v.current.getBoundingClientRect();yt=un+gn,dt=xn}}else yt=nt.clientY,dt=nt.clientX,It=!0;te({isOpen:!0,isRightClick:It,position:{left:dt,top:yt}})}}};var jr=i(85584),zi=i(78401);const Ki=v=>{const K=sdkStore.dupWithinPage([v.key]),te=sdkStore.getHotItem(K[0]),me=v.hotAttr.name+" Copy";return te.hotAttr.name=me,sdkStore.updateHotAttrKV(te.key,"name",me),{...te,children:[]}},Zr=(v,K)=>{const te=(0,jr.aR)(v,K),me=(0,jr.BS)(te,K);return me[me.length-1].key===v},Si=(v,K,te)=>{const me={key:"root",children:te},$e=document.querySelector(".template-panel-content"),nt=$e==null?void 0:$e.querySelector(".muban-panel-scroll-list"),yt=Array.from(document.querySelectorAll(".muban-panel-container li.muban-content-item")),dt=$e==null?void 0:$e.getBoundingClientRect(),It={left:dt==null?void 0:dt.left,top:(dt==null?void 0:dt.top)+40,right:dt==null?void 0:dt.right,bottom:dt==null?void 0:dt.bottom,width:dt==null?void 0:dt.width,height:(dt==null?void 0:dt.height)-40},un=nt==null?void 0:nt.getBoundingClientRect(),xn=[],gn={};let wo=new Set,vo=1,Co=K;if(v){const go=new Set(K),xo=new Set;for(const pa of K){const na=sdkStore.getHotItem(pa);na&&go.has(na.sup)&&xo.add(na.key)}for(const pa of xo)go.delete(pa);Co=Array.from(go),wo=new Set(Co);const jo=[];(0,jr.sV)(me,pa=>{const{key:na,children:Ma}=pa;if(wo.has(na)&&(Ma==null?void 0:Ma.length)>0)for(const Ka of pa.children)wo.add(Ka.key);K.includes(na)&&jo.push(pa)});for(const pa of jo){const na=(0,jr.QR)(pa);vo=Math.max(na,vo)}}const Eo=yt.length;return yt.forEach((go,xo)=>{const{key:jo}=go.dataset,pa=(0,jr.aR)(jo,me),na=pa,Ma=(0,jr.zK)(pa.key,me),Ka=go.querySelector(":scope > .muban-list-item"),Fa=Ka==null?void 0:Ka.getBoundingClientRect(),xr=(0,zi.yB)(Ka),Tr=go.getBoundingClientRect(),fi={top:Fa.top-un.top,left:Fa.left-un.left,width:Fa.width,height:Fa.height},bi={top:xr.top-un.top,left:xr.left-un.left,width:xr.width,height:xr.height},Er={top:Tr.top-un.top,left:bi.left+8,width:bi.width,height:Tr.height};gn[jo]={rect:fi,contentRect:bi,treeRect:Er};const{left:Ya,top:Br,width:qa,height:Mr}=fi,qr=Ya+qa,ts=Br+Mr/3,Ci=Br+Mr/3*2,Al=Br+Mr;if(wo.has(jo)){xn.push({cid:jo,type:null,min:{x:Ya,y:Br},max:{x:qr,y:Al},isValid:!1});return}xo===0&&xn.push({cid:jo,type:"prevSibling",parentCid:na.sup,min:{x:Ya,y:Br},max:{x:qr,y:ts},isValid:!0}),xo===Eo-1&&xn.push({cid:jo,type:"nextSibling",parentCid:na.sup,min:{x:Ya,y:Al},max:{x:qr,y:It.height},isValid:!0});const sc=2,hc=Ma+vo<=sc,Js=Ma-1+vo<=sc;xn.push({cid:jo,type:"firstChild",parentCid:jo,min:{x:Ya,y:Br},max:{x:qr,y:Ci},isValid:hc});const sl=(0,jr.aR)(na.sup,me);if(Zr(jo,me)&&sl){xn.push({cid:jo,type:"nextSibling",parentCid:na.sup,min:{x:gn[jo].contentRect.left,y:Ci},max:{x:qr,y:Al},isValid:Js});let Ss=pa,Ol=null;for(;Ss&&Zr(Ss.key,me)&&(Ol=(0,jr.aR)(Ss.sup,me));){const Ac=(0,jr.zK)(Ol,me)-1+vo<=4;xn.push({cid:Ol.key,type:"nextSibling",parentCid:Ol.sup,min:{x:gn[Ol.key].contentRect.left,y:Ci},max:{x:gn[Ss.key].contentRect.left,y:Al},isValid:Ac}),Ss=Ol}}else xn.push({cid:jo,type:"nextSibling",parentCid:na.sup,min:{x:Ya,y:Ci},max:{x:qr,y:Al},isValid:Js})}),{matchDataList:xn,containerRect:It,rectQueryMap:gn,pathSelectedIds:Co}};var Ii=i(68863);const _i=(0,ue.i7)(["from{transform:translateY(-80%);}to{transform:translateY(0);}"]),ii=ue.Ay.div.withConfig({displayName:"styles__StyledPanelDetail",componentId:"sc-1f2gapk-0"})(["ul.muban-item-list{display:flex;flex-wrap:wrap;}.actions{width:16px;height:16px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin-left:auto;visibility:hidden;&:hover{visibility:visible;}.svg-icon{g{rect{fill:",";fill-opacity:1;}path{fill:",";}}}}&.grid{margin-top:40px;li.detail-panel-item{.muban-content{flex-direction:column;&:hover,&.is-active{.muban-img-box{background:",";border:1px solid ",";}.actions{visibility:visible;}}}&:nth-child(2n+1){margin-left:12px;}&:nth-child(2n){margin-right:0;}.actions{right:6px;bottom:30px;}.muban-img-box{padding:8px;}}}&.list{margin-top:44px;ul.muban-item-list{flex-direction:column;}ul.muban-folder-list{li.folder ul{flex-direction:column;}}li.detail-panel-item{flex-direction:row;width:234px;height:52px;margin:0 0 0 8px;.muban-content{padding:6px;border-radius:8px;width:100%;height:100%;.editable-span{text-align:left;color:",";flex:1;}&:hover,&.is-active{background:",";.actions{visibility:visible;}}&.is-active{.actions{background:",";}}}.actions{right:6px;width:24px;height:24px;border-radius:4px;transform:rotate(90deg);color:",";&:hover{background:",";}}.muban-img-box{padding:4px;width:40px;height:40px;margin-right:12px;}img{width:100%;height:100%;}}}li.folder{width:100%;.folder-name{height:32px;padding:0 12px 0 8px;display:flex;align-items:center;color:",";cursor:pointer;transform:translateY(-100%);position:relative;top:32px;&:not(.sticky):hover,&:not(.sticky).is-active{background:",";.actions{visibility:visible;}}&.is-active{.actions{background:",";}}&.is-expand .arrow-icon-box{transform:rotate(90deg);}.name-box{display:flex;align-items:center;width:calc(100% - 40px);height:100%;.editable-span{flex:1;}}.arrow-icon-box{width:16px;height:16px;margin-right:4px;color:",";display:flex;align-items:center;justify-content:center;.arrow-expand{width:6px;}}.arrow-expand-sticky{width:6px;color:",";transform:rotate(90deg);margin-left:8px;visibility:hidden;}}ul{margin:8px 0;display:flex;flex-wrap:wrap;}}.folder-sticky{position:absolute;transform:translateY(-100%);top:-40px;width:250px;height:40px;background:",";z-index:1;padding:0px 12px 0px 6px;border-bottom:1px solid ",";visibility:hidden;color:",";display:flex;&.is-active{.name-box{background:",";}}.name-box{width:fit-content;height:28px;padding:6px;margin:4px 0 8px;border-radius:6px;max-width:100%;display:flex;align-items:center;&:hover{background:",';}&::after{content:"";display:inline-block;position:absolute;bottom:0;width:100%;height:10px;}.editable-span{width:auto;font-weight:500;}.arrow-expand-sticky{width:6px;color:',";transform:rotate(90deg);margin-left:8px;}}&.is-show{visibility:visible;position:fixed;top:129px;animation:"," 0.5s ease forwards;animation-iteration-count:1;&.old_right{top:169px;}}}li.detail-panel-item{display:flex;flex-direction:column;align-items:center;width:108px;height:125px;margin-right:10px;margin-bottom:8px;cursor:pointer;.muban-content{width:100%;display:flex;align-items:center;position:relative;.editable-span{text-align:center;color:",";}.actions{position:absolute;}&.is-click-active{opacity:0.5;}}.muban-img-box{width:100%;height:103px;display:flex;align-items:center;justify-content:center;border-radius:6px;overflow:hidden;border:1px solid ",";background:",";}img{width:100%;height:100%;-webkit-user-drag:none;object-fit:contain;}.muban-name{color:",";margin-top:6px;}}"],v=>v.theme.color_slider_hover,v=>v.theme.color_text_btn,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_navigation_active,v=>v.theme.color_text_L1,v=>v.theme.color_navigation_active,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_disabled01,v=>v.theme.color_text_disabled01,v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_disabled01,_i,v=>v.theme.color_text_L3,v=>v.theme.color_bg_border_01,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L3),$i=(0,ue.Ay)(Me.Ay).withConfig({displayName:"styles__StyleContextMenu",componentId:"sc-1f2gapk-1"})(["",";ul{width:130px;min-width:130px;}"],Ze.ZJ),Ta=ue.Ay.div.withConfig({displayName:"styles__StyledFolderMenu",componentId:"sc-1f2gapk-2"})(["&.is-open{visibility:visible;}position:fixed;width:140px;z-index:2;overflow:hidden;border-radius:8px;visibility:hidden;box-shadow:",";margin-top:-1px;",";ul.folder-menus{width:100%;max-height:296px;overflow-y:scroll;margin:0 !important;li.MenuItem{width:100%;height:28px;padding:4px 12px;border-radius:4px;cursor:pointer;display:flex;align-items:center;&:not(.is-checked){padding-left:28px;}div.name{max-width:70px;margin-left:8px;",";}&:hover{background:",";}}}"],v=>v.theme.shadow_m,Ze.ZJ,Ze.L9,v=>v.theme.color_btn_secondary_hover),vi=(0,a.memo)(v=>{let{projectMetaCid:K,data:te,parent:me,isLocal:$e,currentLib:nt,currentMode:yt,onDelete:dt,onAdd:It,onReName:un}=v;const xn=(0,a.useRef)(null),gn=(0,a.useRef)(),wo=(0,k.d4)(Xd.bt),vo=(0,k.d4)(J.X_),Co=(0,k.d4)(J.Pz),Eo=(0,k.d4)(q.PI),go=(0,k.d4)(q.k3),xo=(0,k.d4)(Nc.nC),jo=(0,k.d4)(Nc.oo),pa=(0,k.d4)(J.YY),[na,Ma]=(0,a.useState)(!1),[Ka,Fa]=(0,a.useState)(te.hotAttr.name),[xr,Tr]=(0,a.useState)(te),{menuState:fi,handleCloseMenu:bi,handleOpenMenu:Er}=qi(xn),Ya=(0,k.wA)();(0,a.useEffect)(()=>{Fa(te.hotAttr.name)},[te.hotAttr.name]);const Br=Vi=>{if(hc(Vi),Vi.preventDefault(),wo===te.key){MB.notice({text:"\u4E0D\u80FD\u5220\u9664\u6B63\u5728\u7F16\u8F91\u4E2D\u7684\u6BCD\u7248"});return}const qs=sdkStore.findAllBasketFRBPage(te.key);Ya({type:"modal:update:state",payload:{masterDeleteModal:{isOpen:!0,name:te.hotAttr.name,panelCount:qs.length,onConfirm:()=>{try{if(qs.length>0){const ll=(0,Ji.UU)({initKeyList:[sdkStore.getHotItem(qs[0]).hotAttr.refRBPageKey].filter(Boolean)})*qs.length;if(!(0,Ji._c)({type:"basket",count:ll}))return;Ya({type:"entry:basket:transform",payload:{itemsKeyList:qs,basketType:"bDanli",type:"removeMuban"}})}if((te==null?void 0:te.sup)!=="B@ref-muban"){const ll=sdkStore.getHotItem(te==null?void 0:te.sup);(ll==null?void 0:ll.sub.length)===1&&(ll==null?void 0:ll.sub[0])===(te==null?void 0:te.key)&&sdkStore.deleteHotItem(te==null?void 0:te.sup)}sdkStore.deleteHotItem(te==null?void 0:te.key),dt(te.key,te.sup),MB.notice({text:I18N.dModals.master_del_success})}catch(ll){}}}}}),bi()},qa=Vi=>{hc(Vi),Vi.preventDefault(),Ya({type:"entry:edit:basket:source:muban",payload:{item:te}}),bi()},Mr=async Vi=>{hc(Vi),Vi.preventDefault();const qs=sdkStore.getHotItem(te.key);if(!(0,Ji._c)({type:"widget",count:(0,Ji.UU)({initKeyList:[qs.key]})}))return;const ll=await Ki(qs);It(ll,te.sup),(0,Jr.SJ)("\u5DE6\u4FA7\u6BCD\u7248\u526F\u672C",!1,qs.sub),bi()},qr=(Vi,qs)=>{if(!(0,Qd.bJ)()){if(qs&&Vi.trim()){Fa(Vi),sdkStore.updateHotAttrMerge(te.key,{name:Vi,mtime:rootSdk.fssCmt.getClockStore().getMtime()});const ll={...te,hotAttr:{...te.hotAttr,name:Vi}};un(ll,te.sup),bi()}Ma(!1);return}if(qs&&Vi.trim()){const ll=(0,wp.PL)(Vi,te.key);sdkStore.updateHotAttrMerge(te.key,{name:ll,mtime:rootSdk.fssCmt.getClockStore().getMtime()}),Ya({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}}),Fa(ll),bi()}else Fa(te.hotAttr.name);Ma(!1)},ts=async()=>{var Vi;if($e)return;!(jo.findIndex(kp=>{var g0;return((g0=kp.hotAttr)==null||(g0=g0.extInfo)==null?void 0:g0.flatKey)===K})!==-1)&&nt&&Ya({type:"entry:libStyle:add:recommendLib",payload:{lib:nt}});const ll=(Vi=xo.get(K))!=null?Vi:sdkStore,i0=await(0,wp.fZ)({libSdkStore:ll,data:te,projectMetaCid:K});Tr(i0)},Ci=()=>{if(!sdkStore.isActiveKey(te.key))return!1;const Vi=sdkStore.getHotItem(te.key);if(wo===te.key||sdkStore.parseSubtree(sdkStore.saveSubtree(Vi.sub)).contentFlatTree.get("B@ref-muban").sub.includes(wo))return MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),!0;const qs=sdkStore.findAllTypeUnder(te.key,"rResCanvas");return qs!=null&&qs.length?!1:(MB.notice({text:I18N.SettingPanel.design.master_no_canvas,type:"error"}),!0)},Al=Vi=>{if(na||(Vi.preventDefault(),Vi.stopPropagation(),Ci()))return;const qs=gn.current.getBoundingClientRect();(0,Z0.PK)({e:Vi,template:xr,thumbnailRect:qs,scale:vo,canvasRect:Co,showDragMode:Eo,isAdsorbentReferenceLine:go,createLocalRefPageFromLib:ts,callback:()=>{var ll,i0;const kp=$e?"\u672C\u5730\u8D44\u6E90":nt!=null&&(ll=nt.hotAttr)!=null&&(ll=ll.extInfo)!=null&&(ll=ll.projectCid)!=null&&ll.startsWith("mt")?"\u7CBE\u9009\u8D44\u6E90\u5E93":"\u56E2\u961F\u8D44\u6E90";wt.U4.protoMasterUseTrack((i0=MB)==null||(i0=i0.user)==null?void 0:i0.id,kp,"\u7F6E\u5165")}})},sc=Vi=>{na||(Vi.stopPropagation(),Vi.button===0&&(Ci()||(0,Z0.UL)(xr,ts)))},hc=Vi=>Vi.stopPropagation(),Js=Vi=>{var qs;if(na||di!=null&&di.current||(hc(Vi),Vi.preventDefault(),Ci()))return;const ll=(qs=xo.get(K))!=null?qs:sdkStore;if(!ll)return;const i0=[[[{...xr}],ll,{isTemplate:!0,createLocalRefPageFromLib:ts}]];Ya({type:"entry:resources:quick:create:template",payload:{data:i0}})},sl=Vi=>{if(hc(Vi),Vi.preventDefault(),me){var qs,ll;Fa((me==null||(qs=me.hotAttr)==null?void 0:qs.name)+"/"+(te==null||(ll=te.hotAttr)==null?void 0:ll.name))}Ma(!0),bi()},{isMoveAfterClick:di,isDragging:Ss,handleMouseDown:Ol,handleClick:Ac,handleDoubleClick:I1}=(0,e2.A)({onMouseDown:Al,onClick:Js,onDoubleClick:sc}),Ed=(0,a.useMemo)(()=>{const Vi=(0,Ii.F)(pa);return Ss||(Vi==null?void 0:Vi.key)===(xr==null?void 0:xr.key)},[pa,xr,Ss]);return(0,G.jsxs)("div",{className:E()("muban-content",{"is-active":fi.isOpen},{"is-click-active":Ed}),ref:gn,onClick:Ac,onMouseDown:Ol,onDoubleClick:I1,children:[(0,G.jsx)("div",{className:"muban-img-box",children:(0,G.jsx)(rr.Ay,{projectMetaCid:K,snapshotKey:te.hotAttr.defaultCanvasKey,isVisible:!0,mode:Qa.rY.PNG_CANVAS})}),(0,G.jsx)(V0.A,{className:"editable-span",isEditing:na,value:Ka,onConfirm:qr},Ka),!(na||!$e||fi.isRightClick)&&(0,G.jsx)("div",{className:"actions",onMouseDown:Er,ref:xn,children:yt==="list"?(0,G.jsx)(S.C,{name:"left_panel/screen_action_menu",size:24}):(0,G.jsx)(S.C,{name:"design/templates/temp-btn",size:16})}),fi.isOpen&&(0,G.jsxs)($i,{position:fi.position,onClose:bi,children:[(0,G.jsx)(Me.Dr,{text:"\u91CD\u547D\u540D",onClick:sl}),(0,G.jsx)(Me.Dr,{text:"\u7F16\u8F91\u6BCD\u7248",onClick:qa}),(0,G.jsx)(Me.Dr,{text:"\u521B\u5EFA\u526F\u672C",onClick:Mr}),(0,G.jsx)(Me.Dr,{text:"\u5220\u9664",onClick:Br})]})]})}),Yi=(0,ue.Ay)(ii).withConfig({displayName:"styles__StyledSearch",componentId:"sc-1pky404-0"})(["&.grid,&.list{margin-top:0;}.search-empty{position:absolute;}.lib-header{height:32px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;padding-left:8px;&:hover{background:",";}.lib-name{color:",";font-weight:500;}&.is-expand .arrow-expand{transform:rotate(90deg);}.arrow-expand{.svg-icon{width:6px;color:",";}}}"],v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1,v=>v.theme.color_text_disabled01),hl=v=>{let{searchLibMubanTreeMap:K,currentMode:te,currentLib:me}=v;const[$e,nt]=(0,a.useState)(new Set),yt=(0,k.d4)(J.YT),dt=(0,k.d4)(Nc.oo),It=(0,k.wA)(),un=(0,a.useMemo)(()=>Array.from(K.keys()),[K]),xn=Co=>{const Eo=new Set($e);$e.has(Co)?Eo.delete(Co):Eo.add(Co),nt(Eo)},gn=function(Co,Eo){Eo===void 0&&(Eo="B@ref-muban"),It({type:"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData",payload:{libKey:"local",key:Co,supKey:Eo}})},wo=function(Co,Eo){Eo===void 0&&(Eo="B@ref-muban"),It({type:"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData",payload:{libKey:"local",data:Co,supKey:Eo}})},vo=function(Co,Eo){Eo===void 0&&(Eo="B@ref-muban"),It({type:"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData",payload:{libKey:"local",data:Co,supKey:Eo}})};return(0,G.jsx)(Yi,{className:te,children:un.length===0?(0,G.jsx)(za.Z,{}):(0,G.jsx)("ul",{children:un==null?void 0:un.map(Co=>{var Eo;const go=(dt==null?void 0:dt.find(xo=>{var jo;return(xo==null||(jo=xo.hotAttr)==null||(jo=jo.extInfo)==null?void 0:jo.flatKey)===Co}))||me;return(0,G.jsxs)("li",{children:[(0,G.jsxs)("div",{className:E()("lib-header",{"is-expand":!$e.has(Co)}),onClick:()=>xn(Co),children:[(0,G.jsx)(D.A,{name:"new/arrow_1/mini",className:"arrow-expand"}),(0,G.jsx)("span",{className:"lib-name",children:Co==="local"?"\u672C\u5730\u8D44\u6E90\u5E93":go==null?void 0:go.hotAttr.name})]}),!$e.has(Co)&&(0,G.jsx)("ul",{className:"muban-item-list",children:K==null||(Eo=K.get(Co))==null?void 0:Eo.map(xo=>(0,G.jsx)("li",{className:"detail-panel-item",children:(0,G.jsx)(vi,{projectMetaCid:Co==="local"?yt.cid:Co,data:xo,isLocal:Co==="local",onDelete:gn,onAdd:wo,onReName:vo})},xo.key))})]},Co)})})})},_s=v=>{let{isHasMubanInLocal:K,libMubanTreeMap:te,currentMode:me,addedLibList:$e,onGotoLib:nt,keyword:yt,onRemoveLib:dt}=v;const[It,un]=(0,a.useState)(new Map);return(0,a.useEffect)(()=>{if(yt){const xn=new Map;te==null||te.forEach((gn,wo)=>{var vo;if($e.findIndex(xo=>{var jo;return((jo=xo.hotAttr)==null||(jo=jo.extInfo)==null?void 0:jo.flatKey)===wo})===-1&&wo!=="local")return;const Co=(vo=gn.filter(xo=>!xo.hotAttr.asFolder&&xo.hotAttr.name.toUpperCase().includes(yt.toUpperCase())))!=null?vo:[],Eo=gn.map(xo=>{var jo;if((xo==null||(jo=xo.children)==null?void 0:jo.length)>0){var pa,na;return(pa=xo==null||(na=xo.children)==null?void 0:na.filter(Ma=>Ma.hotAttr.name.toUpperCase().includes(yt.toUpperCase())))!=null?pa:[]}}).filter(xo=>xo).flat(),go=[...Co,...Eo];go.length>0&&(xn.set(wo,go),un(xn))})}else un(new Map)},[$e,yt,te]),yt?(0,G.jsx)(hl,{searchLibMubanTreeMap:It,currentMode:me}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(M0,{isHasMubanInLocal:K,libMubanTreeMap:te,addedLibList:$e,currentMode:me,onGotoLib:nt,onRemoveLib:dt}),(0,Qd.bJ)()&&(0,G.jsx)(Ua,{currentMode:me,onGotoLib:nt})]})};var As=i(30542),ql=i(2099);const dc=v=>{var K,te;let{projectMetaCid:me,currentLib:$e,data:nt,isLocal:yt,onDelete:dt,onAdd:It,onReName:un}=v;const xn=(0,a.useRef)(null),gn=(0,k.d4)(Xd.bt),wo=(0,k.d4)(Nc._h),[vo,Co]=(0,a.useState)(nt.hotAttr.name),[Eo,go]=(0,a.useState)(!1),{menuState:xo,handleCloseMenu:jo,handleOpenMenu:pa}=qi(xn),na=(0,k.wA)(),Ma=Tr=>na({type:"style-lib:update:collapseMubanFolderKeySet",payload:{key:Tr}}),Ka=(Tr,fi)=>{const bi=Tr.split("/").join("");if(fi&&bi){const Er=sdkStore.getSubHotItemList("B@ref-muban").find(Br=>Br.hotAttr.asFolder&&Br.key!==nt.key&&Br.hotAttr.name===bi);if(Er){const Br=nt.sub.map(qa=>[qa,Er.key]);sdkStore.moveHotItemBatch(Br),sdkStore.deleteHotItem(nt.key),go(!1),jo(),na({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}});return}Co(bi);const Ya={...nt,hotAttr:{...nt.hotAttr,name:bi}};un(Ya),sdkStore.updateHotAttrKV(nt.key,"name",bi),go(!1),jo()}go(!1)},Fa=()=>{var Tr,fi;if(((Tr=nt.children)==null?void 0:Tr.findIndex(Er=>Er.key===gn))!==-1){MB.notice({text:"\u4E0D\u80FD\u5220\u9664\u6B63\u5728\u7F16\u8F91\u4E2D\u7684\u6BCD\u7248"});return}let bi=[];(fi=nt.children)==null||fi.forEach(Er=>{bi=bi.concat(sdkStore.findAllBasketFRBPage(Er.key))}),na({type:"modal:update:state",payload:{masterDeleteModal:{isOpen:!0,name:nt.hotAttr.name,panelCount:bi.length,onConfirm:()=>{try{bi.length>0&&na({type:"entry:basket:transform",payload:{itemsKeyList:bi,basketType:"bDanli",type:"removeMuban"}}),sdkStore.deleteHotItem(nt.key),dt(nt.key),jo(),MB.notice({text:I18N.dModals.master_del_success})}catch(Er){}}}}})},xr=()=>{Ma(nt.key)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:E()("folder-name muban-list-item",{"is-expand":!wo.has(nt.key),"is-active":xo.isOpen}),onClick:xr,onContextMenu:pa,children:[(0,G.jsx)("div",{className:"arrow-icon-box",children:(0,G.jsx)(S.C,{name:"new/arrow_1/mini",className:"arrow-expand"})}),(0,G.jsx)("div",{className:"name-box",children:(0,G.jsx)(V0.A,{className:"editable-span",isEditing:Eo,value:vo,onConfirm:Ka},vo)}),!(Eo||!yt||xo.isRightClick)&&(0,G.jsx)("div",{className:"actions",ref:xn,onClick:pa,children:(0,G.jsx)(S.C,{name:"left_panel/screen_action_menu/min",size:20})})]}),!wo.has(nt.key)&&(0,G.jsx)("ul",{children:nt==null||(K=nt.children)==null?void 0:K.map(Tr=>(0,G.jsx)("li",{className:"detail-panel-item",children:(0,G.jsx)(vi,{projectMetaCid:me,currentLib:$e,data:Tr,parent:nt,isLocal:yt,onDelete:dt,onAdd:It,onReName:un},Tr.key)},Tr.key))}),xo.isOpen&&(0,G.jsxs)($i,{position:xo.position,onClose:jo,children:[(0,G.jsx)(Me.Dr,{text:"\u7F16\u8F91\u6587\u4EF6\u5939",onClick:()=>go(!0)}),(0,G.jsx)(Me.Dr,{text:"\u5220\u9664 "+(nt==null||(te=nt.children)==null?void 0:te.length)+" \u4E2A\u6BCD\u7248",onClick:Fa})]})]})},Hl=(0,a.memo)(v=>{var K,te,me,$e,nt;let{currentMode:yt,currentLib:dt,treeData:It,keyword:un}=v;const[xn,gn]=(0,a.useState)(null),[wo,vo]=(0,a.useState)(new Map),[Co,Eo]=(0,a.useState)(""),go=(0,a.useRef)(null),xo=(0,a.useRef)(null),jo=(0,a.useRef)(),pa=(0,a.useRef)(),na=(0,k.d4)(J.YT),Ma=(0,k.d4)(q.bP),{menuState:Ka,handleCloseMenu:Fa,handleOpenMenu:xr}=qi(jo),Tr=(0,k.wA)();(0,a.useEffect)(()=>{if(un)return;const di=document.querySelector(".muban-panel-container .muban-folder-list"),Ss=Array.from(di.querySelectorAll(".muban-content-item")),Ol=I1=>{const Ed=I1.target.scrollTop;if(Ed<=di.offsetTop){Eo("");return}for(const Vi of Ss){const{key:qs}=Vi.dataset;(Vi==null?void 0:Vi.offsetTop)<=Ed&&(Vi==null?void 0:Vi.offsetTop)+(Vi==null?void 0:Vi.offsetHeight)>=Ed&&Eo(qs)}},Ac=document.querySelector(".template-panel-content");return Ac==null||Ac.addEventListener("scroll",Ol),()=>Ac==null?void 0:Ac.removeEventListener("scroll",Ol)},[un]);const fi=(0,a.useMemo)(()=>{var di;return(dt==null?void 0:dt.key)==="local"?na.cid:dt==null||(di=dt.hotAttr)==null||(di=di.extInfo)==null?void 0:di.flatKey},[dt==null||(K=dt.hotAttr)==null||(K=K.extInfo)==null?void 0:K.flatKey,dt==null?void 0:dt.key,na.cid]),bi=(0,a.useCallback)(function(di,Ss){Ss===void 0&&(Ss="B@ref-muban"),(dt==null?void 0:dt.key)==="local"&&Tr({type:"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData",payload:{libKey:"local",key:di,supKey:Ss}})},[dt,Tr]),Er=(0,a.useCallback)(function(di,Ss){Ss===void 0&&(Ss="B@ref-muban"),(dt==null?void 0:dt.key)==="local"&&Tr({type:"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData",payload:{libKey:"local",data:di,supKey:Ss}})},[dt,Tr]),Ya=(0,a.useCallback)(function(di,Ss){Ss===void 0&&(Ss="B@ref-muban"),(dt==null?void 0:dt.key)==="local"&&Tr({type:"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData",payload:{libKey:"local",data:di,supKey:Ss}})},[dt,Tr]),Br=di=>{let{cid:Ss,type:Ol,parentCid:Ac,isValid:I1}=di;if(!xn)return;const{pathSelectedIds:Ed}=xn;if(gn(null),!I1)return;const Vi=Ed.map(g0=>It.find(Au=>Au.key===g0)),qs=It.filter(g0=>{let{key:Au}=g0;return!Ed.includes(Au)}),ll=qs.findIndex(g0=>g0.key===Ss),i0=Ol==="prevSibling"?ll:Ol==="firstChild"?0:Ol==="nextSibling"?ll+1:0;qs.splice(i0,0,...Vi),sdkStore.combineMergeMark("sort-muban-folder"),qs.forEach((g0,Au)=>{const D2=sdkStore.getHotItem(g0.key),cl={...D2,hotAttr:{...D2==null?void 0:D2.hotAttr,zIndex:qs.length-Au}};sdkStore.updateHotItem(cl)}),sdkStore.combineMerge("sort-muban-folder");const kp=(0,ql.t_)();Tr({type:"style-lib:update:libMubanTreeMap",payload:{key:"local",val:kp}})},qa=()=>document.querySelector(".template-panel-content"),Mr=(di,Ss)=>{(dt==null?void 0:dt.key)==="local"&&di.button===0&&(go.current=setTimeout(()=>{const Ol=document.querySelector('.muban-panel-container .muban-folder-list [data-key="'+Ss.key+'"] .muban-list-item');if(!Ol)return;const{top:Ac,left:I1}=Ol.getBoundingClientRect(),Ed=di.clientX-I1,Vi=di.clientY-Ac,qs=[Ss.key],ll={screen:Ss,$element:Ol,offsetX:Ed,offsetY:Vi,...Si(Ss,qs,It)};gn(ll)},200))},qr=()=>{(dt==null?void 0:dt.key)==="local"&&go.current&&clearTimeout(go.current)};(0,a.useEffect)(()=>{if(un){var di;const Ol=new Map,Ac=(di=It.filter(Vi=>!Vi.hotAttr.asFolder&&Vi.hotAttr.name.toUpperCase().includes(un.toUpperCase())))!=null?di:[],I1=It.map(Vi=>{var qs;if((Vi==null||(qs=Vi.children)==null?void 0:qs.length)>0){var ll,i0;return(ll=Vi==null||(i0=Vi.children)==null?void 0:i0.filter(kp=>kp.hotAttr.name.toUpperCase().includes(un.toUpperCase())))!=null?ll:[]}}).filter(Vi=>Vi).flat(),Ed=[...Ac,...I1];if(Ed.length>0){var Ss;Ol.set((dt==null||(Ss=dt.hotAttr)==null||(Ss=Ss.extInfo)==null?void 0:Ss.flatKey)||"local",Ed),vo(Ol)}}else vo(new Map)},[dt==null||(te=dt.hotAttr)==null||(te=te.extInfo)==null?void 0:te.flatKey,dt.key,un,It]);const ts=(0,a.useMemo)(()=>Co?It.find(di=>di.key===Co):{},[Co]),Ci=di=>{xo.current=setTimeout(()=>{hc(di)},150)},Al=di=>{if(di.key===Co)return;const Ss=document.querySelector(".template-panel-content"),Ol=document.querySelector('.muban-folder-list li[data-key="'+di.key+'"]');Ss&&(Ss.scrollTop=(Ol==null?void 0:Ol.offsetTop)+10,Js())},sc=di=>{xo!=null&&xo.current&&clearTimeout(xo==null?void 0:xo.current),!di.target.closest(".folder-menus-context")&&Js()},hc=di=>{var Ss;if(xr(di),(Ss=jo.current)==null||Ss.classList.add("is-active"),pa.current){var Ol;const Ac=pa.current.querySelector("li.MenuItem.is-checked");pa.current.scrollTop=(Ol=Ac==null?void 0:Ac.offsetTop)!=null?Ol:0}},Js=()=>{var di;Fa(),(di=jo.current)==null||di.classList.remove("is-active")},sl=di=>{var Ss,Ol;const Ac=(Ss=jo.current)==null?void 0:Ss.querySelector(".name-box");Ac!=null&&Ac.contains(di.target)||pa!=null&&(Ol=pa.current)!=null&&Ol.contains(di.target)||Js()};if(It)return un?(0,G.jsx)(hl,{searchLibMubanTreeMap:wo,currentMode:yt,currentLib:dt}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(ii,{className:yt,children:[(0,G.jsx)("div",{className:E()("folder-sticky",{"is-show":!!Co},Ma),ref:jo,children:(0,G.jsxs)("div",{className:"name-box",onClick:Ka.isOpen?sc:Ci,children:[(0,G.jsx)(V0.A,{isEditing:!1,className:"editable-span",value:ts==null||(me=ts.hotAttr)==null?void 0:me.name},ts==null||($e=ts.hotAttr)==null?void 0:$e.name),(0,G.jsx)(S.C,{name:"new/arrow_1/mini",className:"arrow-expand-sticky"})]})}),(0,G.jsx)("ul",{className:"muban-item-list",children:(nt=It.filter(di=>!di.hotAttr.asFolder))==null?void 0:nt.map(di=>(0,G.jsx)("li",{"data-key":di.key,className:"detail-panel-item",children:(0,G.jsx)(vi,{projectMetaCid:fi,data:di,isLocal:(dt==null?void 0:dt.key)==="local",currentLib:dt,currentMode:yt,onDelete:bi,onAdd:Er,onReName:Ya})},di.key))}),(0,G.jsxs)("ul",{className:"muban-folder-list",children:[It.filter(di=>di.hotAttr.asFolder).map(di=>(0,G.jsx)("li",{"data-key":di.key,className:"folder muban-content-item",onMouseDown:Ss=>Mr(Ss,di),onMouseUp:qr,children:(0,G.jsx)(dc,{projectMetaCid:fi,currentLib:dt,data:di,isLocal:(dt==null?void 0:dt.key)==="local",onDelete:bi,onAdd:Er,onReName:Ya})},di.key)),xn&&(0,G.jsx)(As.A,{draggingElement:xn.$element,getContainerElement:qa,matchDataList:xn.matchDataList,containerRect:xn.containerRect,rectQueryMap:xn.rectQueryMap,offsetX:xn.offsetX,offsetY:xn.offsetY,onDrop:Br})]})]}),(0,G.jsx)(Ta,{className:"folder-menus-context "+(Ka.isOpen?"is-open":""),style:Ka.position,children:(0,G.jsx)("ul",{className:"folder-menus",ref:pa,children:It.filter(di=>di.hotAttr.asFolder).map(di=>{const Ss=di.key===Co;return(0,G.jsxs)("li",{className:"MenuItem "+(Ss?"is-checked":""),onClick:()=>Al(di),children:[Ss&&(0,G.jsx)(S.C,{name:"common/checked",className:"checked",size:16}),(0,G.jsx)("div",{className:"name",children:di.hotAttr.name})]},di.key)})})}),(0,G.jsx)(f0.A,{target:document,onMouseDown:(0,f0.t)(sl,{capture:!0})})]})});var gd=i(40715),ss=i(44229),fs=i(26842);const Wi=ue.Ay.div.withConfig({displayName:"styles__StyledMubanPanel",componentId:"sc-1glgvok-0"})(["&.is-loading{display:flex;align-items:center;justify-content:center;height:100%;img.loading{width:50px;height:50px;}}&.muban-panel-scroll-list{min-height:calc(100% - 40px);position:relative;.muban-panel-container{min-height:100%;}}button.solid{",";}button.blue{",";}"],fs.FC,fs._j),es=ue.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1glgvok-1"})(["padding:0 12px;height:32px;display:flex;justify-content:space-between;align-items:center;color:",";font-weight:500;&.detail-header{position:absolute;top:0;z-index:2;width:100%;background:",";margin-top:0;height:32px;}.back-content{display:flex;align-items:center;width:calc(100% - 52px);.arrow-box{margin-right:4px;margin-left:-4px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;.svg-icon{width:6px;transform:rotate(-180deg);}&:hover{background-color:",";}}.header-title{",";width:calc(100% - 30px);}}.right-content{display:flex;align-items:center;.svg-icon{",";&.manage-libs-icon{fill:none;margin-right:4px;path{fill:none;}}}}"],v=>v.theme.color_text_L1,v=>v.theme.color_bg_white,v=>v.theme.color_btn_secondary_hover,Ze.L9,fs.eK),xs="local_muban_panel_mode",Ui=v=>{var K,te,me;let{keyword:$e}=v;const[nt,yt]=(0,a.useState)((0,at.Yt)(xs,"grid",at.qW.String)),dt=(0,k.d4)(Nc.aD),It=(0,k.d4)(Nc.SP),un=(0,k.d4)(Nc.kR),xn=(0,k.d4)(Nc.fn),gn=(0,k.d4)(Xd.bt),wo=(0,k.d4)(Nc.oo),vo=(0,k.wA)();(0,a.useEffect)(()=>{(0,Qd.bJ)()||vo({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"}),It?vo({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"}):gn&&(0,ss._o)(()=>{vo({type:"entry:libStyle:init"})},{timeout:200})},[vo,gn,It]);const Co=(0,a.useMemo)(()=>{var na;return((na=xn.get("local"))==null?void 0:na.length)>0},[xn]),Eo=()=>{const na=nt==="list"?"grid":"list";yt(na),(0,at.a0)(xs,na,at.qW.String)},go=na=>{vo({type:"style-lib:update:mubanDetailLib",payload:na})},xo=()=>vo({type:"style-lib:update:mubanDetailLib",payload:null}),jo=(0,a.useCallback)((na,Ma)=>{na.stopPropagation(),sdkStore.updateHotAttrKV(Ma.key,"extInfo",{...Ma.hotAttr.extInfo,isRemove:!0}),vo({type:"entry:libStyle:remove:addedLibList",payload:{key:Ma.key}})},[]),pa=(na,Ma)=>Ma.offsetWidth<Ma.scrollWidth;return(0,G.jsxs)(G.Fragment,{children:[!$e&&(0,G.jsxs)(es,{className:dt?"detail-header":"",children:[dt?(0,G.jsxs)("div",{className:"back-content",onClick:xo,children:[(0,G.jsx)("div",{className:"arrow-box",children:(0,G.jsx)(S.C,{name:"design/arrow/right",className:"arrow"})}),(0,G.jsx)(l.A,{content:dt==null||(K=dt.hotAttr)==null?void 0:K.name,distance:20,direction:"down",isShowTipsByTarget:pa,children:(0,G.jsx)("span",{className:"header-title",children:(dt==null?void 0:dt.key)==="local"?"\u672C\u5730\u8D44\u6E90\u5E93":dt==null||(te=dt.hotAttr)==null?void 0:te.name})})]}):(0,G.jsx)("span",{children:"\u5168\u90E8\u8D44\u6E90\u5E93"}),(0,Qd.bJ)()&&(0,G.jsxs)("div",{className:"right-content",children:[(0,G.jsx)(gd.m,{}),(0,G.jsx)(n2.Q,{icon:(0,G.jsx)(S.C,{name:"setting_panel/libPanl/mode/"+nt,size:24}),content:I18N.libPanel.display_mode[nt],direction:"down",onClick:Eo})]})]}),(0,G.jsx)(Wi,{className:E()("muban-panel-scroll-list",{"is-loading":!un}),children:un?(0,G.jsx)("div",{className:"muban-panel-container",children:dt?(0,G.jsx)(Hl,{currentMode:nt,currentLib:dt,keyword:$e,treeData:xn.get((dt==null||(me=dt.hotAttr)==null||(me=me.extInfo)==null?void 0:me.flatKey)||"local")}):(0,G.jsx)(_s,{libMubanTreeMap:xn,isHasMubanInLocal:Co,currentMode:nt,onGotoLib:go,keyword:$e,addedLibList:wo,onRemoveLib:jo})}):(0,G.jsx)(x0.f,{className:"loading"})}),(0,G.jsx)(yo.yP,{type:"vertical",containerRef:{current:document.querySelector(".template-panel-content")},isAutoHideBar:!0})]})};class Ns extends a.PureComponent{componentDidMount(){this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Sl.AG)()}})}componentDidUpdate(K,te,me){var $e;(K==null||($e=K.templates)==null?void 0:$e.length)!==(0,Sl.AG)().length&&this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Sl.AG)()}})}render(){const{keyword:K,layout:te}=this.props;return(0,G.jsx)(S1,{children:(0,G.jsx)(S0.k0,{className:E()("template-panel-content",{right:te==="old_right"}),children:(0,G.jsx)(Ui,{keyword:K})})})}}const Uc=(0,M.Mz)([q.O4,q.PI,q.k3,C.GI,C.AG,q.bP],(v,K,te,me,$e,nt)=>({templates:$e,theme:v,showDragMode:K,isAdsorbentReferenceLine:te,keyword:me,layout:nt})),ic=(0,k.Ng)(v=>Uc(v))(Ns),Fc=v=>{let{keyword:K}=v;const te=(0,k.d4)(q.O4);if(K)return(0,G.jsx)(Nh,{theme:te});const me=$e=>ENV.IS_ON_PREMISES?$e==null?void 0:$e.replace(/<a\b[^>]*>(.*?)<\/a>/gi,""):$e;return(0,G.jsxs)(S0.I1,{children:[(0,G.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_1}),(0,G.jsxs)("div",{className:"content",children:[(0,G.jsx)("p",{dangerouslySetInnerHTML:{__html:me(I18N.Popups.noMaster_tips1)}}),(0,G.jsx)("p",{dangerouslySetInnerHTML:{__html:me(I18N.Popups.noMaster_tips3)}})]}),(0,G.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_2}),(0,G.jsx)("div",{className:"content",children:(0,G.jsx)("p",{dangerouslySetInnerHTML:{__html:me(I18N.Popups.noMaster_tips2)}})})]})},Nh=v=>{let{theme:K}=v;return(0,G.jsxs)(bp.k,{children:[(0,G.jsx)("img",{src:K==="dark"?"/mb-workspace/images/workspace/design/no_icons_dark.png":"/mb-workspace/images/workspace/design/no_icons_light.png"}),(0,G.jsx)("p",{className:"tips",children:I18N.Popups.no_result})]})};class Bu extends a.PureComponent{render(){const{show:K}=this.props;return K?(0,G.jsx)(ic,{}):null}}const Sp=(0,k.Ng)(v=>({show:(0,P.OW)(v)===Xs.lS.Template}))(Bu);var nh=i(63619),B=i(67773),R=i(91210),A=i(89505),u=i(78903);const x=(0,ue.Ay)(Lc).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-13sltcn-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover{background-color:",";}}}&:hover{color:",";.expanded-icon .main{fill:",";}.title{width:185px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}"],v=>12+(v.level-1)*8,v=>v.theme.color_text_L3,v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_proto,v=>v.theme.color_proto,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_proto),b=(0,a.memo)(function v(K){const{assetGroup:te,assetsMap:me,isEditing:$e,editingCid:nt,canEditLibrary:yt,canAddToOrg:dt,width:It,level:un,containerRect:xn,assetActions:gn,assetGroupAction:wo,shouldAuth:vo,isShowTransferOrg:Co,keyword:Eo,currentUserId:go,assetsOpenCids:xo}=K,{cid:jo,subFolder:pa}=te,na=xo.includes(jo),[Ma,Ka]=(0,a.useState)(!1),Fa=Er=>{const{onConfirm:Ya}=wo;Ya(Er,te,()=>{Ma&&MB.notice({text:I18N.Popups.folder_save_success}),Ka(!1)})},{isShowLoading:xr,displayAsset:Tr,isShowAssetList:fi}=(0,a.useMemo)(()=>{const Er=me.get(jo),Ya=(qr,ts)=>ts?qr.filter(Ci=>{let{name:Al}=Ci;return Al.toLowerCase().indexOf(ts.toLowerCase())!==-1}).sort((Ci,Al)=>Al.timestamp-Ci.timestamp):qr.sort((Ci,Al)=>Al.timestamp-Ci.timestamp);let Br,qa,Mr;return vo?(Br=na&&!Er,qa=!Br&&na&&Er&&Ya(Er,Eo),Mr=!Br&&na&&qa.length):(Br=!Er,qa=!Br&&Ya(Er,Eo),Mr=!Br&&qa.length),{isShowLoading:Br,displayAsset:qa,isShowAssetList:Mr}},[vo,na,me,jo,Eo]);(0,a.useEffect)(()=>{const{onLoadData:Er}=wo;if($e&&Ka(!0),!vo)xo.includes(jo)&&Er(jo);else{const{cid:Ya}=te;xo.includes(Ya)&&(me.get(Ya)||Er(Ya))}},[]);const bi=Er=>Er.map(Ya=>(0,G.jsx)(v,{assetGroup:Ya,isEditing:Ya.cid===nt,editingCid:nt,canEditLibrary:yt,canAddToOrg:dt,assetsMap:me,keyword:Eo,width:It,level:un+1,containerRect:xn,assetActions:gn,assetGroupAction:wo,shouldAuth:vo,isShowTransferOrg:Co,currentUserId:go,assetsOpenCids:xo},Ya.cid));return(0,G.jsx)(x,{"data-cid":jo,className:"asset-group-panel",group:te,isExpanded:na,width:It,level:un,isEditing:$e,editingCid:nt,shouldAuth:vo,canEditLibrary:yt,currentUserId:go,isShowTransferOrg:Co,groupAction:wo,isAsset:!0,onConfirm:Fa,children:(0,G.jsxs)(G.Fragment,{children:[xr?(0,G.jsx)(Ds.A,{className:"collapse-loading"}):null,fi?(0,G.jsx)(u.R,{shouldAuth:vo,canEditLibrary:yt,canAddToOrg:dt,assetList:Tr,currentUserId:go,containerRect:na?xn:null,assetActions:gn}):null,pa&&bi(pa)]})})});var T=i(20085);const L=(0,a.memo)(function(K){const{assetList:te,assetMap:me,editingCid:$e,canEditLibrary:nt,canAddToOrg:yt,keyword:dt,currentOrg:It,assetActions:un,assetGroupAction:xn,theme:gn,isOrg:wo,currentUserId:vo,assetsOpenCids:Co}=K,[Eo,go]=(0,a.useState)((0,T.H)(te));return(0,a.useEffect)(()=>{const xo=(0,T.H)(te);go(xo)},[te]),(0,G.jsx)(F1.Z,{id:"group-list-container",children:(0,G.jsx)("div",{className:"group-main",children:(0,G.jsx)(F1.g,{id:"group-list",className:E()("asset-content"),children:xo=>Eo.length>0?Eo.map(jo=>(0,G.jsx)(b,{assetGroup:jo,assetsMap:me,canEditLibrary:nt,canAddToOrg:yt,assetsOpenCids:Co,width:Ts.qv,level:jo.level,isEditing:$e===jo.cid,editingCid:$e,containerRect:xo,assetActions:un,assetGroupAction:xn,keyword:dt,isShowTransferOrg:!!It,currentUserId:vo,shouldAuth:wo},jo.cid)):dt?(0,G.jsx)(W,{theme:gn}):(0,G.jsx)(z,{isOrg:wo})})})})}),z=v=>{const{isOrg:K}=v;return(0,a.useMemo)(()=>{const te=K?I18N.Resources.assetPanel.chooseImg:I18N.Resources.assetPanel.chooseMyImg;let me='<span class="title">'+I18N.Resources.assetPanel.uploadImg+"</span>"+te;return!ENV.IS_MO&&!ENV.IS_ON_PREMISES&&(me+="<a href='/hc/articles/27' target=\"_blank\">"+I18N.Resources.assetPanel.learnMore+"</a>"),(0,G.jsx)(up,{children:(0,G.jsx)("p",{dangerouslySetInnerHTML:{__html:me}})})},[K])},W=()=>(0,G.jsx)(bp.k,{children:(0,G.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),X=(0,M.Mz)([C.M5,J.Ur,C.$L,C.cb,J.qv],(v,K,te,me,$e)=>{const{userAssetsMap:nt,userAssetGroupList:yt}=v;return{userAssetGroupList:yt.sort((It,un)=>It.position-un.position),userAssetsMap:nt,currentScreen:K,localUserAssetsOpenCids:te,isRequestUserAssetGroup:me,canEditLibrary:$e}}),ee=(0,a.memo)(function(K){const te=(0,k.wA)(),{userAssetGroupList:me,userAssetsMap:$e,currentScreen:nt,localUserAssetsOpenCids:yt,isRequestUserAssetGroup:dt}=(0,k.d4)(go=>X(go)),{keyword:It,editingCid:un,theme:xn,currentOrg:gn,currentUser:wo,canEditLibrary:vo}=K,Co=(0,R.B)({...K,dispatch:te,isOrg:!1,popupsName:Xs.lS.Asset,localUserAssetsOpenCids:yt}),Eo=(0,A.c)({...K,dispatch:te,currentScreen:nt,popupsName:Xs.lS.Asset});return(0,a.useEffect)(()=>{dt||(async()=>{await te({type:"entry:load:user:asset:group:list"})})()},[]),(0,G.jsx)(L,{assetList:me,assetMap:$e,assetsOpenCids:yt,editingCid:un,canEditLibrary:!0,canAddToOrg:vo,keyword:It,currentOrg:gn,assetActions:Eo,assetGroupAction:Co,theme:xn,currentUserId:wo==null?void 0:wo.id,isOrg:!1})}),pe=(0,M.Mz)([C.vl,J.Ur,C.i,C.Hl],(v,K,te,me)=>{const{orgAssetsMap:$e,orgAssetGroupList:nt}=v;return{orgAssetGroupList:nt.sort((dt,It)=>dt.position-It.position),orgAssetsMap:$e,currentScreen:K,localOrgAssetsOpenCids:te,isRequestOrgAssetGroup:me}}),ye=(0,a.memo)(function(K){const te=(0,k.wA)(),{orgAssetGroupList:me,orgAssetsMap:$e,currentScreen:nt,localOrgAssetsOpenCids:yt,isRequestOrgAssetGroup:dt}=(0,k.d4)(go=>pe(go)),{keyword:It,editingCid:un,theme:xn,currentOrg:gn,currentUser:wo,canEditLibrary:vo}=K,Co=(0,R.B)({...K,dispatch:te,isOrg:!0,popupsName:Xs.lS.Asset,localOrgAssetsOpenCids:yt}),Eo=(0,A.c)({...K,dispatch:te,isOrg:!0,currentScreen:nt,popupsName:Xs.lS.Asset});return(0,a.useEffect)(()=>{dt||(async()=>{te({type:"entry:load:org:asset:group:list"})})()},[te,dt]),(0,G.jsx)(L,{assetList:me,assetMap:$e,assetsOpenCids:yt,editingCid:un,canEditLibrary:vo,keyword:It,currentOrg:gn,assetActions:Eo,assetGroupAction:Co,theme:xn,currentUserId:wo==null?void 0:wo.id,dispatchPath:"image-panel:set:org-assets-groups",requestAPI:(0,hp.XG)(gn.cid),isOrg:!0})});var Ie=i(88225),Ue=i(7279),Re=i(90144),ze=i(35298);const st=()=>{const v=(0,k.wA)(),K=(0,k.d4)(C._V),te=(0,k.d4)(C.Z1),me=(0,k.d4)(P.p),$e=(0,k.d4)(P.DU);(0,a.useEffect)(()=>{$e||(0,Ue.e)().catch(un=>{console.error("download meta.json failed",un)})},[$e]);const nt=un=>{v({type:"image-panel:update:state",payload:{assetNavIndex:Number(un)}}),(0,Re.Ac)({source:un===0?"\u56FE\u7247":"\u8D34\u7EB8"})},yt=me.length>0,dt=(0,a.useMemo)(()=>[{key:"1",label:I18N.LeftSidePanel.image},{key:"2",label:I18N.LeftSidePanel.image_sticker,disabled:!yt}].filter(un=>!un.disabled),[yt]),It=()=>(0,G.jsx)(ad.S,{});return(0,G.jsxs)(ze.CN,{children:[!te&&(0,G.jsx)(O.Ay,{className:"switch-tab",activeIndex:K,onTabChange:nt,children:dt.map(un=>{let{key:xn,label:gn}=un;return(0,G.jsx)(O.nl,{label:gn},xn)})}),K===0&&(0,G.jsx)(Ie.Z,{activeWord:te,renderLoading:It}),K===1&&(0,G.jsx)(Ue.S,{activeWord:te,renderLoading:It})]})},xt=(0,M.Mz)([C.tl,q.O4,J.wA,J.qv,C.tY,J.X_,J.Pz,J.PL,J.HW,q.PI,q.k3,C.Z_,C.EV],(v,K,te,me,$e,nt,yt,dt,It,un,xn,gn,wo)=>({canEditLibrary:me,editingCid:v,theme:K,collapsePanelSet:$e,scale:nt,canvasRect:yt,rootProject:dt,currentUser:It,currentOrg:te,showDragMode:un,isAdsorbentReferenceLine:xn,assetUploadState:gn,assetUpload:wo}));function Nt(v){const K=(0,k.d4)($e=>xt($e)),{isOrgProject:te,activeIndex:me}=v;return(0,G.jsxs)(G.Fragment,{children:[me===0&&(0,G.jsx)(st,{}),me===1&&(0,G.jsx)(ee,{...K}),te&&me===2&&(0,G.jsx)(ye,{...K})]})}const $t=ue.Ay.div.withConfig({displayName:"styles__StyledProgressBar",componentId:"sc-y7ckqj-0"})(["position:absolute;width:100%;display:flex;align-items:center;.rail{position:absolute;top:13px;left:0;width:100%;height:3px;&::before{content:'';position:absolute;height:100%;left:0;right:0;background:#b0d4fa;border-radius:3px;}}.fill{position:absolute;left:0;width:0;height:100%;background:",";border-radius:3px;transition:width 0.5s ease-in-out;}"],v=>v.theme.color_proto),An=ue.Ay.div.withConfig({displayName:"styles__StyledAssetUploadState",componentId:"sc-y7ckqj-1"})(["position:relative;width:100%;height:32px;display:flex;justify-content:center;align-items:center;p{color:#5b6b73;}","{visibility:hidden;}&.prepare{background:#faf0cb;}&.loading{background:#d3e6fb;","{visibility:visible;}}&.success{background:#ddf2e4;}&.failed{background:#fcdcdc;padding:0 22px;justify-content:flex-start;.image-failed{color:#5b6b73;text-decoration:underline;cursor:pointer;position:relative;padding-left:8px;&:hover{& + .image-zk{display:flex;}}}.times-icon{margin-left:auto;cursor:pointer;color:#5b6b73;}}"],$t,$t),zn=ue.Ay.div.withConfig({displayName:"styles__StyledImageFailedTips",componentId:"sc-y7ckqj-2"})(["display:none;position:absolute;flex-direction:column;bottom:40px;left:5px;min-width:210px;height:107px;padding:16px;background:#fff;border-radius:2px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.15);.tips-mian{font-size:14px;font-weight:600;color:#415058;line-height:20px;margin-bottom:12px;}.tips-item{line-height:20px;margin-bottom:4px;}.asset-failure-list{overflow:hidden;}"]),lo=(0,a.memo)(function(K){const{assetUploadState:te,assetUpload:me,onCloseUpload:$e}=K;if(te==="close")return null;const nt=te==="start"&&me.index===0,yt=te==="start"&&me.index>0,dt=te==="end"&&me.assetUploaderFailure.length===0,It=te==="failure"&&me.assetUploaderFailure.length!==0,un=E()({prepare:nt,loading:yt,success:dt,failed:It}),xn=nt?I18N.LibraryContainer.image_uploading_wait:yt?I18N.LibraryContainer.image_uploading+" "+me.index+" / "+me.indexMax:dt?I18N.LibraryContainer.image_uploaded_ok:I18N.LibraryContainer.image_faild_tips,gn=nt?0:me.index/me.indexMax||0;return(0,G.jsxs)(An,{className:un,children:[(0,G.jsx)("p",{children:xn}),It&&(0,G.jsx)(Sn,{assetFailureList:me.assetUploaderFailure,onClose:$e}),(0,G.jsx)(Qn,{value:gn})]})}),Qn=v=>{let{value:K}=v;return(0,G.jsx)($t,{className:"slider",children:(0,G.jsx)("div",{className:"rail",children:(0,G.jsx)("div",{className:"fill",style:{width:K*100+"%"}})})})},Sn=v=>{let{assetFailureList:K,onClose:te}=v;return(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)("p",{className:"image-failed",children:I18N.LibraryContainer.image_faila_tips1}),(0,G.jsxs)(zn,{className:"image-zk",children:[(0,G.jsx)("p",{className:"tips-mian",children:I18N.LibraryContainer.image_faild}),(0,G.jsx)("div",{className:"asset-failure-list",children:K.map(me=>{const{name:$e}=me;return(0,G.jsx)("p",{className:"tips-item",children:$e},$e)})})]}),(0,G.jsx)(S.C,{className:"times-icon",name:"general/times",onClick:te})]})},Wo=ue.Ay.div.withConfig({displayName:"styles__StyledImagePanel",componentId:"sc-1herk0a-0"})(["height:100%;display:flex;flex:1;flex-direction:column;overflow:hidden;> header{display:flex;align-items:center;padding:16px 10px 8px 12px;}"]),qo=(0,ue.Ay)(od.A).withConfig({displayName:"styles__StyledImageContent",componentId:"sc-1herk0a-1"})(["display:flex;flex:1;justify-content:center;overflow:hidden auto;transition:box-shadow 0.2s ease-in-out;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}"]),ua=(0,M.Mz)([C.tY,C.R4,J.PL,C.Z_,C.EV,J.W4,J.qv],(v,K,te,me,$e,nt,yt)=>{const{is_org_project:dt}=te;return{collapsePanelSet:v,imagePanelNavIndex:K,isOrgProject:dt,assetUploadState:me,assetUpload:$e,currentDesignOptions:nt,canEditLibrary:yt}});function Ea(){const v=(0,k.wA)(),{collapsePanelSet:K,imagePanelNavIndex:te,isOrgProject:me,assetUploadState:$e,assetUpload:nt,canEditLibrary:yt,currentDesignOptions:{isExperience:dt}}=(0,k.d4)(Co=>ua(Co)),[It,un]=(0,a.useState)(!1);(0,a.useEffect)(()=>{un(gn===2)},[]);const xn=(0,a.useMemo)(()=>me?[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources},{key:2,label:I18N.LeftSidePanel.org_resources}]:[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources}],[me]),gn=te>=0&&te<=(xn==null?void 0:xn.length)-1?te:0,wo=Co=>{Co===1&&dt&&MB.global.experienceLoginModalHelper("isSave")||(v({type:"image-panel:update:state",payload:{navIndex:Co}}),un(Co===2))},vo=gn===0||dt;return(0,G.jsxs)(Wo,{className:E()("image-panel-container"),children:[(0,G.jsx)(B.d,{activeIndex:gn,onTabChange:wo,tabList:xn}),!vo&&(0,G.jsx)("header",{children:(0,G.jsx)(ru,{isOrg:It,isImage:!0,canEditLibrary:yt,collapsePanelSet:K,dispatch:v})}),(0,G.jsx)(qo,{className:"image-content",children:()=>(0,G.jsx)(Nt,{isOrgProject:me,activeIndex:gn})}),(0,G.jsx)(lo,{assetUpload:nt,assetUploadState:$e,onCloseUpload:()=>{console.log("must been closed")}})]})}class wa extends a.PureComponent{render(){const{show:K}=this.props;return K?(0,G.jsx)(Ea,{}):null}}const Ja=(0,M.Mz)([P.OW],v=>({show:v===Xs.lS.Asset})),La=(0,k.Ng)(v=>Ja(v))(wa);var Na=i(65791),gr=i(90592),Pi=Object.defineProperty,_r=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,Ws=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,xi=(v,K,te)=>K in v?Pi(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Ai=(v,K)=>{for(var te in K||(K={}))kr.call(K,te)&&xi(v,te,K[te]);if(Ws)for(var te of Ws(K))Fi.call(K,te)&&xi(v,te,K[te]);return v},Rr=(v,K)=>_r(v,ci(K)),Cs=(v,K)=>{var te={};for(var me in v)kr.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Ws)for(var me of Ws(v))K.indexOf(me)<0&&Fi.call(v,me)&&(te[me]=v[me]);return te},Wr=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Cs(te,["size","spin","style"]);const dt=Ai(Ai({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Rr(Ai({ref:K,style:dt},yt),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 13.6667C12 12.1939 13.1939 11 14.6667 11H22.6667L28 16.3333V26.3333C28 27.8061 26.8061 29 25.3333 29H14.6667C13.1939 29 12 27.8061 12 26.3333L12 13.6667Z",fill:"#A069FF"}),a.createElement("path",{d:"M22.6667 14.5556V11L28.0001 16.3333H24.4445C23.4627 16.3333 22.6667 15.5374 22.6667 14.5556Z",fill:"#E8D9FF"}))}),Ti=Object.defineProperty,jl=Object.defineProperties,bs=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,Or=(v,K,te)=>K in v?Ti(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,Ms=(v,K)=>{for(var te in K||(K={}))Dl.call(K,te)&&Or(v,te,K[te]);if(Vs)for(var te of Vs(K))ji.call(K,te)&&Or(v,te,K[te]);return v},Qs=(v,K)=>jl(v,bs(K)),r0=(v,K)=>{var te={};for(var me in v)Dl.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&Vs)for(var me of Vs(v))K.indexOf(me)<0&&ji.call(v,me)&&(te[me]=v[me]);return te},Od=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=r0(te,["size","spin","style"]);const dt=Ms(Ms({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Qs(Ms({ref:K,style:dt},yt),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 11C10.8954 11 10 11.8954 10 13V27C10 28.1046 10.8954 29 12 29H28C29.1046 29 30 28.1046 30 27V13C30 11.8954 29.1046 11 28 11H12Z",fill:"url(#paint0_linear_915_62)"}),a.createElement("path",{opacity:"0.4",d:"M15 13C14.4477 13 14 13.4477 14 14V23C14 23.5523 14.4477 24 15 24H25C25.5523 24 26 23.5523 26 23V14C26 13.4477 25.5523 13 25 13H15Z",fill:"url(#paint1_linear_915_62)"}),a.createElement("path",{d:"M14 15C13.4477 15 13 15.4477 13 16V25C13 25.5523 13.4477 26 14 26H26C26.5523 26 27 25.5523 27 25V18.3V16C27 15.4477 26.5523 15 26 15H24.375H14Z",fill:"#B5D7FF"}),a.createElement("path",{d:"M13 17C12.4477 17 12 17.4477 12 18V25C12 25.5523 12.4477 26 13 26H27C27.5523 26 28 25.5523 28 25V19.7V18C28 17.4477 27.5523 17 27 17H25H13Z",fill:"#F2F8FF"}),a.createElement("foreignObject",{x:"6.5",y:"16.5",width:"27",height:"15"},a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.25px)",clipPath:"url(#bgblur_0_915_62_clip_path)",height:"100%",width:"100%"}})),a.createElement("path",{dataFigmaBgBlurRadius:"2.5",d:"M17.4105 21C17.1453 21 16.8946 20.8946 16.7071 20.7071L15.2929 19.2929C15.1054 19.1054 14.851 19 14.5858 19H10C9.44772 19 9 19.4477 9 20V27C9 28.1046 9.89543 29 11 29H29C30.1046 29 31 28.1046 31 27V22C31 21.4477 30.5582 21 30.0059 21C27.2662 21 19.6616 21 17.4105 21Z",fill:"url(#paint2_linear_915_62)"}),a.createElement("defs",null,a.createElement("clipPath",{id:"bgblur_0_915_62_clip_path",transform:"translate(-6.5 -16.5)"},a.createElement("path",{d:"M17.4105 21C17.1453 21 16.8946 20.8946 16.7071 20.7071L15.2929 19.2929C15.1054 19.1054 14.851 19 14.5858 19H10C9.44772 19 9 19.4477 9 20V27C9 28.1046 9.89543 29 11 29H29C30.1046 29 31 28.1046 31 27V22C31 21.4477 30.5582 21 30.0059 21C27.2662 21 19.6616 21 17.4105 21Z"})),a.createElement("linearGradient",{id:"paint0_linear_915_62",x1:"19.5",y1:"11",x2:"19.5",y2:"28.5",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.175273",stopColor:"#479CFF"}),a.createElement("stop",{offset:"1",stopColor:"#215BCC"})),a.createElement("linearGradient",{id:"paint1_linear_915_62",x1:"19.6358",y1:"10.7026",x2:"19.6291",y2:"27.2083",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.0929332",stopColor:"white"}),a.createElement("stop",{offset:"0.748117",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_915_62",x1:"20",y1:"19",x2:"20",y2:"30.4286",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.015922",stopColor:"#76D6FF",stopOpacity:"0.75"}),a.createElement("stop",{offset:"0.615584",stopColor:"#57B7F8"}),a.createElement("stop",{offset:"0.834691",stopColor:"#44A3F4"}),a.createElement("stop",{offset:"1",stopColor:"#3191F0"}))))});const a2=v=>{let{activeTitleValue:K,scrollToItem:te,scrollContainerRef:me,setActiveTitle:$e}=v;const nt=(0,k.d4)(C.E),yt=(0,k.d4)(C.WG),dt=(0,k.d4)(C.CL),It=(0,k.wA)();(0,a.useEffect)(()=>{K&&It({type:"page-panel:update:state",payload:{findPlatformSubType:K}})},[K,It]);const un=(0,a.useMemo)(()=>(dt.get(nt)||[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]}]).map(Co=>{let{name:Eo,cid:go}=Co;return{label:Eo,value:go}}),[nt,dt]),xn=(0,a.useMemo)(()=>[{label:I18N.Resources.page_panel.mobile,value:"mobile"},{label:I18N.Resources.page_panel.web,value:"web"},{label:I18N.Resources.page_panel.visual,value:"visual"}],[]),gn=(0,a.useCallback)(vo=>{var Co;if(vo===nt)return;me.current.scrollTop=0;const Eo=(Co=dt.get(vo)[0])==null?void 0:Co.cid;It({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:vo,platformSubType:Eo}}),$e(null)},[It,me,nt]),wo=(0,a.useCallback)(vo=>{It({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformSubType:vo}});const Co=un.findIndex(Eo=>{let{value:go}=Eo;return vo===go});setTimeout(()=>{te(Co)},16)},[It,un,te]);return(0,G.jsxs)("div",{className:"platform-group",children:[(0,G.jsx)(Tt.A,{selectedValue:nt,optionList:xn,onChange:gn}),(0,G.jsx)(Tt.A,{selectedValue:yt,optionList:un,onChange:wo})]})},oc=ue.Ay.div.withConfig({displayName:"styles__StyledPageComp",componentId:"sc-8jxtcs-0"})(["display:flex;flex:1;flex-direction:column;overflow:hidden;.template-list-loading-container{padding-top:8px;}.template-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.platform-group{display:flex;flex:1;height:28px;}}.template-list-scroll-container{overflow:hidden overlay;display:flex;flex-direction:column;flex:1;height:100%;scrollbar-width:none;}.bar-vertical{z-index:3;}"],v=>v.theme.color_bg_border_01),Rd=ue.Ay.div.withConfig({displayName:"styles__StyledPageFind",componentId:"sc-8jxtcs-1"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.create-group{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;margin-top:0;button{display:flex;align-items:center;justify-content:center;width:109px;height:28px;border-radius:4px;background:",";&:hover{background:",";}&:active{background:",";}.title{color:",";font-size:12px;font-style:normal;line-height:12px;}&.model-generate-button{svg{width:10px;margin-right:4px;color:",";}}&.hide-ai{width:100%;}&.ai-entry-icon-button{.Tooltip{display:flex;height:100%;align-items:center;}&.is-page{svg{margin-right:4px;}}svg{width:16px;margin-right:2px;}}}}"],v=>v.theme.color_bg_card,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1),Bd=ue.Ay.div.withConfig({displayName:"styles__StyledPageFindList",componentId:"sc-8jxtcs-2"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;position:relative;.first-title{margin:0 12px;display:flex;color:",";.title{width:100%;padding:8px 0;border-bottom:1px solid ",";}&.is-hide{visibility:hidden;height:0;padding:0;}}.second-title{padding:8px 12px;display:flex;color:",";font-weight:500;}.page-scroll-list-container{scrollbar-width:none;}.market-template-masonry-list-container{margin-bottom:8px;&.web,&.visual{.template-item{.img-wrapper{border-radius:8px;}}}}&.mobile{.template-list-loading-container{.template-box{.template-cover,.template-info{border-radius:6px;}}}}.template-list-loading-container{margin-top:12px;}"],v=>v.theme.color_text_L3,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1),Ap=ue.Ay.div.withConfig({displayName:"styles__StyledPageLibrary",componentId:"sc-8jxtcs-3"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.switch-tab{width:24px;height:32px;padding:0;button{&.community{margin-right:12px;}}.indicator{&.community{left:18px;}&.star{left:66px;}&:lang(en){&.community{left:24px;}&.star{left:91px;}}}}.switch-tab{position:absolute;top:57px;left:214px;}.page-library-back{display:flex;align-items:center;color:",";cursor:pointer;margin:0 0 12px 6px;width:fit-content;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}header{padding-top:0;}"],v=>v.theme.color_text_L1);function ym(){const v=(0,k.d4)(C.Le),K=(0,k.d4)(C.E),te=(0,k.d4)(C.WG),me=(0,k.d4)(C.v3),$e=(0,k.d4)(C.CL),nt=(0,k.d4)(Na.xN),yt=(0,k.d4)(C.SH),dt=(0,k.d4)(C.xQ),It=(0,k.d4)(J.PL),un=(0,a.useRef)(null),xn=vc(un),gn=(0,a.useRef)(null),{activeTitleValue:wo,scrollToItem:vo,setItemRef:Co,setActiveTitle:Eo}=(0,Ad.G)(un),go=K+"-"+te,xo=(0,a.useMemo)(()=>me.get(go),[go,me]),jo=(0,a.useMemo)(()=>yt.get(dt),[yt,dt]),pa=(0,a.useMemo)(()=>K==="mobile"?{itemWidth:109,itemHeight:109}:{itemWidth:225,itemHeight:150},[K]),na=(0,k.wA)();(0,a.useEffect)(()=>{if(xn==="up"){if(gn.current){var Er,Ya;(Er=gn.current)==null||Er.classList.add("sticky"),un==null||(Ya=un.current)==null||Ya.classList.add("padding-top-90")}}else{var Br,qa;(Br=gn.current)==null||Br.classList.remove("sticky"),un==null||(qa=un.current)==null||qa.classList.remove("padding-top-90")}},[xn,K]);const Ma=(0,a.useCallback)(async function(Er){if(Er===void 0&&(Er=!1),!jo||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Ya,cid:Br}=jo,qa=Er?{...jo,is_purchased:!0,is_star:!0}:{...jo,is_star:!Ya};na({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[qa.cid,qa]])}}),(!Er||Er&&!Ya)&&await(0,Sl.lU)(Ya,Br)},[jo,na]),Ka=(0,a.useCallback)(()=>Ma(!0),[Ma]),Fa=(0,a.useCallback)((Er,Ya,Br,qa)=>{try{const{policy:Mr,category:qr,title:ts,copyright:Ci,platform:Al}=Br;(0,Jr.Mi)({popupsName:Xs.lS.Page,addType:Ya,source:Jr.Ii.PageFind,category:qr,platform:Al,policy:Mr,templateGroupName:ts,copyright:Ci,name:qa,rootProject:It,esSearchKey:Er})}catch(Mr){console.log(Mr.message)}},[It]),xr=(0,a.useCallback)(Er=>{na({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:Er==null?void 0:Er.cid}})},[na]),Tr=(0,a.useCallback)(Er=>{var Ya;na({type:"modal:open:templateModal",payload:{source:Er}}),wt.U4.protoTemplatePopupClick((Ya=MB)==null||(Ya=Ya.user)==null?void 0:Ya.id,Er==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[na]),fi=(0,a.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,G.jsx)(Wr,{size:40}),onClick:Tr},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,G.jsx)(Od,{size:40}),onClick:Tr}],[Tr]),bi=()=>{na({type:"page-panel:update:state",payload:{pageMode:"library"}}),na({type:"entry:resources:reset:templatePanel:filter"})};return(0,G.jsxs)(Bd,{className:K,children:[(0,G.jsxs)("div",{className:"template-filter-group",children:[(0,G.jsx)(a2,{activeTitleValue:wo,setActiveTitle:Eo,scrollToItem:vo,scrollContainerRef:un}),!ENV.IS_ON_PREMISES&&(0,G.jsx)(l.A,{content:I18N.Resources.page_panel.switch_icon.single,direction:"down",children:(0,G.jsx)(D.A,{name:"left_panel/template/page/single-page-icon",size:24,onClick:bi})})]}),(0,G.jsxs)("div",{className:"bottom-container",children:[(0,G.jsx)(gr.i4,{ref:un,className:"page-scroll-list-container",children:Er=>(0,G.jsx)(G.Fragment,{children:nt?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Da.G,{cardList:fi,ref:gn}),Er&&(0,G.jsx)(G.Fragment,{children:$e.get(K).map((Ya,Br)=>{const qa=me.get(K+"-"+(Ya==null?void 0:Ya.cid));return(0,G.jsxs)("div",{className:"template-list-content",ref:Co(Br),children:[(0,G.jsx)("span",{className:"second-title title","data-key":Ya==null?void 0:Ya.cid,children:Ya==null?void 0:Ya.name}),(0,G.jsx)(np.A,{category:Ga.Gd,marketTemplateItemList:qa,isShowSign:!0,isShowFolderIcon:!0,platform:K,onTrack:Fa,onPaidTemplates:Ka,onOpenFolder:xr,containerRect:Er,isRequsetMktStore:!0})]},Ya==null?void 0:Ya.cid)})})]}):(0,G.jsx)(np.A,{category:Ga.Gd,marketTemplateItemList:xo,isShowSign:!0,isShowFolderIcon:!0,platform:K,onTrack:Fa,onPaidTemplates:Ka,onOpenFolder:xr,containerRect:Er,isFloatPreviewMkt:!1,isRequsetMktStore:!0})})}),(un==null?void 0:un.current)&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:un,isAutoHideBar:!0}),(0,G.jsx)(Hd,{scrollRef:un})]})]})}const oh=(0,a.memo)(ym);var ah=i(60407);function Vc(){const v=(0,k.d4)(C.Le),K=(0,k.d4)(C.E),te=(0,a.useMemo)(()=>K==="mobile"?{itemWidth:109,itemHeight:109}:{itemWidth:225,itemHeight:150},[K]);return v?K?(0,G.jsx)(ah.A,{...te}):null:(0,G.jsx)(Rd,{children:(0,G.jsx)(oh,{})})}var jh=Object.defineProperty,L2=Object.defineProperties,vm=Object.getOwnPropertyDescriptors,pu=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,ih=Object.prototype.propertyIsEnumerable,sh=(v,K,te)=>K in v?jh(v,K,{enumerable:!0,configurable:!0,writable:!0,value:te}):v[K]=te,r2=(v,K)=>{for(var te in K||(K={}))rh.call(K,te)&&sh(v,te,K[te]);if(pu)for(var te of pu(K))ih.call(K,te)&&sh(v,te,K[te]);return v},Dh=(v,K)=>L2(v,vm(K)),Os=(v,K)=>{var te={};for(var me in v)rh.call(v,me)&&K.indexOf(me)<0&&(te[me]=v[me]);if(v!=null&&pu)for(var me of pu(v))K.indexOf(me)<0&&ih.call(v,me)&&(te[me]=v[me]);return te},i2=(0,a.forwardRef)((v,K)=>{var te=v,{size:me,spin:$e,style:nt}=te,yt=Os(te,["size","spin","style"]);const dt=r2(r2({width:me||"var(--x-icon-size, 1em)",height:me||"var(--x-icon-size, 1em)",animation:$e?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),nt);return a.createElement("svg",Dh(r2({ref:K,style:dt},yt),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M7.63647 7C7.63647 6.44772 8.08419 6 8.63647 6H15.3637C15.916 6 16.3637 6.44772 16.3637 7V17.6471C16.3637 17.8025 16.1943 17.8986 16.061 17.8187L12.0001 15.3873L7.93922 17.8187C7.80591 17.8986 7.63647 17.8025 7.63647 17.6471V7Z",fill:"white",stroke:"white",strokeLinejoin:"round"}))});const uu=v=>{let{temp:K,onClickCard:te,onStarTemplate:me}=v;const[$e,nt]=(0,a.useMemo)(()=>K!=null&&K.isMdVipTemplate?["/mb-proto2/images/nav/md_vip.png","art_board/community_resources/md_vip_s"]:K!=null&&K.isVipTemplate?["/mb-proto2/images/nav/mt_vip.png","art_board/community_resources/mt_vip_s"]:["",""],[]);return(0,G.jsxs)(M1,{className:"template-item",onClick:()=>te(K),children:[(0,G.jsx)("img",{src:K.cover,className:"cover"}),(0,G.jsxs)("div",{className:"bottom-wrap",children:[(0,G.jsx)(V0.A,{value:K.title,className:"editable-span",isEditing:!1},K.title),(0,G.jsx)(S.C,{name:"common/expand",className:"expand-icon"})]}),(0,G.jsx)("div",{className:E()("btn-box",{"isStarred ":K.is_star}),onClick:yt=>me(yt,K),children:(0,G.jsx)(l.A,{content:K.is_star?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,G.jsx)(i2,{size:20,className:"star-icon"})})}),nt&&(0,G.jsx)(S.C,{className:"sign short",name:nt,isColorPure:!0}),$e&&(0,G.jsx)("img",{className:"sign long",src:$e})]},K.cid)},M1=ue.Ay.li.withConfig({displayName:"TemplateCard__StyledLi",componentId:"sc-zr5gi1-0"})(["display:flex;padding:4px 4px 0px;flex-direction:column;border-radius:8px;position:relative;width:115px;margin-bottom:4px;cursor:pointer;&:hover{background:",";.bottom-wrap .expand-icon{visibility:visible;}.btn-box{display:flex;}}.btn-box{display:none;position:absolute;width:18px;height:18px;bottom:41px;right:8px;border-radius:4px;align-items:center;justify-content:center;background:",";.star-icon{path{fill:",";stroke:",";}}&.isStarred{background:",";}&:not(.isStarred):hover{background:",";}}img.cover{width:108px;height:76px;border-radius:6px;object-fit:cover;border:1px solid ",";}.sign{height:16px;position:absolute;top:10px;right:10px;&.short{width:16px}}&:hover{.sign.short{visibility:hidden}}&:not(:hover){.sign.long{visibility:hidden}}.bottom-wrap{display:flex;justify-content:space-between;align-items:center;margin:8px 2px;.editable-span{color:",";height:20px;line-height:20px;flex:1;}.expand-icon{visibility:hidden;transform:rotate(-90deg);color:",";margin-top:1px;}}"],v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_slider_hover,v=>v.theme.color_text_btn,v=>v.theme.color_text_btn,v=>v.theme.color_proto,v=>v.theme.color_bg_mask,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L2,v=>v.theme.color_text_L3);var Oh=i(42459);const lh=v=>{let{scrollRef:K}=v;const[te,me]=(0,a.useState)(!1),$e=ja()(()=>{if(!K.current)return;K.current.scrollTop>K.current.offsetHeight?me(!0):me(!1)},100);(0,a.useEffect)(()=>{if(K.current)return K.current.addEventListener("scroll",$e),()=>{var yt,dt;(yt=$e.cancel)==null||yt.call($e),(dt=K.current)==null||dt.removeEventListener("scroll",$e)}},[K,$e]);const nt=()=>{K.current.scrollTop=0};return te?(0,G.jsx)(l.A,{content:"\u6EDA\u52A8\u5230\u9876\u90E8",direction:"up",children:(0,G.jsx)(xm,{onClick:nt,children:(0,G.jsx)(c1.A,{size:24})})}):null},xm=ue.Ay.div.withConfig({displayName:"ScrollTopButton__StyledScrollTopButton",componentId:"sc-dnyxw6-0"})(["width:32px;height:32px;border-radius:50%;border:1px solid ",";background:",";box-shadow:0 4px 10px 0 rgba(0,18,38,0.10);display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:16px;cursor:pointer;z-index:999;svg path{fill:",";}&:hover{svg path{fill:",";}}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_bg_menu,v=>v.theme.color_text_L1,v=>v.theme.color_btn_primary_normal),$c=v=>{let{activeTitleValue:K,activeSecondTitleValue:te,scrollToItem:me}=v;const $e=(0,k.d4)(Na.dr),nt=(0,k.d4)(Na.zA),yt=(0,k.d4)(Na.XA),dt=(0,k.d4)(Na.JI),It=(0,k.wA)();(0,a.useEffect)(()=>{K&&It({type:"page-panel:update:state",payload:{templateLibraryPlatformType:K}})},[K,It]),(0,a.useEffect)(()=>{te&&It({type:"page-panel:update:state",payload:{templateLibraryPlatformSubType:te}})},[te,It]);const un=(0,a.useMemo)(()=>dt.map(gn=>{const wo=yt.get(gn.title)||[];return{label:gn.title,value:gn.title,children:wo.map(vo=>({label:vo,value:vo}))}}),[$e,yt,dt]),xn=(0,a.useCallback)((gn,wo)=>{me(gn.index,(wo==null?void 0:wo.index)||0)},[me]);return(0,G.jsx)("div",{className:"platform-group",children:(0,G.jsx)(Ht,{level1:$e,level2:nt,optionList:un,onChange:xn})})},k0=(0,ue.AH)(["li.template-list-content{color:",";span.title{display:flex;height:32px;padding:8px 12px;font-size:12px;font-weight:500;}ul.template-list{padding:0 8px;flex-wrap:wrap;display:flex;}}"],v=>v.theme.color_text_L1),Mp=ue.Ay.div.withConfig({displayName:"styles__StyledFileComp",componentId:"sc-1lneh49-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;position:relative;.file-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.platform-sub-filter{height:28px;}}.template-list-scroll-container{overflow:hidden overlay;display:flex;flex-direction:column;flex:1;scrollbar-width:none;height:100%;}.bar-vertical{z-index:3;}ul.file-home-template-list{",";}"],v=>v.theme.color_bg_border_01,k0),Hs=ue.Ay.div.withConfig({displayName:"styles__StyledLibraryPageComp",componentId:"sc-17kkemn-0"})(["display:flex;flex:1;flex-direction:column;overflow:hidden;position:relative;li.first-template-title{& > span.title{height:33px;display:flex;align-items:center;margin:0 12px 8px;border-bottom:1px solid ",";color:",";&.is-hide{visibility:hidden;height:0;}}}ul.page-library-template-list{",";}"],v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L3,k0),ch=()=>{const v=(0,k.d4)(Na.JI),K=(0,k.wA)(),te=(0,a.useRef)(null),me=vc(te),$e=(0,a.useRef)(null),{setItemRef:nt,activeTitleValue:yt,activeSecondTitleValue:dt,scrollToItem:It,scrollToSecondItem:un}=(0,Ad.G)(te,{secondQueryName:"li.template-list-content"});(0,a.useEffect)(()=>{if(me==="up"){if($e.current){var Eo,go;(Eo=$e.current)==null||Eo.classList.add("sticky"),te==null||(go=te.current)==null||go.classList.add("padding-top-90")}}else{var xo,jo;(xo=$e.current)==null||xo.classList.remove("sticky"),te==null||(jo=te.current)==null||jo.classList.remove("padding-top-90")}},[me]);const xn=(0,a.useCallback)(Eo=>{K({type:"page-panel:update:state",payload:{libraryCurrentResources:Eo}})},[K]),gn=(0,a.useCallback)(Eo=>{var go;K({type:"modal:open:templateModal",payload:{source:Eo}}),wt.U4.protoTemplatePopupClick((go=MB)==null||(go=go.user)==null?void 0:go.id,Eo==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[K]),wo=(0,a.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,G.jsx)(Wr,{size:40}),onClick:gn},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,G.jsx)(Od,{size:40}),onClick:gn}],[gn]),vo=()=>{K({type:"page-panel:update:state",payload:{pageMode:"single"}}),K({type:"entry:resources:reset:templatePanel:filter"})},Co=async(Eo,go,xo,jo)=>{var pa;if(Eo.stopPropagation(),!go||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:na,cid:Ma}=go;await(0,Sl.lU)(na,Ma);const Ka={is_star:!go.is_star},Fa=[...v],xr=(pa=Fa[xo])==null||(pa=pa.templateList[jo])==null?void 0:pa.list,Tr=(0,Oh.$G)(xr,fi=>fi.cid===go.cid,{...go,...Ka});Fa[xo].templateList[jo].list=Tr,K({type:"page-panel:update:state",payload:{templatePageLibraryList:Fa}})};return(0,G.jsxs)(Hs,{children:[(0,G.jsxs)("div",{className:"template-filter-group",children:[(0,G.jsx)($c,{activeTitleValue:yt,activeSecondTitleValue:dt,scrollToItem:It}),(0,G.jsx)(l.A,{content:I18N.Resources.page_panel.switch_icon.library,direction:"down",children:(0,G.jsx)(D.A,{name:"left_panel/template/page/library-page-icon",size:24,onClick:vo})})]}),(0,G.jsxs)("div",{className:"bottom-container",children:[(0,G.jsxs)("div",{className:"template-list-scroll-container",ref:te,children:[(0,G.jsx)(Da.G,{cardList:wo,ref:$e}),(0,G.jsx)("ul",{children:v.map((Eo,go)=>(0,G.jsxs)("li",{className:"first-template-title",ref:nt(go),children:[(0,G.jsx)("span",{className:E()("title",{"is-hide":go===0},{"show-title":go!==0}),"data-key":Eo.title,children:Eo.title+"\uFF08"+Eo.nums+"\uFF09"}),(0,G.jsx)("ul",{className:"page-library-template-list",children:Eo.templateList.map((xo,jo)=>xo.list.length===0?null:(0,G.jsxs)("li",{className:"template-list-content",children:[(0,G.jsx)("span",{className:"title","data-key":xo.title,children:xo.title}),(0,G.jsx)("ul",{className:"template-list",children:xo.list.map(pa=>(0,G.jsx)(uu,{temp:pa,onClickCard:xn,onStarTemplate:(na,Ma)=>Co(na,Ma,go,jo)},pa.cid))})]},xo.title))})]},Eo.title))})]}),(te==null?void 0:te.current)&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:te,isAutoHideBar:!0}),(0,G.jsx)(lh,{scrollRef:te})]})]})},Rh=()=>{const v=(0,k.d4)(C.zS),K=(0,k.wA)(),te=(0,k.d4)(Na.Lt),me=(0,k.d4)(Na.xN),$e=(0,k.d4)(Na.MM),nt=(0,k.d4)(C.SH),yt=(0,k.d4)(C.xQ),dt=(0,k.d4)(C.CL),It=(0,a.useMemo)(()=>nt.get(yt),[nt,yt]),un=(0,a.useMemo)(()=>{if(te==="single")return It;if(te==="library")return v},[v,It,te]);(0,a.useEffect)(()=>{(async()=>{te==="single"&&!me&&K({type:"entry:resources:set:templatePanel:page:single:init:data"}),te==="library"&&!$e&&K({type:"entry:resources:set:templatePanel:page:library:init:data"})})()},[K,$e,me,te]);const xn=(0,a.useCallback)(Co=>{te==="library"&&K({type:"page-panel:update:state",payload:{libraryCurrentResources:Co}}),te==="single"&&K({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[Co.cid,Co]])}})},[K,te]),gn=(0,a.useCallback)(Co=>{if(!un||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Eo,cid:go}=un,jo=typeof Co=="function"?Co(un):(pa=>({...pa,is_star:!pa.is_star}))(un);xn(jo),(0,Sl.lU)(Eo,go)},[un,xn]),wo=(0,a.useCallback)(()=>{},[]),vo=(0,a.useCallback)(()=>{te==="single"&&K({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:null}}),te==="library"&&xn(null),window.isBackFromLeftTemplateDetail=!0},[K,xn,te]);return un?(0,G.jsx)(Ql.A,{currentResources:un,onBack:vo,onStarTemplates:gn,onPaidTemplates:()=>gn(Co=>({...Co,is_purchased:!0,is_star:!0})),onTrack:wo}):(0,G.jsxs)(oc,{children:[te==="library"&&($e?(0,G.jsx)(ch,{}):(0,G.jsx)(x0.f,{className:"mb-loading"})),te==="single"&&(0,G.jsx)(Vc,{})]})},hu=[{label:"\u63A8\u8350",value:"recommend"},{label:"\u5927\u5382\u8D44\u6E90",value:"resource"},{label:"\u7BA1\u7406\u540E\u53F0",value:"back"},{label:"App",value:"app"},{label:"\u5C0F\u7A0B\u5E8F",value:"mini"},{label:"\u5B98\u7F51",value:"website"},{label:"AI",value:"ai"},{label:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"dashboard"},{label:"HMI",value:"hmi"}],bm=[{label:"\u63A8\u8350",value:"recommend"},{label:"\u5927\u5382\u8D44\u6E90",value:"resource"},{label:"\u5B98\u7F51",value:"website"}],Cm=()=>ENV.IS_ON_PREMISES?bm:hu,Km=v=>{let{activeTitleValue:K,scrollToItem:te}=v;const me=(0,k.d4)(Na.c3),$e=(0,k.wA)();(0,a.useEffect)(()=>{K&&$e({type:"page-panel:update:state",payload:{filePlatformType:K}})},[K,$e]);const nt=yt=>{const dt=hu.findIndex(It=>It.value===yt);setTimeout(()=>{te(dt)},16)};return(0,G.jsx)("div",{className:"file-filter-group",children:(0,G.jsx)(Tt.A,{selectedValue:me,optionList:hu,onChange:nt,shouldOpenOnHover:!0})})};var Vl=i(47424);const wm=v=>{let{onSetItemRef:K,scrollToItem:te}=v;const me=(0,k.d4)(Na.c3),$e=(0,k.d4)(Na.FC),nt=(0,k.d4)(Na.sq),yt=(0,k.wA)(),dt=Cm();(0,a.useEffect)(()=>{(async()=>{if(nt)return;const gn=await(0,Vl.e$)(dt);yt({type:"page-panel:update:state",payload:{fileTemplateList:gn,isLoadedfileData:!0}})})()},[yt,dt,nt]),(0,a.useEffect)(()=>{if(nt){const xn=dt.findIndex(gn=>gn.value===me);setTimeout(()=>{te(xn)},16)}},[nt]);const It=xn=>{yt({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:xn}}})},un=async(xn,gn,wo)=>{if(xn.stopPropagation(),!gn||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:vo,cid:Co}=gn;await(0,Sl.lU)(vo,Co);const Eo={is_star:!gn.is_star},go=[...$e],xo=go[wo].list,jo=(0,Oh.$G)(xo,pa=>pa.cid===gn.cid,{...gn,...Eo});go[wo].list=jo,yt({type:"page-panel:update:state",payload:{fileTemplateList:go}})};return nt?(0,G.jsx)("ul",{className:"file-home-template-list",children:$e.map((xn,gn)=>(0,G.jsxs)("li",{className:"template-list-content",ref:K(gn),children:[(0,G.jsx)("span",{className:"title","data-key":xn.key,children:xn.title}),(0,G.jsx)("ul",{className:"template-list",children:xn.list.map(wo=>(0,G.jsx)(uu,{temp:wo,onClickCard:It,onStarTemplate:(vo,Co)=>un(vo,Co,gn)},wo.cid))})]},xn.key))}):(0,G.jsx)(x0.f,{className:"mb-loading"})},Sm=()=>{const v=(0,a.useRef)(null),K=vc(v),te=(0,a.useRef)(null),{setItemRef:me,activeTitleValue:$e,scrollToItem:nt}=(0,Ad.G)(v),yt=(0,k.wA)();(0,a.useEffect)(()=>{if(K==="up"){if(te.current){var un,xn;(un=te.current)==null||un.classList.add("sticky"),v==null||(xn=v.current)==null||xn.classList.add("padding-top-90")}}else{var gn,wo;(gn=te.current)==null||gn.classList.remove("sticky"),v==null||(wo=v.current)==null||wo.classList.remove("padding-top-90")}},[K]);const dt=(0,a.useCallback)(un=>{var xn;yt({type:"modal:open:templateModal",payload:{source:un}}),wt.U4.protoTemplatePopupClick((xn=MB)==null||(xn=xn.user)==null?void 0:xn.id,un==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[yt]),It=(0,a.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,G.jsx)(Wr,{size:40}),onClick:dt},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,G.jsx)(Od,{size:40}),onClick:dt}],[dt]);return(0,G.jsxs)(Mp,{children:[!ENV.IS_ON_PREMISES&&(0,G.jsx)(Km,{activeTitleValue:$e,scrollToItem:nt}),(0,G.jsxs)("div",{className:"bottom-container",children:[(0,G.jsxs)("div",{className:"template-list-scroll-container",ref:v,children:[(0,G.jsx)(Da.G,{cardList:It,ref:te}),(0,G.jsx)(wm,{onSetItemRef:me,scrollToItem:nt})]}),(v==null?void 0:v.current)&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:v,isAutoHideBar:!0}),(0,G.jsx)(lh,{scrollRef:v})]})]})};var s2=i(60921),dh=i(87332);const mu=v=>{let{navIndex:K,filter:te="all",onSetNavIndex:me,onSetFilter:$e}=v;const[nt,yt]=(0,a.useState)(!1),dt=(0,a.useMemo)(()=>ENV.IS_ON_PREMISES?[{key:"1",label:"\u6536\u85CF"}]:[{key:"1",label:"\u5168\u90E8"},{key:"2",label:"\u6536\u85CF"},{key:"3",label:"\u5DF2\u8D2D"}],[]),It=un=>{yt(un)};return(0,G.jsxs)("div",{className:"me-filter-group",children:[(0,G.jsx)(O.Ay,{activeIndex:K,onTabChange:me,children:dt.map(un=>{let{key:xn,label:gn}=un;return(0,G.jsx)(O.nl,{label:gn},xn)})}),(0,G.jsx)(dh.A,{renderOpener:(0,G.jsx)(l.A,{content:"\u7B5B\u9009",direction:"down",children:(0,G.jsx)(D.A,{name:"left_panel/template/filter/all",size:24,className:E()("filter-icon",te,{active:nt})})}),direction:"down",onClick:It,renderMenu:(0,G.jsx)(Bh,{children:(0,G.jsxs)("ul",{children:[(0,G.jsxs)("li",{className:"MenuItem "+(te==="all"&&"active"),onClick:()=>$e("all"),children:[te==="all"&&(0,G.jsx)(S.C,{name:"toolbar/selected",className:"selected-icon"}),(0,G.jsx)("span",{className:"text",children:"\u5168\u90E8\u7C7B\u578B"})]}),(0,G.jsx)("div",{className:"divider"}),(0,G.jsxs)("li",{className:"MenuItem "+(te==="page"&&"active"),onClick:()=>$e("page"),children:[te==="page"&&(0,G.jsx)(S.C,{name:"toolbar/selected",className:"selected-icon"}),(0,G.jsx)(D.A,{name:"left_panel/template/filter/page",size:24}),(0,G.jsx)("span",{className:"text",children:"\u9875\u9762"})]}),(0,G.jsxs)("li",{className:"MenuItem "+(te==="file"&&"active"),onClick:()=>$e("file"),children:[te==="file"&&(0,G.jsx)(S.C,{name:"toolbar/selected",className:"selected-icon"}),(0,G.jsx)(D.A,{name:"left_panel/template/filter/file",size:24}),(0,G.jsx)("span",{className:"text",children:"\u6587\u4EF6"})]})]})})})]})},Bh=ue.Ay.div.withConfig({displayName:"MeFilter__StyledContextMenu",componentId:"sc-1w6vlqm-0"})(["padding:8px;min-width:140px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";margin-left:47px;li{list-style:none;}li.MenuItem{position:relative;height:28px;padding:0px 12px 0px 8px;display:flex;align-items:center;cursor:pointer;color:",";border-radius:4px;&:hover{background:",";}&:not(.active){padding-left:32px;}.selected-icon{margin-right:12px;margin-left:5px;width:8px;}}.divider{height:1px;margin:8px 0;background-color:",";}"],v=>v.theme.color_bg_white,v=>v.theme.color_text_L1,v=>v.theme.shadow_m,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_border_01);var Am=i(90853);const N2=v=>{let{navIndex:K,filter:te,templateList:me,onUpdateTemplateList:$e,isLoaded:nt,onChangeCurrentResources:yt}=v;const dt=(0,a.useRef)(null),It=(0,k.wA)(),un=(0,a.useMemo)(()=>K===0?(0,s2.N)(me,te):K===1?(0,s2.N)(me.filter(wo=>wo.is_star),te):K===2?(0,s2.N)(me.filter(wo=>wo.is_purchased),te):(0,s2.N)(me,te),[K,te,me]),xn=async(wo,vo)=>{if(wo.stopPropagation(),vo==null?void 0:vo.is_star){const Eo=async go=>{await(0,Sl.lU)(go==null?void 0:go.is_star,go==null?void 0:go.cid);const xo=(0,s2.Z)(go,me);$e(xo)};It({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Resources.unStar.title,isHTML:!0,desc:I18N.Resources.unStar.desc.replace(/%name%/,vo==null?void 0:vo.title),onConfirm:()=>Eo(vo)}}})}else{await(0,Sl.lU)(vo==null?void 0:vo.is_star,vo==null?void 0:vo.cid);const Eo=(0,s2.Z)(vo,me);$e(Eo)}},gn=(0,a.useCallback)(wo=>{if(wo.category==="project_basic"){It({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:wo}}});return}yt(wo)},[It]);return(0,G.jsx)(G.Fragment,{children:un.length===0?nt?(0,G.jsx)(Am.C,{isShowAiButton:!1}):(0,G.jsx)(x0.f,{className:"mb-loading"}):(0,G.jsxs)("ul",{className:"template-lists",ref:dt,children:[un.map(wo=>(0,G.jsxs)("li",{onClick:()=>gn(wo),children:[(0,G.jsx)("img",{src:wo.cover,className:"cover"}),(0,G.jsxs)("div",{className:"template-item-right-content",children:[(0,G.jsx)(V0.A,{value:wo.title,className:"editable-span",isEditing:!1},wo.title),(0,G.jsxs)("div",{className:"template-item-type",children:[wo.is_star&&(0,G.jsx)("span",{className:"star-text",children:"\u5DF2\u6536\u85CF\xA0\xA0"}),wo.is_purchased&&(0,G.jsx)(G.Fragment,{children:wo.download_expired?(0,G.jsxs)(G.Fragment,{children:[wo.is_star?(0,G.jsx)("span",{children:"\xB7\xA0\xA0\u5DF2\u8FC7\u671F"}):(0,G.jsx)("span",{children:"\u5DF2\u8FC7\u671F"}),(0,G.jsx)(l.A,{content:"\u4E0B\u8F7D\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u4E0B\u8F7D",direction:"down",children:(0,G.jsx)(S.C,{name:"common/invalid",size:16,className:"invalid-icon"})})]}):(0,G.jsx)(G.Fragment,{children:wo.is_star?(0,G.jsx)("span",{children:"\xB7\xA0\xA0\u5DF2\u8D2D\u4E70"}):(0,G.jsx)("span",{children:"\u5DF2\u8D2D\u4E70"})})})]})]}),(0,G.jsx)(Gp.X,{isStar:wo.is_star,onClick:vo=>xn(vo,wo)})]},wo.cid)),(dt==null?void 0:dt.current)&&(0,G.jsx)(yo.yP,{type:"vertical",containerRef:dt,isAutoHideBar:!0})]})})},Mm=ue.Ay.div.withConfig({displayName:"styles__StyledMeComp",componentId:"sc-u0bm5r-0"})(["display:flex;flex-direction:column;height:calc(100% - 80px);.me-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;.filter-icon{transform:rotate(90deg);}.nav-label{padding:0;}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}}ul.template-lists{flex:1;display:flex;flex-direction:column;margin:8px;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:126px;height:calc(100% - 126px);}li{height:56px;padding:4px;width:100%;margin-bottom:8px;display:flex;align-items:center;border-radius:8px;cursor:pointer;&:hover{background:",";.star{visibility:visible;}}img.cover{width:64px;height:48px;border-radius:6px;border:1px solid ",";margin-right:12px;}.template-item-right-content{flex:1;max-width:114px;margin-right:12px;display:flex;align-items:center;flex-direction:column;.editable-span{color:",";height:16px;line-height:16px;}.template-item-type{color:",";width:100%;margin-top:4px;display:flex;align-items:center;.invalid-icon{margin-left:2px;&:hover{color:",";}}}}.star{visibility:hidden;}}}"],v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_bg_border_01,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L2),ph=()=>{const v=(0,k.d4)(Na.Eq),K=(0,k.d4)(Na.ru),te=(0,k.d4)(Na.Fi),[me,$e]=(0,a.useState)([]),[nt,yt]=(0,a.useState)(!1),[dt,It]=(0,a.useState)(null),un=(0,k.d4)(C.zw),xn=(0,k.wA)();(0,a.useEffect)(()=>{(async()=>{if(nt)return;const xo=await(0,Vl.Gi)();$e(xo),yt(!0);const jo=xo.find(pa=>pa.cid===un);jo&&It(jo)})()},[xn,nt]),(0,a.useEffect)(()=>{if(!(me!=null&&me.length))return;const go=me.find(xo=>xo.cid===te);go!=null&&go.cid&&It(go)},[te,me,It]);const gn=(0,a.useCallback)(go=>{It(go)},[xn]),wo=(0,a.useCallback)(go=>{if(!dt||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:xo,cid:jo}=dt,na=go?go(dt):(Ka=>({...Ka,is_star:!Ka.is_star}))(dt);gn(na);const Ma=(0,s2.Z)(resources,me);$e(Ma),(0,Sl.lU)(xo,jo)},[dt,xn,gn]),vo=go=>{xn({type:"page-panel:update:state",payload:{meNavIndex:go}})},Co=go=>{xn({type:"page-panel:update:state",payload:{meFilter:go}})},Eo=(0,a.useCallback)(()=>{It(null),xn({type:"page-panel:update:state",payload:{currentStarResourcesCid:""}})},[It,xn]);return dt?(0,G.jsx)(Ql.A,{currentResources:dt,onBack:Eo,onStarTemplates:wo,onPaidTemplates:()=>wo(go=>({...go,is_purchased:!0,is_star:!0}))}):(0,G.jsxs)(Mm,{children:[(0,G.jsx)(mu,{navIndex:v,onSetNavIndex:vo,filter:K,onSetFilter:Co}),(0,G.jsx)(N2,{navIndex:v,filter:K,onUpdateTemplateList:$e,templateList:me,isLoaded:nt,onChangeCurrentResources:gn})]})},Ym=ue.Ay.div.withConfig({displayName:"styles__StyledTemplatePanel",componentId:"sc-1mqrvsq-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.padding-top-90{padding-top:90px;}.mb-loading{width:64px;position:absolute;top:50%;left:50%;margin-top:-32px;margin-left:-32px;}.switch-tab{position:relative;display:flex;height:100%;align-items:center;.label{font-family:PingFang SC;color:",";font-size:12px;display:flex;align-items:center;height:26px;padding:0px 14px;border-radius:4px;background:",";&.active{color:",";background-color:",";svg path{fill:#fff;}}&:active{background:",";color:",";}&:not(.active):hover{background:",";}}button{height:100%;display:flex;align-items:center;}.indicator{position:absolute;left:0px;bottom:0px;height:2px;width:35px;background-color:",";transition:left 0.3s ease-in-out;}}.bottom-container{width:100%;height:100%;position:relative;overflow:hidden;.open-modal-cards-wrap{&.sticky{top:0;}}}.ai-agent-box{height:40px;border-top:1px solid ",";display:flex;align-items:center;padding:0 12px;.ai-agent-btn{cursor:pointer;height:28px;width:100%;background:",";color:",";border-radius:6px;padding:1px;overflow:hidden;.ai-agent-inner{display:flex;align-items:center;justify-content:center;background:",";border-radius:5px;overflow:hidden;}&:hover .ai-agent-inner{background:"," ",";}svg:first-child{margin-right:4px;transform:scale(1.23);transform-origin:center center;}svg:last-child{margin-left:6px;width:47px;height:16px;}}}"],v=>v.theme.color_text_L2,v=>v.theme.color_navigation_hover,v=>v.theme.color_text_link_normal,v=>v.theme.color_bg_tab,v=>v.theme.color_bg_tab,v=>v.theme.color_text_link_normal,v=>v.theme.color_navigation_active,v=>v.theme.color_text_L1,v=>v.theme.color_bg_border_01,v=>v.theme.ai_agent_bg2,v=>v.theme.color_text_L1,v=>v.theme.color_bg_white,v=>v.theme.color_bg_white,v=>v.theme.ai_agent_bg_hov2);var fu=i(78915),gu=i(8228);const pc=(0,M.Mz)([P.OW,Y.r],(v,K)=>{let{isEditingProjectMain:te}=K;return{show:v===Xs.lS.Page&&te}}),yu=()=>{var v;const{show:K}=(0,k.d4)(un=>pc(un)),te=(0,k.d4)(C.rx),me=(0,k.d4)(J.HW),$e=(0,k.wA)();(0,a.useEffect)(()=>{if(me){if(!(0,Sl.kn)(me.created_at))return;MB.commonGuideHelper.tryToShowGuide(Vt.c.PAGE_PANEL)}return()=>{MB.commonGuideHelper.closeGuide(Vt.c.PAGE_PANEL)}},[me]);const nt=(0,a.useMemo)(()=>[{key:"1",label:I18N.Resources.page_panel.page,Comp:Rh},{key:"2",label:I18N.Resources.page_panel.file,disabled:!1,Comp:Sm},{key:"3",label:I18N.Resources.page_panel.me,disabled:!1,Comp:ph}],[]),yt=un=>{$e({type:"page-panel:update:state",payload:{navIndex:un}}),un===0&&$e({type:"entry:resources:reset:templatePanel:filter"})},dt=()=>{$e(fu.GO.updateAIHTMLAgentType("prototyping")),$e(fu.GO.enableAIHTML()),$e(fu.GO.expandAIHTML()),$e(fu.GO.updateAIHTMLSource("designMubanPanelBottom")),MB.commonGuideHelper.hideAllGuides(),wt.U4.AIOpenSourceTrack(gu.SR.AIHTML)};if(!K)return null;const It=(v=nt[te])==null?void 0:v.Comp;return(0,G.jsxs)(Ym,{children:[(0,G.jsx)(B.d,{activeIndex:te,onTabChange:yt,tabList:nt}),It&&(0,G.jsx)(It,{}),!ENV.IS_ON_PREMISES&&(0,G.jsx)("div",{className:"ai-agent-box",children:(0,G.jsx)("div",{className:"ai-agent-btn",onClick:dt,children:(0,G.jsxs)("div",{className:"ai-agent-inner",children:[(0,G.jsx)(S.C,{name:"toolbar/ai",className:"pure-svg-icon",size:26}),I18N.ChatGPT.ai_prototype_component_title,(0,G.jsx)(S.C,{name:"toolbar/ai/agent",className:"pure-svg-icon agent-icon"})]})})}),(0,G.jsx)(so.R,{})]})};var Q0=i(66553),J0=i(30719);class Ud extends a.PureComponent{render(){const{show:K}=this.props;return K?(0,G.jsx)(Q0.A,{id:"popups-"+Xs.lS.History+"-panel",className:"popups-panel",children:(0,G.jsx)(J0.O,{})}):null}}const vu=(0,M.Mz)([P.SE],v=>({show:v})),Uu=(0,k.Ng)(v=>vu(v))(Ud);var xu=i(15572);const Fu=v=>K=>v(K);var Vu=i(49439),Y1=i(5010);const uh=ue.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownOptionDiv",componentId:"sc-v8z8h3-0"})(["&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0 10px;margin:1px 0;background-color:transparent;color:",";cursor:pointer;border-radius:4px;&:hover{background-color:",";}&.active{background-color:",";}&.disabled{cursor:not-allowed;opacity:0.3;background-color:unset!important;}}"],v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_hover),E0=v=>{const{disabled:K,value:te,preventDefault:me=!0,active:$e,children:nt,title:yt,showTitle:dt,supTitle:It,widget:un,onClick:xn,onNativeClick:gn}=v,wo=(0,a.useCallback)(vo=>{if(me&&vo.preventDefault(),vo.stopPropagation(),K)return;xn&&xn(te),gn&&gn(vo);const Co=Y1.Mh[It];(0,Y1.Uz)({operation_type:Co||Y1.P6[te],widget:un==null?void 0:un.hotAttr})},[K,xn,te,gn,un,It]);return(0,G.jsx)(uh,{className:E()("draft-toolbar-dropdown-option",{active:$e,disabled:K}),onClick:wo,children:dt?(0,G.jsx)(l.A,{content:yt,direction:"down",distance:12,children:nt}):nt})},yd=ue.Ay.div.withConfig({displayName:"styles__StyledMindThemeTriggerContainer",componentId:"sc-fg56ub-0"})(["width:42px;padding:0;margin-right:5px;.icon.floating_toolbar-mind-theme{width:14px;height:14px;path{fill:none;stroke:",";}circle{fill:",";}}"],v=>v.theme.color_text_L1,v=>v.theme.color_text_L1),km=ue.Ay.div.withConfig({displayName:"styles__StyledMindCard",componentId:"sc-fg56ub-1"})(["&.theme-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.img-container{width:110px;height:82px;border-radius:4px;border:1px solid ",";position:relative;box-sizing:content-box;background-color:",";img{width:100%;border-radius:4px;}.frame{position:absolute;border-radius:6px;pointer-events:none;inset:-2px;}}.theme-title{margin-top:4px;}}"],v=>v.theme.color_bg_border_02,v=>v.theme.color_text_btn),Em=ue.Ay.div.withConfig({displayName:"styles__StyledMindThemeOptionContainers",componentId:"sc-fg56ub-2"})(["&.mind-theme-options{display:grid;grid-row-gap:8px;grid-column-gap:16px;border-radius:8px;padding:20px;grid-template-columns:repeat(2,110px);.draft-toolbar-dropdown-option{width:110px;height:103px;padding:0;margin:0;&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}"],v=>v.theme.color_proto);class bu extends a.PureComponent{render(){const{config:K,dropdownPosition:te,widget:me,onChange:$e}=this.props,{title:nt,icon:yt,className:dt,options:It}=K,{hotAttr:{theme:un}}=me;return(0,G.jsx)(Vu.A,{title:nt,top:te==="bottom"?40:-260,left:-29,closeOnContentClick:!0,trigger:(0,G.jsxs)(yd,{className:"trigger-container",children:[(0,G.jsx)("div",{className:"icon",children:(0,G.jsx)(S.C,{name:yt,className:dt})}),(0,G.jsx)("div",{className:"trigger",children:(0,G.jsx)(S.C,{name:"draft/tri-drop",className:"tri-drop"})})]}),children:(0,G.jsx)(Em,{className:"content-container mind-theme-options",children:It.map((xn,gn)=>{let{theme:wo,src:vo,title:Co}=xn;return(0,G.jsx)(E0,{value:wo,active:un===wo,title:"",supTitle:Co,widget:me,onClick:$e,children:(0,G.jsx)(Wu,{src:vo,title:Co})},gn)})})})}}const Wu=v=>{let{src:K,title:te}=v;return(0,G.jsxs)(km,{className:"theme-container",children:[(0,G.jsxs)("div",{className:"img-container",children:[(0,G.jsx)("img",{src:"/mb-proto2/images/floatingToolbar/mind_v1/"+K+((0,Kd.k)()?"":"_en")+".png",alt:""}),(0,G.jsx)("span",{className:"frame"})]}),(0,G.jsx)("span",{className:"theme-title",children:te})]})};var Cu=i(4648),Im=i(15186),q0=i(62587),Tm=i(63986),_m=i.n(Tm);const Uh=ue.Ay.div.withConfig({displayName:"styles__StyledMindBgColorTriggerContainer",componentId:"sc-1e0e3hw-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;circle{fill:none;}mask{circle{fill:#fbfbfb;}}}}"]),hh=ue.Ay.div.withConfig({displayName:"styles__StyledMindBgColorContainer",componentId:"sc-1e0e3hw-1"})(["width:","px;height:","px;border-radius:50%;border-width:1px;border-color:rgba(102,102,102,0.3);border-style:solid;background:",";position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&.dark{border-color:","}"],v=>v.size||14,v=>v.size||14,v=>v.color?v.color:"unset",v=>v.color==="#191919"?"#606060":"rgba(102, 102, 102, 0.3)"),Fh=ue.Ay.div.withConfig({displayName:"styles__StyledMindBgColorOptionContainers",componentId:"sc-1e0e3hw-2"})(["width:150px;padding:20px 13px;.color-option-container{width:122px;display:grid;grid-template-columns:repeat(auto-fill,18px);grid-row-gap:5px;grid-column-gap:8px;.icon.noSetColor{width:18px;circle{fill:none;}&.dark{circle,path{stroke:#606060;}}}.draft-toolbar-dropdown-option{width:18px;height:18px;padding:0;margin:0;position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}.border-style-option-container{display:grid;align-items:center;justify-content:center;grid-template-columns:repeat(3,33.33%);background:",";width:124px;padding:0 2px;height:24px;border-radius:4px;.border-style-option{display:flex;align-items:center;justify-content:center;height:20px;border-radius:4px;cursor:pointer;.icon{width:16px;}&.selected{background:",";box-shadow:0 2px 4px rgba(0,0,0,0.09);&.dark{box-shadow:0 2px 3px rgba(0,0,0,0.15);}}}}.border-width-container{margin-top:14px;margin-bottom:15px;width:122px;display:flex;align-items:center;justify-content:space-between;.left{display:flex;align-items:center;justify-content:center;.icon{width:13px;margin-right:4px;}}.right{width:50px;}.bdr-input{width:54px;height:28px;border-radius:4px;}}"],v=>v.theme.color_bg_select01,v=>v.theme.color_proto,v=>v.theme.color_background_icon_hover2,v=>v.theme.color_bg_white);class Vh extends a.Component{constructor(){super(...arguments),(0,Nl.A)(this,"$ref",null),(0,Nl.A)(this,"setDropdownRef",K=>{this.$ref=K}),(0,Nl.A)(this,"toggleColor",K=>{const te=(0,q0.zX)(K);this.props.onChange({fillIsVisible:!0,fill:"solid",solidColor:te}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,Nl.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{fill:K}},onChange:te}=this.props;te({...K,fillIsVisible:!1})}),(0,Nl.A)(this,"handleChangeColor",K=>{const{onChange:te}=this.props;te({...K,fillIsVisible:!0})})}shouldComponentUpdate(K,te,me){return K.widget.key!==this.props.widget.key||!_m()(K.widget.hotAttr.fill,this.props.widget.hotAttr.fill)}render(){const{config:K,dropdownPosition:te,widget:me,onOpenColorPanel:$e,onCloseColorPanel:nt}=this.props,{colors:yt}=K,{hotAttr:{fill:dt,fill:{fillIsVisible:It,solidColor:un}}}=me,xn=(0,Im.t0)(un);return(0,G.jsx)(Vu.A,{ref:this.setDropdownRef,top:te==="bottom"?40:-93,left:-61,closeOnContentClick:!1,title:K.title,trigger:(0,G.jsx)(Uh,{className:"trigger-container",children:It?(0,G.jsx)(hh,{color:xn}):(0,G.jsx)(S.C,{name:"floating_toolbar/mind/bg/transparent",className:"noSetColor"})}),children:(0,G.jsx)(Fh,{className:"content-container mind-bgColor-options",children:(0,G.jsxs)("div",{className:"color-option-container",children:[(0,G.jsxs)(E0,{value:"",title:"",active:!It,onClick:this.handleVisibleChange,children:[(0,G.jsx)(S.C,{name:"floating_toolbar/mind/noSetColor",className:"noSetColor"}),(0,G.jsx)("span",{className:"frame"})]}),yt.map((gn,wo)=>{const vo=(0,q0.dT)(un).solidColor,Co=(0,q0.dT)(gn).solidColor;return(0,G.jsx)(E0,{value:gn,active:It&&vo===Co,title:"",widget:me,onClick:this.toggleColor,children:(0,G.jsx)(hh,{size:18,color:gn,children:(0,G.jsx)("span",{className:"frame"})})},wo)}),(0,G.jsx)(Cu.R_,{attr:"solidColor",supAttr:"fill",color:dt,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeColor,onOpenColorPanel:$e,onCloseColorPanel:nt,canOpenLib:!1})]})})})}}var mh=i(27660),Xm=i(5649),Pm=i(66339),fh=i(36518);const wu=(0,q0.zX)(fh.fm.color_bg_white.value_light),I0=(0,q0.zX)(fh.fm.color_bg_white.value_dark),gh=v=>{const{borderColor:K,configTheme:te}=v,me=(0,q0.dT)(K).solidColor;return te===Ts.Sx.LIGHT&&me===wu||te===Ts.Sx.DARK&&me===I0?"block":"none"},l2=ue.Ay.div.withConfig({displayName:"styles__StyledMindStrokeTriggerContainer",componentId:"sc-1ormd06-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;path{fill:#f5f5f5;}g{path{fill:#9fa0a4;}}}&.mind-node-stroke{margin-right:0;}}"]),Hu=ue.Ay.div.withConfig({displayName:"styles__StyledMindStrokeDiv",componentId:"sc-1ormd06-1"})(["width:14px;height:14px;border-radius:50%;border-width:3px;border-color:",";border-style:",";position:relative;&::after{content:'';display:",";width:8px;height:8px;position:absolute;top:0;left:0;border:1px solid ",";border-radius:50%;}&::before{content:'';display:",";width:14px;height:14px;position:absolute;top:-3px;left:-3px;border:1px solid ",";border-radius:50%;}"],v=>v.borderColor,v=>v.bdrStyle,v=>gh(v),v=>v.configTheme===Ts.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)",v=>gh(v),v=>v.configTheme===Ts.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)"),Gu=(0,mh.R)(()=>[{label:(0,G.jsx)(S.C,{name:"floating_toolbar/mind/bs_solid"}),value:"solid"},{label:(0,G.jsx)(S.C,{name:"floating_toolbar/mind/bs_dotted"}),value:"dashed"},{label:(0,G.jsx)(S.C,{name:"floating_toolbar/mind/bs_dashed"}),value:"dotted"}]);class k1 extends a.Component{constructor(){super(...arguments),(0,Nl.A)(this,"$ref",null),(0,Nl.A)(this,"setDropdownRef",K=>{this.$ref=K}),(0,Nl.A)(this,"toggleColor",K=>{const{widget:{hotAttr:{border:te}},onChange:me}=this.props,$e=(0,q0.zX)(K);me({...te,bdrIsVisible:!0,bdrColor:$e}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,Nl.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{border:K}},onChange:te}=this.props;te({...K,bdrIsVisible:!1})}),(0,Nl.A)(this,"handleChangeMore",K=>{const{widget:{hotAttr:{border:te}},onChange:me}=this.props;me({...te,bdrIsVisible:!0,bdrColor:K})}),(0,Nl.A)(this,"handleTabChange",K=>{const{widget:{hotAttr:{border:te}},onChange:me}=this.props;me({...te,bdrStyle:K})}),(0,Nl.A)(this,"handleChangeBorder",(K,te)=>{const{widget:{hotAttr:{border:me}},onChange:$e}=this.props;$e({...me,[te]:K})})}shouldComponentUpdate(K,te,me){return K.widget.key!==this.props.widget.key||!_m()(K.widget.hotAttr.border,this.props.widget.hotAttr.border)}render(){const{config:K,dropdownPosition:te,widget:me,theme:$e,onOpenColorPanel:nt,onCloseColorPanel:yt}=this.props,{colors:dt,title:It,className:un}=K,{hotAttr:{border:{bdrIsVisible:xn,bdrColor:gn,bdrStyle:wo,bdrWidth:vo}}}=me,Co=(0,Im.t0)(gn),Eo=Gu();return(0,G.jsx)(Vu.A,{ref:this.setDropdownRef,top:te==="bottom"?40:-168,left:-61,closeOnContentClick:!1,title:K.title,trigger:(0,G.jsx)(l2,{className:E()("trigger-container",un),children:xn?(0,G.jsx)(Hu,{borderColor:Co,bdrStyle:wo,configTheme:$e}):(0,G.jsx)(S.C,{name:"floating_toolbar/mind/stroke/transparent",className:"noSetColor"})}),children:(0,G.jsxs)(Fh,{className:"content-container mind-bgColor-options mind-stroke-options",children:[(0,G.jsx)("div",{className:"border-style-option-container",children:Eo.map(go=>{let{label:xo,value:jo}=go;return(0,G.jsx)("div",{className:E()("border-style-option",{selected:wo===jo},$e),onClick:()=>this.handleTabChange(jo),children:xo},jo)})}),(0,G.jsxs)("div",{className:"border-width-container",children:[(0,G.jsxs)("div",{className:"left",children:[(0,G.jsx)(S.C,{name:"floating_toolbar/mind/stroke"}),(0,G.jsx)("span",{children:It})]}),(0,G.jsx)("div",{className:"right",children:(0,G.jsx)(Xm.A,{className:"bdr-input",attr:"bdrWidth",value:vo,optionList:Pm.xq,onConfirm:this.handleChangeBorder})})]}),(0,G.jsxs)("div",{className:"color-option-container",children:[(0,G.jsxs)(E0,{value:"",title:"",active:!xn,onClick:this.handleVisibleChange,children:[(0,G.jsx)(S.C,{name:"floating_toolbar/mind/noSetColor",className:E()("noSetColor",$e)}),(0,G.jsx)("span",{className:"frame"})]}),dt.map((go,xo)=>{const jo=(0,q0.dT)(gn).solidColor,pa=(0,q0.dT)(go).solidColor;return(0,G.jsx)(E0,{value:go,active:xn&&jo===pa,title:"",widget:me,onClick:this.toggleColor,children:(0,G.jsx)(hh,{className:$e,size:18,color:go,children:(0,G.jsx)("span",{className:"frame"})})},xo)}),(0,G.jsx)(Cu.R_,{attr:"bdrColor",color:gn,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeMore,onOpenColorPanel:nt,onCloseColorPanel:yt,canOpenLib:!1})]})]})})}}var j2=i(34697),yh=i(96427);const zh=v=>[{theme:j2.dr.DEFAULT,src:"default",title:v.FloatingToolbar.Mind.themeSelect.default},{theme:j2.dr.RAINBOW,src:"rainbow",title:v.FloatingToolbar.Mind.themeSelect.rainbow},{theme:j2.dr.RETRO,src:"retro",title:v.FloatingToolbar.Mind.themeSelect.retro},{theme:j2.dr.YOUTH,src:"youth",title:v.FloatingToolbar.Mind.themeSelect.youth},{theme:j2.dr.CLASSICAL,src:"classical",title:v.FloatingToolbar.Mind.themeSelect.classical},{theme:j2.dr.DARK,src:"dark",title:v.FloatingToolbar.Mind.themeSelect.dark}],Qm=Fu(v=>({controlConfig:[{component:bu,styleConfig:{inDropdown:!0,icon:"floating_toolbar/mind/theme",className:"floating_toolbar-mind-theme",title:v.FloatingToolbar.Mind.theme,options:zh(v)},getMiddleProps:K=>{const{theme:te,widget:me,refresh:$e,dispatch:nt}=K;return{theme:te,onChange:dt=>{nt({type:"entry:widget:change",payload:{flatChgList:[{key:me.key,hotAttr:{theme:dt}}]}}),(0,yh.h)("\u4FEE\u6539\u4E3B\u9898"),$e()}}}},{component:Vh,styleConfig:{inDropdown:!0,title:v.FloatingToolbar.Mind.bgColor,colors:["#ffffff","#e6e6e6","#ff9e93","#9dc4ff","#54d691","#daa3ff","#fdd143","#ff9e47"]},getMiddleProps:K=>{const{widget:te,refresh:me,dispatch:$e}=K;return{onChange:yt=>{$e({type:"entry:widget:change",payload:{flatChgList:[{key:te.key,hotAttr:{fill:yt}}]}}),(0,yh.h)("\u4FEE\u6539\u80CC\u666F\u8272"),me()}}}},{component:k1,styleConfig:{inDropdown:!0,title:v.FloatingToolbar.Mind.stroke,className:"mind-node-stroke",colors:["#191919","#666666","#ffffff","#1684fc","#00A056","#9B33E1","#E96200","#EC4954"]},getMiddleProps:K=>{const{widget:te,theme:me,refresh:$e,dispatch:nt}=K;return{theme:me,onChange:dt=>{nt({type:"entry:widget:change",payload:{flatChgList:[{key:te.key,hotAttr:{border:dt}}]}}),(0,yh.h)("\u4FEE\u6539\u63CF\u8FB9"),$e()}}}}]})),Lm=ue.Ay.div.withConfig({displayName:"styles__StyledMindPanel",componentId:"sc-1t93uac-0"})(["display:flex;.mind-content-wrap{display:flex;ul{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:8px;}li.mind-option{width:110px;height:103px;margin-bottom:8px;&:nth-child(odd){margin-right:8px;}.img-container{width:100%;height:82px;}&:hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}}}"]);class Nm extends a.PureComponent{constructor(){super(...arguments),(0,Nl.A)(this,"handleMouseDown",(K,te)=>{var me;const{showDragMode:$e,isAdsorbentReferenceLine:nt,canvasRect:yt,scale:dt}=this.props,It=(me=document.getElementById("popups-mind-panel"))==null?void 0:me.getBoundingClientRect(),un=(0,Yd.aU)()[te];(0,Z0.ow)({e:K,template:un,doNotCreateRect:It,canvasRect:yt,scale:dt,showDragMode:$e,isAdsorbentReferenceLine:nt,callback:()=>{(0,Jr.gJ)("\u62D6\u62FD\u521B\u5EFA")}})}),(0,Nl.A)(this,"handleCreate",async(K,te)=>{const me=(0,Yd.aU)()[te];await(0,Z0.lc)(K,me),(0,Jr.gJ)("\u53CC\u51FB\u521B\u5EFA")})}render(){return(0,G.jsx)(Lm,{className:"mind-content-panel",children:(0,G.jsx)("div",{className:"mind-content-wrap",children:(0,G.jsx)("ul",{children:zh(I18N).map((K,te)=>{let{src:me,title:$e}=K;return(0,G.jsx)("li",{className:"mind-option",onDoubleClick:nt=>this.handleCreate(nt,te),onMouseDown:nt=>this.handleMouseDown(nt,te),children:(0,G.jsx)(Wu,{src:me,title:$e})},te)})})})})}}const E1=(0,M.Mz)([P.OW,q.PI,q.k3,J.Pz,J.X_],(v,K,te,me,$e)=>({currentPopupPanel:v,showDragMode:K,isAdsorbentReferenceLine:te,canvasRect:me,scale:$e})),uc=(0,k.Ng)(v=>E1(v))(Nm);class Su extends a.PureComponent{render(){const{show:K}=this.props;return K?(0,G.jsx)(uc,{}):null}}const Zu=(0,M.Mz)([P.OW],v=>({show:v===Xs.lS.Mind})),Wh=(0,k.Ng)(v=>Zu(v))(Su);var Hh=i(42402),Ku=i(24374);const Gh=ue.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-iw79iw-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}"],v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L3,v=>v.theme.color_bg_canvas,v=>v.theme.color_bg_canvas,v=>v.theme.color_text_L1,v=>v.theme.color_text_L3,v=>v.theme.color_text_L2),vh=ue.Ay.div.withConfig({displayName:"styles__StyledFlowPanelContent",componentId:"sc-iw79iw-1"})(["flex:1;width:calc(100% - 2px);overflow-x:hidden;overflow-y:auto;padding-bottom:1vh;.basic-list{display:flex;flex-flow:row wrap;padding:12px 4px 0 12px;margin-top:8px;}"]),jm=(0,M.Mz)([J.PL,J.Ur,q.PI,q.k3,P.B8],(v,K,te,me,$e)=>({rootProject:v,screenMeta:K,showDragMode:te,isAdsorbentReferenceLine:me,popupsPanelName:$e}));function $(){const{rootProject:v,screenMeta:K,showDragMode:te,isAdsorbentReferenceLine:me,popupsPanelName:$e}=(0,k.d4)(yt=>jm(yt)),nt=(0,k.wA)();return(0,G.jsx)(vh,{children:(0,G.jsx)("div",{className:"basic-list",style:{width:Ts.qv},children:Yd.v0.map(yt=>(0,G.jsx)(Ku.Y,{screenMeta:K,rootProject:v,type:yt.type,name:yt.name,icon:yt.svg_icon,showDragMode:te,isAdsorbentReferenceLine:me,popupsPanelName:$e,source:Jr.ol.BuiltPanel,dispatch:nt},yt.name))})})}class U extends a.PureComponent{render(){const{show:K}=this.props;return K?(0,G.jsx)(Gh,{children:(0,G.jsx)($,{})}):null}}const H=(0,M.Mz)([P.OW],v=>({show:v===Xs.lS.Flow})),ae=(0,k.Ng)(v=>H(v))(U),de=ue.Ay.div.withConfig({displayName:"styles__StylesAIComponentListPanel",componentId:"sc-1d7xjdj-0"})(["width:100%;padding:0 12px 25px 12px;overflow:auto;height:100%;&:lang(en){height:calc(100% - 44px);}&::-webkit-scrollbar{width:4px;height:4px;}.section-title{font-weight:400;font-size:12px;line-height:16px;color:",";margin-top:20px;}"],v=>v.theme.color_text_L2);class ge extends a.PureComponent{render(){const{openAIModal:K,openAIComponentCreateMode:te}=this.props;return(0,G.jsx)(de,{children:(0,w0.UP)().map((me,$e)=>(0,G.jsxs)("div",{children:[(0,G.jsx)("div",{className:"section-title",children:me.title}),me.items.map((nt,yt)=>{const{label:dt}=nt,It=dt===w0.Tq?te:K;return(0,G.jsx)(id,{item:nt,onSelect:It},yt)})]},$e))})}}var le=i(44007),Ee=i(21337),Pe=i(46723);const Fe=ue.Ay.div.withConfig({displayName:"styles__StylesAIContentPanel",componentId:"sc-1ni4k55-0"})(["width:100%;display:flex;flex-direction:column;height:100%;.ai-panel-header{height:50px;min-height:50px;align-items:center;justify-content:space-between;padding:0 9px 0 15px;border-bottom:1px solid ",";position:relative;display:flex;.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}}.ai-labels-content{display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:start;padding:0px 7px 10px 7px;.ai-label{width:68px;line-height:24px;margin-top:10px;margin-left:8px;font-size:12px;text-align:center;border-radius:4px;color:",";border:1px solid ",";cursor:pointer;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],v=>v.theme.color_background_icon_hover,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1,v=>v.theme.color_background_icon_hover,v=>v.theme.color_background_icon_active),Ke=ue.Ay.div.withConfig({displayName:"styles__StylesAISwitchBar",componentId:"sc-1jqe9tx-0"})(["width:100%;margin-top:12px;padding:0 12px;.switch-content{height:32px;background:",";border-radius:8px;padding:4px;display:flex;width:100%;align-items:center;position:relative;z-index:0;.ai-switch-bg{position:absolute;width:calc(50% - 4px);top:4px;left:4px;height:24px;transition:0.3s;box-shadow:0px 1.11697px 3.35092px rgba(0,0,0,0.2);border-radius:6px;background:",";z-index:-1;&.select-chat{left:50%;}}.ai-switch-item{width:50%;display:flex;justify-content:center;font-size:12px;color:#999999;cursor:pointer;height:100%;align-items:center;svg{width:14px;margin-right:4px;&.isDark{path{fill:url(#paint_linear_1);}}&.no-select{path{fill:#999999;}}}&.selected{font-weight:500;span{background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}}}"],v=>v.theme.color_background_AIPannel_component_item,v=>v.theme.color_background_AI_switch,v=>v.theme.color_AI_switch_gradient_start,v=>v.theme.color_AI_switch_gradient_end),ct=v=>{let{switchIsChat:K,theme:te,updateSwitchIsChat:me}=v;const $e=te==="dark",nt=(0,a.useCallback)(dt=>{me&&me(dt)},[me]),yt=a.useMemo(()=>[{select:!K,icon:"chatGPT/ai-switch-left",title:I18N.ChatGPT.ai_create},{select:K,icon:"chatGPT/ai-switch-right",title:I18N.ChatGPT.ai_chat}],[K]);return(0,G.jsx)(Ke,{children:(0,G.jsxs)("div",{className:"switch-content",children:[(0,G.jsx)("div",{className:E()("ai-switch-bg",K&&"select-chat")}),yt.map((dt,It)=>(0,G.jsxs)("div",{className:E()("ai-switch-item",dt.select&&"selected"),onClick:()=>nt(It===1),children:[(0,G.jsx)(xp.C,{className:E()(!dt.select&&"no-select",$e&&"isDark"),name:dt.select,isColorPure:!0}),(0,G.jsx)("span",{children:dt.title})]},It))]})})},vt=a.memo(ct);class Ft extends a.PureComponent{constructor(){super(...arguments),(0,Nl.A)(this,"handleUpdateAIPoints",K=>{const{commonData:{user:te,org:me,project:$e},actions:{updateCurrentOrg:nt,updateCurrentUser:yt}}=this.props;$e.is_org_project&&me?nt({org:Object.assign(me,{ai_points:K})}):yt({user:Object.assign(te,{ai_points:K})})})}async componentDidMount(){const{commonData:{user:K,org:te}}=this.props;await(0,Pe.Rn)({user:K,org:te,onUpdateAIPoints:this.handleUpdateAIPoints})}render(){const{commonData:{user:K,org:te,project:me,theme:$e,switchIsChat:nt,showHeadSwitch:yt},actions:{openAIModal:dt,updateSwitchIsChat:It,openAIComponentCreateMode:un}}=this.props;return(0,G.jsxs)(Fe,{children:[(0,G.jsx)(Ee.A,{isHeaderPanel:!0,user:K,org:te,project:me}),yt&&(0,G.jsx)(vt,{switchIsChat:nt,theme:$e,updateSwitchIsChat:It}),nt?(0,G.jsx)(le.A,{...this.props}):(0,G.jsx)(ge,{openAIModal:dt,openAIComponentCreateMode:un})]})}}const pn=v=>{const K=v();return(0,G.jsx)(Ft,{...K})};var bn=i(88670),to=i(5209),Po=i(21677),fo=i(18501);const Ho=v=>{const{show:K,currentEditorMode:{isEditingProjectMain:te},user:me,org:$e,project:nt,theme:yt,switchIsChat:dt,dispatch:It}=v,[un,xn]=(0,a.useState)((0,G.jsx)(G.Fragment,{})),gn=(0,a.useMemo)(()=>({user:me,org:$e,project:nt,theme:yt,switchIsChat:dt}),[$e,nt,me,yt,dt]),wo=(0,a.useMemo)(()=>({openAIModal:Co=>{It({type:bn.X.AIOpenModal,payload:Co}),(0,Po.Z)(Co==null?void 0:Co.type)},openAIComponentCreateMode:Co=>It({type:bn.X.AIComponentCreateMode,payload:Co}),updateIsInChatModal:Co=>It({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:Co}}),updateSwitchIsChat:Co=>It({type:"ai:update:switchIsChat",payload:Co}),updateCurrentOrg:Co=>{let{org:Eo}=Co;return It({type:"set:current:org",payload:{org:Eo}})},updateCurrentUser:Co=>{let{user:Eo}=Co;return It({type:"set:current:user",payload:{user:Eo}})},track:(Co,Eo)=>(0,to.kH)(Co,Eo)}),[It]),vo=(0,a.useMemo)(()=>({commonData:{...gn,showHeadSwitch:!0},actions:wo}),[gn,wo]);return(0,a.useEffect)(()=>{xn(!K||!te?(0,G.jsx)(G.Fragment,{}):pn(()=>vo))},[K,te,vo]),(0,G.jsx)(G.Fragment,{children:un})},Ko=(0,M.Mz)([P.OW,Y.r,J.wA,J.PL,J.HW,q.O4,fo.Bg],(v,K,te,me,$e,nt,yt)=>({show:v===Xs.lS.AI,currentEditorMode:K,org:te,project:me,user:$e,theme:nt,switchIsChat:yt})),ha=(0,k.Ng)(v=>Ko(v))(Ho);var Aa=i(28173),I=i(61541),F=i(85449);const oe=()=>{const v=(0,a.useRef)(new IntersectionObserver(()=>{},{})),K=(0,a.useRef)([]),te=(0,a.useRef)({}),me=()=>{const It=un=>{const xn=K.current||[],gn=te.current||{};un.forEach(wo=>{if(wo.isIntersecting){var vo,Co;const Eo=(vo=wo.target)==null?void 0:vo.dataset.cid,go=(Co=wo.target)==null?void 0:Co.dataset.resourcesCid,xo=Eo||go?Eo+"-"+(go||""):"";if(xo&&!xn.includes(xo)){const jo=gn[xo];if(jo){xn.push(xo);const{isMdVipTemplate:pa,isMktVipTemplate:na}=(0,I.wY)(jo.policy),Ma={...jo,is_scvip_template:na,vip_template:pa};(0,Re.d0)(Ma)}}}}),nt({shownMtItemCids:xn})};v&&(v.current=(0,F.e)({mode:"exposure",callback:It}))},$e=()=>{setTimeout(()=>{const It=document.querySelectorAll(".mt-exposure-observer");!(v!=null&&v.current)||It.length===0||It.forEach(un=>v.current.observe(un))},800)},nt=It=>{let{shownMtItemCids:un=[]}=It;K&&(K.current=un)},yt=It=>{let{observeMtItemObj:un={}}=It;te&&(te.current=un)},dt=It=>{let{addItemsObj:un={}}=It;te&&(te.current={...te.current||{},...un})};(0,a.useEffect)(()=>(me(),Tl.A.on(il.P2,nt),Tl.A.on(il.jy,yt),Tl.A.on(il.A6,dt),Tl.A.on(il.BD,$e),()=>{var It;(It=v.current)==null||It.disconnect(),Tl.A.off(il.P2,nt),Tl.A.off(il.jy,yt),Tl.A.off(il.A6,dt),Tl.A.off(il.BD,$e)}),[])},be=()=>{const v=(0,a.useRef)(new IntersectionObserver(()=>{},{})),K=(0,a.useRef)([]),te=(0,k.wA)(),me=()=>{const nt=yt=>{const dt=K.current||[],It=[];yt.forEach(un=>{if(un.isIntersecting){var xn,gn;const wo=(xn=un.target)==null?void 0:xn.dataset.cid,vo=wo!=null&&wo.startsWith("mt")?wo:(gn=un.target)==null?void 0:gn.dataset.resourcesCid;vo&&!dt.includes(vo)&&(It.push(vo),dt.push(vo))}}),K.current=dt,te({type:"entry:search-panel:resources:set:mtSdkStore:map",payload:{mtResourceCidList:It}})};v&&(v.current=(0,F.e)({mode:"preload",callback:nt}))},$e=function(nt){var yt;nt===void 0&&(nt=500),(yt=v.current)==null||yt.disconnect();const It=document.querySelectorAll("#mb-search-results-panel .combo_group .observe-target-list .resources-list");if(!v.current)return null;if(It.length>0)for(let un=0;un<It.length;un++)v.current.observe(It[un]);setTimeout(()=>{const xn=document.querySelectorAll("#mb-search-results-panel .screen_list .mt-exposure-observer");if(xn.length===0)return null;for(let gn=0;gn<xn.length;gn++)v.current.observe(xn[gn])},nt)};(0,a.useEffect)(()=>(Tl.A.on(il.rg,me),Tl.A.on(il.kE,$e),()=>{var nt;(nt=v.current)==null||nt.disconnect(),Tl.A.off(il.rg,me),Tl.A.off(il.kE,$e)}),[])},Mt=()=>{const v=(0,a.useRef)(new IntersectionObserver(()=>{},{})),K=(0,a.useRef)([]),te=(0,k.wA)(),me=()=>{const nt=yt=>{const dt=K.current||[],It=[];yt.forEach(un=>{if(un.isIntersecting){var xn;const gn=(xn=un.target)==null?void 0:xn.dataset.resourcesCid;gn&&!dt.includes(gn)&&(It.push(gn),dt.push(gn))}}),K.current=dt,te({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:It}})};v&&(v.current=(0,F.e)({mode:"preload",callback:nt,root:document.querySelector("#popups-builtin-panel .widget-panel-container"),rootMargin:"0px 0px 150px 0px"}))},$e=()=>{const nt=".combo-group .mt-exposure-observer",yt=document.querySelectorAll(nt);if(!v.current)return null;if(yt.length>0)for(let dt=0;dt<yt.length;dt++)v.current.observe(yt[dt]);setTimeout(()=>{document.querySelectorAll(nt).length!==yt.length&&$e()},1e3)};(0,a.useEffect)(()=>(Tl.A.on(il.l7,me),Tl.A.on(il.wO,$e),()=>{var nt;(nt=v.current)==null||nt.disconnect(),Tl.A.off(il.l7,me),Tl.A.off(il.wO,$e)}),[])},ut=()=>{const v=(0,a.useRef)(new IntersectionObserver(()=>{},{})),K=(0,a.useRef)([]),te=(0,k.wA)(),me=(0,a.useRef)(null);(0,a.useEffect)(()=>{const $e=()=>{const yt=dt=>{const It=K.current||[],un=[];dt.forEach(xn=>{if(xn.isIntersecting){var gn;const wo=(gn=xn.target)==null?void 0:gn.dataset.resourcesCid;wo&&!It.includes(wo)&&(un.push(wo),It.push(wo))}}),K.current=It,te({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:un}})};v&&(v.current=(0,F.e)({mode:"preload",callback:yt,root:document.querySelector(".mb-widget-modals .detail-scrollable-list"),rootMargin:"0px 0px 0px 0px"}))},nt=()=>{const yt=".container .box .mt-exposure-observer",dt=document.querySelectorAll(yt);if(!v.current)return null;if(dt.length>0)for(let It=0;It<dt.length;It++)v.current.observe(dt[It]);me.current=setTimeout(()=>{document.querySelectorAll(yt).length!==dt.length&&nt()},1e3)};return Tl.A.on(il.dK,$e),Tl.A.on(il.aI,nt),()=>{var yt;(yt=v.current)==null||yt.disconnect(),Tl.A.off(il.dK,$e),Tl.A.off(il.aI,nt),me.current&&(clearTimeout(me.current),me.current=null)}},[me])},tn=()=>(oe(),be(),Mt(),ut(),null);class Xt extends a.PureComponent{componentDidMount(){var K,te,me;const{currentPopupPanel:$e,layoutV9:nt,dispatch:yt}=this.props,dt=(0,yc.XM)();if(nt==="recommend"&&!dt&&!((K=MB.commonGuideHelper)!=null&&K.checkGuideHasShown(Vt.c.GUIDE_NOVICE_V9_2408))&&!((te=MB.commonGuideHelper)!=null&&te.checkGuideHasShown(Vt.c.GUIDE_NOVICE_V9_2408_STEP_1))&&(me=(0,yc.yX)())!=null&&me.isCompleted){var It;(It=MB.commonGuideHelper)==null||It.markGuideAsRead(Vt.c.GUIDE_NOVICE_V9_2408),setTimeout(()=>{$e!==Xs.lS.Builtin&&yt({type:"entry:active:popup:panel",payload:{name:Xs.lS.Builtin}})},0)}}componentDidUpdate(K){const{currentPopupPanel:te}=this.props,{currentPopupPanel:me}=K;te!==me&&Tl.A.emit(il.jy,{observeMtItemObj:{}})}render(){const{currentPopupPanel:K,isShowHistoryPanel:te,isShowSearchPanel:me,showGlobalHeader:$e,popupsPanelName:nt,isEmptyScreen:yt}=this.props,dt=K===Xs.lS.AI;return yt?null:te?(0,G.jsx)(Uu,{}):K||me?(0,G.jsxs)(Q0.A,{id:nt,className:"popups-panel","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,children:[!dt&&(0,G.jsx)(Hh.F,{show:$e}),me?(0,G.jsx)(xu.P,{}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(t2,{}),(0,G.jsx)(nh.x,{}),(0,G.jsx)(La,{}),(0,G.jsx)(yu,{}),(0,G.jsx)(Sp,{}),(0,G.jsx)(ae,{}),(0,G.jsx)(Wh,{}),(0,G.jsx)(ha,{})]}),(0,G.jsx)(tn,{})]}):null}}const Kn=(0,M.Mz)([P.OW,P.SE,P.ut,P.B8,C.lj,Aa.C,q.MZ],(v,K,te,me,$e,nt,yt)=>{let{isEmptyScreen:dt}=nt;return{currentPopupPanel:v,isShowHistoryPanel:K,isShowSearchPanel:te,popupsPanelName:me,showGlobalHeader:$e,isEmptyScreen:dt,layoutV9:yt}}),ao=(0,k.Ng)(v=>Kn(v))(Xt)},46675:(eo,ot,i)=>{"use strict";var a=i(1268),k={"text/plain":"Text","text/html":"Url",default:"Text"},M="Copy to clipboard: #{key}, Enter";function P(q){var Y=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return q.replace(/#{\s*key\s*}/g,Y)}function C(q,Y){var J,O,l,D,m,E,f=!1;Y||(Y={}),J=Y.debug||!1;try{l=a(),D=document.createRange(),m=document.getSelection(),E=document.createElement("span"),E.textContent=q,E.ariaHidden="true",E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(S){if(S.stopPropagation(),Y.format)if(S.preventDefault(),typeof S.clipboardData>"u"){J&&console.warn("unable to use e.clipboardData"),J&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var V=k[Y.format]||k.default;window.clipboardData.setData(V,q)}else S.clipboardData.clearData(),S.clipboardData.setData(Y.format,q);Y.onCopy&&(S.preventDefault(),Y.onCopy(S.clipboardData))}),document.body.appendChild(E),D.selectNodeContents(E),m.addRange(D);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");f=!0}catch(S){J&&console.error("unable to copy using execCommand: ",S),J&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Y.format||"text",q),Y.onCopy&&Y.onCopy(window.clipboardData),f=!0}catch(V){J&&console.error("unable to copy using clipboardData: ",V),J&&console.error("falling back to prompt"),O=P("message"in Y?Y.message:M),window.prompt(O,q)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(D):m.removeAllRanges()),E&&document.body.removeChild(E),l()}return f}eo.exports=C},46712:(eo,ot,i)=>{"use strict";i.d(ot,{$D:()=>m,GT:()=>q,K6:()=>Y,NW:()=>P,id:()=>l,mO:()=>C,no:()=>E,ss:()=>D,yP:()=>O});var a=i(67787),k=i(93413),M=i(21385);const P=260,C=250,q=a.Ay.div.withConfig({displayName:"styles__StyledGuideStepRect",componentId:"sc-130n2mx-0"})(["position:fixed;z-index:1050;inset:0;width:100vw;height:100vh;pointer-events:none;background-color:transparent;&.grabbing{pointer-events:initial;cursor:grabbing;}.context{position:absolute;pointer-events:initial;width:","px;padding:10px;pointer-events:auto;background-color:#1684FC;border-radius:8px;display:flex;&:not(.grabbing){cursor:default;transition:all 0.2s ease-out;}&:hover{.grab-box{display:flex;}&.grabbing{.grab-box{cursor:grabbing;}}.content .top .close{display:block;}}.grab-box{display:none;position:absolute;top:0px;left:118px;&:hover{cursor:grab;}}.content{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;.top{position:relative;background-color:#ffffff;border-radius:4px;overflow:hidden;width:240px;height:150px;img{width:100%;height:100%;}.close{cursor:pointer;display:none;position:absolute;top:6px;left:202px;width:20px;border-radius:4px;color:#fff;background:rgba(0,0,0,0.2);}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom{flex:1;display:flex;flex-direction:column;margin-top:10px;color:#ffffff;font-size:12px;.desc-guide{flex:1;max-width:240px;min-height:44px;.handler{width:16px;height:16px;border:1px solid #ffffff;border-radius:50%;display:inline-block;margin:0 5px;line-height:16px;text-align:center;}.guide-title{font-size:14px;font-weight:500;line-height:18px;margin-bottom:8px;}.text{font-weight:500;font-size:12px;line-height:18px;margin-bottom:16px;align-items:center;img{vertical-align:text-top;}}}.steps-guide{display:flex;justify-content:space-between;align-items:flex-end;.step-info{margin-bottom:6px;}.action-btn{display:flex;.btn{&.prev{margin-right:20px;}&.next{}&.know{width:70px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;background:#ffffff;color:#1684FC;font-size:12px;line-height:20px;&:hover{background:#F1F8FF}}}}}}}}"],P),Y='\n outline: 2px solid #1685FC;\n position: relative;\n\n ::after,\n ::before {\n content: "";\n position: absolute;\n background: transparent;\n pointer-events: none;\n\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n border-radius: 8px;\n outline: 2px solid #1685FC;\n }\n\n ::after {\n z-index: 0;\n -webkit-animation: ripple-animate 2s linear infinite;\n animation: ripple-animate 2s linear infinite;\n }\n\n ::before {\n z-index: 1;\n -webkit-animation: ripple-animate 2s linear 1s infinite;\n animation: ripple-animate 2s linear 1s infinite;\n }\n\n @keyframes ripple-animate{\n 0% {\n width: 100%;\n height: 100%;\n opacity: 0.5;\n }\n\n 100% {\n width: calc(100% + 10px);\n height: calc(100% + 10px);\n opacity: 0.0;\n }\n }\n',J=(0,a.DU)(['#workspace{#popups-page-panel{.market-template-masonry-list-container.mobile{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',';::before,::after{border-radius:6px;}}}}.market-template-masonry-list-container.web{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',";::before,::after{border-radius:6px;}}}}}}"],f=>(0,M.NR)(f.sceneTag),Y,f=>(0,M.NR)(f.sceneTag),Y),O=(0,a.DU)(['#workspace{#popups-builtin-panel{div[data-guide-id="button_solid"]{',"}}}"],Y),l=(0,a.DU)(["#workspace{#mb-toolbar{.toolbar-right{.","{width:50px;height:34px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}}}}"],k.c.GUIDE_NOVICE_2309_STEP_4,Y),D=(0,a.DU)(["#workspace{#mb-toolbar{.","{",";border-radius:8px;::before,::after{border-radius:8px;}}}}"],k.c.GUIDE_NOVICE_2309_STEP_5,Y),m=(0,a.DU)(["#workspace{#mb-toolbar{.","{",";}}}"],k.c.GUIDE_DS_SCREEN_STEP_1,Y),E=(0,a.DU)(['#workspace{#popups-builtin-panel{.widget-panel-container{div[data-cid="','"]{ul{padding:6px 12px 0 12px;li{border-radius:4px;padding-bottom:4px;}li[data-cid="','"]{',"}}}}}}"],f=>M.g7[f.currentStep-2],f=>M.CJ[f.currentStep-2],Y)},46723:(eo,ot,i)=>{"use strict";i.d(ot,{AG:()=>P,AP:()=>O,GE:()=>we,GM:()=>f,K7:()=>C,Kd:()=>D,L4:()=>Y,Ni:()=>m,Rn:()=>h,Uy:()=>Oe,cD:()=>l,iH:()=>E,nI:()=>q,om:()=>V,ri:()=>J,x$:()=>Ae});var a=i(19249),k=i(44174),M=i(46905);const P=async()=>{try{await(0,a.DE)("/api/web/v3/initial"),location.reload()}catch(Be){location.href=location.origin+"/signin?next="+location.pathname}},C=()=>{window.top.postMessage(JSON.stringify({sharingMessage:"sharing:loginInvalid"}),"*")},q=async Be=>{let{success:tt,status:Xe,user:ne,org:lt,isAuto:rt=!1,updateAIState:Te,notice:Ge}=Be;if(rt||Te({aiGenerating:!1}),tt)return;const ue=E({code:Xe,user:ne,org:lt,isChat:!1});ue&&Ge({text:ue,svgName:Xe===451?"chatGPT/tip-warning":"chatGPT/tip-error"}),Xe===401&&(C(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>P()))},Y=async Be=>{let{prompt:tt,workspace:Xe,taskID:ne,user:lt,org:rt,updateAIState:Te,notice:Ge}=Be;try{const ue=await(0,a.zi)("/go/ai/chatbot/generate_page"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:tt,workspace:Xe,task_id:ne});return await q({success:!0,status:200,user:lt,org:rt,updateAIState:Te,notice:Ge}),{result:ue,status:200}}catch(ue){const Me=ue.status;return await q({success:!1,status:Me,user:lt,org:rt,updateAIState:Te,notice:Ge}),{status:Me}}},J=async Be=>{let{message:tt}=Be;try{return{res:await(await fetch("/js-hpr/demo2405/genproto/genFlow?"+new URLSearchParams({uId:MB.user.id,upperCid:"0",Q:tt}),{method:"POST"})).json(),status:200}}catch(Xe){return{res:"",status:0}}},O=async Be=>{let{prompt:tt,type:Xe,workspace:ne,taskID:lt,user:rt,org:Te,updateAIState:Ge,notice:ue}=Be;try{const Me=await(0,a.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:tt,type:Xe,workspace:ne,task_id:lt});return await q({success:!0,status:200,user:rt,org:Te,updateAIState:Ge,notice:ue}),{result:Me,status:200}}catch(Me){const Ze=Me.status;return await q({success:!1,status:Ze,user:rt,org:Te,updateAIState:Ge,notice:ue}),{status:Ze}}},l=async Be=>{let{prompt:tt,textListLength:Xe,workspace:ne,taskID:lt,user:rt,org:Te,updateAIState:Ge,notice:ue}=Be;const Me=tt+(" ,textList.length ==="+Xe);try{const Ze=await(0,a.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:Me,type:"autofill",workspace:ne,task_id:lt});return await q({success:!0,status:200,user:rt,org:Te,isAuto:!0,updateAIState:Ge,notice:ue}),{result:Ze,status:200}}catch(Ze){const fe=Ze.status;return await q({success:!1,status:fe,user:rt,org:Te,isAuto:!0,updateAIState:Ge,notice:ue}),{status:fe}}},D=async(Be,tt)=>{const{selectedTrees:Xe,selectedCarouseImage:ne,user:lt,org:rt,updateAIState:Te,notice:Ge}=tt;try{const ue=(0,k.t)({selectedTrees:Xe,selectedCarouseImage:ne}),Me=await(0,a.zi)("/go/ai/chatbot/smart_generate",{...Be,size:ue});return await q({success:!0,status:200,user:lt,org:rt,isAuto:!0,updateAIState:Te,notice:Ge}),{result:Me,status:200}}catch(ue){const Me=ue.status;return await q({success:!1,status:Me,user:lt,org:rt,isAuto:!0,updateAIState:Te,notice:Ge}),{status:Me}}},m=async Be=>{try{return await(0,a.zi)("/go/ai/chatbot/edit_text",Be)}catch(tt){return null}},E=Be=>{let{code:tt,user:Xe,org:ne,isChat:lt=!0}=Be,rt=lt?I18N.ChatGPT.ai_api_conversation_error:I18N.ChatGPT.ai_api_error_create;if(tt===403){lt||(rt="");const Te=(0,M.WX)({user:Xe,org:ne});MB.global.popupHelper.upgradeChatGPTAsync({orgCid:Te,checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_Remaining"})}else tt===451?rt=I18N.ChatGPT.ai_api_error_illegal:tt===405&&(rt=I18N.ChatGPT.ai_api_conversation_progress);return rt},f=async Be=>{let{user:tt,org:Xe,onUpdateAIUsedTimes:ne}=Be;if(!ENV.IS_WONDER_SHARE)return{success:!1};try{const lt=(0,M.WX)({user:tt,org:Xe}),{used_times:rt,limited:Te}=await(0,a.DE)("/go/ai/chatbot/count_chat?workspace="+lt);return ne(rt),{times:rt,limited:Te,success:!0}}catch(lt){return console.log("#### error:",lt),{success:!1}}},h=async Be=>{let{user:tt,org:Xe,onUpdateAIPoints:ne}=Be;if(!ENV.IS_WONDER_SHARE)try{const lt=(0,M.WX)({user:tt,org:Xe}),{points:rt}=await(0,a.DE)("/go/ai/chatbot/chat/points?workspace="+lt);ne(rt)}catch(lt){console.log("#### error:",lt)}},S=async Be=>{let{taskID:tt,points:Xe=0,confirm:ne="stop",lane:lt="generate",user:rt,org:Te,onUpdateAIPoints:Ge}=Be;if(!ENV.IS_WONDER_SHARE)try{const ue=getAIWorkspace({user:rt,org:Te});await fetchPostJSON("/go/ai/chatbot/chat/confirm ",{workspace:ue,points:Xe,confirm:ne,lane:lt,task_id:tt}),await h({user:rt,org:Te,onUpdateAIPoints:Ge})}catch(ue){console.log("### error:",ue)}},V=async(Be,tt,Xe)=>{try{const{reply:ne,used_times:lt,limited:rt,usage:Te}=await(0,a.zi)("/go/ai/chatbot/chat",{messages:Be,workspace:tt,task_id:Xe});return{reply:ne,limited:rt,times:lt,loadingID:Xe,usage:Te}}catch(ne){return(ne.status===401||/401/.test(ne.message))&&(C(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>P())),{loadingID:Xe}}},We=async(Be,tt,Xe,ne,lt,rt,Te,Ge)=>{try{const ue=await fetch("/go/ai/kb/knowledge_base_chat",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({messages:Be,workspace:tt,task_id:Xe})});if(!ue||!ue.ok||!ue.body){rt(!1,E({code:ue.status,user:ne,org:lt}),Xe,ue.status),(ue==null?void 0:ue.status)===401&&(C(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>P()));return}const Me=ue.body.getReader(),Ze=new TextDecoder;for(;;){const{value:fe,done:it}=await Me.read(),et=Ze.decode(fe);if(Te(et,Xe),it)break}rt(!0,"",Xe,200),await h({user:ne,org:lt,onUpdateAIPoints:Ge})}catch(ue){rt(!1,E({code:0,user:ne,org:lt}),Xe,402)}},re=async(Be,tt,Xe,ne,lt,rt,Te,Ge)=>{try{const ue=await fetch("/go/ai/kb/knowledge_base_chat",{signal:rt,method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({query:Be,history:tt})});if(!ue||!ue.ok||!ue.body){Te(!1,E({code:ue.status,user:ne,org:lt}),Xe,ue.status),(ue==null?void 0:ue.status)===401&&(C(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>P()));return}const Me=ue.body.getReader(),Ze=new TextDecoder;for(;;){const{value:fe,done:it}=await Me.read(),et=Ze.decode(fe);if(Ge(et,Xe),it)break}Te(!0,"",Xe,200)}catch(ue){Te(!1,E({code:0,user:ne,org:lt}),Xe,402)}};function ve(Be,tt){throw new Error("Function not implemented.")}const we=async function(Be,tt){let{searchValue:Xe,signal:ne}=Be;if(tt===void 0&&(tt="8081"),!Xe||!Xe.trim())return null;const lt=tt==="8081"?"/go/ai/nlp/analyse_custom":"/go/ai/nlp/analyse";try{const rt=await fetch(lt+"?q="+Xe.toLowerCase(),{signal:ne,method:"GET",mode:"cors",headers:{"content-type":"application/json"}});if(!rt.ok)throw ve("[fetchPostText] failed with "+rt.status+": /go/ai/nlp/analyse",{status:rt.status});return rt.json()}catch(rt){return null}},Ae=async function(Be,tt){tt===void 0&&(tt="8081");try{return await(0,a.zi)("/go/ai/nlp/attr_conversion",{attrs:Be})}catch(Xe){return null}},Oe=async Be=>{try{return await(0,a.zi)("/go/ai/nlp/log",{...Be})}catch(tt){return null}}},46998:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(17307),k=i(38502),M=i(67787),P=i(58320);const C=(0,M.Ay)(P.H).withConfig({displayName:"styles__StyledImagePreviewModal",componentId:"sc-4glxva-0"})(["&.image-preview-modal{height:100%;background:transparent;.container{width:100%;height:100%;position:relative;}.image-wrapper{width:initial;height:initial;position:absolute;left:50%;top:50%;padding:10px;background-color:#ffffff;border-radius:4px;transform:translate(-50%,-50%);transition:transform .2s;img{display:block;width:auto;height:auto;max-width:80vw;max-height:80vh;}}.close-btn{position:absolute;top:40px;right:40px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:transparent;cursor:pointer;.svg-icon{width:32px;height:32px;circle{fill:#333333;}path{fill:#ffffff;}}}}}"]);var q=i(72214);const Y=O=>{const{isOpen:l,alt:D,imgSrc:m,onClose:E}=O,f=(0,k.useRef)(null),h=(0,k.useCallback)(V=>{if(f&&f.current){const We=document.elementFromPoint(V.clientX,V.clientY);f.current.contains(We)||l&&E();return}l&&E()},[f,l,E]),S=(0,k.useCallback)(V=>{V.preventDefault(),V.stopPropagation(),V.key==="Escape"&&l&&E()},[l,E]);return(0,k.useEffect)(()=>(document.addEventListener("keydown",S,!0),()=>{document.removeEventListener("keydown",S,!0)})),(0,q.jsx)(C,{className:"image-preview-modal",portalClassName:"image-preview-modal-portal",title:"\u56FE\u7247\u9884\u89C8",isOpen:l,canCloseOnClickMask:!0,onClose:E,centered:!0,width:"100%",modalRender:()=>(0,q.jsxs)("div",{className:"container",onClick:h,children:[(0,q.jsx)("div",{className:"image-wrapper",ref:f,children:(0,q.jsx)("img",{src:m,alt:D})}),(0,q.jsx)("span",{className:"close-btn",onClick:E,children:(0,q.jsx)(a.C,{name:"draft/close"})})]})})},J=(0,k.memo)(Y)},47424:(eo,ot,i)=>{"use strict";i.d(ot,{V:()=>m,q3:()=>D,e$:()=>J,kz:()=>l,Gi:()=>Y});var a=i(79287),k=i.n(a),M=i(19249),P=i(18833),C=i(61541);const q='{"\u79FB\u52A8\u7AEF":{"\u6CE8\u518C\u767B\u5F55":[{"name":"\u767B\u5F55\u4E00","canvas_key":"ssk4s6teTtBtqPLSw8nbYy","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55\u4E8C","canvas_key":"ssk4s6teTtBtqPb5B7IrCh","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u53F7\u7801\u5F52\u5C5E\u5730","canvas_key":"ssk4s6teTtBtqPndTsJc2b","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqQ6IY9bB32","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u586B\u5199\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqQGAzL2Iil","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BED\u97F3\u9A8C\u8BC1","canvas_key":"ssk4s6teTtBtqQP7PaKd1Q","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55","canvas_key":"ssk4s6teTtBtqQaxHGmD3X","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqQlSlbSJwJ","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u624B\u673A\u53F7\u6CE8\u518C","canvas_key":"ssk4s6teTtBtqQvwfkDjzE","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u6CE8\u518C\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqR4WyedHex","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BBE\u7F6E\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRGULOBmvM","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55\u4E09","canvas_key":"ssk4s6teTtBtqRQeunAsfg","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRXlAfa4B4","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u624B\u673A\u53F7\u6CE8\u518C","canvas_key":"ssk4s6teTtBtqReE2HhqLB","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u6CE8\u518C\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqRkQMaYWHB","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BBE\u7F6E\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRqBT4jAgG","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55","canvas_key":"ssl7pf34TtCXmGKo7OHwHf","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55","canvas_key":"ssl85lleTtCXmKJmufES7e","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"ssl85oaeTtCXmKbO8o8VWb","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u5BC6\u7801\u767B\u9646","canvas_key":"ssl86l9bTtCXmL3Xu9viTS","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssl86mg3TtCXmLOiCVm8C","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"ssl86mjbTtCXmLZjFarobG","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u91CD\u8BBE\u5BC6\u7801","canvas_key":"ssl86mupTtCXmLuNoFrZo8","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9996\u9875-\u72B6\u6001 1","canvas_key":"ssl7pf34TtCXmGqCcRSMDz","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9996\u9875-\u72B6\u6001 2","canvas_key":"ssl86ng2TtCXmIyMGnCotY","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG5Cd7CNlu1","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG5LCwV4wgw","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u8BBE\u7F6E\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG5hyJIegAu","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u8BBE\u7F6E\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG5mVJD0pbk","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u5BC6\u7801\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG5vpzVe5Gi","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u5BC6\u7801\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG61ms3Tktq","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG6Bbq1OGCS","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG6Gzj7IZt1","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u83B7\u53D6\u9A8C\u8BC1\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG5VQ9GgahW","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u83B7\u53D6\u9A8C\u8BC1\u7801-\u6709","canvas_key":"ssl6broiTtCVG5ZWu9VOhB","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u91CD\u65B0\u8BBE\u7F6E\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG6U3mNOsfH","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u91CD\u65B0\u8BBE\u7F6E\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG6WXc5vslx","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801 -\u7A7A","canvas_key":"ssl6broiTtCVG6eYqTD5sl","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801 -\u6709","canvas_key":"ssl6broiTtCVG6gGvDDfUD","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u4E00\u952E\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG6nGngu3MA","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u4E00\u952E\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG6r2BD9mLu","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u767B\u5F552","canvas_key":"sslecb65TxSOARK5jFL5yu","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F555","canvas_key":"sslecbeiTxSOAS4ggHrfsO","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F557","canvas_key":"sslecebzTxSOASsTM8dVwd","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F551","canvas_key":"sslecev2TxSOAU9JtMWvjZ","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F553","canvas_key":"sslecev2TxSOAWeHjhfaXH","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F558","canvas_key":"sslecebzTxSOAXIE8PZycv","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F556","canvas_key":"sslphp4gTxSOAXfvX5AjiN","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F559-\u9A8C\u8BC1\u7801","canvas_key":"sslphp4gTxSOAYVrOLG0O3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F554","canvas_key":"sslecev2TxSOAYoi1rxPKU","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F559","canvas_key":"sslphp4gTxSOAZJgxeHhnX","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55","canvas_key":"sslecev2TxSOAanmdmZYe","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 1","canvas_key":"sslecev2TxSOAdeHytmjds","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 2","canvas_key":"sslphykmTxSOAeLk24XeUS","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 3","canvas_key":"sslphyktTxSOAf3esN8sTr","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 4","canvas_key":"sslphylkTxSOAfgYnhlYm3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 5","canvas_key":"sslphylqTxSOAgOcCoci6w","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 6","canvas_key":"sslphyluTxSOAgtBbImwC3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 7","canvas_key":"sslphym2TxSOAhnPAKTEnk","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 8","canvas_key":"sslphym6TxSOAid3lNYhQI","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 9","canvas_key":"sslphymaTxSOAj8EqJG7c0","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 10","canvas_key":"sslphymfTxSOAjpUqDWoo2","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 11","canvas_key":"sslphymjTxSOAkTQG0kLJX","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 12","canvas_key":"sslphymnTxSOAlGXitVE0s","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 13","canvas_key":"sslphymqTxSOAm5DSiUDwL","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 14","canvas_key":"sslphymtTxSOAmtrh3LudD","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 15","canvas_key":"sslphymyTxSOAoGP5vlImc","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u9A8C\u8BC1\u7801","canvas_key":"sslphymyTxSOApNGjsF3l5","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u5DF2\u9605\u8BFB","canvas_key":"sslphymyTxSOAq6NNjN7Xa","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u9605\u8BFB\u63D0\u9192","canvas_key":"sslphymyTxSOAqvWrQ6q7r","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u9ED8\u8BA4","canvas_key":"sslecev2TxSOArzWWdQWGA","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u624B\u673A\u53F7","canvas_key":"sslphzphTxSOAsVlGKgBHE","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u5BC6\u7801","canvas_key":"sslphzpyTxSOAt5oLJPrn6","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u63D0\u793A\u9605\u8BFB","canvas_key":"sslphzroTxSOAtVNigQxyI","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u767B\u5F55","canvas_key":"sslphztmTxSOAuARARpk1W","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u9ED8\u8BA4","canvas_key":"sslpi35iTxSOAvWVGaoFyf","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslpi345TxSOAw7RUdGNVC","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u9A8C\u8BC1\u7801","canvas_key":"sslpi351TxSOAwopRaT9tA","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u5BC6\u7801","canvas_key":"sslecev2TxSOAxL69iSWDW","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u518D\u6B21\u8F93\u5165\u5BC6\u7801","canvas_key":"sslpi3c5TxSOAy3XOZAnO5","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5FAE\u4FE1\u767B\u5F55","canvas_key":"sslecev2TxSOAywNr5Vt2P","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u652F\u4ED8\u5B9D\u767B\u5F55","canvas_key":"sslecev2TxSOAzqfMOTG2w","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUBjgnqwX","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUfOXTD3NBYvw3c","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgR9R2LqK5socp","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRDeaf6GFpDqS","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRF8x7okUGtQS","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRH7cFZRT4jdX","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRIRTGevK6BT2","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRKRG04kCD7tm","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u5BC6\u7801\u767B\u5F55","canvas_key":"rcTdD1LlZm7eZrsF","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"rcTdD1LlTeQfDDizfI9HCn","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u56FE\u7247\u9A8C\u8BC1","canvas_key":"rcTdD1LlTeQnJQ1oXUUpL0","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u52A8\u6001\u9A8C\u8BC1\u7801","canvas_key":"rcTdD1LlTecfqADhvZ4LTW","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u4FEE\u6539\u5BC6\u7801","canvas_key":"rcTdD1LlTecgF9oPAuwVgy","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55","canvas_key":"rcTdD1LlTeFKHQnyK7LXAA","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u56FE\u7247\u9A8C\u8BC1","canvas_key":"rcTdD1LlTeFKHQn8knYO0L","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u5012\u8BA1\u65F6","canvas_key":"rcTdD1LlTeFKHQoIA62xhO","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u672C\u673A\u767B\u5F55","canvas_key":"rcTdD1LlTeQp0qw1ii3my1","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u6388\u6743\u767B\u5F55","canvas_key":"rcTdD1LlTeclT19CBnySI3","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p7JDKPqucc","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u8F93\u5165\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9p7gVyZRTuF","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u63D0\u793A","canvas_key":"sslkuyfqTtD9p7rFOUai4w","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u91CD\u65B0\u53D1\u9001","canvas_key":"sslkuyfqTtD9p85PE0eSZF","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"sslkuyfqTtD9p8JedPSWEU","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8SMfkVIpB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8eEFzuwyR","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8qbuO5svu","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u5BC6\u7801\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p95wInb3pB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u5BC6\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9HN45HI5M","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9Wso9VSPJ","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9sjZK06qq","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAEaCmsoK","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAUakNeBYq","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAigWo8njT","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pAwVMtdFAm","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pBOOYT6BFp","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pBezc1T3hw","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pBvKFKTV3N","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pC93D3SnD7","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pCRl4VMBCd","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pCeO7Sr9N9","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pCzjM46vnb","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pDFHGxrybM","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pDT3xf54dQ","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55","canvas_key":"sslkuyfqTtD9pDhZgRFcAB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55","canvas_key":"sslkuyfqTtD9pDzZmwE1dx","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pEESFEvP6O","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55-\u534F\u8BAE","canvas_key":"sslkuyfqTtD9pEbhMkP0fG","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pEqgC0dCJR","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pF3KFBh2SG","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pFGvSMV6dD","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pFSF9Syies","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pFf41D4334","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pFrDRfQS8Y","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pG6rapU7zz","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pGUH0cIEYr","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pGgPbnDeXC","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pGsGE1VEBz","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pH5vwu1G4K","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pHJLds1x6O","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pHZXuuVrm2","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pHnt2e3sNe","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pIAYpjWiLr","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pINiiGrG7T","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"}],"\u9996\u9875":[{"name":"\u7F8E\u56E2\u5916\u5356\u9996\u9875-\u72B6\u6001 1","canvas_key":"ssl34g6lTtCB08b2tJ6Fip","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u7F8E\u56E2\u5916\u5356\u9996\u9875-\u72B6\u6001 2","canvas_key":"ssl34g6lTtCB09BjfTfjs1","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u997F\u4E86\u4E48\u5916\u5356\u9996\u9875","canvas_key":"ssl34g6lTtCB09rTi9qtCm","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u9996\u98751","canvas_key":"ssl34g6lTtCB0AnKG0FDb","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u9996\u98752","canvas_key":"ssl34g6lTtCB0BqYI9UwZD","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u817E\u8BAF\u8BFE\u5802\u9996\u9875","canvas_key":"ssl34eeuTtCAxPlfhrMQMJ","pm_cid":"pl34eeu0il59p4m","mt_cid":"mtl34eeu9zq3vh89"},{"name":"\u91D1\u878DAPP\u9996\u9875","canvas_key":"ssl08xxsU8mqFsFe4d0V4q","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u9AD8\u94C1APP\u9996\u9875","canvas_key":"ssl08xxsU8mqFuGeYGtSyB","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u5496\u5561APP\u9996\u9875","canvas_key":"ssl0aj9zU8mqFwFw1jseEq","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u9605\u8BFBAPP\u9996\u9875","canvas_key":"ssl0alnuU8mqFyTezULNqp","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u6DD8\u5B9D\u9996\u9875","canvas_key":"ssl34f4fTtCAybcV3T4zdq","pm_cid":"pl34f4fcawjbacl","mt_cid":"mtl34f4fl184xr2g"},{"name":"\u9996\u98751","canvas_key":"ssl34f4fTtCAycVCzVk0Hh","pm_cid":"pl34f4fcawjbacl","mt_cid":"mtl34f4fl184xr2g"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjAQrzVUDdD","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjC4SD1JjYb","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjD3OjCQi4P","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjDRT92E7ku","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjDsmumermf","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjELaAFIMvV","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjGC3Usb6yv","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjHG6RKoFWo","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjHsiYQCP2A","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjIcrt4GUTb","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjIzt5oAZQ","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjJh8biHpeV","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjKXoBgu8LC","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjLOeDgzDOF","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjMFQpE7rWs","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjMykFsNa6n","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjNbDV78aMe","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjNy9Md66zp","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjOFU2qTcif","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjOkrsBv5Lh","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjPDGvy7Ec5","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjQYHqof7zi","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjRnFUbjiz4","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjSXegVdsn9","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjTLUSJaBxi","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjTryEdcdQv","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjUJyy4hoiY","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjVj8OuNz3b","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjWop4S96Ck","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjXXOg4nPwX","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"}],"\u6211\u7684":[{"name":"1","canvas_key":"rcUGfiGwQRsaTKjh","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"2","canvas_key":"rcUGfiGwUGfiZYCS50Fjyd","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"3","canvas_key":"rcUGfiGwUGfnPYfmRwsFNB","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"6","canvas_key":"rcUGfiGwUGft5TynOAVSUC","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"5","canvas_key":"rcUGfiGwUGfxW0nGONkLZ1","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"4","canvas_key":"rcUGfiGwUGg055R6eYZqWV","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"7","canvas_key":"rcUGfiGwUGg5ajlwev8tYh","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"8","canvas_key":"rcUGfiGwUGg9XA9oB0ydNu","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"9","canvas_key":"rcUGfiGwUGggAJ5LuoQGqd","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"10","canvas_key":"rcUGfiGwUGgn1navHiQUkA","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"1 1","canvas_key":"rcUGfiGwUXYbjzQc6GgRsL","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGft5TynOAVSUC","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlTmPZqfTUnKj","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlXliM1HGWDab","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlYqCdEP31NHQ","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGld6Tzlhv5Lii","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u8D2D\u4E70","canvas_key":"rcUGfiGwUGlkdDWxXx3r8o","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGllvlb1O1qLif","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGlzRl52cHx8K5","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGmWU5N3OdawQR","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGmbXyGVnrzIIy","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGmcrbmH10T1Zy","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3- \u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGmlOBfdL9la4X","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u8D2D\u4E70","canvas_key":"rcUGfiGwUGmmRcQaTX6WvI","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 1","canvas_key":"rcUGfiGwUGmmadSwkn98f2","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 2","canvas_key":"rcUGfiGwUGmu6VQrcDEAdR","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 3","canvas_key":"rcUGfiGwUGmvty7Mfttspx","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500","canvas_key":"sskvc2ghTtC95gNlmCrgmv","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3--\u672A\u5F00\u901A\u5206\u9500","canvas_key":"sskvc2ghTtC95gmaPZFS3Y","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3--\u672A\u5F00\u901A\u4F1A\u5458 Copy","canvas_key":"sskvc2ghTtC95h0hnpDDLX","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD1","canvas_key":"sskvc2ghTtC95hEDKvRd9j","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD2","canvas_key":"sskvc2ghTtC95hVQwJKv7S","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD3","canvas_key":"sskvc2ghTtC95hiAsol2GO","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u8D2D\u4E70\u4F1A\u5458","canvas_key":"sskvc2ghTtC95htq0UCLtP","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u5168\u5458\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95iOSRDCm8o","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u7533\u8BF7\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95k3KGQDgAn","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u7533\u8BF7\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95lVdl515eS","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u5168\u5458\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95mgxfuBz9v","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDnvUzDdI66BXT","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFesc4W8hs","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFV5LILvT","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875 ","canvas_key":"rcUDoIDFUDrhO4j2JYnNl7","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDrtY69Kg2iUpC","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDrzq8coKRf0dY","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDsB5VwgQL1abc","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDsPhST6dYZQK2","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDseUYTpVdFQl7","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDt2yQcaOoKZ9D","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDt9cX6vPXw0GO","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtLLctqsoJwrl","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtTv9osc9HXNr","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtt7LNsxG9oBi","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDseUYUDtxF04z1NOXaQ","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtyiRd9ROqppw","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFUDtzq30dMVHFTu","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFUDu0nN2oTiukIM","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDu1eRcbQGGTwg","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDu2EzZpMKw0It","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u6559\u80B2","canvas_key":"sskb3i9eTtBuWBeF4AhpWa","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u8BB0\u5355\u8BCD","canvas_key":"sskb3i9eTtBuWC6stMsMA2","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u7F51\u6821","canvas_key":"sskb3i9eTtBuWCktJ9Bzqv","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u9AD8\u8003\u7F51\u6821","canvas_key":"sskb3i9eTtBuWDD5UB0K0h","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u8D85\u5E02\u7535\u5546","canvas_key":"sskb3i9eTtBuWDghfaCJD5","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u5206\u4EAB\u7535\u5546","canvas_key":"sskb3i9eTtBuWEIeCsvSUC","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u7535\u5546\uFF08\u672A\u767B\u5F55\uFF09","canvas_key":"sskb3i9eTtBuWEz66p3qhW","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA41","canvas_key":"sskb3i9eTtBuWFdC7PhwY4","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA43","canvas_key":"sskb3i9eTtBuWG7pCnapwC","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA42","canvas_key":"sskb3i9eTtBuWGhW1QJ02P","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u76F4\u64AD2","canvas_key":"sskb3i9eTtBuWHEPnUl9dH","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u76F4\u64AD1","canvas_key":"sskb3i9eTtBuWHpBEHQuLk","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u91D1\u878D1","canvas_key":"sskb3i9eTtBuWINgEfHrKG","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u91D1\u878D2","canvas_key":"sskb3i9eTtBuWIxqwrhDJA","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u76D2\u9A6C","canvas_key":"rcUO1sf1x3QlV7QF","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5C71\u59C6","canvas_key":"rcUMGJ9dUP9ZUzCs1Q7Esk","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6296\u97F3","canvas_key":"rcUO1siC9v250qx2","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6DD8\u5B9D","canvas_key":"rcUO1sjUXE2Jnsyw","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5F97\u5230","canvas_key":"rcUO1sk8njQkgp2Z","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u652F\u4ED8\u5B9D","canvas_key":"rcUO1snvNQAHB2no","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u95F2\u9C7C","canvas_key":"rcUO1sozxnjJLAHY","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u53BB\u54EA\u7F51","canvas_key":"rcUO1svaaSzNk2lV","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7F8E\u56E2","canvas_key":"rcUO1sxqxUKXt4UU","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5927\u4F17\u70B9\u8BC4","canvas_key":"rcUO1sz5D2UbyqBD","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u730E\u8058","canvas_key":"rcUO1tELf6y6tGSe","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u997F\u4E86\u4E48","canvas_key":"rcUO1tGut7vX4xES","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u4EAC\u4E1C","canvas_key":"rcUQs4lUKvcOvtbm","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5FAE\u4FE1","canvas_key":"rcUO1smfSd5yD00J","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5C0F\u7EA2\u4E66","canvas_key":"rcUO1skldMhwBx8a","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u667A\u8054","canvas_key":"rcUO1sklUPMV7xy1WHz6v9","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5B66\u4E60\u5F3A\u56FD","canvas_key":"rcUSfNwrUTy88YKjVhphAa","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u79EF\u5206","canvas_key":"rcUT8MQ0UTy88YKyHhW8wV","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7231\u5EB7\u56FD\u5BBE","canvas_key":"rcUUB5pRUdwJTPxD","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5927\u9EA6\u7F51","canvas_key":"rcUWJSIWJM3LHX1b","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u8D1D\u58F3\u627E\u623F","canvas_key":"rcUWJWkOuUjr02yq","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6EF4\u6EF4\u6253\u8F66","canvas_key":"rcUWJdFS4oBbZtKF","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u745E\u5E78\u5496\u5561","canvas_key":"rcUWLadlw2gmWK5R","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u987A\u4E30\u5FEB\u9012","canvas_key":"rcUWQD9h1ItHa9aP","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u9EA6\u5F53\u52B3","canvas_key":"rcUWQERhbYyPyMc3","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7F8E\u7684\u7F8E\u5C45","canvas_key":"rcUU4n4AUWDrJLhEkrPtKg","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u8363\u8000\u8FD0\u52A8\u5065\u5EB7","canvas_key":"rcUU6ksQUU6qchMNRUuTKp","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"}],"\u5217\u8868\u9875":[{"name":"\u5206\u7C7B\u5217\u8868","canvas_key":"ssl34e4eTtCAwkAf2wMx3U","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u6559\u5E08\u63A8\u8350","canvas_key":"ssl34e4eTtCAwkWPq0qrvI","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u8BFE\u7A0B\u5217\u8868","canvas_key":"ssl34e4eTtCAwl9ZQNA0nv","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u8BFE\u7A0B\u63A8\u8350","canvas_key":"ssl34e4eTtCAwlWKaf6kEf","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u4EA7\u54C1\u63A8\u8350","canvas_key":"ssl332ccTtCAu80ucb93TW","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4EBA\u7269\u63A8\u8350","canvas_key":"ssl332ccTtCAu8KAsssLZt","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u8868","canvas_key":"ssl332ccTtCAu8Zvk7bU4B","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88681","canvas_key":"ssl332ccTtCAu8t2z6pqW1","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88682","canvas_key":"ssl332ccTtCAu92lLmd0gp","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88683","canvas_key":"ssl332ccTtCAu98lGlHNvf","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u699C\u5355\u63A8\u8350","canvas_key":"ssl332ccTtCAu9GlD1YjOj","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4ECA\u65E5\u63A8\u8350","canvas_key":"ssl332ccTtCAu9UtENbWwU","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u7535\u5F71\u63A8\u8350","canvas_key":"ssl332ccTtCAu9ilRB8aRw","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4EA7\u54C1\u5217\u8868","canvas_key":"ssl332ccTtCAu9tqMGF2Gq","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u9650\u65F6\u62A2\u8D2D","canvas_key":"ssl34ewrTtCAxvhBUSS027","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u8868-\u72B6\u6001 1","canvas_key":"ssl34ewrTtCAxwLJ7cdipV","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u8868-\u72B6\u6001 2","canvas_key":"ssl34ewrTtCAxwsr5OkxIb","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u88681-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyxVvNgvrjz","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88681-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAyxpNEX7vSO","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88682-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyybtTDQgDL","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88682-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAyz84ecyT05","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u63A8\u8350\u5217\u88683-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyzn5cktFca","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u63A8\u8350\u5217\u88683-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAz03xw6ITUh","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u9ED8\u8BA4","canvas_key":"ssl34fw4TtCAz1NdVETBVN","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u9644\u8FD1","canvas_key":"ssl34fw4TtCAz2PS77vR4P","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u7F8E\u98DF","canvas_key":"ssl34fw4TtCAz3TOj7Xw5p","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u6392\u5E8F","canvas_key":"ssl34fw4TtCAz4VoZiI6wL","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u7B5B\u9009","canvas_key":"ssl34fw4TtCAz5V1mpdGZs","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u8BA2\u5355\u8BB0\u5F55","canvas_key":"rcUQmMjnUlvv0foHskHw4v","pm_cid":"pm2mb0firqt9wmzn6","mt_cid":"mtmazfwh2tugn1v9"},{"name":"\u8BA2\u5355\u8BB0\u5F55","canvas_key":"rcUQmMjnUlvvEVdGZINNd2","pm_cid":"pm2mb0firqt9wmzn6","mt_cid":"mtmazfwh2tugn1v9"},{"name":"\u5DE5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEdzjqQspINVs8","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEeN64jw5mJGN5","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEekexhM9jqOMh","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEpINZXqt1YHU","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEsyIcHYwdMlkq","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEwHnEO4v20WRS","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEwXLORExmz8ex","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5145\u503C\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUF71MbUAqaxBNZ","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u6536\u6B3E\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUF7PJ8yqPz3F1t","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u63A5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7WCh5FLc94Dk","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u7EF4\u4FEE\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7lYfXi6zisov","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5DE5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7sQPBm4bDPjA","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8D2D\u4E70\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUFDPIULTCIKtk5","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5546\u54C1\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWgTwcksVR","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8FD0\u8F93\u8BA2\u5355\u8BE6\u60C5 ","canvas_key":"rcUFDRgWUFDkcVnZ5HbF6k","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u70B9\u5355\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFDr0FLRc7VHM3","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u56E2\u8D2D\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFHreNusVc7upT","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u70B9\u5355\u8BA2\u5355\u8BE6\u60C5 ","canvas_key":"rcUFDRgWUFI7mL2uuYHvCp","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5145\u7535\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFIRvtlnd1EBbi","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5DE5\u5355\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFIvCOLDBX5U9r","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"}],"\u641C\u7D22":[{"name":"\u641C\u7D22\u9875-1","canvas_key":"sslllotrTtDAOQxeCxIhWx","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-2","canvas_key":"sslllotrTtDAORKzeYQX1y","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u6BCD\u7248\u9875","canvas_key":"sslllov0TtDAORkHLPEYSW","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-3","canvas_key":"sslllvraTtDAOTqlaGm3J7","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-4","canvas_key":"ssllm24fTtDAOUGN7n0mIB","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-5","canvas_key":"ssllm24gTtDAOUnLpvzOCx","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u6846-\u6846-\u767D\u5E95","canvas_key":"ssl331fyTtCAs8ugisGGMh","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u6846-\u7EBF-\u767D\u5E95","canvas_key":"ssl331fyTtCAs956L0PxM","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u6846-\u6846-\u5F69\u8272","canvas_key":"ssl331fyTtCAs9Dt9FLoLk","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5F69\u8272","canvas_key":"ssl331fyTtCAs9K8arVk89","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u767D\u5E95","canvas_key":"ssl331fyTtCAs9RzsXkp58","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A","canvas_key":"ssl331fyTtCAs9YVpvnzWG","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5DE6\u53F3\u56FE\u6807","canvas_key":"ssl331fyTtCAs9h984bHag","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5730\u5740","canvas_key":"ssl331fyTtCAs9s2Br2Mcb","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5934\u50CF+\u56FE\u6807","canvas_key":"ssl331fyTtCAsAMNz0SA5I","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5730\u5740+\u56FE\u6807","canvas_key":"ssl331fyTtCAsAX2qudaOP","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u626B\u4E00\u626B","canvas_key":"ssl331fyTtCAsAhDdIWHKu","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"16","canvas_key":"sskhx42hTtBwm7LUFB3fwu","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"17","canvas_key":"sskhx42hTtBwm7XaXEGRXf","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"3","canvas_key":"sskhx42hTtBwm7pltLxiD8","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"4","canvas_key":"sskhx42hTtBwm81OZjX649","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"19","canvas_key":"sskhx42hTtBwm8Mb6cFD31","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"20","canvas_key":"sskhx42hTtBwm8lEwrBJts","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"7","canvas_key":"sskhx42hTtBwm8yk3n5PWR","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"8","canvas_key":"sskhx42hTtBwm9L6piZntl","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"9","canvas_key":"sskhx42hTtBwm9qk74kMSZ","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"10","canvas_key":"sskhx42hTtBwmABEiXkFSN","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"11","canvas_key":"sskhx42hTtBwmAWJobBMrK","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"12","canvas_key":"sskhx42hTtBwmAyigNvNij","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"13","canvas_key":"sskhx42hTtBwmBEuQxGVpx","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"14","canvas_key":"sskhx42hTtBwmBlSMzzHgw","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"15","canvas_key":"sskhx42hTtBwmByr4MyMal","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"2","canvas_key":"sskhx42hTtBwmCPMmobTnu","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"5","canvas_key":"sskhx42hTtBwmCcsag4WCc","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"18","canvas_key":"sskhx42hTtBwmCyslYizEq","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"6","canvas_key":"sskhx42hTtBwmDEEdiK451","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"1","canvas_key":"sskhx42hTtBwmDfIRNbr5I","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"\u641C\u7D22-\u7F51\u6613\u4E91\u8BFE\u5802","canvas_key":"ssk4s6teTtBtqVvT5PPprU","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5F97\u5230-\u72B6\u6001 1","canvas_key":"ssk4s6teTtBtqWFXo8Aitb","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5F97\u5230-\u72B6\u6001 2","canvas_key":"ssk4s6teTtBtqWQcJX0xx3","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5FAE\u4FE1","canvas_key":"ssk4s6teTtBtqWidFNYjlB","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u6625\u96E8\u533B\u751F","canvas_key":"ssk4s6teTtBtqWwd5NAkCI","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u77E5\u4E4E","canvas_key":"ssk4s6teTtBtqXD9au5nTJ","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u4EAC\u4E1C","canvas_key":"ssk4s6teTtBtqXcjVuOmv3","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u81EA\u5982","canvas_key":"ssk4s6teTtBtqXu2t5gAtF","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u74DC\u5B50\u4E8C\u624B\u8F66","canvas_key":"ssk4s6teTtBtqYCxMU57So","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u7F8E\u67DA","canvas_key":"ssk4s6teTtBtqYWU8f6ojy","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u7231\u5F7C\u8FCE","canvas_key":"ssk4s6teTtBtqYpBW20AEN","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u8003\u62C9\u6D77\u8D2D","canvas_key":"ssk4s6teTtBtqZ8VhrKgXe","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-keep","canvas_key":"ssk4s6teTtBtqZZD2lmeHV","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u643A\u7A0B","canvas_key":"ssk4s6teTtBtqZn4OHJedJ","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u4EBA\u4EBA\u90FD\u662F\u4EA7\u54C1\u7ECF\u7406","canvas_key":"ssk4s6teTtBtqaCMNH3JIH","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u997F\u4E86\u4E48","canvas_key":"ssk4s6teTtBtqaP3uJJmsd","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22\u98752","canvas_key":"ssl5hsrwTtf8IWrAGukmQM","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98751","canvas_key":"ssl5hsrwTtf8IXPz4i8czK","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98753","canvas_key":"ssl5hu94Ttf8IXq6v7hoSj","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98754","canvas_key":"ssl5hwdaTtf8IY7yQAGMqf","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98755","canvas_key":"ssl5hx0nTtf8IYT26NG0SU","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D20\u98756","canvas_key":"ssl5hxrsTtf8IZ2ibHNKlt","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98757","canvas_key":"ssl5hydaTtf8IZO3vIFu0f","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98758","canvas_key":"ssl5hz6mTtf8IZlyY16cok","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98759","canvas_key":"ssl5iyjeTtf8IaIRN7kqDj","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u987510","canvas_key":"ssl5iyx2Ttf8Iaal1X8APD","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"}],"\u5FAE\u4FE1":[{"name":"\u516C\u4F17\u53F7\u4F1A\u8BDD\u9875","canvas_key":"ssk6j0g2TtBtvHzGBEMKGJ","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u8BE6\u60C5\u9875","canvas_key":"ssk6j0g2TtBtvIC6Xrq4GN","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u4F1A\u8BDD\u9875-\u83DC\u5355","canvas_key":"ssk6j0g2TtBtvIOnLPjc2f","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u8BE6\u60C5\u9875-\u83DC\u5355","canvas_key":"ssk6j0g2TtBtvIdVTTbwX5","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u5C0F\u7A0B\u5E8F\u4E3B\u9875","canvas_key":"ssk6j0g2TtBtvIrCyMTxfU","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u5FAE\u4FE1","canvas_key":"ssk4s6sgTtBtfP8GgXfIwW","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u7279\u5B9A\u516C\u4F17\u53F7","canvas_key":"ssk4s6sgTtBtfRFURfK75O","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u641C\u7D22\u5F39\u51FA","canvas_key":"ssk4s6sgTtBtfT5jB5s61s","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u4F1A\u8BDD\u9875\u9762","canvas_key":"ssk4s6sgTtBtfTGyUNia28","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u4E0B\u62C9\u5524\u51FA\u5C0F\u7A0B\u5E8F\u754C\u9762","canvas_key":"ssk4s6sgTtBtfTXssHEP8H","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u901A\u8BAF\u5F55","canvas_key":"ssk4s6sgTtBtfPxVfblhfO","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u516C\u4F17\u53F7\u5217\u8868","canvas_key":"ssk4s6sgTtBtfSfutcTFJq","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u6211","canvas_key":"ssk4s6sgTtBtfQKWxsuFKm","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u53D1\u73B0","canvas_key":"ssk4s6sgTtBtfQljI472g8","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u6211\u7684\u5C0F\u7A0B\u5E8F","canvas_key":"ssk4s6sgTtBtfVkhOu2oZO","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u83B7\u53D6\u5730\u7406\u4F4D\u7F6E\u4FE1\u606F\u5F39\u7A97","canvas_key":"ssk4s6sgTtBtfWLW3wv9to","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u5C0F\u7A0B\u5E8F\u4E3B\u9875","canvas_key":"ssk4s6sgTtBtfV6DcGZGYi","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u83B7\u53D6\u4E2A\u4EBA\u4FE1\u606F\u5F39\u7A97","canvas_key":"ssk4s6sgTtBtfTu175Ru5p","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u66F4\u591A","canvas_key":"ssk4s6sgTtBtfUatQ3zI6U","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u5173\u4E8E\u5C0F\u7A0B\u5E8F","canvas_key":"ssk4s6sgTtBtfVUjaSNNz6","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u670B\u53CB\u5708","canvas_key":"ssk4s6sgTtBtfWfYuNmjNH","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTknsDdhxa","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuCfLDtDWg5SK","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuGXQ6wsUSIF3","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuJ5StqUraXw0","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuMmS0EiZBYAt","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u8BDD\u9898\u5708\u5B50","canvas_key":"rcUF0zfpUFJ5uB2WI0aOBB","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u95EE\u9898\u95EE\u7B54","canvas_key":"rcUF0zfpUFJ5uB3tBAH0Qh","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u6D3B\u52A8\u5217\u8868 ","canvas_key":"sslewn6fUFJ5uB3BRz4dCr","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPvxVYjHBr7dML","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPw58iLE6nYCfK","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001-\u65C5\u884C","canvas_key":"rcUDtsOTUPwEdQaXtfpjp4","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPwKA4FaF3hWy1","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u52A8\u6001-\u65C5\u884C","canvas_key":"sslewn6fUPxpf0p2UUz6TZ","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u52A8\u6001-\u4E92\u52A8","canvas_key":"sslewn6fUPxvIfePZkAsGi","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4E16\u754C\u52A8\u6001","canvas_key":"rcUDtsOTUPy9gybtAgwUDS","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB\u52A8\u6001","canvas_key":"rcUDtsOTUPyOfgrjp9gi9s","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB\u96F7\u8FBE","canvas_key":"rcUDtsOTUPyU07PxP8nc6z","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB","canvas_key":"rcUDtsOTUPyXBkWxcgmyBm","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u533A\u4E3B\u9875","canvas_key":"ssk54jo1TtBtsL3uwPaXdY","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u6211\u7684\u5173\u6CE8","canvas_key":"ssk54jo1TtBtsMED8smWFu","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u4F5C\u8005\u9996\u9875","canvas_key":"ssk54jo1TtBtsOetO01uK8","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u5185\u5BB9\u63A8\u8350","canvas_key":"ssk54jo1TtBtsPM8hcdSWh","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u5185\u5BB9\u8BE6\u60C5","canvas_key":"ssk54jo1TtBtsPvDi1Hz9S","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"}],"\u6D88\u606F":[{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A","canvas_key":"ssl4i6uuUIaywVd4fb2V1G","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F-\u7FA4\u804A","canvas_key":"ssl4i7i2UIaywW8sgwS0aV","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A-\u6211\u65B9\u9080\u7EA6","canvas_key":"ssl6kghoUIaywaHQ5uPpHH","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A-\u88AB\u54CD\u5E94\u9080\u7EA6","canvas_key":"ssl6kgwwUIaywaevaTbnLB","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7FA4-\u7BA1\u7406\u6211\u7684\u6863\u671F","canvas_key":"ssl5tg52UIaywYAo9CKRA","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u53D6\u6D88\u6863\u671F","canvas_key":"ssl6kfrzUIaywYbI5G7VQi","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u6DFB\u52A0\u6863\u671F","canvas_key":"ssl6kg0gUIaywZNmclKMIq","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F-\u6709\u6863\u671F\u7684\u7FA4\u53CB","canvas_key":"ssl6kj1hUIaywfb1JG100e","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA","canvas_key":"ssl6khr8UIaywavP2qYjl8","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F\u4E2A\u4EBA\u5BF9\u4E2A\u4EBA","canvas_key":"ssl6khr8UIaywbCsO67GOq","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u6211\u65B9\u9080\u7EA6","canvas_key":"ssl6khr8UIaywe4csaRcCr","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u88AB\u540C\u610F\u9080\u7EA6","canvas_key":"ssl6khr8UIayweHGwcrKNO","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u88AB\u62D2\u7EDD\u9080\u7EA6 Copy","canvas_key":"ssl6khr8UIayweWGjfuLxk","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F","canvas_key":"ssl6khr8UIaywbhxgNQzMQ","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u53D6\u6D88\u6863\u671F","canvas_key":"ssl6khr8UIaywd575ylDw9","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u6DFB\u52A0\u6863\u671F","canvas_key":"ssl6khr8UIaywdX8MtQw2f","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u5BF9\u65B9\u9080\u7EA6","canvas_key":"ssl6khr8UIaywejivfGFmH","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u540C\u610F\u9080\u7EA6","canvas_key":"ssl6khr8UIaywf0KJUX8tD","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u62D2\u7EDD\u9080\u7EA6 Copy","canvas_key":"ssl6khr8UIaywfDLPYQwIu","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A\u6709\u7EA6","canvas_key":"ssl6vkv0UIaywgQpY4i7NQ","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6D88\u606F\u5217\u8868","canvas_key":"ssl6vkzwUIaywgqc1Eu9Zl","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6D88\u606F\u4E2D\u5FC3","canvas_key":"rcUa22lY4XGD2FQM","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u5F85\u529E\u7BB1","canvas_key":"rcUaZaMHpLsYhNyr","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u4EFB\u52A1\u4E2D\u5FC3","canvas_key":"rcUaZaMHUaabVWe5YXhLWA","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u968F\u8EAB\u529E\u52A9\u624B","canvas_key":"rcUaZaMHUaaoFGKfWmdNPe","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u4EFB\u52A1\u52A9\u624B","canvas_key":"rcUaZaMHUaav0Js8OXHzr3","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u901A\u8BAF\u5F55","canvas_key":"rcUaZaMHUaayRmQtyS23v6","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u804A\u5929\u8BE6\u60C5","canvas_key":"rcUaZaMHUab0r8Q9nZM9C8","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u597D\u53CB\u5217\u88681","canvas_key":"ssl332m2TtCAuiLTyYGuKi","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u597D\u53CB\u5217\u88682","canvas_key":"ssl332m2TtCAuids2LoVE0","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97621","canvas_key":"ssl332m2TtCAuiqG8BUtoC","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97622","canvas_key":"ssl332m2TtCAujEC3UIAzN","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97623","canvas_key":"ssl332m2TtCAujRUCzgSgp","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97624","canvas_key":"ssl332m2TtCAujfzEiZtF4","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u6D88\u606F\u5217\u88681","canvas_key":"ssl5j7sdTtf8Iln2qDErIT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88682","canvas_key":"ssl5j7sdTtf8ImKApXFvgD","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88683","canvas_key":"ssl5j7v9Ttf8ImhxMjLUza","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88684","canvas_key":"ssl5j7vyTtf8In0S0JUyCT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88685","canvas_key":"ssl5j7wtTtf8InHfLUJaFT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88686","canvas_key":"ssl5j7ybTtf8InUFWCtjo6","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88687","canvas_key":"ssl5j822Ttf8InoPYVxDUR","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88688","canvas_key":"ssl5j82nTtf8IoDIntKkd7","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88689","canvas_key":"ssl5j830Ttf8IoXSDjz0zT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u886810","canvas_key":"ssl5j83bTtf8IotSgEXVh6","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpBrBBhq7oQ","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpC91gfG7F","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpCU5IOE1GW","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpCnwKLrNWR","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B1","canvas_key":"ssk9jjnuTtBu0w7mMJHRCD","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5E38\u89C42","canvas_key":"ssk9jjnuTtBu0wUUKoMKPU","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B3","canvas_key":"ssk9jjnuTtBu0x2CyteNQb","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B2","canvas_key":"ssk9jjnuTtBu0xQonYT6w2","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B4","canvas_key":"ssk9jjnuTtBu0xiCy1u6TE","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5176\u5B831","canvas_key":"ssk9jjnuTtBu0y03npvw5m","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5176\u5B832","canvas_key":"ssk9jjnuTtBu0yTjvzy2cZ","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5E38\u89C41","canvas_key":"ssk9jjnuTtBu0ynqCkjQaj","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGQYf8Yz9UHr","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYJh7R08W1r","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYMLs2hQEJG","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYP2KXZHDEc","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"}],"\u5F39\u6846\u9875\u9762":[{"name":"\u9690\u79C1\u534F\u8BAE\u5F39\u7A97","canvas_key":"rcUEJd8wi7paasTe","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u83B7\u53D6\u7CFB\u7EDF\u6743\u9650\u5F39\u7A97","canvas_key":"rcUEJd8wUENymwlgvBKF6u","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9752\u5C11\u5E74\u6A21\u5F0F\u5F39\u7A97","canvas_key":"rcUEJd8wUERAHTWBUZSIds","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9752\u5C11\u5E74\u6A21\u5F0F\u5F39\u7A97 ","canvas_key":"rcUEJd8wUERD3PquInOO3Z","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5E94\u7528\u5347\u7EA7\u5F39\u7A97","canvas_key":"rcUEJd8wUEREn8BV7V7oD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5E94\u7528\u5347\u7EA7\u5F39\u7A97","canvas_key":"rcUEJd8wUERGeNB3vlY0ml","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5185\u5BB9\u63D0\u793A\u5F39\u7A97","canvas_key":"rcUEJd8wUESVcui4ZmuCeN","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUESXtqLjclMehz","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUESZN01J9hVHG","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u670D\u52A1\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESbdcolohH2AU","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u670D\u52A1\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESfbYX6Rtsfrt","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6D41\u7A0B\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESiYjTMchfUuI","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6D41\u7A0B\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESlgv48IePahE","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u4EF7\u683C\u660E\u7EC6\u5F39\u7A97","canvas_key":"rcUEJd8wUESp3ac16yZZWg","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u91D1\u989D\u660E\u7EC6\u5F39\u7A97","canvas_key":"rcUEJd8wUEStyvGOZeEdFm","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5355\u9009\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUESzqJZJY7Zs7T","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9000\u6B3E\u539F\u56E0\u5F39\u7A97","canvas_key":"rcUEJd8wUETI8EMOFtdahx","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5185\u5BB9\u63D0\u793A\u53EF\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETKDQriUja0Ii","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u542F\u6D88\u606F\u901A\u77E5\u5F39\u7A97","canvas_key":"rcUEJd8wUETM21ub94nARA","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5173\u6CE8\u670D\u52A1\u53F7\u901A\u77E5\u5F39\u7A97","canvas_key":"rcUEJd8wUETM4QdgNjgRkJ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUETOefhGgzSESo","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u4FA7\u8FB9\u5F39\u7A97","canvas_key":"rcTzVlSfUETRoid906zMAD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B80\u5355\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETSTlO4JdQlJx","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u786E\u8BA4\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETTwMQthOv48k","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5C0F\u5F39\u7A97","canvas_key":"rcUEJd8wUETV1vPoVEW1Nz","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u767B\u5F55\u6CE8\u518C\u5F39\u7A97","canvas_key":"rcUEJd8wUEW8U69eeDisvZ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u4E00\u952E\u767B\u5F55\u5F39\u7A97","canvas_key":"rcUEJd8wUEWDwdqwP51wKe","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u767B\u5F55\u5F39\u7A97 ","canvas_key":"rcUEJd8wUEWJI2ZuenqghY","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u624B\u673A\u53F7\u52A0\u5BC6\u5F39\u7A97","canvas_key":"rcUEJd8wUEWT2re8L1TZoP","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u624B\u673A\u9A8C\u8BC1\u7801\u5F39\u7A97","canvas_key":"rcUEJd8wUEWXIPYznJCvd9","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9A8C\u8BC1\u7801\u81EA\u52A8\u586B\u5165\u5F39\u7A97","canvas_key":"rcUEJd8wUEWZIYcz9omqQ0","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9A8C\u8BC1\u7801\u81EA\u52A8\u586B\u5165\u5F39\u7A97","canvas_key":"rcUEJd8wUEWb3wggirvGpP","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u5E95\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEWdKoD3BMbVIH","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEWfV8I3YmhfMb","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEYUgNfVXawKcQ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u5F39\u7A97","canvas_key":"rcUEJd8wUEYgMfNndbb9Tg","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u5F39\u7A97","canvas_key":"rcUEJd8wUEYiPNdmBOKzA6","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u529F\u80FD\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUDoCeFUEYlDJwPnAXvaX","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u529F\u80FD\u8BBE\u7F6E\u5F39\u7A97","canvas_key":"rcUDoCeFUEYnoJ5lavPZYE","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B7E\u5230\u5F39\u7A97","canvas_key":"rcUEJd8wUEYoVkSQdAL0fa","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u505A\u4EFB\u52A1\u5F39\u7A97","canvas_key":"rcUEJd8wUEYtJP5VWGwVIa","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u6210\u529F\u5F39\u7A97","canvas_key":"rcUEJd8wUEYviU55CpSsq8","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6210\u529F\u53CD\u9988\u5F39\u7A97","canvas_key":"rcUEJd8wUEYz3V9380njPj","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B7E\u5230\u63D0\u9192\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ0m1X6TEe2ho","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u95EE\u5377\u54A8\u8BE2\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ2XMMLGDS2o6","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ4IRKzx3iH7q","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ6LES8RJulZD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u901A\u4F1A\u5458\u5F39\u7A97 Copy 1","canvas_key":"rcUEJd8wUEZ812HseggTnC","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u901A\u8054\u5408\u4F1A\u5458\u5F39\u7A97 Copy 1","canvas_key":"rcUEJd8wUEZ812IjH9ORjO","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7EA7\u8054\u9009\u62E9\u5F39\u7A97 ","canvas_key":"rcUEJd8wUEZA56XyHVi9Q1","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5347\u7EA7\u5F39\u6846-1","canvas_key":"rcUSvioSUT2W2f9zI7IFtA","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-2","canvas_key":"rcUSvioSUT2XfArjTDJRHo","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-3","canvas_key":"rcUSvioSUT2cruo8OLLJ1j","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-4","canvas_key":"rcUSvioSUT2dvkAEWVv4US","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-5","canvas_key":"rcUSvioSUT2fRTKbJNAGoK","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-6","canvas_key":"rcUSvioSUT2gutbpVPhXxR","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-7","canvas_key":"rcUSvioSUT2ifgJ67TgTWs","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-8","canvas_key":"rcUSvioSUT4a6YQk4EFDOu","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-9","canvas_key":"rcUSvioSUT4aY7IxfBU977","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-10","canvas_key":"rcUSvioSUT4b9tPqleX1Hr","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-11","canvas_key":"rcUSvioSUT4cNLXUwlAMAG","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-12","canvas_key":"rcUSvioSUT4gpBqqSTPErf","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"2.PM\u540C\u8DEF\u4EBA-\u72B6\u6001 1","canvas_key":"ssl1rejmU7LDqsibHPyJgL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"2.PM\u540C\u8DEF\u4EBA-\u72B6\u6001 2","canvas_key":"ssl1rejmU7LDqsxb3Y3nH6","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"1.\u5173\u4E8E\u4F5C\u8005","canvas_key":"ssl1rejmU7LDqtCdP0Gh3M","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"3.\u8DF3\u65B0\u9875\u63D0\u793A","canvas_key":"ssl1rek2U7LDqtfdBrFs7E","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"7.\u5F15\u5BFC\u53BB\u8BA2\u9605","canvas_key":"ssl1rek2U7LDqu2LFquvQT","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"1.\u9884\u8BA2\u586B\u8D44\u6599","canvas_key":"ssl1rek2U7LDquOxXBCD28","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"11.\u7EAF\u6587\u5B57\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDquuUPniVpz","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"11.\u7EAF\u6587\u5B57\u63D0\u793A-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDqv8SO5Oy4U","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"8.\u4E00\u952E\u53BB\u62A5\u540D","canvas_key":"ssl1rek2U7LDqvXcBFL5Pz","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"12.\u5F15\u5BFC\u53BB\u5019\u8865","canvas_key":"ssl1rek2U7LDqxwIYN2fAL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"2.\u9009\u9884\u7EA6\u65E5\u671F","canvas_key":"ssl1rek2U7LDqySaQwWVoO","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"14.\u6DFB\u52A0\u4F18\u60E0\u5238","canvas_key":"ssl1rek2U7LDr034S2knjq","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u5173\u6CE8\u516C\u4F17\u53F7","canvas_key":"ssl1rek2U7LDr0PkLx7t0C","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"13.\u9009\u62E9\u4F18\u60E0\u5238","canvas_key":"ssl1rek2U7LDr0mgkBgq74","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"10.\u5019\u8865\u524D\u987B\u77E5","canvas_key":"ssl1rek2U7LDr1U405SLbP","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"9.\u5DF2\u62A5\u540D\u7528\u6237","canvas_key":"ssl1rek2U7LDr2UxlmsicN","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"4.\u62A5\u8BFE\u9009\u6392\u671F-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDr4qv9jJlFu","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"4.\u62A5\u8BFE\u9009\u6392\u671F-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDr7noflQmCy","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"6.\u4E00\u6B21\u6027\u8BA2\u9605","canvas_key":"ssl1rek2U7LDr8PxLUfvYL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u8054\u7CFB\u5BA2\u670D\u9875-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDr93WMM9YmM","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u8054\u7CFB\u5BA2\u670D\u9875-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDr9TbF3UvAj","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"23.\u5B8C\u6210\u597D\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrADmpc82RQ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"29.\u6E29\u99A8\u63D0\u793A\u9875","canvas_key":"ssl1rek2U7LDrAjhSCmPTe","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"25.\u63D0\u4EA4\u6210\u529F\u540E","canvas_key":"ssl1rek2U7LDrBB4myN91a","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"21.\u9886\u5238\u6210\u529F\u9875","canvas_key":"ssl1rek2U7LDrBVW7PM4Yk","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"19.\u586B\u62A5\u540D\u4FE1\u606F","canvas_key":"ssl1rek2U7LDrBz13JKfYQ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"16.\u65B0\u589E\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrCinno41I8","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"24.\u5B8C\u6210\u5DEE\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrD3oEmqSbY","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"17.\u5220\u9664\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrDIjFsre5r","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"26.\u5C0F\u7EA2\u82B1\u8F6C\u8D60","canvas_key":"ssl1rek2U7LDrDcMTbkaqZ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"28.\u786E\u8BA4\u8BA2\u5355\u9875","canvas_key":"ssl1rek2U7LDrE5lwBbObN","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"27.\u9009\u53D6\u8D27\u65B9\u5F0F","canvas_key":"ssl1rek2U7LDrJJktwJGeU","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"18.\u9009\u652F\u4ED8\u65B9\u5F0F","canvas_key":"ssl1rek2U7LDrJr3uw6LYI","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"15.\u52FE\u9009\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrLNBwA4rC8","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"22.\u4F60\u6765\u665A\u4E86\u5566","canvas_key":"ssl1rek2U7LDrLynNVNERp","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"20.\u53D6\u6D88\u9884\u8BA2\u9875","canvas_key":"ssl1rek2U7LDrMI804JY8u","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"36.\u63D0\u95EE\u51FA\u4EF7\u9875","canvas_key":"ssl1rek2U7LDrMaJDqeu5u","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"39.\u6DFB\u52A0\u53D1\u7968\u9875","canvas_key":"ssl1rek2U7LDrNBEyHhtct","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"37.\u8F93\u5165\u70B9\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrNaO6LAsGn","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"32.\u7B7E\u5230\u540D\u5355\u9875","canvas_key":"ssl1rek2U7LDrO44dgCEgU","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"33.\u9009\u95E8\u7968\u7B7E\u5230","canvas_key":"ssl1rek2U7LDrPLDwGboia","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"38.\u9009\u8BA2\u5355\u5F00\u7968","canvas_key":"ssl1rek2U7LDrPdcmjfkbT","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"31.\u4F01\u4E1A\u5207\u6362\u9875","canvas_key":"ssl1rek2U7LDrR1Zjbjy9G","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"40.\u9009\u62E9\u7968\u79CD\u7C7B","canvas_key":"ssl1rek2U7LDrRECu3MNnw","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"34.\u591A\u5F20\u7968\u7B7E\u5230","canvas_key":"ssl1rek2U7LDrRje0RxNe0","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"35.\u67E5\u770B\u8BA2\u5355\u9875","canvas_key":"ssl1rek2U7LDrS887kNnYZ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"30.\u7533\u8BF7\u9000\u6B3E\u9875","canvas_key":"ssl1rek2U7LDrTPfEh2Y1F","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"42.\u8D60\u8BFE\u7ED9\u597D\u53CB","canvas_key":"ssl1rek2U7LDrTqtKyVtmK","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"43.\u6D77\u62A5\u5F15\u5BFC\u9875","canvas_key":"ssl1rek2U7LDrUIzKEKaSK","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"44.\u6682\u505C\u53D1\u8D27\u9875","canvas_key":"ssl1rek2U7LDrUcvfYWK5l","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"}],"\u5BFC\u822A":[{"name":"\u4F7F\u7528\u8BF4\u660E","canvas_key":"ssl5qw7vTtCAe0Q5lv1NYu","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe0sWADIVdL","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u7535\u5546\u7C7B\u5BFC\u822A\u7EC4\u5EFA","canvas_key":"ssl5qw7vTtCAe1QeaGcOqP","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u65C5\u884C\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe1xR5uurYX","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u5916\u5356\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2XibYPqem","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u652F\u4ED8\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2sduccH3v","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u6559\u80B2\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe3NNAjGIah","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u4F5C\u8005\u4FE1\u606F","canvas_key":"ssl5qw7vTtCAe428zEXVjp","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdtmsQdPKnz","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u77ED\u89C6\u9891\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAduDCj0nS8k","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u65B0\u95FB\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAduiYANuZw7","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u9910\u996E\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdvAS4q7sF8","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u7535\u5546\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdvaYarOb4i","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 01-\u521D\u59CB\u72B6\u6001","canvas_key":"sskk6iwjTtBwvxeedsLMAG","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 01-\u9876\u90E8","canvas_key":"sskk6iwjTtBwvy5VKFofnj","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 02","canvas_key":"sskk6iwjTtBwvyVoKNSiV3","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 04","canvas_key":"sskk6iwjTtBwvz0MJGoliX","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 05","canvas_key":"sskk6iwjTtBwvzMk9SH1NR","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 03","canvas_key":"sskk6iwjTtBww04nYxmQQG","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u6211\u7684\u4FE1\u606F","canvas_key":"sskk6iwjTtBww0bqqyUgot","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"}],"\u652F\u4ED8":[{"name":"\u4E3B\u9875-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nVWB18ryc8","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u4E3B\u9875-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nWLU2jFKxR","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u6536\u94B1","canvas_key":"ssl0br1uTtC9nX6VG5SBFO","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nXOL8ttW3L","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nXXObBmyXw","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9nXbpFcnNhU","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u4ED8\u94B1","canvas_key":"ssl0br1uTtC9nXn3oZ2d26","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u8D26","canvas_key":"ssl0br1uTtC9nY4E0WC9NA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nZJGmGZNXH","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nZmWZ36qid","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9na9wtYdywA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9naH4YM9gjA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9naPXo0HoeA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 6","canvas_key":"ssl0br1uTtC9naYZszCGwi","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 7","canvas_key":"ssl0br1uTtC9nah3DlmQOr","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssl0br1uTtC9nb0vTosE5S","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nbPLIT43tS","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nc3oXIxTIx","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9ncGhSSjAW1","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9ncbawWdsRq","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9ncjCBYfPey","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165\u6210\u529F","canvas_key":"ssl0br1uTtC9nd0HdeFiB7","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9ndl24QIhB8","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9ndwnmdbRiv","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9ne2LRJv7Fg","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9ne9H9DzSQS","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9neOLRNBL6z","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 6","canvas_key":"ssl0br1uTtC9neVaT2391l","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA\u6210\u529F","canvas_key":"ssl0br1uTtC9ndDNxxdImI","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u652F\u4ED8\u5B9D-\u652F\u4ED8\u8DF3\u8F6C","canvas_key":"ssk4s6t6TtBtoIC9Jh91T2","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u5FAE\u4FE1\u542F\u52A8","canvas_key":"ssk4s6t6TtBtoIJe8y2bEe","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoIPPJtQE3R","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u786E\u8BA4\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoIgUkIk3s1","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u6307\u7EB9\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoJ1bQ8ZK5l","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u4ED8\u6B3E\u8DF3\u8F6C","canvas_key":"ssk4s6t6TtBtoJE1GG8N7A","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssk4s6t6TtBtoJPcnUWdjq","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8\u5B9D\u542F\u52A8","canvas_key":"ssk4s6t5TtBtoDhAorrwYF","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u652F\u4ED8","canvas_key":"ssk4s6t5TtBtoDn7SLyEp1","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u6307\u7EB9\u652F\u4ED8","canvas_key":"ssk4s6t5TtBtoE0A2nXkkq","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4ED8\u6B3E\u6210\u529F1","canvas_key":"ssk4s6t5TtBtoEBiiSlsOd","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4ED8\u6B3E\u6210\u529F2","canvas_key":"ssk4s6t5TtBtoEJChIhzVz","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4E3B\u9875-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mbmNWxHMK4","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u4E3B\u9875-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mcJqznD9VZ","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u8D26","canvas_key":"ssl096m4TtC9mcmkTssxw5","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssl096m4TtC9mccRNRWOyv","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mdkEIh714Q","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9me27RDjbPK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9meCi115sul","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9meJ3eVlDF6","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9meRCT5jI26","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 6","canvas_key":"ssl096m4TtC9meZcrWP8pX","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 7","canvas_key":"ssl096m4TtC9menZCTxDWx","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mcyKah6cra","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9md49d0V3N0","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9md7tSULwFK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u6536\u94B1","canvas_key":"ssl096m4TtC9mdLs671nG","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u4ED8\u94B1","canvas_key":"ssl096m4TtC9mf9IZhp2Bk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mfUJQtyueA","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mfgWxZferV","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9mflvc9iDwo","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9mfqMqEARcc","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9mfuBPLooCg","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165\u6210\u529F","canvas_key":"ssl096m4TtC9mhkt3KGnk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mgZgVP2LQv","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mgkN6GKJT9","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9mgrLM0NCsk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9mgzJe1ihQy","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9mh7odjWvJp","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 6","canvas_key":"ssl096m4TtC9mhH1Az3NHK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA\u6210\u529F","canvas_key":"ssl096m4TtC9mhv9HCgNXi","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"}],"\u8868\u5355":[{"name":"\u8868\u5355\u586B\u5199-\u63D0\u4EA4\u7EBF\u7D22","canvas_key":"rcUGkBX5BHdxUWzA","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B8C\u5584\u8F66\u8F86\u4FE1\u606F","canvas_key":"rcUGkBX5UGv51VIr5r91hg","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u5DE5\u4F5C\u4FE1\u606F","canvas_key":"rcUGkBX5UGy7u5RWp1xUum","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4F01\u4E1A\u4FE1\u606F","canvas_key":"rcUGkBX5UH04D1zJrM2CZF","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u8EAB\u4EFD\u9A8C\u8BC1","canvas_key":"rcUGkBX5UH0FLaQQSzQrxL","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u8EAB\u4EFD\u9A8C\u8BC1","canvas_key":"rcUGkBX5UH0MNHAW1pSsE8","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4E2A\u4EBA\u4FE1\u606F\u7F16\u8F91","canvas_key":"rcUGkBX5UH0RZy4cjDR6Rg","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B9E\u540D\u8BA4\u8BC1-1","canvas_key":"rcUGkBX5UH0W2gTfRimjXD","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B9E\u540D\u8BA4\u8BC1-2","canvas_key":"rcUGkBX5UH1B1WxMji5lFI","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u6D3B\u52A8","canvas_key":"rcUGkBX5UH1QqPewY7fxQQ","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u586B\u5199\u6295\u4FDD\u4FE1\u606F","canvas_key":"rcUGkBX5UH3SkGvqRdCwv","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4E2A\u4EBA\u4FE1\u606F\u6CE8\u518C","canvas_key":"rcUGkBX5UH3loRxIyjX3iY","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u59D4\u6258\u7BA1\u7406","canvas_key":"rcUGkBX5UH4BbY5nINmDDV","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u5546\u54C1","canvas_key":"rcUGkBX5UH4Fa6kdhnnBTf","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u56E2\u8D2D","canvas_key":"rcUGkBX5UH4IxTfpQnA98p","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u63CF\u8FF0\u75C5\u60C5","canvas_key":"rcUGkBX5UH4TTE9b0U508X","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u7535\u8BDD\u54A8\u8BE2\u75C5\u60C5","canvas_key":"rcUGkBX5UH4ZDwmdaQn7gM","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u610F\u89C1\u53CD\u9988","canvas_key":"rcUGkBX5UH4exZdO5Vvr6k","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u586B\u5199\u8054\u7CFB\u4EBA","canvas_key":"rcUGkBX5UH4i2LYIg1S26Y","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5F00\u7968","canvas_key":"rcUGkBX5UH4nsoBnVvvgCf","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u94F6\u884C\u5361","canvas_key":"rcUGkBX5UH4uJ6dAre2y0W","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4FEE\u6539\u6211\u7684\u4E2A\u4EBA\u4FE1\u606F","canvas_key":"rcUGkBX5UH5TWVwO3W1R00","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u9884\u7EA6\u7533\u8BF7","canvas_key":"rcUGkBX5UH5Zj1I5Bp5tf6","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u5E38\u7528\u65C5\u5BA2","canvas_key":"rcUGkBX5UH5c1uvkek7npS","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u52A8\u6001","canvas_key":"rcUGkBX5UH5pAFRpBfixdb","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u52A8\u6001","canvas_key":"rcUGkBX5UH5tu53DOATJR6","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u5185\u5BB9","canvas_key":"rcUGkBX5UH5wcZ3mJMUQBl","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u521B\u5EFA\u5DE5\u5355","canvas_key":"rcUGkBX5UH61bHVO29tceG","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u610F\u89C1\u53CD\u9988","canvas_key":"rcUGkBX5UH64qhNkNdfqol","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5728\u7EBF\u62A5\u4FEE","canvas_key":"sslewjb0UH6OAoM6IAept3","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"Navbar\u5BFC\u822A\u680F","canvas_key":"ssl2flfnTtCAK3Cevw7gCq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"TitleButton\u6807\u9898\u6309\u94AE","canvas_key":"ssl2flfnTtCAK4LvUR3B6w","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PageNav\u9875\u9762\u5BFC\u822A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK4jfPoA7OL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PageNav\u9875\u9762\u5BFC\u822A-\u6253\u5F00\u5C0F\u7A0B\u5E8F\u63D0\u793A","canvas_key":"ssl2flfnTtCAK4oiIPzb6a","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65B0\u9875\u9762","canvas_key":"ssl2flfnTtCAK58ypSoEt9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Swipe \u8F6E\u64AD\u56FE","canvas_key":"ssl2flfnTtCAK5IZII80Zu","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Grid \u5BAB\u683C","canvas_key":"ssl2flfnTtCAK5otN5Ligm","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tabbar \u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2flfnTtCAK6tKuluWn8","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tab \u6807\u7B7E\u9875","canvas_key":"ssl2flfnTtCAK78x2l60iW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Footer \u9875\u811A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK8GrZGAnrU","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Footer \u9875\u811A-\u72B6\u6001 2","canvas_key":"ssl2flfnTtCAK8Pk9wJZBP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK8mJcFY1by","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5728\u5185\u90E8","canvas_key":"ssl2flfnTtCAK8tzPrCAP0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5DE6\u4E0A","canvas_key":"ssl2flfnTtCAK8zbuiCiNv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u9876\u90E8","canvas_key":"ssl2flfnTtCAK94WJDB8xW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u53F3\u4E0A","canvas_key":"ssl2flfnTtCAK9Az09WUUb","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5DE6\u4E0B","canvas_key":"ssl2flfnTtCAK9GDVclTTW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5E95\u90E8","canvas_key":"ssl2flfnTtCAK9Vrh6ay4b","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u53F3\u4E0B","canvas_key":"ssl2flfnTtCAK9bMaLZHRY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u906E\u7F69\u5173\u95ED","canvas_key":"ssl2flfnTtCAK9gM91vGju","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Collapse \u6298\u53E0\u9762\u677F","canvas_key":"ssl2flfnTtCAK9sEmqLNdS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Pagination \u5206\u9875","canvas_key":"ssl2flfnTtCAKAHYlunp5J","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Steps \u6B65\u9AA4\u6761","canvas_key":"ssl2flfnTtCAKAxTwYLnPl","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Radio \u5355\u9009","canvas_key":"ssl2flfnTtCAKBY1xyMrb4","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Check \u591A\u9009","canvas_key":"ssl2flfnTtCAKCqeSYIYXw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKECDYj7CqE","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u72B6\u6001 3","canvas_key":"ssl2flfnTtCAKENbA9C9zo","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u63D0\u793A\u6253\u5F00","canvas_key":"ssl2flfnTtCAKEW4ECOjLk","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u63D0\u793A\u5173\u95ED","canvas_key":"ssl2flfnTtCAKEguqrSFqP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Input \u8F93\u5165\u6846","canvas_key":"ssl2flfnTtCAKF8D77eXyL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"MultilineText \u591A\u884C\u6587\u672C\u8F93\u5165","canvas_key":"ssl2flfnTtCAKFVzJESfy2","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Progress \u8FDB\u5EA6\u6761","canvas_key":"ssl2flfnTtCAKFg1VGMwOA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Editor \u7F16\u8F91\u5668","canvas_key":"ssl2flfnTtCAKFzNJBn6zS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKGywd4Sboe","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u56FD\u5BB6","canvas_key":"ssl2flfnTtCAKHJn40kjMV","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u5927\u5B66\u4E13\u4E1A","canvas_key":"ssl2flfnTtCAKHZbRxxeJW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u5730\u533A","canvas_key":"ssl2flfnTtCAKHq5sUaIF8","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u9879\u5305\u542B\u7981\u7528","canvas_key":"ssl2flfnTtCAKIH8IC3ibL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9519\u8BEF","canvas_key":"ssl2flfnTtCAKIWrAvaXw6","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u804C\u4F4D","canvas_key":"ssl2flfnTtCAKIn44aGUmt","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u56FD\u5BB6","canvas_key":"ssl2flfnTtCAKJDLA0I9LG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u65F6\u95F4","canvas_key":"ssl2flfnTtCAKJW4aNPypz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u65E5\u671F","canvas_key":"ssl2flfnTtCAKJsgH4s1aA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PickerView \u9009\u62E9\u89C6\u56FE","canvas_key":"ssl2flfnTtCAKKWnx40wwY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Slider \u6ED1\u5757","canvas_key":"ssl2flfnTtCAKKwfW6jOpK","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"List \u5217\u8868","canvas_key":"ssl2flfnTtCAKLAbArMUbz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"SwipeAction \u6ED1\u52A8\u64CD\u4F5C","canvas_key":"ssl2flfnTtCAKLd8Qzzvrn","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Form \u8868\u5355","canvas_key":"ssl2flfnTtCAKMIK4dWUhS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"FormTxample \u8868\u5355\u793A\u4F8B","canvas_key":"ssl2flfnTtCAKMf9QNJDd0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Upload \u4E0A\u4F20","canvas_key":"ssl2flfnTtCAKNVMR1wjxM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"InputNumber \u8BA1\u6570\u5668","canvas_key":"ssl2flfnTtCAKNo6MhTHXZ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Avatar \u5934\u50CF","canvas_key":"ssl2flfnTtCAKOF2BxUs38","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKOeY6vrRfA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u906E\u7F69\u5C42","canvas_key":"ssl2flfnTtCAKOjZXy1t18","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u5D4C\u5957\u5185\u5BB9","canvas_key":"ssl2flfnTtCAKOnqPEY8Nx","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Article \u6587\u7AE0","canvas_key":"ssl2flfnTtCAKP1w6g8vpt","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Badge \u5FBD\u6807","canvas_key":"ssl2flfnTtCAKPLPC7j7DI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKPsoX2jYId","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-a1","canvas_key":"ssl2flfnTtCAKPzLEbaBEC","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-a2","canvas_key":"ssl2flfnTtCAKQ9BI0W1yq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-b1","canvas_key":"ssl2flfnTtCAKQOq4sLB0B","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-b2","canvas_key":"ssl2flfnTtCAKQUgmyOwPv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-c1","canvas_key":"ssl2flfnTtCAKQZwIksk3c","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-c2","canvas_key":"ssl2flfnTtCAKQg3VPJItg","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKR0Y6Z8VnT","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-\u4E0A\u4F20\u540E","canvas_key":"ssl2flfnTtCAKR6q54BI6d","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-1","canvas_key":"ssl2flfnTtCAKRBvjxVlsI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-2","canvas_key":"ssl2flfnTtCAKRJBpDUU1h","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-3","canvas_key":"ssl2flfnTtCAKRQma11ygZ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-4","canvas_key":"ssl2flfnTtCAKRZTv4bZUw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"LoadMore \u52A0\u8F7D\u66F4\u591A","canvas_key":"ssl2flfnTtCAKRxZH7C41j","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Loading \u52A0\u8F7D\u4E2D","canvas_key":"ssl2flfnTtCAKSBHCpaamM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Empty \u7A7A\u72B6\u6001","canvas_key":"ssl2flfnTtCAKSURa7YW8e","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Panel \u9762\u677F","canvas_key":"ssl2flfnTtCAKSrHdhTV8p","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"FormPreview \u8868\u5355\u9884\u89C8","canvas_key":"ssl2flfnTtCAKTSQ1tCR2p","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Rate \u8BC4\u5206","canvas_key":"ssl2flfnTtCAKTkjnQWGzg","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tag \u6807\u7B7E","canvas_key":"ssl2flfnTtCAKUjhJwGtb7","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKVF5bUvaBP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u53EF\u53D6\u6D88","canvas_key":"ssl2flfnTtCAKVLiA5P9Ko","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u53EA\u6709\u786E\u8BA4","canvas_key":"ssl2flfnTtCAKVSsntayYT","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKVnoOONrGv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6210\u529F\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKVzTGMXLU9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5931\u8D25\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKWDPmTm53K","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65E0\u56FE\u6807\u63D0\u793A\u98751","canvas_key":"ssl2flfnTtCAKWPfwgS0D3","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65E0\u56FE\u6807\u63D0\u793A\u98752","canvas_key":"ssl2flfnTtCAKWapmOGmvP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKWuCtfi0gc","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-1","canvas_key":"ssl2flfnTtCAKX9Zr1xDCG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-2","canvas_key":"ssl2flfnTtCAKXGKiopEqN","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-3","canvas_key":"ssl2flfnTtCAKXNi3DPXo5","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5F39\u51FA\u5F0F\u83DC\u5355-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKXlPR302Ag","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5F39\u51FA\u5F0F\u83DC\u5355-\u72B6\u6001 2","canvas_key":"ssl2flfnTtCAKXujhhicbi","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKYOTvOZd9h","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u6210\u529F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYTpYuCVUw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u9519\u8BEF\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYhWnPWgVG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u8B66\u544A\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYuSqGHYmU","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u4FE1\u606F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKZIndQuw61","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKZrFVcTZpQ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u9ED8\u8BA4\u63D0\u793A","canvas_key":"ssl2flfnTtCAKZyYS3R7Da","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u591A\u884C\u63D0\u793A","canvas_key":"ssl2flfnTtCAKa4WiExoFM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u6210\u529F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKaATbkEYuC","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u5931\u8D25\u63D0\u793A","canvas_key":"ssl2flfnTtCAKaHDb9WWPh","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u52A0\u8F7D\u4E2D","canvas_key":"ssl2flfnTtCAKaPr0XkjLm","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u5012\u8BA1\u65F6","canvas_key":"ssl2flfnTtCAKajpV5S5qi","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKbNhTKzKzb","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u5355\u884C\u6587\u672C","canvas_key":"ssl2flfnTtCAKbTpQLqiNJ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u591A\u884C\u6587\u672C","canvas_key":"ssl2flfnTtCAKbZ35BsWY1","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u663E\u793A\u5173\u95ED\u6309\u94AE","canvas_key":"ssl2flfnTtCAKbhGXLYdjI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u5E26\u6309\u94AE\u63A7\u5236","canvas_key":"ssl2flfnTtCAKbnIOeeUdc","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKcEcVtKQ86","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u57FA\u7840\u6C14\u6CE1","canvas_key":"ssl2flfnTtCAKcLexcGVIo","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u5217\u8868\u6C14\u6CE1","canvas_key":"ssl2flfnTtCAKcQfhygEE1","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6298\u7EBF\u56FE","canvas_key":"ssl2flfnTtCAKchTBbi4jp","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u67F1\u72B6\u56FE","canvas_key":"ssl2flfnTtCAKd3u9zY5Xq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6761\u5F62\u56FE","canvas_key":"ssl2flfnTtCAKdJKGyBBYz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u997C\u56FE","canvas_key":"ssl2flfnTtCAKdjciWTI8q","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9762\u79EF\u56FE","canvas_key":"ssl2flfnTtCAKe1EquUpf4","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u96F7\u8FBE\u56FE","canvas_key":"ssl2flfnTtCAKeJCJyZMmN","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u641C\u7D22","canvas_key":"ssl2flfnTtCAKeXxNCxDK0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u56FE\u7247","canvas_key":"ssl2flfnTtCAKemReLqrsj","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u89C6\u9891","canvas_key":"ssl2flfnTtCAKeyQb9oTBS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u97F3\u9891","canvas_key":"ssl2flfnTtCAKfKz0ejYfs","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKfifQrAwzP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u624B\u673A","canvas_key":"ssl2flfnTtCAKg03Q5vBhY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u7528\u6237\u4FE1\u606F","canvas_key":"ssl2flfnTtCAKgCfIXeHl5","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BA2\u670D\u4F1A\u8BDD","canvas_key":"ssl2flfnTtCAKgWbDWLZM9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u7528\u6237\u8F6C\u53D1","canvas_key":"ssl2flfnTtCAKgxC9l120Y","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u952E\u76D8","canvas_key":"ssl2flfnTtCAKhakmSdA82","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u72B6\u6001\u680F","canvas_key":"ssl2flfnTtCAKjOQZsr4Yw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbb6Ez4qB6JX9","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbICciB38ZP","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbOK3sTy5hZQ","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbTqcLowaN5H","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbcFUjEbEtuw","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbl7soi3i7ic","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbw5v43574o9","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbc7ZgSnpzfkX","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcFCw49vrT8K","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcNbXCisEiZS","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcTaszzyvHcX","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"}],"\u8D2D\u7269\u8F66":[{"name":"\u667A\u80FD\u8D2D\u7269\u8F66","canvas_key":"rcUluGran8rx3Uhk","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u6D6E\u5C422","canvas_key":"rcUEDRX9UlzXINsh98BKXM","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u6D6E\u5C422 1","canvas_key":"rcUEDRX9UlzarTYrVqAxRY","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u9875\u9762 1","canvas_key":"rcUlvcMiyArvehD9","pm_cid":"pm2mbhmi3sxp106h3","mt_cid":"mtmb02sg79t4ca7e"}],"\u5546\u54C1\u8BE6\u60C5":[{"name":"\u4EA7\u54C1\u8BE6\u60C5-\u4E66\u520A","canvas_key":"rcUGxLDEFSXaN5F8","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5-\u9152\u5E97\u8BE6\u60C5","canvas_key":"rcUGxLDEUHliYOq83De6qM","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHlpoQv3KFt2vP","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5 ","canvas_key":"rcUGxLDEUHmCuLlfk5H6Yj","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHmHz4rshiyUEW","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHmQrgmlrTt8jH","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHor4kC230xKgq","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHpd3UBMm9Dm1m","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u8BFE\u7A0B\u8BE6\u60C5","canvas_key":"rcUGxLDEUHpjAtf4Ig0ImY","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHq1RAQkoPy8Is","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"}],"\u4E0A\u4F20":[{"name":"\u4E00\u7EC41\u53F7","canvas_key":"rcUPYovlt9R4WIBi","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC42\u53F7 ","canvas_key":"rcUPYovlUPZulg84xFaE5z","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC43\u53F7 ","canvas_key":"rcUPYovlUPZunk1ksoTzko","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC44\u53F7 ","canvas_key":"rcUPYovlUPZunsnY9XhhXq","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC45\u53F7 ","canvas_key":"rcUPYovlUPZxlvXMBZbS","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC41\u53F7 ","canvas_key":"rcUPYovlUPZz87I3hvZ9qy","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC42\u53F7 ","canvas_key":"rcUPYovlUPa7lbAoJznFOu","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC43\u53F7 ","canvas_key":"rcUPYovlUPa7lnK1Z3bYCT","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC44\u53F7 ","canvas_key":"rcUPYovlUPa7pmUhWft1bD","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u9875\u9762 2","canvas_key":"rcUPZv62UPZvtxwuaGM8yz","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u9875\u9762 1","canvas_key":"rcUPZv62JdKzMqbJ","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u6700\u8FD1\u9879\u76EE","canvas_key":"ssl98cd3TtC8SZ3vfxJIx","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u76F8\u518C\u9009\u62E9","canvas_key":"ssl98cd3TtC8SaIZ9z2TBb","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9009\u4E2D\u7D20\u6750","canvas_key":"ssl98cd3TtC8SbevQpgAnc","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u56FE\u7247","canvas_key":"ssl98cd3TtC8ScoBoHHFQL","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u56FE\u7247","canvas_key":"ssl98cd3TtC8SeL46w7I7c","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u89C6\u9891","canvas_key":"ssl98cd3TtC8Scwe3v85i0","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u89C6\u9891","canvas_key":"ssl98cd3TtC8Sfde41LQfB","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u4F5C\u8005\u4ECB\u7ECD","canvas_key":"ssl98cd3TtC8SgiMlKEaCQ","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"}],"\u53CD\u9988":[{"name":"\u610F\u89C1\u53CD\u99883","canvas_key":"ssk9b1e1TtBu0iYaa5DD01","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99886","canvas_key":"ssk9b1e1TtBu0ins2PTniK","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99882","canvas_key":"ssk9b1e1TtBu0j17RCb0hf","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99887","canvas_key":"ssk9b1e1TtBu0j92GNfhLh","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99881","canvas_key":"ssk9b1e1TtBu0jMHXWb84u","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99884","canvas_key":"ssk9b1e1TtBu0jaN0C6wyc","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99888","canvas_key":"ssk9b1e1TtBu0jlaNJxbMv","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99885","canvas_key":"ssk9b1e1TtBu0k1rLdiubw","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxSofHSfO40","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxWVdlCbxVN","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxZjCXx3H81","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxdUOmGXhiG","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxgiKgrsYsn","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1 Copy 1","canvas_key":"rcUn8bxgUn8huudxWTBiOP","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxkCEpQY8NQ","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u5E2E\u52A9\u53CD\u9988","canvas_key":"rcUgoqr4Uh5uWQEAyFOlm2","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 1","canvas_key":"rcUgoqr4Uh5uWQEZsQYXJc","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 2","canvas_key":"rcUgoqr4Uh5uWQEOlkexxZ","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 3","canvas_key":"rcUgoqr4Uh5uWQEuIad8TM","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 4","canvas_key":"rcUgoqr4Uh5uWQFqvKlTVP","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 5","canvas_key":"rcUgoqr4Uh5uWQFxxgUF4A","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 6","canvas_key":"rcUgoqr4Uh5uWQFO6TzseP","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 7","canvas_key":"rcUgoqr4Uh5uWQFHyfBMmF","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"}],"\u7B7E\u5230":[{"name":"\u8FDB\u5EA6\u73AF2","canvas_key":"ssl2fxplTtCAc2z4NQoPkG","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u8FDB\u5EA6\u73AF1","canvas_key":"ssl2fxplTtCAc3BU83KsGz","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52301","canvas_key":"ssl2fxplTtCAc3Ollox6u","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52302","canvas_key":"ssl2fxplTtCAc3ou8sATuU","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u6697\u591C\u6A21\u5F0F","canvas_key":"ssl2fxplTtCAc4CjUoD4YK","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52303","canvas_key":"ssl2fxplTtCAc4RWU9Bctv","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u6697\u591C\u6A21\u5F0F","canvas_key":"ssl2fxplTtCAc4mZh1lZYb","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52304","canvas_key":"ssl2fxplTtCAc5BgIe0AmJ","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u8FDB\u5EA6\u73AF3","canvas_key":"ssl2fxplTtCAc5mzydYJ1E","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u5230\u9875\u9762v1","canvas_key":"rcUGgyE5RqAFWIgO","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v2","canvas_key":"rcUGmQ9q422GmCQJ","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v3","canvas_key":"rcUGx8MV0aSCljjY","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v4","canvas_key":"rcUGxX4nk1cvNOka","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v5","canvas_key":"rcUHdQJa3Hg8So28","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v6","canvas_key":"rcUI0kX81dH5yywi","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-1","canvas_key":"rcUJzcpR1npt5BkA","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-2","canvas_key":"rcUJzcpRUJzsM0UTyYX6bv","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-3","canvas_key":"rcUKXSlalHAhwhka","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-2","canvas_key":"rcUKXSlaUKXaz7BAYnim0L","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-1","canvas_key":"rcUKXSlaUKXclmqADgTnzY","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v2","canvas_key":"rcUGmQ9qUKewE8MPYqXGZx","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v3","canvas_key":"rcUGx8MVUKewKbwYxGfns0","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v4","canvas_key":"rcUGxX4nUKewQQj8T7XIOe","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v5","canvas_key":"rcUHdQJaUKewXUogyRR9Uy","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v6","canvas_key":"rcUI0kX8UKewxukBKpxR3n","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-1","canvas_key":"rcUJzcpRUKex2XpCEgivJt","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-2","canvas_key":"rcUJzcpRUKex2XqB2Ywt7k","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-3","canvas_key":"rcUKXSlaUKexDnIrqs92Es","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-2","canvas_key":"rcUKXSlaUKexDnJGPQ3arg","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-1","canvas_key":"rcUKXSlaUKexDnJ9ekijHS","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v1","canvas_key":"rcUGgyE5UKexhoAuOsOlp7","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"}],"\u7B5B\u9009":[{"name":"\u7B5B\u9009-\u81EA\u5982","canvas_key":"ssk4s6t5TtBto7K9acDuyc","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u74DC\u5B50\u4E8C\u624B\u8F66","canvas_key":"ssk4s6t5TtBto7q3gz0zKo","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u997F\u4E86\u4E48","canvas_key":"ssk4s6t5TtBto8p3ew8zGR","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u62C9\u52FE","canvas_key":"ssk4s6t5TtBto9KmRaAZLO","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u62C9\u52FE","canvas_key":"ssk4s6t5TtBto9yk1gGepv","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0p9mrULZ19","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0pI5Z8KhFh","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0pKPHQe3I2","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 4","canvas_key":"sskb3ibhTtBv0pSyZbL8I1","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0plmAqw2fI","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 4","canvas_key":"sskb3ibhTtBv0q7ohYtv7F","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0qGZ31ZerJ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0qJFKXlZdm","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 5","canvas_key":"sskb3ibhTtBv0qM23od46P","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0qZzuJHZA3","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0qnrPsd2Yt","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0qxKlos95R","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0r8G57sjpu","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0rJhHKeoQS","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0rT9vD1AKQ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0rlLN8PCHj","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0rweYE6DOl","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0ryB0Ur6w0","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0s6CEjnByi","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0s8RVwgThK","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0sBsK0pX7a","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0sQ3VnNPQQ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0sgCaa2iNS","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0sn9MAApuM","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5206\u7C7B4","canvas_key":"ssk4y5wqTtBtrjiKtZ7GJr","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B1","canvas_key":"ssk4y5wqTtBtrkIShIfZZ2","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B2","canvas_key":"ssk4y5wqTtBtrki54ZF7ve","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B3","canvas_key":"ssk4y5wqTtBtrlPwNfivkP","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u7B5B\u9009","canvas_key":"rcUQQ0dO8yIngnBM","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQD59iZlE2mfO","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009\u6761\u4EF6-\u5E95\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQKqAhLmlGGMk","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQjTYRNrccKmu","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6761\u4EF6\u7B5B\u9009-\u4F30\u4EF7\u4FE1\u606F","canvas_key":"rcUQQ0dOUQQrUCHSsTBNgu","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6761\u4EF6\u7B5B\u9009-\u9009\u62E9\u9152\u5E97","canvas_key":"rcUEJd8wUQQyqRLDkViJkl","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u4FA7\u8FB9\u5F39\u7A97","canvas_key":"rcTzVlSfUQRAquRQgEXqMY","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6B65\u9AA4\u7B5B\u9009","canvas_key":"rcUQQ0dOUQRPcS7ks9Nz6L","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"}],"\u5206\u4EAB":[{"name":"\u5206\u4EAB1-\u72B6\u6001 1","canvas_key":"ssl331smTtCAt0wsIeIDNl","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB1-\u72B6\u6001 2","canvas_key":"ssl331smTtCAt195aD4m4X","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB2-\u72B6\u6001 1","canvas_key":"ssl331smTtCAt1YcZyBfXv","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB2-\u72B6\u6001 2","canvas_key":"ssl331smTtCAt1fATBQkGQ","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u4F5C\u8005\u4ECB\u7ECD","canvas_key":"sskwurn2TtC9OhDxqkK5X2","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D101","canvas_key":"sskwurn2TtC9OhSzKMNVgA","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D102","canvas_key":"sskwurn2TtC9OhhclbTliv","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D103","canvas_key":"sskwurn2TtC9OhuBYqr78q","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D105","canvas_key":"sskwurn2TtC9Oi323n3iUs","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D104","canvas_key":"sskwurn2TtC9OiIxxIprzs","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D106","canvas_key":"sskwurn2TtC9OiSKYy0hL9","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D107","canvas_key":"sskwurn2TtC9OikkV4f0Zt","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D108","canvas_key":"sskwurn2TtC9OiuyfhWjYx","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D109","canvas_key":"sskwurn2TtC9Oj5ulWtpSn","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D110","canvas_key":"sskwurn2TtC9OjHxmuBN96","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u9875\u9762 1","canvas_key":"rcUOtGaDUklQ5f4TkDbhNq","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u9875\u9762 2","canvas_key":"rcUOtGaDUklQ5f4f6MPZiY","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u9875\u9762 3","canvas_key":"rcUOtGaDUklQ5f4VAqIZeu","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u901A\u7528\u79FB\u52A8\u7AEF\u5728\u7EBF\u89C6\u9891\u5206\u4EAB\u9875 - \u6D45\u8272","canvas_key":"rcUlhJTQUln34bWaKf6cp8","pm_cid":"pm2mazeyxroaxo2h8","mt_cid":"mtmazeyxrqt5dmbu"},{"name":"\u901A\u7528\u79FB\u52A8\u7AEF\u5728\u7EBF\u89C6\u9891\u5206\u4EAB\u9875 - \u6DF1\u8272","canvas_key":"rcUlhJTQUlvq5FjrcW3G4f","pm_cid":"pm2mazeyxroaxo2h8","mt_cid":"mtmazeyxrqt5dmbu"}],"\u7A7A\u9875\u9762":[{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u7F51\u7EDC","canvas_key":"rcUGrEJftxQb2F2d","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u8BA2\u5355","canvas_key":"rcUGrEJfUGrGJS1b12SU2N","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u641C\u7D22\u7ED3\u679C","canvas_key":"rcUGrEJfUGrGbdklyE6RYl","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUGrGplFm7RqlI0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u4F18\u60E0\u5238","canvas_key":"rcUGrEJfUGrHGIM3GhQXq8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6536\u8D27\u5730\u5740","canvas_key":"rcUGrEJfUGrHR8t39P34uY","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BC4\u8BBA","canvas_key":"rcUGrEJfUGrHag6ZKfT8kX","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6743\u9650\u4E0D\u8DB3","canvas_key":"rcUGrEJfUGrHkNnrNh8o7v","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6570\u636E","canvas_key":"rcUGrEJfUGrILeJdjFSUYY","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u5386\u53F2\u8BB0\u5F55","canvas_key":"rcUGrEJfUGrIYaYbLd1R3R","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u65B0\u95FB\u5217\u8868","canvas_key":"rcUGrEJfUGrIlLoka6blS8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUGrLoYJ4EpBd15","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrPRQiteRVJxi","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u9875\u9762\u4E0D\u5B58\u5728","canvas_key":"rcUGrEJfUGrPjJLECe4daz","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrPtq7uQL8RJs","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u7F51\u7EDC","canvas_key":"rcUGrEJfUGrhdZj58qwGht","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUGrhdZltE33sgh","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUGrhdZnf1az98g","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u4F18\u60E0\u5238","canvas_key":"rcUGrEJfUGrhdZobZmQ4Hm","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUGrhdZtZJ8TuF9","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrhdZuT2WKXml","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrhdZv7fOvF9Z","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u901A\u77E5","canvas_key":"rcUGrEJfUGriPbaR8IwTun","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u4E0B\u8F7D","canvas_key":"rcUGrEJfUGribhnmH1CMfR","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8DB3\u8FF9","canvas_key":"rcUGrEJfUGrioExehLVbME","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BBF\u5BA2","canvas_key":"rcUGrEJfUGrj0OikAc8PRN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6587\u4EF6","canvas_key":"rcUGrEJfUGrjC5fRV4Rq7O","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8D26\u5355","canvas_key":"rcUGrEJfUGrjMcACP3e3dy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BC4\u4EF7","canvas_key":"rcUGrEJfUGrjpcupfk681j","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u53D1\u7968","canvas_key":"rcUGrEJfUGrkGaVQ1Go9ER","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6743\u9650","canvas_key":"rcUGrEJfUd1vSVLnGG1QT1","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u65E5\u7A0B\u5B89\u6392","canvas_key":"rcUGrEJfUd1vSVMFiFN2sJ","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUd1vSVNiu8mnDy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u89C6\u9891","canvas_key":"rcUGrEJfUd1vSVNr9JrRVn","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVNkLobPQ0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUd1vSVOCbMvIU1","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6B63\u5728\u52A0\u8F7D\u4E2D","canvas_key":"rcUGrEJfUd1vSVOiXA0Rhb","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5DF2\u53D1\u9001","canvas_key":"rcUGrEJfUd1vSVO17eu1UW","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVPbpGIJC6","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUd1vSVPRz6CHlE","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u56FE\u7247","canvas_key":"rcUGrEJfUd1vSVPEL2Xs3g","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6536\u85CF\u5939\u4E3A\u7A7A","canvas_key":"rcUGrEJfUd1vSVQOEj5F7l","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u7F51\u7EDC\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVQ7jwMCFX","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6B63\u5728\u5F00\u53D1\u4E2D","canvas_key":"rcUGrEJfUd1vSVRVD5JJyP","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8DB3\u8FF9","canvas_key":"rcUGrEJfUd1vSVSbk5YDQf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u641C\u7D22\u7ED3\u679C","canvas_key":"rcUGrEJfUd22DXveHsktVD","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-404\u9875\u9762\u4E0D\u5B58\u5728","canvas_key":"rcUGrEJfUdRfqvWAtoo0QN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u627E\u4E0D\u5230\u5B9A\u4F4D","canvas_key":"rcUGrEJfUdRgEchr8gfVwB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8FDE\u63A5\u8D85\u65F6","canvas_key":"rcUGrEJfUdRgb3ewRAhBgM","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRgogc7pbgULk","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRh5YmXLuVlTl","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRhRjFxEetlwF","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRhs6eUuKljo0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRi2IhtlPfr7Q","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiCAOZLPMZQC","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiM80MKO7Upo","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiu4aGNHczwu","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRj2SevASaxlB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjChfcAYv4Zy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjMEk5RiPqdd","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjYRkJa2659k","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjiTtbI6OyGS","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjrY92XdyU6q","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u7F51\u7EDC\u4E0D\u7A33\u5B9A","canvas_key":"rcUGrEJfUeX7TmHqJFaAwr","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUeX7TmIgZzegvN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUeX7TmIM90x5O9","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6570\u636E","canvas_key":"rcUGrEJfUeX7TmJx0wS8q0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUeX7TmJnaRxgiN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUeX7TmKJ0rDobi","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u672A\u627E\u5230\u8BBF\u95EE\u9875\u9762404","canvas_key":"rcUGrEJfUeX7TmKFziVs9D","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u672A\u5F00\u53D1","canvas_key":"rcUGrEJfUeX7TmKuP39SKa","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u672A\u53D1\u5E03","canvas_key":"rcUGrEJfUeX7TmLdcPXJ4x","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5BA1\u6838\u4E2D","canvas_key":"rcUGrEJfUeX7TmLAy49v0m","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u4E2D","canvas_key":"rcUGrEJfUeX7TmMJd2ZFe6","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u5931\u8D25","canvas_key":"rcUGrEJfUeX7TmMe0QViqe","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u5546\u54C1","canvas_key":"rcUGrEJfUeX7TmM8jcY4J","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u5730\u5740\u65E0\u6CD5\u83B7\u53D6\u4F4D\u7F6E","canvas_key":"rcUGrEJfUeX7TmNcI8dNec","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u627E\u5230\u76F8\u5173\u7ED3\u679C","canvas_key":"rcUGrEJfUeX7TmOdoWLL4P","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BB0\u5F55","canvas_key":"rcUGrEJfUeXBPNsy1k6gF","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4E2A\u4EBA\u8BA4\u8BC1\u5931\u8D25","canvas_key":"rcUGrEJfUeXCbWVKFsbhv8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4E2A\u4EBA\u8BA4\u8BC1\u6210\u529F","canvas_key":"rcUGrEJfUeXEqjP2GO2Kom","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5DF2\u63D0\u4EA4","canvas_key":"rcUGrEJfUeXF4G2MggG3EB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u652F\u4ED8\u8D85\u65F6\uFF0C\u8BA2\u5355\u5DF2\u53D6\u6D88","canvas_key":"rcUGrEJfUeXFH4bjRsAJUf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5BA1\u6838\u5931\u8D25","canvas_key":"rcUGrEJfUeXFXTmglVp6PK","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5BA1\u6838\u4E2D","canvas_key":"rcUGrEJfUeXFuukROuBj5h","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUeXG8PTzWFe5pf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u641C\u7D22\u4E2D","canvas_key":"rcUGrEJfUeXGHPOL9X0xuQ","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6570\u636E","canvas_key":"rcUGrEJfUeXGQyBpkrEnyz","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u7F51\u7EDC\u8FDE\u63A5\u65AD\u5F00","canvas_key":"rcUGrEJfUeXGi8da6lFWMc","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u4E2D\u8BF7\u7B49\u5F85","canvas_key":"rcUGrEJfUeXHRYVzPZnA20","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u5931\u8D25","canvas_key":"rcUGrEJfUeXHdCDSZgNmjq","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5DF2\u52A0\u5165\u9ED1\u540D\u5355","canvas_key":"rcUGrEJfUeXHnKCRRvd7uK","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8FD8\u6CA1\u6709\u8BC4\u8BBA","canvas_key":"rcUGrEJfUeXIbQQiYthXoo","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6587\u4EF6","canvas_key":"rcUGrEJfUeXIpFsdGkYWxM","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5DF2\u56DE\u590D\u6D88\u606F","canvas_key":"rcUGrEJfUeXJ1dOdK0LNgh","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"}],"AI":[{"name":"\u767B\u5F55","canvas_key":"rcUfgGT8UgeD0ejpYX1Uuv","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u5FEB\u6377\u767B\u5F55","canvas_key":"rcUfgGT8UgeF6cAjfFRhaQ","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u9996\u9875","canvas_key":"rcUgeEqJoss9tD0s","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u5386\u53F2\u4F1A\u8BDD","canvas_key":"rcUgeEqJUgeMUOwu9TMlVM","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u804A\u5929","canvas_key":"rcUgeEqJUgeSQcLge0I41K","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u804A\u59292","canvas_key":"rcUgeEqJUgeYpxvjtCiydM","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD","canvas_key":"rcUgeEqJUged7LkvTjBSv6","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u4E2D","canvas_key":"rcUgeEqJUgiGVehazKhQ0b","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u5B8C\u6210","canvas_key":"rcUgeEqJUgiLSTeWSCyWqU","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u5B8C\u6210 \u5206\u6790\u8FC7\u7A0B\u5C55\u5F00","canvas_key":"rcUgeEqJUgiOv91yBIckJZ","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u4EF6\u9009\u62E9","canvas_key":"rcUgiRLA6dKrLHxv","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4Uzl6c5aH","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B\u7ED3\u679C","canvas_key":"rcUgidO4UgifLswzt5v5wz","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4UgiiVObs0QNwFP","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u4FEE\u6539\u5B8C\u6210","canvas_key":"rcUgidO4UgiiVObhNEYPgV","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u4FEE\u6539\u4E2D","canvas_key":"rcUgeEqJUgikRmb4lQvIHP","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u6863\u3001word\u3001\u8868\u683C\u3001pdf \u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4Ugin1oW7XDT4BV","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u6863\u3001word\u3001\u8868\u683C\u3001pdf \u5206\u6790\u8BC6\u522B\u7ED3\u679C","canvas_key":"rcUgidO4Ugin1oWIiypVs9","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6211\u7684","canvas_key":"rcUgiwQgA21UZfyt","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD","canvas_key":"rcUgeEqJUgizBKhDgOkHSX","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u4E3B\u9898\u5207\u6362","canvas_key":"rcUgiwQgUgj0CK56Q4U1Q3","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u9996\u9875--\u673A\u5668\u4EBA\u60AC\u6D6E","canvas_key":"sslyy164UNpwL60Uc0gm8f","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u5F39\u7A97","canvas_key":"sslyy164UNpwL8Nd23S8iP","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u601D\u8003\u4E2D","canvas_key":"sslyy164UNpwLA7JiYbjmj","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u5206\u6790\u7ED3\u679C","canvas_key":"sslyy164UNpwLAeLQfGMcL","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1","canvas_key":"sslyy164UNpwLCMC7XrBJR","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1 \u53BB\u8425\u9500","canvas_key":"sslyy164UNpwLEaWSx8H39","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1 \u77ED\u4FE1","canvas_key":"sslyy164UNpwLFeNlgOqhR","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-2","canvas_key":"sslyy164UNpwLDagqXN9n5","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"}],"\u5176\u5B83":[{"name":"\u4F7F\u7528\u8BF4\u660E","canvas_key":"ssl5qw7vTtCAe0Q5lv1NYu","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe0sWADIVdL","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u7535\u5546\u7C7B\u5BFC\u822A\u7EC4\u5EFA","canvas_key":"ssl5qw7vTtCAe1QeaGcOqP","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u65C5\u884C\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe1xR5uurYX","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u5916\u5356\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2XibYPqem","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u652F\u4ED8\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2sduccH3v","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u6559\u80B2\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe3NNAjGIah","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u4F5C\u8005\u4FE1\u606F","canvas_key":"ssl5qw7vTtCAe428zEXVjp","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC11-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMMap1PbNiV","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC11-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMMoxiF0lRC","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC12","canvas_key":"sskb3icbTtBvMNIzwEoSdu","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u4EBA\u8138\u8BC6\u522B1","canvas_key":"sskb3icbTtBvMNb16sUsG3","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC13","canvas_key":"sskb3icbTtBvMNtEooVlM5","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC14","canvas_key":"sskb3icbTtBvMOMfqk5vSu","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC15-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMOhZ3L2Gj4","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC15-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMP0Ea4qoLN","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC16","canvas_key":"sskb3icbTtBvMPLJOuYCbi","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC17-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMPjCkaPF6j","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC17-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMQ0gDdDry","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC18-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMQCPscbI8x","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC18-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMQHspH1xy4","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC19","canvas_key":"sskb3icbTtBvMQSsSjbCau","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"}],"":[]}}',Y=async()=>{let E=[];try{var f,h,S,V,We;const we=await(0,M.DE)("/api/community/v1/market_template/star_list?user_cid="+MB.user.cid),Ae=(f=MB.getRootProject())!=null&&f.is_org_project?(h=MB)==null||(h=h.currentOrg)==null?void 0:h.cid:"";let Oe=[];try{Oe=Ae?await(0,M.DE)("/api/web/v3/market_template/mt_vip/org_used_vip_templates?org_cid="+Ae):await(0,M.DE)("/api/web/v3/market_template/mt_vip/used_vip_templates")}catch(tt){}const Be=await(0,M.DE)("/api/community/v1/community/purchased");if(we&&(we==null||(S=we.market_templates)==null?void 0:S.length)>0&&(E=[...we==null?void 0:we.market_templates.filter(tt=>(tt==null?void 0:tt.version)!=="v1"&&((tt==null?void 0:tt.category)==="screen_list"||(tt==null?void 0:tt.category)==="project_basic")).map(tt=>({...tt,is_star:!0}))]),Oe&&((V=Oe)==null||(V=V.market_templates)==null?void 0:V.length)>0){var re;const tt=(re=Oe)==null||(re=re.market_templates)==null?void 0:re.sort((Xe,ne)=>k()(ne.date_month).valueOf()-k()(Xe.date_month).valueOf()).filter((Xe,ne,lt)=>lt.findIndex(rt=>rt.cid===Xe.cid)===ne);E=[...E.map(Xe=>{const ne=tt.find(lt=>lt.cid===Xe.cid);return ne?{...Xe,is_purchased:!0,download_expired:k()(ne.date_month).format("YYYY-MM")!==k()().format("YYYY-MM")}:{...Xe}}),...tt==null?void 0:tt.map(Xe=>({...Xe,umt_created_at:Xe.created_at,is_purchased:!0,download_expired:k()(Xe.date_month).format("YYYY-MM")!==k()().format("YYYY-MM")})).filter(Xe=>(Xe.category==="project_basic"||Xe.category==="screen_list")&&E.findIndex(ne=>ne.cid===Xe.cid)===-1)]}if(Be&&(Be==null||(We=Be.market_templates)==null?void 0:We.length)>0){var ve;E=[...E.map(tt=>(Be==null?void 0:Be.market_templates.find(ne=>ne.cid===tt.cid))?{...tt,is_purchased:!0}:{...tt}),...Be==null||(ve=Be.market_templates)==null?void 0:ve.map(tt=>({...tt,umt_created_at:tt.created_at,is_purchased:!0})).filter(tt=>(tt.category==="project_basic"||tt.category==="screen_list")&&E.findIndex(Xe=>Xe.cid===tt.cid)===-1)]}}catch(we){(0,P.FY)(we)}return E.sort((we,Ae)=>new Date(Ae==null?void 0:Ae.umt_created_at).getTime()-new Date(we==null?void 0:we.umt_created_at).getTime())},J=async E=>{try{const f=E.map(async S=>{const V=await(0,M.DE)("/api/community/v1/workspace/mkt_list?en_name="+S.value);return{title:S.label,key:S.value,list:V.map(We=>{const{isPurchased:re,isVipTemplate:ve,isMdVipTemplate:we,isMktVipTemplate:Ae}=(0,C.TX)(We);return{...We,isPurchased:re,isVipTemplate:ve,isMdVipTemplate:we,isMktVipTemplate:Ae}})}});return await Promise.all(f)}catch(f){return(0,P.FY)(f),[]}},O=async()=>{const E=JSON.parse(SCREENS_MOCK_DATA),f=new Map,h=E.\u79FB\u52A8\u7AEF,S=E.\u7F51\u9875\u7AEF;return f.set("mobile",h),f.set("web",S),f},l=async E=>{try{const f=E.map(async S=>{const V=await(0,M.Yo)("/api/community/v1/workspace?category=screen_list&plabel="+S),We=Object.keys(V.market_templates);return{title:S,nums:Object.values(V.market_templates).flat().length,templateList:We.map(re=>({title:re,list:V.market_templates[re].map(ve=>{const{isPurchased:we,isVipTemplate:Ae,isMdVipTemplate:Oe,isMktVipTemplate:Be}=(0,C.TX)(ve);return{...ve,isPurchased:we,isVipTemplate:Ae,isMdVipTemplate:Oe,isMktVipTemplate:Be}})}))}});return await Promise.all(f)}catch(f){return(0,P.FY)(f),[]}},D=E=>{try{return(0,M.Ds)("/api/community/v1/market_template/like/"+E)}catch(f){(0,P.FY)(f)}},m=E=>{try{return(0,M.DW)("/api/community/v1/market_template/like/"+E)}catch(f){(0,P.FY)(f)}}},47693:(eo,ot,i)=>{"use strict";i.d(ot,{IL:()=>M,Q1:()=>k,RW:()=>P});var a=i(5209);let k=function(C){return C.BackToCanvas="\u8FD4\u56DE\u753B\u5E03",C.Device="\u6F14\u793A",C.AddState="\u6DFB\u52A0\u72B6\u6001",C.col="\u6A2A\u6392",C.row="\u7AD6\u6392",C.StatePanel="\u72B6\u6001\u9762\u677F",C.CopyState="\u590D\u5236\u72B6\u6001",C.DeleteState="\u5220\u9664\u72B6\u6001",C}({}),M=function(C){return C.Dynamic="\u52A8\u6001\u7EC4\u4EF6",C.Muban="\u6BCD\u7248",C}({});const P=C=>{let{operation_type:q,operation_from:Y}=C;(0,a.kH)("component_operation_V8",{operation_type:q,operation_from:Y})}},48281:(eo,ot,i)=>{"use strict";i.d(ot,{$:()=>k,v:()=>M});var a=i(5209);let k=function(P){return P.Logo="logo",P.SwitchPage="\u5207\u6362\u9875\u9762",P.Edit="\u7F16\u8F91",P.Refresh="\u5237\u65B0",P.Zoom="\u7F29\u653E",P.HighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE",P.NotHighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE(\u5173)",P.ShowShell="\u663E\u793A\u771F\u673A\u5916\u58F3",P.HideShell="\u9690\u85CF\u771F\u673A\u5916\u58F3",P.DarkBackground="\u6DF1\u8272\u80CC\u666F",P.LightBackground="\u6D45\u8272\u80CC\u666F",P.FullScreen="\u5168\u5C4F",P.BackHome="\u56DE\u5230\u4E3B\u9875",P.previousPage="\u4E0A\u4E00\u9875",P.NextPage="\u4E0B\u4E00\u9875",P.Back="\u8FD4\u56DE",P.Event="\u89E6\u53D1\u4EA4\u4E92\u4E8B\u4EF6",P.OpenPageList="\u5C55\u5F00\u9875\u9762\u5217\u8868",P.ClosePageList="\u5173\u95ED\u9875\u9762\u5217\u8868",P.OpenSTList="\u5C55\u5F00\u6279\u6CE8\u5217\u8868",P.CloseSTList="\u5173\u95ED\u6279\u6CE8\u5217\u8868",P.Sticky="\u6279\u6CE8",P}({});const M=P=>{let{operation_type:C}=P;(0,a.kH)("function_click_present_V8",{operation_type:C})}},48559:(eo,ot,i)=>{"use strict";i.d(ot,{Eq:()=>k,GZ:()=>P,b8:()=>a,nv:()=>M});const a=()=>{var C,q;return((C=window)==null?void 0:C.MB_DESKTOP_VERSION)||((q=window)==null?void 0:q.isElectron)||/Electron/i.test(navigator.userAgent)},k=()=>/wxwork/i.test(navigator.userAgent),M=()=>/(Lark)/i.test(navigator.userAgent),P=()=>{try{return window.self!==window.top}catch(C){return!0}}},48661:(eo,ot,i)=>{"use strict";i.d(ot,{p:()=>a});const a=M=>M<=20?k[M]:M>=21&&M<=24?24:M>=25&&M<=29?20:M>=30&&M<=31?17:M>=32&&M<=38?16:M>=39&&M<=45?13:M>=46&&M<=49?11:M>=50&&M<=62?10:M>=63&&M<=71?8:M>=72&&M<=83?7:M>=84&&M<=99?6:M>=100&&M<=124?5:M>=125&&M<=166?4:M>=167&&M<=249?3:M>=250&&M<=500?2:0,k=[334,270,170,137,112,92,75,75,56,50,50,49,41,41,34,34,34,28,28,27]},49420:(eo,ot,i)=>{"use strict";i.d(ot,{$:()=>k,A:()=>M});var a=i(67787);const k=a.Ay.div.withConfig({displayName:"styles__StyledCommentList",componentId:"sc-16m80ox-0"})(["height:calc(100% - 40px);flex:1;.comment-list{width:100%;height:100%;overflow-y:auto;position:relative;.blank-list{width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;top:calc(50%);left:50%;transform:translate(-50%,-50%);.text{margin-top:16px;font-size:12px;line-height:16px;color:",";}.login{margin-top:20px;border:1px solid ",";border-radius:4px;font-size:12px;line-height:16px;color:",";width:78px;height:28px;}.icon{width:123px;height:89px;}}.comment-card{width:100%;position:relative;box-sizing:border-box;border-bottom:1px solid ",";.comment-card-header{padding:15px 10px 15px 20px;display:flex;position:relative;width:100%;.comment-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-avatar{width:26px;height:26px;border-radius:50%;margin-right:6px;&.isSpan{color:#fff;background-color:",";font-size:14px;display:flex;justify-content:center;align-items:center;}}.text-container{position:relative;width:calc(100% - 31px);.user-name,.page-name{font-size:12px;line-height:12px;}.user-name{font-weight:500;color:",";width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.page-name{margin-top:4px;transform:scale(0.834);transform-origin:left center;color:",";width:calc(100% / 0.834);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.more-btn{width:20px;height:20px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:20px;height:20px;}}}}.comment-card-content{padding:0 15px 0 20px;.raw-content{width:100%;margin-bottom:4px;word-break:break-all;word-wrap:break-word;a{color:#298df8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:12px;line-height:18px;text-align:justify;color:",";}&.fold-content{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}}.fold-btn{font-size:12px;line-height:17px;color:",";cursor:pointer;}.replay-info{font-size:12px;line-height:16px;font-weight:normal;color:",";}}.comment-card-footer{padding:10px 10px 10px 20px;display:flex;align-items:center;.time{flex:1;font-size:12px;line-height:12px;transform:scale(0.834);transform-origin:left center;font-weight:normal;color:",";}.toolbar-btn{width:24px;height:24px;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:24px;height:24px;}&.checked{.svg-icon{color:",";}}}}.related-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.star-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.star-icon{margin-right:6px;display:flex;justify-content:center;align-items:center;}.star-count{font-size:12px;font-weight:500;line-height:16px;color:",";}}.artboard-name{font-size:12px;line-height:16px;font-weight:normal;text-align:right;color:",";width:167px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px;}}.user-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.user-name{font-size:12px;line-height:16px;font-weight:500;color:",";}}&:hover{background-color:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}&.comment-active{background:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}}.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:",";margin-top:2px;}}"],P=>P.theme.color_text_L2,P=>P.theme.color_text_L1,P=>P.theme.color_text_L1,P=>P.theme.color_bg_border_02,P=>P.theme.color_proto,P=>P.theme.color_text_L1,P=>P.theme.color_text_L2,P=>P.theme.color_text_L1,P=>P.theme.color_text_L1,P=>P.theme.color_proto,P=>P.theme.color_text_L3,P=>P.theme.color_text_L2,P=>P.theme.color_text_L1,P=>P.theme.color_proto,P=>P.theme.color_text_L1,P=>P.theme.color_text_L3,P=>P.theme.color_text_L1,P=>P.theme.color_ruler_shadow_color,P=>P.theme.color_btn_secondary_hover,P=>P.theme.color_btn_secondary_active,P=>P.theme.comment_active,P=>P.theme.color_btn_secondary_hover,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_text_L3),M=a.Ay.div.withConfig({displayName:"styles__StyledCommentPanelContainer",componentId:"sc-16m80ox-1"})(["&.comment-panel{width:100%;height:100%;position:relative;right:0;top:0;background:",";border-radius:4px;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:",";box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:",";}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:",";white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:",";cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{color:",";background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}}}"],P=>P.theme.color_bg_white,P=>P.theme.color_bg_border_01,P=>P.theme.color_bg_white,P=>P.theme.color_text_L1,P=>P.theme.color_text_btn,P=>P.theme.color_text_L1,P=>P.theme.color_text_L3,P=>P.theme.color_text_L3,P=>P.theme.color_text_L1,P=>P.theme.color_text_L1,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_text_L1,P=>P.theme.color_btn_secondary_hover)},49439:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>O});var a=i(38502),k=i(53732),M=i.n(k),P=i(83199),C=i(67787);const q=C.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownDiv",componentId:"sc-loihs8-0"})(["position:relative;width:100%;margin-left:1px;margin-right:1px;&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{border-radius:4px;opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{position:absolute;top:100%;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{height:28px;border-radius:4px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-right:6px;&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}&:hover{background-color:",";}.icon{flex:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;color:",";svg{fill:none;}}.trigger{display:flex;flex-direction:row;justify-content:center;align-items:center;.tri-drop{width:6px;height:4px;color:#999;}}}.content-container{position:absolute;top:0;left:0;background-color:",";color:",";border:1px solid transparent;border-radius:4px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;filter:drop-shadow(4px 12px 40px rgba(39,54,78,0.1)) drop-shadow(0px 2px 10px rgba(39,54,78,0.08));}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_text_L1,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1);var Y=i(72214);const J=(l,D)=>{const{disabled:m,title:E,position:f,top:h,right:S,bottom:V,left:We,dark:re,center:ve,className:we,trigger:Ae,onBeforeShow:Oe,onShow:Be,onClose:tt,onBeforeClose:Xe,closeOnContentClick:ne,onClickOutside:lt}=l,[rt,Te]=(0,a.useState)(!1),[Ge,ue]=(0,a.useState)(!1),Me=(0,a.useRef)(),Ze=(0,a.useRef)(),fe=(0,a.useMemo)(()=>({position:f,top:h,right:S,bottom:V,left:We}),[f,h,S,We,V]),it=(0,a.useCallback)(async et=>{const Ut=Me&&Me.current&&Me.current.contains(et.target),G=Ze&&Ze.current&&Ze.current.contains(et.target);if(Me.current===et.target||Ut){if(!rt&&Oe&&!await Oe())return;!m&&Te(Ht=>!Ht)}else Ze.current===et.target||G?ne&&Te(!1):Xe?Xe(et)!==!1&&Te(!1):lt?lt(et)!==!1&&Te(!1):Te(!1)},[m,rt,Oe,Xe,ne,lt]);return(0,a.useImperativeHandle)(D,()=>({setDropdownVisible:Te,show:()=>Te(!0),close:()=>Te(!1)})),(0,a.useEffect)(()=>(!m&&document.addEventListener("click",it,!0),()=>{document.removeEventListener("click",it,!0)}),[m,it]),(0,a.useEffect)(()=>{Be&&rt&&Be()},[rt,Be]),(0,a.useEffect)(()=>{Ge&&tt&&!rt&&tt()},[rt,Ge,tt]),(0,a.useEffect)(()=>{ue(!0)},[]),(0,Y.jsxs)(q,{className:M()(we,{dark:re,center:ve,visible:!m&&rt}),children:[(0,Y.jsx)("a",{ref:Me,className:"trigger",id:"drop-trigger",children:E?(0,Y.jsx)(P.A,{className:"floating-tooltip",content:E,direction:"down",distance:12,children:Ae}):Ae}),(0,Y.jsx)("div",{ref:Ze,className:"content",style:fe,children:l.children})]})},O=a.memo(a.forwardRef(J))},50077:(eo,ot,i)=>{"use strict";i.d(ot,{l:()=>P});var a=i(18381),k=i(2099),M=i(81973);const P=C=>{const{key:q}=C,Y=(0,k.OP)({selections:[q],attr:"solidColor",supAttr:"fill",styleType:"color"}),J=(0,k.OP)({selections:[q],attr:"bdrColor",supAttr:"border",styleType:"color"}),O=(0,k.OP)({selections:[q],attr:"textColor",supAttr:"richTextV1",styleType:"color"}),l=(0,a.d4)(M.Dw),D=(0,a.d4)(M.jj),m=(0,a.wA)(),E=()=>{if(D!=null&&D.key){const V=sdkStore.getHotItem(D==null?void 0:D.key);if(m({type:"entry:libStyle:del:widget:refStyles",payload:{type:"text",selections:[C.key],refStyle:V}}),m({type:"settings:update:currentTextRefStyle",payload:null}),V){var S;const We=(0,k.OP)({selections:[q],attr:"textColor",supAttr:"richTextV1",styleType:"color",refStyles:V==null||(S=V.hotAttr)==null?void 0:S.refStyles});We!=null&&We.key&&m({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[q],key:"textColor",supAttr:"richTextV1",type:"color",refKey:We==null?void 0:We.key,isLibText:!0,updateType:"widget"}})}}},f=()=>{O!=null&&O.key&&m({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[q],key:"textColor",supAttr:"richTextV1",type:"color",refKey:O==null?void 0:O.key,updateType:"widget"}})};return{handleClearRef:()=>{if(Y!=null&&Y.key&&m({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[q],key:"solidColor",supAttr:"fill",type:"color",refKey:Y==null?void 0:Y.key,updateType:"widget"}}),J!=null&&J.key&&m({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[q],key:"bdrColor",supAttr:"border",type:"color",refKey:J==null?void 0:J.key,updateType:"widget"}}),f(),l!=null&&l.key){const S=sdkStore.getHotItem(l==null?void 0:l.key);m({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:[C.key],refStyle:S}}),m({type:"settings:update:currentAppearRefStyle",payload:null})}E()},handleClearTextRef:E,handleClearTextColorRef:f}}},50219:(eo,ot,i)=>{"use strict";i.d(ot,{J:()=>k});var a=i(48559);const k=(M,P,C)=>{const q=(0,a.nv)()?"_self":P;return window.open(M,q,C)}},50325:(eo,ot,i)=>{"use strict";i.d(ot,{aM:()=>Y,gD:()=>P,iv:()=>C});var a=i(82959),k=i(85449);const M=[{value:a.ni},{value:"\u6309\u94AE",children:[{value:"\u57FA\u7840\u6309\u94AE"},{value:"\u56FE\u6807\u6309\u94AE"}]},{value:"\u6570\u636E\u5F55\u5165",children:[{value:"\u5185\u7F6E\u8868\u5355"},{value:"\u641C\u7D22"},{value:"\u5355\u9009"},{value:"\u65E5\u671F"},{value:"\u8F93\u5165\u6846"},{value:"\u4E0B\u62C9\u83DC\u5355"},{value:"\u5F00\u5173"},{value:"\u591A\u9009"},{value:"\u4E0A\u4F20"},{value:"\u8BC4\u5206"},{value:"\u9009\u62E9\u5668"},{value:"\u8868\u5355"}]},{value:"\u6570\u636E\u5C55\u793A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u6807\u7B7E"},{value:"\u5934\u50CF"},{value:"\u5217\u8868"},{value:"\u8FDB\u5EA6"},{value:"\u6298\u53E0\u9762\u677F"},{value:"\u56FE\u8868"},{value:"\u5730\u56FE"},{value:"\u5361\u7247"},{value:"\u5206\u9875"},{value:"\u7B5B\u9009"},{value:"\u8F6E\u64AD"}]},{value:"\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u5BFC\u822A\u680F"},{value:"Tab\u6807\u7B7E\u680F"},{value:"\u83DC\u5355&\u5BAB\u683C"},{value:"\u4FA7\u8FB9\u5BFC\u822A"},{value:"\u6B65\u9AA4\u6761"}]},{value:"\u53CD\u9988"},{value:"\u5176\u4ED6"}],P={[a.Iw.MP_App]:M,[a.Iw.MP_Applet]:M,[a.Iw.MP_H5]:M,[a.Iw.PC_WebBack]:[{value:a.ni},{value:"\u6309\u94AE&\u5E03\u5C40",children:[{value:"\u57FA\u7840\u6309\u94AE"},{value:"\u56FE\u6807\u6309\u94AE"},{value:"\u5E03\u5C40"}]},{value:"\u6570\u636E\u5F55\u5165",children:[{value:"\u5185\u7F6E\u8868\u5355"},{value:"\u641C\u7D22"},{value:"\u65E5\u671F\u65F6\u95F4"},{value:"\u4E0A\u4F20"},{value:"\u5355\u9009"},{value:"\u8F93\u5165"},{value:"\u591A\u9009"},{value:"\u5BCC\u6587\u672C"},{value:"\u5F00\u5173"},{value:"\u7B5B\u9009"}]},{value:"\u6570\u636E\u5C55\u793A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u8868\u683C"},{value:"\u6807\u7B7E"},{value:"\u6EDA\u52A8\u6761"},{value:"\u8FDB\u5EA6"},{value:"\u5934\u50CF"},{value:"\u5730\u56FE"},{value:"\u5217\u8868"},{value:"\u56FE\u8868"}]},{value:"\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u5BFC\u822A\u680F"},{value:"\u4E0B\u62C9\u83DC\u5355"},{value:"\u5206\u9875"},{value:"\u6B65\u9AA4\u6761"}]},{value:"\u53CD\u9988"},{value:"\u5176\u4ED6"}],[a.Iw.PC_Website]:[{value:a.ni},{value:"\u5B98\u7F51\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u9876\u90E8\u5BFC\u822A"},{value:"\u4FA7\u8FB9\u5BFC\u822A"},{value:"\u5176\u4ED6\u5BFC\u822A"}]},{value:"\u5185\u5BB9\u533A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"Banner"},{value:"\u5B98\u7F51\u7B80\u4ECB"},{value:"\u5BA2\u6237\u6848\u4F8B"},{value:"\u56FE\u6587\u5361\u7247"},{value:"\u5176\u4ED6\u5185\u5BB9"}]},{value:"\u7279\u5F81\u533A",children:[{value:"\u4EA7\u54C1\u65B9\u6848"},{value:"\u56E2\u961F"},{value:"\u5B9A\u4EF7"}]},{value:"\u9875\u811A",children:[{value:"\u9875\u811A\uFF08\u4EAE\u8272\uFF09"},{value:"\u9875\u811A\uFF08\u6697\u9ED1\uFF09"}]}],[a.Iw.DS_Screen]:[{value:a.ni},{value:"\u6846\u67B6\u80CC\u666F"},{value:"\u6807\u9898\u6837\u5F0F"},{value:"\u56FE\u8868",children:[{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u5E38\u89C1\u56FE\u8868"},{value:"\u7279\u6B8A\u56FE\u8868"}]},{value:"\u5730\u56FE"},{value:"\u6309\u94AE"},{value:"\u7A97\u53E3\u6846"},{value:"\u5F39\u7A97"},{value:"\u6307\u6807"},{value:"\u5176\u4ED6"}],[a.Iw.HMI_IndusHmi]:[{value:a.ni},{value:"\u6309\u94AE"},{value:"\u6307\u793A\u706F"},{value:"\u5F00\u5173"},{value:"\u6ED1\u5757"},{value:"\u4EEA\u8868\u76D8"},{value:"\u8BBE\u5907\u7EC4\u4EF6"},{value:"\u7B26\u53F7"},{value:"\u5176\u4ED6"}],[a.Iw.HMI_Car]:[{value:a.ni},{value:"\u4E2D\u63A7\u6846\u67B6"},{value:"\u4EEA\u8868\u76D8"},{value:"\u5BFC\u822A"},{value:"\u5185\u5BB9\u5361\u7247"},{value:"\u56FE\u6807"},{value:"\u5176\u4ED6"}],[a.Iw.Pad]:[{value:a.ni},{value:"\u5BFC\u822A\u680F"},{value:"\u72B6\u6001\u680F"},{value:"\u5F39\u7A97"},{value:"\u5217\u8868\u83DC\u5355"},{value:"\u952E\u76D8"},{value:"\u65F6\u95F4\u9009\u62E9\u5668"},{value:"\u5176\u4ED6"}],[a.Iw.SmartTV]:[{value:a.ni},{value:"\u5BFC\u822A"},{value:"banner"},{value:"\u5185\u5BB9\u533A"},{value:"\u4ED8\u8D39\u5F39\u7A97"},{value:"\u952E\u76D8"},{value:"\u5176\u4ED6"}],[a.Iw.Watch]:[{value:a.ni},{value:"Apple Watch OS"},{value:"Android Watch"}],[a.Iw.Common]:[{value:a.ni}]},C={[a.Iw.DS_Screen]:6,[a.Iw.HMI_IndusHmi]:7,[a.Iw.HMI_Car]:4,[a.Iw.Pad]:6,[a.Iw.Watch]:7},q=(J,O,l,D)=>J.length===0?[]:J.map(m=>{const f=(O.get(m.mt_cid)||[]).find(h=>h.key===m.cid);return f&&(l.set(m.cid,f),D.push(f)),f||{...m,key:m.cid,mtCid:m.mt_cid}}),Y=(J,O)=>{const l=new Map,D=[],m=J.map(E=>{const f=E.children.map(h=>{const S=q((0,k.YT)(h.children,"cid"),O,l,D);return{...h,children:S}});return{...E,children:f}});return{itemsMap:l,templateList:D,fetchList:m}}},50917:(eo,ot,i)=>{"use strict";i.d(ot,{L:()=>mn});var a=i(38502),k=i(70768),M=i(72274),P=i(18381);const C={popupAlertModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},sharingModal:{isOpen:!1},chargeOverlay:{isOpen:!1},previewAuthModal:{isOpen:!1,isWrongPwd:!1},upgradeChatGPTModal:{isOpen:!1}};function q(Yt,Gt){Yt===void 0&&(Yt=C);const{type:Bn,payload:qt}=Gt;switch(Bn){case"modal:update:state":return{...Yt,...qt};case"modal:reset:state":return C;default:return Yt}}var Y=i(95549),J=i(39e3),O=i(57479),l=i(67787),D=i(58320),m=i(36518);const E=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledPreviewAuthModal",componentId:"sc-urw68g-0"})(["min-height:unset;&.preview-auth-modal{.header{color:",";border-bottom:1px solid ",";}}@media (max-width:40rem){width:306px;margin:20vh auto;}.wrapper{display:flex;margin:14px 0;.input-wrapper{display:flex;flex-direction:column;width:100%;input{font-size:14px;line-height:16px;height:32px;border:1px solid #1684fc;border-top-left-radius:6px;border-bottom-left-radius:6px;padding:0 12px;}span{margin-top:4px;color:#ff2e4a;font-size:12px;line-height:17px;}}.confirm-btn{display:flex;justify-content:center;align-items:center;position:relative;width:130px;height:32px;font-size:14px;font-weight:500;border-top-right-radius:6px;border-bottom-right-radius:6px;background-color:#1684FC;color:#fff;&:hover{background-color:#419BFF;}&:active{background-color:#206CCF;}}}"],m.fm.color_text_L1.value_light,m.fm.color_bg_border_02.value_light);var f=i(72214);const h=Yt=>{let{onConfirm:Gt,isWrongPwd:Bn}=Yt;const[qt,Zt]=(0,a.useState)(""),jn=ro=>{ro.key===O._.Enter&&Gt(qt)};return(0,f.jsxs)(E,{className:"preview-auth-modal",isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,isUsePortal:!1,title:"\u8BF7\u8F93\u5165\u5BC6\u7801\u8BBF\u95EE\u9879\u76EE",canClose:!1,width:400,footer:null,children:[(0,f.jsxs)("div",{className:"wrapper",children:[(0,f.jsxs)("div",{className:"input-wrapper",children:[(0,f.jsx)("input",{type:"password",onChange:ro=>Zt(ro.currentTarget.value)}),Bn&&(0,f.jsx)("span",{className:"warning",children:"\u5BC6\u7801\u9519\u8BEF"})]}),(0,f.jsx)("button",{className:"confirm-btn",onClick:()=>Gt(qt),children:"\u786E\u5B9A"})]}),(0,f.jsx)(J.A,{target:document,onKeyDown:jn})]})};var S=i(86200),V=i(77814);const re=()=>ENV.IS_MO?V.A:S.A;var ve=i(69368);const we=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledTeamSelectModal",componentId:"sc-ba0ta4-0"})(["height:448px;.content{width:100%;height:100%;padding:0;}iframe{width:100%;height:100%;border:0;}"]);class Ae extends a.PureComponent{constructor(){super(...arguments),(0,Y.A)(this,"setIframeRef",Gt=>this.$iframe=Gt),(0,Y.A)(this,"onhandleFunc",Gt=>{Gt.data==="close"?this.onCancel():Gt.data.msg==="submit"&&this.onSubmit(Gt.data.param)}),(0,Y.A)(this,"onSubmit",async Gt=>{const{target:Bn}=Gt,{onConfirm:qt}=this.props;this.close(),qt(Bn)}),(0,Y.A)(this,"onCancel",()=>{const{onCancel:Gt}=this.props;this.close(),Gt&&Gt()}),(0,Y.A)(this,"close",()=>{const{onClose:Gt}=this.props;Gt()})}async componentDidMount(){window.addEventListener("message",this.onhandleFunc,!1)}componentWillUnmount(){window.removeEventListener("message",this.onhandleFunc,!1)}render(){const{isOpen:Gt,projectCid:Bn}=this.props,qt={title:I18N.Popups.save_to,from:"workspace",appCidList:Bn?[Bn]:[]};return(0,f.jsx)(we,{isOpen:Gt,className:(0,ve.Hn)(["TargetSelectingModal","select-common"]),onClose:this.onCancel,title:null,width:800,footer:null,isUsePortal:!1,canClose:!1,modalRender:()=>(0,f.jsx)("iframe",{ref:this.setIframeRef,src:"/embed/folder_select?param="+JSON.stringify(qt)})})}}var Oe=i(53732),Be=i.n(Oe),tt=i(4650),Xe=i(84860),ne=i(56202);const lt=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledPopupHelp",componentId:"sc-1wnmmop-0"})(["&{min-width:unset;}&.dark{background:",";border:1px solid ",";box-shadow:2px 8px 20px 0px #0000001A;.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";background:",";color:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}.button-root[class*='type-danger']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}.button-root[class*='type-danger-blue']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}}}&.light{background:",";border:1px solid ",";.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";color:",";background:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}.button-root[class*='type-danger']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}.button-root[class*='type-danger-blue']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}}}&.Modal{border-radius:8px;color:#1f292e;&.AlertModal{width:400px;}@media (max-width:40rem){width:100%;}}a{&:link,&:visited{color:#eb5648;}&:hover,&:active{text-decoration:none;}}.desc{font-size:14px;line-height:20px;&{}& + .FormEntry{margin-top:1em;}.ellipsis-content{display:flex;span{max-width:209px;display:block;text-overflow:ellipsis;overflow:hidden;}}}.Punctuation .Ellipsis{max-width:5em;}.desc.tertiary{margin:1em 0 0;font-size:12px;color:#8d9ea6;}.recycle{margin:0 0.25em;padding:0.4em 0.5em;border:1px solid #e5e5e5;border-radius:1px;color:#5b6b73;}.icon-recycle{font-size:1.1em;vertical-align:-0.15em;color:#eb5648;}"],m.fm.color_bg_white.value_dark,m.fm.color_bg_border_01.value_dark,m.fm.color_bg_border_02.value_dark,m.fm.color_text_L1.value_dark,m.fm.color_text_L2.value_dark,m.fm.color_text_L1.value_dark,m.fm.color_text_L1.value_dark,m.fm.color_text_L1.value_dark,m.fm.color_bg_border_02.value_dark,m.fm.color_bg_white.value_dark,m.fm.color_text_L1.value_dark,m.fm.color_bg_border_02.value_dark,m.fm.color_btn_secondary_hover.value_dark,m.fm.color_bg_border_02.value_dark,m.fm.color_btn_secondary_active.value_dark,m.fm.color_btn_danger_normal.value_dark,m.fm.color_btn_danger_hover.value_dark,m.fm.color_btn_danger_clicked.value_dark,m.fm.color_text_disabled02.value_dark,m.fm.color_btn_danger_disabled.value_dark,m.fm.color_btn_primary_normal.value_dark,m.fm.color_btn_primary_hover.value_dark,m.fm.color_btn_primary_clicked.value_dark,m.fm.color_text_disabled02.value_dark,m.fm.color_btn_primary_disabled.value_dark,m.fm.color_bg_white.value_light,m.fm.color_bg_border_01.value_light,m.fm.color_bg_border_02.value_light,m.fm.color_text_L1.value_light,m.fm.color_text_L2.value_light,m.fm.color_text_L1.value_light,m.fm.color_text_L1.value_light,m.fm.color_text_L1.value_light,m.fm.color_bg_border_02.value_light,m.fm.color_text_L1.value_light,m.fm.color_bg_white.value_light,m.fm.color_bg_border_02.value_light,m.fm.color_btn_secondary_hover.value_light,m.fm.color_bg_border_02.value_light,m.fm.color_btn_secondary_active.value_light,m.fm.color_btn_danger_normal.value_light,m.fm.color_btn_danger_hover.value_light,m.fm.color_btn_danger_clicked.value_light,m.fm.color_text_disabled02.value_light,m.fm.color_btn_danger_disabled.value_light,m.fm.color_btn_primary_normal.value_light,m.fm.color_btn_primary_hover.value_light,m.fm.color_btn_primary_clicked.value_light,m.fm.color_text_disabled02.value_light,m.fm.color_btn_primary_disabled.value_light);class rt extends a.PureComponent{render(){const{isOpen:Gt,className:Bn,type:qt,alertType:Zt,title:jn,desc:ro=jn,isHTML:Tn,onClose:bt,onCancel:Wt=()=>null,onConfirm:wn,canClose:uo,canCancel:In,canConfirm:Dn,cancelText:So=I18N.dModule.cancel,confirmText:Qt=I18N.dModule.confirm,theme:Ln,confirmBtnProps:Mn}=this.props,Rt=()=>{typeof Wt=="function"&&Wt(),bt()},Qe=In?()=>{Wt&&Wt(),bt&&bt()}:void 0,En=Dn?()=>{wn&&wn(),bt&&bt()}:void 0;return(0,f.jsxs)(lt,{isOpen:Gt,type:qt,className:Be()(Bn,Ln,{"wonder-share":!!ENV.IS_MO}),portalClassName:(0,ne.Fr)()?"popup-helper-portal is-mobile":"popup-helper-portal",title:jn===ro||!jn?I18N.dModule.reminder:jn,onClose:Rt,canClose:uo,onCancel:Qe,onConfirm:En,confirmBtnProps:Mn,cancelBtnProps:{type:"secondary"},cancelText:So,confirmText:Qt,isUsePortal:!1,children:[Tn?(0,f.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:ro}}):(0,f.jsx)("div",{className:"desc",children:ro}),Zt==="prompt"&&(0,f.jsx)(Xe.l,{name:I18N.dModule.password,children:(0,f.jsx)(tt.A,{type:"password",className:"prompt-pwd"})})]})}}(0,Y.A)(rt,"defaultProps",{type:"alert",theme:"light",confirmBtnProps:{type:"danger"}});var Te=i(84957),Ge=i(17307),ue=i(88132),Me=i(81717),Ze=i(44327),fe=i(85449),it=i(98033);const et=(0,l.DU)(["#IBOT_OVERLAY_ROOT{.OrderChargeOverlay{z-index:1051;height:auto;padding:0;.OverlayCloseButton{z-index:2;&:hover{color:#eb5648;}}}}"]),Ut=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledAIPointsPaymentModal",componentId:"sc-1dllwwl-0"})(["width:100%;height:100%;background:transparent;&.workspace-modal{border-radius:0;}iframe{width:100%;height:100%;border:none;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer}"]),G=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledMatPaymentModal",componentId:"sc-1dllwwl-1"})(["width:980px;height:600px;&.workspace-modal{border-radius:12px;}iframe{width:100%;height:100%;border:none;}"]);var Ht=i(32060);class Tt extends a.PureComponent{constructor(Gt){super(Gt),(0,Y.A)(this,"handleMessage",async Bn=>{try{if(Bn.data!=="isHasOrgUnpaid"){const{msg:qt,payload:Zt={}}=JSON.parse(Bn.data);if(qt==="closeChargeModal")this.onCloseEffect();else if(qt==="chargePaymentSuccess")if(this.props.isChatGPT)await(0,ue.Rn)();else{const jn=(0,fe.dP)().current.currentProject.cid,ro=await(0,Ze.wV)(jn),{user:Tn,org:bt,team:Wt,user_fcg:wn,org_fcg:uo,space:In}=ro,{currentUser:Dn,currentOrg:So}=(0,it.n)({user:Tn,org:bt});Object.assign(MB,{user:Dn||{},currentOrg:So}),MB.action("current:update:state",{currentOrg:So,currentTeam:Wt,currentUser:Dn,user_fcg:wn,org_fcg:uo,currentSpace:In}),this.setState({paid:!0})}else if(qt==="openSoloChargeModal"){this.onCloseEffect();const{payEntrance:jn,checkoutArea:ro,checkoutPlace:Tn,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In}=this.props,Dn={mode:"solo",payEntrance:jn,checkoutPlace:Tn,checkoutArea:ro,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In,...Zt};setTimeout(()=>MB.global.popupHelper.chargeAsync({...Dn}),100)}else if(qt==="openOrgChargeModal"){const{payEntrance:jn,checkoutArea:ro,checkoutPlace:Tn,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In}=this.props,Dn={mode:"org",payEntrance:jn,checkoutPlace:Tn,checkoutArea:ro,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In,...Zt};setTimeout(()=>MB.global.popupHelper.chargeAsync({...Dn}),100)}else if(qt==="openSoloMatPaymentModal"){const{payEntrance:jn,checkoutArea:ro,checkoutPlace:Tn,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In}=this.props,Dn={mode:"mat",payEntrance:jn,checkoutPlace:Tn,checkoutArea:ro,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In,...Zt};setTimeout(()=>MB.global.popupHelper.chargeAsync({...Dn}),100)}else if(qt==="openOrgMatPaymentModal"){const{payEntrance:jn,checkoutArea:ro,checkoutPlace:Tn,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In}=this.props,Dn={mode:"mat",payEntrance:jn,checkoutPlace:Tn,checkoutArea:ro,templateCid:bt,templateName:Wt,templateCategory:wn,templatePaySource:uo,templatePayClickType:In,...Zt};setTimeout(()=>MB.global.popupHelper.chargeAsync({...Dn}),100)}}}catch(qt){}}),(0,Y.A)(this,"onCloseEffect",()=>{const{onClose:Bn}=this.props;setTimeout(()=>{Bn(),(0,Ht.iX)()},30)}),this.state={paid:!1}}componentDidMount(){const{isChatGPT:Gt}=this.props;window.addEventListener("message",this.handleMessage),Gt&&(0,Me.ck)("\u5269\u4F59\u70B9\u6570")}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{mode:Gt,matName:Bn="",soloTab:qt="piece",soloPtypes:Zt="proto",soloCombinePtypes:jn="proto",isBuyAgentPoint:ro=!1,potatoSource:Tn="",payEntrance:bt,orgCid:Wt,onClose:wn,isOpen:uo,productId:In,hours:Dn,immediateUse:So,checkoutArea:Qt,checkoutPlace:Ln,isSelectOrg:Mn,isChatGPT:Rt,templateCid:Qe,templateName:En,templateCategory:qn,isAddMatToCartConfirmModalOpened:Hn,openOrgAddMatToNotProtoModal:Yn,addAippt:oo,showAipptBenefitPage:To,templatePaySource:po,templatePayClickType:Oo,isFromMatPaymentModal:Qo}=this.props;let ea={mode:Gt,matName:Bn,payEntrance:bt,templatePaySource:po,templatePayClickType:Oo,orgCid:Wt,from:Qt,productId:In,hours:Dn,immediateUse:(So||"")+(oo?"yearly":""),isSelectOrg:Mn,checkoutArea:Qt,checkoutPlace:Ln,initialWorkspace:Wt||"me",templateCid:Qe,templateName:En,templateCategory:qn,soloTab:qt,soloPtypes:Zt,soloCombinePtypes:jn,isAddMatToCartConfirmModalOpened:Hn,openOrgAddMatToNotProtoModal:Yn,showAipptBenefitPage:To,addAippt:oo,isFromMatPaymentModal:Qo};if(Rt){ea={mode:Wt?"org":"solo",orgCid:Wt,checkoutArea:Qt,checkoutPlace:Ln,isSelectOrg:Mn};for(const[Zn,ho]of Object.entries(ea))ho||delete ea[Zn];return(0,f.jsx)(Ut,{className:"charge-container is-view-centered",isOpen:uo,onClose:wn,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,footer:null,title:null,modalRender:()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("iframe",{src:location.origin+"/embed/ai_payment_modal?param="+(0,Te._)(ea)}),(0,f.jsx)(Ge.C,{name:"common/close",onClick:wn})]})})}if(Gt==="mat"){var _n;const nn=ea.orgCid||((_n=MB)==null||(_n=_n.currentOrg)==null?void 0:_n.cid),Zn=nn?"org":"solo";return(0,f.jsx)(G,{isOpen:uo,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,centered:!0,footer:null,title:null,modalRender:()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("iframe",{src:location.origin+"/embed/mat_payment_modal?param="+(0,Te._)({...ea,mode:Zn,orgCid:nn})}),(0,f.jsx)(et,{})]})})}const Un=location.origin;let cn=Un+"/embed/payment_modal?param="+(0,Te._)(ea);if(ro){const nn={potatoSource:Tn};cn=Un+("/embed/payment_modal/potato?param="+(0,Te._)(nn))}if(Gt==="aippt-solo"){const nn={isAipptPopup:!0,showAipptBenefitPage:To,payEntrance:bt,checkoutArea:Qt,checkoutPlace:Ln};cn=Un+("/embed/payment_modal?param="+(0,Te._)(nn))}return(0,f.jsx)(Ut,{isOpen:uo,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,mask:!1,centered:!0,footer:null,title:null,modalRender:()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("iframe",{src:cn}),(0,f.jsx)(et,{})]})})}}const Vt=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledNewOrderOverlay4WS",componentId:"sc-1yvcmxe-0"})(["height:670px;&.workspace-modal{border-radius:18px;}iframe{width:100%;height:100%;border:none;border-radius:18px;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;color:#FFF;}"]);var He=i(23744);class rn extends a.PureComponent{constructor(){super(...arguments),(0,Y.A)(this,"state",{isOpen:!1}),(0,Y.A)(this,"handleCloseModal",Gt=>{Gt.state&&Gt.state.target==="MeanSure"&&(this.setState({isOpen:!1}),window.history.forward())}),(0,Y.A)(this,"handleMessage",Gt=>{try{Gt.data==="close"?this.props.onClose():Gt.data==="reload"&&location.reload()}catch(Bn){console.error(Bn)}})}componentDidMount(){const{isOpen:Gt}=this.props;this.setState({isOpen:Gt}),setTimeout(()=>{window.history.state&&window.history.state.target==="Final"||(window.history.pushState({target:"MeanSure",random:Math.random()},"",location.href),window.history.pushState({target:"Final",random:Math.random()},"",location.href)),window.addEventListener("popstate",Bn=>this.handleCloseModal(Bn),!1)},500),window.addEventListener("message",this.handleMessage)}componentWillUnmount(){window.removeEventListener("popstate",Gt=>this.handleCloseModal(Gt),!1),window.removeEventListener("message",this.handleMessage)}render(){const{mode:Gt,payEntrance:Bn,orgCid:qt,onClose:Zt,from:jn,productId:ro,hours:Tn}=this.props,{isOpen:bt}=this.state,Wt={mode:Gt,payEntrance:Bn,orgCid:qt,from:jn||"workspace",productId:ro,hours:Tn};return(0,f.jsx)(Vt,{isOpen:bt,onClose:Zt,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,portalClassName:"OrderChargeOverlay",modalRender:()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("iframe",{src:location.origin+"/embed/ws_payment_modal?param="+(0,Te._)(Wt)}),(0,f.jsx)(He.C,{name:"common/close",onClick:Zt})]})})}}const jt=()=>ENV.IS_MO?rn:Tt;var mt=i(65710),Jn=i(37342);const o=(0,l.Ay)(D.H).withConfig({displayName:"styles__StyledUpgradeChatGPTModal",componentId:"sc-1tz832-0"})(['height:342px;background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/upgrade_modal_bg.png");box-shadow:0px 3px 6px rgba(0,0,0,0.02),0px 6px 16px rgba(0,0,0,0.02),0px 9px 28px rgba(0,0,0,0.09);overflow:hidden;display:flex;align-items:center;flex-direction:column;.time-limited{width:fit-content;padding:0 14px;height:32px;line-height:32px;font-style:italic;border-radius:0 0 16px 0;background:linear-gradient(92.27deg,#1684FC 6.81%,#F79DFE 97.87%);box-shadow:4px 12px 40px rgba(39,54,78,0.1),0px 2px 10px rgba(39,54,78,0.08);font-weight:900;font-size:14px;line-height:17px;display:flex;align-items:center;letter-spacing:0.02em;color:#FFFFFF;position:absolute;left:0;top:0;}.close-guide{display:flex;position:absolute;right:18px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.upgrade-title{margin-top:150px;font-weight:600;font-size:18px;line-height:25px;display:flex;align-items:center;color:#333333;}.upgrade-content{margin-top:17px;font-size:14px;line-height:22px;text-align:center;color:#5D6F8F;max-width:calc(100% - 110px);}.bottom-buttons{display:flex;justify-content:center;margin-top:45px;font-weight:500;font-size:14px;.cancel{margin-right:12px;border:1px solid #CFD6E6;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#415058;height:40px;width:170px !important;&:hover{background:#E6E9F1;}&:active{background:#CFD6E6;}}.upgrade{height:40px;width:170px !important;font-size:14px;display:flex;align-items:center;justify-content:center;color:white;border-radius:6px;background:linear-gradient(88.45deg,#1684FC 6.98%,#3BD8FD 176.47%);&:hover{background:linear-gradient(88.42deg,#006FE8 -0.16%,#00CEFF 176.47%);}}}']);class so extends a.PureComponent{constructor(){super(...arguments),(0,Y.A)(this,"upgradeHandle",()=>{const{onClose:Gt,orgCid:Bn,checkoutArea:qt,checkoutPlace:Zt}=this.props;Gt(),setTimeout(()=>{ENV.IS_MO?(0,Jn.JW)(mt.Jh,"_blank","noreferrer"):MB.global.popupHelper.chargeAsync({orgCid:Bn,checkoutArea:qt,checkoutPlace:Zt,isChatGPT:!0})},10)})}componentDidMount(){(0,Me.ck)("\u70B9\u6570\u4E0D\u8DB3\u5F39\u7A97\u652F\u4ED8")}render(){const{isOpen:Gt,onClose:Bn}=this.props;return(0,f.jsx)(o,{className:Be()("upgradeChatGPT"),isOpen:Gt,onClose:Bn,canCloseOnClickMask:!0,isUsePortal:!1,width:400,canClose:!1,modalRender:()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ge.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:Bn}),(0,f.jsx)("div",{className:"upgrade-title",children:I18N.ChatGPT.upgrade_limit}),(0,f.jsx)("div",{className:"upgrade-content",children:I18N.ChatGPT.upgrade_limit_content}),(0,f.jsxs)("div",{className:"bottom-buttons",children:[(0,f.jsx)("div",{className:"cancel",onClick:Bn,children:I18N.Comment.cancel}),(0,f.jsx)("div",{className:"upgrade",onClick:this.upgradeHandle,children:I18N.ChatGPT.Upgrade})]})]})})}}const Et=(0,l.DU)([".popup-helper-portal{&.ModalPortal{z-index:9999;&.is-mobile{padding:unset;min-width:unset;.Modal{width:unset;}}}.wonder-share .confirm-btn{background-color:#4257ff;color:#fff;&:hover{background-color:#7584ff;}}}.OrderChargeOverlay{transition:none !important;.workspace-modal{box-shadow:none !important;}}.ai-mark-text{font-size:11px !important;}"]);class Jt extends a.PureComponent{constructor(){super(...arguments),(0,Y.A)(this,"handleCloseModal",()=>{const{dispatch:Gt}=this.props;Gt({type:"modal:reset:state"})})}render(){const{loginModal:Gt,popupAlertModal:Bn,teamSelectModal:qt,chargeOverlay:Zt,previewAuthModal:jn,dispatch:ro,upgradeChatGPTModal:Tn}=this.props,bt=jt(),Wt=re();return(0,f.jsxs)(f.Fragment,{children:[Gt.isOpen&&(0,f.jsx)(Wt,{...Gt,onClose:this.handleCloseModal,dispatch:ro}),qt.isOpen&&(0,f.jsx)(Ae,{...qt,onClose:this.handleCloseModal,dispatch:ro}),Bn.isOpen&&(0,f.jsx)(rt,{...Bn,onClose:this.handleCloseModal,dispatch:ro}),Zt.isOpen&&(0,f.jsx)(bt,{...Zt,onClose:this.handleCloseModal,dispatch:ro}),jn.isOpen&&(0,f.jsx)(h,{...jn}),Tn.isOpen&&(0,f.jsx)(so,{...Tn,onClose:this.handleCloseModal,dispatch:ro}),(0,f.jsx)(Et,{})]})}}const Ot=(0,P.Ng)(Yt=>({...Yt}))(Jt);var dn=i(25306),Ce=i(27845),Pt=i(79287),Nn=i.n(Pt);const At=Nn()().startOf("day");function on(Yt){return At.isSameOrAfter(Nn()(Yt).startOf("day"))}function no(Yt){return on(Yt)?0:Nn()(Yt).subtract(1,"day").diff(At,"day")}const mo={canUploadToSquare:!1},mn=function(Yt){Yt===void 0&&(Yt="POPUP-HELPER-ROOT");const Gt=document.createElement("div");Gt.id=Yt,document.body.appendChild(Gt);const Bn=(0,M.y$)(q),qt=(0,k.createRoot)(Gt);qt.render((0,f.jsx)(P.Kq,{store:Bn,children:(0,f.jsx)(Ot,{})}));const{confirmAsync:Zt,alertAsync:jn,alertAsyncWide:ro,alertAsyncBlocked:Tn,promptGetPasswordAsync:bt,loginAsync:Wt,teamSelectModalAsync:wn,sharingAsync:uo,chargeAsync:In,upgradeChatGPTAsync:Dn}=ht(Bn.dispatch,Bn.getState);return{confirmAsync:Zt,alertAsync:jn,alertAsyncWide:ro,alertAsyncBlocked:Tn,promptGetPasswordAsync:bt,loginAsync:Wt,teamSelectModalAsync:wn,sharingAsync:uo,chargeAsync:In,upgradeChatGPTAsync:Dn,destroy:()=>{qt.unmount(),Gt.remove()}}},ht=(Yt,Gt)=>({confirmAsync:In=>{let{className:Dn="",title:So,desc:Qt,isHTML:Ln=!1,canCancel:Mn=!0,confirmText:Rt="",cancelText:Qe="",isClose:En=void 0,theme:qn=void 0,confirmBtnProps:Hn={type:"danger"}}=In;return new Promise(Yn=>Yt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,className:Dn,title:So,desc:Qt,isHTML:Ln,type:"alert",alertType:"confirm",canClose:En!==!1,canCancel:Mn,canConfirm:!0,cancelText:Qe,confirmText:Rt,theme:qn,confirmBtnProps:Hn,onCancel:()=>Yn(!1),onConfirm:()=>Yn(!0)}}}))},alertAsync:In=>{let{title:Dn,desc:So,isHTML:Qt=!1,confirmText:Ln=void 0}=In;return new Promise(Mn=>Yt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:Dn,desc:So,isHTML:Qt,type:"alert",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Ln,onConfirm:()=>Mn()}}}))},alertAsyncWide:In=>{let{title:Dn,desc:So,isHTML:Qt,confirmText:Ln}=In;return new Promise(Mn=>Yt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:Dn,desc:So,isHTML:Qt,type:"functional",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Ln,onConfirm:()=>Mn()}}}))},alertAsyncBlocked:In=>{let{title:Dn,desc:So,isHTML:Qt,confirmText:Ln}=In;return new Promise(Mn=>Yt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:Dn,desc:So,isHTML:Qt,type:"alert",alertType:"alert",canClose:!1,canCancel:!1,canConfirm:!0,confirmText:Ln,onConfirm:()=>Mn()}}}))},promptGetPasswordAsync:(In,Dn)=>new Promise(So=>Yt({type:"modal:update:state",payload:{previewAuthModal:{isOpen:In,isWrongPwd:Dn,onConfirm:Qt=>Qt&&So(Qt)}}})),loginAsync:In=>{let{onCancel:Dn=Fn,onConfirm:So=Fn,type:Qt="signin",source:Ln}=In;return Yt({type:"modal:update:state",payload:{loginModal:{source:Ln,isOpen:!0,type:Qt,onCancel:Dn,onConfirm:So}}})},teamSelectModalAsync:In=>{let{projectCid:Dn="",onCancel:So=Fn,onConfirm:Qt=Fn}=In;return Yt({type:"modal:update:state",payload:{teamSelectModal:{isOpen:!0,projectCid:Dn,onCancel:So,onConfirm:Qt}}})},sharingAsync:In=>{let{project:Dn,theme:So,isGuestMode:Qt,screenMetaList:Ln=[],onUpdateProject:Mn=Fn,extraInfo:Rt=mo,screenMetaCidToVisit:Qe,user:En}=In;return Yt({type:"modal:update:state",payload:{sharingModal:{isOpen:!0,project:Dn,theme:So,extraInfo:Rt,isGuestMode:Qt,screenMetaList:Ln,onUpdateProject:Mn,screenMetaCidToVisit:Qe,user:En}}})},chargeAsync:In=>{const Dn={...In};if(Dn.mode==="mat"&&MB.currentOrg){const So=dn.tz.InitialOrg(MB.currentOrg).planSdk,Qt=So.status===Ce._E.Paid,Ln=So.prototypePlan.status===Ce._E.Paid,Mn=Nn()(So.org.pt_next_billing_on).isBefore(Nn()().add(6,"month")),Rt=[dn.Sj.OrgFull,dn.Sj.OrgLite].includes(So.getPaymentOrgWidthLifeTimePlan())&&no(So.org.pt_mt_next_billing_on)<=0,Qe=So.org.pt_total_seats===0&&So.org.ptlt_total_seats===0,En=So.org.ptlt_total_seats>0,qn=(Nn()(So.org.pt_next_billing_on).isBefore(Nn()())||So.org.pt_total_seats===0)&&En,Hn=So.mktPlan.getIsMtVip();(!Qt&&!Rt||!qn&&(Qe||!Ln||Mn||Hn))&&(Dn.mode="org",Qe?Dn.openOrgAddMatToNotProtoModal=!0:Dn.isAddMatToCartConfirmModalOpened=!qn,Dn.immediateUse=MB.currentOrg.plan,Dn.orgCid=MB.currentOrg.cid)}Yt({type:"modal:update:state",payload:{chargeOverlay:{isOpen:!0,...Dn}}})},upgradeChatGPTAsync:In=>Yt({type:"modal:update:state",payload:{upgradeChatGPTModal:{isOpen:!0,...In}}})}),Fn=()=>{}},50918:eo=>{function ot(Ae){return Ae?typeof Ae=="string"?Ae:Ae.source:null}function i(Ae){return a("(?=",Ae,")")}function a(){for(var Ae=arguments.length,Oe=new Array(Ae),Be=0;Be<Ae;Be++)Oe[Be]=arguments[Be];return Oe.map(Xe=>ot(Xe)).join("")}function k(){for(var Ae=arguments.length,Oe=new Array(Ae),Be=0;Be<Ae;Be++)Oe[Be]=arguments[Be];return"("+Oe.map(Xe=>ot(Xe)).join("|")+")"}const M=Ae=>a(/\b/,Ae,/\w$/.test(Ae)?/\b/:/\B/),P=["Protocol","Type"].map(M),C=["init","self"].map(M),q=["Any","Self"],Y=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],J=["false","nil","true"],O=["assignment","associativity","higherThan","left","lowerThan","none","right"],l=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],D=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],m=k(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),E=k(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),f=a(m,E,"*"),h=k(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),S=k(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),V=a(h,S,"*"),We=a(/[A-Z]/,S,"*"),re=["autoclosure",a(/convention\(/,k("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,V,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],ve=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function we(Ae){const Oe={match:/\s+/,relevance:0},Be=Ae.COMMENT("/\\*","\\*/",{contains:["self"]}),tt=[Ae.C_LINE_COMMENT_MODE,Be],Xe={className:"keyword",begin:a(/\./,i(k(...P,...C))),end:k(...P,...C),excludeBegin:!0},ne={match:a(/\./,k(...Y)),relevance:0},lt=Y.filter(qt=>typeof qt=="string").concat(["_|0"]),rt=Y.filter(qt=>typeof qt!="string").concat(q).map(M),Te={variants:[{className:"keyword",match:k(...rt,...C)}]},Ge={$pattern:k(/\b\w+/,/#\w+/),keyword:lt.concat(l),literal:J},ue=[Xe,ne,Te],Me={match:a(/\./,k(...D)),relevance:0},Ze={className:"built_in",match:a(/\b/,k(...D),/(?=\()/)},fe=[Me,Ze],it={match:/->/,relevance:0},et={className:"operator",relevance:0,variants:[{match:f},{match:"\\.(\\.|"+E+")+"}]},Ut=[it,et],G="([0-9]_*)+",Ht="([0-9a-fA-F]_*)+",Tt={className:"number",relevance:0,variants:[{match:"\\b("+G+")(\\.("+G+"))?"+("([eE][+-]?("+G+"))?\\b")},{match:"\\b0x("+Ht+")(\\.("+Ht+"))?"+("([pP][+-]?("+G+"))?\\b")},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Vt=function(qt){return qt===void 0&&(qt=""),{className:"subst",variants:[{match:a(/\\/,qt,/[0\\tnr"']/)},{match:a(/\\/,qt,/u\{[0-9a-fA-F]{1,8}\}/)}]}},He=function(qt){return qt===void 0&&(qt=""),{className:"subst",match:a(/\\/,qt,/[\t ]*(?:[\r\n]|\r\n)/)}},rn=function(qt){return qt===void 0&&(qt=""),{className:"subst",label:"interpol",begin:a(/\\/,qt,/\(/),end:/\)/}},Lt=function(qt){return qt===void 0&&(qt=""),{begin:a(qt,/"""/),end:a(/"""/,qt),contains:[Vt(qt),He(qt),rn(qt)]}},jt=function(qt){return qt===void 0&&(qt=""),{begin:a(qt,/"/),end:a(/"/,qt),contains:[Vt(qt),rn(qt)]}},mt={className:"string",variants:[Lt(),Lt("#"),Lt("##"),Lt("###"),jt(),jt("#"),jt("##"),jt("###")]},Jn={match:a(/`/,V,/`/)},o={className:"variable",match:/\$\d+/},so={className:"variable",match:"\\$"+S+"+"},Et=[Jn,o,so],Jt={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ve,contains:[...Ut,Tt,mt]}]}},Ot={className:"keyword",match:a(/@/,k(...re))},dn={className:"meta",match:a(/@/,V)},Ce=[Jt,Ot,dn],Pt={match:i(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:a(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,S,"+")},{className:"type",match:We,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:a(/\s+&\s+/,i(We)),relevance:0}]},Nn={begin:/</,end:/>/,keywords:Ge,contains:[...tt,...ue,...Ce,it,Pt]};Pt.contains.push(Nn);const At={match:a(V,/\s*:/),keywords:"_|0",relevance:0},on={begin:/\(/,end:/\)/,relevance:0,keywords:Ge,contains:["self",At,...tt,...ue,...fe,...Ut,Tt,mt,...Et,...Ce,Pt]},no={beginKeywords:"func",contains:[{className:"title",match:k(Jn.match,V,f),endsParent:!0,relevance:0},Oe]},mo={begin:/</,end:/>/,contains:[...tt,Pt]},mn={begin:k(i(a(V,/\s*:/)),i(a(V,/\s+/,V,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:V}]},ht={begin:/\(/,end:/\)/,keywords:Ge,contains:[mn,...tt,...ue,...Ut,Tt,mt,...Ce,Pt,on],endsParent:!0,illegal:/["']/},Fn={className:"function",match:i(/\bfunc\b/),contains:[no,mo,ht,Oe],illegal:[/\[/,/%/]},Yt={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[mo,ht,Oe],illegal:/\[|%/},Gt={beginKeywords:"operator",end:Ae.MATCH_NOTHING_RE,contains:[{className:"title",match:f,endsParent:!0,relevance:0}]},Bn={beginKeywords:"precedencegroup",end:Ae.MATCH_NOTHING_RE,contains:[{className:"title",match:We,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...O,...J],contains:[Pt]}]};for(const qt of mt.variants){const Zt=qt.contains.find(ro=>ro.label==="interpol");Zt.keywords=Ge;const jn=[...ue,...fe,...Ut,Tt,mt,...Et];Zt.contains=[...jn,{begin:/\(/,end:/\)/,contains:["self",...jn]}]}return{name:"Swift",keywords:Ge,contains:[...tt,Fn,Yt,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:Ge,contains:[Ae.inherit(Ae.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...ue]},Gt,Bn,{beginKeywords:"import",end:/$/,contains:[...tt],relevance:0},...ue,...fe,...Ut,Tt,mt,...Et,...Ce,Pt,on]}}eo.exports=we},50960:(eo,ot,i)=>{var a=i(63195),k=a("floor");eo.exports=k},51885:(eo,ot,i)=>{"use strict";i.d(ot,{a:()=>l,A:()=>ve});var a=i(76241),k=i(94586),M=i(95549),P=i(91834),C=i(53732),q=i.n(C),Y=i(38502),J=i(37898),O=Y.forwardRef(function(we,Ae){var Oe,Be,tt,Xe=we.inputElement,ne=we.children,lt=we.prefixCls,rt=we.prefix,Te=we.suffix,Ge=we.addonBefore,ue=we.addonAfter,Me=we.className,Ze=we.style,fe=we.disabled,it=we.readOnly,et=we.focused,Ut=we.triggerFocus,G=we.allowClear,Ht=we.value,Tt=we.handleReset,Vt=we.hidden,He=we.classes,rn=we.classNames,Lt=we.dataAttrs,jt=we.styles,mt=we.components,Jn=we.onClear,o=ne!=null?ne:Xe,so=(mt==null?void 0:mt.affixWrapper)||"span",Et=(mt==null?void 0:mt.groupWrapper)||"span",Jt=(mt==null?void 0:mt.wrapper)||"span",Ot=(mt==null?void 0:mt.groupAddon)||"span",dn=(0,Y.useRef)(null),Ce=function(Tn){var bt;(bt=dn.current)!==null&&bt!==void 0&&bt.contains(Tn.target)&&(Ut==null||Ut())},Pt=(0,J.OL)(we),Nn=(0,Y.cloneElement)(o,{value:Ht,className:q()((Oe=o.props)===null||Oe===void 0?void 0:Oe.className,!Pt&&(rn==null?void 0:rn.variant))||null}),At=(0,Y.useRef)(null);if(Y.useImperativeHandle(Ae,function(){return{nativeElement:At.current||dn.current}}),Pt){var on=null;if(G){var no=!fe&&!it&&Ht,mo="".concat(lt,"-clear-icon"),mn=(0,P.A)(G)==="object"&&G!==null&&G!==void 0&&G.clearIcon?G.clearIcon:"\u2716";on=Y.createElement("button",{type:"button",tabIndex:-1,onClick:function(Tn){Tt==null||Tt(Tn),Jn==null||Jn()},onMouseDown:function(Tn){return Tn.preventDefault()},className:q()(mo,(0,M.A)((0,M.A)({},"".concat(mo,"-hidden"),!no),"".concat(mo,"-has-suffix"),!!Te))},mn)}var ht="".concat(lt,"-affix-wrapper"),Fn=q()(ht,(0,M.A)((0,M.A)((0,M.A)((0,M.A)((0,M.A)({},"".concat(lt,"-disabled"),fe),"".concat(ht,"-disabled"),fe),"".concat(ht,"-focused"),et),"".concat(ht,"-readonly"),it),"".concat(ht,"-input-with-clear-btn"),Te&&G&&Ht),He==null?void 0:He.affixWrapper,rn==null?void 0:rn.affixWrapper,rn==null?void 0:rn.variant),Yt=(Te||G)&&Y.createElement("span",{className:q()("".concat(lt,"-suffix"),rn==null?void 0:rn.suffix),style:jt==null?void 0:jt.suffix},on,Te);Nn=Y.createElement(so,(0,k.A)({className:Fn,style:jt==null?void 0:jt.affixWrapper,onClick:Ce},Lt==null?void 0:Lt.affixWrapper,{ref:dn}),rt&&Y.createElement("span",{className:q()("".concat(lt,"-prefix"),rn==null?void 0:rn.prefix),style:jt==null?void 0:jt.prefix},rt),Nn,Yt)}if((0,J.bk)(we)){var Gt="".concat(lt,"-group"),Bn="".concat(Gt,"-addon"),qt="".concat(Gt,"-wrapper"),Zt=q()("".concat(lt,"-wrapper"),Gt,He==null?void 0:He.wrapper,rn==null?void 0:rn.wrapper),jn=q()(qt,(0,M.A)({},"".concat(qt,"-disabled"),fe),He==null?void 0:He.group,rn==null?void 0:rn.groupWrapper);Nn=Y.createElement(Et,{className:jn,ref:At},Y.createElement(Jt,{className:Zt},Ge&&Y.createElement(Ot,{className:Bn},Ge),Nn,ue&&Y.createElement(Ot,{className:Bn},ue)))}return Y.cloneElement(Nn,{className:q()((Be=Nn.props)===null||Be===void 0?void 0:Be.className,Me)||null,style:(0,a.A)((0,a.A)({},(tt=Nn.props)===null||tt===void 0?void 0:tt.style),Ze),hidden:Vt})});const l=O;var D=i(63296),m=i(53034),E=i(59895),f=i(94815),h=i(13199),S=i(6323),V=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],We=(0,Y.forwardRef)(function(we,Ae){var Oe=we.autoComplete,Be=we.onChange,tt=we.onFocus,Xe=we.onBlur,ne=we.onPressEnter,lt=we.onKeyDown,rt=we.onKeyUp,Te=we.prefixCls,Ge=Te===void 0?"rc-input":Te,ue=we.disabled,Me=we.htmlSize,Ze=we.className,fe=we.maxLength,it=we.suffix,et=we.showCount,Ut=we.count,G=we.type,Ht=G===void 0?"text":G,Tt=we.classes,Vt=we.classNames,He=we.styles,rn=we.onCompositionStart,Lt=we.onCompositionEnd,jt=(0,E.A)(we,V),mt=(0,Y.useState)(!1),Jn=(0,m.A)(mt,2),o=Jn[0],so=Jn[1],Et=(0,Y.useRef)(!1),Jt=(0,Y.useRef)(!1),Ot=(0,Y.useRef)(null),dn=(0,Y.useRef)(null),Ce=function(Ln){Ot.current&&(0,J.F4)(Ot.current,Ln)},Pt=(0,f.A)(we.defaultValue,{value:we.value}),Nn=(0,m.A)(Pt,2),At=Nn[0],on=Nn[1],no=At==null?"":String(At),mo=(0,Y.useState)(null),mn=(0,m.A)(mo,2),ht=mn[0],Fn=mn[1],Yt=(0,S.A)(Ut,et),Gt=Yt.max||fe,Bn=Yt.strategy(no),qt=!!Gt&&Bn>Gt;(0,Y.useImperativeHandle)(Ae,function(){var Qt;return{focus:Ce,blur:function(){var Mn;(Mn=Ot.current)===null||Mn===void 0||Mn.blur()},setSelectionRange:function(Mn,Rt,Qe){var En;(En=Ot.current)===null||En===void 0||En.setSelectionRange(Mn,Rt,Qe)},select:function(){var Mn;(Mn=Ot.current)===null||Mn===void 0||Mn.select()},input:Ot.current,nativeElement:((Qt=dn.current)===null||Qt===void 0?void 0:Qt.nativeElement)||Ot.current}}),(0,Y.useEffect)(function(){Jt.current&&(Jt.current=!1),so(function(Qt){return Qt&&ue?!1:Qt})},[ue]);var Zt=function(Ln,Mn,Rt){var Qe=Mn;if(!Et.current&&Yt.exceedFormatter&&Yt.max&&Yt.strategy(Mn)>Yt.max){if(Qe=Yt.exceedFormatter(Mn,{max:Yt.max}),Mn!==Qe){var En,qn;Fn([((En=Ot.current)===null||En===void 0?void 0:En.selectionStart)||0,((qn=Ot.current)===null||qn===void 0?void 0:qn.selectionEnd)||0])}}else if(Rt.source==="compositionEnd")return;on(Qe),Ot.current&&(0,J.gS)(Ot.current,Ln,Be,Qe)};(0,Y.useEffect)(function(){if(ht){var Qt;(Qt=Ot.current)===null||Qt===void 0||Qt.setSelectionRange.apply(Qt,(0,D.A)(ht))}},[ht]);var jn=function(Ln){Zt(Ln,Ln.target.value,{source:"change"})},ro=function(Ln){Et.current=!1,Zt(Ln,Ln.currentTarget.value,{source:"compositionEnd"}),Lt==null||Lt(Ln)},Tn=function(Ln){ne&&Ln.key==="Enter"&&!Jt.current&&(Jt.current=!0,ne(Ln)),lt==null||lt(Ln)},bt=function(Ln){Ln.key==="Enter"&&(Jt.current=!1),rt==null||rt(Ln)},Wt=function(Ln){so(!0),tt==null||tt(Ln)},wn=function(Ln){Jt.current&&(Jt.current=!1),so(!1),Xe==null||Xe(Ln)},uo=function(Ln){on(""),Ce(),Ot.current&&(0,J.gS)(Ot.current,Ln,Be)},In=qt&&"".concat(Ge,"-out-of-range"),Dn=function(){var Ln=(0,h.A)(we,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Y.createElement("input",(0,k.A)({autoComplete:Oe},Ln,{onChange:jn,onFocus:Wt,onBlur:wn,onKeyDown:Tn,onKeyUp:bt,className:q()(Ge,(0,M.A)({},"".concat(Ge,"-disabled"),ue),Vt==null?void 0:Vt.input),style:He==null?void 0:He.input,ref:Ot,size:Me,type:Ht,onCompositionStart:function(Rt){Et.current=!0,rn==null||rn(Rt)},onCompositionEnd:ro}))},So=function(){var Ln=Number(Gt)>0;if(it||Yt.show){var Mn=Yt.showFormatter?Yt.showFormatter({value:no,count:Bn,maxLength:Gt}):"".concat(Bn).concat(Ln?" / ".concat(Gt):"");return Y.createElement(Y.Fragment,null,Yt.show&&Y.createElement("span",{className:q()("".concat(Ge,"-show-count-suffix"),(0,M.A)({},"".concat(Ge,"-show-count-has-suffix"),!!it),Vt==null?void 0:Vt.count),style:(0,a.A)({},He==null?void 0:He.count)},Mn),it)}return null};return Y.createElement(l,(0,k.A)({},jt,{prefixCls:Ge,className:q()(Ze,In),handleReset:uo,value:no,focused:o,triggerFocus:Ce,suffix:So(),disabled:ue,classes:Tt,classNames:Vt,styles:He,ref:dn}),Dn())});const ve=We},51886:(eo,ot,i)=>{"use strict";i.d(ot,{U:()=>We});var a=i(20366),k=i(67787),M=i(38502),P=Object.defineProperty,C=Object.defineProperties,q=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,l=(we,Ae,Oe)=>Ae in we?P(we,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):we[Ae]=Oe,D=(we,Ae)=>{for(var Oe in Ae||(Ae={}))J.call(Ae,Oe)&&l(we,Oe,Ae[Oe]);if(Y)for(var Oe of Y(Ae))O.call(Ae,Oe)&&l(we,Oe,Ae[Oe]);return we},m=(we,Ae)=>C(we,q(Ae)),E=(we,Ae)=>{var Oe={};for(var Be in we)J.call(we,Be)&&Ae.indexOf(Be)<0&&(Oe[Be]=we[Be]);if(we!=null&&Y)for(var Be of Y(we))Ae.indexOf(Be)<0&&O.call(we,Be)&&(Oe[Be]=we[Be]);return Oe},h=(0,M.forwardRef)((we,Ae)=>{var Oe=we,{size:Be,spin:tt,style:Xe}=Oe,ne=E(Oe,["size","spin","style"]);const lt=D(D({width:Be||"var(--x-icon-size, 1em)",height:Be||"var(--x-icon-size, 1em)",animation:tt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Xe);return M.createElement("svg",m(D({ref:Ae,style:lt},ne),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25ZM10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",fill:"#8B8C8F"}),M.createElement("path",{d:"M9.375 5.625H10.625V7.5H9.375V5.625Z",fill:"#8B8C8F"}),M.createElement("path",{d:"M9.375 8.75H10.625V14.375H9.375V8.75Z",fill:"#8B8C8F"}))}),S=i(72214);const V=we=>{let{className:Ae}=we;return(0,S.jsxs)("svg",{className:Ae,width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("path",{d:"M10.0164 5.26828C10.3542 4.35523 11.6456 4.35523 11.9835 5.26828L13.0986 8.28186C13.2048 8.56892 13.4312 8.79525 13.7182 8.90148L16.7318 10.0166C17.6448 10.3545 17.6448 11.6459 16.7318 11.9837L13.7182 13.0989C13.4312 13.2051 13.2048 13.4314 13.0986 13.7185L11.9835 16.732C11.6456 17.6451 10.3542 17.6451 10.0164 16.732L8.90123 13.7185C8.79501 13.4314 8.56868 13.2051 8.28162 13.0989L5.26804 11.9837C4.35499 11.6459 4.35499 10.3545 5.26804 10.0166L8.28162 8.90148C8.56868 8.79525 8.79501 8.56893 8.90123 8.28187L10.0164 5.26828Z",fill:"url(#aiCreditStarGradientNormal)"}),(0,S.jsxs)("defs",{children:[(0,S.jsxs)("linearGradient",{id:"aiCreditStarGradientNormal",x1:"8.50122",y1:"2.50018",x2:"10.6022",y2:"16.7187",gradientUnits:"userSpaceOnUse",children:[(0,S.jsx)("stop",{stopColor:"#DAFBFF"}),(0,S.jsx)("stop",{offset:"0.551111",stopColor:"#52A5FF"}),(0,S.jsx)("stop",{offset:"1",stopColor:"#7C89FF"})]}),(0,S.jsxs)("linearGradient",{id:"aiCreditStarGradientWarning",x1:"8.50146",y1:"1.50024",x2:"10.5674",y2:"16.7175",gradientUnits:"userSpaceOnUse",children:[(0,S.jsx)("stop",{stopColor:"#FFF0DA"}),(0,S.jsx)("stop",{offset:"0.551111",stopColor:"#FFA852"}),(0,S.jsx)("stop",{offset:"1",stopColor:"#FFAE78"})]})]})]})},We=we=>{let{creditCount:Ae,isInsufficientCredit:Oe,costPerGeneration:Be,openPurchaseModal:tt}=we;if(Ae===void 0)return null;const Xe=(0,S.jsxs)(ve,{$isWarning:Oe,children:[(0,S.jsxs)("div",{className:"tooltip-header",children:[(0,S.jsx)("div",{className:"star-icon-wrapper",children:(0,S.jsx)(V,{className:"content-star-icon"})}),(0,S.jsx)("span",{className:"header-text",children:(()=>{const lt=I18N.ChatGPT.aicomponent.credit_remaining.split("{count}");return(0,S.jsxs)(S.Fragment,{children:[lt[0],(0,S.jsx)("span",{className:"remaining-credit-text",children:Ae}),lt[1]]})})()})]}),(0,S.jsx)("div",{className:"tooltip-body",children:I18N.ChatGPT.aicomponent.credit_cost_per_generation.replace("{cost}",Be.toString())}),Oe&&(0,S.jsxs)("div",{className:"tooltip-warning",children:[(0,S.jsx)(h,{size:18}),(0,S.jsx)("span",{children:I18N.ChatGPT.aicomponent.credit_insufficient})]}),(0,S.jsx)("button",{className:"tooltip-button",onClick:tt,children:I18N.ChatGPT.Upgrade})]});return(0,S.jsx)(k.e$,{children:ne=>(0,S.jsx)(a.A,{title:Xe,getPopupContainer:()=>document.querySelector(".ai-credit-tag"),placement:"bottom",arrow:!1,zIndex:1049,styles:{body:{padding:0,borderRadius:"12px",boxShadow:"2px 8px 20px 0px rgba(0, 0, 0, 0.1)",border:"1px solid "+(ne==null?void 0:ne.color_bg_border_01),background:""+(ne==null?void 0:ne.color_bg_white),pointerEvents:"auto"}},children:(0,S.jsxs)(re,{className:"ai-credit-tag",$isWarning:Oe,onClick:tt,children:[(0,S.jsx)(V,{className:"tag-star-icon"}),(0,S.jsx)("span",{className:"credit-text",children:Ae})]})})})},re=k.Ay.div.withConfig({displayName:"AICreditTag__StyledAICreditTag",componentId:"sc-1k1uaop-0"})(["display:flex;align-items:center;justify-content:center;gap:2px;padding:1px 10px 1px 4px;border-radius:100px;background:",";cursor:pointer;.tag-star-icon{width:22px;height:22px;path{fill:",";}}.credit-text{font-size:13px;font-weight:400;line-height:1.4;color:",";}"],we=>we.$isWarning?we.theme.color_warning_bg:we.theme.color_bg_tab,we=>we.$isWarning?"url(#aiCreditStarGradientWarning)":"url(#aiCreditStarGradientNormal)",we=>we.$isWarning?we.theme.color_warning:we.theme.color_text_L1),ve=k.Ay.div.withConfig({displayName:"AICreditTag__TooltipContent",componentId:"sc-1k1uaop-1"})(["display:flex;flex-direction:column;gap:8px;padding:16px;min-width:198px;background:",";border-radius:12px;.tooltip-header{display:flex;align-items:center;gap:8px;.star-icon-wrapper{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:",";border-radius:6px;.content-star-icon{width:24px;height:24px;}}.header-text{font-size:13px;font-weight:500;line-height:20px;color:",";.remaining-credit-text{color:",";}}}.tooltip-body{font-size:12px;font-weight:400;line-height:20px;color:",";}.tooltip-warning{display:flex;align-items:center;gap:4px;padding:1px 8px 1px 4px;background:",";border-radius:6px;svg{path{fill:",";}}span{font-size:12px;font-weight:400;line-height:22px;color:",";}}.tooltip-button{width:100%;padding:4px 14px;background:",";border:none;border-radius:6px;font-size:13px;font-weight:500;line-height:20px;color:",";cursor:pointer;&:hover{background:",";}&:active{background:",";}&.disabled{background:",";cursor:not-allowed;}}"],we=>we.theme.color_bg_white,we=>we.theme.color_bg_tab,we=>we.theme.color_text_L1,we=>we.$isWarning?we.theme.color_warning:we.theme.color_text_link_normal,we=>we.theme.color_text_L2,we=>we.theme.color_warning_bg,we=>we.theme.color_warning,we=>we.theme.color_warning,we=>we.theme.color_btn_primary_normal,we=>we.theme.color_text_white,we=>we.theme.color_btn_primary_hover,we=>we.theme.color_btn_primary_clicked,we=>we.theme.color_btn_primary_disabled)},52171:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=function(){function E(f,h){for(var S=0;S<h.length;S++){var V=h[S];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(f,V.key,V)}}return function(f,h,S){return h&&E(f.prototype,h),S&&E(f,S),f}}(),k=i(38502),M=J(k),P=i(25582),C=J(P),q=i(36221),Y=J(q);function J(E){return E&&E.__esModule?E:{default:E}}function O(E,f){if(!(E instanceof f))throw new TypeError("Cannot call a class as a function")}function l(E,f){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:E}function D(E,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);E.prototype=Object.create(f&&f.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(E,f):E.__proto__=f)}var m=function(E){D(f,E);function f(){return O(this,f),l(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return a(f,[{key:"render",value:function(){var S=this.props.value;return M.default.createElement("span",{className:"value-viewer"},S)}}]),f}(k.PureComponent);ot.default=m,m.propTypes={row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(Y.default),value:C.default.node.isRequired}},52183:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>q});var a=i(38502),k=i(18381),M=i(75276);const P=(Y,J)=>Y===J?!0:(Y==null?void 0:Y.size)!==(J==null?void 0:J.size)?!1:[...Y].some(O=>!J.has(O)),q=Y=>{const J=(0,k.d4)(M.j9),O=(0,a.useRef)(J);(0,a.useEffect)(()=>{if(!J||!Y.current)return;const l=["noWMMktList","mtWMMktList","mdWMMktList"];let D=!1;const m=[];l.forEach(E=>{const f=J[E];if(E&&!P(f,O.current[E]))for(const h of f){const S=Y.current.getMktCidEffectWidgetKeys(h);if(D=S.length+m.length>2e3,D)return;m.push(...S)}}),m.length&&Y.current.triggerSnapshotChange(m),O.current=J},[J])}},52401:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Et});var a=i(38502),k=i(53732),M=i.n(k),P=i(94586),C=i(95549),q=i(76241),Y=i(63296),J=i(53034),O=i(59895),l=i(51885),D=i(6323),m=i(37898),E=i(94815),f=i(91834),h=i(59063),S=i(18767),V=i(23653),We="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",re=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ve={},we;function Ae(Jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dn=Jt.getAttribute("id")||Jt.getAttribute("data-reactid")||Jt.getAttribute("name");if(Ot&&ve[dn])return ve[dn];var Ce=window.getComputedStyle(Jt),Pt=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),Nn=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),At=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),on=re.map(function(mo){return"".concat(mo,":").concat(Ce.getPropertyValue(mo))}).join(";"),no={sizingStyle:on,paddingSize:Nn,borderSize:At,boxSizing:Pt};return Ot&&dn&&(ve[dn]=no),no}function Oe(Jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),we.setAttribute("name","hiddenTextarea"),document.body.appendChild(we)),Jt.getAttribute("wrap")?we.setAttribute("wrap",Jt.getAttribute("wrap")):we.removeAttribute("wrap");var Pt=Ae(Jt,Ot),Nn=Pt.paddingSize,At=Pt.borderSize,on=Pt.boxSizing,no=Pt.sizingStyle;we.setAttribute("style","".concat(no,";").concat(We)),we.value=Jt.value||Jt.placeholder||"";var mo=void 0,mn=void 0,ht,Fn=we.scrollHeight;if(on==="border-box"?Fn+=At:on==="content-box"&&(Fn-=Nn),dn!==null||Ce!==null){we.value=" ";var Yt=we.scrollHeight-Nn;dn!==null&&(mo=Yt*dn,on==="border-box"&&(mo=mo+Nn+At),Fn=Math.max(mo,Fn)),Ce!==null&&(mn=Yt*Ce,on==="border-box"&&(mn=mn+Nn+At),ht=Fn>mn?"":"hidden",Fn=Math.min(mn,Fn))}var Gt={height:Fn,overflowY:ht,resize:"none"};return mo&&(Gt.minHeight=mo),mn&&(Gt.maxHeight=mn),Gt}var Be=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tt=0,Xe=1,ne=2,lt=a.forwardRef(function(Jt,Ot){var dn=Jt,Ce=dn.prefixCls,Pt=dn.defaultValue,Nn=dn.value,At=dn.autoSize,on=dn.onResize,no=dn.className,mo=dn.style,mn=dn.disabled,ht=dn.onChange,Fn=dn.onInternalAutoSize,Yt=(0,O.A)(dn,Be),Gt=(0,E.A)(Pt,{value:Nn,postState:function(Qo){return Qo!=null?Qo:""}}),Bn=(0,J.A)(Gt,2),qt=Bn[0],Zt=Bn[1],jn=function(Qo){Zt(Qo.target.value),ht==null||ht(Qo)},ro=a.useRef();a.useImperativeHandle(Ot,function(){return{textArea:ro.current}});var Tn=a.useMemo(function(){return At&&(0,f.A)(At)==="object"?[At.minRows,At.maxRows]:[]},[At]),bt=(0,J.A)(Tn,2),Wt=bt[0],wn=bt[1],uo=!!At,In=function(){try{if(document.activeElement===ro.current){var Qo=ro.current,ea=Qo.selectionStart,_n=Qo.selectionEnd,Un=Qo.scrollTop;ro.current.setSelectionRange(ea,_n),ro.current.scrollTop=Un}}catch(cn){}},Dn=a.useState(ne),So=(0,J.A)(Dn,2),Qt=So[0],Ln=So[1],Mn=a.useState(),Rt=(0,J.A)(Mn,2),Qe=Rt[0],En=Rt[1],qn=function(){Ln(tt)};(0,S.A)(function(){uo&&qn()},[Nn,Wt,wn,uo]),(0,S.A)(function(){if(Qt===tt)Ln(Xe);else if(Qt===Xe){var Oo=Oe(ro.current,!1,Wt,wn);Ln(ne),En(Oo)}else In()},[Qt]);var Hn=a.useRef(),Yn=function(){V.A.cancel(Hn.current)},oo=function(Qo){Qt===ne&&(on==null||on(Qo),At&&(Yn(),Hn.current=(0,V.A)(function(){qn()})))};a.useEffect(function(){return Yn},[]);var To=uo?Qe:null,po=(0,q.A)((0,q.A)({},mo),To);return(Qt===tt||Qt===Xe)&&(po.overflowY="hidden",po.overflowX="hidden"),a.createElement(h.A,{onResize:oo,disabled:!(At||on)},a.createElement("textarea",(0,P.A)({},Yt,{ref:ro,style:po,className:M()(Ce,no,(0,C.A)({},"".concat(Ce,"-disabled"),mn)),disabled:mn,value:qt,onChange:jn})))});const rt=lt;var Te=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ge=a.forwardRef(function(Jt,Ot){var dn,Ce=Jt.defaultValue,Pt=Jt.value,Nn=Jt.onFocus,At=Jt.onBlur,on=Jt.onChange,no=Jt.allowClear,mo=Jt.maxLength,mn=Jt.onCompositionStart,ht=Jt.onCompositionEnd,Fn=Jt.suffix,Yt=Jt.prefixCls,Gt=Yt===void 0?"rc-textarea":Yt,Bn=Jt.showCount,qt=Jt.count,Zt=Jt.className,jn=Jt.style,ro=Jt.disabled,Tn=Jt.hidden,bt=Jt.classNames,Wt=Jt.styles,wn=Jt.onResize,uo=Jt.onClear,In=Jt.onPressEnter,Dn=Jt.readOnly,So=Jt.autoSize,Qt=Jt.onKeyDown,Ln=(0,O.A)(Jt,Te),Mn=(0,E.A)(Ce,{value:Pt,defaultValue:Ce}),Rt=(0,J.A)(Mn,2),Qe=Rt[0],En=Rt[1],qn=Qe==null?"":String(Qe),Hn=a.useState(!1),Yn=(0,J.A)(Hn,2),oo=Yn[0],To=Yn[1],po=a.useRef(!1),Oo=a.useState(null),Qo=(0,J.A)(Oo,2),ea=Qo[0],_n=Qo[1],Un=(0,a.useRef)(null),cn=(0,a.useRef)(null),nn=function(){var or;return(or=cn.current)===null||or===void 0?void 0:or.textArea},Zn=function(){nn().focus()};(0,a.useImperativeHandle)(Ot,function(){var Ha;return{resizableTextArea:cn.current,focus:Zn,blur:function(){nn().blur()},nativeElement:((Ha=Un.current)===null||Ha===void 0?void 0:Ha.nativeElement)||nn()}}),(0,a.useEffect)(function(){To(function(Ha){return!ro&&Ha})},[ro]);var ho=a.useState(null),Xn=(0,J.A)(ho,2),Mo=Xn[0],Zo=Xn[1];a.useEffect(function(){if(Mo){var Ha;(Ha=nn()).setSelectionRange.apply(Ha,(0,Y.A)(Mo))}},[Mo]);var ia=(0,D.A)(qt,Bn),xa=(dn=ia.max)!==null&&dn!==void 0?dn:mo,fa=Number(xa)>0,zo=ia.strategy(qn),Ra=!!xa&&zo>xa,Sa=function(or,gi){var Qr=gi;!po.current&&ia.exceedFormatter&&ia.max&&ia.strategy(gi)>ia.max&&(Qr=ia.exceedFormatter(gi,{max:ia.max}),gi!==Qr&&Zo([nn().selectionStart||0,nn().selectionEnd||0])),En(Qr),(0,m.gS)(or.currentTarget,or,on,Qr)},ln=function(or){po.current=!0,mn==null||mn(or)},ta=function(or){po.current=!1,Sa(or,or.currentTarget.value),ht==null||ht(or)},ko=function(or){Sa(or,or.target.value)},bo=function(or){or.key==="Enter"&&In&&In(or),Qt==null||Qt(or)},aa=function(or){To(!0),Nn==null||Nn(or)},ma=function(or){To(!1),At==null||At(or)},dr=function(or){En(""),Zn(),(0,m.gS)(nn(),or,on)},ni=Fn,Ir;ia.show&&(ia.showFormatter?Ir=ia.showFormatter({value:qn,count:zo,maxLength:xa}):Ir="".concat(zo).concat(fa?" / ".concat(xa):""),ni=a.createElement(a.Fragment,null,ni,a.createElement("span",{className:M()("".concat(Gt,"-data-count"),bt==null?void 0:bt.count),style:Wt==null?void 0:Wt.count},Ir)));var $a=function(or){var gi;wn==null||wn(or),(gi=nn())!==null&&gi!==void 0&&gi.style.height&&_n(!0)},Va=!So&&!Bn&&!no;return a.createElement(l.a,{ref:Un,value:qn,allowClear:no,handleReset:dr,suffix:ni,prefixCls:Gt,classNames:(0,q.A)((0,q.A)({},bt),{},{affixWrapper:M()(bt==null?void 0:bt.affixWrapper,(0,C.A)((0,C.A)({},"".concat(Gt,"-show-count"),Bn),"".concat(Gt,"-textarea-allow-clear"),no))}),disabled:ro,focused:oo,className:M()(Zt,Ra&&"".concat(Gt,"-out-of-range")),style:(0,q.A)((0,q.A)({},jn),ea&&!Va?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ir=="string"?Ir:void 0}},hidden:Tn,readOnly:Dn,onClear:uo},a.createElement(rt,(0,P.A)({},Ln,{autoSize:So,maxLength:mo,onKeyDown:bo,onChange:ko,onFocus:aa,onBlur:ma,onCompositionStart:ln,onCompositionEnd:ta,className:M()(bt==null?void 0:bt.textarea),style:(0,q.A)((0,q.A)({},Wt==null?void 0:Wt.textarea),{},{resize:jn==null?void 0:jn.resize}),disabled:ro,prefixCls:Gt,onResize:$a,ref:cn,readOnly:Dn})))});const Me=Ge;var Ze=i(74901),fe=i(49212),it=i(46757),et=i(16981),Ut=i(46656),G=i(37567),Ht=i(90852),Tt=i(73650),Vt=i(31161),He=i(97320),rn=i(58196),Lt=i(48150),jt=i(35125);const mt=Jt=>{const{componentCls:Ot,paddingLG:dn}=Jt,Ce=Ot+"-textarea";return{["textarea"+Ot]:{maxWidth:"100%",height:"auto",minHeight:Jt.controlHeight,lineHeight:Jt.lineHeight,verticalAlign:"bottom",transition:"all "+Jt.motionDurationSlow,resize:"vertical",["&"+Ot+"-mouse-active"]:{transition:"all "+Jt.motionDurationSlow+", height 0s, width 0s"}},[Ot+"-textarea-affix-wrapper-resize-dirty"]:{width:"auto"},[Ce]:{position:"relative","&-show-count":{[Ot+"-data-count"]:{position:"absolute",bottom:Jt.calc(Jt.fontSize).mul(Jt.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Jt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},["\n &-allow-clear > "+Ot+",\n &-affix-wrapper"+Ce+"-has-feedback "+Ot+"\n "]:{paddingInlineEnd:dn},["&-affix-wrapper"+Ot+"-affix-wrapper"]:{padding:0,["> textarea"+Ot]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Jt.calc(Jt.controlHeight).sub(Jt.calc(Jt.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[Ot+"-suffix"]:{margin:0,"> *:not(:last-child)":{marginInline:0},[Ot+"-clear-icon"]:{position:"absolute",insetInlineEnd:Jt.paddingInline,insetBlockStart:Jt.paddingXS},[Ce+"-suffix"]:{position:"absolute",top:0,insetInlineEnd:Jt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},["&-affix-wrapper"+Ot+"-affix-wrapper-rtl"]:{[Ot+"-suffix"]:{[Ot+"-data-count"]:{direction:"ltr",insetInlineStart:0}}},["&-affix-wrapper"+Ot+"-affix-wrapper-sm"]:{[Ot+"-suffix"]:{[Ot+"-clear-icon"]:{insetInlineEnd:Jt.paddingInlineSM}}}}}},Jn=(0,rn.OF)(["Input","TextArea"],Jt=>{const Ot=(0,Lt.oX)(Jt,(0,jt.C)(Jt));return[mt(Ot)]},jt.b,{resetFont:!1});var o=function(Jt,Ot){var dn={};for(var Ce in Jt)Object.prototype.hasOwnProperty.call(Jt,Ce)&&Ot.indexOf(Ce)<0&&(dn[Ce]=Jt[Ce]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ce=Object.getOwnPropertySymbols(Jt);Pt<Ce.length;Pt++)Ot.indexOf(Ce[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ce[Pt])&&(dn[Ce[Pt]]=Jt[Ce[Pt]]);return dn};const Et=(0,a.forwardRef)((Jt,Ot)=>{var dn;const{prefixCls:Ce,bordered:Pt=!0,size:Nn,disabled:At,status:on,allowClear:no,classNames:mo,rootClassName:mn,className:ht,style:Fn,styles:Yt,variant:Gt,showCount:Bn,onMouseDown:qt,onResize:Zt}=Jt,jn=o(Jt,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ro,direction:Tn,allowClear:bt,autoComplete:Wt,className:wn,style:uo,classNames:In,styles:Dn}=(0,it.TP)("textArea"),So=a.useContext(et.A),Qt=At!=null?At:So,{status:Ln,hasFeedback:Mn,feedbackIcon:Rt}=a.useContext(Ht.$W),Qe=(0,fe.v)(Ln,on),En=a.useRef(null);a.useImperativeHandle(Ot,()=>{var ia;return{resizableTextArea:(ia=En.current)===null||ia===void 0?void 0:ia.resizableTextArea,focus:xa=>{var fa,zo;(0,m.F4)((zo=(fa=En.current)===null||fa===void 0?void 0:fa.resizableTextArea)===null||zo===void 0?void 0:zo.textArea,xa)},blur:()=>{var xa;return(xa=En.current)===null||xa===void 0?void 0:xa.blur()}}});const qn=ro("input",Ce),Hn=(0,Ut.A)(qn),[Yn,oo,To]=(0,He.MG)(qn,mn),[po]=Jn(qn,Hn),{compactSize:Oo,compactItemClassnames:Qo}=(0,Vt.RQ)(qn,Tn),ea=(0,G.A)(ia=>{var xa;return(xa=Nn!=null?Nn:Oo)!==null&&xa!==void 0?xa:ia}),[_n,Un]=(0,Tt.A)("textArea",Gt,Pt),cn=(0,Ze.A)(no!=null?no:bt),[nn,Zn]=a.useState(!1),[ho,Xn]=a.useState(!1),Mo=ia=>{Zn(!0),qt==null||qt(ia);const xa=()=>{Zn(!1),document.removeEventListener("mouseup",xa)};document.addEventListener("mouseup",xa)},Zo=ia=>{var xa,fa;if(Zt==null||Zt(ia),nn&&typeof getComputedStyle=="function"){const zo=(fa=(xa=En.current)===null||xa===void 0?void 0:xa.nativeElement)===null||fa===void 0?void 0:fa.querySelector("textarea");zo&&getComputedStyle(zo).resize==="both"&&Xn(!0)}};return Yn(po(a.createElement(Me,Object.assign({autoComplete:Wt},jn,{style:Object.assign(Object.assign({},uo),Fn),styles:Object.assign(Object.assign({},Dn),Yt),disabled:Qt,allowClear:cn,className:M()(To,Hn,ht,mn,Qo,wn,ho&&qn+"-textarea-affix-wrapper-resize-dirty"),classNames:Object.assign(Object.assign(Object.assign({},mo),In),{textarea:M()({[qn+"-sm"]:ea==="small",[qn+"-lg"]:ea==="large"},oo,mo==null?void 0:mo.textarea,In.textarea,nn&&qn+"-mouse-active"),variant:M()({[qn+"-"+_n]:Un},(0,fe.L)(qn,Qe)),affixWrapper:M()(qn+"-textarea-affix-wrapper",{[qn+"-affix-wrapper-rtl"]:Tn==="rtl",[qn+"-affix-wrapper-sm"]:ea==="small",[qn+"-affix-wrapper-lg"]:ea==="large",[qn+"-textarea-show-count"]:Bn||((dn=Jt.count)===null||dn===void 0?void 0:dn.show)},oo)}),prefixCls:qn,suffix:Mn&&a.createElement("span",{className:qn+"-textarea-suffix"},Rt),showCount:Bn,ref:En,onResize:Zo,onMouseDown:Mo}))))})},52490:(eo,ot,i)=>{"use strict";i.d(ot,{i:()=>re});var a=i(95549),k=i(38502),M=i(53732),P=i.n(M),C=i(49439),q=i(67787);const Y=q.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1hyrv03-0"})([".toolbar-btn{margin:0 4px;width:18px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:rgba(255,255,255,0.3);}}.toolbar-btn .svg-icon{width:18px;height:18px;}"]),J=q.Ay.div.withConfig({displayName:"styles__StyledContentContainer",componentId:"sc-1hyrv03-1"})(["width:max-content;position:relative;.list-container{width:100%;position:relative;box-sizing:border-box;padding:8px;.item-container{width:100%;height:28px;font-size:12px;color:",";display:flex;padding-left:20px;align-items:center;cursor:pointer;&:hover{background-color:",";}}}.list-container{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";.item-container{border-radius:4px;background:",";}}"],we=>we.theme.color_text_L1,we=>we.theme.color_btn_secondary_hover,we=>we.theme.color_bg_border_01,we=>we.theme.color_text_L1,we=>we.theme.color_bg_white,we=>we.theme.shadow_m,we=>we.theme.color_bg_white);var O=i(72214);const D=we=>{const{style:Ae,onChange:Oe,options:Be}=we,{top:tt,right:Xe,width:ne}=Ae,lt=(0,k.useCallback)(rt=>()=>{Oe&&Oe(rt)},[Oe]);return(0,O.jsx)(C.A,{dark:!0,top:Number(tt),right:Number(Xe),closeOnContentClick:!0,trigger:(0,O.jsx)(Y,{children:(0,O.jsxs)("svg",{className:"toolbar-btn comment-more-btn",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,O.jsx)("g",{clipPath:"url(#clip0_6819_28530)",children:(0,O.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 9C5.625 8.37868 5.12132 7.875 4.5 7.875C3.87868 7.875 3.375 8.37868 3.375 9C3.375 9.62132 3.87868 10.125 4.5 10.125C5.12132 10.125 5.625 9.62132 5.625 9ZM9.00001 7.875C9.62133 7.875 10.125 8.37868 10.125 9C10.125 9.62132 9.62133 10.125 9.00001 10.125C8.37868 10.125 7.87501 9.62132 7.87501 9C7.87501 8.37868 8.37868 7.875 9.00001 7.875ZM13.5 7.875C14.1213 7.875 14.625 8.37868 14.625 9C14.625 9.62132 14.1213 10.125 13.5 10.125C12.8787 10.125 12.375 9.62132 12.375 9C12.375 8.37868 12.8787 7.875 13.5 7.875Z",fill:"#333333"})}),(0,O.jsx)("defs",{children:(0,O.jsx)("clipPath",{id:"clip0_6819_28530",children:(0,O.jsx)("rect",{y:"18",width:"18",height:"18",rx:"4",transform:"rotate(-90 0 18)",fill:"white"})})})]})}),children:(0,O.jsx)(J,{style:{width:ne},children:(0,O.jsx)("div",{className:"list-container",children:Be.map(rt=>(0,O.jsx)("div",{className:"item-container",onClick:lt(rt.value),children:rt.label},rt.value))})})})};var m=i(15186),E=i(35862),f=i(5010),h=i(53707),S=i(37342),V=i(79287),We=i.n(V);const re=we=>{var Ae;let{st:Oe,setIsExportOpenFromContainer:Be,onMouseDown:tt,editable:Xe,isActive:ne,isExpanded:lt,isAlreadyExpanded:rt,STPanelWidth:Te,isHtmlZipPreview:Ge,toggleExpandKeySet:ue,pushToAlreadyExpandKeySet:Me,deleteFromAlreadyExpandKeySet:Ze,selectST:fe,deleteST:it}=we;const et=[{label:I18N.Note.export,value:"export"},{label:I18N.Note.delete,value:"delete"}],Ut=[{label:I18N.Note.export,value:"export"}],{key:G,hotAttr:Ht}=Oe,Tt=(0,k.useRef)(),{info:Vt}=Ht||{},{author:He,authorCid:rn}=Vt||{},Lt=(Ae=MB.currentOrg)==null?void 0:Ae.members,jt=(0,k.useMemo)(()=>{if(rn){var Jt,Ot;if(Lt){var dn;const Ce=Lt==null||(dn=Lt.find(Pt=>Pt.user_cid===rn))==null?void 0:dn.name;if(Ce)return Ce}if(((Jt=MB.user)==null?void 0:Jt.cid)===rn&&(Ot=MB.user)!=null&&Ot.name)return MB.user.name}return He},[Lt,He,rn]),mt=(0,k.useCallback)(Jt=>{Jt.stopPropagation(),fe&&fe(G),(0,f.Uz)({operation_type:f.P6.Select,widget:Ht})},[G,fe,Ht]),Jn=(0,k.useCallback)(Jt=>{if(Jt==="delete")it&&it(G);else if(Jt==="export"){var Ot;if(!((Ot=MB)!=null&&(Ot=Ot.user)!=null&&Ot.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,S.Ix)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"});return}Be(!0)}},[G,it,Be]),o=Jt=>{tt(Jt,Oe,Tt.current)},so=(0,m.t0)(Oe.hotAttr.fill.solidColor),Et="1px solid "+so;return(0,O.jsx)(h.dX,{"data-cid":Oe.key,className:P()("st-card",{isActive:ne}),onClick:mt,ref:Tt,border:Et,children:(0,O.jsxs)("div",{className:P()("st-card-container"),children:[(0,O.jsxs)("header",{className:"st-card-header",style:{background:so},onMouseDown:o,children:[(0,O.jsx)("div",{className:"st-summary",children:(0,O.jsx)("div",{className:"user-name",children:""+Oe.hotAttr.order})}),!Ge&&(0,O.jsx)("div",{className:"more-btn",children:(0,O.jsx)(D,{options:Xe?et:Ut,style:{width:96,top:22,right:0},onChange:Jn})})]}),(0,O.jsx)(ve,{st:Oe,isExpand:lt,showExpand:!rt,STPanelWidth:Te,toggleExpandKeySet:ue,pushToAlreadyExpandKeySet:Me,deleteFromAlreadyExpandKeySet:Ze,authorName:jt})]})})};class ve extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"createRef",Ae=>this.$ref=Ae),(0,a.A)(this,"handleExpand",()=>{const{st:{key:Ae},toggleExpandKeySet:Oe}=this.props;Oe(Ae)}),(0,a.A)(this,"handleUpdateAlreadyExpandKeySet",()=>{setTimeout(()=>{if(this.$ref){const Ae=this.$ref.querySelector(".draft-editor-div"),{st:{key:Oe},pushToAlreadyExpandKeySet:Be,deleteFromAlreadyExpandKeySet:tt}=this.props;Ae.scrollHeight<=52?Be(Oe):tt(Oe)}})})}componentDidMount(){this.handleUpdateAlreadyExpandKeySet()}componentDidUpdate(Ae,Oe,Be){const{STPanelWidth:tt}=this.props,{STPanelWidth:Xe}=Ae;tt!==Xe&&this.handleUpdateAlreadyExpandKeySet()}render(){const{st:Ae,isExpand:Oe,showExpand:Be,authorName:tt}=this.props,{hotAttr:{info:{showAuthor:Xe,showTime:ne,time:lt}}}=Ae,rt=lt?We()(Number(lt)).format("YYYY.MM.DD"):"";return(0,O.jsxs)(h.AB,{className:"st-card-content",ref:this.createRef,children:[(0,O.jsxs)("div",{className:P()("content-container",{isExpand:Oe},{showExpand:Be}),children:[(0,O.jsx)(E.a,{is4Tear:!1,widget:{...Ae.hotAttr,cid:Ae.key},placeHolderColor:"#7D8694",placeHolder:I18N.Note.no_content}),Be&&(Xe||ne)&&(0,O.jsxs)("div",{className:"footer",children:[Xe&&(0,O.jsx)("span",{className:"username",children:tt}),ne&&(0,O.jsx)("span",{children:rt})]})]}),Be?(0,O.jsx)("span",{className:"expand",onClick:this.handleExpand,children:Oe?I18N.Comment.collapse:I18N.Comment.expand}):(0,O.jsx)(O.Fragment,{children:(Xe||ne)&&(0,O.jsxs)("div",{className:"footer",children:[Xe&&(0,O.jsx)("span",{className:"username",children:tt}),ne&&(0,O.jsx)("span",{children:rt})]})})]})}}},53102:(eo,ot,i)=>{"use strict";i.d(ot,{BE:()=>h,CX:()=>S,GT:()=>J,Jx:()=>m,MF:()=>C,MV:()=>P,iU:()=>O,my:()=>D,n2:()=>f,qZ:()=>l,tj:()=>Y,zF:()=>V});var a=i(18654),k=i(36518),M=i(72214);const P=18,C={light:{bgColor:k.fm.color_bg_white.value_light,borderColor:k.fm.color_bg_border_01.value_light,cornerActiveColor:a.af.color_interaction_grid.value,fontColor:k.fm.color_text_disabled01.value_light,line:{normal:k.fm.color_polyline_normal.value_light,hover:k.fm.color_polyline_hover.value_light,active:k.fm.color_polyline_select.value_light},shadowColor:a.af.color_ruler_shadow_color.value,longfgColor:k.fm.color_text_disabled01.value_light,shortfgColor:k.fm.color_text_disabled01.value_light,menu:{bgColor:a.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:k.fm.color_text_btn.value_light,hoverTextColor:k.fm.color_text_btn.value_light,disabledTextColor:a.af.color_text_disabled01.value,bgColor:a.af.color_text_L1.value,hoverBgColor:a.af.color_text_L2.value}}},dark:{bgColor:k.fm.color_bg_white.value_dark,borderColor:k.fm.color_bg_border_01.value_dark,cornerActiveColor:a.af.color_interaction_grid.value,fontColor:k.fm.color_text_disabled01.value_dark,line:{normal:k.fm.color_polyline_normal.value_dark,hover:k.fm.color_polyline_hover.value_dark,active:k.fm.color_polyline_select.value_dark},shadowColor:a.qY.ruler_dark_common_color2.value,longfgColor:k.fm.color_text_disabled01.value_dark,shortfgColor:k.fm.color_text_disabled01.value_dark,menu:{bgColor:a.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:k.fm.color_text_btn.value_light,hoverTextColor:k.fm.color_text_btn.value_light,disabledTextColor:a.af.color_text_disabled01.value,bgColor:a.af.color_text_L1.value,hoverBgColor:a.af.color_text_L2.value}}}},q={distance_line:26,distance_left:18,distance_right:18,distance_top:18,distance_bottom:48,guide_width:281,guide_height:284},Y=2,J={bgColor:"rgba(225,225,225)",longfgColor:"#babbbc",shortfgColor:"#c8cdd0",fontColor:"#7d8694",shadowColor:"#f2f2f2",line:{normal:"rgba(255, 19, 19, 0.5)",hover:"#ff1313",active:"#1684fc"},borderColor:"#dadadc",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},O=(0,M.jsx)("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",children:(0,M.jsx)("path",{d:"M1 5.066c0 .211.07.39.212.538L3.346 7.78A.699.699 0 0 0 3.872 8a.69.69 0 0 0 .517-.221l4.39-4.49A.731.731 0 0 0 9 2.753a.717.717 0 0 0-.22-.532A.714.714 0 0 0 8.255 2a.714.714 0 0 0-.524.221l-3.86 3.955L2.26 4.528a.714.714 0 0 0-.524-.221.714.714 0 0 0-.524.221.749.749 0 0 0-.212.538z",fill:"#415058",fillRule:"evenodd"})}),l={"zh-CN":{vertical:"\u7EB5\u5411",horizontal:"\u6A2A\u5411",show_ruler:"\u663E\u793A\u6807\u5C3A",show_refer_line:"\u663E\u793A\u53C2\u8003\u7EBF",remove_all:"\u5220\u9664\u6240\u6709",refer_line:"\u53C2\u8003\u7EBF",align_line:"\u5BF9\u9F50\u53C2\u8003\u7EBF"},en:{vertical:"vertical",horizontal:"horizontal",show_ruler:"show rulers",show_refer_line:"show all guides",remove_all:"remove all ",refer_line:"guides",align_line:"align guides"}},D={bgColor:"#fff",dividerColor:"#dbdbdb",listItem:{textColor:"#415058",hoverTextColor:"#298df8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#f2f2f2"}},m=["downarrow","uparrow","leftarrow","rightarrow"],E=["shift.downarrow","shift.uparrow","shift.leftarrow","shift.rightarrow"],f=["leftarrow","rightarrow","shift.leftarrow","shift.rightarrow"],h=["downarrow","uparrow","shift.downarrow","shift.uparrow"],S=["backspace","delete"],V=[...m,...E]},53439:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>f});var a=i(38502),k=i(67787),M=i(25530),P=i(40461),C=i(89759),q=i(15921),Y=i(456),J=i(72214);const O=h=>["static","relative"].includes(h),l=h=>{const S=h.ownerDocument.defaultView;return Array.from(h.children).filter(V=>!["script","style","br"].includes(V.tagName.toLowerCase())&&O(S.getComputedStyle(V).getPropertyValue("position")))},D=(0,a.memo)(h=>{let{widgetKey:S,iframe:V,editingMode:We,element:{element:re,computedStyle:ve,rect:we},editStore:Ae,onUpdateEditingMode:Oe,zIndex:Be,outlineWidth:tt,ratio:Xe=1}=h;const ne=(0,a.useRef)(""),[lt,rt]=(0,a.useState)(!1),[Te,Ge]=(0,a.useState)(!1),ue=(0,a.useRef)(null),Me=!ve.position||O(ve.position),Ze=re.parentElement,fe=We==="drag",it=(0,a.useRef)(fe),et=(0,a.useRef)(lt);et.current=lt;const{isFlex:Ut,display:G,flexDirection:Ht}=(0,a.useMemo)(()=>{if(!Ze||!Me)return{isFlex:!1};const Jn=Ze.ownerDocument.defaultView,o=Ze&&(Jn==null?void 0:Jn.getComputedStyle(Ze)),so=(o==null?void 0:o.getPropertyValue("display"))||"",Et=["flex","grid","block","inline-block","inline-flex"].includes(so);return Et?l(Ze).length<2?{isFlex:!1}:{isFlex:Et,display:so,flexDirection:o==null?void 0:o.getPropertyValue("flex-direction")}:{isFlex:!1}},[Ze,Me]),{elementState:Tt}=(0,M.A)(V,Ze),[Vt,He]=(0,a.useState)(),rn=(0,a.useRef)(null),Lt=(0,Y.I)(S,Tt==null?void 0:Tt.rect,Xe),jt=(0,Y.I)(S,Vt,Xe);if((0,a.useEffect)(()=>{Oe(lt?"drag":"none")},[lt,Oe]),(0,a.useEffect)(()=>{var Jn;if(!Ze||!Ut)return;const o=re.ownerDocument,so=o.defaultView;let Et=l(Ze);const Jt=Et.indexOf(re),Ot=Ze.innerHTML;let dn,Ce=!1,Pt="1",Nn=[0,0],At=[1,0,0,1,0,0],on,no=o,mo=null;const mn=Zt=>{if(Zt.button!==0)return;const jn=Zt.target&&Zt.target===re;if(!jn&&Zt.target!==ue.current)return;if(no=Zt.target instanceof HTMLElement?Zt.target.ownerDocument:o,mo=Zt.target,mo&&"setPointerCapture"in mo)try{mo.setPointerCapture(Zt.pointerId)}catch(Tn){console.warn("setPointerCapture failed:",Tn)}const ro=()=>{Zt.preventDefault(),ht(Zt)};if(jn){const Tn=()=>{no.removeEventListener("pointermove",bt,!0),no.removeEventListener("pointerup",Tn,!0)},bt=Wt=>{(Math.abs(Wt.clientX-Zt.clientX)>1||Math.abs(Wt.clientY-Zt.clientY)>1)&&(ro(),Tn())};no.addEventListener("pointermove",bt,!0),no.addEventListener("pointerup",Tn,!0)}else ro()},ht=Zt=>{rt(!0);const{clientX:jn,clientY:ro}=Zt;on=re.getBoundingClientRect(),Nn=[jn,ro];const Tn=so.getComputedStyle(re),bt=Tn.getPropertyPriority("transform");Pt=Tn.getPropertyValue("opacity"),At=(0,P.S1)(bt),(0,q.lX)(re,"dragging"),Ge(!1),no.addEventListener("pointermove",Fn,!0),no.addEventListener("pointerup",Gt,!0),V&&(ne.current=V.style.pointerEvents,V.style.pointerEvents="none"),(0,q.dP)(Ze,!0),dn=()=>{re&&(re.style.transform=bt,re.style.opacity=Pt,(0,q.lX)(re,"none"),(0,q.dP)(Ze,!1),V&&(V.style.pointerEvents=ne.current),ne.current=""),dn=null}},Fn=Zt=>{Zt.preventDefault();const{clientX:jn,clientY:ro}=Zt,Tn=jn-Nn[0],bt=ro-Nn[1];if(!Ce&&(Math.abs(Tn)>=1||Math.abs(bt)>=1)&&(Ce=!0,re.style.opacity=""+(Number(Pt)||1)*.6),!Ce)return;const[Wt,wn]=(0,P.c8)(At),uo=(0,P.aA)(At,[Tn/Xe+Wt,bt/Xe+wn]),In=re.getBoundingClientRect(),Dn=(0,P.lN)(Ze.getBoundingClientRect(),In);(0,q.lX)(re,Dn?"dragging":"out"),Ge(!Dn),re.style.transform=(0,P.Hi)(uo);let So="row";if(G==="flex"?So=Ht||"row":(So=Math.abs(bt)>=Math.abs(Tn)?"column":"row",(So==="column"&&bt<0||So==="row"&&Tn<0)&&(So+="-reverse")),Dn&&Ze){const Qt=Et.indexOf(re),Ln=(0,P.pN)(Et),Mn=(0,P.RB)(Ln,Qt),Rt=Mn.findIndex(Qe=>Qe.isMin);if(Rt!==-1){const Qe=Mn[Rt];(So==="row"&&(Qt>Rt&&Qe.x<=0||Qt<Rt&&Qe.x>=0)||So==="row-reverse"&&(Qt<Rt&&Qe.x>=0||Qt>Rt&&Qe.x<=0)||So==="column"&&(Qt>Rt&&Qe.y<=0||Qt<Rt&&Qe.y>=0)||So==="column-reverse"&&(Qt<Rt&&Qe.y>=0||Qt>Rt&&Qe.y<=0))&&Yt(Zt,Rt)}}},Yt=(Zt,jn)=>{const ro=Et.indexOf(re);if(!Et[jn])return console.warn("[drag] missing will drop target");const{clientX:bt,clientY:Wt}=Zt;ro>jn?Et[jn].before(re):Et[jn].after(re),re.style.transform=(0,P.Hi)(At);const wn=re.getBoundingClientRect();He(wn),Nn=[wn.left+Nn[0]-on.left,wn.top+Nn[1]-on.top],on=wn;const uo=bt-Nn[0],In=Wt-Nn[1],[Dn,So]=(0,P.c8)(At);re.style.transform=(0,P.Hi)((0,P.aA)(At,[uo/Xe+Dn,In/Xe+So])),Et=l(Ze)},Gt=Zt=>{if(mo&&"releasePointerCapture"in mo)try{mo.releasePointerCapture(Zt.pointerId)}catch(jn){console.warn("releasePointerCapture failed:",jn)}mo=null,Bn(!0)},Bn=Zt=>{var jn;if(no.removeEventListener("pointermove",Fn,!0),no.removeEventListener("pointerup",Gt,!0),!et.current)return;Ge(!1),(jn=dn)==null||jn(),rt(!1),He(void 0);const ro=Et.indexOf(re);if(Zt)rn.current=null,ro!==Jt&&Ae.setElementInnerHTML(Ze,Ze.innerHTML,Ot);else if(ro!==Jt){const Tn=Array.from(Ze.children);Tn.splice(ro,1),Tn.splice(Jt,0,re),Ze.replaceChildren(...Tn)}mo&&(mo=null)};rn.current=Bn,Ze.addEventListener("pointerdown",mn,!0),(Jn=ue.current)==null||Jn.addEventListener("pointerdown",mn,!0);const qt=Zt=>{if(Zt.target===re)if(Zt.type==="mouseenter"){var jn;(jn=ue.current)==null||jn.classList.add("is-visible")}else{var ro;(ro=ue.current)==null||ro.classList.remove("is-visible")}};return re.addEventListener("mouseenter",qt),re.addEventListener("mouseleave",qt),()=>{var Zt;Bn(),Ze.removeEventListener("pointerdown",mn,!0),(Zt=ue.current)==null||Zt.removeEventListener("pointerdown",mn,!0),re.removeEventListener("mouseenter",qt),re.removeEventListener("mouseleave",qt)}},[re,Ze,Ut,G,Ht,Ae,Xe]),(0,a.useEffect)(()=>{if(it.current&&!fe){var Jn;(Jn=rn.current)==null||Jn.call(rn)}it.current=fe},[fe]),(0,a.useEffect)(()=>{var Jn;(Jn=ue.current)==null||Jn.classList.add("is-visible")},[re]),!V||!Ut)return null;const mt=Be+1;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(E,{ref:ue,className:"dnd-trigger is-visible "+(lt?"is-dragging":"")+" "+(Te?"no-allow":""),style:{top:we.top-5,left:we.left+we.width/2-10,zIndex:mt},"data-editor-ui":"dnd-setter"}),lt&&Lt&&(0,J.jsx)(C.A,{outline:Lt,offset:1,zIndex:mt,outlineWidth:tt}),lt&&jt&&(0,J.jsx)(m,{style:{height:jt.height,width:jt.width,left:jt.left,top:jt.top,zIndex:mt},"data-editor-ui":"insert-line"})]})}),m=k.Ay.div.withConfig({displayName:"DnDSetter__StyledInsertLine",componentId:"sc-1jzq2kf-0"})(["position:absolute;width:1px;background-color:#FD87D1;opacity:0.5;pointer-events:none;"]),E=k.Ay.div.withConfig({displayName:"DnDSetter__StyledDnDTrigger",componentId:"sc-1jzq2kf-1"})(["visibility:hidden;position:absolute;width:20px;height:10px;border-radius:10px;border:1px solid rgb(247,247,249);background-color:",";display:flex;align-items:center;justify-content:center;cursor:grab;&.is-visible,&:hover{visibility:visible;}&.is-dragging{cursor:grabbing;visibility:visible;}&.no-allow{cursor:not-allowed;}&::before{content:'';width:4px;height:1.5px;border-radius:1px;background:rgb(247,247,249);}"],h=>h.theme.color_btn_primary_normal),f=D},53707:(eo,ot,i)=>{"use strict";i.d(ot,{AB:()=>P,TV:()=>k,dX:()=>M});var a=i(67787);const k=a.Ay.div.withConfig({displayName:"styles__StyledSTList",componentId:"sc-3kk9jt-0"})(["height:calc(100% - 40px);flex:1 1 0;overflow-y:auto;position:relative;background:",";.st-list{.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:#999;margin-top:2px;}}"],C=>C.theme.color_bg_white),M=a.Ay.div.withConfig({displayName:"styles__StyledSTCard",componentId:"sc-3kk9jt-1"})(["width:100%;position:relative;box-sizing:border-box;.st-card-container{height:100%;width:100%;padding:10px 16px;display:flex;flex-direction:column;.st-card-header{display:flex;position:relative;width:100%;border-top-right-radius:8px;border-top-left-radius:8px;border-right:",";border-left:",";border-top:",";.st-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-name{font-weight:500;color:#333;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:10px;}}.more-btn{width:20px;height:20px;margin-right:10px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{width:20px;height:20px;}}}}.st-card-content{border-bottom-right-radius:8px;border-bottom-left-radius:8px;padding:10px;font-size:12px;align-items:center;color:#000;border-right:",";border-left:",";border-bottom:",";background:#fff;}}&:not(.isActive):hover{background:",";}&.isActive{background:",";}}"],C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_bg_select02),P=a.Ay.div.withConfig({displayName:"styles__StyledSTCardContent",componentId:"sc-3kk9jt-2"})([".expand{display:block;margin-top:4px;color:",";cursor:pointer;font-size:12px;line-height:14px;&:hover,&:active{color:",";}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.content-container{.draft-editor-div{padding:0;background:initial !important;color:#000 !important;&.show-placeholder{pointer-events:none;}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;height:24px;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}&:not(.isExpand){height:52px;overflow:hidden;position:relative;&.showExpand{&::after{content:'';height:24px;width:100%;position:absolute;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 100%);z-index:1;}}}}"],C=>C.theme.color_proto,C=>C.theme.color_primary_proto02)},54222:(eo,ot,i)=>{"use strict";i.d(ot,{K:()=>Ae});var a=i(38502),k=i(53732),M=i.n(k),P=i(55244),C=i(30024),q=i(83199),Y=i(38182),J=i(18381),O=i(21489),l=i(34860),D=i(77866),m=i(69815),E=i(72214);const f=[{label:"delete",value:"delete"}],S=Oe=>{var Be,tt;const Xe=(0,J.wA)(),[ne,lt]=(0,a.useState)(""),rt=(0,a.useRef)(),{comment:Te,activeCommentCid:Ge,viewType:ue,commentPanelWidth:Me,theme:Ze}=Oe,{cid:fe,screenCid:it,status:et,comments:Ut,userInfo:G,ctime:Ht,mtime:Tt,message:Vt,threadType:He,canvasCid:rn}=Te,{user:Lt}=window.MB,jt=Ut.length,mt=(0,O.ug)(G),Jn=(0,a.useMemo)(()=>{let Pt=f;return(Lt==null?void 0:Lt.cid)!==(G==null?void 0:G.cid)&&(Pt=Pt.filter(Nn=>!["edit","delete"].includes(Nn.value))),Pt},[Lt,G]),o=(0,a.useMemo)(()=>{const Pt=Tt||Ht;return(0,P.zW)(Pt)},[Ht,Tt]),so=(0,a.useMemo)(()=>(0,m.vp)(Vt,!0),[Vt]),Et=(0,a.useMemo)(()=>{var Pt;return((Pt=rootSdk.sdkStore.getHotItem(it))==null||(Pt=Pt.hotAttr)==null?void 0:Pt.name)||"\u672A\u5173\u8054\u9875\u9762"},[it]),Jt=(0,a.useCallback)(Pt=>{Pt.stopPropagation(),Xe({type:"preference:update",payload:{commentOptionsShowCommentChecked:!0}}),Xe({type:"entry:comment:rightPanel:active",payload:{commentCid:fe}}),(0,D.i4)({operation_type:D.nU.SelectComment,comment_type:D.ej[He],relation:!!rn,operation_from:D.HI[ue]})},[rn,fe,Xe,He,ue]),Ot=(0,a.useCallback)(Pt=>{Pt==="delete"&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc,theme:Ze}).then(Nn=>{Nn&&Xe({type:"entry:comment:delete",payload:{cid:fe}}),Nn&&(0,D.i4)({operation_type:D.nU.deleteInEditArea,comment_type:D.ej[He],relation:!!rn,operation_from:D.HI[ue]})})},[rn,fe,Xe,He,ue]),dn=(0,a.useCallback)(()=>{Xe({type:"entry:comment:checked",payload:{cid:fe,status:et!=="checked"}}),(0,D.i4)({operation_type:et==="checked"?D.nU.CancelFinishInPanel:D.nU.FinishInPanel,comment_type:D.ej[He],relation:!!rn,operation_from:D.HI[ue]})},[rn,fe,Xe,et,He,ue]),Ce=(0,a.useCallback)(Pt=>{Pt.stopPropagation(),ne===I18N.Comment.expand?lt(I18N.Comment.collapse):ne===I18N.Comment.collapse&&lt(I18N.Comment.expand)},[ne]);return(0,a.useEffect)(()=>{if(!rt||!rt.current)return;const{scrollHeight:Pt}=rt.current;Pt>90?lt(I18N.Comment.expand):lt("")},[so,Me]),(0,E.jsxs)("div",{className:M()({"comment-card":!0,"comment-active":fe===Ge}),onClick:Jt,children:[(0,E.jsxs)("header",{className:"comment-card-header",children:[(0,E.jsxs)("div",{className:"comment-summary",children:[mt.avatar&&!((Be=mt.avatar)!=null&&Be.includes("/images/avatar.png"))?(0,E.jsx)("img",{className:"user-avatar",src:mt.avatar,alt:"avatar"}):(0,E.jsx)("span",{className:"user-avatar isSpan",children:(tt=mt.name.substring(0,1))==null?void 0:tt.toUpperCase()}),(0,E.jsxs)("div",{className:"text-container",children:[(0,E.jsx)(q.A,{content:mt.name,distance:5,direction:"left",children:(0,E.jsx)("div",{className:"user-name",children:mt.name})}),(0,E.jsx)(q.A,{content:Et||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0",distance:5,direction:"left",children:(0,E.jsx)("div",{className:"page-name",children:Et||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0"})})]})]}),(0,E.jsx)("div",{className:"more-btn",children:Jn.length>0&&(0,E.jsx)(C.A,{options:Jn,onChange:Ot,style:{width:96,top:24,right:0}})})]}),(0,E.jsxs)("section",{className:"comment-card-content",children:[(0,E.jsx)("div",{className:M()("raw-content",{"fold-content":ne===I18N.Comment.expand}),ref:rt,dangerouslySetInnerHTML:{__html:so}}),ne&&(0,E.jsx)("div",{className:"fold-btn",onClick:Ce,children:ne}),jt>0&&(0,E.jsxs)("div",{className:"replay-info",children:[jt," ",I18N.Comment.num_replies]})]}),(0,E.jsxs)("footer",{className:"comment-card-footer",children:[(0,E.jsxs)("div",{className:"time",children:[I18N.Comment.comment_on," ",o]}),((0,l.OB)()||MB.canEditByCurrentUser||mt.cid===Lt.cid)&&(0,E.jsx)(Y.A,{className:M()("toolbar-btn",{checked:et==="checked"}),name:et==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:et==="checked"?"checked":"un_checked",onClick:dn})]})]})};var V=i(78401),We=i(49420),re=i(37342),ve=i(5209);const we=(0,E.jsxs)("svg",{width:"123",height:"89",viewBox:"0 0 123 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{d:"M47.434 24.4479C46.851 24.4478 46.2702 24.5195 45.705 24.6616C45.705 24.5868 45.705 24.5227 45.705 24.4479C45.7986 23.4797 45.6877 22.5028 45.3795 21.5797C45.0712 20.6567 44.5725 19.808 43.9152 19.0881C43.2579 18.3681 42.4565 17.7929 41.5626 17.3992C40.6687 17.0056 39.702 16.8022 38.7244 16.8022C37.7469 16.8022 36.7801 17.0056 35.8862 17.3992C34.9923 17.7929 34.191 18.3681 33.5337 19.0881C32.8764 19.808 32.3776 20.6567 32.0694 21.5797C31.7612 22.5028 31.6503 23.4797 31.7439 24.4479V24.512C30.7145 24.6494 29.7286 25.0127 28.8575 25.5754C27.9864 26.1382 27.2518 26.8865 26.7068 27.7663C26.1618 28.646 25.82 29.6352 25.7061 30.6624C25.5922 31.6896 25.709 32.7291 26.0481 33.7059C26.3873 34.6827 26.9402 35.5723 27.6671 36.3105C28.3939 37.0487 29.2765 37.6171 30.251 37.9745C31.2256 38.3319 32.2677 38.4695 33.3022 38.3773C34.3367 38.2851 35.3377 37.9654 36.2329 37.4413C37.1564 37.862 38.1598 38.0806 39.1755 38.0824C40.5825 38.0908 41.9582 37.6694 43.1168 36.875C43.9936 37.5663 45.0241 38.0385 46.122 38.2521C47.2199 38.4657 48.3532 38.4144 49.4271 38.1026C50.501 37.7908 51.4842 37.2275 52.2943 36.4599C53.1045 35.6923 53.7179 34.7427 54.0834 33.6907C54.4489 32.6387 54.5557 31.5149 54.3949 30.4134C54.2341 29.3118 53.8104 28.2647 53.1593 27.3596C52.5082 26.4545 51.6485 25.7178 50.6524 25.2112C49.6563 24.7046 48.5527 24.4429 47.434 24.4479Z",fill:"url(#paint0_linear_3145_29864)"}),(0,E.jsx)("path",{d:"M16.4602 14.5624C16.2337 14.5654 16.0083 14.5951 15.7888 14.6507C15.7888 14.6507 15.7888 14.5918 15.7888 14.5624C15.7524 13.8656 15.4493 13.2093 14.942 12.729C14.4347 12.2486 13.7619 11.9808 13.0624 11.9808C12.363 11.9808 11.6901 12.2486 11.1828 12.729C10.6755 13.2093 10.3724 13.8656 10.3361 14.5624V14.5624C9.93745 14.6175 9.55601 14.7601 9.21923 14.9799C8.88245 15.1996 8.59871 15.4912 8.38843 15.8334C8.17815 16.1757 8.04656 16.5602 8.00314 16.9593C7.95971 17.3584 8.00553 17.7621 8.1373 18.1415C8.26906 18.5208 8.48349 18.8662 8.76516 19.153C9.04682 19.4397 9.38872 19.6606 9.76623 19.7997C10.1437 19.9388 10.5475 19.9928 10.9484 19.9576C11.3493 19.9224 11.7374 19.7991 12.0848 19.5963C12.4426 19.7645 12.8329 19.8524 13.2284 19.8539C13.7757 19.8535 14.3103 19.6894 14.7632 19.3829C15.1041 19.6505 15.5042 19.8329 15.9301 19.915C16.3561 19.9971 16.7955 19.9765 17.2118 19.8549C17.6282 19.7333 18.0093 19.5142 18.3236 19.2159C18.6378 18.9176 18.8761 18.5488 19.0185 18.14C19.1609 17.7313 19.2033 17.2945 19.1422 16.8662C19.0811 16.4378 18.9183 16.0301 18.6672 15.6772C18.4162 15.3243 18.0843 15.0364 17.6991 14.8373C17.3139 14.6383 16.8866 14.5339 16.4528 14.5329L16.4602 14.5624Z",fill:"url(#paint1_linear_3145_29864)"}),(0,E.jsx)("path",{d:"M114.874 22.4274C114.205 22.4213 113.538 22.5035 112.89 22.6721C112.902 22.591 112.902 22.5085 112.89 22.4274C112.89 20.2989 112.044 18.2576 110.537 16.7526C109.031 15.2475 106.987 14.402 104.857 14.402C102.726 14.402 100.683 15.2475 99.1767 16.7526C97.6702 18.2576 96.8238 20.2989 96.8238 22.4274V22.4274C95.6461 22.5873 94.5185 23.0063 93.5224 23.6542C92.5263 24.3021 91.6866 25.1628 91.0637 26.1741C90.4409 27.1855 90.0503 28.3223 89.9204 29.5026C89.7905 30.683 89.9245 31.8774 90.3125 32.9998C90.7006 34.1222 91.3331 35.1446 92.1644 35.9932C92.9958 36.8419 94.0053 37.4957 95.1201 37.9074C96.235 38.3191 97.4274 38.4785 98.6114 38.3741C99.7954 38.2698 100.942 37.9042 101.967 37.3038C103.029 37.7856 104.181 38.0359 105.347 38.0379C106.952 38.0383 108.52 37.5613 109.853 36.6677C110.861 37.4658 112.045 38.0106 113.308 38.2562C114.57 38.5019 115.872 38.4413 117.106 38.0794C118.34 37.7176 119.469 37.0652 120.398 36.177C121.327 35.2887 122.029 34.1907 122.445 32.9751C122.861 31.7595 122.979 30.4619 122.788 29.1914C122.598 27.9209 122.105 26.7146 121.351 25.6739C120.598 24.6332 119.605 23.7884 118.456 23.2107C117.308 22.633 116.037 22.3392 114.751 22.354L114.874 22.4274Z",fill:"url(#paint2_linear_3145_29864)"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90176 37.1733L4.90324 37.1729ZM8.65186 35.7022C9.70263 35.8729 10.6948 36.0989 11.5664 36.3513C12.4956 36.6203 14.0915 38.1778 14.8039 39.845C15.0106 40.6438 14.3011 39.7244 12.9295 39.0635C12.4627 38.8322 11.799 38.5813 10.9887 38.3467C9.37042 37.8782 7.27736 37.5061 5.22562 37.4582C4.94556 37.4517 4.69139 37.4339 4.4848 37.3996C4.3869 37.3833 4.25499 37.3563 4.12261 37.3054C4.0572 37.2802 3.95266 37.2346 3.84296 37.1553C3.74245 37.0827 3.54633 36.916 3.44691 36.6217C3.33059 36.2775 3.40929 35.9522 3.54552 35.7267C3.66096 35.5355 3.80798 35.4256 3.88299 35.3751C4.03669 35.2717 4.19537 35.2176 4.28354 35.1901C4.48554 35.1271 4.73901 35.0801 5.01407 35.0423C5.52094 34.9728 6.00593 34.8887 6.40008 34.764C6.59465 34.7024 6.7401 34.6391 6.84201 34.5794C6.88988 34.5513 6.92107 34.5282 6.94047 34.5119C6.9311 34.4739 6.90814 34.4096 6.8557 34.3104C6.6666 33.9524 6.19839 33.3836 5.21298 32.5671C5.10851 32.4805 5.00717 32.39 4.91836 32.2971C4.83988 32.215 4.72105 32.08 4.63376 31.9023C4.55253 31.7369 4.39542 31.3093 4.6506 30.8512C4.88221 30.4354 5.27802 30.3268 5.40891 30.2974C5.69252 30.2336 5.99792 30.2711 6.15944 30.2927C6.36943 30.3207 6.61309 30.3666 6.86192 30.4167C7.02845 30.4503 7.20259 30.4867 7.38233 30.5242C8.33198 30.7224 9.43768 30.9532 10.4011 30.9787C10.976 30.9939 11.3654 30.9284 11.589 30.8261C11.7427 30.7557 11.7803 30.6991 11.7987 30.5602C11.8303 30.3211 11.7731 29.8099 11.3334 28.8898C10.9045 27.9923 10.1642 26.8133 8.99745 25.286C8.81692 25.0497 8.65692 24.7827 8.56414 24.4963C8.47749 24.2288 8.40483 23.7973 8.62344 23.3664C8.8697 22.881 9.32814 22.6918 9.6944 22.6517C10.0352 22.6143 10.3705 22.6877 10.6554 22.7856C12.3008 23.3508 14.8172 24.2125 17.3406 23.7777C19.7277 23.3664 22.3472 21.7437 24.1075 16.7793C24.2545 16.3647 24.5483 15.9526 24.8783 15.7054C24.9682 15.638 25.1023 15.5513 25.2735 15.493C25.437 15.4372 25.7441 15.3719 26.0859 15.5107C26.4614 15.6632 26.6534 15.9677 26.7341 16.2075C26.8073 16.4249 26.8068 16.6271 26.7972 16.7595C26.7752 17.0647 26.7068 17.4559 26.626 17.9176C26.2517 20.0582 26.9826 24.187 28.7319 27.5793C29.3612 28.7995 29.2972 28.9553 28.3943 27.921C26.8671 26.1715 24.6585 23.0481 24.6827 19.7134C23.4252 24.1759 20.049 25.419 17.6933 25.8249C15.4192 26.2167 13.2069 25.7565 11.5606 25.2673C12.2927 26.3099 12.8341 27.2124 13.2077 27.9941C13.7116 29.0485 13.968 30.001 13.8581 30.8323C13.735 31.7638 13.1762 32.3843 12.4534 32.715C11.8003 33.0139 11.0331 33.0735 10.3461 33.0553C9.7077 33.0384 9.02213 32.9477 8.37872 32.8367C8.5009 33.0078 8.60551 33.1754 8.69249 33.34C9.09911 34.1097 9.17519 34.9526 8.67172 35.6742C8.66517 35.6836 8.65855 35.6929 8.65186 35.7022ZM6.94442 34.5577C6.94442 34.5577 6.94165 34.5482 6.94497 34.5342C6.94756 34.5515 6.94442 34.5577 6.94442 34.5577Z",fill:"#FF6161"}),(0,E.jsxs)("g",{clipPath:"url(#clip0_3145_29864)",children:[(0,E.jsx)("path",{d:"M82.2023 43.6661C81.6241 45.5153 82.6591 47.4903 84.5082 48.0685C86.3593 48.6473 88.3351 47.6137 88.9133 45.7646C89.4915 43.9155 88.4568 41.9394 86.6058 41.3606C84.7566 40.7824 82.7805 41.8171 82.2023 43.6661Z",fill:"#90C0FA"}),(0,E.jsx)("path",{d:"M107.887 33.2812C108.728 30.5905 107.224 27.7171 104.531 26.8751L58.776 12.5678C56.0854 11.7265 53.2101 13.2303 52.3687 15.921L41.8762 49.4762C41.0349 52.1669 42.5412 55.0408 45.2319 55.8821L60.2812 60.5879C61.2934 60.9044 62.1384 61.6099 62.6306 62.5492L64.3007 65.7367C65.3257 67.6929 67.7421 68.4483 69.6987 67.4242L72.8855 65.7563C73.8252 65.2644 74.9218 65.166 75.9341 65.4825L90.9869 70.1894C93.6797 71.0314 96.553 69.527 97.3943 66.8364L99.1036 61.37L99.1242 61.2833L107.887 33.2812ZM94.2106 64.1666C94.2106 64.1666 94.2106 64.1666 94.2106 64.1666C93.7368 65.6819 92.1238 66.5265 90.6085 66.0527L75.3016 61.2663C74.2888 60.9496 73.1917 61.0483 72.2517 61.5407L71.4013 61.9862C69.4436 63.0117 67.0251 62.2552 66.0007 60.2967L65.5568 59.448C65.0649 58.5074 64.2192 57.8009 63.2061 57.4841L47.9017 52.6985C46.3864 52.2247 45.5399 50.611 46.0137 49.0957L55.5524 18.5908C56.0262 17.0755 57.6422 16.2286 59.1574 16.7024L101.864 30.0566C103.379 30.5304 104.223 32.1464 103.749 33.6616L95.5386 59.9193L94.79 62.3136L94.2105 64.1666C94.2105 64.1666 94.2106 64.1666 94.2106 64.1666V64.1666Z",fill:"#90C0FA"}),(0,E.jsx)("path",{d:"M71.5266 40.328C70.9484 42.1771 71.9833 44.1522 73.8324 44.7304C75.6816 45.3086 77.6573 44.275 78.2355 42.4258C78.8137 40.5767 77.7791 38.6006 75.9299 38.0224C74.0808 37.4443 72.1048 38.4789 71.5266 40.328Z",fill:"#90C0FA"}),(0,E.jsx)("path",{d:"M60.8509 36.9897C60.2727 38.8389 61.3077 40.8139 63.1568 41.3921C65.0059 41.9703 66.9816 40.9367 67.5598 39.0876C68.138 37.2384 67.1034 35.2624 65.2543 34.6842C63.4051 34.106 61.4291 35.1407 60.8509 36.9897Z",fill:"#90C0FA"})]}),(0,E.jsx)("path",{d:"M46.897 62.7862C46.6285 62.7862 46.3712 62.8942 46.1831 63.086C45.995 63.2777 45.892 63.5371 45.8972 63.8056L45.9242 65.1939L46.924 65.1745L46.978 67.9511L45.9789 67.9705L44.5249 67.0945L44.0088 67.9511L39.4 65.1745L39.916 64.3179L37.6116 62.9296C37.4558 62.8358 37.2774 62.7862 37.0955 62.7862H35.3172V63.7862H31.7606V62.7862H28.204V63.7862H24.6474V62.7862H22.9584C22.9265 62.7364 22.888 62.6408 22.888 62.5058V60.4422H21.888V56.3149H22.888V52.1876H21.888V48.0603H22.888V43.933H21.888V39.8057H22.888V37.742C22.888 37.6071 22.9265 37.5114 22.9584 37.4617H24.8896V36.4617H28.9307V37.4617H32.9717V36.4617H37.0128V37.4617H41.0538V36.4617H45.0948V37.4617H49.1359V36.4617H53.1769V37.4617H55.1081C55.14 37.5114 55.1785 37.6071 55.1785 37.742V39.8061H56.1785V43.9342H55.1785V48.0623H56.1785V52.1904H55.1785V56.3185H56.1785V60.4466H55.1785V62.5064C55.1771 62.6423 55.1377 62.7373 55.1059 62.7862H53.1186V63.7862H48.9709V62.7862H46.897ZM46.9745 69.3806C46.9524 69.4068 46.9272 69.4301 46.8994 69.4501L46.8225 69.3429L46.9273 69.3409L46.9745 69.3806ZM46.6879 69.3455L46.7489 69.3444L46.8095 69.499C46.7776 69.5115 46.7443 69.52 46.7103 69.5242L46.6879 69.3455ZM46.6302 69.3467L46.6079 69.5242C46.574 69.52 46.5406 69.5115 46.5088 69.499L46.568 69.3479L46.6302 69.3467ZM46.4912 69.3494L46.4189 69.4501C46.391 69.4301 46.3658 69.4068 46.3438 69.3806L46.3783 69.3516L46.4912 69.3494Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeLinejoin:"round",strokeDasharray:"4 4"}),(0,E.jsx)("path",{d:"M38.1109 43.1309H27.8924C27.486 43.1309 27.1566 43.4603 27.1566 43.8667V44.5584C27.1566 44.9648 27.486 45.2943 27.8924 45.2943H38.1109C38.5173 45.2943 38.8467 44.9648 38.8467 44.5584V43.8667C38.8467 43.4603 38.5173 43.1309 38.1109 43.1309Z",fill:"#9EA9BC"}),(0,E.jsx)("path",{d:"M45.1652 48.9392H27.8924C27.486 48.9392 27.1566 49.2687 27.1566 49.6751V50.3667C27.1566 50.7731 27.486 51.1026 27.8924 51.1026H45.1652C45.5716 51.1026 45.9011 50.7731 45.9011 50.3667V49.6751C45.9011 49.2687 45.5716 48.9392 45.1652 48.9392Z",fill:"#9EA9BC"}),(0,E.jsx)("path",{d:"M50.7773 54.7526H27.8924C27.486 54.7526 27.1566 55.082 27.1566 55.4884V56.1801C27.1566 56.5865 27.486 56.916 27.8924 56.916H50.7773C51.1837 56.916 51.5131 56.5865 51.5131 56.1801V55.4884C51.5131 55.082 51.1837 54.7526 50.7773 54.7526Z",fill:"#9EA9BC"}),(0,E.jsx)("ellipse",{cx:"61.3847",cy:"80.3806",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3847 80.3806)",fill:"url(#paint3_linear_3145_29864)"}),(0,E.jsxs)("defs",{children:[(0,E.jsxs)("linearGradient",{id:"paint0_linear_3145_29864",x1:"31.1854",y1:"10.0012",x2:"42.8441",y2:"38.4977",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#CEE1FF"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,E.jsxs)("linearGradient",{id:"paint1_linear_3145_29864",x1:"10.1443",y1:"8.91019",x2:"14.6989",y2:"20.0093",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#CEE1FF"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,E.jsxs)("linearGradient",{id:"paint2_linear_3145_29864",x1:"105.812",y1:"12.3956",x2:"106.545",y2:"34.1475",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#E9EEFF"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,E.jsxs)("linearGradient",{id:"paint3_linear_3145_29864",x1:"46.1107",y1:"73.4508",x2:"68.9711",y2:"94.6006",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#CDE1FF"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,E.jsx)("clipPath",{id:"clip0_3145_29864",children:(0,E.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(50.606) rotate(17.3641)"})})]})]});function Ae(Oe){var Be;const{commentList:tt,activeCommentCid:Xe,viewType:ne,isHtmlZipPreview:lt,commentPanelWidth:rt,theme:Te}=Oe,Ge=(0,a.useRef)();return(0,a.useEffect)(()=>{var ue;if(!Ge||!Ge.current)return;const{clientHeight:Me,scrollTop:Ze}=Ge.current,fe=Ge==null||(ue=Ge.current)==null?void 0:ue.querySelector(".comment-active");if(!fe)return;const{scrollHeight:it,offsetTop:et}=fe,Ut=et-Ze;(Ut<0||Ut>Me||Me-Ut<it/2)&&(0,V.VG)(Ge.current,et-Me/2,200)},[Ge,Xe]),lt?null:(0,E.jsx)(We.$,{children:(0,E.jsx)("div",{className:"comment-list",ref:Ge,children:tt.length>0?(0,E.jsxs)(E.Fragment,{children:[tt.map(ue=>(0,E.jsx)(S,{comment:ue,activeCommentCid:Xe,viewType:ne,commentPanelWidth:rt,theme:Te},ue.cid)),(0,E.jsxs)("div",{className:"no-more-tips",children:["- ",I18N.Comment.no_more_comment," -"]})]}):(Be=MB)!=null&&(Be=Be.user)!=null&&Be.id?(0,E.jsxs)("div",{className:"blank-list",children:[(0,E.jsx)("span",{className:"icon",children:we}),(0,E.jsx)("span",{className:"text",children:I18N.Comment.click_drag_to_add_comment})]}):(0,E.jsxs)("div",{className:"blank-list",children:[(0,E.jsx)("span",{className:"icon",children:we}),(0,E.jsx)("span",{className:"text",children:I18N.Comment.view_comments_after_login}),(0,E.jsx)("button",{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,re.JW)("/workspace","_blank","noreferrer"),ENV.IS_MO&&(0,ve.lW)("Device-Comment-Signin")},type:"signin",source:"proto-preview-comment"})},children:I18N.pPreviewToolbar.login})]})})})}},55109:(eo,ot,i)=>{"use strict";i.d(ot,{ax:()=>P,r_:()=>M,wr:()=>k});var a=i(19249);const k=async C=>{let{flpakKey:q}=C;return await(0,a.HS)("/flatkiq/htmlzip/build?fKey="+q)},M=async C=>{let{flpakKey:q}=C;return await(0,a.HS)("/flatkiq/apk/build?fKey="+q)},P=async C=>{let{flpakKey:q}=C;return await(0,a.HS)("/go/v1/mdrp/build?fKey="+q)}},55326:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>D});var a=i(38502),k=i(53732),M=i.n(k),P=i(17307),C=i(58603),q=i(83199),Y=i(89240),J=i(80783),O=i(72214);function l(m){var E,f;const{selectedValue:h,optionList:S,className:V="",menuClassName:We="",onChange:re,width:ve=140,shouldOpenOnHover:we=!0,tooltips:Ae="",onMouseEnter:Oe=()=>{},onMouseLeave:Be=()=>{},renderDisplayName:tt}=m,[Xe,ne]=(0,a.useState)(!1),[lt,rt]=(0,a.useState)({}),Te=(0,a.useRef)(null),Ge=async(it,et)=>{ne(!1),re(it,et)};(0,a.useEffect)(()=>{var it;if(!Te.current)return;const et=(it=Te.current)==null?void 0:it.querySelector("label.filter-opener");if(!et)return;const{bottom:Ut,right:G,top:Ht,height:Tt}=et.getBoundingClientRect();rt({top:Ut+5,right:G})},[Te.current]);const ue=(0,a.useCallback)(it=>{ne(it)},[]),Me=(0,a.useCallback)((it,et)=>!!(Ae!=null&&Ae.length)&&!Xe,[Ae,Xe]),Ze=(it,et)=>{let{setIsOpen:Ut}=et;Ut(!1)},fe=(E=S.find(it=>{let{value:et}=it;return et===h}))==null?void 0:E.label;return(0,O.jsx)(J.L,{className:M()("platform-sub-filter",V),ref:Te,children:(0,O.jsx)(C.A,{menuY:"bottom",isOpen:Xe,className:"filter-opener",onToggle:ue,shouldPreventScrollingPropagation:!1,menuBaseStyle:{...lt,width:ve},hoverDelay:150,closeDelay:100,onMouseEnter:Oe,onMouseLeave:Be,opener:(0,O.jsx)(a.Fragment,{children:(0,O.jsxs)(q.A,{content:Ae,direction:"down",isShowTipsByTarget:Me,onClick:Ze,children:[tt?(f=tt())!=null?f:(0,O.jsx)("span",{className:"display-name",children:fe}):(0,O.jsx)("span",{className:"display-name",children:fe}),(0,O.jsx)(Y.A,{size:14,className:M()("arrow-icon",{"is-expand":Xe})})]})}),menuClassName:M()("platform-sub-filter-menu",We),menu:(0,O.jsx)("ul",{children:S.map((it,et)=>{let{label:Ut,value:G,icon:Ht}=it;const Tt=h===G;return(0,O.jsxs)("li",{className:M()({active:Tt}),"data-key":G,onClick:()=>Ge(G,et),children:[Tt&&(0,O.jsx)(P.C,{name:"common/checked",className:"checked"}),Ht||null,(0,O.jsx)("span",{children:Ut})]},G)})})})})}const D=(0,a.memo)(l)},55603:eo=>{function ot(bt){return bt instanceof Map?bt.clear=bt.delete=bt.set=function(){throw new Error("map is read-only")}:bt instanceof Set&&(bt.add=bt.clear=bt.delete=function(){throw new Error("set is read-only")}),Object.freeze(bt),Object.getOwnPropertyNames(bt).forEach(function(Wt){var wn=bt[Wt];typeof wn=="object"&&!Object.isFrozen(wn)&&ot(wn)}),bt}var i=ot,a=ot;i.default=a;class k{constructor(Wt){Wt.data===void 0&&(Wt.data={}),this.data=Wt.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function M(bt){return bt.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function P(bt){const Wt=Object.create(null);for(const Dn in bt)Wt[Dn]=bt[Dn];for(var wn=arguments.length,uo=new Array(wn>1?wn-1:0),In=1;In<wn;In++)uo[In-1]=arguments[In];return uo.forEach(function(Dn){for(const So in Dn)Wt[So]=Dn[So]}),Wt}const C="</span>",q=bt=>!!bt.kind;class Y{constructor(Wt,wn){this.buffer="",this.classPrefix=wn.classPrefix,Wt.walk(this)}addText(Wt){this.buffer+=M(Wt)}openNode(Wt){if(!q(Wt))return;let wn=Wt.kind;Wt.sublanguage||(wn=""+this.classPrefix+wn),this.span(wn)}closeNode(Wt){q(Wt)&&(this.buffer+=C)}value(){return this.buffer}span(Wt){this.buffer+='<span class="'+Wt+'">'}}class J{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Wt){this.top.children.push(Wt)}openNode(Wt){const wn={kind:Wt,children:[]};this.add(wn),this.stack.push(wn)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Wt){return this.constructor._walk(Wt,this.rootNode)}static _walk(Wt,wn){return typeof wn=="string"?Wt.addText(wn):wn.children&&(Wt.openNode(wn),wn.children.forEach(uo=>this._walk(Wt,uo)),Wt.closeNode(wn)),Wt}static _collapse(Wt){typeof Wt!="string"&&Wt.children&&(Wt.children.every(wn=>typeof wn=="string")?Wt.children=[Wt.children.join("")]:Wt.children.forEach(wn=>{J._collapse(wn)}))}}class O extends J{constructor(Wt){super(),this.options=Wt}addKeyword(Wt,wn){Wt!==""&&(this.openNode(wn),this.addText(Wt),this.closeNode())}addText(Wt){Wt!==""&&this.add(Wt)}addSublanguage(Wt,wn){const uo=Wt.root;uo.kind=wn,uo.sublanguage=!0,this.add(uo)}toHTML(){return new Y(this,this.options).value()}finalize(){return!0}}function l(bt){return new RegExp(bt.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function D(bt){return bt?typeof bt=="string"?bt:bt.source:null}function m(){for(var bt=arguments.length,Wt=new Array(bt),wn=0;wn<bt;wn++)Wt[wn]=arguments[wn];return Wt.map(In=>D(In)).join("")}function E(){for(var bt=arguments.length,Wt=new Array(bt),wn=0;wn<bt;wn++)Wt[wn]=arguments[wn];return"("+Wt.map(In=>D(In)).join("|")+")"}function f(bt){return new RegExp(bt.toString()+"|").exec("").length-1}function h(bt,Wt){const wn=bt&&bt.exec(Wt);return wn&&wn.index===0}const S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function V(bt,Wt){Wt===void 0&&(Wt="|");let wn=0;return bt.map(uo=>{wn+=1;const In=wn;let Dn=D(uo),So="";for(;Dn.length>0;){const Qt=S.exec(Dn);if(!Qt){So+=Dn;break}So+=Dn.substring(0,Qt.index),Dn=Dn.substring(Qt.index+Qt[0].length),Qt[0][0]==="\\"&&Qt[1]?So+="\\"+String(Number(Qt[1])+In):(So+=Qt[0],Qt[0]==="("&&wn++)}return So}).map(uo=>"("+uo+")").join(Wt)}const We=/\b\B/,re="[a-zA-Z]\\w*",ve="[a-zA-Z_]\\w*",we="\\b\\d+(\\.\\d+)?",Ae="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Oe="\\b(0b[01]+)",Be="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",tt=function(bt){bt===void 0&&(bt={});const Wt=/^#![ ]*\//;return bt.binary&&(bt.begin=m(Wt,/.*\b/,bt.binary,/\b.*/)),P({className:"meta",begin:Wt,end:/$/,relevance:0,"on:begin":(wn,uo)=>{wn.index!==0&&uo.ignoreMatch()}},bt)},Xe={begin:"\\\\[\\s\\S]",relevance:0},ne={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Xe]},lt={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Xe]},rt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Te=function(bt,Wt,wn){wn===void 0&&(wn={});const uo=P({className:"comment",begin:bt,end:Wt,contains:[]},wn);return uo.contains.push(rt),uo.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),uo},Ge=Te("//","$"),ue=Te("/\\*","\\*/"),Me=Te("#","$"),Ze={className:"number",begin:we,relevance:0},fe={className:"number",begin:Ae,relevance:0},it={className:"number",begin:Oe,relevance:0},et={className:"number",begin:we+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},Ut={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Xe,{begin:/\[/,end:/\]/,relevance:0,contains:[Xe]}]}]},G={className:"title",begin:re,relevance:0},Ht={className:"title",begin:ve,relevance:0},Tt={begin:"\\.\\s*"+ve,relevance:0};var He=Object.freeze({__proto__:null,MATCH_NOTHING_RE:We,IDENT_RE:re,UNDERSCORE_IDENT_RE:ve,NUMBER_RE:we,C_NUMBER_RE:Ae,BINARY_NUMBER_RE:Oe,RE_STARTERS_RE:Be,SHEBANG:tt,BACKSLASH_ESCAPE:Xe,APOS_STRING_MODE:ne,QUOTE_STRING_MODE:lt,PHRASAL_WORDS_MODE:rt,COMMENT:Te,C_LINE_COMMENT_MODE:Ge,C_BLOCK_COMMENT_MODE:ue,HASH_COMMENT_MODE:Me,NUMBER_MODE:Ze,C_NUMBER_MODE:fe,BINARY_NUMBER_MODE:it,CSS_NUMBER_MODE:et,REGEXP_MODE:Ut,TITLE_MODE:G,UNDERSCORE_TITLE_MODE:Ht,METHOD_GUARD:Tt,END_SAME_AS_BEGIN:function(bt){return Object.assign(bt,{"on:begin":(Wt,wn)=>{wn.data._beginMatch=Wt[1]},"on:end":(Wt,wn)=>{wn.data._beginMatch!==Wt[1]&&wn.ignoreMatch()}})}});function rn(bt,Wt){bt.input[bt.index-1]==="."&&Wt.ignoreMatch()}function Lt(bt,Wt){Wt&&bt.beginKeywords&&(bt.begin="\\b("+bt.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",bt.__beforeBegin=rn,bt.keywords=bt.keywords||bt.beginKeywords,delete bt.beginKeywords,bt.relevance===void 0&&(bt.relevance=0))}function jt(bt,Wt){Array.isArray(bt.illegal)&&(bt.illegal=E(...bt.illegal))}function mt(bt,Wt){if(bt.match){if(bt.begin||bt.end)throw new Error("begin & end are not supported with match");bt.begin=bt.match,delete bt.match}}function Jn(bt,Wt){bt.relevance===void 0&&(bt.relevance=1)}const o=["of","and","for","in","not","or","if","then","parent","list","value"],so="keyword";function Et(bt,Wt,wn){wn===void 0&&(wn=so);const uo={};return typeof bt=="string"?In(wn,bt.split(" ")):Array.isArray(bt)?In(wn,bt):Object.keys(bt).forEach(function(Dn){Object.assign(uo,Et(bt[Dn],Wt,Dn))}),uo;function In(Dn,So){Wt&&(So=So.map(Qt=>Qt.toLowerCase())),So.forEach(function(Qt){const Ln=Qt.split("|");uo[Ln[0]]=[Dn,Jt(Ln[0],Ln[1])]})}}function Jt(bt,Wt){return Wt?Number(Wt):Ot(bt)?0:1}function Ot(bt){return o.includes(bt.toLowerCase())}function dn(bt,Wt){let{plugins:wn}=Wt;function uo(Ln,Mn){return new RegExp(D(Ln),"m"+(bt.case_insensitive?"i":"")+(Mn?"g":""))}class In{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Mn,Rt){Rt.position=this.position++,this.matchIndexes[this.matchAt]=Rt,this.regexes.push([Rt,Mn]),this.matchAt+=f(Mn)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Mn=this.regexes.map(Rt=>Rt[1]);this.matcherRe=uo(V(Mn),!0),this.lastIndex=0}exec(Mn){this.matcherRe.lastIndex=this.lastIndex;const Rt=this.matcherRe.exec(Mn);if(!Rt)return null;const Qe=Rt.findIndex((qn,Hn)=>Hn>0&&qn!==void 0),En=this.matchIndexes[Qe];return Rt.splice(0,Qe),Object.assign(Rt,En)}}class Dn{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Mn){if(this.multiRegexes[Mn])return this.multiRegexes[Mn];const Rt=new In;return this.rules.slice(Mn).forEach(Qe=>{let[En,qn]=Qe;return Rt.addRule(En,qn)}),Rt.compile(),this.multiRegexes[Mn]=Rt,Rt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Mn,Rt){this.rules.push([Mn,Rt]),Rt.type==="begin"&&this.count++}exec(Mn){const Rt=this.getMatcher(this.regexIndex);Rt.lastIndex=this.lastIndex;let Qe=Rt.exec(Mn);if(this.resumingScanAtSamePosition()&&!(Qe&&Qe.index===this.lastIndex)){const En=this.getMatcher(0);En.lastIndex=this.lastIndex+1,Qe=En.exec(Mn)}return Qe&&(this.regexIndex+=Qe.position+1,this.regexIndex===this.count&&this.considerAll()),Qe}}function So(Ln){const Mn=new Dn;return Ln.contains.forEach(Rt=>Mn.addRule(Rt.begin,{rule:Rt,type:"begin"})),Ln.terminatorEnd&&Mn.addRule(Ln.terminatorEnd,{type:"end"}),Ln.illegal&&Mn.addRule(Ln.illegal,{type:"illegal"}),Mn}function Qt(Ln,Mn){const Rt=Ln;if(Ln.isCompiled)return Rt;[mt].forEach(En=>En(Ln,Mn)),bt.compilerExtensions.forEach(En=>En(Ln,Mn)),Ln.__beforeBegin=null,[Lt,jt,Jn].forEach(En=>En(Ln,Mn)),Ln.isCompiled=!0;let Qe=null;if(typeof Ln.keywords=="object"&&(Qe=Ln.keywords.$pattern,delete Ln.keywords.$pattern),Ln.keywords&&(Ln.keywords=Et(Ln.keywords,bt.case_insensitive)),Ln.lexemes&&Qe)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return Qe=Qe||Ln.lexemes||/\w+/,Rt.keywordPatternRe=uo(Qe,!0),Mn&&(Ln.begin||(Ln.begin=/\B|\b/),Rt.beginRe=uo(Ln.begin),Ln.endSameAsBegin&&(Ln.end=Ln.begin),!Ln.end&&!Ln.endsWithParent&&(Ln.end=/\B|\b/),Ln.end&&(Rt.endRe=uo(Ln.end)),Rt.terminatorEnd=D(Ln.end)||"",Ln.endsWithParent&&Mn.terminatorEnd&&(Rt.terminatorEnd+=(Ln.end?"|":"")+Mn.terminatorEnd)),Ln.illegal&&(Rt.illegalRe=uo(Ln.illegal)),Ln.contains||(Ln.contains=[]),Ln.contains=[].concat(...Ln.contains.map(function(En){return Pt(En==="self"?Ln:En)})),Ln.contains.forEach(function(En){Qt(En,Rt)}),Ln.starts&&Qt(Ln.starts,Mn),Rt.matcher=So(Rt),Rt}if(bt.compilerExtensions||(bt.compilerExtensions=[]),bt.contains&&bt.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return bt.classNameAliases=P(bt.classNameAliases||{}),Qt(bt)}function Ce(bt){return bt?bt.endsWithParent||Ce(bt.starts):!1}function Pt(bt){return bt.variants&&!bt.cachedVariants&&(bt.cachedVariants=bt.variants.map(function(Wt){return P(bt,{variants:null},Wt)})),bt.cachedVariants?bt.cachedVariants:Ce(bt)?P(bt,{starts:bt.starts?P(bt.starts):null}):Object.isFrozen(bt)?P(bt):bt}var Nn="10.7.3";function At(bt){return!!(bt||bt==="")}function on(bt){const Wt={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!bt.getLanguage(this.language))return console.warn('The language "'+this.language+'" you specified could not be found.'),this.unknownLanguage=!0,M(this.code);let uo={};return this.autoDetect?(uo=bt.highlightAuto(this.code),this.detectedLanguage=uo.language):(uo=bt.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),uo.value},autoDetect(){return!this.language||At(this.autodetect)},ignoreIllegals(){return!0}},render(uo){return uo("pre",{},[uo("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Wt,VuePlugin:{install(uo){uo.component("highlightjs",Wt)}}}}const no={"after:highlightElement":bt=>{let{el:Wt,result:wn,text:uo}=bt;const In=mn(Wt);if(!In.length)return;const Dn=document.createElement("div");Dn.innerHTML=wn.value,wn.value=ht(In,mn(Dn),uo)}};function mo(bt){return bt.nodeName.toLowerCase()}function mn(bt){const Wt=[];return function wn(uo,In){for(let Dn=uo.firstChild;Dn;Dn=Dn.nextSibling)Dn.nodeType===3?In+=Dn.nodeValue.length:Dn.nodeType===1&&(Wt.push({event:"start",offset:In,node:Dn}),In=wn(Dn,In),mo(Dn).match(/br|hr|img|input/)||Wt.push({event:"stop",offset:In,node:Dn}));return In}(bt,0),Wt}function ht(bt,Wt,wn){let uo=0,In="";const Dn=[];function So(){return!bt.length||!Wt.length?bt.length?bt:Wt:bt[0].offset!==Wt[0].offset?bt[0].offset<Wt[0].offset?bt:Wt:Wt[0].event==="start"?bt:Wt}function Qt(Rt){function Qe(En){return" "+En.nodeName+'="'+M(En.value)+'"'}In+="<"+mo(Rt)+[].map.call(Rt.attributes,Qe).join("")+">"}function Ln(Rt){In+="</"+mo(Rt)+">"}function Mn(Rt){(Rt.event==="start"?Qt:Ln)(Rt.node)}for(;bt.length||Wt.length;){let Rt=So();if(In+=M(wn.substring(uo,Rt[0].offset)),uo=Rt[0].offset,Rt===bt){Dn.reverse().forEach(Ln);do Mn(Rt.splice(0,1)[0]),Rt=So();while(Rt===bt&&Rt.length&&Rt[0].offset===uo);Dn.reverse().forEach(Qt)}else Rt[0].event==="start"?Dn.push(Rt[0].node):Dn.pop(),Mn(Rt.splice(0,1)[0])}return In+M(wn.substr(uo))}const Fn={},Yt=bt=>{console.error(bt)},Gt=function(bt){for(var Wt=arguments.length,wn=new Array(Wt>1?Wt-1:0),uo=1;uo<Wt;uo++)wn[uo-1]=arguments[uo];console.log("WARN: "+bt,...wn)},Bn=(bt,Wt)=>{Fn[bt+"/"+Wt]||(console.log("Deprecated as of "+bt+". "+Wt),Fn[bt+"/"+Wt]=!0)},qt=M,Zt=P,jn=Symbol("nomatch");var Tn=function(bt){const Wt=Object.create(null),wn=Object.create(null),uo=[];let In=!0;const Dn=/(^(<[^>]+>|\t|)+|\n)/gm,So="Could not find the language '{}', did you forget to load/include a language module?",Qt={disableAutodetect:!0,name:"Plain text",contains:[]};let Ln={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:O};function Mn(ko){return Ln.noHighlightRe.test(ko)}function Rt(ko){let bo=ko.className+" ";bo+=ko.parentNode?ko.parentNode.className:"";const aa=Ln.languageDetectRe.exec(bo);if(aa){const ma=ia(aa[1]);return ma||(Gt(So.replace("{}",aa[1])),Gt("Falling back to no-highlight mode for this block.",ko)),ma?aa[1]:"no-highlight"}return bo.split(/\s+/).find(ma=>Mn(ma)||ia(ma))}function Qe(ko,bo,aa,ma){let dr="",ni="";typeof bo=="object"?(dr=ko,aa=bo.ignoreIllegals,ni=bo.language,ma=void 0):(Bn("10.7.0","highlight(lang, code, ...args) has been deprecated."),Bn("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),ni=ko,dr=bo);const Ir={code:dr,language:ni};Sa("before:highlight",Ir);const $a=Ir.result?Ir.result:En(Ir.language,Ir.code,aa,ma);return $a.code=Ir.code,Sa("after:highlight",$a),$a}function En(ko,bo,aa,ma){function dr(fr,Ar){const zr=ns.case_insensitive?Ar[0].toLowerCase():Ar[0];return Object.prototype.hasOwnProperty.call(fr.keywords,zr)&&fr.keywords[zr]}function ni(){if(!sr.keywords){Bt.addText(vn);return}let fr=0;sr.keywordPatternRe.lastIndex=0;let Ar=sr.keywordPatternRe.exec(vn),zr="";for(;Ar;){zr+=vn.substring(fr,Ar.index);const Fr=dr(sr,Ar);if(Fr){const[os,Ei]=Fr;if(Bt.addText(zr),zr="",Io+=Ei,os.startsWith("_"))zr+=Ar[0];else{const Kl=ns.classNameAliases[os]||os;Bt.addKeyword(Ar[0],Kl)}}else zr+=Ar[0];fr=sr.keywordPatternRe.lastIndex,Ar=sr.keywordPatternRe.exec(vn)}zr+=vn.substr(fr),Bt.addText(zr)}function Ir(){if(vn==="")return;let fr=null;if(typeof sr.subLanguage=="string"){if(!Wt[sr.subLanguage]){Bt.addText(vn);return}fr=En(sr.subLanguage,vn,!0,mi[sr.subLanguage]),mi[sr.subLanguage]=fr.top}else fr=Hn(vn,sr.subLanguage.length?sr.subLanguage:null);sr.relevance>0&&(Io+=fr.relevance),Bt.addSublanguage(fr.emitter,fr.language)}function $a(){sr.subLanguage!=null?Ir():ni(),vn=""}function Va(fr){return fr.className&&Bt.openNode(ns.classNameAliases[fr.className]||fr.className),sr=Object.create(fr,{parent:{value:sr}}),sr}function Ha(fr,Ar,zr){let Fr=h(fr.endRe,zr);if(Fr){if(fr["on:end"]){const os=new k(fr);fr["on:end"](Ar,os),os.isMatchIgnored&&(Fr=!1)}if(Fr){for(;fr.endsParent&&fr.parent;)fr=fr.parent;return fr}}if(fr.endsWithParent)return Ha(fr.parent,Ar,zr)}function or(fr){return sr.matcher.regexIndex===0?(vn+=fr[0],1):(Ur=!0,0)}function gi(fr){const Ar=fr[0],zr=fr.rule,Fr=new k(zr),os=[zr.__beforeBegin,zr["on:begin"]];for(const Ei of os)if(Ei&&(Ei(fr,Fr),Fr.isMatchIgnored))return or(Ar);return zr&&zr.endSameAsBegin&&(zr.endRe=l(Ar)),zr.skip?vn+=Ar:(zr.excludeBegin&&(vn+=Ar),$a(),!zr.returnBegin&&!zr.excludeBegin&&(vn=Ar)),Va(zr),zr.returnBegin?0:Ar.length}function Qr(fr){const Ar=fr[0],zr=bo.substr(fr.index),Fr=Ha(sr,fr,zr);if(!Fr)return jn;const os=sr;os.skip?vn+=Ar:(os.returnEnd||os.excludeEnd||(vn+=Ar),$a(),os.excludeEnd&&(vn=Ar));do sr.className&&Bt.closeNode(),!sr.skip&&!sr.subLanguage&&(Io+=sr.relevance),sr=sr.parent;while(sr!==Fr.parent);return Fr.starts&&(Fr.endSameAsBegin&&(Fr.starts.endRe=Fr.endRe),Va(Fr.starts)),os.returnEnd?0:Ar.length}function Qi(){const fr=[];for(let Ar=sr;Ar!==ns;Ar=Ar.parent)Ar.className&&fr.unshift(Ar.className);fr.forEach(Ar=>Bt.openNode(Ar))}let rs={};function Li(fr,Ar){const zr=Ar&&Ar[0];if(vn+=fr,zr==null)return $a(),0;if(rs.type==="begin"&&Ar.type==="end"&&rs.index===Ar.index&&zr===""){if(vn+=bo.slice(Ar.index,Ar.index+1),!In){const Fr=new Error("0 width match regex");throw Fr.languageName=ko,Fr.badRule=rs.rule,Fr}return 1}if(rs=Ar,Ar.type==="begin")return gi(Ar);if(Ar.type==="illegal"&&!aa){const Fr=new Error('Illegal lexeme "'+zr+'" for mode "'+(sr.className||"<unnamed>")+'"');throw Fr.mode=sr,Fr}else if(Ar.type==="end"){const Fr=Qr(Ar);if(Fr!==jn)return Fr}if(Ar.type==="illegal"&&zr==="")return 1;if(_a>1e5&&_a>Ar.index*3)throw new Error("potential infinite loop, way more iterations than matches");return vn+=zr,zr.length}const ns=ia(ko);if(!ns)throw Yt(So.replace("{}",ko)),new Error('Unknown language: "'+ko+'"');const Es=dn(ns,{plugins:uo});let ys="",sr=ma||Es;const mi={},Bt=new Ln.__emitter(Ln);Qi();let vn="",Io=0,No=0,_a=0,Ur=!1;try{for(sr.matcher.considerAll();;){_a++,Ur?Ur=!1:sr.matcher.considerAll(),sr.matcher.lastIndex=No;const fr=sr.matcher.exec(bo);if(!fr)break;const Ar=bo.substring(No,fr.index),zr=Li(Ar,fr);No=fr.index+zr}return Li(bo.substr(No)),Bt.closeAllNodes(),Bt.finalize(),ys=Bt.toHTML(),{relevance:Math.floor(Io),value:ys,language:ko,illegal:!1,emitter:Bt,top:sr}}catch(fr){if(fr.message&&fr.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:fr.message,context:bo.slice(No-100,No+100),mode:fr.mode},sofar:ys,relevance:0,value:qt(bo),emitter:Bt};if(In)return{illegal:!1,relevance:0,value:qt(bo),emitter:Bt,language:ko,top:sr,errorRaised:fr};throw fr}}function qn(ko){const bo={relevance:0,emitter:new Ln.__emitter(Ln),value:qt(ko),illegal:!1,top:Qt};return bo.emitter.addText(ko),bo}function Hn(ko,bo){bo=bo||Ln.languages||Object.keys(Wt);const aa=qn(ko),ma=bo.filter(ia).filter(fa).map(Va=>En(Va,ko,!1));ma.unshift(aa);const dr=ma.sort((Va,Ha)=>{if(Va.relevance!==Ha.relevance)return Ha.relevance-Va.relevance;if(Va.language&&Ha.language){if(ia(Va.language).supersetOf===Ha.language)return 1;if(ia(Ha.language).supersetOf===Va.language)return-1}return 0}),[ni,Ir]=dr,$a=ni;return $a.second_best=Ir,$a}function Yn(ko){return Ln.tabReplace||Ln.useBR?ko.replace(Dn,bo=>bo==="\n"?Ln.useBR?"<br>":bo:Ln.tabReplace?bo.replace(/\t/g,Ln.tabReplace):bo):ko}function oo(ko,bo,aa){const ma=bo?wn[bo]:aa;ko.classList.add("hljs"),ma&&ko.classList.add(ma)}const To={"before:highlightElement":ko=>{let{el:bo}=ko;Ln.useBR&&(bo.innerHTML=bo.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":ko=>{let{result:bo}=ko;Ln.useBR&&(bo.value=bo.value.replace(/\n/g,"<br>"))}},po=/^(<[^>]+>|\t)+/gm,Oo={"after:highlightElement":ko=>{let{result:bo}=ko;Ln.tabReplace&&(bo.value=bo.value.replace(po,aa=>aa.replace(/\t/g,Ln.tabReplace)))}};function Qo(ko){let bo=null;const aa=Rt(ko);if(Mn(aa))return;Sa("before:highlightElement",{el:ko,language:aa}),bo=ko;const ma=bo.textContent,dr=aa?Qe(ma,{language:aa,ignoreIllegals:!0}):Hn(ma);Sa("after:highlightElement",{el:ko,result:dr,text:ma}),ko.innerHTML=dr.value,oo(ko,aa,dr.language),ko.result={language:dr.language,re:dr.relevance,relavance:dr.relevance},dr.second_best&&(ko.second_best={language:dr.second_best.language,re:dr.second_best.relevance,relavance:dr.second_best.relevance})}function ea(ko){ko.useBR&&(Bn("10.3.0","'useBR' will be removed entirely in v11.0"),Bn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Ln=Zt(Ln,ko)}const _n=()=>{if(_n.called)return;_n.called=!0,Bn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(Qo)};function Un(){Bn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),cn=!0}let cn=!1;function nn(){if(document.readyState==="loading"){cn=!0;return}document.querySelectorAll("pre code").forEach(Qo)}function Zn(){cn&&nn()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Zn,!1);function ho(ko,bo){let aa=null;try{aa=bo(bt)}catch(ma){if(Yt("Language definition for '{}' could not be registered.".replace("{}",ko)),In)Yt(ma);else throw ma;aa=Qt}aa.name||(aa.name=ko),Wt[ko]=aa,aa.rawDefinition=bo.bind(null,bt),aa.aliases&&xa(aa.aliases,{languageName:ko})}function Xn(ko){delete Wt[ko];for(const bo of Object.keys(wn))wn[bo]===ko&&delete wn[bo]}function Mo(){return Object.keys(Wt)}function Zo(ko){Bn("10.4.0","requireLanguage will be removed entirely in v11."),Bn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const bo=ia(ko);if(bo)return bo;throw new Error("The '{}' language is required, but not loaded.".replace("{}",ko))}function ia(ko){return ko=(ko||"").toLowerCase(),Wt[ko]||Wt[wn[ko]]}function xa(ko,bo){let{languageName:aa}=bo;typeof ko=="string"&&(ko=[ko]),ko.forEach(ma=>{wn[ma.toLowerCase()]=aa})}function fa(ko){const bo=ia(ko);return bo&&!bo.disableAutodetect}function zo(ko){ko["before:highlightBlock"]&&!ko["before:highlightElement"]&&(ko["before:highlightElement"]=bo=>{ko["before:highlightBlock"](Object.assign({block:bo.el},bo))}),ko["after:highlightBlock"]&&!ko["after:highlightElement"]&&(ko["after:highlightElement"]=bo=>{ko["after:highlightBlock"](Object.assign({block:bo.el},bo))})}function Ra(ko){zo(ko),uo.push(ko)}function Sa(ko,bo){const aa=ko;uo.forEach(function(ma){ma[aa]&&ma[aa](bo)})}function ln(ko){return Bn("10.2.0","fixMarkup will be removed entirely in v11.0"),Bn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),Yn(ko)}function ta(ko){return Bn("10.7.0","highlightBlock will be removed entirely in v12.0"),Bn("10.7.0","Please use highlightElement now."),Qo(ko)}Object.assign(bt,{highlight:Qe,highlightAuto:Hn,highlightAll:nn,fixMarkup:ln,highlightElement:Qo,highlightBlock:ta,configure:ea,initHighlighting:_n,initHighlightingOnLoad:Un,registerLanguage:ho,unregisterLanguage:Xn,listLanguages:Mo,getLanguage:ia,registerAliases:xa,requireLanguage:Zo,autoDetection:fa,inherit:Zt,addPlugin:Ra,vuePlugin:on(bt).VuePlugin}),bt.debugMode=function(){In=!1},bt.safeMode=function(){In=!0},bt.versionString=Nn;for(const ko in He)typeof He[ko]=="object"&&i(He[ko]);return Object.assign(bt,He),bt.addPlugin(To),bt.addPlugin(no),bt.addPlugin(Oo),bt}({});eo.exports=Tn},55614:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_84)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_84)",fillOpacity:"0.5"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_84)",fillOpacity:"0.8"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_84)",strokeWidth:"0.5"}),a.createElement("path",{d:"M15.49 4.21H16.44L16.73 5.37H15.78L15.49 4.21ZM10.39 5.77L8.35 5.08V4.08L10.39 4.77V5.77ZM15.27 6.55C15.42 8.47 15.72 10.24 15.98 11.33C16.12 11.89 16.4 11.97 17.18 11.59L17.02 12.75C15.86 13.16 15.2 13.02 14.94 12.05C14.58 10.71 14.24 8.6 14.09 6.55H10.91L10.81 5.52H14.04L13.96 4H15.11L15.2 5.52H17.07V6.55H15.27ZM13.01 11.11L14.14 10.93V11.95L10.82 12.51L10.64 11.66L8.71 12.88L8.51 11.65L8.74 11.51C8.83 10.92 8.85 10.27 8.85 9.72V7.67C8.85 7.58 8.79 7.51 8.7 7.51H8.06L7.96 6.41H9.31C9.77 6.41 10.02 6.66 10.02 7.12V9.73C10.02 10.12 9.98 10.47 9.92 10.8L10.78 10.27V11.46L11.85 11.29V8.72H10.95L10.85 7.7H13.91V8.72H13.01V11.11ZM25.02 10.11H22.93V12.89H21.73V10.11H19.55C19.45 11.28 19.25 12.17 18.89 13.01H17.62C18.24 11.42 18.42 10.14 18.42 7.78V5.2C18.42 4.66 18.68 4.4 19.22 4.4H25.43C25.97 4.4 26.23 4.66 26.23 5.2V11.82C26.23 12.46 25.76 12.95 25.05 12.99C24.46 13.02 24.02 12.98 23.54 12.86L23.27 11.83C24.14 11.98 24.1 11.99 24.52 11.96C24.85 11.94 25.02 11.77 25.02 11.45V10.11ZM25.02 9.09V7.77H22.93V9.09H25.02ZM25.02 6.75V5.59C25.02 5.49 24.97 5.44 24.87 5.44H22.93V6.75H25.02ZM21.73 9.09V7.77H19.63V7.78C19.63 8.25 19.62 8.69 19.61 9.09H21.73ZM21.73 6.75V5.44H19.78C19.68 5.44 19.63 5.49 19.63 5.59V6.75H21.73Z",fill:"#7E2203"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_84",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE6DD"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),a.createElement("linearGradient",{id:"paint1_linear_291_84",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#D55C81"}),a.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_84",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_84",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE7DE"}),a.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},55804:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>q});var a=i(95549),k=i(38502),M=i(53940),P=i(56202),C=i(72214);class q extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"setElementRef",J=>this.$elem=J),(0,a.A)(this,"handleWheel",J=>{const{x:O,y:l,scale:D,isDisabled:m,onOffsetChange:E}=this.props;if(m)return;J.preventDefault();const f=Math.max(-1,Math.min(J.deltaY,1));if(J.ctrlKey||J.metaKey){const{top:V,left:We,right:re,bottom:ve}=this.$elem.getBoundingClientRect(),we=(We+re)/2,Ae=(V+ve)/2,Oe=D<=100?D-f*5:D-D*f*.05,Be=J.pageX-we,tt=J.pageY-Ae;this.handleZoom(Oe,Be,tt)}else{var h,S;if((h=(S=this.props).preventWheelEvent)!=null&&h.call(S,J))return;if((0,P.uF)()&&J.shiftKey){E(O-J.deltaY,l-J.deltaX);return}E(O-J.deltaX,l-J.deltaY)}}),(0,a.A)(this,"renderChild",J=>{const{x:O,y:l,scale:D,isDisabled:m}=this.props;return typeof J=="function"?J(O,l,D,m):J})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel)}handleZoom(J,O,l){const{x:D,y:m,scale:E,onScaleAndOffsetChange:f}=this.props;J=Math.min(Math.max(J,M.sI),M.sH);const h=J/E;if(h===1)return;const S=O+h*(D-O),V=l+h*(m-l);f(S,V,J)}render(){const{x:J,y:O,scale:l,children:D,isDisabled:m,onOffsetChange:E,onScaleAndOffsetChange:f,...h}=this.props;return(0,C.jsx)("div",{...h,ref:this.setElementRef,children:D.length>1?D.map(S=>this.renderChild(S)):this.renderChild(D)})}}},56249:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8 9.27368L10.8286 6.44507C11.089 6.18481 11.511 6.18481 11.7714 6.44507C12.0316 6.70532 12.0316 7.12768 11.7714 7.38794L8.70715 10.4519C8.31653 10.8425 7.68335 10.8425 7.29285 10.4519L4.22864 7.38794C3.96838 7.12768 3.96838 6.70532 4.22864 6.44507C4.48901 6.18481 4.91101 6.18481 5.17126 6.44507L8 9.27368Z",fill:"#555557"}))})},56568:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.7 6.75384H3.37052C2.98462 6.75384 2.74419 6.33523 2.93863 6.00191L5.56811 1.49422C5.76105 1.16347 6.23895 1.16347 6.43189 1.49422L9.06137 6.00191C9.25581 6.33523 9.01538 6.75384 8.62948 6.75384H7.3L6.59806 10.2636C6.54104 10.5486 6.29073 10.7538 6 10.7538C5.70927 10.7538 5.45896 10.5486 5.40194 10.2636L4.7 6.75384Z",fill:"#CE7710"}))})},57808:(eo,ot,i)=>{"use strict";i.d(ot,{F:()=>k});var a=i(72214);const k=()=>(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M9.92676 6.74707C10.2953 5.75101 11.7047 5.75101 12.0732 6.74707L13.2891 10.0342C13.4049 10.3473 13.6527 10.5941 13.9658 10.71L17.2529 11.9268C18.249 12.2953 18.249 13.7047 17.2529 14.0732L13.9658 15.2891C13.6527 15.4049 13.405 15.6518 13.2891 15.9648L12.0732 19.2529C11.7047 20.249 10.2953 20.249 9.92676 19.2529L8.71094 15.9648C8.59502 15.6518 8.34726 15.4049 8.03418 15.2891L4.74707 14.0732C3.75101 13.7047 3.75101 12.2953 4.74707 11.9268L8.03418 10.71C8.34734 10.5941 8.59506 10.3473 8.71094 10.0342L9.92676 6.74707ZM17.04 4.32031C17.198 3.89343 17.802 3.89343 17.96 4.32031L18.4814 5.72852C18.5311 5.8626 18.6365 5.96884 18.7705 6.01855L20.1797 6.54004C20.6066 6.698 20.6066 7.302 20.1797 7.45996L18.7705 7.98145C18.6366 8.03115 18.5311 8.13659 18.4814 8.27051L17.96 9.67969C17.802 10.1066 17.198 10.1066 17.04 9.67969L16.5186 8.27051C16.4689 8.13659 16.3634 8.03114 16.2295 7.98145L14.8203 7.45996C14.3934 7.302 14.3934 6.698 14.8203 6.54004L16.2295 6.01855C16.3635 5.96884 16.4689 5.8626 16.5186 5.72852L17.04 4.32031Z",fill:"url(#paint0_linear_7040_2992)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7040_2992",x1:"9.23804",y1:"2.49626",x2:"11.6298",y2:"19.1453",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#DAFBFF"}),(0,a.jsx)("stop",{offset:"0.551111",stopColor:"#52A5FF"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#7C89FF"})]})})]})},57999:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>P,d:()=>M});var a=i(58317),k=i.n(a);const M="ai-chat-event-notice",P=new a.EventEmitter},58053:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>C});var a=i(86102),k=i.n(a);const M=()=>{},C=k().isEnabled?k():{isFullscreen:!1,on:M,off:M,request:M,exit:M}},58664:(eo,ot,i)=>{"use strict";i.d(ot,{P:()=>C});var a=i(20089),k=i(4410);const M=[{keyCode:78,name:a.x.WSticky,shortcut:"N",default:{width:280,height:120}},{keyCode:72,name:a.x.WLR,shortcut:"H",default:{width:45,height:45}},{keyCode:76,name:a.x.WLine,shortcut:"L"},{keyCode:79,name:a.x.WOval,shortcut:"O",default:{width:100,height:100}},{keyCode:84,name:a.x.WRichText,shortcut:"T"},{keyCode:80,name:a.x.WVector,shortcut:"P"},{keyCode:80,shiftKey:!0,name:a.x.WVector,shortcut:"Shift + P",attrs:{toolType:k.pv.PENCIL}},{keyCode:82,name:a.x.WRect,shortcut:"R",default:{width:200,height:100}},{keyCode:87,name:a.x.WTear,shortcut:"W",default:{width:20,height:20}}],P={keyCode:65,name:a.x.Canvas,shortcut:"A",default:{width:400,height:800}},C=q=>q?[...M,P]:M},58865:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>eX});var a=i(18381),k=i(12211),M=i(62532),P=i(96986),C=i(77709),q=i(67588),Y=i(60651),J=i(24496),O=i(95549),l=i(38502),D=i(53732),m=i.n(D),E=i(67787),f=i(16738),h=i(46147),S=i(7198),V=i(29372),We=i(88856),re=i(70933),ve=i(14084),we=i(10472),Ae=i(70422),Oe=i(4235);const Be=(0,k.Mz)([re.Ur,Oe.p$],(e,t)=>t.includes(e==null?void 0:e.cid));var tt=i(79770),Xe=i(14166),ne=i(20089);const lt=(e,t,n,r)=>(e.hotAttr.type===ne.x.WBasket?[]:r.getRenderableSubHotItems(e)).filter(c=>{try{switch(c.hotAttr.type){case"wLine":case"wArrow":return(0,tt.Xs)(t,n,c.key);case"wElbow":return(0,tt.kA)(t,n,c.key);case"wTear":return(0,tt.Vj)(t,n,c.key);default:return(0,Xe.N0)(sdkStore.getHotAABB(c.key),t)}}catch(d){return console.error("[fatal]: collectChildrenAtWorldPos",d,c),!1}}).sort((c,d)=>d.hotAttr.zIndex-c.hotAttr.zIndex),rt=(e,t,n,r)=>[e].reduce((s,c)=>[...s,{...c,sub:[]},...lt(c,t,n,r).flatMap(d=>rt(d,t,n,r))],[]);var Te=i(78915),Ge=i(25997);const ue=e=>e.ui.fixedLayout.contextmenu.show,Me=e=>e.ui.fixedLayout.contextmenu.position,Ze=e=>e.ui.fixedLayout.contextmenu.byCanvasLayers,fe=e=>e.ui.fixedLayout.contextmenu.byComponentList,it=e=>e.ui.fixedLayout.contextmenu.canPaste,et=e=>e.ui.fixedLayout.contextmenu.canPasteProperties,Ut=(0,k.Mz)([re.eo,Me,re.Pz,re.X_,Ge.UV],(e,t,n,r,s)=>{const{left:c,top:d}=t,{canvasTop:p,canvasLeft:g}=n,y={x:(c-g)/(r/100),y:(d-p)/(r/100)},w=s.getRootSnapshot();return!w||e!==w.key?[]:rt(w,y,r/100,s).slice(1)}),G=(0,k.Mz)([ue,Be],(e,t)=>e&&!t),Ht=(0,k.Mz)([G,Oe.p$,Y.jx,Ut],(e,t,n,r)=>n===Te.qi.OnlyView&&(t.length===0||r.length===0)?!1:e);var Tt=i(15400),Vt=i(65575),He=i(21066),rn=i(78661),Lt=i(86594),jt=i(15515),mt=i(74302),Jn=i(37780),o=i(72214);class so extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleCopy",n=>{n.preventDefault(),this.props.dispatch({type:"entry:copy:items:properties"})}),(0,O.A)(this,"pasteProperties",n=>{n.preventDefault();const{dispatch:r}=this.props;r({type:"entry:paste:items:properties"})}),(0,O.A)(this,"copyInteraction",()=>{const{dispatch:n,isCanvasLayerItemContext:r}=this.props;n(Jn.R7.command.interactionCopyCommand({isCanvasLayerItemContext:r}))}),(0,O.A)(this,"pasteInteraction",()=>{const{dispatch:n}=this.props;n(Jn.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,O.A)(this,"handleCopyAsPNG",()=>{const{currentProject:n,dispatch:r}=this.props,s=(0,jt.Yt)(mt.XY.SCALE,1,jt.qW.Number),c=[{format:"png",scale:String(s),affix:"suffix",isWithDeviceFrame:!1}];r({type:"copy:as:png",payload:{exportConfigList:c,actionType:"copy"}})}),(0,O.A)(this,"handleCopyAsHTML",()=>{this.props.dispatch({type:"copy:as:html"})}),this.state={canPasteInteraction:!1}}componentDidMount(){(0,Lt.YF)().then(t=>{this.setState({canPasteInteraction:t&&this.props.canPasteInteraction})})}render(){const{canCopyAsPNG:t,canCopyAsHTML:n,canPasteProperties:r,canCopyInteraction:s,showCopyOrPasteProperties:c,canCopyProerties:d}=this.props,{canPasteInteraction:p}=this.state;return(0,o.jsxs)(He.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.copy_as_png,onClick:this.handleCopyAsPNG,disabled:!t}),n&&(0,o.jsx)(He.Dr,{text:"\u590D\u5236\u4E3A HTML",onClick:this.handleCopyAsHTML}),(0,o.jsx)(Tt.cG,{}),c&&(0,o.jsxs)("div",{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.handleCopy,hotKeyText:rn.V.copy,disabled:!d}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:rn.V.pasteProperties,disabled:!r}),(0,o.jsx)(Tt.cG,{})]}),(0,o.jsx)(He.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction,disabled:!s}),(0,o.jsx)(He.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction,disabled:!p})]})}}var Et=i(17307),Jt=i(88944);let Ot=function(e){return e[e.General=0]="General",e[e.Common=1]="Common",e[e.Text=2]="Text",e[e.Appearance=3]="Appearance",e[e.PolygonInfo=4]="PolygonInfo",e[e.ImageDrop=5]="ImageDrop",e[e.Carousel=6]="Carousel",e[e.Canvas=7]="Canvas",e[e.LayoutGrid=8]="LayoutGrid",e[e.StickyArea=9]="StickyArea",e[e.WebPagePanel=10]="WebPagePanel",e[e.VideoPanel=11]="VideoPanel",e[e.AudioPanel=12]="AudioPanel",e[e.QRCodePanel=13]="QRCodePanel",e[e.TablePanel=14]="TablePanel",e[e.TableCellPanel=15]="TableCellPanel",e[e.DropMenuPanel=16]="DropMenuPanel",e[e.OptionDropMenuPanel=17]="OptionDropMenuPanel",e[e.OptionNavigationMenuPanel=18]="OptionNavigationMenuPanel",e[e.OptionNavigationMenuHPanel=19]="OptionNavigationMenuHPanel",e[e.OptionNavigationMenuVPanel=20]="OptionNavigationMenuVPanel",e[e.OptionCollapsePanel=21]="OptionCollapsePanel",e[e.OptionSegmentedControlPanel=22]="OptionSegmentedControlPanel",e[e.OptionTabsPanel=23]="OptionTabsPanel",e[e.NavigationMenuTypePanel=24]="NavigationMenuTypePanel",e[e.NavigationMenuOtherOptionsPanel=25]="NavigationMenuOtherOptionsPanel",e[e.NavigationMenuSettingsPanel=26]="NavigationMenuSettingsPanel",e[e.CollapseSettingsPanel=27]="CollapseSettingsPanel",e[e.CollapseSwitchOptionsPanel=28]="CollapseSwitchOptionsPanel",e[e.SegmentedControlPanel=29]="SegmentedControlPanel",e[e.TabsPanel=30]="TabsPanel",e[e.PaginationMobilePanel=31]="PaginationMobilePanel",e[e.PaginationWebPanel=32]="PaginationWebPanel",e[e.DigitalStepperPanel=33]="DigitalStepperPanel",e[e.SliderPanel=34]="SliderPanel",e[e.SwitchOptionsPanel=35]="SwitchOptionsPanel",e[e.SwitchPanel=36]="SwitchPanel",e[e.MobileTabBarsSwitchOptionsPanel=37]="MobileTabBarsSwitchOptionsPanel",e[e.MobileTabBarsPanel=38]="MobileTabBarsPanel",e[e.SelectionControlTypeSettingsPanel=39]="SelectionControlTypeSettingsPanel",e[e.SelectionControlAttrSettingsPanel=40]="SelectionControlAttrSettingsPanel",e[e.SelectionControlColorSettingsPanel=41]="SelectionControlColorSettingsPanel",e[e.ChartSettingsPanel=42]="ChartSettingsPanel",e[e.TemplatePanel=43]="TemplatePanel",e[e.Animation=44]="Animation",e[e.CanvasColorPanel=45]="CanvasColorPanel",e[e.InputTypePanel=46]="InputTypePanel",e[e.InputPlaceholderPanel=47]="InputPlaceholderPanel",e[e.IconFlipPanel=48]="IconFlipPanel",e[e.DropMenuOptionColor=49]="DropMenuOptionColor",e[e.MaxPageNumber=50]="MaxPageNumber",e[e.TreeSwitchPanel=51]="TreeSwitchPanel",e}({});const dn="default",Ce="multiple";var Pt=i(59025),Nn=i(64320);const At=(e,t,n)=>{switch(e){case ne.x.Canvas:{if(["asOverlay","shadow","border","borderRadius","borderVisibility"].includes(t)||t==="fill"&&n.fill!=="solid")return!1;break}case ne.x.CanvasAsOverlay:{if(["asOverlay","stickyHeaderHeight","stickyFooterHeight","layoutGrid","orientation","device"].includes(t))return!1;break}default:return!0}return!0},on=e=>{let{value:t,attr:n,refVar:r,dispatch:s,supAttr:c,selections:d=[]}=e;const p=d.map(g=>{if(sdkStore.isTrashed(g))return null;const y=sdkStore.getHotItem(g),w=(0,Pt.o9)(y);if(!At(w,n,t)||!At(w,c,t))return null;const{refVars:_,refStyles:j}=y.hotAttr;let N=_,Z,Q=!1;if(c&&y.hotAttr[c]){var se;Q=(_==null||(se=_[c])==null?void 0:se[n])!==r,Q&&(N={..._,[c]:{..._==null?void 0:_[c],[n]:r}},Object.keys(N).forEach(ie=>{N[c][ie]||delete N[c][ie]})),Z={[c]:{...y.hotAttr[c],[n]:t}}}else Q=(_==null?void 0:_[n])!==r,Q&&(N={..._,[n]:r},N&&!N[n]&&delete N[n]),Z={[n]:t};return Nn.vZ.includes(n)&&(Z.refStyles={...j,appear:void 0}),Q&&(Z.refVars=N),{key:g,hotAttr:Z}}).filter(g=>!!g);s({type:"entry:widget:change",payload:{flatChgList:p}})},no=e=>{let{selectedTrees:t,settingPanelMap:n,otherProps:r}=e;const s={},c=[],d=t.map(g=>g.widget),p=g=>(n[getItemWidgetType(g)]||n[DefaultType])(t,{...r}).flat().filter(y=>typeof y=="number");d.forEach(g=>{p(g).forEach(w=>{s[w]=s[w]?s[w]+1:1})});for(const[g,y]of Object.entries(s))y===d.length&&c.push(Number(g));return c},mo={0:ne.Q.FIXED_TYPE.not_fixed,1:ne.Q.FIXED_TYPE.top,2:ne.Q.FIXED_TYPE.bottom,3:ne.Q.FIXED_TYPE.sticky};class mn extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleFixed",t=>{const{dispatch:n,selections:r}=this.props;t.preventDefault();const s=t.currentTarget.dataset.type,c=mo[s];if(c==="sticky"){var d;if(((d=sdkStore.getHotItem(r[0]))==null||(d=d.hotAttr)==null?void 0:d.stickyOffset)===null){var p;const g=sdkStore.locUpHotCanvasKey(r[0]),y=(r==null?void 0:r.length)>1?0:g&&((p=sdkStore.getHotItem(g))==null||(p=p.hotAttr)==null?void 0:p.stickyHeaderHeight)||0;on({value:y,attr:"stickyOffset",dispatch:n,selections:r})}}n({type:"entry:set:Fixed",payload:{value:c}}),Jt.Vi[c]&&(0,Jt.O3)({operation_from:this.props.from,operation_type:Jt.Vi[c]})})}render(){const{fixPosTo:t}=this.props,n=(0,o.jsx)(Et.C,{name:"toolbar/selected",className:"selected-icon"});return(0,o.jsxs)(He.Dr,{text:I18N.ContextMenu.fixed_widget,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.not_fixed,onClick:this.handleFixed,dataType:0,icon:t===ne.Q.FIXED_TYPE.not_fixed?n:null}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.fixed_top,onClick:this.handleFixed,dataType:1,icon:t===ne.Q.FIXED_TYPE.top?n:null}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.fixed_bottom,onClick:this.handleFixed,dataType:2,icon:t===ne.Q.FIXED_TYPE.bottom?n:null}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.sticky,onClick:this.handleFixed,dataType:3,icon:t===ne.Q.FIXED_TYPE.sticky?n:null})]})}}var ht=i(67052),Fn=i(46464);const Yt=E.Ay.div.withConfig({displayName:"styles__StyledLayerSelectMenu",componentId:"sc-1fdsglm-0"})([".layer-item{position:relative;height:24px;padding-left:24px;display:flex;align-items:center;cursor:pointer;a{padding-left:0;padding-right:0;}&.MenuItem.hasIcon > a{padding-left:4px;}.state-icon{position:absolute;left:4px;width:20px;height:100%;display:flex;justify-content:center;align-items:center;font-size:12px;color:#f2f4f5;&.widget-icon-selected{width:8px;margin-left:8px;}}span{max-width:132px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.svg-icon{height:16px;width:16px;margin-right:6px;}.widget-icon{font-size:20px;width:20px;height:20px;margin-right:4px;&.group-icon{path:first-child{fill:transparent;stroke:",";}path:last-child{fill:transparent;stroke:",";}}}.svg-icon-path-icon{width:20px;height:14px;margin-right:6px;fill:currentcolor;}.is-multi-color-icon{width:20px;height:14px;margin-right:6px;}&:hover{background:",";}&.MenuItem:not(.disabled).active{a{background:none;}}}.layer-tree-node{.children .layer-item{padding-left:40px;}}.layer-item{border-radius:4px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover);var Gt=i(61790);class Bn extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleSelect",t=>{t.preventDefault();const{type:n}=t.currentTarget.dataset;this.props.dispatch({type:"entry:select:items",payload:{cids:[n]}}),(0,Jt.m8)({operationType:Jt.VW.SelectLayers})}),(0,O.A)(this,"handleHover",t=>{t.stopPropagation();const{type:n}=t.currentTarget.dataset;this.props.dispatch(Te.GO.hoverItem(n))}),(0,O.A)(this,"handleLeave",()=>{this.props.dispatch(Te.GO.hoverItem(""))})}render(){const{newSelection:t,layerExpandedKeySet:n,noDivider:r=!1,layerTreeList:s}=this.props;return s.length===0?null:(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.select_layer,isAiry:!0,children:(0,o.jsx)(Yt,{children:s.map(c=>(0,o.jsx)(qt,{tree:c,newSelection:t,layerExpandedKeySet:n,onSelect:this.handleSelect,onHover:this.handleHover,onLeave:this.handleLeave},c.key))})}),!r&&(0,o.jsx)(Tt.cG,{})]})}}const qt=e=>{let{tree:t,newSelection:n,layerExpandedKeySet:r,onSelect:s,onHover:c,onLeave:d}=e;return(0,o.jsxs)("div",{className:"layer-tree-node",children:[(0,o.jsx)(Zt,{widget:t,isSelect:n.includes(t.key),layerExpandedKeySet:r,onClick:s,onMouseEnter:c,onMouseLeave:d}),(0,o.jsx)("div",{className:"children",children:t.sub.map(p=>(0,o.jsx)(qt,{tree:sdkStore.getHotItem(p),newSelection:n,layerExpandedKeySet:r,onSelect:s,onHover:c,onLeave:d},p))})]})},Zt=e=>{let{widget:t,isSelect:n,layerExpandedKeySet:r,onClick:s,onMouseEnter:c,onMouseLeave:d}=e;const{key:p,hotAttr:{basket:g,isLock:y}}=t,w=g==="bDanli",_=r.has(p),j=()=>(0,o.jsxs)(o.Fragment,{children:[y?(0,o.jsx)(Et.C,{className:"state-icon",name:"new_replace/lock"}):n?(0,o.jsx)(Et.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}):null,(0,o.jsx)(Fn.A,{className:"widget-icon",widget:t,isDynamic:w,isExpanded:_})]}),N=(0,Gt.KD)(t);return(0,o.jsx)(He.Dr,{dataIndex:p,dataType:p,className:"layer-item",icon:j(),text:N,onClick:s,onMouseEnter:c,onMouseLeave:d,isAiry:!0})},jn=(0,k.Mz)([Oe.p$,ht.wJ,Ut],(e,t,n)=>({newSelection:e,layerExpandedKeySet:t,layerTreeList:n})),ro=(0,a.Ng)(e=>jn(e))(Bn);var Tn=i(31569),bt=i(55052),Wt=i(87945),wn=i(57479);const uo=E.Ay.div.withConfig({displayName:"styles__StyledBatchAddRowOrColumn",componentId:"sc-734udh-0"})(["display:flex;justify-content:center;align-items:center;padding:0px 16px;height:28px;justify-content:flex-start;cursor:pointer;.texts-0{padding-right:10px;}.texts-1{padding-left:10px;}.batch-input{width:36px;height:18px;padding:0 6px;color:",";border-radius:4px;border:1px solid ",";background:",";font-size:12px;font-weight:400;line-height:16px;&:hover{border:1px solid #1684FC;}&.is-editing{color:",";}}&:hover{background:",";}border-radius:4px;background:",";color:",";"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),In=1,Dn=99,So=e=>{const t=e.replace(/[^\d.-]+/g,"");return e?Number(t)>Dn?Dn:+(t<In)?In:Number(t):0},Qt=e=>{e.stopPropagation()};function Ln(e){let{text:t,operateFunc:n,onCloseContextMenu:r}=e;const[s,c]=l.useState(!1),[d,p]=l.useState(!1),[g,y]=l.useState(1),w=l.useRef(null),_=(0,l.useCallback)(he=>{const{key:xe}=he;xe===wn._.Enter&&(he.preventDefault(),he.stopPropagation(),n&&n(g||1),setTimeout(()=>r()))},[g,r,n]),j=(0,l.useCallback)(he=>{Qt(he),n&&n(g||1)},[n,g]),N=(0,l.useCallback)(he=>{Qt(he);const xe=_e=>{p(!0),Qt(_e)},Se=_e=>{Qt(_e),document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",Se),setTimeout(()=>p(!1),250)};document.addEventListener("mousemove",xe),document.addEventListener("mouseup",Se)},[]),Z=(0,l.useCallback)(()=>{w.current&&w.current.select(),c(!0)},[c,w]),Q=(0,l.useCallback)(he=>{const{target:{value:xe}}=he;!s&&c(!0);const Se=So(xe);y(Se)},[s,c,y]),[se,ie]=t.split(" %input ");return(0,o.jsxs)(uo,{onMouseDown:j,onClick:d?Qt:null,children:[(0,o.jsx)("span",{className:"texts-0",children:se}),(0,o.jsx)("div",{onClick:Qt,onMouseDown:N,children:(0,o.jsx)("input",{className:m()("batch-input",s&&"is-editing"),id:"table-batch-input",type:"text",value:g||"",ref:w,onChange:Q,onFocus:Z,onKeyDown:_})}),(0,o.jsx)("span",{className:"texts-1",children:ie})]})}const Mn=(0,l.memo)(Ln);class Rt extends l.PureComponent{constructor(t){var n;super(t),n=this,(0,O.A)(this,"copy",r=>{const{dispatch:s}=this.props;s({type:"entry:table:copy:selection"})}),(0,O.A)(this,"copyProperties",r=>{const{dispatch:s}=this.props;s({type:"entry:table:copy:cell:properties"})}),(0,O.A)(this,"copyInteraction",r=>{const{dispatch:s}=this.props;s(Jn.R7.command.interactionCopyTableCellCommand({})),(0,Jt.O3)({operation_from:"\u753B\u5E03\u53F3\u952E",operation_type:Jt.VW.CopyIta})}),(0,O.A)(this,"pasteInteraction",r=>{const{dispatch:s}=this.props;s(Jn.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,O.A)(this,"cut",()=>{const{dispatch:r}=this.props;r({type:"entry:table:cut:selection"})}),(0,O.A)(this,"paste",r=>{const{dispatch:s}=this.props;s({type:"entry:table:paste:selection"})}),(0,O.A)(this,"insertTopRow",function(r){r===void 0&&(r=1);const{dispatch:s}=n.props;s({type:"entry:insert:top:row",payload:{rowNumber:r}})}),(0,O.A)(this,"insertBottomRow",function(r){r===void 0&&(r=1);const{dispatch:s}=n.props;s({type:"entry:insert:bottom:row",payload:{rowNumber:r}})}),(0,O.A)(this,"deleteManyRows",()=>{const{dispatch:r}=this.props;r({type:"entry:table:delete:row"})}),(0,O.A)(this,"deleteRow",()=>{const{dispatch:r}=this.props;r({type:"entry:table:delete:row"})}),(0,O.A)(this,"deleteManyColumns",()=>{const{dispatch:r}=this.props;r({type:"entry:table:delete:column"})}),(0,O.A)(this,"deleteColumn",()=>{const{dispatch:r}=this.props;r({type:"entry:table:delete:column"})}),(0,O.A)(this,"insertLeftColumn",function(r){r===void 0&&(r=1);const{dispatch:s}=n.props;s({type:"entry:table:insert:left:column",payload:{columnNumber:r}})}),(0,O.A)(this,"insertRightColumn",function(r){r===void 0&&(r=1);const{dispatch:s}=n.props;s({type:"entry:table:insert:right:column",payload:{columnNumber:r}})}),(0,O.A)(this,"mergeCell",()=>{const{dispatch:r}=this.props;r({type:"entry:table:merge:cell"})}),(0,O.A)(this,"removeMerge",()=>{const{dispatch:r}=this.props;r({type:"entry:table:remove:merge:cell"})}),(0,O.A)(this,"pasteProperties",()=>{const{dispatch:r}=this.props;r({type:"entry:table:paste:cell:properties"})}),this.state={canPasteProperties:!1}}async componentDidMount(){const t=await(0,Lt._d)({isShowPrompt:!1});this.setState({canPasteProperties:t})}render(){const{selectedTableCell:t,dispatch:n,user:r,org:s,onClose:c}=this.props,{canPasteProperties:d}=this.state,{selectionLeftTopName:p,selectionLeftTopInfo:g,selectionRightBottomName:y,selectionRightBottomInfo:w,isCanRemoveMerge:_}=t,j=p!==y&&!_,N=j&&g.y!==w.y,Z=j&&g.x!==w.x;return(0,o.jsxs)("div",{id:"tableMenu",children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:rn.V.cut}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:rn.V.past}),(0,o.jsxs)(He.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.copyProperties,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:rn.V.pasteProperties,disabled:!d}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction}),(0,o.jsx)(He.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction})]}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:this.insertTopRow,onCloseContextMenu:c}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:this.insertBottomRow,onCloseContextMenu:c}),N?(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_delete_mul_row,onClick:this.deleteManyRows}):(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_delete_row,onClick:this.deleteRow}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:this.insertLeftColumn,onCloseContextMenu:c}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:this.insertRightColumn,onCloseContextMenu:c}),Z?(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_delete_mul_columns,onClick:this.deleteManyColumns}):(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_delete_columns,onClick:this.deleteColumn}),j&&(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:this.mergeCell})]}),_&&(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:this.removeMerge})]}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Vt.fc,{from:Wt.G.RightClick,dispatch:n,user:r,org:s})]})}}var Qe=i(34697);class En extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleCopy",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:copy:selected:node-mind"})}),(0,O.A)(this,"handleCut",()=>this.props.dispatch({type:"entry:mind:cut:node"})),(0,O.A)(this,"handlePaste",()=>this.props.dispatch({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}})),(0,O.A)(this,"handlePasteProperties",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:paste:node:properties"})}),(0,O.A)(this,"handleDelete",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:del:selected:node-mind"})}),(0,O.A)(this,"handleInsertSubTheme",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:add:node-mind",payload:{type:Qe.eB.CHILD_LEVEL}})}),(0,O.A)(this,"handleInsertPeerTheme",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:add:node-mind",payload:{type:Qe.eB.SAME_LEVEL}})})}render(){const{canPasteProperties:t,selectedMindNodeKeys:n}=this.props,r=n.length===1,s=n.map(sdkStore.getHotItem);return(0,o.jsxs)("div",{id:"mind-node-menu",children:[(0,o.jsx)(He.Dr,{text:r?I18N.ContextMenu.copy+"/"+I18N.ContextMenu.copy_properties:""+I18N.ContextMenu.copy,onClick:this.handleCopy,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.cut,onClick:this.handleCut,hotKeyText:rn.V.cut,disabled:s[0].hotAttr.isRoot}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.handlePaste,hotKeyText:rn.V.past}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.handlePasteProperties,hotKeyText:rn.V.pasteProperties,disabled:!t}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.delete,onClick:this.handleDelete,disabled:s[0].hotAttr.isRoot}),r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.insertSubTheme,onClick:this.handleInsertSubTheme,hotKeyText:rn.V.insertSubTheme}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.insertPeerTheme,onClick:this.handleInsertPeerTheme,hotKeyText:rn.V.insertPeerTheme,disabled:s[0].hotAttr.isRoot})]})]})}}var qn=i(6357),Hn=i(12410),Yn=i(43838),oo=i(43641);class To extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"copy",n=>{const{dispatch:r}=this.props;r({type:"entry:flow:copy:cell:self",payload:{isOnlyPasteText:!1}}),(0,oo.$)(Lt.o)}),(0,O.A)(this,"cut",()=>{const{dispatch:n}=this.props;n({type:"entry:flow:cut:cell:self"})}),(0,O.A)(this,"paste",async n=>{const{dispatch:r}=this.props,{type:s,content:c}=await(0,Yn.v)();if(await(0,Yn.$H)({hasNotice:!1}))r({type:Hn.X.entryKey["entry:flow:swimlane:paste"],payload:{pasteType:s,content:c}});else{const d={pasteType:s,content:c};s==="html"&&await(0,Yn.EU)("swimlane")&&(d.pasteType="cell"),r({type:Hn.X.entryKey["entry:flow:swimlane:paste"],payload:d})}}),(0,O.A)(this,"insertTopRow",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"top"}})}),(0,O.A)(this,"insertBottomRow",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"bottom"}})}),(0,O.A)(this,"deleteRow",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"bottom",opDirection:"top"}})}),(0,O.A)(this,"deleteColumn",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"right",opDirection:"left"}})}),(0,O.A)(this,"insertRightColumn",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"right"}})}),(0,O.A)(this,"insertLeftColumn",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"left"}})}),(0,O.A)(this,"pasteProperties",()=>{const{dispatch:n}=this.props;n({type:Hn.X.entryKey["entry:flow:paste:cell:properties"]})}),this.state={canPasteProperties:!1}}async componentDidMount(){const t=await(0,Lt._d)({isShowPrompt:!1});this.setState({canPasteProperties:!!t})}render(){const{canPasteProperties:t}=this.state,{swimlaneSelectedCellsInfo:{tl:{x:n,y:r}}}=this.props,s=this.props.selectedItems[0].swimlaneType,c=n===0&&r===0;return(0,o.jsxs)("div",{id:"swimlaneMenu",children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:rn.V.cut}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:rn.V.past}),(0,o.jsxs)(He.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:""+I18N.ContextMenu.copy_properties,onClick:this.copy,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:rn.V.pasteProperties,disabled:!t})]}),(0,o.jsx)(Tt.cG,{}),s==="leftRight"?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowInsertLeftColumn,onClick:this.insertLeftColumn}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowInsertRightColumn,onClick:this.insertRightColumn}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteColumn,disabled:c})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowInsertTopRow,onClick:this.insertTopRow}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowInsertBottomRow,onClick:this.insertBottomRow}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteRow,disabled:c})]})]})}}var po=i(83535);const Oo=e=>{let{user:t,org:n,onClose:r}=e;const s=(0,a.wA)(),c=(0,a.d4)(Ae.nH),d=(0,a.d4)(Ae.zX),p=(0,l.useCallback)(()=>{const{isHorizontal:Ne}=c;s(Ne?{type:"entry:table:delete:column"}:{type:"entry:table:delete:row"})},[c,s]),g=(0,l.useCallback)(()=>{s({type:"entry:table:merge:cell"})},[s]),y=(0,l.useCallback)(function(Ne){Ne===void 0&&(Ne=1),s({type:"entry:insert:top:row",payload:{rowNumber:Ne}})},[s]),w=(0,l.useCallback)(function(Ne){Ne===void 0&&(Ne=1),s({type:"entry:insert:bottom:row",payload:{rowNumber:Ne}})},[s]),_=(0,l.useCallback)(function(Ne){Ne===void 0&&(Ne=1),s({type:"entry:table:insert:left:column",payload:{columnNumber:Ne}})},[s]),j=(0,l.useCallback)(function(Ne){Ne===void 0&&(Ne=1),s({type:"entry:table:insert:right:column",payload:{columnNumber:Ne}})},[s]),N=(0,l.useCallback)(()=>{s({type:"entry:table:remove:merge:cell"})},[s]);if(!c||!d)return null;const{selectionLeftTopName:Z,selectionLeftTopInfo:Q,selectionRightBottomName:se,selectionRightBottomInfo:ie,isCanRemoveMerge:he}=d,xe=Z!==se&&!he,Se=xe&&Q.y!==ie.y,_e=xe&&Q.x!==ie.x,{isHorizontal:De}=c,Je=De?_e?I18N.ContextMenu.table_delete_mul_columns:I18N.ContextMenu.table_delete_columns:Se?I18N.ContextMenu.table_delete_mul_row:I18N.ContextMenu.table_delete_row;return(0,o.jsxs)("div",{children:[De?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:_,onCloseContextMenu:r}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:j,onCloseContextMenu:r})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:y,onCloseContextMenu:r}),(0,o.jsx)(Mn,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:w,onCloseContextMenu:r})]}),(0,o.jsx)(He.Dr,{text:Je,onClick:p}),(0,o.jsx)(Tt.cG,{}),xe&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:g}),(0,o.jsx)(Tt.cG,{})]}),he&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:N}),(0,o.jsx)(Tt.cG,{})]}),(0,o.jsx)(Vt.fc,{from:Wt.G.RightClick,user:t,org:n,dispatch:s})]})},Qo=(0,l.memo)(Oo);var ea=i(86433),_n=i(69815),Un=i(55584),cn=i(44916);const nn=l.memo(e=>{let{editingItem:t,canPaste:n}=e;const r=async(j,N)=>{await(0,Yn.$H)({hasNotice:!1})?(await(0,Lt.NO)({html:j}),(0,Yn.Rh)({value:N})):await(0,Yn.qG)({html:j,selectionText:N})},s=async()=>{let j;const N=await(0,Lt.LD)({isShowPrompt:!0});return await(0,Yn.$H)({hasNotice:!1})?j=N!=null&&N.html?N.html:void 0:j=(N==null?void 0:N.html)||!(N!=null&&N.data)&&await(0,Yn.Xy)()||await(0,Yn.oV)({itemType:"text/plain"}),j},c=j=>{const{_getEditorState:N}=(0,_n.DT)(),Z=N(),Q=(0,ea.u0)(Z),se=t.type==="wRichText"?t.w:void 0,ie=t.type==="wRichText"?t.h:void 0,he=(0,Un.vd)({editorState:Z,richTextV1:t.richTextV1,w:se,h:ie});r(he,Q)},d=j=>{const N=t.type==="wRichText"?t.w:void 0,Z=t.type==="wRichText"?t.h:void 0,{_getEditorState:Q}=(0,_n.DT)(),se=Q(),ie=(0,ea.u0)(se),he=(0,Un.ag)({richTextV1:t.richTextV1,w:N,h:Z});r(he,ie)},p=async j=>{const N=await s(),{_getEditorState:Z,_setEditorState:Q}=(0,_n.DT)();if(Z&&Q){const se=Z(),ie=(0,Un.DL)({html:N,editorState:se,inlineProcessType:"total",componentType:t.type==="wRichText"?cn.a.TEXT:cn.a.BASIC});Q(ie)}},g=async j=>{const N=await s(),{_getEditorState:Z,_setEditorState:Q}=(0,_n.DT)();if(Z&&Q){const se=Z(),ie=(0,Un.DL)({html:N,editorState:se,inlineProcessType:"merge",componentType:t.type==="wRichText"?cn.a.TEXT:cn.a.BASIC});Q(ie)}},y=async j=>{const N=await s(),{_getEditorState:Z,_setEditorState:Q}=(0,_n.DT)();if(Z&&Q){const se=Z(),ie=(0,Un.DL)({html:N,editorState:se,inlineProcessType:"plain",componentType:t.type==="wRichText"?cn.a.TEXT:cn.a.BASIC});Q(ie)}},{_getEditorState:w}=(0,_n.DT)();let _=!1;return w&&(_=w().getSelection().isCollapsed()),(0,o.jsxs)("div",{id:"textediting-menu",children:[(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.copy,onClick:c,disabled:_,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.cut,onClick:d,disabled:_,hotKeyText:rn.V.cut}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste,onClick:g,hotKeyText:rn.V.past,disabled:!n}),(0,o.jsx)(He.Dr,{text:"\u4FDD\u7559\u539F\u683C\u5F0F\u7C98\u8D34",onClick:p,disabled:!n}),(0,o.jsx)(He.Dr,{text:"\u4EE5\u7EAF\u6587\u672C\u683C\u5F0F\u7C98\u8D34",onClick:y,disabled:!n})]})});var Zn=i(8580),ho=i(73658);class Xn extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleCreatePage",()=>{const{dispatch:t}=this.props;t(Te.GO.updateAIHTMLAgentType("prototyping")),t(Te.GO.enableAIHTML()),t(Te.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides()}),(0,O.A)(this,"handleCreateComponent",()=>{const{dispatch:t}=this.props;t({type:"entry:aiComponent:open:mode"})})}render(){return(0,o.jsxs)(He.Dr,{text:I18N.ContextMenu.ai,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ChatGPT.ai_prototype_component_title,onClick:this.handleCreatePage}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.ai_create_widget,onClick:this.handleCreateComponent})]})}}class Mo extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleClose",()=>{const{isShowTableMenu:t,isShowMindNodeMenu:n,isShowTableDragMenu:r,dispatch:s}=this.props;s({type:"close:contextmenu"}),t&&s({type:"table:update:info",payload:{isShowTableMenu:!1}}),n&&s({type:"mind:update:state",payload:{isShowMindNodeMenu:!1}}),r&&s({type:"table:update:info",payload:{isShowTableDragMenu:!1,rightClickDragInfo:null}})}),(0,O.A)(this,"getIsShowAddToMyWidgetOrAsset",(t,n)=>{const{canEditLibrary:r,isMeDesign:s,isEditingOrgCombo:c,isEditingUserCombo:d}=this.props;return(t||n)&&!(d&&!n&&!(r&&!s&&!c))})}render(){var t;const{isMeDesign:n,isProject:r,position:s,isComponentItemContext:c,isCanvasLayerItemContext:d,dispatch:p,isShowTableMenu:g,isShowSwimlaneMenu:y,swimlaneSelectedCellsInfo:w,selectedTableCell:_,currentSharings:j,currentProject:N,editingPanelCid:Z,isSelectItemsInMuban:Q,isEditingBasket:se,isEditingMuban:ie,isEditingUserCombo:he,isEditingOrgCombo:xe,editingPanelRefPage:Se,isShowMindNodeMenu:_e,selectedMindNodeKeys:De,isFromAbar:Je,viewType:Ne,currentUser:pt,currentOrg:_t,canEditLibrary:gt,isShowTableDragMenu:Ct,newSelection:zt,editingItem:Dt,canPaste:sn,canPasteProperties:Rn}=this.props,On=zt.filter(kl=>kl).map(kl=>(0,Zn.Op)(kl)),Lo=On.length!==0,Yo=Lo&&On.every(kl=>{var el;return((el=kl.hotAttr)==null?void 0:el.type)===ne.x.Canvas&&!kl.hotAttr.asOverlay}),Cn=Lo&&On.every(kl=>{var el;return(0,ho.yT)((el=kl.hotAttr)==null?void 0:el.type)}),oa=Lo&&!Yo&&!Cn,Ao=c?Jt._Y.LayersList:d?Jt._Y.PageList:Jt._Y.CanvasRight,ca=(0,Pt.ju)(On)&&(!he||!n&&!xe),va=(r||se||ie)&&(0,Pt.jp)(On)&&!he,ra=(0,Pt.mO)(On),Jo=!!(0,Tn.i)(On,"isLock"),$o=!!(0,Tn.i)(On,"isVisible"),sa=(0,Tn.i)(On,"fixPosTo"),da=(0,Pt.kE)(zt),nr=(0,Pt.P6)(zt),cr=(0,Pt.sQ)(zt),Vr=(0,Pt.K4)(zt),yr=(0,Pt.ue)(zt),pi=(0,Pt.KF)(zt),hi=(0,Pt.h1)(zt)||Q,Hi=(0,Pt.s5)(On),Kr=(0,Pt._A)(zt),Gi=On.every(kl=>{var el;return kl.type===ne.x.WImage&&!!((el=kl.image)!=null&&el.imageRef)}),ec=(0,Pt.zQ)(On),Ul=(0,bt.Dt)(On),gs=(0,bt.yS)(On),Oi=(0,Pt.WP)(On),wi=(0,Pt.XV)(On),Ps=(0,Pt.MP)(On),ws=(0,Pt.zi)(On),Rs=(0,Tn.i)(On,"type"),bl=On.length===1&&Rs===ne.x.Canvas,Cl=On.length===1&&(0,po.mV)(Rs,(0,Tn.i)(On,"interactions")).length>0,bd=On.every(kl=>kl.type!==ne.x.WCode),Jc=On.length===1&&oa,tc=Lo&&wi&&!Cn&&(!ENV.IS_ON_PREMISES||ENV.IS_ON_PREMISES&&ENV.OP2_V8AI2511),Id=On.some(kl=>kl.type!==ne.x.WCode),nc=On.length===1&&Rs===ne.x.WCode;if(Ne===Te.qi.OnlyView)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:!c&&(0,o.jsx)(ro,{noDivider:!0})});let Wa;if(bl?Wa=sdkStore.getHotItem(On[0].cid):Wa=void 0,Ct)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:(0,o.jsx)(Qo,{onClose:this.handleClose,user:pt,org:_t})});if(g&&_)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:(0,o.jsx)(Rt,{selectedTableCell:_,dispatch:p,user:pt,org:_t,onClose:this.handleClose})});if(Dt!=null&&(t=Dt.hotAttr)!=null&&t.textV1)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:(0,o.jsx)(nn,{editingItem:Dt.hotAttr,canPaste:sn})});if(y&&Lo)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:(0,o.jsx)(To,{dispatch:p,selectedItems:On,swimlaneSelectedCellsInfo:w})});if(_e&&De!=null&&De.length)return(0,o.jsx)(qn.nU,{position:s,onClose:this.handleClose,children:(0,o.jsx)(En,{selectedMindNodeKeys:De,dispatch:p,canPasteProperties:Rn})});const Cc=!Cn&&!ws&&(zt.length===1?!(0,Pt.Wi)(zt[0]):!0)&&Kr;return(0,o.jsxs)(qn.nU,{position:s,onClose:this.handleClose,children:[!c&&(0,o.jsx)(ro,{}),Lo&&!Cn&&(0,o.jsxs)(o.Fragment,{children:[d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Vt.F0,{disabled:!(0,Pt.Ly)(On),dispatch:p,from:Ao}),(0,o.jsx)(Vt.YR,{disabled:!(0,Pt.Qc)(On),dispatch:p,from:Ao})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Vt.Am,{disabled:!cr,dispatch:p,from:Ao}),(0,o.jsx)(Vt.cz,{disabled:!cr,dispatch:p,from:Ao})]}),Ps&&!Cn&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Vt.YJ,{disabled:!da,dispatch:p,from:Ao}),(0,o.jsx)(Vt.Xr,{disabled:!nr,dispatch:p,from:Ao})]}),(0,o.jsx)(Tt.cG,{}),Ps&&!Cn&&c&&(0,o.jsx)(Vt.yX,{dispatch:p})]}),Lo&&(0,o.jsx)(Vt.QR,{dispatch:p,from:Ao}),Lo&&(0,o.jsx)(Vt.lD,{disabled:!!Z||Q,dispatch:p,from:Ao}),!d&&(0,o.jsxs)(o.Fragment,{children:[!c&&(0,o.jsx)(Vt.sg,{disabled:!sn,dispatch:p,from:Ao}),!c&&(0,o.jsx)(Vt.do,{disabled:!sn,position:s,dispatch:p,from:Ao})]}),!c&&!d&&!Lo&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Vt.fc,{dispatch:p,from:Wt.G.EmptyRightClick,user:pt,org:_t})}),!c&&!d&&!Lo&&!ENV.IS_ON_PREMISES&&!ie&&!xe&&!he&&!se&&(0,o.jsx)(Xn,{dispatch:p}),Lo&&!Cn&&(0,o.jsx)(so,{showCopyOrPasteProperties:oa,canPasteProperties:Rn,canCopyInteraction:Cl,canPasteInteraction:bd,canCopyProerties:Jc,canCopyAsPNG:Id,canCopyAsHTML:nc,isCanvasLayerItemContext:d,currentProject:N,dispatch:p,from:Ao}),Lo&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Vt.ep,{disabled:Q,dispatch:p,from:Ao})}),Lo&&(0,o.jsx)(Tt.cG,{}),Lo&&gs&&(0,o.jsxs)(o.Fragment,{children:[Ul&&(0,o.jsx)(Vt.Kf,{dispatch:p}),(0,o.jsx)(Vt.xx,{dispatch:p}),(0,o.jsx)(Tt.cG,{})]}),Lo&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Vt.c_,{isLocked:Jo,dispatch:p,from:Ao}),!Cn&&(0,o.jsx)(Vt.Ld,{isLocked:!1,isVisible:$o,disabled:!ec,dispatch:p,from:Ao}),Cc&&(0,o.jsx)(mn,{fixPosTo:sa,dispatch:p,from:Ao,selections:zt})]}),Lo&&!Cn&&(0,o.jsxs)(o.Fragment,{children:[(ca||Gi||va||ra)&&(0,o.jsx)(Tt.cG,{}),this.getIsShowAddToMyWidgetOrAsset(ca,Gi)&&(0,o.jsx)(Vt.Qq,{canCreateCombo:ca,canCreateAsset:Gi,canEditLibrary:gt,canAddToMyOrOrgAsset:Oi,isMeDesign:n,isEditingUserCombo:he,isEditingOrgCombo:xe,from:Ao,dispatch:p,disabled:Q}),va&&(0,o.jsx)(Vt.fs,{selectedItems:On,isEditingBasket:se,dispatch:p,from:Ao,disabled:Q}),ra&&(0,o.jsx)(Vt.ZE,{selectedItems:On,isEditingBasket:se,dispatch:p,from:Ao,disabled:Q})]}),bl&&!Z&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Vt.av,{dispatch:p,canvas:Wa,currentProject:N,currentSharings:j,from:Ao,isFromAbar:Je})]}),bl&&(0,o.jsx)(Vt.ns,{dispatch:p,from:Ao}),tc&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Vt.fc,{dispatch:p,from:Ao,user:pt,org:_t})]}),!Jo&&(0,o.jsxs)(o.Fragment,{children:[Lo&&(Hi||Vr||yr||pi||pi||hi)&&(0,o.jsx)(Tt.cG,{}),Hi&&(0,o.jsx)(Vt.qv,{dispatch:p,disabled:Q}),Vr&&(0,o.jsx)(Vt.OD,{dispatch:p}),yr&&(0,o.jsx)(Vt.af,{dispatch:p,widget:On[0]}),pi&&(0,o.jsx)(Vt.u2,{dispatch:p,widget:On[0]}),hi&&(0,o.jsx)(Vt.Om,{dispatch:p,selectItems:On})]})]})}}var Zo=i(20119);const ia=(0,k.Mz)([we.r,Ht,Me,fe,Ze,Ae.zX,Ae.Xf,re.wA,re.HW,re.qv,re.lw,re.PL,Y.jI,ve.j,Y.bt,Hn.X.query.getIsShallowEditing,Hn.X.query.getSelectedCellsInfo,J.jZ,J.ul,re.fv,Y.jx,Ae.bC,Oe.p$,Zo.c,it,et],(e,t,n,r,s,c,d,p,g,y,w,_,j,N,Z,Q,se,ie,he,xe,Se,_e,De,Je,Ne,pt)=>{let{isEditingProjectMain:_t,isEditingBasket:gt,isEditingMuban:Ct,isEditingCombo:zt,isEditingUserCombo:Dt,isEditingOrgCombo:sn}=e,{isFromAbar:Rn}=xe;return{show:t,isShowTableMenu:d,isShowSwimlaneMenu:Q,isShowMindNodeMenu:ie,selectedMindNodeKeys:he,selectedTableCell:c,isProject:_t,position:n,showStateRelatedMenu:!1,isComponentItemContext:r,isCanvasLayerItemContext:s,isMeDesign:!p,currentSharings:w,currentProject:_,editingPanelCid:j,isEditingBasket:gt,isEditingMuban:Ct,isEditingCombo:zt,isEditingUserCombo:Dt,isEditingOrgCombo:sn,isSelectItemsInMuban:N,editingPanelRefPage:Z,swimlaneSelectedCellsInfo:se,isFromAbar:Rn,viewType:Se,currentOrg:p,currentUser:g,canEditLibrary:y,isShowTableDragMenu:_e,newSelection:De,editingItem:Je,canPaste:Ne,canPasteProperties:pt}}),xa=e=>{let{show:t,position:n,...r}=e;return t&&(0,o.jsx)(Mo,{position:n,...r},String(n.top)+String(n.left))},fa=(0,a.Ng)(e=>ia(e))(xa);var zo=i(36518),Ra=i(25582),Sa=i.n(Ra),ln=i(27992),ta=i(79371),ko=i.n(ta),bo=i(63986),aa=i.n(bo),ma=i(51582),dr=i(93446),ni=i(5352),Ir=i(63938);const Va=E.Ay.div.withConfig({displayName:"styles__StyledHelpCenter",componentId:"sc-179lhd2-0"})(["z-index:",";display:flex;flex-direction:column;width:","px;height:606px;position:fixed;border:1px solid rgba(0,0,0,0.12);box-shadow:0 8px 24px -12px rgba(42,6,70,0.24);border-radius:16px;color:#333333;overflow:hidden;background-color:#fff;&.is-home{background-image:url(data:image/png;base64,",');background-size:auto 800px;background-repeat:no-repeat;background-position:center;.hc-header{border:none;}}&.is-not-dragged{transform:translate(-50%,-50%);}.hc-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid rgb(230,230,230);cursor:move;.hc-header-left{display:flex;align-items:center;.svg-icon{width:24px;height:24px;margin-right:12px;cursor:pointer;}.hc-header-title{font-weight:500;font-size:18px;line-height:20px;}.hc-hits{font-size:14px;line-height:24px;color:#666;margin-left:12px;}}.hc-header-right{display:flex;align-items:center;.hc-close-btn{width:24px;height:24px;color:#666;cursor:pointer;border-radius:6px;&:hover{background-color:#F2F2F2;color:#333;}&:active{background-color:#E5E5E5;color:#333;}}}}.topic-wrap{width:100%;font-size:14px;line-height:16px;padding:0 20px;& > p{font-weight:600;margin:6px 0 20px;}& > ul{display:flex;flex-wrap:wrap;padding-left:20px;margin:20px 0 32px;li{list-style:none;flex:0 0 33%;span{cursor:pointer;&::before{content:"";position:relative;display:inline-block;width:4px;height:4px;border-radius:50%;background:#333;margin:4px 8px;}&:hover{color:#1684fc;&::before{background:#1684fc;}}}}li:nth-child(n+4){margin:16px 0 0 0;}}}.topic-by-category{.category-title{display:flex;align-items:center;padding:0 28px;font-weight:500;font-size:18px;line-height:18px;.product-icon{width:30px;margin:0 12px 0 0;}}.link-list{height:320px;margin:12px 0 0 0;padding:0 28px 0 8px;& > li{display:flex;align-items:center;padding:0 20px;height:40px;cursor:pointer;.svg-icon{width:24px;margin:0 8px 0 0;flex-shrink:0;&.get-more-icon > *{fill:none;}&.link-icon{& path:nth-child(1){fill:none;}& path:nth-child(2){fill:#333;}}}span{font-size:16px;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.is-active{background:#f5f5f5;border-radius:8px;}}}}.hc-search{height:486px;display:flex;position:relative;.search-match-container{background-color:#f7f7f7;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;padding:20px 28px 0;width:292px;flex-shrink:0;border-right:1px solid #e6e6e6;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#fff;border-radius:6px;border:3px solid #f7f7f7;}}.loading-result,.no-matched-result{height:100%;min-height:204px;display:flex;align-items:center;justify-content:center;flex-direction:column;& > p{font-size:14px;line-height:28px;color:#666;}& > div{color:#1684fc;}}.search-match-box{.list-title{font-size:12px;line-height:12px;color:#999;margin:0 0 8px 16px;}.result-list{& > li{padding:10px 16px;font-size:14px;line-height:14px;cursor:pointer;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;&.selected{color:#fff;background:#1684FC;border-radius:8px;}.result-divider{margin:0 4px;color:#ddd;}}&.customized{& > li{padding:13px 16px;&.selected{font-weight:600;}}.result-all{display:flex;justify-content:space-between;.counts{font-size:12px;line-height:12px;color:#999;font-weight:normal !important;}}}}&:nth-child(n + 2){margin:16px 0 0 0;}}.category-list-bg-mask{position:fixed;display:none;width:',"px;height:604px;margin-top:-73px;border-radius:16px;background:#000000;opacity:0.4;}.category-list{position:absolute;width:310px;height:606px;margin-left:-310px;margin-top:-73px;background-color:#f7f7f7;transition:margin-left 0.3s ease 0s;.category-title{display:flex;align-items:center;justify-content:space-between;height:46px;line-height:46px;padding:0 16px 0 40px;border-bottom:1px solid rgba(0,0,0,0.12);span{color:#333;font-size:14px;}.svg-icon{cursor:pointer;width:15px;height:15px;}}.category-catalog{height:560px;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;&::-webkit-scrollbar{display:none;}.article-catalog-box{.meaningless-title{padding:16px 44px 8px;margin:0;font-size:12px;line-height:12px;color:rgba(102,102,102,0.8);}.article-title-list{margin:0 0 4px 0;& > li{padding:16px 10px 16px 60px;cursor:pointer;span{color:#555;font-size:14px;line-height:14px;}&.active-title{background:#1684fc;span{color:#fff;}}&:not(.active-title):hover{background:#fff;}}}}}}&.show-category{.category-list-bg-mask{display:flex;}.category-list{margin-left:0;}}}.bottom-description{width:100%;height:48px;background:#f7f7f7;border-top:1px solid rgb(230,230,230);border-bottom-right-radius:16px;border-bottom-left-radius:16px;.svg-icon{width:20px;height:20px;}.desc-cont{display:flex;height:100%;padding:0 36px;justify-content:space-between;font-size:12px;line-height:12px;color:#333;.desc-part{display:flex;.to-hc-page{cursor:pointer;}.svg-open-hc-page > *,.svg-triangle > *{fill:none;}> div{display:flex;align-items:center;.margin-r-4{margin-right:4px;}.margin-r-6{margin-right:6px;}.margin-r-8{margin-right:8px;}}div:nth-child(2){margin-left:20px;}}.svg-rotate{transform:rotate(180deg);}}}"],e=>e.zIndex,e=>e.width,"iVBORw0KGgoAAAANSUhEUgAABLAAAAOHCAMAAAAAJ0pmAAAAOVBMVEX////+/P349Pn89ff28/z9+vv99/f69vz6+fz/+/r7+v7w8Pv/9O/+8evN3vr42drq7fn74+LW5fuQQ4LaAADRFklEQVR42uyb3ZLTMAxGqRrHBnOx7/+0UAvlVHyIlLAwXCA7tiz/ZGHYM5JiPtyfZL//Idlbq882r0u1u0WzKtNLNVuPL4zdtt9ut2bmo3cS2/3MdxV7aVGIDw1pt4c0nzyWWCV33+DrHkOWovbbkm6VDD8CQW63Ucxw3K/P8lPZJenfZBiCbGpQm+7aYutmo91uvW/2tfyXvy8f7vtRnFgYypLkcyhqQZ6Bted15o8L5Aqj94iTKm95/GLud/PJ96n+2+7a+9Wz+Qws8yGGg1hAR4ElG2K1PwqkJeMasfolJo1yOsN5XETW/Wt5gOunDKLdxI7uj7db8K23WwNZa7auV8nGLsTPoilk+vPS/NSJf1qegfX5BFiASBClrTHrLlaXHYDHoJULDpbrEMpwuXC6bg4Xn7zi2CC8pb2njwWYz5c4YGL47G45sXrARwXC8RfTDu8qTv4RsX7KjvarxAIWF6YhVjPbcplQxOsqjL3pfUGrd6cNDRhxkAjEVFeoPWDRb7c2XmaRree8bNO74BF/RK8uoYe9lLlq7hKR3I5qrnlllPf6ptWie82FDgvKlbLNBSycq3tzjUpFcHGwGATKU5/dtO8SFK4dhkflI3MIPTpX3JyYtrqwHr+Ye0wyn7STkgd3J9ZwBlwu6cj6JJbAlETukIDLWqwBXtj8rNgw0koOfBdi2e8Qa6uK/1iN9xKaCUQQbPf+kEd7DiQd4lcx5M2Bur7+fWwGi7RmtkxzzVUaY2oJkGK/C6sUlsZsha+sgiDzZ8oG45UwDaLOTYRj37b1vIV1MnwLSyxHmeXj8sFx5OXBlZJYEuk9jU16Wdn2hgEBcieeCO5WKI9NgYQ9fCyJHXHiTsT0J4KC18TkxEoSzlwA1rOQcnpJwsfCwQJdLCmJxYJRxoumuHklj9XPc0f8UYU14TNt2eDGiAttISs4t1qvYYEMXhDYFBpGSGJ9PGLDLbGoElxE16bNZ3AdPpbFMeYd8Eyh4imadJCBwBytOEVI2pGWU1fnStr6FisR1sTypaDNpK/qwNqfaOUuVhUVSvQHQxC3fM7wstfz7maSqTosuBsxOoon3nGwaCTmLKrdw5liuUFBu1LzAP+qrOTdQyOMc+bsDpciJQWNcv56BAgJMZWC7QqxmoCOsOyUWDBhRo8P4691Jwa8pAdwHZvoHFeRymITC5RTxlHZo+NFDJwgvX9qw/nlLokWorzA1Qw64UrxmHc5+uMUvDA2FXxChFJYXDM8KMSYZ3FoeEhMnwIU9wo8saIWgEVIuEroWhO0/EFM9F0zWRDrMz18eM5aAQ63axrLxadW+cinQolcQUclYJDD1ceySy0D+pLbUNspqmQKYi0RSKns+Cnl0nbiY/Wf+lhVjPZSVDhNZaZo9ZNhzm+QAJEukLUKyEKqo7Azk23BDzydT+3TCHCmWO9hlLokmBX+FTyiwrpk4dVVSh8TDopIvDbTxwcpAvTKLitYJNY3iwZW0SMQVFiqrPsAihwyu7d1reM5QQqtA0uDQrBnOBY4VMuowMKvM9yW5nBxm4LjJIcEIWKwzuiHj2XXcGVp4LUqGpcegp5TTph1GBudWEwFm5/lwqdCppptB2a2R7+96mNNA1CTHn+qx9fCnE+iUvCeQExf8ujUBYuVjgGFGNbwefJcGB0cY4w+AjypnFSwpAKPYBmKuVoLHGIEDSrMqM+UzDlwzCn3wI6xL5/HCYx5MM+J4tUFD4ty/1iFhNClFLOMh8LFEmhBiIQkHB5WMIoajaexLIM0Z99r9yrB73ip+ydmLPy1lm0gqxa4ic0USk6sVt1qCBv7Bon6Cm7jjFi9JlZj27QsA6acpLk2K4RoFQ4dsMogQ6PrfYycfWdngleRe2dpFhwgwDHGSFl1myYEojqOYm0Un7RcY0I8MWUWpim8oVOs4YvBF7A4NY40pQ5D5A1ggaE3XTvD7QJPKEGuAFaKAuu8OxiAM3gTCqBMJSXWnmbJToGm6OJ383Mkcw47S+NTIdwhyjIcGK3wDF6x3T+R8ZZfa9M2Gqt/Cjh19EIYiKWC6wS/POI74t6TC6RXiNUkwjrxsZhOO+HDPCLAgUO5eVuHc3RIjw+GQ/eobDrBFtQMLrjVxycLIk1XVu9t6XB5mQFBZVtWNtapWHTi5VgGDNGi8sMYMFzVAk2wBnpZfuFUMoIsAkM0ZNb3sPCtyLu/9JmQFJV09Igk3gshZEmIRPORMoHEe1qNC6aSHLmECA5pHPoeyEI0Xo2K8ZkrWFoilhDKRMZaDvpoE5CuX24YyWOZTDmS5MnImjGMAbJVXws3L3CG3LsPeVO3fl/IkqjwOWwDIApBvkaibLwYX8f9rN7L+w21wKxpkquSr4S0CL5V6fEwkRmidUkaoIOsic4iOmhUBqNzqs4qNgAsWIVWRIXe4UIZ5ArMiLAMF6uOLfEvoE1oqPICs9WOSLyzkPw9g1SMFfq1MhLv3Vf9ZlAYFqZoJSIOkUuhd4gloKJ37djSWJ59NgbtBWL1kwukm6mPtbqZH2+Y9ias9Fu6RJpQVYlSzQPD7iKhI/QBZfBJexJYx07iMByt0aurUnX5/lqWASa5nEXsKeD6hQ+GuhhlYiJOFByG2apjZyjJn/JGRMxxd0s8LK9x373+SqiOlmSHckRG64e0HAi6mQQYPk6QSI+V/3RIypz/VSi+jaCANems9FnyCDV3EPoLrf4UxgPGNJEliLUErqDLx4QnFQjnG4pVv0CsURIr7iVI+NRLrORpda3m6nH/RuzRCBKIsIS13H03DwxxqM5ET+JlZM25NGVBEhuf+saEzXRDPSo+FUADWX4S3GIV/WpQCzhp2lt9JjJZmuEiqDT4FJWfizdVlxbeDAuXSlGxvgn45nQPC3eqDgqdU+AKakm0xWTKoJ8HhTkQkgteOZGEvvrwlfxidwod2YFK5fR0vLmFUHPnZS+0vDGbUHgTY6w86UK7fNbbK/qoXVwy3TheuI7VywxX+n0WHyvLzHksLGxnIWHhJ87NASHkQtdrWVx+D9g8fyhkl/fsr27K04Yz5DpE6dadWrmGkLsKzWGABWEnuGKSMbZMJddqIKkJq27hXMBV31sPLs2jfWOop4ulCglRv7B2tttSgzAUVdoOHekP3/9p1XIzO+ceY6sjjhSSwPix3CsJoXJSiF/lzklDpnBpZNLBV13b4BvLv3mrgQ8pxeBAa/v4Z4yh+zv6XRwRUvak+DiJBfLu9dG5CLECnRkjyaXXhQgCNSZyaJhz6mTqWHWzgLRd+VjuLXVSWyvRHuqevapYPhBy0rDt5bsWHCMCICl+72FnwR5bMqsjUOFnwkciS/8VHq6KHkcYW8w+HzMCaD2XDCHwKmpIFUvNWSNpKUGNqlTfdDe1ZIsRRVlGIfe+TGp5e+qwqB89exgGyQ4PBh02yMy0JNYhRoABbuQ6cXOZMOCODiI2zVSQH9GJnNS7Fjfc6ulMpL9FtW0sUrSlFpO4CN1QO7Syqp/maCP0xewesXpNLAkL63qsVQpBpx7xMgwJOfceczikzlAd781U1r7n6nfZAwEEQ6MjSezDHYVSAGbvu2efaKojY4W1+VjS12VZuSqhkZDHTvNSzbyqCEddw/Ixv53g0w11MTUKCAcDFWL8vajDOl/L8Iy8O5+aVsGy9ihiQ0BxBoXbS8EAA0tYN4uxCOIkmqNMkvJP3C+v5QIUfmsmruqoj/U+spiYh1XMirdeERXiGjrXkC8fxJoc1nvQ2NXEgnp1bWm9TOMpcu/oteFx2UEmSuXIygfkIPfAMLAjsAtGocW58XwWnIIZWigV0mmOnabgrbXaFaG+C0TxLJoThN4xEx+kGvrVVlgaj1zqnpVn2dgBD0u4FC7W9uKVGPjNHI8JvTUWXqSxHEyEgGnuQJsGERRuc2rJf8tpUfXlKSe+knKs+0EhnYqwmh/PYRU3Io1HZR5L7Rjuk+Wu9kjz34i1aYWA12MNGJRoY9UNLFRfrZ803cBLtrcGfBjN+zrksrDQhJdtLAy05Jkd3Ck+oEvXkJAyBv2BMMlGKGAw3+YE89YykWIGcfDFHIb03ggE2dbgiAl8+k6nph4MsjR5WPKZcZseEU5QHdlfcccICU0XbEKsskmk5iEdPSNO0DaS6B574X2xsOHL0Gdi7eem/y8opCGjZ8AbHKInNWXFngt6GrLOvWmEhJEXxFq5pFPBbCv9o14UiIaa3HsSI9LaC89WKT2Q05CALCJDJ51tYiRbVaf5Jc3BT9nU5+hwTAyBKAHYEKS9yk+9RosnDhsW4p4ZRzQhD4CAVzwI/0Kc6rD85ViWKpNjQvLuTL9XBVmewwJKL0/qGQIeRTvqf3qADNfhVuKd9ZAIgMAVMuapIit8LEWfM4Pojyw+seSpAB/teW76Nq40C+cymc4BjFICObHQ+Rwfiw1BVXzBn0reqTyvS96puipq3lftBq/cE0bRIVspcGArAKP1DWhsDrJalyNF38e380b0CC2msArxlDYDngWbxsmpgWQl/e4bMWR0HQ8qVgALQukFTQxYip6fKIARMmZpoophyfovGUvyjPJRgZm5VCSxQkRDwPA6KLRKK1iF12QBorhOM1JCyTooAqWQ4GdZAoyS97dPCctcFrPKBLhIeToyT2Vl3STWhtXrlDQtfbxR8r67RnysCkcQq+CBv4oU2oHGAiUOL/WyUP3ttRwaxGkrzCKHzg+pW8ItGlRgYUo4mE4GVyS+a/EyhYskOANDyRALzNA0PCzx9qooD5lVYTlQP5v3LzhRPKIYi2kUqB/CoCOeQQw58WshaKH7ELWTWGF5RS2jXstxkrOzQawSm+r24bzMXqCUctpses/DctcJuiJExiL1TRkrkfCHJGTEEXPhsr3M9U9ysYvQdSJ8/zOxgESUMmieiuaHhVi4IxYb7VXQatd0Sujxuqyf3c5WmrK3Yq+iapXew7W548jxHfrAGyQKNf4WEj4xZzxedVy6fXT6yPEc09Bx4MdgWrBCFLGKRYY2CfzgFxPe0FDn5fe+d+qwrOBd0li80N09G5cfZoNJu+ljKfbILYmK3fmadFRoIMP21GnSPoSA8BzHwll8OTX3keUiv/N8J4elFKqvAHL4IGEkYfWTNz2wJ9svd3ysvebFFuvwfPQsEAYxJCw0AwbDMlmstmL3FaFK4NE6kTWb/ErMcl1dulapLyvp5CM3nJVrBHyMG4eCqKxx1bqyIW67CMhQm9FQPUzCFjENdKms4BSgVOvz70hfkaxngqfkKQUP0orwDyeMBhuOtGJ7xI5sfnFiSJZcXRgMCJm4B+3X9HRZAIspBas852p8rL85JXSRnwTytF8ldnCFIXSBVhYbxuI5/hbE+sRA97Hq8MivFbL2yy5wUR/LSrWABMTCgAGGZLI2RGhv3KlBc3pYy+SWVzWwBvzZrgjS0t/TauSgbzhcfisZWlYaRETIV1HLGZZFK1PjzPHbWFNHhkzZHBFHfEwtBmSiYeK8Sk6TF/jxORnyVU4KD6qxoE+RKD/UhmEIHsUr3jHPF1PYm4Q4KOCZShGeERWG4BO1GnijhkEokrwOtpibvuthWeKNxpS5/NbVI4JYVgVKeSir9JIO27Hy7LlWuNrnRh5rL+Owjkx4BkG6Ks0nMyerfiWM4yx6e8XfhJaDSFAkct1UgaVICciUn+yVddEJL3DghIXilw3UVXKe9aqizgHqiGaEuGHEFhpnovc2OC78DugIFml93wWX1dsaeG5L0tT16S5CULX7QaGd6VnoxI3pkJKsCQJ4KaZtR20EXdPAjUs6d3DFSkTqcRlO86zxwAysxAB/CIxZE80kFjrreR1EEfd4ybuwpMv1PvexhpIEiQJLtTH85GR53ZT6IXLaB+CyoC9RTeqAc+9JSUTi7OwYC3m8qTa2y03iRwOWRI78uC4lHVf+FjZa6yBqNF65gHj+wFBLGZxTYdrP1oBg0n3xiJCrOBt+F8x6eO0mDR1jTS8lYt0FlrytSuRqp+ptZmZjLV9uGDIQ2n84TYT4INQse3WuEEknNELkFbOCLzjlERwyDfS89l1uIbIKswViJfKMu5d0YvPhuu4YUrPegYQ3Py7c6xw4I68BtSqH5eMVNNfRZf11K7AKtFAorz9oTFRg1wyRQrHQTtsRg7rBGB3WmSdmOFdQ7AdrZ7icSA6DwVtnFmbXqRSV93/Y2xi0zUejzFF1Cgy2bA/8SZekkeVHRHmPEG2mzlZz3Tq1NaJTc5Je13LJzmkAWxGJt0uHnpHcVNibYK7H4qBWsRDyvJMefqoDrhIkECIfAdJdbbAQ4bMxzsebdLg5qjaG1W2MZmTQYy2hNTw4J2DVJR0/zv56m5c3JrLmxW2FRglxLNtYdvb8sHA+OoKzXjKygKpYlWxi2EhbqKp3f0S0y9kQ4iKlgbHcsWxPkIZ9byOMaXxdfYdelnFIsBlIpJGIYslgpRPNTLXoywMc559/YOWMivx6gu4JLXbooGrFjqFBddLUtanw/5Bii4q9E8YKqEWRBoC12lEIAkrhcbKtsN7tVYiSxZXWk2JYnoMfmWR6TizxC8+5NkJfPiJPnkYQyzvzDks37I1dArJEDc+w2MgyNzcdzxXOIM/+FMzK8u9b0ImGeWYoYiVV+w5dj9UYDoQbpXRppN/fc/R1i+kg3WZBUyU3G1YTTWxvHoThz+ftTGC91rSSW3Pen5VLTqMLLglXTU+ZWQpjvXgQqcoIvzMGd9gHzZpRbKJLrhfbgAWsKId+okjgwVNCxazaI3xQ1CdrZF0pcWGdYW+vkFmCUhHr82PeNGC5GtdbUvxYXPmeWGUgycbaz9xr1it3FuIW2q/DyOKMCniSv5WuMhuYVmwiAM8PkBwgDFJSckHndenV/D1K6myUscp8VLxptvWPbVF57WByLoI7SPOccfng2znG1UkFQfd3uYWrH+mjiMLu1WrxNWo+Y/2mQq3GAyye0CHVEkRcZ3PAleqLQq4MrtccVwusr2MjNHx52cKSkZVpZA7g+ddQLiuj5PA6UrOMsGV+zo+Pj2L8kNgrdLH1/aBosgWvS8kPCG4hMENjI2uXI9hku0sdkLnGstZ13yGg8iYY4nZBwixh1bwe68PMvPhFcVNWo4dSpEE0yHAR+Kw+M1nrW9C0oeUTV+sP/ULV73OSyoUhajWjsrDqRTefFIao70ysQbOvjXV8z85DSieLfXE1tULHdrbiIMJqBD4iKg/iSBff66YGFQTqccXaiLkzo/kp1SjeiliuRsM8Z5x+/gHW5TEXAoBhYzVoOfQKtzaONb2EKXX2KfpJ8/FxYe3VCU4p5X0TzqqRK8km9fmrxiGMks9MCAulWYG4RAMvL0l1hbT6r7BMNVBwka83gZDnGWP3cv56D7y/upNMvKiENetGF+0lpPlXtfLd0Xx/UCHdthYM0whjobRglkVmpbtxUgUgglggbbUJWulF9lLGvYpvdR5D+HZclXPhAUWvegsrZ4BPKFNGIjZWJ4CsDr3/+COfyT6c3wU1PK6pmNOxV1gLRcvdITGbYcaZxXt1RC7nr3schnFeNNEsAOQlre+IfQXCHBknvE2R5DCdwrubQphqvJOSCvmQpg7WRFUKp5xb5RAVt8PWWlEA8zJ7f5mIPg01LKxGSB+tpsDWB6reK/LuSuWne8YsYhWt3hNGiPPZdYjEvTWDagV38N8Gt1KyO0raWagZCo7wCrs6DbawlHkvWOWM4SWMFFABLMRa3cPyDT//+fz8MrHmUsAq4CavMEssbMfEYl2aZz/ZWMiJ0THlrpCx70IkK/xCBdRV9lhMA2HM2M4ZzdJ9onyDD48uyCgbqz+UMNEUoIktPdUHhJCK2UflTV3tCrpE3Ar/UFxi92Fwim9ZofS93fiTNl6/HdpB9144WNUGGGXewwzqxQQi8C77yuKi7gIlqGLOLa87bCBVdlEd9zIxUD6UcMAr7HPco0dTrDWM8zOMP/pARXEsRbEag2v7XMT6PDHzISk+i81sL5xh72eFmFqZ3sDVGVmWKfRE4UEU4gqwAT607wlXwazKz2rOgWa9UMi9kh69YBDRhlX6tKkmKL1eiTSBhE7JVtmZRxVuyCANJUdUTBtbdNIxPbaw7vcUKsxFnCqY824jSd0u8D4G17grzp5umXGjpA87UWpUwTBABAuGUFEsJPJ+ynI3bf1QBhj1xFSDXFUeDSwnPSCWzSvL5eNmYmVYftyX4IJYjeej0g2KvG8ZO691586/cqxr4yaBrhrdMLIgCfCwMKd3GvfKJD2Hsec11uUFc2nEI0EGGNuAUVBqMnni/yGRAvaC9KdO0ApeyFDCKJNwy3aM8Uu90DCt9AaWhdwGh7kogyUwKfMTrYj19xAeCsTLMXyHZ2AGDsAdG3FZ+bymL4WSnvjVQT1cMJD4gziWrvTczO/iFevulHJXGcEeOiaW2fX1iPBmYmFTeUkRi6B44uX8LbH2LmlppTeg1IZoGVmTe9AzrlkhrLgLUlBkHO1ZOGtz4jxt55mGl6ckhNI+yasKWvHsUJmi3DFgF23Eta9axNnZA5hCm7OxIGBqGbB45CKX8FBqh46z4b90TYl3PhQsF7E8ZEkKduohegySG9ZfES+8vzCvdIApfIidOouDfY67caUHfvzRcXEv05Nf13iFQpT6K2m0iJU3wcRyARtbRMdeoRPXiVJVH3V1mWKZzslaPwQrC18w+EGDK0rWQNWb7OvylHkbSrqMrTdQalOrBgr+5Ac64E4jsymwubTQsDB0+rRQpscib/srROVaGlLQC1/wVWBV2Ya0rU5ooBUtbSNER2OQP8rAQa4Ea2XKJBfJF8XGKs9N9k2SoGZlvlZhjgXrrs0uQnrRRJUvp9dCKACaxArkFkXDxvIuQZ59nsbHRxHrczsJbFxV0O9Vr3DJZt48zceSmRM4m1+dN+44bWQ5yx4QdX0DC/Zcs98r28FLnI8FtsKSumcUOJoJpptqvebDpOkDK5Y7NsAd2NKZq5bZ9xzQyi6zvHYKS7prbHu+mGAQUMcWCli9U7joZGzZhUGV+Y/l7TE1wlinxoqSpxW04XMoklRJoZXcgE9HeRmyBOgP+nyJkqHwCm1I0bPpxVsgUshdxbKYDjnrZ4dXSFCqiV/d5BZ4pxqNNyJCLIqIQpbtyCs8Q6OIiC8WVEfkchGtlKlQvENZfZlkP/qzs5h21uLW27KzWM6CFo75GLAuvApIFEkmJxVW1VDNWtcNPCWbABYPEyVDDhwyY9QV6NcAOwlHVHyo/sYEUuOFOHB0qV/B6dB0l+YFYEGsSC1Nu4cOfcuI8bFczp+wL+0o39BzhpzPxEqlYw34c3thorA2KyJwU95FPgr6/ccYFmKjSeAvPX/MTvylkI/l8FV1ZuGqkPV1vTjjvTQq6Pfis8IiHIxQttWEGrQdyBLfbGRVpSxgRCsApiF1WDMi08H4zDLJPhUoeBJFFtL9o7rfHBP1dkeruCKuc7pUj7yR+Nxmm085QiuQxwcL8zPnTd+q0aBS0L2VX8GrZSoJMU6Jt6lEG0U6hSPRRAzJtwA2qJ2hvj6xsYQC+JZxfICGPSaIZCVmvhAdTQaBbV3k5yYs9attWi6JfKymdsNpfPFJxPpCVt0ms2qxsSKoHE/wKOhniSFYoKR3RbGy2Pv0s0Y+XcRhb8/96e0pdzdyrPbrjh2dDwab3NWB+M46uLOZwuMbDFU3T4EOxbx1GB4xbRLSN2lSa4rRdLboZEVcGa+vsW1FOjvrmpj7y8A6/VChmdN6IyBNoaz32kqIhv9PMt7H0h/L8FnvWCujLgkZbKz00VgYdVtqlJtjzFzbEGt1D5OvcpAPvoavaqNdzOdSVC2wQqzYUVTLNnAVXuGSS+w5xNAMG2tzoMleYY6dIwbl4g2MpsgQyzugSs3v+rWAx8d10RLDRJ2wsso3TAJiYMlO469YlA8NI6P9Zk7xrjIy8wZwXlhdOJZ66bAey9Qn1GjOmCYWpRsYOmgm7qNnzWTUpVqvxLCQCjNRxs+CCXYstrGqYzfqoDwEMXEy3DVrpWP9qnnkmCbXAFzc8f6u1Se74WdicBhX3v4oo4xWeKH6E7SWYGAFsSxlXQlZpb8cHXaBbBg2flboE1Y3M2YDRpOhQNfGJMl0xH7NJ5SlM1XpYi06eZSeSotWBfh1xYpjXZuaFbWSoVEIY7GpUMAJ1N3mMwGyWNCmgdRbW9I5I7QudhCnMEi3cTD9LdDKwDomFtyw5B7D8R5ngPUCsbBVWukzGu5AJAOs6vk9PF2rhr2vpfR5hnFAIl4hIzmvt7CctMA4xLWF5R65DZiGVW2mnGAkwletV2hvEhvrzUc0+1mhT1hVIqeT3uWmTRlizdNBrSTFQdMChRYqNIhqUZ/06wpIE0t5M0iWdYw5kweSBbPyPZXaTgYDuVql1Ek81/UWg8L5CDR4N6ft9OnwnoniCIt0DazjMFbuX84/W1i1tzCwoFj6iYz3rFbDKr4YNhD+BgWZK++U97yh6TaAnyPgNnaKWENnTBtzoeFP5ln7omkTK86Hhlix32a95ucTYH38IdYFtnmzjiPvAGY7fFa4MyQHzObT1JdQJMvnUiTEZqSkKavCpJIRJQfRsnBV4OK5oQToPbqEs7Ci7X4KxDOMkF0F7LyYrrMqfDtwZHzU+DCj6kLQih+SzxgTVdm7VPJVXeUTyiU8NoI6o8plHipZ3RVIs+VSM0NDtBD/81ffhgndItYg4wF0uEwVIS0ZN+RlUdAvvsxNa7pMd3oCGy1+kuuujq5qctVpuDxD1mX/4R2Id5Yb2Q1OqgJp3xJrGxMGbcrIWuPc1piQRj4hCKKE8t5UTI6uKyhHEWQ+A1l1VU6pZFEiMEJ/XQBNhuGryR9zMnGU/T0ZAqsBvuFAZsIInfJAETQJPibT40Yo4RQq2X4XAevYKTSo8rUu8n4aGXYKPd6vTq6ZVvfg+FuB9LSaeuKXdpvhxS3LVGF2EUuZYjSFK8AjXtJqHxGaV3A7qyY3dWZkZV32f+qAVS4AK7xCwYI41n+0sewVJiy4LZGpg3rw89lteWAYMfDVRmeDSvuk6Sa09vUezikN8kFM+KFI9h1kikalZXRdQ+n6D+UkPp73PPl6M8p9d0AHhhUEy0iVWeVJXDGkemC94hKS8H4qHoGriGkxFDH1IXh5+99e5+gMB6DhiYyTHBqPvhnUglgOV0GQKCajobEeZGqDzSIWOi6OWFmT3NEcOYS0QS1QxiCCWEpeX8vukPU5l8dsvpGPFl5hFwBKr9Bj/AcXYewWTh9IgzCLNxK3jqqpvxsDSCVCNSQJs6y27ez7tZFT0g2lkc8K1wXryIcaTp1Zwb5CskbbPYrK+DKy+lBSvQca2jB3gCEsNF7cYCirPQiaB9lfVhfdy8A6/aLZT3r5OWGeX69yBX3WKIwg5ZucBmedY2PJbqFLW2BMjGGk4RW2uBqpcR4VL1Aul5AF+SvlFo6MvD+VE+H3yUmOYO/4WSH5VNU48Ao1tD3fWEiLHrNCxJkAED9597TNSVdN1gO2VXXv/dRbqkM14lfpGyj0rqeDjSxklXs3ByGr6molgfjuK2g32Dp+cOcwvOyvbgM1K4925ECvl6o12Ck8Zpsg09YmfbHG+3tVczgpNqSi5wE9MiDPUbqPzS1ZfwabZHUBFnOvHbzCQJRtJfPM2DG9TNaeWJmh8a1XON5m8WoVxKpih50/6IPxmzjWgY21pUc3h60n5T4cV8mSaYUBp1CWKKWHfNlOZoEyuuzcoX7WtnXllSPtHZPoaJNgqamnjA/oxRn24lbcpBcfYl89F0amn23mQy/fl6Fc58TRV4GFU/i68Owvswiy7t84ItaoBNQ2lI/HmDXawcftCHvSqFSiTyyJaRG6AoXYWPkr6DuqJV5VP6Ekl1DDtTwaXeT9DQiRk/Uvc2ei3LoNQ9GakUQl9EyX///Y1qSQA+gGYuymC6wnkeBitzM5A0Ag+ejNkdBkmTKEAjaWnAwxfVfIwkKgQLnKYTlyUM7RzTe8wSiUzTNLrKxFTxsUkIlMtl+uJvvj2h/3rpcB0Cfs1oe5xGViGvMDKZ77N8ORMAy7LGbLz6VIPaKFu6myJNW497McBgaeWBv9m0wzA5Y6hT8kJRYJvMOBbwv+U+LZFbd/A4t0YI4MMW9TmxzFMLbC4V/0vrKwdIUQwvjQrsTiEUdLHMvFtqCXmVh/vJmS9QBFhC4vrSvULf10SY4ZJ7RpwhfdkJaUgSFpWZ6VCiqU+H/EnRRyo5UVRLWMeNaQL8/pCRZViF8pK5KdkrGewBli1bjBO6SgNpUW8xeiBjUGk9VoFm2bRva1pbEPqQBrIu/rdXse4sKmUnUJxIoMuhe7iwgeNDGpF3hCrKGDBlznbZMBlu5qCoQCsco8hqUuYfJG0NXRShgM8TvjXJ+wanH335zTZ17hfH+sGrkQ41j7JPIOiIZBxJ5+YrT1gm7goImmLSVXzHFYkjNzgiuIr6Z7uVNSz3K3gJbt7FC/zgLTU5xlP1LyEsIuM+eUUtjkidSAYmmBVBF16IVEXMIuOomSzmgk8EUNpmXvCButM2C97hQmVLpHzcGj4tXrXyKhGbFURCxqFbuBmJBYevwJ9w/k4ePDVZ432FToCgWIZeqrt4TWAIAQ4ZaURCv8Nwbpu0IXm2vdwEJv+4tqvIuCEmvBERMba3L8F0J2KIJMNnCgDXApwnZ3BpBQ9kLojIah6hzu9RNbQzRZomBjgZx4OGFgVgNiBLfohSU1amDJGiEkXiPlmQAMxU98F2g3CVqJR2g9S77RKHgDX08Da7t9q5fWotw1jRQbS94TzoVYe8ST1Qi720Jo5tZ98kJKKReAcHMb9fAKgVSahyXGHQRUF1A1ii1k1GWf94oOdm1h9SDHDH2EjmFGiWMtX9lAV8Rab5zxRa4VyKJRkNN7E8kKW3MJSnSBYVmDY0g3itaXR79oJKOUgSIkwZd6CKyCgaQleIOHXCwwBbqMS4Njx5IdOvLHTzfSJ9AKqhRI1NOD6JVnqNIFhvh5+lU64+trCd3WWP+osMc7sqmNgliLmhrhbjwzr/B9FEkCpUv/J+mbvgIRMch4V0j7dzLd9T8reRuolEKJ4BQOPGMQwZywS3LUs3cYGoLwR2GbxbHqnFjJImFC7/RQdoGsC0MLEXzv0EN3r6IOoxItDdLp2FV575GtXpRzwWCVNzpKxJSBCtsLhVEVMyzsjNxVp13YAZjsw6D4SKBEsigFSmiFY40LqmnjaQM/ZmrPAssO0ZmKdim+kh+JVVhV2BUS5BFBD0940lDuh5ZlhaAhOH32kSASUBxF0CSR9yGa5JCvJYwEYwRVidNnvCrOJIzE+szUYvOGP6z8STkcPnxgwDVu4Sydxt9w+46NRZisFbXS1loFOC0zsrRT0yMOcYlwDB0+uGFBmYAXtd4gS0hvp6fllA4ZTwbGdE7sKwNRB41pyii3CC5NhwgXUX36xVgXo0WcCsDQ2JQz2p+EeLv46qZn5Z9FVhfWpVYB1lxeMbE0A0uwosdBP+ENKrpQwxVkEAsKEOYnZKOnn3JBKyLSPvJe5nlY4EnAgwLG6QuCzMYSKm0EnYCP7ZRcDUVoV9fbGsadWSWOFWTqFa5xg1FmgUQ4fJlArMYziOp4Y1j5BRqNIu4u4afMwrIhkWsWg9+NWLujlrECcpkWewi8oPdrddAxjDpjgdwQXQytguWEUJMW8rTESNOuybZ+OjWs6vICsLb3eZfAj7tfqqOH7FDVVYXxD7LkFMyiRlS5lyPl3cL7ugSazhACCAAspzx7hfJrogZK0YiCVq+NV7ghjmP6Yk83SzYDyysPYmGQjTvLKIHgFk7pWqZxLDyzQDnKajuF6RfKB7LQ0ZMu7Tx8kbysBXZwP4p2ASI9WocaA0LrWzUpw0s0ZpH43iVi73xgPa4h7wuTY3WYUmJWjanBVSKaOYq3l2e108uNogDYBIfNX7QMUi2P6/HJgfVybsPcHFJkbbSV41UhwNFkUYUd5zCcs5xoNDsBG4s+Yq3wsHEYYKNuRb4FG2u6llAtLCT+GN3vmTZUCFE1vqQaXiJ+/PpDPS3MnEQ6cIun2IOeFm2sOl9YGA+r50/cGoRFTdA2lUU0OIYSLAsk0mZkudKeY/P1LHuPbZ1PU51dPsthxKjGHT0GE/V+oWuoDt2EWsUnfjZlEMsNdT934EMv7eHRBQDLYNXjsz+uWolhPSW3WRhru1AJdJLAO/20XK54iIFTlHm0WRwLEmE5YaGc1slo+jyuYSCWteV5WBqh4yo8uMCj4muIQJfdJQwvfi/lXFjCJDizCcQr1ChTaNUvqNYZKHkQ0SCrePQYC6Za6B55NzRYWau9Pv0yi1RtKgWVHHpPi8iIw5tXiOz++5DpusJ4hCrRKRbrgDgawJndp9IyHWhSPVCLnWk3rfiXLTiAVtpfzHQnt+HHRNkTt/PzRJkLVJl+3UYkGg4ALFw+6DDKAR9YWtBIshv4auEXHyTNvjouqlxDxLREjFiAR4VGI9ZZxsRhyi23Y9arFFJGemLMbCdsMZiVWHgogBdCXlZV0OQWFk88rcQII9SNsEi6w2t/fB5X4eVe/jFEYSh57pgGq6i0/kC8YcUzjWHJtljcuMcaV9KMMjqI1HEAD6MKWAEs6DCXrZtA8z6yo7IS6E78yZQQK+iLHWGvzo/EsWTzYBgQs0HH3yTAgh10hlWAgEqfTr7wINblWkIG0cg0GazEykp51SWgBhtLKKQqIu/QjYRT+kAsv97PnxI4X1jYklNWK8TwhljLs03VcVTBygJZexJPB0W0JV4g/059lWRnM2t/aPa+skejV3aRUOojVz531G84o84gKn+5WxE7KbzUyw6eKISy/BSwjumCltMomAeran+U98eDGV+0sHAK/ymBWFHUMRMaSneIIcpHwW82Yw/r54YWNAZAjfBbh0Cs3MLSl49Iksku4MrNMyw4WQW4CqCoBRkWqKHK6IylxZR7nGahMCPWHqwmOb6UytdhdZCVgin+nKZWVuLYhoG6AhFA0bKIRrHHL4Ja+0Me94NeBhBJUGjE2S30PipoyoL4ppaYUUCLZq1puhRUyprb5fpAUEZcHavqZFc12a1BjjGdycQp/PZ0+ibfdNtG4D09A5rDpO/JtJAGHac12PZYevS74wuIoIcOibRTr/AybdTUaPQGrPIdZtRxzG2sObNWYCQ9zFuGWOKDLXiFF+kN5GAJLOpOfoNpETXH2qhrJ7sY4t8YhkWGYUtkTVKgyA2rMpINdqGnW4zEd16VupvJVccQBI8wnqPK20L2xsI64wOchp7CuDNIJUskVWY1VGDGa1okVQ2xKqwqoR9iwHqaWdt63awVpOT04rlDLCYgMo54HNEvqiHNqBonOrGoQp6j9lna4rbIvdzVMaudL+jEulpLKBhEBEfU80XRMto6u4WAtyFgh0JKrFV7qFd4owsY4ez4IsJoCU7Fv2cISA+BhlhZTQqarUXpdohp58fc0y5P+lKku8zcUxz2upeHhdXBawzrCtmDlNR1i2E13W0GzNlgykMi2ChnwriAoqJYK4FdxNb5xvppUi1iVdVFRBY/vyTXTuHGvVtA11KOHlvkDjs3ZMNmwuGCCGXysTaxovKjdHSpoZlYxOOxsWBssluDRqQoyDNqNBEr6sl/lb1hEkKJdnMWmZyLH7dNfsu2RS/7jFjWsel7RjCklpbmm9KLhwKI75Bc0pUDUHUIdUnMCqZZCrUCTiDbApstFi+yQwwgI+cSikHWVYAiNlLx9+lJYKrUOBUCtEj/DCbVZ6xql0kZx0LoBrB+kljAStV5QxEYrRCLBwUsLo1n0U2BNS4bvw5iYU0ZfUr8ijM5MLhkby1sLNOnMSyuIEovcRy5QVdtFQqtErKZZzesb74XlRgak70bJhu98w1ZVrqG3unBo9GWbkaaxL++QlYVzhiJYoGy03MHW+o+hkloKvteHx+R3dYkFjw+yZLyC6AJbH0aV82F3kPECz+zydQ4eNQSkai6BqmKT/9c9k6qYFUxVnHH83Vgbbc850q3SS6GK7Rxo+Q7dSVWkWWHSQIqg3mCIp4E2Vc8Gp/UDq0wYSAXxhbzU4ZY5EBMD/kSDskTOsUmDct7ICIPDTaW8QxBA8mqwUi5NmYn6T3LnRwdrohVcQQZjo1VZ5v0Jaet0iJ0Q8zaIf6+BrxYmWr++o9xVGQ0SKPJassIvatgfnXHUU5L9Rtl+VuxK74O5MJVpFmkKDo0M4Fv8KZgXTCoBp2GyfjRQfUhaEr2gBeX8CVZ37/lE8IVTgLbMsCUdJN3Guicvi+MK4cBBhhC9k+vcOi992NzcG4FrGAmoQleIfsI0u65wsdLyck1CtKHb6XOjyT3XU5wnsibEUuSIMCWEEvAUKcppPHvW7dlEC1rEONSnaqTNGYPw+lio/fbjR0MBT5IpBmmFmYYFXQynjZWWS+9cM0tAvPGGTOaYJYtxRFm4foZvKi1y8R3tNCEknf8cHEJUj1o1UHVqWWDmUCNumIK/MPfXgHWJvs2bNoDcwrWwCvowlai+Tpo/jwnAhwBkzhMulfozjoUaOG9PiJByqbCr6N0JhakUkNRL/HrhJSZhUXVje1iwMLG2q+ARRvEklOkTVirGE5pJxg1OmzXuze0mNDO2LdSa0STxuD5RrHHFHaQKr7EC5lZ0ChQRTFEcaHfp54nXxXususyQa5LaBHx2v1BrRw7MeglzME15MJWS4ysFstNsFUPUC21Hpd94FR9WFRVp+bO1A2V5mG9TqwtD2NxQOEdgvVPL+URJ8qYWMVOry+0ASV1CjX/iTz2+zkIzk7mUIHAlGErEuVQJNaSI1aPKTPqu3lYjAjF6ZGq2hGyHAQHLytuoLqCQiOa7Ublc+WP2CLzhYUQC4xQZI+s1NoRVcQbLQ2rTIcvEVmkauhanDymnp5+hgifhGoQqzNgbmrFBdVLqZhQLHd2eKLZswtamSJKKxSt1Swou1FcHiAdtw/v/mn6PN9NQ7KPQ8MlBELPybYaiJyuXxRPbXTOvUIU8VUh2yzT5w44xMjKDnYOSwVLMa+w0MTv8LszMAvAUcNqlCDWxsvKJ/KwSsIrvlp1Ck/oApdIyOrVuVTbBZ8Z/OS6sHABEdhE6xWx6oFPPWTGFkNLvF1WCzYyq6rYLyoNRCyx575aoC+Jm6vnp1kPrkx/BWQkYHZIYSk7p1u4yPx+YXp1zHskmcCswhV9RQlIyXs+nL3x3Ed5kMmC6dYQA1PqA0peBIr81Jz7S8R6XwETsoGscS+u5U47AlK8Rk9XzTGnsNI2NMTUw8EUkUWyugbXivEhy4HZ/VvI05gAFi5mUG5pf6EYQ/11gpUp6jeJFTd6J6uLVu47xBJIsExnmpDFkJDjGW2sJgnw6hfSDOqSscKkuq9hzc7gC4DCMcQJw3/kzpPSwENqpGVLaMzje2ALXH1AryC7VEc/o6UJaOI5ov/1UcKEOore3Rtoiv+qV+ZvGyGXNWhSaZMTW190CSNrbnh7fMTa2mRwkogugldY7ud9EZJcB15Cas4Ttg79eXnmgz804UthlAGswAQ+gVgkxk/ysNQTZBxNohDUBScUzFinmEJqFIZBSTZERc04OkvSezBAZsSqY/42ruDIEXvXNFBq0hlJujdZW4jwzrAKWCipKIkEWypqV8akT7V4hg/4EaNZ9kG8Zu9XbOwKu+2HZj9GMCxgal8+fT172bcDqt6zC+DB+9NDclBiTxXo1cvMJsB6nVgGrbt3EQEYAmeoIxEmeIVifkEmdNSpqp9JE2LnYW0HPfUMUTaPisdD63mtVo5eIfyY52HBJC4UjEPDDPSlB4Eq+92aQmodfFe4ZMt00COMWAnmE/WhMCFWoTEAJmw4rGH2RQwUkrISSbCnzFqJZs1lufIH5wKeQlA/+nIij19ZysnsUtm5w699EApA2b3/6w8mIx7V2WTmVK9YlAqJJNL10qmIHcadcwnv5EDNhJPix607U0M5PpS33oFPOtNcWAf9Y6LYMq8QphCyxpCiaNg5mUy5uwNweU4vPhKyEhWsO+0wI1BiFWBnaSqMYmHhLM00ZdIyO5uiMlQtlINYCXXok6ZDaCcJyOvOVtXybHc1l6wnejcFhTSytSjR8DZP0e+SpqjHSl0kV14sqp0q2Op1FmEbrUr9fNFXsaTGbakT6MzlySNesbDu5rypbJnaJNl+VGZ8WYaJdTHVHLaaTsCTIsQKyQ3xQhhONZHNiCW2kf9cvyXkSTUhFr04WAPQFhuQEYtevQjgSG8AgFRIIV0FCrNToQncS6ZB81MQyZobT3RXkRysdFbyHLCDkhU3tDpoUaRz3PxPZnCLd8Ii5igYX7LT8qE88kzhF/6iRrdoN4yZBuvMQuv/nbD4WZ031FGroaqbjrVx+rHmp2T7WzZWdKyGUONoQfMKQw7TaJejbCgmR5l6L7QbD7u4vvLLcrOKR5r5zsRxbvPa4I8pWaYzz8gi6R39xZ+36Jc0hXS+4V9zU+y1RkWDaU2YIKnvBLrgVlAv1s2ZWbskOhwtVHnMjTkqKrqlzBJOv0HFFAS6cik+to7F2ksDbWWsvD5u/fMCmUqiz06xeA1YgyMAhht8QguLPvU3hvPpF6lY9pgYX68Ra5ZUavFmBxbd7cqIVekDiord4QEMiKbMaNJDofdjbBLFyo20PM2/0kIH+EcSWTxVcJRYU7MqoijpUmhmQ+htxEqRFYmlwNvJQtfIu6VktUtuzo2sfLMa1Mrhj7qX12QpLw+087+wvbrCNGf57PzPi66wXkSBNLERX7SwhDDQSNDjy7S+36gqtaJsPJ6RNSNW0T9ZRA0e8MRQK3GGKAqGs4FyPLdwaAhT04iVZDZWUX8TggUyUqdCAN1EU1dpOcTv3UXVfh0ppOhl8Q2a0d11xTfUA3pSwVaZBLJ0WeJIydLGN4hGW9wdntQGXf5DjUKL65qruIaSnZXeEK9OPm46K4T9YFy15OGgf1Yy9ICtZMyLwkn8bVhYwibhl3QKFLu9v0GzULoLm6g+I7afX46sQlFF38+hhRzmJW0AJETf3fJBIAAv3FpEGNjVZmNp6qjLq+IbKH+igxSwaNRVzwyKXz81fQpiZSYWVQC3jZrOSaB64FkQgis6OzNaeWC6HlehkRZw5MX8SBVy35eAKjTy0hAYP4csyMdtZo5BsP4k+T3kfT5Bl59FlphWgZYCYhhrmQoz4dDq2P+XyCZFF4+cW7cNXRwSktu9/llZt3XLcCVgSkTzOil6G0uTyckQoChxLPgl5x2O1Kd3j8hIWhOoFHMoPD+881mPEgzJIEUTBc6m2GQTBh3CqdAE5vnATCOWyJRYWGCL5JBDp0ckWVZZ26MR2VoKA84n9LTvZTxgZ3XZPx7/r3hrCI8oZvCKlZb+Yzom52BoECG0+KdAlX+ZxNakS9SU5ioZtuiTuISWQBVBZVpU7rqfsbTd4BOPRz8Rm/gFYm31skOZtEhUOzhYQ41XSEYAUPIAoRVC+VQITe3c7BzEE14ZzyQBUtEI5BegMOtOqETnwj26c6SQhh+tmWgDkAexoBSzGtLZIYvhGhMKWapKLI25I/tfgqrNt+vr778kvUtz30GJUgxkYZQygZ+LOWhFOxemQ64R9K9ErQoluxA9kyf8E8OKMkIjz6LACrbS/XG/G8H6s9fHjQe9x7XeMKAoyEtByi84h1tuY4Gj3B+UKhX4RQap1ccHxoXXbjiitHr8QSFLL8fGssKEuGCVcdHsqwYOSOd+GjWQ1G+akHVeeyMJtABuZwr7gZ6rFWLNHT+VVc5ndSaW2VhVkcKfuh5eg1W2TDIdtBsemrmGIyutaqK9Cs16NkbTf/Rnv4po1RSYkcWT4MYPkUwIhZIrtLfBGyvEUFSOrXnbLxq3QhEf1gk11/quHmNqSL2a3ACx0neE83AWYwQehXeFPhqFb5dACmeQu1hYEIsfptN6MtqVC+CJZhOaWKFHugupLrzJz/+SMzbOB9k/YuQ5sWhKLDBx85B9IGvJ3/G1yCAcQ5SL759uCINa7KwPfkNiHy1Rn9QQhSZxLDFgyvJfCBn5ImzZjMr0Jq3oARYqLRbi9jLbHRyl4feALpxF++AUhhEiM7Pr9eQGsZtUAEOwXQrl4r1CGAZPON0df5FZY56mS9MkOXUFkwCN0dI2aigpMpB0zhdEiRUxqccRkkJ6+j/qqFiDo5kQa3XNSqwq+4N6htQDWRDligeLbUEcEzXpHclHDVZirsW1hh/yvdwbDzRWF6gtqUtIOla0oNTtEvlpsBVBFyR9xlfV0FbLOlBp4hLaRT1GtHztUFmnm+l4vG5Y5ckN6eiS1lBpnRKBo7CusGvikusYZgZldnM+HHUOtqrAjBi+XaR05eiFvIbdzf7wtxc+EOsmxhlPtxbRiEWWBa8JOPhjJdoF89Txm+eQKpQwsvCsLli1+CFV+UeZwUJA4QoJpbe9MjYRbRSoiUuIfadeF8D4t4XdJJqxRmNbdo5iuzbK3GiFVqNUnOIXIGQ8chy6R5hZN7TO/LqZAYX2h4GlyQ0wRE6dmHpTUiaYjo1FhzkU0RbdN9ka9x4toqN9gB3LqhnFTY6FhlgvW1hvpJAKnoLCZDe8xZ9tBbA/ol2J7EIs5Vl0yqgvuIUhb0rC3zQuxwLqaj2bokmiX+kSnFMIfq8SbpPJ00N9pjvEP2Ml/bMQKwSj4JBdQlKK5gEWTKUraaHACBJHwRFGEvQKqlijfuss8U0/L+v2HqcNyEIBJ+ZSVGU21hMisf2MmlufmGbstGSJ9Wg0HRQjwI4vtr30gVgaV1Jg0b2WYFsSx/N5pmueElaTl4VQUVYVUze3sDwpdd8YA5last37kr+7g93snaVHyRoaFzQAlO/Q9c+cO/+/kkIhtb1opwHotMJdp2rnCRFvYd2DDwi6cAdpEaAdxdsa/MnLxHYmFpnbWDkkUFMO10SmxCrpJaJMhVjWoBF7ZgyOpXEpZrNDrL8tFa9QRW2ujTeL/R+0oh/EyqSyU3MSet+v1+jZcaNi3MR6NMC2da2E1S/cTmaARJz2aloySte1hp46oR6Wo9nvJnT4/yDLZ4XiA6KhYyhF3492/EqJwFNvFGLiqJhWXAKqO6lbDlK3k2LyjpDpgszfFUIOPXwhoCANXJXZ9fauJ6xOqJRf/UZ1JGQxrn9OWamBWBoeM/Gk295etrG+3m+Gn4Xq817XozO/lc8ncuVY6CRUpWJUXEGEOmlkONCSr4tBsePCARcZAnsyIZ61Es+iMayqZjLNJ1XSovmfGVlpdiiHIwKzaGDpTK0kdlujMUpbfhFOCa8yO0sj9DHwnsetjIB0u38bWO/YWHneVazzsepE2G1G9MnnCQtrEMu7reSXR9eKRdsxqM9YZnCh9xdkc8RaDU5O+F38JOtshB0NfrN8OpmR+HQgC5svOxFif4g6bZQWxviI/baXRgvj6Bh0LWaok+yFf4pzyFcyH98lwX5BLYMh1n++r4vBJDKJhItWhDvWFo6aQGigTO06D4sUUXzBkD4KogRttB6BdzPDJiH2O32fkf6qUFIYqCJSp/fVx3oNGwttgqU5yvSInPUgVvDz+JvHYDndMClhFZDYxrgX7KwhkVhgB6sp7kIKsehm5Bo3tiF9u2JSZVJpJYk0i2RLJIu+CzxoceS+EbFfNJi16Ku8qBUYDmattq8D2jS0vyTBOZnZ3MI5s6rd/iG+lS+LrZxx1rLUVbqBL+CnyKKzlX7RVYLUz3YVDEsYt666UwM5WT8Tydo4EHqCqyKuGnoRHTa2U0H7egxLip1YJvH4Q48igBFHo4wHZFTS3Z+TEXqHWAAr5M7DlXjuBB6ttY5arW9lx9F8LoeU1lX/oheKGFkSv86Or8GZrNI9H9pQNBSSOWF2FpsNEgNbwN8ivyzUqv6Ob0Hop0mVowbrSklDFRyZw6jJXDnSukQA/mLQYZ0N+Qxx1Y7V6aaIu1GcZoYO1AGuZ4i1JlTA4LBSKsIaIVonVk04h2aOMj2Jy4gFU9mMmcCRN3KcOwZAho7R1apPW1gaeg9nztq07HxAd7LG8G5HrT6K22wtdKUZ1CJG0CZIWkLs3SsaAPBKE4Zt9RySF5ggeIPcFTckO3CCBR0jdskLlQT7WqqYZUNqZ1L/J3B6EVc6sNYUWUlDOQJPj8dRkDNvur6X6bUcmtIel40qWa77L8G0CoX7SRtuQC1et8C9CCeFEt2esrLW95XuPywlvtCzJASPFmg4v3PTuQMDeV8YKUEcm4f1kjWMpW6GuKeE0PuN0DseHjD59dfflVgbXiFnoUHVOnxHm4X7N3NId9zCeOdJ4vuShrxkLKuiTdLR2pJkxltpJQq/Z6ErJs8KUepSAEk1xPCYSn0RZ5WRZC4owZh9trSZEg8dA+686pd8GyxKclNW2We9nRzCzW1ZKgIK+dCQfB5zbmsvcmPCOBHl/GdEtEAXiBV70EUwlCJLLbGVmeMANtYCV8c3eVoCNsTiWEDoex8nZhx8fT7Or7/+ekcRiGWEtVJh8c4N33EaXE/zG66lXiRlLRcI26sZZw5j/UqCT4I9wZFkwn/UmjmoGnuPc+tX11rngPlBYbpkX3lcQsFSC5c9rVFI1SBYbINbA1iRS/docSmpqPLB3lpvwAEuEYFHBRF50nrxGe8KN+sHisRI1KFDLagKNYBgxCrKHCpdIIncucX71meOmMS7Y0KrHho8wcirY8y2Hbh6SiDX25oS623/9S/5fUdRfOj9dLAse3pZtItBeeg9t7FodvnuQ0kkqwpa7Jl+dbVh0lDqeKhFxO5VVpUgGczCO1w4pUJcUHZmoOo/wyU0YFUXWqf6D+GKOTHuylmBpvGcC4CKpKPaIuN+4S+cMNZpuc493zf5DsRs0G2lMjtyR1Mq8BAvrq3HsSJRJb6GjtqzOfhE3oVvwq+phaUoMxuruIlKjFLJSzjPMxM3MmPVJBHey5pmvd9/fchbicTiXOhafdydQLyF3nfCctPQuwJtn0EXYuVSPX1wDOsOOXQMrOKhga1Gi4/C4x1+eBMQbFEznC1qFpra+FCBBdiqV95ifRpmNQzAE6yhsWrcCxXWkajoRHEGXdIaMKt4WEX9QF2dI2t05lxgciEMDfk1Dv/SIV/PpFh8nVjiFFKYO4RxODOHfgTfPemi+4nrdZTIx9qSQyJyiet01izr/fcOrN/PYw1v/DfALLcfvDLn2UDWjEZ7l/Kk2EmkZ114ZsxqDEBDTkUwtLoZuSv04BaSR//5k/5XpVAU1Pyb8gvk4XlXAIRkLSpfouQWPDD5DKXAzhfmH7OxGHM3k3A8N95+yk+1T7yBseDUbu8JscSwUisqiWFRvN3eg9YfbbHBJr6RwWdxeyv/ydu5KLtOw1CU2NhyzxyGuf//sxApm4UQbtryUNLElh/JHeYsJEVx5gZQc7sl2bxZaN+/VmBhPomwroOo1q/ROJqfEYsb2sPYIFZu3UelgJ3BrEwtq7iCMhlfFMr0PDsEvAzOSNJF44emmRzHYi/t6pabPgq9W2FWmVc1ftU0s5sL3La1dYyfSkboVSGYtYEJ6VkMKI8KnxCnc/5m+VJiTM8WvAlizZHai1eYYAbRuPpmAVRmCxkQa/OWT5xeeUpIQ/MLPI4HgXjOZWXRuFt5WiFdP9+Blows0NBvYloZXhBr9WpgXQ8KEcwnssewEYWulGi6Z9ITYimJdEctkGVZReGp5Lws08lcsc+D34XJeeNQYn92D4vhBgHhlpHxYETTtsBAhb40fiKMa0DPCgkRUy+hSgPaNuDWzk3DrMB3fQXxI4YFc4rZFKdvCAOr0M28CtYYIl9Fj6gYJxk3KNBOuXx/H1HvQ8TKZpv6Fc61qbniV40qGJWUvKZTpZUqyoIsVJx5WJiTJygw7ZQmfx21LpjQpmCGzCdbFVkDvSG/SlbtjvlErF0F14pYNa0dsduPV9y7hWYf+oU8MswCKJAUeQc4ySHcUfH4IqRllXim89PVwOIP35lmFvgwjleJqJaeLV59tRunaPUdGNLFr6J2zQmK7tn4uVgzW0fIWuunmU2p+oDtm1rf58THSB2Px9XGWIaKEsCOysUnaKUDPUQxX2xmSIlVlqg1pQO+OTQPl3Yyt5H3RjUFs+hAOSOIzk4s5qHTjAL+lWbPM+UP6hDWmquBKT8/lcqvIWKJLMsNLJfvVWGSlpJJGfwsQTMPem2I9ZFbmFVrjT2x7D6YtRpivjHs5+0y7ego4TsS0cI9dP4OoEX43TYpDSmLy8zpZqIJR5U4xo9TFRqp7atin2gJ4KJ0Z6KZSUXRojkPX4vkkC9La7rXhbDqAza5VdnyYlQJvAsMoKu6fHmsCoGdNF6DOD/0YQqN54Ahp1aKycFlOFKqWm5m3rx3U3FW8VWbZWPhW5ZsBwhQHVJo5RoRYrpCPHrLwpr1YWEPh1BOYbcKk4CNndc2E2BTKB6ubWU9N6J0kQ2MavDdtFexPbKs9LRi6aRioRfdN/I1DmQtGWmMZfj++/hYTWmjuGn6YGOkkyk0u7wKzlbK9EMPzWg0oWqMsZb0ZLq3O1MjSza0aushOrkUWwYe4Z9ppwxIpnCXZcyBV8imeeqzwozJGwsLYbkZBATVZ4WwpwCqEoyHhfSrRZ0tKhNL7ZKECCeWFnGw9y2sFMg6ExouXIGsb2tZBniLG8Vb9Q2u3RHrsE/cwhrJsg8/HE+ag3K9MLKARzWMMmB4RSivj8NgM0XiWbUUoTev8NRMizBzmiGeq7U3ot4VRlJUWZzy0728uqxzW9hV48voj4VFFEn8uNsrYfL+OHq2ZcACihyc0qVxGeUdQh/wEooRNlbeMcxqepf0tDAvgIWyOlZiAauElIosGncAm8w8m25IbmEzvEEcLYLuCEnyoZ7SvxnDksqOS8BVsrKS24XDx+2a5c+PEcjiOeZ7gaw98SwXFclCZYVV9iQOZlhojofqE1LKnyAUn16SJf8Qam3e3lbGqUqmt2REDiNavbej/hULSxWTjQWwchkdR6rUAJk/WpEsYyqA9dAfsYsQshXMo4qsNO5xzCn2lQD8zADClcN9KxepplBccw7mp7HGvfBEuasyXxa6i1gDdbZ8OALchDDpM81wOYemIEyNfcKDt0Ip6zMKHb3qY0rziYUluvQf4lWxsvrfB7KU0EACfvlo4exvL/ZejSy7M7KW0QcxjlsBWclLo7QRWtLY5+NYTIvPhwlM+yuY97CTpphVsOS/s7BMZKRevD8UnKhXMXOrisyP2uMC1qEIt/+Su7Q5JL7Qe3J23XHkJ3dgKg6l3HO3uCEUwo1XGDlGJlZ2JbHbdFTHdzNIIRYcuhE63PdZx5G0RKxEIoyUxKZaQPqc/bVc9yTSxTKGP379sSFWTnDgtZ6Lrdy918ghhWs3a2RtZMlRfSuNtDLKboabrWXbbgTUi+yZtR9itrAuCMenb/bLUQScl3USPCFO9R9ZWGwU4NBLmVattqz0CtPX180CfsdBoIn9/pC/Ew0qcNeOB9NxyvjrGWpIphctKlO94lhQCMlc1RVRAsA6MSpgCbHaLhkCzSwZCjlTncrM6Q3Sp5XcVQ61RRuiainPqr23sJC+jh8uG2RZZYnDRm6pQEU6bEwqI6l/EsjCLbSn8LGMLLq+KubI8lL5ZATyORJ995/E5CFiaqytiYWTaASyeGr4H1pYgSz95BdW39CwtuAZ0pYlRpulCfA4pQhgPTIgbriFjUJH12XvSm8VgoO5ezwHQDI9NutHaDodPY4l8hBHZ8LsAOqwi2TtqQWxYCPoYtr7XK2W2oQtiAXOEmlybmkCkWqVYCO1v2phoV2/PAGWZt4sOMNzAT8KtXDt5jure/Hx6wkRevILCzsIbNmrSV1Aai90vG9YmzLv8iBfwlaJySsTIKilyNIukEW21tublZq4pUJ2BAGVrohraLYsc3ktQJWgWJj5O7AOLI669AEFjulQMAe58uJYNX8UqjBEx4svp5CaVWgQrWMMJqV7ymKoRKX/LagKsV73+urbyXBKJ4mIRc8CLCyuG6HTtBg1341hXUPs0fEKcwhrtQzfs8pLg2nJwQ5a6WWf5TeU/Aj6ba2sT8Ua44nBwznUCYNUjFFv4c6WXESsLb8TRMBqLc5OBoAVm0kJBOCalB9ZWGxq3ESnUIfNmsN1aZTdOa0OrAOglJeFKVRCTTBRVqXyyuPAdKEziwOmmTUMWvVecOXn4rBFPha3uDEZc0uG7T7VvRLroQrsqcH+OiW0opjHDWAIucpna6iBl/pyDSOm3ea67y2s7nABWeCqUlO5VgVGvRYgzqerYHGVZs9yrV4nlj2zs+zG6YNN/6bw9w22PLpVo2mLzPYotHOTMltFF+lcm20iaawYYtXCQtS4S303T+dN/B1fIC4RlQp6JID16LNuFIs++XMEmmgnF8DPuQl4MF2UJJQSMavrGaMUec/22eQi2pDQA8qNlOb6xUJcujqyGljUUae4/qCR/ARC1l4pgrKI3MIPLax+weUnD2Vto+1IIdZNr2c9bolWkdbhCG7wcnENIFB/a8g+LI5rWSysVKSaKVaVzEyx1WJ1EvmL938U70SDhyZwOFlwD5sUoc1SlT5G+42FBbWSGLlm3Lgtemla5smM/HsL6+DPsiZXVWMrWT0CEP1QKuPdO5Z56FdyROMc5RAYqSHpZpVBCpZmugDDac7/QOSzFFIEmbVD/nZEkZGnxq96TqhuT4llc35uYfUeIaUHxPphTy0W3MJn8qpb+PEEyHJ5NhNb0TXSHGzVMaVYprJ8iax8RxZuIvI13FWU2XSi1snTLBh21gFSO48qRgcF7n309rODdxZW7hue+JFlrZU7Gqh6x8JyKY+40kvP336QbpK8kLOcqEAXJ1ZN4iyGEw0l28rLXFfqdBpa0E+S7iNNjvvJVgiDomr9/xIyHAlFlY5crbzTrAF11IRYsCqHgIQxhBj8duk+eyMPi8kIO52Q/sMtfBpHI6j+sFeINW56rCfNg2UB7zyriix7Di8UT8NhtFfPdN1bWGW6pw3kP2C24Cse5x0GeUKa8W6eWGUYU9bO/foIhgW19ku2FzRVt8+y38dLgLpydf+KhUWZYrKwHkc4hRK+5JU3TKIKHOAFvuSYKYxVEqA03A9JnUGR1nCYdIKqym6Y1GBWTanYrB4oTZVkfxYbaxvIKh0o1FHIyMRiYT6V++suIVIyskBejo7xLWod9IHBSHDAH4RnO5TwHPA+dL7vMe5tuZvbgTa2JVTlFApL3LPazkhLDVsLS8XViqyqDE3RG1YMwkoQa8XtVPJcLAtaRWv9Rm2KcRUBNUsLvyA8+isXThC6s7AoIz/NmJ03/NjYqeP7pceIxYWkw0FjTTulxOzgqg5JkMsyHmNIj+eJCcc0hXjZ8ruX4YwHOS+mkDZqoKoSjtC76HQHLGTWLUVtOnfQ6nf47VRlHRcfR7+I1feWHAWIVflQ87ZoM1OXKIyz3aISP5XsPK0BsZIXVmSF0AkY3VtYtvUuC4Ny+OvOwsosu5f199liA9OmyAjhXcOWIcQnUF0bqFLBrCmdyiWYPerVSPxcOzPMefWqhUX5LxZWf+AU3i6l/i2okN9OMx0SA8bRM5cYABsTtqqQ41DMJ+yxx+ORPEp5muBLdYiV6oy+i76Pkt6wC73TIbONqhfqw0KcRgwgipVNzyAWg0xHE4byfqqrXmMaOaRn1enmerxS1/sQWDSsQVvzHqZ56bXi7pT9mOTsQU1EgwZDl0nYa1VsjVMybV62sGhJ7qXRNYyTxVxppAwq6PZWHMsqqpR2SgePEq0v+Ys7cdyMINkabov5wJX3s/nr7DuO5/L7BYfZslN2MXy7dG9bWLEjP3lMJj0pZCmZnIBQ14hB58eEAiBwHGr2BhopVAsnOYyb1w1LdoOQpXkoMZirpAea9TklBUQdSSEtLYVxBUjT6yhUyYGstC4LptZH0vVqob7FZYVKjprzR9XObtYQCxOrH5ZnN0cVFcHrcPE255CWcLAePb1gQ0nO6mXW03b2GFKCtBYDiGTV2JR32CIL9WsWFloPfl/MAlUGVRj5UgyLUdQA0r0sdfuT87dOX40g/b8o5IStVo0pIzzPDsQItb8Yw/JhycISsepHaDh9YxXpSBCc0BQsYy4nFt5dSPUd6+O/3JMIlpRTJ+A0RCwk8a0E4ujDtT9KIXWk7KSVDreDiJEBrPyeTqVSqqiTj7aotjnRpZ3Zq97YA1gOoaR3kfEm9pkCWUt3Z9Z1m+adYrBe1DEcwiTd51mqxNTuJcYQ3M+bTCiQVfq8bGGBLK1gk0n188bCklQLi/r7YhDNC6Y1HPLre3EbZvGoc7hPt2I7vo4hM0n7WTm+1vH79rVGcM9C3J3ciblAI1LfaYdnr1lYIA4LS1+iy7kJXstWTZzoRngpK6FaaOOtQs2oEtYbyCjuHqI3tAmawzhpwsaCaToVdxTjTvUSGlNxJxNHmswpZAvASXxoJ+FID5zJGEUwPD0XlNpan3WVd7PLGQyzaviAS1V2jQy/zRKwXHnmj35HoBw9gsPnNHLbKDqDw3Pi7EyRnmDWBSk2uYUjKpKAVY69p1D3Bl0LZIGWly2sEoFfrAezHFaBrVcsrArXVaqvCGF6HmJ6TN0fA5YPSDRi5opcZUkLvyDRt+41e1TIqkCL3Q+vxrBQYGERxsq5TyoEhqqgrbU8/nhoWkLgdKv9k4hyuyFIEGt0FDpKlSRPSqmqqHSdLs67AgTSUxUoRLuYXa6gWhDrLLTz14lFzfJJHPOGeVWis+ngZ2txdAdshgHjNpBpD7OIMc6OYhZ0/1T9ETLxCCGanEolhhHIukhl3XyMJrTQDnHNrnuLAvCycBshWXQloDWErIwY2IWssfAL37GwKMKsIUhYY9jaWFjSUqwNgPUJnkBUbbOLIwojKbJkcIMaQiswKnuV7K9Bn92qymp+NYalIxYW1sIx/kymxumSrmrzHQ7kv8XV6TbnisZj0AlZs7lyaQ7E+CWx9KsIDa9wN9TO+1OxS82BQffSp4i1EU255idy8jD9t5BLF0ebbdoUHaZXo0Nr8e/rbZ69mtm8/Cy3ssa0iG6fx0BEF46sY1J1CwZFtUe5ff/4VkRXnAoSIgKWt5DfYLqAgRExEqculNnGOiXmGWYIJBYaIVb1w6pfuIa1Ty0smnEN6fHzZqSE2v4Z5fuydLQVyQokLXiSu6myoQ9U+my90ICSaKRzghkA+kcWFibWxJmLP7TmyIl9nadgzIrW5TUdvU1N0VfTTH+rcMYMJmBEq/eKyVeChn3wwyu8VKbbD6wEG5eKfQlfHF78uawrIUQEE6rtH/+C8oF52VntSur0/0jh480IXU/nwdnsOJMN4siYuCVhNjm/vNkuQBBuN8FEBdf7OcoRcwoZ0VCyA/Bd/XpaZxmNRkSvwB5uYQ/UQSZhy4mFiWVkQNQ3gswqDSqyln1gYVVZIRepFk8KGV1YVRF2Tyl7CVhrObUiHZSUd1PI28EjR5E91Ka1TX+uhYytuluw0bLnV+wlCPSpheVx8ZDLXcN4WhPpVIMy0UfHRTcvx89c58SSSLd8l4UFpFS4tbZoY1TvyStM92feIcp9oY8DYve/gKHSGzBLe73dj+kLsRxX/mvdf226+zUvH3F6yGl6eoN7XV7tZqFoZlOIMnO30LrJYFA50rB6c73SFLSnP6sJseROWu9yCeUbxo+E9oDqucsxBJCd9AQLXmFhCVvtSnBAmmJZXuJC+zAWOhs8MHxuYFGm+E5a6hvcWbeq9XQgxJJFlV62cY5cRengUUTsY3OlClpzy8n3xESzOP4PFhZO4YO11rFJ+pRhdOqFlxXAYQ9lX95V0AM+41AZZUy7uswdYNCDCNeeg1mmtl7YFZ7a4zfezkA5dhuEolkpMqTz/v97W4FuTij1203aKfbaEkLa7ZvJKWBsX/KxYg9quoyyNUVTkKV1XxIjbhNVuDaBsOS3hJRcJrKIDCNfH8do2+aRLr4FL9PPCkeM23iOYnc2v67404r5Wyufp6SfLtpJsbRJpT2OuBDU3rJhObBb1DecVJmJhaN4cWkmP7B7WDOI5ThZXBbUgUyWWU1ndVL4UmBYYPVTOdVM/jsWeVPeizPlVhhnEvO2HwWZFLXBm2zLF7No89x4NWTcSdtrrXCw4NB/7mF9/uXtuwp3jyfyJX9wrSxOgkx9QktCgcAr5/oXX6Ole0QMEepgz/gN5Kctziu21EZXySiDjREVPpYcxTxoDVeWzc+K3hw6QHl/TjuItfnI65kxa+B66XytfTjYf6x+DSIU1JG11L3wifEBKZX/Pj8hd0Vjn76WTsQ5OFeuUYYM3gG2qJEgGjRoeexLfUOwjHQ5xaYmq80iuCRs6bKjSVTfRQBIkr+Q6sXAsNc++V3Su1hlN4CldyJaGqadm++D5VlLmJulUV09Zm2tjZhjnlbHVFD03LcRS9tW2HvOF6ZGfU+8+hbjtdbdFC3yzun+AGSprMSV4BEpBRb/lYd1HfnI26C5xvWfC4u/KqZaiaSTNoFS8FpS66B7jdaZaAFfeVMS51twx14S5sg3De/GZlmgrfq9tZMzTlh4iKPl0D2R/siK7YZec4hZ5YkPMwvn0a+I4FaJjCZv1An7UF2ALly3POW6qzhZdpywGE2AbUCRoQ/gdA9rWnGyqHzHhYKNTZquBIYIAphQwJgAElJqHUZ4eedBVWZk5XwrA7RoEVQMIBs1zRBBP3L36DHFznSW25q9aL2oqmmbQclL2JGcMz/dEZp91Dop4xwBW5z/Gw8rZT5ErCYfcaBDs+yhYbQJ8Q0mrL36n6GcgsqpbGQTpcbthFKPj5XhIxPTX8xzhrlSFWeInVbrSyCWSkKsmzH9peUlNfVOLosepuXThKILbkRfmfwa8+IOnm1A8Si38yhXNs4+54BYlnm1xJUlh/DIVMPqMg5UqcSr3NFjJjNTkVXxsPLoXC3cwwdsRIb6Jh8viYOs1wWPZ5+QwzSjuxHh+SODX0mr1L8r/5bAqHtAOybQCIl2jGrFstvd3k0HDa14fq+p+8K+Lc0Tyg6usJCv9v6feVh4QG9vASxwFBtYqWNFCrJyXPPpPlZbRq2bRQ1Ucc8Punp7EGFqECt0LNI9rIkKaiD0et+whlgjv6fT7+ly9Fk7m6ohxchmJ9STDP7cgo8mJ2vOLJOQYyW4XPOzX15uCK1CS1iYg7WUldxW7kYRKVUSpSy1PHImEdU9LN0ODcpGvVrID3shy42X5a8iyzl4cqtK1BWArI0j4aU4eiaMxdZ3cwjVhBXbyO3+W3mJUNUm3LAEsWLXc6JALutX40Cpu46v12GhNID161rpY4GS7mEBH7iFrk+r8ms9QseUODUUqr9qSkYZrAl+5lpHzf2MK8YPQ4z0fuaw8hTbdUWrMsbYW59mgYxeABawrGaIvb58nZIVqqT0jt9YPk2aAZ4pmI+wUFcf45P6uWmVfIoeRauxIcXJAlh5TeDMaq9QXVwcTEjVoneZWWqMwBCfSlWkQwyLzUSBZFra9IKs54GhP39PhOsIr1pwqI76Cpd0VbNcfu3OEcGdiEycKBu1jTjz3sO6xVB4eMy8cd66MhkWYvV3+dCPPa9M9HMJssR5oIp7BlOpPS15/HICC2hk3j2JBVEKs557WLmjK/3HgzWRPq8Hh+UdOAAr1dwJhC0+lkrGziDinG48rFuPC3NKSFcrqa/5d3u2PGearSJr2oEX0vP2TfSPV+9AyrCw/L9Zj52pT3oIAGXOaSsFOFsUkSqYlJ8mTyompcpJZNUqdNtykl+6qJilD1SQCk9x4ObCo6gOh4lY/mJBwSL9/l1xf4Ysc/+kBeFWHk9sGEahVcooXRdZHIbYMYjo6ywXs3L6HgAbSjQpyKOm1s0F+FDyHeym3yhYukfPvxq8ux+WpWslNvr2vMI4xoRLUQpARVuKvauhDs+WSSM8LILCt4/rF8CBI7QZ/UClvgSlFPkNdNnrvP63puQ5j4hJ14ZLgdKniFiPYxlWqqFwYq48/dzDore+3Clg/4GHBc6oyJKr2RjVRYOc56zA0ltoN7HqQ9wz7lNV/ch+DIpGJLMuwkJBrt6ZaAkr5bNIL4XLxCOYE5NC5lJYaIPATwVa1L0LVjG0xxAi0NfE/Hlg6KMLWawuCQT1ZJ8QyN0SZ1RxWRj6UZsq12MotjAAWMwKfRqcqCzn2VENgJX9XN1z2M80dg9wntBURjZCD8LObjHszN9f7/oN8hX1tC3h6ByO/rDrq9LyI24BLBj0ePtLWlDYuswoqmculohFtxl1UYK43E2d+jW3lEjQlNtaigqDIPhYnSEOvLrBMw9LPSWyBiY/z2GpyZlEFlqkZ/G7aG598uu4gjQRA6aHI0LtA7n361J6CzCloT+OUBuRu0U3akeNTP4BXNqp7D3a2vMTVgGhxFHyzafFLUdysuRhKcjaO26b6Hj3PhsYl2zxFhg6sV8cOKYmt5DfeFr0XA5O7M3aqipMGMqNAeuzMNC4xc4M+jR+I+YYBYfKr/FQAL2xLWiYvLSU5BAlEjoJRsR+0clhzgof3wom1lsS61cL1WgSJpadz62LJWL96othxI6IV0R/p6cjdapSKCpcodXk4lypWnXCAGsuz4seloh1e5XQXl2+LExjrliclfq30GSQ+Qx9pvsiZ7USHlMJquzlOXNc2je2wJqCwEvEMoFshj4tTaud0JAi0mNONRaPszFKsradmASZDCdrmqQnoZXJevGdD/6NwNDZuWL4JDhEQ7tsVfP/ybjdqtgNX0U1OWdyrHZHnIuwdMeKuFfEhSKXztZcMLJab1ACF4srfL9xsbr0qBGVOr/+osiT5FcbtE9c6a3LpK5Ck6MxYqGepJZWalWOnwMUZmog+j/2sCDWmndmnO73W6NE/bqZ8HxFo4g0akXjmKBatvWJJEoc6JTclCJGgDW/3lsIswQqbq1uVwvNhl4MJMdIeSzT6+zJcV0RZUxXSotMFpqEGXyyVpRlLwWG696sV5feA6szij4qpK4y/q/tZZSFYG+KeAkJKTlz9hO2brU4Nfz9fdRMO3vqrb+JIpRvfwPH25adxnrmYtG5Zw26Y4aPxTKVf22pEvHtxpoXgAqI7fM+yZuaMtFrT7nHMXayVh5d9f+JHGvvlU2rY0x8FCBZ4Qc1pDdWc2rxl8z7+J668QG1Aj4ZccMqoMWzAnn1TgHbmtGxxxEZ607CIISeFz80ujAeNmEZj4vIdlil66S8eqmoHNRkoa9PQqAoCzUWTQgMhSxniGasVitLwc0LntYf7pbL/T8e1viPPKyiJgRMFEnXH8PodnS2MRXJLByrbIpGoOv0eAYEwKqE+Hi87cy7aFKI80RajIiSzmbVQwqQ1Wc14R4TosP26jCZqrs+klhxN06tRSWHRXa7iqGrJQLdv6kXC0tgx9I/9LAYWI91y6Tn++yPDQpgJbFwqj4dMHmzqQnwpNmcGUOqBOLr1cKKuSuQFH2Fd0ERjJWSjeFSBlqeksUlQjZlstThOn80lXwXsgBVbdcSA3fy7zJUqz8GAmg9kV5WatLdYEXK8W+3gxgr/tCwUZNkTgTnpOE1MXphNHyYLF0GuoQQ5xhFY4Tx+WYxXvQKt2KTSvQ6egwVEtaU06kf/dVSVfhTN3sVlDmLNdZDLQxp95IvcMWr67XXx5UKQ5isRIgiQSctrz/zCbSs7I1UJhOEISWaeEQW1NLppw4Woguf7fMvZfGGj4Op0zhNaa5UYGZz74nqLXbZ3kNEjyYKCy/KQ5FpqMIqVc0UJ8uzvce7ZVjgiXXp6/o6Qt2TTlR9iWS63fh3DksvK0XMCS2boKSPCgF4t4uYXKKgSD4eFUkfKY6GKAElbQZ2ecw91hC6NJa6QU3EOKtnXUbWvoeQpiIWzL61DFaYyMMCDL+uzauoeO8oeSLwDNQwC0iJWD3AxLZLVo5myIdXtXC3do+SB9lcOD1OhXvu6pN3724LuLorG0BIveN6wbMXP/dDVGR1XNlPPnzWikW+vUuMBzhQnR7kSoBNtgtiPYxCKzZUx87PU0jRs9XCdxkFvcoikK9v1vpys8jJGG8cLIXoprguz686WpflG2vExZeyWh5fLl1nWVjcEMuGnJ7hItQ7dahmyHulN42XJTlDpx6EIsI94kA8LpRbcL2UdIcfkcai+uAui8WZvQqzWElQfJAlu5vEBHBQM+6EfrFJH7Y0FyWk28Y/J2VJ1u6LZVZ3RD0QVQc5HWLRr/bP0XFvxqOTi/wAWdUeH+u7AtQNJwu/xC4du0vj6xhPWfNsK6l4eLKJRk0uMlk2jyKoxZrUkbohSPkJB3UbWEKWIlIt1ysohoK7byDL4jskGXN1aLVuyXaNOtAnMAp59R+RftInOdhc5LDWeHnzr2tadGAWCrwszoDrmIAx417CkqwKYL09vdfmWQ4LbYPidhSqeffL1EaIRUSo+KQGgNVnwxMV+uQ6oXY8rk6iXoNwM1LYNE+0M7HD2F4kQDfkUh9hIUu+Hmze2y//kadGzYaI5TaPZyVgVRfr8OQjrevQ9OJh7QXkt03UdSkK36W4bPgoPpP/zskqSv6wYdbWVgzagFrGbTp5JDjjxNBRHWYBLfflTvVrAY4+hIQwiqV/m1E3XMXqR/l7bNGQOjXvGvxjj5ga+/RHdPrRzeMj6/iYAS2HSSIl3UM3NIa/dSpg/yDprkbUNuz94xdaWPJyCgt1cbRIxiB9Hr2aY9lNslhrt9farfLmsTUFijD84FphPqfBd1NmcRDJnnhYbWRRkS4fiEQWUxBj+cVXccawDxEW+qxLlrXvz8zoQgktYk8rMaqf9TiyBh6QkIUkaEiHkxc6+zWK9+NcLpTgDF2DmqxQzOGjFMjrPmpSWePvmw9+wmam2LSKm4X/NY6xcw8y8jU4Gzq56ytStSXnBRiFLS91YKS9clLMrgTUQmidccaiSej37nkenu0/eEKouXk0lYXfB/izj3nqx/jkKhtgqFzL68pfiQHb6+vhF7fvuP1x5A0yIHGl8O0BOyhN+K6DBbIwglgf0tDquEO+JIMvokH28rQ+rhZyY2HFQSrwugDG0/tmuPLWoz+IxVyayPyBh0VYiFmh1sCc7pBl/s3pa3KOyWLaWlotTdXmHErOlpvMk0HVkxE8ilc0nORSGGcNu8vFqvklx8kqm2AUbIFpZxG8tLNirMLXaUsztYJ2BK5fkZV2+Fe8CSMOFFUEoywJI9jAxN0QSzTPtxAgeogpygzz/GxNZ1PVDRoxg8FAVP5cfbEo4rzgFPDovzUBZPHxbPejPnRRxfJxTD7FSZcICQDVUIb9wOqgCmDBC3ysLZ1D9PvepfMO4SadbwqJKt0JTYo9DhLFiImQINa0XoEuvIXxNz0sLLEhkbW6/t5RWWpUW506Em8ST9Z+buXwDQ6DY2a2iHrUWgEnlOXMkF4gCBbwgYQpG6Ghv2Ss4TgVDyuGFksiflbn2X8OUoQd17iR6k89AFEnHKJLpDteFiCxLQxFBxE5cdkCSSJYQs3FipP1wrk0vooIMY2oM31eo9pCRvru5qqRSsrK6fF3T5iMrRF0/D19rZGkSY11Th33zNOCY6gIF3GzAFSAq3CKU1AdWBVgdfkIYPWS9PV3+iw0CMNdViFWX34tTKv5mnt0TtWQ2mERb4zebVye7MkpS2I1FKikAW/pdQ8LWadLcKmq9yP1Pyw66y/heMW2tpH60dVBp7SKL0hTTWYQTjq/37e1rez6GvuonxQr+LWynZ6X4oFlLmydZHS2Bx6MR1MaE7HCLrkhnypWjtawAwYCtT0sZXGiUqMyiJrwMjP5ZGmCJ8TGimFD4synD1ft/CWT4QYr91Qiw4LtcjESBhsXFIc4rLN7skvNNM0PdatgazfjX7xUrPq9wDPoRl+1VCKVB2hOfIgbJLr8YcpkBX9GsgZOOaGfzvSOlXM0rQ+05G5lh665/wGqGrCas8RNhR+/qjqGWkPkWvx5pSobmKIP1eMhXcwqq5zjVqGY61rUB+WHrVRipSoNKciapK6LLyJVUPBlD6sa1sVUQ2pfULhEh2xAmRC1a7ciCcDtsNCyi7nmWP4r27hs2Cp3LI59DEKvdaDmti5+oG/ilktys/gtOcCwzvKhcLI8rIHByI+PZJYS5qSW/B89LDJZ3cmaGi+F70iQceQ4vy7MBo5SfDVLFg8rGiCEQLVdjNw7/zK8mRp8Katl2VJFBFWraeULV6vGiPCni/SM8wB5UHaKO31s70lZ9eTW2F38K7lWFOJuAxeo4kNbZ3reHDHyWt6eJoq4+x2r9pDhYSEEhb+J6KrHEIql8zoGqfhKnexnZzMkp2pU5+ow0Mw7c0hdkb7a2lIQGqrcjvLLOwQtNT2/JNtveVi4a7Spek8nDklWg6FlayvUiVP20XBi21/gV9fyzxv+1ElfAawVHRxLS3Zx05GvjPK8omqeTaerOTtCkxEW2nBcjOuAavpMjy2VLrwp+TS81UiZadn2FvuBH6a4EAMe9MBVR3L9Wr5syDyuYYkM3dOJqxcjwXKtM8XZylNm30Wu5EjyI0bkf1mQpUFr5QSkwIkOqrM5FsKomSWlhtgxUpPMkoKrfPkBVDWfxdnULbQSx+ChHDwTMz38qvjgXiFubnpaQ9u5qbDq7oGlA8AikBHFKrj2thGSM231vz3rzQwK19Kt0ALV4h0yMVZcr9NfH3mnn51BPCwhSiPf9rAWUDi2i2e9414dqn/iarPKBK3TTjaZTqnKUyo0Lg8VsumToxZF6HtbwamxdXM3PCg1ducy2Pkpy5cpMPy89LYywvPiTixrkkriQuB2IsRLLlOQxA1rLsO1GiknBXXrYaUv9dVk4GGV9R4p6iLNw3LiPgMg6WF56nGmoqW4kgS781A8cSm7XDzMtHqOg6SAFtwSLw80HWz9HljSi4quu4uoiMLjSSfXjwrGRLkCoSAUKudjY7hYHEGYOKeZ7ompZJX5H9ok7k7gWDysnsZiuFGrxXpkWGDSJ74AV/USPkKZf2vabXfQLT5LaFy6Kljrqvoj3wWM3Si36RAWzmyRybLveliTJppJ6r0KUS80ioa4k+cPNQrFsSMstGXN0g5zjjul4s7sKkoMMRzhlESc2QUTJOlIsdFkE1oI9Ux1QDFh4DjZCC1Oj3R/97BGqrw5WSM7HBUXUtZlGq82YfbMw7Lh/CSqpnwZP1Xele8m/uQJByFRdHdfCEulaa/5pyOWhFpdeJ7VbZn8qNVgOoivvCnw3cfJm4N6w4Mi4gMzBoPUcmHszsWSLj/htsqn0jHjQcGK2xzz5/AAv7Zv7UPPxgpFE0hVPSc8CE7KWlWPIL7kA03u9e/040/mzgDJYRqGomyKIoXh/ucF6/vzRpiyhWEAJ01sWXbLQh+SrLg5rCxjL2BUvNhF0xs4bChZxxTbNpY51VqlCqTJTywsqpyzuordQnAIsQwnai/glZiVABuxKnaqmUE6anauwvJaQgQi9SvJsjLHIsLSNS6jyqt7jrerwTN8uD5xZEeNBIeb4bJL7G7VBXWsrGW6SQ2p5VwuxH5qLV1Jgigi3fflfnR6HvQ4IJfrXjnUUBKmKi2XXaLuvhHH2sWxdTKqjC1kCazInupesh7OUoWnSNEbcEiwX6uRiqD5h79wDOGYCSRsWcCVqDq08p0XV9zCjdoG0noZvQaWumxX4Y+uoVhYb8NYX28MLIgV1IOOwFYQx3CKsk8Jvr5CIrk6sMuyAbKlCpEcVm9mRfuD3QZSfQ8S4Nn/JVtUkkOZbr+NYdXo+fNCIIsc0ljiiW7wkxFpCVfC7nSicN8KZKHDpCtKpUePLmGufq2nbS1du1FrQOXdw/1PtyojiFybTcH6GBwK9WWF3S/cwrbWjBinOeR1C1qp773V18zF3FLEknFyaqq3ljYW1lJK4Y9sKyws60xkJSlZ6yT7oow4fSYNvbKijKyGLjE8QOc4tS9URQkyQnk2EemGWpI736/agbR6g63Qd/9ygY4yct3WJXlCsETawjmsdtQybU9BrZJ2N0t9ZtO0qYjG+/qj7anfSnZdaAJVqwarHML/LWGeKNU8RxjrTPukQCmqXp1PqKWCAaWK3BokDEp0cA01Aw6MdkZ5qX5zJb+BQhb6M4VlEIXH59+0sGZDpqbdwjFh6ARXkMgNrl1J/hhjkP5+q7Z1mKniztrvqzV5QZen/9IVEEpZik6z6ojOeOwPK6hU1ffUfRpwZpHeWFhp5m3zxG4auVRWnEaXpi0nT3WHryN7ITYNiGEBL9ktZxLYfZX55Y+3+jyMYNYuTHy1Zk/LR9IwV00v4kr9MUjbIjVeYOFxnB7iuFbFer0tVRQZc2ySCrBEKp7vq/SlpeUnAittRYka3Zx5DfRjTZG3ZT/vXamNLPw/UJVZh6VnC+ubbCxQ9fP9fb725xqysZYOBwZS6MY0uJvExPTh4hXhazH6LgjaPSJWemTxZd0S0ArR1liJOFWkqaYVArWAWB4guZGuI7m7SkeYY4md9bhT71AYWB7WApO3a5falXkH+1AUka0LnLbI4/U9c7r6xg8bMrh6/LY8kawid+CFHVIt0Ij5qE5IioU1jS4wuE5p6aoTv9CWD1ExtUrkgajKyLoEM3Guq6wGyh7EM8Q1ZGbH22gK46q6YiMLYAlLRLaMrS13/qjuqhFRe1emr8VYOYb+uQpDYl2RVPKS1M2UDNhpbmVzoSAGAapvgaU5ycgqx/y7CrPqyMM6E94n057RyimkdWi8P7FAdOF+zEyAjeGxjtf6Cj+ilPAGHequUCkR6/m6cwtG9ma/sPfsu9JxFmse/ZaQ9Y4SDIJIUCaSF13YUIh0yC0EWZhnHQpu9GTqVzgyMKx2rVwz3qIBt3YTrZCrVxmyIVYj2CpJ5Yp9dxfYuom9A4xqXQBHyvptZQog0MgZybovaHrt0LfJ1SoSz1VCA3cgq/VEFaWTOhHjbngMHvXwCJDFzEzuFPy6XB1LiuJRVwyoFrtR3U9tWGWE5LPkoX5DroivKDHMZLiU9y6+HAVppppvdbKLmEMc6oMiPc3QzGTBEj9yNQVCG3ii0fdhLGHi58fUEA50O0ocjKLnLGELBB3mfzt9m1NQDOPrYVjd0R5fVMhLatHTAIEax5FUN/OQcJnaU4Fh4dD7eDPQIiUgwwG9zmGqksTF9FxSllM47UKQWgU6yRyVxbAkxipJrk2Je3zxL7VhEDULnB9FFikAEllYrPIYAktzHfCW6oib3VIDIm05ls+774bfuUqI+cOmOOq5bbfJwqpu3JhKtuOmZ1iZZGaxZCnU9bQNHqzJa5hYrBSKSuolND8T1vHywBZ+4mflKyJK1IA5SanaTfNkFBGKfKm/WIpCXseakud7oNWqNcocTiMP6zhn/mjzittH+8x8Vl4QSz7g+3mtNYf3VX2Ba4dHV+vU/wxrQetZ7+dgQHeocw3UXQhxn7Wqegrf16mDCW5dPLQv9+P9NdU0dGI6fYnAAXii8ZtOh4XFamHeFmpcnySbxZmZUeLWJTTF5UT4GDlZQhTLZJBpF9fKFRBk34xI1mVriGQAPxY4Hy7cRd1LddhJGFmV4olpBbOIdh0xrJGnDrIUxYJLL0etBZ9zzRBEdLzIgNLNJp/F3QHyil3i9ZYAS85fC/o+eeXTIk9je+dzbjW14qcQRDZNvlYz1LYV9NM/Uoin63bZIWVZh/i97kUEX11YWO8KJhblmfV58qzcGyXOp/Ucx2q92F7erIx5RKNHeHqplveTYla8oi2vCsyxrKZW3TozRKxcUndIxffsKoNCNR2he586mED+56KiqkucuIXqnqGreDXB8i5xMiGOddKjXuaXhg8jS7gm+XSpZ1ypDxs7xT3SqLKVJVexcnXrSvzupWC9VgD9xVe2NIGmUJoDyfFlbFWtsSwX5jZeSIjwGCAYViZgNr0y43CQrXKWksjEysixSkhkaiwYtkx6MiPbxxS4MJ665U9UQfFuXj10Ve0Kqq7Rdh7JgU+AlQmYsg8Dy2WDTgpbks01dpgXtdaBSfWWWPHVzGqLqWurrFuE7pRy33eFAeWb7bUuydJpae10V7pLWe99J1i29+x6E8P6mf0+j18qfHSFJHaAPi/AbHiFz6H256OIZPnjkkx/29LSeQxUjv0odQiQflDK14o24xpjAlymPI8n3D8X+/rcKDMR3SmFMrsQtjKHUrJUF7SEOh6NulgelGGVd7R5JSJdSUJDD/ItFnUKK2t6fvzUKc7gNMAwssrWjrGwx5ESzvZXoOhKryVGmksohhxADKt9ukjnmhYWeep67zKyircsASltix1rhp4hor42E0ok3JYaf6Z+t6acob+oM3fUYyGPYJUZdm4Yr6oKqe7uVRk71+gSo0i67CnHx10Z0KEaH1HqfUm22NqF36guLUzuUBW70eRMrl8W1s/Lx+P8tU2dMNa5PPix3/d8xyx5ad+MpRXB9VQyAQiD4yXqjH6/Z0HXHZQDvmgRYpeO2hpEgoSQs+oVNrvSGVl3ymKLKsysTay+hYFFmGpEsBCr4lc4wYEJwysLbaE5hhVKxeLBwnukOfBQdPCQ6BpWmEShXRx0kVCX1e7evsdu3BhZJdeusvus9JIBlLFlVr5vi/QOYTKZhnXmjCQpGRLUUtFjlcSwiEXJ1CL6HizpbadO6V5tX2GZtflleBl4QEuUdXq/DlZE5TWKRWy0nE5oSALuUhKTwBMbj1Kwv0CaGgLXxaKhCbYgu+ylCqEKREEpqm/a1eqzJPdJKLX4dXtMYSciH9nzDbBVNbl+2GGppzn1LNuKwPoMY+mU/Dt/ELD0hC2ZWLAOP9bzBzOipRk025gEV/E1ucWx2UURsWSSIPMNAZdJK4SDeFUGVlcqcBrvsFuYBpoABYFcr8Ci0gGZECO0xMQihdTHFdnQSvnBl8gkZ5VfOYtLEFPg+TLuJvrD0qqkm7AdV4Z43cFucY5xnj4D9ZrK9z5U0DQJ27jdgRFVKDbwBF5SX5uVL1CLHaj1QeJrIonsK+WK2jDUn8nIiibWusTSreENduNucvjcHPEv+DlmhVu4G1tn/vDOVYgIe/m2FHqunlJnqalS/SYywHRxwvwyt76+KlKt8ZBf/lR6JaV8uKjpLjTQ9wAotf8YVWQ1bGjJwkKkTHet/VGhjPzRD0t8vD3WtzbW51YbOQ54qZgix7GI9XQKaQyozYMLgDj6idfViPFXRd/7WAppTyekEqwQplojQXSEqZDkY0ihxpNOe7VwzrLKJbn37kqRib3AdE31uK05rqpVY8Zv/l5cOTCyzFQu5zSL9UP57eEl2MoSs86zSjr6W+Mahm6sAYCsIvpEttncpa+0fGlzTXmoy8ASuCq8SNiW2Fg+7AKjjBFzyYlWtpFKchhmVhGht5pu5S4pClyetisSSXeHHxUCT/IVPi0ekhTgxK3oFMJGsH0D9NKONsWDQToyizD8D7asWAh8RnCI/NHBho/zRD+l3Ems56/PEiTQn4lNnBKbWJDoVERK3nm3HA7nSckBrIgQsLrWDXJIUyp8XLXGMak0Y173k4ES8kiMLGZQAmiL94PP5lXDyg9Cl14LqNeSrKs32vQ/Yk5yC41JMj6HmulzGFmdiCuN8SemGU0slFle0Mk/sTXjfg+sqts6QAh60ByO4U3gq4DXashsquPMjGhL68goJb+B5UIC7Tt+NZ7SGb/eqhquoxtoaERZliIa2fHkQmhmI65ZsxSgyt8sywDzK30XAzHFTjvLWtqywi12feDBxdzs+gEudNDqWTdV1tkyiOX41oPn6NxNlThu6qT9DFeOM7ZXiCq9ngWvkDnxOp8RGDOscJA4Jbi/RKwzTYATTqHCJS19jah7v3AMd638pd1aGEPtBooupozeUEpJgjsgWJUDcDfEyuCjZjkbS2zqrKX2U9WTVYJYyMSyit9BBNnUPPfD2YexLhWYYhWQdcPU8y9s0ymJZIWOZJTaW7VMrCz96Y/8Rs/WOhmp0+t5NrhkJu2iPkOHx5l3te7DopBGyDPsg12VHQfT27HFBOMoSGhMidI+8S9HL60SCUwE+um1QObOtrJAz+cvMYuX2kVGF27hYNW1YeV1wa0794Zg+2W7hECIFTdyrgi8S9clvomkU0DPOYTbmUFqsjHJmI2CDp9iRMYxB6CXQu8sve2+aV8xeusgJ5dq4LqK0FVzyUuGwaOFrRCmqYjV006Pq4DEs17oxyv4zBqLxRG/o7C+X7GKYFTCVuY2qxSi3s2sde9aUExYpvU5PW9L6CH1gpws0l/HhGAvUA9U5sTMa5/vnYVVebPPQ3mVwNDQ3a4fjuGAkRVLNcXU+dqDtbuiyCSofGGo9eh2EAmE/fExG/s1ZVt89l5uTi+2hnEJr+AJ0PnLr0NSvjM/oS23ijcuNFga/C38nsPCsn21jr77QgNiof2x0zZZcwKLXmwsBsYx4LN3DmnyfRrY0Ute4fQfOa0HVlBShXFt7oBfMrPWrUSx2DjBLYzg+13sDhNwMdRnJWhJDUwQe5cjNbxczSs+yRPMXBXd8+ai3HelGA1+susZiDJ5pjEKUSfqiWTJ0+MJzTPgKHUrt4B/8MGsHi/EVB6OocqdN75jsVU9ua5YIK0o3ckit5LdB30ONmTVNrTazqqRA+aUdzK1dHIskFF18ItS8zGh2au+2hWqBgecchubS8ffQla9adSYG2ARd9/yWR0b1IhbM62hQ1c2qKDRsyQPe2NJQ0qH8QRezlBURN9QVTn8xfbRzrHsuWyPErpIjxF8FilOC2vARl7hMEi8L5V0Tzg8I4hCbRWHsG5ysHwr55M6v6FaM2zudbezsGi6jyz3abdIPmJB7JIFLCJKw5u+KeeP7NFaZ2QIVrp2t0ZzVGfjDt/YWAwsvoeVAhLCgOmMvUtcE3t7EOqxkZXDquVIG1D3m0femmLG2oKav/RhlrhyxfjtH2XMYyMUDy2COLDmWjPrC2aFeiAN1+rZ/Itj1e1WVRt9HW6bW9fs5dka14cpxXYangE/8bLtA3r+5ovGwFS65vfxBakONU0pkrDGs4RPg8vhKxdsLn74C4VAj4KQGi3zBXLFakXXB7EiYNZRmVG0GcqaK4Zz9S0d1QnDLh6IZR1AtGtnwyGlYVW8yulLJMaPBPhOzwryGwioVd9Fpwo1/bUHXq/V7Pc9li+5OsEhhIwWo62YTq7TsGqMrrJwRZyrWjrC+sv7mguwBpX59NY3VL1OZL2a3VZuQdmaYrmw0OHfYtqPXr3SFHBPCytLacCiUMxvsFhC5brnE0VLDQUG1ThnHH8ziyTz6omvYvvC0i0vXzUzAtWsf9JRZppe6eJ0M9DZwuE44ggCOB5l/ruo8o0GASveEPew4BNdErDLaSZ7L3dVme7CUF8dan9ux7LmY9CUEyymACWel+nRGImQ3upZ6q7YJBKxLIm+eiasKnVryMzTCj7RbkAZvt78h79C/Y8SftSDi2d1RtI4g/RobWD5ArvEK4i1GTbZY7Z1S31+VJFnCZModR7M0on7dnivGZujuZ3WrJTqlkaUQOZh4LzmciGg0sk9fR20r/Uay4WSxcigLc9lbw9lncMA3spEqQDWKs42UylbWQ1kLJYZPZqOYWXeW4Gd3i9bBs5+BFZmg33DzayvqirxSMrExarfuKWqvfjVsyoHna6+khmR1UuZA0COm/NpIIVmcsvtqoIil/kCdj6oT9FkF7zCB0U2sVn4iGVNfMFVddC9/T6C7XIF19GtkfF+uIzbRsrHWaK6mEDxRCzWjP/A1K96K+cmjYi1GtX9T58eHuZiSFWyepal8ETc2TX1PqH5zqyFmUX1iseLhYk05mbyMRtMRyynx9hMwRMEXgbX+v5gYoykdlxAtXctUkuN8BIzcYxUv8N1HSc6vNeRDq4o1B1s0lC3KebU/j7IWwWFmvYxxiXwfT4pOVYpMo/lwnVhHmbvN7N64OVG2Cpre8weuVgYJJGWHhh1c0fvnHIf8/vb5iamibLfVVplnhSmoEOcEUl+2n7hFz98071FfKeLetypNhYiekhxq0j/ZDJ4qnfThQ6QAXavQvaTufO2Pk0rRMiAk+6+XLiBw8YCWH0j0yv9V2lgiVlGE/dnZGYpjPVgig33DyAt5ZNPZpdqUtrj2Z/FxLJ59Gh3FCK+uqtIcMbY1XZz2hf4dHwF2W+mT8wW8p1U84vpEK76MLKKeFbTRrUmTzqQtfRbFIkvWlH+0La1ysCa6PFx7tK61+QmrggYJfsf3hkqMK+FptWxS4R6ym318ofZGOWa6PCTJFgvMd8HfnGgPqxb+41VZhfJuTandiosBpdQHWOz+cAsoqZbBchK4wxEjet0xC62IWX7BCXDR38X/8fFBpbK+7pa4AoJaBtMLBh1LlCCzeLYtwtv0WkNKg/skhiKza1mwATEEiUwoMQlzUsXz/NhLm3vjx3vHnUHp17+GvGW0mQqnEkbDXxhz53jbY3Y3rmTDjWG10XfGaMJsqPwClU2thyeaoGJZePJs6oR9o1UsUs44QsHYqb2W62Cjf2GuyvquExfFzkyVVK3Hiz7C0YDHe7gExq6MiNZ07/U2MGwtPowGk2pBpYbtf1H/b/5BFZLnAfhIhI5M9Rrht0ArcmKvGNLlmBYMXJPZqUKnMPwNlSd8vS/e9lG8vGujuNmZLm5p5KgyLsCW24DfUbXqBThrlZ0HF1PQLPjVZ+uHzsms1DoTlsiT0QIUPLLiIwTbxBksrvCQ/0t3cTyV0Ue3wxWaew2gsjJD81XG5YEO/4wyJO0INZhiY3v65MWqZ2B8+hpTeYJLLVKxFIDp4iVQUWw/LGL1KfjM6UrNMBtsucMK6oMBlMDR+If8iP/k9vGFpI8PtbIhUfHrRnJCsZ5qMdZXeCAwBz+k2toJhv3KXaYeIhZjbBWst3Ejsw82lYtcoP4+4hW8+303bVLnVZypbaV1eBq53ATK/+Hr20kFSTqIkxBEfNodajJzQ2dVp3nofnG+oRcPzjQrjR23VVXzQ3CWN1AAXRhDbkhdJgehJW2MaQesg/wCtlcYfAQSXNKaEQxgjZLadNECpw3pNrqHf1En0DNkUfK4uP4Zr60VEgQS7TquxzEEXvPKIfaFZvvolYTS00/A/Os19zX3Y1Ji4yxXHisGhzp6kN+ZGlincKHMyqIebpvD/AbzJ1ppBGBVqIfqAcmmaW8dWUZxIYb/4NTmuw4WTDEzTt3pTeyMAdXW/Lp2nCppNBff7y3nr/F/zmejpdD5r1l+6pUla61ZKrBmNnUqdsF2+gbrJvXP3NU++mdH0Qe2VPPuqoqGmFikT/q5M5WpoAVIQjGiEIjNXoaV3sUVX4SGl9wrgliszkSLxG+qUmCnwJbThtLxLqPUDaOoV+JyLkG56M89gp1qu62Kizwq1kAC3trpmfx95krldxkBSZ9rE7ALQxPnTCCbhLqeZsnka97YaGZTmIY6rpqAiBITj7Eum2ijYRTjSH4jklGRxpYq3jicL6pV0FOYN1JKAs7CN/OKOsacBWnzjzxosUehsWpcUeyQ1SkI+H/H27pMGlrbMlw6YaHd/VLldwPUxOO6p7xc2KSl+rllsRlwXs76weRagCq697DXUK1WSok0BWdRUV51LbLFoLNA7CEHhdpGTqhZhOrx2GIPTvFBh8zHqypm/dk1pgWE2aJu+ZPuvJ/bx08OnNQ9cjUes2EhwhIpRt5WTy3E3ZzsrvL2zxUTDcRYys9PVjlPbFh5qK/9yJ1P+i2sclQZGOqqadqhYgwUztE8GSw5Nx8tV+I2cT0hLNQP/zCEUJlMVbB92Bd0cu2VZU+bxGrpJU8WXibK2q6R1aW3z1No9uqtXS9uXLd1b2ey0QkAdUxeF0qQhD43yArha3Nqh/x3RIw7RtuYF1il4Fzdd04EtNY/1vn5UpP5YbLO2A5l2GmihJ/37GtR8j6QcSCbBRhJRRZwszZQNvybfzDFhCmzgxH3jeCUpqBj5g8Di0FuiR0BaC4RZvvK3Hgx4uFyTdU3ZgP7OXpRUO8kyM9axfWCMs2lwCEWyhzCkr51zp3E2PrNF18vWnwofjlQgwphmga/hTudr05PLdWMBoFkKqxlEHf+EMDQgjb4hl851ONt0HI44WOnk8GrYuL80gNq3WnSOIMC8cq0g8nheuqahdWmBWRmibXTOnq3viwSvLVVkUzZa1pNG8pCN8FdxNm6fzP7qpvLJlI3eDnwJwDwU/gZ4pZ2FMeY8mV0/Iy3fwG3N6Hsn4QrNhr1P4hlpVcws0xEetxdOuxveMYUjyTXUKL17MBG/kNb7anaXgIPywa4h4KZ3OV0KRinpfdyq6+JFuHtIiQ6/7oycL57I+cFMtXE9/3JV20W8XCASxnNaTI1BSykfV4U4fM8NMgIkeM4NaSjQPA6MP4Q8GtJSu5UaDECDgog2yu3D1Wolss7IkdQnt5f3qmH5GuY5G1XyON1J/beJxzBX6hv/ej5KiHQOgiyDnGsMfv9xeBDKxmGcopfc+4EecAWSVbzapRd8vHnoJi5ObW/jddtSdk1tqF1IF/+0511RpEbLen2tU3S/JqEE3TqU9pmHoClnSs34xjpLrsF74pPJpD1pWqFsCwuVQoPVQ9UeOIjdUf3EMNicCwmhtv+QaxCNr3qNRduak9PJfKc3e9G3fgJepNmNUjVaMhfSVVP+rtI1iACiaZO6si3kQ2S/mVMb/kK6QsA/l+imR5tbCEqjsj1rn5g0uYeeyL3Mpq4glzmQkOhzc8fEDgIBG5XYKghDMyWESyMIx0RwT8zmjW8UA0aoeFJXWMLGHB/zPwd0rnXfiFKTXlhXI1nsLTuWht0URLyXSLiSw9Jq5MwsK2aok/U7dShOwhXq3ceNV0TBumFmkE/+Z91AyXKlZDTSLZVjahLEkhraVLAbCJW1azUCwjij8sq5rHBtYv1J2LmuM2CIXjtlg47//ArTg6319G9SSzO70Rry0hpKSX/AsYK5fk5DK/yMiHtoklBQM3Eoy+J8xTHms2hb1aKTQ8u+F3nm6cjCSl6R8haNeCl6su6gyPqupdQLUYBSTL2u1I2ZDM0cFkvgJsnR4jUymgjEERqTFV35U42+59WQNnnYIXOWrpo5Vektoq56VttGDu7HTrd0Zt5xYcGdwutObatzvFlpjV0aYjSyhwOnlQZr/OhlfBE87u5VgmX9RIDTjizKS2WDCSgoneTmbAKTlKWg6ZPAIuut9rT6za6V3HqptrvpILQlfxinKkXNUOXfwV/eddLLcoteJh5WJVsjkppJI6h2lG5TxuL97a4PcVtSq7YjVQ7Y8q5gSW3IlLV6BVL0YYdeL9o/7mxejXXiLWdTrI1AcJ8Wc9lhilDTFrQuvmQ7s/TcpWk6MuU/xtELFcI7BVrQIwIlMd1ezAoq0o8CzgrN/RUkSQMfsUkcYYpZvDZVMydBphvhhse1woXLQCAmsyosVcOEO2wnnbaqpuvCfweIbC7Wqd6vs17fajPB7RIyFWyzblEOvlyQgimRAuRo6VohJl1rBwoaXTywpGUyUPB2DksNUgGab4LstwHkPL61c6QJYWECyrlQUqPlYOO4HVJZOpgTHFAWyXnEJeSy818mmF9fR55aZ/3d88rO+R1On1kuykteMKD0tfZ1/peQipMApiWZiwy8nom8JbFT3iGkUaIam6MWZDGgtO1/ah6ccVPtUEB6hUR1z85X2VTgbe1JTHtjUcHIScgEysDYUe7I3nv2lH5tQPikjXl2+OFVRSP0CzvKuAH4UBgwx/hqbbqOLIFpkVY7ACgO1tuFeni3TKWbVgWEJTN3WLYgww5mJ0CXGhNIgVvWfrN2Sh7YWEkPWmQJf37E8fjlgLx8oBfMKscFH85m/UiTN+kSUZaHr6rMU4qAJk6T8vdyPdLdwfOpNhx6T3+NBcrJYJHtblqyiwOStY+alCRpiwvSxf97BErIKVMHMO7/cg3ixsSUYddx4WnUqwyXHzfhGuzBeKJrJm4+Ah7qITRfqhjsBUNmHl1crQ8vQvuhpTZ+YogF2jtDl13C3UX8/XyCgXYJ7rdmQEXFJ8gcNDFqttQd90FL6TWdofbL7ZW8fWvpQO0rmjFofFlOxHRlBsUJ4QXgv7LCSClDYAnHW3IsPzJYQwu1uTiCagSmCJ3WfoMryGHT8hi/CwSyjKwvdQPnyek0eRSUUVahgwd5aqnWl5RmtuyNj+5EsLFgKZN5PucMXHwcNS1jp6dPiXHhbE2miEIJDiC8Jb1ddYkRuoirqIq+JVabtX13qy4azbmVpUrlBMEXyuQ3cLP9xGvC5Hf8KTzgSDeGsc1Sdnq8hG8Ek935Opug0ncUbWcH1dHcAME4uc+HA3BKx9f3ReKhQPUWLLbCv31IrhabmsgVSXSh24DwqubLkdd8BSsLR7La/4kwP7N70iDL/Py2qB7FdEsaOiRZ7sWcLKXZ4EiNMa1NAEC1KnYyzG2hnW7ajqi2O8/XlLmTqvP/tKzRAtqHLjmeMBUMQs6HKTwyKNheci+V4Pi6jQwDoVD67QLlZ+qwFLUUh3Ed0IfMgFrFpy6tSPEGQOp971EbwHjhX8hD73QrktSSZLa0ucEFZ14pX1ZPMY1ygFZd8ptGTm1I6RSrdXe/Rbe73Mct+eiz9GSneytllSMOhp1Jd6iH/u7VFQDsktyfCwnP2hwgEsDV1lQkOko/q8G42dEHEXvnnuwCwYskF/Lf+ogWXjKe/du6evCot9/+ukDMtrbxLxDC9k6mTDVT4BTdfTu2GdrjQ9X0fmjf9Ea1Pe4E7iLsM+3AGsfNr8JR8GCrAKMLR5WDoFxGo0+l4Pa4pq3q/wizxUXXGcRp3Ntvu8mWPCeSmEaUUKPed5hYUXBWUFRkoHCADxMRJ92975sjImTa+zEhfynGQQs+uwsBSRNU4w6GqHhSp7RqCmQaqRy6oIcu/7HmGct198qNPmK+F+Aq94z8MChMprx/C3mC+pU9MggOvmlEUAC4wRbPvgvRnvgaAaKCM6smAn0nA13AhXN4xRJ+QmPgRbbA+VjT2mAcEimHFnJ9fwILYaTTXaGbbssxjAjCUbDhnf4IRtfwp7CR5WXPg1cethSUHi3SrLd3pY3Cu0PyUcEdOZa9gLFtLeL7zWOBffgt1SXYivcs5Qt2+31b+0URdTCb3MeBg7cLX8V+sEmHb71i7BbFQ3Ylrofl2WyVSJB2ugmmElezWQc28843eWhSxjqZdMbY8zBX1ZDjBpCnLEVzwsoXhLAJF8BxOfyXfHhXhZ4OnXebrnISh5JxyUcMtTu1R/2LM41YCJmyTi+4jZb/XhgO3gaO3OLzSQz1rQ2C+syYJ9kMl3HtYOUhGxJSmfx7PXYfUSBUYQKdgc6wMavt3DqreKdQ9w4F4FkWBgL90LD0uoOr2Oqh3sSRlNwuRZ708FQ3UON1wTq1bwBHaAilPhJBLe78S/XjodqXXnHmKNKoofhTaHja6FSrcyV2VpDUunxNMUyp/WTUUOI3V/WHJcozlYgAx6ERnC4T2TRfPew/LPYydA6B4LuGpm6DShW2NF/wRZ9yGhDpDFOrToD5pw5E1kjSS0NQTZkaah6xZa2sMU+Q0egJ38azC4zUg2qHl+uiOLG2T1N6bRB4HehjQN9YmufNfzQBHP449XAavld2J3mHYXpSfeOxq+2cPiXqFQ4gQ8/Oqc1cBnHpatZXUWtKK8N88XYNqDHQdb4XBDkF0D5WH9uRTr8vhlukk/XBV9FoxccZUTT9REzo+QMW2dwxp8zdPNSvvY5QIEEMI6p9dhTMoF62Fjd7Bo9rMacrUINYGS5Xxx+KO3/BTIIpXV0IAwp1uz3A4ZUMSxi+16RQITeAPa8YJZw8ZcUKrUpbrwCiFAhFtNnpG5rLiFmEMXHbCj8UUXVOZJwg/4guaz6A1rWIS6Mw2SNZ7lb7iNU47jWf+UMTt4WDrELL9aZZMb4frRKXtdaJ+B+i7Fhd4t2twr1H4PcqnqmtWeWuxrQA0pbuVcqDoX/2Jat0RWuOqde2JyxBzryVAOlg24ue+1wjYUlKoeMaKAdY4yq7wrcWH4cY70re9pTLV1Rv19HLNrtyCrM9vLeGhuqinDrLYjOmVRQqVi9QnYYgMQ/SolV1kQFa4uSH0VEqb5qfpJeVkIyBr5jpDKekNgyjfeMeRTvJw2+lXASpwr9gEkMNRVs+6oZZew/ww861LnJCV8cThJrQLxoDTpAcCij+fWaEsTkNrWfaNs38om+eirs3zIxeTZi+liPagMIFkNm8DXKf1sRJ1JvGsE/jCjDS1F93ZKmIGBWmTe43SGXY4V8MLDiqWW9oUDp+lOjEVFihGuzZpXOTug5ox0msyntp1N2UI4NipcIWit4AdvV2rKz9aKT9S9z6b2t5oNGUqW9Rg6z1Xpec3Z9nXZM17EjFz6s8SNVZ5+rk64pcZNT0cA7Pw86Z4gLU+AtX33Hwd7VXYJuzrKBxIXjjpii+VQ2RKExOJGYKw1H0dEtAEoI5iGBoWZOF4wa9A4nYKv9pmLU1syi0u+iBD7w4jL8lltNlcHDg1aPvuvtgUir6OOa8ESei411ekyEcx0Kgv3c8A/tbnzihxZgDqivKqJq3meUh5Wu/vWc+yG2VL6EoJLmFgNDUw4Pqx2/EXwqJyQ+rf+2TzJl9OCSLd0E9zdC5A76ctlcxrqUup9aQ6RJ9aoUetg0LHkXCXktqU+R06LkO21f8kFMXOu2Fm7JAp63kXHropr7/OKXlVhbq6uK/XtFc5G2/g163pVMyIdZyKnznQRLdRGTG+9DmsxAVvaCNofmiXz5D7mGOuvw8ex8U6v9JoKizPmhCpxkF2M2chTbX4DSHHVtNS0yLp6lSni0xw4HmZbDFczIDvHOrJ2g+YDLTicVgqEiwZGh9tWS0OI+Cm5/BaeYbI+6Q2HgMvUFxGKT8wJD7FL5bg04IWks/3s15XFh/Sa/1FyU5Q8YoVYhpNDrFJAHCqjiB69ASmYIOfVpjEVwjAOCZnsJpn3SUZMeHU4oXnpYqkGdSNl6CiLQpaU6DUBVcFgXtCARUJoDwUGwUe1Uhb6iyDUey4XsPr+Si25fK5pOV/VwiT150qZoUt/PWsWindlZxoPBGm5pbLBHhKixcpzJoHErEjZb7ch28RlfxyYAtClQY6y/GsxZ+AP38935EDy7xaD9VaeR6SKTuu0yRMYbUOY0Lkzov+eYKoslY8mDDFrPCIIr7xPgl52uaCKHAsoRnEDyOnkmNZ9VDoGpOJsE5Cz7sKJWJt0OH3mYUUIHPUixg0+MLCWPqu+AfVOIwZ6F1huk1hdF59A1nnJXTClTBrfAxWN0rQCXiBJZmUuS8xS/fWFzEW0XW71IIFze+Ja6MSnwYbDOuBiM/w0/e/lrbI0REQpNDJjGFmZd0Wsr5GV6aPhBw2CMNY499DEf0Rg1q2/RbzY5ElrHoCEkSfnPoD+K7L4CY+gU9ywauAgPpzzIanTvoVOBq3Rs9+R68RqtwNXb44xqutBQdd2S9CvAwCdZU9U+LaHtZtiGdRjteoIeV50FBZmKaw030F7fzPRSIiBde0wsnbg1aRTX74QKvHM8LDUvEAVcnXS5JqEGf2fFbyX/QblESkV6v2QBahjtdpB+WEvK7Mtn8HG8ryFGXec2QNYvwdCYJgfgTWiIyi+7iw1pyf/OSFIfCVxHM83vCa6+ENo1cAAATIsAoYOwylWc15inpG7FOB46CthbMXmHYhYBtaHoG757YEWf6d7Wg1S2DXnq4ePQMhL1l279z2sLgKLbYK3hVZqhxocSr1DFRr00CEsikk/4NzHAjPH23naULwpCzysuyMD2SzVJwj8JmjRFyD4MUXsNt+MMbpOs+FlCSwAK7cVnevXhIOIFHk7MIRWe2Ro+e+Fhl3e5Zbs8rU86/W+kIMCQ+ruByYxp31+b/VxGVjhYAlRAEVxVoAqn00sPCEsJLY9dz71V8tssRLsU1T4poe1m8FJZZ4KirF8raUn9lLfPtY0RBdtYXunXQXJDCPEExoqw6fQoa9efcJc9n69ERKGI8fbkDCyJEI0+FHBhQEc5I1IV+Fk9dgPHS18rgw7WbONtVsc0mWacItYWxD6KbIA1mgl+DJ8HeB1g4aG/OdFOHoXXLKO6uh3E+MZz5jHHCEkfObxjOJRWgjwDrVMohCFIo9MDW2xH7iqhV7IeICrWNfGAiLBElDjIs12qxB24B65h6Z1GUUt7QHpJIoK3/OwdgFPIvHkChTiDIAksXLvAYAafOBMXViIPl2M9sAwmMYTm0fUuAeDhFYq2quzGuApQVkZWa9mCxEzf4xY93cMwVWyOyI8ooFlP9qtwzwOIwu87Qzy1qvFCQiHwZqMgKxNKdjJBQVZP+ArNWDkvyT8Qs/xvHl9SUDOliqXAh2m0gSjdUegPt57jpvLKB54VgSHiMNCP2vYnJ6WxurZIxDCRXJCLL8kvetWn6uHkl96WAx2s7YyAAJV1vcYLuRkESzunwDmmLvogyM6vHrcrFbwH+JU7n2Ch3g9iQ5/KiTk+EY5IRRFDGpCjRf70XgUg4NMlov9s9MuAZOy77IfGGFA4xZZma542B2mtPwvQkMkTC/CReSGY7d0I5ib5yNmq+HLY9uRyoMd+UUh6R6gav868ix0OH2k2imIFa2AlADOPphLmDZgdVJJzXQanUdiYwnDLHIrmwMYVh8tx25p3C5i9bt5SGNvgHnrP06CU5GCHD6VelSYyMmS0rUNqWvEi5AwbkLC3rfhET8spKp+NbHYdDr9KaAWvRPs7Ae3Ak/iwkqNZQdWTmNq0uQ0LmJlGpWc64rksSMro0V4agXIivyS/KN+1rsOizLvX3exTKKDyM4NaDUVAcJkzg3In/gHePTUVfRwB1JErBDNxAnpj1bcAJlkdayiy+5n7bvGEywSOBovjYIqyLrzsF5vsAWtWpo7/ExheCSYWe3lZF1MITgM6xv2ezUbak0n+29ctdDUH2fl3tuyZs5Ph4REhT9DrOyxId7RSY48V3vbtpkDkDh7hT4HcaF+7N+8SsNly4EtZCVv5vFddmT1ArVh9ySjP7coZbrRBeW/Hhs+P1EG/xaC6/GZRCGOe3tHVrar0Kc0ViYBNcmpH4cs4pCQcKhFVHgl0TFD9wwTS13o4w6VW4BDJGtrqsFZggZinc05Y5E7wRQz8EAj3HXbtoSFTIY021t0ehYoCAz5q6GxTxLdzgUOh58G8KS4fv4uIcdPZ92btMw4WKPnYc5oOBJ9JlVZZN/LudJLZuCy1b6zkERtJI2snVg4WojqqyK/LC0F/2/LeGlRefKofRJWVm9SafK2sk7TYypWpen0OYifr97zfWBxf+qk0sq9w1++MsF1AmwQy9saQBp8KoJBQkVrEOx92kBgH4sB7D997WZqB+GhjADZGiF/VupW8tHwTmF7g10/k/gnlw449x8lW1+8DNmaf7P7oyGhpyFkZr8seccu+qzNlmLNoisQQJYnqazI/p5cmKw9XG3fjXdJkNUl5Wd1MXTkhd3KNtj9Fs+O0Y1eBpwvDN5dbfgEUZBd+/SJ9miGDH+jP7XLI4owbADsc0hZJ7ElyGcv9bHm+iEdU6BOzFz2a5QRw83vzcpWyAx7HtMJGfRfYvV7q+8TTRat8CXZWqYaDt6OKBVPU9dYcLewxYVbMLjgr4Z0ZMpL497ZOMVZoRukLGRBO02/DwmvyIayN0LCjL9X8qeLJzLIvh8pxaslG7JeCch6z/b4Ib53ZvkOAlCMr/pFcW8VX8fEcx56IRuzKBYdawY2z8/X/gnBw6Is/bIsICAiD2ZI6f3rqjoEDA0eXt2KsmAt9AttyMEbdJnEUsPYYhX6KGkinTKnGnhNgsvs/c7dGa5HasNQNPqhrpn3f+AW3bnf+VRKDUOgm2pYsGXZTDaZkytjSMGq2vzImdTz398u7hQoSrklY8lgZtwvOQqP6lbxdRYpJ0eBRH+WIq3AgNAkH/Tp+4aLrZTEb2/khUdsuEecCI4T4LmOrKgz73Anu/oiBs9chFG6mJMBG4AlerU2e/T6pwYqVOdYBVhLvEETEaQjcrPWWwCJ2mHVIp+I5dEU7nKEXeWRG7zRqcoOCgeqgieKWNXkzg5SRacoN++STVYD5+pJN2WfP1/9y1gxMuqYozpnZmmVcngOZeRYq6tPnvItCh3M4DIJnsDDXo2IM91PEzL8Ru7AcgeQ40IDFp5RUMTkup9YQRG7B1lYHI4fHyDLwVegZYn1q83f5x5n3JaT+xt/fQokxBAFjvhfr1/CEnh6iWN9G1oV2jf6OKycv9xqD1sF1bKG1EdWH9D0d2E9KMEpT2DUwYh/jpa430ysSyP4mJFilv4b4o8I3cqo/xKuteWKriwipmwYGMrAhiFjj7y1QxVhMdLxpk2blhJX3Ozkxm3sN7kemMII874rLOH0AlaeRFbZHchCZR1NIj9F1vgbs/b4I58aszv9QBiaMGC3Qc05bFFvrOIW5oYmPYC03GzwaHcjBudOl6/I0OZ8I8qygJBLro0uYLnsEGvtdP9ryfiKvHSusozK6gCWkr56CVhvLbUsns0uRcc0kA8AxB7augElkU3B6DE2mZ0QCzE1Ztf6aO10ogKwxg/ICU+qLDqcSAwzTuBNlh9aNBsnLOchKKzrsZI8v4glIQRKOuxs4wCwxhFgORMUrAymDCkY1/Rz3YG1R6wnrG5izAvnMvh83U1TUwWsGpUkERv6V/4cbqkCRaywhpM+rgKsRaXRuo+tUvAnqQGrD4jRsEkJt3Aa5f8h0BKAzieGh8LHOWTldyJLPn0Xxi+olFNW5QXMzeesoNqWYkioh4AlBWXBLmbBI9V87Ws3JVwjHtRYIsqlc4nTWsXuv8JBLlWXC2rz3TK5GDej5s7GaLNGPedTU29V11wA3ah/SSRwWVTzTkDz/dDVMzlhCDcHU0IaCACPP2Hq/SaVhYGscSwW2nwDtGZGDojlBVa9CJimiNvSS+sbGrBuTQnFJouoZQss1xJgdWM26LlpLCVvl/RcejGml49rEi+1hW9DKoQYZcJQaaxIlUc1q2mAl7YKyjRgjARbRHr9ukqkb+6AyNoorJ2UkKa+qXMMksnh8g8BVnK7zq3IukFmzaGVsR8IrW6yeYbY1zaYVH653rddEhHPoJp03wdWZgIspX7+DjglxKilX6RpJtb9CuuyxoroazR97UH5cZWixFeW471c01yoMAErbZ0hIdLwj9SvpZnLoMrUOVgpDyWJrNxLCTuztpCi0EPb6sb8GRb/L2Rl2L72R7K84lESqqjEvhWJ9ZpblzQQA3hrZVehVdZh7ZRcwBsghkeylwsH/AJhW8DhFLk6sJT/6MNqeRBGkhqaQSesE4u2Gy0jTawPLb3+isdZZVRZKPNyiT+Cq4KU6rQqOgE0+lPFsaC24FpFSzapF6qqyvAr27IHEXP4cmEIVR5oNAYeSglRhz1wdMt77AIWr10wPBXPJcOHmJVxMD2EO68ijqDz8r1Er1fIa+E/DCk1C1DxGu6e8r5vBnRDddO4Kz5ypJ6x57O96j1w//MT9pX65KbmoSy1gg91woiJPaix/O5ErI+G6DfF6FiSkrsJYxGzzBSDYC3z8+QFDTw1Dwap7Brxdi2u4KEAHxtVwnnhRmFpvyOyuos9Bcp0MLLaoL/P1Pz5qaxPkHUWN3nJjjBrlTlZ2qN0SP61CRzyDbW4PqUAuofYmTH6kxZfzoYkKyJ9xVBUaHKL7FAlXmSFDy3H8sx7XliQlf2G59WGc0QDyyaYCy7K4rSQxlkeDKptMIe9vlhdpVWoNHc5NNzDzRgjBJcLN3GMQnxPW+1fNqMOXK1F97XmCJVIODaW4cwiQ7fiGG2hXaiA57jsikmaFzHpRAVk3ZUZEn4LtEZmSvAk0KiiLPw8l2ZSSFReP9IKWP3xStITxafaGwiZaWrt25JfzgofUFiex/pMZEVkSkxISiqHC//BmVFE9LbudCf44FF9lpWi3vACifF2YdHK4WRRkUOj1jtQo08yBFTFrdWhnotEFuvD/BYq2GOEB1WDRgiNHpmpNu5vGGC6ir5JISugnCNilFM6VF/7SvJIZdKRq0OjRw61bvgEv3AGAWEfnWhjD1D2Vob2fth5WUbwM8yap4djNJXj6pqojZ/NpElK6J/zFKeqHEJTbaxmyJgDK5Z4ZB7L1MrKQj8TdMnGI+0jeAo7o7b7gsgUy+fbEdVGowp4uCGIkGquJgLpZp+KjXu+R25xTw8W7qGSu4tLOqjkbrxZNcqZNCueMqCuPqluwf8Bvwkil4mUiqvzXgDopA66TWXBmryVWWsS6DklAQt4DRW9XbLx+p0sClhBXhSR6QzQM/GBkRJCDY7PLHnntEbkZ4oOk9YYyTPTpTAmtkCxp83E+o6Tt690qbq29SyNhYa0yVhaSGJOh4hUWUK1gDVimqvNDQVGkRJTWdHa9o0edyKLDjdQS3PsglaBK5m4Uk3247PAMoCVKYElaCVSAvVxcM49F/V8ZMl7RvqwxGeKDnIVnpz1rMUYBa4WtLV2d/UxSkLWadwWjEGRPwRmhrRWFS3oUEh2OpAa8FK0yJUWW8nTI3x69Jk9kVn1FKwsXP01dULZFankvPkIYk9Rhenid0bBgYe5rDvm3xXvVPIOag35V0rVoz/Ha2yIpPpIFUkgfzLKvjTfnr4iyDpyGXcTTsHl5IYFpA8oLJ1RfDw7BFYfRFJBfzw3hLwsskCJC4CIao8zJNIcsQzy5UIFq1Vlr8qoo1kmMldAVoFH7GABiN7twEgFN6lZJ5D5lKkYKIRRn7houfN+nfgAWfE0shitm2ayksVQq5HGZQMUFSIwPJsySaaGJ4DRxplkclxUWNzznAG23vPY1viQC3AtwRFgPaKxusLKTy8WJq9cgkfzhVPDIIAeOJrIOgZMQER+ZRB1jaOdPO/vAc/dEkz8gVudtWPQrCoTSowfhRS1pUIlcjiZ+qszVmEOXrRJPnUCK0DqvOT7VmBhOE9iihHjELKCwoVFDmSGz6WGc2x5VWcWU8wWHjwVWVX982KIkYqTFeGoK9U0p1KQyfITyyl9VqOy0VJFPAmx0kfKc2BZUbx/DD2TJTRZfghHFmLgiWNDGMR6RGFxsfDcEN2W/pi9qcLyIORXU3M0ZzOhOBfiyENS9VtLYUcpvNVs+X8HyxSuMgSWaJNNGzTNYRUw6qjK8rnnI59FFk+sxnM3s+bU+i/tlbIxnH16C+gEoJpDgSeMle7vCVZywCqJSD7k1h067C4gvcuyrwWrM57SWB1u1iwsv5oqLFsyk3WCklJyPSWkRS7EmLM8NJSnjpx/Z0XxzdOC5XXnKoX2wvVdL36dZBai6kDR1fM273Z+Mv08ss4/BivuYNZvBa2IlGLTEj0yxaqo/vaPaxcsv4Klk1zfJmNYj66rYDG2iwfForHuVVic8uy0GUY2JGChf6YKK9XTXJkZvfZjEaq4+AXBmXw3lZCVVlx5UPABsBvNlIJd18GExQFkxYHBTkMuzs5NjX+lSnDAxTEuUGv3jPfYeAGssnfeSDLYCiPPTv6XLhF8tGfGlYxkDeAQiXPHcrl5HguFxWvJkxcLtwBDuWQJzrnCgiA6nKLkJGR+66anv61nl+1yjMyZgJq0X1Nk7b4Il1RRkVYdCJH5yBA71wtpmN1i2N1+ANYHzDpzm2HOddbONc09F44dbhFJIk6CTkA3hdJE9YiN9F2GklXrsfGIWS2VKah1asUUAwk+qRAQixizzOHN6JHcpPOEwpLiOHG+PQbu6ZN92rSpqTOUxKYY635EmvLA8EyWVv+S+/3nCgtsXbeMgxrto7uiUVnjaA8h64RdT9+AssajEr9Ljjig1Tb/o2GwP2NRKmg1wKRf3hTVAMW4tu4Dhte/95OAWxUWFwuvKKxtea6wVONq4Q0Ka9f/nqHnAcraoPklxXT9JfuWsfxlHfqVD4AmYZsu5yen8pR9gBNipwnuHFunL8iejR6V89VexPK+SyquIR62uuJpGdSxREq40OaqGqhjcIwboWsq/AGFJVqgsS4oLMrHFJZqCNIHFBaM9uMH02lhKnEqTuT/SWFFegtx2XzeZDnyoLIGzftpYhyjXPTiZv59zlNpM7Jbdj7gidg7P6EcoVpsjV5EUsFz9XqIn1ST+UpuuDaY0gVEFu27K7eYF9N3iBvPgnswyBA3fzLLWwfWdtX0130ai1kPXtxZ+LjCqj3/RQ8pLFZBhFdlMTP0+jd1c1VhHe31rRILA1T+cgGanNXOzBRRDnRcVTmArOokn2J7PzfAAzVzCqPDXOD9Zdh4Z/BYgWWqdw6f03IYb/Nme+XgT3VpbxrJ2TyTBaw1QBSqZF8khYik1ZBY0QWWYojG8Hv5FsS6X2FxsTAPibpvVljtXpfl+xSWk3WZChh+Jt/1/IZFmLhFYTH0owoLdB00+COyTK0hKw51UZQRd9CSyA6w7s03wEDe7D4ByniaXchIj5uez7Wakj7wxBGdJYfbWPSa0c3AErGgknaLq7XXywcVmsE6yusYZIUTu6qw0FhZAH5aYekA9eOywvJA6QfOi0OpTDDWQsi3hvnnG02bS943h2X7jxTW8RVhicrKA/0URpfJyWCLiwfen/p1llBsLsHKwKKIBXtcQQfCYse2vWeImnPylaElDvVU0lGeXOE18rW6I6NyxshXlNePUH2N91f+J3vnuuQ0DEPhehgx6wz84P1fFmpx5kMjhNYtTctFDV1bviTbkm+PbCcZ2Wxh7DIWVfSnmxlBxrHEMYBFLuosPPTBXOEpCssxyf5OHMOKV+rcrbCYCeS/XNwZ4QbBjgbfi67/LYV1jBgYvqOFwj8Js/d9DAayRm8JWXVLnPqWCXqXRd7gGQFcYGmUpuqepitasleHaRw9y4Nux1AnKjpMXULFt3ccGf3bFVXru9HpRgiYlyxmIkW3FBZMs0c8ERp+WH5xnc7JCgvCCFn3Kywt6a0I5F4SrHCwX0/Z/eFjWDsNYmD43hYgy2w0HwPiCg61u4mko2VlNu4149xvq7rByGhWZPsDEKiWqGobcLj8T1qrd/yrYYIQGHEXJKwGljiHhajwFIU1DGKdOoYlLxct36uw9On75cacFGgrd87gnBo5tOIwkmv+vQrr+kpRXt+ibUP1gKz36qyDxsgLCPaI1Sf1CNYe9YK9u+bv6v8YLn58bm1yS82w7KpAVlBe+HAkYp2jsIZNY7LwbIUVBrLuV1i6ZCiGfp7IHkGNEKgQVXeeC/HsfnGFNYYF/PTHK8qhzOrqhV7yVL0bPkOQdaHpA5af5F/Too1nmlm09JujsJZdRCwuxPGfpOoL3ygV2GLoyG3ez1FYfhjdHh+lsPgUEFs3KiwWh+r+1VXYEEZ9GXwvpNBRZ/cV1vHqCisqJmX64wVZsKhUWLQKlGwUltJUv1Rh5b3Y77+Wn4LrQmq9brSq7R4tAdaM1/1N/ydW6YeMJEKMbALWhFjbtq+wQBZ7PE9hKcfncZfCssGdfWzKGX5MEpiuiE5/6K1QWPMehXWMF1dYmv6LUV7dImIOZjUK6wiRodr3CmuwN4zsoxRWImJWOyENtvZfEU7vV3XHQVoHoMQFJ49aQHDFsE91iAApwhGJtbxnKKx4ZeH5CiuKrFZh9cYwlptZWG+IOwWGV8d/hcX0XzNlGLGVo8lOYWW1ZL3CwpVnDm2cp7BqdGVrkfPeRnuTO4SEut0uU4QRS2HWcFUBVxiVHvAonZlteZVOm4g1ftrstm22fbE/HTcyNRmVi9+De4Ry13yzta3U1Ppp92eRdQlur/zPjWGRjFHe6BTWkdvYqBVWmjSEQa3CymskaG7nKiwKKuvJdP/fHsqwDKyZrnhO1xIGj6BVBITA5u5xrPlzhpHO23WvqpOa3baNvq8JqahFJreOFrub2sH6BGxyPzJkn61SG9N0enCkUgYuNdmUQh8iESllK83YvKWyL6ewmDK8EBh2CguZRaNOYR15mRWpRmHRlv14/hkKa6tfrG9a1TvaL5mQUMSSKMnQEotYSxru8VAEhCq6dz3WbMvzNkdxKeMdwOr7qvbXmkRUuXFRm+BgsMIAk8kjZTtMB6HCqXzmEZcVs7NlcqLx6NGoRs9R8r2CwiLIY2Voo7CIJgfSrFVYCVnvUlj4kk5R5tUU1tjhWG6z3fFlRGIx5A6zJgoBgnF6il84MHekqHBfaCl22gGW73U8A1iILOrk3zm5ukOzNWXI2JXgw7t3w+W2+lZhmRk4Az1eg0osoo+rnLkamD0tCzot1GDDnqWwiiCvUVjVnGGtsI4iNOwUFr4yOryR9n+Ewmo7FrCElJVLixsm3KFYWzyZ3YGRJyp0767Z3BVe2usweyCwrAQWCbzR5qbC8udEgpoBcIz4MLYyhrJM8R+4oy9DfYV1+9pgnhJoNvyCsFxvqlrIzDMVFpkosxYEQp0EIKTnxW2la4XFQTJriDbrFVacqMRwPE9hHVaDzg75jjgLdpQdES/oozgoDtVTSMhUoRBFUBiXWGkTuTgdC17FqLB48mg32Z8UVjicmnOMO5yqsCiuHra6r7DYh5oTHuKZAUxzMpJVG8WtEwQJmew+slA45V3GiXu2wsqrHHQ4Zh8/fFz24aMJR8EsNuoVFuEdfeworANllY7jSWNY0Q/7RKls69HU18JjrPereUJvQ6loeClFYbF+VMAi3BPA8vjxLM9RtcVHVOj5bTOI1QOLGkwvn6uwkqxoVkrE7vqtNw5It6XjSPoIzfrdIPkMlxkpNhQdO3/KGBaMWSLLbXz89OlzsE8frOR6WIHaKKwQUYKbXmHhpAfMlj1BYQGtnf3ad+pYAJanBtlkVB4JWCKWTcQRzPFQDkCkZe4ZYmIbPqLCOW5ZabAfEvJg6Hm6wkqJ9uB3FBZm/VSEf/L6NufGzkzRH5uaQqgpKHGTAOYL3zyF2qK7lXuGwooqa8zPhX0c2cziRGOtsMjke2BtKKwqPDT3nDyGFSM+5XKc6NrKlas3Ow4b8dk4400Z+cf3vOHHLANLQ7TwIwyrkxphzl0eZYUhJSDOhRNnf6XBvGl2Taven6GweqymQfgdYDVRNL3ZNKmsDWC1LIvr7oU2gj9dsq3TPGxqysmXVMBDFZY48vHjj4j68jnah49VZEho2CgsUhagtamw0qXSMnuKwmpujmYr77/CSuvpzh7+bSksDGDFYSyQxCiVyMWsIZOJKjKWmIaoY7Ixz55U2T3Aak6tRSw7TWHl0gJQlv/r3QAsK1lIE5YGm/0WYGFxGF4bY2hMWyZkESIWJ8aDFBb/PsCmPZklYrGctFFY6KwUG/YKC3dSa2DsNIUVK1GCE0ONSVaN3wgspgp1XuQbjyqF9jJbNaJSYIwmaB1FhTZrYGHZKTdJEvXGg6GfMktIGh8Z7GEKSz3rkav5qEix8aeIOirijvLMFYpCrPUShIWqqTrm/XlKlY/TFZaBpS1ksZ7LzTOdwiKww2xDYeXw0NIRnaywUll26Wkoh6l88Wm9MFNIeJhnbaGtDwmnBt7dJFD0GHvByx2m2EBEszGndJZpxjs+lJWnflboKAd/8ulKqo9fmC08SWHtj7bdL3qw7DGTymoMSO2YJBXzCW/4+UnScGAnKqzDkFeNfbCfzxnGtVm9wipuj7ylsEjYsozR8xRWz8FsZkFPmWuw5XE/2ituA4WVh7FkM45c8b7otdI8YseBJUJ4JffLQlT4O4CVm9QiC2Kdo7BuBVS9c9674yr8uu/M48xuLjxdYTF2le1LI7JyaChatArrKJ5Dsaew8EdmAbJHK6wGhNUXBYajka/9XPwcTbfbY3zKpZVnjWBR5Ven3INnsBoCCzOiQiExh4Q0qSYg91UKF0OfPUvIwSdPtAgs0pSqoww5KpEIFZTl/KruBCK7tK9tswiuJyqs8aHjVbRPo0GWnrTTKyxQQy+e2VJY+BOfQNnrKayD9/VM+zczjwbH22Hj+qzUb+92bfv2tmp+c6upGcCKxIp8WO+i1kBYqdTADjQhEaFlNhjHcv+GRKnogavmka1LC5+lsPq40CpgJcvASumgh4OnUVmA6kn2SIVF5lNiVGMf9D00k4bDeoUFaJx36mlTYeX40PLBvaLC8jr2bg1+sEb1MrIxVchp4MCCWCvN+SlqsYxhmI9yud8LvFDfLtKnwEL+DUoqRDDN7tLCuoI9bAwLXtygDhtglZKumq0UsUrdRFn/utGs+Ft9gsI6CAc3bLLjegBeuU5hZZ0l7OwpLCVkP4WW22sprMOGj0sppXF4AYr1oivlSyMqYH2z/Oh55b+Dy+bUFKGk1SRuFIYYnZ+20kSFi2J2rerYEi6k2tgIgqhj+UTXUG4JIJu+2C8zUhUeNUuI1FFu2s4sIS1DSOg5/KlHosFwYOiBZP+Awjrm55tsjtpA1kXc6RQWj0JM8NtXWEcfIS57HYVlXsHhtVIAy1lmB5vTq1JYLG7gKjhOihgQTvlXgSxUHWIcPNIJM9mLQksnl5d4bfpfp/nVeECNKphPUJpoNgUgU3NPX4bvKRxmLfZ6hRXeexVFue0orIg7/JFKnqyUV/SCrHYMq3/dbZyRvd2rsPZ41Q+9Q5qgs3qFpZ/5XjI3K6yjUFVRxD1XYZlpMzNpKF8Yv5Ksp9dm7kRhFauxHmV8sRtmMYei8C+YxasMUy1p55qL1sWDm0rQTIo6m3t+6/CWsIm/PZTeWXwBexCi0avZV+7ORcdtEIiiIMtWU6X//7vN+mp0NJoSCAvY22uKYcDxI/XphSSuu4lRq796vpagPb+XQxbAKDssrdn43D6zcYfDir9hlNJLhGcotyX30Eex6pVxFq+w/68COLfC3zP/xORJSjy8Yak4tYl65J8g/s3onsNimybG3QFs+59mRWTpJYLrQCAr2T+NNYcFhvzsve7tLofljgxwpiS5rlF775V9n/YYlOSeWIlS4rXvlPeUox5nmkuTB8S6All5rh45/xBoRZf1LYc1aOCYvrm81bOJVFpeiVB5UAgdDA9JOgOtDotH0UAtLFKXw6LshoiQSzK7803tXUnHbMTmsTWcLx8S/htYGlzxM+gpC29K+z7GKdXaO5c+pSuWQKzpDqv9tGfqMP6EhSgdgo7yxwEU/NAQi/PWYRFTZzbX9p0OS2U3ayRBrajfPUs7pBDHqzinpLUk51UAFjO85n9mEot9rGVW2VcM1+OuZkvnGkzWRIeV6PZO44gctQOj8mKsAl1oz1EQx0rOZok5TQ5LIbb3zOp1WDzOWsSQ7J1IJl20aUNCkpf9NEfIOyvqw+Wy5z/sb4aEj3Te1fci1kClKTeLV9sxX2ixQJaqLjzFYflO6w0WBCpKxLJFkecrPVURFN47LGOOh1auOixC9dFhu8NyD/mPiYEi5EL7J6msUr9fnMELSlpZ8Utm3OyTxBRhIV5hsabxijfjCmR5k3X9t4/W698Dw9kOq66ZDuv4dKKd+KlXYQtPq4sOSzWGhhilJodFLDBLFPvUYfFflpRBA7bgFhoLLJI7fRXR/juEwtsqc2XEWuaxriFWmnSzdOgih6UVtwSa5rBCx4UWay9Biqyop0kYqTqs3xDHI0uqOCzFAAlGDWg1OiyGhXXQUE5IYy3TKIdFWP6KX+Bw1MK1OySrgCt81gpi5Q+JNVTa8XDFG7nOjPUyxASXtcBhVV59msM6GPMJQeLQOfhj6kph+qnRePXnCC9dcFiSGxsqkJsdFr859O9RwEN0WBLlvQ6aMFREwlZCuaC92EAKisRlZ36KLc66WLaUWGdhObEmfVrYvoNw/17msHgn0FyHlYpXet6b+7C5qDPBKXIlNdKP8qleDx2MFlkOJZCxqxaZdXJMayraUGXbXOljYBVPIyoPUEJld+f3ZAYLj8Wc+IJR4fphYfVST3dYCZe5VCAGSHAzrHBYbDPNYSlHxxNXJQxZwYpEGCK6uCwWn6gF7UYbBmK/c2QWQzQ/jST2aJZcrZLWxiwPrd82SBXWOAKK9fGgtMeKPzin1CwcWqOy027KNRxBrGnLJVPvKCkvQGaRw+IaXOSwWL+0zmGlAuaHKIVXlXMi/QkuilGg6oqwgVaAp0OjPEn9ZXhqPpFIK/AWukUBWKqEvileikRExVQDwwqPlZd+u2HBPFa7wwruZqGiw+p0e/0OC61wWIczVSFzDcrdGtgdeR2y4n8GVnivYofd1pSUKPugiWoEWezs+4YNCvFME2oAVg0ODJumMevKUSHIGnjzfOKwyLkGVzgsQqnHZPU5rMiwgQYrOqznMFUsTt0nlrcFUHy+R4RC8YX4WjhDQlZFYLnMtrTtaAAdiDhSPfaOHVB0WDGSHvlWHmv51DvIKkAHTXVY66eyosOKB7LGYaU1DuvxbNDWDKzolRIXs3waFaMFjhD8olbiX2zbIVLwWhEybELBwkF0YQNSDmV2D0sl1xA7w68qiux+/q/nsXIqTvyucVgpkGKxwyIYkTVxDovKcEWHdYhHlm9fadu+MtUU+HPmqqjboSYF1fsIrGh3WB5ZZWZ5PBVjZf7JazVIKPgZ+nJY1xPrpXQHYl3osNJykxUdVjiQRQ4rVqY4rAMTpcwClJALxqYiKKoOq4dZiDCNAZ4prxD7r2scD1O+BbG0k2uJlVy9ciNMcFgqQ+6rHFaf3bu9w8r70xHLoGRR2aztDBxqedktRa0X2Z69ArTqDgtBrTH61qvxhVaVEU3UGraPjlEZ3Sgri8+IZvP0uAex/Jv+uPbX0Bc6LMC9QGWH5ZFV1wiHpVY02mE9Xqw5ANVxVi3i3JRFaVJ9+2pR6FGgRP0EFG9DFltRo0HlCdBynHIoYY1odQVByVas+UNXOqqEQijlNi6kRfNYHfsZptT2AId5Dit+TneNw6KVI1k0h8XhfFPRYR1/xCh5qGM7zdS2CVqvjHTGINpmRuzseSivIyI1HVYa5YvG+TbwUm43j0SQAqLqfZmqgWfS7l6bfp8MCbmdZ1os/7iZO/5Sp1X14aMpOCx3Ieap7rBSwe9NdViqoJEO63gKRS9KPZW2Vy4WAaVDsU19lWzS/Tgzka5qbNodVhoAmRHgioSCG6xYU6LoYUa4cW+hrrx6ixZGbGq42Rey7ABHwCul2zxehgtxncOKyFrhsCZ90z0fxyF7JFul7LRaclXHK51+SiuRTQ0KqSywbRU8NB8W5G7nSx3pPdCK3uhDsQ1rikQrrKKICKfcrGTEutUj/WwZZLduSazhqjusODBc5rCizRvksI6TO5u4JT9F2caDJ5rIrQdNm1a5dfqo0WERgy4tTrOCsXBcN/o3+a0YOe5EcgFYhWEX3meBxyLW57VUkXwTdSnM/JcuBYH4ehQHarbJyrnmsNo/MRzrsIj0KzqsApUoCGOq0hdu0Xbk9yqyoeyw+oxWBWOU6J5+Frn8ZHzSXeZTmVhaP+71SL8BSzxLixX7gSdahmr2TFaTw0KVYxnssGhFAxyWuSXck4KKKg6utKIBZFWBFZHV4rCqzOpwWIVOjlqdVzp2RVWSxjj5mykvyBCtBEkK9uMej/Sbgcwc5PrMVY0SCxxWZWC4wmH5aIeiw2IqygyTYjBMU+tU6SGqQa+MGpiFqg4rtUzCt3PBd3L6aYPE9w6rwJI+Yt3MWbyR+MzORx5Fx4vOvBbNDotY8VhmOKzY5XsOC2+lFV9f0MzUprDFXA1q2SxY6XAk5JDQ6rBSxWl1O6zCFj9omPiXvHPbbRsGgqj44AIE+v/f29qDwcF0qlCK5F43jEQuV5QUlyeztJw6/TlUmMpp7icyPEQty02zdC7Kjhe7/YVbc+owsn6PwmpkvfVdwuuLWfsKSzvSPmohvKgBMeg1929vF1nYWmEdXDA/r7D2ofVXUKsfHN2dz4qO2zn07t3x2HlZV1x7HzNfvfMAYoq1u+tb+d8ksq4qrE4Mf6nCkp/4C89hAR3tVYdSwanwRsBSYdFoZh1WWIyxx6wLCosLPket7Rd8YYcV1t5XzeQTqqlcH8aeQH1zAKeK6/3SbR1WUgInQ8SRWPHoJtvuVlnXr6ZIdmrczyqs7bLCYlGKaqBI/lqYt2u16N7wzxfxjMJi30S5SWHRai5tv0lzbcvOebgEsQ4fedTmHbJiy+3m2qZiGxtOSKQDMtIhOkRVFQ58dqjizT/9Pxz+CXnDaYUV/AFOblDRBo/bkRp+RIpiUf+bPq6w1sy6rrCo9DiFrXcrr0W68VNJdYxY82gCdtQi+BqwDA3Rx98AKqpquH/atclLn8FHOMXftOof3SFZ+LHIDxq/iYlblraNqUd8lffZtn1SYeWzV0kiKgkvIvVtzx1/HBk0LRRWZ24LzX1WYeXxbb9Sbq0+rru3khLA2X+4ofDtgjPvsJOsxr+KzJ4uSCg1uR3qnN4smQLRi0vzuROgtFW4ejwrKQNUZYf3DEQQl68A15NC+N2WS5YHdwaFVWdH0GzbJ1Tn1H/8+uxImwbSjFX1zP6o5frW5AAFjc/bbdN+FyAXFBad6/OuEXavwuqeuYqQ7TwbRNFRTHg6KOrL21ekYYMvhtaWSuilfLFgT52bztcWbcVg3AHFu5luNbmaKKnnVoXo0HLNOyK7NGIptlrto3rM1nkJ5VY7P6CBlfZklytU5ZdnIrIcPlUbV+w67GuSLAwKHVZY1NfgwsabbWtPdVQdYnHLKTp6yiZeBnPRhw37CLAt5iWj1az3ZQEW++GUafXsRHBB1RpU++nRpmMYdNI+SClGrra3aDdg/EEx593cTz+L89hGVCaAi2lXavtPeExEjyMIPs/aV5VJivhqvroA2asxXzW1deS4BOPKH9bxVXxcseJEfl4K68rNvB9eYDQTmCQxaVcKD4RVzko8NI0AcGCnZ//LpqNDo7VCyqGDhybdMDtCDIEsnQVIgb2N1ghkcb1QSpWpb266cX24JHSokm6CgxXGfYji+S4ItW3U3qkV2t4n2aSORB/rJbWntu5HWakmZMk95XxcvuXryWEe96c8ROV//u+yRIxaNJxXeG8HRy7KNAK0ndR9AtQPDlWOiiwz1YVTmpIucMZrWJBLLYM1bn2DdDHKpEfhHhAhVyw/80NTm6F0AsZbj5yLCNWx+CVLb47T/6Gi/ZTbrUY/rbMg0ARF1lFkhl/lhlpkhdi4wbZg1kmFRZXBNtv9tO9xPtY/o+0qp2TMifocI3DqBRWED33ThUEpYICgWl+SHBqkUsXVWVsFR0V7FqbU596ZKSEwGxTQFYsE/AjyBvKsE7zJ19fe2xzEUGTBjKs1SIFkF4aGy6GXP9JT1A8+8Sqj49fYeWQJQjItvEsx2Y/uovEK8drVdPfXx7huIEt2z4gNrUbN9YcOFr/c/E25zTbWROKKaEgx4MpMINmE4GAywQ5jgHStEIa+6oWsWVuwUVmVCEoP5OJguUm3prcMCTjBHKNoINgZkORoBS+2gyEQhvnDhaMa2SFlvfA2W1ftfKiNGJyLDBFmdUBPl0vg4aI/YTNFktDTC/CoKxa85Kf+GDfbpc84tzW2zlLj6svUcSeRqGoPEkkg0zTfogdanlteKAp5pMOZzWgNHekcrBUMhxtCHaDO2OZKNEXHc+LUd3F7Ew0S22g+DUaocEVQh3ikEKN9tA2lN3YUVr1AkHdW0S5vyxdT7zdG0q8qVqzrN2R5iQigFqJdtSLlvhS4z2AV5MFHBVh5Jw+Ncb+xXHqCTPudQIuI7Y6vOmsbyLlfZHmCQCtXmbhVUYwsMpnEFvMOFJGsDObmeBa8Ccs9hUW89i5xQ1N32BhgMiNqQuZM70LngUFYMzjal04Dyn285U6RmyxlcUPBnNJiFHVzg1xOYUB97L1lpE65XVU9108ySWdQCs3kEhUMgrUzd+tpMZ/2HTxTUJrG0JRjqvJ4ul4NuYJhOnqOe2z9Oeli+DmYb7Y7Pye26EFh3WtbKqx8Twk3qFKAQ3sCJ6dInZi8ljuMxkhAgDPrYAJUh1ZqaGBK3BDRCD5SsOmNKwlqLjvesWQ4oJyYrQehUGB1H0RP9GGiNUQvyAkIV+E+uLmZOmsMGrBMBScx1GtNM5hlJ+jqwsnq32VX7rIp4HzRzl8GlOFljj2+tx6WYM/6szy/3yGwijKHow+OyKhXxZZ3n7JtuTxKq/CHwqo7YOFKKoXVnVp5Z9n4FRwL0lZOpF8gcOqgyIZyWQnWYSR2lhlgYrqkTCSFS+0hv/ABRHF6XEACSzILhm4MYXFGIhS5bHpwct9yQzCGToy4mwKcucuSn8GkZhVZeSosaA9QuU8Z3m1ROj+8ME/XomOKTxNcCVJPn2ClqmIejxew1Hi2vrdfnjlus220C6W1VljEnIDWdtMlr0MpFwbCUFhedQYsTI1NbRgwmCm1hiUX9VxNLvJN+pm4PlmvKo+Jc3YGxekQFw7MpR1HcUEOllMuO+vJfQ8kM7M8lqrsuJUkFB4NEjfWCktjw8SHfDqyzWeCPCOy+qRyrwOqC1rVQ22QEtzaPHREUzpB9F6V+oSVG/HOAP1Wm6uMZTrte23Yhakt54OUcL6AJS9nftvkD2R1GB2fhNalh17PQuvGnw1sGDFr8ChIXaQ87o/UJqmVz2GxA1szw7gWRXOiWJz3xiEMjErgbkqrcCazOJmaaitzI5gVjK6JiSeamZTiURxOKMnJ3ACmP65RzCggcxo25jKvCjRsPcSvrXp3lJQa1j6gj63eLKbUMhgokqkDnqnST9wxCsWnjjgNGKtTn7b6nf82pRJ0+VSWDPNq2B6b2OWInSpeYRxhq9H6zSx9u4CDSVj+W0BxRNMxzAjtIq2Y5FjBQoKZx7bQcWAmiTnqjU7UAD3uGJNYBcyo+OaZIxMmhZ5C1MV1qOkN2AoAlMIyL8h7/ZJB6LbOylLEypV3l2kilIyfXWkxD4g7Lwo25igJ8lqLZ7x1NplBEMw/KYrOMG+wIwC6vsqdL3DO6MufCypoYdjJ/4Fy/cdtl1/r0cieIlfLRzlrKrs/coCecCq0LCRydTsyong4MtKtWvSOFCuYCTjsHyoBDUhs7+QKFFpLRsHNflKTAza4iEBF90yNL4/66YVWlXi3/hu5tpbb/JMUvq/UvR6018L6uQ7ukBLCu4iFE5Ebl8gx/bD8LqjYcwkUqQbXOJWu/gYT+oJLMFcAyDcoGi5AR7UPBIlu82lx2gU6zqWIDN6m/yf+jymR8ejXOTBh1mlPYScLYZCQYB1kbq4POr3hmzfECnYypjHBLelw2OnRGN6wGmS1I3GXyoRMpWCdD7a3UkApzj2lyKliGHdN2uY6xEqYU/FYgMsoZiC5+TFGRu/BDGECgvrgJpNVB1HJ8VFWs2HIiFHiUj5+0zKJP8YdxNKZuAluSJWQdI500+FLG4yfcFnrMu8IPYkumQjxp1k8kK3lZipMXNdVoZDupIBRFPX47HO++xi/c+N3EnPOpeclCgtM6PiY2ZAPNuSjRwL1rKWrqWZkLIA0WZanREGPmN+pp/BA2n4ElNF8AlDR+XLqlgmuPJP7Nv3Fb5x4zbRjIMLcMyKXTJL2Ry/hqup5HHdLb5aRIGTEWVMcUamD5kXLP5uUOoqU1LBF5kWSp8i1JXzsDPXWWRVLgt23eyCG4OohVNZfVO/9yuUAZqDqACR/oz9S4mdO4robcIq0T23UBNAL4g1mbKDCDqaVWyz5IKG4VpWJsxbV4ionE1dRRU4ugUtPpDOXHIyeag8ADGFAjotLTZ4SwUAKl6N6fVKpxLRvgtDg7Yxr4Na14ZaZrMGTkOGuuTdl30iR2eJOltIfgdNIwFUAmqcspbUbRaHq6N61oepbS5N2gjB57FbT1CPrRoW57F+Phzr4Z6ecP2qjwe/NCP1rApyrpfPn3ebvQcKYJrWEEeItMA/RxBc+5PfgSPLHQlZL2eGCAuc00T18POSESmrF5eaycq6+M3PdA0Ni1pFRUlE9pFaE8gPN1gQwrWfyZXLzYWgGx6mZKB7SgILMsb6uOoyg7mpNMfrb1X0sBuJlnd117m9BhJzqotRzN76XV1214docbrprum/7n23kV1VRZRsko0dutuYHdOnkVk4IfYD5GvCMZTiTJ+ZzvNsFY/BAi8E4jFn0RKZEMmQ/89vuUFhy9foXsS2yHAf3gGOntnY52C5aY/pauD0iQDQaR+2WWaRxLv3pK+7XkMaDkIMJ9hzjwrWJcfuomP/4twubaUjRfFbUrf3/zatv7N3bioMwFAXQOY/5/x8emCCbcOZWdSa0rFVKTaKltHQTNdEp2jyV1K7Wodd9ndSn1Nv/Ty2FPPvR6pHFtH7ZrU5VN5aTat9tmua0JFXWTE9V9BX6j9evaZOGnoL59NG/gARSNo/kfG8eDyRFAvPw7H/amT9TEilVsayjfwVsUNnNq7y0ypHbhH8U9K+ADeoUeQXs8MANM48DXfYHgU1mEP36oX8FbFT1QGY5PQhcips4/R4OXwF/68ZEqbchroCb/Xhp8nE2sjIErk9anwtPP+wM2OOYLdPN2iuRVVnOAOaSV8A5/f6Ix8K4MnGmPi8PWQVc0q7Qkuo7vMz0IwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN7ZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRX24EAAAAAAAMj/tRFUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYU9OBAAAAAAAPJ/bQRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWEPDgQAAAAAgPxfG0FVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdiDAwEAAAAAIP/XRlBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFfbgQAAAAAAAyP+1EVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVhT04EAAAAAAA8n9tBFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYQ8OBAAAAACA/F8bQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV2IMDAQAAAAAg/9dGUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUV9uBAAAAAAADI/7URVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWlPTggAQAAABD0/3U/QgUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgIUobGc+JGHE/AAAAAElFTkSuQmCC",e=>e.width-1),Ha=E.Ay.div.withConfig({displayName:"styles__StyledSearchInput",componentId:"sc-179lhd2-1"})(["&.search-container{width:240px;height:36px;position:relative;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,0.25);background:#fff;border:1px solid rgba(0,0,0,0.12);box-sizing:border-box;border-radius:32px;margin-right:26px;.search-icon{width:24px;margin:0 4px;& > *{fill:none;}}.search-input{height:100%;flex:1;font-size:14px;line-height:28px;color:#333;&::placeholder{color:rgba(102,102,102,0.7);}}.clear-icon{width:20px;height:20px;margin:0 12px 0 8px;cursor:pointer;opacity:0;pointer-events:none;transition:all 0.15s ease-in-out;&.is-show{pointer-events:auto;opacity:1;}}}"]),or=E.Ay.div.withConfig({displayName:"styles__StyledMarkDown",componentId:"sc-179lhd2-2"})(["width:100%;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;letter-spacing:1px;padding:26px 40px 0;color:#555;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#f7f7f7;border-radius:6px;border:3px solid #fff;}.md-preview{&.disable-events{pointer-events:none;}mark,.mark{padding:0.14em;background-color:#fcf8e3;}img,video{margin:0;border:0;max-width:100%;}img{border:solid 1px rgba(0,0,0,0.06);}p{margin:1rem 0;font-size:1rem;line-height:1.4rem;}a{color:#1684fc;cursor:pointer;&:visited{color:#1169c9;background-color:transparent;}&:active{color:#1684fc;background-color:transparent;}&:hover{text-decoration:none;}}h1,h2,h3,h4,h5,h6{color:#333;background-color:transparent;margin:0.7rem 0;font-weight:normal;}h1{font-size:1.25rem;font-weight:500;margin:0;}h2{font-size:16px;line-height:16px;font-weight:500;padding-top:61px;margin:-50px 0 11px 0;}h3{font-size:140%;}h4{font-size:110%;}h5{font-size:105%;}h6{font-size:100%;}code{margin:0 4px;color:#666;border-radius:4px;padding:2px 6px;background-color:#f1f1f1;border:1px solid #efefef;}pre{display:block;font-size:87.5%;margin-top:0;margin-bottom:0.7rem;overflow:auto;code{font-size:9px;border:none;background-color:rgb(0,43,54);}}pre{font-size:9px;border-radius:2px;background-color:rgb(0,43,54);}blockquote{margin:1.4rem 0;font-size:0.7rem;font-weight:400;border-left:4px solid rgb(238,238,238);font-style:italic;padding:7px 14px;}ol,ul,dl{display:block;list-style:initial;margin-block-start:0.7rem;margin-block-end:0.7rem;margin-inline-start:0;margin-inline-end:0;padding-inline-start:32px;margin-top:0;margin-bottom:0.7rem;font-size:0.7rem;line-height:1.4rem;ul{list-style-type:circle;}}ol{list-style-type:decimal;}ul{list-style-type:disc;}table{border-collapse:collapse;border:1px solid #efefef;border-bottom:1px solid #ddd;-webkit-box-shadow:0 1px 3px 0 #eee;-moz-box-shadow:0 1px 3px 0 #eee;-ms-box-shadow:0 1px 3px 0 #eee;box-shadow:0 1px 3px 0 #eee;}td,th{border:1px solid #ddd;padding:0.35rem;}th{background-color:#f5f5f5;}}"]),gi=(e,t)=>{const n=new Error(e);return Object.assign(n,t),n},Qr=async e=>{const t=await fetch(e,{method:"GET"});if(!t.ok)throw gi("[fetchPutJSON] failed with "+t.status+": "+e,{...await t.json(),status:t.status});return t.json()},Qi={learn:["a1_proto_tool","a10_proto_tool_v8","a2_design_tool","a3_design_canvas","a4_org_space","a5_market","a6_account","a11_axfile"]},rs={a1_proto_tool:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a10_proto_tool_v8:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a2_design_tool:["a2_design_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a3_design_canvas:["a3_design_canvas","a4_org_space","a6_account","a7_abnormal","a8_payment"]},Li=e=>{const t={};return e.forEach(n=>{t[n]=[]}),t},ns=function(e,t){t===void 0&&(t="order"),e.sort((n,r)=>n[t]-r[t])},Es=(e,t)=>{for(const n of Object.keys(e))ns(e[n],t)},ys=e=>{let t=[],n=Li(Qi.learn);return e.forEach(r=>{let{root:s,parent:c,order:d,title:p,article:g}=r;switch(s){case"recommend":t.push({recommendTitle:p,...g,recommendOrder:d});break;case"learn":c!==null&&n[c].push({recommendTitle:p,...g,learnOrder:d});break;default:break}}),ns(t,"recommendOrder"),Es(n,"learnOrder"),{recommend:t.slice(0,6),learn:n}},sr=async()=>{let e,t="/go/v1/hc/homepage";try{e=await Qr(t),e=ys(e)}catch(n){console.error(n)}return e},mi=async(e,t)=>{let n=rs[t],r=Li(rs[t]),{hits:s,nbHits:c,offset:d,query:p}=e;return c=0,await s.forEach(g=>{n.includes(g.root_category)&&(r[g.root_category]&&r[g.root_category].push(g),c+=1)}),{resultList:r,hits:s,nbHits:c,offset:d,query:p}},Bt=async e=>{let{keywords:t=""}=e,n;try{n=await Qr("/go/v1/hc/search?q="+t)}catch(r){console.error(r)}return n},vn=async e=>{let t,n="/go/v1/hc/categories?root_category="+e;try{t=await Qr(n),t=Io(t)}catch(r){console.error(r)}return t},Io=e=>{let t=[],n=[],r={},s=new Set;return e.forEach(c=>{let{category:d,category_order:p}=c;if(s.has(p))return;s.add(p);let g=[];e.forEach(_=>{_.category_order===p&&(g.push(_),r[_.id]=_.title)}),ns(g);let y=g.map(_=>_.id),w={categoryOrder:p,name:d,catalogs:g,articleIdList:y};t.push(w)}),ns(t,"category_order"),t.forEach(c=>n.push(...c.articleIdList)),{categoryList:t,articleIdList:n,idTitleMap:r}},No=async e=>{let t,n="/go/v1/hc/articles/"+e;try{t=await Qr(n)}catch(r){console.error(r)}return t};function _a(e,t,n){return(t=Ur(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(e){var t=fr(e,"string");return typeof t=="symbol"?t:t+""}function fr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Ar={a1_proto_tool:"\u539F\u578B\u5DE5\u5177",a10_proto_tool_v8:"\u539F\u578B V8",a2_design_tool:"\u8BBE\u8BA1\u5DE5\u5177",a3_design_canvas:"\u8BBE\u8BA1\u534F\u4F5C",a4_org_space:"\u4F01\u4E1A\u7A7A\u95F4",a5_market:"\u7D20\u6750\u5E7F\u573A",a6_account:"\u8D26\u53F7\u4E0E\u7BA1\u7406",a7_abnormal:"\u5F02\u5E38\u95EE\u9898",a8_payment:"\u4ED8\u8D39\u4E0E\u53D1\u7968",a9_other:"\u5176\u4ED6"},zr=/[`~!@#$%^&*()_\-+=<>?:~"{}|,.\/;'\\[\]·~@#¥%……&…*()——\-+={}|《》?:”“【】、;‘',。、「」『』〈〉]/im;class Fr extends l.PureComponent{constructor(){super(...arguments),_a(this,"state",{position:{top:"50%",left:"50%"},isDragged:!1,width:800,page:"home",homePageData:null,recommend:null,learn:null,categoryList:null,inputValue:"",isOnComposition:!0,isFocus:!1,isCanHover:!0,isFetching:!0,matchList:"",hits:"",nbHits:"",selectedId:"",selectedTitle:"",selectedCategory:"",selectedContent:"",isShowCategory:!1,showCategoryCatalog:!1,isV8New:!1}),_a(this,"setCategoryLinkList",t=>this.$linkList=t),_a(this,"setSearchRef",t=>this.$search=t),_a(this,"setSearchInput",t=>this.$searchInput=t),_a(this,"handleComposition",async t=>{let n=t.type==="compositionend";this.setState({isOnComposition:n}),!n&&navigator.userAgent.indexOf("Chrome")>-1&&await this.handleInputChange(t)}),_a(this,"handleCompositionStart",()=>{this.setState({isOnComposition:!1})}),_a(this,"handleCompositionEnd",async t=>{this.setState({isOnComposition:!0}),await this.handleInputChange(t)}),_a(this,"filterFirstSpecialChar",t=>{if(t&&t.length>0){let n=t.substr(0,1);if(zr.test(n)||n===" ")return t=t.substr(1),this.filterFirstSpecialChar(t)}return t}),_a(this,"handleInputChange",async t=>{let n=t.target.value;if(n.slice(-1)==="/")return;n=this.filterFirstSpecialChar(n);const r=n?"search":"home";await this.setState({inputValue:n,page:r,isFocus:!!n,isShowCategory:!n,isFetching:!0}),await this.debounceSearchHandler(n)}),_a(this,"clearInputValue",()=>{this.setState({page:"home",inputValue:"",isShowCategory:!1,isFocus:!1})}),_a(this,"handleInputFocus",()=>{this.setState({isFocus:!0}),this.$searchInput.focus()}),_a(this,"handleInputBlur",()=>{this.setState({isFocus:!1}),this.$searchInput.blur()}),_a(this,"handleOnFocus",()=>{this.setState({isFocus:!0})}),_a(this,"handleOnBlur",()=>{this.setState({isFocus:!1})}),_a(this,"handleSearch",async t=>{if(!this.state.isOnComposition)return;const{productName:n}=this.props;let{selectedId:r,page:s}=this.state;const c=await Bt({keywords:t});let{resultList:d,hits:p,nbHits:g}=await mi(c,n);const y=Object.entries(d).filter(w=>w[1].length!==0);r=s==="search"&&g?y[0][1][0].id.split("-")[1]:r,this.setState({matchList:y,hits:p,nbHits:g,selectedId:r,selectedTitle:"\u67E5\u770B\u5168\u90E8",selectedCategory:"\u67E5\u770B\u5168\u90E8",isFetching:!1})}),_a(this,"debounceSearchHandler",ko()(this.handleSearch,500)),_a(this,"debounceSearchSetHover",ko()(()=>{this.setState({isCanHover:!0})},300)),_a(this,"handleKeyDown",async t=>{t.stopPropagation();const{page:n,isFocus:r,selectedId:s,isShowCategory:c}=this.state;if(t.key==="Enter"&&!r&&s&&!c)await this.toSearchPage();else if((t.key==="ArrowDown"||t.key==="ArrowUp")&&!c){this.handleInputBlur(),this.setState({isCanHover:!1});let d=t.key==="ArrowDown"?1:-1,p=n==="home",g=p?this.$linkList:this.$search,y=Array.from(g.querySelectorAll("li"));for(let w=0;w<y.length;w++){let _=y[w],j=(w+d+y.length)%y.length,N=y[j];if(_.dataset.id===s){const{id:Z,category:Q}=N.dataset;if(this.setState({selectedId:Z,selectedCategory:Q}),!p){const se=N.getBoundingClientRect().top-g.getBoundingClientRect().top*2;g.scrollBy({top:se,behavior:"smooth"})}this.debounceSearchSetHover();break}}}else t.key==="Escape"?this.handleOnClose():t.key==="/"&&this.handleInputFocus()}),_a(this,"toSearchPage",async()=>{const{productName:t}=this.props,{page:n,selectedId:r,learn:s,matchList:c,selectedCategory:d}=this.state,p=s[t].slice(0,9);let g,y,w=n==="home";w?g=this.getArticleContent(p,r):g=c.find(N=>N[0]===d)[1].find(N=>N.id==="article-"+r).content_html,y=w?t:d;const{categoryList:_}=await vn(y);this.setState({selectedContent:g,page:"search",isShowCategory:!0,categoryList:_,isCanHover:!0})}),_a(this,"toggleHover",t=>{if(!this.state.isCanHover)return;let{id:n,title:r,category:s}=t.target.dataset;this.setState({selectedId:n,selectedTitle:r,selectedCategory:s})}),_a(this,"updateCategoryList",async t=>{const{categoryList:n}=await vn(t);this.setState({categoryList:n})}),_a(this,"handleMove",(t,n)=>{const r={left:t,top:n};this.setState({position:r,isDragged:!0})}),_a(this,"handleWidthChange",t=>{this.setState({width:t})}),_a(this,"handleOnClose",()=>this.props.onClose()),_a(this,"getArticleContent",(t,n)=>t.find(r=>r.id===parseInt(n)).content_html),_a(this,"handleSelectRecommend",async t=>{t.stopPropagation();const{recommend:n}=this.state,{articleId:r,root:s}=t.currentTarget.dataset;await this.updateCategoryList(s);const c=this.getArticleContent(n,r);this.setState({page:"search",isShowCategory:!0,selectedContent:c,selectedId:r,isCanHover:!0})}),_a(this,"selectCatalog",async t=>{const{id:n}=t.currentTarget.dataset,r=await No(n),{content_html:s}=r;this.setState({selectedId:n,selectedContent:s,isShowCategory:!0,page:"search",showCategoryCatalog:!1})}),_a(this,"showCategoryCatalogAction",()=>{const{showCategoryCatalog:t}=this.state;this.setState({showCategoryCatalog:!t})}),_a(this,"handleToHCPage",()=>{const{selectedId:t}=this.state;window.open("https://modao.cc/hc/articles/"+t)}),_a(this,"getMarkDownContent",()=>{let{selectedContent:t,hits:n,isShowCategory:r,selectedId:s}=this.state;if(!r){let c=n&&n.find(d=>d.id.split("-")[1]===s);t=c==null?void 0:c.content_html}return t})}async componentDidMount(){const{productName:t}=this.props,{recommend:n,learn:r}=await sr(),s=String(r[t][0].id),c=r[t].slice(1,9),{categoryList:d}=await vn(t);this.setState({recommend:n,learn:r,categoryList:d,selectedId:s,recommendAll:s,productRecommend:c})}async componentDidUpdate(t,n){const{frontPageId:r}=this.props,{page:s}=n,{page:c,recommendAll:d,isV8New:p}=this.state;if(r&&!p){const g=await No(r),{content_html:y}=g;this.setState({page:"search",isShowCategory:!0,selectedContent:y,selectedId:r,isCanHover:!0,isV8New:!0})}else!aa()(c,s)&&c==="home"&&this.setState({selectedId:d,isShowCategory:!1})}render(){const{draggableContainer:t,zIndex:n,productName:r}=this.props,{page:s,position:c,width:d,isDragged:p,recommend:g,learn:y,recommendAll:w,productRecommend:_,categoryList:j,matchList:N,nbHits:Z,inputValue:Q,isFetching:se,selectedId:ie,isShowCategory:he,showCategoryCatalog:xe}=this.state;if(!g||!y)return null;const Se=d<500,_e=s==="search",De=s==="home",Je=!se&&Z,Ne=this.getMarkDownContent();return(0,o.jsx)(dr.A,{container:t,position:c,onMove:this.handleMove,children:(0,o.jsxs)(Va,{width:d,zIndex:n,className:m()("hc-container",{"is-not-dragged":!p},{"is-home":De}),ref:this.setElementRef,children:[(0,o.jsxs)("header",{className:"hc-header",type:"draggable",children:[(0,o.jsxs)("div",{className:"hc-header-left",children:[_e&&he&&(0,o.jsx)(ma.A,{name:"searchbar_menu",onClick:this.showCategoryCatalogAction}),!Se&&(0,o.jsx)("span",{className:"hc-header-title",children:De?"\u58A8\u5200\u5E2E\u52A9\u4E2D\u5FC3":he?"\u539F\u578B\u5E2E\u52A9\u6587\u6863":"\u641C\u7D22\u7ED3\u679C"}),_e&&!he&&Je?(0,o.jsxs)("span",{className:"hc-hits",children:["\u201C"+Q+"\u201D","\u7684\u641C\u7D22\u7ED3\u679C\u6709",Z+"\u6761\uFF1A"]}):""]}),(0,o.jsxs)("div",{className:"hc-header-right",children:[(0,o.jsxs)(Ha,{className:"search-container",children:[(0,o.jsx)(ma.A,{name:"search_icon",className:"search-icon"}),(0,o.jsx)("input",{value:Q,ref:this.setSearchInput,className:"search-input",type:"text",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\uFF1A\u9AD8\u7EA7\u7EC4\u4EF6",onChange:this.handleInputChange,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,onCompositionStart:this.handleCompositionStart,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleCompositionEnd}),(0,o.jsx)(ma.A,{name:"common_close",className:m()("clear-icon",Q&&"is-show"),onClick:this.clearInputValue})]}),(0,o.jsx)(ma.A,{className:"hc-close-btn",name:"general/times",onClick:this.handleOnClose})]})]}),De&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"topic-wrap",children:[(0,o.jsx)("p",{children:"\u{1F525}\xA0\xA0\xA0\u70ED\u95E8\u63A8\u8350"}),(0,o.jsx)("ul",{children:g.map(pt=>{let{recommendTitle:_t,id:gt,root_category:Ct}=pt;return(0,o.jsx)("li",{"data-article-id":gt,"data-root":Ct,onClick:this.handleSelectRecommend,children:(0,o.jsx)("span",{children:_t})},gt)})})]}),(0,o.jsxs)("div",{className:"topic-by-category",children:[(0,o.jsxs)("div",{className:"category-title",children:[(0,o.jsx)("img",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u56FE\u6807","data-category":r,src:"https://modao.cc/mb-brand/images/hc/category/"+r+".png",alt:"product-image",className:"product-icon"}),(0,o.jsx)("span",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u6807\u9898","data-category":r,className:"product-name",children:Ar[r]+"\u5E2E\u52A9\u6587\u6863"})]}),(0,o.jsxs)("ul",{className:"link-list",ref:this.setCategoryLinkList,children:[(0,o.jsxs)("li",{className:m()(w===ie&&"is-active"),"data-id":w,"data-category":r,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,o.jsx)(ma.A,{name:"get_more_icon",className:"get-more-icon"}),(0,o.jsx)("span",{children:"\u67E5\u770B"+Ar[r]+"\u5168\u90E8\u6559\u7A0B"})]},"cat-link-"+w),_.map(pt=>{let{recommendTitle:_t,id:gt,root_category:Ct}=pt;return(0,o.jsxs)("li",{className:m()(gt===parseInt(ie)&&"is-active"),"data-id":gt,"data-category":Ct,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,o.jsx)(ma.A,{name:"link_icon",className:"link-icon"}),(0,o.jsx)("span",{children:_t})]},"cat-link-"+_t)})]})]})]}),_e&&(0,o.jsxs)("div",{className:m()("hc-search",xe&&"show-category"),children:[!he&&(0,o.jsx)("div",{className:"search-match-container",ref:this.setSearchRef,children:se?(0,o.jsxs)("div",{className:"loading-result",children:[" ",(0,o.jsx)("p",{children:"\u641C\u7D22\u4E2D..."})," "]}):Je?(0,o.jsx)(o.Fragment,{children:N.map(pt=>(0,o.jsxs)("div",{className:"search-match-box",children:[(0,o.jsx)("p",{className:"list-title",children:Ar[pt[0]]}),(0,o.jsx)("ul",{className:"result-list",children:pt[1].map(_t=>{let{id:gt,category:Ct,title:zt,root_category:Dt}=_t,sn=new RegExp(Q,"g"),Rn='<span class="result-divider">/</span>';gt=gt.split("-")[1],Ct=Ct.replace(sn,"<strong>"+Q+"</strong>");let On=zt.replace(sn,"<strong>"+Q+"</strong>"),Lo=Ct+Rn+On;return(0,o.jsx)("li",{"data-id":gt,"data-title":zt,"data-category":Dt,className:m()("result-li",gt===ie&&"selected"),onClick:this.toSearchPage,onMouseEnter:this.toggleHover,dangerouslySetInnerHTML:{__html:Lo}},"match-list-"+gt)})})]},pt[0]))}):(0,o.jsxs)("div",{className:"no-matched-result",children:[(0,o.jsxs)("p",{children:["\u62B1\u6B49 \u6CA1\u627E\u5230\u201C",(0,o.jsx)("strong",{children:Q}),"\u201D\u76F8\u5173\u5185\u5BB9"]}),(0,o.jsx)(Ir.A,{children:"\u5728\u7EBF\u5BA2\u670D"})]})}),(0,o.jsx)(or,{children:(0,o.jsx)("div",{className:m()("md-preview",!he&&"disable-events"),dangerouslySetInnerHTML:{__html:Ne}})}),he&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"category-list-bg-mask"}),(0,o.jsxs)("div",{className:"category-list",children:[(0,o.jsxs)("div",{className:"category-title",children:[(0,o.jsx)("span",{children:"\u6587\u7AE0\u76EE\u5F55"}),(0,o.jsx)(ma.A,{name:"category_close",onClick:this.showCategoryCatalogAction})]}),(0,o.jsx)("aside",{className:"category-catalog",children:j.sort((pt,_t)=>pt.categoryOrder-_t.categoryOrder).map(pt=>{let{name:_t,catalogs:gt}=pt;return(0,o.jsxs)("div",{className:"article-catalog-box",children:[_t&&(0,o.jsx)("p",{className:"meaningless-title",children:_t}),(0,o.jsx)("ul",{className:"article-title-list",children:gt.map(Ct=>{let{title:zt,id:Dt}=Ct;return(0,o.jsx)("li",{"data-id":Dt,className:m()(Number(ie)===Dt&&"active-title"),onClick:this.selectCatalog,children:(0,o.jsx)("span",{children:zt})},"article-link-"+Dt)})})]},_t)})})]})]})]}),(0,o.jsx)("div",{className:"bottom-description",children:(0,o.jsxs)("div",{className:"desc-cont",children:[(0,o.jsx)("div",{className:"desc-part",children:_e&&he?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"to-hc-page",onClick:this.handleToHCPage,children:[(0,o.jsx)(ma.A,{className:"svg-open-hc-page margin-r-4",name:"open_hc_page"}),(0,o.jsx)("span",{children:"\u53BB\u5E2E\u52A9\u4E2D\u5FC3web\u67E5\u770B\u6559\u7A0B"})]})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(ma.A,{className:"svg-triangle margin-r-4",name:"common_triangle_down"}),(0,o.jsx)(ma.A,{className:"svg-triangle svg-rotate margin-r-8",name:"common_triangle_down"}),(0,o.jsx)("span",{children:"\u9009\u62E9\u5217\u8868"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(ma.A,{className:"margin-r-6",name:"common_enter"}),(0,o.jsx)("span",{children:"\u8FDB\u5165\u6587\u6863\u8BE6\u60C5\u9875"})]})]})}),!Se&&(0,o.jsxs)("div",{className:"desc-part",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"margin-r-8",children:"/"}),(0,o.jsx)("span",{children:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"margin-r-6",children:"esc"}),(0,o.jsx)("span",{children:"\u5173\u95ED"})]})]})]})}),_e&&he&&(0,o.jsx)(ni.A,{className:"none-active-style",placement:"right",value:d,min:375,max:800,onChange:this.handleWidthChange}),(0,o.jsx)(ln.A,{target:document,onKeyDown:this.handleKeyDown})]})})}}_a(Fr,"propTypes",{onClose:Sa().func,productName:Sa().string,draggableContainer:Sa().string,zIndex:Sa().number,frontPageId:Sa().string}),_a(Fr,"defaultProps",{productName:"a1_proto_tool"});var os=i(4650),Ei=i(58320);const Kl=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledMasterCreateModal",componentId:"sc-1s1gto9-0"})([".content{display:flex;flex-direction:column;.modal-content{.masterbox{display:flex;img{width:100px;height:100px;margin-right:26px;}.master{display:flex;flex-direction:column;.master-title{font-size:16px;color:",";letter-spacing:0;span{font-size:12px;color:",";margin-left:10px;}:lang(en){span{margin-left:0;display:block;margin-top:14px;}}}input{border-color:",";border-radius:6px;&:enabled:not([readonly]):focus{border:1px solid ",";}}.master-context{font-size:13px;color:",";line-height:22px;margin:10px 0 12px 0;}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_border_state,e=>e.theme.color_proto,e=>e.theme.color_text_L2);class as extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setInputRef",n=>this.input=n),(0,O.A)(this,"handleNameChange",n=>this.setState({templateName:n})),(0,O.A)(this,"handleCreate",()=>{const{onConfirm:n}=this.props,{templateName:r}=this.state;n({name:r,onSuccess:()=>{MB.notice({text:I18N.dModals.master_create_success})}})}),this.state={templateName:t.name}}componentDidMount(){this.input.querySelector("input").select()}render(){const{isOpen:t,onClose:n}=this.props,{templateName:r}=this.state;return(0,o.jsx)(Kl,{isOpen:t,canConfirm:!0,onClose:n,onConfirm:this.handleCreate,className:"top-modal",title:null,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},children:(0,o.jsx)("div",{className:"master-create-modal",children:(0,o.jsxs)("div",{className:"masterbox",children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:"/mb-workspace/images/workspace/design/master.png"})}),(0,o.jsxs)("div",{className:"master",ref:this.setInputRef,children:[(0,o.jsxs)("p",{className:"master-title",children:[I18N.dModals.create_master,(0,o.jsx)("span",{children:I18N.dModals.can_reuse})]}),(0,o.jsx)("p",{className:"master-context",children:I18N.dModals.be_master}),(0,o.jsx)(os.A,{type:"text",placeholder:I18N.dModals.input_master_name,value:r,onChange:this.handleNameChange})]})]})})})}}var al=i(78401);const pd=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledMasterDeleteModal",componentId:"sc-13z9y7p-0"})(["&.master-delete-modal{.content{p{font-size:14px;color:",";line-height:22px;span{color:",";&:hover{color:",";}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover);class Cd extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleConfirm",()=>{const{onConfirm:t}=this.props;t()})}render(){const{isOpen:t,onClose:n,name:r,panelCount:s}=this.props,c=s>0,d=c?I18N.dModals.delete:I18N.dModals.confirm,p=c?I18N.dModals.contains_the_project+" "+s+" "+I18N.dModals.widget_from_master+"\u300E<span>"+(0,al.rB)().process(r)+"</span>\u300F</br>"+I18N.dModals.independent_widget:I18N.dModals.confirm_del_master+" \u300E<span>"+(0,al.rB)().process(r)+"</span>\u300F "+I18N.dModals.is_confirm;return(0,o.jsx)(pd,{className:"master-delete-modal top-modal",isOpen:t,onConfirm:this.handleConfirm,onClose:n,confirmText:d,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:I18N.dModals.del_master,children:(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:p}})})}}const wc=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledComboGroupRemoveModal",componentId:"sc-yqtdi7-0"})(["&.combo-group-remove-modal{.content{p{font-size:14px;color:",";span{color:#298df8;}}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1),ba=(0,E.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),$r=E.Ay.div.withConfig({displayName:"styles__NodeContainer",componentId:"sc-yqtdi7-1"})(["transition:max-height 0.5s ease-in-out;overflow:hidden;max-height:",";"],e=>e.expanded?"1000px":"24px"),Ni=E.Ay.div.withConfig({displayName:"styles__NodeLabel",componentId:"sc-yqtdi7-2"})(["height:24px;display:flex;align-items:center;cursor:pointer;color:",";padding-left:","px;svg.svg-icon{width:16px;height:16px;margin-right:4px;fill:currentColor;&.expander{color:",";margin-right:4px;&.is-collapsed{transform:rotate(90deg);}}&.folder{min-width:20px;min-height:20px;margin-right:8px;color:#4F5052 !important;}}.title{max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}:not(.is-show-collapsed){padding-left:","px;}&:hover{background:",";}&.is-selected{background:",";}border-radius:4px;background:",";svg.svg-icon{&.folder{path{stroke:",";fill:none;}}}"],e=>e.theme.color_text_L1,e=>e.isOnlyOneLevel?16:e.depth*16,e=>e.theme.color_text_L1,e=>e.isOnlyOneLevel?(e.depth-1)*16+20:e.depth*16+20,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),Bs=E.Ay.div.withConfig({displayName:"styles__TreeContainer",componentId:"sc-yqtdi7-3"})(["box-sizing:border-box;width:200px;max-height:434px;padding:8px;font-weight:400;overflow:hidden;color:",";border-radius:8px;border:1px solid ",";background:",";box-shadow:",";"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.shadow_m),Ec=E.Ay.div.withConfig({displayName:"styles__ScrollableContent",componentId:"sc-yqtdi7-4"})(["overflow-y:auto;max-height:417px;width:182px;::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);&:hover,&:active{background-color:rgba(255,255,255,0.35);}}"]),ps=E.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-yqtdi7-5"})(["margin:4px 0;border-top:1px solid ",";"],e=>e.theme.color_bg_border_01);var Yl=i(33515);const ls=e=>{var t,n,r;let{node:s,depth:c,selected:d,isOnlyOneLevel:p,onNodeSelect:g}=e;const[y,w]=(0,l.useState)(!1),_=Z=>{Z.stopPropagation(),w(!y)},j=Z=>{Z.stopPropagation(),g(s)},N=s.cid!=="no unset";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)($r,{expanded:y,children:[(0,o.jsxs)(Ni,{className:m()({"is-show-collapsed":((t=s.subFolder)==null?void 0:t.length)>0,"is-selected":s.cid===d}),onClick:j,depth:c,isOnlyOneLevel:p,children:[((n=s.subFolder)==null?void 0:n.length)>0&&(0,o.jsx)(Et.C,{className:m()("expander",{"is-collapsed":y}),name:"common/solid-arrow",onClick:_}),N&&(0,o.jsx)(Et.C,{className:"folder",name:y?"common/design-system/folder-icon":"common/design-system/folder-icon-close"}),(0,o.jsx)("span",{className:"title",children:s.name})]}),y&&(0,o.jsx)("div",{children:(r=s.subFolder)==null?void 0:r.map(Z=>(0,o.jsx)(ls,{node:Z,onNodeSelect:g,depth:c+1},Z.cid))})]}),!N&&(0,o.jsx)(ps,{})]})},wl=e=>{let{data:t,group:n,selected:r,onNodeSelect:s}=e;const c=t.find(d=>d.subFolder.length>0)===void 0;return(0,o.jsx)(Bs,{children:(0,o.jsx)(Ec,{children:t.map(d=>{if((n==null?void 0:n.cid)!==d.cid)return(0,o.jsx)(ls,{selected:r,node:d,onNodeSelect:s,depth:1,isOnlyOneLevel:c},d.cid)})})})},Sc="no unset";class lc extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setComponentRef",n=>this.dropdown=n),(0,O.A)(this,"handleNodeSelect",n=>{this.setState({selectedCid:n.cid,selectedNode:n}),this.dropdown.close()}),(0,O.A)(this,"handleDelete",()=>{const{onModalDelete:n}=this.props,{selectedCid:r}=this.state;n({isDeleteCombo:r===Sc,selectedCid:r})}),(0,O.A)(this,"renderFooterContent",()=>{const{combosToRemove:n,comboGroupsCanMoveTo:r,comboGroup:s}=this.props,{selectedCid:c}=this.state,d=(n==null?void 0:n.length)>0,p=[{name:I18N.dModals.not_transfer,cid:Sc,subFolder:[]}].concat(r.sort((y,w)=>y.data.zIndex-w.data.zIndex)),g=r.length===1&&r[0].cid===s.cid;if(d)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Yl.Ay,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:c===Sc,isOpenerAttrDisabled:g,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(wl,{data:p,group:s,selected:c,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)(ba,{})]})}),this.state={selectedCid:Sc,selectedNode:{}}}render(){const{isOpen:t,title:n,onClose:r,comboGroup:s,combosToRemove:c}=this.props,{selectedCid:d}=this.state,p=(c==null?void 0:c.length)>0,g=d!==Sc?I18N.dModals.move_and_del:I18N.dModals.confirm,y=(c==null?void 0:c.length)===1?I18N.dModals.move_widget_library_one:I18N.dModals.move_widget_library_than_one,w=p?"\u300E"+s.name+"\u300F"+I18N.dModals.contain+" "+(c==null?void 0:c.length)+" "+y:I18N.dModals.confirm_del_widget_library.replace("{name}",s.name);return(0,o.jsx)(wc,{isOpen:t,className:"combo-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:r,confirmText:g,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:n||I18N.dModals.del_my_widgets,children:(0,o.jsx)("p",{children:w})})}}const Ic=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledWorkspaceAsyncModal",componentId:"sc-k42yjc-0"})(["margin-bottom:24px;.content{p{font-size:14px;span{display:inline-flex;color:",";}.desc-color{color:",";}.desc-text-1{display:block;font-size:14px;line-height:22px;color:",";}.desc-text-2{display:block;font-size:12px;line-height:22px;color:",";}}}"],e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L3,e=>e.theme.color_title_text_state,e=>e.theme.color_AI_Text_Auto_fill_path_hover);class Gc extends l.PureComponent{render(){var t;const{isOpen:n,className:r,desc:s,title:c,confirmText:d,cancelText:p=(t=I18N)==null||(t=t.Common)==null?void 0:t.cancel,canCancel:g,onClose:y,onConfirm:w,onCancel:_,renderDesc:j}=this.props;return(0,o.jsxs)(Ic,{isOpen:n,className:"workspace-async-modal top-modal "+r,onConfirm:w,canCancel:g,canConfirm:!0,canClose:!1,onClose:()=>y("workspaceConfirmAsyncModal"),onCancel:_,confirmText:d,cancelText:p,title:c,mask:!1,confirmBtnProps:{type:"danger"},children:[s&&(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:s}}),j&&j()]})}}(0,O.A)(Gc,"defaultProps",{onCancel:()=>{}});var mc=i(58093);const Zc=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledTransferModal",componentId:"sc-u1cnes-0"})(['.content{padding:0;.library-model-content{height:343px;display:flex;flex-direction:column;padding:0;p{font-size:12px;padding:12px 20px;}[type="search"]{height:32px;margin:0 20px 6px;input{width:99%;border-radius:6px;border-color:',";background-color:",";}input:focus{border-color:",";box-shadow:none;}input:active{border-color:",";}input::-webkit-input-placeholder{color:",";font-size:12px;}}.clear-icon{right:8px;}.list-content{width:calc(100% - 4px);flex:1;overflow-y:scroll;transform:translate3d(0,0,0);padding:0 14px 0 20px;&.only-one-level{padding:0 14px 0 20px;}&.only-one-level .item .list-item .icon-container{width:0;}span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}footer{margin-top:24px;}"],e=>e.theme.color_bg_line,e=>e.theme.color_bg_white,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L2),gc=E.Ay.div.withConfig({displayName:"styles__StyledListItem",componentId:"sc-u1cnes-1"})(["display:flex;flex-direction:column;margin-top:4px;.list-item{display:flex;align-items:center;height:40px;padding-left:","px;cursor:pointer;&:not(.is-show-expand){padding-left:","px;}&.is-has-expand:not(.is-show-expand){}.icon-container{width:14px;margin-right:2px;display:flex;justify-content:center;align-items:center;color:",";.expand-icon.svg-icon path:last-child{fill:currentColor;stroke:currentColor;}.expand-icon.expand-icon-close{transform:rotate(-90deg);}}.icon{width:20px;height:20px;&.icon-folder path:first-child{fill:transparent;stroke:",";}&.icon-folder path:last-child{fill:",";stroke:",";}&.icon-folder{margin-right:4px;}}span{flex:1;color:",";}&:hover{color:",";background:",";border-radius:6px;}&.active{color:",";border-radius:6px;background:",";}.expand-icon.svg-icon{width:8px;height:8px;}input{margin-right:6px;}}.nested-list{}"],e=>e.level*8,e=>e.level*8,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active),Fo=e=>{const t=new Map;e.forEach(s=>{t.set(s.cid,{...s,subFolder:[],level:0})});const n=[],r=(s,c,d)=>{d.has(s.cid)||(d.add(s.cid),s.level=c,s.subFolder.forEach(p=>r(p,c+1,d)))};return e.forEach(s=>{if(s.parent_cid===null){const c=t.get(s.cid);n.push(c),r(c,0,new Set)}else{const c=t.get(s.parent_cid);if(c){const d=t.get(s.cid);d.level=(c.level||0)+1,c.subFolder.push(d),r(d,d.level,new Set)}}}),n},Ca=(e,t)=>e.sort((n,r)=>t?n.position-r.position:n.data.zIndex-r.data.zIndex),ya=(e,t)=>{const n=[],r=s=>{s.name.toLowerCase().indexOf(t.toLowerCase())!==-1&&n.push({...s,subFolder:[]}),s.subFolder&&s.subFolder.length>0&&s.subFolder.forEach(c=>r(c))};return e.forEach(s=>r(s)),n};class Ba extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setComponentRef",n=>this.modal=n),(0,O.A)(this,"handleChangeSelectedGroupCid",n=>{this.setState({selectedGroupCid:n})}),(0,O.A)(this,"handleSearch",n=>{this.setState({keyword:n})}),(0,O.A)(this,"handleModalTimesClose",n=>{n.stopPropagation(),this.modal.handleClose()}),(0,O.A)(this,"handleTransfer",()=>{const{onModalTransfer:n}=this.props,{selectedGroupCid:r}=this.state;n({selectedGroupCid:r})}),(0,O.A)(this,"toggleGroupExpansion",n=>{this.setState(r=>{const s=new Set(r.expandedGroups);return s.has(n)?s.delete(n):s.add(n),{expandedGroups:s}})}),(0,O.A)(this,"getRenderListAndIsShowExpand",(n,r)=>{let s,c;return this.state.keyword===""?(s=r?Fo(n):n,c=s.some(d=>{var p;return((p=d.subFolder)==null?void 0:p.length)>0})):(s=n,c=!1),{isHasExpand:c,renderList:s}}),this.state={keyword:"",selectedGroupCid:"",expandedGroups:new Set}}render(){const{isOpen:t,itemGroups:n,onClose:r,title:s,confirmText:c,isImage:d}=this.props,{selectedGroupCid:p,keyword:g,expandedGroups:y}=this.state,w=g?d?Ca(n.filter(Z=>Z.name.toLowerCase().indexOf(g)!==-1),d):ya(n,this.state.keyword):Ca(n,d),_=!!p,{isHasExpand:j,renderList:N}=this.getRenderListAndIsShowExpand(w,d);return(0,o.jsx)(Zc,{isOpen:t,ref:this.setComponentRef,className:"library-transfer-modal top-modal",onConfirm:this.handleTransfer,onClose:r,confirmText:c||I18N.dModals.move,canConfirm:_,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:s,children:(0,o.jsxs)("div",{className:"library-model-content no-padding",children:[(0,o.jsx)("p",{children:I18N.dModals.move_tips}),(0,o.jsx)(mc.A,{placeholder:I18N.dModals.keyword_search,value:g,onChange:this.handleSearch}),(0,o.jsx)("div",{className:m()("list-content",{"only-one-level":!j}),children:N.map(Z=>(0,o.jsx)(Xa,{className:j?"is-has-expand":"",group:Z,selectedGroupCid:p,onChangeSelectedGroupCid:this.handleChangeSelectedGroupCid,toggleGroupExpansion:this.toggleGroupExpansion,expandedGroups:y,level:0},Z.cid))})]})})}}class Xa extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleChangeSelectedGroupCid",()=>{const{group:t,onChangeSelectedGroupCid:n}=this.props;n(t.cid)}),(0,O.A)(this,"handleToggleExpansion",t=>{t.stopPropagation();const{group:n,toggleGroupExpansion:r}=this.props;r(n.cid)}),(0,O.A)(this,"handleSelectGroup",t=>{t.stopPropagation(),this.handleChangeSelectedGroupCid()})}render(){var t;const{className:n,group:r,selectedGroupCid:s,expandedGroups:c,level:d}=this.props,p=s===r.cid,g=c.has(r.cid),y=((t=r.subFolder)==null?void 0:t.length)>0;return(0,o.jsxs)(gc,{className:m()("item",{active:p}),level:d,children:[(0,o.jsxs)("div",{className:m()(n,"list-item",{"is-show-expand":y}),onClick:this.handleSelectGroup,children:[(0,o.jsx)("div",{className:"icon-container",onClick:this.handleToggleExpansion,children:y&&(0,o.jsx)(Et.C,{className:m()("expand-icon",{"expand-icon-close":!g}),name:"library/design-system/open"})}),(0,o.jsx)(Et.C,{className:"icon-folder",name:g?"left_panel/group_open":"left_panel/group_close"}),(0,o.jsx)("span",{children:r.name}),(0,o.jsx)("input",{type:"radio",checked:p,onChange:this.handleSelectGroup})]}),g&&y&&(0,o.jsx)("div",{className:"nested-list",children:r.subFolder.map(w=>(0,o.jsx)(Xa,{group:w,selectedGroupCid:s,onChangeSelectedGroupCid:this.props.onChangeSelectedGroupCid,toggleGroupExpansion:this.props.toggleGroupExpansion,expandedGroups:c,level:d+1},w.cid))})]})}}const Kt=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1ymb6u5-0"})([".content{.Input{width:100%;height:32px;input{color:",";}}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:",";}.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{margin-right:4px;color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line),Vn=(0,E.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:128px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),io=e=>{var t;let n=1;const r=s=>{for(const d of s){var c;n+=1,((c=d.subFolder)==null?void 0:c.length)>0&&r(d.subFolder)}};return((t=e.subFolder)==null?void 0:t.length)>0&&r(e.subFolder),n};class Wn extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setInputRef",p=>this.input=p),(0,O.A)(this,"setTextRef",p=>this.textInput=p),(0,O.A)(this,"setComponentRef",p=>this.dropdown=p),(0,O.A)(this,"handleNodeSelect",p=>{this.setState({targetGroupCid:p.cid,curSelectedName:p.name}),this.dropdown.close()}),(0,O.A)(this,"handleNameChange",p=>{this.setState({createName:p})}),(0,O.A)(this,"handleTargetGroupCidChange",p=>{this.setState({targetGroupCid:p})}),(0,O.A)(this,"handleGroupNameChange",p=>{this.setState({groupName:p})}),(0,O.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,O.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,O.A)(this,"handleConfirm",async()=>{const{onModalConfirm:p,onClose:g}=this.props,{isCreating:y,createName:w,targetGroupCid:_,groupName:j}=this.state;p({isCreating:y,createName:w,targetGroupCid:_,groupName:j,onModalClose:g})}),(0,O.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:p}=this.props,{optionGroupItemList:g,groupName:y,curSelectedName:w,targetGroupCid:_,isCreating:j}=this.state;let N;g.length===1?N=io(g[0])<=1:N=g.length<=1;const Z=g.length>=1;return j?(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(os.A,{type:"text",placeholder:p,value:y,onChange:this.handleGroupNameChange}),Z&&(0,o.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(Yl.Ay,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:N,title:w,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(wl,{data:g,onNodeSelect:this.handleNodeSelect,selected:_})}),(0,o.jsx)("div",{className:"icons-box",children:(0,o.jsx)(Et.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,o.jsx)(Vn,{})]})});const{isCreating:n,createName:r,targetGroupCid:s,groupName:c,optionGroupItemList:d}=t;this.state={isCreating:n,createName:r,targetGroupCid:d.length?d[0].cid:"",curSelectedName:d.length?d[0].name:null,groupName:c,optionGroupItemList:d}}componentDidMount(){const t=this.textInput&&this.textInput.querySelector("input");t&&t.select()}render(){const{isOpen:t,onClose:n,modalTitle:r,inputPlaceholder:s=I18N.dModals.input_widget_name}=this.props,{createName:c,groupName:d,isCreating:p}=this.state,g=c!==""&&(p?d!=="":!0);return(0,o.jsx)(Kt,{isOpen:t,onConfirm:this.handleConfirm,onClose:n,renderFooterContent:this.renderFooterContent,canConfirm:g,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:r,children:(0,o.jsx)("div",{ref:this.setTextRef,children:(0,o.jsx)(os.A,{type:"text",placeholder:s,value:c,onChange:this.handleNameChange})})})}}(0,O.A)(Wn,"defaultProps",{isCreating:!1});const $n=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledLinkBackModal",componentId:"sc-nzr9h5-0"})(["&.FunctionalModal{width:480px;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);}.tips{figure{display:flex;flex-direction:column;align-items:center;}figcaption{order:1;margin-bottom:1.5em;line-height:1.5;color:",";&:lang(zh){text-align:justify;}}img{order:2;box-sizing:content-box;width:100%;}}.link-back-modal{img:lang(en){border-top:none;border-left:none;}}"],e=>e.theme.color_text_L1),Do=e=>{let{isOpen:t,onClose:n}=e;return(0,o.jsx)($n,{isOpen:t,onClose:n,title:I18N.dModals.whats_this,children:(0,o.jsx)("div",{className:"tips link-back-modal",children:(0,o.jsxs)("figure",{children:[(0,o.jsx)("img",{src:"/mb-workspace/images/workspace/link_back_bg.png",alt:""}),(0,o.jsx)("figcaption",{children:I18N.dModals.link_back_desc})]})})})};var Bo=i(84860),Ro=i(90108);const Pa=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledScreenDupModal",componentId:"sc-u9nad1-0"})(["&.screen-action-modal{.content .desc{text-align:start;display:flex;}}"]);class la extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"onChangeDupingAll",n=>{let{value:r}=n;return this.setState({isDupingAll:r==="all"})}),(0,O.A)(this,"onConfirm",()=>{const{onClose:n,screen:r,isBatch:s,isEditingCombo:c,dispatch:d}=this.props,{isDupingAll:p}=this.state;if(s){if(c){d({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:p}});return}d({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:p}})}else d({type:"entry:dup:screen:page",payload:{screen:r,isWithChildren:p}});n()}),this.state={isDupingAll:!1}}render(){const{isOpen:t,onClose:n,isBatch:r,screenTreeNode:s}=this.props,{isDupingAll:c}=this.state,d=r?"\u6240\u9009\u753B\u5E03\u5305\u542B\u5B50\u753B\u5E03\uFF0C\u60A8\u8981\uFF1F":I18N.dModals.dup_parental_screen_desc.replace(/%name/,(0,al.rB)().process(s==null?void 0:s.data.name)).replace(/%count/,s==null?void 0:s.children.length);return(0,o.jsx)(Pa,{isOpen:t,onClose:n,type:"alert",title:(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:d}}),className:"screen-action-modal top-modal",canClose:!1,onCancel:n,onConfirm:this.onConfirm,canConfirm:!0,mask:!1,confirmBtnProps:{type:"danger"},children:(0,o.jsx)(Bo._,{children:(0,o.jsx)(Ro.A,{optionList:[{label:I18N.dModals.duplicate_parent_only,value:"parent"},{label:I18N.dModals.duplicate_all,value:"all"}],value:c?"all":"parent",onChange:this.onChangeDupingAll})})})}}var Go=i(54190),ir=i(44327),tr=i(12246),wr=i(53559),Pr=i(34121),br=i(85584),lr=i(4410),ei=i(60399),vr=i(63902),ar=i(60892),hr=i(24229),mr=i(74222),Yr=i(9911);const yi=(e,t,n)=>{for(const s of e.getSubHotItemList(KEY_RB_EXT))if(s.hotAttr.extData===n)return s;const r={key:createKey("e"),hotAttr:newResExt(t,0,n,"extImage"),sup:KEY_RB_EXT,sub:[]};return e.updateHotItem(r),r},Ri=(e,t)=>e===""?t:e+"_"+t,vs=e=>(0,hr.cF)(e.slice(0,8).padEnd(8,"_")),ri=()=>{const e=new Map;return{presetRefKeyM:(s,c)=>(c||(c=vs(s)),e.set(s,c),c),remapRefKeyM:s=>{if(!s)return"";const c=e.get(s);return c===void 0?s:c},remapCanvasRefKeyM:(s,c)=>{if(!c)return"";const d=Ri(s,c),p=e.get(d);return p===void 0?c:p},map:e}},us=function(e,t,n,r,s){r===void 0&&(r=!1),s===void 0&&(s=!1);const c=new Map,d=new Map,p=[],g=[],y=()=>g,w=[];return{pushWidgetLinkCids:(_e,De)=>{(De==null?void 0:De.length)>3&&c.set(_e,De)},pushWidgetSubLinkCids:_e=>{switch(_e.hotAttr.type){case"wCarousel":{const Je=[];for(const Ne of _e.hotAttr.carousel.slides)Ne.linkCids!==""&&Je.push(Ne.linkCids);d.set(_e.key,Je);break}case"wCollapse":case"wDropMenu":case"wSelectionControl":case"wSegmentedControl":case"wTabs":case"wMobileTabBars":case"wNavigationMenu":{const Je=[],Ne=pt=>{pt.forEach(_t=>{_t.data.linkCids!==""&&Je.push(_t.data.linkCids),Ne(_t.children)})};Ne(_e.hotAttr.optionData),d.set(_e.key,Je);break}case"wTable":{const Je=[];for(const Ne of _e.hotAttr.tableData.links)for(const pt of Ne)pt!==""&&Je.push(pt);d.set(_e.key,Je);break}default:break}},pushInteraction:_e=>{p.push(_e)},buildMainInteraction:_e=>{const De=[];for(const[Je,Ne]of c){const pt=e.getHotItem(Je);if((pt==null?void 0:pt.hotAttr.type)==="wSticky")continue;const _t=Ne.split(","),gt=[];for(const Ct of _t){const zt=p.find(Dt=>Dt.cid===Ct);if(zt!==void 0){if(!si(zt))continue;const sn=Xo(zt,t,n,r,s,_e);if(!sn)continue;gt.push(sn),g.push({widgetKey:Je,ita:sn}),sn.interactionType===3&&w.push(Je)}}De.push([Je,{interactions:gt}])}e.updateHotAttrMergeBatch(De)},buildMainInteraction4combo:(_e,De)=>{const Je=[];for(const[Ne,pt]of c){const _t=e.getHotItem(Ne);if((_t==null?void 0:_t.hotAttr.type)==="wSticky")continue;const gt=pt.split(","),Ct=[];for(const zt of gt){const Dt=p.find(sn=>sn.cid===zt);if(Dt!==void 0){if(!si(Dt))continue;const Rn=Ia(Dt,_e,De);if(Rn===void 0)continue;Ct.push(Rn),g.push({widgetKey:Ne,ita:Rn})}}Je.push([Ne,{interactions:Ct}])}e.updateHotAttrMergeBatch(Je)},buildCanvasInteraction:(_e,De)=>{const Je=[];for(const Ne of p){if(!Ne.widget_cids||De.remapRefKeyM(Ne.widget_cids)!==t||!si(Ne))continue;const _t=Xo(Ne,t,n,r,s,De);Je.push(_t),g.push({widgetKey:_e,ita:_t}),_t.interactionType===3&&w.push(_e)}e.updateHotAttrKV(_e,"interactions",Je)},buildCanvasInteraction4combo:(_e,De,Je)=>{const Ne=[];for(const pt of p){if(Je+pt.widget_cids!==t||!si(pt))continue;const gt=Ia(pt,_e,Je);Ne.push(gt),g.push({widgetKey:De,ita:gt})}e.updateHotAttrKV(De,"interactions",Ne)},buildSubInteraction:_e=>{const De=[];for(const[Ne,pt]of d){const _t=[];for(const gt of pt){const Ct=p.find(sn=>sn.cid===gt);if(Ct===void 0||!si(Ct))continue;const Dt=Xo(Ct,t,n,r,s,_e,gt);_t.push(Dt),g.push({widgetKey:Ne,ita:Dt}),Dt.interactionType===3&&w.push(Ne)}if(_t.length>=1){var Je;const gt=((Je=e.getHotItem(Ne))==null?void 0:Je.hotAttr).interactions;De.push([Ne,{interactions:[...gt,..._t]}])}}e.updateHotAttrMergeBatch(De)},buildSubInteraction4combo:(_e,De)=>{const Je=[];for(const[pt,_t]of d){const gt=[];for(const Ct of _t){const zt=p.find(Rn=>Rn.cid===Ct);if(zt===void 0||!si(zt))continue;const sn=Ia(zt,_e,De,Ct);!sn!==void 0&&(gt.push(sn),g.push({widgetKey:pt,ita:sn}))}if(gt.length>=1){var Ne;const Ct=((Ne=e.getHotItem(pt))==null?void 0:Ne.hotAttr).interactions;Je.push([pt,{interactions:[...Ct,...gt]}])}}e.updateHotAttrMergeBatch(Je)},getFInalWorkingInteractionList:y,getType3WidgetKeyList:()=>w}},Nr=e=>e===0?"0s":e,si=e=>{const{screen_target_cid:t,scroll_offset:n,state_cid:r,targetstate_cid:s}=e;return t===void 0&&n===void 0&&r===void 0&&s===void 0?e.link_type===7:!0},Is=(e,t)=>{const n={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(e)?n[e]:t.remapRefKeyM(e)},St=(e,t,n)=>{const r={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(t)?r[t]:n.remapCanvasRefKeyM(e,t)},je=(e,t)=>{const n={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(e)?n[e]:createPrefixKey(t,e)},qe=e=>["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE","KEEP_STATE","PREV_LINKED_STATE"].includes(e),Le=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t.remapRefKeyM(e.target_cid),targetResCanvasKey:qe(e.targetstate_cid)?e.targetstate_cid:e.targetstate_cid?t.remapRefKeyM(e.targetstate_cid):"Empty",timerDuration:Nr(e.timer),transition:e.transition==="newTab"?"none":e.transition,transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),at=(e,t,n)=>{let r=t;switch(t){case"FIRST_STATE":r=n[0];break;case"PREV_STATE":{const c=(n.indexOf(e)+n.length-1)%n.length;r=n[c]}break;case"NEXT_STATE":{const c=(n.indexOf(e)+1)%n.length;r=n[c]}break;case"LAST_STATE":r=n.at(-1);break;case"KEEP_STATE":r=n[0];break;case"PREV_LINKED_STATE":r=n[0];break;default:break}return r},ft=(e,t,n,r)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t,targetResCanvasKey:qe(e.targetstate_cid)?e.targetstate_cid:n.remapRefKeyM(e.targetstate_cid),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),kt=(e,t,n,r)=>{const s=n.remapCanvasRefKeyM(t,e.target_cid);return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:s!=null?s:"Empty",targetResCanvasKey:St(s,e.targetstate_cid,n),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},en=(e,t)=>{let n=e.transition;return e.link_type===2&&(n=Cr(e.ani_duration)),{interactionTrigger:e.gesture,interactionType:2,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,transition:n,transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,timerDuration:Nr(e.timer),subKey:t,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},kn=(e,t)=>({interactionExternalUrl:e.target_cid,interactionTrigger:e.gesture,interactionType:4,key:createKeyFix(e.cid),openIn:e.transition,subKey:t,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,transitionDelay:"0"}),yn=(e,t,n,r)=>{var s,c;return{interactionTrigger:e.gesture,interactionType:5,key:createKeyFix(e.cid),scrollToDir:"vertical",scrollToOffsetX:0,scrollToOffsetY:(s=e.scroll_offset)!=null?s:0,targetWidgetKey:(c=n.remapCanvasRefKeyM(t,e.target_cid))!=null?c:"Empty",timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,iterationCount:"1",iterationInterval:"0",subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},yo={show:"setVisible",hide:"setHidden",change:"toggleVisibility"},Uo=(e,t,n,r)=>{var s;return{actionType:yo[e.transition],interactionTrigger:e.gesture,interactionType:6,key:createKeyFix(e.cid),setHiddenTransition:Cr(e.ani_hide_duration),setHiddenTransitionDuration:e.ani_hide_duration,setVisibleTransition:Cr(e.ani_duration),setVisibleTransitionDuration:e.ani_duration,targetWidgetKey:(s=n.remapCanvasRefKeyM(t,e.target_cid))!=null?s:"Empty",timerDuration:Nr(e.timer),transitionDelay:e.ani_delay,subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Xo=(e,t,n,r,s,c,d)=>{switch(e.link_type){case 8:return e.target_cid==="PREV_LINKED_STATE"?en(e,d):ja(e,c,d);case 7:return Uo(e,n,c,d);case 6:return yn(e,n,c,d);case 5:return kn(e,d);case 3:return kt(e,n,c,d);case 2:return e.screen_target_cid?ka(e,c,d):!e.widget_cids&&!e.target_cid&&s?ga(e,t,c,d):!e.screen_target_cid&&!e.target_cid&&s?ka({...e,target_cid:e.widget_cids},c,d):r?Za(e,c,d):e.targetstate_cid==="PREV_LINKED_STATE"?en(e,d):ft(e,t,c,d);case 1:return e.target_cid==="prev"?en(e,d):Le(e,c,d);default:return}},Ia=(e,t,n,r)=>{switch(e.link_type){case 5:return kn(e,r);case 2:return er(e,t,n,r);default:return}},ja=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t.remapRefKeyM(e.screen_target_cid),targetResCanvasKey:qe(e.targetstate_cid)?e.targetstate_cid:t.remapRefKeyM(e.targetstate_cid),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),ka=(e,t,n)=>{const r=t.remapRefKeyM(e.target_cid);return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"placeHolder"+t.remapRefKeyM(e.target_cid),targetResCanvasKey:St(r,e.targetstate_cid,t),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},ga=(e,t,n,r)=>({interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"placeHolder"+t,targetResCanvasKey:Is(e.targetstate_cid,n),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}),er=(e,t,n,r)=>{const s=qe(e.targetstate_cid)?je(e.targetstate_cid,n):n+e.targetstate_cid;return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:t,targetResCanvasKey:s,timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:r,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},Za=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"CURRENT_BASKET_REF",targetResCanvasKey:Is(e.targetstate_cid,t),timerDuration:Nr(e.timer),transition:Cr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}),Cr=e=>e==="0s"?"none":"auto",Dr=(e,t)=>{const n=t.hotAttr,r=[];for(const s of n.carousel.slides)if(s.asset==="")r.push(s);else{const c=newOrReuseExtImage(e,"",s.asset);r.push({asset:c.key,linkCids:s.linkCids,fillType:"default"})}n.carousel.slides=r},ti=(e,t)=>{const n=t.hotAttr;if(!n.image.imageRef)return;const r=newOrReuseExtImage(e,"",n.image.imageRef);n.image.imageRef=r.key},Xr=(e,t)=>{const n=t.hotAttr,r=newOrReuseExtImage(e,"map",n.map.mapImageSrc);n.map.mapImageSrc=r.key},li=(e,t)=>{const n=t.hotAttr,r=newOrReuseExtImage(e,"keyboard","/mb-proto2/images/widget/"+n.kbImageSrc);n.kbImageSrc=r.key},ur=async function(e,t,n){n===void 0&&(n=e.getSubHotItemList("B@main"));let r="";const s=new Set,c=_=>{if(s.has(_))return;s.add(_);const j=e.getHotItem(_);if((j==null?void 0:j.hotAttr.type)!=="rResBunch"){const N=[];let Z=!1;for(const Q of(j==null?void 0:j.hotAttr).interactions)if(Q.interactionType===1){let se=Q.targetRBPageKey;t.map.get(se)&&(se=t.remapRefKeyM(se));const ie=e.getHotItem(se);if(ie===void 0){N.push(Q);continue}const he=ie.sub.filter(_e=>{var De;return((De=e.getHotItem(_e))==null?void 0:De.hotAttr.type)==="rResCanvas"});let xe=Q.targetResCanvasKey;qe(xe)?xe=at(r,Q.targetResCanvasKey,he):he.includes(xe)||(xe=t.remapRefKeyM(xe));const Se={...Q,targetRBPageKey:se,targetResCanvasKey:xe};N.push(Se),Z=!0}else if(Q.interactionType===3){let se=Q.targetResCanvasKey;if(!qe(se)){const he=Q.targetBasketKey;if(he==="CURRENT_BASKET_REF"){const Se=Array.from(t.map.keys()).find(_e=>{const De=_e.split("_");return De.length===2?se===De[1]:!1});Se&&(se=t.remapRefKeyM(Se))}else se=t.remapCanvasRefKeyM(he,se)}const ie={...Q,targetResCanvasKey:se};N.push(ie),Z=!0}else N.push(Q);Z&&(y[_]=N)}if((j==null?void 0:j.hotAttr.type)==="wBasket"){const N=e.getHotItem(j.hotAttr.refRBPageKey);d(j.hotAttr.refRBPageKey);for(const Z of N.sub)c(Z)}else for(const N of j.sub)c(N)},d=_=>{const j=e.getHotItem(_),N=t.remapRefKeyM((j==null?void 0:j.hotAttr).defaultCanvasKey);N&&(g[_]=N)},p=async _=>{for(const j of _){d(j.key);for(const N of j.sub){const Z=e.getHotItem(N);(Z==null?void 0:Z.hotAttr.type)==="rResBunch"?(d(N),await p([Z])):((Z==null?void 0:Z.hotAttr.type)==="rResCanvas"&&(r=Z.key),await(0,ar.Y_)(0),c(N))}}},g={},y={},w=n.filter(_=>!t.map.has(_.key));await p(w),e.updateHotAttrMergeBatch([...Object.entries(g).map(_=>{let[j,N]=_;return[j,{defaultCanvasKey:N}]}),...Object.entries(y).map(_=>{let[j,N]=_;return[j,{interactions:N}]})])},oi={rResCanvas:"\u9875\u9762",wRect:"\u77E9\u5F62",wRichText:"\u6587\u672C",wOval:"\u5706\u5F62",wLine:"\u7EBF\u6761",wImage:"\u56FE\u7247",wLr:"\u94FE\u63A5\u533A\u57DF",wButton:"\u6309\u94AE",wTable:"\u8868\u683C",wArrow:"\u7BAD\u5934",wMTextInput:"\u5355\u884C\u8F93\u5165",wMTextarea:"\u591A\u884C\u8F93\u5165",wMSelect:"\u4E0B\u62C9\u9009\u62E9\u5668",wPolygon:"\u591A\u8FB9\u5F62",wStar:"\u661F\u5F62",wTriangleb:"\u4E09\u89D2\u5F62",wTrianglel:"\u4E09\u89D2\u5F62",wDropMenu:"\u4E0B\u62C9\u83DC\u5355",wMFileInput:"\u9009\u62E9\u6587\u4EF6",wAndroidSwitch:"\u5B89\u5353\u5F00\u5173",wIosSwitch:"IOS\u5F00\u5173",wSlider:"\u6ED1\u52A8\u6761",wDigitalStepper:"\u6570\u5B57\u6B65\u8FDB\u5668",wMobileTabBars:"\u79FB\u52A8\u7AEF\u5BFC\u822A",wSegmentedControl:"\u5206\u6BB5\u5668",wCollapse:"\u6298\u53E0\u9762\u677F",wTabs:"\u6807\u7B7E\u9875",wPaginationMobile:"\u5206\u9875\u56681",wPaginationWeb:"\u5206\u9875\u56682",wWebpage:"\u7F51\u9875",wCarousel:"\u8F6E\u64AD\u56FE",wChart:"\u56FE\u8868",wVideo:"\u89C6\u9891",wAudio:"\u97F3\u9891",wQRCode:"\u4E8C\u7EF4\u7801",wMTooltip:"\u804A\u5929\u6C14\u6CE1",wMapView:"\u5730\u56FE",wWrap:"\u7FA4\u7EC4",wSticky:"\u6279\u6CE8"},hs=()=>{const e=new Map,t=(n,r)=>{var s;return n||((s=oi[r])!=null?s:"\u7EC4\u4EF6")};return{remapName:(n,r,s,c)=>{let p=t(s,c)+" "+createKeyFix();return n?e.set(r,p):e.has(r)&&(p=e.get(r)),p}}};var Di=i(20166),Gr=i(61893);const ms=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledScreenTransferModal",componentId:"sc-nk4mrk-0"})(["width:776px;height:448px;background-color:#fff;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.1);border-radius:8px;overflow:hidden;.content{width:100%;height:448px;padding:0;}iframe{width:100%;height:100%;border:0;}"]);var Zi=i(79209);class El extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"setElemRef",t=>this.iframeRef=t),(0,O.A)(this,"handleMessage",async t=>{t.data==="close"?this.props.onClose():t.data.msg==="submit"&&await this.handleTransfer(t.data.param)}),(0,O.A)(this,"upgradeWidthPagesOver",t=>()=>{const{onClose:n}=this.props,r="\u7F16\u8F91\u533A-v8_\u9875\u9762\u8D85\u9650_\u9875\u9762\u8F6C\u79FB",s="workspace-filepage_pagetrans_limit",c=t==="me"?void 0:{cid:t},d=(0,tr.l)(c,r,s);MB.global.popupHelper.chargeAsync(d),n()}),(0,O.A)(this,"handleTransfer",async t=>{var n;let{selectedProjectCid:r,isChecked:s,selectedOrgCid:c}=t;const{screenMetaList:d,currentUser:p,isAllTransfer:g,isMultiplePage:y=!1,rootProject:w,onClose:_,dispatch:j}=this.props;if(!r)return;if(g&&!s){var N;j({type:"modal:update:confirm:state",payload:{isOpen:!0,canCancel:!1,title:I18N.__entry__.warning,desc:I18N.__entry__.cant_transfer_screen,onConfirm:()=>{}}}),(N=this.iframeRef)!=null&&N.contentWindow&&this.iframeRef.contentWindow.postMessage({msg:"stopSubmitLoading"},"*");return}const Z=d.map(zt=>(0,br.YU)(zt)).flat(),Q=await(0,Go.sw)(r),se=(0,ei.n)(Q),ie=se.screens_count||se.screensCount,he=Z.length+ie,xe=r===w.cid,{org:Se}=await(0,Go.up)(c),{maxScreenCount:_e,maxWidgetCount:De}=(0,wr.xR)(p,Se);if(he>_e)return _(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.OrgMaxProto2PageCount,selectedOrg:Se,isCurrentProject:xe}});MB.safeLoading(I18N.dModals.in_progress),await rootSdk.saveAsync(),MB.safeLoading(!1);const{userId:Je,flatKey:Ne}=await(0,Go.yk)({projectBasicCid:Q.cid}),pt=await(0,ir.i_)({project_meta_cid:Ne,userId:Je,isAllowDat:!0});if(!pt)return;const _t=pt.sdkStore;if(!(0,Zi.N)(De)){const zt=(0,Zi.UU)({initKeyList:Z.map(sn=>sn.cid),sdk:sdkStore,isKeepInnerSkip:!1}),Dt=(0,Zi.UU)({sdk:_t,isKeepInnerSkip:!1});if(zt+Dt>De)return _(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.OrgMaxProto2PageCount,selectedOrg:Se,isCurrentProject:xe}})}const gt=ri();for(const zt of Z){const Dt=gt.presetRefKeyM(zt.cid),sn=sdkStore.getHotItem(zt.cid),Rn=d.find(Yo=>Yo.cid===zt.cid),On=gt.remapRefKeyM(sn.sup),Lo={...sn,key:Dt,sup:Rn?mr.$k:On};if(_t.updateHotItem(Lo),!zt.asFolder){const Cn=sdkStore.getSubHotItemList(zt.cid).filter(va=>{let{hotAttr:ra}=va;return ra.bunch!==ne.x.RbPage}).map(va=>va.key),hn=sdkStore.saveSubtree(Cn),{x:oa,y:Ao}=(0,lr.lY)(sn,sdkStore);(0,vr.BB)({data:hn,worldPos:{x:oa,y:Ao},keyRndSup:Dt,currentPageKey:Dt,store:pt.sdkStore,option:{isRename:!1,isResetStickyPoint:!1}}).forEach((va,ra)=>{Cn[ra]&&gt.presetRefKeyM(Cn[ra],va)})}}const Ct=(n=_t.getSubHotItemList(mr.$k).sort((zt,Dt)=>Dt.hotAttr.zIndex-zt.hotAttr.zIndex)[0])==null||(n=n.hotAttr)==null?void 0:n.zIndex;d.sort((zt,Dt)=>zt.data.zIndex-Dt.data.zIndex).forEach((zt,Dt)=>{const sn=gt.remapRefKeyM(zt.cid);_t.updateHotAttrKV(sn,"zIndex",Ct+Dt+1)}),ur(_t,gt),s||(y?(sdkStore.combineMergeMark("remove-screen-selection"),Z.forEach(zt=>{const{cid:Dt}=zt,sn=sdkStore.getHotItem(Dt),{sub:Rn}=sn;Rn.filter(Yo=>{const{hotAttr:{bunch:Cn}}=sdkStore.getHotItem(Yo);return Cn===ne.x.RbPage}).length>0?j({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:sn,isRemovingAll:!1}}):((0,Pr.X3)(sn.key,p),j({type:"entry:activate:root-project:home-screen"}))}),sdkStore.combineMerge("remove-screen-selection")):(0,Pr.gu)(Z,p),MB.action("entry:activate:root-project:home-screen")),await pt.saveAsync(),MB.notice({text:I18N.dModals.page_transfer_success,type:"success"}),j({type:"screen:update:state",payload:{isMultiplePage:!1}}),(0,Di.yU)(s),_()})}componentDidMount(){window.addEventListener("message",this.handleMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage,!1)}render(){const{isOpen:t,currentOrg:n,theme:r,onClose:s}=this.props,c={spaceSelectDisabled:!1,title:I18N.ScreenPanel.move_or_copy_to,cancelBtnText:I18N.dModule.cancel,submitBtnText:I18N.dModals.screenTransfer.move,projectType:"proto2",isShowCheck:!0,checkboxText:I18N.dModals.screenTransfer.dup_move_projects,currentOrgCid:(n==null?void 0:n.cid)||"",from:"workspace",isFromProto:!0,theme:r};return(0,o.jsx)(ms,{isOpen:t,className:"ScreenTransferModal",width:776,onClose:()=>s(),portalClassName:"ScreenTransferModalPortal",modalRender:()=>(0,o.jsx)("iframe",{src:"/embed/project_select?param="+JSON.stringify(c),ref:this.setElemRef})})}}const yc=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledRemovalModal",componentId:"sc-1g9ncx2-0"})([".modal-top{display:flex;}.FormEntry > .val:only-child{margin-left:0;padding-left:0.5em;}.RadioGroup{flex-direction:column;margin-bottom:5px;}.restore-tip{font-size:12px;color:",";}.desc{b{margin-top:-1px;}}"],e=>e.theme.color_text_L3);class Ts extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"onChangeRemovingAll",n=>{let{value:r}=n;return this.setState({isRemovingAll:r==="all"})}),(0,O.A)(this,"handleConfirm",()=>{const{onClose:n,onConfirm:r}=this.props,{isRemovingAll:s}=this.state;r(s),n()}),(0,O.A)(this,"handleCancel",()=>{const{onClose:n,onCancel:r}=this.props;r&&r(),n()}),(0,O.A)(this,"handleGetOptionList",()=>{const{isDelAnnotate:n}=this.props;return[{label:n?I18N.AnnotatePanel.remove_parent_only:I18N.dModals.remove_parent_only,value:"parent"},{label:n?I18N.AnnotatePanel.remove_all:I18N.dModals.remove_all,value:"all"}]}),this.state={isRemovingAll:!1}}render(){const{isOpen:t,name:n,count:r,isDelAnnotate:s,isEditingCombo:c,onClose:d}=this.props,{isRemovingAll:p}=this.state,g=s?I18N.AnnotatePanel.del_parental_annotate_desc:c?I18N.__entry__.del_multi_widget_desc:I18N.dModals.del_parental_screen_desc,y=this.handleGetOptionList();return(0,o.jsxs)(yc,{isOpen:t,onClose:d,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},type:"alert",title:c?"\u5220\u9664\u7EC4\u4EF6":I18N.dModals.del_screen_title,className:"screen-action-modal top-modal",onCancel:this.handleCancel,onConfirm:this.handleConfirm,canConfirm:!0,children:[(0,o.jsx)("p",{className:"modal-top",dangerouslySetInnerHTML:{__html:g.replace(/%name/,(0,al.rB)().process(n)).replace(/%count/,(0,al.rB)().process(r))}}),(0,o.jsxs)(Bo._,{children:[(0,o.jsx)(Ro.A,{optionList:y,value:p?"all":"parent",onChange:this.onChangeRemovingAll}),!s&&!c&&(0,o.jsx)("span",{className:"restore-tip",children:I18N.dModals.restore_in_recycle_in})]})]})}}var Pn=i(79287),an=i.n(Pn),Gn=i(61068),_o=i(69246),Da=i(71862),pr=i(51090);const Lr=E.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-zlx3hk-0"})(["display:flex;height:100%;width:100%;align-items:center;.svg-icon{width:20px;height:20px;}.expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:8px;margin-left:-8px;margin-right:0;.arrow-icon{color:#999;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{max-width:12em;",";}.info{display:flex;margin-left:auto;margin-right:6px;color:#a9afb8;.user-name{max-width:4em;",";}time{margin-left:9px;}}"],pr.L9,pr.L9),Sr=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledScreenTrashModal",componentId:"sc-zlx3hk-1"})(["footer{margin-top:24px;}&.screen-trash-modal{.library-model-content{&.no-padding{padding:0;}.dele-tips{display:flex;padding:9px 20px;font-size:12px;margin-bottom:10px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}}.screen-list{height:178px;overflow-y:auto;padding:0 24px;.desc{display:flex;align-items:center;flex-direction:column;margin-top:15px;.desc-icon{margin-bottom:12px;width:144px;height:94px;defs{stop:nth-child(1){stop-color:",";}stop:nth-child(2){stop-color:",";}}circle{fill:",";}}p{color:",";}}ol,li{list-style:none;}.content-item{display:flex;flex-direction:column;.item{display:flex;height:32px;align-items:center;cursor:pointer;color:",";.check{margin-left:10px;cursor:pointer;}.is-checked{.Check-state{background-color:#1684FC;border:1px solid #1684FC;.icon{color:white;}}}}}}.content{padding:0;}}"],e=>e.theme.color_background_white_modal_tips,e=>e.theme.color_title_text_state,e=>e.theme.color_background_trash_01,e=>e.theme.color_background_trash_02,e=>e.theme.color_background_trash_circle,e=>e.theme.color_text_L2,e=>e.theme.color_title_text_state),Bi="\u6062\u590D\u7684\u7EC4\u4EF6";class cs extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"getSupPagesByKey",r=>sdkStore.getSubHotItemList(r).filter(s=>s.hotAttr.bunch===ne.x.RbPage).sort((s,c)=>c.hotAttr.zIndex-s.hotAttr.zIndex)),(0,O.A)(this,"getSubListByKey",r=>{const s=[],c=this.getSupPagesByKey(r);return s.push(...c),c.forEach(d=>s.push(...this.getSubListByKey(d.key))),s}),(0,O.A)(this,"handleCheck",r=>{const{checkedCidSet:s}=this.state,c=s.has(r.key),d=this.getSubListByKey(r.key);c?(s.delete(r.key),d.forEach(p=>s.delete(p.key))):(s.add(r.key),d.forEach(p=>s.add(p.key))),this.setState({checkedCidSet:new Set(s)})}),(0,O.A)(this,"handModalTimesClose",()=>{this.modal.handleClose()}),(0,O.A)(this,"setComponentRef",r=>this.modal=r),(0,O.A)(this,"handleRecoverFolderKeyOnEditingCombo",r=>{let c=sdkStore.getSubHotItemList("B@main").filter(g=>(0,br.Mo)(g)).find(g=>{var y;return((y=g.hotAttr)==null?void 0:y.name)===Bi});c||(c=(0,Pr.Hz)({name:Bi,sup:"B@main",asFolder:!0}));const d=this.getSupPagesByKey(c.key),p=d[0]?d[0].hotAttr.zIndex+1:1;sdkStore.moveHotItem(r,c.key),sdkStore.updateHotAttrMerge(r,{zIndex:p})}),(0,O.A)(this,"handleRecover",async()=>{const{currentUser:r,currentOrg:s,isEditingCombo:c,onClose:d,dispatch:p}=this.props,{checkedCidSet:g}=this.state,y=Array.from(g),w=y.map(Q=>this.getSupPagesByKey(Q).filter(ie=>!g.has(ie.key))).flat(1/0);w.forEach(Q=>(0,Pr.X3)(Q.key,r));const _=y.filter(Q=>!w.includes(Q)),j=_.filter(Q=>{var se;const ie=(se=rootSdk.sdkStore.getHotItem(Q))==null?void 0:se.hotAttr;return ie?!(ie.bunch===ne.x.RbPage&&ie.asFolder):!1});if(!c&&!(0,Zi.X9)(j,!1)){d();return}const N=this.getSupPagesByKey("B@main"),Z=N[0]?N[0].hotAttr.zIndex+1:1;_.forEach((Q,se)=>{const ie=sdkStore.getHotItem(Q),he=_.includes(ie.sup),xe=(0,br.Mo)(ie);he||(c&&!xe?this.handleRecoverFolderKeyOnEditingCombo(Q):(sdkStore.moveHotItem(Q,"B@main"),sdkStore.updateHotAttrMerge(Q,{zIndex:Z+se})))}),p({type:"entry:update:screen:list"}),d()}),this.state={checkedCidSet:new Set},this.days=(0,wr.ln)(t.currentUser,t.currentOrg);const n=sdkStore.getSubHotItemList("B@trash");this.trashPageList=(0,Da.y)(n,this.days)}render(){const{isOpen:t,onClose:n,currentOrg:r,theme:s,isEditingCombo:c,isEditingUserCombo:d}=this.props,{checkedCidSet:p}=this.state,g=this.trashPageList.length===0;return(0,o.jsx)(Sr,{isOpen:t,ref:this.setComponentRef,mask:!1,title:c?I18N.dModals.widget_trash_can:I18N.dModals.page_trash_can,className:"screen-trash-modal top-modal",onClose:n,onConfirm:this.handleRecover,confirmText:I18N.dModals.recover,canConfirm:p.size!==0,confirmBtnProps:{type:"danger"},children:(0,o.jsxs)("div",{className:"library-model-content no-padding",children:[(0,o.jsxs)("div",{className:"dele-tips",children:[(0,o.jsx)(Et.C,{className:"tips-icon",name:"common/screen_trash"}),(0,o.jsx)("p",{children:c?I18N.dModals.widget_recycle.replace("{n}",this.days):I18N.dModals.page_recycle.replace("{n}",this.days)})]}),(0,o.jsx)("div",{className:"screen-list",children:g?(0,o.jsxs)("div",{className:"desc",children:[(0,o.jsx)(Et.C,{className:"desc-icon",name:"screen/recycle",isColorPure:!0}),(0,o.jsx)("p",{children:I18N.dModals.no_deleted_screens})]}):(0,o.jsx)(Us,{theme:s,screenTreeData:this.trashPageList,checkedCidSet:p,onCheck:this.handleCheck,currentOrg:r,isEditingCombo:c,isEditingUserCombo:d})})]})})}}const Us=e=>{let{theme:t,screenTreeData:n,checkedCidSet:r,onCheck:s,currentOrg:c,isEditingCombo:d,isEditingUserCombo:p}=e;return(0,o.jsx)(o.Fragment,{children:n.map(g=>(0,o.jsx)(rl,{theme:t,currentOrg:c,treeNode:g,root:!0,depth:0,checkedCidSet:r,onCheck:s,isEditingCombo:d,isEditingUserCombo:p},g.key))})};class rl extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleCheck",()=>{const{treeNode:n,onCheck:r}=this.props;r(n)}),(0,O.A)(this,"handleExpand",n=>{n.stopPropagation(),this.setState({expand:!this.state.expand})}),this.state={expand:!1}}render(){const{theme:t,treeNode:n,root:r,depth:s,checkedCidSet:c,onCheck:d,currentOrg:p,isEditingCombo:g,isEditingUserCombo:y}=this.props,{expand:w}=this.state,{sub:_,key:j}=n,N=sdkStore.getHotItem(j).hotAttr,Z=_.filter(ie=>sdkStore.getHotItem(ie).hotAttr.bunch===ne.x.RbPage),Q=Z.length!==0,se=c.has(j);return(0,o.jsxs)("li",{className:"content-item",children:[(0,o.jsxs)("div",{className:"item",onClick:this.handleCheck,children:[(0,o.jsx)(zl,{theme:t,currentOrg:p,root:r,depth:s,showExpander:Q,data:N,expand:w,isEditingCombo:g,isEditingUserCombo:y,onExpand:this.handleExpand}),(0,o.jsx)(Gn.A,{readOnly:!0,className:"check",isChecked:se,onChange:this.handleCheck})]}),Z.length>0&&w&&(0,o.jsx)("ol",{className:"child-screens",children:Z.map(ie=>{const he=sdkStore.getHotItem(ie);return(0,o.jsx)(rl,{theme:t,currentOrg:p,treeNode:he,root:!1,depth:s+1,checkedCidSet:c,onCheck:d,isEditingCombo:g,isEditingUserCombo:y},ie)})})]})}}class zl extends l.PureComponent{render(){const{theme:t,currentOrg:n,root:r,depth:s,showExpander:c,data:d,expand:p,isEditingCombo:g,isEditingUserCombo:y,onExpand:w}=this.props,_=s+1,j=g?!y:!!n;return(0,o.jsxs)(Lr,{style:{paddingLeft:_},children:[c&&(0,o.jsx)("div",{className:"expander",onClick:w,children:(0,o.jsx)(Et.C,{className:m()("arrow-icon",{"is-expand":p}),name:"common/expand"})}),(0,o.jsx)(_o.k,{icon:d.icon,theme:t,isExpand:p,isEditingCombo:g}),(0,o.jsx)("span",{className:"screen-name",children:(0,al.wh)(d.name)}),r&&d.deleteInfo&&d.deleteInfo.deleteUserName&&(0,o.jsxs)("div",{className:"info",children:[j&&(0,o.jsx)("span",{className:"user-name",children:d.deleteInfo.deleteUserName}),(0,o.jsx)("time",{children:an()(d.deleteInfo.deleteTime*1e3).format("YYYY-MM-DD HH:mm:ss")})]})]})}}var ds=i(69623),Ys=i(16402),Tc=i(81900),Pd=i(16810),Kc=i(61232),ui=i(70248),Ls=i(34428),zs=i(86769),Il=i(55802);const ul=E.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasModal",componentId:"sc-oct9bq-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),Oc=(0,E.Ay)(Il.A).withConfig({displayName:"styles__StyledPreviewCanvasModalContent",componentId:"sc-oct9bq-1"})(["border:",";border-radius:10px 10px 0 0;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;box-shadow:none;&.is-focus-panel{border:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);}.content{height:100%;width:100%;}.mask{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;}"],e=>"1px solid "+e.theme.preview_modal_border_style,e=>e.theme.color_bg_white,e=>"1px solid "+e.theme.color_bg_border_01),_c=(0,l.memo)(e=>{let{isOpen:t,basketKey:n,activePageKey:r,activeCanvasKey:s,...c}=e;const d=(0,a.d4)(Oe.nE),p=(0,a.d4)(Ge.UV),g=(0,a.d4)(Ys.n),y=(0,l.useMemo)(()=>({left:g+30,top:78}),[g]),[w,_]=(0,l.useState)({activePageKey:r,activeCanvasKey:s,resetTargetCanvasScrollOffset:!0}),j=(0,l.useRef)(w.activeCanvasKey);j.current=w.activeCanvasKey;const N=(0,a.wA)();(0,l.useEffect)(()=>{_({activePageKey:r,activeCanvasKey:s,resetTargetCanvasScrollOffset:!0})},[r,s]),(0,l.useEffect)(()=>{if(t&&d!=null&&d.length){var Q;const se=n&&((Q=sdkStore.getHotItem(n))==null?void 0:Q.hotAttr.bunch)==="rbPage",ie=d.filter(_e=>{let{key:De}=_e;if((0,ui.OO)(De)){const[Je]=(0,ui.QL)(De);return Je===n}return sdkStore.locUpRBPageKey(De)===w.activePageKey});if(!(ie!=null&&ie.length))return;const he=ie.some(_e=>{let{key:De}=_e;const Je=(0,ui.OO)(De)?(0,ui.QL)(De).pop():De,Ne=(0,ui.OO)(w.activeCanvasKey)?(0,ui.QL)(w.activeCanvasKey).pop():w.activeCanvasKey;return sdkStore.locUpColdCanvasKey(Je)===Ne});let xe=w.activePageKey,Se=w.activeCanvasKey;he||d.find(_e=>{let{key:De}=_e;const Je=(0,ui.OO)(De)?(0,ui.QL)(De).pop():De,Ne=sdkStore.locUpColdCanvasKey(Je);return Ne?(xe=sdkStore.locUpRBPageKey(Ne),!se&&!(0,ui.OO)(Ne)?Se=(0,ui.iK)([n],Ne):Se=Ne,!0):!1}),_({activePageKey:xe,activeCanvasKey:Se,resetTargetCanvasScrollOffset:!0})}},[t,d,n]),(0,l.useEffect)(()=>{let Q;return t&&(Q=p.addSdkStoreChangeListener(se=>{var ie;let{isRemote:he}=se;if(he){if(n&&p.isTrashed(n)||r&&(p.isTrashed(r)||!((ie=sdkStore.getHotItem(r))!=null&&ie.sub.length))){N({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}});return}if(j.current&&p.isTrashed(j.current)){var xe;const Se=(xe=sdkStore.getHotItem(n))==null?void 0:xe.sub.find(_e=>p.isActiveKey(_e));Se&&_({activePageKey:r,activeCanvasKey:Se,resetTargetCanvasScrollOffset:!0})}}})),()=>{var se;(se=Q)==null||se()}},[t,p,r,n]);const Z=Q=>{let{activePageKey:se,activeCanvasKey:ie,resetTargetCanvasScrollOffset:he}=Q;_({activePageKey:se,activeCanvasKey:ie,resetTargetCanvasScrollOffset:he})};return t&&(0,o.jsx)(Wd,{basketKey:n,position:y,dispatch:N,...w,...c,onActiveRunner:Z})});class Wd extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleMove",(w,_)=>{this.setState({left:w,top:_})}),(0,O.A)(this,"handleWheel",w=>w.preventDefault()),(0,O.A)(this,"handleResize",(w,_,j)=>{(0,Ls.qd)(w,j,N=>{var Z;this.setState(N);const{width:Q,height:se}=N;!((Z=MB)==null||(Z=Z.webpackInterface)==null)&&Z.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:Q,height:se-Ls.lp}}})})}),(0,O.A)(this,"handleUpdateDragOrResizeModal",w=>{var _,j;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:w}}),(_=MB)!=null&&_.runnerController&&((j=MB)==null||(j=j.runnerController)==null||j.setIsPreventEvent(w))}),this.$portalElem=(0,Ls.ke)();const{PreviewApp:n,runnerController:r,messageBucket:s,webpackInterface:c}=(0,Kc._)(Pd.A);MB.previewModalActiveRunner=w=>t.onActiveRunner(w),this.popGlobalPreviewRelated=zs.A.tryStashGlobalPreviewRelated({runnerController:r,messageBucket:s,webpackInterface:c}),this.PreviewApp=n;const d=t.height,p=t.width,{width:g,height:y}=(0,Ls.Xw)({width:p,height:d},{width:p,height:d});this.state={left:t.position.left,top:t.position.top,width:g,height:y+Ls.lp}}componentDidMount(){var t;!((t=MB)==null||(t=t.webpackInterface)==null)&&t.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,r){var s;if((s=MB)!=null&&(s=s.webpackInterface)!=null&&s.store){if(t.activeCanvasKey!==this.props.activeCanvasKey)MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetSubWidgetsState:this.props.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset}});else if(t.theme!==this.props.theme)MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}});else if(t.width!==this.props.width||t.height!==this.props.height){var c;const d=this.props.width,p=this.props.height,{width:g,height:y}=(0,Ls.Xw)({width:d,height:p},{width:d,height:p}),w=g,_=y+Ls.lp;this.setState({width:w,height:_}),!((c=MB)==null||(c=c.webpackInterface)==null)&&c.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:w,height:_}}})}}}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:r,activePageKey:s,activeCanvasKey:c,basketKey:d,onClose:p}=this.props,{PreviewApp:g}=this,{left:y,top:w,width:_,height:j}=this.state;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,ds.createPortal)((0,o.jsxs)(ul,{children:[(0,o.jsx)(dr.A,{position:{left:y,top:w},dragContainer:Ls.er.PanelModal,onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsx)(Oc,{id:Ls.er.PanelModal,style:{width:_,height:j},className:"preview-modal-portal-root is-focus-panel",children:(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(g,{store:MB.webpackInterface.store,projectAlike:r,activePageKey:s,activeCanvasKey:c,basketKey:d,quickPreviewSize:{width:_,height:j-Ls.lp},isPanelPreviewMode:!0,onCloseModal:p})})})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:w,left:y,width:_,height:j,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const Jd=_c,Op=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledAssetGroupRemoveModal",componentId:"sc-dgyr8s-0"})(["&.asset-group-remove-modal{.content{p{font-size:14px;color:",";}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1),ep=(0,E.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:180px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);var o1=i(20085);const N0="no unset";class Rp extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setComponentRef",n=>this.dropdown=n),(0,O.A)(this,"handleNodeSelect",n=>{this.setState({selectedCid:n.cid,selectedNode:n}),this.dropdown.close()}),(0,O.A)(this,"handleDelete",()=>{const{onModalDelete:n}=this.props,{selectedCid:r}=this.state;n({isDeleteAsset:r===N0,selectedCid:r})}),(0,O.A)(this,"renderFooterContent",()=>{const{otherAssetGroups:n,assetToRemove:r,assetGroup:s}=this.props,{selectedCid:c}=this.state,d=r.length>0,p=(0,o1.H)(n),g=[{name:I18N.dModals.not_transfer,cid:N0,subFolder:[]}].concat(p.sort((y,w)=>y.position-w.position));if(d)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Yl.Ay,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:c===N0,isOpenerAttrDisabled:g.length<2,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(wl,{data:g,group:s,selected:c,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)(ep,{})]})}),this.state={selectedCid:N0,selectedNode:{}}}render(){const{isOpen:t,onClose:n,assetGroup:r,assetToRemove:s}=this.props,{selectedCid:c}=this.state,d=s.length>0,p=c!==N0?I18N.dModals.move_and_del:I18N.dModals.confirm,g=d?"\u300C"+r.name+"\u300D "+I18N.dModals.contain+" \u300C"+s.length+"\u300D "+I18N.dModals.move_asset_library_one:I18N.dModals.confirm_del_folder.replace("{name}",r.name);return(0,o.jsx)(Op,{isOpen:t,className:"asset-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:n,confirmText:p,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:"\u5220\u9664\u6587\u4EF6\u5939",children:(0,o.jsx)("p",{children:g})})}}var a1=i(62537);const p0=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1h8r1s1-0"})([".content{.modal-tips{font-size:13px;color:",";}.Input .input{color:",";}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{color:",";margin-right:4px;}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:#298df8;}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),p2=(0,E.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);class r1 extends l.PureComponent{constructor(t){var n,r;super(t),(0,O.A)(this,"setInputRef",g=>this.input=g),(0,O.A)(this,"setAssetInputRef",g=>this.assetInput=g),(0,O.A)(this,"setComponentRef",g=>this.dropdown=g),(0,O.A)(this,"handleNodeSelect",g=>{this.setState({targetGroupCid:g.cid,curSelectedName:g.name}),this.dropdown.close()}),(0,O.A)(this,"handleTargetGroupCidChange",g=>{this.setState({targetGroupCid:g})}),(0,O.A)(this,"handleGroupNameChange",g=>{this.setState({groupName:g})}),(0,O.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,O.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,O.A)(this,"handleConfirm",()=>(this.assetInput.click(),!0)),(0,O.A)(this,"createAssetByFiles",async g=>{const{onModalConfirm:y,onClose:w}=this.props,{isCreating:_,targetGroupCid:j,groupName:N}=this.state;y({files:g,isCreating:_,targetGroupCid:j,groupName:N,onModalClose:w})}),(0,O.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:g}=this.props,{optionGroupItemList:y,groupName:w,curSelectedName:_,targetGroupCid:j,isCreating:N}=this.state,Z=(0,o1.H)(y);let Q;Z.length===1?Q=io(Z[0])<=1:Q=Z.length<=1;const se=Z.length>=1;return N?(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(os.A,{type:"text",placeholder:g,value:w,onChange:this.handleGroupNameChange}),se&&(0,o.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(Yl.Ay,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:Q,title:_,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(wl,{data:Z,selected:this.state.targetGroupCid,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)("div",{className:"icons-box",children:(0,o.jsx)(Et.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,o.jsx)(p2,{})]})});const{isCreating:s,targetGroupCid:c,groupName:d,optionGroupItemList:p}=t;this.state={isCreating:s,targetGroupCid:(p==null||(n=p[0])==null?void 0:n.cid)||"",curSelectedName:(p==null||(r=p[0])==null?void 0:r.name)||"",groupName:d,optionGroupItemList:p}}render(){const{isOpen:t,onClose:n,modalTitle:r}=this.props,{groupName:s,isCreating:c}=this.state,d=c?s!=="":!0;return(0,o.jsxs)(p0,{isOpen:t,onConfirm:this.handleConfirm,onClose:n,renderFooterContent:this.renderFooterContent,canConfirm:d,title:r,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger",callOnClose:!1,shouldCloseOnAction:!1},children:[(0,o.jsx)("p",{className:"modal-tips",children:I18N.Resources.allow_upload_in_batched}),(0,o.jsx)(a1.A,{ref:this.setAssetInputRef,onChange:this.createAssetByFiles})]})}}(0,O.A)(r1,"defaultProps",{isCreating:!1,inputGroupPlaceholder:""});var N1={};(function e(t,n,r,s){var c=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),d=typeof Path2D=="function"&&typeof DOMMatrix=="function",p=function(){if(!t.OffscreenCanvas)return!1;var Cn=new OffscreenCanvas(1,1),hn=Cn.getContext("2d");hn.fillRect(0,0,1,1);var oa=Cn.transferToImageBitmap();try{hn.createPattern(oa,"no-repeat")}catch(Ao){return!1}return!0}();function g(){}function y(Cn){var hn=n.exports.Promise,oa=hn!==void 0?hn:t.Promise;return typeof oa=="function"?new oa(Cn):(Cn(g,g),null)}var w=function(Cn,hn){return{transform:function(oa){if(Cn)return oa;if(hn.has(oa))return hn.get(oa);var Ao=new OffscreenCanvas(oa.width,oa.height),ca=Ao.getContext("2d");return ca.drawImage(oa,0,0),hn.set(oa,Ao),Ao},clear:function(){hn.clear()}}}(p,new Map),_=function(){var Cn=Math.floor(16.666666666666668),hn,oa,Ao={},ca=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(hn=function(va){var ra=Math.random();return Ao[ra]=requestAnimationFrame(function Jo($o){ca===$o||ca+Cn-1<$o?(ca=$o,delete Ao[ra],va()):Ao[ra]=requestAnimationFrame(Jo)}),ra},oa=function(va){Ao[va]&&cancelAnimationFrame(Ao[va])}):(hn=function(va){return setTimeout(va,Cn)},oa=function(va){return clearTimeout(va)}),{frame:hn,cancel:oa}}(),j=function(){var Cn,hn,oa={};function Ao(ca){function va(ra,Jo){ca.postMessage({options:ra||{},callback:Jo})}ca.init=function(Jo){var $o=Jo.transferControlToOffscreen();ca.postMessage({canvas:$o},[$o])},ca.fire=function(Jo,$o,sa){if(hn)return va(Jo,null),hn;var da=Math.random().toString(36).slice(2);return hn=y(function(nr){function cr(Vr){Vr.data.callback===da&&(delete oa[da],ca.removeEventListener("message",cr),hn=null,w.clear(),sa(),nr())}ca.addEventListener("message",cr),va(Jo,da),oa[da]=cr.bind(null,{data:{callback:da}})}),hn},ca.reset=function(){ca.postMessage({reset:!0});for(var Jo in oa)oa[Jo](),delete oa[Jo]}}return function(){if(Cn)return Cn;if(!r&&c){var ca=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{Cn=new Worker(URL.createObjectURL(new Blob([ca])))}catch(va){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",va),null}Ao(Cn)}return Cn}}(),N={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function Z(Cn,hn){return hn?hn(Cn):Cn}function Q(Cn){return Cn!=null}function se(Cn,hn,oa){return Z(Cn&&Q(Cn[hn])?Cn[hn]:N[hn],oa)}function ie(Cn){return Cn<0?0:Math.floor(Cn)}function he(Cn,hn){return Math.floor(Math.random()*(hn-Cn))+Cn}function xe(Cn){return parseInt(Cn,16)}function Se(Cn){return Cn.map(_e)}function _e(Cn){var hn=String(Cn).replace(/[^0-9a-f]/gi,"");return hn.length<6&&(hn=hn[0]+hn[0]+hn[1]+hn[1]+hn[2]+hn[2]),{r:xe(hn.substring(0,2)),g:xe(hn.substring(2,4)),b:xe(hn.substring(4,6))}}function De(Cn){var hn=se(Cn,"origin",Object);return hn.x=se(hn,"x",Number),hn.y=se(hn,"y",Number),hn}function Je(Cn){Cn.width=document.documentElement.clientWidth,Cn.height=document.documentElement.clientHeight}function Ne(Cn){var hn=Cn.getBoundingClientRect();Cn.width=hn.width,Cn.height=hn.height}function pt(Cn){var hn=document.createElement("canvas");return hn.style.position="fixed",hn.style.top="0px",hn.style.left="0px",hn.style.pointerEvents="none",hn.style.zIndex=Cn,hn}function _t(Cn,hn,oa,Ao,ca,va,ra,Jo,$o){Cn.save(),Cn.translate(hn,oa),Cn.rotate(va),Cn.scale(Ao,ca),Cn.arc(0,0,1,ra,Jo,$o),Cn.restore()}function gt(Cn){var hn=Cn.angle*(Math.PI/180),oa=Cn.spread*(Math.PI/180);return{x:Cn.x,y:Cn.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Cn.startVelocity*.5+Math.random()*Cn.startVelocity,angle2D:-hn+(.5*oa-Math.random()*oa),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Cn.color,shape:Cn.shape,tick:0,totalTicks:Cn.ticks,decay:Cn.decay,drift:Cn.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Cn.gravity*3,ovalScalar:.6,scalar:Cn.scalar,flat:Cn.flat}}function Ct(Cn,hn){hn.x+=Math.cos(hn.angle2D)*hn.velocity+hn.drift,hn.y+=Math.sin(hn.angle2D)*hn.velocity+hn.gravity,hn.velocity*=hn.decay,hn.flat?(hn.wobble=0,hn.wobbleX=hn.x+10*hn.scalar,hn.wobbleY=hn.y+10*hn.scalar,hn.tiltSin=0,hn.tiltCos=0,hn.random=1):(hn.wobble+=hn.wobbleSpeed,hn.wobbleX=hn.x+10*hn.scalar*Math.cos(hn.wobble),hn.wobbleY=hn.y+10*hn.scalar*Math.sin(hn.wobble),hn.tiltAngle+=.1,hn.tiltSin=Math.sin(hn.tiltAngle),hn.tiltCos=Math.cos(hn.tiltAngle),hn.random=Math.random()+2);var oa=hn.tick++/hn.totalTicks,Ao=hn.x+hn.random*hn.tiltCos,ca=hn.y+hn.random*hn.tiltSin,va=hn.wobbleX+hn.random*hn.tiltCos,ra=hn.wobbleY+hn.random*hn.tiltSin;if(Cn.fillStyle="rgba("+hn.color.r+", "+hn.color.g+", "+hn.color.b+", "+(1-oa)+")",Cn.beginPath(),d&&hn.shape.type==="path"&&typeof hn.shape.path=="string"&&Array.isArray(hn.shape.matrix))Cn.fill(On(hn.shape.path,hn.shape.matrix,hn.x,hn.y,Math.abs(va-Ao)*.1,Math.abs(ra-ca)*.1,Math.PI/10*hn.wobble));else if(hn.shape.type==="bitmap"){var Jo=Math.PI/10*hn.wobble,$o=Math.abs(va-Ao)*.1,sa=Math.abs(ra-ca)*.1,da=hn.shape.bitmap.width*hn.scalar,nr=hn.shape.bitmap.height*hn.scalar,cr=new DOMMatrix([Math.cos(Jo)*$o,Math.sin(Jo)*$o,-Math.sin(Jo)*sa,Math.cos(Jo)*sa,hn.x,hn.y]);cr.multiplySelf(new DOMMatrix(hn.shape.matrix));var Vr=Cn.createPattern(w.transform(hn.shape.bitmap),"no-repeat");Vr.setTransform(cr),Cn.globalAlpha=1-oa,Cn.fillStyle=Vr,Cn.fillRect(hn.x-da/2,hn.y-nr/2,da,nr),Cn.globalAlpha=1}else if(hn.shape==="circle")Cn.ellipse?Cn.ellipse(hn.x,hn.y,Math.abs(va-Ao)*hn.ovalScalar,Math.abs(ra-ca)*hn.ovalScalar,Math.PI/10*hn.wobble,0,2*Math.PI):_t(Cn,hn.x,hn.y,Math.abs(va-Ao)*hn.ovalScalar,Math.abs(ra-ca)*hn.ovalScalar,Math.PI/10*hn.wobble,0,2*Math.PI);else if(hn.shape==="star")for(var yr=Math.PI/2*3,pi=4*hn.scalar,hi=8*hn.scalar,Hi=hn.x,Kr=hn.y,Gi=5,ec=Math.PI/Gi;Gi--;)Hi=hn.x+Math.cos(yr)*hi,Kr=hn.y+Math.sin(yr)*hi,Cn.lineTo(Hi,Kr),yr+=ec,Hi=hn.x+Math.cos(yr)*pi,Kr=hn.y+Math.sin(yr)*pi,Cn.lineTo(Hi,Kr),yr+=ec;else Cn.moveTo(Math.floor(hn.x),Math.floor(hn.y)),Cn.lineTo(Math.floor(hn.wobbleX),Math.floor(ca)),Cn.lineTo(Math.floor(va),Math.floor(ra)),Cn.lineTo(Math.floor(Ao),Math.floor(hn.wobbleY));return Cn.closePath(),Cn.fill(),hn.tick<hn.totalTicks}function zt(Cn,hn,oa,Ao,ca){var va=hn.slice(),ra=Cn.getContext("2d"),Jo,$o,sa=y(function(da){function nr(){Jo=$o=null,ra.clearRect(0,0,Ao.width,Ao.height),w.clear(),ca(),da()}function cr(){r&&!(Ao.width===s.width&&Ao.height===s.height)&&(Ao.width=Cn.width=s.width,Ao.height=Cn.height=s.height),!Ao.width&&!Ao.height&&(oa(Cn),Ao.width=Cn.width,Ao.height=Cn.height),ra.clearRect(0,0,Ao.width,Ao.height),va=va.filter(function(Vr){return Ct(ra,Vr)}),va.length?Jo=_.frame(cr):nr()}Jo=_.frame(cr),$o=nr});return{addFettis:function(da){return va=va.concat(da),sa},canvas:Cn,promise:sa,reset:function(){Jo&&_.cancel(Jo),$o&&$o()}}}function Dt(Cn,hn){var oa=!Cn,Ao=!!se(hn||{},"resize"),ca=!1,va=se(hn,"disableForReducedMotion",Boolean),ra=c&&!!se(hn||{},"useWorker"),Jo=ra?j():null,$o=oa?Je:Ne,sa=Cn&&Jo?!!Cn.__confetti_initialized:!1,da=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,nr;function cr(yr,pi,hi){for(var Hi=se(yr,"particleCount",ie),Kr=se(yr,"angle",Number),Gi=se(yr,"spread",Number),ec=se(yr,"startVelocity",Number),Ul=se(yr,"decay",Number),gs=se(yr,"gravity",Number),Oi=se(yr,"drift",Number),wi=se(yr,"colors",Se),Ps=se(yr,"ticks",Number),ws=se(yr,"shapes"),Rs=se(yr,"scalar"),bl=!!se(yr,"flat"),Cl=De(yr),bd=Hi,Jc=[],tc=Cn.width*Cl.x,Id=Cn.height*Cl.y;bd--;)Jc.push(gt({x:tc,y:Id,angle:Kr,spread:Gi,startVelocity:ec,color:wi[bd%wi.length],shape:ws[he(0,ws.length)],ticks:Ps,decay:Ul,gravity:gs,drift:Oi,scalar:Rs,flat:bl}));return nr?nr.addFettis(Jc):(nr=zt(Cn,Jc,$o,pi,hi),nr.promise)}function Vr(yr){var pi=va||se(yr,"disableForReducedMotion",Boolean),hi=se(yr,"zIndex",Number);if(pi&&da)return y(function(ec){ec()});oa&&nr?Cn=nr.canvas:oa&&!Cn&&(Cn=pt(hi),document.body.appendChild(Cn)),Ao&&!sa&&$o(Cn);var Hi={width:Cn.width,height:Cn.height};Jo&&!sa&&Jo.init(Cn),sa=!0,Jo&&(Cn.__confetti_initialized=!0);function Kr(){if(Jo){var ec={getBoundingClientRect:function(){if(!oa)return Cn.getBoundingClientRect()}};$o(ec),Jo.postMessage({resize:{width:ec.width,height:ec.height}});return}Hi.width=Hi.height=null}function Gi(){nr=null,Ao&&(ca=!1,t.removeEventListener("resize",Kr)),oa&&Cn&&(document.body.contains(Cn)&&document.body.removeChild(Cn),Cn=null,sa=!1)}return Ao&&!ca&&(ca=!0,t.addEventListener("resize",Kr,!1)),Jo?Jo.fire(yr,Hi,Gi):cr(yr,Hi,Gi)}return Vr.reset=function(){Jo&&Jo.reset(),nr&&nr.reset()},Vr}var sn;function Rn(){return sn||(sn=Dt(null,{useWorker:!0,resize:!0})),sn}function On(Cn,hn,oa,Ao,ca,va,ra){var Jo=new Path2D(Cn),$o=new Path2D;$o.addPath(Jo,new DOMMatrix(hn));var sa=new Path2D;return sa.addPath($o,new DOMMatrix([Math.cos(ra)*ca,Math.sin(ra)*ca,-Math.sin(ra)*va,Math.cos(ra)*va,oa,Ao])),sa}function Lo(Cn){if(!d)throw new Error("path confetti are not supported in this browser");var hn,oa;typeof Cn=="string"?hn=Cn:(hn=Cn.path,oa=Cn.matrix);var Ao=new Path2D(hn),ca=document.createElement("canvas"),va=ca.getContext("2d");if(!oa){for(var ra=1e3,Jo=ra,$o=ra,sa=0,da=0,nr,cr,Vr=0;Vr<ra;Vr+=2)for(var yr=0;yr<ra;yr+=2)va.isPointInPath(Ao,Vr,yr,"nonzero")&&(Jo=Math.min(Jo,Vr),$o=Math.min($o,yr),sa=Math.max(sa,Vr),da=Math.max(da,yr));nr=sa-Jo,cr=da-$o;var pi=10,hi=Math.min(pi/nr,pi/cr);oa=[hi,0,0,hi,-Math.round(nr/2+Jo)*hi,-Math.round(cr/2+$o)*hi]}return{type:"path",path:hn,matrix:oa}}function Yo(Cn){var hn,oa=1,Ao="#000000",ca='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Cn=="string"?hn=Cn:(hn=Cn.text,oa="scalar"in Cn?Cn.scalar:oa,ca="fontFamily"in Cn?Cn.fontFamily:ca,Ao="color"in Cn?Cn.color:Ao);var va=10*oa,ra=""+va+"px "+ca,Jo=new OffscreenCanvas(va,va),$o=Jo.getContext("2d");$o.font=ra;var sa=$o.measureText(hn),da=Math.ceil(sa.actualBoundingBoxRight+sa.actualBoundingBoxLeft),nr=Math.ceil(sa.actualBoundingBoxAscent+sa.actualBoundingBoxDescent),cr=2,Vr=sa.actualBoundingBoxLeft+cr,yr=sa.actualBoundingBoxAscent+cr;da+=cr+cr,nr+=cr+cr,Jo=new OffscreenCanvas(da,nr),$o=Jo.getContext("2d"),$o.font=ra,$o.fillStyle=Ao,$o.fillText(hn,Vr,yr);var pi=1/oa;return{type:"bitmap",bitmap:Jo.transferToImageBitmap(),matrix:[pi,0,0,pi,-da*pi/2,-nr*pi/2]}}n.exports=function(){return Rn().apply(this,arguments)},n.exports.reset=function(){Rn().reset()},n.exports.create=Dt,n.exports.shapeFromPath=Lo,n.exports.shapeFromText=Yo})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),N1,!1);const i1=N1.exports;var s1=N1.exports.create;function K2(){const e=(0,l.useRef)(null),t=(0,l.useCallback)(()=>{if(!e.current)return;const n=i1.create(e.current),r=600,s={startVelocity:100,gravity:1.5,ticks:120,resize:!0,useWorker:!0};function c(d,p){function g(y,w){n(Object.assign({},{...s,origin:d,angle:p},w,{particleCount:Math.floor(r*y)}))}g(.25,{spread:50,startVelocity:75}),g(.2,{spread:70}),g(.35,{spread:100,decay:.91,scalar:.8}),g(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),g(.1,{spread:120,startVelocity:45})}c({x:1,y:1},120),c({x:0,y:1},60)},[]);return(0,l.useEffect)(()=>{const n=document.querySelector("#IBOT_MODAL_ROOT .CouponReceivedModalPortal .CouponReceivedModalMask"),r=n.parentNode;if(!r||!n)return;const s=document.createElement("canvas");s.id="coupon-received-confetti-canvas",s.width=window.innerWidth,s.height=window.innerHeight,s.style.position="fixed",s.style.top="0px",s.style.left="0px",s.style.right="0px",s.style.width="100vw",s.style.height="100vh",s.style.zIndex="1",s.style.pointerEvents="none",r.insertBefore(s,n),e.current=s;const c=setTimeout(t,500);return()=>{clearTimeout(c)}},[t]),null}const Bp=(0,l.memo)(K2);var x0=i(91110),j0=i(84957);const D0=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledCouponReceivedModal",componentId:"sc-1or7x18-0"})(['background:url("/mb-proto2/images/guide/noviceGuides2309/coupon_received_modal_bg.png") no-repeat;background-size:100%;height:332px;.content{width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0;}.modal-title{font-weight:700;font-size:20px;color:#FFF;text-align:center;line-height:40px;margin-left:10px;margin-bottom:18px;}.desc{font-size:14px;font-weight:500;color:#333;text-align:center;margin-bottom:18px;.jump-to-workspace{position:relative;color:#333;::after{content:"";position:absolute;bottom:-1px;right:7px;height:1px;width:56px;background:#333;}}}.coupons{display:flex;justify-content:center;overflow:hidden;.coupon{width:240px;height:159px;padding:15px 15px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;.top{height:70px;width:100%;text-align:center;.constraint{margin-top:11px;font-weight:600;font-size:16px;color:#982A12;}.coupon-content{margin-top:4px;font-weight:600;font-size:26px;line-height:24px;color:#FF1D47;}}.bottom{flex:1;width:100%;text-align:center;.due-date{margin-top:10px;color:#985512;font-weight:400;}}}}.modal-bottom{position:absolute;left:0;bottom:0;width:100%;height:112px;.bottom-btn{margin-top:52px;padding:0 55px;display:flex;justify-content:space-between;button{width:140px;height:36px;border-radius:100px;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;&.use{border:1px solid #FF1D4A;background:#FFF;color:#FF1D4A;&:hover{background:#ff1d4a19;}}&.close{border:1px solid #FFE6C6;background:linear-gradient(89deg,#FF673E -41.97%,#FF4F82 173.35%);color:#FFF;&:hover{background:linear-gradient(89deg,#FF6035 -41.97%,#FF2968 173.35%);}}}}}']);var od=i(32060);const wd=function(e,t,n){n===void 0&&(n="");let r="";const s=e&&e.cid?e.cid:"me";if(e){const d={mode:"org",orgCid:e.cid,payEntrance:t,checkoutArea:"workspace",checkoutPlace:n||"org_use_vip_mkt",initialWorkspace:s};r=(0,j0._)(d)}else{const c={mode:"solo",payEntrance:t,checkoutArea:"workspace",checkoutPlace:n||"solo_use_vip_mkt",initialWorkspace:s};r=(0,j0._)(c)}return r};function u2(e){const{isOpen:t,org:n,coupons:r,dispatch:s,onClose:c}=e,d=(0,l.useCallback)(()=>{s({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!1}}}),c&&c()},[s,c]),p=(0,l.useCallback)(()=>{x0.Y.noviceGuide2309CouponClick("\u7EE7\u7EED\u4F53\u9A8C"),d(),(0,od.iX)()},[d]),g=(0,l.useCallback)(()=>{const _=wd(n,"","");x0.Y.noviceGuide2309CouponClick("\u4F7F\u7528\u4F18\u60E0\u5238"),d();const j=n&&n.cid?"org":"solo";s({type:"modal:update:state",payload:{chargeModal:{isOpen:!0,mode:j,src:location.origin+"/embed/payment_modal?param="+_}}})},[s,n,d]);return(0,o.jsx)(D0,{isOpen:t,canCancel:!1,canConfirm:!0,onClose:d,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,modalRender:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{className:"modal-title",children:"\u606D\u559C\u5B8C\u6210\uFF01"}),(0,o.jsxs)("div",{className:"desc",children:["\u592A\u68D2\u4E86\uFF0C\u60A8\u5DF2\u4F53\u9A8C\u4E86\u539F\u578B\u6838\u5FC3\u529F\u80FD\uFF0C\u5956\u52B1\u4E00\u5F20",(0,o.jsx)("br",{}),"\u4F18\u60E0\u52B5\uFF0C\u53EF\u524D\u5F80\u5DE5\u4F5C\u53F0",(0,o.jsx)("a",{className:"jump-to-workspace",href:"/workspace/"+((n==null?void 0:n.cid)||"me")+"?open=coupon",target:"_blank",rel:"noreferrer",children:"\u3010\u4F18\u60E0\u52B5\u3011"})," \u67E5\u770B\u3002"]}),(0,o.jsx)("div",{className:"coupons",children:r==null?void 0:r.map((y,w)=>(0,o.jsx)(Sd,{...y},y.id+"-"+(w+1)))}),(0,o.jsx)("div",{className:"modal-bottom",children:(0,o.jsxs)("div",{className:"bottom-btn",children:[(0,o.jsx)("button",{className:"use",onClick:g,children:"\u4F7F\u7528\u4F18\u60E0\u5238"}),(0,o.jsx)("button",{className:"close",onClick:p,children:"\u7EE7\u7EED\u4F53\u9A8C"})]})}),(0,o.jsx)(Bp,{})]})})}function Sd(e){let{id:t,title:n,content:r,constraint:s,valid_until:c}=e;return(0,o.jsxs)("div",{className:"coupon",children:[(0,o.jsxs)("div",{className:"top",children:[(0,o.jsx)("p",{className:"constraint",children:s}),(0,o.jsx)("p",{className:"coupon-content",children:r})]}),(0,o.jsx)("div",{className:"bottom",children:(0,o.jsxs)("p",{className:"due-date",children:["\u6709\u6548\u671F\u81F3 ",an()(c).format("YYYY.MM.DD")]})})]},t)}const Y2=(0,l.memo)(u2),O0=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledMockittGuideModal",componentId:"sc-1thomi4-0"})(['box-shadow:none;background:url("/mb-proto2/images/guide/newGuides/mockitt_guide_modal_new_bg.png") no-repeat top right !important;;background-size:400px 230px;.guide-container{display:flex;width:100%;height:100%;padding:0 53px;align-items:center;justify-content:center;flex-direction:column;.guide-title{font-family:Inter;font-size:28px;font-weight:600;line-height:34px;letter-spacing:0px;text-align:center;color:rgba(255,103,62,1);}.guide-desc{font-family:PingFang SC;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;text-align:center;color:rgba(51,51,51,1);margin:30px 0;}.explore-more{display:flex;align-items:center;justify-content:center;font-family:PingFang SC;color:white;width:228px;height:36px;font-size:16px;font-weight:500;border-radius:18px;cursor:pointer;background:linear-gradient(88.92deg,#FF673E -41.97%,#FF4F82 173.35%);&:hover{background:linear-gradient(88.92deg,#FF6035 -41.97%,#FF2968 173.35%);}}}']);class Up extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"onClose",()=>{const{dispatch:t,onClose:n}=this.props;t({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!1}}}),n&&n()})}render(){const{isOpen:t}=this.props,{onClose:n}=this;return(0,o.jsxs)(O0,{isOpen:t,onClose:n,canClose:!1,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,children:[(0,o.jsxs)("div",{className:"guide-container",children:[(0,o.jsx)("div",{className:"guide-title",children:"Congratulations!"}),(0,o.jsx)("div",{className:"guide-desc",children:"You have experienced the core features of Mockitt prototyping tool."}),(0,o.jsx)("div",{className:"explore-more",onClick:n,children:"Explore more"})]}),(0,o.jsx)(Bp,{})]})}}const l1=e=>{let{onClose:t}=e;return(0,o.jsx)(Ei.H,{isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,title:I18N.Popups.do_not_leave_project,canClose:!0,onClose:t,width:400,onCancel:!1,confirmText:I18N.Popups.do_not_leave_project_confirm,onConfirm:t,confirmBtnProps:{type:"danger"},children:I18N.Popups.do_not_leave_project_content})},Tl=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledNestedDynamicModal",componentId:"sc-1bdx4is-0"})([".mainContent{display:flex;flex-direction:column;line-height:22px;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],e=>e.theme.color_text_L2),il={contextMenu:"\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",rightPanel:"\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",default:""};class Fp extends l.PureComponent{render(){const{isOpen:t,onClose:n,onConfirm:r,from:s}=this.props,c=il[s]||il.default;return t&&(0,o.jsx)(Tl,{isOpen:t,onClose:n,type:"alert",className:"option-action-modal",onCancel:n,onConfirm:r,title:"\u5D4C\u5957\u52A8\u6001\u7EC4\u4EF6",confirmText:"\u7EE7\u7EED",width:400,children:(0,o.jsxs)("div",{className:"mainContent",children:[(0,o.jsxs)("span",{children:["\u5F53\u524D\u5DF2\u7ECF\u662F\u52A8\u6001\u7EC4\u4EF6\u4E86\uFF0C",c,"\u4F1A\u5D4C\u5957\u751F\u6210\u4E00\u4E2A\u65B0\u7684\u52A8\u6001\u7EC4\u4EF6\uFF0C\u662F\u5426\u8981\u7EE7\u7EED\uFF1F"]}),(0,o.jsx)("span",{className:"restore-tip",children:"\u53CC\u51FB\u52A8\u6001\u7EC4\u4EF6\u5373\u53EF\u7F16\u8F91\u7EC4\u4EF6\u5185\u5143\u7D20\u3002"})]})})}}class X2 extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleConfirm",()=>{const{onClose:t,onConfirm:n}=this.props;n(),t()})}render(){const{isOpen:t,desc:n,title:r,isHTML:s,onClose:c}=this.props;return(0,o.jsx)(Ei.H,{isOpen:t,onClose:c,onCancel:c,onConfirm:this.handleConfirm,canConfirm:!0,title:r,portalClassName:"secondary-confirm-portal",width:400,confirmBtnProps:{type:"danger"},children:s?(0,o.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:n}}):(0,o.jsx)("p",{className:"desc",children:n})})}}var tp=i(75504),h2=i(97974);const Vp=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledRightsAndInterestsModal",componentId:"sc-wnb7dp-0"})(["&.right-and-interests{border-radius:16px;border:none;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.content{padding:0;position:relative;display:flex;flex-direction:column;background-color:#fff;border-radius:10px;p{color:#35445D;}.modal-content{background-color:",";.modal-header{border-bottom:1px solid ",";background-color:",";.caption{color:",";}.btn-close-modal{color:",";&:hover{color:",";}&:active{color:",";}svg path{fill:currentColor;}}}.modal-content{margin:0;width:100%;color:",";background-color:",";font-weight:400;.desc{color:",";p{color:",";.blue{color:",";}}}table{background:none;th,td{color:",";}thead{background-color:",";th{border:1px solid ",";}}tbody{background-color:",";tr{th,td{border:1px solid ",";}}}}.more{color:",";&:hover{color:",";}}}.modal-footer{background:",";.buttons .button-root{"," &[class*='type-linear']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid ",";}&[class*='is-disabled']{color:",";background:",";border:1px solid ",";}}}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L1,e=>e.theme.color_bg_select02,e=>e.theme.color_bg_select02,e=>e.theme.color_bg_select03,e=>e.theme.color_bg_select02,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_bg_white,h2.in,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02),m2=(0,E.DU)(["#IBOT_MODAL_ROOT{.new-model-portal{.workspace-modal{}}}"]);var np=i(16666),ad=i(88987),Pc=i(67247),Ga=i(44031);const Xl={[Pc.L1.Free]:{type:Ga.T.LimitationNotice.solo_free_plan_type,name:Ga.T.LimitationNotice.solo_free_plan_name},[Pc.L1.Solo]:{type:Ga.T.LimitationNotice.solo_solo_plan_type,name:Ga.T.LimitationNotice.solo_solo_plan_name},[Pc.L1.Lifetime]:{type:Ga.T.LimitationNotice.solo_life_time_plan_type,name:Ga.T.LimitationNotice.solo_life_time_plan_name},[Pc.L1.PremiumLifetime]:{type:Ga.T.LimitationNotice.solo_premium_lifetime_plan_type,name:Ga.T.LimitationNotice.solo_premium_lifetime_plan_name},[Pc.Sj.OrgFree]:{type:Ga.T.LimitationNotice.org_free_plan_type,name:Ga.T.LimitationNotice.org_free_plan_name},[Pc.Sj.OrgLite]:{type:Ga.T.LimitationNotice.org_org_lite_type,name:Ga.T.LimitationNotice.org_org_lite_name},[Pc.Sj.OrgFull]:{type:Ga.T.LimitationNotice.org_org_full_type,name:Ga.T.LimitationNotice.org_org_full_name},[Pc.Sj.OrgExpired]:{type:Ga.T.LimitationNotice.org_expired_plan_type,name:Ga.T.LimitationNotice.org_expired_plan_name}},js=e=>{let{plan:t,locale:n}=e;const{type:r={},name:s={}}=Xl[t]||{};return{type:r[n]||"",name:s[n]||""}};var ai=i(66188),Oa=i(44500),Ql=i(37342),Sl=i(47507);const ju=E.Ay.div.withConfig({displayName:"styles__StyledLimitationNoticeModal",componentId:"sc-13b3uyl-0"})(["width:484px;padding:20px;display:flex;border-radius:14px;position:relative;overflow:hidden;user-select:none;.plan-illustration{position:absolute;top:14px;right:63px;width:144px;height:62px;}.btn-close-modal{position:absolute;top:20px;right:20px;display:flex;justify-content:center;align-items:center;z-index:2;.svg-icon{width:24px;height:24px;path{fill:",";}&:hover{path{fill:",";}}}}.modal-container{width:100%;display:flex;z-index:1;flex-direction:column;gap:16px;}.modal-head{display:flex;flex-direction:column;gap:6px;.plan-title{color:",";font-size:16px;font-weight:600;line-height:21px;}.plan-desc{color:",";font-family:PingFang SC;font-size:12px;font-weight:400;line-height:18px;padding-right:10px;}}"],Sl.q.color_text_L2,Sl.q.color_text_L1,Sl.q.color_text_L1,Sl.q.color_text_L2),Du=E.Ay.div.withConfig({displayName:"styles__StyledModalBackground",componentId:"sc-1wnxxw1-0"})(["left:0;top:0;width:100%;height:100%;position:absolute;background-color:white;overflow:hidden;display:flex;align-items:center;justify-content:center;.circle{position:absolute;border-radius:50%;filter:blur(100px);display:flex;align-items:center;justify-content:center;&.lt{width:278px;height:278px;top:-176px;left:-86px;background:#DAD6FD;}&.rt{width:282px;height:282px;right:-119px;top:-229px;background:#B2E2FF;}&.lb{left:-86px;bottom:-80px;width:203px;height:203px;background:#CCEDFF;}&.rb{right:-113px;bottom:-142px;width:228px;height:228px;background:#DED0FF;}}"]),Q2=()=>(0,o.jsx)(Du,{children:["lt","rt","lb","rb"].map(e=>(0,o.jsx)("div",{className:"circle "+e},e))}),qd=E.Ay.div.withConfig({displayName:"styles__StyledModalFooter",componentId:"sc-s4a93a-0"})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;&.center{justify-content:center;}&.right{justify-content:flex-end;}.button{width:214px;height:32px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-size:13px;font-weight:500;border-radius:8px;gap:4px;overflow:hidden;cursor:pointer;&.small{width:fit-content;padding:0 16px;}&.gradient{color:white;background:linear-gradient(91deg,#73C7FF -7.44%,#4D54FF 49.38%,#FF83F9 100%);&:hover{background:linear-gradient(91deg,#59BDFF -7.44%,#4047FF 49.38%,#FF66F7 100%);svg{transform:translateY(-2px);transition:transform .2s ease-in-out;}}}&.gray{background:white;color:",";border:1px solid rgba(18,17,42,0.07);&:hover{background:rgba(243,243,244,1);}&:active{background:rgba(238,238,240,1);}}svg{width:12px;height:12px;}}"],Sl.q.color_text_L1),c1=e=>{const{locale:t,showOrgTrialBtn:n,showSoloTrialBtn:r,showHandoverBtn:s,showManageShareBtn:c,showConfirmBtn:d,showUpgradeV8Btn:p,isCanGetCoupon:g,showPreviewBtn:y,showHandoverByDemotionBtn:w,actions:{onOrgSwitchToTrial:_,onSoloSwitchToTrial:j,onManageShare:N,onConfirm:Z,onUpgrade:Q,renderUpgradeV8Btn:se,onRemoveMember:ie,renderPreviewBtn:he}}=e,xe=()=>{const Ne=[];return n&&Ne.push({label:Ga.T.LimitationNotice.trial_7_days[t],type:"gray",onClick:(0,ai.nF)(()=>_(),5e3)}),r&&Ne.push({label:Ga.T.LimitationNotice.trial_2_days[t],type:"gray",onClick:(0,ai.nF)(()=>j(),5e3)}),s&&Ne.push({label:Ga.T.LimitationNotice.keep_removing[t],type:"gray",onClick:()=>{ie()}}),w&&Ne.push({label:Ga.T.LimitationNotice.keep_demoting[t],type:"gray",onClick:()=>{ie()}}),c&&Ne.push({label:Ga.T.LimitationNotice.limit_manage_sharing[t],type:"gray",onClick:()=>{N()}}),d?Ne.push({label:Ga.T.LimitationNotice.limit_i_got_it[t],type:"gray",onClick:()=>{Z()}}):Ne.push({label:g?Ga.T.LimitationNotice.get_coupon_and_upgrade[t]:Ga.T.LimitationNotice.payment_upgrade[t],type:"gradient",onClick:()=>{Q()}}),Ne},Se=(0,l.useMemo)(()=>he&&he(!!y),[he,y]),_e=(0,l.useMemo)(()=>se&&se(!!p),[se,p]);let De=xe().length;Se&&De++,_e&&De++;const Je=De>2?"right":De>1?"":"center";return(0,o.jsxs)(qd,{className:Je,children:[Se,_e,xe().map((Ne,pt)=>(0,o.jsxs)("div",{className:"button "+Ne.type,onClick:Ne.onClick,children:[Ne.label,Ne.type==="gradient"&&(0,o.jsx)(ma.A,{name:"general/limitation_upgrade_arrow"})]},pt))]})},Hd=E.Ay.div.withConfig({displayName:"styles__StyledPlanColumnList",componentId:"sc-1482bt2-0"})(["display:flex;flex:1 0 0;flex-direction:column;justify-content:center;&:nth-child(1){.value{justify-content:flex-start;}}&:nth-child(2){background:linear-gradient(180deg,rgba(243,235,255,0.50) 0%,rgba(250,247,255,0.10) 100%);}.value{width:100%;height:36px;padding:0 8px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(88,0,194,0.05);color:",";font-size:12px;&:nth-child(1){margin-top:4px;font-weight:500;font-size:13px;}svg{width:16px;height:16px;}}"],Sl.q.color_text_L1),$d=(0,l.memo)(e=>{let{value:t}=e;return(0,o.jsx)("div",{className:"value",children:t===Oa.Fw?(0,o.jsx)(ma.A,{name:"general/limitation_un_support"}):t===Oa.R?(0,o.jsx)(ma.A,{name:"general/limitation_support"}):t})}),Ad=(0,l.memo)(e=>{let{values:t}=e;return(0,o.jsx)(Hd,{children:t.map((n,r)=>(0,o.jsx)($d,{value:n},n+r))})}),vc=E.Ay.div.withConfig({displayName:"styles__StyledModalPlan",componentId:"sc-1eexctv-0"})(["width:444px;padding:10px;border:1px solid white;border-radius:16px;backdrop-filter:blur(8px);background:rgba(94,135,255,0.08);flex-direction:row;.plan-container{width:100%;padding:0 8px;background-color:white;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;&.no-padding{padding:0;}.column-container{width:100%;display:flex;flex-direction:row;}}.footer{height:36px;display:flex;align-items:center;justify-content:center;color:",';font-size:12px;font-weight:400;.upgrade{margin-right:2px;background:linear-gradient(88deg,#59BDFF -27.51%,#4047FF 44.48%,#FF66F7 108.61%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:12px;font-weight:500;cursor:pointer;position:relative;&:hover::after{content:"";position:absolute;left:0;bottom:0px;width:100%;height:1px;background:linear-gradient(88deg,#59BDFF -27.51%,#4047FF 44.48%,#FF66F7 108.61%);}}.line{margin:0 12px;width:1px;height:12px;background-color:rgba(18,17,42,0.07);}.on-more{display:flex;align-items:center;cursor:pointer;&:hover{color:',";svg{path{fill:",";}}}}}"],Sl.q.color_text_L3,Sl.q.color_text_L1,Sl.q.color_text_L1);var Pl=i(69368);const Md=e=>{let{planList:t,interestList:n,locale:r,isHideMore:s,onMore:c,onUpgrade:d,showUpgrade:p}=e;const g=(0,l.useMemo)(()=>{const y=[];if(!t||!n)return[];const w=n.map(j=>{let{typeI18nObj:N}=j;return N[r]});y.push([Pl.TH.LimitationNotice.enjoy_interest[r],...w]);const _=t.map((j,N)=>{let{planI18nObj:Z}=j;const Q=n.map(ie=>{let{values:he}=ie;return he[N]});return[Z[r],...Q]});return y.concat(_)},[t,n,r]);return(0,o.jsx)(vc,{children:(0,o.jsxs)("div",{className:m()("plan-container",{"no-padding":g.length<=2}),children:[(0,o.jsx)("div",{className:"column-container",children:g.map((y,w)=>(0,o.jsx)(Ad,{values:y},w))}),(0,o.jsxs)("div",{className:"footer",children:[p&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"upgrade",onClick:d,children:"\u5347\u7EA7\u4F1A\u5458"}),(0,o.jsx)("div",{children:"\u89E3\u9501\u66F4\u591A\u6743\u76CA"})]}),p&&!s&&(0,o.jsx)("div",{className:"line"}),!s&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"on-more",onClick:c,children:["\u66F4\u591A\u6743\u76CA",(0,o.jsx)(ma.A,{name:"general/limitation_more_arrow"})]})})]})]})})},Ld=e=>{const{planList:t,interestList:n,locale:r,actions:{onClose:s,onMore:c,onUpgrade:d},isHideMore:p,title:g,desc:y,currentPlan:w,isOrgLimit:_,showConfirmBtn:j}=e;let N=y;const Z=w===Oa.OL.OrgFull&&_;return Z&&(N=y+Pl.TH.LimitationNotice.limit_versions_history_tips_4[r]),(0,o.jsxs)(ju,{children:[(0,o.jsx)(Q2,{}),!Z&&(0,o.jsx)("img",{src:"/mb-dashboard/images2/component-limitation-plan-illustration.png",className:"plan-illustration"}),(0,o.jsx)("button",{className:"btn-close-modal",onClick:s,children:(0,o.jsx)(ma.A,{name:"limitation_close"})}),(0,o.jsxs)("div",{className:"modal-container",children:[(0,o.jsxs)("div",{className:"modal-head",children:[(0,o.jsx)("div",{className:"plan-title",children:g}),(0,o.jsx)("div",{className:"plan-desc",children:N})]}),(0,o.jsx)(Md,{planList:t,interestList:n,locale:r,isHideMore:p,onMore:c,onUpgrade:d,showUpgrade:!j}),(0,o.jsx)(c1,{...e})]})]})},Jl=e=>{const{locale:t,currentOrg:n,limitType:r,selectedOrg:s,upgradeOrg:c,isSoloCanGetCoupon:d,isOrgCanGetCoupon:p,isMockitt:g,currentPlan:y,planName:w,planType:_,isOrgLimit:j,onRemoveMember:N,actions:Z,getlimitReason:Q,actions:{onOrgSwitchToTrial:se,onSoloSwitchToTrial:ie,onManageShare:he,onConfirm:xe,onUpgrade:Se,onLimitNewTrack:_e,onMoreTrack:De}}=e,Je=Oa.fu[r],[Ne,pt]=(0,Oa.tt)({limitType:r,currentPlan:y,firstInterestType:Je,upgradeOrg:c,isMockitt:g,isOrg:j,locale:t}),_t=(0,l.useMemo)(()=>({limitReason:Q(j),currentPlanProduct:w,currentPlanCategory:j?"org":"solo",currentType:_,currentEditMember:j?s==null?void 0:s.total_seats:0,currentEditMemberTaken:j&&s?(0,ai.NY)(s):0,currentViewMember:j?s==null?void 0:s.total_viewer_seats:0}),[Q,w,j,_,s]);(0,l.useEffect)(()=>{_e(_t)},[_t,_e]);const gt=()=>{const Rn=j||c,On=g?"/pricing.html":"/brand/pricing";return Rn?On:On+"?tab=personal"},Ct=()=>{const Rn=gt();(0,Ql.JW)(Rn),De(_t)},zt=()=>{Se({isSoloCanGetCoupon:d,isOrgCanGetCoupon:p,limitTrackParams:_t,upgradeOrg:c,isOrgLimit:j})},Dt=Rn=>()=>Rn&&Rn(_t),sn={...Z,onConfirm:Dt(xe),onOrgSwitchToTrial:Dt(se),onSoloSwitchToTrial:Dt(ie),onManageShare:Dt(he),onRemoveMember:Dt(N),onUpgrade:zt,onMore:Ct};return(0,o.jsx)(Ld,{...e,planList:Ne,interestList:pt,isCanGetCoupon:!!(d||p),actions:sn})};var d1=i(19249);const Wl=e=>{let{isOrgLimit:t,orgParams:n={},isAvailable:r=!0,projectType:s=ai.ch.proto}=e;const{currentUser:c,currentOrg:d,orgs:p}=n,[g,y]=(0,l.useState)(p||[]),[w,_]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!r)return;const N=async()=>{const{orgs:Q}=await(0,d1.DE)("/api/dashboard/v4/orgs/list");Q.length>0&&y([...Q])};t?(!p||p.length===0)&&N():(async()=>{let Q="/api/dashboard/v4/users/check_enable_trial";s===ai.ch.bomx&&(Q="/api/dsh2/web_v1/users/bx_check_enable_trial"),s===ai.ch.aiPpt&&(Q="/api/dsh2/web_v1/users/aippt_check_enable_trial");const{enable:se}=await(0,d1.DE)(Q);_(se)})()},[r,t,p,s]);const j=(0,l.useMemo)(()=>!r||!t?!1:(0,ai.xs)(c,d,g||[]),[r,t,c,d,g]);return{isSoloCanSwitchTrial:w,isOrgCanSwitchTrial:j}},Ll=e=>{let{isMockitt:t,coupons:n,isAvailable:r=!0}=e;const[s,c]=(0,l.useState)(n||[]);(0,l.useEffect)(()=>{if(!r)return;async function g(){const y=await(0,d1.DE)("/api/payment/v4/coupon/coupons");y&&c([...y])}(!n||n.length===0)&&g()},[n,r]);const[d,p]=(0,l.useMemo)(()=>{if(!r||t)return[!1,!1];const g=s.every(w=>w.tid!==1028),y=s.every(w=>w.tid!==844);return[g,y]},[s,r,t]);return{isSoloCanGetCoupon:d,isOrgCanGetCoupon:p}},p1=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,selectedOrg:d,couponList:p,orgList:g}=e,y=!!(c&&c.cid&&c.otype!=="personal"),{isSoloCanSwitchTrial:w,isOrgCanSwitchTrial:_}=Wl({isOrgLimit:y,orgParams:{currentUser:s,currentOrg:d,orgs:g}}),{currentPlan:j,planName:N,planType:Z,isSoloFull:Q,isOrgFull:se}=(0,ai.T2)(y,n,d,s),{isOrgCanGetCoupon:ie,isSoloCanGetCoupon:he}=Ll({isMockitt:r,coupons:p}),{upgradeOrg:xe,isSoloCanGetCoupon:Se,isOrgCanGetCoupon:_e,isSoloPaid:De}=(0,l.useMemo)(()=>{if(y)return{currentPlan:j,planName:N,planType:Z,isOrgFull:se,isSoloCanGetCoupon:!1,isOrgCanGetCoupon:he};{const Ct=ie&&!Q,zt=he&&Q,Dt=j!==Pc.L1.Free;return{currentPlan:j,planName:N,planType:Z,upgradeOrg:!1,isSoloCanGetCoupon:Ct,isOrgCanGetCoupon:zt,isSoloPaid:Dt}}},[j,he,ie,y,se,Q,N,Z]),{maxSharingCount:Je}=(0,ai.xR)(t,s,y?d:c),{type:Ne,name:pt}=js({plan:j,locale:n}),_t=Ga.T.LimitationNotice.v8_max_share_limit_title[n].replace("{plan}",Ne),gt=Ga.T.LimitationNotice.v8_max_share_limit_desc[n].replace("{maxCount}",Je).replace("{plan}",pt);return(0,o.jsx)(Jl,{title:_t,desc:gt,currentPlan:j,planName:N,planType:Z,isOrgLimit:y,showConfirmBtn:se,upgradeOrg:xe,showManageShareBtn:!0,showSoloTrialBtn:w,showOrgTrialBtn:_,isSoloCanGetCoupon:Se,isOrgCanGetCoupon:_e,...e})},op=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:g}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:y}=Ll({isMockitt:r,coupons:p}),{orgPlan:w,orgPlanType:_,orgPlanName:j}=(0,ai.wJ)(n,c),{maxSpaceCount:N}=(0,ai.xR)(t,s,c),{type:Z,name:Q}=js({plan:w,locale:n}),se=Ga.T.LimitationNotice.org_space_count_limit_title[n].replace("{plan}",Z),ie=Ga.T.LimitationNotice.org_space_count_limit_desc[n].replace("{plan}",Q).replace("{maxCount}",N);return(0,o.jsx)(Jl,{title:se,desc:ie,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showOrgTrialBtn:g,isOrgCanGetCoupon:y,...e})},ap=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:g}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:y}=Ll({isMockitt:r,coupons:p}),{orgPlan:w,orgPlanType:_,orgPlanName:j}=(0,ai.wJ)(n,c),{maxProjectTemplateCount:N}=(0,ai.xR)(t,s,c),{type:Z,name:Q}=js({plan:w,locale:n}),se=Ga.T.LimitationNotice.org_v7_template_count_limit_title[n].replace("{plan}",Z),ie=Ga.T.LimitationNotice.org_v7_template_count_limit_desc[n].replace("{plan}",Q).replace("{maxCount}",N);return(0,o.jsx)(Jl,{title:se,desc:ie,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showOrgTrialBtn:g,isOrgCanGetCoupon:y,...e})},j1=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:g}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:y}=Ll({isMockitt:r,coupons:p}),{orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N}=(0,ai.tv)(n,c),{maxProjectVersionCount:Z}=(0,ai.xR)(t,s,c),{type:Q,name:se}=js({plan:w,locale:n}),ie=Ga.T.LimitationNotice.v8_max_version_limit_title[n].replace("{plan}",Q),he=Ga.T.LimitationNotice.v8_max_version_limit_desc[n].replace("{plan}",se).replace("{maxCount}",Z);return(0,o.jsx)(Jl,{title:ie,desc:he,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:y,...e})};var b0=i(86418);const Gd=e=>{const{locale:t,isMockitt:n,selectedMember:r,currentUser:s,selectedOrg:c,couponList:d,actions:{onRemoveMember:p},limitType:g}=e,{user_id:y,orgPermission:{user_id:w,unsign_remark:_}}=r,j=!w&&_,N=w||y,Z=g===Oa.hC.ProjectHandoverNoPermission?"removal":"demotion",[Q,se]=(0,l.useState)(!j),[ie,he]=(0,l.useState)([]),{isOrgCanGetCoupon:xe}=Ll({isMockitt:n,coupons:d||[]}),{cid:Se,permissions:_e}=c,{orgPlan:De,orgPlanType:Je,orgPlanName:Ne}=(0,ai.tv)(t,c),pt=De===b0.Sj.OrgLite?Ga.T.LimitationNotice.org_lite_plan[t]:Ga.T.LimitationNotice.free_org[t],_t=Ga.T.LimitationNotice.org_handover_no_permission_limit_title[t].replace("{plan}",pt),gt=Z==="demotion"?Ga.T.LimitationNotice.org_handover_no_permission_limit_desc[t]:Ga.T.LimitationNotice.org_remove_no_permission_limit_desc[t],Ct=(0,l.useMemo)(()=>{var sn;return _e==null||(sn=_e.find(Rn=>Rn.role==="org_owner"))==null?void 0:sn.user_id},[_e]),zt=(0,l.useMemo)(()=>ie.map(sn=>{const{cid:Rn}=sn||{},On=(0,ai.Ok)(sn,N,Ct);return{cid:Rn,role:On,target_user_id:Ct}}),[N,Ct,ie]);(0,l.useEffect)(()=>{async function sn(){try{if(!N)return;const{spaces:Rn}=await(0,ai.ys)(N,Se);let On=[];Rn&&Rn.length>0&&(On=Rn.filter(Lo=>Lo.permissions.find(Yo=>Yo.user_id===N))),On.length>0&&he(On),se(!1)}catch(Rn){console.log(Rn.message)}}!j&&sn()},[]);const Dt=async sn=>{Q&&!j||p&&p({submitHandoverList:zt,trackParams:sn,onLoading:se})};return(0,o.jsx)(Jl,{title:_t,desc:gt,currentPlan:De,planName:Ne,planType:Je,isOrgLimit:!0,isOrgCanGetCoupon:xe,showHandoverBtn:Z==="removal",showHandoverByDemotionBtn:Z==="demotion",onRemoveMember:Dt,...e})},Zd=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:g}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:y}=Ll({isMockitt:r,coupons:p}),{orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N}=(0,ai.tv)(n,c),{maxPicBytes:Z}=(0,ai.xR)(t,s,c),{type:Q,name:se}=js({plan:w,locale:n}),ie=Ga.T.LimitationNotice.v8_upload_pic_limit_title[n].replace("{plan}",Q),he=Ga.T.LimitationNotice.v8_upload_pic_limit_desc[n].replace("{maxSize}",(Z||0)/1024/1024).replace("{plan}",se);return(0,o.jsx)(Jl,{title:ie,desc:he,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:y,...e})},qc=e=>{let{locale:t,currentOrg:n,type:r}=e;const{isSoloCanSwitchTrial:s}=Wl({isOrgLimit:!1,projectType:r}),{userPlan:c,userPlanType:d,userPlanName:p}=(0,ai.FO)({locale:t,org:n,type:r}),g=b0.tz.InitialOrg(n);return{isSoloCanSwitchTrial:s,pplSdk:g,userPlan:c,userPlanType:d,userPlanName:p}},u1=e=>{const{from:t,locale:n,currentUser:r,currentOrg:s}=e,{isSoloCanSwitchTrial:c,userPlan:d,userPlanType:p,userPlanName:g}=qc({locale:n,currentOrg:s,type:ai.ch.proto}),{maxPicBytes:y}=(0,ai.xR)(t,r,void 0),{type:w,name:_}=js({plan:d,locale:n}),j=Ga.T.LimitationNotice.v8_upload_pic_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.v8_upload_pic_limit_desc[n].replace("{maxSize}",(y||0)/1024/1024).replace("{plan}",_);return(0,o.jsx)(Jl,{title:j,desc:N,currentPlan:d,planName:g,planType:p,isOrgLimit:!1,showSoloTrialBtn:c,upgradeOrg:d!==Pc.L1.Free,...e})},h1=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,couponList:d,orgList:p,widgetCreateLimit:g,isCurrentProject:y,isProto2:w}=e,{isOrgCanSwitchTrial:_}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:p}}),{isOrgCanGetCoupon:j}=Ll({isMockitt:r,coupons:d}),{orgPlan:N,orgPlanName:Z,orgPlanType:Q,isOrgFull:se}=(0,ai.tv)(n,c),{maxV7ScreenCount:ie}=(0,ai.xR)(t,s,c),{type:he,name:xe}=js({plan:N,locale:n}),Se=Ga.T.LimitationNotice.limit_current_is[n],_e=Ga.T.LimitationNotice.v7_max_page_limit_title[n].replace("{plan}",he).replace("{orgName}",Se),De=Ga.T.LimitationNotice.v7_max_page_limit_desc[n].replace("{maxCount}",ie).replace("{plan}",xe);return(0,o.jsx)(Jl,{title:_e,desc:De,currentPlan:N,planName:Z,planType:Q,isOrgLimit:!0,showConfirmBtn:se,showOrgTrialBtn:_,showUpgradeV8Btn:se,isOrgCanGetCoupon:j,...e})},J2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:g}=e,{isOrgCanSwitchTrial:y}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:w}=Ll({isMockitt:r,coupons:p}),{orgPlan:_,orgPlanType:j,orgPlanName:N}=(0,ai.tv)(n,c,s),{maxCanvasCount:Z}=(0,ai.xR)(t,s,c),{type:Q,name:se}=js({plan:_,locale:n}),ie=Ga.T.LimitationNotice.v8_max_page_limit_title[n].replace("{plan}",Q),he=Ga.T.LimitationNotice.v8_max_page_limit_desc[n].replace("{maxCount}",Z).replace("{plan}",se);return(0,o.jsx)(Jl,{title:ie,desc:he,currentPlan:_,planName:N,planType:j,isOrgLimit:!0,showOrgTrialBtn:y,isOrgCanGetCoupon:w,...e})},zp=e=>{const{from:t,locale:n,currentUser:r,currentOrg:s,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:g,userPlanName:y}=qc({locale:n,currentOrg:s,type:ai.ch.proto}),{maxV7ScreenCount:w}=(0,ai.xR)(t,r,void 0),{type:_,name:j}=js({plan:p,locale:n}),N=Ga.T.LimitationNotice.limit_current_is[n],Z=Ga.T.LimitationNotice.v7_max_page_limit_title[n].replace("{plan}",_).replace("{orgName}",N),Q=Ga.T.LimitationNotice.v7_max_page_limit_desc[n].replace("{maxCount}",w).replace("{plan}",j);return(0,o.jsx)(Jl,{title:Z,desc:Q,currentPlan:p,planName:y,planType:g,isOrgLimit:!1,showSoloTrialBtn:d,...e})},D1=e=>{const{from:t,locale:n,currentUser:r,currentOrg:s,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:g,userPlanName:y}=qc({locale:n,currentOrg:s,type:ai.ch.proto}),{maxCanvasCount:w}=(0,ai.xR)(t,r,void 0),{type:_,name:j}=js({plan:p,locale:n}),N=Ga.T.LimitationNotice.v8_max_page_limit_title[n].replace("{plan}",_),Z=Ga.T.LimitationNotice.v8_max_page_limit_desc[n].replace("{maxCount}",w).replace("{plan}",j);return(0,o.jsx)(Jl,{title:N,desc:Z,currentPlan:p,planName:y,planType:g,isOrgLimit:!1,showSoloTrialBtn:d,...e})},u0=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,selectedOrg:d,orgList:p,couponList:g}=e,{cid:y}=d,w=y===c.cid,{isOrgCanSwitchTrial:_}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:d,orgs:p}}),{isOrgCanGetCoupon:j}=Ll({isMockitt:r,coupons:g}),{orgPlan:N,orgPlanType:Z,orgPlanName:Q,isOrgFull:se}=(0,ai.tv)(n,d),{maxProjectCount:ie}=(0,ai.xR)(t,s,d),{type:he,name:xe}=js({plan:N,locale:n}),Se=w?Ga.T.LimitationNotice.limit_current_is[n]:Ga.T.LimitationNotice.limit_target_space_is[n],_e=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",Se).replace("{product}","\u539F\u578B").replace("{plan}",he),De=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",Se).replace("{plan}",xe).replace("{maxCount}",ie).replace("{product}","\u539F\u578B");return(0,o.jsx)(Jl,{currentPlan:N,planName:Q,planType:Z,isOrgLimit:!0,showConfirmBtn:se,showOrgTrialBtn:_,isOrgCanGetCoupon:j,showPreviewBtn:!_,title:_e,desc:De,...e})},f2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,couponList:d}=e,{isSoloCanGetCoupon:p}=Ll({isMockitt:r,coupons:d}),{isSoloCanSwitchTrial:g,userPlan:y,userPlanType:w,userPlanName:_}=qc({locale:n,currentOrg:c,type:ai.ch.proto}),{maxProjectCount:j}=(0,ai.xR)(t,s,void 0),{type:N,name:Z}=js({plan:y,locale:n}),Q=Ga.T.LimitationNotice.limit_current_is[n],se=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",Q).replace("{product}","\u539F\u578B").replace("{plan}",N),ie=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",Q).replace("{plan}",Z).replace("{maxCount}",j).replace("{product}","\u539F\u578B");return(0,o.jsx)(Jl,{currentPlan:y,planName:_,planType:w,isOrgLimit:!1,isSoloCanGetCoupon:p,showSoloTrialBtn:g,showPreviewBtn:!g,title:se,desc:ie,...e})},R0=e=>{const{locale:t,currentUser:n,currentOrg:r,selectedOrg:s,limitType:c}=e,d=!!(r&&r.cid&&r.otype!=="personal"),p=c===Oa.hC.ProjectVersionFromTime,{currentPlan:g,planType:y,planName:w,isOrgFull:_}=(0,ai.T2)(d,t,s,n),{maxVersionCount:j,maxVersionRecycleDays:N}=(0,ai.xR)("",n,d&&r),{type:Z,name:Q}=js({plan:g,locale:t}),se=p?Ga.T.LimitationNotice.v8_max_auto_version_limit_title[t].replace("{plan}",Z):Ga.T.LimitationNotice.v8_max_version_limit_title[t].replace("{plan}",Z),ie=p?Ga.T.LimitationNotice.v8_max_auto_version_limit_desc[t].replace("{plan}",Q).replace("{maxCount}",N):Ga.T.LimitationNotice.v8_max_version_limit_desc[t].replace("{plan}",Q).replace("{maxCount}",j),he=c!==Oa.hC.ProjectVersionFromTime;return(0,o.jsx)(Jl,{title:se,desc:ie,currentPlan:g,planName:w,planType:y,isOrgLimit:d,upgradeOrg:he,showConfirmBtn:_,...e})};var kd=i(70527);const B0=(e,t)=>{const n=kd.u3[e],{max_project_count:r,max_widget_count:s,bomx_max_file_bytes:c=0,bomx_max_upload_file_bytes:d=0,max_pic_bytes:p=0,max_project_version_count:g}=n,y=r===kd.nj?Ga.T.LimitationNotice.unlimited[t]:""+r+Ga.T.LimitationNotice.unit[t],w=s===-1?Ga.T.LimitationNotice.unlimited[t]:""+s+Ga.T.LimitationNotice.unit[t],_=c/1024/1024+"M",j=d/1024/1024+"M",N=p/1024/1024+"M",Z=g===1e4?Ga.T.LimitationNotice.unlimited[t]:""+n.max_project_version_count+Ga.T.LimitationNotice.unit[t],Q=(0,Oa.CJ)(e,t);return{[Oa.fA.BomxProjectCount]:y,[Oa.fA.BomxWidgetCount]:w,[Oa.fA.BomxFileSize]:_,[Oa.fA.BomxUploadFileSize]:j,[Oa.fA.BomxUploadImgSize]:N,[Oa.fA.ProjectVersionsCount]:Z,...Q}},Wp={[Oa.fA.BomxProjectCount]:[Oa.fA.BomxProjectCount,Oa.fA.BomxFileSize,Oa.fA.BomxWidgetCount,Oa.fA.v8TemplateCount],[Oa.fA.OrgBomxProjectCount]:[Oa.fA.BomxProjectCount,Oa.fA.Teamwork,Oa.fA.OrgResignationDataHandover,Oa.fA.OrgFullLogs,Oa.fA.OrgFullManager],[Oa.fA.BomxFileSize]:[Oa.fA.BomxFileSize,Oa.fA.BomxProjectCount,Oa.fA.BomxWidgetCount],[Oa.fA.OrgBomxFileSize]:[Oa.fA.BomxFileSize,Oa.fA.BomxProjectCount,Oa.fA.Teamwork,Oa.fA.BomxWidgetCount],[Oa.fA.BomxUploadFileSize]:[Oa.fA.BomxUploadFileSize,Oa.fA.BomxUploadImgSize,Oa.fA.BomxWidgetCount,Oa.fA.InterestDuration],[Oa.fA.OrgBomxUploadFileSize]:[Oa.fA.BomxUploadFileSize,Oa.fA.BomxUploadImgSize,Oa.fA.Teamwork,Oa.fA.BomxWidgetCount],[Oa.fA.BomxUploadImgSize]:[Oa.fA.BomxUploadImgSize,Oa.fA.BomxUploadFileSize,Oa.fA.BomxWidgetCount,Oa.fA.InterestDuration],[Oa.fA.OrgBomxUploadImgSize]:[Oa.fA.BomxUploadImgSize,Oa.fA.BomxUploadFileSize,Oa.fA.Teamwork,Oa.fA.BomxWidgetCount],[Oa.fA.ProjectVersionsCount]:[Oa.fA.ProjectVersionsCount,Oa.fA.BomxWidgetCount,Oa.fA.BomxFileSize],[Oa.fA.OrgProjectVersionCount]:[Oa.fA.ProjectVersionsCount,Oa.fA.Teamwork,Oa.fA.BomxWidgetCount,Oa.fA.BomxFileSize],[Oa.fA.BomxWidgetCount]:[Oa.fA.BomxWidgetCount,Oa.fA.BomxUploadImgSize,Oa.fA.BomxUploadFileSize,Oa.fA.InterestDuration],[Oa.fA.OrgBomxWidgetCount]:[Oa.fA.BomxWidgetCount,Oa.fA.Teamwork,Oa.fA.BomxUploadImgSize,Oa.fA.BomxUploadFileSize]},O1=(e,t)=>e?[Oa.OL.OrgLite,Oa.OL.OrgFull]:[Oa.OL.Solo,Oa.OL.Lifetime],Hp=e=>{let{firstInterestType:t,isOrg:n,locale:r}=e;const s=g=>g.map(y=>({plan:y,planI18nObj:Oa.cS[y],planIcon:""})),c=O1(n,t);let d=Wp[t].map(g=>({type:g,typeI18nObj:Oa.bj[g],values:c.map(y=>B0(y,r)[g])}));return n||(d=d.filter(g=>g.type!==Oa.fA.Teamwork)),[s(c),d]},Yc=e=>{const{limitType:t,selectedOrg:n,upgradeOrg:r,limitDesc:s,isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,isMockitt:p,currentPlan:g,planName:y,planType:w,isOrgLimit:_,locale:j,onRemoveMember:N,actions:Z,getlimitReason:Q,actions:{onOrgSwitchToTrial:se,onSoloSwitchToTrial:ie,onManageShare:he,onConfirm:xe,onUpgrade:Se,onLimitNewTrack:_e,onMoreTrack:De}}=e,Je=Oa.fu[t],[Ne,pt]=Hp({firstInterestType:Je,isOrg:_,locale:j}),_t=(0,l.useMemo)(()=>({limitReason:Q(_),currentPlanProduct:y,currentPlanCategory:_?"org":"solo",currentType:w,currentEditMember:_?n==null?void 0:n.total_seats:0,currentEditMemberTaken:_&&n?(0,ai.NY)(n):0,currentViewMember:_?n==null?void 0:n.total_viewer_seats:0}),[Q,y,_,w,n]);(0,l.useEffect)(()=>{_e(_t)},[_t,_e]);const gt=()=>{const Rn=_||r,On=p?"/pricing.html":"/brand/pricing";return Rn?On:On+"?tab=personal"},Ct=()=>{const Rn=gt();(0,Ql.JW)(Rn),De(_t)},zt=()=>{Se({isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,limitTrackParams:_t,upgradeOrg:r,isOrgLimit:_})},Dt=Rn=>()=>Rn&&Rn(_t),sn={...Z,onConfirm:Dt(xe),onOrgSwitchToTrial:Dt(se),onSoloSwitchToTrial:Dt(ie),onManageShare:Dt(he),onRemoveMember:Dt(N),onUpgrade:zt,onMore:Ct};return(0,o.jsx)(Ld,{...e,planList:Ne,interestList:pt,isCanGetCoupon:!!(c||d),limitDesc:s,actions:sn})},q2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,couponList:d}=e,p=c&&c.cid&&c.otype!=="personal",{isSoloCanGetCoupon:g}=Ll({isMockitt:r,coupons:d}),{isSoloCanSwitchTrial:y,userPlan:w,userPlanType:_,userPlanName:j,pplSdk:N}=qc({locale:n,currentOrg:c,type:ai.ch.bomx}),Z=N.limitationSdk.bomxLimit.getMaxProjectCount(),{type:Q,name:se}=js({plan:w,locale:n}),ie=p?Ga.T.LimitationNotice.limit_target_space_is[n]:Ga.T.LimitationNotice.limit_current_is[n],he=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",ie).replace("{plan}",Q).replace("{product}","\u767D\u677F"),xe=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",ie).replace("{plan}",se).replace("{maxCount}",Z).replace("{product}","\u767D\u677F");return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!1,isSoloCanGetCoupon:g,showSoloTrialBtn:y,showPreviewBtn:!y,...e})},U0=e=>{let{selectedOrg:t,currentUser:n,orgList:r,isMockitt:s,locale:c,couponList:d}=e;const{isOrgCanSwitchTrial:p}=Wl({isOrgLimit:!0,orgParams:{currentUser:n,currentOrg:t,orgs:r}}),{isOrgCanGetCoupon:g}=Ll({isMockitt:s,coupons:d}),{orgPlan:y,orgPlanType:w,orgPlanName:_,isOrgFull:j}=(0,ai.$V)(c,t),N=b0.tz.InitialOrg(t);let Q=N.planSdk.bomxPlan.plan===Pc.Sj.OrgFree?Pl.TH.LimitationNotice.bomx_free_plan[c]:Pl.TH.LimitationNotice.bomx_org_lite_plan[c];return j&&(Q=Pl.TH.LimitationNotice.bomx_org_full_plan[c]),{isOrgCanSwitchTrial:p,isOrgCanGetCoupon:g,pplSdk:N,orgPlan:y,orgPlanType:w,orgPlanName:_,isOrgFull:j,planName:Q}},h0=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,selectedOrg:d,orgList:p,couponList:g}=e,{cid:y}=d,w=y===c.cid,{isOrgCanGetCoupon:_,isOrgCanSwitchTrial:j,pplSdk:N,orgPlan:Z,orgPlanType:Q,orgPlanName:se,isOrgFull:ie}=U0({selectedOrg:d,currentUser:s,orgList:p,isMockitt:r,locale:n,couponList:g}),he=N.limitationSdk.bomxLimit.getMaxProjectCount(),{type:xe,name:Se}=js({plan:Z,locale:n}),_e=w?Ga.T.LimitationNotice.limit_current_is[n]:Ga.T.LimitationNotice.limit_target_space_is[n],De=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",_e).replace("{product}","\u767D\u677F").replace("{plan}",xe),Je=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",_e).replace("{plan}",Se).replace("{maxCount}",he).replace("{product}","\u767D\u677F");return(0,o.jsx)(Yc,{title:De,desc:Je,currentPlan:Z,planName:se,planType:Q,isOrgLimit:!0,showConfirmBtn:ie,showOrgTrialBtn:j,isOrgCanGetCoupon:_,showPreviewBtn:!j,...e})},m1=e=>{const{locale:t,isMockitt:n,currentUser:r,selectedOrg:s,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:g,pplSdk:y,orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N,planName:Z}=U0({selectedOrg:s,currentUser:r,orgList:c,isMockitt:n,locale:t,couponList:d}),Q=y.limitationSdk.bomxLimit.getMaxPicBytes(),{type:se,name:ie}=js({plan:w,locale:t}),he=Ga.T.LimitationNotice.bomx_upload_pic_limit_title[t].replace("{plan}",se),xe=Ga.T.LimitationNotice.bomx_upload_pic_limit_desc[t].replace("{maxSize}",(Q||0)/1024/1024).replace("{plan}",ie);return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:p,...e})},m0=e=>{const{from:t,locale:n,currentOrg:r}=e,{isSoloCanSwitchTrial:s,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:g}=qc({locale:n,currentOrg:r,type:ai.ch.bomx}),y=g.limitationSdk.bomxLimit.getMaxPicBytes(),{type:w,name:_}=js({plan:c,locale:n}),j=Ga.T.LimitationNotice.bomx_upload_pic_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.bomx_upload_pic_limit_desc[n].replace("{maxSize}",(y||0)/1024/1024).replace("{plan}",_);return(0,o.jsx)(Yc,{title:j,desc:N,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:s,upgradeOrg:c!==Pc.L1.Free,...e})},Xc=e=>{const{from:t,locale:n,currentOrg:r}=e,{isSoloCanSwitchTrial:s,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:g}=qc({locale:n,currentOrg:r,type:ai.ch.bomx}),y=g.limitationSdk.bomxLimit.getMaxUploadFileBytes(),{type:w,name:_}=js({plan:c,locale:n}),j=Ga.T.LimitationNotice.bomx_upload_file_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.bomx_upload_file_limit_desc[n].replace("{maxSize}",(y||0)/1024/1024).replace("{plan}",_);return(0,o.jsx)(Yc,{title:j,desc:N,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:s,upgradeOrg:c!==Pc.L1.Free,...e})},ac=e=>{const{locale:t,isMockitt:n,currentUser:r,selectedOrg:s,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:g,pplSdk:y,orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N,planName:Z}=U0({selectedOrg:s,currentUser:r,orgList:c,isMockitt:n,locale:t,couponList:d}),Q=y.limitationSdk.bomxLimit.getMaxUploadFileBytes(),{type:se,name:ie}=js({plan:w,locale:t}),he=Ga.T.LimitationNotice.bomx_upload_file_limit_title[t].replace("{plan}",se),xe=Ga.T.LimitationNotice.bomx_upload_file_limit_desc[t].replace("{maxSize}",(Q||0)/1024/1024).replace("{plan}",ie);return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:p,...e})},xc=e=>{const{locale:t,isMockitt:n,currentUser:r,selectedOrg:s,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:g,pplSdk:y,orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N,planName:Z}=U0({selectedOrg:s,currentUser:r,orgList:c,isMockitt:n,locale:t,couponList:d}),Q=y.limitationSdk.bomxLimit.getMaxFileBytes(),{type:se,name:ie}=js({plan:w,locale:t}),he=Ga.T.LimitationNotice.bomx_project_file_limit_title[t].replace("{plan}",se),xe=Ga.T.LimitationNotice.bomx_project_file_limit_desc[t].replace("{maxSize}",(Q||0)/1024/1024).replace("{plan}",ie);return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:p,...e})},g2=e=>{const{from:t,locale:n,currentOrg:r}=e,{isSoloCanSwitchTrial:s,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:g}=qc({locale:n,currentOrg:r,type:ai.ch.bomx}),y=g.limitationSdk.bomxLimit.getMaxFileBytes(),{type:w,name:_}=js({plan:c,locale:n}),j=Ga.T.LimitationNotice.bomx_project_file_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.bomx_project_file_limit_desc[n].replace("{maxSize}",(y||0)/1024/1024).replace("{plan}",_);return(0,o.jsx)(Yc,{title:j,desc:N,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:s,upgradeOrg:c!==Pc.L1.Free,...e})},Gp=e=>{const{locale:t,isMockitt:n,currentUser:r,selectedOrg:s,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:g,pplSdk:y,orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N,planName:Z}=U0({selectedOrg:s,currentUser:r,orgList:c,isMockitt:n,locale:t,couponList:d}),Q=y.limitationSdk.bomxLimit.getMaxProjectVersionCount(),{type:se,name:ie}=js({plan:w,locale:t}),he=Ga.T.LimitationNotice.bomx_max_version_limit_title[t].replace("{plan}",se),xe=Ga.T.LimitationNotice.bomx_max_version_limit_desc[t].replace("{maxCount}",Q).replace("{plan}",ie);return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:p,...e})},F0=e=>{const{from:t,locale:n,currentOrg:r}=e,{isSoloCanSwitchTrial:s,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:g}=qc({locale:n,currentOrg:r,type:ai.ch.bomx}),y=g.limitationSdk.bomxLimit.getMaxProjectVersionCount(),{type:w,name:_}=js({plan:c,locale:n}),j=Ga.T.LimitationNotice.bomx_max_version_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.bomx_max_version_limit_desc[n].replace("{maxCount}",y).replace("{plan}",_);return(0,o.jsx)(Yc,{title:j,desc:N,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:s,upgradeOrg:c!==Pc.L1.Free,...e})},Rc=e=>{const{from:t,locale:n,currentOrg:r}=e,{isSoloCanSwitchTrial:s,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:g}=qc({locale:n,currentOrg:r,type:ai.ch.bomx}),y=g.limitationSdk.bomxLimit.getMaxWidgetCount(),{type:w,name:_}=js({plan:c,locale:n}),j=Ga.T.LimitationNotice.bomx_max_widget_limit_title[n].replace("{plan}",w),N=Ga.T.LimitationNotice.bomx_max_widget_limit_desc[n].replace("{maxCount}",y).replace("{plan}",_);return(0,o.jsx)(Yc,{title:j,desc:N,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:s,upgradeOrg:c!==Pc.L1.Free,...e})},f1=e=>{const{locale:t,isMockitt:n,currentUser:r,selectedOrg:s,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:g,pplSdk:y,orgPlan:w,orgPlanType:_,orgPlanName:j,isOrgFull:N,planName:Z}=U0({selectedOrg:s,currentUser:r,orgList:c,isMockitt:n,locale:t,couponList:d}),Q=y.limitationSdk.bomxLimit.getMaxWidgetCount(),{type:se,name:ie}=js({plan:w,locale:t}),he=Ga.T.LimitationNotice.bomx_max_widget_limit_title[t].replace("{plan}",se),xe=Ga.T.LimitationNotice.bomx_max_widget_limit_desc[t].replace("{maxCount}",Q).replace("{plan}",ie);return(0,o.jsx)(Yc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!0,showConfirmBtn:N,showOrgTrialBtn:g,isOrgCanGetCoupon:p,...e})},y2=e=>{let{type:t,locale:n,isOrg:r}=e;const s=kd.w4[t],c=s.max_project_count===kd.nj?Ga.T.LimitationNotice.unlimited[n]:""+s.max_project_count+Ga.T.LimitationNotice.unit[n],d=s.ppt_can_download_pptx?Oa.R:Oa.Fw,p=s.ppt_ai_points===kd.rz?Ga.T.LimitationNotice.unlimited[n]:""+s.ppt_ai_points+(r?"/\u4EBA":""),g=(0,Oa.CJ)(t,n);return{[Oa.fA.ProjectsCount]:c,[Oa.fA.PPTAiPoints]:p,[Oa.fA.PPTFileDownload]:d,...g}},rp={[Oa.fA.ProjectsCount]:[Oa.fA.ProjectsCount,Oa.fA.Teamwork,Oa.fA.PPTAiPoints,Oa.fA.PPTFileDownload,Oa.fA.v8TemplateCount],[Oa.fA.OrgProjectCount]:[Oa.fA.ProjectsCount,Oa.fA.PPTAiPoints,Oa.fA.OrgResignationDataHandover,Oa.fA.OrgFullLogs,Oa.fA.OrgFullManager]},rc=e=>e?[Oa.OL.OrgLite,Oa.OL.OrgFull]:[Oa.OL.Solo,Oa.OL.Lifetime],fc=e=>{let{firstInterestType:t,isOrg:n,locale:r}=e;const s=g=>g.map(y=>({plan:y,planI18nObj:Oa.cS[y],planIcon:""})),c=rc(n);let d=rp[t].map(g=>({type:g,typeI18nObj:Oa.bj[g],values:c.map(y=>y2({type:y,locale:r,isOrg:n})[g])}));return n||(d=d.filter(g=>g.type!==Oa.fA.Teamwork)),[s(c),d]},Bc=e=>{const{limitType:t,selectedOrg:n,upgradeOrg:r,limitDesc:s,isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,isMockitt:p,currentPlan:g,planName:y,planType:w,isOrgLimit:_,locale:j,onRemoveMember:N,actions:Z,getlimitReason:Q,actions:{onOrgSwitchToTrial:se,onSoloSwitchToTrial:ie,onManageShare:he,onConfirm:xe,onUpgrade:Se,onLimitNewTrack:_e,onMoreTrack:De}}=e,Je=Oa.fu[t],[Ne,pt]=fc({firstInterestType:Je,isOrg:_,locale:j}),_t=(0,l.useMemo)(()=>({limitReason:Q(_),currentPlanProduct:y,currentPlanCategory:_?"org":"solo",currentType:w,currentEditMember:_?n==null?void 0:n.total_seats:0,currentEditMemberTaken:_&&n?(0,ai.NY)(n):0,currentViewMember:_?n==null?void 0:n.total_viewer_seats:0}),[Q,y,_,w,n]);(0,l.useEffect)(()=>{_e(_t)},[_t,_e]);const gt=()=>{De(_t)},Ct=()=>{Se({isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,limitTrackParams:_t,upgradeOrg:r,isOrgLimit:_})},zt=sn=>()=>sn&&sn(_t),Dt={...Z,onConfirm:zt(xe),onOrgSwitchToTrial:zt(se),onSoloSwitchToTrial:zt(ie),onManageShare:zt(he),onRemoveMember:zt(N),onUpgrade:Ct,onMore:gt};return(0,o.jsx)(Ld,{...e,planList:Ne,interestList:pt,isCanGetCoupon:!!(c||d),limitDesc:s,actions:Dt})},g1=e=>{let{selectedOrg:t,currentUser:n,orgList:r,isMockitt:s,locale:c,couponList:d}=e;const{isOrgCanSwitchTrial:p}=Wl({isOrgLimit:!0,orgParams:{currentUser:n,currentOrg:t,orgs:r},projectType:ai.ch.bomx}),{isOrgCanGetCoupon:g}=Ll({isMockitt:s,coupons:d}),{orgPlan:y,orgPlanType:w,orgPlanName:_,isOrgFull:j}=(0,ai.VP)(c,t),N=b0.tz.InitialOrg(t),{plan:Z}=N.planSdk.aiPptPlan;let se=Z===Pc.Sj.OrgFree?Pl.TH.LimitationNotice.bomx_free_plan[c]:Pl.TH.LimitationNotice.bomx_org_lite_plan[c];return j&&(se=Pl.TH.LimitationNotice.bomx_org_full_plan[c]),{isOrgCanSwitchTrial:p,isOrgCanGetCoupon:g,pplSdk:N,orgPlan:y,orgPlanType:w,orgPlanName:_,isOrgFull:j,planName:se}},ip=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,selectedOrg:d,orgList:p,couponList:g}=e,{cid:y}=d,w=y===c.cid,{isOrgCanGetCoupon:_,isOrgCanSwitchTrial:j,pplSdk:N,orgPlan:Z,orgPlanType:Q,orgPlanName:se,isOrgFull:ie,planName:he}=g1({selectedOrg:d,currentUser:s,orgList:p,isMockitt:r,locale:n,couponList:g}),xe=N.limitationSdk.pptLimit.getMaxProjectCount(),{type:Se,name:_e}=js({plan:Z,locale:n}),De=w?Ga.T.LimitationNotice.limit_current_is[n]:Ga.T.LimitationNotice.limit_target_space_is[n],Je=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",De).replace("{product}","AIPPT").replace("{plan}",Se),Ne=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",De).replace("{plan}",_e).replace("{maxCount}",xe).replace("{product}","AIPPT");return(0,o.jsx)(Bc,{title:Je,desc:Ne,currentPlan:Z,planName:se,planType:Q,isOrgLimit:!0,showConfirmBtn:ie,showOrgTrialBtn:j,isOrgCanGetCoupon:_,showPreviewBtn:!j,...e})},v2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,couponList:d}=e,p=c&&c.cid&&c.otype!=="personal",{isSoloCanGetCoupon:g}=Ll({isMockitt:r,coupons:d}),{isSoloCanSwitchTrial:y,userPlan:w,userPlanType:_,userPlanName:j,pplSdk:N}=qc({locale:n,currentOrg:c,type:ai.ch.aiPpt}),Z=N.limitationSdk.pptLimit.getMaxProjectCount(),{type:Q,name:se}=js({plan:w,locale:n}),ie=p?Ga.T.LimitationNotice.limit_target_space_is[n]:Ga.T.LimitationNotice.limit_current_is[n],he=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",ie).replace("{plan}",Q).replace("{product}","AIPPT"),xe=Ga.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",ie).replace("{plan}",se).replace("{maxCount}",Z).replace("{product}","AIPPT");return(0,o.jsx)(Bc,{title:he,desc:xe,currentPlan:w,planName:j,planType:_,isOrgLimit:!1,isSoloCanGetCoupon:g,showSoloTrialBtn:y,showPreviewBtn:!y,...e})},y1=e=>{const{from:t,locale:n,currentUser:r,currentOrg:s,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:g,userPlanName:y}=qc({locale:n,currentOrg:s,type:ai.ch.proto}),{maxWidgetCount:w}=(0,ai.xR)(t,r,void 0),{type:_,name:j}=js({plan:p,locale:n}),N=Ga.T.LimitationNotice.v8_max_widget_limit_title[n].replace("{plan}",_),Z=Ga.T.LimitationNotice.v8_max_widget_limit_desc[n].replace("{maxCount}",w).replace("{plan}",j);return(0,o.jsx)(Jl,{title:N,desc:Z,currentPlan:p,planName:y,planType:g,isOrgLimit:!1,showSoloTrialBtn:d,...e})},sp=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:g}=e,{isOrgCanSwitchTrial:y}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:w}=Ll({isMockitt:r,coupons:p}),{orgPlan:_,orgPlanType:j,orgPlanName:N}=(0,ai.tv)(n,c,s),{maxWidgetCount:Z}=(0,ai.xR)(t,s,c),{type:Q,name:se}=js({plan:_,locale:n}),ie=Ga.T.LimitationNotice.v8_max_widget_limit_title[n].replace("{plan}",Q),he=Ga.T.LimitationNotice.v8_max_widget_limit_desc[n].replace("{maxCount}",Z).replace("{plan}",se);return(0,o.jsx)(Jl,{title:ie,desc:he,currentPlan:_,planName:N,planType:j,isOrgLimit:!0,showOrgTrialBtn:y,isOrgCanGetCoupon:w,...e})},x2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:g}=e,{isOrgCanSwitchTrial:y}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:w}=Ll({isMockitt:r,coupons:p}),{orgPlan:_,orgPlanType:j,orgPlanName:N}=(0,ai.tv)(n,c,s),{maxV8ScreenCount:Z}=(0,ai.xR)(t,s,c),{type:Q,name:se}=js({plan:_,locale:n}),ie=Ga.T.LimitationNotice.v8_max_canvas_limit_title[n].replace("{plan}",Q),he=Ga.T.LimitationNotice.v8_max_canvas_limit_desc[n].replace("{maxCount}",Z).replace("{plan}",se);return(0,o.jsx)(Jl,{title:ie,desc:he,currentPlan:_,planName:N,planType:j,isOrgLimit:!0,showOrgTrialBtn:y,isOrgCanGetCoupon:w,...e})},Zp=e=>{const{from:t,locale:n,currentUser:r,currentOrg:s,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:g,userPlanName:y}=qc({locale:n,currentOrg:s,type:ai.ch.proto}),{maxV8ScreenCount:w}=(0,ai.xR)(t,r,void 0),{type:_,name:j}=js({plan:p,locale:n}),N=Ga.T.LimitationNotice.v8_max_canvas_limit_title[n].replace("{plan}",_),Z=Ga.T.LimitationNotice.v8_max_canvas_limit_desc[n].replace("{maxCount}",w).replace("{plan}",j);return(0,o.jsx)(Jl,{title:N,desc:Z,currentPlan:p,planName:y,planType:g,isOrgLimit:!1,showSoloTrialBtn:d,...e})},lp=e=>{const{from:t,locale:n,currentOrg:r,currentUser:s}=e,c=!!(r&&r.cid&&r.otype!=="personal"),{currentPlan:d,planName:p,planType:g}=(0,ai.T2)(c,n,r,s),{type:y,name:w}=js({plan:d,locale:n}),_=Ga.T.LimitationNotice.flow_max_page_limit_title[n].replace("{plan}",y),j=Ga.T.LimitationNotice.flow_max_page_limit_desc[n].replace("{maxCount}",3).replace("{plan}",w);return(0,o.jsx)(Jl,{title:_,desc:j,currentPlan:d,planName:p,planType:g,isOrgLimit:c,...e})},cp=e=>{const{from:t,locale:n,currentOrg:r,currentUser:s}=e,c=!!(r&&r.cid&&r.otype!=="personal"),{currentPlan:d,planName:p,planType:g}=(0,ai.T2)(c,n,r,s),{type:y,name:w}=js({plan:d,locale:n}),_=Ga.T.LimitationNotice.mind_max_page_limit_title[n].replace("{plan}",y),j=Ga.T.LimitationNotice.mind_max_page_limit_desc[n].replace("{maxCount}",3).replace("{plan}",w);return(0,o.jsx)(Jl,{title:_,desc:j,currentPlan:d,planName:p,planType:g,isOrgLimit:c,...e})},R1=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,selectedOrg:d,orgList:p,couponList:g}=e,{cid:y}=d,w=y===c.cid,{isOrgCanSwitchTrial:_}=Wl({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:d,orgs:p}}),{isOrgCanGetCoupon:j}=Ll({isMockitt:r,coupons:g}),{orgPlan:N,orgPlanType:Z,orgPlanName:Q,isOrgFull:se}=(0,ai.tv)(n,d),{maxProjectCount:ie}=(0,ai.xR)(t,s,d),{type:he,name:xe}=js({plan:N,locale:n}),Se=w?Ga.T.LimitationNotice.limit_current_is[n]:Ga.T.LimitationNotice.limit_target_space_is[n],_e=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",Se).replace("{product}","\u539F\u578B").replace("{plan}",he),De=Ga.T.LimitationNotice.flowchart_project_count_limit_desc[n].replace("{orgName}",Se).replace("{plan}",xe).replace("{maxCount}",ie).replace("{product}","\u539F\u578B");return(0,o.jsx)(Jl,{currentPlan:N,planName:Q,planType:Z,isOrgLimit:!0,showConfirmBtn:se,showOrgTrialBtn:_,isOrgCanGetCoupon:j,showPreviewBtn:!_,title:_e,desc:De,...e})},$2=e=>{const{from:t,locale:n,isMockitt:r,currentUser:s,currentOrg:c,couponList:d}=e,{isSoloCanGetCoupon:p}=Ll({isMockitt:r,coupons:d}),{isSoloCanSwitchTrial:g,userPlan:y,userPlanType:w,userPlanName:_}=qc({locale:n,currentOrg:c,type:ai.ch.proto}),{maxProjectCount:j}=(0,ai.xR)(t,s,void 0),{type:N,name:Z}=js({plan:y,locale:n}),Q=Ga.T.LimitationNotice.limit_current_is[n],se=Ga.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",Q).replace("{product}","\u539F\u578B").replace("{plan}",N),ie=Ga.T.LimitationNotice.flowchart_project_count_limit_desc[n].replace("{orgName}",Q).replace("{plan}",Z).replace("{maxCount}",j).replace("{product}","\u539F\u578B");return(0,o.jsx)(Jl,{currentPlan:y,planName:_,planType:w,isOrgLimit:!1,isSoloCanGetCoupon:p,showSoloTrialBtn:g,showPreviewBtn:!g,title:se,desc:ie,...e})},dp={[Oa.hC.MaxSharingCount]:p1,[Oa.hC.OrgMaxSpaceCount]:op,[Oa.hC.OrgMaxTemplateCount]:ap,[Oa.hC.OrgMaxVersionCount]:j1,[Oa.hC.ProjectHandoverNoPermission]:Gd,[Oa.hC.ProjectHandoverWhenDemotingNoPermission]:Gd,[Oa.hC.OrgMaxPicSize]:Zd,[Oa.hC.SoloMaxPicSize]:u1,[Oa.hC.OrgMaxPrototypePageCount]:h1,[Oa.hC.SoloMaxPrototypePageCount]:zp,[Oa.hC.OrgMaxPrototypeWidgetCount]:y1,[Oa.hC.SoloMaxPrototypeWidgetCount]:sp,[Oa.hC.SoloMaxProto2PageCount]:Zp,[Oa.hC.OrgMaxProto2PageCount]:x2,[Oa.hC.SoloMaxProto2CanvasCount]:D1,[Oa.hC.OrgMaxProto2CanvasCount]:J2,[Oa.hC.SoloMaxProto2WidgetCount]:y1,[Oa.hC.OrgMaxProto2WidgetCount]:sp,[Oa.hC.MaxFlowPageCount]:lp,[Oa.hC.MaxMindPageCount]:cp,[Oa.hC.OrgMaxProjectCount]:u0,[Oa.hC.SoloMaxProjectCount]:f2,[Oa.hC.ProjectVersionFromCount]:R0,[Oa.hC.ProjectVersionFromTime]:R0,[Oa.hC.BomxSoloMaxProjectCount]:q2,[Oa.hC.BomxOrgMaxProjectCount]:h0,[Oa.hC.BomxOrgMaxPicSize]:m1,[Oa.hC.BomxSoloMaxPicSize]:m0,[Oa.hC.BomxOrgMaxFileSize]:ac,[Oa.hC.BomxSoloMaxFileSize]:Xc,[Oa.hC.BomxOrgMaxProjectSize]:xc,[Oa.hC.BomxSoloMaxProjectSize]:g2,[Oa.hC.BomxOrgMaxVersionCount]:Gp,[Oa.hC.BomxSoloMaxVersionCount]:F0,[Oa.hC.BomxSoloMaxWidgetCount]:Rc,[Oa.hC.BomxOrgMaxWidgetCount]:f1,[Oa.hC.PPTOrgMaxProjectCount]:ip,[Oa.hC.PPTSoloMaxProjectCount]:v2,[Oa.hC.Flowchart2SoloMaxProjectCount]:$2,[Oa.hC.Flowchart2OrgMaxProjectCount]:R1};function pp(e){const{limitType:t}=e,n=dp[t];return!t||!n?null:(0,o.jsx)(n,{...e})}var Nl=i(47163),Nd=i(53008),ud=i(81717),e0=i(16615),Ds=i(27845),Xs=i(25306);const Kp=e=>{const t=Xs.tz.InitialUser(e).planSdk,n=t.prototypePlan.getUserPlan(),r=t.prototypePlan.getUserStatus();return r===Ds.pZ.Trial?"solo\u8BD5\u7528":r===Ds.pZ.Expired?"solo\u5230\u671F":n===Ds.L1.Solo?"solo\u6807\u51C6\u7248":n===Ds.L1.Lifetime||n===Ds.L1.PremiumLifetime?"solo\u7EC8\u8EAB\u7248":"solo\u514D\u8D39"},V0=e=>{const t=Xs.tz.InitialOrg(e).planSdk,n=t.getOrgCurrentMemberProtoLimitationPlan(),r=t.isLifetime,s=t.getOrgStatus();if(s===Ds._E.Trial)return"org\u8BD5\u7528";if(s===Ds._E.Expired)return"org\u5230\u671F";if(s===Ds._E.Paid){if(n===Ds.Sj.OrgLite)return r?"\u56E2\u961F\u7EC8\u8EAB":"\u56E2\u961F\u7248";if(n===Ds.Sj.OrgFull)return r?"\u4F01\u4E1A\u7EC8\u8EAB":"\u4F01\u4E1A\u7248"}return"org\u514D\u8D39"},z0=e=>{const t="TRACK_MARKET_AD_EXP-"+e;return(0,jt.kV)(t)?!0:((0,jt.cH)(t,"true"),!1)},b2=e=>{let{limitReason:t,currentEditMemberTaken:n}=e;(0,e0.ZI)("limit_popup",{limit_reason:t,source:"\u539F\u578B\u7F16\u8F91\u533A",current_edit_member:n,current_plan_product:MB.org?V0(MB.org):Kp(MB.user)})},f0=e=>{const{isOpen:t,type:n,currentUser:r,currentOrg:s,personalOrg:c,selectedOrg:d,screenCount:p,isCurrentProject:g=!0,widgetCreateLimit:y,project:w,isFromScreenList:_,onClose:j}=e,N=d||s,Z=Oa.FW.Proto,Q=()=>Gr.rk[n],se=(0,a.wA)(),ie=()=>j(),pt={onSoloSwitchToTrial:async gt=>{const Ct=await(0,np.Ue)();!Ct||!Ct.user||(MB.notice({text:I18N.dModals.got_personal_trial_success}),ie(),ud.Y4.limitPopupClick({objectClick:"\u9886\u53D62\u5929\u8BD5\u7528",...gt}),location.reload())},onOrgSwitchToTrial:async gt=>{const Ct=await(0,ad.Iw)(N.cid);!Ct||!Ct.org||(MB.notice({text:I18N.dModals.get_7_days_business_trial_success}),ie(),ud.Y4.limitPopupClick({objectClick:"\u9886\u53D67\u5929\u8BD5\u7528",...gt}),location.reload())},onUpgrade:async gt=>{let{isSoloCanGetCoupon:Ct=!1,isOrgCanGetCoupon:zt=!1,limitTrackParams:Dt,upgradeOrg:sn=!1,isOrgLimit:Rn=!0}=gt;Ct&&(0,ad.Go)("sole_free_upgrade_paid"),zt&&(0,ad.Go)("org_free_upgrade_paid");const On=Ct||zt,Lo=Gr.H4[n],Yo=Rn?N:null;n===Oa.hC.OrgMaxPicSize&&!Yo&&(sn=!0);const Cn=(0,ai.l0)({org:Yo,paymentTrackParams:Lo,checkoutArea:Z,upgradeOrg:sn});MB.global.popupHelper.chargeAsync({...Cn,fromType:n}),ie(),n===Oa.hC.MaxSharingCount&&(0,Nd.kv)({action:"\u5347\u7EA7\u7248\u672C",linkName:"\u65E0",project:w,isFromScreenList:_}),ud.Y4.limitPopupClick({objectClick:On?"\u9886\u5238\u5347\u7EA7":I18N.dModals.upgrade,...Dt})},onConfirm:gt=>{ie(),ud.Y4.limitPopupClick({objectClick:"\u6211\u77E5\u9053\u4E86",...gt})},onManageShare:gt=>{se({type:"toolbar:sharingManager:open"}),ie(),ud.Y4.limitPopupClick({objectClick:I18N.dModals.limit_manage_pages,...gt})},onClose:ie,onLimitNewTrack:gt=>b2(gt),onMoreTrack:gt=>ud.Y4.limitPopupClick({objectClick:"\u4E86\u89E3\u66F4\u591A\u6743\u76CA",...gt})},_t=s||c||{...r,otype:"personal"};return(0,o.jsxs)(Vp,{isOpen:t,className:"right-and-interests",onClose:ie,title:null,footer:null,canClose:!1,children:[(0,o.jsx)(pp,{from:Z,locale:(0,Nl.w)(),isMockitt:ENV.IS_MO,limitType:n,currentUser:r,currentOrg:_t,selectedOrg:N||_t,screenCount:p,isCurrentProject:g,widgetCreateLimit:y,actions:pt,getlimitReason:Q}),(0,o.jsx)(m2,{})]})},W0="400-659-9879",v1="\u987E\u95EE\u5DE5\u4F5C\u65F6\u95F4\uFF1A\u5468\u4E00\u81F3\u5468\u4E94 9:00-18:00",eu=(0,E.Ay)(Ei.H).withConfig({displayName:"style__StyledOrgBeyondRights",componentId:"sc-mssgl6-0"})(["&.apps-count-over{.content{min-height:152px;font-size:14px;color:#1f292e;line-height:22px;background-color:",";.modal-content{display:flex;flex:1;flex-direction:column;align-items:stretch;overflow:hidden;position:relative;p{margin:0 0 5px;font-size:14px;line-height:22px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;color:",";.strong{font-weight:600;}.tip{color:",";}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),Ou=e=>{let{isOpen:t,beyondType:n,...r}=e;const s=(0,a.wA)(),c=()=>{s({type:"toolbar:sharingManager:open"}),r.onClose()};return(0,o.jsx)(eu,{isOpen:t,canCloseOnClickMask:!0,onClose:r.onClose,className:"apps-count-over",title:n==="MaxSharingCount"?I18N.dModals.limit_sharing_count:I18N.dModals.limit_business_plan_over_limit_tips,cancelText:I18N.dModals.limit_manage_sharing,onCancel:n==="MaxSharingCount"?c:null,confirmText:n==="MaxSharingCount"?I18N.dModals.limit_i_got_it:I18N.Common.confirm,confirmBtnProps:{type:"danger"},onConfirm:r.onClose,children:(0,o.jsxs)("div",{className:"modal-content",children:[(0,o.jsxs)("p",{children:[I18N.dModals.limit_current_is,(0,o.jsx)("span",{className:"strong",children:I18N.Common.business_plan})]}),n==="versionNumber"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_file_version_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+W0+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),n==="picSize"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_image_size_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+W0+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),n==="MaxSharingCount"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_share_count_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+W0+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),!ENV.IS_MO&&(0,o.jsx)("p",{children:(0,o.jsx)("span",{className:"tip",children:v1})})]})})};var t0=i(11032);const B1=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledResourcePurchaseModal",componentId:"sc-ay5kax-0"})(["&.resource-purchase{height:480px;overflow:hidden;box-shadow:none;border-radius:8px;background:#fff;border:0;}iframe{width:100%;height:100%;border:0;}"]);var hd=i(5209);class U1 extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleMessage",async t=>{if(typeof t.data!="string")return;const{onClose:n,dispatch:r,resources:{cid:s,title:c,category:d,is_star:p},paidCallback:g}=this.props;if(t.data==="close")n();else if(t.data==="paid")n(),g&&g(),r({type:"modal:update:state",payload:{resourcesPaidSuccessModal:{isOpen:!0,cid:s,category:d}}}),p||await(0,t0.lU)(p,s,!1);else if(t.data==="goMatBuy"){const{payEntrance:y,checkoutPlace:w}=(0,t0.FS)(d),_={mode:"mat",payEntrance:y,checkoutArea:"proto",checkoutPlace:w,templateCid:s,templateName:c,templateCategory:d};MB.global.popupHelper.chargeAsync(_),n()}else t.data==="error"&&console.error("\u652F\u4ED8\u53D1\u751F\u9519\u8BEF")})}componentDidMount(){window.addEventListener("message",this.handleMessage);const{cid:t,title:n,category:r}=this.props.resources;(0,hd.kH)("scvip_pay_confirm",{source:"v8\u7F16\u8F91\u533A\u7D20\u6750\u9762\u677F",template_name:n,template_cid:t,template_category:r})}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){var t;const{isOpen:n,resources:r,isFooter:s,onClose:c}=this.props;if(!r)return null;const{cid:d,amount:p,discount:g,policy:y,title:w,cover:_}=r,j={isOrg:!!((t=MB)!=null&&t.currentOrg),amount:p,discount:g,policy:y,templateCid:d,templateTitle:w,templateImageUrl:_,projectType:"prototype",from:"\u5DE5\u4F5C\u533A",checkoutArea:"proto",checkoutPlace:s?"panel_single_pay":"use_vip_mkt_popup_single_pay"};return(0,o.jsx)(B1,{isOpen:n,onClose:c,title:null,width:716,footer:null,centered:!0,className:m()("resource-purchase"),modalRender:()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("iframe",{src:"/embed/community_payment_modal?param="+(0,j0._)(j)})})})}}(0,O.A)(U1,"defaultProps",{isFooter:!1});var Lc=i(3862);const H0=(0,E.Ay)(Ei.H).withConfig({displayName:"styled__StyledResourcesPaidSuccessModal",componentId:"sc-bgkjh8-0"})([".content{padding:20px;.container{img{width:360px;margin-top:16px;border-radius:8px;overflow:hidden;}}}"]);class G0 extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleUsed",()=>{const{cid:t,category:n,onClose:r,dispatch:s}=this.props;r(),s({type:"entry:resources:paid:success:goto:starred",payload:{cid:t,category:n}})})}render(){const{isOpen:t,category:n,onClose:r}=this.props,s=n===Lc.t_?"\u7EC4\u4EF6-\u6211\u7684-\u6536\u85CF":n===Lc.Gd?"\u6A21\u677F-\u6211\u7684-\u6536\u85CF":"\u56FE\u6807-\u6536\u85CF";return(0,o.jsx)(H0,{isOpen:t,onClose:r,canCloseOnEsc:!1,canCloseOnClickMask:!1,title:"\u652F\u4ED8\u6210\u529F",width:400,onConfirm:this.handleUsed,confirmText:"\u7ACB\u5373\u4F7F\u7528",onCancel:r,cancelText:"\u7EE7\u7EED\u6D4F\u89C8",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("span",{className:"desc",children:["\u53EF\u70B9\u51FB\u201C\u7ACB\u5373\u4F7F\u7528\u201D\u4FDD\u5B58\u540E\uFF0C\u524D\u5F80",(0,o.jsx)("b",{children:'"'+s+'"'}),"\u67E5\u770B"]}),(0,o.jsx)("img",{src:"/mb-proto2/images/guide/paidSuccess/"+n+"_202509.png"})]})})}}var up=i(46998),tl=i(60589),F1=i(97109);const tu=(0,l.memo)(e=>{let{isOpen:t,activePageKey:n,activeWidgetKey:r,...s}=e;const[c,d]=(0,l.useState)(n),p=(0,a.d4)(Oe.p$),g=(0,a.d4)(Ge.UV),y=(0,a.d4)(tl.vv),w=(0,a.d4)(Ys.n),_=(0,l.useMemo)(()=>({left:w+30,top:78}),[w]),j=(0,a.wA)();(0,l.useEffect)(()=>{if(t&&p!=null&&p.length&&!r){const Z=p.some(se=>sdkStore.locUpRBPageKey(se)===c);let Q=c;Z||p.find(se=>{const ie=sdkStore.locUpRBPageKey(se);return ie?(Q=ie,!0):!1}),d(Q)}},[t,p]),(0,l.useEffect)(()=>{let Z;return t&&(Z=g.addSdkStoreChangeListener(Q=>{let{isRemote:se}=Q;if(se&&(r&&g.isTrashed(r)||n&&g.isTrashed(n))){j({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}});return}})),()=>{var Q;(Q=Z)==null||Q()}},[t,g,n,r]);const N=Z=>{let{activePageKey:Q}=Z;d(Q)};return t&&(0,o.jsx)(nu,{activePageKey:c,activeWidgetKey:r,isDragOrResizeModal:y,dispatch:j,position:_,...s,onActiveRunner:N})});class nu extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleMove",(g,y)=>{this.setState({left:g,top:y})}),(0,O.A)(this,"handleWheel",g=>g.preventDefault()),(0,O.A)(this,"handleResize",(g,y,w)=>{(0,Ls.qd)(g,w,(_,j)=>{var N;this.setState(_);const{width:Z,height:Q}=_;!((N=MB)==null||(N=N.webpackInterface)==null)&&N.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:Z,height:Q-Ls.lp}}})})}),(0,O.A)(this,"handleUpdateDragOrResizeModal",g=>{var y,w;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:g}}),(y=MB)!=null&&y.runnerController&&((w=MB)==null||(w=w.runnerController)==null||w.setIsPreventEvent(g))}),this.$portalElem=(0,Ls.ke)();const{PreviewApp:n,runnerController:r,messageBucket:s,webpackInterface:c}=(0,Kc._)(F1.A);t.activeWidgetKey||(MB.previewModalActiveRunner=g=>t.onActiveRunner(g)),this.popGlobalPreviewRelated=zs.A.tryStashGlobalPreviewRelated({runnerController:r,messageBucket:s,webpackInterface:c}),this.PreviewApp=n;let d=Ls.CW,p=Ls.tP+Ls.lp;if(t.activeWidgetKey){const g=t.width,y=t.height,{width:w,height:_}=(0,Ls.Xw)({width:g,height:y},{width:g,height:y});d=w,p=_+Ls.lp}this.state={left:t.position.left,top:t.position.top,width:d,height:p}}componentDidMount(){var t;!((t=MB)==null||(t=t.webpackInterface)==null)&&t.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,r){var s;(s=MB)!=null&&(s=s.webpackInterface)!=null&&s.store&&(t.activePageKey!==this.props.activePageKey?(MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:null}}),MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"})):t.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:r,currentProjectMeta:s,activePageKey:c,activeWidgetKey:d,isDragOrResizeModal:p,onClose:g}=this.props,{left:y,top:w,width:_,height:j}=this.state,{PreviewApp:N}=this;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,ds.createPortal)((0,o.jsxs)(ul,{children:[(0,o.jsx)(dr.A,{position:{left:y,top:w},dragContainer:Ls.er.ComboModal,container:"#workspace .main-content",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(Oc,{id:Ls.er.ComboModal,style:{width:_,height:j},className:"preview-modal-portal-root is-focus-panel",children:[(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(N,{store:MB.webpackInterface.store,previewMode:"preview",isPreviewCombo:!0,projectAlike:r,projectMeta:s,activePageKey:c,activeWidgetKey:d,quickPreviewSize:{width:_,height:j-Ls.lp},onCloseModal:g})}),p&&(0,o.jsx)("div",{className:"mask"})]})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:w,left:y,width:_,height:j,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const ou=tu;var cc=i(98033);const au=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledUpgradeComboModal",componentId:"sc-1pw1s9x-0"})(["width:480px;.content{padding:10px 0 24px;.modal-content{padding:0;min-height:36px;.combo-list{height:300px;overflow-y:overlay;li{display:flex;align-items:center;height:40px;margin-bottom:4px;padding:0 20px;position:relative;&.checked{background:",";}.folder-icon{width:22px;margin:0 7px;path:first-child{fill:transparent;stroke:",";}path:last-child{fill:",";stroke:",";}}label{font-weight:400;font-size:14px;color:",";}}}}}footer{.all-checked{display:flex;align-items:center;flex:1;position:relative;&.checked{#all-checked{opacity:1;}}.all-checked-desc{font-weight:500;font-size:14px;color:",";margin-left:6px;}}}li{list-style:none;}"],e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1);class w2 extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleSelectCombo",(n,r)=>{n.preventDefault(),n.stopPropagation();const{upgradeComboGroupList:s}=this.props,{selectedComboList:c}=this.state;c.includes(r)?c.splice(c.indexOf(r),1):c.push(r),this.setState({selectedComboList:JSON.parse(JSON.stringify(c)),isSelectAll:c.length===s.length})}),(0,O.A)(this,"handleConfirm",async()=>{const{comboGroupList:n,currentComboPanel:r,userFcg:s,orgFcg:c,userId:d,onClose:p}=this.props,{selectedComboList:g}=this.state;if(g.length===0)return;this.setState({startExporting:!0,exportLoading:!0}),MB.notice({text:"\u5BFC\u5165\u4E2D...",type:"loading"});let y=r;r==="user"&&((0,cc.Z)()?y="org":y="user");for(const w of g)await(0,Go.G8)({currentComboPanel:y,projectMetaCid:w});if(r==="user"){const w=await(0,ir.i_)({...s,userId:d,isAllowDat:!0});w&&(Object.assign(globalThis,{userSdk:w,userSdkStore:w.sdkStore}),MB.action("entry:load:user:combo:group:list"),MB.action("entry:refresh:user-combo-group:add:migrate",{oldUserComboGroups:n}))}else if(r==="org"){const w=(0,ir.Bk)(),_=await(0,ir.i_)({...c,userId:d,isAllowDat:w});_&&(Object.assign(globalThis,{orgSdk:_,orgSdkStore:_.sdkStore}),MB.action("entry:load:org:combo:group:list"),MB.action("entry:refresh:org-combo-group:add:migrate",{oldOrgComboGroups:n}))}MB.notice({text:"\u5BFC\u5165\u6210\u529F",type:"success"})}),(0,O.A)(this,"handleAllChecked",n=>{n.preventDefault(),n.stopPropagation();const{upgradeComboGroupList:r}=this.props,{isSelectAll:s}=this.state,c=[];s||r.forEach(d=>c.push(d.project_meta_cid)),this.setState({selectedComboList:c,isSelectAll:!s})}),this.state={selectedComboList:[],startExporting:!1,exportLoading:!1,exportSuccess:!1,exportFail:!1,isSelectAll:!1}}render(){const{isOpen:t,upgradeComboGroupList:n,currentComboPanel:r,onClose:s}=this.props,{selectedComboList:c,isSelectAll:d}=this.state,p=r==="org",g=(0,o.jsxs)("div",{className:m()("all-checked",{checked:d}),onClick:y=>this.handleAllChecked(y),children:[(0,o.jsx)(Gn.A,{className:"combo-all-checked",isChecked:d}),(0,o.jsx)("span",{className:"all-checked-desc",children:"\u5168\u9009"})]});return(0,o.jsx)(au,{className:"upgradeMyCombo top-modal",isOpen:t,onClose:s,canCloseOnClickMask:!0,canClose:!0,mask:!1,title:"\u8BF7\u9009\u62E9\u65E7\u7248"+(p?"\u4F01\u4E1A":"\u6211\u7684")+"\u7EC4\u4EF6",onCancel:s,cancelText:"\u53D6\u6D88",confirmText:"\u5BFC\u5165",confrmBtnProps:{callOnClose:!1},onConfirm:this.handleConfirm,isConfirmDisabled:c.length===0,renderFooterSide:()=>g,children:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"combo-list",children:n.map(y=>{let{cid:w,name:_,project_meta_cid:j}=y;const N=c.includes(j);return(0,o.jsxs)("li",{className:m()("item",{checked:N}),onClick:Z=>this.handleSelectCombo(Z,j),children:[(0,o.jsx)(Gn.A,{isChecked:N}),(0,o.jsx)(Et.C,{className:"folder-icon",name:"left_panel/group_close"}),(0,o.jsx)("span",{children:_})]},j)})})})})}}const hp=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledChargeModal",componentId:"sc-b2ioui-0"})(["padding:0;height:600px;width:900px;display:flex;background-color:transparent;&.workspace-modal{border-radius:18px;}iframe{background:#ffffff;}.charge-container{width:100%;height:100%;border:none;border-radius:18px;}.payment-close{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;}"]);class mp extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{isChargePaymentSuccess:!1}),(0,O.A)(this,"handleMessage",t=>{try{const{msg:n,value:r}=JSON.parse(t.data);n==="closeChargeModal"?(this.props.onClose(),r&&(location.href=r)):n==="chargePaymentSuccess"&&this.setState({isChargePaymentSuccess:!0})}catch(n){}}),(0,O.A)(this,"handleClose",()=>{const{mode:t,onClose:n}=this.props;ud.Y4.PaymentMode.popupClick({popupName:"\u652F\u4ED8\u5F39\u7A97",isFirstExp:"\u672A\u77E5",url:location.href,buttonName:"\u5173\u95ED"}),t==="org"?ud.Y4.PaymentMode.orgClickMask():t==="solo"&&ud.Y4.PaymentMode.soloClickMask(),n(),this.state.isChargePaymentSuccess&&location.reload(),(0,od.iX)()})}componentDidMount(){window.addEventListener("message",this.handleMessage)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{src:t,isOpen:n}=this.props;return(0,o.jsx)(hp,{isOpen:n,canClose:!0,onClose:this.props.onClose,width:900,title:null,footer:null,centered:!0,modalRender:()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("iframe",{className:"charge-container",src:""+t+(0,Ql.O5)(!0)})})})}}const V1=mp;var n0=i(29158),Yp=i(41011);const fp="C@main",gp=function(e){e===void 0&&(e=CLOCK_MIN);const t=createInitialFlatTree(e);return addFlatItemMutate(t,createFlatItem(fp,{ctime:packU8V(Date.now())},KEY_MAIN,[],e)),t};var Kd=i(50353);const Xp=e=>{const t=[],{type:n,widget:r,children:s}=e;return n===WidgetType.WWrap?s.forEach(c=>t.push(...Xp(c))):t.push(r),t},Qp=e=>{const t=[],{type:n,widget:r,children:s}=e;return t.push(r),n===WidgetType.WWrap&&s.forEach(c=>t.push(...Qp(c))),t},S2=e=>{const t=[];return e!=null&&e.widget.isLock||(t.push(e==null?void 0:e.widget),(e==null?void 0:e.type)===WidgetType.WWrap&&(e==null||e.children.forEach(n=>t.push(...S2(n))))),t},ru=e=>{const t=[];return e.parent&&(t.push(e.parent),t.push(...ru(e.parent))),t},iu=(e,t)=>{if(t){const n=new RegExp(escapeRegex(t),"i");return e.map(r=>z1(r,s=>n.test(getLayerItemDisplayName(s)))).filter(r=>r)}else return e},z1=(e,t)=>{const{widget:n,children:r,type:s}=e,c=n?t(n):!0,d=[NodeType.panel,WidgetType.WMind].includes(s)?[]:r.map(p=>z1(p,t)).filter(p=>p);if(c||d.length){const p=e.dup();return p.children=d,p}return null},md=()=>{const e=new Map,t=n=>{if(e.has(n))return e.get(n);if(rootSdk.sdkStore.isTrashed(n))return e.set(n,!0),!0;if(rootSdk.sdkStore.locTopRBActiveKey(n)===mr.W4){const r=rootSdk.sdkStore._calcIntActConnMapCached();return t(Array.from(r.refPageToBasket[rootSdk.sdkStore.locUpRBPageKey(n)]||[])[0]||"")}return e.set(n,!1),!1};return t},rd=E.Ay.div.withConfig({displayName:"styles__StyledProjectSummaryField",componentId:"sc-1hb2nhn-0"})(["display:flex;align-items:center;height:32px;background-color:",";border-radius:6px;span{overflow:clip visible;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:12px;font-weight:400;&.field-title{color:",";}&:field-content{color:",";}}.general &{flex:0 0 230px;padding-left:10px;span{&.field-title{margin-right:14px;}&.field-content{&.creator-name{max-width:130px;}&.creator-avatar{display:flex;margin-right:6px;max-width:148px;.creator-avatar-placeholder{width:24px;height:24px;border-radius:50%;border:1px solid ",";color:#fff;font-size:14px;line-height:22px;text-align:center;background-color:#1684fc;}img{width:24px;height:24px;border-radius:50%;border:1px solid ",";}}}}}.statistic &{gap:6px;flex:0 0 150px;padding-left:10px;padding-right:10px;span{&.field-title{flex:0 0 74px;&:lang(en){flex-basis:100px;}}&.field-content{max-width:50px;}}}.engagement &{flex:0 0 150px;flex-direction:column;justify-content:top;row-gap:10px;height:100px;padding-top:28px;span{&.field-content{font-size:18px;font-weight:500;max-width:128px;&.cmt-resolved-count{font-size:10px;color:#23B571;display:flex;align-items:center;svg{flex:1 0 10px;margin-right:4px;}}}}}"],e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_02),Jp=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledProjectSummaryModal",componentId:"sc-1hb2nhn-1"})(["display:flex;flex-direction:column;z-index:200;background-color:",";border:1px solid ",";box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);font-size:16px;line-height:24px;color:",";.content{padding:0 20px 24px;}.modal-content{.summary-ctgy{display:flex;flex-direction:column;padding-top:24px;line-height:12px;font-size:12px;.summary-ctgy-title{font-weight:500;margin-bottom:12px;}.summary-ctgy-content{display:flex;flex-wrap:wrap;flex-direction:row;gap:12px;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),A2=e=>{let{onClose:t}=e;const[n,r]=(0,l.useState)({creatorName:"",creatorAvatarSrc:"",projCreatedAt:"",collaboratorWithEditAccessCount:0,collaboratorWithReadOnlyAccessCount:0});(0,l.useEffect)(()=>{(0,Go.wZ)(MB.getRootProject().cid).then(xe=>{const{owner_name:Se,owner_avatar:_e,created_at:De,members_count:{can_edit:Je,only_preview:Ne}}=xe;r({creatorName:Se,creatorAvatarSrc:_e,projCreatedAt:Pn(De).format("YYYY/MM/DD HH:mm"),collaboratorWithEditAccessCount:Je,collaboratorWithReadOnlyAccessCount:Ne})})},[]);const s=md(),{creatorName:c,creatorAvatarSrc:d,projCreatedAt:p,collaboratorWithEditAccessCount:g,collaboratorWithReadOnlyAccessCount:y}=n,w=rootSdk.sdkStore.findAllTypeUnder(mr.$k,"rResBunch").filter(xe=>xe.hotAttr.bunch==="rbPage"&&!xe.hotAttr.asFolder).length,_=rootSdk.sdkStore.findAllTypeUnder(mr.$k,"rResCanvas").filter(xe=>!xe.hotAttr.asOverlay).length,j=(0,Zi.UU)({isKeepInnerSkip:!1}),N=rootSdk.sdkStore.getHotItem(mr.fW).sub.length,Z=rootSdk.sdkStore.getHotItem(mr.W4).sub.filter(xe=>!s(xe)).length,Q=rootSdk.sdkStore.findAllTypeUnder(n0.gT,"wSticky").filter(xe=>!s(xe.key)).length+rootSdk.sdkStore.findAllTypeUnder(n0.gT,"wTear").filter(xe=>!s(xe.key)).length,se=rootSdk.cmtStore.getHotItem(fp).sub.reduce((xe,Se)=>s(Se)?xe:xe.concat(rootSdk.cmtStore.getSubHotItemList(Se)),[]),ie=se.length,he=se.filter(xe=>xe.hotAttr.isCompleted).length;return(0,o.jsx)(Jp,{isOpen:!0,width:520,onClose:t,canCloseOnClickMask:!0,title:I18N.ProjectSummaryModal.title,footer:null,children:(0,o.jsxs)("div",{className:"modal-content",children:[(0,o.jsxs)("div",{className:"summary-ctgy general",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.creation_info}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.Common.creator}),(0,o.jsx)("span",{className:"field-content creator-avatar",children:d.includes("/images/avatar.png")||!d?(0,o.jsx)("div",{className:"creator-avatar-placeholder",children:c.slice(0,1).toUpperCase()}):(0,o.jsx)("img",{src:d,alt:c})}),(0,o.jsx)("span",{className:"field-content creator-name",children:c})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.Common.created_at}),(0,o.jsx)("span",{className:"field-content",children:p})]})]})]}),(0,o.jsxs)("div",{className:"summary-ctgy statistic",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.quantitative_statistics}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.page}),(0,o.jsx)("span",{className:"field-content",children:w})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.screens}),(0,o.jsx)("span",{className:"field-content",children:_})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.widgets}),(0,o.jsx)("span",{className:"field-content",children:j})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.master}),(0,o.jsx)("span",{className:"field-content",children:N})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.dynamic_widget}),(0,o.jsx)("span",{className:"field-content",children:Z})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.w.wSticky}),(0,o.jsx)("span",{className:"field-content",children:Q})]})]})]}),(0,o.jsxs)("div",{className:"summary-ctgy engagement",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.collaboration_info}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.editor}),(0,o.jsx)("span",{className:"field-content",children:g})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.viewer}),(0,o.jsx)("span",{className:"field-content",children:y})]}),(0,o.jsxs)(rd,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.total_comments}),(0,o.jsx)("span",{className:"field-content cmt-count",children:ie}),(0,o.jsxs)("span",{className:"field-content cmt-resolved-count",children:[(0,o.jsx)(Et.C,{name:"toolbar/saveSuccess",className:"saveSuccess"}),(0,o.jsx)("span",{children:I18N.ProjectSummaryModal.completed_number.replace(/{cmtResolvedCount}/,he)})]})]})]})]})]})})};var W1=i(83557);const Ru=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledFlpakSizeWarnModal",componentId:"sc-ia291u-0"})(["&.flpak-size-warn-modal{width:480px;height:368px;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);&:lang(en){height:max-content;}.content{display:flex;flex-direction:column;justify-content:space-between;height:262px;padding:24px 20px;&:lang(en){height:max-content;}.prompt{position:relative;display:flex;align-items:center;padding:14px;width:440px;height:68px;border-radius:6px;background-color:",";color:",";font-size:14px;font-weight:500;&:lang(en){height:max-content;}img{position:absolute;right:0;width:142px;height:68px;pointer-events:none;&:lang(en){width:auto;height:100%;}}}.steps{margin-top:20px;p{color:",";font-size:14px;font-weight:400;}p:first-child{font-weight:500;margin-bottom:4px;}}.detail{margin-top:20px;color:",";font-size:12px;font-weight:400;line-height:18px;}}}"],e=>e.theme.color_info_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),su=(0,E.DU)([".ModalPortal{&:not(.is-open){.flpak-size-warn-modal{transform:scale(0.5) translate(10vw,-80vh)!important;}}}"]);var H1=i(9446);const lu=async()=>{MB.notice({type:"loading",text:""+I18N.FlpakSizeWarn.creating,duration:0}),setTimeout(async()=>{try{const t=rootSdk.fssDat.getFlatStore().getFlatTree().fork(),n=md(),r=rootSdk.sdkStore.getHotItem("B@ref-danli").sub.filter(w=>!n(w));t.set("B@ref-danli",{...t.get("B@ref-danli"),sub:r}),t.set("@@T",{...t.get("@@T"),sub:[]}),t.set("B@trash",{...t.get("B@trash"),sub:[]});const s=MB.__store__.getState(),c=(0,re.PL)(s),{cid:d}=(0,re.H7)(s),g={name:ENV.IS_MO?c.name+"'s Streamlined Copies":c.name+"\u7684\u7CBE\u7B80\u526F\u672C",device:c.device,model:c.model,width:c.width,height:c.height,attr:c.attr},{clientData:{upperCid:y}}=await(0,W1.Nc)(t,d,g);MB.notice({type:"success",text:""+I18N.FlpakSizeWarn.create_success,duration:2e3}),(0,Ql.JW)("/proto/design/"+y)}catch(e){const t=JSON.parse(e.message);let n=""+I18N.FlpakSizeWarn.create_fail;Number(e.status)===403&&t.errMsg==="P_COUNT_EXCEEDED"&&(n=""+I18N.FlpakSizeWarn.reched_limit),MB.notice({type:"error",text:n,duration:2e3})}},0)},cu=e=>{var t,n;const{isOpen:r,onClose:s}=e,c=()=>{s(),lu()};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(su,{}),(0,o.jsxs)(Ru,{isOpen:r,className:"flpak-size-warn-modal",title:I18N.FlpakSizeWarn.large_file_size,onConfirm:c,onClose:s,confirmText:I18N.FlpakSizeWarn.creating_streamlined_copies,canCloseOnClickMask:!1,canCancel:!1,children:[(0,o.jsxs)("div",{className:"prompt",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_prompt.replace(/{n}/,(t=H1.A.getFlpakSizeInfo())==null?void 0:t.currentSize)}),(0,o.jsx)("img",{src:"/mb-proto2/images/flpak_size_warn_modal_prompt_bg.png",alt:""})]}),(0,o.jsxs)("div",{className:"steps",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_title}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_1}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_2})]}),(0,o.jsxs)("div",{className:"detail",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_1}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_2.replace(/{n}/,(n=H1.A.getFlpakSizeInfo())==null?void 0:n.warnSize)})]})]})]})},yp=[{coverSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA.mp4",videoName:"\u4E86\u89E3\u539F\u578B\u7F16\u8F91\u533A",duration:137},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2.M4V",videoName:"\u753B\u5E03\u4E0E\u9875\u9762",duration:150},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82.M4V",videoName:"\u4E86\u89E3\u56FE\u5C42",duration:80},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6.M4V",videoName:"\u4F7F\u7528\u7EC4\u4EF6",duration:206},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90.M4V",videoName:"\u4F7F\u7528\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762\u7D20\u6750",duration:109},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF.M4V",videoName:"\u6DFB\u52A0\u6279\u6CE8\u548C\u8FDE\u63A5\u7EBF",duration:171},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6.M4V",videoName:"\u6DFB\u52A0\u4EA4\u4E92\u4E8B\u4EF6",duration:267},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B.M4V",videoName:"\u5206\u4EAB\u539F\u578B",duration:156},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6.M4V",videoName:"\u52A8\u6001\u7EC4\u4EF6",duration:197},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88.M4V",videoName:"\u4F7F\u7528\u6BCD\u7248",duration:187},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C.M4V",videoName:"\u539F\u578B\u534F\u4F5C",duration:119}],Yd=(0,E.Ay)(Il.A).withConfig({displayName:"styles__StyledNewbieVideoModal",componentId:"sc-29ogk7-0"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";p{font-size:16px;font-weight:500;color:",";span:first-child{margin-right:10px;}}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}.contant{width:100%;padding:20px;line-height:0;background:",";video{width:100%;aspect-ratio:55 / 31;border-radius:10px;border:1px solid ",";object-fit:fill;}}footer{cursor:move;width:100%;height:56px;display:flex;padding:0 20px;justify-content:flex-end;background:",";.next{margin-left:12px;}}"],e=>e.theme.ai_modal_border_style,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white),Z0=E.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoContainer",componentId:"sc-29ogk7-1"})([".single-resizer{border:0;z-index:106;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}"]);var Fl=i(25234);const jd=e=>(e-40)*31/55+146,fd=e=>(e-146)*55/31+40,vp=400,$p=1200,M2=800,K0=jd(vp),k2=jd($p),E2=jd(M2),x1=e=>{const{onClose:t,index:n,dispatch:r}=e,[s,c]=(0,l.useState)(n);(0,l.useEffect)(()=>{c(n),Ne(!1),_t(!1)},[n]);const d=yp.length,{videoName:p,videoSrc:g}=yp[s],y=(0,l.useMemo)(()=>s===0,[s]),w=(0,l.useMemo)(()=>s===d-1,[s,d]),_=(0,l.useCallback)(()=>{w||(c(s+1),Ne(!1),_t(!1))},[w,s]),j=(0,l.useCallback)(()=>{y||(c(s-1),Ne(!1),_t(!1))},[y,s]),[N,Z]=(0,l.useState)((window.innerWidth-M2)/2),[Q,se]=(0,l.useState)((window.innerHeight-E2)/2),ie=(Dt,sn)=>{Z(Dt),se(sn)};function he(Dt,sn,Rn){const{top:On,left:Lo,width:Yo,height:Cn}=Dt;Yo<vp||Yo>$p||Cn<K0||Cn>k2||(Rn==="t"||Rn==="b"?(De(Cn),Se(fd(Cn))):Rn==="l"||Rn==="r"?(Se(Yo),De(jd(Yo))):(Se(Yo),De(Cn)),Z(Lo),se(On))}const[xe,Se]=(0,l.useState)(M2),[_e,De]=(0,l.useState)(E2),[Je,Ne]=(0,l.useState)(!1),[pt,_t]=(0,l.useState)(!1),gt=(0,l.useRef)(),Ct=()=>{Je||((0,ud.Fn)({video_name:p}),Ne(!0))},zt=Dt=>{r({type:"modal:update:state",payload:{isDragOrResizeModal:Dt}})};return(0,l.useEffect)(()=>{const Dt=setInterval(()=>{if(!gt.current||pt){clearInterval(Dt);return}const{duration:sn,currentTime:Rn}=gt.current;Rn/sn>.9&&(_t(!0),(0,ud.Wt)({video_name:p}),clearInterval(Dt))},1e3)},[pt]),(0,l.useEffect)(()=>()=>{zt(!1)},[]),(0,o.jsxs)(Z0,{children:[(0,o.jsx)(dr.A,{position:{left:N,top:Q},dragContainer:"newbie-video-modal",onMove:ie,onMoveStart:()=>zt(!0),onMoveEnd:()=>zt(!1),children:(0,o.jsxs)(Yd,{id:"newbie-video-modal",style:{width:xe,height:_e},children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsxs)("p",{type:"draggable",children:[(0,o.jsx)("span",{children:""+p}),(0,o.jsx)("span",{children:s+1+"/"+d})]}),(0,o.jsx)(Et.C,{name:"common/close",className:"close",onClick:t})]}),(0,o.jsx)("div",{className:"contant",children:(0,o.jsx)("video",{ref:gt,controls:!0,src:g,autoPlay:!0,onPlay:Ct})}),(0,o.jsxs)("footer",{type:"draggable",children:[(0,o.jsx)(Fl.tA,{className:"prev",disabled:y,onClick:j,children:I18N.CommonGuides.prev}),(0,o.jsx)(Fl.jn,{className:"next",disabled:w,onClick:_,children:I18N.CommonGuides.next})]})]})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:Q,left:N,width:xe,height:_e,zoomable:"n,s,e,w",rotatable:!1,rotateAngle:0,onResize:he,onResizeStart:()=>zt(!0),onResizeEnd:()=>zt(!1),cursorAngle:0})]})};var e2=i(58603);const T2=E.Ay.div.withConfig({displayName:"styles__StyledSelectGroup",componentId:"sc-k09v9g-0"})(["display:flex;align-items:center;column-gap:10px;.combo-category-select-box{.is-disabled{opacity:1;}.combo-upload-opener{width:112px;height:32px;display:flex;align-items:center;padding-left:8px;border-radius:6px;border:1px solid ",";&.is-placeholder{.title{color:",";}}&.is-disabled{color:",";}.title{text-align:start;color:",";font-size:14px;font-weight:400;line-height:16px;flex:1;}.arrow-icon{width:8px;margin:10px;}}label.Select{width:112px;height:32px;box-sizing:border-box;border:1px solid ",";border-radius:6px;padding-left:8px;color:",";button{font-size:14px;font-family:inherit;}&:last-of-type{margin-right:0;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),C0=E.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-k09v9g-1"})(["padding:8px;width:151px;display:flex;flex-direction:column;row-gap:2px;li{height:24px;list-style:none;display:flex;align-items:center;column-gap:8px;padding-left:32px;border-radius:4px;&:hover,&.is-selected{background:",";}&.is-selected{padding-left:8px;}.checked{width:16px;height:16px;}.title{font-size:12px;font-weight:400;line-height:16px;}}color:",";background:",";border-radius:8px;li{color:",";background:",";}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white),b1=(0,E.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;}#IBOT_DROPDOWN_MENU_ROOT .DesignDropdownMenuBase > .DesignDropdownMenu.combo-upload-category-menu.x-center{transition:all 0.2s ease-out;border-radius:8px;.content{background:",";padding:0;border-radius:8px;color:",";}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),C1=e=>{const{selectedOption:t,optionList:n,onSelectedOption:r,onClose:s}=e,c=d=>{r(d),s()};return(0,o.jsx)(C0,{children:n.map((d,p)=>{const g=t===d;return(0,o.jsxs)("li",{className:m()(g&&"is-selected"),onClick:()=>c(d),children:[g&&(0,o.jsx)(Et.C,{name:"common/checked",className:"checked"}),(0,o.jsx)("span",{className:"title",children:d})]},p)})})},xp=(0,l.memo)(C1),w1=e=>{const{option:t,placeholder:n,optionList:r,changeOption:s}=e,[c,d]=(0,l.useState)(!1),[p,g]=(0,l.useState)({}),y=(0,l.useRef)(null),w=!t,_=!r||r.length===0,j=()=>{if(!y.current)return{};const{top:Q,left:se}=y.current.getBoundingClientRect();return{menuBaseStyle:{left:se-22,top:Q,width:135}}},N=(0,l.useCallback)(Q=>{if(!_){if(Q){const{menuBaseStyle:se}=j();g(se)}d(Q)}},[_]),Z=(0,l.useCallback)(()=>N(!1),[N]);return(0,o.jsx)(e2.A,{menuY:"bottom",isOpen:c,className:m()("combo-category-select-box"),onToggle:N,isDisabled:_,menuBaseStyle:p,opener:(0,o.jsxs)("div",{className:m()("combo-upload-opener",{"is-placeholder":w},{"is-disabled":_}),ref:y,children:[(0,o.jsx)("span",{className:"title",children:t||n}),(0,o.jsx)(Et.C,{className:m()("arrow-icon",{"is-expand":c}),name:"common/expand"})]}),menuClassName:"combo-upload-category-menu",menu:(0,o.jsx)(xp,{selectedOption:t,optionList:r,onSelectedOption:s,onClose:Z})})},G1=(0,l.memo)(w1);var id=function(e){return e.App="app",e.Applet="applet",e.Website="website",e.WebBack="web_back",e.Ipad="ipad",e.SmartTV="smart_tv",e.SmartCar="smart_car",e.AppleWatch="apple_watch",e.Slide="slide",e.DisplayScreen="display_screen",e.HMI="HMI",e.Activity="activity",e.other="other",e}(id||{});const w0={APP:id.App,Web\u540E\u53F0:id.WebBack,\u5C0F\u7A0B\u5E8F:id.Applet,Web\u7F51\u7AD9:id.Website,\u53EF\u89C6\u5316\u5927\u5C4F:id.DisplayScreen,HMI:id.HMI,\u6D3B\u52A8:id.Activity,\u5E73\u677F\u7AEF:id.Ipad,\u667A\u80FD\u7535\u89C6:id.SmartTV,\u624B\u8868:id.AppleWatch,\u5E7B\u706F\u7247:id.Slide,\u5176\u4ED6:id.other},o0={APP:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u540E\u53F0:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},\u5C0F\u7A0B\u5E8F:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u7F51\u7AD9:{\u5B98\u7F51\u5BFC\u822A:[],Banner:[],\u5185\u5BB9\u533A:[],\u7279\u5F81\u533A:[],\u5B9A\u4EF7\u533A:[],\u56E2\u961F\u4ECB\u7ECD:[],\u9875\u811A:[]},\u53EF\u89C6\u5316\u5927\u5C4F:{\u6846\u67B6\u80CC\u666F:[],\u6807\u9898\u6837\u5F0F:[],\u6309\u94AE:[],\u7A97\u53E3\u6846:[],\u5F39\u7A97:[],\u56FE\u8868:[],\u6307\u6807:[],\u5730\u56FE:[],\u4FE1\u606F\u6D41:[]},HMI:{},\u6D3B\u52A8:{},\u5E73\u677F\u7AEF:{},\u667A\u80FD\u7535\u89C6:{},\u624B\u8868:{},\u5E7B\u706F\u7247:{},\u5176\u4ED6:{}},Z1=Object.keys(o0),du=e=>{const{platform:t,plabel:n,clabel:r,plabelList:s,clabelList:c,changePlatform:d,changePlabel:p,changeClabel:g}=e,y=(0,l.useCallback)(_=>{d(_),p(""),g("")},[g,p,d]),w=(0,l.useCallback)(_=>{p(_),g("")},[g,p]);return(0,o.jsxs)(T2,{children:[(0,o.jsx)(G1,{option:t,placeholder:I18N.dModals.combo_upload.select_platform,optionList:Z1,changeOption:y}),(0,o.jsx)(G1,{option:n,placeholder:I18N.dModals.combo_upload.select_plabel,optionList:s,changeOption:w}),(0,o.jsx)(G1,{option:r,placeholder:I18N.dModals.combo_upload.select_clabel,optionList:c,changeOption:g}),(0,o.jsx)(b1,{})]})},Dd=(0,l.memo)(du),K1=E.Ay.div.withConfig({displayName:"styles__StyledCoverUploadSection",componentId:"sc-u0tbq0-0"})([".cover-upload-box{display:flex;.cover-upload-action{width:133px;height:100px;background:",";border:1px dashed ",";border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;overflow:hidden;&.error{animation:border-blink 1s;animation-iteration-count:3;}&:hover{background-color:",";}&.drag{background-color:",";}p{display:flex;padding:0;margin:0;}.edit-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";display:none;opacity:0;flex-direction:column;justify-content:center;align-items:center;transition:opacity 0.2s;.cover-edit-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.edit-tip{color:",";margin-top:8px;font-weight:500;font-size:14px;line-height:20px;}}.upload-cover{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.cover-uploader-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.upload-tip{margin-top:5px;color:",";font-weight:400;font-size:12px;line-height:24px;}}&.has-cover{border-style:solid;.cover-uploader-icon{display:none;}.upload-tip{display:none;}.edit-cover{display:flex;}.upload-cover{display:none;}&:hover{.edit-cover{opacity:1;}}&.drag{.edit-cover{opacity:1;}}}.cover-uploader{display:none;}}.cover-upload-help{display:flex;flex-direction:column;justify-content:space-between;.template{margin-left:16px;.description{font-weight:400;font-size:12px;line-height:30px;color:",";}.template-box{display:flex;.box{width:93px;height:70px;border-radius:6px;&:not(:last-child){margin-right:14px;}cursor:pointer;position:relative;overflow:hidden;.box-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";opacity:0;transition:opacity 0.2s;}&:hover{.box-cover{opacity:1;}}}}}}}.cover-tip{margin-top:10px;display:flex;align-items:center;.exclamation-mark-icon{width:14px;height:auto;}label{margin-left:4px;color:",";font-weight:400;font-size:12px;line-height:17px;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_proto,e=>e.theme.color_text_btn,e=>e.theme.color_text_btn,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_btn,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_bg_mask,e=>e.theme.color_text_L2),_2="/mb-proto2/images/modal/combo_upload/cover_sample_left.webp",P2="/mb-proto2/images/modal/combo_upload/cover_sample_right.webp",t2="/proto/experience/mtm34dolox4q5h7e?mode=cover_design",S1="/proto/experience/mtm34dr7t7gvowo0?mode=cover_design",bp=e=>{const{cover:t,onFileInput:n,onCoverSrc:r}=e,[s,c]=l.useState(!1),d=j=>{var N;let{fileInput:Z,isDrag:Q}=j;const se=Z==null||(N=Z.files)==null?void 0:N[0];if(!se)return;if(Q&&!["image/png","image/jpeg","image/jpg"].includes(se.type)){MB.notice({text:I18N.dModals.combo_upload.cover_type_error,type:"error"}),n({value:""});return}const ie=2*1024*1024;if(se.size>ie){MB.notice({text:I18N.dModals.combo_upload.cover_size,type:"error"}),n({value:""});return}n(Z);const he=new FileReader;he.addEventListener("load",()=>{r(he.result)}),he.readAsDataURL(se)},p=j=>d({fileInput:j.target,isDrag:!1}),g=j=>d({fileInput:{files:j},isDrag:!0}),y=j=>{j.preventDefault(),j.stopPropagation();const N=j.type;N==="dragenter"&&c(!0),N==="dragleave"&&c(!1),N==="dragover"&&!s&&c(!0)},w=j=>{j.preventDefault(),j.stopPropagation();const Z=j.dataTransfer.files;s&&(g(Z),c(!1))},_=j=>(0,o.jsxs)("svg",{className:j,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[(0,o.jsx)("path",{fill:"#1684FC",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),(0,o.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v8M8 12h8"})]});return(0,o.jsxs)(K1,{children:[(0,o.jsxs)("div",{className:"cover-upload-box",children:[(0,o.jsxs)("label",{className:m()(t?"has-cover cover-upload-action":"cover-upload-action",s&&"drag"),style:t?{background:"url("+t+") no-repeat center/cover"}:void 0,htmlFor:"cover-uploader",onDrop:w,onDragOver:y,onDragEnter:y,onDragLeave:y,children:[(0,o.jsxs)("div",{className:"edit-cover",children:[_("cover-edit-icon"),(0,o.jsx)("p",{className:"edit-tip",children:I18N.dModals.combo_upload.change_cover})]}),(0,o.jsxs)("div",{className:"upload-cover",children:[_("cover-uploader-icon"),(0,o.jsx)("p",{className:"upload-tip",children:I18N.dModals.combo_upload.upload_cover})]}),(0,o.jsx)("input",{type:"file",className:"cover-uploader",id:"cover-uploader",accept:"image/png, image/jpeg, image/jpg",onChange:p})]}),(0,o.jsx)("div",{className:"cover-upload-help",children:(0,o.jsxs)("div",{className:"template",children:[(0,o.jsx)("div",{className:"description",children:(0,o.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_desc})}),(0,o.jsxs)("div",{className:"template-box",children:[(0,o.jsx)("div",{className:"box",style:{background:"url("+_2+") no-repeat center/cover"},children:(0,o.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:t2})}),(0,o.jsx)("div",{className:"box",style:{background:"url("+P2+") no-repeat center/cover"},children:(0,o.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:S1})})]})]})})]}),(0,o.jsx)("div",{className:"cover-tip",children:(0,o.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_tip})})]})},S0=(0,l.memo)(bp);var n2=i(95767),Nc=i.n(n2);const Xd=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledModal",componentId:"sc-1d376uz-0"})([".modal-content{.content-container{display:flex;justify-content:space-between;.preview-container{flex-basis:260px;.title{font-size:16px;line-height:22px;font-weight:500;color:",";margin-bottom:14px;}.template-box{display:block;position:relative;top:0;width:270px;padding-bottom:12px;border-radius:4px;overflow:hidden;.template-cover{position:relative;height:200px;overflow:hidden;border-radius:6px;border:1px solid ",";.template-cover-image{width:100%;height:auto;}}.template-info{padding-top:12px;padding-left:12px;.template-title{color:",";font-size:14px;line-height:20px;font-weight:600;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.flex-row{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.view-and-favorite{margin-bottom:10px;.view-icon,.used-icon,.liked-icon{path{fill:",";}}.view-icon{width:14px;height:10px;margin-right:3px;}.used-icon{width:auto;height:10px;margin-right:3px;}.liked-icon{width:auto;height:12px;margin-right:3px;transform:translateY(-1px);}.view-count,.used-count,.liked-count{color:",";font-size:12px;font-weight:400;}.view-count,.used-count{margin-right:8px;}}.author-info{.avatar-container{width:20px;height:20px;border-radius:50%;overflow:hidden;.avatar{width:100%;height:100%;}}.author-name{margin-left:8px;font-size:12px;color:",";font-weight:400;}}}}.tip-title{margin-top:30px;color:",";font-weight:500;font-size:14px;line-height:20px;}.tips{color:",";font-size:12px;font-weight:400;line-height:21px;margin-top:8px;}}.crop-container{flex-basis:470px;.title{font-size:16px;line-height:22px;font-weight:500;color:",';margin-bottom:14px;}.crop-area{height:352px;display:flex;justify-content:center;align-items:center;position:relative;background:url("/mb-proto2/images/modal/combo_upload/square_component_background.png") repeat 0 0/100%;.background{background:',";position:absolute;width:100%;height:100%;}}.re-upload{width:110px;height:32px;margin-top:14px;border:1px solid ",";background:",";display:flex;justify-content:center;align-items:center;color:",";font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;&:hover{background:",";}&:active{background-color:",";}}.re-upload-icon{width:14px;height:auto;margin-right:10px;path{fill:",";}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_mask,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),o2=(0,E.DU)(["#IBOT_MODAL_ROOT .new-model-portal .crop-model.workspace-modal{width:800px;}"]),A1=532/400;class Cp extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{crop:{aspect:A1},canvasDataURL:""}),(0,O.A)(this,"imageRef",null),(0,O.A)(this,"handleImageLoaded",t=>{this.imageRef=t;const{width:n,height:r}=t;return n/r<A1?this.setState({crop:{unit:"%",aspect:A1,width:100}}):this.setState({crop:{unit:"%",aspect:A1,height:100}}),!1}),(0,O.A)(this,"getFileType",()=>{const{fileInput:{files:[{type:t}]}}=this.props;return t.split("/").pop()}),(0,O.A)(this,"onConfirmModel",()=>this.props.onCover(this.state.canvasDataURL)),(0,O.A)(this,"onCropComplete",t=>{if(this.imageRef&&t.width&&t.height){const n=this.getCroppedImg(this.imageRef,t);this.setState({canvasDataURL:n})}}),(0,O.A)(this,"handleCloseCropModal",()=>{const{onCoverSrc:t,onFileInput:n}=this.props;t(""),n({value:""}),this.props.fileInput.value=""})}getCroppedImg(t,n){const r=document.createElement("canvas"),s=t.naturalWidth/t.width,c=t.naturalHeight/t.height;return r.width=n.width*s,r.height=n.height*c,r.getContext("2d").drawImage(t,n.x*s,n.y*c,n.width*s,n.height*c,0,0,n.width*s,n.height*c),r.toDataURL("image/"+this.getFileType())}render(){const{originalSrc:t,fileInput:n}=this.props,{crop:r,canvasDataURL:s}=this.state;return(0,o.jsxs)(Xd,{className:"crop-model",isOpen:!!t,title:I18N.dModals.combo_upload.upload_cover,onConfirm:this.onConfirmModel,cancelText:I18N.dModule.cancel,confirmText:I18N.dModule.confirm,onCancel:()=>null,onClose:this.handleCloseCropModal,canCloseOnClickMask:!1,children:[(0,o.jsxs)("div",{className:"content-container",children:[(0,o.jsxs)("div",{className:"preview-container",children:[(0,o.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.cover_preview}),(0,o.jsxs)("div",{className:"template-box",children:[(0,o.jsx)("div",{className:"template-cover",children:s&&(0,o.jsx)("img",{className:"template-cover-image",src:s})}),(0,o.jsxs)("div",{className:"template-info",children:[(0,o.jsx)("h3",{className:"template-title",children:I18N.dModals.combo_upload.here_is_mkt_title}),(0,o.jsxs)("div",{className:"view-and-favorite flex-row",children:[(0,o.jsx)("svg",{className:"view-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",fill:"none",children:(0,o.jsx)("path",{d:"M7 0c4.095 0 7 3.764 7 5 0 1.236-2.804 5-7 5S.011 6.286 0 5c-.011-1.286 2.905-5 7-5zm0 2a3 3 0 100 6 3 3 0 000-6zm0 1a2 2 0 01.59.089A1 1 0 108.912 4.41 2 2 0 117 3z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"view-count",children:1234}),(0,o.jsx)("svg",{className:"used-icon",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",fill:"none",children:(0,o.jsx)("path",{d:"M1 0h10l1 2v8a1 1 0 01-1 1H1a1 1 0 01-1-1V2l1-2zm6.125 7V4H5v3H3.125l2.5 2.5L9 7H7.125zm3.393-5L10 1H2.024l-.72.998L10.519 2z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"used-count",children:1234}),(0,o.jsx)("svg",{className:"liked-icon",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"12",fill:"none",children:(0,o.jsx)("path",{d:"M11 5.683c0-.698-.419-1.283-.984-1.45a.17.17 0 00-.042-.003H7.088c-.01 0-.017-.057-.015-.067a6.363 6.363 0 00.205-2.662l-.001-.003C7.277.67 6.69 0 5.966 0c-.672 0-1.224.575-1.303 1.317-.266 2.51-1.957 3.26-2.337 3.398h-.007c-.023-.004-.046 0-.07 0H.476c-.263 0-.475.24-.475.539v6.226c0 .3.212.518.475.518h8.176c.047.005.094 0 .14 0 .866 0 1.165-.815 1.165-.815.095-.207.986-5.064.986-5.064.017-.065.03-.133.039-.201l.004-.022v-.002c.009-.069.015-.14.015-.211M2 11H1V6h1v5z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"liked-count",children:1234}),(0,o.jsx)("span",{className:"liked-count",children:1234})]}),(0,o.jsxs)("div",{className:"author-info flex-row",children:[(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)("img",{src:"/mb-proto2/images/avatar.png",className:"avatar",alt:""})}),(0,o.jsx)("div",{className:"author-name",children:I18N.dModals.combo_upload.fake_author_name})]})]})]}),(0,o.jsx)("p",{className:"tip-title",children:I18N.dModals.combo_upload.cover_regulation}),(0,o.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:I18N.dModals.combo_upload.upload_cover_tip_html}})]}),(0,o.jsxs)("div",{className:"crop-container",children:[(0,o.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.crop_cover}),(0,o.jsxs)("div",{className:"crop-area",children:[(0,o.jsx)("div",{className:"background"}),(0,o.jsx)(Nc(),{className:"cropper",src:t,crop:r,onChange:c=>this.setState({crop:c}),onComplete:this.onCropComplete,onImageLoaded:this.handleImageLoaded,keepSelection:!0,imageStyle:{maxWidth:"100%",maxHeight:"342px"}})]}),typeof n.click=="function"&&(0,o.jsxs)("div",{className:"re-upload",children:[(0,o.jsx)("svg",{className:"re-upload-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",children:(0,o.jsx)("path",{d:"M2.424 1.703a7 7 0 0110.309 9.315L10.5 7h2.1a5.6 5.6 0 00-9.478-4.04l-.698-1.257zm9.152 10.594A7 7 0 011.267 2.982L3.5 7H1.4a5.6 5.6 0 009.478 4.04l.698 1.257z",fill:"#5B6B73",fillRule:"nonzero"})}),(0,o.jsx)("span",{className:"button-text",onClick:()=>n.click(),children:I18N.dModals.combo_upload.upload_reload})]})]})]}),(0,o.jsx)(o2,{})]})}}const A0=Cp;var Qd=i(68789);const wp=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledComboUploadModal",componentId:"sc-1lk5hqh-0"})(["height:598px;> .content{height:492px;}.modal-content{display:flex;flex-direction:column;align-items:start;row-gap:20px;height:100%;position:relative;.item{display:flex;justify-content:center;&.paid-config,&.amounts{> span{line-height:22px;}> .content{width:339px;display:flex;align-items:center;.selector{display:flex;align-items:center;width:84px;input{width:14px;height:14px;margin-top:1px;appearance:none;border-radius:50%;border:1px solid ",";transition:0.2s all linear;&:checked{border:4px solid ",";background-color:",";}}label{font-size:14px;font-weight:400;padding-left:10px;color:",";}input:checked + label{color:",";}}}}&.amounts{> .content{flex-wrap:wrap}}> span,> input,> .textarea-wrapper > textarea{color:",";}> input,> .textarea-wrapper > textarea{&::placeholder{color:",";}}> span{width:84px;font-size:14px;font-weight:500;line-height:32px;}> input{padding:8px;width:356px;height:32px;border-radius:6px;border:1px solid ",";&:focus{border:1px solid ",";}}> .textarea-wrapper{position:relative;textarea{position:relative;z-index:1;width:352px;height:64px;padding:8px 0 8px 9px;resize:none;outline:none;background:none;border:none;font-size:14px;line-height:24px;font-weight:400;&::-webkit-scrollbar-track{margin:8px 0;}&:focus + .border{border:1px solid ",";}}.border{position:absolute;top:0;left:0;width:356px;height:64px;border-radius:6px;border:1px solid ",";}}}.tips{background-color:",";color:",";border-radius:6px;width:100%;height:32px;font-size:12px;display:flex;justify-content:center;align-items:center;position:absolute;bottom:-4px;}}footer{padding:0 20px 24px;display:flex;align-items:center;.footer-agreement{display:flex;align-items:center;flex:1;font-size:12px;font-weight:500;> .check > .Check-label{margin-left:8px;}> a{color:",";}}}&.upload-success > .content{display:flex;align-items:center;justify-content:center;.modal-content{align-items:center;justify-content:center;row-gap:0;svg{margin-bottom:22px;}p{font:14px;font-weight:400;line-height:20px;a{color:",";text-decoration:underline;}}}}"],e=>e.theme.color_text_disabled01,e=>e.theme.color_proto,e=>e.theme.color_text_btn,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal);var a0=i(37253);const M0=async()=>{try{const{keywords:{combo_group:{labels:e}}}=await(0,a0.DE)("/api/community/v1/community/labels"),t={},n={};return e.forEach(r=>{let{plabel:s,clabels:c}=r;const{label_id:d,name:p}=s;t[p]=d,n[p]=c.reduce((g,y)=>{let{label_id:w,name:_}=y;return Object.assign(g,{[_]:w})},{})}),{plabelsMap:t,plabel2clabels:n}}catch(e){console.error(e)}},ke=e=>{let{platform:t,plabel:n,plabelsMap:r,plabel2clabels:s}=e;const c=Object.keys(r),d=Object.keys(o0[t]),p=c.filter(_=>d.includes(_)),g=o0[t][n];if(!n||!g)return{availablePlabels:p,availableClabels:[]};const w=Object.keys(s[n]).filter(_=>g.includes(_));return{availablePlabels:p,availableClabels:w}};var Ve=i(40093),Ye=i(42459),wt=i(38581);const Ua=(e,t)=>{const n=e.get(t);if(n===void 0)return;const r=e.get(n.sup);if(r===void 0)throw new Error("missing sup: "+n.sup+" for: "+n.key);e.set(n.sup,{...r,sub:(0,Ye.Uj)(r.sub,t)}),e.delete(t)},za=e=>{var t,n,r,s,c,d,p;const g=new Set,y=N=>(0,n0.iX)(N,Z=>(0,wt.w7)(e.get(Z).attr,(Q,se)=>g.add(Q)),e);y(mr.$k);const w=[...((t=e.get(mr.JC))==null?void 0:t.sub)||[],...((n=e.get(mr.W4))==null?void 0:n.sub)||[],...((r=e.get(mr.fW))==null?void 0:r.sub)||[],...((s=e.get(mr.YZ))==null?void 0:s.sub)||[],...((c=e.get(mr.fu))==null?void 0:c.sub)||[],...((d=e.get(mr.nK))==null?void 0:d.sub)||[],...((p=e.get(mr.EM))==null?void 0:p.sub)||[]];{const N=new Set;let Z;do{Z=!1;for(const Q of w){if(N.has(Q)||!g.has(Q))continue;N.add(Q);const se=g.size;y(Q),se<g.size&&(Z=!0)}}while(Z)}for(const N of[...((_=e.get(n0.Ri))==null?void 0:_.sub)||[],...((j=e.get(mr.Ex))==null?void 0:j.sub)||[]]){var _,j;Ua(e,N)}for(const N of w)!g.has(N)&&Ua(e,N)},Qa=[{price:300,idx:"price1",i18nkey:"amounts_opt_1"},{price:680,idx:"price2",i18nkey:"amounts_opt_2"},{price:990,idx:"price3",i18nkey:"amounts_opt_3"},{price:1280,idx:"price4",i18nkey:"amounts_opt_4"},{price:3980,idx:"price5",i18nkey:"amounts_opt_5"},{price:5980,idx:"price6",i18nkey:"amounts_opt_6"}],rr=e=>{const{isOpen:t,cgCid:n,projectUpperCid:r,teamCid:s,comboName:c,onClose:d}=e,[p,g]=(0,l.useState)(1),[y,w]=(0,l.useState)({}),[_,j]=(0,l.useState)({}),[N,Z]=(0,l.useState)([]),[Q,se]=(0,l.useState)([]),[ie,he]=(0,l.useState)(""),[xe,Se]=(0,l.useState)(null),[_e,De]=(0,l.useState)(""),[Je,Ne]=(0,l.useState)(c),[pt,_t]=(0,l.useState)(""),[gt,Ct]=(0,l.useState)(""),[zt,Dt]=(0,l.useState)(""),[sn,Rn]=(0,l.useState)(""),[On,Lo]=(0,l.useState)(Qd.W.Everyone),[Yo,Cn]=(0,l.useState)(0),[hn,oa]=(0,l.useState)(!1),Ao=(0,l.useMemo)(()=>On&&On!==Qd.W.Everyone,[On]);(0,l.useEffect)(()=>{(async()=>{const{plabelsMap:da,plabel2clabels:nr}=await M0();w(da),j(nr)})()},[]),(0,l.useEffect)(()=>{if(!pt)return;const{availablePlabels:sa,availableClabels:da}=ke({platform:pt,plabel:gt,plabelsMap:y,plabel2clabels:_});Z(sa),se(da)},[pt,gt,y,_]);const ca=sa=>{Lo(sa),Ao&&Cn(0)},va=(0,l.useCallback)(()=>(pt?!N||N.length===0?!1:gt?!Q||Q.length===0?!1:!zt:!0:!0)||!Je||!sn||!_e||!On||Ao&&Yo===0||!hn,[Yo,zt,Q,_e,sn,hn,Ao,gt,N,pt,On,Je]),ra=(0,l.useCallback)(async()=>{var sa;const da=gt&&y[gt]?y[gt]:"",cr=(zt&&(sa=_[gt])!=null&&sa[zt]?_[gt][zt]:"")||da,Vr=cr?[cr]:[],yr={title:Je,description:sn,cover:_e,platform:w0[pt],label_ids:Vr,policy:On,amount_in_cents:Yo,source_upper_cid:r,project_type:"proto2",category:"combo_group",preview_mode:"only_preview"};if(_e&&_e.length>512){const hi=await(await fetch(_e)).blob(),{tbToken:Hi}=await(await fetch("/flatkiq/tempblob/save",{method:"POST",body:hi})).json();yr.cover="tempblob:"+hi.type+";token,"+Hi}const pi=userSdkStore.__devFlatStore().getFlatTree().fork();{for(const Kr of pi.get(mr.$k).sub)Kr!==n&&Ua(pi,Kr);pi.get(n).sup=mr.$k,pi.get(mr.$k).sub=[n];const hi=[],Hi=[];(0,n0.yc)(pi,n,Kr=>{if(Kr.attr.B!==mr.Ni)return n0.NU;Kr.attr.aF===(0,Ve.rK)(!1)?hi.push(Kr.key):Hi.push(Kr.key)});for(const Kr of Hi.reverse())Ua(pi,Kr);for(const Kr of hi)pi.get(Kr).sup=n;pi.get(n).sub=hi,za(pi)}await(0,W1.lq)(pi,s,{prevUpperCid:r,railsExtra:yr}),g(2),(0,ud.GK)({comboName:c,platform:pt,plabel:gt,clabel:zt,isPaid:Ao,amounts:Yo})},[Yo,n,zt,c,_e,sn,Ao,gt,_,y,pt,On,r,s,Je]),Jo=(0,l.useCallback)(()=>(0,o.jsxs)("div",{className:"footer-agreement",children:[(0,o.jsx)(Gn.A,{className:"check",isChecked:hn,onChange:()=>oa(!hn),label:I18N.dModals.combo_upload.agreement_1}),(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/204",children:I18N.dModals.combo_upload.agreement_2})]}),[hn]),$o=()=>{var sa;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none",children:[(0,o.jsx)("path",{fill:"#fff",d:"M46.12 22.68a3 3 0 0 1 0 4.243l-16 16a3 3 0 0 1-4.242 0l-8-8a3 3 0 0 1 4.242-4.243L28 36.56 41.877 22.68a3 3 0 0 1 4.242 0Z"}),(0,o.jsx)("path",{fill:"#39BF50",fillRule:"evenodd",d:"M0 32C0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32Zm46.12-5.077a3 3 0 0 0-4.242-4.243L27.999 36.56l-5.878-5.879a3 3 0 0 0-4.243 4.243l8 8a3 3 0 0 0 4.242 0l16-16Z",clipRule:"evenodd"})]}),(0,o.jsx)("p",{children:I18N.dModals.combo_upload.upload_success_1}),(0,o.jsxs)("p",{children:[(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/com24/author/"+((sa=MB)==null||(sa=sa.user)==null?void 0:sa.cid),children:I18N.dModals.combo_upload.upload_success_2}),I18N.dModals.combo_upload.upload_success_3]})]})};return(0,o.jsxs)(o.Fragment,{children:[ie&&xe&&(0,o.jsx)(A0,{originalSrc:ie,fileInput:xe,onCover:De,onCoverSrc:he,onFileInput:Se}),(0,o.jsx)(wp,{isOpen:t,className:m()("combo-upload-modal",{"upload-success":p===2}),canCloseOnClickMask:!1,footer:p===2&&null,title:I18N.dModals.combo_upload.publish_to_mkt,confirmText:I18N.dModals.combo_upload.confirm,confirmBtnProps:{disabled:va(),shouldCloseOnAction:!1},canClose:!0,centered:!0,onClose:d,onConfirm:ra,renderFooterContent:Jo,children:p===2?$o():(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"item title",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_name}),(0,o.jsx)("input",{type:"text",placeholder:I18N.dModals.combo_upload.input_combo_name,value:Je,onChange:sa=>Ne(sa.target.value)})]}),(0,o.jsxs)("div",{className:"item category",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_categories}),(0,o.jsx)(Dd,{platform:pt,plabel:gt,clabel:zt,plabelList:N,clabelList:Q,changePlatform:_t,changePlabel:Ct,changeClabel:Dt})]}),(0,o.jsxs)("div",{className:"item description",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_desc}),(0,o.jsxs)("div",{className:"textarea-wrapper",children:[(0,o.jsx)("textarea",{placeholder:I18N.dModals.combo_upload.input_combo_desc,onChange:sa=>Rn(sa.target.value)}),(0,o.jsx)("div",{className:"border"})]})]}),(0,o.jsxs)("div",{className:"item cover",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_cover}),(0,o.jsx)(S0,{cover:_e,onFileInput:Se,onCoverSrc:he})]}),(0,o.jsxs)("div",{className:"item paid-config",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.paid_mode}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:"free",name:"paid-config",checked:On===Qd.W.Everyone,onClick:()=>ca(Qd.W.Everyone)}),(0,o.jsx)("label",{htmlFor:"free",children:I18N.Common.free})]}),(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:"paid",name:"paid-config",checked:On===Qd.W.MktMemberFree,onClick:()=>ca(Qd.W.MktMemberFree)}),(0,o.jsx)("label",{htmlFor:"paid",children:I18N.dModals.combo_upload.charge})]})]})]}),Ao&&(0,o.jsxs)("div",{className:"item amounts",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.amounts_opts}),(0,o.jsx)("div",{className:"content",children:Qa.map(sa=>(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:sa.idx,name:"amounts",value:sa.price,onChange:()=>Cn(sa.price)}),(0,o.jsx)("label",{htmlFor:sa.idx,children:I18N.dModals.combo_upload[sa.i18nkey]})]}))})]}),(0,o.jsx)("div",{className:"tips",children:"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6587\u4EF6\u5939\u4E0B\u7684\u6240\u6709\u5B50\u6587\u4EF6\u5939\u5185\u7684\u7EC4\u4EF6\u4E5F\u4F1A\u540C\u6B65\u4E0A\u4F20\u5230\u7D20\u6750\u5E7F\u573A"})]})})]})},Ji=(0,l.memo)(rr);var Jr=i(39e3),qi=i(25884),jr=i(13235),zi=i(68033);const Ki=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-gazcws-0"})(["",";&.chartTableMenu{ul{width:150px;min-width:150px;border-radius:4px;.desc{margin:6px 16px;opacity:0.4;}}}"],pr.ZJ);class Zr extends l.PureComponent{render(){const{isCanNotDelCol:t,isCanNotDelRow:n,isCanAddLeftCol:r,isCanAddRightCol:s,isCanAddBottomRow:c,position:d,currentSelect:{row:p},isBoxPlotType:g,handleClose:y,handleInsertTopRow:w,handleInsertBottomRow:_,handleDeleteRow:j,handleInsertLeftCol:N,handleInsertRightCol:Z,handleDeleteCol:Q}=this.props;return(0,o.jsxs)(Ki,{position:d,onClose:y,className:m()("chartTableMenu"),children:[(0,o.jsx)(He.Dr,{disabled:c?g?!1:!p:!0,text:I18N.ContextMenu.table_insert_top_row.replace(" %input ",""),onClick:w}),(0,o.jsx)(He.Dr,{disabled:!c,text:I18N.ContextMenu.table_insert_bottom_row.replace(" %input ",""),onClick:_}),(0,o.jsx)(He.Dr,{disabled:n,text:I18N.ContextMenu.table_delete_row,onClick:j}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{disabled:!r,text:I18N.ContextMenu.table_insert_left_column.replace(" %input ",""),onClick:N}),(0,o.jsx)(He.Dr,{disabled:!s,text:I18N.ContextMenu.table_insert_right_column.replace(" %input ",""),onClick:Z}),(0,o.jsx)(He.Dr,{disabled:t,text:I18N.ContextMenu.table_delete_columns,onClick:Q}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)("div",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.menu.desc})]})}}class Si extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleVerify",(t,n)=>(""+t).replace("\u3002",".").replace(n?/[^\d.]/g:/[^\d\-.]/g,"").replace(n?"":/(\d)-+/g,n?"":"$1").replace(/\.{2,}/g,".").replace(/^\./g,"").replace(".","$#$").replace(/\./g,"").replace("$#$",".").substring(0,16)),(0,O.A)(this,"handleChange",t=>{const{isPieType:n,cell:{cellType:r}}=this.props;let c=""+t.target.value;r==="number"&&(c=this.handleVerify(c,n)),this.props.onChange(c)})}componentDidMount(){this._input.focus(),this._input.setSelectionRange(0,(""+this.props.cell.value).length)}render(){const{value:t,onKeyDown:n,onChangeHasEditingSaved:r}=this.props;return(0,o.jsx)("textarea",{ref:s=>{this._input=s},type:"text",className:"data-editor",value:t,onChange:this.handleChange,onInput:()=>r(!1),onKeyDown:n})}}var Ii=i(77698),_i=i(4648),ii=i(56202),$i=i(31838),Ta=i(18390),vi=i(87440);const Yi=[Ta.N.pie_chart,Ta.N.ring_chart,Ta.N.nightingale_chart],hl=[Ta.N.pie_chart,Ta.N.ring_chart,Ta.N.nightingale_chart,Ta.N.funnel_chart,Ta.N.liquid_fill_gauge_chart,Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.word_cloud_chart,Ta.N.sankey_chart],_s=[Ta.N.pie_chart,Ta.N.ring_chart,Ta.N.nightingale_chart,Ta.N.funnel_chart,Ta.N.liquid_fill_gauge_chart,Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.word_cloud_chart,Ta.N.sankey_chart],As=[Ta.N.waterfall_chart,Ta.N.map_chart],ql=[Ta.N.waterfall_chart,Ta.N.map_chart],dc=[Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.sankey_chart],Hl=[Ta.N.sunburst_chart,Ta.N.sankey_chart],gd=[Ta.N.waterfall_chart,Ta.N.sunburst_chart,Ta.N.sankey_chart],ss={all:[Ta.N.bar_chart,Ta.N.horizontal_bar_chart,Ta.N.line_chart,Ta.N.line_area_chart,Ta.N.mixed_bar_line_chart,Ta.N.pie_chart,Ta.N.ring_chart,Ta.N.radar_chart,Ta.N.nightingale_chart,Ta.N.funnel_chart,Ta.N.liquid_fill_gauge_chart,Ta.N.map_chart,Ta.N.radial_polar_chart],name:[Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.boxplot_chart],data:[Ta.N.waterfall_chart,Ta.N.sunburst_chart,Ta.N.sankey_chart]},fs={all:[Ta.N.bar_chart,Ta.N.horizontal_bar_chart,Ta.N.line_chart,Ta.N.line_area_chart,Ta.N.mixed_bar_line_chart,Ta.N.pie_chart,Ta.N.ring_chart,Ta.N.radar_chart,Ta.N.nightingale_chart,Ta.N.waterfall_chart,Ta.N.funnel_chart,Ta.N.liquid_fill_gauge_chart,Ta.N.map_chart,Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.radial_polar_chart,Ta.N.sunburst_chart,Ta.N.word_cloud_chart,Ta.N.sankey_chart],data:[Ta.N.boxplot_chart]},Wi=e=>{let{type:t,col:n,data:r}=e;return hl.includes(t)?!1:t===Ta.N.waterfall_chart?!0:t===Ta.N.sunburst_chart?r[1].length<6:t===Ta.N.boxplot_chart?n:n-1},es=e=>{let{type:t,data:n}=e;return _s.includes(t)?!1:t===Ta.N.sunburst_chart?n[1].length<6:!0},xs=(e,t,n)=>_s.includes(e)?!1:e===Ta.N.sunburst_chart?t!==n[1].length-1&&n[1].length<6:!0,Ui=e=>{let{type:t,row:n,data:r}=e;return t===Ta.N.boxplot_chart?r.length===1:r.length===2||!n||t==="mixed_bar_line_chart"&&r.length===3||ql.includes(t)},Ns=e=>{var t;let{type:n,col:r,data:s}=e;return n===Ta.N.waterfall_chart?s[1].length===1:dc.includes(n)?!0:n===Ta.N.sunburst_chart?s[1].length===2||r===s[1].length-1:n===Ta.N.boxplot_chart?((t=s[0])==null?void 0:t.length)===2||!r:s[1].length===3||!(r-1)},Uc=e=>[Ta.N.scatter_chart,Ta.N.bubble_chart,Ta.N.sunburst_chart,Ta.N.boxplot_chart,Ta.N.sankey_chart].includes(e);var ic=i(53940),Fc=i(18654);const Nh=E.Ay.div.withConfig({displayName:"styles__StyledChartSettings",componentId:"sc-1xuls1j-0"})(["display:flex;flex-direction:column;height:100%;background-color:",";box-shadow:0px -2px 8px 0px rgba(39,54,78,0.06);header{position:relative;height:32px;width:100%;display:flex;align-items:center;padding:0 20px;background:",";box-shadow:0 1px 0 ",",0 -1px 0 ",";cursor:pointer;.title{color:",";font-size:12px;font-weight:500;}svg.icon{position:absolute;left:50%;path{fill:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),Bu=E.Ay.div.withConfig({displayName:"styles__StyledTableSetting",componentId:"sc-1xuls1j-1"})(["text-align:center;height:100%;max-width:100%;width:fit-content;margin:0 auto;.tableWrapper{display:flex;flex-direction:column;width:100%;height:100%;.actionData{cursor:pointer;border:1px solid ",";display:flex;align-items:center;justify-content:center;transition:all ease-in-out 0.1s;pointer-events:none;&.can-add-on-scroll{pointer-events:auto;}&:not(:active):hover{background:",";}&:active{background:",";}svg.plus{width:7px;height:7px;path{fill:",";}}}.tableContainer{display:flex;max-width:100%;max-height:100%;.data-grid-container{tr:last-child{td{border-bottom-color:transparent;&.yAxis{border-bottom-color:",";}&.selected{border-bottom-color:rgba(22,132,252);}}}}&.has-add-bottom-row{max-height:calc(100% - 20px);.table-data-sheet{.scroll-container{border-bottom:0;}}}.addRightCol{width:20px;height:auto;&.hide-border-bottom{border-bottom:0;}}.table-data-sheet{max-width:100%;max-height:100%;position:relative;.scroll-container{max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;border:1px solid ",";}.bar-vertical{z-index:1;.thumb-vertical{padding:2px 2px 6px 2px;}}.bar-horizontal{z-index:1;.thumb-horizontal{padding:2px 6px 2px 2px;}}&.has-add-right-col{max-width:calc(100% - 20px);.scroll-container{border-right:0;}}}}.addBottomRaw{width:100%;height:20px;&.all{width:100%;margin-left:0;}}}.data-grid-container{height:100%;width:100%;table.data-grid{tbody{tr{position:relative;td.cell{text-align:center;cursor:pointer;border:1px solid ",";width:80px;height:32px;color:",";overflow:hidden;text-overflow:ellipsis;&:not(.nodata){span.value-viewer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px;width:80px;display:block;height:32px;line-height:24px;}}&.xAxis,&.yAxis{background-color:",";font-weight:500;textarea.data-editor{font-weight:500;}}&.yAxis{}&.nodata{cursor:auto;background-color:",";span.value-viewer{width:100%;}&.selected{border:1px solid ",";}}&.empty{background:transparent;border:none;width:0;}&.nodisplay{background:transparent;border:none;cursor:auto;display:block;width:10px;position:absolute;left:0;&.selected{border:none;}}&.disabled{color:",';}&.colorComponent{width:10px;display:block;border:none;height:32px;position:absolute;[type="color-btn"]{.thumbnail-wrapper{width:10px;height:32px;border:1px solid ',";border-radius:0;margin:0;.thumbnail{border-radius:0;border:none;}&:before{border:none;}}}}&.editing,&.selected{border:1px double rgba(22,132,252);box-shadow:none;div[type=color-btn]{border:none;.thumbnail-wrapper{height:30px;}}textarea.data-editor{padding:4px;height:32px;width:100%;min-width:80px;border:none;line-height:24px;text-align:center;color:",";resize:none;outline:none;background-color:inherit;white-space:nowrap;overflow:hidden;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0;}}}&.updated{&:not(.xAxis):not(.yAxis){background-color:",";}&.xAxis,&.yAxis{background-color:",";}}&:first-child{border-left-color:transparent;&.xAxis,&.nodata{border-left-color:",";}&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}&:nth-child(2){&.nodata,&.yAxis{border-left-color:",";&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}}&:last-child{border-right-color:transparent;&.xAxis,&.sunburst{border-right-color:",";}&.selected{border-right-color:rgba(22,132,252);}}}&:first-child{td{border-top-color:transparent;&.xAxis,&.nodata{border-top-color:",";}&.selected{border-top-color:rgba(22,132,252);&.nodata{border-top-color:",";}}}}}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L2,e=>e.theme.color_background_card,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card),Sp=E.Ay.div.withConfig({displayName:"styles__StyledScrollContainer",componentId:"sc-1xuls1j-2"})(["width:100%;height:100%;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}border:1px solid ",";"],e=>e.theme.color_bg_line);class nh extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"renderColorBtn",t=>{let{index:n,isInit:r=!1}=t;const{dispatch:s,chartData:{series:c},theme:d}=this.props,p="chart_series_"+n,g=r&&c[n].color?c[n].color:(0,jr.zw)(zi.B5[d][n%zi.B5.length]);return(0,o.jsx)(_i.R_,{canOpenLib:!1,attr:p,color:g,onChange:(y,w)=>{s({type:"entry:set:chart:series:color:attr",payload:{attr:w,color:y}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,O.A)(this,"renderMapChartColorBtn",t=>{let{index:n,isInit:r=!1}=t;const{dispatch:s,theme:c,cid:d}=this.props;if(!(c!==0))return this.renderColorBtn({index:n,isInit:r});const{mapSolidColor:g}=sdkStore.getHotItem(d).hotAttr.chartConfig,y="chart_series_"+n;return(0,o.jsx)(_i.R_,{canOpenLib:!1,attr:y,color:g,onChange:w=>{s({type:"entry:set:chart:mapSolidColor",payload:{color:w}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,O.A)(this,"updateSeriesData",t=>{const{type:n,category:r}=this.props,s=Yi.includes(n),c=Hl.includes(n),d=ss.data.includes(n),p=ss.name.includes(n),g=n===Ta.N.sunburst_chart;return t.map((y,w)=>{const _=s?y.data.slice(0,1):y.data,j=(!r||r==="normal")&&w&&n!==Ta.N.radar_chart,N=_.map((Q,se)=>({value:Q,className:m()({disabled:j},{sunburst:se===_.length-1&&g}),cellType:c&&se!==_.length-1?"string":"number",index:se})),Z=[{value:y.name,className:"yAxis "+(j&&"disabled"),cellType:"string",canNotData:!0},...N];return d?N:p?Z:[{component:this.renderColorBtn({index:w,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},...Z]}).filter(y=>!!(y!=null&&y.length))}),(0,O.A)(this,"updateMapChartSeriesData",t=>{const{cid:n}=this.props,{mapAdCode:r}=sdkStore.getHotItem(n).hotAttr.chartConfig;return $i.JD.get(String(r)).map((c,d)=>[{component:this.renderMapChartColorBtn({index:d,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},{value:c,readOnly:!0,className:"yAxis"},...t[d].data.map(p=>({value:p,cellType:"number"}))])}),(0,O.A)(this,"updateXAxis",t=>t.map(n=>({value:n,className:"xAxis",cellType:"string"}))),(0,O.A)(this,"initData",()=>{const{chartData:{xAxis:t,series:n},type:r}=this.props,s=Yi.includes(r),c=r===Ta.N.map_chart,d=r===Ta.N.word_cloud_chart,p=r===Ta.N.boxplot_chart,g=this.updateXAxis(t),y=c?this.updateMapChartSeriesData(n):this.updateSeriesData(n),w=s?g.slice(0,1):g,_=s?y.map(Q=>Q.slice(0,3)):y,j=ss.data.includes(r),N=ss.name.includes(r),Z=j?w:N||d?[{value:"",readOnly:!0,className:"nodata "+(d&&"empty")},...w]:[{value:"",readOnly:!0,className:"nodisplay"},{value:"",readOnly:!0,className:"nodata"},...w];return p?_:[[...Z],..._]}),(0,O.A)(this,"state",{data:this.initData(),isShowContextMenu:!1,position:{top:0,left:0},currentSelect:{row:0,col:0},canAddRightColOnScroll:!0,canAddBottomRowOnScroll:!0}),(0,O.A)(this,"onContextMenu",(t,n,r,s)=>{n.readOnly||this.setState({isShowContextMenu:!0,position:{left:t.clientX,top:t.clientY},currentSelect:{row:r,col:s}})}),(0,O.A)(this,"onCellsChanged",async t=>{const{data:n}=this.state,{chartData:{xAxis:r,series:s},onChangeHasEditingSaved:c,type:d}=this.props,p=JSON.parse(JSON.stringify(s)),g=JSON.parse(JSON.stringify(r)),y=d===Ta.N.word_cloud_chart,w=ss.data.includes(d),_=ss.name.includes(d),j=fs.data.includes(d);let N=!1;await t.forEach(Z=>{let{row:Q,col:se,value:ie}=Z;const he=ie,xe=w?se:_||y?se-1:se-2,Se=_?se:se-1,_e=j?Q:Q-1,De=w?se:_?se-1:se-2;if(!Q&&!j)g[xe]=he;else if(!Se&&!w)p[_e].name!==he&&(N=!0),p[_e].name=he;else{const Je=he||"";p[_e].data[De]!==Je&&(N=!0),p[_e].data[De]=Je}n[Q][se]={...n[Q][se],value:he}}),sdkStore.combineMergeMark("echart-table-cell-change"),this.handleChangeXAxis(g),this.handleChangeSeries(p),y&&N&&this.handleRandomRotation(p),sdkStore.combineMerge("echart-table-cell-change"),this.setState({data:n}),c(!0)}),(0,O.A)(this,"handleRandomRotation",t=>{const n=t.map(r=>({...r,rotation:(0,vi.s)()}));this.handleChangeSeries(n)}),(0,O.A)(this,"handleChange",(t,n)=>{const{dispatch:r}=this.props;r({type:"entry:set:chart:chartData:attr",payload:{attr:n,value:t}})}),(0,O.A)(this,"handleChangeXAxis",async t=>{const{handleChange:n}=this;await n(t,"xAxis")}),(0,O.A)(this,"handleChangeSeries",async t=>{const{handleChange:n}=this;await n(t,"series")}),(0,O.A)(this,"getEmptyRow",t=>{const{chartData:{xAxis:n},type:r}=this.props,s=ss.name.includes(r),c=r===Ta.N.word_cloud_chart,{min:d,max:p}=this.getMinMaxValueFromChartData(),g=(c?n.slice(1,2):n).map(()=>({value:this.getRandomValue(d,p,r)})),y=[{value:t===1?""+I18N.SettingPanel.chartInfo.editable.data:ENV.IS_MO?I18N.SettingPanel.chartInfo.editable.data+" "+t:""+I18N.SettingPanel.chartInfo.editable.data+t,className:"yAxis"},...g];return s?y:[{component:this.renderColorBtn({index:t}),readOnly:!0,className:"colorComponent",forceComponent:!0},...y]}),(0,O.A)(this,"getMinMaxValueFromChartData",()=>{const{chartData:{series:t},type:n}=this.props,r=Hl.includes(n),s=t.map(p=>{let{data:g}=p;return(r?g.slice(g.length-1):g).map(w=>Math.round(Number(w)))}).flat(1/0),c=Math.min(...s),d=Math.max(...s);return{min:c,max:d}}),(0,O.A)(this,"getRandomValue",(t,n,r)=>{if(r===Ta.N.liquid_fill_gauge_chart){const s=Math.min(t,1),c=Math.min(n,1);return(Math.random()*(c-s)+s).toFixed(1)}return Math.round(Math.random()*(n-t))+t}),(0,O.A)(this,"onInsertRow",async t=>{var n;const{chartData:{series:r},type:s}=this.props,{currentSelect:{row:c},data:d}=this.state,p=ss.name.includes(s),g=s===Ta.N.boxplot_chart,y=s===Ta.N.word_cloud_chart,w=t==="top"?c:c+1,_=t==="top"?c:c+1,j=this.getEmptyRow(_);d.splice(w,0,j);const Z=Yi.includes(s)?d.map(xe=>xe.slice(0,3)):d;this.setState({data:Z});const Q=JSON.parse(JSON.stringify(r)),se=y?{rotation:(0,vi.s)()}:{},ie=g?_:_-1,he=g?{color:(n=r[0])==null?void 0:n.color}:{};Q.splice(ie,0,{data:j.slice(p?1:2).map(xe=>xe.value),name:j[p?0:1].value,type:r[r.length-1].type,...he,...se}),await this.handleChangeSeries(Q)}),(0,O.A)(this,"onDeleteRow",async()=>{const{chartData:t,type:n}=this.props,{currentSelect:{row:r},data:s}=this.state,{series:c}=t,d=JSON.parse(JSON.stringify(c)),p=fs.data.includes(n);n===Ta.N.mixed_bar_line_chart&&c.length===2||s.length<=(p?1:2)||(s.splice(r,1),this.setState({data:s}),d.splice(p?r:r-1,1),await this.handleChangeSeries(d))}),(0,O.A)(this,"onInsertCol",async t=>{const{chartData:{series:n,xAxis:r},type:s}=this.props,c=ss.data.includes(s),d=ss.name.includes(s),p=fs.data.includes(s),g=JSON.parse(JSON.stringify(n)),y=[...r],{currentSelect:{col:w},data:_}=this.state,{min:j,max:N}=this.getMinMaxValueFromChartData(),Z=t==="left"?w:w+1,Q=c?Z:d?Z-1:Z-2,se=Q?ENV.IS_MO?I18N.SettingPanel.chartInfo.editable.value+" "+Q:""+I18N.SettingPanel.chartInfo.editable.value+Q:""+I18N.SettingPanel.chartInfo.editable.value;_.forEach((ie,he)=>{!he&&!p?ie.splice(Z,0,{value:se,className:"xAxis",cellType:"string"}):ie!=null&&ie.length&&ie.splice(Z,0,{value:this.getRandomValue(j,N,s),cellType:"number"})}),this.setState({data:_}),y.splice(Q,0,se),await this.handleChangeXAxis(y),g.forEach((ie,he)=>{var xe;if((xe=ie.data)!=null&&xe.length){const Se=p?he%(_.length-1):he%(_.length-1)+1;ie.data.splice(Q,0,_[Se][Z].value)}}),await this.handleChangeSeries(g)}),(0,O.A)(this,"onDeleteCol",async()=>{const{chartData:{series:t,xAxis:n},type:r}=this.props,s=ss.data.includes(r),c=ss.name.includes(r),d=fs.data.includes(r),p=JSON.parse(JSON.stringify(t)),g=[...n],{currentSelect:{col:y},data:w}=this.state,_=s?1:c?2:3;if(w[d?0:1].length<=_)return;w.map(Z=>Z.splice(y,1)),this.setState({data:w});const N=s?y:c?y-1:y-2;g.splice(N,1),await this.handleChangeXAxis(g),p.map(Z=>Z.data.splice(N,1)),await this.handleChangeSeries(p)}),(0,O.A)(this,"onCloseMenu",()=>this.setState({isShowContextMenu:!1})),(0,O.A)(this,"onClickRightCol",async()=>{const{chartData:{xAxis:t},type:n}=this.props,r=ss.data.includes(n),s=ss.name.includes(n),c=n===Ta.N.sunburst_chart,d=t.length,p=r?c?d-2:d-1:s?d:d+1;await this.setState({currentSelect:{row:1,col:p}}),await this.onInsertCol("right"),this.handleScrollRight()}),(0,O.A)(this,"onClickBottomRow",async()=>{const{chartData:{series:t}}=this.props;await this.setState({currentSelect:{row:t.length,col:2}}),await this.onInsertRow("bottom"),this.handleScrollBottom()}),(0,O.A)(this,"handleScrollBottom",()=>{const t=document.querySelector(".table-data-sheet .scroll-container");if(!t)return;const n=t.offsetHeight,r=t.scrollHeight;r!==n&&(0,al.VG)(t,r-n,200)}),(0,O.A)(this,"handleScrollRight",()=>{const t=document.querySelector(".table-data-sheet .scroll-container");if(!t)return;const n=t.offsetWidth,r=t.scrollWidth;r!==n&&(0,al.VG)(t,r-n,200,"left")}),(0,O.A)(this,"customParsePaste",t=>{const{type:n}=this.props,{data:r,currentSelect:{row:s,col:c}}=this.state,d=ss.data.includes(n),p=ss.name.includes(n);let g=[[]];t.includes(",")&&!t.includes(" ")?g=t.split("\r\n").map(_=>_.split(",")):g=(0,Yn.yh)(t,(0,ii.cX)(),!1);const y=(_,j,N)=>{var Z;const Q=_.trim(),se=((Z=r[j])==null||(Z=Z[N])==null?void 0:Z.value)||"";return isNaN(Number(Q))?se:Q},w=_=>_.replace(/\n/g,"");return g.map((_,j)=>{const N=s+j;return _.map((Z,Q)=>{const se=c+Q;return p?n===Ta.N.boxplot_chart?se!==0?y(Z,N,se):w(Z):N!==0&&se!==0?y(Z,N,se):w(Z):d?n===Ta.N.waterfall_chart?N!==0?y(Z,N,se):w(Z):se===r[1].length-1&&N!==0?y(Z,N,se):w(Z):N!==0&&se!==1?y(Z,N,se):w(Z)})})}),(0,O.A)(this,"handleCopy",t=>{let{event:n,dataRenderer:r,valueRenderer:s,data:c,start:d,end:p,range:g}=t;const y=g(d.i,p.i).map(w=>g(d.j,p.j).map(_=>{const j=c[w][_],N=r?r(j,w,_):null;return N===""||N===null||typeof N>"u"?s(j,w,_):N}).join(" ")).join("\r\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",y):n.clipboardData.setData("text/plain",y)}),(0,O.A)(this,"onSelect",t=>{let{start:n,end:r}=t;n.i===r.i&&n.j===r.j&&this.setState({currentSelect:{row:n.i,col:n.j}})})}componentDidMount(){const t=this.initData();this.setState({data:t})}componentDidUpdate(t){if(t.category!==this.props.category||t.chartData!==this.props.chartData||t.type!==this.props.type){const{chartData:{series:n},type:r}=this.props,s=r===Ta.N.map_chart,c=r===Ta.N.boxplot_chart,d=s?this.updateMapChartSeriesData(n):this.updateSeriesData(n),p=c?d:[this.state.data[0],...d];this.setState({data:p})}}render(){const{isShowContextMenu:t,position:n,currentSelect:r,data:s,canAddRightColOnScroll:c,canAddBottomRowOnScroll:d}=this.state,{type:p,chartData:g,onChangeHasEditingSaved:y,themeConfig:w}=this.props,{row:_,col:j}=r,N=Yi.includes(p),Z=p===Ta.N.boxplot_chart,Q=Wi({type:p,col:j,data:s}),se=es({type:p,data:s}),ie=xs(p,j,s),he=!As.includes(p),xe=Ui({type:p,row:_,data:s}),Se=Ns({type:p,col:j,data:s});return(0,o.jsxs)(Bu,{children:[(0,o.jsxs)("div",{className:"tableWrapper",children:[(0,o.jsxs)("div",{className:m()("tableContainer",{"has-add-bottom-row":he}),children:[(0,o.jsx)(B,{className:m()({"has-add-right-col":se}),verticalDragCallback:_e=>this.setState({canAddRightColOnScroll:!_e}),horizontalCallback:_e=>this.setState({canAddBottomRowOnScroll:!_e}),children:(0,o.jsx)(qi.Ay,{data:s,onCellsChanged:this.onCellsChanged,valueRenderer:_e=>_e==null?void 0:_e.value,attributesRenderer:_e=>{var De;return p===Ta.N.sunburst_chart&&_e.index===((De=s[0])==null?void 0:De.length)-1?{style:{backgroundColor:w===ic.Sx.LIGHT?Fc.af.color_background_card.value:Fc.qY.color_background_card.value}}:{}},onContextMenu:this.onContextMenu,parsePaste:this.customParsePaste,onSelect:this.onSelect,handleCopy:this.handleCopy,dataEditor:_e=>(0,o.jsx)(Si,{..._e,isPieType:N,chartData:g,onChangeHasEditingSaved:y})})}),se&&(0,o.jsx)("div",{className:m()("actionData","addRightCol",{"hide-border-bottom":he},{"can-add-on-scroll":c}),onClick:this.onClickRightCol,children:(0,o.jsx)(Et.C,{className:"plus",name:"design/chart/edit/plus"})})]}),he&&(0,o.jsx)("div",{className:m()("actionData","addBottomRaw",{all:Uc(p)},{"can-add-on-scroll":d}),onClick:this.onClickBottomRow,children:(0,o.jsx)(Et.C,{className:"plus",name:"design/chart/edit/plus"})})]}),t&&(0,o.jsx)(Zr,{position:n,isBoxPlotType:Z,isCanAddLeftCol:Q,isCanAddRightCol:ie,isCanNotDelCol:Se,isCanNotDelRow:xe,isCanAddBottomRow:he,handleClose:this.onCloseMenu,handleCopy:this.onCopy,handleInsertTopRow:()=>this.onInsertRow("top"),handleInsertBottomRow:()=>this.onInsertRow("bottom"),handleDeleteRow:this.onDeleteRow,handleInsertLeftCol:()=>this.onInsertCol("left"),handleInsertRightCol:()=>this.onInsertCol("right"),handleDeleteCol:this.onDeleteCol,currentSelect:r})]})}}const B=(0,l.memo)(e=>{let{className:t,children:n,verticalDragCallback:r,horizontalCallback:s}=e;const c=l.useRef(null);return(0,o.jsxs)("div",{className:m()("table-data-sheet",t),children:[(0,o.jsx)(Sp,{className:"scroll-container",ref:c,children:n}),c&&(0,o.jsx)(Ii.$T,{containerRef:c,isAutoHideBar:!1,verticalDragCallback:r,horizontalCallback:s})]})}),R=(0,k.Mz)([Oe.nE,Y.tp,q.O4],(e,t,n)=>{const s=e.length>0&&t&&e.find(g=>g.key===t),{key:c,hotAttr:{chartData:d,chartConfig:p}}=s;return{cid:c,chartData:d,type:p.chartType,category:p.chartCategory,theme:p.chartTheme,themeConfig:n}}),A=(0,a.Ng)(e=>R(e))(nh),u=E.Ay.div.withConfig({displayName:"styles__StyledChartTableSettingModal",componentId:"sc-11rotjh-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),x=(0,E.Ay)(Il.A).withConfig({displayName:"styles__StyledChartTableSettingModalContent",componentId:"sc-11rotjh-1"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";display:flex;justify-content:space-between;span{font-size:16px;font-weight:500;color:",";pointer-events:none;}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}footer{height:37px;width:100%;text-align:center;span.desc{color:",";}}.content{padding:20px;height:calc(100% - 50px - 37px);width:100%;}"],e=>e.theme.ai_modal_border_style,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),b=300,T=1200,L=240,z=800,W=544,X=333,ee="chart_table_setting_modal";class pe extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setContainerRef",c=>this.$containerRef=c),(0,O.A)(this,"handleMouseDown",c=>{this.$containerRef.contains(c.target)||document.querySelector(".mb-right-panel")&&document.querySelector(".mb-right-panel").contains(c.target)||document.querySelector(".item-select-border .editChartAction")&&document.querySelector(".item-select-border .editChartAction").contains(c.target)||document.querySelector(".chartTableMenu")&&(document.querySelector(".chartTableMenu").contains(c.target)||document.querySelector(".context-menu-mask").contains(c.target))||document.querySelector(".SelectMenu.chartSelectMenu")&&document.querySelector(".SelectMenu.chartSelectMenu").contains(c.target)||document.querySelector(".WorkspaceSelectMenu.border_style_select_menu")&&document.querySelector(".WorkspaceSelectMenu.border_style_select_menu").contains(c.target)||document.querySelector("[type=color-panel]")&&document.querySelector("[type=color-panel]").contains(c.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".--mb--color-picker").contains(c.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".SelectOption")||this.handleClose()}),(0,O.A)(this,"handleChangeHasEditingSaved",c=>this.setState({hasEditingSaved:c})),(0,O.A)(this,"handleMove",(c,d)=>{this.setState({left:c,top:d}),(0,jt.a0)(ee+"_position",{left:c,top:d},jt.qW.Object)}),(0,O.A)(this,"handleClose",()=>{const{dispatch:c}=this.props;if(!this.state.hasEditingSaved){setTimeout(()=>{c({type:"entry:chart:out:edit"})},300);return}c({type:"entry:chart:out:edit"})}),(0,O.A)(this,"handleResize",(c,d,p)=>{const{top:g,left:y,width:w,height:_}=c,j={left:y,top:g};let N={width:w,height:_};if(["tl","tr","bl","br"].includes(p)){if((w<b||w>T)&&(_<L||_>z))return;const Z=Math.min(Math.max(w,b),T),Q=Math.min(Math.max(_,L),z);N={width:Z,height:Q}}else if(w<b||w>T||_<L||_>z)return;this.setState({...N,...j}),(0,jt.a0)(ee+"_position",j,jt.qW.Object),(0,jt.a0)(ee+"_size",N,jt.qW.Object)}),(0,O.A)(this,"handleUpdateDragOrResizeModal",c=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:c}})});const n={left:(window.innerWidth-W)/2,top:(window.innerHeight-X)/2},r=(0,jt.Yt)(ee+"_position",n,jt.qW.Object),s=(0,jt.Yt)(ee+"_size",{width:W,height:X},jt.qW.Object);this.state={width:s.width,height:s.height,left:r.left,top:r.top,hasEditingSaved:!0}}componentDidUpdate(){this.props.showChartSettings||this.props.dispatch({type:"entry:chart:out:edit"})}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1)}render(){const{showChartSettings:t}=this.props,{width:n,height:r,left:s,top:c}=this.state;return t?(0,o.jsxs)(u,{ref:this.setContainerRef,children:[(0,o.jsx)(dr.A,{position:{left:s,top:c},dragContainer:"chart-table-setting-modal",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(x,{id:"chart-table-setting-modal",style:{width:n,height:r},children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{children:I18N.SettingPanel.chartInfo.changeChartDataOrColor}),(0,o.jsx)(Et.C,{name:"common/close",className:"close",onClick:this.handleClose})]}),(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(A,{onChangeHasEditingSaved:this.handleChangeHasEditingSaved})}),(0,o.jsx)("footer",{children:(0,o.jsx)("span",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.desc1+" "+rn.V.past.join(" ")+" "+I18N.SettingPanel.chartInfo.editable.desc2})})]})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:c,left:s,width:n,height:r,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(this.handleMouseDown,{capture:!0})})]}):null}}const ye=(0,k.Mz)([Oe.p$,Y.tp],(e,t)=>({showChartSettings:e.length>0&&e.includes(t)})),Ie=(0,a.Ng)(e=>ye(e))(pe);var Ue=i(93157);const Re=(0,l.memo)(e=>{let{isOpen:t,activePageKey:n,activeCanvasKey:r,...s}=e;const c=(0,a.d4)(Ge.UV),d=(0,a.d4)(Oe.nE),p=(0,a.d4)(Ys.n),g=(0,l.useMemo)(()=>({left:p+30,top:78}),[p]),y=(0,a.d4)(Y.jx)===Te.qi.OnlyView,w=(0,a.d4)(re.z$),_=(0,a.wA)(),[j,N]=(0,l.useState)({activePageKey:n,activeCanvasKey:r,resetTargetCanvasScrollOffset:!0}),Z=(0,l.useRef)(j.activeCanvasKey);Z.current=j.activeCanvasKey,(0,l.useEffect)(()=>{if(t&&d!=null&&d.length){const se=d.some(xe=>{let{key:Se}=xe;return sdkStore.locUpColdCanvasKey(Se)===j.activeCanvasKey});let ie=j.activePageKey,he=j.activeCanvasKey;se||d.find(xe=>{var Se;let{key:_e}=xe;const De=sdkStore.locUpColdCanvasKey(_e)||"";return De&&!((Se=sdkStore.getHotItem(De))!=null&&Se.hotAttr.asOverlay)?(ie=sdkStore.locUpRBPageKey(De),he=De,!0):!1}),N({activePageKey:ie,activeCanvasKey:he,resetTargetCanvasScrollOffset:!0})}},[t,d]),(0,l.useEffect)(()=>{let se;return t&&(se=c.addSdkStoreChangeListener(ie=>{let{isRemote:he}=ie;he&&Z.current&&c.isTrashed(Z.current)&&(MB.notice({text:"\u5F53\u524D\u9009\u4E2D\u9875\u9762\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"}),_({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!1}}}))})),()=>{var ie;(ie=se)==null||ie()}},[t,c]);const Q=se=>{let{activePageKey:ie,activeCanvasKey:he,resetTargetCanvasScrollOffset:xe}=se;N({activePageKey:ie,activeCanvasKey:he,resetTargetCanvasScrollOffset:xe})};return t&&(0,o.jsx)(ze,{position:g,onlyView:y,sharing:w,dispatch:_,...s,...j,onActiveRunner:Q})});class ze extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleWheel",w=>w.preventDefault()),(0,O.A)(this,"handleMove",(w,_)=>{this.setState({left:w,top:_})}),(0,O.A)(this,"handleResize",(w,_,j)=>{(0,Ls.qd)(w,j,N=>{var Z;this.setState(N);const{width:Q,height:se}=N;!((Z=MB)==null||(Z=Z.webpackInterface)==null)&&Z.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:Q,height:se-Ls.lp}}})})}),(0,O.A)(this,"handleLunch",w=>{let{activePageKey:_,activeCanvasKey:j}=w;const{onlyView:N,projectAlike:Z,dispatch:Q}=this.props;N?(MB.switchToPreview(j),(0,Ue.bO)({currentProject:Z,source:"\u603B\u89C8\u4E0B\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"})):(Q({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!1}}}),Q({type:"entry:open:Launch",payload:{activePageKey:_,activeCanvasKey:j,source:"\u7F16\u8F91\u533A\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"}}))}),(0,O.A)(this,"handleUpdateDragOrResizeModal",w=>{var _,j;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:w}}),(_=MB)!=null&&_.runnerController&&((j=MB)==null||(j=j.runnerController)==null||j.setIsPreventEvent(w))}),this.$portalElem=(0,Ls.ke)();const{PreviewApp:n,runnerController:r,messageBucket:s,webpackInterface:c}=(0,Kc._)(Pd.A);MB.previewModalActiveRunner=w=>t.onActiveRunner(w),this.popGlobalPreviewRelated=zs.A.tryStashGlobalPreviewRelated({runnerController:r,messageBucket:s,webpackInterface:c}),this.PreviewApp=n;const d=t.height,p=t.width,{width:g,height:y}=(0,Ls.Xw)({width:p,height:d},{width:p,height:d});this.state={left:t.position.left,top:t.position.top,width:g,height:y+Ls.lp}}componentDidMount(){var t;if(!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store))return;const{theme:n,sharing:r}=this.props;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:n}}),r&&MB.webpackInterface.store.dispatch({type:"entry:preview:update:current:sharing",payload:{sharing:r}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,r){var s;(s=MB)!=null&&(s=s.webpackInterface)!=null&&s.store&&(t.activeCanvasKey!==this.props.activeCanvasKey?MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset,resetTargetSubWidgetsState:this.props.resetTargetCanvasScrollOffset,keepOverlayStack:!0}}):t.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:r,activePageKey:s,activeCanvasKey:c,onClose:d}=this.props,{PreviewApp:p}=this,{left:g,top:y,width:w,height:_}=this.state;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,ds.createPortal)((0,o.jsxs)(ul,{children:[(0,o.jsx)(dr.A,{position:{left:g,top:y},dragContainer:Ls.er.CanvasModal,onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsx)(Oc,{id:Ls.er.CanvasModal,style:{width:w,height:_},className:"preview-modal-portal-root is-focus-panel",children:(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(p,{store:MB.webpackInterface.store,projectAlike:r,activePageKey:s,activeCanvasKey:c,isQuickPreview:!0,quickPreviewSize:{width:w,height:_-Ls.lp},onCloseModal:d,onLunch:this.handleLunch})})})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:y,left:g,width:w,height:_,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const st=(0,k.Mz)([Oe.nE,Ys.n,Y.jx,re.z$],(e,t,n,r)=>{const s=n===Te.qi.OnlyView;return{selectedItems:e,position:{left:t+30,top:78},onlyView:s,sharing:r}}),xt=(0,a.Ng)(st)(Re),Nt=(0,E.Ay)(Il.A).withConfig({displayName:"styles__StyledWidgetOperationLayoutModal",componentId:"sc-hr74vf-0"})(["z-index:108;width:224px;height:124px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 12px 0 16px;.title{color:",";font-size:12px;font-weight:500;}.close{width:24px;height:24px;cursor:pointer;color:",";&:hover,&:active{color:",";}}}.mainContainer{display:flex;flex-wrap:wrap;align-content:space-between;justify-content:space-between;width:224px;height:84px;padding:10px 16px;.operation-item{display:flex;align-items:center;justify-content:space-between;width:88px;height:28px;padding:0 22px 0 14px;border:1px solid ",";border-radius:6px;background-color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}&.disabled{cursor:not-allowed;background-color:",";color:",";}.operation-item-icon{width:24px;height:24px;color:",";}.operation-item-name{font-size:12px;font-weight:500;color:",";}&:nth-child(1) svg.operation-item-icon path:nth-child(1),&:nth-child(2) svg.operation-item-icon path:nth-child(2){fill:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_white,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),$t="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_TOP",An="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_LEFT",zn=e=>{const{dispatch:t}=e,[n,r]=(0,l.useState)(()=>(0,jt.Yt)($t,127,jt.qW.Number)),[s,c]=(0,l.useState)(()=>(0,jt.Yt)(An,window.innerWidth-468,jt.qW.Number)),[d,p]=(0,l.useState)(window.innerWidth),[g,y]=(0,l.useState)(window.innerHeight),w=(0,l.useCallback)((he,xe)=>{const Se=Math.max(Math.min(xe,g-124),0),_e=Math.max(Math.min(he,d-224),0);r(Se),c(_e),(0,jt.a0)($t,Se,jt.qW.Number),(0,jt.a0)(An,_e,jt.qW.Number)},[g,d]),_=()=>{t({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!1}}})},j=(0,l.useCallback)(()=>{p(window.innerWidth),y(window.innerHeight),w(s,n)},[w,s,n]);(0,l.useEffect)(()=>(window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}),[j]);const N=()=>{t({type:"entry:items:send:front"}),(0,Jt.$n)({operationType:Jt.VW.Top}),_()},Z=()=>{t({type:"entry:items:send:back"}),(0,Jt.$n)({operationType:Jt.VW.Bottom}),_()},Q=()=>{t({type:"entry:items:forward"}),(0,Jt.$n)({operationType:Jt.VW.MoveUp})},se=()=>{t({type:"entry:items:backward"}),(0,Jt.$n)({operationType:Jt.VW.MoveDown})},ie=he=>{const{target:xe}=he;xe.closest("#widget-operation-layout-modal")||_()};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(dr.A,{position:{left:s,top:n},dragContainer:"widget-operation-layout-modal",onMove:w,children:(0,o.jsxs)(Nt,{id:"widget-operation-layout-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",type:"draggable",children:I18N.Common.layer_adjustment}),(0,o.jsx)(Et.C,{name:"common/close",className:"close",onClick:_})]}),(0,o.jsxs)("div",{className:"mainContainer",children:[(0,o.jsx)(lo,{iconName:"toolbar/z_front",name:I18N.ToolBar.send_front,onClick:N}),(0,o.jsx)(lo,{iconName:"toolbar/z_back",name:I18N.ToolBar.send_back,onClick:Z}),(0,o.jsx)(lo,{iconName:"common/z_forward",name:I18N.ContextMenu.move_up,onClick:Q}),(0,o.jsx)(lo,{iconName:"common/z_backward",name:I18N.ContextMenu.move_down,onClick:se})]})]})}),(0,o.jsx)(Jr.A,{target:document,onClick:(0,Jr.t)(ie,{capture:!0})})]})},lo=e=>{const{iconName:t,name:n,onClick:r}=e;return(0,o.jsxs)("div",{className:"operation-item",onClick:r,children:[(0,o.jsx)(Et.C,{name:t,className:"operation-item-icon"}),(0,o.jsx)("span",{className:"operation-item-name",children:n})]})},Qn=(0,l.memo)(zn);var Sn=i(65609);const Wo=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledColorPickerDownloadModal",componentId:"sc-15dhwsn-0"})(["&.color-pick-download-modal{.content{p{font-size:14px;line-height:24px;color:",";}}footer{.installation-tutorial{max-height:32px;margin-right:auto;padding:6px 0px;font-size:13px;color:",";&:hover{color:",";}span{border-bottom:1px solid ",";}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_link_normal),qo="https://cdn-release.modao.cc/plugins/chrome/md-1.1.1-chrome.zip",ua="/mb-static/2504/op2cli-redirect.html",Ea=["Chrome","QQBrowser","360Browser","Edge"],wa={Chrome:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u6269\u5C55\u7A0B\u5E8F</strong> &gt; <strong>\u7BA1\u7406\u6269\u5C55\u7A0B\u5E8F</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",QQBrowser:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728QQ\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u5E94\u7528\u4E2D\u5FC3</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ","360Browser":"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728360\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u62D3\u5C55\u7A0B\u5E8F</strong> &gt; <strong>\u6DFB\u52A0\u66F4\u591A\u62D3\u5C55</strong> &gt; <strong>\u5934\u50CF</strong> &gt; <strong>\u6211\u7684\u62D3\u5C55</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",Edge:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728Edge\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u6269\u5C55</strong> &gt; <strong>\u7BA1\u7406\u6269\u5C55</strong></p>\n <p>3\u3001\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",other:"\n <p>\u5438\u7BA1\u5DE5\u5177\u4EC5\u652F\u6301\u5728Chrome\u6D4F\u89C8\u5668\u6216\u5BA2\u6237\u7AEF\u4E2D\u4F7F\u7528\uFF0C<strong>\u8BF7\u4F7F\u7528Chrome\u6D4F\u89C8\u5668\u6216\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF</strong></p>\n "},Ja=e=>{const{isOpen:t,onClose:n}=e,r=(0,ii.VK)().name,s=()=>ENV.IS_ON_PREMISES?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("a",{className:"installation-tutorial",target:"_blank",rel:"noreferrer",href:"https://modao.cc/hc/articles/333#%E5%AE%89%E8%A3%85%E5%8F%96%E8%89%B2%E5%99%A8%E6%8F%92%E4%BB%B6",children:[(0,o.jsx)("span",{children:"\u5B89\u88C5\u6559\u7A0B"}),">"]}),c=()=>(0,o.jsx)(Sn.A,{type:"secondary",onClick:()=>{n()},children:"\u53D6\u6D88"}),d=()=>{const Q=ENV.IS_ON_PREMISES?ua:qo;window.open(Q,"_blank")},p=()=>{window.open("https://modao.cc/feature/downloads.html#part1","_blank")},g=()=>{window.open("https://www.google.com/chrome/","_blank")},y=Ea.indexOf(r)===-1,w=wa[y?"other":r],_={shouldCloseOnAction:!1},j={type:"secondary",shouldCloseOnAction:!1,onClick:g},N={type:"secondary"},Z={type:"primary",shouldCloseOnAction:!1,onClick:d};return console.log("ColorPickerDownloadModal",t),y?(0,o.jsx)(Wo,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:t,canConfirm:!0,mask:!1,onClose:n,cancelText:"\u524D\u5F80Chrome",confirmText:"\u4E0B\u8F7D\u5BA2\u6237\u7AEF",onConfirm:p,cancelBtnProps:j,confirmBtnProps:_,renderFooterContent:c,children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:w}})}):(0,o.jsx)(Wo,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:t,canConfirm:!0,mask:!1,onClose:n,cancelText:"\u4E0B\u8F7D\u63D2\u4EF6",confirmText:"\u5B8C\u6210",cancelBtnProps:Z,confirmBtnProps:N,renderFooterContent:s,children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:w}})})},La=(0,l.memo)(Ja);var Na=i(28681),gr=i(21259);class Pi extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"$portalElem",document.createElement("div")),(0,O.A)(this,"handleNotips",()=>{const{onClose:t,dispatch:n}=this.props;(0,jt.a0)(Na.MQ,!0,jt.qW.Boolean),t(),n({type:"reducer:flag:update-state",payload:{isShowLess12Mark:!1}})})}componentDidMount(){document.body.appendChild(this.$portalElem)}componentWillUnmount(){document.body.removeChild(this.$portalElem)}render(){const{position:t,onClose:n}=this.props;return t?(0,ds.createPortal)((0,o.jsxs)(gr.v,{position:t,children:[(0,o.jsxs)("header",{children:[(0,o.jsx)("span",{children:I18N.dModals.less_font_size.title}),(0,o.jsx)("div",{className:"close-btn",onClick:n,children:(0,o.jsx)(Et.C,{name:"common/close"})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("span",{children:I18N.dModals.less_font_size.desc}),(0,o.jsxs)("div",{className:"bottomContainer",children:[(0,o.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:I18N.dModals.less_font_size.view_tutorial}),(0,o.jsx)("span",{className:"noTips",onClick:this.handleNotips,children:I18N.Common.no_tips})]})]})]}),this.$portalElem):null}}var _r=i(12411),ci=i(63239);const Ws=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledCanvasConvertedToPixsoModal",componentId:"sc-7tggkc-0"})(["width:776px;height:448px;background-color:#fff;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.1);border-radius:8px;overflow:hidden;.content{width:100%;height:448px;padding:0;}"]),Fi=(0,l.memo)(e=>{const{isOpen:t,currentUser:n,currentOrg:r,theme:s,rootProject:c,pageType:d=ci.g6.SINGLE_CANVAS,from:p,onClose:g}=e,y=(0,a.d4)(Oe.p$),w=(0,a.d4)(ht.p$);if(d===ci.g6.SINGLE_CANVAS){var _;if(!y||y.length===0)return null;const j=y[0],N=sdkStore.getHotItem(j);if(!((N==null||(_=N.hotAttr)==null?void 0:_.type)===ne.x.Canvas&&!(0,ui.OO)(j)))return null}else if(d===ci.g6.CURRENT_PAGE&&!(w!=null&&w.key))return null;return(0,o.jsx)(Ws,{isOpen:t,className:"canvas-converted-to-pixso-modal",width:776,onClose:g,canCloseOnClickMask:!1,modalRender:()=>(0,o.jsx)(_r.A,{currentOrg:r,currentUser:n,theme:s,pageType:d,canvasKey:d===ci.g6.SINGLE_CANVAS?y[0]:void 0,currentPageKey:d===ci.g6.CURRENT_PAGE?w==null?void 0:w.key:void 0,currentProject:c,from:p,onClose:g})})}),xi=E.Ay.div.withConfig({displayName:"style__StyledNoticeModal",componentId:"sc-1eqgf65-0"})(["&.mask{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(31,41,46,0.6);z-index:9999;transition:all 1s;.banner-bg{width:712px;height:513px;background:url(",") no-repeat center center;background-size:cover;position:fixed;left:50%;bottom:50%;transform:translate(-50%,50%);transform-origin:bottom left;opacity:1;transition:all 1s;z-index:51;.banner-close{position:absolute;width:32px;height:32px;right:","px;top:","px;display:flex;justify-content:center;align-items:center;cursor:pointer;svg{rect{fill:rgba(53,68,93,0.3);}path{fill:#fff}}.close-btn{width:32px;height:32px;}&:hover{svg{rect{fill:rgba(53,68,93,0.47);}}}&.mask{width:32px;height:32px;border-radius:50%;background-color:rgba(53,68,93,0.30);top:0px;right:0px;&:hover{background-color:rgba(53,68,93,0.47);}}}.buy-btn{position:absolute;bottom:",";left:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;background:url(",") no-repeat center;background-size:contain;}}}&.hide{background:rgba(31,41,46,0);pointer-events:none;.banner-bg{left:80%;bottom:95%;transform:scale(0.07) translate(0,0);opacity:0;}}"],e=>e.guideImgUrl,e=>e.guideCloseBtnStyle.right,e=>e.guideCloseBtnStyle.top,e=>e.btnImgStyle.bottom,e=>e.btnImgStyle.left,e=>e.btnImgStyle.width,e=>e.btnImgStyle.height,e=>e.btnImgUrl),Ai={top:"0",right:"-14"},Rr={width:"150",height:"43",bottom:"11%",left:"40%"},Cs="https://cdn.modao.cc/Service%20suspension%20announcement%20konw.png",Hr="https://cdn.modao.cc/Service%20suspension%20announcement.png";function Wr(e){const{isOpen:t}=e,n=(0,l.useRef)(null),r=(0,a.wA)(),s=d=>{var p;d.preventDefault(),d.stopPropagation(),d.nativeEvent.stopImmediatePropagation(),(p=n.current)==null||p.classList.add("hide"),setTimeout(()=>{r({type:"modal:update:state",payload:{noticeModal:{isOpen:!1}}})},1e3)},c=d=>{s(d)};return t?(0,o.jsx)(xi,{className:"activity-banner mask",ref:n,guideImgUrl:Hr,guideCloseBtnStyle:Ai,btnImgUrl:Cs,btnImgStyle:Rr,onClick:c,children:(0,o.jsxs)("a",{className:"banner-bg",children:[(0,o.jsx)("button",{className:"buy-btn"}),(0,o.jsx)("div",{className:"banner-close",onClick:s,children:(0,o.jsx)(Et.C,{className:"close-btn",name:"notice/modal/close"})})]})}):null}var Ti=i(21770);const jl=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledMktWMExportModal",componentId:"sc-1wcwir1-0"})(["&.workspace-modal.mkt-wm-export-modal{width:400px;height:290px;border:none;background:url('/mb-proto2/images/mktWM/mkt_wm_export_modal_bg.png') center center / 400px 290px no-repeat;.header{background-color:transparent;border-bottom:none;padding:0 8px 0 24px;color:",";height:72px;font-size:20px;font-weight:500;line-height:24px;}.content{height:134px;padding:0;background-color:transparent;.modal-content{height:134px;padding:28px 24px 24px 24px;display:flex;flex-direction:column;justify-content:space-between;font-size:13px;font-weight:500;line-height:18px;color:",";p{color:",";}.point{color:rgba(0,161,86,0.85)}}}footer{height:84px;padding:0 24px 4px 24px;background-color:transparent;display:flex;flex-direction:column;.button-root{width:352px;height:40px;max-height:40px;line-height:28px;font-size:14px;border-radius:8px;&.confirm-btn{display:none;}&.confirm-btn-custom{background-color:#415058;color:#FFDCA9;font-weight:600;.btn-text{display:flex;.icon{width:18px;height:18px;margin:5px 6px 5px 0;}}&:hover{background-color:#313C42;}&:active{background-color:#313C42;}}&.export-btn{color:",";font-weight:400;&:hover{color:",";}}}}.close-btn{right:8px;color:",";&:hover{color:",";}}}"],zo.fm.color_text_btn.value_light,zo.fm.color_text_L1.value_light,zo.fm.color_text_L1.value_light,zo.fm.color_text_L3.value_light,zo.fm.color_text_L1.value_light,zo.fm.color_text_L2.value_dark,zo.fm.color_text_L1.value_dark);var bs=i(35428);const Dl=e=>{const{isOpen:t,onExport:n,onClose:r}=e,{isSoloMdMember:s}=(0,Ti.s)(MB.user,MB.currentOrg),c=()=>{r(),n(),(0,bs._)({click_button:"\u5BFC\u51FA-\u7EE7\u7EED\u5BFC\u51FA\u542B\u6C34\u5370\u5185\u5BB9"})},d=()=>{const y=!!MB.currentOrg,w={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(y?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u5BFC\u51FA\u884C\u4E3A\u63D0\u793A-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(y?"org":"solo")+"_watermark_export_"+(s?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...w}),(0,bs._)({click_button:"\u5BFC\u51FA-"+(s?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},p=()=>{r(),(0,bs._)({click_button:"\u5BFC\u51FA-\u5173\u95ED"})},g=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Fl.jn,{className:"confirm-btn-custom",onClick:d,children:[(0,o.jsx)(Et.C,{className:"upgrade-icon",name:"common/watermark/upgrade-"+(s?"mt":"md")}),s?I18N.WaterMark.mkt.upgrade_mkt:I18N.WaterMark.mkt.upgrade_two]}),(0,o.jsx)(Fl.z9,{className:"export-btn",onClick:c,children:I18N.WaterMark.mkt.export_modal.export})]});return(0,o.jsxs)(jl,{isOpen:t,className:"mkt-wm-export-modal",title:s?"\u4ED8\u8D39\u5185\u5BB9\u4F7F\u7528\u987B\u77E5":"\u6C34\u5370\u63D0\u793A",onClose:p,canCloseOnClickMask:!1,canConfirm:!1,canCancel:!1,isUsePortal:!1,renderFooterContent:g,children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_1}),(0,o.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_2})]}),(0,o.jsxs)("p",{children:[I18N.WaterMark.mkt.export_modal.content_3,(0,o.jsx)("span",{className:"point",children:s?I18N.WaterMark.mkt.export_modal.content_4_1:I18N.WaterMark.mkt.export_modal.content_4_2}),I18N.WaterMark.mkt.export_modal.content_5]})]})},ji=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledMktWMUngroupModal",componentId:"sc-z32pp4-0"})(["&.workspace-modal.mkt-wm-ungroup-modal{width:400px;.content{height:80px;}}"]);var Or=i(93413);const Qs=e=>{const{isOpen:t,onClose:n,dispatch:r}=e,s=()=>{n(),MB.commonGuideHelper.markGuideAsRead(Or.c.UNGROUP_WITH_WM)},c=()=>{s()},d=()=>{s(),r({type:"entry:ungroup:items:v2"}),(0,bs._)({click_button:"\u89E3\u7EC4-\u7EE7\u7EED\u6253\u6563"})},p=()=>{s();const{isSoloMdMember:g}=(0,Ti.s)(MB.user,MB.currentOrg),y=!!MB.currentOrg,w={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(y?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u6253\u6563\u64CD\u4F5C\u63D0\u793A-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(y?"org":"solo")+"_watermark_scatter_"+(g?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...w}),(0,bs._)({click_button:"\u89E3\u7EC4-"+(g?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(ji,{isOpen:t,className:"mkt-wm-ungroup-modal",title:I18N.WaterMark.mkt.ungroup_modal.title,onClose:c,canCloseOnClickMask:!1,canConfirm:!0,onConfirm:p,confirmText:I18N.WaterMark.mkt.remove_wm,canCancel:!0,onCancel:d,isUsePortal:!1,cancelText:I18N.WaterMark.mkt.ungroup_modal.continue,children:(0,o.jsx)("p",{children:I18N.WaterMark.mkt.ungroup_modal.content})})})};var r0=i(80228),sd=i(46720),Od=i(63850);const a2=e=>{let{isOpen:t,type:n,position:r,dispatch:s,onClose:c}=e;const[d,p]=(0,l.useState)(r.left),[g,y]=(0,l.useState)(r.top),w=(0,a.d4)(re.an);if(!t)return null;const _=Q=>{s({type:"modal:update:state",payload:{isDragOrResizeModal:Q}})},j=(Q,se)=>{p(Q),y(se),s({type:"modal:update:libPanelModal:position",payload:{left:Q,top:se}})},N=()=>{n==="muban"&&s({type:"style-lib:set:currentMubanFolderData",payload:null}),c()},Z=Q=>{w||Q.target.closest("#lib-panel-modal")||Q.target.closest("#lib-panel-text-edit-modal")||Q.target.closest("#lib-panel-color-edit-modal")||Q.target.closest("#lib-panel-appear-edit-modal")||Q.target.closest(".lib-panel-actions-menu")||Q.target.closest(".border_style_select_menu")||Q.target.closest(".border_width_select_menu")||Q.target.closest(".border-width-menu")||Q.target.closest(".font-options-menu")||Q.target.closest("#font-list-panel")||Q.target.closest(".font-size-input-menu")||Q.target.closest(".--mb--color-picker")||Q.target.closest(".lib-select-menu ul")||Q.target.closest(".context-menu-mask")||Q.target.closest(".WorkspaceSelectMenu")||N()};return(0,o.jsx)(o.Fragment,{children:(0,ds.createPortal)((0,o.jsx)(dr.A,{dragContainer:"lib-panel-modal",position:{left:d,top:g},onMove:j,onMoveStart:()=>_(!0),onMoveEnd:()=>_(!1),children:(0,o.jsxs)(Od.Q,{id:"lib-panel-modal",children:[(0,o.jsx)(r0.A,{type:n,onGetNewEditModalPostion:()=>({left:d-240,top:g}),onClose:N}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(Z,{capture:!0})})]})}),(0,sd.w)())})};var oc=i(2099),Rd=i(21856),Bd=i(8926),Ap=i(26842);const ym=E.Ay.div.withConfig({displayName:"styles__StyledTitleDescInput",componentId:"sc-12oobps-0"})([".item{",";}"],Ap.WT),oh=e=>{let{title:t,desc:n,onSetTitle:r,onSetDesc:s}=e;const c=(0,l.useRef)(null);(0,l.useEffect)(()=>{var y;c==null||(y=c.current)==null||y.focus()},[]);const d=y=>{r(y.target.value)},p=y=>s(y.target.value),g=y=>{y.key==="Enter"&&y.target.matches(":focus")&&(y.stopPropagation(),y.target.blur())};return(0,o.jsxs)(ym,{className:"title-desc-input-wrap",children:[(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u540D\u79F0"}),(0,o.jsx)("input",{type:"text",className:"item-input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",value:t,maxLength:50,ref:c,onChange:d,onKeyDown:g})]}),(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u63CF\u8FF0"}),(0,o.jsx)("input",{type:"text",className:"item-input",placeholder:"\u8BF7\u63CF\u8FF0\u7528\u6CD5",value:n,maxLength:200,onChange:p,onKeyDown:g})]})]})},ah=E.Ay.div.withConfig({displayName:"styled__StyledCreateColorModal",componentId:"sc-yq4j42-0"})(["position:absolute;width:240px;height:220px;background-color:",";border:1px solid ",";border-radius:8px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);z-index:300;display:flex;flex-direction:column;header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.right-content{width:24px;height:24px;border-radius:4px;cursor:pointer;.svg-icon{width:24px;height:24px;}&:hover{background:",";}&:active{background:",";}}}.content{padding:16px 16px 0;.item{",";.color-btn-has-hex-input{width:144px;.color-btn-wrap{flex:none;margin-left:auto;margin-right:0;width:144px;height:28px;max-width:none;.hex-a-input-wrap{width:110px;margin-left:4px;.hex-a-input{width:52px;input{margin-left:15px;}}}}}}}button.create-button{",";margin-right:16px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,Ap.WT,Ap.qf);var Vc=i(70812);const jh=e=>{let{position:t,type:n,color:r,attr:s="solidColor",supAttr:c="fill",title:d="",desc:p="",currentKey:g="",sup:y="B@style",onClose:w,onSetRefStyle:_,onColorChange:j,dispatch:N,onConfirm:Z,onCancel:Q}=e;const se=(0,a.d4)(Oe.p$),ie=(0,a.d4)(re.eo),he=(0,a.d4)(re.an),[xe,Se]=(0,l.useState)(t.left),[_e,De]=(0,l.useState)(t.top),[Je,Ne]=(0,l.useState)(d),[pt,_t]=(0,l.useState)(p),[gt,Ct]=(0,l.useState)(r);(0,l.useEffect)(()=>{Ne(d),_t(p),Ct(r)},[r,p,d]);const zt=(oa,Ao)=>{Se(oa),De(Ao)},Dt=oa=>{N({type:"modal:update:state",payload:{isDragOrResizeModal:oa}})},sn=oa=>{Ct(oa)},Rn=()=>{var oa;if(n==="create"){const va=Je||"#"+(0,jr.L5)((0,jr.NI)(gt.solidColor)).toLocaleUpperCase().slice(0,-2),{hotItems:ra,name:Jo}=(0,oc.ws)(va,"color",y),$o=(0,Rd.Z_)(y||"B@style"),sa=(0,oc.QH)({name:Jo,zIndex:$o+1,fill:gt.solidColor,styleType:"color",desc:pt,attrType:"fill",libKey:"",refStyles:[]},ra.length>0?ra[ra.length-1].key:y);_==null||_(sa),j==null||j({value:gt,needClearRef:!1}),N({type:"entry:libStyle:update:widget:refStyles",payload:{supAttr:c,selections:se,type:"color",key:s,refKey:sa==null?void 0:sa.key}}),(0,oc.qP)(sa.key)}if(n==="edit"){const va=sdkStore.getHotItem(g);if(va){var Ao,ca;let ra=Je||"#"+(0,jr.L5)((0,jr.NI)(gt.solidColor)).toLocaleUpperCase().slice(0,-2),Jo=va.sup;const{hotItems:$o,name:sa}=(0,oc.ws)(ra,"color",Jo);$o.length>0&&(Jo=(Ao=$o[$o.length-1])==null?void 0:Ao.key),ra=sa;const da={...va,hotAttr:{...va.hotAttr,name:ra,desc:pt,fill:gt.solidColor},sup:Jo},nr=((ca=(0,oc.OP)({selections:se,attr:s,supAttr:c,styleType:"color"}))==null?void 0:ca.key)===g;if(sdkStore.updateHotItem(da),nr&&(_==null||_(da),j==null||j({value:gt,needClearRef:!1})),gt.solidColor!==r.solidColor){const{flatChgList:cr,otherPageFlatChgList:Vr,isUpdateBasket:yr}=(0,Bd.sw)(ie,gt,g);N({type:"entry:widget:change",payload:{flatChgList:cr}}),yr&&N({type:"entry:rebuild:screen-widget-tree"}),setTimeout(()=>{sdkStore.updateHotItemBatch(Vr)},16)}}}N({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),Z&&Z(),Lo(),w(),Vc.U4.protoStyleTrack((oa=MB)==null||(oa=oa.user)==null?void 0:oa.id,n==="create"?"\u521B\u5EFA":"\u66F4\u65B0","color")},On=()=>{const oa=document.querySelector(".--mb--color-picker");if(oa){const{left:Ao,top:ca}=oa.getBoundingClientRect();N({type:"colorpanel:set:position",payload:{position:{left:Ao,top:ca}}})}},Lo=()=>{N({type:"colorpanel:set:state",payload:{supAttr:c,attr:s}}),On()},Yo=()=>{Lo(),Q&&Q(),w()},Cn=oa=>{he||oa.target.closest("#lib-panel-color-edit-modal")||oa.target.closest(".--mb--color-picker")||oa.target.closest(".WorkspaceSelectMenu")||Yo()},hn=oa=>{oa.key==="Enter"&&Rn()};return(0,o.jsx)(dr.A,{position:{left:xe,top:_e},dragContainer:"lib-panel-color-edit-modal",onMove:zt,onMoveStart:()=>Dt(!0),onMoveEnd:()=>Dt(!1),children:(0,o.jsxs)(ah,{id:"lib-panel-color-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:n==="create"?"\u521B\u5EFA\u989C\u8272":"\u7F16\u8F91\u989C\u8272"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Et.C,{className:"times-icon",name:"common/close@24",size:24,onClick:Yo})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)(oh,{title:Je,desc:pt,onSetTitle:Ne,onSetDesc:_t}),(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u5C5E\u6027"}),(0,o.jsx)(_i.R_,{mode:"input",className:_i.EY,canOpenLib:!1,supAttr:"fill",attr:"solidColor",color:gt,pIsSolidColorOnly:!0,onChange:sn})]})]}),(0,o.jsx)("button",{className:m()("create-button"),onClick:Rn,children:n==="create"?"\u521B\u5EFA":"\u786E\u8BA4"}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(Cn,{capture:!0}),onKeyDown:hn})]})})};var L2=i(44940),vm=i(5680),pu=i(36620),rh=i(44518),ih=i(38571),sh=i(62448),r2=i(36397),Dh=i(16933),Os=i(83199);const X0=E.Ay.div.withConfig({displayName:"styles__StyledEditAppearModal",componentId:"sc-hoydeu-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;min-height:461px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px rgba(0,18,38,0.10);.width-66{width:66px;}.height-32{height:32px;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.right-content{width:24px;height:24px;border-radius:4px;cursor:pointer;.svg-icon{width:24px;height:24px;}&:hover{background:",";}&:active{background:",";}}}.content{.appear-preview{width:100%;height:100px;background:",";display:flex;align-items:center;justify-content:center;.preview-item{width:40px;height:40px;}img{max-width:240px;max-height:80px;}}.has-padding-content{padding:0 16px;.title-desc-input-wrap{margin-top:16px;padding-bottom:8px;}}.appear-setting{padding:16px 10px 0 16px;width:100%;border-top:1px solid ",";.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;color:",";}}.shadows-panel{margin-bottom:16px;}}.footer{padding:11px 16px;border-top:1px solid ",";button.create-button{",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,Ap.qf),i2={borderRadius:L2.A.border_radius,borderVisibility:L2.A.border_visibility,border:L2.A.border,fill:L2.A.background,shadow:L2.A.box_shadow},uu=e=>{var t;let{position:n,type:r="create",title:s="",desc:c="",currentKey:d="",sup:p,refStyles:g,attrs:y={},dispatch:w,onClose:_,onCancel:j,onConfirm:N}=e;const[Z,Q]=(0,l.useState)(n.left),[se,ie]=(0,l.useState)(n.top),[he,xe]=(0,l.useState)(s),[Se,_e]=(0,l.useState)(c),[De,Je]=(0,l.useState)((y==null?void 0:y.borderRadius)||i2.borderRadius),[Ne,pt]=(0,l.useState)((t=y==null?void 0:y.borderRadiusIsVisible)!=null?t:!0),[_t,gt]=(0,l.useState)((y==null?void 0:y.borderVisibility)||i2.borderVisibility),[Ct,zt]=(0,l.useState)((y==null?void 0:y.border)||i2.border),[Dt,sn]=(0,l.useState)((y==null?void 0:y.fill)||i2.fill),[Rn,On]=(0,l.useState)((y==null?void 0:y.shadow)||i2.shadow),[Lo,Yo]=(0,l.useState)(""),Cn=(0,a.d4)(Oe.p$),hn=(0,a.d4)(re.an),oa=(0,l.useMemo)(()=>{if(r==="create")return Cn;if(r==="edit")return[d]},[d,Cn,r]);(0,l.useEffect)(()=>{y&&(y.borderRadius&&Je(y.borderRadius),y.borderVisibility&&gt(y.borderVisibility),y.border&&zt(y.border),y.fill&&sn(y.fill),y.shadow&&On(y.shadow),y.borderRadiusIsVisible&&pt(y.borderRadiusIsVisible))},[y,y.border,y.borderRadius,y.borderVisibility,y.fill,y.shadow,y.borderRadiusIsVisible,r]);const Ao=async()=>{try{let cr=(0,Dh.wN)("rect",5,20,20,40,40);cr={...cr,borderRadius:De,borderVisibility:_t,border:Ct,borderRadiusIsVisible:Ne,fill:Dt,shadow:Rn};const Vr=(0,lr.WQ)([cr]),yr=Vr.getRootSnapshot(),pi=yr.sub[0],hi=Vr.getHotItem(pi),Hi=(0,r2.Pf)({item:hi,hasWatermark:!1,scale:1,isWithDeviceFrame:!1,sdk:Vr}),Kr=(0,r2.Gq)(Vr,yr.sub[0],!1,"local"),Gi=Math.round(Kr[2]-Kr[0]),ec=Math.round(Kr[3]-Kr[1]),Ul=document.createElement("div");Ul.innerHTML=Hi;const{imageSrc:gs}=await(0,sh.Z)({element:Ul,width:Gi,height:ec,presetFontsSet:new Set});return gs}catch(cr){return""}};(0,l.useEffect)(()=>{(async()=>{const Vr=await Ao();Yo(Vr)})()},[De,_t,Ct,Ne,Dt,Rn]);const ca=cr=>{w({type:"modal:update:state",payload:{isDragOrResizeModal:cr}})},va=(cr,Vr)=>{Q(cr),ie(Vr)},ra=()=>{var cr;const Vr={border:Ct,borderRadius:De,borderVisibility:_t,fill:Dt,shadow:Rn,borderRadiusIsVisible:Ne},yr=he.trim()?he:"\u5916\u89C2\u6837\u5F0F";r==="create"&&w({type:"entry:libStyle:appear:create",payload:{title:yr,desc:Se,appearAttr:Vr,sup:p,refStyles:g}}),r==="edit"&&w({type:"entry:libStyle:appear:edit",payload:{title:yr,desc:Se,appearAttr:Vr,refStyles:g,currentKey:d,isNeedUpdateWidget:!0}}),w({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),N&&N(),_(),Vc.U4.protoStyleTrack((cr=MB)==null||(cr=cr.user)==null?void 0:cr.id,r==="create"?"\u521B\u5EFA":"\u66F4\u65B0","appear")},Jo=cr=>{let{value:Vr,attr:yr}=cr;switch(yr){case"borderRadius":Je(Vr);break;case"fill":sn(Vr);break;case"borderVisibility":gt(Vr);break;case"border":zt(Vr);break;case"shadow":On(Vr);break;case"borderRadiusIsVisible":pt(Vr);break;default:break}},$o=()=>{j&&j(),_()},sa=cr=>{hn||cr.target.closest("#lib-panel-appear-edit-modal")||cr.target.closest(".--mb--color-picker")||cr.target.closest(".border_style_select_menu")||cr.target.closest(".border_width_select_menu")||cr.target.closest(".border-width-menu")||cr.target.closest(".context-menu-mask")||cr.target.closest(".WorkspaceSelectMenu")||$o()},da=cr=>{cr.key==="Enter"&&ra()},nr=(0,l.useCallback)(()=>({left:Z-242-2,top:se}),[Z,se]);return(0,ds.createPortal)((0,o.jsx)(dr.A,{position:{left:Z,top:se},dragContainer:"lib-panel-appear-edit-modal",onMove:va,onMoveStart:()=>ca(!0),onMoveEnd:()=>ca(!1),children:(0,o.jsxs)(X0,{id:"lib-panel-appear-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:r==="create"?I18N.libPanel.manage.create_ref.appear:I18N.libPanel.manage.edit_ref.appear}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Os.A,{content:I18N.Common.close,direction:"down",distance:8,children:(0,o.jsx)(Et.C,{className:"times-icon",name:"common/close@24",size:24,onClick:$o})})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("div",{className:"appear-preview",children:(0,o.jsx)("img",{src:Lo})}),(0,o.jsx)("div",{className:"has-padding-content",children:(0,o.jsx)(oh,{title:he,desc:Se,onSetTitle:xe,onSetDesc:_e})}),(0,o.jsxs)("div",{className:"appear-setting",children:[(0,o.jsx)(vm.R2,{borderRadius:De,borderRadiusIsVisible:Ne,show:!0,canSetSingleRadius:!0,canAddVar:!1,onChange:Jo}),(0,o.jsx)(pu.s,{fill:Dt,onChange:Jo,selections:oa,canOpenLib:!0,canCreateColorRef:!1,refStyles:g,index:1,onPosition:nr}),(0,o.jsx)(rh.$,{border:Ct,borderVisibility:_t,canBorderWidth:!0,canBorderStyle:!0,canSetBorderVisibility:!0,canOpenLib:!0,canAddVar:!1,canCreateColorRef:!1,onChange:Jo,onPosition:nr}),(0,o.jsx)(ih.y,{shadow:Rn,attr:"box_shadow",selections:oa,onChange:Jo,canOpenLib:!0,canCreateColorRef:!1,onPosition:nr})]}),(0,o.jsx)("div",{className:"footer",children:(0,o.jsx)("button",{className:"create-button",onClick:ra,children:r==="create"?"\u521B\u5EFA":"\u786E\u8BA4"})})]}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(sa,{capture:!0}),onKeyDown:da})]})}),(0,sd.w)())};var M1=i(54852),Oh=i(55203),lh=i(3507),xm=i(77643),$c=i(15186),k0=i(34748),Mp=i(33421),Hs=i(73662),ch=i(9521),Rh=i(39182);const hu=e=>{const{fontSize:t,textColor:n,lineHeight:r,paddingTuple:s,fontDirection:c,fontFamily:d,fontWeight:p,underline:g,strikethrough:y,italic:w,bold:_,verticalAlign:j,horizontalAlign:N,letterSpacing:Z,isClipText:Q}=e||{},se=_?700:400;let ie="";return g&&(ie="underline"),y&&(ie+=(ie?" ":"")+"line-through"),ie===""&&(ie="none"),{fontFamily:d,fontWeight:se,fontSize:t+"px",fontStyle:w?"italic":"normal",letterSpacing:Z+"px",justifyContent:j,alignItems:(0,Rh.xC)(N),textAlign:N,color:n,lineHeight:r+"px",...(0,Pt.N3)(s),textDecoration:ie,writingMode:c,overflow:Q||Q===void 0?"hidden":"visible"}},bm=E.Ay.div.withConfig({displayName:"styles__StyledEditTextModal",componentId:"sc-1rwykl3-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;min-height:288px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px rgba(0,18,38,0.10);header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.svg-icon{width:20px;height:20px;border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}}.content{margin-bottom:16px;.text-preview{width:100%;height:100px;background:",";line-height:100px !important;text-align:center;display:flex;justify-content:center;align-items:center !important;color:",";.ordered-item-view,.unordered-item-view{margin-right:7px;color:#1684fc;font-family:'Arial','Helvetica','sans-serif';}}.has-padding-content{padding:0 16px;&.has-more{.title-desc-input-wrap{border-bottom:1px solid ",";}}.title-desc-input-wrap{margin-top:16px;padding-bottom:8px;}.font-setting{margin:16px 0;width:100%;padding:0;.font-size-type-wrap{justify-content:space-between;width:100%;}}}.footer{display:flex;justify-content:space-between;align-items:center;height:28px;padding:0 16px;&.has-more{border-top:1px solid ",";height:34px;padding:16px 16px 0;}.is-more{cursor:pointer;color:",";&:hover{color:",";}}button.create-button{",";}}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;margin-left:2px;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,Ap.qf),Cm=(e,t)=>{let n=e,r=t;return e==="textColor"&&typeof t=="number"&&(r=(0,$c.t0)(t)),e==="line-through"&&(n="strikethrough"),e==="listType"&&(n="listValue",r=t==="ordered"?"ordered-list-item":t==="unordered"?"unordered-list-item":"unstyled"),{a:n,v:r}},Km=e=>{let{position:t,type:n="create",title:r="",desc:s="",currentKey:c="",attrs:d={},refStyles:p,sup:g,dispatch:y,onClose:w,onConfirm:_,onCancel:j}=e;const N=(0,a.d4)(Hs.y.query.getCloudFontLocalList),Z=(0,a.d4)(re.an),Q=(0,a.d4)(Oe.p$),[se,ie]=(0,l.useState)(t.left),[he,xe]=(0,l.useState)(t.top),[Se,_e]=(0,l.useState)(r),[De,Je]=(0,l.useState)(s),[Ne,pt]=(0,l.useState)((0,Nn.H$)()),[_t,gt]=(0,l.useState)(!0),[Ct,zt]=(0,l.useState)("");(0,l.useEffect)(()=>{pt(d)},[d]),(0,l.useEffect)(()=>{Q.length>0&&n==="create"&&gt(!1)},[]);const Dt=(0,l.useMemo)(()=>(0,Mp.QT)(Ct,Ne.fontWeight),[Ct,Ne.fontWeight]),sn=(0,l.useMemo)(()=>Ne.italic?"italic":"normal",[Ne]),Rn=(0,l.useMemo)(()=>Ne.bold?1:0,[Ne]),On=(0,l.useMemo)(()=>(0,k0.U6)({isUnderline:Ne.underline,isStrikethrough:Ne.strikethrough}),[Ne.strikethrough,Ne.underline]),Lo=(0,l.useMemo)(()=>{const da=Math.min(Math.max(Ne.fontSize,9),48);return{...hu(Ne),overflow:"hidden",fontSize:da}},[Ne]),Yo=da=>{y({type:"modal:update:state",payload:{isDragOrResizeModal:da}})},Cn=(da,nr)=>{ie(da),xe(nr)},hn=da=>{da.preventDefault(),da.stopPropagation(),gt(!_t),_t||window.innerHeight-he<447&&xe(he-167)},oa=da=>{zt(da.cloudFontKey),da.cloudFontKey&&(da.fontFamily=da.cloudFontKey),delete da.cloudFontKey,pt({...Ne,...da})},Ao=()=>{},ca=da=>{const{attr:nr,value:cr}=da,Vr={...Ne},{a:yr,v:pi}=Cm(nr,cr);if(Vr[yr]=pi,yr==="listValue"&&(Ne==null?void 0:Ne.listValue)===pi&&(Vr.listValue="unstyled"),yr==="fontSize"){const hi=(0,ch.Zp)({richTextV1:Ne},pi);hi&&(Vr.lineHeight=hi)}pt(Vr)},va=()=>{var da;const nr=Se.trim()?Se:"\u6587\u672C\u6837\u5F0F";n==="create"&&y({type:"entry:libStyle:text:create",payload:{title:nr,desc:De,textAttr:Ne,sup:g,refStyles:p}}),n==="edit"&&y({type:"entry:libStyle:text:edit",payload:{title:nr,desc:De,textAttr:Ne,refStyles:p,currentKey:c,isNeedUpdateWidget:!0}}),y({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),_&&_(),w(),Vc.U4.protoStyleTrack((da=MB)==null||(da=da.user)==null?void 0:da.id,n==="create"?"\u521B\u5EFA":"\u66F4\u65B0","text")},ra=()=>{j&&j(),w()},Jo=da=>{Z||da.target.closest("#lib-panel-text-edit-modal")||da.target.closest(".--mb--color-picker")||da.target.closest(".font-options-menu")||da.target.closest(".font-size-input-menu")||da.target.closest("#font-list-panel")||da.target.closest(".context-menu-mask")||da.target.closest(".WorkspaceSelectMenu")||ra()},$o=da=>{da.key==="Enter"&&va()},sa=(0,l.useCallback)(()=>({left:se-242-2,top:he}),[se,he]);return(0,ds.createPortal)((0,o.jsx)(dr.A,{position:{left:se,top:he},dragContainer:"lib-panel-text-edit-modal",onMove:Cn,onMoveStart:()=>Yo(!0),onMoveEnd:()=>Yo(!1),children:(0,o.jsxs)(bm,{id:"lib-panel-text-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:n==="create"?"\u521B\u5EFA\u6587\u672C\u6837\u5F0F":"\u7F16\u8F91\u6587\u672C\u6837\u5F0F"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Et.C,{className:"times-icon",name:"general/times",size:20,onClick:ra})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsxs)("div",{className:"text-preview",style:Lo,children:[(Ne==null?void 0:Ne.listValue)==="ordered-list-item"&&(0,o.jsx)("span",{className:"ordered-item-view",children:"1."}),(Ne==null?void 0:Ne.listValue)==="unordered-list-item"&&(0,o.jsx)("span",{className:"unordered-item-view",children:"\u25CF"}),"Font\xA0123"]}),(0,o.jsxs)("div",{className:m()("has-padding-content",{"has-more":_t}),children:[(0,o.jsx)(oh,{title:Se,desc:De,onSetTitle:_e,onSetDesc:Je}),_t&&(0,o.jsxs)(M1.M,{className:"font-setting",children:[(0,o.jsx)(lh.X,{dispatch:y,wbiVersion:3,fontFamily:Ne.fontFamily,fontWeight:Ne.fontWeight,fontStyle:sn,onChangeBatch:oa,onFakeOverrideChange:Ao}),(0,o.jsx)(Oh.L,{textColor:Ne.textColor,isTextEditing:!1,fontSize:Ne.fontSize,fontStyle:sn,fontFamily:Ne.fontFamily,textDecoration:On,fontWeight:Ne.fontWeight,boldType:Rn,boldAttr:"boldType",newOverOld:!0,dispatch:y,isDisabledFontRadioLine:!1,colorAttr:"textColor",isRichText:!0,onChange:ca,hasMissFontHi:Dt,cloudFontLocalList:N,supAttr:"richTextV1",canOpenLib:!0,canAddVar:!1,canCreateColorRef:!1,refStyles:p,onPosition:sa}),(0,o.jsx)(xm.O,{lineHeight:Ne.lineHeight,letterSpacing:Ne.letterSpacing,onChange:ca,fontFamily:Ne.fontFamily,fontSize:Ne.fontSize,paddingTuple:Ne.paddingTuple,paraSpacing:Ne.paraSpacing,isClipText:Ne.isClipText,fontDirection:Ne.fontDirection,listValue:Ne.listValue,isWRichText:!0,hideLineHeight:!1,isMissFont:!1,name:"wRichText",isShowLink:!1,isShowSizeType:!1,canAddVar:!1})]})]}),(0,o.jsxs)("div",{className:m()("footer",{"has-more":_t}),children:[(0,o.jsx)("span",{className:"is-more",onClick:hn,children:_t?"\u6536\u8D77\u66F4\u591A":"\u66F4\u591A\u8BBE\u7F6E"}),(0,o.jsx)("button",{className:"create-button",onClick:va,children:n==="create"?"\u521B\u5EFA":"\u786E\u8BA4"})]})]}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(Jo,{capture:!0}),onKeyDown:$o})]})}),(0,sd.w)())};var Vl=i(8614);const wm=E.Ay.div.withConfig({displayName:"style__StyledManageStyleLibModal",componentId:"sc-1reruhx-0"})(["width:760px;height:600px;position:fixed;z-index:199;background:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);border:1px solid ",";border-radius:8px;&.upload,&.var-detail{width:480px;margin-left:120px;}header{height:50px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;font-size:14px;.right-content{.svg-icon{",";}}}.content{display:flex;height:550px;.right-panel{flex:1;width:100%;.scroll-content{height:500px;overflow-y:scroll;padding-top:20px;}footer{width:100%;height:48px;border-top:1px solid ",";display:flex;align-items:center;padding:0 20px;background-color:",";border-bottom-left-radius:8px;border-bottom-right-radius:8px;button:last-child{margin-left:auto;}.footer-button-wrap{display:flex;align-items:center;justify-content:center;margin-left:auto;button:last-child{margin-left:8px;}}.upload-tips-content{display:flex;color:",";align-items:center;.svg-icon{margin-right:6px;}}}}}ul{list-style:none;}button.solid{",";height:28px;font-weight:500;}button.blue{",";}.loading{width:80px;height:80px;position:absolute;top:50%;left:50%;margin-left:40px;margin-top:-40px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,Ap.eK,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L3,Ap.FC,Ap._j),Sm=E.Ay.ul.withConfig({displayName:"style__StyledLibsList",componentId:"sc-1reruhx-1"})(["padding:10px 8px 20px 8px;display:flex;flex-direction:column;min-width:160px;height:100%;list-style:none;align-items:center;background:",";border-right:1px solid ",";.left-lib-item{height:32px;display:flex;align-items:center;padding-left:12px;color:",";margin-bottom:6px;border-radius:6px;width:100%;cursor:pointer;position:relative;svg.svg-icon{margin-right:4px;&.icon-local{path{stroke:currentColor;}}}&:not(.divider):hover,&:not(.divider).is-active{background:",";}&.is-active{font-weight:500;}&.divider{height:1px;background:",";}&.local{svg.svg-icon > *{fill:none;}}.update-red-tip{top:8px;right:42px;}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_navigation_active,e=>e.theme.color_bg_border_01),s2=[{label:"\u672C\u5730\u8D44\u6E90\u5E93",value:"local",icon:"lib/manage/local"},{label:"\u66F4\u65B0\u8D44\u6E90\u5E93",value:"update",icon:"lib/manage/update"},{label:"\u56E2\u961F\u8D44\u6E90\u5E93",value:"team",icon:"lib/manage/team"},...ENV.IS_ON_PREMISES?[]:[{label:"",value:"divider",icon:""},{label:"\u7CBE\u9009\u8D44\u6E90\u5E93",value:"recommend",icon:"lib/manage/recommand"}]],dh=e=>{let{currentTab:t,onSetCurrentTab:n}=e;const r=(0,a.d4)(Vl.eP),s=(0,a.d4)(re.wA),c=(0,a.wA)(),d=p=>{n(p),c({type:"style-lib:set:currentManagePanel",payload:"home"})};return(0,o.jsx)(Sm,{children:s2.map(p=>(0,o.jsxs)("li",{className:"left-lib-item "+p.value+" "+(t===p.value?"is-active":""),onClick:()=>d(p.value),children:[p.value==="update"&&r.length>0&&(0,o.jsx)(Tt.Jz,{className:"update-red-tip"}),p.icon&&(0,o.jsx)(Et.C,{className:"icon-"+p.value,name:p.icon,size:20}),p.label&&(0,o.jsx)("span",{children:p.value!=="team"||s?p.label:"\u6211\u7684\u8D44\u6E90\u5E93"})]},p.value))})};var mu=i(26998);const Bh=E.Ay.div.withConfig({displayName:"style__StyledLocalContentPanel",componentId:"sc-1ifn4yh-0"})(["li.lib-list-item{color:",";margin-bottom:8px;display:flex;flex-direction:column;&.local{.title{margin-top:10px;}}.title{height:32px;margin-bottom:8px;display:flex;align-items:center;padding:0 20px;}.lib-content{display:flex;padding:8px 20px;cursor:pointer;&:hover{background:",";}.cover{width:110px;height:82px;border-radius:8px;border:1px solid ",";}.right-content{display:flex;align-items:center;justify-content:space-between;flex:1;margin-left:16px;.name-wrap{flex-direction:column;display:flex;flex:1;.name{color:",";font-weight:500;font-size:13px;display:flex;align-items:center;span{max-width:280px;",";}}.space-name{color:",";}.updates-nums{border-radius:4px;background:",";color:",";font-weight:400;padding:3px 4px;margin-left:8px;font-size:11px;}.is-withdraw{border-radius:4px;background:",";padding:3px 4px;margin-left:8px;color:",";font-size:11px;font-weight:400;}}.button-wrap{display:flex;button:last-child{margin-left:12px;}button{height:28px;}}.blue.upload{height:28px;font-weight:500;}}}}footer{button{height:28px;}.footer-title{color:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,pr.L9,e=>e.theme.color_text_L3,e=>e.theme.color_info_bg,e=>e.theme.color_text_link_normal,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),Am=E.Ay.div.withConfig({displayName:"style__StyledUploadComponent",componentId:"sc-1ifn4yh-1"})(["textarea.upload-reson-input{margin:0 20px;border:none;resize:none;outline:none;height:52px;padding:8px;border-radius:8px;background:",";color:",";width:-webkit-fill-available;&::placeholder{color:",";}}.upload-content{margin-top:20px;.upload-title-wrap{height:32px;display:flex;align-items:center;padding:0px 20px;.upload-title{font-weight:500;color:",";}.upload-nums{border-radius:4px;background:",";margin-left:5px;padding:0 3.5px;color:",";}}}ul{li.upload-style-ref-item{span.item-title{height:32px;display:flex;align-items:center;padding:0px 20px;color:",";}ul.item-list{display:flex;flex-direction:column;width:100%;li.upload-list-item{display:flex;padding:0px 20px;width:100%;height:56px;display:flex;align-items:center;.margin-right-20{margin-right:20px;}&:hover{background:",";cursor:pointer;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:40px;height:40px;flex:0 0 40px;&:before{width:40px;height:40px;}}.appear-ref-view-item.list{width:40px;height:40px;flex:0 0 40px;border-radius:4px;}.view-item{width:40px;height:40px;border-radius:4px;background:",";border:1px solid ",";flex:0 0 40px;}.var-view-item{width:40px;height:40px;padding:10px;border-radius:4px;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;.svg-icon{color:",";}}.muban-img-box{width:40px;height:40px;border-radius:4px;border:1px solid ",";background:",";overflow:hidden;padding:4px;flex:0 0 40px;}img{-webkit-user-drag:none;object-fit:contain;width:100%;height:100%;}.content-wrap{flex:1;display:flex;white-space:nowrap;overflow:hidden;.desc{color:",";margin-left:10px;}}.upload-item-right-content{display:flex;justify-content:space-between;flex:1;color:",";.upload-item-name{color:",";font-weight:500;}.upload-change{display:flex;align-items:center;justify-content:center;.arrow-left{margin-left:4px;.svg-icon{width:6px;height:10px;color:",";}}}&.color,&.style,&.muban{.upload-item-name{",";max-width:280px;}}}}}&.var{li.upload-list-item{&:hover{background:",";cursor:pointer;}}}&.no-update{.upload-title-wrap{.arrow-down{margin-right:4px;.svg-icon{width:6px;height:10px;color:",";}}&.is-expand{.arrow-down{transform:rotate(90deg);}}&:hover{background:",";cursor:pointer;}}ul.item-list{li.upload-list-item{&.var{.right-content{color:",";margin-left:auto;.triangle-down{transform:rotate(-90deg);margin-left:9px;}}}.upload-item-name.item-list-item-name{",";max-width:330px;}}}}}}"],e=>e.theme.color_bg_card,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,pr.L9,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,pr.L9),N2=E.Ay.ul.withConfig({displayName:"style__StyledHomeComponent",componentId:"sc-1ifn4yh-2"})(["height:550px;overflow-y:scroll;button.to-recommand-tab{margin:11px 20px;width:558px;height:28px;padding:0;}"]),Mm=E.Ay.div.withConfig({displayName:"style__StyledUpgradeContent",componentId:"sc-1ifn4yh-3"})(["height:136px;position:relative;margin:0 20px;margin-top:10px;display:flex;flex-direction:column;border-radius:10px;background:",";overflow:hidden;padding:16px;.title{color:",";font-size:14px;font-weight:500;}.desc{color:",";font-size:12px;margin:12px 0;}img{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;}.button-wrapper{display:flex;margin-left:auto;.blue{margin-left:12px;}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),ph=e=>{let{type:t,title:n,canUploadLocal:r,onSetCanUploadLocal:s}=e;const[c,d]=(0,l.useState)(0),p=(0,a.d4)(Vl.oo),g=(0,a.d4)(Vl.xg),y=(0,a.d4)(re.PL),w=(0,a.d4)(re.wA),_=(0,a.d4)(re.HW),j=(0,a.d4)(re.m1),N=(0,a.d4)(Vl.ap),Z=(0,a.d4)(Vl.nC),Q=(0,a.wA)(),se=(0,l.useMemo)(()=>{const Je=(0,mu.g)(_),Ne=(0,wr.lP)(w),pt=Je==="free",_t=!(Ne==="trial"||Ne==="paid");return w&&y.is_org_project?_t:pt},[w,y.is_org_project,_]);(0,l.useEffect)(()=>{(async()=>{if(t==="local")if(N){const Ne=MB.sclibKey,pt=await(0,oc.G8)(Z.get(Ne)),_t=pt.add.length+pt.del.length+pt.chg.length;_t>0&&Q({type:"style-lib:set:attr",payload:{localStyleUpdateDiff:pt}}),s==null||s(_t>0),d(_t)}else{const Ne=[...(0,oc.xT)({type:"all"}),...(0,oc.Ny)(),...(0,oc.r)()];s==null||s(Ne.length>0),d(Ne.length)}})()},[N]);const ie=(0,l.useMemo)(()=>{var Je;return t==="added"?p:t==="used"?g:[{hotAttr:{name:y.name,extData:y!=null&&y.is_custom_cover?y==null?void 0:y.custom_cover:(Je=y==null?void 0:y.cover)!=null?Je:"",extInfo:{flatKey:MB.sclibKey,projectCid:y.cid}},key:"local"}]},[t,p,g,y.name,y.cid,y==null?void 0:y.is_custom_cover,y==null?void 0:y.custom_cover,y==null?void 0:y.cover]),he=Je=>{r&&(Je.stopPropagation(),Q({type:"style-lib:set:currentManagePanel",payload:"upload"}))},xe=(Je,Ne)=>{Je.stopPropagation(),sdkStore.updateHotAttrKV(Ne.key,"extInfo",{...Ne.hotAttr.extInfo,isRemove:!0}),Q({type:"entry:libStyle:remove:addedLibList",payload:{key:Ne.key}}),(0,Bd.Cj)()},Se=(Je,Ne)=>{Je.stopPropagation(),sdkStore.deleteHotItem(Ne),Q({type:"style-lib:remove:usedLibList",payload:{key:Ne}}),(0,Bd.Cj)()},_e=(Je,Ne)=>{var pt;Je.stopPropagation(),sdkStore.updateHotAttrKV(Ne.key,"extInfo",{...Ne.hotAttr.extInfo,isRemove:!1}),Q({type:"entry:libStyle:add:usedLib:form:usedLibList",payload:{key:Ne.key}}),Q({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:Ne.hotAttr.extInfo.flatKey}}),Vc.U4.protoMasterUseTrack((pt=MB)==null||(pt=pt.user)==null?void 0:pt.id,"\u672C\u5730\u8D44\u6E90","\u6DFB\u52A0")},De=(Je,Ne)=>{var pt;t==="local"&&!r&&!N||t!=="local"&&(pt=Ne.hotAttr)!=null&&pt.isCanNotUse||(Je.stopPropagation(),Q({type:"style-lib:set:attr",payload:{currentManagePanel:"detail",detailLib:Ne}}))};return se&&t==="local"?(0,o.jsx)(fu,{currentOrg:w,currentProject:y}):ie.length===0?null:(0,o.jsxs)("li",{className:m()("lib-list-item",{[t]:t}),children:[(0,o.jsx)("span",{className:"title",children:n}),ie.map(Je=>(0,o.jsxs)("div",{className:"lib-content",onClick:Ne=>De(Ne,Je),children:[(0,o.jsx)("img",{className:"cover",src:Je.hotAttr.extData||"/mb-proto2/images/lib/lib-emtry.png",onError:Ne=>{Ne.target.src="/mb-proto2/images/lib/lib-emtry.png",Ne.target.onerror=null}}),(0,o.jsxs)("div",{className:"right-content",children:[(0,o.jsxs)("div",{className:"name-wrap",children:[(0,o.jsxs)("div",{className:"name",children:[(0,o.jsx)("span",{children:Je.hotAttr.name}),t==="local"&&c>0&&(0,o.jsx)("div",{className:"updates-nums",children:c+"\u5904\u66F4\u65B0"}),t==="used"&&Je.hotAttr.isCanNotUse&&(0,o.jsx)("span",{className:"is-withdraw",children:"\u5DF2\u88AB\u64A4\u56DE"})]}),w&&(0,o.jsx)("span",{className:"space-name",children:j.name})]}),t==="local"&&(0,o.jsx)("button",{className:m()("blue upload",{disabled:!r}),onClick:he,children:N?"\u53D1\u5E03\u66F4\u65B0":"\u53D1\u5E03"}),t==="added"&&(0,o.jsx)("button",{className:"solid move",onClick:Ne=>xe(Ne,Je),children:"\u79FB\u9664"}),t==="used"&&(0,o.jsxs)("div",{className:"button-wrap",children:[(0,o.jsx)("button",{className:"solid delete",onClick:Ne=>Se(Ne,Je.key),children:"\u5220\u9664"}),!Je.hotAttr.isCanNotUse&&(0,o.jsx)("button",{className:"blue add",onClick:Ne=>_e(Ne,Je),children:"\u6DFB\u52A0"})]})]})]},Je.key))]})},Ym=e=>{let{onSetCurrentTab:t,canUploadLocal:n,onSetCanUploadLocal:r}=e;const s=(0,a.wA)(),c=()=>{t("recommend"),s({type:"style-lib:set:currentManagePanel",payload:"home"})};return(0,o.jsxs)(N2,{children:[(0,o.jsx)(ph,{type:"local",title:"\u5F53\u524D\u6587\u4EF6\u521B\u5EFA\u7684",canUploadLocal:n,onSetCanUploadLocal:r}),(0,o.jsx)(ph,{type:"added",title:"\u5DF2\u6DFB\u52A0\u7684\u8D44\u6E90\u5E93"}),(0,o.jsx)(ph,{type:"used",title:"\u4F7F\u7528\u8FC7\u7684\u8D44\u6E90\u5E93"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("button",{className:"solid to-recommand-tab",onClick:c,children:"\u53D1\u73B0\u7CBE\u9009\u8D44\u6E90\u5E93"})]})},fu=e=>{let{currentOrg:t,currentProject:n}=e;const r=()=>{const s=(0,tr.l)(t,"\u7F16\u8F91\u533A_\u8D44\u6E90\u53D1\u5E03\u5F39\u7A97_\u5347\u7EA7","workspace-v8_libmodal_upgrade");MB.global.popupHelper.chargeAsync(s)};return(0,o.jsxs)(Mm,{children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/upgrade-background.png"}),(0,o.jsx)("span",{className:"title",children:"\u5C06\u672C\u5730\u6BCD\u7248\u3001\u6837\u5F0F\u548C\u53D8\u91CF\u53D1\u5E03\u4E3A\u8D44\u6E90\u5E93"}),(0,o.jsx)("span",{className:"desc",children:"\u5347\u7EA7\u58A8\u5200\u539F\u578B\u4F1A\u5458\u540E\uFF0C\u652F\u6301\u5C06\u5F53\u524D\u6587\u4EF6\u7684\u6BCD\u7248\u3001\u6837\u5F0F\u53CA\u53D8\u91CF\u7B49\u8BBE\u8BA1\u8D44\u6E90\u7EDF\u4E00\u53D1\u5E03\u81F3"+(n!=null&&n.is_org_project?"\u56E2\u961F":"\u6211\u7684")+"\u8D44\u6E90\u5E93\uFF0C\u4ECE\u800C\u5B9E\u73B0\u5728\u5176\u4ED6\u6587\u4EF6\u4E2D\u5FEB\u901F\u8C03\u7528\u6216\u590D\u7528\u76F8\u5173\u8D44\u6E90"}),(0,o.jsxs)("div",{className:"button-wrapper",children:[(0,o.jsx)("button",{className:"solid",onClick:r,children:"\u5347\u7EA7\u4F1A\u5458"}),(0,o.jsx)("button",{className:"blue",onClick:r,children:"\u53D1\u5E03\u8D44\u6E90"})]})]})};var gu=i(47946),pc=i(79150),yu=i(19376),Q0=i(62587),J0=i(33573),Ud=i(88194),vu=i(57514),Uu=i(83672),xu=i(82009);const Fu=e=>{let{list:t,diffType:n}=e;const r=[],s=[],c=[],d=[];for(const w of t){var p,g,y;const _=sdkStore.getHotItem(w.key);((_==null||(p=_.hotAttr)==null?void 0:p.styleType)==="text"||(_==null||(g=_.hotAttr)==null?void 0:g.styleType)==="appear")&&s.push({..._,diffType:n}),(_==null||(y=_.hotAttr)==null?void 0:y.styleType)==="color"&&r.push({..._,diffType:n}),(_==null?void 0:_.hotAttr.type)==="rResBunch"&&c.push({..._,diffType:n}),(_==null?void 0:_.hotAttr.type)==="rResVar"&&d.push({..._,diffType:n})}return{uploadColorList:r,updateStyleList:s,uploadMubanList:c,uploadVarList:d}},Vu=e=>{let{onClose:t,onSetVarDetailData:n}=e;const[r,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(""),[p,g]=(0,l.useState)([]),[y,w]=(0,l.useState)([]),[_,j]=(0,l.useState)([]),[N,Z]=(0,l.useState)([]),[Q,se]=(0,l.useState)([]),ie=(0,a.d4)(re.YT),he=(0,a.d4)(re.PL),xe=(0,a.d4)(re.H7),Se=(0,a.d4)(re.HW),_e=(0,a.d4)(Vl.ap),De=(0,a.d4)(Vl.R0),Je=(0,l.useRef)(null),Ne=(0,a.wA)();(0,l.useEffect)(()=>{if(_e){const{uploadColorList:Dt,uploadMubanList:sn,uploadVarList:Rn,updateStyleList:On}=Fu({list:De.add,diffType:"add"}),{uploadColorList:Lo,uploadMubanList:Yo,uploadVarList:Cn,updateStyleList:hn}=Fu({list:De.del,diffType:"del"}),{uploadColorList:oa,uploadMubanList:Ao,uploadVarList:ca,updateStyleList:va}=Fu({list:De.chg,diffType:"chg"});g([...Dt,...Lo,...oa]),w([...On,...hn,...va]),j([...sn,...Yo,...Ao]),Z([...Rn,...Cn,...ca]),se([...De.noChg])}else{const Dt=(0,oc.xT)({type:"all"});g(Dt.filter(sn=>sn.hotAttr.styleType==="color")),w(Dt.filter(sn=>sn.hotAttr.styleType!=="color")),j((0,oc.Ny)()),Z((0,oc.r)()),se([])}},[_e,De,De.add,De.chg,De.del]);const pt=()=>{s(!r)},_t=async()=>{var Dt,sn,Rn;MB.notice({type:"loading",text:"\u53D1\u5E03\u4E2D..."});const On=(Dt=sdkStore.getHotItem("B@style"))==null?void 0:Dt.sub,Lo=(sn=sdkStore.getHotItem("B@ref-muban"))==null?void 0:sn.sub,Yo=(Rn=sdkStore.getHotItem("B@var"))==null?void 0:Rn.sub;if((On==null?void 0:On.length)===0&&(Lo==null?void 0:Lo.length)===0&&(Yo==null?void 0:Yo.length)===0){const nr=await(0,xu.OO)(he.cid);(nr==null?void 0:nr.result)==="SUCCESS"&&(Ne({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!1,currentManagePanel:"home"}}),MB.notice({type:"success",text:"\u8D44\u6E90\u5E93\u53D1\u5E03\u6210\u529F"}),t());return}const Cn=sdkStore.__devFlatStore().getFlatTree().fork();for(const nr of Cn.get(mr.$k).sub)Ua(Cn,nr);for(const nr of[...((hn=Cn.get(n0.Ri))==null?void 0:hn.sub)||[],...((oa=Cn.get(mr.Ex))==null?void 0:oa.sub)||[]]){var hn,oa;Ua(Cn,nr)}for(const nr of[...((Ao=Cn.get(mr.nK))==null?void 0:Ao.sub)||[]]){var Ao,ca;(ca=Cn.get(nr))!=null&&ca.attr.lK&&Ua(Cn,nr)}for(const nr of[...((va=Cn.get(mr.W4))==null?void 0:va.sub)||[],...((ra=Cn.get(mr.YZ))==null?void 0:ra.sub)||[]]){var va,ra;Ua(Cn,nr)}const Jo=await(0,W1.GT)(Cn,xe.cid,he.cid);MB.sclibKey||(MB.sclibKey=Jo==null?void 0:Jo.flpakKey);const $o=JSON.stringify({desc:c,updateUser:Se.name,updateTime:rootSdk.fssCmt.getClockStore().getMtime()});if((await(0,xu.PP)({cid:he.cid,info:$o})).result==="SUCCESS"){var da;Ne({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!0,currentManagePanel:"home"}});const{sdkStore:nr}=await(0,gu.tr)({flpakKey:Jo==null?void 0:Jo.flpakKey});Ne({type:"style-lib:set:libSdkStoreMap",payload:{key:Jo==null?void 0:Jo.flpakKey,value:nr,type:"update"}}),MB.notice({type:"success",text:"\u8D44\u6E90\u5E93\u53D1\u5E03\u6210\u529F"}),t(),Vc.U4.protoMasterPublishTrack((da=MB)==null||(da=da.user)==null?void 0:da.id,_e?"\u53D1\u5E03\u66F4\u65B0":"\u53D1\u5E03")}},gt=Dt=>{d(Dt.target.value)},Ct=(0,l.useMemo)(()=>Q.filter(Dt=>Dt.hotAttr.type==="rResVar"),[Q]),zt=(Dt,sn)=>{n(Dt,sn),Ne({type:"style-lib:set:attr",payload:{currentManagePanel:"var-detail"}})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Am,{className:"scroll-content",children:[(0,o.jsx)("textarea",{placeholder:"\u8BF4\u660E\u66F4\u65B0\u539F\u56E0",value:c,className:"upload-reson-input",maxLength:200,onChange:gt}),(0,o.jsxs)("div",{className:"upload-content",children:[(0,o.jsxs)("div",{className:"upload-title-wrap",children:[(0,o.jsx)("span",{className:"upload-title",children:"\u66F4\u65B0\u5185\u5BB9"}),(0,o.jsx)("span",{className:"upload-nums",children:p.length+y.length+_.length+N.length})]}),(0,o.jsxs)("ul",{children:[N.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item var",children:[(0,o.jsx)("span",{className:"item-title",children:"\u53D8\u91CF"}),(0,o.jsx)("ul",{className:"item-list",children:(0,o.jsxs)("li",{className:"upload-list-item",onClick:()=>zt(N,"has-change"),children:[(0,o.jsx)("div",{className:"var-view-item margin-right-20",children:(0,o.jsx)(Et.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsxs)("div",{className:"upload-item-right-content var",children:[(0,o.jsx)("span",{className:"upload-item-name",children:"\u53D8\u91CF"}),(0,o.jsxs)("div",{className:"upload-change",children:[(0,o.jsx)("span",{children:N.length+" \u4E2A\u66F4\u65B0"}),(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]})]})})]}),p.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item color",children:[(0,o.jsx)("span",{className:"item-title",children:"\u989C\u8272"}),(0,o.jsx)("ul",{className:"item-list color-list",children:p.map((Dt,sn)=>{const Rn={fill:"solid",fillIsVisible:!0,solidColor:Dt.hotAttr.fill},On=Rn&&(0,Q0.$8)(Rn,{w:200,h:100});return(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)(yu.I,{className:"margin-right-20",ref:Je,color:On,index:sn,solidRenderType:"rect",size:40}),(0,o.jsxs)("div",{className:"upload-item-right-content color",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Dt.hotAttr.name}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Dt.diffType||"add"]})]})]},Dt.key)})})]}),y.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item style",children:[(0,o.jsx)("span",{className:"item-title",children:"\u6837\u5F0F"}),(0,o.jsx)("ul",{className:"item-list style-list",children:y.map((Dt,sn)=>(0,o.jsxs)("li",{className:"upload-list-item",children:[Dt.hotAttr.styleType==="appear"&&(0,o.jsx)(vu.U,{className:"margin-right-20",appearStyle:Dt,index:sn,size:40}),Dt.hotAttr.styleType==="text"&&(0,o.jsx)(Uu.c,{className:"margin-right-20",textStyle:Dt}),(0,o.jsxs)("div",{className:"upload-item-right-content style",children:[(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Dt.hotAttr.name}),Dt.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[Dt.hotAttr.fontSize,"/",Dt.hotAttr.lineHeight]})]}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Dt.diffType||"add"]})]})]},Dt.key))})]}),_.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item muban",children:[(0,o.jsx)("span",{className:"item-title",children:"\u6BCD\u7248"}),(0,o.jsx)("ul",{className:"item-list muban-list",children:_.map(Dt=>(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-20",children:(0,o.jsx)(J0.Ay,{projectMetaCid:ie.cid,snapshotKey:Dt.hotAttr.defaultCanvasKey,isVisible:!0,mode:Ud.rY.PNG_CANVAS})}),(0,o.jsxs)("div",{className:"upload-item-right-content muban",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Dt.hotAttr.name}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Dt.diffType||"add"]})]})]},Dt.key))})]}),Q.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item no-update",children:[(0,o.jsxs)("div",{className:m()("upload-title-wrap",{"is-expand":r}),onClick:pt,children:[(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"arrow-down",iconBoxSize:16}),(0,o.jsx)("span",{className:"upload-title",children:"\u65E0\u66F4\u65B0"}),(0,o.jsx)("span",{className:"upload-nums",children:Q.length})]}),r&&(0,o.jsxs)("ul",{className:"item-list",children:[Ct.length>0&&(0,o.jsxs)("li",{className:"upload-list-item var",onClick:()=>zt(Ct,"no-change"),children:[(0,o.jsx)("div",{className:"var-view-item margin-right-20",children:(0,o.jsx)(Et.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsxs)("div",{className:"upload-item-right-content var",children:[(0,o.jsx)("span",{className:"upload-item-name",children:"\u53D8\u91CF"}),(0,o.jsxs)("div",{className:"upload-change",children:[(0,o.jsx)("span",{children:Ct.length+" \u4E2A\u66F4\u65B0"}),(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]})]},"var"),Q.filter(Dt=>Dt.hotAttr.styleType==="color").map((Dt,sn)=>{const Rn={fill:"solid",fillIsVisible:!0,solidColor:Dt.hotAttr.fill},On=Rn&&(0,Q0.$8)(Rn,{w:200,h:100});return(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)(yu.I,{className:"margin-right-20",ref:Je,color:On,solidRenderType:"rect",index:sn,size:40}),(0,o.jsx)("span",{className:"upload-item-name item-list-item-name",children:Dt.hotAttr.name})]},Dt.key)}),Q.filter(Dt=>Dt.hotAttr.styleType==="appear"||Dt.hotAttr.styleType==="text").map((Dt,sn)=>(0,o.jsxs)("li",{className:"upload-list-item",children:[Dt.hotAttr.styleType==="appear"&&(0,o.jsx)(vu.U,{className:"margin-right-20",appearStyle:Dt,size:40,index:sn}),Dt.hotAttr.styleType==="text"&&(0,o.jsx)(Uu.c,{className:"margin-right-20",textStyle:Dt}),(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("span",{className:"upload-item-name item-list-item-name",children:Dt.hotAttr.name}),Dt.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[Dt.hotAttr.fontSize,"/",Dt.hotAttr.lineHeight]})]})]},Dt.key)),Q.filter(Dt=>Dt.hotAttr.type==="rResBunch").map(Dt=>(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-20",children:(0,o.jsx)(J0.Ay,{projectMetaCid:ie.cid,snapshotKey:Dt.hotAttr.defaultCanvasKey,isVisible:!0,mode:Ud.rY.PNG_CANVAS})}),(0,o.jsx)("span",{className:"upload-item-name",children:Dt.hotAttr.name})]},Dt.key))]})]})]})]})]}),(0,o.jsxs)("footer",{children:[(he==null?void 0:he.is_org_project)&&(0,o.jsxs)("div",{className:"upload-tips-content",children:[(0,o.jsx)(Et.C,{name:"common/invalid",size:16}),(0,o.jsx)("span",{children:"\u53D1\u5E03\u6210\u529F\u540E\uFF0C\u8BE5\u8D44\u6E90\u5E93\u5C06\u5BF9\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u53EF\u89C1"})]}),(0,o.jsx)("button",{className:"blue",onClick:_t,children:"\u53D1\u5E03"})]})]})};var Y1=i(46953);const uh=e=>{let{varDetailData:t,type:n}=e;const r=(0,a.wA)(),s=()=>{r({type:"style-lib:set:currentManagePanel",payload:"upload"})};return(0,o.jsxs)(zu,{children:[(0,o.jsxs)("div",{className:"header-nav",children:[(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"back-icon",onClick:s}),(0,o.jsx)("span",{children:n==="no-change"?"\u65E0\u66F4\u65B0\u7684\u53D8\u91CF":"\u6709\u66F4\u65B0\u7684\u53D8\u91CF"}),(0,o.jsx)("span",{className:"nums",children:t.length})]}),(0,o.jsx)("ul",{children:t==null?void 0:t.map(c=>(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"var-view-item",children:(0,o.jsx)(Et.C,{name:""+Y1.zY[c.hotAttr.varDataType],size:16})}),(0,o.jsx)("span",{children:c.hotAttr.name}),n==="has-change"&&(0,o.jsx)("span",{className:"diff-type",children:I18N.libPanel.manage.diff[c.diffType||"add"]})]},c.key))})]})},zu=E.Ay.div.withConfig({displayName:"VarDetail__StyledVarDetailComponent",componentId:"sc-1gp2lk1-0"})(["color:",";.header-nav{display:flex;align-items:center;padding:12px 16px;border-bottom:1px solid ",";font-weight:500;.back-icon{margin-right:4px;.svg-icon{width:6px;transform:rotate(180deg);}}.nums{border-radius:4px;padding:0 3px;background:",";color:",";margin-left:8px;}}ul{padding:12px 0;li{display:flex;align-items:center;padding:4px 16px;height:48px;&:hover{background:",";}.var-view-item{width:40px;height:40px;border-radius:4px;border:1px solid ",";background:",";display:flex;align-items:center;justify-content:center;margin-right:20px;.svg-icon{color:",";}}.diff-type{color:",";margin-left:auto;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3);var E0=i(15207),yd=i(93257);const km=()=>{let e;const[n,r]=(0,l.useState)(!0),s=()=>{r(!0)};return{handleScroll:p=>{p.stopPropagation(),clearTimeout(e),r(!1),e=setTimeout(s,2e3)},getContent:p=>n?p:null}},Em=E.Ay.div.withConfig({displayName:"styled__StyledDetailComponent",componentId:"sc-1x6eflh-0"})(["height:500px;display:flex;flex-direction:column;.header{display:flex;align-items:center;justify-content:space-between;height:68px;padding:0 20px;color:",";border-bottom:1px solid ",";.left-nav-back-wrap{display:flex;align-items:center;.back-icon-box{width:24px;height:24px;border-radius:4px;margin-right:8px;margin-left:-12px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:hover{background:",";}.svg-icon{width:10px;height:5px;transform:rotate(90deg);}}.back-name{display:flex;flex-direction:column;.name{font-weight:500;}.space-name{color:",";}}}.right-content{display:flex;align-items:center;button{margin-left:12px;height:28px;}}}.content-wrap{padding:0 16px;overflow-y:scroll;flex:1;.detail-item{.detail-title{display:flex;align-items:center;height:32px;margin-bottom:8px;color:",";}.detail-list{display:flex;flex-wrap:wrap;margin-bottom:8px;li{&.li-item.color-item{margin-bottom:0;height:18px;display:flex;align-items:center;justify-content:center;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:16px;height:16px;border-radius:50%;&::before{border-radius:50%;}.thumbnail{border-radius:50%;}}.appear-ref-view-item,.view-item{width:40px;height:40px;&.view-item{border-radius:4px;background:",";border:1px solid ",";color:",";}}.thumbnail-wrapper.appear-ref-view-item.has-opacity.list{border-radius:4px;}}&.detail-color-list{display:grid;grid-template-columns:repeat(auto-fill,18px);grid-row-gap:8px;grid-column-gap:8px;}&.detail-style-list{display:grid;grid-template-columns:repeat(auto-fill,40px);grid-row-gap:8px;grid-column-gap:12px;}&.detail-muban-list{display:grid;grid-template-columns:repeat(auto-fill,70px);grid-row-gap:8px;grid-column-gap:12px;}}&.var{display:flex;align-items:center;margin-bottom:8px;margin-top:17px;.detail-title{margin-bottom:0;}.detail-nums{border-radius:4px;background:",";margin-left:5px;padding:0 3.5px;color:",";}}&.muban{ul.detail-list{li{width:70px;height:70px;border-radius:6px;border:1px solid ",";background:",";overflow:hidden;padding:8px;img{-webkit-user-drag:none;object-fit:contain;width:100%;height:100%;}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover),bu=e=>{var t,n,r,s,c,d,p,g;let{canUploadLocal:y}=e;const[w,_]=(0,l.useState)(!1),[j,N]=(0,l.useState)(new Map),Z=(0,l.useRef)(null),Q=(0,a.d4)(re.PL),se=(0,a.d4)(re.YT),ie=(0,a.d4)(Vl.JY),he=(0,a.d4)(Vl.oo),xe=(0,a.d4)(Vl.xg),Se=(0,a.d4)(re.wA),_e=(0,a.d4)(re.m1),De=(0,a.d4)(re.HW),Je=(0,a.d4)(Vl.nC),Ne=(0,a.d4)(Vl.ap),pt=(0,a.wA)(),{handleScroll:_t,getContent:gt}=km(),Ct=(0,l.useMemo)(()=>{var hn;return(ie==null?void 0:ie.cid)||(ie==null||(hn=ie.hotAttr)==null||(hn=hn.extInfo)==null?void 0:hn.projectCid)},[ie==null?void 0:ie.cid,ie==null||(t=ie.hotAttr)==null||(t=t.extInfo)==null?void 0:t.projectCid]),zt=(0,l.useMemo)(()=>{var hn;return(ie==null?void 0:ie.sclib_cid)||(ie==null||(hn=ie.hotAttr)==null||(hn=hn.extInfo)==null?void 0:hn.flatKey)},[ie==null||(n=ie.hotAttr)==null||(n=n.extInfo)==null?void 0:n.flatKey,ie==null?void 0:ie.sclib_cid]);(0,l.useEffect)(()=>{const hn=ie.key==="local"?sdkStore:Je.get(zt);if(hn){const oa=new Map;oa.set("color",(0,oc.xT)({type:"color",sdk:hn})),oa.set("style",[...(0,oc.xT)({type:"appear",sdk:hn}),...(0,oc.xT)({type:"text",sdk:hn})]),oa.set("muban",(0,oc.Ny)(hn)),oa.set("var",(0,oc.r)(hn)),oa.size>0&&N(oa)}_(!0)},[ie.key,zt,Je]);const Dt=(0,l.useMemo)(()=>he.findIndex(hn=>hn.hotAttr.extInfo.projectCid===Ct)!==-1,[he,Ct]),sn=()=>{pt({type:"style-lib:set:currentManagePanel",payload:"home"})},Rn=()=>{pt({type:"style-lib:set:currentManagePanel",payload:"upload"})},On=()=>{sdkStore.updateHotAttrKV(ie.key,"extInfo",{...ie.hotAttr.extInfo,isRemove:!0}),pt({type:"entry:libStyle:remove:addedLibList",payload:{key:ie.key}})},Lo=()=>{if(Dt)pt({type:"entry:libStyle:add:usedLib:form:usedLibList",payload:{key:ie.key}});else{const hn=(0,Bd.$t)(ie,De);pt({type:"style-lib:add:addedLibList",payload:hn}),pt({type:"style-lib:set:attr",payload:{detailLib:hn}}),xe.findIndex(oa=>oa.key===hn.key)!==-1&&pt({type:"style-lib:remove:usedLibList",payload:{key:hn.key}})}},Yo=()=>{MB.global.popupHelper.confirmAsync({className:"withdraw-sclib-modal",title:"\u64A4\u56DE\u8D44\u6E90",confirmText:"\u64A4\u56DE\u8D44\u6E90",desc:"\u64A4\u56DE\u8D44\u6E90\u4F1A\u5C06\u672C\u6587\u4EF6\u4E2D\u6240\u6709\u8D44\u6E90\u4ECE\u56E2\u961F\u8D44\u6E90\u5E93\u4E2D\u6D88\u5931\uFF0C\u5E76\u4E0E\u5DF2\u5F15\u7528\u8BE5\u8D44\u6E90\u7684\u7EC4\u4EF6\u5168\u90E8\u89E3\u7ED1\u3002",confirmBtnProps:{type:"danger-blue"}}).then(async hn=>{if(hn){const oa=await(0,xu.OO)(Ct);(oa==null?void 0:oa.result)==="SUCCESS"&&pt({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!1}})}})},Cn=()=>{if(Ct.startsWith("mt")){(0,Ql.JW)("/com24/details/"+Ct);return}(0,Ql.JW)(Ct)};return(0,o.jsx)(o.Fragment,{children:w?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Em,{children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"left-nav-back-wrap",onClick:sn,children:[(0,o.jsx)("div",{className:"back-icon-box",children:(0,o.jsx)(Et.C,{name:"toolbar/triangle-down"})}),(0,o.jsxs)("div",{className:"back-name",children:[(0,o.jsx)("span",{className:"name",children:(ie==null||(r=ie.hotAttr)==null?void 0:r.name)||(ie==null?void 0:ie.name)||Q.name}),Se&&(0,o.jsx)("span",{className:"space-name",children:_e.name})]})]}),(0,o.jsx)("div",{className:"right-content",children:ie.key==="local"?(0,o.jsx)("span",{children:"\u5F53\u524D\u6587\u4EF6"}):Dt?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:(ie==null||(s=ie.hotAttr)==null||(s=s.extInfo)==null?void 0:s.addUser)+" \u6DFB\u52A0"}),(0,o.jsx)("button",{className:"solid",onClick:On,children:"\u79FB\u9664"})]}):(0,o.jsx)("button",{className:"blue",onClick:Lo,children:"\u6DFB\u52A0"})})]}),(0,o.jsxs)("ul",{className:"content-wrap",onScroll:_t,children:[((c=j.get("var"))==null?void 0:c.length)>0&&(0,o.jsxs)("li",{className:"detail-item var",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u53D8\u91CF"}),(0,o.jsx)("span",{className:"detail-nums",children:j.get("var").length})]}),((d=j.get("color"))==null?void 0:d.length)>0&&(0,o.jsxs)("li",{className:"detail-item",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u989C\u8272"}),(0,o.jsx)("ul",{className:"detail-list detail-color-list",children:j.get("color").map((hn,oa)=>{const Ao={fill:"solid",fillIsVisible:!0,solidColor:hn.hotAttr.fill},ca=Ao&&(0,Q0.$8)(Ao,{w:200,h:100}),va=ca&&(0,Q0.TQ)(ca);return(0,o.jsx)(yd.A,{content:gt((0,sd.M)(hn.hotAttr,va)),direction:"down",delay:500,children:(0,o.jsx)("li",{className:"li-item color-item",children:(0,o.jsx)(yu.I,{ref:Z,color:ca,index:oa,solidRenderType:"circle",size:16})})},hn.key)})})]}),((p=j.get("style"))==null?void 0:p.length)>0&&(0,o.jsxs)("li",{className:"detail-item",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u6837\u5F0F"}),(0,o.jsx)("ul",{className:"detail-list detail-style-list",children:j.get("style").map((hn,oa)=>(0,o.jsx)(yd.A,{content:gt((0,sd.M)(hn.hotAttr,{})),direction:"down",delay:500,children:(0,o.jsxs)("li",{className:"li-item style-item",children:[hn.hotAttr.styleType==="appear"&&(0,o.jsx)(vu.U,{appearStyle:hn,index:oa,size:40}),hn.hotAttr.styleType==="text"&&(0,o.jsx)(Uu.c,{textStyle:hn})]})},hn.key))})]}),((g=j.get("muban"))==null?void 0:g.length)>0&&(0,o.jsxs)("li",{className:"detail-item muban",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u6BCD\u7248"}),(0,o.jsx)("ul",{className:"detail-list detail-muban-list",children:j.get("muban").map(hn=>(0,o.jsx)(yd.A,{content:gt((0,sd.M)(hn.hotAttr,{})),direction:"down",delay:500,children:(0,o.jsx)("li",{className:"li-item muban-item",children:(0,o.jsx)(J0.Ay,{projectMetaCid:(ie==null?void 0:ie.key)==="local"?se.cid:zt,snapshotKey:hn.hotAttr.defaultCanvasKey,isVisible:!0,mode:Ud.rY.PNG_CANVAS})})},hn.key))})]})]})]}),(0,o.jsx)("footer",{children:ie.key==="local"?Ne?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"footer-title",children:"\u5F53\u524D\u8D44\u6E90\u5DF2\u53D1\u5E03"}),(0,o.jsxs)("div",{className:"footer-button-wrap",children:[(0,o.jsx)("button",{className:"solid",onClick:Yo,children:"\u64A4\u56DE\u8D44\u6E90"}),y&&(0,o.jsx)("button",{className:"blue",onClick:Rn,children:"\u53D1\u5E03\u66F4\u65B0"})]})]}):(0,o.jsx)("button",{className:"blue",onClick:Rn,children:"\u53D1\u5E03"}):(0,o.jsx)("button",{className:"solid",onClick:Cn,children:"\u6253\u5F00\u6E90\u6587\u4EF6"})})]}):(0,o.jsx)(E0.f,{className:"loading"})})},Wu=e=>{let{onSetCurrentTab:t,onClose:n}=e;const[r,s]=(0,l.useState)("no-change"),[c,d]=(0,l.useState)(),[p,g]=(0,l.useState)(!1),y=(0,a.d4)(Vl.V5),w=(_,j)=>{d(_),s(j)};return(0,o.jsxs)(Bh,{children:[y==="home"&&(0,o.jsx)(Ym,{onSetCurrentTab:t,canUploadLocal:p,onSetCanUploadLocal:g}),y==="upload"&&(0,o.jsx)(Vu,{onClose:n,onSetVarDetailData:w}),y==="detail"&&(0,o.jsx)(bu,{canUploadLocal:p}),y==="var-detail"&&(0,o.jsx)(uh,{varDetailData:c,type:r})]})};var Cu=i(55244);const Im=e=>{var t;let{lib:n,collapseKeySet:r,onSetCollapseKeySet:s,onClose:c}=e;const d=(0,a.d4)(re.eo),p=(0,a.d4)(Vl.nC),[g,y]=(0,l.useState)([]),[w,_]=(0,l.useState)([]),[j,N]=(0,l.useState)([]),[Z,Q]=(0,l.useState)([]),se=(0,l.useRef)(null),ie=(0,a.wA)();(0,l.useEffect)(()=>{y(n.updateMap.style.filter(xe=>xe.hotAttr.styleType==="color")),_(n.updateMap.style.filter(xe=>xe.hotAttr.styleType!=="color")),N(n.updateMap.var),Q(n.updateMap.muban)},[n.updateMap]);const he=()=>{var xe;MB.notice({text:"\u66F4\u65B0\u4E2D",type:"loading"});const Se=p.get(n==null||(xe=n.hotAttr)==null||(xe=xe.extInfo)==null?void 0:xe.flatKey);(0,Bd.dB)(Se,Z);const{flatChgList:_e,otherPageFlatChgList:De,isUpdateBasket:Je}=(0,Bd.iJ)({currentPageKey:d,updateList:[...g,...w,...j]});ie({type:"entry:widget:change",payload:{flatChgList:_e}}),ie({type:"style-lib:del:needUpdateLibs",payload:{key:n==null?void 0:n.key}}),sdkStore.updateHotAttrKV(n.key,"extInfo",{...n.hotAttr.extInfo,updateTime:rootSdk.fssCmt.getClockStore().getMtime()}),setTimeout(()=>{sdkStore.updateHotItemBatch(De)},16),Je&&ie({type:"entry:rebuild:screen-widget-tree"}),MB.notice({text:"\u66F4\u65B0\u6210\u529F",type:"success"}),c()};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("li",{className:"update-content-lib-item",children:[(0,o.jsxs)("div",{className:m()("update-header",{"is-expand":!r.has("local")}),children:[(0,o.jsx)(Et.C,{name:"toolbar/triangle-down",onClick:()=>s("local")}),(0,o.jsxs)("div",{className:"right-content-wrap",children:[(0,o.jsxs)("div",{className:"update-content",children:[(0,o.jsx)("span",{className:"update-title",children:(n==null||(t=n.hotAttr)==null?void 0:t.name)+" \u8D44\u6E90\u5E93\u6709\u4EE5\u4E0B\u66F4\u65B0"}),(0,o.jsx)("span",{className:"update-time-desc",children:n.updateUser+" \u5728"+(0,Cu.zW)(n.updateTime)+"\u66F4\u65B0"})]}),(0,o.jsx)("button",{className:"blue solid",onClick:he,children:"\u66F4\u65B0"})]})]}),!r.has("local")&&(0,o.jsxs)(o.Fragment,{children:[(n==null?void 0:n.desc)&&(0,o.jsx)("span",{className:"update-desc",children:n==null?void 0:n.desc}),(0,o.jsxs)("ul",{className:"update-content-lib-list",children:[j.length>0&&(0,o.jsxs)("li",{className:"var",children:[(0,o.jsxs)("div",{className:"update-left-content",children:[(0,o.jsx)("div",{className:"var-view-item margin-right-16",children:(0,o.jsx)(Et.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsx)("span",{className:"update-ref-title",children:"\u53D8\u91CF"})]}),(0,o.jsxs)("div",{className:"update-right-content",children:[(0,o.jsx)("span",{className:"nums",children:j.length+"\u4E2A"}),(0,o.jsx)(Et.C,{name:"toolbar/triangle-down",className:"triangle-down"})]})]}),g.map((xe,Se)=>{const _e={fill:"solid",fillIsVisible:!0,solidColor:xe.hotAttr.fill},De=_e&&(0,Q0.$8)(_e,{w:200,h:100});return(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"color-view-item margin-right-16",children:(0,o.jsx)(yu.I,{ref:se,color:De,solidRenderType:"circle",size:28,index:Se})}),(0,o.jsx)("span",{className:"update-ref-title",children:xe.hotAttr.name})]},xe.key)}),w.map((xe,Se)=>(0,o.jsxs)("li",{children:[xe.hotAttr.styleType==="appear"&&(0,o.jsx)("div",{className:"appear-view-item-box margin-right-16",children:(0,o.jsx)(vu.U,{appearStyle:xe,size:28,index:Se})}),xe.hotAttr.styleType==="text"&&(0,o.jsx)(Uu.c,{className:"margin-right-16",textStyle:xe}),(0,o.jsx)("span",{className:"update-ref-title",children:xe.hotAttr.name})]},xe.key)),Z.map(xe=>{var Se;return(0,o.jsxs)("li",{className:"muban",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-16",children:(0,o.jsx)(J0.Ay,{projectMetaCid:n==null||(Se=n.hotAttr)==null||(Se=Se.extInfo)==null?void 0:Se.flatKey,snapshotKey:xe.hotAttr.defaultCanvasKey,isVisible:!0,mode:Ud.rY.PNG_CANVAS})}),(0,o.jsx)("span",{className:"update-ref-title",children:xe.hotAttr.name})]},xe.key)})]})]})]},n.key)})},q0=E.Ay.ul.withConfig({displayName:"style__StyledUpdateContentPanel",componentId:"sc-ja794s-0"})(["height:550px;overflow-y:scroll;.empty-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding-top:160px;.empty-name{margin:16px 0;color:",";}.loading-button{width:20px;height:20px;}}li.update-content-lib-item{padding-bottom:8px;border-bottom:1px solid ",";.update-header{height:68px;display:flex;align-items:center;padding:0 20px;&.is-expand{.svg-icon{transform:rotate(0);}}.svg-icon{cursor:pointer;transform:rotate(-90deg);}.right-content-wrap{flex:1;display:flex;justify-content:space-between;margin-left:14px;.update-content{display:flex;flex-direction:column;.update-title{color:",";font-weight:500;max-width:450px;",";}.update-time-desc{color:",";}}}}.update-desc{color:",";display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;margin:8px 20px 16px 20px;}.update-content-lib-list{li{height:80px;padding:0 20px;display:flex;align-items:center;.margin-right-16{margin-right:16px;}&.var{justify-content:space-between;}&.muban{.muban-img-box{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";overflow:hidden;padding:4px;}img{object-fit:contain;width:100%;height:100%;}}.var-view-item,.color-view-item,.appear-view-item-box{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:28px;height:28px;border-radius:28px;&::before,.thumbnail{width:28px;height:28px;border-radius:28px;}}.appear-view-item-box{.appear-ref-view-item.list{width:28px;height:28px;border-radius:4px;&.has-opacity.rect{margin-right:0;}}}.view-item{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";flex:0 0 64px;}.update-ref-title{color:",";font-weight:500;",";max-width:450px;}.update-right-content,.update-left-content{display:flex;align-items:center;svg.triangle-down{transform:rotate(-90deg);}.nums{color:",";margin-right:10px;}}}}}.loading{width:50px;height:50px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,pr.L9,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,pr.L9,e=>e.theme.color_text_L3),Tm=e=>{let{onClose:t}=e;const[n,r]=(0,l.useState)(new Set),s=(0,a.d4)(Vl.$Y),c=(0,a.d4)(Vl.eP),d=(0,a.d4)(q.O4),p=(0,a.wA)();(0,l.useEffect)(()=>{p({type:"entry:libStyle:manage:set:needUpdateLibs"})},[p]);const g=w=>{const _=new Set(n);n.has(w)?_.delete(w):_.add(w),r(_)},y=async()=>{await p({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!1}});const w=Date.now();p({type:"entry:libStyle:manage:set:needUpdateLibs",payload:{startTime:w}})};return(0,o.jsx)(q0,{children:s?c.length===0?(0,o.jsxs)("div",{className:"empty-content",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/color-empty-"+d+".svg"}),(0,o.jsx)("span",{className:"empty-name",children:"\u6682\u65E0\u53EF\u66F4\u65B0\u7684\u6837\u5F0F"}),(0,o.jsx)("button",{className:"solid",onClick:y,children:"\u5237\u65B0"})]}):c.map(w=>(0,o.jsx)(Im,{lib:w,collapseKeySet:n,onSetCollapseKeySet:g,onClose:t},w.key)):(0,o.jsx)(E0.f,{className:"loading"})})},_m=E.Ay.ul.withConfig({displayName:"styled__StyledLibCard",componentId:"sc-1jyoeyf-0"})(["flex:1;display:flex;flex-wrap:wrap;.lib-card{display:flex;flex-direction:column;color:",";padding:6px 6px 8px 6px;position:relative;border-radius:10px;height:171px;width:190px;cursor:pointer;&:hover{background:",";.img-box{&::before{display:block;}}button,.name-wrap .arrow-left{visibility:visible;}}.img-box{width:177px;height:133px;border-radius:8px;border:1px solid ",";background:",";position:relative;overflow:hidden;img{width:100%;height:100%;}&::before{content:'';display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:",";backdrop-filter:blur(4px);}}.name-wrap{margin-top:8px;line-height:16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}.arrow-left{visibility:hidden;flex:0 0 16px;margin-left:8px;.svg-icon{width:6px;height:10px;color:",";}}}button{position:absolute;left:52px;top:55px;width:80px;visibility:hidden;}.added-flag{padding:3px 6px;border-radius:4px;background:",";position:absolute;top:16px;left:16px;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_canvas,e=>e.theme.color_slider_normal,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white),Uh=E.Ay.div.withConfig({displayName:"styled__StyledEmpty",componentId:"sc-1jyoeyf-1"})(["display:flex;flex-direction:column;align-items:center;padding-top:120px;flex:1;img{width:88px;}span{color:",";margin-top:16px;margin-bottom:4px;}a{color:",";&:hover{color:",";}}button{padding:6px 16px;font-weight:500;margin-top:16px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover),hh=e=>{let{libList:t,onHandleToDetail:n,onAddLib:r,onSetCurrentTab:s}=e;const c=(0,a.d4)(Vl.oo),d=(0,a.d4)(Vl.xg),p=(0,a.d4)(re.HW),g=(0,a.wA)();if(t.length===0)return(0,o.jsx)(Fh,{onSetCurrentTab:s});const y=async(_,j)=>{_.stopPropagation(),await(r==null?void 0:r(j==null?void 0:j.sclib_cid));const N=(0,Bd.$t)(j,p);g({type:"style-lib:add:addedLibList",payload:N}),d.findIndex(Z=>Z.key===N.key)!==-1&&g({type:"style-lib:remove:usedLibList",payload:{key:N.key}})},w=async _=>{const j=c.find(N=>N.hotAttr.extInfo.projectCid===_.cid)||_;await(n==null?void 0:n(j==null?void 0:j.sclib_cid)),g({type:"style-lib:set:attr",payload:{currentManagePanel:"detail",detailLib:j}})};return(0,o.jsx)(_m,{children:t.map(_=>{var j;const N=c.findIndex(Z=>Z.hotAttr.extInfo.projectCid===_.cid&&!Z.hotAttr.extInfo.isRemove)!==-1;return(0,o.jsxs)("li",{className:"lib-card",onClick:()=>w(_),children:[(0,o.jsx)("div",{className:"img-box",children:(0,o.jsx)("img",{src:_!=null&&_.is_custom_cover?_==null?void 0:_.custom_cover:(j=_==null?void 0:_.cover)!=null?j:"/mb-proto2/images/lib/lib-emtry.png",onError:Z=>{Z.target.src="/mb-proto2/images/lib/lib-emtry.png",Z.target.onerror=null}})}),(0,o.jsxs)("div",{className:"name-wrap",children:[(0,o.jsx)("span",{children:_.name}),(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]}),N&&(0,o.jsx)("span",{className:"added-flag",children:"\u5DF2\u6DFB\u52A0"}),!N&&(0,o.jsx)("button",{className:"blue",onClick:Z=>y(Z,_),children:"\u6DFB\u52A0"})]},_.key)})})},Fh=e=>{let{onSetCurrentTab:t}=e;const n=(0,a.d4)(q.O4),r=(0,a.wA)(),s=()=>{t==null||t("recommend"),r({type:"style-lib:set:currentManagePanel",payload:"home"})},c=()=>(0,Ql.JW)("/hc/articles/466","_blank","noreferrer");return(0,o.jsxs)(Uh,{children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/team-libs-empty-"+n+".png"}),(0,o.jsx)("span",{children:"\u5F53\u524D\u7A7A\u95F4\u6682\u65E0\u53EF\u7528\u7684\u8D44\u6E90\u5E93"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("a",{onClick:c,children:"\u5982\u4F55\u521B\u5EFA\u8D44\u6E90\u5E93\uFF1F"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("button",{className:"solid",onClick:s,children:"\u53D1\u73B0\u7CBE\u9009\u8D44\u6E90\u5E93"})]})},Vh=E.Ay.div.withConfig({displayName:"style__StyledRecommendContentPanel",componentId:"sc-1bdhyss-0"})(["padding:10px 12px;height:550px;width:100%;display:flex;flex-direction:column;.header{height:32px;display:flex;align-items:center;justify-content:space-between;color:",";padding-left:6px;flex:0 0 32px;.right-content{color:",";display:flex;align-items:center;a{margin-right:10px;color:",";}svg.triangle-down{transform:rotate(-90deg);}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal),mh=()=>{const e=(0,a.d4)(Vl.V5),t=(0,a.d4)(Vl.Qe),n=(0,a.d4)(Vl.nC),r=(0,a.wA)(),s=async p=>{const g=n.get(p);if(g)return g;const{sdkStore:y}=await(0,gu.O3)({flpakKey:p});return r({type:"style-lib:set:libSdkStoreMap",payload:{key:p,value:y}}),y},c=async p=>{p&&(await s(p),r({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:p}}))},d=async p=>{var g;p&&(await s(p),r({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:p}}),Vc.U4.protoMasterUseTrack((g=MB)==null||(g=g.user)==null?void 0:g.id,"\u7CBE\u9009\u8D44\u6E90\u5E93","\u6DFB\u52A0"))};return(0,o.jsxs)(o.Fragment,{children:[e==="home"&&(0,o.jsxs)(Vh,{children:[(0,o.jsx)("div",{className:"header",children:(0,o.jsx)("span",{className:"title",children:"\u7CBE\u9009\u8D44\u6E90\u5E93"})}),(0,o.jsx)(hh,{libList:t,onHandleToDetail:c,onAddLib:d})]}),e==="detail"&&(0,o.jsx)(bu,{})]})},Xm=E.Ay.div.withConfig({displayName:"style__StyledTeamContentPanel",componentId:"sc-1rpnysk-0"})(["padding:10px 12px;height:550px;width:100%;display:flex;flex-direction:column;.space-title{height:32px;display:flex;align-items:center;color:",";padding-left:6px;}ul{overflow:scroll;flex:none;}"],e=>e.theme.color_text_L1),Pm=e=>{let{onSetCurrentTab:t}=e;const n=(0,a.d4)(Vl.V5),r=(0,a.d4)(Vl.TP),s=(0,a.d4)(Vl.nC),c=(0,a.d4)(re.wA),d=(0,a.d4)(re.m1),p=(0,a.wA)(),g=async _=>{const j=s.get(_);if(j)return j;const{sdkStore:N}=await(0,gu.tr)({flpakKey:_});return p({type:"style-lib:set:libSdkStoreMap",payload:{key:_,value:N}}),N},y=async _=>{_&&(await g(_),p({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:_}}))},w=async _=>{var j;_&&(await g(_),p({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:_}}),Vc.U4.protoMasterUseTrack((j=MB)==null||(j=j.user)==null?void 0:j.id,"\u56E2\u961F\u8D44\u6E90","\u6DFB\u52A0"))};return(0,o.jsxs)(o.Fragment,{children:[n==="home"&&(0,o.jsxs)(Xm,{children:[(0,o.jsx)("div",{className:"space-title",children:c?d.name:"\u4E2A\u4EBA\u7A7A\u95F4"}),(0,o.jsx)(hh,{libList:r,onHandleToDetail:y,onAddLib:w,onSetCurrentTab:t})]}),n==="detail"&&(0,o.jsx)(bu,{})]})},fh=window.innerWidth/2-760/2,wu=74,I0=e=>{let{onClose:t,activeTab:n="local"}=e;const[r,s]=(0,l.useState)(fh),[c,d]=(0,l.useState)(wu),[p,g]=(0,l.useState)(n),y=(0,a.d4)(Vl.V5),w=(0,a.wA)(),_=(Z,Q)=>{s(Z),d(Q)},j=Z=>{w({type:"modal:update:state",payload:{isDragOrResizeModal:Z}})},N=()=>{(y==="upload"||y==="var-detail")&&p==="local"?w({type:"style-lib:set:currentManagePanel",payload:y==="var-detail"?"upload":"home"}):(w({type:"style-lib:reset:manage:attr"}),t())};return(0,ds.createPortal)((0,o.jsx)(dr.A,{position:{left:r,top:c},dragContainer:"style-lib-manage-modal",onMove:_,onMoveStart:()=>j(!0),onMoveEnd:()=>j(!1),children:(0,o.jsxs)(wm,{id:"style-lib-manage-modal",className:y,children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:y==="upload"?"\u53D1\u5E03\u8D44\u6E90\u5E93":"\u8D44\u6E90\u5E93\u7BA1\u7406"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Et.C,{className:"times-icon",name:"general/times",size:24,onClick:N})})]}),(0,o.jsxs)("div",{className:"content",children:[!((y==="upload"||y==="var-detail")&&p==="local")&&(0,o.jsx)(dh,{currentTab:p,onSetCurrentTab:g}),(0,o.jsx)("div",{className:"right-panel",children:(0,o.jsxs)(o.Fragment,{children:[p==="local"&&(0,o.jsx)(Wu,{onSetCurrentTab:g,onClose:t}),p==="update"&&(0,o.jsx)(Tm,{onClose:t}),p==="team"&&(0,o.jsx)(Pm,{onSetCurrentTab:g}),p==="recommend"&&(0,o.jsx)(mh,{})]})})]})]})}),(0,sd.w)())};var gh=i(80771),l2=i(47424),Hu=i(29321),Gu=i(82924),k1=i(94586),j2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const yh=j2;var zh=i(40080),Qm=function(t,n){return l.createElement(zh.A,(0,k1.A)({},t,{ref:n,icon:yh}))},Lm=l.forwardRef(Qm);const Nm=Lm;var E1=i(76241),uc=i(53034),Su=i(91834),Zu=i(59895),Wh=i(94815),Hh=i(64816);const Ku=(0,l.createContext)(null);var Gh=i(63296),vh=i(59063),jm=i(75586),$=i(21425),U=i(23653),H=function(t){var n=t.activeTabOffset,r=t.horizontal,s=t.rtl,c=t.indicator,d=c===void 0?{}:c,p=d.size,g=d.align,y=g===void 0?"center":g,w=(0,l.useState)(),_=(0,uc.A)(w,2),j=_[0],N=_[1],Z=(0,l.useRef)(),Q=l.useCallback(function(ie){return typeof p=="function"?p(ie):typeof p=="number"?p:ie},[p]);function se(){U.A.cancel(Z.current)}return(0,l.useEffect)(function(){var ie={};if(n)if(r){ie.width=Q(n.width);var he=s?"right":"left";y==="start"&&(ie[he]=n[he]),y==="center"&&(ie[he]=n[he]+n.width/2,ie.transform=s?"translateX(50%)":"translateX(-50%)"),y==="end"&&(ie[he]=n[he]+n.width,ie.transform="translateX(-100%)")}else ie.height=Q(n.height),y==="start"&&(ie.top=n.top),y==="center"&&(ie.top=n.top+n.height/2,ie.transform="translateY(-50%)"),y==="end"&&(ie.top=n.top+n.height,ie.transform="translateY(-100%)");return se(),Z.current=(0,U.A)(function(){var xe=j&&ie&&Object.keys(ie).every(function(Se){var _e=ie[Se],De=j[Se];return typeof _e=="number"&&typeof De=="number"?Math.round(_e)===Math.round(De):_e===De});xe||N(ie)}),se},[JSON.stringify(n),r,s,y,Q]),{style:j}};const ae=H;var de={width:0,height:0,left:0,top:0};function ge(e,t,n){return(0,l.useMemo)(function(){for(var r,s=new Map,c=t.get((r=e[0])===null||r===void 0?void 0:r.key)||de,d=c.left+c.width,p=0;p<e.length;p+=1){var g=e[p].key,y=t.get(g);if(!y){var w;y=t.get((w=e[p-1])===null||w===void 0?void 0:w.key)||de}var _=s.get(g)||(0,E1.A)({},y);_.right=d-_.left-_.width,s.set(g,_)}return s},[e.map(function(r){return r.key}).join("_"),t,n])}function le(e,t){var n=l.useRef(e),r=l.useState({}),s=(0,uc.A)(r,2),c=s[1];function d(p){var g=typeof p=="function"?p(n.current):p;g!==n.current&&t(g,n.current),n.current=g,c({})}return[n.current,d]}var Ee=.1,Pe=.01,Fe=20,Ke=Math.pow(.995,Fe);function ct(e,t){var n=(0,l.useState)(),r=(0,uc.A)(n,2),s=r[0],c=r[1],d=(0,l.useState)(0),p=(0,uc.A)(d,2),g=p[0],y=p[1],w=(0,l.useState)(0),_=(0,uc.A)(w,2),j=_[0],N=_[1],Z=(0,l.useState)(),Q=(0,uc.A)(Z,2),se=Q[0],ie=Q[1],he=(0,l.useRef)();function xe(pt){var _t=pt.touches[0],gt=_t.screenX,Ct=_t.screenY;c({x:gt,y:Ct}),window.clearInterval(he.current)}function Se(pt){if(s){var _t=pt.touches[0],gt=_t.screenX,Ct=_t.screenY;c({x:gt,y:Ct});var zt=gt-s.x,Dt=Ct-s.y;t(zt,Dt);var sn=Date.now();y(sn),N(sn-g),ie({x:zt,y:Dt})}}function _e(){if(s&&(c(null),ie(null),se)){var pt=se.x/j,_t=se.y/j,gt=Math.abs(pt),Ct=Math.abs(_t);if(Math.max(gt,Ct)<Ee)return;var zt=pt,Dt=_t;he.current=window.setInterval(function(){if(Math.abs(zt)<Pe&&Math.abs(Dt)<Pe){window.clearInterval(he.current);return}zt*=Ke,Dt*=Ke,t(zt*Fe,Dt*Fe)},Fe)}}var De=(0,l.useRef)();function Je(pt){var _t=pt.deltaX,gt=pt.deltaY,Ct=0,zt=Math.abs(_t),Dt=Math.abs(gt);zt===Dt?Ct=De.current==="x"?_t:gt:zt>Dt?(Ct=_t,De.current="x"):(Ct=gt,De.current="y"),t(-Ct,-Ct)&&pt.preventDefault()}var Ne=(0,l.useRef)(null);Ne.current={onTouchStart:xe,onTouchMove:Se,onTouchEnd:_e,onWheel:Je},l.useEffect(function(){function pt(zt){Ne.current.onTouchStart(zt)}function _t(zt){Ne.current.onTouchMove(zt)}function gt(zt){Ne.current.onTouchEnd(zt)}function Ct(zt){Ne.current.onWheel(zt)}return document.addEventListener("touchmove",_t,{passive:!1}),document.addEventListener("touchend",gt,{passive:!0}),e.current.addEventListener("touchstart",pt,{passive:!0}),e.current.addEventListener("wheel",Ct,{passive:!1}),function(){document.removeEventListener("touchmove",_t),document.removeEventListener("touchend",gt)}},[])}var vt=i(18767);function Ft(e){var t=(0,l.useState)(0),n=(0,uc.A)(t,2),r=n[0],s=n[1],c=(0,l.useRef)(0),d=(0,l.useRef)();return d.current=e,(0,vt.o)(function(){var p;(p=d.current)===null||p===void 0||p.call(d)},[r]),function(){c.current===r&&(c.current+=1,s(c.current))}}function pn(e){var t=(0,l.useRef)([]),n=(0,l.useState)({}),r=(0,uc.A)(n,2),s=r[1],c=(0,l.useRef)(typeof e=="function"?e():e),d=Ft(function(){var g=c.current;t.current.forEach(function(y){g=y(g)}),t.current=[],c.current=g,s({})});function p(g){t.current.push(g),d()}return[c.current,p]}var bn={width:0,height:0,left:0,top:0,right:0};function to(e,t,n,r,s,c,d){var p=d.tabs,g=d.tabPosition,y=d.rtl,w,_,j;return["top","bottom"].includes(g)?(w="width",_=y?"right":"left",j=Math.abs(n)):(w="height",_="top",j=-n),(0,l.useMemo)(function(){if(!p.length)return[0,0];for(var N=p.length,Z=N,Q=0;Q<N;Q+=1){var se=e.get(p[Q].key)||bn;if(Math.floor(se[_]+se[w])>Math.floor(j+t)){Z=Q-1;break}}for(var ie=0,he=N-1;he>=0;he-=1){var xe=e.get(p[he].key)||bn;if(xe[_]<j){ie=he+1;break}}return ie>=Z?[0,0]:[ie,Z]},[e,t,r,s,c,j,g,p.map(function(N){return N.key}).join("_"),y])}function Po(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var fo="TABS_DQ";function Ho(e){return String(e).replace(/"/g,fo)}function Ko(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var ha=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,s=e.locale,c=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:c,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:function(p){r.onEdit("add",{event:p})}},r.addIcon||"+")});const Aa=ha;var I=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,s=e.extra;if(!s)return null;var c,d={};return(0,Su.A)(s)==="object"&&!l.isValidElement(s)?d=s:d.right=s,n==="right"&&(c=d.right),n==="left"&&(c=d.left),c?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},c):null});const F=I;var oe=i(35009),be=i(2636),Mt=i(49358),ut=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,s=e.tabs,c=e.locale,d=e.mobile,p=e.more,g=p===void 0?{}:p,y=e.style,w=e.className,_=e.editable,j=e.tabBarGutter,N=e.rtl,Z=e.removeAriaLabel,Q=e.onTabClick,se=e.getPopupContainer,ie=e.popupClassName,he=(0,l.useState)(!1),xe=(0,uc.A)(he,2),Se=xe[0],_e=xe[1],De=(0,l.useState)(null),Je=(0,uc.A)(De,2),Ne=Je[0],pt=Je[1],_t=g.icon,gt=_t===void 0?"More":_t,Ct="".concat(r,"-more-popup"),zt="".concat(n,"-dropdown"),Dt=Ne!==null?"".concat(Ct,"-").concat(Ne):null,sn=c==null?void 0:c.dropdownAriaLabel;function Rn(Ao,ca){Ao.preventDefault(),Ao.stopPropagation(),_.onEdit("remove",{key:ca,event:Ao})}var On=l.createElement(be.Ay,{onClick:function(ca){var va=ca.key,ra=ca.domEvent;Q(va,ra),_e(!1)},prefixCls:"".concat(zt,"-menu"),id:Ct,tabIndex:-1,role:"listbox","aria-activedescendant":Dt,selectedKeys:[Ne],"aria-label":sn!==void 0?sn:"expanded dropdown"},s.map(function(Ao){var ca=Ao.closable,va=Ao.disabled,ra=Ao.closeIcon,Jo=Ao.key,$o=Ao.label,sa=Ko(ca,ra,_,va);return l.createElement(be.Dr,{key:Jo,id:"".concat(Ct,"-").concat(Jo),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Jo),disabled:va},l.createElement("span",null,$o),sa&&l.createElement("button",{type:"button","aria-label":Z||"remove",tabIndex:0,className:"".concat(zt,"-menu-item-remove"),onClick:function(nr){nr.stopPropagation(),Rn(nr,Jo)}},ra||_.removeIcon||"\xD7"))}));function Lo(Ao){for(var ca=s.filter(function(sa){return!sa.disabled}),va=ca.findIndex(function(sa){return sa.key===Ne})||0,ra=ca.length,Jo=0;Jo<ra;Jo+=1){va=(va+Ao+ra)%ra;var $o=ca[va];if(!$o.disabled){pt($o.key);return}}}function Yo(Ao){var ca=Ao.which;if(!Se){[Mt.A.DOWN,Mt.A.SPACE,Mt.A.ENTER].includes(ca)&&(_e(!0),Ao.preventDefault());return}switch(ca){case Mt.A.UP:Lo(-1),Ao.preventDefault();break;case Mt.A.DOWN:Lo(1),Ao.preventDefault();break;case Mt.A.ESC:_e(!1);break;case Mt.A.SPACE:case Mt.A.ENTER:Ne!==null&&Q(Ne,Ao);break}}(0,l.useEffect)(function(){var Ao=document.getElementById(Dt);Ao&&Ao.scrollIntoView&&Ao.scrollIntoView(!1)},[Ne]),(0,l.useEffect)(function(){Se||pt(null)},[Se]);var Cn=(0,O.A)({},N?"marginRight":"marginLeft",j);s.length||(Cn.visibility="hidden",Cn.order=1);var hn=m()((0,O.A)({},"".concat(zt,"-rtl"),N)),oa=d?null:l.createElement(oe.A,(0,k1.A)({prefixCls:zt,overlay:On,visible:s.length?Se:!1,onVisibleChange:_e,overlayClassName:m()(hn,ie),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:se},g),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:Cn,"aria-haspopup":"listbox","aria-controls":Ct,id:"".concat(r,"-more"),"aria-expanded":Se,onKeyDown:Yo},gt));return l.createElement("div",{className:m()("".concat(n,"-nav-operations"),w),style:y,ref:t},oa,l.createElement(Aa,{prefixCls:n,locale:c,editable:_}))});const tn=l.memo(ut,function(e,t){return t.tabMoving});var Xt=function(t){var n=t.prefixCls,r=t.id,s=t.active,c=t.focus,d=t.tab,p=d.key,g=d.label,y=d.disabled,w=d.closeIcon,_=d.icon,j=t.closable,N=t.renderWrapper,Z=t.removeAriaLabel,Q=t.editable,se=t.onClick,ie=t.onFocus,he=t.onBlur,xe=t.onKeyDown,Se=t.onMouseDown,_e=t.onMouseUp,De=t.style,Je=t.tabCount,Ne=t.currentPosition,pt="".concat(n,"-tab"),_t=Ko(j,w,Q,y);function gt(Rn){y||se(Rn)}function Ct(Rn){Rn.preventDefault(),Rn.stopPropagation(),Q.onEdit("remove",{key:p,event:Rn})}var zt=l.useMemo(function(){return _&&typeof g=="string"?l.createElement("span",null,g):g},[g,_]),Dt=l.useRef(null);l.useEffect(function(){c&&Dt.current&&Dt.current.focus()},[c]);var sn=l.createElement("div",{key:p,"data-node-key":Ho(p),className:m()(pt,(0,O.A)((0,O.A)((0,O.A)((0,O.A)({},"".concat(pt,"-with-remove"),_t),"".concat(pt,"-active"),s),"".concat(pt,"-disabled"),y),"".concat(pt,"-focus"),c)),style:De,onClick:gt},l.createElement("div",{ref:Dt,role:"tab","aria-selected":s,id:r&&"".concat(r,"-tab-").concat(p),className:"".concat(pt,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(p),"aria-disabled":y,tabIndex:y?null:s?0:-1,onClick:function(On){On.stopPropagation(),gt(On)},onKeyDown:xe,onMouseDown:Se,onMouseUp:_e,onFocus:ie,onBlur:he},c&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Ne," of ").concat(Je)),_&&l.createElement("span",{className:"".concat(pt,"-icon")},_),g&&zt),_t&&l.createElement("button",{type:"button",role:"tab","aria-label":Z||"remove",tabIndex:s?0:-1,className:"".concat(pt,"-remove"),onClick:function(On){On.stopPropagation(),Ct(On)}},w||Q.removeIcon||"\xD7"));return N?N(sn):sn};const Kn=Xt;var ao=function(t,n){var r=t.offsetWidth,s=t.offsetHeight,c=t.offsetTop,d=t.offsetLeft,p=t.getBoundingClientRect(),g=p.width,y=p.height,w=p.left,_=p.top;return Math.abs(g-r)<1?[g,y,w-n.left,_-n.top]:[r,s,d,c]},v=function(t){var n=t.current||{},r=n.offsetWidth,s=r===void 0?0:r,c=n.offsetHeight,d=c===void 0?0:c;if(t.current){var p=t.current.getBoundingClientRect(),g=p.width,y=p.height;if(Math.abs(g-s)<1)return[g,y]}return[s,d]},K=function(t,n){return t[n?0:1]},te=l.forwardRef(function(e,t){var n=e.className,r=e.style,s=e.id,c=e.animated,d=e.activeKey,p=e.rtl,g=e.extra,y=e.editable,w=e.locale,_=e.tabPosition,j=e.tabBarGutter,N=e.children,Z=e.onTabClick,Q=e.onTabScroll,se=e.indicator,ie=l.useContext(Ku),he=ie.prefixCls,xe=ie.tabs,Se=(0,l.useRef)(null),_e=(0,l.useRef)(null),De=(0,l.useRef)(null),Je=(0,l.useRef)(null),Ne=(0,l.useRef)(null),pt=(0,l.useRef)(null),_t=(0,l.useRef)(null),gt=_==="top"||_==="bottom",Ct=le(0,function(Hc,Ks){gt&&Q&&Q({direction:Hc>Ks?"left":"right"})}),zt=(0,uc.A)(Ct,2),Dt=zt[0],sn=zt[1],Rn=le(0,function(Hc,Ks){!gt&&Q&&Q({direction:Hc>Ks?"top":"bottom"})}),On=(0,uc.A)(Rn,2),Lo=On[0],Yo=On[1],Cn=(0,l.useState)([0,0]),hn=(0,uc.A)(Cn,2),oa=hn[0],Ao=hn[1],ca=(0,l.useState)([0,0]),va=(0,uc.A)(ca,2),ra=va[0],Jo=va[1],$o=(0,l.useState)([0,0]),sa=(0,uc.A)($o,2),da=sa[0],nr=sa[1],cr=(0,l.useState)([0,0]),Vr=(0,uc.A)(cr,2),yr=Vr[0],pi=Vr[1],hi=pn(new Map),Hi=(0,uc.A)(hi,2),Kr=Hi[0],Gi=Hi[1],ec=ge(xe,Kr,ra[0]),Ul=K(oa,gt),gs=K(ra,gt),Oi=K(da,gt),wi=K(yr,gt),Ps=Math.floor(Ul)<Math.floor(gs+Oi),ws=Ps?Ul-wi:Ul-Oi,Rs="".concat(he,"-nav-operations-hidden"),bl=0,Cl=0;gt&&p?(bl=0,Cl=Math.max(0,gs-ws)):(bl=Math.min(0,ws-gs),Cl=0);function bd(Hc){return Hc<bl?bl:Hc>Cl?Cl:Hc}var Jc=(0,l.useRef)(null),tc=(0,l.useState)(),Id=(0,uc.A)(tc,2),nc=Id[0],Wa=Id[1];function Cc(){Wa(Date.now())}function kl(){Jc.current&&clearTimeout(Jc.current)}ct(Je,function(Hc,Ks){function dd(zd,Nu){zd(function(G2){var Af=bd(G2+Nu);return Af})}return Ps?(gt?dd(sn,Hc):dd(Yo,Ks),kl(),Cc(),!0):!1}),(0,l.useEffect)(function(){return kl(),nc&&(Jc.current=setTimeout(function(){Wa(0)},100)),kl},[nc]);var el=to(ec,ws,gt?Dt:Lo,gs,Oi,wi,(0,E1.A)((0,E1.A)({},e),{},{tabs:xe})),Zl=(0,uc.A)(el,2),Td=Zl[0],_d=Zl[1],mm=(0,jm.A)(function(){var Hc=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Ks=ec.get(Hc)||{width:0,height:0,left:0,right:0,top:0};if(gt){var dd=Dt;p?Ks.right<Dt?dd=Ks.right:Ks.right+Ks.width>Dt+ws&&(dd=Ks.right+Ks.width-ws):Ks.left<-Dt?dd=-Ks.left:Ks.left+Ks.width>-Dt+ws&&(dd=-(Ks.left+Ks.width-ws)),Yo(0),sn(bd(dd))}else{var zd=Lo;Ks.top<-Lo?zd=-Ks.top:Ks.top+Ks.height>-Lo+ws&&(zd=-(Ks.top+Ks.height-ws)),sn(0),Yo(bd(zd))}}),L0=(0,l.useState)(),v0=(0,uc.A)(L0,2),nd=v0[0],Dc=v0[1],Lu=(0,l.useState)(!1),th=(0,uc.A)(Lu,2),Gm=th[0],Zm=th[1],L1=xe.filter(function(Hc){return!Hc.disabled}).map(function(Hc){return Hc.key}),Dp=function(Ks){var dd=L1.indexOf(nd||d),zd=L1.length,Nu=(dd+Ks+zd)%zd,G2=L1[Nu];Dc(G2)},fm=function(Ks){var dd=Ks.code,zd=p&&gt,Nu=L1[0],G2=L1[L1.length-1];switch(dd){case"ArrowLeft":{gt&&Dp(zd?1:-1);break}case"ArrowRight":{gt&&Dp(zd?-1:1);break}case"ArrowUp":{Ks.preventDefault(),gt||Dp(-1);break}case"ArrowDown":{Ks.preventDefault(),gt||Dp(1);break}case"Home":{Ks.preventDefault(),Dc(Nu);break}case"End":{Ks.preventDefault(),Dc(G2);break}case"Enter":case"Space":{Ks.preventDefault(),Z(nd!=null?nd:d,Ks);break}case"Backspace":case"Delete":{var Af=L1.indexOf(nd),Z2=xe.find(function(Mf){return Mf.key===nd}),U6=Ko(Z2==null?void 0:Z2.closable,Z2==null?void 0:Z2.closeIcon,y,Z2==null?void 0:Z2.disabled);U6&&(Ks.preventDefault(),Ks.stopPropagation(),y.onEdit("remove",{key:nd,event:Ks}),Af===L1.length-1?Dp(-1):Dp(1));break}}},Sf={};gt?Sf[p?"marginRight":"marginLeft"]=j:Sf.marginTop=j;var tg=xe.map(function(Hc,Ks){var dd=Hc.key;return l.createElement(Kn,{id:s,prefixCls:he,key:dd,tab:Hc,style:Ks===0?void 0:Sf,closable:Hc.closable,editable:y,active:dd===d,focus:dd===nd,renderWrapper:N,removeAriaLabel:w==null?void 0:w.removeAriaLabel,tabCount:L1.length,currentPosition:Ks+1,onClick:function(Nu){Z(dd,Nu)},onKeyDown:fm,onFocus:function(){Gm||Dc(dd),mm(dd),Cc(),Je.current&&(p||(Je.current.scrollLeft=0),Je.current.scrollTop=0)},onBlur:function(){Dc(void 0)},onMouseDown:function(){Zm(!0)},onMouseUp:function(){Zm(!1)}})}),ng=function(){return Gi(function(){var Ks,dd=new Map,zd=(Ks=Ne.current)===null||Ks===void 0?void 0:Ks.getBoundingClientRect();return xe.forEach(function(Nu){var G2,Af=Nu.key,Z2=(G2=Ne.current)===null||G2===void 0?void 0:G2.querySelector('[data-node-key="'.concat(Ho(Af),'"]'));if(Z2){var U6=ao(Z2,zd),Mf=(0,uc.A)(U6,4),rX=Mf[0],iX=Mf[1],sX=Mf[2],lX=Mf[3];dd.set(Af,{width:rX,height:iX,left:sX,top:lX})}}),dd})};(0,l.useEffect)(function(){ng()},[xe.map(function(Hc){return Hc.key}).join("_")]);var gm=Ft(function(){var Hc=v(Se),Ks=v(_e),dd=v(De);Ao([Hc[0]-Ks[0]-dd[0],Hc[1]-Ks[1]-dd[1]]);var zd=v(_t);nr(zd);var Nu=v(pt);pi(Nu);var G2=v(Ne);Jo([G2[0]-zd[0],G2[1]-zd[1]]),ng()}),tX=xe.slice(0,Td),nX=xe.slice(_d+1),Hb=[].concat((0,Gh.A)(tX),(0,Gh.A)(nX)),Gb=ec.get(d),oX=ae({activeTabOffset:Gb,horizontal:gt,indicator:se,rtl:p}),aX=oX.style;(0,l.useEffect)(function(){mm()},[d,bl,Cl,Po(Gb),Po(ec),gt]),(0,l.useEffect)(function(){gm()},[p]);var Zb=!!Hb.length,og="".concat(he,"-nav-wrap"),R6,B6,Kb,Yb;return gt?p?(B6=Dt>0,R6=Dt!==Cl):(R6=Dt<0,B6=Dt!==bl):(Kb=Lo<0,Yb=Lo!==bl),l.createElement(vh.A,{onResize:gm},l.createElement("div",{ref:(0,$.xK)(t,Se),role:"tablist","aria-orientation":gt?"horizontal":"vertical",className:m()("".concat(he,"-nav"),n),style:r,onKeyDown:function(){Cc()}},l.createElement(F,{ref:_e,position:"left",extra:g,prefixCls:he}),l.createElement(vh.A,{onResize:gm},l.createElement("div",{className:m()(og,(0,O.A)((0,O.A)((0,O.A)((0,O.A)({},"".concat(og,"-ping-left"),R6),"".concat(og,"-ping-right"),B6),"".concat(og,"-ping-top"),Kb),"".concat(og,"-ping-bottom"),Yb)),ref:Je},l.createElement(vh.A,{onResize:gm},l.createElement("div",{ref:Ne,className:"".concat(he,"-nav-list"),style:{transform:"translate(".concat(Dt,"px, ").concat(Lo,"px)"),transition:nc?"none":void 0}},tg,l.createElement(Aa,{ref:_t,prefixCls:he,locale:w,editable:y,style:(0,E1.A)((0,E1.A)({},tg.length===0?void 0:Sf),{},{visibility:Zb?"hidden":null})}),l.createElement("div",{className:m()("".concat(he,"-ink-bar"),(0,O.A)({},"".concat(he,"-ink-bar-animated"),c.inkBar)),style:aX}))))),l.createElement(tn,(0,k1.A)({},e,{removeAriaLabel:w==null?void 0:w.removeAriaLabel,ref:pt,prefixCls:he,tabs:Hb,className:!Zb&&Rs,tabMoving:!!nc})),l.createElement(F,{ref:De,position:"right",extra:g,prefixCls:he})))});const me=te;var $e=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,s=e.style,c=e.id,d=e.active,p=e.tabKey,g=e.children;return l.createElement("div",{id:c&&"".concat(c,"-panel-").concat(p),role:"tabpanel",tabIndex:d?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(p),"aria-hidden":!d,style:s,className:m()(n,d&&"".concat(n,"-active"),r),ref:t},g)});const nt=$e;var yt=["renderTabBar"],dt=["label","key"],It=function(t){var n=t.renderTabBar,r=(0,Zu.A)(t,yt),s=l.useContext(Ku),c=s.tabs;if(n){var d=(0,E1.A)((0,E1.A)({},r),{},{panes:c.map(function(p){var g=p.label,y=p.key,w=(0,Zu.A)(p,dt);return l.createElement(nt,(0,k1.A)({tab:g,key:y,tabKey:y},w))})});return n(d,me)}return l.createElement(me,r)};const un=It;var xn=i(38088),gn=["key","forceRender","style","className","destroyInactiveTabPane"],wo=function(t){var n=t.id,r=t.activeKey,s=t.animated,c=t.tabPosition,d=t.destroyInactiveTabPane,p=l.useContext(Ku),g=p.prefixCls,y=p.tabs,w=s.tabPane,_="".concat(g,"-tabpane");return l.createElement("div",{className:m()("".concat(g,"-content-holder"))},l.createElement("div",{className:m()("".concat(g,"-content"),"".concat(g,"-content-").concat(c),(0,O.A)({},"".concat(g,"-content-animated"),w))},y.map(function(j){var N=j.key,Z=j.forceRender,Q=j.style,se=j.className,ie=j.destroyInactiveTabPane,he=(0,Zu.A)(j,gn),xe=N===r;return l.createElement(xn.Ay,(0,k1.A)({key:N,visible:xe,forceRender:Z,removeOnLeave:!!(d||ie),leavedClassName:"".concat(_,"-hidden")},s.tabPaneMotion),function(Se,_e){var De=Se.style,Je=Se.className;return l.createElement(nt,(0,k1.A)({},he,{prefixCls:_,id:n,tabKey:N,animated:w,active:xe,style:(0,E1.A)((0,E1.A)({},Q),De),className:m()(se,Je),ref:_e}))})})))};const vo=wo;var Co=i(96952);function Eo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,E1.A)({inkBar:!0},(0,Su.A)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var go=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xo=0,jo=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,s=r===void 0?"rc-tabs":r,c=e.className,d=e.items,p=e.direction,g=e.activeKey,y=e.defaultActiveKey,w=e.editable,_=e.animated,j=e.tabPosition,N=j===void 0?"top":j,Z=e.tabBarGutter,Q=e.tabBarStyle,se=e.tabBarExtraContent,ie=e.locale,he=e.more,xe=e.destroyInactiveTabPane,Se=e.renderTabBar,_e=e.onChange,De=e.onTabClick,Je=e.onTabScroll,Ne=e.getPopupContainer,pt=e.popupClassName,_t=e.indicator,gt=(0,Zu.A)(e,go),Ct=l.useMemo(function(){return(d||[]).filter(function(yr){return yr&&(0,Su.A)(yr)==="object"&&"key"in yr})},[d]),zt=p==="rtl",Dt=Eo(_),sn=(0,l.useState)(!1),Rn=(0,uc.A)(sn,2),On=Rn[0],Lo=Rn[1];(0,l.useEffect)(function(){Lo((0,Hh.A)())},[]);var Yo=(0,Wh.A)(function(){var yr;return(yr=Ct[0])===null||yr===void 0?void 0:yr.key},{value:g,defaultValue:y}),Cn=(0,uc.A)(Yo,2),hn=Cn[0],oa=Cn[1],Ao=(0,l.useState)(function(){return Ct.findIndex(function(yr){return yr.key===hn})}),ca=(0,uc.A)(Ao,2),va=ca[0],ra=ca[1];(0,l.useEffect)(function(){var yr=Ct.findIndex(function(hi){return hi.key===hn});if(yr===-1){var pi;yr=Math.max(0,Math.min(va,Ct.length-1)),oa((pi=Ct[yr])===null||pi===void 0?void 0:pi.key)}ra(yr)},[Ct.map(function(yr){return yr.key}).join("_"),hn,va]);var Jo=(0,Wh.A)(null,{value:n}),$o=(0,uc.A)(Jo,2),sa=$o[0],da=$o[1];(0,l.useEffect)(function(){n||(da("rc-tabs-".concat(xo)),xo+=1)},[]);function nr(yr,pi){De==null||De(yr,pi);var hi=yr!==hn;oa(yr),hi&&(_e==null||_e(yr))}var cr={id:sa,activeKey:hn,animated:Dt,tabPosition:N,rtl:zt,mobile:On},Vr=(0,E1.A)((0,E1.A)({},cr),{},{editable:w,locale:ie,more:he,tabBarGutter:Z,onTabClick:nr,onTabScroll:Je,extra:se,style:Q,panes:null,getPopupContainer:Ne,popupClassName:pt,indicator:_t});return l.createElement(Ku.Provider,{value:{tabs:Ct,prefixCls:s}},l.createElement("div",(0,k1.A)({ref:t,id:n,className:m()(s,"".concat(s,"-").concat(N),(0,O.A)((0,O.A)((0,O.A)({},"".concat(s,"-mobile"),On),"".concat(s,"-editable"),w),"".concat(s,"-rtl"),zt),c)},gt),l.createElement(un,(0,k1.A)({},Vr,{renderTabBar:Se})),l.createElement(vo,(0,k1.A)({destroyInactiveTabPane:xe},cr,{animated:Dt}))))});const na=jo;var Ma=i(46757),Ka=i(46656),Fa=i(37567),xr=i(54709);const Tr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function fi(e,t){t===void 0&&(t={inkBar:!0,tabPane:!1});let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Tr),{motionName:(0,xr.b)(e,"switch")})),n}var bi=i(77172),Er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};function Ya(e){return e.filter(t=>t)}function Br(e,t){if(e)return e.map(r=>{var s;const c=(s=r.destroyOnHidden)!==null&&s!==void 0?s:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:c})});const n=(0,bi.A)(t).map(r=>{if(l.isValidElement(r)){const{key:s,props:c}=r,d=c||{},{tab:p}=d,g=Er(d,["tab"]);return Object.assign(Object.assign({key:String(s)},g),{label:p})}return null});return Ya(n)}const qa=Br;var Mr=i(61972),qr=i(55095),ts=i(58196),Ci=i(48150),Al=i(37387);const hc=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[t+"-switch"]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity "+n}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity "+n}}}}},[(0,Al._j)(e,"slide-up"),(0,Al._j)(e,"slide-down")]]},Js=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:s,colorBorderSecondary:c,itemSelectedColor:d}=e;return{[t+"-card"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{margin:0,padding:n,background:r,border:(0,Mr.zA)(e.lineWidth)+" "+e.lineType+" "+c,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut},[t+"-tab-active"]:{color:d,background:e.colorBgContainer},[t+"-tab-focus:has("+t+"-tab-btn:focus-visible)"]:(0,qr.jk)(e,-3),["& "+t+"-tab"+t+"-tab-focus "+t+"-tab-btn:focus-visible"]:{outline:"none"},[t+"-ink-bar"]:{visibility:"hidden"}},["&"+t+"-top, &"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginLeft:{_skip_check_:!0,value:(0,Mr.zA)(s)}}}},["&"+t+"-top"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:(0,Mr.zA)(e.borderRadiusLG)+" "+(0,Mr.zA)(e.borderRadiusLG)+" 0 0"},[t+"-tab-active"]:{borderBottomColor:e.colorBgContainer}}},["&"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:"0 0 "+(0,Mr.zA)(e.borderRadiusLG)+" "+(0,Mr.zA)(e.borderRadiusLG)},[t+"-tab-active"]:{borderTopColor:e.colorBgContainer}}},["&"+t+"-left, &"+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginTop:(0,Mr.zA)(s)}}},["&"+t+"-left"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:{_skip_check_:!0,value:(0,Mr.zA)(e.borderRadiusLG)+" 0 0 "+(0,Mr.zA)(e.borderRadiusLG)}},[t+"-tab-active"]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&"+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:{_skip_check_:!0,value:"0 "+(0,Mr.zA)(e.borderRadiusLG)+" "+(0,Mr.zA)(e.borderRadiusLG)+" 0"}},[t+"-tab-active"]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},sl=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[t+"-dropdown"]:Object.assign(Object.assign({},(0,qr.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[t+"-dropdown-menu"]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:(0,Mr.zA)(r)+" 0",overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},qr.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:(0,Mr.zA)(e.paddingXXS)+" "+(0,Mr.zA)(e.paddingSM),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationSlow,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},di=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:s,verticalItemPadding:c,verticalItemMargin:d,calc:p}=e;return{[t+"-top, "+t+"-bottom"]:{flexDirection:"column",["> "+t+"-nav, > div > "+t+"-nav"]:{margin:s,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:(0,Mr.zA)(e.lineWidth)+" "+e.lineType+" "+r,content:"''"},[t+"-ink-bar"]:{height:e.lineWidthBold,"&-animated":{transition:"width "+e.motionDurationSlow+", left "+e.motionDurationSlow+",\n right "+e.motionDurationSlow}},[t+"-nav-wrap"]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},["&"+t+"-nav-wrap-ping-left::before"]:{opacity:1},["&"+t+"-nav-wrap-ping-right::after"]:{opacity:1}}}},[t+"-top"]:{["> "+t+"-nav,\n > div > "+t+"-nav"]:{"&::before":{bottom:0},[t+"-ink-bar"]:{bottom:0}}},[t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[t+"-ink-bar"]:{top:0}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{order:0}},[t+"-left, "+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{flexDirection:"column",minWidth:p(e.controlHeight).mul(1.25).equal(),[t+"-tab"]:{padding:c,textAlign:"center"},[t+"-tab + "+t+"-tab"]:{margin:d},[t+"-nav-wrap"]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},["&"+t+"-nav-wrap-ping-top::before"]:{opacity:1},["&"+t+"-nav-wrap-ping-bottom::after"]:{opacity:1}},[t+"-ink-bar"]:{width:e.lineWidthBold,"&-animated":{transition:"height "+e.motionDurationSlow+", top "+e.motionDurationSlow}},[t+"-nav-list, "+t+"-nav-operations"]:{flex:"1 0 auto",flexDirection:"column"}}},[t+"-left"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-ink-bar"]:{right:{_skip_check_:!0,value:0}}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{marginLeft:{_skip_check_:!0,value:(0,Mr.zA)(p(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:(0,Mr.zA)(e.lineWidth)+" "+e.lineType+" "+e.colorBorder},["> "+t+"-content > "+t+"-tabpane"]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{order:1,[t+"-ink-bar"]:{left:{_skip_check_:!0,value:0}}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{order:0,marginRight:{_skip_check_:!0,value:p(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:(0,Mr.zA)(e.lineWidth)+" "+e.lineType+" "+e.colorBorder},["> "+t+"-content > "+t+"-tabpane"]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ss=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:s,cardHeightLG:c,horizontalItemPaddingSM:d,horizontalItemPaddingLG:p}=e;return{[t]:{"&-small":{["> "+t+"-nav"]:{[t+"-tab"]:{padding:d,fontSize:e.titleFontSizeSM}}},"&-large":{["> "+t+"-nav"]:{[t+"-tab"]:{padding:p,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[t+"-card"]:{["&"+t+"-small"]:{["> "+t+"-nav"]:{[t+"-tab"]:{padding:n},[t+"-nav-add"]:{minWidth:s,minHeight:s}},["&"+t+"-bottom"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:"0 0 "+(0,Mr.zA)(e.borderRadius)+" "+(0,Mr.zA)(e.borderRadius)}},["&"+t+"-top"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:(0,Mr.zA)(e.borderRadius)+" "+(0,Mr.zA)(e.borderRadius)+" 0 0"}},["&"+t+"-right"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:{_skip_check_:!0,value:"0 "+(0,Mr.zA)(e.borderRadius)+" "+(0,Mr.zA)(e.borderRadius)+" 0"}}},["&"+t+"-left"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:{_skip_check_:!0,value:(0,Mr.zA)(e.borderRadius)+" 0 0 "+(0,Mr.zA)(e.borderRadius)}}}},["&"+t+"-large"]:{["> "+t+"-nav"]:{[t+"-tab"]:{padding:r},[t+"-nav-add"]:{minWidth:c,minHeight:c}}}}}},Ol=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:s,tabsHorizontalItemMargin:c,horizontalItemPadding:d,itemSelectedColor:p,itemColor:g}=e,y=t+"-tab";return{[y]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:d,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:g,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:"all "+e.motionDurationSlow,[y+"-icon:not(:last-child)"]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,"&:hover":{color:e.colorTextHeading}},(0,qr.K8)(e)),"&:hover":{color:r},["&"+y+"-active "+y+"-btn"]:{color:p,textShadow:e.tabsActiveTextShadow},["&"+y+"-focus "+y+"-btn:focus-visible"]:(0,qr.jk)(e),["&"+y+"-disabled"]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&"+y+"-disabled "+y+"-btn, &"+y+"-disabled "+t+"-remove"]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& "+y+"-remove "+s]:{margin:0},[s+":not(:last-child)"]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[y+" + "+y]:{margin:{_skip_check_:!0,value:c}}}},Ac=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:s,calc:c}=e;return{[t+"-rtl"]:{direction:"rtl",[t+"-nav"]:{[t+"-tab"]:{margin:{_skip_check_:!0,value:n},[t+"-tab:last-of-type"]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,Mr.zA)(e.marginSM)}},[t+"-tab-remove"]:{marginRight:{_skip_check_:!0,value:(0,Mr.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,Mr.zA)(c(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},["&"+t+"-left"]:{["> "+t+"-nav"]:{order:1},["> "+t+"-content-holder"]:{order:0}},["&"+t+"-right"]:{["> "+t+"-nav"]:{order:0},["> "+t+"-content-holder"]:{order:1}},["&"+t+"-card"+t+"-top, &"+t+"-card"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginRight:{_skip_check_:!0,value:s},marginLeft:{_skip_check_:!0,value:0}}}}},[t+"-dropdown-rtl"]:{direction:"rtl"},[t+"-menu-item"]:{[t+"-dropdown-rtl"]:{textAlign:{_skip_check_:!0,value:"right"}}}}},I1=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:s,itemHoverColor:c,itemActiveColor:d,colorBorderSecondary:p}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,qr.dF)(e)),{display:"flex",["> "+t+"-nav, > div > "+t+"-nav"]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[t+"-nav-wrap"]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity "+e.motionDurationSlow,content:"''",pointerEvents:"none"}},[t+"-nav-list"]:{position:"relative",display:"flex",transition:"opacity "+e.motionDurationSlow},[t+"-nav-operations"]:{display:"flex",alignSelf:"stretch"},[t+"-nav-operations-hidden"]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[t+"-nav-more"]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[t+"-nav-add"]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:s},background:"transparent",border:(0,Mr.zA)(e.lineWidth)+" "+e.lineType+" "+p,borderRadius:(0,Mr.zA)(e.borderRadiusLG)+" "+(0,Mr.zA)(e.borderRadiusLG)+" 0 0",outline:"none",cursor:"pointer",color:e.colorText,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut,"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:d}},(0,qr.K8)(e,-3))},[t+"-extra-content"]:{flex:"none"},[t+"-ink-bar"]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ol(e)),{[t+"-content"]:{position:"relative",width:"100%"},[t+"-content-holder"]:{flex:"auto",minWidth:0,minHeight:0},[t+"-tabpane"]:Object.assign(Object.assign({},(0,qr.K8)(e)),{"&-hidden":{display:"none"}})}),[t+"-centered"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-nav-wrap"]:{["&:not([class*='"+t+"-nav-wrap-ping']) > "+t+"-nav-list"]:{margin:"auto"}}}}}},Ed=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:s,controlHeightLG:c}=e,d=t||c,p=n||s,g=r||c+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:d,cardHeightSM:p,cardHeightLG:g,cardPadding:(d-e.fontHeight)/2-e.lineWidth+"px "+e.padding+"px",cardPaddingSM:(p-e.fontHeight)/2-e.lineWidth+"px "+e.paddingXS+"px",cardPaddingLG:(g-e.fontHeightLG)/2-e.lineWidth+"px "+e.padding+"px",titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 "+e.margin+"px 0",horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:e.paddingSM+"px 0",horizontalItemPaddingSM:e.paddingXS+"px 0",horizontalItemPaddingLG:e.padding+"px 0",verticalItemPadding:e.paddingXS+"px "+e.paddingLG+"px",verticalItemMargin:e.margin+"px 0 0 0",itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Vi=(0,ts.OF)("Tabs",e=>{const t=(0,Ci.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 "+(0,Mr.zA)(e.horizontalItemGutter),tabsHorizontalItemMarginRTL:"0 0 0 "+(0,Mr.zA)(e.horizontalItemGutter)});return[Ss(t),Ac(t),di(t),sl(t),Js(t),I1(t),hc(t)]},Ed),ll=()=>null;var i0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const kp=e=>{var t,n,r,s,c,d,p,g,y,w,_;const{type:j,className:N,rootClassName:Z,size:Q,onEdit:se,hideAdd:ie,centered:he,addIcon:xe,removeIcon:Se,moreIcon:_e,more:De,popupClassName:Je,children:Ne,items:pt,animated:_t,style:gt,indicatorSize:Ct,indicator:zt,destroyInactiveTabPane:Dt,destroyOnHidden:sn}=e,Rn=i0(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:On}=Rn,{direction:Lo,tabs:Yo,getPrefixCls:Cn,getPopupContainer:hn}=l.useContext(Ma.QO),oa=Cn("tabs",On),Ao=(0,Ka.A)(oa),[ca,va,ra]=Vi(oa,Ao);let Jo;j==="editable-card"&&(Jo={onEdit:(yr,pi)=>{let{key:hi,event:Hi}=pi;se==null||se(yr==="add"?Hi:hi,yr)},removeIcon:(t=Se!=null?Se:Yo==null?void 0:Yo.removeIcon)!==null&&t!==void 0?t:l.createElement(Hu.A,null),addIcon:(xe!=null?xe:Yo==null?void 0:Yo.addIcon)||l.createElement(Nm,null),showAdd:ie!==!0});const $o=Cn(),sa=(0,Fa.A)(Q),da=qa(pt,Ne),nr=fi(oa,_t),cr=Object.assign(Object.assign({},Yo==null?void 0:Yo.style),gt),Vr={align:(n=zt==null?void 0:zt.align)!==null&&n!==void 0?n:(r=Yo==null?void 0:Yo.indicator)===null||r===void 0?void 0:r.align,size:(p=(c=(s=zt==null?void 0:zt.size)!==null&&s!==void 0?s:Ct)!==null&&c!==void 0?c:(d=Yo==null?void 0:Yo.indicator)===null||d===void 0?void 0:d.size)!==null&&p!==void 0?p:Yo==null?void 0:Yo.indicatorSize};return ca(l.createElement(na,Object.assign({direction:Lo,getPopupContainer:hn},Rn,{items:da,className:m()({[oa+"-"+sa]:sa,[oa+"-card"]:["card","editable-card"].includes(j),[oa+"-editable-card"]:j==="editable-card",[oa+"-centered"]:he},Yo==null?void 0:Yo.className,N,Z,va,ra,Ao),popupClassName:m()(Je,va,ra,Ao),style:cr,editable:Jo,more:Object.assign({icon:(_=(w=(y=(g=Yo==null?void 0:Yo.more)===null||g===void 0?void 0:g.icon)!==null&&y!==void 0?y:Yo==null?void 0:Yo.moreIcon)!==null&&w!==void 0?w:_e)!==null&&_!==void 0?_:l.createElement(Gu.A,null),transitionName:$o+"-slide-up"},De),prefixCls:oa,animated:nr,indicator:Vr,destroyInactiveTabPane:sn!=null?sn:Dt})))};kp.TabPane=ll;const g0=kp,Au=(0,E.Ay)(g0).withConfig({displayName:"styles__StyledTabList",componentId:"sc-17n7o74-0"})(["&.ant-tabs.ant-tabs-top{>.ant-tabs-nav{margin-bottom:0;&::before{border-bottom:none !important;}.ant-tabs-ink-bar{border-radius:3px 3px 0 0;height:3px;}.ant-tabs-ink-bar-animated{transition:left .2s cubic-bezier(.34,.69,.1,1),right .2s cubic-bezier(.34,.69,.1,1),width .2s cubic-bezier(.34,.69,.1,1);}}.ant-tabs-tab{padding:0 0 12px;.ant-tabs-tab-btn{padding:0 3px;font-weight:400;font-size:14px;color:",";}&.ant-tabs-tab-active{.ant-tabs-tab-btn{font-weight:500;color:",";text-shadow:none;}}&.ant-tabs-tab-focus{.ant-tabs-tab-btn{outline:none !important;}}}&.notification-dropdown{.ant-tabs-tab{padding:9px 0;}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),D2=(0,l.memo)(e=>{let{items:t,activeKey:n,className:r,tabBarGutter:s=36,onChange:c,onTabClick:d}=e;return(0,o.jsx)(Au,{items:t,activeKey:n,className:r,tabBarGutter:s,onTabClick:d,onChange:c})});var cl=i(74923),vd=i(88463),ed=i(34771),Ml=i(91474),Mu=i(38155);const is="/mb-proto2/images/resources/template/category/mobile",Gs="/mb-proto2/images/resources/template/category/web",ml="/mb-proto2/images/resources/template/category/hmi",Rl=[{label:"\u6CE8\u518C\u767B\u5F55",value:"login",imgSrc:is+"/login.png"},{label:"\u9996\u9875",value:"home",imgSrc:is+"/home.png"},{label:"\u6211\u7684",value:"me",imgSrc:is+"/me.png"},{label:"\u5217\u8868\u9875",value:"list",imgSrc:is+"/list.png"},{label:"\u641C\u7D22",value:"search",imgSrc:is+"/search.png"},{label:"AI",value:"ai",imgSrc:is+"/ai.png"},{label:"\u5FAE\u4FE1",value:"wechat",imgSrc:is+"/wechat.png"},{label:"\u6D88\u606F",value:"msg",imgSrc:is+"/msg.png"},{label:"\u5F39\u6846\u9875",value:"modal",imgSrc:is+"/modal.png"},{label:"\u5BFC\u822A",value:"nav",imgSrc:is+"/nav.png"},{label:"\u652F\u4ED8",value:"pay",imgSrc:is+"/pay.png"},{label:"\u8868\u5355",value:"form",imgSrc:is+"/form.png"},{label:"\u8D2D\u7269\u8F66",value:"shop",imgSrc:is+"/shop.png"},{label:"\u5546\u54C1\u8BE6\u60C5",value:"detail",imgSrc:is+"/detail.png"},{label:"\u4E0A\u4F20",value:"upload",imgSrc:is+"/upload.png"},{label:"\u53CD\u9988",value:"toast",imgSrc:is+"/toast.png"},{label:"\u7B7E\u5230",value:"sign",imgSrc:is+"/sign.png"},{label:"\u7B5B\u9009",value:"filter",imgSrc:is+"/filter.png"},{label:"\u5206\u4EAB",value:"share",imgSrc:is+"/share.png"},{label:"\u7F3A\u7701\u9875",value:"empty",imgSrc:is+"/empty.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:is+"/other.png"}],Mc=[{label:"\u6CE8\u518C\u767B\u5F55",value:"login",imgSrc:Gs+"/login.png"},{label:"\u9996\u9875",value:"home",imgSrc:Gs+"/home.png"},{label:"\u5BFC\u822A",value:"nav",imgSrc:Gs+"/nav.png"},{label:"\u5217\u8868",value:"list",imgSrc:Gs+"/list.png"},{label:"\u8868\u5355\u9875",value:"form",imgSrc:Gs+"/form.png"},{label:"\u6570\u636E\u9875",value:"data",imgSrc:Gs+"/data.png"},{label:"\u7ED3\u679C\u9875",value:"result",imgSrc:Gs+"/result.png"},{label:"\u5730\u56FE",value:"map",imgSrc:Gs+"/map.png"},{label:"AI",value:"ai",imgSrc:Gs+"/ai.png"},{label:"CRM\u7CFB\u7EDF",value:"crm",imgSrc:Gs+"/crm.png"},{label:"ERP\u7CFB\u7EDF",value:"erp",imgSrc:Gs+"/erp.png"},{label:"\u7535\u5546\u540E\u53F0",value:"webback",imgSrc:Gs+"/webback.png"},{label:"\u5185\u5BB9\u7BA1\u7406",value:"content",imgSrc:Gs+"/content.png"},{label:"\u7528\u6237\u7BA1\u7406",value:"user",imgSrc:Gs+"/user.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:Gs+"/other.png"}],y0=[{label:"\u6846\u67B6",value:"frame",imgSrc:ml+"/frame.png"},{label:"\u767B\u9646\u754C\u9762",value:"login",imgSrc:ml+"/login.png"},{label:"\u5165\u53E3\u6A21\u677F",value:"template",imgSrc:ml+"/template.png"},{label:"\u667A\u6167\u5DE5\u5382",value:"factory",imgSrc:ml+"/factory.png"},{label:"\u56ED\u533A\u5EFA\u7B51",value:"build",imgSrc:ml+"/build.png"},{label:"\u80FD\u6E90\u7535\u529B",value:"power",imgSrc:ml+"/power.png"},{label:"\u4EA4\u901A\u8FD0\u7EF4",value:"traffic",imgSrc:ml+"/traffic.png"},{label:"\u7ECF\u8425\u5206\u6790",value:"business",imgSrc:ml+"/business.png"},{label:"\u667A\u6167\u91D1\u878D",value:"finance",imgSrc:ml+"/finance.png"},{label:"\u667A\u6167\u57CE\u5E02",value:"city",imgSrc:ml+"/city.png"},{label:"\u6C34\u5229\u6C34\u52A1",value:"water",imgSrc:ml+"/water.png"},{label:"\u667A\u6167\u96F6\u552E",value:"retail",imgSrc:ml+"/retail.png"},{label:"\u6587\u5316\u65C5\u6E38",value:"travel",imgSrc:ml+"/travel.png"},{label:"\u667A\u6167\u6821\u56ED",value:"school",imgSrc:ml+"/school.png"},{label:"\u4ED3\u50A8\u7269\u6D41",value:"logistics",imgSrc:ml+"/logistics.png"},{label:"\u533B\u7597\u533B\u836F",value:"medicine",imgSrc:ml+"/medicine.png"},{label:"\u667A\u6167\u519C\u4E1A",value:"farming",imgSrc:ml+"/farming.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:ml+"/other.png"}],ku=E.Ay.div.withConfig({displayName:"styles__StyledPageComp",componentId:"sc-1deyt5b-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px 16px;}.scrollable-marketTemplate-masonry{width:100% !important;}.page-scroll-list-container{scrollbar-width:none;padding-bottom:68px;}.slide-nav{margin-bottom:0 !important;.nav-item{border-radius:6px;}}.template-list-loading-container{gap:20px;padding:0 32px;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.template-box{.template-cover{width:100% !important;}}}.market-template-masonry-list-container{width:100% !important;padding:0 32px;display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));grid-gap:20px;.template-item{margin-bottom:20px;.img-wrapper{border-radius:12px !important;border-color:",";&:hover{.cover-fade{opacity:1;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:48%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0.00) 0%,rgba(0,0,0,0.30) 100%);opacity:0;}}.template-name{margin-top:10px;}.operation-box{bottom:8px;right:8px;.operation .svgContainer{width:24px;height:24px;.open-folder{width:24px;height:24px;border-radius:6px;background:",";}}}}&.web,&.visual{grid-template-columns:repeat(auto-fill,minmax(256px,1fr));.market-template-masonry-column{.sample{height:174px;}}}&.mobile{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.market-template-masonry-column{.sample{height:412px;}}}.market-template-masonry-column{margin-right:20px;width:100%;&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_slider_hover),Yu=E.Ay.div.withConfig({displayName:"styles__StyledPageHomeComp",componentId:"sc-1deyt5b-1"})(["flex:1;overflow:hidden overlay;ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:20px;margin:0px 32px;list-style:none;padding-bottom:40px;li{background:",";display:flex;align-items:center;border-radius:10px;cursor:pointer;&:hover{background:",";}.title{font-size:16px;font-weight:500;color:",";flex:1;margin-left:28px;}.img-wrapper{width:191px;padding:14px 14px 0 0;height:100%;img{height:134px;}}}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),Eu=E.Ay.div.withConfig({displayName:"styles__StyledPageDetail",componentId:"sc-1deyt5b-2"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.bread-header{display:flex;align-items:center;margin:8px 32px 16px 24px;width:fit-content;.split{color:",";}.back-icon{margin-right:6px;.svg-icon{width:7px;transform:rotate(180deg);}}.platform-sub-filter{height:32px;.filter-opener{padding-left:12px;padding-right:8px;button{.display-name{font-size:16px;font-weight:500;}.arrow-icon{margin-left:2px;width:20px !important;height:20px !important;}}}}}.page-scroll-list-container{padding-top:8px;}"],e=>e.theme.color_text_disabled01),fl=E.Ay.div.withConfig({displayName:"styles__StyledPageSearch",componentId:"sc-1deyt5b-3"})(["flex:1;overflow:hidden;position:relative;.loading-container{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:-40px;margin-left:-25px;height:100%;.loading{width:50px;height:50px;}img{margin-top:0;}span{color:",";margin-top:9px;}}.search-result-container{height:100%;.scroll-market-list{padding-bottom:68px;}}"],e=>e.theme.color_text_L3),Fs=e=>{let{platform:t,list:n,onToCategoryDetail:r}=e;return n.length===0?null:(0,o.jsx)(Yu,{children:(0,o.jsx)("ul",{children:n.map(s=>(0,o.jsxs)("li",{onClick:()=>r(s),children:[(0,o.jsx)("span",{className:"title",children:s.label}),(0,o.jsx)("div",{className:"img-wrapper",children:(0,o.jsx)("img",{src:""+s.imgSrc})})]},t+"-"+s.value))})})};var bc=i(90592),Bl=i(77036),X1=i(60407),s0=i(64966),Zh=i(55326),Xb=i(20862);const ag=()=>{const e=(0,a.d4)(q.O4);return(0,o.jsxs)(Qb,{className:"no-result",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/workspace/design/"+(e===ic.Sx.DARK?"no_search_result_dark":"no_search_result_light")+".png",alt:""}),(0,o.jsx)("span",{children:"\u6CA1\u6709\u627E\u5230\u76F8\u5173\u7ED3\u679C"}),(0,o.jsx)(Xb.l,{})]})},Qb=E.Ay.div.withConfig({displayName:"NoSearch__StyledNoSearch",componentId:"sc-1vu091f-0"})(["height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:",";font-size:14px;img{width:88px;margin-bottom:20px;}"],e=>e.theme.color_text_L3);var F6=i(84864),K4=i(80783);const Jb=(0,l.memo)(e=>{let{list:t,currentData:n,platformType:r,onUpdateCurrentData:s,onBack:c,masonryColumnMoblie:d,masonryColumnWeb:p}=e;const g=(0,a.wA)(),y=(0,a.d4)(cl.v3),w=(0,a.d4)(cl.SH),_=(0,a.d4)(tl.nx),j=(0,a.d4)(tl.Kr),N=(0,l.useRef)(null),Z=r+"-"+n.cid,Q=(0,l.useMemo)(()=>{const Ct=y.get(Z);if(_&&(Ct==null?void 0:Ct.length)>0){const zt=_.toUpperCase();return Ct.filter(Dt=>Dt.hotAttr.name.toUpperCase().includes(zt))}return Ct},[Z,y,_]),{checkedResourceSet:se,currentResources:ie,handleChangeCheckedResource:he,handleBySeparately:xe,handleMemberClick:Se,handleAddItems:_e,handleAddItemsAll:De,handleSelectAll:Je,handleClearAll:Ne,handleOpenPreviewModal:pt}=(0,F6.B)({templateList:Q,marketTemplateListMap:w,isFromSameResource:!1}),_t=(0,l.useCallback)(Ct=>{const zt=w.get(Ct.cid);g({type:"modal:update:state",payload:{templateModal:{...j,currentDetailResource:zt}}})},[j,w]),gt=(0,l.useCallback)(Ct=>{const zt=t.find(Dt=>Dt.value===Ct);zt&&(Ne(),s(zt))},[s,Ne,t]);return(0,l.useEffect)(()=>{Ne()},[_]),(0,o.jsxs)(Eu,{children:[(0,o.jsxs)("div",{className:"bread-header",children:[(0,o.jsx)(pc.A,{name:"design/arrow/right",className:"back-icon",onClick:c}),(0,o.jsx)(Zh.A,{menuClassName:"page-detail-dropdown-menu",width:140,selectedValue:n==null?void 0:n.value,optionList:t,onChange:gt}),(0,o.jsx)(K4.R,{})]}),_&&(Q==null?void 0:Q.length)===0?(0,o.jsx)(ag,{}):(0,o.jsx)(bc.i4,{ref:N,className:"page-scroll-list-container",children:Ct=>(0,o.jsx)(Bl.A,{category:Lc.Gd,marketTemplateItemList:Q,isShowSign:!0,isShowFolderIcon:!0,platform:r,containerRect:Ct,onOpenFolder:_t,from:"template-modal",masonryColumnMoblie:d,masonryColumnWeb:p,canChecked:!0,checkedSet:se,onCheckedResource:he,onOpenPreviewModal:pt,isFloatPreviewMkt:!1})}),se.size>0&&(0,o.jsx)(s0.W,{type:"page",resource:ie,checkedSet:se,onBuySeparately:xe,onMemberClick:Se,onSelectAll:Je,onClearAll:Ne,onAddItems:_e,onAddItemsAll:De}),(N==null?void 0:N.current)&&(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:N,isAutoHideBar:!0})]})}),qb=(0,l.memo)(e=>{const{currentData:t,platformType:n,onUpdateCurrentData:r}=e,s=(0,a.wA)(),[c,d]=(0,l.useState)(!1),p=(0,l.useCallback)(async w=>{d(!1),await s({type:"entry:resources:set:templatePanel:modals:page:category:data",payload:{updatedPlatformType:n,updatedPlatformSubType:w.cid,callback:()=>{d(!0)}}})},[s,d]);(0,l.useEffect)(()=>{p(t)},[p,t]);const g=(0,l.useMemo)(()=>n==="mobile"?{itemWidth:145,itemHeight:412}:{itemWidth:225,itemHeight:150},[n]),y=(0,l.useCallback)(async w=>{await p(w),r(w)},[r,p]);return c?(0,o.jsx)(Jb,{...e,onUpdateCurrentData:y}):(0,o.jsx)(X1.A,{...g})});var kf=i(12991),T1=i(13642),$b=i(28306),Jm=i(88909);const eC={mobile:Ml.Il,web:Ml.eD,visual:Ml.i1},tC=e=>{let{platformType:t,masonryColumnMoblie:n,masonryColumnWeb:r,isSearching:s,onSetIsShowSildeNav:c}=e;const[d,p]=(0,l.useState)(!1),[g,y]=(0,l.useState)(new Map),[w,_]=(0,l.useState)(null),j=(0,a.d4)(tl.nx),N=(0,a.d4)(tl.Kr),Z=(0,l.useRef)(null),Q=(0,a.wA)(),se=(0,l.useMemo)(()=>eC[t].reduce((Dt,sn)=>{var Rn;return Dt.concat((w==null||(Rn=w[sn])==null?void 0:Rn.map(On=>{let{mt:Lo}=On;return Lo}))||[])},[]),[t,w]),{checkedResourceSet:ie,currentResources:he,handleChangeCheckedResource:xe,handleBySeparately:Se,handleMemberClick:_e,handleAddItems:De,handleAddItemsAll:Je,handleSelectAll:Ne,handleClearAll:pt,handleOpenPreviewModal:_t}=(0,F6.B)({templateList:se,marketTemplateListMap:g,isFromSameResource:!1});(0,l.useEffect)(()=>{p(!1),(async()=>{var Dt,sn,Rn,On;if(!j)return;c(!0);const Lo={category:"popup_screen_list",q:j,limit:36},Yo=await(0,Go.F7)(new URLSearchParams(Lo),""),Cn=(0,kf.qO)({category:Lc.Gd,searchResults:Yo}),hn=new Map,oa=[],Ao=new Map;Cn==null||(Dt=Cn.resources)==null||Dt.forEach(ra=>{var Jo;hn.set(ra.cid,ra),oa.push(ra.cid),Ao.set(ra.cid,ra==null||(Jo=ra.project_metas[0])==null?void 0:Jo.cid)}),Q({type:"searchPanel:update:state",payload:{searchMtMetaCidMap:Ao}}),y(hn);const ca=(sn=(Rn=Cn.list.find(ra=>{let{name:Jo}=ra;return Jo==="page-screen"}))==null?void 0:Rn.list)!=null?sn:[],va=(0,kf.$Y)((On=ca[0])==null?void 0:On.items,"platform");ca.length===0&&c(!1),_(va),p(!0)})()},[s,j]),(0,l.useEffect)(()=>{pt()},[t]),(0,l.useEffect)(()=>(T1.A.emit(Jm.rg),()=>{T1.A.emit(Jm.P2,{shownMtItemCids:[]})}),[w]);const gt=(0,l.useCallback)(zt=>{Q({type:"modal:update:state",payload:{templateModal:{...N,currentDetailResource:zt}}})},[N]),Ct=ko()(()=>T1.A.emit(Jm.kE,{delay:0}),500);return(0,o.jsx)(fl,{id:"mb-search-results-panel",children:d?(0,o.jsx)("div",{className:"search-result-container",children:se.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(bc.i4,{className:"scroll-market-list page-scroll-list-container",ref:Z,onScrollChange:Ct,children:zt=>(0,o.jsx)(Bl.A,{category:Lc.Gd,marketTemplateItemList:se,isShowSign:!0,isShowFolderIcon:!0,platform:t,containerRect:zt,onOpenFolder:gt,from:"template-modal",masonryColumnMoblie:n,masonryColumnWeb:r,canChecked:!0,checkedSet:ie,onCheckedResource:xe,onOpenPreviewModal:_t,isFloatPreviewMkt:!1,isRequsetMktStore:!1})}),ie.size>0&&(0,o.jsx)(s0.W,{type:"page",resource:he,checkedSet:ie,onBuySeparately:Se,onMemberClick:_e,onSelectAll:Ne,onClearAll:pt,onAddItems:De,onAddItemsAll:Je}),(0,o.jsx)(nC,{renderList:se})]}):(0,o.jsx)(ag,{})}):(0,o.jsxs)("div",{className:"loading-container",children:[(0,o.jsx)(E0.f,{className:"loading"}),(0,o.jsx)("span",{children:I18N.Resources.searching.load})]})})},nC=e=>{let{renderList:t}=e;return(0,l.useEffect)(()=>{if(t&&t.length>0){const n=(0,$b.R9)({source:"\u6A21\u677F\u5F39\u7A97-\u641C\u7D22",list:t});T1.A.emit(Jm.jy,{observeMtItemObj:n}),T1.A.emit(Jm.BD),T1.A.emit(Jm.kE)}},[t]),null},oC={mobile:0,web:1,visual:2},aC=e=>{var t,n;let{pageCategoryDetailData:r,onSetPageCategoryDetailData:s,masonryColumnMoblie:c,masonryColumnWeb:d}=e;const[p,g]=(0,l.useState)(!1),[y,w]=(0,l.useState)(!r),[_,j]=(0,l.useState)(new Map),N=(0,a.d4)(cl.E),[Z,Q]=(0,l.useState)(oC[N]),se=(0,a.d4)(tl.Kr),ie=(0,a.d4)(tl.nx),[he,xe]=(0,l.useState)(ie),Se=(0,a.wA)(),_e=(sn,Rn)=>{const On=Lo=>Lo.map(Yo=>{const Cn=sn.find(hn=>hn.name===Yo.label);if(Cn)return{...Yo,...Cn}}).filter(Yo=>Yo);if(Rn==="mobile")return On(Rl);if(Rn==="web")return On(Mc);if(Rn==="visual")return On(y0)};(0,l.useEffect)(()=>{(async()=>{const Rn=await(0,Mu.bq)(N),On=new Map,Lo=_e(Rn,N);On.set(N,Lo),j(On)})()},[N]);const De=sn=>{Se({type:"modal:update:state",payload:{templateModal:{...se,keyword:sn}}})},Je=(0,l.useMemo)(()=>(ie?Ml.Uf:Ml.Ny).map((Rn,On)=>({key:""+On,label:I18N.Resources.page_panel[Rn]})),[ie]),Ne=(0,l.useMemo)(()=>Ml.Ny[Z],[Z]),pt=sn=>{xe(sn),!sn&&!r&&w(!0)},_t=sn=>{De(sn),g(!0)},gt=()=>{De(""),xe(""),g(!1),r||w(!0)},Ct=async sn=>{if(ie){Q(Number(sn));return}const Rn=Ml.Ny[Number(sn)],On=await(0,Mu.bq)(Rn),Lo=new Map(_),Yo=_e(On,Rn);Lo.set(Rn,Yo),j(Lo),Q(Number(sn))},zt=sn=>{s(sn),w(!1)},Dt=()=>{s(null),w(!0)};return(0,o.jsxs)(ku,{className:"template-modal-page-comp",children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(vd.A,{value:he,className:"search-bar",placeholder:"\u641C\u7D22\u6D77\u91CF"+I18N.LeftSidePanel.template.modals.tabNav.page,onChange:pt,onSearch:_t,onClear:gt,canClear:!0}),y&&(0,o.jsx)(ed.eD,{activeIndex:Z,onTabChange:Ct,height:32,className:"slide-nav",children:Je.map(sn=>{let{key:Rn,label:On}=sn;return(0,o.jsx)(ed.nl,{label:On},Rn)})})]}),r?(0,o.jsx)(qb,{list:(t=_.get(Ne))!=null?t:[],currentData:r,onUpdateCurrentData:s,platformType:Ne,onBack:Dt,masonryColumnMoblie:c,masonryColumnWeb:d}):he?(0,o.jsx)(tC,{platformType:Ne,masonryColumnMoblie:c,masonryColumnWeb:d,isSearching:p,onSetIsShowSildeNav:w}):(0,o.jsx)(Fs,{platform:Ne,list:(n=_.get(Ne))!=null?n:[],onToCategoryDetail:zt})]})};var rg=i(74388);const V6=[{label:"\u5168\u90E8\u7D20\u6750",key:Ml.yB},{type:"divider",key:""},{label:"\u514D\u8D39",key:Ml._n.Everyone},{label:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",key:Ml._n.MktMemberFree},{label:"\u4F1A\u5458\u514D\u8D39",key:Ml._n.MdMemberFree}],rC=(0,l.memo)(e=>{let{policy:t,onSetPolicy:n,onUpdateTemplateList:r}=e;const s=(0,l.useRef)(null),c=(0,a.wA)(),d=(0,l.useMemo)(()=>V6.filter(g=>t.includes(g.key)).map(g=>g.label).join("+"),[t]),p=g=>{if(g===Ml.yB)n([Ml.yB]),r(null,null,[Ml.yB]);else{const y=new Set(t.filter(_=>_!==Ml.yB));y.has(g)?(g===Ml._n.MktMemberFree&&y.delete(Ml._n.MktMemberDiscount),y.delete(g)):(g===Ml._n.MktMemberFree&&y.add(Ml._n.MktMemberDiscount),y.add(g));const w=Array.from(y);w.length===0?(n([Ml.yB]),r(null,null,[Ml.yB])):(n(w),r(null,null,w))}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(rg.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:V6.map(g=>g.type==="divider"?(0,o.jsx)("li",{role:"separator",className:"ant-dropdown-menu-item-divider"},g.key):(0,o.jsxs)("div",{onClick:y=>{y.stopPropagation(),p(g.key)},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(Et.C,{name:"common/checked",className:m()("ant-dropdown-menu-item-icon",{"item-select":t.includes(g.key)})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:g.label})]},g.key))}),placement:"bottomLeft",getPopupContainer:()=>s.current,children:(0,o.jsxs)("div",{className:"item",ref:s,children:[d,(0,o.jsx)(Et.C,{name:"common/expand",size:8,className:"expand-icon"})]})})})}),Y4={default:{default:["default","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","OA\u79FB\u52A8\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF"],\u7535\u5546:["default","\u7EFC\u5408\u7535\u5546","\u5782\u76F4\u7535\u5546","\u793E\u533A\u7535\u5546","\u7535\u5546\u540E\u53F0","\u8D2D\u7269\u652F\u4ED8","\u5546\u5BB6\u7BA1\u7406","ERP\u8FDB\u9500\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u8425\u9500\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u5176\u5B83"],\u6559\u80B2:["default","\u6559\u80B2\u540E\u53F0","\u804C\u4E1A\u6559\u80B2","\u5B66\u79D1\u6559\u80B2","\u6559\u5B66\u7BA1\u7406","\u5728\u7EBF\u8BFE\u5802","\u542F\u8499\u6559\u80B2","\u77E5\u8BC6\u5E73\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u533B\u7597\u540E\u53F0","\u5728\u7EBF\u533B\u7597","\u533B\u7597\u4FDD\u9669","\u533B\u7597\u7F8E\u5BB9","\u533B\u7597\u7CFB\u7EDF","\u5065\u5EB7\u7BA1\u7406","\u8FD0\u52A8\u5065\u8EAB","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u65C5\u6E38:["default","\u666F\u533A\u670D\u52A1","\u51FA\u884C","\u65C5\u6E38\u5E73\u53F0","\u9152\u5E97\u4F4F\u5BBF","\u65C5\u6E38\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u529E\u516C:["default","OA\u79FB\u52A8\u529E\u516C","\u901A\u8BAF","\u5DE5\u5177","\u4F01\u4E1A\u7BA1\u7406\u540E\u53F0","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u4ED6"],\u7269\u8054\u7F51:["default","\u667A\u6167\u56ED\u533A","\u667A\u6167\u4EA4\u901A","\u667A\u6167\u7269\u6D41","\u667A\u80FD\u5236\u9020","\u667A\u6167\u519C\u4E1A","\u56ED\u533A\u7BA1\u7406\u540E\u53F0","\u4EA4\u901A\u7BA1\u7406\u540E\u53F0","WMS\u4ED3\u50A8\u7269\u6D41","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u89C6\u9891\u5E73\u53F0","\u97F3\u9891\u5E73\u53F0","\u65B0\u95FB\u8D44\u8BAF","\u9605\u8BFB\u5E73\u53F0","\u6E38\u620F\u5E73\u53F0","\u76F4\u64AD\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","\u65C5\u6E38\u540E\u53F0","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u793E\u4EA4:["default","\u793E\u4EA4\u540E\u53F0","\u719F\u4EBA\u793E\u4EA4","\u964C\u751F\u4EBA\u793E\u4EA4","\u793E\u533A/\u8BBA\u575B","\u5A5A\u604B","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u751F\u6D3B:["default","\u9910\u996E\u540E\u53F0","\u7F8E\u98DF\u5916\u5356","\u4EA4\u901A\u51FA\u884C","\u4F4F\u623F\u670D\u52A1","\u62DB\u8058\u6C42\u804C","\u672C\u5730\u751F\u6D3B","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],\u91D1\u878D\u7406\u8D22:["default","\u91D1\u878D\u540E\u53F0","\u652F\u4ED8\u5E73\u53F0","\u94F6\u884C","\u8D37\u6B3E\u5E73\u53F0","\u6570\u5B57\u8D27\u5E01","\u6295\u8D44\u7406\u8D22","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u4ED6"],AI:[],\u5176\u5B83:[]},app:{default:["default","\u7EFC\u5408\u7535\u5546","\u964C\u751F\u4EBA\u793E\u4EA4","\u6E38\u620F\u5E73\u53F0","\u5728\u7EBF\u533B\u7597","OA\u79FB\u52A8\u529E\u516C","\u6559\u5B66\u7BA1\u7406","\u65C5\u6E38\u5E73\u53F0","\u667A\u6167\u56ED\u533A","\u6295\u8D44\u7406\u8D22"],\u7535\u5546:["default","\u7EFC\u5408\u7535\u5546","\u5782\u76F4\u7535\u5546","\u8D2D\u7269\u652F\u4ED8","\u4E8C\u624B\u4EA4\u6613","\u8DE8\u5883\u7535\u5546","\u5546\u5BB6\u7BA1\u7406","\u7269\u6D41\u5FEB\u9012","\u5176\u5B83"],\u793E\u4EA4:["default","\u964C\u751F\u4EBA\u793E\u4EA4","\u719F\u4EBA\u793E\u4EA4","\u793E\u533A/\u8BBA\u575B","\u5A5A\u604B","\u5176\u5B83"],\u751F\u6D3B:["default","\u7F8E\u98DF\u5916\u5356","\u672C\u5730\u751F\u6D3B","\u4EA4\u901A\u51FA\u884C","\u4F4F\u623F\u670D\u52A1","\u62DB\u8058\u6C42\u804C","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u6E38\u620F\u5E73\u53F0","\u89C6\u9891\u5E73\u53F0","\u97F3\u9891\u5E73\u53F0","\u9605\u8BFB\u5E73\u53F0","\u65B0\u95FB\u8D44\u8BAF","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u5728\u7EBF\u533B\u7597","\u517B\u8001\u4EA7\u4E1A","\u533B\u7597\u7F8E\u5BB9","\u533B\u7597\u4FDD\u9669","\u5176\u5B83"],\u529E\u516C:["default","OA\u79FB\u52A8\u529E\u516C","CRM\u5BA2\u6237\u7BA1\u7406","\u901A\u8BAF","\u5DE5\u5177","\u8D22\u52A1","\u9879\u76EE\u7BA1\u7406","\u5176\u5B83"],\u6559\u80B2:["default","\u6559\u5B66\u7BA1\u7406","\u77E5\u8BC6\u5E73\u53F0","\u5728\u7EBF\u8BFE\u5802","\u5B66\u79D1\u6559\u80B2","\u804C\u4E1A\u6559\u80B2","\u542F\u8499\u6559\u80B2","\u5176\u5B83"],\u65C5\u6E38:["default","\u65C5\u6E38\u5E73\u53F0","\u9152\u5E97\u4F4F\u5BBF","\u51FA\u884C","\u666F\u533A\u670D\u52A1","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],\u7269\u8054\u7F51:["default","\u667A\u6167\u56ED\u533A","\u667A\u80FD\u5236\u9020","\u667A\u6167\u7269\u6D41","\u667A\u6167\u4EA4\u901A","\u5176\u5B83"],\u91D1\u878D\u7406\u8D22:["default","\u6295\u8D44\u7406\u8D22","\u94F6\u884C","\u8D37\u6B3E\u5E73\u53F0","\u6570\u5B57\u8D27\u5E01","\u652F\u4ED8\u5E73\u53F0","\u5176\u5B83"],AI:[],\u5176\u5B83:[]},applet:{default:[],\u7535\u5546:[],\u751F\u6D3B:[],\u6559\u80B2:[],\u533B\u7597\u5065\u5EB7:[],\u529E\u516C:[],\u65C5\u6E38:[],\u4F53\u80B2\u8FD0\u52A8:[],AI:[],\u5176\u5B83:[]},web_back:{default:["default","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u7535\u5546\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0"],\u6559\u80B2:["default","\u6559\u80B2\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u529E\u516C:["default","\u4F01\u4E1A\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u7535\u5546:["default","\u7535\u5546\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u7269\u8054\u7F51:["default","\u56ED\u533A\u7BA1\u7406\u540E\u53F0","\u4EA4\u901A\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u533B\u7597\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u91D1\u878D\u7406\u8D22:["default","\u91D1\u878D\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u793E\u4EA4:["default","\u793E\u4EA4\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u76F4\u64AD\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u751F\u6D3B:["default","\u9910\u996E\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u65C5\u6E38:["default","\u65C5\u6E38\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],AI:[],\u5176\u5B83:[]},website:{default:[],\u7535\u5546:[],\u793E\u4EA4:[],\u533B\u7597\u5065\u5EB7:[],\u65C5\u6E38:[],\u6559\u80B2:[],\u6587\u5316\u5A31\u4E50:[],\u529E\u516C:[],\u91D1\u878D\u7406\u8D22:[],\u751F\u6D3B:[],\u7269\u8054\u7F51:[],AI:[],\u5176\u5B83:[]},display_screen:{default:[],\u667A\u6167\u5DE5\u5382:[],\u667A\u6167\u653F\u52A1:[],\u667A\u6167\u57CE\u5E02:[],\u80FD\u6E90\u7535\u529B:[],\u7ECF\u8425\u5206\u6790:[],\u76D1\u7BA1\u8FD0\u7EF4:[],\u56ED\u533A\u5EFA\u7B51:[],\u667A\u6167\u6821\u56ED:[],\u533B\u836F\u533B\u7597:[],\u667A\u6167\u91D1\u878D:[],\u6587\u5316\u65C5\u6E38:[],\u4ED3\u50A8\u7269\u6D41:[],\u6C34\u5229\u6C34\u52A1:[],\u667A\u6167\u96F6\u552E:[],\u5176\u5B83:[]},ipad:{default:[],\u7535\u5546:[],\u793E\u4EA4:[],\u533B\u7597\u5065\u5EB7:[],\u65C5\u6E38:[],\u6559\u80B2:[],\u6587\u5316\u5A31\u4E50:[],\u529E\u516C:[],\u91D1\u878D\u7406\u8D22:[],\u751F\u6D3B:[],\u7269\u8054\u7F51:[],\u5176\u5B83:[]},activity:{},smart_tv:{},HMI:{},smart_car:{},apple_watch:{},slide:{},other:{}},iC={default:{default:"\u529E\u516C"},app:{default:"\u7535\u5546"},web_back:{default:"\u529E\u516C"}},sC=e=>{let{industry:t,platform:n,onSetIndusty:r,onSetSubIndusty:s,onUpdateTemplateList:c}=e;const d=(0,l.useRef)(null),p=(0,l.useMemo)(()=>{var y;const w=(y=Object.keys(Y4[n]))!=null?y:[];return w==null?void 0:w.map(_=>({label:_==="default"?"\u5168\u90E8\u884C\u4E1A":_,key:_}))},[n]),g=y=>{var w;r(y);const _=(w=Y4[n])==null?void 0:w[t];_.length>0&&s(_[0]),c(y,_[0])};return p.length===0?null:(0,o.jsx)(rg.A,{forceRender:!0,dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:p.map(y=>(0,o.jsxs)("div",{onClick:w=>{var _;w.stopPropagation(),g(y.key);const j=(_=d.current)==null?void 0:_.querySelector(".ant-dropdown");j&&(j.classList.add("is-hide"),d.current.classList.remove("ant-dropdown-open"))},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(Et.C,{name:"common/checked",className:m()("ant-dropdown-menu-item-icon",{"item-select":t===y.key})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:y.label})]},y.key))}),placement:"bottomLeft",getPopupContainer:()=>d.current,children:(0,o.jsxs)("div",{className:"item",ref:d,onMouseEnter:()=>{var y;const w=(y=d.current)==null?void 0:y.querySelector(".ant-dropdown");w&&(w.classList.remove("is-hide"),d.current.classList.add("ant-dropdown-open"))},children:[t==="default"?"\u5168\u90E8\u884C\u4E1A":t,(0,o.jsx)(Et.C,{name:"common/expand",size:8,className:"expand-icon"})]})})},lC=e=>{let{platform:t,subIndustry:n,industry:r,onSetSubIndusty:s,onSetIndusty:c,onUpdateTemplateList:d}=e;const p=(0,l.useRef)(null),g=(0,l.useMemo)(()=>{var w,_;const j=(w=(_=Y4[t])==null?void 0:_[r])!=null?w:[];return j==null?void 0:j.map(N=>({label:N==="default"?"\u5168\u90E8\u5B50\u884C\u4E1A":N,key:N}))},[r,t]),y=w=>{var _;s(w);const j=(_=iC[t])==null?void 0:_[r];j&&c(j),d(j||r,w)};return g.length===0?null:(0,o.jsx)(rg.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:g.map(w=>(0,o.jsxs)("div",{onClick:_=>{var j;_.stopPropagation(),y(w.key);const N=(j=p.current)==null?void 0:j.querySelector(".ant-dropdown");N&&(N.classList.add("is-hide"),p.current.classList.remove("ant-dropdown-open"))},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(Et.C,{name:"common/checked",className:m()("ant-dropdown-menu-item-icon",{"item-select":n===w.key})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:w.label})]},w.key))}),placement:"bottomLeft",getPopupContainer:()=>p.current,children:(0,o.jsxs)("div",{className:"item",ref:p,onMouseEnter:()=>{var w;const _=(w=p.current)==null?void 0:w.querySelector(".ant-dropdown");_&&(_.classList.remove("is-hide"),p.current.classList.add("ant-dropdown-open"))},children:[n==="default"?"\u5168\u90E8\u5B50\u884C\u4E1A":n,(0,o.jsx)(Et.C,{name:"common/expand",size:8,className:"expand-icon"})]})})},cC=E.Ay.div.withConfig({displayName:"styles__StyledDropdownFilter",componentId:"sc-1ig3qk0-0"})(["display:flex;font-size:12px;color:",";.ant-dropdown-trigger{padding:8px 6px 8px;margin-right:16px;&.ant-dropdown-open{.expand-icon{transform:rotate(-180deg);}}.expand-icon{margin-left:7px;}}"],e=>e.theme.color_text_L1),dC=(0,E.DU)([".ant-dropdown{width:180px !important;margin:4px 0 !important;min-width:auto !important;&.is-hide{opacity:0;}}.ant-dropdown-menu{padding:8px !important;width:180px !important;background:"," !important;box-shadow:"," !important;border:1px solid "," !important;.ant-dropdown-menu-item{color:"," !important;&:hover{background:"," !important;}}}.ant-dropdown-menu-item{padding:5px 8px !important;.ant-dropdown-menu-item-icon{width:16px !important;height:16px !important;margin-inline-end:4px !important}svg{&:not(.item-select){opacity:0;}}.ant-dropdown-menu-title-content{color:"," !important;font-size:12px !important;}}"],e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),pC=e=>{let{platform:t,isResetIndustry:n,onUpdateTemplateList:r,onResetScroll:s}=e;const[c,d]=(0,l.useState)([Ml.yB]),[p,g]=(0,l.useState)(Ml.yB),[y,w]=(0,l.useState)(Ml.yB),{labelsMap:_}=(0,a.d4)(tl.Kr);(0,l.useEffect)(()=>{n&&(g(Ml.yB),w(Ml.yB))},[n]);const j=(0,l.useCallback)(function(N,Z,Q){N===void 0&&(N=p),Z===void 0&&(Z=y),Q===void 0&&(Q=c);const se={};if(N){if(N===Ml.yB)se.plabel=Ml.yB,se.clabel=Ml.yB;else if(_[N]){var ie,he;if(se.plabel=N,se.plabelId=(ie=_[N])==null?void 0:ie.plabelId,Z&&(he=_[N])!=null&&he.clabels[Z]){var xe;se.clabel=Z,se.clabelId=(xe=_[N])==null?void 0:xe.clabels[Z]}else se.clabel=Ml.yB}}if(Q)if(Q.length>0&&Q.includes(Ml.yB))se.policy=Ml.yB;else{const Se=Ml.RY.map(_e=>{if(Q.includes(_e))return _e}).filter(_e=>_e).join("_");se.policy=Ml.rW[Se]}r(se,!0),s()},[p,_,r,c,y]);return(0,o.jsxs)(cC,{className:"dropdown-container",children:[(0,o.jsx)(sC,{platform:t,industry:p,onSetIndusty:g,onSetSubIndusty:w,onUpdateTemplateList:j}),(0,o.jsx)(lC,{platform:t,industry:p,subIndustry:y,onSetIndusty:g,onSetSubIndusty:w,onUpdateTemplateList:j}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(rC,{policy:c,onSetPolicy:d,onUpdateTemplateList:j}),(0,o.jsx)(dC,{})]})};var uC=i(19396),X4=i.n(uC),Q4=i(61541),Ef=i(69874),z6=i(27142),W6=i(64335),zc=i(78257);const hC=E.Ay.div.withConfig({displayName:"styles__StyledListComp",componentId:"sc-xp5lbg-0"})(["flex:1;overflow:hidden overlay;ul.template-list-container{display:grid;list-style:none;padding-bottom:40px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px;margin:0 32px;}.template-list-loading-container{padding:0 32px;grid-gap:20px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));.template-box{.template-cover{width:100% !important;border-radius:12px !important;}}}"]),mC=E.Ay.li.withConfig({displayName:"styles__StyledTemplateItem",componentId:"sc-xp5lbg-1"})(["position:relative;.vip{position:absolute;top:10px;right:10px;height:20px;z-index:1;&.short{width:20px}}&:hover{.vip.short{visibility:hidden}}&:not(:hover){.vip.long{visibility:hidden}}.new{position:absolute;top:10px;left:10px;height:20px;z-index:1;}.btn-box{display:none;position:absolute;width:24px;height:24px;bottom:8px;right:8px;border-radius:6px;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);.temp-star-btn{width:8px;height:11px;path{fill:#fff;}}&.isStarred{background:",";}&:not(.isStarred):hover{background:rgba(51,51,51,0.7);}}.template-cover{position:relative;border-radius:12px;overflow:hidden;padding-bottom:74%;height:0px;cursor:pointer;border:1px solid rgba(18,17,42,0.07);box-sizing:border-box;&:hover{.cover-fade{opacity:1;}.btn-box{display:flex;}}img{width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}&.mask{opacity:0.65;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:25%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%);opacity:0;}}.templateInfo{display:flex;justify-content:space-between;align-items:center;margin-top:10px;.editable-span{color:",";cursor:pointer;}.liked,.used{display:flex;color:",";margin-left:8px;align-items:center;margin-top:1px;cursor:pointer;.nums{margin-left:4px;}}}"],e=>e.theme.color_proto,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),fC=(0,o.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fill:"#8B8C8F",stroke:"#8B8C8F",strokeWidth:".12",d:"m6.28 3.11-.01.04Q5.94 4.6 5.3 5.4a2.4 2.4 0 0 1-1.82.9h-.35c-.84.02-1.52.72-1.52 1.58v4.96c0 1.05.84 1.9 1.88 1.9h6.44a3.2 3.2 0 0 0 3.01-2.14l1.34-3.74-.05-.02.05.02a1.9 1.9 0 0 0-1.77-2.53H9.8q.38-1.69.53-2.45l-.06-.01h.06c.13-.66.02-1.3-.29-1.79-.31-.48-.84-.8-1.53-.8a2 2 0 0 0-1.44.47q-.52.46-.78 1.37Zm1.49-.5q.25-.22.73-.22.43.01.63.35.2.35.1.9-.18.9-.68 3.11c-.08.35.18.69.54.69h3.42q.13 0 .26.04c.4.15.6.59.46 1l.05.01-.05-.02-1.34 3.74.06.02-.06-.02c-.3.84-1.08 1.4-1.96 1.4H3.49a.77.77 0 0 1-.76-.78V7.87c0-.25.2-.45.44-.46h.34a3.5 3.5 0 0 0 2.66-1.32q.8-1 1.18-2.67.17-.59.42-.8Zm-4.6 4.74h.34a3.5 3.5 0 0 0 2.61-1.3z"})}),gC=(0,o.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fill:"#F85050",d:"M13.15 6.41q-.31-.12-.64-.1H9.79l.53-2.46c.12-.62.01-1.26-.32-1.8a1.8 1.8 0 0 0-1.53-.8 2 2 0 0 0-1.44.47 3 3 0 0 0-.78 1.37q-.24 1.23-1 2.24-.32.4-.76.65-.49.23-1 .25h-.36A1.56 1.56 0 0 0 1.6 7.85v5a1.9 1.9 0 0 0 1.88 1.9h6.44a3.2 3.2 0 0 0 3-2.14l1.34-3.74a1.9 1.9 0 0 0-1.12-2.46"})}),yC=(0,o.jsxs)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:[(0,o.jsx)("g",{clipPath:"url(#clip0_11355_1024)",children:(0,o.jsx)("path",{fill:"#8B8C8F",d:"M14.18 7.25a.8.8 0 0 0-.76-.51h-2.74v-4a1 1 0 0 0-1-1H6.34a1 1 0 0 0-1 1v4H2.58a.8.8 0 0 0-.77.5.9.9 0 0 0 .19.91L7.4 14a.9.9 0 0 0 .6.26.8.8 0 0 0 .6-.26L14 8.16a.8.8 0 0 0 .18-.91M12.69 8 8 13 3.31 8v-.06h2.62a.56.56 0 0 0 .56-.56V2.87h3a.1.1 0 0 1 .05.06V7.3a.56.56 0 0 0 .55.56h2.53s.09.07.07.14"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11355_1024",children:(0,o.jsx)("path",{fill:"#fff",d:"M1.75 1.75h12.5v12.5H1.75z"})})})]}),H6=e=>{let{template:t,isShowTag:n=!0,isShowStar:r=!0,onClickItem:s,onFavorite:c,onStar:d,onUsedCallback:p}=e;const{isMdVipTemplate:g,isMktVipTemplate:y}=(0,Q4.TX)(t),w=new z6.H(t.liked_count).getDisplayStr(),_=new z6.H(t.used_count).getDisplayStr(),{handleUsedTemplate:j}=(0,W6.A)(),N=(0,a.wA)(),Z=(0,l.useMemo)(()=>{if(!n)return!1;const he=an()().diff(an()(t.updated_at),"day");return he<=30&&he>=0},[n,t.updated_at]),Q=he=>{he.stopPropagation(),c==null||c(t)},se=he=>{he.stopPropagation(),d==null||d(t)},ie=he=>{he.stopPropagation(),j(t,xe=>{p==null||p(t),xe&&(N({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),N({type:"entry:active:popup:panel",payload:{name:zc.lS.Directory}}))})};return(0,o.jsxs)(mC,{className:"template-item",onClick:()=>s(t),children:[(0,o.jsxs)("div",{className:"template-cover",children:[(0,o.jsx)("img",{src:t.cover,className:"cover"}),(0,o.jsx)("div",{className:"cover-fade"}),r&&(0,o.jsx)("div",{className:m()("btn-box",{"isStarred ":t.is_star}),onClick:he=>se(he),children:(0,o.jsx)(Os.A,{content:t.is_star?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,o.jsx)(Et.C,{className:m()("temp-star-btn"),name:"art_board/resources/star/small"})})})]}),(0,o.jsxs)("div",{className:"templateInfo",children:[(0,o.jsx)(Ef.A,{value:t.title,className:"editable-span",isEditing:!1},t.title),n&&(0,o.jsxs)(o.Fragment,{children:[!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:"liked",onClick:Q,children:[t.is_liked?gC:fC,(0,o.jsx)("span",{className:"nums",children:w})]}),(0,o.jsxs)("div",{className:"used",onClick:ie,children:[yC,!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"nums",children:_})]})]})]}),g&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Et.C,{className:"vip short",name:"art_board/community_resources/md_vip_s",isColorPure:!0}),(0,o.jsx)("img",{className:"vip long",src:"/mb-proto2/images/nav/md_vip.png"})]}),y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Et.C,{className:"vip short",name:"art_board/community_resources/mt_vip_s",isColorPure:!0}),(0,o.jsx)("img",{className:"vip long",src:"/mb-proto2/images/nav/mt_vip.png"})]}),Z&&(0,o.jsx)("img",{className:"new",src:"/mb-proto2/images/nav/item_new.png"})]},t.cid)},vC=e=>{let{templateList:t,keyword:n,isLoadedTemplateData:r,onRequestTemplateList:s,onUpdateTemplateList:c,onTrack:d}=e;const p=(0,l.useRef)(null),g=(0,l.useRef)(null),y=(0,a.wA)(),w=(0,a.d4)(tl.Kr),_=(0,a.d4)(re.PL),j=(0,a.d4)(re.wA),N=(0,a.d4)(re.HW);(0,l.useEffect)(()=>{if(!p.current)return;const he=X4()(xe=>{var Se,_e;const De=xe.target.scrollTop,Je=xe.target.offsetHeight;if(((Se=g==null||(_e=g.current)==null?void 0:_e.offsetHeight)!=null?Se:0)-Je-De<80&&r){var pt;const _t=p.current,gt=(pt=_t==null?void 0:_t.scrollTop)!=null?pt:0;s(null,!1).then(()=>{requestAnimationFrame(()=>{if(p.current){var Ct;p.current.scrollTop=gt+((Ct=_t==null?void 0:_t.offsetHeight)!=null?Ct:0)-80}})})}},100);return p.current.addEventListener("scroll",he),()=>{var xe;p==null||(xe=p.current)==null||xe.removeEventListener("scroll",he)}},[r,s,g==null?void 0:g.current]),(0,l.useEffect)(()=>{const{actionType:he,actionData:xe}=w;he&&xe&&(he==="star"&&se(xe,"is-from-community-detail-frame"),he==="favorite"&&Q(xe,"is-from-community-detail-frame"))},[w.actionType,w.actionData]);const Z=(0,l.useCallback)(he=>{y({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:he}}}),d(he)},[]),Q=(0,l.useCallback)(async function(he,xe){if(xe===void 0&&(xe=""),!he||MB.global.experienceLoginModalHelper("isSave"))return;if(xe==="is-from-community-detail-frame"){const pt=(0,Ye.$G)(t,_t=>_t.cid===he.cid,{...he});c(pt);return}const Se=!he.is_liked,_e=he.target_upper_cid||he.cid;Se?await(0,l2.q3)(_e):await(0,l2.V)(_e);const De=Se?he.liked_count+1:he.liked_count-1,Je={is_liked:Se,liked_count:De},Ne=(0,Ye.$G)(t,pt=>pt.cid===he.cid,{...he,...Je});c(Ne)},[t]),se=(0,l.useCallback)(async function(he,xe){if(xe===void 0&&(xe=""),!he||MB.global.experienceLoginModalHelper("isSave"))return;if(xe==="is-from-community-detail-frame"){const Ne=(0,Ye.$G)(t,pt=>pt.cid===he.cid,{...he});c(Ne);return}const{is_star:Se,cid:_e}=he;await(0,t0.lU)(Se,_e);const De={is_star:!he.is_star},Je=(0,Ye.$G)(t,Ne=>Ne.cid===he.cid,{...he,...De});c(Je)},[t]),ie=(0,l.useCallback)(he=>{const xe={used_count:he.used_count+1},Se=(0,Ye.$G)(t,_e=>_e.cid===he.cid,{...he,...xe});c(Se)},[t]);return(0,o.jsx)(hC,{className:"market-template-scroll-container",ref:p,children:r?(0,o.jsx)(o.Fragment,{children:n&&t.length===0?(0,o.jsx)(ag,{}):(0,o.jsx)("ul",{className:"template-list-container",ref:g,children:t.map(he=>(0,o.jsx)(H6,{template:he,onClickItem:Z,onFavorite:Q,onStar:se,onUsedCallback:ie},he.cid))})}):(0,o.jsx)(X1.A,{itemHeight:190,itemWidth:224})})},xC={default:"\u5168\u90E8",everyone:"\u514D\u8D39",member_free:"VIP\u514D\u8D39",mt_member_free:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",mt_free_discount:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_mt_free:"\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_md_mt_free:"\u514D\u8D39-VIP\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",md_mt_free:"VIP\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_md_free:"\u514D\u8D39-VIP\u514D\u8D39"},bC=e=>{let{template:t,plabel:n,clabel:r,keyword:s,order:c,policy:d,platform:p}=e;const{isMdVipTemplate:g,isMktVipTemplate:y}=(0,Q4.TX)(t);(0,e0.ZI)("template_detail_show",{source:"\u7F16\u8F91\u533A-\u6587\u4EF6\u6A21\u677F\u5F39\u7A97",plabel:n===Ml.yB||!n?"\u5168\u90E8":n,clabel:r===Ml.yB||!r?"\u5168\u90E8":r,keyword:s,order:c||"\u70ED\u95E8\u63A8\u8350",platform:p||"\u5168\u90E8",template_name:t.title,template_cid:t.cid,is_vip_template:g,is_scvip_template:y,policy:xC[d]})},CC=E.Ay.div.withConfig({displayName:"styles__StyledFileComp",componentId:"sc-hxnj1j-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px 16px;}.category-filter-container{display:flex;justify-content:space-between;align-items:center;img.new{height:18px;margin-left:4px;}}.slide-nav{&.platForm{margin-bottom:12px;.nav-item{border-radius:6px;span.nav-label{display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}&.category{margin:0 !important;.nav-item{padding-left:0;padding-right:0;margin-right:24px;}}}"]),wC=()=>{const[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)([]),[s,c]=(0,l.useState)(0),[d,p]=(0,l.useState)(0),g=(0,l.useRef)(null),y=(0,l.useRef)(0),w=(0,l.useRef)(0),_=(0,l.useRef)(!1),j=(0,a.d4)(tl.nx),N=(0,a.d4)(tl.Kr),Z=(0,a.wA)(),Q=async function(gt,Ct){var zt;if(Ct===void 0&&(Ct=!0),!Ct&&y.current!==0&&n.length>=y.current)return;t(!1);let Dt=w.current;Ct?Dt=1:Dt=Dt+1,gt&&(g.current={...(zt=g.current)!=null?zt:{},...gt});const sn=await(0,Mu.n5)(g.current,Dt);y.current=sn.total_count,r(Ct?sn.market_templates:[...n,...sn.market_templates]),w.current=Dt,t(!0)};(0,l.useEffect)(()=>{(async()=>{if(j){Q({q:j});return}const{total_count:Ct,market_templates:zt}=await(0,Mu.n5)(null);y.current=Ct,r(zt),t(!0)})()},[j]);const se=gt=>{Z({type:"modal:update:state",payload:{templateModal:{...N,keyword:gt}}})},ie=gt=>{var Ct,zt;const{plabel:Dt,clabel:sn,policy:Rn="default",order:On="recommend",platform:Lo="default"}=g.current||{};bC({template:gt,platform:(Ct=he.find(Yo=>Yo.value===Lo))==null?void 0:Ct.label,plabel:Dt,clabel:sn,policy:Rn,order:(zt=xe.find(Yo=>Yo.value===On))==null?void 0:zt.label,keyword:j})},he=(0,l.useMemo)(()=>{const gt=[{label:"\u5168\u90E8",value:"default",key:0},{label:"App",value:"app",key:1},{label:"Web\u540E\u53F0",value:"web_back",key:2},{label:"\u5C0F\u7A0B\u5E8F",value:"applet",key:3},{label:"Web\u7F51\u7AD9",value:"website",key:4},{label:"\u5E7B\u706F\u7247",value:"slide",key:11}];return ENV.IS_ON_PREMISES?gt:gt.concat([{label:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"display_screen",key:5},{label:"HMI",value:"HMI",key:6},{label:"\u5E73\u677F\u7AEF",value:"ipad",key:7},{label:"\u667A\u80FD\u7535\u89C6",value:"smart_tv",key:8},{label:"\u6D3B\u52A8",value:"activity",key:9},{label:"\u624B\u8868",value:"apple_watch",key:10},{label:"\u5176\u5B83",value:"other",key:12}]).sort((Ct,zt)=>Ct.key-zt.key)},[]),xe=(0,l.useMemo)(()=>[{label:"\u70ED\u95E8\u63A8\u8350",value:"recommend",key:0},{label:"\u6700\u65B0\u53D1\u5E03",value:"recent",key:1},{label:"\u6700\u591A\u6D4F\u89C8",value:"views",key:2},{label:"\u6700\u591A\u4F7F\u7528",value:"used",key:3}],[]),Se=(0,l.useMemo)(()=>{var gt;return(gt=he.find(Ct=>{let{key:zt}=Ct;return s===zt}))==null?void 0:gt.value},[s,he]),_e=gt=>{se(gt),Ne()},De=gt=>{Q({q:gt})},Je=()=>{var gt;se(""),(gt=g.current)==null||delete gt.q,Q(null),Ne()},Ne=()=>{const gt=document.querySelector(".market-template-scroll-container");gt&&(gt.scrollTop=0)},pt=gt=>{c(gt);const Ct=he.find(zt=>{let{key:Dt}=zt;return gt===Dt});if(Ct){const zt={platform:Ct.value,plabel:Ml.yB,clabel:Ml.yB};_.current=!0,Q(zt,!0),Ne()}},_t=gt=>{p(gt);const Ct=xe.find(zt=>{let{key:Dt}=zt;return gt===Dt});if(Ct){const zt={order:Ct.value};_.current=!1,Q(zt,!0),Ne()}};return(0,o.jsxs)(CC,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(vd.A,{value:j,className:"search-bar",placeholder:"\u641C\u7D22\u6D77\u91CF"+I18N.LeftSidePanel.template.modals.tabNav.file,onChange:_e,onSearch:De,onClear:Je,wait:200,canClear:!0,isInstantSearch:!1}),(0,o.jsx)(ed.eD,{activeIndex:s,onTabChange:pt,height:32,className:"slide-nav platForm",children:he.map(gt=>{let{key:Ct,label:zt}=gt;return(0,o.jsx)(ed.nl,{label:zt},Ct)})}),(0,o.jsx)("div",{className:"category-filter-container",children:!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ed.np,{activeIndex:d,onTabChange:_t,className:"slide-nav category",children:xe.map(gt=>{let{key:Ct,label:zt}=gt;return(0,o.jsx)(ed.nl,{label:zt,children:Ct===1?(0,o.jsx)("img",{className:"new",src:"/mb-proto2/images/nav/filter_new.png"}):null},Ct)})}),(0,o.jsx)(pC,{platform:Se,isResetIndustry:_.current,onUpdateTemplateList:Q,onResetScroll:Ne})]})})]}),(0,o.jsx)(vC,{isLoadedTemplateData:e,templateList:n,onRequestTemplateList:Q,onUpdateTemplateList:r,keyword:j,onTrack:ie})]})};var If=i(60921),SC=i(90853);const AC=E.Ay.div.withConfig({displayName:"styles__StyledMeComp",componentId:"sc-1ik7ndh-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px;.filter-group{display:flex;align-items:center;margin-top:16px;.slide-nav{flex:1;margin:0 !important;.nav-item{border-radius:6px;}}.platform-sub-filter{height:32px;}}}"]),MC=E.Ay.div.withConfig({displayName:"styles__StyledListComp",componentId:"sc-1ik7ndh-1"})(["flex:1;overflow:hidden overlay;ul.template-list-container{display:grid;list-style:none;padding-bottom:40px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px;margin:0 32px;}.template-list-loading-container{padding:0 32px;grid-gap:20px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));.template-box{.template-cover{width:100% !important;}}}.empty-content{margin:0 auto;width:270px;}"]),kC=e=>{let{keyword:t,isLoadedTemplateData:n,templateList:r,allTemplateList:s,onUpdateTemplateList:c}=e;const d=(0,a.wA)(),p=(0,a.d4)(q.O4),g=(0,a.d4)(tl.Kr),y=(0,l.useCallback)(N=>{if(N.category==="project_basic"){d({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:N}}});return}d({type:"modal:update:state",payload:{templateModal:{...g,currentDetailResource:N}}})},[d,g]),w=(0,l.useCallback)(async N=>{const Z=!N.is_liked,Q=N.target_upper_cid||N.cid;Z?await(0,l2.q3)(Q):await(0,l2.V)(Q);const se=Z?N.liked_count+1:N.liked_count-1,ie={is_liked:Z,liked_count:se},he=(0,Ye.$G)(r,xe=>xe.cid===N.cid,{...N,...ie});c(he)},[r]),_=async N=>{if(!N||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Z,cid:Q}=N;await(0,t0.lU)(Z,Q);const se=(0,If.Z)(N,s);c(se)},j=(0,l.useCallback)(N=>{const Z={used_count:N.used_count+1},Q=(0,Ye.$G)(s,se=>se.cid===N.cid,{...N,...Z});c(Q)},[s]);return(0,o.jsx)(MC,{children:n?(0,o.jsx)(o.Fragment,{children:t&&r.length===0?(0,o.jsx)(ag,{}):r.length===0?(0,o.jsx)(SC.C,{isShowAiButton:!1}):(0,o.jsx)("ul",{className:"template-list-container",children:r.map(N=>(0,o.jsx)(H6,{template:N,isShowTag:N.category==="project_basic",onClickItem:y,onStar:_,onFavorite:w,onUsedCallback:j},N.cid))})}):(0,o.jsx)(X1.A,{itemHeight:190,itemWidth:224})})},ig=(e,t)=>{if(!e)return t;const n=e.toUpperCase();return t.filter(r=>r.title.toUpperCase().includes(n))},EC=()=>{const[e,t]=(0,l.useState)("all"),[n,r]=(0,l.useState)(0),[s,c]=(0,l.useState)([]),[d,p]=(0,l.useState)(!1),g=(0,a.wA)(),y=(0,a.d4)(tl.nx),w=(0,a.d4)(tl.Kr);(0,l.useEffect)(()=>{if(d)return;(async()=>{const _e=await(0,l2.Gi)();c(_e),p(!0)})()},[g,d]);const _=(0,l.useMemo)(()=>[{label:"\u5168\u90E8\u6A21\u677F",value:"all",key:0},{label:"\u6536\u85CF",value:"star",key:1},{label:"\u5DF2\u8D2D",value:"buy",key:2}],[]),j=(0,l.useMemo)(()=>[{label:"\u5168\u90E8\u7C7B\u578B",value:"all"},{label:"\u9875\u9762",value:"page"},{label:"\u6587\u4EF6",value:"file"}],[]),N=Se=>{g({type:"modal:update:state",payload:{templateModal:{...w,keyword:Se}}})},Z=(0,l.useMemo)(()=>n===0?ig(y,(0,If.N)(s,e)):n===1?ig(y,(0,If.N)(s.filter(Se=>Se.is_star),e)):n===2?ig(y,(0,If.N)(s.filter(Se=>Se.is_purchased),e)):ig(y,(0,If.N)(s,e)),[n,e,y,s]),Q=Se=>{N(Se)},se=()=>{},ie=()=>{N("")},he=Se=>{r(Se)},xe=Se=>{t(Se)};return(0,o.jsxs)(AC,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(vd.A,{value:y,className:"search-bar",placeholder:"\u641C\u7D22"+I18N.LeftSidePanel.template.modals.tabNav.me,onChange:Q,onSearch:se,onClear:ie,wait:200,canClear:!0,isInstantSearch:!1}),(0,o.jsxs)("div",{className:"filter-group",children:[!ENV.IS_ON_PREMISES&&(0,o.jsx)(ed.eD,{activeIndex:n,onTabChange:he,height:32,className:"slide-nav",children:_.map(Se=>{let{key:_e,label:De}=Se;return(0,o.jsx)(ed.nl,{label:De},_e)})}),(0,o.jsx)(Zh.A,{optionList:j,selectedValue:e,onChange:xe})]})]}),(0,o.jsx)(kC,{keyword:y,isLoadedTemplateData:d,templateList:Z,allTemplateList:s,onUpdateTemplateList:c}),(0,o.jsx)(K4.R,{})]})};var G6=i(30719);const IC=E.Ay.div.withConfig({displayName:"styles__StyledHistoryComp",componentId:"sc-10l3vtb-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px;}.history-header{padding:24px 32px 16px;height:auto;border:none;.search-bar{.clear-icon{margin-right:0;}}}ol.history-slide-nav{margin:0 32px;.nav-item{flex:none;margin-right:16px;}}.history-loading{margin-top:170px;}.recent-panel-content{height:100%;.empty-template-search-container{padding-top:170px;.center{.pure-svg-icon{width:88px;height:88px;}}}.screens-container{width:100% !important;padding:0 32px 24px;gap:20px;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));li.template-item{margin:0 !important;.img-wrapper{width:100%;height:256px;padding:16px;border-radius:12px;.operation-box{bottom:8px;right:8px;.operation .svgContainer{width:24px;height:24px;.open-folder{width:24px;height:24px;border-radius:6px;background:",";}}}}.template-name{width:100%;text-align:start;margin-top:10px;color:",";}}}.file-container{width:100% !important;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));padding:0 32px 24px;gap:20px;.template-box{width:auto;padding:0;&:hover{background:unset;.cover-fade{opacity:1;}.expand-icon{visibility:hidden;}.template-cover-image{transform:scale(1.05);}}.template-cover{width:100%;padding-bottom:75%;border-radius:12px;position:relative;.img-box{width:100%;height:100%;position:static;&:after{position:absolute;bottom:0px;left:0px;right:0px;height:25%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%);opacity:0;}.template-cover-image{height:auto;width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}}}}}}.search-no-results{color:",";margin-top:80px;p.tips{color:",";}}.content{padding-top:24px !important;}}"],e=>e.theme.color_slider_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),TC=()=>{const e=(0,a.d4)(tl.Kr),t=(0,a.d4)(tl.nx),n=(0,a.wA)(),r=s=>{n({type:"modal:update:state",payload:{templateModal:{...e,keyword:s}}})};return(0,o.jsx)(IC,{children:(0,o.jsx)(G6.O,{from:"template-modal",keyword:t,onUpdateKeyword:r})})};var _C=Object.defineProperty,PC=Object.defineProperties,LC=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,Z6=Object.prototype.hasOwnProperty,K6=Object.prototype.propertyIsEnumerable,Y6=(e,t,n)=>t in e?_C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J4=(e,t)=>{for(var n in t||(t={}))Z6.call(t,n)&&Y6(e,n,t[n]);if(sg)for(var n of sg(t))K6.call(t,n)&&Y6(e,n,t[n]);return e},NC=(e,t)=>PC(e,LC(t)),jC=(e,t)=>{var n={};for(var r in e)Z6.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sg)for(var r of sg(e))t.indexOf(r)<0&&K6.call(e,r)&&(n[r]=e[r]);return n},DC=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=jC(n,["size","spin","style"]);const p=J4(J4({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",NC(J4({ref:t,style:p},d),{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1421_124)"},l.createElement("path",{d:"M7.68188 8.11816C7.77494 8.12968 7.86092 8.17494 7.9231 8.24512C7.98521 8.3154 8.01969 8.40621 8.01978 8.5C8.01978 8.59389 7.98526 8.68452 7.9231 8.75488C7.8609 8.82525 7.77509 8.87127 7.68188 8.88281H2.31567C2.22247 8.87127 2.13666 8.82525 2.07446 8.75488C2.0124 8.68455 1.97778 8.59381 1.97778 8.5C1.97787 8.40621 2.01234 8.3154 2.07446 8.24512C2.13665 8.17484 2.22254 8.12969 2.31567 8.11816H7.68188ZM5.00024 1.11816C5.15163 1.11689 5.30005 1.15903 5.42896 1.23828C5.55777 1.31749 5.66179 1.43099 5.72876 1.56641L7.04126 4.37891L8.3479 3.41895C8.48851 3.31997 8.65545 3.26304 8.82739 3.25684C8.99929 3.25066 9.16929 3.29523 9.31665 3.38379C9.45641 3.46707 9.56311 3.5956 9.61938 3.74805C9.6756 3.90051 9.67847 4.06782 9.62622 4.22168L8.5061 7.41895C8.47865 7.48877 8.42995 7.54823 8.36743 7.58984C8.30484 7.63149 8.23072 7.65297 8.15552 7.65137H1.84985C1.77469 7.65294 1.7005 7.63147 1.63794 7.58984C1.57561 7.54828 1.52767 7.48858 1.50024 7.41895L0.846924 5.61914L0.374268 4.2627C0.321261 4.10816 0.323645 3.94005 0.381104 3.78711C0.438554 3.63423 0.547053 3.50546 0.688721 3.42383C0.839333 3.32748 1.01686 3.28072 1.19556 3.28906C1.37416 3.29745 1.54589 3.36079 1.68677 3.4707L2.85376 4.37305L4.25903 1.55566C4.32903 1.42083 4.43564 1.30769 4.56665 1.23047C4.69765 1.15326 4.84816 1.11425 5.00024 1.11816Z",fill:"url(#paint0_linear_1421_124)"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_1421_124",x1:"4.99989",y1:"1.11816",x2:"17.4298",y2:"10.6471",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#501E11"}),l.createElement("stop",{offset:"1",stopColor:"#DA4E00"})),l.createElement("clipPath",{id:"clip0_1421_124"},l.createElement("rect",{width:"9.32741",height:"7.76394",fill:"white",transform:"translate(0.336182 1.11816)"}))))}),OC=Object.defineProperty,RC=Object.defineProperties,BC=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,X6=Object.prototype.hasOwnProperty,Q6=Object.prototype.propertyIsEnumerable,J6=(e,t,n)=>t in e?OC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q4=(e,t)=>{for(var n in t||(t={}))X6.call(t,n)&&J6(e,n,t[n]);if(lg)for(var n of lg(t))Q6.call(t,n)&&J6(e,n,t[n]);return e},UC=(e,t)=>RC(e,BC(t)),FC=(e,t)=>{var n={};for(var r in e)X6.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&lg)for(var r of lg(e))t.indexOf(r)<0&&Q6.call(e,r)&&(n[r]=e[r]);return n},VC=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=FC(n,["size","spin","style"]);const p=q4(q4({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",UC(q4({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.025 11.677C11.1648 11.6943 11.294 11.7619 11.3873 11.8675C11.4805 11.973 11.5318 12.1094 11.5318 12.2503C11.5318 12.3909 11.4803 12.5267 11.3873 12.6321C11.294 12.7377 11.1648 12.8062 11.025 12.8235H2.97517C2.83536 12.8062 2.70713 12.7377 2.61384 12.6321C2.52061 12.5266 2.46837 12.3911 2.46833 12.2503C2.46833 12.1094 2.52055 11.973 2.61384 11.8675C2.7071 11.7621 2.83551 11.6943 2.97517 11.677H11.025ZM7.00056 1.17704C7.22764 1.17513 7.45075 1.23783 7.64411 1.35672C7.8375 1.47568 7.9939 1.64649 8.09431 1.84989L10.0631 6.06864L12.023 4.62723C12.2338 4.47895 12.4831 4.39439 12.7408 4.38504C12.9986 4.37574 13.2541 4.44168 13.4752 4.5745C13.6849 4.69943 13.8458 4.8926 13.9302 5.12137C14.0146 5.35018 14.0175 5.60143 13.939 5.83231L12.2593 10.6272C12.2182 10.7321 12.1452 10.8226 12.0513 10.885C11.9575 10.9474 11.8466 10.9792 11.734 10.9768H2.27497C2.1623 10.9792 2.05139 10.9474 1.95759 10.885C1.8637 10.8226 1.79173 10.7321 1.75056 10.6272L0.770089 7.92899L0.0611049 5.89383C-0.0184127 5.66203 -0.0143433 5.40938 0.0718471 5.17997C0.15806 4.95073 0.321296 4.75842 0.533761 4.63602C0.759679 4.4915 1.02549 4.42038 1.29353 4.4329C1.56143 4.44548 1.81854 4.54147 2.02986 4.70633L3.77986 6.05985L5.88923 1.83231C5.99419 1.63024 6.15384 1.46177 6.35017 1.34598C6.54668 1.23015 6.77242 1.17116 7.00056 1.17704Z",fill:"url(#paint0_linear_833_57)"}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_833_57",x1:"6.99998",y1:"1.17664",x2:"6.99995",y2:"13.1256",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.4"}))))}),zC=Object.defineProperty,WC=Object.defineProperties,HC=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,q6=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,ey=(e,t,n)=>t in e?zC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$4=(e,t)=>{for(var n in t||(t={}))q6.call(t,n)&&ey(e,n,t[n]);if(cg)for(var n of cg(t))$6.call(t,n)&&ey(e,n,t[n]);return e},GC=(e,t)=>WC(e,HC(t)),ZC=(e,t)=>{var n={};for(var r in e)q6.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&cg)for(var r of cg(e))t.indexOf(r)<0&&$6.call(e,r)&&(n[r]=e[r]);return n},KC=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=ZC(n,["size","spin","style"]);const p=$4($4({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",GC($4({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{filter:"url(#filter0_d_833_73)"},l.createElement("circle",{cx:"12.5",cy:"9.25",r:"2",fill:"white"})),l.createElement("g",{filter:"url(#filter1_d_833_73)"},l.createElement("circle",{cx:"6.75",cy:"11.5",r:"1.25",fill:"white"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_d_833_73",x:"7.16667",y:"3.91667",width:"10.6667",height:"10.6667",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",null),l.createElement("feGaussianBlur",{stdDeviation:"1.66667"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_833_73"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_833_73",result:"shape"})),l.createElement("filter",{id:"filter1_d_833_73",x:"3.59524",y:"8.34524",width:"6.30952",height:"6.30952",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",null),l.createElement("feGaussianBlur",{stdDeviation:"0.952381"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_833_73"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_833_73",result:"shape"}))))});const YC=E.Ay.div.withConfig({displayName:"styles__StyledMktBuyButton",componentId:"sc-16lz4lf-0"})(['display:flex;position:relative;padding:0 16px;height:32px;margin-right:12px;align-items:center;justify-content:center;font-size:14px;font-weight:500;line-height:20px;color:#5D6F8F;border-radius:6px;white-space:nowrap;cursor:pointer;margin-right:40px;margin-top:-14px;background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);&:hover{background:linear-gradient(135deg,rgba(255,239,205,0.8) 0%,rgba(250,213,140,0.8) 100%);&:not(.is-mkt-vip){.mkt-plan{display:flex;}}}&:active{background:linear-gradient(135deg,#FFEBBF 0%,#FAD07D 100%);}.text-warp{justify-content:center;align-items:center;display:flex;.mat-text{background:linear-gradient(122.54deg,#501E11 30.52%,#DA4E00 159.68%);background-clip:text;color:transparent;-webkit-background-clip:text;}.vip-icon{linearGradient#paint0_linear_833_67{stop:first-child{stop-color:#501E11;}stop:last-child{stop-color:#DA4E00;}}}}svg{width:18px;height:18px;margin-right:6px;}.mkt-plan{position:absolute;right:0;top:100%;width:400px;height:422px;display:none;align-items:center;flex-direction:column;justify-content:flex-end;z-index:3;&::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:319px;background:transparent;border-radius:16px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);pointer-events:none;z-index:-1;}img{position:absolute;left:0;top:0;width:100%;height:100%;}.price{margin-bottom:12px;width:263px;height:44px;border-radius:22px;display:flex;position:relative;align-items:center;border:2px solid transparent;background:linear-gradient(0deg,rgba(255,255,255,0.30) 0%,rgba(255,255,255,0.30) 100%),linear-gradient(273deg,rgba(247,9,52,0.20) -20.06%,rgba(255,140,119,0.20) 114.92%);.container{width:100%;height:100%;border-radius:20px;border:0.7px solid rgba(255,255,255,0.80);background:linear-gradient(327deg,#FF2F0A 7.29%,#FF4B56 49.24%);box-shadow:2.71px 4.43px 8px 0px rgba(255,255,255,0.59) inset,-4.286px 4.286px 20.571px 0px rgba(255,255,255,0.55) inset;color:#FFF;font-family:"PingFang SC";font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:4px;&:hover{background:linear-gradient(327deg,rgba(255,47,10,0.85) 7.29%,rgba(255,75,86,0.85) 49.24%);}&:active{background:linear-gradient(0deg,rgba(0,0,0,0.07) 0%,rgba(0,0,0,0.07) 100%),linear-gradient(327deg,#FF2F0A 7.29%,#FF4B56 49.24%);}}.white-point{position:absolute;left:9px;top:4px;}}}']),Tf=(0,l.memo)(()=>{const e=(0,a.wA)(),t=(0,a.d4)(re.PL),n=(0,a.d4)(re.wA),r=(0,a.d4)(re.HW),s=t.is_org_project,c=(0,l.useMemo)(()=>{const p=(0,Ti.s)(r,n);return p==null?void 0:p.isMktMember},[s]),d=(0,l.useCallback)(()=>{if(c)return;const p={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-\u6A21\u677F\u5F39\u7A97-"+(s?"\u4F01\u4E1A":"\u4E2A\u4EBA"),checkoutPlace:"workspace-v8_"+(s?"org":"solo")+"_template_popup",checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...p})},[e]);return ENV.IS_ON_PREMISES?null:(0,o.jsxs)(YC,{onClick:d,className:c?"is-mkt-vip vip-button":"vip-button",children:[(0,o.jsxs)("div",{className:"text-warp",children:[(0,o.jsx)(DC,{size:16,className:"vip-icon"}),(0,o.jsx)("span",{className:"mat-text",children:c?s?"\u56E2\u961F\u7D20\u6750VIP":"\u4E2A\u4EBA\u7D20\u6750VIP":"\u5F00\u901A\u7D20\u6750\u4F1A\u5458"})]}),(0,o.jsxs)("div",{className:"mkt-plan",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/mktWM/mkt-purchase-rights-bg-new.svg",alt:""}),(0,o.jsxs)("div",{className:"price",onClick:d,children:[(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(VC,{size:14}),"\u4F4E\u81F38.3\u5143/\u6708\uFF0C\u7ACB\u5373\u5F00\u901A"]}),(0,o.jsx)(KC,{className:"white-point"})]})]})]})}),XC=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledTemplateModals",componentId:"sc-511nst-0"})(["&.workspace-modal{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}.slide-nav{margin:16px 0 10px;height:auto;}.marketTemplate-list{padding-bottom:68px;}}}.scrollable-marketTemplate-masonry{width:100% !important;.market-template-masonry-column{margin-right:20px;width:100%;.template-item{margin-bottom:20px;.img-wrapper{border-radius:12px !important;border-color:",";&:hover{.cover-fade{opacity:1;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:48%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0.00) 0%,rgba(0,0,0,0.30) 100%);opacity:0;}}.template-name{margin-top:10px;}}&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}.market-template-masonry-list-container{width:100% !important;padding:0 32px;display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));grid-gap:20px;&.web,&.visual{grid-template-columns:repeat(auto-fill,minmax(256px,1fr));.market-template-masonry-column{.sample{height:174px;}}}&.mobile{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.market-template-masonry-column{.sample{height:412px;}}}.market-template-masonry-column{margin-right:20px;width:100%;&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_border_01),QC=e=>{let{source:t="history",onClose:n}=e;const[r,s]=(0,l.useState)(t),[c,d]=(0,l.useState)(null),[p,g]=(0,l.useState)(0),y=(0,a.d4)(tl.Kr),w=(0,a.wA)();(0,l.useEffect)(()=>{(async()=>{const Se=await(0,Mu.EG)();w({type:"modal:update:state",payload:{templateModal:{...y,labelsMap:Se}}})})()},[w]);const _=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.template.modals.tabNav.page,key:"page"},{label:I18N.LeftSidePanel.template.modals.tabNav.file,key:"file"},{label:I18N.LeftSidePanel.template.modals.tabNav.me,key:"me"},{label:I18N.LeftSidePanel.template.modals.tabNav.history,key:"history"}],[]),j=xe=>{s(xe),Z()},N=xe=>{w({type:"modal:update:state",payload:{templateModal:{...y,currentDetailResource:xe}}}),w({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[xe.cid,xe]])}})},Z=()=>{w({type:"modal:update:state",payload:{templateModal:{...y,currentDetailResource:null}}})},Q=(0,l.useCallback)(async xe=>{const Se=!xe.is_liked,_e=xe.target_upper_cid||xe.cid;Se?await(0,l2.q3)(_e):await(0,l2.V)(_e);const De=Se?xe.liked_count+1:xe.liked_count-1,Je={...xe,is_liked:Se,liked_count:De};N(Je)},[]),se=(0,l.useCallback)(xe=>{if(!y.currentDetailResource||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Se,cid:_e}=y.currentDetailResource,Je=!xe.is_star?xe.star_count+1:xe.star_count-1,Ne={...xe,is_star:!xe.is_star,star_count:Je};N(Ne),(0,t0.lU)(Se,_e)},[y.currentDetailResource]);(0,l.useEffect)(()=>{const xe=()=>{const Se=document.querySelector(".mb-template-modals");g(Se==null?void 0:Se.offsetWidth)};return xe(),window.addEventListener("resize",xe),()=>window.removeEventListener("resize",xe)},[]);const ie=(0,l.useMemo)(()=>{if(p>1588)return 8;if(p<=1588&&p>1387)return 7;if(p<=1387&&p>1195)return 6;if(p<=1195&&p>1009)return 5;if(p<=1009)return 4},[p]),he=(0,l.useMemo)(()=>{if(p>=1700)return 6;if(p<1700&&p>1423)return 5;if(p<=1423&&p>1147)return 4;if(p<=1147)return 3},[p]);return(0,o.jsxs)(XC,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-modals",canCloseOnClickMask:!0,isUsePortal:!1,children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(D2,{items:_,activeKey:r,onTabClick:j,tabBarGutter:32}),(0,o.jsx)(Tf,{})]}),(0,o.jsx)("div",{className:"content-wrapper",children:y.currentDetailResource?(0,o.jsx)(gh.A,{isFloatPreviewMkt:!1,currentResources:y.currentDetailResource,onBack:Z,masonryColumnMoblie:ie,masonryColumnWeb:he,from:"template-modal",onFavoriteTemplates:Q,onStarTemplates:se,onPaidTemplates:()=>se({...y==null?void 0:y.currentDetailResource,is_purchased:!0})}):(0,o.jsxs)(o.Fragment,{children:[r==="page"&&(0,o.jsx)(aC,{masonryColumnWeb:he,masonryColumnMoblie:ie,pageCategoryDetailData:c,onSetPageCategoryDetailData:d}),r==="file"&&(0,o.jsx)(wC,{}),r==="me"&&(0,o.jsx)(EC,{}),r==="history"&&(0,o.jsx)(TC,{})]})})]})};var JC=Object.defineProperty,qC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,dg=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ny=Object.prototype.propertyIsEnumerable,oy=(e,t,n)=>t in e?JC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e3=(e,t)=>{for(var n in t||(t={}))ty.call(t,n)&&oy(e,n,t[n]);if(dg)for(var n of dg(t))ny.call(t,n)&&oy(e,n,t[n]);return e},ew=(e,t)=>qC(e,$C(t)),tw=(e,t)=>{var n={};for(var r in e)ty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&dg)for(var r of dg(e))t.indexOf(r)<0&&ny.call(e,r)&&(n[r]=e[r]);return n},nw=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=tw(n,["size","spin","style"]);const p=e3(e3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ew(e3({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 13.75V6.25C5 5.55964 5.55964 5 6.25 5H8.54167C8.93511 5 9.3056 5.18524 9.54167 5.5L10.4167 6.66667H14.5833C15.2737 6.66667 15.8333 7.22631 15.8333 7.91667V13.75C15.8333 14.4404 15.2737 15 14.5833 15H6.25C5.55964 15 5 14.4404 5 13.75ZM5.83333 6.25V13.75C5.83333 13.9801 6.01988 14.1667 6.25 14.1667H14.5833C14.8135 14.1667 15 13.9801 15 13.75V7.91667C15 7.68655 14.8135 7.5 14.5833 7.5H10.2083C10.0772 7.5 9.95369 7.43825 9.875 7.33333L8.875 6C8.79631 5.89508 8.67282 5.83333 8.54167 5.83333H6.25C6.01988 5.83333 5.83333 6.01988 5.83333 6.25Z",fill:"#8B8C8F"}))}),ow=Object.defineProperty,aw=Object.defineProperties,rw=Object.getOwnPropertyDescriptors,pg=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,iy=(e,t,n)=>t in e?ow(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t3=(e,t)=>{for(var n in t||(t={}))ay.call(t,n)&&iy(e,n,t[n]);if(pg)for(var n of pg(t))ry.call(t,n)&&iy(e,n,t[n]);return e},iw=(e,t)=>aw(e,rw(t)),sw=(e,t)=>{var n={};for(var r in e)ay.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pg)for(var r of pg(e))t.indexOf(r)<0&&ry.call(e,r)&&(n[r]=e[r]);return n},lw=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=sw(n,["size","spin","style"]);const p=t3(t3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",iw(t3({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1404_155)"},l.createElement("path",{d:"M5.26367 7.98926C5.3083 7.98927 5.35205 7.99346 5.39453 8.00098C5.40006 8.00196 5.40562 8.0028 5.41113 8.00391C5.41912 8.00551 5.42668 8.00889 5.43457 8.01074C5.47186 8.01951 5.50907 8.02938 5.54492 8.04395L5.55469 8.04883C5.5618 8.05184 5.5682 8.05635 5.5752 8.05957C5.65328 8.09556 5.7276 8.14362 5.79199 8.20801C5.83571 8.25173 5.87074 8.30096 5.90137 8.35156C5.92076 8.38352 5.93862 8.41632 5.95312 8.45117C5.95486 8.45537 5.95635 8.45964 5.95801 8.46387C5.99152 8.54872 6.01166 8.64059 6.01172 8.7373V12.9053C6.01172 13.3181 5.67649 13.6532 5.26367 13.6533C4.85073 13.6533 4.51562 13.3182 4.51562 12.9053V10.541L1.27637 13.7803C0.98438 14.0723 0.511726 14.0722 0.219727 13.7803C-0.0722423 13.4883 -0.0722611 13.0156 0.219727 12.7236L3.45898 9.48438H1.0957C0.682875 9.48438 0.347847 9.15009 0.347656 8.7373C0.347888 8.32456 0.6829 7.98926 1.0957 7.98926H5.26367ZM13.252 8.33594C13.6649 8.33594 14 8.67104 14 9.08398V13.252C14 13.6649 13.6649 14 13.252 14H9.08398C8.67114 13.9999 8.33596 13.6648 8.33594 13.252C8.33613 12.8392 8.67125 12.505 9.08398 12.5049H12.5049V9.08398C12.5049 8.67122 12.8393 8.33623 13.252 8.33594ZM12.7246 0.21875C13.0166 -0.0728183 13.4894 -0.0730789 13.7812 0.21875C14.0731 0.51061 14.0728 0.98337 13.7812 1.27539L10.542 4.51465H12.9053C13.318 4.51468 13.6531 4.84997 13.6533 5.2627C13.6533 5.67562 13.3182 6.01071 12.9053 6.01074H8.7373C8.65645 6.01074 8.57979 5.99446 8.50684 5.9707C8.48835 5.9647 8.46924 5.96061 8.45117 5.95312C8.39906 5.93148 8.35007 5.90438 8.30469 5.87207C8.27803 5.85309 8.25305 5.83149 8.22852 5.80859C8.21535 5.79631 8.20268 5.78371 8.19043 5.77051C8.16708 5.7454 8.14523 5.7197 8.12598 5.69238C8.12223 5.68706 8.11787 5.68218 8.11426 5.67676C8.10705 5.66593 8.10229 5.65368 8.0957 5.64258C8.07717 5.61132 8.05882 5.57986 8.04492 5.5459C8.03379 5.51865 8.02731 5.49005 8.01953 5.46191C8.01483 5.44492 8.00741 5.42859 8.00391 5.41113C8.0028 5.40562 8.00196 5.40006 8.00098 5.39453C7.9934 5.35186 7.98926 5.30753 7.98926 5.2627V1.09473C7.9895 0.681986 8.32451 0.34668 8.7373 0.34668C9.14991 0.346902 9.48413 0.682123 9.48438 1.09473V3.45898L12.7246 0.21875ZM4.91602 0C5.3288 0.000184886 5.66406 0.335215 5.66406 0.748047C5.66388 1.16072 5.32869 1.49591 4.91602 1.49609H1.49609V4.91602C1.49591 5.32869 1.16072 5.66388 0.748047 5.66406C0.335215 5.66406 0.000184886 5.3288 0 4.91602V0.748047C0 0.335101 0.335101 0 0.748047 0H4.91602Z",fill:"#19191A"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1404_155"},l.createElement("rect",{width:"14",height:"14",fill:"white"}))))}),xh=i(5649);const cw=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledresourcesSnapshotPreviewModal",componentId:"sc-1hxv5o4-0"})(["&.workspace-modal{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;@media (max-width:1500px){width:1038px;}.close-btn{display:none;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{height:53px;padding:0 32px;display:flex;align-items:center;justify-content:center;position:relative;.center{display:flex;align-items:center;.editable-span-title{font-weight:500;max-width:282px;}}.open-folder{color:",";font-size:12px;margin-left:8px;display:flex;height:28px;padding:0 6px 0 2px;align-items:center;border-radius:6px;cursor:pointer;max-width:210px;&:hover{background:",";color:",";}}.vip-button{position:absolute;top:24px;right:32px;}.preview-close-btn{display:flex;justify-content:center;align-items:center;width:32px;height:32px;cursor:pointer;border-radius:4px;position:absolute;right:24px;svg path{fill:",";}&:hover{background:",";}}}.content-wrapper{flex:1;overflow:scroll;display:flex;align-items:center;justify-content:center;padding:24px 0;background-color:",";img{max-height:100%;transform-origin:top;border-radius:6px;}.turn-page{.turn-left-page,.turn-right-page{border-radius:100px;position:absolute;cursor:pointer;&:hover{background:",";}.svg-icon{width:8px;margin-left:2px;}&.turn-left-page{transform:rotate(180deg);left:16px;}&.turn-right-page{right:16px;}}}}.footer{height:68px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 32px;button{display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:36px;padding:6px 16px;&.vip-button{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);span{background:linear-gradient(123deg,#501E11 30.52%,#DA4E00 159.68%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}&.use-button{background:",";color:",";&:hover{background:",";}&:active{background:",";}}&.zoom-button{padding:0;width:126px;border-radius:6px;border:1px solid ",";.zoom-control{width:34px;height:34px;}.zoom-input{flex:1;margin:2px 4px;}}}}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_canvas,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_bg_border_02),Xu=[4,8,16,32,64,100,120,150,200,250,300,350,400,450,500],sy=Xu[0],ly=Xu[Xu.length-1],dw=(0,l.memo)(e=>{let{type:t,onClose:n,list:r,currentTemplate:s}=e;const c=(0,l.useRef)(null),[d,p]=(0,l.useState)(s),[g,y]=(0,l.useState)(!0),w=(0,a.d4)(re.HW),[_,j]=(0,l.useState)(100),N=(0,a.d4)(ht.fm),Z=(0,a.d4)(tl.Kr),Q=(0,a.d4)(re.F2),se=(0,a.d4)(re._x),ie=(0,a.wA)(),{key:he,category:xe,hotAttr:{name:Se,type:_e},projectMetaCid:De,marketTemplateSource:Je}=d,Ne=(0,l.useMemo)(()=>{if(!Je)return!1;const{show:Ao}=(0,t0.o3)(Je,w);return Ao},[Je,w]),pt=(0,l.useMemo)(()=>r.findIndex(Ao=>Ao.key===d.key),[d,r]),_t=(0,l.useMemo)(()=>pt-1<0,[pt,r]),gt=(0,l.useMemo)(()=>pt+1>r.length-1,[pt,r]),Ct=()=>{const Ao=Xu.findIndex(va=>va>_),ca=Xu[Ao]||Xu[Xu.length-1];j(ca)},zt=()=>{const Ao=Xu.findIndex(va=>va>=_),ca=Xu[Ao-1]||Xu[0];j(ca)},Dt=Ao=>{j(Number(Ao))},sn=(0,l.useCallback)(()=>{const Ao={mode:"mat",payEntrance:t==="page"?"\u7F16\u8F91\u533A-v8-\u6A21\u677F\u5F39\u7A97-\u9884\u89C8\u5F39\u7A97-\u5E95\u680F":"\u7F16\u8F91\u533A-v8-\u7EC4\u4EF6\u5F39\u7A97-\u9884\u89C8\u5F39\u7A97-\u5E95\u680F",checkoutPlace:t==="page"?"workspace_v8_template_preview_modals_bottom":"workspace_v8_widget_preview_modals_bottom",checkoutArea:"proto",templatePaySource:t==="page"?"\u7F16\u8F91\u533A\u6A21\u677F\u5F39\u7A97":"\u7F16\u8F91\u533A\u7EC4\u4EF6\u5F39\u7A97"};MB.global.popupHelper.chargeAsync({...Ao})},[ie]),Rn=()=>{const{type:Ao,key:ca,marketTemplateSource:va,flpakKey:ra}=d,Jo=ra?"user_combo":Ao,$o=ra?Q==null?void 0:Q.cid:va==null?void 0:va.cid,sa=ra===(se==null?void 0:se.project_meta_cid);return{...d,recent:{isRequestRecent:!sa,projectUpperType:Jo,projectUpperCid:$o,itemCid:ca,isTrack:!0,from:t==="page"?"template-modal":"widget-modal"}}},On=Ao=>(Q==null?void 0:Q.project_meta_cid)===Ao?userSdkStore:(se==null?void 0:se.project_meta_cid)===Ao?orgSdkStore:N.get(Ao),Lo=async Ao=>{var ca;const va=(d==null?void 0:d.marketTemplateCid)||(d==null||(ca=d.marketTemplateSource)==null?void 0:ca.cid);if(va&&!N.get(va)){const da=new Map;da.set(va,d==null?void 0:d.projectMetaCid),await ie({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[va],mtProjectMetaCidMap:da}})}const ra=On((d==null?void 0:d.flpakKey)||va),$o=[[[Rn()],ra]];ie({type:"entry:resources:quick:create:template",payload:{data:$o}}),t==="widget"?(ie({type:"modal:update:state",payload:{widgetModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1}}}),ie({type:"widget-modal:reset:state"})):ie({type:"modal:update:state",payload:{templateModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1}}})},Yo=()=>{y(!1);const Ao=r[pt-1];Ao&&(p(Ao),y(!0))},Cn=()=>{y(!1);const Ao=r[pt+1];Ao&&(p(Ao),y(!0))},hn=()=>{ie(t==="widget"?{type:"widget-modal:update:state",payload:{currentResource:Je}}:{type:"modal:update:state",payload:{templateModal:{...Z,currentDetailResource:Je}}}),n()},oa=(0,l.useCallback)(Ao=>{if(d!=null&&d.flpakKey){const ra=On(d==null?void 0:d.flpakKey),Jo=ra?ra.getHotItem(d.key):null;if(Jo){const $o=Jo.sub.filter(sa=>{var da;return((da=ra.getHotItem(sa))==null||(da=da.hotAttr)==null?void 0:da.bunch)!==ne.x.RbPage});if($o!=null&&$o.length){const sa=d.sup==="B@ref-muban"?d.hotAttr.defaultCanvasKey:he,da=d.sup==="B@ref-muban"?Ud.rY.PNG_CANVAS:Ud.rY.PNG_PAGE;return(0,o.jsx)(cy,{type:t,projectMetaCid:d==null?void 0:d.flpakKey,snapshotKey:sa,isVisible:Ao,mode:da,scale:_,setScale:j})}}return(0,o.jsx)("img",{src:J0.V})}const va=["project_basic","screen_list"].includes(xe)?"wf320":Ud.BU.ZOOM_100;return(0,o.jsx)(cy,{type:t,projectMetaCid:d==null?void 0:d.projectMetaCid,snapshotKey:d==null?void 0:d.key,isVisible:Ao,mode:_e==="rResCanvas"?Ud.rY.PNG_CANVAS:Ud.rY.PNG_PAGE,ssZoomMode:va,scale:_,setScale:j})},[d,_,On]);return(0,l.useEffect)(()=>{var Ao;const ca=va=>{(va.ctrlKey||va.metaKey)&&(va.preventDefault(),j(ra=>{const Jo=Math.max(-1,Math.min(va.deltaY,1)),$o=ra<=100?ra-Jo*5:ra-ra*Jo*.05,sa=Math.min(Math.max($o,sy),ly);return sa/ra===1?ra:sa}))};return c==null||(Ao=c.current)==null||Ao.addEventListener("wheel",ca,{passive:!1}),()=>{var va;return c==null||(va=c.current)==null?void 0:va.removeEventListener("wheel",ca,{passive:!1})}},[]),(0,o.jsxs)(cw,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-preview-modals",canCloseOnClickMask:!0,isUsePortal:!1,isAutoFocus:!1,children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"center",children:[(0,o.jsx)(Ef.A,{value:Se,className:"editable-span-title",isEditing:!1},Se),Je&&(0,o.jsxs)("div",{className:"open-folder",onClick:hn,children:[(0,o.jsx)(nw,{size:20}),(0,o.jsx)(Ef.A,{value:Je.title,className:"editable-span",isEditing:!1},Je.title)]})]}),(0,o.jsx)(Tf,{}),(0,o.jsx)("div",{className:"preview-close-btn",onClick:n,children:(0,o.jsx)(lw,{size:16})})]}),(0,o.jsxs)("div",{className:"content-wrapper",ref:c,children:[oa(g),(0,o.jsxs)("div",{className:"turn-page",children:[!_t&&(0,o.jsx)(pc.A,{className:"turn-left-page",name:"design/arrow/right",onClick:Yo,size:24,iconBoxSize:40}),!gt&&(0,o.jsx)(pc.A,{className:"turn-right-page",name:"design/arrow/right",onClick:Cn,size:24,iconBoxSize:40})]})]}),(0,o.jsxs)("div",{className:"footer",children:[(0,o.jsxs)("button",{className:"zoom-button",children:[(0,o.jsx)(pc.A,{className:"zoom-control zoom-out",onClick:zt,name:"common/minus_bold"}),(0,o.jsx)(xh.A,{className:"zoom-input",min:sy,max:ly,precision:0,suffix:"%",value:Math.round(_),actionButton:!1,onConfirm:Dt}),(0,o.jsx)(pc.A,{className:"zoom-control zoom-in",onClick:Ct,name:"common/add_bold"})]}),(0,o.jsx)("button",{className:Ne?"vip-button":"use-button",children:Ne?(0,o.jsx)("span",{onClick:sn,children:I18N.LeftSidePanel.modals.material_free_for_member}):(0,o.jsx)("span",{onClick:Lo,children:I18N.LeftSidePanel.modals.add_items_from_type.replace("%type%",I18N.LeftSidePanel.modals.add_items[t])})})]})]})}),cy=(0,l.memo)(e=>{const{type:t,projectMetaCid:n,snapshotKey:r,isVisible:s,mode:c,ssZoomMode:d,scale:p,setScale:g}=e;return(0,o.jsx)(J0.Ay,{projectMetaCid:n,snapshotKey:r,isVisible:s,mode:c,ssZoomMode:d,style:{transform:"scale("+p/100+")"}})}),pw=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledTemplateFileDetialModal",componentId:"sc-ai4p0p-0"})(["&.mb-template-file-detail-modals{width:100% !important;height:100%;top:100px;overflow:unset;background-color:#fff;color:#19191a;.content{background-color:#fff;color:#19191a;}.close-btn{width:24px;height:24px;border-radius:100px;top:-36px;right:24px;background:",";color:",";&:hover{background:",";color:",";transform:scale(1.1);}}.header{display:none;}.content{padding:0;width:100%;height:100%;border-radius:10px;.modal-content{width:100%;height:100%;.back-icon{position:absolute;top:24px;left:24px;width:32px;height:32px;.svg-icon{width:7px;height:14px;transform:rotate(-180deg);}}iframe{width:100%;height:100%;border:none;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),uw=(0,E.DU)([".mb-template-file-detail-modals-portal{overflow:unset;}"]),hw=e=>{let{template:t,onClose:n}=e;const[r,s]=(0,l.useState)([t==null?void 0:t.cid]),[c,d]=(0,l.useState)(t==null?void 0:t.cid),p=(0,a.d4)(re.PL),g=(0,a.d4)(tl.Kr),y=(0,a.wA)(),{handleUsedTemplate:w}=(0,W6.A)(),_=()=>{n(),y({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),y({type:"entry:active:popup:panel",payload:{name:zc.lS.Directory}})},j=async N=>{var Z,Q,se,ie,he;if(N!=null&&N.data){if(((Z=N.data)==null?void 0:Z.type)==="in-proto2-community-detail-used-file"){const{info:Se}=N.data,_e=Se==null?void 0:Se.template;w(_e,De=>{De?_():n()})}if(((Q=N.data)==null?void 0:Q.type)==="in-proto2-community-detail-back")if((r==null?void 0:r.length)===1&&r[0]===c||r.length===0)n&&n();else{const Se=r.slice(0,-1);s(Se);const _e=Se[Se.length-1];d(_e)}if(((se=N.data)==null?void 0:se.type)==="in-proto2-community-detail-set-history-list"){const{info:Se}=N.data,_e=[...r!=null?r:[],Se==null?void 0:Se.cid];d(Se==null?void 0:Se.cid),s(_e)}if(((ie=N.data)==null?void 0:ie.type)==="in-proto2-community-detail-star-template"){var xe;const{info:Se}=N.data;y({type:"modal:update:state",payload:{templateModal:{...g,actionType:"star",actionData:Se==null?void 0:Se.actionData}}}),MB.notice({text:Se!=null&&(xe=Se.actionData)!=null&&xe.is_star?"\u6536\u85CF\u6210\u529F\uFF0C\u53EF\u5728\u3010\u6A21\u677F-\u6211\u7684\u3011\u4E2D\u67E5\u770B":"\u53D6\u6D88\u6536\u85CF"})}if(((he=N.data)==null?void 0:he.type)==="in-proto2-community-detail-favorite-template"){const{info:Se}=N.data;y({type:"modal:update:state",payload:{templateModal:{...g,actionType:"favorite",actionData:Se==null?void 0:Se.actionData}}})}}};return(0,l.useEffect)(()=>(window.addEventListener("message",j),()=>window.removeEventListener("message",j)),[r,c]),(0,o.jsxs)(pw,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-file-detail-modals",canCloseOnClickMask:!0,portalClassName:"mb-template-file-detail-modals-portal",isUsePortal:!1,children:[(0,o.jsx)("iframe",{src:"/com24/details/"+c+"?from=iframe&mode="+(p!=null&&p.is_org_project?"org":"solo")}),(0,o.jsx)(uw,{})]})};var $0=i(80985),e1=i(60441);const mw=E.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-1tkadmk-0"})(["width:100%;display:flex;flex-direction:column;padding:0 32px;padding-bottom:20px;.large-resource-container{width:100%;display:flex;flex-direction:column;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-bottom:20px;.count{font-weight:400;}}ul{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));grid-row-gap:20px;grid-column-gap:20px;li{display:flex;flex-direction:row;border-radius:10px;overflow:hidden;background:",";cursor:pointer;.left-title{flex:1;font-size:16px;font-weight:500;color:",";display:flex;align-items:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.img-box{width:191px;height:100%;img{height:152px;}}&:hover{background:",";}}}&:not(:last-child){margin-bottom:20px;}}"],e=>e.theme.color_text_L3,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active),fw=(0,l.memo)(e=>{const{platform:t,checkedSet:n,scrollTop:r,onUpdateDetailScrollTopType:s}=e,c=(0,a.d4)(e1.vE),{listMap:d}=c,p=(0,a.wA)(),g=(0,l.useRef)(null),y=(0,l.useMemo)(()=>d.get(t)||[],[d,t]),w=(0,l.useCallback)((j,N)=>{p({type:"widget-modal:update:largeFactory",payload:{level1:j.name,level2:N.name||""}}),s("detail")},[p,s]),_=(0,l.useCallback)(j=>{const N=j.target.scrollTop;p({type:"widget-modal:update:largeFactory",payload:{scrollTop:N}})},[p]);return(0,l.useEffect)(()=>{g!=null&&g.current&&(g.current.scrollTop=r)},[r]),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)($0.o,{className:m()("resource-scroll-container",{"show-footer":(n==null?void 0:n.size)>0}),ref:g,onScrollChange:_,children:j=>(0,o.jsx)(mw,{children:y.map(N=>{var Z;return(0,o.jsxs)("div",{className:"large-resource-container",children:[(0,o.jsxs)("span",{className:"title",children:[N.name,(0,o.jsxs)("span",{className:"count",children:["\uFF08",(Z=N.children)==null?void 0:Z.length,"\uFF09"]})]}),(0,o.jsx)("ul",{children:N.children.map(Q=>{var se,ie;return(0,o.jsxs)("li",{onClick:()=>w(N,Q),children:[(0,o.jsx)("div",{className:"left-title",children:Q.name}),(0,o.jsx)("div",{className:"img-box",children:(0,o.jsx)("img",{src:Q!=null&&(se=Q.cover_url)!=null&&se.url?""+(Q==null||(ie=Q.cover_url)==null?void 0:ie.url):"/mb-proto2/images/lib/lib-emtry.png"})})]},Q.cid)})})]},N.cid)})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:g,isAutoHideBar:!0})]})});var gw=Object.defineProperty,yw=Object.defineProperties,vw=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,dy=Object.prototype.hasOwnProperty,py=Object.prototype.propertyIsEnumerable,uy=(e,t,n)=>t in e?gw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,n3=(e,t)=>{for(var n in t||(t={}))dy.call(t,n)&&uy(e,n,t[n]);if(ug)for(var n of ug(t))py.call(t,n)&&uy(e,n,t[n]);return e},xw=(e,t)=>yw(e,vw(t)),bw=(e,t)=>{var n={};for(var r in e)dy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ug)for(var r of ug(e))t.indexOf(r)<0&&py.call(e,r)&&(n[r]=e[r]);return n},hg=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=bw(n,["size","spin","style"]);const p=n3(n3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",xw(n3({ref:t,style:p},d),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7803 9.21967C19.0732 9.51256 19.0732 9.98744 18.7803 10.2803L13.0607 16L18.7803 21.7197C19.0732 22.0126 19.0732 22.4874 18.7803 22.7803C18.4874 23.0732 18.0126 23.0732 17.7197 22.7803L11.4697 16.5303C11.329 16.3897 11.25 16.1989 11.25 16C11.25 15.8011 11.329 15.6103 11.4697 15.4697L17.7197 9.21967C18.0126 8.92678 18.4874 8.92678 18.7803 9.21967Z",fill:"#19191A"}))});const Cw=E.Ay.header.withConfig({displayName:"styles__StyledTemplateHeader",componentId:"sc-vinpbc-0"})(["width:100%;flex:0 0 64px;display:flex;align-items:center;padding-left:24px;.arrow-left{margin-right:6px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.platform-sub-filter{height:32px;label.filter-opener{padding-left:12px;padding-right:8px;.arrow-icon{margin-left:2px;width:20px !important;height:20px !important;}}}.title-text{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";font-size:12px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),fX=(0,E.DU)([".context-menu-mask{z-index:1052;}"]),hy=(0,l.memo)(e=>{const{title:t="",optionList:n,value:r,onBack:s,onChange:c,isShow:d=!0,renderParent:p}=e,g=(0,l.useCallback)(y=>{const w=n.findIndex(_=>_.value===y);w>-1&&c({value:y,index:w})},[n,c]);return(0,o.jsxs)(Cw,{children:[(0,o.jsx)(hg,{size:32,className:"arrow-left",onClick:s}),p&&p(),d&&(0,o.jsx)(o.Fragment,{children:n!=null&&n.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Zh.A,{width:140,selectedValue:r,optionList:n,onChange:g,menuClassName:"modal-template-drop-menu"}),(0,o.jsx)(K4.R,{})]}):(t==null?void 0:t.length)>0?(0,o.jsx)("span",{className:"title-text",children:t}):null})]})});var my=i(29294),ww=i(46442);const Sw=E.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-n4s99e-0"})(["height:100%;width:100%;display:flex;flex-direction:column;position:relative;.sticky-container{padding:24px 32px 8px;}.platform-sub-filter{.filter-opener{button{.display-name{font-size:16px;font-weight:500;}}}&.large-factory-detail-parent{margin-right:4px;}}.title-text{font-size:16px;font-weight:500;}.detail-container{flex:1;width:100%;position:relative;overflow:hidden;padding-top:8px;padding-bottom:20px;.detail-scrollable-list{width:100%;height:100%;display:flex;flex-direction:column;padding:0 32px;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.large-marketTemplate-list{padding:0;}.container{position:relative;min-height:100%;width:100%;display:flex;flex-direction:column;.box{span.title{font-family:PingFang SC;font-weight:500;font-size:16px;color:",";display:block;margin-bottom:20px;line-height:22px;}&:not(:last-child){margin-bottom:20px;}}}}}"],e=>e.theme.color_text_L1),gX=E.Ay.header.withConfig({displayName:"styles__StyledDetailHeader",componentId:"sc-n4s99e-1"})(["width:100%;flex:0 0 64px;display:flex;align-items:center;padding-left:24px;.arrow-left{margin-right:6px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);color:",";}}.official-menu-filter-container{width:auto;.filter-opener{padding:0 12px;height:32px;.display-name{max-width:100%;.title-box{display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-size:16px;color:",";.level-title{color:",";&:first-child{margin-right:8px;}&:last-child{margin-left:8px;}}}}.arrow-icon{display:none;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1),yX=(0,E.DU)([".context-menu-mask{z-index:1052;}"]),Aw=E.Ay.div.withConfig({displayName:"styles__StyledMarketTemplateList",componentId:"sc-n4s99e-2"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;padding:16px 32px 20px 32px;.template-item{margin-bottom:0;.img-wrapper{width:100%;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}"],e=>e.theme.color_text_L2),o3=(0,l.memo)(e=>{const{list:t,containerRect:n,checkedSet:r,onCheckedResource:s,onOpenPreviewModal:c}=e,d=(0,a.wA)(),p=(0,l.useCallback)(y=>{y&&d({type:"entry:resources:update:find:data",payload:{cid:y==null?void 0:y.cid,category:y.category}})},[d]),g=(0,l.useCallback)(y=>{d({type:"widget-modal:update:state",payload:{currentResource:y}})},[d]);return(0,o.jsx)(Aw,{className:"large-marketTemplate-list",children:t.map((y,w)=>"hotAttr"in y&&"marketTemplateSource"in y?(0,o.jsx)(my.A,{isFloatPreviewMkt:!1,from:"widget-modal",marketTemplate:y,currentResources:y.marketTemplateSource,containerRect:n,isShowSign:!0,isShowFolderIcon:!0,canChecked:!0,checkedSet:r,onCheckedResource:s,onPaidTemplates:()=>p(y.marketTemplateSource),onOpenPreviewModal:c,onOpenFolder:g},y.key+w):(0,o.jsx)(ww.a,{item:y},y.key+w))})});var T0=i(19062),O2=i(38382),a3=i(55914);const Mw=(0,l.memo)(e=>{const{keyword:t,isSearching:n,checkedSet:r,templateList:s,searchList:c,onUpdateSearchList:d,onCheckedResource:p,onOpenPreviewModal:g}=e,y=(0,l.useRef)(null),[w,_]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{(async()=>{if(!(t!=null&&t.length))return;_(!0);const N=new RegExp((0,a3.$)(t),"i"),Z=s.filter(Q=>{var se;return N.test(Q==null||(se=Q.hotAttr)==null?void 0:se.name)});setTimeout(()=>{d(Z),_(!1)},1e3)})()},[n,t,_,s]),w?(0,o.jsx)(T0.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):c!=null&&c.length?(0,o.jsxs)("div",{className:"detail-container",children:[(0,o.jsx)($0.o,{ref:y,className:m()("detail-scrollable-list",{"show-footer":(r==null?void 0:r.size)>0}),children:j=>(0,o.jsx)(o3,{list:c,containerRect:j,checkedSet:r,onCheckedResource:p,onOpenPreviewModal:g})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:y,isAutoHideBar:!0})]}):(0,o.jsx)(O2.H,{})});var kw=i(26348),_f=i(60440),Ew=i(50325);const Iw=(0,l.memo)(e=>{const{list:t,detailScrollTopType:n,templateList:r,fetchList:s,onBack:c,onFetchData:d}=e,p=(0,a.d4)(e1.vE),g=(0,a.d4)(cl.fK),{level1:y,level2:w,detailScrollTop:_}=p,j=(0,l.useRef)(null),[N,Z]=(0,l.useState)(!1),[Q,se]=(0,l.useState)(""),[ie,he]=(0,l.useState)(null),xe=(0,a.wA)(),Se=(0,l.useMemo)(()=>t.find(Jo=>Jo.name===y),[t,y]),_e=(0,l.useMemo)(()=>{var Jo;const $o=(Jo=Se.children)==null?void 0:Jo.findIndex(sa=>sa.name===w);return $o>-1?$o:0},[Se]),{setItemRef:De,activeTitleValue:Je,scrollToItem:Ne,scrollTop:pt,scrollToByOffset:_t}=(0,kw.G)(j,{defaultFirst:w,defaultActiveIndex:_e,defaultOffsetTop:0}),gt=(0,l.useMemo)(()=>Se?Se.children.map(Jo=>({label:Jo.name,value:Jo.name})):[],[t,Se]),Ct=(0,l.useMemo)(()=>t.map(Jo=>({label:Jo.name,value:Jo.name})),[]);(0,l.useEffect)(()=>{n!=null&&n.length&&(n==="back"?setTimeout(()=>{_>0&&_t(_)},200):n==="detail"&&setTimeout(()=>{Ne(_e,0,!1)},200))},[_e,n,_,_t]),(0,l.useEffect)(()=>{xe({type:"widget-modal:update:largeFactory",payload:{detailScrollTop:pt}})},[pt,xe]),(0,l.useEffect)(()=>{var Jo;if(!Se)return;const $o=(Jo=Se.children)==null?void 0:Jo.find(sa=>sa.name===Je);xe({type:"widget-modal:update:largeFactory",payload:{level2:($o==null?void 0:$o.name)||""}})},[Se,Je,gt]);const{checkedSet:zt,curRes:Dt,handleChangeChecked:sn,handleSelectAll:Rn,handleClearAll:On,handleBySeparately:Lo,handleMemberClick:Yo,handleAddItems:Cn,handleOpenPreviewModal:hn}=(0,_f.m)({templateList:Q!=null&&Q.length?ie||[]:r,resourcesMap:g}),oa=(0,l.useCallback)(Jo=>{const{index:$o}=Jo;Ne($o)},[Ne]),Ao=(0,l.useCallback)(Jo=>{var $o;const sa=t.find(da=>da.name===Jo);j!=null&&j.current&&(j.current.scrollTop=0),xe({type:"widget-modal:update:largeFactory",payload:{level1:Jo,level2:sa==null||($o=sa.children)==null||($o=$o[0])==null?void 0:$o.name}}),On(),d(Jo)},[On,xe,t,d,j]),ca=(0,l.useCallback)(Jo=>{se(Jo)},[se,Z]),va=(0,l.useCallback)(async Jo=>{se(Jo),Z(!0),On()},[On,Z,se]),ra=(0,l.useCallback)(()=>{ca(""),On(),he([]),Z(!1)},[ca,Z,On,he]);return(0,o.jsxs)(Sw,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:Q,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:ca,onSearch:va,onClear:ra,canClear:!0})}),(0,o.jsx)(hy,{optionList:(gt==null?void 0:gt.length)===1?[]:gt,value:w,onChange:oa,onBack:c,isShow:!(Q!=null&&Q.length),renderParent:()=>(0,o.jsx)(Zh.A,{className:"large-factory-detail-parent",width:140,selectedValue:y,optionList:Ct,onChange:Ao})}),Q!=null&&Q.length?(0,o.jsx)(Mw,{keyword:Q,isSearching:N,checkedSet:zt,templateList:r,searchList:ie,onUpdateSearchList:he,onCheckedResource:sn,onOpenPreviewModal:hn}):(0,o.jsx)("div",{className:"detail-container",children:(0,o.jsx)($0.o,{className:m()("detail-scrollable-list",{"show-footer":(zt==null?void 0:zt.size)>0}),ref:j,children:(Jo,$o)=>{var sa;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"container",children:(sa=s[0])==null?void 0:sa.children.map((da,nr)=>(0,o.jsxs)("div",{className:"box",ref:De(nr),children:[(0,o.jsx)("span",{className:"title","data-key":da.name,children:da.name}),(0,o.jsx)(o3,{list:da.children,containerRect:Jo,checkedSet:zt,onCheckedResource:sn,onOpenPreviewModal:hn})]},da.name+"-"+nr))}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:j,isAutoHideBar:!0})]})}})}),zt.size>0&&(0,o.jsx)(s0.W,{type:"widget",resource:Dt,checkedSet:zt,onBuySeparately:Lo,onMemberClick:Yo,onSelectAll:Rn,onClearAll:On,onAddItems:Cn})]})}),Tw=(0,l.memo)(e=>{var t;const{platform:n}=e,r=(0,a.d4)(e1.vE),s=(0,a.d4)(cl.AC),{level1:c,listMap:d}=r,p=(0,a.wA)(),[g,y]=(0,l.useState)(null),[w,_]=(0,l.useState)(null),j=(0,l.useMemo)(()=>d.get(n)||[],[d,n]),N=(0,l.useCallback)(async Z=>{y(null),_(null);const Q=j.find(Se=>Se.name===Z);if(!Q)return;const ie=Q.children.map(Se=>Se.children||[]).flat(1/0).map(Se=>Se.mt_cid);await p({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:ie}});const{templateList:he,fetchList:xe}=(0,Ew.aM)([Q],s);y(he),_(xe)},[j,s,p,y,_]);return(0,l.useEffect)(()=>{N(c)},[c,N]),!(w!=null&&(t=w[0])!=null&&(t=t.children)!=null&&t.length)||!(g!=null&&g.length)?(0,o.jsx)(T0.S,{className:"margin-top-170"}):(0,o.jsx)(Iw,{...e,list:j,templateList:g,fetchList:w,onFetchData:N})});var fy=i(48790);const _w=(e,t)=>{let n=[],r=0;return e!=null&&e.length&&t&&e.forEach(s=>{const c=(0,fy.gT)(s,t);c!=null&&c.length&&(n.push([c,s]),r+=c==null?void 0:c.length)}),{marketTemplateGroups:n,sum:r}},Pw=e=>{if(!e)return null;const{data:t,p2mMMap:n}=e,{market_templates:r}=t,s=r&&r.filter(g=>(g==null?void 0:g.version)!=="v1"),{marketTemplateGroups:c,sum:d}=_w(s,n),p=c.map(g=>g[0]).flat(1/0);return{marketTemplateGroups:c,marketTemplates:p,marketTemplateNum:d}};var Kh=function(e){return e.MOBILE="mobile",e.WEB="web",e.OTHER="other",e.APP="app",e.APPLET="applet",e.WEB_BACK="web_back",e.WEBSITE="website",e.IPAD="ipad",e.SMART_TV="smart_tv",e.SMART_CAR="smart_car",e.APPLE_WATCH="apple_watch",e.SLIDE="slide",e.DISPLAY_SCREEN="display_screen",e.HMI="HMI",e.HMI2="visual",e.ACTIVITY="activity",e}(Kh||{});const Lw={0:[Kh.WEB,Kh.WEB_BACK,Kh.WEBSITE],1:[Kh.APP,Kh.MOBILE],2:[Kh.APPLET,Kh.MOBILE]},Nw=(0,l.memo)(e=>{const{tab:t,isSearching:n,checkedSet:r,onUpdateSearchList:s,onCheckedResource:c,onOpenPreviewModal:d}=e,p=(0,a.d4)(cl.fK),g=(0,a.d4)(e1.ri),y=(0,a.d4)(e1.vE),{searchList:w}=y,_=(0,a.wA)(),j=(0,l.useRef)(null),[N,Z]=(0,l.useState)(!0),Q=(0,l.useCallback)(ie=>{if(!ie)return;const{marketTemplateGroups:he}=ie;if(!(he!=null&&he.length))return;const xe=[],Se=new Map,_e=new Map;he.forEach(De=>{var Je;const[Ne,pt]=De;if((pt==null||(Je=pt.project_metas)==null?void 0:Je.length)>0){const{project_metas:[{cid:_t,upper_cid:gt}]}=pt;xe.push(gt),Se.set(gt,_t),_e.set(pt.cid,pt)}}),_({type:"resources:set:resources_map",payload:{mtResourcesMap:_e}}),_({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:xe,mtProjectMetaCidMap:Se}})},[_]),se=(0,l.useMemo)(()=>{const ie=Lw[t]||[];return w.filter(he=>{var xe;return ie.includes(he==null||(xe=he.marketTemplateSource)==null?void 0:xe.platform)})},[t,w]);return(0,l.useEffect)(()=>{(async()=>{if(!(g!=null&&g.length))return;Z(!0);const xe={category:ENV.IS_ON_PREMISES?"combo_group":"popup_combo_group",q:g,limit:36},Se=await(0,Go.F7)(new URLSearchParams(xe),""),_e=Pw(Se);if(_e){const{marketTemplates:De}=_e;s(De),Q(_e)}else s([]);Z(!1)})()},[n,g,Z]),(0,l.useEffect)(()=>{j!=null&&j.current&&(j.current.scrollTop=0)},[t]),N?(0,o.jsx)(T0.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):se!=null&&se.length?(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)($0.o,{ref:j,className:m()("resource-scroll-container",{"show-footer":(r==null?void 0:r.size)>0}),children:ie=>(0,o.jsx)(o3,{list:se,containerRect:ie,checkedSet:r,onCheckedResource:c,onOpenPreviewModal:d})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:j,isAutoHideBar:!0})]}):(0,o.jsx)(O2.H,{})});var Ep=i(16335);const jw=E.Ay.div.withConfig({displayName:"styles__StyledLargeFactory",componentId:"sc-10t2242-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 16px;}.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:32px;flex:0 0 32px;padding:0 32px;.divider{width:1px;height:16px;background:",";margin:0 24px;}.platform-sub-filter{height:32px;}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}}}"],e=>e.theme.color_bg_border_02),Dw=(0,l.memo)(e=>{const{detailScrollTopType:t,onUpdateDetailScrollTopType:n}=e,r=(0,a.d4)(e1.ri),s=(0,a.d4)(e1.vE),c=(0,a.d4)(cl.fK),d=(0,a.wA)(),{tab:p,level1:g,listMap:y,searchList:w,scrollTop:_}=s,[j,N]=(0,l.useState)(!1),[Z,Q]=(0,l.useState)(!1),[se,ie]=(0,l.useState)(r),he=(0,l.useMemo)(()=>[{key:"web_back",label:"Web\u540E\u53F0"},{key:"app",label:"App"},{key:"applet",label:"\u5C0F\u7A0B\u5E8F"}],[]),xe=(0,l.useMemo)(()=>{var Yo;return((Yo=he[p])==null?void 0:Yo.key)||"mobile"},[he,p]),{checkedSet:Se,curRes:_e,handleChangeChecked:De,handleSelectAll:Je,handleClearAll:Ne,handleBySeparately:pt,handleMemberClick:_t,handleAddItems:gt,handleOpenPreviewModal:Ct}=(0,_f.m)({templateList:w||[],resourcesMap:c}),zt=(0,l.useCallback)(Yo=>{d({type:"widget-modal:update:largeFactory",payload:{tab:Yo}}),Ne()},[d,Ne]);(0,l.useEffect)(()=>{(async()=>{if(y.get(xe))return;N(!0);const hn=await(0,Ep.GH)("v2",xe),oa=new Map(y);oa.set(xe,hn),await d({type:"widget-modal:update:largeFactory",payload:{listMap:oa}}),N(!1)})()},[xe,y,d]);const Dt=(0,l.useCallback)(Yo=>{ie(Yo)},[d]),sn=(0,l.useCallback)(async Yo=>{d({type:"widget-modal:update:keyword",payload:Yo}),Q(!0),Ne()},[d,Ne,Q]),Rn=(0,l.useCallback)(Yo=>{d({type:"widget-modal:update:largeFactory",payload:{searchList:Yo}})},[d]),On=(0,l.useCallback)(()=>{Dt(""),d({type:"widget-modal:update:keyword",payload:""}),Q(!1),Ne(),Rn([])},[Dt,Q,Ne,Rn]),Lo=(0,l.useCallback)(()=>{d({type:"widget-modal:update:largeFactory",payload:{level1:"",level2:"",detailScrollTop:0}})},[d]);return(g==null?void 0:g.length)>0?(0,o.jsx)(Tw,{platform:xe,detailScrollTopType:t,onBack:Lo}):(0,o.jsxs)(jw,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:se,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:Dt,onSearch:sn,onClear:On,canClear:!0})}),(0,o.jsx)("div",{className:"nav-container",children:(0,o.jsx)(ed.eD,{activeIndex:p,onTabChange:zt,height:32,className:"slide-nav",children:he.map((Yo,Cn)=>{let{key:hn,label:oa}=Yo;return(0,o.jsx)(ed.nl,{label:oa},hn)})})}),j?(0,o.jsx)(T0.S,{className:"margin-top-170"}):se!=null&&se.length?(0,o.jsx)(Nw,{isSearching:Z,checkedSet:Se,tab:p,onUpdateSearchList:Rn,onCheckedResource:De,onOpenPreviewModal:Ct}):(0,o.jsx)(fw,{platform:xe,checkedSet:Se,scrollTop:_,onUpdateDetailScrollTopType:n}),Se.size>0&&(0,o.jsx)(s0.W,{type:"widget",resource:_e,checkedSet:Se,onBuySeparately:pt,onMemberClick:_t,onSelectAll:Je,onClearAll:Ne,onAddItems:gt})]})});var bh=i(22375),mg=i(15722);const Ow=E.Ay.div.withConfig({displayName:"styles__StyledComponentLibrary",componentId:"sc-vrvd28-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;}}"]),Rw=E.Ay.div.withConfig({displayName:"styles__StyledFilterComponent",componentId:"sc-vrvd28-1"})(["width:100%;display:flex;flex-direction:column;padding:0 32px;.other-filter-section{height:32px;display:flex;justify-content:space-between;margin-top:12px;font-size:14px;font-weight:500;.order-filter{display:flex;align-items:center;color:",";font-weight:500;.order-item{cursor:pointer;display:flex;align-items:center;&.is-active{color:",";}&:not(:last-child){margin-right:24px;}img.new-icon{height:18px;margin-left:4px;}}}.ant-dropdown-trigger.item{border-radius:6px;color:"," !important;font-size:14px !important;font-weight:400 !important;display:flex;align-items:center;height:32px;padding:0 8px;cursor:pointer;&:hover{background:",";}.arrow-icon{width:8px;height:8px;margin-left:4px;transition:transform 0.2s ease-out 0s;}&.ant-dropdown-open{.arrow-icon{transform:rotateX(180deg);}}}.ant-dropdown{width:180px !important;margin:4px 0 !important;min-width:auto !important;}.ant-dropdown-menu{padding:8px !important;width:180px !important;background:"," !important;}.ant-dropdown-menu-item{padding:5px 8px !important;color:"," !important;&:hover{background:"," !important;}.ant-dropdown-menu-item-icon{width:16px !important;height:16px !important;margin-inline-end:4px !important}svg{&:not(.item-select){opacity:0;}}.ant-dropdown-menu-title-content{color:"," !important;font-size:12px !important;}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),Bw=(0,l.memo)(e=>{const{onScrollTop:t}=e,n=(0,a.d4)(e1.GL),r=(0,l.useRef)(null),{platform:s,order:c,policy:d}=n,p=(0,a.wA)(),g=ENV.IS_ON_PREMISES?bh.Cl:bh.yK,y=(0,l.useMemo)(()=>g.findIndex(Z=>Z.value===s),[s]),w=(0,l.useMemo)(()=>bh.kA.filter(Z=>d.includes(Z.key)).map(Z=>Z.label).join("+"),[d]),_=(0,l.useCallback)(async Z=>{var Q;const se=(Q=g[Z])==null?void 0:Q.value;await p({type:"widget-modal:update:componentLibrary",payload:{platform:se,page:1}}),await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}})},[p]),j=(0,l.useCallback)(async Z=>{Z!==c&&(await p({type:"widget-modal:update:componentLibrary",payload:{order:Z,page:1}}),await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}}))},[c,p]),N=(0,l.useCallback)(async(Z,Q)=>{if(Z.stopPropagation(),Q===mg.y)await p({type:"widget-modal:update:componentLibrary",payload:{policy:[mg.y],page:1}});else{const se=new Set(d.filter(he=>he!==mg.y));se.has(Q)?(Q===bh._n.MktMemberFree&&se.delete(bh._n.MktMemberDiscount),se.delete(Q)):(Q===bh._n.MktMemberFree&&se.add(bh._n.MktMemberDiscount),se.add(Q));const ie=Array.from(se);await p({type:"widget-modal:update:componentLibrary",payload:{policy:(ie==null?void 0:ie.length)===0?[mg.y]:ie,page:1}})}await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}})},[p,d]);return(0,o.jsxs)(Rw,{className:"nav-container",children:[(0,o.jsx)(ed.eD,{activeIndex:y,onTabChange:_,height:32,className:"slide-nav",children:g.map((Z,Q)=>{let{name:se,value:ie}=Z;return(0,o.jsx)(ed.nl,{label:se},ie)})}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:"other-filter-section",children:[(0,o.jsx)("div",{className:"order-filter",children:bh.h0.map(Z=>(0,o.jsxs)("div",{className:m()("order-item",Z.value===c&&"is-active"),onClick:()=>j(Z.value),children:[Z.name,Z.value==="recent"&&(0,o.jsx)("img",{src:"/mb-community/images/home/filter_new.png",className:"new-icon"})]},Z.value))}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(rg.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:bh.kA.map(Z=>Z.type==="divider"?(0,o.jsx)("li",{role:"separator",className:"ant-dropdown-menu-item-divider"},Z.key):(0,o.jsxs)("div",{onClick:Q=>N(Q,Z.key),className:"ant-dropdown-menu-item",children:[(0,o.jsx)(Et.C,{name:"common/checked",className:m()("ant-dropdown-menu-item-icon",{"item-select":d.includes(Z.key)})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:Z.label})]},Z.key))}),placement:"bottomRight",getPopupContainer:()=>r.current,children:(0,o.jsxs)("div",{className:"item",ref:r,children:[w,(0,o.jsx)(Et.C,{className:m()("arrow-icon"),name:"common/expand"})]})})})]})]})});var Uw=i(68677);function Yh(e){this.value=e,this.getDisplayStrLessThan4=function(){return this.value.toString()},this.getDisplayStrEqualTo4=function(){return(this.value/1e3).toFixed(1)+"k"},this.getDisplayStrMoreThan4=function(){return(this.value/1e4).toFixed(1)+"w"},this.getDisplayStr=function(){if(this.value===void 0)return"0";const t=this.value.toString().length;return t<=3?this.getDisplayStrLessThan4():t===4?this.getDisplayStrEqualTo4():t>4?this.getDisplayStrMoreThan4():"0"}}const Fw=function(e,t){t===void 0&&(t="");const{isMdVipTemplate:n,isMktVipTemplate:r}=(0,Q4.TX)(e);return n?t==="title"?["/mb-community/images/vip_icon/md_vip_title.png",""]:["/mb-community/images/vip_icon/md_vip_card.png","art_board/community_resources/md_vip_s"]:r?t==="title"?["/mb-community/images/vip_icon/mt_vip_title.png",""]:["/mb-community/images/vip_icon/mt_vip_card.png","art_board/community_resources/mt_vip_s"]:["",""]},Pf=e=>{let{currentResource:t,onUpdateResource:n}=e;const r=(0,a.wA)(),s=(0,l.useCallback)(async p=>{if(p==null||p.preventDefault(),p==null||p.stopPropagation(),!t)return;const{cid:g,state:y,is_purchased:w,is_liked:_,target_upper_cid:j,liked_count:N}=t,Z=y!=="approved"&&!w,Q=j||g;if(Z)return;const se=!_;se?await(0,Ep.q3)(Q):await(0,Ep.V)(Q);const ie=se?N+1:N-1;n({...t,...{is_liked:se,liked_count:ie}})},[t,n]),c=(0,l.useCallback)(async p=>{if(p&&"preventDefault"in p&&(p==null||p.preventDefault(),p==null||p.stopPropagation()),!t)return;const{cid:g,state:y,is_purchased:w,target_upper_cid:_,is_star:j,star_count:N}=t,Z=y!=="approved"&&!w,Q=_||g;if(Z)return;const se=!j;se?await(0,Ep.rq)(Q):await(0,Ep.iS)(Q);const ie={is_star:se,star_count:se?N+1:N-1};n({...t,...ie})},[t,n]),d=(0,l.useCallback)(()=>{t&&(n({...t,is_purchased:!0,is_star:!0}),r({type:"entry:resources:update:find:data",payload:{cid:t==null?void 0:t.cid,category:t==null?void 0:t.category}}))},[t,n,r]);return{handleToggleLike:s,handleToggleStar:c,handlePaidResources:d}},Vw=E.Ay.div.withConfig({displayName:"styles__StyledTemplateItem",componentId:"sc-1g225km-0"})(["&.template-item{cursor:default;position:relative;.vip{position:absolute;top:10px;right:10px;height:20px;z-index:1;&.short{width:20px}}&:hover{.vip.short{visibility:hidden}}&:not(:hover){.vip.long{visibility:hidden}}.new{position:absolute;top:10px;left:10px;height:20px;z-index:1;}.template-cover{position:relative;border-radius:12px;overflow:hidden;padding-bottom:75%;height:0px;cursor:pointer;border:1px solid rgba(18,17,42,0.07);box-sizing:border-box;img{width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}&.mask{opacity:0.65;}}}.templateInfo{display:flex;height:20px;align-items:center;margin-top:10px;justify-content:space-between;.templateTitle{font-size:14px;font-weight:500;line-height:16px;color:",";cursor:pointer;}.actionListContainer{display:flex;.action-item{display:flex;align-items:center;cursor:pointer;&:nth-child(1){margin-right:8px;}svg{width:16px;height:16px;margin-right:4px;color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}.actionValue{font-size:12px;font-weight:500;line-height:16px;text-align:left;color:",";}&.is-active{color:",";.actionIcon{color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}}&:not(.is-active,.disabled):hover{color:",";.actionIcon{color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}}&.disabled{cursor:not-allowed;path{fill:",";}.actionValue{color:",";}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled02,e=>e.theme.color_text_disabled02),zw=(0,l.memo)(e=>{const{template:t,onGotoDetail:n,onUpdateTemplateList:r}=e,s=(0,a.wA)(),c=(0,a.d4)(re.HW),{cover:d,view_count:p,author:g,title:y,liked_count:w,is_liked:_,target_upper_cid:j,cid:N,used_count:Z,is_star:Q,star_count:se,state:ie,is_purchased:he,updated_at:xe}=t,{handleToggleLike:Se,handleToggleStar:_e}=Pf({currentResource:t,onUpdateResource:r}),De=new Yh(p).getDisplayStr(),Je=new Yh(w).getDisplayStr(),Ne=new Yh(Z).getDisplayStr(),pt=new Yh(se).getDisplayStr(),_t=j||N,[gt,Ct]=(0,l.useMemo)(()=>Fw(t),[t]),zt=(0,l.useMemo)(()=>{const Rn=an()().diff(an()(xe),"day");return Rn<=30&&Rn>=0},[xe]),Dt=(0,l.useMemo)(()=>ie!=="approved"&&!he,[ie,he]),sn=(0,l.useMemo)(()=>ie==="preview_only"&&!he,[ie,he]);return(0,o.jsxs)(Vw,{className:"template-item","data-cid":N,onClick:n,children:[Ct&&(0,o.jsx)(Et.C,{className:"vip short",name:Ct,isColorPure:!0}),gt&&(0,o.jsx)("img",{alt:"VIP",src:gt,className:"vip long"}),zt&&(0,o.jsx)("img",{className:"new",src:"/mb-community/images/home/item_new.png"}),(0,o.jsx)("div",{className:"template-cover",children:(0,o.jsx)("img",{className:m()({mask:Dt}),src:d})}),(0,o.jsxs)("div",{className:"templateInfo",children:[(0,o.jsx)(Uw.A,{className:"templateTitle",title:y,max:15,children:y}),!sn&&(0,o.jsxs)("div",{className:"actionListContainer",children:[!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{onClick:Se,className:m()("action-item","like-action",_&&"is-active",Dt&&"disabled"),children:[_?(0,o.jsx)(Et.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/thumb_active"}):(0,o.jsx)(Et.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:Je})]}),(0,o.jsxs)("div",{onClick:_e,className:m()("action-item","star-action",Q&&"is-active",Dt&&"disabled"),children:[Q?(0,o.jsx)(Et.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/star_active"}):(0,o.jsx)(Et.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:pt})]})]})]})]})}),Ww=E.Ay.div.withConfig({displayName:"styles__StyledTemplateSet",componentId:"sc-6m583v-0"})(["&.template-container{display:grid;list-style:none;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px 20px;}"]),Hw=(0,E.DU)(["@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:linear-gradient(130deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"]),Gw=E.Ay.div.withConfig({displayName:"styles__StyledListCardLoading",componentId:"sc-6m583v-1"})(["padding-bottom:40px;display:grid;list-style:none;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));grid-gap:40px 32px;@media (max-width:1500px){grid-template-columns:repeat(auto-fill,minmax(240px,1fr));}@media (max-width:1380px){grid-template-columns:repeat(auto-fill,minmax(200px,1fr));}.template-loading-box{.loading-box-first{width:100%;height:199.5px;border-radius:8px;}.loading-box-second{width:90%;height:16px;border-radius:8px;margin-top:14.5px;margin-left:8px;}.loading-box-third{width:65%;height:10px;border-radius:8px;margin:11px 0 9px 8px;}.loading-box-forth{width:11%;height:20px;border-radius:50%;display:inline-block;margin-left:8px;}.loading-box-fifth{width:21%;height:10px;border-radius:8px;margin:0 0 5px 7px;display:inline-block;}}"]),gy=(0,l.memo)(e=>{const{templateList:t,onGotoDetail:n,onUpdateTemplateList:r}=e;return(0,o.jsx)(Ww,{className:"template-container",children:t.map(s=>(0,o.jsx)(zw,{template:s,onGotoDetail:()=>n(s),onUpdateTemplateList:r},s.cid))})}),yy=(0,l.memo)(e=>{const{renderCounts:t}=e,n=(0,l.useCallback)(s=>[...Array(s).keys()],[]),r=(0,l.useMemo)(()=>n(t),[t,n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Hw,{}),(0,o.jsx)(Gw,{children:r.map(s=>(0,o.jsxs)("div",{className:"template-loading-box template-box",children:[(0,o.jsx)("div",{className:"loading-box-first skeleton-loading"}),(0,o.jsx)("div",{className:"loading-box-second skeleton-loading"}),(0,o.jsx)("div",{className:"loading-box-third skeleton-loading"})]},s))})]})}),Zw=E.Ay.div.withConfig({displayName:"styles__StyledTemplateContainer",componentId:"sc-1h8sai4-0"})(["width:100%;flex:1;position:relative;overflow:hidden;margin-top:16px;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:0 32px 20px 32px;.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}}"],e=>e.theme.color_text_L3),Kw=(0,l.memo)(e=>{const{onGotoDetail:t}=e,n=(0,a.d4)(e1.GL),{page:r,templateList:s,totalCount:c,isFetchingMktData:d,isFetchingDone:p}=n,g=(0,l.useRef)(null),y=(0,a.wA)();(0,l.useEffect)(()=>{(async()=>{await y({type:"entry:widget-modal:componentLibrary:update:templateList"})})()},[]);const w=(0,l.useCallback)(async j=>{var N;if(!(g!=null&&g.current))return;const Z=g.current.scrollHeight,Q=g.current.clientHeight,se=(N=j.target)==null?void 0:N.scrollTop;Z-(Q+se)<80&&s.length>0&&!p&&!d&&s.length<c&&(await y({type:"widget-modal:update:componentLibrary",payload:{page:r+1}}),await y({type:"entry:widget-modal:componentLibrary:update:templateList"}))},[y,n,r]),_=(0,l.useCallback)(j=>{const N=s.map(Z=>Z.cid===(j==null?void 0:j.cid)?j:Z);y({type:"widget-modal:update:componentLibrary",payload:{templateList:N}})},[s,y]);return s&&s.length===0?(0,o.jsx)(O2.H,{}):(0,o.jsxs)(Zw,{children:[(0,o.jsxs)("div",{className:"template-scroll-container",ref:g,onScroll:w,children:[(0,o.jsx)(gy,{templateList:s,onGotoDetail:t,onUpdateTemplateList:_}),d&&(0,o.jsx)(yy,{renderCounts:24}),!d&&s!=null&&s.length?(0,o.jsx)("span",{className:"search-end",children:I18N.widgetModal.search_end}):null]}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:g,isAutoHideBar:!0})]})}),Yw=(0,l.memo)(()=>{const e=(0,a.d4)(e1.ri),t=(0,a.wA)(),n=(0,l.useCallback)(()=>{const d=document.querySelector(".template-scroll-container");d&&d.scrollTo(0,0)},[]),r=(0,l.useCallback)(d=>{t({type:"widget-modal:update:keyword",payload:d})},[t]),s=(0,l.useCallback)(async d=>{await t({type:"widget-modal:update:keyword",payload:d}),await t({type:"widget-modal:update:componentLibrary",payload:{page:1}}),await t({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:n}})},[t]),c=(0,l.useCallback)(d=>{t({type:"widget-modal:update:state",payload:{currentResource:d}})},[t]);return(0,o.jsxs)(Ow,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:e,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:r,onSearch:s,canClear:!0})}),(0,o.jsx)(Bw,{onScrollTop:n}),(0,o.jsx)(Kw,{onGotoDetail:c})]})});var Xw=i(31174),r3=i(99402),Qw=i(31757),Jw=i(78161),i3=i(41240);const s3=(0,E.AH)(["opacity:0;pointer-events:none;"]),l3=(0,E.AH)(["opacity:1;pointer-events:auto;"]),qw=E.Ay.li.withConfig({displayName:"styles__StyledComboItem",componentId:"sc-ozjfwl-0"})(["width:187px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;.img-wrapper{width:187px;height:187px;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:12px;border:1px solid ",";outline:1px solid transparent;overflow:hidden;img{max-width:100%;max-height:100%;pointer-events:none;}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";",";.check{visibility:visible;position:relative;top:0;left:0;}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}.svgContainer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;svg{border-radius:none;background:none;&:hover{background:none;}}}}}}.go-detail{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;overflow:hidden;background:",";backdrop-filter:blur(4px);",";&:hover,&:active{background:",";}}&.checked{border:1px solid ",";outline:1px solid ",";.operation-box{.left{",";}}}}.template-name{width:100%;padding:0 6px;margin-top:10px;font-size:14px;line-height:20px;text-align:left;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.operation-box{.left,.right{",";}}.go-detail{",";}}&.checked{.img-wrapper{border:1px solid ",";outline:1px solid ",";.left{opacity:1;pointer-events:auto;}}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,s3,i3.GR,s3,e=>e.theme.color_slider_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_text_btn,e=>e.theme.color_slider_hover,s3,e=>e.theme.color_bg_mask,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,l3,e=>e.theme.color_text_L2,l3,l3,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),vX=E.Ay.li.withConfig({displayName:"styles__StyledSampleDetailItem",componentId:"sc-ozjfwl-1"})(["display:flex;align-items:center;justify-content:center;width:187px;aspect-ratio:1 / 1;margin-bottom:30px;background:",";border:1px solid ",";border-radius:12px;pointer-events:none;"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),$w=E.Ay.div.withConfig({displayName:"styles__StyledComboItemList",componentId:"sc-ozjfwl-2"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;li{width:100%;.img-wrapper{width:100%;height:auto;aspect-ratio:1 / 1;}}"]),eS=(0,l.memo)(e=>{const{containerRect:t,preloadDistance:n=50,item:r,isVisible:s,checkedSet:c,onUpdateCheckedSet:d,onOpenPreviewModal:p,onAddItem:g}=e,{key:y,flpakKey:w,hotAttr:{name:_}}=r,j=r.sup==="B@ref-muban"?r.hotAttr.defaultCanvasKey:y,N=r.sup==="B@ref-muban"?Ud.rY.PNG_CANVAS:Ud.rY.PNG_PAGE,Z=(0,l.useRef)(null),Q=(0,l.useCallback)((he,xe)=>xe.offsetWidth<xe.scrollWidth,[]),se=(0,l.useCallback)(()=>(0,J0.NI)({flpakKey:w,ssKey:j,ssTaskMode:N,ssZoomMode:Ud.BU.LETTERBOX_256}),[]),ie=(0,l.useCallback)(he=>{he.preventDefault(),he.stopPropagation(),p(y)},[p]);return(0,o.jsxs)(qw,{className:m()("combo-item",{checked:c.has(y)}),ref:Z,onClick:he=>c!=null&&c.size?d(y):g(y),children:[(0,o.jsxs)("div",{className:"img-wrapper",children:[(0,o.jsx)(J0.Ay,{projectMetaCid:w,snapshotKey:j,isVisible:s,mode:N}),(0,o.jsxs)("div",{className:"operation-box",children:[(0,o.jsx)("div",{className:"left",children:(0,o.jsx)(r3.A,{className:"check "+((c==null?void 0:c.has(y))&&"is-show"),checked:c.has(y),onChange:he=>d(y),onClick:he=>he.stopPropagation()})}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(Jw.Y,{className:"scale-box",getImgSrc:se,onClick:ie,modalName:"mb-widget-modals",children:(0,o.jsx)(Qw.A,{size:12})})})]})]}),(0,o.jsx)(Os.A,{content:_,direction:"down",isShowTipsByTarget:Q,children:(0,o.jsx)("span",{className:"template-name",children:_})})]})}),fg=(0,l.memo)(e=>{const{items:t,containerRect:n,isVisible:r,checkedSet:s,onUpdateCheckedSet:c,onOpenPreviewModal:d,onAddItem:p}=e;return(0,o.jsx)($w,{className:"item-list",children:t.map(g=>(0,o.jsx)(eS,{item:g,containerRect:n,isVisible:r,checkedSet:s,onUpdateCheckedSet:c,onOpenPreviewModal:d,onAddItem:p},g.key))})});var vy=i(77277);const xy=(e,t)=>{let n=[],r=0;return e!=null&&e.length&&t&&e.filter(s=>s.is_purchased||s.is_star).forEach(s=>{const c=(0,fy.gT)(s,t);c!=null&&c.length&&(n.push([c,s]),r+=c==null?void 0:c.length)}),{marketTemplateGroups:n,sum:r}},xX=e=>{if(!e)return null;const{data:t,p2mMMap:n}=e,{market_templates:r}=t,s=r&&r.filter(p=>(p==null?void 0:p.version)!=="v1"),{marketTemplateGroups:c,sum:d}=xy(s,n);return{marketTemplateGroups:c,marketTemplateNum:d}},by=(e,t,n)=>{var r,s;if(!e)return null;const{data:c,p2mMMap:d}=e,{market_templates:p,user_combo_group:g,org_combo_group:y}=c,w=p&&p.filter(xe=>(xe==null?void 0:xe.version)!=="v1"),{marketTemplateGroups:_,sum:j}=xy(w,d),{combos:N,sum:Z}=(0,kf.nS)(g,d,t,window.userSdkStore),{combos:Q,sum:se}=(0,kf.nS)(y,d,n,window.orgSdkStore),ie=(r=N.find(xe=>xe.type===vy.I.SelfMakeCombo))==null?void 0:r.items,he=(s=Q.find(xe=>xe.type===vy.I.SelfMakeCombo))==null?void 0:s.items;return{marketTemplateGroups:_,userCombos:ie||[],orgCombos:he||[],sum:j+Z+se}},tS=E.Ay.div.withConfig({displayName:"styles__StyledResult",componentId:"sc-14rzdq2-0"})([".box{width:100%;.title{display:block;font-size:16px;font-family:PingFang SC;font-weight:500;color:",";margin-bottom:20px;}&:not(:last-child){margin-bottom:20px;}ul.box-template-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item{margin-bottom:0;.img-wrapper{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:auto;aspect-ratio:1 / 1;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),nS=(0,l.memo)(e=>{const{navIndex:t,isSearching:n,onPaidResources:r}=e,s=(0,l.useRef)(null),c=(0,a.d4)(e1.ri),d=(0,a.d4)(cl.fK),p=(0,a.wA)(),g=(0,a.d4)(re.wA),{scene_tag:y}=(0,a.d4)(re.PL),w=(0,a.d4)(cl.wS),_=(0,a.d4)(cl.lb),[j,N]=(0,l.useState)(!0),[Z,Q]=(0,l.useState)(null),{marketTemplateGroups:se=[],userCombos:ie=[],orgCombos:he=[],sum:xe}=Z||{},Se=(0,l.useMemo)(()=>{let Cn=[];return se!=null&&se.length&&se.forEach(hn=>{if(hn!=null&&hn.length){const[oa]=hn;oa!=null&&oa.length&&Cn.push(...oa)}}),ie!=null&&ie.length&&Cn.push(...ie),he!=null&&he.length&&Cn.push(...he),Cn},[Z]),_e=(0,l.useCallback)(Cn=>{if(!Cn)return;const{marketTemplateGroups:hn}=Cn;if(!(hn!=null&&hn.length))return;const oa=[],Ao=new Map,ca=new Map;hn.forEach(va=>{var ra;const[Jo,$o]=va;if(($o==null||(ra=$o.project_metas)==null?void 0:ra.length)>0){const{project_metas:[{cid:sa,upper_cid:da}]}=$o;oa.push(da),Ao.set(da,sa),ca.set($o.cid,$o)}}),p({type:"resources:set:resources_map",payload:{mtResourcesMap:ca}}),p({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:oa,mtProjectMetaCidMap:Ao}})},[p]),De=(0,l.useCallback)(async()=>{if(!(c!=null&&c.length))return;N(!0);const Cn={category:Lc.t_,q:c,limit:36,scene_tag:y};g!=null&&g.cid&&(Cn.org_cid=g==null?void 0:g.cid);const hn=await(0,Go.F7)(new URLSearchParams(Cn),""),oa=by(hn,w,_);_e(oa),Q(oa),N(!1)},[c,g,Q,N,p]);(0,l.useEffect)(()=>{De()},[n,c]);const{checkedSet:Je,curRes:Ne,handleChangeChecked:pt,handleSelectAll:_t,handleClearAll:gt,handleBySeparately:Ct,handleMemberClick:zt,handleAddItem:Dt,handleAddItems:sn,handleOpenPreviewModal:Rn}=(0,_f.m)({templateList:Se,resourcesMap:d,isFromSameResource:!1}),On=(0,l.useMemo)(()=>{const{marketTemplateGroups:Cn=[]}=Z||{};return t===1?Cn.filter(hn=>{var oa;return(oa=hn[1])==null?void 0:oa.is_star}):t===2?Cn.filter(hn=>{var oa;return(oa=hn[1])==null?void 0:oa.is_purchased}):Cn},[Z,t]),Lo=(0,l.useMemo)(()=>t===0?xe===0:On.reduce((hn,oa)=>{var Ao;return hn+=(Ao=oa[0])==null?void 0:Ao.length,hn},0)===0,[t,xe,On]),Yo=(0,l.useCallback)(Cn=>{p({type:"widget-modal:update:state",payload:{currentResource:Cn||null}})},[p]);return(0,l.useEffect)(()=>{s!=null&&s.current&&(s.current.scrollTop=0,gt())},[t,gt]),j?(0,o.jsx)(T0.S,{className:"fill-height"}):Lo?(0,o.jsx)(O2.H,{}):(0,o.jsxs)(tS,{className:"resource-container",children:[(0,o.jsx)($0.o,{className:m()("resource-scroll-container",{"show-footer":(Je==null?void 0:Je.size)>0}),ref:s,children:(Cn,hn)=>(0,o.jsxs)("div",{className:"container",children:[(ie==null?void 0:ie.length)>0&&t===0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:I18N.Popups.my_widgets}),(0,o.jsx)(fg,{items:ie,containerRect:Cn,isVisible:hn,checkedSet:Je,onUpdateCheckedSet:pt,onOpenPreviewModal:Rn,onAddItem:Dt})]}),(he==null?void 0:he.length)>0&&t===0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:I18N.Popups.org_widgets}),(0,o.jsx)(fg,{items:he,containerRect:Cn,isVisible:hn,checkedSet:Je,onUpdateCheckedSet:pt,onOpenPreviewModal:Rn,onAddItem:Dt})]}),(On==null?void 0:On.length)>0&&On.map(oa=>{const[Ao,ca]=oa;return(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:ca==null?void 0:ca.title}),(0,o.jsx)("ul",{className:"box-template-list",children:Ao.map(va=>(0,o.jsx)(my.A,{isFloatPreviewMkt:!1,from:"widget-modal",marketTemplate:va,currentResources:ca,containerRect:Cn,isShowSign:!0,isShowFolderIcon:!0,onPaidTemplates:()=>r(ca==null?void 0:ca.cid),canChecked:!0,checkedSet:Je,onOpenFolder:Yo,onCheckedResource:pt,onOpenPreviewModal:Rn},va.key))})]})})]})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:s,isAutoHideBar:!0}),Je.size>0&&(0,o.jsx)(s0.W,{type:"widget",isOnlyShowCreates:!Ne,resource:Ne,checkedSet:Je,onBuySeparately:Ct,onMemberClick:zt,onSelectAll:_t,onClearAll:gt,onAddItems:sn})]})}),oS=E.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-107t2rm-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 0 32px;flex:0 0 130px;display:flex;flex-direction:column;.search-bar{height:42px;flex:0 0 42px;}.slide-nav{margin:16px 0;}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.empty-template-search-container{height:100%;}.container{width:100%;min-height:100%;display:flex;flex-direction:column;padding:16px 32px 20px 32px;&.fill-height{height:100%;}}.open-modal-cards-wrap{padding:0 0 16px 0;.card-item{max-width:256px;padding-bottom:24px;border-radius:12px;svg{width:110px !important;height:110px !important;}&.user-widget{margin-right:20px;}}}.me-com-entry{display:flex;flex-direction:row;align-items:center;height:60px;padding:6px;margin:8px 6px;border-radius:8px;cursor:pointer;.left{background:#f6f3ff;width:64px;height:48px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex:0 0 64px;}.right{flex:1;display:flex;flex-direction:column;margin-left:12px;span{font-size:12px;font-family:PingFang SC;&:first-child{color:",";}&:last-child{color:",";}}}&.dark{background:#372c5c;}&:hover{background:",";}}.divider{width:100%;flex:0 0 1px;height:1px;background:",";margin:16px 0;}.template-main{width:100%;height:100%;&.padding-top-16{padding-top:16px;}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),aS=(0,l.memo)(e=>{const{cardList:t,onChangeCurrentResource:n,onPaidResource:r,onUpdateTemplateList:s}=e,c=(0,l.useRef)(null),d=(0,a.d4)(q.rk),p=(0,a.d4)(e1.ri),g=(0,a.d4)(e1.ur),{navIndex:y,resources:w}=g,[_,j]=(0,l.useState)(!0),[N,Z]=(0,l.useState)(!1),Q=(0,a.wA)(),[se,ie]=(0,l.useState)(p),he=(0,l.useMemo)(()=>ENV.IS_ON_PREMISES?[{key:"1",label:"\u6536\u85CF"}]:[{key:"1",label:"\u5168\u90E8"},{key:"2",label:"\u6536\u85CF"},{key:"3",label:"\u5DF2\u8D2D"}],[]);(0,l.useEffect)(()=>{(async()=>{j(!0);const pt=await(0,Ep.YC)(Lc.t_,d),_t=new Map;pt.forEach(gt=>_t.set(gt.cid,gt)),Q({type:"widget-modal:update:me",payload:{resources:pt,resourcesMap:_t}}),j(!1)})()},[Q]);const xe=(0,l.useCallback)(async Ne=>{ie(Ne)},[ie]),Se=(0,l.useCallback)(async Ne=>{await Q({type:"widget-modal:update:keyword",payload:Ne}),Z(!0)},[Z,Q]),_e=(0,l.useCallback)(()=>{xe(""),Q({type:"widget-modal:update:keyword",payload:""}),Z(!1),Q({type:"widget-modal:update:me",payload:{searchResult:null}})},[xe,Z,Q]),De=(0,l.useCallback)(Ne=>{Q({type:"widget-modal:update:me",payload:{navIndex:Ne}})},[Q]),Je=(0,l.useMemo)(()=>y===1?w==null?void 0:w.filter(Ne=>Ne.is_star):y===2?w==null?void 0:w.filter(Ne=>Ne.is_purchased):w,[w,y]);return(0,o.jsxs)(oS,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(vd.A,{value:se,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:xe,onSearch:Se,canClear:!0,onClear:_e}),(0,o.jsx)(ed.eD,{activeIndex:y,onTabChange:De,height:32,className:"slide-nav",children:he.map((Ne,pt)=>{let{key:_t,label:gt}=Ne;return(0,o.jsx)(ed.nl,{label:gt},_t)})})]}),se?(0,o.jsx)(nS,{navIndex:y,isSearching:N,onPaidResources:r}):(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)($0.o,{className:m()("resource-scroll-container",{"fill-height":(Je==null?void 0:Je.length)===0}),ref:c,children:(Ne,pt)=>(0,o.jsxs)("div",{className:m()("container",{"fill-height":(Je==null?void 0:Je.length)===0}),children:[y==0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Xw.G,{cardList:t}),(0,o.jsx)("div",{className:"divider"})]}),(0,o.jsx)("div",{className:m()("template-main",{"padding-top-16":y===0}),children:_?(0,o.jsx)(yy,{renderCounts:24}):Je!=null&&Je.length?(0,o.jsx)(gy,{templateList:Je,onGotoDetail:n,onUpdateTemplateList:s}):(0,o.jsx)(O2.H,{className:m()({center:y==0}),type:"common",desc:I18N.LeftSidePanel.modals.not_found})})]})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:c,isAutoHideBar:!0})]})]})}),rS=(0,l.memo)(e=>{const{isOrg:t,keyword:n,isSearching:r,checkedSet:s,searchList:c,onUpdateSearchList:d,onUpdateCheckedSet:p,onOpenPreviewModal:g,onAddItem:y}=e,w=(0,l.useRef)(null),[_,j]=(0,l.useState)(!0),N=(0,a.d4)(re.wA),{scene_tag:Z}=(0,a.d4)(re.PL),Q=(0,a.d4)(cl.wS),se=(0,a.d4)(cl.lb);return(0,l.useEffect)(()=>{(async()=>{if(!(n!=null&&n.length))return;j(!0);const he={category:Lc.t_,q:n,limit:36,scene_tag:Z};N!=null&&N.cid&&(he.org_cid=N==null?void 0:N.cid);const xe=await(0,Go.F7)(new URLSearchParams(he),""),Se=by(xe,Q,se);d(t?(Se==null?void 0:Se.orgCombos)||[]:(Se==null?void 0:Se.userCombos)||[]),j(!1)})()},[r,n,j,N,t]),_?(0,o.jsx)(T0.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):c!=null&&c.length?(0,o.jsxs)("div",{className:"template-main",children:[(0,o.jsx)($0.o,{ref:w,className:m()("template-scroll-container",{"show-footer":(s==null?void 0:s.size)>0}),children:(ie,he)=>(0,o.jsx)(fg,{items:c,containerRect:ie,isVisible:he,checkedSet:s,onUpdateCheckedSet:p,onOpenPreviewModal:g,onAddItem:y})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:w,isAutoHideBar:!0})]}):(0,o.jsx)(O2.H,{})}),Cy=e=>{const t=[];if(!e)return t;const{children:n,subFolder:r}=e;return n!=null&&n.length&&t.push(n),r!=null&&r.length&&r.forEach(s=>{t.push(Cy(s))}),t.flat(1/0)},wy=e=>e.map(t=>({...t,children:Cy(t)})),iS=E.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-5qllct-0"})(["height:100%;width:100%;display:flex;flex-direction:column;position:relative;.platform-sub-filter{.filter-opener{button{.display-name{font-size:16px;font-weight:500;}}}}.title-text{font-size:16px;font-weight:500;}.sticky-container{padding:24px 32px 16px;}.template-main{flex:1;width:100%;position:relative;overflow:hidden;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:0 32px 20px 32px;&.show-footer{height:calc(100% - 68px);}.container{position:relative;&.has-paddding{padding-top:16px;}.box{width:100%;.title{display:block;font-size:16px;font-family:PingFang SC;font-weight:500;color:",";margin-bottom:20px;}&:not(:last-child){margin-bottom:20px;}}.marketTemplate-list .scrollable-marketTemplate-masonry{padding-top:16px;}}}}.empty-container{flex:1;width:100%;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;.pure-svg-icon{width:88px;}span{display:block;&:nth-child(2){font-family:PingFang SC;font-weight:500;font-size:16px;color:",";margin-top:16px;}&:nth-child(3){font-family:PingFang SC;font-weight:400;font-size:14px;color:",";margin-top:8px;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),c3=(0,E.AH)(["opacity:0;pointer-events:none;"]),d3=(0,E.AH)(["opacity:1;pointer-events:auto;"]),CX=E.Ay.li.withConfig({displayName:"styles__StyledComboItem",componentId:"sc-5qllct-1"})(["width:187px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;.img-wrapper{width:187px;height:187px;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:12px;border:1px solid ",";outline:1px solid transparent;overflow:hidden;img{max-width:100%;max-height:100%;pointer-events:none;}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";.check{.ant-checkbox .ant-checkbox-inner{width:14px;height:14px;}.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner{border-color:",";}.ant-checkbox-checked .ant-checkbox-inner,&.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{border-color:",";background:",";}.ant-checkbox .ant-checkbox-inner:after{top:45%;inset-inline-start:20%;}}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}}}}.go-detail{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;overflow:hidden;background:",";backdrop-filter:blur(4px);",";&:hover,&:active{background:",";}}&.checked{border:1px solid ",";outline:1px solid ",";.operation-box{.left{",";}}}}.template-name{width:100%;padding:0 6px;margin-top:10px;font-size:14px;line-height:20px;text-align:left;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.operation-box{.left,.right{",";}}.go-detail{",";}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,c3,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,c3,e=>e.theme.color_slider_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_text_btn,e=>e.theme.color_slider_hover,c3,e=>e.theme.color_bg_mask,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,d3,e=>e.theme.color_text_L2,d3,d3),wX=E.Ay.li.withConfig({displayName:"styles__StyledSampleDetailItem",componentId:"sc-5qllct-2"})(["display:flex;align-items:center;justify-content:center;width:187px;height:187px;margin-bottom:30px;background:",";border:1px solid ",";border-radius:12px;pointer-events:none;"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),sS=(0,l.memo)(e=>{const{onBack:t}=e,n=(0,a.d4)(cl.wS),r=(0,a.d4)(cl.lb),s=(0,a.d4)(e1.ur),{resources:c,level1:d,level2:p,marketTemplateList:g,resourcesMap:y}=s,w=(0,a.wA)(),_=(0,l.useRef)(null),[j,N]=(0,l.useState)(""),[Z,Q]=(0,l.useState)(!1),[se,ie]=(0,l.useState)(null),he=(0,l.useMemo)(()=>d==="user-widget"?I18N.Popups.my_widgets:d==="org-widget"?I18N.Popups.org_widgets:"",[d]),xe=(0,l.useMemo)(()=>!(d!=null&&d.length)||(j==null?void 0:j.length)>0?[]:d==="user-widget"?n!=null&&n.length?n.map(Cn=>({value:Cn.cid,label:Cn.name})):[]:d==="org-widget"?r!=null&&r.length?r.map(Cn=>({value:Cn.cid,label:Cn.name})):[]:[],[r,n,d,j]),Se=(0,l.useMemo)(()=>{const Cn=c.find(hn=>hn.cid===d);return d==="user-widget"?wy(n):d==="org-widget"?wy(r):Cn?[Cn]:[]},[d,n,r,c]),_e=(0,l.useMemo)(()=>j!=null&&j.length?se||[]:Se.map(Cn=>Cn.children).flat(),[Se,g,j,se]),{checkedSet:De,handleChangeChecked:Je,handleSelectAll:Ne,handleClearAll:pt,handleBySeparately:_t,handleMemberClick:gt,handleAddItem:Ct,handleAddItems:zt,handleOpenPreviewModal:Dt}=(0,_f.m)({templateList:_e,resourcesMap:y,currentResource:null,isFromSameResource:!0,isOrg:d==="org-widget"});(0,l.useEffect)(()=>{var Cn;const hn=((Cn=Se[0])==null?void 0:Cn.cid)||"";w({type:"widget-modal:update:me",payload:{level2:hn}})},[Se]);const sn=(0,l.useCallback)(Cn=>{const{value:hn,index:oa}=Cn;p!==hn&&(setTimeout(()=>{var Ao;if(!_.current)return;const ca=_==null||(Ao=_.current)==null?void 0:Ao.querySelector(".box span.title[data-key="+hn+"]");ca&&_.current.scrollTo(0,ca.offsetTop||0)},200),w({type:"widget-modal:update:me",payload:{level2:hn||""}}))},[p,w]),Rn=(0,l.useCallback)(Cn=>{var hn;const oa=Cn.target.scrollTop,Ao=_==null||(hn=_.current)==null?void 0:hn.querySelectorAll(".box");if(Ao!=null&&Ao.length)for(let ca=0;ca<(Ao==null?void 0:Ao.length);ca++){const va=Ao[ca];if(va&&va.offsetTop<=oa&&va.offsetTop+va.offsetHeight>=oa){const ra=va==null?void 0:va.querySelector("span.title");if(ra){const{key:Jo}=ra==null?void 0:ra.dataset;w({type:"widget-modal:update:me",payload:{level2:Jo}})}break}}},[w]),On=(0,l.useCallback)(async Cn=>{N(Cn)},[N]),Lo=(0,l.useCallback)(async Cn=>{N(Cn),Q(!0),pt()},[Q,N,pt]),Yo=(0,l.useCallback)(()=>{On(""),pt(),ie([]),Q(!1)},[On,Q,pt,ie]);return(0,o.jsxs)(iS,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:j,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:On,onSearch:Lo,onClear:Yo,canClear:!0})}),(0,o.jsx)(hy,{title:he,optionList:xe,value:p,onChange:sn,onBack:t}),j!=null&&j.length?(0,o.jsx)(rS,{isOrg:d==="org-widget",keyword:j,isSearching:Z,checkedSet:De,searchList:se,onUpdateSearchList:ie,onUpdateCheckedSet:Je,onOpenPreviewModal:Dt,onAddItem:Ct}):(0,o.jsx)(o.Fragment,{children:(Se==null?void 0:Se.length)===0?(0,o.jsxs)("div",{className:"empty-container",children:[(0,o.jsx)(Et.C,{name:"left_panel/widgetModal/user_empty_icon",isColorPure:!0}),(0,o.jsx)("span",{children:I18N.LibraryContainer.no_widget_group}),(0,o.jsx)("span",{children:I18N.widgetModal.me.empty_text})]}):(0,o.jsx)("div",{className:"template-main",children:(0,o.jsx)($0.o,{className:m()("template-scroll-container",{"show-footer":(De==null?void 0:De.size)>0}),ref:_,isUpdate:d,onScrollChange:Rn,children:(Cn,hn)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"container has-paddding",children:Se.map((oa,Ao)=>(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title","data-key":oa.cid,children:oa.name}),(0,o.jsx)(fg,{items:oa.children,containerRect:Cn,isVisible:hn,checkedSet:De,onUpdateCheckedSet:Je,onOpenPreviewModal:Dt,onAddItem:Ct})]},oa.cid))}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:_,isAutoHideBar:!0})]})})})}),De.size>0&&(0,o.jsx)(s0.W,{type:"widget",isOnlyShowCreates:!0,checkedSet:De,onBuySeparately:_t,onMemberClick:gt,onSelectAll:Ne,onClearAll:pt,onAddItems:zt})]})});var lS=Object.defineProperty,cS=Object.defineProperties,dS=Object.getOwnPropertyDescriptors,gg=Object.getOwnPropertySymbols,Sy=Object.prototype.hasOwnProperty,Ay=Object.prototype.propertyIsEnumerable,My=(e,t,n)=>t in e?lS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p3=(e,t)=>{for(var n in t||(t={}))Sy.call(t,n)&&My(e,n,t[n]);if(gg)for(var n of gg(t))Ay.call(t,n)&&My(e,n,t[n]);return e},pS=(e,t)=>cS(e,dS(t)),uS=(e,t)=>{var n={};for(var r in e)Sy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&gg)for(var r of gg(e))t.indexOf(r)<0&&Ay.call(e,r)&&(n[r]=e[r]);return n},hS=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=uS(n,["size","spin","style"]);const p=p3(p3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",pS(p3({ref:t,style:p},d),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{filter:"url(#filter0_i_917_142)"},l.createElement("rect",{x:"15.9724",y:"10.438",width:"16",height:"17",rx:"2.5",transform:"rotate(15 15.9724 10.438)",fill:"#6CA6FF"})),l.createElement("g",{filter:"url(#filter1_i_917_142)"},l.createElement("rect",{x:"8.57275",y:"12.459",width:"18",height:"18",rx:"3",fill:"#A069FF"}),l.createElement("path",{d:"M17.5736 21.3018C19.0779 21.3018 20.2974 20.1058 20.2974 18.6304C20.2974 17.155 19.0779 15.959 17.5736 15.959C16.0692 15.959 14.8497 17.155 14.8497 18.6304C14.8497 20.1058 16.0692 21.3018 17.5736 21.3018Z",fill:"url(#paint0_linear_917_142)"}),l.createElement("path",{d:"M21.4187 26.959C22.1266 26.959 22.7169 26.3874 22.5423 25.7146C21.9776 23.5393 19.967 21.9304 17.5732 21.9304C15.1795 21.9304 13.1688 23.5393 12.6042 25.7146C12.4295 26.3874 13.0199 26.959 13.7278 26.959H21.4187Z",fill:"url(#paint1_linear_917_142)"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_i_917_142",x:"11.5725",y:"10.438",width:"20.3547",height:"21.062",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.656413 0 0 0 0 0.791978 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_142"})),l.createElement("filter",{id:"filter1_i_917_142",x:"8.57275",y:"12.459",width:"18.5",height:"18.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_142"})),l.createElement("linearGradient",{id:"paint0_linear_917_142",x1:"17.5732",y1:"16.959",x2:"17.5732",y2:"29.959",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.318914",stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"#E1CFFF"})),l.createElement("linearGradient",{id:"paint1_linear_917_142",x1:"17.5732",y1:"16.959",x2:"17.5732",y2:"29.959",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.318914",stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"#E1CFFF"}))))}),mS=Object.defineProperty,fS=Object.defineProperties,gS=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,ky=Object.prototype.hasOwnProperty,Ey=Object.prototype.propertyIsEnumerable,Iy=(e,t,n)=>t in e?mS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u3=(e,t)=>{for(var n in t||(t={}))ky.call(t,n)&&Iy(e,n,t[n]);if(yg)for(var n of yg(t))Ey.call(t,n)&&Iy(e,n,t[n]);return e},yS=(e,t)=>fS(e,gS(t)),vS=(e,t)=>{var n={};for(var r in e)ky.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yg)for(var r of yg(e))t.indexOf(r)<0&&Ey.call(e,r)&&(n[r]=e[r]);return n},xS=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=vS(n,["size","spin","style"]);const p=u3(u3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",yS(u3({ref:t,style:p},d),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.2427 24.7764C11.2623 24.7758 11.6783 24.7662 12.2701 24.874C11.4919 26.0789 10.9088 27.6449 10.6988 29.6807C10.6683 29.9761 10.7243 30.2551 10.8443 30.499H7.00054C6.38065 30.499 5.86696 29.9913 5.94878 29.377C6.58262 24.6379 11.2264 24.7759 11.2427 24.7764ZM28.7574 24.7754C28.7711 24.775 33.4171 24.6359 34.0513 29.376C34.1335 29.9906 33.6196 30.498 32.9996 30.498H29.1558C29.2756 30.2543 29.3317 29.9758 29.3013 29.6807C29.0913 27.6452 28.5081 26.0788 27.73 24.874C28.3283 24.765 28.7462 24.7751 28.7574 24.7754ZM11.2447 17.9873C12.8494 17.9876 14.1509 19.2888 14.1509 20.8936C14.1507 22.4981 12.8493 23.7986 11.2447 23.7988C9.63996 23.7987 8.33868 22.4982 8.33843 20.8936C8.33843 19.2887 9.6398 17.9874 11.2447 17.9873ZM28.7593 17.9873C30.3641 17.9875 31.6646 19.2887 31.6646 20.8936C31.6644 22.4982 30.364 23.7986 28.7593 23.7988C27.1545 23.7988 25.8533 22.4983 25.8531 20.8936C25.8531 19.2886 27.1544 17.9873 28.7593 17.9873Z",fill:"url(#paint0_linear_917_148)"}),l.createElement("g",{filter:"url(#filter0_i_917_148)"},l.createElement("path",{d:"M20.0053 22.2676C20.0614 22.2659 26.6436 22.0874 27.6059 28.7832C27.7409 29.722 26.9538 30.5 26.0053 30.5H14.0044C13.0561 30.4999 12.2689 29.7219 12.4038 28.7832C13.3703 22.0587 20.0053 22.2676 20.0053 22.2676ZM19.9966 12.5C22.3053 12.5 24.1772 14.3719 24.1772 16.6807C24.1771 18.9893 22.3052 20.8604 19.9966 20.8604C17.6881 20.8602 15.817 18.9892 15.8169 16.6807C15.8169 14.372 17.688 12.5002 19.9966 12.5Z",fill:"url(#paint1_linear_917_148)"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_i_917_148",x:"12.3887",y:"12.5",width:"15.7324",height:"18.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.501244 0 0 0 0 0.844591 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_148"})),l.createElement("linearGradient",{id:"paint0_linear_917_148",x1:"12.9572",y1:"24.8696",x2:"120.097",y2:"-0.197076",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#74D3FE"}),l.createElement("stop",{offset:"1",stopColor:"#1998F1"})),l.createElement("linearGradient",{id:"paint1_linear_917_148",x1:"18.0635",y1:"12.5",x2:"18.4439",y2:"31.1386",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#5BCCFE"}),l.createElement("stop",{offset:"1",stopColor:"#1EA3FF"}))))}),bS=i(83413);const CS=(0,l.memo)(()=>{const e=(0,a.d4)(e1.ur),t=(0,a.d4)(re.PL),n=(0,a.d4)(re.wA),r=t!=null&&t.is_org_project?n==null?void 0:n.cid:"",s=(0,a.wA)(),{level1:c,resources:d}=e,{isLoading:p,initComboSdkStore:g}=(0,bS.x)();(0,l.useEffect)(()=>{(async()=>{await g(!0)})()},[]);const y=(0,l.useMemo)(()=>{const Q=[{label:I18N.Popups.my_widgets,value:"user-widget",icon:(0,o.jsx)(hS,{size:40}),onClick:()=>w("user-widget")},{label:I18N.Popups.org_widgets,value:"org-widget",icon:(0,o.jsx)(xS,{size:40}),onClick:()=>w("org-widget")}];return r?Q:Q.filter(se=>se.value==="user-widget")},[r]),w=(0,l.useCallback)(function(Q){Q===void 0&&(Q=""),s({type:"widget-modal:update:me",payload:{level1:Q,level2:""}})},[s]),_=(0,l.useCallback)(()=>{s({type:"widget-modal:update:me",payload:{level1:"",level2:""}})},[]),j=(0,l.useCallback)(Q=>{s({type:"widget-modal:update:state",payload:{currentResource:Q||null}})},[]),N=(0,l.useCallback)(Q=>{if(!Q)return;let se=[];const ie=new Map;d.forEach(he=>{if(he.cid===Q){const xe={...he,is_purchased:!0};se.push(xe),ie.set(he.cid,xe)}else se.push(he),ie.set(he.cid,he)}),s({type:"widget-modal:update:me",payload:{resources:se,resourcesMap:ie}}),s({type:"entry:resources:update:find:data",payload:{cid:Q,category:Lc.t_}})},[d,s]),Z=(0,l.useCallback)(Q=>{const se=d.map(he=>he.cid===(Q==null?void 0:Q.cid)?Q:he),ie=new Map;se.forEach(he=>ie.set(he.cid,he)),s({type:"widget-modal:update:me",payload:{resources:se,resourcesMap:ie}})},[d,s]);return p?(0,o.jsx)(T0.S,{className:"fill-height"}):c!=null&&c.length?(0,o.jsx)(sS,{onBack:_}):(0,o.jsx)(aS,{cardList:y,onChangeCurrentResource:j,onPaidResource:N,onUpdateTemplateList:Z})}),wS=E.Ay.div.withConfig({displayName:"styles__StyledHistory",componentId:"sc-1157i95-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.history-header{padding:24px 32px 16px;height:auto;border:none;.search-bar{height:42px;padding:4px 20px 4px 12px;border-radius:8px;.clear-icon{margin-right:0;}}}.history-loading{margin-top:170px;}.result{background:none;color:",";padding-left:32px;font-size:14px;}.recent-panel-content{margin-top:0;.combos-container{padding:16px 32px 20px 32px;width:100% !important;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item,.combo-item{margin:0;justify-content:flex-start;.img-wrapper{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}.combo-name,.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}}.empty-template-search-container{padding-top:170px;.center{.pure-svg-icon{width:88px;height:88px;}}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L2),SS=(0,l.memo)(()=>{const e=(0,a.d4)(e1.ri),t=(0,a.wA)(),n=(0,l.useCallback)(r=>{t({type:"widget-modal:update:keyword",payload:r})},[t]);return(0,o.jsx)(wS,{children:(0,o.jsx)(G6.O,{from:"widget-modal",keyword:e,onUpdateKeyword:n})})});var Ty=i(18575),AS=i(65415);const MS=E.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1sr38ez-0"})(["height:100%;width:100%;display:flex;flex-direction:column;header{width:100%;height:32px;flex:0 0 32px;display:flex;align-items:center;padding:0 32px 0 24px;margin:16px 0;justify-content:space-between;.header-left{display:flex;align-items:center;}.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.title{font-family:PingFang SC;font-size:16px;font-weight:500;color:",";margin-right:6px;}.divider{width:1px;height:14px;margin:4px 12px 0 16px;background:",";}.action-item{height:32px;display:flex;align-items:center;color:",";cursor:pointer;.actionIcon{width:16px;height:16px;color:",";margin-right:4px;}.actionValue{font-family:PingFang SC;font-size:12px;}&.like{margin-right:8px;}&.star{.actionIcon{g{path{fill:",";}}}}&:not(.is-active):hover{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}&.is-active{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}}.off-shelve{display:block;padding:4px 6px;font-size:14px;font-family:PingFang SC;color:",";border-radius:6px;background:",";margin-left:12px;}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}}.search-no-results{margin-top:170px;img{margin-top:0;}.tips-link{margin:8px;}}.template-list.template-list-loading-container{gap:20px;padding:16px 32px;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));.template-box{.template-cover{width:100% !important;height:auto !important;aspect-ratio:1 / 1;border-radius:12px;}.template-info{margin-top:10px;}}}.marketTemplate-list{flex:1;width:100%;position:relative;overflow:hidden;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:16px 32px 20px 32px;&.show-footer{height:calc(100% - 68px);}.market-template-masonry-list-container{width:100%;&.combo_group{padding:0;}.market-template-masonry-column.combo_group{grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item{margin-bottom:0;.img-wrapper{width:100%;height:auto;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2),kS=(0,l.memo)(e=>{const{currentResource:t,onUpdateCurrentResources:n,onBack:r}=e,s=(0,a.d4)(cl.AC),c=(0,a.d4)(cl.fK),{cid:d,title:p,liked_count:g,star_count:y,is_liked:w,is_star:_,is_purchased:j,state:N}=t,Z=(0,l.useRef)(null),Q=new Yh(g).getDisplayStr(),se=new Yh(y).getDisplayStr(),ie=s.get(d),he=!ie,[xe,Se]=(0,l.useState)(!1),[_e,De]=(0,l.useState)(null),Je=_e||ie,Ne=Je&&Je.length===0,pt=(0,l.useMemo)(()=>N==="preview_only"&&!j,[N,j]),_t=(0,a.wA)(),{checkedSet:gt,handleChangeChecked:Ct,handleSelectAll:zt,handleClearAll:Dt,handleBySeparately:sn,handleMemberClick:Rn,handleAddItems:On,handleOpenPreviewModal:Lo}=(0,_f.m)({templateList:Je,resourcesMap:c,currentResource:t,isFromSameResource:!0,onUpdateCurrentResources:n}),{handleToggleLike:Yo,handleToggleStar:Cn,handlePaidResources:hn}=Pf({currentResource:t,onUpdateResource:n});(0,l.useEffect)(()=>{(async()=>{if(!((s==null?void 0:s.get(d))||await(0,Ep.Yk)(d))){n(null);return}_t({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[d]}})})()},[s,d,_t]);const oa=(0,l.useCallback)(Ao=>{if(De(null),Dt(),Ao){Se(!0);const ca=new RegExp((0,a3.$)(Ao),"i"),va=ie.filter(ra=>{var Jo;return ca.test((Jo=ra.hotAttr)==null?void 0:Jo.name)});setTimeout(()=>{De(va),Se(!1)},1e3)}},[De,Se,ie,Dt]);return(0,o.jsxs)(MS,{children:[(0,o.jsxs)("header",{children:[(0,o.jsxs)("div",{className:"header-left",children:[(0,o.jsx)(hg,{size:32,className:"arrow-left",onClick:r}),(0,o.jsx)("span",{className:"title",children:p}),t&&(0,o.jsx)(Ty.W,{resources:t}),!pt&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"divider"}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:m()("action-item","like",{"is-active":w}),onClick:Yo,children:[(0,o.jsx)(Et.C,{className:"actionIcon",name:w?"left_panel/widgetModal/community_home/thumb_active":"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:Q})]}),(0,o.jsxs)("div",{className:m()("action-item","star",{"is-active":_}),onClick:Cn,children:[(0,o.jsx)(Et.C,{className:"actionIcon",name:_?"left_panel/widgetModal/community_home/star_active":"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:se})]})]}),pt&&(0,o.jsx)("span",{className:"off-shelve",children:I18N.widgetModal.resources_off_shelve})]}),(0,o.jsx)(vd.A,{className:"search-bar detail-search-bar",value:"",placeholder:I18N.widgetModal.search_bar_placeholder,onSearch:oa})]}),he?(0,o.jsx)(X1.A,{itemWidth:187,itemHeight:187}):xe?(0,o.jsx)(T0.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):Ne?(0,o.jsx)(AS.b,{isNeedLink:!_e}):(0,o.jsx)("div",{className:m()("marketTemplate-list"),children:(0,o.jsx)($0.o,{className:m()("template-scroll-container",{"show-footer":(gt==null?void 0:gt.size)>0}),ref:Z,children:(Ao,ca)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Bl.A,{containerRect:Ao,from:"widget-modal",currentResources:t,marketTemplateItemList:Je,isShowSign:!1,isFloatPreviewMkt:!1,onPaidTemplates:hn,canChecked:!0,checkedSet:gt,onCheckedResource:Ct,onOpenPreviewModal:Lo}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:Z,isAutoHideBar:!0})]})})}),gt.size>0&&(0,o.jsx)(s0.W,{type:"widget",resource:t,checkedSet:gt,onBuySeparately:sn,onMemberClick:Rn,onSelectAll:zt,onClearAll:Dt,onAddItems:On})]})});var Qu=i(38739);const ES=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledWidgetModal",componentId:"sc-1kp1gdn-0"})(["&.mb-widget-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),IS=(0,l.memo)(e=>{const{onClose:t,source:n}=e,[r,s]=(0,l.useState)(n||Qu.l.LargeFactory),c=(0,a.wA)(),d=(0,a.d4)(e1.um),[p,g]=(0,l.useState)(""),y=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.widgetPanel.largeFactoryModal,key:Qu.l.LargeFactory},{label:I18N.LeftSidePanel.widgetPanel.componentsModal,key:Qu.l.ComponentLibrary},{label:I18N.LeftSidePanel.widgetPanel.me,key:Qu.l.Me},{label:I18N.LeftSidePanel.widgetPanel.history,key:Qu.l.History}],[]),w=(0,l.useCallback)(Q=>{c({type:"widget-modal:update:state",payload:{currentResource:Q||null}})},[c]),_=(0,l.useCallback)(Q=>{Q!==r&&(s(Q),w())},[r,w]),j=()=>{t(),c({type:"widget-modal:reset:state"})},N=(0,l.useCallback)(Q=>{g(Q),setTimeout(()=>{g("")},500)},[g]),Z=(0,l.useCallback)(()=>{w(),r===Qu.l.LargeFactory&&N("back")},[r,w,N]);return(0,l.useEffect)(()=>{c({type:"entry:widget-modal:init"})},[c]),(0,o.jsxs)(ES,{isOpen:!0,onClose:j,footer:null,header:null,isUsePortal:!1,className:"mb-widget-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(D2,{items:y,activeKey:r,onTabClick:_}),(0,o.jsx)(Tf,{})]}),(0,o.jsx)("div",{className:"content-wrapper",children:d?(0,o.jsx)(kS,{currentResource:d,onUpdateCurrentResources:w,onBack:Z}):(0,o.jsxs)(o.Fragment,{children:[r===Qu.l.LargeFactory&&(0,o.jsx)(Dw,{detailScrollTopType:p,onUpdateDetailScrollTopType:N}),r===Qu.l.ComponentLibrary&&(0,o.jsx)(Yw,{}),r===Qu.l.Me&&(0,o.jsx)(CS,{}),r===Qu.l.History&&(0,o.jsx)(SS,{})]})})]})}),TS=E.Ay.div.withConfig({displayName:"styles__StyledImageList",componentId:"sc-1dd8nsk-0"})(["width:100%;height:100%;display:flex;flex-direction:column;padding:0 32px;padding-bottom:20px;.list-container{width:100%;display:flex;flex-direction:row;column-gap:20px;grid-template-rows:repeat(auto-fill,minmax(187px,1fr));.waterfall-column{width:100%;display:flex;flex-direction:column;row-gap:20px;}}.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}"],e=>e.theme.color_text_L3),_S=E.Ay.div.withConfig({displayName:"styles__StyledPictureItem",componentId:"sc-1dd8nsk-1"})(["cursor:pointer;position:relative;width:100%;height:","px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;",";img{width:100%;}&::after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:48%;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);opacity:0;}&:hover{.check{visibility:visible;}&::after{opacity:1;}}&.checked{border:1px solid ",";outline:1px solid ",";.check{visibility:visible;}&::after{opacity:1;}}"],e=>e.height,i3.GR,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),PS=E.Ay.div.withConfig({displayName:"styles__StyledStickerItem",componentId:"sc-1dd8nsk-2"})(["width:100%;height:100px;display:flex;align-items:center;justify-content:center;background:",";border-radius:8px;position:relative;cursor:pointer;img{height:48px;}",";&:hover{background:",";.check{visibility:visible;}}&.checked{border:1px solid ",";outline:1px solid ",";background:",";.check{visibility:visible;}}"],e=>e.theme.color_navigation_hover,i3.GR,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_active),LS=E.Ay.button.withConfig({displayName:"styles__StyledUpdateImageButton",componentId:"sc-1dd8nsk-3"})(["display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:32px;background:",";color:",";border:1px solid ",";padding:0 10px;cursor:pointer;&.disabled{cursor:not-allowed;opacity:0.4;}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}svg{margin-right:6px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),NS=e=>/svg$/.test(e.image)?e.image:e.thumb||e.raw||e.image,jS=(0,l.memo)(e=>{const{type:t,asset:n,checkedSet:r,imageWidth:s,onUpdateChecked:c,setAsset:d,onAddItem:p,onGetAssetCid:g}=e;if(!n)return null;const{image:y,group_cid:w,width:_,height:j}=n,N=g(n),Z=(0,l.useMemo)(()=>s*j/_,[s,_,j]),Q=(0,l.useMemo)(()=>NS(n),[n]),se={key:y,height:Z},ie=(0,l.useCallback)(xe=>{var Se;if(r.size>=1){xe.stopPropagation(),xe.preventDefault(),c(N);return}if(MB.global.experienceLoginModalHelper("isSave"))return;(n==null||(Se=n.asset_cid)==null?void 0:Se.includes("findPicture_"))||t?p(N,t||"picture"):p(N)},[c,r,n,N,t]),he=(0,l.useCallback)(xe=>{xe.stopPropagation();const Se=r.has(N);c(N),!Se&&d&&d(n)},[c,r,N,n,d]);return(0,o.jsxs)(_S,{className:m()("pic-item",{checked:r.has(N)}),"data-cid":N,"data-resources-cid":w,...se,onClick:ie,children:[(0,o.jsx)("img",{src:Q}),(0,o.jsx)(r3.A,{className:"check "+((r==null?void 0:r.has(N))&&"is-show"),checked:r.has(N),onChange:he,onClick:xe=>xe.stopPropagation()})]})}),h3=(0,l.memo)(e=>{const{sticker:t,checkedSet:n,onUpdateChecked:r,setAsset:s,onAddItem:c,onMemberClick:d,onGetAssetCid:p}=e;if(!t)return null;const{thumb:g,image:y,name:w}=t,_=(0,a.d4)(re.HW),j=(0,a.d4)(re.wA),N=p(t),Z=(0,l.useMemo)(()=>{const{isMktMember:ie}=(0,Ti.s)(_,j);return ie},[_,j]),Q=(0,l.useCallback)(ie=>{if(n.size>=1){ie.stopPropagation(),ie.preventDefault(),r(N);return}if(!MB.global.experienceLoginModalHelper("isSave")){if(!Z){d&&d();return}c(N,"sticker")}},[Z,r,n,t,N]),se=(0,l.useCallback)(ie=>{ie.stopPropagation();const he=n.has(N);r(N),!he&&s&&s(t)},[r,n,s,t,N]);return(0,o.jsxs)(PS,{className:m()("sticker-item",{checked:n.has(N)}),onClick:Q,children:[(0,o.jsx)("img",{src:g||y,alt:w}),(0,o.jsx)(r3.A,{className:"check",checked:n.has(N),onChange:se,onClick:ie=>ie.stopPropagation()})]})});var DS=Object.defineProperty,OS=Object.defineProperties,RS=Object.getOwnPropertyDescriptors,vg=Object.getOwnPropertySymbols,_y=Object.prototype.hasOwnProperty,Py=Object.prototype.propertyIsEnumerable,Ly=(e,t,n)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m3=(e,t)=>{for(var n in t||(t={}))_y.call(t,n)&&Ly(e,n,t[n]);if(vg)for(var n of vg(t))Py.call(t,n)&&Ly(e,n,t[n]);return e},BS=(e,t)=>OS(e,RS(t)),US=(e,t)=>{var n={};for(var r in e)_y.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vg)for(var r of vg(e))t.indexOf(r)<0&&Py.call(e,r)&&(n[r]=e[r]);return n},FS=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=US(n,["size","spin","style"]);const p=m3(m3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",BS(m3({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1372_207)"},l.createElement("path",{d:"M7.52692 4.11049L6.59763 3.57396C6.23891 3.36686 6.11601 2.90816 6.32311 2.54944C6.53022 2.19073 6.98891 2.06782 7.34763 2.27493L9.94571 3.77493C10.3044 3.98203 10.4273 4.44073 10.2202 4.79944L8.72023 7.39752C8.51312 7.75624 8.05443 7.87915 7.69571 7.67204C7.33699 7.46493 7.21408 7.00624 7.42119 6.64752L8.08097 5.50475C5.22861 6.57938 3.60216 9.66418 4.40764 12.6703C5.26529 15.8711 8.55531 17.7706 11.7561 16.9129C14.3084 16.229 16.0333 13.9986 16.1926 11.5C16.2883 10 17.7596 10.2378 17.6955 11.5C17.5347 14.6618 15.3672 17.4982 12.1443 18.3618C8.14334 19.4339 4.03082 17.0595 2.95875 13.0585C1.95411 9.30914 3.97603 5.46183 7.52692 4.11049Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M14.6259 3.85706C14.9164 3.44699 15.5602 3.6195 15.6067 4.11985L15.7016 5.14205C15.7162 5.29936 15.7988 5.44244 15.9277 5.53374L16.7655 6.12706C17.1756 6.41748 17.0031 7.06133 16.5027 7.1078L15.4805 7.20273C15.3232 7.21734 15.1802 7.29995 15.0889 7.42888L14.4955 8.26666C14.2051 8.67674 13.5613 8.50422 13.5148 8.00387L13.4199 6.98167C13.4053 6.82436 13.3227 6.68129 13.1937 6.58998L12.3559 5.99666C11.9459 5.70624 12.1184 5.0624 12.6187 5.01593L13.6409 4.92099C13.7982 4.90638 13.9413 4.82378 14.0326 4.69485L14.6259 3.85706Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M14.6259 3.85706C14.9164 3.44699 15.5602 3.6195 15.6067 4.11985L15.7016 5.14205C15.7162 5.29936 15.7988 5.44244 15.9277 5.53374L16.7655 6.12706C17.1756 6.41748 17.0031 7.06133 16.5027 7.1078L15.4805 7.20273C15.3232 7.21734 15.1802 7.29995 15.0889 7.42888L14.4955 8.26666C14.2051 8.67674 13.5613 8.50422 13.5148 8.00387L13.4199 6.98167C13.4053 6.82436 13.3227 6.68129 13.1937 6.58998L12.3559 5.99666C11.9459 5.70624 12.1184 5.0624 12.6187 5.01593L13.6409 4.92099C13.7982 4.90638 13.9413 4.82378 14.0326 4.69485L14.6259 3.85706Z",fill:"#A262FF"}),l.createElement("path",{d:"M12.4898 8.78231C12.4597 8.4588 12.0434 8.34725 11.8556 8.6124L11.3708 9.297C11.3118 9.38036 11.2192 9.43377 11.1175 9.44322L10.2822 9.5208C9.95871 9.55085 9.84716 9.96715 10.1123 10.1549L10.7969 10.6398C10.8803 10.6988 10.9337 10.7913 10.9431 10.893L11.0207 11.7283C11.0508 12.0518 11.4671 12.1634 11.6548 11.8982L12.1397 11.2136C12.1987 11.1303 12.2912 11.0769 12.3929 11.0674L13.2282 10.9898C13.5518 10.9598 13.6633 10.5435 13.3982 10.3557L12.7136 9.87087C12.6302 9.81184 12.5768 9.71933 12.5673 9.61761L12.4898 8.78231Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M12.4898 8.78231C12.4597 8.4588 12.0434 8.34725 11.8556 8.6124L11.3708 9.297C11.3118 9.38036 11.2192 9.43377 11.1175 9.44322L10.2822 9.5208C9.95871 9.55085 9.84716 9.96715 10.1123 10.1549L10.7969 10.6398C10.8803 10.6988 10.9337 10.7913 10.9431 10.893L11.0207 11.7283C11.0508 12.0518 11.4671 12.1634 11.6548 11.8982L12.1397 11.2136C12.1987 11.1303 12.2912 11.0769 12.3929 11.0674L13.2282 10.9898C13.5518 10.9598 13.6633 10.5435 13.3982 10.3557L12.7136 9.87087C12.6302 9.81184 12.5768 9.71933 12.5673 9.61761L12.4898 8.78231Z",fill:"#A262FF"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1372_207"},l.createElement("rect",{width:"20",height:"20",rx:"6",fill:"white"}))))});const VS=(0,l.memo)(()=>{const e=(0,a.wA)(),t=(0,l.useCallback)(()=>{e({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),e({type:"image-modal:reset:state"}),e({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:Wt.G.WidgetPanel,defaultTab:1}})},[e]);return(0,o.jsxs)(zS,{onClick:t,children:[(0,o.jsx)("img",{src:"/mb-proto2/images/modal/image_modal/auto_bg_star.png",className:"star"}),(0,o.jsxs)("div",{className:"center",children:[(0,o.jsx)("div",{className:"bg"}),(0,o.jsx)("img",{src:"/mb-proto2/images/modal/image_modal/auto_bg_img.jpg",className:"bg-image"}),(0,o.jsxs)("div",{className:"auto-fill-box",children:[(0,o.jsx)(FS,{size:20}),(0,o.jsx)("span",{children:I18N.imageModal.auto_fill_text})]})]})]})}),zS=E.Ay.div.withConfig({displayName:"AutoImageItem__StyledAutoImageItem",componentId:"sc-1l24nvj-0"})(["width:100%;height:140px;border-radius:8px;background:linear-gradient(180deg,#E4CEFF -32.5%,#EBF5FF 100%);position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;.star{position:absolute;top:0;left:0;width:60px;height:36px;}.center{width:147px;height:86px;border-radius:4px;background-color:#ffffff;box-shadow:0px 0px 0.77px 0px #19191A0F,0px 0.77px 1.55px 0px #19191A0D;position:relative;background-image:linear-gradient(to right,#555557 50%,transparent 50%),linear-gradient(to right,#555557 50%,transparent 50%),linear-gradient(to bottom,#555557 50%,transparent 50%),linear-gradient(to bottom,#555557 50%,transparent 50%);background-size:10px 2px,10px 2px,2px 10px,2px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;border-radius:4px;.bg{position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 25%),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 75%),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 75%);background-size:16px 16px;background-position:0px 0px,0px 8px,8px -8px,-8px 0px;opacity:0.4;}.bg-image{position:absolute;top:13px;left:12px;width:102px;height:60px;border-radius:2px;transition:all 0.2s ease-in-out;}.auto-fill-box{position:absolute;width:78px;height:26px;top:6px;right:-14px;border-radius:6px;background:",";box-shadow:0px 2px 8px 0px #19191A1A,0px 0px 1px 0px #19191A0F;display:flex;align-items:center;padding:0 4px 0 6px;span{font-family:PingFang SC;font-weight:500;font-size:12px;line-height:18px;color:#A262FF;}}}&:hover{.center{.bg-image{left:0;top:0;width:147px;height:86px;border-radius:4px;}}}"],e=>e.theme.color_bg_white),Ny=40,WS=20,HS=300,xg=(0,l.memo)(e=>{const{type:t,isShowAutoFillImage:n=!1,images:r,checkedSet:s,tab:c=0,scrollContainerRef:d,onUpdateChecked:p,setAsset:g,onAddItem:y,onMemberClick:w,onGetAssetCid:_}=e,[j,N]=(0,l.useState)(0),[Z,Q]=(0,l.useState)(Ny),se=(0,l.useRef)(null),ie=(0,l.useRef)(!1),he=(0,l.useMemo)(()=>j>=1400?8:j<1400&&j>1300?7:j<=1300&&j>1200?6:j<=1200&&j>1100?5:(j<=1100,4),[j]),xe=(j-32*2-20*(he-1))/he,Se=(0,l.useMemo)(()=>r.slice(0,Z),[r,Z]),_e=(0,l.useMemo)(()=>{const Ne=Array(he).fill([]).map(()=>[]),pt=Array(he).fill(0);return Se.forEach((_t,gt)=>{const Ct=pt.indexOf(Math.min(...pt));Ne[Ct].push(_t),pt[Ct]+=_t.asset_cid.includes("findSticker_")?100:xe*_t.height/_t.width}),Ne},[xe,he,Se]),De=(0,l.useCallback)(()=>{if(!se.current||ie.current)return;const{scrollTop:Ne,scrollHeight:pt,clientHeight:_t}=se.current;pt-Ne-_t<HS&&Z<r.length&&(ie.current=!0,setTimeout(()=>{Q(Ct=>Math.min(Ct+WS,r.length)),ie.current=!1},100))},[Z,r.length]);(0,l.useEffect)(()=>{const Ne=()=>{if(!se.current)return;const _t=se.current.offsetWidth;N(_t)};Ne(),window.addEventListener("resize",Ne);const pt=d==null?void 0:d.current;return pt&&pt.addEventListener("scroll",De),()=>{window.removeEventListener("resize",Ne),pt&&pt.removeEventListener("scroll",De)}},[d,De]),(0,l.useEffect)(()=>{Q(Ny),se.current&&(se.current.scrollTop=0)},[r,c]);const Je=Ne=>ENV.IS_ON_PREMISES&&!ENV.NO_FEAT_FONT2503?!1:n&&Ne===0;return r!=null&&r.length?(0,o.jsxs)(TS,{ref:se,children:[(0,o.jsx)("div",{className:"list-container",children:_e.map((Ne,pt)=>{var _t;return(0,o.jsxs)("div",{className:"waterfall-column",children:[Je(pt)&&(0,o.jsx)(VS,{}),Ne.map(gt=>{const Ct=_(gt);return gt.asset_cid.includes("findSticker_")?(0,o.jsx)(h3,{sticker:gt,checkedSet:s,onUpdateChecked:p,setAsset:g,onAddItem:y,onMemberClick:w!=null?w:()=>{},onGetAssetCid:_},Ct):(0,o.jsx)(jS,{type:t,asset:gt,checkedSet:s,imageWidth:xe,onUpdateChecked:p,setAsset:g,onAddItem:y,onGetAssetCid:_},Ct)})]},pt+"-"+((_t=Ne[0])==null?void 0:_t.asset_cid)+"-"+c+"-"+xe)})}),Z>=r.length&&(r==null?void 0:r.length)>0&&(0,o.jsx)("span",{className:"search-end",children:I18N.widgetModal.search_end})]}):(0,o.jsx)(O2.H,{type:"image",desc:I18N.LeftSidePanel.modals.not_found})}),qm=e=>e.ui.leftLayout.imageModal.keyword,GS=e=>e.ui.leftLayout.imageModal.image,f3=(0,l.memo)(e=>{const{type:t,isSearching:n,isSearchLoading:r,images:s,checkedSet:c,scrollContainerRef:d,onUpdateChecked:p,setAsset:g,onAddItem:y,onSearch:w,onGetAssetCid:_}=e,j=(0,a.d4)(qm);return(0,l.useEffect)(()=>{j&&w(j)},[n,j,w]),r?(0,o.jsx)(T0.S,{className:"margin-top-170"}):s!=null&&s.length?(0,o.jsx)(xg,{type:t,images:s,checkedSet:c,scrollContainerRef:d,onUpdateChecked:p,setAsset:g,onAddItem:y,onGetAssetCid:_}):(0,o.jsx)(O2.H,{})});var g3=i(88225),Xh=i(33680),Lf=i(92272);const Nf=e=>{let{list:t,isOrg:n=!1,type:r}=e;const s=(0,a.wA)(),[c,d]=(0,l.useState)(new Set),[p,g]=(0,l.useState)(null),y=ie=>ie.cid||ie.id||ie.asset_cid,w=ie=>{const he=new Set(c);he.has(ie)?he.delete(ie):he.add(ie),d(he)},_=(0,l.useCallback)(()=>{if(!t||t.length===0)return;const ie=new Set(t.map(he=>y(he)));d(ie)},[t,d]),j=(0,l.useCallback)(()=>{d(new Set)},[d]),N=()=>{const{checkoutPlace:ie,payEntrance:he}=(0,t0.FS)(Lc.b4),xe={mode:"mat",payEntrance:he,checkoutArea:"proto",checkoutPlace:ie,templateCid:p==null?void 0:p.id,templateName:p==null?void 0:p.name,templateCategory:Lc.b4,templateGroupName:p==null?void 0:p.group_cid};MB.global.popupHelper.chargeAsync(xe)},Z=ie=>{if(!ie||(ie==null?void 0:ie.length)===0)return[];const he=[];return ie.forEach(xe=>{const Se=t.find(Ne=>y(Ne)===xe);if(Se){const Ne=(0,Lf.BL)(Se);let pt={};if(r==="user_asset"){var _e;pt={projectUpperType:r,projectUpperCid:Se.group_cid,itemCid:(_e=Se.cid)!=null?_e:Se.asset_cid}}else if(r==="picture"||r==="sticker"){var De;pt={projectUpperType:"picture",projectUpperCid:(De=Se.cid)!=null?De:Se.asset_cid}}else{var Je;const _t=Se.asset_cid.includes("findPicture_")||Se.asset_cid.includes("findSticker_"),gt=_t?"picture":"user_asset",Ct=_t?Se.asset_cid:Se.group_cid,zt=_t?"":(Je=Se.cid)!=null?Je:Se.asset_cid;pt={projectUpperType:gt,projectUpperCid:Ct,itemCid:zt}}he.push({...Ne,recent:{isRequestRecent:!n,...pt,isTrack:!0}})}}),he};return{checkedSet:c,handleChangeChecked:w,handleSelectAll:_,handleClearChecked:j,asset:p,setAsset:g,handleMemberClick:N,handleAddItem:function(ie,he){if(he===void 0&&(he="user_asset"),!ie)return;const xe=t.find(Se=>y(Se)===ie);xe&&(s({type:"entry:image-panel:create:image:by:click",payload:{asset:xe,isOrg:n,isTrack:!0,type:he}}),s({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),s({type:"image-modal:reset:state"}))},handleAddItems:()=>{if(!t||t.length===0)return;const ie=Array.from(c),he=Z(ie);s({type:"entry:resources:quick:create:template",payload:{data:he}}),s({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),s({type:"image-modal:reset:state"})},handleGetAssetCid:y}},ZS=E.Ay.div.withConfig({displayName:"styles__StyledImage",componentId:"sc-1djzuaf-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;flex:0 0 32px;margin:0 32px 16px 32px;}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding-top:16px;}}"]),KS=(0,l.memo)(()=>{const e=(0,a.d4)(ht.ld),t=(0,a.d4)(ht.oE),[n,r]=(0,l.useState)(!0),[s,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)(null),g=(0,a.d4)(qm),{tab:y}=(0,a.d4)(GS),w=(0,a.wA)(),_=(0,Nl.k)()?0:1,j=(0,l.useRef)(null),[N,Z]=(0,l.useState)(g),[Q,se]=(0,l.useState)(!1);(0,l.useEffect)(()=>{t?r(!1):(r(!0),(0,g3._)().then(Lo=>r(!1)).catch(Lo=>{console.error("download meta.json failed",Lo),r(!1)}))},[t]);const ie=(0,l.useMemo)(()=>e.map(Lo=>{let{imgs:Yo,tab:Cn,name:hn}=Lo;const oa=Yo.map(ra=>(0,Xh.Kb)(Cn,ra)),[Ao,ca]=(0,Xh.SU)(oa);return{imgs:(0,Xh.kN)(Ao,ca),tab:Cn,name:hn[_]}}),[e,_]),he=(0,l.useMemo)(()=>!e||e.length<1?[]:[{key:"all",label:I18N.LeftSidePanel.modals.tab.all}].concat(e.map(Lo=>({key:Lo.hot,label:Lo.name[_]}))),[ie,_]),xe=(0,l.useMemo)(()=>{if(!ie||ie.length<1)return[];const Lo=y===0?ie:[ie[y-1]],Yo=[];return Lo.map(Cn=>Cn.imgs).flat().forEach(Cn=>{Yo.findIndex(oa=>oa.thumb===Cn.thumb)===-1&&Yo.push(Cn)}),Yo},[ie,y,he]),{checkedSet:Se,handleChangeChecked:_e,setAsset:De,handleClearChecked:Je,handleMemberClick:Ne,handleAddItem:pt,handleAddItems:_t,handleGetAssetCid:gt}=Nf({list:d||xe,type:"picture"}),Ct=(0,l.useCallback)(()=>{var Lo;j==null||(Lo=j.current)==null||Lo.scrollTo({top:0,behavior:"smooth"})},[]),zt=(0,l.useCallback)(Lo=>{Z(Lo)},[Z]),Dt=(0,l.useCallback)(async Lo=>{w({type:"image-modal:update:keyword",payload:Lo}),se(!0)},[w,p,Ct]),sn=(0,l.useCallback)(async Lo=>{c(!0);const Yo=await(0,kf.JR)({category:Lc.b4,keyword:Lo,size:20});p(Yo||[]),Je(),Ct(),c(!1)},[c,p,Je,Ct]),Rn=(0,l.useCallback)(Lo=>{y!==Lo&&(w({type:"image-modal:update:image",payload:{tab:Lo}}),Je(),Ct())},[y,w,Ct]),On=(0,l.useCallback)(()=>{zt(""),w({type:"image-modal:update:keyword",payload:""}),p(null),Rn(0),Je(),Ct(),se(!1)},[zt,Rn,p,Ct,se,w]);return t?!e||e.length<1?null:(0,o.jsxs)(ZS,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:N,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:zt,onSearch:Dt,onClear:On,canClear:!0})}),!(N!=null&&N.length)&&(0,o.jsx)("div",{className:"nav-container",children:(0,o.jsx)(ed.eD,{activeIndex:y,onTabChange:Rn,height:32,className:"slide-nav",children:he.map((Lo,Yo)=>{let{key:Cn,label:hn}=Lo;return(0,o.jsx)(ed.nl,{label:hn},Cn)})})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:j,children:(0,o.jsx)($0.A,{className:m()("resource-scrollable-list"),children:Lo=>(0,o.jsx)(o.Fragment,{children:N?(0,o.jsx)(f3,{isSearching:Q,isSearchLoading:s,images:d||[],checkedSet:Se,scrollContainerRef:j,onUpdateChecked:_e,setAsset:De,onAddItem:pt,onSearch:sn,onGetAssetCid:gt}):(0,o.jsx)(xg,{isShowAutoFillImage:!0,images:xe,checkedSet:Se,scrollContainerRef:j,onUpdateChecked:_e,setAsset:De,onAddItem:pt,onGetAssetCid:gt})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:j,isAutoHideBar:!0})]}),Se.size>0&&(0,o.jsx)(s0.W,{type:"image",isOnlyShowCreates:!0,checkedSet:Se,onClearAll:Je,onMemberClick:Ne,onAddItems:_t})]}):(0,o.jsx)(T0.S,{className:"margin-top-170"})}),YS=E.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-bte4oe-0"})(["width:100%;flex:1;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:20px 32px;.sticker-group{width:100%;height:fit-content;display:flex;flex-direction:column;border-radius:12px;background:",";border:1px solid ",";padding:20px;overflow:hidden;&:hover,&.checked{box-shadow:",";}.sticker-group-content{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);column-gap:12px;row-gap:16px;}.sticker-group-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;.left{display:flex;align-items:center;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-right:6px;}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;color:",";cursor:pointer;span{font-family:PingFang SC;font-weight:400;font-size:14px;color:",";}.arrow-right{width:6px;height:10px;margin-left:10px;}}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),XS=(0,l.memo)(e=>{const{stickerList:t,scrollRef:n,setActiveWord:r}=e,[s,c]=(0,l.useState)(1),d=(0,l.useMemo)(()=>t.map(ie=>ie.list).flat(1/0),[t]),{checkedSet:p,handleChangeChecked:g,setAsset:y,handleClearChecked:w,handleMemberClick:_,handleAddItem:j,handleAddItems:N,handleGetAssetCid:Z}=Nf({list:d,type:"sticker"}),Q=(0,l.useMemo)(()=>t.slice(0,s*8),[s,t]),se=X4()(ie=>{const he=ie.target,xe=he.scrollTop,Se=he.scrollHeight,_e=he.getBoundingClientRect().height;if(xe+_e+24>Se){if(s*8>Q.length)return;c(De=>De+1)}},200);return!Q||Q.length<1?null:(0,o.jsxs)(YS,{className:"resource-container",children:[(0,o.jsx)("div",{className:m()("resource-scroll-container",{"show-footer":(p==null?void 0:p.size)>0}),ref:n,onScroll:se,children:(0,o.jsx)($0.A,{className:"resource-scrollable-list",children:ie=>(0,o.jsx)(o.Fragment,{children:Q.map((he,xe)=>{const Se=he.list.map(De=>Z(De)),_e=p.size>0&&Se.some(De=>p.has(De));return(0,o.jsxs)("div",{className:m()("sticker-group",{checked:_e}),children:[(0,o.jsx)("div",{className:"sticker-group-content",children:he.list.slice(0,9).map((De,Je)=>(0,o.jsx)(h3,{sticker:De,checkedSet:p,onUpdateChecked:g,setAsset:y,onAddItem:j,onMemberClick:_,onGetAssetCid:Z},Je))}),(0,o.jsxs)("div",{className:"sticker-group-footer",children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:he.category}),(0,o.jsx)(Os.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(Et.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,o.jsxs)("div",{className:"right",onClick:()=>r(he.category),children:[(0,o.jsx)("span",{children:I18N.Popups.iconCat.All}),(0,o.jsx)(Et.C,{className:"arrow-right",name:"design/arrow/right"})]})]})]},xe)})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:n,isAutoHideBar:!0}),p.size>0&&(0,o.jsx)(s0.W,{type:"sticker",checkedSet:p,onClearAll:w,onMemberClick:_,onAddItems:N})]})}),QS=E.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1agrhr9-0"})(["width:100%;flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden;.back{width:100%;height:64px;display:flex;align-items:center;padding:0 32px;color:",";cursor:pointer;flex:0 0 64px;.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;}img{margin-left:6px;height:16px;}}.resource-container{width:100%;height:calc(100% - 64px);position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;padding:16px 32px 20px 32px;.sticker-item{height:187px;border-radius:10px;img{height:73px;}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),jy=(0,l.memo)(e=>{const{isSearch:t,activeWord:n,list:r,onBack:s}=e,c=(0,l.useRef)(null),{checkedSet:d,setAsset:p,handleChangeChecked:g,handleClearChecked:y,handleSelectAll:w,handleMemberClick:_,handleAddItem:j,handleAddItems:N,handleGetAssetCid:Z}=Nf({list:r,type:"sticker"}),Q=(se,ie)=>ie.offsetWidth<ie.scrollWidth;return(0,o.jsxs)(QS,{children:[n&&n.length>0&&s&&(0,o.jsxs)("div",{className:"back",onClick:s,children:[(0,o.jsx)(hg,{size:32,className:"arrow-left"}),(0,o.jsx)(Os.A,{content:n,direction:"down",isShowTipsByTarget:Q,children:(0,o.jsx)("div",{className:"template-title",children:n})}),(0,o.jsx)("img",{className:"sign",src:"/mb-proto2/images/nav/mt_vip.png"})]}),t&&(0,o.jsxs)("div",{className:"back",children:[(0,o.jsx)(Os.A,{content:I18N.LeftSidePanel.modals.member_only,direction:"down",isShowTipsByTarget:Q,children:(0,o.jsx)("div",{className:"template-title",children:I18N.LeftSidePanel.modals.member_only})}),(0,o.jsx)("img",{className:"sign",src:"/mb-proto2/images/nav/mt_vip.png"})]}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:m()("resource-scroll-container",{"show-footer":(d==null?void 0:d.size)>0}),ref:c,children:(0,o.jsx)($0.A,{className:"resource-scrollable-list",children:se=>(0,o.jsx)(o.Fragment,{children:r.map((ie,he)=>(0,o.jsx)(h3,{sticker:ie,checkedSet:d,onUpdateChecked:g,setAsset:p,onAddItem:j,onMemberClick:_,onGetAssetCid:Z},he))})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:c,isAutoHideBar:!0})]}),d.size>0&&(0,o.jsx)(s0.W,{type:"sticker",checkedSet:d,onClearAll:y,onMemberClick:_,onSelectAll:w,onAddItems:N})]})}),JS=(0,l.memo)(e=>{const t=(0,a.d4)(qm),{isSearching:n}=e,[r,s]=(0,l.useState)(!0),[c,d]=(0,l.useState)(null),p=(0,a.wA)();return(0,l.useEffect)(()=>{(async()=>{if(!t)return;s(!0),await p({type:"image-modal:update:keyword",payload:t});const y=await(0,Go.PK)(t),w=y!=null&&y.length?y.map(_=>{var j;return(0,Xh.nA)((j=_.categories)==null||(j=j[0])==null?void 0:j.name,{name:_.title,url:_.imageUrl,thumb_url:_.thumbUrl,res_id:_.res_id})}):[];d(w),s(!1)})()},[n,t,p]),r?(0,o.jsx)(T0.S,{className:"margin-top-170"}):c!=null&&c.length?(0,o.jsx)(jy,{isSearch:!0,list:c}):(0,o.jsx)(O2.H,{})});var Dy=i(7279);const qS=E.Ay.div.withConfig({displayName:"styles__StyledSticker",componentId:"sc-11g9s88-0"})(["height:100%;width:100%;display:flex;flex-direction:column;"]),$S=(0,l.memo)(()=>{const e=(0,a.d4)(qm),t=(0,a.d4)(ht.p),n=(0,a.d4)(ht.DU),r=(0,a.wA)(),[s,c]=(0,l.useState)(!0),d=(0,l.useRef)(null),[p,g]=(0,l.useState)(null),[y,w]=(0,l.useState)(e),[_,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{n?c(!1):(c(!0),(0,Dy.e)().then(xe=>c(!1)).catch(xe=>{console.error("download meta.json failed",xe),c(!1)}))},[n]);const N=(0,l.useMemo)(()=>!t||t.length<1?[]:t.map(xe=>({...xe,list:xe.list.map(Se=>(0,Xh.nA)(xe.category,Se))})),[t]),Z=(0,l.useCallback)(()=>{var xe;d==null||(xe=d.current)==null||xe.scrollTo({top:0,behavior:"smooth"})},[]),Q=(0,l.useCallback)(xe=>{w(xe)},[w]),se=(0,l.useCallback)(async xe=>{r({type:"image-modal:update:keyword",payload:xe}),j(!0),Z()},[r,j,Z]),ie=(0,l.useCallback)(()=>{Q(""),r({type:"image-modal:update:keyword",payload:""}),Z()},[Q,r]);if(!n)return(0,o.jsx)(T0.S,{className:"fill-height"});if(!t||t.length<1)return null;if(p){var he;const xe=((he=N.find(Se=>Se.category===p))==null?void 0:he.list)||[];return(0,o.jsx)(jy,{list:xe,activeWord:p,onBack:()=>g(null)})}return(0,o.jsxs)(qS,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:y,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:Q,onSearch:se,onClear:ie,canClear:!0})}),y?(0,o.jsx)(JS,{isSearching:_}):(0,o.jsx)(XS,{stickerList:N,scrollRef:d,setActiveWord:g})]})}),eA=E.Ay.div.withConfig({displayName:"styles__StyledAssetsComp",componentId:"sc-9rlqyf-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.resource-scrollable-list{padding-top:16px;}.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}}}"],e=>e.theme.color_text_L3),Oy=(0,l.memo)(e=>{const{isOrg:t}=e,n=(0,a.d4)(cl.uT),r=(0,a.d4)(cl.Qz),s=(0,a.d4)(cl.x1),c=(0,a.d4)(cl.pI),d=(0,a.d4)(qm),p=(0,a.d4)(re.wA),g=(0,a.wA)(),y=(0,l.useRef)(null),[w,_]=(0,l.useState)(!1),[j,N]=(0,l.useState)(null),[Z,Q]=(0,l.useState)(d),[se,ie]=(0,l.useState)(!1),[he,xe]=(0,l.useState)(!0),Se=(0,l.useMemo)(()=>t?s:n,[t,n,s]),_e=(0,l.useMemo)(()=>t?c:r,[t,r,c]),{checkedSet:De,handleChangeChecked:Je,setAsset:Ne,handleClearChecked:pt,handleMemberClick:_t,handleAddItem:gt,handleAddItems:Ct,handleGetAssetCid:zt}=Nf({list:j||_e,isOrg:!!t,type:"user_asset"});(0,l.useEffect)(()=>{const Yo=async()=>{_(!0),await g({type:t?"entry:init:org:image":"entry:init:user:image"}),_(!1)};t?!s&&Yo():!n&&Yo()},[t,n,s,g]);const Dt=(0,l.useCallback)(()=>{var Yo;y==null||(Yo=y.current)==null||Yo.scrollTo({top:0,behavior:"smooth"})},[]),sn=(0,l.useCallback)(Yo=>{Q(Yo)},[Q]),Rn=(0,l.useCallback)(async Yo=>{await g({type:"image-modal:update:keyword",payload:Yo}),ie(!0)},[g,ie]),On=(0,l.useCallback)(async Yo=>{var Cn,hn;xe(!0);const oa={category:Lc.b4,q:Yo,limit:36};t&&p!=null&&p.cid&&(oa.org_cid=p==null?void 0:p.cid);const Ao=await(0,Go.F7)(new URLSearchParams(oa),"");N((t?Ao==null||(Cn=Ao.data)==null?void 0:Cn.org_flat_assets:Ao==null||(hn=Ao.data)==null?void 0:hn.user_flat_assets)||[]),pt(),Dt(),xe(!1)},[N,pt,Dt,t,p]),Lo=(0,l.useCallback)(()=>{sn(""),g({type:"image-modal:update:keyword",payload:""}),N(null),Dt()},[sn,N]);return Se?(0,o.jsxs)(eA,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:Z,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:sn,onSearch:Rn,onClear:Lo,canClear:!0})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:y,children:(0,o.jsx)($0.A,{className:m()("resource-scrollable-list"),children:Yo=>(0,o.jsx)(o.Fragment,{children:Z?(0,o.jsx)(f3,{type:"user_asset",isSearching:se,isSearchLoading:he,images:j||[],checkedSet:De,scrollContainerRef:y,onUpdateChecked:Je,setAsset:Ne,onAddItem:gt,onSearch:On,onGetAssetCid:zt}):(0,o.jsx)(xg,{type:"user_asset",images:_e,checkedSet:De,scrollContainerRef:y,onUpdateChecked:Je,setAsset:Ne,onAddItem:gt,onGetAssetCid:zt})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:y,isAutoHideBar:!0})]}),De.size>0&&(0,o.jsx)(s0.W,{type:"image",isOnlyShowCreates:!0,checkedSet:De,onClearAll:pt,onMemberClick:_t,onAddItems:Ct})]}):(0,o.jsx)(T0.S,{className:"fill-height"})}),tA=()=>{const e=(0,a.d4)(ht.oE),t=(0,a.d4)(ht.DU),n=(0,a.d4)(ht.ld),r=(0,a.d4)(ht.p),[s,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)(null),[g,y]=(0,l.useState)(null),[w,_]=(0,l.useState)(!0),j=async()=>{const Q=await(0,Ep.Uy)();Q&&p({assetList:Q.user_assets,pictureList:Q.pictures})};(0,l.useEffect)(()=>{(async()=>{c(!0),await j(),c(!1)})()},[]),(0,l.useEffect)(()=>{(async()=>{await Promise.all([e?null:(0,g3._)(),t?null:(0,Dy.e)()])})()},[e,t]);const N=(0,l.useCallback)(Q=>{_(!0);const se=new RegExp((0,a3.$)(Q),"i"),{assetList:ie,pictureList:he}=d,xe=[];n!=null&&n.length&&n.forEach(_e=>{_e.imgs.forEach(De=>{let[Je,,,Ne]=De;for(const pt of Ne)pt.includes(Q)&&he.includes("findPicture_"+Je)&&xe.push("findPicture_"+Je)})}),r!=null&&r.length&&r.forEach(_e=>{var De;_e==null||(De=_e.list)==null||De.forEach(Je=>{Je!=null&&Je.name.includes(Q)&&he.includes("findSticker_"+(Je==null?void 0:Je.url))&&xe.push("findSticker_"+(Je==null?void 0:Je.url))})});const Se={assetList:ie.filter(_e=>se.test(_e.name)),pictureList:xe};setTimeout(()=>{_(!1),y(Se)},1e3)},[d,n,r,_,y]),Z=(0,l.useCallback)(()=>{y(null)},[y]);return{isLoading:s,recentData:d,isSearchLoading:w,searchRecentData:g,handleSearchData:N,handleClearSearchData:Z}},nA=E.Ay.div.withConfig({displayName:"styles__StyledHistory",componentId:"sc-1xsb24v-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.resource-scrollable-list{padding-top:16px;}}}"]),oA=(0,l.memo)(()=>{const e=(0,a.d4)(qm),t=(0,a.wA)(),n=(0,l.useRef)(null),r=(0,a.d4)(ht.ld),s=(0,a.d4)(ht.p),[c,d]=(0,l.useState)(e),[p,g]=(0,l.useState)(!1),{isLoading:y,recentData:w,isSearchLoading:_,searchRecentData:j,handleSearchData:N,handleClearSearchData:Z}=tA(),Q=Dt=>{if(!Dt)return null;if(Dt.includes("findPicture_")){if(!(r!=null&&r.length))return null;for(const sn of r)for(const Rn of sn.imgs)if("findPicture_"+Rn[0]===Dt)return(0,Xh.Kb)(sn.tab,Rn)}if(Dt.includes("findSticker_")){if(!(s!=null&&s.length))return null;for(const sn of s)for(const Rn of(sn==null?void 0:sn.list)||[])if("findSticker_"+(Rn==null?void 0:Rn.url)===Dt)return(0,Xh.nA)(sn==null?void 0:sn.category,Rn)}return null},se=(0,l.useMemo)(()=>{let Dt=w;if(e!=null&&e.length&&(Dt=j),!Dt)return[];const{assetList:sn,pictureList:Rn}=Dt,On=Rn.map(Lo=>Q(Lo)).filter(Lo=>!!Lo);return[...sn,...On]},[e,j,w]),{checkedSet:ie,handleChangeChecked:he,setAsset:xe,handleClearChecked:Se,handleMemberClick:_e,handleAddItem:De,handleAddItems:Je,handleGetAssetCid:Ne}=Nf({list:se}),pt=(0,l.useMemo)(()=>!se.filter(Rn=>{const On=Ne(Rn);return ie.has(On)}).find(Rn=>{var On;return Rn==null||(On=Rn.asset_cid)==null?void 0:On.includes("findSticker_")}),[ie,se,Ne]),_t=(0,l.useCallback)(()=>{var Dt;n==null||(Dt=n.current)==null||Dt.scrollTo({top:0,behavior:"smooth"})},[]),gt=(0,l.useCallback)(async Dt=>{await t({type:"image-modal:update:keyword",payload:Dt}),g(!0)},[t,g]),Ct=(0,l.useCallback)(async Dt=>{N(Dt),Se(),_t()},[N,Se,_t]),zt=(0,l.useCallback)(()=>{d(""),t({type:"image-modal:update:keyword",payload:""}),Z(),_t(),g(!1)},[d,Z,g,t]);return y?(0,o.jsx)(T0.S,{className:"fill-height"}):(0,o.jsxs)(nA,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:c,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:d,onSearch:gt,onClear:zt,canClear:!0})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:n,children:(0,o.jsx)($0.A,{className:m()("resource-scrollable-list"),children:Dt=>(0,o.jsx)(o.Fragment,{children:c?(0,o.jsx)(f3,{isSearching:p,isSearchLoading:_,images:se,checkedSet:ie,scrollContainerRef:n,onUpdateChecked:he,setAsset:xe,onAddItem:De,onSearch:Ct,onGetAssetCid:Ne}):(0,o.jsx)(xg,{images:se,checkedSet:ie,scrollContainerRef:n,onUpdateChecked:he,setAsset:xe,onAddItem:De,onGetAssetCid:Ne})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:n,isAutoHideBar:!0})]}),ie.size>0&&(0,o.jsx)(s0.W,{type:"image",isOnlyShowCreates:pt,checkedSet:ie,onClearAll:Se,onMemberClick:_e,onAddItems:Je})]})});var aA=Object.defineProperty,rA=Object.defineProperties,iA=Object.getOwnPropertyDescriptors,bg=Object.getOwnPropertySymbols,Ry=Object.prototype.hasOwnProperty,By=Object.prototype.propertyIsEnumerable,Uy=(e,t,n)=>t in e?aA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y3=(e,t)=>{for(var n in t||(t={}))Ry.call(t,n)&&Uy(e,n,t[n]);if(bg)for(var n of bg(t))By.call(t,n)&&Uy(e,n,t[n]);return e},sA=(e,t)=>rA(e,iA(t)),lA=(e,t)=>{var n={};for(var r in e)Ry.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&bg)for(var r of bg(e))t.indexOf(r)<0&&By.call(e,r)&&(n[r]=e[r]);return n},cA=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=lA(n,["size","spin","style"]);const p=y3(y3({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",sA(y3({ref:t,style:p},d),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M14.6673 8.00016C14.6673 7.63196 14.3689 7.3335 14.0007 7.3335C13.6325 7.3335 13.334 7.63196 13.334 8.00016H14.6673ZM8.00065 2.66683C8.36885 2.66683 8.66732 2.36835 8.66732 2.00016C8.66732 1.63197 8.36885 1.3335 8.00065 1.3335V2.66683ZM13.0007 13.3335H3.00065V14.6668H13.0007V13.3335ZM2.66732 13.0002V3.00016H1.33398V13.0002H2.66732ZM13.334 8.00016V13.0002H14.6673V8.00016H13.334ZM3.00065 2.66683H8.00065V1.3335H3.00065V2.66683ZM3.00065 13.3335C2.81656 13.3335 2.66732 13.1843 2.66732 13.0002H1.33398C1.33398 13.9206 2.08017 14.6668 3.00065 14.6668V13.3335ZM13.0007 14.6668C13.9211 14.6668 14.6673 13.9206 14.6673 13.0002H13.334C13.334 13.1843 13.1848 13.3335 13.0007 13.3335V14.6668ZM2.66732 3.00016C2.66732 2.81607 2.81655 2.66683 3.00065 2.66683V1.3335C2.08018 1.3335 1.33398 2.07969 1.33398 3.00016H2.66732Z",fill:"#19191A"}),l.createElement("path",{d:"M2 11.6667L5.56437 8.39936C5.81297 8.17146 6.19263 8.16512 6.4487 8.38462L10.6667 12",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M9.33398 10.3333L10.9252 8.74212C11.1597 8.50755 11.5311 8.48115 11.7966 8.68022L14.0007 10.3333",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M12.334 6V2",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M10.666 3.66667L12.3327 2L13.9993 3.66667",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}))});const dA=(0,l.memo)(e=>{const{isOrg:t}=e,n=(0,a.d4)(re.qv),r=(0,a.wA)(),s=(0,l.useMemo)(()=>t&&!n,[t,n]),c=(0,l.useMemo)(()=>!t||n?"":I18N.pComment.no_permission_contact_administrator,[t,n]),d=(0,l.useCallback)(p=>{s||r({type:"entry:check:asset:auto:to:user:org:group",payload:{isOrg:t}})},[s,t,r]);return(0,o.jsx)(Os.A,{maxWidth:"236px",content:c,direction:"down",children:(0,o.jsxs)(LS,{className:m()("box-item",{disabled:s}),onClick:d,children:[(0,o.jsx)(cA,{size:16}),(0,o.jsx)("p",{children:I18N.LibraryContainer.add_image})]})})});var _0=i(29611);const pA=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledImageModal",componentId:"sc-16bi9qt-0"})(["&.mb-image-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";.right-button{display:flex;align-items:center;column-gap:16px;margin-top:-14px;.vip-button{margin-top:0;}}}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),uA=(0,l.memo)(e=>{const{onClose:t,source:n}=e,[r,s]=(0,l.useState)(n||_0.S.Image),c=(0,a.d4)(re.PL),d=(0,a.d4)(re.wA),p=c!=null&&c.is_org_project?d==null?void 0:d.cid:"",g=(0,a.wA)(),y=(0,l.useMemo)(()=>{let _=[{label:I18N.LeftSidePanel.image,key:_0.S.Image},{label:I18N.LeftSidePanel.image_sticker,key:_0.S.Sticker},{label:I18N.ContextMenu.my_assets,key:_0.S.User},{label:I18N.ContextMenu.org_assets,key:_0.S.Org},{label:I18N.LeftSidePanel.widgetPanel.history,key:_0.S.History}];return ENV.IS_ON_PREMISES&&(_=_.filter(j=>j.key!==_0.S.Sticker)),p?_:_.filter(j=>j.key!==_0.S.Org)},[p]),w=()=>{t(),g({type:"image-modal:reset:state"})};return(0,o.jsxs)(pA,{isOpen:!0,onClose:w,footer:null,header:null,isUsePortal:!1,className:"mb-image-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(D2,{items:y,activeKey:r,onTabClick:s}),(0,o.jsxs)("div",{className:"right-button",children:[[_0.S.User,_0.S.Org].includes(r)&&(0,o.jsx)(dA,{isOrg:r===_0.S.Org}),(0,o.jsx)(Tf,{})]})]}),(0,o.jsxs)("div",{className:"content-wrapper",children:[r===_0.S.Image&&(0,o.jsx)(KS,{}),r===_0.S.Sticker&&(0,o.jsx)($S,{}),r===_0.S.User&&(0,o.jsx)(Oy,{}),r===_0.S.Org&&(0,o.jsx)(Oy,{isOrg:!0}),r===_0.S.History&&(0,o.jsx)(oA,{})]})]})});var hA=i(10429);const mA=E.Ay.div.withConfig({displayName:"styles__StyledIconList",componentId:"sc-n49lge-0"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));grid-template-rows:repeat(auto-fill,minmax(72px,1fr));column-gap:20px;row-gap:20px;padding:0 32px 20px 32px;.icon-item{width:100%;height:100%;aspect-ratio:1 / 1;border-radius:8px;background:",";.library-icon-item{width:24px;height:24px;&.is_multi_color{width:32px;height:32px;}}&:hover{background:",";}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active),v3=(0,l.memo)(e=>{const{isSearchLoading:t,icons:n,checkedSet:r,onUpdateChecked:s,setIcon:c,onShowIcon:d,onAddItem:p}=e,g=(0,a.wA)(),y=(0,a.d4)(re.YY),w=(0,l.useMemo)(()=>n.filter(_=>d?d(_==null?void 0:_.is_color_icon):!0),[n,d]);return t?(0,o.jsx)(T0.S,{className:"margin-top-170"}):w!=null&&w.length?(0,o.jsx)(mA,{className:"icon-list",children:w.map((_,j)=>(0,o.jsx)(hA.A,{index:j,icon:_,isMultiColorIcon:_.is_color_icon,from:"icon-modal",canChecked:!0,checkedSet:r,onUpdateChecked:s,setIcon:c,onAddItem:p,createTemplatesData:y},j))}):(0,o.jsx)(O2.H,{})});var fA=i(62987);const Fy=E.Ay.div.withConfig({displayName:"styles__StyledIconGroupContainer",componentId:"sc-10u2su1-0"})(["&.icon-group-container{width:100%;display:flex;flex-direction:column;border-radius:12px;background:",";border:1px solid ",";padding:20px 20px 0 20px;overflow:hidden;&:hover,&.checked{box-shadow:",";}.icon-list{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(4,1fr);aspect-ratio:6 / 4;gap:12px;padding:0;.icon-item{width:100%;height:100%;aspect-ratio:1 / 1;border-radius:8px;background:",";.library-icon-item{width:24px;height:24px;&.is_multi_color{width:32px;height:32px;}}&:hover,&.checked{background:",";}}}.icon-group-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 0;cursor:pointer;.left{display:flex;align-items:center;height:24px;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-right:6px;}.mat-member{width:12px;height:12px;}.sign-box{display:flex;align-items:center;margin-left:6px;height:16px;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}.circle{width:2px;height:2px;border-radius:100%;background:",";margin:0 7px;}}.star{display:none;&.isStarred{display:flex;}}}.right{display:flex;align-items:center;color:",";cursor:pointer;span{font-family:PingFang SC;font-weight:400;font-size:14px;color:",";}.arrow-right{width:6px;height:10px;margin-left:10px;}}}&:hover{.icon-group-footer{.left{.star{display:flex;}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),gA=(0,l.memo)(e=>{const{label:t,isMultiColorIcon:n}=e,r=n&&!ENV.IS_ON_PREMISES;return(0,o.jsxs)(Fy,{className:"icon-group-container",children:[(0,o.jsx)("div",{className:"icon-list",children:[...Array(24).keys()].map(s=>(0,o.jsx)("div",{className:"icon-item"}))}),(0,o.jsx)("div",{className:"icon-group-footer",children:(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:t}),r&&(0,o.jsx)(Os.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(Et.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]})})]})}),Vy=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(0),{label:r,icons:s,groupName:c,checkedSet:d,isMultiColorIcon:p=!1,multiColorIconObj:g,isStar:y,onUpdateChecked:w,setIcon:_,onGotoDetail:j,onShowIcon:N,onAddItem:Z,showStar:Q=!1,onStartTemplates:se}=e,ie=p&&!ENV.IS_ON_PREMISES;(0,l.useEffect)(()=>{const Se=()=>{const _e=document.querySelector(".mb-icon-modals");_e&&n(_e==null?void 0:_e.offsetWidth)};return Se(),window.addEventListener("resize",Se),()=>window.removeEventListener("resize",Se)},[]);const he=(0,l.useMemo)(()=>{const Se=s.map(_e=>{const De=c==="history"?!!(g&&_e!=null&&_e.groupCid&&g[_e==null?void 0:_e.groupCid]):p;return{..._e,is_color_icon:De}});return N?Se.filter(_e=>N(_e==null?void 0:_e.is_color_icon)):Se},[s,c,g,N]),xe=(0,l.useMemo)(()=>d.size>0&&(he==null?void 0:he.length)&&(he==null?void 0:he.slice(0,24).some(Se=>d.has(Se.id))),[he,d]);return s!=null&&s.length?(0,o.jsxs)(Fy,{className:m()("icon-group-container",{checked:xe}),children:[(0,o.jsx)(v3,{icons:he==null?void 0:he.slice(0,24),checkedSet:d,onUpdateChecked:w,setIcon:_,onAddItem:Z}),(0,o.jsxs)("div",{className:"icon-group-footer",onClick:()=>j(),children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:r}),ie&&(0,o.jsx)(Os.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(Et.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})}),Q&&(0,o.jsx)(fA.X,{isStar:y,onClick:se})]}),(he==null?void 0:he.length)>24&&(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)("span",{children:I18N.Popups.iconCat.All}),(0,o.jsx)(Et.C,{className:"arrow-right",name:"design/arrow/right"})]})]})]}):(0,o.jsx)(gA,{label:r,isMultiColorIcon:p,isStar:!0})}),zy=(0,l.memo)(e=>{const{resource:t,checkedSet:n,onUpdateChecked:r,setIcon:s,onGotoDetail:c,onAddItem:d,onUpdateResources:p}=e,g=(0,a.wA)(),y=(0,a.d4)(cl._X),w=(0,a.d4)(cl.IG),[_,j]=(0,l.useState)(t);(0,l.useEffect)(()=>{(async()=>{const{cid:se}=t;if(y.get(se))j(t);else{const he=await(0,Go.yr)(t);if(!he)return;const{iconGroupData:xe,marketTemplate:Se}=he;g({type:"icon-panel:update:icon_library_data_map:for:data",payload:{cid:se,iconGroupData:xe}}),Se&&j(Se)}})()},[t,y]);const N=(0,l.useMemo)(()=>{if(!(_!=null&&_.cid))return[];const{cid:Q,source_upper_cid:se}=_,ie=y.get(Q);return(ie?ie[w]||[]:[]).map(xe=>({...xe,groupCid:se}))},[_,y,w]),{handleToggleStar:Z}=Pf({currentResource:_,onUpdateResource:p});return(0,o.jsx)(Vy,{label:_==null?void 0:_.title,groupName:_==null?void 0:_.source_upper_cid,icons:N,isMultiColorIcon:_.is_color_icon,isStar:_.is_star,checkedSet:n,onUpdateChecked:r,setIcon:s,onGotoDetail:()=>c({marketTemplate:_,icons:N}),onAddItem:d,showStar:!0,onStartTemplates:Z})}),yA=(0,l.memo)(e=>{const t=(0,a.d4)(cl.kU),n=(0,a.d4)(cl.xZ),r=(0,a.d4)(cl.Bu),{recentData:s,page:c,multiColorIconObj:d,checkedSet:p,onUpdateChecked:g,setIcon:y,setDetail:w,onShowIcon:_,onAddItem:j,onUpdateResources:N}=e,Z=(0,l.useMemo)(()=>{var ie,he;if(!(s!=null&&(ie=s.iconItems)!=null&&ie.length))return!1;const xe=s==null||(he=s.iconItems)==null?void 0:he.map(Se=>{const _e=!!(d&&Se!=null&&Se.groupCid&&d[Se==null?void 0:Se.groupCid]);return{...Se,is_color_icon:_e}}).filter(Se=>_?_(Se==null?void 0:Se.is_color_icon):!0);return(xe==null?void 0:xe.length)>0},[s,d,_]),Q=(0,l.useMemo)(()=>{const ie=[];return Z&&ie.push({label:I18N.ColorPanel.history,groupName:"history",icons:s==null?void 0:s.iconItems}),t!=null&&t.length&&ie.push(...t),ie},[Z,s,t,n,r]),se=(0,l.useMemo)(()=>Q.concat(r).filter(xe=>{const Se="groupName"in xe;return xe.groupName==="history"?!0:_(Se?xe.isMultiColorIcon:xe.is_color_icon)}).slice(0,c*8),[c,Q,r,_]);return(0,o.jsx)("div",{className:"icon-group-list",children:se.map(ie=>"groupName"in ie?(0,o.jsx)(Vy,{label:ie.label,groupName:ie.groupName,icons:ie.icons,isMultiColorIcon:ie.isMultiColorIcon,checkedSet:p,multiColorIconObj:d,onUpdateChecked:g,setIcon:y,onGotoDetail:()=>w(ie),onShowIcon:_,onAddItem:j}):"cid"in ie?(0,o.jsx)(zy,{resource:ie,checkedSet:p,onUpdateChecked:g,setIcon:y,onGotoDetail:he=>w(he),onAddItem:j,onUpdateResources:N}):null)})});var Wy=i(72447),x3=i(36050);const vA=E.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1ur4dem-0"})(["display:flex;flex-direction:column;width:100%;height:100%;header{width:100%;height:32px;flex:0 0 32px;display:flex;align-items:center;padding:0 32px 0 24px;margin:16px 0 16px 0;justify-content:space-between;.header-left{display:flex;align-items:center;}.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.title{font-family:PingFang SC;font-size:16px;font-weight:500;color:",";margin-right:6px;}.divider{width:1px;height:14px;margin:4px 12px 0 16px;background:",";}.action-item{height:32px;display:flex;align-items:center;color:",";cursor:pointer;.actionIcon{width:16px;height:16px;color:",";margin-right:4px;}.actionValue{font-family:PingFang SC;font-size:12px;}&.like{margin-right:8px;}&.star{.actionIcon{g{path{fill:",";}}}}&:not(.is-active):hover{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}&.is-active{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}}.resource-container{.resource-scroll-container{padding-top:16px;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),Hy=(0,l.memo)(e=>{const{detail:t,onBack:n,checkedSet:r,multiColorIconObj:s,onUpdateChecked:c,setIcon:d,onAddItem:p,onToggleLike:g,onToggleStar:y,onClearAll:w}=e,[_,j]=(0,l.useState)((t==null?void 0:t.icons)||[]),N=(0,l.useRef)(null),{cid:Z,title:Q,liked_count:se,star_count:ie,is_liked:he,is_star:xe}=(t==null?void 0:t.marketTemplate)||{title:t==null?void 0:t.label},Se=new Yh(se).getDisplayStr(),_e=new Yh(ie).getDisplayStr(),[De,Je]=(0,l.useState)(!1),[Ne,pt]=(0,l.useState)(null),_t=(0,l.useMemo)(()=>{var Dt;const{groupName:sn}=t,Rn="groupName"in t?t.isMultiColorIcon:t==null||(Dt=t.marketTemplate)==null?void 0:Dt.is_color_icon;return _.map(On=>{const Lo=sn==="history"?!!(s&&On!=null&&On.groupCid&&s[On==null?void 0:On.groupCid]):Rn;return{...On,is_color_icon:Lo}})},[_,s]),gt=(0,l.useCallback)(Dt=>{if(pt(null),w(),Dt){Je(!0);const sn=(0,x3.s4)(_t,Dt);setTimeout(()=>{pt(sn),Je(!1)},1e3)}},[pt,Je,w,_t]),Ct=Ne||_t,zt=Ct&&Ct.length===0;return(0,o.jsxs)(vA,{children:[(0,o.jsxs)("header",{children:[(0,o.jsxs)("div",{className:"header-left",children:[(0,o.jsx)(hg,{size:32,className:"arrow-left",onClick:n}),(0,o.jsx)("span",{className:"title",children:Q}),(t==null?void 0:t.marketTemplate)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ty.W,{resources:t==null?void 0:t.marketTemplate}),(0,o.jsx)("div",{className:"divider"}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:m()("action-item","like",{"is-active":he}),onClick:g,children:[(0,o.jsx)(Et.C,{className:"actionIcon",name:he?"left_panel/widgetModal/community_home/thumb_active":"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:Se})]}),(0,o.jsxs)("div",{className:m()("action-item","star",{"is-active":xe}),onClick:y,children:[(0,o.jsx)(Et.C,{className:"actionIcon",name:xe?"left_panel/widgetModal/community_home/star_active":"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:_e})]})]})]}),(0,o.jsx)(vd.A,{className:"search-bar detail-search-bar",value:"",placeholder:I18N.iconModal.search_bar_placeholder,onSearch:gt})]}),De?(0,o.jsx)(T0.S,{className:"margin-top-120",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):zt?(0,o.jsx)(O2.H,{}):(0,o.jsx)("div",{className:"resource-container",children:(0,o.jsx)("div",{className:m()("resource-scroll-container",{"show-footer":(r==null?void 0:r.size)>0}),ref:N,children:(0,o.jsx)($0.A,{className:"resource-scrollable-list",children:Dt=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v3,{icons:Ne||_t,checkedSet:r,onUpdateChecked:c,setIcon:d,onAddItem:p}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:N,isAutoHideBar:!0})]})})})})]})}),b3=e=>e.ui.leftLayout.iconModal.keyword,xA=e=>e.ui.leftLayout.iconModal.all,IX=e=>e.ui.leftLayout.iconModal.me,Gy=(0,l.memo)(e=>{const{isSearching:t,isSearchLoading:n,icons:r,checkedSet:s,onUpdateChecked:c,setIcon:d,onShowIcon:p,onAddItem:g,onSearchIcon:y}=e,w=(0,a.d4)(b3);return(0,l.useEffect)(()=>{w&&y(w)},[t,w,y]),(0,o.jsx)(v3,{isSearchLoading:n,icons:r,checkedSet:s,onUpdateChecked:c,setIcon:d,onShowIcon:p,onAddItem:g})}),Zy=e=>{const{resources:t,scrollRef:n,handleGetAllLen:r}=e,s=(0,a.d4)(b3),c=(0,a.wA)(),[d,p]=(0,l.useState)(new Set),[g,y]=(0,l.useState)(null),[w,_]=(0,l.useState)([]),[j,N]=(0,l.useState)(1),[Z,Q]=(0,l.useState)(s),[se,ie]=(0,l.useState)(!1),he=(0,a.d4)(ht.QU),xe=(0,a.d4)(ht.Ct),Se=(sn,Rn)=>{const On=new Set(d),Lo=On.has(sn);Lo?On.delete(sn):On.add(sn),p(On);const Yo=Lo?w.filter(Cn=>Cn.id!==sn):w.concat([Rn]);_(Yo)},_e=(0,l.useCallback)(()=>{p(new Set),_([])},[p,_]),De=()=>{const{checkoutPlace:sn,payEntrance:Rn}=(0,t0.FS)(Lc.C),On={mode:"mat",payEntrance:Rn,checkoutArea:"proto",checkoutPlace:sn,templateCid:(g==null?void 0:g.cid)||(g==null?void 0:g.groupCid),templateName:g==null?void 0:g.id,templateCategory:Lc.C};MB.global.popupHelper.chargeAsync(On)},Je=(0,l.useCallback)(()=>{var sn;n==null||(sn=n.current)==null||sn.scrollTo({top:0,behavior:"smooth"}),N(1)},[n]),Ne=(0,l.useCallback)(sn=>{Q(sn)},[Q]),pt=async sn=>{c({type:"icon-modal:update:keyword",payload:sn}),ie(!0),_e(),Je()},_t=(0,l.useCallback)(()=>{Ne(""),c({type:"icon-modal:update:keyword",payload:""}),ie(!1),Je(),_e()},[Ne,Je,ie,_e,c]),gt=(0,l.useCallback)(X4()(sn=>{const Rn=r(),On=sn.target,Lo=On.scrollTop,Yo=On.scrollHeight,Cn=On.getBoundingClientRect().height;if(Lo+Cn+24>Yo){if(j*8>Rn)return;N(hn=>hn+1)}},200),[N,r]),Ct=sn=>!sn||sn.length===0?[]:sn.map(On=>{const Lo={iconData:{viewBox:On.view_box,path:On.path,iconName:On.iconName,iconSize:xe,iconColor:he||"",svgAttr:{fill:On.fill,stroke:On.stroke},isMultiColorIcon:On.isMultiColorIcon},width:xe,height:xe,display_name:On.iconDisplayName,name:On.iconDisplayName,view_box:On.view_box,left:0,top:0,path:On.path},Yo=(0,Lf.kk)(Lo),Cn=On.id.split("-"),hn=Cn[0],oa=hn==="fa5"?Cn.slice(1,Cn.length-1).join("-"):hn===On.type&&hn!=="\u6570\u5B57"?On.id.slice(On.id.indexOf("-")+1):On.id;return{...Lo,...Yo,fill:{...Yo.fill,solidColor:typeof he=="number"?he:(0,jr.Wi)(he)},mktCid:On.groupCid||void 0,_keywords:On.keywords,_type:On.type,_icon_id:On.id,recent:{isRequestRecent:!0,projectUpperType:"icon_group",projectUpperCid:On.groupCid,itemCid:oa,isTrack:!0}}});return{word:Z,isSearching:se,icons:w,checkedSet:d,handleChangeChecked:Se,handleClearChecked:_e,handleMemberClick:De,icon:g,setIcon:y,handleResetScroll:Je,handleSearchInput:Ne,handleSearch:pt,handleClear:_t,page:j,handleScroll:gt,handleAddItem:(sn,Rn,On,Lo,Yo)=>{c({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:sn,icon:Rn,iconName:On,iconDisplayName:Lo,isMultiColorIcon:Yo,isTrack:!0}}),c({type:"modal:update:state",payload:{iconModal:{isOpen:!1}}}),c({type:"icon-modal:reset:state"})},handleAddItems:()=>{if(!w||w.length===0)return;const sn=Ct(w);c({type:"entry:resources:quick:create:template",payload:{data:sn}}),c({type:"modal:update:state",payload:{iconModal:{isOpen:!1}}}),c({type:"icon-modal:reset:state"})}}};var $m=i(40610),Ky=i(45765),bA=i(49903);const Yy=async e=>{var t;const n={category:Lc.C,q:e,limit:36},r=await(0,Go.F7)(new URLSearchParams(n),"");if(r!=null&&(t=r.data)!=null&&(t=t.icons)!=null&&t.length){const{data:{icons:s},is_purchased:c,is_star:d}=r;return s.map(g=>{const{title:y,data:w,is_color_icon:_}=g;return w.map(j=>({...j,type:bA.I1[y]||y||"svg",id:j.name,groupCid:j.cid,is_color_icon:_,is_purchased:c,is_star:d}))}).flat(1/0)}return[]},CA=()=>{const[e,t]=(0,l.useState)(!1),n=(0,a.d4)(cl.gC),{isExperience:r,isLoggedExperience:s}=(0,a.d4)(re.W4),c=(0,a.d4)(cl.Bu),d=(0,a.wA)(),[p,g]=(0,l.useState)(null),[y,w]=(0,l.useState)(null),[_,j]=(0,l.useState)(!0),[N,Z]=(0,l.useState)([]),Q=(0,l.useCallback)(async()=>{if(c!=null&&c.length)return;let Se=!1;r?s?Se=!0:Se=!1:Se=!0;const{result:{market_templates:_e}}=await(0,Ep.X)("&category="+Lc.C);d({type:"icon-panel:update:state",payload:{resources:_e}})},[d,r,s]),se=(0,l.useCallback)(async()=>{if(n)return;const[Se,_e]=await Promise.all([(0,Ep.$r)(),(0,Ep.Aq)()]),De=Se==null?void 0:Se.icon_groups,Je=(0,$m.D2)(De),Ne=(0,Ky.S$)(Je),pt=(0,Ky.d$)(_e==null?void 0:_e.icon_groups);d({type:"icon-panel:update:state",payload:{hotIconList:Ne,hotColorIconList:pt,isRequestHotIconList:!!(Se&&_e)}})},[d,n]),ie=(0,l.useCallback)(async()=>{const[Se,_e]=await Promise.all([(0,Ep.Uy)(),(0,Ep.PJ)()]);if(Se){const{icon_groups:De}=Se,Je=(0,$m.D2)(De);g({iconItems:Je}),w(_e)}},[g,w]),he=(0,l.useCallback)(async()=>{await Promise.all([se(),Q(),ie()])},[Q,se,ie]),xe=(0,l.useCallback)(async Se=>{j(!0);const _e=await Yy(Se);Z(_e),j(!1)},[j,Z]);return(0,l.useEffect)(()=>{t(!0),he().then(Se=>t(!1)).catch(Se=>{console.log("load hot icons failed",Se),t(!1)})},[]),{isLoading:e,recentData:p,multiColorIconObj:y,handleSearchIcon:xe,isSearchLoading:_,searchIconList:N}},wA=E.Ay.div.withConfig({displayName:"styles__StyledAll",componentId:"sc-1lom938-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:36px;flex:0 0 32px;padding:0 32px;.nav-divider{width:1px;height:16px;background:",";margin:0 24px;}.color-settings{margin:0;padding:0;.left-box{.color-size.has-menu{width:82px;border:1px solid ",";input{text-align:center;padding:0;}&:not(.is-active){input{margin-left:-13px;}}}}&.is-monochrome .color-size{margin-right:24px;}}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{height:100%;.empty-template-search-container{height:100%;}}.icon-group-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:0 32px 20px 32px;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_01),SA=(0,l.memo)(()=>{const e=(0,a.d4)(cl.kU),t=(0,a.d4)(cl.xZ),n=(0,a.d4)(cl.Bu),{tab:r}=(0,a.d4)(xA),s=(0,a.d4)(ht.QU),c=(0,a.d4)(ht.Ct),[d,p]=(0,l.useState)(null),g=(0,a.wA)(),y=(0,l.useRef)(null),{isLoading:w,recentData:_,multiColorIconObj:j,handleSearchIcon:N,isSearchLoading:Z,searchIconList:Q}=CA(),se=(0,l.useCallback)(Jo=>{const $o=n.map(sa=>sa.cid===(Jo==null?void 0:Jo.cid)?Jo:sa);g({type:"icon-panel:update:state",payload:{resources:$o}}),d!=null&&d.marketTemplate&&p({...d,marketTemplate:Jo})},[d,n,p,g]),{handleToggleLike:ie,handleToggleStar:he}=Pf({currentResource:d==null?void 0:d.marketTemplate,onUpdateResource:se}),xe=(0,l.useMemo)(()=>{let Jo=0;if(_){const{iconItems:$o}=_;$o!=null&&$o.length&&Jo++}return e!=null&&e.legth&&(Jo+=e==null?void 0:e.length),t!=null&&t.length&&(Jo+=t==null?void 0:t.length),n&&(Jo+=n==null?void 0:n.length),Jo},[_,e,t,n]),Se=(0,l.useMemo)(()=>{var Jo;if(r===0)return xe;const $o=(_==null||(Jo=_.iconItems)==null?void 0:Jo.length)>0?1:0;if(r===1){const sa=n.filter(da=>!da.is_color_icon);return $o+(sa==null?void 0:sa.length)}if(r===2){const sa=n.filter(da=>da.is_color_icon);return $o+(sa==null?void 0:sa.length)}return 0},[r,xe,_,e,t,n]),{word:_e,isSearching:De,icons:Je,checkedSet:Ne,handleChangeChecked:pt,handleClearChecked:_t,handleMemberClick:gt,setIcon:Ct,handleResetScroll:zt,handleSearchInput:Dt,handleSearch:sn,handleClear:Rn,page:On,handleScroll:Lo,handleAddItem:Yo,handleAddItems:Cn}=Zy({resources:n,scrollRef:y,handleGetAllLen:()=>Se}),hn=(0,l.useMemo)(()=>!Je.find($o=>$o.isMultiColorIcon),[Je]),oa=(0,l.useMemo)(()=>[{key:"all",label:I18N.LeftSidePanel.modals.tab.all},{key:"single",label:I18N.Resources.icon_panel.monochrome},{key:"colors",label:I18N.Resources.icon_panel.color}],[]),Ao=(0,l.useCallback)(Jo=>{r!==Jo&&(g({type:"icon-modal:update:all",payload:{tab:Jo}}),_t(),zt())},[r,g,zt]),ca=(0,l.useCallback)(Jo=>Jo?[0,2].includes(r):[0,1].includes(r),[r]),va=(0,l.useCallback)(()=>{p(null),_t()},[p,_t]),ra=(0,l.useCallback)(Jo=>{p(Jo),_t()},[p,_t]);return w?(0,o.jsx)(T0.S,{className:"fill-height"}):xe?(0,o.jsxs)(wA,{children:[!d&&(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:_e,className:"search-bar",placeholder:I18N.iconModal.search_bar_placeholder,onChange:Dt,onSearch:sn,onClear:Rn,canClear:!0})}),d?(0,o.jsx)(Hy,{detail:d,checkedSet:Ne,multiColorIconObj:j,onUpdateChecked:pt,setIcon:Ct,onBack:va,onAddItem:Yo,onToggleLike:ie,onToggleStar:he,onClearAll:_t}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"nav-container",children:[(0,o.jsx)(ed.eD,{activeIndex:r,onTabChange:Ao,height:32,className:"slide-nav",children:oa.map((Jo,$o)=>{let{key:sa,label:da}=Jo;return(0,o.jsx)(ed.nl,{label:da},sa)})}),(0,o.jsx)("div",{className:"nav-divider"}),(0,o.jsx)(Wy.N,{iconDefaultSize:c,iconDefaultColor:s,isMultiColorIcon:r===2})]}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:m()("resource-scroll-container",{"show-footer":(Ne==null?void 0:Ne.size)>0}),ref:y,onScroll:Lo,children:(0,o.jsx)($0.A,{className:"resource-scrollable-list",children:Jo=>(0,o.jsx)(o.Fragment,{children:_e?(0,o.jsx)(Gy,{isSearching:De,isSearchLoading:Z,icons:Q,checkedSet:Ne,onUpdateChecked:pt,setIcon:Ct,onShowIcon:ca,onAddItem:Yo,onSearchIcon:N}):(0,o.jsx)(yA,{recentData:_,page:On,multiColorIconObj:j,checkedSet:Ne,onUpdateChecked:pt,setIcon:Ct,setDetail:ra,onShowIcon:ca,onAddItem:Yo,onUpdateResources:se})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:y,isAutoHideBar:!0})]})]}),Ne.size>0&&(0,o.jsx)(s0.W,{type:"icon",isOnlyShowCreates:hn,checkedSet:Ne,onClearAll:_t,onMemberClick:gt,onAddItems:Cn})]}):null}),AA=(0,l.memo)(e=>{const{page:t,resources:n,checkedSet:r,onUpdateChecked:s,setIcon:c,setDetail:d,onAddItem:p,onUpdateResources:g}=e,y=(0,l.useMemo)(()=>n.slice(0,t*8),[t,n]);return n!=null&&n.length?(0,o.jsx)("div",{className:"icon-group-list",children:y.map(w=>(0,o.jsx)(zy,{resource:w,checkedSet:r,onUpdateChecked:s,setIcon:c,onGotoDetail:_=>d(_),onAddItem:p,onUpdateResources:g}))}):(0,o.jsx)(O2.H,{type:"common",desc:I18N.iconModal.me.empty_text})}),MA=E.Ay.div.withConfig({displayName:"styles__StyledMe",componentId:"sc-1hph2jc-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:36px;flex:0 0 32px;padding:0 32px;.nav-divider{width:1px;height:16px;background:",";margin:0 24px;}.color-settings{margin:0;padding:0;.left-box{.color-size.has-menu{width:82px;border:1px solid ",";input{text-align:center;padding:0;}&:not(.is-active){input{margin-left:-13px;}}}}&.is-monochrome .color-size{margin-right:24px;}}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{height:100%;.empty-template-search-container{height:100%;margin-top:-36px;}}.icon-group-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:0 32px 20px 32px;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_01),kA=(0,l.memo)(()=>{const e=(0,a.d4)(cl.Bu),t=(0,a.d4)(b3),n=(0,a.d4)(ht.QU),r=(0,a.d4)(ht.Ct),[s,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)([]),[g,y]=(0,l.useState)(null),w=(0,a.wA)(),_=(0,l.useRef)(null),[j,N]=(0,l.useState)(!1),[Z,Q]=(0,l.useState)([]),se=(0,l.useCallback)(async Ao=>{N(!0);const ca=await Yy(Ao);Q(ca),N(!1)},[N,Q]),{word:ie,isSearching:he,icons:xe,checkedSet:Se,handleChangeChecked:_e,handleClearChecked:De,handleMemberClick:Je,setIcon:Ne,handleResetScroll:pt,handleSearchInput:_t,handleSearch:gt,handleClear:Ct,page:zt,handleScroll:Dt,handleAddItem:sn,handleAddItems:Rn}=Zy({resources:d,scrollRef:_,handleGetAllLen:()=>d==null?void 0:d.length}),On=(0,l.useCallback)(Ao=>{const ca=d.map(va=>va.cid===(Ao==null?void 0:Ao.cid)?Ao:va);p(ca),g!=null&&g.marketTemplate&&y({...g,marketTemplate:Ao})},[g,d,y,p]),{handleToggleLike:Lo,handleToggleStar:Yo}=Pf({currentResource:g==null?void 0:g.marketTemplate,onUpdateResource:On}),Cn=(0,l.useMemo)(()=>!xe.find(ca=>ca.isMultiColorIcon),[xe]);(0,l.useEffect)(()=>{(async()=>{const va=(await(0,Ep.YC)(Lc.C)).map(ra=>e.find(Jo=>ra.cid===Jo.cid)).filter(ra=>!!ra);p(va),c(!1)})()},[e]);const hn=(0,l.useCallback)(()=>{y(null),De()},[y,De]),oa=(0,l.useCallback)(Ao=>{y(Ao),De()},[y,De]);return s?(0,o.jsx)(T0.S,{className:"fill-height"}):(0,o.jsxs)(MA,{children:[!g&&(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(vd.A,{value:ie,className:"search-bar",placeholder:I18N.iconModal.search_bar_placeholder,onChange:_t,onSearch:gt,onClear:Ct,canClear:!0})}),g?(0,o.jsx)(Hy,{detail:g,checkedSet:Se,onUpdateChecked:_e,setIcon:Ne,onBack:hn,onAddItem:sn,onToggleLike:Lo,onToggleStar:Yo,onClearAll:De}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:m()("nav-container"),children:(0,o.jsx)(Wy.N,{iconDefaultSize:r,iconDefaultColor:n,isMultiColorIcon:!1})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:m()("resource-scroll-container",{"show-footer":(Se==null?void 0:Se.size)>0}),ref:_,onScroll:Dt,children:(0,o.jsx)($0.A,{className:"resource-scrollable-list",children:Ao=>(0,o.jsx)(o.Fragment,{children:ie?(0,o.jsx)(Gy,{isSearching:he,isSearchLoading:j,icons:Z,checkedSet:Se,onUpdateChecked:_e,setIcon:Ne,onAddItem:sn,onSearchIcon:se}):(0,o.jsx)(AA,{page:zt,resources:d,checkedSet:Se,onUpdateChecked:_e,setIcon:Ne,setDetail:oa,onAddItem:sn,onUpdateResources:On})})})}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:_,isAutoHideBar:!0})]})]}),Se.size>0&&(0,o.jsx)(s0.W,{type:"icon",isOnlyShowCreates:Cn,checkedSet:Se,onClearAll:De,onMemberClick:Je,onAddItems:Rn})]})});var ef=function(e){return e.All="all",e.Star="star",e}(ef||{});const EA=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledIconModal",componentId:"sc-1irsuyr-0"})(["&.mb-icon-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),IA=(0,E.DU)([".--mb--color-panel{z-index:1050;}"]),TA=(0,l.memo)(e=>{const{onClose:t}=e,[n,r]=(0,l.useState)(ef.All),s=(0,a.wA)(),c=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.iconPanel.modals.all,key:ef.All},{label:I18N.LeftSidePanel.iconPanel.modals.star,key:ef.Star}],[]),d=()=>{t(),s({type:"icon-modal:reset:state"})};return(0,o.jsxs)(EA,{isOpen:!0,onClose:d,footer:null,header:null,isUsePortal:!1,className:"mb-icon-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(D2,{items:c,activeKey:n,onTabClick:r}),(0,o.jsx)(Tf,{})]}),(0,o.jsxs)("div",{className:"content-wrapper",children:[n===ef.All&&(0,o.jsx)(SA,{}),n===ef.Star&&(0,o.jsx)(kA,{})]}),(0,o.jsx)(IA,{})]})});class _A extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleCloseModal",t=>{if(typeof t=="string"){this.props.dispatch({type:"modal:reset:popup:state",payload:{modalName:t}});return}this.props.dispatch({type:"modal:reset:state"})}),(0,O.A)(this,"handleCloseLibModal",()=>{this.handleCloseModal("libPanelModal"),this.handleCloseModal("libEditColorModal"),this.handleCloseModal("libEditTextModal"),this.handleCloseModal("libEditAppearModal")})}render(){const{theme:t,rootProject:n,currentOrg:r,personalOrg:s,currentUser:c,linkBackModal:d,comboGroupRemoveModal:p,masterDeleteModal:g,masterCreateModal:y,screenDupModal:w,screenTransferModal:_,screenRemovalModal:j,screenTrashModal:N,couponReceivedModal:Z,mockittGuideModal:Q,previewModal:se,workspaceConfirmAsyncModal:ie,designTransferModal:he,assetGroupRemoveModal:xe,designCreateWithGroupModal:Se,assetCreateWithGroupModal:_e,doNotLeaveProjectModal:De,nestedDynamicModal:Je,secondaryConfirmModal:Ne,preOpenHyperlinkModal:pt,helpCenterModal:_t,rightsAndInterestsModal:gt,orgFullBeyondNotice:Ct,resourcePurchaseModal:zt,resourcesPaidSuccessModal:Dt,imagePreviewModal:sn,previewComboModal:Rn,upgradeComboModal:On,chargeModal:Lo,projectSummaryModal:Yo,flpakSizeWarnModal:Cn,newbieVideoModal:hn,comboUploadModal:oa,chartTableSettingModal:Ao,previewCanvasModal:ca,widgetOperationLayoutModal:va,noticeModal:ra,colorPickerDownloadModal:Jo,mcpTokenModal:$o,mktWMExportModal:sa,mktWMUngroupModal:da,libPanelModal:nr,libEditColorModal:cr,libEditAppearModal:Vr,libEditTextModal:yr,manageStyleLibModal:pi,templateModal:hi,templateFileDetialModal:Hi,resourcesSnapshotPreviewModal:Kr,widgetModal:Gi,imageModal:ec,iconModal:Ul,less12FontSizeTipsModal:gs,canvasConvertedToPixsoModal:Oi,dispatch:wi}=this.props;return(0,o.jsxs)(l.Fragment,{children:[Z.isOpen&&(0,o.jsx)(Y2,{...Z,dispatch:wi}),Q.isOpen&&(0,o.jsx)(Up,{...Q,dispatch:wi}),y.isOpen&&(0,o.jsx)(as,{...y,onClose:()=>this.handleCloseModal("masterCreateModal"),dispatch:wi}),g.isOpen&&(0,o.jsx)(Cd,{...g,onClose:()=>this.handleCloseModal("masterDeleteModal"),dispatch:wi}),p.isOpen&&(0,o.jsx)(lc,{...p,onClose:()=>this.handleCloseModal("comboGroupRemoveModal"),dispatch:wi}),Se.isOpen&&(0,o.jsx)(Wn,{...Se,onClose:()=>this.handleCloseModal("designCreateWithGroupModal"),dispatch:wi}),d.isOpen&&(0,o.jsx)(Do,{...d,theme:t,onClose:()=>this.handleCloseModal("linkBackModal")}),w.isOpen&&(0,o.jsx)(la,{...w,onClose:()=>this.handleCloseModal("screenDupModal"),dispatch:wi}),_.isOpen&&(0,o.jsx)(El,{..._,onClose:()=>this.handleCloseModal("screenTransferModal"),theme:t,rootProject:n,currentUser:c,currentOrg:r,theme:t,dispatch:wi}),j.isOpen&&(0,o.jsx)(Ts,{...j,onClose:()=>{this.handleCloseModal("screenRemovalModal")},dispatch:wi}),N.isOpen&&(0,o.jsx)(cs,{theme:t,...N,onClose:()=>this.handleCloseModal("screenTrashModal"),dispatch:wi,rootProject:n,currentOrg:r,currentUser:c}),se.isOpen&&(0,o.jsx)(Jd,{...se,theme:t,onClose:()=>this.handleCloseModal("previewModal")}),xe.isOpen&&(0,o.jsx)(Rp,{...xe,onClose:()=>this.handleCloseModal("assetGroupRemoveModal"),dispatch:wi}),ie.isOpen&&(0,o.jsx)(Gc,{...ie,onClose:()=>this.handleCloseModal("workspaceConfirmAsyncModal")}),he.isOpen&&(0,o.jsx)(Ba,{...he,onClose:()=>this.handleCloseModal("designTransferModal"),dispatch:wi}),_e.isOpen&&(0,o.jsx)(r1,{..._e,onClose:()=>this.handleCloseModal("assetCreateWithGroupModal")}),De.isOpen&&(0,o.jsx)(l1,{...De,onClose:()=>this.handleCloseModal("doNotLeaveProjectModal")}),Ne.isOpen&&(0,o.jsx)(X2,{...Ne,onClose:()=>this.handleCloseModal("secondaryConfirmModal")}),Je.isOpen&&(0,o.jsx)(Fp,{...Je,onClose:()=>this.handleCloseModal("nestedDynamicModal")}),pt.isOpen&&(0,o.jsx)(tp.A,{...pt,onClose:()=>this.handleCloseModal("preOpenHyperlinkModal")}),_t.isOpen&&(0,o.jsx)(Fr,{zIndex:107,..._t,onClose:()=>this.handleCloseModal("helpCenterModal")}),ra.isOpen&&(0,o.jsx)(Wr,{...ra}),gt.isOpen&&(0,o.jsx)(f0,{...gt,currentOrg:r,currentUser:c,personalOrg:s,onClose:()=>{this.handleCloseModal("rightsAndInterestsModal")}}),Ct.isOpen&&(0,o.jsx)(Ou,{...Ct,onClose:()=>this.handleCloseModal("orgFullBeyondNotice")}),zt.isOpen&&(0,o.jsx)(U1,{...zt,onClose:()=>this.handleCloseModal("resourcePurchaseModal"),dispatch:wi}),Dt.isOpen&&(0,o.jsx)(G0,{...Dt,onClose:()=>this.handleCloseModal("resourcesPaidSuccessModal"),dispatch:wi}),sn.isOpen&&(0,o.jsx)(up.A,{...sn,onClose:()=>{this.handleCloseModal("imagePreviewModal")}}),Rn.isOpen&&(0,o.jsx)(ou,{...Rn,theme:t,onClose:()=>this.handleCloseModal("previewComboModal")}),On.isOpen&&(0,o.jsx)(w2,{...On,onClose:()=>this.handleCloseModal("upgradeComboModal"),dispatch:wi}),Lo.isOpen&&(0,o.jsx)(V1,{...Lo,onClose:()=>{this.handleCloseModal("chargeModal")}}),Yo.isOpen&&(0,o.jsx)(A2,{...Yo,onClose:()=>this.handleCloseModal("projectSummaryModal")}),Cn.isOpen&&(0,o.jsx)(cu,{...Cn,onClose:()=>{this.handleCloseModal("flpakSizeWarnModal")}}),hn.isOpen&&(0,o.jsx)(x1,{...hn,dispatch:wi,onClose:()=>{this.handleCloseModal("newbieVideoModal")}}),oa.isOpen&&(0,o.jsx)(Ji,{...oa,onClose:()=>{this.handleCloseModal("comboUploadModal")}}),Ao.isOpen&&(0,o.jsx)(Ie,{}),ca.isOpen&&(0,o.jsx)(xt,{...ca,theme:t,dispatch:wi,onClose:()=>{this.handleCloseModal("previewCanvasModal")}}),va.isOpen&&(0,o.jsx)(Qn,{...va,dispatch:wi,onClose:()=>{this.handleCloseModal("widgetOperationLayoutModal")}}),Jo.isOpen&&(0,o.jsx)(La,{...Jo,dispatch:wi,onClose:()=>{this.handleCloseModal("colorPickerDownloadModal")}}),$o.isOpen&&(0,o.jsx)(zo.fH,{isOpen:$o.isOpen,theme:t,handleCloseModal:()=>this.handleCloseModal("mcpTokenModal"),handleOpenNotice:Ps=>{let{text:ws,type:Rs}=Ps;return Rs==="warning"&&MB.notice({text:ws,type:Rs})}}),sa.isOpen&&(0,o.jsx)(Dl,{...sa,dispatch:wi,onClose:()=>{this.handleCloseModal("mktWMExportModal")}}),da.isOpen&&(0,o.jsx)(Qs,{...da,dispatch:wi,onClose:()=>{this.handleCloseModal("mktWMUngroupModal")}}),nr.isOpen&&(0,o.jsx)(a2,{...nr,dispatch:wi,onClose:this.handleCloseLibModal}),cr.isOpen&&(0,o.jsx)(jh,{...cr,dispatch:wi,onClose:()=>this.handleCloseModal("libEditColorModal")}),yr.isOpen&&(0,o.jsx)(Km,{...yr,dispatch:wi,onClose:()=>this.handleCloseModal("libEditTextModal")}),Vr.isOpen&&(0,o.jsx)(uu,{...Vr,dispatch:wi,onClose:()=>this.handleCloseModal("libEditAppearModal")}),pi.isOpen&&(0,o.jsx)(I0,{...pi,onClose:()=>this.handleCloseModal("manageStyleLibModal")}),hi.isOpen&&(0,o.jsx)(QC,{...hi,onClose:()=>this.handleCloseModal("templateModal")}),Hi.isOpen&&(0,o.jsx)(hw,{...Hi,onClose:()=>this.handleCloseModal("templateFileDetialModal")}),Kr.isOpen&&(0,o.jsx)(dw,{...Kr,onClose:()=>this.handleCloseModal("resourcesSnapshotPreviewModal")}),Gi.isOpen&&(0,o.jsx)(IS,{...Gi,onClose:()=>this.handleCloseModal("widgetModal")}),ec.isOpen&&(0,o.jsx)(uA,{...ec,onClose:()=>this.handleCloseModal("imageModal")}),Ul.isOpen&&(0,o.jsx)(TA,{...Ul,onClose:()=>this.handleCloseModal("iconModal")}),gs.isOpen&&(0,o.jsx)(Pi,{...gs,dispatch:wi,onClose:()=>this.handleCloseModal("less12FontSizeTipsModal")}),Oi.isOpen&&(0,o.jsx)(Fi,{...Oi,currentOrg:r,currentUser:c,rootProject:n,theme:t,onClose:()=>this.handleCloseModal("canvasConvertedToPixsoModal"),dispatch:wi})]})}}const PA=(0,a.Ng)(e=>{const t=(0,re.PL)(e),n=(0,re.wA)(e),r=(0,re.HW)(e),s=(0,tl.zs)(e),c=(0,q.O4)(e),d=(0,re.XO)(e);return{...s,theme:c,rootProject:t,currentOrg:n,currentUser:r,personalOrg:d}})(_A);var Xy=i(67934),C3=i(89853),Ip=i(39695),LA=i(93e3),tf=i(76613),NA=i(93093);const Q1={from:null,to:null},w3=(e,t,n)=>{const r=LA.L.apply(e,n);return{x:r.x+window.innerWidth/2,y:r.y+e.size.h/2+t}},jA=(e,t,n,r,s,c,d)=>{try{return DA(e,t,n,r,s,c,d)}catch(p){(0,NA.Cp)(p,{level:"debug",fingerprint:["try-find-intAct-connector"],extra:{interaction:t,editingBDanliKey:n,editingBMubanRBRefKey:r}})}return Q1},DA=(e,t,n,r,s,c,d)=>{switch(t.interactionType){case Ip.O2.LinkToCanvas:{let g=t.triggerItemKey;const y=t.targetResCanvasKey;return(0,ui.OO)(g)&&(g=(0,ui.QL)(g).pop()),e.locUpColdCanvasKey(t.triggerItemKey)===t.targetResCanvasKey?Q1:e.locUpRBPageKey(g)!==e.locUpRBPageKey(y)&&e.getHotItem(y).hotAttr.type==="rResCanvas"?Qy(e,g,y,s,c,d):Qh(e,g,y,s,c)}case Ip.O2.OpenOverlay:case Ip.O2.SwapOverlay:{let g=t.triggerItemKey;const y=t.targetOverlayKey;return(0,ui.OO)(g)&&(g=(0,ui.QL)(g).pop()),e.locUpColdCanvasKey(t.triggerItemKey)===t.targetOverlayKey?Q1:e.locUpRBPageKey(g)!==e.locUpRBPageKey(y)&&e.getHotItem(y).hotAttr.type==="rResCanvas"?Qy(e,g,y,s,c,d):Qh(e,g,y,s,c)}case Ip.O2.SetBasketCanvas:{const{triggerItemKey:g,targetBasketKey:y,targetResCanvasKey:w}=t;if(!e.isActiveKey(g))return Q1;if(y!==tf.VZ){const j=e.locUpHotCanvasKey(g)||"",N=e.locUpHotCanvasKey(y)||"";if(j===N&&(!(0,ui.OO)(g)||e.locUpHotBasketKey(g)===n||e.locTopRBMuDaPageKey(g)===r))return Qh(e,(0,ui.OO)(g)?(0,ui.QL)(g).pop():g,(0,ui.OO)(y)?(0,ui.QL)(y).pop():y,s,c)}const _=e.locUpHotBasketKey(g)||"";if(_&&n&&_===y&&_===n&&!tf.yQ.includes(w))return Qh(e,(0,ui.OO)(g)?(0,ui.QL)(g).pop():g,(0,ui.OO)(w)?(0,ui.QL)(w).pop():w,s,c);if(y===tf.VZ){const j=e.findUpHotItemList(g).map(N=>N.key);if(n&&j.includes(n)&&!tf.yQ.includes(w)){const N=(0,ui.OO)(g)?(0,ui.j_)((0,ui.QL)(g).slice(1)):g,Z=(0,ui.OO)(w)?(0,ui.QL)(w).pop():w;return Qh(e,N,Z,s,c,sdkStore.locUpHotBasketKey(w)===n)}if(r&&j.includes(r)&&!tf.yQ.includes(w)){var p;return Qh(e,g,w,s,c,((p=sdkStore.getHotItem(w))==null?void 0:p.sup)===r)}}return Q1}case Ip.O2.ScrollTo:case Ip.O2.SetVisibility:case Ip.O2.Transform:case Ip.O2.SetAnimation:case Ip.O2.SetInputFocus:{const{triggerItemKey:g,targetWidgetKey:y}=t;if(y===tf.rE||y===g)return Q1;if((0,ui.OO)(g)&&(0,ui.OO)(y)){const w=e.locUpHotBasketKey(g),_=e.locUpHotBasketKey(y);return w!==_||w!==n?Q1:Qh(sdkStore,(0,ui.QL)(g).pop(),(0,ui.QL)(y).pop(),s,c)}else return!(0,ui.OO)(g)&&!(0,ui.OO)(y)?Qh(sdkStore,g,y,s,c):Q1}case Ip.O2.CloseOverlay:case Ip.O2.LinkToSourceCanvas:case Ip.O2.OpenExternalUrl:case Ip.O2.SetVariableValue:case Ip.O2.ConditionalBranches:return Q1;default:return null}},Qh=(e,t,n,r,s,c)=>{const d=e.getHotAABB(t),p=e.getHotAABB(n);if((0,Xe.cj)(d,p))return Q1;const[g,y,w,_]=d,[j,N,Z,Q]=p,se={x:.5*(g+w),y:.5*(y+_)},ie={x:.5*(j+Z),y:.5*(N+Q)};let he={...se},xe={...ie};const Se=(ie.x-se.x)/(w-g),_e=(ie.y-se.y)/(_-y);Math.abs(Se)>Math.abs(_e)?he.x+=Math.sign(Se)*(w-g)/2:he.y+=Math.sign(_e)*(_-y)/2;const De=(se.x-ie.x)/(Z-j),Je=(se.y-ie.y)/(Q-N);if(Math.abs(De)>Math.abs(Je)?xe.x+=Math.sign(De)*(Z-j)/2:xe.y+=Math.sign(Je)*(Q-N)/2,((0,Pt.GN)(t,e)||(0,Xe.N0)(p,he))&&(he=null),((0,Pt.GN)(n,e)||(0,Xe.N0)(d,xe))&&(xe=null),!c){if(he){let pt=e.locUpHotCanvasKey(t)||"";pt=(0,ui.OO)(pt)?(0,ui.QL)(pt).pop():pt;const _t=pt&&e.getHotAABB(pt);_t&&!(0,Xe.N0)(_t,he)&&(he=null)}if(xe){let pt=e.locUpHotCanvasKey(n)||"";pt=(0,ui.OO)(pt)?(0,ui.QL)(pt).pop():pt;const _t=pt&&e.getHotAABB(pt);_t&&!(0,Xe.N0)(_t,xe)&&(xe=null)}}if(!he||!xe)return Q1;const Ne=(0,Rd.WO)(r,s.left);return!(0,Xe.N0)(Ne,he)||!(0,Xe.N0)(Ne,xe)?Q1:(he=w3(r,s.top,he),xe=w3(r,s.top,xe),{from:he,to:xe})},Qy=(e,t,n,r,s,c)=>{const d=e.getHotAABB(t);if((0,Pt.GN)(t,e))return Q1;const[g,y,w,_]=d,j={x:.5*(g+w),y:.5*(y+_)};let N={...j},Z=null;const Q=Jy(n,e,c);if(Q){const{x:ie,y:he,width:xe,height:Se}=Q;N={x:j.x-(w-g)/2,y:j.y},Z={x:ie+xe,y:he+Se/2}}else N=Z=null;if(!N||!Z)return Q1;const se=(0,Rd.WO)(r,s.left);return(0,Xe.N0)(se,N)?(N=w3(r,s.top,N),{from:N,to:Z}):Q1},Jy=(e,t,n)=>{var r;if(!e||t.isTrashed(e)||!n)return null;const s=document.querySelector('.rn-list-item[data-cid="'+e+'"]');if(!s)return Jy((r=t.getHotItem(e))==null?void 0:r.sup,t,n);const c=s.getBoundingClientRect();return c.y+c.height>n.y+n.height||c.y<n.y+40?null:c},OA=E.Ay.div.withConfig({displayName:"styles__StyledIntActConnector",componentId:"sc-39jlvd-0"})(["&.link-line{position:absolute;pointer-events:none;z-index:12;.line{pointer-events:auto;position:absolute;transform-origin:0 0;z-index:12;&::before,&::after{content:'';position:absolute;background:",";height:1px;}&::before{left:0;right:","px;}&::after{width:","px;right:0;}}.line-hit{pointer-events:auto;cursor:pointer;position:absolute;transform-origin:0 0;height:6px;z-index:12;top:50%;left:50%;}.handler{pointer-events:auto;position:absolute;z-index:12;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%) rotate(","deg);display:flex;justify-content:center;align-items:center;background:white;border-radius:50%;color:",";border:1px solid currentColor;.svg-icon{width:10px;height:10px;}.icon{font-size:16px;&.icon_gesture_rightClick{.mouseBody{fill:#c8cdd0;}.mouseRightButton{fill:#FFFFFF;stroke:#c8cdd0;}}&.icon_gesture_mouseIn,&.icon_gesture_mouseOut,&.icon_gesture_rightClick{font-size:12px;}}}.target{position:absolute;top:100%;left:100%;margin-left:-7px;margin-top:-3px;background:transparent;width:0;height:0;border:4px solid transparent;border-left:8px solid ",";}&.is-hover,&.active{z-index:13;.line{&::before,&::after{background:",";}}.handler{color:",";.icon_gesture_rightClick{.mouseBody{fill:",";}.mouseRightButton{fill:#FFFFFF;stroke:",";}}}.target{border-left:8px solid ",";}}}"],e=>e.theme.color_interaction_text_area,e=>e.afterWidth,e=>e.afterWidth,e=>360-e.degree,e=>e.theme.color_interaction_text_area,e=>e.theme.color_interaction_text_area,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto);class RA extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleSelect",n=>{const{link:r,dispatch:s}=this.props;s(Jn.R7.command.intActConnectorSelectCommand({interaction:r,e:n})),s({type:"links:singleSelectLink:update",payload:{singleSelectLink:r}})}),(0,O.A)(this,"handleRemove",n=>{n.stopPropagation();const{link:r,dispatch:s}=this.props;s(Jn.R7.command.intActConnectorDeleteCommand({interactionKeyList:[r.key]})),s({type:"entry:refresh:link-list"})}),(0,O.A)(this,"toggleActive",n=>{const{isDragLink:r}=this.props;r||this.setState({isHover:n})}),this.state={isHover:!1}}render(){const{link:t,scale:n,active:r,viewportRect:s,editingPanelCid:c,editingPanelRefPage:d,canvasOffset:p,screenListRect:g}=this.props,y={scale:n/100,offset:p,size:{w:s.width,h:s.height}},{from:w,to:_}=jA(sdkStore,t,c,d,y,s,g);if(!w||!_)return null;const j=Math.floor(Math.min(w.y,_.y)),N=Math.floor(Math.min(w.x,_.x)),Z=Math.abs(w.x-_.x),Q=Math.abs(w.y-_.y),se=(0,C3.FP)(_.x-w.x,_.y-w.y),ie={left:w.x<_.x?0:"100%",top:w.y<_.y?0:"100%",width:(0,C3.Xb)(Z,Q),transform:"rotate("+se+"deg)"},he={width:(0,C3.Xb)(Z,Q),transform:"rotate("+se+"deg) translate(-50%, -50%)"},Se=40*(n/100),_e=De=>{this.toggleActive(!1)};return(0,o.jsxs)(OA,{"data-cid":t.key,className:m()("link-line",{active:r,"is-hover":this.state.isHover}),style:{width:Z,height:Q,transform:"translate("+N+"px,"+j+"px)"},afterWidth:Se,degree:se,children:[(0,o.jsx)("div",{className:"line",style:ie,children:(0,o.jsx)("span",{className:"target"})}),(0,o.jsx)("div",{className:"line-hit",style:he,onClick:this.handleSelect,onMouseEnter:()=>this.toggleActive(!0),onMouseLeave:_e,children:(0,o.jsx)("a",{className:"handler",onClick:this.handleSelect,children:(0,o.jsx)(Et.C,{name:"interaction/trigger/connector/"+t.interactionTrigger,className:"icon_gesture_"+t.interactionTrigger})})})]})}}var BA=i(99566);class UA extends l.PureComponent{render(){const{linkNodeList:t,editingPanelCid:n,editingPanelRefPage:r,show:s,scale:c,activeLinkCid:d,viewportRect:p,linkDisplayIndex:g,canvasOffset:y,screenListRect:w,isDragLink:_,selectedWidgetCid:j,dispatch:N}=this.props;return s?(0,o.jsx)(FA,{id:"mb-linklist",style:{zIndex:4},children:t.map((Z,Q)=>{if(!Z.isUiValid||!Z.isTargetValid||Z.isSupUiInvalid||!(0,BA.Yy)(Z.runtimeNodeTrigger))return null;const se=j===Z.triggerItemKey&&d.includes(Z.key);return(0,o.jsx)(RA,{link:Z,scale:c,active:se,canvasOffset:y,viewportRect:p,editingPanelCid:n,editingPanelRefPage:r,screenListRect:w,isDragLink:_,dispatch:N},Z.key+Z.triggerItemKey)})}):null}}const FA=E.Ay.div.withConfig({displayName:"IntActConnectorSurface__StyledIntActConnectorSurface",componentId:"sc-1apkur8-0"})(["position:absolute;top:0;left:0;&.hide{display:none;}"]);var VA=i(7457);const zA=(0,k.Mz)([Xy.$_,re.X_,re.$S,q.Jv,Xy.gQ,Y.jI,Y.bt,re.ER,re.Xv,Jn.R7.query.getSelectInteractionKeyList,VA.nF,Oe.p$],(e,t,n,r,s,c,d,p,g,y,w,_)=>n?{show:!0,linkNodeList:e,activeLinkCid:y[0]||"",scale:t,viewportRect:n,linkDisplayIndex:r,editingPanelCid:c,editingPanelRefPage:d,canvasOffset:p,screenListRect:g,isDragLink:w,selectedWidgetCid:_[0]||""}:{show:!1}),WA=(0,a.Ng)(e=>zA(e))(UA),HA=E.Ay.div.withConfig({displayName:"styles__StyledLoginBtn",componentId:"sc-xdjurx-0"})(["pointer-events:auto;z-index:4;position:absolute;left:50%;transform:translateX(-50%);top:22px;padding:10px 18px;text-align:center;cursor:pointer;background-color:",";border-radius:2px;box-shadow:0 2px 5px 0 rgba(39,54,78,0.08);white-space:nowrap;color:",";&.warn{background-color:",";}b{text-decoration:underline;color:",";}"],e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_primary_brand01,e=>e.theme.color_bg_white);var qy=i(46407),GA=i(91771);class ZA extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleWindowEventListenerOnbeforeunload",()=>{const{designOptions:t}=this.props,{isLoggedExperience:n}=t;n&&(window.onbeforeunload=()=>{})}),(0,O.A)(this,"onhandleSignin",()=>{MB.global.popupHelper.loginAsync({onConfirm:qy.c,type:"signin"})}),(0,O.A)(this,"onhandleSignup",()=>{MB.global.popupHelper.loginAsync({onConfirm:qy.c,type:"signup"})}),(0,O.A)(this,"handleOpenTeamModal",()=>{const{projectCid:t}=this.props;MB.global.popupHelper.teamSelectModalAsync({projectCid:t,onConfirm:n=>(0,GA.E)(n)})})}componentDidMount(){this.handleWindowEventListenerOnbeforeunload()}componentDidUpdate(){this.props.designOptions.isLoggedExperience&&this.handleWindowEventListenerOnbeforeunload()}render(){const{showPanelEditBreadNav:t,designOptions:n}=this.props;if(t)return null;const{isExperience:r,isLoggedExperience:s}=n;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(HA,{style:{top:48},className:m()({warn:s}),children:[r&&(0,o.jsxs)("div",{children:[I18N.LoginBtn.is_experience_tips,(0,o.jsx)("b",{onClick:this.onhandleSignin,children:I18N.LoginBtn.after_log_in})," ",I18N.LoginBtn.or," ",(0,o.jsx)("b",{onClick:this.onhandleSignup,children:I18N.LoginBtn.sign_in})," ",I18N.LoginBtn.can_save]}),s&&(0,o.jsxs)("div",{children:[I18N.LoginBtn.save_tips_1,(0,o.jsx)("b",{onClick:this.handleOpenTeamModal,children:I18N.LoginBtn.save_tips_2})," ",I18N.LoginBtn.save_tips_3]})]})})}}const KA=(0,k.Mz)([we.r,re.W4,re.PL],(e,t,n)=>{let{isEditingProjectMain:r}=e;return{showPanelEditBreadNav:!r,designOptions:t,projectCid:n==null?void 0:n.cid}}),YA=(0,a.Ng)(e=>KA(e))(ZA);var Cg=i(60690),Jh=i(92114);const XA=E.Ay.aside.withConfig({displayName:"styles__StyledPreferencePanel",componentId:"sc-1p2ci36-0"})(["position:absolute;display:flex;z-index:200;top:50vh;left:50vw;margin-left:-280px;margin-top:-245px;width:520px;overflow:hidden;background:",";border:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);border-radius:10px;color:",";.icon-box{position:absolute;width:24px;height:24px;top:12px;right:10px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:24px;}&:hover{color:",";}&:active{color:",";}}.line{height:1px;background-color:",";&.common-panel{margin:20px 24px 10px;}&.text-panel{margin:8px 24px;}}.left-nav{width:130px;min-width:130px;height:370px;display:flex;background:",";flex-direction:column;border-right:",";font-size:14px;line-height:16px;font-weight:500;padding:10px 8px;.panel-title{height:32px;display:flex;justify-content:center;align-items:center;margin-bottom:6px;}.nav-list{display:flex;flex-direction:column;li{display:flex;height:32px;line-height:32px;padding:0 0 0 26px;cursor:pointer;margin-bottom:6px;border-radius:6px;&:hover{background-color:",";}&.is-active{background-color:",";}& > .icon{margin-right:4px;}& > span{font-size:12px;}.svg-icon{width:20px;color:",";}}}}.right-panel{font-size:12px;line-height:16px;width:100%;.setting-list{margin-left:24px;&:lang(en){margin-left:14px;}&.action,&.text-style-inherit{margin-top:36px;}li{height:40px;display:flex;align-items:center;.setting-item{width:124px;height:16px;display:flex;&:lang(en){margin-right:14px;}.guides-svg{width:16px;margin-left:4px;color:",";cursor:pointer;&:hover{color:",";}}}.setting-option{display:flex;align-items:center;.RadioGroup{.Radio{display:flex;align-items:center;margin-right:",";.Check-state{transform:translateY(0);}}}}}&.theme{margin-top:36px;li{height:42px;.theme-options{display:flex;span{display:flex;align-items:center;justify-content:center;width:60px;height:42px;margin-right:24px;border-radius:6px;cursor:pointer;&:lang(en){margin-right:15px;}svg{width:54px;height:36px;}&.is-selected{border:2px solid ",';}}}}}}}&:lang(ja){width:430px;margin-left:-215px;}.Radio{margin-right:16px;&:lang(en){margin-right:8px;min-width:74px;}}[role~="tooltip"][data-microtip-position="right"]::after{border-radius:4px;left:auto;right:0;top:',";}"],e=>e.theme.color_bg_white,e=>"1px solid "+e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_card,e=>"1px solid "+e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,ENV.IS_MO&&"8px",e=>e.theme.color_text_link_normal,ENV.IS_MO?"calc(100% + 8px)":"calc(100% + 10px)");var Dm=i(83744),wg=i(76199),J1=i(7865);const QA=(0,o.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_16706:4215)",children:[(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"}),(0,o.jsx)("g",{filter:"url(#filter0_f_16706:4215)",children:(0,o.jsx)("circle",{cx:"19.442",cy:"23.713",r:"33.369",transform:"rotate(-.094 19.442 23.713)",fill:"url(#paint0_linear_16706:4215)",fillOpacity:".8"})}),(0,o.jsx)("g",{filter:"url(#filter1_f_16706:4215)",children:(0,o.jsx)("path",{d:"M30.296-20.945l29.166 50.326-58.167.096 29-50.422z",fill:"url(#paint1_linear_16706:4215)",fillOpacity:".7"})}),(0,o.jsx)("g",{filter:"url(#filter2_b_16706:4215)",children:(0,o.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"5",fill:"#fff",fillOpacity:".9"})})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"filter0_f_16706:4215",x:"-30.941",y:"-26.671",width:"100.766",height:"100.767",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"8.507",result:"effect1_foregroundBlur_16706:4215"})]}),(0,o.jsxs)("filter",{id:"filter1_f_16706:4215",x:"-19.802",y:"-42.041",width:"100.36",height:"92.615",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"10.548",result:"effect1_foregroundBlur_16706:4215"})]}),(0,o.jsxs)("filter",{id:"filter2_b_16706:4215",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,o.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4215"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4215",result:"shape"})]}),(0,o.jsxs)("linearGradient",{id:"paint0_linear_16706:4215",x1:"-7.028",y1:"-5.057",x2:"39.549",y2:"57.081",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#6100FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_16706:4215",x1:"30.296",y1:"-20.945",x2:"30.406",y2:"46.221",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0075FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,o.jsx)("clipPath",{id:"clip0_16706:4215",children:(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]}),JA=(0,o.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_16706:4223)",children:[(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#030A12"}),(0,o.jsx)("g",{filter:"url(#filter0_f_16706:4223)",children:(0,o.jsx)("circle",{cx:"25.428",cy:"22.291",r:"36.428",fill:"url(#paint0_linear_16706:4223)"})}),(0,o.jsx)("g",{filter:"url(#filter1_f_16706:4223)",children:(0,o.jsx)("path",{d:"M37.338-23.945l31.75 54.993h-63.5l31.75-54.993z",fill:"url(#paint1_linear_16706:4223)"})}),(0,o.jsx)("g",{filter:"url(#filter2_bi_16706:4223)",children:(0,o.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"4",fill:"#000",fillOpacity:".9"})})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"filter0_f_16706:4223",x:"-31.004",y:"-34.142",width:"112.866",height:"112.866",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"10.002",result:"effect1_foregroundBlur_16706:4223"})]}),(0,o.jsxs)("filter",{id:"filter1_f_16706:4223",x:"-9.415",y:"-38.948",width:"93.507",height:"85",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"7.502",result:"effect1_foregroundBlur_16706:4223"})]}),(0,o.jsxs)("filter",{id:"filter2_bi_16706:4223",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,o.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4223"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4223",result:"shape"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0"}),(0,o.jsx)("feBlend",{in2:"shape",result:"effect2_innerShadow_16706:4223"})]}),(0,o.jsxs)("linearGradient",{id:"paint0_linear_16706:4223",x1:"-3.469",y1:"-9.117",x2:"47.379",y2:"58.72",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#6100FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_16706:4223",x1:"37.338",y1:"-23.945",x2:"37.338",y2:"49.379",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0075FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,o.jsx)("clipPath",{id:"clip0_16706:4223",children:(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]});class qA extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"LINK_OPTIONS",[{label:I18N.PreferenceBar.not_show,value:"0"},{label:I18N.PreferenceBar.lightning,value:"1"},{label:I18N.PreferenceBar.link_line_lightning,value:"2"}]),(0,O.A)(this,"SELECT_OPTIONS",[{label:I18N.PreferenceBar.intersect_select,value:"0"},{label:I18N.PreferenceBar.contain_select,value:"1"}]),(0,O.A)(this,"LINK_TRANSITION_OPTIONS",[{label:I18N.PreferenceBar.link_no_ani,value:"0"},{label:I18N.PreferenceBar.link_move,value:"1"}]),(0,O.A)(this,"NAV_LIST_OPTIONS",[{nav:"common",text:I18N.PreferenceBar.nav_common,icon:"design/preferencePanel/nav/common"},{nav:"actions",text:I18N.PreferenceBar.actions,icon:"design/preferencePanel/nav/actions"},{nav:"text",text:I18N.PreferenceBar.text,icon:"design/preferencePanel/nav/text"}]),(0,O.A)(this,"DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP",{[J1.p9]:Dm.qL.Text,[J1.MD]:Dm.qL.Annotation,[J1.mG]:Dm.qL.Elbow}),(0,O.A)(this,"setElementRef",n=>this.$element=n),(0,O.A)(this,"handTooltip",()=>{const n=this.$element&&this.$element.querySelector(".link-action > label:nth-child(3)");n&&(n.setAttribute("aria-label",I18N.PreferenceBar.link_warn_tips),n.setAttribute("data-microtip-position","right"),n.setAttribute("role","tooltip"))}),(0,O.A)(this,"handleTheme",n=>{const{theme:r}=n.currentTarget.dataset;this.props.dispatch({type:"entry:update:preference",payload:{theme:r}}),this.props.dispatch({type:"entry:init:ruler:canvas"})}),(0,O.A)(this,"handleRulerChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{ruler:n,show_ruler_line:!0}})}),(0,O.A)(this,"handleDragModeChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{show_drag_mode:n}})}),(0,O.A)(this,"handleInheritTextStyleChange",n=>{(0,Dm.SO)(n),this.props.dispatch({type:"entry:update:preference",payload:{inherit_text_style:n}})}),(0,O.A)(this,"handleClosePanel",()=>{this.props.dispatch({type:"preference:open:appearance"})}),(0,O.A)(this,"handleLinkDisplayChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{link_display:Number(n)}}),r({type:"entry:refresh:link-list"})}),(0,O.A)(this,"handleSelectChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{contain_select:!!+n}})}),(0,O.A)(this,"handleStateLinkChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{state_link_default_transition:Number(n)}})}),(0,O.A)(this,"handleOpenOverlayDefaultTransitionChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{open_overlay_default_transition:Number(n)}})}),(0,O.A)(this,"handleSwapOverlayDefaultTransitionChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{swap_overlay_default_transition:Number(n)}})}),(0,O.A)(this,"handlePanelLinkChange",n=>{const{dispatch:r}=this.props;r({type:"entry:update:preference",payload:{panel_link_default_transition:Number(n)}})}),(0,O.A)(this,"handleUseNativeEyedropperChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{use_native_eyedropper:n}})}),(0,O.A)(this,"handleNavList",n=>{const{nav:r}=n.currentTarget.dataset;this.props.dispatch({type:"preference:update:state",payload:{preferenceNav:r}})}),(0,O.A)(this,"handleTextDefaultSetting",(n,r,s)=>{(0,J1.$R)(n,r,s),this.props.dispatch({type:"entry:update:preference",payload:{[n]:JSON.stringify(r)}})}),(0,O.A)(this,"handleTextDefaultSize",(n,r)=>{const{defaultFontSize:s}=this.props;this.handleTextDefaultSetting(J1.Q6,{...(0,J1._0)()[J1.Q6],...s,[n]:Number(r)},()=>{(0,Dm.p_)(this.DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP[n])})}),(0,O.A)(this,"handleTextDefaultFamily",n=>{const{fontWeight:r,fontStyle:s}=n;r&&(n.bold=r==="bold"),s&&(n.italic=s==="italic"),this.handleTextDefaultSetting(J1.RF,n,()=>{(0,Dm.p_)()})}),(0,O.A)(this,"renderCommonPanelElement",()=>{const{theme:n,isRulerShow:r,isDragModeShow:s,isContainSelect:c,linkDisplayIndex:d,useNativeEyedropper:p}=this.props,{LINK_OPTIONS:g,SELECT_OPTIONS:y}=this;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ul",{className:"setting-list theme",children:(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.theme}),(0,o.jsxs)("div",{className:"theme-options",children:[(0,o.jsx)("span",{"data-theme":"light",className:m()({"is-selected":n==="light"}),onClick:this.handleTheme,children:QA}),(0,o.jsx)("span",{"data-theme":"dark",className:m()({"is-selected":n==="dark"}),onClick:this.handleTheme,children:JA})]})]})}),(0,o.jsx)("div",{className:"line common-panel"}),(0,o.jsxs)("ul",{className:"setting-list common",children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:g,value:String(d),onToggle:this.handleLinkDisplayChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.select,(0,o.jsx)(yd.A,{content:I18N.PreferenceBar.tips_for_select,direction:"down",children:(0,o.jsx)(Et.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:y,value:String(+c),onToggle:this.handleSelectChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.scale_length}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:r,onChange:this.handleRulerChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.drag_mode,(0,o.jsx)(yd.A,{content:I18N.PreferenceBar.tips_for_drag_mode,direction:"down",children:(0,o.jsx)(Et.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:s,onChange:this.handleDragModeChange})})]}),(0,ii.uF)()&&(0,ii.b8)()&&(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:"\u53D6\u8272\u5668\u517C\u5BB9\u6A21\u5F0F"}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:p,onChange:this.handleUseNativeEyedropperChange})})]})]})]})}),(0,O.A)(this,"renderActionsPanelElement",()=>{const{stateLinkDefaultTransition:n,panelLinkDefaultTransition:r,openOverlayDefaultTransition:s,swapOverlayDefaultTransition:c}=this.props,{LINK_TRANSITION_OPTIONS:d}=this;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("ul",{className:"setting-list action",children:[(0,o.jsx)("li",{children:(0,o.jsx)("span",{className:"setting-item",style:{fontWeight:500},children:I18N.PreferenceBar.panel_default_ani})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.switch_artboard}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:d,value:String(n),onToggle:this.handleStateLinkChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link_widget_change}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:d,value:String(r),onToggle:this.handlePanelLinkChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.open_overlay}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:d,value:String(s),onToggle:this.handleOpenOverlayDefaultTransitionChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.swap_overlay}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(Ro.A,{className:"actions link-action",size:"small",optionList:d,value:String(c),onToggle:this.handleSwapOverlayDefaultTransitionChange})})]})]})})}),(0,O.A)(this,"renderTextPanelElement",()=>{const{isInheritTextStyle:n,defaultFontFamily:r,defaultFontSize:s}=this.props,{fontFamily:c,fontWeight:d,fontStyle:p}={...(0,J1._0)()[J1.RF],...r},{richText:g,annotation:y,elbow:w}={...(0,J1._0)()[J1.Q6],...s};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ul",{className:"setting-list text-style-inherit",children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.text_style_inherit,(0,o.jsx)(yd.A,{content:I18N.PreferenceBar.tips_for_text_style_inherit,direction:"down",children:(0,o.jsx)(Et.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:n,onChange:this.handleInheritTextStyleChange})})]})}),(0,o.jsx)("div",{className:"line text-panel"}),(0,o.jsxs)("ul",{className:"setting-list font-default-setting",children:[(0,o.jsx)("li",{children:(0,o.jsxs)("span",{className:"setting-item",style:{fontWeight:500},children:[I18N.PreferenceBar.text_default_value,(0,o.jsx)(yd.A,{content:(0,o.jsx)("div",{style:{padding:"8px 10px"},dangerouslySetInnerHTML:{__html:I18N.PreferenceBar.tips_for_text_default_value}}),direction:"down",children:(0,o.jsx)(Et.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_family}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(lh.X,{dispatch:()=>null,wbiVersion:3,fontFamily:c,fontWeight:d,fontStyle:p,onChangeBatch:_=>this.handleTextDefaultFamily(_),positionRelative:{yOffset:114,xOffset:251},subMenuDirection:"left",subMenuLeftOffset:16,isShowFontWeightLabel:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_richText}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:g,handleChange:_=>this.handleTextDefaultSize(J1.p9,_),less12UseTooltip:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_annotation}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:y,handleChange:_=>this.handleTextDefaultSize(J1.MD,_),less12UseTooltip:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_elbow}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:w,handleChange:_=>this.handleTextDefaultSize(J1.mG,_),less12UseTooltip:!0})})]})]})]})}),(0,O.A)(this,"renderRightPanelElement",()=>{const{preferenceNav:n}=this.props;return{common:this.renderCommonPanelElement,actions:this.renderActionsPanelElement,text:this.renderTextPanelElement}[n]()}),this.bindTooltip=!1,this.timer=void 0,this.tmpDefaultFontFamilyMap={}}componentDidUpdate(){this.bindTooltip||(this.handTooltip(),this.bindTooltip=!0)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{isShow:t,preferenceNav:n}=this.props,{NAV_LIST_OPTIONS:r}=this;return t?(0,o.jsxs)(XA,{ref:this.setElementRef,children:[(0,o.jsx)("a",{className:"icon-box",onClick:this.handleClosePanel,children:(0,o.jsx)(Et.C,{className:"times-icon",name:"general/times"})}),(0,o.jsxs)("div",{className:"left-nav",children:[(0,o.jsx)("p",{className:"panel-title",children:I18N.PreferenceBar.favorite_set}),(0,o.jsx)("ul",{className:"nav-list",children:r.map((s,c)=>(0,o.jsxs)("li",{className:m()({"is-active":n===s.nav}),"data-nav":s.nav,onClick:this.handleNavList,children:[(0,o.jsx)(Et.C,{name:s.icon}),(0,o.jsx)("span",{children:s.text})]},c))})]}),(0,o.jsx)("div",{className:"right-panel",children:this.renderRightPanelElement()})]}):null}}const $A=e=>Cg.A[(0,q.O4)(e)].color_btn_secondary_active,eM=(0,k.Mz)([q.vA,q.qT,q.PI,q.eZ,q.O4,$A,q.vZ,q.Jv,re.W4,q.EK,q.Bl,q.D9,q.KV,q.fg,q.AM,re.PL,q.tW,q.AJ],(e,t,n,r,s,c,d,p,g,y,w,_,j,N,Z,Q,se,ie)=>{const{isExperience:he}=g;return{isShow:e,isRulerShow:t,isDragModeShow:n,isInheritTextStyle:r,theme:s,canvasBg:c,isContainSelect:d,linkDisplayIndex:p,isExperience:he,stateLinkDefaultTransition:y,panelLinkDefaultTransition:w,openOverlayDefaultTransition:_,swapOverlayDefaultTransition:j,useNativeEyedropper:Z,preferenceNav:N,rootProject:Q,defaultFontFamily:se,defaultFontSize:ie}}),tM=(0,a.Ng)(e=>eM(e))(qA),nM=E.Ay.div.withConfig({displayName:"styles__StyledLoadingOverlay",componentId:"sc-1mzdeoi-0"})(["position:fixed;z-index:1051;top:0;left:0;bottom:0;right:0;background:",";display:flex;flex-direction:column;justify-content:center;align-items:center;.loading-indicator{margin-top:-20vh;width:70px;height:70px;}.message{margin-top:10px;font-size:16px;line-height:28px;color:",";}"],e=>e.theme.color_loading_mask,e=>e.theme.color_text_L1);function oM(e,t){t===void 0&&(t=document.body);const n=l.useRef(document.createElement("div"));return(0,l.useEffect)(()=>(n.current.id=e,t.appendChild(n.current),()=>{n.current.remove()}),[n,e,t]),n.current}function aM(){const[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)("");MB.safeLoading=c=>{c===!1?t(!1):(r(c),t(!0))},MB.safeDelayLoading=c=>{c===!1?setTimeout(()=>{t(!1)},350):(r(c),t(!0))};const s=oM("mb-loading-overlay");return(0,ds.createPortal)(e&&(0,o.jsxs)(nM,{isOpen:e,onClose:()=>t(!1),children:[(0,o.jsx)(E0.T,{className:"loading-indicator"}),(0,o.jsx)("span",{className:"message",dangerouslySetInnerHTML:{__html:n}})]}),s)}var Ch=i(77938),Wc=i(81973);const rM=E.Ay.div.withConfig({displayName:"styles__StyledSliderBar",componentId:"sc-1bn9bu1-0"})(["display:flex;height:100%;align-items:center;position:relative;padding-left:24px;.tab-item{color:",";font-size:14px;font-family:PingFang SC;cursor:pointer;height:100%;display:flex;align-items:center;&:not(:first-child){margin-left:14px;}&.tab-sel{color:",";font-weight:500;border-top:2px solid rgba(0,0,0,0);border-bottom:2px solid ",";box-sizing:border-box;}}"],e=>e.theme.color_share_switch_sel_color,e=>e.theme.color_text_L1,e=>e.theme.color_text_L0),iM=e=>{let{tabs:t,activeTab:n,className:r,handleChangeTab:s}=e;return(0,o.jsx)(rM,{className:r,children:t.map((c,d)=>(0,o.jsx)("div",{className:m()("tab-item",{"tab-sel":n===c.key}),id:"tab-item-"+d,onClick:()=>s(c.key),children:c.label},d))})},sM=(0,l.memo)(iM);var $s=i(27660);const $y=["Selena Ellen","Wallis Bird","David Robinson","Clare","Paul Harrod","Hugh Johnson","Zora Christopher","Maxwell Raglan","Gabrielle Monroe","Jennifer Belle","Nelly Jefferson","Helen","Tony Stark","Steve Rogers","Thor","Bruce Banner","Natasha Romanoff","Clint Barton","James Rhodes","Scott Lang","Carol Danvers","Harold Hogan","Stephen Strange","Peter Parker","Wanda Maximoff","Sam Wilson","Bucky Barnes","Peter Quill","Nick Fury","Loki","Gamora","Thanos"],lM=["\u738B\u6CFD","\u5B59\u5FC6\u67AB","\u738B\u4E50\u5EB7","\u5468\u4E50\u5FC3","\u738B\u7B11\u5929","\u80E1\u5141","\u738B\u6F2B","\u8D75\u96E8","\u674E\u4E66\u6613","\u674E\u5929\u6CFD","\u674E\u6021\u60A6","\u6F58\u590F\u5F64","\u674E\u8D6B","\u6BB5\u95EE\u8587","\u5085\u5F6D\u8584","\u5E9E\u6167","\u7EAA\u5E7F","\u987E\u4F26","\u6768\u9759\u4E91","\u4E01\u66FC\u5BB9","\u5F20\u4E09","\u674E\u56DB","\u738B\u4E94","\u5218\u5927\u5927","\u80E1\u5C0F\u5C0F"],e8=ENV.IS_WONDER_SHARE?["Ace","Bear","Champ","Duke","Flash","Gigi","Hank","Izzy","Jazz","Kiki","Leo","Max","Nova","Ozzy","Pepper","Quinn","Remy","Spike","Taz","Ziggy"]:["\u7528\u623753252352","\u7528\u62371937822","\u8FD9\u662F\u4E00\u4E2A\u5F88\u957F\u7684ID","\u5C0F\u5F20\u5C0F\u5F20\u81EA\u6709\u4E3B\u5F20","\u5C0F\u5468\u5C0F\u5468\u62DB\u5F85\u4E0D\u5468","\u5C0F\u5F90\u5C0F\u5F90\u662F\u6761\u54B8\u9C7C","\u58A8\u8FF9\u7684\u7F57\u590F","\u4ECE\u4F17\u7684\u963F\u5E0C","\u5931\u7720\u5F17\u6D1B\u4F0A\u5FB7","\u81EA\u4FE1\u963F\u5FB7\u52D2"],nf=["123123123@qq.com","987987987@qq.com","135792468@qq.com","246813579@qq.com","192837465@qq.com","asdf@gmail.com","zxcv.b@gmail.com","qwer@gmail.com","awsd.f@gmail.com","ta.rewsf@gmail.com","fdsfwe_sdd@gmail.com","g.hjkl@163.com","rewqr_88@163.com","panzer@163.com","nuttertools@163.com","leavemealone@163.com","bigbang@163.com","link@company.name","zelta@company.name","mipha@company.name","urbosa@company.name","revali@company.name","daruk@company.name"],S3=["021-9100212","021-8954555","021-8971245","0431-76782134","0431-90892314","0431-32413098","0831-29922849","0831-33319000","025-78012123","025-33312231"],t8=["19113212388","19289999000","19333312231","19490982231","19533319000","19612348970","19729922849","19876782134","19578012123","19434129071"],n8=ENV.IS_WONDER_SHARE?["The Importance of User-Centered Design in Product Development","How to Conduct Effective User Research for Product Design","The Role of Prototyping in Product Design","Designing for Accessibility: Inclusive Product Design","Sustainable Product Design: Balancing Functionality and Environmental Impact","The Future of Product Design: Trends and Predictions","Designing for Emotion: The Power of Emotional Design in Product Development","Designing for Mobile: Best Practices for Mobile Product Design","The Psychology of Color in Product Design","Designing for Brand Identity: The Role of Product Design in Branding"]:["\u6700\u4F73\u4EA7\u54C1\u7BA1\u7406\u4E66\u7C4D\u5728\u6B64\uFF0C\u83B7\u53D6\u804C\u573A\u4E0A\u5347\u79D8\u7C4D","\u63A2\u7D22\u4E865\u79CD\u6539\u5584\u79FB\u52A8\u7528\u6237\u4F53\u9A8C\u7684\u7EDD\u4F73\u505A\u6CD5\uFF0C\u8FDB\u6765\u5B66\uFF01","\u3010\u901A\u77E5\u3011\u5FC5\u8BFB\uFF0C\u518D\u4E0D\u770B\u5C31\u665A\u5566","\u5E72\u8D27|\u5B66\u4F1A\u5199\u7B80\u5386\uFF0C\u8F7B\u677E\u62FFoffer","\u5DE5\u4F5C\u8BA1\u5212\u4E0D\u4F1A\u5199\uFF1F\u8FD9\u4E2A\u8D85\u8D5E\u5DE5\u5177\u9001\u7ED9\u4F60","\u6765\u5B66\u4E60\uFF0110\u6761\u4F60\u7EDD\u5BF9\u4E0D\u80FD\u6253\u7834\u7684\u4EA4\u4E92\u8BBE\u8BA1\u89C4\u5219","\u4F60\u5FC5\u987B\u77E5\u9053\u76848\u79CD\u4EA7\u54C1\u8BBE\u8BA1\u80FD\u529B\u63D0\u5347\u6280\u5DE7","\u4EA7\u54C1\u7ECF\u7406\u5FC5\u5907\u5E72\u8D27\u2014\u2014\u5B9E\u7528\u9AD8\u6548\u6C9F\u901A\u8BDD\u672F","\u6253\u5DE5\u4EBA\u5FC5\u5907\uFF01\u63D0\u9AD8\u5DE5\u4F5C\u6548\u7387\u7684\u7535\u8111\u5FEB\u6377\u952E","\u9762\u8BD5\u653B\u7565\uFF1A\u8D85\u7EA7\u52A0\u5206\u768410\u4E2A\u9762\u8BD5\u6EE1\u5206\u5C0F\u6280\u5DE7"],o8=ENV.IS_WONDER_SHARE?[["Putting the user at the center of the design process is crucial for successful product development."],["Effective user research is essential for creating products that meet user needs and preferences."],["Prototyping is a valuable tool in the product design process, allowing designers to test and refine their ideas before finalizing a design."],["Designing products with accessibility in mind is important for creating inclusive and user-friendly products."],["Sustainable product design is about balancing the functionality of a product with its environmental impact"],["Keeping up with design trends and predicting future changes is important for staying ahead in the product design industry"],["Emotional design can create a stronger connection between users and products, leading to increased engagement and loyalty"],["Designing for mobile requires a unique set of considerations and best practices to ensure a seamless user experience"],["The use of color in product design can have a significant impact on user perception and behavior"],["Product design plays a crucial role in establishing and communicating a brand's identity"]]:[["\u5982\u679C\u4F60\u65E0\u6CD5\u7B80\u6D01\u7684\u8868\u8FBE\u4F60\u7684\u60F3\u6CD5\uFF0C\u90A3\u53EA\u8BF4\u660E\u4F60\u8FD8\u4E0D\u591F\u4E86\u89E3\u5B83\u3002","-- \u963F\u5C14\u4F2F\u7279\xB7\u7231\u56E0\u65AF\u5766"],["Imagination is more important than knowledge.","\u60F3\u8C61\u529B\u6BD4\u77E5\u8BC6\u66F4\u91CD\u8981\u3002"],["Small is the number of people who see with their eyes and think with their minds.","\u53EA\u6709\u5C11\u6570\u4EBA\u5728\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u773C\u775B\u89C2\u5BDF\u3001\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u5934\u8111\u601D\u8003\u3002"],["Logic will get you from A to B. Imagination will take you everywhere.","\u903B\u8F91\u4F1A\u628A\u4F60\u4ECEA\u5E26\u5230B\uFF0C\u60F3\u8C61\u529B\u80FD\u5E26\u4F60\u53BB\u4EFB\u4F55\u5730\u65B9\u3002"],["\u201CA consistent experience is a better experience.\u201D\u200A\u2014\u200AMark Eberman","\u201C\u4E00\u81F4\u7684\u4F53\u9A8C\u662F\u66F4\u597D\u7684\u4F53\u9A8C\u3002\u201D"],["A problem well stated is a problem half solved.\u201D\u200A\u2014\u200ACharles Kettering","\u201C\u9610\u8FF0\u6E05\u695A\u95EE\u9898\u5C31\u89E3\u51B3\u4E86\u4E00\u534A\u3002\u201D"],["\u201CCreativity is allowing yourself to make mistakes. Design is knowing which ones to keep.\u201D\u200A\u2014\u200AScott Adams","\u201C\u521B\u9020\u5141\u8BB8\u72AF\u9519\uFF0C\u8BBE\u8BA1\u8981\u77E5\u9053\u4FDD\u7559\u54EA\u4E9B\u3002\u201D"],["\u201CWant your users to fall in love with your designs? Fall in love with your users.\u201D\u200A\u2014\u200ADana Chisnell","\u201C\u60F3\u8BA9\u7528\u6237\u7231\u4E0A\u4F60\u7684\u8BBE\u8BA1\uFF0C\u5148\u7231\u4E0A\u4F60\u7684\u7528\u6237\u3002\u201D"],["\u201CGood design is the most important way to differentiate ourselves from our competitors.\u201D\u200A\u2014\u200AYun Jong Yong","\u201C\u597D\u7684\u8BBE\u8BA1\u662F\u6211\u4EEC\u4E0E\u7ADE\u4E89\u5BF9\u624B\u4FDD\u6301\u5DEE\u8DDD\u6700\u91CD\u8981\u7684\u65B9\u5F0F\u3002\u201D"],["\u201CIf you think good design is expensive, you should look at the cost of bad design.\u201DDr. Ralf Speth","\u201C\u5982\u679C\u4F60\u89C9\u5F97\u597D\u7684\u8BBE\u8BA1\u65F6\u6602\u8D35\u7684\uFF0C\u4F60\u5E94\u8BE5\u770B\u770B\u574F\u8BBE\u8BA1\u7684\u6210\u672C\u3002\u201D"],["\u201CLike all forms of design, visual design is about problem-solving, not about personal preference or unsupported opinion.\u201D\u200A\u2014\u200ABob Baxley","\u201C\u50CF\u5176\u4ED6\u8BBE\u8BA1\u4E00\u6837\uFF0C\u89C6\u89C9\u8BBE\u8BA1\u4E5F\u662F\u89E3\u51B3\u95EE\u9898\uFF0C\u4E0D\u662F\u4E2A\u4EBA\u559C\u597D\u3002\u201D"],["\u201CBecause every person knows what he likes, every person thinks he is an expert on user interfaces.\u201D\u200A\u2014\u200APaul Heckel","\u201C\u56E0\u4E3A\u6BCF\u4E2A\u4EBA\u90FD\u77E5\u9053\u81EA\u5DF1\u559C\u6B22\u4EC0\u4E48\uFF0C\u6240\u4EE5\u6BCF\u4E2A\u4EBA\u90FD\u89C9\u5F97\u81EA\u5DF1\u662F\u7528\u6237\u754C\u9762\u4E13\u5BB6\u3002\u201D"],["\u201CIf you find an element of your interface requires instructions, then you need to redesign it.\u201D\u200A\u2014\u200ADan Rubin","\u201C\u5982\u679C\u4F60\u53D1\u73B0\u4F60\u754C\u9762\u4E2D\u67D0\u4E2A\u5143\u7D20\u9700\u8981\u8BF4\u660E\uFF0C\u4F60\u9700\u8981\u91CD\u65B0\u8BBE\u8BA1\u3002\u201D"],["\u201CGenius is the ability to reduce the complicated to the simple.\u201D\u200A\u2014\u200AC.W. Ceram","\u201C\u5929\u624D\u5C31\u662F\u5C06\u590D\u6742\u95EE\u9898\u7B80\u5355\u5316\u7684\u4EBA\u3002\u201D"]],a8=ENV.IS_WONDER_SHARE?["www.behance.net","www.dribbble.com","www.awwwards.com","www.design-milk.com","www.core77.com","www.dezeen.com","www.smashingmagazine.com","www.designboom.com","www.creativebloq.com","mockitt.wondershare.com"]:["https://www.baidu.com","https://www.google.com","https://www.modao.cc","https://36kr.com/","https://www.qq.com/","https://www.sina.com.cn/","https://www.163.com/","https://www.taobao.com/","https://www.bilibili.com/","https://www.douban.com/","http://www.people.com.cn/","http://www.eastmoney.com/","https://www.zhihu.com/","https://www.youku.com/","http://www.iqiyi.com/","https://www.kickstarter.com/","https://www.behance.net/","https://dribbble.com/","https://www.youtube.com/","https://muz.li/"],r8=ENV.IS_WONDER_SHARE?{city:["1600 Pennsylvania Avenue NW, Washington, DC 20500","221B Baker Street, London NW1 6XE, United Kingdom","1 Infinite Loop, Cupertino, CA 95014","1600 Amphitheatre Parkway, Mountain View, CA 94043","350 Fifth Avenue, New York, NY 10118","123 Main Street, Anytown, USA 12345","555 Park Avenue, Suite 101, Cityville, CA 98765","987 Elm Street, Apt. 3B, Smalltown, IL 54321","2468 Oak Drive, Unit 6, Bigcity, NY 12345","789 Maple Lane, Suite 2A, Villageville, TX 67890"]}:{city:["\u5317\u4EAC\u5E02\u671D\u9633\u533A","\u5317\u4EAC\u5E02\u6D77\u6DC0\u533A","\u4E0A\u6D77\u5E02\u666E\u9640\u533A","\u4E0A\u6D77\u5E02\u6D66\u4E1C\u65B0\u533A","\u6DF1\u5733\u5E02\u5357\u5C71\u533A","\u6DF1\u5733\u5E02\u5B9D\u5B89\u533A","\u5E7F\u5DDE\u5E02\u756A\u79BA\u533A","\u5E7F\u5DDE\u5E02\u8D8A\u79C0\u533A"],street:["\u4E1C\u5927\u8857","\u897F\u5927\u8857","\u5317\u5927\u8857","\u5357\u5927\u8857","\u79D1\u6280\u8DEF","\u4EBA\u6C11\u8DEF"],building:["\u7EFF\u8272\u5BB6\u56ED 17\u53F7\u697C","\u521B\u65B0\u5B75\u5316\u5668","\u94F6\u5EA7\u5927\u53A6 A\u5EA7","\u666F\u5929soho","\u9F99\u8475\u5C0F\u533A 7\u680B","\u79D1\u6280\u4EA7\u4E1A\u56ED B1\u5EA7"],floor:["103","1207","2406","606","1701","102","313","502"]},cM=["\u4E2D\u56FD","\u7F8E\u56FD","\u82F1\u56FD","\u6CD5\u56FD","\u610F\u5927\u5229","\u5FB7\u56FD","\u4FC4\u7F57\u65AF","\u5370\u5EA6","\u5C3C\u65E5\u5229\u4E9A","\u52A0\u62FF\u5927","\u65E5\u672C","\u97E9\u56FD","\u57C3\u53CA","\u5DF4\u897F","\u8377\u5170","\u897F\u73ED\u7259","\u745E\u58EB","\u8D8A\u5357","\u6FB3\u5927\u5229\u4E9A","\u58A8\u897F\u54E5"],i8=ENV.IS_WONDER_SHARE?["United States","Canada","Mexico","Brazil","United Kingdom","France","Germany","Spain","Italy","Russia","China","Japan","India","Australia","South Africa","Egypt","Saudi Arabia","United Arab Emirates","Argentina","Chile"]:["China","America","Britain","France","Italy","Germany","Russia","India","Nigeria","Canada","Japan","Korea","Egypt","Brazil","Netherlands","Spain","Switzerland","Vietnam","Australia","Mexico"],dM=["\u5317\u4EAC","\u4E0A\u6D77","\u6DF1\u5733","\u5357\u4EAC","\u54C8\u5C14\u6EE8","\u897F\u5B89","\u676D\u5DDE","\u5E7F\u5DDE","\u897F\u5B81","\u62C9\u8428","\u9999\u6E2F","\u6FB3\u95E8","\u53F0\u6E7E","\u4E1C\u4EAC","\u7EBD\u7EA6","\u8D39\u57CE","\u9996\u5C14","\u5229\u7269\u6D66","\u7EF4\u4E5F\u7EB3","\u67CF\u6797","\u5DF4\u9ECE","\u5E03\u8FBE\u4F69\u65AF","\u83AB\u65AF\u79D1","\u9A6C\u5FB7\u91CC","\u4F26\u6566","\u8036\u8DEF\u6492\u51B7"],s8=ENV.IS_WONDER_SHARE?["New York City, USA","London, UK","Paris, France","Tokyo, Japan","Beijing, China","Sydney, Australia","Dubai, UAE","Los Angeles, USA","Mumbai, India","Rio de Janeiro, Brazil","Rome, Italy","Toronto, Canada","Moscow, Russia","Cape Town, South Africa","Mexico City, Mexico","Madrid, Spain","Berlin, Germany","Buenos Aires, Argentina","Seoul, South Korea","Cairo, Egypt"]:["Beijing","Shanghai","Shenzhen","Nanjing","Harbin","Xi'an","Hangzhou","Guangzhou","Xining","Lhasa","Hong Kong","Macao","Taiwan","Tokyo","New York","Philadelphia","Seoul","Liverpool","Vienna","Berlin","Paris","Budapest","Moscow","Madrid","London","Jerusalem"];var pM=i(67709),uM=i.n(pM),hM=i(19167),qh=i.n(hM);const Sg=e=>{var t;return JSON.parse((t=sessionStorage.getItem(e))!=null?t:"[]")},Ag=(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},Om=(e,t)=>{let n=e.filter(s=>!Sg(t).includes(s));n.length===0&&(Ag(t,[]),n=e);const r=n[Math.floor(Math.random()*n.length)];return Ag(t,[...Sg(t),r]),[r]},mM=(e,t)=>{let n=e.filter(s=>!Sg(t).includes(uM()(s[0]+s[1])));n.length===0&&(Ag(t,[]),n=e);const r=n[Math.floor(Math.random()*n.length)];return Ag(t,[...Sg(t),r]),[...r]},fM=e=>{return[""+t(e.city)+t(e.street)+t(e.building)+t(e.floor)];function t(n){return n[Math.floor(Math.random()*n.length)]}},gM=function(e,t,n){return t===void 0&&(t=9999),n===void 0&&(n=!1),[n?qh()(e,t,n).toFixed(2):qh()(e,t,n).toString(10)]},yM=e=>{const t=qh()(an()().year()-1,an()().year()),n=qh()(1,12),r=qh()(1,28),s=qh()(0,23),c=qh()(0,59);return[e.replace("YYYY",t.toString()).replace("MM",n.toString().padStart(2,"0")).replace("DD",r.toString().padStart(2,"0")).replace("HH",s.toString().padStart(2,"0")).replace("MM",c.toString().padStart(2,"0")).replace("\u5E74",t.toString()+"\u5E74").replace("\u6708",n.toString()+"\u6708").replace("\u65E5",r.toString()+"\u65E5")]},vM={personName:0,content:0,time:1,phoneNumber:0,email:ENV.IS_WONDER_SHARE?0:2,number:1,country:0,city:0},xM=()=>ENV.IS_WONDER_SHARE?[[[$y,"usedChineseName_personName"],[e8,"usedNickName"]],[[n8,"usedTitle_content"],[o8,"usedLongText_country"],[a8,"usedURL_country"],[r8,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"],[[t8,"usedMobilePhoneNumber"],[S3,"usedPhoneNumber"]],[[nf.filter(e=>e.endsWith("@gmail.com")),"usedGmail"],[nf.filter(e=>e.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1],[S3,"usedPhoneNumber"]],[[i8,"usedEnglishName_country"]],[[s8,"usedEnglishName_city"]]]:[[[lM,"usedEnglishName_personName"],[$y,"usedChineseName_personName"],[e8,"usedNickName"]],[[n8,"usedTitle_content"],[o8,"usedLongText_country"],[a8,"usedURL_country"],[r8,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],[[t8,"usedMobilePhoneNumber"],[S3,"usedPhoneNumber"]],[[nf.filter(e=>e.endsWith("@qq.com")),"usedQQEmail"],[nf.filter(e=>e.endsWith("@gmail.com")),"usedGmail"],[nf.filter(e=>e.endsWith("@163.com")),"used163EMAIL"],[nf.filter(e=>e.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1]],[[cM,"usedChineseName_country"],[i8,"usedEnglishName_country"]],[[dM,"usedChineseName_city"],[s8,"usedEnglishName_city"]]],bM=(0,$s.R)(e=>{const t=s=>{var c;return e?(c=e[s])!=null?c:vM[s]:0},n=xM(),r=[{tabName:"personName",title:I18N.ChatGPT.ai_text_auto_fill_name,iconName:"design/autoFillPanel/person",initialIndex:t("personName"),menuLabels:ENV.IS_WONDER_SHARE?["English name","Nickname"]:["\u4E2D\u6587","\u82F1\u6587","\u6635\u79F0"],generator:s=>Om(n[0][s][0],n[0][s][1])},{tabName:"content",title:I18N.ChatGPT.ai_text_auto_fill_content,iconName:"design/autoFillPanel/content",initialIndex:t("content"),menuLabels:[I18N.ChatGPT.ai_text_auto_fill_content_title,I18N.ChatGPT.ai_text_auto_fill_content_long_text,I18N.ChatGPT.ai_text_auto_fill_content_website,I18N.ChatGPT.ai_text_auto_fill_content_address],generator:s=>[0,2].includes(s)?Om(n[1][s][0],n[1][s][1]):s===1?mM(n[1][s][0],n[1][s][1]):fM(n[1][s][0])},{tabName:"time",title:I18N.ChatGPT.ai_text_auto_fill_time,iconName:"design/autoFillPanel/dateTime",initialIndex:t("time"),menuLabels:ENV.IS_WONDER_SHARE?["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"]:["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],generator:s=>yM(n[2][s])},{tabName:"phoneNumber",title:"\u53F7\u7801",iconName:"design/autoFillPanel/phone",initialIndex:t("phoneNumber"),menuLabels:["\u624B\u673A\u53F7","\u56FA\u53F7"],generator:s=>Om(n[3][s][0],n[3][s][1])},{tabName:"email",title:I18N.ChatGPT.ai_text_auto_fill_email,iconName:"design/autoFillPanel/email",initialIndex:t("email"),menuLabels:ENV.IS_WONDER_SHARE?["gmail",I18N.ChatGPT.ai_text_auto_fill_company_email]:["qq\u90AE\u7BB1","gmail","163\u90AE\u7BB1","\u516C\u53F8\u90AE\u7BB1"],generator:s=>Om(n[4][s][0],n[4][s][1])},{tabName:"number",title:I18N.ChatGPT.ai_text_auto_fill_number,iconName:"design/autoFillPanel/number",initialIndex:t("number"),menuLabels:ENV.IS_WONDER_SHARE?["0-0.99","0-99","100-999","1000+","Phone number"]:["0-0.99","0-99","100-999","1000+"],generator:s=>s===4?Om(n[3][0][0],n[3][0][1]):gM(n[5][s][0],n[5][s][1],n[5][s][2])},{tabName:"country",title:I18N.ChatGPT.ai_text_auto_fill_country,iconName:"design/autoFillPanel/country",initialIndex:t("country"),menuLabels:ENV.IS_WONDER_SHARE?["country"]:["\u4E2D\u6587","\u82F1\u6587"],generator:s=>Om(n[6][s][0],n[6][s][1])},{tabName:"city",title:I18N.ChatGPT.ai_text_auto_fill_city,iconName:"design/autoFillPanel/city",initialIndex:t("city"),menuLabels:ENV.IS_WONDER_SHARE?["city"]:["\u4E2D\u6587","\u82F1\u6587"],generator:s=>Om(n[7][s][0],n[7][s][1])}];return ENV.IS_WONDER_SHARE?r.filter(s=>s.tabName!=="phoneNumber"):r});var Fd=i(23744);const CM=E.Ay.div.withConfig({displayName:"styles__StyledAISearchBox",componentId:"sc-ry6ftr-0"})(["width:100%;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{width:100%;display:flex;flex-direction:row;font-size:12px;height:30px;align-items:center;background:",";padding:0 10px;border-radius:4px;}&.generating{pointer-events:none;}&.input-limit{border:1px solid #ff3333;}&.picture-search-box{margin:15px 20px;width:calc(100% - 40px);}svg{width:20px;height:20px;opacity:1.0;cursor:pointer;&.disabled{pointer-events:none;opacity:0.4;}}.send-button{&:hover{path{fill:#1169C9;}}}.create-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.chat-input{width:100%;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";autocomplete:off;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),wM=(e,t)=>{let{userInput:n,generating:r,handleInputFocus:s,handleInputChange:c,sendAction:d,className:p,placeholder:g}=e;const[y,w]=(0,l.useState)(!1),_=Z=>{Z.keyCode===13&&!Z.shiftKey&&(n.length>0&&d(),Z.preventDefault())},j=()=>{s&&s(!0)},N=()=>{s&&s(!1)};return(0,o.jsx)(CM,{className:m()(y&&"isFocus",r&&"generating",n&&n.length>=200&&"input-limit",p),onMouseEnter:j,onMouseLeave:N,children:(0,o.jsxs)("div",{className:"colorful-border-content",children:[(0,o.jsx)("input",{ref:t,id:"chat-input",className:"chat-input",autoComplete:"off",maxLength:200,value:n||"",onChange:Z=>{c(Z.target.value)},onKeyDown:_,onFocus:()=>{w(!0)},onBlur:()=>{w(!1)},placeholder:g||""}),r?(0,o.jsx)(Fd.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}):(0,o.jsx)(Fd.C,{className:m()("send-button",(!n||n.length===0)&&"disabled"),name:"chatGPT/create-comment-send",onClick:d,isColorPure:!0})]})})},l8=(0,l.memo)(l.forwardRef(wM)),A3=78,SM=E.Ay.div.withConfig({displayName:"styles__StyledAutoFillSearchBox",componentId:"sc-1kju1gy-0"})(["margin:0 20px;height:","px;display:flex;flex-direction:column;justify-content:center;.box-title{font-family:PingFang SC;display:flex;align-items:center;color:",";font-size:12px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:12px;justify-content:space-between;.ai-help-content{display:flex;align-items:center;.ai-help{margin-left:4px;width:16px;height:16px;position:relative;svg{width:100%;height:100%;path{fill:",";}&:hover{path{fill:",";}}}.tip-content{width:256px;background-color:red;position:absolute;left:-110px;top:16px;border-radius:4px;background:#454647;color:#FFF;font-size:12px;padding:10px;line-height:18px;z-index:1;a{color:white;text-decoration:underline;}.tip-eg{margin-top:20px;}}}}}"],A3,e=>e.theme.color_AI_Text_Auto_head_title,e=>e.theme.color_AI_Text_Auto_fill_path,e=>e.theme.color_AI_Text_Auto_fill_path_hover),AM=e=>{let{inputValue:t,handleInputChange:n,handleSendSearch:r,generating:s,placeholder:c,title:d,isPicture:p}=e;const[g,y]=(0,l.useState)(!1),w=(0,l.useRef)(null),_=(0,l.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),w.current=setTimeout(()=>{w.current=null,y(!0)},500)},[w,y]),j=()=>{w.current&&(clearTimeout(w.current),w.current=null),y(!1)};return(0,o.jsxs)(SM,{children:[(0,o.jsx)("div",{className:"box-title",children:(0,o.jsxs)("div",{className:"ai-help-content",children:[d,(!ENV.IS_WONDER_SHARE||p)&&(0,o.jsxs)("div",{className:"ai-help",onMouseEnter:_,onMouseLeave:j,children:[(0,o.jsx)(Fd.C,{name:"chatGPT/ai-help",isColorPure:!0}),g&&(0,o.jsx)("div",{className:"tip-content",children:p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip1}),(0,o.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip2}),(0,o.jsx)("a",{href:"https://unsplash.com/license",target:"_blank",rel:"noreferrer",children:"https://unsplash.com/license"}),(0,o.jsx)("div",{className:"tip-eg",children:I18N.ChatGPT.ai_picture_auto_fill_help_tip3})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:"\u6839\u636E\u8F93\u5165\u7684\u8981\u6C42\u667A\u80FD\u586B\u5145\u6587\u672C\u3002"}),(0,o.jsx)("div",{className:"tip-eg",children:"\u793A\u4F8B\uFF1A "}),(0,o.jsx)("div",{children:"\u7EA2\u697C\u68A6\u4E2D\u7684\u4EBA\u7269"}),(0,o.jsx)("div",{children:"\u4E03\u8A00\u7EDD\u53E5"}),(0,o.jsx)("div",{children:"2\u4F4D\u6574\u6570\u548C2\u4F4D\u5C0F\u6570\u7684\u6570\u5B57"})]})})]})]})}),(0,o.jsx)(l8,{userInput:t,handleInputChange:n,sendAction:r,generating:s,placeholder:c})]})},c8=(0,l.memo)(AM);var d8=i(25431);const MM=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid #454647;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"]),kM=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid ",";box-shadow:0px 4px 10px 0px ",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_btn_secondary_hover),EM=()=>{try{var e;return(e=MB)==null||(e=e.__store__)==null?void 0:e.getState()}catch(t){return}},p8=()=>{try{var e;return((e=EM())==null?void 0:e.ui.fixedLayout.preference.layoutV9)==="old"}catch(t){return!1}};class IM extends l.PureComponent{render(){const t=p8();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d8.eB,{...this.props}),t?(0,o.jsx)(MM,{}):(0,o.jsx)(kM,{})]})}}const TX=E.Ay.span.withConfig({displayName:"styles__StyledOption",componentId:"sc-12fos16-0"})(["border:1px solid #d8d8d8;border-radius:4px;padding:3px 6px;cursor:pointer;margin-right:7.75px;margin-bottom:8px;display:inline-block;"]),TM=E.Ay.div.withConfig({displayName:"styles__StyledSetting",componentId:"sc-12fos16-1"})(["display:flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:4px;cursor:pointer;:hover{background-color:",";}"],e=>e.theme.color_background_white_modal_active);class _M extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setElementRef",n=>this.$element=n),(0,O.A)(this,"handleClick",n=>{n.stopPropagation();const{onClick:r}=this.props;r&&r()}),(0,O.A)(this,"handleClose",()=>{const{onClose:n}=this.props;n&&n()}),(0,O.A)(this,"handleChange",n=>{n.stopPropagation();const{currentTarget:r}=n,{value:s}=r.dataset;this.setState({value:s}),this.props.menuItems[s-1].onClick(n),this.props.onClose&&this.props.onClose()}),this.state={value:t.defaultSelectSettingIndex+1}}render(){const{isShowOptionSelectMenu:t}=this.props;return(0,o.jsxs)(TM,{ref:this.setElementRef,onClick:this.handleClick,children:[(0,o.jsx)(Fd.C,{name:"design/autoFillPanel/more",className:"setting-icon",isColorPure:!0}),t&&(0,o.jsx)(IM,{isOpen:!0,menuClassName:"autoFillPanelSelectScreenMenu",$select:this.$element,optionList:this.props.menuItems,value:this.state.value,onChange:this.handleChange,onClose:this.handleClose,onClickOutSide:this.handleClose})]})}}const u8=function(e,t){e===void 0&&(e=500);const n=(0,l.useRef)(null),r=(0,l.useCallback)(()=>{n.current&&(clearTimeout(n.current),n.current=null)},[n]);return{handleAdd:(0,l.useCallback)(c=>{n.current&&(clearTimeout(n.current),n.current=null),n.current=setTimeout(()=>{n.current=null,t&&t({text:c})},e)},[e,t]),handleClear:r}};var of=i(63522);const PM=E.Ay.div.withConfig({displayName:"styles__StyledAutoFillTextPanel",componentId:"sc-1wc0sb9-0"})(["width:100%;height:100%;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;&.show-ai{height:calc(100% - ","px);}}"],A3+18),LM=E.Ay.div.withConfig({displayName:"styles__StyledAutoFillItem",componentId:"sc-1wc0sb9-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.title-icon{margin-right:8px;}.left{display:flex;flex-direction:row;align-items:center;color:",";.title-wrapper{display:flex;flex-direction:column;.title{font-size:12px;line-height:16px;margin-bottom:2px;}.setting{font-size:10px;line-height:16px;color:",";}}}"],e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),NM=e=>{var t;let{title:n,iconName:r,tableInfoData:s,selectedTrees:c,generator:d,tabName:p,menuLabels:g,initialIndex:y,onNotice:w,onUpdateWidget:_,onUpdatePreference:j,onClickOption:N,onCloseOption:Z,isShowOptionSelectMenu:Q}=e;const[se,ie]=(0,l.useState)(y),{handleClear:he}=u8(500,w),xe=g.map((Ne,pt)=>({label:Ne,value:pt+1,onClick:(_t,gt)=>_e(_t,pt,gt,()=>(0,of.RG)(c,()=>{(0,of.mD)(c,s,()=>d(pt),_)}))})),Se=Ne=>{xe[se].onClick(Ne,!0)},_e=(Ne,pt,_t,gt)=>{Ne.stopPropagation(),ie(pt),_t||j(p,pt),gt()&&_t?De(Ne):he()},De=Ne=>{Ne.stopPropagation(),he(),!(0,of.Rd)(c)&&_({widgetType:"wRichText",data:{content:d(se).join("\n")},type:"create"})},Je=()=>{N({tabName:p})};return(0,o.jsxs)(LM,{onClick:Se,onDoubleClick:De,children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)(Fd.C,{name:r,className:"title-icon",size:21}),(0,o.jsxs)("div",{className:"title-wrapper",children:[(0,o.jsx)("span",{className:"title",children:n}),(0,o.jsx)("span",{className:"setting",children:(t=xe[se])==null?void 0:t.label})]})]}),(0,o.jsx)(_M,{onClick:Je,onClose:Z,isShowOptionSelectMenu:Q,menuItems:xe,defaultSelectSettingIndex:y})]})};var fn=i(34394),l0=i(46905),c2=i(46723),$h=i(39563);const h8=async e=>{let{prompt:t,user:n,project:r,org:s,selectedTrees:c,tableInfoData:d,onUpdateWidget:p,updateAIState:g,notice:y}=e;const w=(0,l0.AM)({user:n,project:r}),_=(0,l0.WX)({user:n,org:s});let j=0;const{tableSelectionLeftTopInfo:N,editingTableWidget:Z}=d,{selectionLeftTopInfo:Q,selectionRightBottomInfo:se}=N||{},ie=(0,l0.n3)(c).filter(Je=>![fn.x.WVideo,fn.x.WAudio,fn.x.WQRCode,fn.x.WWebpage].includes(Je.type));j+=ie.length;const he=(0,l0.n3)(c).filter(Je=>Je.name===fn.x.WTable);if(Q){var xe;((0,$h.SS)((xe=he[0])==null?void 0:xe.hotAttr)?Z.hotAttr.table:Z.tableData.data).forEach((Ne,pt)=>{pt>=Q.y&&pt<=se.y&&Ne.forEach((_t,gt)=>{gt>=Q.x&&gt<=se.x&&(j+=1)})})}else he.filter(Je=>{let{cid:Ne}=Je;return!Q||Ne!==Z.cid}).forEach(Je=>{((0,$h.SS)(Je)?Je.table:Je.tableData.data).forEach((pt,_t)=>{pt.forEach((gt,Ct)=>{j+=1})})});j=Math.max(j,1);const{result:Se,status:_e}=await(0,c2.cD)({prompt:t,textListLength:j,workspace:_,taskID:w,user:n,org:s,updateAIState:g,notice:y});if(!Se)return{success:!1,status:_e};const{widget:{textList:De}}=Se;return m8({textList:De,selectedTrees:c,tableInfoData:d,onUpdateWidget:p}),{success:!0,status:200}},m8=e=>{let{textList:t,selectedTrees:n,tableInfoData:r,onUpdateWidget:s}=e;(0,of.Rd)(n)||s({widgetType:"wRichText",data:{content:t[0]},type:"create"});const d=(()=>{let p=0;return()=>{const g=t[Math.min(p,t.length-1)];return p++,typeof g!="string"&&typeof g!="number"?[""]:[String(g)]}})();(0,of.mD)(n,r,d,s)},jM=e=>{let{commonData:t,isShowAI:n,onNotice:r,onUpdateWidget:s,onTrack:c,onUpdatePreference:d}=e;const[p,g]=(0,l.useState)(""),[y,w]=(0,l.useState)(!1),[_,j]=(0,l.useState)(""),{selectedTrees:N,tableInfoData:Z,preference:{autoFillHistory:Q},user:se,org:ie,project:he,openFrom:xe}=t,Se=Ne=>{const{aiGenerating:pt}=Ne;w(pt)},_e=(0,l.useCallback)(async()=>{w(!0);const{success:Ne,status:pt}=await h8({prompt:p,user:se,org:ie,project:he,selectedTrees:N,tableInfoData:Z,onUpdateWidget:s,updateAIState:Se,notice:r});c({config:{ai_func:"\u667A\u80FD\u586B\u5145-\u6587\u5B57",ai_input:p}}),w(!1),r({text:"\u667A\u80FD\u586B\u5145 \u5DF2\u751F\u6210",svgName:"chatGPT/copy-success"})},[p,se,ie,he,N,Z,s,r,c]),De=(0,l.useMemo)(()=>bM(Q),[Q]),Je=Ne=>{let{tabName:pt}=Ne;if(pt===_){j("");return}j(pt)};return(0,o.jsxs)(PM,{children:[n&&(0,o.jsx)(c8,{generating:y,inputValue:p,handleInputChange:g,handleSendSearch:_e,title:I18N.ChatGPT.ai_text_auto_fill_title,placeholder:I18N.ChatGPT.ai_text_auto_fill_placeholder,isPicture:!1}),(0,o.jsx)("div",{className:"item-list "+(n?"show-ai":""),children:De.map(Ne=>(0,o.jsx)(NM,{...Ne,selectedTrees:N,tableInfoData:Z,onNotice:r,onUpdateWidget:s,onUpdatePreference:d,onClickOption:Je,onCloseOption:()=>j(""),isShowOptionSelectMenu:_===Ne.tabName},Ne.title))})]})},DM=(0,l.memo)(jM),OM=(0,$s.R)(()=>[{iconName:"design/autoFillPanel/person",title:I18N.ChatGPT.ai_picture_auto_fill_figure,image:"/mb-workspace/images/autofill/ppl.png",tab:"ppl"},{iconName:"design/autoFillPanel/animal",title:I18N.ChatGPT.ai_picture_auto_fill_animal,image:"/mb-workspace/images/autofill/anml.png",tab:"anml"},{iconName:"design/autoFillPanel/tech",title:I18N.ChatGPT.ai_picture_auto_fill_tech,image:"/mb-workspace/images/autofill/tech.png",tab:"tech"},{iconName:"design/autoFillPanel/nature",title:I18N.ChatGPT.ai_picture_auto_fill_nature,image:"/mb-workspace/images/autofill/natr.png",tab:"natr"},{iconName:"design/autoFillPanel/food",title:I18N.ChatGPT.ai_picture_auto_fill_food,image:"/mb-workspace/images/autofill/food.png",tab:"food"},{iconName:"design/autoFillPanel/city",title:I18N.ChatGPT.ai_picture_auto_fill_architecture,image:"/mb-workspace/images/autofill/arch.png",tab:"arch"},{iconName:"design/autoFillPanel/business",title:I18N.ChatGPT.ai_picture_auto_fill_business,image:"/mb-workspace/images/autofill/bsns.png",tab:"bsns"}]),RM=e=>{let{url:t,tab:n,width:r,height:s,tags:c}=e;return{asset_cid:"findPicture_"+t,created_at:new Date().getTime(),group_cid:"findPicture_"+n,height:s,width:r,name:"\u793A\u4F8B\u56FE\u7247",size:999,image:"/res-img/org/"+t,thumb:"/res-img/thmb/"+t,timestamp:0,tags:"",img_tag:c}},f8=(e,t)=>{if(!(t!=null&&t.length))return null;const n=t.find(_=>_.tab===e),r="autofill_picture_"+e;let s=JSON.parse(sessionStorage.getItem(r)||"[]");s.length>=n.imgs.length&&(s=[]);const c=n.imgs.filter(_=>{let[j]=_;return!s.includes(j)}),d=qh()(0,c.length-1),[p,,[g,y],w]=c[d];return s.push(p),sessionStorage.setItem(r,JSON.stringify(s)),RM({tab:e,url:p,width:g,height:y,tags:w})};var BM=i(37754),UM=i(77686);const FM=async()=>{const e=ENV.IS_WONDER_SHARE?"/res-img/meta-en.json":"/res-img/meta.json";return await(await fetch(e,{credentials:"same-origin"})).json()};var jf=i(18848);const VM=E.Ay.div.withConfig({displayName:"styles__StyledAutoFillPicturePanel",componentId:"sc-brp3ix-0"})(["width:100%;height:100%;display:flex;flex-direction:column;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;flex:1;&::-webkit-scrollbar{width:3px;height:3px;}&.show-ai{height:calc(100% - ","px);}}"],A3+18),zM=E.Ay.div.withConfig({displayName:"styles__StyledPicturePanelItem",componentId:"sc-brp3ix-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.left{display:flex;align-items:center;color:",";font-size:12px;.title-icon{margin-right:8px;}}.right{width:45px;display:flex;align-items:center;img{width:45px;}}"],e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L1),WM=e=>{let{isShowAI:t,commonData:n,onNotice:r,onUpdateWidget:s,onTrack:c}=e;const[d,p]=(0,l.useState)(""),[g,y]=(0,l.useState)(!1),[w,_]=(0,l.useState)([]),[j,N]=(0,l.useState)(!1),{handleClear:Z}=u8(500,r);(0,l.useEffect)(()=>{j||FM().then(Ct=>{N(!0),_(Ct)}).catch(Ct=>{console.error("download meta.json failed",Ct)})},[j]);const{selectedTrees:Q,selectedCarouseImage:se,user:ie,org:he,project:xe,openFrom:Se}=n,_e=Ct=>{s({widgetType:"wImage",data:Ct,type:"create"})},De=Ct=>{if((0,l0.n3)(Q).every(sn=>!(0,jf.xC)(sn))){Je(Ct);return}(0,jf.CV)({generator:()=>f8(Ct,w),selectedTrees:Q,selectedCarouseImage:se,onUpdateWidget:s})},Je=Ct=>{if(Z(),(0,jf.J6)(Q))return;const zt=f8(Ct,w);_e(zt)},Ne=Ct=>{p(Ct)},pt=Ct=>{let{url:zt,tab:Dt,width:sn,height:Rn,tags:On}=Ct;return{asset_cid:"findPicture_"+zt,created_at:new Date().getTime(),group_cid:"findPicture_"+Dt,height:Rn,width:sn,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+zt,thumb:"/res-img/thmb/"+zt,timestamp:0,tags:"",img_tag:On}},_t=async()=>{y(!0);const Ct={isTrigger:!1};Ct.isTrigger=(0,UM.b)(d);const zt=()=>{Ct.isTrigger=!0},Dt=Ct.isTrigger?[]:await(0,BM.P)({keyword:d,size:20,uId:ie==null?void 0:ie.id,projectCid:xe==null?void 0:xe.cid,triggerSensitiveWord:zt});try{w&&w.filter(On=>On.tab!=="hot").forEach(On=>{On.imgs&&On.imgs.filter(Lo=>Lo[3].includes(d)).forEach(Lo=>{Dt.push(pt({tab:On.tab,url:Lo[0],width:Lo[2][0],height:Lo[2][1],tags:Lo[3]}))})})}catch(Rn){}const sn=!(!Dt||Dt.length===0);if(c({config:{ai_func:"\u667A\u80FD\u586B\u5145-\u56FE\u7247",ai_input:d}}),y(!1),Ct.isTrigger){r({text:"\u8F93\u5165\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47\uFF0C\u8BF7\u5C1D\u8BD5\u66F4\u6362\u8F93\u5165\u5185\u5BB9"});return}else if(!sn){r({text:"\u8F93\u5165\u5185\u5BB9\u6682\u65E0\u76F8\u5173\u7ED3\u679C\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"});return}(0,jf.bY)({result:Dt,selectedTrees:Q,selectedCarouseImage:se,onUpdateWidget:s})},gt=OM();return(0,o.jsxs)(VM,{children:[t&&(0,o.jsx)(c8,{generating:g,inputValue:d,handleInputChange:Ne,handleSendSearch:_t,title:I18N.ChatGPT.ai_picture_auto_fill_title,placeholder:I18N.ChatGPT.ai_picture_auto_fill_placeholder,isPicture:!0}),(0,o.jsx)("div",{className:"item-list "+(t?"show-ai":""),children:gt.map((Ct,zt)=>(0,o.jsxs)(zM,{onClick:()=>De(Ct.tab),onDoubleClick:()=>Je(Ct.tab),children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)(Fd.C,{name:Ct.iconName,className:"title-icon",size:21}),(0,o.jsx)("span",{className:"title",children:Ct.title})]}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)("img",{src:Ct.image})})]},zt))})]})},HM=(0,l.memo)(WM),g8=E.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-17irm6j-0"})(["position:absolute;width:",";background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],"210px",e=>e.theme.color_background_white,e=>e.theme.shadow_1,e=>e.theme.color_background,e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),GM=(0,E.Ay)(g8).withConfig({displayName:"styles__StyledAutoFillPanel",componentId:"sc-1ny03ld-0"})(["width:300px;height:442px;background:",";box-shadow:0px 2px 10px rgba(0,0,0,0.12);border-radius:10px;border:1px solid ",";overflow:initial;z-index:107;.auto-panel-header{display:flex;height:50px;align-items:center;justify-content:space-between;cursor:move;.auto-panel-slider{padding-left:20px;.tab-item{font-size:12px;color:",";&:not(:first-child){margin-left:24px;}}.tab-sel{color:",";font-weight:bold;border:none;}}.close-icon{margin-right:20px;height:24px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}.content{width:100%;height:392px;}"],e=>e.theme.color_background_white,e=>e.theme.color_border_state,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),ZM=e=>{const{position:t,show:n,commonData:r,actions:s,defaultTab:c,isShowClose:d=!0,canShowAllTab:p=!0}=e,{selectedTrees:g,tableInfoData:y}=r,[w,_]=(0,l.useState)("text"),[j,N]=(0,l.useState)(window.innerWidth),[Z,Q]=(0,l.useState)(window.innerHeight),[se,ie]=(0,l.useState)([]),he=(0,l.useRef)(null);(0,l.useEffect)(()=>{const zt=()=>{N(window.innerWidth),Q(window.innerHeight)};return window.addEventListener("resize",zt),()=>{window.removeEventListener("resize",zt)}},[]),(0,l.useEffect)(()=>{const zt=[{key:"text",label:I18N.ChatGPT.ai_text_auto_fill,disabled:!p&&c===1},{key:"image",label:I18N.ChatGPT.ai_picture_auto_fill,disabled:!p&&c===0}].filter(Dt=>!Dt.disabled);if(ie(zt),c!==void 0)_(c===0?"text":"image");else{if(g.length===0)return;const Dt=(0,jf.J6)(g),sn=(0,of.Rd)(g);if(!Dt&&!sn||Dt&&sn)return;_(Dt?"image":"text")}},[p,c,g,ie,_]);const xe=(zt,Dt)=>{s.updatePosition(zt,Dt)},Se=()=>{s.updateShow(!1)},_e=zt=>{s.notice(zt)},De=zt=>{let{widgetType:Dt,data:sn,type:Rn}=zt;s.updateWidget({widgetType:Dt,data:sn,type:Rn})},Je=zt=>{let{config:Dt,key:sn="proto_ai_use"}=zt;s.track(sn,Dt)},Ne=(zt,Dt)=>{s.updatePreference(zt,Dt)};if(!n)return null;const pt=Math.max(Math.min(t==null?void 0:t.left,j-258),0),_t=Math.max(Math.min(t==null?void 0:t.top,Z-397),0),gt=w==="text",Ct=w==="image";return(0,o.jsx)(dr.A,{position:{left:pt,top:_t},onMove:xe,ref:he,children:(0,o.jsxs)(GM,{className:"autoFillPanel-element",children:[(0,o.jsxs)("div",{type:"draggable",className:"auto-panel-header",children:[(0,o.jsx)(sM,{className:"auto-panel-slider",activeTab:w,tabs:se,handleChangeTab:_}),d&&(0,o.jsx)("a",{className:"close-icon",onClick:Se,children:(0,o.jsx)(Fd.C,{name:"design/autoFillPanel/close",size:24})})]}),(0,o.jsxs)("div",{className:"content",children:[gt&&(0,o.jsx)(DM,{isShowAI:!ENV.IS_ON_PREMISES,commonData:r,onNotice:_e,onUpdateWidget:De,onUpdatePreference:Ne,onTrack:Je,tableInfoData:y}),Ct&&(0,o.jsx)(HM,{commonData:r,isShowAI:!ENV.IS_ON_PREMISES,onNotice:_e,onUpdateWidget:De,onTrack:Je})]})]})})},KM=(0,l.memo)(ZM),YM=e=>{const t=e();return(0,o.jsx)(KM,{...t})};var M3=i(45611);const XM=(0,l.memo)(e=>{const{isAutoFillPanelShow:t,autoFillPanelPosition:n,openFrom:r,defaultTab:s,selectedItems:c,tableInfoData:d,selectedCarouseImage:p,user:g,org:y,project:w,preference:_,isShowClose:j,canShowAllTab:N,dispatch:Z}=e,[Q,se]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),ie=(0,l.useMemo)(()=>({updatePosition:(Se,_e)=>{Z({type:"autoFillPanel:set:position",payload:{position:{top:_e,left:Se}}})},updateShow:Se=>{Z({type:"autoFillPanel:set:show",payload:{show:Se}})},updatePreference:(Se,_e)=>{Z({type:"entry:update:auto-fill-history",payload:{attr:Se,value:_e}})},updateWidget:Se=>{let{widgetType:_e,data:De,type:Je}=Se;Z({type:"entry:autoFill:update:widget",payload:{widgetType:_e,data:De,type:Je,device:w.device}})},notice:Se=>{MB.notice(Se)},track:(Se,_e)=>{(0,e0.ZI)(Se,_e)}}),[Z,w.device]),he=(0,l.useMemo)(()=>({user:g,org:y,project:w,preference:_,openFrom:r}),[y,_,w,g,r]),xe=(0,l.useMemo)(()=>({show:t,position:n,defaultTab:s,isShowClose:j,canShowAllTab:N,commonData:{selectedTrees:c.map(M3.Dx).flat().map(Se=>({widget:{...Se.hotAttr,...Se,name:Se.hotAttr.type,cid:Se.key,display_name:Se.hotAttr.name}})),tableInfoData:{...d,editingTableWidget:d.editingTableWidget?{...d.editingTableWidget,...d.editingTableWidget.hotAttr,cid:d.editingTableWidget.key}:void 0},selectedCarouseImage:p,...he},actions:ie}),[he,ie,n,t,p,c,d,s,j,N]);return(0,l.useEffect)(()=>{se(YM(()=>xe))},[xe]),(0,o.jsx)(o.Fragment,{children:Q})}),QM=(0,k.Mz)([Ch.wb,Ch.qX,Ch.Hh,Ch.hu,re.HW,re.wA,re.PL,Oe.nE,q.ml,Ae.zX,Ae.nh,Wc.Yg,Ch.W8,Ch.a7],(e,t,n,r,s,c,d,p,g,y,w,_,j,N)=>({isAutoFillPanelShow:e,autoFillPanelPosition:t,openFrom:n,defaultTab:r,user:s,org:c,project:d,selectedItems:p,preference:g,tableInfoData:{tableSelectionLeftTopInfo:y,editingTableWidget:w},selectedCarouseImage:_,isShowClose:j,canShowAllTab:N})),JM=(0,a.Ng)(e=>QM(e))(XM);var qM=i(92598),$M=i(8293),y8=i(18356),v8=i(547);const ek=(0,k.Mz)([re.X_,re.Ur,re.$S,re.YY,re.wq,re.L8,re.vw],(e,t,n,r,s,c,d)=>({scale:e,currentScreen:t,viewportRect:n,createTemplatesData:r,quickCreateWidget:s,quickCreateBuiltinSceneData:c,isDragClickWidget:d})),tk=()=>{const e=(0,a.d4)(ek),{createTemplatesData:t,quickCreateWidget:n,quickCreateBuiltinSceneData:r,currentScreen:s,isDragClickWidget:c}=e,d=(0,l.useRef)({x:0,y:0});(0,l.useLayoutEffect)(()=>{const j=N=>{d.current={x:N.clientX,y:N.clientY}};return document.addEventListener("mousemove",j),()=>{document.removeEventListener("mousemove",j)}},[]);const p=(0,l.useMemo)(()=>{var j,N;return(r==null?void 0:r.length)>0?r:n&&(j=(N=(0,y8.OZ)((n==null?void 0:n.metaType)||n.type))==null?void 0:N.data)!=null?j:""},[n,r]),g=(0,l.useMemo)(()=>t!=null&&t.length?t.reduce((j,N)=>{if([ne.x.WIcon,ne.x.WImage].includes(N==null?void 0:N.type))j+=1;else if((N==null?void 0:N.length)===2){const[Z]=N;j+=(Z==null?void 0:Z.length)||0}return j},0):0,[t]),y=(0,l.useMemo)(()=>{if(!(t!=null&&t.length))return null;const j=t[t.length-1];if(!j)return null;if([ne.x.WIcon,ne.x.WImage].includes(j.type))return[j];if((j==null?void 0:j.length)===2||(j==null?void 0:j.length)===3){const[N,Z]=j;if(!(N!=null&&N.length))return null;const Q=N[N.length-1];if(!Q)return null;const se=Z.getHotItem(Q.key);return se?[{...se,...se.hotAttr},Z]:null}return null},[t]);if(!s)return null;if(t||r||n){if(y!=null&&y.length){var _;const[j,N]=y;return(0,l.createElement)(x8,{...e,key:(j==null?void 0:j.key)||(j==null?void 0:j._icon_id)||(j==null||(_=j.image)==null?void 0:_.imageRef),initPos:d.current,template:j,store:N,count:g})}return(p==null?void 0:p.length)>0?c?null:(0,l.createElement)(x8,{...e,key:p,initPos:d.current,builtSceData:p}):null}},x8=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(e.initPos),{template:r,store:s,scale:c,builtSceData:d,currentScreen:p,count:g=0}=e,[y,w]=(0,l.useState)(null),[_,j]=(0,l.useState)(null),[N,Z]=(0,l.useState)(!0),Q=(0,a.wA)(),se=N?100:c,ie=(0,l.useMemo)(()=>{if(!y)return null;if(d)return y;if(N){const Dt=y.w/y.h,sn=Math.min(y.w,224),Rn=sn/Dt;return{w:sn,h:Rn}}return y},[N,y,d]),he=(0,l.useCallback)(()=>{if(!r)return null;const Dt=(0,lr.WQ)([r]),sn=Dt.getRootSnapshot(),Rn={sdkStore:Dt},{w:On,h:Lo}=[ne.x.WIcon,ne.x.WImage,ne.x.Canvas].includes(r==null?void 0:r.type)?r:(0,lr.lY)(r,s);return{widgetWrapper:(0,o.jsx)("div",{className:"widget-content",children:(0,o.jsx)(qM.o,{mode:"snapshot",hotItem:sn,treeData:Rn})}),w:On,h:Lo}},[r,s]),xe=(0,l.useCallback)(()=>{if(!d)return null;const{widgetWrapper:Dt,puppetWidth:sn,puppetHeight:Rn}=(0,$M.Ly)(d,p==null?void 0:p.cid);return{widgetWrapper:(0,o.jsx)("div",{className:"widget-content",children:Dt}),w:sn,h:Rn}},[d]);(0,l.useEffect)(()=>{const Dt=r?he():d?xe():null;if(Dt){const{widgetWrapper:sn,w:Rn,h:On}=Dt;j(sn),w({w:Rn,h:On})}},[]);const Se=(0,l.useCallback)(Dt=>{const{target:sn,clientX:Rn,clientY:On}=Dt;if(Array.from(document.querySelectorAll('[data-is-quick-create-quit="true"]')).map(Yo=>Yo.getBoundingClientRect()).some(Yo=>(0,v8.El)(Rn,On,Yo))){if(sn.closest(".toolbar-center")&&sn.closest("shapeContainer")||sn.closest(".widget-insertable")&&!sn.closest(".arrow")||sn.closest(".widget-item")||sn.closest(".template-item")||sn.closest(".ai-widget-item")||sn.closest(".icon-item")||sn.closest(".pic-item")||sn.closest(".sticker-item")||sn.closest(".library-asset-item")||sn.closest(".muban-content")||sn.closest(".thumbnail-list-item"))return;Q({type:"set:quick-create-widget",payload:{widget:null}}),Q({type:"update:screenContainer:state",payload:{createTemplatesData:null}})}},[Q]);(0,l.useLayoutEffect)(()=>{const Dt=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(Rn=>Rn.getBoundingClientRect()),sn=Rn=>{n({x:Rn.clientX,y:Rn.clientY});const On=Dt.some(Lo=>(0,v8.El)(Rn.clientX,Rn.clientY,Lo));Z(On)};return document.addEventListener("mousemove",sn),document.addEventListener("mousedown",Se),()=>{document.removeEventListener("mousemove",sn),document.removeEventListener("mousedown",Se)}},[n,Z]);const{viewportRect:_e}=e;if(t.x>_e.right||t.y<0||t.y>_e.bottom||!_||!ie)return null;const{x:De,y:Je}=t,{w:Ne,h:pt}=ie,_t=se/100,gt=r?"1px dashed black":"none",Ct=r?"#fff":"none",zt={transform:"translate("+Math.round(De+2)+"px, "+Math.round(Je+2)+"px) rotate(0deg)",width:Math.round(Ne*_t)+2,height:Math.round(pt*_t)+2,border:gt,background:Ct};return(0,o.jsxs)(nk,{style:zt,ratio:_t,children:[_,g>1&&(0,o.jsx)("div",{className:"count",children:g})]})}),nk=E.Ay.div.withConfig({displayName:"SnapshotWidgets__StyledSnapshotWidgetsContent",componentId:"sc-1garoxl-0"})(["z-index:108;pointer-events:none !important;position:absolute;overflow:hidden;opacity:0.5;.widget-content{position:absolute;z-index:1;left:0;top:0;transform:",";}.count{height:12px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0 4px;font-family:PingFang SC;font-weight:400;font-size:11px;color:",";background:",";border:1px solid ",";position:absolute;left:5px;top:5px;z-index:2;}"],e=>"scale("+e.ratio+")",e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01);var af=i(75627),_1=i(19713);const ok=E.Ay.div.withConfig({displayName:"styles__StyledFindInput",componentId:"sc-tgtb6d-0"})(["min-width:236px;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;margin-right:8px;display:flex;align-items:center;justify-content:space-between;&.focus{border-color:#1684fc;}input{height:100%;flex:1;width:0;text-indent:8px;margin-right:5px;color:",";&::placeholder{color:#999;}}.notFound{margin-right:8px;}.searching{margin-right:8px;display:flex;align-items:center;.svg-icon.loading-icon{width:14px;height:14px;animation:design-ani-spinning 1.5s infinite ease-out;margin-right:5px;}}.hasResults{display:flex;align-items:center;justify-content:space-between;margin-right:8px;.left,.right{width:20px;height:20px;border-radius:50%;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:8px;height:8px;}&:hover{background:",";}&:active{background:",";}}.left{svg{transform:rotate(90deg);}}.right{svg{transform:rotate(-90deg);}}span{font-size:12px;color:",";margin:0 8px;}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1);class ak extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{focus:!1}),(0,O.A)(this,"setInputRef",t=>this.$input=t),(0,O.A)(this,"handleChange",t=>{const n=t.target.value;this.props.onChange(n),this.props.onClearData()}),(0,O.A)(this,"handleKeyDown",t=>{const{key:n}=t,{onSearch:r}=this.props;n===wn._.Enter&&(r(!1),this.$input.blur(),(0,_1.rn)("\u5FEB\u6377\u952E\u67E5\u627E"))}),(0,O.A)(this,"handlePrev",()=>{const{result:{index:t,total:n},onSetResultIndex:r}=this.props,s=t<=1?n:t-1;r(s),(0,_1.rn)("\u9009\u62E9\u4E0A\u4E00\u9879")}),(0,O.A)(this,"handleNext",()=>{const{result:{index:t,total:n},onSetResultIndex:r}=this.props,s=t>=n?1:t+1;r(s),(0,_1.rn)("\u9009\u62E9\u4E0B\u4E00\u9879")}),(0,O.A)(this,"renderActions",()=>{const{result:{status:t,total:n,index:r}}=this.props;return t===af.nW.notFound?(0,o.jsx)("span",{className:"notFound",children:I18N.Popups.findReplacePanel.notFound}):t===af.nW.searching?(0,o.jsxs)("div",{className:"searching",children:[(0,o.jsx)(Et.C,{name:"general/loading",className:"loading-icon"}),(0,o.jsxs)("span",{children:[I18N.Popups.findReplacePanel.searching,"..."]})]}):t===af.nW.hasResults?(0,o.jsxs)("div",{className:"hasResults",children:[(0,o.jsx)("div",{className:"left",onClick:this.handlePrev,children:(0,o.jsx)(Et.C,{name:"common/expand"})}),(0,o.jsx)("span",{children:r+"/"+n}),(0,o.jsx)("div",{className:"right",onClick:this.handleNext,children:(0,o.jsx)(Et.C,{name:"common/expand"})})]}):null}),(0,O.A)(this,"handleFocus",()=>{this.setState({focus:!0})}),(0,O.A)(this,"handleBlur",()=>{this.setState({focus:!1})})}componentDidMount(){this.$input&&this.$input.focus()}render(){const{value:t,result:{status:n}}=this.props,{focus:r}=this.state;return(0,o.jsxs)(ok,{className:m()({focus:r}),children:[(0,o.jsx)("input",{ref:this.setInputRef,type:"text",disabled:n===af.nW.searching,value:t,placeholder:I18N.Popups.findReplacePanel.inputFindContent,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur}),this.renderActions()]})}}var k3=i(23089),E3=i(3902);const rk=(0,E.Ay)(Il.A).withConfig({displayName:"styles__StyledFindReplacePanel",componentId:"sc-xnu2hf-0"})(["z-index:107;width:426px;min-height:112px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 20px;span{color:",";font-size:14px;font-weight:500;}.icon-times{width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.mainContainer{padding:24px 20px;.line{display:flex;align-items:center;height:40px;width:100%;.option{width:56px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid ",";box-sizing:border-box;border-radius:4px;color:",";background:",";cursor:pointer;transition:background-color 0.2s ease-in-out;&::after{content:'';display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid ",";margin-left:3px;transition:all 0.2s ease-in-out;}&:not(.active):hover{background:",";}&:active,&.active{background:",";&::after{transform:rotate(180deg);}}}.WorkspaceSelect{width:84px;height:36px;flex-shrink:0;}}.foldContainer{margin-top:12px;.line.replace{padding-left:16px;input{flex:1;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;text-indent:8px;color:",";&::placeholder{color:#999;}&:focus{border-color:#1684fc;}}span{color:",";}}footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;button{width:80px;height:32px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px;cursor:pointer;background:",";color:",";border:1px solid ",";transition:all ease-in-out 0.2s;&:not(:active):not(:disabled):hover{background:",";border:1px solid ",";}&:active{background:",";border:1px solid ",";}&:disabled{cursor:not-allowed;color:",";}}.right{display:flex;align-items:center;.replaceAllBtn{margin-left:12px;}}}}}&.isFocusPanel{box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_disabled01),ik=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.findReplacePanelSelectScreenMenu{width:120px;}}"]);class sk extends l.PureComponent{constructor(){var t;super(...arguments),t=this,(0,O.A)(this,"state",{innerHeight:window.innerHeight,innerWidth:window.innerWidth}),(0,O.A)(this,"selectScreenOptionList",[{label:I18N.Popups.findReplacePanel.currentScreen,value:"current"},{label:I18N.Popups.findReplacePanel.allScreen,value:"all"}]),(0,O.A)(this,"handleMove",(n,r)=>{const s={left:n,top:r};this.props.dispatch({type:"findReplacePanel:set:position",payload:{position:s}})}),(0,O.A)(this,"handleClickClose",()=>{this.props.dispatch({type:"findReplacePanel:reset:state"}),(0,_1.rn)("\u5173\u95ED")}),(0,O.A)(this,"handleChangeSearchValue",n=>{this.props.dispatch({type:"findReplacePanel:update",payload:{searchValue:n}}),(0,_1.rn)('"\u67E5\u627E"\u8F93\u5165\u6587\u5B57')}),(0,O.A)(this,"handleSearch",function(n){n===void 0&&(n=!0);const{searchValue:r,selectScreenValue:s,dispatch:c}=t.props;if(r.length===0)return;c({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:s==="current",searchValue:r}}),n&&(0,_1.rn)("\u70B9\u51FB\u67E5\u627E")}),(0,O.A)(this,"handleSelectWidget",n=>{this.props.dispatch({type:"entry:findReplacePanel:select:widget",payload:{index:n}})}),(0,O.A)(this,"handleSelectScreen",async n=>{var r;await this.props.dispatch({type:"findReplacePanel:update",payload:{selectScreenValue:n}}),this.handleSearch(!1);const s="\u9009\u62E9"+((r=this.selectScreenOptionList.find(c=>{let{value:d}=c;return d===n}))==null?void 0:r.label);(0,_1.rn)(s)}),(0,O.A)(this,"handleToggleFold",()=>{const{isFold:n,dispatch:r}=this.props;r({type:"findReplacePanel:update",payload:{isFold:!n}});const s=n?"\u9009\u9879\u5C55\u5F00":"\u9009\u9879\u6298\u53E0";(0,_1.rn)(s)}),(0,O.A)(this,"handleChangeReplaceValue",n=>{const r=n.target.value;this.props.dispatch({type:"findReplacePanel:update",payload:{replaceValue:r}}),(0,_1.rn)('"\u66FF\u6362\u4E3A"\u8F93\u5165\u6587\u5B57')}),(0,O.A)(this,"handleReplace",()=>{this.props.dispatch({type:"entry:findReplacePanel:replace:widget"}),(0,_1.rn)("\u70B9\u51FB\u66FF\u6362")}),(0,O.A)(this,"handleNotice",function(n,r){r===void 0&&(r=void 0);const{selectScreenValue:s,searchValue:c,replaceValue:d,showSelectScreen:p,findWidgetList:g}=t.props,w=s==="current"||!p?t.selectScreenOptionList[0].label:t.selectScreenOptionList[1].label,_=r?r.length:g.length;return n.replace(/%selectScreen%/,w).replace(/%total%/,_).replace(/%find%/,(0,_1._H)(c)).replace(/%replace%/,(0,_1._H)(d))}),(0,O.A)(this,"handleReplaceAll",()=>{const{dispatch:n}=this.props;n({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Popups.findReplacePanel.allReplace,isHTML:!0,desc:this.handleNotice(I18N.Popups.findReplacePanel.allReplaceTips),onConfirm:()=>{n({type:"entry:findReplacePanel:replace:all:widget",payload:{handleReplaceAllNotice:this.handleReplaceAllNotice}}),(0,_1.rn)("\u70B9\u51FB\u5168\u90E8\u66FF\u6362")}}}})}),(0,O.A)(this,"handleReplaceAllNotice",(n,r)=>{const s=this.handleNotice(I18N.Popups.findReplacePanel.notice.allReplaceSuccess,n);MB.notice({text:r.length===0?s:s+"\uFF0C"+I18N.Popups.findReplacePanel.notice.allReplaceFail.replace(/%fail%/,r.length),duration:3e3})}),(0,O.A)(this,"handleClickOutSide",n=>{let{target:r}=n;const s=document.querySelector(".findReplacePanel");if(s){const c=s.contains(r);this.props.dispatch({type:"findReplacePanel:update",payload:{isFocusPanel:c}})}}),(0,O.A)(this,"handleIndex",n=>{const{selectIndex:r,findWidgetList:s}=this.props,{shiftKey:c,key:d}=n,p=d===wn._.Enter,g=s.length;let y=0;return p&&(c?(y=r<=1?g:r-1,(0,_1.rn)("\u5FEB\u6377\u952E\u4E0A\u4E00\u9879")):(y=r>=g?1:r+1,(0,_1.rn)("\u5FEB\u6377\u952E\u4E0B\u4E00\u9879"))),y}),(0,O.A)(this,"handleKeyDown",n=>{const{isFocusPanel:r,dispatch:s}=this.props;if(!r)return;n.stopPropagation();const c=this.handleIndex(n);c&&s({type:"entry:findReplacePanel:select:widget",payload:{index:c}})}),(0,O.A)(this,"handleClearData",()=>{const{findWidgetList:n,dispatch:r}=this.props;n.length&&r({type:"findReplacePanel:clear:result"})}),(0,O.A)(this,"handleReplaceKeyDown",n=>{const{findWidgetList:r}=this.props;if(!r.length)return;const{key:s}=n;s===wn._.Enter&&(this.handleReplace(),(0,_1.rn)("\u5FEB\u6377\u952E\u66FF\u6362"))}),(0,O.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,O.A)(this,"handleUpdateDragOrResizeModal",n=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:n}})})}componentDidMount(){window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateState),this.handleUpdateDragOrResizeModal(!1)}render(){const{show:t,position:n,findWidgetList:r,showSelectScreen:s,searchValue:c,status:d,selectIndex:p,selectScreenValue:g,replaceValue:y,isFocusPanel:w,isFold:_}=this.props,{innerWidth:j,innerHeight:N}=this.state,Z=r.length,Q=d===af.nW.searching,se=d===af.nW.hasResults&&c!==y;if(!t)return null;const ie=Math.max(Math.min(n==null?void 0:n.left,j-426),0),he=Math.max(Math.min(n==null?void 0:n.top,N-220),0);return(0,o.jsx)(dr.A,{position:{left:ie,top:he},onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(rk,{className:m()("findReplacePanel",{isFocusPanel:w}),children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{children:I18N.ToolBar.find_replace}),(0,o.jsx)(Et.C,{className:"icon-times",name:"general/times",onClick:this.handleClickClose})]}),(0,o.jsxs)("div",{className:"mainContainer",children:[(0,o.jsxs)("div",{className:"line",children:[(0,o.jsx)("button",{className:m()("option",{active:!_}),onClick:this.handleToggleFold,children:I18N.Popups.findReplacePanel.option}),(0,o.jsx)(ak,{value:c,result:{status:d,total:Z,index:p},onChange:this.handleChangeSearchValue,onSearch:this.handleSearch,onSetResultIndex:this.handleSelectWidget,onClearData:this.handleClearData}),(0,o.jsx)(k3.mq,{menuClassName:"findReplacePanelSelectScreenMenu",disabled:!s,optionList:this.selectScreenOptionList,value:g,onChange:this.handleSelectScreen})]}),!_&&(0,o.jsxs)("div",{className:"foldContainer",children:[(0,o.jsxs)("div",{className:"line replace",children:[(0,o.jsx)("span",{children:I18N.Popups.findReplacePanel.replaceWith}),(0,o.jsx)("input",{type:"text",value:y,placeholder:I18N.Popups.findReplacePanel.inputReplaceContent,onChange:this.handleChangeReplaceValue,onKeyDown:this.handleReplaceKeyDown})]}),(0,o.jsxs)("footer",{children:[(0,o.jsx)(Fl.tA,{className:"findBtn",disabled:c.length===0||Q,onClick:this.handleSearch,children:Q?I18N.Popups.findReplacePanel.searching:I18N.Popups.findReplacePanel.find}),(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)(Fl.tA,{className:"replaceBtn",disabled:!se,onClick:this.handleReplace,children:I18N.Popups.findReplacePanel.replace}),(0,o.jsx)(Fl.tA,{className:"replaceAllBtn",disabled:!se,onClick:this.handleReplaceAll,children:I18N.Popups.findReplacePanel.allReplace})]})]})]})]}),(0,o.jsx)(ik,{}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(this.handleClickOutSide,{capture:!0}),onKeyDown:this.handleKeyDown})]})})}}const lk=(0,k.Mz)([E3.Gh,we.r],(e,t)=>{let{show:n,position:r,findWidgetList:s,searchValue:c,status:d,selectScreenValue:p,selectIndex:g,replaceValue:y,isFocusPanel:w,isFold:_}=e,{isEditingProjectMain:j}=t;return{show:n,position:r,findWidgetList:s,searchValue:c,status:d,selectScreenValue:p,selectIndex:g,replaceValue:y,showSelectScreen:j,isFocusPanel:w,isFold:_}}),ck=(0,a.Ng)(e=>lk(e))(sk),dk=(0,E.DU)(["@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2d1he_escmAm9w.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dxhe_escmAm9w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dJhe_escmA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K8-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K9-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3Kz-C8CSKlv.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:normal;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light'),local('AveriaSerifLibre-Light'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIVzD2ms4wxr6GvjeD0X88SHPyX2xYGCSmaxq0rVLG_bA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light Italic'),local('AveriaSerifLibre-LightItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzMmw50pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:400;font-display:swap;src:local('Averia Serif Libre Italic'),local('AveriaSerifLibre-Italic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIUzD2ms4wxr6GvjeD0X88SHPyX2xYOpzuN4YgEfLu3.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:700;font-display:swap;src:local('Averia Serif Libre Bold Italic'),local('AveriaSerifLibre-BoldItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzM2xJ0pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_pM4zT305QaYc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_qs4zT305QQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8UrOS8XlNQqOw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8XLOS8XlNQg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MSXK_MQacb0yG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MR3K_MQacbw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel Decorative';font-style:normal;font-weight:700;font-display:swap;src:local('Cinzel Decorative Bold'),local('CinzelDecorative-Bold'),url(https://fonts.gstatic.com/s/cinzeldecorative/v9/daaHSScvJGqLYhG8nNt8KPPswUAPniZoadlESTGplhXF.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfYPlC2xcZqTFU3AS.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfY3lC2xcZqTFUw.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rR0Tu2KrfuYFE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rf0Tu2Krfu.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oiIazQTJjFuER.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ogYazQTJjFuER.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oioazQTJjFuER.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oi4azQTJjFuER.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ohYazQTJjFg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Flamenco';font-style:normal;font-weight:400;font-display:swap;src:local('Flamenco Regular'),local('Flamenco-Regular'),url(https://fonts.gstatic.com/s/flamenco/v11/neIIzCehqYguo67ssZWBFqwYUp31.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysd0mg7UiCXB5WkK8.woff) format('woff');unicode-range:U+0590-05FF,U+20AA,U+25CC,U+FB1D-FB4F;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysdUmg7UiCXB5W.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'IM Fell DW Pica';font-style:normal;font-weight:400;font-display:swap;src:local('IM FELL DW Pica Roman'),local('IM_FELL_DW_Pica_Roman'),url(https://fonts.gstatic.com/s/imfelldwpica/v10/2sDGZGRQotv9nbn2qSl0TxXVYNwNYwnVnCwsMA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVFNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVPNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVBNI4un_HKOEo.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthQOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthfOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthROCfhsCkA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz0dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzQdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzwdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzMdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz8dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz4dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzAdL-vwnYg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Udc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0ddc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Vdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0adc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Wdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Xdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Zdc1GAK6b.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWJ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFUZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-mPCLC79U11vU.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-oPCLC79U1.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkido18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7qsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7jsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7rsDJB9cme_xc.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7ksDJB9cme_xc.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7osDJB9cme_xc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJB9cme_xc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDJB9cme.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklyds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lujVj9_mf.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lujVj9_mf.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lujVj9_mf.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lujVj9_mf.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lujVj9_mf.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lujVj9_mf.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7p29NfpiOjk20.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7g29NfpiOjk20.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7r29NfpiOjk20.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7q29NfpiOjk20.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7k29NfpiOj.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaORs7nczIHNHI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaHRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaMRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaNRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaDRs7nczIH.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOOaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIMeaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOuaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIO-aBTMnFcQIG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-03FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}"]),pk=E.Ay.input.withConfig({displayName:"anchor__StyledClipboardAnchor",componentId:"sc-1h1z30o-0"})(["position:fixed;width:20px;height:20px;top:-9999px;left:-9999px;"]),uk=(0,k.Mz)([re.X_,re.wq,re.Sb,re.hz,re.Ur,re.$S],(e,t,n,r,s,c)=>({scale:e,quickCreateWidget:t,quickCreateWidgetFrom:n,isStartCreatingCanvas:r,currentScreen:s,viewportRect:c})),hk=()=>{const e=(0,a.d4)(uk),{quickCreateWidget:t,isStartCreatingCanvas:n,currentScreen:r}=e,s=(0,l.useRef)({x:0,y:0});return(0,l.useLayoutEffect)(()=>{const c=d=>{s.current={x:d.clientX,y:d.clientY}};return document.addEventListener("mousemove",c),()=>{document.removeEventListener("mousemove",c)}},[n]),!r||n||(t==null?void 0:t.type)!==ne.x.Canvas||t.metaType===ne.x.CanvasAsOverlay?null:(0,o.jsx)(mk,{...e,initPos:s.current})},mk=e=>{const[t,n]=(0,l.useState)(e.initPos);(0,l.useLayoutEffect)(()=>{const Z=Q=>{n({x:Q.clientX,y:Q.clientY})};return document.addEventListener("mousemove",Z),()=>{document.removeEventListener("mousemove",Z)}},[t]);const{scale:r,currentScreen:s,viewportRect:c,quickCreateWidgetFrom:d,quickCreateWidget:p}=e;if(!(t.x>c.x&&t.y>c.y))return null;const g=r/100,{x:y,y:w}=t;let _=s.deviceW,j=s.deviceH;s.deviceOrientation!=="portrait"&&(j=s.deviceW,_=s.deviceH),d===Kd.Hq.modal&&(j=p.h,_=p.w);const N={transform:"translate("+y+"px,"+w+"px) rotate(0deg)",width:_*g,height:j*g};return(0,o.jsx)(fk,{style:N})},fk=E.Ay.div.withConfig({displayName:"CanvasPhantom__StyledCanvasPhantom",componentId:"sc-1lmwwjx-0"})(["z-index:1;pointer-events:none !important;position:absolute;background:white;border:1px dashed black;opacity:0.5;"]),b8=()=>{const[e,t]=(0,l.useState)(0);return()=>{t(e+1)}};var kc=i(85449);const gk=[{type:ne.x.WFlowProcess},{type:ne.x.WFlowDecision},{type:ne.x.WFlowStartEnd},{type:ne.x.WFlowDoc},{type:ne.x.WFlowData},{type:ne.x.WFlowSubProcess},{type:ne.x.WFlowOuterData},{type:ne.x.WFlowInnerData},{type:ne.x.WFlowQueueData},{type:ne.x.WFlowDatabase1},{type:ne.x.WFlowDatabase2},{type:ne.x.WFlowHumanInput},{type:ne.x.WFlowCard},{type:ne.x.WFlowStrip},{type:ne.x.WFlowShow},{type:ne.x.WFlowHumanOp},{type:ne.x.WFlowPrepare},{type:ne.x.WFlowConcurrent},{type:ne.x.WFlowLoop},{type:ne.x.WFlowRefInPage},{type:ne.x.WFlowOr},{type:ne.x.WFlowSum},{type:ne.x.WFlowRefCrossPage},{type:ne.x.WFlowSort},{type:ne.x.WFlowUnion},{type:ne.x.WFlowCommentRight},{type:ne.x.WFlowCommentLeft},{type:ne.x.WFlowNoteRight},{type:ne.x.WFlowNoteLeft}];function yk(){const e=(0,l.useRef)(void 0),t=(0,l.useRef)({x:0,y:0}),n=(0,l.useRef)(""),r=b8();return(0,l.useEffect)(()=>{const s=c=>{let{from:d,mousePos:p,elbowKey:g}=c;e.current=d,t.current=p,n.current=g,r()};return T1.A.on("elbowPopupShowed",s),()=>{T1.A.off("elbowPopupShowed",s)}},[r]),e.current===void 0?null:(0,o.jsx)(vk,{openFromRef:e,positionRef:t,elbowKeyRef:n,refresh:r})}const vk=e=>{const{openFromRef:t,positionRef:n,elbowKeyRef:r,refresh:s}=e;(0,l.useEffect)(()=>{const ie=he=>{he.target.closest("#widget-popup")||(t.current=void 0,s())};return document.addEventListener("mousedown",ie),()=>{document.removeEventListener("mousedown",ie)}},[]);const c=(0,a.wA)(),d=(0,a.d4)(q.O4),p=n.current,g=(0,kc.dP)(),y=(0,re.$S)(g),w=260,_=198;let j=p.x,N=p.y;j+w>=y.right&&(j=p.x-w),N+_>=y.bottom&&(N=p.y-_);const Z={top:N,left:j},Q=(ie,he)=>{ie.stopPropagation(),ie.preventDefault(),c({type:"entry:elbow:popup:create",payload:{elbowKey:r.current,widgetType:he,openFrom:t.current}}),t.current=void 0,s()},se=ie=>{ie.stopPropagation()};return(0,o.jsx)(xk,{id:"widget-popup",className:d,style:Z,onClick:se,children:(0,o.jsx)("div",{className:"flow-widget-popup-container",children:gk.map((ie,he)=>(0,o.jsx)("div",{className:"cell",onClick:xe=>Q(xe,ie.type),children:(0,o.jsx)(Et.C,{size:32,name:"flow/popup/"+ie.type})},he))})})},xk=E.Ay.div.withConfig({displayName:"FlowWidgetPopup__StyledWidgetPopup",componentId:"sc-gkliul-0"})(["position:absolute;width:260px;height:198px;box-shadow:4px 12px 40px 0px rgba(39,54,78,0.1);border-radius:8px;background:",";padding-top:15px;&.dark{outline:1px solid ",";}.flow-widget-popup-container{height:182px;pointer-events:auto;overflow:auto;display:flex;flex-wrap:wrap;cursor:pointer;padding:1px 10px 16px 16px;gap:14px 6px;.cell{display:flex;width:32px;height:32px;&:hover{background:",";outline:1px solid #1685fc;border-radius:4px;}.svg-icon{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_border_state,e=>e.theme.color_bg_select03,e=>e.theme.color_text_L1);var em=i(18501),Mg=i(8228),Df=i(28068);const bk=E.Ay.div.withConfig({displayName:"styles__StyledChatGuide",componentId:"sc-daab3z-0"})(['display:flex;width:100%;height:100%;.close-guide{display:flex;position:absolute;right:24px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.try-now{font-weight:700;font-size:20px;text-align:center;color:rgb(255,255,255);padding:0px 103px;height:50px;border-radius:25px;background:#A2CEFE;position:absolute;margin-left:50%;transform:translateX(-50%);line-height:50px;bottom:74px;pointer-events:none;&.isAgree{pointer-events:auto;background:linear-gradient(89.18deg,#1684FC 6.64%,#3BE4FD 103.74%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);cursor:pointer;}&:hover,&:active{background:linear-gradient(89.29deg,#0074F3 6.59%,#2FD7FF 126.05%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);}}.agree-inkblade{position:absolute;bottom:26px;display:flex;justify-content:center;width:100%;font-weight:400;font-size:14px;line-height:16px;display:flex;align-items:center;color:#6B7094;.use-agreement{display:flex;}svg{wdith:16px;height:16px;margin-right:10px;cursor:pointer;g{rect{fill:white;}}}.agreement-content{background:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;cursor:pointer;border-bottom:1px solid;border-image-source:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);border-image-slice:1;display:flex;justify-content:center;}}.tips{max-width:335px;position:absolute;background-color:#fff;box-sizing:border-box;padding:20px 16px 20px 24px;background:#333333;border-radius:4px;bottom:calc(100% + 6px);font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;span{color:white;}div{margin-top:10px;}.tip-title{font-size:14px;font-weight:500;display:flex;margin-top:0px;svg{margin-right:2px;}}&::after{content:"";position:absolute;bottom:-12px;left:50%;transform:translateY(-100%);display:inline-block;width:0px;height:0px;cursor:pointer;border-left:8px solid transparent;border-right:8px solid transparent;border-top:6px solid #333333;}}']);class Ck extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{isAgree:!1,showAgreement:!1}),(0,O.A)(this,"toggleSelect",()=>{const{isAgree:t}=this.state;this.setState({isAgree:!t})}),(0,O.A)(this,"handleTryNow",()=>{const{closeGuide:t}=this.props;t&&t(!0),MB.commonGuideHelper.markGuideAsRead("GUIDE_CHATGPT_AGREE_AGREEMENT")})}render(){const{isAgree:t,showAgreement:n}=this.state,{closeGuide:r}=this.props,s=[I18N.ChatGPT.ai_protocol_1,I18N.ChatGPT.ai_protocol_2,I18N.ChatGPT.ai_protocol_3,I18N.ChatGPT.ai_protocol_4,I18N.ChatGPT.ai_protocol_5];return(0,o.jsxs)(bk,{children:[(0,o.jsx)(Fd.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:()=>r(!1)}),(0,o.jsxs)("div",{className:"guide-bottom",children:[(0,o.jsx)("div",{className:m()("try-now",t&&"isAgree"),onClick:this.handleTryNow,children:I18N.ChatGPT.try_now}),(0,o.jsxs)("div",{className:"agree-inkblade",children:[(0,o.jsx)(Fd.C,{name:t?"chatGPT/protocol_select":"chatGPT/protocol_no_select",className:"close-modal",onClick:this.toggleSelect,isColorPure:!0}),(0,o.jsxs)("div",{className:"use-agreement",children:[I18N.ChatGPT.agree_inkblade,(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginLeft:"2px"},children:[(0,o.jsxs)("div",{className:"agreement-content",onMouseOver:()=>{this.setState({showAgreement:!0})},onMouseLeave:()=>{this.setState({showAgreement:!1})},children:[" ",I18N.ChatGPT.ai_use_agreement," "]}),n&&(0,o.jsxs)("div",{className:"tips",children:[(0,o.jsxs)("div",{className:"tip-title",children:[!ENV.IS_WONDER_SHARE&&(0,o.jsx)(Fd.C,{name:"chatGPT/ai-point-icon",isColorPure:!0}),I18N.ChatGPT.ai_protocol_title]}),s.map((c,d)=>(0,o.jsx)("div",{children:c},d))]})]})]})]})]})]})}}var C8=i(21337);const wk=E.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1dk3ti-0"})(["padding:10px 20px 12px 20px;.error-tip{font-size:12px;line-height:17px;color:",";height:20px;line-height:20px}.recommend-content{display:flex;flex-direction:column;align-items:center;width:100%;.recommend-title{font-size:12px;line-height:17px;color:",";width:100%;text-align:left;margin-bottom:6px;}.recommend{margin-bottom:8px;cursor:pointer;font-size:12px;line-height:17px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:center;color:",";&:hover{color:",";}}&:last-child{margin-bottom:0px;}}"],e=>e.theme.color_primary_brand02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal);function Sk(e){const{sendMessageHandle:t,generating:n,currentAIComponent:{recommends:r},handleInputFocus:s,userInput:c,setUserInput:d}=e,p=(0,l.useRef)(null),g=()=>{p&&p.current.blur(),t(c)},y=w=>{p&&p.current.focus(),d(w)};return(0,o.jsxs)(wk,{children:[(0,o.jsx)(l8,{userInput:c,generating:n,handleInputChange:y,handleInputFocus:s,sendAction:g,ref:p}),(0,o.jsx)("div",{className:"error-tip",children:c.length>=200?I18N.ChatGPT.ai_input_200_limit:""}),(0,o.jsxs)("div",{className:"recommend-content",children:[(0,o.jsx)("div",{className:"recommend-title",children:I18N.ChatGPT.ai_example}),r.map((w,_)=>(0,o.jsx)("div",{className:"recommend",onClick:()=>y(w),children:w},_))]})]})}var Ak=i(515),Mk=i(73489),kk=i(18876),Ek=i(57170),Ik=i(36329),Tk=i(28735),_k=i(92717),Pk=i(65042),w8=i(54959),I3=i(16966),Lk=i(34237),Nk=i(95127),jk=i(97866),Dk=i(7509),Ok=i(37258),Rk=i(81199),Bk=i(35726),Uk=i(4400),Fk=i(2540),Vk=i(43213),kg=i(72227),zk=i(47804),S8=i(41612),Wk=i(77064),Hk=i(81334),Gk=i(40178),Zk=i(74778),wh=i(60675),Kk=i(9629),Yk=i(89384),Xk=i(43778),Qk=i(83481),Jk=i(70059),qk=i(52713),$k=i(57009),eE=i(36560),tE=i(64554),nE=i(90792),T3=i(23322),oE=i(33189),aE=i(18619),rE=i(66941),iE=i(3210),sE=i(35716),lE=i(84184),cE=i(82807),dE=i(85385),pE=i(16100),uE=i(91775),A8=i(7041),ld=i(38286),Of=i(30631),hE=i(74577);const _l={[fn.x.WWrap]:aE.gs,[fn.x.WRect]:Dh.wN,[fn.x.WOval]:Ak.y7,[fn.x.WAudio]:Mk.Kq,[fn.x.WVideo]:kk.pA,[fn.x.WImage]:Ek.ND,[fn.x.WPolygon]:Ik.g5,[fn.x.WStar]:Tk.U4,[fn.x.Canvas]:I3.Nc,[fn.x.WLine]:_k.Wq,[fn.x.WArrow]:Pk.Rl,[fn.x.WButton]:w8.Ys,[fn.x.RbPage]:mr.gO,[fn.x.WTriangleB]:Lk.Ru,[fn.x.WTriangleTL]:Nk.DP,[fn.x.WPlaceholder]:jk.C1,[fn.x.WLR]:Dk.eo,[fn.x.WButtonSolid]:w8.tw,[fn.x.WRichText]:Ok.l$,[fn.x.WMTextInput]:Rk.cI,[fn.x.WMTextArea]:Bk.ji,[fn.x.WMSelect]:Uk.Xn,[fn.x.WSticky]:Fk.pI,[fn.x.WDropMenu]:Vk.e_,[fn.x.WTable]:kg.ix,[fn.x.WMFileInput]:zk.Vk,[fn.x.WSelectionControlRadio]:(0,S8.Pd)("radio"),[fn.x.WSelectionControlCheckbox]:(0,S8.Pd)("checkbox"),[fn.x.WAndroidSwitch]:Wk.r9,[fn.x.WIOSSwitch]:Hk.fk,[fn.x.WSlider]:Gk.v0,[fn.x.WDigitalStepper]:Zk.Zt,[fn.x.WBarChart]:(0,wh.o2)("bar_chart"),[fn.x.WHorizontalBarChart]:(0,wh.o2)("horizontal_bar_chart"),[fn.x.WLineChart]:(0,wh.o2)("line_chart"),[fn.x.WLineAreaChart]:(0,wh.o2)("line_area_chart"),[fn.x.WPieChart]:(0,wh.o2)("pie_chart"),[fn.x.WRingChart]:(0,wh.o2)("ring_chart"),[fn.x.WProgressChart]:(0,wh.o2)("progress_chart"),[fn.x.WRadarChart]:(0,wh.o2)("radar_chart"),[fn.x.WMixedBarLineChart]:(0,wh.o2)("mixed_bar_line_chart"),[fn.x.WMTooltip]:Kk.gZ,[fn.x.WMapView]:Yk.$x,[fn.x.WQRCode]:oE.uM,[fn.x.WWebpage]:Xk.lR,[fn.x.WCarousel]:Qk.aQ,[fn.x.WTabs]:Jk.SH,[fn.x.WPaginationMobile]:$k.of,[fn.x.WPaginationWeb]:qk.At,[fn.x.WCollapse]:eE.Zs,[fn.x.WSegmentedControl]:tE.VH,[fn.x.WMobileTabBars]:nE.D3,[fn.x.WNavigationMenu]:(0,T3.Nb)(0),[fn.x.WNavigationMenuH]:(0,T3.Nb)(2),[fn.x.WNavigationMenuV]:(0,T3.Nb)(1),[fn.x.WBasket]:rE.Iz,[fn.x.WIcon]:iE.T4,[fn.x.WElbow]:sE.rZ,[fn.x.WTear]:cE.wK,[fn.x.WUnifiedKeyboard]:lE.zv,[fn.x.WIphoneXSB]:dE.t,[fn.x.WVector]:pE.jJ,[fn.x.WTriangle]:uE.ml,[fn.x.WSwimlane]:(0,A8.QV)("leftRight"),[fn.x.WSwimlaneV]:(0,A8.QV)("topBottom"),[fn.x.wFlowClosed]:(0,ld.Cr)("doc"),[fn.x.WFlowProcess]:(0,ld.Cr)("process"),[fn.x.WFlowDecision]:(0,ld.Cr)("decision"),[fn.x.WFlowStartEnd]:(0,ld.Cr)("startEnd"),[fn.x.WFlowDoc]:(0,ld.Cr)("doc"),[fn.x.WFlowData]:(0,ld.Cr)("data"),[fn.x.WFlowSubProcess]:(0,ld.Cr)("subProcess"),[fn.x.WFlowOuterData]:(0,ld.Cr)("outerData"),[fn.x.WFlowInnerData]:(0,ld.Cr)("innerData"),[fn.x.WFlowQueueData]:(0,ld.Cr)("queueData"),[fn.x.WFlowDatabase1]:(0,ld.Cr)("database1"),[fn.x.WFlowDatabase2]:(0,ld.Cr)("database2"),[fn.x.WFlowHumanInput]:(0,ld.Cr)("humanInput"),[fn.x.WFlowCard]:(0,ld.Cr)("card"),[fn.x.WFlowStrip]:(0,ld.Cr)("strip"),[fn.x.WFlowShow]:(0,ld.Cr)("show"),[fn.x.WFlowHumanOp]:(0,ld.Cr)("humanOp"),[fn.x.WFlowPrepare]:(0,ld.Cr)("prepare"),[fn.x.WFlowLoop]:(0,ld.Cr)("loop"),[fn.x.WFlowRefInPage]:(0,ld.Cr)("refInPage"),[fn.x.WFlowOr]:(0,ld.Cr)("or"),[fn.x.WFlowSum]:(0,ld.Cr)("sum"),[fn.x.WFlowRefCrossPage]:(0,ld.Cr)("refCrossPage"),[fn.x.WFlowSort]:(0,ld.Cr)("sort"),[fn.x.WFlowUnion]:(0,ld.Cr)("union"),[fn.x.WFlowConcurrent]:(0,Of.B1)("concurrent"),[fn.x.WFlowCommentLeft]:(0,Of.B1)("commentLeft"),[fn.x.WFlowCommentRight]:(0,Of.B1)("commentRight"),[fn.x.WFlowNoteLeft]:(0,Of.B1)("noteLeft"),[fn.x.WFlowNoteRight]:(0,Of.B1)("noteRight"),[fn.x.WAndroidSB]:hE.Z};var gl=function(e){return e.text="text",e.rectangle="rectangle",e.image="image",e.oval="oval",e.line="line",e.button="button",e.iphoneXSB="appStatusBar",e.arrow="arrow",e.mTextInput="textInput",e.mTextarea="textArea",e.dropList="dropList",e.dropMenu="dropDownMenu",e.radioSelection="radioBox",e.checkbox="checkBox",e.table="table",e.genProto="genproto",e.mind="mind",e.flow="flow",e.chart="chart",e.genComponent="gencomponent",e.modelPage="modelPage",e.customPage="customPage",e.genPrd="genprd",e.textFill="textfill",e.editImage="editimage",e.editText="edittext",e.textTranslate="texttranslate",e.textPolish="textpolish",e.textStyle="textstyle",e.textExpand="textexpand",e.textShort="textshort",e.editStyle="editstyle",e}(gl||{}),$l=function(e){return e[e.Unknown=0]="Unknown",e[e.Success=200]="Success",e[e.Unauthorized=401]="Unauthorized",e[e.PointsInsufficient=403]="PointsInsufficient",e[e.AnotherConversation=405]="AnotherConversation",e[e.HandleExceptions=409]="HandleExceptions",e[e.ContentViolation=451]="ContentViolation",e[e.NotSupport=510]="NotSupport",e[e.TextOverLimit=601]="TextOverLimit",e[e.NotSupportMultiple=602]="NotSupportMultiple",e[e.NotFindEditObject=603]="NotFindEditObject",e[e.ResultViolation=422]="ResultViolation",e[e.NotSupportCanvas=423]="NotSupportCanvas",e}($l||{}),_3=function(e){return e.success="success",e.warning="warning",e.fail="error",e}(_3||{}),mE=function(e){return e.default="default",e.editText="editText",e.imageEdit="imageEdit",e.textFill="textFill",e.editStyle="editStyle",e}(mE||{});const PX={Page:"\u751F\u6210\u539F\u578B\u9875\u9762",flow:"\u751F\u6210\u6D41\u7A0B\u56FE",mind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",table:"\u751F\u6210\u8868\u683C",chart:"\u751F\u6210\u56FE\u8868",gentext:"\u751F\u6210\u6587\u672C\u7EC4\u4EF6",genrectangle:"\u751F\u6210\u77E9\u5F62\u7EC4\u4EF6",genimage:"\u751F\u6210\u56FE\u7247",genoval:"\u751F\u6210\u5706\u5F62\u7EC4\u4EF6",genline:"\u751F\u6210\u7EBF\u6761\u7EC4\u4EF6",genbutton:"\u751F\u6210\u6309\u94AE\u7EC4\u4EF6",genappstatusbar:"\u751F\u6210APP\u72B6\u6001\u680F\u7EC4\u4EF6",genarrow:"\u751F\u6210\u7BAD\u5934\u7EC4\u4EF6",gentextinput:"\u751F\u6210\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",gentextarea:"\u751F\u6210\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",gendroplist:"\u751F\u6210\u4E0B\u62C9\u9009\u62E9\u5668\u7EC4\u4EF6",gendropdownmenu:"\u751F\u6210\u4E0B\u62C9\u83DC\u5355\u7EC4\u4EF6",genradiobox:"\u751F\u6210\u5355\u9009\u7EC4\u4EF6",gencheckbox:"\u751F\u6210\u590D\u9009\u7EC4\u4EF6",gencomponent:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",genmodelpage:"\u751F\u6210\u6307\u5B9A\u673A\u578B\u9875\u9762",gencustompage:"\u751F\u6210\u81EA\u5B9A\u4E49\u9875\u9762",genprd:"\u751F\u6210\u4EA7\u54C1\u6587\u6863",textfill:"\u667A\u80FD\u6587\u672C\u586B\u5145",editimage:"\u667A\u80FD\u56FE\u7247\u586B\u5145",edittext:"\u7F16\u8F91\u6587\u672C",texttranslate:"\u7F16\u8F91\u6587\u672C",textpolish:"\u7F16\u8F91\u6587\u672C",textstyle:"\u7F16\u8F91\u6587\u672C",textexpand:"\u7F16\u8F91\u6587\u672C",textshort:"\u7F16\u8F91\u6587\u672C",editstyle:"\u7F16\u8F91\u6837\u5F0F",genproto:"\u751F\u6210\u539F\u578B\u9875\u9762",genflow:"\u751F\u6210\u6D41\u7A0B\u56FE",genmind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",gentable:"\u751F\u6210\u8868\u683C",genchart:"\u751F\u6210\u56FE\u8868"};var fE=i(41589),Iu=i.n(fE),gE=i(50960),Eg=i.n(gE),LX=i(4820);const NX=e=>{try{const[t,n,r,s]=e.split(","),c=parseInt(t.split("(")[1]),d=parseInt(n),p=parseInt(r),g=Number(s.split(")")[0])*100;return fromRGBAo({R:c,G:d,B:p,A:g})}catch(t){return console.log("bad rgbaCSS color",e),4126537215}},Xi=e=>{const t=e.split("#")[1];return e.split("#")[1].length===3?+("0x"+t+t+"ff"):t.length===8?+("0x"+t):+("0x"+t+"ff")},jX=e=>{const t=e!=null?e:0;return{pT:t,pR:t,pB:t,pL:t}},DX=e=>({textV0:{...DEFAULT_TEXT_V0,...e}}),q1=e=>{try{const{x:t,y:n}=e;return{x:Number(t),y:Number(n)}}catch(t){return null}},Tp=e=>{try{const{w:t,h:n}=e;return{w:Number(t),h:Number(n)}}catch(t){return null}},yE=e=>{try{const{ul:t,ur:n,dl:r,dr:s}=e;return{ul:Number(t),ur:Number(n),dl:Number(r),dr:Number(s)}}catch(t){return null}},vE=e=>{try{if(!e)return null;const{x:t,y:n,b:r,s}=e;return{x:Number(t),y:Number(n),b:Number(r),s:Number(s)}}catch(t){return null}},R2=e=>!e||e==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:e==="italy",bold:e==="bold",underline:e==="underline",strikethrough:e==="dash"},Rm=e=>{try{if(!e)return null;const t=yE(e);if(!t)return null;const{ul:n,ur:r,dl:s,dr:c}=t;return n===r&&r===s&&s===c?n:{radiusTL:n,radiusTR:r,radiusBL:s,radiusBR:c}}catch(t){return null}},Sh=e=>{try{const t=vE(e);if(!t)return null;const{x:n,y:r,b:s,s:c}=t;return n===0&&r===0&&s===0&&c===0?null:{offsetX:n,offsetY:r,blurRadius:s,spreadRadius:c,shadowIsVisible:!0,shadowColor:102,type:"box_shadow"}}catch(t){return null}},Ah=(e,t,n)=>{try{if(!t)return null;const r=M8(t);return{bdrColor:Xi(e),bdrIsVisible:!0,bdrStyle:r,bdrWidth:Number(n)}}catch(r){return null}},M8=e=>{let t="solid";return e==="dash"?t="dashed":e==="dot"&&(t="dotted"),t},xE=[fn.x.WRichText,fn.x.WRect,fn.x.WOval,fn.x.WButton,fn.x.WLine,fn.x.WImage,fn.x.WTable],bE=[fn.x.WRichText,fn.x.WLine],CE=[fn.x.WImage,fn.x.WLine],wE=[fn.x.WLine,fn.x.WTable,fn.x.WRichText,fn.x.WOval],SE=[fn.x.WTable,fn.x.WRichText],AE=(e,t)=>{let{selectedTrees:n,editingCid:r,updateEditingCid:s,getHotItem:c}=t;try{if(!e||Object.keys(e).length===0)return{status:$l.HandleExceptions};const{opacity:d,radius:p,"fill-color":g,"stroke-color":y,"stroke-style":w,"stroke-weight":_,"font-size":j,"font-color":N,"text-align":Z,"font-format":Q}=e,ie=(0,l0.n3)(n).filter(xe=>xE.includes(xe.type));if(!ie||ie.length===0)return{status:$l.NotFindEditObject};r&&ie.map(xe=>xe.key).includes(r)&&s({item:{cid:""}});const he=[];return ie.forEach(xe=>{const{type:Se}=xe,_e=c(xe.key);if(!_e)return;const De=Iu()(_e),{hotAttr:Je}=De;d&&(Je.opacity=d),!wE.includes(Se)&&p&&(Je.borderRadius=Rm(p)),!SE.includes(Se)&&g&&(Je.fill.solidColor=Xi(g)),bE.includes(Se)||ME(Je,y,w,_,Se),!CE.includes(Se)&&(j||N||Z||Q)&&(Se===fn.x.WTable?EE(Je,j,N,Z,Q):Se===fn.x.WButton?IE(Je,j,N,Z,Q):kE(Je,j,N,Z,Q)),he.push(De)}),{status:$l.Success,hotItems:he}}catch(d){return console.error("genEditStyle error:",d),{status:$l.HandleExceptions}}},ME=(e,t,n,r,s)=>{!t&&!n&&!r||(s===fn.x.WTable?(t&&(e.tableConfig.outerBorder.bdrColor=Xi(t),e.tableConfig.innerBorderH.bdrColor=Xi(t),e.tableConfig.innerBorderV.bdrColor=Xi(t)),r&&(e.tableConfig.outerBorder.bdrWidth=Number(r),e.tableConfig.innerBorderH.bdrWidth=Number(r),e.tableConfig.innerBorderV.bdrWidth=Number(r))):((t||n||r)&&(e.border||(e.border={bdrColor:3149642751,bdrIsVisible:!0,bdrStyle:"solid",bdrWidth:1})),t&&(e.border.bdrColor=Xi(t)),r&&(e.border.bdrWidth=Number(r)),n&&(e.border.bdrStyle=M8(n))))},kE=(e,t,n,r,s)=>{if(!t&&!n&&!r&&!s)return;const{textV1:{blocks:c}}=e;if(t){const w=Eg()(t*1.399+.251);e.richTextV1.fontSize=t,e.richTextV1.lineHeight=w}n&&(e.richTextV1.textColor=n),r&&(e.richTextV1.horizontalAlign=r);let d=!1,p=!1,g=!1,y=!1;if(s&&s!=="none"){const{italic:w,bold:_,underline:j,strikethrough:N}=R2(s);d=w,g=j,p=_,y=N,w&&(e.richTextV1.italic=w),_&&(e.richTextV1.bold=_),j&&(e.richTextV1.underline=j),N&&(e.richTextV1.strikethrough=N)}c&&(Object.values(c).forEach(w=>{const{type:_}=w;let j=w.inlineStyleRanges;_!=="atomic"&&j&&(n&&(j=j.filter(N=>!N.style.startsWith("color-"))),t&&(j=j.filter(N=>!N.style.startsWith("fontsize-")&&!N.style.startsWith("lineheight-"))),d&&(j=j.filter(N=>N.style!=="ITALIC")),g&&(j=j.filter(N=>N.style!=="UNDERLINE")),p&&(j=j.filter(N=>N.style!=="BOLD")),y&&(j=j.filter(N=>N.style!=="STRIKETHROUGH"))),w.inlineStyleRanges=j}),e.textV1.blocks=JSON.parse(JSON.stringify(c)))},EE=(e,t,n,r,s)=>{let c=!1,d=!1,p=!1,g=!1;if(s&&s!=="none"){const{italic:_,bold:j,underline:N,strikethrough:Z}=R2(s);c=_,p=N,d=j,g=Z}const{tableData:{cellStyles:y}}=e;if(n&&(e.textV0.textColor=Xi(n)),t){const _=Eg()(t*1.399+.251);e.textV0.fontSize=t,e.textV0.lineHeight=_}r&&(e.textV0.horizontalAlign=r);const w=[];y.forEach(_=>{const j=[];_.forEach(N=>{let Z=[];N&&(Z=N.split(";"),t&&(Z=Z.filter(Q=>!Q.startsWith("font-size"))),n&&(Z=Z.filter(Q=>!Q.startsWith("color:"))),r&&(Z=Z.filter(Q=>!Q.startsWith("text-align")),Z.push("text-align: "+r)),c&&(Z=Z.filter(Q=>!Q.startsWith("font-style")),Z.push("font-style: italic")),d&&(Z=Z.filter(Q=>!Q.startsWith("font-weight")),Z.push("font-weight: bold")),p&&(Z=Z.filter(Q=>!Q.startsWith("text-decoration")),Z.push("text-decoration: underline")),g&&(Z=Z.filter(Q=>!Q.startsWith("text-decoration")),Z.push("text-decoration: line-through"))),j.push(Z.join(";"))}),w.push(j)}),e.tableData.cellStyles=w},IE=(e,t,n,r,s)=>{if(!(!t&&!n&&!r&&!s)){if(t){const c=Eg()(t*1.399+.251);e.textV0.fontSize=t,e.textV0.lineHeight=c}if(n&&(e.textV0.textColor=Xi(n)),r&&(e.textV0.horizontalAlign=r),s&&s!=="none"){const{italic:c,bold:d,underline:p,strikethrough:g}=R2(s);d&&(e.textV0.bold=d),c&&(e.textV0.italic=c),p&&(e.textV0.textDecoration="underline"),g&&(e.textV0.textDecoration="line-through")}}},P3=e=>{let t=I18N.ChatGPT.ai_semantic_func_error,n=_3.warning,r="chatGPT/ai-semantic-result-waring";switch(e){case $l.Success:t=I18N.ChatGPT.ai_semantic_func_success,n=_3.success,r="chatGPT/ai-semantic-result-success";break;case $l.TextOverLimit:t=I18N.ChatGPT.ai_semantic_func_error_601;break;case $l.NotSupportMultiple:t=I18N.ChatGPT.ai_semantic_func_error_602;break;case $l.AnotherConversation:t=I18N.ChatGPT.ai_semantic_func_error_405;break;case $l.ContentViolation:t=I18N.ChatGPT.ai_semantic_func_error_451;break;case $l.PointsInsufficient:t=I18N.ChatGPT.ai_semantic_func_error_403;break;case $l.NotFindEditObject:t=I18N.ChatGPT.ai_semantic_func_error_603;break;case $l.ResultViolation:t="\u4E3A\u786E\u4FDD\u8F93\u51FA\u5185\u5BB9\u5408\u89C4\uFF0C\u8BF7\u8C03\u6574\u6307\u4EE4\u5E76\u91CD\u8BD5\u3002";break;case $l.NotSupportCanvas:t="\u6682\u4E0D\u652F\u6301\u5728\u52A8\u6001\u7EC4\u4EF6\uFF08\u6BCD\u7248/\u6211\u7684\u3001\u4F01\u4E1A\u7EC4\u4EF6\uFF09\u5185\u751F\u6210\u9875\u9762\u3002";break;default:break}return{notice:t,noticeStatus:n,svgName:r}},$1=(e,t)=>{const{w:n,h:r}=e,{x:s,y:c}=t,d=Number(s)+Number(n)/2,p=Number(c)+Number(r)/2;return{x:d,y:p}},k8=[fn.x.WRichText,fn.x.WSticky,fn.x.WTear],OX=e=>{const t=flatGroup(e),n=[],r=t.filter(p=>k8.includes(p.type));r&&r.length===1&&r.length===t.length&&n.push(AISemanticRecommendScenes.editText);const s=t.filter(p=>[WidgetType.WImage,WidgetType.WCarousel].includes(p.type));s&&s.length>0&&s.length===t.length&&n.push(AISemanticRecommendScenes.imageEdit);const c=t.filter(p=>canWidgetFillText(p));c&&c.length>0&&c.length===t.length&&n.push(AISemanticRecommendScenes.textFill);const d=t.filter(p=>EditStyleWidget.includes(p.type));return d&&d.length>0&&n.push(AISemanticRecommendScenes.editStyle),n!=null&&n.length?n:[AISemanticRecommendScenes.default]},TE=()=>({[AISemanticRecommendScenes.editText]:[I18N.ChatGPT.ai_semantic_editText_label_1,I18N.ChatGPT.ai_semantic_editText_label_2,I18N.ChatGPT.ai_semantic_editText_label_3,I18N.ChatGPT.ai_semantic_editText_label_4],[AISemanticRecommendScenes.imageEdit]:[I18N.ChatGPT.ai_semantic_editImage_label_1,I18N.ChatGPT.ai_semantic_editImage_label_2,I18N.ChatGPT.ai_semantic_editImage_label_3,I18N.ChatGPT.ai_semantic_editImage_label_4],[AISemanticRecommendScenes.textFill]:[I18N.ChatGPT.ai_semantic_textFill_label_1,I18N.ChatGPT.ai_semantic_textFill_label_2,I18N.ChatGPT.ai_semantic_textFill_label_3,I18N.ChatGPT.ai_semantic_textFill_label_4],[AISemanticRecommendScenes.editStyle]:[I18N.ChatGPT.ai_semantic_editStyle_label_1,I18N.ChatGPT.ai_semantic_editStyle_label_2,I18N.ChatGPT.ai_semantic_editStyle_label_3,I18N.ChatGPT.ai_semantic_editStyle_label_4],[AISemanticRecommendScenes.default]:[I18N.ChatGPT.ai_semantic_common_label_1,I18N.ChatGPT.ai_semantic_common_label_2,I18N.ChatGPT.ai_semantic_common_label_3,I18N.ChatGPT.ai_semantic_common_label_4,I18N.ChatGPT.ai_semantic_common_label_5,I18N.ChatGPT.ai_semantic_common_label_6,I18N.ChatGPT.ai_semantic_common_label_7,I18N.ChatGPT.ai_semantic_common_label_8,I18N.ChatGPT.ai_semantic_common_label_9,I18N.ChatGPT.ai_semantic_common_label_10,I18N.ChatGPT.ai_semantic_common_label_11]}),RX=(e,t)=>{const n=TE();return e.reduce((r,s)=>{const c=n[s]||[];if(s===AISemanticRecommendScenes.default)for(let d=c.length-1;d>0;d--){const p=Math.floor(Math.random()*(d+1));[c[d],c[p]]=[c[p],c[d]]}return[...r,...c]},[]).filter(r=>r!==t)},Mi=e=>{let{prefix:t="",hotAttr:n,sup:r,sub:s=[]}=e;return{key:(0,hr.cF)(t),hotAttr:n,sup:r,sub:s}},_E=(e,t)=>{let n=0;const r=[],s=/\s+/g,d=[...e.matchAll(s)].map(g=>({start:g.index,length:g[0].length,noSpaceStart:0}));for(let g=0;g<d.length;g++){const y=d[g],w=d.slice(0,g).reduce((_,j)=>_+j.length,0);y.noSpaceStart=(y.start||0)-w}if(Object.entries(t).sort((g,y)=>{var w,_;let j=0,N=0;if((w=g[1])!=null&&w.offset&&(_=y[1])!=null&&_.offset){var Z,Q;j=(Z=g[1])==null?void 0:Z.offset[0],N=(Q=y[1])==null?void 0:Q.offset[0]}return j-N}).forEach(g=>{let[y,{value:w,offset:_}]=g;const j=_[0],N=d.filter(ie=>ie.noSpaceStart<=j).reduce((ie,he)=>ie+he.length,0);_[0]=_[0]+N,_[1]=_[1]+N;const[Z,Q]=_;if(Z>n){const ie=e.substring(n,Z);r.push({content:ie})}const se=e.substring(Z,Q);r.push({key:y,value:w,content:se}),n=Q}),n<e.length){const g=e.substring(n);r.push({content:g})}return r},PE=e=>{if(!e)return e;const t={count:99,"custom-size-height":9999,"custom-size-width":9999,"font-size":999,height:9999,interval:9999,nodes:20,opacity:100,"page-x":99999,"page-y":99999,"process-position":100,radius:999,range:9999,redo_steps:9,row:99,sides:20,"stroke-weight":9,thickness:20,undo_steps:9,width:9999};return Object.entries(e).forEach(n=>{let[r,s]=n;t[r]&&Number(s)>t[r]&&(e[r]=t[r])}),e},LE=e=>{switch(e){case"bar":return fn.x.WBarChart;case"hbar":return fn.x.WHorizontalBarChart;case"line":return fn.x.WLineChart;case"linea":return fn.x.WLineAreaChart;case"pie":return fn.x.WPieChart;case"ring":return fn.x.WRingChart;case"process":return fn.x.WProgressChart;case"radar":return fn.x.WRadarChart;case"mbl":return fn.x.WMixedBarLineChart}},E8=(e,t)=>{const{chartType:n,xAxisData:r,yAxisData:s,theme:c}=e,{pageKey:d}=t,p=LE(n),g=_l[p]("chart"),y={xAxis:[],yAxis:[],series:[],textStyle:{fontSize:14,color:4294967295}};if(["pie","ring"].includes(n)){y.xAxis=[r[0].name];const j=[];for(let N=0;N<r[0].data.length;N++){const Z=r[0].data[N],Q=s[0].data[N];j.push({name:Z,data:[Q]})}y.series=j}else y.xAxis=r[0].data,y.series=s;g.chartData=y,g.chartConfig.chartTheme=c,[fn.x.WPieChart,fn.x.WRingChart].includes(p)?g.chartConfig.showHelpMark=!0:g.chartConfig.legend.isVisible=!0;const w=(0,wt.$b)(g,!0);return[Mi({sup:d,hotAttr:w})]},rf=e=>typeof e=="string"?e:"",NE=e=>{if(typeof e=="string")return e;const t=(e==null?void 0:e.data)||(e==null?void 0:e.value)||"";return typeof t=="string"?t:""},L3=e=>{const t=s=>({text:NE(s),type:"unstyled",depth:0,inlineStyleRanges:[],entityRanges:[],data:{}}),n={};let r=parseInt("blocks",32);for(let s=0;s<e.length;s++){r=r+1;let c=r.toString(32).padStart(6,"0");c="#"+c,n[c]=t(e[s])}return n},sf=e=>L3([e!=null?e:""]),N3=(e,t)=>{const n=_l.wRect("");if(t){const{isHCenter:r,isVCenter:s,w:c,h:d,textColor:p,fontSize:g=14,horizontalAlign:y,verticalAlign:w,bold:_,italic:j,underline:N,strikethrough:Z,hexFill:Q,zIndex:se,border:ie,borderRadius:he,opacity:xe,shadow:Se,fontFamily:_e}=t;r&&(n.richTextV1.horizontalAlign="center"),s&&(n.richTextV1.verticalAlign="center"),c&&(n.w=c),d&&(n.h=d),p&&(n.richTextV1.textColor=p),g&&(n.richTextV1.fontSize=g),y&&(n.richTextV1.horizontalAlign=y),w&&(n.richTextV1.verticalAlign=w),_&&(n.richTextV1.bold=_),j&&(n.richTextV1.italic=j),N&&(n.richTextV1.underline=N),Z&&(n.richTextV1.strikethrough=Z),Q&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(Q)}),se&&(n.zIndex=se),ie&&(n.border=ie),he&&(n.borderRadius=he),Se&&(n.shadow=Se),xe&&(n.opacity=xe),_e&&(n.richTextV1.fontFamily=_e)}return n.textV1.blocks=sf(e!=null?e:""),n.border.bdrIsVisible=!1,n.richTextV1.sizeType=1,n},I8=function(e,t){t===void 0&&(t="wMTextInput");const n=_l[t]("");if(e){const{isVCenter:r,w:s,h:c,textColor:d,fontSize:p=14,horizontalAlign:g,bold:y,italic:w,border:_,borderRadius:j,opacity:N,shadow:Z,placeholder:Q,hexFill:se}=e;s&&(n.w=s),c&&(n.h=c),Z&&(n.shadow=Z),_&&(n.border=_),n.opacity=N,j&&(n.borderRadius=j),n.textInput.prefillTextColorV0=d?Xi(d):2290649343,n.textV0.text=Q||"",r&&(n.textV0.verticalAlign="center"),n.textV0.horizontalAlign=g,n.textV0.fontSize=p,y&&(n.textV0.bold=y),w&&(n.textV0.italic=w),se&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(se)})}return n},Qc=(e,t)=>{const n=_l.wRichText("");if(t){const{isHCenter:r,isVCenter:s,w:c,h:d,textColor:p,fontSize:g=14,horizontalAlign:y,verticalAlign:w,bold:_,lineHeight:j,paraSpacing:N,fontFamily:Z,italic:Q,underline:se,strikethrough:ie,zIndex:he}=t;r&&(n.richTextV1.horizontalAlign="center"),s&&(n.richTextV1.verticalAlign="center"),c&&(n.w=c),d&&(n.h=d),p&&(n.richTextV1.textColor=p),g&&(n.richTextV1.fontSize=g),y&&(n.richTextV1.horizontalAlign=y),w&&(n.richTextV1.verticalAlign=w),_&&(n.richTextV1.bold=_),j&&(n.richTextV1.lineHeight=j),N&&(n.richTextV1.paraSpacing=N),Z&&(n.richTextV1.fontFamily=Z),Q&&(n.richTextV1.italic=Q),se&&(n.richTextV1.underline=se),ie&&(n.richTextV1.strikethrough=ie),he&&(n.zIndex=he),j&&(n.richTextV1.lineHeight=j)}return n.textV1.blocks=sf(e!=null?e:""),n.richTextV1.sizeType=1,n},jE=e=>{let t;switch(e){case"process":t=_l[fn.x.WFlowProcess](e);break;case"start":case"end":t=_l[fn.x.WFlowStartEnd](e);break;case"decision":t=_l[fn.x.WFlowDecision](e);break;case"doc":t=_l[fn.x.WFlowDoc](e);break;case"data":t=_l[fn.x.WFlowData](e);break;default:t=_l[fn.x.WFlowProcess](e);break}return t},T8=e=>e==="r"?"right":e==="l"?"left":e==="t"?"top":"bottom",DE=(e,t)=>{const{x:n,y:r}=e.hotAttr,{x:s,y:c}=t.hotAttr;return n<s?r<c?{fd:"b",td:"l",arrowStyle:"solid"}:{fd:"r",td:"l",arrowStyle:"solid"}:n===s?r<c?{fd:"b",td:"t",arrowStyle:"solid"}:{fd:"r",td:"t",arrowStyle:"dashed"}:r<c?{fd:"b",td:"t",arrowStyle:"dashed"}:{fd:"r",td:"t",arrowStyle:"dashed"}},_8=(e,t)=>{const{nodes:n,edges:r}=e,{pageKey:s}=t,c=n.map(Se=>{if(Array.isArray(Se))return Se;const{id:_e,type:De,text:Je,isPoint:Ne}=Se;return[_e,De,Je,Ne]}),d=r.map(Se=>{if(Array.isArray(Se))return Se;const{idFrom:_e,idTo:De,text:Je}=Se;return[_e,De,Je]}),p=new Map,g=new Map,y=new Map,w=new Set,_=new Map;c.forEach(Se=>{const _e=jE(Se[1]);Se[2]&&(_e.textV1.blocks=L3([Se[2]])),Se[3]&&(_e.fill.solidColor=2480075775);const De=Mi({sup:s,hotAttr:_e});p.set(Se[0],De),y.set(De.key,!1)});for(const[Se]of d){const _e=[];for(const[De,Je]of d)Se===De&&_e.push(Je);g.set(Se,_e)}let j=0,N=0;const Z=200,Q=150;for(const[Se,_e]of[...g]){var se;const De=(se=p.get(Se))==null?void 0:se.key;if(N=0,De&&!y.get(De)){j=0;const Je=p.get(Se);j=j3(w,j,N,"x").nextX,Je&&(Je.hotAttr.x=j*Z,Je.hotAttr.y=N*Q),w.add(j+","+N),_.set(Se,j+","+N),j+=1,y.set(De,!0)}else{var ie;const Je=(ie=_.get(Se))==null?void 0:ie.split(",");Je&&(j=parseInt(Je[0])+1,N=parseInt(Je[1]),j=j3(w,j,N,"x").nextX)}for(const Je of _e){const Ne=p.get(Je);Ne!=null&&Ne.key&&y.get(Ne.key)||(N=j3(w,j,N,"y").nextY,Ne&&(Ne.hotAttr.x=j*Z,Ne.hotAttr.y=N*Q),w.add(j+","+N),_.set(Je,j+","+N),Ne!=null&&Ne.key&&y.set(Ne.key,!0),N+=1)}}const he=[...p].map(Se=>{let[,_e]=Se;return _e}),xe=d.map((Se,_e)=>{const De=_l[fn.x.WElbow]("elbow"+_e),[Je,Ne,pt]=Se;pt&&(De.textV0.text=pt);const _t=p.get(Je),gt=p.get(Ne);if(_t&&gt){De.refFromKey=_t==null?void 0:_t.key,De.refToKey=gt==null?void 0:gt.key;const{fd:Ct,td:zt,arrowStyle:Dt}=DE(_t,gt);De.elbow.arrowStroke.bdrStyle=Dt,De.elbow.fromDirection=T8(Ct),De.elbow.toDirection=T8(zt)}return Mi({sup:s,hotAttr:De})});return[...he,...xe]},j3=(e,t,n,r)=>{let s=t,c=n;if(e.has(s+","+c))for(;e.has(s+","+c);)r==="x"?s+=1:c+=1;return r==="x"?{nextX:s}:{nextY:c}};var OE=i(99835),P8=i(64791);const RE="B@ref-mind",L8=(e,t)=>{const n=[],{minds:r}=e,{pageKey:s}=t,c=r.map(se=>{if(Array.isArray(se))return se;const{id:ie=0,parentId:he=null,text:xe="",placement:Se="r"}=se;return[ie,he,xe,Se]}),d=(0,mr.gO)("",0,0,0,"",0,0,""),p=Mi({prefix:"rbp",hotAttr:d,sup:RE});n.push(p);const g=(0,I3.Nc)("rc"),y=Mi({prefix:"rc",hotAttr:g,sup:p.key});n.push(y);const w=(0,OE.A8)("mind",p.key,y.key);n.push(Mi({hotAttr:w,sup:s}));const _=c[0]?c[0][2]:"",j=(0,P8.yf)("",_,!0),N=Mi({hotAttr:j,sup:y.key}),Z=new Map;n.push(N),Z.set(1,N);for(let se=1;se<c.length;se++){var Q;const[ie,he,xe,Se]=c[se],_e=(0,P8.yf)("",xe);_e.zIndex+=se;const De=Z.get(Number(he));let Je=De==null||(Q=De.hotAttr)==null?void 0:Q.placement;he===1&&(Je=BE[Se]),_e.placement=Je;const Ne=Mi({hotAttr:_e,sup:De==null?void 0:De.key});n.push(Ne),Z.set(Number(ie),Ne)}return n},BE={l:"left",r:"right"},N8=(e,t)=>{const{table:n,"border-color":r,"horizontal-color":s,"vertical-color":c}=e,{pageKey:d}=t,p=n.length,g=n[0].length,y={columns:Array(g).fill({type:"text",width:80}),rows:Array(p).fill({height:30}),cellStyles:Array(p).fill(Array(g).fill("")),mergeCells:{},data:void 0,links:Array(p).fill(Array(g).fill(""))},w=g*80,_=p*30,j=[];for(const Z of n){const Q=[];for(const se of Z)Q.push(String(se));j.push(Q)}y.data=j;const N=_l[fn.x.WTable]("table");return N.w=w,N.h=_,N.tableData=y,r&&(N.tableConfig.outerBorder.bdrColor=Xi(r)),s&&(N.tableConfig.innerBorderH.bdrColor=Xi(s)),c&&(N.tableConfig.innerBorderV.bdrColor=Xi(c)),N.tableConfig={...N.tableConfig,...(0,kg.U3)({height:_,width:w,columns:y.columns,rows:y.rows}),rowCount:p,colCount:g},N["!version"]=1,[Mi({sup:d,hotAttr:N})]},UE=(e,t)=>{switch(e.type){case"flow":return _8(e,t);case"mind":return L8(e,t);case"chart":return E8(e,t);case"table":return N8(e,t);default:return[]}},FE=e=>{try{if(Object.keys(e).indexOf("rectangles")>=0)return VE(e);{const t=j8(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},VE=e=>{try{if(!e||Object.keys(e).length===0)return[];const{rectangles:t}=e,n=[];return t.forEach(r=>{const s=j8(r);s&&n.push(s)}),n}catch(t){return[]}},j8=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":r,"stroke-weight":s,"stroke-style":c,"text-content":d,"font-format":p,"font-color":g,"font-size":y,"text-align":w,"font-family":_,zIndex:j,shadows:N,position:Z,size:Q,radius:se}=e,{x:ie,y:he}=q1(Z)||{},xe=Tp(Q);if(!xe)return null;const{w:Se,h:_e}=xe,De={isHCenter:!0,isVCenter:!0,w:Se,h:_e,hexFill:n,textColor:g,fontSize:Number(y),opacity:Number(t),horizontalAlign:w,shadow:Sh(N),borderRadius:Rm(se),border:Ah(r,c,s),...R2(p),zIndex:j,fontFamily:_},Je=N3(d,De),{x:Ne,y:pt}=$1({w:Se,h:_e},{x:ie,y:he});return Je.x=Ne,Je.y=pt,Je.border.bdrIsVisible=!0,Je}catch(t){return null}},tm=e=>{const{w:t,h:n,image:r,border:s,borderRadius:c,opacity:d=1,originalWidth:p,originalHeight:g,imageRectCenterX:y,imageRectCenterY:w,imageRectWidth:_,imageRectHeight:j}=e,N=_l.wImage("");return N.borderRadius=14,N.w=t,N.h=n,N.opacity=d,N.ext={url:D8({url:r,w:t,h:n}),name:""},N.image.imageRectCenterX=y||t/2,N.image.imageRectCenterY=w||t/2,N.image.imageRectWidth=_||t,N.image.imageRectHeight=j||t,N.image.imageRectOriginalWidth=p||400,N.image.imageRectOriginalHeight=g||400,s&&(N.border={...N.border,...s}),c&&(N.borderRadius=c),N},D8=e=>{let{url:t,w:n,h:r}=e;return t.replace(/(w=)\d+/,"$1"+n).replace(/(h=)\d+/,"$1"+r)},zE=e=>{let{w:t,h:n,imageRectOriginalWidth:r,imageRectOriginalHeight:s}=e;const c=t/n,d=r/s;let p,g,y,w;return c>d?(p=t,g=p/d,y=p/2,w=n/2):(g=n,p=n*d,w=g/2,y=t/2),{imageRectWidth:p,imageRectHeight:g,imageRectCenterX:y,imageRectCenterY:w}},WE=e=>{try{if(Object.keys(e).indexOf("images")>=0)return HE(e);{const t=O8(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},HE=e=>{try{if(!e||Object.keys(e).length===0)return[];const{images:t}=e,n=[];return t.forEach(r=>{const s=O8(r);s&&n.push(s)}),n}catch(t){return[]}},O8=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"stroke-color":n,"stroke-weight":r,"stroke-style":s,position:c,size:d,radius:p,url:g,originalSize:y}=e,{width:w,height:_}=y||{width:400,height:400},j=Number(w),N=Number(_),Z=Tp(d);let{w:Q,h:se}=Z||{};(!Z||!Q||!se)&&(Q=200,se=Math.floor(Q/(j/N)));const ie=q1(c),{x:he,y:xe}=ie||{},Se=zE({w:Q,h:se,imageRectOriginalWidth:j,imageRectOriginalHeight:N}),_e=Se.imageRectCenterX,De=Se.imageRectCenterY,Je=Se.imageRectWidth,Ne=Se.imageRectHeight,pt={w:Number(Q),h:Number(se),imageRectWidth:Je,imageRectHeight:Ne,imageRectCenterX:_e,imageRectCenterY:De,originalWidth:j,originalHeight:N,opacity:Number(t),image:g,borderRadius:Rm(p),border:Ah(n,s,r)},_t=tm(pt),{x:gt,y:Ct}=$1({w:Q,h:se},{x:he,y:xe});return _t.x=gt,_t.y=Ct,_t}catch(t){return console.error("genImage error:",t),null}},GE=e=>{try{if(Object.keys(e).indexOf("texts")>=0)return ZE(e);{const t=R8(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},ZE=e=>{try{if(!e||Object.keys(e).length===0)return[];const{texts:t}=e,n=[];return t.forEach(r=>{const s=R8(r);s&&n.push(s)}),n}catch(t){return[]}},R8=e=>{try{if(!e||Object.keys(e).length===0)return null;const{"text-content":t,"font-format":n,"font-color":r,"font-size":s,"font-family":c,"text-align":d,"line-height":p,position:g,size:y,zIndex:w}=e||{},_=q1(g),j=Tp(y),N={textColor:r,fontSize:Number(s),fontFamily:c,horizontalAlign:d,...R2(n),verticalAlign:"center",lineHeight:p,zIndex:w},Z=Qc(t,N);if(Z.richTextV1.sizeType=2,j){const{w:Q,h:se}=j;Z.w=Q,Z.h=se}if(_&&j){const{x:Q,y:se}=$1(j,_);Z.x=Q,Z.y=se}return Z}catch(t){return null}},KE=e=>{try{if(Object.keys(e).indexOf("ovals")>=0)return YE(e);{const t=B8(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},YE=e=>{try{if(!e||Object.keys(e).length===0)return[];const{ovals:t}=e,n=[];return t.forEach(r=>{const s=B8(r);s&&n.push(s)}),n}catch(t){return[]}},B8=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":r,"stroke-weight":s,"stroke-style":c,"text-content":d,"font-format":p,"font-color":g,"font-size":y,"text-align":w,"line-height":_,"font-family":j,shadows:N,position:Z,size:Q}=e,{x:se,y:ie}=q1(Z)||{},he=Tp(Q);if(!he)return null;const{w:xe,h:Se}=he,_e={isHCenter:!0,isVCenter:!0,w:xe,h:Se,hexFill:n,textColor:g,fontSize:Number(y),opacity:Number(t),horizontalAlign:w,shadow:Sh(N),border:Ah(r,c,s),lineHeight:_,fontFamily:j,...R2(p)},De=XE(d,_e),{x:Je,y:Ne}=$1({w:xe,h:Se},{x:se,y:ie});return De.x=Je,De.y=Ne,De.border.bdrIsVisible=!0,De}catch(t){return console.error("genOval error:",t),null}},XE=(e,t)=>{const n=_l.wOval("");if(t){const{w:r,h:s,textColor:c,fontSize:d=14,horizontalAlign:p,bold:g,hexFill:y,zIndex:w,border:_,opacity:j,shadow:N,lineHeight:Z,fontFamily:Q}=t;r&&(n.w=r),s&&(n.h=s),n.richTextV1.horizontalAlign="center",n.richTextV1.verticalAlign="center",c&&(n.richTextV1.textColor=c),d&&(n.richTextV1.fontSize=d),p&&(n.richTextV1.horizontalAlign=p),g&&(n.richTextV1.bold=g),y&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(y)}),Z&&(n.richTextV1.lineHeight=Z),w&&(n.zIndex=w),_&&(n.border=_),N&&(n.shadow=N),j&&(n.opacity=j),Q&&(n.richTextV1.fontFamily=Q)}return n.textV1.blocks=sf(e!=null?e:""),n.border.bdrIsVisible=!0,n.richTextV1.sizeType=1,n},D3=e=>{let{hexBdrColor:t}=e;const n=_l.wLine("");return n.h=1,n.w=308,n.line={linePointFrom:{x:0,y:.5},linePointTo:{x:1,y:.5}},n.border.bdrColor=Xi(t),n},QE=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:r,shadows:s,"stroke-color":c,"stroke-style":d,"stroke-weight":p,zIndex:g}=e,y=Tp(n);if(!y||y.w===0)return null;const{w}=y,{x:_,y:j}=q1(t)||{},N=D3({hexBdrColor:c});N.w=w,N.h=1;const{x:Z,y:Q}=$1({w,h:1},{x:_,y:j});N.x=Z,N.y=Q;const se=Sh(s),ie=Ah(c,d,p);return se&&(N.shadow=se),ie&&(N.border=ie),g&&(N.zIndex=g),N.opacity=Number(r),N}catch(t){return console.error("genLine error:",t),null}},JE=e=>{try{if(Object.keys(e).indexOf("buttons")>=0)return qE(e);{const t=U8(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},qE=e=>{try{if(!e||Object.keys(e).length===0)return[];const{buttons:t}=e,n=[];return t.forEach(r=>{const s=U8(r);s&&n.push(s)}),n}catch(t){return[]}},U8=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":r,"stroke-weight":s,"stroke-style":c,"text-content":d,"font-format":p,"font-color":g,"font-size":y,"text-align":w,shadows:_,position:j,size:N,radius:Z,zIndex:Q}=e,{x:se,y:ie}=q1(j)||{},he=Tp(N);if(!he)return null;const{w:xe,h:Se}=he,_e={w:xe,h:Se,hexFill:n,textColor:g,fontSize:Number(y),opacity:Number(t),horizontalAlign:w,shadow:Sh(_),borderRadius:Rm(Z),border:Ah(r,c,s),zIndex:Q,...R2(p)},De=$E(d,_e),{x:Je,y:Ne}=$1(he,{x:se,y:ie});return De.x=Je,De.y=Ne,De.border.bdrIsVisible=!0,De}catch(t){return console.error("genButton error:",t),null}},$E=(e,t)=>{const n=_l.wButton("");if(t){const{w:r,h:s,textColor:c,fontSize:d=14,horizontalAlign:p,bold:g,italic:y,strikethrough:w,underline:_,hexFill:j,border:N,borderRadius:Z,opacity:Q,shadow:se,zIndex:ie}=t;n.w=r,n.h=s,n.textV0.textColor=Xi(c),n.textV0.fontSize=d,n.textV0.bold=g,n.textV0.italic=y,n.textV0.verticalAlign="center",n.textV0.text=e,_&&(n.textV0.textDecoration="underline"),w&&(n.textV0.textDecoration="line-through"),p&&(n.textV0.horizontalAlign=p),j&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(j)}),N&&(n.border=N),Z&&(n.borderRadius=Z),se&&(n.shadow=se),Q&&(n.opacity=Q),ie&&(n.zIndex=ie)}return n},eI=e=>{const t=_l.wIphoneXSB("");try{if(!e||Object.keys(e).length===0)return null;const{position:n,size:r,opacity:s,"fill-color":c,"font-color":d,zIndex:p}=e;t.opacity=Number(s);const{x:g,y}=q1(n)||{},w=Tp(r);if(!w)return null;c&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(c)}),d&&(t.textV0.textColor=Xi(d)),p&&(t.zIndex=p);const{w:_,h:j}=w;t.w=_,t.h=j;const{x:N,y:Z}=$1({w:_,h:j},{x:g,y});return t.x=N,t.y=Z,t}catch(n){return console.error("genIphoneXSB error:",n),null}},tI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:r,shadows:s,color:c,"stroke-style":d,"stroke-weight":p,zIndex:g}=e,y=Tp(n);if(!y||y.w===0||y.h===0)return null;const{w}=y,{x:_,y:j}=q1(t)||{};let N="solid";d==="dot"?N="dotted":d==="dash"&&(N="dashed");const Z=nI({w,opacity:Number(r),shadow:Sh(s),bdrColor:c,bdrWidth:Number(p),bdrStyle:N,zIndex:g});Z.w=w,Z.h=1;const{x:Q,y:se}=$1({w,h:1},{x:_,y:j});return Z.x=Q,Z.y=se,Z}catch(t){return null}},nI=e=>{let{w:t,opacity:n,shadow:r,bdrWidth:s,bdrColor:c,bdrStyle:d,zIndex:p}=e;const g=_l.wArrow("");return g.h=1,g.w=t,g.opacity=n,p&&(g.zIndex=p),g.arrow={arrowPointFromType:4,arrowPointToType:1,arrowStroke:{bdrIsVisible:!0,bdrStyle:d,bdrWidth:s,bdrColor:c?Xi(c):4182398719},arrowPointFrom:{x:0,y:.5},arrowPointTo:{x:1,y:.5}},r&&(g.shadow=r),g},oI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":r,"stroke-weight":s,"stroke-style":c,"font-format":d,"font-color":p,"font-size":g,"font-family":y,"text-align":w,shadows:_,position:j,size:N,radius:Z,placeholder:Q}=e,{x:se,y:ie}=q1(j)||{},he=Tp(N);if(!he)return null;const{w:xe,h:Se}=he,_e={isVCenter:!0,w:xe,h:Se,hexFill:n,textColor:p,fontSize:Number(g),fontFamily:y,opacity:Number(t),horizontalAlign:w,shadow:Sh(_),borderRadius:Rm(Z),border:Ah(r,c,s),...R2(d),placeholder:Q||"\u8BF7\u8F93\u5165"},De=I8(_e),{x:Je,y:Ne}=$1({w:xe,h:Se},{x:se,y:ie});return De.x=Je,De.y=Ne,De}catch(t){return null}},aI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":r,"stroke-weight":s,"stroke-style":c,"font-format":d,"font-color":p,"font-size":g,"font-family":y,"text-align":w,shadows:_,position:j,size:N,radius:Z,placeholder:Q}=e,{x:se,y:ie}=q1(j)||{},he=Tp(N);if(!he)return null;const{w:xe,h:Se}=he,_e={w:xe,h:Se,hexFill:n,textColor:p,fontSize:Number(g),fontFamily:y,opacity:Number(t),horizontalAlign:w,shadow:Sh(_),borderRadius:Rm(Z),border:Ah(r,c,s),...R2(d),placeholder:Q},De=I8(_e,"wMTextarea"),{x:Je,y:Ne}=$1({w:xe,h:Se},{x:se,y:ie});return De.x=Je,De.y=Ne,De}catch(t){return console.log("### err:",t),null}},rI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:r,shadows:s,"fill-color":c,"stroke-color":d,"stroke-weight":p,"stroke-style":g,"font-size":y,"font-color":w,items:_}=e,j=Tp(n);if(!j)return null;const{x:N,y:Z}=q1(t)||{},{w:Q,h:se}=j;let ie="1\n2\n3";_&&_.length>0&&(ie=_.join("\n"));const he={w:Q,h:se,hexFill:c,textColor:w,fontSize:Number(y),opacity:Number(r),shadow:Sh(s),border:Ah(d,g,p),text:ie},xe=iI(he),{x:Se,y:_e}=$1(j,{x:N,y:Z});return xe.x=Se,xe.y=_e,xe}catch(t){return null}},iI=e=>{const t=_l.wMSelect("");if(e){const{w:n,h:r,textColor:s,fontSize:c=14,border:d,opacity:p,shadow:g,text:y,hexFill:w,zIndex:_}=e;t.w=n,t.h=r,g&&(t.shadow=g),d&&(t.border=d),t.opacity=p,t.textV0.textColor=s?Xi(s):269488383,t.textV0.text=y,t.textV0.fontSize=c,t.textV0.padding=8,t.textV0.lineHeight=c+4<20?20:c+4,_&&(t.zIndex=_),w&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(w)})}return t},sI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:r,shadows:s,radius:c,"fill-color":d,"stroke-color":p,"stroke-weight":g,"stroke-style":y,"font-color":w,"font-size":_,"text-align":j,"font-format":N,placeholder:Z,items:Q,zIndex:se}=e,ie=Tp(n);if(!ie)return null;const{x:he,y:xe}=q1(t)||{},{w:Se,h:_e}=ie;let De=Q;(!Q||Q.length===0)&&(De=["\u9009\u98791","\u9009\u98792","\u9009\u98793"]);const Je={w:Se,h:_e,hexFill:d,textColor:w,horizontalAlign:j,opacity:Number(r),borderRadius:Rm(c),shadow:Sh(s),border:Ah(p,y,g),fontSize:Number(_),...R2(N),placeholder:Z,optionData:De,zIndex:se},Ne=lI(Je),{x:pt,y:_t}=$1(ie,{x:he,y:xe});return Ne.x=pt,Ne.y=_t,Ne}catch(t){return console.error("genDropdown error:",t),null}},lI=e=>{const t=_l.wDropMenu("");if(e){const{w:n,h:r,textColor:s,fontSize:c=14,border:d,opacity:p,shadow:g,hexFill:y,horizontalAlign:w,borderRadius:_,bold:j,italic:N,underline:Z,strikethrough:Q,optionData:se,placeholder:ie,zIndex:he}=e;t.w=n,t.h=r,g&&(t.shadow=g),d&&(t.border=d),t.opacity=p,t.textV0.textColor=s?Xi(s):269488383,t.textV0.text=ie||"\u4E0B\u62C9\u83DC\u5355",t.textV0.fontSize=c,t.textV0.padding=8,t.textV0.lineHeight=c+4<20?20:c+4,w&&(t.textV0.horizontalAlign=w),t.textV0.verticalAlign="center",j&&(t.textV0.bold=j),N&&(t.textV0.italic=N),Z&&(t.textV0.textDecoration="underline"),Q&&(t.textV0.textDecoration="line-through"),_&&(t.borderRadius=_),y&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(y)}),he&&(t.zIndex=he),t.optionData=se.map(xe=>({data:{name:xe,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}))}return t},cI=(e,t)=>{try{if(!e||Object.keys(e).length===0)return null;const{position:n,size:r,opacity:s,"font-size":c,"button-color":d,"button-text-color":p,"button-selected-color":g,"button-selected-text-color":y,options:w,zIndex:_}=e,j=Tp(r);if(!j)return null;const{x:N,y:Z}=q1(n)||{},{w:Q,h:se}=j;let ie=w;(!w||w.length<0)&&(ie=["\u9009\u98791","\u9009\u98792","\u9009\u98793","\u9009\u98794"]);const he={w:Q,h:se,fontSize:Number(c),opacity:Number(s),btnColor:d,btnTextColor:p,btnSelColor:g,btnTextSelColor:y,optionData:ie,zIndex:_},xe=dI(he,t),{x:Se,y:_e}=$1({w:Q,h:se},{x:N,y:Z});return xe.x=Se,xe.y=_e,xe}catch(n){return console.error("genSelectionControl error:",n),null}},dI=(e,t)=>{let n=_l.wSelectionControlRadio("wSelectionControl");t&&(n=_l.wSelectionControlCheckbox("wSelectionControl"));const{w:r,h:s,fontSize:c=14,opacity:d,btnColor:p,btnSelColor:g,btnTextSelColor:y,btnTextColor:w,optionData:_,zIndex:j}=e;n.w=r,n.h=s,n.opacity=d,j&&(n.zIndex=j);const N=_.map(Z=>({data:{name:Z,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}));return N[0].data.selected=!0,n.optionData=N,n.selectionControl.fontSize=c,n.selectionControl.textColor=w?Xi(w):858993663,n.selectionControl.borderColor=p?Xi(p):3435973887,n.selectionControl.checkedBorderColor=g?Xi(g):377814271,n.selectionControl.checkedTextColor=y?Xi(y):858993663,n},B2=function(e){e===void 0&&(e=qu);const t=_l.wRect("");return t.border.bdrIsVisible=!1,t.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#FFFFFFF0")},t.w=e,t.x=e/2,t},nl=(e,t)=>{let{w:n}=t;return e+n/2},Zs=(e,t)=>{let{h:n}=t;return e+n/2},Ju=e=>{let{w:t=60,h:n=24,hexFill:r="#1685FC",hexFontColor:s="#FFFFFF",bold:c=!0}=e;const d=_l.wButton("");return d.w=t,d.h=n,d.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(r)},d.textV0.textColor=Xi(s),d.textV0.fontSize=12,d.textV0.fontSize=12,d.textV0.bold=c,d.borderRadius=6,d.border.bdrIsVisible=!1,d},F8={...JSON.parse('{"twitter-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"},"facebook-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48h-85.3V302.8h60.6l8.7-67.6h-69.3V192c0-19.6 5.4-32.9 33.5-32.9H384V98.7c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9H184v67.6h60.9V480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"linkedin":{"viewBox":"0 0 448 512","path":"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},"github-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"},"twitter":{"viewBox":"0 0 512 512","path":"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},"facebook-f":{"viewBox":"0 0 264 512","path":"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"},"github":{"viewBox":"0 0 496 512","path":"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},"pinterest":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},"pinterest-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"google-plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM164 356c-55.3 0-100-44.7-100-100s44.7-100 100-100c27 0 49.5 9.8 67 26.2l-27.1 26.1c-7.4-7.1-20.3-15.4-39.8-15.4-34.1 0-61.9 28.2-61.9 63.2 0 34.9 27.8 63.2 61.9 63.2 39.6 0 54.4-28.5 56.8-43.1H164v-34.4h94.4c1 5 1.6 10.1 1.6 16.6 0 57.1-38.3 97.6-96 97.6zm220-81.8h-29v29h-29.2v-29h-29V245h29v-29H355v29h29v29.2z"},"google-plus":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm-70.7 372c-68.8 0-124-55.5-124-124s55.2-124 124-124c31.3 0 60.1 11 83 32.3l-33.6 32.6c-13.2-12.9-31.3-19.1-49.4-19.1-42.9 0-77.2 35.5-77.2 78.1s34.2 78.1 77.2 78.1c32.6 0 64.9-19.1 70.1-53.3h-70.1v-42.6h116.9c1.3 6.8 1.9 13.6 1.9 20.7 0 70.8-47.5 121.2-118.8 121.2zm230.2-106.2v35.5H372v-35.5h-35.5v-35.5H372v-35.5h35.5v35.5h35.2v35.5h-35.2z"},"github-alt":{"viewBox":"0 0 480 512","path":"M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"},"maxcdn":{"viewBox":"0 0 512 512","path":"M461.1 442.7h-97.4L415.6 200c2.3-10.2.9-19.5-4.4-25.7-5-6.1-13.7-9.6-24.2-9.6h-49.3l-59.5 278h-97.4l59.5-278h-83.4l-59.5 278H0l59.5-278-44.6-95.4H387c39.4 0 75.3 16.3 98.3 44.9 23.3 28.6 31.8 67.4 23.6 105.9l-47.8 222.6z"},"html5":{"viewBox":"0 0 384 512","path":"M0 32l34.9 395.8L191.5 480l157.6-52.2L384 32H0zm308.2 127.9H124.4l4.1 49.4h175.6l-13.6 148.4-97.9 27v.3h-1.1l-98.7-27.3-6-75.8h47.7L138 320l53.5 14.5 53.7-14.5 6-62.2H84.3L71.5 112.2h241.1l-4.4 47.7z"},"css3":{"viewBox":"0 0 512 512","path":"M480 32l-64 368-223.3 80L0 400l19.6-94.8h82l-8 40.6L210 390.2l134.1-44.4 18.8-97.1H29.5l16-82h333.7l10.5-52.7H56.3l16.3-82H480z"},"btc":{"viewBox":"0 0 384 512","path":"M310.204 242.638c27.73-14.18 45.377-39.39 41.28-81.3-5.358-57.351-52.458-76.573-114.85-81.929V0h-48.528v77.203c-12.605 0-25.525.315-38.444.63V0h-48.528v79.409c-17.842.539-38.622.276-97.37 0v51.678c38.314-.678 58.417-3.14 63.023 21.427v217.429c-2.925 19.492-18.524 16.685-53.255 16.071L3.765 443.68c88.481 0 97.37.315 97.37.315V512h48.528v-67.06c13.234.315 26.154.315 38.444.315V512h48.528v-68.005c81.299-4.412 135.647-24.894 142.895-101.467 5.671-61.446-23.32-88.862-69.326-99.89zM150.608 134.553c27.415 0 113.126-8.507 113.126 48.528 0 54.515-85.71 48.212-113.126 48.212v-96.74zm0 251.776V279.821c32.772 0 133.127-9.138 133.127 53.255-.001 60.186-100.355 53.253-133.127 53.253z"},"youtube-square":{"viewBox":"0 0 448 512","path":"M186.8 202.1l95.2 54.1-95.2 54.1V202.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-42 176.3s0-59.6-7.6-88.2c-4.2-15.8-16.5-28.2-32.2-32.4C337.9 128 224 128 224 128s-113.9 0-142.2 7.7c-15.7 4.2-28 16.6-32.2 32.4-7.6 28.5-7.6 88.2-7.6 88.2s0 59.6 7.6 88.2c4.2 15.8 16.5 27.7 32.2 31.9C110.1 384 224 384 224 384s113.9 0 142.2-7.7c15.7-4.2 28-16.1 32.2-31.9 7.6-28.5 7.6-88.1 7.6-88.1z"},"youtube":{"viewBox":"0 0 576 512","path":"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},"xing":{"viewBox":"0 0 384 512","path":"M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"},"xing-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM140.4 320.2H93.8c-5.5 0-8.7-5.3-6-10.3l49.3-86.7c.1 0 .1-.1 0-.2l-31.4-54c-3-5.6.2-10.1 6-10.1h46.6c5.2 0 9.5 2.9 12.9 8.7l31.9 55.3c-1.3 2.3-18 31.7-50.1 88.2-3.5 6.2-7.7 9.1-12.6 9.1zm219.7-214.1L257.3 286.8v.2l65.5 119c2.8 5.1.1 10.1-6 10.1h-46.6c-5.5 0-9.7-2.9-12.9-8.7l-66-120.3c2.3-4.1 36.8-64.9 103.4-182.3 3.3-5.8 7.4-8.7 12.5-8.7h46.9c5.7-.1 8.8 4.7 6 10z"},"dropbox":{"viewBox":"0 0 528 512","path":"M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z"},"stack-overflow":{"viewBox":"0 0 384 512","path":"M293.7 300l-181.2-84.5 16.7-36.5 181.3 84.7-16.8 36.3zm48-76L188.2 95.7l-25.5 30.8 153.5 128.3 25.5-30.8zm39.6-31.7L262 32l-32 24 119.3 160.3 32-24zM290.7 311L95 269.7 86.8 309l195.7 41 8.2-39zm31.6 129H42.7V320h-40v160h359.5V320h-40v120zm-39.8-80h-200v39.7h200V360z"},"instagram":{"viewBox":"0 0 448 512","path":"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},"flickr":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z"},"adn":{"viewBox":"0 0 496 512","path":"M248 167.5l64.9 98.8H183.1l64.9-98.8zM496 256c0 136.9-111.1 248-248 248S0 392.9 0 256 111.1 8 248 8s248 111.1 248 248zm-99.8 82.7L248 115.5 99.8 338.7h30.4l33.6-51.7h168.6l33.6 51.7h30.2z"},"tumblr":{"viewBox":"0 0 320 512","path":"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"},"tumblr-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-82.3 364.2c-8.5 9.1-31.2 19.8-60.9 19.8-75.5 0-91.9-55.5-91.9-87.9v-90h-29.7c-3.4 0-6.2-2.8-6.2-6.2v-42.5c0-4.5 2.8-8.5 7.1-10 38.8-13.7 50.9-47.5 52.7-73.2.5-6.9 4.1-10.2 10-10.2h44.3c3.4 0 6.2 2.8 6.2 6.2v72h51.9c3.4 0 6.2 2.8 6.2 6.2v51.1c0 3.4-2.8 6.2-6.2 6.2h-52.1V321c0 21.4 14.8 33.5 42.5 22.4 3-1.2 5.6-2 8-1.4 2.2.5 3.6 2.1 4.6 4.9l13.8 40.2c1 3.2 2 6.7-.3 9.1z"},"apple":{"viewBox":"0 0 376 512","path":"M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},"windows":{"viewBox":"0 0 448 512","path":"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},"android":{"viewBox":"0 0 448 512","path":"M89.6 204.5v115.8c0 15.4-12.1 27.7-27.5 27.7-15.3 0-30.1-12.4-30.1-27.7V204.5c0-15.1 14.8-27.5 30.1-27.5 15.1 0 27.5 12.4 27.5 27.5zm10.8 157c0 16.4 13.2 29.6 29.6 29.6h19.9l.3 61.1c0 36.9 55.2 36.6 55.2 0v-61.1h37.2v61.1c0 36.7 55.5 36.8 55.5 0v-61.1h20.2c16.2 0 29.4-13.2 29.4-29.6V182.1H100.4v179.4zm248-189.1H99.3c0-42.8 25.6-80 63.6-99.4l-19.1-35.3c-2.8-4.9 4.3-8 6.7-3.8l19.4 35.6c34.9-15.5 75-14.7 108.3 0L297.5 34c2.5-4.3 9.5-1.1 6.7 3.8L285.1 73c37.7 19.4 63.3 56.6 63.3 99.4zm-170.7-55.5c0-5.7-4.6-10.5-10.5-10.5-5.7 0-10.2 4.8-10.2 10.5s4.6 10.5 10.2 10.5c5.9 0 10.5-4.8 10.5-10.5zm113.4 0c0-5.7-4.6-10.5-10.2-10.5-5.9 0-10.5 4.8-10.5 10.5s4.6 10.5 10.5 10.5c5.6 0 10.2-4.8 10.2-10.5zm94.8 60.1c-15.1 0-27.5 12.1-27.5 27.5v115.8c0 15.4 12.4 27.7 27.5 27.7 15.4 0 30.1-12.4 30.1-27.7V204.5c0-15.4-14.8-27.5-30.1-27.5z"},"linux":{"viewBox":"0 0 448 512","path":"M196.1 123.6c-.2-1.4 1.9-2.3 3.2-2.9 1.7-.7 3.9-1 5.5-.1.4.2.8.7.6 1.1-.4 1.2-2.4 1-3.5 1.6-1 .5-1.8 1.7-3 1.7-1 .1-2.7-.4-2.8-1.4zm24.7-.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm214.7 310.2c-.5 8.2-6.5 13.8-13.9 18.3-14.9 9-37.3 15.8-50.9 32.2l-2.6-2.2 2.6 2.2c-14.2 16.9-31.7 26.6-48.3 27.9-16.5 1.3-32-6.3-40.3-23v-.1c-1.1-2.1-1.9-4.4-2.5-6.7-21.5 1.2-40.2-5.3-55.1-4.1-22 1.2-35.8 6.5-48.3 6.6-4.8 10.6-14.3 17.6-25.9 20.2-16 3.7-36.1 0-55.9-10.4l1.6-3-1.6 3c-18.5-9.8-42-8.9-59.3-12.5-8.7-1.8-16.3-5-20.1-12.3-3.7-7.3-3-17.3 2.2-31.7 1.7-5.1.4-12.7-.8-20.8-.6-3.9-1.2-7.9-1.2-11.8 0-4.3.7-8.5 2.8-12.4 4.5-8.5 11.8-12.1 18.5-14.5 6.7-2.4 12.8-4 17-8.3 5.2-5.5 10.1-14.4 16.6-20.2-2.6-17.2.2-35.4 6.2-53.3 12.6-37.9 39.2-74.2 58.1-96.7 16.1-22.9 20.8-41.3 22.5-64.7C158 103.4 132.4-.2 234.8 0c80.9.1 76.3 85.4 75.8 131.3-.3 30.1 16.3 50.5 33.4 72 15.2 18 35.1 44.3 46.5 74.4 9.3 24.6 12.9 51.8 3.7 79.1 1.4.5 2.8 1.2 4.1 2 1.4.8 2.7 1.8 4 2.9 6.6 5.6 8.7 14.3 10.5 22.4 1.9 8.1 3.6 15.7 7.2 19.7 11.1 12.4 15.9 21.5 15.5 29.7zM220.8 109.1c3.6.9 8.9 2.4 13 4.4-2.1-12.2 4.5-23.5 11.8-23 8.9.3 13.9 15.5 9.1 27.3-.8 1.9-2.8 3.4-3.9 4.6 6.7 2.3 11 4.1 12.6 4.9 7.9-9.5 10.8-26.2 4.3-40.4-9.8-21.4-34.2-21.8-44 .4-3.2 7.2-3.9 14.9-2.9 21.8zm-46.2 18.8c7.8-5.7 6.9-4.7 5.9-5.5-8-6.9-6.6-27.4 1.8-28.1 6.3-.5 10.8 10.7 9.6 19.6 3.1-2.1 6.7-3.6 10.2-4.6 1.7-19.3-9-33.5-19.1-33.5-18.9 0-24 37.5-8.4 52.1zm-9.4 20.9c1.5 4.9 6.1 10.5 14.7 15.3 7.8 4.6 12 11.5 20 15 2.6 1.1 5.7 1.9 9.6 2.1 18.4 1.1 27.1-11.3 38.2-14.9 11.7-3.7 20.1-11 22.7-18.1 3.2-8.5-2.1-14.7-10.5-18.2-11.3-4.9-16.3-5.2-22.6-9.3-10.3-6.6-18.8-8.9-25.9-8.9-14.4 0-23.2 9.8-27.9 14.2-.5.5-7.9 5.9-14.1 10.5-4.2 3.3-5.6 7.4-4.2 12.3zm-33.5 252.8L112.1 366c-6.8-9.2-13.8-14.8-21.9-16-7.7-1.2-12.6 1.4-17.7 6.9-4.8 5.1-8.8 12.3-14.3 18-7.8 6.5-9.3 6.2-19.6 9.9-6.3 2.2-11.3 4.6-14.8 11.3-2.7 5-2.1 12.2-.9 20 1.2 7.9 3 16.3.6 23.9v.2c-5 13.7-5 21.7-2.6 26.4 7.9 15.4 46.6 6.1 76.5 21.9 31.4 16.4 72.6 17.1 75.3-18 2.1-20.5-31.5-49-41-68.9zm153.9 35.8c3.2-11 6.3-21.3 6.8-29 .8-15.2 1.6-28.7 4.4-39.9 3.1-12.6 9.3-23.1 21.4-27.3 2.3-21.1 18.7-21.1 38.3-12.5 18.9 8.5 26 16 22.8 26.1 1 0 2-.1 4.2 0 5.2-16.9-14.3-28-30.7-34.8 2.9-12 2.4-24.1-.4-35.7-6-25.3-22.6-47.8-35.2-59-2.3-.1-2.1 1.9 2.6 6.5 11.6 10.7 37.1 49.2 23.3 84.9-3.9-1-7.6-1.5-10.9-1.4-5.3-29.1-17.5-53.2-23.6-64.6-11.5-21.4-29.5-65.3-37.2-95.7-4.5 6.4-12.4 11.9-22.3 15-4.7 1.5-9.7 5.5-15.9 9-13.9 8-30 8.8-42.4-1.2-4.5-3.6-8-7.6-12.6-10.3-1.6-.9-5.1-3.3-6.2-4.1-2 37.8-27.3 85.3-39.3 112.7-8.3 19.7-13.2 40.8-13.8 61.5-21.8-29.1-5.9-66.3 2.6-82.4 9.5-17.6 11-22.5 8.7-20.8-8.6 14-22 36.3-27.2 59.2-2.7 11.9-3.2 24 .3 35.2 3.5 11.2 11.1 21.5 24.6 29.9 0 0 24.8 14.3 38.3 32.5 7.4 10 9.7 18.7 7.4 24.9-2.5 6.7-9.6 8.9-16.7 8.9 4.8 6 10.3 13 14.4 19.6 37.6 25.7 82.2 15.7 114.3-7.2zM415 408.5c-10-11.3-7.2-33.1-17.1-41.6-6.9-6-13.6-5.4-22.6-5.1-7.7 8.8-25.8 19.6-38.4 16.3-11.5-2.9-18-16.3-18.8-29.5-.3.2-.7.3-1 .5-7.1 3.9-11.1 10.8-13.7 21.1-2.5 10.2-3.4 23.5-4.2 38.7-.7 11.8-6.2 26.4-9.9 40.6-3.5 13.2-5.8 25.2-1.1 36.3 7.2 14.5 19.5 20.4 33.7 19.3 14.2-1.1 30.4-9.8 43.6-25.5 22-26.6 62.3-29.7 63.2-46.5.3-5.1-3.1-13-13.7-24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4 3.9-3.4 5.9-6.3 3.1-6.6-2.8-.3-2.6 2.6-6 5.1-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2-10.4 0-18.7-4.8-24.9-9.7-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"},"dribbble":{"viewBox":"0 0 512 512","path":"M256 8C119.252 8 8 119.252 8 256s111.252 248 248 248 248-111.252 248-248S392.748 8 256 8zm163.97 114.366c29.503 36.046 47.369 81.957 47.835 131.955-6.984-1.477-77.018-15.682-147.502-6.818-5.752-14.041-11.181-26.393-18.617-41.614 78.321-31.977 113.818-77.482 118.284-83.523zM396.421 97.87c-3.81 5.427-35.697 48.286-111.021 76.519-34.712-63.776-73.185-116.168-79.04-124.008 67.176-16.193 137.966 1.27 190.061 47.489zm-230.48-33.25c5.585 7.659 43.438 60.116 78.537 122.509-99.087 26.313-186.36 25.934-195.834 25.809C62.38 147.205 106.678 92.573 165.941 64.62zM44.17 256.323c0-2.166.043-4.322.108-6.473 9.268.19 111.92 1.513 217.706-30.146 6.064 11.868 11.857 23.915 17.174 35.949-76.599 21.575-146.194 83.527-180.531 142.306C64.794 360.405 44.17 310.73 44.17 256.323zm81.807 167.113c22.127-45.233 82.178-103.622 167.579-132.756 29.74 77.283 42.039 142.053 45.189 160.638-68.112 29.013-150.015 21.053-212.768-27.882zm248.38 8.489c-2.171-12.886-13.446-74.897-41.152-151.033 66.38-10.626 124.7 6.768 131.947 9.055-9.442 58.941-43.273 109.844-90.795 141.978z"},"skype":{"viewBox":"0 0 448 512","path":"M424.7 299.8c2.9-14 4.7-28.9 4.7-43.8 0-113.5-91.9-205.3-205.3-205.3-14.9 0-29.7 1.7-43.8 4.7C161.3 40.7 137.7 32 112 32 50.2 32 0 82.2 0 144c0 25.7 8.7 49.3 23.3 68.2-2.9 14-4.7 28.9-4.7 43.8 0 113.5 91.9 205.3 205.3 205.3 14.9 0 29.7-1.7 43.8-4.7 19 14.6 42.6 23.3 68.2 23.3 61.8 0 112-50.2 112-112 .1-25.6-8.6-49.2-23.2-68.1zm-194.6 91.5c-65.6 0-120.5-29.2-120.5-65 0-16 9-30.6 29.5-30.6 31.2 0 34.1 44.9 88.1 44.9 25.7 0 42.3-11.4 42.3-26.3 0-18.7-16-21.6-42-28-62.5-15.4-117.8-22-117.8-87.2 0-59.2 58.6-81.1 109.1-81.1 55.1 0 110.8 21.9 110.8 55.4 0 16.9-11.4 31.8-30.3 31.8-28.3 0-29.2-33.5-75-33.5-25.7 0-42 7-42 22.5 0 19.8 20.8 21.8 69.1 33 41.4 9.3 90.7 26.8 90.7 77.6 0 59.1-57.1 86.5-112 86.5z"},"foursquare":{"viewBox":"0 0 368 512","path":"M323.1 3H49.9C12.4 3 0 31.3 0 49.1v433.8c0 20.3 12.1 27.7 18.2 30.1 6.2 2.5 22.8 4.6 32.9-7.1C180 356.5 182.2 354 182.2 354c3.1-3.4 3.4-3.1 6.8-3.1h83.4c35.1 0 40.6-25.2 44.3-39.7l48.6-243C373.8 25.8 363.1 3 323.1 3zm-16.3 73.8l-11.4 59.7c-1.2 6.5-9.5 13.2-16.9 13.2H172.1c-12 0-20.6 8.3-20.6 20.3v13c0 12 8.6 20.6 20.6 20.6h90.4c8.3 0 16.6 9.2 14.8 18.2-1.8 8.9-10.5 53.8-11.4 58.8-.9 4.9-6.8 13.5-16.9 13.5h-73.5c-13.5 0-17.2 1.8-26.5 12.6 0 0-8.9 11.4-89.5 108.3-.9.9-1.8.6-1.8-.3V75.9c0-7.7 6.8-16.6 16.6-16.6h219c8.2 0 15.6 7.7 13.5 17.5z"},"trello":{"viewBox":"0 0 448 512","path":"M392 32H56C25.1 32 0 57.1 0 88v336c0 30.9 25.1 56 56 56h336c30.9 0 56-25.1 56-56V88c0-30.9-25.1-56-56-56zM194.9 371.4c0 14.8-12 26.9-26.9 26.9H85.1c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9H168c14.8 0 26.9 12 26.9 26.9v254.3zm194.9-112c0 14.8-12 26.9-26.9 26.9H280c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9h82.9c14.8 0 26.9 12 26.9 26.9v142.3z"},"gratipay":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm114.6 226.4l-113 152.7-112.7-152.7c-8.7-11.9-19.1-50.4 13.6-72 28.1-18.1 54.6-4.2 68.5 11.9 15.9 17.9 46.6 16.9 61.7 0 13.9-16.1 40.4-30 68.1-11.9 32.9 21.6 22.6 60 13.8 72z"},"vk":{"viewBox":"0 0 576 512","path":"M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"},"weibo":{"viewBox":"0 0 512 512","path":"M407 177.6c7.6-24-13.4-46.8-37.4-41.7-22 4.8-28.8-28.1-7.1-32.8 50.1-10.9 92.3 37.1 76.5 84.8-6.8 21.2-38.8 10.8-32-10.3zM214.8 446.7C108.5 446.7 0 395.3 0 310.4c0-44.3 28-95.4 76.3-143.7C176 67 279.5 65.8 249.9 161c-4 13.1 12.3 5.7 12.3 6 79.5-33.6 140.5-16.8 114 51.4-3.7 9.4 1.1 10.9 8.3 13.1 135.7 42.3 34.8 215.2-169.7 215.2zm143.7-146.3c-5.4-55.7-78.5-94-163.4-85.7-84.8 8.6-148.8 60.3-143.4 116s78.5 94 163.4 85.7c84.8-8.6 148.8-60.3 143.4-116zM347.9 35.1c-25.9 5.6-16.8 43.7 8.3 38.3 72.3-15.2 134.8 52.8 111.7 124-7.4 24.2 29.1 37 37.4 12 31.9-99.8-55.1-195.9-157.4-174.3zm-78.5 311c-17.1 38.8-66.8 60-109.1 46.3-40.8-13.1-58-53.4-40.3-89.7 17.7-35.4 63.1-55.4 103.4-45.1 42 10.8 63.1 50.2 46 88.5zm-86.3-30c-12.9-5.4-30 .3-38 12.9-8.3 12.9-4.3 28 8.6 34 13.1 6 30.8.3 39.1-12.9 8-13.1 3.7-28.3-9.7-34zm32.6-13.4c-5.1-1.7-11.4.6-14.3 5.4-2.9 5.1-1.4 10.6 3.7 12.9 5.1 2 11.7-.3 14.6-5.4 2.8-5.2 1.1-10.9-4-12.9z"},"renren":{"viewBox":"0 0 512 512","path":"M214 169.1c0 110.4-61 205.4-147.6 247.4C30 373.2 8 317.7 8 256.6 8 133.9 97.1 32.2 214 12.5v156.6zM255 504c-42.9 0-83.3-11-118.5-30.4C193.7 437.5 239.9 382.9 255 319c15.5 63.9 61.7 118.5 118.8 154.7C338.7 493 298.3 504 255 504zm190.6-87.5C359 374.5 298 279.6 298 169.1V12.5c116.9 19.7 206 121.4 206 244.1 0 61.1-22 116.6-58.4 159.9z"},"pagelines":{"viewBox":"0 0 384 512","path":"M384 312.7c-55.1 136.7-187.1 54-187.1 54-40.5 81.8-107.4 134.4-184.6 134.7-16.1 0-16.6-24.4 0-24.4 64.4-.3 120.5-42.7 157.2-110.1-41.1 15.9-118.6 27.9-161.6-82.2 109-44.9 159.1 11.2 178.3 45.5 9.9-24.4 17-50.9 21.6-79.7 0 0-139.7 21.9-149.5-98.1 119.1-47.9 152.6 76.7 152.6 76.7 1.6-16.7 3.3-52.6 3.3-53.4 0 0-106.3-73.7-38.1-165.2 124.6 43 61.4 162.4 61.4 162.4.5 1.6.5 23.8 0 33.4 0 0 45.2-89 136.4-57.5-4.2 134-141.9 106.4-141.9 106.4-4.4 27.4-11.2 53.4-20 77.5 0 0 83-91.8 172-20z"},"stack-exchange":{"viewBox":"0 0 448 512","path":"M17.7 332.3h412.7v22c0 37.7-29.3 68-65.3 68h-19L259.3 512v-89.7H83c-36 0-65.3-30.3-65.3-68v-22zm0-23.6h412.7v-85H17.7v85zm0-109.4h412.7v-85H17.7v85zM365 0H83C47 0 17.7 30.3 17.7 67.7V90h412.7V67.7C430.3 30.3 401 0 365 0z"},"vimeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16.2 149.6c-1.4 31.1-23.2 73.8-65.3 127.9-43.5 56.5-80.3 84.8-110.4 84.8-18.7 0-34.4-17.2-47.3-51.6-25.2-92.3-35.9-146.4-56.7-146.4-2.4 0-10.8 5-25.1 15.1L64 192c36.9-32.4 72.1-68.4 94.1-70.4 24.9-2.4 40.2 14.6 46 51.1 20.5 129.6 29.6 149.2 66.8 90.5 13.4-21.2 20.6-37.2 21.5-48.3 3.4-32.8-25.6-30.6-45.2-22.2 15.7-51.5 45.8-76.5 90.1-75.1 32.9 1 48.4 22.4 46.5 64z"},"slack":{"viewBox":"0 0 448 512","path":"M244.2 217.5l19.3 57.7-59.8 20-19.3-57.7 59.8-20zm41.4 243.7C131.6 507.4 65 471.6 18.8 317.6S8.4 97 162.4 50.8C316.4 4.6 383 40.4 429.2 194.4c46.2 154 10.4 220.6-143.6 266.8zM366.2 265c-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-19.3-57.7 29-9.7c12.2-3.9 18.6-17.2 14.7-29.4-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-59.8 20.1-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l19.3 57.7-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 59.8-20.1 10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 29-9.7c12.2-4.2 18.6-17.5 14.7-29.6z"},"wordpress":{"viewBox":"0 0 512 512","path":"M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z"},"openid":{"viewBox":"0 0 448 512","path":"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"},"yahoo":{"viewBox":"0 0 448 512","path":"M252 292l4 220c-12.7-2.2-23.5-3.9-32.3-3.9-8.4 0-19.2 1.7-32.3 3.9l4-220C140.4 197.2 85 95.2 21.4 0c11.9 3.1 23 3.9 33.2 3.9 9 0 20.4-.8 34.1-3.9 40.9 72.2 82.1 138.7 135 225.5C261 163.9 314.8 81.4 358.6 0c11.1 2.9 22 3.9 32.9 3.9 11.5 0 23.2-1 35-3.9C392.1 47.9 294.9 216.9 252 292z"},"google":{"viewBox":"0 0 488 512","path":"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},"reddit":{"viewBox":"0 0 512 512","path":"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},"reddit-square":{"viewBox":"0 0 448 512","path":"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"},"stumbleupon-circle":{"viewBox":"0 0 496 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 177.5c-9.8 0-17.8 8-17.8 17.8v106.9c0 40.9-33.9 73.9-74.9 73.9-41.4 0-74.9-33.5-74.9-74.9v-46.5h57.3v45.8c0 10 8 17.8 17.8 17.8s17.8-7.9 17.8-17.8V200.1c0-40 34.2-72.1 74.7-72.1 40.7 0 74.7 32.3 74.7 72.6v23.7l-34.1 10.1-22.9-10.7v-20.6c.1-9.6-7.9-17.6-17.7-17.6zm167.6 123.6c0 41.4-33.5 74.9-74.9 74.9-41.2 0-74.9-33.2-74.9-74.2V263l22.9 10.7 34.1-10.1v47.1c0 9.8 8 17.6 17.8 17.6s17.8-7.9 17.8-17.6v-48h57.3c-.1 45.9-.1 46.4-.1 46.4z"},"stumbleupon":{"viewBox":"0 0 512 512","path":"M502.9 266v69.7c0 62.1-50.3 112.4-112.4 112.4-61.8 0-112.4-49.8-112.4-111.3v-70.2l34.3 16 51.1-15.2V338c0 14.7 12 26.5 26.7 26.5S417 352.7 417 338v-72h85.9zm-224.7-58.2l34.3 16 51.1-15.2V173c0-60.5-51.1-109-112.1-109-60.8 0-112.1 48.2-112.1 108.2v162.4c0 14.9-12 26.7-26.7 26.7S86 349.5 86 334.6V266H0v69.7C0 397.7 50.3 448 112.4 448c61.6 0 112.4-49.5 112.4-110.8V176.9c0-14.7 12-26.7 26.7-26.7s26.7 12 26.7 26.7v30.9z"},"delicious":{"viewBox":"0 0 448 512","path":"M446.5 68c-.4-1.5-.9-3-1.4-4.5-.9-2.5-2-4.8-3.3-7.1-1.4-2.4-3-4.8-4.7-6.9-2.1-2.5-4.4-4.8-6.9-6.8-1.1-.9-2.2-1.7-3.3-2.5-1.3-.9-2.6-1.7-4-2.4-1.8-1-3.6-1.8-5.5-2.5-1.7-.7-3.5-1.3-5.4-1.7-3.8-1-7.9-1.5-12-1.5H48C21.5 32 0 53.5 0 80v352c0 4.1.5 8.2 1.5 12 2 7.7 5.8 14.6 11 20.3 1 1.1 2.1 2.2 3.3 3.3 5.7 5.2 12.6 9 20.3 11 3.8 1 7.9 1.5 12 1.5h352c26.5 0 48-21.5 48-48V80c-.1-4.1-.6-8.2-1.6-12zM416 432c0 8.8-7.2 16-16 16H224V256H32V80c0-8.8 7.2-16 16-16h176v192h192v176z"},"digg":{"viewBox":"0 0 512 512","path":"M81.7 172.3H0v174.4h132.7V96h-51v76.3zm0 133.4H50.9v-92.3h30.8v92.3zm297.2-133.4v174.4h81.8v28.5h-81.8V416H512V172.3H378.9zm81.8 133.4h-30.8v-92.3h30.8v92.3zm-235.6 41h82.1v28.5h-82.1V416h133.3V172.3H225.1v174.4zm51.2-133.3h30.8v92.3h-30.8v-92.3zM153.3 96h51.3v51h-51.3V96zm0 76.3h51.3v174.4h-51.3V172.3z"},"pied-piper-pp":{"viewBox":"0 0 448 512","path":"M205.3 174.6c0 21.1-14.2 38.1-31.7 38.1-7.1 0-12.8-1.2-17.2-3.7v-68c4.4-2.7 10.1-4.2 17.2-4.2 17.5 0 31.7 16.9 31.7 37.8zm52.6 67c-7.1 0-12.8 1.5-17.2 4.2v68c4.4 2.5 10.1 3.7 17.2 3.7 17.4 0 31.7-16.9 31.7-37.8 0-21.1-14.3-38.1-31.7-38.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM185 255.1c41 0 74.2-35.6 74.2-79.6 0-44-33.2-79.6-74.2-79.6-12 0-24.1 3.2-34.6 8.8h-45.7V311l51.8-10.1v-50.6c8.6 3.1 18.1 4.8 28.5 4.8zm158.4 25.3c0-44-33.2-79.6-73.9-79.6-3.2 0-6.4.2-9.6.7-3.7 12.5-10.1 23.8-19.2 33.4-13.8 15-32.2 23.8-51.8 24.8V416l51.8-10.1v-50.6c8.6 3.2 18.2 4.7 28.7 4.7 40.8 0 74-35.6 74-79.6z"},"pied-piper-alt":{"viewBox":"0 0 576 512","path":"M242 187c6.3-11.8 13.2-17 25.9-21.8 27.3-10.3 40.2-30.5 58.9-51.1 11.9 8.4 12 24.6 31.6 23v21.8l6.3.3c37.4-14.4 74.7-30.2 106.6-54.6 48.3-36.8 52.9-50 81.3-100l2-2.6c-.6 14.1-6.3 27.3-12.4 39.9-30.5 63.8-78.7 100.3-146.8 116.7-12.4 2.9-26.4 3.2-37.6 8.9 1.4 9.8 13.2 18.1 13.2 23 0 3.4-5.5 7.2-7.5 8.6-11.2-12.9-16.1-19.3-22.7-22.1-7.6-3.5-63.9-6.4-98.8 10zm137.9 256.9c-19 0-64.1 9.5-79.9 19.8l6.9 45.1c35.7 6.1 70.1 3.6 106-9.8-4.8-10-23.5-55.1-33-55.1zM244 246c-3.2-2-6.3-2.9-10.1-2.9-6.6 0-12.6 3.2-19.3 3.7l1.7 4.9L244 246zm-12.6 31.8l24.1 61.2 21-13.8-31.3-50.9-13.8 3.5zM555.5 0l-.6 1.1-.3.9.6-.6.3-1.4zm-59.2 382.1c-33.9-56.9-75.3-118.4-150-115.5l-.3-6c-1.1-13.5 32.8 3.2 35.1-31l-14.4 7.2c-19.8-45.7-8.6-54.3-65.5-54.3-14.7 0-26.7 1.7-41.4 4.6 2.9 18.6 2.2 36.7-10.9 50.3l19.5 5.5c-1.7 3.2-2.9 6.3-2.9 9.8 0 21 42.8 2.9 42.8 33.6 0 18.4-36.8 60.1-54.9 60.1-8 0-53.7-50-53.4-60.1l.3-4.6 52.3-11.5c13-2.6 12.3-22.7-2.9-22.7-3.7 0-43.1 9.2-49.4 10.6-2-5.2-7.5-14.1-13.8-14.1-3.2 0-6.3 3.2-9.5 4-9.2 2.6-31 2.9-21.5 20.1L15.9 298.5c-5.5 1.1-8.9 6.3-8.9 11.8 0 6 5.5 10.9 11.5 10.9 8 0 131.3-28.4 147.4-32.2 2.6 3.2 4.6 6.3 7.8 8.6 20.1 14.4 59.8 85.9 76.4 85.9 24.1 0 58-22.4 71.3-41.9 3.2-4.3 6.9-7.5 12.4-6.9.6 13.8-31.6 34.2-33 43.7-1.4 10.2-1 35.2-.3 41.1 26.7 8.1 52-3.6 77.9-2.9 4.3-21 10.6-41.9 9.8-63.5l-.3-9.5c-1.4-34.2-10.9-38.5-34.8-58.6-1.1-1.1-2.6-2.6-3.7-4 2.2-1.4 1.1-1 4.6-1.7 88.5 0 56.3 183.6 111.5 229.9 33.1-15 72.5-27.9 103.5-47.2-29-25.6-52.6-45.7-72.7-79.9zm-196.2 46v27.3l11.8-3.4-2.9-23.8h-8.9zm76.1 2.9c0-1.4-.6-3.2-.9-4.6-26.8 0-36.9 3.8-59.5 6.3l2 12.4c9-1.5 58.4-6.6 58.4-14.1z"},"drupal":{"viewBox":"0 0 448 512","path":"M319.5 114.7c-22.2-14-43.5-19.5-64.7-33.5-13-8.8-31.3-30-46.5-48.3-2.7 29.3-11.5 41.2-22 49.5-21.3 17-34.8 22.2-53.5 32.3C117 123 32 181.5 32 290.5 32 399.7 123.8 480 225.8 480 327.5 480 416 406 416 294c0-112.3-83-171-96.5-179.3zm2.5 325.6c-20.1 20.1-90.1 28.7-116.7 4.2-4.8-4.8.3-12 6.5-12 0 0 17 13.3 51.5 13.3 27 0 46-7.7 54.5-14 6.1-4.6 8.4 4.3 4.2 8.5zm-54.5-52.6c8.7-3.6 29-3.8 36.8 1.3 4.1 2.8 16.1 18.8 6.2 23.7-8.4 4.2-1.2-15.7-26.5-15.7-14.7 0-19.5 5.2-26.7 11-7 6-9.8 8-12.2 4.7-6-8.2 15.9-22.3 22.4-25zM360 405c-15.2-1-45.5-48.8-65-49.5-30.9-.9-104.1 80.7-161.3 42-38.8-26.6-14.6-104.8 51.8-105.2 49.5-.5 83.8 49 108.5 48.5 21.3-.3 61.8-41.8 81.8-41.8 48.7 0 23.3 109.3-15.8 106z"},"joomla":{"viewBox":"0 0 448 512","path":"M.6 92.1C.6 58.8 27.4 32 60.4 32c30 0 54.5 21.9 59.2 50.2 32.6-7.6 67.1.6 96.5 30l-44.3 44.3c-20.5-20.5-42.6-16.3-55.4-3.5-14.3 14.3-14.3 37.9 0 52.2l99.5 99.5-44 44.3c-87.7-87.2-49.7-49.7-99.8-99.7-26.8-26.5-35-64.8-24.8-98.9C20.4 144.6.6 120.7.6 92.1zm129.5 116.4l44.3 44.3c10-10 89.7-89.7 99.7-99.8 14.3-14.3 37.6-14.3 51.9 0 12.8 12.8 17 35-3.5 55.4l44 44.3c31.2-31.2 38.5-67.6 28.9-101.2 29.2-4.1 51.9-29.2 51.9-59.5 0-33.2-26.8-60.1-59.8-60.1-30.3 0-55.4 22.5-59.5 51.6-33.8-9.9-71.7-1.5-98.3 25.1-18.3 19.1-71.1 71.5-99.6 99.9zm266.3 152.2c8.2-32.7-.9-68.5-26.3-93.9-11.8-12.2 5 4.7-99.5-99.7l-44.3 44.3 99.7 99.7c14.3 14.3 14.3 37.6 0 51.9-12.8 12.8-35 17-55.4-3.5l-44 44.3c27.6 30.2 68 38.8 102.7 28 5.5 27.4 29.7 48.1 58.9 48.1 33 0 59.8-26.8 59.8-60.1 0-30.2-22.5-55-51.6-59.1zm-84.3-53.1l-44-44.3c-87 86.4-50.4 50.4-99.7 99.8-14.3 14.3-37.6 14.3-51.9 0-13.1-13.4-16.9-35.3 3.2-55.4l-44-44.3c-30.2 30.2-38 65.2-29.5 98.3-26.7 6-46.2 29.9-46.2 58.2C0 453.2 26.8 480 59.8 480c28.6 0 52.5-19.8 58.6-46.7 32.7 8.2 68.5-.6 94.2-26 32.1-32 12.2-12.4 99.5-99.7z"},"behance":{"viewBox":"0 0 576 512","path":"M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79v-82.7zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-139.2-124.9-139.2-78.2 0-131.3 58.8-131.3 135.8 0 79.9 50.3 134.7 131.3 134.7 61.3 0 101-27.6 120.1-86.3H509c-6.7 21.9-34.3 33.5-55.7 33.5-41.3 0-63-24.2-63-65.3h185.1c.3-4.2.6-8.7.6-13.2zM390.4 274c2.3-33.7 24.7-54.8 58.5-54.8 35.4 0 53.2 20.8 56.2 54.8H390.4z"},"behance-square":{"viewBox":"0 0 448 512","path":"M186.5 293c0 19.3-14 25.4-31.2 25.4h-45.1v-52.9h46c18.6.1 30.3 7.8 30.3 27.5zm-7.7-82.3c0-17.7-13.7-21.9-28.9-21.9h-39.6v44.8H153c15.1 0 25.8-6.6 25.8-22.9zm132.3 23.2c-18.3 0-30.5 11.4-31.7 29.7h62.2c-1.7-18.5-11.3-29.7-30.5-29.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM271.7 185h77.8v-18.9h-77.8V185zm-43 110.3c0-24.1-11.4-44.9-35-51.6 17.2-8.2 26.2-17.7 26.2-37 0-38.2-28.5-47.5-61.4-47.5H68v192h93.1c34.9-.2 67.6-16.9 67.6-55.9zM380 280.5c0-41.1-24.1-75.4-67.6-75.4-42.4 0-71.1 31.8-71.1 73.6 0 43.3 27.3 73 71.1 73 33.2 0 54.7-14.9 65.1-46.8h-33.7c-3.7 11.9-18.6 18.1-30.2 18.1-22.4 0-34.1-13.1-34.1-35.3h100.2c.1-2.3.3-4.8.3-7.2z"},"steam":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111.2 248-248.4 248-113.8 0-209.6-76.3-239-180.4l95.2 39.3c6.4 32.1 34.9 56.4 68.9 56.4 39.2 0 71.9-32.4 70.2-73.5l84.5-60.2c52.1 1.3 95.8-40.9 95.8-93.5 0-51.6-42-93.5-93.7-93.5s-93.7 42-93.7 93.5v1.2L176.6 279c-15.5-.9-30.7 3.4-43.5 12.1L0 236.1C10.2 108.4 117.1 8 247.6 8 384.8 8 496 119 496 256zM155.7 384.3l-30.5-12.6a52.79 52.79 0 0 0 27.2 25.8c26.9 11.2 57.8-1.6 69-28.4 5.4-13 5.5-27.3.1-40.3-5.4-13-15.5-23.2-28.5-28.6-12.9-5.4-26.7-5.2-38.9-.6l31.5 13c19.8 8.2 29.2 30.9 20.9 50.7-8.3 19.9-31 29.2-50.8 21zm173.8-129.9c-34.4 0-62.4-28-62.4-62.3s28-62.3 62.4-62.3 62.4 28 62.4 62.3-27.9 62.3-62.4 62.3zm.1-15.6c25.9 0 46.9-21 46.9-46.8 0-25.9-21-46.8-46.9-46.8s-46.9 21-46.9 46.8c.1 25.8 21.1 46.8 46.9 46.8z"},"steam-square":{"viewBox":"0 0 448 512","path":"M185.2 356.5c7.7-18.5-1-39.7-19.6-47.4l-29.5-12.2c11.4-4.3 24.3-4.5 36.4.5 12.2 5.1 21.6 14.6 26.7 26.7 5 12.2 5 25.6-.1 37.7-10.5 25.1-39.4 37-64.6 26.5-11.6-4.8-20.4-13.6-25.4-24.2l28.5 11.8c18.6 7.8 39.9-.9 47.6-19.4zM400 32H48C21.5 32 0 53.5 0 80v160.7l116.6 48.1c12-8.2 26.2-12.1 40.7-11.3l55.4-80.2v-1.1c0-48.2 39.3-87.5 87.6-87.5s87.6 39.3 87.6 87.5c0 49.2-40.9 88.7-89.6 87.5l-79 56.3c1.6 38.5-29.1 68.8-65.7 68.8-31.8 0-58.5-22.7-64.5-52.7L0 319.2V432c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-99.7 222.5c-32.2 0-58.4-26.1-58.4-58.3s26.2-58.3 58.4-58.3 58.4 26.2 58.4 58.3-26.2 58.3-58.4 58.3zm.1-14.6c24.2 0 43.9-19.6 43.9-43.8 0-24.2-19.6-43.8-43.9-43.8-24.2 0-43.9 19.6-43.9 43.8 0 24.2 19.7 43.8 43.9 43.8z"},"spotify":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"},"deviantart":{"viewBox":"0 0 320 512","path":"M320 93.2l-98.2 179.1 7.4 9.5H320v127.7H159.1l-13.5 9.2-43.7 84c-.3 0-8.6 8.6-9.2 9.2H0v-93.2l93.2-179.4-7.4-9.2H0V102.5h156l13.5-9.2 43.7-84c.3 0 8.6-8.6 9.2-9.2H320v93.1z"},"soundcloud":{"viewBox":"0 0 640 512","path":"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"},"vine":{"viewBox":"0 0 384 512","path":"M384 254.7v52.1c-18.4 4.2-36.9 6.1-52.1 6.1-36.9 77.4-103 143.8-125.1 156.2-14 7.9-27.1 8.4-42.7-.8C137 452 34.2 367.7 0 102.7h74.5C93.2 261.8 139 343.4 189.3 404.5c27.9-27.9 54.8-65.1 75.6-106.9-49.8-25.3-80.1-80.9-80.1-145.6 0-65.6 37.7-115.1 102.2-115.1 114.9 0 106.2 127.9 81.6 181.5 0 0-46.4 9.2-63.5-20.5 3.4-11.3 8.2-30.8 8.2-48.5 0-31.3-11.3-46.6-28.4-46.6-18.2 0-30.8 17.1-30.8 50 .1 79.2 59.4 118.7 129.9 101.9z"},"codepen":{"viewBox":"0 0 512 512","path":"M502.285 159.704l-234-156c-7.987-4.915-16.511-4.96-24.571 0l-234 156C3.714 163.703 0 170.847 0 177.989v155.999c0 7.143 3.714 14.286 9.715 18.286l234 156.022c7.987 4.915 16.511 4.96 24.571 0l234-156.022c6-3.999 9.715-11.143 9.715-18.286V177.989c-.001-7.142-3.715-14.286-9.716-18.285zM278 63.131l172.286 114.858-76.857 51.429L278 165.703V63.131zm-44 0v102.572l-95.429 63.715-76.857-51.429L234 63.131zM44 219.132l55.143 36.857L44 292.846v-73.714zm190 229.715L61.714 333.989l76.857-51.429L234 346.275v102.572zm22-140.858l-77.715-52 77.715-52 77.715 52-77.715 52zm22 140.858V346.275l95.429-63.715 76.857 51.429L278 448.847zm190-156.001l-55.143-36.857L468 219.132v73.714z"},"jsfiddle":{"viewBox":"0 0 576 512","path":"M510.634 237.462c-4.727-2.621-5.664-5.748-6.381-10.776-2.352-16.488-3.539-33.619-9.097-49.095-35.895-99.957-153.99-143.386-246.849-91.646-27.37 15.25-48.971 36.369-65.493 63.903-3.184-1.508-5.458-2.71-7.824-3.686-30.102-12.421-59.049-10.121-85.331 9.167-25.531 18.737-36.422 44.548-32.676 76.408.355 3.025-1.967 7.621-4.514 9.545-39.712 29.992-56.031 78.065-41.902 124.615 13.831 45.569 57.514 79.796 105.608 81.433 30.291 1.031 60.637.546 90.959.539 84.041-.021 168.09.531 252.12-.48 52.664-.634 96.108-36.873 108.212-87.293 11.54-48.074-11.144-97.3-56.832-122.634zm21.107 156.88c-18.23 22.432-42.343 35.253-71.28 35.65-56.874.781-113.767.23-170.652.23 0 .7-163.028.159-163.728.154-43.861-.332-76.739-19.766-95.175-59.995-18.902-41.245-4.004-90.848 34.186-116.106 9.182-6.073 12.505-11.566 10.096-23.136-5.49-26.361 4.453-47.956 26.42-62.981 22.987-15.723 47.422-16.146 72.034-3.083 10.269 5.45 14.607 11.564 22.198-2.527 14.222-26.399 34.557-46.727 60.671-61.294 97.46-54.366 228.37 7.568 230.24 132.697.122 8.15 2.412 12.428 9.848 15.894 57.56 26.829 74.456 96.122 35.142 144.497zm-87.789-80.499c-5.848 31.157-34.622 55.096-66.666 55.095-16.953-.001-32.058-6.545-44.079-17.705-27.697-25.713-71.141-74.98-95.937-93.387-20.056-14.888-41.99-12.333-60.272 3.782-49.996 44.071 15.859 121.775 67.063 77.188 4.548-3.96 7.84-9.543 12.744-12.844 8.184-5.509 20.766-.884 13.168 10.622-17.358 26.284-49.33 38.197-78.863 29.301-28.897-8.704-48.84-35.968-48.626-70.179 1.225-22.485 12.364-43.06 35.414-55.965 22.575-12.638 46.369-13.146 66.991 2.474C295.68 280.7 320.467 323.97 352.185 343.47c24.558 15.099 54.254 7.363 68.823-17.506 28.83-49.209-34.592-105.016-78.868-63.46-3.989 3.744-6.917 8.932-11.41 11.72-10.975 6.811-17.333-4.113-12.809-10.353 20.703-28.554 50.464-40.44 83.271-28.214 31.429 11.714 49.108 44.366 42.76 78.186z"},"rebel":{"viewBox":"0 0 512 512","path":"M256.5 504C117.2 504 9 387.8 13.2 249.9 16 170.7 56.4 97.7 129.7 49.5c.3 0 1.9-.6 1.1.8-5.8 5.5-111.3 129.8-14.1 226.4 49.8 49.5 90 2.5 90 2.5 38.5-50.1-.6-125.9-.6-125.9-10-24.9-45.7-40.1-45.7-40.1l28.8-31.8c24.4 10.5 43.2 38.7 43.2 38.7.8-29.6-21.9-61.4-21.9-61.4L255.1 8l44.3 50.1c-20.5 28.8-21.9 62.6-21.9 62.6 13.8-23 43.5-39.3 43.5-39.3l28.5 31.8c-27.4 8.9-45.4 39.9-45.4 39.9-15.8 28.5-27.1 89.4.6 127.3 32.4 44.6 87.7-2.8 87.7-2.8 102.7-91.9-10.5-225-10.5-225-6.1-5.5.8-2.8.8-2.8 50.1 36.5 114.6 84.4 116.2 204.8C500.9 400.2 399 504 256.5 504z"},"empire":{"viewBox":"0 0 496 512","path":"M287.6 54.2c-10.8-2.2-22.1-3.3-33.5-3.6V32.4c78.1 2.2 146.1 44 184.6 106.6l-15.8 9.1c-6.1-9.7-12.7-18.8-20.2-27.1l-18 15.5c-26-29.6-61.4-50.7-101.9-58.4l4.8-23.9zM53.4 322.4l23-7.7c-6.4-18.3-10-38.2-10-58.7s3.3-40.4 9.7-58.7l-22.7-7.7c3.6-10.8 8.3-21.3 13.6-31l-15.8-9.1C34 181 24.1 217.5 24.1 256s10 75 27.1 106.6l15.8-9.1c-5.3-10-9.7-20.3-13.6-31.1zM213.1 434c-40.4-8-75.8-29.1-101.9-58.7l-18 15.8c-7.5-8.6-14.4-17.7-20.2-27.4l-16 9.4c38.5 62.3 106.8 104.3 184.9 106.6v-18.3c-11.3-.3-22.7-1.7-33.5-3.6l4.7-23.8zM93.3 120.9l18 15.5c26-29.6 61.4-50.7 101.9-58.4l-4.7-23.8c10.8-2.2 22.1-3.3 33.5-3.6V32.4C163.9 34.6 95.9 76.4 57.4 139l15.8 9.1c6-9.7 12.6-18.9 20.1-27.2zm309.4 270.2l-18-15.8c-26 29.6-61.4 50.7-101.9 58.7l4.7 23.8c-10.8 1.9-22.1 3.3-33.5 3.6v18.3c78.1-2.2 146.4-44.3 184.9-106.6l-16.1-9.4c-5.7 9.7-12.6 18.8-20.1 27.4zM496 256c0 137-111 248-248 248S0 393 0 256 111 8 248 8s248 111 248 248zm-12.2 0c0-130.1-105.7-235.8-235.8-235.8S12.2 125.9 12.2 256 117.9 491.8 248 491.8 483.8 386.1 483.8 256zm-39-106.6l-15.8 9.1c5.3 9.7 10 20.2 13.6 31l-22.7 7.7c6.4 18.3 9.7 38.2 9.7 58.7s-3.6 40.4-10 58.7l23 7.7c-3.9 10.8-8.3 21-13.6 31l15.8 9.1C462 331 471.9 294.5 471.9 256s-9.9-75-27.1-106.6zm-183 177.7c16.3-3.3 30.4-11.6 40.7-23.5l51.2 44.8c11.9-13.6 21.3-29.3 27.1-46.8l-64.2-22.1c2.5-7.5 3.9-15.2 3.9-23.5s-1.4-16.1-3.9-23.5l64.5-22.1c-6.1-17.4-15.5-33.2-27.4-46.8l-51.2 44.8c-10.2-11.9-24.4-20.5-40.7-23.8l13.3-66.4c-8.6-1.9-17.7-2.8-27.1-2.8-9.4 0-18.5.8-27.1 2.8l13.3 66.4c-16.3 3.3-30.4 11.9-40.7 23.8l-51.2-44.8c-11.9 13.6-21.3 29.3-27.4 46.8l64.5 22.1c-2.5 7.5-3.9 15.2-3.9 23.5s1.4 16.1 3.9 23.5l-64.2 22.1c5.8 17.4 15.2 33.2 27.1 46.8l51.2-44.8c10.2 11.9 24.4 20.2 40.7 23.5l-13.3 66.7c8.6 1.7 17.7 2.8 27.1 2.8 9.4 0 18.5-1.1 27.1-2.8l-13.3-66.7z"},"git-square":{"viewBox":"0 0 448 512","path":"M140.1 348.5c12.1 0 29.5 2.1 29.5 17.9 0 15.5-13.9 18.8-27 18.8-12.3 0-30.9-2-30.9-18s15.7-18.7 28.4-18.7zm-24.7-116.6c0 14.8 6.6 24.1 22.3 24.1 15.5 0 21.2-10 21.2-24.5.1-34.4-43.5-34.8-43.5.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-241 93.7c-12.3 4.8-25.5 8.4-38.9 8.4-38.5-22.1-90.7.9-90.7 49.5 0 18 11.6 42.9 29.6 48.9v.7c-13.4 5.9-17.1 36.1.7 47v.7c-19.5 6.4-32.3 18.8-32.3 40.2 0 36.8 34.8 47 65.4 47 37.1 0 64.8-13.4 64.8-54.3 0-50.4-72.1-31.8-72.1-59.1 0-9.6 5.2-13.4 14.1-15.2 29.6-5.5 48.2-28.6 48.2-58.7 0-5.2-1.1-10.2-2.9-15 4.8-1.1 9.5-2.3 14.1-3.9v-36.2zm56.8 1.8h-39.6c1.3 10.6 1.1 142.6 0 155.5h39.6c-1.1-12.8-1.2-145.1 0-155.5zm4.5-53.3c0-13.4-10-26.2-24.1-26.2-14.3 0-24.6 12.5-24.6 26.2 0 13.6 10.5 25.9 24.6 25.9 13.7 0 24.1-12.5 24.1-25.9zm104.3 53.3h-36.4c0-9.8-.4-19.6 1.1-29.5h-40.5c1.3 7.3 1.1 13.6 1.1 29.5h-17.1v33.9c11.9-1.9 12.1-.7 17.1-.7v.7h-.4v62.7c0 31.1 4.5 61.2 42.7 61.2 10.7 0 23-1.8 32.5-7v-35c-5.7 3.9-13.9 5.9-20.9 5.9-13.2 0-15.5-12.9-15.5-23.4v-65.2c22.7 0 36.4.7 36.4.7v-33.8z"},"git":{"viewBox":"0 0 448 512","path":"M18.8 221.7c0 25.3 16.2 60 41.5 68.5v1c-18.8 8.3-24 50.6 1 65.8v1C34 367 16 384.3 16 414.2c0 51.5 48.8 65.8 91.5 65.8 52 0 90.7-18.7 90.7-76 0-70.5-101-44.5-101-82.8 0-13.5 7.2-18.7 19.7-21.3 41.5-7.7 67.5-40 67.5-82.2 0-7.3-1.5-14.2-4-21 6.7-1.5 13.2-3.3 19.7-5.5v-50.5c-17.2 6.8-35.7 11.8-54.5 11.8-53.8-31-126.8 1.3-126.8 69.2zm87.7 163.8c17 0 41.2 3 41.2 25 0 21.8-19.5 26.3-37.7 26.3-17.3 0-43.3-2.7-43.3-25.2.1-22.3 22.1-26.1 39.8-26.1zM103.3 256c-22 0-31.3-13-31.3-33.8 0-49.3 61-48.8 61-.5 0 20.3-8 34.3-29.7 34.3zM432 305.5v49c-13.3 7.3-30.5 9.8-45.5 9.8-53.5 0-59.8-42.2-59.8-85.7v-87.7h.5v-1c-7 0-7.3-1.6-24 1v-47.5h24c0-22.3.3-31-1.5-41.2h56.7c-2 13.8-1.5 27.5-1.5 41.2h51v47.5s-19.3-1-51-1V281c0 14.8 3.3 32.8 21.8 32.8 9.8 0 21.3-2.8 29.3-8.3zM286 68.7c0 18.7-14.5 36.2-33.8 36.2-19.8 0-34.5-17.2-34.5-36.2 0-19.3 14.5-36.7 34.5-36.7C272 32 286 50 286 68.7zm-6.2 74.5c-1.8 14.6-1.6 199.8 0 217.8h-55.5c1.6-18.1 1.8-203 0-217.8h55.5z"},"hacker-news":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm21.2 197.2H21c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4zm218 53.9V384h-31.4V281.3L128 128h37.3c52.5 98.3 49.2 101.2 59.3 125.6 12.3-27 5.8-24.4 60.6-125.6H320l-80.8 155.1z"},"tencent-weibo":{"viewBox":"0 0 384 512","path":"M72.3 495.8c1.4 19.9-27.6 22.2-29.7 2.9C31 368.8 73.7 259.2 144 185.5c-15.6-34 9.2-77.1 50.6-77.1 30.3 0 55.1 24.6 55.1 55.1 0 44-49.5 70.8-86.9 45.1-65.7 71.3-101.4 169.8-90.5 287.2zM192 .1C66.1.1-12.3 134.3 43.7 242.4 52.4 259.8 79 246.9 70 229 23.7 136.4 91 29.8 192 29.8c75.4 0 136.9 61.4 136.9 136.9 0 90.8-86.9 153.9-167.7 133.1-19.1-4.1-25.6 24.4-6.6 29.1 110.7 23.2 204-60 204-162.3C358.6 74.7 284 .1 192 .1z"},"qq":{"viewBox":"0 0 448 512","path":"M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"},"weixin":{"viewBox":"0 0 576 512","path":"M385.2 167.6c6.4 0 12.6.3 18.8 1.1C387.4 90.3 303.3 32 207.7 32 100.5 32 13 104.8 13 197.4c0 53.4 29.3 97.5 77.9 131.6l-19.3 58.6 68-34.1c24.4 4.8 43.8 9.7 68.2 9.7 6.2 0 12.1-.3 18.3-.8-4-12.9-6.2-26.6-6.2-40.8-.1-84.9 72.9-154 165.3-154zm-104.5-52.9c14.5 0 24.2 9.7 24.2 24.4 0 14.5-9.7 24.2-24.2 24.2-14.8 0-29.3-9.7-29.3-24.2.1-14.7 14.6-24.4 29.3-24.4zm-136.4 48.6c-14.5 0-29.3-9.7-29.3-24.2 0-14.8 14.8-24.4 29.3-24.4 14.8 0 24.4 9.7 24.4 24.4 0 14.6-9.6 24.2-24.4 24.2zM563 319.4c0-77.9-77.9-141.3-165.4-141.3-92.7 0-165.4 63.4-165.4 141.3S305 460.7 397.6 460.7c19.3 0 38.9-5.1 58.6-9.9l53.4 29.3-14.8-48.6C534 402.1 563 363.2 563 319.4zm-219.1-24.5c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.8 0 24.4 9.7 24.4 19.3 0 10-9.7 19.6-24.4 19.6zm107.1 0c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.5 0 24.4 9.7 24.4 19.3.1 10-9.9 19.6-24.4 19.6z"},"slideshare":{"viewBox":"0 0 512 512","path":"M249.429 211.436c0 31.716-27.715 57.717-61.717 57.717-34.001 0-61.716-26.001-61.716-57.717 0-32.001 27.715-57.716 61.716-57.716 34.001 0 61.717 25.715 61.717 57.716zm254.294 50.002c-18.286 22.573-53.144 50.288-106.289 72.003C453.722 525.163 260 555.735 263.143 457.446c0 1.714-.286-52.859-.286-93.432-4.285-.858-8.571-2-13.714-3.143 0 40.858-.286 98.289-.286 96.575C252 555.735 58.278 525.163 114.566 333.441c-53.145-21.715-88.003-49.43-106.29-72.003-9.143-13.714.858-28.287 16.001-17.715 2 1.428 4.285 2.857 6.285 4.285V49.716C30.563 22.287 51.135 0 76.565 0h359.157c25.429 0 46.002 22.287 46.002 49.716v198.293l6-4.285c15.143-10.573 25.143 4 15.999 17.714zm-46.572-189.15c0-32.858-10.572-45.716-40.859-45.716H98.566c-31.716 0-40.573 10.858-40.573 45.716v192.293c67.717 35.43 125.72 29.144 157.435 28.001 13.429-.286 22.001 2.286 27.144 7.715 1.689 1.687 10.023 9.446 20.287 17.143 1.143-15.715 10.001-25.715 33.716-24.858 32.287 1.428 91.718 7.715 160.577-29.716V72.288zM331.146 153.72c-34.002 0-61.716 25.715-61.716 57.716 0 31.716 27.715 57.717 61.716 57.717 34.287 0 61.716-26.001 61.716-57.717 0-32.001-27.429-57.716-61.716-57.716z"},"twitch":{"viewBox":"0 0 448 512","path":"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"},"yelp":{"viewBox":"0 0 384 512","path":"M136.9 328c-1 .3-109.2 35.7-115.8 35.7-15.2-.9-18.5-16.2-19.9-31.2-1.5-14.2-1.4-29.8.3-46.8 1.9-18.8 5.5-45.1 24.2-44 4.8 0 67.1 25.9 112.7 44.4 17.1 6.8 18.6 35.8-1.5 41.9zm57.9-113.9c1.8 38.2-25.5 48.5-47.2 14.3L41.3 60.4c-1.5-6.6.3-12.4 5.3-17.4C62.2 26.5 146 3.2 168.1 8.9c7.5 1.9 12.1 6.1 13.8 12.6 1.3 8.3 11.5 167.4 12.9 192.6zm-1.4 164.8c0 4.6.2 116.4-1.7 121.5-2.3 6-7 9.7-14.3 11.2-10.1 1.7-27.1-1.9-51-10.7-22-8.1-56.7-21.5-49.3-42.5 2.8-6.9 51.4-62.8 77.3-93.6 12-15.2 39.8-5.5 39 14.1zm180.2-117.8c-5.6 3.7-110.8 28.2-118.1 30.6l.3-.6c-18.1 4.7-35.4-18.5-23.3-34.6 3.7-3.7 65.9-92.4 72.8-97 5.2-3.6 11.3-3.8 18.3-.6 18.4 8.8 55.1 63.1 57.4 84.6-.1 2.9 1.2 11.7-7.4 17.6zm10.1 130.7c-2.7 20.6-44.5 73.4-63.8 81-6.9 2.6-12.9 2-17.7-2-5-3.5-61.8-97.1-64.9-102.3-10.9-16.2 6.8-39.8 25.6-33.2 0 0 110.5 35.7 114.7 39.4 5.2 4.1 7.2 9.8 6.1 17.1z"},"paypal":{"viewBox":"0 0 384 512","path":"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z"},"google-wallet":{"viewBox":"0 0 448 512","path":"M156.8 126.8c37.6 60.6 64.2 113.1 84.3 162.5-8.3 33.8-18.8 66.5-31.3 98.3-13.2-52.3-26.5-101.3-56-148.5 6.5-36.4 2.3-73.6 3-112.3zM109.3 200H16.1c-6.5 0-10.5 7.5-6.5 12.7C51.8 267 81.3 330.5 101.3 400h103.5c-16.2-69.7-38.7-133.7-82.5-193.5-3-4-8-6.5-13-6.5zm47.8-88c68.5 108 130 234.5 138.2 368H409c-12-138-68.4-265-143.2-368H157.1zm251.8-68.5c-1.8-6.8-8.2-11.5-15.2-11.5h-88.3c-5.3 0-9 5-7.8 10.3 13.2 46.5 22.3 95.5 26.5 146 48.2 86.2 79.7 178.3 90.6 270.8 15.8-60.5 25.3-133.5 25.3-203 0-73.6-12.1-145.1-31.1-212.6z"},"cc-visa":{"viewBox":"0 0 576 512","path":"M470.1 231.3s7.6 37.2 9.3 45H446c3.3-8.9 16-43.5 16-43.5-.2.3 3.3-9.1 5.3-14.9l2.8 13.4zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM152.5 331.2L215.7 176h-42.5l-39.3 106-4.3-21.5-14-71.4c-2.3-9.9-9.4-12.7-18.2-13.1H32.7l-.7 3.1c15.8 4 29.9 9.8 42.2 17.1l35.8 135h42.5zm94.4.2L272.1 176h-40.2l-25.1 155.4h40.1zm139.9-50.8c.2-17.7-10.6-31.2-33.7-42.3-14.1-7.1-22.7-11.9-22.7-19.2.2-6.6 7.3-13.4 23.1-13.4 13.1-.3 22.7 2.8 29.9 5.9l3.6 1.7 5.5-33.6c-7.9-3.1-20.5-6.6-36-6.6-39.7 0-67.6 21.2-67.8 51.4-.3 22.3 20 34.7 35.2 42.2 15.5 7.6 20.8 12.6 20.8 19.3-.2 10.4-12.6 15.2-24.1 15.2-16 0-24.6-2.5-37.7-8.3l-5.3-2.5-5.6 34.9c9.4 4.3 26.8 8.1 44.8 8.3 42.2.1 69.7-20.8 70-53zM528 331.4L495.6 176h-31.1c-9.6 0-16.9 2.8-21 12.9l-59.7 142.5H426s6.9-19.2 8.4-23.3H486c1.2 5.5 4.8 23.3 4.8 23.3H528z"},"cc-mastercard":{"viewBox":"0 0 576 512","path":"M482.9 410.3c0 6.8-4.6 11.7-11.2 11.7-6.8 0-11.2-5.2-11.2-11.7 0-6.5 4.4-11.7 11.2-11.7 6.6 0 11.2 5.2 11.2 11.7zm-310.8-11.7c-7.1 0-11.2 5.2-11.2 11.7 0 6.5 4.1 11.7 11.2 11.7 6.5 0 10.9-4.9 10.9-11.7-.1-6.5-4.4-11.7-10.9-11.7zm117.5-.3c-5.4 0-8.7 3.5-9.5 8.7h19.1c-.9-5.7-4.4-8.7-9.6-8.7zm107.8.3c-6.8 0-10.9 5.2-10.9 11.7 0 6.5 4.1 11.7 10.9 11.7 6.8 0 11.2-4.9 11.2-11.7 0-6.5-4.4-11.7-11.2-11.7zm105.9 26.1c0 .3.3.5.3 1.1 0 .3-.3.5-.3 1.1-.3.3-.3.5-.5.8-.3.3-.5.5-1.1.5-.3.3-.5.3-1.1.3-.3 0-.5 0-1.1-.3-.3 0-.5-.3-.8-.5-.3-.3-.5-.5-.5-.8-.3-.5-.3-.8-.3-1.1 0-.5 0-.8.3-1.1 0-.5.3-.8.5-1.1.3-.3.5-.3.8-.5.5-.3.8-.3 1.1-.3.5 0 .8 0 1.1.3.5.3.8.3 1.1.5s.2.6.5 1.1zm-2.2 1.4c.5 0 .5-.3.8-.3.3-.3.3-.5.3-.8 0-.3 0-.5-.3-.8-.3 0-.5-.3-1.1-.3h-1.6v3.5h.8V426h.3l1.1 1.4h.8l-1.1-1.3zM576 81v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V81c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM64 220.6c0 76.5 62.1 138.5 138.5 138.5 27.2 0 53.9-8.2 76.5-23.1-72.9-59.3-72.4-171.2 0-230.5-22.6-15-49.3-23.1-76.5-23.1-76.4-.1-138.5 62-138.5 138.2zm224 108.8c70.5-55 70.2-162.2 0-217.5-70.2 55.3-70.5 162.6 0 217.5zm-142.3 76.3c0-8.7-5.7-14.4-14.7-14.7-4.6 0-9.5 1.4-12.8 6.5-2.4-4.1-6.5-6.5-12.2-6.5-3.8 0-7.6 1.4-10.6 5.4V392h-8.2v36.7h8.2c0-18.9-2.5-30.2 9-30.2 10.2 0 8.2 10.2 8.2 30.2h7.9c0-18.3-2.5-30.2 9-30.2 10.2 0 8.2 10 8.2 30.2h8.2v-23zm44.9-13.7h-7.9v4.4c-2.7-3.3-6.5-5.4-11.7-5.4-10.3 0-18.2 8.2-18.2 19.3 0 11.2 7.9 19.3 18.2 19.3 5.2 0 9-1.9 11.7-5.4v4.6h7.9V392zm40.5 25.6c0-15-22.9-8.2-22.9-15.2 0-5.7 11.9-4.8 18.5-1.1l3.3-6.5c-9.4-6.1-30.2-6-30.2 8.2 0 14.3 22.9 8.3 22.9 15 0 6.3-13.5 5.8-20.7.8l-3.5 6.3c11.2 7.6 32.6 6 32.6-7.5zm35.4 9.3l-2.2-6.8c-3.8 2.1-12.2 4.4-12.2-4.1v-16.6h13.1V392h-13.1v-11.2h-8.2V392h-7.6v7.3h7.6V416c0 17.6 17.3 14.4 22.6 10.9zm13.3-13.4h27.5c0-16.2-7.4-22.6-17.4-22.6-10.6 0-18.2 7.9-18.2 19.3 0 20.5 22.6 23.9 33.8 14.2l-3.8-6c-7.8 6.4-19.6 5.8-21.9-4.9zm59.1-21.5c-4.6-2-11.6-1.8-15.2 4.4V392h-8.2v36.7h8.2V408c0-11.6 9.5-10.1 12.8-8.4l2.4-7.6zm10.6 18.3c0-11.4 11.6-15.1 20.7-8.4l3.8-6.5c-11.6-9.1-32.7-4.1-32.7 15 0 19.8 22.4 23.8 32.7 15l-3.8-6.5c-9.2 6.5-20.7 2.6-20.7-8.6zm66.7-18.3H408v4.4c-8.3-11-29.9-4.8-29.9 13.9 0 19.2 22.4 24.7 29.9 13.9v4.6h8.2V392zm33.7 0c-2.4-1.2-11-2.9-15.2 4.4V392h-7.9v36.7h7.9V408c0-11 9-10.3 12.8-8.4l2.4-7.6zm40.3-14.9h-7.9v19.3c-8.2-10.9-29.9-5.1-29.9 13.9 0 19.4 22.5 24.6 29.9 13.9v4.6h7.9v-51.7zm7.6-75.1v4.6h.8V302h1.9v-.8h-4.6v.8h1.9zm6.6 123.8c0-.5 0-1.1-.3-1.6-.3-.3-.5-.8-.8-1.1-.3-.3-.8-.5-1.1-.8-.5 0-1.1-.3-1.6-.3-.3 0-.8.3-1.4.3-.5.3-.8.5-1.1.8-.5.3-.8.8-.8 1.1-.3.5-.3 1.1-.3 1.6 0 .3 0 .8.3 1.4 0 .3.3.8.8 1.1.3.3.5.5 1.1.8.5.3 1.1.3 1.4.3.5 0 1.1 0 1.6-.3.3-.3.8-.5 1.1-.8.3-.3.5-.8.8-1.1.3-.6.3-1.1.3-1.4zm3.2-124.7h-1.4l-1.6 3.5-1.6-3.5h-1.4v5.4h.8v-4.1l1.6 3.5h1.1l1.4-3.5v4.1h1.1v-5.4zm4.4-80.5c0-76.2-62.1-138.3-138.5-138.3-27.2 0-53.9 8.2-76.5 23.1 72.1 59.3 73.2 171.5 0 230.5 22.6 15 49.5 23.1 76.5 23.1 76.4.1 138.5-61.9 138.5-138.4z"},"cc-discover":{"viewBox":"0 0 576 512","path":"M83 212.1c0 7.9-3.2 15.5-8.9 20.7-4.9 4.4-11.6 6.4-21.9 6.4H48V185h4.2c10.3 0 16.7 1.7 21.9 6.6 5.7 5 8.9 12.6 8.9 20.5zM504.8 184h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8 0-7.9-5.5-12.1-15.6-12.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM428 253h45.3v-13.8H444V217h28.3v-13.8H444V185h29.3v-14H428v82zm-86.2-82l35 84.2h8.6l35.5-84.2h-17.5l-22.2 55.2-21.9-55.2h-17.5zm-83 41.6c0 24.6 19.9 44.6 44.6 44.6 24.6 0 44.6-19.9 44.6-44.6 0-24.6-19.9-44.6-44.6-44.6-24.6 0-44.6 19.9-44.6 44.6zm-68-.5c0 32.5 33.6 52.5 63.3 38.2v-19c-19.3 19.3-46.8 5.8-46.8-19.2 0-23.7 26.7-39.1 46.8-19v-19c-30.2-15-63.3 6.8-63.3 38zm-33.9 28.3c-7.6 0-13.8-3.7-17.5-10.8l-10.3 9.9c17.8 26.1 56.6 18.2 56.6-11.3 0-13.1-5.4-19-23.6-25.6-9.6-3.4-12.3-5.9-12.3-10.3 0-8.7 14.5-14.1 24.9-2.5l8.4-10.8c-19.1-17.1-49.7-8.9-49.7 14.3 0 11.3 5.2 17.2 20.2 22.7 25.7 9.1 14.7 24.4 3.3 24.4zm-57.4-28.3c0-24.1-18-41.1-44.1-41.1H32v82h23.4c30.9 0 44.1-22.4 44.1-40.9zm23.4-41.1h-16v82h16v-82zM544 288c-33.3 20.8-226.4 124.4-416 160h401c8.2 0 15-6.8 15-15V288zm0-35l-25.9-34.5c12.1-2.5 18.7-10.6 18.7-23.2 0-28.5-30.3-24.4-52.9-24.4v82h16v-32.8h2.2l22.2 32.8H544z"},"cc-amex":{"viewBox":"0 0 576 512","path":"M576 255.4c-37.9-.2-44.2-.9-54.5 5v-5c-45.3 0-53.5-1.7-64.9 5.2v-5.2h-78.2v5.1c-11.4-6.5-21.4-5.1-75.7-5.1v5.6c-6.3-3.7-14.5-5.6-24.3-5.6h-58c-3.5 3.8-12.5 13.7-15.7 17.2-12.7-14.1-10.5-11.6-15.5-17.2h-83.1v92.3h82c3.3-3.5 12.9-13.9 16.1-17.4 12.7 14.3 10.3 11.7 15.4 17.4h48.9c0-14.7.1-8.3.1-23 11.5.2 24.3-.2 34.3-6.2 0 13.9-.1 17.1-.1 29.2h39.6c0-18.5.1-7.4.1-25.3 6.2 0 7.7 0 9.4.1.1 1.3 0 0 0 25.2 152.8 0 145.9 1.1 156.7-4.5v4.5c34.8 0 54.8 2.2 67.5-6.1V432c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V228.3h26.6c4.2-10.1 2.2-5.3 6.4-15.3h19.2c4.2 10 2.2 5.2 6.4 15.3h52.9v-11.4c2.2 5 1.1 2.5 5.1 11.4h29.5c2.4-5.5 2.6-5.8 5.1-11.4v11.4h135.5v-25.1c6.4 0 8-.1 9.8.2 0 0-.2 10.9.1 24.8h66.5v-8.9c7.4 5.9 17.4 8.9 29.7 8.9h26.8c4.2-10.1 2.2-5.3 6.4-15.3h19c6.5 15 .2.5 6.6 15.3h52.8v-21.9c11.8 19.7 7.8 12.9 13.2 21.9h41.6v-92h-39.9v18.4c-12.2-20.2-6.3-10.4-11.2-18.4h-43.3v20.6c-6.2-14.6-4.6-10.8-8.8-20.6h-32.4c-.4 0-2.3.2-2.3-.3h-27.6c-12.8 0-23.1 3.2-30.7 9.3v-9.3h-39.9v5.3c-10.8-6.1-20.7-5.1-64.4-5.3-.1 0-11.6-.1-11.6 0h-103c-2.5 6.1-6.8 16.4-12.6 30-2.8-6-11-23.8-13.9-30h-46V157c-7.4-17.4-4.7-11-9-21.1H22.9c-3.4 7.9-13.7 32-23.1 53.9V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48v175.4zm-186.6-80.6c-.3.2-1.4 2.2-1.4 7.6 0 6 .9 7.7 1.1 7.9.2.1 1.1.5 3.4.5l7.3-16.9c-1.1 0-2.1-.1-3.1-.1-5.6 0-7 .7-7.3 1zm-19.9 130.9c9.2 3.3 11 9.5 11 18.4l-.1 13.8h-16.6l.1-11.5c0-11.8-3.8-13.8-14.8-13.8h-17.6l-.1 25.3h-16.6l.1-69.3h39.4c13 0 27.1 2.3 27.1 18.7-.1 7.6-4.2 15.3-11.9 18.4zm-6.3-15.4c0-6.4-5.6-7.4-10.7-7.4h-21v15.6h20.7c5.6 0 11-1.3 11-8.2zm181.7-7.1H575v-14.6h-32.9c-12.8 0-23.8 6.6-23.8 20.7 0 33 42.7 12.8 42.7 27.4 0 5.1-4.3 6.4-8.4 6.4h-32l-.1 14.8h32c8.4 0 17.6-1.8 22.5-8.9v-25.8c-10.5-13.8-39.3-1.3-39.3-13.5 0-5.8 4.6-6.5 9.2-6.5zm-99.2-.3v-14.3h-55.2l-.1 69.3h55.2l.1-14.3-38.6-.3v-13.8H445v-14.1h-37.8v-12.5h38.5zm42.2 40.1h-32.2l-.1 14.8h32.2c14.8 0 26.2-5.6 26.2-22 0-33.2-42.9-11.2-42.9-26.3 0-5.6 4.9-6.4 9.2-6.4h30.4v-14.6h-33.2c-12.8 0-23.5 6.6-23.5 20.7 0 33 42.7 12.5 42.7 27.4-.1 5.4-4.7 6.4-8.8 6.4zm-78.1-158.7c-17.4-.3-33.2-4.1-33.2 19.7 0 11.8 2.8 19.9 16.1 19.9h7.4l23.5-54.5h24.8l27.9 65.4v-65.4h25.3l29.1 48.1v-48.1h16.9v69H524l-31.2-51.9v51.9h-33.7l-6.6-15.3h-34.3l-6.4 15.3h-19.2c-22.8 0-33-11.8-33-34 0-23.3 10.5-35.3 34-35.3h16.1v15.2zm14.3 24.5h22.8l-11.2-27.6-11.6 27.6zm-72.6-39.6h-16.9v69.3h16.9v-69.3zm-38.1 37.3c9.5 3.3 11 9.2 11 18.4v13.5h-16.6c-.3-14.8 3.6-25.1-14.8-25.1h-18v25.1h-16.4v-69.3l39.1.3c13.3 0 27.4 2 27.4 18.4.1 8-4.3 15.7-11.7 18.7zm-6.7-15.3c0-6.4-5.6-7.4-10.7-7.4h-21v15.3h20.7c5.7 0 11-1.3 11-7.9zm-59.5-7.4v-14.6h-55.5v69.3h55.5v-14.3h-38.9v-13.8h37.8v-14.1h-37.8v-12.5h38.9zm-84.6 54.7v-54.2l-24 54.2H124l-24-54.2v54.2H66.2l-6.4-15.3H25.3l-6.4 15.3H1l29.7-69.3h24.5l28.1 65.7v-65.7h27.1l21.7 47 19.7-47h27.6v69.3h-16.8zM53.9 188.8l-11.5-27.6-11.2 27.6h22.7zm253 102.5c0 27.9-30.4 23.3-49.3 23.3l-.1 23.3h-32.2l-20.4-23-21.3 23h-65.4l.1-69.3h66.5l20.5 22.8 21-22.8H279c15.6 0 27.9 5.4 27.9 22.7zm-112.7 11.8l-17.9-20.2h-41.7v12.5h36.3v14.1h-36.3v13.8h40.6l19-20.2zM241 276l-25.3 27.4 25.3 28.1V276zm48.3 15.3c0-6.1-4.6-8.4-10.2-8.4h-21.5v17.6h21.2c5.9 0 10.5-2.8 10.5-9.2z"},"cc-paypal":{"viewBox":"0 0 576 512","path":"M186.3 258.2c0 12.2-9.7 21.5-22 21.5-9.2 0-16-5.2-16-15 0-12.2 9.5-22 21.7-22 9.3 0 16.3 5.7 16.3 15.5zM80.5 209.7h-4.7c-1.5 0-3 1-3.2 2.7l-4.3 26.7 8.2-.3c11 0 19.5-1.5 21.5-14.2 2.3-13.4-6.2-14.9-17.5-14.9zm284 0H360c-1.8 0-3 1-3.2 2.7l-4.2 26.7 8-.3c13 0 22-3 22-18-.1-10.6-9.6-11.1-18.1-11.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM128.3 215.4c0-21-16.2-28-34.7-28h-40c-2.5 0-5 2-5.2 4.7L32 294.2c-.3 2 1.2 4 3.2 4h19c2.7 0 5.2-2.9 5.5-5.7l4.5-26.6c1-7.2 13.2-4.7 18-4.7 28.6 0 46.1-17 46.1-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.2 8.2-5.8-8.5-14.2-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9 0 20.2-4.9 26.5-11.9-.5 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H200c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm40.5 97.9l63.7-92.6c.5-.5.5-1 .5-1.7 0-1.7-1.5-3.5-3.2-3.5h-19.2c-1.7 0-3.5 1-4.5 2.5l-26.5 39-11-37.5c-.8-2.2-3-4-5.5-4h-18.7c-1.7 0-3.2 1.8-3.2 3.5 0 1.2 19.5 56.8 21.2 62.1-2.7 3.8-20.5 28.6-20.5 31.6 0 1.8 1.5 3.2 3.2 3.2h19.2c1.8-.1 3.5-1.1 4.5-2.6zm159.3-106.7c0-21-16.2-28-34.7-28h-39.7c-2.7 0-5.2 2-5.5 4.7l-16.2 102c-.2 2 1.3 4 3.2 4h20.5c2 0 3.5-1.5 4-3.2l4.5-29c1-7.2 13.2-4.7 18-4.7 28.4 0 45.9-17 45.9-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.3 8.2-5.5-8.5-14-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9.3 0 20.5-4.9 26.5-11.9-.3 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H484c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm47.5-33.3c0-2-1.5-3.5-3.2-3.5h-18.5c-1.5 0-3 1.2-3.2 2.7l-16.2 104-.3.5c0 1.8 1.5 3.5 3.5 3.5h16.5c2.5 0 5-2.9 5.2-5.7L544 191.2v-.3zm-90 51.8c-12.2 0-21.7 9.7-21.7 22 0 9.7 7 15 16.2 15 12 0 21.7-9.2 21.7-21.5.1-9.8-6.9-15.5-16.2-15.5z"},"cc-stripe":{"viewBox":"0 0 576 512","path":"M396.9 256.5c0 19.1-8.8 33.4-21.9 33.4-8.3 0-13.3-3-16.8-6.7l-.2-52.8c3.7-4.1 8.8-7 17-7 12.9-.1 21.9 14.5 21.9 33.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM122.2 281.1c0-42.3-54.3-34.7-54.3-50.7 0-5.5 4.6-7.7 12.1-7.7 10.8 0 24.5 3.3 35.3 9.1v-33.4c-11.8-4.7-23.5-6.5-35.3-6.5-28.8 0-48 15-48 40.2 0 39.3 54 32.9 54 49.9 0 6.6-5.7 8.7-13.6 8.7-11.8 0-26.9-4.9-38.9-11.3v33.9c13.2 5.7 26.6 8.1 38.8 8.1 29.6-.2 49.9-14.7 49.9-40.3zm68.9-86.9h-27v-30.8l-34.7 7.4-.2 113.9c0 21 15.8 36.5 36.9 36.5 11.6 0 20.2-2.1 24.9-4.7v-28.9c-4.5 1.8-27 8.3-27-12.6v-50.5h27v-30.3zm73.8 0c-4.7-1.7-21.3-4.8-29.6 10.5l-2.2-10.5h-30.7v124.5h35.5v-84.4c8.4-11 22.6-8.9 27.1-7.4v-32.7zm44.2 0h-35.7v124.5h35.7V194.2zm0-47.3l-35.7 7.6v28.9l35.7-7.6v-28.9zm122.7 108.8c0-41.3-23.5-63.8-48.4-63.8-13.9 0-22.9 6.6-27.8 11.1l-1.8-8.8h-31.3V360l35.5-7.5.1-40.2c5.1 3.7 12.7 9 25.1 9 25.4-.1 48.6-20.5 48.6-65.6zm112.2 1.2c0-36.4-17.6-65.1-51.3-65.1-33.8 0-54.3 28.7-54.3 64.9 0 42.8 24.2 64.5 58.8 64.5 17 0 29.7-3.9 39.4-9.2v-28.6c-9.7 4.9-20.8 7.9-34.9 7.9-13.8 0-26-4.9-27.6-21.5h69.5c.1-2 .4-9.4.4-12.9zm-51.6-36.1c-8.9 0-18.7 6.7-18.7 22.7h36.7c0-16-9.3-22.7-18-22.7z"},"lastfm":{"viewBox":"0 0 512 512","path":"M225.8 367.1l-18.8-51s-30.5 34-76.2 34c-40.5 0-69.2-35.2-69.2-91.5 0-72.1 36.4-97.9 72.1-97.9 66.5 0 74.8 53.3 100.9 134.9 18.8 56.9 54 102.6 155.4 102.6 72.7 0 122-22.3 122-80.9 0-72.9-62.7-80.6-115-92.1-25.8-5.9-33.4-16.4-33.4-34 0-19.9 15.8-31.7 41.6-31.7 28.2 0 43.4 10.6 45.7 35.8l58.6-7c-4.7-52.8-41.1-74.5-100.9-74.5-52.8 0-104.4 19.9-104.4 83.9 0 39.9 19.4 65.1 68 76.8 44.9 10.6 79.8 13.8 79.8 45.7 0 21.7-21.1 30.5-61 30.5-59.2 0-83.9-31.1-97.9-73.9-32-96.8-43.6-163-161.3-163C45.7 113.8 0 168.3 0 261c0 89.1 45.7 137.2 127.9 137.2 66.2 0 97.9-31.1 97.9-31.1z"},"lastfm-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-92.2 312.9c-63.4 0-85.4-28.6-97.1-64.1-16.3-51-21.5-84.3-63-84.3-22.4 0-45.1 16.1-45.1 61.2 0 35.2 18 57.2 43.3 57.2 28.6 0 47.6-21.3 47.6-21.3l11.7 31.9s-19.8 19.4-61.2 19.4c-51.3 0-79.9-30.1-79.9-85.8 0-57.9 28.6-92 82.5-92 73.5 0 80.8 41.4 100.8 101.9 8.8 26.8 24.2 46.2 61.2 46.2 24.9 0 38.1-5.5 38.1-19.1 0-19.9-21.8-22-49.9-28.6-30.4-7.3-42.5-23.1-42.5-48 0-40 32.3-52.4 65.2-52.4 37.4 0 60.1 13.6 63 46.6l-36.7 4.4c-1.5-15.8-11-22.4-28.6-22.4-16.1 0-26 7.3-26 19.8 0 11 4.8 17.6 20.9 21.3 32.7 7.1 71.8 12 71.8 57.5.1 36.7-30.7 50.6-76.1 50.6z"},"ioxhost":{"viewBox":"0 0 640 512","path":"M616 160h-67.3C511.2 70.7 422.9 8 320 8 183 8 72 119 72 256c0 16.4 1.6 32.5 4.7 48H24c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h67.3c37.5 89.3 125.8 152 228.7 152 137 0 248-111 248-248 0-16.4-1.6-32.5-4.7-48H616c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24zm-96 96c0 110.5-89.5 200-200 200-75.7 0-141.6-42-175.5-104H424c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24H125.8c-3.8-15.4-5.8-31.4-5.8-48 0-110.5 89.5-200 200-200 75.7 0 141.6 42 175.5 104H216c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h298.2c3.8 15.4 5.8 31.4 5.8 48zm-304-24h208c13.3 0 24 10.7 24 24 0 13.2-10.7 24-24 24H216c-13.3 0-24-10.7-24-24 0-13.2 10.7-24 24-24z"},"angellist":{"viewBox":"0 0 448 512","path":"M347.1 215.4c11.7-32.6 45.4-126.9 45.4-157.1 0-26.6-15.7-48.9-43.7-48.9-44.6 0-84.6 131.7-97.1 163.1C242 144 196.6 0 156.6 0c-31.1 0-45.7 22.9-45.7 51.7 0 35.3 34.2 126.8 46.6 162-6.3-2.3-13.1-4.3-20-4.3-23.4 0-48.3 29.1-48.3 52.6 0 8.9 4.9 21.4 8 29.7-36.9 10-51.1 34.6-51.1 71.7C46 435.6 114.4 512 210.6 512c118 0 191.4-88.6 191.4-202.9 0-43.1-6.9-82-54.9-93.7zM311.7 108c4-12.3 21.1-64.3 37.1-64.3 8.6 0 10.9 8.9 10.9 16 0 19.1-38.6 124.6-47.1 148l-34-6 33.1-93.7zM142.3 48.3c0-11.9 14.5-45.7 46.3 47.1l34.6 100.3c-15.6-1.3-27.7-3-35.4 1.4-10.9-28.8-45.5-119.7-45.5-148.8zM140 244c29.3 0 67.1 94.6 67.1 107.4 0 5.1-4.9 11.4-10.6 11.4-20.9 0-76.9-76.9-76.9-97.7.1-7.7 12.7-21.1 20.4-21.1zm184.3 186.3c-29.1 32-66.3 48.6-109.7 48.6-59.4 0-106.3-32.6-128.9-88.3-17.1-43.4 3.8-68.3 20.6-68.3 11.4 0 54.3 60.3 54.3 73.1 0 4.9-7.7 8.3-11.7 8.3-16.1 0-22.4-15.5-51.1-51.4-29.7 29.7 20.5 86.9 58.3 86.9 26.1 0 43.1-24.2 38-42 3.7 0 8.3.3 11.7-.6 1.1 27.1 9.1 59.4 41.7 61.7 0-.9 2-7.1 2-7.4 0-17.4-10.6-32.6-10.6-50.3 0-28.3 21.7-55.7 43.7-71.7 8-6 17.7-9.7 27.1-13.1 9.7-3.7 20-8 27.4-15.4-1.1-11.2-5.7-21.1-16.9-21.1-27.7 0-120.6 4-120.6-39.7 0-6.7.1-13.1 17.4-13.1 32.3 0 114.3 8 138.3 29.1 18.1 16.1 24.3 113.2-31 174.7zm-98.6-126c9.7 3.1 19.7 4 29.7 6-7.4 5.4-14 12-20.3 19.1-2.8-8.5-6.2-16.8-9.4-25.1z"},"buysellads":{"viewBox":"0 0 448 512","path":"M224 150.7l42.9 160.7h-85.8L224 150.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-65.3 325.3l-94.5-298.7H159.8L65.3 405.3H156l111.7-91.6 24.2 91.6h90.8z"},"connectdevelop":{"viewBox":"0 0 576 512","path":"M550.5 241l-50.089-86.786c1.071-2.142 1.875-4.553 1.875-7.232 0-8.036-6.696-14.733-14.732-15.001l-55.447-95.893c.536-1.607 1.071-3.214 1.071-4.821 0-8.571-6.964-15.268-15.268-15.268-4.821 0-8.839 2.143-11.786 5.625H299.518C296.839 18.143 292.821 16 288 16s-8.839 2.143-11.518 5.625H170.411C167.464 18.143 163.447 16 158.625 16c-8.303 0-15.268 6.696-15.268 15.268 0 1.607.536 3.482 1.072 4.821l-55.983 97.233c-5.356 2.41-9.107 7.5-9.107 13.661 0 .535.268 1.071.268 1.607l-53.304 92.143c-7.232 1.339-12.59 7.5-12.59 15 0 7.232 5.089 13.393 12.054 15l55.179 95.358c-.536 1.607-.804 2.946-.804 4.821 0 7.232 5.089 13.393 12.054 14.732l51.697 89.732c-.536 1.607-1.071 3.482-1.071 5.357 0 8.571 6.964 15.268 15.268 15.268 4.821 0 8.839-2.143 11.518-5.357h106.875C279.161 493.857 283.447 496 288 496s8.839-2.143 11.518-5.357h107.143c2.678 2.946 6.696 4.821 10.982 4.821 8.571 0 15.268-6.964 15.268-15.268 0-1.607-.267-2.946-.803-4.285l51.697-90.268c6.964-1.339 12.054-7.5 12.054-14.732 0-1.607-.268-3.214-.804-4.821l54.911-95.358c6.964-1.339 12.322-7.5 12.322-15-.002-7.232-5.092-13.393-11.788-14.732zM153.535 450.732l-43.66-75.803h43.66v75.803zm0-83.839h-43.66c-.268-1.071-.804-2.142-1.339-3.214l44.999-47.41v50.624zm0-62.411l-50.357 53.304c-1.339-.536-2.679-1.34-4.018-1.607L43.447 259.75c.535-1.339.535-2.679.535-4.018s0-2.41-.268-3.482l51.965-90c2.679-.268 5.357-1.072 7.768-2.679l50.089 51.965v92.946zm0-102.322l-45.803-47.41c1.339-2.143 2.143-4.821 2.143-7.767 0-.268-.268-.804-.268-1.072l43.928-15.804v72.053zm0-80.625l-43.66 15.804 43.66-75.536v59.732zm326.519 39.108l.804 1.339L445.5 329.125l-63.75-67.232 98.036-101.518.268.268zM291.75 355.107l11.518 11.786H280.5l11.25-11.786zm-.268-11.25l-83.303-85.446 79.553-84.375 83.036 87.589-79.286 82.232zm5.357 5.893l79.286-82.232 67.5 71.25-5.892 28.125H313.714l-16.875-17.143zM410.411 44.393c1.071.536 2.142 1.072 3.482 1.34l57.857 100.714v.536c0 2.946.803 5.624 2.143 7.767L376.393 256l-83.035-87.589L410.411 44.393zm-9.107-2.143L287.732 162.518l-57.054-60.268 166.339-60h4.287zm-123.483 0c2.678 2.678 6.16 4.285 10.179 4.285s7.5-1.607 10.179-4.285h75L224.786 95.821 173.893 42.25h103.928zm-116.249 5.625l1.071-2.142a33.834 33.834 0 0 0 2.679-.804l51.161 53.84-54.911 19.821V47.875zm0 79.286l60.803-21.964 59.732 63.214-79.553 84.107-40.982-42.053v-83.304zm0 92.678L198 257.607l-36.428 38.304v-76.072zm0 87.858l42.053-44.464 82.768 85.982-17.143 17.678H161.572v-59.196zm6.964 162.053c-1.607-1.607-3.482-2.678-5.893-3.482l-1.071-1.607v-89.732h99.91l-91.607 94.821h-1.339zm129.911 0c-2.679-2.41-6.428-4.285-10.447-4.285s-7.767 1.875-10.447 4.285h-96.429l91.607-94.821h38.304l91.607 94.821H298.447zm120-11.786l-4.286 7.5c-1.339.268-2.41.803-3.482 1.339l-89.196-91.875h114.376l-17.412 83.036zm12.856-22.232l12.858-60.803h21.964l-34.822 60.803zm34.822-68.839h-20.357l4.553-21.16 17.143 18.214c-.535.803-1.071 1.874-1.339 2.946zm66.161-107.411l-55.447 96.697c-1.339.535-2.679 1.071-4.018 1.874l-20.625-21.964 34.554-163.928 45.803 79.286c-.267 1.339-.803 2.678-.803 4.285 0 1.339.268 2.411.536 3.75z"},"dashcube":{"viewBox":"0 0 448 512","path":"M326.6 104H110.4c-51.1 0-91.2 43.3-91.2 93.5V427c0 50.5 40.1 85 91.2 85h227.2c51.1 0 91.2-34.5 91.2-85V0L326.6 104zM153.9 416.5c-17.7 0-32.4-15.1-32.4-32.8V240.8c0-17.7 14.7-32.5 32.4-32.5h140.7c17.7 0 32 14.8 32 32.5v123.5l51.1 52.3H153.9z"},"forumbee":{"viewBox":"0 0 448 512","path":"M5.8 309.7C2 292.7 0 275.5 0 258.3 0 135 99.8 35 223.1 35c16.6 0 33.3 2 49.3 5.5C149 87.5 51.9 186 5.8 309.7zm392.9-189.2C385 103 369 87.8 350.9 75.2c-149.6 44.3-266.3 162.1-309.7 312 12.5 18.1 28 35.6 45.2 49 43.1-151.3 161.2-271.7 312.3-315.7zm15.8 252.7c15.2-25.1 25.4-53.7 29.5-82.8-79.4 42.9-145 110.6-187.6 190.3 30-4.4 58.9-15.3 84.6-31.3 35 13.1 70.9 24.3 107 33.6-9.3-36.5-20.4-74.5-33.5-109.8zm29.7-145.5c-2.6-19.5-7.9-38.7-15.8-56.8C290.5 216.7 182 327.5 137.1 466c18.1 7.6 37 12.5 56.6 15.2C240 367.1 330.5 274.4 444.2 227.7z"},"leanpub":{"viewBox":"0 0 576 512","path":"M386.539 111.485l15.096 248.955-10.979-.275c-36.232-.824-71.64 8.783-102.657 27.997-31.016-19.214-66.424-27.997-102.657-27.997-45.564 0-82.07 10.705-123.516 27.723L93.117 129.6c28.546-11.803 61.484-18.115 92.226-18.115 41.173 0 73.836 13.175 102.657 42.544 27.723-28.271 59.013-41.721 98.539-42.544zM569.07 448c-25.526 0-47.485-5.215-70.542-15.645-34.31-15.645-69.993-24.978-107.871-24.978-38.977 0-74.934 12.901-102.657 40.623-27.723-27.723-63.68-40.623-102.657-40.623-37.878 0-73.561 9.333-107.871 24.978C55.239 442.236 32.731 448 8.303 448H6.93L49.475 98.859C88.726 76.626 136.486 64 181.775 64 218.83 64 256.984 71.685 288 93.095 319.016 71.685 357.17 64 394.225 64c45.289 0 93.049 12.626 132.3 34.859L569.07 448zm-43.368-44.741l-34.036-280.246c-30.742-13.999-67.248-21.41-101.009-21.41-38.428 0-74.385 12.077-102.657 38.702-28.272-26.625-64.228-38.702-102.657-38.702-33.761 0-70.267 7.411-101.009 21.41L50.298 403.259c47.211-19.487 82.894-33.486 135.045-33.486 37.604 0 70.817 9.606 102.657 29.644 31.84-20.038 65.052-29.644 102.657-29.644 52.151 0 87.834 13.999 135.045 33.486z"},"sellsy":{"viewBox":"0 0 640 512","path":"M539.71 237.308c3.064-12.257 4.29-24.821 4.29-37.384C544 107.382 468.618 32 376.076 32c-77.22 0-144.634 53.012-163.02 127.781-15.322-13.176-34.934-20.53-55.157-20.53-46.271 0-83.962 37.69-83.962 83.961 0 7.354.92 15.015 3.065 22.369-42.9 20.225-70.785 63.738-70.785 111.234C6.216 424.843 61.68 480 129.401 480h381.198c67.72 0 123.184-55.157 123.184-123.184.001-56.384-38.916-106.025-94.073-119.508zM199.88 401.554c0 8.274-7.048 15.321-15.321 15.321H153.61c-8.274 0-15.321-7.048-15.321-15.321V290.626c0-8.273 7.048-15.321 15.321-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v110.928zm89.477 0c0 8.274-7.048 15.321-15.322 15.321h-30.949c-8.274 0-15.321-7.048-15.321-15.321V270.096c0-8.274 7.048-15.321 15.321-15.321h30.949c8.274 0 15.322 7.048 15.322 15.321v131.458zm89.477 0c0 8.274-7.047 15.321-15.321 15.321h-30.949c-8.274 0-15.322-7.048-15.322-15.321V238.84c0-8.274 7.048-15.321 15.322-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v162.714zm87.027 0c0 8.274-7.048 15.321-15.322 15.321h-28.497c-8.274 0-15.321-7.048-15.321-15.321V176.941c0-8.579 7.047-15.628 15.321-15.628h28.497c8.274 0 15.322 7.048 15.322 15.628v224.613z"},"shirtsinbulk":{"viewBox":"0 0 448 512","path":"M395.208 221.583H406v33.542h-10.792v-33.542zm0-9.625H406v-33.542h-10.792v33.542zm0 86.333H406V264.75h-10.792v33.541zM358.75 135.25h-33.542v10.5h33.542v-10.5zm36.458 206.208H406v-33.542h-10.792v33.542zM311.5 135.25h-33.542v10.5H311.5v-10.5zm-47.25 0H231v10.5h33.25v-10.5zm-47.25 0h-33.25v10.5H217v-10.5zm178.208 33.542H406V135.25h-33.542v10.5h22.75v23.042zm-255.792 259l30.625 13.417 4.375-9.917-30.625-13.417-4.375 9.917zM179.083 445l30.334 13.708 4.374-9.916-30.333-13.417-4.375 9.625zm216.125-60.375H406v-33.542h-10.792v33.542zm-334.833 8.167L91 406.208l4.375-9.624-30.625-13.709-4.375 9.917zm39.666 17.499l30.625 13.417 4.375-9.917-30.625-13.416-4.375 9.916zm132.417 38.501l4.375 9.916L267.459 445l-4.375-9.625-30.626 13.417zm118.417-52.208l4.375 9.624 30.624-13.416-4.374-9.917-30.625 13.709zM311.5 413.791l4.375 9.917 30.625-13.417-4.374-9.916-30.626 13.416zm-39.667 17.501l4.375 9.917 30.625-13.417-4.375-9.917-30.625 13.417zM311.5 46.583h-33.542v10.5H311.5v-10.5zm94.209 0h-33.251v10.5h33.251v-10.5zm-188.709 0h-33.25v10.5H217v-10.5zm141.75 0h-33.542v10.5h33.542v-10.5zm-94.5 0H231v10.5h33.25v-10.5zM448 3.708v406l-226.334 98.584L0 409.708v-406h448zm-29.166 116.958H29.166V390.75l192.792 85.75 196.875-85.75V120.666zm0-87.791H29.166V91.5h389.667V32.875zM75.542 46.583H42.291v10.5h33.251v-10.5zm94.5 0H136.5v10.5h33.542v-10.5zm-47.251 0H89.25v10.5h33.542v-10.5zm7.584 236.542c0-50.167 41.125-91.292 91.292-91.292 50.458 0 91.292 41.125 91.292 91.292 0 50.458-40.833 91.292-91.292 91.292-50.167-.001-91.292-40.834-91.292-91.292zm120.75 18.084c0 13.125-23.917 14.291-32.666 14.291-12.25 0-29.75-2.625-35.875-14.875h-.875L172.666 319c14.876 9.333 29.167 12.25 47.25 12.25 19.542 0 51.042-5.833 51.042-31.209 0-48.125-78.458-16.333-78.458-37.916 0-13.125 20.708-14.875 29.75-14.875 10.791 0 29.166 3.208 35.583 13.124h.875l8.751-16.916c-15.167-6.125-27.417-11.959-44.334-11.959-20.125 0-49.583 6.417-49.583 31.792 0 44.334 77.583 11.959 77.583 37.918zM122.791 135.25H89.25v10.5h33.542v-10.5zm-69.999 10.5h22.75v-10.5H42v33.542h10.792V145.75zm0 32.666H42v33.542h10.792v-33.542zm117.25-43.166H136.5v10.5h33.542v-10.5zm-117.25 86.333H42v33.542h10.792v-33.542zm0 86.334H42v33.542h10.792v-33.542zm0-43.167H42v33.542h10.792V264.75zm0 86.333H42v33.542h10.792v-33.542z"},"simplybuilt":{"viewBox":"0 0 512 512","path":"M481.2 64h-106c-14.5 0-26.6 11.8-26.6 26.3v39.6H163.3V90.3c0-14.5-12-26.3-26.6-26.3h-106C16.1 64 4.3 75.8 4.3 90.3v331.4c0 14.5 11.8 26.3 26.6 26.3h450.4c14.8 0 26.6-11.8 26.6-26.3V90.3c-.2-14.5-12-26.3-26.7-26.3zM149.8 355.8c-36.6 0-66.4-29.7-66.4-66.4 0-36.9 29.7-66.6 66.4-66.6 36.9 0 66.6 29.7 66.6 66.6 0 36.7-29.7 66.4-66.6 66.4zm212.4 0c-36.9 0-66.6-29.7-66.6-66.6 0-36.6 29.7-66.4 66.6-66.4 36.6 0 66.4 29.7 66.4 66.4 0 36.9-29.8 66.6-66.4 66.6z"},"skyatlas":{"viewBox":"0 0 640 512","path":"M640 329.3c0 65.9-52.5 114.4-117.5 114.4-165.9 0-196.6-249.7-359.7-249.7-146.9 0-147.1 212.2 5.6 212.2 42.5 0 90.9-17.8 125.3-42.5 5.6-4.1 16.9-16.3 22.8-16.3s10.9 5 10.9 10.9c0 7.8-13.1 19.1-18.7 24.1-40.9 35.6-100.3 61.2-154.7 61.2-83.4.1-154-59-154-144.9s67.5-149.1 152.8-149.1c185.3 0 222.5 245.9 361.9 245.9 99.9 0 94.8-139.7 3.4-139.7-17.5 0-35 11.6-46.9 11.6-8.4 0-15.9-7.2-15.9-15.6 0-11.6 5.3-23.7 5.3-36.3 0-66.6-50.9-114.7-116.9-114.7-53.1 0-80 36.9-88.8 36.9-6.2 0-11.2-5-11.2-11.2 0-5.6 4.1-10.3 7.8-14.4 25.3-28.8 64.7-43.7 102.8-43.7 79.4 0 139.1 58.4 139.1 137.8 0 6.9-.3 13.7-1.2 20.6 11.9-3.1 24.1-4.7 35.9-4.7 60.7 0 111.9 45.3 111.9 107.2z"},"facebook":{"viewBox":"0 0 448 512","path":"M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z"},"pinterest-p":{"viewBox":"0 0 384 512","path":"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"},"whatsapp":{"viewBox":"0 0 448 512","path":"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},"viacoin":{"viewBox":"0 0 384 512","path":"M384 32h-64l-80.7 192h-94.5L64 32H0l48 112H0v48h68.5l13.8 32H0v48h102.8L192 480l89.2-208H384v-48h-82.3l13.8-32H384v-48h-48l48-112zM192 336l-27-64h54l-27 64z"},"medium":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm372.2 106.1l-24 23c-2.1 1.6-3.1 4.2-2.7 6.7v169.3c-.4 2.6.6 5.2 2.7 6.7l23.5 23v5.1h-118V367l24.3-23.6c2.4-2.4 2.4-3.1 2.4-6.7V199.8l-67.6 171.6h-9.1L125 199.8v115c-.7 4.8 1 9.7 4.4 13.2l31.6 38.3v5.1H71.2v-5.1l31.6-38.3c3.4-3.5 4.9-8.4 4.1-13.2v-133c.4-3.7-1-7.3-3.8-9.8L75 138.1V133h87.3l67.4 148L289 133.1h83.2v5z"},"y-combinator":{"viewBox":"0 0 448 512","path":"M448 32v448H0V32h448zM236 287.5L313.5 142h-32.7L235 233c-4.7 9.3-9 18.3-12.8 26.8L210 233l-45.2-91h-35l76.7 143.8v94.5H236v-92.8z"},"optin-monster":{"viewBox":"0 0 576 512","path":"M550.671 450.303c0 11.62-15.673 19.457-32.158 14.863-12.16-3.243-31.346-17.565-36.211-27.294-5.674-11.62 4.054-32.698 18.916-30.806 15.674 1.621 49.453 25.401 49.453 43.237zM372.86 75.223c-3.783-72.151-100.796-79.718-125.928-23.51 44.588-24.321 90.257-15.673 125.928 23.51zM74.795 407.066c-15.673 1.621-49.452 25.401-49.452 43.237 0 11.62 15.673 19.457 32.157 14.863 12.16-3.243 31.076-17.565 35.94-27.294 5.946-11.62-3.782-32.698-18.645-30.806zm497.765 14.322c1.081 3.513 1.892 7.026 1.892 10.809.81 31.616-44.317 64.045-73.503 65.125-17.295.81-34.59-8.377-42.696-23.51-113.497 4.053-226.994 4.864-340.22 0-8.377 15.133-25.672 24.05-42.967 23.51-28.915-1.081-74.043-33.509-73.503-65.125.27-3.783.811-7.296 1.892-10.809-5.566-9.463-4.845-15.282 5.405-11.62 3.243-5.134 7.026-9.458 11.08-13.782-2.57-10.917 1.27-14.094 11.079-9.188 4.594-3.243 9.998-6.485 15.944-9.188 0-15.757 11.839-11.131 17.295-5.675 12.467-1.78 20.129.709 26.753 5.675v-19.726c-12.987 0-40.641-11.375-45.94-36.212-4.974-20.725 2.607-38.075 25.132-47.56.81-5.945 8.107-14.052 14.862-15.944 7.567-1.892 12.431 4.594 14.052 10.269 7.425 0 17.757 1.465 21.078 8.107 5.405-.541 11.079-1.352 16.484-1.892-2.432-1.892-5.134-3.513-8.107-4.594-5.134-8.917-13.782-11.079-24.591-11.62 0-.81 0-1.621.27-2.702-19.727-.541-44.048-5.675-54.857-17.835-21.321-23.638-15.935-83.577 12.16-103.498 8.377-5.675 21.618-.811 22.699 9.728 2.425 20.598.399 26.833 26.212 25.942 8.107-7.836 16.755-14.592 26.483-19.997-14.862-1.352-28.914 1.621-43.778 3.783 12.752-12.48 23.953-25.442 56.748-42.427 23.511-11.89 49.993-20.808 76.205-23.239-18.646-7.837-39.993-11.891-59.721-16.484 76.475-16.214 174.569-22.159 244.289 37.562 18.105 15.403 32.427 36.211 42.696 59.992 39.799 4.853 36.47-5.581 38.643-25.132 1.081-10.269 14.322-15.403 22.699-9.458 14.862 10.539 22.159 30.806 24.59 48.101 2.162 17.835.27 41.345-12.43 55.127-10.809 12.16-34.32 17.565-53.776 18.105v2.703c-11.08.27-20.268 2.432-25.673 11.62-2.972 1.081-5.674 2.703-8.377 4.594 5.675.54 11.35 1.351 16.755 1.891 1.869-5.619 12.535-8.377 21.077-8.377 1.621-5.405 6.756-11.89 14.052-10.269s14.052 9.998 14.863 15.944c10.809 4.324 22.159 12.16 25.131 25.672 1.892 8.107 1.621 15.133.27 21.888-5.726 25.262-33.361 36.212-45.939 36.212 0 6.756 0 13.241-.27 19.726 8.01-6.006 16.367-7.158 26.752-5.675 5.919-5.919 17.565-9.41 17.565 5.675 5.675 2.703 11.349 5.945 15.944 9.188 10.1-5.051 13.669-.539 10.809 9.188 4.053 4.323 8.107 8.917 11.079 13.782 10.136-3.62 11.021 2.078 5.409 11.62zm-73.773-254.016c17.295 6.756 26.212 22.159 30.265 35.67 1.081-10.539-2.702-39.453-13.782-51.073-7.296-7.296-14.052-5.134-14.052.81.001 6.216-1.35 11.62-2.431 14.593zm-18.646 12.43c12.971 15.673 17.024 41.615 12.7 62.963 10.809-2.162 20.537-6.215 26.212-12.16 1.892-2.162 3.783-4.864 4.864-7.566-1.081-21.348-10.269-42.697-29.725-48.912-3.242 3.243-9.187 4.864-14.051 5.675zm-21.889.811c7.567 20.537 12.431 42.696 14.322 64.585 3.513 0 7.567-.27 11.62-.811 5.945-24.321-.27-51.614-14.052-63.504-3.783 0-8.107 0-11.89-.27zM77.768 167.372c-1.081-2.973-2.432-8.377-2.432-14.593 0-5.945-7.026-8.107-14.052-.81-11.35 11.62-14.863 40.534-13.782 51.073 4.053-13.512 12.971-28.915 30.266-35.67zm5.675 75.394c-4.324-21.348-.27-47.291 12.701-62.963-4.865-.811-10.809-2.432-14.052-5.675-19.457 6.215-28.375 27.563-29.726 48.912 1.351 2.702 2.972 5.404 4.864 7.566 5.675 6.215 15.403 9.998 26.213 12.16zm41.345-61.073c-5.134 1.081-9.998 2.973-14.862 4.865l-12.16 5.134v-.27c-7.296 14.052-9.999 34.319-5.405 52.965 4.594.541 8.647.811 12.7.811 2.432-22.159 9.188-43.778 19.727-63.505zm88.095-23.239c0 42.155 34.319 76.205 76.205 76.205s76.205-34.05 76.205-76.205c0-41.886-34.319-75.935-76.205-75.935s-76.205 34.049-76.205 75.935zm152.41 97.283c9.969 50.608 3.299 64.692 16.484 58.099 15.944-8.107 22.699-39.183 22.97-57.019-12.971-.81-26.213-.81-39.454-1.08zm-71.611-.541v-.27c-.27 5.134.27 38.103 4.324 41.075 11.079 5.405 39.453 4.594 51.073 1.081 5.405-1.621 2.432-37.022 1.621-41.886-18.916-.27-38.102-.27-57.018 0zm-14.053 0v-.27c-19.456.27-38.642.27-57.829.811-1.892 9.187-4.594 48.911 1.892 51.614 12.971 5.675 41.616 5.134 54.586 1.621 4.595-2.432 2.433-45.399 1.351-53.776zm-85.662 57.56c5.405 2.432 8.647 2.432 9.728-4.324 1.892-8.647 2.432-36.752 4.865-52.155-12.16.27-24.591.811-36.752 1.621-5.405 19.727.27 45.129 22.159 54.858zm-65.666-11.08c43.778 47.02 92.689 85.663 155.923 106.47 67.558-19.186 115.659-59.991 163.219-107.011-11.095-4.315-7.715-10.363-7.296-11.62-8.918-.81-17.835-1.892-26.483-2.702-9.458 32.968-35.94 52.965-46.75 31.616-2.702-5.134-3.513-11.62-4.594-16.754-3.783 8.377-13.242 8.107-24.591 8.918-13.241 1.081-31.617 1.351-44.048-2.972-2.972 12.971-11.079 12.971-26.752 14.322-14.052 1.352-48.642 4.054-54.857-10.809-1.081 28.644-35.13 9.998-45.129-7.026-3.243-5.675-5.405-11.35-7.026-17.565-7.837.81-15.673 1.621-23.511 2.702 2.443 3.663 1.549 9.052-8.105 12.431zM115.6 453.545c-5.674-23.239-18.646-49.722-33.508-54.046-22.429-6.756-68.909 23.51-66.207 54.586 12.701 19.457 39.994 35.67 59.181 36.481 17.835.81 35.94-11.08 39.724-28.914.539-2.432.81-5.134.81-8.107zm7.296-5.944c33.509-19.457 69.179-35.671 105.931-47.02-38.643-20.537-68.098-47.831-97.283-77.016-2.162 1.352-5.134 2.432-7.836 3.513-1.637 4.91 8.718 5.33 5.405 12.431-2.162 4.054-8.648 7.567-15.133 9.188-2.161 2.702-5.134 4.864-7.836 6.485h-.27c-.27 13.511-.27 27.024.27 40.535 8.939 15.964 15.426 33.314 16.752 51.884zm320.764 12.7c-36.752-21.348-74.044-41.345-115.659-52.965-13.782 6.215-27.833 11.349-42.155 15.403-2.162.811-2.162.811-4.324 0-11.89-3.783-23.239-8.107-34.859-13.241-40.265 11.62-77.286 29.185-112.416 50.803h-.27v.27c.27 0 .27 0 .27-.27 103.227 4.054 206.455 3.513 309.413 0zm27.023-64.045l-.27.27c.541-13.782.811-27.563.811-41.345-2.973-1.621-5.675-4.054-8.107-6.756-6.485-1.351-12.971-5.134-15.133-8.918-1.892-4.053 1.351-7.566 5.945-10.269-.27-.541-.541-1.621-.541-2.432-2.972-.811-5.405-1.892-7.567-3.243-31.616 29.455-65.396 56.749-103.498 76.746 38.914 11.62 75.935 28.104 111.875 47.561 1.05-14.692 7.231-35.749 16.485-51.614zm23.24 3.244c-14.593 4.323-27.834 30.806-33.509 54.046 0 23.826 21.278 37.897 40.534 37.022 19.186-.811 46.48-17.024 59.181-36.481 2.973-31.077-43.507-61.344-66.206-54.587zM290.709 134.133c.045 0 .089.003.134.003.046 0 .09-.003.136-.003h-.27zm0 96.743c28.645 0 51.884-21.618 51.884-48.371 0-36.092-40.507-58.079-72.151-44.318 9.458 2.972 16.484 11.62 16.484 21.618 0 23.257-33.291 31.955-46.48 11.35-7.297 34.067 19.368 59.721 50.263 59.721zM68.039 474.083c.54 6.486 12.16 12.701 21.618 9.458 6.756-2.703 14.593-10.539 17.295-16.214 2.973-7.026-1.081-19.997-9.728-18.375-8.917 1.621-29.725 16.754-29.185 25.131zm410.75-25.131c-8.377-1.621-12.431 11.349-9.458 18.375 2.432 5.675 10.269 13.511 17.295 16.214 9.187 3.243 21.078-2.972 21.348-9.458.811-8.377-20.267-23.51-29.185-25.131z"},"opencart":{"viewBox":"0 0 640 512","path":"M423.3 440.7c0 25.3-20.3 45.6-45.6 45.6s-45.8-20.3-45.8-45.6 20.6-45.8 45.8-45.8c25.4 0 45.6 20.5 45.6 45.8zm-253.9-45.8c-25.3 0-45.6 20.6-45.6 45.8s20.3 45.6 45.6 45.6 45.8-20.3 45.8-45.6-20.5-45.8-45.8-45.8zm291.7-270C158.9 124.9 81.9 112.1 0 25.7c34.4 51.7 53.3 148.9 373.1 144.2 333.3-5 130 86.1 70.8 188.9 186.7-166.7 319.4-233.9 17.2-233.9z"},"expeditedssl":{"viewBox":"0 0 496 512","path":"M248 43.4C130.6 43.4 35.4 138.6 35.4 256S130.6 468.6 248 468.6 460.6 373.4 460.6 256 365.4 43.4 248 43.4zm-97.4 132.9c0-53.7 43.7-97.4 97.4-97.4s97.4 43.7 97.4 97.4v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6c0-82.1-124-82.1-124 0v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6zM389.7 380c0 9.7-8 17.7-17.7 17.7H124c-9.7 0-17.7-8-17.7-17.7V238.3c0-9.7 8-17.7 17.7-17.7h248c9.7 0 17.7 8 17.7 17.7V380zm-248-137.3v132.9c0 2.5-1.9 4.4-4.4 4.4h-8.9c-2.5 0-4.4-1.9-4.4-4.4V242.7c0-2.5 1.9-4.4 4.4-4.4h8.9c2.5 0 4.4 1.9 4.4 4.4zm141.7 48.7c0 13-7.2 24.4-17.7 30.4v31.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-31.6c-10.5-6.1-17.7-17.4-17.7-30.4 0-19.7 15.8-35.4 35.4-35.4s35.5 15.8 35.5 35.4zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 478.3C121 486.3 17.7 383 17.7 256S121 25.7 248 25.7 478.3 129 478.3 256 375 486.3 248 486.3z"},"cc-jcb":{"viewBox":"0 0 576 512","path":"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-63.4-16-165-14.9-165 59.3 0 77.1 108.2 73.6 165 59.2V287C312.9 311.7 253 309 253 256s59.8-55.6 107.5-31.2v-28zM544 286.5c0-18.5-16.5-30.5-38-32v-.8c19.5-2.7 30.3-15.5 30.3-30.2 0-19-15.7-30-37-31 0 0 6.3-.3-120.3-.3v127.5h122.7c24.3.1 42.3-12.9 42.3-33.2z"},"cc-diners-club":{"viewBox":"0 0 576 512","path":"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"},"creative-commons":{"viewBox":"0 0 496 512","path":"M245.83 214.87l-33.22 17.28c-9.43-19.58-25.24-19.93-27.46-19.93-22.13 0-33.22 14.61-33.22 43.84 0 23.57 9.21 43.84 33.22 43.84 14.47 0 24.65-7.09 30.57-21.26l30.55 15.5c-6.17 11.51-25.69 38.98-65.1 38.98-22.6 0-73.96-10.32-73.96-77.05 0-58.69 43-77.06 72.63-77.06 30.72-.01 52.7 11.95 65.99 35.86zm143.05 0l-32.78 17.28c-9.5-19.77-25.72-19.93-27.9-19.93-22.14 0-33.22 14.61-33.22 43.84 0 23.55 9.23 43.84 33.22 43.84 14.45 0 24.65-7.09 30.54-21.26l31 15.5c-2.1 3.75-21.39 38.98-65.09 38.98-22.69 0-73.96-9.87-73.96-77.05 0-58.67 42.97-77.06 72.63-77.06 30.71-.01 52.58 11.95 65.56 35.86zM247.56 8.05C104.74 8.05 0 123.11 0 256.05c0 138.49 113.6 248 247.56 248 129.93 0 248.44-100.87 248.44-248 0-137.87-106.62-248-248.44-248zm.87 450.81c-112.54 0-203.7-93.04-203.7-202.81 0-105.42 85.43-203.27 203.72-203.27 112.53 0 202.82 89.46 202.82 203.26-.01 121.69-99.68 202.82-202.84 202.82z"},"gg":{"viewBox":"0 0 512 512","path":"M179.2 230.4l102.4 102.4-102.4 102.4L0 256 179.2 76.8l44.8 44.8-25.6 25.6-19.2-19.2-128 128 128 128 51.5-51.5-77.1-76.5 25.6-25.6zM332.8 76.8L230.4 179.2l102.4 102.4 25.6-25.6-77.1-76.5 51.5-51.5 128 128-128 128-19.2-19.2-25.6 25.6 44.8 44.8L512 256 332.8 76.8z"},"gg-circle":{"viewBox":"0 0 512 512","path":"M257 8C120 8 9 119 9 256s111 248 248 248 248-111 248-248S394 8 257 8zm-49.5 374.8L81.8 257.1l125.7-125.7 35.2 35.4-24.2 24.2-11.1-11.1-77.2 77.2 77.2 77.2 26.6-26.6-53.1-52.9 24.4-24.4 77.2 77.2-75 75.2zm99-2.2l-35.2-35.2 24.1-24.4 11.1 11.1 77.2-77.2-77.2-77.2-26.5 26.5 53.1 52.9-24.4 24.4-77.2-77.2 75-75L432.2 255 306.5 380.6z"},"tripadvisor":{"viewBox":"0 0 576 512","path":"M166.4 280.521c0 13.236-10.73 23.966-23.966 23.966s-23.966-10.73-23.966-23.966 10.73-23.966 23.966-23.966 23.966 10.729 23.966 23.966zm264.962-23.956c-13.23 0-23.956 10.725-23.956 23.956 0 13.23 10.725 23.956 23.956 23.956 13.23 0 23.956-10.725 23.956-23.956-.001-13.231-10.726-23.956-23.956-23.956zm89.388 139.49c-62.667 49.104-153.276 38.109-202.379-24.559l-30.979 46.325-30.683-45.939c-48.277 60.39-135.622 71.891-197.885 26.055-64.058-47.158-77.759-137.316-30.601-201.374A186.762 186.762 0 0 0 0 139.416l90.286-.05a358.48 358.48 0 0 1 197.065-54.03 350.382 350.382 0 0 1 192.181 53.349l96.218.074a185.713 185.713 0 0 0-28.352 57.649c46.793 62.747 34.964 151.37-26.648 199.647zM259.366 281.761c-.007-63.557-51.535-115.075-115.092-115.068C80.717 166.7 29.2 218.228 29.206 281.785c.007 63.557 51.535 115.075 115.092 115.068 63.513-.075 114.984-51.539 115.068-115.052v-.04zm28.591-10.455c5.433-73.44 65.51-130.884 139.12-133.022a339.146 339.146 0 0 0-139.727-27.812 356.31 356.31 0 0 0-140.164 27.253c74.344 1.582 135.299 59.424 140.771 133.581zm251.706-28.767c-21.992-59.634-88.162-90.148-147.795-68.157-59.634 21.992-90.148 88.162-68.157 147.795v.032c22.038 59.607 88.198 90.091 147.827 68.113 59.615-22.004 90.113-88.162 68.125-147.783zm-326.039 37.975v.115c-.057 39.328-31.986 71.163-71.314 71.106-39.328-.057-71.163-31.986-71.106-71.314.057-39.328 31.986-71.163 71.314-71.106 39.259.116 71.042 31.94 71.106 71.199zm-24.512 0v-.084c-.051-25.784-20.994-46.645-46.778-46.594-25.784.051-46.645 20.994-46.594 46.777.051 25.784 20.994 46.645 46.777 46.594 25.726-.113 46.537-20.968 46.595-46.693zm313.423 0v.048c-.02 39.328-31.918 71.194-71.247 71.173s-71.194-31.918-71.173-71.247c.02-39.328 31.918-71.194 71.247-71.173 39.29.066 71.121 31.909 71.173 71.199zm-24.504-.008c-.009-25.784-20.918-46.679-46.702-46.67-25.784.009-46.679 20.918-46.67 46.702.009 25.784 20.918 46.678 46.702 46.67 25.765-.046 46.636-20.928 46.67-46.693v-.009z"},"odnoklassniki":{"viewBox":"0 0 320 512","path":"M275.1 334c-27.4 17.4-65.1 24.3-90 26.9l20.9 20.6 76.3 76.3c27.9 28.6-17.5 73.3-45.7 45.7-19.1-19.4-47.1-47.4-76.3-76.6L84 503.4c-28.2 27.5-73.6-17.6-45.4-45.7 19.4-19.4 47.1-47.4 76.3-76.3l20.6-20.6c-24.6-2.6-62.9-9.1-90.6-26.9-32.6-21-46.9-33.3-34.3-59 7.4-14.6 27.7-26.9 54.6-5.7 0 0 36.3 28.9 94.9 28.9s94.9-28.9 94.9-28.9c26.9-21.1 47.1-8.9 54.6 5.7 12.4 25.7-1.9 38-34.5 59.1zM30.3 129.7C30.3 58 88.6 0 160 0s129.7 58 129.7 129.7c0 71.4-58.3 129.4-129.7 129.4s-129.7-58-129.7-129.4zm66 0c0 35.1 28.6 63.7 63.7 63.7s63.7-28.6 63.7-63.7c0-35.4-28.6-64-63.7-64s-63.7 28.6-63.7 64z"},"odnoklassniki-square":{"viewBox":"0 0 448 512","path":"M184.2 177.1c0-22.1 17.9-40 39.8-40s39.8 17.9 39.8 40c0 22-17.9 39.8-39.8 39.8s-39.8-17.9-39.8-39.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-305.1 97.1c0 44.6 36.4 80.9 81.1 80.9s81.1-36.2 81.1-80.9c0-44.8-36.4-81.1-81.1-81.1s-81.1 36.2-81.1 81.1zm174.5 90.7c-4.6-9.1-17.3-16.8-34.1-3.6 0 0-22.7 18-59.3 18s-59.3-18-59.3-18c-16.8-13.2-29.5-5.5-34.1 3.6-7.9 16.1 1.1 23.7 21.4 37 17.3 11.1 41.2 15.2 56.6 16.8l-12.9 12.9c-18.2 18-35.5 35.5-47.7 47.7-17.6 17.6 10.7 45.8 28.4 28.6l47.7-47.9c18.2 18.2 35.7 35.7 47.7 47.9 17.6 17.2 46-10.7 28.6-28.6l-47.7-47.7-13-12.9c15.5-1.6 39.1-5.9 56.2-16.8 20.4-13.3 29.3-21 21.5-37z"},"get-pocket":{"viewBox":"0 0 448 512","path":"M407.6 64h-367C18.5 64 0 82.5 0 104.6v135.2C0 364.5 99.7 464 224.2 464c124 0 223.8-99.5 223.8-224.2V104.6c0-22.4-17.7-40.6-40.4-40.6zm-162 268.5c-12.4 11.8-31.4 11.1-42.4 0C89.5 223.6 88.3 227.4 88.3 209.3c0-16.9 13.8-30.7 30.7-30.7 17 0 16.1 3.8 105.2 89.3 90.6-86.9 88.6-89.3 105.5-89.3 16.9 0 30.7 13.8 30.7 30.7 0 17.8-2.9 15.7-114.8 123.2z"},"wikipedia-w":{"viewBox":"0 0 640 512","path":"M640 51.2l-.3 12.2c-28.1.8-45 15.8-55.8 40.3-25 57.8-103.3 240-155.3 358.6H415l-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1-.3.3-15 0-15-.3C172 352.3 122.8 243.4 75.8 133.4 64.4 106.7 26.4 63.4.2 63.7c0-3.1-.3-10-.3-14.2h161.9v13.9c-19.2 1.1-52.8 13.3-43.3 34.2 21.9 49.7 103.6 240.3 125.6 288.6 15-29.7 57.8-109.2 75.3-142.8-13.9-28.3-58.6-133.9-72.8-160-9.7-17.8-36.1-19.4-55.8-19.7V49.8l142.5.3v13.1c-19.4.6-38.1 7.8-29.4 26.1 18.9 40 30.6 68.1 48.1 104.7 5.6-10.8 34.7-69.4 48.1-100.8 8.9-20.6-3.9-28.6-38.6-29.4.3-3.6 0-10.3.3-13.6 44.4-.3 111.1-.3 123.1-.6v13.6c-22.5.8-45.8 12.8-58.1 31.7l-59.2 122.8c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3V49.6l127.8 1.1.2.5z"},"safari":{"viewBox":"0 0 512 512","path":"M236.9 256.8c0-9.1 6.6-17.7 16.3-17.7 8.9 0 17.4 6.4 17.4 16.1 0 9.1-6.4 17.7-16.1 17.7-9 0-17.6-6.7-17.6-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-26.6 0c0-122.3-99.1-221.4-221.4-221.4S34.6 133.7 34.6 256 133.7 477.4 256 477.4 477.4 378.3 477.4 256zm-72.5 96.6c0 3.6 13 10.2 16.3 12.2-27.4 41.5-69.8 71.4-117.9 83.3l-4.4-18.5c-.3-2.5-1.9-2.8-4.2-2.8-1.9 0-3 2.8-2.8 4.2l4.4 18.8c-13.3 2.8-26.8 4.2-40.4 4.2-36.3 0-72-10.2-103-29.1 1.7-2.8 12.2-18 12.2-20.2 0-1.9-1.7-3.6-3.6-3.6-3.9 0-12.2 16.6-14.7 19.9-41.8-27.7-72-70.6-83.6-119.6l19.1-4.2c2.2-.6 2.8-2.2 2.8-4.2 0-1.9-2.8-3-4.4-2.8L62 294.5c-2.5-12.7-3.9-25.5-3.9-38.5 0-37.1 10.5-73.6 30.2-104.9 2.8 1.7 16.1 10.8 18.3 10.8 1.9 0 3.6-1.4 3.6-3.3 0-3.9-14.7-11.3-18-13.6 28.2-41.2 71.1-70.9 119.8-81.9l4.2 18.5c.6 2.2 2.2 2.8 4.2 2.8s3-2.8 2.8-4.4L219 61.7c12.2-2.2 24.6-3.6 37.1-3.6 37.1 0 73.3 10.5 104.9 30.2-1.9 2.8-10.8 15.8-10.8 18 0 1.9 1.4 3.6 3.3 3.6 3.9 0 11.3-14.4 13.3-17.7 41 27.7 70.3 70 81.7 118.2l-15.5 3.3c-2.5.6-2.8 2.2-2.8 4.4 0 1.9 2.8 3 4.2 2.8l15.8-3.6c2.5 12.7 3.9 25.7 3.9 38.7 0 36.3-10 72-28.8 102.7-2.8-1.4-14.4-9.7-16.6-9.7-2.1 0-3.8 1.7-3.8 3.6zm-33.2-242.2c-13 12.2-134.2 123.7-137.6 129.5l-96.6 160.5c12.7-11.9 134.2-124 137.3-129.3l96.9-160.7z"},"chrome":{"viewBox":"0 0 496 512","path":"M131.5 217.5L55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6L40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z"},"firefox":{"viewBox":"0 0 480 512","path":"M478.1 235.3c-.7-4.5-1.4-7.1-1.4-7.1s-1.8 2-4.7 5.9c-.9-10.7-2.8-21.2-5.8-31.6-3.7-12.9-8.5-25.4-14.5-37.4-3.8-8-8.2-15.6-13.3-22.8-1.8-2.7-3.7-5.4-5.6-7.9-8.8-14.4-19-23.3-30.7-40-7.6-12.8-12.9-26.9-15.4-41.6-3.2 8.9-5.7 18-7.4 27.3-12.1-12.2-22.5-20.8-28.9-26.7C319.4 24.2 323 9.1 323 9.1S264.7 74.2 289.9 142c8.7 23 23.8 43.1 43.4 57.9 24.4 20.2 50.8 36 64.7 76.6-11.2-21.3-28.1-39.2-48.8-51.5 6.2 14.7 9.4 30.6 9.3 46.5 0 61-49.6 110.5-110.6 110.4-8.3 0-16.5-.9-24.5-2.8-9.5-1.8-18.7-4.9-27.4-9.3-12.9-7.8-24-18.1-32.8-30.3l-.2-.3 2 .7c4.6 1.6 9.2 2.8 14 3.7 18.7 4 38.3 1.7 55.6-6.6 17.5-9.7 28-16.9 36.6-14h.2c8.4 2.7 15-5.5 9-14-10.4-13.4-27.4-20-44.2-17-17.5 2.5-33.5 15-56.4 2.9-1.5-.8-2.9-1.6-4.3-2.5-1.6-.9 4.9 1.3 3.4.3-5-2.5-9.8-5.4-14.4-8.6-.3-.3 3.5 1.1 3.1.8-5.9-4-11-9.2-15-15.2-4.1-7.4-4.5-16.4-1-24.1 2.1-3.8 5.4-6.9 9.3-8.7 3 1.5 4.8 2.6 4.8 2.6s-1.3-2.5-2.1-3.8c.3-.1.5 0 .8-.2 2.6 1.1 8.3 4 11.4 5.8 2.1 1.1 3.8 2.7 5.2 4.7 0 0 1-.5.3-2.7-1.1-2.7-2.9-5-5.4-6.6h.2c2.3 1.2 4.5 2.6 6.6 4.1 1.9-4.4 2.8-9.2 2.6-14 .2-2.6-.2-5.3-1.1-7.8-.8-1.6.5-2.2 1.9-.5-.2-1.3-.7-2.5-1.2-3.7v-.1s.8-1.1 1.2-1.5c1-1 2.1-1.9 3.4-2.7 7.2-4.5 14.8-8.4 22.7-11.6 6.4-2.8 11.7-4.9 12.8-5.6 1.6-1 3.1-2.2 4.5-3.5 5.3-4.5 9-10.8 10.2-17.7.1-.9.2-1.8.3-2.8v-1.5c-.9-3.5-6.9-6.1-38.4-9.1-11.1-1.8-20-10.1-22.5-21.1v.1c-.4 1.1-.9 2.3-1.3 3.5.4-1.2.8-2.3 1.3-3.5v-.2c6-15.7 16.8-29.1 30.8-38.3.8-.7-3.2.2-2.4-.5 2.7-1.3 5.4-2.5 8.2-3.5 1.4-.6-6-3.4-12.6-2.7-4 .2-8 1.2-11.7 2.8 1.6-1.3 6.2-3.1 5.1-3.1-8.4 1.6-16.5 4.7-23.9 9 0-.8.1-1.5.5-2.2-5.9 2.5-11 6.5-15 11.5.1-.9.2-1.8.2-2.7-2.7 2-5.2 4.3-7.3 6.9l-.1.1c-17.4-6.7-36.3-8.3-54.6-4.7l-.2-.1h.2c-3.8-3.1-7.1-6.7-9.7-10.9l-.2.1-.4-.2c-1.2-1.8-2.4-3.8-3.7-6-.9-1.6-1.8-3.4-2.7-5.2 0-.1-.1-.2-.2-.2-.4 0-.6 1.7-.9 1.3v-.1c-3.2-8.3-4.7-17.2-4.4-26.2l-.2.1c-5.1 3.5-9 8.6-11.1 14.5-.9 2.1-1.6 3.3-2.2 4.5v-.5c.1-1.1.6-3.3.5-3.1-.1.2-.2.3-.3.4-1.5 1.7-2.9 3.7-3.9 5.8-.9 1.9-1.7 3.9-2.3 5.9-.1.3 0-.3 0-1s.1-2 0-1.7l-.3.7c-6.7 14.9-10.9 30.8-12.4 47.1-.4 2.8-.6 5.6-.5 8.3v.2c-4.8 5.2-9 11-12.7 17.1-12.1 20.4-21.1 42.5-26.8 65.6 4-8.8 8.8-17.2 14.3-25.1C5.5 228.5 0 257.4 0 286.6c1.8-8.6 4.2-17 7-25.3-1.7 34.5 4.9 68.9 19.4 100.3 19.4 43.5 51.6 80 92.3 104.7 16.6 11.2 34.7 19.9 53.8 25.8 2.5.9 5.1 1.8 7.7 2.7-.8-.3-1.6-.7-2.4-1 22.6 6.8 46.2 10.3 69.8 10.3 83.7 0 111.3-31.9 113.8-35 4.1-3.7 7.5-8.2 9.9-13.3 1.6-.7 3.2-1.4 4.9-2.1l1-.5 1.9-.9c12.6-5.9 24.5-13.4 35.3-22.1 16.3-11.7 27.9-28.7 32.9-48.1 3-7.1 3.1-15 .4-22.2.9-1.4 1.7-2.8 2.7-4.3 18-28.9 28.2-61.9 29.6-95.9v-2.8c0-7.3-.6-14.5-1.9-21.6z"},"opera":{"viewBox":"0 0 496 512","path":"M313.9 32.7c-170.2 0-252.6 223.8-147.5 355.1 36.5 45.4 88.6 75.6 147.5 75.6 36.3 0 70.3-11.1 99.4-30.4-43.8 39.2-101.9 63-165.3 63-3.9 0-8 0-11.9-.3C104.6 489.6 0 381.1 0 248 0 111 111 0 248 0h.8c63.1.3 120.7 24.1 164.4 63.1-29-19.4-63.1-30.4-99.3-30.4zm101.8 397.7c-40.9 24.7-90.7 23.6-132-5.8 56.2-20.5 97.7-91.6 97.7-176.6 0-84.7-41.2-155.8-97.4-176.6 41.8-29.2 91.2-30.3 132.9-5 105.9 98.7 105.5 265.7-1.2 364z"},"internet-explorer":{"viewBox":"0 0 512 512","path":"M483.049 159.706c10.855-24.575 21.424-60.438 21.424-87.871 0-72.722-79.641-98.371-209.673-38.577-107.632-7.181-211.221 73.67-237.098 186.457 30.852-34.862 78.271-82.298 121.977-101.158C125.404 166.85 79.128 228.002 43.992 291.725 23.246 329.651 0 390.94 0 436.747c0 98.575 92.854 86.5 180.251 42.006 31.423 15.43 66.559 15.573 101.695 15.573 97.124 0 184.249-54.294 216.814-146.022H377.927c-52.509 88.593-196.819 52.996-196.819-47.436H509.9c6.407-43.581-1.655-95.715-26.851-141.162zM64.559 346.877c17.711 51.15 53.703 95.871 100.266 123.304-88.741 48.94-173.267 29.096-100.266-123.304zm115.977-108.873c2-55.151 50.276-94.871 103.98-94.871 53.418 0 101.981 39.72 103.981 94.871H180.536zm184.536-187.6c21.425-10.287 48.563-22.003 72.558-22.003 31.422 0 54.274 21.717 54.274 53.722 0 20.003-7.427 49.007-14.569 67.867-26.28-42.292-65.986-81.584-112.263-99.586z"},"contao":{"viewBox":"0 0 512 512","path":"M45.4 305c14.4 67.1 26.4 129 68.2 175H34c-18.7 0-34-15.2-34-34V66c0-18.7 15.2-34 34-34h57.7C77.9 44.6 65.6 59.2 54.8 75.6c-45.4 70-27 146.8-9.4 229.4zM478 32h-90.2c21.4 21.4 39.2 49.5 52.7 84.1l-137.1 29.3c-14.9-29-37.8-53.3-82.6-43.9-24.6 5.3-41 19.3-48.3 34.6-8.8 18.7-13.2 39.8 8.2 140.3 21.1 100.2 33.7 117.7 49.5 131.2 12.9 11.1 33.4 17 58.3 11.7 44.5-9.4 55.7-40.7 57.4-73.2l137.4-29.6c3.2 71.5-18.7 125.2-57.4 163.6H478c18.7 0 34-15.2 34-34V66c0-18.8-15.2-34-34-34z"},"500px":{"viewBox":"0 0 448 512","path":"M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6 8.3 15.1 0 3.9 0 15.1-8.3 15.1H130.3v132.9h.3c104.2-109.8 282.8-36 282.8 108.9 0 178.1-244.8 220.3-310.1 62.8zm63.3-260.8c-.5 4.2 4.6 24.5 14.6 20.6C306 56.6 384 144.5 390.6 144.5c4.8 0 22.8-15.3 14.3-22.8-93.2-89-234.5-57-238.3-38.2zM393 414.7C283 524.6 94 475.5 61 310.5c0-12.2-30.4-7.4-28.9 3.3 24 173.4 246 256.9 381.6 121.3 6.9-7.8-12.6-28.4-20.7-20.4zM213.6 306.6c0 4 4.3 7.3 5.5 8.5 3 3 6.1 4.4 8.5 4.4 3.8 0 2.6.2 22.3-19.5 19.6 19.3 19.1 19.5 22.3 19.5 5.4 0 18.5-10.4 10.7-18.2L265.6 284l18.2-18.2c6.3-6.8-10.1-21.8-16.2-15.7L249.7 268c-18.6-18.8-18.4-19.5-21.5-19.5-5 0-18 11.7-12.4 17.3L234 284c-18.1 17.9-20.4 19.2-20.4 22.6z"},"amazon":{"viewBox":"0 0 448 512","path":"M257.2 162.7c-48.7 1.8-169.5 15.5-169.5 117.5 0 109.5 138.3 114 183.5 43.2 6.5 10.2 35.4 37.5 45.3 46.8l56.8-56S341 288.9 341 261.4V114.3C341 89 316.5 32 228.7 32 140.7 32 94 87 94 136.3l73.5 6.8c16.3-49.5 54.2-49.5 54.2-49.5 40.7-.1 35.5 29.8 35.5 69.1zm0 86.8c0 80-84.2 68-84.2 17.2 0-47.2 50.5-56.7 84.2-57.8v40.6zm136 163.5c-7.7 10-70 67-174.5 67S34.2 408.5 9.7 379c-6.8-7.7 1-11.3 5.5-8.3C88.5 415.2 203 488.5 387.7 401c7.5-3.7 13.3 2 5.5 12zm39.8 2.2c-6.5 15.8-16 26.8-21.2 31-5.5 4.5-9.5 2.7-6.5-3.8s19.3-46.5 12.7-55c-6.5-8.3-37-4.3-48-3.2-10.8 1-13 2-14-.3-2.3-5.7 21.7-15.5 37.5-17.5 15.7-1.8 41-.8 46 5.7 3.7 5.1 0 27.1-6.5 43.1z"},"houzz":{"viewBox":"0 0 414 512","path":"M258.9 330.7H154.3V480H0V32h109.5v104.5l305.1 85.6V480H258.9V330.7z"},"vimeo":{"viewBox":"0 0 448 512","path":"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"},"black-tie":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm316.5 325.2L224 445.9l-92.5-88.7 64.5-184-64.5-86.6h184.9L252 173.2l64.5 184z"},"fonticons":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm167.4 196h67.4l-11.1 37.3H168v112.9c0 5.8-2 6.7 3.2 7.3l43.5 4.1v25.1H84V389l21.3-2c5.2-.6 6.7-2.3 6.7-7.9V267.7c0-2.3-2.9-2.3-5.8-2.3H84V228h28v-21c0-49.6 26.5-70 77.3-70 34.1 0 64.7 8.2 64.7 52.8l-50.7 6.1c.3-18.7-4.4-23-16.3-23-18.4 0-19 9.9-19 27.4v23.3c0 2.4-3.5 4.4-.6 4.4zM364 414.7H261.3v-25.1l20.4-2.6c5.2-.6 7.6-1.7 7.6-7.3V271.8c0-4.1-2.9-6.7-6.7-7.9l-24.2-6.4 6.7-29.5h80.2v151.7c0 5.8-2.6 6.4 2.9 7.3l15.7 2.6v25.1zm-21.9-255.5l9 33.2-7.3 7.3-31.2-16.6-31.2 16.6-7.3-7.3 9-33.2-21.8-24.2 3.5-9.6h27.7l15.5-28h9.3l15.5 28h27.7l3.5 9.6-21.9 24.2z"},"reddit-alien":{"viewBox":"0 0 512 512","path":"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"},"edge":{"viewBox":"0 0 512 512","path":"M25.714 228.163c.111-.162.23-.323.342-.485-.021.162-.045.323-.065.485h-.277zm460.572 15.508c0-44.032-7.754-84.465-28.801-122.405C416.498 47.879 343.912 8.001 258.893 8.001 118.962 7.724 40.617 113.214 26.056 227.679c42.429-61.312 117.073-121.376 220.375-124.966 0 0 109.666 0 99.419 104.957H169.997c6.369-37.386 18.554-58.986 34.339-78.926-75.048 34.893-121.85 96.096-120.742 188.315.83 71.448 50.124 144.836 120.743 171.976 83.357 31.847 192.776 7.2 240.132-21.324V363.307c-80.864 56.494-270.871 60.925-272.255-67.572h314.073v-52.064z"},"codiepie":{"viewBox":"0 0 472 512","path":"M422.5 202.9c30.7 0 33.5 53.1-.3 53.1h-10.8v44.3h-26.6v-97.4h37.7zM472 352.6C429.9 444.5 350.4 504 248 504 111 504 0 393 0 256S111 8 248 8c97.4 0 172.8 53.7 218.2 138.4l-186 108.8L472 352.6zm-38.5 12.5l-60.3-30.7c-27.1 44.3-70.4 71.4-122.4 71.4-82.5 0-149.2-66.7-149.2-148.9 0-82.5 66.7-149.2 149.2-149.2 48.4 0 88.9 23.5 116.9 63.4l59.5-34.6c-40.7-62.6-104.7-100-179.2-100-121.2 0-219.5 98.3-219.5 219.5S126.8 475.5 248 475.5c78.6 0 146.5-42.1 185.5-110.4z"},"modx":{"viewBox":"0 0 448 512","path":"M356 241.8l36.7 23.7V480l-133-83.8L356 241.8zM440 75H226.3l-23 37.8 153.5 96.5L440 75zm-89 142.8L55.2 32v214.5l46 29L351 217.8zM97 294.2L8 437h213.7l125-200.5L97 294.2z"},"fort-awesome":{"viewBox":"0 0 512 512","path":"M489.2 287.9h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6V146.2c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-6-8-4.6-11.7-4.6v-38c8.3-2 17.1-3.4 25.7-3.4 10.9 0 20.9 4.3 31.4 4.3 4.6 0 27.7-1.1 27.7-8v-60c0-2.6-2-4.6-4.6-4.6-5.1 0-15.1 4.3-24 4.3-9.7 0-20.9-4.3-32.6-4.3-8 0-16 1.1-23.7 2.9v-4.9c5.4-2.6 9.1-8.3 9.1-14.3 0-20.7-31.4-20.8-31.4 0 0 6 3.7 11.7 9.1 14.3v111.7c-3.7 0-11.7-1.4-11.7 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32H128v-32c0-2.6-2-4.6-4.6-4.6H96c-2.6 0-4.6 2-4.6 4.6v178.3H54.8v-32c0-2.6-2-4.6-4.6-4.6H22.8c-2.6 0-4.6 2-4.6 4.6V512h182.9v-96c0-72.6 109.7-72.6 109.7 0v96h182.9V292.5c.1-2.6-1.9-4.6-4.5-4.6zm-288.1-4.5c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64zm146.4 0c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64z"},"usb":{"viewBox":"0 0 640 512","path":"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"},"product-hunt":{"viewBox":"0 0 512 512","path":"M326.3 218.8c0 20.5-16.7 37.2-37.2 37.2h-70.3v-74.4h70.3c20.5 0 37.2 16.7 37.2 37.2zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-128.1-37.2c0-47.9-38.9-86.8-86.8-86.8H169.2v248h49.6v-74.4h70.3c47.9 0 86.8-38.9 86.8-86.8z"},"mixcloud":{"viewBox":"0 0 640 512","path":"M424.43 219.729C416.124 134.727 344.135 68 256.919 68c-72.266 0-136.224 46.516-159.205 114.074-54.545 8.029-96.63 54.822-96.63 111.582 0 62.298 50.668 112.966 113.243 112.966h289.614c52.329 0 94.969-42.362 94.969-94.693 0-45.131-32.118-83.063-74.48-92.2zm-20.489 144.53H114.327c-39.04 0-70.881-31.564-70.881-70.604s31.841-70.604 70.881-70.604c18.827 0 36.548 7.475 49.838 20.766 19.963 19.963 50.133-10.227 30.18-30.18-14.675-14.398-32.672-24.365-52.053-29.349 19.935-44.3 64.79-73.926 114.628-73.926 69.496 0 125.979 56.483 125.979 125.702 0 13.568-2.215 26.857-6.369 39.594-8.943 27.517 32.133 38.939 40.147 13.29 2.769-8.306 4.984-16.889 6.369-25.472 19.381 7.476 33.502 26.303 33.502 48.453 0 28.795-23.535 52.33-52.607 52.33zm235.069-52.33c0 44.024-12.737 86.386-37.102 122.657-4.153 6.092-10.798 9.414-17.72 9.414-16.317 0-27.127-18.826-17.443-32.949 19.381-29.349 29.903-63.682 29.903-99.122s-10.521-69.773-29.903-98.845c-15.655-22.831 19.361-47.24 35.163-23.534 24.366 35.993 37.102 78.356 37.102 122.379zm-70.88 0c0 31.565-9.137 62.021-26.857 88.325-4.153 6.091-10.798 9.136-17.72 9.136-17.201 0-27.022-18.979-17.443-32.948 13.013-19.104 19.658-41.255 19.658-64.513 0-22.981-6.645-45.408-19.658-64.512-15.761-22.986 19.008-47.095 35.163-23.535 17.719 26.026 26.857 56.483 26.857 88.047z"},"scribd":{"viewBox":"0 0 384 512","path":"M42.3 252.7c-16.1-19-24.7-45.9-24.8-79.9 0-100.4 75.2-153.1 167.2-153.1 98.6-1.6 156.8 49 184.3 70.6l-50.5 72.1-37.3-24.6 26.9-38.6c-36.5-24-79.4-36.5-123-35.8-50.7-.8-111.7 27.2-111.7 76.2 0 18.7 11.2 20.7 28.6 15.6 23.3-5.3 41.9.6 55.8 14 26.4 24.3 23.2 67.6-.7 91.9-29.2 29.5-85.2 27.3-114.8-8.4zm317.7 5.9c-15.5-18.8-38.9-29.4-63.2-28.6-38.1-2-71.1 28-70.5 67.2-.7 16.8 6 33 18.4 44.3 14.1 13.9 33 19.7 56.3 14.4 17.4-5.1 28.6-3.1 28.6 15.6 0 4.3-.5 8.5-1.4 12.7-16.7 40.9-59.5 64.4-121.4 64.4-51.9.2-102.4-16.4-144.1-47.3l33.7-39.4-35.6-27.4L0 406.3l15.4 13.8c52.5 46.8 120.4 72.5 190.7 72.2 51.4 0 94.4-10.5 133.6-44.1 57.1-51.4 54.2-149.2 20.3-189.6z"},"bluetooth":{"viewBox":"0 0 448 512","path":"M292.6 171.1L249.7 214l-.3-86 43.2 43.1m-43.2 219.8l43.1-43.1-42.9-42.9-.2 86zM416 259.4C416 465 344.1 512 230.9 512S32 465 32 259.4 115.4 0 228.6 0 416 53.9 416 259.4zm-158.5 0l79.4-88.6L211.8 36.5v176.9L138 139.6l-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"},"bluetooth-b":{"viewBox":"0 0 320 512","path":"M196.48 260.023l92.626-103.333L143.125 0v206.33l-86.111-86.111-31.406 31.405 108.061 108.399L25.608 368.422l31.406 31.405 86.111-86.111L145.84 512l148.552-148.644-97.912-103.333zm40.86-102.996l-49.977 49.978-.338-100.295 50.315 50.317zM187.363 313.04l49.977 49.978-50.315 50.316.338-100.294z"},"gitlab":{"viewBox":"0 0 512 512","path":"M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z"},"wpbeginner":{"viewBox":"0 0 512 512","path":"M462.799 322.374C519.01 386.682 466.961 480 370.944 480c-39.602 0-78.824-17.687-100.142-50.04-6.887.356-22.702.356-29.59 0C219.848 462.381 180.588 480 141.069 480c-95.49 0-148.348-92.996-91.855-157.626C-29.925 190.523 80.479 32 256.006 32c175.632 0 285.87 158.626 206.793 290.374zm-339.647-82.972h41.529v-58.075h-41.529v58.075zm217.18 86.072v-23.839c-60.506 20.915-132.355 9.198-187.589-33.971l.246 24.897c51.101 46.367 131.746 57.875 187.343 32.913zm-150.753-86.072h166.058v-58.075H189.579v58.075z"},"wpforms":{"viewBox":"0 0 448 512","path":"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"},"envira":{"viewBox":"0 0 448 512","path":"M0 32c477.6 0 366.6 317.3 367.1 366.3L448 480h-26l-70.4-71.2c-39 4.2-124.4 34.5-214.4-37C47 300.3 52 214.7 0 32zm79.7 46c-49.7-23.5-5.2 9.2-5.2 9.2 45.2 31.2 66 73.7 90.2 119.9 31.5 60.2 79 139.7 144.2 167.7 65 28 34.2 12.5 6-8.5-28.2-21.2-68.2-87-91-130.2-31.7-60-61-118.6-144.2-158.1z"},"glide":{"viewBox":"0 0 448 512","path":"M252.8 148.6c0 8.8-1.6 17.7-3.4 26.4-5.8 27.8-11.6 55.8-17.3 83.6-1.4 6.3-8.3 4.9-13.7 4.9-23.8 0-30.5-26-30.5-45.5 0-29.3 11.2-68.1 38.5-83.1 4.3-2.5 9.2-4.2 14.1-4.2 11.4 0 12.3 8.3 12.3 17.9zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-64 187c0-5.1-20.8-37.7-25.5-39.5-2.2-.9-7.2-2.3-9.6-2.3-23.1 0-38.7 10.5-58.2 21.5l-.5-.5c4.3-29.4 14.6-57.2 14.6-87.4 0-44.6-23.8-62.7-67.5-62.7-71.7 0-108 70.8-108 123.5 0 54.7 32 85 86.3 85 7.5 0 6.9-.6 6.9 2.3-10.5 80.3-56.5 82.9-56.5 58.9 0-24.4 28-36.5 28.3-38-.2-7.6-29.3-17.2-36.7-17.2-21.1 0-32.7 33-32.7 50.6 0 32.3 20.4 54.7 53.3 54.7 48.2 0 83.4-49.7 94.3-91.7 9.4-37.7 7-39.4 12.3-42.1 20-10.1 35.8-16.8 58.4-16.8 11.1 0 19 2.3 36.7 5.2 1.8.1 4.1-1.7 4.1-3.5z"},"glide-g":{"viewBox":"0 0 448 512","path":"M407.1 211.2c-3.5-1.4-11.6-3.8-15.4-3.8-37.1 0-62.2 16.8-93.5 34.5l-.9-.9c7-47.3 23.5-91.9 23.5-140.4C320.8 29.1 282.6 0 212.4 0 97.3 0 39 113.7 39 198.4 39 286.3 90.3 335 177.6 335c12 0 11-1 11 3.8-16.9 128.9-90.8 133.1-90.8 94.6 0-39.2 45-58.6 45.5-61-.3-12.2-47-27.6-58.9-27.6-33.9.1-52.4 51.2-52.4 79.3C32 476 64.8 512 117.5 512c77.4 0 134-77.8 151.4-145.4 15.1-60.5 11.2-63.3 19.7-67.6 32.2-16.2 57.5-27 93.8-27 17.8 0 30.5 3.7 58.9 8.4 2.9 0 6.7-2.9 6.7-5.8 0-8-33.4-60.5-40.9-63.4zm-175.3-84.4c-9.3 44.7-18.6 89.6-27.8 134.3-2.3 10.2-13.3 7.8-22 7.8-38.3 0-49-41.8-49-73.1 0-47 18-109.3 61.8-133.4 7-4.1 14.8-6.7 22.6-6.7 18.6 0 20 13.3 20 28.7-.1 14.3-2.7 28.5-5.6 42.4z"},"viadeo":{"viewBox":"0 0 448 512","path":"M276.2 150.5v.7C258.3 98.6 233.6 47.8 205.4 0c43.3 29.2 67 100 70.8 150.5zm32.7 121.7c7.6 18.2 11 37.5 11 57 0 77.7-57.8 141-137.8 139.4l3.8-.3c74.2-46.7 109.3-118.6 109.3-205.1 0-38.1-6.5-75.9-18.9-112 1 11.7 1 23.7 1 35.4 0 91.8-18.1 241.6-116.6 280C95 455.2 49.4 398 49.4 329.2c0-75.6 57.4-142.3 135.4-142.3 16.8 0 33.7 3.1 49.1 9.6 1.7-15.1 6.5-29.9 13.4-43.3-19.9-7.2-41.2-10.7-62.5-10.7-161.5 0-238.7 195.9-129.9 313.7 67.9 74.6 192 73.9 259.8 0 56.6-61.3 60.9-142.4 36.4-201-12.7 8-27.1 13.9-42.2 17zM418.1 11.7c-31 66.5-81.3 47.2-115.8 80.1-12.4 12-20.6 34-20.6 50.5 0 14.1 4.5 27.1 12 38.8 47.4-11 98.3-46 118.2-90.7-.7 5.5-4.8 14.4-7.2 19.2-20.3 35.7-64.6 65.6-99.7 84.9 14.8 14.4 33.7 25.8 55 25.8 79 0 110.1-134.6 58.1-208.6z"},"viadeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM280.7 381.2c-42.4 46.2-120 46.6-162.4 0-68-73.6-19.8-196.1 81.2-196.1 13.3 0 26.6 2.1 39.1 6.7-4.3 8.4-7.3 17.6-8.4 27.1-9.7-4.1-20.2-6-30.7-6-48.8 0-84.6 41.7-84.6 88.9 0 43 28.5 78.7 69.5 85.9 61.5-24 72.9-117.6 72.9-175 0-7.3 0-14.8-.6-22.1-11.2-32.9-26.6-64.6-44.2-94.5 27.1 18.3 41.9 62.5 44.2 94.1v.4c7.7 22.5 11.8 46.2 11.8 70 0 54.1-21.9 99-68.3 128.2l-2.4.2c50 1 86.2-38.6 86.2-87.2 0-12.2-2.1-24.3-6.9-35.7 9.5-1.9 18.5-5.6 26.4-10.5 15.3 36.6 12.6 87.3-22.8 125.6zM309 233.7c-13.3 0-25.1-7.1-34.4-16.1 21.9-12 49.6-30.7 62.3-53 1.5-3 4.1-8.6 4.5-12-12.5 27.9-44.2 49.8-73.9 56.7-4.7-7.3-7.5-15.5-7.5-24.3 0-10.3 5.2-24.1 12.9-31.6 21.6-20.5 53-8.5 72.4-50 32.5 46.2 13.1 130.3-36.3 130.3z"},"snapchat":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm169.5 338.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C183.1 100 230.7 96 244.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"snapchat-ghost":{"viewBox":"0 0 512 512","path":"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"},"snapchat-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6.5 314.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C159.1 100 206.7 96 220.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"pied-piper":{"viewBox":"0 0 448 512","path":"M32 419L0 479.2l.8-328C.8 85.3 54 32 120 32h327.2c-93 28.9-189.9 94.2-253.9 168.6C122.7 282 82.6 338 32 419M448 32S305.2 98.8 261.6 199.1c-23.2 53.6-28.9 118.1-71 158.6-28.9 27.8-69.8 38.2-105.3 56.3-23.2 12-66.4 40.5-84.9 66h328.4c66 0 119.3-53.3 119.3-119.2-.1 0-.1-328.8-.1-328.8z"},"first-order":{"viewBox":"0 0 448 512","path":"M12.9 229.2c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4h-.2zM224 96.6c-7.1 0-14.6.6-21.4 1.7l3.7 67.4-22-64c-14.3 3.7-27.7 9.4-40 16.6l29.4 61.4-45.1-50.9c-11.4 8.9-21.7 19.1-30.6 30.9l50.6 45.4-61.1-29.7c-7.1 12.3-12.9 25.7-16.6 40l64.3 22.6-68-4c-.9 7.1-1.4 14.6-1.4 22s.6 14.6 1.4 21.7l67.7-4-64 22.6c3.7 14.3 9.4 27.7 16.6 40.3l61.1-29.7L97.7 352c8.9 11.7 19.1 22.3 30.9 30.9l44.9-50.9-29.5 61.4c12.3 7.4 25.7 13.1 40 16.9l22.3-64.6-4 68c7.1 1.1 14.6 1.7 21.7 1.7 7.4 0 14.6-.6 21.7-1.7l-4-68.6 22.6 65.1c14.3-4 27.7-9.4 40-16.9L274.9 332l44.9 50.9c11.7-8.9 22-19.1 30.6-30.9l-50.6-45.1 61.1 29.4c7.1-12.3 12.9-25.7 16.6-40.3l-64-22.3 67.4 4c1.1-7.1 1.4-14.3 1.4-21.7s-.3-14.9-1.4-22l-67.7 4 64-22.3c-3.7-14.3-9.1-28-16.6-40.3l-60.9 29.7 50.6-45.4c-8.9-11.7-19.1-22-30.6-30.9l-45.1 50.9 29.4-61.1c-12.3-7.4-25.7-13.1-40-16.9L241.7 166l4-67.7c-7.1-1.2-14.3-1.7-21.7-1.7zM443.4 128v256L224 512 4.6 384V128L224 0l219.4 128zm-17.1 10.3L224 20.9 21.7 138.3v235.1L224 491.1l202.3-117.7V138.3zM224 37.1l187.7 109.4v218.9L224 474.9 36.3 365.4V146.6L224 37.1zm0 50.9c-92.3 0-166.9 75.1-166.9 168 0 92.6 74.6 167.7 166.9 167.7 92 0 166.9-75.1 166.9-167.7 0-92.9-74.9-168-166.9-168z"},"yoast":{"viewBox":"0 0 448 512","path":"M91.3 76h186l-7 18.9h-179c-39.7 0-71.9 31.6-71.9 70.3v205.4c0 35.4 24.9 70.3 84 70.3V460H91.3C41.2 460 0 419.8 0 370.5V165.2C0 115.9 40.7 76 91.3 76zm229.1-56h66.5C243.1 398.1 241.2 418.9 202.2 459.3c-20.8 21.6-49.3 31.7-78.3 32.7v-51.1c49.2-7.7 64.6-49.9 64.6-75.3 0-20.1.6-12.6-82.1-223.2h61.4L218.2 299 320.4 20zM448 161.5V460H234c6.6-9.6 10.7-16.3 12.1-19.4h182.5V161.5c0-32.5-17.1-51.9-48.2-62.9l6.7-17.6c41.7 13.6 60.9 43.1 60.9 80.5z"},"themeisle":{"viewBox":"0 0 512 512","path":"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"},"font-awesome":{"viewBox":"0 0 448 512","path":"M397.8 32H50.2C22.7 32 0 54.7 0 82.2v347.6C0 457.3 22.7 480 50.2 480h347.6c27.5 0 50.2-22.7 50.2-50.2V82.2c0-27.5-22.7-50.2-50.2-50.2zm-45.4 284.3c0 4.2-3.6 6-7.8 7.8-16.7 7.2-34.6 13.7-53.8 13.7-26.9 0-39.4-16.7-71.7-16.7-23.3 0-47.8 8.4-67.5 17.3-1.2.6-2.4.6-3.6 1.2V385c0 1.8 0 3.6-.6 4.8v1.2c-2.4 8.4-10.2 14.3-19.1 14.3-11.3 0-20.3-9-20.3-20.3V166.4c-7.8-6-13.1-15.5-13.1-26.3 0-18.5 14.9-33.5 33.5-33.5 18.5 0 33.5 14.9 33.5 33.5 0 10.8-4.8 20.3-13.1 26.3v18.5c1.8-.6 3.6-1.2 5.4-2.4 18.5-7.8 40.6-14.3 61.5-14.3 22.7 0 40.6 6 60.9 13.7 4.2 1.8 8.4 2.4 13.1 2.4 22.7 0 47.8-16.1 53.8-16.1 4.8 0 9 3.6 9 7.8v140.3z"},"linode":{"viewBox":"0 0 448 512","path":"M437.4 226.3c-.3-.9-.9-1.4-1.4-2l-70-38.6c-.9-.6-2-.6-3.1 0l-58.9 36c-.9.6-1.4 1.7-1.4 2.6l-.9 31.4-24-16c-.9-.6-2.3-.6-3.1 0L240 260.9l-1.4-35.1c0-.9-.6-2-1.4-2.3l-36-24.3 33.7-17.4c1.1-.6 1.7-1.7 1.7-2.9l-5.7-132.3c0-.9-.9-2-1.7-2.6L138.6.3c-.9-.3-1.7-.3-2.3-.3L12.6 38.6c-1.4.6-2.3 2-2 3.7L38 175.4c.9 3.4 34 27.4 38.6 30.9l-26.9 12.9c-1.4.9-2 2.3-1.7 3.4l20.6 100.3c.6 2.9 23.7 23.1 27.1 26.3l-17.4 10.6c-.9.6-1.7 2-1.4 3.1 1.4 7.1 15.4 77.7 16.9 79.1l65.1 69.1c.6.6 1.4.6 2.3.9.6 0 1.1-.3 1.7-.6l83.7-66.9c.9-.6 1.1-1.4 1.1-2.3l-2-46 28 23.7c1.1.9 2.9.9 4 0l66.9-53.4c.9-.6 1.1-1.4 1.1-2.3l2.3-33.4 20.3 14c1.1.9 2.6.9 3.7 0l54.6-43.7c.6-.3 1.1-1.1 1.1-2 .9-6.5 10.3-70.8 9.7-72.8zm-204.8 4.8l4 92.6-90.6 61.2-14-96.6 100.6-57.2zm-7.7-180l5.4 126-106.6 55.4L104 97.7l120.9-46.6zM44 173.1L18 48l79.7 49.4 19.4 132.9L44 173.1zm30.6 147.8L55.7 230l70 58.3 13.7 93.4-64.8-60.8zm24.3 117.7l-13.7-67.1 61.7 60.9 9.7 67.4-57.7-61.2zm64.5 64.5l-10.6-70.9 85.7-61.4 3.1 70-78.2 62.3zm82-115.1c0-3.4.9-22.9-2-25.1l-24.3-20 22.3-14.9c2.3-1.7 1.1-5.7 1.1-8l29.4 22.6.6 68.3-27.1-22.9zm94.3-25.4l-60.9 48.6-.6-68.6 65.7-46.9-4.2 66.9zm27.7-25.7l-19.1-13.4 2-34c.3-.9-.3-2-1.1-2.6L308 259.7l.6-30 64.6 40.6-5.8 66.6zm54.6-39.8l-48.3 38.3 5.7-65.1 51.1-36.6-8.5 63.4z"},"quora":{"viewBox":"0 0 448 512","path":"M440.5 386.7h-29.3c-1.5 13.5-10.5 30.8-33 30.8-20.5 0-35.3-14.2-49.5-35.8 44.2-34.2 74.7-87.5 74.7-153C403.5 111.2 306.8 32 205 32 105.3 32 7.3 111.7 7.3 228.7c0 134.1 131.3 221.6 249 189C276 451.3 302 480 351.5 480c81.8 0 90.8-75.3 89-93.3zM297 329.2C277.5 300 253.3 277 205.5 277c-30.5 0-54.3 10-69 22.8l12.2 24.3c6.2-3 13-4 19.8-4 35.5 0 53.7 30.8 69.2 61.3-10 3-20.7 4.2-32.7 4.2-75 0-107.5-53-107.5-156.7C97.5 124.5 130 71 205 71c76.2 0 108.7 53.5 108.7 157.7.1 41.8-5.4 75.6-16.7 100.5z"},"free-code-camp":{"viewBox":"0 0 576 512","path":"M69.3 144.5c-41 68.5-36.4 163 1 227C92.5 409.7 120 423.9 120 438c0 6.8-6 13-12.8 13C87.7 451 8 375.5 8 253.2c0-111.5 78-186 97.1-186 6 0 14.9 4.8 14.9 11.1 0 12.7-28.3 28.6-50.7 66.2zm195.8 213.8c4.5 1.8 12.3 5.2 12.3-1.2 0-2.7-2.2-2.9-4.3-3.6-8.5-3.4-14-7.7-19.1-15.2-8.2-12.1-10.1-24.2-10.1-38.6 0-32.1 44.2-37.9 44.2-70 0-12.3-7.7-15.9-7.7-19.3 0-2.2.7-2.2 2.9-2.2 8 0 19.1 13.3 22.5 19.8 2.2 4.6 2.4 6 2.4 11.1 0 7-.7 14.2-.7 21.3 0 27 31.9 19.8 31.9 6.8 0-6-3.6-11.6-3.6-17.4 0-.7 0-1.2.7-1.2 3.4 0 9.4 7.7 11.1 10.1 5.8 8.9 8.5 20.8 8.5 31.4 0 32.4-29.5 49-29.5 56 0 1 2.9 7.7 12.1 1.9 29.7-15.1 53.1-47.6 53.1-89.8 0-33.6-8.7-57.7-32.1-82.6-3.9-4.1-16.4-16.9-22.5-16.9-8.2 0 7.2 18.6 7.2 31.2 0 7.2-4.8 12.3-12.3 12.3-11.6 0-14.5-25.4-15.9-33.3-5.8-33.8-12.8-58.2-46.4-74.1-10.4-5-36.5-11.8-36.5-2.2 0 2.4 2.7 4.1 4.6 5.1 9.2 5.6 19.6 21.4 19.6 38.2 0 46.1-57.7 88.2-57.7 136.2-.2 40.3 28.1 72.6 65.3 86.2zM470.4 67c-6 0-14.4 6.5-14.4 12.6 0 8.7 12.1 19.6 17.6 25.4 81.6 85.1 78.6 214.3 17.6 291-7 8.9-35.3 35.3-35.3 43.5 0 5.1 8.2 11.4 13.2 11.4 25.4 0 98.8-80.8 98.8-185.7C568 145.9 491.8 67 470.4 67zm-42.3 323.1H167c-9.4 0-15.5 7.5-15.5 16.4 0 8.5 7 15.5 15.5 15.5h261.1c9.4 0 11.9-7.5 11.9-16.4 0-8.5-3.5-15.5-11.9-15.5z"},"telegram":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z"},"bandcamp":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm48.2 326.1h-181L199.9 178h181l-84.7 156.1z"},"grav":{"viewBox":"0 0 512 512","path":"M301.1 212c4.4 4.4 4.4 11.9 0 16.3l-9.7 9.7c-4.4 4.7-11.9 4.7-16.6 0l-10.5-10.5c-4.4-4.7-4.4-11.9 0-16.6l9.7-9.7c4.4-4.4 11.9-4.4 16.6 0l10.5 10.8zm-30.2-19.7c3-3 3-7.8 0-10.5-2.8-3-7.5-3-10.5 0-2.8 2.8-2.8 7.5 0 10.5 3.1 2.8 7.8 2.8 10.5 0zm-26 5.3c-3 2.8-3 7.5 0 10.2 2.8 3 7.5 3 10.5 0 2.8-2.8 2.8-7.5 0-10.2-3-3-7.7-3-10.5 0zm72.5-13.3c-19.9-14.4-33.8-43.2-11.9-68.1 21.6-24.9 40.7-17.2 59.8.8 11.9 11.3 29.3 24.9 17.2 48.2-12.5 23.5-45.1 33.2-65.1 19.1zm47.7-44.5c-8.9-10-23.3 6.9-15.5 16.1 7.4 9 32.1 2.4 15.5-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-66.2 42.6c2.5-16.1-20.2-16.6-25.2-25.7-13.6-24.1-27.7-36.8-54.5-30.4 11.6-8 23.5-6.1 23.5-6.1.3-6.4 0-13-9.4-24.9 3.9-12.5.3-22.4.3-22.4 15.5-8.6 26.8-24.4 29.1-43.2 3.6-31-18.8-59.2-49.8-62.8-22.1-2.5-43.7 7.7-54.3 25.7-23.2 40.1 1.4 70.9 22.4 81.4-14.4-1.4-34.3-11.9-40.1-34.3-6.6-25.7 2.8-49.8 8.9-61.4 0 0-4.4-5.8-8-8.9 0 0-13.8 0-24.6 5.3 11.9-15.2 25.2-14.4 25.2-14.4 0-6.4-.6-14.9-3.6-21.6-5.4-11-23.8-12.9-31.7 2.8.1-.2.3-.4.4-.5-5 11.9-1.1 55.9 16.9 87.2-2.5 1.4-9.1 6.1-13 10-21.6 9.7-56.2 60.3-56.2 60.3-28.2 10.8-77.2 50.9-70.6 79.7.3 3 1.4 5.5 3 7.5-2.8 2.2-5.5 5-8.3 8.3-11.9 13.8-5.3 35.2 17.7 24.4 15.8-7.2 29.6-20.2 36.3-30.4 0 0-5.5-5-16.3-4.4 27.7-6.6 34.3-9.4 46.2-9.1 8 3.9 8-34.3 8-34.3 0-14.7-2.2-31-11.1-41.5 12.5 12.2 29.1 32.7 28 60.6-.8 18.3-15.2 23-15.2 23-9.1 16.6-43.2 65.9-30.4 106 0 0-9.7-14.9-10.2-22.1-17.4 19.4-46.5 52.3-24.6 64.5 26.6 14.7 108.8-88.6 126.2-142.3 34.6-20.8 55.4-47.3 63.9-65 22 43.5 95.3 94.5 101.1 59z"},"etsy":{"viewBox":"0 0 384 512","path":"M384 348c-1.75 10.75-13.75 110-15.5 132-117.879-4.299-219.895-4.743-368.5 0v-25.5c45.457-8.948 60.627-8.019 61-35.25 1.793-72.322 3.524-244.143 0-322-1.029-28.46-12.13-26.765-61-36v-25.5c73.886 2.358 255.933 8.551 362.999-3.75-3.5 38.25-7.75 126.5-7.75 126.5H332C320.947 115.665 313.241 68 277.25 68h-137c-10.25 0-10.75 3.5-10.75 9.75V241.5c58 .5 88.5-2.5 88.5-2.5 29.77-.951 27.56-8.502 40.75-65.251h25.75c-4.407 101.351-3.91 61.829-1.75 160.25H257c-9.155-40.086-9.065-61.045-39.501-61.5 0 0-21.5-2-88-2v139c0 26 14.25 38.25 44.25 38.25H263c63.636 0 66.564-24.996 98.751-99.75H384z"},"imdb":{"viewBox":"0 0 448 512","path":"M350.5 288.7c0 5.4 1.6 14.4-6.2 14.4-1.6 0-3-.8-3.8-2.4-2.2-5.1-1.1-44.1-1.1-44.7 0-3.8-1.1-12.7 4.9-12.7 7.3 0 6.2 7.3 6.2 12.7v32.7zM265 229.9c0-9.7 1.6-16-10.3-16v83.7c12.2.3 10.3-8.7 10.3-18.4v-49.3zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM21.3 228.8c-.1.1-.2.3-.3.4h.3v-.4zM97 192H64v127.8h33V192zm113.3 0h-43.1l-7.6 59.9c-2.7-20-5.4-40.1-8.7-59.9h-42.8v127.8h29v-84.5l12.2 84.5h20.6l11.6-86.4v86.4h28.7V192zm86.3 45.3c0-8.1.3-16.8-1.4-24.4-4.3-22.5-31.4-20.9-49-20.9h-24.6v127.8c86.1.1 75 6 75-82.5zm85.9 17.3c0-17.3-.8-30.1-22.2-30.1-8.9 0-14.9 2.7-20.9 9.2V192h-31.7v127.8h29.8l1.9-8.1c5.7 6.8 11.9 9.8 20.9 9.8 19.8 0 22.2-15.2 22.2-30.9v-36z"},"ravelry":{"viewBox":"0 0 512 512","path":"M407.4 61.5C331.6 22.1 257.8 31 182.9 66c-11.3 5.2-15.5 10.6-19.9 19-10.3 19.2-16.2 37.4-19.9 52.7-21.2 25.6-36.4 56.1-43.3 89.9-10.6 18-20.9 41.4-23.1 71.4 0 0-.7 7.6-.5 7.9-35.3-4.6-76.2-27-76.2-27 9.1 14.5 61.3 32.3 76.3 37.9 0 0 1.7 98 64.5 131.2-11.3-17.2-13.3-20.2-13.3-20.2S94.8 369 100.4 324.7c.7 0 1.5.2 2.2.2 23.9 87.4 103.2 151.4 196.9 151.4 6.2 0 12.1-.2 18-.7 14 1.5 27.6.5 40.1-3.9 6.9-2.2 13.8-6.4 20.2-10.8 70.2-39.1 100.9-82 123.1-147.7 5.4-16 8.1-35.5 9.8-52.2 8.7-82.3-30.6-161.6-103.3-199.5zM138.8 163.2s-1.2 12.3-.7 19.7c-3.4 2.5-10.1 8.1-18.2 16.7 5.2-12.8 11.3-25.1 18.9-36.4zm-31.2 121.9c4.4-17.2 13.3-39.1 29.8-55.1 0 0 1.7 48 15.8 90.1l-41.4-6.9c-2.2-9.2-3.5-18.5-4.2-28.1zm7.9 42.8c14.8 3.2 34 7.6 43.1 9.1 27.3 76.8 108.3 124.3 108.3 124.3 1 .5 1.7.7 2.7 1-73.1-11.6-132.7-64.7-154.1-134.4zM386 444.1c-14.5 4.7-36.2 8.4-64.7 3.7 0 0-91.1-23.1-127.5-107.8 38.2.7 52.4-.2 78-3.9 39.4-5.7 79-16.2 115-33 11.8-5.4 11.1-19.4 9.6-29.8-2-12.8-11.1-12.1-21.4-4.7 0 0-82 58.6-189.8 53.7-18.7-32-26.8-110.8-26.8-110.8 41.4-35.2 83.2-59.6 168.4-52.4.2-6.4 3-27.1-20.4-28.1 0 0-93.5-11.1-146 33.5 2.5-16.5 5.9-29.3 11.1-39.4 34.2-30.8 79-49.5 128.3-49.5 106.4 0 193 87.1 193 194.5-.2 76-43.8 142-106.8 174z"},"superpowers":{"viewBox":"0 0 448 512","path":"M448 32c-83.3 11-166.8 22-250 33-92 12.5-163.3 86.7-169 180-3.3 55.5 18 109.5 57.8 148.2L0 480c83.3-11 166.5-22 249.8-33 91.8-12.5 163.3-86.8 168.7-179.8 3.5-55.5-18-109.5-57.7-148.2L448 32zm-79.7 232.3c-4.2 79.5-74 139.2-152.8 134.5-79.5-4.7-140.7-71-136.3-151 4.5-79.2 74.3-139.3 153-134.5 79.3 4.7 140.5 71 136.1 151z"},"wpexplorer":{"viewBox":"0 0 512 512","path":"M512 256c0 141.2-114.7 256-256 256C114.8 512 0 397.3 0 256S114.7 0 256 0s256 114.7 256 256zm-32 0c0-123.2-100.3-224-224-224C132.5 32 32 132.5 32 256s100.5 224 224 224 224-100.5 224-224zM160.9 124.6l86.9 37.1-37.1 86.9-86.9-37.1 37.1-86.9zm110 169.1l46.6 94h-14.6l-50-100-48.9 100h-14l51.1-106.9-22.3-9.4 6-14 68.6 29.1-6 14.3-16.5-7.1zm-11.8-116.3l68.6 29.4-29.4 68.3L230 246l29.1-68.6zm80.3 42.9l54.6 23.1-23.4 54.3-54.3-23.1 23.1-54.3z"},"meetup":{"viewBox":"0 0 512 512","path":"M99 414.3c1.1 5.7-2.3 11.1-8 12.3-5.4 1.1-10.9-2.3-12-8-1.1-5.4 2.3-11.1 7.7-12.3 5.4-1.2 11.1 2.3 12.3 8zm143.1 71.4c-6.3 4.6-8 13.4-3.7 20 4.6 6.6 13.4 8.3 20 3.7 6.3-4.6 8-13.4 3.4-20-4.2-6.5-13.1-8.3-19.7-3.7zm-86-462.3c6.3-1.4 10.3-7.7 8.9-14-1.1-6.6-7.4-10.6-13.7-9.1-6.3 1.4-10.3 7.7-9.1 14 1.4 6.6 7.6 10.6 13.9 9.1zM34.4 226.3c-10-6.9-23.7-4.3-30.6 6-6.9 10-4.3 24 5.7 30.9 10 7.1 23.7 4.6 30.6-5.7 6.9-10.4 4.3-24.1-5.7-31.2zm272-170.9c10.6-6.3 13.7-20 7.7-30.3-6.3-10.6-19.7-14-30-7.7s-13.7 20-7.4 30.6c6 10.3 19.4 13.7 29.7 7.4zm-191.1 58c7.7-5.4 9.4-16 4.3-23.7s-15.7-9.4-23.1-4.3c-7.7 5.4-9.4 16-4.3 23.7 5.1 7.8 15.6 9.5 23.1 4.3zm372.3 156c-7.4 1.7-12.3 9.1-10.6 16.9 1.4 7.4 8.9 12.3 16.3 10.6 7.4-1.4 12.3-8.9 10.6-16.6-1.5-7.4-8.9-12.3-16.3-10.9zm39.7-56.8c-1.1-5.7-6.6-9.1-12-8-5.7 1.1-9.1 6.9-8 12.6 1.1 5.4 6.6 9.1 12.3 8 5.4-1.5 9.1-6.9 7.7-12.6zM447 138.9c-8.6 6-10.6 17.7-4.9 26.3 5.7 8.6 17.4 10.6 26 4.9 8.3-6 10.3-17.7 4.6-26.3-5.7-8.7-17.4-10.9-25.7-4.9zm-6.3 139.4c26.3 43.1 15.1 100-26.3 129.1-17.4 12.3-37.1 17.7-56.9 17.1-12 47.1-69.4 64.6-105.1 32.6-1.1.9-2.6 1.7-3.7 2.9-39.1 27.1-92.3 17.4-119.4-22.3-9.7-14.3-14.6-30.6-15.1-46.9-65.4-10.9-90-94-41.1-139.7-28.3-46.9.6-107.4 53.4-114.9C151.6 70 234.1 38.6 290.1 82c67.4-22.3 136.3 29.4 130.9 101.1 41.1 12.6 52.8 66.9 19.7 95.2zm-70 74.3c-3.1-20.6-40.9-4.6-43.1-27.1-3.1-32 43.7-101.1 40-128-3.4-24-19.4-29.1-33.4-29.4-13.4-.3-16.9 2-21.4 4.6-2.9 1.7-6.6 4.9-11.7-.3-6.3-6-11.1-11.7-19.4-12.9-12.3-2-17.7 2-26.6 9.7-3.4 2.9-12 12.9-20 9.1-3.4-1.7-15.4-7.7-24-11.4-16.3-7.1-40 4.6-48.6 20-12.9 22.9-38 113.1-41.7 125.1-8.6 26.6 10.9 48.6 36.9 47.1 11.1-.6 18.3-4.6 25.4-17.4 4-7.4 41.7-107.7 44.6-112.6 2-3.4 8.9-8 14.6-5.1 5.7 3.1 6.9 9.4 6 15.1-1.1 9.7-28 70.9-28.9 77.7-3.4 22.9 26.9 26.6 38.6 4 3.7-7.1 45.7-92.6 49.4-98.3 4.3-6.3 7.4-8.3 11.7-8 3.1 0 8.3.9 7.1 10.9-1.4 9.4-35.1 72.3-38.9 87.7-4.6 20.6 6.6 41.4 24.9 50.6 11.4 5.7 62.5 15.7 58.5-11.1zm5.7 92.3c-10.3 7.4-12.9 22-5.7 32.6 7.1 10.6 21.4 13.1 32 6 10.6-7.4 13.1-22 6-32.6-7.4-10.6-21.7-13.5-32.3-6z"}}'),...JSON.parse('{"envelope":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"},"star":{"viewBox":"0 0 576 512","path":"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},"file":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"},"clock":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"},"play-circle":{"viewBox":"0 0 512 512","path":"M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"},"image":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"},"share-square":{"viewBox":"0 0 576 512","path":"M561.938 158.06L417.94 14.092C387.926-15.922 336 5.097 336 48.032v57.198c-42.45 1.88-84.03 6.55-120.76 17.99-35.17 10.95-63.07 27.58-82.91 49.42C108.22 199.2 96 232.6 96 271.94c0 61.697 33.178 112.455 84.87 144.76 37.546 23.508 85.248-12.651 71.02-55.74-15.515-47.119-17.156-70.923 84.11-78.76V336c0 42.993 51.968 63.913 81.94 33.94l143.998-144c18.75-18.74 18.75-49.14 0-67.88zM384 336V232.16C255.309 234.082 166.492 255.35 206.31 376 176.79 357.55 144 324.08 144 271.94c0-109.334 129.14-118.947 240-119.85V48l144 144-144 144zm24.74 84.493a82.658 82.658 0 0 0 20.974-9.303c7.976-4.952 18.286.826 18.286 10.214V464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h132c6.627 0 12 5.373 12 12v4.486c0 4.917-2.987 9.369-7.569 11.152-13.702 5.331-26.396 11.537-38.05 18.585a12.138 12.138 0 0 1-6.28 1.777H54a6 6 0 0 0-6 6v340a6 6 0 0 0 6 6h340a6 6 0 0 0 6-6v-25.966c0-5.37 3.579-10.059 8.74-11.541z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"},"check-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M466.27 225.31c4.674-22.647.864-44.538-8.99-62.99 2.958-23.868-4.021-48.565-17.34-66.99C438.986 39.423 404.117 0 327 0c-7 0-15 .01-22.22.01C201.195.01 168.997 40 128 40h-10.845c-5.64-4.975-13.042-8-21.155-8H32C14.327 32 0 46.327 0 64v240c0 17.673 14.327 32 32 32h64c11.842 0 22.175-6.438 27.708-16h7.052c19.146 16.953 46.013 60.653 68.76 83.4 13.667 13.667 10.153 108.6 71.76 108.6 57.58 0 95.27-31.936 95.27-104.73 0-18.41-3.93-33.73-8.85-46.54h36.48c48.602 0 85.82-41.565 85.82-85.58 0-19.15-4.96-34.99-13.73-49.84zM64 296c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm330.18 16.73H290.19c0 37.82 28.36 55.37 28.36 94.54 0 23.75 0 56.73-47.27 56.73-18.91-18.91-9.46-66.18-37.82-94.54C206.9 342.89 167.28 272 138.92 272H128V85.83c53.611 0 100.001-37.82 171.64-37.82h37.82c35.512 0 60.82 17.12 53.12 65.9 15.2 8.16 26.5 36.44 13.94 57.57 21.581 20.384 18.699 51.065 5.21 65.62 9.45 0 22.36 18.91 22.27 37.81-.09 18.91-16.71 37.82-37.82 37.82z"},"heart":{"viewBox":"0 0 512 512","path":"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},"lemon":{"viewBox":"0 0 512 512","path":"M484.112 27.889C455.989-.233 416.108-8.057 387.059 8.865 347.604 31.848 223.504-41.111 91.196 91.197-41.277 223.672 31.923 347.472 8.866 387.058c-16.922 29.051-9.1 68.932 19.022 97.054 28.135 28.135 68.011 35.938 97.057 19.021 39.423-22.97 163.557 49.969 295.858-82.329 132.474-132.477 59.273-256.277 82.331-295.861 16.922-29.05 9.1-68.931-19.022-97.054zm-22.405 72.894c-38.8 66.609 45.6 165.635-74.845 286.08-120.44 120.443-219.475 36.048-286.076 74.843-22.679 13.207-64.035-27.241-50.493-50.488 38.8-66.609-45.6-165.635 74.845-286.08C245.573 4.702 344.616 89.086 411.219 50.292c22.73-13.24 64.005 27.288 50.488 50.491zm-169.861 8.736c1.37 10.96-6.404 20.957-17.365 22.327-54.846 6.855-135.779 87.787-142.635 142.635-1.373 10.989-11.399 18.734-22.326 17.365-10.961-1.37-18.735-11.366-17.365-22.326 9.162-73.286 104.167-168.215 177.365-177.365 10.953-1.368 20.956 6.403 22.326 17.364z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"},"bookmark":{"viewBox":"0 0 384 512","path":"M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"},"hdd":{"viewBox":"0 0 576 512","path":"M567.403 235.642L462.323 84.589A48 48 0 0 0 422.919 64H153.081a48 48 0 0 0-39.404 20.589L8.597 235.642A48.001 48.001 0 0 0 0 263.054V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V263.054c0-9.801-3-19.366-8.597-27.412zM153.081 112h269.838l77.913 112H75.168l77.913-112zM528 400H48V272h480v128zm-32-64c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32zm-96 0c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M0 220.8C0 266.416 37.765 304 83.2 304h35.647a93.148 93.148 0 0 0 7.929 22.064c-2.507 22.006 3.503 44.978 15.985 62.791C143.9 441.342 180.159 480 242.701 480H264c60.063 0 98.512-40 127.2-40h2.679c5.747 4.952 13.536 8 22.12 8h64c17.673 0 32-12.894 32-28.8V188.8c0-15.906-14.327-28.8-32-28.8h-64c-8.584 0-16.373 3.048-22.12 8H391.2c-6.964 0-14.862-6.193-30.183-23.668l-.129-.148-.131-.146c-8.856-9.937-18.116-20.841-25.851-33.253C316.202 80.537 304.514 32 259.2 32c-56.928 0-92 35.286-92 83.2 0 8.026.814 15.489 2.176 22.4H83.2C38.101 137.6 0 175.701 0 220.8zm48 0c0-18.7 16.775-35.2 35.2-35.2h158.4c0-17.325-26.4-35.2-26.4-70.4 0-26.4 20.625-35.2 44-35.2 8.794 0 20.445 32.712 34.926 56.1 9.074 14.575 19.524 27.225 30.799 39.875 16.109 18.374 33.836 36.633 59.075 39.596v176.752C341.21 396.087 309.491 432 264 432h-21.299c-40.524 0-57.124-22.197-50.601-61.325-14.612-8.001-24.151-33.979-12.925-53.625-19.365-18.225-17.787-46.381-4.95-61.05H83.2C64.225 256 48 239.775 48 220.8zM448 360c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-up":{"viewBox":"0 0 448 512","path":"M105.6 83.2v86.177a115.52 115.52 0 0 0-22.4-2.176c-47.914 0-83.2 35.072-83.2 92 0 45.314 48.537 57.002 78.784 75.707 12.413 7.735 23.317 16.994 33.253 25.851l.146.131.148.129C129.807 376.338 136 384.236 136 391.2v2.679c-4.952 5.747-8 13.536-8 22.12v64c0 17.673 12.894 32 28.8 32h230.4c15.906 0 28.8-14.327 28.8-32v-64c0-8.584-3.048-16.373-8-22.12V391.2c0-28.688 40-67.137 40-127.2v-21.299c0-62.542-38.658-98.8-91.145-99.94-17.813-12.482-40.785-18.491-62.791-15.985A93.148 93.148 0 0 0 272 118.847V83.2C272 37.765 234.416 0 188.8 0c-45.099 0-83.2 38.101-83.2 83.2zm118.4 0v91.026c14.669-12.837 42.825-14.415 61.05 4.95 19.646-11.227 45.624-1.687 53.625 12.925 39.128-6.524 61.325 10.076 61.325 50.6V264c0 45.491-35.913 77.21-39.676 120H183.571c-2.964-25.239-21.222-42.966-39.596-59.075-12.65-11.275-25.3-21.725-39.875-30.799C80.712 279.645 48 267.994 48 259.2c0-23.375 8.8-44 35.2-44 35.2 0 53.075 26.4 70.4 26.4V83.2c0-18.425 16.5-35.2 35.2-35.2 18.975 0 35.2 16.225 35.2 35.2zM352 424c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-down":{"viewBox":"0 0 448 512","path":"M188.8 512c45.616 0 83.2-37.765 83.2-83.2v-35.647a93.148 93.148 0 0 0 22.064-7.929c22.006 2.507 44.978-3.503 62.791-15.985C409.342 368.1 448 331.841 448 269.299V248c0-60.063-40-98.512-40-127.2v-2.679c4.952-5.747 8-13.536 8-22.12V32c0-17.673-12.894-32-28.8-32H156.8C140.894 0 128 14.327 128 32v64c0 8.584 3.048 16.373 8 22.12v2.679c0 6.964-6.193 14.862-23.668 30.183l-.148.129-.146.131c-9.937 8.856-20.841 18.116-33.253 25.851C48.537 195.798 0 207.486 0 252.8c0 56.928 35.286 92 83.2 92 8.026 0 15.489-.814 22.4-2.176V428.8c0 45.099 38.101 83.2 83.2 83.2zm0-48c-18.7 0-35.2-16.775-35.2-35.2V270.4c-17.325 0-35.2 26.4-70.4 26.4-26.4 0-35.2-20.625-35.2-44 0-8.794 32.712-20.445 56.1-34.926 14.575-9.074 27.225-19.524 39.875-30.799 18.374-16.109 36.633-33.836 39.596-59.075h176.752C364.087 170.79 400 202.509 400 248v21.299c0 40.524-22.197 57.124-61.325 50.601-8.001 14.612-33.979 24.151-53.625 12.925-18.225 19.365-46.381 17.787-61.05 4.95V428.8c0 18.975-16.225 35.2-35.2 35.2zM328 64c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z"},"copy":{"viewBox":"0 0 448 512","path":"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M320 144c-53.02 0-96 50.14-96 112 0 61.85 42.98 112 96 112 53 0 96-50.13 96-112 0-61.86-42.98-112-96-112zm40 168c0 4.42-3.58 8-8 8h-64c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h16v-55.44l-.47.31a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09l15.33-10.22a23.99 23.99 0 0 1 13.31-4.03H328c4.42 0 8 3.58 8 8v88h16c4.42 0 8 3.58 8 8v16zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zm-16 272c-35.35 0-64 28.65-64 64H112c0-35.35-28.65-64-64-64V176c35.35 0 64-28.65 64-64h416c0 35.35 28.65 64 64 64v160z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"comments":{"viewBox":"0 0 576 512","path":"M532 386.2c27.5-27.1 44-61.1 44-98.2 0-80-76.5-146.1-176.2-157.9C368.3 72.5 294.3 32 208 32 93.1 32 0 103.6 0 192c0 37 16.5 71 44 98.2-15.3 30.7-37.3 54.5-37.7 54.9-6.3 6.7-8.1 16.5-4.4 25 3.6 8.5 12 14 21.2 14 53.5 0 96.7-20.2 125.2-38.8 9.2 2.1 18.7 3.7 28.4 4.9C208.1 407.6 281.8 448 368 448c20.8 0 40.8-2.4 59.8-6.8C456.3 459.7 499.4 480 553 480c9.2 0 17.5-5.5 21.2-14 3.6-8.5 1.9-18.3-4.4-25-.4-.3-22.5-24.1-37.8-54.8zm-392.8-92.3L122.1 305c-14.1 9.1-28.5 16.3-43.1 21.4 2.7-4.7 5.4-9.7 8-14.8l15.5-31.1L77.7 256C64.2 242.6 48 220.7 48 192c0-60.7 73.3-112 160-112s160 51.3 160 112-73.3 112-160 112c-16.5 0-33-1.9-49-5.6l-19.8-4.5zM498.3 352l-24.7 24.4 15.5 31.1c2.6 5.1 5.3 10.1 8 14.8-14.6-5.1-29-12.3-43.1-21.4l-17.1-11.1-19.9 4.6c-16 3.7-32.5 5.6-49 5.6-54 0-102.2-20.1-131.3-49.7C338 339.5 416 272.9 416 192c0-3.4-.4-6.7-.7-10C479.7 196.5 528 238.8 528 288c0 28.7-16.2 50.6-29.7 64z"},"lightbulb":{"viewBox":"0 0 352 512","path":"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},"bell":{"viewBox":"0 0 448 512","path":"M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"},"file-alt":{"viewBox":"0 0 384 512","path":"M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"},"building":{"viewBox":"0 0 448 512","path":"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"},"hospital":{"viewBox":"0 0 448 512","path":"M128 244v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12zm140 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm-76 84v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm76 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm180 124v36H0v-36c0-6.627 5.373-12 12-12h19.5V85.035C31.5 73.418 42.245 64 55.5 64H144V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v40h88.5c13.255 0 24 9.418 24 21.035V464H436c6.627 0 12 5.373 12 12zM79.5 463H192v-67c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v67h112.5V112H304v24c0 13.255-10.745 24-24 24H168c-13.255 0-24-10.745-24-24v-24H79.5v351zM266 64h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},"folder-open":{"viewBox":"0 0 576 512","path":"M527.943 224H480v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h400a48.001 48.001 0 0 0 40.704-22.56l79.942-128c19.948-31.917-3.038-73.44-40.703-73.44zM54 112h134.118l64 64H426a6 6 0 0 1 6 6v42H152a48 48 0 0 0-41.098 23.202L48 351.449V117.993A5.993 5.993 0 0 1 54 112zm394 288H72l77.234-128H528l-80 128z"},"smile":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"},"frown":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"},"meh":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm8 144H160c-13.2 0-24 10.8-24 24s10.8 24 24 24h176c13.2 0 24-10.8 24-24s-10.8-24-24-24z"},"keyboard":{"viewBox":"0 0 576 512","path":"M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm8 336c0 4.411-3.589 8-8 8H48c-4.411 0-8-3.589-8-8V112c0-4.411 3.589-8 8-8h480c4.411 0 8 3.589 8 8v288zM170 270v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-336 82v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm384 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zM122 188v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-98 158v-16c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"},"flag":{"viewBox":"0 0 512 512","path":"M336.174 80c-49.132 0-93.305-32-161.913-32-31.301 0-58.303 6.482-80.721 15.168a48.04 48.04 0 0 0 2.142-20.727C93.067 19.575 74.167 1.594 51.201.104 23.242-1.71 0 20.431 0 48c0 17.764 9.657 33.262 24 41.562V496c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-83.443C109.869 395.28 143.259 384 199.826 384c49.132 0 93.305 32 161.913 32 58.479 0 101.972-22.617 128.548-39.981C503.846 367.161 512 352.051 512 335.855V95.937c0-34.459-35.264-57.768-66.904-44.117C409.193 67.309 371.641 80 336.174 80zM464 336c-21.783 15.412-60.824 32-102.261 32-59.945 0-102.002-32-161.913-32-43.361 0-96.379 9.403-127.826 24V128c21.784-15.412 60.824-32 102.261-32 59.945 0 102.002 32 161.913 32 43.271 0 96.32-17.366 127.826-32v240z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 385.3l-124.3 65.4 23.7-138.4-100.6-98 139-20.2 62.2-126V0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6v-54.3z"},"calendar":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},"minus-square":{"viewBox":"0 0 448 512","path":"M108 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4 12-12 12H108zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-down":{"viewBox":"0 0 448 512","path":"M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-up":{"viewBox":"0 0 448 512","path":"M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-right":{"viewBox":"0 0 448 512","path":"M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"sun":{"viewBox":"0 0 512 512","path":"M494.2 221.9l-59.8-40.5 13.7-71c2.6-13.2-1.6-26.8-11.1-36.4-9.6-9.5-23.2-13.7-36.2-11.1l-70.9 13.7-40.4-59.9c-15.1-22.3-51.9-22.3-67 0l-40.4 59.9-70.8-13.7C98 60.4 84.5 64.5 75 74.1c-9.5 9.6-13.7 23.1-11.1 36.3l13.7 71-59.8 40.5C6.6 229.5 0 242 0 255.5s6.7 26 17.8 33.5l59.8 40.5-13.7 71c-2.6 13.2 1.6 26.8 11.1 36.3 9.5 9.5 22.9 13.7 36.3 11.1l70.8-13.7 40.4 59.9C230 505.3 242.6 512 256 512s26-6.7 33.5-17.8l40.4-59.9 70.9 13.7c13.4 2.7 26.8-1.6 36.3-11.1 9.5-9.5 13.6-23.1 11.1-36.3l-13.7-71 59.8-40.5c11.1-7.5 17.8-20.1 17.8-33.5-.1-13.6-6.7-26.1-17.9-33.7zm-112.9 85.6l17.6 91.2-91-17.6L256 458l-51.9-77-90.9 17.6 17.6-91.2-76.8-52 76.8-52-17.6-91.2 91 17.6L256 53l51.9 76.9 91-17.6-17.6 91.1 76.8 52-76.8 52.1zM256 152c-57.3 0-104 46.7-104 104s46.7 104 104 104 104-46.7 104-104-46.7-104-104-104zm0 160c-30.9 0-56-25.1-56-56s25.1-56 56-56 56 25.1 56 56-25.1 56-56 56z"},"moon":{"viewBox":"0 0 512 512","path":"M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"},"caret-square-left":{"viewBox":"0 0 448 512","path":"M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"dot-circle":{"viewBox":"0 0 512 512","path":"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"},"plus-square":{"viewBox":"0 0 448 512","path":"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"file-pdf":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},"file-word":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm220.1-208c-5.7 0-10.6 4-11.7 9.5-20.6 97.7-20.4 95.4-21 103.5-.2-1.2-.4-2.6-.7-4.3-.8-5.1.3.2-23.6-99.5-1.3-5.4-6.1-9.2-11.7-9.2h-13.3c-5.5 0-10.3 3.8-11.7 9.1-24.4 99-24 96.2-24.8 103.7-.1-1.1-.2-2.5-.5-4.2-.7-5.2-14.1-73.3-19.1-99-1.1-5.6-6-9.7-11.8-9.7h-16.8c-7.8 0-13.5 7.3-11.7 14.8 8 32.6 26.7 109.5 33.2 136 1.3 5.4 6.1 9.1 11.7 9.1h25.2c5.5 0 10.3-3.7 11.6-9.1l17.9-71.4c1.5-6.2 2.5-12 3-17.3l2.9 17.3c.1.4 12.6 50.5 17.9 71.4 1.3 5.3 6.1 9.1 11.6 9.1h24.7c5.5 0 10.3-3.7 11.6-9.1 20.8-81.9 30.2-119 34.5-136 1.9-7.6-3.8-14.9-11.6-14.9h-15.8z"},"file-excel":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm212-240h-28.8c-4.4 0-8.4 2.4-10.5 6.3-18 33.1-22.2 42.4-28.6 57.7-13.9-29.1-6.9-17.3-28.6-57.7-2.1-3.9-6.2-6.3-10.6-6.3H124c-9.3 0-15 10-10.4 18l46.3 78-46.3 78c-4.7 8 1.1 18 10.4 18h28.9c4.4 0 8.4-2.4 10.5-6.3 21.7-40 23-45 28.6-57.7 14.9 30.2 5.9 15.9 28.6 57.7 2.1 3.9 6.2 6.3 10.6 6.3H260c9.3 0 15-10 10.4-18L224 320c.7-1.1 30.3-50.5 46.3-78 4.7-8-1.1-18-10.3-18z"},"file-powerpoint":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm72-60V236c0-6.6 5.4-12 12-12h69.2c36.7 0 62.8 27 62.8 66.3 0 74.3-68.7 66.5-95.5 66.5V404c0 6.6-5.4 12-12 12H132c-6.6 0-12-5.4-12-12zm48.5-87.4h23c7.9 0 13.9-2.4 18.1-7.2 8.5-9.8 8.4-28.5.1-37.8-4.1-4.6-9.9-7-17.4-7h-23.9v52z"},"file-image":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"},"file-archive":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM256 51.882L332.118 128H256V51.882zM336 464H48V48h79.714v16h32V48H208v104c0 13.255 10.745 24 24 24h104v288zM192.27 96h-32V64h32v32zm-32 0v32h-32V96h32zm0 64v32h-32v-32h32zm32 0h-32v-32h32v32zm1.909 105.678A12 12 0 0 0 182.406 256H160.27v-32h-32v32l-19.69 97.106C101.989 385.611 126.834 416 160 416c33.052 0 57.871-30.192 51.476-62.62l-17.297-87.702zM160.27 390.073c-17.918 0-32.444-12.105-32.444-27.036 0-14.932 14.525-27.036 32.444-27.036s32.444 12.105 32.444 27.036c0 14.931-14.526 27.036-32.444 27.036zm32-166.073h-32v-32h32v32z"},"file-audio":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm144-76.024c0 10.691-12.926 16.045-20.485 8.485L136 360.486h-28c-6.627 0-12-5.373-12-12v-56c0-6.627 5.373-12 12-12h28l35.515-36.947c7.56-7.56 20.485-2.206 20.485 8.485v135.952zm41.201-47.13c9.051-9.297 9.06-24.133.001-33.439-22.149-22.752 12.235-56.246 34.395-33.481 27.198 27.94 27.212 72.444.001 100.401-21.793 22.386-56.947-10.315-34.397-33.481z"},"file-video":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm228.687-211.303L224 305.374V268c0-11.046-8.954-20-20-20H100c-11.046 0-20 8.954-20 20v104c0 11.046 8.954 20 20 20h104c11.046 0 20-8.954 20-20v-37.374l52.687 52.674C286.704 397.318 304 390.28 304 375.986V264.011c0-14.311-17.309-21.319-27.313-11.314z"},"file-code":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm101.677-115.115L116.854 320l32.822-28.885a8.793 8.793 0 0 0 .605-12.624l-17.403-18.564c-3.384-3.613-8.964-3.662-12.438-.401L62.78 313.58c-3.703 3.474-3.704 9.367.001 12.84l57.659 54.055a8.738 8.738 0 0 0 6.012 2.381 8.746 8.746 0 0 0 6.427-2.782l17.403-18.563a8.795 8.795 0 0 0-.605-12.626zm84.284-127.85l-24.401-7.084a8.796 8.796 0 0 0-10.905 5.998L144.04 408.061c-1.353 4.66 1.338 9.552 5.998 10.905l24.403 7.084c4.68 1.355 9.557-1.354 10.905-5.998l54.612-188.112c1.354-4.66-1.337-9.552-5.997-10.905zm87.258 92.545l-57.658-54.055c-3.526-3.307-9.099-3.165-12.439.401l-17.403 18.563a8.795 8.795 0 0 0 .605 12.625L267.146 320l-32.822 28.885a8.793 8.793 0 0 0-.605 12.624l17.403 18.564a8.797 8.797 0 0 0 12.439.401h-.001l57.66-54.055c3.703-3.473 3.703-9.366-.001-12.839z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"},"futbol":{"viewBox":"0 0 496 512","path":"M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"},"newspaper":{"viewBox":"0 0 576 512","path":"M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"closed-captioning":{"viewBox":"0 0 512 512","path":"M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-211.1-85.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7zm190.4 0c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.9-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 220.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7z"},"gem":{"viewBox":"0 0 576 512","path":"M464 0H112c-4 0-7.8 2-10 5.4L2 152.6c-2.9 4.4-2.6 10.2.7 14.2l276 340.8c4.8 5.9 13.8 5.9 18.6 0l276-340.8c3.3-4.1 3.6-9.8.7-14.2L474.1 5.4C471.8 2 468.1 0 464 0zm-19.3 48l63.3 96h-68.4l-51.7-96h56.8zm-202.1 0h90.7l51.7 96H191l51.6-96zm-111.3 0h56.8l-51.7 96H68l63.3-96zm-43 144h51.4L208 352 88.3 192zm102.9 0h193.6L288 435.3 191.2 192zM368 352l68.2-160h51.4L368 352z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-128 80v-76.118h76.118L320 428.106zM400 80v223.988H296c-13.255 0-24 10.745-24 24v104H48V80h352z"},"hourglass":{"viewBox":"0 0 384 512","path":"M368 48h4c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12H12C5.373 0 0 5.373 0 12v24c0 6.627 5.373 12 12 12h4c0 80.564 32.188 165.807 97.18 208C47.899 298.381 16 383.9 16 464h-4c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12h-4c0-80.564-32.188-165.807-97.18-208C336.102 213.619 368 128.1 368 48zM64 48h256c0 101.62-57.307 184-128 184S64 149.621 64 48zm256 416H64c0-101.62 57.308-184 128-184s128 82.38 128 184z"},"hand-rock":{"viewBox":"0 0 512 512","path":"M408.864 79.052c-22.401-33.898-66.108-42.273-98.813-23.588-29.474-31.469-79.145-31.093-108.334-.022-47.16-27.02-108.71 5.055-110.671 60.806C44.846 105.407 0 140.001 0 187.429v56.953c0 32.741 14.28 63.954 39.18 85.634l97.71 85.081c4.252 3.702 3.11 5.573 3.11 32.903 0 17.673 14.327 32 32 32h252c17.673 0 32-14.327 32-32 0-23.513-1.015-30.745 3.982-42.37l42.835-99.656c6.094-14.177 9.183-29.172 9.183-44.568V146.963c0-52.839-54.314-88.662-103.136-67.911zM464 261.406a64.505 64.505 0 0 1-5.282 25.613l-42.835 99.655c-5.23 12.171-7.883 25.04-7.883 38.25V432H188v-10.286c0-16.37-7.14-31.977-19.59-42.817l-97.71-85.08C56.274 281.255 48 263.236 48 244.381v-56.953c0-33.208 52-33.537 52 .677v41.228a16 16 0 0 0 5.493 12.067l7 6.095A16 16 0 0 0 139 235.429V118.857c0-33.097 52-33.725 52 .677v26.751c0 8.836 7.164 16 16 16h7c8.836 0 16-7.164 16-16v-41.143c0-33.134 52-33.675 52 .677v40.466c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16v-27.429c0-33.03 52-33.78 52 .677v26.751c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16 0-33.146 52-33.613 52 .677v114.445z"},"hand-paper":{"viewBox":"0 0 448 512","path":"M372.57 112.641v-10.825c0-43.612-40.52-76.691-83.039-65.546-25.629-49.5-94.09-47.45-117.982.747C130.269 26.456 89.144 57.945 89.144 102v126.13c-19.953-7.427-43.308-5.068-62.083 8.871-29.355 21.796-35.794 63.333-14.55 93.153L132.48 498.569a32 32 0 0 0 26.062 13.432h222.897c14.904 0 27.835-10.289 31.182-24.813l30.184-130.958A203.637 203.637 0 0 0 448 310.564V179c0-40.62-35.523-71.992-75.43-66.359zm27.427 197.922c0 11.731-1.334 23.469-3.965 34.886L368.707 464h-201.92L51.591 302.303c-14.439-20.27 15.023-42.776 29.394-22.605l27.128 38.079c8.995 12.626 29.031 6.287 29.031-9.283V102c0-25.645 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V67c0-25.663 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V101.125c0-25.672 36.57-24.81 36.57.691V256c0 8.837 7.163 16 16 16h6.857c8.837 0 16-7.163 16-16v-76.309c0-26.242 36.57-25.64 36.57-.691v131.563z"},"hand-scissors":{"viewBox":"0 0 512 512","path":"M256 480l70-.013c5.114 0 10.231-.583 15.203-1.729l118.999-27.427C490.56 443.835 512 417.02 512 386.277V180.575c0-23.845-13.03-45.951-34.005-57.69l-97.999-54.853c-34.409-19.261-67.263-5.824-92.218 24.733L142.85 37.008c-37.887-14.579-80.612 3.727-95.642 41.201-15.098 37.642 3.635 80.37 41.942 95.112L168 192l-94-9.141c-40.804 0-74 32.811-74 73.14 0 40.33 33.196 73.141 74 73.141h87.635c-3.675 26.245 8.692 51.297 30.341 65.006C178.657 436.737 211.044 480 256 480zm0-48.013c-25.16 0-25.12-36.567 0-36.567 8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16h-28c-25.159 0-25.122-36.567 0-36.567h28c8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16H74c-34.43 0-34.375-50.281 0-50.281h182c8.837 0 16-7.163 16-16v-11.632a16 16 0 0 0-10.254-14.933L106.389 128.51c-31.552-12.14-13.432-59.283 19.222-46.717l166.549 64.091a16.001 16.001 0 0 0 18.139-4.812l21.764-26.647c5.82-7.127 16.348-9.064 24.488-4.508l98 54.854c5.828 3.263 9.449 9.318 9.449 15.805v205.701c0 8.491-5.994 15.804-14.576 17.782l-119.001 27.427a19.743 19.743 0 0 1-4.423.502h-70z"},"hand-lizard":{"viewBox":"0 0 576 512","path":"M556.686 290.542L410.328 64.829C397.001 44.272 374.417 32 349.917 32H56C25.121 32 0 57.122 0 88v8c0 44.112 35.888 80 80 80h196.042l-18.333 48H144c-48.523 0-88 39.477-88 88 0 30.879 25.121 56 56 56h131.552c2.987 0 5.914.549 8.697 1.631L352 408.418V480h224V355.829c0-23.225-6.679-45.801-19.314-65.287zM528 432H400v-23.582c0-19.948-12.014-37.508-30.604-44.736l-99.751-38.788A71.733 71.733 0 0 0 243.552 320H112c-4.411 0-8-3.589-8-8 0-22.056 17.944-40 40-40h113.709c19.767 0 37.786-12.407 44.84-30.873l24.552-64.281c8.996-23.553-8.428-48.846-33.63-48.846H80c-17.645 0-32-14.355-32-32v-8c0-4.411 3.589-8 8-8h293.917c8.166 0 15.693 4.09 20.137 10.942l146.358 225.715A71.84 71.84 0 0 1 528 355.829V432z"},"hand-spock":{"viewBox":"0 0 512 512","path":"M21.096 381.79l129.092 121.513a32 32 0 0 0 21.932 8.698h237.6c14.17 0 26.653-9.319 30.68-22.904l31.815-107.313A115.955 115.955 0 0 0 477 348.811v-36.839c0-4.051.476-8.104 1.414-12.045l31.73-133.41c10.099-42.412-22.316-82.738-65.544-82.525-4.144-24.856-22.543-47.165-49.85-53.992-35.803-8.952-72.227 12.655-81.25 48.75L296.599 184 274.924 52.01c-8.286-36.07-44.303-58.572-80.304-50.296-29.616 6.804-50.138 32.389-51.882 61.295-42.637.831-73.455 40.563-64.071 81.844l31.04 136.508c-27.194-22.515-67.284-19.992-91.482 5.722-25.376 26.961-24.098 69.325 2.871 94.707zm32.068-61.811l.002-.001c7.219-7.672 19.241-7.98 26.856-.813l53.012 49.894C143.225 378.649 160 371.4 160 357.406v-69.479c0-1.193-.134-2.383-.397-3.546l-34.13-150.172c-5.596-24.617 31.502-32.86 37.054-8.421l30.399 133.757a16 16 0 0 0 15.603 12.454h8.604c10.276 0 17.894-9.567 15.594-19.583l-41.62-181.153c-5.623-24.469 31.39-33.076 37.035-8.508l45.22 196.828A16 16 0 0 0 288.956 272h13.217a16 16 0 0 0 15.522-12.119l42.372-169.49c6.104-24.422 42.962-15.159 36.865 9.217L358.805 252.12c-2.521 10.088 5.115 19.88 15.522 19.88h9.694a16 16 0 0 0 15.565-12.295L426.509 146.6c5.821-24.448 42.797-15.687 36.966 8.802L431.72 288.81a100.094 100.094 0 0 0-2.72 23.162v36.839c0 6.548-.943 13.051-2.805 19.328L397.775 464h-219.31L53.978 346.836c-7.629-7.18-7.994-19.229-.814-26.857z"},"hand-pointer":{"viewBox":"0 0 448 512","path":"M358.182 179.361c-19.493-24.768-52.679-31.945-79.872-19.098-15.127-15.687-36.182-22.487-56.595-19.629V67c0-36.944-29.736-67-66.286-67S89.143 30.056 89.143 67v161.129c-19.909-7.41-43.272-5.094-62.083 8.872-29.355 21.795-35.793 63.333-14.55 93.152l109.699 154.001C134.632 501.59 154.741 512 176 512h178.286c30.802 0 57.574-21.5 64.557-51.797l27.429-118.999A67.873 67.873 0 0 0 448 326v-84c0-46.844-46.625-79.273-89.818-62.639zM80.985 279.697l27.126 38.079c8.995 12.626 29.031 6.287 29.031-9.283V67c0-25.12 36.571-25.16 36.571 0v175c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16v-35c0-25.12 36.571-25.16 36.571 0v35c0 8.836 7.163 16 16 16H272c8.837 0 16-7.164 16-16v-21c0-25.12 36.571-25.16 36.571 0v21c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16 0-25.121 36.571-25.16 36.571 0v84c0 1.488-.169 2.977-.502 4.423l-27.43 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H176c-5.769 0-11.263-2.878-14.697-7.697l-109.712-154c-14.406-20.223 14.994-42.818 29.394-22.606zM176.143 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.733 0-14-7.163-14-16zm75.428 0v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16zM327 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16z"},"hand-peace":{"viewBox":"0 0 448 512","path":"M362.146 191.976c-13.71-21.649-38.761-34.016-65.006-30.341V74c0-40.804-32.811-74-73.141-74-40.33 0-73.14 33.196-73.14 74L160 168l-18.679-78.85C126.578 50.843 83.85 32.11 46.209 47.208 8.735 62.238-9.571 104.963 5.008 142.85l55.757 144.927c-30.557 24.956-43.994 57.809-24.733 92.218l54.853 97.999C102.625 498.97 124.73 512 148.575 512h205.702c30.744 0 57.558-21.44 64.555-51.797l27.427-118.999a67.801 67.801 0 0 0 1.729-15.203L448 256c0-44.956-43.263-77.343-85.854-64.024zM399.987 326c0 1.488-.169 2.977-.502 4.423l-27.427 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H148.575c-6.486 0-12.542-3.621-15.805-9.449l-54.854-98c-4.557-8.141-2.619-18.668 4.508-24.488l26.647-21.764a16 16 0 0 0 4.812-18.139l-64.09-166.549C37.226 92.956 84.37 74.837 96.51 106.389l59.784 155.357A16 16 0 0 0 171.227 272h11.632c8.837 0 16-7.163 16-16V74c0-34.375 50.281-34.43 50.281 0v182c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16v-28c0-25.122 36.567-25.159 36.567 0v28c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16 0-25.12 36.567-25.16 36.567 0v70z"},"calendar-plus":{"viewBox":"0 0 448 512","path":"M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-minus":{"viewBox":"0 0 448 512","path":"M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-times":{"viewBox":"0 0 448 512","path":"M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-check":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"},"map":{"viewBox":"0 0 576 512","path":"M560.02 32c-1.96 0-3.98.37-5.96 1.16L384.01 96H384L212 35.28A64.252 64.252 0 0 0 191.76 32c-6.69 0-13.37 1.05-19.81 3.14L20.12 87.95A32.006 32.006 0 0 0 0 117.66v346.32C0 473.17 7.53 480 15.99 480c1.96 0 3.97-.37 5.96-1.16L192 416l172 60.71a63.98 63.98 0 0 0 40.05.15l151.83-52.81A31.996 31.996 0 0 0 576 394.34V48.02c0-9.19-7.53-16.02-15.98-16.02zM224 90.42l128 45.19v285.97l-128-45.19V90.42zM48 418.05V129.07l128-44.53v286.2l-.64.23L48 418.05zm480-35.13l-128 44.53V141.26l.64-.24L528 93.95v288.97z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm96-280v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16zm-112 0v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm296-80v160c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16z"},"question-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"},"handshake":{"viewBox":"0 0 640 512","path":"M519.2 127.9l-47.6-47.6A56.252 56.252 0 0 0 432 64H205.2c-14.8 0-29.1 5.9-39.6 16.3L118 127.9H0v255.7h64c17.6 0 31.8-14.2 31.9-31.7h9.1l84.6 76.4c30.9 25.1 73.8 25.7 105.6 3.8 12.5 10.8 26 15.9 41.1 15.9 18.2 0 35.3-7.4 48.8-24 22.1 8.7 48.2 2.6 64-16.8l26.2-32.3c5.6-6.9 9.1-14.8 10.9-23h57.9c.1 17.5 14.4 31.7 31.9 31.7h64V127.9H519.2zM48 351.6c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16zm390-6.9l-26.1 32.2c-2.8 3.4-7.8 4-11.3 1.2l-23.9-19.4-30 36.5c-6 7.3-15 4.8-18 2.4l-36.8-31.5-15.6 19.2c-13.9 17.1-39.2 19.7-55.3 6.6l-97.3-88H96V175.8h41.9l61.7-61.6c2-.8 3.7-1.5 5.7-2.3H262l-38.7 35.5c-29.4 26.9-31.1 72.3-4.4 101.3 14.8 16.2 61.2 41.2 101.5 4.4l8.2-7.5 108.2 87.8c3.4 2.8 3.9 7.9 1.2 11.3zm106-40.8h-69.2c-2.3-2.8-4.9-5.4-7.7-7.7l-102.7-83.4 12.5-11.4c6.5-6 7-16.1 1-22.6L367 167.1c-6-6.5-16.1-6.9-22.6-1l-55.2 50.6c-9.5 8.7-25.7 9.4-34.6 0-9.3-9.9-8.5-25.1 1.2-33.9l65.6-60.1c7.4-6.8 17-10.5 27-10.5l83.7-.2c2.1 0 4.1.8 5.5 2.3l61.7 61.6H544v128zm48 47.7c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M494.586 164.516c-4.697-3.883-111.723-89.95-135.251-108.657C337.231 38.191 299.437 0 256 0c-43.205 0-80.636 37.717-103.335 55.859-24.463 19.45-131.07 105.195-135.15 108.549A48.004 48.004 0 0 0 0 201.485V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V201.509a48 48 0 0 0-17.414-36.993zM464 458a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V204.347c0-1.813.816-3.526 2.226-4.665 15.87-12.814 108.793-87.554 132.364-106.293C200.755 78.88 232.398 48 256 48c23.693 0 55.857 31.369 73.41 45.389 23.573 18.741 116.503 93.493 132.366 106.316a5.99 5.99 0 0 1 2.224 4.663V458zm-31.991-187.704c4.249 5.159 3.465 12.795-1.745 16.981-28.975 23.283-59.274 47.597-70.929 56.863C336.636 362.283 299.205 400 256 400c-43.452 0-81.287-38.237-103.335-55.86-11.279-8.967-41.744-33.413-70.927-56.865-5.21-4.187-5.993-11.822-1.745-16.981l15.258-18.528c4.178-5.073 11.657-5.843 16.779-1.726 28.618 23.001 58.566 47.035 70.56 56.571C200.143 320.631 232.307 352 256 352c23.602 0 55.246-30.88 73.41-45.389 11.994-9.535 41.944-33.57 70.563-56.568 5.122-4.116 12.601-3.346 16.778 1.727l15.258 18.526z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"},"user":{"viewBox":"0 0 448 512","path":"M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"},"snowflake":{"viewBox":"0 0 448 512","path":"M440.1 355.2l-39.2-23 34.1-9.3c8.4-2.3 13.4-11.1 11.1-19.6l-4.1-15.5c-2.2-8.5-10.9-13.6-19.3-11.3L343 298.2 271.2 256l71.9-42.2 79.7 21.7c8.4 2.3 17-2.8 19.3-11.3l4.1-15.5c2.2-8.5-2.7-17.3-11.1-19.6l-34.1-9.3 39.2-23c7.5-4.4 10.1-14.2 5.8-21.9l-7.9-13.9c-4.3-7.7-14-10.3-21.5-5.9l-39.2 23 9.1-34.7c2.2-8.5-2.7-17.3-11.1-19.6l-15.2-4.1c-8.4-2.3-17 2.8-19.3 11.3l-21.3 81-71.9 42.2v-84.5L306 70.4c6.1-6.2 6.1-16.4 0-22.6l-11.1-11.3c-6.1-6.2-16.1-6.2-22.2 0l-24.9 25.4V16c0-8.8-7-16-15.7-16h-15.7c-8.7 0-15.7 7.2-15.7 16v46.1l-24.9-25.4c-6.1-6.2-16.1-6.2-22.2 0L142.1 48c-6.1 6.2-6.1 16.4 0 22.6l58.3 59.3v84.5l-71.9-42.2-21.3-81c-2.2-8.5-10.9-13.6-19.3-11.3L72.7 84c-8.4 2.3-13.4 11.1-11.1 19.6l9.1 34.7-39.2-23c-7.5-4.4-17.1-1.8-21.5 5.9l-7.9 13.9c-4.3 7.7-1.8 17.4 5.8 21.9l39.2 23-34.1 9.1c-8.4 2.3-13.4 11.1-11.1 19.6L6 224.2c2.2 8.5 10.9 13.6 19.3 11.3l79.7-21.7 71.9 42.2-71.9 42.2-79.7-21.7c-8.4-2.3-17 2.8-19.3 11.3l-4.1 15.5c-2.2 8.5 2.7 17.3 11.1 19.6l34.1 9.3-39.2 23c-7.5 4.4-10.1 14.2-5.8 21.9L10 391c4.3 7.7 14 10.3 21.5 5.9l39.2-23-9.1 34.7c-2.2 8.5 2.7 17.3 11.1 19.6l15.2 4.1c8.4 2.3 17-2.8 19.3-11.3l21.3-81 71.9-42.2v84.5l-58.3 59.3c-6.1 6.2-6.1 16.4 0 22.6l11.1 11.3c6.1 6.2 16.1 6.2 22.2 0l24.9-25.4V496c0 8.8 7 16 15.7 16h15.7c8.7 0 15.7-7.2 15.7-16v-46.1l24.9 25.4c6.1 6.2 16.1 6.2 22.2 0l11.1-11.3c6.1-6.2 6.1-16.4 0-22.6l-58.3-59.3v-84.5l71.9 42.2 21.3 81c2.2 8.5 10.9 13.6 19.3 11.3L375 428c8.4-2.3 13.4-11.1 11.1-19.6l-9.1-34.7 39.2 23c7.5 4.4 17.1 1.8 21.5-5.9l7.9-13.9c4.6-7.5 2.1-17.3-5.5-21.7z"}}'),...JSON.parse('{"music":{"viewBox":"0 0 512 512","path":"M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"},"search":{"viewBox":"0 0 512 512","path":"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},"heart":{"viewBox":"0 0 512 512","path":"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},"star":{"viewBox":"0 0 576 512","path":"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},"user":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"film":{"viewBox":"0 0 512 512","path":"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"},"th-large":{"viewBox":"0 0 512 512","path":"M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"},"th":{"viewBox":"0 0 512 512","path":"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"},"th-list":{"viewBox":"0 0 512 512","path":"M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"},"check":{"viewBox":"0 0 512 512","path":"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},"times":{"viewBox":"0 0 352 512","path":"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},"search-plus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"search-minus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"power-off":{"viewBox":"0 0 512 512","path":"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},"signal":{"viewBox":"0 0 640 512","path":"M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"},"cog":{"viewBox":"0 0 512 512","path":"M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"},"trash":{"viewBox":"0 0 448 512","path":"M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"},"home":{"viewBox":"0 0 576 512","path":"M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"},"road":{"viewBox":"0 0 576 512","path":"M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"},"download":{"viewBox":"0 0 512 512","path":"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"arrow-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"},"arrow-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"},"inbox":{"viewBox":"0 0 576 512","path":"M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"},"play-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"},"redo":{"viewBox":"0 0 512 512","path":"M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"},"sync-alt":{"viewBox":"0 0 512 512","path":"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},"list-alt":{"viewBox":"0 0 512 512","path":"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},"lock":{"viewBox":"0 0 448 512","path":"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},"flag":{"viewBox":"0 0 512 512","path":"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},"headphones":{"viewBox":"0 0 512 512","path":"M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"},"volume-off":{"viewBox":"0 0 257 512","path":"M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"},"volume-down":{"viewBox":"0 0 384 512","path":"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},"volume-up":{"viewBox":"0 0 576 512","path":"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},"qrcode":{"viewBox":"0 0 448 512","path":"M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"},"barcode":{"viewBox":"0 0 512 512","path":"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"},"tag":{"viewBox":"0 0 512 512","path":"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"tags":{"viewBox":"0 0 640 512","path":"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"},"book":{"viewBox":"0 0 448 512","path":"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"},"bookmark":{"viewBox":"0 0 384 512","path":"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},"print":{"viewBox":"0 0 512 512","path":"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"camera":{"viewBox":"0 0 512 512","path":"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},"font":{"viewBox":"0 0 448 512","path":"M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"},"bold":{"viewBox":"0 0 384 512","path":"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"},"italic":{"viewBox":"0 0 320 512","path":"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"},"text-height":{"viewBox":"0 0 576 512","path":"M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"},"text-width":{"viewBox":"0 0 448 512","path":"M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"},"align-left":{"viewBox":"0 0 448 512","path":"M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-center":{"viewBox":"0 0 448 512","path":"M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-right":{"viewBox":"0 0 448 512","path":"M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"align-justify":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list":{"viewBox":"0 0 512 512","path":"M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"},"outdent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"},"indent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"},"video":{"viewBox":"0 0 576 512","path":"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"},"image":{"viewBox":"0 0 512 512","path":"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},"pencil-alt":{"viewBox":"0 0 512 512","path":"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},"map-marker":{"viewBox":"0 0 384 512","path":"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"},"adjust":{"viewBox":"0 0 512 512","path":"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"},"tint":{"viewBox":"0 0 352 512","path":"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},"step-backward":{"viewBox":"0 0 448 512","path":"M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"},"fast-backward":{"viewBox":"0 0 512 512","path":"M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"},"backward":{"viewBox":"0 0 512 512","path":"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"},"play":{"viewBox":"0 0 448 512","path":"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},"pause":{"viewBox":"0 0 448 512","path":"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},"stop":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"forward":{"viewBox":"0 0 512 512","path":"M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"},"fast-forward":{"viewBox":"0 0 512 512","path":"M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"},"step-forward":{"viewBox":"0 0 448 512","path":"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},"eject":{"viewBox":"0 0 448 512","path":"M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"},"chevron-left":{"viewBox":"0 0 320 512","path":"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},"chevron-right":{"viewBox":"0 0 320 512","path":"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},"plus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"minus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"},"check-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},"question-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},"info-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},"crosshairs":{"viewBox":"0 0 512 512","path":"M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"},"ban":{"viewBox":"0 0 512 512","path":"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"},"arrow-left":{"viewBox":"0 0 448 512","path":"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},"arrow-right":{"viewBox":"0 0 448 512","path":"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},"arrow-up":{"viewBox":"0 0 448 512","path":"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},"arrow-down":{"viewBox":"0 0 448 512","path":"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},"share":{"viewBox":"0 0 512 512","path":"M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"},"expand":{"viewBox":"0 0 448 512","path":"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"},"compress":{"viewBox":"0 0 448 512","path":"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"},"plus":{"viewBox":"0 0 448 512","path":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"minus":{"viewBox":"0 0 448 512","path":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"asterisk":{"viewBox":"0 0 512 512","path":"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"},"exclamation-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"gift":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"},"leaf":{"viewBox":"0 0 576 512","path":"M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"},"fire":{"viewBox":"0 0 384 512","path":"M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"},"eye":{"viewBox":"0 0 576 512","path":"M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"},"eye-slash":{"viewBox":"0 0 576 512","path":"M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"},"exclamation-triangle":{"viewBox":"0 0 576 512","path":"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"plane":{"viewBox":"0 0 576 512","path":"M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"},"calendar":{"viewBox":"0 0 448 512","path":"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},"random":{"viewBox":"0 0 512 512","path":"M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"},"magnet":{"viewBox":"0 0 512 512","path":"M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"},"chevron-up":{"viewBox":"0 0 448 512","path":"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},"chevron-down":{"viewBox":"0 0 448 512","path":"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},"retweet":{"viewBox":"0 0 640 512","path":"M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"},"shopping-cart":{"viewBox":"0 0 576 512","path":"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},"folder-open":{"viewBox":"0 0 576 512","path":"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"camera-retro":{"viewBox":"0 0 512 512","path":"M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"},"key":{"viewBox":"0 0 512 512","path":"M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"},"cogs":{"viewBox":"0 0 640 512","path":"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"},"comments":{"viewBox":"0 0 576 512","path":"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"},"sign-out-alt":{"viewBox":"0 0 512 512","path":"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},"thumbtack":{"viewBox":"0 0 384 512","path":"M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"},"external-link-alt":{"viewBox":"0 0 576 512","path":"M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"},"sign-in-alt":{"viewBox":"0 0 512 512","path":"M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"},"trophy":{"viewBox":"0 0 576 512","path":"M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"},"upload":{"viewBox":"0 0 512 512","path":"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"phone":{"viewBox":"0 0 512 512","path":"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},"phone-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"},"unlock":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"credit-card":{"viewBox":"0 0 576 512","path":"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"},"rss":{"viewBox":"0 0 448 512","path":"M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"},"bullhorn":{"viewBox":"0 0 576 512","path":"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"},"bell":{"viewBox":"0 0 448 512","path":"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},"certificate":{"viewBox":"0 0 512 512","path":"M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"},"hand-point-up":{"viewBox":"0 0 384 512","path":"M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"},"hand-point-down":{"viewBox":"0 0 384 512","path":"M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"globe":{"viewBox":"0 0 496 512","path":"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},"wrench":{"viewBox":"0 0 512 512","path":"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"tasks":{"viewBox":"0 0 512 512","path":"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"},"filter":{"viewBox":"0 0 512 512","path":"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},"briefcase":{"viewBox":"0 0 512 512","path":"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},"arrows-alt":{"viewBox":"0 0 512 512","path":"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"},"users":{"viewBox":"0 0 640 512","path":"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},"link":{"viewBox":"0 0 512 512","path":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"cloud":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},"flask":{"viewBox":"0 0 448 512","path":"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"},"cut":{"viewBox":"0 0 448 512","path":"M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"},"copy":{"viewBox":"0 0 448 512","path":"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},"paperclip":{"viewBox":"0 0 448 512","path":"M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"bars":{"viewBox":"0 0 448 512","path":"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ul":{"viewBox":"0 0 512 512","path":"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ol":{"viewBox":"0 0 512 512","path":"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"strikethrough":{"viewBox":"0 0 512 512","path":"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"},"underline":{"viewBox":"0 0 448 512","path":"M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"},"table":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},"magic":{"viewBox":"0 0 512 512","path":"M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"},"truck":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"},"caret-down":{"viewBox":"0 0 320 512","path":"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},"caret-up":{"viewBox":"0 0 320 512","path":"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"},"caret-left":{"viewBox":"0 0 192 512","path":"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"},"caret-right":{"viewBox":"0 0 192 512","path":"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"},"columns":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"},"sort":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},"sort-down":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},"sort-up":{"viewBox":"0 0 320 512","path":"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},"envelope":{"viewBox":"0 0 512 512","path":"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},"undo":{"viewBox":"0 0 512 512","path":"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},"gavel":{"viewBox":"0 0 512 512","path":"M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"},"tachometer-alt":{"viewBox":"0 0 576 512","path":"M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"bolt":{"viewBox":"0 0 320 512","path":"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},"sitemap":{"viewBox":"0 0 640 512","path":"M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},"umbrella":{"viewBox":"0 0 576 512","path":"M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"},"clipboard":{"viewBox":"0 0 384 512","path":"M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"},"exchange-alt":{"viewBox":"0 0 512 512","path":"M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"cloud-download-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"},"cloud-upload-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"},"user-md":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"},"stethoscope":{"viewBox":"0 0 512 512","path":"M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"},"suitcase":{"viewBox":"0 0 512 512","path":"M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"},"coffee":{"viewBox":"0 0 640 512","path":"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"},"utensils":{"viewBox":"0 0 416 512","path":"M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"},"file-alt":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"ambulance":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"medkit":{"viewBox":"0 0 512 512","path":"M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"},"fighter-jet":{"viewBox":"0 0 640 512","path":"M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"},"beer":{"viewBox":"0 0 448 512","path":"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"},"h-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"},"plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"angle-double-left":{"viewBox":"0 0 448 512","path":"M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"},"angle-double-right":{"viewBox":"0 0 448 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"},"angle-double-up":{"viewBox":"0 0 320 512","path":"M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"},"angle-double-down":{"viewBox":"0 0 320 512","path":"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"},"angle-left":{"viewBox":"0 0 256 512","path":"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"},"angle-right":{"viewBox":"0 0 256 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},"angle-up":{"viewBox":"0 0 320 512","path":"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},"angle-down":{"viewBox":"0 0 320 512","path":"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},"desktop":{"viewBox":"0 0 576 512","path":"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"},"laptop":{"viewBox":"0 0 640 512","path":"M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"},"tablet":{"viewBox":"0 0 448 512","path":"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"mobile":{"viewBox":"0 0 320 512","path":"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"quote-left":{"viewBox":"0 0 512 512","path":"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"quote-right":{"viewBox":"0 0 512 512","path":"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"},"spinner":{"viewBox":"0 0 512 512","path":"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"},"reply":{"viewBox":"0 0 512 512","path":"M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"},"gamepad":{"viewBox":"0 0 640 512","path":"M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"flag-checkered":{"viewBox":"0 0 512 512","path":"M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"},"terminal":{"viewBox":"0 0 640 512","path":"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"},"code":{"viewBox":"0 0 640 512","path":"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"},"reply-all":{"viewBox":"0 0 576 512","path":"M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"},"location-arrow":{"viewBox":"0 0 512 512","path":"M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"},"crop":{"viewBox":"0 0 512 512","path":"M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"},"code-branch":{"viewBox":"0 0 384 512","path":"M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"},"unlink":{"viewBox":"0 0 512 512","path":"M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"},"question":{"viewBox":"0 0 384 512","path":"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"},"info":{"viewBox":"0 0 192 512","path":"M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"},"exclamation":{"viewBox":"0 0 192 512","path":"M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"},"superscript":{"viewBox":"0 0 512 512","path":"M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"},"subscript":{"viewBox":"0 0 512 512","path":"M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"},"eraser":{"viewBox":"0 0 512 512","path":"M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"},"puzzle-piece":{"viewBox":"0 0 576 512","path":"M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"},"microphone":{"viewBox":"0 0 352 512","path":"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},"microphone-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"},"shield-alt":{"viewBox":"0 0 512 512","path":"M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"},"fire-extinguisher":{"viewBox":"0 0 448 512","path":"M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"},"rocket":{"viewBox":"0 0 512 512","path":"M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"chevron-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"},"chevron-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"},"chevron-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"},"chevron-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"},"anchor":{"viewBox":"0 0 576 512","path":"M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"},"unlock-alt":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"},"bullseye":{"viewBox":"0 0 496 512","path":"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"},"ellipsis-h":{"viewBox":"0 0 512 512","path":"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"},"ellipsis-v":{"viewBox":"0 0 192 512","path":"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"},"rss-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"},"ticket-alt":{"viewBox":"0 0 576 512","path":"M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"},"minus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"},"level-up-alt":{"viewBox":"0 0 320 512","path":"M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"},"level-down-alt":{"viewBox":"0 0 320 512","path":"M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"},"pen":{"viewBox":"0 0 512 512","path":"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},"pen-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"},"external-link-square-alt":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"},"share-square":{"viewBox":"0 0 576 512","path":"M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"},"compass":{"viewBox":"0 0 496 512","path":"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},"euro-sign":{"viewBox":"0 0 320 512","path":"M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"},"pound-sign":{"viewBox":"0 0 320 512","path":"M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"},"dollar-sign":{"viewBox":"0 0 288 512","path":"M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"},"rupee-sign":{"viewBox":"0 0 320 512","path":"M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"},"yen-sign":{"viewBox":"0 0 384 512","path":"M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"},"ruble-sign":{"viewBox":"0 0 384 512","path":"M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"},"won-sign":{"viewBox":"0 0 576 512","path":"M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"},"file":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"sort-alpha-down":{"viewBox":"0 0 448 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-alpha-up":{"viewBox":"0 0 448 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-amount-down":{"viewBox":"0 0 512 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-amount-up":{"viewBox":"0 0 512 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-numeric-down":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"},"sort-numeric-up":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"},"long-arrow-alt-down":{"viewBox":"0 0 256 512","path":"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},"long-arrow-alt-up":{"viewBox":"0 0 256 512","path":"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},"long-arrow-alt-left":{"viewBox":"0 0 448 512","path":"M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"},"long-arrow-alt-right":{"viewBox":"0 0 448 512","path":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"},"female":{"viewBox":"0 0 256 512","path":"M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"},"male":{"viewBox":"0 0 192 512","path":"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},"archive":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"},"bug":{"viewBox":"0 0 512 512","path":"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"},"arrow-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"},"arrow-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"},"wheelchair":{"viewBox":"0 0 512 512","path":"M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"},"lira-sign":{"viewBox":"0 0 384 512","path":"M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"},"space-shuttle":{"viewBox":"0 0 640 512","path":"M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"},"envelope-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"},"university":{"viewBox":"0 0 512 512","path":"M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"},"graduation-cap":{"viewBox":"0 0 640 512","path":"M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"},"language":{"viewBox":"0 0 640 512","path":"M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"},"fax":{"viewBox":"0 0 512 512","path":"M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"},"building":{"viewBox":"0 0 448 512","path":"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"},"child":{"viewBox":"0 0 384 512","path":"M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"},"paw":{"viewBox":"0 0 512 512","path":"M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"},"utensil-spoon":{"viewBox":"0 0 512 512","path":"M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"},"cube":{"viewBox":"0 0 512 512","path":"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"},"cubes":{"viewBox":"0 0 512 512","path":"M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"},"recycle":{"viewBox":"0 0 512 512","path":"M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"},"car":{"viewBox":"0 0 512 512","path":"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"},"taxi":{"viewBox":"0 0 512 512","path":"M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"tree":{"viewBox":"0 0 384 512","path":"M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"},"database":{"viewBox":"0 0 448 512","path":"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},"life-ring":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"},"circle-notch":{"viewBox":"0 0 512 512","path":"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},"history":{"viewBox":"0 0 512 512","path":"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},"heading":{"viewBox":"0 0 512 512","path":"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"},"paragraph":{"viewBox":"0 0 448 512","path":"M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"},"sliders-h":{"viewBox":"0 0 512 512","path":"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},"share-alt":{"viewBox":"0 0 448 512","path":"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"},"share-alt-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"},"bomb":{"viewBox":"0 0 512 512","path":"M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"},"tty":{"viewBox":"0 0 512 512","path":"M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"},"binoculars":{"viewBox":"0 0 512 512","path":"M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"},"plug":{"viewBox":"0 0 384 512","path":"M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"},"wifi":{"viewBox":"0 0 640 512","path":"M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"},"calculator":{"viewBox":"0 0 448 512","path":"M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"copyright":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"},"at":{"viewBox":"0 0 512 512","path":"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"},"eye-dropper":{"viewBox":"0 0 512 512","path":"M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"},"paint-brush":{"viewBox":"0 0 512 512","path":"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"},"birthday-cake":{"viewBox":"0 0 448 512","path":"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"},"chart-area":{"viewBox":"0 0 512 512","path":"M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"},"chart-pie":{"viewBox":"0 0 544 512","path":"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},"chart-line":{"viewBox":"0 0 512 512","path":"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},"toggle-off":{"viewBox":"0 0 576 512","path":"M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"},"toggle-on":{"viewBox":"0 0 576 512","path":"M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"},"bicycle":{"viewBox":"0 0 640 512","path":"M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"},"bus":{"viewBox":"0 0 512 512","path":"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"shekel-sign":{"viewBox":"0 0 448 512","path":"M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"},"cart-plus":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"},"cart-arrow-down":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"},"gem":{"viewBox":"0 0 576 512","path":"M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"},"ship":{"viewBox":"0 0 640 512","path":"M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"},"user-secret":{"viewBox":"0 0 448 512","path":"M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"},"motorcycle":{"viewBox":"0 0 640 512","path":"M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"},"street-view":{"viewBox":"0 0 512 512","path":"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},"heartbeat":{"viewBox":"0 0 512 512","path":"M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"},"venus":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"mars":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mercury":{"viewBox":"0 0 288 512","path":"M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"transgender":{"viewBox":"0 0 384 512","path":"M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"transgender-alt":{"viewBox":"0 0 480 512","path":"M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"venus-double":{"viewBox":"0 0 512 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"},"mars-double":{"viewBox":"0 0 512 512","path":"M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"},"venus-mars":{"viewBox":"0 0 576 512","path":"M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke-v":{"viewBox":"0 0 288 512","path":"M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"mars-stroke-h":{"viewBox":"0 0 480 512","path":"M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"neuter":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"genderless":{"viewBox":"0 0 288 512","path":"M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"},"server":{"viewBox":"0 0 512 512","path":"M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"},"user-plus":{"viewBox":"0 0 640 512","path":"M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"user-times":{"viewBox":"0 0 640 512","path":"M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"bed":{"viewBox":"0 0 640 512","path":"M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"},"train":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"},"subway":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"battery-full":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"},"battery-three-quarters":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"},"battery-half":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"},"battery-quarter":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"},"battery-empty":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"},"mouse-pointer":{"viewBox":"0 0 320 512","path":"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"},"i-cursor":{"viewBox":"0 0 256 512","path":"M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"},"object-group":{"viewBox":"0 0 512 512","path":"M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"},"object-ungroup":{"viewBox":"0 0 576 512","path":"M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"},"clone":{"viewBox":"0 0 512 512","path":"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"},"balance-scale":{"viewBox":"0 0 640 512","path":"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"hourglass-start":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"},"hourglass-half":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"},"hourglass-end":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"},"hourglass":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"},"trademark":{"viewBox":"0 0 640 512","path":"M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"},"registered":{"viewBox":"0 0 512 512","path":"M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"},"tv":{"viewBox":"0 0 640 512","path":"M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"},"industry":{"viewBox":"0 0 512 512","path":"M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"},"map-pin":{"viewBox":"0 0 288 512","path":"M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"},"map-signs":{"viewBox":"0 0 512 512","path":"M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"},"map":{"viewBox":"0 0 576 512","path":"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"},"shopping-bag":{"viewBox":"0 0 448 512","path":"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"},"shopping-basket":{"viewBox":"0 0 576 512","path":"M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"},"hashtag":{"viewBox":"0 0 448 512","path":"M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"},"percent":{"viewBox":"0 0 448 512","path":"M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"},"universal-access":{"viewBox":"0 0 512 512","path":"M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"},"blind":{"viewBox":"0 0 384 512","path":"M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"},"audio-description":{"viewBox":"0 0 512 512","path":"M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"},"phone-volume":{"viewBox":"0 0 384 512","path":"M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"},"braille":{"viewBox":"0 0 640 512","path":"M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"},"assistive-listening-systems":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"},"american-sign-language-interpreting":{"viewBox":"0 0 640 512","path":"M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"},"deaf":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"},"sign-language":{"viewBox":"0 0 448 512","path":"M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"},"low-vision":{"viewBox":"0 0 576 512","path":"M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"},"id-badge":{"viewBox":"0 0 384 512","path":"M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"},"thermometer-full":{"viewBox":"0 0 256 512","path":"M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"},"thermometer-three-quarters":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-half":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-quarter":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-empty":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"shower":{"viewBox":"0 0 512 512","path":"M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"},"bath":{"viewBox":"0 0 512 512","path":"M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"podcast":{"viewBox":"0 0 448 512","path":"M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"},"window-maximize":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"},"window-minimize":{"viewBox":"0 0 512 512","path":"M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"},"window-restore":{"viewBox":"0 0 512 512","path":"M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"},"microchip":{"viewBox":"0 0 512 512","path":"M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"}}')},nm=e=>{let{iconName:t,iconData:n,hexFill:r,w:s=25,h:c=25}=e;const d={viewBox:"0 0 34 34",path:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.14453 0.145264C1.93539 0.145264 0.144531 1.93613 0.144531 4.14527V11.5001C0.144531 13.7092 1.93539 15.5001 4.14453 15.5001H11.4994C13.7085 15.5001 15.4994 13.7092 15.4994 11.5001V4.14526C15.4994 1.93612 13.7085 0.145264 11.4994 0.145264H4.14453ZM22.5 0.145264C20.2909 0.145264 18.5 1.93613 18.5 4.14527V11.5001C18.5 13.7092 20.2909 15.5001 22.5 15.5001H29.8548C32.064 15.5001 33.8548 13.7092 33.8548 11.5001V4.14526C33.8548 1.93612 32.064 0.145264 29.8548 0.145264H22.5ZM0.144531 22.5C0.144531 20.2909 1.93539 18.5 4.14453 18.5H11.4994C13.7085 18.5 15.4994 20.2909 15.4994 22.5V29.8548C15.4994 32.064 13.7085 33.8548 11.4994 33.8548H4.14453C1.93539 33.8548 0.144531 32.064 0.144531 29.8548V22.5ZM22.5 18.5C20.2909 18.5 18.5 20.2909 18.5 22.5V29.8548C18.5 32.064 20.2909 33.8548 22.5 33.8548H29.8548C32.064 33.8548 33.8548 32.064 33.8548 29.8548V22.5C33.8548 20.2909 32.064 18.5 29.8548 18.5H22.5Z" fill="#A5ADB3"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:34,svgAttr:{fill:void 0,stroke:void 0}},p=_l.wIcon("",5,0,0,s,c,d);if(n)p.iconData=n;else if(t){const g=F8[t];g&&(p.iconData.viewBox=g.viewBox,p.iconData.path='<path d="'+g.path+'"></path>')}return r&&(p.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(r)}),p},Ig=e=>{const t=r=>{let{name:s="",selected:c=!1}=r;return{data:{name:s,linkCids:"",expanded:!1,selected:c,designExpanded:!1},children:[]}},n=[];for(let r=0;r<e.length;r++){const s=e[r];let c;r===0?c=t({name:s,selected:!0}):c=t({name:s}),n.push(c)}return n},pI=(e,t)=>{const n=c=>{let{name:d="",selected:p=!1}=c;return{data:{name:d,linkCids:"",expanded:!1,selected:p,designExpanded:!1,icon:void 0},children:[]}},r=[],s=[{data:{name:"\u6807\u7B7E1",linkCids:"",expanded:!1,selected:!0,icon:{path:'<path d="M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E2",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E3",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E4",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path>',viewBox:"64 64 896 896"}},children:[]}];for(let c=0;c<e.length;c++){const d=e[c],p=n({name:d,selected:c===0}),g=Math.min(c,s.length-1),y=F8[t[c]];y?p.data.icon={path:'<path d="'+y.path+'"></path>',viewBox:y.viewBox}:p.data.icon=s[g].data.icon,r.push(p)}return r},lf={protoBlue:"#007AFF",fontWhite:"#FFFFFF"},uI=e=>{switch(e){case"input":case"buttons":return[qu,98];case"picker":case"stepper":case"switch":return[qu,60];case"selector":return[qu,100];case"radio":case"checkBox":return[qu,136];case"slider":return[qu,80];case"rate":return[qu,80];default:return[qu,100]}},hI=e=>{let{widget:t,canvasKey:n,canvasH:r}=e,s=0;const c=()=>{const ie=[],he=B2(),xe=r+s;he.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},he.w=358,he.h=46,he.x=16+he.w/2,he.y=xe+41+he.h/2,he.borderRadius=14,ie.push(Mi({hotAttr:he,sup:n}));const Se=Qc(I18N.ChatGPT.enter_text,{h:18,w:326,lineHeight:19});return Se.x=32+Se.w/2,Se.y=xe+55+Se.h/2,Se.richTextV1.textColor="rgba(180,180,180,1)",ie.push(Mi({hotAttr:Se,sup:n})),ie},d=()=>{const ie=_l[fn.x.WDigitalStepper]("");return ie.w=96,ie.x=278+ie.w/2,ie.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F2F2F7")},ie.border.bdrIsVisible=!1,[Mi({hotAttr:ie,sup:n})]},p=()=>{const ie=_l[fn.x.WIOSSwitch]("");return ie.w=32,ie.h=20,ie.x=342+ie.w/2,ie.switch.checkedTrackColor=Xi("#1685FC"),[Mi({hotAttr:ie,sup:n})]},g=ie=>{const he=[],_e=ie.length,De=_e===1?"single":_e===2?"double":"triple",Je=De==="double"?16:De==="triple"?12:0,Ne=De==="single"?342:De==="double"?163:De==="triple"?106:0;for(const[pt,_t]of ie.entries()){let gt={};De==="single"?gt=Ju({w:Ne,h:44}):De==="double"?pt===1?gt=Ju({w:Ne,h:44}):gt=Ju({w:Ne,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"}):De==="triple"&&(gt=Ju({w:Ne,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"})),gt.x=nl(24+pt*(Ne+Je),gt),gt.textV0.text=_t,gt.textV0.fontSize=16,he.push(Mi({hotAttr:gt,sup:n}))}return he},y=ie=>{const he=[],_e=ie.length,De=_e===2?173:_e===3?111:81,Je=32;for(const[Ne,pt]of ie.entries()){const _t=Ne===0?N3(pt,{w:De,h:Je,bold:!0,hexFill:lf.protoBlue,textColor:lf.fontWhite}):N3(pt,{w:De,h:Je,hexFill:"#F2F2F7",textColor:"#000000",bold:!1});_t.x=nl(16+Ne*12+Ne*De,_t),_t.borderRadius=20,he.push(Mi({hotAttr:_t,sup:n}))}return he},w=ie=>{const he=[],xe=_l[fn.x.WSelectionControlRadio]("wSelectionControl"),Se=ie.options.length;xe.h=Se===2?68:Se===3?114:Se===4?160:64,xe.w=143,xe.x=nl(16,xe),xe.optionData=Ig(ie.options),he.push(Mi({hotAttr:xe,sup:n}));const _e=D3({hexBdrColor:"#ebeef2"});_e.x=nl(41,_e);const De=Array(ie.options.length).fill(Mi({hotAttr:_e,sup:n}));return he.push(...De),he},_=ie=>{const he=[],xe=_l[fn.x.WSelectionControlCheckbox]("wSelectionControl"),Se=ie.options.length;xe.h=Se===2?68:Se===3?114:Se===4?160:64,xe.w=143,xe.x=nl(16,xe),xe.optionData=Ig(ie.options),he.push(Mi({hotAttr:xe,sup:n}));const _e=D3({hexBdrColor:"#ebeef2"});_e.x=nl(41,_e);const De=Array(ie.options.length).fill(Mi({hotAttr:_e,sup:n}));return he.push(...De),he},j=()=>{const ie=_l[fn.x.WSlider]("wSlider");return ie.w=358,ie.x=16+ie.w/2,[Mi({hotAttr:ie,sup:n})]},N=(ie,he)=>{const xe=_l.wDropMenu("wSlider");xe.textV0.text=ie,xe.textV0.fontSize=16,xe.optionData=Ig(he).map(_e=>(_e.data.selected=!1,_e)),xe.border.bdrIsVisible=!1;const Se=s+r;return xe.w=372,xe.h=60,xe.x=nl(9,xe),xe.y=Se+xe.h/2,s+=xe.h,[Mi({hotAttr:xe,sup:n})]},Z=ie=>{const he=[],xe={viewBox:"0 0 24 24",path:'<path d="M22 10.0999C22.1 9.59994 21.7 8.99994 21.2 8.99994L15.5 8.19994L12.9 2.99994C12.8 2.79994 12.7 2.69994 12.5 2.59994C12 2.29994 11.4 2.49994 11.1 2.99994L8.6 8.19994L2.9 8.99994C2.6 8.99994 2.4 9.09994 2.3 9.29994C1.9 9.69994 1.9 10.2999 2.3 10.6999L6.4 14.6999L5.4 20.3999C5.4 20.5999 5.4 20.7999 5.5 20.9999C5.8 21.4999 6.4 21.6999 6.9 21.3999L12 18.6999L17.1 21.3999C17.2 21.4999 17.4 21.4999 17.6 21.4999C17.7 21.4999 17.7 21.4999 17.8 21.4999C18.3 21.3999 18.7 20.8999 18.6 20.2999L17.6 14.5999L21.7 10.5999C21.9 10.4999 22 10.2999 22 10.0999Z" fill="#FFC043"></path>',iconName:"\u56FE\u6807",iconColor:"#FFC043",iconSize:24,svgAttr:{fill:void 0,stroke:void 0}};let Se=0;for(let _e=0;_e<ie;_e++){const De=nm({iconData:xe,hexFill:"#FFC043"});De.x=18+Se*6+De.w/2+Se*De.w,Se+=1,he.push(Mi({hotAttr:De,sup:n}))}for(let _e=0;_e<5-ie;_e++){const De=nm({iconData:xe});De.x=18+Se*6+De.w/2+Se*De.w,Se+=1,he.push(Mi({hotAttr:De,sup:n}))}return he},Q=ie=>{let{type:he,baseItemList:xe,title:Se,sup:_e}=ie;const De=[],Je=_l[fn.x.WRect](""),Ne=r+s,[pt,_t]=uI(he);Je.w=pt,Je.h=["radio","checkBox"].includes(he)?xe[0].hotAttr.h+20+41:_t,Je.y=Zs(Ne,Je),Je.x=Je.w/2;const gt=Qc(Se!=null?Se:"",{fontSize:16,bold:!0});gt.w=358,gt.x=nl(16,gt),gt.y=["stepper","switch"].includes(he)?Je.y:Zs(Ne+10,gt),De.push(Mi({hotAttr:gt,sup:_e}));const Ct=xe.map((zt,Dt)=>{if(["stepper","switch"].includes(he))zt.hotAttr.y=gt.y;else if(["radio","checkBox"].includes(he)){const sn=Dt===0?0:Dt===1?25:(Dt-1)*46;zt.hotAttr.y=Zs(Ne+41+sn,zt.hotAttr)}else zt.hotAttr.y=Zs(Ne+41,zt.hotAttr);return zt});return De.push(...Ct),De.push(...xe),s+=Je.h,De},se=[];for(const ie of t.subs){const{title:he,type:xe}=ie;let Se=[];switch(xe){case"input":{Se=Q({type:xe,baseItemList:c(),sup:n,title:he});break}case"picker":{Se=N(he,ie.options);break}case"stepper":{Se=Q({type:xe,baseItemList:d(),sup:n,title:he});break}case"switch":Se=Q({type:xe,baseItemList:p(),sup:n,title:he});break;case"selector":{Se=Q({type:xe,baseItemList:y(ie.options),sup:n,title:he});break}case"radio":{Se=Q({type:xe,baseItemList:w(ie),sup:n,title:he});break}case"checkBox":{Se=Q({type:xe,baseItemList:_(ie),sup:n,title:he});break}case"slider":{Se=Q({type:xe,baseItemList:j(),sup:n,title:he});break}case"rate":{Se=Q({type:xe,baseItemList:Z(ie.rateNum),sup:n,title:he});break}case"buttons":{Se=Q({type:xe,baseItemList:g(ie.buttons),sup:n,title:he});break}default:break}se.push(...Se)}return{height:s,hiList:se}},mI=e=>{let{widget:t,canvasKey:n,canvasH:r}=e;const{images:s}=t,c=_l.wCarousel("");c.w=358,c.x=16+c.w/2,c.y=r+c.h/2,c.h=180,c.borderRadius=14;const d=s.map(p=>({url:D8({url:p,w:c.w,h:c.h}),name:""}));return c.carousel.slides=s.map(p=>({asset:"",linkCids:"",fillType:"fill"})),{height:c.h,hiList:[Mi({hotAttr:{...c,exts:d},sup:n})]}},fI=e=>({search:{viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},more:{viewBox:"0 0 32 32",path:'<path d="M6 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM26 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM16 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2z"></path>',iconName:"riLine-more-line",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[e],gI=e=>({back:{viewBox:"0 0 32 32",path:'<path d="M9.476 16.257c-0.103-0.435 0.015-0.912 0.355-1.251l10.685-10.685c0.521-0.521 1.365-0.521 1.886 0s0.521 1.365 0 1.886l-9.745 9.745 9.746 9.746c0.521 0.521 0.521 1.365 0 1.886s-1.365 0.521-1.886 0l-10.685-10.685c-0.171-0.171-0.296-0.388-0.354-0.632l-0.002-0.009z"></path>',iconName:"ze-arrow-left",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[e],yI=e=>{let{widget:t,canvasH:n,canvasKey:r}=e;const{leftArea:s,title:c,rightArea:d}=t,p=[],g=B2();if(g.h=45,g.y=n+g.h/2,p.push(Mi({hotAttr:g,sup:r})),s.type==="icon"){const y=gI(s.data);if(y){const w=nm({iconData:y,hexFill:lf.protoBlue});w.y=g.y,w.x=nl(16,w),p.push(Mi({hotAttr:w,sup:r}))}}else if(s.type==="text"){const y=Qc(s.data,{textColor:lf.protoBlue,fontSize:16});y.x=nl(16,y),y.y=g.y,p.push(Mi({hotAttr:y,sup:r}))}{const y=Qc(c,{fontSize:18,horizontalAlign:"center"});y.w=130,y.y=g.y,y.x=nl(130,y),p.push(Mi({hotAttr:y,sup:r}))}if(d.type==="icon"){const y=fI(d.data);if(y){const w=nm({iconData:y});w.y=g.y,w.x=nl(349,w),d.data==="search"&&(w.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(lf.protoBlue)}),p.push(Mi({hotAttr:w,sup:r}))}}else if(d.type==="text"){const y=Qc(d.data,{textColor:lf.protoBlue,fontSize:16,horizontalAlign:"right"});y.w=114,y.y=g.y,y.x=nl(260,y),p.push(Mi({hotAttr:y,sup:r}))}return{height:g.h,hiList:p}},vI=e=>{let{canvasKey:t,canvasH:n}=e;const r={viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},s=n,c=[],d=B2(358);d.x=nl(16,d),d.h=45,d.y=Zs(s,d),d.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},d.borderRadius=14,c.push(Mi({hotAttr:d,sup:t}));const p=nm({iconData:r,hexFill:"#666666"});p.x=nl(30,p),p.y=d.y,c.push(Mi({hotAttr:p,sup:t}));const g=Qc(I18N.ChatGPT.search_text,{w:300,textColor:"#666666"});return g.x=nl(62,g),g.y=d.y,c.push(Mi({hotAttr:g,sup:t})),{height:45,hiList:c}},V8=e=>{let{widget:t,canvasKey:n,canvasH:r}=e;const s=_l.wMobileTabBars("");s.w=qu,s.x=s.w/2,s.y=r+s.h/2,s.border.bdrIsVisible=!1;const{names:c,icons:d}=t;return s.optionData=pI(c,d),s.mobileTabBars.fontSize=12,{height:s.h,hiList:[Mi({hotAttr:s,sup:n})]}},xI=e=>{let{widget:t,canvasKey:n,canvasH:r}=e;const s=_l.wTabs(""),{names:c}=t;return s.w=c.length===2?146:358,s.x=nl(16,s),s.y=r+s.h/2,s.tabs.checkedFontSize=16,s.tabs.checkedBoldType=1,s.optionData=Ig(c),{height:s.h,hiList:[Mi({hotAttr:s,sup:n})]}},bI=e=>{let{widget:t,canvasKey:n,canvasH:r}=e;const s=[],c=B2(),{names:d,icons:p}=t;c.h=d.length<7?98:196,c.y=Zs(r,c);const g=d.length,y=()=>[4,8].includes(g)?69:[5,10].includes(g)?43:31,w=36,_=36,j=18,N=y(),Z=Math.floor(c.w/(N+w))+1,Q=Math.ceil(g/Z),se=r,ie=0;for(let he=0;he<Q;he++){const xe=se+98*he;for(let Se=0;Se<Z;Se++){const _e=he*Q+Se,De=nm({w,h:_,iconName:p[_e]});De.x=ie+18+Se*N+(Se+.5)*De.w,De.y=Zs(xe+10,De),s.push(Mi({hotAttr:De,sup:n}));const Je=Qc(d[_e]);Je.x=De.x,Je.h=j,Je.w=66,Je.y=Zs(xe+56,Je),Je.richTextV1.horizontalAlign="center",s.push(Mi({hotAttr:Je,sup:n}))}}return{height:c.h,hiList:s}},CI=(e,t)=>e==="icon"||e==="avatar"?{xOffset:86,yOffset:8,w:t==="button"?208:["text","none"].includes(t)?288:t==="icon"?260:0}:e==="image"?{xOffset:116,yOffset:17,w:t==="button"?178:["text","none"].includes(t)?248:t==="icon"?230:0}:e==="none"?{xOffset:16,yOffset:8,w:t==="button"?208:["text","none"].includes(t)?358:t==="icon"?260:0}:{xOffset:0,yOffset:0,w:0},wI=e=>{let{widget:t,canvasH:n,canvasKey:r}=e;const{LeftAreaStyle:s,RightAreaStyle:c,title:d,list:p}=t,g=se=>{let ie={x:0,y:0,w:0,h:0};if(s==="icon")return ie=nm({iconName:se.keyword,w:36,h:36}),ie;if(s==="avatar"){const xe="/mb-static/2305/avatar/"+Math.floor(Math.random()*20+0)+".png";ie=tm({w:50,h:50,image:xe,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:26})}else s==="image"&&(ie=tm({w:80,h:80,image:se.image}));return ie},y=se=>{if(c!=="none"){if(c==="button"){const ie=Ju({hexFill:"#F2F2F7",hexFontColor:"#000000"});return ie.textV0.text=rf(se.keyword),ie}else if(c==="text"){const ie=Qc(se.keyword,{w:114,h:17,textColor:"#666666",fontSize:12});return ie.richTextV1.horizontalAlign="right",ie}else if(c==="icon")return nm({iconName:se.keyword,w:24,h:24})}},w=[];let _=0;const j=B2(),N=n,Z=0,Q=Qc(d,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});Q.y=Zs(N,Q),Q.x=nl(Z+16,Q),_+=Q.h,w.push(Mi({hotAttr:Q,sup:r}));for(const se of p){const{w:ie,xOffset:he,yOffset:xe}=CI(s,c),Se=N+_,_e=B2();if(_e.h=s==="image"?92:74,_e.y=Zs(Se,j),s!=="none"){const Ne=g(se.leftArea);s==="icon"||s==="avatar"?(Ne.x=nl(Z+16,Ne),Ne.y=Zs(Se+12,Ne)):s==="image"&&(Ne.x=nl(Z+16,Ne),Ne.y=Zs(Se+6,Ne)),w.push(Mi({hotAttr:Ne,sup:r}))}const De=Qc(se.title,{w:ie,fontSize:14,bold:!0});De.x=nl(he,De),De.y=Zs(Se+xe,De),w.push(Mi({hotAttr:De,sup:r}));const Je=Qc(se.text,{w:ie,textColor:"#666666",fontSize:12});if(Je.x=nl(he,Je),Je.y=Zs(Se+xe+14+10,Je),w.push(Mi({hotAttr:Je,sup:r})),c!=="none"){const Ne=y(se.rightArea);c==="text"?(Ne.x=nl(Z+260,Ne),Ne.y=Zs(Se+xe,Ne)):c==="button"?(Ne.x=nl(Z+314,Ne),Ne.y=Zs(Se+25,Ne)):c==="icon"&&(Ne.x=nl(Z+350,Ne),Ne.y=Zs(Se+25,Ne)),w.push(Mi({hotAttr:Ne,sup:r}))}_+=_e.h}return{height:_,hiList:w}},SI=e=>{let{canvasH:t,canvasKey:n,widget:r}=e;const s=[],c=t,d=0,p=B2();p.h=306,p.y=Zs(c,p),s.push(Mi({hotAttr:p,sup:n}));const{title:g,text:y,buttons:w,image:_}=r,j=Qc(g,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});j.x=nl(d+16,j),j.y=Zs(c,j),s.push(Mi({hotAttr:j,sup:n}));const N=tm({w:358,h:180,image:_});N.x=nl(d+16,N),N.y=Zs(c+44,N),s.push(Mi({hotAttr:N,sup:n}));const Z=Qc(y,{w:358,h:34,fontSize:12,textColor:"#666666",lineHeight:17,paraSpacing:0});Z.x=nl(d+16,Z),Z.y=Zs(c+234,Z),s.push(Mi({hotAttr:Z,sup:n}));const Q=80,se=28,ie=10;for(let he=0;he<w.length;he++){const xe=w[he],Se=Ju({w:Q,h:se,hexFill:"#F2F2F7",hexFontColor:"#000000"});Se.x=d+16+he*ie+(he+.5)*Q,Se.y=Zs(c+278,Se),Se.textV0.text=rf(xe),s.push(Mi({hotAttr:Se,sup:n}))}return{height:p.h,hiList:s}},AI=e=>{let{canvasH:t,canvasKey:n,widget:r}=e;const{layout:s,title:c,cards:d}=r,p=()=>s==="vertical"?4:["horizontal","grid","waterfall"].includes(s)?1:0,g=60,y=170,w=170,_=140,j=140,N=[];let Z=0;const Q=B2();Q.y=t+Q.h/2,N.push(Mi({hotAttr:Q,sup:n}));const se=t,ie=Qc(c,{isVCenter:!0,bold:!0,fontSize:16});ie.w=358,ie.h=44,ie.x=nl(16,ie),ie.y=Zs(se,ie),Z+=ie.h,N.push(Mi({hotAttr:ie,sup:n}));const he=p();if(s==="horizontal"){let xe=0;const Se=10;for(const _e of d){const De=B2();De.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},De.borderRadius=14,De.h=241,De.w=j;const Je=xe*De.w+(xe+1)*16,Ne=se+Z;De.y=Ne+De.h/2,De.x=Je+De.w/2,N.push(Mi({hotAttr:De,sup:n}));const pt=Qc(_e.title,{w:124,h:20,fontSize:14,bold:!0});pt.x=nl(Je+8,pt),pt.y=Zs(Ne+148,pt),N.push(Mi({hotAttr:pt,sup:n}));const _t=Qc(_e.subTitle,{w:124,h:20,textColor:"#666666",fontSize:12});_t.x=nl(Je+8,_t),_t.y=Zs(Ne+167,_t),N.push(Mi({hotAttr:_t,sup:n}));const gt=Qc(_e.content,{w:124,h:20,textColor:"#666666",fontSize:12});gt.x=nl(Je+8,gt),gt.y=Zs(Ne+186,gt),N.push(Mi({hotAttr:gt,sup:n}));const Ct=tm({w:De.w,h:140,image:_e.image});Ct.x=nl(Je,Ct),Ct.y=Zs(Ne,Ct),N.push(Mi({hotAttr:Ct,sup:n}));for(let zt=0;zt<Math.min(he,_e.buttons.length);zt++){const Dt=_e.buttons[zt],sn=Ju({});sn.x=Je+8+zt*Se+(zt+.5)*g,sn.y=Zs(Ne+209,sn),sn.textV0.text=rf(Dt),N.push(Mi({hotAttr:sn,sup:n}))}xe+=1}Z+=271}else if(s==="vertical")for(const xe of d){const Se=se+Z,_e=16,De=B2();De.borderRadius=14,De.w=358,De.h=180,De.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},De.y=Zs(Se,De),N.push(Mi({hotAttr:De,sup:n}));const Je=Qc(xe.title,{w:198,h:20,fontSize:14,bold:!0});Je.x=nl(_e+16,Je),Je.y=Zs(Se+26,Je),N.push(Mi({hotAttr:Je,sup:n}));const Ne=Qc(xe.subTitle,{w:198,h:20,textColor:"#666666",fontSize:12});Ne.x=nl(_e+16,Ne),Ne.y=Zs(Se+45,Ne),N.push(Mi({hotAttr:Ne,sup:n}));const pt=Qc(xe.content,{w:198,h:52,textColor:"#666666",fontSize:12,lineHeight:17,paraSpacing:0});pt.x=nl(_e+16,pt),pt.y=Zs(Se+68,pt),N.push(Mi({hotAttr:pt,sup:n}));const _t=tm({w:110,h:110,image:xe.image});_t.x=nl(_e+230,_t),_t.y=Zs(Se+16,_t),N.push(Mi({hotAttr:_t,sup:n}));const gt=15;for(let Ct=0;Ct<Math.min(he,xe.buttons.length);Ct++){const zt=xe.buttons[Ct],Dt=Ju({});Dt.x=_e+16+Ct*gt+(Ct+.5)*g,Dt.y=Zs(Se+136,Dt),Dt.textV0.text=rf(zt),N.push(Mi({hotAttr:Dt,sup:n}))}Z+=De.h+14}else if(s==="waterfall"){let xe=0,Se=ie.h,_e=ie.h;for(const[De,Je]of d.entries()){const Ne=De%2===0?"even":"odd",pt=Ne==="odd"?se+_e:se+Se,_t=xe*w+(xe+1)*16,gt=B2();gt.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},gt.borderRadius=14,gt.h=De===1?241:271,gt.w=w,gt.y=Zs(pt,gt),gt.x=nl(_t,gt),N.push(Mi({hotAttr:gt,sup:n}));const Ct=Qc(Je.title,{w:154,h:20,fontSize:14,bold:!0});Ct.y=Zs(pt+(De===1?148:178),Ct),Ct.x=_t+8+Ct.w/2,N.push(Mi({hotAttr:Ct,sup:n}));const zt=Qc(Je.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});zt.y=Zs(pt+(De===1?167:197),zt),zt.x=nl(_t+8,zt),N.push(Mi({hotAttr:zt,sup:n}));const Dt=Qc(Je.content,{w:154,h:20,textColor:"#666666",fontSize:12});Dt.y=Zs(pt+46+(De===1?140:170),Dt),Dt.x=_t+8+Dt.w/2,N.push(Mi({hotAttr:Dt,sup:n}));const sn=tm({w:gt.w,h:y,image:Je.image});De===1&&(sn.w=w,sn.h=_),sn.x=nl(_t,sn),sn.y=Zs(pt,sn),N.push(Mi({hotAttr:sn,sup:n}));for(let Rn=0;Rn<Math.min(he,Je.buttons.length);Rn++){const On=Je.buttons[Rn],Lo=Ju({});Lo.x=_t+8+Rn*10+(Rn+.5)*g,Lo.y=Zs(pt+(De===1?209:239),Lo),Lo.textV0.text=rf(On),N.push(Mi({hotAttr:Lo,sup:n}))}xe+=1,Ne==="even"?Se+=gt.h+14:_e+=gt.h+14,xe===2&&(xe=0)}Z+=Se-ie.h}else if(s==="grid"){let Se=0,_e=ie.h,De=ie.h;for(const[Je,Ne]of d.entries()){const pt=Je%2===0?"even":"odd",_t=pt==="odd"?se+De:se+_e,gt=B2();gt.borderRadius=14;const Ct=8;gt.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#F4F6F9")},gt.h=271,gt.w=w;const zt=Se*gt.w+(Se+1)*16;gt.x=nl(zt,gt),gt.y=Zs(_t,gt),N.push(Mi({hotAttr:gt,sup:n}));const Dt=Qc(Ne.title,{w:154,h:20,fontSize:14,bold:!0});Dt.x=nl(zt+Ct,Dt),Dt.y=Zs(_t+178,Dt),N.push(Mi({hotAttr:Dt,sup:n}));const sn=Qc(Ne.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});sn.x=nl(zt+8,sn),sn.y=Zs(_t+197,sn),N.push(Mi({hotAttr:sn,sup:n}));const Rn=Qc(Ne.content,{w:154,h:20,textColor:"#666666",fontSize:12});Rn.x=nl(zt+Ct,Rn),Rn.y=Zs(_t+216,Rn),N.push(Mi({hotAttr:Rn,sup:n}));const On=tm({w:gt.w,h:170,image:Ne.image});On.x=nl(zt,On),On.y=Zs(_t,On),N.push(Mi({hotAttr:On,sup:n}));for(let Lo=0;Lo<Math.min(he,Ne.buttons.length);Lo++){const Yo=Ne.buttons[Lo],Cn=Ju({});Cn.x=zt+Ct+Lo*10+(Lo+.5)*g,Cn.y=Zs(_t+239,Cn),Cn.textV0.text=rf(Yo),N.push(Mi({hotAttr:Cn,sup:n}))}Se+=1,pt==="even"?_e+=gt.h+14:De+=gt.h+14,Se===2&&(Se=0)}Z+=_e-ie.h}return N[0].hotAttr.h=Z,N[0].hotAttr.y=t+Z/2,{height:Z,hiList:N}},qu=390,z8=(e,t)=>{let{pageKey:n}=t;const r=[],s=_l[fn.x.Canvas]("page");s.device="iphone_14_pro",s.w=qu;let c=0;const d=Mi({prefix:"rc",hotAttr:s,sup:n}),p=d.key,g=_l.wIphoneXSB("");g.x=g.w/2,g.y=g.h/2,g.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi("#FFFFFFF0")},r.push(Mi({hotAttr:g,sup:p})),c+=g.h;const y=[];for(const[w,_]of e.page.entries()){if(_===null)continue;if(_.type==="tabBar"){y.push(_);continue}let j={height:0,hiList:[]};switch(_.type){case"form":j=hI({widget:_,canvasKey:p,canvasH:c});break;case"searchBar":j=vI({canvasKey:p,canvasH:c});break;case"swiper":j=mI({widget:_,canvasKey:p,canvasH:c});break;case"tabs":j=xI({widget:_,canvasKey:p,canvasH:c});break;case"iconGrid":j=bI({widget:_,canvasKey:p,canvasH:c});break;case"listView":j=wI({widget:_,canvasKey:p,canvasH:c});break;case"infoView":j=SI({widget:_,canvasKey:p,canvasH:c});break;case"cardGroupView":j=AI({widget:_,canvasKey:p,canvasH:c});break;case"navBar":j=yI({widget:_,canvasKey:p,canvasH:c});break;default:break}const{height:N,hiList:Z}=j;c+=N,r.push(...Z),w!==e.page.length&&(c+=14)}for(const w of y){if(w.type!=="tabBar")continue;const _=c+26+50;if(_<844){const{hiList:j}=V8({widget:w,canvasKey:p,canvasH:c});j[0].hotAttr.y=Zs(794,j[0].hotAttr),r.push(...j)}else if(_>=844){c+=26;const{height:j,hiList:N}=V8({widget:w,canvasKey:p,canvasH:c});c+=j,r.push(...N)}}return s.h=Math.max(c,844),y.length===0&&(s.h+=26),[d,...r]},MI=JSON.parse('{"iphone_14_pro_max":{"device":"iphone","model":"iphone_14_pro_max"},"iphone_14_pro":{"device":"iphone","model":"iphone_14_pro"},"iphone_14_plus":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro_max":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro":{"device":"iphone","model":"iphone_13_pro"},"iphone_11_pro":{"device":"iphone","model":"iphone_11_pro"},"iphone_11_pro_max":{"device":"iphone","model":"iphone_11_pro_max"},"iphone_8_plus":{"device":"iphone","model":"iphone_8_plus"},"huawei_p40":{"device":"android","model":"Huawei_p40"},"google_pixel_2":{"device":"android","model":"google_pixel_2"},"google_pixel_2_xl":{"device":"android","model":"google_pixel_2_xl"},"ipad_mini":{"device":"ipad","model":"ipad_mini"},"ipad_pro_11":{"device":"ipad","model":"ipad_pro_11"},"ipad_pro_12":{"device":"ipad","model":"ipad_pro_12"},"\u7F51\u9875":{"device":"web","model":"desktop"},"\u667A\u80FD\u7535\u89C6":{"device":"web","model":"smart_tv"},"mac_book_pro":{"device":"web","model":"mac_book_pro"},"apple_watch_38mm":{"device":"apple_watch","model":"apple_watch_38"},"apple_watch_40mm":{"device":"apple_watch","model":"apple_watch_40"},"apple_watch_42mm":{"device":"apple_watch","model":"apple_watch_42"},"\u8F66\u8F7D\u4E2D\u63A7":{"device":"smart_car","model":"car_play"}}');var kI=i(94433);const EI=e=>{try{var t;if(!e||Object.keys(e).length===0)return null;const{position:n,model:r,"page-name":s,"fill-color":c,zIndex:d,order:p}=e,g=q1(n),{x:y,y:w}=g||{x:0,y:0},_=_l[fn.x.Canvas]("page"),j=MI[r];if(!j)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",e),null;const{device:N,model:Z}=j,Q=(t=kI[N])==null?void 0:t[Z];if(!Q)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",Q),null;const{height:se,width:ie}=Q;_.w=ie,_.h=se,_.device=Z,s&&(_.name=s),d&&(_.zIndex=d),p&&(_.order=p),c&&(_.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(c)});const{x:he,y:xe}=$1({w:ie,h:se},{x:y,y:w});return _.x=he,_.y=xe,_}catch(n){return null}},II=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,"page-name":r,"fill-color":s,zIndex:c,order:d}=e,p=Tp(n);if(!p||p.w===0||p.h===0)return null;const g=q1(t),{x:y,y:w}=g||{x:0,y:0},{w:_,h:j}=p,N=_l[fn.x.Canvas]("page");N.w=_,N.h=j,N.device="customize",r&&(N.name=r),c&&(N.zIndex=c),d&&(N.order=d),s&&(N.fill={fillIsVisible:!0,fill:"solid",solidColor:Xi(s)});const{x:Z,y:Q}=$1({w:_,h:j},{x:y,y:w});return N.x=Z,N.y=Q,N}catch(t){return console.error("genPageCustomModel error",t),null}},TI=e=>{try{if(!e||Object.keys(e).length===0)return null;const{"text-content":t}=e,n=t.split(/[(\r\n)\r\n]+/),r=_l.wRichText("");return r.textV1.blocks=n.length>0?L3(n):sf(t),r}catch(t){return console.log("### genPrd error:",t),null}},_I=(e,t)=>{try{if(!e||Object.keys(e).length===0)return null;const{textList:n}=e;if(n.length===0)return null;const{selectedTrees:r,tableInfoData:s,onUpdateWidget:c}=t;m8({textList:n,selectedTrees:r,tableInfoData:s,onUpdateWidget:c})}catch(n){return null}};var PI=i(44174);const W8="AISelectionKey",LI=e=>{const t=[];if(e){const n=e.getSelection(),{anchorKey:r,focusKey:s,anchorOffset:c,focusOffset:d}=n,p=e.getCurrentContent(),g=p.getBlockMap(),y=[];let w=r,_=s,j=c,N=d;if(r===s&&(j=Math.min(c,d),N=Math.max(c,d)),r>s&&(w=s,_=r,j=d,N=c),w===_){const Z=p.getBlockForKey(w);y.push(Z.text.slice(j,N)),t.push(w)}else{let Z=!1;for(const[Q,se]of g){const ie=se.text;if(Q===w){Z=!0,y.push(ie.slice(j)),t.push(Q);continue}if(Z){if(t.push(Q),Q===_){y.push(ie.slice(0,N));break}y.push(ie)}}}return{selectionBlockKeys:t,selectionText:y.join("")}}return{selectionBlockKeys:t,selectionText:""}},NI=async(e,t)=>{const{selectedTrees:n,editingCid:r,richTextEditorState:s,semanticValue:c,user:d,org:p,project:g,actions:y}=t;let w=null,_=!1,j=null;const N=function(Q,se){return se===void 0&&(se=[]),{status:Q,hotItems:se}};try{if(!e||Object.keys(e).length===0)return{status:$l.NotSupport};const Q=n.filter(_t=>k8.includes(_t.type));if(!Q||Q.length===0)return{status:$l.NotFindEditObject};if(Q.length>1)return{status:$l.NotSupportMultiple};const se=Q[0],{widget:{textV1:{blocks:ie}}}=se;let he=[];for(const[_t,gt]of Object.entries(ie))gt&&gt.type!=="atomic"&&gt.text&&he.push({key:_t,value:gt.text});he.sort((_t,gt)=>_t.key<gt.key?-1:_t.key>gt.key?1:0);let xe=!1,Se=[];if(s&&r===se.key){const{selectionBlockKeys:_t,selectionText:gt}=LI(s);Se=_t,gt&&(he=[{key:W8,value:gt}],xe=!0)}if(he.length===0)return N($l.NotFindEditObject);if(he.map(_t=>_t.value).join("").length>500)return N($l.TextOverLimit);const _e={prompt:c,userInput:JSON.stringify(he),type:e.type||"edittext",task_id:(0,l0.AM)({user:d,project:g}),workspace:(p==null?void 0:p.cid)||"me"};w=se,_=se.isLock,y.aiPreTextGenerate({key:se.key,currentIsLock:_});const De=await(0,c2.Ni)(_e),Je=_t=>{const gt=_?[]:[{...j,hotAttr:{...j.hotAttr,isLock:!1}}];return N(_t,gt)};if(j=y.getHotItem(se.key),!j)return Je($l.NotSupport);const Ne=Iu()(j);if(xe&&r!==se.key)return Je($l.HandleExceptions);if(!De||De.length===0)return Je($l.NotSupport);let pt={};if(xe){var Z;const _t=(Z=De.find(Dt=>Dt.key===W8))==null?void 0:Z.value,Ct=y.getNewRichTextEditorState(s,_t).getCurrentContent(),zt=Array.from(Ct.getBlockMap().keys());Object.keys(ie).forEach(Dt=>{if(zt.indexOf(Dt)>=0){const sn=ie[Dt];sn.text=Ct.getBlockForKey(Dt).text,Se.includes(Dt)&&(sn.inlineStyleRanges=[],sn.entityRanges=[]),pt[Dt]=sn}})}else pt={...ie},De.forEach(_t=>{let{key:gt,value:Ct}=_t;pt[gt]&&(pt[gt].inlineStyleRanges=[],pt[gt].entityRanges=[],pt[gt].text=Ct)});return xe&&y.updateEditingCid({item:{cid:""}}),Ne.hotAttr.isLock=!!_,Ne.hotAttr.textV1.blocks=Iu()(pt),{status:$l.Success,hotItems:[Ne]}}catch(Q){const se=w&&!_?[{...j,hotAttr:{...j.hotAttr,isLock:!1}}]:[];return N($l.NotSupport,se)}},jI=async(e,t)=>{let{...n}=t;try{if(!e||Object.keys(e).length===0)return{status:$l.HandleExceptions};const{widgets:r}=e;let s=[];return r.forEach(c=>{const{hotItems:d}=H8(c,n)||{};d&&(s=s.concat(d))}),!s||s.length===0?{status:$l.NotSupport}:{status:$l.Success,hotItems:s}}catch(r){return console.error("genComponent error:",r),{status:$l.HandleExceptions}}},H8=(e,t)=>{let{pageKey:n,selectedTrees:r,tableInfoData:s,selectedCarouseImage:c,canNotCreateCanvas:d,onUpdateWidget:p}=t;try{if(!e||typeof e!="object")return console.error("genSingleWidget error: \u6570\u636E\u7C7B\u578B\u9519\u8BEF"),{hotItems:[],success:!0};const{type:g}=e,y=_=>{const j=[];return _.forEach(N=>{if(N){const Z=Mi({hotAttr:N,sup:n});j.push({...Z,hotAttr:{...Z.hotAttr,cid:Z.key}})}}),{hotItems:j,success:j.length>0}},w=_=>(_==null?void 0:_.length)>0;switch(g){case gl.text:{const _=GE(e);return y(_||[])}case gl.image:{const _=WE(e);return y(_||[])}case gl.rectangle:{const _=FE(e);return y(_||[])}case gl.oval:{const _=KE(e);return y(_||[])}case gl.line:{const _=QE(e);return y(_?[_]:[])}case gl.button:{const _=JE(e);return y(_||[])}case gl.iphoneXSB:{const _=eI(e);return y(_?[_]:[])}case gl.arrow:{const _=tI(e);return y(_?[_]:[])}case gl.mTextInput:{const _=oI(e);return y(_?[_]:[])}case gl.mTextarea:{const _=aI(e);return y(_?[_]:[])}case gl.dropList:{const _=rI(e);return y(_?[_]:[])}case gl.dropMenu:{const _=sI(e);return y(_?[_]:[])}case gl.radioSelection:case gl.checkbox:{const _=g===gl.checkbox,j=cI(e,_);return y(j?[j]:[])}case gl.table:{const _=N8(e,{pageKey:n});return{hotItems:_,success:w(_)}}case gl.genProto:{if(d)return{status:$l.NotSupportCanvas,hotItems:[],success:!1};const _=z8(e.data,{pageKey:n});return{hotItems:_,success:w(_)}}case gl.mind:{const _=L8(e,{pageKey:n});return{hotItems:_,success:w(_)}}case gl.flow:{const _=_8(e,{pageKey:n});return{hotItems:_,success:w(_)}}case gl.chart:{const _=E8(e,{pageKey:n});return{hotItems:_,success:w(_)}}case gl.customPage:{if(d)return{status:$l.NotSupportCanvas,hotItems:[],success:!1};const{pages:_}=e,j=[];return _&&_.length>0&&_.forEach(N=>{const Z=II(N);Z&&j.push(Z)}),y(j)}case gl.modelPage:{if(d)return{status:$l.NotSupportCanvas,hotItems:[],success:!1};const{pages:_}=e,j=[];return _&&_.length>0&&_.forEach(N=>{const Z=EI(N);Z&&j.push(Z)}),y(j)}case gl.genPrd:{const _=TI(e);return y(_?[_]:[])}case gl.textFill:{_I(e,{selectedTrees:r,tableInfoData:s,onUpdateWidget:p});break}case gl.editImage:(0,PI.Q)(e,{selectedTrees:r,selectedCarouseImage:c,onUpdateWidget:p});break;default:return{hotItems:[],success:!1}}return{hotItems:[],success:!0}}catch(g){return console.log("genSigleWidget error:",g),{hotItems:[],success:!1}}},DI=async(e,t)=>{let{pageKey:n,selectedTrees:r,tableInfoData:s,selectedCarouseImage:c,editingCid:d,richTextEditorState:p,semanticValue:g,user:y,org:w,project:_,canNotCreateCanvas:j,actions:N}=t,Z=null;try{if(!e||e.length===0)return{status:$l.HandleExceptions,semanticType:Z};const Q=e[0],{type:se,data:ie}=Q,{widget:he}=ie||{};switch(Z=se,Z){case gl.editText:case gl.textTranslate:case gl.textPolish:case gl.textStyle:case gl.textExpand:case gl.textShort:{const{status:xe,hotItems:Se=[]}=await NI(Q,{selectedTrees:r,editingCid:d,richTextEditorState:p,semanticValue:g,user:y,org:w,project:_,actions:N});return{status:xe,semanticType:Z,hotItems:Se}}case gl.editStyle:{const{status:xe,hotItems:Se=[]}=AE(he,{selectedTrees:r,editingCid:d,updateEditingCid:N.updateEditingCid,getHotItem:N.getHotItem});return{status:xe,semanticType:Z,hotItems:Se}}case gl.genComponent:{const{status:xe,hotItems:Se=[]}=await jI(he,{pageKey:n,selectedTrees:r,tableInfoData:s,selectedCarouseImage:c,canNotCreateCanvas:j,onUpdateWidget:N.updateWidget});return{status:xe,semanticType:Z,hotItems:Se}}default:{const xe=[gl.genProto,gl.modelPage,gl.customPage].includes(Z),Se=(he==null?void 0:he.type)||Z;Z===gl.genPrd&&(he.type=gl.genPrd);const{hotItems:_e,success:De,status:Je}=H8(xe?Q:he,{pageKey:n,selectedTrees:r,tableInfoData:s,selectedCarouseImage:c,canNotCreateCanvas:j,onUpdateWidget:N.updateWidget})||{};return De?{status:$l.Success,hotItems:_e,semanticType:Z,widgetType:Se}:{status:Je||$l.HandleExceptions,semanticType:Z}}}}catch(Q){return console.error("genSemanticData error:",Q),{status:$l.HandleExceptions,semanticType:Z}}};var _p=i(32709);const G8=e=>{const{currentAIComponent:t,semanticValue:n="",user:r,org:s,project:c,onUpdateAIUsedTimes:d,onUpdateAIPoints:p,actions:g}=e,{updateWidget:y,aiGenerate:w,updateAIState:_,notice:j,track:N,getChangingData:Z}=g,Q=(ie,he,xe)=>{const{notice:Se,svgName:_e}=P3(ie);j({text:Se,svgName:_e})};return{handleConvertComponent:async ie=>{const he=s?s.cid:"me",xe=(0,l0.AM)({user:r,project:c});_p.Hy[t==null?void 0:t.type]&&(ie!=null&&ie.length)&&N("proto_ai_use",{ai_func:_p.Hy[t==null?void 0:t.type],ai_input:ie});const Se=async()=>{if(!ENV.IS_WONDER_SHARE)return!1;const{limited:De}=await(0,c2.GM)({user:r,org:s,onUpdateAIUsedTimes:d});return De},_e=performance.now();try{switch(_({aiGenerating:!0}),t.type){case _p.SR.Page:{const{result:De,status:Je}=await(0,c2.L4)({prompt:ie,workspace:he,taskID:xe,user:r,org:s,updateAIState:_,notice:j}),{pageKey:Ne,canNotCreateCanvas:pt}=Z();if(pt){const{notice:gt,svgName:Ct}=P3($l.NotSupportCanvas);j({text:gt,svgName:Ct});return}const _t=z8(De,{pageKey:Ne});w({type:t.type,status:Je,hotItems:_t});break}case _p.SR.PageV9:{const{pageKey:De,canNotCreateCanvas:Je}=Z();if(Je){const{notice:_t,svgName:gt}=P3($l.NotSupportCanvas);j({text:_t,svgName:gt});return}const{res:Ne,status:pt}=await(0,c2.ri)({message:ie});if(pt===200){const{device:_t,size:gt}=Ne.deviceInfo,{w:Ct,h:zt}=gt,Dt=_t==="\u624B\u673A"?"iphone_15_pro":"mac_book_pro",sn=De||sdkStore.getHotItem("B@main").sub[0],Rn=(0,hr.cF)("rbp"),On=(0,I3.Nc)("\u9875\u9762",5,0,0,Ct,zt,Dt);Ne.planObj.hotItemList[0].sup=Rn,Ne.planObj.hotItemList[0].hotAttr.x=0,Ne.planObj.hotItemList[0].hotAttr.y=0;const Lo=Ne.planObj.hotItemList,Cn=[{key:Rn,hotAttr:On,sup:sn,sub:Lo},...Lo];await w({type:_p.SR.PageV9,status:pt,hotItems:Cn})}else throw new Error("AIV9 \u751F\u6210\u5931\u8D25");break}case _p.SR.Flow:case _p.SR.Mind:case _p.SR.Table:case _p.SR.Chart:{const{result:De,status:Je}=await(0,c2.AP)({prompt:ie,type:t.type,workspace:he,taskID:xe,user:r,org:s,updateAIState:_,notice:j}),{pageKey:Ne}=Z(),pt=UE(De.widget,{pageKey:Ne});w({type:t.type,status:Je,hotItems:pt});break}case _p.SR.AutoFill:{const{selectedTrees:De,tableInfoData:Je}=Z(),{success:Ne,status:pt}=await h8({prompt:ie,user:r,org:s,project:c,selectedTrees:De,tableInfoData:Je,onUpdateWidget:y,updateAIState:_,notice:j});return[]}case _p.SR.Semantic:{const{selectedTrees:De,selectedCarouseImage:Je}=Z(),Ne=await(0,c2.Kd)({prompt:ie,type:"widget",workspace:he,task_id:xe},{selectedTrees:De,selectedCarouseImage:Je,user:r,org:s,updateAIState:_,notice:j}),{result:pt}=Ne;let{status:_t}=Ne,gt=null;if(!pt||pt.length===0){Q(_t,gt,_e),_({aiGenerating:!1});return}if(pt&&pt.length>0){const{pageKey:Ct,selectedTrees:zt,selectedCarouseImage:Dt,tableInfoData:sn,editingCid:Rn,richTextEditorState:On,canNotCreateCanvas:Lo}=Z(),{status:Yo,semanticType:Cn,hotItems:hn=[],widgetType:oa}=await DI(pt,{pageKey:Ct,selectedTrees:zt,tableInfoData:sn,selectedCarouseImage:Dt,editingCid:Rn,richTextEditorState:On,semanticValue:n,user:r,org:s,project:c,canNotCreateCanvas:Lo,actions:g});gt=Cn,_t=Yo;let Ao=t.type;oa&&[gl.flow,gl.chart,gl.mind,gl.table].includes(oa)&&(Ao=oa),w({type:Ao,status:_t,hotItems:hn,semanticType:gt})}Q(_t,gt,_e),_({aiGenerating:!1});return}default:{_({aiGenerating:!1});return}}_({aiGenerating:!1}),j({text:t.label+" "+I18N.ChatGPT.ai_generated,svgName:"chatGPT/copy-success"})}catch(De){console.log("----",De),await(0,c2.nI)({success:!1,status:0,user:r,org:s,updateAIState:_,notice:j}),_({aiGenerating:!1}),t.type===_p.SR.Semantic&&Q(409,null,_e)}await(0,c2.Rn)({user:r,org:s,onUpdateAIPoints:p})}}},U2={width:300,height:224},cf={width:800,height:500},OI=E.Ay.div.withConfig({displayName:"styles__StyledAIComponentModal",componentId:"sc-1kzli1l-0"})(["position:fixed;width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ","px);z-index:110;background:",";box-shadow:",";border:",";border-radius:10px;overflow:hidden;&.ai-guide{width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ",'px);background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/guide_bg.png");&:lang(en){background-image:url("/mb-proto2/images/AIGC/guide_bg_en.png");}}'],U2.width,U2.height,U2.width/2,U2.height/2,e=>e.theme.color_text_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.ai_modal_border_style,cf.width,cf.height,cf.width/2,cf.height/2),RI=E.Ay.div.withConfig({displayName:"styles__StyledAIComponentPanel",componentId:"sc-1kzli1l-1"})(["display:flex;width:100%;height:100%;color:",";background-color:",";flex-direction:column;"],e=>e.theme.color_text_L1,e=>e.theme.color_background_white),BI=e=>{const[t,n]=(0,l.useState)(""),{currentAIComponent:r,userInputObj:s,generating:c,accountData:d,actions:p,handleInputFocus:g,closeModal:y,onUpdateAIUsedTimes:w,onUpdateAIPoints:_}=e,{title:j}=r||{};(0,l.useEffect)(()=>{n((s==null?void 0:s.userInput)||"")},[s]);const{handleConvertComponent:N}=G8({currentAIComponent:r,...d,onUpdateAIUsedTimes:w,onUpdateAIPoints:_,actions:p});return(0,o.jsxs)(RI,{children:[(0,o.jsx)(C8.A,{user:d.user,org:d.org,project:d.project,title:j,closeModal:y}),(0,o.jsx)(Sk,{userInput:t,generating:c,sendMessageHandle:N,currentAIComponent:r,handleInputFocus:g,setUserInput:n})]})},UI=(0,l.memo)(BI),VX=48,Tg=48;var Gl=i(48028),df=i(30728);const Z8=e=>{let{onPointerDown:t,onDragStart:n,onDrag:r,onDrop:s}=e,c=0,d=!1;t&&t();const p=y=>{if(c<2)return c++;!d&&n&&n(y),d=!0,r(y.clientX,y.clientY)},g=y=>{s(y,c<2),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",g)};class FI extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{style:{left:0,top:0},inputFocus:!1,handelMove:!1}),(0,O.A)(this,"handleUpdateState",()=>{const{showGuide:t}=this.props;if(this.setState({handelMove:!!(0,l0.kI)()}),t){const n=document.documentElement.clientHeight,s=(document.documentElement.clientWidth-cf.width)/2,c=(n-cf.height)/2;this.setState({style:{left:s,top:c}})}else{const n=(0,Gl.Yt)(l0.t6,0,Gl.qW.Number),r=(0,Gl.Yt)(l0.J7,0,Gl.qW.Number),s=Math.max(Math.min(n,window.innerWidth-U2.width),0),c=Math.max(Math.min(r,window.innerHeight-U2.height),0);this.setState({style:{left:s,top:c}})}}),(0,O.A)(this,"handleMouseDown",t=>{t.stopPropagation();const{inputFocus:n}=this.state;if(n)return;const{showGuide:r}=this.props,s={x:t.clientX,y:t.clientY};let c=this.state.style;if(!r&&this.state.style.left===0&&this.state.style.top===0){var d;const p=(d=document.getElementById("ai-modal"))==null?void 0:d.getBoundingClientRect();p&&(c={left:p.left,top:p.top})}Z8({onDrag:(p,g)=>{const y=document.documentElement.clientHeight,w=document.documentElement.clientWidth,_={x:p,y:g},j=df.Z.subtract(_,s);let{x:N,y:Z}=df.Z.add(df.Z.xy(c.left,c.top),j);N=N<0?0:N,N=N+U2.width>w?w-U2.width:N,Z=Z<Tg?Tg:Z,Z=Z+U2.height>y?y-U2.height:Z;const Q={...c,left:N,top:Z};this.setState({style:Q,handelMove:!0}),r||((0,Gl.a0)(l0.J7,Z,Gl.qW.Number),(0,Gl.a0)(l0.t6,N,Gl.qW.Number))},onDrop:()=>{}})}),(0,O.A)(this,"closeModal",()=>{const{actions:{updateAIState:t}}=this.props;t({showAIModal:!1,currentAiComponent:null})}),(0,O.A)(this,"handleGuideCloseModal",t=>{const{actions:{updateAIState:n,openLeftSidePanel:r}}=this.props;if(t){n({showAIGuide:!1});const{currentAIComponent:s}=this.props;if(!s){this.closeModal();return}if(s&&s.type===_p.SR.AIAssistant)this.closeModal(),n({showAIGuide:!1}),r();else if(s&&s.type===_p.SR.AutoFill)this.closeModal();else{const c=document.documentElement.clientHeight,p=(document.documentElement.clientWidth-U2.width)/2,g=(c-U2.height)/2;this.setState({style:{left:p,top:g}})}}else this.closeModal(),n({showAISemantic:!1})}),(0,O.A)(this,"handleInputFocus",t=>{this.setState({inputFocus:t})}),(0,O.A)(this,"handleUpdateAIUsedTimes",t=>{const{accountData:{user:n,org:r,project:s},actions:{updateCurrentOrg:c,updateCurrentUser:d}}=this.props;s.is_org_project&&r?c({org:Object.assign(r,{used_times:t})}):d({user:Object.assign(n,{used_times:t})})}),(0,O.A)(this,"handleUpdateAIPoints",t=>{const{accountData:{user:n,org:r,project:s},actions:{updateCurrentOrg:c,updateCurrentUser:d}}=this.props;s.is_org_project&&r?c({org:Object.assign(r,{ai_points:t})}):d({user:Object.assign(n,{ai_points:t})})})}componentDidMount(){this.handleUpdateState(),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.addEventListener("resize",this.handleUpdateState)}render(){const{style:{left:t,top:n}}=this.state,{handelMove:r}=this.state,{defaultPos:s,showGuide:c,...d}=this.props,p=!c&&!r?s:{left:t,top:n};return(0,o.jsx)(OI,{id:"ai-modal",className:m()(c&&"ai-guide"),onMouseDown:this.handleMouseDown,style:p,children:c?(0,o.jsx)(Ck,{closeGuide:this.handleGuideCloseModal}):(0,o.jsx)(UI,{...d,closeModal:this.closeModal,handleInputFocus:this.handleInputFocus,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes,onUpdateAIPoints:this.handleUpdateAIPoints})})}}const VI=e=>{const t=e();return(0,o.jsx)(FI,{...t})};var K8=i(60719);const Y8=88,zI=180,Bm={width:400,height:Y8},WI=E.Ay.div.withConfig({displayName:"styles__StyledAISemanticModal",componentId:"sc-ezvlvf-0"})(["position:fixed;z-index:111;"]),HI=E.Ay.div.withConfig({displayName:"styles__StyledAISemanticPanel",componentId:"sc-ezvlvf-1"})([".semantic-top{width:","px;height:","px;z-index:110;background:",";border-radius:10px;box-shadow:",";border:",";}.semantic-title{display:flex;height:40px;justify-content:space-between;align-items:center;padding:0 10px;cursor:move;svg{width:24px;height:24px;}.ai-beta{width:40px;margin-right:4px;}.title-left{color:",";font-size:14px;font-style:normal;font-weight:500;line-height:24px;display:flex;align-items:center;svg{margin-right:4px;}.mode-tag{width:50px;height:25px;margin-left:10px;display:flex;align-items:center;justify-content:center;font-size:12px;color:white;background-color:#CECECE;margin-left:10px;border-radius:4px;cursor:pointer;&.isSelect{background-color:#54BCBD;}}}.title-right{display:flex;justify-content:center;align-items:center;.close{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}.ai-help{display:flex;position:relative;margin-left:2px;z-index:1;&:hover{.ai-help-content{display:block;}}.ai-help-icon{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}.ai-help-content{display:none;position:absolute;width:226px;left:-21px;bottom:38px;padding:12px 16px;border-radius:8px;font-size:12px;line-height:20px;color:",";background-color:",";span{color:#80BCFF;text-decoration:underline;cursor:pointer;}.bot-content{width:100%;height:20px;position:absolute;bottom:-20px;left:0px;}}.ai-help-content::before{content:'';position:absolute;bottom:-16px;left:24px;display:inline-block;width:0;height:0;border:8px solid transparent;border-top:8px solid ",";}}}.semantic-gap{position:absolute;left:0;bottom:-6px;height:6px;width:100%;}.action-panel{width:240px;margin-top:4px;background:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);border-radius:8px;}"],Bm.width,Y8,e=>e.theme.color_bg_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.style_modal_border,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_btn,K8.f.color_btn_secondary_active.value_dark,K8.f.color_btn_secondary_active.value_dark,e=>e.theme.color_text_white),GI=()=>{const[e,t]=(0,l.useState)({left:0,top:0}),n=(0,l.useCallback)(()=>{var c;const d=((c=document.getElementById("ai-semantic-recommend-panel"))==null?void 0:c.getBoundingClientRect().height)||20;if((0,l0.Mm)()){const p=(0,Gl.Yt)(l0.SN,0,Gl.qW.Number),g=(0,Gl.Yt)(l0.IU,0,Gl.qW.Number),y=Math.max(Math.min(p,window.innerWidth-Bm.width),0),w=Math.max(Math.min(g,window.innerHeight-d-20),0);t({left:y,top:w})}else{const p=(innerWidth-Bm.width)/2,g=innerHeight-d-130;t({left:p,top:g})}},[t]),r=(0,l.useCallback)((c,d)=>{c.stopPropagation();const{left:p,top:g}=e,y={x:c.clientX,y:c.clientY};let w=e;if(p===0&&g===0){var _;const N=(_=document.getElementById("ai-semantic-modal"))==null?void 0:_.getBoundingClientRect();N&&(w={left:N.left,top:N.top})}const j=100;Z8({onDrag:(N,Z)=>{d==null||d.blur();const Q=document.documentElement.clientHeight,se=document.documentElement.clientWidth,ie={x:N,y:Z},he=df.Z.subtract(ie,y);let{x:xe,y:Se}=df.Z.add(df.Z.xy(w.left,w.top),he);xe=xe<0?0:xe,xe=xe+Bm.width>se?se-Bm.width:xe,Se=Se<Tg?Tg:Se,Se=Se+j>Q?Q-j:Se,t({left:xe,top:Se}),(0,Gl.a0)(l0.mN,!0,Gl.qW.Boolean),(0,Gl.a0)(l0.IU,Se,Gl.qW.Number),(0,Gl.a0)(l0.SN,xe,Gl.qW.Number)},onDrop:()=>{}})},[t,e]),s=(0,l.useMemo)(()=>{const{top:c}=e;return c+Bm.height+zI>document.documentElement.clientHeight?"top":"bottom"},[e]);return{updatePositionHandle:n,handleMouseDown:r,panelPosition:e,recommendPosition:s}},ZI=E.Ay.div.withConfig({displayName:"styles__StyledAIRecommendItem",componentId:"sc-a72rx-0"})(["display:flex;height:32px;margin-left:12px;width:calc(100% - 24px);border-radius:6px;padding:0 4px 0 6px;align-items:center;justify-content:space-between;color:",";font-size:12px;.recommend{display:flex;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;.recommend-label{max-width:320px;span{color:",";}.ask-ai{color:",";}}}svg{path{fill:",";}&:hover{path{fill:",";}}}.input-enter{width:24px;height:24px;}.cmd-icon{width:18px;height:18px;margin-right:6px;}.nor-recommend{display:none;}&.is-select{color:",";background-color:",";.nor-recommend{display:flex;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover);var ce=i(1738);const KI=e=>{let{recommend:t,onClickRecommend:n,isHistory:r,arrowDown:s,isSelect:c,index:d,handleChangeSelectIndex:p}=e;const[g,{label:y,iconName:w,info:{attrs:_,isRecommend:j}}]=t,N=(0,l.useCallback)(Q=>{Q.preventDefault(),Q.stopPropagation(),n(t)},[n,t]);let Z="";switch(g){case ce.c.ToggleExport:Z="ai-semantic-export";break;case ce.c.ToggleViewShare:Z="ai-semantic-share";break}return(0,o.jsxs)(ZI,{onMouseDown:N,className:m()("ai-command-item",Z,c&&"is-select"),onMouseEnter:Q=>{p(d)},children:[(0,o.jsxs)("div",{className:"recommend",children:[w&&(0,o.jsx)(Fd.C,{className:"cmd-icon",name:w}),(0,o.jsx)("div",{className:"recommend-label",children:_&&_.length>0?(0,o.jsx)(o.Fragment,{children:_.map((Q,se)=>{let{key:ie,content:he}=Q;return ie?(0,o.jsx)("span",{children:he},se):he})}):[ce.c.AIGC,ce.c.AIQ].includes(g)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"ask-ai",children:g===ce.c.AIGC?j?"":"\u667A\u80FD\u751F\u6210\uFF1A":"\u667A\u80FD\u5BF9\u8BDD\uFF1A"}),y]}):g===ce.c.CCustomComponent?"\u751F\u6210\u7EC4\u4EF6":y})]}),c&&(0,o.jsx)(Fd.C,{className:"input-enter",name:"chatGPT/ai-cmd-send",isColorPure:!0})]})},YI=(0,l.memo)(KI),XI=E.Ay.div.withConfig({displayName:"styles__StyledAIRecommendPanel",componentId:"sc-tdl3pm-0"})(["position:absolute;width:100%;background:",";border-radius:10px;max-height:294px;box-shadow:",";border:",";overflow:hidden;&:lang(en){width:","px;}&.top{bottom:100%;margin-bottom:4px;}&.bottom{top:100%;margin-top:4px;}.recommend-title{display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:16px;padding-right:9px;color:",";font-size:14px;font-weight:500;.recommend-left{display:flex;align-items:center;svg{width:20px;height:20px;margin-right:6px;}}}.semantic-recommend{max-height:136px;padding:12px 0;overflow:hidden auto;::-webkit-scrollbar{display:none;}}.recommend-title-svg{g{fill:",";}}"],e=>e.theme.color_bg_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.style_modal_border,Bm.width,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),QI=e=>{let{recommendPosition:t,org:n,user:r,project:s,recommendList:c,isInputFocus:d,onClickRecommend:p}=e;const[g,y]=(0,l.useState)(0),[w,_]=(0,l.useState)(!1),j=(0,l.useRef)(null),N=(0,l.useCallback)(se=>{if(se<0||se>c.length)return;const ie=document.getElementById("semantic-recommend"),he=document.querySelectorAll(".ai-command-item")[se];if(ie){const xe=ie.offsetHeight,Se=ie.scrollTop,_e=he==null?void 0:he.offsetTop,De=he==null?void 0:he.offsetHeight;_e<Se?ie.scrollTop=_e-6:_e-Se+De>xe&&(ie.scrollTop=_e-xe+De+6)}},[c]);(0,l.useEffect)(()=>{const se=t==="bottom"?0:c.length-1;y(se),N(se)},[t,c,N]);const Z=(0,l.useCallback)(se=>{if(se.key==="ArrowDown"){if(!d)return;se.preventDefault(),se.stopPropagation();const ie=g===c.length-1?0:g+1;N(ie),y(ie)}if(se.key==="ArrowUp"){if(!d)return;se.preventDefault(),se.stopPropagation();const ie=g===0?c.length-1:g-1;N(ie),y(ie)}se.keyCode===13&&g>=0&&g<=c.length&&(se.preventDefault(),se.stopPropagation(),p(c[g]))},[g,c,d,N,p]);(0,l.useEffect)(()=>{document.addEventListener("keydown",Z);const se=j.current;if(se){const ie=se.scrollHeight>se.clientHeight;_(ie)}return()=>{document.removeEventListener("keydown",Z),_(!1)}},[Z]);const Q=(0,l.useCallback)(se=>{y(se)},[y]);return(0,o.jsx)(XI,{className:m()(t&&t,"ai-semantic-recommend-panel"),id:"ai-semantic-recommend-panel",children:(0,o.jsx)("div",{className:m()("semantic-recommend",w&&"has-scroll-bar"),id:"semantic-recommend",ref:j,children:c.map((se,ie)=>(0,o.jsx)(YI,{recommend:se,onClickRecommend:p,arrowDown:t==="top",isSelect:ie===g,index:ie,handleChangeSelectIndex:Q},ie))})})},JI=(0,l.memo)(QI),qI=E.Ay.div.withConfig({displayName:"styles__StyledAISemanticInput",componentId:"sc-thx25e-0"})(["display:flex;height:34px;align-items:center;justify-content:space-between;color:",";background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;margin:0 12px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{display:flex;width:100%;height:100%;align-items:center;justify-content:space-between;color:",";background:",";border-radius:4px;}svg{width:24px;height:24px;&.input-enter{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}input{caret-color:#1684FC;color:",";font-size:12px;font-style:normal;font-weight:400;height:100%;width:100%;padding-left:14px;padding-right:10px;&::placeholder{color:",";}}.generating{display:flex;align-items:center;justify-content:center;padding-left:14px;padding-right:10px;.create-loading{width:20px;height:20px;animation:loading 3s linear infinite;margin-right:6px;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}}.ellipsis-loading{display:flex;justify-content:center;margin-left:3px;height:12px;opacity:0.9;align-items:flex-end;.ellipsis{width:3px;height:3px;border-radius:50%;background-color:",";margin-right:2px;animation:ellipsis-animation 1.2s ease-in-out infinite;&:nth-child(2){animation-delay:0.4s;}&:nth-child(3){animation-delay:0.8s;}@keyframes ellipsis-animation{0%{transform:scale(0);}20%{transform:scale(1);}100%{transform:scale(0);}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),$I=(e,t)=>{const{generating:n,actions:r,semanticValue:s,onAISearch:c,setSemanticValue:d,setInputFocus:p}=e,[g,y]=(0,l.useState)(!1),[w,_]=(0,l.useState)(!1),j=async ie=>{ie.key==="k"&&(ie.ctrlKey||ie.metaKey)&&(ie.preventDefault(),r.updateAIState({showAISemantic:!1}))},N=(0,l.useCallback)(ie=>{let he=ie.target.value;he.length>200&&(he=he.slice(0,200)),d(he),g||c(he)},[d,g,c]),Z=(0,l.useCallback)(ie=>{const he=ie.target.value.length;ie.target.setSelectionRange(he,he),_(!0),p(!0)},[p]),Q=(0,l.useCallback)(()=>{_(!1),p(!1);const{richTextEditorState:ie}=r.getChangingData();r.recoverEditorSelection(ie)},[r,p]),se=(0,l.useCallback)(async()=>{y(!1),c(s)},[c,s]);return(0,o.jsx)(qI,{className:m()("semantic-input",w&&"isFocus"),children:(0,o.jsx)("div",{className:"colorful-border-content",children:n?(0,o.jsxs)("div",{className:"generating",children:[(0,o.jsx)(Fd.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}),I18N.ChatGPT.ai_semantic_thinking,"..."]}):(0,o.jsx)("input",{autoFocus:!0,className:"ai-semantic-input",autoComplete:"off",ref:t,maxLength:200,value:s||"",onChange:N,onKeyDown:j,onFocus:Z,onBlur:Q,onCompositionStart:()=>y(!0),onCompositionEnd:se,placeholder:I18N.ChatGPT.ai_semantic_input_placeholder})})})},eT=(0,l.memo)((0,l.forwardRef)($I)),X8=(e,t)=>e>t?1:e<t?-1:0,O3=1/0,R3=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Q8="eexxaacctt",tT=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]/gu,nT="A-Z",oT="a-z",aT=["en",{numeric:!0,sensitivity:"base"}],pf=(e,t,n)=>e.replace(nT,t).replace(oT,n),J8={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:O3,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,O3],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,n)=>!0,toUpper:e=>e.toLocaleUpperCase(),toLower:e=>e.toLocaleLowerCase(),compare:null,sort:function(e,t,n,r){r===void 0&&(r=X8);let{idx:s,chars:c,terms:d,interLft2:p,interLft1:g,start:y,intraIns:w,interIns:_,cases:j}=e;return s.map((N,Z)=>Z).sort((N,Z)=>c[Z]-c[N]||w[N]-w[Z]||d[Z]+p[Z]+.5*g[Z]-(d[N]+p[N]+.5*g[N])||_[N]-_[Z]||y[N]-y[Z]||j[Z]-j[N]||r(t[s[N]],t[s[Z]]))}},B3=(e,t)=>t==0?"":t==1?e+"??":t==O3?e+"*?":e+("{0,"+t+"}?"),q8="(?:\\b|_)";function _g(e){var t;e=Object.assign({},J8,e);let{unicode:n,interLft:r,interRgt:s,intraMode:c,intraSlice:d,intraIns:p,intraSub:g,intraTrn:y,intraDel:w,intraContr:_,intraSplit:j,interSplit:N,intraBound:Z,interBound:Q,intraChars:se,toUpper:ie,toLower:he,compare:xe}=e;p!=null||(p=c),g!=null||(g=c),y!=null||(y=c),w!=null||(w=c),xe!=null||(xe=typeof Intl>"u"?X8:new Intl.Collator(...aT).compare);let Se=(t=e.letters)!=null?t:e.alpha;if(Se!=null){let ra=ie(Se),Jo=he(Se);N=pf(N,ra,Jo),j=pf(j,ra,Jo),Q=pf(Q,ra,Jo),Z=pf(Z,ra,Jo),se=pf(se,ra,Jo),_=pf(_,ra,Jo)}let _e=n?"u":"";const De='".+?"',Je=new RegExp(De,"gi"+_e),Ne=new RegExp("(?:\\s+|^)-(?:"+se+"+|"+De+")","gi"+_e);let{intraRules:pt}=e;pt==null&&(pt=ra=>{let Jo=J8.intraSlice,$o=0,sa=0,da=0,nr=0;if(/[^\d]/.test(ra)){let cr=ra.length;cr<=4?cr>=3&&(da=Math.min(y,1),cr==4&&($o=Math.min(p,1))):(Jo=d,$o=p,sa=g,da=y,nr=w)}return{intraSlice:Jo,intraIns:$o,intraSub:sa,intraTrn:da,intraDel:nr}});let _t=!!j,gt=new RegExp(j,"g"+_e),Ct=new RegExp(N,"g"+_e),zt=new RegExp("^"+N+"|"+N+"$","g"+_e),Dt=new RegExp(_,"gi"+_e);const sn=function(ra,Jo){Jo===void 0&&(Jo=!1);let $o=[];ra=ra.replace(Je,da=>($o.push(da),Q8)),ra=ra.replace(zt,""),Jo||(ra=he(ra)),_t&&(ra=ra.replace(gt,da=>da[0]+" "+da[1]));let sa=0;return ra.split(Ct).filter(da=>da!="").map(da=>da===Q8?$o[sa++]:da)},Rn=/[^\d]+|\d+/g,On=function(ra,Jo,$o){Jo===void 0&&(Jo=0),$o===void 0&&($o=!1);let sa=sn(ra);if(sa.length==0)return[];let da=Array(sa.length).fill("");sa=sa.map((pi,hi)=>pi.replace(Dt,Hi=>(da[hi]=Hi,"")));let nr;if(c==1)nr=sa.map((pi,hi)=>{if(pi[0]==='"')return R3(pi.slice(1,-1));let Hi="";for(let Kr of pi.matchAll(Rn)){let Gi=Kr[0],{intraSlice:ec,intraIns:Ul,intraSub:gs,intraTrn:Oi,intraDel:wi}=pt(Gi);if(Ul+gs+Oi+wi==0)Hi+=Gi+da[hi];else{let[Ps,ws]=ec,Rs=Gi.slice(0,Ps),bl=Gi.slice(ws),Cl=Gi.slice(Ps,ws);Ul==1&&Rs.length==1&&Rs!=Cl[0]&&(Rs+="(?!"+Rs+")");let bd=Cl.length,Jc=[Gi];if(gs)for(let tc=0;tc<bd;tc++)Jc.push(Rs+Cl.slice(0,tc)+se+Cl.slice(tc+1)+bl);if(Oi)for(let tc=0;tc<bd-1;tc++)Cl[tc]!=Cl[tc+1]&&Jc.push(Rs+Cl.slice(0,tc)+Cl[tc+1]+Cl[tc]+Cl.slice(tc+2)+bl);if(wi)for(let tc=0;tc<bd;tc++)Jc.push(Rs+Cl.slice(0,tc+1)+"?"+Cl.slice(tc+1)+bl);if(Ul){let tc=B3(se,1);for(let Id=0;Id<bd;Id++)Jc.push(Rs+Cl.slice(0,Id)+tc+Cl.slice(Id)+bl)}Hi+="(?:"+Jc.join("|")+")"+da[hi]}}return Hi});else{let pi=B3(se,p);Jo==2&&p>0&&(pi=")("+pi+")("),nr=sa.map((hi,Hi)=>hi[0]==='"'?R3(hi.slice(1,-1)):hi.split("").map((Kr,Gi,ec)=>(p==1&&Gi==0&&ec.length>1&&Kr!=ec[Gi+1]&&(Kr+="(?!"+Kr+")"),Kr)).join(pi)+da[Hi])}let cr=r==2?q8:"",Vr=s==2?q8:"",yr=Vr+B3(e.interChars,e.interIns)+cr;return Jo>0?$o?nr=cr+"("+nr.join(")"+Vr+"|"+cr+"(")+")"+Vr:(nr="("+nr.join(")("+yr+")(")+")",nr="(.??"+cr+")"+nr+"("+Vr+".*)"):(nr=nr.join(yr),nr=cr+nr+Vr),[new RegExp(nr,"i"+_e),sa,da]},Lo=(ra,Jo,$o)=>{let[sa]=On(Jo);if(sa==null)return null;let da=[];if($o!=null)for(let nr=0;nr<$o.length;nr++){let cr=$o[nr];sa.test(ra[cr])&&da.push(cr)}else for(let nr=0;nr<ra.length;nr++)sa.test(ra[nr])&&da.push(nr);return da};let Yo=!!Z,Cn=new RegExp(Q,_e),hn=new RegExp(Z,_e);const oa=(ra,Jo,$o)=>{let[sa,da,nr]=On($o,1),cr=sn($o,!0),[Vr]=On($o,2),yr=da.length,pi=Array(yr),hi=Array(yr);for(let gs=0;gs<yr;gs++){let Oi=da[gs],wi=cr[gs],Ps=Oi[0]=='"'?Oi.slice(1,-1):Oi+nr[gs],ws=wi[0]=='"'?wi.slice(1,-1):wi+nr[gs];pi[gs]=Ps,hi[gs]=ws}let Hi=ra.length,Kr=Array(Hi).fill(0),Gi={idx:Array(Hi),start:Kr.slice(),chars:Kr.slice(),cases:Kr.slice(),terms:Kr.slice(),interIns:Kr.slice(),intraIns:Kr.slice(),interLft2:Kr.slice(),interRgt2:Kr.slice(),interLft1:Kr.slice(),interRgt1:Kr.slice(),ranges:Array(Hi)},ec=r==1||s==1,Ul=0;for(let gs=0;gs<ra.length;gs++){let Oi=Jo[ra[gs]],wi=Oi.match(sa),Ps=wi.index+wi[1].length,ws=Ps,Rs=!1,bl=0,Cl=0,bd=0,Jc=0,tc=0,Id=0,nc=0,Wa=0,Cc=0,kl=[];for(let el=0,Zl=2;el<yr;el++,Zl+=2){let Td=he(wi[Zl]),_d=pi[el],mm=hi[el],L0=_d.length,v0=Td.length,nd=Td==_d;if(wi[Zl]==mm&&nc++,!nd&&wi[Zl+1].length>=L0){let Dc=he(wi[Zl+1]).indexOf(_d);Dc>-1&&(kl.push(ws,v0,Dc,L0),ws+=Ao(wi,Zl,Dc,L0),Td=_d,v0=L0,nd=!0,el==0&&(Ps=ws))}if(ec||nd){let Dc=ws-1,Lu=ws+v0,th=!1,Gm=!1;if(Dc==-1||Cn.test(Oi[Dc]))nd&&bl++,th=!0;else{if(r==2){Rs=!0;break}if(Yo&&hn.test(Oi[Dc]+Oi[Dc+1]))nd&&Cl++,th=!0;else if(r==1){let Zm=wi[Zl+1],L1=ws+v0;if(Zm.length>=L0){let Dp=0,fm=!1,Sf=new RegExp(_d,"ig"+_e),tg;for(;tg=Sf.exec(Zm);){Dp=tg.index;let ng=L1+Dp,gm=ng-1;if(gm==-1||Cn.test(Oi[gm])){bl++,fm=!0;break}else if(hn.test(Oi[gm]+Oi[ng])){Cl++,fm=!0;break}}fm&&(th=!0,kl.push(ws,v0,Dp,L0),ws+=Ao(wi,Zl,Dp,L0),Td=_d,v0=L0,nd=!0,el==0&&(Ps=ws))}if(!th){Rs=!0;break}}}if(Lu==Oi.length||Cn.test(Oi[Lu]))nd&&bd++,Gm=!0;else{if(s==2){Rs=!0;break}if(Yo&&hn.test(Oi[Lu-1]+Oi[Lu]))nd&&Jc++,Gm=!0;else if(s==1){Rs=!0;break}}nd&&(tc+=L0,th&&Gm&&Id++)}if(v0>L0&&(Cc+=v0-L0),el>0&&(Wa+=wi[Zl-1].length),!e.intraFilt(_d,Td,ws)){Rs=!0;break}el<yr-1&&(ws+=v0+wi[Zl+1].length)}if(!Rs){Gi.idx[Ul]=ra[gs],Gi.interLft2[Ul]=bl,Gi.interLft1[Ul]=Cl,Gi.interRgt2[Ul]=bd,Gi.interRgt1[Ul]=Jc,Gi.chars[Ul]=tc,Gi.terms[Ul]=Id,Gi.cases[Ul]=nc,Gi.interIns[Ul]=Wa,Gi.intraIns[Ul]=Cc,Gi.start[Ul]=Ps;let el=Oi.match(Vr),Zl=el.index+el[1].length,Td=kl.length,_d=Td>0?0:1/0,mm=Td-4;for(let Dc=2;Dc<el.length;){let Lu=el[Dc].length;if(_d<=mm&&kl[_d]==Zl){let th=kl[_d+1],Gm=kl[_d+2],Zm=kl[_d+3],L1=Dc,Dp="";for(let fm=0;fm<th;L1++)Dp+=el[L1],fm+=el[L1].length;el.splice(Dc,L1-Dc,Dp),Zl+=Ao(el,Dc,Gm,Zm),_d+=4}else Zl+=Lu,Dc++}Zl=el.index+el[1].length;let L0=Gi.ranges[Ul]=[],v0=Zl,nd=Zl;for(let Dc=2;Dc<el.length;Dc++){let Lu=el[Dc].length;Zl+=Lu,Dc%2==0?nd=Zl:Lu>0&&(L0.push(v0,nd),v0=nd=Zl)}nd>v0&&L0.push(v0,nd),Ul++}}if(Ul<ra.length)for(let gs in Gi)Gi[gs]=Gi[gs].slice(0,Ul);return Gi},Ao=(ra,Jo,$o,sa)=>{let da=ra[Jo]+ra[Jo+1].slice(0,$o);return ra[Jo-1]+=da,ra[Jo]=ra[Jo+1].slice($o,$o+sa),ra[Jo+1]=ra[Jo+1].slice($o+sa),da.length},ca=5,va=function(ra,Jo,$o,sa,da){sa===void 0&&(sa=1e3),$o=$o?$o===!0?ca:$o:0;let nr=null,cr=null,Vr=[];Jo=Jo.replace(Ne,gs=>{let Oi=gs.trim().slice(1);return Oi=Oi[0]==='"'?R3(Oi.slice(1,-1)):Oi.replace(tT,""),Oi!=""&&Vr.push(Oi),""});let yr=sn(Jo),pi;if(Vr.length>0){if(pi=new RegExp(Vr.join("|"),"i"+_e),yr.length==0){let gs=[];for(let Oi=0;Oi<ra.length;Oi++)pi.test(ra[Oi])||gs.push(Oi);return[gs,null,null]}}else if(yr.length==0)return[null,null,null];if($o>0){let gs=sn(Jo);if(gs.length>1){let Oi=gs.slice().sort((Ps,ws)=>ws.length-Ps.length);for(let Ps=0;Ps<Oi.length;Ps++){var hi;if(((hi=da)==null?void 0:hi.length)==0)return[[],null,null];da=Lo(ra,Oi[Ps],da)}if(gs.length>$o)return[da,null,null];nr=$8(gs).map(Ps=>Ps.join(" ")),cr=[];let wi=new Set;for(let Ps=0;Ps<nr.length;Ps++)if(wi.size<da.length){let ws=da.filter(bl=>!wi.has(bl)),Rs=Lo(ra,nr[Ps],ws);for(let bl=0;bl<Rs.length;bl++)wi.add(Rs[bl]);cr.push(Rs)}else cr.push([])}}if(nr==null){var Hi;nr=[Jo],cr=[((Hi=da)==null?void 0:Hi.length)>0?da:Lo(ra,Jo)]}let Kr=null,Gi=null;if(Vr.length>0&&(cr=cr.map(gs=>gs.filter(Oi=>!pi.test(ra[Oi])))),cr.reduce((gs,Oi)=>gs+Oi.length,0)<=sa){Kr={},Gi=[];for(let gs=0;gs<cr.length;gs++){let Oi=cr[gs];if(Oi==null||Oi.length==0)continue;let wi=nr[gs],Ps=oa(Oi,ra,wi),ws=e.sort(Ps,ra,wi,xe);if(gs>0)for(let Rs=0;Rs<ws.length;Rs++)ws[Rs]+=Gi.length;for(let Rs in Ps){var Ul;Kr[Rs]=((Ul=Kr[Rs])!=null?Ul:[]).concat(Ps[Rs])}Gi=Gi.concat(ws)}}return[[].concat(...cr),Kr,Gi]};return{search:function(){return va(...arguments)},split:sn,filter:Lo,info:oa,sort:e.sort}}const rT=(()=>{let e={A:"\xC1\xC0\xC3\xC2\xC4\u0104",a:"\xE1\xE0\xE3\xE2\xE4\u0105",E:"\xC9\xC8\xCA\xCB\u0116",e:"\xE9\xE8\xEA\xEB\u0119",I:"\xCD\xCC\xCE\xCF\u012E",i:"\xED\xEC\xEE\xEF\u012F",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172",u:"\xFA\xF9\xFB\xFC\u016B\u0173",C:"\xC7\u010C\u0106",c:"\xE7\u010D\u0107",L:"\u0141",l:"\u0142",N:"\xD1\u0143",n:"\xF1\u0144",S:"\u0160\u015A",s:"\u0161\u015B",Z:"\u017B\u0179",z:"\u017C\u017A"},t=new Map,n="";for(let c in e)e[c].split("").forEach(d=>{n+=d,t.set(d,c)});let r=new RegExp("["+n+"]","g"),s=c=>t.get(c);return c=>{if(typeof c=="string")return c.replace(r,s);let d=Array(c.length);for(let p=0;p<c.length;p++)d[p]=c[p].replace(r,s);return d}})();function $8(e){e=e.slice();let t=e.length,n=[e.slice()],r=new Array(t).fill(0),s=1,c,d;for(;s<t;)r[s]<s?(c=s%2&&r[s],d=e[s],e[s]=e[c],e[c]=d,++r[s],s=1,n.push(e.slice())):(r[s]=0,++s);return n}const iT=(e,t)=>t?"<mark>"+e+"</mark>":e,sT=(e,t)=>e+t;function lT(e,t,n,r,s){var c,d;n===void 0&&(n=iT),r===void 0&&(r=""),s===void 0&&(s=sT),r=(c=s(r,n(e.substring(0,t[0]),!1)))!=null?c:r;for(let y=0;y<t.length;y+=2){var p,g;let w=t[y],_=t[y+1];r=(p=s(r,n(e.substring(w,_),!0)))!=null?p:r,y<t.length-3&&(r=(g=s(r,n(e.substring(t[y+1],t[y+2]),!1)))!=null?g:r)}return r=(d=s(r,n(e.substring(t[t.length-1]),!1)))!=null?d:r,r}_g.latinize=rT,_g.permute=e=>$8([...Array(e.length).keys()]).sort((n,r)=>{for(let s=0;s<n.length;s++)if(n[s]!=r[s])return n[s]-r[s];return 0}).map(n=>n.map(r=>e[r])),_g.highlight=lT;const cT=(0,$s.R)(()=>new Map([[ce.c.CategoryPreference,{label:"\u504F\u597D\u8BBE\u7F6E",info:{isCategory:!0}}],[ce.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:ce.c.CategoryPreference}}],[ce.c.ToggleRuler,{label:"\u663E\u793A/\u9690\u85CF\u6807\u5C3A",info:{fuzzTag:"\u5207\u6362\u3001\u663E\u793A\u3001\u9690\u85CF\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ce.c.CategoryPreference}}],[ce.c.ToggleReferenceLine,{label:"\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ce.c.CategoryPreference}}],[ce.c.ToggleAlignLine,{label:"\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ce.c.CategoryPreference}}],[ce.c.ToggleSticky,{label:"\u663E\u793A/\u9690\u85CF\u6279\u6CE8",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:ce.c.CategoryPreference}}],[ce.c.ToggleComment,{label:"\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:ce.c.CategoryPreference}}],[ce.c.ToggleMultiplayerMouse,{label:"\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u534F\u4F5C\u3001\u6210\u5458\u3001\u624B\u3001\u6307",category:ce.c.CategoryPreference}}],[ce.c.ToggleLeftSide,{label:"\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:ce.c.CategoryPreference}}],[ce.c.ToggleRightSide,{label:"\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:ce.c.CategoryPreference}}]])),dT=(0,$s.R)(()=>new Map([["\u5207\u6362\u4E3B\u9898",ce.c.ToggleTheme],["\u663E\u793A/\u9690\u85CF\u6807\u5C3A",ce.c.ToggleRuler],["\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",ce.c.ToggleReferenceLine],["\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",ce.c.ToggleAlignLine],["\u663E\u793A/\u9690\u85CF\u6279\u6CE8",ce.c.ToggleSticky],["\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",ce.c.ToggleComment],["\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",ce.c.ToggleMultiplayerMouse],["\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",ce.c.ToggleLeftSide],["\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",ce.c.ToggleRightSide]])),pT=(0,$s.R)(()=>new Map([])),uT=(0,$s.R)(()=>new Map([[ce.c.CategoryCommonOperation,{label:"\u901A\u7528\u64CD\u4F5C",info:{isCategory:!0}}],[ce.c.Undo,{label:"\u64A4\u9500",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:ce.c.CategoryCommonOperation}}],[ce.c.Redo,{label:"\u91CD\u505A",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:ce.c.CategoryCommonOperation}}],[ce.c.ComSelectAll,{label:"\u5168\u9009",info:{category:ce.c.CategoryCommonOperation}}],[ce.c.GlobalFindAndReplace,{label:"\u67E5\u627E/\u66FF\u6362",info:{category:ce.c.CategoryCommonOperation}}],[ce.c.GlobalFind,{label:"\u67E5\u627E",info:{category:ce.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ce.c.GlobalReplace,{label:"\u66FF\u6362",info:{category:ce.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ce.c.Preview,{label:"\u6F14\u793A",info:{fuzzTag:"\u64AD\u3001\u653E\u3001\u9884\u3001\u89C8\u3001\u5C55",category:ce.c.CategoryCommonOperation}}],[ce.c.Group,{label:"\u7EC4\u5408",info:{fuzzTag:"\u6253\u3001\u6210\u3001\u5408\u3001\u5E76\u3001\u5173\u3001\u8054",category:ce.c.CategoryCommonOperation}}],[ce.c.UnGroup,{label:"\u6253\u6563",info:{fuzzTag:"\u70B8\u3001\u89E3\u3001\u5206\u3001\u5F00\u3001\u62C6",category:ce.c.CategoryCommonOperation}}],[ce.c.Delete,{label:"\u5220\u9664",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.Cut,{label:"\u526A\u5207",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.Copy,{label:"\u590D\u5236",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.Past,{label:"\u7C98\u8D34",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.PastProperties,{label:"\u7C98\u8D34\u5C5E\u6027",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.AddComponent,{label:"\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ce.c.CreateMaster,{label:"\u8F6C\u4E3A\u6BCD\u7248",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.CreatePanel,{label:"\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.TogglePageTransState,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.TogglePanelTransState,{label:"\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation}}],[ce.c.ToggleHandTool,{label:"\u624B\u578B\u5DE5\u5177",info:{fuzzTag:"\u5E73\u79FB\u3001pan",category:ce.c.CategoryCommonOperation}}],[ce.c.ToggleExport,{label:"\u5BFC\u51FA",info:{fuzzTag:"pdf\u3001png\u3001\u79BB\u7EBF\u3001\u6F14\u793A\u5305\u3001apk\u3001\u5B89\u5353\u3001\u5B89\u88C5\u5305\u3001\u56FE\u7247\u3001\u6587\u6863",category:ce.c.CategoryCommonOperation}}],[ce.c.Alignment,{label:"\u5BF9\u9F50",info:{category:ce.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ce.c.AlignmentTop,{label:"\u9876\u5BF9\u9F50",info:{fuzzTag:"\u4E0A",category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentMiddle,{label:"\u5782\u76F4\u5C45\u4E2D",info:{fuzzTag:"\u7EB5\u3001\u7AD6",category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentBottom,{label:"\u5E95\u5BF9\u9F50",info:{fuzzTag:"\u4E0B",category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentLeft,{label:"\u5DE6\u5BF9\u9F50",info:{category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentCenter,{label:"\u6C34\u5E73\u5C45\u4E2D",info:{fuzzTag:"\u6A2A\u3001\u4E2D\u95F4",category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentRight,{label:"\u53F3\u5BF9\u9F50",info:{category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentHorizontal,{label:"\u6C34\u5E73\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u6A2A\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:ce.c.CategoryCommonOperation}}],[ce.c.AlignmentVertical,{label:"\u5782\u76F4\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u7EB5\u3001\u7AD6\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:ce.c.CategoryCommonOperation}}],[ce.c.SearchMktSource,{label:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",info:{fuzzTag:"\u641C\u3001\u67E5\u3001\u7D20\u6750\u3001\u8D44\u6E90\u3001\u7EC4\u4EF6\u3001\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762",category:ce.c.CategoryCommonOperation}}],[ce.c.AI3Help,{label:"\u4F7F\u7528\u5E2E\u52A9",info:{fuzzTag:"",category:ce.c.CategoryAI}}]])),hT=(0,$s.R)(()=>new Map([["\u64A4\u9500",ce.c.Undo],["\u91CD\u505A",ce.c.Redo],["\u5168\u9009",ce.c.ComSelectAll],["\u6F14\u793A",ce.c.Preview],["\u7EC4\u5408",ce.c.Group],["\u6253\u6563",ce.c.UnGroup],["\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",ce.c.AddComponent],["\u5220\u9664",ce.c.Delete],["\u67E5\u627E",ce.c.GlobalFind],["\u66FF\u6362",ce.c.GlobalReplace],["\u67E5\u627E\u66FF\u6362",ce.c.GlobalFindAndReplace],["\u526A\u5207",ce.c.Cut],["\u590D\u5236",ce.c.Copy],["\u7C98\u8D34",ce.c.Past],["\u7C98\u8D34\u5C5E\u6027",ce.c.PastProperties],["\u8F6C\u4E3A\u6BCD\u7248",ce.c.CreateMaster],["\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",ce.c.CreatePanel],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",ce.c.TogglePageTransState],["\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",ce.c.TogglePanelTransState],["\u624B\u578B\u5DE5\u5177",ce.c.ToggleHandTool],["\u5BF9\u9F50",ce.c.Alignment],["\u9876\u5BF9\u9F50",ce.c.AlignmentTop],["\u5782\u76F4\u5C45\u4E2D",ce.c.AlignmentMiddle],["\u5E95\u5BF9\u9F50",ce.c.AlignmentBottom],["\u5DE6\u5BF9\u9F50",ce.c.AlignmentLeft],["\u6C34\u5E73\u5C45\u4E2D",ce.c.AlignmentCenter],["\u53F3\u5BF9\u9F50",ce.c.AlignmentRight],["\u6C34\u5E73\u7B49\u95F4\u8DDD",ce.c.AlignmentHorizontal],["\u5782\u76F4\u7B49\u95F4\u8DDD",ce.c.AlignmentVertical],["\u5BFC\u51FA",ce.c.ToggleExport],["\u641C\u7D22\u7D20\u6750\u8D44\u6E90",ce.c.SearchMktSource]])),mT=(0,$s.R)(()=>new Map([[ce.c.CategoryFile,{label:"\u6587\u4EF6\u64CD\u4F5C",info:{isCategory:!0}}],[ce.c.Save,{label:"\u4FDD\u5B58",info:{fuzzTag:"save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ce.c.CategoryFile}}],[ce.c.ProjectRename,{label:"\u6587\u4EF6\u91CD\u547D\u540D",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE",category:ce.c.CategoryFile,noCanFuzzy:!0}}],[ce.c.ViewFileInfo,{label:"\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",info:{fuzzTag:"\u6570\u91CF\u3001\u7EDF\u8BA1",category:ce.c.CategoryFile}}],[ce.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:ce.c.CategoryFile}}],[ce.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ce.c.CategoryFile}}],[ce.c.ToggleViewShare,{label:"\u5206\u4EAB",info:{fuzzTag:"\u53D1\u7ED9\u3001\u94FE\u63A5\u3001\u9884\u89C8\u3001\u4EA4\u4ED8\u3001\u67E5\u770B",category:ce.c.CategoryFile}}],[ce.c.OpenColorPicker,{label:"\u53D6\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:ce.c.CategoryFile}}]])),fT=(0,$s.R)(()=>new Map([["\u4FDD\u5B58",ce.c.Save],["\u6587\u4EF6\u91CD\u547D\u540D",ce.c.ProjectRename],["\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",ce.c.ViewFileInfo],["\u67E5\u770B\u7248\u672C\u8BB0\u5F55",ce.c.ViewVersionRecord],["\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",ce.c.CreateNewVersion],["\u5206\u4EAB",ce.c.ToggleViewShare],["\u53D6\u8272\u5668",ce.c.OpenColorPicker]])),gT=(0,$s.R)(()=>new Map([[ce.c.CategoryLayoutView,{label:"\u5E03\u5C40\u89C6\u56FE",info:{isCategory:!0}}],[ce.c.ZoomIn,{label:"\u653E\u5927",info:{fuzzTag:"\u5927\u3001\u8FD1\u3001\u89C6\u3001\u6269",category:ce.c.CategoryLayoutView}}],[ce.c.ZoomOut,{label:"\u7F29\u5C0F",info:{fuzzTag:"\u5C0F\u3001\u8FDC\u3001\u89C6\u3001\u51CF",category:ce.c.CategoryLayoutView}}],[ce.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:ce.c.CategoryLayoutView}}],[ce.c.ZoomSelection,{label:"\u7F29\u653E\u81F3\u9009\u533A",info:{fuzzTag:"\u7126\u3001\u70B9\u3001\u96C6\u3001\u4E2D",category:ce.c.CategoryLayoutView}}],[ce.c.FitCanvas,{label:"\u9002\u5E94\u753B\u5E03",info:{fuzzTag:"\u5339\u3001\u914D",category:ce.c.CategoryLayoutView}}],[ce.c.LinkDisplayChange,{label:"\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",info:{fuzzTag:"",category:ce.c.CategoryLayoutView,noCanFuzzy:!0}}],[ce.c.ToggleSelectMode,{label:"\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",info:{fuzzTag:"",category:ce.c.CategoryLayoutView}}],[ce.c.ToggleDynamicSpacing,{label:"\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",info:{fuzzTag:"",category:ce.c.CategoryLayoutView}}],[ce.c.FullScreenMode,{label:"\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u5F00\u542F\u3001\u5207\u3001\u89C8",category:ce.c.CategoryLayoutView}}]])),yT=(0,$s.R)(()=>new Map([["\u653E\u5927",ce.c.ZoomIn],["\u7F29\u5C0F",ce.c.ZoomOut],["\u7F29\u653E\u81F3100%",ce.c.ZoomToHundred],["\u7F29\u653E\u81F3\u9009\u533A",ce.c.ZoomSelection],["\u9002\u5E94\u753B\u5E03",ce.c.FitCanvas],["\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",ce.c.LinkDisplayChange],["\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",ce.c.ToggleSelectMode],["\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",ce.c.ToggleDynamicSpacing],["\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",ce.c.FullScreenMode]])),vT=(0,$s.R)(()=>new Map([[ce.c.CategoryHelpCenter,{label:"\u5E2E\u52A9",info:{isCategory:!0}}],[ce.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:ce.c.CategoryHelpCenter}}],[ce.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:ce.c.CategoryHelpCenter}}],[ce.c.Feedback,{label:"\u9700\u6C42\u53CD\u9988",info:{fuzzTag:"\u6C42\u3001\u5E94\u3001\u542C\u3001\u5EFA\u8BAE\u3001\u751F\u6C14\u3001\u5938\u5956",category:ce.c.CategoryHelpCenter}}],[ce.c.NewFeature,{label:"\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",info:{fuzzTag:"\u89C8\u3001new\u3001\u7248\u672C",category:ce.c.CategoryHelpCenter}}]])),xT=(0,$s.R)(()=>new Map([["\u67E5\u770B\u5FEB\u6377\u952E",ce.c.ToggleShortcutKey],["\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",ce.c.OpenHelperCenter],["\u9700\u6C42\u53CD\u9988",ce.c.Feedback],["\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",ce.c.NewFeature]])),bT=(0,$s.R)(()=>new Map([[ce.c.CategoryBW,{label:"\u57FA\u7840\u7EC4\u4EF6",info:{isCategory:!0}}],[ce.c.CRichText,{label:"\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWRect,{label:"\u65B0\u5EFA\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWOval,{label:"\u65B0\u5EFA\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWLine,{label:"\u65B0\u5EFA\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWButton,{label:"\u65B0\u5EFA\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWArrow,{label:"\u65B0\u5EFA\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryBW}}],[ce.c.CWPlaceholder,{label:"\u65B0\u5EFA\u5360\u4F4D\u7B26",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u7A7A",category:ce.c.CategoryBW}}],[ce.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ce.c.CategoryBW}}],[ce.c.CWSticky,{label:"\u65B0\u5EFA\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryBW}}],[ce.c.CWTear,{label:"\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryBW}}],[ce.c.CWIphoneXSB,{label:"\u65B0\u5EFA\u72B6\u6001\u680F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u6761\u3001\u793A\u3001bar",category:ce.c.CategoryBW}}],[ce.c.CDynCpts,{label:"\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategoryBW}}],[ce.c.CScrollPanel,{label:"\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u89C6\u3001\u533A\u3001\u8F74\u3001\u6761\u3001\u6846",category:ce.c.CategoryBW}}],[ce.c.CWLr,{label:"\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",info:{category:ce.c.CategoryBW}}],[ce.c.CWImage,{label:"\u65B0\u5EFA\u56FE\u7247",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001pic\u3001jpg\u3001png\u3001bmp\u3001webp\u3001\u50CF\u3001\u7167\u3001\u8C61\u3001jpeg\u3001\u5236\u3001\u7ED8",category:ce.c.CategoryBW}}],[ce.c.CComment,{label:"\u65B0\u5EFA\u8BC4\u8BBA",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u8A00\u3001\u8BB0\u3001\u6279",category:ce.c.CategoryBW}}],[ce.c.CElbow,{label:"\u65B0\u5EFA\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:ce.c.CategoryBW}}],[ce.c.CVector,{label:"\u94A2\u7B14\u5DE5\u5177",info:{fuzzTag:"\u4E66\u3001\u5199\u3001\u7ED8\u3001pen\u3001svg\u3001\u8DEF\u5F84\u3001\u77E2\u91CF\u3001\u66F2\u3001\u7EBF\u3001\u8D1D\u8D5B\u5C14",category:ce.c.CategoryBW}}],[ce.c.Other,{label:"\u5176\u4ED6",info:{category:ce.c.CategoryBW}}]])),CT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u77E9\u5F62",ce.c.CWRect],["\u65B0\u5EFA\u5706\u5F62",ce.c.CWOval],["\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",ce.c.CRichText],["\u65B0\u5EFA\u6309\u94AE",ce.c.CWButton],["\u65B0\u5EFA\u7BAD\u5934",ce.c.CWArrow],["\u65B0\u5EFA\u7EBF\u6761",ce.c.CWLine],["\u65B0\u5EFA\u5360\u4F4D\u7B26",ce.c.CWPlaceholder],["\u65B0\u5EFA\u8868\u683C",ce.c.CWTable],["\u65B0\u5EFA\u6279\u6CE8",ce.c.CWSticky],["\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",ce.c.CWTear],["\u65B0\u5EFA\u72B6\u6001\u680F",ce.c.CWIphoneXSB],["\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",ce.c.CScrollPanel],["\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",ce.c.CWLr],["\u65B0\u5EFA\u56FE\u7247",ce.c.CWImage],["\u65B0\u5EFA\u8BC4\u8BBA",ce.c.CComment],["\u65B0\u5EFA\u8FDE\u63A5\u7EBF",ce.c.CElbow],["\u94A2\u7B14\u5DE5\u5177",ce.c.CVector],["\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",ce.c.CDynCpts],["\u5176\u4ED6",ce.c.Other]])),wT=(0,$s.R)(()=>new Map([[ce.c.CategoryForm,{label:"\u8868\u5355",info:{isCategory:!0}}],[ce.c.CWMTextInput,{label:"\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ce.c.CategoryForm}}],[ce.c.CWMTextArea,{label:"\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ce.c.CategoryForm}}],[ce.c.CWMSelect,{label:"\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ce.c.CategoryForm}}],[ce.c.CWMFileInput,{label:"\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u4E0A\u4F20",category:ce.c.CategoryForm}}],[ce.c.CWSelectionControlRadio,{label:"\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ce.c.CategoryForm}}],[ce.c.CWSelectionControlCheckbox,{label:"\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ce.c.CategoryForm}}],[ce.c.CWAndroidSwitch,{label:"\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android\u3001\u624B\u673A",category:ce.c.CategoryForm}}],[ce.c.CWIosSwitch,{label:"\u65B0\u5EFAios\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ce.c.CategoryForm}}],[ce.c.CWSlider,{label:"\u65B0\u5EFA\u6ED1\u52A8\u6761",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ce.c.CategoryForm}}],[ce.c.CWDigitalStepper,{label:"\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ce.c.CategoryForm}}]])),ST=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.CWMTextInput],["\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.CWMTextArea],["\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",ce.c.CWMSelect],["\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ce.c.CWMFileInput],["\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",ce.c.CWSelectionControlRadio],["\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",ce.c.CWSelectionControlCheckbox],["\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",ce.c.CWAndroidSwitch],["\u65B0\u5EFAios\u5F00\u5173",ce.c.CWIosSwitch],["\u65B0\u5EFA\u6ED1\u52A8\u6761",ce.c.CWSlider],["\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",ce.c.CWDigitalStepper]])),AT=(0,$s.R)(()=>new Map([[ce.c.CategoryNavigation,{label:"\u5BFC\u822A",info:{isCategory:!0}}],[ce.c.CWDropMenu,{label:"\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ce.c.CategoryNavigation}}],[ce.c.CDynamicDropMenu,{label:"\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ce.c.CategoryNavigation}}],[ce.c.CWNavigationMenu,{label:"\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ce.c.CategoryNavigation}}],[ce.c.CWNavigationMenuH,{label:"\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u884C",category:ce.c.CategoryNavigation}}],[ce.c.CWNavigationMenuV,{label:"\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217",category:ce.c.CategoryNavigation}}],[ce.c.CWMobileTabBars,{label:"\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"nav\u3001\u89C8",category:ce.c.CategoryNavigation}}],[ce.c.CWSegmentedControl,{label:"\u65B0\u5EFA\u5206\u6BB5\u5668",info:{fuzzTag:"tab\u3001\u5207\u3001\u6362",category:ce.c.CategoryNavigation}}],[ce.c.CWCollapse,{label:"\u65B0\u5EFA\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u5C55\u3001\u533A",category:ce.c.CategoryNavigation}}],[ce.c.CWTabs,{label:"\u65B0\u5EFA\u6807\u7B7E\u9875",info:{fuzzTag:"tab\u3001\u5361\u3001\u754C\u3001\u5207",category:ce.c.CategoryNavigation}}],[ce.c.CWPaginationMobile,{label:"\u65B0\u5EFA\u5206\u9875\u56681",info:{category:ce.c.CategoryNavigation}}],[ce.c.CWPaginationWeb,{label:"\u65B0\u5EFA\u5206\u9875\u56682",info:{category:ce.c.CategoryNavigation}}]])),MT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",ce.c.CWDropMenu],["\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",ce.c.CDynamicDropMenu],["\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",ce.c.CWNavigationMenu],["\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",ce.c.CWNavigationMenuH],["\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",ce.c.CWNavigationMenuV],["\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",ce.c.CWMobileTabBars],["\u65B0\u5EFA\u5206\u6BB5\u5668",ce.c.CWSegmentedControl],["\u65B0\u5EFA\u6298\u53E0\u9762\u677F",ce.c.CWCollapse],["\u65B0\u5EFA\u6807\u7B7E\u9875",ce.c.CWTabs],["\u65B0\u5EFA\u5206\u9875\u5668",ce.c.CWPaginationMobile],["\u65B0\u5EFA\u5206\u9875\u56682",ce.c.CWPaginationWeb]])),kT=(0,$s.R)(()=>new Map([[ce.c.CategoryChart,{label:"\u56FE\u8868",info:{isCategory:!0}}],[ce.c.CreateChart,{label:"\u65B0\u5EFA\u56FE\u8868",info:{fuzzTag:"\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryChart}}]])),ET=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u56FE\u8868",ce.c.CreateChart]])),IT=(0,$s.R)(()=>new Map([[ce.c.CategoryMultimedia,{label:"\u591A\u5A92\u4F53",info:{isCategory:!0}}],[ce.c.CWWebpage,{label:"\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWCarousel,{label:"\u65B0\u5EFA\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u6ED1\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWVideo,{label:"\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWAudio,{label:"\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWQRCode,{label:"\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWMapView,{label:"\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryMultimedia}}],[ce.c.CWMTooltip,{label:"\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",info:{category:ce.c.CategoryMultimedia}}]])),TT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",ce.c.CWWebpage],["\u65B0\u5EFA\u8F6E\u64AD\u56FE",ce.c.CWCarousel],["\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",ce.c.CWVideo],["\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",ce.c.CWAudio],["\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ce.c.CWQRCode],["\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",ce.c.CWMapView],["\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",ce.c.CWMTooltip]])),_T=(0,$s.R)(()=>new Map([[ce.c.CategoryShape,{label:"\u5F62\u72B6",info:{isCategory:!0}}],[ce.c.CWPolygon,{label:"\u65B0\u5EFA\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u89D2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryShape}}],[ce.c.CWStar,{label:"\u65B0\u5EFA\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryShape}}],[ce.c.CWTriangle,{label:"\u65B0\u5EFA\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryShape}}]])),PT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u591A\u8FB9\u5F62",ce.c.CWPolygon],["\u65B0\u5EFA\u661F\u5F62",ce.c.CWStar],["\u65B0\u5EFA\u4E09\u89D2\u5F62",ce.c.CWTriangle]])),LT=(0,$s.R)(()=>new Map([[ce.c.CategoryDelete,{label:"\u5220\u9664",info:{isCategory:!0}}],[ce.c.DWRichText,{label:"\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWRect,{label:"\u5220\u9664\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWOval,{label:"\u5220\u9664\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWLine,{label:"\u5220\u9664\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWButton,{label:"\u5220\u9664\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWArrow,{label:"\u5220\u9664\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWPolygon,{label:"\u5220\u9664\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWStar,{label:"\u5220\u9664\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWTriangle,{label:"\u5220\u9664\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWCarousel,{label:"\u5220\u9664\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u5E7B\u3001\u6ED1\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWWebpage,{label:"\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u6D4F\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWVideo,{label:"\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F71\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWAudio,{label:"\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWQRCode,{label:"\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWMapView,{label:"\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWMTooltip,{label:"\u5220\u9664\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ce.c.CategoryDelete}}],[ce.c.DWLr,{label:"\u5220\u9664\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ce.c.CategoryDelete}}],[ce.c.DWImage,{label:"\u5220\u9664\u56FE\u7247",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryDelete}}],[ce.c.DWPlaceholder,{label:"\u5220\u9664\u5360\u4F4D\u7B26",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7A7A",category:ce.c.CategoryDelete}}],[ce.c.DWTable,{label:"\u5220\u9664\u8868\u683C",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ce.c.CategoryDelete}}],[ce.c.DWSticker,{label:"\u5220\u9664\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryDelete}}],[ce.c.DWTear,{label:"\u5220\u9664\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryDelete}}],[ce.c.DWIphoneSB,{label:"\u5220\u9664\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:ce.c.CategoryDelete}}],[ce.c.DWMTextInput,{label:"\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ce.c.CategoryDelete}}],[ce.c.DWMTextArea,{label:"\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ce.c.CategoryDelete}}],[ce.c.DWMSelect,{label:"\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ce.c.CategoryDelete}}],[ce.c.DWMFileInput,{label:"\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:ce.c.CategoryDelete}}],[ce.c.DWSelectionControlRadio,{label:"\u5220\u9664\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ce.c.CategoryDelete}}],[ce.c.DWSelectionControlCheckbox,{label:"\u5220\u9664\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ce.c.CategoryDelete}}],[ce.c.DWAndroidSwitch,{label:"\u5220\u9664\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ce.c.CategoryDelete}}],[ce.c.DWIosSwitch,{label:"\u5220\u9664ios\u5F00\u5173",info:{fuzzTag:"\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ce.c.CategoryDelete}}],[ce.c.DWSlider,{label:"\u5220\u9664\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ce.c.CategoryDelete}}],[ce.c.DWDigitalStepper,{label:"\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ce.c.CategoryDelete}}],[ce.c.DWDropMenu,{label:"\u5220\u9664\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ce.c.CategoryDelete}}],[ce.c.DWBasket,{label:"\u5220\u9664\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ce.c.CategoryDelete}}],[ce.c.DWNavigationMenu,{label:"\u5220\u9664\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ce.c.CategoryDelete}}],[ce.c.DWNavigationMenuV,{label:"\u5220\u9664\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWNavigationMenuH,{label:"\u5220\u9664\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWMobileTabBars,{label:"\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWSegmentedControl,{label:"\u5220\u9664\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWCollapse,{label:"\u5220\u9664\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWTabs,{label:"\u5220\u9664\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWPaginationMobile,{label:"\u5220\u9664\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWPaginationWeb,{label:"\u5220\u9664Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryDelete}}],[ce.c.DWChart,{label:"\u5220\u9664\u56FE\u8868",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u8868",category:ce.c.CategoryDelete}}],[ce.c.DWidgets,{label:"\u5220\u9664\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategoryDelete,noCanFuzzy:!1}}]])),NT=(0,$s.R)(()=>new Map([["\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",ce.c.DWRichText],["\u5220\u9664\u77E9\u5F62",ce.c.DWRect],["\u5220\u9664\u5706\u5F62",ce.c.DWOval],["\u5220\u9664\u7EBF\u6761",ce.c.DWLine],["\u5220\u9664\u6309\u94AE",ce.c.DWButton],["\u5220\u9664\u7BAD\u5934",ce.c.DWArrow],["\u5220\u9664\u591A\u8FB9\u5F62",ce.c.DWPolygon],["\u5220\u9664\u661F\u5F62",ce.c.DWStar],["\u5220\u9664\u4E09\u89D2\u5F62",ce.c.DWTriangle],["\u5220\u9664\u8F6E\u64AD\u56FE",ce.c.DWCarousel],["\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",ce.c.DWWebpage],["\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",ce.c.DWVideo],["\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",ce.c.DWAudio],["\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ce.c.DWQRCode],["\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",ce.c.DWMapView],["\u5220\u9664\u804A\u5929\u6C14\u6CE1",ce.c.DWMTooltip],["\u5220\u9664\u94FE\u63A5\u533A\u57DF",ce.c.DWLr],["\u5220\u9664\u56FE\u7247",ce.c.DWImage],["\u5220\u9664\u5360\u4F4D\u7B26",ce.c.DWPlaceholder],["\u5220\u9664\u8868\u683C",ce.c.DWTable],["\u5220\u9664\u6279\u6CE8",ce.c.DWSticker],["\u5220\u9664\u6253\u70B9\u6279\u6CE8",ce.c.DWTear],["\u5220\u9664\u72B6\u6001\u680F",ce.c.DWIphoneSB],["\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.DWMTextInput],["\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.DWMTextArea],["\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",ce.c.DWMSelect],["\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ce.c.DWMFileInput],["\u5220\u9664\u5355\u9009\u7EC4\u4EF6",ce.c.DWSelectionControlRadio],["\u5220\u9664\u590D\u9009\u7EC4\u4EF6",ce.c.DWSelectionControlCheckbox],["\u5220\u9664\u5B89\u5353\u5F00\u5173",ce.c.DWAndroidSwitch],["\u5220\u9664ios\u5F00\u5173",ce.c.DWIosSwitch],["\u5220\u9664\u6ED1\u52A8\u6761",ce.c.DWSlider],["\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",ce.c.DWDigitalStepper],["\u5220\u9664\u4E0B\u62C9\u83DC\u5355",ce.c.DWDropMenu],["\u5220\u9664\u5F39\u51FA\u83DC\u5355",ce.c.DWBasket],["\u5220\u9664\u5BFC\u822A\u83DC\u5355",ce.c.DWNavigationMenu],["\u5220\u9664\u5782\u76F4\u83DC\u5355",ce.c.DWNavigationMenuV],["\u5220\u9664\u6C34\u5E73\u83DC\u5355",ce.c.DWNavigationMenuH],["\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",ce.c.DWMobileTabBars],["\u5220\u9664\u5206\u6BB5\u5668",ce.c.DWSegmentedControl],["\u5220\u9664\u6298\u53E0\u9762\u677F",ce.c.DWCollapse],["\u5220\u9664\u6807\u7B7E\u9875",ce.c.DWTabs],["\u5220\u9664\u5206\u9875\u5668",ce.c.DWPaginationMobile],["\u5220\u9664Web\u5206\u6BB5\u5668",ce.c.DWPaginationWeb],["\u5220\u9664\u56FE\u8868",ce.c.DWChart],["\u5220\u9664",ce.c.DWidgets]])),jT=(0,$s.R)(()=>new Map([[ce.c.CategorySelected,{label:"\u9009\u4E2D",info:{isCategory:!0}}],[ce.c.SWRichText,{label:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWRect,{label:"\u9009\u4E2D\u77E9\u5F62",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWOval,{label:"\u9009\u4E2D\u5706\u5F62",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWLine,{label:"\u9009\u4E2D\u7EBF\u6761",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWButton,{label:"\u9009\u4E2D\u6309\u94AE",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWArrow,{label:"\u9009\u4E2D\u7BAD\u5934",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWPolygon,{label:"\u9009\u4E2D\u591A\u8FB9\u5F62",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWStar,{label:"\u9009\u4E2D\u661F\u5F62",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWTriangle,{label:"\u9009\u4E2D\u4E09\u89D2\u5F62",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWCarousel,{label:"\u9009\u4E2D\u8F6E\u64AD\u56FE",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWWebpage,{label:"\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWVideo,{label:"\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWAudio,{label:"\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWQRCode,{label:"\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWMapView,{label:"\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWMTooltip,{label:"\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWLr,{label:"\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ce.c.CategorySelected}}],[ce.c.SWImage,{label:"\u9009\u4E2D\u56FE\u7247",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.SWPlaceholder,{label:"\u9009\u4E2D\u5360\u4F4D\u7B26",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u7A7A",category:ce.c.CategorySelected}}],[ce.c.SWTable,{label:"\u9009\u4E2D\u8868\u683C",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ce.c.CategorySelected}}],[ce.c.SWSticker,{label:"\u9009\u4E2D\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:ce.c.CategorySelected}}],[ce.c.SWTear,{label:"\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:ce.c.CategorySelected}}],[ce.c.SWIphoneSB,{label:"\u9009\u4E2D\u72B6\u6001\u680F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6761\u3001\u793A\u3001bar",category:ce.c.CategorySelected}}],[ce.c.SWMTextInput,{label:"\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ce.c.CategorySelected}}],[ce.c.SWMTextArea,{label:"\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ce.c.CategorySelected}}],[ce.c.SWMSelect,{label:"\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ce.c.CategorySelected}}],[ce.c.SWMFileInput,{label:"\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u4E0A\u4F20",category:ce.c.CategorySelected}}],[ce.c.SWSelectionControlRadio,{label:"\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ce.c.CategorySelected}}],[ce.c.SWSelectionControlCheckbox,{label:"\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ce.c.CategorySelected}}],[ce.c.SWAndroidSwitch,{label:"\u9009\u4E2D\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ce.c.CategorySelected}}],[ce.c.SWIosSwitch,{label:"\u9009\u4E2Dios\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ce.c.CategorySelected}}],[ce.c.SWSlider,{label:"\u9009\u4E2D\u6ED1\u52A8\u6761",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ce.c.CategorySelected}}],[ce.c.SWDigitalStepper,{label:"\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ce.c.CategorySelected}}],[ce.c.SWDropMenu,{label:"\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ce.c.CategorySelected}}],[ce.c.SWBasket,{label:"\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ce.c.CategorySelected}}],[ce.c.SWNavigationMenu,{label:"\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ce.c.CategorySelected}}],[ce.c.SWNavigationMenuV,{label:"\u9009\u4E2D\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWNavigationMenuH,{label:"\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWMobileTabBars,{label:"\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWSegmentedControl,{label:"\u9009\u4E2D\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWCollapse,{label:"\u9009\u4E2D\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWTabs,{label:"\u9009\u4E2D\u6807\u7B7E\u9875",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWPaginationMobile,{label:"\u9009\u4E2D\u5206\u9875\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWPaginationWeb,{label:"\u9009\u4E2DWeb\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ce.c.CategorySelected}}],[ce.c.SWChart,{label:"\u9009\u4E2D\u56FE\u8868",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:ce.c.CategorySelected}}],[ce.c.SWidgets,{label:"\u9009\u4E2D\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected,noCanFuzzy:!1}}]])),DT=(0,$s.R)(()=>new Map([["\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",ce.c.SWRichText],["\u9009\u4E2D\u77E9\u5F62",ce.c.SWRect],["\u9009\u4E2D\u5706\u5F62",ce.c.SWOval],["\u9009\u4E2D\u7EBF\u6761",ce.c.SWLine],["\u9009\u4E2D\u6309\u94AE",ce.c.SWButton],["\u9009\u4E2D\u7BAD\u5934",ce.c.SWArrow],["\u9009\u4E2D\u591A\u8FB9\u5F62",ce.c.SWPolygon],["\u9009\u4E2D\u661F\u5F62",ce.c.SWStar],["\u9009\u4E2D\u4E09\u89D2\u5F62",ce.c.SWTriangle],["\u9009\u4E2D\u8F6E\u64AD\u56FE",ce.c.SWCarousel],["\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",ce.c.SWWebpage],["\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",ce.c.SWVideo],["\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",ce.c.SWAudio],["\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ce.c.SWQRCode],["\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",ce.c.SWMapView],["\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",ce.c.SWMTooltip],["\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",ce.c.SWLr],["\u9009\u4E2D\u56FE\u7247",ce.c.SWImage],["\u9009\u4E2D\u5360\u4F4D\u7B26",ce.c.SWPlaceholder],["\u9009\u4E2D\u8868\u683C",ce.c.SWTable],["\u9009\u4E2D\u6279\u6CE8",ce.c.SWSticker],["\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",ce.c.SWTear],["\u9009\u4E2D\u72B6\u6001\u680F",ce.c.SWIphoneSB],["\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.SWMTextInput],["\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.SWMTextArea],["\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",ce.c.SWMSelect],["\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ce.c.SWMFileInput],["\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",ce.c.SWSelectionControlRadio],["\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",ce.c.SWSelectionControlCheckbox],["\u9009\u4E2D\u5B89\u5353\u5F00\u5173",ce.c.SWAndroidSwitch],["\u9009\u4E2Dios\u5F00\u5173",ce.c.SWIosSwitch],["\u9009\u4E2D\u6ED1\u52A8\u6761",ce.c.SWSlider],["\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",ce.c.SWDigitalStepper],["\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",ce.c.SWDropMenu],["\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",ce.c.SWBasket],["\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",ce.c.SWNavigationMenu],["\u9009\u4E2D\u5782\u76F4\u83DC\u5355",ce.c.SWNavigationMenuV],["\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",ce.c.SWNavigationMenuH],["\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",ce.c.SWMobileTabBars],["\u9009\u4E2D\u5206\u6BB5\u5668",ce.c.SWSegmentedControl],["\u9009\u4E2D\u6298\u53E0\u9762\u677F",ce.c.SWCollapse],["\u9009\u4E2D\u6807\u7B7E\u9875",ce.c.SWTabs],["\u9009\u4E2D\u5206\u9875\u5668",ce.c.SWPaginationMobile],["\u9009\u4E2DWeb\u5206\u6BB5\u5668",ce.c.SWPaginationWeb],["\u9009\u4E2D\u56FE\u8868",ce.c.SWChart],["\u9009\u4E2D",ce.c.SWidgets]])),OT=(0,$s.R)(()=>new Map([[ce.c.CategoryEdit,{label:"\u7F16\u8F91",info:{isCategory:!0,noCanFuzzy:!0}}],[ce.c.EWRichText,{label:"\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit}}],[ce.c.EWRect,{label:"\u7F16\u8F91\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWOval,{label:"\u7F16\u8F91\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWLine,{label:"\u7F16\u8F91\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWButton,{label:"\u7F16\u8F91\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWArrow,{label:"\u7F16\u8F91\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWPolygon,{label:"\u7F16\u8F91\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWStar,{label:"\u7F16\u8F91\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWTriangle,{label:"\u7F16\u8F91\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWCarousel,{label:"\u7F16\u8F91\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u5E7B\u3001\u6ED1\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWWebpage,{label:"\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWVideo,{label:"\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWAudio,{label:"\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWQRCode,{label:"\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMapView,{label:"\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMTooltip,{label:"\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWLr,{label:"\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWImage,{label:"\u7F16\u8F91\u56FE\u7247",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWPlaceholder,{label:"\u7F16\u8F91\u5360\u4F4D\u7B26",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u7A7A",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWTable,{label:"\u7F16\u8F91\u8868\u683C",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWSticker,{label:"\u7F16\u8F91\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWTear,{label:"\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWIphoneSB,{label:"\u7F16\u8F91\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMTextInput,{label:"\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMTextArea,{label:"\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMSelect,{label:"\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMFileInput,{label:"\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWSelectionControlRadio,{label:"\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWSelectionControlCheckbox,{label:"\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWAndroidSWitch,{label:"\u7F16\u8F91\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWIosSWitch,{label:"\u7F16\u8F91ios\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWSlider,{label:"\u7F16\u8F91\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWDigitalStepper,{label:"\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWDropMenu,{label:"\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWBasket,{label:"\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWNavigationMenu,{label:"\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWNavigationMenuV,{label:"\u7F16\u8F91\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWNavigationMenuH,{label:"\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWMobileTabBars,{label:"\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWSegmentedControl,{label:"\u7F16\u8F91\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWCollapse,{label:"\u7F16\u8F91\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWTabs,{label:"\u7F16\u8F91\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWPaginationMobile,{label:"\u7F16\u8F91\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWPaginationWeb,{label:"\u7F16\u8F91Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWElbow,{label:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWChart,{label:"\u7F16\u8F91\u56FE\u8868",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:ce.c.CategoryEdit,noCanFuzzy:!0}}],[ce.c.EWidgets,{label:"\u7F16\u8F91\u6837\u5F0F",info:{fuzzTag:"",category:ce.c.CategoryEdit,noCanFuzzy:!1}}]])),RT=(0,$s.R)(()=>new Map([["\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",ce.c.EWRichText],["\u7F16\u8F91\u77E9\u5F62",ce.c.EWRect],["\u7F16\u8F91\u5706\u5F62",ce.c.EWOval],["\u7F16\u8F91\u7EBF\u6761",ce.c.EWLine],["\u7F16\u8F91\u6309\u94AE",ce.c.EWButton],["\u7F16\u8F91\u7BAD\u5934",ce.c.EWArrow],["\u7F16\u8F91\u591A\u8FB9\u5F62",ce.c.EWPolygon],["\u7F16\u8F91\u661F\u5F62",ce.c.EWStar],["\u7F16\u8F91\u4E09\u89D2\u5F62",ce.c.EWTriangle],["\u7F16\u8F91\u8F6E\u64AD\u56FE",ce.c.EWCarousel],["\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",ce.c.EWWebpage],["\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",ce.c.EWVideo],["\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",ce.c.EWAudio],["\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ce.c.EWQRCode],["\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",ce.c.EWMapView],["\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",ce.c.EWMTooltip],["\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",ce.c.EWLr],["\u7F16\u8F91\u56FE\u7247",ce.c.EWImage],["\u7F16\u8F91\u5360\u4F4D\u7B26",ce.c.EWPlaceholder],["\u7F16\u8F91\u8868\u683C",ce.c.EWTable],["\u7F16\u8F91\u6279\u6CE8",ce.c.EWSticker],["\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",ce.c.EWTear],["\u7F16\u8F91\u72B6\u6001\u680F",ce.c.EWIphoneSB],["\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.EWMTextInput],["\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ce.c.EWMTextArea],["\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",ce.c.EWMSelect],["\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ce.c.EWMFileInput],["\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",ce.c.EWSelectionControlRadio],["\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",ce.c.EWSelectionControlCheckbox],["\u7F16\u8F91\u5B89\u5353\u5F00\u5173",ce.c.EWAndroidSWitch],["\u7F16\u8F91ios\u5F00\u5173",ce.c.EWIosSWitch],["\u7F16\u8F91\u6ED1\u52A8\u6761",ce.c.EWSlider],["\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",ce.c.EWDigitalStepper],["\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",ce.c.EWDropMenu],["\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",ce.c.EWBasket],["\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",ce.c.EWNavigationMenu],["\u7F16\u8F91\u5782\u76F4\u83DC\u5355",ce.c.EWNavigationMenuV],["\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",ce.c.EWNavigationMenuH],["\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",ce.c.EWMobileTabBars],["\u7F16\u8F91\u5206\u6BB5\u5668",ce.c.EWSegmentedControl],["\u7F16\u8F91\u6298\u53E0\u9762\u677F",ce.c.EWCollapse],["\u7F16\u8F91\u6807\u7B7E\u9875",ce.c.EWTabs],["\u7F16\u8F91\u5206\u9875\u5668",ce.c.EWPaginationMobile],["\u7F16\u8F91Web\u5206\u6BB5\u5668",ce.c.EWPaginationWeb],["\u7F16\u8F91\u8FDE\u63A5\u7EBF",ce.c.EWElbow],["\u7F16\u8F91\u56FE\u8868",ce.c.EWChart],["\u7F16\u8F91\u6837\u5F0F",ce.c.EWidgets]])),BT=(0,$s.R)(()=>new Map([[ce.c.CategoryPage,{label:"\u9875\u9762",info:{isCategory:!0}}],[ce.c.CPage,{label:"\u65B0\u5EFA\u9875\u9762",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C",category:ce.c.CategoryPage}}],[ce.c.CPageCopy,{label:"\u521B\u5EFA\u9875\u9762\u526F\u672C",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ce.c.CategoryPage}}],[ce.c.CopyPage,{label:"\u590D\u5236\u9875\u9762",info:{fuzzTag:"",category:ce.c.CategoryPage}}],[ce.c.CutPage,{label:"\u526A\u5207\u9875\u9762",info:{fuzzTag:"",category:ce.c.CategoryPage}}],[ce.c.PastePage,{label:"\u7C98\u8D34\u9875\u9762",info:{fuzzTag:"",category:ce.c.CategoryPage}}],[ce.c.ToggleClipContent,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",info:{fuzzTag:"",category:ce.c.CategoryPage}}],[ce.c.EPageLayout,{label:"\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",info:{fuzzTag:"",category:ce.c.CategoryPage}}],[ce.c.EPage,{label:"\u7F16\u8F91\u9875\u9762",info:{fuzzTag:"\u7F16\u3001\u8C03\u3001\u6B63\u3001\u4FEE\u3001bg\u3001\u677F\u3001\u767D\u3001\u533A\u3001\u8272\u3001\u57DF\u3001\u673A\u578B\u3001\u5C3A\u3001\u5BF8\u3001iphone\u3001\u82F9\u679C\u3001ios\u3001mac\u3001\u624B\u8868\u3001watch\u3001h5\u3001\u5927\u5C4F\u3001\u7535\u89C6\u3001\u81EA\u5B9A\u4E49\u3001huawei\u3001\u624B\u673A\u3001\u534E\u4E3A\u3001google\u3001\u7F51\u9875\u3001web\u3001pad\u3001book\u3001\u5DE5\u4E1A\u3001hmi\u3001\u4E2D\u63A7\u3001\u8F66\u3001\u516C\u4F17\u53F7\u3001\u5FAE\u4FE1\u3001\u5C01\u9762\u3001banner\u3001\u7535\u5546\u3001\u6536\u5F92\u3001\u5E97\u62DB",category:ce.c.CategoryPage}}]])),UT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u9875\u9762",ce.c.CPage],["\u9875\u9762",ce.c.CategoryPage],["\u521B\u5EFA\u9875\u9762\u526F\u672C",ce.c.CPageCopy],["\u590D\u5236\u9875\u9762",ce.c.CopyPage],["\u526A\u5207\u9875\u9762",ce.c.CutPage],["\u7C98\u8D34\u9875\u9762",ce.c.PastePage],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",ce.c.ToggleClipContent],["\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",ce.c.EPageLayout],["\u7F16\u8F91\u9875\u9762",ce.c.EPage]])),FT=(0,$s.R)(()=>new Map([[ce.c.CategoryCanvas,{label:"\u753B\u5E03",info:{isCategory:!0}}],[ce.c.CCanvas,{label:"\u65B0\u5EFA\u753B\u5E03",info:{fuzzTag:"\u65B0\u5EFA\u3001\u751F\u6210\u3001\u7ED9\u6211\u3001\u521B\u5EFA\u3001\u60F3\u8981\u3001\u753B\u5E03\u3001\u753B\u677F\u3001\u767D\u677F\u3001\u533A\u3001\u5236\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ce.c.CategoryCanvas}}],[ce.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ce.c.CategoryCanvas}}],[ce.c.CDirectory,{label:"\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}],[ce.c.CCanvasCopy,{label:"\u521B\u5EFA\u753B\u5E03\u526F\u672C",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}],[ce.c.MoveCanvas,{label:"\u8F6C\u79FB\u753B\u5E03",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}],[ce.c.ECanvas,{label:"\u7F16\u8F91\u753B\u5E03",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}],[ce.c.DCanvas,{label:"\u5220\u9664\u753B\u5E03",info:{fuzzTag:"\u677F\u3001\u57DF\u3001\u53BB\u3001\u6389\u3001\u9664\u3001\u4E0D\u3001del\u3001\u6E05\u3001\u79FB",category:ce.c.CategoryCanvas}}],[ce.c.CanvasViewRecycle,{label:"\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",info:{fuzzTag:"\u677F\u3001\u767D\u3001\u533A\u3001\u57DF\u3001\u5783\u3001\u573E",category:ce.c.CategoryCanvas}}],[ce.c.CollapseCanvas,{label:"\u6536\u8D77\u753B\u5E03",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}],[ce.c.ExpandCanvas,{label:"\u5C55\u5F00\u753B\u5E03",info:{fuzzTag:"",category:ce.c.CategoryCanvas}}]])),VT=(0,$s.R)(()=>new Map([["\u65B0\u5EFA\u753B\u5E03",ce.c.CCanvas],["\u65B0\u5EFA\u5B50\u753B\u5E03",ce.c.CSubCanvas],["\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",ce.c.CDirectory],["\u521B\u5EFA\u753B\u5E03\u526F\u672C",ce.c.CCanvasCopy],["\u8F6C\u79FB\u753B\u5E03",ce.c.MoveCanvas],["\u7F16\u8F91\u753B\u5E03",ce.c.ECanvas],["\u5220\u9664\u753B\u5E03",ce.c.DCanvas],["\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",ce.c.CanvasViewRecycle],["\u6536\u8D77\u753B\u5E03",ce.c.CollapseCanvas],["\u5C55\u5F00\u753B\u5E03",ce.c.ExpandCanvas]])),zT=(0,$s.R)(()=>new Map([[ce.c.CategoryIntEvents,{label:"\u4EA4\u4E92\u4E8B\u4EF6",info:{isCategory:!0}}],[ce.c.OpenEventsPanel,{label:"\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",info:{fuzzTag:"\u4EA4\u4E92\u3001\u52A8\u753B",category:ce.c.CategoryIntEvents}}]])),WT=(0,$s.R)(()=>new Map([["\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",ce.c.OpenEventsPanel]])),HT=(0,$s.R)(()=>new Map([[ce.c.CategoryLayer,{label:"\u56FE\u5C42\u5143\u7D20",info:{isCategory:!0}}],[ce.c.ToggleLayerLock,{label:"\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",info:{fuzzTag:"",category:ce.c.CategoryLayer}}],[ce.c.ToggleLayerVisible,{label:"\u663E\u793A/\u9690\u85CF\u56FE\u5C42",info:{fuzzTag:"",category:ce.c.CategoryLayer}}],[ce.c.ToggleLayerExpand,{label:"\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",info:{fuzzTag:"",category:ce.c.CategoryLayer}}]])),GT=(0,$s.R)(()=>new Map([["\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",ce.c.ToggleLayerExpand],["\u663E\u793A/\u9690\u85CF\u56FE\u5C42",ce.c.ToggleLayerVisible],["\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",ce.c.ToggleLayerLock]]));var ev=i(80138);const ZT=(0,$s.R)(()=>new Map([[ce.c.CWebPage,{label:"\u751F\u6210Web\u539F\u578B",info:{noCanFuzzy:!0,category:ce.c.AIGC}}],[ce.c.CLargeScreenPage,{label:"\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",info:{noCanFuzzy:!0,category:ce.c.AIGC}}],[ce.c.CCustomComponent,{label:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",info:{noCanFuzzy:!0,category:ce.c.CCustomComponent}}],[ce.c.CWPicture,{label:"\u751F\u6210\u56FE\u7247",info:{noCanFuzzy:!0,category:ce.c.AIInDev}}],[ce.c.CWIcon,{label:"\u751F\u6210\u56FE\u6807",info:{noCanFuzzy:!0,category:ce.c.AIInDev}}],[ce.c.OUnableRecognize,{label:"\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",info:{noCanFuzzy:!0,category:ce.c.AIQ}}],[ce.c.OFreeChatQuestion,{label:"\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",info:{noCanFuzzy:!0,category:ce.c.AIQ}}],[ce.c.OFreeChat,{label:"\u81EA\u7531\u804A\u5929",info:{noCanFuzzy:!0,category:ce.c.AIQ}}]])),KT=(0,$s.R)(()=>new Map([["\u751F\u6210Web\u539F\u578B",ce.c.CWebPage],["\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",ce.c.CLargeScreenPage],["\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",ce.c.CCustomComponent],["\u751F\u6210\u56FE\u7247",ce.c.CWPicture],["\u751F\u6210\u56FE\u6807",ce.c.CWIcon],["\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",ce.c.OUnableRecognize],["\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",ce.c.OFreeChatQuestion],["\u81EA\u7531\u804A\u5929",ce.c.OFreeChat]])),zX={label:"\u667A\u80FD\u6307\u4EE4",info:{isCategory:!0}},WX={label:"AIGC",info:{isCategory:!0}},U3=(0,$s.R)(()=>{const e=mT(),t=gT(),n=uT(),r=cT(),s=pT(),c=vT(),d=bT(),p=wT(),g=AT(),y=kT(),w=IT(),_=_T(),j=LT(),N=jT(),Z=OT(),Q=BT(),se=FT(),ie=zT(),he=HT(),xe=ZT(),Se=new Map,_e=[...e,...Se,...t,...n,...r,...s,...c,...d,...p,...g,...y,...w,..._,...j,...N,...Z,...Q,...se,...ie,...he,...xe];return tv(_e),new Map(_e)}),YT=(0,$s.R)(()=>{const e=fT(),t=dT(),n=yT(),r=xT(),s=hT(),c=CT(),d=ST(),p=MT(),g=ET(),y=TT(),w=PT(),_=NT(),j=DT(),N=RT(),Z=UT(),Q=VT(),se=WT(),ie=GT(),he=KT();return new Map([...e,...n,...t,...r,...s,...c,...d,...p,...g,...y,...w,..._,...j,...N,...Z,...Q,...se,...ie,...he])}),XT=(0,$s.R)(()=>[ce.c.Save,ce.c.ViewVersionRecord,ce.c.CreateNewVersion,ce.c.ToggleViewShare,ce.c.Cut,ce.c.Past,ce.c.Copy,ce.c.PastProperties,ce.c.ComSelectAll,ce.c.ToggleHandTool,ce.c.Preview,ce.c.Group,ce.c.UnGroup,ce.c.CreateMaster,ce.c.CreatePanel,ce.c.TogglePageTransState,ce.c.TogglePanelTransState,ce.c.Delete,ce.c.AlignmentLeft,ce.c.AlignmentRight,ce.c.AlignmentTop,ce.c.AlignmentBottom,ce.c.AlignmentCenter,ce.c.AlignmentMiddle,ce.c.AlignmentHorizontal,ce.c.AlignmentVertical,ce.c.ToggleRuler,ce.c.ToggleReferenceLine,ce.c.ToggleAlignLine,ce.c.ToggleSticky,ce.c.ToggleComment,ce.c.ToggleMultiplayerMouse,ce.c.ToggleLeftSide,ce.c.ToggleRightSide,ce.c.ZoomIn,ce.c.ZoomOut,ce.c.ZoomToHundred,ce.c.ZoomSelection,ce.c.FitCanvas,ce.c.FullScreenMode,ce.c.CCanvasCopy,ce.c.MoveCanvas,ce.c.DCanvas,ce.c.CanvasViewRecycle,ce.c.CollapseCanvas,ce.c.ExpandCanvas,ce.c.CPageCopy,ce.c.CopyPage,ce.c.CutPage,ce.c.PastePage,ce.c.ToggleLayerLock,ce.c.ToggleLayerVisible,ce.c.ToggleLayerExpand,ce.c.CWAndroidSwitch,ce.c.CWIosSwitch,ce.c.CDynCpts,ce.c.CVector,ce.c.OpenColorPicker,ce.c.DWAndroidSwitch,ce.c.DWIosSwitch,ce.c.OpenEventsPanel,ce.c.NewFeature,ce.c.ToggleShortcutKey,ce.c.OpenHelperCenter,ce.c.Feedback,ce.c.OnlineSupport]),QT=()=>{const t=[[ce.c.SWRichText,{label:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",info:{fuzzTag:"",category:ce.c.CategorySelected,trackInfo:{input:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({"font-family":"PingFangSC"}),function:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",attr:JSON.stringify({"font-family":"PingFangSC"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{"font-family":"PingFangSC"}}],[ce.c.CWRect,{label:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",info:{fuzzTag:"",category:ce.c.CategoryBW,trackInfo:{input:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:2,"fill-color":"\u6D45\u7070"}),function:"\u65B0\u5EFA\u77E9\u5F62",attr:JSON.stringify({count:2,"fill-color":"#d3d3d3"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:2,"fill-color":"#d3d3d3"}}],[ce.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:ce.c.CategoryPreference}}],[ce.c.SearchMktSource,{label:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",info:{fuzzTag:"",category:ce.c.CategoryCommonOperation,trackInfo:{input:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),function:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",attr:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}}],[ce.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:ce.c.CategoryLayoutView}}],[ce.c.FullScreenMode,{label:"\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u89C8",category:ce.c.CategoryLayoutView}}],[ce.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:ce.c.CategoryFile}}],[ce.c.CPage,{label:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",info:{fuzzTag:"",category:ce.c.CategoryPage,trackInfo:{input:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:5,"device-size":"iphone"}),function:"\u65B0\u5EFA\u9875\u9762",attr:JSON.stringify({count:5,"device-size":"iphone"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:5,"device-size":"iphone"}}],[ce.c.OpenColorPicker,{label:"\u5438\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:ce.c.CategoryFile}}],[ce.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:ce.c.CategoryHelpCenter}}],[ce.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:ce.c.CategoryHelpCenter}}],[ce.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ce.c.CategoryBW},args:{count:1,row:5,column:5}}],[ce.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ce.c.CategoryFile}}],[ce.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ce.c.CategoryCanvas}}],[ce.c.SWRect,{label:"\u9009\u4E2D\u6240\u6709\u77E9\u5F62\u7EC4\u4EF6",info:{fuzzTag:"",category:ce.c.CategorySelected}}],[ce.c.AIGC,{label:"\u5E2E\u6211\u8BBE\u8BA1\u4E00\u4E2A\u65C5\u884CAPP",info:{fuzzTag:"",category:ce.c.CategoryAI}}],[ce.c.AIGC,{label:"\u751F\u6210\u7B14\u8BB0APP\u7684PRD\u6587\u6863",info:{fuzzTag:"",category:ce.c.CategoryAI}}],[ce.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u5546\u54C1\u9500\u552E\u7EDF\u8BA1\u8868",info:{fuzzTag:"",category:ce.c.CategoryAI}}],[ce.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u6E38\u620F\u884C\u4E1A\u53D1\u5C55\u8D8B\u52BF\u56FE",info:{fuzzTag:"",category:ce.c.CategoryAI}}],[ce.c.AIGC,{label:"\u7ED9\u6211\u4E00\u4E2ACRM\u7CFB\u7EDF\u6743\u9650\u529F\u80FD\u7ED3\u6784\u56FE",info:{fuzzTag:"",category:ce.c.CategoryAI}}]];tv(t),t.forEach(s=>{s[1].info.isRecommend=!0});const n=[],r=t.slice();for(;n.length<5&&r.length>0;){const s=Math.floor(Math.random()*r.length),c=r.splice(s,1)[0];n.push(c)}return n},tv=e=>{e.forEach(t=>{const[n,r]=t;let s="";if(n.includes("C-")||n===ce.c.CreateChart)s="v8Cmd/create";else{var c;if(ev.K["v8Cmd/"+((c=r.info)==null?void 0:c.category)]){var d;s="v8Cmd/"+((d=r.info)==null?void 0:d.category)}ev.K["v8Cmd/"+n]&&(s="v8Cmd/"+n)}r.iconName=s})},JT={unicode:!0,interSplit:"[^A-Za-z\\d\u4E00-\u9FA5']+",intraSplit:"[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraBound:"[A-Za-z\\d]\u4E00-\u9FA5|\u4E00-\u9FA5[A-Za-z\\d]|[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraChars:"[\u4E00-\u9FA5]",intraContr:""},F3=new _g(JT),qT=.7;let uf,V3=!1;const $T=e=>{let{nlpMode:t}=e;const n=(0,l.useMemo)(()=>Array.from(U3()).filter(w=>{var _,j;let[N,Z]=w;return!((_=Z.info)!=null&&_.noCanFuzzy)&&!((j=Z.info)!=null&&j.isCategory)}),[]),r=(0,l.useMemo)(()=>YT(),[]),s=(0,l.useMemo)(()=>n.map(w=>{let[_,{label:j,info:{fuzzTag:N}}]=w;return j+" "+(N||"")}),[n]),[c,d]=(0,l.useState)([]),p=(0,l.useCallback)(w=>{const _=w.replace(/([\u4e00-\u9fa5])/g,"$1 "),j=F3.filter(s,_);let N=[];if(!w||!j||!j.length)return[];try{const Z=F3.info(j,s,_),se=F3.sort(Z,s,_).map(ie=>n[Z.idx[ie]]);N=Iu()(se)}catch(Z){const Q=j.map(se=>n[se]);N=Iu()(Q)}return["\u5220","\u9664","\u5220\u9664"].find(Z=>Z===w)&&(N=[[ce.c.Delete,U3().get(ce.c.Delete)]]),N},[n,s]),g=(0,l.useCallback)(async w=>{uf&&uf.abort(),(w||!uf)&&(uf=new AbortController),V3=!0;const _=setTimeout(()=>{V3&&uf.abort()},1e3),j=performance.now(),N=await(0,c2.GE)({searchValue:w,signal:uf.signal},t);if(clearTimeout(_),V3=!1,!w){d([]);return}if(!N)return;const Z=p(w),Q=[ce.c.AIGC,{label:w,dCategory:ce.l.AI,info:{},iconName:"v8Cmd/"+ce.c.AIGC}],se=[ce.c.AIQ,{label:w,dCategory:ce.l.AI,info:{},iconName:"v8Cmd/"+ce.c.AIQ}];if(!N){Z.push(Q),Z.push(se),d(Z);return}const{attrs:ie,intent:he}=N,xe=he.filter(De=>{let[Je,Ne]=De;return Number(Ne)>qT});if(!xe&&!xe.length)return;const Se=[];xe.forEach(De=>{var Je;let[Ne,pt]=De;const _t=r.get(Ne);if(!_t||(!ie||Object.keys(ie).length===0)&&Z.find(zt=>{let[Dt]=zt;return Dt===_t})||Z.find(zt=>{let[Dt,sn]=zt;return sn.label===w}))return;const gt=Iu()(U3().get(_t));gt.dCategory=ce.l.NLP;const Ct=((Je=gt.info)==null?void 0:Je.category)||"";if([ce.c.AIGC,ce.c.AIQ,ce.c.CCustomComponent,ce.c.AIInDev].includes(Ct)||(gt.info.category=ce.c.CategoryNLP),ie&&Object.keys(ie).length>0){let zt={};Object.entries(ie).forEach(Dt=>{let[sn,{value:Rn}]=Dt;zt=Object.assign(zt,{[sn]:Rn})}),gt.args=zt,gt.info.attrs=_E(w,ie),gt.info.trackInfo={input:w,type:"nlp",attr_no_conv:JSON.stringify(zt),function:gt.label,server:t,duration_ident:Math.round(performance.now()-j)}}else gt.info.trackInfo={input:w,type:"nlp",function:gt.label,server:t,duration_ident:Math.round(performance.now()-j)};gt.label=Ne,Se.push([_t,gt])}),Z.push(Q),Z.push(se);const _e=[...Se,...Z];_e.sort((De,Je)=>[ce.c.AIGC,ce.c.AIQ].includes(De[0])||[ce.c.AIGC,ce.c.AIQ].includes(Je[0])?0:De[1].label===w&&Je[1].label!==w?-1:De[1].label!==w&&Je[1].label===w?1:0),d(_e)},[d,r,t,p]);return{handleAICommendSearch:(0,l.useCallback)(w=>{g(w)},[g]),cmdSearchResult:c,setCmdSearchResult:d}};class hf{static getInstance(t){return!hf.instance&&t&&(hf.instance=t),hf.instance}}var t1=i(49612),nv=i(57999);const e_=e=>{let{onClose:t,accountData:n,actions:r,semanticValue:s,nlpMode:c}=e;const d=(0,l.useMemo)(()=>XT(),[]),p=(0,l.useMemo)(()=>(0,t1.$I)().find(j=>j.type===t1.SR.Semantic),[]),g=j=>{const{user:N,org:Z,project:Q}=n,{updateCurrentOrg:se,updateCurrentUser:ie}=r;Q.is_org_project&&Z?se({org:Object.assign(Z,{used_times:j})}):ie({user:Object.assign(N,{used_times:j})})},y=j=>{const{user:N,org:Z,project:Q}=n,{updateCurrentOrg:se,updateCurrentUser:ie}=r;Q.is_org_project&&Z?se({org:Object.assign(Z,{ai_points:j})}):ie({user:Object.assign(N,{ai_points:j})})},{handleConvertComponent:w}=G8({currentAIComponent:p,semanticValue:s,...n,onUpdateAIUsedTimes:g,onUpdateAIPoints:y,actions:r});return{handleCommandAction:(0,l.useCallback)(async(j,N)=>{var Z,Q,se;const{args:ie,info:he}=j[1]||{},{isRecommend:xe,trackInfo:Se}=he||{},_e=Ct=>{let{nlpType:zt,label:Dt}=Ct;return{input:s||j[1].label||Dt,type:xe?"\u63A8\u8350\u6307\u4EE4":zt,function:Dt,server:c}},De=()=>{const{user:Ct,project:zt}=n||{},{id:Dt}=Ct||{},{cid:sn}=zt||{};return{user_id:Dt,project_cid:sn}},Je=Ct=>{(0,c2.Uy)({...Ct,...De()})};if(j[0]===ce.c.AIInDev||((Z=j[1].info)==null?void 0:Z.category)===ce.c.AIInDev){r==null||r.notice({text:"\u529F\u80FD\u6B63\u5728\u5F00\u53D1\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85",svgName:"chatGPT/tip-warning"}),Je({nlpType:"nlp",label:"\u5F00\u53D1\u4E2D"});return}if(j[0]===ce.c.AIGC||((Q=j[1].info)==null?void 0:Q.category)===ce.c.AIGC){w(s||j[1].label),Je(Se?{...Se,attr:JSON.stringify(N),server:c}:_e({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u8BD5\u8BD5AI"}));return}if(j[0]===ce.c.AIQ||((se=j[1].info)==null?void 0:se.category)===ce.c.AIQ){await r.handleAIQuestion(s),setTimeout(()=>{nv.A.emit(nv.d,s)},10),Je(Se?{...Se,attr:JSON.stringify(N),server:c}:_e({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u95EE\u95EEAI"}));return}if(j[0]===ce.c.CCustomComponent){r.setAIComponentSourceCache("\u8BED\u4E49\u6307\u4EE4"),await r.aiComponentGenerate({semanticValue:s});return}const Ne=performance.now();let pt=!1;if(!d.includes(j[0])&&ie&&Object.keys(ie).length>0&&!xe){pt=!0;const Ct=()=>{r.updateAIState({aiGenerating:!0})},zt=performance.now(),Dt=setTimeout(Ct,400),sn=await(0,c2.x$)(ie,c),On=performance.now()-zt;On>400&&On<800&&await new Promise(Lo=>setTimeout(Lo,400)),Dt&&clearTimeout(Dt),r.updateAIState({aiGenerating:!1}),sn&&(N=sn)}const _t=hf.getInstance();if(await(_t==null?void 0:_t.exec(j[0],PE(N))),Se){const Ct={...Se,attr:JSON.stringify(N),server:c,...De()};pt&&(Ct.duration_conv=Math.round(performance.now()-Ne)),(0,c2.Uy)(Ct)}else{var gt;Je(_e({nlpType:xe?"\u63A8\u8350\u6307\u4EE4":((gt=j[1])==null||(gt=gt.info)==null||(gt=gt.trackInfo)==null?void 0:gt.type)||"\u786C\u5339\u914D",label:j[1].label}))}},[s,w,c,d,r,n])}},ov="8082",t_=e=>{const{handleMovePanel:t,recommendPosition:n,generating:r,accountData:s,actions:c}=e,{user:d,org:p,project:g}=s,y=(0,l.useRef)(null),[w,_]=(0,l.useState)(!1),[j,N]=(0,l.useState)(""),[Z,Q]=(0,l.useState)([]),se=(0,l.useMemo)(()=>QT(),[]),ie=()=>{c.updateAIState({showAISemantic:!1})},{cmdSearchResult:he,handleAICommendSearch:xe,setCmdSearchResult:Se}=$T({nlpMode:ov}),{handleCommandAction:_e}=e_({onClose:ie,accountData:s,actions:c,semanticValue:j,nlpMode:ov});(0,l.useEffect)(()=>{const Ct=!j||!he.length?se:he;Q(n==="top"?Ct.slice().reverse():Ct)},[n,j,he,se]);const De=!r&&w,Je=(0,l.useCallback)(async Ct=>{var zt;N(""),Se([]),_(!1),y&&((zt=y.current)==null||zt.blur()),await _e(Ct,Ct[1].args),setTimeout(()=>{var Dt;y&&((Dt=y.current)==null||Dt.focus())},250)},[_e,Se]),Ne=(0,l.useCallback)(Ct=>{N(Ct),Ct||Se([])},[N,Se]),pt=(0,l.useCallback)(Ct=>{(Ct.target.closest(".ai-semantic-recommend-panel")||Ct.target.closest(".semantic-title")||Ct.target.closest(".semantic-input")&&!Ct.target.closest(".ai-semantic-input")||Ct.target.closest(".semantic-gap"))&&(Ct.stopPropagation(),Ct.preventDefault())},[]),_t=(0,l.useCallback)(Ct=>{t(Ct,y==null?void 0:y.current)},[y,t]),gt=(0,l.useCallback)(()=>{(0,Ql.Ix)("https://modao.cc/hc/articles/407","_blank","noreferrer")},[]);return(0,o.jsxs)(HI,{children:[(0,o.jsxs)("div",{className:"semantic-top",children:[(0,o.jsxs)("div",{className:"semantic-title",onMouseDown:_t,children:[(0,o.jsxs)("div",{className:"title-left",children:[(0,o.jsx)(Fd.C,{name:"chatGPT/ai-semantic-small",isColorPure:!0}),I18N.ChatGPT.ai_semantic,(0,o.jsxs)("div",{className:"ai-help",children:[(0,o.jsx)(Fd.C,{className:"ai-help-icon",name:"chatGPT/ai-cmd-help",isColorPure:!0}),(0,o.jsxs)("div",{className:"ai-help-content",children:[" \u667A\u80FD\u6307\u4EE4\u529F\u80FD\u6B63\u5904\u4E8EBeta\u6D4B\u8BD5\u9636\u6BB5\uFF0C \u8BE6\u7EC6\u4FE1\u606F\u8BF7\u53C2\u9605 ",(0,o.jsx)("span",{onClick:gt,children:"\u5E2E\u52A9\u6587\u6863"}),(0,o.jsx)("div",{className:"bot-content"})]})]})]}),(0,o.jsxs)("div",{className:"title-right",children:[!ENV.IS_WONDER_SHARE&&(0,o.jsx)(Fd.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0}),(0,o.jsx)(Fd.C,{className:"close",name:"chatGPT/ai-semantic-close",isColorPure:!0,onClick:ie})]})]}),(0,o.jsx)(eT,{ref:y,semanticValue:j,generating:r,accountData:s,actions:c,onAISearch:xe,setSemanticValue:Ne,setInputFocus:_})]}),(0,o.jsx)("div",{className:"semantic-gap"}),De&&(0,o.jsx)(JI,{org:p,user:d,project:g,isInputFocus:w,onClickRecommend:Je,recommendPosition:n,recommendList:Z}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(pt)})]})},n_=(0,l.memo)(t_),o_=(0,l.memo)(function(t){const{panelPosition:n,recommendPosition:r,updatePositionHandle:s,handleMouseDown:c}=GI();return(0,l.useEffect)(()=>(s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[s]),(0,o.jsx)(WI,{id:"ai-semantic-modal",style:{left:n.left,top:n.top},children:(0,o.jsx)(n_,{handleMovePanel:c,recommendPosition:r,...t})})}),a_=e=>{const t=e(),{actions:{getCmdExec:n}}=t;return n&&hf.getInstance(n()),(0,o.jsx)(o_,{...t})},r_=E.Ay.div.withConfig({displayName:"styles__StyledAIChatPanelContainer",componentId:"sc-i9zp7e-0"})([".single-resizer{border:0;z-index:111;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}.ai-mark-text{color:",";text-align:center;line-height:22px;margin-top:-12px;font-size:12px;}"],e=>e.theme.color_text_disabled01),i_=(0,E.Ay)(g8).withConfig({displayName:"styles__StyledAIChatPanel",componentId:"sc-i9zp7e-1"})(["z-index:112;border-radius:10px;border:1px solid ",";background:",";"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white);var s_=i(44007);const z3="AI_CHAT_PANEL_POSITION_TOP",W3="AI_CHAT_PANEL_POSITION_LEFT",av="AI_CHAT_PANEL_POSITION_WIDTH_new",rv="AI_CHAT_PANEL_POSITION_HEIGHT_new",l_=e=>{const{actions:{handleToggleAIChatPanel:t},commonData:n}=e,r=800,s=600,c=300,d=550,p=1200,g=800,y=78,w=328,[_,j]=(0,l.useState)(()=>(0,Gl.Yt)(av,r,Gl.qW.Number)),[N,Z]=(0,l.useState)(()=>(0,Gl.Yt)(rv,s,Gl.qW.Number)),[Q,se]=(0,l.useState)(()=>(0,Gl.Yt)(z3,y,Gl.qW.Number)),[ie,he]=(0,l.useState)(()=>(0,Gl.Yt)(W3,w,Gl.qW.Number)),[xe,Se]=(0,l.useState)(window.innerWidth),[_e,De]=(0,l.useState)(window.innerHeight),Je=(0,l.useCallback)((_t,gt)=>{const Ct=Math.max(Math.min(gt,_e-550),0),zt=Math.max(Math.min(_t,xe-300),0);se(Ct),he(zt),(0,Gl.a0)(z3,Ct,Gl.qW.Number),(0,Gl.a0)(W3,zt,Gl.qW.Number)},[_e,xe]),Ne=(0,l.useCallback)(()=>{Se(window.innerWidth),De(window.innerHeight),Je(ie,Q)},[Je,ie,Q]),pt=(0,l.useCallback)(_t=>{const{left:gt,top:Ct,width:zt,height:Dt}=_t;zt>c&&zt<p&&gt<xe-300&&gt>0&&(he(gt),j(zt),(0,Gl.a0)(W3,gt,Gl.qW.Number),(0,Gl.a0)(av,zt,Gl.qW.Number)),Dt>d&&Dt<g&&Ct<_e-550&&Ct>0&&(se(Ct),Z(Dt),(0,Gl.a0)(z3,Ct,Gl.qW.Number),(0,Gl.a0)(rv,Dt,Gl.qW.Number))},[_e,xe]);return(0,l.useEffect)(()=>(window.addEventListener("resize",Ne),()=>{window.removeEventListener("resize",Ne)}),[Ne]),(0,o.jsxs)(r_,{children:[(0,o.jsx)(dr.A,{position:{left:ie,top:Q},dragContainer:"ai-chat-panel",onMove:Je,children:(0,o.jsxs)(i_,{id:"ai-chat-panel",style:{width:_,height:N},children:[(0,o.jsx)(C8.A,{isAIChatPanel:!0,title:I18N.ChatGPT.ai_chat_dialogue,closeModal:t,...n}),(0,o.jsx)(s_.A,{...e}),(0,o.jsx)("div",{className:"ai-mark-text",children:I18N.ChatGPT.ai_mark_text})]})}),(0,o.jsx)(Tc.A,{classname:"resizer",top:Q,left:ie,width:_,height:N,zoomable:"n,s,e,w,se,sw,ne,nw",rotatable:!1,rotateAngle:0,onResize:pt,cursorAngle:0})]})},c_=(0,l.memo)(l_),d_=e=>{const t=e();return(0,o.jsx)(c_,{...t})};var Mh=i(88670),om=i(75150),Rf=i(71577),iv=i(18833);const Um=e=>{(0,hd.kH)("version_record_operation",{operation_type:e})};var sv=i(23767);const Pg=async e=>{let{projectCid:t,accessToken:n="",dispatch:r}=e;r({type:"versions:update",payload:{fetching:!0}});let s=[];s=await(0,Rf.c4)(t,n),r({type:"versions:set:versions",payload:{versions:s}}),r({type:"versions:update",payload:{fetched:!0,fetching:!1}})},lv=async e=>{let{projectCid:t,dispatch:n,noEdit:r=!1,title:s,desc:c,category:d="active",projectName:p,currentUserName:g,currentOrgCid:y}=e;await rootSdk.saveAsync(),s||(s=an()().format("YYYY.MM.DD HH:mm"));try{const{clientData:w,nextCheckpoint:_}=await(0,Rf.JL)({projectCid:t,title:s,desc:c||"",category:d});MB.versionNextCheckpoint=_,n({type:"versions:create",payload:{newVersion:w}}),MB.notice({text:I18N.VersionManagementPane.version_toast_create_success,type:"success"}),Um("\u6DFB\u52A0\u7248\u672C"),ENV.IS_ON_PREMISES&&(0,sv.Bf)(sv.xZ,{projectName:p,userName:g,orgCid:y})}catch(w){switch(w.errMsg){case"PV_CREATE_NOT_IN_ORG":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.ProjectVersionFromCount}});break;case"P_NO_NEW_CHANGE":MB.notice({text:I18N.VersionManagementPane.version_toast_repeat,type:"warning"});break;case"PV_CREATE_COUNT_EXCEEDED":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.ProjectVersionFromCount}});break;default:throw await(0,iv.FY)(w),w}}finally{}},p_=async e=>{let{projectCid:t,versionCid:n,newTitle:r,newDesc:s,dispatch:c,allVersions:d}=e,p;try{p=await(0,Rf.LD)({projectCid:t,versionCid:n,newTitle:r,newDesc:s})}catch(g){/404/.test(g.message)?(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),await Pg({projectCid:t,dispatch:c})):await(0,iv.FY)(g);return}if(p&&p.result==="success"){const g=d.map(y=>y.cid===n?{...y,description:s,title:r,update_at:new Date().toLocaleString(void 0,{hour12:!1})}:y);c({type:"versions:set:versions",payload:{versions:g}}),Um("\u7F16\u8F91\u7248\u672C")}c({type:"versions:update",payload:{currentEditing:void 0}})},u_=async e=>{let{projectCid:t,versionCid:n,allVersions:r,currentViewing:s,dispatch:c}=e;if(s&&n===s.cid){const p=r.indexOf(r.find(y=>y.cid===n)),g=r[p+1];c(g?{type:"versions:update",payload:{currentViewing:{cid:g.cid,title:g.title}}}:{type:"versions:update",payload:{currentViewing:void 0}})}const d=await(0,Rf.CH)({projectCid:t,versionCid:n});if(d&&d.result==="success"){const p=r.filter(g=>g.cid!==n);c({type:"versions:set:versions",payload:{versions:p}}),c({type:"versions:model:deleting:close"}),MB.notice({text:I18N.VersionManagementPane.version_toast_delete_success}),Um("\u5220\u9664\u7248\u672C")}},h_=async e=>{await(0,Rf.QV)({versionCid:e,title:an()().format("YYYY.MM.DD HH:mm"),description:""}),window.history.replaceState(void 0,void 0,"#version=reset"),window.onbeforeunload=void 0,location.reload()},m_=async e=>{let{versionCid:t,title:n,dispatch:r}=e;const s=window.cssCur.getRoomStat();!(s!=null&&s.length)||s.length===1?r({type:"versions:model:resetting:open",payload:{currentResetting:{cid:t,title:n},currentCollaborators:{collaborators:[],checked:!0}}}):r({type:"versions:model:resetting:open",payload:{currentResetting:{cid:t,title:n},currentCollaborators:{collaborators:s,checked:!1}}})};var cv=i(94456);const f_=(e,t)=>{const n=ki();!MB.global.experienceLoginModalHelper("isSave")&&n&&n({type:"entry:start:saving"})},g_=(e,t)=>{const n=ki();n&&n({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}})},y_=(e,t)=>{const n=ki();n&&n({type:"entry:toolbar:open:versionControl:modal"})},v_=(e,t)=>{const n=ki();if(!n)return;const r=(0,kc.dP)();if(!r)return;const{isEditingProjectMain:s}=(0,we.r)(r);s&&(MB.global.experienceLoginModalHelper("isSave")||(n({type:"toolbar:sharingManager:toggle"}),n({type:"entry:update:novice:guide:and:task",payload:{guideType:Or.c.GUIDE_NOVICE_2309_STEP_5,taskType:Or.c.GUIDE_NOVICE_2309_TASK_5}})))},x_=(e,t)=>{if(!t||!t.file_name){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}const n=ki();if(!n)return;const{file_name:r}=t;n({type:"entry:update:root-project:name",payload:{name:r}})},b_=(e,t)=>{const n=ki();if(!n)return;const r=(0,kc.dP)();if(!r)return;const s=(0,re.PL)(r),c=(0,re.HW)(r),d=(0,re.wA)(r);if(n&&n({type:"entry:toolbar:open:versionControl:modal"}),!d)return;const{cid:p,name:g}=s||{};lv({projectCid:p,projectName:g,currentUserName:c.name,currentOrgCid:d.cid,dispatch:n})},C_=(e,t)=>{cv.w[(0,cv.y)()]()(r=>{let{sRGBHex:s}=r;return MB.action("entry:i:key",{color:s})})},w_=()=>{const e=xd.getInstance();e.register("Save",f_),e.register("ViewFileInfo",g_),e.register("ViewVersionRecord",y_),e.register("ToggleViewShare",v_),e.register("ProjectRename",x_),e.register("CreateNewVersion",b_),e.register("OpenColorPicker",C_)},S_=(e,t)=>{const n=ki();n&&n({type:"entry:design:zoom:in"})},A_=(e,t)=>{const n=ki();n&&n({type:"entry:design:zoom:out"})},M_=(e,t)=>{const n=ki();n&&n({type:"entry:set:scale",payload:{scale:100}})},k_=(e,t)=>{const n=ki();n&&n({type:"entry:design:zoom:selection"})},E_=(e,t)=>{const n=ki();n&&n({type:"entry:zoom:fit:scale:offset"})},I_=(e,t)=>{const n=ki();n&&n({type:"entry:toolbar:toggle:fullScreen"})},T_=()=>{const e=xd.getInstance();e.register("ZoomIn",S_),e.register("ZoomOut",A_),e.register("ZoomToHundred",M_),e.register("ZoomSelection",k_),e.register("FitCanvas",E_),e.register("FullScreenMode",I_)},__=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:theme"})},P_=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:ruler"})},L_=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:showRulerReferLine"})},N_=(e,t)=>{const n=ki();n&&n({type:"entry:isShowSticky:toggle"})},j_=(e,t)=>{const n=ki();n&&n({type:"comment:toggle:isShowCommentInCanvas"})},D_=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:multiplayerMouse"})},O_=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:AlignLine"})},R_=(e,t)=>{const n=ki();n&&n({type:"entry:toggle:left-nav-panel"})},B_=(e,t)=>{const n=ki();n&&n({type:"entry:toggle:right-panel"})},U_=()=>{const e=xd.getInstance();e.register("ToggleTheme",__),e.register("ToggleRuler",P_),e.register("ToggleReferenceLine",L_),e.register("ToggleSticky",N_),e.register("ToggleComment",j_),e.register("ToggleMultiplayerMouse",D_),e.register("ToggleAlignLine",O_),e.register("ToggleLeftSide",R_),e.register("ToggleRightSide",B_)};var Bf=i(19199),F_=i(30275);const V_=async(e,t)=>{const n=ki();if(!n)return;const r=Number(t==null?void 0:t.undo_steps)||1;for(let s=0;s<r;s++)await n({type:"entry:undo-stack:undo"}),await new Promise(c=>setTimeout(c,3))},z_=async(e,t)=>{const n=ki();if(!n)return;const r=Number(t==null?void 0:t.redo_steps)||1;for(let s=0;s<r;s++)await n({type:"entry:undo-stack:redo"}),await new Promise(c=>setTimeout(c,3))},dv={png:"png",pdf:"pdf",htmlzip:"htmlzip",apk:"apk"},W_=(e,t)=>{const n=ki();if(MB.global.experienceLoginModalHelper("isSave")||!n)return;const{export_type:r}=t||{};dv[r]&&n({type:"export:update:state",payload:{currentExportTag:dv[r]}}),n({type:"entry:toolbar:open:export_menu"})},H_=(e,t)=>{const n=ki();n&&n({type:"entry:select:all"})},G_=(e,t)=>{const n=ki();n&&n({type:"entry:findReplacePanel:toggle:show"})},Z_=async(e,t)=>{const n=ki(),r=(0,kc.dP)();if(n&&!t&&!r)return;const{selectScreenValue:s}=(0,E3.Gh)(r),{search_keyword:c}=t||{};await n({type:"entry:findReplacePanel:toggle:show"}),c&&await n({type:"findReplacePanel:update",payload:{searchValue:c}}),c&&n({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:s==="current",searchValue:c}})},K_=async(e,t)=>{const n=ki(),r=(0,kc.dP)();if(n&&!t&&!r)return;const{source_text:s,target_text:c}=t||{},d={isFold:!1};s&&(d.searchValue=s),c&&(d.replaceValue=c),await n({type:"entry:findReplacePanel:toggle:show"}),await n({type:"findReplacePanel:update",payload:d}),s&&n({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:!1,searchValue:s}})},Y_=(e,t)=>{const n=ki();n&&n({type:"entry:open:Launch"})},X_=(e,t)=>{const n=ki();if(!n)return;const r=(0,kc.dP)(),s=(0,Oe.p$)(r),c=(0,Pt.kE)(s),d=(0,Pt.MP)(s);if(!s.length){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}if(d||MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"}),!c){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:group:items"})},Q_=(e,t)=>{const n=ki(),r=(0,kc.dP)(),s=(0,Oe.p$)(r);if(!(0,Pt.P6)(s)){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:ungroup:items"})},J_=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const{target_space:s}=t||{},c=s==="org",d=!(0,re.wA)(r),p=(0,Oe.nE)(r),{isEditingUserCombo:g,isEditingOrgCombo:y}=(0,we.r)(r)||{};if(d&&s==="org"){MB.notice({text:"\u4E2A\u4EBA\u7A7A\u95F4\u4E2D\u65E0\u6CD5\u6DFB\u52A0\u7EC4\u4EF6\u81F3\u56E2\u961F",type:"warning"});return}if(!((0,Pt.ju)(p)&&(!g||!d&&!y))){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}MB.global.experienceLoginModalHelper("isSave")||n({type:"entry:create:combo:to:user:org:group",payload:{targetType:c?"org":"user",callback:()=>{(0,Jt.O3)({operation_from:"AI3.0",operation_type:c?Jt.VW.AddToOrgCombo:Jt.VW.AddToMyCombo})}}})},q_=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const s=(0,Oe.nE)(r),c=(0,ve.j)(r),{isEditingBasket:d,isEditingMuban:p,isEditingProjectMain:g}=(0,we.r)(r)||{},y=c||!((g||d||p)&&(0,Pt.jp)(s));if(MB.global.experienceLoginModalHelper("isSave")||y){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}const w=s[0].hotAttr.name||(0,Gt.KD)(s[0].key);n({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:w,onConfirm:async _=>{let{name:j,onSuccess:N}=_;await n({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:j},onSuccess:N}}),n({type:"muban-panel:update:mubanList",payload:{mubanList:MP()}})}}}})},$_=async(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const s=(0,Oe.nE)(r),c=(0,ve.j)(r),d=(0,Pt.jp)(s);if(MB.global.experienceLoginModalHelper("isSave")||c||!d){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}await n({type:"entry:create:basket",payload:{basketType:"bDanli"}}),n({type:"entry:screenContainer:enter:editing:widget"})},eP=(e,t)=>{const n=ki();if(n){if((0,Bf.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:cut:items"}),(0,Lt.P8)()}},tP=(e,t)=>{const n=ki();if(n){if((0,Bf.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:copy:items"}),n({type:"entry:copy:items:properties"}),(0,Lt.P8)()}},nP=(e,t)=>{const n=ki();if(!n||MB.f.editing){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},oP=(e,t)=>{const n=ki();if(!n){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:paste:items:properties"})},aP=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:panelLinkDefaultTransition"})},rP=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:stateLinkDefaultTransition"})},iP=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r||!t)return;const{"link-type":s}=t;let c=1;s==="none"&&(c=0),s==="lightning_line"&&(c=2),n({type:"entry:update:preference",payload:{link_display:c}})},sP=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:containSelect"})},lP=(e,t)=>{const n=ki();if(!n||!(0,ii.uF)()||!(0,ii.b8)()){MB.notice({text:"\u5F53\u524D\u5E73\u53F0\u6682\u4E0D\u652F\u6301",type:"warning"});return}n({type:"preference:toggle:useNativeEyedropper"})},cP=(e,t)=>{const n=ki();n&&n({type:"preference:toggle:dragMode"})},dP=(e,t)=>{const n=ki();n&&n({type:"entry:toolbar:toggle:handTool"})},pP={left:"left","horizontal-center":"center",right:"right",top:"top","vertical-center":"middle",bottom:"bottom","distribute-horizontal":"horizontal","distribute-vertical":"vertical"},kh=(e,t)=>{const n=ki(),r=(0,kc.dP)(),{"align-type":s}=t||{},c=pP[s];if(!n||!r||!t||!c)return;const d=Hn.X.query.getIsShallowEditing(r),p=(0,Oe.p$)(r),g=(0,Y.lY)(r);let y=!1,w=!1;if(p.length>0&&(y=(0,Pt.GS)(p)&&!g&&!d,w=(0,Pt.oR)(p)&&!d),!y&&!w){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n(c==="horizontal"||c==="vertical"?{type:"entry:distribute:items",payload:{direction:c}}:{type:"entry:align:items",payload:{direction:c}})},uP=(e,t)=>{kh("Alignment",{"align-type":"top"})},hP=(e,t)=>{kh("Alignment",{"align-type":"vertical-center"})},mP=(e,t)=>{kh("Alignment",{"align-type":"bottom"})},fP=(e,t)=>{kh("Alignment",{"align-type":"left"})},gP=(e,t)=>{kh("Alignment",{"align-type":"horizontal-center"})},yP=(e,t)=>{kh("Alignment",{"align-type":"right"})},vP=(e,t)=>{kh("Alignment",{"align-type":"distribute-horizontal"})},xP=(e,t)=>{kh("Alignment",{"align-type":"distribute-vertical"})},bP=[zc.lS.Builtin,zc.lS.Icon,zc.lS.Asset,zc.lS.Page],pv={component:zc.lS.Builtin,icon:zc.lS.Icon,picture:zc.lS.Asset,page:zc.lS.Page},CP=async(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const{search_res_type:s,search_res_keyword:c}=t||{search_res_type:"page"},d=pv[s];if(!bP.includes(d)||((0,ht.OW)(r)!==pv[s]&&n({type:"entry:active:popup:panel",payload:{name:d}}),!c))return;n({type:"searchPanel:update:state",payload:{keyword:c}});const g=zc.Mf[d],y=(0,cl.pM)(r),w=[c].concat(y.filter(_=>_!==c)).splice(0,y);n({type:"searchPanel:update:state",payload:{historyKeyWords:w}}),n({type:"entry:search-panel:search:from:keyword",payload:{from:F_.Z.sideBarPanel,category:g,isHistoryWord:!1,isHotKeyWord:!1}})},wP=(e,t)=>{const n=ki();n&&(n({type:"entry:delete:selected-items"}),n({type:"enter:comment:shortcut:del"}))},SP=(e,t)=>{(0,Ql.JW)("https://modao.cc/hc/articles/407","_blank","noreferrer")},AP=()=>{const e=xd.getInstance();e.register("Undo",V_),e.register("Redo",z_),e.register("ToggleExport",W_),e.register("ComSelectAll",H_),e.register("GlobalFindAndReplace",G_),e.register("GlobalFind",Z_),e.register("GlobalReplace",K_),e.register("Preview",Y_),e.register("Group",X_),e.register("UnGroup",Q_),e.register("AddComponent",J_),e.register("Delete",wP),e.register("Cut",eP),e.register("Copy",tP),e.register("Past",nP),e.register("PastProperties",oP),e.register("CreateMaster",q_),e.register("CreatePanel",$_),e.register("TogglePanelTransState",aP),e.register("TogglePageTransState",rP),e.register("LinkDisplayChange",iP),e.register("ToggleSelectMode",sP),e.register("ToggleEyedropper",lP),e.register("ToggleDynamicSpacing",cP),e.register("ToggleHandTool",dP),e.register("Alignment",kh),e.register("AlignmentTop",uP),e.register("AlignmentMiddle",hP),e.register("AlignmentBottom",mP),e.register("AlignmentLeft",fP),e.register("AlignmentCenter",gP),e.register("AlignmentRight",yP),e.register("AlignmentHorizontal",vP),e.register("AlignmentVertical",xP),e.register("SearchMktSource",CP),e.register("AI3Help",SP)};function MP(){throw new Error("Function not implemented.")}var kP=i(95358);const EP=(e,t)=>{const n=ki();n&&n({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}})},IP=(e,t)=>{const n=ki();ENV.IS_MO?(0,Ql.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):n&&n({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},TP=(e,t)=>{const n="",r={nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid};(0,kP.v)({data:r,params:n})},_P=(e,t)=>{const n=document.getElementById("mdOnlineSupport");n==null||n.onclick()},PP=(e,t)=>{const n=ki();ENV.IS_MO?(0,Ql.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):n&&n({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8",frontPageId:"397"}}})},LP=()=>{const e=xd.getInstance();e.register("ToggleShortcutKey",EP),e.register("OpenHelperCenter",IP),e.register("Feedback",TP),e.register("OnlineSupport",_P),e.register("NewFeature",PP)};var H3=i(65209),$u=i(63763);const uv=e=>!e||e==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:e==="italic",bold:e==="bold",underline:e==="underline",strikethrough:e==="strikethrough"},ol=e=>{try{return Xi(e)}catch(t){return null}},HX=(e,t,n)=>{try{if(!t&&!t&&!n)return null;const r=mf(t||"solid");return{bdrColor:fromHexColor(e),bdrIsVisible:!0,bdrStyle:r,bdrWidth:Number(n)||1}}catch(r){return null}},mf=e=>{let t="solid";return e==="dash"?t="dashed":e==="dot"&&(t="dotted"),t},hv=e=>{const t=""+e,n=t.replace(/[^\d.-]/g,"");let r=parseFloat(n);return(t.includes("%")||r>1)&&(r/=100),r},G3=e=>{const{width:t,height:n}=e||{},r={};return Number(t)&&(r.w=Number(t)),Number(n)&&(r.h=Number(n)),r},mv=(e,t)=>{const{"font-color":n,"font-size":r,"font-family":s,"font-format":c,"text-align":d}=e||{},p=[fn.x.WButton,fn.x.WIphoneXSB,fn.x.WMTextInput,fn.x.WMTextArea,fn.x.WMSelect,fn.x.WElbow,fn.x.WDropMenu],g=n?p.includes(t)?Xi(n):n:void 0,y={},w=Number(r);if(g&&(y.textColor=g),w&&(y.fontSize=w),s&&(y.fontFamily=s),w){const _=Eg()(w*1.399+.251);y.lineHeight=_}return d&&(y.horizontalAlign=d),{...y,...uv(c)}},NP=e=>{const{"text-content":t}=e||{};return sf(t||"")},jP=e=>{const{"stroke-color":t,"stroke-type":n,"stroke-weight":r}=e||{},s={};return t&&(s.bdrColor=Xi(t)),n&&(s.bdrStyle=mf(n||"solid")),r&&(s.bdrWidth=Number(r)),s},Z3=e=>{const{"fill-color":t,radius:n,opacity:r}=e||{},s={};r!==void 0&&(s.opacity=hv(r)),Number(n)&&(s.borderRadius=Number(n));const c=ol(t);return c&&(s.fill={fillIsVisible:!0,fill:"solid",solidColor:c}),s},DP=(e,t)=>{try{const{textV1:n}=e||{},{blocks:r}=n||{};if(!n||!r)return null;const{"font-color":s,"font-size":c,"font-family":d,"font-format":p}=t||{},{italic:g,bold:y,underline:w,strikethrough:_}=uv(p);return r&&Object.values(r).forEach(j=>{const{type:N}=j;let Z=j.inlineStyleRanges;N!=="atomic"&&Z&&(s&&(Z=Z.filter(Q=>!Q.style.startsWith("color-"))),c&&(Z=Z.filter(Q=>!Q.style.startsWith("fontsize-")&&!Q.style.startsWith("lineheight-"))),g&&(Z=Z.filter(Q=>Q.style!=="ITALIC")),w&&(Z=Z.filter(Q=>Q.style!=="UNDERLINE")),y&&(Z=Z.filter(Q=>Q.style!=="BOLD")),_&&(Z=Z.filter(Q=>Q.style!=="STRIKETHROUGH")),d&&(Z=Z.filter(Q=>!Q.style.startsWith("fontfamily-")))),j.inlineStyleRanges=Z}),JSON.parse(JSON.stringify(r))}catch(n){return null}},Lg=function(e,t){var n;if(t===void 0&&(t=!0),!e||!e.length)return;const r=(0,kc.dP)();let s=0,c=0;const d=e.reduce((g,y)=>g+y.hotAttr.w,0);if(r){const g=(0,re.X_)(r),y=(0,re.$S)(r),w=(0,re.ER)(r),_={scale:g/100,size:{w:y.width,h:y.height},offset:w},{x:j,y:N}=(0,Rd.Dl)(_,y.left);c=N,s=j-d/2}if(e.forEach(g=>{const{hotAttr:{w:y,h:w}}=g;g.hotAttr.x=s+y/2+50,s=g.hotAttr.x+y/2,g.hotAttr.y=c-w/2}),!t)return;const p=e.map(g=>g.key);sdkStore.updateHotItemBatch(e),MB.action("entry:select:items",{cids:p}),(n=MB)==null||n.action("entry:design:zoom:selection")};var K3=i(65057),fv=i(8452);const GX=e=>{let{prefix:t="",hotAttr:n,sup:r,sub:s=[]}=e;return{key:createKey(t),hotAttr:n,sup:r,sub:s}},am=e=>{const t=[ne.x.WSelectionControlRadio,ne.x.WSelectionControlCheckbox].includes(e)?ne.x.WSelectionControl:e;try{let{selectedItems:r}=(0,om.Ub)();if(r=r.map(M3.Dx).flat(),om.Ub.length===0){var n;const s=(0,kc.dP)(),c=(n=(0,re.Ur)(s))==null?void 0:n.cid;return c&&(r=sdkStore.findAllTypeUnder(c,t).filter(d=>!(0,ui.OO)(d.key))),r.map(d=>Iu()(d))}else{const s=new Map;return r.forEach(c=>{sdkStore.walkHotItemSubtree(c.key,d=>{!(0,ui.OO)(d.key)&&d.hotAttr.type===t&&s.set(d.key,d)})}),Array.from(s.values()).map(c=>Iu()(c))}}catch(r){return console.error("getCurrentSelectWidgets error: ",r),[]}},Y3=()=>{try{let{selectedItems:t}=(0,om.Ub)();if(t=t.map(M3.Dx).flat(),t.length===0){var e;const n=(0,kc.dP)(),r=(e=(0,re.Ur)(n))==null?void 0:e.cid,s=[];return(0,n0.of)(flatStore.getFlatTree(),r,c=>{s.push(sdkStore.getHotItem(c.key))}),s.filter(c=>!(0,ui.OO)(c.key)&&c.hotAttr.bunch!==ne.x.RbPage&&c.hotAttr.type!==ne.x.WWrap).map(c=>Iu()(c))}else{const n=new Map;return t.forEach(r=>{sdkStore.walkHotItemSubtree(r.key,s=>{!(0,ui.OO)(s.key)&&s.hotAttr.type!==ne.x.WWrap&&n.set(s.key,s)})}),Array.from(n.values()).map(r=>Iu()(r))}}catch(t){return console.error("getCurrentSelectWidgets error: ",t),[]}},gv={hidden:"1",vertical:"3",horizontal:"4",autofit:"2"},X3=(e,t)=>{const n=(0,kc.dP)(),r=ki();try{var s;sdkStore.combineMergeMark("V8CmdCreateWBasket-insert-widget");const{sceData:p}=(0,y8.yj)(),g=p[e],{data:y,meta:{type:w}}=g;if(!(0,Zi._c)({type:w})||!n||!r)return;const{count:_,"scroll-bar-type":j}=t||{},N=((s=(0,re.Ur)(n))==null?void 0:s.cid)||"",Z=(0,re.X_)(n),Q=(0,re.$S)(n),se=(0,re.ER)(n),ie=(0,Oe.p$)(n),he={scale:Z/100,size:{w:Q.width,h:Q.height},offset:se},xe=(0,Rd.Dl)(he,Q.left),Se=(0,K3.nS)({isTear:w==="wTear",world:xe,scale:Z,newSelection:ie,currentPageKey:N,isCtrlDown:!1})||"";let _e=[];for(let Je=0;Je<(Number(_)||1);Je++){var c;let Ne=(0,Rd.dk)(ie,sdkStore)||"";if(((c=sdkStore.getHotItem(Ne))==null?void 0:c.hotAttr.type)!=="wWrap"){var d;Ne=((d=sdkStore.getHotItem(Se))==null?void 0:d.hotAttr.type)==="rResCanvas"?Se:N}const pt=sdkStore.loadSubtree(y,Ne,xe.x,xe.y);_e=_e.concat(pt),(0,Rd.OV)(_e,Ne),(0,vr.Yx)(_e,Ne,sdkStore)}const De=_e.map(Je=>sdkStore.getHotItem(Je));De.forEach(Je=>{if(!Je)return;const Ne=G3(t),pt=Z3(t);Je.hotAttr={...Je.hotAttr,...Ne,...pt},j&&gv[j]&&(Je.hotAttr.scroll=gv[j])}),Lg(De),De&&De.length&&sdkStore.updateHotItemBatch(De),r({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),r({type:"ST:update",payload:{isLeftDown:!0}}),r({type:"set:alignment",payload:{alignment:{}}}),r({type:"set:sameSize",payload:{sameSize:{}}}),r({type:"set:distributed",payload:{distributed:{}}}),r({type:"elbow:update",payload:{isDraggingElbow:!1}}),r({type:"entry:refresh:link-list"}),r({type:"entry:select:items",payload:{cids:_e}}),r({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:_e}}),r({type:"entry:publish:create:items:success",payload:{newKeys:_e}})}catch(p){console.error("V8CmdRegExecCWBasket: error:",p)}finally{sdkStore.combineMerge("V8CmdCreateWBasket-insert-widget")}},OP=e=>{const t=ki();if(!t)return;const n=(0,kc.dP)(),r=(0,re.Ur)(n),s=(0,lr.F6)((0,re.wq)(n)),c=e,d=(0,$u.gu)({type:c,screen:r,attrs:{width:0,height:0}});if(s&&c===s){t({type:"set:quick-create-widget",payload:{widget:null}});return}t({type:"set:quick-create-widget",payload:{widget:d,quickCreateWidgetFrom:Kd.Hq.ToolBar}}),c===ne.x.WElbow?t({type:"elbow:update",payload:{isDraggingElbow:!0}}):c===ne.x.WVector&&(t({type:"update:screenContainer:state",payload:{addVectorSource:fv.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Or.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),t(Te.GO.toggleHandMode(!1)),t({type:"elbow:clear"}),t({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),ne.Q.ST_MODE_WIDGET_NAMES.includes(c)?(t({type:"entry:ST:STMode:enable"}),t({type:"toolbar:update:state",payload:{isShowSticky:!0}})):t({type:"entry:ST:STMode:disable"})},Q3={text:ne.x.WRichText,rectangle:ne.x.WRect,circle:ne.x.WOval,page:ne.x.Canvas,line:ne.x.WLine,button:ne.x.WButton,arrow:ne.x.WArrow,polygon:ne.x.WPolygon,star:ne.x.WStar,triangle:ne.x.WTriangle,carousel:ne.x.WCarousel,web_page_component:ne.x.WWebpage,video_component:ne.x.WVideo,audio_component:ne.x.WAudio,qr_code:ne.x.WQRCode,map_component:ne.x.WMapView,chat_bubble:ne.x.WMTooltip,link_area:ne.x.WLR,placeholders:ne.x.WPlaceholder,comments:ne.x.WSticky,bullet_comments:ne.x.WTear,tables:ne.x.WTable,charts:ne.x.WChart,icons:ne.x.WIcon,status_bars:ne.x.WIphoneXSB,"multi-line_input_components":ne.x.WMTextArea,"single-line_input_components":ne.x.WMTextInput,"drop-down_selectors":ne.x.WMSelect,file_selection_components:ne.x.WMFileInput,radio_selection_components:ne.x.WSelectionControlRadio,check_components:ne.x.WSelectionControlCheckbox,sliders:ne.x.WSlider,numbers_stepper:ne.x.WDigitalStepper,navigation_menu:ne.x.WNavigationMenu,vertical_menu:ne.x.WNavigationMenuV,horizontal_menu:ne.x.WNavigationMenuH,navigation_bar:ne.x.WMobileTabBars,segmenter:ne.x.WSegmentedControl,accordion:ne.x.WCollapse,tab:ne.x.WTabs,paginator:ne.x.WPaginationMobile,image:ne.x.WImage,connection_line:ne.x.WElbow,pen:ne.x.WVector},ZX=e=>e>1?e/100:e,RP={left:"left",right:"right",top:"top",down:"bottom"},BP=()=>{const e=xd.getInstance();e.register("C-"+fn.x.WCarousel,yl),e.register("C-"+fn.x.WWebpage,yl),e.register("C-"+fn.x.WVideo,yl),e.register("C-"+fn.x.WAudio,yl),e.register("C-"+fn.x.WQRCode,yl),e.register("C-"+fn.x.WMapView,yl),e.register("C-"+fn.x.WMTooltip,yl)},Ng={"column-chart":{type:"horizontal_bar_chart",i18Key:"horizontal_bar_chart"},"bar-chart":{type:"bar_chart",i18Key:"bar_chart"},"line-chart":{type:"line_chart",i18Key:"line_chart"},"area-chart":{type:"line_area_chart",i18Key:"line_area_chart"},"combo-chart":{type:"mixed_bar_line_chart",i18Key:"mixed_bar_line_chart"},"pie-chart":{type:"pie_chart",i18Key:"pie_chart"},"radar-chart":{type:"radar_chart",i18Key:"radar_chart"},"donut-chart":{type:"ring_chart",i18Key:"ring_chart"}},ff={classic:0,retro:1,fresh:2,cold:3,warm:4,gray:5},UP=(e,t)=>{const{count:n,"chart-type":r,"grid-line-color":s,"grid-line-type":c,"color-theme":d}=t||{},p=[],g=MB.getCurrentScreen(),y=g==null?void 0:g.cid;let w=(0,H3._)(y);for(let N=0;N<(Number(n)||1);N++){var _,j;let Z=(0,$u.iD)({type:fn.x.WBarChart,screen:g,attrs:{name:I18N.w[((_=Ng[r])==null?void 0:_.i18Key)||"bar_chart"]}});r&&(Z.chartConfig.chartType=((j=Ng[r])==null?void 0:j.type)||"bar_chart"),d&&ff[d]&&(Z.chartConfig.chartTheme=ff[d]),c&&(Z.chartConfig.grid.bdrStyle=mf(c)),s&&(Z.chartConfig.grid.bdrColor=Xi(s)),w++,Z.zIndex=w;const Q=G3(t),se=Z3(t);Z={...Z,...Q,...se};const ie=Mi({hotAttr:Z,sup:y});p.push(ie)}Lg(p)},FP=()=>{xd.getInstance().register("CreateChart",UP)};var jg=i(89002),co=function(e){return e.sizeAttr="sizeAttr",e.textAttrRichTextV1="textAttrRichTextV1",e.textAttrRichTextV0="textAttrRichTextV0",e.exteriorAttr="exteriorAttr",e.borderAttr="borderAttr",e.textV1BlockAttr="textV1BlockAttr",e.arrowAttrs="arrowAttrs",e.textAutoSize="textAutoSize",e.tableAttr="tableAttr",e.stickyAttr="stickyAttr",e.selectionControlColors="selectionControlColors",e.sliderAttrs="sliderAttrs",e.digitalStepperAttrs="digitalStepperAttrs",e.carouselAttrs="carouselAttrs",e.webpageUrlAttrs="webpageUrlAttrs",e.videoAttrs="videoAttrs",e.audioAttrs="audioAttrs",e.qrCodeAttrs="qrCodeAttrs",e.tooltipAttrs="tooltipAttrs",e.tabBarAttrs="tabBarAttrs",e.segmentedControlAttrs="segmentedControlAttrs",e.collapseAttrs="collapseAttrs",e.tabAttrs="tabAttrs",e.pageMobile="pageMobile",e.pageWeb="pageWeb",e.polygonAttrs="polygonAttrs",e.starAttrs="starAttrs",e.editNewBlocks="editNewBlocks",e.editTableAttrs="editTableAttrs",e.editChartAttrs="editChartAttrs",e.editElbowAttrs="editElbowAttrs",e}(co||{});const yv=()=>({[co.sizeAttr]:(e,t)=>{const n=G3(e);t.type===ne.x.WArrow&&delete n.h,t.type===ne.x.WLine&&(n.h=1),Object.assign(t,n)},[co.textAttrRichTextV1]:(e,t)=>{const n=mv(e,t.type);t.richTextV1=Object.assign(t.richTextV1,n)},[co.textAttrRichTextV0]:(e,t)=>{const n=mv(e,t.type),{"text-content":r}=e||{};t.textV0=Object.assign(t.textV0,n),r&&(t.textV0.text=r)},[co.exteriorAttr]:(e,t)=>{const n=Z3(e);Object.assign(t,n)},[co.borderAttr]:(e,t)=>{let n=jP(e);t.type===ne.x.WImage&&(n={...n,bdrIsVisible:!0}),t.border={...t.border,...n}},[co.textV1BlockAttr]:(e,t)=>{t.textV1.blocks=NP(e)},[co.textAutoSize]:(e,t)=>{const{width:n,height:r,"text-content":s}=e||{};(!n||!r)&&s&&(0,ch.PQ)(t)},[co.arrowAttrs]:(e,t)=>{const{"arrow-color":n}=e||{};ol(n)&&(t.arrow.arrowStroke.bdrColor=ol(n))},[co.tableAttr]:(e,t)=>{const{row:n,column:r,"border-color":s,"horizontal-line-color":c,"vertical-line-color":d}=e||{};Number(n)&&(t.tableConfig.rowCount=Number(n)),Number(r)&&(t.tableConfig.colCount=Number(r));const p=t.tableConfig.rowCount,g=t.tableConfig.colCount,y={columns:Array(Number(g)).fill({type:"text",width:t.w/g}),rows:Array(p).fill({height:t.h/p}),cellStyles:Array(p).fill(Array(g).fill("")),mergeCells:{},data:Array(p).fill(Array(g).fill("")),links:Array(p).fill(Array(g).fill(""))};t.tableData=y,t.tableConfig={...t.tableConfig,...(0,kg.U3)({height:t.h,width:t.w,columns:y.columns,rows:y.rows})},ol(s)&&(t.tableConfig.outerBorder.bdrColor=ol(s)),ol(c)&&(t.tableConfig.innerBorderH.bdrColor=ol(c)),ol(d)&&(t.tableConfig.innerBorderV.bdrColor=ol(d))},[co.stickyAttr]:(e,t)=>{const{"note-content":n}=e||{};n&&(t.textV1.blocks=sf(n||""))},[co.selectionControlColors]:(e,t)=>{const{"default-option-button-color":n,"default-option-text-color":r,"active-option-button-color":s,"active-option-text-color":c,"font-size":d}=e||{};if(ol(n)&&(t.selectionControl.borderColor=ol(n)),ol(r)&&(t.selectionControl.textColor=ol(r)),ol(s)&&(t.selectionControl.checkedBorderColor=ol(s)),ol(c)&&(t.selectionControl.checkedTextColor=ol(c)),Number(d)){const{fontSize:p,gap:g}=t.selectionControl,{w:y,h:w}=t;if(Number(d)===p)return;const _=Number(d)/p,j=Math.round(g*_),N=Math.round(y*_),Z=Math.round(w*_);t.w=N,t.h=Z,t.selectionControl.fontSize=Number(d),t.selectionControl.gap=j}},[co.sliderAttrs]:(e,t)=>{const{thickness:n,radius:r,"bar-fill-color":s,"bar-process-color":c,"slider-fill-color":d,"slider-stroke-color":p,"process-position":g}=e||{};ol(s)&&(t.slider.trackBackgroundColor=ol(s)),ol(c)&&(t.slider.trackForegroundColor=ol(c)),ol(d)&&(t.slider.thumbBackgroundColor=ol(d)),ol(p)&&(t.slider.thumbBorder.bdrColor=ol(p)),Number(r)&&(t.slider.trackBorderRadius=Number(r)),g&&(t.slider.thumbPosition=Number(g)),Number(n)&&(t.slider.trackSize=Number(n))},[co.digitalStepperAttrs]:(e,t)=>{const{"font-color":n,"font-size":r,range_end:s,range_start:c}=e||{};c&&(t.digitalStepper.min=Number(c)),s&&(t.digitalStepper.max=Number(s)),t.digitalStepper.min>1&&(t.digitalStepper.value=t.digitalStepper.min+1),n&&(t.digitalStepper.textColor=ol(n)),r&&(t.digitalStepper.fontSize=Number(r))},[co.carouselAttrs]:(e,t)=>{const{"auto-play":n,"pointer-default-color":r,"pointer-active-color":s,interval:c,direction:d}=e||{};let p=n;typeof n=="string"&&(p=n==="true"),ol(r)&&(t.carousel.pointerBg=ol(r)),ol(s)&&(t.carousel.pointerFg=ol(s)),Object.keys(e||{}).includes("auto-play")&&(t.carousel.autoPlay=p),c&&(t.carousel.interval=Number(c)),d&&(t.carousel.vertical=d==="vertical")},[co.webpageUrlAttrs]:(e,t)=>{const{url:n}=e||{};n&&(t.webpage.url=n)},[co.videoAttrs]:(e,t)=>{const{"video-url":n,"autoplay-switcher":r,"loop-switcher":s,"mute-switcher":c,"hide-control-switcher":d}=e||{};n&&(t.video.videoSrc=n),r&&(t.video.isAutoplay=r==="on"),s&&(t.video.isLoop=s==="on"),c&&(t.video.isMuted=c==="on"),d&&(t.video.isHideControls=d==="on")},[co.audioAttrs]:(e,t)=>{const{"audio-url":n,"autoplay-switcher":r,"loop-switcher":s,"across-screens-switcher":c,"hide-control-switcher":d}=e||{};n&&(t.audio.audioSrc=n),r&&(t.audio.isAutoplay=r==="on"),s&&(t.audio.isLoop=s==="on"),c&&(t.audio.isKeepAlive=c==="on"),d&&(t.audio.isHidden=d==="on")},[co.qrCodeAttrs]:(e,t)=>{const{"qrcode-url":n,"background-color":r,"foreground-color":s}=e||{};n&&(t.qrCode.content=n),ol(s)&&(t.qrCode.foregroundColor=ol(s)),ol(r)&&(t.qrCode.backgroundColor=ol(r))},[co.tooltipAttrs]:(e,t)=>{const{"placement-direction":n}=e||{};n&&(t.tooltip.placement=RP[n]||"left")},[co.tabBarAttrs]:(e,t)=>{const{"icon-color":n,"font-color":r,"font-size":s}=e||{};n&&Xi(n)&&(t.mobileTabBars.iconColor=Xi(n)),r&&Xi(r)&&(t.mobileTabBars.textColor=Xi(r)),Number(s)&&(t.mobileTabBars.fontSize=Number(s))},[co.segmentedControlAttrs]:(e,t)=>{const{"fill-color":n,"font-size":r,"font-color":s}=e||{};n&&Xi(n)&&(t.segmentedControl.backgroundColor=Xi(n)),Number(r)&&(t.segmentedControl.fontSize=Number(r)),Number(r)&&(t.segmentedControl.checkedFontSize=Number(r)),s&&Xi(s)&&(t.segmentedControl.textColor=Xi(s))},[co.collapseAttrs]:(e,t)=>{const{"font-color":n,"font-size":r}=e||{};Number(r)&&(t.collapse.contentTextSize=Number(r)),Number(r)&&(t.collapse.titleTextSize=Number(r)),n&&Xi(n)&&(t.collapse.contentTextColor=Xi(n)),n&&Xi(n)&&(t.collapse.titleTextColor=Xi(n))},[co.tabAttrs]:(e,t)=>{const{"font-color":n,"font-size":r}=e||{};Number(r)&&(t.tabs.fontSize=Number(r)),Number(r)&&(t.tabs.checkedFontSize=Number(r)),n&&Xi(n)&&(t.tabs.textColor=Xi(n))},[co.pageMobile]:(e,t)=>{const{"font-color":n,"font-size":r}=e||{};Number(r)&&(t.paginationMobile.textSize=Number(r)),Number(r)&&(t.paginationMobile.checkedTextSize=Number(r)),n&&Xi(n)&&(t.paginationMobile.textColor=Xi(n))},[co.pageWeb]:(e,t)=>{const{"font-color":n,"font-size":r}=e||{};Number(r)&&(t.paginationWeb.textSize=Number(r)),Number(r)&&(t.paginationWeb.checkedTextSize=Number(r)),n&&Xi(n)&&(t.paginationWeb.textColor=Xi(n))},[co.polygonAttrs]:(e,t)=>{const{sides:n,radius:r}=e||{},s={};Number(r)&&(s.cornerRadius=Number(r)),Number(n)&&(s.sideNum=Number(n)),t.polygon={...t.polygon,...s}},[co.starAttrs]:(e,t)=>{const{nodes:n}=e||{};Number(n)&&(t.star={...t.star,sideNum:Number(n)})},[co.editNewBlocks]:(e,t)=>{const n=DP(t,e);n&&(t.textV1.blocks=n)},[co.editTableAttrs]:(e,t)=>{const{row:n,column:r,"border-color":s,"horizontal-line-color":c,"vertical-line-color":d}=e||{};if((0,$h.SS)(t)){let p=Number(n)||0,g=Number(r)||0;const y=t.heightList.length,w=t.widthList.length;p===0&&(p=y),g===0&&(g=w);let _={...t};if(y!==p){const j=p-y;j>0?_=(0,jg.bX)(_,j,y-1):_=(0,jg.HS)(_,y+j,Math.abs(j)).newWidget}if(w!==g){const j=g-w;if(j>0)_=(0,jg.Pg)(_,j,w-1);else{const N=(0,jg.FQ)(_,w+j,Math.abs(j));if(!N)return;_=N.newWidget}}t={..._}}else{let p=Number(n)||0,g=Number(r)||0;const y=t.tableConfig.rowCount,w=t.tableConfig.colCount;if(Number(p)&&(t.tableConfig.rowCount=Number(p)),Number(g)&&(t.tableConfig.colCount=Number(g)),p===0&&(p=y),g===0&&(g=w),y!==p||w!==g){let{tableData:{columns:_,rows:j,data:N,links:Z,cellStyles:Q,mergeCells:se}}=t;const ie=w>p&&w>g;_=_.length>g?_.slice(0,g):_.concat(Array(g-_.length).fill({type:"text",width:_[_.length-1].width||80})),j=j.length>p?j.slice(0,p):j.concat(Array(p-j.length).fill({height:j[j.length-1].height||30})),N=J3({currentDataList:N,rowOrColumns:{currentColumn:g,currentRow:p}}),Z=J3({currentDataList:Z,rowOrColumns:{currentColumn:g,currentRow:p}}),Q=J3({currentDataList:Q,rowOrColumns:{currentColumn:g,currentRow:p}});const he={columns:_,rows:j,cellStyles:Q,mergeCells:ie?{}:se,data:N,links:Z},xe=he.rows.reduce((_e,De)=>_e+De.height,0),Se=he.columns.reduce((_e,De)=>_e+De.width,0);t.h=xe,t.w=Se,t.tableData=he,t.tableConfig={...t.tableConfig,...(0,kg.U3)({height:t.h,width:t.w,columns:he.columns,rows:he.rows})}}}ol(s)&&(t.tableConfig.outerBorder.bdrColor=ol(s)),ol(c)&&(t.tableConfig.innerBorderH.bdrColor=ol(c)),ol(d)&&(t.tableConfig.innerBorderV.bdrColor=ol(d))},[co.editChartAttrs]:(e,t)=>{var n;const{"chart-type":r,"grid-line-color":s,"grid-line-type":c,"color-theme":d}=e||{};r&&(t.chartConfig.chartType=((n=Ng[r])==null?void 0:n.type)||"bar_chart"),d&&ff[d]&&(t.chartConfig.chartTheme=ff[d]),c&&(t.chartConfig.grid.bdrStyle=mf(c)),s&&(t.chartConfig.grid.bdrColor=Xi(s))},[co.editElbowAttrs]:(e,t)=>{const{"line-color":n}=e||{};ol(n)&&(t.elbow.arrowStroke.bdrColor=ol(n))}}),J3=e=>{let{currentDataList:t,rowOrColumns:{currentRow:n,currentColumn:r}}=e;return r===0&&(r=t[0].length),n===0&&(n=t.length),n<t.length?r<t[0].length?t.slice(0,n).map(s=>s.slice(0,r)):t.slice(0,n).map(s=>s.concat(Array(r-t[0].length).fill(""))):r<t[0].length?t.concat(Array(n-t.length).fill(Array(r).fill(""))).map(s=>s.slice(0,r)):t.concat(Array(n-t.length).fill(Array(r).fill(""))).map(s=>s.concat(Array(r-t[0].length).fill("")))},VP=()=>({[fn.x.WRect]:{name:I18N.w.wRect,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textV1BlockAttr]},[fn.x.WOval]:{name:I18N.w.wOval,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textV1BlockAttr]},[fn.x.WRichText]:{name:I18N.w.wRichText,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.textV1BlockAttr,co.textAutoSize]},[fn.x.WButton]:{name:I18N.w.wButton,attrs:[co.textAttrRichTextV0,co.sizeAttr,co.exteriorAttr,co.borderAttr]},[fn.x.WArrow]:{name:I18N.w.wArrow,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.arrowAttrs]},[fn.x.WLine]:{name:I18N.w.wLine,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr]},[fn.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[co.sizeAttr,co.textAttrRichTextV0,co.exteriorAttr,co.borderAttr]},[fn.x.WImage]:{name:I18N.w.wImage,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr]},[fn.x.WTable]:{name:I18N.w.wTable,attrs:[co.sizeAttr,co.exteriorAttr,co.tableAttr]},[fn.x.WSticky]:{name:I18N.w.wSticky,attrs:[co.stickyAttr]},[fn.x.WTear]:{name:I18N.w.wTear,attrs:[co.stickyAttr]},[fn.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[co.sizeAttr,co.exteriorAttr,co.textAttrRichTextV0]},[fn.x.WLR]:{name:I18N.w.wLr,attrs:[co.sizeAttr]},[fn.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[fn.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[fn.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[fn.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[co.sizeAttr,co.exteriorAttr]},[fn.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[co.sizeAttr,co.exteriorAttr,co.selectionControlColors]},[fn.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[co.sizeAttr,co.exteriorAttr,co.selectionControlColors]},[fn.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[co.sizeAttr,co.exteriorAttr]},[fn.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[co.sizeAttr,co.exteriorAttr]},[fn.x.WSlider]:{name:I18N.w.slider,attrs:[co.sizeAttr,co.exteriorAttr,co.sliderAttrs]},[fn.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[co.sizeAttr,co.exteriorAttr,co.digitalStepperAttrs]},[fn.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[co.sizeAttr,co.exteriorAttr,co.carouselAttrs]},[fn.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[co.sizeAttr,co.exteriorAttr,co.webpageUrlAttrs]},[fn.x.WVideo]:{name:I18N.w.wVideo,attrs:[co.sizeAttr,co.exteriorAttr,co.videoAttrs]},[fn.x.WAudio]:{name:I18N.w.wAudio,attrs:[co.sizeAttr,co.exteriorAttr,co.audioAttrs]},[fn.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[co.sizeAttr,co.exteriorAttr,co.qrCodeAttrs]},[fn.x.WMapView]:{name:I18N.w.wMapView,attrs:[co.sizeAttr,co.exteriorAttr]},[fn.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0,co.tooltipAttrs]},[fn.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[fn.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[co.sizeAttr,co.exteriorAttr]},[fn.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[co.exteriorAttr]},[fn.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[co.exteriorAttr]},[fn.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[co.exteriorAttr,co.borderAttr,co.tabBarAttrs]},[fn.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[co.borderAttr,co.segmentedControlAttrs]},[fn.x.WTabs]:{name:I18N.w.wTabs,attrs:[co.exteriorAttr,co.tabAttrs]},[fn.x.WCollapse]:{name:I18N.w.collapse,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.collapseAttrs]},[fn.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[co.exteriorAttr,co.borderAttr,co.pageMobile]},[fn.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[co.exteriorAttr,co.borderAttr,co.pageWeb]},[fn.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.textV1BlockAttr,co.borderAttr,co.polygonAttrs]},[fn.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.textV1BlockAttr,co.borderAttr]},[fn.x.WStar]:{name:I18N.w.wStar,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.textV1BlockAttr,co.borderAttr,co.starAttrs]}}),yl=(e,t)=>{const n=e.replace("C-",""),{count:r}=t||{};if(n===fn.x.WRichText&&(!t||!t["text-content"])&&(t={...t,"text-content":I18N.Widget.wRichTextText}),n===fn.x.WTable){const{row:_,column:j}=t||{};Number(_)&&!t.height&&(t.height=30*Number(_)),Number(j)&&!t.width&&(t.width=80*Number(j))}if(n===fn.x.WPolygon){const{sides:_}=t||{};if(_<3){MB.notice({text:"\u591A\u8FB9\u5F62\u8FB9\u6570\u9700\u8981\u5927\u4E8E\u7B49\u4E8E3",type:"warning"});return}}const s=[],c=MB.getCurrentScreen(),d=c==null?void 0:c.cid;let p=(0,H3._)(d);const g=VP()[n];if(!g)return;const{attrs:y,name:w}=g;for(let _=0;_<(Number(r)||1);_++){const j=(0,$u.iD)({type:n,screen:c,attrs:{name:w}});p++,j.zIndex=p,y.forEach(Z=>{yv()[Z](t,j)});const N=Mi({hotAttr:j,sup:d});s.push(N)}Lg(s)},zP=(e,t)=>{X3("wbTOkTYpTtTUeNK4eU3iYQ",t)},WP=(e,t)=>{X3("wbTOkWBWTtTUelSImKcV05",t)},HP=(e,t)=>{const n=ki();n&&(n({type:"entry:comment:toggle"}),n(Te.GO.toggleInspectMode(!1)),n(Te.GO.toggleHandMode(!1)),n(Te.GO.select([])),n({type:"elbow:update",payload:{isInElbowMode:!1}}),n({type:"entry:ST:STMode:disable"}))},GP=(e,t)=>{const n=ki();n&&(n({type:"entry:elbow:isInElbowMode:toggle"}),n({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),n({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:Kd.Hq.ToolBar}}),n(Te.GO.toggleInspectMode(!1)),n(Te.GO.toggleHandMode(!1)))},ZP=(e,t)=>{OP(fn.x.WVector)},KP=()=>{const e=xd.getInstance();e.register("C-"+fn.x.WRect,yl),e.register("C-"+fn.x.WOval,yl),e.register("C-"+fn.x.WRichText,yl),e.register("C-"+fn.x.WButton,yl),e.register("C-"+fn.x.WArrow,yl),e.register("C-"+fn.x.WLine,yl),e.register("C-"+fn.x.WPlaceholder,yl),e.register("C-"+fn.x.WTable,yl),e.register("C-"+fn.x.WSticky,yl),e.register("C-"+fn.x.WTear,yl),e.register("C-"+fn.x.WIphoneXSB,yl),e.register("C-"+fn.x.WLR,yl),e.register("C-"+fn.x.WImage,yl),e.register("CElbow",GP),e.register("CVector",ZP),e.register("CDynCpts",zP),e.register("CComment",HP),e.register("CScrollPanel",WP)},YP=()=>{const e=xd.getInstance();e.register("C-"+fn.x.WMTextInput,yl),e.register("C-"+fn.x.WMTextArea,yl),e.register("C-"+fn.x.WMSelect,yl),e.register("C-"+fn.x.WMFileInput,yl),e.register("C-"+fn.x.WSelectionControlRadio,yl),e.register("C-"+fn.x.WSelectionControlCheckbox,yl),e.register("C-"+fn.x.WAndroidSwitch,yl),e.register("C-"+fn.x.WIOSSwitch,yl),e.register("C-"+fn.x.WSlider,yl),e.register("C-"+fn.x.WDigitalStepper,yl)},XP=(e,t)=>{X3("wbTOksOVTtTVK7dHXfAC4d",t)},QP=()=>{const e=xd.getInstance();e.register("C-"+fn.x.WDropMenu,yl),e.register("C-"+fn.x.WNavigationMenu,yl),e.register("C-"+fn.x.WNavigationMenuV,yl),e.register("C-"+fn.x.WNavigationMenuH,yl),e.register("C-"+fn.x.WMobileTabBars,yl),e.register("C-"+fn.x.WSegmentedControl,yl),e.register("C-"+fn.x.WCollapse,yl),e.register("C-"+fn.x.WTabs,yl),e.register("C-"+fn.x.WPaginationMobile,yl),e.register("C-"+fn.x.WPaginationWeb,yl),e.register("CDynamicDropMenu",XP)},JP=()=>{const e=xd.getInstance();e.register("C-"+fn.x.WPolygon,yl),e.register("C-"+fn.x.WTriangle,yl),e.register("C-"+fn.x.WStar,yl)},dl=(e,t)=>{const{width:n,height:r,opacity:s,radius:c,"target-elements-keyword":d,"stroke-weight":p,"stroke-type":g}=e||{};let y=!0;Number(n)&&y&&(y=t.w===Number(n)),Number(r)&&y&&(y=t.h===Number(r)),e&&Object.keys(e).includes("opacity")&&y&&(y=t.opacity===hv(s)),Number(c)&&y&&(y=t.borderRadius===Number(c)),d&&y&&(y=(t.display_name||t.name||"").includes(d));const{bdrStyle:w,bdrWidth:_}=(t==null?void 0:t.border)||{};return p&&y&&(y=_===Number(p)),g&&y&&(y=w===mf(g)),y},rm=(e,t)=>{const{"font-size":n,"font-family":r,"font-format":s,"text-align":c}=e||{},{italic:d,bold:p,underline:g,strikethrough:y}=R2(s),{fontFamily:w,fontSize:_}=t;let j=!0;return n&&(j=_===n),r&&j&&(j=w===r),d&&j&&(j=t.italic===d),p&&j&&(j=t.bold===p),g&&j&&(j=t.underline===g),y&&j&&(j=t.strikethrough===y),c&&j&&(j=t.horizontalAlign===c),j},im=(e,t)=>{const{fontSize:n,fontFamily:r,italic:s,underline:c,strikethrough:d,horizontalAlign:p,bold:g}=(0,k0.xH)({baseItem:t}),{"font-size":y,"font-family":w,"font-format":_,"text-align":j}=e||{},{italic:N,bold:Z,underline:Q,strikethrough:se}=R2(_);let ie=!0;return y&&(ie=Number(n)===Number(y)),w&&ie&&(ie=r===w),N&&ie&&(ie=N===s),Z&&ie&&(ie=Z===g),Q&&ie&&(ie=Q===c),se&&ie&&(ie=se===d),j&&ie&&(ie=p===j),ie},sm={[ne.x.WRichText]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WRichText;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WRect]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WRect;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WOval]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WOval;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WLine]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WLine;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WButton]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WButton;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WArrow]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WArrow;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WPolygon]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WPolygon;if(s&&t&&Object.keys(t).length){const{radius:c,sides:d}=t;Number(c)&&(s=r.hotAttr.polygon.cornerRadius===Number(c)),Number(d)&&s&&(s=r.hotAttr.polygon.sideNum===Number(d)),s&&(s=dl(t,r.hotAttr)),s&&(s=im(t,r.hotAttr))}return s}),n},[ne.x.WStar]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WStar;if(s&&t&&Object.keys(t).length){const{radius:c,nodes:d}=t;Number(c)&&(s=r.hotAttr.polygon.cornerRadius===Number(c)),Number(d)&&s&&(s=r.hotAttr.star.sideNum===Number(d)),delete t.radius,s&&(s=dl(t,r.hotAttr)),s&&(s=im(t,r.hotAttr))}return s}),n},[ne.x.WTriangle]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WTriangle;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WCarousel]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WCarousel;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WWebpage]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WWebpage;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WVideo]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WVideo;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WAudio]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WAudio;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WQRCode]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WQRCode;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WMapView]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMapView;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WMTooltip]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMTooltip;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WImage]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WImage;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WLR]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WLR;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WPlaceholder]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WPlaceholder;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WTable]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WTable;if(s&&t&&Object.keys(t).length){const{row:c,column:d}=t;s=dl(t,r.hotAttr),Number(c)&&s&&(s=r.hotAttr.tableConfig.rowCount===Number(c)),Number(d)&&s&&(s=r.hotAttr.tableConfig.colCount===Number(d))}return s}),n},[ne.x.WSticky]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WSticky;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WTear]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WTear;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=im(t,r.hotAttr))),s}),n},[ne.x.WIphoneXSB]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WIphoneXSB;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WMTextInput]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMTextInput;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WMTextArea]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMTextArea;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WMSelect]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMSelect;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WMFileInput]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMFileInput;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WSelectionControlRadio]:(e,t)=>{let n=[...e];return n=n.filter(r=>{var s;let c=r.hotAttr.type===ne.x.WSelectionControl&&((s=r.hotAttr)==null||(s=s.selectionControl)==null?void 0:s.type)!=="checkbox";return c&&t&&Object.keys(t).length&&(c=dl(t,r.hotAttr)),c}),n},[ne.x.WSelectionControlCheckbox]:(e,t)=>{let n=[...e];return n=n.filter(r=>{var s;let c=r.hotAttr.type===ne.x.WSelectionControl&&((s=r.hotAttr)==null||(s=s.selectionControl)==null?void 0:s.type)==="checkbox";return c&&t&&Object.keys(t).length&&(c=dl(t,r.hotAttr)),c}),n},[ne.x.WAndroidSwitch]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WAndroidSwitch;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WIOSSwitch]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WIOSSwitch;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WSlider]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WSlider;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WDigitalStepper]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WDigitalStepper;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WDropMenu]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WDropMenu;return s&&t&&Object.keys(t).length&&(s&&(s=dl(t,r.hotAttr)),s&&(s=rm(t,r.hotAttr.textV0))),s}),n},[ne.x.WNavigationMenu]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WNavigationMenu;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WNavigationMenuV]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WNavigationMenuV;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WNavigationMenuH]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WNavigationMenuH;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WMobileTabBars]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WMobileTabBars;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WSegmentedControl]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WSegmentedControl;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WCollapse]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WCollapse;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WTabs]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WTabs;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WPaginationMobile]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WPaginationMobile;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WPaginationWeb]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WPaginationWeb;return s&&t&&Object.keys(t).length&&(s=dl(t,r.hotAttr)),s}),n},[ne.x.WChart]:(e,t)=>{let n=[...e];return n=n.filter(r=>{let s=r.hotAttr.type===ne.x.WChart;if(s&&t&&Object.keys(t).length){var c;const{"chart-type":d,"grid-line-color":p,"grid-line-type":g,"color-theme":y}=t||{},{hotAttr:w}=r;s=dl(t,r.hotAttr),d&&s&&(s=w.chartConfig.chartType===((c=Ng[d])==null?void 0:c.type)),y&&s&&ff[y]&&(s=w.chartConfig.chartTheme===ff[y]),g&&s&&(s=w.chartConfig.grid.bdrStyle===mf(g)),p&&s&&(s=w.chartConfig.grid.bdrColor===Xi(p))}return s}),n}},q3=e=>{const t=ki();if(!t||!e||!e.length){const{selectedItems:r}=(0,om.Ub)();MB.notice({text:r.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}const n=e.map(r=>{let{key:s}=r;return s});sdkStore.deleteHotItemBatch(n),t({type:"entry:refresh:link-list"}),MB.notice({text:"\u5BF9\u5E94\u5143\u7D20\u5DF2\u5220\u9664"})},qP=(e,t)=>{},$P=(e,t)=>{const n=am(fn.x.WChart),r=sm[fn.x.WChart](n,t);q3(r)},eL=(e,t)=>{const{"target-components":n}=t||{},r=Q3[n],s=Y3();let c=[];r?c=sm[r](s,t):Object.values(sm).forEach(d=>{c=c.concat(d(s,t))}),q3(c)},vl=(e,t)=>{const n=e.replace("D-",""),r=am(n),s=sm[n](r,t);q3(s)},tL=()=>{const e=xd.getInstance();e.register("D-"+fn.x.WRichText,vl),e.register("D-"+fn.x.WRect,vl),e.register("D-"+fn.x.WOval,vl),e.register("D-"+fn.x.WLine,vl),e.register("D-"+fn.x.WButton,vl),e.register("D-"+fn.x.WArrow,vl),e.register("D-"+fn.x.WPolygon,vl),e.register("D-"+fn.x.WStar,vl),e.register("D-"+fn.x.WTriangle,vl),e.register("D-"+fn.x.WCarousel,vl),e.register("D-"+fn.x.WWebpage,vl),e.register("D-"+fn.x.WVideo,vl),e.register("D-"+fn.x.WAudio,vl),e.register("D-"+fn.x.WQRCode,vl),e.register("D-"+fn.x.WMapView,vl),e.register("D-"+fn.x.WMTooltip,vl),e.register("D-"+fn.x.WImage,vl),e.register("D-"+fn.x.WLR,vl),e.register("D-"+fn.x.WPlaceholder,vl),e.register("D-"+fn.x.WTable,vl),e.register("D-"+fn.x.WSticky,vl),e.register("D-"+fn.x.WTear,vl),e.register("D-"+fn.x.WIphoneXSB,vl),e.register("D-"+fn.x.WMTextInput,vl),e.register("D-"+fn.x.WMTextArea,vl),e.register("D-"+fn.x.WMSelect,vl),e.register("D-"+fn.x.WMFileInput,vl),e.register("D-"+fn.x.WSelectionControlRadio,vl),e.register("D-"+fn.x.WSelectionControlCheckbox,vl),e.register("D-"+fn.x.WAndroidSwitch,vl),e.register("D-"+fn.x.WIOSSwitch,vl),e.register("D-"+fn.x.WSlider,vl),e.register("D-"+fn.x.WDigitalStepper,vl),e.register("D-"+fn.x.WDropMenu,vl),e.register("D-"+fn.x.WNavigationMenu,vl),e.register("D-"+fn.x.WNavigationMenuV,vl),e.register("D-"+fn.x.WNavigationMenuH,vl),e.register("D-"+fn.x.WMobileTabBars,vl),e.register("D-"+fn.x.WSegmentedControl,vl),e.register("D-"+fn.x.WCollapse,vl),e.register("D-"+fn.x.WTabs,vl),e.register("D-"+fn.x.WPaginationMobile,vl),e.register("D-"+fn.x.WPaginationWeb,vl),e.register("DWBasket",qP),e.register("DWChart",$P),e.register("DWidgets",eL)},$3=e=>{const t=ki();if(!t||!e||!e.length){const{selectedItems:r}=(0,om.Ub)();MB.notice({text:r.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20"});return}const n=e.map(r=>{let{key:s}=r;return s});t({type:"entry:select:items",payload:{cids:n}}),t({type:"entry:design:zoom:selection"})},nL=(e,t)=>{const n=am(fn.x.WChart),r=sm[fn.x.WChart](n,t);$3(r)},oL=(e,t)=>{},aL=(e,t)=>{const{"target-components":n}=t||{},r=Q3[n],s=Y3();let c=[];r?c=sm[r](s,t):Object.values(sm).forEach(d=>{c=c.concat(d(s,t))}),$3(c)},xl=(e,t)=>{const n=e.replace("S-",""),r=am(n),s=sm[n](r,t);$3(s)},rL=()=>{const e=xd.getInstance();e.register("S-"+fn.x.WRichText,xl),e.register("S-"+fn.x.WRect,xl),e.register("S-"+fn.x.WOval,xl),e.register("S-"+fn.x.WLine,xl),e.register("S-"+fn.x.WButton,xl),e.register("S-"+fn.x.WArrow,xl),e.register("S-"+fn.x.WPolygon,xl),e.register("S-"+fn.x.WStar,xl),e.register("S-"+fn.x.WTriangle,xl),e.register("S-"+fn.x.WCarousel,xl),e.register("S-"+fn.x.WWebpage,xl),e.register("S-"+fn.x.WVideo,xl),e.register("S-"+fn.x.WAudio,xl),e.register("S-"+fn.x.WQRCode,xl),e.register("S-"+fn.x.WMapView,xl),e.register("S-"+fn.x.WMTooltip,xl),e.register("S-"+fn.x.WImage,xl),e.register("S-"+fn.x.WLR,xl),e.register("S-"+fn.x.WPlaceholder,xl),e.register("S-"+fn.x.WTable,xl),e.register("S-"+fn.x.WSticky,xl),e.register("S-"+fn.x.WTear,xl),e.register("S-"+fn.x.WIphoneXSB,xl),e.register("S-"+fn.x.WMTextInput,xl),e.register("S-"+fn.x.WMTextArea,xl),e.register("S-"+fn.x.WMSelect,xl),e.register("S-"+fn.x.WMFileInput,xl),e.register("S-"+fn.x.WSelectionControlRadio,xl),e.register("S-"+fn.x.WSelectionControlCheckbox,xl),e.register("S-"+fn.x.WAndroidSwitch,xl),e.register("S-"+fn.x.WIOSSwitch,xl),e.register("S-"+fn.x.WSlider,xl),e.register("S-"+fn.x.WDigitalStepper,xl),e.register("S-"+fn.x.WDropMenu,xl),e.register("S-"+fn.x.WNavigationMenu,xl),e.register("S-"+fn.x.WNavigationMenuV,xl),e.register("S-"+fn.x.WNavigationMenuH,xl),e.register("S-"+fn.x.WMobileTabBars,xl),e.register("S-"+fn.x.WSegmentedControl,xl),e.register("S-"+fn.x.WCollapse,xl),e.register("S-"+fn.x.WTabs,xl),e.register("S-"+fn.x.WPaginationMobile,xl),e.register("S-"+fn.x.WPaginationWeb,xl),e.register("SWBasket",oL),e.register("SWChart",nL),e.register("SWidgets",aL)},vv=()=>({[ne.x.WRichText]:{name:I18N.w.wRichText,attrs:[co.sizeAttr,co.textAttrRichTextV1,co.exteriorAttr,co.editNewBlocks]},[ne.x.WRect]:{name:I18N.w.wRect,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.borderAttr,co.editNewBlocks]},[ne.x.WOval]:{name:I18N.w.wOval,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.borderAttr,co.editNewBlocks]},[ne.x.WLine]:{name:I18N.w.wLine,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr]},[ne.x.WButton]:{name:I18N.w.wButton,attrs:[co.textAttrRichTextV0,co.sizeAttr,co.exteriorAttr,co.borderAttr]},[ne.x.WArrow]:{name:I18N.w.wArrow,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.arrowAttrs]},[ne.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.editNewBlocks,co.borderAttr,co.polygonAttrs]},[ne.x.WStar]:{name:I18N.w.wStar,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.editNewBlocks,co.borderAttr,co.starAttrs]},[ne.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[co.textAttrRichTextV1,co.sizeAttr,co.exteriorAttr,co.editNewBlocks,co.borderAttr]},[ne.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[co.sizeAttr,co.exteriorAttr,co.carouselAttrs]},[ne.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[co.sizeAttr,co.exteriorAttr,co.webpageUrlAttrs]},[ne.x.WVideo]:{name:I18N.w.wVideo,attrs:[co.sizeAttr,co.exteriorAttr,co.videoAttrs]},[ne.x.WAudio]:{name:I18N.w.wAudio,attrs:[co.sizeAttr,co.exteriorAttr,co.audioAttrs]},[ne.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[co.sizeAttr,co.exteriorAttr,co.qrCodeAttrs]},[ne.x.WMapView]:{name:I18N.w.wMapView,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0,co.tooltipAttrs]},[ne.x.WImage]:{name:I18N.w.wImage,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr]},[ne.x.WLR]:{name:I18N.w.wLr,attrs:[co.sizeAttr]},[ne.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[co.sizeAttr,co.textAttrRichTextV0,co.exteriorAttr,co.borderAttr]},[ne.x.WTable]:{name:I18N.w.wTable,attrs:[co.sizeAttr,co.exteriorAttr,co.editTableAttrs]},[ne.x.WChart]:{name:I18N.w.wChart,attrs:[co.sizeAttr,co.exteriorAttr,co.editChartAttrs]},[ne.x.WElbow]:{name:I18N.w.wElbow,attrs:[co.textAttrRichTextV0,co.exteriorAttr,co.editElbowAttrs]},[ne.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[co.exteriorAttr,co.borderAttr,co.sizeAttr]},[ne.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[co.sizeAttr,co.borderAttr,co.exteriorAttr]},[ne.x.WTabs]:{name:I18N.w.wTabs,attrs:[co.sizeAttr,co.exteriorAttr,co.tabAttrs]},[ne.x.WCollapse]:{name:I18N.w.collapse,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.collapseAttrs]},[ne.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.segmentedControlAttrs]},[ne.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.tabBarAttrs]},[ne.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[ne.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[co.sizeAttr,co.exteriorAttr,co.digitalStepperAttrs]},[ne.x.WSlider]:{name:I18N.w.slider,attrs:[co.sizeAttr,co.exteriorAttr,co.sliderAttrs]},[ne.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[co.sizeAttr,co.exteriorAttr,co.selectionControlColors]},[ne.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[co.sizeAttr,co.exteriorAttr,co.selectionControlColors]},[ne.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[co.sizeAttr,co.exteriorAttr]},[ne.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[ne.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[ne.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[co.sizeAttr,co.exteriorAttr,co.borderAttr,co.textAttrRichTextV0]},[ne.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[co.sizeAttr,co.exteriorAttr,co.textAttrRichTextV0]},[ne.x.WTear]:{name:I18N.w.wTear,attrs:[co.stickyAttr]},[ne.x.WSticky]:{name:I18N.w.wSticky,attrs:[co.stickyAttr]}}),xv=e=>{const t=ki();if(!t||!e||!e.length){const{selectedItems:n}=(0,om.Ub)();MB.notice({text:n.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}t({type:"entry:widget:change",payload:{flatChgList:e,shouldReBuildTree:!0,isCombineChange:!0}}),MB.notice({text:"\u7F16\u8F91\u5B8C\u6210"})},iL=(e,t)=>{},sL=(e,t)=>{const{"target-components":n}=t||{},r=Q3[n],s=Y3();let c=[];r?c=e5(s,r,t):Object.keys(vv()).forEach(d=>{c=c.concat(e5(s,d,t))}),xv(c)},pl=(e,t)=>{const n=e.replace("E-",""),r=am(n),s=e5(r,e,t);xv(s)},e5=(e,t,n)=>{const r=t.replace("E-",""),s=vv()[r];if(!n||!s)return[];const{attrs:c}=s,d=[...e].filter(p=>{if(p.hotAttr.type===fn.x.WSelectionControlRadio){var g;return((g=p.hotAttr)==null||(g=g.selectionControl)==null?void 0:g.type)!=="checkbox"}if(p.hotAttr.type===fn.x.WSelectionControlCheckbox){var y;return((y=p.hotAttr)==null||(y=y.selectionControl)==null?void 0:y.type)==="checkbox"}return p.hotAttr.type===r});return d.forEach(p=>{c.forEach(g=>{const{hotAttr:y}=p;yv()[g](n,y)})}),d},lL=()=>{const e=xd.getInstance();e.register("E-"+fn.x.WRichText,pl),e.register("E-"+fn.x.WRect,pl),e.register("E-"+fn.x.WOval,pl),e.register("E-"+fn.x.WLine,pl),e.register("E-"+fn.x.WButton,pl),e.register("E-"+fn.x.WArrow,pl),e.register("E-"+fn.x.WPolygon,pl),e.register("E-"+fn.x.WStar,pl),e.register("E-"+fn.x.WTriangle,pl),e.register("E-"+fn.x.WCarousel,pl),e.register("E-"+fn.x.WWebpage,pl),e.register("E-"+fn.x.WVideo,pl),e.register("E-"+fn.x.WAudio,pl),e.register("E-"+fn.x.WQRCode,pl),e.register("E-"+fn.x.WMapView,pl),e.register("E-"+fn.x.WMTooltip,pl),e.register("E-"+fn.x.WImage,pl),e.register("E-"+fn.x.WLR,pl),e.register("E-"+fn.x.WPlaceholder,pl),e.register("E-"+fn.x.WTable,pl),e.register("E-"+fn.x.WSticky,pl),e.register("E-"+fn.x.WTear,pl),e.register("E-"+fn.x.WIphoneXSB,pl),e.register("E-"+fn.x.WMTextInput,pl),e.register("E-"+fn.x.WMTextArea,pl),e.register("E-"+fn.x.WMSelect,pl),e.register("E-"+fn.x.WMFileInput,pl),e.register("E-"+fn.x.WSelectionControlRadio,pl),e.register("E-"+fn.x.WSelectionControlCheckbox,pl),e.register("E-"+fn.x.WAndroidSwitch,pl),e.register("E-"+fn.x.WIOSSwitch,pl),e.register("E-"+fn.x.WSlider,pl),e.register("E-"+fn.x.WDigitalStepper,pl),e.register("E-"+fn.x.WDropMenu,pl),e.register("E-"+fn.x.WNavigationMenu,pl),e.register("E-"+fn.x.WNavigationMenuV,pl),e.register("E-"+fn.x.WNavigationMenuH,pl),e.register("E-"+fn.x.WMobileTabBars,pl),e.register("E-"+fn.x.WSegmentedControl,pl),e.register("E-"+fn.x.WCollapse,pl),e.register("E-"+fn.x.WTabs,pl),e.register("E-"+fn.x.WPaginationMobile,pl),e.register("E-"+fn.x.WPaginationWeb,pl),e.register("E-"+fn.x.WChart,pl),e.register("EWBasket",iL),e.register("EWidgets",sL)};var P0=i(14861);const gf={iphone:"iphone",android:"android",dashboard:"display_screen",web:"web",pad:"ipad",watch:"apple_watch"},yf=e=>{const t=P0.Am[e][0],n=P0.v2[t];return{width:n.width,height:n.height,deviceName:t}},Dg={iphone:()=>yf(gf.iphone),android:()=>yf(gf.android),dashboard:()=>yf(gf.dashboard),web:()=>yf(gf.web),pad:()=>yf(gf.pad),watch:()=>yf(gf.watch)},t5=()=>{const e=(0,kc.dP)();return e?(0,Oe.nE)(e).filter(n=>n.hotAttr.type===fn.x.Canvas).length===0?(MB.notice({text:"\u8BF7\u9009\u62E9\u76EE\u6807\u9875\u9762",type:"warning"}),!1):!0:!1},cL=(e,t)=>{if(!ki()||!(0,Zi._c)({type:fn.x.Canvas,count:(t==null?void 0:t.count)||1}))return;const r=[],s=MB.getCurrentScreen(),c=s==null?void 0:s.cid;let d=(0,H3._)(c);const{count:p,"page-name":g,"background-color":y,"device-size":w,"custom-size-height":_,"custom-size-width":j,"page-x":N,"page-y":Z}=t||{},Q={},se=ol(y);se&&(Q.fill={fillIsVisible:!0,fill:"solid",solidColor:se}),g&&(Q.name=g);const{hotAttr:{deviceH:ie,deviceW:he,deviceOrientation:xe}}=sdkStore.getHotItem(s==null?void 0:s.cid),{width:Se,height:_e,deviceName:De}=Dg[w]&&Dg[w]()||{},Je=Number(_)||Number(_e)||ie,Ne=Number(j)||Number(Se)||he,pt=xe==="landscape"?Je:Ne,_t=xe==="landscape"?Ne:Je;Q.w=pt,Q.h=_t,Number(N)&&(Q.x=Number(N)),Number(Z)&&(Q.y=Number(Z)),Q.name=g||I18N.w.rResCanvas,Q.device=De||"customize",(Number(N)||Number(Z))&&(Q.device="customize");for(let gt=0;gt<(Number(p)||1);gt++){d++;let Ct=_l[fn.x.Canvas]("page");Ct.zIndex=d,Ct=Object.assign(Ct,Q);const zt=Mi({hotAttr:Ct,sup:c});r.push(zt)}Lg(r)},dL=(e,t)=>{const n=ki();if(!t||Object.keys(t).length===0||!n)return;const r=am(fn.x.Canvas),{"page-name":s,"background-color":c,"device-size":d,"custom-size-height":p,"custom-size-width":g,"page-x":y,"page-y":w}=t||{},_=[...r];_.forEach(j=>{if(j.hotAttr.type!==fn.x.Canvas)return null;const{hotAttr:N}=j,Z=ol(c);Z&&(N.fill={fillIsVisible:!0,fill:"solid",solidColor:Z}),s&&(N.name=s);const{width:Q,height:se,deviceName:ie}=Dg[d]&&Dg[d]()||{},he=Number(g)||Number(Q),xe=Number(p)||Number(se);he&&(N.w=he),xe&&(N.h=xe),Number(y)&&(N.x=Number(y)),Number(w)&&(N.y=Number(w)),N.name=s||I18N.w.rResCanvas,N.device=ie}),n({type:"entry:widget:change",payload:{flatChgList:_,shouldReBuildTree:!0,isCombineChange:!0}})},pL=async(e,t)=>{const n=ki();n&&t5()&&(await n({type:"entry:copy:canvas"}),setTimeout(async()=>{await n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})}))},uL=(e,t)=>{const n=ki();!n||!t5()||n({type:"entry:copy:canvas"})},hL=(e,t)=>{const n=ki();!n||!t5()||n({type:"entry:cut:canvas"})},mL=(e,t)=>{const n=ki();n&&(MB.f.editing||n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}))},fL=(e,t)=>{const n=am(fn.x.Canvas),r=ki();if(!n||!n.length||!r)return;const s=[];n.forEach(c=>{const{hotAttr:d}=c,p=!d.isClipContent;s.push({key:c.key,hotAttr:{isClipContent:p}})}),r({type:"entry:widget:change",payload:{flatChgList:s,isCombineChange:!0}})},gL=(e,t)=>{const n=am(fn.x.Canvas),r=ki();if(!r||!n||!n.length||!t)return;const{"page-background-type":s}=t;if(!s)return;const c=n.map(d=>{if(sdkStore.isTrashed(d.key)||d.hotAttr.type!==fn.x.Canvas)return null;let p={};switch(s){case"grid":p={isGridLayout:!0};break;case"vertical-line":p={isColLayout:!0};break;case"horizontal-line":p={isRowLayout:!0};break;default:break}return{...d,hotAttr:{...d.hotAttr,layoutGrid:{...d.hotAttr.layoutGrid,...p}}}});r({type:"entry:widget:change",payload:{flatChgList:c,shouldReBuildTree:!0,isCombineChange:!0}})},yL=()=>{const e=xd.getInstance();e.register("CPage",cL),e.register("EPage",dL),e.register("CPageCopy",pL),e.register("CopyPage",uL),e.register("CutPage",hL),e.register("PastePage",mL),e.register("ToggleClipContent",fL),e.register("EPageLayout",gL)},vL=(e,t,n)=>{const{"board-name":r}=e;if(r.trim()===""||r.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});return}t({type:"entry:update:screen-name",payload:{attr:"name",value:r,screen:MB.getCurrentScreen()}})},xL=(e,t,n)=>{const{"background-color":r}=e;t({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!0,fill:"solid",solidColor:ol(r)}}})},bL=(e,t)=>{const n=ki();n&&n({type:"entry:create:screen:auto:to:root-project"})},CL=(e,t)=>{var n,r;const s=ki(),c=(0,kc.dP)();if(!s||!c)return;const p=(0,ht.He)(c)[(n=MB.getCurrentScreen())==null?void 0:n.cid];if(!((0,br.zK)((r=MB.getCurrentScreen())==null?void 0:r.cid)<7)){MB.notice({text:"\u753B\u5E03\u5C42\u7EA7\u6700\u591A\u652F\u63017\u5C42",type:"warning"});return}s({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:p}})},wL=(e,t)=>{const n=ki();n&&n({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0}})},SL=(e,t)=>{const n=ki(),r=(0,kc.dP)();!n||!r||!t||(t["board-name"]&&vL(t,n,r),t["background-color"]&&xL(t,n,r))},AL=(e,t)=>{var n;const r=ki(),s=(0,kc.dP)();if(!r||!s)return;const c=(0,cl.I_)(s),d=(0,ht.He)(s),p=(0,ht.WU)(s),g=(0,ht.Hs)(s),{contextScreenSelection:y}=c,w=y.length===1,_=d[((n=MB.getCurrentScreen())==null?void 0:n.cid)||y[0]];if(p&&(!w||w&&g.length===1&&_.key===g[0])){r({type:"entry:remove:screen:selection:del"});return}if(_){r({type:"entry:remove:screen:check:del",payload:{screen:_}});return}r({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:y}})},ML=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const s=(0,cl.I_)(r),c=(0,ht.He)(r),d=(0,ht.WU)(r),p=(0,ht.Hs)(r),{contextScreenSelection:g}=s,y=g.length===1,w=c[g[0]],_=d&&(!y||y&&p.length===1&&w.key===p[0]);if(_){n({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:_}});return}if(w){n({type:"entry:check:dup:screen:page:folder",payload:{screen:w}});return}n({type:"entry:check:dup:screen:page:folder:batch"})},kL=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const s=(0,cl.I_)(r),c=(0,ht.He)(r),d=(0,ht.WU)(r),p=(0,ht.Hs)(r),{contextScreenSelection:g}=s,y=g.length===1,w=c[g[0]],_=d&&(!y||y&&p.length===1&&w.key===p[0]);MB.global.experienceLoginModalHelper("isSave")||n({type:"entry:transfer:screen",payload:{screen:w,isScreenSelectionContextMenu:_}})},EL=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const{isEditingCombo:s,isEditingUserCombo:c}=(0,we.r)(r);n({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:s,isEditingUserCombo:c}}})},IL=(e,t)=>{ki()({type:"entry:unExpand:all:screen"})},TL=(e,t)=>{ki()({type:"entry:expand:all:screen"})},_L=()=>{const e=xd.getInstance();e.register("CCanvas",bL),e.register("CSubCanvas",CL),e.register("CDirectory",wL),e.register("ECanvas",SL),e.register("DCanvas",AL),e.register("CCanvasCopy",ML),e.register("MoveCanvas",kL),e.register("CanvasViewRecycle",EL),e.register("CollapseCanvas",IL),e.register("ExpandCanvas",TL)},PL=(e,t)=>{const n=ki();n&&n({type:"settings:set:activeIndex",payload:{activeIndex:1}})},LL=()=>{xd.getInstance().register("OpenEventsPanel",PL)};var NL=i(29078);const jL=(e,t)=>{const n=ki();n&&n({type:"entry:toggle:lock"})},DL=(e,t)=>{const n=ki();n&&n({type:"entry:toggle:visible"})},OL=(e,t)=>{const n=ki(),r=(0,kc.dP)();if(!n||!r)return;const s=MB.getCurrentScreen(),c=(0,ht.wJ)(r),d=(0,NL.ww)(s,c);n(d?{type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}:{type:"layerExpandedKeySet:open:ref"})},RL=()=>{const e=xd.getInstance();e.register("ToggleLayerLock",jL),e.register("ToggleLayerVisible",DL),e.register("ToggleLayerExpand",OL)},BL=e=>{const t=new Map;return{dispatch:e,register:(n,r)=>{t.set(n,r)},unRegister:n=>{t.delete(n)},has:n=>t.has(n),exec:(n,r)=>{var s;(s=t.get(n))==null||s(n,r)}}},UL=()=>{w_(),T_(),U_(),AP(),LP(),KP(),YP(),FP(),BP(),QP(),JP(),tL(),rL(),lL(),yL(),_L(),LL(),RL()};class xd{static getInstance(t){return xd.instance||(xd.instance=BL(t),UL()),xd.instance}}const ki=()=>{var e;return(e=xd.getInstance())==null?void 0:e.dispatch};var FL=i(73298);const VL=e=>{const{isShowAIModal:t,isShowAISemantic:n,isShowAIChatPanel:r,currentAIComponent:s,historySemanticValue:c,showGuide:d,generating:p,leftPanelWidth:g,layout:y,user:w,org:_,project:j,switchIsChat:N,currentPopupPanel:Z,userInputObj:Q,theme:se,dispatch:ie}=e,[he,xe]=(0,l.useState)(0),[Se,_e]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),[De,Je]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),[Ne,pt]=(0,l.useState)((0,o.jsx)(o.Fragment,{}));(0,l.useEffect)(()=>{xe(g+(y==="old_right"?0:ic.fn)+28)},[g,y]);const _t=(0,l.useMemo)(()=>({getHotItem:Rn=>sdkStore.getHotItem(Rn),getNewRichTextEditorState:(Rn,On)=>{const Lo=Df.e6.replaceText(Rn.getCurrentContent(),Rn.getSelection(),On),Yo=Df.$t.push(Rn,Lo,"insert-fragment");return ie({type:"set:rich:text:editor:state",payload:{richTextEditorState:Yo}}),Yo},updateAIState:Rn=>ie({type:"ai:update:state",payload:Rn}),openLeftSidePanel:()=>ie({type:Mh.X.AIOpenLeftNav}),updateEditingCid:Rn=>ie({type:"entry:set:editing:cid",payload:Rn}),updateCurrentOrg:Rn=>{let{org:On}=Rn;return ie({type:"set:current:org",payload:{org:On}})},updateCurrentUser:Rn=>{let{user:On}=Rn;return ie({type:"set:current:user",payload:{user:On}})},aiGenerate:Rn=>ie({type:"ai:generate",payload:Rn}),updateWidget:Rn=>{let{widgetType:On,data:Lo,type:Yo}=Rn;return ie({type:"entry:autoFill:update:widget",payload:{widgetType:On,data:Lo,type:Yo,device:j.device}})},aiPreTextGenerate:Rn=>{const{key:On,currentIsLock:Lo}=Rn;Lo||ie({type:"entry:widget:change",payload:{flatChgList:[{key:On,hotAttr:{isLock:!0}}]}})},recoverEditorSelection:om.We,notice:Rn=>{var On;return(On=MB)==null?void 0:On.notice(Rn)},track:(Rn,On)=>(0,e0.ZI)(Rn,On),getChangingData:om.Ub,handleAIQuestion:async Rn=>{ie({type:Mh.X.AIToggleOpenChatPanel})},getCmdExec:()=>xd.getInstance(ie),aiComponentGenerate:async Rn=>{let{semanticValue:On}=Rn;await ie({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:On}})},setAIComponentSourceCache:Rn=>FL.ZF.setCache(Rn)}),[ie,j.device,Z]),gt=(0,l.useMemo)(()=>({user:w,org:_,project:j}),[_,j,w]),Ct=(0,l.useMemo)(()=>({currentAIComponent:s,showGuide:d,generating:p,historySemanticValue:c,switchIsChat:N,accountData:gt,actions:_t,userInputObj:Q}),[s,d,p,c,N,gt,_t,Q]),zt=(0,l.useMemo)(()=>({handleToggleAIChatPanel:()=>ie({type:Mh.X.AIToggleOpenChatPanel}),updateIsInChatModal:Rn=>ie({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:Rn}}),updateCurrentOrg:Rn=>{let{org:On}=Rn;return ie({type:"set:current:org",payload:{org:On}})},updateCurrentUser:Rn=>{let{user:On}=Rn;return ie({type:"set:current:user",payload:{user:On}})},track:(Rn,On)=>{(0,e0.ZI)(Rn,On)}}),[ie]),Dt=(0,l.useMemo)(()=>({user:w,org:_,project:j,theme:se,showHeadSwitch:!1}),[_,j,se,w]),sn=(0,l.useMemo)(()=>({actions:zt,commonData:Dt}),[Dt,zt]);return(0,l.useEffect)(()=>{_e(t?VI(()=>({...Ct,defaultPos:{left:he,top:ic.E0+28}})):(0,o.jsx)(o.Fragment,{}))},[Ct,he,t]),(0,l.useEffect)(()=>{Je(n?a_(()=>Ct):(0,o.jsx)(o.Fragment,{}))},[Ct,n]),(0,l.useEffect)(()=>{pt(r?d_(()=>sn):(0,o.jsx)(o.Fragment,{}))},[sn,r]),(0,o.jsxs)(o.Fragment,{children:[Se,De,Ne]})},zL=(0,k.Mz)([em.Pp,em.Ky,em.Uz,em.Qj,em.fh,em.Sd,em.fz,ht.uE,q.bP,re.HW,re.wA,re.PL,we.r,Y.jx,ht.OW,em.Ny,q.O4],(e,t,n,r,s,c,d,p,g,y,w,_,j,N,Z,Q,se)=>{let{isEditingProjectMain:ie}=j;const he=N===Te.qi.OnlyView;return{isShowAIModal:(s==null?void 0:s.type)===Mg.SR.AutoFill||!he&&ie&&e,isShowAISemantic:t&&!r&&!he&&ie,isShowAIChatPanel:n&&!r&&!he&&ie,showGuide:r,currentAIComponent:s,historySemanticValue:c,generating:d,leftPanelWidth:p,layout:g,user:y,org:w,project:_,currentPopupPanel:Z,userInputObj:Q,theme:se}}),WL=(0,a.Ng)(e=>zL(e))(VL);var n5=i(30986),HL=i(61987);const GL=E.Ay.div.withConfig({displayName:"styles__StyledExportTags",componentId:"sc-xzhc9p-0"})(["width:100%;height:72px;padding:8px 20px 0 20px;background:",";display:flex;flex-direction:row;justify-content:space-between;.menu-item{width:80px;height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:6px 6px 0 0;cursor:pointer;.icon-container{position:relative;.icon{width:20px;height:25px;}.beta{position:absolute;width:26px !important;height:12px !important;top:-3px;right:-18px;}}span{color:",";}div{white-space:nowrap;}}.menu-item.checked{background:",";span{font-weight:500;color:",";}}.menu-item.tempDisabled{opacity:0.4;}"],e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_link_normal),ZL=e=>{let{menuMap:t,currentTag:n,onClick:r}=e;return(0,o.jsx)(GL,{children:t.map(s=>(0,o.jsx)(KL,{text:s.text,dataType:s.dataType,iconName:s.iconName,icon:s.icon,tempDisabled:s.tempDisabled,isChecked:s.dataType===n,isBeta:s.isBeta,onClick:r},s.dataType))})},KL=(0,l.memo)(e=>{let{dataType:t,text:n,iconName:r,tempDisabled:s,isChecked:c,icon:d,isBeta:p,onClick:g}=e;const y=(w,_)=>{if(_)return MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"}),null;g(w)};return(0,o.jsxs)("div",{className:"menu-item "+(c?"checked":"")+" "+(s?"tempDisabled":""),onClick:()=>y(t,s),children:[(0,o.jsxs)("div",{className:"icon-container",children:[d||(0,o.jsx)("img",{className:"icon",src:"/mb-proto2/images/workspace/design/export_"+r+".svg"}),p&&(0,o.jsx)(HL.A,{className:"beta"})]}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{children:n})})]})}),YL=(0,l.memo)(ZL);var XL=i(37810),o5=i(78998),Uf=i(65710),vf=i(24437);const QL=E.Ay.div.withConfig({displayName:"styles__StyledDownloadPanel",componentId:"sc-s3bv9n-0"})(['width:100%;.flex-row{display:flex;flex-direction:row;align-items:center;}.flex-row-space{display:flex;flex-direction:row;justify-content:space-between;align-items:center;}.flex-row-end{display:flex;flex-direction:row;justify-content:flex-end;}.flex-colum-center{display:flex;flex-direction:column;justify-content:center;align-items:center;}.cancel{transition:all ease-in-out 0.2s;}.download{margin-left:12px;}.upgrade{width:100%;background:linear-gradient(90deg,#FCEAD0 -8.53%,#EDB46C 99.98%);border:none;&:hover:not([class*="is-disabled"]){background:linear-gradient(90deg,#F2D9B6 -8.53%,#E5A450 99.98%);border:none;}.btn-text{color:#61290C;}}.icon-success{width:16px;height:16px;margin-bottom:10px;}.icon-success > *{fill:#23b571;}.icon-close{width:16px;height:16px;position:absolute;top:20px;right:20px;g > path{fill:',";}}.icon-close:hover{cursor:pointer;g > path{fill:",";}}.panel{width:100%;height:auto;padding:0 20px;background:",";position:relative;.state-container{z-index:99;position:absolute;top:0;left:0;transform:unset;background-color:",";}.title{color:",";}.option-container{width:100%;min-height:160px;height:auto;margin:20px 0;.option{height:40px;.title{font-weight:500;}.export-panel-page-group{min-width:200px;justify-content:end;.Radio{margin-right:28px;height:16px;min-height:auto;}}.export-panel-scale-group .Radio{margin-right:20px;height:16px;min-height:auto;}.export-panel-page-group .Radio:last-child,.export-panel-scale-group .Radio:last-child{margin-right:0;}}.state-option{margin-top:12px;.select{width:160px;display:flex;justify-content:space-between;border:1px solid ",";}}}.btn-container{height:48px;}.success-container{width:100%;height:100%;.download-link{color:",";text-decoration:underline;&:hover{color:",";}}p:nth-child(4){font-size:10px;line-height:14px;padding-top:28px;padding-left:69px;padding-right:72px;text-align:center;}}.qrcode-container{width:100%;height:100%;padding:0 44px;&:lang(en){display:flex;flex-direction:column;}.left{height:100%;width:106px;p{margin-top:4px;text-align:center;color:",";}&:lang(en){order:2;margin-bottom:15px;margin-top:10px;p{white-space:nowrap;}}}.qrcode{padding:5px;display:flex;border:1px solid ",";}.right{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;&:lang(en){order:1;}}.download-link{color:",";text-decoration:underline;&:hover{color:",";}}}.loading-container{width:100%;height:100%;margin-top:0;margin-left:0;.icon-loading{width:18px;height:18px;margin-bottom:12px;}}.overview-container{width:100%;height:200px;padding-top:20px;.option{margin-bottom:24px;p{line-height:17px;font-size:12px;}p.title{font-weight:500;margin-bottom:4px;}.svg-icon{width:28px;height:28px;}.svg-icon > *{fill:",";}.description{width:290px;margin-left:8px;p{color:",";&.title{color:",";}}}}}}.panel.showTip{border-radius:0;}.panel.dark .option-container .option .Switch > button{border:unset;}.bottom-tips{background-color:",";padding:6px 24px;color:",";display:flex;justify-content:space-between;align-items:center;a{margin-left:10px;color:#ff6161;font-weight:500;}a:hover{color:#db5659;}.arrow-icon{width:7px;height:11px;margin-left:8px;margin-bottom:2px;vertical-align:middle;}}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L2),JL=E.Ay.div.withConfig({displayName:"styles__StyledDownloadPanelBuyMe",componentId:"sc-s3bv9n-1"})(["position:relative;.buyme-btn{border-radius:44px;width:84px;height:24px;display:flex;font-weight:600;justify-content:center;align-items:center;cursor:pointer;color:",";background:",";&:hover{background:",";}}"],e=>e.theme.free_buyme_btn_color,e=>e.theme.free_buyme_btn_bg_color,e=>e.theme.free_buyme_btn_bg_color_hover),qL=e=>{var t;let{theme:n,currentTag:r,type:s,downloadable:c,downloadFileName:d,loading:p,pdfDimensionExceeded:g,progress:y,screenStateList:w,currentProject:_,currentUser:j,dispatch:N,screenSelection:Z,canvasDimensionExceeded:Q,currentOrg:se}=e;const ie=_==null?void 0:_.is_org_project;let he=!1,xe=!0;if(ie){const{plan:Kr}=(0,wr.rM)(se);xe=Kr===Ds.Sj.OrgFree||Kr===Ds.Sj.OrgExpired,he=!xe}else xe=Xs.tz.InitialUser(j).planSdk.prototypePlan.getUserPlan()===Ds.L1.Free,he=!xe;const[Se,_e]=(0,l.useState)((0,jt.Yt)(mt.XY.DOWNLOADTYPE,mt.y5.PAGE,jt.qW.String)),[De,Je]=(0,l.useState)(mt.g6.CURRENT_PAGE),[Ne,pt]=(0,l.useState)((0,jt.Yt)(mt.XY.SCALE,1,jt.qW.Number)),[_t,gt]=(0,l.useState)((0,jt.Yt)(mt.XY.FULLSCREEN,!1,jt.qW.Boolean)),Ct=_t,[zt,Dt]=(0,l.useState)((0,jt.Yt)(mt.XY.SHELL,!1,jt.qW.Boolean)),[sn,Rn]=(0,l.useState)((0,jt.Yt)(mt.XY.STICKY,!1,jt.qW.Boolean)),[On,Lo]=(0,l.useState)((0,jt.Yt)(mt.XY.CANVASNAME,!1,jt.qW.Boolean)),[Yo,Cn]=(0,l.useState)((t=w[0])==null?void 0:t.cid),[hn,oa]=(0,l.useState)((0,jt.Yt)(mt.XY.STATE,mt.Gd.ALL,jt.qW.String)),Ao=p,ca=!p&&y===100&&r!==mt.xk.APK,va=!p&&y===100&&r===mt.xk.APK,ra=[mt.xk.PNG,mt.xk.PDF,mt.xk.DESIGN2].includes(r),Jo=[mt.xk.HTMLZIP,mt.xk.APK,mt.xk.SOURCE_FILE].includes(r),$o=!he&&[mt.xk.PNG,mt.xk.PDF].includes(r),sa=!ENV.IS_MO&&ie&&!xe&&r===mt.xk.APK,da=$o||sa,nr=r===mt.xk.SOURCE_FILE&&ie&&!(0,o5.C8)({currentOrg:se,userId:j.id}),cr=(0,vf.FT)(Z);(0,l.useEffect)(()=>{r===mt.xk.PDF&&Ne>2&&(pt(2),(0,jt.a0)(mt.XY.SCALE,2,jt.qW.Number))},[r,Ne]);const Vr={[mt.xk.PNG]:()=>{const Kr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:_.name,project_cid:_.cid,download_type:mt.xk.PNG,export_image_times:Ne+"x",download_page_type:De===mt.g6.CURRENT_PAGE?"\u5F53\u524D\u9875":"\u6240\u6709\u9875\u9762",include_device_frame:zt?1:0,outside_artboard_symbol_included:_t?1:0,comment_include:sn?1:0,include_page_name:On?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};De===mt.g6.ALL_PAGE?N({type:"entry:export:all:page",payload:{scale:Ne,format:"png",isWithDeviceFrame:zt,isExportSticky:sn,downloadPageType:Se,isIncludeCanvasName:On,trackParams:Kr}}):N({type:"entry:export:page",payload:{pageToExportKeyList:cr,scale:Ne,format:"png",isWithDeviceFrame:zt,isExportSticky:sn,downloadPageType:Se,isIncludeCanvasName:On,trackParams:Kr}})},[mt.xk.PDF]:()=>{const Kr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:_.name,project_cid:_.cid,download_type:mt.xk.PDF,include_device_frame:zt?1:0,outside_artboard_symbol_included:_t?1:0,comment_include:sn?1:0,include_page_name:On?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};De===mt.g6.ALL_PAGE?N({type:"entry:export:all:page",payload:{scale:Ne,format:"pdf",isWithDeviceFrame:zt,isExportSticky:sn,downloadPageType:Se,isIncludeCanvasName:On,trackParams:Kr}}):N({type:"entry:export:page",payload:{pageToExportKeyList:cr,scale:Ne,format:"pdf",isWithDeviceFrame:zt,isExportSticky:sn,downloadPageType:Se,isIncludeCanvasName:On,trackParams:Kr}})},[mt.xk.HTMLZIP]:()=>{const Kr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:_.name,project_cid:_.cid,download_type:mt.xk.HTMLZIP,download_source:"\u539F\u578B\u5BFC\u51FA"};N({type:"entry:download:project",payload:{type:mt.xk.HTMLZIP,trackParams:Kr}})},[mt.xk.APK]:()=>{const Kr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:_.name,project_cid:_.cid,download_type:mt.xk.APK,download_source:"\u539F\u578B\u5BFC\u51FA"};N({type:"entry:download:project",payload:{type:mt.xk.APK,trackParams:Kr}})},[mt.xk.SOURCE_FILE]:()=>{const Kr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:_.name,project_cid:_.cid,download_type:mt.xk.SOURCE_FILE,download_source:"\u539F\u578B\u5BFC\u51FA"};N({type:"entry:download:project",payload:{type:mt.xk.SOURCE_FILE,trackParams:Kr}})},[mt.xk.DESIGN2]:()=>{MB.global.experienceLoginModalHelper("isSave")||(N({type:"modal:update:state",payload:{canvasConvertedToPixsoModal:{isOpen:!0,pageType:De}}}),yr())}},yr=()=>{N({type:"export:update:state",payload:{isExportMenuShow:!1}})},pi=async()=>{Vr[r]();const Kr={[mt.xk.PNG]:"png",[mt.xk.PDF]:"pdf",[mt.xk.APK]:"apk",[mt.xk.HTMLZIP]:"html",[mt.xk.SOURCE_FILE]:I18N.ExportManager.source_file};se&&Object.keys(Kr).includes(r)&&await(0,ad.VX)({actionType:4,action:1004,orgCid:se.cid,extra:{user_name:j.name,project_name:_.name,project_download_type:Kr[r]}}),Vc.U4.protoDownloadTrack(j==null?void 0:j.id,r,"\u53F3\u4E0A\u89D2\u6309\u94AE")},hi=Kr=>{const{target:Gi}=Kr;document.querySelector("#export-panel").contains(Gi)||Gi.closest(".WorkspaceSelectMenu")||Gi.closest(".ai-semantic-export")||Gi.closest("#design-export")||Gi.closest(".OrderChargeOverlay")||N({type:"entry:toolbar:open:export_menu",payload:{open:!1}})},Hi=()=>{N({type:"export:update:state",payload:{loading:!1,progress:0}})};return(0,o.jsxs)(QL,{children:[(0,o.jsxs)("div",{className:"panel "+(da?"showTip":"")+" "+(n==="dark"?"dark":""),children:[ra&&(0,o.jsx)($L,{currentTag:r,screenStateList:w,onDownloadClick:pi,onCancelClick:yr,downloadPageType:Se,setDownloadPageType:_e,page:De,setPage:Je,scale:Number(Ne),setScale:pt,isFullScreen:_t,setIsFullScreen:gt,isShowShell:zt,shouldIsShowShellBeDisabled:Ct,setIsShowShell:Dt,currentStateCid:Yo,setCurrentStateCid:Cn,screenSelection:cr,morePageStateCid:hn,setMorePageStateCid:oa,isExportSticky:sn,setIsExportSticky:Rn,isIncludeCanvasName:On,setIsIncludeCanvasName:Lo,isFreePlan:xe}),Jo&&(0,o.jsx)(eN,{currentTag:r,isOrgProject:ie,currentUser:j,onDownloadClick:pi,onCancelClick:yr,isFreePlan:xe,currentOrg:se,showDisabledDownloadSourceFile:nr}),ca&&(0,o.jsx)(nN,{pdfDimensionExceeded:g,canvasDimensionExceeded:Q,onClose:Hi,type:s,downloadable:c,downloadFileName:d}),va&&(0,o.jsx)(oN,{onClose:Hi,downloadLink:c,downloadFileName:d,theme:n,currentProject:_}),Ao&&(0,o.jsx)(tN,{currentTag:r,page:De,progress:y})]}),$o&&(0,o.jsx)(aN,{currentTag:r,currentOrg:se,theme:n}),sa&&(0,o.jsx)(bv,{text:I18N.ExportManager.apk_download_font_alert}),nr&&(0,o.jsx)(bv,{text:I18N.ExportManager.disabled_export_source_file_tips}),(0,o.jsx)(Jr.A,{target:document,onClick:(0,Jr.t)(hi,{capture:!0})})]})},$L=e=>{let{currentTag:t,onCancelClick:n,onDownloadClick:r,page:s,scale:c,isShowShell:d,setPage:p,setScale:g,setIsShowShell:y,screenSelection:w,isFreePlan:_,downloadPageType:j,setDownloadPageType:N,isExportSticky:Z,setIsExportSticky:Q,isIncludeCanvasName:se,setIsIncludeCanvasName:ie}=e;const he=(0,vf.FT)(w),xe=he.length>1,Se=[mt.xk.PNG,mt.xk.PDF].includes(t);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"option-container",children:[(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_scope_title}),(0,o.jsx)(Ro.A,{className:"export-panel-page-group",size:"small",optionList:Uf.lJ.map(_e=>xe&&_e.value===mt.g6.CURRENT_PAGE?{..._e,label:I18N.ExportManager.selected_artboard+"\uFF08"+he.length+"\uFF09"}:{..._e,label:I18N.ExportManager[_e.label]}),value:s,onToggle:_e=>p(_e)})]}),Se&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_type_title}),(0,o.jsx)(Ro.A,{className:"export-panel-page-group",size:"small",optionList:[{label:I18N.ExportManager.artboard,value:mt.y5.PAGE},{label:I18N.ExportManager.page,value:mt.y5.CANVAS}],value:j,onToggle:_e=>{N(_e),(0,jt.a0)(mt.XY.DOWNLOADTYPE,_e,jt.qW.String)}})]}),(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:t===mt.xk.PNG?I18N.ExportManager.export_image_scaling:I18N.ExportManager.export_pdf_scaling}),(0,o.jsx)(yd.A,{isShowTips:_,content:ENV.IS_ON_PREMISES?"":I18N.ExportManager.export_watermark_tip,direction:"up",maxWidth:ENV.IS_MO?"195px":"100px",children:(0,o.jsx)("div",{children:(0,o.jsx)(Ro.A,{className:"export-panel-scale-group",size:"small",optionList:(0,Uf.z4)(t,_),value:c,onToggle:_e=>{g(_e),(0,jt.a0)(mt.XY.SCALE,_e,jt.qW.Number)}})})})]}),j===mt.y5.CANVAS?(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.include_note}),(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:Z,onChange:_e=>{Q(_e),(0,jt.a0)(mt.XY.STICKY,_e,jt.qW.Boolean)}})]}):(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.show_device_shell}),(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:d,isDisabled:!1,onChange:_e=>{y(_e),(0,jt.a0)(mt.XY.SHELL,_e,jt.qW.Boolean)}})]}),j===mt.y5.CANVAS&&(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_include_artboard_name}),(0,o.jsx)(Jh.A,{size:"small",isIOS:!0,isChecked:se,onChange:_e=>{ie(_e),(0,jt.a0)(mt.XY.CANVASNAME,_e,jt.qW.Boolean)}})]})]})]}),(0,o.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,o.jsx)(Fl.tA,{className:"cancel",onClick:n,children:I18N.ExportManager.cancel}),(0,o.jsx)(Fl.jn,{className:"download",onClick:r,children:I18N.ExportManager.export})]})]})},eN=e=>{let{currentTag:t,onCancelClick:n,onDownloadClick:r,isOrgProject:s,currentUser:c,isFreePlan:d,currentOrg:p,showDisabledDownloadSourceFile:g}=e;const w=Xs.tz.InitialUser(c).planSdk.prototypePlan.getUserPlan(),_=w===Ds.L1.Free,j=t===mt.xk.HTMLZIP,N=t===mt.xk.APK,Z=t===mt.xk.SOURCE_FILE,Q=N&&(!s||s&&d),se=j&&(!s&&_||s&&d),ie=[Ds.L1.Lifetime,Ds.L1.PremiumLifetime].includes(w),he=Z&&(!s&&!ie||s&&d),xe=!Q&&!se&&!he,Se=()=>{let _e="",De="";t===mt.xk.HTMLZIP?p?(_e="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",De="workspace-v8_org_download_html"):(_e="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",De="workspace-v8_solo_download_html"):t===mt.xk.APK?(_e="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_apk",De="workspace-v8_org_apk"):t===mt.xk.SOURCE_FILE&&(_e="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u6E90\u6587\u4EF6",De="workspace-v8_org_download_source");const Je=(0,tr.l)(p,_e,De);N&&!p?(Je.mode="org",Je.isSelectOrg=!0):Z&&!p&&(Je.immediateUse="solo_lifeTime"),MB.global.popupHelper.chargeAsync(Je)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"overview-container",children:[j&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(Et.C,{name:"design/export/offline"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.offline_presentation}),(0,o.jsx)("p",{children:I18N.ExportManager.offline_presentation_description})]})]}),(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(Et.C,{name:"design/export/package"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.versioning}),(0,o.jsx)("p",{children:I18N.ExportManager.versioning_description})]})]})]}),N&&(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(Et.C,{name:"design/export/phone"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.simulate_prototype_on_real_device}),(0,o.jsx)("p",{children:I18N.ExportManager.simulate_prototype_on_real_device_description})]})]}),Z&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(Et.C,{name:"design/export/save"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.save_to_local}),(0,o.jsx)("p",{children:I18N.ExportManager.save_to_local_description})]})]}),(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(Et.C,{name:"design/export/edit"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.edit_after_import}),(0,o.jsx)("p",{children:I18N.ExportManager.edit_after_import_description})]})]})]})]}),xe&&(0,o.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,o.jsx)(Fl.tA,{className:"cancel",onClick:n,children:I18N.ExportManager.cancel}),(0,o.jsx)(Fl.jn,{className:"download",onClick:r,disabled:g,children:I18N.ExportManager.export})]}),Q&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(Fl.Qi,{className:"upgrade",onClick:Se,children:s?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_enterprise_plan_now})}),se&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(Fl.Qi,{className:"upgrade",onClick:Se,children:s?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_download_html5})}),he&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(Fl.Qi,{className:"upgrade",onClick:Se,children:s?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_lifetime_plan_now})})]})},tN=e=>{let{currentTag:t,page:n,progress:r}=e;return(0,o.jsxs)("div",{className:"state-container loading-container flex-colum-center",children:[(0,o.jsx)("img",{className:"icon-loading",src:"/mb-proto2/images/loading.gif"}),t===mt.xk.PNG&&n!==mt.g6.CURRENT_PAGE?(0,o.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress_will_be_slow,r,"%"]}):(0,o.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress,r,"%"]})]})},nN=e=>{let{onClose:t,downloadable:n,downloadFileName:r,canvasDimensionExceeded:s}=e;const c=()=>{(0,o5.Q)(n,r)};return(0,o.jsxs)("div",{className:"state-container success-container flex-colum-center",children:[(0,o.jsx)(Et.C,{className:"icon-success",name:"design/export/success"}),(0,o.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,o.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,o.jsx)("a",{className:"download-link",onClick:()=>c(),children:I18N.ExportManager.click_here_to_download})]}),s&&(0,o.jsx)("p",{children:I18N.ExportManager.large_page_can_not_export_png}),(0,o.jsx)(Et.C,{className:"icon-close",name:"design/export/close",onClick:()=>{t()}})]})},oN=e=>{let{onClose:t,downloadLink:n,downloadFileName:r,theme:s,currentProject:c}=e;const d="https://"+window.location.host+"/proto/"+(c==null?void 0:c.access_token)+"?via=qrcode";return(0,o.jsxs)("div",{className:"state-container qrcode-container flex-row-space",children:[(0,o.jsxs)("div",{className:"left flex-colum-center",children:[(0,o.jsx)(XL.A,{className:"qrcode",text:d,width:94,height:94,foreground:Cg.A[s].color_text_L1,background:Cg.A[s].color_bg_white}),(0,o.jsx)("p",{children:I18N.ExportManager.scan_to_preview_prototype})]}),(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)(Et.C,{className:"icon-success",name:"design/export/success"}),(0,o.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,o.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,o.jsx)("a",{className:"download-link",onClick:()=>{(0,o5.Q)(n,r)},children:I18N.ExportManager.click_here_to_download})]})]}),(0,o.jsx)(Et.C,{className:"icon-close",name:"design/export/close",onClick:()=>{t()}})]})},aN=e=>{let{currentTag:t,currentOrg:n,theme:r}=e;const s=()=>{let d="",p="";t===mt.xk.PDF?n?(d="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_pdf",p="workspace-v8_org_download_pdf"):(d="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_pdf",p="workspace-v8_solo_download_pdf"):t===mt.xk.PNG&&(n?(d="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_png",p="workspace-v8_org_download_png"):(d="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_png",p="workspace-v8_solo_download_png")),MB.global.popupHelper.chargeAsync((0,tr.l)(n,d,p))},c=r==="dark";return(0,o.jsxs)("div",{className:"bottom-tips",children:[""+I18N.ExportManager.upgrade_to_remove_watermark.replace(/{fileType}/,t===mt.xk.PNG?I18N.ExportManager.PNG:I18N.ExportManager.PDF),(0,o.jsx)(JL,{isDark:c,children:(0,o.jsxs)("div",{className:"buyme-btn",onClick:s,children:[(0,o.jsx)(Et.C,{name:"toolbar/upgrade_"+r,size:16,isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:I18N.FreeUpgrade.free})]})})]})},bv=e=>{let{text:t}=e;return(0,o.jsx)("div",{className:"bottom-tips",children:t})},rN=qL;var Ff=i(75862);const iN=(0,k.Mz)([q.O4,Ff.d1,re.PL,re.HW,ht.Hs,re.wA],(e,t,n,r,s,c)=>{const{type:d,downloadable:p,downloadFileName:g,loading:y,progress:w,pdfDimensionExceeded:_,canvasDimensionExceeded:j}=t,{plan:N,trial:Z}=(0,wr.xR)(r,c);return{theme:e,type:d,downloadable:p,downloadFileName:g,loading:y,pdfDimensionExceeded:_,progress:w,currentProject:n||{},currentUser:r,screenStateList:[],screenSelection:s,plan:N,trial:Z,canvasDimensionExceeded:j,currentOrg:c}}),sN=(0,a.Ng)(e=>iN(e))(rN),lN=E.Ay.div.withConfig({displayName:"styles__StyledExportPanel",componentId:"sc-12bxh4g-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-50%);left:-90px;top:40px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.shadow_5),cN=e=>{let{dispatch:t}=e;const n=(0,a.d4)(Ff.OB),r=document.getElementById("design-export"),s=(0,l.useMemo)(()=>ENV.IS_ON_PREMISES?Uf.$S.filter(d=>!["source_file","design2"].includes(d.dataType)):Uf.$S,[]);(0,l.useEffect)(()=>()=>{t({type:"export:update:state",payload:{currentExportTag:"png"}})},[t]);const c=(0,l.useCallback)(d=>{t({type:"export:update:state",payload:{type:d,loading:!1,progress:0,currentExportTag:d}})},[t]);return r?(0,ds.createPortal)((0,o.jsxs)(lN,{id:"export-panel",className:"export-panel-menu",children:[(0,o.jsx)(YL,{menuMap:s.map(d=>({...d,text:I18N.ExportManager[d.text]})),currentTag:n,onClick:d=>c(d)}),(0,o.jsx)(sN,{currentTag:n})]}),r):null},dN=(0,k.Mz)([Ff.d1],e=>{let{isExportMenuShow:t}=e;return{isExportMenuShow:t}});class Cv extends l.Component{render(){const{isExportMenuShow:t,dispatch:n}=this.props;return t?(0,o.jsx)(cN,{dispatch:n}):null}}(0,O.A)(Cv,"propTypes",{isExportMenuShow:Sa().bool,dispatch:Sa().func});const pN=(0,a.Ng)(e=>dN(e))(Cv);var Vf=i(28173),c0=i(94590),uN=i(20014),hN=i(99863);const mN=(0,E.AH)(["width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;cursor:pointer;"]),fN=E.Ay.div.withConfig({displayName:"styles__StyledSideBar",componentId:"sc-ornjz5-0"})(["display:flex;flex-direction:column;align-items:center;pointer-events:auto;z-index:4;.top{width:44px;border-radius:8px;padding:6px 0;overflow:hidden;background:",";border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;align-items:center;}.nav-button{",";transition:background-color 0.2s ease-out;position:relative;margin-bottom:6px;color:",";&:last-child{margin-bottom:0;}&.layout{width:32px;height:24px;}.set-layout-dropdown{width:100%;height:100%;display:flex;align-items:center;justify-content:center;.svg-icon{width:24px;height:24px;}}.icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.disabled{color:",";cursor:not-allowed;}&:not(.disabled):hover{background-color:",";}&:not(.disabled).active{background:",";}}.more-graph-down{margin-bottom:4px;.more-opener{margin-top:0;.item-label{display:none;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,mN,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_navigation_hover,e=>e.theme.color_navigation_active);var Og=i(8342);class gN extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"getOptionList",()=>[{key:zc.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:zc.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"2"},{key:zc.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"3"},{key:zc.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"4"},{key:zc.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}]),(0,O.A)(this,"handleTogglePopup",t=>{if(this.isClickChangeLocked)return;const n=(0,l0.gu)();if(t===zc.lS.AI&&n){this.props.dispatch({type:Mh.X.AIOpenModal,payload:{type:Mg.SR.AIAssistant}}),(0,c0.kX)({operation_type:c0.bZ[t]});return}const{isEditingBasket:r,isEditingCombo:s,dispatch:c,currentDesignOptions:{isExperience:d},isOrgProject:p,currentUser:g}=this.props;t===zc.lS.Template?(0,Og.c)(I18N)[Or.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT].howToShow({currentUser:g}):(MB.commonGuideHelper.closeGuide(Or.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT),MB.commonGuideHelper.markGuideAsRead(Or.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)),t===zc.lS.Asset&&d&&c({type:"image-panel:update:state",payload:{navIndex:p?2:1}}),!(t===zc.lS.Page&&(r||s))&&(t===zc.lS.Template&&s||(c({type:"entry:toggle:popup:panel",payload:{name:t}}),c({type:"entry:search-panel:clear:state"}),(0,c0.kX)({operation_type:c0.bZ[t]})))}),(0,O.A)(this,"handleClick",t=>{const{name:n}=t.currentTarget.dataset;this.handleTogglePopup(n)})}componentDidMount(){const{currentUser:t,currentPopupPanel:n}=this.props;n===zc.lS.Template&&(0,Og.c)(I18N)[Or.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT].howToShow({currentUser:t})}componentWillUnmount(){MB.commonGuideHelper.closeGuide(Or.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)}render(){const{currentPopupPanel:t,isEditingBasket:n,isEditingCombo:r,layout:s,isLoggedIn:c,isEmptyScreen:d}=this.props;return(0,o.jsx)(fN,{className:"sideBar",children:(0,o.jsxs)("div",{className:"top",children:[this.getOptionList().map(p=>{let{key:g,label:y,icon:w,shortCut:_,isColorPure:j}=p;if(g===zc.lS.Page&&(n||r)||g===zc.lS.Template&&r||g===zc.lS.AI&&!(!n&&!r&&c))return null;const N=_?(0,Os.u)({text:g===zc.lS.AI?I18N.LeftSidePanel.ai_label:y,key:_}):y,Z=j||g===zc.lS.AI&&t!==zc.lS.AI,Q=t===g;return(0,o.jsx)(Os.A,{content:N,direction:"left",children:(0,o.jsx)("a",{"data-name":g,className:m()("nav-button",g,{active:Q},d&&"disabled"),onClick:d?null:()=>this.handleTogglePopup(g),children:(0,o.jsx)(Et.C,{className:"item-icon",name:Q?w+"/selected":w,isColorPure:Z})})},g)}),(0,o.jsx)(Os.A,{content:I18N.WorkspaceGuidePane.tool,direction:"left",children:(0,o.jsx)("a",{className:"more-graph-down",children:(0,o.jsx)(hN.j,{direction:"left",portalClassName:".guide_popup_panel .popups-panel"})})}),(0,o.jsx)("a",{className:"nav-button layout",children:(0,o.jsx)(uN.e,{layout:s})})]})})}}const yN=(0,k.Mz)([ht.OW,we.r,re.W4,re.PL,q.bP,re.HW,re.wA,Vf.C,q.MZ],(e,t,n,r,s,c,d,p,g)=>{let{isEmptyScreen:y}=p;const{isEditingBasket:w,isEditingMuban:_,isEditingCombo:j}=t,{is_org_project:N}=r,Z=!!(c!=null&&c.id);return{currentPopupPanel:e,isEditingBasket:w||_,isEditingCombo:j,currentDesignOptions:n,isOrgProject:N,layout:s,isLoggedIn:Z,isEmptyScreen:y,currentUser:c,currentOrg:d,layoutV9:g}}),vN=(0,a.Ng)(e=>yN(e))(gN);var xN=i(46573);const bN=E.Ay.div.withConfig({displayName:"styles__StyledResourcesPanel",componentId:"sc-1qiqks-0"})(["position:absolute;z-index:104;margin-right:14px;display:flex;flex-direction:row-reverse;.sideBar{margin-left:8px;}"]);var CN=i(47695);class wN extends l.PureComponent{componentDidMount(){var t,n;const{dispatch:r,layoutV9:s}=this.props,c=(0,CN.XM)();s==="recommend"&&!c&&!((t=MB.commonGuideHelper)!=null&&t.checkGuideHasShown(Or.c.GUIDE_NOVICE_V9_2408))&&!((n=MB.commonGuideHelper)!=null&&n.checkGuideHasShown(Or.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{r({type:"left-panel:collapse:panel:show"})},0)}render(){const{isShowRightPanel:t,zIndex:n,isEditingPanel:r}=this.props;return(0,o.jsxs)(bN,{className:Or.c.GUIDE_POPUP_PANEL,style:{right:t?ic.xM:0,top:r?126:88,zIndex:n},children:[(0,o.jsx)(vN,{}),(0,o.jsx)(xN.A,{})]})}}const SN=(0,k.Mz)([Wc.UI,ht.OW,ht.dG,we.r,Vf.C,q.MZ],(e,t,n,r,s,c)=>{let{isEditingBasket:d,isEditingMuban:p}=r,{isEmptyScreen:g}=s;const y=ic.pq+n.indexOf(t);return{isEditingPanel:d||p,isShowRightPanel:e&&!g,zIndex:y,layoutV9:c}}),AN=(0,a.Ng)(e=>SN(e))(wN);var MN=i(99587),kN=i(98226),EN=i(27480),wv=i(28064),IN=Object.defineProperty,TN=Object.defineProperties,_N=Object.getOwnPropertyDescriptors,Rg=Object.getOwnPropertySymbols,Sv=Object.prototype.hasOwnProperty,Av=Object.prototype.propertyIsEnumerable,Mv=(e,t,n)=>t in e?IN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a5=(e,t)=>{for(var n in t||(t={}))Sv.call(t,n)&&Mv(e,n,t[n]);if(Rg)for(var n of Rg(t))Av.call(t,n)&&Mv(e,n,t[n]);return e},PN=(e,t)=>TN(e,_N(t)),LN=(e,t)=>{var n={};for(var r in e)Sv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rg)for(var r of Rg(e))t.indexOf(r)<0&&Av.call(e,r)&&(n[r]=e[r]);return n},NN=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=LN(n,["size","spin","style"]);const p=a5(a5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",PN(a5({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4.5 13.25C5.19036 13.25 5.75 12.6904 5.75 12C5.75 11.3096 5.19036 10.75 4.5 10.75C3.80964 10.75 3.25 11.3096 3.25 12C3.25 12.6904 3.80964 13.25 4.5 13.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 13.25C10.1904 13.25 10.75 12.6904 10.75 12C10.75 11.3096 10.1904 10.75 9.5 10.75C8.80964 10.75 8.25 11.3096 8.25 12C8.25 12.6904 8.80964 13.25 9.5 13.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M4.5 8.25C5.19036 8.25 5.75 7.69036 5.75 7C5.75 6.30964 5.19036 5.75 4.5 5.75C3.80964 5.75 3.25 6.30964 3.25 7C3.25 7.69036 3.80964 8.25 4.5 8.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 8.25C10.1904 8.25 10.75 7.69036 10.75 7C10.75 6.30964 10.1904 5.75 9.5 5.75C8.80964 5.75 8.25 6.30964 8.25 7C8.25 7.69036 8.80964 8.25 9.5 8.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M4.5 3.25C5.19036 3.25 5.75 2.69036 5.75 2C5.75 1.30964 5.19036 0.75 4.5 0.75C3.80964 0.75 3.25 1.30964 3.25 2C3.25 2.69036 3.80964 3.25 4.5 3.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 3.25C10.1904 3.25 10.75 2.69036 10.75 2C10.75 1.30964 10.1904 0.75 9.5 0.75C8.80964 0.75 8.25 1.30964 8.25 2C8.25 2.69036 8.80964 3.25 9.5 3.25Z",fill:"#B7B9BD"}))}),Bg=i(28537);const kv=18,XX={light:{bgColor:zo.fm.color_bg_white.value_light,borderColor:zo.fm.color_bg_border_01.value_light,cornerActiveColor:Fc.af.color_interaction_grid.value,fontColor:zo.fm.color_text_disabled01.value_light,line:{normal:zo.fm.color_polyline_normal.value_light,hover:zo.fm.color_polyline_hover.value_light,active:zo.fm.color_polyline_select.value_light},shadowColor:Fc.af.color_ruler_shadow_color.value,longfgColor:zo.fm.color_text_disabled01.value_light,shortfgColor:zo.fm.color_text_disabled01.value_light,menu:{bgColor:Fc.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:zo.fm.color_text_btn.value_light,hoverTextColor:zo.fm.color_text_btn.value_light,disabledTextColor:Fc.af.color_text_disabled01.value,bgColor:Fc.af.color_text_L1.value,hoverBgColor:Fc.af.color_text_L2.value}}},dark:{bgColor:zo.fm.color_bg_white.value_dark,borderColor:zo.fm.color_bg_border_01.value_dark,cornerActiveColor:Fc.af.color_interaction_grid.value,fontColor:zo.fm.color_text_disabled01.value_dark,line:{normal:zo.fm.color_polyline_normal.value_dark,hover:zo.fm.color_polyline_hover.value_dark,active:zo.fm.color_polyline_select.value_dark},shadowColor:Fc.qY.ruler_dark_common_color2.value,longfgColor:zo.fm.color_text_disabled01.value_dark,shortfgColor:zo.fm.color_text_disabled01.value_dark,menu:{bgColor:Fc.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:zo.fm.color_text_btn.value_light,hoverTextColor:zo.fm.color_text_btn.value_light,disabledTextColor:Fc.af.color_text_disabled01.value,bgColor:Fc.af.color_text_L1.value,hoverBgColor:Fc.af.color_text_L2.value}}}},QX={distance_line:26,distance_left:18,distance_right:18,distance_top:18,distance_bottom:48,guide_width:281,guide_height:284},JX=2,qX={bgColor:"rgba(225,225,225)",longfgColor:"#babbbc",shortfgColor:"#c8cdd0",fontColor:"#7d8694",shadowColor:"#f2f2f2",line:{normal:"rgba(255, 19, 19, 0.5)",hover:"#ff1313",active:"#1684fc"},borderColor:"#dadadc",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},$X=(0,o.jsx)("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M1 5.066c0 .211.07.39.212.538L3.346 7.78A.699.699 0 0 0 3.872 8a.69.69 0 0 0 .517-.221l4.39-4.49A.731.731 0 0 0 9 2.753a.717.717 0 0 0-.22-.532A.714.714 0 0 0 8.255 2a.714.714 0 0 0-.524.221l-3.86 3.955L2.26 4.528a.714.714 0 0 0-.524-.221.714.714 0 0 0-.524.221.749.749 0 0 0-.212.538z",fill:"#415058",fillRule:"evenodd"})}),eQ={"zh-CN":{vertical:"\u7EB5\u5411",horizontal:"\u6A2A\u5411",show_ruler:"\u663E\u793A\u6807\u5C3A",show_refer_line:"\u663E\u793A\u53C2\u8003\u7EBF",remove_all:"\u5220\u9664\u6240\u6709",refer_line:"\u53C2\u8003\u7EBF",align_line:"\u5BF9\u9F50\u53C2\u8003\u7EBF"},en:{vertical:"vertical",horizontal:"horizontal",show_ruler:"show rulers",show_refer_line:"show all guides",remove_all:"remove all ",refer_line:"guides",align_line:"align guides"}},tQ={bgColor:"#fff",dividerColor:"#dbdbdb",listItem:{textColor:"#415058",hoverTextColor:"#298df8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#f2f2f2"}},jN=["downarrow","uparrow","leftarrow","rightarrow"],DN=["shift.downarrow","shift.uparrow","shift.leftarrow","shift.rightarrow"],nQ=null,oQ=null,aQ=null,rQ=[...jN,...DN];class xf{constructor(){(0,O.A)(this,"_scale",1)}static getInstance(){return xf.instance||(xf.instance=new xf),xf.instance}get scale(){return this._scale}set scale(t){this._scale=t}}const iQ=xf.getInstance(),sQ=e=>{const{ratio:t,viewportRect:n,canvasRect:r}=e,s=(n.left+RULER_WIDTH-r.canvasLeft)/t,c=(n.top+RULER_WIDTH-r.canvasTop)/t,d=(n.right-r.canvasLeft)/t,p=(n.bottom-r.canvasTop)/t;return{startX:s,startY:c,endX:d,endY:p}},lQ=e=>{let{canvas:t,type:n,value:r}=e;const{x:s=0,y:c=0,w:d=0,h:p=0}=(t==null?void 0:t.hotAttr)||{},g=c-p*.5,y=s-d*.5;return r+(t?n==="horizontal"?g:y:0)},cQ=e=>{let{fromCanvas:t,curCanvas:n,type:r,value:s,realValue:c}=e;if(!n)return c;const{x:d,y:p,w:g,h:y}=(n==null?void 0:n.hotAttr)||{},w=p-y*.5,_=d-g*.5;if(!t)return r==="horizontal"?s-w:s-_;if(t.key===n.key)return s;const{x:j,y:N,w:Z,h:Q}=(t==null?void 0:t.hotAttr)||{},se=N-Q*.5,ie=j-Z*.5;return r==="horizontal"?s+se-w:s+ie-_},dQ=()=>{const e=useSelector(getCanvasRect),t=palette[useSelector(getTheme)],n=useSelector(getCanvasOffset),r=useSelector(getCurrentScreenCid),s=useSelector(getCurrentToolBarHeight),c=useSelector(getViewportRect),d=useSelector(getLeftPanelWidth),p=useSelector(getLeftPanelShow),g=useSelector(getFullScreenMode),y=useSelector(getLayout),_=useSelector(getCurrentViewType)===ViewType.OnlyView,j=g||y==="old_right"||_?0:LEFT_NAV_WIDTH,N=useSelector(getRulerShowReferLine)&&!_,Z={width:c==null?void 0:c.width,height:c==null?void 0:c.height,left:p?d+j:j,transform:"matrix(1, 0, 0, 1, "+(Math.round(-n.x)-window.innerWidth/2)+", "+(Math.round(-n.y)-(window.innerHeight-s)/2)+")"};return{theme:t,canvasRect:e,viewportRect:c,containerStyle:Z,currentScreenCid:r,curToolBarHeight:s,isShowReferLine:N}},pQ=()=>{const t=useSelector(getCurrentViewType)===ViewType.OnlyView;return useSelector(getRulerShowReferLine)&&!t},ON=()=>{const e=(0,a.d4)(re.$S),t=(0,a.d4)(q.qT),n=(0,a.d4)(Y.pH),r=(0,a.d4)(Y.rg),s=(0,a.d4)(Y.uu);return e&&t&&!n&&!r&&!s},uQ=()=>{var e,t;const n=useSelector(getCurrentScreenCid),r=n?sdkStore.getHotItem(n):null;return{alignH:(r==null||(e=r.hotAttr)==null?void 0:e.alignH)||[],alignV:(r==null||(t=r.hotAttr)==null?void 0:t.alignV)||[]}},hQ=()=>{const e=useSelector(getWidgetTreeData);return useMemo(()=>{const n={};return sdkStore.getSubHotItemList(e.cid).forEach(r=>{var s,c;const{key:d,hotAttr:p}=r;p.type===WidgetType.Canvas&&(((s=p.alignH)==null?void 0:s.length)>0||((c=p.alignV)==null?void 0:c.length)>0)&&(n[d]=r)}),n},[e])},RN=()=>{const e=useSelector(getWidgetTreeData),t=useSelector(getScale)/100,n=useSelector(getViewportRect),r=useSelector(getCanvasOffset);return useCallback(s=>{const c=prepareEvent(s,{scale:t*100,offset:r,viewportRect:n}),d=findCanvasAt(c,e.key);return d?sdkStore.getHotItem(d):null},[e,t,n,r])},mQ=e=>RN()(e),fQ=()=>{const t=useSelector(getCurrentViewType)===ViewType.OnlyView,n=useSelector(getRulerShowReferLine)&&!t,r=useSelector(getRulerShowAlignLine);return{showRuler:useSelector(getShowRuler),isShowReferLine:n,isShowAlignLine:r}},gQ=e=>{let{canvas:t,type:n,value:r}=e;const s=useSelector(getScale)/100,{startY:c,startX:d}=useSelector(getRulerRect)||{};return useMemoizedFn(()=>{const p=n==="horizontal",g=p?c:d,w=(getRealValue({canvas:t,type:n,value:r})-g)*s+RULER_WIDTH;return p?"translateY("+w+"px)":"translateX("+w+"px)"})},yQ=()=>{const e=useSelector(getScale)/100,t=useSelector(getViewportRect),{startY:n,startX:r}=useSelector(getRulerRect)||{};return useMemoizedFn(s=>{let{type:c,canvas:d}=s;const p=c==="horizontal",{x:g=0,y=0,w=0,h:_=0}=(d==null?void 0:d.hotAttr)||{},j=y-_*.5,N=g-w*.5,Z=p?t==null?void 0:t.width:t==null?void 0:t.height,Q=p?w:_,se=(p?N-r:j-n)*e+RULER_WIDTH,ie=se<0?0:se>Z?Z:se,he=se<0?Math.max(Q*e+se,0):se+Q*e>Z?Z-se:Q*e,xe=se+Q*e>Z?0:Z-se-Q*e,Se=p?"width":"height";return{left:Math.max(ie,0),conter:Math.max(he,0),right:Math.max(xe,0),styleKey:Se}})},vQ=()=>{var e;const t=(e=useSelector(getRulerSelectedLine))==null?void 0:e[0];return useMemoizedFn(n=>{let{index:r,canvas:s,type:c}=n;if(!t||t.type!==c)return!1;if(s){var d;return(t==null||(d=t.canvas)==null?void 0:d.key)===s.key&&t.index===r}return!t.canvas&&t.index===r})},xQ=()=>useSelector(getCurrentViewType)===ViewType.OnlyView,bQ=()=>!useSelector(getIsSpaceDown),BN=()=>{const{isEditingBasket:e,isEditingMuban:t}=(0,a.d4)(we.r),n=e||t,r=ON(),s=ic.E0+(r?kv:0)+(n?50:0)+6;return{getMenuStyle:function(d){return d===void 0&&(d=450),{position:"absolute",top:s,left:"calc(50% - "+d/2+"px)"}}}};var ks=i(31541),bf=i(10712),UN=Object.defineProperty,FN=Object.defineProperties,VN=Object.getOwnPropertyDescriptors,Ug=Object.getOwnPropertySymbols,Ev=Object.prototype.hasOwnProperty,Iv=Object.prototype.propertyIsEnumerable,Tv=(e,t,n)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r5=(e,t)=>{for(var n in t||(t={}))Ev.call(t,n)&&Tv(e,n,t[n]);if(Ug)for(var n of Ug(t))Iv.call(t,n)&&Tv(e,n,t[n]);return e},zN=(e,t)=>FN(e,VN(t)),WN=(e,t)=>{var n={};for(var r in e)Ev.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ug)for(var r of Ug(e))t.indexOf(r)<0&&Iv.call(e,r)&&(n[r]=e[r]);return n},HN=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=WN(n,["size","spin","style"]);const p=r5(r5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",zN(r5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M17 4C18.1046 4 19 4.89543 19 6V18C19 19.0357 18.2128 19.887 17.2041 19.9893L17 20H7L6.7959 19.9893C5.78722 19.887 5 19.0357 5 18V6C5 4.89543 5.89543 4 7 4H17ZM6.5 8.5V18C6.5 18.2761 6.72386 18.5 7 18.5H17C17.2761 18.5 17.5 18.2761 17.5 18V8.5H6.5Z",fill:"#19191A"}))}),GN=Object.defineProperty,ZN=Object.defineProperties,KN=Object.getOwnPropertyDescriptors,Fg=Object.getOwnPropertySymbols,_v=Object.prototype.hasOwnProperty,Pv=Object.prototype.propertyIsEnumerable,Lv=(e,t,n)=>t in e?GN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i5=(e,t)=>{for(var n in t||(t={}))_v.call(t,n)&&Lv(e,n,t[n]);if(Fg)for(var n of Fg(t))Pv.call(t,n)&&Lv(e,n,t[n]);return e},YN=(e,t)=>ZN(e,KN(t)),XN=(e,t)=>{var n={};for(var r in e)_v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Fg)for(var r of Fg(e))t.indexOf(r)<0&&Pv.call(e,r)&&(n[r]=e[r]);return n},QN=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=XN(n,["size","spin","style"]);const p=i5(i5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",YN(i5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M17 4C18.1046 4 19 4.89543 19 6V18C19 19.0357 18.2128 19.887 17.2041 19.9893L17 20H7L6.7959 19.9893C5.78722 19.887 5 19.0357 5 18V6C5 4.89543 5.89543 4 7 4H17ZM6.5 8.5V18C6.5 18.2761 6.72386 18.5 7 18.5H17C17.2761 18.5 17.5 18.2761 17.5 18V8.5H6.5ZM7 5.5C6.72386 5.5 6.5 5.72386 6.5 6V7H17.5V6C17.5 5.72386 17.2761 5.5 17 5.5H7Z",fill:"#19191A"}))}),Nv=i(64814);const JN=E.Ay.div.withConfig({displayName:"styles__StyledInputContainer",componentId:"sc-nfe9dn-0"})(["display:flex;align-items:center;margin-right:6px;span{width:38px;margin-right:6px;color:",";}.bdr-width-input{width:48px;border-radius:6px;",";}"],e=>e.theme.color_text_L1,Nv.I),qN=e=>{const{dispatch:t,widget:n}=e,{isShowBigTitle:r}=n.hotAttr.swimConfig,s=()=>{t({type:Hn.X.entryKey["entry:flow:isHideBigTilte:toggle"]})},c=g=>{const y=n.hotAttr.swimlaneType;let w="right";y==="topBottom"&&(w="bottom"),t({type:Hn.X.entryKey["entry:flow:col:add-del:batch"],payload:{newColLength:g,handleType:w}})},p=n.hotAttr.swimlaneType==="leftRight"?n.hotAttr.database.widthList.length:n.hotAttr.database.heightList.length;return(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,o.jsxs)(JN,{children:[(0,o.jsx)("span",{children:I18N.Flow.swimlane_num}),(0,o.jsx)(xh.A,{min:1,max:100,value:p,onConfirm:c,className:"bdr-width-input"})]}),(0,o.jsx)(bf.A,{title:I18N.TextToolbar.flow.addTitle,onClick:s,children:r?(0,o.jsx)(HN,{size:24}):(0,o.jsx)(QN,{size:24})})]})};var Pp=function(e){return e.Text="text",e.Appear="appear",e}(Pp||{}),$N=function(e){return e[e.FontColor=0]="FontColor",e[e.FontSize=1]="FontSize",e[e.FontStyle=2]="FontStyle",e[e.BgColor=3]="BgColor",e}($N||{}),ej=i(44805),tj=i(98915);const nj=(e,t)=>{const{isText:n=!1,isAppear:r=!1}=t||{},s=[n?Pp.Text:"",r?Pp.Appear:""].filter(d=>!!d),c=e.filter(d=>{var p;return!s.includes((p=d.type)!=null?p:"")});return c.filter((d,p)=>p>0&&p<(c==null?void 0:c.length)-1?!(d.type==="VSeparator"&&c[p+1].type==="VSeparator"):d.type!=="VSeparator")},zf=e=>{let{value:t,attr:n,dispatch:r,supAttr:s,selections:c,refVar:d}=e;(0,ej.c)({value:t,attr:n,dispatch:r,supAttr:s,selections:c,refVar:d}),r({type:"entry:auto:show:hide:item"})},oj=e=>{let{value:t,attr:n,dispatch:r,supAttr:s,selections:c,refVar:d}=e;zf({value:t,attr:n,dispatch:r,supAttr:s,selections:c,refVar:d})},aj=e=>{let{value:t,attr:n,refVar:r,dispatch:s,selections:c}=e;const d=c.map(p=>{var g;if(sdkStore.isTrashed(p))return null;const y=sdkStore.getHotItem(p);if(!y)return null;let w=y==null||(g=y.hotAttr)==null?void 0:g.refStyles;return Nn.vZ.includes(n)&&(w={...w,appear:void 0}),{key:p,hotAttr:{[n]:t,...ne.Q.USE_CLIP_TEXT.includes(y.hotAttr.type)&&y.hotAttr.richTextV1&&!y.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,tj.Ro)({...y.hotAttr,[n]:t})},refVars:{...y.hotAttr.refVars,[n]:r},refStyles:w}}}).filter(p=>!!p);s({type:"entry:widget:change",payload:{flatChgList:d}}),s({type:"entry:auto:show:hide:item"})},Fm=e=>{let{value:t,attr:n,refVar:r,dispatch:s,compressible:c,fromUI:d,isFakeOverride:p}=e;s({type:"entry:set:text:attr",payload:{value:t,attr:n,refVar:r,isFakeOverride:p,compressible:c,fromUI:d}}),s({type:"entry:auto:show:hide:item"})};var rj=Object.defineProperty,ij=Object.defineProperties,sj=Object.getOwnPropertyDescriptors,Vg=Object.getOwnPropertySymbols,jv=Object.prototype.hasOwnProperty,Dv=Object.prototype.propertyIsEnumerable,Ov=(e,t,n)=>t in e?rj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s5=(e,t)=>{for(var n in t||(t={}))jv.call(t,n)&&Ov(e,n,t[n]);if(Vg)for(var n of Vg(t))Dv.call(t,n)&&Ov(e,n,t[n]);return e},lj=(e,t)=>ij(e,sj(t)),cj=(e,t)=>{var n={};for(var r in e)jv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Vg)for(var r of Vg(e))t.indexOf(r)<0&&Dv.call(e,r)&&(n[r]=e[r]);return n},Rv=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=cj(n,["size","spin","style"]);const p=s5(s5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",lj(s5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.25 4.5C18.6642 4.5 19 4.83579 19 5.25V7.25C19 7.66421 18.6642 8 18.25 8C17.8358 8 17.5 7.66421 17.5 7.25V6H12.5V18H14.75C15.1642 18 15.5 18.3358 15.5 18.75C15.5 19.1642 15.1642 19.5 14.75 19.5H8.75C8.33579 19.5 8 19.1642 8 18.75C8 18.3358 8.33579 18 8.75 18H11V6H6.5V7.25C6.5 7.66421 6.16421 8 5.75 8C5.33579 8 5 7.66421 5 7.25V5.25C5 4.83579 5.33579 4.5 5.75 4.5H18.25Z",fill:"#19191A"}))}),dj=Object.defineProperty,pj=Object.defineProperties,uj=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Bv=Object.prototype.hasOwnProperty,Uv=Object.prototype.propertyIsEnumerable,Fv=(e,t,n)=>t in e?dj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l5=(e,t)=>{for(var n in t||(t={}))Bv.call(t,n)&&Fv(e,n,t[n]);if(zg)for(var n of zg(t))Uv.call(t,n)&&Fv(e,n,t[n]);return e},hj=(e,t)=>pj(e,uj(t)),mj=(e,t)=>{var n={};for(var r in e)Bv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&zg)for(var r of zg(e))t.indexOf(r)<0&&Uv.call(e,r)&&(n[r]=e[r]);return n},fj=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=mj(n,["size","spin","style"]);const p=l5(l5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",hj(l5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M20.9991 17.8735C20.999 18.4597 20.5238 18.935 19.9376 18.9351H19.9308L15.3888 7.95361L20.9991 5.06396V17.8735Z",fill:"url(#paint0_linear_2581_187)"}),l.createElement("path",{d:"M6.67419 5.06494H13.6095L8.65482 17.1763C8.21954 18.2403 7.18405 18.9355 6.03443 18.9355H0.999878L6.67419 5.06494Z",fill:"url(#paint1_linear_2581_187)"}),l.createElement("path",{d:"M13.6089 5.06494H6.67362L11.6283 17.1763C12.0635 18.2403 13.099 18.9355 14.2486 18.9355H19.2832L13.6089 5.06494Z",fill:"url(#paint2_linear_2581_187)"}),l.createElement("mask",{id:"mask0_2581_187",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"6",y:"5",width:"14",height:"14"},l.createElement("path",{d:"M13.6023 5.06445H6.66703L11.6217 17.1758C12.057 18.2398 13.0924 18.935 14.2421 18.935H19.2766L13.6023 5.06445Z",fill:"url(#paint3_linear_2581_187)"})),l.createElement("g",{mask:"url(#mask0_2581_187)"},l.createElement("path",{d:"M6.67175 5.06445H13.607L7.9327 18.935H0.997437L6.67175 5.06445Z",fill:"url(#paint4_linear_2581_187)"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_2581_187",x1:"16.1118",y1:"7.29206",x2:"17.9236",y2:"18.4407",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#42E9FF"}),l.createElement("stop",{offset:"1",stopColor:"#5AB2F7"})),l.createElement("linearGradient",{id:"paint1_linear_2581_187",x1:"9.40626",y1:"4.64462",x2:"3.61121",y2:"18.5791",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#BBD3FF"}),l.createElement("stop",{offset:"1",stopColor:"#60EFFF"})),l.createElement("linearGradient",{id:"paint2_linear_2581_187",x1:"10.8768",y1:"4.64462",x2:"17.4435",y2:"19.1623",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#7C3FFF"}),l.createElement("stop",{offset:"1",stopColor:"#C191FF"})),l.createElement("linearGradient",{id:"paint3_linear_2581_187",x1:"10.8702",y1:"4.64413",x2:"17.4369",y2:"19.1618",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#7C3FFF"}),l.createElement("stop",{offset:"1",stopColor:"#C191FF"})),l.createElement("linearGradient",{id:"paint4_linear_2581_187",x1:"10.7132",y1:"4.69705",x2:"8.10053",y2:"14.1678",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#5FA9FF"}),l.createElement("stop",{offset:"1",stopColor:"#38CFFF"}))))}),Vv=i(19013),zv=i(37505),Wv=i(80666),lm=i(56938),cm=i(49021),cd=i(788),c5=i(39446);const d5=()=>({type:Pp.Appear,component:ks.Z6,styleConfig:{title:I18N.SettingPanel.inspector.radius},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e,s=(zv.pQ[Wv.z.BorderRadiusPanel][n]||zv.pQ[Wv.z.BorderRadiusPanel][Vv.m9])({...e,selectedItems:[t]});return{supAttr:n===ne.x.WPolygon?"polygon":n===ne.x.WStar?"star":"",attr:[ne.x.WPolygon,ne.x.WStar].includes(n)?"cornerRadius":"borderRadius",borderRadiusInfo:s,onChange:oj,canSetSingleRadius:[ne.x.WImage,ne.x.WPlaceholder,ne.x.WButton,ne.x.WRect].includes(n)}}}),p5=()=>({type:Pp.Appear,component:ks.kD,styleConfig:{title:I18N.SettingPanel.stroke},getMiddleProps:e=>{const{widget:{hotAttr:{type:t}}}=e;return{onChange:aj,canSetBorderVisibility:[ne.x.WButton,ne.x.WRect].includes(t)}}}),Wg=()=>({type:Pp.Appear,component:ks.Vo,styleConfig:{title:I18N.SettingPanel.shadows},getMiddleProps:e=>({onChange:zf})}),u5=()=>({type:Pp.Text,component:ks.KQ,styleConfig:{icon:(0,o.jsx)(Rv,{size:24}),title:I18N.TextToolbar.font.styleText},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e,r=cm.sE[lm.s.TextFontPanel][n]({...e,selectedItems:[t]}),s=n&&n in cm.sE[lm.s.SpacingPanel]?n:Vv.m9,c=cm.sE[lm.s.SpacingPanel][s]({...e,selectedItems:[t]}),d=$m.VV.includes(n),p=g=>{let{value:y,attr:w,refVar:_,dispatch:j,isFakeOverride:N}=g;Fm({value:y,attr:w,refVar:_,isFakeOverride:N,dispatch:j})};return{textInfo:{...r,newOverOld:d},spacingInfo:c,onChange:p}}}),h5=()=>({component:ks.b6,styleConfig:{title:I18N.TextToolbar.font.styleText}}),m5=()=>({component:ks.Z2,styleConfig:{title:I18N.TextToolbar.fontAlign.title},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e;return{alignInfo:cm.sE[lm.s.AlignPanel][n]({...e,selectedItems:[t]}),onChange:c=>{let{value:d,attr:p,dispatch:g}=c;g({type:"entry:set:text:align",payload:{attr:p,value:d}}),g({type:"entry:auto:show:hide:item"})}}}}),Wf=()=>({component:ks.Z4,styleConfig:{title:I18N.TextToolbar.textSize,options:[12,14,16,18,20,28,36,48,72],min:1,max:1e3},getMiddleProps:e=>{const{widget:t,editorState:n,setTextV1:r,getTextV1:s,onChange:c,dispatch:d}=e,{hotAttr:{type:p}}=t,g=p===ne.x.WRichText?cm.sE[lm.s.TextFontPanel][ne.x.WRichText]({...e,selectedItems:[t]}):s(n),{fontSize:y,refVars:w}=g;return{onGetRefVar:()=>w==null?void 0:w.fontSize,onGetCurrentSize:()=>y,onChangeFontSize:(j,N)=>{p===ne.x.WRichText?Fm({attr:"fontSize",value:j,refVar:N,dispatch:d}):n?c((0,cd.xE)(n,j),{attr:"fontSize"}):r("fontsize",j)}}}}),f5=function(e){return e===void 0&&(e="text"),{component:ks.c$,styleConfig:{icon:(0,o.jsx)(fj,{size:24}),className:"pure-icon ai-auto-fill",title:e==="text"?I18N.TextToolbar.font.textAutoFill.title:I18N.TextToolbar.image.imageAutoFill.title},getMiddleProps:t=>{const{dropdownPosition:n,isAutoFillPanelShow:r,dispatch:s}=t,c=()=>{const p=(0,Mg.$I)().find(g=>g.type===Mg.SR.AutoFill);p.source="\u5FEB\u6377\u83DC\u5355\u667A\u80FD\u586B\u5145AI",s({type:Mh.X.AIOpenModal,payload:p})};return{active:r,onClick:(p,g)=>{if(ENV.IS_MO){c();return}const y=(0,c5.v)({$ref:g,dropdownPosition:n,contentWidth:300,contentHeight:442,offset:5});s({type:"entry:autoFillPanel:toggle:show",payload:{position:y,openFrom:e==="text"?Wt.G.QuickMenuText:Wt.G.QuickMenuImage,defaultTab:e==="text"?0:1,isShowClose:!1,canShowAllTab:!1}})}}}}},Hv=()=>({component:ks.OS,styleConfig:{title:I18N.SettingPanel.icon_color},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{key:r,hotAttr:{fill:s}}=t;return{color:s,attr:"solidColor",supAttr:"fill",getMode:p=>p?"input":"",onChange:p=>{zf({value:p,attr:"fill",dispatch:n,selections:[r]})}}}}),F2={type:"VSeparator",component:ks.So};var gj=i(86493),yj=i(66360);const Gv=()=>[{component:ks.rw,styleConfig:{title:I18N.TextToolbar.textColor,left:ENV.IS_MO?-10:-16,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},Wf(),{component:ks.cV,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-inline",title:I18N.TextToolbar.style0}},{type:"VSeparator",component:ks.So},{component:ks.LX,styleConfig:{inDropdown:!0,className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"rgba(255, 255, 255, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"}]},getMiddleProps:e=>{const{widget:t,selectedCellsInfo:n,dispatch:r}=e,{type:s}=t.hotAttr;let c=t.hotAttr.fill;if(s===ne.x.WSwimlane){const{cells:g,table:y}=t.hotAttr.database,{x:w,y:_}=n.tl;if(y[_]&&y[_][w]){var d;c=(d=g[y[_][w]])==null?void 0:d.fill}}return{fill:c,handleColorChange:g=>{s===ne.x.WSwimlane?r({type:Hn.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"fill",attr:"fill",value:g}}):r({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{fill:g}}]}})}}}}],vj=()=>{const e=Gv();return e.slice(0,e.length-2)},Zv={strikethrough:"line-through",italic:"italic",bold:"boldType",fontsize:"fontSize",underline:"underline",color:"textColor"},dm=e=>{let{dispatch:t,widget:n,selectedCellsInfo:r}=e;const s=()=>{const{_getEditorState:g}=(0,_n.DT)();return g&&g()},c=function(g,y,w){w===void 0&&(w=!0);const{_getEditorState:_,_setEditorState:j}=(0,_n.DT)();let N=g.getCurrentInlineStyle();if(y!=null&&y.attr){N=_().getCurrentInlineStyle();const Q=[...N.values()];N=(0,_n.Ym)(Q,N,g,y.attr.toLowerCase())}const Z={};if(y!=null&&y.isImageInserted&&(Z.isImageInserted=!0),j&&j(Df.$t.set(g,{inlineStyleOverride:N}),Z),w&&((0,yj.$B)(g)||y!=null&&y.isChangeAlign)){const Q=(0,Df.dM)(g.getCurrentContent()),se=(0,gj.qn)(Q);(0,Dm.Xq)([(0,Zn.Op)(n.key,{textV1:se})])}},d=(g,y,w)=>{switch(n.hotAttr.type){case ne.x.WSwimlane:{t({type:Hn.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"textV1",attr:g,value:y}});break}default:Fm({attr:Zv[g],value:y,refVar:w,dispatch:t})}},p=g=>{switch(n.hotAttr.type){case ne.x.WSwimlane:{const{cells:y,table:w}=n.hotAttr.database,{x:_,y:j}=r.tl;if(w[j]&&w[j][_]){const{richTextV1:N,textV1:Z}=y[w[j][_]];return(0,k0.mj)({baseItem:{type:"wSwimlane",richTextV1:N,textV1:Z},isEditing:!!g,richTextEditorState:g})}return{}}case ne.x.WTear:case ne.x.WSticky:return(0,k0.mj)({baseItem:{type:"wSticky",richTextV1:{},textV1:n.hotAttr.textV1},isEditing:!!g,richTextEditorState:g});default:return(0,k0.mj)({baseItem:{type:"wRichText",richTextV1:n.hotAttr.richTextV1,textV1:n.hotAttr.textV1},isEditing:!!g,richTextEditorState:g})}};return{onChange:c,editorState:s(),getEditorState:s,onEditorStateChange:c,setTextV1:d,getTextV1:p}},xj=[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(219, 219, 219, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(0, 160, 86, 1)",borderColor:"rgba(0, 134, 63, 1)"},{color:"rgba(155, 51, 225, 1)",borderColor:"rgba(155, 51, 225, 1)"},{color:"rgba(233, 98, 0, 1)",borderColor:"rgba(193, 93, 0, 1)"},{color:"rgba(226, 25, 39, 1)",borderColor:"rgba(226, 25, 39, 1)"}],bj=()=>[{component:qN},{component:ks.Uh,styleConfig:{className:"draft-bg-color",title:I18N.TextToolbar.borderStyle.line_color,colors:xj,hasCheck:!0,hasColorBtn:!0},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{border:t.hotAttr.border,handleBorderChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{border:c}}]}})}}}}],Cj=e=>{const t=e.swimlaneIsDeepEditing?vj():e.swimlaneIsShallowEditing?Gv():bj();return{getCommonProps:n=>dm(n),controlConfig:t}};var d2=i(7499),wj=i(64639),Sj=Object.defineProperty,Aj=Object.defineProperties,Mj=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertySymbols,Kv=Object.prototype.hasOwnProperty,Yv=Object.prototype.propertyIsEnumerable,Xv=(e,t,n)=>t in e?Sj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g5=(e,t)=>{for(var n in t||(t={}))Kv.call(t,n)&&Xv(e,n,t[n]);if(Hg)for(var n of Hg(t))Yv.call(t,n)&&Xv(e,n,t[n]);return e},kj=(e,t)=>Aj(e,Mj(t)),Ej=(e,t)=>{var n={};for(var r in e)Kv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hg)for(var r of Hg(e))t.indexOf(r)<0&&Yv.call(e,r)&&(n[r]=e[r]);return n},Ij=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=Ej(n,["size","spin","style"]);const p=g5(g5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",kj(g5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.86595 4.00891C6.90979 4.00303 6.95454 4 7 4H18.1783C18.9674 4 19.4456 4.87115 19.022 5.53688L16.8416 8.96312C16.6332 9.29069 16.6332 9.70931 16.8416 10.0369L19.022 13.4631C19.4456 14.1288 18.9674 15 18.1783 15H7.5V19.25C7.5 19.6642 7.16421 20 6.75 20C6.33579 20 6 19.6642 6 19.25V4.75C6 4.33579 6.33579 4 6.75 4C6.78943 4 6.82816 4.00304 6.86595 4.00891ZM17.2675 13.5H7.5V5.5H17.2675L15.5762 8.15781C15.055 8.97673 15.055 10.0233 15.5762 10.8422L17.2675 13.5Z",fill:"#19191A"}))}),Tj=Object.defineProperty,_j=Object.defineProperties,Pj=Object.getOwnPropertyDescriptors,Gg=Object.getOwnPropertySymbols,Qv=Object.prototype.hasOwnProperty,Jv=Object.prototype.propertyIsEnumerable,qv=(e,t,n)=>t in e?Tj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y5=(e,t)=>{for(var n in t||(t={}))Qv.call(t,n)&&qv(e,n,t[n]);if(Gg)for(var n of Gg(t))Jv.call(t,n)&&qv(e,n,t[n]);return e},Lj=(e,t)=>_j(e,Pj(t)),Nj=(e,t)=>{var n={};for(var r in e)Qv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gg)for(var r of Gg(e))t.indexOf(r)<0&&Jv.call(e,r)&&(n[r]=e[r]);return n},jj=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=Nj(n,["size","spin","style"]);const p=y5(y5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Lj(y5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.5 11.25C9.5 10.8358 9.83579 10.5 10.25 10.5C10.6642 10.5 11 10.8358 11 11.25V15.75C11 16.1642 10.6642 16.5 10.25 16.5C9.83579 16.5 9.5 16.1642 9.5 15.75V11.25Z",fill:"#19191A"}),l.createElement("path",{d:"M13.75 10.5C13.3358 10.5 13 10.8358 13 11.25V15.75C13 16.1642 13.3358 16.5 13.75 16.5C14.1642 16.5 14.5 16.1642 14.5 15.75V11.25C14.5 10.8358 14.1642 10.5 13.75 10.5Z",fill:"#19191A"}),l.createElement("path",{d:"M15.6667 6.5L15.348 5.06614C15.1447 4.15106 14.3331 3.5 13.3957 3.5H10.6043C9.66695 3.5 8.85532 4.15106 8.65197 5.06614L8.33333 6.5H4.75C4.33579 6.5 4 6.83579 4 7.25C4 7.66421 4.33579 8 4.75 8H6V18.5C6 19.6046 6.89543 20.5 8 20.5H16C17.1046 20.5 18 19.6046 18 18.5V8H19.25C19.6642 8 20 7.66421 20 7.25C20 6.83579 19.6642 6.5 19.25 6.5H15.6667ZM13.3957 5C13.63 5 13.8329 5.16277 13.8838 5.39153L14.1301 6.5H9.86992L10.1163 5.39153C10.1671 5.16277 10.37 5 10.6043 5H13.3957ZM16.5 8V18.5C16.5 18.7761 16.2761 19 16 19H8C7.72386 19 7.5 18.7761 7.5 18.5V8H16.5Z",fill:"#19191A"}))});const Dj=E.Ay.div.withConfig({displayName:"styles__StyledDropDownContent",componentId:"sc-ckfwcz-0"})(["width:250px;border-radius:8px;background-color:#fff;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);transition:0.2s ease-in-out;overflow:hidden;display:flex;flex-direction:column;&.dark{background:#252626;.emoji-span{color:rgba(255,255,255,1);}}&.light .emoji-span{color:rgba(0,0,0,1);}"]),Oj=E.Ay.div.withConfig({displayName:"styles__StyledMindDeleteContainer",componentId:"sc-ckfwcz-1"})(["flex:0 0 32px;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin-right:6px;cursor:pointer;&:hover{background-color:",";}"],e=>e.theme.color_btn_secondary_hover),Rj=(0,l.memo)(e=>{const{theme:t,recentlyUsedScreenMetaIcons:n,widget:r,dropdownPosition:s,config:c,onChangeIcon:d}=e,p=(0,l.useRef)(null),g=()=>{var w,_;!(p==null||(w=p.current)==null)&&w.close&&(p==null||(_=p.current)==null||_.close())},y=w=>{d(w),g()};return(0,o.jsx)(d2.A,{ref:p,top:s==="bottom"?40:-309,left:-109,title:c.title,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(Ij,{size:24})})}),children:(0,o.jsx)(Dj,{className:m()("dropDownContent",t),children:(0,o.jsx)(wj.y8,{tipClassName:"mind-node-icon-container",locale:(0,Nl.w)(),canActiveIcon:!0,isShowTab:!0,theme:t,activeIcon:r.hotAttr.icon,historyList:Array.from(n),isShowReset:!1,isShowClose:!1,onChange:y,onClose:g})})})}),$v=(0,l.memo)(e=>{const{onDelete:t}=e;return(0,o.jsx)(Oj,{children:(0,o.jsx)(jj,{size:24,onClick:t})})});var Vm=i(2815),Bj=Object.defineProperty,Uj=Object.defineProperties,Fj=Object.getOwnPropertyDescriptors,Zg=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable,nx=(e,t,n)=>t in e?Bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v5=(e,t)=>{for(var n in t||(t={}))ex.call(t,n)&&nx(e,n,t[n]);if(Zg)for(var n of Zg(t))tx.call(t,n)&&nx(e,n,t[n]);return e},Vj=(e,t)=>Uj(e,Fj(t)),zj=(e,t)=>{var n={};for(var r in e)ex.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zg)for(var r of Zg(e))t.indexOf(r)<0&&tx.call(e,r)&&(n[r]=e[r]);return n},Kg=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=zj(n,["size","spin","style"]);const p=v5(v5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Vj(v5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M10.3711 10.5C10.3711 11.3284 9.69952 12 8.87109 12C8.04267 12 7.37109 11.3284 7.37109 10.5C7.37109 9.67157 8.04267 9 8.87109 9C9.69952 9 10.3711 9.67157 10.3711 10.5Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20L18 20C19.1046 20 20 19.1046 20 18V6.00001C20 4.89544 19.1046 4.00001 18 4.00001L6 4ZM18 5.50001L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6V18C5.5 18.2542 5.6897 18.4641 5.93526 18.4958L12.2091 12.9652C13.1523 12.1338 14.5392 12.0479 15.5777 12.7566L18.5 14.7508V6.00001C18.5 5.72387 18.2761 5.50001 18 5.50001ZM18.5 16.5668L14.7322 13.9956C14.2602 13.6735 13.6298 13.7125 13.2011 14.0905L8.1989 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18V16.5668Z",fill:"#19191A"}))}),x5=i(94754);const Wj=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,rootProject:r,currentUser:s,currentOrg:c,isLeftShow:d,onChange:p,dispatch:g}=e,{options:y}=t,w=(0,l.useRef)(null),_=(0,l.useRef)(null),j=Q=>{if(!Q)return;const se=(0,Lf.t$)(Q);p(se)},N=Q=>{const se=Q.target.files[0];(0,x5.i3)({files:[se],rootProject:r,callback:j,isFilterSvg:!1},s,c)},Z=Q=>{var se,ie;Q==="local"&&w!=null&&w.current&&(w.current.value=null,w.current.setAttribute("value",null),w.current.click()),Q==="gallery"&&(!d&&g({type:"left-panel:collapse:panel:show"}),g({type:"entry:resource:open:assetPanel"})),(se=_.current)==null||(ie=se.close)==null||ie.call(se)};return(0,o.jsx)(d2.A,{ref:_,title:t.title,top:n==="bottom"?40:-78,left:-50,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsxs)("div",{className:"trigger-icon",children:[(0,o.jsx)("input",{ref:w,type:"file",onChange:N,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,o.jsx)(Kg,{size:24})]})}),children:(0,o.jsx)("div",{className:"content-container draft-image-options",children:y.map((Q,se)=>(0,o.jsx)(Vm.A,{value:Q.key,active:!1,disabled:!1,onClick:()=>Z(Q.key),children:(0,o.jsx)("span",{className:"option-title",children:Q.label})},se))})})});var Hj=Object.defineProperty,Gj=Object.defineProperties,Zj=Object.getOwnPropertyDescriptors,Yg=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,ax=Object.prototype.propertyIsEnumerable,rx=(e,t,n)=>t in e?Hj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b5=(e,t)=>{for(var n in t||(t={}))ox.call(t,n)&&rx(e,n,t[n]);if(Yg)for(var n of Yg(t))ax.call(t,n)&&rx(e,n,t[n]);return e},Kj=(e,t)=>Gj(e,Zj(t)),Yj=(e,t)=>{var n={};for(var r in e)ox.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yg)for(var r of Yg(e))t.indexOf(r)<0&&ax.call(e,r)&&(n[r]=e[r]);return n},Xj=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=Yj(n,["size","spin","style"]);const p=b5(b5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Kj(b5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_401)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#1685FC"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#D6E9FF"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_401"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),Qj=Object.defineProperty,Jj=Object.defineProperties,qj=Object.getOwnPropertyDescriptors,Xg=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,sx=Object.prototype.propertyIsEnumerable,lx=(e,t,n)=>t in e?Qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C5=(e,t)=>{for(var n in t||(t={}))ix.call(t,n)&&lx(e,n,t[n]);if(Xg)for(var n of Xg(t))sx.call(t,n)&&lx(e,n,t[n]);return e},$j=(e,t)=>Jj(e,qj(t)),eD=(e,t)=>{var n={};for(var r in e)ix.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xg)for(var r of Xg(e))t.indexOf(r)<0&&sx.call(e,r)&&(n[r]=e[r]);return n},tD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=eD(n,["size","spin","style"]);const p=C5(C5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",$j(C5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_408)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12H7.95C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#FF5D60"}),l.createElement("path",{d:"M3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.51229 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12L3 12Z",fill:"#F9C74E"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12H16.05C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#E0E0E0"}),l.createElement("path",{d:"M21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12L21 12Z",fill:"#32C67D"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_408"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),nD=Object.defineProperty,oD=Object.defineProperties,aD=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable,px=(e,t,n)=>t in e?nD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w5=(e,t)=>{for(var n in t||(t={}))cx.call(t,n)&&px(e,n,t[n]);if(Qg)for(var n of Qg(t))dx.call(t,n)&&px(e,n,t[n]);return e},rD=(e,t)=>oD(e,aD(t)),iD=(e,t)=>{var n={};for(var r in e)cx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qg)for(var r of Qg(e))t.indexOf(r)<0&&dx.call(e,r)&&(n[r]=e[r]);return n},sD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=iD(n,["size","spin","style"]);const p=w5(w5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",rD(w5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_417)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#375F8A"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#53A1D9"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_417"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),lD=Object.defineProperty,cD=Object.defineProperties,dD=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,mx=(e,t,n)=>t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S5=(e,t)=>{for(var n in t||(t={}))ux.call(t,n)&&mx(e,n,t[n]);if(Jg)for(var n of Jg(t))hx.call(t,n)&&mx(e,n,t[n]);return e},pD=(e,t)=>cD(e,dD(t)),uD=(e,t)=>{var n={};for(var r in e)ux.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jg)for(var r of Jg(e))t.indexOf(r)<0&&hx.call(e,r)&&(n[r]=e[r]);return n},hD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=uD(n,["size","spin","style"]);const p=S5(S5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",pD(S5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_424)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#39CCBC"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#E0E0E0"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_424"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),mD=Object.defineProperty,fD=Object.defineProperties,gD=Object.getOwnPropertyDescriptors,qg=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,yx=(e,t,n)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A5=(e,t)=>{for(var n in t||(t={}))fx.call(t,n)&&yx(e,n,t[n]);if(qg)for(var n of qg(t))gx.call(t,n)&&yx(e,n,t[n]);return e},yD=(e,t)=>fD(e,gD(t)),vD=(e,t)=>{var n={};for(var r in e)fx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qg)for(var r of qg(e))t.indexOf(r)<0&&gx.call(e,r)&&(n[r]=e[r]);return n},xD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=vD(n,["size","spin","style"]);const p=A5(A5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",yD(A5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_431)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#252626"}),l.createElement("mask",{id:"path-3-inside-1_2581_431",fill:"white"},l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z"})),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"white",stroke:"black",mask:"url(#path-3-inside-1_2581_431)"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_431"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),bD=Object.defineProperty,CD=Object.defineProperties,wD=Object.getOwnPropertyDescriptors,$g=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,bx=(e,t,n)=>t in e?bD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M5=(e,t)=>{for(var n in t||(t={}))vx.call(t,n)&&bx(e,n,t[n]);if($g)for(var n of $g(t))xx.call(t,n)&&bx(e,n,t[n]);return e},SD=(e,t)=>CD(e,wD(t)),AD=(e,t)=>{var n={};for(var r in e)vx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$g)for(var r of $g(e))t.indexOf(r)<0&&xx.call(e,r)&&(n[r]=e[r]);return n},MD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=AD(n,["size","spin","style"]);const p=M5(M5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",SD(M5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_438)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#252626"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#6D6D6D"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_438"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),Eh=i(89240);const kD=E.Ay.div.withConfig({displayName:"styles__StyledMindCard",componentId:"sc-1os78nl-0"})(["&.theme-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.img-container{width:110px;height:82px;border-radius:4px;border:1px solid ",";position:relative;box-sizing:content-box;background-color:",";img{width:100%;border-radius:4px;}.frame{position:absolute;border-radius:6px;pointer-events:none;inset:-2px;}}.theme-title{margin-top:4px;}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_btn),ED=E.Ay.div.withConfig({displayName:"styles__StyledMindThemeOptionContainers",componentId:"sc-1os78nl-1"})(["&.mind-theme-options{display:grid;grid-row-gap:8px;grid-column-gap:16px;border-radius:8px;padding:20px;grid-template-columns:repeat(2,110px);.draft-toolbar-dropdown-option{width:110px;height:103px;padding:0;margin:0;&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}"],e=>e.theme.color_proto),ID=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,onChange:s}=e,{title:c}=t,{hotAttr:{theme:d}}=r,p=(0,l.useRef)(null),g=(0,l.useMemo)(()=>[{theme:Qe.dr.DEFAULT,src:"default",title:I18N.FloatingToolbar.Mind.themeSelect.default,icon:(0,o.jsx)(Xj,{size:24})},{theme:Qe.dr.RAINBOW,src:"rainbow",title:I18N.FloatingToolbar.Mind.themeSelect.rainbow,icon:(0,o.jsx)(tD,{size:24})},{theme:Qe.dr.RETRO,src:"retro",title:I18N.FloatingToolbar.Mind.themeSelect.retro,icon:(0,o.jsx)(sD,{size:24})},{theme:Qe.dr.YOUTH,src:"youth",title:I18N.FloatingToolbar.Mind.themeSelect.youth,icon:(0,o.jsx)(hD,{size:24})},{theme:Qe.dr.CLASSICAL,src:"classical",title:I18N.FloatingToolbar.Mind.themeSelect.classical,icon:(0,o.jsx)(xD,{size:24})},{theme:Qe.dr.DARK,src:"dark",title:I18N.FloatingToolbar.Mind.themeSelect.dark,icon:(0,o.jsx)(MD,{size:24})}],[]),y=(0,l.useMemo)(()=>{var _;return(_=g.find(j=>j.theme===d))==null?void 0:_.icon},[g,d]),w=_=>{var j,N;s(_),(j=p.current)==null||(N=j.close)==null||N.call(j)};return(0,o.jsx)(d2.A,{ref:p,title:c,top:n==="bottom"?40:-372,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("div",{className:"trigger-icon size-24 margin-right-2 pure-icon",children:y}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)(ED,{className:"content-container mind-theme-options",children:g.map((_,j)=>{let{theme:N,src:Z,title:Q}=_;return(0,o.jsx)(Vm.A,{value:N,active:d===N,supTitle:Q,onClick:()=>w(N),children:(0,o.jsx)(TD,{src:Z,title:Q})},j)})})})}),TD=e=>{let{src:t,title:n}=e;return(0,o.jsxs)(kD,{className:"theme-container",children:[(0,o.jsxs)("div",{className:"img-container",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/floatingToolbar/mind_v1/"+t+((0,Nl.k)()?"":"_en")+".png",alt:""}),(0,o.jsx)("span",{className:"frame"})]}),(0,o.jsx)("span",{className:"theme-title",children:n})]})};var _D=Object.defineProperty,PD=Object.defineProperties,LD=Object.getOwnPropertyDescriptors,e4=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,Sx=(e,t,n)=>t in e?_D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k5=(e,t)=>{for(var n in t||(t={}))Cx.call(t,n)&&Sx(e,n,t[n]);if(e4)for(var n of e4(t))wx.call(t,n)&&Sx(e,n,t[n]);return e},ND=(e,t)=>PD(e,LD(t)),jD=(e,t)=>{var n={};for(var r in e)Cx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&e4)for(var r of e4(e))t.indexOf(r)<0&&wx.call(e,r)&&(n[r]=e[r]);return n},DD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=jD(n,["size","spin","style"]);const p=k5(k5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ND(k5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.8751 4.125C16.1553 4.125 19.6251 7.59479 19.6251 11.875C19.6251 13.745 18.9624 15.46 17.8595 16.7988L19.6554 18.5947C19.948 18.8876 19.9482 19.3625 19.6554 19.6553C19.3626 19.9481 18.8878 19.9479 18.5948 19.6553L16.799 17.8594C15.4601 18.9622 13.7451 19.625 11.8751 19.625C7.59492 19.625 4.12512 16.1552 4.12512 11.875C4.12512 7.59479 7.59492 4.125 11.8751 4.125ZM11.8751 5.625C8.42334 5.625 5.62512 8.42322 5.62512 11.875C5.62512 15.3268 8.42334 18.125 11.8751 18.125C15.3269 18.125 18.1251 15.3268 18.1251 11.875C18.1251 8.42322 15.3269 5.625 11.8751 5.625ZM11.8751 8.125C12.2893 8.125 12.6251 8.46079 12.6251 8.875V11.125H14.8751C15.2893 11.125 15.6251 11.4608 15.6251 11.875C15.6251 12.2892 15.2893 12.625 14.8751 12.625H12.6251V14.875C12.6251 15.2892 12.2893 15.625 11.8751 15.625C11.4609 15.625 11.1251 15.2892 11.1251 14.875V12.625H8.87512C8.46091 12.625 8.12512 12.2892 8.12512 11.875C8.12512 11.4608 8.46091 11.125 8.87512 11.125H11.1251V8.875C11.1251 8.46079 11.4609 8.125 11.8751 8.125Z",fill:"black"}))});const Ax=e=>[{component:ks.rw,styleConfig:{title:e.TextToolbar.textColor,left:ENV.IS_MO?-10:-16,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},Wf(),{component:ks.cV,styleConfig:{title:e.TextToolbar.style0}}],OD=e=>({component:ks.N_,styleConfig:{inDropdown:!1,icon:"draft/link",className:"draft-link",title:e.TextToolbar.url0}}),Mx=e=>({component:Rj,styleConfig:{title:e.FloatingToolbar.Mind.flag},getMiddleProps:t=>{const{selectedMindNodeKeys:n,recentlyUsedScreenMetaIcons:r,dispatch:s}=t,c=n[0];return{widget:sdkStore.getHotItem(c),onChangeIcon:g=>{sdkStore.combineMergeMark("update-mindNode-icon"),s({type:"entry:widget:change",payload:{flatChgList:[{key:c,hotAttr:{icon:g}}],shouldReBuildTree:!0,isCombineChange:!1}}),s({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-icon"),s({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:c}});const y=Array.from(new Set(r));y.unshift(g);const w=JSON.stringify(y.splice(0,12));s({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:w}})}}}}),kx=e=>({component:Wj,styleConfig:{title:e.TextToolbar.image0,options:[{key:"local",label:e.TextToolbar.image1},{key:"gallery",label:e.TextToolbar.image2}]},getMiddleProps:t=>{const{selectedMindNodeKeys:n,dispatch:r}=t,s=n[0];return{onChange:d=>{const p=[{key:s,hotAttr:{image:d}}];sdkStore.combineMergeMark("update-mindNode-image"),r({type:"entry:widget:change",payload:{flatChgList:p,shouldReBuildTree:!0,isCombineChange:!1}}),r({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),r({type:"mind:update:state",payload:{selectedMindNodeImageKey:s}}),sdkStore.combineMerge("update-mindNode-image")}}}}),Ex=e=>[{component:ks.LX,styleConfig:{title:e.FloatingToolbar.Mind.bgColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#ffffff"},{color:"#e6e6e6"},{color:"#ff9e93"},{color:"#9dc4ff"},{color:"#54d691"},{color:"#daa3ff"},{color:"#fdd143"},{color:"#ff9e47"}]},getMiddleProps:t=>{var n;const{selectedMindNodeKeys:r,dispatch:s}=t,c=r[0],d=sdkStore.getHotItem(c);return{fill:d==null||(n=d.hotAttr)==null?void 0:n.fill,handleColorChange:_=>{const j={fill:_},N=r.map(Z=>({key:Z,hotAttr:j}));s({type:"entry:widget:change",payload:{flatChgList:N}})},onOpenColorPanel:()=>{s({type:"mind:update:isShallowEditText",payload:!1})},onCloseColorPanel:()=>{s({type:"mind:update:isShallowEditText",payload:!0})}}}},{component:ks.Uh,styleConfig:{title:e.FloatingToolbar.Mind.stroke,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#191919"},{color:"#666666"},{color:"#ffffff"},{color:"#1684fc"},{color:"#00A056"},{color:"#9B33E1"},{color:"#E96200"},{color:"#EC4954"}]},getMiddleProps:t=>{var n;const{selectedMindNodeKeys:r,dispatch:s}=t,c=r[0],d=sdkStore.getHotItem(c);return{border:d==null||(n=d.hotAttr)==null?void 0:n.border,handleBorderChange:y=>{const w={border:y};sdkStore.combineMergeMark("update-mindNode-stroke");const _=r.map(j=>({key:j,hotAttr:w}));s({type:"entry:widget:change",payload:{flatChgList:_,shouldReBuildTree:!0,isCombineChange:!1}}),s({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-stroke")}}}}],RD=()=>({getCommonProps:e=>Ix(e),controlConfig:[...Ax(I18N),F2,OD(I18N),Mx(I18N),kx(I18N),F2,...Ex(I18N)]}),BD=()=>({getCommonProps:e=>Ix(e),controlConfig:[...Ax(I18N),F2,...Ex(I18N)]}),UD=()=>({controlConfig:[Mx(I18N),{component:$v,getMiddleProps:e=>{const{selectedMindNodeKeys:t,dispatch:n}=e;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-icon"),n({type:"entry:widget:change",payload:{flatChgList:[{key:t[0],hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),n({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),n({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-icon")}}}}]}),FD=()=>({controlConfig:[kx(I18N),{component:ks.c$,styleConfig:{icon:(0,o.jsx)(DD,{size:24}),title:"\u9884\u89C8"},getMiddleProps:e=>{var t,n;const{selectedMindNodeKeys:r,dispatch:s}=e,c=r[0],d=sdkStore.getHotItem(c),p=(t=d==null||(n=d.hotAttr)==null||(n=n.image)==null?void 0:n.imageRef)!=null?t:"",g=(0,Lf.Kf)(p);return{onClick:()=>{s({type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:g,alt:""}}})}}}},{component:$v,getMiddleProps:e=>{const{selectedMindNodeKeys:t,dispatch:n}=e;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-image"),n({type:"entry:widget:change",payload:{flatChgList:[{key:t[0],hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),n({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),n({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-image")}}}}]}),Ix=e=>{let{dispatch:t,selectedMindNodeKeys:n,isShallowEditText:r}=e;const s=n[0],c=sdkStore.getHotItem(s),d=()=>{const{_getEditorState:w}=(0,_n.DT)();return r?null:w&&w()},p=(w,_)=>{const{_setEditorState:j}=(0,_n.DT)();j&&j(w,_)},g=(w,_)=>{Fm({attr:Zv[w],value:_,dispatch:t})},y=w=>(0,k0.mj)({baseItem:{type:c.hotAttr.type,richTextV1:c.hotAttr.richTextV1,textV1:c.hotAttr.textV1},isEditing:!!w,richTextEditorState:w});return{widget:c,onChange:p,editorState:d(),getEditorState:d,onEditorStateChange:p,setTextV1:g,getTextV1:y}},VD=()=>[{component:ID,styleConfig:{title:I18N.FloatingToolbar.Mind.theme},getMiddleProps:e=>{const{theme:t,widget:n,dispatch:r}=e;return{theme:t,onChange:c=>{r({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{theme:c}}]}})}}}},{component:ks.LX,styleConfig:{title:I18N.FloatingToolbar.Mind.bgColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#ffffff"},{color:"#e6e6e6"},{color:"#ff9e93"},{color:"#9dc4ff"},{color:"#54d691"},{color:"#daa3ff"},{color:"#fdd143"},{color:"#ff9e47"}]},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{fill:t.hotAttr.fill,handleColorChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{fill:c}}]}})}}}},{component:ks.Uh,styleConfig:{title:I18N.FloatingToolbar.Mind.stroke,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#191919"},{color:"#666666"},{color:"#ffffff"},{color:"#1684fc"},{color:"#00A056"},{color:"#9B33E1"},{color:"#E96200"},{color:"#EC4954"}]},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{border:t.hotAttr.border,handleBorderChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{border:c}}]}})}}}}],zD=e=>{var t;const n=(t=e.selectedMindNodeKeys)==null?void 0:t.length;if(n){const r=n===1,s=r&&e.selectedMindNodeKeys.includes(e.selectedMindNodeFlagIconKey),c=r&&e.selectedMindNodeKeys.includes(e.selectedMindNodeImageKey);return n>1?BD():s?UD():c?FD():RD()}else return{controlConfig:VD()}};var WD=Object.defineProperty,HD=Object.defineProperties,GD=Object.getOwnPropertyDescriptors,t4=Object.getOwnPropertySymbols,Tx=Object.prototype.hasOwnProperty,_x=Object.prototype.propertyIsEnumerable,Px=(e,t,n)=>t in e?WD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E5=(e,t)=>{for(var n in t||(t={}))Tx.call(t,n)&&Px(e,n,t[n]);if(t4)for(var n of t4(t))_x.call(t,n)&&Px(e,n,t[n]);return e},ZD=(e,t)=>HD(e,GD(t)),KD=(e,t)=>{var n={};for(var r in e)Tx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&t4)for(var r of t4(e))t.indexOf(r)<0&&_x.call(e,r)&&(n[r]=e[r]);return n},YD=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=KD(n,["size","spin","style"]);const p=E5(E5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ZD(E5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.75 5C5.33579 5 5 5.33579 5 5.75V18.25C5 18.6642 5.33579 19 5.75 19C6.16421 19 6.5 18.6642 6.5 18.25V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75C6.5 5.33579 6.16421 5 5.75 5Z",fill:"#19191A"}),l.createElement("path",{d:"M19.5368 12.7275C19.5368 12.1752 19.089 11.7275 18.5368 11.7275H18.3814C18.192 11.7275 18.0065 11.7813 17.8465 11.8826L16.56 12.6971C16.3925 12.8031 16.291 12.9876 16.291 13.1858C16.291 13.6404 16.7914 13.9174 17.1766 13.6759L17.9565 13.187H17.9991V18.2314C17.9991 18.656 18.3433 19.0002 18.7679 19.0002C19.1925 19.0002 19.5368 18.656 19.5368 18.2314V12.7275Z",fill:"#19191A"}))}),XD=Object.defineProperty,QD=Object.defineProperties,JD=Object.getOwnPropertyDescriptors,n4=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,jx=(e,t,n)=>t in e?XD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I5=(e,t)=>{for(var n in t||(t={}))Lx.call(t,n)&&jx(e,n,t[n]);if(n4)for(var n of n4(t))Nx.call(t,n)&&jx(e,n,t[n]);return e},qD=(e,t)=>QD(e,JD(t)),$D=(e,t)=>{var n={};for(var r in e)Lx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&n4)for(var r of n4(e))t.indexOf(r)<0&&Nx.call(e,r)&&(n[r]=e[r]);return n},eO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=$D(n,["size","spin","style"]);const p=I5(I5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",qD(I5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.75 5C5.33579 5 5 5.33579 5 5.75V18.25C5 18.6642 5.33579 19 5.75 19C6.16421 19 6.5 18.6642 6.5 18.25V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75C6.5 5.33579 6.16421 5 5.75 5Z",fill:"#19191A"}),l.createElement("path",{d:"M15.8132 18.229C15.8132 18.6549 16.1584 19.0001 16.5843 19.0001H20.3693C20.7165 19.0001 20.9979 18.7187 20.9979 18.3715C20.9979 18.0244 20.7165 17.743 20.3693 17.743H17.9439V17.6933L19.0057 16.6528C19.5052 16.1982 19.8923 15.8088 20.1669 15.4845C20.4415 15.1578 20.6321 14.8606 20.7386 14.5931C20.8475 14.3256 20.902 14.0545 20.902 13.7799C20.902 13.3609 20.7943 12.9892 20.5788 12.6649C20.3634 12.3405 20.0616 12.0872 19.6733 11.9049C19.2874 11.7203 18.834 11.6279 18.3132 11.6279C17.8066 11.6279 17.3591 11.7238 16.9709 11.9156C16.5826 12.1073 16.2808 12.3784 16.0653 12.7288C15.9671 12.8885 15.8913 13.0613 15.8379 13.2471C15.7265 13.6344 16.0689 13.9681 16.4719 13.9681H16.5803C16.9235 13.9681 17.1747 13.6706 17.3366 13.368C17.4266 13.1999 17.5545 13.0709 17.7202 12.9809C17.8859 12.891 18.08 12.846 18.3026 12.846C18.5156 12.846 18.7062 12.8886 18.8743 12.9738C19.0424 13.0567 19.175 13.1762 19.272 13.3325C19.3691 13.4864 19.4176 13.6698 19.4176 13.8829C19.4176 14.0747 19.3786 14.2534 19.3004 14.4191C19.2223 14.5825 19.1075 14.7494 18.956 14.9198C18.8068 15.0903 18.6222 15.282 18.402 15.4951L16.0604 17.6632C15.9028 17.8092 15.8132 18.0142 15.8132 18.229Z",fill:"#19191A"}))}),tO=Object.defineProperty,nO=Object.defineProperties,oO=Object.getOwnPropertyDescriptors,o4=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,Rx=(e,t,n)=>t in e?tO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T5=(e,t)=>{for(var n in t||(t={}))Dx.call(t,n)&&Rx(e,n,t[n]);if(o4)for(var n of o4(t))Ox.call(t,n)&&Rx(e,n,t[n]);return e},aO=(e,t)=>nO(e,oO(t)),rO=(e,t)=>{var n={};for(var r in e)Dx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&o4)for(var r of o4(e))t.indexOf(r)<0&&Ox.call(e,r)&&(n[r]=e[r]);return n},iO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=rO(n,["size","spin","style"]);const p=T5(T5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",aO(T5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75015C6.5 5.33594 6.16421 5.00015 5.75 5.00015C5.33579 5.00015 5 5.33594 5 5.75015V18.2502C5 18.6644 5.33579 19.0002 5.75 19.0002C6.16421 19.0002 6.5 18.6644 6.5 18.2502V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5Z",fill:"#19191A"}),l.createElement("path",{d:"M16.8423 18.6982C17.2566 18.8804 17.7289 18.9716 18.2592 18.9716C18.8037 18.9716 19.2867 18.8793 19.7081 18.6946C20.1295 18.5099 20.4598 18.2566 20.6989 17.9347C20.9403 17.6127 21.0599 17.2446 21.0575 16.8303C21.0599 16.3781 20.9202 16.0017 20.6385 15.701C20.3591 15.398 19.9519 15.2121 19.4169 15.1435V15.0866C19.8241 15.0133 20.1544 14.8404 20.4077 14.5682C20.6634 14.2959 20.79 13.9562 20.7876 13.549C20.79 13.1655 20.6858 12.8198 20.4751 12.5121C20.2668 12.2019 19.9744 11.9557 19.598 11.7734C19.2216 11.5911 18.7824 11.5 18.2805 11.5C17.7834 11.5 17.3371 11.5911 16.9418 11.7734C16.5488 11.9534 16.2363 12.2031 16.0043 12.5227C15.9195 12.6395 15.8497 12.7629 15.795 12.893C15.6335 13.2766 15.9867 13.6307 16.4029 13.6307H16.6C16.89 13.6307 17.111 13.3787 17.2862 13.1477C17.3904 13.0104 17.5289 12.9051 17.7017 12.8317C17.8745 12.7559 18.0651 12.718 18.2734 12.718C18.4794 12.718 18.6593 12.7571 18.8132 12.8352C18.9695 12.9134 19.0902 13.0223 19.1754 13.1619C19.263 13.2992 19.3068 13.459 19.3068 13.6413C19.3068 13.8331 19.2571 14.0012 19.1577 14.1456C19.0582 14.2876 18.9186 14.3989 18.7386 14.4794C18.5611 14.5599 18.3563 14.6001 18.1243 14.6001H18.0107C17.6988 14.6001 17.446 14.8529 17.446 15.1648C17.446 15.4766 17.6988 15.7294 18.0107 15.7294H18.1243C18.3989 15.7294 18.6357 15.772 18.8345 15.8572C19.0357 15.9425 19.1896 16.0608 19.2962 16.2124C19.4051 16.3615 19.4595 16.5331 19.4595 16.7273C19.4595 16.919 19.4086 17.0883 19.3068 17.2351C19.205 17.3819 19.0642 17.4967 18.8842 17.5795C18.7043 17.6624 18.4972 17.7038 18.2628 17.7038C18.0379 17.7038 17.8355 17.6671 17.6555 17.5938C17.4756 17.5204 17.3312 17.4174 17.2223 17.2848C17.0457 17.0611 16.825 16.8161 16.54 16.8161H16.3013C15.8609 16.8161 15.4866 17.1922 15.666 17.5943C15.7196 17.7146 15.7862 17.8292 15.8658 17.9382C16.1049 18.2602 16.4304 18.5135 16.8423 18.6982Z",fill:"#19191A"}))}),sO=Object.defineProperty,lO=Object.defineProperties,cO=Object.getOwnPropertyDescriptors,a4=Object.getOwnPropertySymbols,Bx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Fx=(e,t,n)=>t in e?sO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_5=(e,t)=>{for(var n in t||(t={}))Bx.call(t,n)&&Fx(e,n,t[n]);if(a4)for(var n of a4(t))Ux.call(t,n)&&Fx(e,n,t[n]);return e},dO=(e,t)=>lO(e,cO(t)),pO=(e,t)=>{var n={};for(var r in e)Bx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&a4)for(var r of a4(e))t.indexOf(r)<0&&Ux.call(e,r)&&(n[r]=e[r]);return n},uO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=pO(n,["size","spin","style"]);const p=_5(_5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",dO(_5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M6.05556 4.42122C5.99911 4.07303 5.59296 3.8824 5.28445 4.08849L4.22379 4.79699L4.15353 4.85361C3.98308 5.01837 3.9494 5.28638 4.08574 5.49049L4.14236 5.56075C4.30713 5.73119 4.57513 5.76488 4.77924 5.62853L5.06139 5.43926L5.06218 8.00426L5.07023 8.09414C5.11257 8.32738 5.31672 8.50426 5.56218 8.50426C5.83832 8.50426 6.06218 8.2804 6.06218 8.00426V4.50426L6.05556 4.42122Z",fill:"#19191A"}),l.createElement("path",{d:"M5.9068 10.0494C5.45709 9.93689 5.02016 10.0651 4.61031 10.3286C4.4371 10.44 4.30473 10.5517 4.22168 10.6347C4.02642 10.83 4.02643 11.1466 4.2217 11.3418C4.41697 11.5371 4.73355 11.5371 4.92881 11.3418C4.93793 11.3327 4.94977 11.3216 4.96407 11.3091L5.0769 11.2202L5.15109 11.1698C5.35136 11.041 5.53492 10.9872 5.6642 11.0195C5.75655 11.0426 5.85036 11.1129 5.95214 11.2656C6.002 11.3404 6.01017 11.412 5.97815 11.5187C5.90287 11.7696 5.62769 12.0989 5.21671 12.4401C5.02208 12.6017 4.81149 12.7548 4.60076 12.8934L4.43609 12.9988L4.32718 13.0641C3.882 13.3185 4.06251 13.9983 4.57525 13.9983H6.60427L6.69414 13.9902C6.92739 13.9479 7.10427 13.7437 7.10427 13.4983L7.09621 13.4084C7.05387 13.1751 6.84973 12.9983 6.60427 12.9983H6.09439L6.19689 12.9042C6.56463 12.547 6.82236 12.1847 6.93596 11.8061C7.05028 11.4251 7.00685 11.0449 6.7842 10.7109C6.54981 10.3593 6.25145 10.1355 5.9068 10.0494Z",fill:"#19191A"}),l.createElement("path",{d:"M5.72364 18.132C5.44749 18.132 5.22364 17.9081 5.22364 17.632C5.22364 17.3865 5.40051 17.1824 5.63376 17.14L5.72364 17.132L6.05027 17.1321L6.0973 17.073C6.23519 16.8891 6.26709 16.751 6.20307 16.6442C6.16502 16.5808 6.09416 16.5099 5.9809 16.4344C5.61602 16.1911 5.34227 16.2324 5.06782 16.4596C4.97292 16.5381 4.90697 16.616 4.88142 16.6543C4.72825 16.8841 4.41782 16.9462 4.18805 16.793C3.95828 16.6398 3.89618 16.3294 4.04935 16.0996C4.12465 15.9867 4.25095 15.8376 4.43023 15.6892C5.01895 15.202 5.76595 15.0892 6.53561 15.6023C6.76615 15.756 6.94187 15.9318 7.06069 16.1299C7.36827 16.6428 7.25919 17.1684 6.92737 17.632C7.25931 18.0956 7.36834 18.6214 7.06039 19.1345C6.94158 19.3324 6.76597 19.508 6.5356 19.6616C5.76593 20.1747 5.01897 20.0619 4.43025 19.5747C4.25097 19.4263 4.12467 19.2773 4.04936 19.1643C3.89618 18.9346 3.95827 18.6241 4.18803 18.4709C4.39226 18.3348 4.66024 18.3687 4.82485 18.5393L4.88141 18.6096C4.90696 18.6479 4.9729 18.7258 5.06781 18.8043C5.34227 19.0314 5.61604 19.0728 5.9809 18.8295C6.09406 18.7541 6.16492 18.6832 6.20299 18.6198C6.26711 18.513 6.23524 18.3748 6.09731 18.1909L6.05028 18.1318L5.72364 18.132Z",fill:"#19191A"}),l.createElement("path",{d:"M9.06207 5.75426C9.06207 6.16846 9.39786 6.50426 9.81207 6.50426H19.2849C19.6991 6.50426 20.0349 6.16846 20.0349 5.75426C20.0349 5.34004 19.6991 5.00426 19.2849 5.00426H9.81207C9.39786 5.00426 9.06207 5.34005 9.06207 5.75426Z",fill:"#19191A"}),l.createElement("path",{d:"M9.81207 12.5043C9.39786 12.5043 9.06207 12.1685 9.06207 11.7543C9.06207 11.3401 9.39786 11.0043 9.81207 11.0043H19.2849C19.6991 11.0043 20.0349 11.3401 20.0349 11.7543C20.0349 12.1685 19.6991 12.5043 19.2849 12.5043H9.81207Z",fill:"#19191A"}),l.createElement("path",{d:"M9.06207 17.7543C9.06207 18.1685 9.39786 18.5043 9.81207 18.5043H19.2849C19.6991 18.5043 20.0349 18.1685 20.0349 17.7543C20.0349 17.3401 19.6991 17.0043 19.2849 17.0043H9.81207C9.39786 17.0043 9.06207 17.3401 9.06207 17.7543Z",fill:"#19191A"}))}),hO=Object.defineProperty,mO=Object.defineProperties,fO=Object.getOwnPropertyDescriptors,r4=Object.getOwnPropertySymbols,Vx=Object.prototype.hasOwnProperty,zx=Object.prototype.propertyIsEnumerable,Wx=(e,t,n)=>t in e?hO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P5=(e,t)=>{for(var n in t||(t={}))Vx.call(t,n)&&Wx(e,n,t[n]);if(r4)for(var n of r4(t))zx.call(t,n)&&Wx(e,n,t[n]);return e},gO=(e,t)=>mO(e,fO(t)),yO=(e,t)=>{var n={};for(var r in e)Vx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&r4)for(var r of r4(e))t.indexOf(r)<0&&zx.call(e,r)&&(n[r]=e[r]);return n},vO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=yO(n,["size","spin","style"]);const p=P5(P5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",gO(P5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.0625 5.75391C9.0625 6.16811 9.3983 6.50391 9.8125 6.50391H19.2853C19.6995 6.50391 20.0353 6.16811 20.0353 5.75391C20.0353 5.33969 19.6995 5.00391 19.2853 5.00391H9.8125C9.3983 5.00391 9.0625 5.3397 9.0625 5.75391Z",fill:"#19191A"}),l.createElement("path",{d:"M9.8125 12.5039C9.3983 12.5039 9.0625 12.1681 9.0625 11.7539C9.0625 11.3397 9.3983 11.0039 9.8125 11.0039H19.2853C19.6995 11.0039 20.0353 11.3397 20.0353 11.7539C20.0353 12.1681 19.6995 12.5039 19.2853 12.5039H9.8125Z",fill:"#19191A"}),l.createElement("path",{d:"M9.0625 17.7539C9.0625 18.1681 9.3983 18.5039 9.8125 18.5039H19.2853C19.6995 18.5039 20.0353 18.1681 20.0353 17.7539C20.0353 17.3397 19.6995 17.0039 19.2853 17.0039H9.8125C9.3983 17.0039 9.0625 17.3397 9.0625 17.7539Z",fill:"#19191A"}),l.createElement("path",{d:"M4 5.75391C4 6.16811 4.3358 6.50391 4.75 6.50391H6.25C6.6642 6.50391 7 6.16811 7 5.75391C7 5.33969 6.6642 5.00391 6.25 5.00391H4.75C4.3358 5.00391 4 5.3397 4 5.75391Z",fill:"#19191A"}),l.createElement("path",{d:"M4.75 12.5039C4.3358 12.5039 4 12.1681 4 11.7539C4 11.3397 4.3358 11.0039 4.75 11.0039H6.25C6.6642 11.0039 7 11.3397 7 11.7539C7 12.1681 6.6642 12.5039 6.25 12.5039H4.75Z",fill:"#19191A"}),l.createElement("path",{d:"M4 17.7539C4 18.1681 4.3358 18.5039 4.75 18.5039H6.25C6.6642 18.5039 7 18.1681 7 17.7539C7 17.3397 6.6642 17.0039 6.25 17.0039H4.75C4.3358 17.0039 4 17.3397 4 17.7539Z",fill:"#19191A"}))});const xO=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,editorState:r,onChange:s}=e,c=(0,cd.E7)(r),d=(0,cd.UT)(r),p=(0,l.useRef)(null),g=(0,l.useMemo)(()=>[{key:"Normal",label:I18N.TextToolbar.syntax1,icon:(0,o.jsx)(Rv,{size:24})},{key:"H1",label:I18N.TextToolbar.syntax2,icon:(0,o.jsx)(YD,{size:24})},{key:"H2",label:I18N.TextToolbar.syntax3,icon:(0,o.jsx)(eO,{size:24})},{key:"H3",label:I18N.TextToolbar.syntax4,icon:(0,o.jsx)(iO,{size:24})},{key:"h_separator"},{key:"ordered",label:I18N.TextToolbar.syntax6,icon:(0,o.jsx)(uO,{size:24})},{key:"unordered",label:I18N.TextToolbar.syntax5,icon:(0,o.jsx)(vO,{size:24})}],[]),y=(0,l.useMemo)(()=>{var N;const Q=((N=cn.F.find(se=>se.style===c))==null?void 0:N.label)||d;return g.find(se=>se.key===Q)},[c,g]),w=N=>{var Z,Q;if(["unordered","ordered"].includes(N)){var se,ie;_(N),(se=p.current)==null||(ie=se.close)==null||ie.call(se);return}if(["header-one","header-two","header-three"].includes(N)){var he,xe;j(N),(he=p.current)==null||(xe=he.close)==null||xe.call(he);return}const Se=cn.F.find(De=>De.label===N).style;if(c===Se)return;const _e=(0,cd.ex)(r,Se);_e&&s(_e,void 0,!1),(Z=p.current)==null||(Q=Z.close)==null||Q.call(Z)},_=N=>{const Z=(0,cd.MM)(r,N);Z&&s(Z,void 0,!1)},j=N=>{const Z=(0,cd.WR)(r,N);Z&&s(Z,void 0,!1)};return(0,o.jsx)(d2.A,{ref:p,title:t.title,top:n==="bottom"?40:-198,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("div",{className:"trigger-icon size-24 margin-right-2",children:y==null?void 0:y.icon}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container draft-block-type-options width-140",children:g.map(N=>{const Z=(y==null?void 0:y.key)===N.key;return N.key==="h_separator"?(0,o.jsx)(ks.EC,{}):(0,o.jsx)(Vm.A,{value:N.key,active:Z,onClick:()=>w(N.key),children:(0,o.jsxs)(o.Fragment,{children:[Z&&(0,o.jsx)(Et.C,{name:"draft/check",className:"draft-check"}),(0,o.jsxs)("div",{className:"option-content",children:[N.icon,(0,o.jsx)("span",{className:"option-title",children:N.label})]})]})},N.key)})})})});var bO=Object.defineProperty,CO=Object.defineProperties,wO=Object.getOwnPropertyDescriptors,i4=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty,Gx=Object.prototype.propertyIsEnumerable,Zx=(e,t,n)=>t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L5=(e,t)=>{for(var n in t||(t={}))Hx.call(t,n)&&Zx(e,n,t[n]);if(i4)for(var n of i4(t))Gx.call(t,n)&&Zx(e,n,t[n]);return e},SO=(e,t)=>CO(e,wO(t)),AO=(e,t)=>{var n={};for(var r in e)Hx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&i4)for(var r of i4(e))t.indexOf(r)<0&&Gx.call(e,r)&&(n[r]=e[r]);return n},MO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=AO(n,["size","spin","style"]);const p=L5(L5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",SO(L5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71288 17.0115C5.78609 16.8813 5.85808 16.7533 5.92727 16.6294C5.91287 16.5927 5.90122 16.5544 5.89262 16.5147C5.33889 13.9651 5.45103 10.0443 8.56087 6.89058C10.0166 5.41431 12.274 4.57792 14.239 4.35659C15.2282 4.24517 16.1999 4.28248 17.0074 4.5075C17.7908 4.7258 18.5592 5.16547 18.8891 5.9664C18.8941 5.978 18.8988 5.98978 18.9033 6.0017C19.3666 7.1721 19.4194 8.65667 18.5325 9.94097C17.8277 10.9614 16.6038 11.7475 14.778 12.1725C14.9442 12.4591 15.0416 12.7751 15.0508 13.1196C15.0737 13.9876 14.5229 14.7198 13.8185 15.2604C12.5107 16.2641 10.2224 16.981 7.38982 17.0909C7.18196 17.4838 6.98059 17.8758 6.78525 18.2644H16.9404C17.084 18.2644 17.2004 18.3808 17.2004 18.5244C17.2004 18.66 17.0963 18.7728 16.9612 18.7836L5.54853 19.7018C5.13841 19.7348 4.78612 19.4185 4.7714 19.0108C4.75994 18.8797 4.78288 18.7438 4.8449 18.6169C5.07708 18.1419 5.4057 17.5576 5.71288 17.0115ZM14.4069 5.84717C12.6691 6.0429 10.7737 6.78289 9.62894 7.94378C7.6112 9.99 7.06666 12.423 7.14049 14.4581C7.99206 13.0149 8.95099 11.5934 10.0385 10.3233C11.7524 8.3215 13.824 6.65151 16.3402 5.88984C15.8076 5.78412 15.1417 5.76439 14.4069 5.84717ZM17.2982 9.08856C17.7177 8.48115 17.8095 7.77708 17.673 7.10443C15.1271 7.59152 12.999 9.1719 11.1779 11.2989C10.0814 12.5795 9.11406 14.0376 8.25046 15.5319C10.4333 15.3284 12.0466 14.7294 12.9053 14.0704C13.4426 13.6581 13.5558 13.3296 13.5513 13.1593C13.5475 13.0161 13.4485 12.7031 12.7963 12.3339C12.5128 12.1734 12.3654 11.8483 12.4313 11.5293C12.4973 11.2103 12.7616 10.9704 13.0855 10.9355C15.545 10.6706 16.7551 9.8749 17.2982 9.08856Z",fill:"#19191A"}))});class kO extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleInfoChange",()=>{const{updateInfo:t,info:n,currentUser:r}=this.props,s=r.name,c=an()().valueOf();t({...n,author:s,time:c})}),(0,O.A)(this,"renderOption",(t,n)=>{const{config:r,info:s,handleAuthorChange:c,handleDateChange:d,widget:p}=this.props,{key:g,label:y}=t;if(g==="h_separator")return(0,o.jsx)(ks.EC,{});if(g==="update")return(0,o.jsx)(Vm.A,{value:g,onClick:this.handleInfoChange,children:y},n);const _={author:s.showAuthor,time:s.showTime}[g],j=N=>{g==="author"?c(N):g==="time"&&d(N)};return(0,o.jsx)(Vm.A,{preventDefault:!1,value:g,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{className:"left-label",children:y}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Jh.A,{isIOS:!0,size:"small",isChecked:_,onChange:j})})]})},n)})}render(){const{config:t,dropdownPosition:n}=this.props,{options:r,title:s}=t;return(0,o.jsx)(d2.A,{title:s,top:n==="bottom"?40:-114,left:-52,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(MO,{size:24})})}),children:(0,o.jsx)("div",{className:"content-container draft-info-options",children:r.map((c,d)=>this.renderOption(c,d))})})}}const EO=(0,l.memo)(e=>{const t=(0,l.useRef)(null),{widget:n,editorState:r,config:s,dropdownPosition:c,rootProject:d,currentUser:p,currentOrg:g,isLeftShow:y,dispatch:w,onChange:_}=e,{options:j,title:N}=s,Z=(0,l.useRef)(null),Q=(0,l.useMemo)(()=>{let Se=!1;const _e=(0,cd.DN)(r),De=(0,cd.d8)(r),Je=De&&De.get("type");return(_e||["unordered-list-item","ordered-list-item"].includes(Je))&&(Se=!0),Se},[r]),se=Se=>{var _e,De;Se==="local"&&t&&(t.current.value=null,t.current.setAttribute("value",null),t.current.click()),Se==="gallery"&&(!y&&w({type:"left-panel:collapse:panel:show"}),w({type:"entry:resource:open:assetPanel"})),(_e=Z.current)==null||(De=_e.close)==null||De.call(_e)},ie=Se=>{const _e=Se.target.files[0];(0,x5.i3)({files:[_e],rootProject:d,callback:he,isFilterSvg:!1},p,g)},he=Se=>{if(!Se)return;const{w:_e}=n.hotAttr,De=_e;let Je;Se.width>=De?Je=100:Je=Number(Se.width/De*100).toFixed(2);const Ne={src:Se.image,width:Je,height:void 0,alt:Se.name},pt=(0,cd.V4)(r,Ne);pt&&_(pt,{isImageInserted:!0})},xe=Se=>{let{asset:_e}=Se;he(_e)};return(0,l.useEffect)(()=>(T1.A.on("draft:side-toolbar:image",xe),T1.A.on("draft:side-toolbar:image-paste",ie),()=>{T1.A.off("draft:side-toolbar:image",xe),T1.A.off("draft:side-toolbar:image-paste",ie)}),[xe,ie]),(0,o.jsx)(d2.A,{disabled:Q,title:N,top:c==="bottom"?40:-78,left:-50,trigger:(0,o.jsx)("div",{className:m()("trigger-container","padding-0",{disabled:Q}),children:(0,o.jsxs)("div",{className:"trigger-icon",children:[(0,o.jsx)("input",{ref:t,type:"file",onChange:ie,disabled:Q,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,o.jsx)(Kg,{size:24})]})}),children:(0,o.jsx)("div",{className:"content-container draft-image-options",children:j.map((Se,_e)=>(0,o.jsx)(Vm.A,{value:Se.key,active:!1,disabled:!1,onClick:se,children:(0,o.jsx)("span",{className:"option-title",children:Se.label})},_e))})})});var Kx=i(16880),IO=i(95142),TO=i(31891),_O=i(79495),PO=Object.defineProperty,LO=Object.defineProperties,NO=Object.getOwnPropertyDescriptors,s4=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Xx=Object.prototype.propertyIsEnumerable,Qx=(e,t,n)=>t in e?PO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N5=(e,t)=>{for(var n in t||(t={}))Yx.call(t,n)&&Qx(e,n,t[n]);if(s4)for(var n of s4(t))Xx.call(t,n)&&Qx(e,n,t[n]);return e},jO=(e,t)=>LO(e,NO(t)),DO=(e,t)=>{var n={};for(var r in e)Yx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&s4)for(var r of s4(e))t.indexOf(r)<0&&Xx.call(e,r)&&(n[r]=e[r]);return n},OO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=DO(n,["size","spin","style"]);const p=N5(N5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",jO(N5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.25 17.0039C19.6642 17.0039 20 17.3397 20 17.7539C20 18.1681 19.6642 18.5039 19.25 18.5039H4.75C4.3358 18.5039 4 18.1681 4 17.7539C4 17.3397 4.3358 17.0039 4.75 17.0039H19.25ZM4 10.0596C4.0001 9.59328 4.50931 9.305 4.90918 9.54492L8.14258 11.4854C8.53098 11.7184 8.53098 12.2816 8.14258 12.5146L4.90918 14.4551C4.50931 14.695 4.0001 14.4067 4 13.9404V10.0596ZM19.25 11.0039C19.6642 11.0039 20 11.3397 20 11.7539C20 12.1681 19.6642 12.5039 19.25 12.5039H11.75C11.3358 12.5039 11 12.1681 11 11.7539C11 11.3397 11.3358 11.0039 11.75 11.0039H19.25ZM19.25 5.00391C19.6642 5.00391 20 5.33969 20 5.75391C20 6.16811 19.6642 6.50391 19.25 6.50391H4.75C4.3358 6.50391 4 6.16811 4 5.75391C4 5.3397 4.3358 5.00391 4.75 5.00391H19.25Z",fill:"#19191A"}))}),RO=Object.defineProperty,BO=Object.defineProperties,UO=Object.getOwnPropertyDescriptors,l4=Object.getOwnPropertySymbols,Jx=Object.prototype.hasOwnProperty,qx=Object.prototype.propertyIsEnumerable,$x=(e,t,n)=>t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j5=(e,t)=>{for(var n in t||(t={}))Jx.call(t,n)&&$x(e,n,t[n]);if(l4)for(var n of l4(t))qx.call(t,n)&&$x(e,n,t[n]);return e},FO=(e,t)=>BO(e,UO(t)),VO=(e,t)=>{var n={};for(var r in e)Jx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&l4)for(var r of l4(e))t.indexOf(r)<0&&qx.call(e,r)&&(n[r]=e[r]);return n},zO=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=VO(n,["size","spin","style"]);const p=j5(j5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",FO(j5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.25 17.0039C19.6642 17.0039 20 17.3397 20 17.7539C20 18.1681 19.6642 18.5039 19.25 18.5039H4.75C4.3358 18.5039 4 18.1681 4 17.7539C4 17.3397 4.3358 17.0039 4.75 17.0039H19.25ZM7.59082 9.54492C7.99069 9.305 8.4999 9.59328 8.5 10.0596V13.9404C8.4999 14.4067 7.99069 14.695 7.59082 14.4551L4.35742 12.5146C3.96902 12.2816 3.96902 11.7184 4.35742 11.4854L7.59082 9.54492ZM19.25 11.0039C19.6642 11.0039 20 11.3397 20 11.7539C20 12.1681 19.6642 12.5039 19.25 12.5039H11.75C11.3358 12.5039 11 12.1681 11 11.7539C11 11.3397 11.3358 11.0039 11.75 11.0039H19.25ZM19.25 5.00391C19.6642 5.00391 20 5.33969 20 5.75391C20 6.16811 19.6642 6.50391 19.25 6.50391H4.75C4.3358 6.50391 4 6.16811 4 5.75391C4 5.3397 4.3358 5.00391 4.75 5.00391H19.25Z",fill:"#19191A"}))}),e7=i(49989),WO=i(11494);const HO=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,editorState:r,widget:s,onChange:c,dispatch:d}=e,g=s.hotAttr["!haVersion"]===1?(0,cd.j1)(r):s.hotAttr.textV0.horizontalAlign,y=(0,cd.DN)(r),w=(0,cd.d8)(r),_=(0,cd.HA)(r),j=(0,l.useRef)(null),N=()=>(0,ea.Eg)(w)?!_||!(0,ea.Eg)(w)||_.get("type")!==w.get("type")||_.get("depth")<w.get("depth")||w.get("depth")>=2:y===2,Z=()=>(0,ea.Eg)(w)?!w||!(0,ea.Eg)(w)||w.get("depth")<=0:y===0,Q=(0,l.useMemo)(()=>[{value:"left",tip_title:I18N.TextToolbar.align1,label:(0,o.jsx)(Kx.A,{size:24})},{value:"center",tip_title:I18N.TextToolbar.align2,label:(0,o.jsx)(IO.A,{size:24})},{value:"right",tip_title:I18N.TextToolbar.align3,label:(0,o.jsx)(TO.A,{size:24})},{value:"justify",tip_title:I18N.TextToolbar.align4,label:(0,o.jsx)(_O.A,{size:24})}],[]),se=(0,l.useMemo)(()=>[{value:"indent",tip_title:I18N.TextToolbar.align5,label:(0,o.jsx)(OO,{size:24}),disabled:N()},{value:"outdent",tip_title:I18N.TextToolbar.align6,label:(0,o.jsx)(zO,{size:24}),disabled:Z()}],[N,Z]),ie=(0,l.useMemo)(()=>{const xe=Q.find(Se=>Se.value===g);return(xe==null?void 0:xe.label)||(0,o.jsx)(Kx.A,{size:24})},[Q,g]),he=xe=>{var Se,_e;const{_getEditorState:De}=(0,_n.DT)(),Je=De();let Ne;if(["indent","outdent"].includes(xe))(0,ea.Eg)(w)?Ne=(0,cd.H2)(Je,xe==="indent"?1:-1):Ne=(0,cd.fM)(Je,xe,y),Ne&&c(Ne,void 0,!1);else{const pt=s.hotAttr["!haVersion"],_t=Je.getSelection();pt===1?(on({value:3,attr:"!haVersion",selections:[s.key],dispatch:d}),on({value:xe,attr:"horizontalAlign",supAttr:"textV0",selections:[s.key],dispatch:d})):on({value:xe,attr:"horizontalAlign",supAttr:"textV0",selections:[s.key],dispatch:d}),setTimeout(()=>{const gt=Df.$t.forceSelection(Je,_t);c(gt,{isChangeAlign:!0})},4)}(Se=j.current)==null||(_e=Se.close)==null||_e.call(Se)};return(0,o.jsx)(d2.A,{ref:j,title:t.title,top:n==="bottom"?40:-96,left:-62,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:ie})}),children:(0,o.jsxs)(WO.wv,{className:"content-container draft-alignment-options",children:[(0,o.jsx)(e7.z,{className:"h-alignment",options:Q,value:g,isLongTimeHover:!0,handleChange:he}),(0,o.jsx)(ks.EC,{}),(0,o.jsx)(e7.z,{className:"indent",options:se,value:y,isLongTimeHover:!0,handleChange:he})]})})}),t7=e=>({getCommonProps:t=>dm(t),controlConfig:[{component:xO,styleConfig:{title:I18N.TextToolbar.syntaxDesc}},{component:ks.rw,styleConfig:{title:I18N.TextToolbar.textColor,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},Wf(),{component:ks.cV,styleConfig:{title:I18N.TextToolbar.style0}},{component:HO,styleConfig:{title:I18N.TextToolbar.align0}},{type:"VSeparator",component:ks.So},{component:ks.N_,styleConfig:{title:I18N.TextToolbar.url0}},{component:EO,styleConfig:{title:I18N.TextToolbar.image0,options:[{key:"local",label:I18N.TextToolbar.image1},{key:"gallery",label:I18N.TextToolbar.image2}]}},{component:kO,styleConfig:{title:I18N.TextToolbar.info,options:[{key:"author",label:I18N.TextToolbar.author},{key:"time",label:I18N.TextToolbar.date},{key:"h_separator"},{key:"update",label:I18N.TextToolbar.update}]},getMiddleProps:t=>{const{widget:n,dispatch:r}=t,s=n.hotAttr.info,c=(y,w)=>{r({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:y}]}}),r({type:"entry:update:preference_flags_by_sticky",payload:{info:w==null?void 0:w.info}})};return{info:s,updateInfo:y=>{c({info:y},{info:y}),MB.notice({text:I18N.TextToolbar.sticky.updateInfo.notice,type:"success"})},handleAuthorChange:y=>{const w={...s,showAuthor:y,author:s.author||MB.user.name};c({info:w},{info:w})},handleDateChange:y=>{const w={...s,showTime:y,time:s.time||new Date().getTime()};c({info:w},{info:w})}}}},{component:ks.LX,styleConfig:{className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,colors:[{color:"rgba(172, 188, 209, 1)",borderColor:"rgba(144, 170, 204, 1)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(56, 205, 231, 1)",borderColor:"rgba(42, 180, 204, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(255, 148, 228, 1)",borderColor:"rgba(251, 113, 216, 1)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"}]},getMiddleProps:t=>{const{widget:n,dispatch:r}=t;return{fill:n.hotAttr.fill,handleColorChange:d=>{r({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{fill:d}}]}})}}}}]}),D5=E.Ay.div.withConfig({displayName:"style__StyledCodeGenerateItem",componentId:"sc-d5cbar-0"})(["display:flex;align-items:center;color:",";font-size:12px;font-weight:500;line-height:16px;"],e=>e.theme.color_text_L1),GO=(0,E.Ay)(D5).withConfig({displayName:"style__StyledCodeGenerateConfirm",componentId:"sc-d5cbar-1"})(["height:32px;padding:0 8px 0 4px;border-radius:6px;background-color:transparent;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}svg{color:inherit;path[fill]{fill:",";}}span{white-space:nowrap;margin-left:2px;}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),ZO=(0,E.Ay)(D5).withConfig({displayName:"style__StyledCodeGenerateOrder",componentId:"sc-d5cbar-2"})([".order{padding:6px;}"]),WQ=E.Ay.div.withConfig({displayName:"style__StyledIconContainer",componentId:"sc-d5cbar-3"})(["margin-right:4px;"]),n7=(0,E.Ay)(Et.C).withConfig({displayName:"style__StyledSvgIcon",componentId:"sc-d5cbar-4"})(["width:32px;height:32px;padding:4px;color:",";&.feedback-btn.unsatisfied{transform:rotate(180deg);&.active{color:",";}}&.feedback-btn.satisfied.active{color:",";}"],e=>e.theme.color_text_L1,e=>e.theme.color_error,e=>e.theme.color_text_link_normal),KO=(0,E.Ay)(D5).withConfig({displayName:"style__StyledCodeGenerateLoading",componentId:"sc-d5cbar-5"})(["margin-right:6px;.request-loading{width:24px;height:24px;}.request-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]),YO=E.Ay.div.withConfig({displayName:"style__StyledCode2MDWidgetButton",componentId:"sc-d5cbar-6"})(["height:32px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;border-radius:6px;cursor:pointer;margin-right:6px;background:",";&.disabled{opacity:0.5;cursor:not-allowed;}&:hover{background:",";}.loading-icon{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}svg{color:inherit;path[fill]{fill:",";}}.text{font-weight:400;font-size:14px;line-height:20px;color:",";white-space:nowrap;}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),XO=()=>(0,o.jsx)(KO,{children:(0,o.jsx)(Et.C,{className:"request-loading",name:"chatGPT/tip-loading",isColorPure:!0})});var QO=Object.defineProperty,JO=Object.defineProperties,qO=Object.getOwnPropertyDescriptors,c4=Object.getOwnPropertySymbols,o7=Object.prototype.hasOwnProperty,a7=Object.prototype.propertyIsEnumerable,r7=(e,t,n)=>t in e?QO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O5=(e,t)=>{for(var n in t||(t={}))o7.call(t,n)&&r7(e,n,t[n]);if(c4)for(var n of c4(t))a7.call(t,n)&&r7(e,n,t[n]);return e},$O=(e,t)=>JO(e,qO(t)),eR=(e,t)=>{var n={};for(var r in e)o7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&c4)for(var r of c4(e))t.indexOf(r)<0&&a7.call(e,r)&&(n[r]=e[r]);return n},tR=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=eR(n,["size","spin","style"]);const p=O5(O5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",$O(O5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.2579 7.21973C18.5508 6.92691 19.0256 6.92705 19.3185 7.21973C19.6112 7.51263 19.6113 7.98743 19.3185 8.28027L10.8331 16.7656C10.6925 16.9062 10.5017 16.9853 10.3029 16.9854C10.1041 16.9853 9.91315 16.9061 9.77258 16.7656L4.68176 11.6748C4.3889 11.3819 4.38897 10.9072 4.68176 10.6143C4.97466 10.3214 5.44942 10.3214 5.74231 10.6143L10.3029 15.1748L18.2579 7.21973Z",fill:"#19191A"}))});const nR=e=>{const{dispatch:t}=e,n=()=>{t({type:"entry:aiComponent:float-bar:confirm",payload:{key:e.widget.key}})};return(0,o.jsxs)(GO,{onClick:n,children:[(0,o.jsx)(tR,{size:24}),(0,o.jsx)("span",{children:I18N.Common.confirm2})]})};var Ih=i(95657);const oR=e=>{const{dispatch:t}=e,n=(0,a.d4)(Ih.G1),r=e.widget.key,s=n[r]||{},{activeIndex:c,list:d}=(s==null?void 0:s.resultTmpListData)||{activeIndex:0,list:[]},p=_=>{t({type:"entry:aiComponent:float-bar:handle-order",payload:{key:r,type:_}})},g=c+1+"/"+d.length,y=c===0,w=c===d.length-1;return d.length<=1?null:(0,o.jsxs)(ZO,{children:[(0,o.jsx)(bf.A,{disabled:y,title:I18N.TextToolbar.code.prev,onClick:()=>p("prev"),children:(0,o.jsx)(n7,{className:"prev",name:"chatGTP/ai-component/float-bar/prev",size:24})}),(0,o.jsx)("div",{className:"order",children:g}),(0,o.jsx)(bf.A,{disabled:w,title:I18N.TextToolbar.code.next,onClick:()=>p("next"),children:(0,o.jsx)(n7,{className:"next",name:"chatGTP/ai-component/float-bar/next",size:24})})]})};var aR=Object.defineProperty,rR=Object.defineProperties,iR=Object.getOwnPropertyDescriptors,d4=Object.getOwnPropertySymbols,i7=Object.prototype.hasOwnProperty,s7=Object.prototype.propertyIsEnumerable,l7=(e,t,n)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R5=(e,t)=>{for(var n in t||(t={}))i7.call(t,n)&&l7(e,n,t[n]);if(d4)for(var n of d4(t))s7.call(t,n)&&l7(e,n,t[n]);return e},sR=(e,t)=>rR(e,iR(t)),lR=(e,t)=>{var n={};for(var r in e)i7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&d4)for(var r of d4(e))t.indexOf(r)<0&&s7.call(e,r)&&(n[r]=e[r]);return n},cR=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=lR(n,["size","spin","style"]);const p=R5(R5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",sR(R5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.625 10.917C19.4583 11.3981 19.4583 12.6019 18.625 13.083L8.875 18.7119C8.04168 19.1929 7 18.5911 7 17.6289L7 6.37109C7 5.40888 8.04168 4.80706 8.875 5.28809L18.625 10.917Z",stroke:"#19191A",strokeWidth:"1.5"}))});const dR=e=>{const{dispatch:t}=e,n=e.widget.key,r=()=>{var s;const c=(s=sdkStore.getHotItem(n))==null?void 0:s.sup;t({type:"entry:preview:widget",payload:{activeWidgetKey:n,activePageKey:c}})};return(0,o.jsx)(bf.A,{className:"code-generate-preview",title:I18N.TextToolbar.code.preview,onClick:r,children:(0,o.jsx)(cR,{size:24})})};var pR=Object.defineProperty,uR=Object.defineProperties,hR=Object.getOwnPropertyDescriptors,p4=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,d7=Object.prototype.propertyIsEnumerable,p7=(e,t,n)=>t in e?pR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B5=(e,t)=>{for(var n in t||(t={}))c7.call(t,n)&&p7(e,n,t[n]);if(p4)for(var n of p4(t))d7.call(t,n)&&p7(e,n,t[n]);return e},mR=(e,t)=>uR(e,hR(t)),fR=(e,t)=>{var n={};for(var r in e)c7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&p4)for(var r of p4(e))t.indexOf(r)<0&&d7.call(e,r)&&(n[r]=e[r]);return n},gR=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=fR(n,["size","spin","style"]);const p=B5(B5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",mR(B5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.021 11.2495C5.33191 11.2497 5.59787 11.4388 5.71143 11.7085C5.74933 11.7982 5.771 11.897 5.771 12.0005C5.77137 15.4404 8.56045 18.229 12.0005 18.229C13.6809 18.2288 15.2046 17.5641 16.3257 16.4819C16.6237 16.1944 17.0986 16.2035 17.3862 16.5015C17.6735 16.7995 17.6655 17.2745 17.3677 17.562C15.9783 18.9031 14.0848 19.7288 12.0005 19.729C9.44415 19.729 7.17811 18.4871 5.771 16.5747V18.2036C5.77053 18.6173 5.43475 18.9534 5.021 18.9536C4.60707 18.9536 4.27146 18.6174 4.271 18.2036V11.9995C4.271 11.5853 4.60678 11.2495 5.021 11.2495ZM12.0005 4.271C14.5558 4.27122 16.8202 5.51198 18.2271 7.42334V5.79639C18.2273 5.38253 18.5632 5.04661 18.9771 5.04639C19.3911 5.04639 19.7268 5.38239 19.7271 5.79639V11.9224C19.7273 11.9483 19.729 11.9745 19.729 12.0005C19.7288 12.2543 19.6009 12.4772 19.4077 12.6128C19.2861 12.6985 19.139 12.7502 18.979 12.7505L18.978 12.7495L18.9771 12.7505C18.5632 12.7503 18.2273 12.4144 18.2271 12.0005V11.9224C18.1854 8.51817 15.4145 5.77137 12.0005 5.771C10.2405 5.771 8.65181 6.49993 7.51807 7.67432C7.2305 7.9722 6.75556 7.98019 6.45752 7.69287C6.15957 7.40518 6.1513 6.93032 6.43896 6.63232C7.84367 5.17733 9.81705 4.271 12.0005 4.271Z",fill:"#19191A"}))});const yR=e=>{const{dispatch:t}=e,n=()=>{t({type:"entry:aiComponent:float-bar:retry",payload:{key:e.widget.key}})};return(0,o.jsx)(bf.A,{title:I18N.TextToolbar.code.regenerate,onClick:n,children:(0,o.jsx)(gR,{size:24})})},KQ=e=>{const{dispatch:t}=e,n=()=>{};return _jsx(MenuOption,{title:I18N.TextToolbar.code.code_editor,onClick:n,children:_jsx(AiMainIconCode,{size:24})})};var vR=Object.defineProperty,xR=Object.defineProperties,bR=Object.getOwnPropertyDescriptors,u4=Object.getOwnPropertySymbols,u7=Object.prototype.hasOwnProperty,h7=Object.prototype.propertyIsEnumerable,m7=(e,t,n)=>t in e?vR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U5=(e,t)=>{for(var n in t||(t={}))u7.call(t,n)&&m7(e,n,t[n]);if(u4)for(var n of u4(t))h7.call(t,n)&&m7(e,n,t[n]);return e},CR=(e,t)=>xR(e,bR(t)),wR=(e,t)=>{var n={};for(var r in e)u7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&u4)for(var r of u4(e))t.indexOf(r)<0&&h7.call(e,r)&&(n[r]=e[r]);return n},f7=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=wR(n,["size","spin","style"]);const p=U5(U5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",CR(U5({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{opacity:"0.8",d:"M9.99993 3C10.4666 3 10.6999 3.23333 10.6999 3.7V5.8C10.6999 6.26667 10.4666 6.5 9.99993 6.5C9.53326 6.5 9.29993 6.26667 9.29993 5.8V3.7C9.29993 3.23333 9.53326 3 9.99993 3Z",fill:"black"}),l.createElement("path",{opacity:"0.4",d:"M9.99993 13.5C10.4666 13.5 10.6999 13.7333 10.6999 14.2V16.3C10.6999 16.7667 10.4666 17 9.99993 17C9.53326 17 9.29993 16.7667 9.29993 16.3V14.2C9.29993 13.7333 9.53326 13.5 9.99993 13.5Z",fill:"black"}),l.createElement("path",{opacity:"0.2",d:"M16.9999 9.9998C16.9999 10.4665 16.7666 10.6998 16.2999 10.6998H14.1999C13.7333 10.6998 13.4999 10.4665 13.4999 9.9998C13.4999 9.53314 13.7333 9.2998 14.1999 9.2998H16.2999C16.7666 9.2998 16.9999 9.53314 16.9999 9.9998Z",fill:"black"}),l.createElement("path",{opacity:"0.6",d:"M6.49994 9.9998C6.49994 10.4665 6.26661 10.6998 5.79994 10.6998H3.69994C3.23327 10.6998 2.99994 10.4665 2.99994 9.9998C2.99994 9.53314 3.23327 9.2998 3.69994 9.2998H5.79994C6.26661 9.2998 6.49994 9.53314 6.49994 9.9998Z",fill:"black"}),l.createElement("path",{opacity:"0.1",d:"M14.9467 5.05022C15.2766 5.3802 15.2766 5.71019 14.9467 6.04017L13.4617 7.52509C13.1318 7.85508 12.8018 7.85508 12.4718 7.52509C12.1418 7.19511 12.1418 6.86513 12.4718 6.53515L13.9567 5.05022C14.2867 4.72024 14.6167 4.72024 14.9467 5.05022Z",fill:"black"}),l.createElement("path",{opacity:"0.5",d:"M7.52284 12.4745C7.85282 12.8045 7.85282 13.1345 7.52284 13.4645L6.03791 14.9494C5.70793 15.2794 5.37795 15.2794 5.04796 14.9494C4.71798 14.6194 4.71798 14.2894 5.04796 13.9595L6.53289 12.4745C6.86287 12.1446 7.19285 12.1446 7.52284 12.4745Z",fill:"black"}),l.createElement("path",{opacity:"0.3",d:"M14.9467 14.9499C14.6167 15.2799 14.2867 15.2799 13.9567 14.9499L12.4718 13.465C12.1418 13.135 12.1418 12.805 12.4718 12.475C12.8018 12.145 13.1318 12.145 13.4617 12.475L14.9467 13.96C15.2766 14.2899 15.2766 14.6199 14.9467 14.9499Z",fill:"black"}),l.createElement("path",{opacity:"0.7",d:"M7.52284 7.5251C7.19285 7.85508 6.86287 7.85508 6.53289 7.5251L5.04796 6.04017C4.71798 5.71019 4.71798 5.3802 5.04796 5.05022C5.37795 4.72024 5.70793 4.72024 6.03791 5.05022L7.52284 6.53515C7.85282 6.86513 7.85282 7.19511 7.52284 7.5251Z",fill:"black"}))}),SR=Object.defineProperty,AR=Object.defineProperties,MR=Object.getOwnPropertyDescriptors,h4=Object.getOwnPropertySymbols,g7=Object.prototype.hasOwnProperty,y7=Object.prototype.propertyIsEnumerable,v7=(e,t,n)=>t in e?SR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F5=(e,t)=>{for(var n in t||(t={}))g7.call(t,n)&&v7(e,n,t[n]);if(h4)for(var n of h4(t))y7.call(t,n)&&v7(e,n,t[n]);return e},kR=(e,t)=>AR(e,MR(t)),ER=(e,t)=>{var n={};for(var r in e)g7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&h4)for(var r of h4(e))t.indexOf(r)<0&&y7.call(e,r)&&(n[r]=e[r]);return n},IR=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=ER(n,["size","spin","style"]);const p=F5(F5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",kR(F5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4.18481 6.72519C6.72035 6.59191 8.49773 7.22952 9.85083 8.29062C11.1668 9.32273 12.0287 10.7224 12.7971 11.9518C13.5942 13.2269 14.2872 14.3091 15.2786 15.0201C15.9664 15.5134 16.8401 15.8518 18.0774 15.8629L17.72 15.5045C17.4271 15.2116 17.4271 14.7368 17.72 14.4439C18.0129 14.1512 18.4877 14.1511 18.7805 14.4439L20.3069 15.9703C20.5993 16.2632 20.5995 16.7381 20.3069 17.0309L18.7805 18.5562C18.4876 18.8491 18.0129 18.8491 17.72 18.5562C17.4273 18.2633 17.4271 17.7885 17.72 17.4957L17.8567 17.358C16.4458 17.31 15.33 16.9032 14.4036 16.2389C13.13 15.3252 12.2908 13.9708 11.5256 12.7467C10.7317 11.4766 9.9994 10.3129 8.92505 9.47031C7.88766 8.65687 6.47678 8.10682 4.26294 8.22324C3.84944 8.2448 3.4966 7.92681 3.47485 7.51328C3.45352 7.09996 3.77142 6.74693 4.18481 6.72519ZM9.51294 14.2623C9.85779 13.8858 10.4754 13.9036 10.7522 14.3326C10.9226 14.597 10.9134 14.9452 10.7043 15.1803C10.3583 15.5693 9.97621 15.93 9.54419 16.2398C8.21976 17.1897 6.50833 17.6156 4.10083 17.2144C3.69225 17.1464 3.41653 16.7597 3.48462 16.3512C3.5527 15.9427 3.93846 15.6671 4.34692 15.735C6.43935 16.0836 7.729 15.6961 8.67017 15.0211C8.97574 14.8019 9.25239 14.5468 9.51294 14.2623ZM17.72 5.44394C18.0129 5.15116 18.4877 5.15108 18.7805 5.44394L20.3069 6.97031C20.5993 7.26319 20.5995 7.73808 20.3069 8.03085L18.7805 9.55624C18.4876 9.84914 18.0129 9.84914 17.72 9.55624C17.4273 9.26334 17.4271 8.78853 17.72 8.4957L17.9299 8.28476C16.6739 8.45465 15.7552 8.89681 15.0227 9.47128C14.8246 9.62664 14.6385 9.79354 14.4612 9.96933C14.1134 10.314 13.5369 10.3029 13.2629 9.89706C13.0789 9.62412 13.0779 9.23809 13.3079 9.00253C13.5523 8.75215 13.8141 8.51341 14.0969 8.2916C15.1083 7.49839 16.3568 6.94192 17.9817 6.76718L17.72 6.50449C17.4271 6.21159 17.4271 5.73683 17.72 5.44394Z",fill:"#19191A"}))});const TR=e=>{const{widget:t,dispatch:n}=e,s=(0,a.d4)(Ih.G1)[t.key]||{},c=!t.hotAttr.injection,{convertToEditableType:d="idle"}=s,p=d==="converting",g=async()=>{p||c||n({type:"entry:aiComponent:float-bar:convert-to-editable",payload:{widget:t}})},y=(0,l.useMemo)(()=>c?I18N.TextToolbar.code.convert_error:"",[c]);return(0,o.jsx)(Os.A,{content:y,direction:"down",distance:12,className:"floating-tooltip",children:(0,o.jsx)(YO,{onClick:g,className:m()({disabled:c}),children:p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f7,{size:20,className:"loading-icon"}),(0,o.jsx)("span",{className:"text",children:I18N.TextToolbar.code.converting})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(IR,{size:20}),(0,o.jsx)("span",{className:"text",children:I18N.TextToolbar.code.convert})]})})})};var _R=i(26880),PR=i(63405),LR=Object.defineProperty,NR=Object.defineProperties,jR=Object.getOwnPropertyDescriptors,m4=Object.getOwnPropertySymbols,x7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,C7=(e,t,n)=>t in e?LR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V5=(e,t)=>{for(var n in t||(t={}))x7.call(t,n)&&C7(e,n,t[n]);if(m4)for(var n of m4(t))b7.call(t,n)&&C7(e,n,t[n]);return e},DR=(e,t)=>NR(e,jR(t)),OR=(e,t)=>{var n={};for(var r in e)x7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m4)for(var r of m4(e))t.indexOf(r)<0&&b7.call(e,r)&&(n[r]=e[r]);return n},RR=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=OR(n,["size","spin","style"]);const p=V5(V5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",DR(V5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.2002 18.2426C19.6142 18.2428 19.9502 18.5785 19.9502 18.9926C19.9501 19.4067 19.6142 19.7424 19.2002 19.7426H4.7998C4.38572 19.7425 4.04986 19.4067 4.0498 18.9926C4.0498 18.5785 4.38568 18.2427 4.7998 18.2426H19.2002ZM13.4404 4.76997C14.1238 4.08627 15.2325 4.08631 15.916 4.76997L17.4238 6.27876C18.1067 6.96201 18.1065 8.06904 17.4238 8.7524L9.85742 16.3227C9.71688 16.4632 9.52585 16.5423 9.32715 16.5424H6.40039C5.98624 16.5424 5.6505 16.2066 5.65039 15.7924V12.8803L5.66504 12.7329C5.69391 12.5891 5.76497 12.4553 5.87012 12.3501L13.4404 4.76997ZM14.8555 5.83052C14.7579 5.73292 14.5996 5.73311 14.502 5.83052L7.15039 13.1899V15.0424H9.0166L16.3633 7.69185C16.4603 7.5942 16.4606 7.43579 16.3633 7.33833L14.8555 5.83052Z",fill:"#19191A"}))});const BR=e=>{const{dispatch:t}=e,n=()=>{t({type:"entry:aiComponent:in:edit",payload:{cid:e.widget.key}})},[r,s]=I18N.TextToolbar.code.edit_mode.split("<br/>");return(0,o.jsx)(bf.A,{title:(0,o.jsxs)(UR,{children:[(0,o.jsx)("div",{className:"title",children:r}),(0,o.jsx)("div",{className:"subtitle",children:s})]}),onClick:n,children:(0,o.jsx)(RR,{size:24})})},UR=E.Ay.div.withConfig({displayName:"CodeVisualEditor__StyledTip",componentId:"sc-1eeg0wl-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;.title{font-weight:500;}.subtitle{font-size:11px;color:",";font-weight:400;}"],e=>e.theme.color_text_L3),FR=()=>[{component:oR},{component:nR},{type:"VSeparator",component:ks.So},{component:yR},{component:dR}],VR=()=>[{component:PR.u4}],zR=()=>[{component:_R.s,getMiddleProps:e=>({onSubmit:async n=>{await e.dispatch({type:"entry:aiComponent:float-bar:chat-ai-send",payload:{userContent:n,editingAIComponentInfo:{key:e.widget.key},type:"edit"}})}})},{component:BR},{component:TR}],WR=()=>[{component:XO}],HR=e=>{const n=(0,a.d4)(Ih.G1)[e.widget.key]||{},{type:r="common"}=n;return(r==="loading"?WR():r==="result"?FR():r==="edit-html"?VR():zR()).map(c=>{var d;return(0,o.jsx)(c.component,{...e,...(d=c.getMiddleProps)==null?void 0:d.call(c,e)},c.component.name)})},GR=e=>({controlConfig:[{component:HR}]});var zm=i(30523),td=i(9680);const ZR=E.Ay.div.withConfig({displayName:"styles__StyledButtonHeightContent",componentId:"sc-s81i55-0"})(["display:flex;.title{width:100%;height:26px;display:flex;align-items:center;color:",";font-weight:500;font-size:12px;}.heights{display:flex;align-items:center;margin-bottom:8px;.height-opt{width:46px;height:28px;border-radius:6px;margin-right:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:last-child{margin-right:0;}&.is-active{background:",";}&:not(.is-active):hover{background:",";}}}.size-settings{display:flex;align-items:center;flex-direction:column;width:100%;.box{width:100%;display:flex;align-items:center;justify-content:space-between;height:36px;span{font-size:12px;color:",";line-height:16px;}.font-size-container{width:60px;.font-size-input{+ .toolbar-dropdown-opener{.var-tag{margin-left:0;}}}}.button-input,.input.input-number{width:60px !important;height:28px;display:flex;align-items:center;border-radius:6px;",";input{margin-left:0;padding-left:12px;}.arrow{cursor:pointer;transform:rotate(-90deg);margin-right:7px;path{stroke:",";}}&.has-menu{input{width:calc(100% - 14px);}}}.var-input-container{width:60px !important;height:28px;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,Nv.I,e=>e.theme.color_text_L1),KR=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.font-size-input-menu,.icon-size-input-menu{margin-left:78px;}}}"]),YR=(0,l.memo)(e=>{var t,n;const{config:r,dropdownPosition:s,widget:c,textFontInfo:d,onChange:p,onChangeText:g,dispatch:y}=e,{title:w}=r,{key:_,hotAttr:{type:j,w:N,h:Z,icon:Q,isLockAspect:se}}=c,{fontSize:ie,refVars:he}=d,xe={w:(0,td.xj)([c],"w"),h:(0,td.xj)([c],"h"),icon:(0,td.xj)([c],"icon"),...he},_e=(0,a.d4)(Hs.y.query.getMissFontHiKeySet).has(_),De=$m.VV.includes(j),Je=(0,a.d4)(re.lh),Ne=Je&&Je===_,pt=!_e,_t=(0,l.useRef)(null),gt=(0,l.useRef)(null),[Ct,zt]=(0,l.useState)(null),Dt=(0,l.useMemo)(()=>[{key:"extra_small",label:I18N.TextToolbar.button.height.default.extra_small,data:{fontSize:11,iconSize:12,height:28,gap:4}},{key:"small",label:I18N.TextToolbar.button.height.default.small,data:{fontSize:12,iconSize:12,height:32,gap:4}},{key:"middle",label:I18N.TextToolbar.button.height.default.middle,data:{fontSize:14,iconSize:16,height:36,gap:6}},{key:"big",label:I18N.TextToolbar.button.height.default.big,data:{fontSize:16,iconSize:18,height:40,gap:6}}],[]),sn=(0,l.useMemo)(()=>[12,14,16,24,32,48,100].map(ca=>({label:ca+"px",value:ca})),[]),Rn=(0,l.useMemo)(()=>Dt.find(ca=>{const{data:va}=ca;return va.height===Z&&va.fontSize===ie&&(Q?va.iconSize===Q.iconSize&&va.gap===Q.gap:!0)}),[Z,Q,ie,Dt]),On=(ca,va)=>{g({attr:"fontSize",value:ca,refVar:va,dispatch:y})},Lo=(ca,va,ra)=>{va==="fontSize"?On(ca,ra):["iconSize","gap"].includes(va)&&p({value:ca,attr:va,supAttr:"icon",refVar:ra,dispatch:y,selections:[c.key]})},Yo=(ca,va)=>{if(typeof ca!="number")return;const ra=ca>1?ca:1;y({type:"entry:items:set:width",payload:{width:ra,refVar:va}}),y({type:"entry:auto:show:hide:item"})},Cn=(ca,va)=>{if(typeof ca!="number")return;const ra=ca>1?ca:1;y({type:"entry:items:set:height",payload:{height:ra,refVar:va}}),y({type:"entry:auto:show:hide:item"})},hn=(0,l.useCallback)(ca=>{var va,ra;const{data:{fontSize:Jo,iconSize:$o,height:sa,gap:da}}=ca;Cn(sa,""),Lo(Jo,"fontSize","");const nr=Q?{...Q,iconSize:$o,gap:da}:{iconSize:$o,gap:da};p({value:nr,attr:"icon",dispatch:y,selections:[_]}),(va=gt.current)==null||(ra=va.close)==null||ra.call(va)},[Lo,Cn,p,Q,_,gt]),oa=(0,l.useCallback)(()=>{setTimeout(()=>{zt({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:_t==null?void 0:_t.current})})},[_t]),Ao=ca=>(0,o.jsx)(Eh.A,{className:"arrow",size:14,onClick:ca});return(0,o.jsx)(d2.A,{ref:gt,title:w,top:s==="bottom"?40:Q!=null&&Q.path?-300:-227,left:-90,onShow:oa,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:Rn?Rn.label+"-"+Z:I18N.TextToolbar.button.height.none}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsxs)(ZR,{className:"content-container button-height-options width-240",ref:_t,children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.default}),(0,o.jsx)("div",{className:"heights",children:Dt.map(ca=>(0,o.jsx)("div",{className:m()("height-opt",{"is-active":(Rn==null?void 0:Rn.key)===ca.key}),onClick:()=>hn(ca),children:ca.label},ca.key))}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.button.height.sizeText}),(0,o.jsxs)("div",{className:"size-settings",children:[(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.fontSize}),(0,o.jsx)(wg.A,{disabled:_e||!De&&Ne,fontSize:ie,refVar:xe==null?void 0:xe.fontSize,canAddVar:!0,isShowLess12:!1,isShowAddVarIcon:!1,dropdownProps:Ct,handleChange:Lo,onRenderArrow:Ao}),(0,o.jsx)(KR,{})]}),(Q==null?void 0:Q.path)&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.iconSize}),(0,o.jsx)(zm.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",menuClassName:"icon-size-input-menu",attr:"iconSize",isShowAddVarIcon:!1,value:Q==null?void 0:Q.iconSize,refVar:xe==null||(t=xe.icon)==null?void 0:t.iconSize,isNotVerify:!1,disabled:!pt,min:1,max:1e3,placeholder:"",optionList:sn,dropdownProps:Ct,onConfirm:(ca,va)=>Lo(ca,"iconSize",va),onRenderArrow:Ao})]}),(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.buttonWidth}),(0,o.jsx)(zm.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"w",isShowAddVarIcon:!1,value:se&&xe!=null&&xe.h?N:Math.round(N),refVar:xe==null?void 0:xe.w,isNotVerify:!1,disabled:!pt,min:1,max:99999,placeholder:"",dropdownProps:Ct,onConfirm:Yo})]}),(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.buttonHeight}),(0,o.jsx)(zm.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"h",isShowAddVarIcon:!1,value:se&&xe!=null&&xe.w?Z:Math.round(Z),refVar:xe==null?void 0:xe.h,isNotVerify:!1,disabled:!pt,min:1,max:99999,placeholder:"",dropdownProps:Ct,onConfirm:Cn})]}),(Q==null?void 0:Q.path)&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.gap}),(0,o.jsx)(zm.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"gap",isShowAddVarIcon:!1,value:Q==null?void 0:Q.gap,refVar:xe==null||(n=xe.icon)==null?void 0:n.gap,isNotVerify:!1,disabled:!pt,min:1,max:1e3,placeholder:"",dropdownProps:Ct,onConfirm:(ca,va)=>Lo(ca,"gap",va)})]})]})]})})});var XR=i(71181);const QR=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,editorState:s,getTextV1:c,setTextV1:d,dispatch:p}=e,{title:g}=t,{hotAttr:{stateType:y}}=r,w=(0,l.useRef)(null),{activeColorItem:_,handleChangeStateType:j}=(0,XR.d)({widget:r,editorState:s,getTextV1:c,setTextV1:d,dispatch:p}),N=(0,l.useMemo)(()=>[{key:"default",label:I18N.TextToolbar.button.stateType.default},{key:"hover",label:I18N.TextToolbar.button.stateType.hover},{key:"active",label:I18N.TextToolbar.button.stateType.active},{key:"disabled",label:I18N.TextToolbar.button.stateType.disabled}],[]),Z=(0,l.useMemo)(()=>{const se=N.find(ie=>ie.key===y);return!se||_!=null&&_.isCustomize?I18N.TextToolbar.button.stateType.none:se.label},[N,y,_]),Q=se=>{var ie,he;j(se),(ie=w.current)==null||(he=ie.close)==null||he.call(ie)};return(0,o.jsx)(d2.A,{ref:w,title:g,top:n==="bottom"?40:-135,left:-29,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:Z}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container state-type-options width-140",children:N.map(se=>(0,o.jsx)(Vm.A,{value:se.key,active:y===se.key&&!(_!=null&&_.isCustomize),onClick:()=>Q(se.key),children:(0,o.jsxs)(o.Fragment,{children:[y===se.key&&!(_!=null&&_.isCustomize)&&(0,o.jsx)(Et.C,{name:"draft/check",className:"draft-check"}),(0,o.jsx)("span",{className:"option-title",children:se.label})]})},se.key))})})});var w7=i(75661);const JR=()=>[{component:ks.s4,styleConfig:{title:I18N.TextToolbar.button.styleType.title}},{type:Pp.Appear,component:QR,styleConfig:{title:I18N.TextToolbar.button.stateType.title}},{component:YR,styleConfig:{title:I18N.TextToolbar.button.height.title},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{hotAttr:{type:r}}=t;return{textFontInfo:cm.sE[lm.s.TextFontPanel][r]({...e,selectedItems:[t]}),onChangeText:d=>{let{attr:p,value:g,refVar:y}=d;Fm({attr:p,value:g,refVar:y,dispatch:n})},onChange:zf}}},F2,{type:Pp.Appear,component:ks.jo,styleConfig:{title:I18N.TextToolbar.button.color.title}},F2,d5(),p5(),Wg(),{component:ks.In,styleConfig:{title:I18N.SettingPanel.icon,source:w7.Z.buttonIconWidgetSettingPanel},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{key:r,hotAttr:{icon:s}}=t;return{icon:s,onSetCurrentNodeIcon:(p,g)=>{const{iconName:y}=(0,x3.RU)(p),{path:w,view_box:_}=p,j=s?{...s,path:w,viewBox:_,iconName:y}:{path:w,viewBox:_,iconName:y,iconSize:12,gap:4,isMultiColorIcon:g,position:"left"};n({type:"entry:widget:change",payload:{flatChgList:[{key:r,hotAttr:{icon:j}}]}}),n({type:"entry:auto:show:hide:item"})},onChangePosition:p=>{const g=p==="none"?{path:"",viewBox:""}:{position:p},y=s?{...s,...g}:g;n({type:"entry:widget:change",payload:{flatChgList:[{key:r,hotAttr:{icon:y}}]}}),n({type:"entry:auto:show:hide:item"})}}}},F2,u5(),m5()],qR=e=>{const t=JR(),{textRefStyleKey:n}=e,r=n?t.slice(0,t.length-1).concat([h5()]).concat(t.slice(t.length-1)):t;return{getCommonProps:s=>dm(s),controlConfig:r}};var $R=Object.defineProperty,eB=Object.defineProperties,tB=Object.getOwnPropertyDescriptors,f4=Object.getOwnPropertySymbols,S7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,M7=(e,t,n)=>t in e?$R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z5=(e,t)=>{for(var n in t||(t={}))S7.call(t,n)&&M7(e,n,t[n]);if(f4)for(var n of f4(t))A7.call(t,n)&&M7(e,n,t[n]);return e},nB=(e,t)=>eB(e,tB(t)),oB=(e,t)=>{var n={};for(var r in e)S7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&f4)for(var r of f4(e))t.indexOf(r)<0&&A7.call(e,r)&&(n[r]=e[r]);return n},aB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=oB(n,["size","spin","style"]);const p=z5(z5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",nB(z5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M3.65326 7.14335C3.36037 6.85046 3.36037 6.37558 3.65326 6.08269L5.77458 3.96137C6.06748 3.66848 6.54235 3.66848 6.83524 3.96137L8.95656 6.08269C9.24946 6.37558 9.24946 6.85046 8.95656 7.14335C8.66367 7.43624 8.1888 7.43624 7.8959 7.14335L7.06663 6.31408L7.06663 17.6859L7.8959 16.8566C8.1888 16.5637 8.66367 16.5637 8.95656 16.8566C9.24946 17.1495 9.24946 17.6243 8.95656 17.9172L6.83524 20.0386C6.54235 20.3315 6.06748 20.3315 5.77458 20.0386L3.65326 17.9172C3.36037 17.6243 3.36037 17.1495 3.65326 16.8566C3.94616 16.5637 4.42103 16.5637 4.71392 16.8566L5.56663 17.7093L5.56663 6.29064L4.71392 7.14335C4.42103 7.43624 3.94616 7.43624 3.65326 7.14335Z",fill:"#19191A"}),l.createElement("path",{d:"M10.5664 5.74951C10.5664 5.3353 10.9022 4.99951 11.3164 4.99951H19.8164C20.2306 4.99951 20.5664 5.3353 20.5664 5.74951C20.5664 6.16373 20.2306 6.49951 19.8164 6.49951H11.3164C10.9022 6.49951 10.5664 6.16373 10.5664 5.74951Z",fill:"#19191A"}),l.createElement("path",{d:"M11.3164 8.99951C10.9022 8.99951 10.5664 9.3353 10.5664 9.74951C10.5664 10.1637 10.9022 10.4995 11.3164 10.4995H19.8164C20.2306 10.4995 20.5664 10.1637 20.5664 9.74951C20.5664 9.3353 20.2306 8.99951 19.8164 8.99951H11.3164Z",fill:"#19191A"}),l.createElement("path",{d:"M10.5664 13.7495C10.5664 13.3353 10.9022 12.9995 11.3164 12.9995H19.8164C20.2306 12.9995 20.5664 13.3353 20.5664 13.7495C20.5664 14.1637 20.2306 14.4995 19.8164 14.4995H11.3164C10.9022 14.4995 10.5664 14.1637 10.5664 13.7495Z",fill:"#19191A"}),l.createElement("path",{d:"M11.3164 16.9593C10.9022 16.9593 10.5664 17.2951 10.5664 17.7093C10.5664 18.1235 10.9022 18.4593 11.3164 18.4593H19.8164C20.2306 18.4593 20.5664 18.1235 20.5664 17.7093C20.5664 17.2951 20.2306 16.9593 19.8164 16.9593H11.3164Z",fill:"#19191A"}))});const rB=()=>{const e=u5();return[h5(),{type:Pp.Text,component:ks.ay,styleConfig:{title:I18N.TextToolbar.fontFamily.title},getMiddleProps:t=>{const{widget:n,widget:{hotAttr:{type:r}}}=t;return{textInfo:cm.sE[lm.s.TextFontPanel][r]({...t,selectedItems:[n]}),onChange:d=>{let{value:p,attr:g,refVar:y,dispatch:w,isFakeOverride:_}=d;Fm({value:p,attr:g,refVar:y,dispatch:w,isFakeOverride:_})}}}},{...Wf(),type:Pp.Text},{type:"VSeparator",component:ks.So},{type:Pp.Text,component:ks.OS,styleConfig:{title:I18N.TextToolbar.button.color.title},getMiddleProps:t=>{const{widget:n,isTextEditing:r,hasMissFontHi:s,dispatch:c}=t,{hotAttr:{type:d}}=n,p=cm.sE[lm.s.TextFontPanel][d]({...t,selectedItems:[n]}),{textColor:g,supAttr:y}=p;return{color:g,attr:"textColor",supAttr:y,disabled:!!s,canOpenLib:!r,canCreateColorRef:!r,getMode:j=>j&&!r?"input":"",onChange:j=>{const N=(0,$c.t0)(j);Fm({value:N,attr:"textColor",refVar:"",dispatch:c})}}}},m5(),{type:Pp.Text,component:ks.cV,styleConfig:{title:I18N.TextToolbar.style0}},{...e,styleConfig:{...e.styleConfig,icon:(0,o.jsx)(aB,{size:24}),title:I18N.TextToolbar.font.spacing.title,isShowFontLib:!1,isShowFamily:!1,isShowText:!1,isShowSpacing:!0}},{type:"VSeparator",component:ks.So},f5()]},iB=e=>{const t=rB();return{getCommonProps:n=>dm(n),controlConfig:t}};var sB=Object.defineProperty,lB=Object.defineProperties,cB=Object.getOwnPropertyDescriptors,g4=Object.getOwnPropertySymbols,k7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,I7=(e,t,n)=>t in e?sB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W5=(e,t)=>{for(var n in t||(t={}))k7.call(t,n)&&I7(e,n,t[n]);if(g4)for(var n of g4(t))E7.call(t,n)&&I7(e,n,t[n]);return e},dB=(e,t)=>lB(e,cB(t)),pB=(e,t)=>{var n={};for(var r in e)k7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&g4)for(var r of g4(e))t.indexOf(r)<0&&E7.call(e,r)&&(n[r]=e[r]);return n},uB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=pB(n,["size","spin","style"]);const p=W5(W5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",dB(W5({ref:t,style:p},d),{width:"64",height:"63",viewBox:"0 0 64 63",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2868_1177)"},l.createElement("rect",{width:"64",height:"62.67",rx:"2",fill:"white"}),l.createElement("path",{d:"M1 1L63 62",stroke:"#DEDFE0",strokeLinecap:"round"}),l.createElement("path",{d:"M63 1L1 62",stroke:"#DEDFE0",strokeLinecap:"round"})),l.createElement("rect",{x:"0.5",y:"0.5",width:"63",height:"61.67",rx:"1.5",stroke:"#DEDFE0"}),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2868_1177"},l.createElement("rect",{width:"64",height:"62.67",rx:"2",fill:"white"}))))}),hB=i(55514);const mB=()=>{const e=(0,a.d4)(ht.oE),t=(0,a.Pj)();return{handleGetImageData:async(r,s)=>{e||await(0,g3._)();const c=t.getState(),d=(0,ht.ld)(c);let p;if(d.length){var g;const{tab:he,imgs:xe}=d[0];xe.length&&(g=xe[0])!=null&&g.length&&(p=(0,Xh.Kb)(he,xe[0]))}if(!p)return;const y=(0,Lf.BL)(p),{image:w,image:{imageRectOriginalWidth:_,imageRectOriginalHeight:j}}=y,N=(0,hB.Z)({w:r,h:s,imageRectOriginalWidth:_,imageRectOriginalHeight:j}),Z=N.imageRectCenterX,Q=N.imageRectCenterY,se=N.imageRectWidth,ie=N.imageRectHeight;return{...y,image:{...w,imageRectCenterX:Z,imageRectCenterY:Q,imageRectWidth:se,imageRectHeight:ie}}}}},fB=E.Ay.div.withConfig({displayName:"styles__StyledImageTypeSelectContent",componentId:"sc-qj0gg7-0"})(["&.image-type-select-options.width-240{display:flex;flex-direction:row;align-items:center;padding:6px;}.type-option{width:72px;height:72px;border-radius:6px;padding:4px;margin-right:6px;cursor:pointer;.inner{width:100%;height:100%;border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;}img{width:100%;}&.image_placeholder{.inner{background:",";svg{path[fill]{fill:",";}}}}&:not(.is-active):hover{outline:1.5px solid ",";}&.is-active{outline:1.5px solid ",";}&:last-child{margin-right:0;}}"],e=>e.theme.color_navigation_active,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_select01,e=>e.theme.color_btn_primary_normal),gB=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,dispatch:s}=e,{title:c}=t,{hotAttr:d,hotAttr:{type:p,image:g,w:y,h:w}}=r,{handleGetImageData:_}=mB(),j=(0,l.useRef)(null),N=(0,l.useMemo)(()=>[{key:"high_fidelity_image",label:I18N.TextToolbar.image.typeSelect.high_fidelity_image,icon:(0,o.jsx)("img",{src:"/res-img/org/hot/7.jpg",alt:""})},{key:"image_placeholder",label:I18N.TextToolbar.image.typeSelect.image_placeholder,icon:(0,o.jsx)(Kg,{size:24})},{key:"universal_placeholder",label:I18N.TextToolbar.image.typeSelect.universal_placeholder,icon:(0,o.jsx)(uB,{size:64})}],[]),Z=(0,l.useMemo)(()=>{if(p===ne.x.WPlaceholder)return"universal_placeholder";if(p===ne.x.WImage)return g!=null&&g.imageRef?"high_fidelity_image":"image_placeholder"},[p,g]),Q=(0,l.useMemo)(()=>{const ie=N.find(he=>he.key===Z);return ie?ie.label:I18N.TextToolbar.none},[Z,N]),se=async ie=>{var he,xe;if(ie===Z)return;const{name:Se,zIndex:_e,x:De,y:Je,w:Ne,h:pt,r:_t,opacity:gt,isLock:Ct,isVisible:zt,isLockAspect:Dt,fixPosTo:sn,stickyOffset:Rn,interactions:On,refVars:Lo}=d,Yo={name:Se,zIndex:_e,x:De,y:Je,w:Ne,h:pt,r:_t,opacity:gt,isLock:Ct,isVisible:zt,isLockAspect:Dt,fixPosTo:sn,stickyOffset:Rn,interactions:On,refVars:Lo};let Cn;switch(ie){case"high_fidelity_image":{const hn=await _(y,w);if(!hn)break;if(p===ne.x.WImage){const{image:oa,flip:Ao}=hn;Cn={...d,type:ne.x.WImage,image:oa,flip:Ao}}else Cn={...hn,type:ne.x.WImage,...Yo};break}case"image_placeholder":{const hn=(0,$u.gu)({type:ne.x.WImage});p===ne.x.WPlaceholder?Cn={...hn,type:ne.x.WImage,...Yo}:Cn={...d,type:ne.x.WImage,image:hn.image,flip:hn.flip};break}case"universal_placeholder":{Cn={...(0,$u.gu)({type:ne.x.WPlaceholder}),type:ne.x.WPlaceholder,...Yo};break}}Cn&&(s({type:"entry:widget:change",payload:{flatChgList:[{key:r.key,hotAttr:Cn}]}}),s({type:"entry:auto:show:hide:item"}),(he=j.current)==null||(xe=he.close)==null||xe.call(he))};return(0,o.jsx)(d2.A,{ref:j,title:c,top:n==="bottom"?40:-91,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:Q}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)(fB,{className:"content-container image-type-select-options width-240",children:N.map(ie=>(0,o.jsx)(Os.A,{className:"floating-tooltip",content:ie.label,direction:"down",distance:12,children:(0,o.jsx)("div",{className:m()("type-option",ie.key,{"is-active":Z===ie.key}),onClick:()=>se(ie.key),children:(0,o.jsx)("div",{className:"inner",children:ie.icon})})},ie.key))})})});var yB=Object.defineProperty,vB=Object.defineProperties,xB=Object.getOwnPropertyDescriptors,y4=Object.getOwnPropertySymbols,T7=Object.prototype.hasOwnProperty,_7=Object.prototype.propertyIsEnumerable,P7=(e,t,n)=>t in e?yB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H5=(e,t)=>{for(var n in t||(t={}))T7.call(t,n)&&P7(e,n,t[n]);if(y4)for(var n of y4(t))_7.call(t,n)&&P7(e,n,t[n]);return e},bB=(e,t)=>vB(e,xB(t)),CB=(e,t)=>{var n={};for(var r in e)T7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&y4)for(var r of y4(e))t.indexOf(r)<0&&_7.call(e,r)&&(n[r]=e[r]);return n},wB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=CB(n,["size","spin","style"]);const p=H5(H5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",bB(H5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M7.25 10.0298C7.66421 10.0298 8 10.3656 8 10.7798C8 11.194 7.66421 11.5298 7.25 11.5298H6C5.72386 11.5298 5.5 11.7537 5.5 12.0298L5.5 18.0298C5.5 18.306 5.72386 18.5298 6 18.5298H18C18.2761 18.5298 18.5 18.306 18.5 18.0298V12.0298C18.5 11.7537 18.2761 11.5298 18 11.5298H16.75C16.3358 11.5298 16 11.194 16 10.7798C16 10.3656 16.3358 10.0298 16.75 10.0298H18C19.1046 10.0298 20 10.9253 20 12.0298V18.0298C20 19.1344 19.1046 20.0298 18 20.0298H6C4.89543 20.0298 4 19.1344 4 18.0298V12.0298C4 10.9253 4.89543 10.0298 6 10.0298H7.25Z",fill:"#19191A"}),l.createElement("path",{d:"M14.6506 8.43253L12.7479 6.5298V15.2822C12.7479 15.6965 12.4121 16.0322 11.9979 16.0322C11.5836 16.0322 11.2479 15.6965 11.2479 15.2822V6.53195L9.34728 8.43253C9.05438 8.72542 8.57951 8.72542 8.28662 8.43253C7.99372 8.13963 7.99372 7.66476 8.28662 7.37187L11.4686 4.18988C11.7615 3.89699 12.2364 3.89699 12.5293 4.18988L15.7112 7.37187C16.0041 7.66476 16.0041 8.13963 15.7112 8.43253C15.4183 8.72542 14.9435 8.72542 14.6506 8.43253Z",fill:"#19191A"}))}),SB=Object.defineProperty,AB=Object.defineProperties,kB=Object.getOwnPropertyDescriptors,v4=Object.getOwnPropertySymbols,L7=Object.prototype.hasOwnProperty,N7=Object.prototype.propertyIsEnumerable,j7=(e,t,n)=>t in e?SB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G5=(e,t)=>{for(var n in t||(t={}))L7.call(t,n)&&j7(e,n,t[n]);if(v4)for(var n of v4(t))N7.call(t,n)&&j7(e,n,t[n]);return e},EB=(e,t)=>AB(e,kB(t)),IB=(e,t)=>{var n={};for(var r in e)L7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v4)for(var r of v4(e))t.indexOf(r)<0&&N7.call(e,r)&&(n[r]=e[r]);return n},TB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=IB(n,["size","spin","style"]);const p=G5(G5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",EB(G5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.17156 13.7679C8.87867 14.0608 8.87867 14.5356 9.17156 14.8285C9.46445 15.1214 9.93933 15.1214 10.2322 14.8285L10.5858 14.475C10.8787 14.1821 10.8787 13.7072 10.5858 13.4143C10.2929 13.1214 9.81801 13.1214 9.52511 13.4143L9.17156 13.7679Z",fill:"#19191A"}),l.createElement("path",{d:"M11.2929 11.6465C11 11.9394 11 12.4143 11.2929 12.7072C11.5858 13.0001 12.0606 13.0001 12.3535 12.7072L12.7071 12.3537C13 12.0608 13 11.5859 12.7071 11.293C12.4142 11.0001 11.9393 11.0001 11.6464 11.293L11.2929 11.6465Z",fill:"#19191A"}),l.createElement("path",{d:"M13.7678 9.17167C14.0606 8.87878 14.5355 8.87878 14.8284 9.17167C15.1213 9.46457 15.1213 9.93944 14.8284 10.2323L14.4749 10.5859C14.182 10.8788 13.7071 10.8788 13.4142 10.5859C13.1213 10.293 13.1213 9.81812 13.4142 9.52523L13.7678 9.17167Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4.25L6 6H4.25C3.83579 6 3.5 6.33579 3.5 6.75C3.5 7.16421 3.83579 7.5 4.25 7.5H6V16C6 17.1046 6.89543 18 8 18H16.5V19.75C16.5 20.1642 16.8358 20.5 17.25 20.5C17.6642 20.5 18 20.1642 18 19.75V18H19.75C20.1642 18 20.5 17.6642 20.5 17.25C20.5 16.8358 20.1642 16.5 19.75 16.5H18V8C18 6.89543 17.1046 6 16 6H7.5L7.5 4.25C7.5 3.83579 7.16421 3.5 6.75 3.5C6.33579 3.5 6 3.83579 6 4.25ZM7.5 7.5H16C16.2761 7.5 16.5 7.72386 16.5 8V16.5H8C7.72386 16.5 7.5 16.2761 7.5 16V7.5Z",fill:"#19191A"}))}),D7=i(99917);const _B=()=>{const e=f5("image");return[{component:gB,styleConfig:{className:"draft-image-type-select",title:I18N.TextToolbar.image.typeSelect.title}},{component:ks.c$,styleConfig:{icon:(0,o.jsx)(Kg,{size:24}),title:I18N.TextToolbar.image.imagePortal.title},getMiddleProps:t=>{const{widget:n,dispatch:r}=t;return{onClick:()=>{const{hotAttr:{image:c}}=n;let d=_0.S.Image;if(c!=null&&c.imageRef){const p=sdkStore.getHotItem(c.imageRef);if(p){const{hotAttr:{extData:g}}=p;g.includes("stickers")&&(d=_0.S.Sticker)}}r({type:"modal:update:state",payload:{imageModal:{isOpen:!0,source:d}}})}}}},{component:ks.c$,styleConfig:{icon:(0,o.jsx)(wB,{size:24}),title:I18N.TextToolbar.image.upload.title,isShowUploadFile:!0},getMiddleProps:t=>{const{isExperience:n,isLoggedExperience:r,rootProject:s,currentUser:c,currentOrg:d,dispatch:p}=t;return{onClick:y=>{if(n||r){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,x5.i3)({files:[y],rootProject:s,callback:w=>{p({type:"entry:items:set:asset",payload:{asset:w}}),p({type:"entry:auto:show:hide:item"})},isFilterSvg:!1},c,d)}}}},{type:"VSeparator",component:ks.So},{component:ks.c$,styleConfig:{icon:(0,o.jsx)(TB,{size:24}),title:I18N.TextToolbar.image.cut.title},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:edit",payload:{operationType:D7.bl.cutting}}),n({type:"entry:image-view:cutting"})}}}},d5(),p5(),Wg(),{type:"VSeparator",component:ks.So},e]},O7=e=>{const t=_B(),{imageRef:n,imageClipType:r}=e,s=r===D7.Mg.circular,c=(n==null?void 0:n.length)>0?s?t.slice(0,5).concat(t.slice(6)):t:t.slice(0,4).concat(t.slice(5));return{getCommonProps:d=>dm(d),controlConfig:c}};var PB=i(73681),LB=i(70829),NB=i(59098),jB=i(35658),DB=i(31254);const OB=E.Ay.div.withConfig({displayName:"styles__StyledShapeTypeSelectContent",componentId:"sc-1kip40s-0"})(["&.shape-type-select-options.width-240{display:grid;grid-template-columns:repeat(auto-fill,64px);align-items:center;gap:8px 12px;padding:12px;}.type-option{width:64px;height:64px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden;&:not(.is-active):hover{outline:1.5px solid ",";}&.is-active{outline:1px solid ",";}svg{rect[fill],path[fill]{fill:#fff;}rect[stroke],path[stroke]{stroke:",";}}}"],e=>e.theme.color_bg_select01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L3),RB=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,dispatch:s}=e,{title:c}=t,{hotAttr:d,hotAttr:{type:p}}=r,g=(0,l.useRef)(null),y=(0,l.useMemo)(()=>[{key:ne.x.WRect,label:I18N.w.wRect,icon:(0,o.jsx)(PB.A,{size:64})},{key:ne.x.WOval,label:I18N.w.wOval,icon:(0,o.jsx)(LB.A,{size:64})},{key:ne.x.WTriangle,label:I18N.w.triangleb,icon:(0,o.jsx)(NB.A,{size:64})},{key:ne.x.WStar,label:I18N.w.star,icon:(0,o.jsx)(jB.A,{size:64})},{key:ne.x.WPolygon,label:I18N.w.polygon,icon:(0,o.jsx)(DB.A,{size:64})}],[]),w=(0,l.useMemo)(()=>{const Z=y.find(Q=>Q.key===p);return Z?Z.label:I18N.TextToolbar.none},[p,y]),_=()=>{var Z,Q;if(p===ne.x.WStar)return d==null||(Z=d.star)==null?void 0:Z.cornerRadius;if(p===ne.x.WPolygon)return d==null||(Q=d.polygon)==null?void 0:Q.cornerRadius;if(d&&"borderRadius"in d)return d.borderRadius},j=()=>{var Z,Q,se;return p===ne.x.WStar?d==null||(Z=d.refVars)==null||(Z=Z.star)==null?void 0:Z.cornerRadius:p===ne.x.WPolygon?d==null||(Q=d.refVars)==null||(Q=Q.polygon)==null?void 0:Q.cornerRadius:d==null||(se=d.refVars)==null?void 0:se.borderRadius},N=async(Z,Q)=>{var se,ie;if(Z.stopPropagation(),Q===p)return;const he=j(),xe=_(),Se=typeof xe=="object"?xe.radiusTL:xe;let _e=d.refVars,De;switch(Q){case ne.x.WRect:{De={...d,type:Q,borderRadius:xe,borderVisibility:{bdrIsVisibleT:!0,bdrIsVisibleL:!0,bdrIsVisibleB:!0,bdrIsVisibleR:!0}},he&&(_e==null||delete _e.star,_e==null||delete _e.polygon,De={...De,refVars:{..._e,borderRadius:he}});break}case ne.x.WOval:{De={...d,type:Q,borderRadius:xe},he&&(_e==null||delete _e.star,_e==null||delete _e.polygon,De={...De,refVars:{..._e,borderRadius:he}});break}case ne.x.WTriangle:{De={...d,type:Q,borderRadius:Se},he&&(_e==null||delete _e.star,_e==null||delete _e.polygon,De={...De,refVars:{..._e,borderRadius:he}});break}case ne.x.WStar:{var Je;De={...d,type:Q,star:{sideNum:(d==null||(Je=d.polygon)==null?void 0:Je.sideNum)||6,cornerRadius:Se,radius:50}},he&&(_e==null||delete _e.borderRadius,_e==null||delete _e.polygon,De={...De,refVars:{..._e,star:{...(_e==null?void 0:_e.star)||{},...(_e==null?void 0:_e.polygon)||{},cornerRadius:he}}});break}case ne.x.WPolygon:{var Ne;De={...d,type:Q,polygon:{sideNum:(d==null||(Ne=d.star)==null?void 0:Ne.sideNum)||6,cornerRadius:Se}},he&&(_e==null||delete _e.borderRadius,_e==null||delete _e.star,De={...De,refVars:{..._e,polygon:{...(_e==null?void 0:_e.star)||{},...(_e==null?void 0:_e.polygon)||{},cornerRadius:he}}});break}}De&&(s({type:"entry:widget:change",payload:{flatChgList:[{key:r.key,hotAttr:De}]}}),s({type:"entry:auto:show:hide:item"}),(se=g.current)==null||(ie=se.close)==null||ie.call(se))};return(0,o.jsx)(d2.A,{ref:g,title:c,top:n==="bottom"?40:-167,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:w}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)(OB,{className:"content-container shape-type-select-options width-240",children:y.map(Z=>(0,o.jsx)(Os.A,{className:"floating-tooltip",content:Z.label,direction:"down",distance:12,children:(0,o.jsx)("div",{className:m()("type-option",{"is-active":p===Z.key}),onClick:Q=>N(Q,Z.key),children:Z.icon})},Z.key))})})}),R7=()=>{const e=f5();return[{component:RB,styleConfig:{title:I18N.TextToolbar.shape.typeSelect.title}},{component:ks.s4,styleConfig:{title:I18N.TextToolbar.shape.styleType.title}},{type:"VSeparator",component:ks.So},{type:Pp.Appear,component:ks.jo,styleConfig:{title:I18N.TextToolbar.button.color.title,isShowDefaultColors:!1}},{type:"VSeparator",component:ks.So},d5(),p5(),Wg(),{type:"VSeparator",component:ks.So},u5(),m5(),{type:"VSeparator",component:ks.So},e]},x4=e=>{const t=R7(),{textRefStyleKey:n}=e,r=n?t.slice(0,t.length-3).concat([h5()]).concat(t.slice(t.length-3)):t;return{getCommonProps:s=>dm(s),controlConfig:r}},BB=e=>{const t=R7();return{getCommonProps:n=>dm(n),controlConfig:t.slice(0,5).concat(t.slice(6))}};var UB=Object.defineProperty,FB=Object.defineProperties,VB=Object.getOwnPropertyDescriptors,b4=Object.getOwnPropertySymbols,B7=Object.prototype.hasOwnProperty,U7=Object.prototype.propertyIsEnumerable,F7=(e,t,n)=>t in e?UB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z5=(e,t)=>{for(var n in t||(t={}))B7.call(t,n)&&F7(e,n,t[n]);if(b4)for(var n of b4(t))U7.call(t,n)&&F7(e,n,t[n]);return e},zB=(e,t)=>FB(e,VB(t)),WB=(e,t)=>{var n={};for(var r in e)B7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&b4)for(var r of b4(e))t.indexOf(r)<0&&U7.call(e,r)&&(n[r]=e[r]);return n},HB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=WB(n,["size","spin","style"]);const p=Z5(Z5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",zB(Z5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.99999 6.75C9.99999 7.16421 9.6642 7.5 9.24999 7.5L7.26555 7.5C7.01339 7.5 6.80069 7.68777 6.76941 7.93798L5.76941 15.938C5.73211 16.2364 5.9648 16.5 6.26555 16.5L9.24999 16.5C9.6642 16.5 9.99999 16.8358 9.99999 17.25C9.99999 17.6642 9.6642 18 9.24999 18L6.26555 18C5.06256 18 4.13178 16.9456 4.281 15.7519L5.281 7.75193C5.4061 6.75107 6.25691 6 7.26555 6L9.24999 6C9.6642 6 9.99999 6.33579 9.99999 6.75Z",fill:"#19191A"}),l.createElement("path",{d:"M12.7499 4.5C12.7499 4.08579 12.4141 3.75 11.9999 3.75C11.5856 3.75 11.2499 4.08579 11.2499 4.5L11.2499 19.5C11.2499 19.9142 11.5856 20.25 11.9999 20.25C12.4141 20.25 12.7499 19.9142 12.7499 19.5V4.5Z",fill:"#19191A"}),l.createElement("path",{d:"M18.2306 15.938L17.2306 7.93798C17.1993 7.68777 16.9866 7.5 16.7344 7.5H14.75C14.3358 7.5 14 7.16421 14 6.75C14 6.33579 14.3358 6 14.75 6L16.7344 6C17.7431 6 18.5939 6.75108 18.719 7.75193L19.719 15.7519C19.8682 16.9456 18.9374 18 17.7344 18L14.75 18C14.3358 18 14 17.6642 14 17.25C14 16.8358 14.3358 16.5 14.75 16.5L17.7344 16.5C18.0352 16.5 18.2679 16.2364 18.2306 15.938Z",fill:"#B7B9BD"}))}),GB=Object.defineProperty,ZB=Object.defineProperties,KB=Object.getOwnPropertyDescriptors,C4=Object.getOwnPropertySymbols,V7=Object.prototype.hasOwnProperty,z7=Object.prototype.propertyIsEnumerable,W7=(e,t,n)=>t in e?GB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K5=(e,t)=>{for(var n in t||(t={}))V7.call(t,n)&&W7(e,n,t[n]);if(C4)for(var n of C4(t))z7.call(t,n)&&W7(e,n,t[n]);return e},YB=(e,t)=>ZB(e,KB(t)),XB=(e,t)=>{var n={};for(var r in e)V7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&C4)for(var r of C4(e))t.indexOf(r)<0&&z7.call(e,r)&&(n[r]=e[r]);return n},QB=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=XB(n,["size","spin","style"]);const p=K5(K5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",YB(K5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 14.7495C6.25 14.3353 5.91421 13.9995 5.5 13.9995C5.08579 13.9995 4.75 14.3353 4.75 14.7495V16.2024C4.75 17.2245 5.52065 18.0821 6.53693 18.191L16.5369 19.2624C17.7191 19.3891 18.75 18.4627 18.75 17.2738L18.75 14.7495C18.75 14.3353 18.4142 13.9995 18 13.9995C17.5858 13.9995 17.25 14.3353 17.25 14.7495L17.25 17.2738C17.25 17.571 16.9923 17.8026 16.6967 17.7709L6.69673 16.6995C6.44266 16.6723 6.25 16.4579 6.25 16.2024L6.25 14.7495Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M16.6967 6.22865L6.69673 7.30008C6.44266 7.3273 6.25 7.54171 6.25 7.79723L6.25 9.24957C6.25 9.66379 5.91421 9.99957 5.5 9.99957C5.08579 9.99957 4.75 9.66379 4.75 9.24957V7.79723C4.75 6.77514 5.52065 5.9175 6.53693 5.80862L16.5369 4.73719C17.719 4.61053 18.75 5.53692 18.75 6.72581L18.75 9.24957C18.75 9.66379 18.4142 9.99957 18 9.99957C17.5858 9.99957 17.25 9.66379 17.25 9.24957L17.25 6.72581C17.25 6.42859 16.9923 6.19699 16.6967 6.22865Z",fill:"#19191A"}),l.createElement("path",{d:"M3.75 11.2496C3.33579 11.2496 3 11.5854 3 11.9996C3 12.4138 3.33579 12.7496 3.75 12.7496L20.25 12.7496C20.6642 12.7496 21 12.4138 21 11.9996C21 11.5854 20.6642 11.2496 20.25 11.2496L3.75 11.2496Z",fill:"#19191A"}))});const JB=()=>{const e=Wf();return[{component:ks.In,styleConfig:{left:ENV.IS_MO?-10:-16,title:I18N.TextToolbar.icon.replace.title,source:w7.Z.iconWidgetSettingPanel},getMiddleProps:t=>{const{widget:n,dispatch:r}=t,{hotAttr:{iconData:s}}=n;return{icon:s,onSetCurrentNodeIcon:(d,p)=>{const{iconName:g,iconDisplayName:y}=(0,x3.RU)(d);r({type:"entry:items:set:icon",payload:{icon:d,iconName:g,iconDisplayName:y,isMultiColorIcon:p}}),r({type:"entry:auto:show:hide:item"})}}}},F2,Hv(),F2,{...e,styleConfig:{...e.styleConfig,title:I18N.TextToolbar.icon.size.title,suffix:"px",options:[12,14,16,24,32,48,100],top:-219},getMiddleProps:t=>{const{widget:n,dispatch:r}=t,{key:s,hotAttr:{w:c,h:d,isLockAspect:p}}=n;return{onGetRefVar:()=>{const y=(0,td.xj)([n],"w"),w=(0,td.xj)([n],"h");return c==d&&(y||w)&&y===w?y:""},onGetCurrentSize:()=>{const y=(0,td.xj)([n],"w"),w=(0,td.xj)([n],"h");if(c===d)return y||w?y===w?c:void 0:c},onChangeFontSize:(y,w)=>{if(typeof y!="number")return;const _=y>1?y:1;sdkStore.combineMergeMark("icon-size-changed"),p&&sdkStore.updateHotAttrKV(s,"isLockAspect",!1),r({type:"entry:items:set:width",payload:{width:_,refVar:w}}),r({type:"entry:items:set:height",payload:{height:_,refVar:w}}),r({type:"entry:auto:show:hide:item"}),p&&sdkStore.updateHotAttrKV(s,"isLockAspect",!0),sdkStore.combineMerge("icon-size-changed")}}}},F2,{component:ks.c$,styleConfig:{icon:(0,o.jsx)(HB,{size:24}),className:"image-mirror-h",title:I18N.SettingPanel.horizontal_flip},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:horizontal-flip",payload:{isImage:!1}})}}}},{component:ks.c$,styleConfig:{icon:(0,o.jsx)(QB,{size:24}),className:"image-mirror-v",title:I18N.SettingPanel.vertical_flip},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:vertically-flip",payload:{isImage:!1}})}}}},F2,Wg()]},qB=e=>{const t=JB(),{isMultiColorIcon:n}=e,r=n?t.slice(0,2).concat(t.slice(3)):t;return{getCommonProps:s=>dm(s),controlConfig:r}},$B=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledCanvasSizeSelectMenu",componentId:"sc-1ieyxre-0"})(["li{list-style:none;}a{color:",";}.MenuItem{&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}}ul.SubMenu{min-width:280px;&:lang(en){min-width:280px;}li.MenuItem{a{padding-left:16px;}}}",";"],e=>e.theme.color_text_L1,pr.ZJ),eU=(0,E.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;.CanvasSizeSelectMenu .CanvasSizeSelectSubMenu .MenuItem.SelectOption a > span{margin-right:6px;}}"]),tU=e=>{let{position:t,className:n="",device:r,onSelect:s,onClose:c}=e;const d=(0,l.useCallback)(g=>{if(!s)return;const y=g.currentTarget.dataset.type,w=y==="google_nexus"?"Android":y,_=P0.v2[w];s({width:_==null?void 0:_.width,height:_==null?void 0:_.height,device:w}),c&&c()},[s,c]),p=(0,l.useCallback)(g=>{if(!c)return;const y=g.target.closest(".CanvasSizeSelectMenu"),w=g.target.closest(".CanvasSizeSelectSubMenu");y||w||c()},[c]);return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)($B,{className:m()("CanvasSizeSelectMenu",n),position:t,children:P0.a$.map((g,y)=>{let{device:w,modelList:_}=g;const j=_.length;if(j===0)return null;if(j===1){const N=_[0];return(0,o.jsx)(He.Dr,{text:(0,P0.KB)({device:w}),hotKeyText:N.key!=="customize"?[N.width+" \xD7 "+N.height]:null,dataType:N.key,className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",onClick:d},w+" -"+(y+1))}return(0,o.jsx)(He.Dr,{text:(0,P0.KB)({device:w}),className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",isAiry:!0,children:_.map(N=>{let{width:Z,height:Q,key:se}=N;const ie=se==="google_nexus"?"Android":(0,P0.d0)({model:se,device:w,isPageSize:!0}),he=se==="customize"||se==="none"?null:[Z+" \xD7 "+Q];return(0,o.jsx)(He.Dr,{className:"SelectOption",text:ie,hotKeyText:he,dataType:se,icon:se===r?(0,o.jsx)(Et.C,{name:"draft/check",className:"draft-check"}):null,onClick:d},se+" -"+(y+1))})},w+" -"+(y+1))})}),(0,o.jsx)(eU,{}),(0,o.jsx)(Jr.A,{target:document,onClick:(0,Jr.t)(p,{capture:!0})})]}):null},H7=(0,l.memo)(tU),nU=(0,E.DU)([".quick-canvas-select-menu{ul.CanvasSizeSelectSubMenu.SubMenu{min-width:300px;li.MenuItem a{padding-left:32px;.draft-check{width:16px;height:16px;position:absolute;left:8px;}}}}"]),oU=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,dispatch:s}=e,{title:c}=t,{hotAttr:{device:d,orientation:p}}=r,[g,y]=(0,l.useState)(null),w=(0,P0.d0)({model:d,isPageSize:!0}),_=(0,l.useRef)(null),j=(0,l.useRef)(null),N=(0,l.useCallback)(()=>{const se=(0,c5.v)({$ref:j,dropdownPosition:n,contentWidth:200,contentHeight:324,offset:5});y(se)},[j,n]),Z=se=>{const ie=(0,P0.$n)(se.key),he=ie?p==="landscape":!1,xe=[r.key].map(Se=>{let _e={device:se.key};if(!ie&&p==="landscape"&&(_e={..._e,orientation:"portrait"}),se.key!=="customize"){const{hotAttr:{x:De,y:Je,w:Ne,h:pt}}=sdkStore.getHotItem(Se),_t=he?se.height:se.width,gt=he?se.width:se.height,Ct={x:De-Ne/2,y:Je-pt/2};_e={..._e,x:Ct.x+_t/2,y:Ct.y+gt/2,w:_t,h:gt}}return{key:Se,hotAttr:_e}});s({type:"entry:widget:change",payload:{flatChgList:xe}})},Q=(0,l.useCallback)(se=>{var ie,he;const{device:xe}=se,Se={...P0.v2[xe],key:xe};Z(Se),(ie=_.current)==null||(he=ie.close)==null||he.call(ie)},[Z,_]);return(0,o.jsx)(d2.A,{ref:_,title:c,onShow:N,onClose:()=>y(null),trigger:(0,o.jsxs)("div",{className:"trigger-container max-width-150 has-arrow",ref:j,children:[(0,o.jsx)("span",{className:"title",children:w}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H7,{className:"quick-canvas-select-menu",device:d,position:g,onSelect:Q}),(0,o.jsx)(nU,{})]})})});var aU=i(89886),rU=i(77494);const iU=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:r,layoutInfo:s,onChange:c,dispatch:d}=e,{title:p}=t;return(0,o.jsx)(d2.A,{title:p,top:n==="bottom"?40:-152,left:-92,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:I18N.SettingPanel.design.layout}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(Eh.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container",children:(0,o.jsx)(rU.H,{title:I18N.PreferenceBar.layout,children:(0,o.jsx)("section",{type:"screen-body",children:(0,o.jsx)(aU.A,{...s,selections:[r.key],onChange:c,dispatch:d})})})})})});var sU=i(6469);const lU=()=>{const e=Hv();return[{component:oU,styleConfig:{title:I18N.TextToolbar.canvas.size.title}},F2,{...e,styleConfig:{...e.styleConfig,pIsSolidColorOnly:!0,title:I18N.TextToolbar.canvas.color.title}},F2,{component:iU,styleConfig:{title:I18N.SettingPanel.design.layout},getMiddleProps:t=>{const{widget:n}=t;return{layoutInfo:(0,sU.V)({selectedItems:[n]}),onChange:zf}}}]},cU=e=>({controlConfig:lU()}),dU=e=>(0,l.memo)(t=>{const{getCommonProps:n,controlConfig:r}=e,s=n?n(t):{};return(0,o.jsx)(o.Fragment,{children:r.map((c,d)=>{const p=c.getMiddleProps?c.getMiddleProps({...t,...s}):{};return(0,o.jsx)(c.component,{...t,...s,config:c.styleConfig,...p},d)})})}),pU={[ne.x.WSwimlane]:Cj,[ne.x.WMind]:zD,[ne.x.WTear]:t7,[ne.x.WSticky]:t7,[ne.x.WCode]:GR,[ne.x.WButton]:qR,[ne.x.WRichText]:iB,[ne.x.WImage]:O7,[ne.x.WPlaceholder]:O7,[ne.x.WRect]:x4,[ne.x.WOval]:BB,[ne.x.WTriangle]:x4,[ne.x.WStar]:x4,[ne.x.WPolygon]:x4,[ne.x.WIcon]:qB,[ne.x.Canvas]:cU},uU=(e,t)=>{const n=pU[e](t);if(!n)return null;const{textRefStyleKey:r,appearRefStyleKey:s}=t,{controlConfig:c}=n,d=nj(c,{isText:!!r,isAppear:!!s});return dU({...n,controlConfig:d})};var Y5=i(11446),G7=i(93645);const hU=-80,mU=(0,k.Mz)([re.X_,re.ER,re.$S,Hn.X.query.getIsShallowEditing,Hn.X.query.getIsDeepEditing,Hn.X.query.getSelectedCellsInfo,J.WH,J.ul,J.UN,J.g0,J.aJ,q.O4,q.Dc,ht.Xf,re.PL,re.HW,re.wA,Oe.nE,Ge.UV,q.uI,Hs.y.query.getMissFontHiKeySet,Hs.y.query.getCloudFontLocalList,re.lh,re.Mj,Ch.wb,Ch.Hh,Wc.Dw,Wc.jj,re.W4,Ih.G1,Ih.Ag],(e,t,n,r,s,c,d,p,g,y,w,_,j,N,Z,Q,se,ie,he,xe,Se,_e,De,Je,Ne,pt,_t,gt,Ct,zt,Dt)=>{var sn;let{isExperience:Rn,isLoggedExperience:On}=Ct;const Lo=ie.some(Cn=>Se.has(Cn.key)),Yo=De&&De===((sn=ie[0])==null?void 0:sn.key);return{scale:e,canvasOffset:t,viewportRect:n,swimlaneIsShallowEditing:r,swimlaneIsDeepEditing:s,selectedCellsInfo:c,editMindKey:d,selectedMindNodeKeys:p,selectedMindNodeFlagIconKey:g,selectedMindNodeImageKey:y,isShallowEditText:w,theme:_,recentlyUsedScreenMetaIcons:j,isLeftShow:N,rootProject:Z,currentUser:Q,currentOrg:se,selectedHotItem:ie[0],widgetStore:he,prefernceFlags:xe,isTextEditing:Yo,hasMissFontHi:Lo,richTextEditorState:Je,cloudFontLocalList:_e,isAutoFillPanelShow:Ne,openFrom:pt,appearRefStyle:_t,textRefStyle:gt,isExperience:Rn,isLoggedExperience:On,aiComponentFloatBarOperationMap:zt,editingAIComponentInfo:Dt}}),Z7=wv.A.getStore(),fU=e=>(Z7.subscribeToItem("selection",e),()=>{Z7.unsubscribeFromItem("selection",e)}),gU=()=>wv.s,yU=(0,l.memo)(()=>{var e,t,n;const[r,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[p,g]=(0,l.useState)({}),[y,w]=(0,l.useState)("bottom"),{scale:_,canvasOffset:j,viewportRect:N,swimlaneIsShallowEditing:Z,swimlaneIsDeepEditing:Q,selectedCellsInfo:se,theme:ie,editMindKey:he,selectedMindNodeKeys:xe,selectedMindNodeFlagIconKey:Se,selectedMindNodeImageKey:_e,isShallowEditText:De,recentlyUsedScreenMetaIcons:Je,rootProject:Ne,currentUser:pt,currentOrg:_t,selectedHotItem:gt,widgetStore:Ct,prefernceFlags:zt,isTextEditing:Dt,hasMissFontHi:sn,richTextEditorState:Rn,cloudFontLocalList:On,isAutoFillPanelShow:Lo,openFrom:Yo,appearRefStyle:Cn,textRefStyle:hn,isExperience:oa,isLoggedExperience:Ao,isLeftShow:ca,aiComponentFloatBarOperationMap:va,editingAIComponentInfo:ra}=(0,a.d4)(mU),Jo=(0,a.wA)(),$o=(0,l.useRef)(null),{key:sa,hotAttr:da}=gt,{getMenuStyle:nr}=BN(),cr=[Wt.G.QuickMenuText,Wt.G.QuickMenuImage].includes(Yo),Vr=(0,Y5.Pq)(zt,Y5.wL),yr=(0,l.useRef)(ra);(0,l.useEffect)(()=>(setTimeout(()=>hi()),window.addEventListener("resize",hi),()=>{window.removeEventListener("resize",hi)}),[_,j,sa,se]),(0,l.useEffect)(()=>{const Oi=Ct.addSdkStoreChangeListener(wi=>{let{isRemote:Ps,changedKeyList:ws}=wi;if(Ps&&ws.includes(sa)&&sa&&Ct.isTrashed(sa)){const Rs=Ct.getHotItem(sa),bl=Rs==null?void 0:Rs.hotAttr.type;bl===ne.x.WMind?Jo({type:"mind:exit:edit:state"}):bl===ne.x.WSwimlane?Jo({type:"flow:update:clear"}):Jo({type:"set:editing:cid",payload:{cid:""}})}});return()=>{Oi()}},[Ct,sa]);const pi=(0,l.useMemo)(()=>{var Oi;const wi=((Oi=$o.current)==null?void 0:Oi.clientWidth)||400;return nr(wi)},[$o,nr]);(0,kN.useSyncExternalStore)(fU,gU);const hi=()=>{var Oi,wi;if(!gt||!N)return;let Ps="bottom";const ws=((Oi=$o.current)==null?void 0:Oi.clientWidth)||400,Rs=((wi=$o.current)==null?void 0:wi.clientHeight)||42;let bl=-100,Cl=0;const{left:bd,top:Jc,width:tc,height:Id}=N,nc={x:bd,y:Jc,w:tc,h:Id};let Wa={x:0,y:0};const Cc=yr.current;if(da.type===ne.x.WTear){const el=document.querySelector('.STSticky[data-cid="'+sa+'"] div');if(el){const Zl=el.getBoundingClientRect();Wa={x:Zl.left+Zl.width/2,y:Zl.top}}}else if(da.type===ne.x.WCode&&Cc&&sa===Cc.key&&Cc.selectedElementState){const{x:el,y:Zl,h:Td,w:_d}=sdkStore.getHotBound(sa),mm=el-_d*.5,L0=Zl-Td*.5,{x:v0,y:nd,width:Dc}=Cc.selectedElementState.rect;Wa=(0,K3.mY)({x:mm+v0+Dc*.5,y:L0+nd})}else{const{x:el,y:Zl,h:Td}=sdkStore.getHotBound(sa),_d=Zl-Td*.5;Wa=(0,K3.mY)({x:el,y:_d})}bl=Wa.x-ws/2,Cl=Wa.y+hU;const kl={x:bl,y:Cl,w:ws,h:Rs};if(!EN.rw.containsRect(nc,kl))if(kl.w>nc.w||kl.h>nc.h)bl=0,Cl=-100;else{const el=nc.x-kl.x,Zl=kl.x+kl.w-(nc.x+nc.w),Td=nc.y-kl.y,_d=kl.y+kl.h-(nc.y+nc.h);el>0?bl+=el+20:Zl>0&&(bl-=Zl+20),Td>0?Cl+=Td+20:_d>0&&(Cl-=_d+20)}Cl+Rs/2-Jc>Id/2&&(Ps="top"),g({left:Math.round(bl),top:Math.round(Cl)}),w(Ps)},Hi=(0,l.useMemo)(()=>{if(da.type!==ne.x.WCode)return"";const Oi=va[sa]||{},{convertToEditableType:wi="idle",type:Ps="common"}=Oi;return Ps+"-"+wi},[va,sa,da]);(0,l.useEffect)(()=>{yr.current=ra,hi()},[Hi,ra]);const Kr=Oi=>{Jo({type:"entry:update:preference_flags",payload:{option:Y5.j9.is_fixed_proto_quick_menu,bool:Oi}})},Gi=Oi=>{var wi;Oi.preventDefault(),Oi.stopPropagation();const{pageX:Ps,pageY:ws}=Oi.nativeEvent,Rs=$o==null||(wi=$o.current)==null?void 0:wi.getBoundingClientRect();if(!Rs)return;const bl=Ps-Rs.left,Cl=ws-Rs.top;s(!1);let bd=Vr,Jc=!1,tc=0;const Id=Wa=>{var Cc;Wa.preventDefault();const kl=(0,c5.M)({left:Wa.pageX-bl,top:Wa.pageY-Cl});if(!kl)return;tc===0&&Kr(!1),tc++,s(!0),Jc=!0;const{left:el,top:Zl}=kl;g({left:Math.round(el),top:Math.round(Zl)});const Td=(Cc=document.querySelector(".quick-menu-fixed-container"))==null?void 0:Cc.getBoundingClientRect();Td&&(bd=Wa.pageX>=Td.left&&Wa.pageX<=Td.right&&Wa.pageY>=Td.top&&Wa.pageY<=Td.bottom,d(bd))},nc=Wa=>{Jc&&Kr(bd),Jc=!1,s(!1),document.removeEventListener("mousemove",Id),document.removeEventListener("mouseup",nc)};document.addEventListener("mousemove",Id),document.addEventListener("mouseup",nc)},ec=Oi=>{var wi;const{target:Ps}=Oi;!Lo||!cr||(wi=document.querySelector(".autoFillPanel-element"))!=null&&wi.contains(Ps)||Ps.closest(".ai-auto-fill")||Ps.closest(".autoFillPanelSelectScreenMenu")||Jo({type:"autoFillPanel:reset:state"})},Ul={widget:gt,dropdownPosition:Vr?"bottom":y,selectedCellsInfo:se,theme:ie,editMindKey:he,selectedMindNodeKeys:xe,isShallowEditText:De,recentlyUsedScreenMetaIcons:Je,rootProject:Ne,currentUser:pt,currentOrg:_t,isTextEditing:Dt,hasMissFontHi:sn,richTextEditorState:Rn,cloudFontLocalList:On,isAutoFillPanelShow:Lo,isExperience:oa,isLoggedExperience:Ao,isLeftShow:ca,dispatch:Jo},gs=(0,l.useMemo)(()=>{var Oi,wi,Ps;return uU(da.type,{swimlaneIsShallowEditing:Z,swimlaneIsDeepEditing:Q,selectedMindNodeKeys:xe,selectedMindNodeFlagIconKey:Se,selectedMindNodeImageKey:_e,textRefStyleKey:hn==null?void 0:hn.key,appearRefStyleKey:Cn==null?void 0:Cn.key,isMultiColorIcon:da==null||(Oi=da.iconData)==null?void 0:Oi.isMultiColorIcon,imageRef:da==null||(wi=da.image)==null?void 0:wi.imageRef,imageClipType:da==null||(Ps=da.image)==null?void 0:Ps.imageClipType})},[da.type,Z,Q,xe,Se,_e,hn==null?void 0:hn.key,Cn==null?void 0:Cn.key,da==null||(e=da.iconData)==null?void 0:e.isMultiColorIcon,da==null||(t=da.image)==null?void 0:t.imageRef,da==null||(n=da.image)==null?void 0:n.imageClipType]);return gt?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(G7.$y,{className:m()("draft-inline-toolbar"),style:Vr?pi:p,ref:$o,children:[(0,o.jsx)("div",{type:"draggable",className:m()("drag-box",{"is-dragging":r}),onMouseDown:Gi,children:(0,o.jsx)(NN,{size:14})}),gs?(0,o.jsx)(gs,{...Ul}):null,Lo&&cr&&(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(ec,{capture:!0})})]}),r&&(0,o.jsx)(G7.dV,{className:m()("quick-menu-fixed-container",{"is-active":c}),style:nr(450),children:(0,o.jsx)("span",{children:I18N.TextToolbar.quickMenu.fixedText})})]}):null}),vU=(0,k.Mz)([re.lh,Oe.p$,re.pO,Y.$W,J.ul,tl.$J,MN.tl,we.r,re.Jv,Ih.i8],(e,t,n,r,s,c,d,p,g,y)=>{let{isEditingBasket:w,isEditingMuban:_}=p;return{editingCid:e,selection:t,isDraggingItem:n,isShowFloatingToolbar:r,selectedMindNodeKeys:s,imageModal:c,editingImageNodes:d,isEditingBasket:w,isEditingMuban:_,isResizingItem:g,isShowAIComponentFloatBar:y}}),xU=[ne.x.WSwimlane,ne.x.WMind,ne.x.WSticky,ne.x.WTear,ne.x.WCode,ne.x.WButton,ne.x.WRichText,ne.x.WImage,ne.x.WPlaceholder,ne.x.WRect,ne.x.WOval,ne.x.WTriangle,ne.x.WStar,ne.x.WPolygon,ne.x.WIcon,ne.x.Canvas],bU=()=>{var e,t;const n=(0,a.d4)(vU),{selection:r,isDraggingItem:s,isShowFloatingToolbar:c,editingCid:d,imageModal:p,editingImageNodes:g,isEditingBasket:y,isEditingMuban:w,isResizingItem:_,isShowAIComponentFloatBar:j}=n;if(!c||s||r.length!==1||_)return null;const N=sdkStore.getHotItem(r[0]);if(!N)return null;const Z=N.hotAttr.type;return!xU.includes(Z)||[ne.x.WSticky,ne.x.WTear].includes(Z)&&!d||[ne.x.Canvas].includes(Z)&&N!=null&&(e=N.hotAttr)!=null&&e.asOverlay||[ne.x.Canvas].includes(Z)&&(y||w)||[ne.x.WCode].includes(Z)&&!j||[ne.x.WImage].includes(Z)&&(p!=null&&p.isOpen||g!=null&&g.length&&((t=g[0])==null?void 0:t.key)===r[0])?null:(0,o.jsx)(yU,{})},CU=()=>{const e=s=>{let{action:c,linkTitle:d,linkTarget:p,originLinkTarget:g,blockKey:y,start:w,end:_,fromType:j,widget:N}=s;const{_getEditorState:Z}=(0,_n.DT)(),Q=Z==null?void 0:Z();if(!p||!Q)return;let se=Q,ie=(0,cd.Kt)(se);const he=Q.getSelection();//! curSelection.getHasFocus() || // TODO: 需要吗,为了文本组件暂时先把它弄出去了
if(he.isCollapsed()){const Se=(0,cd.Bm)(Q.getCurrentContent(),y,w,_,g,d);if(!Se)return;se=(0,cd.N$)(Q,Se),ie=se?(0,cd.A_)(se):void 0}if(c==="unlink"){n(se,ie,j);return}let xe="add";ie&&se.getCurrentContent().getEntity(ie).get("type")==="LINK"&&(xe="edit"),t(se,ie,xe,d,p,j)},t=(s,c,d,p,g,y)=>{const{_setEditorState:w}=(0,_n.DT)(),_=(0,cd.FO)({title:p||g,target:g,targetOption:"_blank"}),j=(0,cd.nf)(s,c,d,_);j&&w(j)},n=(s,c,d)=>{const{_setEditorState:p}=(0,_n.DT)();if(c){const g=(0,cd.QF)(s,c);g&&p(g)}},r=s=>{let{action:c,linkTitle:d,linkTarget:p,fromType:g,widget:y}=s;if(c==="unlink"){(0,cd.Nc)({widget:y});return}const w=(0,cd.FO)({title:d,target:p,targetOption:"_blank"});w.target!==""&&(0,cd.eU)({widget:y,currentEntityKey:"",mode:"add",linkified:w})};return(0,l.useEffect)(()=>(T1.A.on("draft:inline-toolbar:link",e),T1.A.on("draft:inline-toolbar:link-widget",r),()=>{T1.A.off("draft:inline-toolbar:link",e),T1.A.off("draft:inline-toolbar:link-widget",r)}),[]),(0,o.jsx)("div",{style:{visibility:"hidden"}})},wU=E.Ay.header.withConfig({displayName:"styles__StyledVersionViewHeader",componentId:"sc-wr3mke-0"})(["&.version-view-header{position:absolute;left:0;top:0;width:100%;height:48px;background:",";display:flex;justify-content:space-between;align-items:center;z-index:108;box-shadow:0 1px 0 ",";padding:0 16px 0 24px;.toolbar-icon-item{width:38px;}.left-part{display:flex;align-items:center;.project-name{color:",";font-size:14px;font-weight:500;margin-right:10px;}.version-title{color:",";font-size:12px;}}.right-part{display:flex;align-items:center;color:",";.version-control-icon{color:",";margin-right:12px;}}}&.hidden{top:-60px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),SU=E.Ay.div.withConfig({displayName:"styles__StyledVersionViewModel",componentId:"sc-wr3mke-1"})(["&.version-view-model{position:absolute;width:100%;height:calc(100% - 48px);background:",";top:48px;left:0;z-index:5;.mb-loading{width:80px;height:80px;position:absolute;top:50%;left:50%;z-index:-1;margin-top:-40px;margin-left:-40px;}.version-view-iframe{width:100%;height:100%;border:none;}}&.hidden{display:none;}&.isVersionPaneShow{width:calc(100% - 241px);}"],e=>e.theme.color_bg_canvas);var Tu=i(25067),Hf=i(18183);const AU=(0,l.memo)(e=>{let{projectToken:t,projectName:n,currentViewing:r,isVersionManagementPaneShow:s,isReadOnly:c,dispatch:d}=e;if(!r)return null;let p=document.querySelector("#VERSION_VIEW_WINDOW");p||(p=document.createElement("div"),p.id="VERSION_VIEW_WINDOW",document.body.appendChild(p));const g=()=>{d({type:"versions:update",payload:{currentViewing:void 0}})};return(0,ds.createPortal)((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(kU,{projectName:n,currentViewing:r,onQuitView:g,isReadOnly:c,isVersionManagementPaneShow:s,dispatch:d}),(0,o.jsx)(EU,{projectToken:t,currentViewing:r,isVersionManagementPaneShow:s})]}),p)}),MU=(0,k.Mz)([Wc.cS,re.PL,Y.jx,re.z$],(e,t,n,r)=>{const{currentViewing:s,isVersionManagementPaneShow:c}=e,{access_token:d,name:p}=t;return{projectToken:n===Te.qi.OnlyView&&(r==null?void 0:r.access_token)||d,projectName:p,currentViewing:s,isVersionManagementPaneShow:c,isReadOnly:n===Te.qi.OnlyView}}),K7=(0,a.Ng)(e=>MU(e))(AU),kU=(0,l.memo)(e=>{let{projectName:t,currentViewing:n,onQuitView:r,isVersionManagementPaneShow:s,isReadOnly:c,dispatch:d}=e;const p=()=>{d({type:"entry:toolbar:open:versionControl:modal"})};return(0,o.jsxs)(wU,{className:m()("version-view-header",{hidden:!n}),children:[(0,o.jsxs)("div",{className:"left-part",children:[(0,o.jsx)("p",{className:"project-name",children:t}),n&&(0,o.jsx)("p",{className:"version-title",children:"\u9884\u89C8 "+n.title+" \u7248\u672C"})]}),(0,o.jsxs)("div",{className:"right-part",children:[(0,o.jsx)(Tu.A,{toolTipName:I18N.ToolBar.versionControl,svgIconName:s?"design/versions/expand/panel":"design/versions/unexpand/panel",onClick:p,size:32,className:"version-control-icon"}),(0,o.jsx)(Fl.tA,{className:"quit",onClick:r,children:c?I18N.ToolBar.backToOverview:I18N.ToolBar.backToDesign})]})]})}),EU=(0,l.memo)(e=>{let{projectToken:t,currentViewing:n,isVersionManagementPaneShow:r}=e;const s=(0,l.useRef)(void 0),c=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),g=w=>{w.data.type==="design:loaded"&&p(!0)};(0,l.useEffect)(()=>(window.addEventListener("message",g),()=>{window.removeEventListener("message",g)}),[]);const y=s.current;return(0,l.useEffect)(()=>{n&&n.cid&&(!y||y.cid!==n.cid)&&(p(!1),c.current.contentWindow.location.replace((0,Hf.Dw)(t+"?version="+n.cid)))},[n,y,t]),(0,l.useEffect)(()=>{s.current=n}),(0,o.jsxs)(SU,{className:m()("version-view-model",{hidden:!n},{isVersionPaneShow:r}),children:[!d&&(0,o.jsx)(E0.T,{className:"mb-loading"}),n&&(0,o.jsx)("iframe",{ref:c,className:"version-view-iframe",src:"/src/pages"})]})});var IU=i(14794),X5=i(64165),w4=i(46364);const TU=E.Ay.div.withConfig({displayName:"style__StyledAIComponentInputContainer",componentId:"sc-1c4w357-0"})(["position:absolute;z-index:111;"]),Y7={[ic.Sx.LIGHT]:"255, 255, 255",[ic.Sx.DARK]:"33, 33, 33"},Q5=E.Ay.div.withConfig({displayName:"style__StyledInputContainer",componentId:"sc-1c4w357-1"})(["background:",";border:1px solid ",";border-radius:12px;width:","px;cursor:default;box-shadow:0 8px 20px 0 rgba(0,0,0,0.10);font-size:12px;line-height:17px;font-weight:400;.head-area{padding:0 14px 0 10px;height:40px;display:flex;align-items:center;position:relative;.left-icon{width:24px;height:24px;}.title{margin-left:4px;font-size:14px;line-height:24px;font-weight:500;flex:1;color:",";}.right-button{font-size:14px;line-height:24px;color:",";&:hover,&:active{color:",";}}}.input-area{position:relative;flex:1;padding:4px 14px;.text-area{width:100%;height:100%;display:block;resize:none;border:none;outline:none;background-color:transparent;color:",";font-size:14px;line-height:20px;&::-webkit-scrollbar-thumb{cursor:pointer;}&::placeholder{color:",";}&:read-only{color:",";cursor:not-allowed;}}.tips-icon{width:16px;height:16px;position:absolute;right:20px;top:4px;&:hover{*{fill-opacity:1;}}}}.bottom-area{display:flex;justify-content:flex-end;align-items:center;padding:0 14px 8px 10px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){width:28px;height:28px;cursor:pointer;}.generate-handle-area{display:grid;justify-items:center;align-items:center;grid-template-columns:repeat(2,28px);grid-gap:4px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}&.is-disabled{cursor:not-allowed;color:",";}}}.edit-element{display:flex;align-items:center;height:20px;padding:0 4px 0 6px;border-radius:4px;background-color:",";color:",";.clear-selected-icon{width:16px;height:16px;margin-left:4px;cursor:pointer;}}.right-area{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:8px;.send-icon{color:",";&.is-disabled{cursor:not-allowed;color:",";}&:not(.is-disabled):hover{color:","}&:not(.is-disabled):active{color:","}}}}&.generate-mode{display:flex;flex-direction:column;height:","px;}&.thinking-mode{height:","px;display:flex;align-items:center;gap:4px;padding:0 14px 0 10px;font-size:14px;line-height:24px;.loading-icon-area{width:32px;height:32px;display:flex;justify-content:center;align-items:center;}.loading-icon{color:#266FFF;path[fill]{fill:currentColor;}animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.thinking-text{color:",";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;"," background-size:200% 100%;background-position:-100% 0;animation:loadingFont 2s infinite linear;z-index:1;}}@keyframes loadingFont{0%{background-position:100% 0;}100%{background-position:-100% 0;}}.close-button{flex:1;display:flex;justify-content:flex-end;align-items:center;cursor:pointer;svg{color:",";path{fill:currentColor;}}}}&.snapshot-mode{height:","px;display:flex;justify-content:center;align-items:center;padding:0 14px 0 10px;font-size:14px;line-height:24px;.left-icon{width:28px;height:28px;cursor:pointer;color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}}.split-line{margin:0 8px;width:1px;height:20px;background-color:",";}.tips{color:",";flex:1;}.quit{cursor:pointer;color:",";&:hover,&:active{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,w4.dx,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_link_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,w4.V5.generate,w4.V5.thinking,e=>e.theme.color_text_L1,e=>{if(e.themeType&&Y7[e.themeType]){const t=Y7[e.themeType];return console.log("color",t),"background: linear-gradient(\n 90deg,\n transparent,\n rgba("+t+", 0.4) 30%,\n rgba("+t+", 0.8) 50%,\n rgba("+t+", 0.4) 70%,\n transparent\n );"}},e=>e.theme.color_text_L2,w4.V5.snapshot,e=>e.theme.color_text_link_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1);var _U=i(66313);const PU=e=>{let{textareaRef:t,inputPlaceholderText:n,userTextContent:r,isInputDisabled:s,handleKeyDown:c,handleCompositionStart:d,handleCompositionEnd:p,handleChange:g}=e;return(0,o.jsx)("textarea",{className:"text-area",ref:t,placeholder:n,value:r,autoFocus:!0,readOnly:s,onCompositionStart:d,onCompositionEnd:p,onMouseDown:y=>{s&&y.preventDefault()},onKeyDown:c,onChange:g})},LU=e=>{let{size:t=22}=e;return(0,o.jsx)(NU,{className:"loading-icon",size:t,name:"chatGPT/tip-loading",isColorPure:!0})},NU=(0,E.Ay)(Et.C).withConfig({displayName:"AIComponentLoadingIcon__StyledSVGIcon",componentId:"sc-voamyl-0"})(["&.loading-icon{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]);var jU=i(51886),DU=i(57808),OU=Object.defineProperty,RU=Object.defineProperties,BU=Object.getOwnPropertyDescriptors,S4=Object.getOwnPropertySymbols,X7=Object.prototype.hasOwnProperty,Q7=Object.prototype.propertyIsEnumerable,J7=(e,t,n)=>t in e?OU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J5=(e,t)=>{for(var n in t||(t={}))X7.call(t,n)&&J7(e,n,t[n]);if(S4)for(var n of S4(t))Q7.call(t,n)&&J7(e,n,t[n]);return e},UU=(e,t)=>RU(e,BU(t)),FU=(e,t)=>{var n={};for(var r in e)X7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&S4)for(var r of S4(e))t.indexOf(r)<0&&Q7.call(e,r)&&(n[r]=e[r]);return n},VU=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=FU(n,["size","spin","style"]);const p=J5(J5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",UU(J5({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L10.9393 12L6.96967 15.9697C6.67678 16.2626 6.67678 16.7374 6.96967 17.0303C7.26256 17.3232 7.73744 17.3232 8.03033 17.0303L12 13.0607L15.9697 17.0303C16.2626 17.3232 16.7374 17.3232 17.0303 17.0303C17.3232 16.7374 17.3232 16.2626 17.0303 15.9697L13.0607 12L17.0303 8.03033C17.3232 7.73744 17.3232 7.26256 17.0303 6.96967C16.7374 6.67678 16.2626 6.67678 15.9697 6.96967L12 10.9393L8.03033 6.96967Z",fill:"#19191A"}))});const zU=()=>{const{inputPlaceholderText:e,textareaRef:t,userTextContent:n,handleChange:r,handleCompositionEnd:s,handleCompositionStart:c,handleKeyDown:d,handleQuit:p,isShowSnapshotSwitch:g,isShowSnapshotModeTips:y,handleSnapshotSwitch:w,isShowExamplePrompts:_,handleExamplePrompts:j,isShowOptimumLoading:N,isShowOptimumPrompts:Z,handleOptimumPrompts:Q,isSendLoading:se,isSendIconDisable:ie,handleSend:he,isInputDisabled:xe,creditCount:Se,isInsufficientCredit:_e,costPerGeneration:De,openPurchaseModal:Je,isShowThinkingMode:Ne,handleCloseThinkingMode:pt}=(0,X5.q6)();return Ne?(0,o.jsx)(WU,{handleCloseThinkingMode:pt}):y?(0,o.jsx)(HU,{handleSnapshotSwitch:w,handleQuit:p}):(0,o.jsxs)(Q5,{className:"generate-mode",children:[(0,o.jsxs)("div",{className:"head-area",children:[(0,o.jsx)(DU.F,{}),(0,o.jsx)("span",{className:"title",children:"AI \u751F\u6210\u7EC4\u4EF6"}),(0,o.jsx)("button",{className:"right-button",onClick:p,children:"\u9000\u51FA"})]}),(0,o.jsx)("div",{className:"input-area",children:(0,o.jsx)(PU,{textareaRef:t,inputPlaceholderText:e,userTextContent:n,isInputDisabled:xe,handleCompositionStart:c,handleCompositionEnd:s,handleKeyDown:d,handleChange:r})}),(0,o.jsxs)("div",{className:"bottom-area",children:[(0,o.jsxs)("div",{className:"generate-handle-area",children:[g&&(0,o.jsx)(yd.A,{content:"\u6846\u9009\u5143\u7D20",direction:"top",children:(0,o.jsx)(Et.C,{name:"chatGPT/ai-component/snapshot-mode",isDisabled:xe,onClick:w})}),_&&(0,o.jsx)(yd.A,{content:"\u968F\u673A\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(Et.C,{name:"chatGPT/ai-component/case-prompts",isDisabled:xe,onClick:j})}),(0,o.jsx)(GU,{isDisabled:xe,isShowLoading:N,isShowIcon:Z,handleClick:Q})]}),(0,o.jsxs)("div",{className:"right-area",children:[(0,o.jsx)(jU.U,{creditCount:Se,isInsufficientCredit:_e,costPerGeneration:De,openPurchaseModal:Je}),(0,o.jsx)(_U.q,{isSendLoading:se,isDisabled:ie,onClick:he})]})]})]})},WU=e=>{let{handleCloseThinkingMode:t}=e;const n=(0,a.d4)(q.O4);return(0,o.jsxs)(Q5,{className:"thinking-mode",themeType:n,children:[(0,o.jsx)("div",{className:"loading-icon-area",children:(0,o.jsx)(f7,{size:24,className:"loading-icon"})}),(0,o.jsx)("div",{className:"thinking-text",children:I18N.ChatGPT.ai_semantic_thinking}),(0,o.jsx)("div",{className:"close-button",onClick:t,children:(0,o.jsx)(VU,{size:24,className:"close-icon"})})]})},HU=e=>{let{handleQuit:t,handleSnapshotSwitch:n}=e;return(0,o.jsxs)(Q5,{className:"snapshot-mode",children:[(0,o.jsx)(yd.A,{content:"\u8F93\u5165\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(Et.C,{className:"left-icon",name:"chatGPT/ai-component/edit-mode",onClick:n})}),(0,o.jsx)("div",{className:"split-line"}),(0,o.jsx)("div",{className:"tips",children:"\u8BF7\u6846\u9009\u753B\u5E03\u4E2D\u7684\u5143\u7D20\u4F5C\u4E3A\u751F\u6210\u793A\u610F\u56FE"}),(0,o.jsx)("div",{className:"quit",onClick:t,children:"\u9000\u51FA"})]})},GU=e=>{let{isShowLoading:t,isShowIcon:n,handleClick:r,isDisabled:s}=e;return n?t?(0,o.jsx)(LU,{}):(0,o.jsx)(yd.A,{content:"\u4F18\u5316\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(Et.C,{name:"chatGPT/ai-component/optimum-prompts",onClick:r})}):null},ZU=()=>{const e=(0,X5.qO)(),t=(0,a.d4)(Ih.Ag),{key:n,selectedElement:r}=t||{};if(!n)return(0,o.jsx)(TU,{id:"ai-component-input-container",style:e,onMouseDown:X5.dG,children:(0,o.jsx)(zU,{})})},KU=()=>{const e=(0,a.d4)(Ih.l3),t=(0,a.d4)(Ih.iB);return e?(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)(ZU,{})}):null};var A4=i(48260);const YU=E.Ay.div.withConfig({displayName:"style__StyledUploadFontModal",componentId:"sc-bj39ar-0"})(["position:absolute;width:480px;height:418px;gap:20px;opacity:0px;z-index:108;font-size:0.875rem;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";",";border:1px solid ",";header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid "," !important;}.dark{box-shadow:2px 8px 20px 0px #0000001A;}",";.content-container{margin:20px 0;padding-left:20px;padding-right:4px;height:276px;}.scroll-container{overflow-y:scroll;overflow-x:hidden;}.font-check-container{width:254px;height:32px;display:flex;.Check-label{color:",";font-size:12px;font-weight:500;}.tip-icon{color:",";}}.upload-law-tip{width:350px;left:-173px;top:30px;padding:12px 16px;&::before{left:50%;}p{font-size:12px;color:",";transform:scaleY(-1);a{text-decoration:none;color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,A4.wy,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,A4.C0,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_btn),XU=E.Ay.div.withConfig({displayName:"style__StyledFontScrollContainer",componentId:"sc-bj39ar-1"})(["height:","px;overflow-y:scroll;overflow-x:hidden;"],e=>e==null?void 0:e.height),QU=E.Ay.div.withConfig({displayName:"style__StyledUploadComponent",componentId:"sc-bj39ar-2"})(["cursor:pointer;& > *{pointer-events:none;}.upload-content{width:440px;border-radius:10px;border:1px dashed ",";background:",";cursor:pointer;&.is-active{background:",";border:1px dashed ",";}height:","px;transition:all 0.1s ease-in-out;display:flex;flex-direction:column;align-items:center;.center-div{display:flex;justify-content:center;}.desc1{margin-top:14px}.desc2{margin-top:2px}.title{font-weight:500;color:",";}.margin-header{margin-top:86px;}.sub-title{color:",";}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_bg_select03,e=>e.theme.color_text_link_normal,e=>e.height,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),JU=(0,E.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}"]),q5=E.Ay.div.withConfig({displayName:"style__StyledFontItem",componentId:"sc-bj39ar-3"})(["border-radius:10px;width:440px;height:60px;border:1px solid ",";display:flex;align-items:center;padding:0 12px;margin-bottom:12px;color:",";font-size:12px;&.upload-component{border:1px dashed ",";background:",";}.p1{display:flex;width:276px;.left{margin-right:14px;}.name{width:230px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}.size{color:",";}}.p1-manager{display:flex;width:372px;.left{margin-right:14px;}.middle{align-items:center;display:flex;}.name{width:326px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}}.right{display:flex;align-items:center;width:138px;justify-content:flex-end;> *{margin-left:10px;&:first-child{margin-left:0px;}}.error{color:",";}.retry{cursor:pointer;color:",";}.success{color:",";}.uploading{animation:"," 1.5s infinite linear;}.pending-icon{color:",";}}.upload-content{display:flex;align-items:center;cursor:pointer;.name{margin-left:14px;font-weight:500;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_error,e=>e.theme.color_text_link_normal,e=>e.theme.color_success,JU,e=>e.theme.color_text_L1),qU=E.Ay.div.withConfig({displayName:"style__StyledEmptyManager",componentId:"sc-bj39ar-4"})(["display:flex;flex-direction:column;align-items:center;height:","px;justify-content:center;img{width:117px;}> *{margin-bottom:20px;}.no{color:",";}"],e=>e.height,e=>e.theme.color_text_L2);var Th=i(47617);const q7=e=>{const[t,n]=(0,l.useState)((e==null?void 0:e.initiralIsDragActive)||!1),r=(0,l.useRef)(null),s=(0,l.useRef)(null),c=()=>{r.current.value=null,r.current.click()},d=y=>{var w;clearTimeout(s.current||void 0),y.preventDefault(),y.stopPropagation(),n(!0),e==null||(w=e.handleDragActiveCallback)==null||w.call(e)},p=y=>{y.preventDefault(),y.stopPropagation(),s.current=setTimeout(()=>{var w;n(!1),e==null||(w=e.handleLeaveCallback)==null||w.call(e,y)},100)};return{isDragActive:t,handleDrop:async y=>{var w;p(y),e==null||(w=e.handleDropCallback)==null||w.call(e,y)},handleDragActive:d,handleDragInactive:p,importInputRef:r,handleInputClick:c}},$U=()=>{const e=(0,a.d4)(Hs.y.query.getUploadInitialFrom),t=(0,a.wA)(),n=async N=>{const Z=[...N.dataTransfer.files];!Z||Z.length<1||(t({type:Hs.y.entryKey["font:upload:file:push"],payload:{originalFileList:Z,inputType:"drag"}}),Hs.y.dispatchState({fontModalState:"upload-uploading"},t))},r=()=>{e==="uploading"&&Hs.y.dispatchState({fontModalState:"upload-uploading"},t)},{isDragActive:s,handleDrop:c,handleDragActive:d,handleDragInactive:p,importInputRef:g,handleInputClick:y}=q7({handleDropCallback:n,handleLeaveCallback:r}),w=async N=>{const Z=N.currentTarget.files?Array.from(N.currentTarget.files):[];!Z||Z.length<1||(t({type:Hs.y.entryKey["font:upload:file:push"],payload:{originalFileList:Z,inputType:"select"}}),Hs.y.dispatchState({fontModalState:"upload-uploading"},t))},[_,j]=(0,l.useState)(e==="none"?276:76);return(0,l.useEffect)(()=>(e==="uploading"&&setTimeout(()=>{j(276)},100),()=>{Hs.y.dispatchState({uploadInitialFrom:"none"},t)}),[]),(0,o.jsx)("div",{className:"content-container",children:(0,o.jsxs)(QU,{onDrop:c,onDragOver:d,onDragLeave:p,onClick:y,height:_,children:[(0,o.jsxs)("div",{className:m()("upload-content",{"is-active":s}),children:[(0,o.jsx)("div",{className:"center-div margin-header",children:(0,o.jsx)(Et.C,{size:48,name:"common/font/upload-initial"})}),s?(0,o.jsx)("div",{className:"center-div desc1",children:(0,o.jsx)("p",{className:"title",children:"\u677E\u624B\u5373\u53EF\u6DFB\u52A0\u4E0A\u4F20"})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"center-div desc1",children:(0,o.jsx)("p",{className:"title",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})}),(0,o.jsx)("div",{className:"center-div desc2",children:(0,o.jsx)("span",{className:"sub-title",children:"\u8BF7\u786E\u4FDD\u6BCF\u4E2A\u6587\u4EF6\u7684\u5927\u5C0F\u4E0D\u8D85\u8FC7 200 MB"})})]})]}),(0,o.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:g,onChange:w})]})})},eF=()=>{const e=(0,a.wA)(),{handleDrop:t,handleDragActive:n,handleDragInactive:r,importInputRef:s,handleInputClick:c}=q7({handleDragActiveCallback:()=>{Hs.y.dispatchState({fontModalState:"upload-initial",uploadInitialFrom:"uploading"},e)}}),d=async p=>{const g=p.currentTarget.files?Array.from(p.currentTarget.files):[];!g||g.length<1||(e({type:Hs.y.entryKey["font:upload:file:push"],payload:{originalFileList:g,inputType:"select"}}),Hs.y.dispatchState({fontModalState:"upload-uploading"},e))};return(0,o.jsxs)(q5,{onDrop:t,onDragOver:n,onDragEnter:n,onDragLeave:r,onClick:c,className:"upload-component",children:[(0,o.jsxs)("div",{className:"upload-content",children:[(0,o.jsx)(Et.C,{size:32,name:"font/upload/tip"}),(0,o.jsx)("p",{className:"name",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})]}),(0,o.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:s,onChange:d})]})},tF=()=>{const e=(0,a.wA)(),t=()=>{},n=()=>{e({type:Hs.y.entryKey["font:fontModal:close"]})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)($U,{}),(0,o.jsx)(Th.jl,{onConfirm:t,onCancel:n,confirmBtnProps:{onClick:t,children:"\u4E0A\u4F20",disabled:!0},cancelBtnProps:{onClick:n,children:"\u53D6\u6D88",type:"secondary"},footer:!1})]})},nF=e=>{switch(e.type){case"prepare-upload":return(0,o.jsx)(o.Fragment,{children:e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})});case"invalid-format":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u683C\u5F0F\u9519\u8BEF"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"over-size":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u6587\u4EF6\u8FC7\u5927"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"exist":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u5B57\u4F53\u5DF2\u5B58\u5728"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"uploading":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"normal",children:"\u4E0A\u4F20\u4E2D"}),(0,o.jsx)(Et.C,{isColorPure:!0,size:32,name:"common/font/uploading",className:"uploading"})]});case"pending":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"normal",children:"\u7B49\u5F85\u4E2D"}),(0,o.jsx)(Et.C,{size:32,name:"common/font/pending",className:"pedning-icon"})]});case"success":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"success",children:"\u4E0A\u4F20\u6210\u529F"}),(0,o.jsx)(Et.C,{isColorPure:!0,size:32,name:"common/font/success"})]});case"failed-timeout":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u4E0A\u4F20\u8D85\u65F6"}),e.uploadState==="done"&&(0,o.jsx)("div",{className:"retry",onClick:e.handleRetry,children:"\u91CD\u8BD5"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"failed-network-error":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u7F51\u7EDC\u9519\u8BEF"}),e.uploadState==="done"&&(0,o.jsx)("div",{className:"retry",onClick:e.handleRetry,children:"\u91CD\u8BD5"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"failed-parse":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u89E3\u6790\u5931\u8D25"}),e.uploadState!=="uploading"&&(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]})}},oF=e=>{let{fileKey:t,name:n,size:r,type:s,uploadState:c}=e;const d=(0,a.wA)(),p=()=>{d({type:Hs.y.entryKey["font:upload:file:discard"],payload:{fileKey:t}})},g=()=>{d({type:Hs.y.entryKey["font:upload:retry"]})},y=(w,_)=>{const j=_;return j.offsetWidth<j.scrollWidth};return(0,o.jsxs)(q5,{children:[(0,o.jsxs)("div",{className:"p1",children:[(0,o.jsx)(Et.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,o.jsxs)("div",{className:"middle",children:[(0,o.jsx)(yd.A,{content:n,onChangeTooltipsHover:(w,_)=>_==null?void 0:_(),isShowTipsByTarget:y,children:(0,o.jsx)("div",{className:"name",children:n})}),(0,o.jsx)("div",{className:"size",children:r+"MB"})]})]}),(0,o.jsx)("div",{className:"right",children:nF({type:s,handleDiscard:p,handleRetry:g,uploadState:c})})]})},aF=e=>{let{fontFamily:t,handleFontDelete:n}=e;return(0,o.jsxs)(q5,{children:[(0,o.jsxs)("div",{className:"p1-manager",children:[(0,o.jsx)(Et.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,o.jsx)("div",{className:"middle",children:(0,o.jsx)("div",{className:"name",children:t})})]}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(pc.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:n})})]})};var rF=i(3877),iF=i(86992);const rJ=(0,E.Ay)(iF.A).withConfig({displayName:"styles__StyledVideoSubPanel",componentId:"sc-1newfzy-0"})(['&.video-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}.icon-wrapper{cursor:default;}.colorful-svg{margin-right:8px;width:16px;height:16px;}.colorful-svg path[fill="#1684FC"]{fill:#1684FC;}.colorful-svg path[fill="#FF4A4A"]{fill:#FF4A4A;}.colorful-svg path[fill="#38CEFF"]{fill:#38CEFF;}.colorful-svg path[fill="#0B99FF"]{fill:#0B99FF;}.colorful-svg path[fill="#F5001A"]{fill:#F5001A;}.colorful-svg path[fill="#10ABF2"]{fill:#10ABF2;}.colorful-svg path[fill="#FF8F21"]{fill:#FF8F21;}.colorful-svg path[fill="#7DE621"]{fill:#7DE621;}.colorful-svg path[fill="#1296DB"]{fill:#1296DB;}.colorful-svg path[fill="#fff"]{fill:#fff;}.colorful-svg circle[fill="#1684FC"]{fill:#1684FC;}']),iJ=E.Ay.div.withConfig({displayName:"styles__StyledVideoSettings",componentId:"sc-1newfzy-1"})([".video-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:106px 106px;}label{min-width:100px;height:32px;}}"]),sF=E.Ay.div.withConfig({displayName:"styles__StyledVideoTipContent",componentId:"sc-1newfzy-2"})(['position:absolute;top:22px;left:-42px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 28px 10px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){left:-80px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-size:14px;font-weight:400;line-height:20px;}.icon-wrapper{margin-top:11px;}']);var lF=i(91363),V2=i(99203);const cF=e=>(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"ellipsis-content",children:["\u786E\u5B9A\u5220\u9664\u300C",(0,o.jsx)("span",{children:e.label}),"\u300D\u5B57\u4F53\u5417\uFF1F"]}),(0,o.jsx)("p",{children:"\u5220\u9664\u540E\uFF0C\u5DF2\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6\u4F1A\u51FA\u73B0\u5B57\u4F53\u7F3A\u5931"})]}),dF=()=>{const e=(0,a.wA)(),t=(0,a.d4)(q.O4),n=(0,a.d4)(Hs.y.query.getCloudFontLocalList),r=()=>{e({type:Hs.y.entryKey["font:manage:to:upload"]}),(0,lF.rr)({operation_type:"\u4E0A\u4F20\u5B57\u4F53-\u7BA1\u7406\u5B57\u4F53\u9762\u677F"})},s=c=>()=>{MB.global.popupHelper.confirmAsync({title:"\u5220\u9664\u5B57\u4F53",confirmText:I18N.Common.confirm,cancelText:"\u53D6\u6D88",desc:cF(c),theme:t}).then(d=>{d&&e({type:Hs.y.entryKey["font:manage:to:delete"],payload:{ff:c.value}})})};return n.length===0?(0,o.jsx)($7,{handleUploadFont:r}):(0,o.jsx)(pF,{handleUploadFont:r,fontList:(0,V2.r)(n),handleFontDelete:s})},pF=e=>{let{fontList:t,handleUploadFont:n,handleFontDelete:r}=e;const s=(0,a.wA)(),c=()=>{s({type:Hs.y.entryKey["font:fontModal:close"]})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"content-container scroll-container",children:t.map((d,p)=>(0,o.jsx)(aF,{fontFamily:d.family,handleFontDelete:r(d)},p))}),(0,o.jsx)(Th.jl,{onCancel:n,cancelBtnProps:{onClick:n,children:"\u4E0A\u4F20\u5B57\u4F53",type:"secondary"},onConfirm:c,confirmBtnProps:{onClick:c,children:"\u5B8C\u6210"},footer:!1})]})},$7=e=>{let{handleUploadFont:t,text:n}=e;return(0,o.jsxs)(qU,{height:t?368:316,children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"})}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"no",children:n||"\u6682\u65E0\u4E0A\u4F20\u7684\u4E91\u7AEF\u5B57\u4F53"})}),t&&(0,o.jsx)("div",{children:(0,o.jsx)(Fl.jn,{onClick:t,children:"\u4E0A\u4F20\u5B57\u4F53"})})]})},uF=l.memo(()=>{const[e,t]=(0,l.useState)(!1),n=(0,a.wA)(),r=(0,a.d4)(Hs.y.query.getUploadFileList),s=(0,a.d4)(Hs.y.query.getUploadState),c=()=>{n({type:Hs.y.entryKey["font:upload:file:preapre:go"]})},d=()=>{n({type:Hs.y.entryKey["font:fontModal:close2"]})},p=()=>{n({type:Hs.y.entryKey["font:fontModal:uplaod:continue"]})},g=()=>s==="prepare"||s==="uploading"?{onClick:d,children:"\u53D6\u6D88",type:"secondary"}:{onClick:p,children:"\u7EE7\u7EED\u4E0A\u4F20",type:"secondary"},y=()=>s==="prepare"||s==="uploading"?{onClick:c,children:"\u4E0A\u4F20"}:{onClick:d,children:"\u5B8C\u6210"},w=!e||s==="uploading",_=s==="prepare"?204:276;return(0,o.jsxs)(o.Fragment,{children:[r.length===0?(0,o.jsx)($7,{handleUploadFont:void 0,text:"\u6682\u65E0\u4E0A\u4F20\u8BB0\u5F55"}):(0,o.jsxs)("div",{className:"content-container",children:[s==="prepare"&&(0,o.jsx)(eF,{}),(0,o.jsx)(XU,{height:_,children:r.map((j,N)=>(0,o.jsx)(oF,{...j,uploadState:s},N))})]}),(0,o.jsx)(Th.jl,{onConfirm:c,onCancel:d,confirmBtnProps:{...y(),disabled:w},cancelBtnProps:g(),renderFooterSide:()=>s!=="prepare"?null:(0,o.jsxs)("div",{className:"font-check-container",children:[(0,o.jsx)(Gn.A,{attr:"fontUseIsChecked",isChecked:e,label:"\u6211\u62E5\u6709\u4EE5\u4E0A\u5B57\u4F53\u7684\u5546\u7528\u7248\u6743",onChange:()=>{t(!e)}}),s==="prepare"&&(0,o.jsx)(rF.A,{renderContent:()=>(0,o.jsx)(sF,{className:"upload-law-tip",children:(0,o.jsxs)("p",{children:["\u60A8\u9700\u8981\u5BF9\u60A8\u5728\u58A8\u5200\u4E2D\u4E0A\u4F20\u6216\u5B58\u50A8\u7684\u6587\u4EF6\u4EE5\u53CA\u8F93\u5165\u7684\u6570\u636E\u7684\u5408\u6CD5\u6027\u8D1F\u8D23\uFF0C\u5E76\u786E\u4FDD\u83B7\u53D6\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u548C\u5185\u5BB9\u7684\u65B9\u5F0F\u7B26\u5408\u6CD5\u5F8B\u8981\u6C42\u3002\u56E0\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u6216\u5185\u5BB9\u5F15\u53D1\u7684\u4EFB\u4F55\u7EA0\u7EB7\uFF0C\u60A8\u5C06\u627F\u62C5\u6240\u6709\u6CD5\u5F8B\u8D23\u4EFB\uFF0C\u58A8\u5200\u5BF9\u6B64\u4E0D\u627F\u62C5\u4EFB\u4F55\u6CD5\u5F8B\u8D23\u4EFB\u3002",(0,o.jsx)("a",{href:"/ad/tos",target:"blank",children:"\u4E86\u89E3\u66F4\u591A"})]})}),customIconName:"common/font/law/tip"})]}),footer:!1})]})}),hF=()=>{const e=(0,a.wA)(),t=(0,a.d4)(Hs.y.query.getUploadFontModalPosition),n=(0,a.d4)(Hs.y.query.getFontModalState),r=(0,a.d4)(Hs.y.query.getIsShowFontModal),s=(0,a.d4)(q.O4);if(!r)return null;const c=(w,_)=>{e({type:Hs.y.entryKey["font:uploadFontModalPosition:update"],payload:{position:{left:w,top:_}}})},d=()=>{e({type:Hs.y.entryKey["font:fontModal:close2"]})},p=(t==null?void 0:t.left)||window.innerWidth/2-480/2,g=(t==null?void 0:t.top)||window.innerHeight/2-418/2,y=n.startsWith("upload")?"\u5B57\u4F53\u4E0A\u4F20":"\u7BA1\u7406\u5B57\u4F53";return(0,o.jsx)(dr.A,{position:{left:p,top:g},onMove:c,children:(0,o.jsxs)(YU,{id:"upload-font-modal",className:s,children:[(0,o.jsx)(Th.rQ,{title:y,type:"draggable"}),(0,o.jsx)(Th.v,{canClose:!0,onClick:d}),n==="upload-initial"?(0,o.jsx)(tF,{}):n==="upload-uploading"?(0,o.jsx)(uF,{}):(0,o.jsx)(dF,{})]})})};var mF=i(30179),fF=i(97267),gF=Object.defineProperty,yF=Object.defineProperties,vF=Object.getOwnPropertyDescriptors,M4=Object.getOwnPropertySymbols,e9=Object.prototype.hasOwnProperty,t9=Object.prototype.propertyIsEnumerable,n9=(e,t,n)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$5=(e,t)=>{for(var n in t||(t={}))e9.call(t,n)&&n9(e,n,t[n]);if(M4)for(var n of M4(t))t9.call(t,n)&&n9(e,n,t[n]);return e},xF=(e,t)=>yF(e,vF(t)),bF=(e,t)=>{var n={};for(var r in e)e9.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&M4)for(var r of M4(e))t.indexOf(r)<0&&t9.call(e,r)&&(n[r]=e[r]);return n},CF=(0,l.forwardRef)((e,t)=>{var n=e,{size:r,spin:s,style:c}=n,d=bF(n,["size","spin","style"]);const p=$5($5({width:r||"var(--x-icon-size, 1em)",height:r||"var(--x-icon-size, 1em)",animation:s?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",xF($5({ref:t,style:p},d),{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.5996 1.5H21.793L29.5 9.20703V23.4004C29.5 25.0884 29.4996 26.3245 29.4199 27.2998C29.3407 28.2694 29.1855 28.9376 28.9004 29.4971C28.3731 30.5318 27.5318 31.3731 26.4971 31.9004C25.9376 32.1855 25.2694 32.3407 24.2998 32.4199C23.3245 32.4996 22.0884 32.5 20.4004 32.5H11.5996C9.91155 32.5 8.67551 32.4996 7.7002 32.4199C6.7306 32.3407 6.06243 32.1855 5.50293 31.9004C4.46816 31.3731 3.62689 30.5318 3.09961 29.4971C2.81453 28.9376 2.6593 28.2694 2.58008 27.2998C2.50041 26.3245 2.5 25.0884 2.5 23.4004V10.5996C2.5 8.91156 2.50041 7.67551 2.58008 6.7002C2.6593 5.7306 2.81453 5.06243 3.09961 4.50293C3.62689 3.46816 4.46816 2.62689 5.50293 2.09961C6.06243 1.81453 6.7306 1.6593 7.7002 1.58008C8.67551 1.50041 9.91156 1.5 11.5996 1.5Z",fill:"white",stroke:"#0090F6"}),l.createElement("g",{filter:"url(#filter0_d_879_267)"},l.createElement("path",{d:"M21.8086 1.03807C21.9954 0.960681 22.2105 1.00347 22.3535 1.14647L29.8535 8.64647C29.9965 8.78947 30.0393 9.00455 29.9619 9.19139C29.8845 9.37819 29.7022 9.49999 29.5 9.49999H25C23.1273 9.49999 21.5984 8.02916 21.5049 6.17967L21.5 5.99999V1.49999C21.5 1.29778 21.6218 1.11548 21.8086 1.03807ZM22.5127 6.25585C22.6408 7.51638 23.7057 8.49999 25 8.49999H28.293L22.5 2.70702V5.99999L22.5127 6.25585Z",fill:"#0090F6"})),l.createElement("rect",{x:"6",y:"16",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{x:"6",y:"20.5",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{x:"6",y:"25",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{y:"11.5",width:"22",height:"11",rx:"2",fill:"url(#paint0_linear_879_267)"}),l.createElement("path",{d:"M2.554 16.392H4.864V14.376H5.886V19.5H4.864V17.295H2.554V19.5H1.539V14.376H2.554V16.392ZM6.48373 14.376H10.6137V15.279H9.05973V19.5H8.03773V15.279H6.48373V14.376ZM15.5167 14.376H16.2867V19.5H15.3207V16.196L14.0187 18.135H13.4867L12.1777 16.182V19.5H11.2187V14.376H12.0237L13.7737 17.029L15.5167 14.376ZM17.3642 14.376H18.3792V18.59H20.7102V19.5H17.3642V14.376Z",fill:"white"}),l.createElement("defs",null,l.createElement("filter",{id:"filter0_d_879_267",x:"19",y:"0",width:"12.5",height:"12.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"-0.5",dy:"1"}),l.createElement("feGaussianBlur",{stdDeviation:"1"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_879_267"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_879_267",result:"shape"})),l.createElement("linearGradient",{id:"paint0_linear_879_267",x1:"11",y1:"11.5",x2:"11",y2:"22.5",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#79D4FF"}),l.createElement("stop",{offset:"1",stopColor:"#0090F6"}))))}),wF=i(40042),SF=i(63072),AF=i(87612),MF=i(15086);function kF(){const e=(0,a.wA)(),n=(0,l.useRef)(new MF.M).current,r=(0,l.useSyncExternalStore)(n.subscribe,n.getSnapshot);(0,l.useEffect)(()=>{n.setDispatch(e)},[e]);const s=(0,l.useCallback)(async(y,w)=>n.convert(y,w),[]),c=(0,l.useCallback)(()=>{n.cancel()},[]),d=(0,l.useCallback)(()=>{n.reset()},[]),p=(0,l.useCallback)(()=>n.getPrevHtml(),[]),g=(0,l.useCallback)(()=>n.getIsCanceled(),[]);return{state:r,convert:s,cancel:c,reset:d,getPrevHtml:p,getIsCanceled:g}}const EF=()=>{const e=(0,l.useRef)(null),[t,n]=(0,l.useState)(0),[r,s]=(0,l.useState)({}),[c,d]=(0,l.useState)(""),p=(0,a.wA)(),[g,y]=(0,l.useState)(""),[w,_]=(0,l.useState)(0),j=(0,l.useRef)(0),[N,Z]=(0,l.useState)("\u7F16\u8F91\u533A\u5DE6\u4FA7"),{state:Q,convert:se,cancel:ie,reset:he,getPrevHtml:xe,getIsCanceled:Se}=kF(),_e=async Lo=>{const Cn=Array.from(Lo.target.files)[0],hn=await Cn.text();y(Je.current.value),Ne({fileInfo:{fileName:Cn.name.split(".html").join(""),from:"select"},htmlString:hn}),n(oa=>oa+1)},De=()=>{if(Q.type==="success"){var Lo;((Lo=r.fileInfo)==null?void 0:Lo.from)==="input"&&(y(""),d(""))}he(),s({})},Je=(0,l.useRef)(),Ne=async Lo=>{let{fileInfo:Yo,htmlString:Cn,isFromRetry:hn}=Lo;if(s({fileInfo:Yo,isFromRetry:hn}),Cn===""){await se({htmlString:"",fileName:Yo.from==="select"?Yo.fileName:void 0},{onError:async()=>{hn&&(await new Promise(oa=>setTimeout(oa,2e3)),Se()&&s({}))}});return}await se({htmlString:Cn,fileName:Yo.from==="select"?Yo.fileName:void 0,autoPaste:!0},{onProgress:oa=>{oa==="toDSLEnd"?zt(90,1):oa==="toModaoEnd"&&zt(95,100)},onError:async()=>{if(hn){const Ao=new Date().getTime()-j.current;await new Promise(ca=>setTimeout(ca,Math.max(2e3-Ao,0)))}}}),j.current=new Date().getTime()},[pt,_t]=(0,l.useState)({left:window.innerWidth/2-320/2,top:window.innerHeight/2-398/2}),gt=(0,l.useRef)(),Ct=(0,l.useRef)(0);(0,l.useEffect)(()=>(Ct.current=0,Q.type==="converting"&&zt(90,10*1e3),()=>{clearInterval(gt.current)}),[Q.type]),(0,l.useEffect)(()=>{const Lo=(0,vf.kI)();return Lo&&Z(Lo),()=>{}},[]),(0,l.useEffect)(()=>{if((Q.type==="success"||Q.type==="failed")&&r.fileInfo)try{(0,Vc.jE)({source:N,type:r.fileInfo.from==="select"?"html\u6587\u4EF6":"html\u4EE3\u7801",status:Q.type==="success"?"\u521B\u5EFA\u6210\u529F":"\u521B\u5EFA\u5931\u8D25"})}catch(Lo){(0,AF.p)("[fail-info]-protoHtml2ProtoTrack",Lo,{...Q,...r})}return()=>{}},[Q,r.fileInfo,N]);const zt=(Lo,Yo)=>{clearInterval(gt.current);const Cn=document.getElementById("progress-bar"),hn=2*Math.PI*36;function oa(ra){const Jo=hn-ra/100*hn;Cn.style.strokeDashoffset=Jo,_(Math.round(ra))}let Ao=Ct.current;const ca=20,va=Lo/Yo*ca;gt.current=setInterval(()=>{Ao+=va,Ct.current=Ao,Ao>=Lo?(clearInterval(gt.current),oa(Lo)):oa(Ao)},ca)},Dt=(Lo,Yo)=>{_t({left:Lo,top:Yo})},sn=()=>{const Lo=Je.current.value;y(Lo),Ne({htmlString:Lo,fileInfo:{from:"input"}})},Rn=()=>{ie(),s({})},On=()=>{switch(Q.type){case"idle":return(0,o.jsxs)("div",{className:"wait-content",children:[(0,o.jsxs)("div",{className:"select-file",onClick:()=>e.current.click(),children:[(0,o.jsx)(CF,{style:{marginBottom:"8px"},size:40}),(0,o.jsx)("p",{children:I18N.htmlimport.wait}),(0,o.jsx)("input",{type:"file",ref:e,accept:".html",onChange:_e,style:{display:"none"}},t)]}),(0,o.jsxs)("div",{className:"input-html",children:[(0,o.jsx)("textarea",{defaultValue:g,ref:Je,placeholder:I18N.htmlimport.paste,onChange:Lo=>d(Lo.target.value)}),(0,o.jsx)(Fl.jn,{disabled:c==="",onClick:sn,children:"\u8F6C\u6362"})]})]});case"converting":return(0,o.jsxs)("div",{className:"status-content uploading-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsxs)("div",{className:"progress-container",children:[(0,o.jsxs)("svg",{className:"progress-svg",width:"120",height:"120",viewBox:"0 0 100 100",children:[(0,o.jsx)("circle",{className:"progress-background",cx:"50",cy:"50",r:"36"}),(0,o.jsx)("circle",{id:"progress-bar",className:"progress-bar",cx:"50",cy:"50",r:"36"})]}),(0,o.jsxs)("div",{id:"progress-text",className:"progress-text",children:[w,"%"]})]}),(0,o.jsx)("div",{className:"title-container",children:(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.uploading})})]}),(0,o.jsx)("div",{className:"btn-container",children:(0,o.jsx)(Fl.jn,{onClick:Rn,children:I18N.Common.cancel})})]});case"success":return(0,o.jsxs)("div",{className:"status-content success-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsx)(wF.A,{className:"svg-img",size:120}),(0,o.jsx)("div",{className:"title-container",children:(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.success})})]}),(0,o.jsx)("div",{className:"btn-container",children:(0,o.jsx)(Fl.jn,{onClick:De,children:I18N.htmlimport.success_continue})})]});case"failed":return(0,o.jsxs)("div",{className:"status-content failed-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsx)(SF.A,{className:"svg-img",size:56}),(0,o.jsxs)("div",{className:"title-container",children:[(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.failed}),(0,o.jsx)("div",{className:"title2",children:Q.reason})]})]}),(0,o.jsxs)("div",{className:"btn-container",children:[(0,o.jsx)(Fl.tA,{onClick:()=>Ne({htmlString:xe(),fileInfo:r.fileInfo,isFromRetry:!0}),children:I18N.htmlimport.retry}),(0,o.jsx)(Fl.jn,{onClick:De,children:I18N.pPreviewToolbar.back})]})]});default:return null}};return(0,o.jsx)(dr.A,{position:{left:pt.left,top:pt.top},onMove:Dt,children:(0,o.jsxs)(TF,{children:[(0,o.jsxs)("div",{className:"import-header",type:"draggable",children:[(0,o.jsx)(Th.rQ,{title:I18N.htmlimport.desc2}),(0,o.jsx)("div",{className:"header-title2",children:I18N.htmlimport.desc1})]}),(0,o.jsx)(Th.v,{canClose:!0,onClick:()=>{p({type:"htmlImportPanel:set:show",payload:{show:!1}})}}),On()]})})},IF=()=>(0,a.d4)(fF.C)?(0,o.jsx)(EF,{}):null,TF=E.Ay.div.withConfig({displayName:"ImportPanel__StyledImportModal",componentId:"sc-cxkg59-0"})(["position:absolute;width:320px;opacity:0px;z-index:108;font-size:0.875rem;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";border:1px solid ",";",";header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:none !important;}display:flex;flex-direction:column;.dark{box-shadow:2px 8px 20px 0px #0000001A;}.close-btn{right:16px;}.import-header{padding:16px 20px;display:flex;flex-direction:column;gap:4px;.header{pointer-events:none;height:fit-content;padding:0px;font-size:14px;}.header-title2{pointer-events:none;color:",";font-size:12px;}}.wait-content{display:flex;flex-direction:column;margin-top:8px;padding:0 20px;gap:16px;margin-bottom:20px;.select-file,.input-html{font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:280px;cursor:pointer;.button-root{width:100%;}}.select-file{height:120px;border-radius:12px;border:1px dashed ",";&:hover{background:",";}}.input-html{padding:12px;gap:12px;border-radius:12px;background:",";textarea{color:",";width:100%;height:92px;border:none;resize:none;background:transparent;&:focus{outline:none;border:none;}}}}.status-content{display:flex;padding:0 20px 20px 20px;flex-direction:column;justify-content:center;align-items:center;gap:32px;flex:1 0 0;align-self:stretch;flex:1;min-height:324px;.img-text-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.svg-img{margin-bottom:16px;}}.title-container{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;.title1{color:",";font-size:14px;font-weight:500;}.title2{color:",";font-size:12px;}}.btn-container{display:flex;gap:24px;}&.success-content,&.uploading-content{.button-root{width:120px;}}}.uploading-content{.progress-container{width:120px;height:120px;display:flex;justify-content:center;align-items:center;position:relative;}.progress-svg{transform:rotate(-90deg);}.progress-background{fill:none;stroke:",";stroke-width:8;}.progress-bar{fill:none;stroke:",";stroke-width:8;stroke-linecap:round;stroke-dasharray:226;stroke-dashoffset:226;transition:stroke-dashoffset 0.02s ease;}.progress-text{position:absolute;font-size:18px;color:",";text-align:center;font-size:20px;font-weight:500;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,A4.wy,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_select03,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L0,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L0),_F=e=>{var t;let{isDesign:n,onlyView:r,isCommunityPreviewMode:s,isEmbedV2PreviewMode:c,isHTMLZipPreviewMode:d,layout:p,isAutoFillPanelShow:g,isFindReplacePanelShow:y,isShowPreference:w,isExportMenuShow:_,enableShowContextMenu:j}=e;const N=(0,l.useRef)(null),Z=r&&!ENV.IS_ON_PREMISES&&!d&&!s&&!c&&!((t=MB)!=null&&(t=t.user)!=null&&t.id),Q=(0,l.useContext)(n5.G)==="read_only";return(0,o.jsxs)("div",{className:"fixed_area",id:"fixed-area",ref:N,children:[j&&(0,o.jsx)(fa,{}),(0,o.jsx)(We.Ay,{}),(0,o.jsx)(PA,{}),Q&&(0,o.jsx)(V.H,{}),r?(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(K7,{}),Z&&(0,o.jsx)(IU.v,{})]}):(0,o.jsxs)(o.Fragment,{children:[g&&(0,o.jsx)(JM,{}),y&&(0,o.jsx)(ck,{}),w&&(0,o.jsx)(tM,{}),_&&(0,o.jsx)(pN,{}),p==="old_right"&&(0,o.jsx)(AN,{}),(0,o.jsx)(aM,{}),(0,o.jsx)(pk,{readOnly:!0,id:"clipboard",value:"COPIED__MB__WIDGET"}),ENV.IS_MO&&(0,o.jsx)(dk,{}),(0,o.jsx)(WA,{}),(0,o.jsx)(CU,{}),(0,o.jsx)(bU,{}),(0,o.jsx)(yk,{}),(0,o.jsx)(hk,{}),(0,o.jsx)(tk,{}),n&&(0,o.jsx)(K7,{}),!n&&(0,o.jsx)(YA,{}),(0,o.jsx)(mF.ac,{}),(0,o.jsx)(WL,{}),(0,o.jsx)(hF,{}),(0,o.jsx)(IF,{})]}),(0,o.jsx)(KU,{})]})},PF=(0,k.Mz)([re.W4,Y.jx,Y.pH,Y.rg,Y.uu,q.bP,Ch.wb,E3.jQ,q.vA,Ff.bc,G],(e,t,n,r,s,c,d,p,g,y,w)=>({isDesign:e.isDesign,onlyView:t===Te.qi.OnlyView,isCommunityPreviewMode:n,isEmbedV2PreviewMode:r,isHTMLZipPreviewMode:s,layout:c,isAutoFillPanelShow:d,isFindReplacePanelShow:p,isShowPreference:g,isExportMenuShow:y,enableShowContextMenu:w})),LF=(0,a.Ng)(e=>PF(e))(_F);var P1=i(64580),Gf=i(34860),NF=i(66247);const jF=E.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-ponrbl-0"})(["padding:4px;color:",";font-size:12px;font-weight:500;"],Sl.q.color_text_L2),lJ="\n border-radius: 6px;\n border: 1px solid "+Sl.q.color_split_line+";\n background: "+Sl.q.color_bg_normal+";\n box-shadow: 0px 4px 16px 0px rgba(53, 68, 93, 0.14); \n",cJ="\n height: unset;\n padding: 10px 12px;\n border-radius: 6px;\n line-height: 20px;\n font-size: 14px;\n font-weight: 500;\n color: "+Sl.q.color_text_L2+";\n\n &:hover:not(.is-disabled) {\n background: "+Sl.q.color_bg_item_gray+";\n }\n &.is-active {\n color: "+Sl.q.color_text_L1+";\n background: "+Sl.q.color_bg_menu_hover+";\n }\n",DF=e=>{let{className:t,children:n}=e;return(0,o.jsx)(jF,{className:t,children:n})},OF=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-tp3fgw-0"})([".laptop{width:20px;height:20px;border-radius:2px;}.sketch,.proto{width:20px;height:20px;}.carat{position:absolute;left:12px;top:12px;}.svg-icon:not(.pure-svg-icon) > .laptop{fill:#0072ff;}",";ul{&.SubMenu{border-radius:8px;}}li{list-style:none;}a{color:",";}.MenuItem{a{.shortfont kbd{color:rgba(255,255,255,0.7);}}&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}.toolbar-feature-notice{&.versionHistory{left:111px;}&.versionHistoryTop{left:47px;}}}.SubMenu{border-radius:4px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";&:lang(en){min-width:200px;}.MenuItem{& > a{&:lang(en){padding-left:27px;}}&.hasIcon{> a{&:lang(en){padding-left:10px;}}}&.findReplaceItem.hasIcon,&.pastePropertiesItem.hasIcon{a{&:lang(en){padding-left:27px;}}.MenuItem{a{.shortfont kbd{color:",";}}&.disabled a{color:",";.shortfont kbd{color:",";}}}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}}}}"],pr.ZJ,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.menu_content_shadow,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01),RF=E.Ay.div.withConfig({displayName:"styles__StyledToolbarLeftMenu",componentId:"sc-tp3fgw-1"})(["display:flex;align-items:center;pointer-events:auto;.toolbar-logo-container{width:48px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;.toolbar-icon-item.toolbar-basket-quit{width:32px;height:32px;.svg-icon{width:32px;height:32px;}}.toolbar-logo-icon{width:24px;height:24px;margin:4px;path{fill:",";}}.down-container{width:16px;height:32px;display:flex;align-items:center;justify-content:center;&.active,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.toolbar-dropDown{width:16px;height:16px;margin-top:0;color:",";}&:not(.active):hover{background:",";}&.active{background:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),o9=(0,E.Ay)(DF).withConfig({displayName:"styles__StyledPluginMenu",componentId:"sc-tp3fgw-2"})(["&.plugin-download-link-container{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;a{padding:8px 12px;border-radius:6px;font-size:12px;line-height:16px;width:100%;display :inline-block;font-weight:400;&:hover{background:",";}&:active{background:",";.text{color:",";}}li{display:flex;flex-direction:row;justify-content:space;align-items:center;.text{margin-left:8px;color:",";white-space:nowrap;}.wrapper{position:relative;.svg-icon.carat{position:absolute;left:70%;top:50%;}}}}a:hover{background:",";}a:active{background:",";.text{color:",";}}}"],Sl.q.color_bg_item_gray,Sl.q.color_bg_menu_hover,Sl.q.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1);var Zf=i(17573);const k4=(e,t)=>{const n=(0,l.useCallback)(c=>(e.subscribe(c),()=>{e.unsubscribe(c)}),[e]),r=(0,l.useCallback)(()=>e[t],[e,t]);return(0,l.useSyncExternalStore)(n,r,r)},e6=()=>window.MB_DESKTOP_VERSION||window.isElectron||/Electron/i.test(navigator.userAgent),dJ=()=>e6()&&(/MockingBot/i.test(navigator.userAgent)||/MB_DESKTOP/i.test(navigator.userAgent)),a9=()=>{if(!e6())return!1;const e=/MB_DESKTOP\/([^\s]+)/,t=navigator.userAgent.match(e);if(t&&t.length>0){const n=t[1],[r,s]=n.split(".");if(+r>1||+r==1&&+s>0)return!0}return!1},r9=()=>/(Macintosh)/i.test(navigator.userAgent),i9=()=>/(Windows)/i.test(navigator.userAgent),s9=()=>/(win64)/i.test(navigator.userAgent.toLowerCase()),l9=()=>/(win32)/i.test(navigator.userAgent.toLowerCase()),BF=()=>/(Harmony)/i.test(navigator.userAgent),pJ=()=>BF()&&e6(),c9=()=>/(linux)/i.test(navigator.userAgent.toLowerCase())&&/(ubuntu)/i.test(navigator.userAgent.toLowerCase()),uJ=()=>/(Lark)/i.test(navigator.userAgent),hJ=()=>/MicroMessenger/i.test(navigator.userAgent),mJ=()=>/Chrome/i.test(navigator.userAgent),fJ=()=>/Firefox/i.test(navigator.userAgent),gJ=()=>/Safari/i.test(navigator.userAgent),yJ=()=>/(iPod|iPhone|iPad|Android|MobileClient)/.test(navigator.userAgent),vJ=()=>/Android/i.test(navigator.userAgent),xJ=()=>/(iPad)/.test(navigator.userAgent),UF=()=>/wxwork/i.test(navigator.userAgent),bJ=()=>/(iPod|iPhone|iPad)/.test(navigator.userAgent),CJ=()=>!!(window.webkit&&window.webkit.messageHandlers),wJ=()=>navigator.standalone,SJ=()=>/\/uichina$/.test(location.pathname),AJ=()=>/\/forum$/.test(location.pathname),MJ=()=>/(ABOARD_SKETCH_PLUGIN|MB_SKETCH_PLUGIN)/.test(navigator.userAgent);function FF(){const e=window.navigator.userAgent;if(e.indexOf("iPad")>-1)return!0;if(e.indexOf("Macintosh")>-1)try{return document.createEvent("TouchEvent"),!0}catch(t){}return!1}const kJ=function(){const e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Android)/.test(e),s=/(?:Firefox)/.test(e),c=/(?:Chrome|CriOS)/.test(e),d=/(?:iPad|PlayBook)/.test(e)||r&&!/(?:Mobile)/.test(e)||s&&/(?:Tablet)/.test(e)||FF(),p=/(?:iPhone)/.test(e)&&!d;return{isTablet:d,isPhone:p,isAndroid:r,isPc:!p&&!r&&!n,isChrome:c}},EJ=()=>/(iPod|iPhone|Android|MicroMessenger)/i.test(navigator.userAgent),IJ=()=>{let e=!1;return UF()&&/Mobile/i.test(navigator.userAgent)&&(e=!0),e},TJ=()=>{try{return window.self!==window.top}catch(e){return!0}},E4=()=>{const[e,t]=(0,l.useState)(!1),n=(0,l.useRef)(null),r=e&&n.current?(0,ds.createPortal)((0,o.jsxs)(zF,{style:{position:"absolute",left:n.current.getBoundingClientRect().right+18,top:n.current.getBoundingClientRect().top},onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,o.jsx)("div",{className:"qr-image"}),(0,o.jsx)("span",{children:"\u626B\u7801\u4E0B\u8F7D\u5E94\u7528"})]}),document.body):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(VF,{ref:n,className:"ios-qr",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),onMouseDown:s=>s.stopPropagation(),onMouseUp:s=>s.stopPropagation(),onClick:s=>s.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/ios",className:"mobile",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"iOS App"})]})}),r]})},VF=E.Ay.div.withConfig({displayName:"IOSMenuItem__IOSItem",componentId:"sc-82ceby-0"})([".mobile{width:20px;height:20px;border-radius:2px;}width:178px;padding:8px 12px;box-sizing:border-box;display:flex;align-items:center;flex-direction:row;cursor:pointer;border-radius:6px;background:",";font-size:12px;line-height:16px;font-weight:400;color:",";&:hover{background:",";}li{display:flex;align-items:center;width:100%;gap:8px;}"],e=>e.theme.primary_gray_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),zF=E.Ay.div.withConfig({displayName:"IOSMenuItem__QRWrapper",componentId:"sc-82ceby-1"})(["background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);padding:12px;text-align:center;pointer-events:auto;z-index:9999;.qr-image{width:90px;height:90px;background:url('https://modao.cc/images/workspace/appstore_cn_org.jpg') center / contain no-repeat;}span{display:block;margin-top:6px;font-size:12px;color:#666;}"]),I4=()=>{const[e,t]=(0,l.useState)(!1),n=(0,l.useRef)(null),r=e&&n.current?(0,ds.createPortal)((0,o.jsxs)(HF,{style:{position:"absolute",left:n.current.getBoundingClientRect().right+18,top:n.current.getBoundingClientRect().top},onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,o.jsx)("div",{className:"qr-image"}),(0,o.jsx)("span",{children:"\u626B\u7801\u4E0B\u8F7D\u5E94\u7528"})]}),document.body):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(WF,{ref:n,className:"android-qr",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),onMouseDown:s=>s.stopPropagation(),onMouseUp:s=>s.stopPropagation(),onClick:s=>s.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/android",className:"mobile",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Android App"})]})}),r]})},WF=E.Ay.div.withConfig({displayName:"AndroidMenultem__AndroidItem",componentId:"sc-vys7ci-0"})([".mobile{width:20px;height:20px;border-radius:2px;}width:178px;padding:8px 12px;box-sizing:border-box;display:flex;align-items:center;flex-direction:row;cursor:pointer;border-radius:6px;background:",";font-size:12px;line-height:16px;font-weight:400;color:",";&:hover{background:",";}li{display:flex;align-items:center;width:100%;gap:8px;}"],e=>e.theme.primary_gray_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),HF=E.Ay.div.withConfig({displayName:"AndroidMenultem__QRWrapper",componentId:"sc-vys7ci-1"})(["background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);padding:12px;text-align:center;pointer-events:auto;z-index:9999;.qr-image{width:90px;height:90px;background:url('https://cdn-release.modao.cc/android/Android.png') center / contain no-repeat;}span{display:block;margin-top:6px;font-size:12px;color:#666;}"]),_J={CN:{link_enterprise:"/enterprise",link_supper:"/hc",link_chat_online:"",link_feedback:"https://jinshuju.net/f/JQG5ma",link_guide:"/hc",link_pricing:"/pricing",link_pricing_business:"/pricing",link_guide_enterprise_permissions:"/hc/articles/86",link_logo:"/brand",link_article_business_font_state:"/hc/articles/42",link_account_web_overview:"/me",link_enterprise_permissions:"/hc/articles/86"},US:{link_enterprise:"https://mockitt.com/enterprise.html",link_supper:"http://support.wondershare.com/",link_chat_online:"http://support.wondershare.com/en/1423",link_feedback:"",link_guide:"https://mockitt.com/guide/",link_pricing:"https://mockitt.com/store/individuals.html",link_pricing_business:"https://mockitt.com/store/business.html",link_guide_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html",link_logo:"https://mockitt.com",link_article_business_font_state:"",link_account_web_overview:"https://accounts.wondershare.com/web/overview",link_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html"},JP:{link_enterprise:"https://mockitt.com/enterprise.html",link_supper:"http://support.wondershare.jp/ask-a-question.html",link_chat_online:"",link_feedback:"",link_guide:"https://mockitt.com/guide/",link_pricing:"https://mockitt.com/pricing",link_pricing_business:"https://mockitt.com/pricing",link_guide_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html",link_logo:"https://mockitt.com",link_article_business_font_state:"",link_account_web_overview:"https://accounts.wondershare.jp/web/overview",link_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html"}},PJ=e=>LINK[ENV.IS_MO?"US":"CN"][e],d9=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/sketch-110-per.sketchplugin.zip":"https://cdn-release.modao.cc/sketch_aboard/sketch-112.sketchplugin.zip",p9=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/pre-xd-v1.0.3.xdx":"https://cdn-release.modao.cc/sketch_aboard/xd-v1.0.6.xdx?_gl=1*7vur9d*_ga*NjU0MjczNDQuMTY1NjMwODMwMg..*_ga_24WTSJBD5B*MTY1OTA2MzI4MC44OS4xLjE2NTkwNjUzMTIuNjA.",u9=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/md_ps_uxp-v1.0.2.ccx":"https://cdn-release.modao.cc/sketch_aboard/md_ps_uxp-v1.0.5.ccx?_gl=1*7vur9d*_ga*NjU0MjczNDQuMTY1NjMwODMwMg..*_ga_24WTSJBD5B*MTY1OTA2MzI4MC44OS4xLjE2NTkwNjUzMTIuNjA.",h9=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/MockingBot.zh.sketchplugin.zip":"https://cdn-release.modao.cc/sketch/MockingBot.zh.sketchplugin.zip",z2="1.5.3",GF="https://cdn-release.modao.cc/desktop/prod-"+z2+"/darwin/modao-darwin-x64-zh-"+z2+".dmg",ZF="https://cdn-release.modao.cc/desktop/prod-"+z2+"/darwin/modao-darwin-arm64-zh-"+z2+".dmg",KF="https://cdn.modao.cc/MockittEnterprise-darwin-x64-zh-1.4.0.dmg",YF="https://cdn.modao.cc/MockittEnterprise-darwin-arm64-zh-1.4.0.dmg",m9="https://cdn-release.modao.cc/desktop/prod-"+z2+"/win32/modao-win32-x64-zh-"+z2+".exe",f9="https://cdn-release.modao.cc/desktop/prod-"+z2+"/win32/modao-win32-ia32-zh-"+z2+".exe",g9="https://cdn-release.modao.cc/desktop/prod-"+z2+"/win32/modao-win32-ia32-"+z2+".zip",LJ="https://cdn.modao.cc/MockittEnterprise-win32-x64-zh-1.4.0.exe",NJ="https://cdn.modao.cc/MockittEnterprise-win32-ia32-1.4.0.zip",jJ="https://cdn.modao.cc/MockittEnterprise-win32-ia32-1.4.0.zip",y9="https://cdn-release.modao.cc/desktop/prod-"+z2+"/linux/modao-linux-x64-"+z2+".deb",DJ="https://cdn-release.modao.cc/MockittEnterprise-linux-x64-1.4.0.deb";class XF extends l.PureComponent{constructor(){var t;super(...arguments),t=this,(0,O.A)(this,"state",{isOpen:!1,position:{left:6,top:46},canPasteProperties:!1}),(0,O.A)(this,"handleToggle",function(n){n===void 0&&(n=void 0);const{isOpen:r}=t.state,s=n===void 0?!r:n;t.setState({isOpen:s}),(0,c0.kX)({operation_type:c0.mV.BackDropMenu})}),(0,O.A)(this,"handleExitCombo",()=>{const{dispatch:n}=this.props;n({type:"entry:exit:combo"})})}render(){const{dispatch:t,onlyView:n,theme:r,isShowExitCombo:s}=this.props,{isOpen:c,position:d}=this.state,p=(0,ic.Y8)(r);return(0,o.jsxs)(RF,{children:[(0,o.jsxs)("div",{className:m()("toolbar-logo-container",{active:c}),children:[s?(0,o.jsx)(Tu.A,{className:"toolbar-basket-quit",svgIconName:"art_board/basket/quit",toolTipName:I18N.ToolBar.back_to_edit,toolTipDistance:8,onClick:this.handleExitCombo}):(0,o.jsx)("img",{className:"toolbar-logo-icon",src:p,onClick:()=>this.handleToggle()}),(0,o.jsx)("div",{className:m()("down-container",{active:c}),onClick:()=>this.handleToggle(),children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down-16-left"})})]}),c&&(0,o.jsx)(OF,{position:d,onClose:()=>this.handleToggle(!1),children:(0,o.jsx)(QF,{onlyView:n,dispatch:t})})]})}}const QF=(0,l.memo)(e=>{let{dispatch:t,onlyView:n}=e;const[r,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[p,g]=(0,l.useState)((0,jt.Yt)("isShowVersionSignal",(0,Zf.Ds)(),jt.qW.Boolean)),y=k4(sdkStore,"canUndo")(),w=k4(sdkStore,"canRedo")(),_=(0,a.d4)(qF);(0,l.useEffect)(()=>{(async()=>{const Cc=!!await(0,Lt.LD)({isShowPrompt:!1}),kl=_.newSelection.map(Zl=>sdkStore.getHotItem(Zl)),el=(await(0,Lt.FR)(kl)).canPaste;s(Cc),d(el)})()},[]);const j=()=>{t({type:"entry:leave:project"})},N=()=>{t({type:"entry:toolbar:open:versionControl:modal"}),p&&((0,jt.a0)("isShowVersionSignal",!1,jt.qW.Boolean),g(!1)),(0,c0.kX)({operation_type:c0.mV.VersionToDropMenu})},Z=()=>{t({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,hd.kH)("file_information",{source:"\u8FD4\u56DE\u4E0B\u62C9\u7BAD\u5934-\u6587\u4EF6\u4FE1\u606F"})},Q=Wa=>{Wa.preventDefault(),t({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},se=Wa=>{Wa.preventDefault(),ENV.IS_MO?(0,Ql.JW)("https://mockitt.wondershare.com/whats-new.html","_blank","noreferrer"):(0,Ql.JW)("/changelog","_blank","noreferrer"),MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})},ie=Wa=>{Wa.preventDefault(),t({type:"toggle:showShortCutArtBoard"})},he=Wa=>{Wa.preventDefault(),t({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),(0,c0.kX)({operation_type:c0.mV.NewbieVideo})},xe=Wa=>{Wa.preventDefault(),t({type:"preference:open:appearance"}),t({type:Hs.y.entryKey["font:fontModal:close"],payload:{closeOther:!0}})},Se=Wa=>{Wa.preventDefault(),(0,Ql.JW)("https://www.youtube.com/playlist?list=PLwqdiqSxXvnmIu3Vlis-GKrxVokuci0RK","_blank","noreferrer")},_e=()=>{MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:start:saving"})},De=Wa=>{Wa.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&t({type:"entry:toolbar:open:export_menu"})},Je=Wa=>{Wa.preventDefault(),y&&t({type:"entry:undo-stack:undo"})},Ne=Wa=>{Wa.preventDefault(),w&&t({type:"entry:undo-stack:redo"})},pt=Wa=>{Wa.preventDefault(),t({type:"entry:cut:items"}),(0,ii.H8)()&&(0,Lt.P8)()},_t=Wa=>{Wa.preventDefault(),t({type:"entry:copy:items",payload:{needPasteProperties:!0}}),(0,ii.H8)()&&(0,Lt.P8)()},gt=Wa=>{Wa.preventDefault(),t({type:"entry:toggle:paste:direct:by:contextmenu"})},Ct=Wa=>{Wa.preventDefault(),t({type:"entry:select:all"})},zt=Wa=>{Wa.preventDefault(),t({type:"entry:update:preference",payload:{theme:ic.Sx.LIGHT}}),t({type:"entry:init:ruler:canvas"})},Dt=Wa=>{Wa.preventDefault(),t({type:"entry:update:preference",payload:{theme:ic.Sx.DARK}}),t({type:"entry:init:ruler:canvas"})},sn=Wa=>{const{showRuler:Cc}=_;Wa.preventDefault(),t({type:"entry:update:preference",payload:{ruler:!Cc}})},Rn=Wa=>{const{isShowReferLine:Cc}=_;Wa.preventDefault(),t({type:"entry:update:preference",payload:{show_ruler_line:!Cc}})},On=Wa=>{const{isShowAlignLine:Cc}=_;Wa.preventDefault(),t({type:"entry:update:preference",payload:{show_align_line:!Cc}})},Lo=Wa=>{Wa.preventDefault(),t({type:"entry:toggle:left-nav-panel"})},Yo=Wa=>{Wa.preventDefault(),t({type:"entry:toggle:right-panel"})},Cn=Wa=>{Wa.preventDefault(),t({type:"entry:design:zoom:in"})},hn=Wa=>{Wa.preventDefault(),t({type:"entry:design:zoom:out"})},oa=Wa=>{Wa.preventDefault(),t({type:"entry:set:scale",payload:{scale:100}})},Ao=Wa=>{Wa.preventDefault(),t({type:"entry:zoom:fit:scale:offset"})},ca=Wa=>{Wa.preventDefault(),t({type:"entry:design:zoom:selection"})},va=Wa=>{Wa.preventDefault(),t({type:"entry:isShowSticky:toggle"})},ra=()=>{t({type:"comment:toggle:isShowCommentInCanvas"})},Jo=Wa=>{Wa.preventDefault(),t({type:"entry:findReplacePanel:toggle:show"})},$o=()=>{t({type:"entry:update:preference",payload:{isShowMultiCursor:!_.isShowMultiCursor}})},sa=Wa=>{Wa.preventDefault(),t({type:"entry:paste:items:properties"})},da=Wa=>{Wa.preventDefault(),t({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:ws,isEditingUserCombo:Rs}}})},nr=()=>{switch(!0){case i9():return s9()?m9:l9()?f9:g9;case c9():return y9;default:return null}},cr=()=>{switch(!0){case i9():return s9()?m9:l9()?f9:g9;case c9():return y9;default:return null}},Vr=()=>{if(ENV.IS_ON_PREMISES){const Wa=nr();(0,Ql.JW)(Wa,nc)}else{const Wa=ENV.IS_MO?"https://mockitt.com/download.html#":"https://modao.cc/feature/downloads.html",Cc=cr();if(!ENV.IS_MO&&Cc){(0,Ql.JW)(Cc,nc);return}(0,Ql.JW)(Wa)}},yr=function(Wa,Cc){return Wa===void 0&&(Wa=""),Cc===void 0&&(Cc=!1),(0,o.jsx)(NF.A,{on:Cc,className:m()("toolbar-feature-notice",Wa)})},pi=()=>_.newSelection.length===0,hi=(0,o.jsx)(Et.C,{name:"toolbar/selected",className:"selected-icon"}),Hi=(0,o.jsx)("div",{className:"menu-divider"}),{showRuler:Kr,isShowReferLine:Gi,theme:ec,isLeftShow:Ul,isShowRightPanel:gs,isShowSticky:Oi,isShowAlignLine:wi,isShowMultiCursor:Ps,isEditingCombo:ws,isEditingUserCombo:Rs,isShowExport:bl,isShowCommentInCanvas:Cl,currentUser:bd,currentOrg:Jc}=_,tc=ec==="dark",Id=pi(),nc=a9()?"_self":"_blank";return(0,o.jsxs)(l.Fragment,{children:[!n&&(0,o.jsxs)(o.Fragment,{children:[!ws&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He.Dr,{text:I18N.ToolBar.back_to_dashboard,onClick:j}),(0,o.jsx)(Tt.cG,{})]}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.save,hotKeyText:rn.V.save,onClick:_e,disabled:!1}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.export2,onClick:De,disabled:!(bl&&!ws)}),(0,o.jsxs)(He.Dr,{text:I18N.ToolBar.edit,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ToolBar.undo,onClick:Je,disabled:!y,hotKeyText:rn.V.undo}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.redo,onClick:Ne,disabled:!w,hotKeyText:rn.V.redo}),Hi,(0,o.jsx)(He.Dr,{text:I18N.ToolBar.cut,onClick:pt,disabled:Id,hotKeyText:rn.V.cut}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.copy+"/"+I18N.ContextMenu.copy_properties,onClick:_t,disabled:Id,hotKeyText:rn.V.copy}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.paste,onClick:gt,disabled:!r,hotKeyText:rn.V.past}),(0,o.jsx)(He.Dr,{text:I18N.ContextMenu.paste_properties,onClick:sa,hotKeyText:rn.V.pasteProperties,disabled:!c,className:"pastePropertiesItem"}),Hi,(0,o.jsx)(He.Dr,{text:I18N.ToolBar.select_all,onClick:Ct,hotKeyText:rn.V.selectAll}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.find_replace,onClick:Jo,hotKeyText:rn.V.findReplace,className:"findReplaceItem"}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(Vt.fc,{dispatch:t,from:Wt.G.TopBar,user:bd,org:Jc})]})]}),(0,o.jsxs)(He.Dr,{subMenuClassName:"inner-sub",text:I18N.ToolBar.view,isAiry:!0,children:[(0,o.jsxs)(He.Dr,{text:I18N.ToolBar.theme,isAiry:!0,children:[(0,o.jsx)(He.Dr,{text:I18N.ToolBar.theme_light,onClick:zt,icon:tc?null:hi}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.theme_dark,onClick:Dt,icon:tc?hi:null})]}),Hi,(0,o.jsx)(He.Dr,{text:I18N.ToolBar.scale_length,onClick:sn,icon:Kr?hi:null}),Kr&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.ref_line,onClick:Rn,icon:Gi?hi:null}),Kr&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.align_line,onClick:On,icon:wi?hi:null}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.sticky,onClick:va,icon:Oi?hi:null,hotKeyText:rn.V.sticky}),!ws&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.comment,onClick:ra,icon:Cl?hi:null}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.multi_user_mouse_pointer,onClick:$o,icon:Ps?hi:null}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.show_left_panel,onClick:Lo,icon:Ul?hi:null,hotKeyText:rn.V.showLeftPanel}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.show_right_panel,onClick:Yo,icon:gs?hi:null,hotKeyText:rn.V.showRightPanel}),(0,o.jsx)(Tt.cG,{}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.zoomin,onClick:Cn,hotKeyText:rn.V.zoomIn}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.zoomout,onClick:hn,hotKeyText:rn.V.zoomOut}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.zoom_to_hundred,onClick:oa,hotKeyText:rn.V.zoomToHundred}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.fit_canvas,onClick:Ao,hotKeyText:rn.V.fitCanvas}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.zoom_selection,onClick:ca,hotKeyText:rn.V.zoomSelection})]}),!n&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.favorite_set,onClick:xe}),(0,o.jsx)(Tt.cG,{}),!n&&(0,o.jsxs)(o.Fragment,{children:[!ws&&(0,o.jsx)(He.Dr,{text:I18N.ProjectSummaryModal.title,onClick:Z}),(0,o.jsx)(He.Dr,{className:"version-history",icon:yr("versionHistory",p),text:I18N.ToolBar.show_version_history,onClick:N}),(0,o.jsx)(He.Dr,{text:ws?I18N.ToolBar.widget_trash_bin:I18N.ToolBar.page_trash_bin,onClick:da}),(0,o.jsx)(Tt.cG,{})]}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.help,canClick:!0,isAiry:!0,children:!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(zo.kN,{children:(0,o.jsx)(He.Dr,{text:I18N.ToolBar.online_customer_service})}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.help_center,onClick:Q})]})}),ENV.IS_MO&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.tutorial,onClick:Se}),(0,o.jsx)(He.Dr,{text:I18N.ToolBar.shortcuts,onClick:ie}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.newbie_video,onClick:he}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(He.Dr,{text:I18N.ToolBar.feature_update,onClick:se,disabled:!1,canClick:!0}),(0,o.jsx)(He.Dr,{text:"\u4E0B\u8F7D\u5BA2\u6237\u7AEF",canClick:!0,isAiry:!0,children:ENV.IS_ON_PREMISES&&!a9()?(0,o.jsx)(o9,{className:"plugin-download-link-container",children:ENV.IS_MO&&r9()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:d9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(Et.C,{name:"toolbar/create/aboard",className:"sketch",isColorPure:!0}),(0,o.jsx)(Et.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u534F\u4F5CSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:h9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(Et.C,{name:"toolbar/create/prototype",className:"proto",isColorPure:!0}),(0,o.jsx)(Et.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u539F\u578BSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:p9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(Et.C,{name:"toolbar/create/adobexd",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe XD\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:""+u9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(Et.C,{name:"toolbar/create/photoshop",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe PS\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:KF,target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFIntel\u82AF\u7247"})]})}),(0,o.jsx)("a",{href:YF,target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFApple\u82AF\u7247"})]})}),(0,o.jsx)(E4,{}),(0,o.jsx)(I4,{})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:d9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(Et.C,{name:"toolbar/create/aboard",className:"sketch",isColorPure:!0}),(0,o.jsx)(Et.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u534F\u4F5CSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:h9(),onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(Et.C,{name:"toolbar/create/prototype",className:"proto",isColorPure:!0}),(0,o.jsx)(Et.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u539F\u578BSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:p9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(Et.C,{name:"toolbar/create/adobexd",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe XD\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:u9(),target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(Et.C,{name:"toolbar/create/photoshop",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe PS\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{onClick:Vr,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Windows\u684C\u9762\u7AEF"})]})}),(0,o.jsx)(E4,{}),(0,o.jsx)(I4,{})]})}):(0,o.jsx)(o9,{className:"plugin-download-link-container",children:!ENV.IS_MO&&r9()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:GF,target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFIntel\u82AF\u7247"})]})}),(0,o.jsx)("a",{href:ZF,target:nc,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFApple\u82AF\u7247"})]})}),(0,o.jsx)(E4,{}),(0,o.jsx)(I4,{})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{onClick:Vr,onMouseDown:Wa=>Wa.stopPropagation(),onMouseUp:Wa=>Wa.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(Et.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Windows\u684C\u9762\u7AEF"})]})}),(0,o.jsx)(E4,{}),(0,o.jsx)(I4,{})]})})})]})}),JF=(0,k.Mz)([Y.jx,q.O4],(e,t)=>({onlyView:e===Te.qi.OnlyView,theme:t})),qF=(0,k.Mz)([q.qT,q.O4,ht.Xf,q.gf,Wc.UI,C.$7,q.Nn,q.lU,we.r,P.EH,re.HW,re.wA,Oe.p$],(e,t,n,r,s,c,d,p,g,y,w,_,j)=>{let{isEditingCombo:N,isEditingProjectMain:Z,isEditingUserCombo:Q}=g;return{showRuler:e,theme:t,isLeftShow:n,isShowReferLine:r,isShowRightPanel:s,isShowSticky:c,isShowAlignLine:d,isShowMultiCursor:p,isEditingCombo:N,isEditingUserCombo:Q,isShowExport:Z,isShowCommentInCanvas:y,currentUser:w,currentOrg:_,newSelection:j}}),$F=(0,a.Ng)(e=>JF(e))(XF);var _u=i(81122),eV=i(9248);const t6=e=>{const{value:t,className:n,isEditing:r,onConfirm:s,onChange:c,isShowToolTips:d=!1}=e,[p,g]=(0,l.useState)(t),y=_=>{g(_),c&&c(t)},w=()=>{s&&s(p,p!==t)};return(0,l.useEffect)(()=>{g(t)},[t,r]),(0,o.jsx)(eV.A,{value:p,className:n,editing:r,onBlur:w,onChange:y,isShowToolTips:d})},tV=E.Ay.div.withConfig({displayName:"styles__StyledDesignSaveTips",componentId:"sc-eg733g-0"})(["color:",";display:flex;align-items:center;justify-content:flex-start;height:32px;width:auto;.toolbar-saveSuccess{color:#298df8;width:14px;height:14px;}.svg-icon.toolbar-saveSuccess{color:#23b571;}.save-tips-dropdown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.only-view-container{display:flex;flex:1;align-items:center;justify-content:center;max-width:350px;.center-name-wrapper{position:relative;}.can-edit-btn{display:flex;padding:3px 12px;border:1px solid ",";border-radius:100px;margin-right:4px;font-size:12px;color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}.only-can-view{font-size:12px;color:",";margin-left:8px;}.save-name{cursor:default;}}.save-name{width:auto;max-width:none;font-size:14px;color:",";text-align:center;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.screen-glue-name{cursor:auto;}&.is-editing{width:100%;.is-editing textarea{color:",";}}.save-name-edit-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:13px;line-height:20px;height:20px;&.is-editing{border-bottom:unset;textarea{font-weight:bold;text-align:center;}}}}.mockitt-icon{width:193px;height:40px;}.loading-box{width:32px;height:32px;margin-left:12px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;&.is-saving{width:16px;height:16px;color:#1684fc;animation:design-ani-spinning 1.5s infinite ease-out;}&:not(.is-saving){path{&:first-child{fill:",";}&:last-child{fill:",";}}}&.is-success{path{&:last-child{fill:",";}}}&.is-offline{path{&:last-child{fill:",";}}}}}.undoIcon,.redoIcon{width:32px;height:32px;}.save-name{&.is-editing{max-width:230px;}.save-name-edit-name{max-width:230px;}}&.isEditing{width:100%;.save-name.is-editing{max-width:290px;width:auto;}.save-name-edit-name{max-width:290px;}}@keyframes design-ani-spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_success,e=>e.theme.color_error);var v9=i(68587),nV=i(54844),oV=i(29187);const aV=E.Ay.div.withConfig({displayName:"styles__StyledFlpakSizeWarnTips",componentId:"sc-iz64gy-0"})(["cursor:pointer;position:relative;width:82px;height:24px;padding:4px 6px;border-radius:4px;background-color:#FAAD14;flex-shrink:0;margin-left:10px;display:flex;justify-content:space-between;color:#FFF;font-size:12px;font-weight:600;line-height:16px;.svg-box{width:16px;height:16px;border-radius:4px;&:hover{background-color:rgba(255,255,255,0.2);}svg{width:16px;}}.corner{position:absolute;left:-3px;top:9px;transform:rotate(45deg);width:6px;height:6px;border-radius:0 1px;background-color:#FAAD14;}"]),rV=e=>{const{onClose:t,onClick:n}=e;return(0,o.jsxs)(aV,{onClick:n,children:[(0,o.jsx)("span",{children:"\u4F53\u79EF\u8F83\u5927"}),(0,o.jsx)("div",{className:"svg-box",children:(0,o.jsx)(Et.C,{name:"common/close_ninth",className:"flpak-size-warn-close",onClick:r=>t(r),isColorPure:!0})}),(0,o.jsx)("div",{className:"corner"})]})},x9=(0,l.memo)(rV),iV=e=>{let{dispatch:t}=e;const n=k4(sdkStore,"canUndo")(),r=k4(sdkStore,"canRedo")(),s=()=>{n&&t({type:"entry:undo-stack:undo"})},c=()=>{r&&t({type:"entry:undo-stack:redo"})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Tu.A,{onClick:s,className:"undoIcon",toolTipName:I18N.ToolBar.undo,svgIconName:"toolbar/undo",toolTipDistance:8,disabled:!n}),(0,o.jsx)(Tu.A,{onClick:c,className:"redoIcon",toolTipName:I18N.ToolBar.redo,svgIconName:"toolbar/redo",toolTipDistance:8,disabled:!r})]})},sV=(0,k.Mz)([Y.jx,Oe.p$],(e,t)=>({viewType:e,newSelection:t})),lV=(0,a.Ng)(e=>sV(e))(iV),cV=e=>{if(!e)return{};const t=window.getComputedStyle(e);return["fontSize","fontFamily","fontWeight","lineHeight","letterSpacing","overflow","tabSize","textIndent","textTransform","whiteSpace","wordBreak","wordSpacing","boxSizing","padding","border"].reduce((r,s)=>(Number.isNaN(Number(s))&&s!=="length"&&(r[s]=t[s]),r),{})},dV=(0,l.forwardRef)(function(t,n){const{className:r,style:s,value:c,maxLength:d,autoWidth:p=!1,cursorPosition:g="end",onSave:y,onCancel:w,onEnd:_}=t,j=l.useRef(null),N=l.useRef(null),Z=l.useRef(!1),Q=l.useRef(),[se,ie]=l.useState(c),[he,xe]=l.useState({});l.useEffect(()=>{ie(c)},[c]);const Se=()=>{const Rn=j.current;if(!Rn)return;const{width:On}=N.current.getBoundingClientRect();Rn.style.width=On+"px"};l.useEffect(()=>{if(!j.current)return;const Rn=j.current;Rn.focus(),Rn.select(),g==="start"&&(Rn.scrollLeft=0),p&&(xe(cV(Rn)),Se())},[g,p]),l.useEffect(()=>{p&&new ResizeObserver(()=>{Se()}).observe(N.current)},[p]);const _e=Rn=>{let{target:On}=Rn;ie(On.value.replace(/[\n\r]/g,""))},De=()=>{Z.current=!0},Je=()=>{Z.current=!1},Ne=Rn=>{let{keyCode:On}=Rn;Z.current||(Q.current=On)},pt=()=>{y(se.trim())};(0,l.useImperativeHandle)(n,()=>({confirmChange:pt,cancel:w}));const _t=Rn=>{let{keyCode:On,ctrlKey:Lo,altKey:Yo,metaKey:Cn,shiftKey:hn}=Rn;Q.current===On&&!Z.current&&!Lo&&!Yo&&!Cn&&!hn&&(On===13?(pt(),_==null||_()):On===27&&w())},gt=()=>{pt()},Ct=Rn=>Rn!==null&&typeof Rn=="object"&&!Array.isArray(Rn),zt=l.useMemo(()=>p?{minWidth:0,maxWidth:"100%",...Ct(p)?p:{}}:null,[p]),Dt={minWidth:zt==null?void 0:zt.minWidth,maxWidth:zt==null?void 0:zt.maxWidth,width:zt&&"auto",...s},sn={...he,...Dt,whiteSpace:"nowrap",position:"absolute",visibility:"hidden"};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",{ref:j,className:r,maxLength:d,value:se,onChange:_e,onKeyDown:Ne,onKeyUp:_t,onCompositionStart:De,onCompositionEnd:Je,onBlur:gt,style:Dt}),(0,o.jsx)("span",{className:"auto-width-placeholder",ref:N,style:sn,children:se})]})}),pV=e=>{const{value:t,className:n,isEditing:r,theme:s,onConfirm:c}=e,p={...{color:s===ic.Sx.LIGHT?"rgba(0, 0, 0, 0.85)":"rgba(255, 255, 255, 0.85)",fontSize:"13px",height:"20px",lineHeight:"20px",fontWeight:"600"},paddingTop:"2px"};return(0,o.jsx)("div",{className:n,children:r?(0,o.jsx)(dV,{cursorPosition:"start",autoWidth:{minWidth:0,maxWidth:"230px"},style:p,value:t,onSave:c,onCancel:()=>c(t)}):(0,o.jsx)(t6,{value:t,className:"save-name-edit-name",isEditing:!1})})};var pm=i(87332);const uV=E.Ay.div.withConfig({displayName:"styles__StyledPlanTag",componentId:"sc-tq258e-0"})(["display:flex;align-items:center;padding:0px 4px;height:16px;padding-top:1px;margin-left:6px;border-radius:4px;background:",";font-weight:500;font-size:12px;color:",';font-family:"PingFang SC";font-size:10px;font-weight:500;cursor:pointer;svg{width:30px;height:30px;}span{display:inline-block;transform:scale(.83);transform-origin:center;}'],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2),hV=E.Ay.div.withConfig({displayName:"styles__StyledPlanDropMenu",componentId:"sc-1wi33sa-0"})(["padding:16px;width:378px;margin-left:12px;display:flex;flex-direction:column;border-radius:12px;border:1px solid ",";background:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);.free-plan{padding:10px 12px;display:flex;position:relative;align-items:center;border-radius:10px;background:",";gap:12px;overflow:hidden;svg{width:32px;height:32px;}.plan-info{display:flex;flex-direction:column;.title{color:",';font-family:"HarmonyOS Sans SC";font-size:12px;font-style:normal;font-weight:500;line-height:16px;}.desc{color:',';font-family:"HarmonyOS Sans SC";font-size:11px;font-style:normal;font-weight:400;line-height:16px;}}}.paid-card{padding:12px;margin-top:8px;margin-bottom:16px;display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:12px;border-radius:10px;background:',";overflow:hidden;.plan-head{gap:4px;display:flex;flex-direction:row;align-items:center;color:",';font-family:"HarmonyOS Sans SC";font-size:12px;font-weight:500;svg{width:16px;height:16px;}}.plan-container{width:100%;display:flex;flex-direction:row;gap:8px;}}.plan-tag{right:0;top:0;padding:3px 6px;min-width:56px;display:flex;position:absolute;align-items:center;justify-content:center;color:white;font-size:11px;border-radius:0px 0px 0px 12px;background:',";&.purple{background:#8A78FE;}&.org-full-plan{min-width:auto;top:-1px;padding:3px 2px;line-height:10px;font-size:10px;background-color:",";color:",';border-radius:0px 0px 0px 6px;}}.upgrade-btn{width:100%;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:linear-gradient(105deg,#73C7FF -23.92%,#4D54FF 51.2%,#FF83F9 118.13%);color:#FFF;font-family:"PingFang SC";font-size:13px;font-style:normal;font-weight:500;line-height:normal;gap:4px;cursor:pointer;&:hover,&:active{svg{transform:translateY(-2px);transition:transform .2s ease-in-out;}}}'],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_navigation_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.free_card_panel_paid_plan_bg,e=>e.theme.free_card_exclusive_benefits_text_color,e=>e.theme.color_slider_normal,e=>e.theme.free_card_org_full_tag_bg,e=>e.theme.free_card_org_full_tag_text_color),mV=E.Ay.div.withConfig({displayName:"styles__StyledPlanItem",componentId:"sc-1wi33sa-1"})(["height:90px;flex:1 0 0;display:flex;position:relative;flex-direction:column;justify-content:center;align-items:center;border-radius:8px;overflow:hidden;border:0.5px solid ",";background:",";svg{width:30px;height:30px;}.label{margin-top:10px;color:",';font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:500;line-height:16px;}.desc{color:',';text-align:center;font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:400;line-height:16px;}'],e=>e.theme.free_card_panel_plan_item_border,e=>e.theme.free_card_panel_plan_item_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),fV=()=>[{label:I18N.payment.free_plan_label1,desc:I18N.payment.free_plan_desc1,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-page-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label2,desc:I18N.payment.free_plan_desc2,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-project-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label3,desc:I18N.payment.free_plan_desc3,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-template-count-unlimit",isColorPure:!0})}],gV=()=>[{label:I18N.payment.free_plan_label1,desc:I18N.payment.free_plan_desc1,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-page-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label4,desc:I18N.payment.free_plan_desc4,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-member-manage",isColorPure:!0})},{label:I18N.payment.free_plan_label5,desc:I18N.payment.free_plan_desc5,icon:(0,o.jsx)(Et.C,{name:"plan/free-card-template-count-unlimit",isColorPure:!0}),tag:(0,o.jsx)("div",{className:"plan-tag org-full-plan",children:I18N.payment.plan_org_full})}],yV=e=>{let{item:t}=e;const{icon:n,label:r,desc:s,tag:c}=t;return(0,o.jsxs)(mV,{children:[n,(0,o.jsx)("div",{className:"label",children:r}),(0,o.jsx)("div",{className:"desc",children:s}),c]})},vV=e=>{let{isPersonal:t,onUpgrade:n}=e;const r=(0,l.useMemo)(()=>t?fV():gV(),[t]);return(0,o.jsxs)(hV,{children:[(0,o.jsxs)("div",{className:"free-plan",children:[(0,o.jsx)(Et.C,{name:"plan/free-card-folder",isColorPure:!0}),(0,o.jsxs)("div",{className:"plan-info",children:[(0,o.jsx)("span",{className:"title",children:t?I18N.payment.free_solo:I18N.payment.free_org}),(0,o.jsx)("span",{className:"desc",children:I18N.payment.free_limit})]}),(0,o.jsx)("div",{className:"plan-tag",children:I18N.payment.current_plan})]}),(0,o.jsxs)("div",{className:"paid-card",children:[(0,o.jsxs)("div",{className:"plan-head",children:[(0,o.jsx)(Et.C,{name:"plan/free-card-purple-diamond",isColorPure:!0}),I18N.payment.member_exclusive_benefits]}),(0,o.jsx)("div",{className:"plan-container",children:r.map(s=>(0,o.jsx)(yV,{item:s},s.label))}),(0,o.jsx)("div",{className:"plan-tag purple",children:I18N.payment.after_upgrade})]}),(0,o.jsxs)("div",{className:"upgrade-btn",onClick:n,children:[I18N.ToolBar.upgradeToVersionControl.upgradeNow,(0,o.jsx)(Et.C,{name:"plan/upgrade-white-arrow",isColorPure:!0})]})]})},xV=()=>{const e=(0,a.d4)(re.K$),t=(0,l.useMemo)(()=>{if(!e)return!1;const{plan:r}=Xs.tz.InitialOrg(e).planSdk;return[Xs.L1.Free,Xs.Sj.OrgFree].includes(r)},[e]),n=()=>{const r=e&&e.otype!=="personal",d=(0,tr.l)(r&&e,"\u7F16\u8F91\u533A_v8\u9876\u90E8_\u5DE6\u4FA7_\u5347\u7EA7","workspace-v8_top_left_upgrade");MB.global.popupHelper.chargeAsync(d)};return t?(0,o.jsx)(pm.A,{renderOpener:(0,o.jsx)(uV,{children:I18N.Common.free}),renderMenu:(0,o.jsx)(vV,{isPersonal:(e==null?void 0:e.otype)==="personal",onUpgrade:n})}):null};class bV extends l.PureComponent{constructor(t){var n;super(t),(0,O.A)(this,"handleEdit",r=>{const{isRenderProjectTips:s}=this.props;s&&this.setState({isEditing:!0}),this.renameProjectEntry=r}),(0,O.A)(this,"handleChangeProjectName",r=>{const{dispatch:s}=this.props;s({type:"entry:update:root-project:name",payload:{name:r}}),this.setState({isEditing:!1}),(0,hd.kH)("rename_project",{project_type:"\u539F\u578B V8",source:this.renameProjectEntry})}),(0,O.A)(this,"handleChangeScreenGlueName",r=>{const{dispatch:s}=this.props;s({type:"entry:toolbar:update:screen_glue_name",payload:{name:r}}),this.setState({isEditing:!1})}),(0,O.A)(this,"handleSave",()=>{const{dispatch:r}=this.props;MB.global.experienceLoginModalHelper("isSave")||r({type:"entry:start:saving"})}),(0,O.A)(this,"handleClickVersionControl",()=>{this.props.dispatch({type:"entry:toolbar:open:versionControl:modal"}),(0,c0.kX)({operation_type:c0.mV.VersionToTitleMenu})}),(0,O.A)(this,"handleProjectSummaryClicked",()=>{this.props.dispatch({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,hd.kH)("file_information",{source:"\u9876\u680F\u4E2D\u90E8\u540D\u79F0\u4E0B\u62C9-\u6587\u4EF6\u4FE1\u606F"})}),(0,O.A)(this,"handleOpenTrash",r=>{r.stopPropagation();const{isShowExitCombo:s,isEditingUserCombo:c,dispatch:d}=this.props;d({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:s,isEditingUserCombo:c}}})}),(0,O.A)(this,"handleSaveTipsDropdown",()=>{(0,c0.kX)({operation_type:c0.mV.TitleDropMenu})}),(0,O.A)(this,"handleGoEdit",async()=>{const{rootProject:r,importAbarOptions:s}=this.props,{isFromAbar:c,tabCid:d}=s||{},p=c?"?from=zboard"+(d?"&tabCid="+d:""):"";location.href=(0,Hf.Dw)("design/"+r.cid+p)}),(0,O.A)(this,"handleGoToReadOnly",async()=>{const{rootProject:r,projectMeta:s,screenMeta:c,dispatch:d}=this.props;window.history.pushState("","",(0,Hf.Dw)(r.access_token+"/sharing?view_mode=read_only")),(0,v9.FR)(),MB.canEditByCurrentUser=!0,await d({type:"screen:update:state",payload:{isMultiplePage:!1}}),await d({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}});const p=MB.getRootProject()||MB.abarSubProject,{sharing:g}=await(0,nV.J_)({project:p,accessToken:p==null?void 0:p.access_token}),y=g.type==="default"?(g==null?void 0:g.view_sticky)==="view_sticky":g.view_sticky;await d({type:"current:update:state",payload:{sharingInReadOnly:{...g,view_sticky:y}}}),await d({type:"entry:root-project:readOnly:activate",payload:{projectBasic:r,projectMeta:s,screenCid:c.cid}}),await d({type:"entry:update:viewport:rect"}),(0,v9.RZ)(),(0,hd.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u53EA\u8BFB"}),(0,oV.wl)()}),(0,O.A)(this,"onFlpakSizeWarnTipsClose",r=>{r.stopPropagation(),this.setState({isFlpakSizeWarnTipsShow:!1})}),(0,O.A)(this,"onFlpakSizeWarnTipsClick",()=>{this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}})}),this.state={isEditing:!1,isSaved:!1,isOffline:!(0,kc.ys)(),isFlpakSizeWarnTipsShow:!!((n=H1.A.getFlpakSizeInfo())!=null&&n.isFlpakSizeWarn)},this.renameProjectEntry=""}UNSAFE_componentWillReceiveProps(t){this.props.isSaving&&!t.isSaving&&this.setState({isSaved:!0})}componentDidUpdate(){this.setState({isOffline:!(0,kc.ys)()}),this.state.isSaved&&(this.timer=setTimeout(()=>{this.setState({isSaved:!1})},2e3))}componentWillUnmount(){clearTimeout(this.timer)}render(){const{isSaving:t,onlyView:n,rootProjectName:r,editingComboName:s,isRenderProjectTips:c,isRenderScreenGlueTips:d,isRenderExperienceTips:p,isShowExitCombo:g,layoutV9:y="old",theme:w,dispatch:_}=this.props,{isSaved:j,isEditing:N,isFlpakSizeWarnTipsShow:Z,isOffline:Q}=this.state,se=CV({isSaving:t}),ie=t?I18N.ToolBar.IconSaving:Q?I18N.ToolBar.IconSaveFailure:I18N.ToolBar.IconSave,he=(0,Gf.OB)(),xe=()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving")};return(0,o.jsxs)(tV,{className:m()({isEditing:N}),children:[n?(0,o.jsxs)("div",{className:"only-view-container",children:[(0,o.jsx)("span",{className:"save-name",children:(0,al.qk)(r)}),Z&&!g&&(0,o.jsx)(x9,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})]}):(0,o.jsxs)(o.Fragment,{children:[p?ENV.IS_MO?(0,o.jsx)(SV,{}):(0,o.jsx)(wV,{}):(0,o.jsxs)("div",{className:m()("save-name",{"is-editing":N,"screen-glue-name":d}),onClick:()=>this.handleEdit("\u539F\u578B\u9876\u90E8\u680F"),children:[c?(0,o.jsx)(pV,{value:(0,al.qk)(r),className:"save-name-edit-name",isEditing:N,onConfirm:this.handleChangeProjectName,theme:w}):null,d?(0,o.jsx)(t6,{value:(0,al.qk)(s),className:"save-name-edit-name",isEditing:!1,onConfirm:this.handleChangeScreenGlueName}):null]}),!N&&!p&&(0,o.jsx)(o.Fragment,{children:Z&&!g&&(0,o.jsx)(x9,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})})]}),he&&(0,o.jsx)(xV,{}),!p&&!n&&(0,o.jsx)(Os.A,{content:ie,direction:"down",children:(0,o.jsx)("a",{className:"loading-box",onClick:xe,children:(0,o.jsx)(Et.C,{className:m()({"is-saving":t},{"is-offline":Q},{"is-success":!j&&!t}),name:se})})}),he&&(0,o.jsx)(lV,{dispatch:_})]})}}const CV=e=>{let{isSaving:t}=e;return t?"general/loading":"toolbar/saveTips/normal"},wV=()=>(0,o.jsx)("svg",{className:"mociking-icon",width:"150",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,o.jsx)("path",{d:"M93.982 1l7.194 7.279V1.393h1.945V13l-7.195-7.279v6.882h-1.944V1zm40.89.193c3.167 0 5.736 2.598 5.736 5.803s-2.569 5.804-5.736 5.804c-3.168 0-5.736-2.599-5.736-5.804s2.568-5.803 5.736-5.803zm-64.767 0c1.491 0 2.85.575 3.87 1.519l.186.18-1.374 1.392a3.759 3.759 0 0 0-2.682-1.124c-2.093 0-3.792 1.718-3.792 3.836 0 2.12 1.699 3.837 3.792 3.837.972 0 1.86-.37 2.53-.98l.152-.144 1.375 1.391a5.686 5.686 0 0 1-4.057 1.7c-3.167 0-5.736-2.599-5.736-5.804s2.569-5.803 5.736-5.803zm41.683 0c1.49 0 2.849.575 3.869 1.519l.187.18-1.375 1.392a3.759 3.759 0 0 0-2.681-1.124c-2.094 0-3.792 1.718-3.792 3.836 0 2.119 1.698 3.837 3.792 3.837a3.74 3.74 0 0 0 1.906-.52l.206-.13V8.964h-1.556V6.996h3.5V11.1a5.683 5.683 0 0 1-4.056 1.7c-3.168 0-5.736-2.598-5.736-5.804 0-3.205 2.568-5.803 5.736-5.803zm-55.028 0c3.155 0 5.714 2.588 5.714 5.78 0 3.193-2.559 5.781-5.714 5.781-3.155 0-5.714-2.588-5.714-5.78 0-3.193 2.559-5.781 5.714-5.781zm-8.143-.19v11.603h-1.945V5.724L43.31 9.128l-3.365-3.404v6.882H38V1.003l5.309 5.37 5.308-5.37zm37.783.383l-5.545 5.61 5.545 5.61h-2.625L78.62 7.39v5.213h-1.944V1.39h1.944v5.213l5.156-5.217H86.4zm63.6.004v1.967h-3.403v9.246h-1.944V3.357h-3.403V1.39H150zm-26.488 0c1.799 0 3.257 1.475 3.257 3.295 0 .718-.23 1.382-.616 1.922a3.302 3.302 0 0 1 1.394 2.701c0 1.82-1.459 3.295-3.257 3.295h-5.484V1.39h4.706zm-32.603 0v11.213h-1.945V1.389h1.945zm43.963 1.77c-2.094 0-3.792 1.718-3.792 3.836 0 2.12 1.698 3.837 3.792 3.837s3.791-1.718 3.791-3.837c0-2.118-1.697-3.836-3.791-3.836zM56.76 3.152c-2.086 0-3.777 1.711-3.777 3.822 0 2.11 1.691 3.82 3.777 3.82 2.086 0 3.777-1.71 3.777-3.82s-1.691-3.822-3.777-3.822zm67.53 4.828h-3.54v2.656h3.54a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328zm-.778-4.623h-2.761v2.656h2.761a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328z",fill:"#3F3A3A"}),(0,o.jsx)("path",{d:"M30 0v13.688h-2.09V2.16h-4.812c-.05.817-.143 2.386-.237 3.899-.304 4.932-3.03 6.967-5.42 7.94l-1-1.973c2.397-.8 4.186-2.825 4.377-6.271.074-1.342.16-2.725.214-3.595h-3.874V.001H30zM7.43 9.005v1.56H13v1.321H7.43v.48h5.803v1.321H0v-1.32h5.804v-.48H.232v-1.321h5.572v-1.56h1.625zm-5.34 0l-.233 1.2H.464l.233-1.2h1.392zm2.669 0l-.232 1.2H3.134l.233-1.2h1.392zm5.108 0l.232 1.2H8.706l-.232-1.2h1.393zm2.67 0l.232 1.2h-1.393l-.232-1.2h1.393zM12.653 0v4.803H7.429v.6h5.34v1.32H7.43v.601h5.572v1.32H.232v-1.32h5.572v-.6H.464V5.402h5.34v-.6H.58V0h12.073zm-6.85 1.32H2.206v2.162h3.599V1.32zm5.225 0H7.429v2.162h3.599V1.32zm-6.5.48l.231 1.202H3.367L3.134 1.8h1.393zm5.57 0l-.231 1.202H8.474L8.706 1.8H10.1z",fill:"#EB5648"})]})}),SV=()=>(0,o.jsx)("img",{className:"mockitt-icon",src:"/mb-workspace/images/workspace/mockitt_toolbar_icon.png",alt:""}),AV=(0,k.Mz)([q.O4],e=>({theme:e})),MV=(0,a.Ng)(e=>AV(e))(bV),kV=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1jhw9vf-0"})(["",";ul{li.MenuItem{a{& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}}}&.isEmbedV2Preview{top:32px !important;&.isFullScreen{top:48px !important;}ul{li{a{height:24px;}&.rResBunch::after{top:9px}}}}&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:12px;}&.rResBunch.selected .arrow-right{opacity:0;}&.rResBunch::after{opacity:0;position:absolute;top:13px;right:13px;content:'';width:7px;height:4px;display:inline-block;border:1px solid rgba(0,0,0,0.93);border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected::after{opacity:1;}&.rResCanvas::before{opacity:0;position:absolute;top:14px;right:24px;content:'';width:7px;height:4px;display:inline-block;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResCanvas.selected::before{opacity:1;}}a{height:32px;padding-left:16px;color:",";.expander{padding-left:0;padding-right:5px;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:","}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:#fff;}}.arrow-right{position:absolute;right:6px;top:10px;transform:rotate(-90deg);path{fill:#fff;}}}span{max-width:6em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.MenuItem{flex:1;.right-arrow{display:none;}}.SubMenu{border-radius:8px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";}.context-menu-mask{z-index:1001;}"],pr.ZJ,e=>e.theme.color_text_L0,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01),EV=E.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1jhw9vf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:24px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;margin-right:16px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],e=>e.theme.color_border_state,e=>e.theme.color_content_background_item_state_hover,e=>e.theme.color_content_text_item_state,e=>e.theme.color_content_text_item_state);class IV extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,O.A)(this,"createRef",t=>this.$ref=t),(0,O.A)(this,"handleToggle",t=>{const{isOpen:n}=this.state,r=t===void 0?!n:t;this.setState({isOpen:r,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(r)}),(0,O.A)(this,"handleSetPosition",t=>{if(!this.$ref||!t)return;const n=this.$ref.getBoundingClientRect();if(n){const r=(48-n.height)/2,s={left:n.left-2,top:n.bottom+r-2};this.setState({position:s})}}),(0,O.A)(this,"handleScreenList",(t,n,r)=>{const s=n.children;for(const c of s){const d={...c,depth:r,canExpand:!1,expand:!1,show:!0};c.children&&c.children.length>0?(t.push({...d,canExpand:!0,expand:!0}),this.handleScreenList(t,c,r+1)):t.push(d)}}),(0,O.A)(this,"handleActiveScreenMeta",t=>{if((0,br.Mo)(t))return;const{activeScreenMetaCid:r,dispatch:s}=this.props,{cid:c,key:d}=t,p=c||d;if(r===p)return;s({type:"entry:memory:current:screen:offset:scale"}),s({type:"entry:goto:project-alike",payload:{screenMetaCid:p}}),s(Te.GO.editBasketItemKey("")),s(Te.GO.editBasketHotItem(null)),s({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:p}});const g=rootSdk.sdkStore.getHotItem(p);s({type:"screen:update:state",payload:{currentPage:g}})}),(0,O.A)(this,"handleClickScreen",(t,n)=>{this.handleActiveScreenMeta(n),this.handleToggle(!1)})}render(){var t;const{screenTreeData:n,activeScreenMetaCid:r,fullScreenMode:s,isEmbedV2Preview:c}=this.props,{position:d,isOpen:p}=this.state,g=((t=sdkStore.getHotItem(r))==null||(t=t.hotAttr)==null?void 0:t.name)||"",y=[];return this.handleScreenList(y,n,0),y.length===0?null:(0,o.jsxs)(EV,{children:[(0,o.jsxs)("div",{className:m()("toolbar-menu-opener",{isFullScreen:s}),onClick:()=>this.handleToggle(!p),ref:this.createRef,children:[(0,o.jsx)("span",{className:"title",children:g}),(0,o.jsx)(Et.C,{className:"arrow-right",name:"common/expand"})]}),p&&(0,o.jsx)(kV,{className:m()(s&&"isFullScreen",c&&"isEmbedV2Preview"),position:d,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:(0,o.jsx)(TV,{activeScreenCid:r,screenList:y,onClickScreen:this.handleClickScreen})})]})}}const TV=e=>{let{activeScreenCid:t,screenList:n,onClickScreen:r}=e;const[s,c]=(0,l.useState)(n);(0,l.useEffect)(()=>{const g=document.querySelector(".scroll.rResBunch"),y=document.querySelector(".content-list.rResBunch");if(t){const w=document.querySelector(".padd."+t);if(g&&y&&w){const{top:_}=y.getBoundingClientRect(),{top:j}=w.getBoundingClientRect();g.scrollTo(0,j-_)}}},[t]);const d=(g,y,w,_,j)=>{g.stopPropagation();let N=1/0,Z=0,Q=!1;const se=[];s.forEach((ie,he)=>{let xe=ie;ie.cid===y&&(xe={...ie,expand:!ie.expand},N=he),Q&&(he===Z?Q=!1:xe={...ie,show:!1}),!Q&&he>N&&(ie.data.sup!==w&&ie.depth>_?xe={...ie,show:!j}:(ie.data.sup===w||ie.depth<=_)&&(N=1/0),!j&&!ie.expand&&(Z=s.slice(he+1).findIndex(Se=>Se.data.sup===ie.data.sup||Se.depth<=ie.depth)+(he+1),Z!==-1&&(Q=!0))),se.push(xe)}),c(se)},p=g=>{let{type:y,canExpand:w,cid:_,supCid:j,depth:N,expand:Z,icon:Q}=g;return(0,o.jsxs)("a",{className:m()("expander rResBunch",{canExpand:w}),onClick:se=>d(se,_,j,N,Z),style:{paddingLeft:8*N+"px"},children:[w&&(0,o.jsx)(Et.C,{className:m()("arrow-icon",{"is-expand":Z}),name:"common/triangle-filled-down"}),(0,o.jsx)(_o.k,{icon:Q,theme:"",isExpand:Z})]})};return(0,o.jsx)("div",{className:"scroll rResBunch",children:(0,o.jsx)("div",{className:"content-list rResBunch",children:s.map(g=>{let{cid:y,data:w,depth:_,show:j,expand:N,canExpand:Z}=g;const{name:Q,asFolder:se,sup:ie,icon:he}=w,Se=sdkStore.getSubHotItemList(y).filter(_e=>{let{hotAttr:{type:De,asOverlay:Je}}=_e;return De===ne.x.Canvas&&!Je}).length>0;if(j)return(0,o.jsx)("div",{className:"padd "+y,children:(0,o.jsx)(He.Dr,{dataIndex:y,text:Q,icon:p({type:"rResBunch",canExpand:Z,cid:y,supCid:ie,depth:_,expand:N,icon:he}),onClick:_e=>r(_e,w),className:m()("rResBunch",Z&&"canExpand",{isFolder:se},{selected:t===y},{disabled:!Se&&!se}),disabled:!Se&&!se},y)},y)})})})},_V=(0,k.Mz)([ht.HA,re.Ur,Oe.p$,ht.Hs,Y.T7],(e,t,n,r,s)=>{const{cid:c}=t||{};return{screenTreeData:e,activeScreenMetaCid:c,screenSelection:r,fullScreenMode:s}}),b9=(0,a.Ng)(e=>_V(e))(IV);class PV extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleBack",()=>{const{dispatch:t,isShowExitCombo:n}=this.props;if(n){t({type:"entry:exit:combo"});return}t({type:"entry:leave:project"})}),(0,O.A)(this,"onClickLogo",()=>{const{isHtmlZipPreview:t,isCommunityPreview:n,isEmbedV2Preview:r,importAbarOptions:{isFromAbar:s}}=this.props;n||r||s||(t?location.href="https://modao.cc/workspace/home":location.href=location.origin+"/workspace/home",(0,P1.A)({operation_type:P1.D.Logo}))}),(0,O.A)(this,"handleGoEdit",()=>{const{rootProject:t,importAbarOptions:{isFromAbar:n}}=this.props;n?(0,_u.sg)(_u.ZW.enterEdit):location.href=""+location.origin+(0,Hf.Dw)("design/"+t.cid),(0,hd.kH)("model_change",{change_type:"\u603B\u89C8\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})})}render(){const{isShowBackIcon:t,isShowExitCombo:n,onlyView:r,isCommunityPreview:s,isEmbedV2Preview:c,isHtmlZipPreview:d,fullScreenMode:p,rootProject:g,screenMeta:y,theme:w,importAbarOptions:_,layoutV9:j,isSaving:N,editingComboName:Z,isRenderProjectTips:Q,isRenderExperienceTips:se,isRenderScreenGlueTips:ie,isEditingUserCombo:he,projectMeta:xe,dispatch:Se}=this.props,_e=(0,Gf.KV)(),De=(0,ic.Y8)(w),{fromAbarIsPreview:Je}=_||{},Ne=Q||ie||se;return(0,o.jsxs)("div",{className:m()("toolbar-left",{isEmbed:c},{isCommunity:s},{isHtmlZip:d},{"is-only-view":r}),children:[_e&&r||d||p?(0,o.jsxs)("div",{className:"logo",children:[(0,o.jsx)(Os.A,{content:I18N.ToolBar.back_to_dashboard,direction:"down",tipClassName:"toolbar-modao-logo-tips",children:(0,o.jsx)("img",{className:"toolbar-logo-icon",src:De,onClick:()=>this.onClickLogo()})}),(!(c||s)||p)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:m()("project-name"),children:(0,al.qk)(g.name)}),MB.canEditByCurrentUser&&!(c||s)&&(0,o.jsx)(Fl.Oc,{className:"edit-btn",type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}):(0,o.jsx)("div",{className:"toolbar-menu-box",children:(t||n)&&(0,o.jsx)($F,{isShowExitCombo:n})}),c&&!p&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(b9,{isEmbedV2Preview:c})}),Ne&&!(r||s||c||Je)?(0,o.jsx)(MV,{onlyView:r,isSaving:N,rootProjectName:g==null?void 0:g.name,rootProject:g,editingComboName:Z,isRenderProjectTips:Q,isRenderExperienceTips:se,isRenderScreenGlueTips:ie,isShowExitCombo:n,isEditingUserCombo:he,projectMeta:xe,screenMeta:y,dispatch:Se,importAbarOptions:_,layoutV9:j}):null]})}}const LV=(0,k.Mz)([we.r,re.W4,q.O4,q.MZ,C.Er,Oe.p$,re.YT],(e,t,n,r,s,c,d)=>{const{isDesign:p,isExperience:g,isLoggedExperience:y}=t,{isEditingCombo:w,isEditingUserCombo:_,isEditingOrgCombo:j}=e,N=!w&&p,Z=_?I18N.SettingPanel.my_widgets:j?I18N.SettingPanel.team_widgets:"",Q=!w&&(p&&c.length===0||r==="recommend"),se=!w&&(g||y)&&c.length===0,ie=w&&(p&&c.length===0||r==="recommend");return{isShowBackIcon:N,theme:n,layoutV9:r,isSaving:s,editingComboName:Z,isRenderProjectTips:Q,isRenderExperienceTips:se,isRenderScreenGlueTips:ie,isEditingUserCombo:_,projectMeta:d}}),NV=(0,a.Ng)(e=>LV(e))(PV);var jV=i(80226),Pu=i(62118);function DV(e){const{source:t}=e,n=(0,a.d4)(re.Ur),r=(0,a.wA)(),s=(0,l.useCallback)(c=>{const d=(0,$u.gu)({type:ne.x.Canvas,screen:n,selectedDeviceModel:c});r({type:"entry:batch:create:items:position",payload:{finalWidget:d}}),(0,Di.wS)(t,c==null?void 0:c.device),c!=null&&c.device&&t===Di.ln.TopNavSizeSelectList&&Vc.U4.protoDeviceCreate("\u7F16\u8F91\u533A\u9876\u90E8\u65B0\u589E\u9875\u9762",c==null?void 0:c.device),r({type:"set:quick-create-widget",payload:{widget:null}})},[n,t,r]);return(0,l.useEffect)(()=>{r({type:"set:quick-create-widget",payload:{widget:null}})},[r]),(0,o.jsx)(H7,{...e,onSelect:s})}const OV=(0,l.memo)(DV);function RV(e){const{isDisabled:t,quickCreateWidgetName:n,onQuickCreateWidget:r,onCreateWidget:s}=e,c=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),[g,y]=(0,l.useState)(0),w=n===ne.x.Canvas||d,_=()=>{r(ne.x.Canvas)},j=se=>{s(se,ne.x.Canvas)},N=se=>{se.stopPropagation()},Z=()=>{var se;return y((((se=c.current)==null||(se=se.$element)==null?void 0:se.getBoundingClientRect().left)||82)-82)};(0,l.useEffect)(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[]);const Q=se=>{se&&Z(),p(se)};return(0,o.jsxs)("div",{className:m()("shape-list-box",Or.c.GUIDE_OLD_NEW_CREATE_PAGE,Or.c.GUIDE_DS_SCREEN_STEP_1,Or.c.GUIDE_NOVICE_2408_CREATE_PAGE,w&&"active",t&&"disabled"),onClick:_,onMouseDown:j,children:[(0,o.jsx)(Os.A,{content:(0,Pu.Qc)(ne.x.Canvas),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(Et.C,{className:"toolbar-shape",name:"toolbar/page/material"})})}),(0,o.jsx)(pm.A,{ref:c,menuPosTop:48,onClick:Q,className:"shape-list-dropdown",isCloseMenuItem:!1,renderOpener:(0,o.jsx)(Os.A,{content:"",direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:N})})}),renderMenu:(0,o.jsx)(OV,{position:{left:g,top:46},source:Di.ln.TopNavSizeSelectList})})]})}const BV=(0,l.memo)(RV);var Cf=i(93971);const UV=[{name:ne.x.WVector,svg_icon:"vector"},{name:ne.x.WVector,svg_icon:"pencil",attrs:{toolType:lr.pv.PENCIL}}],FV=[["graphics",ne.x.WRect,"shape_tool",[{name:ne.x.WRect,svg_icon:"rectangle"},{name:ne.x.WOval,svg_icon:"circle"},{name:ne.x.WLine,svg_icon:"line"},{name:ne.x.WLR,svg_icon:"linkarea"},{name:ne.x.WImage,svg_icon:"image"},...UV]],{name:ne.x.WRichText,svg_icon:"text"},{name:ne.x.WElbow,svg_icon:"elbow"}],VV={name:"wSticky",svg_icon:"note",shapeList:[{name:ne.x.WSticky,svg_icon:"note"},{name:ne.x.WTear,svg_icon:"tear"}]},zV=()=>FV.map(e=>Array.isArray(e)?{name:e[0],defaultActiveType:e[1],combineToolTips:e[2],shapeList:e[3]}:e);var WV=i(85691);const HV=(0,$s.R)(()=>({[ne.x.WRect]:I18N.w.rounded_rect,[ne.x.WOval]:I18N.w.circle_rect,[ne.x.WLine]:I18N.w.line,[ne.x.WLR]:I18N.w.lr,[ne.x.WImage]:I18N.w.image_view,[ne.x.WElbow]:I18N.BasicWidgetsNav.wired,[ne.x.WVector]:I18N.BasicWidgetsNav.wVector,[lr.pv.PENCIL]:I18N.BasicWidgetsNav.pencil})),GV={[ne.x.WRect]:"rectangle",[ne.x.WOval]:"circle",[ne.x.WLine]:"line",[ne.x.WImage]:"image",[ne.x.WLR]:"linkarea",[ne.x.WVector]:"vector",[ne.x.WElbow]:"elbow",[lr.pv.PENCIL]:"pencil"},ZV={[ne.x.WRect]:"R",[ne.x.WOval]:"O",[ne.x.WLine]:"L",[ne.x.WLR]:"H",[ne.x.WVector]:"P",[ne.x.WElbow]:"E",[lr.pv.PENCIL]:(0,WV.sl)("shift+P")},KV=E.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-18kbex7-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01),YV=(0,E.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class XV extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:n}=this.state,{onQuickCreateWidget:r}=this.props;if(n===lr.pv.PENCIL){r(ne.x.WVector,{toolType:n});return}r(n)}),(0,O.A)(this,"handleQuickCreateWidget",n=>{const{onQuickCreateWidget:r}=this.props;this.setState({currentQuickName:(0,lr.xy)(n)}),r(n.name,n.attrs)}),(0,O.A)(this,"handleCreateShapeMenuRef",n=>this.$shapeMenuRef=n),(0,O.A)(this,"handleDown",n=>{const{onCreateWidget:r}=this.props,{currentQuickName:s}=this.state;if(s===ne.x.WVector)return;let c=document.getElementById("mb-toolbar").getBoundingClientRect();if(n.target.closest(".menu-item")&&this.$shapeMenuRef&&(c=this.$shapeMenuRef.getBoundingClientRect()),s===lr.pv.PENCIL){r(n,ne.x.WVector,c,{toolType:s});return}r(n,s,c,{})}),(0,O.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:n}=this.state,{onCreateWidgetDoubleClick:r}=this.props;r&&r(n)}),(0,O.A)(this,"handleStopPropagation",n=>{n.stopPropagation()}),(0,O.A)(this,"handleChangeStyle",n=>{this.setState({isActive:n})}),this.state={currentQuickName:t.widget.defaultActiveType,isActive:!1}}componentDidUpdate(t){if(this.props.quickCreateWidgetName&&t.quickCreateWidgetName!==this.props.quickCreateWidgetName){const{widget:{shapeList:n},quickCreateWidgetName:r}=this.props;n.map(c=>(0,lr.xy)(c)).includes(r)&&this.setState({currentQuickName:r})}}render(){const{widget:t,quickCreateWidgetName:n,isEmptyScreen:r}=this.props,{currentQuickName:s,isActive:c}=this.state,{shapeList:d}=t,p="toolbar/"+GV[s],g=p.replace("/","-"),y=d.map(w=>{let{name:_}=w;return _}).concat(lr.pv.PENCIL).includes(n)||c;return(0,o.jsxs)("div",{className:m()("shape-list-box",{active:y,disabled:r}),onClick:this.handleOpenerQuickCreateWidget,onMouseDown:this.handleDown,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,o.jsx)(Os.A,{content:(0,Pu.Qc)(s),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(Et.C,{className:m()("toolbar-shape",g),name:p})})}),(0,o.jsx)(pm.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,o.jsx)(Os.A,{content:I18N.BasicWidgetsNav[t.combineToolTips],direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:this.handleStopPropagation})})}),renderMenu:(0,o.jsx)(QV,{quickCreateWidgetName:s,shapeList:d,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class QV extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleCreateRef",t=>{const{onCreateShapeMenuRef:n}=this.props;n(t)})}render(){const{shapeList:t,quickCreateWidgetName:n,onQuickCreateWidget:r}=this.props;return(0,o.jsx)(KV,{ref:this.handleCreateRef,children:t==null?void 0:t.map(s=>(0,o.jsx)(JV,{shape:s,quickCreateWidgetName:n,onQuickCreateWidget:r},s.name))})}}class JV extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleQuickCreateWidget",()=>{const{shape:t,onQuickCreateWidget:n}=this.props;n(t)}),(0,O.A)(this,"getIsShowCheckMark",()=>{const{shape:t,quickCreateWidgetName:n}=this.props;return(0,lr.xy)(t)===n}),(0,O.A)(this,"getTitle",()=>{const{shape:t}=this.props,n=(0,lr.xy)(t);return n?HV()[n]:void 0}),(0,O.A)(this,"getKdd",()=>{const{shape:t}=this.props,n=(0,lr.xy)(t);if(n)return ZV[n]})}render(){const{shape:t}=this.props,n=this.getIsShowCheckMark(),r=this.getTitle(),s=this.getKdd();return(0,o.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[n&&(0,o.jsx)(Et.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,o.jsx)(Et.C,{className:"shape-icon toolbar-"+t.svg_icon,name:"toolbar/"+t.svg_icon+"/min"}),(0,o.jsx)("span",{className:"shape-title",children:r}),(0,o.jsx)("span",{className:"shape-kdd",children:s}),(0,o.jsx)(YV,{})]})}}function qV(){return(0,o.jsx)($V,{})}const $V=E.Ay.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1x148vl-0"})(["height:16px;width:1px;margin:0 12px 0 12px;background:",";"],e=>e.theme.color_bg_border_02),ez=(0,$s.R)(()=>({[ne.x.WSticky]:I18N.w.sticky,[ne.x.WTear]:I18N.w.annotate})),T4={[ne.x.WSticky]:"note",[ne.x.WTear]:"tear"},tz={[ne.x.WSticky]:"N",[ne.x.WTear]:"W"},nz=E.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-1jwtp5w-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;background:",";color:",";}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),oz=(0,E.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class az extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:n}=this.state,{onQuickCreateWidget:r}=this.props;r(n)}),(0,O.A)(this,"handleQuickCreateWidget",n=>{const{onQuickCreateWidget:r}=this.props;this.setState({currentQuickName:n}),r(n)}),(0,O.A)(this,"handleCreateShapeMenuRef",n=>this.$shapeMenuRef=n),(0,O.A)(this,"handleDown",n=>{const{onCreateWidget:r}=this.props,{currentQuickName:s}=this.state;let c=document.getElementById("mb-toolbar").getBoundingClientRect();n.target.closest(".menu-item")&&this.$shapeMenuRef&&(c=this.$shapeMenuRef.getBoundingClientRect()),r(n,s,c)}),(0,O.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:n}=this.state,{onCreateWidgetDoubleClick:r}=this.props;r&&r(n)}),(0,O.A)(this,"handleChangeStyle",n=>{this.setState({isActive:n})}),this.state={currentQuickName:ne.x.WSticky,isActive:!1}}componentDidUpdate(t){this.props.quickCreateWidgetName&&t.quickCreateWidgetName!==this.props.quickCreateWidgetName?T4[this.props.quickCreateWidgetName]&&(this.setState({currentQuickName:this.props.quickCreateWidgetName}),this.props.dispatch({type:"entry:ST:STMode:enable"})):!ne.Q.ST_MODE_WIDGET_NAMES.includes(this.props.quickCreateWidgetName)&&this.props.dispatch({type:"entry:ST:STMode:disable"})}render(){const{widget:t,quickCreateWidgetName:n,isEmptyScreen:r}=this.props,{currentQuickName:s,isActive:c}=this.state,{shapeList:d}=t,p="toolbar/"+(T4[n]||T4[s]),g=p.replace("/","-"),y=T4[n]&&n||c;return(0,o.jsxs)("div",{className:m()("shape-list-box",{active:y,disabled:r}),onClick:this.handleOpenerQuickCreateWidget,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,o.jsx)(Os.A,{content:(0,Pu.Qc)(s),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",onMouseDown:this.handleDown,children:(0,o.jsx)(Et.C,{size:32,className:m()("toolbar-shape",g),name:p})})}),(0,o.jsx)(pm.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,o.jsx)(Os.A,{content:I18N.Note.note_option,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,o.jsx)(rz,{quickCreateWidgetName:s,shapeList:d,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class rz extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleCreateRef",t=>{const{onCreateShapeMenuRef:n}=this.props;n(t)})}render(){const{shapeList:t,quickCreateWidgetName:n,onQuickCreateWidget:r}=this.props;return(0,o.jsx)(nz,{ref:this.handleCreateRef,children:t.map(s=>(0,o.jsx)(iz,{shape:s,quickCreateWidgetName:n,onQuickCreateWidget:r},s.name))})}}class iz extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleQuickCreateWidget",()=>{const{shape:t,onQuickCreateWidget:n}=this.props;n(t.name)})}render(){const{shape:t,quickCreateWidgetName:n}=this.props,r=t.name===n,s=ez();return(0,o.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[r&&(0,o.jsx)(Et.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,o.jsx)(Et.C,{className:"shape-icon toolbar-"+t.svg_icon,name:"toolbar/"+t.svg_icon+"/min",size:20}),(0,o.jsx)("span",{className:"shape-title",children:s[t.name]}),(0,o.jsx)("span",{className:"shape-kdd",children:tz[t.name]}),(0,o.jsx)(oz,{})]})}}const sz=E.Ay.div.withConfig({displayName:"styles__StyledAIDropDown",componentId:"sc-u591je-0"})(["position:relative;.ai-chat-guide{position:absolute;top:calc(100% + 22px);left:50%;transform:translateX(-50%) scale(1.2);&.show-rule{top:",";}.center-container{height:28px;padding:0 30px;white-space:nowrap;border-radius:14px;display:flex;align-items:center;justify-content:center;background:",";color:",";font-size:12px;.shiny-text{position:relative;font-size:12px;font-weight:500;margin:0 4px;background:",";overflow:hidden;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-size:200% auto;color:",';animation:shimmer 5s linear infinite;cursor:pointer;}.shiny-text::after{content:"";position:absolute;top:-20%;left:-30%;width:60%;height:160%;opacity:0.4;background:linear-gradient(45deg,rgba(255,255,255,0) 0%,'," 50%,rgba(255,255,255,0) 100%);transform:rotate(45deg);animation:shine 1.2s ease-in-out infinite;};@keyframes shimmer{0%{background-position:-100% 0}100%{background-position:100% 0}}@keyframes shine{0%{left:-30%;}70%{left:90%;}100%{left:130%;}}}.ai-chat-guide-arrow{transform:translate(-50%,-100%);width:12px;position:absolute;top:1px;left:50%;path{fill:",";}}.ai-chat-guide-2{position:absolute;left:-30px;top:19px;width:61px;}.ai-chat-guide-1{left:-16px;width:36px;height:36px;position:absolute;top:50%;transform:translateY(-50%) rotate(-22deg);}.ai-chat-guide-3{position:absolute;width:36px;right:33px;top:-10px;transform:rotate(-5deg);}.ai-chat-guide-close{position:absolute;width:16px;top:50%;right:8px;transform:translateY(-50%);cursor:pointer;&:hover{path{fill:",";}}path{fill:",";}}}"],"calc(100% + "+(kv+22)+"px)",e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.ai_chat_guide_shine_linear_gradient_color,e=>e.theme.ai_chat_guide_shine_text_color,e=>e.theme.color_bg_menu,e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),lz=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledAIMenu",componentId:"sc-u591je-1"})(["",";ul{background-position:0 0;background-size:200px 41px;background-repeat:no-repeat;.ai-menu-divider{border-top:1px solid ",";}}ul:has(.other-ai-section){background-image:",";}.ai-agent-item.MenuItem{background:",";border-radius:8px;padding:2px;overflow:hidden;cursor:pointer;height:36px;.agent-icon{width:47px;height:16px;margin-left:6px;}.ai-agent-inner{display:flex;align-items:center;background:",";height:32px;border-radius:7px;}&:hover .ai-agent-inner{background:",";}}.mdai-section{display:flex;padding:10px 8px 0px 8px;width:180px;height:276px;flex-direction:column;align-items:flex-start;align-self:stretch;border-radius:8px;outline:1px solid ",";cursor:pointer;position:relative;overflow:hidden;.pseudo-menu-item{width:100%;height:100%;opacity:0;position:absolute;}&:hover{background:linear-gradient(157deg,#FAFAFF 48.94%,#E2D9FF 96.95%);&.dark{background:linear-gradient(157deg,#292933 48.94%,#58468C 96.95%);}.ani-stuff{.ani-icon-group{opacity:1;}.page,.code{transform:scale(1.05);}.code{rotate:10deg;}}}.title{display:flex;align-items:center;font-size:13px;font-weight:600;svg{&.logo{margin-right:4px;width:24px;height:24px;}&.aihtml-new-tag{margin-left:8px;width:48px;height:18px;}}}.desc{margin-top:16px;font-size:12px;line-height:16px;display:flex;gap:8px;flex-direction:column;color:",";p.try-now{.text{color:transparent;background:linear-gradient(66deg,#183DFF -1.25%,#9E61FF 97.64%);background-clip:text;}display:flex;svg{margin-left:2px;display:flex;width:16px;height:16px;}}}.ani-stuff{overflow:hidden;position:absolute;pointer-events:none;height:100%;width:100%;.ani-icon-group{position:absolute;bottom:94px;width:156px;height:55px;opacity:0;transition:all .2s ease-in-out;z-index:3;}.page{position:absolute;left:4px;bottom:-10px;width:142px;height:100px;z-index:2;transition:all .2s ease-in-out;}.code{position:absolute;left:16px;bottom:2px;width:142px;height:100px;rotate:5deg;z-index:1;transition:all .2s ease-in-out;}}}.other-ai-section{width:180px;}.ai-menu-header{height:36px;display:flex;align-items:center;margin-left:10px;span{color:",";font-size:14px;font-weight:500;strong{font-weight:600;}}}.MenuItem{height:32px;margin:4px 0;.ai-menu-item-icon{width:24px;height:24px;margin-right:8px;}a{height:32px;}}.MenuItem{a{padding-left:6px;}}.SubMenu li.MenuItem.hasIcon a{padding-left:6px;}.older-version{padding:0 6px;line-height:18px;border-radius:4px;background:",";color:",';font-family:"PingFang SC";font-size:11px;font-weight:500;margin-left:8px;}.ai-menu-chat{position:relative;.ai-chat-new-tag{position:absolute;right:13px;top:calc(50% - 11px);width:50px;height:18px;pointer-events:none;}}'],pr.ZJ,e=>e.theme.color_bg_border_01,e=>e.theme.ai_menu_bg,e=>e.theme.ai_agent_bg,e=>e.theme.color_bg_white,e=>e.theme.ai_agent_bg_hov,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2),cz=e=>{const{dispatch:t}=e,n=(0,a.d4)(q.qT),r=(0,a.d4)(q.O4),[s,c]=(0,l.useState)(!1),d=(0,l.useRef)(null),[p,g]=(0,l.useState)(!1),[y,w]=(0,l.useState)(0),_=()=>{var Ne;return w((((Ne=d.current)==null||(Ne=Ne.$element)==null?void 0:Ne.getBoundingClientRect().left)||112)-112)},j=t1.SR.Chat||"Chat";(0,l.useEffect)(()=>(window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[]),(0,l.useEffect)(()=>{const Ne=MB.commonGuideHelper.checkGuideHasShown(Or.c.GUIDE_2506_AIHTML);c(!Ne)},[]);const N=()=>{s&&(c(!1),MB.commonGuideHelper.markGuideAsRead(Or.c.GUIDE_2506_AIHTML))},Z=Ne=>{Ne&&_(),g(Ne),N()},Q=()=>{t(Te.GO.updateAIHTMLAgentType("prototyping")),t(Te.GO.enableAIHTML()),t(Te.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides(),c(!1),MB.commonGuideHelper.markGuideAsRead(Or.c.GUIDE_2506_AIHTML)},se=Ne=>{t({type:Mh.X.AIComponentCreateMode}),Vc.U4.AIOpenSourceTrack(Ne==null?void 0:Ne.type)},ie=Ne=>{t({type:Mh.X.AIToggleOpenSemantic}),Vc.U4.AIOpenSourceTrack(Ne==null?void 0:Ne.type)},he=Ne=>{t({type:Mh.X.AIToggleOpenChatPanel}),N(),Vc.U4.AIOpenSourceTrack(Ne==null?void 0:Ne.type)},xe=Ne=>{t({type:Mh.X.AIOpenModal,payload:Ne}),Vc.U4.AIOpenSourceTrack(Ne==null?void 0:Ne.type)},Se=Ne=>{let pt=xe;switch(Ne.type){case t1.SR.Component:pt=se;break;case t1.SR.Semantic:pt=ie;break;case j:pt=he;break;default:pt=xe;break}Ne.source="\u9876\u90E8 ToolBar menu",pt(Ne)},_e=Ne=>{const pt=(0,t1.Rj)()[Ne];let _t=pt.componentTitle||pt.title;return Ne===t1.SR.PageV9&&(_t=(0,o.jsxs)(o.Fragment,{children:[_t,(0,o.jsx)("i",{className:"older-version",children:I18N.Common.olderVersion})]})),(0,o.jsx)(He.Dr,{icon:De(Ne),text:_t,onClick:()=>Se(pt),disabled:!1},"AI-toolbar-menu-"+Ne)},De=Ne=>(0,o.jsx)(Et.C,{name:"chatGPT/toolbar/"+Ne,className:"ai-menu-item-icon",isColorPure:!0}),Je=Ne=>{if(ENV.IS_ON_PREMISES){var pt,_t;(pt=d.current)==null||(_t=pt.handleToggleMenuShow)==null||_t.call(pt,Ne);return}t(Te.GO.updateAIHTMLAgentType("prototyping")),t(Te.GO.enableAIHTML()),t(Te.GO.expandAIHTML()),t(Te.GO.updateAIHTMLSource("designTopBar")),MB.commonGuideHelper.hideAllGuides(),Vc.U4.AIOpenSourceTrack(t1.SR.AIHTML)};return(0,o.jsxs)(sz,{className:m()("shape-list-box",Or.c.GUIDE_NOVICE_V9_2408_STEP_3),onClick:Je,children:[(0,o.jsxs)(Os.A,{content:s?"":(0,Pu.Qc)("AI"),direction:"down",distance:8,children:[(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(Et.C,{className:"toolbar-shape pure-svg-icon",name:"toolbar/ai",style:{transform:"scale(1.0625)"}})}),s&&(0,o.jsxs)("div",{className:m()("ai-chat-guide",{"show-rule":n}),onClick:Ne=>Ne.stopPropagation(),children:[(0,o.jsxs)("div",{className:"center-container",children:[I18N.ChatGPT.ai_chat_try,(0,o.jsx)("span",{className:"shiny-text",onClick:Q,children:I18N.CommonGuides.new_aihtml})]}),["ai-chat-guide-2","ai-chat-guide-1","ai-chat-guide-3"].map(Ne=>(0,o.jsx)(Et.C,{name:"chatGPT/"+Ne+(r==="dark"?"-dark":""),className:Ne,isColorPure:!0},Ne)),(0,o.jsx)(Et.C,{className:"ai-chat-guide-arrow",name:"chatGPT/ai-chat-guide-arrow"}),(0,o.jsx)(Et.C,{name:"chatGPT/ai-chat-guide-close",className:"ai-chat-guide-close",onClick:N,isColorPure:!0})]})]}),(0,o.jsx)(pm.A,{ref:d,menuPosTop:48,onClick:Z,isCloseMenuItem:!1,className:"shape-list-dropdown",renderOpener:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:Ne=>Ne.stopPropagation()})}),renderMenu:(0,o.jsx)(lz,{position:{left:y,top:46},children:(0,o.jsxs)("div",{className:"other-ai-section",children:[(0,o.jsx)("div",{className:"ai-menu-header",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("strong",{children:I18N.ChatGPT.ai_chat_mockitt}),"AI"]})}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("div",{className:"ai-agent-item MenuItem",onClick:Je,children:(0,o.jsxs)("div",{className:"ai-agent-inner",children:[(0,o.jsx)(Et.C,{name:"toolbar/ai",className:"pure-svg-icon",size:32}),I18N.ChatGPT.ai_prototype_component_title,(0,o.jsx)(Et.C,{name:"toolbar/ai/agent",className:"pure-svg-icon agent-icon"})]})}),!ENV.IS_ON_PREMISES&&_e(t1.SR.Component),_e(t1.SR.AutoFill),(0,o.jsxs)(He.Dr,{icon:De("other"),text:I18N.BasicWidgetsNav.AI.gen_other,disabled:!1,subMenuTopOffset:-3,isAiry:!0,children:[[t1.SR.Flow,t1.SR.Mind,t1.SR.Table,t1.SR.Chart].map(Ne=>_e(Ne)),!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"ai-menu-chat",children:(0,o.jsx)(He.Dr,{icon:De(j),text:"DeepSeek-R1",onClick:()=>Se({type:j}),disabled:!1})}),(0,o.jsx)(He.Dr,{icon:De(t1.SR.Semantic),text:I18N.BasicWidgetsNav.AI.semantic,onClick:()=>Se({type:t1.SR.Semantic}),disabled:!1})]}),_e(t1.SR.PageV9)]})]})})})]})},dz=(0,l.memo)(cz),pz=e=>{var t;const{onlyView:n,isDirectlyEditingProjectMain:r,isEmptyScreen:s,quickCreateWidgetName:c,screenMeta:d,rootProject:p,showDragMode:g,isAdsorbentReferenceLine:y,isShowExitCombo:w,isInElbowMode:_,isCommunityPreview:j,isEmbedV2Preview:N,isHtmlZipPreview:Z,fullScreenMode:Q,handMode:se,isInCommentMode:ie,isDisabledComment:he,isShowAIMenu:xe,dispatch:Se}=e,_e=(gt,Ct)=>{const zt=(0,$u.gu)({type:gt,screen:d,attrs:{width:0,height:0,...Ct}}),Dt=(0,lr.F6)(zt);if(c&&Dt===c){Se({type:"set:quick-create-widget",payload:{widget:null}}),Se({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});return}Se({type:"set:quick-create-widget",payload:{widget:zt,quickCreateWidgetFrom:Cf.Hq.ToolBar}}),Dt===ne.x.WElbow?Se({type:"elbow:update",payload:{isDraggingElbow:!0}}):Dt===ne.x.WVector?(Se({type:"update:screenContainer:state",payload:{addVectorSource:fv.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Or.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Or.c.GUIDE_VECTOR_TASK_QUICK_CREATE)):Dt===lr.pv.PENCIL&&Se({type:"entry:pencil:vector:enter:edit",payload:{source:Vc.U4.addShapeToCanvasTrackSourceMap.topToolbar}}),Se(Te.GO.toggleHandMode(!1)),Se({type:"elbow:clear"}),Se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Se({type:"entry:aiComponent:exit:mode:for-toolbar"}),Se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),ne.Q.ST_MODE_WIDGET_NAMES.includes(Dt)?(Se({type:"entry:ST:STMode:enable"}),Se({type:"toolbar:update:state",payload:{isShowSticky:!0}})):Se({type:"entry:ST:STMode:disable"}),Dt!==lr.pv.PENCIL&&Se({type:"entry:pencil:vector:exit:edit"})},De=(gt,Ct,zt,Dt)=>{Se(Te.GO.toggleHandMode(!1)),Se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Se({type:"entry:aiComponent:exit:mode:for-toolbar"});const sn=(0,$u.gu)({type:Ct,screen:d,attrs:Dt}),Rn=zt||document.getElementById("mb-toolbar").getBoundingClientRect();(0,lr.dD)({e:gt,items:[sn],width:sn.width||sn.w,height:sn.height||sn.h,doNotCreateRect:Rn,callback:()=>{(sn==null?void 0:sn.type)===ne.x.Canvas?(0,Di.Se)({page:sn}):((0,Cf.Yp)({source:""+Cf.ol.ToolBar+Cf.k8.Drag,widgetName:(0,Cf.KR)(Ct)}),sn.type===ne.x.WElbow&&(0,Jt.Zf)(sn.elbow.elbowType))},isToolbarCreate:!0,rootProject:p,showDragMode:g,isAdsorbentReferenceLine:y})},Je=()=>{Se({type:"entry:elbow:isInElbowMode:toggle"}),Se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Se({type:"entry:aiComponent:exit:mode:for-toolbar"}),Se({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:Cf.Hq.ToolBar}}),Se(Te.GO.toggleInspectMode(!1)),Se(Te.GO.toggleHandMode(!1)),Se({type:"entry:pencil:vector:exit:edit"})},Ne=()=>{Se({type:"entry:toolbar:toggle:handTool"}),Se({type:"entry:aiComponent:exit:mode:for-toolbar"}),Se({type:"entry:observe:dom:size:update-viewport-rect"}),(0,P1.A)({operation_type:P1.D.HandTool})},pt=()=>{Se({type:"entry:comment:toggle"}),Se({type:"entry:aiComponent:exit:mode:for-toolbar"}),Se(Te.GO.toggleInspectMode(!1)),Se(Te.GO.toggleHandMode(!1)),Se(Te.GO.select([])),Se({type:"elbow:update",payload:{isInElbowMode:!1}}),Se({type:"entry:ST:STMode:disable"}),Se({type:"entry:observe:dom:size:update-viewport-rect"}),Se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),(0,P1.A)({operation_type:P1.D.Comment})},_t=(0,l.useMemo)(()=>!(n||!xe||ENV.IS_ON_PREMISES&&!ENV.OP2_V8AI2511),[n,xe]);return(0,o.jsxs)(o.Fragment,{children:[!n&&(0,o.jsx)(BV,{isDisabled:!r||s,quickCreateWidgetName:c,onQuickCreateWidget:_e,onCreateWidget:De}),!n&&(0,o.jsxs)(o.Fragment,{children:[zV().map((gt,Ct)=>{if(gt.name==="graphics")return(0,o.jsx)(XV,{widget:gt,quickCreateWidgetName:c,onQuickCreateWidget:_e,onCreateWidget:De,isEmptyScreen:s},Ct);if(gt.name==="divider")return(0,o.jsx)(qV,{},"divider-"+Ct);{if(w&&gt.name===ne.x.Canvas)return null;const zt=gt.name===ne.x.WElbow?Je:_e,Dt=gt.name===ne.x.WElbow?_:gt.name===c;return(0,o.jsx)(Tu.A,{disabled:s,active:Dt,onClick:zt,name:gt.name,toolTipName:(0,Pu.Qc)(gt.name),svgIconName:"toolbar/"+gt.svg_icon,toolTipDistance:8,onMouseDown:De,size:32,className:gt.name===ne.x.WElbow?Or.c.GUIDE_OLD_ADD_LINE_FEATURE:""},gt.name)}}),!(j||N||Z&&Q)&&(0,o.jsx)(Tu.A,{onClick:Ne,name:I18N.pPreviewToolbar.comment,className:"handMode",toolTipName:(0,Pu.Qc)("handMode"),svgIconName:"toolbar/handTool",toolTipDistance:8,active:se,disabled:s}),!n&&!w&&((t=MB)==null||(t=t.user)==null?void 0:t.id)&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(Tu.A,{className:m()(Or.c.GUIDE_OLD_USE_COMMENT,"toolbar-comment"),onClick:pt,name:I18N.pPreviewToolbar.comment,toolTipName:(0,Pu.Qc)("comment"),svgIconName:"design/preview/comment",toolTipDistance:8,size:32,active:ie,disabled:he})}),(0,o.jsx)("div",{className:m()("widget-box",Or.c.GUIDE_OLD_UPGRADE_ANNOTATE),children:(0,o.jsx)(az,{widget:VV,quickCreateWidgetName:c,onQuickCreateWidget:_e,onCreateWidget:De,dispatch:Se,isEmptyScreen:s})})]}),N&&!Q&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(b9,{isEmbedV2Preview:N})}),_t&&(0,o.jsx)(dz,{dispatch:Se})]})};class uz extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleUpdatePreviewViewMode",t=>{this.props.dispatch({type:"entry:handle-tool:preview:view_mode",payload:{previewViewMode:t}})})}render(){const{isSaving:t,canModify:n,canDistribute:r,canGroup:s,canUngroup:c,canLock:d,canMove:p,rootProjectName:g,rootProject:y,isLocked:w,isRenderProjectTips:_,isRenderScreenGlueTips:j,isRenderExperienceTips:N,onlyView:Z,isCommunityPreview:Q,isEmbedV2Preview:se,editingComboName:ie,isShowExitCombo:he,isEditingUserCombo:xe,projectMeta:Se,screenMeta:_e,dispatch:De,importAbarOptions:Je,isFullScreenMode:Ne,layoutV9:pt,isDirectlyEditingProjectMain:_t,isEmptyScreen:gt,quickCreateWidgetName:Ct,showDragMode:zt,isAdsorbentReferenceLine:Dt,isInElbowMode:sn,isHtmlZipPreview:Rn,fullScreenMode:On,handMode:Lo,isInCommentMode:Yo,isDisabledComment:Cn,isShowAIMenu:hn,previewViewMode:oa}=this.props,{fromAbarIsPreview:Ao}=Je||{},ca=_||j||N;return(0,o.jsxs)("div",{className:m()("toolbar-center"),children:[ca&&!(Z||Q||se||Ao)?(0,o.jsx)(pz,{onlyView:Z,isDirectlyEditingProjectMain:_t,isEmptyScreen:gt,quickCreateWidgetName:Ct,screenMeta:_e,rootProject:y,showDragMode:zt,isAdsorbentReferenceLine:Dt,isShowExitCombo:he,isInElbowMode:sn,isCommunityPreview:Q,isEmbedV2Preview:se,isHtmlZipPreview:Rn,fullScreenMode:On,handMode:Lo,isInCommentMode:Yo,isDisabledComment:Cn,isShowAIMenu:hn,layoutV9:pt,dispatch:De}):null,Z&&(!Q||Ne)&&(0,o.jsx)(jV.D,{size:se&&!Ne?"small":"normal",isShowInspect:!se&&!Q,mode:oa,onSwitch:this.handleUpdatePreviewViewMode})]})}}var hz=i(74945);const mz=(0,k.Mz)([Y.lY,Hn.X.query.getIsShallowEditing,we.r,C.Er,re.W4,re.z$,re.wA,re.YT,Oe.p$,C.BM,Y.T7,q.MZ,Vf.C,re.wq,q.PI,q.k3,hz.Q1,Y.Ro,P.sI,re.HW,Y.MM],(e,t,n,r,s,c,d,p,g,y,w,_,j,N,Z,Q,se,ie,he,xe,Se)=>{let{isEmptyScreen:_e}=j,De=!1,Je=!1,Ne=!1,pt=!1,_t=!1,gt=!1,Ct=!1;if(g.length>0){var zt;De=g.length>0&&!e&&!t,Je=!!((zt=sdkStore.getHotItem(g[0]))!=null&&zt.hotAttr.isLock),Ne=(0,Pt.GS)(g)&&!e&&!t,pt=(0,Pt.sQ)(g)&&!t,_t=(0,Pt.oR)(g)&&!t,gt=(0,Pt.kE)(g)&&!t,Ct=(0,Pt.P6)(g)&&!t}const{isDesign:Dt,isExperience:sn,isLoggedExperience:Rn}=s,{isEditingProjectMain:On,isEditingCombo:Lo,isEditingUserCombo:Yo,isEditingOrgCombo:Cn,isEditingBasket:hn,isDirectlyEditingBasket:oa,isEditingMuban:Ao}=n,ca=!Lo&&Dt,va=!Lo&&(sn||Rn)&&g.length===0,ra=Lo&&Dt,Jo=Yo?I18N.SettingPanel.my_widgets:Cn?I18N.SettingPanel.team_widgets:"",$o=On,sa=(0,lr.F6)(N),da=!Lo&&!hn&&!Ao&&!!(xe!=null&&xe.id);return{canModify:Ne,canMove:pt,canDistribute:_t,canGroup:gt,canUngroup:Ct,canLock:De,isLocked:Je,canOpenFlow:$o,isSaving:r,isRenderProjectTips:ca,isRenderExperienceTips:va,isRenderScreenGlueTips:ra,isEditingUserCombo:Yo,sharingInReadOnly:c,editingComboName:Jo,currentOrg:d,projectMeta:p,isFullScreenMode:w,toolbarRefresh:y,layoutV9:_,isDirectlyEditingProjectMain:On,isEmptyScreen:_e,quickCreateWidgetName:sa,showDragMode:Z,isAdsorbentReferenceLine:Q,isInElbowMode:se,handMode:ie,isInCommentMode:he,isShowAIMenu:da,previewViewMode:Se}}),fz=(0,a.Ng)(e=>mz(e))(uz);var gz=i(82066),yz=i(29342);const C9=e=>{const{isDisabledSharing:t,onShare:n,isNotLogined:r}=e,s=(0,Gf.OB)(),c=(0,l.useContext)(n5.G),d=(0,l.useContext)(n5.n),[p,g]=(0,l.useState)((0,yz.N)()),[y,w]=(0,l.useState)(!1),_=()=>{p&&(MB.commonGuideHelper.closeGuide(Or.c.GUIDE_2309_CLICK_SHARE),w(p),setTimeout(()=>{g(!1),w(!1)},6e3)),n()};return(0,l.useEffect)(()=>{if(s)(0,Og.c)(I18N)[Or.c.GUIDE_2407_PREVIEW].howToShow({isInDesign:s});else{if(c==="device")return;d&&(0,Og.c)(I18N)[Or.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:s})}},[c,s,d]),c==="device"?null:(0,o.jsx)("div",{id:"sharing-box",className:m()(Or.c.GUIDE_NOVICE_2309_STEP_5,Or.c.GUIDE_2309_CLICK_SHARE),children:(0,o.jsxs)("div",{className:m()("share-box",{disabled:t,isNotLogined:r,"show-animation":p}),onClick:_,children:[(0,o.jsx)("span",{children:I18N.ToolBar.share}),p&&(0,o.jsx)("div",{className:m()("animation-list",{"is-hidding":p&&y}),children:Array(12).fill(0).map((j,N)=>(0,o.jsx)("div",{className:"circle circle-"+(N+1)},N))})]})})};var w9=i(88656);const vz=E.Ay.div.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-sp1p33-0"})(["position:relative;&.dark{> .content{background-color:#333;}}&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{border:1px solid ",";position:absolute;top:100%;background-color:",";border-radius:8px;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{margin:3px;height:30px;font-size:12px;border-radius:2px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;cursor:pointer;&:hover{background-color:#666666;}.icon{flex:1;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#ffffff;position:relative;.svg-icon{margin:0;cursor:pointer;}}.trigger{margin:0 5px;display:flex;flex-direction:row;justify-content:center;align-items:center;transform-origin:center center;transform:scale(0.8);}}.content-container{font-size:12px;position:absolute;top:0;left:0;transform:translate(-50%,0);.menu-root{width:fit-content;height:fit-content;overflow:hidden;border-radius:4px;background-color:#333333;display:flex;flex-direction:column;justify-content:center;align-items:center;.line-anchor-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:6px 0;.option-item{width:56px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:hover{background-color:rgb(102,102,102);}.item-bg{width:100%;height:24px;position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;&.active{background-color:#666666;}}}}.line-style-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.option-item{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:6px;border-radius:2px;overflow:hidden;&:hover{background-color:#666666;}.item-bg{position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;.svg{width:24px;height:24px;display:flex;justify-content:center;align-items:center;}&.active{background-color:#666666;}}}.menu-separator{width:1px;height:40px;padding:0;margin:0 4px;background-color:#000;.separator-line{width:1px;height:100%;border-left:1px solid rgba(0,0,0,0.1);}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white),xz=l.memo(l.forwardRef((e,t)=>{const{position:n,top:r,right:s,bottom:c,left:d,dark:p,center:g,className:y,trigger:w,onBeforeShow:_,onShow:j,onClose:N,onBeforeClose:Z,closeOnContentClick:Q,onClickOutside:se}=e,[ie,he]=(0,l.useState)(!1),[xe,Se]=(0,l.useState)(!1),_e=(0,l.useRef)(),De=(0,l.useRef)(),Je=(0,l.useMemo)(()=>({position:n,top:r,right:s,bottom:c,left:d}),[n,r,s,d,c]),Ne=(0,l.useCallback)(async pt=>{if(_e.current===pt.target||_e.current.contains(pt.target)){if(!ie&&_&&!_())return;he(_t=>!_t)}else De.current===pt.target||De.current.contains(pt.target)?Q&&he(!1):Z?Z(pt)!==!1&&he(!1):se&&se(pt)!==!1&&he(!1)},[ie,_,Z,Q,se]);return(0,l.useImperativeHandle)(t,()=>({setDropdownVisible:he,show:()=>he(!0),close:()=>he(!1)})),(0,l.useEffect)(()=>(document.addEventListener("click",Ne),()=>{document.removeEventListener("click",Ne)}),[Ne]),(0,l.useEffect)(()=>{j&&ie&&j()},[ie,j]),(0,l.useEffect)(()=>{xe&&N&&!ie&&N()},[ie,xe,N]),(0,l.useEffect)(()=>{Se(!0)},[]),(0,o.jsxs)(vz,{className:m()(y,{dark:p,center:g,visible:ie}),children:[(0,o.jsx)("a",{ref:_e,className:"trigger",id:"drop-trigger",children:w}),(0,o.jsx)("div",{ref:De,className:"content",style:Je,children:e.children})]})})),bz=(0,E.DU)([".fake-avatar,.image-avatar{display:block;width:24px;height:24px;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:24px;display:flex;align-items:center;justify-content:center;}.dropdown-collaborators{width:180px;max-height:300px;overflow:auto;padding:8px;.dropdown-collaborator{display:flex;align-items:center;height:28px;margin-bottom:8px;&:last-child{margin-bottom:0;}.name{margin-left:8px;flex:1;color:",";font-size:12px;",";}}}"],e=>e.theme.color_text_L1,pr.L9),Cz=E.Ay.div.withConfig({displayName:"styles__StyledCollaboratorsWrapper",componentId:"sc-zgsb2u-0"})(["display:flex;align-items:center;justify-content:flex-end;&.collaborators{height:32px;border-radius:4px;}&.list-padded-right{padding-right:12px;}&.show-avatar{padding-right:0;.avatar-divider{height:16px;width:1px;margin:0 10px 0 8px;border-radius:100px;background:",";}}#drop-trigger{height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";margin-left:-4px;}.dropdown-caret{height:24px;width:24px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:",";font-size:13px;color:",";}.visitor-avatar,.dropdown-caret{&:hover{background-color:",";}}.collaborator{position:relative;height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";}.avatar-container{display:flex;align-items:center;&:not(:first-child){margin-left:-4px;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_background_icon_hover_active,e=>e.theme.color_bg_white),wz=(0,o.jsx)(Et.C,{name:"toolbar/visitor",size:24,style:{borderRadius:"50%"}}),Sz=(0,o.jsx)(Et.C,{name:"toolbar/dropdown",size:16}),Az=e=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,o.jsx)("div",{style:{paddingBottom:3},children:"+"}),(0,o.jsx)("div",{style:{paddingBottom:1},children:e})]}),S9=["#266FFF","#e031c5","#fe9f0a","#ff5d60","#32c67d","#4e90f3","#139b83","#F9c74e","#7c55ec","#fe5B0a"];class A9 extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"state",{ssList:[]}),(0,O.A)(this,"getAvatar",(t,n,r,s)=>{var c;if(!t)return(0,o.jsx)("div",{className:"visitor-avatar",children:wz});if(n&&!n.includes("/images/avatar.png"))return(0,o.jsx)("img",{className:m()("image-avatar",{isDropdown:s}),src:n,alt:t});const d=S9[r%S9.length];return(0,o.jsx)("div",{className:m()("fake-avatar",{isDropdown:s}),style:{backgroundColor:""+d},children:(c=t.slice(0,1))==null?void 0:c.toUpperCase()})}),(0,O.A)(this,"onClickOutside",()=>{var t;this.dropDownRef&&this.dropDownRef.current&&((t=this.dropDownRef.current)==null||t.close())})}componentDidMount(){this.token=setInterval(()=>{if(typeof rootSdk>"u")return;const t=rootSdk.cssCur.getRoomStat().filter(n=>{let[r,s]=n;return r&&s});this.setState({ssList:t})},2*1e3)}componentWillUnmount(){clearTimeout(this.token)}render(){const{ssList:t}=this.state,{showAvatarMenu:n}=this.props;if(t.length===0)return null;const r=t.find(w=>{let[_]=w;return _===rootSdk.flatSocket.getSocketId()})||["specialUser","?",""],s=t.filter(w=>{let[_]=w;return _!==r[0]}),c=2,d=s.slice(0,c),p=s.slice(c),g=n&&s.length>0,y=!n||g;return(0,o.jsxs)(Cz,{className:m()("collaborators",{"show-avatar":g,"list-padded-right":y}),children:[!n&&(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)(yd.A,{content:""+r[1]+I18N.ToolBar.CollaboratorsYou,direction:"down",distance2:2,children:(0,o.jsx)("div",{className:"collaborator",children:this.getAvatar(r[1],r[2],0,!1)})})}),d.map((w,_)=>{let[j,N,Z]=w;return(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)(yd.A,{content:N,direction:"bottom",distance2:2,children:(0,o.jsx)("div",{className:"collaborator",children:this.getAvatar(N,Z,_+1,!1)},_)},_)},j)}),p.length>0&&(0,o.jsx)(xz,{top:38,right:0,ref:this.dropDownRef,onClickOutside:this.onClickOutside,trigger:(0,o.jsx)("div",{className:"dropdown-caret",children:p.length>10?Sz:Az(p.length)}),children:(0,o.jsx)("div",{className:"dropdown-collaborators",children:p.map((w,_)=>{let[j,N,Z]=w;return(0,o.jsxs)("div",{className:"dropdown-collaborator",children:[this.getAvatar(N,Z,_,!0),(0,o.jsx)("span",{className:"name",children:N})]},j)})})}),g&&(0,o.jsx)("div",{className:"avatar-divider"}),(0,o.jsx)(bz,{})]})}}var Mz=i(36689);const kz=E.Ay.div.withConfig({displayName:"styles__StyledToolBarRight4ReadOnly",componentId:"sc-1i332un-0"})(['width:510px;.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}&.toolbar-right .toolbar-icon-item.full-screen-button{width:32px;height:32px;&.small{width:24px;height:24px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}a{cursor:pointer;}.preview-box.toolbar-icon-item.isEmbed{width:28px;height:24px;svg{width:24px;height:24px;}}.save-tips-dropdown.isEmbedV2Preview.NotFullScreen{.fixed-layout-position{width:28px;height:24px;svg{width:24px;height:24px;}}}.icon-box{margin-right:8px;.svg-icon{color:',";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}"],e=>e.theme.color_text_L1),Ez=(0,l.memo)(e=>{var t;let{isShowSharing:n,isCommunityPreview:r,isEmbedV2Preview:s,isHtmlZipPreview:c,fullScreenMode:d,handleZoomIn:p,handleZoomOut:g,handleZoomInitialScale:y,handleZoomSelection:w,handleZoomSpecifiedScale:_,handleShare:j,handleToggleCommentMode:N,scale:Z,isDisabledSharing:Q,dispatch:se,isFromAbar:ie,className:he,currentSharingInReadOnly:xe,commentMode:Se}=e;const _e=!((t=MB)!=null&&(t=t.user)!=null&&t.id),De=n&&!(r||s||c)&&!((0,_u.M2)()||ie);return(0,o.jsxs)(kz,{className:m()("toolbar-right",{isEmbed:s},he),children:[r||s||c?null:_e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fl.tA,{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,Ql.JW)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"}),(0,P1.A)({operation_type:P1.D.Login}),ENV.IS_MO&&(0,hd.lW)("Device-Top-Signin")},children:I18N.pPreviewToolbar.login}),(0,o.jsx)(Fl.jn,{className:"signup",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,Ql.JW)("/dashboard/me","_blank","noreferrer")},type:"signup",source:"proto-preview"}),(0,P1.A)({operation_type:P1.D.FreeToUse}),ENV.IS_MO&&(0,hd.lW)("Device-Top-Start for Free")},children:I18N.pPreviewToolbar.signup})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Tu.A,{size:32,svgIconName:"design/preview/comment",disabled:(xe==null?void 0:xe.comment_permission)==="off",className:"icon-box",toolTipName:(0,Pu.Qc)("comment"),direction:"up",active:Se,onClick:N}),(0,o.jsx)(A9,{})]}),De&&!_e&&(0,o.jsx)(C9,{isDisabledSharing:Q,onShare:j,isNotLogined:_e}),(0,o.jsx)(w9.X,{}),(0,o.jsx)(Mz.A,{scale:Z,fullScreenMode:d,isShowZoomSelection:!1,isEmbedV2Preview:s,onZoomIn:p,onZoomOut:g,onZoomInitialScale:y,onZoomSpecifiedScale:_,onZoomSelection:w,dispatch:se})]})}),Iz=E.Ay.div.withConfig({displayName:"style__StyledBuyMe",componentId:"sc-xiyek6-0"})(["position:relative;margin-right:10px;display:flex;.activity-btn{height:28px;position:relative;.swipper-item{display:flex;justify-content:flex-start;align-items:center;margin-left:8px;}.activity-bg{width:104px;height:28px;cursor:pointer;}.activity-swipper{width:104px;height:28px;cursor:pointer;position:absolute;left:0;top:0;}.a618-icon{width:72px;}.activity-btn-close{width:20px;height:20px;border-radius:50%;cursor:pointer;position:absolute;right:2px;top:4px;color:rgba(246,154,24,1);&:hover{background:rgba(246,154,24,0.14);color:#CD7711;}}}.buyme-btn{border-radius:44px;height:28px;font-size:14px;display:flex;font-weight:500;justify-content:center;align-items:center;cursor:pointer;&.activity{padding:0 5px 0 9px;background:#FFECC6;.text{display:flex;justify-content:center;align-items:center;color:#865903;font-size:13px;font-weight:500;line-height:1;font-family:PingFang SC;span{font-size:9px;}}&.upgrade .text svg{margin-left:4px;}.buyme-close.activity{width:20px;height:20px;margin-left:2px;border-radius:50%;color:#F69A18;&:hover{color:#CD7711;background:#F69A1824;}}&.no-order{.text{align-items:flex-end;}}}&.free{width:87px;color:",";background:",";&.isHovered{background:",";}}&.trial{width:72px;color:",";background:",";&.isHovered{color:",";background:",";}}&.due{justify-content:flex-start;padding:4px 4px 4px 12px;color:",";background:",";.buyme-close{width:20px;height:20px;border-radius:10px;margin-left:2px;background:transparent;color:",";&:hover{background:",";color:",";}}}}.buyme-btn-activity{height:28px;padding:0 4px 0 8px;border-radius:44px;background:#FFDED6;display:flex;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:500;color:#D92400;cursor:pointer;.buyme-close{width:20px;height:20px;border-radius:50%;color:#F0A799;&:hover{background:#F5C8BF;color:#D34444;}}}"],e=>e.theme.free_buyme_btn_color,e=>e.theme.free_buyme_btn_bg_color,e=>e.theme.free_buyme_btn_bg_color_hover,e=>e.theme.color_text_link_normal,e=>e.theme.trial_buyme_btn_bg_color,e=>e.theme.color_text_link_hover,e=>e.theme.trial_buyme_btn_bg_color_hover,e=>e.theme.color_text_error,e=>e.theme.color_error_bg,e=>e.theme.color_polyline_normal,e=>e.theme.color_error_bg,e=>e.theme.color_text_error),Tz=E.Ay.div.withConfig({displayName:"style__StyledVIPRightsModal",componentId:"sc-xiyek6-1"})(["position:absolute;z-index:10086;top:100%;width:352px;border-radius:10px;filter:drop-shadow(0px 9px 28px rgba(0,0,0,0.09)) drop-shadow(0px 6px 16px rgba(0,0,0,0.02)) drop-shadow(0px 3px 6px rgba(0,0,0,0.02));left:-131px;&.free{left:-131px;}&.trial{left:-139px;}&.due{left:-121px;}img{width:100%;height:100%;}.desc-grid{position:absolute;top:137px;display:flex;text-align:center;width:352px;justify-content:space-between;padding:0 20px;.desc-cell{width:72px;height:45px;}.desc1{color:#39250A;font-size:20px;font-weight:500;line-height:28px;height:28px;&.has-han{font-size:18px;font-weight:600;}}.desc2{color:#865903;font-size:12px;line-height:17px;height:17px;font-weight:400;}}.features{font-size:16px;font-weight:500;line-height:24px;position:absolute;top:33px;left:31px;color:rgba(51,51,51,1);}.more{position:absolute;top:33px;right:24px;display:flex;align-items:center;color:#865903;font-size:12px;line-height:24px;.svg-icon{color:#865903;}&:hover{color:#503510;.svg-icon{color:#503510;}}}.upgrade{position:absolute;top:206px;left:31px;width:290px;height:32px;border-radius:6px;background:linear-gradient(90deg,#DBBB82 20.83%,#986818 100%);display:flex;justify-content:center;align-items:center;color:#FFF;font-size:14px;cursor:pointer;&:hover{background:linear-gradient(90deg,#E0B05B 20.83%,#845403 100%);}img{width:144px;height:22px;position:absolute;margin-left:5px;left:-8px;top:-12px;}}"]),VJ=E.Ay.div.withConfig({displayName:"style__StyledVIPRightsModalActivity",componentId:"sc-xiyek6-2"})(["width:266px;height:316px;padding:24px 18px;border-radius:16px;background:url('/mb-proto2/images/toolbar/buyme-btn-bg.png') center / 100% 100% no-repeat;position:absolute;top:100%;left:-152px;z-index:10086;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;font-family:'PingFang SC';color:#525e71;filter:drop-shadow(0px 9px 28px rgba(0,0,0,0.09)) drop-shadow(0px 6px 16px rgba(0,0,0,0.02)) drop-shadow(0px 3px 6px rgba(0,0,0,0.02));.left-time{font-size:14px;font-weight:500;line-height:20px;}.discount-title{margin-top:16px;font-size:14px;font-weight:500;line-height:20px;}.discount-container{width:230px;height:136px;padding:12px 8px;margin-top:16px;border-radius:12px;background:linear-gradient(0deg,#FFFFFF,#FFFFFF),linear-gradient(0deg,#FFDB95,#FFDB95);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;span{font-size:14px;line-height:28px;}}.payment-btn{width:216px;height:36px;margin-top:24px;border-radius:22px;background:linear-gradient(91.21deg,#73C7FF -7.44%,#4D54FF 49.38%,#FF83F9 100%);align-self:center;display:flex;justify-content:center;align-items:center;color:#fff;font-size:13px;font-weight:500;cursor:pointer;}"]),Kf=e=>{const n=+new Date(new Date(e).setDate(new Date(e).getDate()-1)),r=+new Date;return n<=r},wf=function(e,t){t===void 0&&(t=0);const n=Kf(e),r=Math.floor((+new Date(new Date(e).setDate(new Date(e).getDate()-1))-+new Date)/(1e3*60*60*24)),s=r>=0&&r<=30,c=r<0&&r>=-30,d=t>0&&n;return{isBillingExpired:n,isPaidBillingExpired:d,isDue:s,leftDays:r,isJustExpired:c,isPaidJustExpired:d&&c}},zJ=e=>{if(!e)throw new Error("user is required");const{paid:t,edition:n,trial:r,value:s=0,period:c,next_billing_on:d,nextBillingOn:p,current_plan:g,currentPlan:y}=e,w=d||p||"",_=g||y,j=Kf(w),N=wf(w,s),Z=_==="free",Q=j&&(t||s>0),se=!Z&&j,ie=!j&&r,he=!j&&(t||_==="solo"&&!r),xe=he&&["premium_lifetime","standard_lifetime"].includes(n),Se=he&&!xe,_e=xe?n||"standard_lifetime":"solo",De=ie?"trial":he?_e:"free";return{userPlan:De,userPlanType:ie?"trial":he&&t?"paid":"free",userPlanPeriod:ie?"trial":xe?_e:he&&t?c==="monthly"||c==="threeMonth"?"monthly":"yearly":"free",isBillingExpired:j,isExpired:se,isDefaultFree:Z,isFree:De==="free",isPaidExpiredFree:Q,isTrial:ie,isPaid:he,isSolo:Se,isLifeTime:xe,...N}},_z=function(e,t){if(t===void 0&&(t=null),!e)throw new Error("org is required");const{paid:n=!1,plan:r,trial:s=!1,next_billing_on:c,nextBillingOn:d,value_in_cents:p,valueInCents:g,seats_taken:y,seatsTaken:w,lifetime_seats_taken:_,lifetimeSeatsTaken:j,lifetime_bindings:N,lifetimeBindings:Z}=e,Q=c||d||"",se=p||g||0,ie=y||w||0,he=_||j||0,Se=!!t&&!!(N||Z||[]).find(hn=>Number(hn)===Number(t)),_e=he>=1&&he===ie,De=!(Se||_e)&&Kf(Q),Je=Se||_e?new Date(new Date(Q).setFullYear(new Date(Q).getFullYear()+100)).toLocaleString():Q,Ne=wf(Je,se),pt=!s&&r==="org_free",_t=pt&&!n,gt=pt&&n,Ct=!pt&&De,zt=!De&&s,Dt=!De&&n&&se>0,sn=Dt&&r==="org_lite",Rn=Dt&&r==="org_full";let On="expire";return Ct&&(r?se>0?On="paid_expire":On="trial_expire":On="default_expire"),{orgPlan:Ct?"org_expire":zt?"org_trial":Dt?r:"org_free",orgPlanType:Ct?"expired":zt?"trial":Dt?"paid":"free",displayPlan:Ct?On==="default_expire"?"org_full":r:zt?"org_full":Dt?r:"org_free",isBillingExpired:De,isExpired:Ct,isExpiredOrg:Ct,isDefaultExpiredOrg:On==="default_expire",isPaidExpiredOrg:On==="paid_expire",isTrialExpiredOrg:On==="trial_expire",isFree:pt,isFreeOrg:pt,isDefaultFreeOrg:_t,isPaidExpiredFreeOrg:gt,isTrial:zt,isTrialOrg:zt,isPaid:Dt,isLiteOrg:sn,isFullOrg:Rn,isLifetimeMember:Se,isLifetimeOrg:_e,...Ne}},WJ=function(e,t){t===void 0&&(t=null);const{next_billing_on:n,nextBillingOn:r,value_in_cents:s,value_in_cents:c,seats_taken:d,seatsTaken:p,lifetime_seats_taken:g,lifetimeSeatsTaken:y,lifetime_bindings:w,lifetimeBindings:_,paid:j=!1}=e||{},N=n||r||"",Z=s||c||0,Q=d||p,se=g||y,he=!!t&&!!(w||_||[]).find(De=>Number(De)===Number(t)),xe=se>=1&&se===Q;return!(!(he||xe)&&Kf(N))&&j&&Z>0},HJ=e=>{const{next_billing_on:t,nextBillingOn:n,current_plan:r,currentPlan:s,trial:c,paid:d}=e,p=t||n||"",g=r||s;return!Kf(p)&&(d||g==="solo"&&!c)};var Pz=i(15628);const Lz="enterprise",Nz="personal",_4="buy-me-btn-close-day-org",P4="buy-me-btn-close-day-user",jz=[30,15,7,3],Dz=[7,3],n6=an()("2025-10-12 18:00:00").startOf("hour"),o6=an()("2025-12-31 23:59:59").startOf("hour"),a6=(e,t)=>{const n=an()().startOf("hour"),r=e.isSameOrBefore(n,"hour"),s=t.isSameOrBefore(n,"hour");return r&&!s};var Lp=function(e){return e.Free="free",e.Trial="trial",e.Due="due",e}(Lp||{});const Oz=e=>/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9\u{16FE2}\u{16FE3}\u{16FF0}\u{16FF1}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u.test(e),Rz=(e,t,n)=>e?t?[{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:"3000",desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:"500",desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}],Bz=(e,t,n)=>{let r=!1,s="",c=0,d=!1;if(!n)return{planType:s,leftDays:c,isOrgFull:r,showBtn:d};if(e){const{value:se=0,pt_next_billing_on:ie,nextBillingOn:he}=t,xe=ie||he||"",{leftDays:Se}=wf(xe,se),{plan:_e,status:De}=(0,wr.rM)(t),Je=Se>=0&&Se<=30,Ne=(0,jt.Yt)(_4,-1,jt.qW.Number);switch(_e){case Ds.Sj.OrgExpired:case Ds.Sj.OrgFree:s=Lp.Free,d=!0;break;case"org_lite":case"org_full":if(d=!1,r=_e===Ds.Sj.OrgFull,!Je)break;if(s=Lp.Due,c=Se,Ne===-1){d=!0;break}if(Ne<Se){d=!0,(0,jt.a0)(_4,-1,jt.qW.Number);break}if(Ne===Se){d=!1;break}jz.some(pt=>Ne>pt&&pt>=Se)&&(d=!0,(0,jt.a0)(_4,-1,jt.qW.Number));break;default:d=!1}return De===Ds._E.Trial&&(s=Lp.Trial,d=!0),{planType:s,leftDays:c,isOrgFull:r,showBtn:d}}const p=Xs.tz.InitialUser(n),{plan:g,status:y}=p.planSdk.prototypePlan,w=y===Ds.pZ.Trial,{next_billing_on:_,pt_next_billing_on:j}=n,{leftDays:N}=wf(j||_,0),Z=N>=0&&N<=7,Q=(0,jt.Yt)(P4,-1,jt.qW.Number);if(w)s=Lp.Trial,d=!0;else switch(g){case Ds.L1.Free:{s=Lp.Free,d=!0;break}case Ds.L1.Solo:{if(d=!1,n.sub_plan!==""||!Z)break;if(s=Lp.Due,c=N,Q===-1){d=!0;break}if(Q<N){d=!0,(0,jt.a0)(P4,-1,jt.qW.Number);break}if(Q===N){d=!1;break}Dz.some(se=>Q>se&&se>=N)&&(d=!0,(0,jt.a0)(P4,-1,jt.qW.Number));break}default:d=!1;break}return{planType:s,leftDays:c,isOrgFull:r,showBtn:d}},GJ="buy-me-btn-last-close-left-day-org-activity",ZJ="buy-me-btn-last-close-left-day-user-activity",KJ="buy-me-btn-last-close-left-day-org-activity2",YJ="buy-me-btn-last-close-left-day-user-activity2",Uz=e=>{const t=Xs.tz.InitialUser(e),{plan:n,status:r}=t.planSdk.prototypePlan,{plan:s,status:c}=t.planSdk.bomxPlan,d=[Ds.L1.PremiumLifetime,Ds.L1.Lifetime].includes(n)&&r!==Ds.pZ.Trial,p=[Ds.L1.PremiumLifetime,Ds.L1.Lifetime].includes(s)&&c!==Ds.pZ.Trial,g=e.aippt_plan_state===9;return{isProtoLifeTime:d,isBomxLifeTime:p,isAIPPTLifeTime:g}},Fz=(e,t,n)=>{if(!n||!a6(n6,o6))return{isDue:!1,isPaidProto:!1,lfTotalSeats:0,minRealSeats:0};if(e){const{value:w=0,pt_next_billing_on:_,nextBillingOn:j}=t,N=_||j||"",{leftDays:Z}=wf(N,w),Q=Z>=0&&Z<=90,{minRealSeats:se=0,ptLfTotalSeats:ie=0,bxLfTotalSeats:he=0}=(0,Pz.TF)(t);return{isPaidProto:(0,Xs.EQ)(t).proto.isPaid,lfTotalSeats:ie+he,minRealSeats:se,isDue:Q}}if(n.sub_plan!=="")return{isDue:!1,isPaidProto:!1,lfTotalSeats:0,minRealSeats:0};const r=Xs.tz.InitialUser(n),{status:s}=r.planSdk.prototypePlan,{next_billing_on:c,pt_next_billing_on:d}=n,{leftDays:p}=wf(d||c,0),g=p>=0&&p<=90,y=s===Ds.pZ.Paid;return{isDue:g,isPaidProto:y,lfTotalSeats:0,minRealSeats:0}},Vz=(e,t,n)=>{if(!e&&n){const r=Xs.tz.InitialUser(n),s=r.planSdk.prototypePlan.getUserPlan(),c=r.planSdk.bomxPlan.getUserPlan(),d=[Ds.L1.PremiumLifetime,Ds.L1.Lifetime].includes(s),p=[Ds.L1.PremiumLifetime,Ds.L1.Lifetime].includes(c);return d&&p?[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/ptMt",className:"pure-svg-icon a618-icon"})}]:d?[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/399",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/bxlf",className:"pure-svg-icon a618-icon"})}]:p?[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/399",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/ptlf",className:"pure-svg-icon a618-icon"})}]:a6(n6,o6)?[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/last-week-tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/last-day",className:"pure-svg-icon a618-icon"})}]:[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/last-week-tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/last-week",className:"pure-svg-icon a618-icon"})}]}return[{id:1,content:(0,o.jsx)(Et.C,{name:"toolbar/618/tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(Et.C,{name:"toolbar/618/ptMt",className:"pure-svg-icon a618-icon"})}]},zz="\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsAAAAIOCAMAAACBE0sZAAADAFBMVEUAAADhuHDjxpLn2r/k0qzlzJ7+/v3l0Kbs48rl0arm2Lvftm3//v3gtm7//v3+/v3mzJ7+/vzftm38/Pr///7//fb8+vbn2r/byJ/+/vz18OTm2b3o3MLp3cT9/Prax5328ebr4Mn07eDcyqH69/Daxpvu5dH07+L38ujZxZn59e3q38j6+PL7+fPw6Nfdy6Ps4s3x6trt48749Ovx6djv5tPz7N738+r9+/jt5NDy69vy7N359u7s4cvq3sbv59TYw5bm2LvdzKXfzqji07Lk1rfZxJjg0Kz///7h0a7fz6rj1LTezKbi0rDl17jj1bbXwpPo28Hl17rw59XawpHaxJbWwZLaw5TZwI3avIPZwpPetm/bvIDaxZjbunvZwY/Vv4/avofYwI/av4nftW3bu33dt3Law5PcuHbUvYzKfhzcxpncxZbcx5vawY7av4vcuHjbvobdyJ3cxJPdx5nduHXcwo7TvInetnHbwIveyqDdyZ/gzKTkzKDcv4jgzKLhzqbfyJvfyZ3i0Krey6LdwYvdxpbcvYPfwYngy6Di0a3gxZLevYDgyp7duXj/9uXevH3ev4bfxpXgz6nfx5jgw4zSuobhyZvdw5HevoPjzqTix5XcwpHewo7exJPcvoXiz6fgxI//9+ngv4PUkTbdunvl1LDgu3nqwmvhyJjgwIbky53hvn/Xlz3l1bP/8Nbl1rbixI7l0qzl0KjhvHzfuXTfunfZm0PNhCL/9OHjr13hqlfjwonSjS+ncSnPiCnfp1L/6MDdo03boEj57+HqvW//+Ozsw3b/5LbkyZjnt2jls2PkxpHguHH/68jlvGf/7s/tx33iwYXhtmzJmkywfTbes2DTp1farVz03K7Dk0b57tq3hDm9jECqdS3505D1zoj0yn/HpGyueTD04cH72J/sz6P79urgtmrqyYnRtYX36dDOoFHv1qvtzJT/+/LYnlLCmFn93ai2iEj14Lmzg0D15MrPsYHbsW3HoGLiunTy1Z+7kFLRrGzMq3jn17iz/AoyAAAAFXRSTlMAX19gYCaCikK539vfj8+fb7+/sK8K/rr4AACZOUlEQVR42uzbz0obQRwH8DW6JLEI3jwo+Cw5FxfsNdd9BE/FIZqANCm5NQTiJRCI4Irkj8nJFxD0kn2JfQTJJf3+ZmeyO7upLaW0Hfl9fr+d2c2EwMKXgTnEYYwxxt6jUrFYchizVFFA0WHMSsgvJ5hZa18o+w5j1nGFVncdxizjHou1Y4cxy5TFWiDKDmNWKQqFD3LMQvsio+AwZg23LmJ8kGMWSg5wfJBjFiqLrEAEfJBjligirxIf5JiFdoTCBzlmoeQAxwc5ZqFjsVnAB7m/wnW37FcooP+NciCoNivv/Fnb6P9F4Q07cvgN2yBnUiq5Pwvv3ocojKLIj0Jc1GEY+pHvhxBR05JP3wip5ToeaMAiPfr0TCPIFZ/Kl7+GrwFG+kzzX/KWs9lyOcOAaTlHLefz+c38JuXh5kG5ozIMBncDWCwGCxq1R1y3mEyd8QbPadeJJ/QGQdAN0kQ6wT0UTWnT3jSr0Zg2JhnDydBwnzYarUZkRbO38rzVyqt4lZRDcgAY4JTq9JRuDo7oRl+yNLmOSy9holl+FtMfy9+IR3Tt6uzqDL6dXRKMdWi36yjS/Nys1dBwfn5xfkH6pKG0Gq1Wa4Lr5GR4ol72I15T8kaeVNl94x8Ce69+WohG6dtQ3eAuWTLpRS1/p38vLnS1+pIziy1RMsAkG2B4WLvLQ4TJgvJrZhiM/HYex51xp5ML8Pj56zNauTZS/JTT7ZoRzm7CvbiUKVUfZZqgJ5NMjI0AyyExIirIHkGCVxWM2qF0oCG36yjHN/pZptV0lHxPJh6TjjY9J0vEu7wiFOFLXBRgJFhrN9tNqRbrIcMywn10v9FXCdYQYIQY0q/pwSf5ZrvbziZbr0nQwiSOPxAZXzaS+stC+fPVF9qDq2aCE3MtHV1jBwZjDx6gqUBtwbjgViUY+f2yjm8c4A4yjDbzS/GVwzUKETY8JQJUFxNluJvPsCm1CaOn2ICmhmyEh7kM36ONAJtbFNA+/J1Zs+mpq4rCcB0Yv+LEqWP/hwqkIUhvJBhJGODAwIALA7AJoTVQQCNfDYi2gaqBNC2hGoMfMOofcNCJ/gnjn9BnrbUXa69zctH4Efvstdc5lwuaG56+XfvoSBicHH4738QtLToXf5m/0XGXtWgb3Y8NAhiKwslhFCaEwUPYCYOBDGY9LAprBtsH7ajCONxL4VeygHGbkzN/JRv+lyz2GKf0+gSDdUPbYA3hZgBnfdsG4652V5hCXzVXPH786PHPGExFCmMw1QjhI0KYVRKYSlxkr1lsd5cZrAlMdwjgA/Q9aI8S37epDKYSoTDbIIR/J6xc41ffEIX/O169ibrdksDT6i/6Givi8LYInEL4JgofuMAQQwQ8ZIqAh6pwCDygn29E/3S+8Gxj+H2pt2+/+jUreLmvOcipXt8xDq0ZImewGXycyfpSTljsRAKzqcdNsDf0TSG8ubl5jx4RHPpqC+6y6FALzE6EwhHDh1RWmFliNevbO4bh1B12k0HG4RH3V7dKjMZ0bWCNe3/LXlqj6xXsXeDKi/Rz3L/xwcfz3W5J4AB5TWGbgm2OWLoweJkihm2QONyLDAZCGH3xtx9IYWIYgcEMviYh/Gz2t6eC/5xfLr8f9wimnLM6gs+dhsBUMrhFCCzt0SNV2LO4ZPDnlsChcAKJv9MQpt0TjzNm8Ak7UvhrDM4kf9VhqgaBK4MPJYS/p9rT8HDOYXaS2Pk95gnCSsfGEYtht9NEBHp5HXZLKa6yawt+qSeTYfSFCOHPYoxQfykk9iEiFGaMcIHTUc7gQ4rECDwkfHvakQS2UXhkJBuMvz0HiBh1/7a30HOmtgS2WljAXXbDYB8hqKbC2V926xTnJzm5PjJQ+TH2QtGXYgIWsr3fHcnlCH1NYFbm5N5PJ0Bjk76SwCgsC2iucItmBh9C0ngVfqgNHnaHk8VpkqDSROyM4C8OozAUWYu/YWLqFCssDufzndwsz4MmcHFY9Z22sxysUMbi9qJPEWtligiHK4WN4Y1hVRiD+0VgQlgTmIJsMP7+HyAvG0xi/F2QbfbGowh6FcG0IGUwq/ksLSHjA5TLJ49tfS4KB9+lID6imCKOGCVshthkJ8xeYpjG/V0z+PLj3EErhDEYfdmsLHHt8AYWP4xZIlvMaWfoNCwuA6PnsKRWfjLhAv4t4ueu3ZoviMFdlVgepTlmsGWwsOiT8JqFMLjBe4ere66wYXOwGSyDxGmHGB64NlA+1Ivu78s9DSNG/2uQWP1FYIlg3WcJ89djONmbMrhtcOaRRzAOI7ArrA67vew8SRwdYfFmgRmCmbjFiYC+pd+FojDVM4azw4clhdVjuvmrCrNaTyYaQewGxyyRDnY6OI5QLjA7rnTBrmyDO2/xpt9Y49LfnZ8yf1G3zBG02t8ZmyFgkQzmcfAiFZMwBvsYsUoKm8MbtcIyCQ/hMHRQeIAPhcLyJ/K5MkC8/z8y7hDAlCRw6xAXZId/bFDLmzOYIYJe1HU+EcpTCApyEHsEAzms3NPNqmCMQOHABTZ5pW+z14vC65XBDYVlG2UUhlUnYpgFbYExuGxTuFNpbKAwk0RRuMWrcSPbMcPtrsXy/BdTCGx0HVPYQeE5DJ5Th0lgHSTM4LUyRqCxKAx7e8lg0Dl42MYIO8wxCxPDwsjzNkCMm0qmE6308oolDfx74hu8Sdd7pfwM2NWqtPyvYAcLhSdwicCJH3fc460sMfK2eJSR/FVqibHWDI4Ehs1NqjySIIcTJ+xscA0Ob9/d3v6ahcYInI5zSweJ2mF29YDUxwkO6OwNNg7zvNQ97leJiSpQm9VhqkPj983oSCeD62Gi3MRwMZLfgPw6v+rMfTE1P0VVAtsg/EGVwdTcnPg7t01bxGGN4CUDg81fHyQweK+eIiyF+8EU7nQGZJHD8IIGcDhVJAsV3dE2+dvjVbT4p9Iz4XE7gKmzhbNMbS8tPQ7G3x3EpWOvGrwVI3BonEeIyOBQ+JPIYXU4C5y5J+X+2kowCFeovdv4u73+NQs+XF/6kCVIDtOcQ6qAwtlgwF6BLjwkn3RROixScmin2KdDqrEYjL3oq/gp3ort8JrtXSq+JNbW6FvD3dHR0S++mMdg85dSh604yFUhzCxhGbzIHIy/hLArbFwMwnuAxKFwgU9GmcSn/nEkgl8O/ahKRA/e5LCHZybevkx2VhD3OX9d4kTvCEZcaufHnW+4yY/Ttrbu36cSSWLG4ETMD4aoqw4bhHDgBgdZ4TqDQ2KZJzSDtYnEWd88TKCwkS1GX6pADit6Yi/PTfuxV2Gi6Mjc2GEPACKXifjPucaqaP/MIfpOTU0xQ4A7fKEw9k67voDAhDCTRHLYj3IkcJzlkBjSWW6wGAzq79CphjBIBCeVePEv8X5cen9P8lf2JDxZmDyTJXV2vccQ8aBsIvgYfQ2Rd2dHInjrPgvoIvF+zBCyXeAMGYzDFUefHyXaQexkh/UglxS22gb9jxvroA4TwOtLNFlUGiQ41rjAzUmC2pBx2DGJxWBzeEgsxl48tlNdR2pAfumcf+QYZKimlG9Wea03YN3frxjYHi1IAkMIzBQB3elud9pnCMETWAbhG4uLa6z19TV7oKa4w6sYDP5MOFLYBUZhkI9zjQcRz4w/HTBBKCruk8nJs+uG+HudF+fXz89v3759zqLUXtoDrj8eSwIbCLy1s7Ul6YvEsvB4f781B++WhsRUlcHsQAI4+Uul0xwrCUw5GNxkW8FfLEbgdVV4nRiWhb+qcsQwaUQpbYk3qFD4YZXDPjF+i8cY7GcfjWHgKZQ/iQoG8m3cZcLib+fd3ynFFa6nCMlgZ0YknpMUVta3UZgpIinsKSwfds9H4atlElaBGwpLCD/PBPE0sABusOMGW52jritMd4Ux2OSl46+UCRwDBHf71Qxxf3fX/c1BHBZneiewWfxpcjjTFljPc4DCIjH7YH0dcc1gWs3ygTuMvoc/pEGCqiaJDQ9h6/2GyiulAg+xB+wXbxLb9ZqUki50KuCb2DT68ujsqDOFwzFGdOffuRgkpm2SYGEw/loKU4KNETZHrDUymAimcFhDGIkHTWAfI0xi/SDPXXll/ClgQfaFv5K/k9cnw95zucVfBGYhr/oLxw92HpC/D0xfut7Y7GCNta/cZ6nA+6hb2ctK9srOcIxze2lNgfH3kkmYqg2mHP8/DIlhfocBCqu5BzfpBXfYVhB/x/qhLjx2hWUZHWmnpvFAlhiys21E8/L+0Nro7OxsOFz0hZLA7/gogbzT6GvMzMxhMKzMkb83FjFYxog14ImaP06DvuW+PcNCmBQelBj2DAb+UJrBL/AQ7SlB7aVM4TO62MumicIWv9qPaXQEJoG57AQIvEUZNgibvTQ2xXWXEIZyyQLLyjTn4CwxCSwgsqyTTz89kZ0miawwuMI1YTCFxfwqEZkmKSwUiTMbsmuGTWFIv++EhrDUwN+ivzs2MTsxMep4Ar978TSNrUzzQC24NYPCc4RwyWAsVtaWRGKfhIvCe+KwzxEi8OAgWyI4p/CLV8afFkr+UgoR7BlsqLQ0dVeb+rvDIQ6DExzjXGH8RVzFrpLBGAwInI5zTvso9yWLcjA4WWz+Qrni72cnbOozM/jWXf76DIkjhVnZ4LCYkhhGY7YIHDRzuEmlMAXFYkqDWCeKMFhu6pcdaaXk3nWn0zZGJyZmVeAYI9IUIUMEJREMEsC2bzFHYHA5zt1AYEdDGIM9hfv6+vi8feawIBkM5U+nOOwfpf9Kj7/NaXaxl/E2FffV92iTr7TR5wt+m67xg2ylEriGCK6OcIroW2gZvBWgLA7vG9zs7jJH7GMv/sYckQ0GmiPmfoe/oa9WbTCThMcwXQ3GXRbdBgkMTtNwpDAVDlPBAb9SSWKVOM50q9Zb1DHsSaz+ahtqRrEMxSjZpPhLF+xLQ9w4a7MTs2MIPOYG5xA2hTH4HRwGj2AEnoFbFsJzN3QMLgpzkqsVXi4pDJbCYjCkwxwMoe9rd664itbaknoFrmyW3gW2zsXv7S4cTv+ePEBUVAc443YxmH1MP1Z92TthbzI4OUwVxF0uIjAG06WapziKFQaTwiTwhcKbsrPAoAarvfdkjMBcNPYxwnM4Bok0DVOYvGRU0wQKLx/w+6RJCovBMUpwVu+dw2FwiBzjsE/Df51i8HB3bAx5Z6UTwjXqLyX2dp1p+IDCXyCDOczpFFFC+EaEcH2Ue2sZYhK+ehWDyWA+lT4T7jeuvn7nzm9XLPvY4MnrqItsj9r8VS2XE+iGazvJHVq61nLhBdi9XiLC5a12+pZD3O3A5l+JYAeH2Q1/2ca+DBKavjr+isD3MdcFvuw5xEdiLyseCUcEZ4q8gL1skPCl3OOcwSTwCosqaABTtiqF9WBDFRCYjserIrFNiT4qUsogxQqJ+y213GG60+kNb9Z3uq9OzYq+NkNQKYFpEr/vdqdkCn6HpQq7wzAjBzkimARmza0sNgReW7tpEsfplU+Gv3uSwYNXBwGBbRJ+6z30/e3OlYVg0pteWQ5isXUl+IJKZ/ctJttfGZch138uvsXkpZw0PVgPhY9NXo/gNil+qQvKFLyb+KSp8Eds7GVFCGv+RgbLcr4Sf0lh09dhfAA6TZEE1h1E/rIdBGbnpxL6Ow2JgYsqHOwhsFjsDrePdFopiDsmsTUW5V+j2PENspc0eMfGOMSNUgg8ceGvdfxlMQWTwxgcCiOwG+yQwIs2RaxRShj81lvEsGfwKhLzMEIEdoXffO+3O0ACh1xU0lfLbyi/JNtZl0s7SaVXSEz51+XG3wgseMHHB09eGyCOc/yyKGerabAoTHd2qcCfR6QJAtIQTPxyjqPYTpGXBZ9aR2B/FsHG3iIxJQKfNOy9u6Lk41yO4AP2TToKewwnkzWGWRRb/XX01C4SB57D5rC0mo73TMcv/TNjQAIDT9EomDCBKUXsRV6fgOsMZoyYQWCZg3UKvrHCpiyFyxTsYwTuInCfIiHMZowwfSn0xV8KgSfB3eFKs85F7a3fYZVKX4V4w63Xu5DSQjz/m9K7gT0CzpTZwXnwBzNntxNZFURh32XihVe8ghkuiKRNvAAZid1OOkGZIDoR1NgQRhFEoxIDE8VEQS+88AV8Pr9aVXXq7HPGjtFoZu2q2ruB9if5slxnNw4ANwFCeyjjQyFs3SeYLv/1INw4cGVghQgXEPdi8FBX1EBgbOzKgpkAXB5cGJcAOBnWCAnhsGCbFSaEr3795fN8Xmdy8U/n7SnDfPgVVqVhBvwio1i9XPqRV995EACDsKeH99KC4Te1ZTF4UwFCHZ9meA7el+AXgH1xIYwBS2HBuhGW/3IVcS2AkUIEAuK1Fz+W93q/8Pbzpw8HBDfwKvyqQu7ApRZfsUuNAa4gUfcQBTCC4fPMD1ylmYLecRAWvi3DdRHByMuIz55+9tSu1ESyPtgoCwZaZhAcW4ewNDRgKhQEd79N6w/uxrGuUN2HA2L4LStOfDmFegdz6iT8jAc36a1Sl4DfogthYrCu0jJC5McZtCHs+cGTcD3G8bsRX1kMRvUoN9F1mj/ISQThlzw60NqfN4AH8O5ai9qW4MaAhwQPVOgWwv0IYZ38tkkiY7DxyzCC04NvbGQIJkjQisGNnl49LQEx9P4uem2c/nBqBgzCqHcZoS6AS3nD1Io4vPrLp6JXAwXEIhh4bZnaJKEWoYFpnDRzaNf64EHoPQy4A9iXtL2B+XqKwILFLzJ+K0TAcHhw6siECbsDpwm7B1MTRYiQ/fusCt9g97l04BG9GPAu64+i93EbIZ5xB0wvRbhz3iSYBEE1Ond84fZc3stCHIrhm5uvv6aMXUoAUw3BVOFrBb2UEQy2P6BTTxFgLIJphpEbBGtArwFMSWQJhzcRVpogSyS/eSmxVs8+sEyUKCNG0FkcS+7ElZKZGq9sJb9z+IXh95LgXgamYPjgnU1SMCGiHLi7Tdunkl+GXQZHBO7HYAgO+cfKKACevBThgUq90GTPv6vdv4PiPyV4t4+vAkTjwcDLKNUzXBG8hN8mAifBwvdkyC8RGMHvedCbKUI035gAWB78l0F44MBmwCURLIqdYWrZhYTxGz7M6BC+Bl/GKndOYOwQs1lqpJAFYYlD8VtmLBXF9SqpXs30wPIDDLvqKY6BxPABDDvANDrsLHg/HNga+bPc4Do4A5NSRABsCN977ftW4cD6r3Y3opGOVNpivep+Jo4aVPvDiXDu+RP1Lqr+VhypZHe3w5dCDb8tvqwmAFOtLn5kXVw4vXUPcUeXTmC4BVj0CmIAbhUmDL+IESlCtxFDfq9YZcHWHcWn7sbge0qSYMAura2huABWiWEaBccWFRnExRL4Xq/hxA6wTX0Yy+OcCY7LiKllOnqQAM8fzIEWjD0BUxp1EUGO2LQMQXqg04JDBIgMEe7AgwzRv0wzF55MrOMy4t7DMbxy4A8Henv0UrNOf6Xd4pylQ319+d+k/dau8xvpd3e39d8BwN+N3be9RBPCxrDLT318sd8T4B1nCBP4DgkONxa+Qa+PuEobIky1IkZQlYXhF8WWWYJeUO7BVKlihLbUqgF8bTbco9gQXhPDkSNoKWy4ANZArSfbi7VNwRsBwtLDHH7Z2s/hbJn4MA4Rgn1hwsUw0kUaIw0YgoNhZWBn+NiWNFmdYMKF71gATCAAMq14oYphXzEKfXFg0JSxxpH3MOxrDL2fKpJ386+f76Llrkw1r+s7/v5Wl49Tvz3+7XI2mxm4M9N3v82gd0eFNIcXELJfoRvx1+Yde59gJQgW2Db8il6qUSZhJQj69ua2k3Hc8ssa8ks5wfJfELaFkl8KZZZYPBk+0FUWptQp/ce2ACY2QrCJ2wh9GAvHhTDLP9eiHVaUUCNtqxvFL/gC8XxelxAMpYcKEJQcGG3RGYKTX1v+cVyXIaA4XRh8adf9lZXJMYsHuRcbfIcA7yKRaOjYqzqx006vTnJHf0nzDYpzfJHRf5ctoYn000x9g9Yplp8+DO5pvcHmpeNrdUlBMPRS1izCg23pvjvfCN+dAcCQSyXDGSFanRi9DcBOb2ZgRukmcvCNhYhbEDZqU/DLy6vbwhh+qS9ahgkS+nN0S9+6F4Pt+FeG04RpAewQl0gSpYiM7S8SIAiWHGK7Hk6SA2EHt+/LbIsgt1Jw4FsZQvDSoS1EjshbiEK4CJY6gikBfAS7FSLOnqwcK0KsvPQITpcBLHhQoiQVW1K8EniBPJXAO9h9uDn7Xu/1IUBD+SYpg692KQEWvD4yPcyqiRCy4B0mDEtv0hLIWkcETnzvxvwawY6wHc8NYCpNGIRZpo/CgD8ygH/+6MYIRsrA3legS9sqAfAQYdQ+z6UH9x2YDhOuzzaKYfLwkOBrzxIgjHo+jAk7x4ALwgZw4kvD8EDB8St7Ru2jHr9z5YeNOd5LdQBT29sb+UEG+RcFwVMliKnwjce4PceXCbyVIqRg+Al9H4DPXraLh49ZEvsQ4OIuiSrEHFcx5cgWcELNoU508zux5dcZxWi99EMu/TTNiELC1tzX+Z2Zkl8VDbdOrj/Cvfkm9DKYkj++qQRy3ULcZSfCXXY4OS96lX+ZRW8c7CIYcmlihA0HGNnHykVvMSwVxYcFsScIBhWy6wiysK9FmnAyfOYFubRrArkAzGanAJgqiBEQlwuH8lTwlq7fcnpLln/HH2WIYeMXirdcm+HAVDKcgmEkeq0jQSxo5r3FvXtnK2bB1PEK+Bq1H7OVPlYxAuDWEBsIW6csLhnL9OHwdR0K5OXCeVnil2Kb4b5JrsQJ74VgISyIdwJdNfPigue3cF/tF+BrMmzvaHR3og3zTfs9MYLLfsN8GSXwxYEx4E63JaNXhyCX/uLp1RemHsH2f+sOfPi0L8/ANqwWgviMFr+ss/Dh+pCu8+FVtSy4XFgDJcJ0H2CZcAymtgX8vt/GX4N3LnLzkPwqRkCuPHiTAxFYFE/fnU7JENO9d3sh4jAQppNhWbD1vUwRR8KX1mbyWRgL4OdQl7EnwGg2sw52c6/wwA613wW66cAXKbmvHuDg1sjNoiFYDMOvoUufyIAL4kgRacHsHLgHDoSVI3BfmXBRrCGKIfcKctkGJnyoh7nDng/THPxJjiEbXoAv82wBxSwDuZ7mqJTwnRi8jGD4OrKESuReQ3DJAS4JXwd6bb/gNXZpw1gIs0A4soQDjOoe2EIw/FYK3kNgrM0AThNmBb8VIrBg82Ce3IBVHVsFCF5rIAP4ccPOUI81qOb15TOhe8zi2Lx1jGf7Db1o35d/x55mJIiCV72DAyMD+Bvb3lR+MHFKfgtgpd+LOzgWt4Gx0DUDRqArcr/UamTsnnf8Qu+vUAzBqdvWgvMgfAFYHQRXhkCNC3uMYEcfZCAOeYxgUqRESimC7ZgKyYMnFI/uIjklJ15fh2KcOG34lWI4bVjlWtt+8L7HBybsIriV6drYsK25By5tmv3WJYTG3nQ67UWIgDgc+KhkJowMX/GZ7MZelXpBaAIkU2SJGweWheIryRRVfMXuc4RfgqojZ585mi/V+9n8L5ki/F5ivlJBbOSyUsJX4cGl/FCC3zsRDLSu/h3aiW4haEOYbpUXEdiu6KWQnuAGEYKR0jWEKgS7QTBVwoKJEqKXrhTMHhK9mLA2fuGFIkf4c45v9ThHEqatQBhu+WWuhBiAQZgl9eMwHFsNtDI3cN9/6PbrLXxpFE9wtGt7G4TrfywSwBL4Uiasl8oUURGCVQzHbQT4OrBaeWTLsyQTBuDCkU6A4ohIog5zwhV4+UnO6YCmNSu08rJ+JJZe1aRiSz+vv/0lzaQs/Rq/veRrk/Br+YGh3e236B0TjAQx7IrgE4M400PpWQjjvYavipHqEgTk+oPc7UhFsOiljOOKEIeob8HBcWlB4cMJsCIEHOtyOB7XAZjqCxeWCa+2uu6LG+LSKE3su/eyHN0YFBSnxC8FuRDMiASxJftluKa6R7MoLIDp/b6Er1WH8PRhBV4/sWrXlicAFigpjstUvjj+4cqrDmhoyTuWf7e+0sReooNehPPGNHrVvkEsh2D3jvJVguJ8gpP9Jr0cn+G/dOLLZI/TDbPx4DHANPmBpac4oGX6wRkODZ/mfKYJL4D4q1N8OAF+srAHOtmvRwkc+OyYEr4iGBNGLcB9M17XR83rLcPIxvqW2K0EkQHCTJjFjBxBh7a5gqB5imNIbsAAjAObxG9I4A7ugwPh15zVgfH6MQ4FsQBeruWE/QfvvmySL2skRV/PEKC7811nu5RU9P7oAMMuXVLwBWLgHSCsFEwPEK4AQSfEBW+FYLaDA3baZOQeKAfLgF3Am0lC8NI+O2wVKT5QCHYdYcLmwkfKEWBsScJTsPKE8H1SUVhxQquF+JolfmNhw60M4cnGg0ZzW5QCBMsHneziv7pFy2s0XUNsuvITZXuECw/et+vgvcaCO4Zfe1S2q3a1Ftxm4OdaY3qxXqqyL1X4xrgIfN9QIZilnV010Nrtg1Xp3EdAO0ZYJlwiQxTDYtd2WwYxja4ODsRs+C8tgKl8kjuM5zgIFr/lwohf/C6KF+iIJSXGhAkG7MYTXV8TBMLjJEGvr68CMBbMbAleO8rwID3MDJHkdhRLiTDw0lgwSv8FYyd4atMiBJXKxzhaCVi/2oP7toC2AI+/UxGC8jFji5M+R5B0JzuLV3gircTAqh+r91I4pwdYbfUjl7Z0oJCO0XnO4whdqrhVAa+1o1sEV/4NejWFse5/ORm/RAhUEJ8nwJ/QiEPQi+dSAW7AC73lwUkvZS0ThuIDDPjW6CUFp//aYpP/ZhIWvsySWK6HuQUdfxzTt8RE0JUJs52FZMTUysr94/vH4cFAnGoIRsYvk11JgkLsm+BbzisJXh8owIXijbnglQdjvvQ7W4oRIpdBESKmiCBMtyFC/GooB++9nlCO6a35aATwjAVolItdQ6DqyJSMqDz7e+h8CzDa5EgjhhUcIzuIx3zPpY5sJntPfKH5q7OPCW4Fv/nkVnOI8I9NfAiAxS3d6pwFtZ8ALpWdjjuwYDHcCxB5YBq+Kg5f4MLQ2+jQV2kchB1fRi8LC+JUHAkRMuKk+L6GEL4PwGz+QMdodC2SAVhas0aT+fsKvtRD+I2VUnKIQYJgz4/hPD+4/XYZmPIMbGuKOoDzJq0yxPThkNnSo3ZvAVaoLFiK1aUq1P/BG0uiXP8Ay1UApwFL0DsSqeENhtRmX86RIFh4LxWqBAy9smAhXEYMwucOb7F8k/77kxD+SR7MOLi5OWCCb7YMmC5+cWDxiw87ujVSp/ZHgIBwBAlpoT/N5rRPL629ZCRPzjDhifE7oUujNIEFU7TlYQj+YB5Pb2olX0bRyzTJfjfkwGgbcQ+B+Ypgc2BVEawQLH6Z4pdGDAl8hecyPRofOQHw/6h/AfyO9VBjfjMAvyF61RRSBv6TurPZbasMwnAuozsWVte+hSprFmdhx8RShOMIRchOK0MUKQRZAgVyAbBgEdFb5Zl3Zjr+znGcAlGh7zd/x267ejp6z3F+NhzqloK0fgcbGGgDYTJV+JqRKCW/fyrkHB7Fcexf4CWpPV0ToEuQ1F05vgawpJ/EBMJxS3dn1Y3EDsNpJajYCNR+nURRHE/XyCRY0iJmH68AdxnkhgrfdMEpFjDewQS5shC2fSlSuOCzfJQGusEw5cq3cAp8WzoptLrIgcgp9J8D/JH4DrUXXZIDv6xhuK0lTGxAd0Nh2G62QNyCmwrzoNYooS16y0M8yjzQGB+FbHgIEoTzNq70exoJGeEG33wecSWQSf1o/u8gV6LrWb+Ve52UbHHKQB4fc4D3RwoqgkkQTrkRpnzZ5cPfhd+3Ob+WfYzNR8Q3dMKuJeR6YxNDrsd6KtHAl6O7OEIEU2UlOkeS6s2Gqt5QvuPBFeV/sIE/1jn0GN5PL3vX12+y2z6CCHpBt+BtES7/wElwxS7ZShaibIS2rk9wa7MxzGj4WpClpNdA7hHsTyP4GTYQ7D/KEYABOb7mxRBGwbASWI3eEVnyLUwZ39sCbjewShBcEN8BLA6CSl/QE95Cl5NX+hC5ti/kEqZ0wQCcAl8y+RXBr8+glzg7CSJR8JujpiBahUhuJfpnATC8ksXuUwRr9RLIqjYvSS1tyHr0MFjAoHtLWiV0dSOIn5KjS6V9bxB7f9T6jSIfUQu4VYFbBKvavTmJfvpZHgIZwxzWsX4uHqfZvgBsIZCFrsueSozNRBzvOmGKKiH9dlYPzeCYWuDGFBAnv9rBEOwC4KiwS374agjizBKAVfILetS7bxvVrk3Ftq03yObyyO0ltXadoKnXLUpGU/R6zSuylu/lVYkrTuNq643oNev6KfdAGcjAJZxigRv5sHF4vW1LLcNJriqhvDGG96Eb/dHYJang6vwyoHiQ5lrbr2IlWq2uyScQvkK2hC1Bl4ryhs6XsAgmU05w6UciGD4eJ77Hx+Ukkl8uZjIP6Rxy/Q4lF0ybcOoeDun2zYZZ0tsKhqUV6S4CfPs8Dng+JL17JFRFZdbEt32HKDR1mLMGffUnm38xuSwe6URQr4rq79ZfoPYEukP3cEpq/5J1A6dEYtdl7kEEbzb0BuCLX3wBU1CaiBsuW34TXLavfDAEk5JsxCMIQzKltHYHsc4iXccKJvbqys4VBFNSrF8SdGkozERKEww3EAvj43sIFrpBcTIcfmK0FLhUQkkMqE1NdOZzbuJ02L0hbV9pmhQXv3aQG4jXb072IllzlspUuggH+LNSi+9DFgA+dXrL/p7ifDcGcKDLEbUE6cP5dntxQdlav70lgmBS7ZB9eFQRv36AVgy7HskwEGxfDgyvaYTJSeZnJTA84SOu5IfNSGj3BsKcoDgJVjWpjUaj8f3onkBjFeLHsRE8tv17PA5HXLb4Kj51C3p1eioDPKFjILAP9I4TG5iYzTkuDeWBYZdaz4Jni+dXrVbzU/ocAd7je7322SVcG5s3Ja1fGy6sObjGLsXgJctFQK8D7Gco0Usic725h5k4rX6NHbz2IE3X7iLWUOxFWcqfaE6opGBXv+2n4ZdAI38ucQ/FibDF2CoIjw3esfuI0vFsYR9bLBbxxZNP6+uAd0l0+gBu+WH3RssFLKmdWaDA1zQtfJ/n+OUB1ib8pNLnxcRQWr66cQuM0zkoBW8VCYbVUrcG8S0Q35YEsX98QQ29JXob+A9ZYEIF/yB+6eBc9KquS0axegQqcgtfrwh4f7IWym0scqmwy2CtMAZiETxGVaRjO7aITdCLfYBZ+GUDMxCHNMFKTHycT5aXmIjODETn/oGxtQ+k6KWW5uD7YjoCi4KEo4oSUy7qLUQjOQwxUmsmamOSDp83In2AmiY1dR9o+doh45vuF3iVVJEMv8JYyEbhyDhQhC5RAlxK8evOgeo3cJTbABgZwqTQjafAMDuhSDIRVM6eJUwIWJkH51gugt+N7QSvOPmLqehcXf10XV93aIp6p+ZGQi22sDU79QGdf4OOyBXHJAPgmp+w9tp8A8uX4p9i7L9zaxwwYvWqiN6ywKQATopJ0as9rKED35cEWCA4soUZaqARX4pCUFfN3yzSgkIiZnpc1NsadJBe8Ew5yJqGe1ebl+L4hoPgou7dkt7wDkgTxjcBPr8Ibq1sqe0ChltJXegS9GBYAmL8A+HcEmWAKaU1okjhgvOeznkdGmEIlokIiV6qk/szSahQUeCLosIuXmIMw/IRfX2JlyDPQHJByvYqDmki86BhTqWI3sv4HM5rmgiyXDDaj++CqEGjrj4W4MRsqD47NdZLB65cCWphW5y2c+EsqdfrfYCJUjCMaJuHU3Fb2irONV9shO75OfhKbOBkuPDloAQX+dgKZG+I8L1oYv3SyOX0xT3cmloEpx/mYgXEK0FMJXbU+7JZCtG44TimssOUkd3OATFFwNI0wPIxg6/kUcfOBeCvFofWbs0ywCfdUgtYu3dZDrhzhhNgyZuxS3lzEljSWoLjtNIrZIl5CPB/Ioj8p2L1UotdlB54c7ox89DoHHjPNVxsDV/QdXHN/rUjZS+VARa+gXMxDbok3HJS3+ua3mimWr83Qn0qhqe+jVd4CDspH6/ykXAiTCC1QpjI/uqHxkqMgFgPJMZgDLocV3qKL+p5AxQf8A4nWr1BcLckOxh2dZzUNB8/ME0/6I23wNfrYSzRIsNLqcX6KLGIOswhQASqWg21b2Wv+RsmxcG/vx9djrsGspT4Qq/fvu0uX61e+gXDRTjh9A/vdOtmZyjWrxFMDWoTYfRY+KKJE8tA0P4Qv2QjMxBiuGcjCOG74gKCXeAb7SropYJvEcxp5QwLXzimj9wL30MxuhfF457OWLyFMPNTOpFpyBnzC8/zRjNVsVsmYlezRbDIMTCRLqMWqLpi8rlGZic6D6IdFU52SgVZi5COSkRe+ODTNzGJ14KUM8S3Xq53s7U8i1waVdSWxO4pC3igc/AFW4aLem5mvkHrV6fU8gutt+BKSu5/H6344iVuyInPmmK8vJQFppaG9JZWBAhDLR0lxvgHUgiXykWoC9xoqJ5I+OWIvGcX3znG7N5R7uHRfBHOl3xeBi2ml9Mt5Xx5ANH1CNb+fZMfxTHRpM7RQxS0g6MPNGWGXopGULzmC8j7kSNRFCcjLUzFWIZeHJDOUP/IkM52gRey6p55EtnmP8hg8QJttB1m0/iyZtGGY0NaX8hN3b673S9/9BDg5rnxSxA2weuk0k4CfPk4udT+3eeEBwyXGoCZ0ZVMcFmIKnlPd1crOPvup8wS6JK2ghWh71i5ROiQBe7i0YNPANwR8zxzzdIMqQAuQRKGbwFXrYguJc9xoSiOyUa6PkpCEpVkpgVQg4KkZqoUe/U/gUnhQ8P6DsAZyj7IaoiiWupxvHnf270gS5AcLd9zYL6gbTmxeYknd68eoBm6O0ojzA7WnZtDS0MUVbuHc8EqiWKYNTZ42mIMtUxJb+siQBiOiR2Ec45TG5ikIoYPGnGAmZay7Tt+vYBehdp+49B/eHYy6ZbzE925BcLIS8cOJso9kNbeJL7FpHqP6UC3xEwhVOrlOroC4ELhKUJeVg/KA+8feoMStTYvtcU3FSOeIR46WBXAKPjNHVzzW1ItN7CSoCTCAJybV00ga4bXSxKp+AXc7rqI6fRXGCaU0ko1wCWQBtJqfP8NRQTH+kU0InXHeZV3dLuyu7nSmOz6tC6G/HpSokEx6BJyEJ0jbI3OMLNXHd8s6KTItVIIc4YM03rRUj1oAPzSfL74v9Je1R2b8Ysozq1KCXIN3MSWATEYuQJYyaEBL2GFZpxSWcNfhYOg39QOht630EpyopguGS8JQUtSqISVtZ2ZwQu0enzm9OqKWKXWya66qrPLIRJhb2GEyxeLXZFMabYwhqIQ/g6sllrBUVUGBBMnE58/+AeDFYKD3yxpHwhOOAfh+6y+ffYPZN1vIQ7j92mW8jO0DvVADGxDWQcEqVgHTQRiCmiJ6NBKokSYYBKu7+reLSfN9gny5GYCv5CrxqDz/QSIET4i1zCNAc18//oPu5tRIDkZ9r7iKPQtC5S6kbsuD2GtbLAV0ksZYiGMAuFXjjAtbcRquRDAz+qE5dtRRHBnD36FLsGQE/TSuWWb2+1b103DRBS+/47iwzpKJP4WpA/V+3ofr22eBZWI4Um9593mcldBrbXgNvo2Gc6AZpfhSUsLTHn3Lk2EhrcQDLtD3agQyAgGWIleErjcudEJZe9RcDmHrKUiOHSGBTaGIdgAJu1YvE6MyZSo/SIARjEBbrgI8Uu+mrr7RUUxc0NuQzC7F+/LxChBLCFpROzgTo8dZlMq/Hbg+wkEwGkikzqKQqpXLSnFTw1E6RC++a/QNA3e1qE3nKpGpyqQ+nkpIE54tySBkt4d66sevkHowiYsv+UFMA2CmVqZd/iLuXPZjaQIoqg/Y3Ze9cJ/USvWXrhpY6nVYBYseAkWSBa/wsdy4kZcrlLJWLzFrYxHRma5QXOIySoz434hYXJ19p2cIwTATv+d3iuMm90huPnFW0nFLu5KsBe5kuFFATdTcMXf//jzfUH84UPBi0nVhuG4Qf7xpXFdH99uYfYJg1isvl9BDp6QS1aovmIS0fwSmHXj7QMET27/ke78ELQw2jUUOl1Qho1EVu6dLfLMlHTme4yuFh17ITdrJbxi7bvwBc7ARj454MZwTHEBF60vf4G3O285AIZjMRyA8RaUMsXLRY0z+DIK2faXMhC+COHz/PhKjhGWSQ6/Na45QdB+ZYa4vJ/mVhW6OQd/YNCM/UDXPH/oNnwStJ9qrK2XisvFMNZ6YfJb630adofbi9vwhenBO+DjfAHl/6L7BmCA+KyY6MydjYA3XJNr2ivA9EVIjcgX94XL8Un94d4sP2Rnpyz/KMKXD8ct6Nob4eitHUGRXgy56Dd+8dA7R99nrlIw/kVH4VD73UpusUsrFr44CXCh9wK+PLtdyJAOwUJWoQA2uvFqwleuVWLWQQSnC5PJCuB7nx3uMRGMCl/SD+gcZsPw5HVU8Jm30hf5arrCF9cQ22FN8SN2wUqPjBXfmiXb1xTs12TfuJXuIKIHJEEGgRSu8GJGRUNNLpS6aqbYKaqosuqtTEIbBXZX1JSY/yTsWNUOf5rurLImjN5ubKOcd7vlOuwIo+9bIPuMcWqAWSJH32fI5eq46pfuv3r7sItHtwo4NIdfPFJ2kb45VxvuH9/jg7C7cD/Cnb8Wv/j5+z8YJE0vk7Ard/r2dJIJ4QwQjgTvvFYD4m8hEqXh4su5wgyAyz1RfnwCYkyofoqj/76E4ctvCb1XeoThA3xh69ONwNBLnh0dmOK8Lfc4kix7lDfAgWCVCJOMjDiMlgmwueIMwyuqqJTccolrtnh/1rPDK8kCb5LuvG/lvmdgI71uEL7PwIrjAmFODRIIkxW6q9yInwQwB+D03aiarsjlPQQ5V94Bk1z6f4SA4HkJHIll0yx/hWX14kYXATPEVm5+yzmcvoZfhjRv1BR1jMAkvR0G4lNgLUiFcM9mUGRIlYKuGjFx6b6OnBxI5OsJrg4UwDUAB05EWq6kzAqWkvPeM05RnoC8ig/A7yrAZPqnb9vg/1v6AVIjeNWI0nCJeX5rXGm9zxVgFi7VfVH6rpMbzM45wrAmC7yIaGRx2EyY1l+SQFQLPn9DDLolZVclYMu4lohmmAGs0qmN6XYATlrw3lPhWe4effhQgwuYHyCU9w6fEqS8I6NgfiX6rcYL/lWnBeTuG7vI0XZxx3FwdhgFtoFPianMgslUEjHRhZRoYEnzOQZ45WHP94rTFPaN+/5/Ul8m5j0DjqHsDd+xhB+B7Vs5wSxw355N7aYnEL79ZG43fjVGv8hHHIEvjHO5eorrky/Sm+CKhEgcD8Ow6+TrKM9xCvReLtQCWWeiuOy+SO7T7/1ljgvCtF1VCE9VUy7pvMtFMhPLp17ze4jqA4bFdDgkbErNXdkK1L5Qh32X907hzs/uEXOVqmaLggy+N04tN3iHV3ozWm/ohdayd5RbsiqpoqCEAbJDL7zKmDPDorc5OzwXwzV03G23CVRxYyu5Qy2+YmUojRdpUtzK8gfEpIFYNF+vQvnq5ziCDsFgW6MiwT1Y0S1YGQkKxj/aTv1STY2YBgzJwhPX+IhhzTXRNAS7B6MkktEF42JZr37xVQ1njHZpoMgxPpzKdtqzmIKubLvb2RUfycg1upSFcKhtM8KivS+NDWO8k+yQeUuWl3tcQUAqZ2gRtL5Vqr47Lindt8awq/Cxo+/ednN4cILErEaBizGIVPxnHBVMcHrxVQOp/UK0+m734CSCORh7YCedjOdZLvoRbiFZVgD/+PAoBui/1uMMLo4SqU7XnQiolNRyfWoA2Hlmkw4V2R3i3u2+hjy7nWdf0llJIberCsCma0FQw5Q4J0hdTZ9duXVfzE2KTlxG5jjsdtE7uqTZCj5u9H2iZZIx2m2LKGIRZwUZSv9lbCcHd97b78GLydXwIfiCy5sHeTA+9yECRG1WI3ytaJD9lycE3LrIGOhEjkvrPUGwHuSguRiuC+UgQRDC5yZWHisXjMehXlHqqbBFima4EkLjzIuHndV9kvleTiFUB2O8k5Br3fkXvZwyri+wTeFX2+QDTaNmCaHRmkSDeRhsgleplq+1yzf7Y0Mso0zodg6rgZaLugbuJmix2xPhJng3BWVAxUaFsYIrFwSrenTrsy+qSn72nwl2661IxmD1GvkQrCBRKVi7/ZIXtKiRJYBrOYbgJdzz9mxHxrAaXMFJ5eXTbrm7KF8aYzyZ/+dfFv6SPv/721i7Wx59nOs339/rbV5ntRwTLJqvM+suKGhBS4S3zrQc2AldilzYxU2+wVkTuzIscPu0iw3AqNxNCfAqJ95uGKOuEEsY/1X4NbTRzC5cffw947nwBL4Fd9l7r2AG2ya4ACYn4JmufVihpCIMC2Oxi5+zMAifCEo74jg+7PhyDcPGM4bC8Hb+JRzHQf5yAPFH6F3L++o/pjtBiXKCJLqkxEWp6FuwGUPLboJIxTTZ+ZOfJLWEsG8f+Ut2wATrtFn8GzY91wC3ilw564Y0h9mCFF/6jmuV0fVQw11VLQmvrP90mF86DL1UiAykFHILW64m2O0Xtr9OD+6LgcmL3poonJj5EFxvHcpjmpyw886usLUhd2B3X8N7CbmJhwYGxehdHB//MsuPfxjgaV1CAT/z5lrxrZO0TMNuZS/e9HIfrkfHoKzEs1Bf/llRw8uamPjnDpvg9U2xX+9WRDUXt7aSwrTdp/KCt1JsP/V+DGRYlaLi94K3SM3rxCi6toNc4UwCpQVzAAZm03vCUKMrE8HYHCbAtjQRhA9ztDI859vKoxeu9dxr47IOdWBFH6KjiFVn79G7J7g/wfudf9MVxXjPVJdLsTLvdylmnwq7K8NFzzmnLp+zrX1M4jlbzGhaLI5QPrUB100Xx/jpJ/InlbACF6JXTD/SghWXd2atkMtDXENLSoii63giuOrwEGgxK6XUT6Asbq9YyboXxDUa4qsgs23PacRdYfnY60d7xZ3VaM4ogS4TKeW4de09ivOZdxsrmsMEieFyxdkEVbCUqVDFe8l+2cQ1W5WkqDARU73nnkpZ9+eJWfulgDRB9NnnGxLBIrYPDjXbn9YEqc3YutyVYNuhMrD1SaFE6iQCVDOrOehScrEtyJrZh0q8cGqPqgEriloOwSZZ/fihMQuzCu/qBeP3kkqOSmX4IwyrGogImuW7HqoFWyubyiuRlIR6FLc3ct2aDmwGBERnnjmTyHRtSs3rcrk1a0vFoDvbvkA+3TGZ3SKjeoPb8koJFG9DLhXpaS6NJzskerHAmqc1/kRCT2dFVXXcGdWJBayRHX4xpcQ030n8AgJD5CY4ehDGGMmJDM8gnYhEa3Q/KB+DlmSy/qAuYpXvU+COsipgOvpub99Q2AuWQbuuiguvXg/58ikZ6TY718sB8LsKHP9v6Tms2y4RwwMrDi+7aQfEDqmh2BOJ6Fx/94E4ZeiHoGEM6orThC8vja8khLkG25EKE3FCtx/ZOoPfwpbUfXhpxKK3MgLccp2YAG/nw/Au/5JjKBn6ExxDr3SB3EtNmtWhuOwY4NJbw6Rkbomp+ktkmuaseVjOznzOFO7+NqbfvcfUv/+fQ06503zJRLNFxjnBBTXb8sTBVmM/8wKvsMUhnKL4BVPNcUykCpGg5bKUUT4IkX7637w2i84Jhrr4ZZwYyk6CF5EMvSxZdGPZJx+n8lhSTAE/M0+5XiiuSi+XDrlPFaKuUdzL3lw+KCd3CNRRdjnehSYyufYz6X7m9cZDYX9QIrdLrQxlzZqaMdeC6et7szWE+qNXcnHqsfiuwCyOMOama15JsJ7vSvt9cs9F6rU+8L7ojQMh4FJhktOCwcVWHX54OyZePzl/YmYR80kjfzMOULE+ApPCcpXgtymWtXZ+w2VmCWExZdFm8S+IX1DfdPiuVFRiYGbOWx2VvK9DGzPJAgBbNw/xYEBugQUUeou33Ux6VPvNvbe4MRJydzNboPUyQ/OcX3HcEKhV5/IyXtl8E4Jd6bgVTS2piUWTYZHbrz0OdotbnXzzsNbgyqC1Jtiqc7uzIbbfdW1DEPsJ2MozlD9cHz65fv3wkJMwgyLwPpzEMuyKZJotiWWQ3+fhkGu6wodxI7Y5sZioGPTw0c5/oFtmKYXwlJ1ky7Jn3XqnX2yT0SkkvJJ5QUgIm3Y1FHrjM6O3YuWEEgl61d1oZj19YlWovr5WsmgQZ3N3UJzvTvBXfW3C02Ob2zRcOQZy0oskELqjW7ySFKh9yuWS1IcF7rnALYNoIle4negDhGzX1QOtCeQWx4hkFfCexDB9lyhQHyAXt+vh4QgCS2tMgnAtL1S6UKuNUYgbkgO8qY9LC5a6MEtyxjPqYj45UjkfOsa4u42eHJy+vgadZI5ebkhS37e+NklRvsTczw7iq0vZkNifwaZXBWyq2HaTlwWqvPUqTJdeK0JJmleKRE360ICRMF8ODOm9ghZrl1wrAXbRwi0Bj6b/WqSOgreohdZpwq3pvEY46fVX6s5eR6oYhsL7MhTzFqlST8GwEtI0NBTw/jWfj310FF3xDxL4Jvax4wRW9yMMKwHHvWoiNH/Yrs1m1SRdWwOxSwHP1DJdnjPs31lOzjipzZZsM8CxvPthgmg76SnosjSLbokFskFZSKdJ8E6aUqZ9qMdrZo+ytiCPBlmbP9oWpB+g0n8os4rBZ3kcCwi86GXwCM4BNKx2ZfD1DcywrYmfm1fGZyZRLG90j3aYgLX6JM+sAaVCmkEqX+gGY12/JiA37usFz58xjghPKcmXFn+KV4ylXJOMBecUyKNtPgQ/TqWXIBZyKz1RVXmipM2EucVZ2HSXa1Bk1ZilEMiFnoS3oPQchB+MJ+vr9b2eRNj1vIvM0+4BmGGSE8UpYQ21Te5gvAZWlSW0Sn0Z36eU8BzxObRWPo/SuXk15jvAaKE8BsTMfrBWsudxgdmQv2zZH4ajQ2kPHsMd1rAWJ8SJ3h8RYNNnmR/r5fhjeZHifBZwrbyMRRE+WsYo+ih7Kj5OPicGx0o08gmVxGVK2kZIl463ox4TeYDbiWb+T1Q5pwxbf6jF2U9NySpQ369VcC6xWtaePEbxObGWePZez8fa+2HTfduYPjbLz5qVMm4DLU6qw4ZXSQKrHcCVaEeO7fXHzaQGpAtSF0s52gSf/oRcMdu+e/BLYDnInPd+sYDTSLLZBWlnWZGJu1RiQXBOo23a03xuc6ddx/fygra9WT0NJvP93HBLgm+jZYQH6OL6CobKMfEZg+7icq1QatGMLuZGKZx2K2yL3BuBCKakeCqFrJhGatQS9qay/tTrUM/37tsdmVqKpz2+BbU3Of/92/1X7OXje719ocBrxOfiGiJVOqGGguTQQFAXyDRNJWcbotI6qBdnQWVFNnU/TbQIQDnqejrzaVJ9Nk4hTDK1HWWGs+pb1QqrKCc+De7xOfdqsIq72nykDb4Wu65WHANtq+rUh2CgxCQjNvg6B2YVjXCMnLX1o7YZR0zBHZT+fXupV+v7qLhE9MxnQhHnsoQj294ys3og4/qphZYbs0mHBbZD9Arucp6HjyLopINc0WrrZCCtxLdpgPW8YsvUmgbOnx1KPTW3GG5mzW8L8doz1D6tGYVpcWyMLaiONqYKcgwKUvif4Bc8GSMrk9DT2f8A7wB85+m3bjrugYSlUMvCvRhBUO+8dr6qRFal8iKISgUd3ztQ08TUDjpVDJc69FW+qggdiXRXV31eYFYSE6fz+Mpts3oc6GJVMqGtBbQxVdZBHymci1j5EoJRWjmFjRLaGxOz+JHSilkQxcywS8gniKGVySPzfXyB7uTQeCblMboIZLufpPdH2v/agS+vRYh5JMgp8pAQyklqvs66HHm2XPXh2Yg3vMplBK/cXXCOSWlSB+0WWaBC6HaS2QalaxW6S+VaWAT9NfA7/CEeiwTwSImrAV5mMzDTtlhdSIke7cjlAbeH6d1MNG4qIRcUEVbIGjflm1wZTjlGEaN2a3ZHlGyOnyIYnZcvE4pJrVJTNunGiOMY3+UqSbJrZTuLzJJVxP5BtHPkC6966Urqf54YW7zr1zvJgEDD/L7LEjg8mPSCMjxRo0lCOxELoNhABVkmSZ2jxD+PL0I0Z1UByWIjNoSvOpCEKhpZXfTrSEy5JBX/HHQI7Daw+pIYC8GkJGZxq1BlCEfyKuBkSCf4jVWykVV6qqyX3JtXJ1s24N1GyjHIh15BAqFitqH1VdxOawj2EGCVKpoIrOyCYSJTnUkCS/OnKUVUVeEC4lArEfBjGwswOTdHX8GMPAG+5olZ8hnn/pTTAsC8wmFB4T1qLd50JcoJIIaiD4HHYXr32twtMvFLcxO7eje6OH8AmRhiNrytmfPDTSrglKBFWQPLLx02Drg0qav22kp1Bw1LJ/hYrK9QprCb0HqcijwbIkHUTXvuMsqVmOkCTsHwWtDsyq3RvhVdoMpDRpFYgwXNEdsKR3c+PYAx8O43+XjxRMM3afNMMUCGAzlD+rWr12B4u7+GtCqxN9P+io1+nM7yBm/1oyxUZjezlavX3xq8KwwDMK5RWQ2MUiGgt32XzrIwGN7vCGuaUW4b8qSnY80WRXc4LtBkhdbZh6kbp6Q59GHepQqbCa17WLGNSaQpZmR5xKecCrvqYtNv6FneBalFkTWU/KqKLSr3b+H2hV1zyc0bhoGwL+OFbuHVf4Muef9rdP4hBx8EIUWAtIsUoW0+RtSD0Fh1moivYaZSZEPXyL2A35SNkEI+2B2jtqyAbfeTFyqtBoaQac2NKEDjhkpLhvvZG6G1V3UswHawZMjmNZFQjQFcKmT818VfsD7NPu1ns6cNNNDduDFY3T/mNPGc5BT15mtyxgrhpMKzvtxRid1j6OdBDDcHFU5iKJoOzxgkHwMysLZshq7WSFVl0028kDeCO82IyZcGoLjVHDYKAXEOubG3zd4CAjwsQAiID4za/Pqk/uSto/7gURQLdtRvf+39GfIUevreZ2J9YfYlz1spoLfcxueLw/ChPVv+zYEukR6CuILFEpBm50WGAhsQ/s0bUmbSJqI7dGLQmgO1fj0l/bYyKstaj1w+WotgDRZrXePVTtM48RJvObgrTM+3wUf8xeAS6r6D9u8vzv12iF0ObEijnQLCRUmHAcn+RP1nTmQbFJKTyUIjxxrwpa/X/EWqv/usqhoSFcwB7/kjU/0otjxySr5UKRiacLi9nC5FWn6xKtX06lmrRPR35rBMae5cXlcvQlgJUUMJf7nhaU4qu1sU9CjvpIZnelukYgAISmIIuEYn3I+eNcdsyWEcIdDGadaVTrYneaWgqTUNJq5UUINhnEfM0MyYSy4COwGgY0aB3czRyFH/3IY+rp+6I84gsTWDz1ooJ+Mwy9Wm95f/k/RWvfljN/vP5j1ta6CdCXvbRLS5d3G0+RYpM3N6zJVopILLTX8esuYoXG5p5iSZWouDaw5G6l+swIOwK1KCVraz9h1VXHYmhE+wvIexUdjj2W7M7NPVN7AwX+F4FtSX3Wi23MqGUw8mQHrn+2HI7gT5EkNn6qfprD+pR/3AiZyccF8p65qlXsKYsxtivdvty4ltk9XHPkvi72uKlfCB7oFjGWh7zQaLCjZrHRa4KetMbWhJFg3OpLJpeez+qf59szhJ9vqTlxlw/dxSwNaVCqvnLOoX+93AJvk2Vf3kDI4664d94DAzLj41B5ON9/X611F/Vmez7z+DE5HEfrDSa3vt9gLJAgvKKMzlh1r33hsVBmBOyBMHJtNtvMQkh5ntSqg7FnEiwN+rf322/vXJ+q3O+k1iBt/ql4LD27PJt65f+iAwEC7+WfOZj4fFtMIlOATskHMq5ANqf5BDxk/937v+y6/zIaBfkvvrQ73WP5Z7zH9W/31C/2X9FxPwIy8QHq2AtP1huXQ5cQwT/0noRCo4Lr4TyQaN/an/e9d/3ftyUz1IYDV0rtUk3knHvc81E4HgbbCECXX5ztBpvEHoP2lMrwtNJU6k40/9v9mpl6RKQiAKwyyDGYMOB73/DTZWcfwGeaM02okYpFokycnHT93r3vztg9uAlyG5opn2LenTcpZeSYp8ORlB+fsvc6bDMvnKz1XCqpYlrLbTYIQl2YnmJg7/3vzt3RVbpLBTV1cCICSmcVKEZs0h4oRclaf4tSAJbEzEPS6cazM+6o3Dvzd/m97iYQLVNI9w/HUh8vnXyRAec/9cepQJSmH1avpz6oVNdPj35m8vWzKx8bLVkFJ78IpVxZPmWZshYmU7SMp0h39v/lakj1C2kByzilRL8FKxxGNEdnzL+CoEO/x787c5h52h1LuOr9tJoDQoUxLeidMdKa7US2kdNa7jQTLmhkScG4E3rM50Dv/e/G1xzEcKCCg40jKqYEnJmolzaeSZMxptr1OXBxvdSHd6oLD0zEDEeg0Xcvj35m9mWgPrMx++4PLDPI0oa6jVgp2s66lF5jWiUu8+1NtynuPI6VYhtEZfHb2Kw783fwv8ZSubMIs/isunybEt0qRI0ET2aq9dFBquDqlMhz2FvFESJd7S9fDvzd+GUj7qQj0ba/67J+K0X/l3Sl8n/eqbCHVO589M+TjoPcL0+fBUcCt9+e41iwJiEhU9/Hvzt8GY5p3Xx3ooUkwjAFMakkRV6MGYvwwMs+Hal2kI6RnF4d+bv2kUp9u/qEvWM2gViZTqFtGqLDeH5vG6xHgcJnT49+ZvpPGwZVAzRziN9PX8D10dFTInovZmlW0pZaLKXkF2+PfmbxJ6jopJ6uD0cTmFlZ5Ydr+Vuevu1PZWykKinbvWfhVRcAblyzv8e/M3LZPkqWKa3LpCJTlrn7Z2Pc2ySEVmvZtJUmbGQID28qK0JpbJ8xINcvj35m+jryaZRZnEPa4lxdzg9F1hJk4EVr5EyS686AB6P7dEy1UdZxgkQ8to0Nfu8O/N36aDPNxLA6XL6muB13OKitCXVMnccfLUC0vyYHVjgxYyX3g6MNu8AN/nw783f+uhiWPLt3UzcXMZidZS9gRMaBj/ciSX/klwKuqd2nBiiR3+vfmbsOVzG4+7L5th/tPGt/WHf2/+1o8d29h+wAf4z6eK39DyRw3zi/jbV4tQWZ+VnGf951jfLqYC78+9O/z/2Ct/3SaCIIzvS0SiAFEgaK+zRIeuoMFFaFzT+gl4O97C7RVxgeTOsiwrkhUxXu+nn46B9WQTRZzw+Hy78//7ZgyZNv/0B3j6ElruwJKREEJxjFK4jsb4rqQQVXCSIlWgAOOAEj2+e4MaXvlPm3/SHWMuC2oIKfMk2MkEqk5d1RKYSrUPpInObyBjMPltE+I2Bq3izBOUFLf3lf+0+adiz7iAJn5nM4PApSNfFH52CnlJ/D2cYLWGjwAIIW6tQzHiqjXgLURlVIzs+QTYlf+0+adi4EFAUzSmw0WgyVAH0EOzKBorrQgCIV5quC1IQSOIQdFAcBV/5T9t/km1x3BJJg1Bp7A/6wLvSnmdAYebMYIXofOV/6T5JzwYCcdVQ9WJu+PrRdPqMIUF5t4mO5NBUH3ilf+0+ad6dGdP7vaqnPXaY961qu1yYT4dN6JMO+ldPfnKf4L8ExXz28Hvok2J8eWoA4Qqpa7ehAYUBPJ50B0WgjrX+cp/2vwT4QyAE0i4sl4+uAnppPHiHCUIB7mAkM/ho5Wa5YdaZJHTYy9O7i/In/h/jj/XRv6kvCj/VE7LUKbdGQxspeKx0Pwq6fmjkwFncXBLU3WiHFOAUScEildwrgA3VaKVoumI/SxX/s/M3+Ql+adsLTn0Jvx8gqSMTD6hBqCpUFUnBlQU+Kqwqp9TYUa4sFBSiJXPugjASYJGShDD/s/5T23/Sf0VOi4MdVSVR6A+HhOexcPd8bhfDT9MhtVut707LEb5ZFUEBkRCBTOBrI+hsXESPL7N4jn540dkDPCvzO+p/J++/8r8wvzb95+wjArR0QvNYI/mZHl3NGJehuPd0pflhrjR+jh2hNWvoceHfP87vu/t/InmgEif36Q5/jF8y+fg377/hvlV+cf3j6QR2r4jA7J1Oef9LXqzzeRW28PnLx9nP29Mfs6+fv182K6y/bjx9bgJ1/NIX35vpxN86xA+LwH+WP0fe4ycxDTOL84fadt/HF8T//j+E+x6xwlLZDpeFvdrI7E/zGfGy8nsy8M+c1zUfh0ZWH4CHaN77BvwhfmD3f2GC493kUJxfLct/JH2/d8G59fAP7z/VBQLrJXUQyEvfc9xCt3sTuyWX28q8vFgHIfjxhLcENEj0gdDoV7wvb6Az/6HOW5c8QD/6m6c2/E3fENsfoYvzh+EUhv2z/zC+Or82/efmLzv0ENVJwyU5wej8Q+rw5ubi/L6YRiG3cb3L5reNAitiiK9W4XZCr7XYXzCEOGP3gPBr4irtzTgi/LvhUvSsP8WfHX+rftPpgoVmb3y2QCVOGRX4WIVvW8/b0Iye2/Ru0/UBCUATg8o7IqXtvxkmLbga3X2NOG7jfPnbaIQxgl4/GQzv+Xj5vcY/vRv2H8bvtsA/4b9p+KjVt8rXpTpYUJEvpWU0r6ob+/5ecTkRHF7W1aQRQCybd5hZglnVQKaLFqYHPLbtxXfpyh/WuvbAwZwFFDB87UZX4S/dMFq2H8zvij/+P7zD3h+NtthYsfcFHEW7hxTIiiVQ+enC26TzX4YoBeT2WEY9g/CYcWAbBDMKIBCJJcAuXNeAimjownfJuML8EfMpQXhA4YGq0M1G+e3Nnwx/qPODftv3+8l/g37TygwyMdcWXMfgsVn2j/P9fYD0MMUd+v1/au+dB9V58LJG/HxwNdSDd+6Hd/bC/w5cHXlNoeZS0Z5Or46f9fzcft/Kr5L/B+9/1+sljFqHEEQRecSA84cCAw+gB0K4QYJfAAFinQLn7QzRTuBQKlYlBk33ft4NO0ZZrRVXq26uzxT79evndXUERKw91veMAS9Ncv+7rycv86fiudlOd9ZzDJ2VnRDtj6kIhvBt6F/kwZZq7kgvm394+qg/wF82/qP+l8GmGvWJp0+XHwainbbj7y8/5T58Ic0f3ArnlkgUHuj++YqMtd4GsG3qp+gLsVlEpic2bD+beqHwOOD/l/Pt6qfOOb/VNfcwwya+EJpDeGk7doB19fUaVn+vs6fjte3ZTlxO97tY9VEOUSSAUmP2ikK6j6Cb0O/1sjvUPMLWK2oqSi+Lf3jn1i7/Q/j29BfF8f8n3p1wHbjqlxFWtgydX6f56viEYVIsVqlsf8yoECi4Zvvkg7kG/XLAuswHK2pCFElkIXvMYJv1G9peWvs9j+uf+v6iQP+T0ir+RpcjRIagCS8UFnLlv7n/Hu+Mh6cELtPUev7GOSoEgipKV5b+n89X15Oa/rpMKR2GzIUKYLHT+OL6d+afj/iFt7vP/0L4FvRz9f7Ef/rALe72FnYHQU/NNRiidI6v+fb+er4ds5FIUFJmkl1zkzXRPdYVFE036jf7nOuI37UZEpQcl5+BfKN+nW0b+wB/+P4/q/fggf8n+o6cZGRPHcxRsLL2v8fUEZMiOhqAucXxVM5Kz/rwXClWL5RP4v1PiWMaq+699kTzDfq11US4O7yP5Rv1C8ssc//yd6OYcJFQlp7d3fKGX1Xxm3Op6Tr1NniSyvn8KYUztfrt3CiZFmWnxEJqC4ZzTfq76pr527/o/mEEFPO3f5PXsHFyaza7EIyUV+Xm7/l/DAHxUPObxAhAToGo9Zl5cu2cH4hjuZTP4SOSqKuCsB1IHSocobzqV8X5QU27fU/mq/XbyGWe/2fmpSEHLKs8IEyjIm79p+/v+SnOSye8ss981h/40Tb0fnLoZ7A6YK5uQ/luyt86i/vdqIbBFJy0Gltafn4/vV1ffKCBsg+/+/P0Xyd/voi2m6P/2U9yawJzmiXManGy52+vL/8mQPjI7/fJMOCdLU/7baa5qfuJprvpfCp32r1zKDT/uO8Iy/9y+F8jiAricBgPAaX9b/xxffviyV9HnYUm/4TUxoDOf94K5+WNoIwjOdL5FxQPHjqqfeC0IX3WjwWvMZ+AQ899t5Dv0ERvBi8CGoSSeLfYKBUb2lnSRq0QYq2SaXV1kMnO/vwsoy7+27cyRNdd2bB/c3zPDMh/XlgngesvrofFHPU4F71o/DoRwSJglkK5u3qkGs+2zVCHPgEfGydgY10KFiDez68DcVMlAFnWId8IAIVsUvp+ZsTGIoWQ7c3rtu2/ig1U8xVM79UyapGEgzvXtNn88cdnw++WCYKjgB4TmZiYcr+2T2QC7BT8w/7HUrKHyokw2O9yTWe99XzYs56q/xZG0oq93yz4IuVnYTeVHF8iw78e5ruDInY56aS72S0BcmKKKU/d+q+mLv6qv8QCcmWSVPnsyEIdxRjMEinwoe3JYummW8akST/QmRluI36TvbyiIgn5/EFk6ueKXzJQESEa/h6M8E0Nub4d84Zn+UZ2YHwFBl4C9UdH6zi7YQxwTxB/m74Xgb+kd0vZiZB/gWr1ESoBO4XMMAqww/+21CVig70Qg2Z3FpLCETBxdyDDsxk5IpvUfMRwXNmABL8jibAiwGtQ/9orKhr7I4ZC/KfiG+n1TxK5UNHcQUkKizIv0AQeDl+dAC+a/FzDqmkhjNFBxr4qoRD1DgKHkyCEVxmkn/Mwyx8RzfnO1n4gAXDCKcwWxYM3/MzeEcUDp36h+gNFrzjNCk1/8n4Po5ao9FGKh+jIGNgIcSU/FFgq60YCzRUb+L34c1NZ6x/ga7Hurys1c4OJCa8UkOCLL9jED3MW3yS+l61q43GNeAy8nkWD/caqeAGkwl8P5ot413nCubBvtrZ2frm5tra35WVldtvEj7bMdwl5w++CfqrdbEh9C8WKj3/Aj1WS/4wFrHV7fV6X09Pj48PD09O2pVKtdrY29vf2mpISjL4rEr0eD4FvjR12mO+xl6lowcyviVy5d+Hi25XexeaB/c03b62r1xeXd3drdfr29vLy7du+UrMJ+9vq9lKajD4fPDxGZBNeRT4zo/doJ9MBuivjsAkoAP4KWnwa3+YZWUeeWI+W98vw4ZowOpvzIr45GhyvlGXNz+7Z7Z/GQXW/dU6z8yXW7690+NDvbWqmqq8ulu/DedbTS1ucDKfFxexJ2l2QWIyy37FE9+P7eIo7gDWAex/kRxx/hPBahIegC9V767bFfCNAdcPijI+iy2RUM5n+svm2Qcw+rtcS+bzQJSC5mX27z/vZtIzQxSF4foTEhIR08LGztZO0IteCBEkNmLDL5BY2drYWoiFdGJhipinIEqbO42OoTq9kfYJTRUibQpxbt16vX376nOvNpxvqKrbQz11zlPnu6rLcymuwJ2XrJX+nt1u5jPFsautqzQ4pr4qnF7/hENe7rnupYAH/Kz3ikReEdhDpASogC3AmQiDN/S+uwAqnB/k06P59HplCFtcHvHZ6RbyrcIPc6MBrtLyR4Hh7+3y9KK/rsCRfPLNNYZe/89K/oQPDXhE4GMtE1CYBut8PhQG9M0EubTfOBT/0MzjZokRFCvrLZjIN6EBX3iRmwIcCRu8oJeN7G20Blg3o4QdqQGeBz4t+jfY4ajItTfBFy4XPotWEa3Ct1YAHosswKfkjg3Ym0BAYC1/q/wm7JRQq7+eP0wgrsBfI/C5VhsGYx6s5K+H3QGIimFFr38y9jokloayIHxPPrRFm+I7M2A24AezZt0yBYgw+F1v/SoT5d5AZRccIjfYuAY+Jbr5bedP9DUoglNM5dtS0lS1ByjL4djMbGJscv7CEwgRBgJrfCgoqeSbA3r99fraBswJhBH4XNsEejAM1vkkAAQ/ebYF6p/YUbyDWaIU5vfY67HN1We9LZPxJsyAH8hDd00HaQQF2dX7ZkEQQEJQCZv1MblLPjWaXx1Dxv5G7+hG8Lkg+MEWmTHKcih84w3Y0jlwFFjlowRcsp6B+qv5G5lAQGDx91iMweRzMEBFAgm1/olj5KSAHdjg76y3VhH415cgDs8yBpsCwGDtbzT3zOMgV4i9I3zqBxf3OcW84PhrHbl8MYJPx+GJxe1w/oy/T/v9/gcTuCBsYqaK3MTFSxBY4SOQt3+Ocz0+f2MTCIk37daxYzS4Uvj9MZ1PD73+ifrKWuitV6p/oX/dgEVgE8fliMMGv+utVAGm4WN0Xwqc0oBNk2vM6HybtbxNzyfn/tdm88DP2PMzzo3GGwis8E0fNT1/N5wrEBJfWleNwL7Be/5yfRlJ9DNrXHLxsbdRExj+Og1YBC7j4vYIg/dlH0NcmjkfM43vA/5Cuw3Y+ZhA4qDyFus0Pj30/JkG7ApMg0ccHgYE3tebgi82f+MTiEbraV8ENuEYLFFE8dW4EhsJnzxND/6crQkJfN27BnxyVrzBR7PPk8hqOnZNvnS+4Y0bXgOGv84kcyaOr+avYRO/4vMnqTMdmP56PZgCT5c/tqJp6zs+gXhyFQLDYEyE3xeFwqe7p9c/4XP5iDvEVd+eLNMu+HuXIOzfZwgcY3CaZe6ZyQ1gugOAi+D76vjrzIDZgMvC6HzEc7kI7Af5NIEdg70WTIFVPt0Hvf56fcsrENd++nv2UlsEbtPgNg1uFiqfrxtPe73+Sc3y+upyjC/FAJ63KOto9nkzYApMg0UPLTrZIuzYfBEIENTYd2inyvd15EOCO1/M+cUG3HgLfyXe6nw1wKHz17wy1MwoKMmq5E9S586BoTDlpcAq3+wSqeJgLfFbqb+aPwlMICDw5cPlHNgz+Ob77ouimMS3EwQlEzkZWv2Tao1PQKYl8Dr7jR+sya9N2TdV4F824MZWPsPqocW3bBvyWqtMwKZlIGZ1CIBcFeLL2YBfLlnSP88GfORBml4MCEw+pBCuwmILiGGkH6PgixWY/TeqA5NvyyoA0U96oNU/VF93AiECX5ppU2Aa/H6YvlhaKHzIEOqGYgNIqX/ChNJLBHSgwlwph19l+7QD/HUDblz6dEpuAzTxNizw3uwV9skTaLwezjNoiPDt1wS+/rMBD5csmZ++uWAb8JGLgzRNFza2xwi8T/hsUFg/l2h11RB0VvInqTMCU1/24OgOTD5W0gYZ1foLnyowJxAScs2xcWuAGQQMNv72uyk7sF9fJocLIJtQ658QGcEBtzB4T8bu79kJVWDvEsT4p6BhgU9k38DBY3DYFHidL+cMuC/+SsxcOXLkzMVlqYnBZRIG+fwgrBIKn6RuVOAprkKQD9UjDqnU+gfqywkEOvCtAQzmP+Xe9wcQWMsf5eISUiv1T2p/Ep+z5UGB/QZ8Cf7GCDzXFYT4irqRfDkvod35kKZLSoUrfdP+4zjCNQ4fDfnT/FFgXoVQOrCev39UX14ChsCHBkPX4NLfZd0lFFjlY+Iii/zHAqs3zvozYDTgeIGXZZ//DR8FLvG+DNORGOxwCf8/n6Qu/irE/+VjB+YEojL4UHfg9uD2zf7ANOBm8Q/4/lzg1500QuDbDw5/+XLv4Z1HF668LWcR8DdG4LTz2u6rroHUp+HL3UvAhwc/9T18KeYUIx85VDadTxf4lx24OWvO6tWrF8+ZF8tHGm5MX9/8zJjAjUHaZQ92/C1i+NQSawLXvccxUFffr9NRb5q1/r40ByUf6sun+LfuPji549OTxm8I/KLTwe7q5sthqBPRow3z5bgJAvd5nRyW+j5oXI47xcjHXXPNJ+VmmE9S50wh/A58YNZqxhyNr04Ij1Spv+XTYljem8FIXyxJ0YPD/Zd8uqdq/RO7lJ86hpzAo3hrrNj1TmdWWOA33YEI/EEO9dDdi4dPf3ry5Mz2oB4MHCD2b4FAAnY8xmGz1Ply/yYIY/BbmeJECEw+UNVHs0XiipdDPADhUwTOmzQYFyE4gSjgrq6w8NWZLsBRBaX+4IuPoigNHg6qC2ha/yWfexJhg2Nq/ZMq9XXKMHao1UPlDyoSKbCdY14fir5PS33L/vv47aXfE7hCsngVKHJOcCYAoCGBX3p3oZUCHzECxxCSjxowxXaIC4stP8AOCHzbEXi8Ae+ZU0o7r5DtciIhMVkQctUhAi1W6i98UxpcfgJX+btY8bfko2isMMfqav2TKqtAh6jl7xV1RA2LkcMNC6xegogXmASAcFFcPVitoMD+TRClwJGE5LP7Rl4RpEYZ6Hj1WJTA/oU0+FucKxvd1Vbbbk8SxAVBtQGt1D9Q36JV3ulpphGH8lt3j1/sGoMHZuBpSz4/zu/elcEZ1V/h8+oKWTGu1T/BaPnNoLwMvhYREnjSJYjGrZlP8QKrXMTxIyTw+F1ojekEXlFx1WLAeBh6B5bUuQJT38rfeXuOta3AEu0mDPb5QKdR+fWPqO9TuVvL3pGGyxHDWcU58/nrly/51/zhkytvj8i/J57E1peMjm9q/ZNfDNqCmK+Q0q/1Sb7fgCt/zatmYv8R97quhwKp870c+586EJj+klDlw4795fT5k1M/n3QdeM8P1s5k5YkgisJ5CRduXPgUPoBCQwQXLhVBHBBXgi4UBEXduBAXPoAiQRcqgogaB/THOKEGB7BbsojCHwdMjIhIQERPVfXxpKz07Thck+6q6jb91b0ntyuV7vxLnFjb8UWLJzUOTvnKiM5AMONfE99X/qa4X18oh+v2Fp8+hX6fP3/3Avq93IKsW3PEV2rTmmUzFTREb/RMhbiaDzsWXFUCHvmtb+acRsv9EWPno44Hy+ouV+Qzp4HeJ5exewG3/kjAnWEuL+kZwyYLvzL58NZPMjAF7LXajq+6xU+RoXUmn1yGJ6XMNiP+5DMul70XJWAv4C9P3Wf3dw+Dfm+gtULA4iND4qHAasWfGZj7spLmErwCS2rMhz0LLiTgh73eVzeJ9ujZpQKnZ3+iWdbFuOjBPAL+OvzO45OQWGwjT+yGer73nELTVWhBwJKuCG2+aQ2LSalM7tWuNt9DQ8AuAR8tv6l9ee+b1y/+oXnpbL6VDJ+CT6ca8a+Nb5KAvYChXx936Pecl3WrJr7pyZ4i48OIf2NK46EtbCq7SYmEWukIvcD34aIFFxLw6IPX78frZ3e/CBcpwiv3u7yasl7A6lDAUPcUFq20ruN7nyRgJ+DlfyxguU1McZ4jOIvkNPgggWQWguZSbXmpQRcX1PC2h/Non8XH3CtGGDmN+NfGN07AFHBoDLcaobVewHEqIqTibMa/oU1YqAhzJb55JWRf4g7bhqdsATuJPF/84BPw9YuTwp2eg4A/L4yh4HoBXxhuCIcjO91MP/NJTBJjCb4LloCT+4iCgLenArb5qEt5p2xhncIJgPL1hHyGgDUNTBtPJeCFW7fPUcBKwYn/qExKQFRm/C3/wZSA3VCBAnb6hVvV2qqJr+RGT5IhgJrxb8jLZUlv12RT+fqyjcMHFlzVVRCYbbkvBdsCfjDcKHl4i9+XUu2vuna0+d5rCq3kuzHqLP9wMxWwzceTE73EhZypM9h0HjD9hzfX+4ohBHS6rF1m4AXkOT/l6hTcloBjPgHACMoWI/7ks+5K5hU9kYARc7W2auLLMPLI8iFBjPg3fvWj+VuJu6vIVql753CHBRdNQUi/EPBdCJgKtgW8Y7hLoxmgkUIoJZCoZTbf0/RG5HMP3uQ3Jz86WWdxUor3QSeDLiw+aqBJlEDq6r5CUpXZtHO4ofpicQh49iyEnwGmgHH67vLOySfYMpNPp1G5knBW/B2fYUrAUCoF/DK609MQsPiIQWPVocCJZvwbLGvd5G6hkipZO+8f5hZcxXXAFPDA3at6ukbA+XD1ysSIIsK4W0FKdXzPZt7I+amTBesU27fffKBvaqv49tOxolJRNcEKnXyGgGnxEPiuE/CXO1ehnnCefu8EvCABR3ypCcaIf2184wRMAetW+/Jc1rLju1c8JIg5zfg37J2NvvunPY/GBEyBBP1KwF7Bk081syxJl5pcNpsxT2I233sNIPRLELuhju6g//kLRpqTmx+yFV8Gr1/3u5ijMvh09CYLKXTqRIsPnosF7P7FAn7/8BqEEj7+f6KAUz5LEOa22vgyATv9SsBRAq4TcCfPA4Y4WCecGX8JmG0zPU19JC86yb8YdNSvEnAsYOjkLuaDLQEv5pOUnWv1VIuIH3w/jJ+FiKfQPGAry86DC/YKcuhkd/uvvfUhmwq+pqFQbkNJlORsWnxgqxoDU8DfkIDLs/cVZeCETz6qIDTiDz57luni86u3YgGPygSsxtb88RWmanb8Gwo76VWP2ptq8zVf3ZSfmUvALSXgSMD9wXiJaY/yTUmKlQYq8p1sj8n3Jk3AnezJoBSwU/CK/mva3WypwQezRBIkRGwWLP/Bc7d6s4cQSzkG7i4sjjCAwI9OhV9E70LAKR8PGruOsrbjDz5ziIgJptGjCRimBYysUC9g8cVHZFE8dvwb7Bgf9HgUAOxJ4cZJ+HA+sQScJOBEwK9qFDzJD680cgSpsEj7ST4jB1+NfwkCA4gx9Ptt8HIAATsFL7jsO3ACHkgcEd8+ciXuZ0FkMR6Khyr53Mnh2vPn+EbralHgS4EpWwQJP8R9wQCCH+LcRPDSlE8xV/DEZ8cffKaAOx++vLm+ORawblW2BSw+IhAqfoPZ8W+gRTrAkj11lUQY7hGeVHaef6imSxNwKmBbwb28WBn0WYKxl0QiH7eQmdtMPtiba8DTJ7gfWRcC7q7Isq5TcBcK7rezMJBoZ9V8eJaGQiAQYNmgJxVi8V1LfwuYdh06/SXgK1MC5jxwxEc2icITy59m/MFnJaizo4/PNl92bBJwuFX5hohb88QXRgpSkcaMf4Nl+vqXuyl2bcZDfS9fc0tuDGHTBEwBn5SAXw8MfZ3Jd3CoQCwFXy3SrkIV8B2faZ1n0z/Fsza7Pxh8zpx1X8GQ08au0oaAF6iOmI8SoHhZIpR0rEA0CV3N9yb9YwK0lhsEcxoNdQgYxhFE4j+ySJmhzqIZ//VmfDXYlYABzkZTwOJTXFESKpvs+Dccb2CPTPGgKKJak+sD1jmGU2hKwBTw0VLAfuRmnmEO8HhysIzdiVCjIvksCRf6LbQsQwJ+knn70oe1vSiyDCn4MwUc83kEeZsipdOjspZBIRbfx/S3gGmL5TcZT2AfP733AmYCTvkIJ1lEZscffPZt9ZSqBExRmwIWH4Mqrrhsxx8CrrA1yWvFfeSWwjjHVCRgCbjuI9yHvJgNBzrRJFgqkc+20W3PJwEHu9+Hnfwl4PuUR8InLq1jk8ojM/k6X70tptYD3Pi334DkpRApn212/G3/PQ9a3S4bYV5BCbi0c3Z8bauLfyNq14olFvhIwnPc+Jx6UQmY+pWAF47eH/S7dXMQG3A04aRkVkvMZx+oBOxkLzE7nTlblmUv+7Cxq9zlECLh0xFFZ5vBN68tdUixgJ1+BSg+cJkKteMPPmMM0XvsbzNv/bIH/tRRfLo83fipN098DU4z/o0gzDVRqyr1dqx4cbeK76sScCJgXE95ftAf1Jzci4MJFMnYI3agYq+D5LOtt9vz4UNcmYKffB5nyz5DwAMoeNz382gpX34wHJxHFIbMjs6xXHzzm39TRQJuu6bkW4LiRHw4coiqJv7gK8D3n03xPVblLz7q4t+Ywo93deYb/QpL7aQCFluLUfVn/PhLONrbJSfd9cBj6KNt3rJSbPMIMRsjIb34IkzbSSy+WvvQAlmBaTQY/tAvFuMMf+kO9vnzq9nTaKNiW+xQyYGPYHQj91ZwbD5bwZhLo4B5R1HCl6pVRYLY8SfffzXxEUluiuJbF38v4KQ7/oX0n6UPhaXcjucRK8V1FvGHHB74e/umjFu7EIfVwXXFkRKPJCxQoIIL+EQnHRaHyVdrb1puDHEeg/Ngbgpi0C//4mD/brZsBh+PI5/Q31GCC5gExUL9sfxnKxh4/ra48+Ut9hX+E4fDYIwJVRd/8v1fE5/HitIifeitNv4NrB0rLWyBaS1RaENTDf/wFm1DHOetBLyVWM5IKlrVuNZOqs3P18OVRW7w4M0PJKDgIGDoNzP4dFA5na1USsTN+Py9/5ZavwtBPuHweCyzUB///5+CxScsWuyh+vg31hjGnWybI8UZf4v2fnX2XlccngfHcIJb/BFfb9RxF/NAvwsnnSayDBkZ4+AFfLVh8zW1XMU2li3v/oP/Iv1W+U/v75SKrTYh+f6bie9ICmD7LSVuuJ25N4v266xSK0p4/v1b9Amy27jyjO4TyCqzPykuO8Etf5ziftJmNqtRBFEU7tcQwXdpMCCIJfT7iAtXiuADuB+iEf+ycukiycJImyyaSLYiCRLduIoby6o++aYsu6yuqb7O1G9313fuuTOJeuOW4gbfc3zBhXxbUwxp2gK+FOu1GxP5S4AxS/oPX92AD9titAz/G9dRmO6lN6rU6RI27fDhyclpmYYftoA/Tey9s/8EkVGsEE/GXL4bQcVeYxLzkQoGpCzCBpgt+GoFfIkaYDXh/8J8j2DZsuEGmsOV9r+hElWieqCb62m00unDXXg8HJd+Bb+f/AL+ODy+uyUQ9wLRBjieFGat2GakfX4CX7X4ePJC+rf+hMpW0Fjhxloj23THS/BdDi+k33VKmujGtOb4/3yoyoe//Mj0b7ViyvC/sY3KQFUgbXijJkgGj7l5Nnyure9iOHskbv9HAJKp4hEUFSwpqvA7S/EpjZwsB/icUzmocENuWy3EdxcQnSyLOT/D/4X8fSD9MkrOaS3H/0aUPiRSKqlaM05kh7bd+95w9q6uvnfD8FQZJkj8XeMkmbAqJJxVz3l/ET7034VNDPCqiOEkRsJl8od+fkaoZkHJ8H8ZvmfoJ0HBF2SO/82oyOgepTsh8R8V8ny4rPo31f3L4TmHRhwIM8h3a8Zr+5v9eAk+9K+nxmeSdT7wDs/AD94SfMfoH7nWaoPI83+J/EWnRLWa43/jkup8jy+l9woJ7xNrL8+G7zUFfh3OboZnUbB/gxgxsm+YutcSfLcDGIWKRbisMTDxfTcX4UO/H8MBbJ7/q/p8L0OQOIl5/jfUIjJdr4ZwQtkL6uTt2XBR9xc4MIKgAGbFo+p8oX4jsDhpwo20sLwEXzIdsGT4vzCfmeDK879Rkidkyh/GLATP3BmGL7X0fRmGneBkDmVOsIoYTdTX5wv1e9CYCm4TzLRrhF2bD/0BIFBqMv1fJH/ojwoq1/+GMUptg2S/SF3E1Wzcwpth+FZH3+kwvOHbzA9CeWhCGBev83N/Xb5IPwuiUT+O/JAMUkrL8KE/RGMRiAz/K/NF+uWbspnrf2Nb3ST2q4kLsm4kWyas7bgK7k+r6OtVv1fnS5TI0YofAvSNqGwoFYcV+SL9GoqWY8cxH//AM+6vyhfpF/BITUnn+V/b31i/73E51/8GSAF7cilfnzMJVuTP4YcaCr/1Hw7NVS12/kABcyqNLmBbilitytcf/lt/kCB62OVRAMq8Zv5i/XyoAIMk6X99vli/lpjm+d/8Bd0xIbBqiyfyjUeF9P2XjX8/8vXBw2Mg9KBD1dN1rnWTTld0Y1+PL9bPEF7GVAnwkXnV+Kb083Gjy/a/It+Ufpiz/VcBEx0D9XTd2LG5pb2u8wo3/C+bz74+/AM7YNxcGBwPCkPC+gikqcY3qZ9MwxgmLxH1+Cb1E3Bl+1+ZL02U73+j5LsbSDYPYMkt6jn4wa7prMKL/XJ5+7+kD5Q1CdOFIfZOa8FN2q3Dl9If+24DCoxwoTEprcGX0i/wDo/n+F+Fb0q/imue/w0qqAOeZhv/9i0euKkb+kUx3Ov7gyel+p4c9P09lWHnAwuEMdaFKJh7lf4Nl97+tTlfQj+UnKsLTNsZLajVlIUKfGn9V0kV6zz/K/Al9duY6X/TdW2nsEl2qf7TK9MKm3/XEu7BLRQ+VpfFP2Z+7vV7K3dIazoQYfed3TWt8gsAGYHTGCbi29uUL60/yBhVjh+tnQOMwrYO37R+oFm1zTz/N+b7n/65/jfQoyX2A8VMJuL1YdmH9PS8789f+4dbTpdanROTsMu7jVgNM/jON+FL6deWiOicJCLMcFuTL6E/Ffn+O76jQr5D8SX0z/S/aX2+ybRegSNc40b4ZGOc8+Cdg76/mClx/7O1bRffdUYbs4NKDUeroEoQyOV8efppY2vi9VhbOV+efvuGuMD/nb0yvr3dDP1z/W8kiIvXjMEf6WylRsL8ZTStbVbn/fbRz1nyDra37deHMtqKT0ycqGVNRdF6Qo15UqvMk53V+XYRX65+u8epwNley1pjlYIrz1+ufh3sosD/Ir7e8mXon+t/A2qQfc38ECO0Na4S4dbq6E+JPJmR/qPdlghwNGqvA0DFcK4SogWhs80dJXyZ+pmEl8LKzW4VJZvmL18/Rxf4X8yX1l/mf2PXIw9QxgKXMYqD/V0rcfvXq//Le4U8IsprIiCCNUnZlfDN0V+2S5TwzdNPlPhfzpfgKvS/4bnX6e1LU9f8Zr/sdewogijcb0HA3cCJEyfWZgS777C8mHMeYIVkaZHwO2ARElqkJCskR2Qk9HTPt59KZZrhXlai7S7PdNd/nVPjizANcByC8u7x+4r8w69jdnUP0EsCFHW09nPE+JYcU2KXr/eKuJ7z8B3nLyogs2M5sOVL93cO/+A4/v3PwneA/5nfv0gxFFoit9xdBPXKwYfH9xv8P39/IyXlzW+VXZWP95kFqJhtrPrq4UjvWOq+YCBI7vtj+B7O5V9fI4HX6Cuad2h/7z/en8FfOf/7H93f/QH+Z3//Ug3Ism5Obj1NJ7tdODZJ4Or7rnJsW/7wxw8/vPmp/S/Rm19//+PDx+qv8viuU6hvu/oNmK4yyKxADWRgphHVis1hcQDfJfwdJpyO3KYj/kfwXcSf0rO//xF8Y/4Xfv8iB/pJxpmbr9v7oQ98dqVsn/zj20YyyfvHtz/u+XTa2zKrKQ730r2/VGKSsgkmQ8ji/vHnRyBFeXx7fzl/UdsBb9UP8K/7+1t8l/O//PvfD/Ad5X/+9y/W446mYW+dei3Ua++H+hV++eV9/4v7/pfHx7ffPfTmCmziPC+3kKG611wkWcVIx/jw7u1H8H3f8L17+C/5Y8SS4/w/he8/43/596/4fhYf3/cA/8u/f8HMQt6lCcqZs4wOP0pe7ZHw4j83/9KMr/BmRTEy9l4udhxntD+aB8oJeS3+c/MvW+JXkQuXXhaVaVuwScs0x3DeeczTyYGZ4BgEd7888DZM/7ScxX9u/iV5TU4VugC9J0oi8E2E7a9qOJxswko2XQ8GGnc1YEibjxTIXPzn5l82lVAeTIFuyImInqYFjBqMJ8crmgDce7bDh5awSWtgcAvRaTd5hL/4z82/1Is9+Cs2ThVx0r9SDzUcELQJSPYgxYLqTcNSiMOHJFOAk/9jYbHc7P50L/5z8y/U09OZHgx3UU2Nv2OXJSXmwwyFRQlLwE1rNsR4ddLAuuZ2NmMdADJgsdLFf27+hX4tasgN4KwiIGntMQox0GkMWKTqtIWEbaHsykUgvw5IikIUv/+wIEo96Bb/ufmXqmM5767ZvCRzxqM+gvFH2JsYa1MkzGml7LnpZBt0SMMJBate1JPZNX/w+Bf/ufmX3XVnpg0qiE1Ho5HYENHjA3BoJusqxO8AZ8xt4hpIypCODRjVjLtK5sm3+M/Nv/TGEnCYCqq6yMdltSZ04EDxOl/uLuqy+M/Nv9Ajt3FIRp/zE+AxMcxYm9d5bKiqTOw6bLn4z82/BKSc9UKxKE+nkqGjPR3n1HaQ+8BtUJq3OZrar8V/bv4lgAE5UQBinPKKZIGMuLiWelaxY3MBI6UrJ6wIreGgUNVVtAxbnQgv/nPzL/0WrtK7pxDDBXpqith2JFadAO22a5UgvNWzfefCThWbaewwb4/xALsDoF0X/7n5l6pVu1ec9vHU9ikRTaQiE0iRBBMgsxI4kgHBNrfO69volvOYT9RRJxrWWpL7SjvTTrUbG5CNYz1rTi9d/OfmX/hBtchpo9Kfmnrqd6XVr059e7ejz+00kC21Z9SKemypdKvS+jep0Y6xZbJ3NtW5dAqeNXFvAIN69LwGe4ueWgAOtTH0dnbNavlMW/zn5l/qnD67z6pKf06MO/VN6NuezV+Fjt1Bp105Wd/8Pb/bdkDd3Hu4poGzZdqf32gztljP3/G7M92tTdcA0mExf/Gfm3/ZsTOy92Q07v3tg9qDyXCIhHkU4KGa/em648LHJ2AqWjto12Yg2Hu9qIRMHF6btvjPzb/AdrupxAIHR32IWIGLAtCAg1OPeKiOq0cwyXTdewsTEPHrNE8R9+I/N/9ibhA7XUUzZ1y5wzydJlL8NEy9kS2mP35k8FFSYABu8Z+bf9G8UvNMYg6K93gp40ZCyo3RdJqsNRxCPMniPzf/ktvFilStHQ08g4CbyZcZuSy7DjoHNJDFf27+BR8vSWHWeDMWUZVQtce+5sTE7MrD7GaO8x0SEnAgxhb/ufmXRCiw0NJlIIXTKMkoMEr5asRdS9w1JGQuPMIASLPjzMV/bv6FAlsYtYm92A2d0g7E7kw71hdxLusONLx6oSF9VVyk3JlKxmY4KMriPzf/App6iBk7YuobMejCWgQ6zvEJjYDDaDKM0qyZhDGhjQf+DGdhtFDxi9tx8Z+bf4FDdcCQdOuJ+7iZVgIigm0MIRCH3yKG6+gum7sv+socWKRVkQb8NI0jV/RY/OfmX6pJnjz9Xe2UAhIhE0Ph6cJIuBKlW32hYJHT7Ob6XIBz6OZK7APIbrgCGyz+c/Mv1qGMRGxouFV9jORGY5+620rCblDISaVaufviPzf/crVkycRSzqi5vfqyZfH/H0n5x4zbceD2Ijq3PM8gThhxWfzn5l9SP9rh0QVe4Wug9D8Dwsm0MJucIkm9TSKBeiKJTQC8+M/Nv1Dh9AYyY8e7uVoSjhbxEUQ4e6Ho7Jw35iQtvdY1wxTTLfHUpA368/InafF/Fv6l+3pHqqpIsGqM3KJYnLR2Fjqb6ATh3C5SuJoiRS/pN2kKaXhcmzDdLJO7JUjaLP5z8y8dl0F+hkxisFNETi6wgQaHsAzQy4LHYcJAcehu6nYcPrp2DV8AILU9sPjPzb/cIpS9eqURhTY9ATLoo6pRSEVDEbSUxp2FfwjT4j83/3KE9hlbIst7nKTJO8g/2OlQxeI/N/8S5qC+eoWyn9VGNYDKQxVxDSDZ1jvvEQzWIaEkt6Kia6hdjzOlufjPzb9s4BhNfru6VB3+GAEwBylVehNre7RNIYeyJ5hEdJPB+jDYr+CqGCEkyB0MJTQExeI/N/9CGZ0QSQemEYu5iFDIVsUPOiwYkJSLeE2X+K5iu3xnONXe+Bb/ufmX4Ax0VbLADGq6MV5UxTy3NeytUGwDRcSH5bYB8oetLP5z8y+HN3BAXhyvNDkHOIaZRs9Ba9XiPzf/8slq1Rweu3QTOPszKOPK+jDsDFn85+ZfNvZ2YSHNWQ/8qCpxMoUD4ly5JEpu5+D8qcwwkjJyzMDiPzf/AjvZNMt0oihaqhSn2Q4GhhshNU9yWxpxJnG6Q8zWcR6G4aZXY/Gfm3/pS/DptuOh2EY0NW4Bk4Dk6RB7NjOi6NJLjEnUPu5YELpaL0rw0Ac/FKla/OfmXxgQBJeG5Dy9hbDjI7orDtStUOZCt0fNJAK2120Lv1OzBS146xf/ufkXrCikjG2no+aguu942Ng9GqfveGjxn5t/ebFkycTyWf4FvnnxZcuXxP8z+Qt8E5Usn/lX/XL5l+24aQ8cg6YnWuZTax+T8bV8HebXcySD+ACkmAZ1DF/85+ZfHBmZ3dge+2a0jCpw20y4cDeP2RwW5aZ0MMwZ02MMCRQ6vBysz+I/N/9yQysy6AvD7SYgF4DuGjmyZwUkd454enrc5OuWY3ceB9HIZbqoKkBzPmNFbpT73/N/vfj/f/gXIECWG0ONVmbEIiKkxFnYTaPItgQN+FVMD/0jGObEpim+txXr4j83/7L7XxPOYqkYTVV3G5kwU16gDEYRARaiM9eO0Qsw5y7+c/MvpqS8dny6RX3IyJHkzllc49WbcTwG6HGuYBf/ufmX10zdTt5Q2SNWkUyMGx9CxGufkRjioFXEVA+qNkeaTT1WXLMpvSHdCC7+c/MvPbNKL6iyt5BLlRajCdtAEYL7oBEwyImEeXuvnR1TQGE1eXjAwrT+8Cl07c1DFmgW/7n5l14hEG7ogEa5gaT3DXlWYcc0D2haCxfHRHYskiGStUTwUTphTesX/7n5F6o5FE1xqAbyyY2qfh0XbWt+2dhpmGIwCzW5dpy/+M/Nv5h1WK7rM9rIGf3G4eeUxX9u/mVYek319bgbeclnCfrZYkNurWQfn7X4z82/qAob6EoAgU3yIT6GIjFGZXC6lQxGI0OxKUeWxX9u/qXX19PBmLTgytB66XXz06NekRpuMqxlAjtrxTFP3ZtuOLjs1RqRA8rICXPxn5t/qVaroFUHzFD6A25TYU0W+2kXlNmf/JnsjnlNq2JzAIGLHQAmRNkbGQ4hE32nTsniPzf/co2QAX2E8DdPfQEndXKqosOuHhKnFEAm0CTCQgtBY3SDY2Chbi3wF/+5+ZfAYCTf+DMb5wVr0F5/TujbOiwS1BrCcjGL/9z8yxEc+p5FbJ9H6Bo7DdQnRFM8Rhf/ufkX9ZxjW3ifQ5AeKPWk2yGoeiOu7FNTQE8jEviYi//c/AvhFLdSthyc+xEyhZgnZ0fGpOoA7MGgegIuZRK0pxMW/7n5F8MigwBwTemeereTZxPobeJo68JeeHiJ9r5uGI1pHYFfzD2aQQJI4OF6WgD8i//c/Ev3bnFiVaEPRtN3tUdpR1IPasuRfC8MdhtE0/2AwN2JwHU4zV1KB/gkkL74z82/kJmLc19vgOlPu3JNGbqbCK5QzfUyj0ec5M5MsYU5mcbiPzf/ghLlpQU6tHXS/5ph9bEANawVL5eZEga8URSTnFwvcjgPy+I/N/9C+KWZu8PmhOyXycoHGpkLflErhjUYqq0zLKBjJYEniRWGF/+5+ZeqAP+ltRCgRupyc2e8m4MMXFQHCxT0a5o2Wne1SKBETdXAyoHZLA8qsESz+M/Nv1DY7qqxB09iAKwWJRz4AUj+EyUBdI8tPQQGEb5PYGJP1yoOty8eohgczbv4z82/NFucPY3mzW0/SdIecsATFmZ31JNOYnAsUfxEmBiwS9LfNTPSdHbliF0YtfjPzb9AkFQEi7hTU2eEOLOws8B1e60DBXsUB0MVWQdW+61n74LpopDF/y/2yiVXkiKGorEORogBMHoSErxBMWARtf+94LLrcGRZJAkNghDhlxnhv+91dar35r9EigZZDJIvZWb0bvLVOdI1eIf/lgj4j3sc/nvzX39uOY7/i0L9f08O/y35r9fx0/TrvBHTp8Vxr2C6tafLGFe8qRu4K4f/3vzX7wRczk/5/hTv5Q4cZKKdjJqveo3VMAN4rrM9Z5rzDv+9+S89mQHhUJgdGjQ4hJaxtGFoubk2ohdha/rU1G0j8lL1294TMSw+mBA5/Pfmv+LgA3NAnvjTzgQvfKmVLhvcqJgWuq3yuQzLRBySl034ID0thHgF8TvwTZX8w39v/iuUPhDovzBanBoR/TaOeE3rcVwwBRZRlkYQVY5tOZDLKMF+tDzFn5erKYf/3vxXB/VLXowXnR4e7GYNMtlv+BWj039fZvH96OG/N/8FqqyI03JfA3OEBPRDrTtmvfzMvSi4FZqIpNGlWB3+e/NfeIxKTgx9rNlg1fQONxEaGm5uIi2GoUuVT586FKBUdPx+MjL38N+b/6K4bsBkWOK9IbHIKiMtPPGmRu5z8K8RESGJRqwYg2RhA1Hy7BogZteUZ15MkT7Fh//e/JdTCWLXsLfjWdNqNNWJLzMqp+/iHQBWxouOmyQuhjgqDwR8awFB9vQEUBru+wkIEhBX8KwRz8N/b/4rPWB4Jo7MAPwz9ARXZsFweXKpDGLuhV2ICD9oTLJBQGGrLwTF4gmSCNrqWUpWJBAWX7E4/aIB5wIO/735r2eCDHcGn/FmhmOgGo3omTwZzCdIsJT6xrOXXxctc5pmqLR6Joj00biU4lQUKivJ5WTKsRHQcfGb8JundfjvzX+lX4FjurPgWSquah/XWFSugSoahU6hIzKner9KQiGb/uEe7a1EMKqu1gL1EJcTMfaTYRqFcvjvzX/l9WHgWbZfrrkh6ckZHReibR+YskHkozyViJOmgK4eH9pdSEBoaL6x2Fc6WP8ztcN/b/4rGrweGqaSfekd5Qx4ViyDH3HXIV74fYQfsM+PgkmznFGdigF59mBqjSh+CaeQuU7qQFXP0yUSfr4LgQWJcB/+e/Nfr0BB/whXNgdyuLKsdhA3vOxR0Ao1eCu5st+IWVR1cdnhKYARyLpq8JFXIqj6kDeRMkMLT7aLpzWv3vwMkVNEsm1MAHFo1fbw35v/SiUapLgV+NCvpL6uCtZ3XVizBhwfL6mceLKCzOpee325skXuOvV3MtMrEyNHsDF+DQwwf0A5tUjJPRaWmsaPluHQDv+9+a+q/LCKycW4lHTVRXai1P9hvEIvgRBNKo0d0IGGtHZmStXY3hbGCOAFOg1FkG9tsqoO/735r3cmmGSWVhGmxQhwIbjMkRtXHIIqi/GkodgdqwUZIWgkVSkzUrxWH/5781/6+vwp5EHoxzJ+NOKt6DUw+RqH1xUI5poCW+3r4ZqH/97814+oQ0B3Q8ynYsxsgVHGjXIx/prb5e9gqa0P/735L9Xb4jw0nLz36eZZBujv9XD73fZWtCfcw39v/osy6rFDS/315KC0uJVKIDZq66VmLIA0fZ2XoFLrXcA2tmk1nUyhI+fhvzf/xRwyqIAsjjroRSKF8TJEvr+d/anewJeLgCdaZ8vWDekDmYDKbRbTsQ//vfmvolQxADCGGlP8jgEOLkZCnQxcbA4XzCh1tAF79yXH7QDVjE6cFBQOfOQd/nvzX+r0xK58VIZCBsGrAsU6bYCXPcoNJyZ+28rf8pFlFwOgsHO+djn89+a/Oop5D6z9dMyUHwa/wX34P6jDUjXjWky8yqXh4b83/zWnDc8ouwI8vdR/gXzYymsMGsa0pxz+e/NfWg70HkH9ajOr58x4naahoOPo6Q2DTSoitNnJCJXK4b83/6XTAhLSbbGmRZkVV529T9mCsiWC7RiRVb2jk3Fd9kChNEvsR/H4ab0O/735rzJIyA0AJP9S5aa6FO6MjqENL556qhpIurEyGZN0VFABtTn7KqDsdAJ2Pfz35r/SDfLSHpWEMx4mOOAhi0aESrfyyH3hjpNEcstDOjlaAKOeFohN6QNLR8oPFf3w35v/AmcMsp2Yk45ipweGs1IeVYdBNRm9U5/KOL/FMLKOmamnu1VxUAcC4hfyOPz35r+ccS2PPB6g+iJ53Eqaideehy4MHbyjyeG/N/+FC9Kewp5tqNAzx5qn/YhnYDPKcD1aKBrTNH0mT3CpH/5781+qj2pAHyFq8NrdXQC3jAdn6zPoSFoEimkkaDq9rY4K9bA4kCJRsA7/vfmvhzXgn59gBat/bYMtpKSBu22hk588WKPoQlJNBVXUIMHTfyhKgMk+md+gVvLhvzf/VeFWUhkw4QuWA0LMHTnCJRohC+P18NLWeuqYSgEuLn4jTDeGpEF1OdzE4b83/wUQJriS9NrXqYDgIMm94AEYp92gShk8cHFowoc2jOJjZBRQ3G5LMa2Uw39v/kvKUpKmNmKSgPWM77RZP2erPLs0mpGhcS0wQcMplyHsCuPw35v/KiV6Kz83WsxmbuNCGbeqipo08dNMjVswsxtZOLJan80ET5Ho3j/B4b83/2V0gBBKEVCGx1TDWuzZfFs4nezeS6OHMCgPk18KMXqx5sN/b/7r8/Gp9UlRaPGEOx7CqZWPLgzkqZcBn7nP11FXThIJBRk3EA9kssoxziI/Wr7mmCQMGtT4vPCnC+Xw35v/KvuznLUMCBe/ND6rMz2ooClMWQzpcbi9POEfDT4f2YQaiEoamtj0g+eDSm/TS0rRxwIA8/k4/Pfmv+IgAfkcF2G8j1Tg8fl6EjVitNIflHwSqAuhYTbjgV4ZKu+VRovom2NpS95DyFNJsOqH/978V/nDIiuNz7ypIUqbMgViWvfR+91QRx5McKSFcnUlw8g2VOI3WF1I67UyPPz35r9SwbaaeCnVLi8Fn4vCCLWqwUFSmnmSCBvwtm33ANkKUzqnQmKiYRfpkg//vfmvDNidfGF8ksEkCPpZ6NSLR7gywZTS2ClMcdvUjaO1kCvgolP5AIL78N+b/0qd+myYgsJ86FaOsQzA0fk4Uiz0Q3IX/UeQB4BIDMGGoMSFw2cLUflJu1LLPvz35r/8CvrXJ22oSwzMadGMKv3UtU2AhQbk9l6iJmQnx4IGOIRwki8m/4tlE4f/3vxXucsSmQPREbjaUr8hXbAAsy1tiwY7x5Plmm07ZlmormM0Ljn89+a/CooOv45v6BfyTfx1tigZ7NhdToZ0ON5E33TV2OjZk6jNBGHUA4o5hI9+ZNj38N+b/2owphAm45vSuElBZ2oXkFBLGW25TBcidyuIFkmSvSGjZ/XBDmMs9fDfm/+Ky+rZi2mozI+7jJ7sTS4ZaRMlp7DY38yWrtccoTmEUyCYWtXHuYf/3vxX6AwKJSWzJBkXSLjyQHUefWhRB9BCAECwdceiJRjg6nx2YnG5THwrTAMhD3g55I/c4K96+P97/Bd5ws4zpGMGU2bSURLmWOO4EjSdFJeOFyCC6JXvVxjmfkeNXFDQOd7q4b83/1WXGTfFTMcMEYSOmx21Zp6H7UcU6eynHP5781/fbCbfffP/lv87/y4b/gM+cuRP/wP+j3z33/0TvQ7/vfmvHtXSpQ/lO2zuq6Fcl1nZNP6wesxRqgOp9tQGDI3Df2/+q4orHDI44LJVuuqhxBx18uJElU+1ni7H2c10G1PWEE8S+EjNt3sP/735rwjArQIh6ZJWZRRV/jLVKx/gStA5FLrDunHmK5vezhFCRPAzyVJKKMAPt3Ic/nvzX/CEvWbpzOQkSf716GRZTusLxVMHFn4TU8BCvl5FVqmZ3/ZQiV9Ry334781/fYVp0BzlOqbnnl/56irRiCzrtt4krZ5wLYf/3vxXbzMNTv13AN1KpetV8b2Z8VLNJfRrOfz35r9E1xCzFcW0LxfbqDH3XoO/DdXhvzf/hTFCUOjAjXLz6LyESMOvEqwzVDjHHE8nNrADewmtqTIhKg7/vfmveGll23wcZn/wpquOEFdBYxwU40dhKJNwmMAQ9LJpiKdtavD0aNGmHf578199WAh90sJLjAZ0q7cP7lyoKcPREAiNxmbaXp5sELi4SShTICZUCaPMz6TDf2/+qxWyEvkSbh8UU82hkixHAsipednaea7YPJ3izCJ055kmoRAiIMB+Yzr89+a/yBAHZVPkhFDUD040mIlDvrpYvd7xZZJqW1cu3bZi4Dqm4zv89+a/vrovk1ijcrt+uu+PmV7NbtxscvjvzX99deTIxtL+AX+tqudSzJrO+33u9zVE9Evl8N+b/2rOkYLr/sAJ/D6RicCTg+vLlqD38N+b//q6e2aN9g3GI3ZNSLfVTuNGu+6TRPQPXhl2CuHDf2/+C4c7yFPoxtIwwyw/VTIzKZ54Cbu99E0SFaO6bkKpp9+hNk9XXnSYu4EOUazDf2/+6+UlVHFH/jYZzI6hhnTKQUkIfkQx3RbtWYWz+FXsICH3XAh9QUmgsZY5yYf/3vyXTfJScOklVQPL72bmYSqaZvWwps39/vKceRosVYdAQuCVeYf/3vwXSV8oQrifJVeB3m9lueKX2tMuUB7+e/NfXx85srGcf8BHtpaF0uT7+Ku7u/HcFwumcav0y+W64eG/N/+VeSZfVxtQwfr+Pre5E4snnrlGs7IWfXKYgEfO4f8re+WzInsRQ+GAOLgQRYQBN3c1CxF71Ytx4QP4/k/kz+R+fIZg2Yx35JZWprsqf06Sc+rauLf+IDHRJjwhmhvTIwDD7ZMBqU56xZl1Xga1CIdAcB51S6q/ARjZmKzOo39v/YEOBvEoNYR57BQGiieZjwORykEJAFnFFg8+PJR5ZqXHavXV7DKW++Z8KFP98ejfW3+kA2OtcKJhS44MrwQb6j5Wv1pNrya0PMIxYaR9Wh7Czqmkteoe/XvrDzve3ySyri4Rr6u29WShDjv699Yfs/7p7XVdfZfha6zB0b+3/nBEeo9Oe30/xetV+q8z9QY7+vfWHzyDlxjOV4J0iIS0Gxi55s7ErHEzbICkK2KtvM0sCdjRv7f+KAddeXh5TxqvHjUBgC2mmkJakmQtHW9KH62JJGUdgO3yHv8IGLg8j/699YfsEwORjMCXlw5lauhlV43hLUoYrdKCh/UEiCJkSl4UCVnrgELn3RXhUU5sXkf/3vojXUAVlBxmYERugibDPalgcBXr4SA3KNqmtDvZqliDD06aK3wFH66uo39v/dEJ3nHcrJsnk+7KttbfoyJGNmvkVFWjLxrJVfEUavMFuPzMZyqjPtuzFSFk1/3o31t/XF9XiLzrc3BbG325GZODs67MnYXO8nTjfC01mrnzaQ2jOPQ55ejfW39cXs6su5IZ5p50AVesmq5+MvN2ci9P8FTFVZtFwIaUnMZcYyZ4Hv176497BlkHCQQZ5fGHA2FF0whdEp24JVy3QA2cELaA81Xb2LbIbP074LXq0b+3/shqgiggFHGGNEO/TJqKZANrOBmVbRX233rm8UD7DmzxRy/vLMgZFlNRukw4+vfWH5mjBZctwGGToMIio2I6eElQ9hORTmOKG3HBkndVxmrJdhHpGeBzcsvq6N9bf1jo+nCoOx2c47Byqc3JBk7RGtI39aNUMgnmqedEc5CbtaN/b/3ROgFOTpZ7bEbHBPrQoo3IZbiOFqxraEruk/pUWd7Rv7f+uK/tp79Iv1KcpekZrleBMLXsfX2M7Lrx6N9bf1BdrjYWXHkSXJPOrJgzM1Idrt9ruaUxwNMvIHwSn/TqPvr31h+1SH2MM/YNKkoIgEzyGFWjBVjdl+GKUGyf7knqssywlUFs6SRNM0RRmZDt0b+z/p/uUemawqSslcenOhhSDnPpKlj5VTCEJuxQSIFO9mREoTTT4iGbRElevaqWF8vTP/r31h9XDYAT8H7NGyKdlYXp/lrz5GSZTRZXo8zZbd7pDjMz52m+9dG/t/7AWRikuLn+qcnEHXMZhC1qQu8E9/Ekazv699YfFJa0H0JMz5Bjds80GUsPdI4Z1+fv+rN+9O+tP2gix+lC3YY0w1/69XiJ4JH4TnOXgE6guQ4mpnWt3PJMHv1764/aMTvNCUcfY8uvUt0V/zrf5MoCoIZAGDCELkwBTtAxnK9sWDsUKO2jf2/90XGyzZ3QrFMvvwxEGrsBlUsadFkmyDQEjygFScEM8QxsGmHWa2I8047+vfVHzWOAu3kOOEgdfaomyj7pIDQDhTYU5FhYfpNLb3noQDcSyZUJhz66HVEbjv699Uc6tQU55b04t//IZWa1gpfsbFOsuqYOgEChLoB1PkdGVaqvQ14EpCML5cvB8tG/t/6gyVn1HH9IyI/5CqqCm2m7Rb+AYSbdWcxvFzCNBncLfeHJXirwF5tV2ngmT62e5ejfW39MCVo9zvVHu9ZxBZu9eYw8VTJ9vLN6TnuUi8ai/PaZR//e+uPFpqm3GNTpJlkXjJjDCNc8YNKqEDie5jI72/qsFU/y8K3WRktXzUf/nvovJ/EBiVJT8Lr8EZG1dhlgunhQpVY2k1DIInlrFfvwTOEBgZFAGLxEkSxQByYW3uSP/h31586EBbqw5jPG1+HoqPZG02A1VqjUMe4S5AIzXpMoZseIOY/+vfWHUxf73242m9jNjv7PWH+8HDu2sYVut585P605/jO3o38P/aHr8DzyL4PHd4paV8yRrm3v9GhumHb0760/Op72KaXnuScFvnOMh1ldsQzlWz0/i6mYjENt6wbij3J5eVfu6N9bf5QGWarOVi7yL0Jc1SXlYxUyJ7JRInJnc14+rFIqw1wg5AYJsHbneoeXlXf0760/rgvTYwBBgUjIUzgJkPVmsONjFcoMqyRfJhMxzpfou+qVVAvE1vIFv6Dl6N9bf4CFyEeoniZu4atr3cwDvJjnvKUnSiI6xkhb2K29Srtfjv699Qfug3bTYeIsGr2/3R5B6A/n6N9bf+Dc3HfLT3pDvQI47bRWE4BoTpw5fecZOLnb3KOvLUpH/976Q3ibR+I2moT1vQbzGQqhbL6Ll7BX7gaiV4spQdFYoUf/3vrDPc5yilXzJImLKhFMC+iAP/vUEuRQdUOXg2w6NtLkb54e1+py90VH/976o5wbK8olpDf99LKeGTwrrIVwlWplXW0uuwzH/zVYyxQWFI751v0X8Q0kQim/7D3699YftRdyVQDpTRmRbLLJXwp0VMDteAVlI2tU7qMUBgZCAGaF7gI5w67yYK6oo39v/XFDDgzZgNFHnW0qbUAM2kS67fkgLlp2vi4gIbh0mPWFkew3MzWRLUf/3vqDPuzZ7a42hYfjNeg/j9oEqoPP5GAX8SRDs50iBOpoR//e+gNH/s/PBl4NZKrjJsCb6SIesCIzt81Qkz6H8bSjf2/9IdscX7fJ8QiGAsjJkoCqUzmEsqS3V5qADqcpbgKkD36W2Hz0760/rqsyl/0ZknHVVFHJj1k1gLKjVaHGqvR4PmK4d9qXgawbBii1x7XpUmEtNJHOSxz9e+uPj1xZbNB+kFUmb8SbDAnu+hkC1BU8d/N44CBCGt7wlAQ3qfTtkmmmXHz0760/kO9M6l2rZJFBqotXncpasxNMUjfnH4Y7uHTPQfioINnnH/176w8BMGE8KXvV2EfyamJx53MCAagiu91GRaATBBAIlaPMKNTJjqN/b/0Bp0EPrNb3Ch8Ql5EZU/3aLhSfe9AnzWd2uV5Xk/nRv4N+0lN/uFzkiBagx2vLjncz38rEhBz9u+qP52PHNrb45BN/ef5/29H/r1rosvsBBp/PP9Mvb0OaPfr31h8w6en6/kJxSd3U+qmc9oYBDwEsz3VGXdfRv7f+yJBEuhlmpm6LqkcfbvkVg6LacI4nZ6uNJnDJecrFLQNu3dFdztG/t/6ApV8+V5QXe59JN8G0kcLnxqeRGwIFqUqNayoHJdIFYxaj0CCTCkDZj7ijf2/9wcQiXIg0JpabNiaxFLXpw5wUOx1WDa6AQN9lkqv25eEMvTxl5HtTEObko39v/QEeIN043h1idiQ5Z046iwEU9D+YGU1rWldn8yf06N9bf6DyAQP4YGxSbw14Ew9lvcmO/r31R2VILVoWEIpTELfBh3T4itHVH73G2mwVwr14zKN/b/0xqDg/PyZtc2IVwQmZJGvY9SeyO+7qTGnQeAgwwCc9jmFmj/699Ue5ZLzJfShkjRLRXk2QFcfII2uYoyQpvuDsL1HscKQvDNc2Ir89K+uPPI/+vfUHoMwR2JYXlu2+i3BIW7SPsSWfSjmMpCyLCrHCG5RgPAHlwr/1FI4+3aN/b/1hrqF7JE3jvqW7evqohIzkpynBaCK8+tsTCBw6rB39e+uP2yysTYye4aJ9JXTQxV9PWqV118OO/p313+Lrx6X9sIjMjdR/xo7+z0//N/H9Yt8Dsfk8KJufSLIm6hpJUjTZOUeLnFvXlI7+nfV/H0+L58AbdaevpVlT34NdVh+vrLeQ933y7+jfWf9TfIVPtsEuyzSK+RDPHlO6PpYeQTs5WDYlM2IAeu9Sfud19O+s/6uImyPso7OCijhSV31RKJatjRo1lWdkDQjUmEkbOSpNIcN8IJgYVWNl04Be3tG/r/6vI+KpaPQfW0Um5Qs/UuVkqXkwri5ypNFujw/O+5qvD0g8H8wUMPCW/OUzFyZH/776v43LMiM5HNCSkrqCudmpibLEaja5WbTQ9ti0I9lW3zKHopAVrHG4k7N89G+r/4cv47KnPrpYgmZOfhqrKRQTnQcpcQOL63hoo16VSpSXLWODwKzb5sijf1f930bazVHYNIdPBvBALoY7GpbmBNHreXYZ+h2vNEYd/Xvq//rLSHsy9bA5cnv78MPRv6f+LyL4L/jYse3sKQL7LhPab7ot+w7G0McbOB6bZ2GFOfr30/9NhPbNx6QwouWk9YutR4mbCT27zTqVr7reakf/7+2UUQrCMBBEA2LwoyiC9Bbeo/c/kbjL47EUSulXCxl1s9lMsjPB9mr+362gJ/v/WRb4xKwxyRSSvKzajxhnVhdwbRocGsUE9fbRhFXSos1BVA+k6h3+L+V/6S0gbhMaOZG9tooh1nQWWQgk870AlVAOVK8XytFkMCNGwJ3O+aqlXDAcOilVC1kc/q/j/9vbCvdXyIifwXmOSGXJmIDsgGUWMwepFUMu6N2CENypKQJFFQGYunv4v4r/3kT5C08w3FMLRkFtD+BpsipE+pEGkLbLXroz14f/8/ufewNrPPrnOR/WxxO8h+bgru3dGtst5tjdDv9n9P+3P0+f/mgFP2G4opHzpiinAAAAAElFTkSuQmCC\n",M9=e=>{let{popupName:t,isSeen:n}=e;(0,e0.ZI)("market_ad_exp",{popup_name:t,current_type:MB.org?V0(MB.org):Kp(MB.user),is_first_exp:n?"0":"1",...MB.org?{current_edit_member:MB.org.total_seats}:{}})},k9=e=>{let{popupName:t,isSeen:n}=e;(0,e0.ZI)("market_ad_click",{popup_name:t,current_type:MB.org?V0(MB.org):Kp(MB.user),is_first_exp:n?"0":"1",url:location.href})},Wz=(0,l.memo)(()=>{const e=(0,a.d4)(re.wA),t=(0,a.d4)(re.HW),n=(0,a.d4)(q.O4),r=!!e,{planType:s,leftDays:c,isOrgFull:d,showBtn:p}=Bz(r,e,t),[g,y]=(0,l.useState)(a6(n6,o6)),[w,_]=(0,l.useState)(!1),[j,N]=(0,l.useState)(p),Z=Vz(r,e,t),Q=()=>{const Rn=ENV.IS_MO?Uf.Jh:location.origin+"/brand/pricing?tab="+(r?Lz:Nz)+"&next="+location.href;(0,Ql.JW)(Rn,"_blank","noreferrer")},se=s===Lp.Trial?"\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u8BD5\u7528\u5347\u7EA7":"\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u5347\u7EA7",ie=z0(se),he="\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_hover\u5347\u7EA7",xe=z0(he),Se=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;let Rn,On;s===Lp.Trial?(Rn="\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u8BD5\u7528\u5347\u7EA7",On="workspace-v8_trial_upgrade"):(Rn="\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u5347\u7EA7",On="workspace-v8_top_upgrade");const Lo=(0,tr.l)(e,Rn,On);r||(Lo.soloPtypes="bomx_proto",Lo.soloTab="combine"),MB.global.popupHelper.chargeAsync(Lo),k9({popupName:se,isSeen:ie})},_e=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const Lo=(0,tr.l)(e,"\u8D44\u6E90\u4F4D_v8\u9876\u90E8_hover\u5347\u7EA7","workspace-v8_top_hover_upgrade");r||(Lo.soloPtypes="bomx_proto",Lo.soloTab="combine"),MB.global.popupHelper.chargeAsync(Lo),k9({popupName:he,isSeen:xe})},De=(Rn,On)=>{On.preventDefault(),On.stopPropagation(),(0,jt.a0)(r?_4:P4,Rn,jt.qW.Number),N(!1),_(!1)},Je=Rn=>{Rn.preventDefault(),Rn.stopPropagation(),N(!1),_(!1),y(!1)},Ne=n==="dark",pt=s===Lp.Trial?I18N.FreeUpgrade.trial:s===Lp.Due?I18N.FreeUpgrade.due.replace(/{n}/,c):I18N.FreeUpgrade.free,_t=Rz(r,d,I18N),{isProtoLifeTime:gt,isBomxLifeTime:Ct,isAIPPTLifeTime:zt}=Uz(t);(0,l.useEffect)(()=>{j&&M9({popupName:se,isSeen:ie})},[j]);const Dt=()=>{if(g){const{isDue:Rn=!1,isPaidProto:On=!1,lfTotalSeats:Lo=0,minRealSeats:Yo=0}=Fz(r,e,t);if(r){if(Rn&&Lo<2&&Yo<10)return(0,o.jsxs)("div",{className:m()("buyme-btn-activity",s,{isHovered:w}),onClick:Se,children:[(0,o.jsx)("div",{className:"text",children:"\u4F1A\u5458\u5373\u5C06\u5230\u671F"}),(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Cn=>Je(Cn)})]});if(!On&&Yo<=6)return(0,o.jsxs)("div",{className:m()("buyme-btn","activity","no-order",{isHovered:w}),onClick:Se,children:[(0,o.jsx)("div",{className:"text",children:"\u65B0\u8D2D 66 \u6298\u8D77"}),(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Cn=>Je(Cn)})]})}else{if(Rn)return(0,o.jsxs)("div",{className:m()("buyme-btn-activity",s,{isHovered:w}),onClick:Se,children:[(0,o.jsx)("div",{className:"text",children:"\u4F1A\u5458\u5373\u5C06\u5230\u671F"}),(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Cn=>Je(Cn)})]});if(gt&&Ct)return(0,o.jsxs)("div",{className:m()("buyme-btn","activity","aippt",{isHovered:w}),onClick:Se,children:[(0,o.jsxs)("div",{className:"text",children:["\u65B0\u5E74\u8D85\u7EA7\u4F1A\u5458 4.",(0,o.jsx)("span",{style:{marginTop:"3.9px",display:"inline-block"},children:"4"})," \u6298\u8D77"]}),(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Cn=>Je(Cn)})]});if(gt||Ct||zt)return(0,o.jsxs)("div",{className:m()("buyme-btn","activity","aippt",{isHovered:w}),onClick:Se,children:[(0,o.jsxs)("div",{className:"text",children:["399",(0,o.jsxs)("svg",{width:"14",height:"16",fill:"none",viewBox:"0 0 14 16",children:[(0,o.jsx)("path",{fill:"url(#paint0_linear_5806_26826)","fill-opacity":".88",stroke:"#FFE9C2","stroke-linejoin":"round","stroke-width":".05",d:"M6.85.95q.15-.05.3 0a1 1 0 0 1 .18.12l.24.25 3.66 3.97.45.5q.15.2.15.32 0 .22-.16.38-.1.07-.33.1l-.68.01h-1.2l-.08.02a.2.2 0 0 0-.1.09l-.02.08-.02.13c-.38 3.69-2.84 6.13-4.93 7.44l-.75.44-.08.02a.2.2 0 0 1-.12-.13v-.03q0-.02.02-.05.01-.07.09-.18.12-.24.38-.65c1.37-2.24 1.26-5.25.94-6.91q-.02-.11-.06-.18l-.09-.07q-.06-.03-.19-.02H3.34l-.68-.01q-.23-.03-.33-.1a.5.5 0 0 1-.16-.38q0-.13.15-.31.15-.2.45-.5l3.66-3.98.24-.25a1 1 0 0 1 .18-.12Z"}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint0_linear_5806_26826",x1:"7",x2:"25.94",y1:".67",y2:"9.73",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{"stop-color":"#D37A11"}),(0,o.jsx)("stop",{offset:"1","stop-color":"#FFEFD7"})]})})]}),"\u4EA7\u54C1\u7EC8\u8EAB"]}),(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Cn=>Je(Cn)})]});if(!On)return(0,o.jsx)("div",{className:m()("buyme-btn","activity","upgrade",{isHovered:w}),onClick:Se,children:(0,o.jsxs)("div",{className:"text",children:[(0,o.jsx)("img",{src:"https://cdn-yunyin.modao.cc/activity-dashboard-proto/2511/d-12-proto-icon.png",style:{width:16,height:16,marginRight:2},alt:"icon"}),"\u65B0\u5E74\u7115\u65B0\u7279\u60E0"]})})}}if(j&&s)return(0,o.jsxs)("div",{className:m()("buyme-btn",s,{isHovered:w}),onClick:Se,children:[s===Lp.Free&&(0,o.jsx)(Et.C,{name:"toolbar/upgrade_"+n,size:16,isColorPure:!0}),(0,o.jsxs)("div",{className:"text",children:[pt," "]}),s===Lp.Due&&(0,o.jsx)(Et.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Rn=>De(c,Rn)})]})};return(j||g)&&(0,o.jsxs)(Iz,{isDark:Ne,onMouseEnter:()=>{_(!0),M9({popupName:he,isSeen:xe})},onMouseLeave:()=>_(!1),children:[Dt(),w&&(0,o.jsxs)(Tz,{className:""+s,isDark:Ne,children:[(0,o.jsx)("img",{src:zz,alt:"",draggable:"false"}),(0,o.jsx)("div",{className:"desc-grid",children:_t.map((Rn,On)=>(0,o.jsxs)("div",{className:"desc-cell",children:[(0,o.jsx)("div",{className:m()("desc1",{"has-han":Oz(Rn.desc1)}),children:Rn.desc1}),(0,o.jsx)("div",{className:"desc2",children:Rn.desc2})]},On))}),(0,o.jsx)("div",{className:"features",children:I18N.FreeUpgrade.membership_features}),(0,o.jsxs)("div",{className:"more",onClick:Q,children:[(0,o.jsx)("div",{className:"text",children:I18N.FreeUpgrade.more}),(0,o.jsx)(Et.C,{name:"common/back_reverse",size:24})]}),(0,o.jsxs)("div",{className:"upgrade",onClick:_e,children:[(0,o.jsx)("div",{className:"text",children:s===Lp.Due?I18N.Common.renew:I18N.dModals.renew_now}),(0,o.jsx)("img",{src:"https://cdn-yunyin.modao.cc/2502/proto-activity-1.png",alt:""})]})]})]})});var Hz=i(85131),Gz=i(46712),Zz=i(10245);const Kz=(e,t,n)=>{const[r,s]=(0,l.useState)((0,jt.Yt)(e,t,n));return(0,l.useEffect)(()=>{(0,jt.a0)(e,r,n)},[e,r,n]),[r,s]},Yz=(0,l.memo)(()=>{const e=(0,a.d4)(re.PL),{isEditingBasket:t,isDirectlyEditingBasket:n,isEditingCombo:r}=(0,a.d4)(we.r),s=(0,a.d4)(ht.p$),{isFromAbar:c}=(0,a.d4)(re.fv),d=(0,a.d4)(re.z$),p=(0,a.d4)(Y.rg),g=(0,a.d4)(Y.uu),y=(0,a.d4)(re.zv),w=(0,od.WM)(),_=(0,a.wA)(),[j,N]=(0,l.useState)(!1),[Z,Q]=Kz(e.cid+"_mode_selected","device",jt.qW.String);if((0,l.useEffect)(()=>{let xe;return(0,od.WM)()&&(xe=setTimeout(()=>{N(!0)},Zz.b)),()=>clearTimeout(xe)},[w]),(0,l.useEffect)(()=>{(y.includes(Or.c.GUIDE_NOVICE_2309_TASK_4)||y.includes(Or.c.GUIDE_2407_PREVIEW_CLOSE))&&N(!1)},[y]),t||n)return null;const se=(d==null?void 0:d.access_token)||e.access_token,ie=xe=>{const Se=s.key;if(!Se)return MB.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed,type:"warning"});switch(xe){case"device":{var _e,De,Je;if(MB.global.experienceLoginModalHelper("isSave"))return;if(g||_({type:"entry:start:saving"}),r){_({type:"entry:preview:combo"});return}const Ct=((_e=MB.getSelectionItems().findLast(Dt=>{const sn=Dt.hotAttr||Dt;return sn.type==="rResCanvas"&&!sn.asOverlay}))==null?void 0:_e.key)||(0,Hz.XV)(Se),zt=(0,vf.f1)({accessToken:se,screen:Se,canvasId:Ct});c?(0,_u.sg)(_u.ZW.enterPreview,{link:zt}):(0,Ql.Ix)(zt,"_blank","noreferrer"),p||((0,c0.kX)({operation_type:c0.mV.Device}),_({type:"entry:update:novice:guide:and:task",payload:{guideType:Or.c.GUIDE_NOVICE_2309_STEP_4,taskType:Or.c.GUIDE_NOVICE_2309_TASK_4}})),(0,Ue.bO)({currentProject:e,preview_type:"\u6F14\u793A\u6A21\u5F0F"}),(0,hd.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u6F14\u793A\u6A21\u5F0F"}),Vc.U4.protoEditorPresentTrack((De=MB)==null||(De=De.user)==null?void 0:De.id,"\u53F3\u4E0A\u89D2\u6F14\u793A",(Je=MB.getCurrentScreen())==null?void 0:Je.device);break}case"read_only":{var Ne,pt;const _t=(0,vf.h2)({accessToken:se,currentPageKey:s.key});c?(0,_u.sg)(_u.ZW.enterPreview,{link:_t}):(0,Ql.Ix)(_t,"_blank","noreferrer"),(0,Ue.bO)({currentProject:e,preview_type:"\u53EA\u8BFB\u6A21\u5F0F"}),(0,hd.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u603B\u89C8\u6A21\u5F0F"}),Vc.U4.protoEditorPresentTrack((Ne=MB)==null||(Ne=Ne.user)==null?void 0:Ne.id,"\u53F3\u4E0A\u89D2\u603B\u89C8",(pt=MB.getCurrentScreen())==null?void 0:pt.device);break}}j&&(MB.commonGuideHelper.closeGuide(Or.c.GUIDE_2407_PREVIEW),N(!1))},he=xe=>{Q(xe),ie(xe)};return(0,o.jsxs)(Qz,{className:Or.c.GUIDE_NOVICE_2309_STEP_4+" "+Or.c.GUIDE_2407_PREVIEW+" "+(j?"guide-type-preview":""),onClick:()=>ie(Z),children:[(0,o.jsx)(Os.A,{content:Z==="device"?(0,Pu.Qc)("preview"):I18N.ToolBar.overview,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"mode-container",children:(0,o.jsx)(Et.C,{name:Z==="device"?"toolbar/preview":"toolbar/read_only"})})}),!r&&(0,o.jsx)(pm.A,{menuPosTop:48,offsetX:-52,direction:"down-start",className:"select-mode-dropdown",renderOpener:(0,o.jsx)(Os.A,{content:I18N.ArtBoard.preview,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"mode-menu-opener",children:(0,o.jsx)(Et.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,o.jsx)(Xz,{onSelectMode:he})})]})}),Xz=e=>{let{onSelectMode:t}=e;return(0,o.jsxs)(Jz,{children:[(0,o.jsxs)("li",{onClick:()=>t("device"),children:[(0,o.jsx)(Et.C,{size:16,name:"toolbar/mode/device/small"}),(0,Pu.Qc)("preview")]}),(0,o.jsxs)("li",{onClick:()=>t("read_only"),children:[(0,o.jsx)(Et.C,{name:"toolbar/mode/read_only/small"}),I18N.ToolBar.overview]})]})},Qz=E.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledOpenNewModeButton",componentId:"sc-fp4th1-0"})(["width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;&.guide-type-preview{width:48px;height:32px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}.mode-container{width:32px;height:32px;position:relative;.svg-icon{width:100%;}}.select-mode-dropdown{height:100%;display:flex;align-items:center;.mode-menu-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled):active,&:not(.disabled).active{background-color:",";.select-mode-dropdown.is-open{background-color:unset;}}"],Gz.K6,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),Jz=E.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledModeMenu",componentId:"sc-fp4th1-1"})(["padding:8px;width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;.svg-icon{margin-right:4px;width:16px;height:16px;color:",";[stroke]{stroke:currentColor;fill:none;}}.key{position:absolute;right:16px;color:",";}position:relative;height:28px;padding:4px 16px;display:flex;align-items:center;cursor:pointer;font-size:12px;line-height:16px;&:hover{background:",";}}li{border-radius:4px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover),E9=e=>{let{isOpen:t,onConfirm:n,onClose:r,className:s}=e;return(0,o.jsxs)(qz,{isOpen:t,className:m()("fz-auth-modal",s),title:"\u5B57\u4F53\u4F7F\u7528\u987B\u77E5",confirmText:"\u540C\u610F",cancelText:"\u4E0D\u540C\u610F",onConfirm:n,onCancel:r,onClose:r,width:400,children:[(0,o.jsx)("p",{children:"\u5C0A\u656C\u7684\u58A8\u5200\u7528\u6237\uFF0C\u60A8\u597D!"}),(0,o.jsx)("p",{children:"\u60A8\u53EF\u4EE5\u5728\u58A8\u5200\u8BBE\u8BA1\u5DE5\u5177\u4E2D\u514D\u8D39\u8BD5\u7528\u65B9\u6B63\u5B57\u4F53\uFF0C\u4EE5\u5448\u73B0\u66F4\u597D\u7684\u5728\u7EBF\u8BBE\u8BA1\u6548\u679C\u3002\u5F53\u60A8\u5C06\u65B9\u6B63\u5B57\u4F53\u7528\u4E8E\u5546\u4E1A\u7528\u9014\u65F6\uFF0C\u9700\u8981\u4E3B\u52A8\u8054\u7CFB\u65B9\u6B63\u5B57\u5E93\u8D2D\u4E70\u6388\u6743\u3002\u300C\u514D\u8D39\u83B7\u5F97\u8BD5\u7528\u6743\uFF0C\u4ED8\u8D39\u83B7\u5F97\u4F7F\u7528\u6743\u300D\u3002"}),(0,o.jsx)("br",{}),(0,o.jsxs)("p",{children:["\u65B9\u6B63\u5B57\u5E93\u4EC5\u9488\u5BF9\u6700\u7EC8\u7528\u6237\u7684\u5546\u4E1A\u884C\u4E3A\u6536\u53D6\u6388\u6743\u8D39\u3002\u6709\u5173\u65B9\u6B63\u5B57\u5E93\u6388\u6743\u6A21\u5F0F\u548C\u4EF7\u683C\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u8BF7\u4ED4\u7EC6\u9605\u8BFB",(0,o.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://www.foundertype.com/index.php/About/bookAuth/key/my_sysq.html",children:"\u300A\u65B9\u6B63\u5B57\u5E93\u201C\u5546\u4E1A\u53D1\u5E03\u201D\u6388\u6743\u4EF7\u683C\u8BF4\u660E\u300B"})]})]})};E9.propTypes={isOpen:Sa().bool,className:Sa().string,onConfirm:Sa().func,onClose:Sa().func};const qz=(0,E.Ay)(Ei.H).withConfig({displayName:"FZAuthModal__StyledModal",componentId:"sc-fk7ij6-0"})(["&.fz-auth-modal{background-color:",";border:1px solid ",";p{color:",";}.content{a{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal),$z=E9,eW=(0,E.DU)([".DesignDropdownMenu{&.font-options-menu{transition:unset !important;background:",";border:1px solid ",";box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:8px;overflow:hidden;.content{padding:0 !important;position:relative;background:",";}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}}&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01),XJ=E.Ay.section.withConfig({displayName:"styles__StyledTextSettings",componentId:"sc-1hpsc6c-0"})(["position:relative;width:240px;padding:0 10px;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:space-between;& >:nth-child(2){margin-left:46px;.radio-option svg{width:24px;height:24px;}}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;margin:8px 0;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover),tW=E.Ay.div.withConfig({displayName:"styles__StyledMissFontModal",componentId:"sc-j1bci5-0"})(["position:absolute;right:24px;z-index:199;top:49px;display:flex;flex-direction:column;width:606px;border-radius:8px;background-color:",";font-size:12px;outline:",";box-shadow:",";",";header{border-top-left-radius:8px;border-top-right-radius:8px;font-size:14px;border-bottom:1px solid "," !important;}.body{display:flex;flex-direction:column;padding-left:20px;.tip{color:",";margin-top:20px;font-weight:500;}.sub-tip{color:",";height:34px;display:flex;align-items:center;.sub-tip-1{margin-right:186px;}}.content-body{&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}border-radius:0 !important;max-height:266px;overflow-y:scroll;overflow-x:hidden;margin-right:4px;}}#last{display:flex;margin-top:24px;justify-content:flex-end;align-items:flex-start;padding:0 20px;height:56px;& > .button-root{margin-left:12px;}}"],e=>e.theme.color_bg_white,e=>e.$theme==="dark"?"1px solid #4F5052":void 0,e=>e.theme.miss_font_box_shadow,A4.wy,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_slider_normal,e=>e.theme.color_slider_hover),nW=E.Ay.div.withConfig({displayName:"styles__StyeldFontItem",componentId:"sc-j1bci5-1"})(["display:flex;align-items:center;height:34px;margin-bottom:8px;.svg-icon *{color:",";fill:currentColor}.p1-1{margin-right:8px;}.p1-2{margin-right:6px;}.p1-3{width:140px;margin-right:8px;color:",";}.p1-4{margin-right:16px;}.selct-border{border-radius:6px;border:1px solid ",";&:hover{border:1px solid ",";}}.p4{width:200px;margin-right:8px;}.p5{width:126px;}.p4,.p5{&:hover{background:",";}.WorkspaceSelect{width:100%;display:flex;justify-content:space-between;border:none;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover);var L4=i(45709),oW=i(69173),r6=i.n(oW),aW=i(74937),I9=i.n(aW);function T9(e){return I9()(e)||r6()(e)||(0,l.isValidElement)(e)?e:e.label||e.value?e.label||e.value:void 0}function rW(e){return I9()(e)||r6()(e)?String(e):e.value||e.label?String(e.value||e.label):void 0}function _9(e,t){return!!t&&rW(e)===String(t)}var iW=i(54449);const P9=E.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-dlp340-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;&.is-disabled{cursor:not-allowed;}.btn{height:100%;display:flex;align-items:center;max-width:calc(100% - 10px - 1em);.questionMark{display:flex;align-items:center;min-width:16px;margin-right:8px;}span{text-align:start;cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;color:",";}.show-question-mark{color:",";}}.caret{padding:0 8px;color:",";height:100%;display:inline-flex;align-items:center;.svg-icon{color:",";}svg{width:8px;height:8px;transition:transform 0.2s ease-out;}}&{padding-left:8px;border:1px solid transparent;border-radius:2px;}&.is-open .caret svg{transform:rotate(180deg);}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),sW=(0,o.jsx)(Et.C,{name:"toolbar/selected",className:"selected-icon"}),lW=e=>{const{value:t,onChange:n,className:r,showQuestionMark:s,selectValue:c,disabled:d,hasCheck:p,optionList:g,$menuMaxHeight:y,$menuWidth:w,$hasScroll:_}=e,j=(0,l.useRef)(null),{handleToggle:N,handleClose:Z,menuStatus:Q}=(0,iW.x)({ref:j,leftUse:"left",xOffset:125}),se=De=>n(De),ie=()=>{if(s)return(0,L4.cB)((0,V2.cD)(t));const De=g.find(Je=>_9(Je,t));return De?(0,V2.cD)(T9(De)):t},he=()=>{d||N()},xe=d,Se=!d,_e=(0,Pl.Hn)(["WorkspaceSelect","regular",r,xe&&"is-disabled"]);return(0,o.jsxs)(P9,{className:_e,role:"listbox",ref:j,onClick:he,children:[(0,o.jsx)("div",{className:"btn",children:(0,o.jsx)("span",{className:m()({"show-question-mark":s}),children:ie()})}),(0,o.jsx)("span",{className:"caret",children:(0,o.jsx)(Et.C,{name:"common/expand"})}),Q.isOpenContextMenu&&(0,o.jsxs)(cW,{position:Q.position,canSelect:Se,onClose:Z,className:m()("font-family-menu"),$menuWidth:w,$menuMaxHeight:y,$hasScroll:_,children:[c&&(0,o.jsxs)("div",{className:"select-value",children:[(0,o.jsx)(Et.C,{name:"common/checked"}),c]}),g.map((De,Je)=>{const Ne=_9(De,t);return(0,o.jsx)("div",{className:"font-family-level",style:{position:"relative"},children:(0,o.jsx)(He.Dr,{text:T9(De),option:De,onClick:()=>se(De),icon:p&&Ne?sW:null})},Je)})]})]})},cW=(0,E.Ay)(He.Ay).withConfig({displayName:"Select__StyledContextMenu",componentId:"sc-10rjh3h-0"})(["",";.select-value{padding-left:5px;height:28px;margin:8px 0;border-bottom:1px solid ",";line-height:21px;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;cursor:pointer;svg{margin-left:6px;margin-right:4px;}}.svg-icon{width:16px;height:16px;}&.font-family-menu ul{&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}}& > ul:first-of-type{max-height:",";min-width:","px;width:","px;overflow-y:",";padding:0px;}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],pr.ZJ,e=>e.theme.color_bg_border_01,e=>e.theme.color_slider_normal,e=>e.theme.color_slider_hover,e=>e.$hasScroll?e.$menuMaxHeight+"px":void 0,e=>e.$menuWidth,e=>e.$menuWidth,e=>e.$hasScroll?"scroll":void 0);var dW=i(55171);const pW=e=>{const{className:t,showQuestionMark:n,disabled:r,allFontList:s,stateFamily:c,stateWeight:d,handleFontFamilyChange:p,handleFontWeightChange:g,familyShowValue:y}=e,w=(0,l.useRef)(null),_=r,j=(0,Pl.Hn)(["WorkspaceSelect","regular",t,_&&"is-disabled"]),[N,Z]=(0,l.useState)(!1),[Q,se]=(0,l.useState)({top:0,right:0}),ie=()=>{Z(!1)},he=(0,l.useRef)(null),xe=_e=>{const De=_e.target;!De.closest("#font-list-panel")&&!De.closest(".font-family-label")&&ie()},Se=()=>{const _e=he==null?void 0:he.current.getBoundingClientRect();_e&&se({top:_e.top+28+4,left:_e.left-9}),Z(!N)};return(0,o.jsxs)(P9,{className:j,role:"listbox",ref:w,children:[(0,o.jsx)("button",{onClick:Se,disabled:_,ref:he,children:(0,o.jsx)("span",{className:m()({"show-question-mark":n}),children:y})}),(0,o.jsx)("span",{className:"caret",children:(0,o.jsx)(Et.C,{name:"common/expand"})}),N&&(0,ds.createPortal)((0,o.jsx)(dW.Z,{fontFamily:c,fontWeight:d,fontStyle:"normal",position:Q,wbiVersion:3,subMenuDirection:"left",clickFF:_e=>{p(_e),Z(!1)},clickFW:(_e,De)=>{g(_e,De),Z(!1)},hoverFF:_e=>null,hoverFW:(_e,De)=>null,clearOverrideAttr:()=>null,handleClickOutSideToClose:xe,fontListOriginal:s,setIsOpenListPanel:Z}),document.body)]})};function uW(e){var t;const{family:n,weight:r,changeOpenFZAuthInfo:s,modifyFontFamily:c,modifyFontWeight:d,fontItemKey:p,handleFocusItem:g,changeMap:y,allFontList:w}=e,_=n,j=r,[N,Z]=(0,l.useState)("PLACE_HOLDER_FAMILY"),[Q,se]=(0,l.useState)(r),ie=()=>_,he=async function(Ct,zt){zt===void 0&&(zt=!1);const Dt=ie();let sn=Ct.value;const Rn=()=>{if(Ct.type==="cloud"){const{ff:On,fw:Lo}=(0,V2.dv)(Ct);sn=On,c({fontItemKey:p,fromFF:Dt,toFF:sn}),d({fontItemKey:p,fromFW:j,toFW:Lo}),se(Lo)}else c({fontItemKey:p,fromFF:Dt,toFF:sn}),Se({font:Ct,value:"regular"});Z(sn)};zt?Rn():(0,V2.x7)(sn)?s(!0,Rn):Rn()},xe=(Ct,zt)=>{let Dt=Ct.value;Ct.type==="cloud"&&(Dt=Ct.weightExtKeyKV[zt.value]||Ct.strangeExtKeyWeightKV[zt.value]),c({fontItemKey:p,fromFF:ie(),toFF:Dt});const sn=zt.value;d({fontItemKey:p,fromFW:j,toFW:sn}),Z(Dt),se(sn)},Se=Ct=>{const zt=Ct.value;if(Ct.font.type==="cloud"){const Dt=Ct.font.weightExtKeyKV[zt]||Ct.font.strangeExtKeyWeightKV[zt];c({fontItemKey:p,fromFF:ie(),toFF:Dt})}d({fontItemKey:p,fromFW:j,toFW:zt}),se(zt)},_e=(0,Mp.w0)(N,w),De=(_e==null?void 0:_e.typeList.map(Ct=>({font:_e,label:(0,L4.cB)(Ct),value:Ct})))||[],Je=N==="PLACE_HOLDER_FAMILY"?"\u9009\u62E9\u66FF\u6362\u7684\u5B57\u4F53":(_e==null?void 0:_e.label)||(0,V2._9)(N),Ne=Q,pt=((t=(0,Mp.w0)(_,w))==null?void 0:t.label)||(0,V2._9)(_),_t=(0,L4.cB)(j)||j,gt=_e==null?void 0:_e.typeList.find(Ct=>Ct===Q);return(0,l.useEffect)(()=>{const Ct=(0,Mp.w0)(n,w);Ct&&setTimeout(()=>{he(Ct)},4)},[]),(0,o.jsxs)(nW,{children:[(0,o.jsx)(Os.A,{content:"\u9009\u4E2D\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6",direction:"down",distance2:4,children:(0,o.jsx)(pc.A,{onClick:()=>g(p),size:24,name:"font/miss/focus",className:"p1-1"})}),(0,o.jsx)(Os.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance2:4,children:(0,o.jsx)(Et.C,{size:16,isColorPure:!0,name:"design/notify/questionMark",className:"p1-2"})}),(0,o.jsx)("span",{className:"p1-3",children:pt+", "+_t}),(0,o.jsx)(Et.C,{size:14,name:"design/missfont/arrow",className:"p1-4"}),(0,o.jsx)("div",{className:"p4 selct-border",children:(0,o.jsx)(pW,{familyShowValue:Je,stateFamily:N,stateWeight:Q,allFontList:w,handleFontFamilyChange:he,handleFontWeightChange:xe})}),(0,o.jsx)("div",{className:"p5 selct-border",children:(0,o.jsx)(lW,{optionList:De,value:Q,onChange:Se,disabled:De.length===0,showQuestionMark:!gt,hasCheck:!0,$menuWidth:130,$menuMaxHeight:270,$hasScroll:!1})})]})}const L9=()=>({changeFF:null,changeFW:null});function hW(e){const{missFontKeyMap:t,handleClose:n}=e,r=(0,l.useRef)(new Map),s=b8(),[c,d]=(0,l.useState)([...t.keys()]),p=(0,a.d4)(Hs.y.query.getCloudFontLocalList),g=(0,a.d4)(q.O4),y=(0,l.useMemo)(()=>(0,V2.r)((0,L4.Sq)().concat(p)),[p]);(0,l.useEffect)(()=>{r.current=new Map,d([...t.keys()])},[t]);const[w,_]=(0,l.useState)(!1),j=(0,a.wA)(),N=()=>{j({type:Hs.y.entryKey["font:modify:fontItem:confirm"],payload:{changeMap:r.current}}),n()},Z=De=>{j({type:Hs.y.entryKey["font:focus:fontItem"],payload:{fontItemKey:De}})},Q=De=>{let{fontItemKey:Je,fromFF:Ne,toFF:pt}=De,_t=r.current.get(Je);_t||r.current.set(Je,_t=L9()),_t.changeFF={fontItemKey:Je,fromFF:Ne,toFF:pt,type:"ff"},s()},se=De=>{let{fontItemKey:Je,fromFW:Ne,toFW:pt}=De,_t=r.current.get(Je);_t||r.current.set(Je,_t=L9()),_t.changeFW={fontItemKey:Je,fromFW:Ne,toFW:pt,type:"fw"},s()},ie=(De,Je)=>{_(De)},he=()=>{(0,jt.cH)("FZFontAuthInformed",!0),_(!1)},xe=()=>{_(!1)},Se=r.current.size>0,_e=c.sort((De,Je)=>{var Ne,pt;const _t=De.split(":"),gt=Je.split(":"),Ct=""+(((Ne=(0,Mp.w0)(_t[0],y))==null?void 0:Ne.label)||(0,V2._9)(_t[0]))+(_t[1]||""),zt=""+(((pt=(0,Mp.w0)(gt[0],y))==null?void 0:pt.label)||(0,V2._9)(gt[0]))+(gt[1]||"");return Ct.localeCompare(zt,"zh-Hans-CN",{sensitivity:"accent"})});return(0,o.jsxs)(tW,{className:"missingFont",$theme:g,children:[(0,o.jsx)(Th.rQ,{title:I18N.ToolBar.missingFont_title}),(0,o.jsx)(Th.v,{canClose:!0,onClick:n}),(0,o.jsxs)("div",{className:"body",children:[(0,o.jsx)("div",{className:"tip",children:I18N.ToolBar.missingFont.tip}),(0,o.jsxs)("div",{className:"sub-tip",children:[(0,o.jsx)("div",{className:"sub-tip-1",children:"\u7F3A\u5931\u5B57\u4F53"}),(0,o.jsx)("div",{className:"sub-tip-2",children:"\u66FF\u6362\u5B57\u4F53\u4E3A"})]}),(0,o.jsx)("div",{className:"content-body",children:_e.map((De,Je)=>{const Ne=De.split(":"),pt=Ne[0];return(0,o.jsx)(uW,{fontItemKey:De,weight:Ne[1]||"regular",family:pt,changeOpenFZAuthInfo:ie,modifyFontFamily:Q,modifyFontWeight:se,handleFocusItem:Z,changeMap:r.current,allFontList:y},De)})}),(0,o.jsxs)("div",{id:"last",children:[(0,o.jsx)(Fl.tA,{onClick:n,children:I18N.Popups.cancel}),(0,o.jsx)(Fl.jn,{disabled:!Se,onClick:N,children:I18N.ToolBar.missingFont.replaceFont})]})]}),w&&(0,o.jsx)($z,{isOpen:!0,className:"MissFontFZAuthInformed",onConfirm:he,onClose:xe}),(0,o.jsx)(eW,{})]})}const mW=(0,l.memo)(()=>{const e=(0,l.useRef)(null),t=(0,a.wA)(),n=(0,a.d4)(Hs.y.query.getIsShowMissFontModal),r=(0,a.d4)(Hs.y.query.getMissFontKeyMap),s=()=>{Hs.y.dispatchState({isShowMissFontModal:!1},t)},c=()=>{n?Hs.y.dispatchState({isShowMissFontModal:!1},t):t({type:Hs.y.entryKey["font:miss:modal:open"]})};return r!=null&&r.size?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:m()("missing-font",n&&"active"),style:{position:"relative"},ref:e,onClick:c,children:(0,o.jsx)(Os.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance:5,enterHoverTime:500,children:(0,o.jsx)(Et.C,{size:32,isColorPure:!1,name:"toolbar/missingfont"})})}),n&&e.current&&(0,ds.createPortal)((0,o.jsx)(hW,{missFontKeyMap:r,handleClose:s}),document.body)]}):null}),fW=E.Ay.div.withConfig({displayName:"styles__StyledNotice",componentId:"sc-8qqb00-0"})(["position:relative;margin-right:10px;.buyme-btn{width:118px;border-radius:44px;height:28px;font-size:14px;line-height:20px;font-weight:500;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#FFFFFF;border:",";background:linear-gradient(353.67deg,#333333 33.16%,#666666 94.29%);&:hover{background:linear-gradient(353.67deg,rgba(51,51,51,0.85) 33.16%,rgba(102,102,102,0.85) 94.29%);}}"],e=>e.isDark?"1px solid #FFFFFF":"1px solid #333333"),gW=(0,l.memo)(()=>{const e=(0,a.d4)(q.O4),t=(0,a.wA)(),n=e==="dark",r=()=>{t({type:"modal:update:state",payload:{noticeModal:{isOpen:!0}}})};return(0,o.jsx)(fW,{isDark:n,onClick:r,children:(0,o.jsxs)("div",{className:m()("buyme-btn"),children:[(0,o.jsx)(Et.C,{name:"toolbar/notice/serve",size:16,isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u7CFB\u7EDF\u5347\u7EA7\u7EF4\u62A4"})]})})}),yW=()=>{const e=(0,a.wA)(),t=(0,a.d4)(re.K$),n=(0,a.d4)(re.HW),r=(0,a.d4)(q.O4),g={bizUpdateUser:y=>{e({type:"set:current:user",payload:{user:y}})},bizUpdateOrg:y=>{if(y.otype==="personal"){e({type:"set:current:personal:org",payload:{org:y}});return}e({type:"set:current:org",payload:{org:y}})},bizOpenCharge:y=>{const{toolType:w,isSolo:_,org:j,showAipptBenefitPage:N,payEntrance:Z,checkoutPlace:Q}=y,se=j||t;if(w===zo.Zl)return MB.global.popupHelper.chargeAsync({potatoSource:y.potatoSource,isBuyAgentPoint:!0});if(w==="mkt"){let De="mat";const Je=_||se==null?void 0:se.cid,Ne={mode:De,orgCid:Je,payEntrance:Z,checkoutPlace:Q};return MB.global.popupHelper.chargeAsync(Ne)}if(w===zo.X3){if(_&&se){const{planSdk:pt}=Xs.tz.InitialOrg(se),{isLifetime:_t}=pt.prototypePlan,{isLifetime:gt}=pt.bomxPlan,{isLifetime:Ct}=pt.aiPptPlan;if(_&&!(_t&&gt&&Ct)){const Dt={mode:"aippt-solo",payEntrance:Z,checkoutPlace:Q,showAipptBenefitPage:N,from:"proto"};return MB.global.popupHelper.chargeAsync(Dt)}}const{aiPpt:{plan:De}}=(0,Xs.EQ)(se),Je=De===Xs.Sj.OrgLite?"org_full":"",Ne={mode:"org",orgCid:se==null?void 0:se.cid,payEntrance:Z,checkoutPlace:Q,immediateUse:Je,showAipptBenefitPage:N,addAippt:!0,from:"proto"};return MB.global.popupHelper.chargeAsync(Ne)}const ie=_?"solo":"org",he={[zo.Pq]:"bomx",[zo.fv]:"proto",design2:"design",design:"design"},xe=w!=null?w:"",Se=he[xe]||"",_e={mode:ie,orgCid:se==null?void 0:se.cid,payEntrance:Z,checkoutPlace:Q,soloPtypes:Se,soloCombinePtypes:Se,soloTab:"piece",showAipptBenefitPage:N,from:"proto"};MB.global.popupHelper.chargeAsync(_e)},bizNavOpenPage:y=>{switch(y){case zo.Mi.MCPToken:MB.action("modal:update:state",{mcpTokenModal:{isOpen:!0}});break}}};return!t||!n?null:(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",marginRight:"12px"},children:(0,o.jsx)(zo.M5,{org:t,user:n,from:"proto",theme:r,actions:g,avatarStyle:{width:"24px",height:"24px"}})})};class vW extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,O.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,O.A)(this,"handleZoomInitialScale",t=>{t==null||t.stopPropagation(),t==null||t.preventDefault();const{dispatch:n}=this.props;n({type:"entry:zoom:fit:scale:offset"})}),(0,O.A)(this,"handleZoomSelection",t=>{t.stopPropagation(),t.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,O.A)(this,"handleZoomSpecifiedScale",t=>{const n=Number(t),{dispatch:r}=this.props;r({type:"entry:set:scale",payload:{scale:n}})}),(0,O.A)(this,"handleDownload",t=>{t.stopPropagation(),!MB.global.experienceLoginModalHelper("isSave")&&(this.props.dispatch({type:"entry:toolbar:open:export_menu"}),(0,c0.kX)({operation_type:c0.mV.Download}))}),(0,O.A)(this,"handleShare",()=>{const{isDisabledSharing:t,dispatch:n}=this.props;t||MB.global.experienceLoginModalHelper("isSave")||(n({type:"toolbar:sharingManager:toggle"}),n({type:"entry:update:novice:guide:and:task",payload:{guideType:Or.c.GUIDE_NOVICE_2309_STEP_5,taskType:Or.c.GUIDE_NOVICE_2309_TASK_5}}),(0,c0.kX)({operation_type:c0.mV.Sharing}))}),(0,O.A)(this,"handleLaunchCombo",()=>{this.props.dispatch({type:"entry:preview:combo"});const{rootProject:t}=this.props;(0,Ue.bO)({currentProject:t,source:"\u7EC4\u4EF6\u7F16\u8F91",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,O.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:t}=this.props;t({type:"entry:toolbar:toggle:fullScreen"})}),(0,O.A)(this,"handleToggleCommentMode",()=>{const{dispatch:t}=this.props;t({type:"entry:comment:toggle",payload:{onlyView:!0}}),(0,P1.A)({operation_type:P1.D.Comment})})}componentDidMount(){var t,n;this.props.onlyView&&!((t=MB)!=null&&(t=t.commonGuideHelper)!=null&&t.checkGuideHasShown(Or.c.GUIDE_TO_PREVIEW_IN_SHARE))&&((n=MB)==null||(n=n.commonGuideHelper)==null||n.tryToShowGuide(Or.c.GUIDE_TO_PREVIEW_IN_SHARE))}render(){const{scale:t,isShowSharing:n,isDisabledSharing:r,isShowExport:s,isDisabledExport:c,isShowPreview:d,isExportMenuShow:p,dispatch:g,onlyView:y,isCommunityPreview:w,isEmbedV2Preview:_,isHtmlZipPreview:j,fullScreenMode:N,isShowExitCombo:Z,importAbarOptions:Q,isDisabledLunchCombo:se,currentSharingInReadOnly:ie,commentMode:he,isShowAvatarMenu:xe}=this.props,{isFromAbar:Se,isImportAbar:_e,fromAbarIsReadOnly:De}=Q||{};let Je="";if(y&&Se&&!De&&(Je=_e?"toolbar-right-abar-import":"toolbar-right-abar"),y)return(0,o.jsx)(Ez,{isShowSharing:n,isCommunityPreview:w,isEmbedV2Preview:_,isHtmlZipPreview:j,fullScreenMode:N,scale:t,isDisabledSharing:r,currentSharingInReadOnly:ie,commentMode:he,dispatch:g,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSelection:this.handleZoomSelection,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleShare:this.handleShare,handleToggleCommentMode:this.handleToggleCommentMode,isFromAbar:Se,className:Je});const Ne=n&&!Z&&!(Se||(0,_u.M2)()),pt=(0,Cu.tg)();return(0,o.jsxs)("div",{className:m()("toolbar-right",Je),children:[!ENV.IS_ON_PREMISES&&(pt?(0,o.jsx)(gW,{}):(0,o.jsx)(Wz,{})),(0,o.jsx)(A9,{showAvatarMenu:xe}),xe&&(0,o.jsx)(yW,{}),Ne&&(0,o.jsx)(C9,{isDisabledSharing:r,onShare:this.handleShare,isNotLogined:!1}),!y&&(0,o.jsx)(mW,{}),d&&(Z?(0,o.jsx)(Tu.A,{className:m()("preview-box",Or.c.GUIDE_NOVICE_2309_STEP_4),toolTipName:(0,Pu.Qc)("preview"),toolTipDistance:8,svgIconName:"toolbar/preview",disabled:se,onClick:this.handleLaunchCombo}):(0,o.jsx)(Yz,{})),s&&!Z&&(0,o.jsx)("div",{id:"design-export",onClick:this.handleDownload,children:(0,o.jsx)(Tu.A,{toolTipName:I18N.ToolBar.download,toolTipDistance:8,disabled:c,active:p,svgIconName:"toolbar/download",className:"export-screen-btn"})}),(0,o.jsx)(w9.X,{}),(0,o.jsx)("div",{className:"design-zoom-box-container",children:(0,o.jsx)(gz.Pd,{className:"toolbar-right-zoom",scale:t,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale,onZoomSelection:this.handleZoomSelection})}),N&&(0,o.jsx)(Tu.A,{size:32,svgIconName:"toolbar/fullscreen_exit",toolTipName:I18N.PreferenceBar.exit_full_screen_mode,toolTipDistance:8,onClick:this.handleExitFullScreenMode})]})}}const xW=(0,k.Mz)([we.r,Ff.bc,re.X_,re.Ur,re.z$,P.sI,Y.MM,re.K$,re.HW],(e,t,n,r,s,c,d,p,g)=>{const{isEditingProjectMain:y,isEditingCombo:w}=e,_=!y;return{isExportMenuShow:t,isShowPreview:y||w,isDisabledExport:_,isShowExport:y,isDisabledSharing:_,isShowSharing:y,scale:n,isDisabledLunchCombo:w&&!r,currentSharingInReadOnly:s,commentMode:c,previewViewMode:d,isShowAvatarMenu:!!(p&&g)}}),bW=(0,a.Ng)(e=>xW(e))(vW);var N9=i(97644);const i6=(0,E.AH)(["display:flex;align-items:center;height:100%;"]),CW=E.Ay.div.withConfig({displayName:"styles__StyledToolbar",componentId:"sc-1bwimj5-0"})(["position:relative;height:","px;padding:0 8px;background:",";display:flex;justify-content:space-between;box-shadow:0 1px 0 ",";z-index:107;opacity:1;pointer-events:auto;transition:all 0.3s ease-in-out;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.back-icon{.svg-icon{width:24px;height:24px;}&.exit-combo .svg-icon{width:30px;height:30px;}}.toolbar-menu{width:16px;height:14px;}.toolbar-text,.toolbar-rectangle,.toolbar-circle,.toolbar-linkarea,.toolbar-line,.toolbar-image,.toolbar-org_members,.toolbar-version_record,.toolbar-download,.toolbar-preview,.toolbar-note,.toolbar-rResCanvas,.toolbar-annotate{width:32px;height:32px;}.toolbar-comment{[stroke]{stroke:currentColor;fill:none;}}.toolbar-widget_align_center,.toolbar-layer,.toolbar-group,.toolbar-ungroup,.toolbar-lock,.toolbar-un-lock{width:24px;height:24px;}.common-triangle-filled-down{width:8px;height:5px;}.toolbar-triangle-down{width:7px;height:4px;}.svg-icon{color:",";}.toolbar-left{min-width:466px;width:466px;",";&.isEmbed,&.isCommunity,&.isHtmlZip{.modao-logo{margin-right:13px}}&.isEmbed,&.isCommunity{.modao-logo{cursor:default;}}&.is-only-view{min-width:510px;width:510px;}.toolbar-icon-item:not(.back-icon):not(.undoIcon):not(.redoIcon){width:38px;}.logo{display:flex;align-items:center;cursor:pointer;.toolbar-logo-icon{width:24px;height:24px;margin:4px 12px;path{fill:",";}}}.modao-logo{height:32px;margin-right:10px;}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-right:10px;}}.toolbar-left,.toolbar-center{.toolbar-menu-div{display:flex;align-items:center;.toolbar-menu-opener-notice{display:inline-block;width:6px;height:6px;background:#1684fc;border-radius:50%;top:4px;right:0;border:none;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}.widget-box{display:flex;align-items:center;}.prd-box{display:flex;a{cursor:pointer;}.toolbar-icon-item{margin-right:8px;}}.shape-list-box{width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;margin-right:8px;.shapeContainer{width:32px;height:32px;position:relative;.svg-icon{width:100%;}.toolbar-shape{&.toolbar-note,&.toolbar-annotate,&.toolbar-elbow,&.toolbar-vector{width:32px;height:32px;}}.circle{width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;position:absolute;top:2px;right:0;}}.shape-list-dropdown{height:100%;display:flex;align-items:center;.Tooltip{height:100%;}.shape-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&:hover:active{background:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled).active,&:has(.shape-list-dropdown.is-open){background-color:",";.shape-list-dropdown.is-open{background-color:unset;}}}.toolbar-menu-box{display:flex;align-items:center;border-radius:4px;margin-right:12px;.back-icon,.toolbar-menu-opener{svg{width:32px;height:32px;}&:hover:not(.disabled):not(.active){background:",";}&:hover:not(.disabled):active{background:",";}}.divider{width:1px;height:16px;height:0;margin:0 7px;background:",";}.toolbar-left-dropdown-menu.is-open{.toolbar-menu-opener:not(.disabled):not(.active){background:",";}}&.page{width:38px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:0;.material-icon{width:38px;height:32px;flex:0 0 32px;.svg-icon{width:38px;height:32px;}}.shape-list-dropdown{width:100%;height:100%;display:flex;align-items:center;margin-right:9px;.toolbar-dropDown{width:7px;height:4px;}&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&.disabled{pointer-events:none;cursor:not-allowed;opacity:0.4;}}}.comment,.handMode{width:38px;height:32px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;}}.undoIcon,.redoIcon{.svg-icon{width:32px;height:32px;}}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;cursor:auto;}}.toolbar-center{",";flex:1;justify-content:center;max-width:calc(100% - 596px);min-width:334px;.toolbar_center_dropdown{.toolbar-icon-item{width:48px;}&.is-open{background-color:unset;.toolbar-icon-item{background-color:"," !important;}}}.toolbar-icon-item{width:32px;margin-right:10px;}.group-button,.lock-button{min-width:32px;&.active{background-color:"," !important;}}}.toolbar-right{min-width:466px;",";justify-content:flex-end;.missing-font{width:38px;display:flex;justify-content:center;border-radius:6px;&:hover{background-color:",";cursor:pointer;}&.active{background-color:",";}}&.toolbar-right-abar-import{padding-right:78px;}.backToOldVersion{margin-right:30px;text-decoration:underline;color:#1684fc;&:hover{color:#1169c9;}}#design-export{position:relative;.export-screen-btn svg{width:32px;}}.toolbar-icon-item{width:32px;}.design-zoom-box-container{.toolbar-right-zoom{width:72px;}}#sharing-box{margin-right:12px;.share-box{display:flex;align-items:center;height:32px;padding:0 16px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;&:hover:not(.disabled){background:",";}&:active:not(.disabled){background:",";}&.isNotLogined{background:transparent;color:",";border:1px solid ",";margin:0;color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}&.disabled{cursor:not-allowed;background:",";color:",";.svg-icon{color:",";}}}.share-box.show-animation{",";}}.zoom{display:flex;align-items:center;border:1px solid #E5E5E5;border-radius:3px;}}&:hover{.svg-icon{.fore{color:",";}}}&.isDeleteRulerLine{pointer-events:none;}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{min-width:calc(50% - 75px);}}}"],ic.E0,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,i6,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,i6,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,i6,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,N9.e,e=>e.theme.color_primary_brand01),wW=(0,E.DU)(["#IBOT_TOOLTIP_ROOT{.toolbar-modao-logo-tips{transform:translate(-40%,10%);> .arrow{left:40%;}}}"]);class SW extends l.PureComponent{render(){const{designOptions:t,rootProject:n,isShowExitCombo:r,screenMeta:s,isDeleteRulerLine:c,onlyView:d,isCommunityPreview:p,isEmbedV2Preview:g,isHtmlZipPreview:y,fullScreenMode:w,importAbarOptions:_,currentSharingInReadOnly:j}=this.props,N=d&&(j==null?void 0:j.comment_permission)==="off";return(0,o.jsxs)(CW,{id:"mb-toolbar","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,className:m()(Or.c.GUIDE_TOOLBAR_COMMON,Or.c.GUIDE_NOVICE_2309,{isDeleteRulerLine:c,isEmbedV2:g,isEmbedV2NotFull:g&&!w}),children:[(0,o.jsx)(NV,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:g,isHtmlZipPreview:y,isShowExitCombo:r,designOptions:t,rootProject:n,screenMeta:s,fullScreenMode:w,isDisabledComment:N,importAbarOptions:_}),(0,o.jsx)(fz,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:g,rootProjectName:n==null?void 0:n.name,rootProject:n,isShowExitCombo:r,screenMeta:s,importAbarOptions:_,isHtmlZipPreview:y,fullScreenMode:w,isDisabledComment:N}),(0,o.jsx)(bW,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:g,isHtmlZipPreview:y,rootProject:n,fullScreenMode:w,isShowExitCombo:r,importAbarOptions:_}),(0,o.jsx)(wW,{})]})}}const AW=(0,k.Mz)([we.r,re.PL,re.W4,re.Ur,M.Q,Y.jx,Y.pH,Y.rg,Y.uu,Y.T7,re.YT,re.fv,re.z$],(e,t,n,r,s,c,d,p,g,y,w,_,j)=>{const{isDesign:N}=n,{isEditingCombo:Z}=e,Q=Z&&N,se=c===Te.qi.OnlyView;return{screenMeta:r,rootProject:t,designOptions:n,isShowExitCombo:Q,isDeleteRulerLine:s,onlyView:se,isCommunityPreview:d,isEmbedV2Preview:p,isHtmlZipPreview:g,fullScreenMode:y,projectMeta:w,importAbarOptions:_,currentSharingInReadOnly:j}}),MW=(0,a.Ng)(e=>AW(e))(SW);var kW=i(40191),EW=i(20315),j9=i(66195),s6=i(89208),IW=i(27306),D9=i(24094),l6=i(61924),TW=i(99378),_W=i(40497),PW=i(17654),LW=i(54894),NW=i(10999),jW=i(97919),DW=i(87606),N4=i(40486);const OW=e=>{let{initPos:t}=e;const{editingInteraction2:n,currentCanvas:r,selectInteractionKey:s,itemKey:c,interactionTree:d,selectItaInfo:p,selectTreeNode:g,interactionStore:y,selectTreeNode2:w}=(0,l6.Cl)({from:"treePanelRight"}),_=y==null?void 0:y.query.getNode(s),{position:j,setPosition:N}=(0,NW.J)(t),Z=(0,a.d4)(Jn.R7.query.getEditorFloatOpenFrom),Q=(0,l.useRef)(),se=(0,a.wA)(),ie=(0,l.useRef)(null),he=(De,Je)=>{N({left:De,top:Je})};(0,l.useEffect)(()=>()=>{Z!=="itaConnector"&&Jn.R7.dispatchState({editorFloatPosition:{top:Jn.iA,left:Jn.iA}},se)},[]),(0,l.useLayoutEffect)(()=>{const De=ie.current!==t;if(ie.current=t,Z==="alignTop")return;const Je=document.getElementById("tree-editor-float");if(!Je)return;if(De){if(ie.current=t,Z==="itaConnector")return;setTimeout(()=>{const _t=document.querySelector('#interaction-tree-list [data-key="'+s+'"]'),gt=_t?_t.getBoundingClientRect().top:t.top,Ct=_t?_t.getBoundingClientRect().left:t.left,{height:zt}=Je.getBoundingClientRect(),{finalTop:Dt,finalLeft:sn}=(0,N4.X2)({top:gt,left:Ct-Jn.mJ,height:zt});N({left:sn,top:Dt})},20);return}const{height:Ne}=Je.getBoundingClientRect(),{finalTop:pt}=(0,N4.X2)({top:j.top,left:j.left,height:Ne});N({left:j.left,top:pt})},[t,_]),(0,l.useEffect)(()=>{(!d||p.type==="empty"||p.type==="normal"&&!n)&&setTimeout(()=>{Jn.R7.dispatchState({newInteractionTypeEditingKey:"",newTriggerNodeEditingKey:"",newTriggerNodeShowKey:""},se)},4)},[se,n,d,p.type]),(0,Bg.wo)(Q,"$body");const xe=()=>{se(Jn.R7.command.clearAllCommand({withClearCellLinks:!0}))},Se=De=>{var Je,Ne,pt,_t,gt,Ct,zt,Dt,sn,Rn,On,Lo;if(!((Je=(Ne=De.target).closest)!=null&&Je.call(Ne,".bar-vertical")||(pt=(_t=De.target).closest)!=null&&pt.call(_t,".bar-horizontal"))){if(document.querySelector("#expression-editor")&&!((gt=(Ct=De.target).closest)!=null&&gt.call(Ct,"#canvas .tree-node"))&&!((zt=(Dt=De.target).closest)!=null&&zt.call(Dt,"#interaction-tree-container"))){De.stopPropagation();return}if(document.querySelector(".wAttr-select-panel")){De.stopPropagation();return}(sn=(Rn=De.target).closest)!=null&&sn.call(Rn,"#mb-toolbar")&&se(Jn.R7.command.clearAllCommand({})),(On=(Lo=De.target).closest)!=null&&On.call(Lo,"#screens")&&!De.target.closest("#canvas .tree-node:not(.rResCanvas)")&&!De.target.closest("#overlay-rel-pos-ctrl")&&!De.target.closest("#scroll-to-offset-guidelines")&&(document.querySelector(".var-dropmenu")||se(Jn.R7.command.clearAllCommand({})),De.stopPropagation())}},_e=()=>{if(!Q.current||!Q.current.$body)return;const{top:De,height:Je}=Q.current.$body.getBoundingClientRect();De+Je>window.innerHeight&&N({...j,top:window.innerHeight-Je-12})};return!d||p.type==="empty"||p.type==="normal"&&!n?null:(0,o.jsx)(dr.A,{position:{left:j.left,top:j.top},onMove:he,ref:Q,children:(0,o.jsxs)(D9.$s,{id:"tree-editor-float",className:Or.c.GUIDE_PAGE_CREAT_LINK2,children:[(0,o.jsx)(DW.C,{uiFrom:"treePanelRight",hasTrash:p.type!=="action",interactionStore:y,selectTreeNode:g,isClearAll:!0,onClose:xe}),p.type==="normal"?(0,o.jsx)(LW.A,{link:n,currentCanvas:r,currentWidgetKey:c,interactionTree:d,interactionStore:y,hasTrash:!1,selectTreeNode:g,adaptTopPosition:_e}):(0,o.jsx)(jW.S,{itemKey:c,interactionDummyKey:s,selectItaInfo:p,interactionTree:d,interactionStore:y,selectNode2:w,uiFrom:"treePanelRight"}),(0,o.jsx)(Jr.A,{target:document,onMouseDown:(0,Jr.t)(Se,{capture:!0})})]})})},RW=()=>{const e=(0,a.d4)(Jn.R7.query.getIsEditorFloatOpen),t=(0,a.d4)(Jn.R7.query.getEditorFloatPosition);return e?(0,ds.createPortal)((0,o.jsx)(o.Fragment,{children:(0,o.jsx)(OW,{initPos:t})}),document.body):null};var BW=i(19969),UW=i(83485);const FW=()=>{const e=(0,a.wA)(),t=(0,l.useRef)(!1),n="treePanelRight",{interactionTree:r,itemKey:s,isEditingCombo:c,editingPanelRefPage:d,selectInteractionKey:p,disableType:g,isGlobalLink:y,interactionStore:w}=(0,l6._C)({from:n});(0,a.d4)(BW.wN);const{collapseList:_,handleCollapse:j}=(0,l6.zi)({cacheKey:s,interactionTree:r}),N=(0,l.useCallback)((se,ie)=>{ie?(e(Jn.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:ie.attr.interactionType})),(0,N4.Es)(ie.attr.key)&&(0,UW.X)()):e(Jn.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0}))},[e]);(0,l.useEffect)(()=>{p&&(0,N4._6)({itaKey:p})},[]);const Z=se=>{if(!se.target)return;if(se.target.closest("#interaction-tree-list")===se.target){e(Jn.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}));return}if(!(se.target.closest("#interaction-tree-list")||se.target.closest("#interaction-panel-float")||se.target.closest(".SelectMenuPortal")||se.target.closest(".DropdownMenuPortal")||se.target.closest(".context-menu-mask")||se.target.closest("#tree-editor-float")||se.target.closest(".quickCreateItaBtn")||se.target.closest(".setting-panel-header")||se.target.closest(".wAttr-select-panel"))){if(t.current){t.current=!1;return}e(Jn.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}))}},Q=se=>{document.querySelector("#expression-editor")&&(t.current=!0)};return(0,o.jsxs)(D9.LY,{onMouseDown:Q,onClick:Z,className:m()("link-settings",Or.c.GUIDE_PAGE_CREAT_LINK),children:[(0,o.jsx)(_W.m,{disabled:g!=="none",showPreference:!y,buttonType:y?"global":"common",uiFrom:n,handleCollapse:j,interactionTree:r,interactionStore:w,itemKey:s}),g!=="none"?(0,o.jsx)(PW.q,{disableType:g}):(w==null?void 0:w.type)!=="defaultData"?(0,o.jsx)(TW.L,{currentWidgetKey:s,interactionTree:r,selectInteractionKey:p,editingPanelRefPage:d,extraClick:N,uiFrom:n,collapseList:_,handleCollapse:j,interactionStore:w,isEditingCombo:c}):(0,o.jsx)(IW.U,{isEditingCombo:c,openEditorFloat:!0,uiFrom:n,interactionStore:w}),g==="none"&&r&&(0,o.jsx)(RW,{})]})};var j4=i(4649),VW=i(19295);const zW=E.Ay.div.withConfig({displayName:"styles__StyledVarSetting",componentId:"sc-qqvf44-0"})(["position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:40px;.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.var-list .empty-box{min-height:90px;img{display:none;}}"]),WW=E.Ay.div.withConfig({displayName:"styles__StyleHeader",componentId:"sc-qqvf44-1"})([" width:100%;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";&:not(.show-search){padding:0 9px 0 16px;cursor:grab;}.container{display:flex;align-items:center;justify-content:space-between;flex:1;.left .title{font-size:12px;font-weight:600;font-style:normal;color:",";}.right{display:flex;align-items:center;.add-var-opener{margin-left:4px;}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1),HW=(0,E.Ay)(He.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-qqvf44-2"})(["&.var-context-menu ul{min-width:160px;padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;padding-left:8px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}.mutiple-selection{color:",";border-bottom:1px solid ",";white-space:nowrap;line-height:24px;padding-bottom:4px;margin-bottom:4px;padding-left:8px;}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_white,e=>e.theme.color_text_L0,e=>e.theme.color_text_L0,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01),GW=e=>{let{searchKeyword:t,showSearchIcon:n,setSearchKeyword:r,onAddVar:s,onMouseDown:c,onShowSearch:d}=e;const[p,g]=(0,l.useState)(!1),y=m()({"show-search":p}),w=N=>{N.stopPropagation(),r(""),g(!1)},_=(0,Bg.qK)(()=>{g(!0),d==null||d()}),j=N=>{N.target.closest(".container > .right")||p||c==null||c(N)};return(0,o.jsx)(WW,{className:y,onMouseDown:j,children:p?(0,o.jsx)(VW.A,{keyword:t,placeholder:I18N.Variable.search.placeholder,onChangeKeyword:r,onExitSearch:w}):(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)("div",{className:"left",children:(0,o.jsx)("span",{className:"title",children:I18N.Variable.title})}),(0,o.jsxs)("div",{className:"right",children:[n&&(0,o.jsx)(pc.A,{name:"common/search",onClick:_}),(0,o.jsx)(zm.Tl,{onAddVar:s})]})]})})},ZW=async e=>{const t=await(0,Lt.ZO)({isShowPrompt:!0})||[],n=(0,td.pU)();let r=e&&n.findIndex(c=>c.key===e.key)+1||n.length;r===0&&(r=1);const s=n.map(c=>c.hotAttr.name);if(t.length){const c=t.map((d,p)=>{const g=(0,Y1.hX)(s,d.name),y={key:(0,j4.dU)(),hotAttr:(0,j4.mn)({name:g,zIndex:r+p,varDataType:d.varDataType,varData:d.varData,description:"",varType:"variable"}),sub:[],sup:mr.fu};return s.push(g),y});return n.splice(r,0,...c),sdkStore.updateHotItemBatch(n),(0,td.E4)("",n),c}},Yf={single:"single",range:"range",multiple:"multiple"},KW=e=>e!=null&&e.shiftKey?Yf.range:e!=null&&e.metaKey||e!=null&&e.ctrlKey?Yf.multiple:Yf.single;var D4=i(50060);const Xf=280,c6=40,d6=new Map,O9=(e,t)=>MB.global.popupHelper.confirmAsync({isHTML:!0,title:I18N.Variable.delete.title,desc:I18N.Variable.delete[e?"desc_used":"desc_noused"],theme:t}),R9=(e,t)=>{const n=e.reduce((s,c)=>((0,D4.GO)(c,D4.zN.interactions).forEach(d=>s.add(d)),s),new Set),r=[];n.forEach(s=>{const c=sdkStore.getHotItem(s);c&&r.push({key:s,hotAttr:{interactions:c.hotAttr.interactions.slice(0)}})}),r.length&&(t({type:"entry:widget:change",payload:{flatChgList:r}}),t({type:"entry:refresh:link-list"}))},B9=e=>{var t;let{containerHeight:n=0,showEmptyTtext:r=!0}=e;const s=(0,a.wA)(),c=(0,a.d4)(Wc.ue),d=(0,a.d4)(q.O4),p=(0,l.useRef)(null),g=(0,l.useRef)(null),y=(0,l.useRef)(null),w=(0,l.useRef)(),_=Math.max(n-220,Xf),j=(t=(0,a.d4)(Oe.p$))==null?void 0:t[0],[N,Z]=(0,l.useState)(d6.get(j)||Xf),[Q,se]=(0,l.useState)(""),[ie,he]=(0,l.useState)([]),[xe,Se]=(0,l.useState)(null),[_e,De]=(0,l.useState)(null),Je=_e==null?void 0:_e.item,Ne=Je&&c.find($o=>$o.key===Je.key);Je&&Je!==Ne&&De(Ne?{..._e,item:Ne}:null);const pt=(0,l.useMemo)(()=>xe!=null&&xe.trigger?[{label:I18N.ToolBarNext.copy,command:"copy"},{label:I18N.ToolBarNext.paste,command:"paste",disabled:!(0,Lt.pU)()},{label:I18N.ToolBarNext.delete,command:"delete"}]:[{label:I18N.ToolBarNext.paste,command:"paste",disabled:!(0,Lt.pU)()}],[xe==null?void 0:xe.trigger]),_t=(0,l.useMemo)(()=>{const $o=c.sort((da,nr)=>da.hotAttr.zIndex-nr.hotAttr.zIndex);if(!Q)return $o;const sa=Q.toLowerCase();return $o.filter(da=>da.hotAttr.name.toLowerCase().includes(sa)||String(da.hotAttr.varData).includes(sa))},[c,Q]),gt=(0,l.useCallback)(()=>{s({type:"settings:update:varList",payload:{varList:(0,td.pU)()}})},[s]);(0,l.useEffect)(()=>{if(j){const $o=d6.get(j);Z($o||Xf)}},[j,Z]),(0,l.useEffect)(()=>(zt(),()=>{hn()}),[]),(0,l.useEffect)(()=>{var $o;($o=y.current)==null||$o.call(y,c)},[c]);const Ct=($o,sa)=>{$o>_&&($o=_),$o<c6&&($o=c6),Z($o),sa&&j&&d6.set(j,$o)},zt=()=>{p!=null&&p.current&&Ct(p.current.clientHeight)},Dt=()=>{Ct(p.current.clientHeight,!0)},sn=()=>{N<80&&Ct(Xf,!0)},Rn=($o,sa)=>{var da;const nr=c.map(hi=>hi.hotAttr.name),cr=(0,Y1.hX)(nr,sa==null?void 0:sa.name),Vr=(da=sa==null?void 0:sa.varData)!=null?da:(0,Y1.D5)($o),yr={key:(0,j4.dU)(),hotAttr:(0,j4.mn)({name:cr,zIndex:0,varDataType:$o,varData:Vr,description:"",varType:"variable"}),sub:[],sup:mr.fu};sdkStore.combineMergeMark("add-items"),w.current="add-items";const pi=(0,td.pU)();(0,td.E4)("",[yr,...pi]),gt(),N<80&&Ct(Xf,!0),y.current=hi=>{y.current=null;const Hi=hi.find(Kr=>Kr.key===yr.key);Hi&&(he([Hi.key]),De({item:Hi,autoFocusArea:"varName",position:(0,Y1.iL)(Hi,p.current)}))}},On=($o,sa)=>{const da=sdkStore.getHotItem($o);if(!da||da.hotAttr.name!==sa.name||da.hotAttr.varData!==sa.varData){if(sdkStore.combineMergeMark("update-vardata"),sdkStore.updateHotAttrMerge($o,sa),da&&typeof sa.varData<"u"&&sa.varData!==da.hotAttr.varData){const cr=(0,td.z1)(da.key);cr!=null&&cr.length&&s({type:"entry:widget:change",payload:{flatChgList:cr}})}gt(),sdkStore.combineMerge("update-vardata")}},Lo=async()=>{if(!_e)return;const $o=_e.item.key,sa=(0,D4.Sc)($o);if(await O9(sa,d)){if(w.current&&(sdkStore.combineMerge(w.current),w.current=""),sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItem($o),sa){const nr=(0,td.p8)(_e.item);sdkStore.updateHotItem(nr),R9([$o],s)}(0,td.E4)("delete-items"),gt(),hn()}},Yo=($o,sa,da)=>{const nr=KW(sa),cr=ie.includes($o.key);if(ie.length){if(nr===Yf.range){const Vr=_t.findIndex(hi=>hi.key===$o.key);let yr=-1,pi=1/0;if(ie.forEach(hi=>{const Hi=_t.findIndex(Gi=>Gi.key===hi),Kr=Math.abs(Hi-Vr);Kr<pi&&(pi=Kr,yr=Hi)}),yr!==-1){const[hi,Hi]=yr<Vr?[yr,Vr]:[Vr,yr];_t.slice(hi,Hi+1).forEach(Kr=>{ie.includes(Kr.key)||ie.push(Kr.key)}),he(ie.slice()),De(null)}return}if(nr===Yf.multiple){he(cr?ie.filter(Vr=>Vr!==$o.key):[...ie,$o.key]),De(null);return}if(cr){he([]),De(null);return}}he([$o.key]),De({item:$o,position:(0,Y1.iL)($o,p.current),autoFocusArea:da})},Cn=($o,sa)=>{ie.includes($o.key)&&_e?De({..._e,autoFocusArea:sa}):(he([$o.key]),De({item:$o,position:(0,Y1.iL)($o,p.current),autoFocusArea:sa}))},hn=()=>{De(null),he([]),w.current&&(sdkStore.combineMerge(w.current),w.current="")},oa=$o=>{(0,td.E4)("sort-items",$o),gt(),De(null)},Ao=()=>{he([])},ca=$o=>{if(g.current){g.current.handleDown($o),g.current.setState({active:!1});const sa=document.body.querySelector(".body-ns-resize");sa&&(sa.style.pointerEvents="none")}},va=($o,sa)=>{const da={top:sa.clientY,left:sa.clientX};Se({position:da,trigger:$o}),(!$o||!ie.includes($o.key))&&hn()},ra=(0,l.useCallback)(async $o=>{const sa=ie.slice();$o!=null&&$o.key&&!ie.includes($o.key)&&sa.push($o.key);const da=sa.filter(cr=>(0,D4.Sc)(cr));if(await O9(da.length>0,d)){if(sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItemBatch(sa),da.length){const cr=da.map(Vr=>(0,td.p8)(sdkStore.getHotItem(Vr)));sdkStore.updateHotItemBatch(cr),R9(da,s)}(0,td.E4)("delete-items"),hn(),gt()}},[s,gt,d,ie]);(0,l.useEffect)(()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteVarNodeCallback:()=>ie.length===0?!1:(ra(),!0)}})},[ra,ie.length]),(0,l.useEffect)(()=>()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteVarNodeCallback:void 0}})},[]);const Jo=async $o=>{const{trigger:sa}=xe;if($o==="copy"){const da=ie.length?ie:sa!=null&&sa.key?[sa==null?void 0:sa.key]:[];if(!da.length)return;const nr=da.map(cr=>{const{hotAttr:{name:Vr,varDataType:yr,varData:pi}}=sdkStore.getHotItem(cr);return{name:Vr,varDataType:yr,varData:pi}});await(0,Lt.p8)(nr);return}if($o==="paste"){w.current="paste-items",sdkStore.combineMergeMark(w.current);const da=await ZW(sa);da&&(gt(),y.current=nr=>{y.current=null;const cr=da.map(yr=>yr.key);if(cr.length===1){he(cr);const yr=nr.find(pi=>pi.key===cr[0]);yr&&De({item:yr,autoFocusArea:"varName",position:(0,Y1.iL)(yr,p.current)})}else{var Vr;he([]);const yr=da[cr.length-1].key,pi=(Vr=p.current)==null?void 0:Vr.querySelector('.var-list .var-item[data-cid="'+yr+'"]');pi==null||pi.scrollIntoView(!1);const hi=[];cr.forEach(Hi=>{var Kr;const Gi=(Kr=p.current)==null?void 0:Kr.querySelector('.var-list .var-item[data-cid="'+Hi+'"]');Gi&&(Gi.classList.add("highlight"),hi.push(Gi))}),setTimeout(()=>{hi.forEach(Hi=>Hi==null?void 0:Hi.classList.remove("highlight"))},1e3),sdkStore.combineMerge(w.current),w.current=""}});return}$o==="delete"&&ra(sa)};return(0,o.jsxs)(zW,{style:{flexBasis:N},ref:p,children:[(0,o.jsx)(ni.A,{placement:"top",value:N,min:c6,max:_,onResizeStart:zt,onResizeEnd:Dt,onChange:Ct,ref:g}),(0,o.jsx)(GW,{onAddVar:Rn,showSearchIcon:!!(_t!=null&&_t.length),searchKeyword:Q,setSearchKeyword:se,onMouseDown:ca,onShowSearch:sn}),(0,o.jsx)(zm.CB,{list:_t,showEmptyTtext:r,onClick:Yo,onDoubleClick:Cn,selection:ie,contextTrigger:xe==null?void 0:xe.trigger,onSorted:Q?void 0:oa,onContextMenu:va,onClickOutside:Ao}),_e&&(0,o.jsx)(zm.Hk,{editorItem:_e.item,position:_e.position,onClose:hn,onDelete:Lo,onChange:On,autoFocus:_e.autoFocusArea}),xe&&(0,o.jsx)(HW,{className:"var-context-menu",position:xe.position,onClose:()=>Se(null),children:(0,o.jsxs)(o.Fragment,{children:[ie.length>1&&(0,o.jsx)("li",{className:"mutiple-selection",children:I18N.Variable.context.selection.replace("{n}",ie.length)}),pt.map($o=>(0,o.jsx)(He.Dr,{text:$o.label,disabled:$o.disabled,onClick:()=>Jo($o.command)},$o.command))]})})]})};var YW=i(49291),XW=i(51320),QW=i(11582);function JW(e){let{device:t,deviceKey:n,width:r,height:s}=e;const c=(0,a.wA)(),d=(0,a.d4)(re.Ur),p=(0,a.d4)(re.wq),g=()=>{const y=(0,$u.X0)(d,{width:r,height:s,device:n}),w={...p,...y};c({type:"entry:batch:create:items:position",payload:{finalWidget:w}}),c({type:"set:quick-create-widget",payload:{widget:null}}),(0,Di.s9)({page:{device:n}})};return(0,o.jsxs)(qW,{onClick:g,children:[(0,o.jsx)("span",{className:"deviceName",children:(0,P0.d0)({model:n,device:t,isPageSize:!0})}),(0,o.jsxs)("span",{className:"deviceSize",children:[r," \xD7 ",s]})]})}const qW=E.Ay.div.withConfig({displayName:"SizeItem__StyledSizeItem",componentId:"sc-yydgop-0"})(["width:100%;padding:6px 16px 6px 32px;line-height:20px;display:flex;justify-content:space-between;cursor:pointer;.deviceName{color:",";}.deviceSize{color:",";white-space:nowrap;display:flex;align-items:center;}&:hover{background:",";}&:first-child{margin-top:8px;}&:last-child{margin-bottom:8px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover),$W=E.Ay.div.withConfig({displayName:"CanvasSizeSelect__StyledCanvasSizeSelect",componentId:"sc-1ph3hpr-0"})([".collapse-panel-wrapper{&:not(:first-child){margin-top:2px;border-top:1px solid ",";}.collapse-panel{header{height:24px;&:hover{background:none;}}&:not(.expanded) header{margin:4px 0;}&.expanded header{margin-top:4px;}div.title{font-weight:500;margin-left:6px;}}}"],e=>e.theme.color_bg_border_02),eH=(0,l.memo)(e=>{var t;let{defaultDevice:n}=e;const[r,s]=(0,l.useState)(n!=="none"&&((t=P0.v2[n])==null?void 0:t.device)||"iphone"),c=d=>()=>{s(r===d?"":d)};return(0,o.jsx)($W,{children:P0.a$.map((d,p)=>{let{device:g,modelList:y}=d;const w=r===g;return(0,o.jsx)("div",{className:"collapse-panel-wrapper",children:(0,o.jsx)(QW.A,{id:p+"1",title:(0,P0.KB)({device:g}),width:250,expanded:w,onToggle:c(g),children:y.map((_,j)=>{let{width:N,height:Z,key:Q}=_;return(0,o.jsx)(JW,{device:g,deviceKey:Q,width:N,height:Z},j)})},p)},"collapse-panel-wrapper-"+p)})})});var tH=i(15170);const nH=E.Ay.div.withConfig({displayName:"styles__StyledExportButton",componentId:"sc-tr7jxo-0"})(["width:100%;height:40px;background:",";padding:0 10px;display:flex;justify-content:flex-end;align-items:center;z-index:1;border-top:1px solid ",";.button-root{width:100%;}.svg-icon.btn-loading{animation:spinning 2s linear infinite;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01),oH=(0,l.memo)(e=>{const{dispatch:t}=e,n=()=>{MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:toolbar:open:export_menu"})};return(0,o.jsx)(nH,{children:(0,o.jsx)(Fl.lV,{className:"export-screen-btn2",onClick:n,children:I18N.SettingPanel.export})})});var aH=i(86750),p6=i(71190);class rH extends l.PureComponent{render(){const{updateHeight:t,updateWidth:n,selectNewModel:r,updateOrientation:s,deviceType:c,deviceWidth:d,deviceHeight:p,orientation:g}=this.props,y=d==="\u591A\u4E2A\u503C",w=p==="\u591A\u4E2A\u503C";return(0,o.jsxs)(iH,{title:I18N.ScreenPanel.prototype_presentation,children:[(0,o.jsxs)("div",{className:"screen-info height-32",children:[(0,o.jsx)(aH.A,{model:c,renderList:P0.X6,onSelect:r}),(0,o.jsx)("div",{className:"placeholder"}),(0,P0.$n)(c)&&c!=="\u591A\u4E2A\u503C"&&(0,o.jsxs)("section",{className:m()("orientation-body"),children:[(0,o.jsx)(yd.A,{content:I18N.SettingPanel.portrait,children:(0,o.jsx)("div",{className:m()("orientation-option",{active:g==="portrait"}),onClick:()=>{s({deviceOrientation:"portrait"})},children:(0,o.jsx)(Et.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,o.jsx)(yd.A,{content:I18N.SettingPanel.landscape,children:(0,o.jsx)("div",{className:m()("orientation-option",{active:g==="landscape"}),onClick:()=>{s({deviceOrientation:"landscape"})},children:(0,o.jsx)(Et.C,{className:"icon",name:"setting_panel/screen/screen_landscape"})})})]})]}),c==="customize"&&(0,o.jsxs)("div",{className:"general-line height-32",children:[(0,o.jsx)(xh.A,{className:"general-input screen-width-edit step-input-width-72",title:"W",attr:"width",value:y?void 0:d,disabled:!1,min:1,max:99999,isNotVerify:y,placeholder:"\u591A\u4E2A\u503C",onConfirm:n}),(0,o.jsx)(xh.A,{className:"general-input screen-height-edit step-input-width-72",title:"H",attr:"height",value:w?void 0:p,disabled:!1,min:1,max:99999,isNotVerify:w,placeholder:"\u591A\u4E2A\u503C",onConfirm:t})]})]})}}const iH=(0,E.Ay)(p6.A).withConfig({displayName:"indexui__StyledDeviceSettings",componentId:"sc-1lyankb-0"})(["",";.screen-info{display:flex;align-items:center;padding:0 10px;}.placeholder{flex:1}.orientation-body{display:flex;flex-direction:row;justify-content:flex-start;margin-left:10px;.orientation-option{cursor:pointer;width:24px;height:24px;border-radius:4px;&:not(.active):hover{background:",";color:",";}&.active{color:",";background:",";}.icon{font-size:24px;margin-right:6px;}.svg-icon{color:",";}&:first-child{margin:0 3px;}}}.general-line{display:flex;align-items:center;padding:0 10px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;&:not(:last-child){margin-right:8px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1A70D8;}}"],pr.L9,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3);var U9=i(51743),O4=i(50521),F9=i(30542),sH=i(40715);const V9=240,z9=e=>{let{position:t,renderOpener:n,onClickOpener:r}=e;const s=(0,a.wA)(),c=y=>s({type:"entry:libStyle:re-build:treeData",payload:{type:y}}),d=()=>{const y={...t,left:t.left-Nn.tA};s({type:"entry:libStyle:open:color:modal",payload:{position:y,onConfirm:()=>c("color")}})},p=()=>{s({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:{...t,left:t.left-Nn.tA-V9},type:"create",attrs:(0,Nn.H$)(),onConfirm:()=>c("text")}}})},g=()=>{s({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:{...t,left:t.left-Nn.tA-V9},type:"create",attrs:Nn.R3,onConfirm:()=>c("appear")}}})};return(0,o.jsx)(lH,{direction:"down",renderOpener:n,renderMenu:(0,o.jsxs)(cH,{position:t,children:[(0,o.jsx)(He.Dr,{text:I18N.libPanel.manage.create_ref.color,icon:(0,o.jsx)(Et.C,{name:"setting_panel/libPanl/color/create",size:16}),size:16,onClick:d}),(0,o.jsx)(He.Dr,{text:I18N.libPanel.manage.create_ref.text,icon:(0,o.jsx)(Et.C,{name:"setting_panel/libPanl/text/create",size:16}),onClick:p}),(0,o.jsx)(He.Dr,{text:I18N.libPanel.manage.create_ref.appear,icon:(0,o.jsx)(Et.C,{name:"setting_panel/libPanl/appear/create",size:16}),onClick:g})]}),onClick:r})},lH=(0,E.Ay)(pm.A).withConfig({displayName:"CreateDropDown__StyledDropDown",componentId:"sc-abkp7x-0"})(["height:24px;"]),cH=(0,E.Ay)(He.Ay).withConfig({displayName:"CreateDropDown__StyledContextMenu",componentId:"sc-abkp7x-1"})(["width:max-content;",";ul{min-width:160px;li{.svg-icon{margin-right:8px;}}}"],pr.ZJ),dH=()=>{const[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)({top:0,left:0}),s=(0,l.useRef)(null),c=d=>{if(t(d),!d)return;const{left:p,bottom:g}=s.current.getBoundingClientRect();r({top:g+6,left:p+23})};return(0,o.jsxs)(pH,{children:[(0,o.jsx)(sH.m,{}),(0,o.jsx)(z9,{position:n,renderOpener:(0,o.jsx)(O4.Q,{icon:(0,o.jsx)(Et.C,{className:m()("add-icon",{active:e}),name:"common/add@24",size:24,ref:s}),content:"\u521B\u5EFA\u6837\u5F0F",direction:"down"}),onClickOpener:c})]})},pH=E.Ay.div.withConfig({displayName:"Header__StyledHeaderRightComponent",componentId:"sc-1l97pr9-0"})(["display:flex;.toolbar-dropdown-opener{width:24px;height:24px;border-radius:4px;color:",";cursor:pointer;display:flex;align-items:center;justify-content:center;&:not(.is-open):hover{background:",";}&.is-open{background:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active);var uH=i(18821),W9=i.n(uH);const hH=e=>{let{refStyleData:t,onActiveKey:n}=e;const r=(0,a.wA)(),s=(0,l.useRef)(null),c=p=>{r({type:"entry:libStyle:re-build:treeData",payload:{type:p}}),n("")},d=p=>{p.stopPropagation();const{hotAttr:g}=t,{left:y,top:w,width:_}=s.current.getBoundingClientRect(),j={top:w-110,left:y-240-Nn.tA+_};if(n(t==null?void 0:t.key),g.styleType==="color"&&r({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:j,type:"edit",color:{fill:"solid",fillIsVisible:!0,solidColor:g.fill},currentKey:t==null?void 0:t.key,title:g==null?void 0:g.name,desc:g==null?void 0:g.desc,onSetRefStyle:()=>{},onColorChange:()=>{},onConfirm:()=>{c("color"),c("appear")},onCancel:()=>n("")}}}),g.styleType==="appear"){const N={borderRadius:g==null?void 0:g.borderRadius,borderRadiusIsVisible:g==null?void 0:g.borderRadiusIsVisible,borderVisibility:g==null?void 0:g.borderVisibility,border:g==null?void 0:g.border,fill:g==null?void 0:g.fill,shadow:g==null?void 0:g.shadow};r({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:j,type:"edit",currentKey:t==null?void 0:t.key,title:g==null?void 0:g.name,desc:g==null?void 0:g.desc,attrs:N,refStyles:g==null?void 0:g.refStyles,onConfirm:()=>c("appear"),onCancel:()=>n("")}}})}if(g.styleType==="text"){const N=W9()(g,Nn.F$);r({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:j,type:"edit",currentKey:t==null?void 0:t.key,title:g==null?void 0:g.name,desc:g==null?void 0:g.desc,attrs:N,refStyles:g==null?void 0:g.refStyles,onConfirm:()=>c("text"),onCancel:()=>n("")}}})}};return(0,o.jsx)(o.Fragment,{children:!t.hotAttr.libKey&&(0,o.jsx)(O4.Q,{icon:(0,o.jsx)(Et.C,{name:"common/edit@24",size:24,ref:s}),className:"edit-icon",content:"\u7F16\u8F91",direction:"down",onClick:d})})};var u6=i(63496);const H9={isOpen:!1,position:{top:0,left:0},refStyle:{}},mH=e=>{var t;return(t=sdkStore.findAllTypeUnder(e,"rResStyle"))==null?void 0:t.length},fH=e=>{let{treeNode:t,onSetActiveKey:n,index:r=0}=e;const s=(0,l.useRef)(null),c=(0,l.useMemo)(()=>{if(t.hotAttr.styleType==="color"){const p={fill:"solid",fillIsVisible:!0,solidColor:t.hotAttr.fill};return p&&(0,Q0.$8)(p,{w:200,h:100})}},[t]),d=(0,l.useMemo)(()=>{if(c)return(0,Q0.TQ)(c)},[c]);return(0,o.jsxs)(yd.A,{content:(0,sd.M)(t.hotAttr,d),direction:"down",delay:500,children:[t.hotAttr.styleType==="text"&&(0,o.jsx)(Uu.c,{textStyle:t}),t.hotAttr.styleType==="color"&&(0,o.jsx)(yu.I,{ref:s,color:c,solidRenderType:"circle",size:16,index:r}),t.hotAttr.styleType==="appear"&&(0,o.jsx)(vu.U,{appearStyle:t,index:r}),(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("div",{className:"title",children:t.hotAttr.name}),t.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[t.hotAttr.fontSize,"/",t.hotAttr.lineHeight]})]}),(0,o.jsx)(hH,{refStyleData:t,onActiveKey:n})]},t.key)},gH=e=>{let{treeNode:t,isEditing:n,onSetIsEditing:r}=e;const s=(0,l.useRef)(null),c=(0,a.wA)(),d=y=>{c({type:"entry:libStyle:re-build:treeData",payload:{type:y}})},p=y=>{y.stopPropagation(),y.preventDefault();const w=t.hotAttr.styleType,{left:_,bottom:j}=s.current.getBoundingClientRect(),N={top:j+Nn.Nc,left:_-Nn.tA};w==="color"&&c({type:"entry:libStyle:open:color:modal",payload:{position:N,onConfirm:()=>d("color"),sup:t.key}}),w==="text"&&c({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:N,type:"create",sup:t.key,attrs:(0,Nn.H$)(),onConfirm:()=>d("text")}}}),w==="appear"&&c({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:N,sup:t.key,type:"create",attrs:Nn.R3,onConfirm:()=>d("appear")}}})},g=async(y,w)=>{w&&y.trim()&&((0,oc.F5)(t.key,y,t.hotAttr.styleType),d(t.hotAttr.styleType)),r(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("div",{className:"folder-expand",children:(0,o.jsx)(Et.C,{name:"common/expand",className:"expand"})}),(0,o.jsx)(Ef.A,{className:"editable-span",isEditing:n,value:t.hotAttr.name,onConfirm:g},t.hotAttr.name)]}),(0,o.jsx)(O4.Q,{icon:(0,o.jsx)(Et.C,{className:"add-icon",name:"common/add@24",size:24,ref:s}),content:""+I18N.SettingPanel.design.create+I18N.libPanel.common[t.hotAttr.styleType]+I18N.libPanel.common.style,direction:"down",onClick:p,className:"create-icon"})]})},G9=e=>{var t;let{treeNode:n,type:r,depth:s,index:c=0,onMouseDown:d,onMouseUp:p}=e;const[g,y]=(0,l.useState)(!1),[w,_]=(0,l.useState)(""),[j,N]=(0,l.useState)(H9),Z=(0,a.d4)(Vl.qF),Q=(0,l.useMemo)(()=>!Z.has(n.key),[Z,n.key]),se=(0,a.wA)(),ie=(Ne,pt)=>{Ne.stopPropagation(),Ne.preventDefault(),N({isOpen:!0,position:{top:Ne.clientY,left:Ne.clientX},refStyle:pt}),_(pt.key)},he=()=>{N(H9),_("")},xe=Ne=>{se({type:"entry:libStyle:re-build:treeData",payload:{type:Ne}}),_("")},Se=()=>{const{refStyle:Ne}=j,{hotAttr:pt}=Ne;if(_(Ne.key),(pt==null?void 0:pt.type)==="rResStyleGroup"){y(!0);return}const _t={...j.position,left:j.position.left-Nn.tA};if(pt.styleType==="color"&&se({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:_t,type:"edit",color:{fill:"solid",fillIsVisible:!0,solidColor:pt.fill},currentKey:Ne==null?void 0:Ne.key,title:pt==null?void 0:pt.name,desc:pt==null?void 0:pt.desc,onSetRefStyle:()=>{},onColorChange:()=>{},onConfirm:()=>xe("color"),onCancel:()=>_("")}}}),pt.styleType==="appear"){const gt={borderRadius:pt==null?void 0:pt.borderRadius,borderVisibility:pt==null?void 0:pt.borderVisibility,borderRadiusIsVisible:pt==null?void 0:pt.borderRadiusIsVisible,border:pt==null?void 0:pt.border,fill:pt==null?void 0:pt.fill,shadow:pt==null?void 0:pt.shadow};se({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:_t,type:"edit",currentKey:Ne==null?void 0:Ne.key,title:pt==null?void 0:pt.name,desc:pt==null?void 0:pt.desc,attrs:gt,onConfirm:()=>xe("appear"),onCancel:()=>_("")}}})}if(pt.styleType==="text"){const gt=W9()(pt,Nn.F$);se({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:_t,type:"edit",currentKey:Ne==null?void 0:Ne.key,title:pt==null?void 0:pt.name,desc:pt==null?void 0:pt.desc,attrs:gt,onConfirm:()=>xe("text"),onCancel:()=>_("")}}})}},_e=()=>{var Ne;const{refStyle:pt}=j;_("");const _t=sdkStore.getHotItem(pt.sup);_t&&_t.hotAttr.type==="rResStyleGroup"&&_t.sub.length===1&&_t.sub[0]===pt.key&&sdkStore.deleteHotItem(_t.key),pt.key&&sdkStore.deleteHotItem(pt.key),xe(pt.hotAttr.styleType),Vc.U4.protoStyleTrack((Ne=MB)==null||(Ne=Ne.user)==null?void 0:Ne.id,"\u5220\u9664",pt.hotAttr.styleType)},De=(Ne,pt)=>{pt.hotAttr.type==="rResStyleGroup"&&se({type:"style-lib:update:collapseGroupKeySet",payload:{key:pt.key}})},Je=()=>{const Ne="\u672A\u547D\u540D/"+n.hotAttr.name;n.hotAttr.type==="rResStyle"?(0,oc.$6)(n.key,"\u672A\u547D\u540D"):n.hotAttr.type==="rResStyleGroup"&&(0,oc.F5)(n.key,Ne,n.hotAttr.styleType),xe(n.hotAttr.styleType)};return(0,o.jsxs)("li",{className:"style-list-item","data-key":n.key,children:[(0,o.jsxs)("div",{className:m()("style-content",{"folder-style":n.hotAttr.type==="rResStyleGroup","is-active":w===n.key,"is-collapse":n.hotAttr.type==="rResStyleGroup"&&!Q}),style:{paddingLeft:30*s+4+"px"},onContextMenu:Ne=>ie(Ne,n),onClick:Ne=>De(Ne,n),onMouseDown:Ne=>d&&d(Ne,n),onMouseUp:p,children:[n.hotAttr.type==="rResStyle"&&(0,o.jsx)(fH,{treeNode:n,onSetActiveKey:_,index:c}),n.hotAttr.type==="rResStyleGroup"&&(0,o.jsx)(gH,{treeNode:n,isEditing:g,onSetIsEditing:y})]}),n.children.length>0&&Q&&(0,o.jsx)("ul",{className:"lib-style-list",children:n==null||(t=n.children)==null?void 0:t.map((Ne,pt)=>(0,o.jsx)(G9,{treeNode:Ne,type:r,depth:s+1,index:pt+c,onMouseDown:d,onMouseUp:p},Ne.key))}),j.isOpen&&(0,o.jsxs)(u6.Sv,{position:j.position,onClose:he,children:[(0,o.jsx)(He.Dr,{text:n.hotAttr.type==="rResStyleGroup"?"\u91CD\u547D\u540D":"\u7F16\u8F91",onClick:Se}),(0,o.jsx)(He.Dr,{text:n.hotAttr.type==="rResStyleGroup"?"\u5220\u9664 "+mH(n.key)+" \u4E2A\u6837\u5F0F":"\u5220\u9664",onClick:_e}),(0,o.jsx)(He.Dr,{text:"\u65B0\u5EFA\u6587\u4EF6\u5939",onClick:Je})]})]},n.key)};var yH=i(99306),vH=i(44229);const xH=(e,t)=>{const n=t.children;return n[n.length-1].key===e},bH=(e,t,n,r)=>{var s;const c=document.querySelector("."+r+"-style-panel-content"),d=c==null?void 0:c.querySelector(".lib-style-list"),p=Array.from((s=c==null?void 0:c.querySelectorAll("."+r+"-style-panel-content li.style-list-item"))!=null?s:[]),g=c==null?void 0:c.getBoundingClientRect(),y={left:g==null?void 0:g.left,top:(g==null?void 0:g.top)+32,right:g==null?void 0:g.right,bottom:g==null?void 0:g.bottom,width:g==null?void 0:g.width,height:(g==null?void 0:g.height)-32},w=d==null?void 0:d.getBoundingClientRect(),_=[],j={},N=(0,kc.dP)(),Z=(0,Vl.qF)(N),Q=(0,Vl.Ip)(N);let se=new Set,ie=1,he=t;if(e){const Se=new Set(t);for(const De of t){const Je=sdkStore.getHotItem(De);Je&&Se.has(Je.sup)&&Se.delete(Je.key)}he=Array.from(Se),se=new Set(he);const _e=[];(0,br.sV)(n,De=>{const{key:Je,children:Ne}=De;if(se.has(Je)&&(Ne==null?void 0:Ne.length)>0)for(const pt of De.children)se.add(pt.key);t.includes(Je)&&_e.push(De)});for(const De of _e){const Je=(0,br.QR)(De);ie=Math.max(Je,ie)}}const xe=p.length;return p.forEach((Se,_e)=>{const{key:De}=Se.dataset,Je=(0,br.aR)(De,n),Ne=Je,pt=Q.getTreeNodeLevel(Je.key),_t=Se.querySelector(":scope > .style-content"),gt=_t==null?void 0:_t.getBoundingClientRect(),Ct=(0,al.yB)(_t),zt=Se.getBoundingClientRect(),Dt={top:gt.top-w.top,left:gt.left-w.left,width:gt.width,height:gt.height},sn={top:Ct.top-w.top,left:Ct.left-w.left,width:Ct.width,height:Ct.height},Rn={top:zt.top-w.top,left:sn.left+8,width:sn.width,height:zt.height};j[De]={rect:Dt,contentRect:sn,treeRect:Rn};const{left:On,top:Lo,width:Yo,height:Cn}=Dt,hn=On+Yo,oa=Lo+Cn/3,Ao=Lo+Cn/3*2,ca=Lo+Cn;if(se.has(De)){_.push({cid:De,type:null,min:{x:On,y:Lo},max:{x:hn,y:ca},isValid:!1});return}_e===0&&_.push({cid:De,type:"prevSibling",parentCid:Ne.sup,min:{x:On,y:Lo},max:{x:hn,y:oa},isValid:!0}),_e===xe-1&&_.push({cid:De,type:"nextSibling",parentCid:Ne.sup,min:{x:On,y:ca},max:{x:hn,y:y.height},isValid:!0});const va=4,ra=pt+ie<=va,Jo=pt-1+ie<=va;if(Je.hotAttr.type==="rResStyleGroup"&&_.push({cid:De,type:"firstChild",parentCid:De,min:{x:On,y:Lo},max:{x:hn,y:Ao},isValid:ra}),!Z.has(De)&&Je.children.length>0){const{key:sa}=Je.children[0];_.push({cid:sa,type:"prevSibling",parentCid:De,min:{x:On,y:Ao},max:{x:hn,y:ca},isValid:ra})}else{const sa=(0,br.aR)(Ne.sup,n);xH(De,n)&&sa?_.push({cid:De,type:"nextSibling",parentCid:Ne.sup,min:{x:j[De].contentRect.left,y:Ao},max:{x:hn,y:ca},isValid:Jo}):_.push({cid:De,type:"nextSibling",parentCid:Ne.sup,min:{x:On,y:Ao},max:{x:hn,y:ca},isValid:Jo})}}),{matchDataList:_,containerRect:y,rectQueryMap:j,pathSelectedIds:he}},h6=e=>{var t,n;let{treeData:r,type:s}=e;const[c,d]=(0,l.useState)(null),p=(0,l.useRef)(null),g=(0,l.useRef)(null),y=(0,a.wA)(),w=(0,a.d4)(Oe.p$),_=(0,a.d4)(Vl.Ip);if(!r||r.children.length===0)return null;const j=he=>y({type:"entry:libStyle:re-build:treeData",payload:{type:he}}),N=()=>{const{left:he,bottom:xe}=g.current.getBoundingClientRect(),Se={top:xe+Nn.Nc,left:he-Nn.tA};s==="color"&&y({type:"entry:libStyle:open:color:modal",payload:{position:Se,onConfirm:()=>j("color")}}),s==="text"&&y({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:Se,type:"create",attrs:(0,Nn.H$)(),onConfirm:()=>j("text"),...(0,oc.l$)(w)}}}),s==="appear"&&y({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Se,type:"create",attrs:Nn.R3,onConfirm:()=>j("appear"),...(0,oc.xe)(w)}}})},Z=(he,xe)=>{he.button===0&&(p.current=setTimeout(()=>{const Se=document.querySelector("."+xe.hotAttr.styleType+'-style-panel-content li[data-key="'+xe.key+'"] .style-content');if(!Se)return;const{top:_e,left:De}=Se.getBoundingClientRect(),Je=he.clientX-De,Ne=he.clientY-_e,pt=[xe.key],_t={screen:xe,$element:Se,offsetX:Je,offsetY:Ne,...bH(xe,pt,r,s)};d(_t)},200))},Q=()=>{p.current&&clearTimeout(p.current)},se=he=>{var xe;let{cid:Se,type:_e,parentCid:De,isValid:Je}=he;if(!c)return;const{pathSelectedIds:Ne}=c;if(d(null),!Je)return;const pt=[_.getNode(Ne[0])],_t=(xe=_.getNode(De))==null?void 0:xe.children.filter(zt=>{let{key:Dt,hotAttr:sn}=zt;return!Ne.includes(Dt)&&sn.styleType===s}),gt=_t.findIndex(zt=>zt.key===Se),Ct=_e==="prevSibling"?gt:_e==="firstChild"?0:_e==="nextSibling"?gt+1:"error";_t.splice(Ct,0,...pt),sdkStore.combineMergeMark("sort-style"),_t.forEach((zt,Dt)=>{var sn;if(zt.sup!==De||((sn=zt.hotAttr)==null?void 0:sn.zIndex)!==_t.length-Dt){const Rn=sdkStore.getHotItem(zt.key),On={...Rn,sup:De,hotAttr:{...Rn.hotAttr,zIndex:_t.length-Dt}};sdkStore.updateHotItem(On)}}),sdkStore.combineMerge("sort-style"),j(s)},ie=()=>document.querySelector("."+s+"-style-panel-content");return(0,o.jsxs)("li",{className:s+"-style-panel-content",children:[(0,o.jsxs)("header",{ref:g,children:[(0,o.jsx)("span",{children:""+I18N.libPanel.common[s]+I18N.libPanel.common.style}),(0,o.jsx)(O4.Q,{icon:(0,o.jsx)(Et.C,{className:"add-icon",name:"common/add@24",size:24}),content:""+I18N.SettingPanel.design.create+I18N.libPanel.common[s]+I18N.libPanel.common.style,direction:"down",onClick:N})]}),(r==null||(t=r.children)==null?void 0:t.length)>0&&(0,o.jsxs)("ul",{className:"lib-style-list",children:[r==null||(n=r.children)==null?void 0:n.map((he,xe)=>(0,o.jsx)(G9,{treeNode:he,type:s,depth:0,index:xe,onMouseDown:Z,onMouseUp:Q},he.key)),c&&(0,o.jsx)(F9.A,{draggingElement:c.$element,getContainerElement:ie,matchDataList:c.matchDataList,containerRect:c.containerRect,rectQueryMap:c.rectQueryMap,offsetX:c.offsetX,offsetY:c.offsetY,onDrop:se})]})]})},CH=()=>{const[e,t]=(0,l.useState)(!1),n=(0,a.d4)(Vl.HL),r=(0,a.d4)(Vl.rw),s=(0,a.d4)(Vl.bC),c=(0,a.wA)();return(0,l.useEffect)(()=>{const d=new yH.o;d.buildStyleTree("color"),d.buildStyleTree("appear"),d.buildStyleTree("text"),c({type:"style-lib:set:attr",payload:{localStyleStore:d,textStyleTree:d.textStyleTree,colorStyleTree:d.colorStyleTree,appearStyleTree:d.appearStyleTree}}),(0,vH._o)(()=>{c({type:"entry:libStyle:init"})},{timeout:200})},[]),(0,l.useEffect)(()=>{const d=n&&(n==null?void 0:n.children.length)===0&&r&&(r==null?void 0:r.children.length)===0&&s&&(s==null?void 0:s.children.length)===0;t(d)},[n,r,n]),(0,o.jsx)(u6.YA,{className:"local-style-list-container",title:"\u672C\u5730\u6837\u5F0F",headerChildren:(0,o.jsx)(dH,{}),children:e?(0,o.jsx)(wH,{}):(0,o.jsxs)("ul",{className:"local-libs-content",children:[(0,o.jsx)(h6,{treeData:n,type:"text"}),(0,o.jsx)(h6,{treeData:r,type:"color"}),(0,o.jsx)(h6,{treeData:s,type:"appear"})]})})},wH=()=>{const[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)({top:0,left:0}),s=(0,l.useRef)(null),c=d=>{if(t(d),!d)return;const{left:p,bottom:g,width:y}=s.current.getBoundingClientRect();r({top:g+6,left:p+y/2+160/2})};return(0,o.jsxs)("div",{className:"empty-content",children:[(0,o.jsx)("span",{className:"desc",children:"\u521B\u5EFA\u989C\u8272\u3001\u6587\u672C\u3001\u5916\u89C2\u7B49\u6837\u5F0F\u540E\uFF0C\u5373\u53EF\u5728\u5176\u4ED6\u7EC4\u4EF6\u4E2D\u5FEB\u901F\u590D\u7528"}),(0,o.jsx)(z9,{position:n,renderOpener:(0,o.jsx)(u6.qf,{className:m()("create-button",{active:e}),ref:s,children:"\u65B0\u5EFA\u6837\u5F0F"}),onClickOpener:c})]})};function SH(e){const{screenSelection:t,currentPage:n}=e,[r,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(0),p=(0,a.wA)(),g=(0,vf.FT)(t),y=g.length?g:[n.key],w=(0,l.useRef)(null),_=Ao=>{var ca;let va;Ao.key==="customize"?va={device:Ao.key}:va={deviceW:Ao.width,deviceH:Ao.height,device:Ao.key};const{screen:ra,currentProject:Jo}=e,$o=Se(ra);!(0,P0.$n)(Ao.key)&&($o==null||(ca=$o.hotAttr)==null?void 0:ca.deviceOrientation)==="landscape"&&(va={...va,deviceOrientation:"portrait"}),p({type:"entry:update:root-project:object",payload:{currentProject:{...Jo,model:Ao.key,device:Ao.device,width:Ao.width,height:Ao.height}}}),xe(va),(0,ud.Le)(Ao.key),Ao.key&&Vc.U4.protoDeviceCreate("\u53F3\u4FA7\u6F14\u793A\u8BBE\u5907\u5207\u6362",Ao.key)},j=Ao=>{xe({deviceScroll:Ao})},N=Ao=>{xe({isShowDeviceGuide:Ao})},Z=Ao=>{xe(Ao)},Q=Ao=>{Ao.trim()===""||Ao.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):xe({name:Ao}),s(!1)},se=()=>{s(!0)},ie=Ao=>{xe({deviceW:Ao})},he=Ao=>{xe({deviceH:Ao})},xe=Ao=>{const{screen:ca}=e,va=[];y.forEach(ra=>{const Jo=sdkStore.getHotItem(ra),$o={...Jo.hotAttr,...Ao},sa={...Jo,hotAttr:$o};d(c+1),ca.cid===ra&&p({type:"current:update:state",payload:{currentScreen:{...sa.hotAttr,cid:sa.key}}}),va.push([sa.key,$o])}),sdkStore.updateHotAttrMergeBatch(va),p({type:"entry:update:screen:list"})},Se=Ao=>sdkStore.getHotItem(Ao.cid),_e=Ao=>{p({type:"entry:update:all-screen:bgcolor",payload:{fill:{...Ao,fillIsVisible:!0}}})},De=()=>{p({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:ic.kV[zt||ic.Sx.LIGHT]}}})},Je=Ao=>{const{screen:ca}=e,va=Se(ca).hotAttr,{fill:ra}=va,Jo=(0,$c.BN)(ra.solidColor),$o=(0,$c.u_)({...Jo,A:Ao}),sa={...ra,fillIsVisible:!0,solidColor:$o};_e(sa)},Ne=Ao=>{Je(Ao),sdkStore.combineMerge("screen-fill-update")},pt=()=>sdkStore.combineMergeMark("screen-fill-update"),{isProject:_t,isMultipleScreen:gt,screen:Ct,theme:zt}=e,Dt=_t,sn=g.length?Se({cid:g[0]}).hotAttr:Se(Ct).hotAttr,{fill:Rn}=sn,On=(0,ic.t6)(zt,{fill:Rn}),Lo=(0,$c.BN)(On).A,[Yo,Cn,hn,oa]=(()=>{const Ao=y.map(cr=>{const Vr=sdkStore.getHotItem(cr).hotAttr;return[Vr.device,Vr.deviceScroll,Vr.deviceW,Vr.deviceH]}),[ca,va,ra,Jo]=Ao[0];let[$o,sa,da,nr]=[ca,va,ra,Jo];for(const cr of Ao)ca!==cr[0]&&($o="\u591A\u4E2A\u503C"),va!==cr[1]&&(sa="\u591A\u4E2A\u503C"),ra!==cr[2]&&(da="\u591A\u4E2A\u503C"),Jo!==cr[3]&&(nr="\u591A\u4E2A\u503C");return[$o,sa,da,nr]})();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(MH,{className:"scroll-container",ref:w,children:[(0,o.jsx)("div",{className:"scroll-content",children:(0,o.jsx)(kH,{className:"screenSettings",children:(0,o.jsx)("div",{className:m()("layer-size","screen-name-edit",{isLayerHover:!r,layerState:r}),onClick:se,children:(0,o.jsx)(t6,{value:gt?I18N.LeftSidePanel.multi_select_page:sn.name,className:"layer-name",isEditing:r,onConfirm:Q})})})}),(0,o.jsx)(Z9,{title:I18N.ScreenPanel.background_color,children:(0,o.jsx)("section",{className:"bgcolor-body",children:(0,o.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,o.jsx)(_i.R_,{supAttr:"fill",attr:"solidColor",className:_i.Fw,color:{fill:"solid",...Rn,solidColor:On},canOpenLib:!1,pIsSolidColorOnly:!0,onChange:_e,onResetColor:Rn!=null&&Rn.fillIsVisible?De:null}),y.length===1&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(U9.A,{value:Lo,max:100,onChange:Je,onConfirm:Ne,onMouseDown:pt}),(0,o.jsx)(xh.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:Lo,onConfirm:Je})]})]})})}),(0,o.jsx)(rH,{updateOrientation:Z,updateWidth:ie,updateHeight:he,selectNewModel:_,deviceType:Yo,deviceWidth:hn,deviceHeight:oa,orientation:sn.deviceOrientation}),Yo!=="none"&&Yo!=="\u591A\u4E2A\u503C"?(0,o.jsx)(EH,{title:I18N.ScreenPanel.when_artboards_exceed_the_device,children:(0,o.jsx)("section",{className:"size-body",children:(0,o.jsxs)("div",{className:"screen-info",children:[(0,o.jsx)("div",{className:"screen-setting-line select height-32",children:(0,o.jsx)(k3.mq,{value:Cn,placeholder:Cn,optionList:AH(),onChange:j,isMultipleScreen:gt})}),(0,o.jsx)("div",{className:"screen-setting-line check height-32",children:(0,o.jsx)(Gn.A,{className:m()("check",Gn.p),isChecked:sn.isShowDeviceGuide,onChange:N,label:I18N.SettingPanel.overflowLine})})]})})}):(0,o.jsx)("div",{}),(0,Zf.bJ)()&&(0,o.jsx)(CH,{}),(0,o.jsx)(B9,{containerHeight:window.innerHeight-88,showEmptyTtext:!1})]}),(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:w,isAutoHideBar:!0}),Dt&&(0,o.jsx)(oH,{dispatch:p})]})}const AH=()=>[{label:I18N.SettingPanel.singlePanelScroll.hide,value:"hide"},{label:I18N.SettingPanel.singlePanelScroll.vertical,value:"vertical"},{label:I18N.SettingPanel.singlePanelScroll.horizontal,value:"horizontal"},{label:I18N.SettingPanel.singlePanelScroll.auto,value:"auto"}],MH=E.Ay.div.withConfig({displayName:"ScreenSettings__StyledScreenSetting",componentId:"sc-tzabps-0"})(["flex:1 1 0%;overflow:hidden auto;position:relative;scrollbar-width:none;"]),kH=E.Ay.div.withConfig({displayName:"ScreenSettings__StyledNameSetting",componentId:"sc-tzabps-1"})(["padding:0px 16px;height:40px;width:240px;display:flex;align-items:center;color:",";font-weight:500;",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}"],e=>e.theme.color_text_L1,pr.L9,e=>e.theme.color_proto,e=>e.theme.color_proto),EH=(0,E.Ay)(p6.A).withConfig({displayName:"ScreenSettings__StyledScrollSetting",componentId:"sc-tzabps-2"})(["",";.screen-info{padding:0 16px;.screen-setting-line{display:flex;align-items:center;&.select{margin-left:-7px;}&.check{margin-left:-6px;.Check-label{color:",";}}}}"],pr.L9,e=>e.theme.color_text_L1),Z9=(0,E.Ay)(p6.A).withConfig({displayName:"ScreenSettings__StyledBgColorSetting",componentId:"sc-tzabps-3"})(['.bgcolor-body{padding:0 10px;.screen-bg-line{display:flex;justify-content:space-between;align-items:center;[type="slider"]{width:120px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:60px;input::placeholder{color:",";}}}}&.combo-setting{border-top:none;}"],e=>e.theme.color_proto,e=>e.theme.color_text_L2),IH=(0,k.Mz)([we.r,re.Ur,ht.Hs,q.O4,re.PL,ht.p$],(e,t,n,r,s,c)=>{var d;let{isEditingProjectMain:p}=e;t=t||{},s=s||{},c=c||{};const g=((d=t)==null?void 0:d.orientation)==="landscape",y=p&&(0,tH.M)(s,t);let w=(0,al.qk)(s.name);const _=s.model,j=n.length>1;if(p){var N;w=j?I18N.SettingPanel.choose_pages.replace(/%page/,n.length):""+((N=t)==null?void 0:N.name)}return{isProject:p,canSetOrientation:y,isScreenLandScape:g,screen:t,projectModel:_,displayName:w,isEditingProjectMain:p,isMultipleScreen:j,screenSelection:n,theme:r,currentProject:s,currentPage:c}}),TH=(0,a.Ng)(e=>IH(e))(SH);var _H=i(27086),PH=i(20459);const LH=E.Ay.div.withConfig({displayName:"styles__StyledLayerInfo",componentId:"sc-xkeir8-0"})(["height:40px;display:flex;align-items:center;margin:0 0 8px -9px;padding:0 16px;color:",";font-weight:500;border-bottom:1px solid ",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}.action,.my-widget-action{display:inline-block;width:24px;height:24px;text-align:center;color:",";border-radius:4px;.icon{width:24px;height:24px;color:",";}&.icon-disabled{cursor:not-allowed;color:",";}&:not(.icon-disabled):hover{background:",";}&:not(.icon-disabled):active{background:",";}}.actions,.my-widget-action{display:flex;align-items:center;}.divider{display:inline-block;content:'';width:1px;height:24px;background:",";margin-right:6px;margin-left:10px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_01);class NH extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleEdit",()=>{if(this.setState({isEditing:!0}),!(0,Zf.bJ)())return;const{editingBasketRefPage:n}=this.props;if(n){const c=sdkStore.getHotItem(n);if((c==null?void 0:c.sup)!=="B@ref-muban"){var r,s;const d=(c==null?void 0:c.sup)&&sdkStore.getHotItem(c.sup);d&&this.setState({name:((r=d.hotAttr)==null?void 0:r.name)+"/"+((s=c.hotAttr)==null?void 0:s.name)})}}}),(0,O.A)(this,"handleLayerName",n=>{const{onChange:r,editingBasketRefPage:s,dispatch:c}=this.props;if(n.trim()===""||!s&&(0,Zf.bJ)()&&n.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{let p=n;(0,Zf.bJ)()?s?(p=(0,Bd.PL)(n,s),sdkStore.updateHotAttrMerge(s,{name:p,mtime:rootSdk.fssCmt.getClockStore().getMtime()}),this.setState({name:p.split("/")[0]}),c({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})):(this.setState({name:p}),r(p,"name"),c({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})):(this.setState({name:p}),r(p,"name"))}this.setState({isEditing:!1})}),this.state={isEditing:!1,name:t.layerName}}static getDerivedStateFromProps(t,n){return n.name!==t.layerName?{...n,name:t.layerName}:null}render(){const{isEditing:t,name:n}=this.state;return(0,o.jsx)(LH,{className:"layer-info",children:(0,o.jsx)("div",{className:m()("layer-size",{isLayerHover:!t,layerState:t}),onClick:this.handleEdit,children:(0,o.jsx)(Ef.A,{value:n,className:"layer-name",isEditing:t,onConfirm:this.handleLayerName},n)})})}}var jH=i(5621);const DH=E.Ay.div.withConfig({displayName:"styles__StyledBasketSetting",componentId:"sc-cjj4nm-0"})([".layer-info{margin-left:0;}.general-line{display:flex;align-items:center;padding-left:6px;margin-bottom:8px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:4px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1a70d8;}}.state-scroll-container{padding:8px 0;border-top:1px solid ",";}"],e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_01);var OH=i(95545);const RH=(0,k.Mz)([Y.bt,Y.PR],(e,t)=>({editingBasketRefPage:e,editingBasketHotItem:t})),BH=(0,l.memo)(()=>{const{editingBasketRefPage:e,editingBasketHotItem:t}=(0,a.d4)(RH),n=(0,a.wA)(),{hotAttr:r={},key:s}=t||{},c=t,{w:d,h:p,scroll:g,showScrollBar:y,name:w,isLockAspect:_}=r,j=(0,l.useCallback)((N,Z)=>{const Q=Z==="w"||Z==="h";let se={key:s,hotAttr:{[Z]:N}};if(Q&&_){const he=(0,jH.K)(d,p),xe=Z==="w"?N:N*he,Se=Z==="h"?N:N/he;se={...se,hotAttr:{...se.hotAttr,w:xe,h:Se}}}n({type:"entry:widget:change",payload:{flatChgList:[se]}});const ie={...t,hotAttr:{...t.hotAttr,[Z]:N}};n(Te.GO.editBasketHotItem(ie)),Q&&n({type:"entry:layout:basket-canvas"}),Z==="name"&&e&&n({type:"muban-panel:update:mubanList",payload:{mubanList:(0,t0.AG)()}})},[n,t,e,p,_,s,d]);return t?(0,o.jsxs)(DH,{children:[(0,o.jsx)(NH,{layerName:w,editingBasketRefPage:e,onChange:j,dispatch:n}),(0,o.jsxs)("div",{className:m()("general-line"),children:[(0,o.jsx)(xh.A,{className:"general-input",title:"W",attr:"w",value:d,disabled:!1,min:0,max:99999,placeholder:d,onConfirm:j}),(0,o.jsx)(xh.A,{className:"general-input",title:"H",attr:"h",value:p,disabled:!1,min:0,max:99999,placeholder:p,onConfirm:j})]}),(0,o.jsxs)("div",{className:"state-scroll-container",children:[(0,o.jsx)(PH._,{panel:c,dispatch:n,editingBasketRefPage:e}),(0,o.jsx)(_H.E,{scroll:g,handleChange:j}),g!==zi.Ci.hide&&(0,o.jsx)(OH.W,{showScrollBar:y,handleChange:j})]})]}):null});class UH extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleChangeFill",t=>{this.props.dispatch({type:"entry:update:root-project:bgcolor",payload:{fill:{...t,fillIsVisible:!0}}})}),(0,O.A)(this,"handleRestoreBgColor",()=>{const{dispatch:t,theme:n}=this.props;t({type:"entry:update:root-project:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:ic.kV[n||ic.Sx.LIGHT]}}})}),(0,O.A)(this,"handleFillAlphaChanged",t=>{const{currentScreen:n}=this.props,{fill:r}=n,s=(0,$c.BN)(r.solidColor),c=(0,$c.u_)({...s,A:t}),d={...r,fillIsVisible:!0,solidColor:c};this.handleChangeFill(d)}),(0,O.A)(this,"handleFillAlphaConfirm",t=>{this.handleFillAlphaChanged(t),sdkStore.combineMerge("fill-update")}),(0,O.A)(this,"handleFillAlphaMouseDown",()=>sdkStore.combineMergeMark("fill-update"))}render(){const{theme:t,currentScreen:n,isEmptyScreen:r}=this.props;if(r||!n)return null;const{fill:s}=n,c=(0,ic.t6)(t,n),d=(0,$c.BN)(c).A;return(0,o.jsx)(Z9,{className:m()("combo-setting",{disabled:r}),title:I18N.ScreenPanel.background_color,children:(0,o.jsx)("section",{className:"bgcolor-body",children:(0,o.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,o.jsx)(_i.R_,{canOpenLib:!1,supAttr:"fill",attr:"solidColor",color:{...s,solidColor:c},pIsSolidColorOnly:!0,onChange:this.handleChangeFill,onResetColor:s!=null&&s.fillIsVisible?this.handleRestoreBgColor:null}),(0,o.jsx)(U9.A,{value:d,max:100,onChange:this.handleFillAlphaChanged,onConfirm:this.handleFillAlphaConfirm,onMouseDown:this.handleFillAlphaMouseDown}),(0,o.jsx)(xh.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:d,onConfirm:this.handleFillAlphaChanged})]})})})}}const FH=(0,k.Mz)([re.Ur,Vf.C,q.O4],(e,t,n)=>{let{isEmptyScreen:r}=t;return{currentScreen:e,isEmptyScreen:r,theme:n}}),VH=(0,a.Ng)(e=>FH(e))(UH);var zH=i(56849),K9=i(54460),WH=i(97433);const HH=(0,E.Ay)(WH.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-ooml4r-0"})([".color-line{margin-left:-4px;}.border-collapse-body{margin-left:0;}"]),GH=E.Ay.div.withConfig({displayName:"styles__StyledPencilSetting",componentId:"sc-ooml4r-1"})(["flex:1;width:240px;padding:8px 16px 0;color:",";"],e=>e.theme.color_text_L2);var m6=i(31093);function Y9(e){let{bdrStyle:t,bdrColor:n,bdrWidth:r,dispatch:s}=e;const c=(d,p)=>{["bdrStyle","bdrWidth","bdrColor"].includes(p)&&s({type:"pencil:update",payload:{[p]:d}})};return(0,o.jsx)(GH,{className:"pencil-setting-body",children:(0,o.jsxs)(HH,{className:m()("label-option"),children:[(0,o.jsxs)("div",{className:"color-line appearance-line border-open height-32",children:[(0,o.jsx)(_i.R_,{className:_i.Fw,attr:"bdrColor",attrPanel:"attrPanel",color:n,canOpenLib:!1,onChange:c}),(0,o.jsx)("label",{className:"left-label",children:I18N.SettingPanel.stroke})]}),(0,o.jsxs)("div",{className:m()("border-collapse-body height-32 margin-right-n6 is-open"),children:[(0,o.jsxs)("div",{className:"border-select-size-warp",children:[(0,o.jsx)(zH.v,{}),(0,o.jsx)(k3.mq,{className:m()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,K9.se)(),value:t,onChange:c})]}),(0,o.jsx)(xh.A,{className:"border-width-input",attr:"bdrWidth",value:r,optionList:K9.xq,onConfirm:c})]})]})})}Y9.displayName="PencilSetting";const ZH=(e,t)=>{const n=(0,m6.pp)(e),r=(0,m6.lu)(e),s=(0,m6.E)(e);return{bdrStyle:n,bdrColor:r,bdrWidth:s}},KH=(0,a.Ng)(ZH,null)(Y9),YH=E.Ay.aside.withConfig({displayName:"styles__StyledSettingPanel",componentId:"sc-jzr1ok-0"})(["display:flex;flex:1;flex-direction:column;background:",";overflow:hidden;position:relative;width:","px;& > header{display:flex;height:40px;min-width:60px;padding-left:16px;padding-right:12px;border-bottom:1px solid ",";.title{color:",";line-height:40px;font-weight:600;}.design-warning{display:flex;align-items:center;justify-content:center;margin-left:5px;color:",";&:hover{color:",";}.svg-icon{width:14px;height:14px;}}}.ita-panel{height:calc(100% - 40px);display:flex;flex-direction:column;overflow:auto;}.height-32{height:32px;}.height-36{height:36px;}.margin-left-n6{margin-left:-6px;}.margin-right-n6{margin-right:-6px;}.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}.width-66{width:66px;}"],e=>e.theme.color_bg_white,ic.xM,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),XH=(0,E.Ay)(s6.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-jzr1ok-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;.nav-item{font-size:12px;}"]);var QH=i(82694);class JH extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleTabChange",t=>{this.props.dispatch({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),this.props.dispatch({type:"settings:set:activeIndex",payload:{activeIndex:t}})})}componentDidMount(){this.props.dispatch({type:"settings:update:varList",payload:{varList:(0,td.pU)()}})}render(){var t;const{activeIndex:n,showLinkSetting:r,showGlobalSetting:s,showWidgetSetting:c,showQuickCreateCanvasSetting:d,showPencilSetting:p,showBasketSetting:g,currentScreenDevice:y,showEditingComboSetting:w,isGlobalSetting:_,isQuickCreateCanvasSetting:j,isPencilSetting:N,isWidgetSetting:Z,isCanvasSetting:Q,isBasketSetting:se,isEditingCombo:ie,isEditingComboSetting:he,vectorEditor:xe,editingPanelRefPage:Se,editingPanelCid:_e}=this.props,De=(0,QH.jb)({isGlobalSetting:_,isQuickCreateCanvasSetting:j,isWidgetSetting:Z,isCanvasSetting:Q,isBasketSetting:se,isEditingComboSetting:he,isPencilSetting:N},_e,Se,xe);return(0,o.jsxs)(YH,{id:"setting-panel",children:[(0,o.jsx)("header",{children:De.length===1?(0,o.jsx)("span",{className:"title",children:(t=De[0])==null?void 0:t.label}):(0,o.jsx)(XH,{activeIndex:n,onTabChange:this.handleTabChange,children:De.map(Je=>{let{key:Ne,...pt}=Je;return(0,o.jsx)(s6.n,{...pt,className:m()({line_active:De.length>1})},Ne)})})}),p&&(0,o.jsx)(KH,{}),d&&(0,o.jsx)(eH,{defaultDevice:y}),r&&(0,o.jsxs)("div",{className:"ita-panel",children:[(0,o.jsx)(FW,{}),!ie&&(0,o.jsx)(B9,{containerHeight:window.innerHeight-88})]}),s&&(0,o.jsx)(TH,{}),c&&(0,o.jsx)(XW.A,{}),g&&(0,o.jsx)(BH,{}),w&&(0,o.jsx)(VH,{}),(0,o.jsx)(YW.xN,{})]})}}const qH=(0,k.Mz)([Wc.Jg,j9.y],(e,t)=>{let{isGlobalSetting:n,isQuickCreateCanvasSetting:r,isWidgetSetting:s,isCanvasSetting:c,isBasketSetting:d,isEditingCombo:p,isEditingComboSetting:g,isPencilSetting:y}=t;const w=c||s||y;return w||(e=0),{showGlobalSetting:n&&e===0,showWidgetSetting:(c||s)&&e===0,showLinkSetting:w&&e===1,showQuickCreateCanvasSetting:r&&e===0,showPencilSetting:y&&e===0,showBasketSetting:d&&e===0,showEditingComboSetting:g&&e===0,isEditingCombo:p}}),$H=(0,k.Mz)([Wc.Jg,j9.y,qH,Y.jI,Y.bt,re.Ur,Y.lY,q.MZ],(e,t,n,r,s,c,d,p)=>({activeIndex:e,...t,...n,editingPanelCid:r,editingPanelRefPage:s,vectorEditor:d,currentScreenDevice:c==null?void 0:c.device,layoutV9:p})),eG=(0,a.Ng)(e=>$H(e))(JH),tG=E.Ay.div.withConfig({displayName:"styles__StyledLeftBorderResizeHOC",componentId:"sc-1qdmz76-0"})(["position:relative;height:100%;right:0;top:0;background:",";box-shadow:-1px 0 0 ",";&.with-switch-header{display:flex;flex-direction:column;.border-resizer.left{left:-1px;}&.is-in-version{width:240px !important;}}.border-resizer.left{left:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01);function f6(e){const{id:t,className:n,children:r,isShowBorderResizer:s=!0}=e,{rightPanelResizedWidth:c,rightPanelResizedMaxWidth:d,rootProject:p}=(0,a.d4)(nG),g=l.useRef(null),y=(0,a.wA)(),w=(0,l.useCallback)(()=>{g.current&&(g.current.style.transition="none")},[]),_=(0,l.useCallback)(()=>{g.current&&(g.current.style.transition="")},[]),j=N=>{y({type:"right-side-panel:update:resize:width",payload:{width:N,projectCid:p.cid}}),y({type:"entry:observe:dom:right-panel-width"})};return(0,o.jsxs)(tG,{id:t,className:n,ref:g,style:{width:c},children:[r,s&&(0,o.jsx)(ni.A,{placement:"left",className:"v-resizer",value:c,min:ic.xM,max:d,onResizeStart:w,onResizeEnd:_,onChange:j})]})}const nG=(0,k.Mz)([Wc.TW,Wc.HC,re.PL],(e,t,n)=>({rightPanelResizedWidth:e,rightPanelResizedMaxWidth:t,rootProject:n}));var oG=i(89960);const aG=e=>(0,o.jsx)(oG.L,{...e}),rG=(0,k.Mz)([P.ZA,P.Cb,P.c1,P.M5,Y.jx,Wc.TW,Y.uu,q.O4],(e,t,n,r,s,c,d,p)=>({commentList:e,activeCommentCid:t,selected:n,isShowCompletedComment:r,viewType:s,commentPanelWidth:c,isHtmlZipPreview:d,theme:p})),iG=(0,a.Ng)(e=>rG(e))(aG);function sG(){return(0,o.jsx)(f6,{id:"design-comment-panel",children:(0,o.jsx)(iG,{})})}var lG=i(52490),cG=i(53707);const dG=e=>{const t=document.querySelector("#st-list-container"),r=document.querySelector("#st-list").getBoundingClientRect(),s=t.getBoundingClientRect(),c=[],d={},p={},g={},y={};return Array.from(document.querySelectorAll("#st-list >.st-card")).forEach((_,j)=>{const{cid:N}=_.dataset,Z=_.getBoundingClientRect();d[N]=g[N]=Z;const Q=(0,al.yB)(_);p[N]=Q;const{left:se,top:ie,width:he,height:xe}=Z,Se=se-r.left,_e=ie-r.top,De=Se+he,Je=_e+xe,Ne={top:_e,left:Q.left-r.left,width:he,height:xe};if(y[N]={contentRect:Ne,rect:Ne,treeRect:Ne},e.includes(N)){c.push({cid:N,type:null,min:{x:Se,y:_e},max:{x:De,y:Je},isValid:!1,parentCid:null});return}c.push({cid:N,type:"prevSibling",min:{x:Se,y:_e},max:{x:De,y:_e+xe/2},isValid:!0,parentCid:null}),c.push({cid:N,type:"nextSibling",min:{x:Se,y:_e+xe/2},max:{x:De,y:Je},isValid:!0,parentCid:null})}),{matchDataList:c,containerRect:s,rectQueryMap:y}};var X9=i(5010);class Q9 extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"createListRef",n=>this.$listRef=n),(0,O.A)(this,"handleMouseDown",(n,r,s)=>{const{isOnlyView:c}=this.props;if(c)return;const{top:d,left:p}=s.getBoundingClientRect(),g=n.clientX-p,y=n.clientY-d,w=[r.key],_={item:r,$element:s,offsetX:g,offsetY:y,selection:w,...dG(w)};this.setState({dragAndDropState:_})}),(0,O.A)(this,"getContainerElement",()=>document.getElementById("st-list-container")),(0,O.A)(this,"handleDrop",n=>{let{cid:r,type:s,isValid:c}=n;const{dragAndDropState:d}=this.state,{dispatch:p,stickyList:g}=this.props;if(this.setState({dragAndDropState:null}),!c)return;const y=[];for(const Q of d==null?void 0:d.selection)y.push(sdkStore.getHotItem(Q));y.sort((Q,se)=>Q.hotAttr.order-se.hotAttr.order);const _=([...g]||[]).filter(Q=>!(d!=null&&d.selection.includes(Q.key))),j=_.findIndex(Q=>Q.key===r),N=s==="prevSibling"?j:s==="nextSibling"?j+1:"error";if(N==="error")throw new Error("drag type error");_.splice(N,0,...y),_.forEach((Q,se)=>{if(Q.hotAttr.order!==se+1){const ie=sdkStore.getHotItem(Q.key),he={...ie,hotAttr:{...ie.hotAttr,order:se+1}};sdkStore.updateHotItem(he)}}),p({type:"entry:refresh:link-list"}),p({type:"entry:select:items",payload:{cids:d==null?void 0:d.selection}});const{hotAttr:Z}=sdkStore.getHotItem(r);(0,X9.Uz)({operation_type:X9.P6.Drag,widget:Z})}),(0,O.A)(this,"handleClick",()=>{const{dispatch:n}=this.props;n({type:"entry:select:items",payload:{cids:[]}})}),(0,O.A)(this,"selectST",n=>{const{dispatch:r}=this.props;r({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:[n]}}),r({type:"entry:STPanel:fit-viewport",payload:{STKey:n}})}),(0,O.A)(this,"deleteST",n=>{const{dispatch:r}=this.props;r({type:"entry:delete:selected-items",payload:{key:n}})}),(0,O.A)(this,"toggleExpandKeySet",n=>{const{dispatch:r}=this.props;r({type:"entry:STPanel:update:expandKeySet",payload:{key:n}})}),(0,O.A)(this,"pushToAlreadyExpandKeySet",n=>{const{dispatch:r}=this.props;r({type:"STPanel:add:alreadyExpandKeySet",payload:{key:n}})}),(0,O.A)(this,"deleteFromAlreadyExpandKeySet",n=>{const{dispatch:r}=this.props;r({type:"STPanel:delete:alreadyExpandKeySet",payload:{key:n}})}),this.state={dragAndDropState:null}}render(){const{stickyList:t,setIsExportOpenFromContainer:n,isOnlyView:r,selection:s,expandKeySet:c,alreadyExpandKeySet:d,STPanelWidth:p,isHtmlZipPreview:g}=this.props,{dragAndDropState:y}=this.state,{matchDataList:w,containerRect:_,rectQueryMap:j,$element:N,offsetX:Z,offsetY:Q}=y||{};return(0,o.jsxs)(cG.TV,{id:"st-list-container",ref:this.createListRef,onClick:this.handleClick,children:[(0,o.jsx)("div",{id:"st-list",className:"st-list",children:t.map((se,ie)=>(0,o.jsx)(lG.i,{isActive:s.includes(se.key),st:se,isHtmlZipPreview:g,setIsExportOpenFromContainer:n,onMouseDown:this.handleMouseDown,editable:!r,selectST:this.selectST,deleteST:this.deleteST,isExpanded:c.has(se.key),isAlreadyExpanded:d.has(se.key),STPanelWidth:p,toggleExpandKeySet:this.toggleExpandKeySet,pushToAlreadyExpandKeySet:this.pushToAlreadyExpandKeySet,deleteFromAlreadyExpandKeySet:this.deleteFromAlreadyExpandKeySet},ie))}),y&&(0,o.jsx)(F9.A,{draggingElement:N,getContainerElement:this.getContainerElement,matchDataList:w,containerRect:_,rectQueryMap:j,offsetX:Z,offsetY:Q,onDrop:this.handleDrop})]})}}var g6=i(40988),J9=i(44599);const pG=E.Ay.div.withConfig({displayName:"styles__StyledSTPanelContainer",componentId:"sc-i5vtxm-0"})(["&.comment-panel{width:100%;height:100%;position:absolute;right:0;border-radius:4px;display:flex;flex:1 1 0%;flex-direction:column;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 16px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.st-filter-dropdown,.st-options-dropdown{width:auto;}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684fc;}path{fill:#fff !important;}}}.filter-content-container{width:144px;display:flex;justify-content:center;position:relative;padding:8px 0;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;padding-left:8px;padding-right:8px;color:#fff;cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background-color:#666;}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;.svg-icon{width:20px;height:20px;path{fill:none;}}}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:rgba(245,245,245,0.1);margin:6px 0;}}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-st{height:45px;}.show-st-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";&:hover,&:active{color:",";}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),uG=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(!1),{stickyList:r,selection:s,expandKeySet:c,alreadyExpandKeySet:d,STPanelWidth:p,dispatch:g,isHtmlZipPreview:y}=e,w=new Set([...Array.from(c),...Array.from(d)]),_=!r.every(Z=>{let{key:Q}=Z;return d.has(Q)}),j=r.every(Z=>{let{key:Q}=Z;return w.has(Q)}),N=()=>{g({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:j,stickyList:r}})};return(0,o.jsxs)(pG,{id:"STPanel-container",className:"comment-panel",children:[(0,o.jsxs)("div",{className:"filter-header",children:[(0,o.jsx)("h3",{children:I18N.Note.note}),_&&(0,o.jsx)("span",{className:"expandAll",onClick:N,children:j?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),r.length===0?(0,o.jsx)(J9.h,{}):(0,o.jsx)(Q9,{selection:s,isOnlyView:!1,isHtmlZipPreview:!1,stickyList:r,setIsExportOpenFromContainer:n,expandKeySet:c,alreadyExpandKeySet:d,dispatch:g,STPanelWidth:p}),!y&&(0,o.jsx)(g6.A,{isExportOpenFromContainer:t,setIsExportOpenFromContainer:n})]})}),hG=(0,k.Mz)([re.Ur,Oe.p$,Wc.zM,Wc.ju,Wc.TW,Y.uu,re.$5],(e,t,n,r,s,c,d)=>{let p=e!=null&&e.cid?(0,ho.UR)(e.cid):[];return p.length&&(p=p.map(g=>{const{authorCid:y}=g.hotAttr.info;let w;if(y){var _;if(d){var j;w=d==null||(j=d.find(N=>N.user_cid===y))==null?void 0:j.name}else((_=MB.user)==null?void 0:_.cid)===y&&(w=MB.user.name)}return w?{...g,hotAttr:{...g.hotAttr,info:{...g.hotAttr.info,author:w}}}:g})),{selection:t,expandKeySet:n,alreadyExpandKeySet:r,STPanelWidth:s,stickyList:p,isHtmlZipPreview:c}}),mG=(0,a.Ng)(e=>hG(e))(uG);function fG(){return(0,o.jsx)(f6,{id:"ST-panel",children:(0,o.jsx)(mG,{})})}const R4=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__StyledVersionModel",componentId:"sc-1fu9lb0-0"})(["border:1px solid ",";&.ResetVersionConfirmModel{width:400px !important;.header{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:30px;}}p.tip{margin-top:6px;line-height:20px;color:",";}}&.CollaboratorsConfirmModel{width:510px;.collaborators-scroll-container{width:470px;padding:0 0 0 24px;margin-top:20px;position:relative;height:76px;overflow-y:auto;.collaborators-container{display:flex;flex-flow:row wrap;}.collaborators-item{width:70px;margin-right:28px;margin-bottom:20px;display:flex;flex-direction:column;align-items:center;.collaborator-avatar{width:34px;height:34px;margin-bottom:8px;}.collaborator-name{color:",";font-size:12px;line-height:14px;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}&.UpgradeToOrgModel{margin-top:100px;width:530px;border-radius:8px;> header{display:none;}.content{padding:24px 24px 40px 24px;border-radius:8px;.close-container{display:flex;justify-content:flex-end;.close-icon{width:14px;height:14px;cursor:pointer;path{fill:",";}}}.title{font-size:18px;line-height:25px;font-weight:500;text-align:center;margin-bottom:20px;color:",";}p{text-align:center;}p a{color:",";text-decoration:underline;&:hover{color:#1a70d8;}}.background-container{width:100%;padding:18px;border:1px solid #ededed;border-color:",";background:",";border-radius:2px;margin:24px 0;.org-features-title{padding:0;font-size:14px;line-height:20px;font-weight:500;color:",";margin-bottom:22px;text-align:center;a{color:",";font-weight:400;text-decoration:underline;&:hover{color:#1a70d8;}}}.org-features-container{display:flex;width:100%;justify-content:space-between;.org-feature-item{width:90px;display:flex;flex-flow:column nowrap;align-items:center;.org-feature-image{display:block;height:79px;width:auto;}.org-feature-text{font-size:12px;line-height:17px;margin-top:8px;}}.divider{width:1px;height:51px;background:#e8e8e8;transform:translateY(14px);}}}.upgrade-link{display:block;text-align:center;width:316px;height:32px;line-height:32px;border-radius:2px;background:",";color:#fff;font-size:14px;margin:0 auto;&:hover{background:",";}}}}&.VersionResetNoticeModel{width:510px;}&.DeleteVersionConfirmModel{width:400px !important;}&.new-version-modal{width:400px !important;.modal-content{display:flex;flex-direction:column;input,textarea{color:",";border-radius:6px;padding:10px 12px;resize:none;outline:1px solid ",";border:none;&::placeholder{color:",";}&:focus{outline:2px solid ",";}}.version-title-input{width:100%;height:32px;margin-bottom:10px;}.version-description-container{position:relative;height:104px;width:100%;outline:1px solid ",";border-radius:6px;padding:10px 2px 0 0;&.is-active{outline:2px solid ",";}.version-description-input{width:100%;height:66px;outline:none;padding:0 4px 0 12px;background-color:inherit;&::-webkit-scrollbar{height:36px;}}.words-counter{position:absolute;bottom:6px;right:12px;font-size:12px;line-height:14px;color:",";&.is-limit{color:",";}}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_bg_border_02,e=>e.theme.modal_bg1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_text_L3,e=>e.theme.color_text_error),gG=(0,l.memo)(e=>{let{projectCid:t,allVersions:n,currentDeleting:r,currentViewing:s,dispatch:c}=e;if(!r)return null;const d=()=>u_({projectCid:t,versionCid:r.cid,allVersions:n,currentViewing:s,dispatch:c}),p=()=>{c({type:"versions:model:deleting:close"})};return(0,o.jsxs)(R4,{isOpen:!!r,title:I18N.VersionManagementPane.delete_version_model_title,onConfirm:d,confirmText:I18N.VersionManagementPane.delete_version_model_confirm,onCancel:p,onClose:p,cancelText:I18N.VersionManagementPane.delete_version_model_cancel,className:"DeleteVersionConfirmModel",children:[(0,o.jsxs)("p",{children:[I18N.VersionManagementPane.delete_version_model_text1,r.title,I18N.VersionManagementPane.delete_version_model_text2]}),(0,o.jsx)("p",{children:I18N.VersionManagementPane.delete_version_model_text3})]})}),yG=(0,l.memo)(e=>{let{projectCid:t,currentResetting:n,currentCollaborators:r,dispatch:s}=e;if(!n||!r.checked)return null;const c=async()=>{try{await h_(n==null?void 0:n.cid),Um("\u8FD8\u539F\u7248\u672C")}catch(p){/404/.test(p.message)&&(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),Pg({projectCid:t,dispatch:s}))}},d=()=>{s({type:"versions:model:resetting:close"})};return(0,o.jsxs)(R4,{isOpen:!!n&&r.checked,title:(0,o.jsx)("span",{children:I18N.VersionManagementPane.reset_version_model_title+"\u300C"+n.title+"\u300D"}),onConfirm:c,confirmText:I18N.VersionManagementPane.reset_model_confirm,onCancel:d,onClose:d,cancelText:I18N.VersionManagementPane.reset_model_cancel,className:"ResetVersionConfirmModel",children:[(0,o.jsx)("p",{children:I18N.VersionManagementPane.reset_version_model_text1}),(0,o.jsx)("p",{className:"tip",children:"\u5F53\u524D\u5DE5\u4F5C\u533A\u5185\u5BB9\u5C06\u81EA\u52A8\u4FDD\u5B58\u5230\u7248\u672C\u8BB0\u5F55\u4E2D\u3002"})]})}),vG=(0,l.memo)(e=>{let{currentCollaborators:t,dispatch:n}=e;const{collaborators:r,checked:s}=t;if(!r.length||s)return null;const c=async()=>{n({type:"versions:model:resetting:cllaborators:confirm"})},d=()=>{n({type:"versions:model:resetting:close"})};return(0,o.jsxs)(R4,{isOpen:!!r.length&&!s,title:r.length+" "+I18N.VersionManagementPane.collaborator_model_title,onConfirm:c,confirmText:I18N.VersionManagementPane.collaborator_model_confirm,onCancel:d,onClickCloseIcon:d,cancelText:I18N.VersionManagementPane.collaborator_model_cancel,className:"CollaboratorsConfirmModel",children:[(0,o.jsx)("p",{children:I18N.VersionManagementPane.collaborator_model_text}),(0,o.jsx)("div",{className:"collaborators-scroll-container",children:(0,o.jsx)("div",{className:"collaborators-container",children:r.map(p=>{let[g,y,w]=p;return(0,o.jsxs)("div",{className:"collaborators-item",children:[(0,o.jsx)("img",{className:"collaborator-avatar",src:w}),(0,o.jsx)("p",{className:"collaborator-name",children:y})]},g)})})})]})}),xG=(0,l.memo)(e=>{let{onClose:t,projectCid:n,projectName:r,currentUser:s,currentOrg:c,allVersions:d,currentEditing:p,dispatch:g}=e;const y=p?d.find(Je=>{let{cid:Ne}=Je;return Ne===p.cid}):null,[w,_]=(0,l.useState)((y==null?void 0:y.title)||""),[j,N]=(0,l.useState)((y==null?void 0:y.description)||""),[Z,Q]=(0,l.useState)(!1),se=(0,l.useRef)(null),ie=(0,l.useRef)(null);(0,l.useEffect)(()=>{var Je;(Je=se.current)==null||Je.select()},[]);const he=()=>{g({type:"versions:update",payload:{currentEditing:null}})},xe=async()=>{await he(),y?await p_({projectCid:n,versionCid:y.cid,newTitle:w,newDesc:j,dispatch:g,allVersions:d}):await lv({projectCid:n,dispatch:g,title:w,desc:j,projectName:r,currentUserName:s.name,currentOrgCid:(c==null?void 0:c.cid)||""}),await Pg({projectCid:n,dispatch:g,accessToken:""}),t()},Se=async()=>{await he(),t()},_e=Je=>{if(Je.key===wn._.Enter)Je.preventDefault(),xe();else if(Je.key===wn._.Tab){var Ne;Je.preventDefault(),(Ne=ie.current)==null||Ne.select()}},De=Je=>{if(Je.key===wn._.Enter&&!Je.shiftKey)Je.preventDefault(),xe();else if(Je.key===wn._.Tab)Je.preventDefault();else if(Je.key===wn._.Enter){var Ne;((Ne=ie.current)==null?void 0:Ne.scrollHeight)>=parseInt(window.getComputedStyle(ie.current).lineHeight)*10&&(MB.notice({text:I18N.VersionManagementPane.version_toast_edit_lines_overflow,type:"warning"}),Je.preventDefault())}};return(0,o.jsxs)(R4,{isOpen:!0,title:"\u7248\u672C\u4FE1\u606F",onConfirm:xe,onClose:Se,className:"new-version-modal",children:[(0,o.jsx)("input",{type:"text",className:"version-title-input",value:w,maxLength:25,ref:se,placeholder:an()().format("YYYY.MM.DD HH:mm"),onChange:Je=>_(Je.target.value),onKeyDown:_e}),(0,o.jsxs)("div",{className:m()("version-description-container",{"is-active":Z}),children:[(0,o.jsx)("textarea",{ref:ie,className:"version-description-input",value:j,maxLength:200,placeholder:"\u8F93\u5165\u7248\u672C\u63CF\u8FF0",onChange:Je=>N(Je.target.value),onKeyDown:De,onFocus:()=>Q(!0),onBlur:()=>Q(!1)}),(0,o.jsx)("div",{className:m()("words-counter",{"is-limit":j.length>=200}),children:(0,o.jsxs)("span",{children:[j.length,"/200"]})})]})]})}),bG=(0,k.Mz)([Wc.cS,q.MZ],(e,t)=>{const{filter:n}=e;return{filter:n,isV9Layout:t==="recommend"}}),q9=(0,l.memo)(()=>{const[e,t]=(0,l.useState)({top:0,left:0}),[n,r]=(0,l.useState)(!1),s=(0,l.useRef)(null),c=(0,a.wA)(),{filter:d,isV9Layout:p}=(0,a.d4)(bG),g=(0,o.jsx)(Et.C,{name:"toolbar/selected",className:"selected-icon"}),y=_=>{const j=_.currentTarget.dataset.type;c({type:"versions:update",payload:{filter:j}}),Um(j==="all"?"\u7B5B\u9009-\u5168\u90E8":"\u7B5B\u9009-\u624B\u52A8\u521B\u5EFA")},w=_=>{if(r(_),!_||!s.current)return;const{left:j,bottom:N}=s.current.getBoundingClientRect();t({top:N+6,left:j+23})};return(0,o.jsx)(CG,{renderOpener:(0,o.jsx)(Os.A,{content:"\u7B5B\u9009",direction:"down",children:(0,o.jsx)(pc.A,{className:m()("filter-icon",{active:n,"filter-icon-active":d==="active"}),name:d==="active"?"comment/filter-active":"comment/filter",size:24,ref:s})}),direction:"down",onClick:w,renderMenu:(0,o.jsxs)(wG,{position:e,className:m()({isV9Layout:p}),children:[(0,o.jsx)(He.Dr,{text:"\u5168\u90E8",dataType:"all",onClick:y,icon:d==="all"?g:null}),(0,o.jsx)(He.Dr,{text:"\u624B\u52A8\u521B\u5EFA",dataType:"active",onClick:y,icon:d==="active"?g:null})]})})}),CG=(0,E.Ay)(pm.A).withConfig({displayName:"VersionFilterDropdown__StyledVersionFilterDropdown",componentId:"sc-gbgndu-0"})([".filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}"]),wG=(0,E.Ay)(He.Ay).withConfig({displayName:"VersionFilterDropdown__StyledContextMenu",componentId:"sc-gbgndu-1"})(["min-width:144px;width:max-content;ul{min-width:144px;}&.isV9Layout{",";}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],pr.ZJ),SG=(0,l.memo)(e=>{let{currentViewing:t,onClickCreatingButton:n,onClosePane:r,allVersions:s,orgPlan:c,isReadOnly:d,dispatch:p}=e;const g=(0,l.useRef)(null),[y,w]=(0,l.useState)(!1),_=(0,l.useMemo)(()=>!MB.getRootProject().is_org_project,[]),j=(0,l.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const se=s.filter(ie=>ie.category==="active").length;if(c==="org_free"||c==="org_expire")return se>=2;if(c==="org_lite")return se>=10;if(c==="org_full"||c==="org_trial")return se>=30}return!1},[s,c]),N=se=>{se.stopPropagation(),g.current=setTimeout(()=>{w(!0)},0)},Z=()=>{g.current&&clearTimeout(g.current),w(!1)},Q=()=>{p({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.ProjectVersionFromCount}}})};return(0,o.jsxs)("header",{className:"panel-header",children:[(0,o.jsx)("span",{className:"title",children:I18N.VersionManagementPane.version_pane_title}),(0,o.jsxs)("div",{className:"actions",children:[!d&&(!t&&(_||j)?(0,o.jsxs)("div",{className:"disable-add-version-content",onMouseEnter:N,onMouseLeave:Z,children:[(0,o.jsx)(pc.A,{name:"common/add_plus",onClick:n,size:24,isDisabled:!0}),y&&(0,o.jsxs)("div",{className:"drop-tips-content",onClick:se=>se.stopPropagation(),children:[(0,o.jsx)("div",{className:"top-bar"}),(0,o.jsx)("span",{children:_?"\u4E2A\u4EBA\u7248\u4E0D\u652F\u6301\u624B\u52A8\u521B\u5EFA\u7248\u672C\u8BB0\u5F55":"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u6570\u91CF\u5DF2\u8FBE\u5230\u4E0A\u9650"}),(0,o.jsx)("a",{onClick:Q,children:"\u5347\u7EA7"})]})]}):!t&&(0,o.jsx)(Os.A,{content:"\u6DFB\u52A0\u7248\u672C",direction:"down",children:(0,o.jsx)(pc.A,{name:"common/add_plus",onClick:n,size:24})})),(0,o.jsx)(q9,{}),!t&&(0,o.jsx)(Os.A,{content:"\u5173\u95ED",direction:"down",children:(0,o.jsx)(pc.A,{name:"common/close",size:24,className:"close-pane-icon",onClick:r})})]})]})}),AG=E.Ay.aside.withConfig({displayName:"styles__StyledVersionManagementPane",componentId:"sc-180wedk-0"})(["position:relative;width:240px;height:100%;background:",";z-index:106;right:0;display:flex;flex-direction:column;box-shadow:-1px 0 0 ",";&.only-view{box-shadow:none;z-index:auto;right:auto;width:100%;&.in-version{border-left:none;width:240px;}}&.in-version{width:241px;border-left:1px solid ",";}a{cursor:pointer;color:",";&:hover{color:",";}}.panel-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",";height:40px;padding:0 10px 0 16px;.disable-add-version-content{position:relative;z-index:1;.drop-tips-content{font-size:12px;font-weight:400;line-height:18px;position:absolute;background:#454647;top:38px;right:-45px;width:max-content;padding:4px 6px;border-radius:6px;&::before{content:'';position:absolute;top:0;right:51px;transform:translateY(-100%);display:inline-block;width:0;height:0;border:6px solid transparent;border-bottom:6px solid #454647;}.top-bar{position:absolute;width:100%;height:15px;top:-15px;right:0;}span{color:",";}a{margin-left:10px;color:#80BCFF;&:hover{color:",";}}}}&.is-auto-save{.title{font-weight:400;}}.title{color:",";font-size:12px;line-height:16px;font-weight:500;}.actions{display:flex;.toolbar-dropdown-opener{color:",";}.filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}}}.panel-content{flex:1;overflow:hidden auto;position:relative;.versions-list-scroll-container{max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;.upgrade-tips{width:208px;margin:8px auto;padding:10px;background-color:",";border-radius:6px;color:",";}.versions-loading{position:absolute;width:50px;height:50px;left:50%;top:50%;transform:translate(-50%);}.versions-blank-container{width:180px;margin:160px auto;.versions-blank-bg{width:99px;height:auto;margin:0 auto;display:block;margin-bottom:25px;position:relative;left:-8px;}.blank-title{font-size:14px;line-height:20px;font-weight:500;margin-bottom:6px;text-align:center;color:",";}.blank-text{font-size:12px;line-height:17px;text-align:center;color:",";}}}}.panel-bottom{padding:8px 16px;background-color:",";border-top:1px solid ",";color:",";}"],e=>e.theme.color_bg_white,e=>e.theme.color_background_split,e=>e.theme.color_background_split,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_btn,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_info_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2),MG=E.Ay.div.withConfig({displayName:"styles__StyledVersionItem",componentId:"sc-180wedk-1"})(["&.version-item-wrapper{padding-top:12px;width:100%;overflow:hidden;cursor:pointer;&.is-hide{cursor:auto;.top-part{.version-title{opacity:0.3;}}.bottom-part{opacity:0.3;}}&.has-expand{&.is-expand{.bottom-part .version-description{max-height:none;overflow:initial;}}.bottom-part{.version-description{display:flex;flex-direction:column;max-height:56px;overflow:hidden;margin-bottom:0;}.expand-action{min-height:24px;line-height:24px;color:",";}}}&.is-auto-create{.top-part .version-title{font-weight:400;}}.top-part{display:flex;justify-content:space-between;align-items:center;height:24px;padding:0 10px 0 16px;.version-title{flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:12px;line-height:16px;font-weight:500;color:",";}.options{display:flex;align-items:center;.option{display:none;&:not(.disabled):hover{background-color:transparent;}&:not(.disabled){cursor:pointer;color:",";}}}}.bottom-part{display:flex;flex-direction:column;padding:0 16px;.version-description{display:flex;align-items:center;color:",";font-size:12px;min-height:24px;white-space:pre-wrap;word-break:break-word;}.bottom-line{display:flex;align-items:center;min-height:24px;.version-author-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:",";font-size:12px;line-height:17px;font-weight:500;margin-right:6px;}.create-time{color:",";font-size:12px;line-height:17px;}}}.divider-line{border-top:1px solid ",";margin-top:12px;}&:hover{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&.active{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&:last-child{.divider-line{border:none;}}}"],e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.comment_active),$9=(0,l.memo)(e=>{let{versionCid:t,title:n,description:r,createdTime:s,ownerName:c,category:d,currentViewing:p,dispatch:g,onOpenVersionModal:y,isHide:w,isOrgFree:_,isReadOnly:j,showDays:N}=e;const Z=an()(s).format("YYYY.MM.DD HH:mm"),[Q,se]=(0,l.useState)(!1),[ie,he]=(0,l.useState)(!1),xe=l.useRef(null),Se=MB.currentOrg?c:MB.user.name;(0,l.useEffect)(()=>{xe.current&&xe.current.clientHeight>48&&he(!0)},[r]);const _e=async gt=>{w||(gt.stopPropagation(),await g({type:"versions:update",payload:{currentEditing:{cid:t}}}),y())},De=gt=>{gt.stopPropagation(),g({type:"versions:model:deleting:open",payload:{currentDeleting:{cid:t,title:n}}})},Je=gt=>{w||(gt.stopPropagation(),m_({versionCid:t,title:n,dispatch:g}))},Ne=()=>{w||g({type:"versions:update",payload:{currentViewing:{cid:t,title:n}}})},pt=(gt,Ct)=>Ct.offsetWidth<Ct.scrollWidth,_t=gt=>{gt.stopPropagation(),se(!Q)};return(0,o.jsxs)(MG,{className:m()("version-item-wrapper",{active:p&&p.cid===t},{"has-expand":ie},{"is-expand":Q},{"is-auto-create":d==="auto"},{"is-hide":w}),onClick:Ne,children:[(0,o.jsxs)("div",{className:"top-part",children:[(0,o.jsx)(Os.A,{direction:"down",content:n,isShowTipsByTarget:pt,children:(0,o.jsx)("h4",{className:"version-title",children:n})}),!j&&(0,o.jsxs)("div",{className:"options",children:[(0,o.jsx)(Os.A,{direction:"down",content:w?"\u8D85\u8FC7 "+N+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u8FD8\u539F":"\u8FD8\u539F\u7248\u672C",children:(0,o.jsx)(pc.A,{className:"option",name:"design/versions/restore",onClick:Je,size:24,isDisabled:w})}),(0,o.jsx)(Os.A,{direction:"down",content:d==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":w?"\u8D85\u8FC7 "+N+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":I18N.VersionManagementPane.version_item_option_edit,children:(0,o.jsx)(pc.A,{className:"option",name:"design/versions/edit",onClick:_e,size:24,isDisabled:d==="auto"||w})}),(0,o.jsx)(Os.A,{direction:"down",content:d==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u5220\u9664":I18N.VersionManagementPane.version_item_option_delete,children:(0,o.jsx)(pc.A,{className:"option",name:"design/versions/delete",onClick:De,size:24,isDisabled:d==="auto"})})]})]}),(0,o.jsxs)("div",{className:"bottom-part",children:[r&&(0,o.jsx)("p",{className:"version-description",ref:xe,children:r}),ie?(0,o.jsx)("span",{className:"expand-action",onClick:_t,children:Q?"\u6536\u8D77":"\u5C55\u5F00"}):null,(0,o.jsxs)("div",{className:"bottom-line",children:[(0,o.jsx)(Os.A,{direction:"down",content:c,isShowTipsByTarget:pt,children:(0,o.jsx)("p",{className:"version-author-name",children:Se})}),d==="active"&&(0,o.jsx)("p",{className:"create-time",children:Z})]})]}),(0,o.jsx)("div",{className:"divider-line"})]})}),eb=3,tb=30,kG=(0,l.memo)(e=>{let{allVersions:t,currentViewing:n,orgPlan:r,soloPlan:s,dispatch:c,onOpenVersionModal:d,isReadOnly:p,isSoloLifeTime:g}=e;const y=s==="free"||r==="org_free",w=(0,l.useMemo)(()=>y?eb:(p?!(g||r===Ds.Sj.OrgFull):s===Ds.L1.Solo||r===Ds.Sj.OrgLite)?tb:null,[y,g,r,s,p]),{showFilterVersions:_,filterHideAutoAndActiveVersions:j}=(0,l.useMemo)(()=>{const Q=[],se=[];return w!==null?(t.forEach(ie=>{an()().diff(an()(ie.created_at),"day")<=w?Q.push(ie):se.push(ie)}),{showFilterVersions:Q,filterHideAutoAndActiveVersions:se}):{showFilterVersions:t,filterHideAutoAndActiveVersions:[]}},[t,w]),N=()=>{c({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.ProjectVersionFromTime}}})},Z=j.findIndex(Q=>Q.category==="auto")!==-1;return(0,o.jsxs)("div",{className:"version-items-wrapper",children:[_.map(Q=>{let{cid:se,title:ie,description:he,owner_name:xe,created_at:Se,category:_e}=Q;return(0,o.jsx)($9,{versionCid:se,title:ie,description:he,ownerName:xe,createdTime:Se,category:_e,currentViewing:n,isReadOnly:p,dispatch:c,onOpenVersionModal:d,isHide:!1},se)}),Z&&(0,o.jsxs)("div",{className:"upgrade-tips",children:["\u8D85\u8FC7 ",y?eb:tb," \u5929\u7684\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u9700\u8981\u5347\u7EA7\u4F1A\u5458\u67E5\u770B",(0,o.jsx)("a",{onClick:N,children:"\u7ACB\u5373\u5347\u7EA7"})]}),j.map(Q=>{let{cid:se,title:ie,description:he,owner_name:xe,created_at:Se,category:_e}=Q;return(0,o.jsx)($9,{versionCid:se,title:ie,description:he,ownerName:xe,createdTime:Se,category:_e,currentViewing:n,dispatch:c,onOpenVersionModal:d,isHide:_e==="auto",isOrgFree:r==="org_free",showDays:w},se)})]})}),EG=(0,l.memo)(e=>{let{projectCid:t,projectName:n,allVersions:r,fetched:s,fetching:c,isVersionManagementPaneShow:d,currentEditing:p,currentViewing:g,currentDeleting:y,currentResetting:w,currentCollaborators:_,filter:j,theme:N,isReadOnly:Z,accessToken:Q,dispatch:se,currentUser:ie,currentOrg:he,onlyView:xe}=e;const[Se,_e]=(0,l.useState)(!1),De=(0,l.useRef)(!1),Je=l.useRef(null),Ne=(0,l.useRef)(null),pt=De.current,{maxProjectVersionCount:_t}=(0,wr.xR)(ie,he);(0,l.useEffect)(()=>{De.current=d}),(0,l.useEffect)(()=>{!pt&&d&&Pg({projectCid:t,accessToken:Q,dispatch:se})},[se,d,pt,t]);const gt=()=>{_e(!0)},Ct=()=>{_e(!1)},zt=()=>{se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),Um("\u5173\u95ED")},Dt=(0,l.useMemo)(()=>j==="all"?r:r.filter(Lo=>{let{category:Yo}=Lo;return Yo===j}),[j,r]),sn=(0,l.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const{plan:Lo}=(0,wr.rM)(MB.currentOrg);return Lo}return null},[]),{soloPlan:Rn,isSoloLifeTime:On}=(0,l.useMemo)(()=>{if(MB.user&&!MB.getRootProject().is_org_project){const Yo=Xs.tz.InitialUser(MB.user).planSdk.prototypePlan.getUserPlan(),Cn=[Ds.L1.Lifetime,Ds.L1.PremiumLifetime].includes(Yo);return{soloPlan:Yo,isSoloLifeTime:Cn}}return{}},[]);return(0,o.jsxs)(AG,{id:"version-panel",className:m()({"only-view":xe},{"in-version":g}),children:[!xe&&(0,o.jsx)(SG,{currentViewing:g,onClickCreatingButton:gt,onClosePane:zt,allVersions:r,isReadOnly:Z,orgPlan:sn,dispatch:se}),(0,o.jsx)("div",{className:"panel-content",ref:Je,children:(0,o.jsxs)("div",{className:"versions-list-scroll-container",ref:Ne,children:[c?(0,o.jsx)(E0.f,{className:"versions-loading"}):s?Dt.length?(0,o.jsx)(kG,{allVersions:Dt,currentViewing:g,dispatch:se,onOpenVersionModal:gt,orgPlan:sn,soloPlan:Rn,isReadOnly:Z,isSoloLifeTime:On}):(0,o.jsx)(TG,{theme:N,filter:j}):null,(0,o.jsx)(Ii.yP,{type:"vertical",containerRef:Ne,isAutoHideBar:!0})]})}),(0,o.jsxs)("div",{className:"panel-bottom",children:["\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4EC5\u4FDD\u5B58 180 \u5929\uFF0C\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\u3002",!ENV.IS_ON_PREMISES&&(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/415",onClick:()=>Um("\u4E86\u89E3\u66F4\u591A"),children:"\u4E86\u89E3\u66F4\u591A"})]}),(0,o.jsx)(gG,{projectCid:t,allVersions:r,currentDeleting:y,currentViewing:g,dispatch:se}),(0,o.jsx)(yG,{projectCid:t,allVersions:r,currentResetting:w,currentCollaborators:_,dispatch:se,currentUser:ie,currentOrg:he,maxProjectVersionCount:_t}),(0,o.jsx)(vG,{currentCollaborators:_,dispatch:se}),Se&&(0,o.jsx)(xG,{onClose:Ct,projectCid:t,projectName:n,currentUser:ie,currentOrg:he,currentEditing:p,allVersions:r,dispatch:se})]})}),IG=(0,k.Mz)([Wc.cS,re.wA,re.HW,re.PL,q.O4,Y.jx,re.z$],(e,t,n,r,s,c,d)=>{const{allVersions:p,fetched:g,fetching:y,isVersionManagementPaneShow:w,currentEditing:_,currentViewing:j,currentDeleting:N,currentResetting:Z,currentCollaborators:Q,filter:se}=e,ie=c===Te.qi.OnlyView,he=ie?d==null?void 0:d.access_token:"";return{projectName:r.name,projectCid:r.cid,allVersions:p,fetched:g,fetching:y,isVersionManagementPaneShow:w,currentEditing:_,currentViewing:j,currentDeleting:N,currentResetting:Z,filter:se,currentCollaborators:Q,theme:s,currentOrg:t,currentUser:n,isReadOnly:ie,accessToken:he}}),nb=(0,a.Ng)(e=>IG(e))(EG),ob={VERSIONS_LIST_DARK:["/mb-workspace/images/workspace/design/versions_blank_dark.png","/mb-workspace/images/workspace/design/versions_blank_dark_en.png"],VERSIONS_LIST_LIGHT:["/mb-workspace/images/workspace/design/versions_blank_light.png","/mb-workspace/images/workspace/design/versions_wonder.png"]},TG=(0,l.memo)(e=>{let{theme:t,filter:n}=e;return(0,o.jsxs)("div",{className:"versions-blank-container",children:[(0,o.jsx)("img",{src:t==="dark"?ob.VERSIONS_LIST_DARK[+(ENV.IS_MO===!0)]:ob.VERSIONS_LIST_LIGHT[+(ENV.IS_MO===!0)],className:"versions-blank-bg"}),n==="all"?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"blank-title",children:I18N.VersionManagementPane.versions_blank1}),(0,o.jsx)("p",{className:"blank-text",children:I18N.VersionManagementPane.versions_blank2})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"blank-title",children:"\u65E0\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u8BB0\u5F55"}),(0,o.jsx)("p",{className:"blank-text",children:"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\uFF0C\u5E2E\u60A8\u8F7B\u677E\u8FD8\u539F\u5230\u67D0\u4E00\u5173\u952E\u8282\u70B9\u3002"})]})]})});var ab=i(96582);const _G=E.Ay.div.withConfig({displayName:"styles__StyledSingleNewbieVideo",componentId:"sc-1cm90x5-0"})(["width:240px;height:154px;margin-top:8px;.video-cover{position:relative;width:240px;height:124px;text-align:center;img{width:220px;height:124px;border-radius:8px;}.video-play-mask{position:absolute;top:0;left:10px;width:220px;height:124px;background-color:rgba(0,0,0,0.08);border-radius:8px;display:flex;justify-content:center;align-items:center;}}.video-info{width:240px;height:30px;padding:6px 16px;display:flex;justify-content:space-between;.video-title{max-width:160px;p{color:",";font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.video-duration{width:40px;height:18px;border-radius:9px;background-color:",";text-align:center;p{color:",";font-size:12px;font-weight:400;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2),PG=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),r=""+t,s=n<10?"0"+n:""+n;return r+":"+s};function LG(e){let{index:t,coverSrc:n,videoSrc:r,videoName:s,duration:c}=e;const d=(0,a.wA)(),p=(0,l.useCallback)(()=>{d({type:"modal:update:state",payload:{newbieVideoModal:{isOpen:!0,index:t}}})},[]),[g,y]=(0,l.useState)(!1);return(0,o.jsxs)(_G,{children:[(0,o.jsxs)("div",{className:"video-cover",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[(0,o.jsx)("img",{src:n,alt:s}),g&&(0,o.jsx)("div",{className:"video-play-mask",children:(0,o.jsx)(Fl.jn,{onClick:p,children:I18N.Common.play_video})})]}),(0,o.jsxs)("div",{className:"video-info",children:[(0,o.jsx)("div",{className:"video-title",children:(0,o.jsx)("p",{children:s})}),(0,o.jsx)("div",{className:"video-duration",children:(0,o.jsx)("p",{children:PG(c)})})]})]})}const NG=(0,l.memo)(LG),jG=E.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoPanel",componentId:"sc-eymadb-0"})(["width:240px;height:100%;background:",";position:absolute;z-index:4;.newbie-video-header{display:flex;align-items:center;height:40px;border-bottom:1px solid ",";p{color:",";font-size:12px;font-weight:600;margin-left:16px;}.close{cursor:pointer;margin:0 8px 0 auto;width:24px;border-radius:4px;color:",";&:hover{background:",";}&:active{background:",";}}}.newbie-video-list{height:calc(100% - 40px);padding-top:2px;overflow-y:scroll;overflow-x:hidden;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),rb=200,DG=()=>({right:-308,transition:"right "+rb+"ms ease-in-out"}),OG=()=>({entering:{right:-308},entered:{right:0},exiting:{right:-308}});function RG(){const e=(0,a.wA)(),t=(0,a.d4)(Wc.BR),n=()=>{e({type:"newbieVideoPanelState:toggle",payload:{show:!1}})};return(0,o.jsx)(ab.Ay,{in:t,timeout:rb,children:r=>{if(r===ab.Ay.EXITED)return null;const s={...DG(),...OG()[r]};return(0,o.jsxs)(jG,{id:"newbie-video-panel",style:s,children:[(0,o.jsxs)("div",{className:"newbie-video-header",children:[(0,o.jsx)("p",{children:I18N.ToolBar.newbie_video}),(0,o.jsx)(Et.C,{name:"common/close",className:"close",onClick:n})]}),(0,o.jsx)("div",{className:"newbie-video-list",children:yp.map((c,d)=>(0,o.jsx)(NG,{index:d,coverSrc:c.coverSrc,videoSrc:c.videoSrc,videoName:c.videoName,duration:c.duration},d))})]})}})}const ib=(0,l.memo)(RG),BG=E.Ay.div.withConfig({displayName:"styles__StyledRightPanel",componentId:"sc-iqy9e-0"})(["position:relative;height:100%;display:flex;box-shadow:-1px 0 0 ",";z-index:5;#ST-panel,#design-comment-panel,#version-panel,#newbie-video-panel{position:absolute;}#ST-panel,#design-comment-panel{z-index:2;}#version-panel{z-index:3;}#newbie-video-panel{z-index:4;}"],e=>e.theme.color_bg_border_01);function UG(){const{isShowSettingPanel:e,isShowCommentPanel:t,isShowSTPanel:n,isShowVersionPanel:r,isShowNewbieVideoPanel:s}=(0,a.d4)(FG);return(0,o.jsxs)(BG,{className:"mb-right-panel",children:[e&&(0,o.jsx)(eG,{}),t&&(0,o.jsx)(sG,{}),n&&(0,o.jsx)(fG,{}),r&&(0,o.jsx)(nb,{}),s&&(0,o.jsx)(ib,{})]})}const FG=(0,k.Mz)([Wc.UI,Vf.C,re.W4,P.sI,EW.Lc,Wc.cS],(e,t,n,r,s,c)=>{let{isEmptyScreen:d}=t,{isDesign:p}=n,{currentViewing:g,isVersionManagementPaneShow:y}=c;return{isShowSettingPanel:e&&!d&&!g,isShowCommentPanel:e&&!d&&r,isShowSTPanel:e&&!d&&!r&&s,isShowVersionPanel:p&&y,isShowNewbieVideoPanel:p}}),VG=(0,l.memo)(UG);var zG=i(77595);function WG(e){const{stickyList:t,expandKeySet:n,alreadyExpandKeySet:r}=e,s=(0,a.d4)(Oe.p$),c=(0,a.d4)(Y.uu),d=(0,a.d4)(Wc.TW),[p,g]=(0,l.useState)(!1),y=(0,a.wA)();return(0,o.jsxs)(o.Fragment,{children:[t!=null&&t.length?(0,o.jsx)(Q9,{selection:s,isOnlyView:!0,isHtmlZipPreview:c,stickyList:t,setIsExportOpenFromContainer:g,expandKeySet:n,alreadyExpandKeySet:r,STPanelWidth:d,dispatch:y}):(0,o.jsx)(J9.h,{}),!c&&(0,o.jsx)(g6.A,{isExportOpenFromContainer:p,setIsExportOpenFromContainer:g})]})}const HG=(0,l.memo)(WG);var GG=i(54222);function ZG(){const e=(0,a.d4)(Y.uu),t=(0,a.d4)(Y.jx),n=(0,a.d4)(P.Cb),r=(0,a.d4)(P.ZA),s=(0,a.d4)(Wc.TW),c=(0,a.d4)(q.O4);return(0,o.jsx)(GG.K,{activeCommentCid:n,commentList:r,isHtmlZipPreview:e,commentPanelWidth:s,viewType:t,theme:c})}const KG=(0,l.memo)(ZG);var YG=i(77099);const XG=(0,l.memo)(e=>{var t;let{isEnableVersionControl:n,layoutV9:r,onTabChange:s,isActive:c}=e;const d=(0,a.d4)(Wc.vr),p=(0,a.d4)(re.HW),g=(0,a.d4)(re.wA),y=(0,a.d4)(re.PL),w=(0,a.d4)(re.z$),_=(0,a.wA)(),j=r==="recommend",N=y==null?void 0:y.is_org_project,Z=y==null?void 0:y.is_solo_lifetime,Q=N&&g?_z(g,p==null?void 0:p.id):{},se=N&&g?(t=g.permissions)==null?void 0:t.find(Ne=>Number(Ne.user_id)===Number(p==null?void 0:p.id)):!1,ie=((g==null?void 0:g.lifetime_bindings)||(g==null?void 0:g.lifetimeBindings)||[]).length>0,he=n&&(N?Q.isFullOrg||Q.isTrialOrg||Q.displayPlan==="org_full"&&ie:Z),xe=MB.canEditByCurrentUser,Se=()=>{const Ne=(0,tr.l)(g,"v8_\u603B\u89C8\u6A21\u5F0F_\u5E95\u90E8\u7248\u672C\u8BB0\u5F55\u529F\u80FD","v8proto-read-use-version",!0);Ne.immediateUse="org_full",MB.global.popupHelper.chargeAsync(Ne)},_e=()=>{!he||c||(s(),_({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),_(Te.GO.toggleInspectMode(!1)),_(Te.GO.toggleHandMode(!1)),_(Te.GO.select([])),_({type:"elbow:update",payload:{isInElbowMode:!1}}),_({type:"entry:ST:STMode:disable"}),_({type:"entry:toolbar:open:versionControl:modal"}),d?(0,P1.A)({operation_type:P1.D.TurnOffVersionControl}):(0,P1.A)({operation_type:P1.D.TurnOnVersionControl}))},De=()=>{const Ne=new URL("/proto/design/"+y.cid,window.location.origin);w!=null&&w.access_token&&Ne.searchParams.append("projShareToEdit",w.access_token),(0,Ql.JW)(Ne.href)},Je=(0,l.useMemo)(()=>{const Ne=(0,o.jsxs)("span",{children:[I18N.ToolBar.versionControlNotAvailable.content,(0,o.jsx)("span",{className:"change-settings",onClick:De,children:I18N.ToolBar.versionControlNotAvailable.changeSettings})]}),pt=(0,o.jsxs)("span",{children:[I18N.ToolBar.upgradeToVersionControl.content,(0,o.jsxs)("span",{className:"upgrade-now",onClick:Se,children:[(0,o.jsx)(Et.C,{size:16,name:"sharing/updated"}),I18N.ToolBar.upgradeToVersionControl.upgradeNow]})]}),_t=""+I18N.ToolBar.versionControlNotAvailable.content+I18N.ToolBar.versionControlNotAvailable.contact;return he?I18N.ToolBar.versionControl:N?Q.isFullOrg||Q.isTrialOrg?xe?Ne:_t:se?pt:_t:xe&&Z?Ne:_t},[De,Se,he,N,Q.isFullOrg,Q.isTrialOrg,xe,se,Z]);return he?(0,o.jsx)(sb,{className:m()("nav-item",{active:c},{isV9Layout:j}),onClick:_e,children:(0,o.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(YG.I,{className:"version-control-entry-tt",content:Je,children:(0,o.jsx)(sb,{className:m()("nav-item","disabled",{isV9Layout:j}),children:(0,o.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})})}),(0,o.jsx)(QG,{})]})}),sb=E.Ay.li.withConfig({displayName:"VersionControlEntryTab__StyledVersionControlEntryTab",componentId:"sc-1v90i57-0"})([""]),QG=(0,E.DU)([".version-control-entry-tt{padding:6px;margin-top:-10px;> span{display:flex;align-items:center;line-height:16px;.change-settings,.upgrade-now{display:flex;align-items:center;margin-left:10px;color:rgba(112,188,246,1);cursor:pointer;&:hover{color:rgba(149,209,248,1);}}.upgrade-now{.svg-icon{margin-right:2px;path{fill:rgba(22,132,252,1);}path:last-of-type{fill:#fff;}}}}}"]);var lb=i(33394);function JG(){var e,t;const n=(0,a.d4)(Wc.UI),r=(0,a.d4)(P.sI),s=(0,a.d4)(Y.uu),c=(0,a.d4)(Y.rg),d=(0,a.d4)(Y.jx),p=(0,a.d4)(re.z$),g=d===Te.qi.OnlyView&&(p==null?void 0:p.comment_permission)==="off",y=(0,a.d4)(C.I9),w=!s&&(p==null?void 0:p.type)==="advanced",{currentViewing:_}=(0,a.d4)(Wc.cS),j=!!_,N=[];j||(s||c?N.push({label:I18N.Note.note}):(y&&N.push({label:I18N.Note.note}),g||N.push({label:I18N.Comment.comment})));const[Z,Q]=(0,l.useState)(0),se=(0,a.wA)(),ie=(0,a.d4)(P.c1),he=(0,a.d4)(P.M5),xe=(0,a.d4)(re.Ur),Se=(0,a.d4)(Wc.zM),_e=(0,a.d4)(Wc.ju),De=(0,a.d4)(q.MZ),Je=(0,a.d4)(re.$5),Ne=De==="old",pt=(xe==null?void 0:xe.cid)&&((e=rootSdk.sdkStore.getHotItem(xe.cid))==null?void 0:e.sub),_t=(0,l.useMemo)(()=>{let Lo=xe!=null&&xe.cid?rootSdk.sdkStore.getSubHotItemList(xe.cid).filter(Yo=>{let{hotAttr:Cn}=Yo;return["wSticky","wTear"].includes(Cn.type)}).sort((Yo,Cn)=>Yo.hotAttr.order-Cn.hotAttr.order):[];return Lo.length&&(Lo=Lo.map(Yo=>{const{authorCid:Cn}=Yo.hotAttr.info;let hn;if(Cn){var oa;if(Je){var Ao;hn=Je==null||(Ao=Je.find(ca=>ca.user_cid===Cn))==null?void 0:Ao.name}else((oa=MB.user)==null?void 0:oa.cid)===Cn&&(hn=MB.user.name)}return hn?{...Yo,hotAttr:{...Yo.hotAttr,info:{...Yo.hotAttr.info,author:hn}}}:Yo})),Lo},[Je,xe==null?void 0:xe.cid,pt,pt.length]),gt=new Set([...Array.from(Se),...Array.from(_e)]),Ct=!_t.every(Lo=>{let{key:Yo}=Lo;return _e.has(Yo)}),zt=_t.every(Lo=>{let{key:Yo}=Lo;return gt.has(Yo)}),Dt=!s&&!y&&!g;if((0,l.useEffect)(()=>{(r||!y&&!g)&&Q(1)},[r,y,g]),!n&&!r)return null;const sn=()=>{se({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:zt,stickyList:_t}})},Rn=()=>{se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}})},On=Lo=>{[0,1].includes(Lo)&&Rn(),Q(Lo)};return(0,o.jsxs)(f6,{className:m()("with-switch-header",{"is-in-version":j}),isShowBorderResizer:!j,children:[(0,o.jsxs)(lb.b,{children:[r?(0,o.jsx)("h3",{children:I18N.Comment.comment}):(0,o.jsxs)(lb.u,{className:m()({isOldV8UI2408:Ne}),activeIndex:Dt?0:Z,onTabChange:On,layoutV9:De,children:[N.map((Lo,Yo)=>{let{...Cn}=Lo;return(0,o.jsx)(s6.n,{...Cn,className:m()({line_active:N.length>1})},Yo)}),w?(0,o.jsx)(XG,{isEnableVersionControl:p==null?void 0:p.enable_version_record,layoutV9:De,onTabChange:()=>On(2),isActive:Z===2},2):(0,o.jsx)(o.Fragment,{})]}),Z===0?Ct&&(0,o.jsx)("span",{className:"expandAll",onClick:sn,children:zt?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens}):Z===1?((t=MB)==null||(t=t.user)==null?void 0:t.id)&&(0,o.jsx)(zG.A,{selected:ie,isShowCompletedComment:he,viewType:d,dispatch:se}):Z===2?(0,o.jsx)(q9,{}):null]}),Z===0?(0,o.jsx)(HG,{stickyList:_t,expandKeySet:Se,alreadyExpandKeySet:_e}):Z===2?(0,o.jsx)(nb,{onlyView:!0}):(0,o.jsx)(KG,{})]})}const qG=(0,l.memo)(e=>{const{isHtmlZipPreview:t,inspectMode:n}=e;return(0,o.jsx)("div",{id:"inspect-panel",children:!t&&n&&(0,o.jsx)(g6.A,{})})});var cb=i(23200);const $G=(0,cb.$)(JG),eZ=(0,cb.$)(qG);function tZ(){const{inspectMode:e,isCommunityPreview:t,isEmbedV2Preview:n,isReadOnlyCommentMode:r,fullScreenMode:s,isShowRightPane:c,isHtmlZipPreview:d}=(0,a.d4)(nZ),p=(0,a.wA)(),g=()=>p({type:"entry:toggle:right-panel"}),y=()=>e||t||n&&!s?null:r?(0,o.jsx)($G,{isVisible:c,orientation:"right",vacuum:12,toggleFunc:g}):null;return(0,o.jsxs)(o.Fragment,{children:[y(),(0,o.jsx)(ib,{}),(0,o.jsx)(eZ,{className:m()("with-toggle-visibility-button-readOnly-inspect-panel",{"is-inspect-mode":e}),isVisible:c&&e,orientation:"right",vacuum:12,inspectMode:e,isHtmlZipPreview:d,toggleFunc:g})]})}const nZ=(0,k.Mz)([Y._b,Y.pH,Y.rg,re.z$,Y.T7,C.I9,Wc.UI,Y.uu],(e,t,n,r,s,c,d,p)=>{const g=c||(r==null?void 0:r.comment_permission)!=="off";return{inspectMode:e,isCommunityPreview:t,isEmbedV2Preview:n,isReadOnlyCommentMode:g,fullScreenMode:s,isShowRightPane:d,isHtmlZipPreview:p}}),oZ=(0,l.memo)(tZ),aZ=E.Ay.div.withConfig({displayName:"styles__StyledRightSidePanel",componentId:"sc-103a1mw-0"})(["display:flex;position:relative;flex-direction:column;&.isDeleteRulerLine{pointer-events:none;}.with-toggle-visibility-button-readOnly-inspect-panel{height:0;.toggle-button{visibility:hidden;opacity:0;}&.is-inspect-mode{height:100%;.toggle-button{&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}}}}#inspect-panel{width:100%;height:100%;display:flex;position:relative;flex-direction:column;}"]);function rZ(){const{isDeleteRulerLine:e,onlyView:t}=(0,a.d4)(iZ);return(0,o.jsx)(aZ,{id:"right-slide-panel",className:m()({isDeleteRulerLine:e}),"data-is-widget-insertable":!1,children:t?(0,o.jsx)(oZ,{}):(0,o.jsx)(VG,{})})}const iZ=(0,k.Mz)([M.Q,Y.jx],(e,t)=>{const n=t===Te.qi.OnlyView;return{isDeleteRulerLine:e,onlyView:n}});var sZ=i(8702),lZ=i(98481),cZ=i(51326),dZ=i(3289),pZ=i(20640);const uZ=E.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-1xm9iti-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-84%);top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.shadow_5),hZ=(0,cZ.dl)();window.SharingEventEmitter=hZ;const mZ=(0,k.Mz)([q.O4,re.HW,re.wA,re.z$,C.iJ,re.Ur],(e,t,n,r,s,c)=>({theme:e,user:t,org:n,sharingInReadOnly:r,projShareToEdit:s,hostCurrentScreen:c}));function fZ(){var e;const{theme:t,user:n,org:r,sharingInReadOnly:s,projShareToEdit:c,hostCurrentScreen:d}=(0,a.d4)(se=>mZ(se),a.bN),p=(e=MB)==null?void 0:e.getRootProject(),g=(0,a.wA)(),[y,w]=(0,l.useState)(void 0),{screenDataMap:_,screenTreeData:j}=(0,pZ.tb)(),N={pageAttrMap:_,pageKeyList:Object.keys(_),treeData:j},Z=()=>{g({type:"toolbar:update:state",payload:{isShowSharingManager:!1,projShareToEdit:""}})},Q=se=>{const ie=typeof se.clientX=="number"?document.elementFromPoint(se.clientX,se.clientY):null,he=document.querySelector("#sharing-box"),xe=document.querySelector("#IBOT_MODAL_ROOT");ie!=null&&ie.closest("#IBOT_SELECT_MENU_ROOT")||se.target.closest(".sharingV2-click-visible")!==null||se.target.closest(".ai-semantic-share")!==null||xe.contains(ie)||se.target.closest("#sharing-box")!==null||he.contains(ie)||se.target.closest(".context-menu-mask > .design-avoid")!==null||se.target.closest(".go-to-sharing")!==null||se.target.closest(".sharing--drop-canvas-list")!==null||se.target.closest(".dropmenu-no-exit")!==null||se.target.closest(".permission-select.CheckSelectMenu")!==null||(g({type:"toolbar:sharingManager:toggle"}),g({type:"toolbar:update:state",payload:{projShareToEdit:""}}))};return(0,l.useEffect)(()=>{const se=he=>{let{whichModal:xe}=he;MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Gr.hC.MaxSharingCount,project:p}})},ie=window.SharingEventEmitter;return ie.on("sharing:count",se),()=>{ie.off("sharing:count",se)}},[p,g]),(0,l.useEffect)(()=>{w(document.getElementById("sharing-box"))},[]),(0,l.useEffect)(()=>{var se;p!=null&&p.is_org_project&&r&&r!=null&&r.cid&&!(r!=null&&(se=r.members)!=null&&se.length)&&(async()=>{try{const he=await(0,ad.jm)(r.cid);g({type:"update:org:member:list",payload:{orgMembers:he}})}catch(he){console.error("requestOrgMembers",he)}})()},[p==null?void 0:p.is_org_project,g,r]),y?(0,ds.createPortal)((0,o.jsxs)(uZ,{children:[(0,o.jsx)(dZ.n,{theme:t,org:r,user:n,project:p,members:(r==null?void 0:r.members)||[],hostType:"proto",hostSharingData:s,projShareToEdit:c,screenMetaList:N,handleClose:Z,hostCurrentScreen:d}),(0,o.jsx)(Jr.A,{target:document,onClick:(0,Jr.t)(Q,{capture:!0})})]}),y):null}const gZ="px",B4="rem",U4="em",yZ="pt",vZ="dp",db="rpx",xZ=[gZ,vZ,yZ,db,U4,B4],bZ=[10,12,14,16],pb=e=>1,Vd=function(e,t,n,r,s){var c;e===void 0&&(e=0),t===void 0&&(t=1),n===void 0&&(n=""),r===void 0&&(r=1),s===void 0&&(s=!0);let d=Number.parseFloat((t*e).toFixed(2));return n===db?d=Number.parseFloat((d*r).toFixed(2)):[U4,B4].includes(n)&&(d=Number.parseFloat((1/t*e).toFixed(2))),(c=n)!=null&&c.length&&s?d+n:d},y6=()=>{try{const e=window.localStorage.getItem("user_pick_color");return JSON.parse(e||"[]")}catch(e){return[]}},CZ=e=>{const t=y6(),n=e==null?void 0:e.toLowerCase();return t.includes(n)?{history:t,focusColor:e}:(t.unshift(n),t.length>40&&t.pop(),window.localStorage.setItem("user_pick_color",JSON.stringify(t)),{history:t,focusColor:null})},wZ=e=>{const t=y6(),n=e==null?void 0:e.toLowerCase(),r=t.indexOf(n);return r===-1||(t.splice(r,1),window.localStorage.setItem("user_pick_color",JSON.stringify(t))),t},v6=e=>{const t=new Map;return e&&e.split(";").filter(n=>n).forEach(n=>{const[r,s]=n.split(":");t.set(r.trim(),s.trim())}),t},ub=(e,t)=>{const{selectionLeftTopInfo:{x:n,y:r}}=e;let s;if((0,$h.SS)(t)){const{table:p,cells:g}=t,y=(0,$h.j)(g,p,r,n);s=(y==null?void 0:y.style)||""}else{var c;s=t!=null&&(c=t.tableData)!=null&&c.cellStyles&&t.tableData.cellStyles[r]?t.tableData.cellStyles[r][n]:""}const d=v6(s);return SZ(d)},x6={ha:["text-align","left"],va:["align-items","center"],fontSize:["font-size",14],color:["color","rgba(255,255,255,1)"],boldType:["font-weight","normal"],fontStyle:["font-style","normal"],textDecoration:["text-decoration","normal"],lineHeight:["line-height",20],padding:["padding",4]},SZ=e=>{const t={newOverOld:!1,showContentBox:!1,ha:"center",va:"center",fontSize:14,color:"rgba(91, 107, 115, 1)",boldType:0,fontStyle:"normal",textDecoration:"normal",lineHeight:20,padding:0,haDisabled:!1,vaDisabled:!1,canShowParagraph:!0,isDisabledFontDropdown:!1,isDisabledFontRadioLine:!1,isEditing:!1};return Object.keys(t).forEach(n=>{x6[n]&&(t[n]=e.get(x6[n][0])||x6[n][1])}),t.padding=Number.parseInt(t.padding),t.fontSize=Number.parseInt(t.fontSize),t.lineHeight=Number.parseInt(t.lineHeight),t.boldType=+(t.boldType==="bold"),t},F4=(e,t)=>{var n,r,s,c;if((0,$h.SS)(e))return AZ(e,t);const{x:d,y:p}=t,{x:g,y,w,h:_,tableData:{columns:j,rows:N,mergeCells:Z}}=e;let Q=((n=j[d])==null?void 0:n.width)||0,se=((r=N[p])==null?void 0:r.height)||0;if(Z[d+"-"+p]){const[_e,De]=Z[d+"-"+p];for(let Je=d+1;Je<=d+_e-1;Je++){var ie;Q+=((ie=j[Je])==null?void 0:ie.width)||0}for(let Je=p+1;Je<=p+De-1;Je++){var he;se+=((he=N[Je])==null?void 0:he.height)||0}}const xe=j.reduce((_e,De,Je)=>_e+(Je<=d?De.width:0),0)-((s=j[d])==null?void 0:s.width)||0,Se=N.reduce((_e,De,Je)=>_e+(Je<=p?De.height:0),0)-((c=N[p])==null?void 0:c.height)||0;return{w:Q,h:se,x:g-w/2+xe+Q/2,y:y-_/2+Se+se/2,r:0}},AZ=(e,t)=>{const{x:n,y:r}=t,{x:s,y:c,w:d,h:p,widthList:g,heightList:y,tableData:{mergeCells:w}}=e;let _=g[n],j=y[r];if(w[n+"-"+r]){const[Q,se]=w[n+"-"+r];for(let ie=n+1;ie<=n+Q-1;ie++)_+=g[ie];for(let ie=r+1;ie<=r+se-1;ie++)j+=y[ie]}const N=g.reduce((Q,se,ie)=>Q+(ie<=n?se:0),0)-g[n],Z=y.reduce((Q,se,ie)=>Q+(ie<=r?se:0),0)-y[r];return{w:_,h:j,x:s-d/2+N+_/2,y:c-p/2+Z+j/2,r:0}},MZ=(e,t,n,r,s)=>{if((0,$h.SS)(e))return kZ(e,t,n,r,s);const{x:c,y:d}=n,{tableData:{data:p,cellStyles:g}}=e,y=F4(e,n),w=p[d][c],_=v6(g[d][c]),{color:j,fontSize:N,fontStyle:Z,boldType:Q,textDecoration:se,ha:ie,va:he,lineHeight:xe,padding:Se}=ub({selectionLeftTopInfo:n},e);return b6({...e,table_cell_text:w,x:y.x,y:y.y,w:y.w,h:y.h,border:void 0,color:j,fontSize:N,fontStyle:Z,boldType:Q,textDecoration:se,ha:ie,va:he,lineHeight:xe,padding:Se,table_cell_background:_.get("background")},t,r)},kZ=(e,t,n,r,s)=>{const{x:c,y:d}=n,{table:p,cells:g}=e,y=F4(e,n),w=(0,$h.j)(g,p,d,c),_=(w==null?void 0:w.data)||"",j=v6((w==null?void 0:w.style)||""),{color:N,fontSize:Z,fontStyle:Q,boldType:se,textDecoration:ie,ha:he,va:xe,lineHeight:Se,padding:_e}=ub({selectionLeftTopInfo:n},e);return b6({...e,table_cell_text:_,x:y.x,y:y.y,w:y.w,h:y.h,border:void 0,color:N,fontSize:Z,fontStyle:Q,boldType:se,textDecoration:ie,ha:he,va:xe,lineHeight:Se,padding:_e,table_cell_background:j.get("background")},t,r,s?De=>s(De,n):void 0)},EZ=["wRect","wOval","wMTextInput","wMTextArea","wMSelect","wButton","wMTooltip","wLine","wArrow","wIconButton","wPlaceholder","wPolygon","wStar","wSegmentedControl","wCollapse","wDigitalStepper","wPaginationMobile","wPaginationWeb","wDropMenu"],b6=(e,t,n,r)=>{var s,c;const d={top:e.y-e.h*.5,width:e.w,height:e.h,left:e.x-e.w*.5,refVars:{}};if(typeof n=="function"){const{displayName:w,textStyles:_,inspectText:j,widgetText:N,bgColors:Z}=n(e);d.displayName=w,N&&(d.textStyles=_,d.inspectText=j),Z&&(d.bgColors=Z)}else console.error("getWidgetInspectStyles is not a function");const p=e.borderRadius;p&&p!=="0"&&(d.bdRadius=p);const g=e.ro;if(g&&(d.rotation=g),e.border&&EZ.includes(e.type)){var y;d.borders=e!=null&&(y=e.border)!=null&&y.bdrIsVisible?[{thickness:e.border.bdrWidth,color:(0,$c.t0)(e.border.bdrColor)}]:[]}if((e==null||(s=e.shadow)==null?void 0:s.type)==="box_shadow"){const w=e==null?void 0:e.shadow;d.shadows=w!=null&&w.shadowIsVisible?[{offset_x:w.offsetX,offset_y:w.offsetY,blur_radius:w.blurRadius,spread:w.spreadRadius,color:(0,$c.t0)(w.shadowColor)}]:[]}if((e==null||(c=e.shadow)==null?void 0:c.type)==="text_shadow"){const w=e==null?void 0:e.shadow;d.shadows=w!=null&&w.shadowIsVisible?[{offset_x:w.offsetX,offset_y:w.offsetY,blur_radius:w.blurRadius,color:(0,$c.t0)(w.shadowColor)}]:[]}return typeof r=="function"&&Object.assign(d.refVars,r(e)),Object.assign({},e,d)},$J=(e,t)=>{const n=IZ(e)?"chinese":"english",r=TZ()?"mac":"windows";return _Z[r]["others"][n]},IZ=e=>{const t=e.charCodeAt(0);return t>=19968&&t<=40869},TZ=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform),_Z={mac:{ios:{chinese:"PingFang SC",english:"-apple-system"},android:{chinese:"PingFang SC",english:"Roboto"},others:{chinese:"PingFang SC",english:"Roboto"}},windows:{ios:{chinese:"Microsoft Yahei",english:"Arial"},android:{chinese:"Microsoft Yahei",english:"Roboto"},others:{chinese:"Microsoft Yahei",english:"Roboto"}}};var PZ=i(76682),C6=i.n(PZ);const Qf=e=>{if(Np(e)!==W2)return console.warn("Not rgbacolor but use rgba2hexWithA"),e;const n=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);return n&&n.length>=4?{hex:("#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2)).toUpperCase(),o:Number((+n[4]).toFixed(2))}:e},Np=function(e){return e===void 0&&(e=Jf),e.includes(W2)?W2:e.includes(eh)?eh:e.includes("#")&&e.length===9?_h:e.includes("#")?Ph:e.includes(M6)?M6:!1},jp=function(e,t){if(t===void 0&&(t=W2),!e)return Jf;const n=Np(e);if(!n)return Jf;switch(n){case W2:if(t===n)return e;if(t===eh)return mb(e);if(t===Ph)return fb(e);if(t===_h)return gb(e);break;case eh:if(t===n)return e;if(t===W2)return yb(e);if(t===Ph)return vb(e);if(t===_h)return LZ(e);break;case Ph:if(t===n)return e;if(t===W2)return NZ(e);if(t===eh)return w6(e);if(t===_h)return xb(e);break;case _h:if(t===n)return e;if(t===W2)return S6(e);if(t===eh)return jZ(e);if(t===Ph)return DZ(e);break;case M6:if(t===W2)return V4;if(t===eh)return mb(V4);if(t===Ph)return fb(V4);if(t===_h)return gb(V4);break;default:return e}},hb=e=>{if(Np(e)!==W2)return console.warn("Not rgbacolor but use rgba2rgbWithA"),e;const{hex:n,o:r}=Qf(e);return n?{rgb:w6(n),o:r}:Jf},w6=e=>{if(Np(e)!==Ph)return console.warn("Not hexcolor but use hex2rgb"),e;if(e=e.replace("#",""),e.length===3){const[c,d,p]=e.split("");e=""+c+c+d+d+p+p}const n=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),s=parseInt(e.substring(4,6),16);return"rgb("+n+", "+r+", "+s+")"},mb=e=>{const{rgb:t,o:n}=hb(e);if(!t)return e;const r=n<=1?n*100:n;return t+" "+Math.round(r)+"%"},fb=e=>{const{hex:t,o:n}=Qf(e);if(!t)return e;const r=n<=1?n*100:n;return t.toUpperCase()+" "+Math.round(r)+"%"},gb=e=>{if(Np(e)!==W2)return console.warn("Not rgbacolor but use rgba2argb"),e;const{hex:n,o:r}=Qf(e);return n?"#"+("0"+Math.round(r*255/100).toString(16)).slice(-2).toUpperCase()+n.slice(1):e},yb=e=>Np(e)!==eh?(console.warn("Not rgbcolor but use rgb2rgba"),e):"rgba("+e.slice(4,-1)+", 1)",vb=e=>{if(Np(e)!==eh)return console.warn("Not rgbcolor but use rgb2hex"),e;const n=e.match(/^rgb?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(n&&n.length===4){const r=("0"+parseInt(n[1],10).toString(16)).slice(-2),s=("0"+parseInt(n[2],10).toString(16)).slice(-2),c=("0"+parseInt(n[3],10).toString(16)).slice(-2);return("#"+r+s+c).toUpperCase()}},LZ=e=>Np(e)!==eh?(console.warn("Not rgbcolor but use rgb2argb"),e):xb(vb(e)),xb=e=>Np(e)!==Ph?(console.warn("Not hexcolor but use hex2argb"),e):"#FF"+e.slice(1),NZ=e=>Np(e)!==Ph?(console.warn("Not hexcolor but use hex2rgba"),e):yb(w6(e)),S6=e=>{if(Np(e)!==_h)return console.warn("Not argbcolor but use argb2rgba"),e;const n=[];for(let p=1;p<e.length;p+=2)n.push(e.slice(p,p+2));let[r,s,c,d]=n;return s=parseInt(s,16),c=parseInt(c,16),d=parseInt(d,16),r=Number((parseInt(r,16)/255).toString().slice(0,4)),"rgba("+s+", "+c+", "+d+", "+r+")"},jZ=e=>{if(Np(e)!==_h)return console.warn("Not argbcolor but use argb2rgbWithA"),e;const n=S6(e),{rgb:r,o:s}=hb(n);return r?r+" "+Math.round(s*100)+"%":e},DZ=e=>{if(Np(e)!==_h)return console.warn("Not argbcolor but use argb2hexWithA"),e;const n=S6(e),{hex:r,o:s}=Qf(n);return r?r.toUpperCase()+" "+Math.round(s*100)+"%":e},A6=e=>Number(e.toFixed(2)),OZ=e=>{if(!e)return Jf;const{R:t,G:n,B:r,A:s}=(0,$c.BN)((0,$c.Sd)(e)),c=A6(t/255),d=A6(n/255),p=A6(r/255);return"UIColor(red:"+c+", green:"+d+", blue:"+p+", alpha:"+s+")"},RZ=e=>{try{if(Np(e)!==W2)return console.warn("Not rgbacolor but use rgba2hexWithA"),e;const n=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);if(n&&n.length>=4){let r="#",s=parseFloat(Number((+n[4]).toFixed(2)).toString());return s>=0&&s<=1?s=Math.round(255*s):s>=0&&s<=100?s=Math.round(255*s/100):s=-1,s>=0&&(r=r+(s|256).toString(16).slice(1)),r=(r+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2)).toUpperCase(),r}return e}catch(t){return e}},W2="rgba",_h="argb",eh="rgb",Ph="hex",M6="transparent",V4="rgba(255, 255, 255, 0)",Jf="#FFFFFF",BZ=e=>{let{attr:t,language:n,unit:r}=e;const s=Cb(n),{width:c,height:d,lineHeight:p,opacity:g,borderRadius:y,borderWidth:w,borderColor:_,background:j,backgroundColor:N,color:Z,fontSize:Q,fontFamily:se,fontStyle:ie,boxShadow:he,textAlign:xe,x:Se,y:_e}=t,De=Se&&{[n1[s].x]:H2(Se,r,s)},Je=_e&&{[n1[s].y]:H2(_e,r,s)},Ne=c&&{[n1[s].width]:H2(c,r,s)},pt=d&&{[n1[s].height]:H2(d,r,s)},_t=p&&{[n1[s].lineHeight]:H2(p,r,s)},gt=g&&{[n1[s].opacity]:H2(g,r,s)},Ct=y&&{[n1[s].borderRadius]:H2(y,r,s)},zt=N&&{[n1[s].backgroundColor]:qf(N,n)},Dt=j&&{[n1[s].background]:H2(j,r,s,!0)},sn=Z&&{[n1[s].color]:qf(Z,n)},Rn=Q&&{[n1[s].fontSize]:H2(Q,r,s)},On=se&&{[n1[s].fontFamily]:H2(se,r,s)},Lo=ie&&{[n1[s].fontStyle]:H2(ie,r,s)},Yo=he&&{[n1[s].shadows]:he},Cn=w&&{[n1[s].borderWidth]:H2(w,r,s)},hn=_&&{[n1[s].borderColor]:qf(_,n)},oa=xe&&{[n1[s].textAlign]:xe};return Object.assign({},De,Je,Ne,pt,_t,gt,Ct,Cn,hn,Dt,zt,sn,Rn,Lo,oa,Yo,On)},H2=function(e,t,n,r){if(r===void 0&&(r=!1),e=e.toString(),n==="px")return t==="dp"?e.replace(t,n):e;if(n==="dp")return e.replace(t,n);if(n==="pt")return e.replace(t,"")},qf=(e,t)=>{e=e.toString();try{if(t==="android")return RZ(e);if(t==="swift")return OZ(e)}catch(n){console.warn("### color error:",n)}return e},n1={px:{x:"left",y:"top",width:"width",height:"height",lineHeight:"line-height",opacity:"opacity",border:"border",borderRadius:"border-radius",borderColor:"border-color",borderWidth:"border-width",background:"background",backgroundColor:"background-color",color:"color",fontSize:"font-size",fontFamily:"font-family",fontStyle:"font-style",textAlign:"text-align",shadows:"box-shadow",innerShadows:"inner-shadow"},dp:{x:"left",y:"top",width:"layout_width",height:"layout_height",border:"border",opacity:"opacity",color:"textColor",fontSize:"textSize",fontFamily:"font-family",fontStyle:"font-style",textAlign:"gravity",background:"background",backgroundColor:"background",borderRadius:"radius",borderColor:"border-color",lineHeight:"line-height",borderWidth:"border-width",shadows:"box-shadow",innerShadows:"inner-shadow"},pt:{x:"x",y:"y",width:"width",height:"height",opacity:"opacity",border:"border",background:"background",backgroundColor:"backgroundColor",color:"text-color",textAlign:"alignment",fontSize:"fontSize",fontFamily:"fontFamily",fontStyle:"font-style",borderRadius:"cornerRadius",borderColor:"borderColor",borderWidth:"border-width",lineHeight:"lineSpacing"}},k6=e=>{const t=/<[^>]+>/ig;return e?e.replace(t,""):""},UZ=e=>{const{width:t,height:n,left:r,top:s,opacity:c,borderRadius:d,rotation:p,ratio:g,unit:y,rectHeight:w,rectWidth:_,rpxRatio:j}=e,N=Vd(r,g,y,j),Z=Vd(s,g,y,j),Q=Vd(_||t,g,y,j),se=Vd(w||n,g,y,j),ie=d?(()=>{if(typeof d=="number")return Vd(parseInt(d)||0,g,y,j);{const Se=Object.values(d),_e=Se[2];return Se[2]=Se[3],Se[3]=_e,Se.map(De=>Vd(parseInt(De)||0,g,y,j)).join(" ")}})():null,he=E6(p)?null:p+"\xB0",xe=E6(c)?null:c+"%";return{adapterLeft:N,adapterTop:Z,adapterWidth:Q,adapterHeight:se,radius:ie,opacity:xe,rotate:he}},E6=e=>e===null||isNaN(e)||e===0,I6=function(e,t,n,r){return r===void 0&&(r=1),E6(e)?null:Vd(e,t,n,r)},FZ=e=>{let{textStyles:t,borders:n,background:r,shadows:s,innerShadows:c,unit:d,ratio:p,language:g,rpxRatio:y}=e,w,_,j,N,Z,Q,se,ie,he,xe,Se,_e;if(t){const{color:Ne,fontSize:pt,fontFace:_t,lineHeight:gt,horizontalAlign:Ct}=t;w=Ne,_=Vd(pt,p,d,y),j=_t,Z=Ct,N=I6(gt,p,d,y)}if(n.length){const{position:Ne="inside",color:pt,thickness:_t}=n[0];Q=Vd(_t,p,d,y),ie=Ne,pt&&(se=pt)}return r.length&&(["linear","radial"].includes(r[0].type)?_e=VZ(r[0],g):he=r[0].value),s.length&&(xe=bb(s,d,p,g,!1,y)),c.length&&(Se=bb(c,d,p,g,!0,y),xe=xe+", "+Se),{fontFamily:j,fontSize:_,color:w,lineHeight:N,textAlign:Z,borderWidth:Q,borderColor:se,borderPosition:ie,backgroundColor:he,background:_e,boxShadow:xe}},bb=function(e,t,n,r,s,c){s===void 0&&(s=!1),c===void 0&&(c=1);const d=e.length;return e.reduce((p,g,y)=>{let{color:w,offset_x:_=0,offset_y:j=0,blur_radius:N=0,spread:Z=0}=g;const Q=Vd(_,n,t,c),se=Vd(j,n,t,c),ie=Vd(N,n,t,c),he=Vd(Z,n,t,c);w=qf(w,r);const xe=y<d-1?", ":"",Se=s?"inset ":"";return p.concat(""+Se+Q+" "+se+" "+ie+" "+he+" "+w+xe)},"")},VZ=(e,t)=>{try{if(!["android","swift"].includes(t))return e.value;const{value:n,gradient:{color_stops:r}}=e;let s=n;return r&&r.length&&r.forEach(c=>{let{color:d}=c;const p=qf(d,t);s=s.replace(d,p)}),s}catch(n){console.warn("### reduceGradient error:",n)}return(e==null?void 0:e.value)||""},zZ="pt",WZ="dp",HZ="px",Cb=e=>{switch(e){case"swift":return zZ;case"android":return WZ;default:return HZ}},GZ=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",ZZ={"&amp;":"&","&lt;":"<","&gt;":">"},KZ=/(&amp;|&lt;|&gt;)/g,YZ=e=>ZZ[e]||e,XZ=e=>e&&e.replace(KZ,YZ),$f=function(e){var t,n,r;e===void 0&&(e=!0);const s=(t=MB)==null||(t=t.global)==null||(t=t.previewOptions)==null?void 0:t.isHTMLZip;return e?!!((n=MB)!=null&&(n=n.user)!=null&&n.id)||s||ENV.IS_ON_PREMISES:!!((r=MB)!=null&&(r=r.user)!=null&&r.id)||s},z4=function(e,t){t===void 0&&(t=!0),$f(t)||MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:e})};var wb=i(79186),um=i(46219);class QZ extends l.Component{constructor(){super(...arguments),(0,O.A)(this,"handleCopy",()=>{z4("proto-inspect")})}componentDidMount(){const{target:t,text:n}=this.props;$f()&&(this.clipboard=n?new(C6())(this.$copyBtn,{text:()=>XZ(document.querySelector(n).innerText)}):new(C6())(this.$copyBtn,{target:()=>document.querySelector(t)}),this.clipboard.on("success",s=>{this.error=!1,window.getSelection().removeAllRanges()}),this.clipboard.on("error",s=>{this.error=!0}))}componentWillUnmount(){this.clipboard&&this.clipboard.destroy()}render(){return(0,o.jsx)(um.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"copyBtn",onClick:this.handleCopy,children:(0,o.jsx)("span",{ref:t=>this.$copyBtn=t,children:I18N.pInspect.copy})})}}class W4 extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleClick",()=>{this.setState(n=>({activeColor:n.colorList[n.index%4],index:n.index+1}))}),(0,O.A)(this,"handleCopy",()=>{z4("proto-inspect")}),this.state={index:0,activeColor:t.stateColor,colorList:t.rgbaColor==="transparent"?Array(4).fill("transparent"):Sb(t.rgbaColor)||[]}}componentDidUpdate(t){this.props.stateColor!==t.stateColor&&this.setState({index:0,activeColor:this.props.stateColor,colorList:this.props.rgbaColor==="transparent"?Array(4).fill("transparent"):Sb(this.props.rgbaColor)||[]})}render(){const{activeColor:t}=this.state,{title:n,rgbaColor:r,titleWidth:s=62}=this.props,c=m()("panel"),d=r.split(","),p=d.length,g=p>3&&+d[p-1].replace(")","")!=1,y=$f();return(0,o.jsxs)("div",{className:c,"data-value":n,children:[(0,o.jsx)("label",{className:"title-label",style:{width:s},children:n}),(0,o.jsxs)("div",{className:"panel-item panel-item-color item-flex-1",children:[(0,o.jsx)(um.A,{className:"panel-item-value textEllipsis",content:{click:I18N.pInspect.copied},"data-type":"copy",arrowed:!1,"data-clipboard-text":y?t:"",onClick:this.handleCopy,children:t}),(0,o.jsx)("div",{className:"panel-item-color-block-wrap "+(g?"panel-item-color-block-imageback-wrap":""),children:(0,o.jsx)("div",{className:"panel-item-color-block",style:{backgroundColor:r},onClick:this.handleClick})})]})]})}}const Sb=e=>{if(e)return[jp(e,"rgba"),jp(e,"rgb"),jp(e,"argb"),jp(e,"hex")]},JZ=e=>e.refVar?(0,o.jsx)(qZ,{content:I18N.Variable.title+": "+e.refVar,className:m()("var-tip-trigger",e.className),position:"bottom",children:(0,o.jsx)("span",{})}):null,qZ=(0,E.Ay)(um.A).withConfig({displayName:"VarTip__StyledVarTip",componentId:"sc-1ua08hn-0"})(["&.Tooltip{display:flex;align-items:center;justify-content:center;margin-left:4px;height:18px;span{width:8px;height:8px;border:2px solid ",";cursor:pointer;border-radius:8px;&:hover{border-color:",";}}}"],e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L3),Ab=JZ;class jc extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"handleSelectTextContent",()=>{const{text:n}=this.props,r=GZ();r&&n!==r&&this.setState({copyTextSelected:r})}),(0,O.A)(this,"handleClearSelectTextContent",()=>{this.setState({copyTextSelected:""})}),(0,O.A)(this,"handleCopy",()=>{z4("proto-inspect")}),this.state={copyTextSelected:""}}render(){const{color:t,colorUnit:n,dataValue:r,className:s,title:c,text:d,data:p,first:g,i18n:y,refVars:w,fontFace:_,titleWidth:j=62}=this.props,{copyTextSelected:N}=this.state,Z=jp(t,"rgba"),Q=jp(t,n),se=r.length>0,ie=r.length===4,he=m()("panel",""+s,{"panel-item-text":!!d,"shadow-panel":ie}),xe=$f();return t?(0,o.jsx)(W4,{title:c,rgbaColor:Z,stateColor:Q,titleWidth:j}):(0,o.jsxs)("div",{className:he,children:[(0,o.jsx)("label",{className:"title-label",style:{width:j},children:c}),d?(0,o.jsx)(um.A,{arrowed:!1,className:"panel-item item-flex-1",content:{click:I18N.pInspect.copied},duration:1e3,onClick:this.handleCopy,children:(0,o.jsxs)("pre",{type:"text","data-placement":"top","data-type":"copy","data-clipboard-text":xe?(0,al.qk)(N||d):"",className:"panel-item-value text-content",onMouseUp:this.handleSelectTextContent,onMouseDown:this.handleClearSelectTextContent,children:[(0,o.jsx)("span",{style:{fontFamily:_},dangerouslySetInnerHTML:{__html:d.replace(/\n$/,"")}}),(0,o.jsx)(Ab,{refVar:w[0],className:"text-var-tip"})]})}):(0,o.jsx)("div",{className:p.length<2?"single-panel-box":"mult-panel-box",children:(g?p.slice(0,1):p).map((Se,_e)=>(0,o.jsxs)(um.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"panel-item","data-value":r[_e],onClick:this.handleCopy,children:[(0,o.jsx)("span",{className:"prefix-label",children:r[_e]}),(0,o.jsxs)("div",{"data-type":"copy","data-clipboard-text":xe?Se:"",className:"panel-item-value "+(w!=null&&w[_e]?"has-var":""),children:[y?I18N.pInspect[Se]:Se,(0,o.jsx)(Ab,{refVar:w==null?void 0:w[_e]})]})]},_e))})]})}}(0,O.A)(jc,"defaultProps",{dataValue:[],data:[]});const Mb=(0,l.memo)(e=>{let{value:t,title:n}=e;return(0,o.jsx)("div",{className:m()("container")+" "+m()("layer-name"),children:(0,o.jsx)(jc,{title:n||I18N.pInspect.layer_name,data:[t]})})}),$Z=e=>{let{colorUnit:t,backgroundColorSort:n}=e;return(0,o.jsxs)(hm,{children:[I18N.pInspect.fills,n.map((r,s)=>{let{value:c,type:d="color",opacity:p,gradient:g}=r;const y=c,w=y&&jp(y,t);return d==="color"?(0,o.jsx)(W4,{stateColor:w,rgbaColor:y,title:I18N.pInspect.color},s):(0,o.jsx)(kb,{gradient:g,colorUnit:t,opacity:p},s)})]})},kb=e=>{let{gradient:{color_stops:t=[],type:n},opacity:r,colorUnit:s}=e;return(0,o.jsxs)("div",{children:[t.length>0&&t.map((c,d)=>{let{color:p,position:g}=c;return(0,o.jsx)("div",{children:(0,o.jsx)(jc,{colorUnit:s,color:p,title:d===0?I18N.pInspect.gradient:""})},""+p+d)}),r&&(0,o.jsx)(jc,{title:I18N.pInspect.opacity,data:[r*100+"%"]}),n&&(0,o.jsx)(jc,{data:[n],title:I18N.pInspect.type})]})},Eb=e=>{let{shadows:t=[],isInnerShadows:n=!1,unit:r,ratio:s,colorUnit:c,textShadows:d=[],rpxRatio:p=1,refVars:g}=e;return(0,o.jsxs)(hm,{children:[n?I18N.pInspect.inner_shadow:I18N.pInspect.shadow,t.length>0&&(0,o.jsx)(Ib,{shadows:t,unit:r,ratio:s,colorUnit:c,rpxRatio:p,refVars:g}),d.length>0&&(0,o.jsx)(Ib,{shadows:d,unit:r,ratio:s,colorUnit:c,rpxRatio:p,refVars:g})]})},Ib=(0,l.memo)(e=>{let{shadows:t,unit:n,ratio:r,colorUnit:s,rpxRatio:c=1,refVars:d}=e;return(0,o.jsx)(o.Fragment,{children:t.map((p,g)=>{var y;let{color:w,offset_x:_=0,offset_y:j=0,blur_radius:N=0,spread:Z=0}=p;const Q=Vd(_,r,n,c),se=Vd(j,r,n,c),ie=Vd(N,r,n,c),he=Vd(Z,r,n,c),xe=d==null||(y=d.shadows)==null?void 0:y[g];return(0,o.jsxs)("div",{className:"shadow-item-gap",children:[w&&(0,o.jsx)(jc,{title:I18N.pInspect.color,titleWidth:30,color:w,colorUnit:s}),(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(jc,{title:I18N.pInspect._x,titleWidth:30,data:[Q],refVars:[xe==null?void 0:xe.offsetX]}),(0,o.jsx)(jc,{title:I18N.pInspect._y,titleWidth:30,data:[se],refVars:[xe==null?void 0:xe.offsetY]})]}),(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(jc,{title:I18N.pInspect.blur,titleWidth:30,data:[ie],refVars:[xe==null?void 0:xe.blurRadius]}),(0,o.jsx)(jc,{title:I18N.pInspect.spread,titleWidth:30,data:[he],refVars:[xe==null?void 0:xe.spreadRadius]})]})]},g)})})}),eK=(0,l.memo)(e=>{let{colorUnit:t,borderSort:n,unit:r,ratio:s,isStroke:c,rpxRatio:d=1,refVars:p}=e;return(0,o.jsxs)(hm,{children:[c?I18N.pInspect.stroke:I18N.pInspect.borders,n.reverse().map((g,y)=>{var w;let{position:_="inside",color:j,thickness:N,gradient:Z}=g;const Q=j,se=N&&Vd(N,s,r,d);return[j?(0,o.jsx)(jc,{color:Q,title:I18N.pInspect.color,colorUnit:t},""+y+Q):(0,o.jsx)(kb,{gradient:Z,colorUnit:t}),_&&(0,o.jsx)(jc,{title:I18N.pInspect.position,data:[_]},""+y+_),se&&(0,o.jsx)(jc,{title:I18N.pInspect.thickness,data:[se],refVars:[p==null||(w=p.borders)==null||(w=w[y])==null?void 0:w.bdrWidth]},""+y+se)]})]})}),hm=e=>{let{children:t}=e;return(0,o.jsxs)("section",{children:[(0,o.jsx)("div",{className:m()("header"),children:t[0]}),(0,o.jsx)("div",{className:m()("container"),children:t.slice(1)})]})};var tK=i(55603),Wm=i.n(tK),nK=i(85657),oK=i.n(nK),aK=i(11817),rK=i.n(aK),iK=i(73756),sK=i.n(iK),lK=i(18102),cK=i.n(lK),dK=i(50918),pK=i.n(dK),uK=i(95975),hK=i.n(uK);Wm().registerLanguage("css",oK()),Wm().registerLanguage("less",rK()),Wm().registerLanguage("scss",sK()),Wm().registerLanguage("stylus",cK()),Wm().registerLanguage("swift",pK()),Wm().registerLanguage("xml",hK());const mK={css:"css",less:"less",sass:"scss",stylus:"stylus",swift:"swift",android:"xml"},fK=[{value:"swift",label:"Swift"},{value:"android",label:"Android"},{value:"css",label:"CSS"},{value:"less",label:"Less"},{value:"sass",label:"Sass"},{value:"stylus",label:"Stylus"}];class gK extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"highlight",()=>{this.hljsRef&&this.hljsRef.current.querySelectorAll("pre code").forEach(r=>{Wm().highlightBlock(r)})}),(0,O.A)(this,"updateLanguage",n=>{this.props.dispatch({type:"inspect:update:state",payload:{language:n}})}),(0,O.A)(this,"renderCode",n=>{const r={px:this.renderCss,dp:this.renderAndroidCode,pt:this.renderIos},s=Cb(n);return r[s]()}),(0,O.A)(this,"renderIos",()=>{const{code:n,text:r}=this.props;return(0,o.jsx)(vK,{code:n,text:r})}),(0,O.A)(this,"renderCss",()=>{const{code:n,language:r}=this.props;return(0,o.jsx)(yK,{language:r,code:n})}),(0,O.A)(this,"renderAndroidCode",()=>{const{whichAndView:n,code:r,text:s}=this.props;return(0,o.jsx)(xK,{code:r,text:s,whichAndView:n})}),this.hljsRef=l.createRef()}componentDidMount(){this.highlight()}componentDidUpdate(t){(t.code!==this.props.code||t.language!==this.props.language)&&this.highlight()}render(){const{language:t,theme:n}=this.props;return(0,o.jsxs)(hm,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(wb.Ay,{menuClassName:"CodeBoxSelectMenu",placeholder:" ",unstyled:!0,menuX:"center",optionList:fK,value:t,onChange:this.updateLanguage}),(0,o.jsx)(QZ,{text:"#code-content"})]}),(0,o.jsx)("div",{ref:this.hljsRef,className:m()("code-content",{"is-dark-theme":n==="dark"}),id:"code-content",children:(0,o.jsx)("pre",{children:this.renderCode(t)})})]})}}const yK=e=>{let{language:t,code:n}=e;const r=bK(t),s=CK(t),c=SK(n);return(0,o.jsx)(o.Fragment,{children:Object.entries(c).map(d=>{let[p,g]=d;return(0,o.jsx)("code",{className:mK[t],children:""+p+s+g+r},p)})})},vK=e=>{let{code:t,text:n}=e;const r=wK({code:t,text:n});return(0,o.jsx)(o.Fragment,{children:r.map((s,c)=>(0,o.jsx)("code",{className:"swift",children:s},c))})},xK=e=>{let{code:t,text:n,whichAndView:r}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("code",{className:"xml",children:"<"+r}),Object.entries(t).map(s=>{let[c,d]=s;return(0,o.jsx)("code",{className:"xml",children:"android:"+c+'="'+d+'"'},c)}),n.length>0&&(0,o.jsx)("div",{children:'android:text="'+n+'"'}),(0,o.jsx)("code",{className:"xml",children:"/>"})]})},bK=e=>{switch(e){case"stylus":case"sass":return"";default:return";"}},CK=e=>{switch(e){case"stylus":return" ";default:return": "}},wK=e=>{let{code:t,text:n}=e;const{width:r,height:s,x:c,y:d,fontFamily:p,cornerRadius:g,fontSize:y,opacity:w,"border-width":_,borderColor:j,alignment:N,background:Z,backgroundColor:Q}=t,se=n?"textLayer":"layer",ie=n?"UILabel":"UIView",he=[];return he.push("let "+se+" = "+ie+"(frame: CGRect(x: "+c+", y:"+d+", width: "+r+", height: "+s+"))"),Z&&he.push(se+".background = "+Z),Q&&he.push(se+".backgroundColor = "+Q),w&&he.push(se+".alpha = "+w),g&&he.push("layer.layer.cornerRadius = "+g),_&&he.push("layer.layer.borderWidth = "+_),j&&he.push("layer.layer.borderColor = "+j+".cgColor"),n&&(he.push('let textContent = "'+n+'"'),he.push('let textString = NSMutableAttributedString(string: textContent, attributes: [\n NSAttributedStringKey.font: UIFont(name: "'+p+'", size: '+y+")!\n ])"),he.push("let textRange = NSRange(location:0, length: textString.length)"),he.push("let paragraphStyle = NSMutableParagraphStyle()"),he.push("paragraphStyle.alignment = ."+N),he.push("textString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: textRange)"),he.push("textLayer.attributedText = textString")),he},SK=e=>{if(e["border-color"]&&e["border-width"]){const t={border:e["border-width"]+" solid "+e["border-color"]};return delete e["border-color"],delete e["border-width"],Object.assign(e,t)}return e},AK=e=>{let{adapterLeft:t,adapterTop:n,adapterWidth:r,adapterHeight:s,opacity:c,radius:d,rotate:p,mask:g,ignore_underlying_mask:y,refVars:w}=e;return(0,o.jsxs)(hm,{children:[I18N.pInspect.basic_attribute,t&&(0,o.jsx)(jc,{title:I18N.pInspect.position,dataValue:[I18N.pInspect._x,I18N.pInspect._y],data:[t,n],titleWidth:30}),r&&(0,o.jsx)(jc,{title:I18N.pInspect.size,dataValue:[I18N.pInspect._w,I18N.pInspect._h],data:[r,s],refVars:[w==null?void 0:w.w,w==null?void 0:w.h],titleWidth:30}),p&&(0,o.jsx)(jc,{title:I18N.pInspect.rotation,data:[p],refVars:[w==null?void 0:w.r]}),d&&(0,o.jsx)(MK,{radius:d,refVars:w}),c&&(0,o.jsx)(jc,{title:I18N.pInspect.opacity,data:[c],refVars:[w==null?void 0:w.opacity],titleWidth:30}),g&&(0,o.jsx)(jc,{title:I18N.pInspect.mask,data:[g],i18n:!0,titleWidth:30}),y&&(0,o.jsx)(jc,{title:I18N.pInspect.underlying_mask,data:["ignore_underlying_mask"],i18n:!0,titleWidth:30})]})},MK=e=>{let{radius:t,refVars:n}=e;if(!t)return null;const r=(t==null?void 0:t.split(" "))||[],s=r.length>1,c=[].concat((n==null?void 0:n.radius)||[]);if(s){const p=r[3],g=c[3];r[3]=r[2],r[2]=p,c[3]=c[2],c[2]=g}const d=s?[0,90,270,180].map(p=>(0,o.jsx)("span",{className:"prefix-radius-label",children:(0,o.jsx)(Fd.C,{name:"design/br_single",size:10,style:{transform:"rotate("+p+"deg)"}})},p+"deg")):[(0,o.jsx)("span",{className:"prefix-radius-label",children:(0,o.jsx)(Fd.C,{name:"design/br_single",size:10})},"radius")];return(0,o.jsx)(jc,{title:I18N.pInspect.border_radius,dataValue:d,data:r,refVars:c,titleWidth:30,className:"radius-panel"})},kK=(0,l.memo)(e=>{var t,n,r,s;let{textStyles:c,ratio:d,unit:p,text:g,colorUnit:y,hiddenSpacing:w,rpxRatio:_,refVars:j}=e;const{color:N,fontSize:Z,fontFace:Q,fontStyle:se,horizontalAlign:ie,verticalAlign:he,paraSpacing:xe,letterSpacing:Se,lineHeight:_e,italic:De}=c||{},Je=jp(N,"rgba"),Ne=Vd(Z,d,p,_),pt=jp(N,y),_t=I6(_e,d,p,_),gt=I6(Se,d,p,_),zt=se||(typeof De=="boolean"?De?"italic":"normal":void 0);return(0,o.jsxs)(hm,{children:[I18N.pInspect.font,c&&(0,o.jsxs)("div",{children:[Q&&(0,o.jsx)(jc,{title:I18N.pInspect.type_face,data:[Q]}),zt&&(0,o.jsx)(jc,{title:I18N.pInspect.font_style,data:[zt]}),Je&&(0,o.jsx)(W4,{stateColor:pt,title:I18N.pInspect.color,rgbaColor:Je}),(0,o.jsx)("div",{className:"row-divider"}),(0,o.jsxs)("div",{className:"col-2",children:[Ne!==void 0&&(0,o.jsx)(jc,{title:I18N.pInspect.font_size,titleWidth:30,data:[Ne],refVars:[j==null||(t=j.textStyles)==null?void 0:t.fontSize]}),gt!==void 0&&(0,o.jsx)(jc,{title:I18N.pInspect.letter_spacing,titleWidth:42,data:[gt||"auto"],refVars:[j==null||(n=j.textStyles)==null?void 0:n.letterSpacing]})]}),(0,o.jsxs)("div",{className:"col-2",children:[_t!==void 0&&(0,o.jsx)(jc,{title:I18N.pInspect.line_height,titleWidth:30,data:[_t],refVars:[j==null||(r=j.textStyles)==null?void 0:r.lineHeight]}),xe!==void 0&&(0,o.jsx)(jc,{title:I18N.pInspect.para_spacing,titleWidth:42,data:[xe],refVars:[j==null||(s=j.textStyles)==null?void 0:s.paraSpacing]})]})]}),ie&&(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(jc,{title:I18N.pInspect.horizontal_align,titleWidth:30,data:[ie]}),(0,o.jsx)(jc,{title:I18N.pInspect.vertical_align,titleWidth:30,data:[he||"auto"]})]}),g!==void 0&&(0,o.jsx)(jc,{text:g,title:I18N.pInspect.content,titleWidth:"100%",refVars:[j==null?void 0:j.text],fontFace:Q})]})});var EK=i(35603);const IK=()=>(0,o.jsx)("div",{children:"Error in GlobalAttributes"});class TK extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleDelColor",t=>{const n=Qf(t),r=wZ((n==null?void 0:n.hex)||n);this.props.dispatch({type:"inspect:update:state",payload:{usePickerColor:r}})}),(0,O.A)(this,"handleCopy",()=>{z4("proto-inspect")})}componentWillUnmount(){this.props.dispatch({type:"inspect:update:state",payload:{focusColor:""}})}componentDidCatch(t,n){return console.error(t,n),(0,o.jsx)(IK,{})}render(){const{screenName:t,rgbaColor:n,stateColor:r,userPickColor:s=[],colorUnit:c,focusColor:d}=this.props,p=$f();return(0,o.jsxs)("div",{className:m()("global-attributes"),children:[(0,o.jsx)(Mb,{title:I18N.pInspect.screen_name,value:t}),(0,o.jsxs)(hm,{children:[I18N.pInspect.basic_attribute,(0,o.jsx)(W4,{title:I18N.pInspect.backgroundColor,rgbaColor:n,stateColor:r})]}),(0,o.jsxs)(hm,{children:[I18N.pInspect.color_title,(0,o.jsx)(_K,{trackId:I18N.pInspect.pick_color,title:I18N.pInspect.pick_color,handleDelColor:this.handleDelColor,colorBlockMap:s,focusColor:d,colorUnit:c,canDel:!0,isSignIn:p,onCopy:this.handleCopy})]})]})}}const _K=e=>{let{trackId:t,title:n,colorBlockMap:r,handleDelColor:s,canDel:c,colorUnit:d,focusColor:p,isSignIn:g,onCopy:y}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"second-title",children:n}),(0,o.jsx)("div",{className:"panel-row",children:r.length?r.map((w,_)=>{const j=jp(w,"rgba"),N=jp(j,d);return(0,o.jsx)(PK,{canDel:c,trackId:t,handleDelColor:s,color:N,rgbaColor:j,colorUnit:d,focusColor:p,isSignIn:g,onCopy:y},""+_+w)}):(0,o.jsx)(LK,{})})]})},PK=e=>{let{color:t,rgbaColor:n,colorUnit:r,handleDelColor:s,canDel:c,trackId:d,focusColor:p,isSignIn:g,onCopy:y}=e;const w=t===jp(p,r);return(0,o.jsx)(o.Fragment,{children:g?(0,o.jsx)(EK.A,{shouldOpenOnHover:!0,className:m()("color-dropdown",{"is-focus":w}),opener:(0,o.jsx)(um.A,{arrowed:!1,"data-type":"copy","data-track-id":d,"data-clipboard-text":t,duration:1e3,content:{click:I18N.pInspect.copied},children:(0,o.jsx)("span",{className:"row-item color-block",style:{background:n,display:"block"},onClick:y})}),inflexible:!0,arrowed:!0,menuX:"left",menuY:"top",menu:(0,o.jsx)(NK,{color:t,rgbaColor:n,canDel:c,handleDelColor:s}),menuClassName:(0,Pl.Hn)(["palette-dropdown-menu",r])}):(0,o.jsx)(um.A,{arrowed:!1,duration:1e3,children:(0,o.jsx)("span",{className:"row-item color-block row-margin",style:{background:n,display:"block"},onClick:y})})})},LK=()=>(0,o.jsx)("div",{className:"forbid-color",children:(0,o.jsx)("div",{className:"transparent"})});class NK extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"handleClick",()=>{const{rgbaColor:t,handleDelColor:n}=this.props;n(t)})}render(){const{color:t,canDel:n}=this.props;return(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:t}),n&&(0,o.jsx)(Fd.C,{name:"new_replace/trash",className:"trash",onClick:this.handleClick})]})}}const jK=e=>{let{theme:t,layer:n,unit:r,ratio:s,showGlobal:c,language:d,colorUnit:p,currPageName:g,currPageBgColor:y,usePickerColor:w,focusColor:_,rpxRatio:j,dispatch:N}=e;if(c){const Gi=jp(y,"rgba"),ec=jp(y,p);return(0,o.jsx)(TK,{rgbaColor:Gi,stateColor:ec,colorUnit:p,screenName:g,userPickColor:w,focusColor:_,dispatch:N})}const{left:Z,top:Q,width:se,height:ie,o:he,bdRadius:xe,bgColors:Se=[],borders:_e=[],hiddenSpacing:De=!1,displayName:Je,textStyles:Ne=null,inspectText:pt,image:_t,shadows:gt=[],inner_shadows:Ct=[],rotation:zt,textShadows:Dt=[],mask:sn=null,ignore_underlying_mask:Rn=!1,refVars:On}=n,Lo=_e.length>0,Yo=Se.length>0,Cn=!!_t,hn=Ne&&pt&&!!k6(pt).length,oa=gt.length>0||Dt.length>0,Ao=Ct.length>0,ca={left:Math.round(Z),top:Math.round(Q),width:Math.round(se),height:Math.round(ie),borderRadius:xe,opacity:he,rotation:zt,ratio:s,unit:r,rpxRatio:j},va=n.name==="line"||n.name==="arrow",{adapterTop:ra,adapterLeft:Jo,adapterWidth:$o,adapterHeight:sa,radius:da,opacity:nr,rotate:cr}=UZ(ca),yr=FZ({textStyles:Ne,background:Se,borders:_e,shadows:gt,innerShadows:Ct,colorUnit:p,ratio:s,unit:r,language:d,rpxRatio:j}),pi=he&&he!==100?he/100:null,hi=BZ({attr:{x:Jo,y:ra,width:$o,height:sa,opacity:pi,borderRadius:da,...yr},language:d,unit:r}),Hi=Cn?"ImageView":hn?"TextView":"View",Kr=Je;return(0,o.jsxs)("div",{children:[(0,o.jsx)(Mb,{value:Kr}),(0,o.jsx)(AK,{adapterTop:ra,adapterLeft:Jo,adapterWidth:$o,adapterHeight:sa,rotate:cr,radius:da,opacity:nr,mask:sn,refVars:On,ignore_underlying_mask:Rn}),hn&&(0,o.jsx)(kK,{textStyles:Ne,ratio:s,unit:r,colorUnit:p,text:k6(pt),hiddenSpacing:De,rpxRatio:j,refVars:On}),Yo&&(0,o.jsx)($Z,{backgroundColorSort:Se,colorUnit:p}),Lo&&(0,o.jsx)(eK,{isStroke:va,borderSort:_e,ratio:s,unit:r,colorUnit:p,rpxRatio:j,refVars:On}),oa&&(0,o.jsx)(Eb,{shadows:gt,textShadows:Dt,colorUnit:p,unit:r,ratio:s,rpxRatio:j,refVars:On}),Ao&&(0,o.jsx)(Eb,{shadows:Ct,colorUnit:p,unit:r,ratio:s,isInnerShadows:!0,refVars:On}),(0,o.jsx)(gK,{theme:t,code:hi,whichAndView:Hi,language:d,text:k6(pt),dispatch:N})]})},DK=E.Ay.div.withConfig({displayName:"styles__StyledLayerPanel",componentId:"sc-wu10f9-0"})(["display:flex;flex-direction:column;position:relative;flex:1;width:260px;height:100%;font-size:12px;background-color:",";transition:left 0.5s ease-in-out;color:",";overflow-x:hidden;overflow-y:auto;.layerInfo{position:relative;width:inherit;height:100%;overflow-x:hidden;overflow-y:auto;flex:1;& > div{width:inherit;}.Select{color:",";}.global-attributes{.color-dropdown{button{border-radius:2px;transition:box-shadow 0.5s;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;overflow:hidden;}&.is-focus{button{box-shadow:0 0 0 2px #1e98ea;}}}}.layer-name{.panel-item-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.panelAction{border-bottom:1px solid ",";padding:20px;width:100%;.panelMoreStateButton{text-align:center;cursor:pointer;.name{display:inline-block;width:100%;height:32px;line-height:32px;border:1px solid #1684FC;border-radius:4px;color:#1684FC;&.exit{background-color:#1684FC;color:#ffffff;}}}.panelstate{display:flex;align-items:center;margin-top:16px;.left-label{margin-right:38px;color:#5B6B73;}.right-content{label.panelstate-select{width:158px;}}}}.header{line-height:32px;height:32px;font-size:12px;color:",";background:",";font-weight:bold;padding:0 20px;}.col-2{display:flex;.panel{flex:1;&:first-child{margin-right:8px;}.panel-item-value{flex:1;width:auto;}}}.panel{display:flex;height:22px;line-height:22px;margin-bottom:18px;position:unset;.title-label{flex-shrink:0;color:",";}&.panel-item-text{flex-wrap:wrap;height:auto;.panel-item{margin:4px -4px 0;.text-content{display:block;}.text-var-tip{display:inline-flex;}}}&.panel-bottom-8{margin-bottom:8px;}&.shadow-panel{&::before{width:0 !important;}.panel-item{width:50px !important;}}&.radius-panel{height:auto;margin-bottom:0;.mult-panel-box{flex-wrap:wrap;.panel-item{width:calc(50% - 5px) !important;flex-basis:calc(50% - 5px) !important;margin-bottom:18px;&:nth-child(even){margin-right:0;}}}.prefix-radius-label{width:22px;height:22px;display:flex;align-items:center;justify-content:center;svg{color:",";path{fill:none;}}}}.mult-panel-box{width:151px;display:flex;justify-content:space-between;flex:1;.panel-item{.prefix-label{width:24px;text-align:center;color:",";}}}.single-panel-box{display:flex;flex:1;.panel-item{width:100%;}}.panel-item{flex:1;text-align:center;background:",";border-radius:2px;border:1px solid ",";cursor:pointer;margin-right:10px;&:last-child{margin-right:0;}&.panel-item-color{position:relative;display:flex;justify-content:flex-start;width:138px;.panel-item-value{text-align:left;width:138px;}}&.item-flex-1{flex:1;height:auto;}.panel-item-value{line-height:22px;user-select:text;display:flex;align-items:center;padding:0 4px;&.has-var{justify-content:space-between;flex:1;}&.text-content{flex:1;padding:0.25em 0.5em;height:64px;line-height:1.5;word-wrap:break-word;overflow-x:hidden;overflow-y:scroll;text-align:left;white-space:pre-wrap;}.split-value{display:flex;align-items:center;justify-content:space-between;margin:0 4px;&:hover > .var-tip-trigger{visibility:visible;}}.var-tip-trigger{visibility:hidden;}&:hover > .var-tip-trigger{visibility:visible;}}.panel-item-color-block-wrap{position:absolute;right:1px;top:1px;border:inset 1px rgba(0,0,0,0.2);border-radius:2px;cursor:pointer;width:18px;height:18px;}.panel-item-color-block-imageback-wrap{background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:12px 12px;background-position:-1px -1px,-1px 5px,5px -7px,-7px -1px;}.panel-item-color-block{height:100%;}}}.row-divider{border-top:1px solid ",";margin-bottom:12px;}.container{padding:20px 20px 12px;min-width:230px;&.global-layer{padding-top:0;height:60px;}.second-title{display:flex;margin-bottom:10px;color:",";}.code-content{position:relative;width:100%;overflow:hidden;color:",";font-size:12px;font-family:Menlo,Courier,monospace;line-height:22px;&.is-dark-theme{pre code{color:",";background:",";span{color:inherit;}}}pre{white-space:pre-wrap;}*{user-select:text;font-weight:normal;overflow:hidden;}}.text-content{flex:1;line-height:18px;word-wrap:break-word;}.global-font{line-height:22px;&::before{min-width:0 !important;}.panel-item-value{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.panel-item{display:flex;align-items:center;}.panel-row{display:flex;flex-wrap:wrap;.Dropdown{margin:0 6px 6px 0;cursor:pointer;}.row-item.color-block{border:inset 1px rgba(0,0,0,0.2);width:18px;height:18px;border-radius:2px;&.row-margin{margin:0 6px 6px 0;cursor:pointer;}}}.panel-image{width:100%;height:50px;background-image:svg-load('./background.svg');object-fit:contain;}.image-download{justify-content:space-between;align-items:center;& a{height:19px;font-size:19px;color:#f55d54;}}.download-file-type{display:flex;align-items:center;}.download-file-type-icon{display:inline-block;text-align:center;color:#f55d54;border:1px solid currentColor;width:30px;height:19px;line-height:17px;vertical-align:middle;margin-right:9px;}}.shadow-item-gap{padding-bottom:20px;&:last-child{padding-bottom:0;}}.forbid-color{position:relative;width:18px;height:18px;border:1px solid #d9d9d9;margin-bottom:8px;background:#fff;cursor:not-allowed;overflow:hidden;.transparent{width:200%;position:absolute;left:0;top:0;border-top:1px solid #eb5648;transform:translateY(-50%) rotate(45deg);transform-origin:0 0;}}.slice-title{display:flex;justify-content:space-between;align-items:center;& > span{cursor:pointer;color:var(--copy-btn-color);}}.slice-panel{height:40px;display:flex;justify-content:flex-start;align-items:center;}.slice-item-wrap{min-width:40px;height:40px;border:1px solid #B7BBC1;border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;& > img{box-shadow:rgba(25,39,45,0.4) 0 1px 4px;}}.slice-item-name{margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.slice-panel-item{height:24px;line-height:24px;margin-bottom:8px;text-indent:8px;color:#415058;background:#F6F7F8;border:1px solid #F2F2F2;border-radius:2px;}.copyBtn{cursor:pointer;float:right;color:",";&:focus{outline:0;}}@keyframes rotate-infinite{from{transform:rotate(0);}to{transform:rotate(720deg);}}}&.is-loading{justify-content:center;align-items:center;.layer-panel-loading{width:60px;height:60px;}}"],e=>e.theme.color_background_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_background_icon_active,e=>e.theme.color_text_L2,e=>e.theme.color_background,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_background,e=>e.theme.color_background_icon_hover,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_background,e=>e.theme.color_primary_proto01),OK=(0,E.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.palette-dropdown-menu{color:#415058;width:auto;&.hex,&.argb{text-transform:uppercase;}.arrow{svg path{fill:",";}}.content{opacity:0.9;background-color:",";& > div{display:flex;justify-content:space-between;align-items:center;> span{display:block;width:-moz-max-content;width:-webkit-max-content;width:max-content;}}}.trash{margin-left:.5em;font-size:14px;color:#C8CDD0;cursor:pointer;}}}.textEllipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}#IBOT_SELECT_MENU_ROOT{ul.CodeBoxSelectMenu{background-color:",";width:100%;padding:0 0.5em;font-size:12px;min-width:7em;.SelectOption{color:",";justify-content:center;margin:0.5em 0;border-radius:2px;&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}}"],e=>e.theme.color_background_white,e=>e.theme.color_background_white,e=>e.theme.color_background_white,e=>e.theme.color_text_L2,e=>e.theme.color_primary_proto01,e=>e.theme.color_background,e=>e.theme.color_primary_proto01,e=>e.theme.color_background),RK=e=>{const{state:{unit:t,ratio:n,language:r,colorUnit:s,usePickerColor:c,focusColor:d},dispatch:p}=G4(),{sdk:g,theme:y,selectedWidgetInfo:w,currPageKey:_,getWidgetInspectStyles:j,getWidgetInspectRefVars:N}=e,Z=!w,Q=(0,l.useRef)(null);(0,l.useEffect)(()=>(Q.current=new(C6())('[data-type="copy"]'),()=>{Q.current.destroy()}));let se=null;if(w!=null&&w.key){let De=Iu()(g.getHotItem(w.key).hotAttr);if(De.type!=="rResCanvas"&&(De={...De,...g.getRelocateLocalBound(w.key,g.locUpColdCanvasKey(w.key)||g.locUpRBPageKey(w.key))}),w.extra){const{extra:{x:Je,y:Ne}}=w;se=MZ(De,"none",{x:Je,y:Ne},j,N)}else se=b6(De,"none",j,N)}const{name:ie="",fill:he={},deviceW:xe}=g.getHotItem(_).hotAttr||{},Se=he?(0,$c.t0)(he.solidColor):"",_e=pb(xe);return(0,o.jsxs)(DK,{className:Z?"is-loading":"",children:[(0,o.jsx)("div",{className:"layerInfo",children:(0,o.jsx)(jK,{layer:se,unit:t,ratio:n,language:r,colorUnit:s,currPageName:ie,currPageBgColor:Se,usePickerColor:c,focusColor:d,showGlobal:!se,theme:y,rpxRatio:_e,dispatch:p})}),(0,o.jsx)(OK,{})]})};var BK=i(70768),T6=i(91752);const UK=E.Ay.label.withConfig({displayName:"styled__StyledInputLabel",componentId:"sc-54bl9a-0"})(["&.Textarea,&.CoreTextarea,&.Input,&.CoreInput{display:inline-block;color:#415058;input,textarea{font-size:inherit;color:inherit;&:disabled{opacity:0.5;cursor:not-allowed;}&[readonly]{color:#8d9ea7;}&:focus{outline:0;}&::placeholder{color:#8d9ea7;}}}&.is-invalid input,&.is-invalid textarea,& input:not([type=email]):invalid,& textarea:invalid{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(#ff6161,.5) !important;}&:not(.unstyled){input,textarea{background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;caret-color:#298df8;transition:0.2s ease-out;transition-property:background,border,box-shadow,opacity;&:enabled:not([readonly]){:hover{border-color:#298df8;}:focus{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}}}}&.is-readonly{color:#8d9ea7;}&.Input,&.CoreInput{&.regular{height:34px;font-size:14px;}&.small{height:22px;font-size:12px;}input{padding:0 .5em;width:100%;height:100%;}}&.Textarea,&.CoreTextarea{&.regular{font-size:14px;}&.small{font-size:12px;}textarea{padding:.5em;width:100%;min-height:5em;max-height:10em;resize:vertical;&:disabled,&[readonly]{resize:none;}}}&.CoreInput:not(.unstyled) input,&.CoreTextarea:not(.unstyled) textarea{background-color:#fff;border-color:#c8cdd1;}&.InputEmail,&.CoreInputEmail{&:not(.unstyled).isnt-valid input{box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;border-color:#ff6161 !important;}}"]),FK=(0,E.Ay)(UK).withConfig({displayName:"styled__StyledInputNumber",componentId:"sc-54bl9a-1"})(["&.InputNumber,&.CoreInputNumber{position:relative;display:inline-block;min-width:2em;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;&:not(.unstyled).is-active input{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}&:not(.unstyled).isnt-valid input{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;}&.is-disabled{cursor:not-allowed;> *{opacity:0.5;}}&.is-disabled,&.is-readonly{.action{visibility:hidden;}}input{padding-right:1.5em;padding-left:.5em;font-family:inherit;}&.regular input{padding-right:2em;}}&:not(.is-disabled):hover input:not([readonly]),input:not([readonly]):focus{& ~ .action{opacity:1;transition:all 0.2s ease-out;}}.action{position:absolute;top:0;right:0;width:1.5em;height:100%;text-align:center;&:not(.caret){opacity:0;}svg{height:4px;fill:currentColor;fill-rule:evenodd;}&.caret{button{height:100%;}svg{transition:transform 0.2s ease-out;}/.InputNumber.is-menu-open .caret svg{transform:rotate(180deg);}}button{display:block;margin:0;padding:0;width:100%;height:50%;line-height:0;color:#8d9ea7;transition:all 0.1s ease-out;&:hover{color:#5b6b73;}&:active{color:#298df8;}&[data-action=up] svg{margin:5px 0 2px;}&[data-action=down] svg{margin:2px 0 5px;}}}&.regular .action{top:50%;transform:translateY(-50%);width:2em;height:28px;}&.with-desc{margin-top:6px;margin-bottom:1.5em;}.title,.desc,.prefix,.suffix{position:absolute;top:0;left:0;display:flex;align-items:center;height:100%;pointer-events:none;user-select:none;border:1px solid transparent;}&.is-empty{.prefix,.suffix{opacity:0.3;}}.title{margin-left:.5em;color:#8d9ea7;}.desc{top:100%;width:100%;height:1.5em;line-height:1.5;justify-content:center;color:#8d9ea7;}.prefix{margin-left:.5em;}.suffix{padding-left:.5em;padding-right:1.625em;width:100%;&:before{content:attr(data-value);display:inline-block;margin-right:0.125em;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;overflow:hidden;opacity:0;}}"]);function d0(e,t,n){return(t=VK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VK(e){var t=zK(e,"string");return typeof t=="symbol"?t:t+""}function zK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const WK=500,HK=30,GK=1e3,ZK=(e,t)=>Number(Number(e).toFixed(t)),Tb=function(e,t){let{shiftKey:n,metaKey:r}=e;return t===void 0&&(t=1),n?t*10:r?t*100:t},KK=e=>e===""||/^0?[+-]0*$/.test(e)||/^[+-]?\d*\.$/.test(e),YK=e=>{let{currentTarget:t}=e;return setTimeout(()=>t.select(),50)};class _6 extends l.PureComponent{constructor(){super(...arguments),d0(this,"state",{prevProps:this.props,value:(0,Pl.Fd)(this.props.value),isActive:!1,isValid:!0,isMenuOpen:!1}),d0(this,"onChange",t=>{const{target:{value:n}}=t;this.setValue(n.trim(),t)}),d0(this,"correctNumber",t=>{const{min:n,max:r,precision:s}=this.props;return ZK(Math.min(Math.max(t,n),r),s)}),d0(this,"checkValidity",t=>t===""||isFinite(t)&&this.correctNumber(t)===Number(t)),d0(this,"setValue",(t,n)=>{n.persist(),clearTimeout(this.correctionTimeout);const{value:r,parser:s,placeholder:c,onChange:d}=this.props,p=s(t.toString()).toString(),g=t!=="0"&&!p&&!!c,y=this.checkValidity(p),w=t!==""&&isFinite(p),_=KK(p);if(!w&&!_)return;const j=this.correctNumber(p),N=isNaN(j)?r:j,Z=g?"":_||!y?p:N;this.setState({value:Z,isValid:y}),y?d(Z,n):Object.assign(this,{correctionTimeout:setTimeout(()=>this.state.value===Z&&this.setState({value:N,isValid:!0},d(N,n)),GK)})}),d0(this,"focusOnInput",t=>{try{const n=t.currentTarget.closest("label").querySelector("input");setTimeout(()=>n.focus())}catch(n){console.error(n)}}),d0(this,"onStep",t=>{t.persist(),t.nativeEvent.stopPropagation();const{action:n}=t.currentTarget.dataset,r=Tb(t,this.props.step)*(n==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+r),t),this.focusOnInput(t),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setValue(this.correctNumber(Number(this.state.value)+r),t),HK)}),WK)})}),d0(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),d0(this,"onKeyDown",t=>{const n=t.key==="ArrowUp"?"up":t.key==="ArrowDown"?"down":null;if(t.key==="Enter"&&this.props.isEnterBlur){var r;this.setInactive(),(r=this.$label)==null||(r=r.querySelector("input"))==null||r.blur();return}if(!n)return;t.persist(),t.nativeEvent.preventDefault();const s=Tb(t,this.props.step)*(n==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+s),t)}),d0(this,"set$label",t=>Object.assign(this,{$label:t})),d0(this,"setActive",()=>this.setState({isActive:!0})),d0(this,"setInactive",()=>this.setState({isActive:!1})),d0(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),d0(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),d0(this,"onSelect",t=>{t.persist();const{currentTarget:n}=t;this.setValue(n.dataset.value,t),this.closeMenu()}),d0(this,"onClickOutside",t=>{let{target:n}=t;n.closest("label")&&this.$label.contains(n)||this.setInactive()}),d0(this,"onBlur",t=>{const{valueForEmptyInput:n,onBlur:r}=this.props,{value:s}=this.state;r(t),!s&&r6()(n)&&this.setValue(n,t)})}static getDerivedStateFromProps(t,n){let{prevProps:r,value:s}=n;if(!aa()(r,t)){const{value:c}=t;return{prevProps:t,value:(0,Pl.Fd)(c)}}return null}componentDidMount(){const{$label:t}=this,{value:n,title:r,prefix:s,suffix:c}=this.props,d=this.checkValidity(n);if(this.setState({isValid:d}),!r&&!s&&!c)return;const p=t.querySelector("input"),g=t.querySelector(".action"),y=t.querySelector(".title"),w=t.querySelector(".prefix"),_=t.querySelector(".suffix span"),j=parseInt(getComputedStyle(p).getPropertyValue("padding-left"));if(r||s){const Z={paddingLeft:(y?y.clientWidth+6:0)+(w?w.clientWidth:0)+j+"px"};Object.assign(p.style,Z),r&&s&&Object.assign(w.style,{left:y.clientWidth+6+"px"}),c&&Object.assign(_.parentNode.style,Z)}if(c){const N=g.clientWidth+_.clientWidth;Object.assign(p.style,{paddingRight:N+"px"})}}render(){const{className:t,size:n,theme:r,unstyled:s,readOnly:c,placeholder:d,prefix:p,suffix:g,title:y,desc:w,formatter:_,dontSelectOnFocus:j,onFocus:N=j?void 0:YK,optionList:Z,menuX:Q}=this.props,{value:se,isActive:ie,isValid:he,isMenuOpen:xe}=this.state,Se=se==="",_e=this.props.isDisabled||this.props.disabled,De=(0,Pl.Hn)([r==="core"?"CoreInput CoreInputNumber":"Input InputNumber",n,s&&"unstyled",t,ie&&!_e&&!c&&"is-active",xe&&"is-menu-open",_e&&"is-disabled",c&&"is-readonly",he?"is-valid":"isnt-valid",Se?"is-empty":"isnt-empty",!!y&&"with-title",!!w&&"with-desc",!!p&&"with-prefix",!!g&&"with-suffix"]),Je=Z&&Z.length>0;return(0,o.jsxs)(FK,{className:De,ref:this.set$label,onMouseDown:this.setActive,children:[y&&(0,o.jsx)("span",{className:"title",children:y}),w&&(0,o.jsx)("span",{className:"desc",children:w}),p&&(0,o.jsx)("span",{className:"prefix",children:p}),(0,o.jsx)("input",{type:"text",value:_(se),placeholder:d,disabled:_e,readOnly:c,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:N,onBlur:this.onBlur,...(0,Pl.vq)(this.constructor,this.props)}),g&&(0,o.jsx)("span",{className:"suffix","data-value":_(se),"data-suffix":g,children:(0,o.jsx)("span",{children:g})}),(0,o.jsx)(_b,{hasMenu:Je,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),Je&&(0,o.jsx)(wb.eB,{isOpen:xe,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:Z,value:se,menuX:Q,onChange:this.onSelect,onClose:this.closeMenu}),(ie||xe)&&(0,o.jsx)(Jr.A,{target:document,onClick:this.onClickOutside})]})}}d0(_6,"propTypes",{size:Sa().oneOf(["regular","small"]),theme:Sa().oneOf(["core","plain"]),unstyled:Sa().bool,step:Sa().number,precision:Sa().number,formatter:Sa().func,parser:Sa().func,value:Sa().oneOfType([Sa().string,Sa().number]),valueForEmptyInput:Sa().oneOfType([Sa().string,Sa().number]),placeholder:Sa().oneOfType([Sa().string,Sa().number]),optionList:Sa().arrayOf(Sa().oneOfType([Sa().string,Sa().number])),menuX:Sa().oneOf(["left","center"]),dontSelectOnFocus:Sa().bool,title:Sa().node,desc:Sa().node,prefix:Sa().node,suffix:Sa().node,min:Sa().number,max:Sa().number,isDisabled:Sa().bool,disabled:Sa().bool,readOnly:Sa().bool,onChange:Sa().func.isRequired,onFocus:Sa().func,onBlur:Sa().func,className:Sa().string}),d0(_6,"defaultProps",{size:"regular",theme:"plain",unstyled:!1,value:"",valueForEmptyInput:null,placeholder:"",step:1,precision:1,parser:e=>e,formatter:e=>e,min:0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,isEnterBlur:!1,onChange:()=>null,onBlur:()=>null});class _b extends l.PureComponent{render(){const{hasMenu:t,onToggleMenu:n,onStep:r,onRelease:s}=this.props;return(0,o.jsx)(l.Fragment,{children:t?(0,o.jsx)("div",{className:"action caret",children:(0,o.jsx)(T6.Ay,{type:"text",tabIndex:"-1",onClick:n,children:(0,o.jsx)(ma.A,{name:"triangle_down"})})}):(0,o.jsxs)("div",{className:"action",children:[(0,o.jsx)(T6.Ay,{type:"text",tabIndex:"-1","data-action":"up",onMouseDown:r,onMouseLeave:s,onMouseUp:s,children:(0,o.jsx)(ma.A,{name:"triangle_up"})}),(0,o.jsx)(T6.Ay,{type:"text",tabIndex:"-1","data-action":"down",onMouseDown:r,onMouseLeave:s,onMouseUp:s,children:(0,o.jsx)(ma.A,{name:"triangle_down"})})]})})}}d0(_b,"propTypes",{hasMenu:Sa().bool,onStep:Sa().func,onToggleMenu:Sa().func,onRelease:Sa().func});var Pb=i(66633);const XK=(0,E.Ay)(d8.Ay).withConfig({displayName:"styled__StyledWorkspaceSelectProto",componentId:"sc-1443prg-0"})(["&.WorkspaceSelect{padding:0px;border-radius:4px;button{width:auto;display:flex;padding:0 6px;align-items:center;color:",";}.caret{flex-shrink:0;width:8px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:8px;height:8px;}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),Lb="select-menu-width-108",sq=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu.is-open{border:1px solid #454647;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],Lb),QK=(0,E.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu{padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";&.is-open{border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{border-radius:4px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],e=>e.theme.color_text_L0,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L0,Lb);class H4 extends l.PureComponent{render(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(XK,{...this.props,arrowSvg:(0,o.jsx)(Fd.C,{className:"triangle-icon",name:"common/expand"})}),(0,o.jsx)(QK,{})]})}}var JK=i(46082);const qK=E.Ay.div.withConfig({displayName:"styles__StyledLayerBorder",componentId:"sc-1h0nsie-0"})(["position:absolute;pointer-events:none;border:1px solid ",";.LayerCorner{position:absolute;display:inline-block;width:6px;height:6px;border-radius:50%;background-color:white;border:1px solid ",";&.left{left:-4px;}&.top{top:-4px;}&.right{right:-4px;}&.bottom{bottom:-4px;}}.layer-width,.layer-height{line-height:1;padding:3px 5px;background-color:",";color:#fff;}.layer-width{position:absolute;top:-5px;left:50%;transform:translateX(-50%) translateY(-100%);}.layer-height{position:absolute;top:50%;right:-5px;transform:translateX(100%) translateY(-50%);}.rect_info{position:absolute;display:inline-block;top:calc(100% + 5px);left:50%;transform:translateX(-50%);line-height:1;padding:3px 5px;background-color:#1E98EA;color:#fff;border-radius:2px;white-space:nowrap;}"],e=>e.theme.color_primary_proto01,e=>e.theme.color_primary_proto01,e=>e.theme.color_interaction_reference_line),$K=E.Ay.div.withConfig({displayName:"styles__StyledInspectorToolBar",componentId:"sc-1h0nsie-1"})(["&{position:absolute;z-index:10;top:78px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;align-items:center;min-width:263px;height:40px;border:1px solid ",";background:",";border-radius:6px;box-shadow:0 2px 6px 0 rgba(39,54,78,0.08);pointer-events:auto;padding:2px 8px;}span.divider{display:block;width:1px;height:18px;margin-left:8px;background-color:",";}.mode{display:flex;align-items:center;justify-content:center;.picker{width:28px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;cursor:pointer;.svg-icon{width:24px;height:24px;path{fill:",";}}&:hover{background-color:",";}&:active,&.is-active{background-color:",";}}}.param{display:flex;flex:1;justify-content:center;align-items:center;.ToolbarSelect{margin-left:8px;width:56px;height:28px;border-radius:6px;padding:0 6px;border:none;button{width:36px;padding:0;font-size:13px;}.caret{color:",";}&:not(.is-disabled):not(.readonly):hover{border:none;background-color:",";button{width:36px;}.caret{margin-top:2px;}}&:not(.is-disabled):not(.readonly).is-open{background-color:",";.caret{margin-top:2px;svg{transform:rotate(0deg);}}}}}.dora{margin-top:-1px;font-size:15px;cursor:pointer;}.cursor.is-active{color:",";}.px-ratio{color:",";margin-right:10px;}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_primary_proto01,e=>e.theme.color_text_L1),eY=(0,E.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:1em;padding:0 0.5em;font-size:12px;min-width:7em;}li{justify-content:center;margin:0.5em 0;border-radius:2px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;background-color:",";.SelectOption{color:",";&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}}"],e=>e.theme.color_background_white,e=>e.theme.color_text_L2,e=>e.theme.color_primary_proto01,e=>e.theme.color_background,e=>e.theme.color_primary_proto01,e=>e.theme.color_background),tY=(0,E.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:11px;font-size:12px;min-width:7em;}li{justify-content:center;border-radius:4px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;padding:8px;background-color:",";box-shadow:0px 4px 10px 0px ",";border-radius:8px;border:1px solid ",";.SelectOption{color:",";border-radius:4px;&:hover,&.is-active{background-color:",";}.InputNumber input{border-radius:6px;border:1px solid ",";box-shadow:none;&:hover,&:focus{border:1px solid ",";}}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}.SelectMenuPortal{.WorkspaceSelectMenu.toolbar-select-menu.is-open{top:calc(100% + 10px) !important;li.SelectOption{height:28px;line-height:28px;}}.WorkspaceSelectMenu.color-unit-select-menu.is-open{width:94px;}.WorkspaceSelectMenu.device-unit-select-menu.is-open{width:82px;}.WorkspaceSelectMenu.rpx-ratio-select-menu.is-open{width:134px;}.WorkspaceSelectMenu.em-pixel-select-menu.is-open{width:86px;li.SelectOption:last-child{.Ellipsis{padding-left:0;height:28px;.Input.small{width:70px;height:28px;border-radius:6px;border:1px solid transparent;overflow:hidden;background:",";display:flex;align-items:center;input{color:",";width:100%;height:100%;cursor:default;background:none;border:0;outline:0;padding-right:2px;text-align:left;}&.is-empty{input{text-align:right;color:",";}}&:not(.is-empty):not(:hover):not(.is-active){input{padding-left:32px;}}&:hover:not(.is-disabled){border:1px solid ",";input{text-align:left;padding-left:6px;}}&.is-active:not(.is-disabled){border:1px solid ",";outline:1px solid ",";outline-offset:-2px;input{text-align:left;padding-left:6px;}}}}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:transparent;}}li.SelectOption:nth-last-child(2){display:none;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_proto,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_proto),nY=E.Ay.div.withConfig({displayName:"styles__StyledMarkLabel",componentId:"sc-1h0nsie-2"})(["padding:0 5px;color:#fff;background-color:",";border-radius:2px;"],e=>e.theme.color_interaction_reference_line),oY=e=>{const{state:t,dispatch:n}=G4(),{ratio:r,customEmPixel:s,colorUnit:c,unit:d,emPixel:p,unitRatio:g,isShowColorPicker:y}=t,{onPickColor:w,openDownloadPluginModal:_,useNativeEyedropper:j}=e,N=[U4,B4].includes(d);let Z=!1,Q=!1;const se=()=>{let Ct=null;try{if(Q){var zt;Q=!1,(zt=Ct)==null||zt.abort("abort EyeDropper already opened")}else{Q=!0;const Dt=new EyeDropper;Ct=new AbortController,n({type:"inspect:update:state",payload:{isShowColorPicker:!0}}),Dt.open({signal:Ct.signal}).then(sn=>{Se(sn.sRGBHex)}).catch(sn=>{console.warn(sn)}).finally(()=>{Q=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})})}}catch(Dt){Q=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}},he=(()=>{let Ct=!1,zt=null,Dt=null,sn=null;const Rn=l.memo(Lo=>{let{colorPickedCallback:Yo,event:Cn}=Lo;const[hn,oa]=(0,l.useState)(!0);(0,l.useEffect)(()=>(zt=oa,()=>{zt=null}),[]);const Ao=va=>{Yo({sRGBHex:va})},ca=(0,l.useCallback)(()=>{Ct=!1,oa(!1),n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),Dt&&sn&&(Dt.unmount(),document.body.removeChild(sn),Dt=null,sn=null)},[oa]);return(0,l.useEffect)(()=>{const va=ra=>{ra&&ra.key!=="Escape"||ca()};return document.addEventListener("keydown",va),()=>{document.removeEventListener("keydown",va)}},[ca]),(0,o.jsx)(JK.A,{open:hn,event:Cn,onClose:ca,onChange:Ao,handleOpenDownloadPluginModal:_})}),On=()=>{sn||(sn=document.createElement("div"),document.body.appendChild(sn),Dt=BK.createRoot(sn))};return(Lo,Yo)=>{On();try{if(Ct)Ct=!1,zt&&zt(!1);else{var Cn;if(!window.mbRequestMessage){n({type:"inspect:update:state",payload:{isShowColorPicker:!1}});return}Ct=!0,zt&&zt(!0),(Cn=Dt)==null||Cn.render((0,o.jsx)(Rn,{colorPickedCallback:Lo,event:Yo}))}}catch(oa){var hn;n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),(hn=MB)==null||hn.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(oa)}}})(),xe=Ct=>{w(),n({type:"inspect:update:state",payload:{isShowColorPicker:!0}});const zt=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB;if(zt)if((0,Pb.uF)()&&j)new window.EyeDropper().open().then(sn=>{let{sRGBHex:Rn}=sn;return Se(Rn)});else{if(Z)return;Z=!0;try{zt().then(sn=>{if(!sn)return;const{hex:Rn}=(0,Pl.H0)(sn);Se(Rn)},sn=>{console.warn(sn),n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}).then(()=>Z=!1)}catch(sn){console.warn(sn),Z=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}}else{var Dt;(Dt=ENV)!=null&&Dt.IS_WONDER_SHARE||(0,Pb.cX)()?window.EyeDropper&&se():window.mbSendMessage?he(sn=>{let{sRGBHex:Rn}=sn;return Se(Rn)},Ct):(n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),_())}},Se=Ct=>{const{history:zt,focusColor:Dt}=CZ(Ct);n({type:"inspect:update:state",payload:{usePickerColor:zt,focusColor:Dt,isShowColorPicker:!1}})},_e=Ct=>{const zt=[U4,B4].includes(Ct)?p:g;n({type:"inspect:update:state",payload:{unit:Ct,ratio:zt,isChangeUnitRatio:!0}})},De=Ct=>{n({type:"inspect:update:state",payload:{colorUnit:Ct}})},Je=Ct=>{const zt=Number(Ct);n({type:"inspect:update:state",payload:{emPixel:zt,ratio:zt,customEmPixel:"",isChangeUnitRatio:!0}})},Ne=Ct=>{Ct&&n({type:"inspect:update:state",payload:{customEmPixel:Ct,emPixel:Ct,ratio:Ct}})},pt=Ct=>{n({type:"inspect:update:state",payload:{ratio:Number(Ct),unitRatio:Number(Ct),isChangeUnitRatio:!0}})},_t=()=>{const Ct=bZ.concat([p]).map(Dt=>({value:Dt,label:Dt+"px"})),zt=(0,o.jsx)("div",{onClick:Dt=>Dt.stopPropagation(),children:(0,o.jsx)(_6,{size:"small",min:1,max:99,precision:0,value:s,placeholder:I18N.pInspect.custom,isEnterBlur:!0,onChange:Ne})});return Ct.concat([zt])},gt=p8();return(0,o.jsxs)($K,{className:m()("sub-toolbar","preview-sub-toolbar"),children:[(0,o.jsxs)("div",{className:"mode",children:[(0,o.jsx)(um.A,{arrowed:!0,position:"bottom",duration:1500,className:(0,Pl.Hn)(["picker",y&&"is-active"]),tipClassName:"marign-top-20",content:{click:null,hover:I18N.pInspect.color_picker},children:(0,o.jsx)(Fd.C,{name:"preview/inspect/color_absorber",onClick:Ct=>xe(Ct)})}),(0,o.jsx)("span",{className:"divider"})]}),(0,o.jsxs)("div",{className:"param",children:[(0,o.jsx)(H4,{className:"ToolbarSelect color-unit",menuClassName:"toolbar-select-menu color-unit-select-menu",placeholder:" ",value:c,optionList:aY,onChange:De}),(0,o.jsx)("span",{className:"divider"}),(0,o.jsx)(H4,{className:"ToolbarSelect device-unit",menuClassName:"toolbar-select-menu device-unit-select-menu",placeholder:" ",value:d,optionList:xZ,onChange:_e}),(0,o.jsx)("span",{className:"divider"}),N?(0,o.jsx)(H4,{className:"ToolbarSelect em-pixel",menuClassName:"toolbar-select-menu em-pixel-select-menu",placeholder:" ",optionList:_t(),value:p,onChange:Je}):(0,o.jsx)(H4,{className:"ToolbarSelect rpx-ratio",menuClassName:"toolbar-select-menu rpx-ratio-select-menu",placeholder:" ",value:r,optionLabelProp:"labelText",optionList:iY,onChange:pt})]}),gt?(0,o.jsx)(eY,{}):(0,o.jsx)(tY,{})]})},aY=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"rgba",label:"RGBA"},{value:"argb",label:"ARGB"}],rY=[1/3,1/2,1,2,3],Nb=["1/3","1/2","1","2","3"],iY=rY.map((e,t)=>({value:e,label:"\u8BBE\u8BA1\u5C3A\u5BF8x"+Nb[t],labelText:Nb[t]+"x"}));var sY=i(62280);const lY=(e,t)=>{const n=[],r=P6(e,t);if(r.width<e.width+t.width)n[0]=null;else{const s=r.width-(e.width+t.width),c=t.left>e.left;n[0]=c?s:-s}if(r.height<e.height+t.height)n[1]=null;else{const s=r.height-(e.height+t.height),c=t.top>e.top;n[1]=c?s:-s}return n},cY=(e,t)=>{if(pY(e,t))return{top:e.top-t.top,right:t.left+t.width-(e.left+e.width),bottom:t.top+t.height-(e.top+e.height),left:e.left-t.left};{const n={},r=lY(e,t);return r[0]>0?n.right=r[0]:r[0]<0&&(n.left=Math.abs(r[0])),r[1]>0?n.bottom=r[1]:r[1]<0&&(n.top=Math.abs(r[1])),n}},Lh=e=>e*100+"%",jb=e=>[e.left,e.top,e.left+e.width,e.top+e.height];function uq(e,t){var n,r;const s=(n=document.querySelector("#canvas"))==null?void 0:n.getBoundingClientRect(),c=(r=document.querySelector("#screens"))==null?void 0:r.getBoundingClientRect();if(!s||!c)return;const d=s.left-c.left,p=s.top-c.top,g=100/t;return dY(e,{offsetX:d,offsetY:p,ratio:g})}function hq(e,t,n){let{startX:r,startY:s,endX:c,endY:d}=e;t===void 0&&(t=90),n===void 0&&(n=0);const p=Math.atan2(d-s,c-r)/Math.PI*180,g=Math.hypot(c-r,d-s),y=n+t*Math.round((p-n)/t),w=g*Math.cos((p-y)/180*Math.PI);return{startX:r,startY:s,endX:r+Math.round(w*Math.cos(y/180*Math.PI).toFixed(2)),endY:s+Math.round(w*Math.sin(y/180*Math.PI).toFixed(2))}}function mq(e){let{startX:t,startY:n,endX:r,endY:s}=e;const c=Math.min(n,s),d=Math.min(t,r),p=Math.abs(r-t),g=Math.abs(s-n);return{top:Math.round(c),left:Math.round(d),width:Math.round(p),height:Math.round(g)}}function dY(e,t){let{startX:n,startY:r,endX:s,endY:c}=e,{offsetX:d,offsetY:p,ratio:g}=t;return{startX:Math.round((n-d)*g),startY:Math.round((r-p)*g),endX:Math.round((s-d)*g),endY:Math.round((c-p)*g)}}const Db=(e,t)=>["top","left","width","height"].every(n=>e[n]===t[n]),pY=(e,t)=>{const n=P6(e,t);return n.width<e.width+t.width&&n.height<e.height+t.height},P6=(e,t)=>{const n=Math.min(e.top||0,t.top||0),r=Math.max((e.top||0)+e.height,(t.top||0)+t.height),s=Math.min(e.left||0,t.left||0),c=Math.max((e.left||0)+e.width,(t.left||0)+t.width);return{top:n,left:s,width:c-s,height:r-n}},fq=(e,t,n)=>uY(e,n)&&hY(t,n),uY=(e,t)=>e>t.left&&e<t.left+t.width,hY=(e,t)=>e>t.top&&e<t.top+t.height,mY=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=1),n===void 0&&(n=null),Number.parseFloat((1/t*e).toFixed(2))+n};class fY extends l.PureComponent{constructor(){super(...arguments),(0,O.A)(this,"getDistanceMarksStyle",t=>{const{ratio:n}=this.props;return{width:t.width*n,height:t.height*n,left:t.left*n,top:t.top*n}}),(0,O.A)(this,"mapDistanceMarks",(t,n)=>{let[r,s]=t;const{style:c,renderValue:d}=this.props,{colorForLines:p,colorForText:g,backgroundColorForText:y,dashed:w}=c,_=this.getMarkStyle(r,s),j=Math.abs(s),N=Math.round(mY(j));return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"distance-line "+r,style:{..._.line,[["top","bottom"].includes(r)?"borderLeftStyle":"borderTopStyle"]:w?"dashed":"solid",borderColor:p}}),d?d({value:N,style:_.value,customClassName:"distance-value "+r}):(0,o.jsx)("span",{className:"distance-value "+r,style:{..._.value,color:g,backgroundColor:y},children:N})]},n+"-"+s)}),(0,O.A)(this,"getMarkStyle",(t,n)=>{const{baseRect:r,refRect:s}=this.props,c={line:{},value:{},endBoundary:{}},d=jb(r),p=jb(s),g=(0,Xe.Pn)(d,p),y=["right","left"],w=["right","bottom"],_=["top","bottom"],j=y.includes(t)?n/r.width:n/r.height,N=(s.left-r.left+s.width/2)/r.width,Z=(s.top-r.top+s.height/2)/r.height,Q=_.includes(t)?"left":"top";return c.line={[t]:n<0?0:Lh(-j),[Q]:g?Lh(Math.abs(Q==="left"?N:Z)):"50%",[y.includes(t)?"width":"height"]:Lh(Math.abs(j))},c.endBoundary={[t]:Lh(-j)},c.value={[y.includes(t)?"left":"top"]:w.includes(t)?Lh(1+j/2):Lh(-j/2),[Q]:g?Lh(Math.abs(Q==="left"?N:Z)):"50%"},c})}render(){const{baseRect:t,refRect:n}=this.props,r=cY(t,n),s=this.getDistanceMarksStyle(t);return(0,o.jsx)("div",{className:"distance-marks",style:s,children:Object.entries(r).map(this.mapDistanceMarks)})}}const gY=e=>{let{refRect:t,ratio:n,style:{dashed:r,colorForLines:s}}=e;return(0,o.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:t.width*n,height:t.height*n,left:t.left*n,top:t.top*n,border:"1px "+(r?"dashed":"solid")+" "+s}})};class yY extends l.Component{constructor(){super(...arguments),(0,O.A)(this,"getAuxiliaryLinesStyle",t=>{const{ratio:n}=this.props;return{width:t.width*n,height:t.height*n,top:t.top*n,left:t.left*n}}),(0,O.A)(this,"getAuxiliaryLinesLength",()=>{const t={},{baseRect:n,refRect:r}=this.props,s=P6(n,r),c=s.width-r.width;s.height-(n.height+r.height)>0&&c>n.width/2&&(t.horizontal=c);const p=s.height-r.height;return s.width-(n.width+r.width)>0&&p>n.height/2&&(t.vertical=p),t}),(0,O.A)(this,"getLineStyle",(t,n)=>{const{baseRect:r,refRect:s,ratio:c}=this.props,d=r.left>s.left,p=r.top>s.top,g={};if(t){const y=t/s.width;g.horizontal={[p?"bottom":"top"]:0,[d?"right":"left"]:Lh(-y),width:Lh(y)}}if(n){const y=n/s.height;g.vertical={[d?"right":"left"]:0,[p?"bottom":"top"]:-y*c,height:y*c}}return g})}render(){const{refRect:t,style:n}=this.props,{horizontal:r,vertical:s}=this.getAuxiliaryLinesLength();if(!r&&!s)return null;const c=this.getAuxiliaryLinesStyle(t),d=this.getLineStyle(r,s);return(0,o.jsxs)("div",{className:"smart-auxiliary-lines",style:c,children:[r&&(0,o.jsx)("div",{className:"line horizontal",style:{...d.horizontal,borderTopStyle:n.dashed?"dashed":"solid",borderTopColor:n.colorForLines}}),s&&(0,o.jsx)("div",{className:"line vertical",style:{...d.vertical,borderLeftStyle:n.dashed?"dashed":"solid",borderLeftColor:n.colorForLines}})]})}}const vY=E.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1sjqq8d-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]),Hm={color_interaction_reference_line:{value:"#ff1313",description:"\u667A\u80FD\u5BF9\u9F50/\u624B\u52A8\u6D4B\u8DDD/\u53C2\u8003\u7EBF"},color_primary_proto01:{value:"#1684fc",description:"\u539F\u578B\u4E3B\u8981\u5F3A\u8C03\u8272"}},L6={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:Hm.color_interaction_reference_line.value,colorForText:Hm.color_interaction_reference_line.value},refRectBorder:{dashed:!1,colorForLines:Hm.color_interaction_reference_line.value},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:Hm.color_interaction_reference_line.value}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:Hm.color_interaction_reference_line.value},refRectBorder:{dashed:!0,colorForLines:Hm.color_primary_proto01.value},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:Hm.color_primary_proto01.value}}};class xY extends l.Component{shouldComponentUpdate(t){return!(Db(t.baseRect,this.props.baseRect)&&Db(t.refRect,this.props.refRect)&&t.ratio===this.props.ratio&&t.theme===this.props.theme)}render(){const{baseRect:t,refRect:n,theme:r,renderValue:s,ratio:c}=this.props;return(0,o.jsxs)(vY,{className:"distance-measurement-container",children:[(0,o.jsx)(fY,{baseRect:t,refRect:n,ratio:c,style:L6[r].distanceMarks,renderValue:s}),(0,o.jsx)(yY,{baseRect:t,refRect:n,ratio:c,style:L6[r].auxiliaryLines}),(0,o.jsx)(gY,{refRect:n,ratio:c,style:L6[r].refRectBorder})]})}}const Ob=e=>{const{state:{unit:t,ratio:n}}=G4(),{layerBound:r,viewportScale:s,displayLayerSizeAndRoInfo:c,rpxRatio:d}=e,{x:p,y:g,r:y,w,h:_}=r,j={width:w*s,height:_*s,transform:"translate("+(p-w*.5)*s+"px,"+(g-_*.5)*s+"px) rotate("+y+"deg)"},N=Vd(Math.round(w),n,t,d,!1),Z=Vd(Math.round(_),n,t,d,!1);return(0,o.jsx)(qK,{style:j,children:c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"LayerCorner left top"}),(0,o.jsx)("span",{className:"LayerCorner left bottom"}),(0,o.jsx)("span",{className:"LayerCorner right top"}),(0,o.jsx)("span",{className:"LayerCorner right bottom"}),(0,o.jsx)("span",{className:"layer-width",children:""+N+t}),(0,o.jsx)("span",{className:"layer-height",children:""+Z+t}),y!==0&&(0,o.jsxs)("span",{className:"rect_info",children:[N+" x "+Z,"\xA0\xA0",y+"\xB0"]})]})})},Rb=l.memo(e=>{let{value:t,unit:n,style:r,className:s,customClassName:c,ratio:d,rpxRatio:p}=e;const g=Vd(t,d,n,p);return(0,o.jsx)(nY,{style:r,className:s+" "+c,children:""+g})});Rb.displayName="MarkLabel";const bY=e=>{const{state:{unit:t,ratio:n,isShowColorPicker:r}}=G4();if(r)return null;const{sdk:s,viewportScale:c,selectedWidgetInfo:d,hoveredWidgetInfo:p,currPageKey:g}=e;let y=null,w=null;if(d!=null&&d.key)if(d.extra){const{key:Z,extra:{x:Q,y:se}}=d,ie={...s.getHotItem(Z).hotAttr,...s.getRelocateLocalBound(d.key,s.locUpRBPageKey(d.key))};y=F4(ie,{x:Q,y:se})}else y=s.getHotBound(d.key);if(p!=null&&p.key)if(p.extra){const{key:Z,extra:{x:Q,y:se}}=p,ie={...s.getHotItem(Z).hotAttr,...s.getRelocateLocalBound(p.key,s.locUpRBPageKey(p.key))};w=F4(ie,{x:Q,y:se})}else w=s.getHotBound(p.key);let _=1;if(g){var j;const Z=s.getHotItem(g),Q=Z==null||(j=Z.hotAttr)==null?void 0:j.deviceW;_=pb(Q)}const N=Z=>(0,o.jsx)(Rb,{unit:t,ratio:n,rpxRatio:_,...Z});return(0,o.jsxs)(o.Fragment,{children:[y&&w&&!aa()(y,w)&&(0,o.jsx)(xY,{baseRect:Bb(y),refRect:Bb(w),ratio:c,renderValue:N,theme:"preview"}),y&&(0,o.jsx)(Ob,{viewportScale:c,displayLayerSizeAndRoInfo:!(w&&!aa()(y,w)),layerBound:y,rpxRatio:_}),w&&(0,o.jsx)(Ob,{viewportScale:c,displayLayerSizeAndRoInfo:!1,layerBound:w,rpxRatio:_})]})},Bb=e=>{const t=(0,sY.Pb)(e);return{width:t[2]-t[0],height:t[3]-t[1],left:t[0],top:t[1],right:t[2],bottom:t[3]}},CY={unit:"px",colorUnit:"hex",emPixel:16,customEmPixel:"",ratio:1,unitRatio:1,language:"css",usePickerColor:y6(),focusColor:"",isShowColorPicker:!1,isChangeUnitRatio:!1};function wY(e,t){let{type:n,payload:r}=t;switch(n){case"inspect:update:state":return{...e,...r};default:return e}}const Ub=(0,l.createContext)(null),G4=()=>{const e=(0,l.useContext)(Ub);if(e===null)throw new Error("Inspector context is null");return e},SY=e=>{let{sdk:t,hoveredWidgetInfo:n,selectedWidgetInfo:r,viewportScale:s,containerSelector:c,currPageKey:d}=e;return document.querySelector(c)?ds.createPortal((0,o.jsx)(bY,{sdk:t,viewportScale:s,selectedWidgetInfo:r,hoveredWidgetInfo:n,currPageKey:d}),document.querySelector(c)):null},Fb=l.memo(SY);Fb.displayName="InspectorMeasurementToolPortal";const AY=e=>{let{sdk:t,theme:n,currPageKey:r,selectedWidgetInfo:s,containerSelector:c,getWidgetInspectStyles:d,getWidgetInspectRefVars:p}=e;return document.querySelector(c)?ds.createPortal((0,o.jsx)(RK,{sdk:t,selectedWidgetInfo:s,theme:n,currPageKey:r,getWidgetInspectStyles:d,getWidgetInspectRefVars:p}),document.querySelector(c)):null},Vb=l.memo(AY);Vb.displayName="InspectorPanelPortal";const MY=e=>{let{onPickColor:t,openDownloadPluginModal:n,useNativeEyedropper:r,containerSelector:s}=e;return document.querySelector(s)?ds.createPortal((0,o.jsx)(oY,{onPickColor:t,openDownloadPluginModal:n,useNativeEyedropper:r}),document.querySelector(s)):null},zb=l.memo(MY);zb.displayName="InspectorToolbarPortal";const kY=(0,l.memo)(e=>{let{enabled:t,sdk:n,hoveredWidgetInfo:r,selectedWidgetInfo:s,viewportScale:c,theme:d,currPageKey:p,useNativeEyedropper:g,initialUnitRatio:y,onPickColor:w,openDownloadPluginModal:_,measurementToolContainerSelector:j,panelContainerSelector:N,toolbarContainerSelector:Z,getWidgetInspectStyles:Q,getWidgetInspectRefVars:se}=e;const[ie,he]=(0,l.useReducer)(wY,CY),xe=(0,l.useMemo)(()=>({state:ie,dispatch:he}),[ie,he]),Se=(0,l.useMemo)(()=>({key:r==null?void 0:r.key,extra:r==null?void 0:r.extra}),[r==null?void 0:r.key,r==null?void 0:r.extra]),_e=(0,l.useMemo)(()=>({key:s==null?void 0:s.key,extra:s==null?void 0:s.extra}),[s==null?void 0:s.key,s==null?void 0:s.extra]),{isChangeUnitRatio:De}=ie;return(0,l.useEffect)(()=>{De||he({type:"inspect:update:state",payload:{unit:y.unit,ratio:y.ratio}})},[y,De]),(0,o.jsx)(Ub.Provider,{value:xe,children:t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fb,{sdk:n,hoveredWidgetInfo:Se,selectedWidgetInfo:_e,viewportScale:c,containerSelector:j,currPageKey:p}),(0,o.jsx)(Vb,{sdk:n,selectedWidgetInfo:_e,theme:d,currPageKey:p,containerSelector:N,getWidgetInspectStyles:Q,getWidgetInspectRefVars:se}),(0,o.jsx)(zb,{onPickColor:w,openDownloadPluginModal:_,useNativeEyedropper:g,containerSelector:Z})]})})}),EY=e=>{const t=e();return(0,o.jsx)(kY,{...t})};var Wb=i(18805);const N6=e=>typeof e=="number"?(0,$c.t0)(e):typeof e=="string"&&e!=null&&e.includes("#")?(0,Q0.d9)((0,Q0.UV)(e)):e,IY=(e,t)=>{if((0,$m.yD)(e.type)&&e.textV0){const{fontSize:Q,color:se,horizontalAlign:ie,verticalAlign:he,italic:xe,letterSpacing:Se,lineHeight:_e,fontFamily:De,fontWeight:Je}=(0,k0.Mi)(e.textV0);return{fontSize:Q,color:N6(se),length:t==null?void 0:t.length,horizontalAlign:ie,verticalAlign:he,italic:xe,lineHeight:_e,fontFace:(0,V2.cD)(De)+"-"+Je,letterSpacing:Se}}if((0,$m.e_)(e.type)){const{fontColor:Q="#000000",fontSize:se=14,italic:ie,fontFamily:he="PingFang SC"}=(0,k0.DG)(e.textV1);return{fontFace:he,fontSize:se,color:N6(Q),length:t==null?void 0:t.length,italic:ie}}const{fontFamily:n,fontWeight:r,fontSize:s,fontStyle:c,textColor:d,letterSpacing:p,paraSpacing:g,lineHeight:y,paddingTuple:w,horizontalAlign:_,verticalAlign:j,italic:N}=(0,k0.xH)({baseItem:e});return{...{fontSize:s,color:N6(d),fontStyle:c,lineHeight:y,paraSpacing:g,horizontalAlign:_,verticalAlign:j,italic:N,letterSpacing:p,fontFace:(0,V2.cD)(n)+"-"+r}}},TY=e=>{var t,n;const r=(0,Gt.WM)({...e,display_name:e.name});let s="";if(e.textV1)s=(0,_n.YZ)(e.textV1);else if(typeof((t=e.textV0)==null?void 0:t.text)=="string"){var c;s=(c=e.textV0)==null?void 0:c.text}else{var d,p;(d=e.textV0)!=null&&d.text&&(s=JSON.stringify((p=e.textV0)==null?void 0:p.text))}let g,y;if(s){const N=s.replace(/<p>/g,"").replace(/<\/p>/g,"\n"),Z=N&&N.replace(/<[^>]+>/ig,"");g=IY(e,Z),y=Z}e.table_cell_text&&(s=e.table_cell_text,g={fontStyle:e.fontStyle,letterSpacing:e.padding,lineHeight:e.lineHeight,paraSpacing:0,fontSize:e.fontSize,color:e.color,length:s.length,horizontalAlign:e.ha,verticalAlign:e.va},y=s);let w;if(e.fill){const N=e==null?void 0:e.fill,Z=(0,Q0.$8)(N,{w:e.w,h:e.h});switch(N==null?void 0:N.fill){case"linearGradient":w=[{type:"linear",opacity:"1",value:(0,Wb.l$)(Z),gradient:{color_stops:N.knobList.map(Q=>({color:(0,$c.t0)(Q.color)}))}}];break;case"radialGradient":w=[{type:"radial",opacity:"1",value:(0,Wb.rp)(Z),gradient:{color_stops:N.knobList.map(Q=>({color:(0,$c.t0)(Q.color)}))}}];break;case"solid":w=[{value:(0,$c.t0)(e==null||(n=e.fill)==null?void 0:n.solidColor)}];break;default:w=[{value:"transparent"}]}}if(e.table_cell_background&&(w=[{value:(0,$c.t0)(e.table_cell_background)}]),e.type===ne.x.WTriangleB||e.type===ne.x.WTriangleTL){var _,j;w=e!=null&&(_=e.fill)!=null&&_.fillIsVisible?[{value:(0,$c.t0)(e==null||(j=e.fill)==null?void 0:j.solidColor)}]:[]}return{displayName:r,textStyles:g,inspectText:y,widgetText:s,bgColors:w}},_Y=(e,t)=>{const{refVars:n}=e;if(!n)return;let r,s;if(e.table&&t){var c;const{table:Z}=e,{x:Q,y:se}=t,ie=Z[se][Q],he=n==null||(c=n.cells)==null?void 0:c[ie];r=he==null?void 0:he.data,s=he==null?void 0:he.style}else r=(0,td.m5)(e),s=(0,td.xu)([{hotAttr:e}]);const{borderRadius:d,opacity:p,shadow:g,border:y,w,h:_,r:j}=n,N=(0,td.RL)({opacity:p,text:r,textStyles:s,w,h:_,r:j});if(typeof d=="object"){const{radiusTL:Z,radiusTR:Q,radiusBR:se,radiusBL:ie}=(0,td.RL)(d);N.radius=[Z,Q,se,ie]}else d&&(N.radius=(0,td.sU)(d));if(g&&(N.shadows=[(0,td.RL)(g)]),y){const{bdrWidth:Z}=(0,td.RL)(y);N.borders=[{bdrWidth:Z}]}return N},j6={default:{unit:"px",ratio:1},iphone:{unit:"pt",ratio:1},android:{unit:"dp",ratio:1}},PY=e=>{if(!e)return j6.default;const{device:t}=e;let n="default";return Object.entries(P0.Am).forEach(r=>{let[s,c]=r;c.includes(t)&&(n=s)}),j6[n]||j6.default},LY=(0,k.Mz)([Y._b,Y.IL,Oe.p$,Ae.zg,re.Ur,q.O4,re.X_,q.AM],(e,t,n,r,s,c,d,p)=>{const g=n[0]?r.selectCellInfo&&r.selectCellInfo.key===n[0]?{key:r.selectCellInfo.key,extra:{x:r.selectCellInfo.x,y:r.selectCellInfo.y}}:{key:n[0]}:null,y=t?r.hoverCellInfo&&r.hoverCellInfo.key===t?{key:r.hoverCellInfo.key,extra:{x:r.hoverCellInfo.x,y:r.hoverCellInfo.y}}:{key:t}:g&&sdkStore.locUpHotCanvasKey(g.key)?{key:sdkStore.locUpHotCanvasKey(g.key)}:null;return{enabled:e,hoveredWidgetInfo:y,selectedWidgetInfo:g,viewportScale:d/100,theme:c,currentScreen:s,currPageKey:(s==null?void 0:s.cid)||"",useNativeEyedropper:p}}),NY=(0,a.Ng)(LY)(e=>{let{enabled:t,hoveredWidgetInfo:n,selectedWidgetInfo:r,viewportScale:s,theme:c,currentScreen:d,currPageKey:p,useNativeEyedropper:g,dispatch:y}=e;const w=(0,l.useCallback)(()=>{const j=PY(d);return{enabled:t,hoveredWidgetInfo:n,selectedWidgetInfo:r,viewportScale:s,theme:c,currPageKey:p,useNativeEyedropper:g,initialUnitRatio:j,onPickColor:()=>y({type:"entry:clear:selection"}),openDownloadPluginModal:()=>y({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}}),sdk:sdkStore,measurementToolContainerSelector:"#ro-fe-canvas",toolbarContainerSelector:"#fixed-area",panelContainerSelector:"#inspect-panel",getWidgetInspectStyles:TY,getWidgetInspectRefVars:_Y}},[t,n,r,s,c,p,g,d,y]),_=EY(w);return(0,o.jsx)(o.Fragment,{children:_})});var D6=i(58053),jY=i(33236),DY=i(78778),OY=i(1404),RY=i(12583),BY=i(45796),UY=i(68818);const FY=(e,t,n)=>{const r=e?new URL(e):new URL("https://embed.diagrams.net"),s=r.searchParams;return s.append("embed","1"),s.append("proto","json"),n&&s.append("configure","1"),t&&Object.keys(t).forEach(c=>{const d=t[c];d!==void 0&&(typeof d=="boolean"?s.append(c,d?"1":"0"):s.append(c,d.toString()))}),r.toString()};function VY(e,t,n){if(e.origin.includes("embed.diagrams.net")||n&&n.includes(e.origin))try{const r=JSON.parse(e.data);if(r.event in t){const s=t[r.event];s&&s(r)}}catch(r){}}const zY=e=>{const t=(N,Z)=>{var Q;(Q=e.current)==null||(Q=Q.contentWindow)==null||Q.postMessage(JSON.stringify({action:N,...Z}),"*")};return{load:N=>{t("load",N)},configure:N=>{t("configure",N)},merge:N=>{t("merge",N)},dialog:N=>{t("dialog",N)},prompt:N=>{t("prompt",N)},template:N=>{t("template",N)},layout:N=>{t("layout",N)},draft:N=>{t("draft",N)},status:N=>{t("status",N)},spinner:N=>{t("spinner",N)},exportDiagram:N=>{t("export",N)}}},WY=(0,l.memo)((0,l.forwardRef)((e,t)=>{const{autosave:n=!1,baseUrl:r,urlParameters:s,configuration:c,xml:d,csv:p,exportFormat:g,onAutoSave:y,onSave:w,onClose:_,onLoad:j,onConfigure:N,onDraft:Z,onExport:Q,onMerge:se,onPrompt:ie,onTemplate:he}=e,xe=(0,l.useRef)(null),Se=zY(xe),_e=FY(r,s,!!c),[De,Je]=(0,l.useState)(!1),[Ne,pt]=(0,l.useState)(!1);return(0,l.useImperativeHandle)(t,()=>({...Se}),[Se]),(0,l.useEffect)(()=>{let _t={};De&&(d?g==="xmlpng"?_t={xmlpng:d}:_t={xml:d}:p?_t={descriptor:{format:"csv",data:p}}:_t={xml:""},_t={..._t,autosave:n},Se.load(_t))},[De,d,p,n,Se,g]),(0,l.useEffect)(()=>{const _t=gt=>{VY(gt,{init:()=>{Je(!0)},load:Ct=>{pt(!0),j&&j(Ct)},configure:Ct=>{c&&Se.configure({config:c}),N&&N(Ct)},autosave:Ct=>{Se.exportDiagram({format:"xmlsvg"}),y&&y(Ct)},save:Ct=>{Se.exportDiagram({format:g||"xmlsvg",exit:Ct.exit,parentEvent:"save"})},exit:Ct=>{_&&_(Ct)},draft:Ct=>{Z&&Z(Ct)},export:Ct=>{w&&w({event:"save",xml:Ct.data,parentEvent:Ct.message.parentEvent||"export"}),Q&&Q(Ct),Ct.message.exit&&_&&_({event:"exit",modified:!0,parentEvent:Ct.message.parentEvent||"export"})},merge:Ct=>{se&&se(Ct)},prompt:Ct=>{ie&&ie(Ct)},template:Ct=>{he&&he(Ct)}},r)};return window.addEventListener("message",_t),()=>{window.removeEventListener("message",_t)}},[]),(0,o.jsxs)("div",{className:"diagrams-iframe-container",children:[(0,o.jsx)("iframe",{className:"diagrams-iframe",src:_e,ref:xe,title:"\u58A8\u5200\u7ED8\u56FE",frameBorder:"0",style:{opacity:Ne?1:0}}),!Ne&&(0,o.jsx)("div",{className:"loading-wrapper",children:(0,o.jsx)(E0.T,{className:"iframe-loading"})})]})}));var O6=i(71217);const HY=(0,E.Ay)(Ei.H).withConfig({displayName:"styles__CheckSizeModalModal",componentId:"sc-1b2486b-0"})(["width:400px !important;.content{color:",";}.cancel-btn{color:"," !important;&:hover,&:active{background:none !important;color:"," !important;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),GY=(0,E.DU)(["#IBOT_MODAL_ROOT{.new-model-portal.check-size-modal-portal{z-index:2001;}}"]),ZY=e=>{let{isOpen:t,onCancel:n,onConfirm:r}=e;return(0,o.jsxs)(HY,{title:"\u8D85\u9650\u63D0\u9192",isOpen:t,cancelText:"\u4E0D\u4FDD\u5B58\u9000\u51FA",confirmText:"\u786E\u5B9A",onCancel:n,cancelBtnProps:{type:"text"},onConfirm:r,portalClassName:"check-size-modal-portal",children:[(0,o.jsx)("p",{className:"content",children:"\u6587\u4EF6\u5927\u5C0F\u8D85\u9650\u65E0\u6CD5\u4FDD\u5B58\uFF0C\u8BF7\u51CF\u5C11\u7EC4\u4EF6\u540E\u91CD\u65B0\u4FDD\u5B58"}),(0,o.jsx)(GY,{})]})},KY=E.Ay.div.withConfig({displayName:"styles__StyledMbDrawioContainer",componentId:"sc-1cq5nu-0"})(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:2000;background:",";.header{height:30px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:12px;z-index:1;width:100%;position:absolute;.left{color:",";font-size:16px;font-weight:600;}.save-close-btn{display:flex;align-items:center;height:28px;padding:0 15px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;margin-right:12px;position:absolute;top:53px;right:54px;&:hover{background:",";}&:active{background:",";}}}.diagrams-iframe-container{width:100%;height:100%;overflow:hidden;position:relative;margin-top:18px;}.diagrams-iframe{width:100%;height:100%;border:none;.geMenubarContainer{margin-left:20px;}}.loading-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;.iframe-loading{width:100px;}}"],e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L1,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked),eg={width:200,height:200},Z4=e=>!(e!=null&&e.length&&e.length/1024>600),YY=()=>{var e;const t=(0,a.wA)(),n=(0,a.d4)(q.O4),r=(0,a.d4)(re.Ur),s=(0,l.useRef)(null),c=(0,a.d4)(re.q6),d=(c==null?void 0:c.editType)==="newWidget",p=(0,l.useRef)(null),[g,y]=(0,l.useState)(!1),[w,_]=(0,l.useState)(!1),j=ENV.IS_ON_PREMISES?window.location.origin+"/mb-drawio/v26.2.8/index.html":void 0,N=(0,l.useMemo)(()=>({lang:"zh",ui:n==="dark"?"dark":void 0,saveAndExit:!1,noSaveBtn:!0,noExitBtn:!0}),[n]);(0,l.useEffect)(()=>{const _e=window.onbeforeunload;return window.onbeforeunload=()=>{if(p.current||rootSdk.hasSave())return I18N.dPages.data_lost_warning},()=>{window.onbeforeunload=_e,_(!1)}},[]);const Z=(0,Bg.qK)(_e=>{p.current=_e,Z4(_e.data)||MB.notice({text:"\u6587\u4EF6\u5927\u5C0F\u5DF2\u8D85\u9650\uFF0C\u65B0\u589E\u5185\u5BB9\u65E0\u6CD5\u4FDD\u5B58\uFF0C\u8BF7\u51CF\u5C11\u591A\u4F59\u7EC4\u4EF6",type:"warning"})}),Q=()=>{var _e;if(!Z4((_e=p.current)==null?void 0:_e.data)){_(!0);return}se()},se=()=>{if(t({type:"set:current:drawio:editor:item",payload:{hotItem:null}}),y(!1),_(!1),Vc.U4.addDrawIOToCanvasTrack(d?"\u65B0\u5EFA":"\u66F4\u65B0"),!d&&!p.current){t(Te.GO.select([c.key]));return}if(!d){var _e;const{height:Ne,width:pt}=p.current.bounds;if(Ne===0&&pt===0){t({type:"entry:widget:change",payload:{flatChgList:[{key:c.key,hotAttr:{xmlData:""}}]}}),p.current=null,t(Te.GO.select([c.key])),ie();return}const _t=(0,O6.S$)({height:Ne,width:pt},{height:c.hotAttr.h,width:c.hotAttr.w}),gt=Z4(p.current.data)?p.current.data:(c==null||(_e=c.hotAttr)==null?void 0:_e.xmlData)||"",Ct=[{key:c.key,hotAttr:{xmlData:gt,h:_t.height,w:_t.width}}];p.current=null,t({type:"entry:widget:change",payload:{flatChgList:Ct}}),t(Te.GO.select([c.key])),ie();return}const De=(0,$u.gu)({type:"wGraph",screen:r});if(!p.current||p.current.bounds.height===0&&p.current.bounds.width===0||!Z4(p.current.data)){(0,lr.Q7)([{...De,xmlData:"",h:eg.height,w:eg.height}],eg.width,eg.height),ie();return}const Je=(0,O6.S$)({height:p.current.bounds.height,width:p.current.bounds.width},eg);(0,lr.Q7)([{...De,xmlData:p.current.data,h:Je.height,w:Je.width}],Je.width,Je.height),ie(),p.current=null},ie=()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving")},he=(0,Bg.qK)(()=>{y(!0)}),xe=()=>{se()},Se=()=>{_(!1)};return c?(0,ds.createPortal)((0,o.jsxs)(KY,{children:[(0,o.jsx)("div",{className:"header",children:(0,o.jsx)("div",{className:"right",children:g&&(0,o.jsx)("div",{className:"save-close-btn",onClick:Q,children:"\u4FDD\u5B58\u5E76\u9000\u51FA"})})}),(0,o.jsx)(WY,{ref:s,autosave:!0,xml:(0,O6.Bf)((e=c.hotAttr)==null?void 0:e.xmlData)||"",baseUrl:j,onExport:Z,urlParameters:N,exportFormat:"xmlsvg",onLoad:he}),(0,o.jsx)(ZY,{isOpen:w,onCancel:xe,onConfirm:Se})]}),document.body):null};class XY extends l.PureComponent{constructor(t){super(t),(0,O.A)(this,"setElementRef",n=>this.$element=n),(0,O.A)(this,"handleFullScreenChange",()=>{if(D6.A.isFullscreen){(0,Gf.gh)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(Or.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),1e3);return}const{dispatch:n}=this.props;n(Te.GO.toggleFullScreenMode(!1)),n({type:"entry:toolbar:restore:leftrightpane"}),n({type:"entry:update:mode:viewType"}),n(Te.GO.toggleHandMode(!1)),MB.commonGuideHelper.closeGuide(Or.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(Or.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN)}),(0,O.A)(this,"handleBeforeUnload",()=>{this.props.dispatch({type:"entry:reset:dragging:state"})}),(0,O.A)(this,"handleResize",()=>{const{dispatch:n}=this.props;n({type:"entry:update:viewport:rect"}),n({type:"entry:observe:dom:left-panel-width"}),n({type:"entry:observe:dom:right-panel-width"})}),t.dispatch({type:"entry:update:toolbar"}),t.dispatch({type:"entry:update:ui:by:preference"}),t.dispatch({type:"entry:update:ui:by:iconinfo"}),MB.clientX=0,MB.clientY=0}componentDidMount(){var t;const{onlyView:n}=this.props,r=(0,Gf.OB)();(!n||n&&r)&&(t=H1.A.getFlpakSizeInfo())!=null&&t.isFlpakSizeWarn&&this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault),window.addEventListener("contextmenu",this.preventDefault),window.addEventListener("beforeunload",this.handleBeforeUnload),this.$element.addEventListener("wheel",this.handleWheel,{passive:!1}),D6.A.on("change",this.handleFullScreenChange),new URLSearchParams(location.hash.replace(/^#/,"")).get("version")==="reset"&&(MB.notice({text:I18N.__App__.version_toast_reset_success}),window.history.replaceState(void 0,void 0,"#")),!n&&document.addEventListener("paste",s=>{const{isShallowEditText:c}=this.props;if(s.target.className.includes("batch-set-content-area")||MB.f.editingRichText&&!c)return;const{isEditingComment:d}=this.props;d||Hn.X.query.getIsShallowEditing((0,kc.dP)())||MB.action("entry:prepare:paste:by:shortcut",{e:s})}),(0,_u.KA)(),(0,_u.BG)()&&(0,_u.sg)("currentTheme",{theme:this.props.theme}),window.addEventListener("popstate",s=>{location.pathname.startsWith(Hf.o$+"/")&&location.reload()}),JY(),Vc.U4.protoEditorLoadSuccessTrack(MB.user.id),n||qY(this.props.dispatch)}componentWillUnmount(){window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault),window.removeEventListener("contextmenu",this.preventDefault),window.removeEventListener("beforeunload",this.handleBeforeUnload),D6.A.off("change",this.handleFullScreenChange),this.$element.removeEventListener("wheel",this.handleWheel,{passive:!1})}preventDefault(t){t.preventDefault()}handleWheel(t){(t.ctrlKey||t.metaKey)&&t.preventDefault()}render(){const{theme:t,isShowSharingManager:n,isDeleteRulerLine:r,onlyView:s,isCommunityPreview:c,isEmbedV2Preview:d,fullScreenMode:p}=this.props,g=s?!(d&&!p):!p,y=!(c&&!p),w=s?c||d?Bf.xO:Bf.tt:Bf.xz;return(0,o.jsx)(E.NP,{theme:Cg.A[t],children:(0,o.jsxs)(f.D.Provider,{value:t,children:[(0,o.jsxs)(OY.n,{ref:this.setElementRef,className:m()({isDeleteRulerLine:r,isEmbedV2Preview:d}),children:[s?(0,o.jsx)(RY.VW,{sheet:w,viewMode:["read_only","inspect"]}):(0,o.jsx)(S.NH,{sheet:w}),y&&(0,o.jsx)(MW,{}),(0,o.jsxs)("div",{className:"main-content",children:[(0,o.jsx)(lZ.A,{}),g&&(0,o.jsx)(kW.D,{}),(0,o.jsxs)("main",{className:"mb-viewport",children:[(0,o.jsx)(sZ.A,{}),(0,o.jsx)(h.A,{onResize:this.handleResize})]}),(0,o.jsx)(rZ,{})]}),(0,o.jsx)(LF,{}),(0,o.jsx)(YY,{}),n&&(0,o.jsx)(fZ,{}),(0,o.jsx)(NY,{})]}),!(0,UY.FM)()&&(0,o.jsx)(BY.w9,{}),(0,o.jsx)(QY,{})]})})}}const QY=(0,l.memo)(()=>(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(jY.r,{}),(0,o.jsx)(N9.l,{}),(0,o.jsx)(DY.K,{})]}));function JY(){const e=new Date;e.setHours(4,0,0,0),e.setDate(e.getDate()+1);const t=e.getTime(),n=setInterval(()=>{Date.now()<=t||(clearInterval(n),setInterval(()=>{MB.global.popupHelper.alertAsync({title:I18N.Popups.inactive_for_too_long_title,desc:I18N.Popups.inactive_for_too_long_content,confirmText:I18N.Popups.inactive_for_too_long_confirm}).then(()=>{rootSdk.hasSave()||window.location.reload()})},20*1e3))},10*60*1e3)}function qY(e){setTimeout(()=>{e&&e({type:"copy:as:png:thumbnail"})},1*60*1e3),setInterval(()=>{e&&e({type:"copy:as:png:thumbnail"})},5*60*1e3)}const $Y=(0,k.Mz)([q.O4,P.ud,C.H5,M.Q,Y.jx,Y.pH,Y.rg,Y.T7,J.aJ],(e,t,n,r,s,c,d,p,g)=>({onlyView:s===Te.qi.OnlyView,isEditingComment:t,isCommunityPreview:c,isEmbedV2Preview:d,theme:e,isShowSharingManager:n,isDeleteRulerLine:r,fullScreenMode:p,isShallowEditText:g})),eX=(0,a.Ng)(e=>$Y(e))(XY)},59098:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M59.1465 56.5H4.85352L32 8.02344L59.1465 56.5Z",fill:"white",stroke:"#8B8C8F"}))})},60129:(eo,ot,i)=>{"use strict";i.d(ot,{Pr:()=>P,_D:()=>M,vY:()=>k});var a=i(93413);const k=[a.c.TASK_GUIDE_NEW_CREATE_PAGE,a.c.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY,a.c.TASK_GUIDE_NEW_CREATE_LINK,a.c.TASK_GUIDE_NEW_USE_PREVIEW,a.c.TASK_GUIDE_NEW_USE_SHARE,a.c.TASK_GUIDE_NEW_USE_COMMENT,a.c.TASK_GUIDE_NEW_CREATE_ANNOTATE,a.c.TASK_GUIDE_NEW_CREATE_FLOW,a.c.TASK_GUIDE_NEW_CREATE_MIND],M=[a.c.GUIDE_NOVICE_2309_TASK_1,a.c.GUIDE_NOVICE_2309_TASK_2,a.c.GUIDE_NOVICE_2309_TASK_3,a.c.GUIDE_NOVICE_2309_TASK_4,a.c.GUIDE_NOVICE_2309_TASK_5],P=[{label:"add_artboard",guideKey:a.c.GUIDE_NOVICE_2309_TASK_1,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_1_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_1+".gif",icon:{name:"art_board/guide/task/CREATE_PAGE",width:12,height:14},track:"\u65B0\u5EFA\u9875\u9762"},{label:"add_widget",guideKey:a.c.GUIDE_NOVICE_2309_TASK_2,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_2+".gif",icon:{name:"art_board/guide/task/CREATE_WIDGET",width:14,height:16},track:"\u521B\u5EFA\u7EC4\u4EF6"},{label:"add_interaction",guideKey:a.c.GUIDE_NOVICE_2309_TASK_3,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_3+".gif",icon:{name:"art_board/guide/task/CREATE_LINK",width:16,height:16},track:"\u6DFB\u52A0\u4EA4\u4E92"},{label:"preview",guideKey:a.c.GUIDE_NOVICE_2309_TASK_4,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_4+".gif",icon:{name:"art_board/guide/task/USE_PREVIEW",width:12,height:14},track:"\u771F\u673A\u6F14\u793A"},{label:"share",guideKey:a.c.GUIDE_NOVICE_2309_TASK_5,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+a.c.GUIDE_NOVICE_2309_TASK_5+".gif",icon:{name:"art_board/guide/task/USE_SHARE",width:12,height:12},track:"\u6587\u4EF6\u5206\u4EAB"}]},60399:(eo,ot,i)=>{"use strict";i.d(ot,{n:()=>k});var a=i(32424);const k=M=>{const P=M.access_token||(0,a.kt)(),C=/iphone|android|apple_watch/.test(M.device)?200:100,q=M.png_scale||C,Y=M.pngs_scale||C,J=!1,O=!1,l=M.device;let D;return l==="web"?D="web":l==="customize"?D="customize":D="device",{...M,access_token:P,png_scale:q,pngs_scale:Y,template:J,combo:O,shell_type:D}}},60440:(eo,ot,i)=>{"use strict";i.d(ot,{m:()=>J});var a=i(38502),k=i(18381),M=i(11032),P=i(70933),C=i(67052),q=i(74923),Y=i(3862);const J=O=>{let{templateList:l=[],resourcesMap:D=new Map,currentResource:m=null,isFromSameResource:E=!1,isOrg:f=!1,onUpdateCurrentResources:h}=O;const S=(0,k.d4)(P.HW),V=(0,k.d4)(P.wA),We=(0,k.d4)(P.F2),re=(0,k.d4)(P._x),ve=(0,k.wA)(),[we,Ae]=(0,a.useState)(new Set),[Oe,Be]=(0,a.useState)(m||null),tt=(0,k.d4)(C.fm),Xe=(0,k.d4)(q.AC),ne=Vt=>{var He;return(Vt==null?void 0:Vt.flpakKey)||(Vt==null?void 0:Vt.marketTemplateCid)||(Vt==null||(He=Vt.marketTemplateSource)==null?void 0:He.cid)},lt=Vt=>(We==null?void 0:We.project_meta_cid)===Vt?userSdkStore:(re==null?void 0:re.project_meta_cid)===Vt?orgSdkStore:tt.get(Vt),rt=Vt=>{Be(Vt),h&&h(Vt)},Te=Vt=>{if(!E){const He=[...Vt];He.filter(Lt=>{const jt=D==null?void 0:D.get(Lt),{show:mt}=(0,M.o3)(jt,S);return mt}).length==0&&He.length>0?rt((D==null?void 0:D.get(He[0]))||null):rt(null)}},Ge=Vt=>{const He=new Set(we);He.has(Vt)?He.delete(Vt):He.add(Vt),Ae(He);const rn=new Set;l.forEach(Lt=>{He.has(Lt.key)&&!(Lt!=null&&Lt.flpakKey)&&rn.add(ne(Lt))}),Te(rn)},ue=(0,a.useCallback)(()=>{const Vt=l==null?void 0:l.map(rn=>rn.key),He=new Set;l.forEach(rn=>{rn!=null&&rn.flpakKey||He.add(ne(rn))}),Ae(new Set(Vt)),Te(He)},[Ae,Te]),Me=(0,a.useCallback)(()=>{Ae(new Set)},[Ae]),Ze=(0,a.useCallback)(()=>{m&&(rt({...m,is_purchased:!0,is_star:!0}),ve({type:"entry:resources:update:find:data",payload:{cid:m==null?void 0:m.cid,category:Y.t_}}))},[rt,ve]),fe=()=>{MB.global.experienceLoginModalHelper("isSave")||m&&ve({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:m,currentOrg:V,paidCallback:Ze,isFooter:!0}}})},it=(0,a.useCallback)(()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{category:Vt}=m||{};let He="",rn="";Vt==="combo_group"?(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",rn="workspace-v8_components_buy_vip"):Vt==="screen_list"?(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",rn="workspace-v8_pages_buy_vip"):(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",rn="workspace-v8_template_buy_vip");const Lt={mode:"mat",payEntrance:He,checkoutArea:"proto",checkoutPlace:rn,templatePaySource:"\u7F16\u8F91\u533A\u7EC4\u4EF6\u5F39\u7A97"};MB.global.popupHelper.chargeAsync(Lt)},[m]),et=Vt=>{const He=new Map;return Vt.forEach(rn=>{const Lt=l.find(Jn=>Jn.key===rn);if(Lt){var jt,mt;const Jn=ne(Lt),o=(jt=He.get(Jn))!=null?jt:[],so=Lt.key,Et=Lt!=null&&Lt.flpakKey?"user_combo":Lt.type,Jt=Lt!=null&&Lt.flpakKey?We==null?void 0:We.cid:(mt=Lt.marketTemplateSource)==null?void 0:mt.cid;let Ot={...Lt,recent:{isRequestRecent:!f,itemCid:so,projectUpperType:Et,projectUpperCid:Jt,isTrack:!0,from:"widget-modal"}};He.set(Jn,[...o,Ot])}}),[...He.keys()].map(rn=>{const Lt=lt(rn);return Lt?[He.get(rn),Lt]:null}).filter(rn=>!!rn)},Ut=Vt=>{if(!(Vt!=null&&Vt.length))return;const He=et([Vt]);ve({type:"entry:resources:quick:create:template",payload:{data:He}}),ve({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),ve({type:"widget-modal:reset:state"})},G=()=>{const Vt=Array.from(we),He=et(Vt);ve({type:"entry:resources:quick:create:template",payload:{data:He}}),ve({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),ve({type:"widget-modal:reset:state"})},Ht=()=>{const Vt=l==null?void 0:l.map(rn=>rn.key),He=et(Vt);ve({type:"entry:resources:quick:create:template",payload:{data:He}}),ve({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),ve({type:"widget-modal:reset:state"})},Tt=(0,a.useCallback)(Vt=>{const He=[...l],rn=He==null?void 0:He.find(Lt=>Lt.key===Vt);ve({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{isOpen:!0,type:"widget",list:He,currentTemplate:rn}}})},[ve,l]);return{checkedSet:we,curRes:Oe,handleChangeChecked:Ge,handleSelectAll:ue,handleClearAll:Me,handleBySeparately:fe,handleMemberClick:it,handleAddItem:Ut,handleAddItems:G,handleAddItemsAll:Ht,handleOpenPreviewModal:Tt,handlePaidResources:Ze}}},60441:(eo,ot,i)=>{"use strict";i.d(ot,{GL:()=>P,ri:()=>a,um:()=>k,ur:()=>C,vE:()=>M});const a=q=>q.ui.leftLayout.widgetModal.keyword,k=q=>q.ui.leftLayout.widgetModal.currentResource,M=q=>q.ui.leftLayout.widgetModal.largeFactory,P=q=>q.ui.leftLayout.widgetModal.componentLibrary,C=q=>q.ui.leftLayout.widgetModal.me},60921:(eo,ot,i)=>{"use strict";i.d(ot,{N:()=>M,Z:()=>k});var a=i(42459);const k=(P,C)=>{if(P!=null&&P.is_star&&!(P!=null&&P.is_purchased))return(0,a.Op)(C,Y=>Y.cid===P.cid);if(P!=null&&P.is_purchased)return(0,a.$G)(C,Y=>Y.cid===P.cid,{...P,is_star:!(P!=null&&P.is_star)})},M=function(P,C){return C===void 0&&(C="all"),C==="all"?P:C==="page"?P.filter(q=>q.category==="screen_list"):C==="file"?P.filter(q=>q.category==="project_basic"):P}},61232:(eo,ot,i)=>{"use strict";i.d(ot,{_:()=>Is});var a=i(95549),k=i(38502),M=i(18381),P=i(16738),C=i(12211),q=i(86769),Y=i(94319),J=i.n(Y),O=i(39695),l=i(56202),D=i(16454),m=i(96986),E=i(99566),f=i(82846),h=i(34428),S=i(88981),V=i(30728),We=i(32267),re=i(29329),ve=i(72064),we=i(74222),Ae=i(9680),Oe=i(89853),Be=i(1984),tt=i(98267);const Xe=St=>St.replace(/.*scale\((.+)\).*/,"$1"),ne=St=>{let{clientX:je,clientY:qe}=St;const Le=MB.webpackInterface.store.getState(),at=(0,D.mf)(Le),{activePageKey:ft,activeCanvasKey:kt,screenScrollLeftMap:en,screenScrollTopMap:kn}=at,yn=V.Z.xy(je,qe),yo=en[kt]||0,Uo=kn[kt]||0;let Xo=(0,D.X_)(Le)/100;const Ia=(0,D.bF)(Le);let ja;try{ja=document.querySelector('#preview-content-container div[data-cid="'+kt+'"]').getBoundingClientRect()}catch(er){ja=document.querySelector("#app").getBoundingClientRect();try{Xo=Xe((0,We.T)({activePageKey:ft,activeCanvasKey:kt,previewOptions:Ia}).transform)}catch(Za){}}const ka={x:(yn.x-ja.x)/Xo,y:(yn.y-ja.y)/Xo},ga={x:ka.x-yo,y:ka.y-Uo};MB.previewMouseX=Math.round(ka.x),MB.previewMouseY=Math.round(ka.y),MB.previewMousePageX=Math.round(ga.x),MB.previewMousePageY=Math.round(ga.y)},lt=()=>{MB.previewMouseX=0,MB.previewMouseY=0,MB.previewMousePageX=0,MB.previewMousePageY=0},rt=()=>{if(MB.runnerController)return{variables:MB.runnerController.variableStore.getSnapshot(),p2sdkStore:(0,ve.yV)()};var St;return{variables:((St=sdkStore.getHotItem(we.fu))==null?void 0:St.sub.map(Ae.hZ))||[],p2sdkStore:sdkStore}},Te=(St,je)=>{const Le=St.interactionTrigger==="timer"?"timerDuration":"transitionDelay";return ue(St,Le,je)},Ge=St=>{switch(St.interactionType){case O.O2.SetVisibility:{if(!document.querySelector("#app"))return;const qe=(0,tt.$8)(St,MB.webpackInterface),Le=(0,ve.yV)(),at=Le==null?void 0:Le.getSnapshotItem(qe);if(!at)return;const ft=at.hotAttr.isVisible,kt=St.actionType;if((kt==="setVisible"||kt==="toggleVisibility")&&!ft)return St.setVisibleTransition==="auto"?ue(St,"setVisibleTransitionDuration"):0;if((kt==="setHidden"||kt==="toggleVisibility")&&ft)return St.setHiddenTransition==="auto"?ue(St,"setHiddenTransitionDuration"):0;break}default:return!St.transition||St.transition==="none"?0:ue(St,"transitionDuration")}},ue=function(St,je,qe){var Le;qe===void 0&&(qe=rt());const at=St[je]||"0";let ft=parseFloat(at)*1e3;const kt=(Le=St.expression)==null?void 0:Le[je];if(kt){var en;ft=(en=(0,re.LB)(kt,"number",qe))!=null?en:0}return(0,Oe.d8)(ft,[0,Be.sw])},Me=function(St,je,qe){return qe===void 0&&(qe="number"),(0,E.g3)(St,je,qe,rt())},Ze=function(){for(var St=arguments.length,je=new Array(St),qe=0;qe<St;qe++)je[qe]=arguments[qe];return je.join(",")};class fe{constructor(){(0,a.A)(this,"_incrementId",0),(0,a.A)(this,"actionQueue",[]),(0,a.A)(this,"scopeTimoutMap",new Map),(0,a.A)(this,"runningActionId",""),(0,a.A)(this,"selfIncreaingIncrementId",()=>this._incrementId++)}setTimeout(je,qe,Le,at){const{startTime:ft=Date.now(),scope:kt="",key:en}=Le,kn=Ze(kt,ft,qe);let yn=this.scopeTimoutMap.get(kn);return yn||(yn={scope:kt,startTime:ft,delay:qe,actions:new Set,cancelToken:setTimeout(()=>{this.timeoutCallback(kn)},qe)},this.scopeTimoutMap.set(kn,yn)),this.insertAction({id:en,callback:je},at),yn.actions.add(en),yn.cancelToken}timeoutCallback(je){if(!this.scopeTimoutMap.has(je))return;const{scope:qe,startTime:Le,delay:at}=this.scopeTimoutMap.get(je),ft=[];for(const[kt,en]of this.scopeTimoutMap)en.scope.includes(qe)&&en.startTime===Le&&en.delay===at&&ft.push(kt);for(const{id:kt,callback:en}of this.actionQueue)if(ft.some(kn=>{var yn;return(yn=this.scopeTimoutMap.get(kn))==null?void 0:yn.actions.has(kt)}))try{this.runningActionId=kt,en(),this.runningActionId=""}catch(kn){console.warn(kt+" action error",kn)}Promise.resolve().then(()=>{ft.forEach(kt=>{this.clearScopeId(kt)})})}insertAction(je,qe){if(qe){const Le=this.actionQueue.findIndex(at=>{let{id:ft}=at;return ft===qe});if(Le!==-1){this.actionQueue.splice(Le+1,0,je);return}}this.actionQueue.push(je)}clearScopeId(je){const qe=this.scopeTimoutMap.get(je);qe&&(clearTimeout(qe.cancelToken),this.actionQueue=this.actionQueue.filter(Le=>{let{id:at}=Le;return!qe.actions.has(at)})),this.scopeTimoutMap.delete(je)}clearScope(je,qe){if(!qe&&this.runningActionId){const Le=Array.from(this.scopeTimoutMap.values()).find(at=>at.actions.has(this.runningActionId));Le&&(qe=Le.startTime+Le.delay)}qe||(qe=Date.now(),Array.from(this.scopeTimoutMap.values()).forEach(Le=>{Le.scope.includes(je)&&(qe=Math.min(qe,Le.startTime+Le.delay))}));for(const Le of this.scopeTimoutMap.keys()){const{scope:at,startTime:ft,delay:kt}=this.scopeTimoutMap.get(Le);at.includes(je)&&ft+kt>qe&&this.clearScopeId(Le)}}clear(){this.clearScope("")}clearAll(){this.actionQueue=[],this.scopeTimoutMap.clear()}}const it=()=>new Date().getTime(),et=["mouseIn","mouseOut","left","right","up","down"],Ut=St=>St.some(je=>et.includes(je));class G{constructor(){this.coolDownTime=it(),this.coolDownInterval=200}isCoolDown(je){if(je===void 0&&(je=[]),Ut(je))return!0;const qe=it()-this.coolDownTime;return this.coolDownTime+=qe,qe>this.coolDownInterval}resetCoolDown(){this.coolDownTime-=this.coolDownInterval}}var Ht=i(83535),Tt=i(85449);const Vt=[O.O2.SetVariableValue,O.O2.SetAnimation,O.O2.Transform,O.O2.ScrollTo];class He{constructor(je,qe){(0,a.A)(this,"addIterationLinkKeySet",Le=>this.iterationLinkKeySet.add(Le)),(0,a.A)(this,"clearIterationLinkKeySet",()=>this.iterationLinkKeySet.clear()),(0,a.A)(this,"isIterableIta",Le=>Vt.some(at=>at===Le)),(0,a.A)(this,"getNumIterationCount",Le=>Le==="infinite"?1/0:(0,Oe.d8)(Number(Le),[1,Be.sw])),(0,a.A)(this,"getStringIterationCount",Le=>Number(Le)===1/0?"infinite":(0,Oe.d8)(Number(Le),[1,Be.sw]).toFixed(0)),(0,a.A)(this,"execIterableIta",Le=>{let{ita:at,itasTotal:ft,option:kt,curIterationCount:en=this.getNumIterationCount(Me(at,"iterationCount","number"))}=Le;if(!this.iterationLinkKeySet.has(at.key))return;this.runnerController.switchInteraction(at,ft,kt);const kn=()=>{const yn=ue(at,"iterationInterval"),yo=at.interactionType===O.O2.SetAnimation?(0,Oe.d8)(Me(at,"animationDuration","number"),[0,Be.sw]):ue(at,"transitionDuration"),Uo={...kt,startTime:Date.now()},Xo=()=>{this.requestAnimationFrameId=(0,Tt.Wz)(()=>this.execIterableIta({ita:at,itasTotal:ft,option:Uo,curIterationCount:en-1}))},Ia=at.key+this.timeoutBucket.selfIncreaingIncrementId(),ja={...Uo,key:Ia};this.timeoutBucket.setTimeout(Xo,yo+yn,ja)};en>1?kn():this.iterationLinkKeySet.delete(at.key)}),(0,a.A)(this,"start",Le=>{let{ita:at,itasTotal:ft,option:kt}=Le;this.addIterationLinkKeySet(at.key),this.isIterableIta(at.interactionType)?this.execIterableIta({ita:at,itasTotal:ft,option:kt}):this.runnerController.switchInteraction(at,ft,kt)}),(0,a.A)(this,"clear",()=>{this.clearIterationLinkKeySet(),this.requestAnimationFrameId&&cancelAnimationFrame(this.requestAnimationFrameId)}),this.runnerController=je,this.timeoutBucket=qe,this.iterationLinkKeySet=new Set}}const{Shake:rn}=window,Lt=["pointerdown","pointerup","hold","longpress","tap","click","rightClick","left","right","up","down","dtap","dbclick"],jt=()=>document.querySelector(".pcanvas.active"),mt=()=>{var St,je;return((St=MB.runnerController)==null?void 0:St.getAllActiveKeys().mainCanvasKey)||((je=document.querySelector(".pcanvas.active:not(.as-overlay)"))==null?void 0:je.dataset.cid)},Jn=St=>St?document.querySelector("#pscreen"+St):jt(),o=()=>({startTime:Date.now(),sourceCanvas:mt()}),so=(St,je)=>{if(St)for(const Le of je){var qe;const at=(qe=St.closest)==null?void 0:qe.call(St,".clickable."+Le);if(at)return at}},Et=(St,je)=>(je?[je,St]:[St]).join(",");class Jt{constructor(je,qe){(0,a.A)(this,"highTimer",null),(0,a.A)(this,"swipeDownTarget",null),(0,a.A)(this,"swipeDownTargetCanvas",null),(0,a.A)(this,"_isMobile",!1),(0,a.A)(this,"needRemoveEventListers",[]),(0,a.A)(this,"_pointerGesHasTriggered",!1),(0,a.A)(this,"timeoutBucket",new fe),(0,a.A)(this,"onMouseIn",Le=>this.prepareJump(Le,["mouseIn"])),(0,a.A)(this,"onMouseOut",Le=>this.prepareJump(Le,["mouseOut"])),(0,a.A)(this,"shakeHandle",()=>{var Le;const at=this.store.getState();if(this.runnerController.isPreventEvent||(0,m.sI)(at))return;const ft=Jn(this.runnerController.currentCanvasAsMenuOrDrawerKey),kt=ft==null||(Le=ft.attributes["data-cid"])==null?void 0:Le.value;kt&&this.setupCanvasGlobalInteractions(kt,["shake"],o())}),(0,a.A)(this,"keydownHandle",Le=>{if(this.runnerController.isPreventEvent)return;const at=(0,E.AE)({interactionTrigger:S.O.Keydown,keyseq:Le});this.globalEventHandle({nodeTriggers:[at]})}),(0,a.A)(this,"inputEventHandle",(Le,at)=>{var ft,kt,en;if(this.runnerController.isPreventEvent)return;const kn=Le.closest(".clickable.inputEvent");if(!kn)return;const yn=((ft=kn.attributes["data-cid"])==null?void 0:ft.value)||((kt=kn.attributes["data-container-cid"])==null?void 0:kt.value),yo=(en=kn.attributes["data-link_cid"])==null?void 0:en.value.split(","),Uo=(0,E.AE)({interactionTrigger:S.O.InputEvent,event:at}),{itasTotal:Xo,itasRootLevel:Ia}=q.A.getWidgetInteractionsByTrigger(yn,[Uo],this.store,yo);this.triggerInteractions(Ia,Xo,o())}),(0,a.A)(this,"globalEventHandle",Le=>{var at;let{nodeTriggers:ft}=Le;if(!(ft!=null&&ft.length))return;const kt=this.store.getState();if(this.runnerController.isPreventEvent||(0,m.sI)(kt))return;const en=o();if((0,D.hM)(kt)){const{activePageKey:Xo}=(0,D.mf)(kt);this.setupCanvasGlobalInteractions(Xo,ft,en);return}const yn=[];let yo;this.runnerController.currentCanvasAsMenuOrDrawerKey?yo=document.querySelector("#pscreen"+this.runnerController.currentCanvasAsMenuOrDrawerKey):(yo=document.querySelector(".pcanvas.active:not(.as-overlay):not(.in-overlay)"),document.querySelectorAll(".pcanvas.active.as-overlay").forEach(Xo=>{var Ia;const ja=Xo==null||(Ia=Xo.attributes["data-cid"])==null?void 0:Ia.value;ja&&yn.push(ja)}),yn.reverse().forEach(Xo=>this.setupCanvasGlobalInteractions(Xo,ft,{...en,scope:Xo})));const Uo=(at=yo)==null?void 0:at.dataset.cid;Uo&&this.setupCanvasGlobalInteractions(Uo,ft,en)}),(0,a.A)(this,"triggerInteractions",(Le,at,ft,kt)=>{if(!Le.length)return;const en=this.store.getState(),kn=(0,D.KR)(en),yn=(0,D.hM)(en),{activeCanvasKey:yo,overlayStack:Uo,basketCanvasMap:Xo,activePageKey:Ia}=(0,D.mf)(en);let ja=kt?this.timeoutBucket.runningActionId:void 0;const{sourceCanvas:ka,scope:ga}=ft||{},er=ka&&ka!==yo,Za=ga&&!ga.includes(yo)&&!Uo.some(Cr=>Cr.isOverlayIn&&(ga==null?void 0:ga.includes(Cr.targetOverlayKey)))&&![...Xo.keys()].some(Cr=>Xo.get(Cr).activeCanvas&&ga.includes(Cr));for(const Cr of Le){const Dr=Cr.interactionTrigger==="timer",ti=Te(Cr);if((er||Za)&&ti>0)continue;if(Dr&&ti===0&&([O.O2.SetAnimation,O.O2.SetVisibility].includes(Cr.interactionType)||Cr.interactionType===O.O2.Transform&&Ge(Cr)===0)){const li=(0,ve.EW)();if(!li||yn&&li.rootKey!==Ia){this.runnerController.runnerTreeConstructorCallbackSet.add(()=>this.iterationHandler.start({ita:Cr,itasTotal:at,option:ft}));continue}this.iterationHandler.start({ita:Cr,itasTotal:at,option:ft});continue}const Xr=()=>{const li=()=>{this.iterationHandler.start({ita:Cr,itasTotal:at,option:ft})},ur=Cr.key+this.timeoutBucket.selfIncreaingIncrementId(),oi={...ft,key:ur};this.timeoutBucket.setTimeout(li,Dr?ti+50:ti,oi,ja),kt&&(ja=ur)};if(Dr&&!kt){if(kn&&!this.runnerController.didInit()){this.runnerController.initedCallbackBucket.add(Xr);continue}this.runnerController.timerEventCallbackSet.add(Xr);continue}Xr()}}),this.store=je,this.runnerController=qe,this.store=je,this.eventBucket=new G,this.runnerController=qe,this.iterationHandler=new He(this.runnerController,this.timeoutBucket)}get isMobile(){return this._isMobile}set isMobile(je){this._isMobile=je}get pointerGesHasTriggered(){return this._pointerGesHasTriggered}init(je,qe){if(!je)return;const{isImmersive:Le,isMobile:at=!1}=qe||{};this.isMobile=at;const ft=new(J()).Manager(je);ft.set({touchAction:"auto",inputClass:(0,l.Fr)()?J().TouchInput:null});const kt=new(J()).Tap({event:"singletap",interval:0}),en=new(J()).Tap({event:"doubletap",taps:2}),kn=new(J()).Swipe({event:"swipe",direction:J().DIRECTION_ALL,velocity:.05,threshold:10}),yn=new(J()).Pan({event:"pan",direction:J().DIRECTION_ALL,threshold:10}),yo=new(J()).Press({event:"press"});ft.add([en,kt]),ft.add([yn,kn]),ft.add(yo),en.recognizeWith(kt),kt.requireFailure(en),yn.recognizeWith(kn),ft.on("panstart",ga=>{switch(this.prepareJump(ga,["panstart"],!1),ga.additionalEvent){case"panleft":this.prepareJump(ga,["left"]);break;case"panright":this.prepareJump(ga,["right"]);break;case"panup":this.prepareJump(ga,["up"]);break;case"pandown":this.prepareJump(ga,["down"]);break;default:break}}),ft.on("panend",ga=>{this.prepareJump(ga,["panend"],!1)}),ft.on("press",ga=>{this.prepareJump(ga,["hold","longpress"])}),ft.on("doubletap",ga=>{this.prepareJump(ga,["dtap","dbclick"])}),ft.on("singletap",ga=>{this.prepareJump(ga,["tap","click"])}),new rn({threshold:15}).start(),window.addEventListener("shake",this.shakeHandle),this.needRemoveEventListers.push(()=>window.removeEventListener("shake",this.shakeHandle));const Xo=ga=>{this.dragPanelEventHandler(ga,{isImmersive:Le,isMobile:at}),ga.button===2&&this.prepareJump(ga,["rightClick"])};je.addEventListener("mousedown",Xo),this.needRemoveEventListers.push(()=>je==null?void 0:je.removeEventListener("mousedown",Xo));const Ia=ga=>{this.prepareJump(ga,["pointerdown"]),ka(ga)};je.addEventListener("pointerdown",Ia),this.needRemoveEventListers.push(()=>je==null?void 0:je.removeEventListener("pointerdown",Ia));const ja=ga=>{this.prepareJump(ga,["pointerup"],!1)};je.addEventListener("pointerup",ja),this.needRemoveEventListers.push(()=>je==null?void 0:je.removeEventListener("pointerup",ja)),lt();const ka=ga=>ne({clientX:ga.clientX,clientY:ga.clientY});je.addEventListener("pointerenter",ka),je.addEventListener("pointermove",ka),this.needRemoveEventListers.push(()=>je==null?void 0:je.removeEventListener("pointerenter",ka),()=>je==null?void 0:je.removeEventListener("pointermove",ka)),this.hammertime=ft,this.initKeyboardEvent()}initKeyboardEvent(){let je;(0,D.k6)(this.store.getState())&&(je=document.getElementById(h.er.CanvasModal)),(0,D.hM)(this.store.getState())&&(je=document.getElementById(h.er.ComboModal)),(0,D.KR)(this.store.getState())&&(je=document.getElementById(h.er.PanelModal)),this._keydownRecorder=new f.Ay({containerEle:je,onCompleteCallback:qe=>{let Le=[qe];if(!(0,l.cX)()){if(qe.includes("Meta"))return;qe.includes("Control")&&(Le=[qe,qe.replace("Control","Meta")])}Le.forEach(at=>this.keydownHandle(at))}})}initMouseEvent(je){var qe,Le;(qe=je.querySelectorAll(".mouseIn"))==null||qe.forEach(ft=>{ft.removeEventListener("mouseenter",this.onMouseIn),ft.addEventListener("mouseenter",this.onMouseIn)}),(Le=je.querySelectorAll(".mouseOut"))==null||Le.forEach(ft=>{ft.removeEventListener("mouseleave",this.onMouseOut),ft.addEventListener("mouseleave",this.onMouseOut)});const at=()=>{var ft,kt;(ft=je.querySelectorAll(".mouseIn"))==null||ft.forEach(kn=>{kn.removeEventListener("mouseenter",this.onMouseIn)}),(kt=je.querySelectorAll(".mouseOut"))==null||kt.forEach(kn=>{kn.removeEventListener("mouseleave",this.onMouseOut)});const en=this.needRemoveEventListers.indexOf(at);en>-1&&this.needRemoveEventListers.splice(en,1)};return this.needRemoveEventListers.push(at),at}clear(){var je,qe;this.needRemoveEventListers.forEach(Le=>Le()),this.needRemoveEventListers=[],(je=this.hammertime)==null||je.destroy(),this.hammertime=null,(qe=this._keydownRecorder)==null||qe.destroyRecording(),this.iterationHandler.clear()}prepareJump(je,qe,Le){var at,ft,kt,en,kn;Le===void 0&&(Le=!0),qe.includes(S.O.PointerDown)&&(this._pointerGesHasTriggered=!1);const yn=o(),yo=this.store.getState();if(this.runnerController.isPreventEvent||(0,m.sI)(yo)||!(je!=null&&(at=je.target)!=null&&at.closest))return;let Uo=je.target.closest(".clickable");if((ft=Uo)!=null&&ft.classList.contains("wElbow")&&!((kt=je.target.classList)!=null&&kt.contains("line-path-ghost"))&&(Uo=null),qe.includes("mouseOut")?Uo=je.target.closest(".mouseOut"):qe.includes("mouseIn")?Uo=je.target.closest(".mouseIn"):Uo=so(Uo,qe)||Uo,!this.isMobile&&(qe.includes("left")||qe.includes("right")||qe.includes("up")||qe.includes("down")))if(Uo){if(!this.swipeDownTarget||this.swipeDownTarget!==Uo&&!Uo.contains(this.swipeDownTarget))return}else this.swipeDownTarget&&(Uo=this.swipeDownTarget);const Xo=je.target.closest(".panel");let Ia;qe.includes("shake")?Ia=Jn(this.runnerController.currentCanvasAsMenuOrDrawerKey):Ia=je.target.closest(".pcanvas"),qe.includes("panstart")&&(Uo&&(this.swipeDownTarget=Uo),Ia&&(this.swipeDownTargetCanvas=Ia)),qe.includes("panend")&&(this.swipeDownTarget=null,this.swipeDownTargetCanvas=null);const ja=(0,D.hM)(yo),ka=(0,D.Re)(yo),ga=(0,D.ub)(yo);if(!this.isMobile&&!Ia&&!ja&&!ga)if(qe.includes("left")||qe.includes("right")||qe.includes("up")||qe.includes("down"))this.swipeDownTargetCanvas&&(Ia=this.swipeDownTargetCanvas);else return;const er=(en=Ia)==null||(en=en.attributes["data-cid"])==null?void 0:en.value;if(this.runnerController.currentCanvasAsMenuOrDrawerKey&&!je.target.closest(".overlay-runner")&&!((kn=Jn(this.runnerController.currentCanvasAsMenuOrDrawerKey))!=null&&kn.contains(je.target))&&!Ut(qe))return this.runnerController.closeMenu();const Za=er&&sdkStore.getHotItem(er);if((Za==null?void 0:Za.hotAttr.type)==="rResCanvas"&&Za.hotAttr.asOverlay&&(yn.scope=er),Xo){if(this.basketEventHandler(je,qe,yn))return}else if(Uo){var Cr,Dr,ti;const Xr=((Cr=Uo.attributes["data-cid"])==null?void 0:Cr.value)||((Dr=Uo.attributes["data-container-cid"])==null?void 0:Dr.value),li=(ti=Uo.attributes["data-link_cid"])==null?void 0:ti.value;if(!li)return;const ur=li.split(","),{itasTotal:oi,itasRootLevel:hs}=q.A.getWidgetInteractionsByTrigger(Xr,qe,this.store,ur);if(qe.includes(S.O.PointerDown)){const{itasRootLevel:Di}=q.A.getWidgetInteractionsByTrigger(Xr,Lt,this.store,ur);this._pointerGesHasTriggered=Di.length>0}this.triggerInteractions(hs,oi,yn);return}if(er){const{itasRootLevel:Xr,itasTotal:li}=q.A.getWidgetInteractionsByTrigger(er,qe),ur=(0,D.KR)(this.store.getState()),oi=Xr.filter(hs=>!(ur&&[1,2].includes(hs.interactionType)));this.triggerInteractions(oi,li,yn)}if(Le&&ka&&!Ut(qe)&&!je.target.closest(".play-pause")&&!je.target.closest(".audio-progress")&&!je.target.closest(".video")&&!je.target.closest(".annotate")){if(Lt.some(Xr=>qe.includes(Xr))&&this._pointerGesHasTriggered)return;this.highlightClickables(je)}}basketEventHandler(je,qe,Le){var at,ft;const kt=this.store.getState(),en=so(je.target,qe)||je.target.closest(".clickable"),yn=je.target.closest(".panel").closest(".tree-node").attributes["data-cid"].value,yo=((at=Le)!=null&&at.scope?[(ft=Le)==null?void 0:ft.scope,yn]:[yn]).join(",");if(Le={...Le,scope:yo},en){var Uo,Xo;const ka=((Uo=en.attributes["data-cid"])==null?void 0:Uo.value)||((Xo=en.attributes["data-container-cid"])==null?void 0:Xo.value),ga=en.attributes["data-link_cid"].value.split(","),{itasTotal:er,itasRootLevel:Za}=q.A.getWidgetInteractionsByTrigger(ka,qe,this.store,ga);if(qe.includes(S.O.PointerDown)){const{itasRootLevel:Cr}=q.A.getWidgetInteractionsByTrigger(ka,Lt,this.store,ga);this._pointerGesHasTriggered=Cr.length>0}return Za.length===0?!1:(this.triggerInteractions(Za,er,Le),!0)}const ja=(0,D.mf)(kt)[yn];if(ja){const{itasRootLevel:ka,itasTotal:ga}=q.A.getWidgetInteractionsByTrigger(ja,qe),er=ka[0];if(er)return this.triggerInteractions([er],ga,Le),!0}return!1}highlightClickables(je){if(je.target.closest(".canClickableHighWidget"))return;let qe=[];if(je.target.closest(".pcanvas.as-overlay")){var Le;const at=((Le=Array.from(document.querySelectorAll(".pcanvas.as-overlay")).at(-1))==null?void 0:Le.querySelectorAll(".region"))||[];qe=Array.from(at)}else{const at=document.querySelectorAll(".pcanvas.active .region"),ft=document.querySelectorAll(".pnoncanvas .region");qe=Array.from(at).concat(Array.from(ft))}qe.forEach(at=>{at.style.display="block"}),this.highTimer=setTimeout(()=>{qe.forEach(at=>{at.style.display="none"})},400)}setupPageGesture(je){const{itasRootLevel:qe}=q.A.getWidgetInteractionsByTrigger(je,["left","right","up","down"]);if(qe.length===0)return;const Le=[];qe.forEach(kt=>{const{interactionTrigger:en}=kt;switch(en){case"left":case"right":{Le.indexOf("pan-y")===-1&&Le.push("pan-y");break}case"up":case"down":{Le.indexOf("pan-x")===-1&&Le.push("pan-x");break}}});const at=Le.length?Le.join(" "):"auto";this.hammertime.touchAction.actions=at;const ft=document.querySelector(".pcanvas.active .widgets");ft&&(ft.style.touchAction=at)}dragPanelEventHandler(je,qe){let{isImmersive:Le,isMobile:at}=qe;if(at||Le)return;const ft=je.target.closest(".wMapView div"),kt=je.target.closest(".panel"),en=ft||kt;if(!en||en.clientWidth===en.scrollWidth&&en.clientHeight===en.scrollHeight)return;const{clientX:kn,clientY:yn}=je,{scrollTop:yo,scrollLeft:Uo}=en;let Xo=0;const Ia=ka=>{ka.preventDefault(),Xo++,en.scrollTop=yo-(ka.clientY-yn),en.scrollLeft=Uo-(ka.clientX-kn)},ja=()=>{Xo>5&&this.eventBucket.isCoolDown(),document.removeEventListener("mousemove",Ia),document.removeEventListener("mouseup",ja)};document.addEventListener("mousemove",Ia),document.addEventListener("mouseup",ja)}setupCanvasGlobalInteractions(je,qe,Le){var at,ft;(at=Le)!=null&&at.startTime||(Le={...Le,startTime:Date.now()}),(ft=Le)!=null&&ft.sourceCanvas||(Le={...Le,sourceCanvas:mt()});const kt=sdkStore.getHotItem(je);(kt==null?void 0:kt.hotAttr.type)==="rResCanvas"&&kt.hotAttr.asOverlay&&(Le={...Le,scope:je}),(0,Ht.r)(je,en=>{const{key:kn}=en;if(this.addHiInteractions(kn,qe,Le),en.hotAttr.type==="wBasket")return en.sub.length?this.setupBasketGlobalInteractions(en.key,en.sub[0],qe,Le):console.error("[Bad Basket without sub keys]",en.key),!1})}setupBasketGlobalInteractions(je,qe,Le,at){var ft;const kt=Et(je,at==null?void 0:at.scope),en=this.store.getState(),{basketCanvasMap:kn}=(0,D.mf)(en),yn=(kn==null||(ft=kn.get(je))==null?void 0:ft.activeCanvas)||qe;this.setupCanvasGlobalInteractions(yn,Le,{...at,scope:kt})}addHiInteractions(je,qe,Le){const{itasRootLevel:at,itasTotal:ft}=q.A.getWidgetInteractionsByTrigger(je,qe,this.store);at.length&&this.triggerInteractions(at,ft,Le)}setupCanvasTimers(je,qe,Le){var at,ft;qe&&this.clearScopeActions(),(at=Le)!=null&&at.startTime||(Le={...Le,startTime:Date.now()});const kt=this.store.getState(),{activeCanvasKey:en}=(0,D.mf)(kt);(ft=Le)!=null&&ft.sourceCanvas||(Le={...Le,sourceCanvas:en});const kn=sdkStore.getHotItem(je);(kn==null?void 0:kn.hotAttr.type)==="rResCanvas"&&kn.hotAttr.asOverlay&&(Le={...Le,scope:je}),(0,Ht.r)(je,yn=>{if(this.addHiInteractions(yn.key,["timer"],Le),yn.hotAttr.type==="wBasket")return yn.sub.length?this.setupBasketTimers(yn.key,yn.sub[0],Le):console.error("[Bad Basket without sub keys]",yn.key),!1})}setupBasketTimers(je,qe,Le){if(!qe)return;this.clearScopeActions(je);const at=Et(je,Le==null?void 0:Le.scope);this.setupCanvasTimers(qe,!1,{...Le,scope:at})}clearScopeActions(je,qe){je===void 0&&(je=""),this.timeoutBucket.clearScope(je,qe)}clearTimeout(){this.timeoutBucket.clear()}}var Ot=i(20089),dn=i(20389);const Ce=function(St,je){return je===void 0&&(je=""),St?(0,E.AE)({interactionTrigger:"listener",listenTarKey:St,listenTarAttr:je}):""},Pt=St=>{let{widgetKey:je,attrKey:qe="TC",newValue:Le,oldValue:at}=St;const ft=[];if(Le!==at){const kt=Ce(je,qe);if(kt&&ft.push(kt),qe==="TC"&&String(Le).length!==String(at).length){const en=Ce(je,"TL");en&&ft.push(en)}}return ft},Nn=(St,je)=>{if(!St||!je||St===je||St.key!==je.key)return[];const{key:qe,hotAttr:Le}=St,{hotAttr:at}=je,ft=["TC","O","W","H","R","RX","RY","TRLX","TRLY","SCLX","SCLY"],kt=[];return ft.forEach(en=>{kt.push(...Pt({widgetKey:qe,attrKey:en,newValue:At(Le,en),oldValue:At(at,en)}))}),kt},At=function(St,je){var qe,Le,at,ft,kt,en,kn;if(je===void 0&&(je="TC"),!St)return"";const yn=yo=>{var Uo;switch(!0){case!!yo.textV1:return(0,dn.o6)(yo.textV1);case(yo.type===Ot.x.WMTextInput||yo.type===Ot.x.WMTextArea):return yo.textInput.prefillTextV0;case yo.type===Ot.x.WDigitalStepper:return yo.digitalStepper.value;case yo.type===Ot.x.WPaginationWeb:return yo.paginationWeb.curPage;case yo.type===Ot.x.WPaginationMobile:return yo.paginationMobile.curPage;default:return(Uo=yo.textV0)==null?void 0:Uo.text}};switch(je){case"TC":return yn(St);case"O":return St.opacity;case"W":return St.w;case"H":return St.h;case"R":return((qe=St.runnerTransform)==null?void 0:qe.rotateZ)||St.r||0;case"RX":return((Le=St.runnerTransform)==null?void 0:Le.rotateX)||0;case"RY":return((at=St.runnerTransform)==null?void 0:at.rotateY)||0;case"TRLX":return((ft=St.runnerTransform)==null?void 0:ft.translateX)||0;case"TRLY":return((kt=St.runnerTransform)==null?void 0:kt.translateY)||0;case"SCLX":return((en=St.runnerTransform)==null?void 0:en.scaleX)||100;case"SCLY":return((kn=St.runnerTransform)==null?void 0:kn.scaleY)||100;default:return""}},on=(St,je,qe)=>{const Le=je.getInteractionsOf(St);Le&&Le.forEach(at=>{var ft;!at.triggerDisable&&!at.actionDisable&&at.interactionType!==O.O2.TriggerPlaceHolder&&at.interactionTrigger===S.O.Listener&&!((ft=at.listenTarKey)!=null&&ft.startsWith(E._x))&&qe.add((0,E.AE)(at))})};class no{constructor(je,qe){var Le=this;(0,a.A)(this,"subListenerTriggersMap",new Map),(0,a.A)(this,"wItemSnapshot",new Map),(0,a.A)(this,"curListenerSnapshotMap",new Map),(0,a.A)(this,"isSdkChanged",!1),(0,a.A)(this,"listenerHandle",at=>{!at||at.length===0||this.eventHandler.globalEventHandle({nodeTriggers:at})}),(0,a.A)(this,"compareWAttrSnapshot",()=>{const at=(0,ve.yV)(),ft=new Set;return Array.from(this.wItemSnapshot).forEach(kt=>{let[en,kn]=kt;const yn=at.getHotItem(en),yo=kn||sdkStore.getHotItem(en),Uo=Nn(yn,yo);Uo&&Uo.forEach(Xo=>ft.add(Xo))}),ft}),(0,a.A)(this,"wAttrChangeItaListener",()=>{const at=this.compareWAttrSnapshot();at.size!==0&&this.listenerHandle(Array.from(at))}),(0,a.A)(this,"getTriggers",()=>{var at;return this.isSdkChanged?(this.isSdkChanged=!1,this.updateListenerTriggers()):(at=this.listenerTriggers)!=null?at:this.updateListenerTriggers()}),(0,a.A)(this,"updateListenerTriggers",()=>{const at=(0,ve.yV)(),ft=at.hotItemSnapshot;return ft?(this.listenerTriggers=new Set,Array.from(ft).forEach(kt=>{let[en]=kt;return on(en,at,this.listenerTriggers)}),this.listenerTriggers):new Set}),(0,a.A)(this,"getSubKeyTriggers",at=>{var ft;const{basketCanvasKeys:kt,overlayCanvasKeys:en}=MB.runnerController.getAllActiveKeys();if([...kt,...en].includes(at))return this.isSdkChanged?(this.isSdkChanged=!1,this.updateSubListenerTriggersMap(at)):(ft=this.subListenerTriggersMap.get(at))!=null?ft:this.updateSubListenerTriggersMap(at)}),(0,a.A)(this,"updateSubListenerTriggersMap",at=>{var ft;const kt=(0,ve.yV)(),en=kt.hotItemSnapshot;if(!en)return new Set;const kn=new Set;return(ft=en.get(at))==null||ft.sub.forEach(yn=>on(yn,kt,kn)),this.subListenerTriggersMap.set(at,kn),kn}),(0,a.A)(this,"updateCurWItemSnapshot",()=>{const at=(0,ve.yV)(),ft=at.hotItemSnapshot;if(!ft)return new Set;const kt=this.getTriggers();Array.from(kt).forEach(en=>{const[,kn]=(0,E.Tq)(en);if(at.isTrashed(kn))return;const yn=ft.get(kn);yn&&yn.hotAttr.type!==Ot.x.Var&&this.wItemSnapshot.set(kn,yn)})}),(0,a.A)(this,"updateListenerTriggersBySDK",()=>{this.isSdkChanged=!0}),(0,a.A)(this,"updateCurListenerSnapshotMap",at=>{if(!at)return;const ft=(0,ve.yV)(),kt=this.getTriggers(),en=Array.from(kt).reduce((kn,yn)=>{const[,yo,Uo]=(0,E.Tq)(yn);if(ft.isTrashed(yo))return kn;const Xo=ft.getHotItem(yo);if(!Xo)return kn;if(Xo.hotAttr.type===Ot.x.Var){var Ia;const ka=(Ia=MB.runnerController.variableStore.getVariableMap().get(yo))==null?void 0:Ia.varData;kn.set(yn,ka)}else{const ja=At(Xo.hotAttr,Uo);kn.set(yn,ja)}return kn},new Map);if(en.size>0){this.curListenerSnapshotMap.set(at,en);const{basketCanvasKeys:kn}=MB.runnerController.getAllActiveKeys();kn&&kn.forEach(yn=>yn&&this.curListenerSnapshotMap.set(yn,en))}}),(0,a.A)(this,"listenerHandleAfterload",function(at,ft){if(ft===void 0&&(ft=!1),!at)return;const kt=Le.getSubKeyTriggers(at)||Le.updateListenerTriggers();if(!ft&&kt&&kt.size>0){const en=Array.from(kt).filter(kn=>{const[,yn,yo]=(0,E.Tq)(kn);if(sdkStore.isTrashed(yn))return!1;const Uo=sdkStore.getHotItem(yn);if(!Uo)return!1;const Xo=Le.curListenerSnapshotMap.get(at),Ia=Xo==null?void 0:Xo.get(kn);if(Uo.hotAttr.type===Ot.x.Var){var ja;const ga=Ia!=null?Ia:Uo.hotAttr.varData,Za=(ja=MB.runnerController.variableStore.getVariableMap().get(yn))==null?void 0:ja.varData;return ga!==Za}else{var ka;const ga=Ia!=null?Ia:At(Uo.hotAttr,yo),er=(ka=(0,ve.yV)())==null?void 0:ka.getHotItem(yn);if(!er)return!1;const Za=At(er.hotAttr,yo);return ga!==Za}});Le.listenerHandle(en)}}),(0,a.A)(this,"clear",()=>{this.wItemSnapshot.clear(),this.listenerTriggers=void 0,this.subListenerTriggersMap.clear(),this.curListenerSnapshotMap.clear()}),this.store=je,this.eventHandler=qe}varChangeItaListener(je){let{newVarItem:qe}=je;if(!qe)return;const Le=[];if(qe.varData!==qe.oldVarData){const ft=Ce(qe.key);ft&&Le.push(ft)}const at=this.compareWAttrSnapshot();Le.push(...Array.from(at)),this.listenerHandle(Le)}}var mo=i(24281),mn=i(68033),ht=i(70248);const Fn=function(St,je,qe){je===void 0&&(je="hasVerticalScroll");let Le;const at=je==="hasVerticalScroll"?["y","maxScrollY"]:["x","maxScrollX"],ft=kn=>kn&&kn[je]&&(qe<0?kn[at[0]]>kn[at[1]]:kn[at[0]]<0);if(ft(St))return St;for(;Le=(kt=St)==null||(kt=kt.wrapper)==null||(kt=kt.parentElement)==null||(kt=kt.closest(".screen-content"))==null||(kt=kt.closest(".pcanvas"))==null||(kt=kt.dataset)==null?void 0:kt.cid;){var kt,en;if(St=(en=MB.runnerController)==null?void 0:en.scrollHandler.getScroller(Le),ft(St))return St}};let Yt=null,Gt=null,Bn=null;const qt=(St,je,qe)=>{var Le,at;if(St.metaKey||St.ctrlKey||St.buttons===4)return!0;const ft=(Le=(at=St.target).closest)==null?void 0:Le.call(at,".widget");if(ft&&(ft.classList.contains("wWebpage")||ft.classList.contains("wMapView")||ft.querySelector("input")||ft.querySelector("textarea")&&!ft.classList.contains("wTable"))||St.touches&&St.touches.length===2)return!0;if(!qe){var kt,en;Gt=null;const yo=(kt=(en=St.target).closest)==null?void 0:kt.call(en,".panel:not(."+mn.M5[mn.Ci.hide]+")");(!yo||yo.contains(je.wrapper))&&(Yt=je)}if(Gt)return Gt!==je;let kn,yn=!1;return qe!=null&&qe.deltaX&&Yt&&(kn=Fn(Yt,"hasHorizontalScroll",qe.deltaX),yn=!0),qe!=null&&qe.deltaY&&Yt&&(kn=Fn(Yt,"hasVerticalScroll",qe.deltaY),yn=!0),kn?(Gt=Yt=kn,Yt!==je):!!yn},Zt=(St,je)=>{var qe,Le;if(St.metaKey||St.ctrlKey)return!0;const at=(qe=St.target)==null||(Le=qe.closest)==null?void 0:Le.call(qe,".scrollable-widget");if(Gt)return(Gt===je||Gt===at)&&(Bn&&clearTimeout(Bn),Bn=setTimeout(()=>{Gt=null},300)),Gt.wrapper?Gt!==je:(Gt===at&&St.stopPropagation(),!!at);const{deltaX:ft,deltaY:kt}=St;if(at){const{clientHeight:yo,clientWidth:Uo,scrollHeight:Xo,scrollWidth:Ia,scrollTop:ja,scrollLeft:ka}=at;if(yo<Xo&&kt&&(kt>0?ja+yo<Xo:ja>0)||Uo<Ia&&ft&&(ft>0?ka+Uo<Ia:ka>0))return Gt=at,St.stopPropagation(),Bn=setTimeout(()=>{Gt=null},300),!0}const en=je.hasVerticalScroll?kt:0,kn=je.hasHorizontalScroll?ft:0;return(en>0&&je.maxScrollY<je.y||en<0&&je.y<0||kn>0&&je.maxScrollX<je.x||kn<0&&je.x<0)&&(Gt=je,Bn=setTimeout(()=>{Gt=null},300)),!1},jn={useTransform:!1,disableTouch:!1,disablePointer:!0,preventDefault:!0,probeType:3,ignoreEventException:(St,je,qe)=>St.type!=="wheel"?qt(St,je,qe):Zt(St,je)},ro={...jn,scrollbars:!0,mouseWheel:!0,disableMouse:!1,interactiveScrollbars:!0,shrinkScrollbars:"scale",fadeScrollbars:!0,HWCompositing:!1};class Tn{constructor(je,qe){(0,a.A)(this,"_lockedTarget",null),(0,a.A)(this,"toBeRemovedListers",{}),this.store=je,this.runner=qe,this.iScrollMap={},this.stickyWidgetListMap={}}toggleScrollBar(je){Object.values(this.iScrollMap).forEach(qe=>{je?qe.enable():qe.disable()})}disableScrollBar(je){const qe=this.iScrollMap[je];qe&&qe.disable()}renderScrollbar(je,qe){this.iScrollMap[je]?this.refreshScrollBar(je):this.initScrollBar(je,qe),this.resetPanelPreviewModeScrollPos(je)}clear(){this.destroyScrollBar(),this._lockedTarget=null}refreshScrollBar(je){this.iScrollMap[je]&&this.iScrollMap[je].refresh()}initScrollBar(je,qe){if(this.iScrollMap[je])return;const Le=this.store.getState(),ft=(((0,D.k6)(Le)?"#IBOT_MODAL_ROOT ":"")+"#pscreen"+je+">.screen-content").replaceAll("/","\\/"),kt=document.querySelector(ft);if(!kt)return;const en=!kt.offsetParent&&kt.closest('[style*="display: none;"]');if(en){const Xo=new MutationObserver(()=>{kt.offsetParent&&(this.refreshScrollBar(je),Xo.disconnect())});Xo.observe(en,{subtree:!0,attributes:!0})}const kn=(0,l.Fr)()?jn:ro,yn=q.A.getScreenScrollTop(this.store,je),yo=q.A.getScreenScrollLeft(this.store,je);kn.startY=yn||0,kn.startX=yo||0;const Uo=new window.IScroll(kt,{...kn,...qe});this.updateStickyWidgetList(je),this.updateStickyBehavior(je,yn),Uo.on("scroll",()=>{this.updateStickyBehavior(je,Uo.y),this.runner.updateScrollTop(je,Uo.y),this.runner.updateScrollLeft(je,Uo.x)}),this.iScrollMap[je]=Uo}resetScreenScrollState(je){this.runner.updateScrollTop(je,0),this.runner.updateScrollLeft(je,0)}destroyScrollBar(){Object.keys(this.iScrollMap).forEach(je=>{this.destroyScrollBarByCid(je)}),this.iScrollMap={}}destroyScrollBarByCid(je){const qe=this.iScrollMap[je];if(qe){var Le,at;Yt===qe&&(Yt=null),Gt===qe&&(Gt=null),qe.destroy(),(Le=(at=this.toBeRemovedListers)[je])==null||Le.call(at),delete this.iScrollMap[je],delete this.toBeRemovedListers[je]}}resetCurrentScreenScrollState(je){const qe=this.iScrollMap[je];qe&&qe.scrollTo(0,0)}resetScrollState(){Object.values(this.iScrollMap).forEach(je=>je.scrollTo(0,0)),this.runner.resetScreenScrollTopMap(),this.runner.resetScreenScrollLeftMap()}scrollTo(je,qe,Le,at){var ft;at===void 0&&(at={duration:0});const kt=this.iScrollMap[je];if(!kt)return;const en=qe!==null?Math.max(-qe,kt.maxScrollX):kt.x,kn=Le!==null?Math.max(-Le,kt.maxScrollY):kt.y;this.iScrollMap[je]&&(kt.scrollTo(en,kn,at.duration),setTimeout(()=>{var yn,yo;if(!this.iScrollMap[je])return;const Uo=this.store&&(0,D.mf)(this.store.getState());Uo&&(((yn=Uo.screenScrollTopMap)==null?void 0:yn[je])!==kt.y&&this.runner.updateScrollTop(je,kt.y),((yo=Uo.screenScrollLeftMap)==null?void 0:yo[je])!==kt.x&&this.runner.updateScrollLeft(je,kt.x),this.updateStickyBehavior(je,kt.y))},((ft=at.duration)!=null?ft:0)+1))}updateStickyWidgetList(je,qe){if(!qe){const Le=this.store.getState(),at=(0,D.KR)(Le),ft=(0,D.Mo)(Le),kt=at&&sdkStore.getHotItem(ft).hotAttr.type==="wBasket"?"shadow-sticky":"sticky",en=document.querySelectorAll("."+kt);qe=Array.from(en)}this.stickyWidgetListMap[je]=qe}updateStickyBehavior(je,qe){var Le;if(!((Le=this.stickyWidgetListMap[je])!=null&&Le.length))return;const at=this.store.getState(),ft=(0,D.KR)(at),kt=(0,D.Mo)(at),en=qe!==void 0?qe:q.A.getScreenScrollTop(this.store,je);(0,mo.ZA)({stickyWidgetList:this.stickyWidgetListMap[je],scrollTop:en,returnFunc:kn=>{if(ft)return(0,mo.VG)(kn,kt)},runnerCanvasKey:je})}resetStickyBehavior(je){var qe;if(!((qe=this.stickyWidgetListMap[je])!=null&&qe.length))return;const Le=this.store.getState(),at=(0,D.KR)(Le),ft=(0,D.Mo)(Le);(0,mo.mC)({stickyWidgetList:this.stickyWidgetListMap[je],returnFunc:kt=>{if(at)return(0,mo.VG)(kt,ft)},runnerCanvasKey:je})}resetPanelPreviewModeScrollPos(je){if(!je)return;const qe=this.iScrollMap[je];if(!qe||MB.runnerController.resetHandler.getWScrollMap(je)||!(0,ht.OO)(je)&&sdkStore.locTopRBActiveKey(je)!==we.fW)return;const at=sdkStore.getSourceHotItem(je);if(!at||!(at!=null&&at.hotAttr))return;const{hotAttr:{x:ft,y:kt,w:en,h:kn}}=at,yn=Math.max(0,-ft+en/2),yo=Math.max(0,-kt+kn/2);this.runner.updateScrollLeft(je,-yn),this.runner.updateScrollTop(je,-yo),qe.scrollTo(Math.max(-yn,qe.maxScrollX),Math.max(-yo,qe.maxScrollY),0),this.updateStickyBehavior(je,qe.y),MB.runnerController.resetHandler.updateWScrollMap(je,{scrollTop:-yo,scrollLeft:-yn})}getScroller(je){return this.iScrollMap[je]}}class bt{constructor(je){var qe=this;(0,a.A)(this,"subscribeChartsOption",Le=>(this.chartsOptionListener.add(Le),()=>{this.chartsOptionListener.delete(Le)})),(0,a.A)(this,"emitChartsOption",()=>{this.chartsOptionListener.forEach(Le=>Le())}),(0,a.A)(this,"getWStatus",function(Le,at){var ft;return at===void 0&&(at=""),at?(ft=qe.wStatusMap.get(Le))==null?void 0:ft[at]:qe.wStatusMap.get(Le)||{}}),(0,a.A)(this,"getWScrollMap",Le=>this.wScrollMap.get(Le)),(0,a.A)(this,"updateWStatusMap",(Le,at)=>{const kt={...this.wStatusMap.get(Le),...at};this.wStatusMap.set(Le,kt)}),(0,a.A)(this,"updateWScrollMap",(Le,at)=>{const kt={...this.wScrollMap.get(Le),...at};this.wScrollMap.set(Le,kt)}),(0,a.A)(this,"deleteWStatus",Le=>{Le&&this.wStatusMap.delete(Le)}),(0,a.A)(this,"deleteWScroll",Le=>{Le&&this.wScrollMap.delete(Le)}),(0,a.A)(this,"resetCurWStatus",Le=>{var at;(at=(0,ve.EW)())==null||at.resetCurWStatus(Le,this.deleteWStatus)}),(0,a.A)(this,"resetCurWScroll",Le=>{var at;const ft=(0,ve.EW)();ft==null||ft.resetCurWScroll(Le,this.deleteWScroll),(ft==null||(at=ft.sdkStore.getHotItem(Le))==null?void 0:at.hotAttr.type)===Ot.x.Canvas&&MB.runnerController.resetScreenScrollState(Le)}),(0,a.A)(this,"clearWStatusMap",()=>{this.wStatusMap.clear()}),(0,a.A)(this,"clearWScrollMap",()=>{this.wScrollMap.clear()}),(0,a.A)(this,"clear",()=>{this.clearWStatusMap(),this.clearWScrollMap()}),(0,a.A)(this,"resetRunnerState",()=>{var Le;this.clear(),MB.runnerController.resetRunnerState(),(Le=(0,ve.EW)())==null||Le.resetRunnerState()}),this.store=je,this.wStatusMap=new Map,this.wScrollMap=new Map,this.chartsOptionListener=new Set}}class Wt{constructor(je){this.store=je,this.store=je}setCurrentScreen(je){this.store.dispatch({type:"preview:current:update:state",payload:{screenMeta:je}})}reloadScreen(je){this.store.dispatch({type:"entry:runner:reload:screen",payload:{activeCid:je}})}backToPrevCanvas(je){let{callback:qe,noDuration:Le,transition:at}=je;this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{callback:qe,noDuration:Le,transition:at}})}updateScrollTop(je,qe){this.store.dispatch({type:"runner:update:scroll-top",payload:{screenMetaCid:je,scrollTop:qe}});const{isInCommentMode:Le}=this.store.getState().comment;Le&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}updateScrollLeft(je,qe){this.store.dispatch({type:"runner:update:scroll-left",payload:{screenMetaCid:je,scrollLeft:qe}});const{isInCommentMode:Le}=this.store.getState().comment;Le&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}resetScreenScrollTopMap(){this.store.dispatch({type:"runner:update:state",payload:{screenScrollTopMap:{}}})}resetScreenScrollLeftMap(){this.store.dispatch({type:"runner:update:state",payload:{screenScrollLeftMap:{}}})}clear(){this.store.dispatch({type:"entry:runner:cleanup:audio"}),this.store.dispatch({type:"runner:reset:state"}),this.store.dispatch({type:"container:comment:reset:state"}),this.store.dispatch({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}})}openCanvas(je,qe){const Le=Te(je),at=ue(je,"transitionDuration"),kt=/drawer|menu/.test(je.transition)?(0,Oe.d8)(Me(je,"menuOrDrawerOffset","number"),[0,99]):100;switch(je.interactionType){case O.O2.LinkToCanvas:{this.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:je.targetRBPageKey,canvasKey:je.targetResCanvasKey,resetTargetSubWidgetsState:je.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:je.resetTargetCanvasScrollOffset,sourceCanvas:qe==null?void 0:qe.sourceCanvas,transition:{name:je.transition,delay:Le,duration:at,offset:kt}}});break}case O.O2.LinkToSourceCanvas:this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{currentCanvasKey:qe==null?void 0:qe.sourceCanvas,toSource:!0,transition:{name:je.transition,delay:Le,duration:at,offset:kt},resetTargetSubWidgetsState:je.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:je.resetTargetCanvasScrollOffset}});break;case O.O2.SetBasketCanvas:this.store.dispatch({type:"entry:runner:activate:basket:canvas",payload:{interaction:je,basketKey:je.targetBasketKey,basketActiveCanvas:je.targetResCanvasKey,triggerItemKey:je.triggerItemKey,transition:{name:je.transition,delay:Le,duration:at,offset:100},resetTargetSubWidgetsState:je.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:je.resetTargetCanvasScrollOffset}});break}}openOverlay(je){this.store.dispatch({type:"entry:runner:open:overlay",payload:{interaction:je}})}swapOverlay(je){this.store.dispatch({type:"entry:runner:swap:overlay",payload:{interaction:je}})}closeOverlay(){this.store.dispatch({type:"entry:runner:close:overlay"})}jumpHyperLink(je){let{hyperlink:qe,openIn:Le}=je;this.store.dispatch({type:"entry:runner:open:hyperlink",payload:{hyperlink:qe,openIn:Le}})}}var wn=i(62280),uo=i(20640),In=i(95106);const Dn=["string","number","boolean"],So={string:St=>""+St,number:St=>Number(St),boolean:St=>!!St},Qt=function(St,je){je===void 0&&(je=5);const qe=10**je;return Math.round(St*qe)/qe};class Ln{constructor(){(0,a.A)(this,"listeners",[]),(0,a.A)(this,"variables",[]),(0,a.A)(this,"syncSdkStoreVariables",()=>{const je=(0,Ae.pU)();this.variables=[];const qe=je.length;je.forEach((Le,at)=>{let{key:ft,hotAttr:{name:kt,varData:en,varDataType:kn,zIndex:yn}}=Le;this.variables.push({key:ft,name:kt,varData:en,varDataType:kn,zIndex:yn,isTrashed:at>=qe})}),this.emitChange()}),(0,a.A)(this,"subscribe",je=>(this.listeners=[...this.listeners,je],()=>{this.listeners=this.listeners.filter(qe=>qe!==je)})),(0,a.A)(this,"getSnapshot",()=>this.variables),(0,a.A)(this,"getVariable",je=>{const qe=this.variables.find(Le=>Le.key===je);if(!(!qe||qe.isTrashed))return qe}),(0,a.A)(this,"updateVariable",(je,qe)=>{const Le=typeof qe;if(!Dn.includes(Le))return;const at=this.variables.findIndex(ft=>ft.key===je);if(at!==-1){const ft=this.variables[at];Le!==ft.varDataType&&(qe=So[ft.varDataType](qe)),ft.varDataType==="number"&&(qe=Qt(qe));const kt={...this.variables[at],oldVarData:this.variables[at].varData,varData:qe};this.variables[at]=kt,this.variables=this.variables.slice(),this.emitChange(kt)}}),(0,a.A)(this,"getVariableMap",()=>{const je=new Map;return this.variables.forEach(qe=>{je.set(qe.key,qe)}),je}),this.syncSdkStoreVariables()}emitChange(je){this.listeners.forEach(qe=>qe(je))}}const Mn=Ln;var Rt=i(26067);const Qe=1e3;class En{constructor(je,qe,Le){var at=this;(0,a.A)(this,"linkQueryMap",null),(0,a.A)(this,"inited",!1),(0,a.A)(this,"initedCallbackBucket",new Set),(0,a.A)(this,"runnerTreeConstructorCallbackSet",new Set),(0,a.A)(this,"timerEventCallbackSet",new Set),(0,a.A)(this,"nextCanvasKeyMap",new Map),(0,a.A)(this,"getCanChangeSTVisibility",(kt,en)=>{const kn=en.getBoundingClientRect();return kn.top>=kt.top&&kn.bottom<=kt.bottom&&kn.left>=kt.left&&kn.right<=kt.right}),(0,a.A)(this,"resetRunnerState",()=>{this.scrollHandler.resetScrollState(),this.variableStore.syncSdkStoreVariables(),this.listenerHandler.clear(),this.eventHandler.timeoutBucket.clearAll(),this.initedCallbackBucket.clear(),this.runnerTreeConstructorCallbackSet.clear(),this.timerEventCallbackSet.clear(),this.nextCanvasKeyMap.clear()}),(0,a.A)(this,"collectNextCanvasKey",(kt,en)=>this.nextCanvasKeyMap.set(en,kt)),(0,a.A)(this,"getHighestPriorityNextCanvasKey",()=>{if(this.nextCanvasKeyMap.get("mainCanvas"))return this.nextCanvasKeyMap.get("mainCanvas");if(this.nextCanvasKeyMap.get("basketCanvas"))return this.nextCanvasKeyMap.get("basketCanvas");if(this.nextCanvasKeyMap.get("overlayCanvas"))return this.nextCanvasKeyMap.get("overlayCanvas")}),(0,a.A)(this,"execRunnerTreeConstructorCallback",()=>{Array.from(this.runnerTreeConstructorCallbackSet).forEach(kt=>kt==null?void 0:kt()),this.runnerTreeConstructorCallbackSet.clear()}),(0,a.A)(this,"execTimerEventCallbackSet",function(kt){if(kt===void 0&&(kt=""),kt){const en=at.getHighestPriorityNextCanvasKey();if(en&&kt!==en)return}at.nextCanvasKeyMap.clear(),Array.from(at.timerEventCallbackSet).forEach(en=>en==null?void 0:en()),at.timerEventCallbackSet.clear()}),this.runner=new Wt(je.store),this.eventHandler=new Jt(je.store,this),this.scrollHandler=new Tn(je.store,this.runner),this.listenerHandler=new no(je.store,this.eventHandler),this.resetHandler=new bt(je.store),this.clearCallbackBucket={},this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.requestScreenCidSet=new Set,this.webpackInterface=je,this.messageBucket=qe,this.f=Le,this.isPreventEvent=!1;const{isMobile:ft}=(0,D.bF)(this.webpackInterface.store.getState());ft&&this._bindMobileGlobalEvent()}setIsPreventEvent(je){this.isPreventEvent=je}get currentCanvasKey(){return this._currentCanvasKey}set currentCanvasKey(je){this._currentCanvasKey=je}setCurrentCanvasKey(je){this._currentCanvasKey=je}get currentCanvasAsMenuOrDrawerKey(){return this._currentCanvasAsMenuOrDrawerKey}set currentCanvasAsMenuOrDrawerKey(je){this._currentCanvasAsMenuOrDrawerKey=je}setCurrentCanvasAsMenuOrDrawerKey(je){this._currentCanvasAsMenuOrDrawerKey=je}_bindMobileGlobalEvent(){window.addEventListener("message",je=>{try{if(JSON.parse(je.data).event==="back"){const{history:Le}=this.webpackInterface.store.getState().container.runner;Le.length===1&&this.messageBucket?this.messageBucket.send("exit"):this.runner.backToPrevCanvas({transition:{name:"none",duration:0,delay:0}})}}catch(qe){}},!1),window.onorientationchange&&window.addEventListener("orientationchange",()=>{this.reload()}),window.addEventListener("resize",()=>{document.activeElement.tagName!=="INPUT"&&this.reload()})}init(je,qe,Le,at,ft,kt,en,kn){let{rootProject:yn,activePageKey:yo,activeCanvasKey:Uo,basketKey:Xo,activeWidgetKey:Ia}=je;ft===void 0&&(ft=null),this.variableStore=new Mn;const ja=new URLSearchParams(location.search);let ka=yo,ga=Uo||ja.get("canvasId");const er=ja.get("selection"),Za=()=>{if(Le||kt)return(0,uo.tb)(Le&&yo?yo:we.$k);if(ft){if(ft.type==="advanced"&&ft.screen_visible_switch)return(0,uo.wb)(ft.screen_visible_list);if(ft.type!=="advanced"&&er)return(0,uo.wb)([er])}return(0,uo.tb)()},{screenTreeData:Cr,screenDataMap:Dr}=Za();let ti=!!ka,Xr=!!ga;if(ti&&(ti=!sdkStore.isTrashed(ka)&&sdkStore.getHotItem(ka)),Xr&&(Xr=!sdkStore.isTrashed(ga)&&sdkStore.getHotItem(ga)),!ti&&ft&&ft.canvas_begin){ga=ft.canvas_begin;const Di=sdkStore.getHotItem(ga);if(Di&&!sdkStore.isTrashed(ga))ka=Di.sup;else{const{activePageKey:Gr,activeCanvasKey:ms}=(0,uo.u1)(Cr);ka=Gr,ga=ms}}else if(!ti||!Xr&&!(at||kt))if(ti&&!Xr){var li;const Di=(0,Rt.Y2)(ka);ga=Di!=null&&Di.length?(li=Di[0])==null?void 0:li.key:""}else if(!ti&&Xr){const Di=sdkStore.getHotItem(ga);Di&&(ka=Di.sup)}else{const{activePageKey:Di,activeCanvasKey:Gr}=(0,uo.u1)(Cr);ka=Di,ga=Gr}const{hotAttr:ur}=sdkStore.getHotItem(ka)||{},oi={...ur,cid:ka};this.webpackInterface.store.dispatch({type:"entry:init:preview:related:data",payload:{rootProject:yn,screenMeta:oi,previewMode:qe,isPanelPreviewMode:Le,isCommunityComboPreview:at,isPreviewCombo:kt,basketKey:Xo,screenTreeData:Cr,screenDataMap:Dr,isQuickPreview:en,quickPreviewSize:kn,isPreviewAIComponent:!!Ia}}),this.webpackInterface.store.dispatch({type:"entry:init:preview:scale"});const hs=setTimeout(()=>{this.inited=!0,this.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!1}});const{activePageKey:Di,activeCanvasKey:Gr}=(0,D.mf)(this.webpackInterface.store.getState());if(this.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:Di||ka,canvasKey:Gr||ga,widgetKey:Ia}}),Array.from(this.initedCallbackBucket).forEach(Zi=>Zi==null?void 0:Zi()),this.initedCallbackBucket.clear(),this.webpackInterface.store.dispatch({type:"entry:init:preview:scale"}),this.webpackInterface.store.dispatch({type:"entry:preview:check:location-hash"}),this.messageBucket){this.messageBucket.request({type:"message:set:record",payload:{key:"preview-ready",value:!0}}),this.messageBucket.send("ready");const Zi=setTimeout(()=>{if(this.messageBucket.send("ready"),!ga){var El;(El=MB)==null||(El=El.messageBucket)==null||El.send("mobileLoadProjectError",{errMsg:I18N.dUtils.no_artboard_cannot_be_previewed,onlyToast:!0})}},2e3);this.clearCallbackBucket.redundantReady=()=>clearTimeout(Zi)}if(!ga&&!(at||kt)){var ms;(ms=MB)==null||ms.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}},Qe);this.clearCallbackBucket.init=()=>clearTimeout(hs)}didInit(){return this.inited}setupCanvasTimers(je,qe){qe===void 0&&(qe=!1),je&&this.eventHandler.setupCanvasTimers(je,!qe)}clearTimerHandler(){this.eventHandler.clearTimeout()}setupBasketTimers(je,qe){this.eventHandler.setupBasketTimers(je,qe)}initEventHandler(je,qe){this.eventHandler.init(je,qe)}initMouseEventHandler(je){return this.eventHandler.initMouseEvent(je)}prepareJump(je,qe,Le){Le===void 0&&(Le=!0),this.eventHandler.prepareJump(je,qe,Le)}closeMenu(je,qe){je===void 0&&(je=null),qe===void 0&&(qe=!1),this.runner.backToPrevCanvas({callback:je,noDuration:qe})}j(je,qe,Le){q.A.checkIfSkipInteraction(this.webpackInterface.store,je)||this.switchInteraction(je,qe,Le)}switchInteraction(je,qe,Le){switch(je.interactionType){case O.O2.LinkToCanvas:case O.O2.LinkToSourceCanvas:case O.O2.SetBasketCanvas:{this.runner.openCanvas(je,Le);break}case O.O2.OpenOverlay:{this.runner.openOverlay(je);break}case O.O2.SwapOverlay:{this.runner.swapOverlay(je);break}case O.O2.CloseOverlay:{this.runner.closeOverlay();break}case O.O2.ScrollTo:{const{transition:kt,scrollToDir:en}=je,kn=kt!=="none"?ue(je,"transitionDuration"):0,yn=(0,tt.$8)(je,this.webpackInterface);if(!document.querySelector('.scontainer [data-cid="'+yn+'"]'))break;const Uo=(0,In.Ik)(sdkStore,yn)||(0,In.ao)(sdkStore,yn)||"",Xo=this.webpackInterface.store.getState(),Ia=(0,D.KR)(Xo),ja=(0,D.Mo)(Xo),ka=sdkStore.getHotItem(Uo);if(!ka)break;const{type:ga,asOverlay:er,scroll:Za}=ka.hotAttr;if(ga==="rResCanvas"&&er)break;if(ga==="wBasket"){const Dr=Za===2||Za===3,ti=Za===2||Za===4;if(Ia&&ja===Uo){const Xr=Xo.container.runner.activeCanvasKey,[li,ur]=(0,wn.Pb)(sdkStore.getRelocateLocalBound(yn,sdkStore.locUpHotCanvasKey(yn))),oi=Dr&&en!=="horizontal"?ur+(0,Oe.d8)(Me(je,"scrollToOffsetY","number"),[-Be.rT,Be.rT]):null,hs=ti&&en!=="vertical"?li+(0,Oe.d8)(Me(je,"scrollToOffsetX","number"),[-Be.rT,Be.rT]):null;this.scrollHandler.scrollTo(Xr,hs,oi,{duration:kn})}else{var at;if(!document.querySelector('[data-cid="'+Uo+'"] > .wBasket'))break;const li=(at=Xo.container.runner.basketCanvasMap.get(Uo))==null?void 0:at.activeCanvas;if(!li)break;if(li===sdkStore.locUpHotCanvasKey(yn)){const[ur,oi]=(0,wn.Pb)(sdkStore.getRelocateLocalBound(yn,li)),hs=Dr&&en!=="horizontal"?oi+(0,Oe.d8)(Me(je,"scrollToOffsetY","number"),[-Be.rT,Be.rT]):null,Di=ti&&en!=="vertical"?ur+(0,Oe.d8)(Me(je,"scrollToOffsetX","number"),[-Be.rT,Be.rT]):null;if(Di===null&&hs===null)break;this.scrollHandler.scrollTo(li,Di,hs,{duration:kn})}}}else{var ft;const Dr=Xo.container.runner.activeCanvasKey,ti=Xo.container.runner.activePageKey;if(!Dr||!ti)break;const Xr=sdkStore.getHotItem(ti);if(!Xr)break;let li=!0,ur=!0;const{scroll:oi,deviceScroll:hs}=Xr.hotAttr;Xr.sup===we.fW?(li=oi===2||oi===3,ur=oi===2||oi===4):(li=hs==="vertical"||hs==="auto",ur=hs==="horizontal"||hs==="auto");const Di=((ft=sdkStore.getHotItem(Dr))==null||(ft=ft.hotAttr)==null?void 0:ft.stickyHeaderHeight)||0,[Gr,ms]=(0,wn.Pb)(sdkStore.getRelocateLocalBound(yn,sdkStore.locUpColdCanvasKey(yn))),Zi=li&&en!=="horizontal"?ms+(0,Oe.d8)(Me(je,"scrollToOffsetY","number"),[-Be.rT,Be.rT])-Di:null,El=ur&&en!=="vertical"?Gr+(0,Oe.d8)(Me(je,"scrollToOffsetX","number"),[-Be.rT,Be.rT]):null;this.scrollHandler.scrollTo(Dr,El,Zi,{duration:kn})}break}case O.O2.OpenExternalUrl:{this.runner.jumpHyperLink({hyperlink:Me(je,"interactionExternalUrl","string"),openIn:je.openIn});break}case O.O2.SetVisibility:{if(!document.querySelector("#app"))return;const en=(0,tt.$8)(je,this.webpackInterface),kn=(0,ve.yV)(),yn=kn==null?void 0:kn.getSnapshotItem(en);if(!yn)return;const yo=yn.hotAttr.isVisible,Uo=je.actionType;if((Uo==="setVisible"||Uo==="toggleVisibility")&&!yo){const Xo=je.setVisibleTransition==="auto"?ue(je,"setVisibleTransitionDuration"):0;kn.setWidgetVisible(en,!0,Xo),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}})}else if((Uo==="setHidden"||Uo==="toggleVisibility")&&yo){const Xo=je.setHiddenTransition==="auto"?ue(je,"setHiddenTransitionDuration"):0;kn.setWidgetVisible(en,!1,Xo),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}})}break}case O.O2.SetVariableValue:{const{targetVarKey:kt,targetVarValue:en,triggerItemKey:kn}=je;if(!kt||!en)return;const yn=this.variableStore.getVariable(kt);if(!yn)return;const yo=(0,re.LB)(en,yn.varDataType,{variables:this.variableStore.getSnapshot(),p2sdkStore:(0,ve.yV)(),p2sdkWkeyOnEval:kn});this.variableStore.updateVariable(kt,yo);break}case O.O2.ConditionalBranches:{const kt=en=>{const kn=qe.filter(yn=>en.subItaRefList.includes(yn.key));this.eventHandler.triggerInteractions(kn,qe,Le,!0)};for(const[en,kn]of je.branches.entries()){if(en===je.branches.length-1){je.branchSwitch&&kt(kn);break}if((0,re.LB)(kn.condition,"boolean",{variables:this.variableStore.getSnapshot(),p2sdkStore:(0,ve.yV)()})===!0){kt(kn);break}}break}case O.O2.Transform:{if(!document.querySelector("#app"))return;const en=(0,tt.$8)(je,this.webpackInterface),kn=(0,ve.EW)();if(!(kn==null?void 0:kn.getSnapshotItem(en)))return;const yo=je.transition!=="none"?ue(je,"transitionDuration"):0;kn.setWidgetRunnerTransform({key:en,transform:{translateX:(0,Oe.d8)(Me(je,"transformTranslateX","number"),[-Be.rT,Be.rT]),translateY:(0,Oe.d8)(Me(je,"transformTranslateY","number"),[-Be.rT,Be.rT]),scaleX:(0,Oe.d8)(Me(je,"transformScaleX","number"),[-Be.rT,Be.rT]),scaleY:(0,Oe.d8)(Me(je,"transformScaleY","number"),[-Be.rT,Be.rT]),rotateZ:(0,Oe.d8)(Me(je,"transformRotateZ","number"),[-Be.rT,Be.rT]),rotateX:(0,Oe.d8)(Me(je,"transformRotateX","number"),[-Be.rT,Be.rT]),rotateY:(0,Oe.d8)(Me(je,"transformRotateY","number"),[-Be.rT,Be.rT]),rotate3d:je.rotate3d,originX:je.transformOriginX,originY:je.transformOriginY},duration:yo,forceUpdate:!0});break}case O.O2.SetAnimation:{if(!document.querySelector("#app"))return;const en=(0,tt.$8)(je,this.webpackInterface),kn=(0,ve.EW)();if(!(kn==null?void 0:kn.getSnapshotItem(en)))return;const yo=(0,Oe.d8)(Me(je,"animationDuration","number"),[0,Be.sw]);kn.setWidgetAnimationRecords(en,{aniName:je.animationName||"",aniDuration:yo,aniCount:this.eventHandler.iterationHandler.getStringIterationCount(Me(je,"iterationCount","number")),endTime:new Date().getTime()+yo});break}case O.O2.SetInputFocus:{const kt=document.querySelector("#app");if(!kt)return;const en=(0,tt.$8)(je,this.webpackInterface),kn=sdkStore.getHotItem(en);if(!kn)return;const yn=kn.hotAttr.type;let yo;if(yn===Ot.x.WMTextInput?yo=kt.querySelector('.scontainer [data-cid="'+en+'"] input'):yn===Ot.x.WMTextArea&&(yo=kt.querySelector('.scontainer [data-cid="'+en+'"] textarea')),!yo)return;const{isFocus:Uo,isSelectContent:Xo}=je;if(Uo){if(yo.focus(),yn===Ot.x.WMTextArea){const Ia=yo.value.length||0;yo.setSelectionRange(Ia,Ia)}Xo&&yo.select()}else yo.blur();break}}}updateVariable(je,qe){const Le=this.variableStore.getVariable(je);if(!Le)return;const{varDataType:at}=Le,ft=typeof qe;if(at!==ft){var kt,en;const kn=qe;if(qe=(kt=Ae.AV[at])==null?void 0:kt.call(Ae.AV,qe),Number.isNaN(qe)||((en=Ae.AV[ft])==null?void 0:en.call(Ae.AV,qe))!==kn)return}this.variableStore.updateVariable(je,qe)}doneTransition(je,qe){(0,l.m0)()&&qe&&this.eventHandler.setupPageGesture(qe),!(!je||!sdkStore.getHotItem(je))&&(this.currentCanvasKey=qe,this.runner.setCurrentScreen({cid:je,...sdkStore.getHotItem(je).hotAttr}))}reload(){const je=q.A.getCurrentScreen(this.webpackInterface.store);je&&(this.runner.reloadScreen(je.cid),this.scrollHandler.resetScrollState())}destroyScrollBarByCid(je,qe){var Le;if(qe){var at;const ft=(at=this.scrollHandler.getScroller(je))==null||(at=at.options)==null?void 0:at.basketFromScreenPartSet;if(ft&&(ft.delete(qe),ft.size>0))return}(Le=this.scrollHandler)==null||Le.destroyScrollBarByCid(je)}renderScrollbar(je,qe){if(this.scrollHandler.renderScrollbar(je,qe),qe!=null&&qe.basketFromScreenPartSet){const Le=this.scrollHandler.getScroller(je);if(Le!=null&&Le.options){const at=new Set([...Le.options.basketFromScreenPartSet||new Set,...qe.basketFromScreenPartSet]);Le.options.basketFromScreenPartSet=at}}}resetScreenScrollState(je){this.scrollHandler.resetScreenScrollState(je)}toggleScrollBar(je){this.scrollHandler.toggleScrollBar(je)}disableScrollBar(je){this.scrollHandler.disableScrollBar(je)}resetCurrentScreenScrollState(je){this.scrollHandler.resetCurrentScreenScrollState(je)}clear(){Object.values(this.clearCallbackBucket).forEach(je=>je()),this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.linkQueryMap=null,this.scrollHandler.clear(),this.requestScreenCidSet.clear(),this.runner.clear(),this.eventHandler.clear(),this.initedCallbackBucket.clear(),this.runnerTreeConstructorCallbackSet.clear(),this.timerEventCallbackSet.clear(),this.nextCanvasKeyMap.clear()}getAllActiveKeys(){const je=this.webpackInterface.store.getState(),{activeCanvasKey:qe="",activePageKey:Le="",overlayStack:at=[],basketCanvasMap:ft=new Map}=(0,D.mf)(je),kt=(0,D.hM)(je),en=at.filter(yn=>yn.isOverlayIn).map(yn=>yn.targetOverlayKey);return{mainActiveKey:kt?Le:qe,mainCanvasKey:qe,overlayCanvasKeys:at.filter(yn=>yn.isOverlayIn).map(yn=>yn.targetOverlayKey),basketCanvasKeys:[...ft.keys()].filter(yn=>{const yo=kt?sdkStore.locUpRBPageKey(yn):sdkStore.locUpMainCanvasKey(yn);return yo===kt?Le:qe||en.includes(yo)}).map(yn=>{var yo;return(yo=ft.get(yn))==null?void 0:yo.activeCanvas})}}getWidgetStore(){return(0,ve.yV)()}}var qn=i(34567),Hn=i(72274),Yn=i(25942),oo=i(78859),To=i(61565),po=i(15515),Oo=i(53940),Qo=i(4410),ea=i(42715);const _n=St=>{St.setAttribute("data-mark","echarts-div")},Un=()=>{for(const St of document.querySelectorAll("[data-mark=echarts-div] svg"))St.style.transform="translateZ(0)";requestAnimationFrame(()=>{for(const St of document.querySelectorAll("[data-mark=echarts-div] svg"))St.style.transform=""})},cn=Oo.I,nn=St=>Number((0,po.kV)("preview_scale_"+St)),Zn=(St,je)=>(0,po.cH)("preview_scale_"+St,je),ho={"entry:init:preview:scale":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.PL)(Le),{isUIChina:ft,isForum:kt,isSquare:en}=(0,D.bF)(Le),kn=(0,D.k6)(Le),yn=(0,D.KR)(Le),yo=(0,D.hM)(Le);if(kn||yn||yo)qe({type:"entry:preview:zoom-quick-preview"});else if(ft&&at.model==="car_play")qe({type:"preview:set:scale",payload:{scale:40}});else if(kt||en)qe({type:"entry:auto-fit:preview:scale"});else{const Uo=nn(at.cid);qe(Uo?{type:"preview:set:scale",payload:{scale:Uo}}:{type:"entry:auto-fit:preview:scale"})}},"entry:auto-fit:preview:scale":St=>{let{getState:je,dispatch:qe}=St;qe({type:"entry:preview:set:shellContainer"});const Le=je(),at=(0,D._v)(Le),ft=(0,D.Ph)(Le),{isForum:kt,isSquare:en}=(0,D.bF)(Le),kn=(0,D.U4)(Le),yn=!en&&kn?(0,D.zo)(Le):0,Uo=(0,D.Pf)(Le)?0:(0,D.E1)(Le),Xo=(0,D.PL)(Le),Ia=(0,D.Ur)(Le),ja=(0,D.KR)(Le),ka=(0,D.ub)(Le),ga=(0,D.hM)(Le),er=(0,D.y3)(Le),Za=ka||ga;if((0,D.k6)(Le)||ja||ga){qe({type:"entry:preview:zoom-quick-preview"});return}if(er)return;const{width:Dr,height:ti}=at,Xr=Ia.orientation==="landscape",li={width:Xr?ti:Dr,height:Xr?Dr:ti};let ur,oi,hs;kt?ur=oi=hs=0:en?(ur=100,oi=20,hs=20):Za||ja?(ur=88,oi=20,hs=20):(ur=132,oi=20,hs=20);let Di=window.innerWidth-Uo-yn,Gr=window.innerHeight;if(ga||ja){const Pn=document.querySelector(ga?".preview-combo-modal":".preview-modal");if(Pn){const an=Pn.getBoundingClientRect();Di=an.width,Gr=an.height}}const ms=Di-(oi+hs),Zi=Gr-ur,El=Math.min(Zi/li.height,ms/li.width)*100,yc=ja?Math.min(Math.max(El,20),100):Math.min(Math.max(El,20),400);!en&&!ft&&Zn(Xo.cid,yc),qe({type:"preview:set:scale",payload:{scale:yc}}),(0,m.sI)(Le)&&qe({type:"entry:comment:update:view-container-style"})},"entry:preview:set:scale":(St,je)=>{let{dispatch:qe,getState:Le}=St,{payload:{scale:at}}=je;const ft=Le(),kt=(0,D.PL)(ft);at=Math.min(Math.max(at,20),400);const{isFullScreenMode:en}=ft.container.previewSetting;!en&&Zn(kt.cid,at),qe({type:"preview:set:scale",payload:{scale:at}}),qe({type:"preview:update:state",payload:{hasChangedScaleManually:!0}}),(0,m.sI)(ft)&&qe({type:"entry:comment:update:view-container-style"}),Un()},"entry:preview:zoom-in":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.St)(Le),ft=cn.findIndex(en=>en>at),kt=cn[ft]||cn[cn.length-1];qe({type:"entry:preview:set:scale",payload:{scale:kt}})},"entry:preview:zoom-out":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.St)(Le),ft=cn.findIndex(en=>en>=at),kt=cn[ft-1]||cn[0];qe({type:"entry:preview:set:scale",payload:{scale:kt}})},"entry:preview:zoom-out:set-offset":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.St)(Le),ft=cn.findIndex(en=>en>=at),kt=cn[ft-1]||cn[0];qe({type:"entry:preview:set:scale",payload:{scale:kt}}),qe({type:"entry:preview:zoom-out:center-position",payload:{nextScale:kt,oldScale:at}})},"entry:preview:zoom-out:center-position":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{nextScale:at,oldScale:ft}}=je;const kt=qe(),en=(0,D.PN)(kt),kn=(0,D.A3)(kt),yn=(0,To.Lc)(kt),{width:yo,height:Uo}=document.getElementById("simulator-container")?document.getElementById("simulator-container").getBoundingClientRect():{height:null,width:null},{width:Xo,height:Ia}=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),[ja,ka]=en,ga=yn?ja:0,er=yn?ka:0,Za=Math.min(Math.max(yo/(Xo*100/ft+ga*2)*100,20),400),Cr=Math.min(Math.max(Uo/(Ia*100/ft+er*2)*100,20),400),Dr=Math.min(1,Za<ft?Math.abs(ft-at)/(ft-Za):0),ti=Math.min(1,Cr<ft?Math.abs(ft-at)/(ft-Cr):0),Xr=kn.x-Dr*kn.x,li=kn.y-ti*kn.y;Le({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Xr,y:li}}})},"entry:preview:set:shellContainer":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.Ur)(Le),{activePageKey:ft,activeCanvasKey:kt}=(0,D.mf)(Le);let en=0,kn=0,yn=-1,yo=-1;const Uo=sdkStore.getHotItem(ft),Xo=Uo?Uo.hotAttr.device:at.device;if(!kt&&ft){const{w:Dr,h:ti}=(0,Qo.lY)(Uo,sdkStore,!0);if(!Number.isFinite(Dr)||!Number.isFinite(ti)){var Ia,ja;const Xr=(0,ea.MR)(Xo);en=(Xr==null?void 0:Xr.width)||(Uo==null||(Ia=Uo.hotAttr)==null?void 0:Ia.deviceW)||0,kn=(Xr==null?void 0:Xr.height)||(Uo==null||(ja=Uo.hotAttr)==null?void 0:ja.deviceH)||0}else en=Dr,kn=ti}else if(Xo==="none"&&kt){var ka;const Dr=(ka=sdkStore.getHotItem(kt))==null?void 0:ka.hotAttr;en=Dr==null?void 0:Dr.w,kn=Dr==null?void 0:Dr.h}else if(Xo==="customize")en=Uo?Uo.hotAttr.deviceW:at.deviceW,kn=Uo?Uo.hotAttr.deviceH:at.deviceH;else{var ga,er,Za,Cr;const Dr=(0,ea.MR)(Xo);en=(Dr==null?void 0:Dr.width)||(Uo==null||(ga=Uo.hotAttr)==null?void 0:ga.deviceW)||0,kn=(Dr==null?void 0:Dr.height)||(Uo==null||(er=Uo.hotAttr)==null?void 0:er.deviceH)||0,yn=Uo==null||(Za=Uo.hotAttr)==null?void 0:Za.deviceW,yo=Uo==null||(Cr=Uo.hotAttr)==null?void 0:Cr.deviceH}yn===-1&&(yn=en,yo=kn),qe({type:"preview:set:shellContainer",payload:{shellContainer:{width:en,height:kn,widthBare:yn,heightBare:yo}}})},"entry:preview:zoom-quick-preview":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const ft=qe(),{activePageKey:kt,activeCanvasKey:en,activeWidgetKey:kn}=(0,D.mf)(ft),yn=(0,D.B3)(ft),yo=(0,D.KR)(ft),Uo=(0,D.Mo)(ft),Xo=(0,D.hM)(ft),Ia=at==null?void 0:at.quickPreviewSize,ja=Ia||yn;if(!ja)return;let{width:ka,height:ga}=ja;if(yo){var er;const ur=(er=sdkStore.getHotItem(Uo))==null?void 0:er.hotAttr;if(!ur)return;ka=ur.w,ga=ur.h}else if(Xo){const ur=sdkStore.getHotItem(kt);if(!ur)return;if(kn){const oi=sdkStore.getHotItem(kn);if(oi){var Za,Cr;ka=oi==null||(Za=oi.hotAttr)==null?void 0:Za.w,ga=oi==null||(Cr=oi.hotAttr)==null?void 0:Cr.h}}else{const{hotAttr:{device:oi,deviceW:hs,deviceH:Di}}=ur,{w:Gr,h:ms}=(0,Qo.lY)(ur,sdkStore,!0);if(!Number.isFinite(Gr)||!Number.isFinite(ms)){const Zi=(0,ea.MR)(oi);ka=(Zi==null?void 0:Zi.width)||hs||0,ga=(Zi==null?void 0:Zi.height)||Di||0}else ka=Gr,ga=ms}}else{var Dr,ti;const ur=(Dr=sdkStore.getHotItem(kt))==null?void 0:Dr.hotAttr,oi=(ti=sdkStore.getHotItem(en))==null?void 0:ti.hotAttr;if(!ur||!oi)return;const{deviceW:hs,deviceH:Di,deviceOrientation:Gr,device:ms}=ur,{w:Zi,h:El}=oi;ka=Gr==="portrait"?hs:Di,ga=Gr==="portrait"?Di:hs,ms==="none"&&(ka=Zi,ga=El)}const Xr=Math.min(ja.height/ga,ja.width/ka)*100,li=Math.min(Xr,400);Le({type:"preview:set:scale",payload:{scale:li}}),Ia&&Le({type:"preview:current:update:state",payload:{quickPreviewSize:Ia}})}},Xn=function(St,je,qe){if(qe===void 0&&(qe=100),St==="auto"||St==="none")return[{display:"none"},{display:""}];const[Le,at]=ia(St,je),[ft,kt]=fa(St),[en,kn]=ln(St,je),[yn,yo]=ta(St,je,qe);return[{display:Le,...en,zIndex:ft,transform:yn},{display:at,...kn,zIndex:kt,transform:yo}]},Mo=St=>{switch(St){case"none":return"none";case"auto":return"auto";case"leftmenu":return"leftmenu-reverse";case"rightmenu":return"rightmenu-reverse";case"leftdrawer":return"leftdrawer-reverse";case"rightdrawer":return"rightdrawer-reverse";case"slideright":return"slideleft";case"slideleft":return"slideright";case"slidetop":return"slidebottom";case"slidebottom":return"slidetop";case"slideleft2":return"leftout";case"slideright2":return"rightout";case"topin":return"topout";case"popin":return"popout";case"leftout":return"slideleft2";case"rightout":return"slideright2";case"topout":return"topin";case"popout":return"popin"}},Zo=null,ia=(St,je)=>St==="none"?je<1?["","none"]:["none",""]:je<1?["",""]:[Zo.includes(St)?"":"none",""],xa=null,fa=St=>xa.includes(St)?[3,2]:[2,3],zo={boxShadow:"0 0 8px #aaa",borderLeft:"1px solid #bbb"},Ra={boxShadow:"0 0 8px #aaa",borderRight:"1px solid #bbb"},Sa={boxShadow:"0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22), 0 0 10px 1000px rgba(0, 0, 0, 0.2)"},ln=(St,je)=>{switch(St){case"leftmenu":return[zo,null];case"leftmenu-reverse":return je<1?[null,zo]:[null,null];case"rightmenu":return[Ra,null];case"rightmenu-reverse":return je<1?[null,Ra]:[null,null];case"leftdrawer":case"rightdrawer":return[null,Sa];case"leftdrawer-reverse":case"rightdrawer-reverse":return je<1?[Sa,null]:[null,null];default:return[null,null]}},ta=(St,je,qe)=>{const Le=je*qe;switch(St){case"none":return["none","none"];case"leftmenu":return["translateX("+(0+Le)+"%)","translateX("+(-100+Le)+"%)"];case"leftmenu-reverse":return["translateX("+(-100+qe-Le)+"%)","translateX("+(0+qe-Le)+"%)"];case"rightmenu":return["translateX("+(0-Le)+"%)","translateX("+(100-Le)+"%)"];case"rightmenu-reverse":return["translateX("+(100-qe+Le)+"%)","translateX("+(0-qe+Le)+"%)"];case"leftdrawer":return["none","translateX("+(-100+Le)+"%)"];case"leftdrawer-reverse":return["translateX("+(-100+qe-Le)+"%)","none"];case"rightdrawer":return["none","translateX("+(100-Le)+"%)"];case"rightdrawer-reverse":return["translateX("+(100-qe+Le)+"%)","none"];case"slideright":return["translateX("+Le+"%)","translateX("+(-100+Le)+"%)"];case"slideleft":return["translateX("+(0-Le)+"%)","translateX("+(100-Le)+"%)"];case"slidetop":return["translateY("+Le+"%)","translateY("+(-100+Le)+"%)"];case"slidebottom":return["translateY("+(0-Le)+"%)","translateY("+(100-Le)+"%)"];case"slideleft2":return["none","translateX("+(-100+Le)+"%)"];case"slideright2":return["none","translateX("+(100-Le)+"%)"];case"topin":return["none","translateY("+(-100+Le)+"%)"];case"popin":return["none","translateY("+(100-Le)+"%)"];case"leftout":return["translateX("+(0-Le)+"%)","none"];case"rightout":return["translateX("+Le+"%)","none"];case"topout":return["translateY("+(0-Le)+"%)","none"];case"popout":return["translateY("+Le+"%)","none"];default:return console.error("\u53D1\u73B0\u672A\u77E5\u52A8\u753B\u540D\u79F0: "+St),["none","none"]}};var ko=i(85131),bo=i(70466),aa=i(37342),ma=i(22835);const dr={name:"none",delay:0,duration:0,offset:100},ni={"entry:runner:reload:screen":(St,je)=>{let{dispatch:qe}=St,{payload:{activeCid:Le}}=je;qe({type:"entry:runner:activate:canvas",payload:{pageKey:Le}})},"entry:runner:reset":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const ft=qe();try{var kt;const{activePageKey:en,history:kn}=(0,D.mf)(ft);let yn=en;MB.runnerController.resetHandler.resetRunnerState(),Le({type:"entry:runner:cleanup:audio"}),Le({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),Le({type:"entry:update:preview:screenTreeData"});const yo=(kn==null||(kt=kn.slice(-1)[0])==null?void 0:kt.current)||"",Uo=yo.indexOf("/");if(Uo!==-1){yn=yo.substring(0,Uo);const Xo=yo.substring(Uo+1);Le({type:"entry:runner:activate:canvas",payload:{pageKey:yn,canvasKey:Xo,isResetAllRunner:!0}}),Le({type:"entry:runner:update:basket:status:under",payload:{key:Xo}})}else Le({type:"entry:runner:activate:canvas",payload:{pageKey:yn}}),Le({type:"entry:runner:update:basket:status:under",payload:{key:yn}});Le({type:"entry:update:preview:data",payload:{pageKey:yn}}),Le({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})}catch(en){console.error(en)}},"entry:runner:activate:basket:canvas":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{interaction:at,basketKey:ft,basketActiveCanvas:kt,transition:en,resetTargetSubWidgetsState:kn,resetTargetCanvasScrollOffset:yn}}=je;const yo=qe(),Uo=(0,D.KR)(yo),Xo=(0,D.Mo)(yo);let Ia,ja;if(Uo&&Xo){const Gr=sdkStore.getHotItem(Xo);Ia=Xo,(Gr==null?void 0:Gr.hotAttr.type)==="wBasket"?(Ia=Xo,ja=Gr.hotAttr.refRBPageKey):(Gr==null?void 0:Gr.hotAttr.type)==="rResBunch"&&(Ia=ja=Xo)}const ka=(0,In.XR)({link:at,editingBasketKey:Ia,editingPanelRefPage:ja});if(!ka)return;const{basketKey:ga,refRBPageKey:er,canvasKey:Za,refCanvasKey:Cr}=ka;if(!ga||!Za)return;const Dr=(0,ve.yV)(),ti=Dr.getHotItem(ga);if(!ti)return;const{key:Xr,sup:li,hotAttr:{refRBPageKey:ur,bunch:oi}}=ti;if(Uo&&ga===Xo){const{activeCanvasKey:Gr}=(0,D.mf)(yo),ms=q.A.getCanvasKeyByAlias(ga,Za,Gr);if(!ms)return;yn&&MB.runnerController.resetHandler.resetCurWScroll(ms),kn&&MB.runnerController.resetHandler.resetCurWStatus(ms);const Zi=oi===Ot.x.RbPage&&li==="B@ref-muban"?Xr:ur,{sub:El}=sdkStore.getHotItem(Zi);El.includes((0,ht.OO)(ms)?(0,ht.QL)(ms).pop():ms)&&(MB.runnerController.eventHandler.clearScopeActions(),Le({type:"entry:runner:activate:canvas",payload:{pageKey:Zi,canvasKey:ms,resetTargetSubWidgetsState:kn,resetTargetCanvasScrollOffset:yn,transition:en}}))}else{var hs,Di;const{basketCanvasMap:Gr}=(0,D.mf)(yo);if(!Gr.get(ga))return;const{activeCanvas:ms}=Gr.get(ga);(hs=(0,ve.EW)())==null||hs.deleteUnderWidgetAnimationRecords(ms);const Zi=q.A.getCanvasKeyByAlias(ga,kt,ms);if(yn&&MB.runnerController.resetHandler.resetCurWScroll(Zi),kn&&MB.runnerController.resetHandler.resetCurWStatus(Zi),ms===kt&&!kn||sdkStore.isTrashed(Zi))return;MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(ms),Le({type:"entry:runner:cache:media",payload:{canvasKey:ms}}),en=en||dr;const El=()=>{typeof en.callback=="function"&&en.callback();const an=qe(),{audioList:Gn,videoList:_o}=(0,D.mf)(an),Da=[];for(const Lr of Gn)Lr.keepAlive?Da.push(Lr):Lr.key.includes(ga)?q.A.isWidgetInBasketCanvas(Lr.key,Zi)?Da.push(Lr):Lr.audioObj.pause():Da.push(Lr);const pr=[];for(const Lr of _o){const Sr=document.getElementById(Lr.key);Sr&&(Lr.key.includes(ga)?q.A.isWidgetInBasketCanvas(Lr.key,Zi)?pr.push(Lr):Sr.src="":pr.push(Lr))}Le({type:"runner:update:state",payload:{audioList:Da,videoList:pr}}),MB.runnerController.listenerHandler.listenerHandleAfterload(Zi)};Zi!==ms&&ti.hotAttr.isVisible&&MB.runnerController.collectNextCanvasKey(Zi,"basketCanvas");for(const an of q.A.findAllAVUnder(Zi,"wAudio"))Le({type:"entry:runner:append:audio",payload:{audio:an}});for(const an of q.A.findAllAVUnder(Zi,"wVideo"))Le({type:"entry:runner:append:video",payload:{video:an}});const yc={...en,callback:El},Ts=new Map(Gr);Ts.set(ga,{activeCanvas:Zi,transition:yc}),MB.runnerController.eventHandler.clearScopeActions(ga),Le({type:"runner:update:state",payload:{basketCanvasMap:Ts}}),Le({type:"entry:runner:update:basket:status:under",payload:{key:Zi}});const Pn=[...Gr.keys()].filter(an=>an.startsWith("/"+ga)||an===ga).map(an=>(0,ht.OO)(an)?(0,ht.QL)(an).pop():an);Le({type:"runner:reset:basket:list:scroll",payload:{keys:Pn}}),(Di=Dr.overwriteItem)==null||Di.call(Dr,{...ti,hotAttr:{refContentKey:(0,ht.OO)(Zi)?Zi.split("/").at(-1):Zi},sub:[Zi]}),MB.runnerController.listenerHandler.updateListenerTriggers(),MB.runnerController.setupBasketTimers(ga,Zi)}},"entry:runner:open:hyperlink":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{hyperlink:at,openIn:ft}}=je;const kt=qe(),{isMobile:en}=(0,D.bF)(kt),kn=(0,l.vq)();let yn,yo;try{const Xo=new URL(at);yn=Xo.href,yo=Xo.hostname.split(".").slice(-2).join(".")}catch(Xo){yn="https://"+at,yo=""}const Uo=()=>{try{switch(ft){case"inPage":(0,aa.JW)(yn,"_self");break;case"newTab":window.ReactNativeWebView?MB.messageBucket.send("openLinkByBrowser",{link:at}):(0,aa.JW)(yn,"_blank","noreferrer");break}}catch(Xo){throw MB.notice({text:I18N.SettingPanel.invalid_url_notice,type:"error"}),new Error("[NO SENTRY]: Invalid hyperlink setting")}};["wondershare.com","modao.cc"].includes(yo)?kn&&ft==="newTab"?Le({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:at,isMobile:en,displayWeChatNewTabInternalUrlTip:!0,confirmText:I18N.Common.confirm,onConfirm:Uo}}}):Uo():Le({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:at,isMobile:en,displayWeChatNewTabExternalUrlTip:kn&&ft==="newTab",confirmText:I18N.SettingPanel.continue,onConfirm:Uo}}})},"entry:runner:activate:canvas":(St,je)=>{var qe;let{getState:Le,dispatch:at}=St,{payload:{pageKey:ft,canvasKey:kt,widgetKey:en,transition:kn,resetTargetSubWidgetsState:yn=!1,resetTargetCanvasScrollOffset:yo=!1,saveHistory:Uo=!0,forceInit:Xo=!1,keepScale:Ia=!0,keepOverlayStack:ja=!1,sourceCanvas:ka,isResetAllRunner:ga=!1}}=je;const er=(0,bo.F)();if(er){at({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:er}});return}at({type:"entry:comment:clear"});const Za=Le(),{activeCanvasKey:Cr,history:Dr}=(0,D.mf)(Za);if(Cr&&Cr===kt&&!ga){ja||at({type:"entry:runner:reset:overlay:stack"});return}if(!ft||sdkStore.isTrashed(ft)||!MB.runnerController)return;const ti=(0,D.KR)(Za),Xr=(0,D.Mo)(Za),li=(0,D.hM)(Za),ur=(0,D.UB)(Za),oi=(0,D.ub)(Za),hs=(0,D.k6)(Za);if(!(Xo||(0,tt.pE)({isPanelPreviewMode:ti,basketKey:Xr,canvasKey:kt,sharing:ur})))return;kn=kn||dr,/drawer|menu/.test(kn.name)?(MB.runnerController.setCurrentCanvasKey(Cr),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(kt)):(MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null));const Gr=q.A.getCanvasKeyByAlias(ft,kt,Cr)||(0,ko.XV)(ft);if(ga||(MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(Cr),at({type:"entry:runner:cache:media",payload:{canvasKey:Cr}})),yo)MB.runnerController.resetHandler.resetCurWScroll(Gr);else{const{screenScrollTopMap:_o,screenScrollLeftMap:Da}=(0,D.mf)(Za),pr=_o[Gr]||0,Lr=Da[Gr]||0;MB.runnerController.runner.updateScrollTop(Gr,pr),MB.runnerController.runner.updateScrollLeft(Gr,Lr)}yn&&MB.runnerController.resetHandler.resetCurWStatus(Gr);const Zi={...kn,callback:()=>{typeof kn.callback=="function"&&kn.callback(),at({type:"entry:media:update",payload:{canvasKey:Gr}}),MB.runnerController.listenerHandler.listenerHandleAfterload(Gr,ga)}},El=ka?Dr.find(_o=>{var Da;return(Da=_o.current)==null?void 0:Da.endsWith(ka)}):null,yc=Uo?[(0,tt.NG)(ft,Gr,El),...Dr]:Dr;MB.runnerController.collectNextCanvasKey(Gr,"mainCanvas"),MB.runnerController.destroyScrollBarByCid(Cr);const Ts=sdkStore.getHotItem(ft);Ts!=null&&Ts.hotAttr&&at({type:"preview:current:update:state",payload:{screenMeta:{cid:ft,...Ts.hotAttr}}}),at({type:"entry:update:preview:data"}),at(li||oi?{type:"entry:runner:update:basket:status:under",payload:{key:ft}}:{type:"entry:runner:update:basket:status:under",payload:{key:Gr}}),(qe=(0,ve.EW)())==null||qe.clearWidgetAnimationRecords(),MB.runnerController.eventHandler.clearTimeout(),MB.runnerController.eventHandler.iterationHandler.clear(),at({type:"entry:runner:reset:overlay:stack"}),at({type:"runner:update:state",payload:{transition:Zi,activePageKey:ft,activeCanvasKey:Gr,activeWidgetKey:en,history:yc}});const Pn=ti||li;if((0,tt.AT)(ft,Gr,Pn||hs),Ia&&at({type:"entry:auto-fit:preview:scale"}),at({type:"runner:reset:basket:scroll"}),(0,ma.fl)(ft),setTimeout(()=>{(0,ma.cL)(Gr)},50),!Gr&&!(oi||Pn)){var an,Gn;(an=MB)!=null&&an.notice&&((Gn=MB)==null||Gn.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"}))}(hs||ti||li)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:ft,activeCanvasKey:Gr,resetTargetSubWidgetsState:yn,resetTargetCanvasScrollOffset:yo}),MB.runnerController.setupCanvasTimers(li?ft:Gr)},"entry:runner:back-to-prev-canvas":(St,je)=>{var qe,Le,at,ft;let{getState:kt,dispatch:en}=St,{payload:kn={}}=je;const yn=(0,bo.F)();if(yn){en({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:yn}});return}en({type:"entry:comment:clear"});const yo=kt(),{activeCanvasKey:Uo,history:Xo,transition:{name:Ia,duration:ja,offset:ka}}=(0,D.mf)(yo),ga=(0,D.KR)(yo),er=(0,D.Mo)(yo),Za=(0,D.hM)(yo),Cr=(0,D.k6)(yo);if(Xo.length===1)return;let Dr;const ti=kn.currentCanvasKey||(0,tt.Lf)(Xo[0])[1];if(!ti)return;const Xr=(0,ve.yV)(),li=kn.toSource?(qe=Xo.find(Pn=>(0,tt.Lf)(Pn)[1]===ti))==null?void 0:qe.from:Xo[1],[ur,oi]=(0,tt.Lf)(li);if(!oi||Xr.isTrashed(oi))return;const hs=(Le=Xr.getHotItem(ti))==null?void 0:Le.hotAttr,Di=(at=Xr.getHotItem(oi))==null?void 0:at.hotAttr;MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null),hs&&hs.orientation!==(Di==null?void 0:Di.orientation)?Dr=dr:kn.transition?Dr=kn.transition:Dr={name:Mo(Ia),delay:0,duration:kn.noDuration?0:ja,offset:ka,callback:kn.callback};const ms={...Dr,callback:()=>{typeof Dr.callback=="function"&&Dr.callback(),en({type:"entry:media:update",payload:{canvasKey:oi}}),MB.runnerController.listenerHandler.listenerHandleAfterload(oi)}},Zi=(0,D.UB)(yo);if(!(0,tt.pE)({isPanelPreviewMode:ga,basketKey:er,canvasKey:oi,sharing:Zi}))return;(ft=(0,ve.EW)())==null||ft.deleteUnderWidgetAnimationRecords(Uo),MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(Uo),en({type:"entry:runner:cache:media",payload:{canvasKey:Uo}}),kn.resetTargetCanvasScrollOffset&&MB.runnerController.resetHandler.resetCurWScroll(oi),kn.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(oi);const yc=Xo.slice(1);MB.runnerController.destroyScrollBarByCid(Uo),MB.runnerController.eventHandler.clearTimeout(),MB.runnerController.eventHandler.iterationHandler.clear(),en({type:"entry:runner:reset:overlay:stack"});const Ts=sdkStore.getHotItem(ur);Ts!=null&&Ts.hotAttr&&en({type:"preview:current:update:state",payload:{screenMeta:{cid:ur,...Ts.hotAttr}}}),en({type:"runner:update:state",payload:{transition:ms,history:yc,activePageKey:ur,activeCanvasKey:oi}}),en({type:"entry:sync-runner:set-screen",payload:{cid:ur}}),(0,tt.AT)(ur,oi,ga||Za),en({type:"entry:update:preview:data"}),en({type:"entry:runner:update:basket:status:under",payload:{key:oi}}),en({type:"entry:auto-fit:preview:scale"}),en({type:"runner:reset:basket:scroll"}),(0,ma.cL)(oi),(Cr||ga||Za)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:ur,activeCanvasKey:oi,resetTargetSubWidgetsState:kn.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:kn.resetTargetCanvasScrollOffset}),MB.runnerController.setupCanvasTimers(oi)},"entry:runner:update:basket:status:under":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{key:at}}=je;const ft=qe(),{basketCanvasMap:kt}=(0,D.mf)(ft),en=q.A.findAllBasketsUnder(at),kn=new Map(kt);for(const yn of en)if(yn.sub.length!==0){kn.set(yn.key,{activeCanvas:yn.sub[0],transition:dr});for(const yo of q.A.findAllAVUnder(yn.sub[0],"wAudio"))Le({type:"entry:runner:append:audio",payload:{audio:yo}});for(const yo of q.A.findAllAVUnder(yn.sub[0],"wVideo"))Le({type:"entry:runner:append:video",payload:{video:yo}})}Le({type:"runner:update:state",payload:{basketCanvasMap:kn}})},"entry:runner:update:basketCanvasMap:by:basketKey":(St,je)=>{var qe,Le;let{getState:at,dispatch:ft}=St,{payload:{key:kt}}=je;const en=at(),{basketCanvasMap:kn}=(0,D.mf)(en),yn=new Map(kn);if(!kt||sdkStore.isTrashed(kt))return;const yo=sdkStore.getHotItem(kt);!yo||(yo==null||(qe=yo.hotAttr)==null?void 0:qe.type)!==Ot.x.WBasket||!(yo!=null&&(Le=yo.sub)!=null&&Le.length)||(yn.set(kt,{activeCanvas:yo==null?void 0:yo.sub[0],transition:dr}),ft({type:"runner:update:state",payload:{basketCanvasMap:yn}}))},"entry:runner:open:overlay":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{interaction:at}}=je;const ft=qe();if((0,D.KR)(ft))return;const en=(0,D.UB)(ft),{targetRBPageKey:kn,targetOverlayKey:yn,transition:yo,transitionDuration:Uo,transitionDelay:Xo,addBackdrop:Ia,backdropColor:ja,closeWhenClickingOutside:ka,overlayRelativePos:ga}=at;if(!q.A.canOverlayBeOpened(yn,en))return;at.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(yn);const{activePageKey:er,activeCanvasKey:Za,overlayStack:Cr,basketCanvasMap:Dr}=(0,D.mf)(ft),ti={name:yo==="auto"?"fade":yo,duration:parseFloat(Uo||"0")*1e3,delay:parseFloat(Xo||"0")*1e3,called:!1,callback:()=>{ti.called||(ti.called=!0,typeof yo.callback=="function"&&yo.callback(),q.A.isOpeningUniqueOverlay(Cr,yn)&&Le({type:"entry:media:update",payload:{canvasKey:yn}}))}};MB.runnerController.collectNextCanvasKey(yn,"overlayCanvas");const Xr=[...Cr,{idx:Cr.length+1,itaKey:at.key,triggerItemKey:at.triggerItemKey,tick:0,isOverlayIn:!0,targetRBPageKey:kn,targetOverlayKey:yn,transition:ti,addBackdrop:Ia,backdropColor:ja,backdropFilterBlurRadius:(0,Oe.d8)(Me(at,"backdropFilterBlurRadius","number"),[0,1e4]),overlayRelativePos:ga,...q.A.getOverlayRelativePosXY(er,Za,yn,ga,(0,Oe.d8)(Me(at,"overlayRelativePosX","number"),[-Be.rT,Be.rT]),(0,Oe.d8)(Me(at,"overlayRelativePosY","number"),[-Be.rT,Be.rT])),closeWhenClickingOutside:ka}];q.A.isOpeningUniqueOverlay(Cr,yn)&&Le({type:"entry:runner:update:basket:status:under",payload:{key:yn}}),Le({type:"runner:update:state",payload:{overlayStack:Xr}}),MB.runnerController.setupCanvasTimers(yn,!0)},"entry:runner:swap:overlay":(St,je)=>{var qe;let{getState:Le,dispatch:at}=St,{payload:{interaction:ft}}=je;const kt=Le();if((0,D.KR)(kt))return;const kn=(0,D.UB)(kt),{targetOverlayKey:yn,transition:yo,transitionDuration:Uo,transitionDelay:Xo}=ft;if(!q.A.canOverlayBeOpened(yn,kn))return;const{activePageKey:Ia,activeCanvasKey:ja,overlayStack:ka,basketCanvasMap:ga}=(0,D.mf)(kt),er=ka[ka.length-1];if(!er)return;const{overlayRelativePos:Za,overlayRelativePosX:Cr,overlayRelativePosY:Dr}=er;(qe=(0,ve.EW)())==null||qe.deleteUnderWidgetAnimationRecords(er.targetOverlayKey),ft.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(yn),MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(er.targetOverlayKey);const ti=()=>{typeof yo.callback=="function"&&yo.callback();const li=er.targetOverlayKey;if(q.A.isClosingUniqueOverlay(ka,li)){at({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:li}}),at({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:li}});const ur=Array.from(ga.keys()).filter(oi=>sdkStore.locUpColdCanvasKey(oi)===li);at({type:"runner:reset:basket:list:scroll",payload:{keys:ur}}),at({type:"entry:media:update",payload:{canvasKey:yn}})}MB.runnerController.listenerHandler.listenerHandleAfterload(yn)};er.targetOverlayKey!==yn&&MB.runnerController.collectNextCanvasKey(yn,"overlayCanvas");const Xr=ka.slice(0,-1).concat([{...er,itaKey:ft.key,triggerItemKey:ft.triggerItemKey,tick:yo!=="auto"?er.tick+1:er.tick,targetRBPageKey:ft.targetRBPageKey,targetOverlayKey:ft.targetOverlayKey,transition:{name:yo,duration:parseFloat(Uo)*1e3,delay:parseFloat(Xo)*1e3,callback:ti},overlayRelativePos:Za,...q.A.getOverlayRelativePosXY(Ia,ja,yn,Za,Cr,Dr)}]);q.A.isOpeningUniqueOverlay(ka,yn)&&at({type:"entry:runner:update:basket:status:under",payload:{key:yn}}),er.targetOverlayKey&&MB.runnerController.eventHandler.clearScopeActions(er.targetOverlayKey),at({type:"runner:update:state",payload:{overlayStack:Xr}}),MB.runnerController.setupCanvasTimers(yn,!0)},"entry:runner:close:overlay":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),{overlayStack:at}=(0,D.mf)(Le),ft=at.findLastIndex(yn=>yn.isOverlayIn),kt=at.splice(ft,1)[0];if(!kt)return;const en=at.concat({...kt,isOverlayIn:!1});if(qe({type:"runner:update:state",payload:{overlayStack:en}}),MB.runnerController.resetHandler.emitChartsOption(),kt.targetOverlayKey){var kn;MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(kt.targetOverlayKey),MB.runnerController.eventHandler.clearScopeActions(kt.targetOverlayKey),(kn=(0,ve.EW)())==null||kn.deleteUnderWidgetAnimationRecords(kt.targetOverlayKey)}setTimeout(()=>{const yn=je(),yo=kt.targetOverlayKey,{overlayStack:Uo,basketCanvasMap:Xo}=(0,D.mf)(yn);if(q.A.isClosingUniqueOverlay(Uo,yo)){qe({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:yo}}),qe({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:yo}});const Ia=Array.from(Xo.keys()).filter(ja=>sdkStore.locUpColdCanvasKey(ja)===yo);qe({type:"runner:reset:basket:list:scroll",payload:{keys:Ia}})}if(Uo.length){const Ia=Uo.findLastIndex(ja=>ja.itaKey===kt.itaKey);if(Ia!==-1){const ja=Uo.slice(0);ja.splice(Ia,1),qe({type:"runner:update:state",payload:{overlayStack:ja}})}}},kt.transition.duration)},"entry:runner:reset:overlay:stack":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{targetOverlayKey:at}={targetOverlayKey:""}}=je;const ft=qe(),{overlayStack:kt,basketCanvasMap:en}=(0,D.mf)(ft);let kn=kt;if(at){const yn=kt.findIndex(yo=>yo.targetOverlayKey===at);if(yn!==-1){kn=kt.slice(0,yn);const yo=kn.map(Ia=>Ia.targetOverlayKey),Uo=kt.slice(yn,kt.length).map(Ia=>Ia.targetOverlayKey);Uo.forEach(Ia=>{Le({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Ia}}),Le({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Ia}})});const Xo=Array.from(en.keys()).filter(Ia=>{const ja=sdkStore.locUpColdCanvasKey(Ia)||"";return Uo.includes(ja)&&!yo.includes(ja)});Le({type:"runner:reset:basket:list:scroll",payload:{keys:Xo}})}}else{kn=[];const yn=kt.map(Uo=>Uo.targetOverlayKey);yn.forEach(Uo=>{Le({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Uo}}),Le({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Uo}})});const yo=Array.from(en.keys()).filter(Uo=>yn.includes(sdkStore.locUpColdCanvasKey(Uo)));Le({type:"runner:reset:basket:list:scroll",payload:{keys:yo}})}Le({type:"runner:update:state",payload:{overlayStack:kn}})},"entry:runner:update:overlay:stack":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{keyItemUpdated:at}}=je;const ft=qe(),{overlayStack:kt,activePageKey:en,activeCanvasKey:kn}=(0,D.mf)(ft),yn=kt.map(yo=>{const{itaKey:Uo,triggerItemKey:Xo,targetOverlayKey:Ia}=yo,ja=sdkStore.getHotItem(at);if(!ja)return yo;if(Xo===at||ja.hotAttr.type==="wBasket"&&ja.hotAttr.basket==="bMuban"&&(0,ht.OO)(Xo)&&(0,ht.QL)(Xo).some(ka=>ka===at)){const ka=sdkStore.getHotItem(Xo);if(!ka||!("interactions"in ka.hotAttr))return yo;const ga=ka.hotAttr.interactions.find(er=>er.key===Uo);return!ga||ga.interactionType!==O.O2.OpenOverlay?yo:{...yo,addBackdrop:ga.addBackdrop,backdropColor:ga.backdropColor,backdropFilterBlurRadius:ga.backdropFilterBlurRadius,overlayRelativePos:ga.overlayRelativePos,...q.A.getOverlayRelativePosXY(en,kn,Ia,ga.overlayRelativePos,ga.overlayRelativePosX,ga.overlayRelativePosY),closeWhenClickingOutside:ga.closeWhenClickingOutside}}return yo});Le({type:"runner:update:state",payload:{overlayStack:yn}})},"entry:runner:re:pos:overlay":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{targetOverlayKey:at}={targetOverlayKey:""}}=je;const ft=qe(),{overlayStack:kt,activePageKey:en,activeCanvasKey:kn}=(0,D.mf)(ft),yn=kt.map(yo=>{if(at===""||yo.targetOverlayKey===at){const{targetOverlayKey:Uo,overlayRelativePos:Xo,overlayRelativePosX:Ia,overlayRelativePosY:ja}=yo;return{...yo,...q.A.getOverlayRelativePosXY(en,kn,Uo,Xo,Ia,ja)}}return yo});Le({type:"runner:update:state",payload:{overlayStack:yn}})},"entry:runner:update:basket:status:in:overlay":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),{overlayStack:at}=(0,D.mf)(Le);at.forEach(ft=>{const{targetOverlayKey:kt}=ft;qe({type:"entry:runner:update:basket:status:under",payload:{key:kt}})})}};var Ir=i(18183);const $a=St=>/^\/app\/design\//.test(St)||/^\/mb-workspace\//.test(St)||St.startsWith((0,Ir.Dw)("design/"));var Va=i(34860);const Ha="preview-is-stickyshow",or="preview-is-highlight",gi="preview-is-statePanel",Qr="preview-is-shell-type",Qi=St=>"preview-simulator-type-"+St,rs=(St,je,qe)=>{const{isSquare:Le,isMobile:at,isEmbedV1:ft,isEmbedV2:kt,isHTMLZip:en}=je;if(Le)return{simulatorType:St.device==="web"||St.category==="combo_group"?"long_page":"device",isStickyShow:!1,isStickyAvailable:!0,isHighlight:!0,isShowOutsideArtboardNav:!1};const kn=(0,po.Yt)(Ha,!0,po.qW.Boolean),yn=(0,po.Yt)(or,!0,po.qW.Boolean);if(at||ft){const Xo=qe?qe.highlight:!0;return{simulatorType:"device",isStickyShow:kn,isHighlight:Xo===void 0?!0:Xo,isShowOutsideArtboardNav:!1}}if(kt)return{simulatorType:(qe==null?void 0:qe.simulator_type)||"device",isStickyShow:qe==null?void 0:qe.sticky,isStickyAvailable:qe==null?void 0:qe.view_sticky,isHighlight:!0,isShowOutsideArtboardNav:qe==null?void 0:qe.view_prd};if($a(location.pathname)||en)return{simulatorType:(0,po.Yt)(Qi(St.cid),"device",po.qW.String),isStickyShow:kn,isHighlight:yn,isShowOutsideArtboardNav:en?qe==null?void 0:qe.view_prd:!0,isStickyAvailable:!0};if((0,Va.oK)()){const{simulator_type:Xo,sticky:Ia,from:ja}=Object.fromEntries(new URLSearchParams(location.search).entries()),ka=Ia===""?!0:(0,po.Yt)(Ha,!1,po.qW.Boolean),ga=ja?qe==null?void 0:qe.highlight:yn,er=MB.canEditByCurrentUser||(qe==null?void 0:qe.view_prd);return Xo?{simulatorType:!er&&Xo==="outside_artboard"?"device":Xo,isStickyShow:ka,isHighlight:ga,isShowOutsideArtboardNav:er,isStickyAvailable:!0}:{simulatorType:(qe==null?void 0:qe.simulator_type)||"device",isStickyShow:qe==null?void 0:qe.sticky,isStickyAvailable:MB.canEditByCurrentUser||(qe==null?void 0:qe.view_sticky),isHighlight:ga,isShowOutsideArtboardNav:er}}else return{simulatorType:St.device==="web"?"long_page":"device",isStickyShow:!1,isHighlight:!0,isStickyAvailable:!0,isShowOutsideArtboardNav:!1}};var Li=i(14861),ns=i(93413);const Es={"entry:init:preview-setting":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.PL)(Le),ft=(0,D.bF)(Le),kt=(0,D.UB)(Le),en=(0,D.Ur)(Le),{simulatorType:kn,isStickyShow:yn,isHighlight:yo,isStickyAvailable:Uo,isShowOutsideArtboardNav:Xo}=rs(at,ft,kt),{isSquare:Ia}=ft,ja=Ia?!1:(0,po.Yt)("is_minimized",!1,po.qW.Boolean),ka=!Li.CZ.includes(en.device),ga=(0,po.Yt)(Qr+"-"+at.cid,ka,po.qW.Boolean),er={simulatorType:kn,isStickyShow:yn,isShowOutsideArtboardNav:Xo,isStickyAvailable:Uo,isStatePanelShow:(0,po.Yt)(gi,!1,po.qW.Boolean),isHighlight:yo,isMinimized:ja,isShowShell:ga};qe({type:"reducer:preview-toolbar:update",payload:er})},"entry:preview-setting:update:is-highlight":(St,je)=>{let{dispatch:qe}=St,{payload:Le}=je;const{isHighlight:at}=Le;(0,po.a0)(or,!!at,po.qW.Boolean),qe({type:"reducer:preview-toolbar:update",payload:{isHighlight:at}})},"entry:preview-setting:update:show:shell":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const{isShowShell:ft}=at,kt=qe(),en=(0,D.PL)(kt);(0,po.a0)(Qr+"-"+en.cid,ft,po.qW.Boolean),Le({type:"reducer:preview-toolbar:update",payload:{isShowShell:ft}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:simulatorType":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const{simulatorType:ft}=at,kt=qe(),en=(0,D.Ur)(kt),kn=(0,D.PL)(kt);(0,po.a0)(Qi(kn.cid),ft,po.qW.String),MB.runnerController.resetCurrentScreenScrollState(en.cid),Le({type:"reducer:preview-toolbar:update",payload:{simulatorType:ft}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:is-sticky-show":(St,je)=>{let{dispatch:qe}=St,{payload:Le}=je;const{isStickyShow:at}=Le;(0,po.a0)(Ha,at,po.qW.Boolean),qe({type:"reducer:preview-toolbar:update",payload:{isStickyShow:at}})},"entry:preview-setting:update:is-statePanel-show":(St,je)=>{let{dispatch:qe}=St,{payload:Le}=je;const{isStatePanelShow:at}=Le;(0,po.a0)(gi,at,po.qW.Boolean),qe({type:"reducer:preview-toolbar:update",payload:{isStatePanelShow:at}})},"entry:preview-setting:restore:leftrightpane":St=>{let{dispatch:je}=St;const qe=(0,po.Yt)("is_minimized",!1,po.qW.Boolean),Le=(0,po.Yt)("is_show_rightpane",!0,po.qW.Boolean);je({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:qe}}),je({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:Le}})},"entry:preview-setting:toggle:isMinimized":(St,je)=>{var qe,Le,at;let{getState:ft,dispatch:kt}=St,{payload:en}=je;const kn=ft(),yn=(0,D.Pf)(kn),yo=(0,D.U4)(kn),Uo=(0,D.Ph)(kn),Xo=(0,D.bF)(kn),Ia=(qe=en==null?void 0:en.isMinimized)!=null?qe:!yn;kt({type:"reducer:preview-toolbar:update",payload:{isMinimized:Ia}}),((Le=en==null?void 0:en.isMemorize)!=null?Le:!0)&&!Uo&&(0,po.a0)("is_minimized",Ia,po.qW.Boolean),Ia?yo||kt({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}):kt({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}});const{isSquare:ka,isEmbedV2:ga,isHTMLZip:er}=Xo;if(!(ka||ga||er)&&!((at=MB)!=null&&(at=at.commonGuideHelper)!=null&&at.checkGuideHasShown(ns.c.GUIDE_PREVIEW_VIEW_BTN))){var Za;(Za=MB)==null||(Za=Za.commonGuideHelper)==null||Za.tryToShowGuide(ns.c.GUIDE_PREVIEW_VIEW_BTN)}},"entry:preview-setting:toggle:rightPane":(St,je)=>{var qe,Le;let{getState:at,dispatch:ft}=St,{payload:kt}=je;const en=at(),kn=(0,D.U4)(en),yn=(0,D.Pf)(en),yo=(0,D.Ph)(en),Uo=(qe=kt==null?void 0:kt.isShowRightPane)!=null?qe:!kn;ft({type:"reducer:preview-toolbar:update",payload:{isShowRightPane:Uo}}),((Le=kt==null?void 0:kt.isMemorize)!=null?Le:!0)&&!yo&&(0,po.a0)("is_show_rightpane",Uo,po.qW.Boolean),Uo?ft({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}):yn&&ft({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}};var ys=i(55135);const sr=(St,je,qe,Le,at,ft)=>{let kt;const en=qe?!0:at;if(St.hostname==="youtu.be")kt="https://www.youtube.com/embed/"+St.pathname.replace("/","")+"?autoplay="+(qe?1:0)+"&loop="+(Le?1:0)+"&controls="+(ft?0:1)+"&mute="+(en?1:0);else if(St.hostname==="www.youtube.com")kt="https://www.youtube.com/embed/"+St.searchParams.get("v")+"?autoplay="+(qe?1:0)+"&loop="+(Le?1:0)+"&controls="+(ft?0:1)+"&mute="+(en?1:0);else if(St.hostname==="v.qq.com")kt="https://v.qq.com/txp/iframe/player.html?vid="+St.pathname.split("/").slice(-1).join().replace(".html","")+"&autoplay="+qe+(en?"&volume=0":"");else if(St.hostname==="vimeo.com")kt="https://player.vimeo.com/video/"+St.href.split("/").slice(-1).join()+"?autoplay="+(qe?1:0)+"&loop="+(Le?1:0)+"&controls="+(ft?0:1)+"&mute="+(en?1:0);else if(St.hostname==="www.bilibili.com")kt="https://player.bilibili.com/player.html?bvid="+St.pathname.split("/")[2]+"&autoplay="+(qe?1:0)+"&t="+(qe?.1:0)+"}";else if(St.hostname==="v.youku.com"){var kn;kt="https://player.youku.com/embed/"+((kn=St.pathname.split("/")[2])==null?void 0:kn.replace("id_","").replace(".html",""))}return{iframeSrc:kt,iframeHtml:"<iframe id="+je+" src="+kt+' style="border: unset" type="text/html" width="100%" height="100%" allow="autoplay" allowfullscreen></iframe>'}},mi={"entry:media:update":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{canvasKey:at}}=je;const ft=qe(),kt=(0,D.KR)(ft),{activeCanvasKey:en,audioList:kn,videoList:yn,overlayStack:yo}=(0,D.mf)(ft),Uo=[];for(const ka of kn){var Xo;const ga=(Xo=sdkStore.getHotItem(ka.coldCanvasKeyToAudio||""))==null?void 0:Xo.hotAttr.asOverlay;ka.keepAlive||(kt?q.A.isWidgetInBasketCanvas(ka.key,en):ga?yo.some(er=>ka.coldCanvasKeyToAudio===er.targetOverlayKey):ka.coldCanvasKeyToAudio===en)?Uo.push(ka):ka.audioObj.pause()}const Ia=[];for(const ka of yn){const ga=document.getElementById(ka.key);if(ga){var ja;const er=(ja=sdkStore.getHotItem(ka.coldCanvasKeyToVideo||""))==null?void 0:ja.hotAttr.asOverlay;(kt?q.A.isWidgetInBasketCanvas(ka.key,en):er?yo.some(Za=>ka.coldCanvasKeyToVideo===Za.targetOverlayKey):ka.coldCanvasKeyToVideo===en)?Ia.push(ka):ga.src=""}}Le({type:"runner:update:state",payload:{audioList:Uo,videoList:Ia}});for(const ka of q.A.findAllAVUnder(at,"wAudio"))Le({type:"entry:runner:append:audio",payload:{audio:ka}});for(const ka of q.A.findAllAVUnder(at,"wVideo"))Le({type:"entry:runner:append:video",payload:{video:ka}})},"entry:runner:append:audio":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{audio:at}}=je;const ft=(0,D.mf)(qe()),{audioList:kt}=ft;if(kt.find(er=>{let{key:Za}=er;return at.key===Za}))return;const{key:en,hotAttr:{audio:{isAutoplay:kn,isLoop:yn,isKeepAlive:yo,audioSrc:Uo}}}=at,Xo=new Audio(Uo),{audioPaused:Ia,audioCurrentTime:ja}=MB.runnerController.resetHandler.getWStatus(en);ja!==void 0&&(Xo.currentTime=ja),Xo.preload="metadata",Xo.autoplay=kn,Xo.loop=yn;const ka=Ia===void 0?kn:!Ia;ka?Xo.play().catch(()=>{}):Xo.pause();const ga={key:en,currentTime:ja||0,duration:0,audioState:ka?"play":"pause",audioObj:Xo,keepAlive:yo,previewAudioLoaded:!1,coldCanvasKeyToAudio:rootSdk.sdkStore.locUpColdCanvasKey(en),hotCanvasKeyToAudio:rootSdk.sdkStore.locUpHotCanvasKey(en)};if((0,l.vq)()){const er=()=>{Xo.play().then(()=>{ka||Xo.pause()}).catch(Cr=>{console.log("\u5FAE\u4FE1\u73AF\u5883\u97F3\u9891\u64AD\u653E\u5931\u8D25:",Cr)})},Za=()=>{WeixinJSBridge.invoke("getNetworkType",{},()=>{er()})};typeof WeixinJSBridge<"u"?Za():document.addEventListener("WeixinJSBridgeReady",Za,!1)}Xo.onloadedmetadata=er=>{Le({type:"entry:runner:update:audio",payload:{key:en,duration:er.target.duration}}),Le({type:"entry:runner:update:audio",payload:{key:en,previewAudioLoaded:!0}})},Xo.ontimeupdate=er=>{Le({type:"entry:runner:update:audio",payload:{key:en,currentTime:er.target.currentTime}})},Xo.onplay=()=>{Le({type:"entry:runner:update:audio",payload:{key:en,audioState:"play"}})},Xo.onpause=()=>{Le({type:"entry:runner:update:audio",payload:{key:en,audioState:"pause"}})},Le({type:"runner:update:state",payload:{audioList:[...kt,ga]}})},"entry:runner:cleanup:audio":St=>{let{getState:je}=St;const qe=(0,D.mf)(je()),{audioList:Le}=qe;Le.forEach(at=>{at.audioObj.src=null})},"entry:runner:cleanup:audio:in:overlay":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{overlayKey:at}}=je;const ft=(0,D.mf)(qe()),{audioList:kt}=ft,en=kt.filter(kn=>!kn.keepAlive&&kn.coldCanvasKeyToAudio===at?(MB.runnerController.resetHandler.updateWStatusMap(kn.key,{audioPaused:kn.audioObj.paused,audioCurrentTime:kn.audioObj.currentTime}),kn.audioObj.src=null,!1):!0);Le({type:"runner:update:state",payload:{audioList:en}})},"entry:runner:cleanup:video:in:overlay":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{overlayKey:at}}=je;const ft=(0,D.mf)(qe()),{videoList:kt}=ft,en=kt.filter(kn=>{if(kn.coldCanvasKeyToVideo===at){var yn;const yo=(yn=MB.runnerController.resetHandler.getWStatus(kn.key,"videoRef"))==null?void 0:yn.current;yo&&MB.runnerController.resetHandler.updateWStatusMap(kn.key,{videoRef:void 0,videoPaused:yo.paused,videoMuted:yo.muted,videoVolume:yo.volume,videoCurrentTime:yo.currentTime,videoPlaybackRate:yo.playbackRate});const Uo=document.getElementById(kn.key);if(Uo)return Uo.src=null,!1}return!0});Le({type:"runner:update:state",payload:{videoList:en}})},"entry:runner:update:audio":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{key:at,...ft}}=je;const kt=(0,D.mf)(qe()),{audioList:en}=kt,kn=en.find(yn=>yn.key===at);kn&&(Object.assign(kn,ft),Le({type:"runner:update:state",payload:{audioList:[...en.filter(yn=>yn.key!==at),kn]}}))},"entry:runner:append:video":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{video:at}}=je;const ft=(0,D.mf)(qe()),{videoList:kt}=ft,{key:en,hotAttr:{video:{videoSrc:kn,isAutoplay:yn,isLoop:yo,isMuted:Uo,isHideControls:Xo}}}=at,Ia=(0,ys.dB)(kn)&&(0,ys.Je)(new URL(kn))?sr(new URL(kn),en,yn,yo,Uo,Xo).iframeSrc:kn,ja={key:en,src:Ia,isAutoplay:yn,coldCanvasKeyToVideo:rootSdk.sdkStore.locUpColdCanvasKey(en),hotCanvasKeyToVideo:rootSdk.sdkStore.locUpHotCanvasKey(en)};Le({type:"runner:update:state",payload:{videoList:[...kt,ja]}})},"entry:runner:cache:audio":(St,je)=>{let{getState:qe}=St,{payload:{canvasKey:Le}}=je;if(!Le)return;const at=(0,D.mf)(qe()),{audioList:ft}=at;ft.forEach(kt=>{(kt.coldCanvasKeyToAudio===Le||kt.hotCanvasKeyToAudio===Le)&&MB.runnerController.resetHandler.updateWStatusMap(kt.key,{audioPaused:kt.audioObj.paused,audioCurrentTime:kt.audioObj.currentTime})})},"entry:runner:cache:video":(St,je)=>{let{getState:qe}=St,{payload:{canvasKey:Le}}=je;if(!Le)return;const at=(0,D.mf)(qe()),{videoList:ft}=at;ft.forEach(kt=>{if(kt.coldCanvasKeyToVideo===Le||kt.hotCanvasKeyToVideo===Le){var en;const kn=(en=MB.runnerController.resetHandler.getWStatus(kt.key,"videoRef"))==null?void 0:en.current;kn&&MB.runnerController.resetHandler.updateWStatusMap(kt.key,{videoRef:void 0,videoPaused:kn.paused,videoMuted:kn.muted,videoVolume:kn.volume,videoCurrentTime:kn.currentTime,videoPlaybackRate:kn.playbackRate})}})},"entry:runner:cache:media":(St,je)=>{let{dispatch:qe}=St,{payload:{canvasKey:Le}}=je;qe({type:"entry:runner:cache:audio",payload:{canvasKey:Le}}),qe({type:"entry:runner:cache:video",payload:{canvasKey:Le}})}};var Bt=i(58053),vn=i(18250),Io=i.n(vn),No=i(47695),_a=i(36449),Ur=i(77337),fr=i(78998);let Ar=null;const Fr={...{...ho,...ni,...Es,..._a.k.__entry,...mi,"entry:init:preview:leftPaneWidth":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.bF)(Le),ft=(0,D.PL)(Le);if(at.isSquare)qe({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:Oo.qE}});else{const kt=(0,po.Yt)("preview_layer_left_panel_width_"+ft.cid,Oo.sR,po.qW.Number);kt&&qe({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:kt,projectCid:ft.cid}})}},"entry:preview:check:location-hash":St=>{let{getState:je,dispatch:qe}=St;const Le=window.location.hash||"";if(Le.startsWith("#thread=")){const at=Le.substr(8),ft=je().model.commentThreads.find(kt=>kt.cid===at);if(!ft)return console.warn("[checkLocationHash] missing commentThread: "+at);qe({type:"entry:sync-runner:set-screen",payload:{cid:ft.screen_cid}}),qe({type:"entry:comment:set:active",payload:{isActive:!0}}),qe({type:"container:comment:focus",payload:{focusCommentThreadCid:ft.cid}})}},"entry:init:preview:preference":(St,je)=>{let{dispatch:qe}=St,{payload:{preference:Le}}=je;const at=!Le.theme||Le.theme==="grey"?Oo.Ke.theme:Le.theme,ft={...Le,theme:at,grid_size:Le.grid_size||Oo.Ke.grid_size};qe({type:"preview:update:state",payload:{preference:ft}}),qe({type:"reducer:preview-toolbar:update",payload:{theme:at}})},"entry:init:preview:related:data":async(St,je)=>{let{dispatch:qe}=St,{payload:{rootProject:Le,previewMode:at,screenMeta:ft,isPanelPreviewMode:kt,isCommunityComboPreview:en,isPreviewCombo:kn,basketKey:yn,screenTreeData:yo,screenDataMap:Uo,isQuickPreview:Xo,quickPreviewSize:Ia,isPreviewAIComponent:ja}}=je;qe({type:"preview:current:update:state",payload:{rootProject:Le,screenMeta:ft,isPanelPreviewMode:kt,isCommunityComboPreview:en,isPreviewCombo:kn,screenTreeData:yo,screenDataMap:Uo,panelPreviewBasketKey:yn,isQuickPreview:Xo,quickPreviewSize:Ia,isPreviewAIComponent:ja}}),qe({type:"entry:update:preview:data"}),qe({type:"entry:comment:init:projectShare"});const ka=MB.global.designOptions||{isDesign:!0};qe({type:"entry:init:preview-setting"}),qe({type:"preview:update:state",payload:{designOptions:ka}}),qe({type:"entry:preview:update-mode",payload:{toolbarActiveItem:at}}),qe({type:"entry:init:preview:leftPaneWidth"})},"entry:preview:select":(St,je)=>{let{dispatch:qe,getState:Le}=St,{payload:{toolbarActiveItem:at}}=je;const ft=Le(),kt=(0,D.Br)(ft);at!==kt&&qe({type:"entry:preview:update-mode",payload:{toolbarActiveItem:at}})},"entry:preview:update-mode":async(St,je)=>{let{dispatch:qe,getState:Le}=St,{payload:{toolbarActiveItem:at}}=je;const ft=Le();qe({type:"reducer:preview-toolbar:update",payload:{toolbarActiveItem:at}}),qe({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}}),setTimeout(()=>{(0,D.pW)(ft)&&MB.runnerController.reload()})},"entry:enter:full-screen-mode":async St=>{let{dispatch:je}=St;await Bt.A.request(),je({type:"entry:preview:select",payload:{toolbarActiveItem:"preview"}}),je({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!0}}),je({type:"entry:auto-fit:preview:scale"}),je({type:"preview:set:canvas:offset",payload:{offset:{x:0,y:0}}}),je({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:!0,isMemorize:!1}}),je({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:!1,isMemorize:!1}})},"entry:exit:fill-screen-mode":St=>{let{dispatch:je}=St;je({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!1}}),je({type:"entry:init:preview:scale"})},"entry:update:preview:data":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const ft=qe(),kt=(0,D.Ur)(ft),en=(0,D.KR)(ft),kn=(at==null?void 0:at.pageKey)||kt.cid,yn=sdkStore.getHotItem(kn);if(at!=null&&at.pageKey){const{hotAttr:Uo}=yn,Xo={cid:at==null?void 0:at.pageKey,...Uo};Le({type:"preview:current:update:state",payload:{screenMeta:Xo}})}const yo=(0,D.De)(ft);Le({type:"preview:current:update:state",payload:{folderTreeData:yo===yn?{...yn}:yn}}),en&&Le({type:"runner:update:state",payload:{panelPreviewStateListCacheTag:Math.random()}})},"entry:update:preview:screenTreeData":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.KR)(Le),{activePageKey:ft}=(0,D.mf)(Le),{screenTreeData:kt,screenDataMap:en}=(0,uo.tb)(at&&ft?ft:we.$k);qe({type:"preview:current:update:state",payload:{screenTreeData:kt,screenDataMap:en}})},"entry:preview:reload:screen":St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.HA)(Le),{activePageKey:ft,activeCanvasKey:kt}=(0,D.mf)(Le),en=(0,D.KR)(Le),kn=(0,D.Mo)(Le),yn=(0,D.hM)(Le),yo=ft&&!sdkStore.isTrashed(ft)&&sdkStore.getHotItem(ft),Uo=kt&&!sdkStore.isTrashed(kt)&&sdkStore.getHotItem(kt);let Xo=kt,Ia=ft;if(!yo||!Uo){if(yo&&!Uo){var ja,ka;Xo=(ja=(ka=sdkStore.getSubHotItemList(ft))==null||(ka=ka.filter(Za=>{let{hotAttr:Cr}=Za;return(Cr==null?void 0:Cr.type)===Ot.x.Canvas&&!Cr.asOverlay}).sort((Za,Cr)=>{var Dr,ti;return((Dr=Za.hotAttr)==null?void 0:Dr.order)-((ti=Cr.hotAttr)==null?void 0:ti.order)})[0])==null?void 0:ka.key)!=null?ja:""}else if(!yo&&Uo){const Za=sdkStore.getHotItem(Xo);Za&&(Ia=Za.sup)}else{const{activePageKey:Za,activeCanvasKey:Cr}=(0,uo.u1)(at);Ia=Za,Xo=Cr}if(!Ia){yn&&(setTimeout(()=>{var Za;(Za=MB)==null||Za.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed_on_combo,type:"warning"})},200),qe({type:"runner:update:state",payload:{activePageKey:"",activeCanvasKey:""}}));return}if(qe({type:"entry:runner:cleanup:audio"}),qe({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),en&&kn&&(0,ht.OO)(kt)&&(Xo=(0,ht.iK)([kn],Xo)),qe({type:"entry:runner:activate:canvas",payload:{pageKey:Ia,canvasKey:Xo}}),yn&&qe({type:"entry:preview:zoom-quick-preview"}),!Xo){var ga,er;const Za=kn&&((ga=sdkStore.getHotItem(kn))==null?void 0:ga.hotAttr.bunch)==="rbPage";(er=MB)==null||er.notice({text:Za?I18N.dUtils.no_canvas_cannot_be_previewed_on_muban:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}}Xo&&(qe({type:"entry:runner:update:basket:status:under",payload:{key:Xo}}),MB.runnerController.destroyScrollBarByCid(Xo)),qe({type:"entry:update:preview:data",payload:{pageKey:Ia}})},"entry:preview:reload":async St=>{let{getState:je,dispatch:qe}=St;qe({type:"entry:runner:cleanup:audio"}),qe({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),qe({type:"entry:update:preview:screenTreeData"});const Le=je(),{activePageKey:at,activeCanvasKey:ft}=(0,D.mf)(Le),kt=(0,D.HA)(Le),en=at&&!sdkStore.isTrashed(at)&&sdkStore.getHotItem(at),kn=ft&&!sdkStore.isTrashed(ft)&&sdkStore.getHotItem(ft);let yn=ft,yo=at;if(!en||!kn){if(en&&!kn){var Uo,Xo;yn=(Uo=(Xo=sdkStore.getSubHotItemList(at))==null||(Xo=Xo.find(ja=>{let{hotAttr:ka}=ja;return(ka==null?void 0:ka.type)===Ot.x.Canvas&&!(ka!=null&&ka.asOverlay)}))==null?void 0:Xo.key)!=null?Uo:""}else if(!en&&kn){const ja=sdkStore.getHotItem(yn);ja&&(yo=ja.sup)}else{const{activePageKey:ja,activeCanvasKey:ka}=(0,uo.u1)(kt);yo=ja,yn=ka}if(qe({type:"entry:runner:activate:canvas",payload:{pageKey:yo,canvasKey:yn}}),!yn){var Ia;(Ia=MB)==null||Ia.notice({text:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8",type:"warning"})}}yn&&(qe({type:"entry:runner:update:basket:status:under",payload:{key:yn}}),MB.runnerController.resetScreenScrollState(yn),MB.runnerController.destroyScrollBarByCid(yn)),qe({type:"entry:update:preview:data",payload:{pageKey:yo}}),qe({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})},"entry:preview:toggle:isHiddenToolBar":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{value:at,isSetTimeout:ft=!1}}=je;const kt=qe(),{isSquare:en,isEmbedV2:kn,isHTMLZip:yn}=(0,D.bF)(kt);if(!en&&!kn&&!yn&&(0,No.jo)())return;const yo=(0,m.sI)(kt),Uo=(0,D.kM)(kt),Xo=(0,D.KR)(kt),Ia=(0,D.hM)(kt),ja=(0,D.ub)(kt),ka=(0,D.Pf)(kt),ga=(0,D.U4)(kt),er=(0,D.H5)(kt);if(clearTimeout(Ar),Xo||Ia||ja||er||at&&(!ka||ga))return;if(yo){Le({type:"preview:update:isHiddenToolBar",payload:!1});return}const Za=Io()(at)?at:!Uo;if(ft&&Za===!0){Ar=setTimeout(()=>{Le({type:"preview:update:isHiddenToolBar",payload:Za})},2e3);return}Le({type:"preview:update:isHiddenToolBar",payload:Za})},"entry:preview:update:current:sharing":(St,je)=>{let{dispatch:qe}=St,{payload:{sharing:Le}}=je;const{screen_visible_switch:at,screen_visible_list:ft}=Le;let kt=ft;Le.type==="default"?(at&&(kt=(0,uo.UG)(ft[0])),qe({type:"preview:set:current-projectShare",payload:{projectShare:{...Le,screen_visible_list:kt}}})):qe({type:"preview:set:current-projectShare",payload:{projectShare:Le}})},"entry:preview:switch:page":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const ft=qe(),{activePageKey:kt,activeCanvasKey:en}=(0,D.mf)(ft),kn=(0,D.lR)(ft),yn=kn.indexOf(en);if(yn===-1)return;const yo=at!=null&&at.isPrev?yn-1:yn+1,Uo=kn[yo];if(!Uo)return;Le({type:"entry:runner:activate:canvas",payload:{pageKey:kt,canvasKey:Uo,transition:{name:"none",delay:0,duration:0,offset:100}}}),Le({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})},"entry:export:item":async(St,je)=>{var qe,Le;let{getState:at,dispatch:ft}=St,{payload:{exportConfigList:kt,itemToExportKeyList:en}}=je;ft({type:"preview:update:state",payload:{isWidgetBeingExported:!0}});const kn=at(),yn=(0,D.PL)(kn).name,yo=(qe=MB)!=null&&qe.user||(Le=MB)!=null&&Le.currentOrg?(0,fr.XB)(MB.user,MB.currentOrg,(0,D.PL)(kn)):!0,Uo=[];for(const Xo of en)for(const Ia of kt)Uo.push({...Ia,hasWatermark:yo,itemKey:Xo});await(0,Ur.WE)(Uo,yn,Xo=>(console.error(Xo),!0)),ft({type:"preview:update:state",payload:{isWidgetBeingExported:!1}})}},"entry:state:init":St=>{let{dispatch:je}=St;je({type:"user:set",payload:MB.user||void 0}),je({type:"preview:current:update:state",payload:{org:MB.org}}),je({type:"teams:refresh"})},"entry:sync-runner:set-screen":(St,je)=>{let{dispatch:qe,getState:Le}=St,{payload:{cid:at}}=je;const ft=Le(),{activePageKey:kt}=(0,D.mf)(ft);if(at===kt)return;const{hotAttr:en}=sdkStore.getHotItem(at),kn={cid:at,...en};qe({type:"preview:current:update:state",payload:{screenMeta:kn}}),MB.runnerController.clearTimerHandler(),qe({type:"entry:runner:activate:canvas",payload:{pageKey:at}})},"entry:preview:toggle:sharingManager":St=>{let{dispatch:je,getState:qe}=St;const Le=qe(),at=(0,D.H5)(Le);je({type:"preview:sharingManager:update:state",payload:{isShowSharingManager:!at}})}};var os=i(78235);const Ei={id:null,name:"",email:"",avatar:"",plan:{state:"",type:"free",rawType:"free",daysLeft:""}},{getState:Kl,setState:as,wrapEntry:al}=(0,Yn.J$)(Ei),pd={"user:set":al((St,je,qe)=>{let{dispatch:Le}=je,{payload:at={}}=qe;const{id:ft=null,name:kt="",email:en="",avatar:kn="",created_at:yn}=at;Le({type:"reducer:user:update",payload:(0,os.O1)(St,{id:ft,name:kt,email:en,avatar:kn,plan:Cd(at),created_at:yn})})})};function Cd(St){let{plan:je,state:qe,limitation:Le,days_left:at}=St;return{state:qe||"",type:qe==="active"&&je||"free",rawType:je||"free",daysLeft:at||""}}const wc={entryMap:pd,getState:Kl,setState:as};var ba=i(54844),$r=i(31181);const Ni={...wc.entryMap,"entry:comment:init:projectShare":async St=>{let{getState:je,dispatch:qe}=St;const Le=je(),at=(0,D.PL)(Le),ft=$a(location.pathname);try{if(ft){const{sharing:kt}=await(0,ba.J_)({project:at});qe({type:"preview:set:current-projectShare",payload:{projectShare:kt}})}}catch(kt){console.log("e",kt)}},"entry:state:update:previewUserCommonGuidesData":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{key:at}}=je;const ft=qe(),kt=(0,D.HW)(ft);if(!!(kt!=null&&kt.id)){let kn=(0,D.Sy)(ft),yn=(0,D.sU)(ft);kn.push(at),kn=Array.from(new Set(kn)),(0,$r.J)(JSON.stringify(kn)),yn.includes(at)&&(yn.splice(yn.findIndex(yo=>yo===at),1),yn=Array.from(new Set(yn))),Le({type:"preview:current:update:state",payload:{previewCommonGuidesHasShown:kn,previewCommonGuidesToBeShown:yn}})}}},Bs={user:(0,Yn.Tf)("reducer:user:update",wc)},Ec={activeCid:"",transition:{name:"slideleft",delay:0,duration:2e3,offset:100,callback:()=>null},history:[],currentScreenStateHistory:[],screenInfoMap:{},screenScrollTopMap:{},screenScrollLeftMap:{},audioList:[],videoList:[],activeCanvasKey:"",activePageKey:"",basketCanvasMap:new Map,runnerCacheTag:0,tearStickyCacheTag:0,panelPreviewStateListCacheTag:0,basketScrollTopMap:{},basketScrollLeftMap:{},overlayStack:[]};function ps(St,je){St===void 0&&(St=Ec);const{type:qe,payload:Le}=je;switch(qe){case"runner:update:state":return{...St,...Le};case"runner:update:scroll-top":{const{screenMetaCid:at,scrollTop:ft}=Le;return{...St,screenScrollTopMap:{...St.screenScrollTopMap,[at]:ft}}}case"runner:update:scroll-left":{const{screenMetaCid:at,scrollLeft:ft}=Le;return{...St,screenScrollLeftMap:{...St.screenScrollLeftMap,[at]:ft}}}case"runner:update:basket:scroll-top":{const{basketKey:at,scrollTop:ft}=Le;return{...St,basketScrollTopMap:{...St.basketScrollTopMap,[at]:ft}}}case"runner:update:basket:scroll-left":{const{basketKey:at,scrollLeft:ft}=Le;return{...St,basketScrollLeftMap:{...St.basketScrollLeftMap,[at]:ft}}}case"runner:reset:basket:list:scroll":{const{keys:at}=Le,ft=()=>{const kt={};return at.forEach(en=>kt[en]=0),kt};return{...St,basketScrollLeftMap:{...St.basketScrollLeftMap,...ft()},basketScrollTopMap:{...St.basketScrollTopMap,...ft()}}}case"runner:reset:basket:scroll":return{...St,basketScrollTopMap:{},basketScrollLeftMap:{}};case"runner:reset:state":return Ec;case"runner:reset:state:except:history":return{...Ec,history:St.history};default:return St}}const Yl={rootProject:null,projectMeta:null,screenGlue:null,isPanelPreviewMode:!1,isPreviewCombo:!1,panelPreviewBasketKey:null,projectShare:null,previewCommonGuidesHasShown:[],previewCommonGuidesToBeShown:[],screenMetaList:[],folderTreeData:null,screenTreeData:null,refreshCount:0,STRenderArea:[0,0],org:null,isQuickPreview:!1,quickPreviewSize:null,isPreviewAIComponent:!1,previewViewMode:"device"};function ls(St,je){St===void 0&&(St=Yl);const{type:qe,payload:Le}=je;switch(qe){case"preview:current:update:state":return{...St,...Le};case"preview:set:root-project":return{...St,rootProject:Le.rootProject};case"preview:set:current-projectShare":return{...St,projectShare:Le.projectShare};case"preview:screenMetaList:set":return{...St,screenMetaList:Le.screenMetaList};case"preview:refreshCount:update":return{...St,refreshCount:St.refreshCount+1};case"preview:set:STRenderArea":return{...St,STRenderArea:Le.STRenderArea};case"update:org:member:list":{const{orgMembers:at}=Le;return{...St,org:{...St.org,members:at}}}case"current:update:previewViewMode":return{...St,previewViewMode:Le.previewViewMode};default:return St}}const wl={isSpaceDown:!1,isShiftDown:!1},Sc={isDesktop:!0,isInApp:!1,isMobile:!1,isIOSClient:!1,isStandAlone:!1,isEmbedV1:!1,isHTMLZip:!1,isSquare:!1},lc={isShowNewVersionArtboardGuide:!1},Ic="preview_layer_panel_height",Gc={previewOptions:Sc,designOptions:{},guideOptions:lc,offset:{x:0,y:0},currentScreenOriginOffset:{x:0,y:0},scale:100,hasChangedScaleManually:!1,keyFlags:wl,viewport:{width:0,height:0,left:0,top:0},preference:{},previewPanelNavIndex:0,screenCommentThreadCountMap:null,panelHeight:(0,po.Yt)(Ic,window.innerHeight*.6,po.qW.Number),isHiddenToolBar:!1,leftPaneWidth:Oo.sR,isWidgetBeingExported:!1,rightPaneWidth:Oo.xM,collapsedRBPageKeySet:new Set,shellContainer:{width:0,height:0,widthBare:0,heightBare:0}};function mc(St,je){St===void 0&&(St=Gc);const{type:qe,payload:Le}=je;switch(qe){case"preview:update:state":return{...St,...Le};case"preview:set:canvas:offset":return{...St,offset:Le.offset};case"preview:set:canvas:currentScreenOriginOffset":return{...St,currentScreenOriginOffset:Le.currentScreenOriginOffset};case"preview:set:scale":return{...St,scale:Le.scale};case"preview:set:key:flags":return{...St,keyFlags:{...wl,...Le}};case"preview:reset:key:flags":return{...St,keyFlags:wl};case"preview:scrollbar:viewport":return{...St,viewport:Le};case"preview:previewPanel:navindex":return{...St,previewPanelNavIndex:Le.previewPanelNavIndex};case"preview:update:preference":return{...St,preference:{...St.preference,...Le}};case"preview:comment:update:screen_count_map":return{...St,screenCommentThreadCountMap:Le.screenCommentThreadCountMap||null};case"preview:panel:set:height":{const{panelHeight:at}=Le;return(0,po.a0)(Ic,at,po.qW.Number),{...St,panelHeight:at}}case"preview:update:guideOptions":return{...St,guideOptions:{...St.guideOptions,...Le}};case"preview:update:isHiddenToolBar":return{...St,isHiddenToolBar:Le};case"preview:set:canvas:offset:dev":return{...St,offset:{...St.offset,...Le.offset}};case"preview:set:leftPaneWidth":return Le.projectCid&&(0,po.a0)("preview_layer_left_panel_width_"+Le.projectCid,Le.leftPaneWidth,po.qW.Number),{...St,leftPaneWidth:Le.leftPaneWidth};case"preview:set:rightPaneWidth":return Le.projectCid&&(0,po.a0)("preview_layer_right_panel_width_"+Le.projectCid,Le.rightPaneWidth,po.qW.Number),{...St,rightPaneWidth:Le.rightPaneWidth};case"preview:set:shellContainer":return{...St,shellContainer:Le.shellContainer};case"preview:set:collapsedRBPageKeySet":return{...St,collapsedRBPageKeySet:Le.collapsedRBPageKeySet};default:return St}}var Zc=i(86969),gc=i(81122);const Fo={toolbarActiveItem:Zc.$y,isFullScreenMode:!1,simulatorType:"device",isShowShell:!0,isStickyShow:!0,isStickyAvailable:!0,isHighlight:!0,isStatePanelShow:!0,isOutsideVisible:!1,isShowOutsideArtboardNav:!1,isMinimized:(0,po.Yt)("is_minized",!1,po.qW.Boolean),isShowRightPane:(0,po.Yt)("is_show_rightpane",!0,po.qW.Boolean),appVersion:"",isDummyApk:!1,isShowSplash:!1,theme:Oo.Sx.LIGHT,isFromSharing:(0,Va.IB)(),isFromAbar:(0,gc.BG)()};function Ca(St,je){St===void 0&&(St=Fo);let{type:qe,payload:Le}=je;switch(qe){case"reducer:preview-toolbar:update":return{...St,...Le};case"reducer:preview-toolbar:fullscreen":return{...St,isFullScreenMode:Le.isFullScreenMode};case"reducer:preview-toolbar:update:highlight":return{...St,isHighlight:Le.isHighlight};default:return St}}const ya={preOpenHyperlinkModal:{isOpen:!1},imagePreviewModal:{isOpen:!1}};function Ba(St,je){St===void 0&&(St=ya);const{type:qe,payload:Le}=je;switch(qe){case"previewModal:update:state":return{...St,...Le};case"previewModal:reset:state":return ya;case"previewModal:reset:popup:state":{const{modalName:at}=Le;return{...St,[at]:ya[at]}}default:return St}}const Xa={isShowSharingManager:!1};function Kt(St,je){St===void 0&&(St=Xa);const{type:qe,payload:Le}=je;switch(qe){case"preview:sharingManager:update:state":return{...St,...Le};default:return St}}var Vn=i(62485);const io={current:ls,common:mc,modals:Ba,previewSetting:Ca,runner:ps,sharingManager:Kt,draft:Vn.A};var Wn=i(6861);const $n={STMode:!1,activeTearPreview:null,tearOffset:{left:0,top:0}};function Vo(St,je){St===void 0&&(St=$n);const{type:qe,payload:Le}=je;switch(qe){case"ST:update":return Object.assign({},St,Le);default:return St}}const Do={"entry:ST:STMode:toggle":St=>{let{getState:je,dispatch:qe}=St;const Le=(0,To.Lc)(je());qe({type:"ST:update",payload:{STMode:!Le}})}};var Bo=i(93e3),Ro=i(14166),Pa=i(32424),la=i(27480),Go=i(21489),ir=i(86493),tr=i(31348),wr=i(78401),Pr=i(79770);const br=St=>{const je=(0,D.X_)(St),qe=(0,D.ER)(St);return{scale:je/100,offset:qe}},lr={...bo.u,"entry:comment:rebuild:commentList":St=>{let{dispatch:je}=St;const qe=rootSdk.cmtStore.getSubHotItemList("C@main").filter(at=>at.hotAttr.type==="cCmtPack"),Le=[];qe.forEach(at=>{at.sub.forEach(ft=>{const kt=rootSdk.cmtStore.getHotItem(ft),en=(0,Go.Bt)(kt);kt.sub.forEach(kn=>{const yn=rootSdk.cmtStore.getHotItem(kn);en.comments.push((0,Go.gR)(yn))}),Le.push(en)})}),je({type:"comment:update:allCommentList",payload:{allCommentList:Le}})},"entry:comment:mousedown":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at}}=je;const ft=qe(),kt=(0,m.sI)(ft),en=(0,D.mf)(ft);if(kt){const yn=document.querySelector("#preview-content-container .zoom-area");if(!yn)return;const yo=yn.getBoundingClientRect(),{x:Uo,y:Xo,width:Ia,height:ja}=yo,ka=la.rw.xywh(Uo,Xo,Ia,ja),ga=V.Z.xy(at.clientX,at.clientY);if(la.rw.contains(ka,ga)){var kn;const{activeCanvasKey:er}=en,Za=(kn=document.querySelector('#preview-content-container div[data-cid="'+er+'"]'))==null?void 0:kn.getBoundingClientRect();if(!Za)return;const{x:Cr,y:Dr,width:ti,height:Xr}=Za,li=la.rw.xywh(Cr,Dr,ti,Xr),ur=V.Z.xy(at.clientX,at.clientY);la.rw.contains(li,ur)?Le({type:"entry:comment:create:mousedown",payload:{event:at}}):Le({type:"entry:comment:empty:mousedown",payload:{event:at}})}else Le({type:"entry:comment:empty:mousedown",payload:{event:at}})}},"entry:comment:create:mousedown":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at}}=je;const ft=qe(),kt=(0,m.sI)(ft),en=(0,D.mf)(ft),kn=(0,m.nO)(ft),yn=(0,m.fd)(ft),yo=(0,m.YW)(ft),Uo=(0,m.CI)(ft),Xo=(0,m.Cb)(ft),Ia=(0,m.V8)(ft);if((0,Go.m0)(at)){kn&&Le({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),yn&&Le({type:"entry:comment:benot-dragging"});return}if(yo)return;const ja=(0,bo.F)();if(ja){Le({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:ja}});return}if(Ia){Le({type:"entry:comment:clear"});return}if(Xo){const Di=Uo.find(Gr=>Gr.cid===Xo);if(Di){const{comments:Gr}=Di,ms=(0,m.Ou)(ft);[Di,...Gr].find(El=>El.cid===ms)&&Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!kt)return;const ka=br(ft),{activePageKey:ga,activeCanvasKey:er,screenScrollLeftMap:Za,screenScrollTopMap:Cr}=en,Dr=V.Z.xy(at.clientX,at.clientY),ti=Za[er],Xr=Cr[er],li=(0,Go.v0)(Dr,er,ka,ti,Xr),ur=(0,Go._p)(li,er,{offset:{x:0,y:0},scale:1}),{user:oi}=window.MB,hs={threadType:"point",cid:(0,Pa.xc)(),isCompleted:!1,comments:[],screenCid:ga,canvasCid:er,canvasVec2:li,message:"",x:ur.x,y:ur.y,w:0,h:0,z:1,userInfo:oi,userId:oi==null?void 0:oi.id,vec2:ur,rect:null,status:"creating"};Le({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:ur}}),Le({type:"comment:update:creatingComment",payload:{creatingComment:hs}}),MB.runnerController.scrollHandler.toggleScrollBar(!1)},"entry:comment:create:mousemove":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at}}=je;const ft=qe(),kt=(0,m.nO)(ft),en=br(ft),kn=(0,D.mf)(ft);if(!kt)return;let yn=(0,m.V8)(ft);if(!yn)return;const{activePageKey:yo,activeCanvasKey:Uo,screenScrollLeftMap:Xo,screenScrollTopMap:Ia}=kn,ja=V.Z.xy(at.clientX,at.clientY),ka=Xo[Uo],ga=Ia[Uo],er=(0,Go.v0)(ja,Uo,en,ka,ga),Za=(0,Go._p)(er,Uo,{offset:{x:0,y:0},scale:1});if(V.Z.distance(kt,Za)<5)yn={threadType:"point",...yn,screenCid:yo,canvasVec2:er,vec2:Za,rect:null,x:Za.x,y:Za.y,w:0,h:0,canvasCid:Uo||""};else{const{x:Dr,y:ti}=kt,{x:Xr,y:li}=Za,ur={x:Dr<=Xr?Dr:Xr,y:ti<=li?ti:li,w:Math.abs(Xr-Dr),h:Math.abs(li-ti),rotate:0},oi=(0,Go.vl)(ur,Uo);yn={...yn,threadType:"frame",vec2:null,rect:ur,x:Dr<=Xr?Dr:Xr,y:ti<=li?ti:li,w:Math.abs(Xr-Dr),h:Math.abs(li-ti),canvasVec2:oi,canvasCid:Uo||""}}Le({type:"comment:update:creatingComment",payload:{creatingComment:yn}})},"entry:comment:create:mouseup":St=>{let{getState:je,dispatch:qe}=St;const Le=je();if(!(0,m.nO)(Le))return;qe({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const ft=(0,m.V8)(Le);ft&&(qe({type:"comment:update:activeCommentCid",payload:{activeCommentCid:ft.cid}}),qe({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),qe({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),qe({type:"comment:update:editingCommentCid",payload:{editingCommentCid:ft.cid}})),qe({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:anchor:mousedown":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at,comment:ft}}=je;if(!ft||(ft==null?void 0:ft.status)==="creating")return;const kt=qe(),en=(0,m.CI)(kt),kn=(0,m.Cb)(kt),yn=(0,m.V8)(kt),yo=(0,m.az)(kt),Uo={x:at.clientX,y:at.clientY},Xo={...ft},Ia=(0,bo.F)();if(Ia){Le({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Ia}});return}yn&&Le({type:"comment:update:creatingComment",payload:{creatingComment:null}});let ja;(0,wr.FJ)({onPointerDown:()=>{ft.cid===yo&&Le({type:"entry:comment:clear"}),ja=en.find(ka=>ka.cid===ft.cid)},onDragStart:()=>{!(0,Va.OB)()&&!MB.canEditByCurrentUser||Le({type:"entry:comment:be-dragging"})},onDrag:(ka,ga)=>{!(0,Va.OB)()&&!MB.canEditByCurrentUser||Le({type:"entry:comment:drag",payload:{cid:ft.cid,prevComment:Xo,prevPoint:Uo,curPoint:{x:ka,y:ga}}})},onDrop:(ka,ga)=>{const er=Xo&&Xo.cid;if(ga&&!kn&&Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:ft.cid}}),ga&&ft.cid===er&&["created","checked"].includes(ft.status)?ft.cid===kn?Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:ft.cid}}):Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:ft.cid}}),!ja)return;const{canvasCid:Za,cid:Cr,threadType:Dr}=ja;let ti=!1;if(Dr==="point"){const{hotAttr:{x:Xr,y:li}}=rootSdk.cmtStore.getHotItem(Cr),ur=V.Z.xy(Xr,li);ti=(0,Pr.Tg)(ur,Za)&&!0}else if(Dr==="frame"){const{hotAttr:{x:Xr,y:li,w:ur,h:oi}}=rootSdk.cmtStore.getHotItem(Cr),hs=[Xr,li,Xr+ur,li+oi];ti=(0,Pr.TW)(hs,Za)&&!0}if(!ti){const Xr={x:ja.x,y:ja.y,canvasVec2:ja.canvasVec2};Le({type:"entry:comment:update:item",payload:{cid:ja.cid,attr:Xr}})}setTimeout(()=>{Le({type:"entry:comment:benot-dragging",payload:{cid:ft.cid,undo:!0}})},16.7)}})},"entry:comment:be-dragging":St=>{let{dispatch:je}=St;je({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:drag":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,prevComment:ft,prevPoint:kt,curPoint:en,vec2Delta:kn}}=je;const yn=qe(),yo=(0,m.CI)(yn),Uo=br(yn),Xo=(0,D.dK)(yn),Ia=(0,D.mf)(yn);if(!yo.find(Xr=>Xr.cid===at))return;const{activeCanvasKey:ka}=Ia;let ga,er;if(Xo){const[Xr,li]=(0,Go.RR)(kt,en,!0,!1);ga=li.x-Xr.x,er=li.y-Xr.y}else ga=en.x-kt.x,er=en.y-kt.y;const Za=V.Z.xy(ga,er),Cr=Bo.L.applyInverse(Uo,V.Z.add(Bo.L.apply(Uo,ft.canvasVec2),Za)),Dr=(0,Go._p)(Cr,ka,{offset:{x:0,y:0},scale:1}),ti={x:Dr.x,y:Dr.y,canvasVec2:Cr};Le({type:"entry:comment:update:item",payload:{cid:at,attr:ti}})},"entry:comment:benot-dragging":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;Le({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:resize":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,rect:ft,screenRect:kt}}=je;const en=qe(),kn=(0,m.CI)(en),yn=(0,D.mf)(en);if(!kn.find(Dr=>Dr.cid===at))return;const{activeCanvasKey:Uo}=yn,{x:Xo,y:Ia,w:ja,h:ka}=kt,ga=[Xo,Ia,Xo+ja,Ia+ka],er=document.querySelector("#preview-content-container .zoom-area").getBoundingClientRect(),Za=[0,0,er.width,er.height];if((0,Ro.cj)(Za,ga)){const Dr=la.rw.enclosingRects([ft]),ti=(0,Go.vl)(ft,Uo),Xr={x:Dr.x,y:Dr.y,w:Dr.w,h:Dr.h,canvasVec2:ti,canvasCid:Uo||""};Le({type:"entry:comment:update:item",payload:{cid:at,attr:Xr}})}},"entry:comment:cancel":St=>{let{getState:je,dispatch:qe}=St;qe({type:"entry:comment:clear"})},"entry:comment:confirm":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at}}=je;const ft=qe(),kt=(0,m.V8)(ft),en=(0,m.CI)(ft),kn=(0,m.uX)(ft),yn=kt||en.find(Za=>Za.cid===at);if(!yn)return;const{user:yo,members:Uo=[]}=window.MB,{content:Xo,replyUserCid:Ia,userCids:ja}=(0,Go.bL)(kn);let ka="";const ga=ja.concat(Ia).filter(Boolean);if(kt)ka=ga.length>0?"appointed":"comment";else{ka=ga.length>0?"replied_appoint":"replied_comment";const{userInfo:Za}=yn;if(yo.cid!==Za.cid){const Cr=Uo.find(Dr=>Dr.user_cid===Za.cid);Cr&&(Za.name=Cr.name,Za.avatar=Cr.avatar,Za.email=Cr.email),Za.cid}}const er=(0,ir.qn)(kn);Le({type:"entry:comment:noticeAtUsers",payload:{content:Xo,noticeType:ka,userCids:ga,commentCid:at}}),Le(kt?{type:"entry:comment:init:item",payload:{type:"thread",curComment:yn,message:er}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:yn,message:er}}),Le({type:"comment:update:creatingComment",payload:{creatingComment:null}}),Le({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),Le({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),Le({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),Le({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:delete":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at}}=je;const ft=qe(),kt=(0,m.CI)(ft);if(!at)return;const en=kt.find(yo=>yo.cid===at);if(!en)return;const{userInfo:kn}=en,{user:yn}=window.MB;if(yn.cid!==kn.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}Le({type:"entry:comment:del:item",payload:{cid:at}}),Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),Le({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,recordCid:ft}}=je;const kt=qe(),kn=(0,m.CI)(kt).find(yo=>yo.cid===at);!kn||![...kn.comments,kn].find(yo=>yo.cid===ft)||(Le({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),Le({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:ft}}),MB.runnerController.scrollHandler.toggleScrollBar(!1))},"entry:comment:record:delete":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,recordCid:ft}}=je;const kt=qe(),kn=(0,m.CI)(kt).find(yo=>yo.cid===at);!kn||![...kn.comments,kn].find(yo=>yo.cid===ft)||(Le({type:"entry:comment:del:item",payload:{cid:ft||at}}),Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,recordCid:ft,rawContent:kt}}=je;const en=qe(),yn=(0,m.CI)(en).find(Za=>Za.cid===at);if(!yn)return;let yo=-1,Uo=null;if(yn.cid===ft?Uo=yn:yn.comments.forEach((Za,Cr)=>{Za.cid===ft&&(yo=Cr,Uo=Za)}),!Uo)return;const{content:Xo,replyUserCid:Ia,userCids:ja}=(0,Go.bL)(kt),ka=ja.concat(Ia).filter(Boolean);let ga="";yo===-1?(ga="comment",ka.length>0&&(ga="appointed")):(ga="replied_comment",ka.length>0&&(ga="replied_appoint")),Le({type:"entry:comment:noticeAtUsers",payload:{content:Xo,noticeType:ga,userCids:ka,commentCid:at}});const er={message:kt,mtime:rootSdk.fssCmt.getClockStore().getMtime()};Le({type:"entry:comment:update:item",payload:{cid:ft||at,attr:er}}),Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:record:cancel":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{cid:at,recordCid:ft}}=je;const kt=qe(),kn=(0,m.CI)(kt).find(Uo=>Uo.cid===at);!kn||![kn,...kn.comments].find(Uo=>Uo.cid===ft)||!(0,m.Ou)(kt)||(Le({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0))},"entry:comment:noticeAtUsers":(St,je)=>{let{getState:qe}=St,{payload:{content:Le,noticeType:at,userCids:ft,commentCid:kt}}=je;const en=qe(),kn=(0,D.PL)(en),yn=(0,D.mf)(en),{activePageKey:yo}=yn,Uo=kn.cid;tr.A.noticeCommentAtUsers({projectCid:Uo,noticeType:at,userCids:ft,content:Le,screenCid:yo,commentCid:kt})},"entry:comment:rightPanel:active":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{commentCid:at}}=je;const ft=qe();(0,m.CI)(ft).find(kn=>kn.cid===at)&&Le({type:"comment:update:activeCommentCid",payload:{activeCommentCid:at}})},"entry:comment:update:atStyle":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{dom:at}}=je;const ft=document.querySelector("#preview-comment-view-container"),kt=(0,Go.GY)(at,ft),en=kt.left+16,kn=kt.top+16+20;Le({type:"comment:update:atStyle",payload:{atStyle:{top:kn,left:en}}})},"entry:comment:update:emojiToastStyle":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at,scrollTop:ft,dom:kt}}=je;const en=document.querySelector("#preview-comment-view-container"),kn=(0,Go.GY)(kt,en),yn=kn.left-20,yo=kn.top-ft+59;Le({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:yn,top:yo}}})},"entry:comment:update:view-container-style":St=>{let{getState:je,dispatch:qe}=St;const Le=document.getElementById("preview-comment-view-container");if(!Le)return;const at=je(),ft=(0,D.mf)(at),kt=(0,D.X_)(at),{activeCanvasKey:en,screenScrollTopMap:kn,screenScrollLeftMap:yn}=ft,yo=kn[en],Uo=yn[en];Le.style.transform="translateY("+yo*kt/100+"px) translateX("+Uo*kt/100+"px)",qe({type:"entry:comment:show-or-hide:anchor-node"})},"entry:comment:show-or-hide:anchor-node":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:at}=je;const ft=document.querySelectorAll("#preview-comment-view-container .comment-anchor-container");if(ft.length===0)return;const kt=qe(),en=(0,D.mf)(kt),{activeCanvasKey:kn}=en,yn=document.querySelector("#pscreen"+kn+" .screen-content"),yo=document.querySelector("#pscreen"+kn+" .screen-content .widgets"),Uo=(0,D.X_)(kt);if(!yn||!yo)return;const Xo=(parseFloat(yo==null?void 0:yo.style.top)||0)*Uo/100,Ia=(parseFloat(yo==null?void 0:yo.style.left)||0)*Uo/100,ja=yn.clientHeight*Uo/100,ka=yn.clientWidth*Uo/100;ft.forEach(ga=>{if(ga.classList.contains("point")){const er=parseFloat(ga.style.top),Za=parseFloat(ga.style.left);Xo+er+Go.xb<0||Xo+er-Go.xb>ja||Ia+Za<0||Ia+Za+Go.yG>ka?ga.style.display="none":ga.style.display="block"}else{const er=parseFloat(ga.style.top),Za=parseFloat(ga.style.left),Cr=parseFloat(ga.clientWidth),Dr=parseFloat(ga.clientHeight);Xo+er<=0&&Xo+er+Dr<0||Xo+er>ja&&Xo+er+Dr>ja||Ia+Za<0&&Ia+Za+Cr<0||Ia+Za>ka&&Ia+Za+Cr>ka?ga.style.visibility="hidden":ga.style.visibility="inherit"}})},"entry:comment:empty:mousedown":(St,je)=>{let{getState:qe,dispatch:Le}=St,{payload:{event:at}}=je;const ft=qe(),kt=(0,m.nO)(ft),en=(0,m.fd)(ft);if((0,Go.m0)(at)){kt&&Le({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),en&&Le({type:"entry:comment:benot-dragging"});return}const kn=(0,bo.F)();if(kn){Le({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:kn}});return}Le({type:"entry:comment:clear"})}};var ei=i(36666),vr=i(17533);const ar=(0,oo.tY)({}),hr=()=>{const St={...Ni,...lr,...Fr,...Do},je={model:(0,Hn.HY)(Bs),comment:Wn.A,container:(0,Hn.HY)(io),ST:Vo,watermark:ei.A},{middleware:qe,setEntryMap:Le}=(0,Yn.RZ)();return Le(St),{store:(0,Hn.y$)((0,Hn.HY)(je),ar((0,Hn.Tw)(qe,vr.v)))}};var mr=i(60690),Yr=i(67787),yi=i(29767),Ri=i(9338),vs=i(85584),ri=i(24437),us=i(72214);const Nr=St=>{class je extends k.PureComponent{constructor(at){super(at),(0,a.A)(this,"abarHandleOnMessage",er=>{(0,gc.cS)(er,null,!0)}),this.state={isZero:!1};const{previewMode:ft,projectAlike:kt,activePageKey:en,activeCanvasKey:kn,isPanelPreviewMode:yn,isCommunityComboPreview:yo,basketKey:Uo,activeWidgetKey:Xo,projectShare:Ia,isPreviewCombo:ja,isQuickPreview:ka,quickPreviewSize:ga}=at;MB.currentProject=kt,(0,gc.et)(kt);try{const er=(0,ri.rV)(en);if(!yn&&!ja&&(0,vs.lB)(Ia)){this.state={isZero:!0};return}MB.runnerController.init({rootProject:kt,activePageKey:er,activeCanvasKey:kn,basketKey:Uo,activeWidgetKey:Xo},ft,yn,yo,Ia,ja,ka,ga)}catch(er){this.state={isZero:!0}}}componentDidMount(){var at,ft;(0,gc.KA)(),(0,gc.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1),(at=(ft=this.props).onComponentDidMount)==null||at.call(ft)}componentWillUnmount(){var at;(at=MB.runnerController)==null||at.clear(),(0,gc.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}render(){const{isZero:at}=this.state;if(at)return(0,yi.V)();const{store:ft,theme:kt,onCloseModal:en,onLunch:kn}=this.props;return(0,us.jsx)(M.Kq,{store:ft,children:(0,us.jsx)(Yr.NP,{theme:mr.A[kt],children:(0,us.jsx)(P.D.Provider,{value:kt,children:(0,us.jsx)(St,{onCloseModal:en,onLunch:kn})})})})}}const qe=(0,C.Mz)([D.m5,D.UB],(Le,at)=>({theme:Le,projectShare:at}));return(0,M.Ng)(Le=>qe(Le))(je)},si=St=>{const je=Nr(St);return Le=>(0,us.jsx)(Ri.A,{children:(0,us.jsx)(je,{...Le})})},Is=St=>{const je=hr(),qe=(0,qn.e)(),Le=new En(je,qe,MB.f),at=si(St);return{runnerController:Le,messageBucket:qe,webpackInterface:je,PreviewApp:at}}},61565:(eo,ot,i)=>{"use strict";i.d(ot,{Lc:()=>a,nC:()=>k,yc:()=>M});const a=P=>P.ST.STMode,k=P=>P.ST.activeTearPreview,M=P=>P.ST.tearOffset},61774:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0989 14.6563H13.8983V13.5458C13.8983 13.3199 14.0815 13.1367 14.3075 13.1367H15.0089C15.2349 13.1367 15.4181 13.3199 15.4181 13.5458V16.176H10.0989V17.0913C10.0989 17.3808 9.80654 17.5787 9.53777 17.4712L3.01444 14.8621C2.70374 14.7378 2.5 14.4369 2.5 14.1023V3.31749C2.5 2.86553 2.86638 2.49915 3.31834 2.49915H14.5998C15.0517 2.49915 15.4181 2.86553 15.4181 3.31749V5.12927C15.4181 5.35525 15.2349 5.53844 15.0089 5.53844H14.3075C14.0815 5.53844 13.8983 5.35525 13.8983 5.12927V4.01879H6.29944L9.58445 5.33268C9.89515 5.45695 10.0989 5.75787 10.0989 6.0925V14.6563ZM17.3975 9.15606C17.5342 9.23804 17.5342 9.43605 17.3975 9.51803L14.2194 11.4247C14.0787 11.5091 13.8998 11.4078 13.8998 11.2437V10.1391C13.8998 10.1158 13.8809 10.0969 13.8575 10.0969H11.0713C10.9547 10.0969 10.8602 10.0024 10.8602 9.88581V8.78828C10.8602 8.67172 10.9547 8.57722 11.0713 8.57722H13.8575C13.8809 8.57722 13.8998 8.55832 13.8998 8.53501V7.43035C13.8998 7.26629 14.0787 7.16496 14.2194 7.24936L17.3975 9.15606Z",fill:"#B7B9BD"}))})},61920:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M10.0001 2.6499C10.3779 2.65165 10.7513 2.73218 11.0958 2.88721C11.4403 3.04224 11.7483 3.26871 12.0001 3.55029L13.5997 3.47998C13.8685 3.4687 14.1349 3.53827 14.3634 3.68018C14.5919 3.82216 14.773 4.02988 14.882 4.27588C14.9909 4.52185 15.0231 4.79542 14.9747 5.06006C14.9263 5.32463 14.7994 5.5688 14.6105 5.76025L13.4601 6.91943C14.9609 7.81535 16.1273 9.179 16.7804 10.8003C17.3669 12.2535 17.4997 13.8866 17.1798 15.6997C17.0976 16.1623 16.8555 16.5816 16.4952 16.8833C16.135 17.185 15.6799 17.3503 15.2101 17.3501H4.79016C4.31883 17.3499 3.8625 17.1831 3.50207 16.8794C3.14171 16.5757 2.90057 16.1543 2.82043 15.6899C2.49835 14.0545 2.63635 12.3617 3.21984 10.8003C3.87293 9.179 5.03934 7.81535 6.54016 6.91943L5.40051 5.76025C5.21077 5.56816 5.08342 5.3228 5.03527 5.05713C4.98713 4.79148 5.01977 4.51744 5.13 4.271C5.2402 4.02468 5.4225 3.81743 5.65246 3.67627C5.8826 3.53511 6.1504 3.46657 6.42004 3.47998L8.00012 3.56006C8.25107 3.27665 8.55888 3.04886 8.90344 2.89209C9.24796 2.73535 9.62163 2.65291 10.0001 2.6499ZM11.3048 8.56592C11.1763 8.60061 11.0664 8.68492 11.0001 8.80029L10.0001 10.5103L9.00012 8.80029C8.93135 8.68878 8.82164 8.60806 8.69445 8.57666C8.56715 8.54531 8.43222 8.56545 8.31945 8.63232C8.20678 8.69917 8.12452 8.80746 8.09094 8.93408C8.05739 9.06082 8.07487 9.19615 8.13977 9.31006L8.95031 10.7202H8.15051C8.01525 10.7202 7.88482 10.774 7.78918 10.8696C7.69376 10.9652 7.63977 11.0949 7.63977 11.23C7.63979 11.3651 7.69372 11.4947 7.78918 11.5903C7.88482 11.686 8.01525 11.7397 8.15051 11.7397H9.50012V12.7397H8.15051C8.01657 12.7397 7.88779 12.7935 7.79309 12.8882C7.69855 12.9828 7.64472 13.1109 7.64465 13.2446C7.64465 13.3786 7.69838 13.5073 7.79309 13.6021C7.88779 13.6967 8.0166 13.7495 8.15051 13.7495H9.49035V15.2603C9.49045 15.3939 9.54335 15.5221 9.63781 15.6167C9.73252 15.7114 9.8613 15.7651 9.99524 15.7651C10.1291 15.7651 10.258 15.7114 10.3527 15.6167C10.4471 15.5221 10.5 15.3939 10.5001 15.2603V13.7397H11.84C11.9726 13.7397 12.0997 13.687 12.1935 13.5933C12.2872 13.4995 12.34 13.3724 12.34 13.2397C12.3399 13.1072 12.2872 12.98 12.1935 12.8862C12.0997 12.7926 11.9725 12.7397 11.84 12.7397H10.5001V11.73H11.8605C11.9943 11.7299 12.1223 11.6762 12.2169 11.5815C12.3115 11.4869 12.3653 11.3589 12.3654 11.2251C12.3654 11.0912 12.3116 10.9624 12.2169 10.8677C12.1223 10.7732 11.9942 10.7203 11.8605 10.7202H11.0597L11.8702 9.30029C11.9365 9.18499 11.9537 9.04783 11.9191 8.91943C11.8844 8.79097 11.8001 8.68105 11.6847 8.61475C11.5695 8.54869 11.433 8.53139 11.3048 8.56592Z",fill:"#B7B9BD"}))})},62532:(eo,ot,i)=>{"use strict";i.d(ot,{$U:()=>Y,Hw:()=>k,KF:()=>P,Q:()=>J,f2:()=>a,iX:()=>q,ks:()=>O,o5:()=>M,uE:()=>C});const a=l=>l.editorPlugin.ruler.rulerConfig,k=l=>l.editorPlugin.ruler.rulerLineCanvas,M=l=>l.editorPlugin.ruler.isDraggingLine,P=l=>l.editorPlugin.ruler.selectedLine,C=l=>{var D;return((D=l.editorPlugin.ruler.selectedLine)==null?void 0:D.length)>0},q=l=>l.editorPlugin.ruler.draggingLine,Y=l=>l.editorPlugin.ruler.rulerRect,J=l=>l.editorPlugin.ruler.isDeleteLine,O=l=>{var D,m,E;const f=(D=l.editorPlugin.ruler.selectedLine)==null?void 0:D[0],h=l.editorPlugin.ruler.draggingLine;return!f||!h||(h==null?void 0:h.type)!==(f==null?void 0:f.type)||(h==null?void 0:h.index)!==(f==null?void 0:f.index)?!1:!(h!=null&&h.canvas)&&!(f!=null&&f.canvas)||(h==null||(m=h.canvas)==null?void 0:m.key)===(f==null||(E=f.canvas)==null?void 0:E.key)}},63195:(eo,ot,i)=>{var a=i(69647),k=i(36315),M=i(19108),P=i(59696),C=a.isFinite,q=Math.min;function Y(J){var O=Math[J];return function(l,D){if(l=M(l),D=D==null?0:q(k(D),292),D&&C(l)){var m=(P(l)+"e").split("e"),E=O(m[0]+"e"+(+m[1]+D));return m=(P(E)+"e").split("e"),+(m[0]+"e"+(+m[1]-D))}return O(l)}}eo.exports=Y},63405:(eo,ot,i)=>{"use strict";i.d(ot,{TA:()=>Aa,u4:()=>Ft});var a=i(18381),k=i(95657),M=i(38502);const P=new Set,C=(I,F)=>{(0,M.useEffect)(()=>(I?(P.add(F),O()):P.delete(F),()=>{P.delete(F)}),[I,F])},q=new Map,Y=(I,F,oe)=>{F?q.set(I,oe):q.delete(I)},J=()=>{q.clear()},O=()=>{[...q].forEach(F=>{let[,oe]=F;return oe()}),q.clear()};var l=i(94754);const D=()=>{const I=(0,a.wA)();return{onUpdateEditingMode:(0,M.useCallback)(oe=>{I({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{editingMode:oe}}})},[I])}},m=I=>{const F=(0,a.wA)(),oe=(0,a.d4)(k.Ag),{editingMode:be,selectedElementState:Mt,editStore:ut}=oe||{},tn=(0,M.useCallback)(K=>{F({type:"entry:aiComponent:float-bar:chat-ai-send",payload:{editingAIComponentInfo:oe,userContent:K,type:"edit"}})},[F,oe]),Xt=(0,M.useCallback)(async K=>{let{file:te}=K;const{isExperience:me,isLoggedExperience:$e,rootProject:nt,currentUser:yt,currentOrg:dt}=I;return me||$e?(MB.notice({text:I18N.LibraryContainer.un_save_tips}),""):new Promise(It=>{(0,l.i3)({files:[te],rootProject:nt,callback:un=>{It((un==null?void 0:un.image)||"")},isFilterSvg:!1},yt,dt)})},[I]),Kn=(0,M.useCallback)(()=>{F({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{selectedElementState:void 0}}})},[F]),{onUpdateEditingMode:ao}=D();(0,M.useEffect)(()=>()=>{},[]);const v=(0,M.useCallback)((K,te,me)=>{Y(K,te,me)},[]);return(0,M.useEffect)(()=>()=>{J()},[]),{registerTogglePanel:v,element:Mt,editStore:ut,editingMode:be,onEditingModeChange:ao,onCancelSelectElement:Kn,onSubmitChat:tn,onUploadImage:Xt}};var E=i(44207),f=i(94586),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const S=h;var V=i(40080),We=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:S}))},re=M.forwardRef(We);const ve=re;var we=i(53732),Ae=i.n(we),Oe=i(95549),Be=i(91834),tt=i(53034),Xe=i(59895),ne=i(22775),lt=i(8131);function rt(){return typeof BigInt=="function"}function Te(I){return!I&&I!==0&&!Number.isNaN(I)||!String(I).trim()}function Ge(I){var F=I.trim(),oe=F.startsWith("-");oe&&(F=F.slice(1)),F=F.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),F.startsWith(".")&&(F="0".concat(F));var be=F||"0",Mt=be.split("."),ut=Mt[0]||"0",tn=Mt[1]||"0";ut==="0"&&tn==="0"&&(oe=!1);var Xt=oe?"-":"";return{negative:oe,negativeStr:Xt,trimStr:be,integerStr:ut,decimalStr:tn,fullStr:"".concat(Xt).concat(be)}}function ue(I){var F=String(I);return!Number.isNaN(Number(F))&&F.includes("e")}function Me(I){var F=String(I);if(ue(I)){var oe=Number(F.slice(F.indexOf("e-")+2)),be=F.match(/\.(\d+)/);return be!=null&&be[1]&&(oe+=be[1].length),oe}return F.includes(".")&&fe(F)?F.length-F.indexOf(".")-1:0}function Ze(I){var F=String(I);if(ue(I)){if(I>Number.MAX_SAFE_INTEGER)return String(rt()?BigInt(I).toString():Number.MAX_SAFE_INTEGER);if(I<Number.MIN_SAFE_INTEGER)return String(rt()?BigInt(I).toString():Number.MIN_SAFE_INTEGER);F=I.toFixed(Me(F))}return Ge(F).fullStr}function fe(I){return typeof I=="number"?!Number.isNaN(I):I?/^\s*-?\d+(\.\d+)?\s*$/.test(I)||/^\s*-?\d+\.\s*$/.test(I)||/^\s*-?\.\d+\s*$/.test(I):!1}var it=function(){function I(F){if((0,ne.A)(this,I),(0,Oe.A)(this,"origin",""),(0,Oe.A)(this,"negative",void 0),(0,Oe.A)(this,"integer",void 0),(0,Oe.A)(this,"decimal",void 0),(0,Oe.A)(this,"decimalLen",void 0),(0,Oe.A)(this,"empty",void 0),(0,Oe.A)(this,"nan",void 0),Te(F)){this.empty=!0;return}if(this.origin=String(F),F==="-"||Number.isNaN(F)){this.nan=!0;return}var oe=F;if(ue(oe)&&(oe=Number(oe)),oe=typeof oe=="string"?oe:Ze(oe),fe(oe)){var be=Ge(oe);this.negative=be.negative;var Mt=be.trimStr.split(".");this.integer=BigInt(Mt[0]);var ut=Mt[1]||"0";this.decimal=BigInt(ut),this.decimalLen=ut.length}else this.nan=!0}return(0,lt.A)(I,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(oe){var be="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(oe,"0"));return BigInt(be)}},{key:"negate",value:function(){var oe=new I(this.toString());return oe.negative=!oe.negative,oe}},{key:"cal",value:function(oe,be,Mt){var ut=Math.max(this.getDecimalStr().length,oe.getDecimalStr().length),tn=this.alignDecimal(ut),Xt=oe.alignDecimal(ut),Kn=be(tn,Xt).toString(),ao=Mt(ut),v=Ge(Kn),K=v.negativeStr,te=v.trimStr,me="".concat(K).concat(te.padStart(ao+1,"0"));return new I("".concat(me.slice(0,-ao),".").concat(me.slice(-ao)))}},{key:"add",value:function(oe){if(this.isInvalidate())return new I(oe);var be=new I(oe);return be.isInvalidate()?this:this.cal(be,function(Mt,ut){return Mt+ut},function(Mt){return Mt})}},{key:"multi",value:function(oe){var be=new I(oe);return this.isInvalidate()||be.isInvalidate()?new I(NaN):this.cal(be,function(Mt,ut){return Mt*ut},function(Mt){return Mt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(oe){return this.toString()===(oe==null?void 0:oe.toString())}},{key:"lessEquals",value:function(oe){return this.add(oe.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return oe?this.isInvalidate()?"":Ge("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),I}(),et=function(){function I(F){if((0,ne.A)(this,I),(0,Oe.A)(this,"origin",""),(0,Oe.A)(this,"number",void 0),(0,Oe.A)(this,"empty",void 0),Te(F)){this.empty=!0;return}this.origin=String(F),this.number=Number(F)}return(0,lt.A)(I,[{key:"negate",value:function(){return new I(-this.toNumber())}},{key:"add",value:function(oe){if(this.isInvalidate())return new I(oe);var be=Number(oe);if(Number.isNaN(be))return this;var Mt=this.number+be;if(Mt>Number.MAX_SAFE_INTEGER)return new I(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new I(Number.MIN_SAFE_INTEGER);var ut=Math.max(Me(this.number),Me(be));return new I(Mt.toFixed(ut))}},{key:"multi",value:function(oe){var be=Number(oe);if(this.isInvalidate()||Number.isNaN(be))return new I(NaN);var Mt=this.number*be;if(Mt>Number.MAX_SAFE_INTEGER)return new I(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new I(Number.MIN_SAFE_INTEGER);var ut=Math.max(Me(this.number),Me(be));return new I(Mt.toFixed(ut))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(oe){return this.toNumber()===(oe==null?void 0:oe.toNumber())}},{key:"lessEquals",value:function(oe){return this.add(oe.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return oe?this.isInvalidate()?"":Ze(this.number):this.origin}}]),I}();function Ut(I){return rt()?new it(I):new et(I)}function G(I,F,oe){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(I==="")return"";var Mt=Ge(I),ut=Mt.negativeStr,tn=Mt.integerStr,Xt=Mt.decimalStr,Kn="".concat(F).concat(Xt),ao="".concat(ut).concat(tn);if(oe>=0){var v=Number(Xt[oe]);if(v>=5&&!be){var K=Ut(I).add("".concat(ut,"0.").concat("0".repeat(oe)).concat(10-v));return G(K.toString(),F,oe,be)}return oe===0?ao:"".concat(ao).concat(F).concat(Xt.padEnd(oe,"0").slice(0,oe))}return Kn===".0"?ao:"".concat(ao).concat(Kn)}const Ht=Ut;var Tt=i(51885),Vt=i(18767);function He(I,F){return typeof Proxy<"u"&&I?new Proxy(I,{get:function(be,Mt){if(F[Mt])return F[Mt];var ut=be[Mt];return typeof ut=="function"?ut.bind(be):ut}}):I}var rn=i(21425),Lt=i(96952);function jt(I,F){var oe=(0,M.useRef)(null);function be(){try{var ut=I.selectionStart,tn=I.selectionEnd,Xt=I.value,Kn=Xt.substring(0,ut),ao=Xt.substring(tn);oe.current={start:ut,end:tn,value:Xt,beforeTxt:Kn,afterTxt:ao}}catch(v){}}function Mt(){if(I&&oe.current&&F)try{var ut=I.value,tn=oe.current,Xt=tn.beforeTxt,Kn=tn.afterTxt,ao=tn.start,v=ut.length;if(ut.startsWith(Xt))v=Xt.length;else if(ut.endsWith(Kn))v=ut.length-oe.current.afterTxt.length;else{var K=Xt[ao-1],te=ut.indexOf(K,ao-1);te!==-1&&(v=te+1)}I.setSelectionRange(v,v)}catch(me){(0,Lt.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(me.message))}}return[be,Mt]}var mt=i(64816),Jn=function(){var F=(0,M.useState)(!1),oe=(0,tt.A)(F,2),be=oe[0],Mt=oe[1];return(0,Vt.A)(function(){Mt((0,mt.A)())},[]),be};const o=Jn;var so=i(23653),Et=200,Jt=600;function Ot(I){var F=I.prefixCls,oe=I.upNode,be=I.downNode,Mt=I.upDisabled,ut=I.downDisabled,tn=I.onStep,Xt=M.useRef(),Kn=M.useRef([]),ao=M.useRef();ao.current=tn;var v=function(){clearTimeout(Xt.current)},K=function(un,xn){un.preventDefault(),v(),ao.current(xn);function gn(){ao.current(xn),Xt.current=setTimeout(gn,Et)}Xt.current=setTimeout(gn,Jt)};M.useEffect(function(){return function(){v(),Kn.current.forEach(function(It){return so.A.cancel(It)})}},[]);var te=o();if(te)return null;var me="".concat(F,"-handler"),$e=Ae()(me,"".concat(me,"-up"),(0,Oe.A)({},"".concat(me,"-up-disabled"),Mt)),nt=Ae()(me,"".concat(me,"-down"),(0,Oe.A)({},"".concat(me,"-down-disabled"),ut)),yt=function(){return Kn.current.push((0,so.A)(v))},dt={unselectable:"on",role:"button",onMouseUp:yt,onMouseLeave:yt};return M.createElement("div",{className:"".concat(me,"-wrap")},M.createElement("span",(0,f.A)({},dt,{onMouseDown:function(un){K(un,!0)},"aria-label":"Increase Value","aria-disabled":Mt,className:$e}),oe||M.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner")})),M.createElement("span",(0,f.A)({},dt,{onMouseDown:function(un){K(un,!1)},"aria-label":"Decrease Value","aria-disabled":ut,className:nt}),be||M.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner")})))}function dn(I){var F=typeof I=="number"?Ze(I):Ge(I).fullStr,oe=F.includes(".");return oe?Ge(F.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:I+"0"}var Ce=i(37898);const Pt=function(){var I=(0,M.useRef)(0),F=function(){so.A.cancel(I.current)};return(0,M.useEffect)(function(){return F},[]),function(oe){F(),I.current=(0,so.A)(function(){oe()})}};var Nn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],At=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],on=function(F,oe){return F||oe.isEmpty()?oe.toString():oe.toNumber()},no=function(F){var oe=Ht(F);return oe.isInvalidate()?null:oe},mo=M.forwardRef(function(I,F){var oe=I.prefixCls,be=I.className,Mt=I.style,ut=I.min,tn=I.max,Xt=I.step,Kn=Xt===void 0?1:Xt,ao=I.defaultValue,v=I.value,K=I.disabled,te=I.readOnly,me=I.upHandler,$e=I.downHandler,nt=I.keyboard,yt=I.changeOnWheel,dt=yt===void 0?!1:yt,It=I.controls,un=It===void 0?!0:It,xn=I.classNames,gn=I.stringMode,wo=I.parser,vo=I.formatter,Co=I.precision,Eo=I.decimalSeparator,go=I.onChange,xo=I.onInput,jo=I.onPressEnter,pa=I.onStep,na=I.changeOnBlur,Ma=na===void 0?!0:na,Ka=I.domRef,Fa=(0,Xe.A)(I,Nn),xr="".concat(oe,"-input"),Tr=M.useRef(null),fi=M.useState(!1),bi=(0,tt.A)(fi,2),Er=bi[0],Ya=bi[1],Br=M.useRef(!1),qa=M.useRef(!1),Mr=M.useRef(!1),qr=M.useState(function(){return Ht(v!=null?v:ao)}),ts=(0,tt.A)(qr,2),Ci=ts[0],Al=ts[1];function sc(fl){v===void 0&&Al(fl)}var hc=M.useCallback(function(fl,Fs){if(!Fs)return Co>=0?Co:Math.max(Me(fl),Me(Kn))},[Co,Kn]),Js=M.useCallback(function(fl){var Fs=String(fl);if(wo)return wo(Fs);var bc=Fs;return Eo&&(bc=bc.replace(Eo,".")),bc.replace(/[^\w.-]+/g,"")},[wo,Eo]),sl=M.useRef(""),di=M.useCallback(function(fl,Fs){if(vo)return vo(fl,{userTyping:Fs,input:String(sl.current)});var bc=typeof fl=="number"?Ze(fl):fl;if(!Fs){var Bl=hc(bc,Fs);if(fe(bc)&&(Eo||Bl>=0)){var X1=Eo||".";bc=G(bc,X1,Bl)}}return bc},[vo,hc,Eo]),Ss=M.useState(function(){var fl=ao!=null?ao:v;return Ci.isInvalidate()&&["string","number"].includes((0,Be.A)(fl))?Number.isNaN(fl)?"":fl:di(Ci.toString(),!1)}),Ol=(0,tt.A)(Ss,2),Ac=Ol[0],I1=Ol[1];sl.current=Ac;function Ed(fl,Fs){I1(di(fl.isInvalidate()?fl.toString(!1):fl.toString(!Fs),Fs))}var Vi=M.useMemo(function(){return no(tn)},[tn,Co]),qs=M.useMemo(function(){return no(ut)},[ut,Co]),ll=M.useMemo(function(){return!Vi||!Ci||Ci.isInvalidate()?!1:Vi.lessEquals(Ci)},[Vi,Ci]),i0=M.useMemo(function(){return!qs||!Ci||Ci.isInvalidate()?!1:Ci.lessEquals(qs)},[qs,Ci]),kp=jt(Tr.current,Er),g0=(0,tt.A)(kp,2),Au=g0[0],D2=g0[1],cl=function(Fs){return Vi&&!Fs.lessEquals(Vi)?Vi:qs&&!qs.lessEquals(Fs)?qs:null},vd=function(Fs){return!cl(Fs)},ed=function(Fs,bc){var Bl=Fs,X1=vd(Bl)||Bl.isEmpty();if(!Bl.isEmpty()&&!bc&&(Bl=cl(Bl)||Bl,X1=!0),!te&&!K&&X1){var s0=Bl.toString(),Zh=hc(s0,bc);return Zh>=0&&(Bl=Ht(G(s0,".",Zh)),vd(Bl)||(Bl=Ht(G(s0,".",Zh,!0)))),Bl.equals(Ci)||(sc(Bl),go==null||go(Bl.isEmpty()?null:on(gn,Bl)),v===void 0&&Ed(Bl,bc)),Bl}return Ci},Ml=Pt(),Mu=function fl(Fs){if(Au(),sl.current=Fs,I1(Fs),!qa.current){var bc=Js(Fs),Bl=Ht(bc);Bl.isNaN()||ed(Bl,!0)}xo==null||xo(Fs),Ml(function(){var X1=Fs;wo||(X1=Fs.replace(/。/g,".")),X1!==Fs&&fl(X1)})},is=function(){qa.current=!0},Gs=function(){qa.current=!1,Mu(Tr.current.value)},ml=function(Fs){Mu(Fs.target.value)},Rl=function(Fs){var bc;if(!(Fs&&ll||!Fs&&i0)){Br.current=!1;var Bl=Ht(Mr.current?dn(Kn):Kn);Fs||(Bl=Bl.negate());var X1=(Ci||Ht(0)).add(Bl.toString()),s0=ed(X1,!1);pa==null||pa(on(gn,s0),{offset:Mr.current?dn(Kn):Kn,type:Fs?"up":"down"}),(bc=Tr.current)===null||bc===void 0||bc.focus()}},Mc=function(Fs){var bc=Ht(Js(Ac)),Bl;bc.isNaN()?Bl=ed(Ci,Fs):Bl=ed(bc,Fs),v!==void 0?Ed(Ci,!1):Bl.isNaN()||Ed(Bl,!1)},y0=function(){Br.current=!0},ku=function(Fs){var bc=Fs.key,Bl=Fs.shiftKey;Br.current=!0,Mr.current=Bl,bc==="Enter"&&(qa.current||(Br.current=!1),Mc(!1),jo==null||jo(Fs)),nt!==!1&&!qa.current&&["Up","ArrowUp","Down","ArrowDown"].includes(bc)&&(Rl(bc==="Up"||bc==="ArrowUp"),Fs.preventDefault())},Yu=function(){Br.current=!1,Mr.current=!1};M.useEffect(function(){if(dt&&Er){var fl=function(Bl){Rl(Bl.deltaY<0),Bl.preventDefault()},Fs=Tr.current;if(Fs)return Fs.addEventListener("wheel",fl,{passive:!1}),function(){return Fs.removeEventListener("wheel",fl)}}});var Eu=function(){Ma&&Mc(!1),Ya(!1),Br.current=!1};return(0,Vt.o)(function(){Ci.isInvalidate()||Ed(Ci,!1)},[Co,vo]),(0,Vt.o)(function(){var fl=Ht(v);Al(fl);var Fs=Ht(Js(Ac));(!fl.equals(Fs)||!Br.current||vo)&&Ed(fl,Br.current)},[v]),(0,Vt.o)(function(){vo&&D2()},[Ac]),M.createElement("div",{ref:Ka,className:Ae()(oe,be,(0,Oe.A)((0,Oe.A)((0,Oe.A)((0,Oe.A)((0,Oe.A)({},"".concat(oe,"-focused"),Er),"".concat(oe,"-disabled"),K),"".concat(oe,"-readonly"),te),"".concat(oe,"-not-a-number"),Ci.isNaN()),"".concat(oe,"-out-of-range"),!Ci.isInvalidate()&&!vd(Ci))),style:Mt,onFocus:function(){Ya(!0)},onBlur:Eu,onKeyDown:ku,onKeyUp:Yu,onCompositionStart:is,onCompositionEnd:Gs,onBeforeInput:y0},un&&M.createElement(Ot,{prefixCls:oe,upNode:me,downNode:$e,upDisabled:ll,downDisabled:i0,onStep:Rl}),M.createElement("div",{className:"".concat(xr,"-wrap")},M.createElement("input",(0,f.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":ut,"aria-valuemax":tn,"aria-valuenow":Ci.isInvalidate()?null:Ci.toString(),step:Kn},Fa,{ref:(0,rn.K4)(Tr,F),className:xr,value:Ac,onChange:ml,disabled:K,readOnly:te}))))}),mn=M.forwardRef(function(I,F){var oe=I.disabled,be=I.style,Mt=I.prefixCls,ut=Mt===void 0?"rc-input-number":Mt,tn=I.value,Xt=I.prefix,Kn=I.suffix,ao=I.addonBefore,v=I.addonAfter,K=I.className,te=I.classNames,me=(0,Xe.A)(I,At),$e=M.useRef(null),nt=M.useRef(null),yt=M.useRef(null),dt=function(un){yt.current&&(0,Ce.F4)(yt.current,un)};return M.useImperativeHandle(F,function(){return He(yt.current,{focus:dt,nativeElement:$e.current.nativeElement||nt.current})}),M.createElement(Tt.a,{className:K,triggerFocus:dt,prefixCls:ut,value:tn,disabled:oe,style:be,prefix:Xt,suffix:Kn,addonAfter:v,addonBefore:ao,classNames:te,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:$e},M.createElement(mo,(0,f.A)({prefixCls:ut,disabled:oe,ref:yt,domRef:nt,className:te==null?void 0:te.input},me)))});const Fn=mn;var Yt=i(27479),Gt=i(49212),Bn=i(46757),qt=i(26580),Zt=i(16981),jn=i(46656),ro=i(37567),Tn=i(90852),bt=i(73650),Wt=i(31161),wn=i(61972),uo=i(97320),In=i(35125),Dn=i(88124),So=i(55095),Qt=i(91112),Ln=i(58196),Mn=i(48150),Rt=i(95390);const Qe=I=>{var F;const oe=(F=I.handleVisible)!==null&&F!==void 0?F:"auto",be=I.controlHeightSM-I.lineWidth*2;return Object.assign(Object.assign({},(0,In.b)(I)),{controlWidth:90,handleWidth:be,handleFontSize:I.fontSize/2,handleVisible:oe,handleActiveBg:I.colorFillAlter,handleBg:I.colorBgContainer,filledHandleBg:new Rt.Y(I.colorFillSecondary).onBackground(I.colorBgContainer).toHexString(),handleHoverColor:I.colorPrimary,handleBorderColor:I.colorBorder,handleOpacity:oe===!0?1:0,handleVisibleWidth:oe===!0?be:0})},En=(I,F)=>{let{componentCls:oe,borderRadiusSM:be,borderRadiusLG:Mt}=I;const ut=F==="lg"?Mt:be;return{["&-"+F]:{[oe+"-handler-wrap"]:{borderStartEndRadius:ut,borderEndEndRadius:ut},[oe+"-handler-up"]:{borderStartEndRadius:ut},[oe+"-handler-down"]:{borderEndEndRadius:ut}}}},qn=I=>{const{componentCls:F,lineWidth:oe,lineType:be,borderRadius:Mt,inputFontSizeSM:ut,inputFontSizeLG:tn,controlHeightLG:Xt,controlHeightSM:Kn,colorError:ao,paddingInlineSM:v,paddingBlockSM:K,paddingBlockLG:te,paddingInlineLG:me,colorIcon:$e,motionDurationMid:nt,handleHoverColor:yt,handleOpacity:dt,paddingInline:It,paddingBlock:un,handleBg:xn,handleActiveBg:gn,colorTextDisabled:wo,borderRadiusSM:vo,borderRadiusLG:Co,controlWidth:Eo,handleBorderColor:go,filledHandleBg:xo,lineHeightLG:jo,calc:pa}=I;return[{[F]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,So.dF)(I)),(0,uo.wj)(I)),{display:"inline-block",width:Eo,margin:0,padding:0,borderRadius:Mt}),(0,Dn.Eb)(I,{[F+"-handler-wrap"]:{background:xn,[F+"-handler-down"]:{borderBlockStart:(0,wn.zA)(oe)+" "+be+" "+go}}})),(0,Dn.sA)(I,{[F+"-handler-wrap"]:{background:xo,[F+"-handler-down"]:{borderBlockStart:(0,wn.zA)(oe)+" "+be+" "+go}},"&:focus-within":{[F+"-handler-wrap"]:{background:xn}}})),(0,Dn.aP)(I,{[F+"-handler-wrap"]:{background:xn,[F+"-handler-down"]:{borderBlockStart:(0,wn.zA)(oe)+" "+be+" "+go}}})),(0,Dn.lB)(I)),{"&-rtl":{direction:"rtl",[F+"-input"]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:tn,lineHeight:jo,borderRadius:Co,["input"+F+"-input"]:{height:pa(Xt).sub(pa(oe).mul(2)).equal(),padding:(0,wn.zA)(te)+" "+(0,wn.zA)(me)}},"&-sm":{padding:0,fontSize:ut,borderRadius:vo,["input"+F+"-input"]:{height:pa(Kn).sub(pa(oe).mul(2)).equal(),padding:(0,wn.zA)(K)+" "+(0,wn.zA)(v)}},"&-out-of-range":{[F+"-input-wrap"]:{input:{color:ao}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,So.dF)(I)),(0,uo.XM)(I)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[F+"-affix-wrapper"]:{width:"100%"},"&-lg":{[F+"-group-addon"]:{borderRadius:Co,fontSize:I.fontSizeLG}},"&-sm":{[F+"-group-addon"]:{borderRadius:vo}}},(0,Dn.nm)(I)),(0,Dn.Vy)(I)),{["&:not("+F+"-compact-first-item):not("+F+"-compact-last-item)"+F+"-compact-item"]:{[F+", "+F+"-group-addon"]:{borderRadius:0}},["&:not("+F+"-compact-last-item)"+F+"-compact-first-item"]:{[F+", "+F+"-group-addon"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not("+F+"-compact-first-item)"+F+"-compact-last-item"]:{[F+", "+F+"-group-addon"]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled "+F+"-input"]:{cursor:"not-allowed"},[F]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,So.dF)(I)),{width:"100%",padding:(0,wn.zA)(un)+" "+(0,wn.zA)(It),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Mt,outline:0,transition:"all "+nt+" linear",appearance:"textfield",fontSize:"inherit"}),(0,uo.j_)(I.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},["&:hover "+F+"-handler-wrap, &-focused "+F+"-handler-wrap"]:{width:I.handleWidth,opacity:1}})},{[F]:Object.assign(Object.assign(Object.assign({[F+"-handler-wrap"]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:I.handleVisibleWidth,opacity:dt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"all "+nt,overflow:"hidden",[F+"-handler"]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n "+F+"-handler-up-inner,\n "+F+"-handler-down-inner\n "]:{marginInlineEnd:0,fontSize:I.handleFontSize}}},[F+"-handler"]:{height:"50%",overflow:"hidden",color:$e,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:(0,wn.zA)(oe)+" "+be+" "+go,transition:"all "+nt+" linear","&:active":{background:gn},"&:hover":{height:"60%",["\n "+F+"-handler-up-inner,\n "+F+"-handler-down-inner\n "]:{color:yt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,So.Nk)()),{color:$e,transition:"all "+nt+" linear",userSelect:"none"})},[F+"-handler-up"]:{borderStartEndRadius:Mt},[F+"-handler-down"]:{borderEndEndRadius:Mt}},En(I,"lg")),En(I,"sm")),{"&-disabled, &-readonly":{[F+"-handler-wrap"]:{display:"none"},[F+"-input"]:{color:"inherit"}},["\n "+F+"-handler-up-disabled,\n "+F+"-handler-down-disabled\n "]:{cursor:"not-allowed"},["\n "+F+"-handler-up-disabled:hover &-handler-up-inner,\n "+F+"-handler-down-disabled:hover &-handler-down-inner\n "]:{color:wo}})}]},Hn=I=>{const{componentCls:F,paddingBlock:oe,paddingInline:be,inputAffixPadding:Mt,controlWidth:ut,borderRadiusLG:tn,borderRadiusSM:Xt,paddingInlineLG:Kn,paddingInlineSM:ao,paddingBlockLG:v,paddingBlockSM:K,motionDurationMid:te}=I;return{[F+"-affix-wrapper"]:Object.assign(Object.assign({["input"+F+"-input"]:{padding:(0,wn.zA)(oe)+" 0"}},(0,uo.wj)(I)),{position:"relative",display:"inline-flex",alignItems:"center",width:ut,padding:0,paddingInlineStart:be,"&-lg":{borderRadius:tn,paddingInlineStart:Kn,["input"+F+"-input"]:{padding:(0,wn.zA)(v)+" 0"}},"&-sm":{borderRadius:Xt,paddingInlineStart:ao,["input"+F+"-input"]:{padding:(0,wn.zA)(K)+" 0"}},["&:not("+F+"-disabled):hover"]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > "+F+"-disabled"]:{background:"transparent"},["> div"+F]:{width:"100%",border:"none",outline:"none",["&"+F+"-focused"]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[F+"-handler-wrap"]:{zIndex:2},[F]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Mt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:be,marginInlineStart:Mt,transition:"margin "+te}},["&:hover "+F+"-handler-wrap, &-focused "+F+"-handler-wrap"]:{width:I.handleWidth,opacity:1},["&:not("+F+"-affix-wrapper-without-controls):hover "+F+"-suffix"]:{marginInlineEnd:I.calc(I.handleWidth).add(be).equal()}}),[F+"-underlined"]:{borderRadius:0}}},Yn=(0,Ln.OF)("InputNumber",I=>{const F=(0,Mn.oX)(I,(0,In.C)(I));return[qn(F),Hn(F),(0,Qt.G)(F)]},Qe,{unitless:{handleOpacity:!0}});var oo=function(I,F){var oe={};for(var be in I)Object.prototype.hasOwnProperty.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,be=Object.getOwnPropertySymbols(I);Mt<be.length;Mt++)F.indexOf(be[Mt])<0&&Object.prototype.propertyIsEnumerable.call(I,be[Mt])&&(oe[be[Mt]]=I[be[Mt]]);return oe};const To=M.forwardRef((I,F)=>{const{getPrefixCls:oe,direction:be}=M.useContext(Bn.QO),Mt=M.useRef(null);M.useImperativeHandle(F,()=>Mt.current);const{className:ut,rootClassName:tn,size:Xt,disabled:Kn,prefixCls:ao,addonBefore:v,addonAfter:K,prefix:te,suffix:me,bordered:$e,readOnly:nt,status:yt,controls:dt,variant:It}=I,un=oo(I,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),xn=oe("input-number",ao),gn=(0,jn.A)(xn),[wo,vo,Co]=Yn(xn,gn),{compactSize:Eo,compactItemClassnames:go}=(0,Wt.RQ)(xn,be);let xo=M.createElement(ve,{className:xn+"-handler-up-inner"}),jo=M.createElement(E.A,{className:xn+"-handler-down-inner"});const pa=typeof dt=="boolean"?dt:void 0;typeof dt=="object"&&(xo=typeof dt.upIcon>"u"?xo:M.createElement("span",{className:xn+"-handler-up-inner"},dt.upIcon),jo=typeof dt.downIcon>"u"?jo:M.createElement("span",{className:xn+"-handler-down-inner"},dt.downIcon));const{hasFeedback:na,status:Ma,isFormItemInput:Ka,feedbackIcon:Fa}=M.useContext(Tn.$W),xr=(0,Gt.v)(Ma,yt),Tr=(0,ro.A)(ts=>{var Ci;return(Ci=Xt!=null?Xt:Eo)!==null&&Ci!==void 0?Ci:ts}),fi=M.useContext(Zt.A),bi=Kn!=null?Kn:fi,[Er,Ya]=(0,bt.A)("inputNumber",It,$e),Br=na&&M.createElement(M.Fragment,null,Fa),qa=Ae()({[xn+"-lg"]:Tr==="large",[xn+"-sm"]:Tr==="small",[xn+"-rtl"]:be==="rtl",[xn+"-in-form-item"]:Ka},vo),Mr=xn+"-group",qr=M.createElement(Fn,Object.assign({ref:Mt,disabled:bi,className:Ae()(Co,gn,ut,tn,go),upHandler:xo,downHandler:jo,prefixCls:xn,readOnly:nt,controls:pa,prefix:te,suffix:Br||me,addonBefore:v&&M.createElement(Yt.A,{form:!0,space:!0},v),addonAfter:K&&M.createElement(Yt.A,{form:!0,space:!0},K),classNames:{input:qa,variant:Ae()({[xn+"-"+Er]:Ya},(0,Gt.L)(xn,xr,na)),affixWrapper:Ae()({[xn+"-affix-wrapper-sm"]:Tr==="small",[xn+"-affix-wrapper-lg"]:Tr==="large",[xn+"-affix-wrapper-rtl"]:be==="rtl",[xn+"-affix-wrapper-without-controls"]:dt===!1||bi},vo),wrapper:Ae()({[Mr+"-rtl"]:be==="rtl"},vo),groupWrapper:Ae()({[xn+"-group-wrapper-sm"]:Tr==="small",[xn+"-group-wrapper-lg"]:Tr==="large",[xn+"-group-wrapper-rtl"]:be==="rtl",[xn+"-group-wrapper-"+Er]:Ya},(0,Gt.L)(xn+"-group-wrapper",xr,na),vo)}},un));return wo(qr)}),po=To,Oo=I=>M.createElement(qt.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},M.createElement(To,Object.assign({},I)));po._InternalPanelDoNotUseOrYouWillBeFired=Oo;const Qo=po,ea=()=>document.querySelector("#ai-setter-toolbar"),_n=function(I){I===void 0&&(I=".ant-tooltip:not(.ant-tooltip-hidden)"),setTimeout(()=>{var F;(F=ea())==null||F.querySelectorAll(I).forEach(oe=>oe.classList.add("ant-tooltip-hidden"))},100)},Un=(I,F)=>{const be={Delete:"delete",Backspace:"backspace"}[I.key]||I.key.toLowerCase();["delete","backspace"].includes(be)&&I.stopPropagation(),be==="enter"&&(F==null||F())};var cn=i(67787),nn=Object.defineProperty,Zn=Object.defineProperties,ho=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,ia=(I,F,oe)=>F in I?nn(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,xa=(I,F)=>{for(var oe in F||(F={}))Mo.call(F,oe)&&ia(I,oe,F[oe]);if(Xn)for(var oe of Xn(F))Zo.call(F,oe)&&ia(I,oe,F[oe]);return I},fa=(I,F)=>Zn(I,ho(F)),zo=(I,F)=>{var oe={};for(var be in I)Mo.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Xn)for(var be of Xn(I))F.indexOf(be)<0&&Zo.call(I,be)&&(oe[be]=I[be]);return oe},Sa=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=zo(oe,["size","spin","style"]);const Xt=xa(xa({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",fa(xa({ref:F,style:Xt},tn),{width:"7",height:"4",viewBox:"0 0 7 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.12371 0.430043C3.32292 0.20238 3.67708 0.20238 3.87629 0.430044L6.2744 3.17075C6.55728 3.49404 6.32769 4 5.89812 4H1.10188C0.672305 4 0.442716 3.49404 0.725596 3.17075L3.12371 0.430043Z",fill:"#8B8C8F"}))}),ln=i(72214);const ta=I=>{let{text:F,min:oe,max:be,originValue:Mt,allowValidValues:ut}=I;if(F==null)return Mt;if(ut&&ut.includes(F))return F;const tn=parseFloat(F);return isNaN(tn)||typeof oe!="number"||typeof be!="number"?Mt:tn>be?be:tn<oe?oe:tn},ko=I=>{const{value:F,onChange:oe,allowValidValues:be,className:Mt="",style:ut={},controls:tn}=I,Xt=(0,M.useRef)(null),Kn=(0,M.useRef)(!1),ao=(0,M.useRef)(),v=(0,M.useRef)({value:F,min:I.min,max:I.max});(0,M.useEffect)(()=>{v.current={value:F,min:I.min,max:I.max}},[F,I.min,I.max]),(0,M.useEffect)(()=>()=>{const dt=ao.current,{value:It,min:un,max:xn}=v.current,gn=ta({text:dt,min:un,max:xn,originValue:It,allowValidValues:be});gn!==It&&(oe==null||oe(gn))},[]);const K=dt=>{var It;Un(dt,()=>{var un;Kn.current||((un=Xt.current)==null||un.blur(),te())}),(It=I.onKeyDown)==null||It.call(I,dt)},te=()=>{if(!be||be.length===0)return;const dt=ao.current;dt&&be.includes(dt)&&(oe==null||oe(dt))},me=dt=>{var It;te(),(It=I.onBlur)==null||It.call(I,dt)},$e=dt=>{var It;ao.current=dt.trim(),(It=I.onInput)==null||It.call(I,dt)},nt=()=>{Kn.current=!0},yt=()=>{Kn.current=!1};return(0,ln.jsx)(cn.e$,{children:dt=>(0,ln.jsx)(bo,{...I,ref:Xt,className:Mt+" toolbar-setter-input-number",style:{...ut,width:(ut==null?void 0:ut.width)||80,height:(ut==null?void 0:ut.height)||32,backgroundColor:(ut==null?void 0:ut.backgroundColor)||(dt==null?void 0:dt.color_bg_card)},controls:tn!==void 0?tn:{upIcon:(0,ln.jsx)(Sa,{className:"arrow-icon up"}),downIcon:(0,ln.jsx)(Sa,{className:"arrow-icon down"})},onCompositionStart:nt,onCompositionEnd:yt,onBlur:me,onKeyDown:K,onInput:$e})})},bo=(0,cn.Ay)(Qo).withConfig({displayName:"InputNumber__StyledInputNumber",componentId:"sc-imrjp2-0"})(["&.toolbar-setter-input-number{transition:none;&:hover{background-color:"," !important;.ant-input-number-handler-wrap{opacity:1;}}&.ant-input-number-outlined{border:none;padding-inline-start:4px;&:focus-within{outline:2px solid ",";outline-offset:-2px;.ant-input-number-handler-wrap{opacity:1;}}}.ant-input-number-prefix{margin-inline-end:6px;color:",';svg{*[fill]{fill:currentColor;}*[fill="none"]{fill:none;}*[stroke]{stroke:currentColor;}*[stroke="none"]{stroke:none;}}}}.ant-input-number,&.ant-input-number{display:flex;align-items:center;height:100%;gap:6px;.ant-input-number-input-wrap{order:1;flex:1;.ant-input-number-input{padding:4px 0;color:',";}}.ant-input-number-handler-wrap{width:16px;order:2;background:transparent;transition:none;.ant-input-number-handler-up{align-items:flex-end;padding-bottom:3px;}.ant-input-number-handler-down{align-items:flex-start;padding-top:3px;}.arrow-icon{width:7px !important;height:4px !important;color:",";path{fill:currentColor;}&.down{transform:rotate(180deg);}}.ant-input-number-handler{border:none;&:hover{height:40%;.arrow-icon{color:",";}}}}}"],I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_btn_primary_normal,I=>I.theme.color_text_L1,I=>I.theme.color_text_L1,I=>I.theme.color_text_L3,I=>I.theme.color_btn_primary_normal);var aa=Object.defineProperty,ma=Object.defineProperties,dr=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Va=(I,F,oe)=>F in I?aa(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Ha=(I,F)=>{for(var oe in F||(F={}))Ir.call(F,oe)&&Va(I,oe,F[oe]);if(ni)for(var oe of ni(F))$a.call(F,oe)&&Va(I,oe,F[oe]);return I},or=(I,F)=>ma(I,dr(F)),gi=(I,F)=>{var oe={};for(var be in I)Ir.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&ni)for(var be of ni(I))F.indexOf(be)<0&&$a.call(I,be)&&(oe[be]=I[be]);return oe},Qi=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=gi(oe,["size","spin","style"]);const Xt=Ha(Ha({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",or(Ha({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M6.5 18.5H7.25V20H5.75C5.33579 20 5 19.6642 5 19.25V17.75H6.5V18.5ZM11.25 20H8.75V18.5H11.25V20ZM15.25 20H12.75V18.5H15.25V20ZM19 17.75V19.25C19 19.6642 18.6642 20 18.25 20H16.75V18.5H17.5V17.75H19ZM6.5 16H5V13.5H6.5V16ZM19 16H17.5V13.5H19V16ZM6.5 12H5V9.5H6.5V12ZM19 12H17.5V9.5H19V12ZM19 4C19.5523 4 20 4.44772 20 5V7L19.9951 7.10254C19.9438 7.60667 19.5177 8 19 8H5L4.89746 7.99512C4.39333 7.94379 4 7.51768 4 7V5C4 4.48232 4.39333 4.05621 4.89746 4.00488L5 4H19ZM5.5 6.5H18.5V5.5H5.5V6.5Z",fill:"#19191A"}))}),rs=Object.defineProperty,Li=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,Es=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,mi=(I,F,oe)=>F in I?rs(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Bt=(I,F)=>{for(var oe in F||(F={}))ys.call(F,oe)&&mi(I,oe,F[oe]);if(Es)for(var oe of Es(F))sr.call(F,oe)&&mi(I,oe,F[oe]);return I},vn=(I,F)=>Li(I,ns(F)),Io=(I,F)=>{var oe={};for(var be in I)ys.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Es)for(var be of Es(I))F.indexOf(be)<0&&sr.call(I,be)&&(oe[be]=I[be]);return oe},_a=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Io(oe,["size","spin","style"]);const Xt=Bt(Bt({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",vn(Bt({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("rect",{x:"4",y:"5",width:"16",height:"1",rx:"0.5",fill:"#19191A"}),M.createElement("rect",{x:"4",y:"10.25",width:"16",height:"2",rx:"1",fill:"#19191A"}),M.createElement("rect",{x:"4",y:"16.5",width:"16",height:"2.5",rx:"1.25",fill:"#19191A"}))}),Ur=Object.defineProperty,fr=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,os=Object.prototype.propertyIsEnumerable,Ei=(I,F,oe)=>F in I?Ur(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Kl=(I,F)=>{for(var oe in F||(F={}))Fr.call(F,oe)&&Ei(I,oe,F[oe]);if(zr)for(var oe of zr(F))os.call(F,oe)&&Ei(I,oe,F[oe]);return I},as=(I,F)=>fr(I,Ar(F)),al=(I,F)=>{var oe={};for(var be in I)Fr.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&zr)for(var be of zr(I))F.indexOf(be)<0&&os.call(I,be)&&(oe[be]=I[be]);return oe},Cd=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=al(oe,["size","spin","style"]);const Xt=Kl(Kl({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",as(Kl({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M15.3164 18.5C15.7306 18.5 16.0664 18.8358 16.0664 19.25C16.0664 19.6642 15.7306 20 15.3164 20H8.81641C8.40231 19.9999 8.06641 19.6641 8.06641 19.25C8.06641 18.8359 8.40231 18.5001 8.81641 18.5H15.3164ZM4.75 8.06641C5.16405 8.0666 5.5 8.40329 5.5 8.81738V15.3174C5.49974 15.7312 5.16388 16.0662 4.75 16.0664C4.33579 16.0664 4 15.7306 4 15.3164V8.81641C4.00026 8.40242 4.33595 8.06641 4.75 8.06641ZM19.25 7.93262C19.664 7.93281 20 8.2695 20 8.68359V15.1836C19.9997 15.5975 19.6639 15.9324 19.25 15.9326C18.8358 15.9326 18.5 15.5968 18.5 15.1826V8.68262C18.5003 8.26863 18.8359 7.93262 19.25 7.93262ZM15.1826 4C15.5968 4 15.9326 4.33579 15.9326 4.75C15.9326 5.16421 15.5968 5.5 15.1826 5.5H8.68262C8.2684 5.5 7.93262 5.16421 7.93262 4.75C7.93262 4.33579 8.2684 4 8.68262 4H15.1826Z",fill:"#19191A"}))}),wc=Object.defineProperty,ba=Object.defineProperties,$r=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Ec=Object.prototype.propertyIsEnumerable,ps=(I,F,oe)=>F in I?wc(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Yl=(I,F)=>{for(var oe in F||(F={}))Bs.call(F,oe)&&ps(I,oe,F[oe]);if(Ni)for(var oe of Ni(F))Ec.call(F,oe)&&ps(I,oe,F[oe]);return I},ls=(I,F)=>ba(I,$r(F)),wl=(I,F)=>{var oe={};for(var be in I)Bs.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Ni)for(var be of Ni(I))F.indexOf(be)<0&&Ec.call(I,be)&&(oe[be]=I[be]);return oe},lc=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=wl(oe,["size","spin","style"]);const Xt=Yl(Yl({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",ls(Yl({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M18 6H12C8.68629 6 6 8.68629 6 12V18",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))}),Ic=Object.defineProperty,Gc=Object.defineProperties,mc=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,Ca=(I,F,oe)=>F in I?Ic(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,ya=(I,F)=>{for(var oe in F||(F={}))gc.call(F,oe)&&Ca(I,oe,F[oe]);if(Zc)for(var oe of Zc(F))Fo.call(F,oe)&&Ca(I,oe,F[oe]);return I},Ba=(I,F)=>Gc(I,mc(F)),Xa=(I,F)=>{var oe={};for(var be in I)gc.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Zc)for(var be of Zc(I))F.indexOf(be)<0&&Fo.call(I,be)&&(oe[be]=I[be]);return oe},Vn=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Xa(oe,["size","spin","style"]);const Xt=ya(ya({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Ba(ya({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M5.5 18.5H5.875V20H5L4.89746 19.9951C4.39333 19.9438 4 19.5177 4 19V18.125H5.5V18.5ZM9.375 20H7.625V18.5H9.375V20ZM12.875 20H11.125V18.5H12.875V20ZM16.375 20H14.625V18.5H16.375V20ZM20 19C20 19.5523 19.5523 20 19 20H18.125V18.5H18.5V18.125H20V19ZM5.5 16.375H4V14.625H5.5V16.375ZM20 16.375H18.5V14.625H20V16.375ZM20 12.875H18.5V11.125H20V12.875ZM12 5.5C8.41015 5.5 5.5 8.41015 5.5 12H4C4 7.58172 7.58172 4 12 4V5.5ZM20 9.375H18.5V7.625H20V9.375ZM19 4C19.5523 4 20 4.44772 20 5V5.875H18.5V5.5H18.125V4H19ZM16.375 5.5H14.625V4H16.375V5.5Z",fill:"#19191A"}))}),io=Object.defineProperty,Wn=Object.defineProperties,$n=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Bo=Object.prototype.propertyIsEnumerable,Ro=(I,F,oe)=>F in I?io(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Pa=(I,F)=>{for(var oe in F||(F={}))Do.call(F,oe)&&Ro(I,oe,F[oe]);if(Vo)for(var oe of Vo(F))Bo.call(F,oe)&&Ro(I,oe,F[oe]);return I},la=(I,F)=>Wn(I,$n(F)),Go=(I,F)=>{var oe={};for(var be in I)Do.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Vo)for(var be of Vo(I))F.indexOf(be)<0&&Bo.call(I,be)&&(oe[be]=I[be]);return oe},tr=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Go(oe,["size","spin","style"]);const Xt=Pa(Pa({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",la(Pa({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4.75 14.5C5.16421 14.5 5.5 14.8358 5.5 15.25V17.25C5.5 17.9404 6.05964 18.5 6.75 18.5H8.75C9.16421 18.5 9.5 18.8358 9.5 19.25C9.5 19.6642 9.16421 20 8.75 20H6.75C5.23122 20 4 18.7688 4 17.25V15.25C4 14.8358 4.33579 14.5 4.75 14.5ZM19.25 14.5C19.6642 14.5 20 14.8358 20 15.25V17.25C20 18.7688 18.7688 20 17.25 20H15.25C14.8358 20 14.5 19.6642 14.5 19.25C14.5 18.8358 14.8358 18.5 15.25 18.5H17.25C17.9404 18.5 18.5 17.9404 18.5 17.25V15.25C18.5 14.8358 18.8358 14.5 19.25 14.5ZM8.75 4C9.16421 4 9.5 4.33579 9.5 4.75C9.5 5.16421 9.16421 5.5 8.75 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V8.75C5.5 9.16421 5.16421 9.5 4.75 9.5C4.33579 9.5 4 9.16421 4 8.75V6.75C4 5.23122 5.23122 4 6.75 4H8.75ZM17.25 4C18.7688 4 20 5.23122 20 6.75V8.75C20 9.16421 19.6642 9.5 19.25 9.5C18.8358 9.5 18.5 9.16421 18.5 8.75V6.75C18.5 6.05964 17.9404 5.5 17.25 5.5H15.25C14.8358 5.5 14.5 5.16421 14.5 4.75C14.5 4.33579 14.8358 4 15.25 4H17.25Z",fill:"#19191A"}))}),wr=i(65712),Pr=i(92312),br=i(83199);const lr=I=>{let{tooltip:F,children:oe,...be}=I;return F!=null&&F.title?(0,ln.jsx)(br.A,{content:F==null?void 0:F.title,direction:"down",distance:12,className:"floating-tooltip",children:(0,ln.jsx)(ei,{...be,children:oe})}):(0,ln.jsx)(ei,{...be,children:oe})},ei=(0,cn.Ay)(Pr.Ay).withConfig({displayName:"IconButton__StyledIconButton",componentId:"sc-jlmc44-0"})(["&.ant-btn{border-radius:6px;animation:none;transition:none;.ant-btn-icon{line-height:1;font-size:0;}&.ant-btn-variant-text:not(:disabled):not(.ant-btn-disabled){color:",";&:hover{background-color:",";}&:active{background-color:",";}}&.ant-btn-color-primary.ant-btn-variant-filled:not(:disabled):not(.ant-btn-disabled){color:",";background-color:",";&:hover,&:active{color:",";background-color:",";}}}"],I=>I.theme.color_text_L1,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_btn_secondary_active,I=>I.theme.color_btn_primary_normal,I=>I.theme.color_bg_tab,I=>I.theme.color_btn_primary_normal,I=>I.theme.color_bg_tab),vr=(0,M.createContext)({dropdownPosition:"top"}),hr=I=>{let{icon:F,tooltip:oe,children:be,onOpenChange:Mt}=I;const[ut,tn]=(0,M.useState)(!1);C(ut,tn);const Xt=K=>{tn(K),Mt==null||Mt(K)},{dropdownPosition:Kn}=(0,M.useContext)(vr),ao=(0,M.useMemo)(()=>Kn==="bottom"?"bottomLeft":"topLeft",[Kn]),v=(0,M.useMemo)(()=>Kn==="bottom"?{offset:[0,7]}:{offset:[0,-7]},[Kn]);return(0,ln.jsx)(cn.e$,{children:K=>(0,ln.jsx)(wr.A,{getPopupContainer:ea,trigger:"click",placement:ao,onOpenChange:Xt,open:ut,arrow:!1,align:v,destroyOnHidden:!0,styles:{body:{borderRadius:8,border:"1px solid "+(K==null?void 0:K.color_bg_border_01),background:""+(K==null?void 0:K.color_bg_white),boxShadow:"0 4px 10px 0 rgba(0, 18, 38, 0.10)"}},content:(0,ln.jsx)("div",{children:be}),children:(0,ln.jsx)(lr,{color:ut?"primary":"default",variant:ut?"filled":"text",icon:F,tooltip:ut||!oe?void 0:{title:oe}})})})},mr=["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],Yr=I=>{const[F,oe=F,be=F,Mt=oe]=I.split(" ").map(ut=>Math.round(parseFloat(ut)));return{borderTopWidth:F,borderRightWidth:oe,borderBottomWidth:be,borderLeftWidth:Mt}},yi=0,Ri=9999,vs=function(I,F){return F===void 0&&(F=0),I=Math.round(parseFloat(I)),isNaN(I)&&(I=F),I=Math.min(Math.max(yi,I),Ri),I},ri=(0,M.memo)(I=>{let{value:F,onChange:oe}=I;const[be,Mt]=(0,M.useState)(Yr(F)),[ut,tn]=(0,M.useState)(!Object.values(be).every(me=>me===be.borderTopWidth));(0,M.useEffect)(()=>{Mt(Yr(F))},[F]);const Xt=me=>{me&&Mt(Yr(F))},Kn=()=>{const me=!ut;tn(me);const{borderTopWidth:$e}=be,nt={borderTopWidth:$e,borderRightWidth:$e,borderBottomWidth:$e,borderLeftWidth:$e};Mt(nt),v(nt,me)},ao=(me,$e,nt)=>{const yt={...be,[$e]:me};Mt(yt),nt&&v(yt)},v=function(me,$e){me===void 0&&(me=be),$e===void 0&&($e=ut);let nt=me;const yt=Yr(F);Object.keys(me).forEach(It=>{const un=vs(me[It],yt[It]);un!==me[It]&&(nt={...me,[It]:un})}),nt!==me&&Mt(nt);const dt=$e?mr.map(It=>nt[It]+"px").join(" "):nt.borderTopWidth+"px";oe==null||oe(dt,"borderWidth")},K=ut?mr:["borderTopWidth"],te=ut?Qi:_a;return(0,ln.jsx)(hr,{tooltip:I18N.HtmlVisualEditor.border_width,icon:(0,ln.jsx)(_a,{size:24}),onOpenChange:Xt,children:(0,ln.jsxs)(St,{children:[(0,ln.jsx)("div",{className:ut?"separate-container":"",children:K.map(me=>(0,ln.jsx)(ko,{prefix:(0,ln.jsx)(te,{className:me,size:24}),value:be[me],min:yi,max:Ri,step:1,changeOnWheel:!0,onChange:$e=>ao($e,me),onPressEnter:$e=>ao($e.target.value,me,!0),onBlur:$e=>ao($e.target.value,me,!0),onStep:$e=>ao($e,me,!0)},me))}),(0,ln.jsx)(lr,{variant:ut?"filled":"text",color:ut?"primary":"default",icon:(0,ln.jsx)(Cd,{size:24}),onClick:Kn,tooltip:{title:I18N.HtmlVisualEditor.border_width_separate}},String(ut))]})})}),us=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Nr=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],si=I=>{const[F,oe=F,be=F,Mt=oe]=I.split("/")[0].trim().split(" ").map(ut=>Math.round(parseFloat(ut)));return{borderTopLeftRadius:F,borderTopRightRadius:oe,borderBottomRightRadius:be,borderBottomLeftRadius:Mt}},Is=I=>{let{value:F,onChange:oe}=I;const[be,Mt]=(0,M.useState)(si(F)),[ut,tn]=(0,M.useState)(!Object.values(be).every(me=>me===be.borderTopLeftRadius));(0,M.useEffect)(()=>{Mt(si(F))},[F]);const Xt=me=>{me&&Mt(si(F))},Kn=()=>{const me=!ut;tn(me);const{borderTopLeftRadius:$e}=be,nt={borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomRightRadius:$e,borderBottomLeftRadius:$e};Mt(nt),v(nt,me)},ao=(me,$e,nt)=>{const yt={...be,[$e]:me};Mt(yt),nt&&v(yt)},v=function(me,$e){me===void 0&&(me=be),$e===void 0&&($e=ut);let nt=me;const yt=si(F);Object.keys(me).forEach(It=>{const un=vs(me[It],yt[It]);un!==me[It]&&(nt={...me,[It]:un})}),nt!==me&&Mt(nt);const dt=$e?Nr.map(It=>nt[It]+"px").join(" "):nt.borderTopLeftRadius+"px";oe==null||oe(dt,"borderRadius")},K=ut?us:["borderTopLeftRadius"],te=ut?lc:Vn;return(0,ln.jsx)(hr,{tooltip:I18N.HtmlVisualEditor.border_radius,icon:(0,ln.jsx)(Vn,{size:24}),onOpenChange:Xt,children:(0,ln.jsxs)(St,{children:[(0,ln.jsx)("div",{className:ut?"separate-container":"",children:K.map(me=>(0,ln.jsx)(ko,{prefix:(0,ln.jsx)(te,{className:me,size:24}),value:be[me],min:yi,max:Ri,step:1,changeOnWheel:!0,onChange:$e=>ao($e,me),onPressEnter:$e=>ao($e.target.value,me,!0),onBlur:$e=>ao($e.target.value,me,!0),onStep:$e=>ao($e,me,!0)},me))}),(0,ln.jsx)(lr,{variant:ut?"filled":"text",color:ut?"primary":"default",icon:(0,ln.jsx)(tr,{size:24}),onClick:Kn,tooltip:{title:I18N.HtmlVisualEditor.border_radius_separate}},String(ut))]})})},St=cn.Ay.div.withConfig({displayName:"BorderSetter__StyledBorderSetter",componentId:"sc-126aic0-0"})(["display:flex;gap:6px;.ant-input-number-affix-wrapper{padding-inline-start:4px;width:64px;}.separate-container{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;.borderLeftWidth{transform:rotate(-90deg);}.borderRightWidth{transform:rotate(90deg);}.borderBottomWidth{transform:rotate(180deg);}.borderTopRightRadius{transform:rotate(90deg);}.borderBottomRightRadius{transform:rotate(180deg);}.borderBottomLeftRadius{transform:rotate(270deg);}}"]);var je=i(92755),qe=Object.defineProperty,Le=Object.defineProperties,at=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,kn=(I,F,oe)=>F in I?qe(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,yn=(I,F)=>{for(var oe in F||(F={}))kt.call(F,oe)&&kn(I,oe,F[oe]);if(ft)for(var oe of ft(F))en.call(F,oe)&&kn(I,oe,F[oe]);return I},yo=(I,F)=>Le(I,at(F)),Uo=(I,F)=>{var oe={};for(var be in I)kt.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&ft)for(var be of ft(I))F.indexOf(be)<0&&en.call(I,be)&&(oe[be]=I[be]);return oe},Ia=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Uo(oe,["size","spin","style"]);const Xt=yn(yn({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",yo(yn({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M5.25 3.93311C5.66421 3.93311 6 4.26889 6 4.68311V19.1831C6 19.5973 5.66421 19.9331 5.25 19.9331C4.83579 19.9331 4.5 19.5973 4.5 19.1831V4.68311C4.5 4.26889 4.83579 3.93311 5.25 3.93311ZM13.5 7.93311C14.3284 7.93311 15 8.60468 15 9.43311V14.4331C15 15.2615 14.3284 15.9331 13.5 15.9331H10.5C9.67157 15.9331 9 15.2615 9 14.4331V9.43311C9 8.60468 9.67157 7.93311 10.5 7.93311H13.5ZM10.5 14.4331H13.5V9.43311H10.5V14.4331Z",fill:"#19191A"}))}),ja=Object.defineProperty,ka=Object.defineProperties,ga=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,Za=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Dr=(I,F,oe)=>F in I?ja(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,ti=(I,F)=>{for(var oe in F||(F={}))Za.call(F,oe)&&Dr(I,oe,F[oe]);if(er)for(var oe of er(F))Cr.call(F,oe)&&Dr(I,oe,F[oe]);return I},Xr=(I,F)=>ka(I,ga(F)),li=(I,F)=>{var oe={};for(var be in I)Za.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&er)for(var be of er(I))F.indexOf(be)<0&&Cr.call(I,be)&&(oe[be]=I[be]);return oe},oi=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=li(oe,["size","spin","style"]);const Xt=ti(ti({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Xr(ti({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M18.75 4.06689C19.1641 4.06689 19.4998 4.40285 19.5 4.81689V19.3169C19.5 19.7311 19.1642 20.0669 18.75 20.0669C18.3358 20.0669 18 19.7311 18 19.3169V4.81689C18.0002 4.40285 18.3359 4.06689 18.75 4.06689ZM5.25 3.93311C5.66421 3.93311 6 4.26889 6 4.68311V19.1831C6 19.5973 5.66421 19.9331 5.25 19.9331C4.83579 19.9331 4.5 19.5973 4.5 19.1831V4.68311C4.5 4.26889 4.83579 3.93311 5.25 3.93311ZM13.5 7.93311C14.3284 7.93311 15 8.60468 15 9.43311V14.4331C15 15.2615 14.3284 15.9331 13.5 15.9331H10.5C9.67157 15.9331 9 15.2615 9 14.4331V9.43311C9 8.60468 9.67157 7.93311 10.5 7.93311H13.5ZM10.5 14.4331H13.5V9.43311H10.5V14.4331Z",fill:"#19191A"}))});const hs=["left","top","right","bottom"],Di=I=>{const[F,oe=F,be=F,Mt=oe]=I.split(" ").map(ut=>ut==="auto"?"auto":Math.round(parseFloat(ut)));return{top:F,right:oe,bottom:be,left:Mt,h:Mt,v:F}},Gr=I=>{let{attrs:F=hs,value:oe,prefix:be,title:Mt,tooltipTitle:ut,onChange:tn,min:Xt,max:Kn,allowAuto:ao}=I;const[v,K]=(0,M.useState)(Di(oe)),{top:te,right:me,bottom:$e,left:nt}=v,[yt,dt]=(0,M.useState)(te!==$e||me!==nt);(0,M.useEffect)(()=>{K(Di(oe))},[oe]);const It=function(go,xo){if(xo===void 0&&(xo=0),typeof go=="string"&&ao&&go.toLowerCase()==="auto")return"auto";let jo=parseFloat(go);return isNaN(jo)||go===""?jo=xo:jo=Math.min(Math.max(jo,Xt),Kn),jo},un=()=>{const go=!yt;dt(go);let xo=v;go?xo={...v,top:v.v,bottom:v.v,left:v.h,right:v.h}:xo={...v,v:v.top,h:v.left},K(xo),gn(xo,go)},xn=(go,xo)=>{K({...v,[xo]:go})},gn=function(go,xo){go===void 0&&(go=v),xo===void 0&&(xo=yt);let jo="";const pa=Di(oe),na=go;jo=(xo?["top","right","bottom","left"]:["v","h"]).map(Ka=>{const Fa=It(go[Ka],pa[Ka]);return na[Ka]=Fa,typeof Fa=="number"?Fa+"px":Fa}).join(" "),K(na),tn==null||tn(jo,be)},wo=(go,xo)=>{const jo={...v,[xo]:go};K(jo),gn(jo)},vo=ao?["auto"]:void 0,Co=yt?F:["h","v"],Eo=yt?Ia:oi;return(0,ln.jsxs)(je.A,{vertical:!0,gap:8,style:{padding:4},children:[(0,ln.jsx)("div",{className:"setter-sub-title",children:Mt}),(0,ln.jsxs)(Zi,{children:[(0,ln.jsx)("div",{className:"separate-container",children:Co.map(go=>(0,ln.jsx)(ko,{prefix:(0,ln.jsx)(Eo,{className:go,size:24}),value:v[go],min:Xt,max:Kn,step:1,changeOnWheel:!0,onKeyDown:Un,onChange:xo=>xn(xo,go),allowValidValues:vo,onBlur:xo=>wo(xo.target.value,go),onPressEnter:xo=>wo(xo.target.value,go),onStep:xo=>wo(xo,go)},go))}),(0,ln.jsx)(lr,{variant:yt?"filled":"text",color:yt?"primary":"default",icon:(0,ln.jsx)(Cd,{size:24}),onClick:un,tooltip:{title:ut}})]})]})},ms=I=>{let{value:F,onChange:oe}=I;const{margin:be="",padding:Mt=""}=F;return(0,ln.jsx)(hr,{tooltip:I18N.HtmlVisualEditor.gap,icon:(0,ln.jsx)(oi,{size:24}),children:(0,ln.jsxs)(je.A,{vertical:!0,gap:8,style:{padding:4},children:[(0,ln.jsx)(Gr,{attrs:hs,value:Mt,prefix:"padding",title:I18N.HtmlVisualEditor.padding,tooltipTitle:I18N.HtmlVisualEditor.padding_separate,onChange:oe,min:0,max:9999,allowAuto:!1}),(0,ln.jsx)(Gr,{attrs:hs,value:be,prefix:"margin",title:I18N.HtmlVisualEditor.margin,tooltipTitle:I18N.HtmlVisualEditor.margin_separate,onChange:oe,min:-9999,max:9999,allowAuto:!0})]})})},Zi=cn.Ay.div.withConfig({displayName:"GapSetter__StyledGapSetter",componentId:"sc-m4e8xv-0"})(["display:flex;gap:6px;.ant-input-number-affix-wrapper{padding-inline-start:4px;width:64px;}.separate-container{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;.top,.v{transform:rotate(90deg);}.right{transform:rotate(180deg);}.bottom{transform:rotate(270deg);}}"]),El=ms;var yc=Object.defineProperty,Ts=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,_o=Object.prototype.propertyIsEnumerable,Da=(I,F,oe)=>F in I?yc(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,pr=(I,F)=>{for(var oe in F||(F={}))Gn.call(F,oe)&&Da(I,oe,F[oe]);if(an)for(var oe of an(F))_o.call(F,oe)&&Da(I,oe,F[oe]);return I},Lr=(I,F)=>Ts(I,Pn(F)),Sr=(I,F)=>{var oe={};for(var be in I)Gn.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&an)for(var be of an(I))F.indexOf(be)<0&&_o.call(I,be)&&(oe[be]=I[be]);return oe},cs=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Sr(oe,["size","spin","style"]);const Xt=pr(pr({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Lr(pr({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6145 14.7362C15.9587 14.271 16.1799 13.747 16.2781 13.1655C16.3756 12.5577 16.3398 12.0335 16.1617 11.5999C15.9866 11.1735 15.735 10.8411 15.4048 10.608C15.1463 10.4256 14.8771 10.3068 14.5976 10.2539C14.8739 10.165 15.141 10.0427 15.3987 9.88753C15.7203 9.69602 15.9951 9.43606 16.2231 9.10928C16.4579 8.77816 16.6149 8.36249 16.6976 7.86633C16.7957 7.30006 16.7567 6.77989 16.5767 6.30866C16.395 5.82918 16.0586 5.45013 15.5741 5.17155C15.0866 4.88761 14.4403 4.75 13.643 4.75H10.5142C9.99154 4.75 9.54556 5.12805 9.45996 5.64366L7.90572 15.0057C7.79761 15.6569 8.29986 16.2494 8.95997 16.2494H11.8987C12.7982 16.2494 13.5578 16.1157 14.1736 15.8437C14.7863 15.573 15.2681 15.2045 15.6145 14.7362ZM14.0018 11.3891C14.313 11.5744 14.5321 11.8204 14.6632 12.1276L14.6638 12.1288C14.7989 12.4338 14.8398 12.7677 14.7837 13.1334C14.6998 13.6039 14.4509 14.0067 14.0296 14.343C13.6202 14.6691 12.9821 14.8407 12.0974 14.8407H9.49645L10.1261 11.1047H12.8261C13.3065 11.1047 13.6961 11.2015 14.0007 11.3884L14.0018 11.3891ZM14.9262 6.64802C15.1926 6.96909 15.2874 7.36053 15.2034 7.83307L15.203 7.83583C15.1465 8.21675 15.0025 8.54599 14.7715 8.82602C14.5384 9.10849 14.2489 9.32767 13.9013 9.4837C13.5537 9.63977 13.181 9.71806 12.7819 9.71806H10.3571L10.9434 6.15872H13.4443C14.1847 6.15872 14.6669 6.33219 14.9262 6.64802Z",fill:"#19191A"}),M.createElement("path",{d:"M6.75 17.75C6.33579 17.75 6 18.0858 6 18.5C6 18.9142 6.33579 19.25 6.75 19.25H17.25C17.6642 19.25 18 18.9142 18 18.5C18 18.0858 17.6642 17.75 17.25 17.75H6.75Z",fill:"#19191A"}))}),Us=Object.defineProperty,rl=Object.defineProperties,zl=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,Pd=(I,F,oe)=>F in I?Us(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Kc=(I,F)=>{for(var oe in F||(F={}))Ys.call(F,oe)&&Pd(I,oe,F[oe]);if(ds)for(var oe of ds(F))Tc.call(F,oe)&&Pd(I,oe,F[oe]);return I},ui=(I,F)=>rl(I,zl(F)),Ls=(I,F)=>{var oe={};for(var be in I)Ys.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&ds)for(var be of ds(I))F.indexOf(be)<0&&Tc.call(I,be)&&(oe[be]=I[be]);return oe},Il=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Ls(oe,["size","spin","style"]);const Xt=Kc(Kc({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",ui(Kc({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M7.95508 19C7.40279 19 6.95508 18.5523 6.95508 18V6C6.95508 5.44772 7.40279 5 7.95508 5H12.082C13.0755 5 13.8981 5.16406 14.5498 5.49219C15.2015 5.81576 15.6891 6.25553 16.0127 6.81152C16.3363 7.36296 16.498 7.98503 16.498 8.67773C16.498 9.26107 16.391 9.75326 16.1768 10.1543C15.9626 10.5508 15.6755 10.8698 15.3154 11.1113C14.96 11.3483 14.568 11.5215 14.1396 11.6309V11.7676C14.6045 11.7904 15.0579 11.9408 15.5 12.2188C15.9466 12.4922 16.3158 12.8818 16.6074 13.3877C16.8991 13.8936 17.0449 14.5088 17.0449 15.2334C17.0449 15.9489 16.8763 16.5915 16.5391 17.1611C16.2064 17.7262 15.6914 18.1751 14.9941 18.5078C14.2969 18.8359 13.4059 19 12.3213 19H7.95508ZM9.06738 17.1885H12.1162C13.1279 17.1885 13.8525 16.9925 14.29 16.6006C14.7275 16.2087 14.9463 15.7188 14.9463 15.1309C14.9463 14.6888 14.8346 14.2832 14.6113 13.9141C14.388 13.5449 14.069 13.251 13.6543 13.0322C13.2441 12.8135 12.7565 12.7041 12.1914 12.7041H9.06738V17.1885ZM9.06738 11.0566H11.8975C12.3714 11.0566 12.7975 10.9655 13.1758 10.7832C13.5586 10.6009 13.8617 10.3457 14.085 10.0176C14.3128 9.6849 14.4268 9.29297 14.4268 8.8418C14.4268 8.26302 14.224 7.77767 13.8184 7.38574C13.4128 6.99382 12.7907 6.79785 11.9521 6.79785H9.06738V11.0566Z",fill:"#19191A"}))}),ul=Object.defineProperty,Oc=Object.defineProperties,_c=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,Op=Object.prototype.propertyIsEnumerable,ep=(I,F,oe)=>F in I?ul(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,o1=(I,F)=>{for(var oe in F||(F={}))Jd.call(F,oe)&&ep(I,oe,F[oe]);if(Wd)for(var oe of Wd(F))Op.call(F,oe)&&ep(I,oe,F[oe]);return I},N0=(I,F)=>Oc(I,_c(F)),Rp=(I,F)=>{var oe={};for(var be in I)Jd.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Wd)for(var be of Wd(I))F.indexOf(be)<0&&Op.call(I,be)&&(oe[be]=I[be]);return oe},p0=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Rp(oe,["size","spin","style"]);const Xt=o1(o1({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",N0(o1({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M10 5.75C10 5.33579 10.3358 5 10.75 5H16.25C16.6642 5 17 5.33579 17 5.75C17 6.16421 16.6642 6.5 16.25 6.5H14.1481L11.3981 17.5H13.25C13.6642 17.5 14 17.8358 14 18.25C14 18.6642 13.6642 19 13.25 19H7.75C7.33579 19 7 18.6642 7 18.25C7 17.8358 7.33579 17.5 7.75 17.5H9.85192L12.6019 6.5H10.75C10.3358 6.5 10 6.16421 10 5.75Z",fill:"#19191A"}))}),p2=Object.defineProperty,r1=Object.defineProperties,N1=Object.getOwnPropertyDescriptors,i1=Object.getOwnPropertySymbols,s1=Object.prototype.hasOwnProperty,K2=Object.prototype.propertyIsEnumerable,Bp=(I,F,oe)=>F in I?p2(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,x0=(I,F)=>{for(var oe in F||(F={}))s1.call(F,oe)&&Bp(I,oe,F[oe]);if(i1)for(var oe of i1(F))K2.call(F,oe)&&Bp(I,oe,F[oe]);return I},j0=(I,F)=>r1(I,N1(F)),D0=(I,F)=>{var oe={};for(var be in I)s1.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&i1)for(var be of i1(I))F.indexOf(be)<0&&K2.call(I,be)&&(oe[be]=I[be]);return oe},wd=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=D0(oe,["size","spin","style"]);const Xt=x0(x0({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",j0(x0({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M8.50049 5.5C8.50049 5.08579 8.1647 4.75 7.75049 4.75C7.33627 4.75 7.00049 5.08579 7.00049 5.5V10.75C7.00049 13.5114 9.23906 15.75 12.0005 15.75C14.7619 15.75 17.0005 13.5114 17.0005 10.75V5.5C17.0005 5.08579 16.6647 4.75 16.2505 4.75C15.8363 4.75 15.5005 5.08579 15.5005 5.5V10.75C15.5005 12.683 13.9335 14.25 12.0005 14.25C10.0675 14.25 8.50049 12.683 8.50049 10.75V5.5Z",fill:"#19191A"}),M.createElement("path",{d:"M5.75 17.75C5.33579 17.75 5 18.0858 5 18.5C5 18.9142 5.33579 19.25 5.75 19.25H18.25C18.6642 19.25 19 18.9142 19 18.5C19 18.0858 18.6642 17.75 18.25 17.75H5.75Z",fill:"#19191A"}))}),u2=Object.defineProperty,Sd=Object.defineProperties,Y2=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertySymbols,Up=Object.prototype.hasOwnProperty,l1=Object.prototype.propertyIsEnumerable,Tl=(I,F,oe)=>F in I?u2(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,il=(I,F)=>{for(var oe in F||(F={}))Up.call(F,oe)&&Tl(I,oe,F[oe]);if(O0)for(var oe of O0(F))l1.call(F,oe)&&Tl(I,oe,F[oe]);return I},Fp=(I,F)=>Sd(I,Y2(F)),X2=(I,F)=>{var oe={};for(var be in I)Up.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&O0)for(var be of O0(I))F.indexOf(be)<0&&l1.call(I,be)&&(oe[be]=I[be]);return oe},h2=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=X2(oe,["size","spin","style"]);const Xt=il(il({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Fp(il({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M14.593 7.49024C14.0729 6.59895 13.1064 6.00005 12 6.00005C10.3431 6.00005 9 7.34319 9 9.00005C9 9.35068 9.06015 9.68727 9.17071 10H7.61151C7.53853 9.67843 7.5 9.34374 7.5 9.00005C7.5 6.51476 9.51472 4.50005 12 4.50005C13.7909 4.50005 15.3374 5.54618 16.0618 7.06068C16.2821 7.52122 15.9025 8.00005 15.392 8.00005C15.0548 8.00005 14.7629 7.78152 14.593 7.49024Z",fill:"#19191A"}),M.createElement("path",{d:"M7.94 16.9394C8.66444 18.4539 10.2109 19.5 12.0018 19.5C14.487 19.5 16.5018 17.4852 16.5018 15C16.5018 14.6563 16.4632 14.3216 16.3903 14H14.8311C14.9416 14.3128 15.0018 14.6494 15.0018 15C15.0018 16.6568 13.6586 18 12.0018 18C10.8954 18 9.92894 17.4011 9.40883 16.5098C9.23886 16.2186 8.94703 16 8.6098 16C8.09928 16 7.7197 16.4789 7.94 16.9394Z",fill:"#19191A"}),M.createElement("path",{d:"M5.5 11.25C5.08579 11.25 4.75 11.5858 4.75 12C4.75 12.4143 5.08579 12.75 5.5 12.75H18.5C18.9142 12.75 19.25 12.4143 19.25 12C19.25 11.5858 18.9142 11.25 18.5 11.25H5.5Z",fill:"#19191A"}))}),Vp=Object.defineProperty,m2=Object.defineProperties,np=Object.getOwnPropertyDescriptors,ad=Object.getOwnPropertySymbols,Pc=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,Xl=(I,F,oe)=>F in I?Vp(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,js=(I,F)=>{for(var oe in F||(F={}))Pc.call(F,oe)&&Xl(I,oe,F[oe]);if(ad)for(var oe of ad(F))Ga.call(F,oe)&&Xl(I,oe,F[oe]);return I},ai=(I,F)=>m2(I,np(F)),Oa=(I,F)=>{var oe={};for(var be in I)Pc.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&ad)for(var be of ad(I))F.indexOf(be)<0&&Ga.call(I,be)&&(oe[be]=I[be]);return oe},Sl=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Oa(oe,["size","spin","style"]);const Xt=js(js({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",ai(js({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),M.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H13.25C13.6642 11.25 14 11.5858 14 12C14 12.4142 13.6642 12.75 13.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),M.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))}),ju=Object.defineProperty,Du=Object.defineProperties,Q2=Object.getOwnPropertyDescriptors,qd=Object.getOwnPropertySymbols,c1=Object.prototype.hasOwnProperty,Hd=Object.prototype.propertyIsEnumerable,$d=(I,F,oe)=>F in I?ju(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Ad=(I,F)=>{for(var oe in F||(F={}))c1.call(F,oe)&&$d(I,oe,F[oe]);if(qd)for(var oe of qd(F))Hd.call(F,oe)&&$d(I,oe,F[oe]);return I},vc=(I,F)=>Du(I,Q2(F)),Pl=(I,F)=>{var oe={};for(var be in I)c1.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&qd)for(var be of qd(I))F.indexOf(be)<0&&Hd.call(I,be)&&(oe[be]=I[be]);return oe},Ld=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Pl(oe,["size","spin","style"]);const Xt=Ad(Ad({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",vc(Ad({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),M.createElement("path",{d:"M7 12C7 11.5858 7.33579 11.25 7.75 11.25H16.25C16.6642 11.25 17 11.5858 17 12C17 12.4142 16.6642 12.75 16.25 12.75H7.75C7.33579 12.75 7 12.4142 7 12Z",fill:"#19191A"}),M.createElement("path",{d:"M7 18C7 17.5858 7.33579 17.25 7.75 17.25H16.25C16.6642 17.25 17 17.5858 17 18C17 18.4142 16.6642 18.75 16.25 18.75H7.75C7.33579 18.75 7 18.4142 7 18Z",fill:"#19191A"}))}),Jl=Object.defineProperty,d1=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,p1=Object.prototype.hasOwnProperty,op=Object.prototype.propertyIsEnumerable,ap=(I,F,oe)=>F in I?Jl(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,j1=(I,F)=>{for(var oe in F||(F={}))p1.call(F,oe)&&ap(I,oe,F[oe]);if(Ll)for(var oe of Ll(F))op.call(F,oe)&&ap(I,oe,F[oe]);return I},b0=(I,F)=>d1(I,Wl(F)),Gd=(I,F)=>{var oe={};for(var be in I)p1.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Ll)for(var be of Ll(I))F.indexOf(be)<0&&op.call(I,be)&&(oe[be]=I[be]);return oe},qc=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Gd(oe,["size","spin","style"]);const Xt=j1(j1({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",b0(j1({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),M.createElement("path",{d:"M10 12C10 11.5858 10.3358 11.25 10.75 11.25H19.25C19.6642 11.25 20 11.5858 20 12C20 12.4142 19.6642 12.75 19.25 12.75H10.75C10.3358 12.75 10 12.4142 10 12Z",fill:"#19191A"}),M.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))}),u1=Object.defineProperty,h1=Object.defineProperties,J2=Object.getOwnPropertyDescriptors,zp=Object.getOwnPropertySymbols,D1=Object.prototype.hasOwnProperty,u0=Object.prototype.propertyIsEnumerable,f2=(I,F,oe)=>F in I?u1(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,R0=(I,F)=>{for(var oe in F||(F={}))D1.call(F,oe)&&f2(I,oe,F[oe]);if(zp)for(var oe of zp(F))u0.call(F,oe)&&f2(I,oe,F[oe]);return I},kd=(I,F)=>h1(I,J2(F)),B0=(I,F)=>{var oe={};for(var be in I)D1.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&zp)for(var be of zp(I))F.indexOf(be)<0&&u0.call(I,be)&&(oe[be]=I[be]);return oe},O1=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=B0(oe,["size","spin","style"]);const Xt=R0(R0({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",kd(R0({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),M.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H19.25C19.6642 11.25 20 11.5858 20 12C20 12.4142 19.6642 12.75 19.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),M.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))});const Hp=I=>{let{computedStyle:F,onChange:oe}=I;return(0,ln.jsx)(hr,{icon:(0,ln.jsx)(cs,{size:28}),tooltip:I18N.HtmlVisualEditor.text_style,children:(0,ln.jsxs)(je.A,{gap:4,children:[(0,ln.jsx)(Yc,{value:F["font-weight"],onChange:oe}),(0,ln.jsx)(q2,{value:F["font-style"],onChange:oe}),(0,ln.jsx)(U0,{value:F["text-decoration-line"],onChange:oe})]})})},Yc=I=>{let{value:F,onChange:oe}=I;const be=Number(F)>=700,Mt=()=>{const ut=be?"400":"700";oe==null||oe(ut,"fontWeight")};return(0,ln.jsx)(lr,{color:be?"primary":"default",variant:be?"filled":"text",onClick:Mt,icon:(0,ln.jsx)(Il,{size:24}),tooltip:{title:I18N.HtmlVisualEditor.bold}})},q2=I=>{let{value:F,onChange:oe}=I;const[be,Mt]=(0,M.useState)(),ut=be==="italic";(0,M.useEffect)(()=>{Mt(F)},[F]);const tn=()=>{const Xt=ut?"normal":"italic";Mt(Xt),oe==null||oe(Xt,"fontStyle")};return(0,ln.jsx)(lr,{color:ut?"primary":"default",variant:ut?"filled":"text",onClick:tn,icon:(0,ln.jsx)(p0,{size:24}),tooltip:{title:I18N.HtmlVisualEditor.italic}})},U0=I=>{let{value:F,onChange:oe}=I;const[be,Mt]=(0,M.useState)(),ut=be==null?void 0:be.includes("underline"),tn=be==null?void 0:be.includes("line-through");(0,M.useEffect)(()=>{Mt(F)},[F]);const Xt=v=>{Mt(v),oe==null||oe(v,"textDecorationLine")},Kn=()=>{let v=be||"";ut?v=v.replace("underline",""):(v=v.replace("none",""),v+=" underline"),v.trim()||(v="none"),Xt(v)},ao=()=>{let v=be||"";tn?v=v.replace("line-through",""):(v=v.replace("none",""),v+=" line-through"),v.trim()||(v="none"),Xt(v)};return(0,ln.jsxs)(ln.Fragment,{children:[(0,ln.jsx)(lr,{color:ut?"primary":"default",variant:ut?"filled":"text",onClick:Kn,icon:(0,ln.jsx)(wd,{size:24}),tooltip:{title:I18N.HtmlVisualEditor.underline}}),(0,ln.jsx)(lr,{color:tn?"primary":"default",variant:tn?"filled":"text",onClick:ao,icon:(0,ln.jsx)(h2,{size:24}),tooltip:{title:I18N.HtmlVisualEditor.strikethrough}})]})},h0=()=>[{label:I18N.HtmlVisualEditor.align_left,value:"start",icon:(0,ln.jsx)(Sl,{size:24})},{label:I18N.HtmlVisualEditor.align_center,value:"center",icon:(0,ln.jsx)(Ld,{size:24})},{label:I18N.HtmlVisualEditor.align_right,value:"end",icon:(0,ln.jsx)(qc,{size:24})},{label:I18N.HtmlVisualEditor.align_justify,value:"justify",icon:(0,ln.jsx)(O1,{size:24})}],m1=I=>{var F;let{value:oe,onChange:be}=I;const[Mt,ut]=(0,M.useState)(oe),tn=(0,M.useMemo)(()=>h0(),[]);(0,M.useEffect)(()=>{const Kn=tn.find(ao=>oe.includes(ao.value))||tn[0];ut(Kn.value)},[oe,tn]);const Xt=Kn=>{Kn!==Mt&&(ut(Kn),be==null||be(Kn,"textAlign"))};return(0,ln.jsx)(hr,{icon:(F=tn.find(Kn=>Kn.value===Mt))==null?void 0:F.icon,tooltip:I18N.HtmlVisualEditor.text_align,children:(0,ln.jsx)(qt.Ay,{wave:{disabled:!0},children:(0,ln.jsx)(je.A,{gap:4,children:tn.map(Kn=>{const{value:ao,label:v,icon:K}=Kn,te=ao===Mt;return(0,ln.jsx)(lr,{color:te?"primary":"default",variant:te?"filled":"text",onClick:()=>Xt(ao),icon:K,tooltip:{title:v}},ao)})})})})},m0=Hp;var Xc=i(63296),ac=i(69623),xc=i(94827),g2=i(66967),Gp=i(88901),F0=i(76241),Rc=i(33080),f1=i(63421),y2=i(24243);const rp=function(I,F){if(I&&F){var oe=Array.isArray(F)?F:F.split(","),be=I.name||"",Mt=I.type||"",ut=Mt.replace(/\/.*$/,"");return oe.some(function(tn){var Xt=tn.trim();if(/^\*(\/\*)?$/.test(tn))return!0;if(Xt.charAt(0)==="."){var Kn=be.toLowerCase(),ao=Xt.toLowerCase(),v=[ao];return(ao===".jpg"||ao===".jpeg")&&(v=[".jpg",".jpeg"]),v.some(function(K){return Kn.endsWith(K)})}return/\/\*$/.test(Xt)?ut===Xt.replace(/\/.*$/,""):Mt===Xt?!0:/^\w+$/.test(Xt)?((0,Lt.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(Xt,"'.Skip for check.")),!0):!1})}return!0};function rc(I,F){var oe="cannot ".concat(I.method," ").concat(I.action," ").concat(F.status,"'"),be=new Error(oe);return be.status=F.status,be.method=I.method,be.url=I.action,be}function fc(I){var F=I.responseText||I.response;if(!F)return F;try{return JSON.parse(F)}catch(oe){return F}}function Bc(I){var F=new XMLHttpRequest;I.onProgress&&F.upload&&(F.upload.onprogress=function(ut){ut.total>0&&(ut.percent=ut.loaded/ut.total*100),I.onProgress(ut)});var oe=new FormData;I.data&&Object.keys(I.data).forEach(function(Mt){var ut=I.data[Mt];if(Array.isArray(ut)){ut.forEach(function(tn){oe.append("".concat(Mt,"[]"),tn)});return}oe.append(Mt,ut)}),I.file instanceof Blob?oe.append(I.filename,I.file,I.file.name):oe.append(I.filename,I.file),F.onerror=function(ut){I.onError(ut)},F.onload=function(){return F.status<200||F.status>=300?I.onError(rc(I,F),fc(F)):I.onSuccess(fc(F),F)},F.open(I.method,I.action,!0),I.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var be=I.headers||{};return be["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(Mt){be[Mt]!==null&&F.setRequestHeader(Mt,be[Mt])}),F.send(oe),{abort:function(){F.abort()}}}var g1=function(){var I=(0,f1.A)((0,Rc.A)().mark(function F(oe,be){var Mt,ut,tn,Xt,Kn,ao,v,K;return(0,Rc.A)().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:ao=function(){return ao=(0,f1.A)((0,Rc.A)().mark(function nt(yt){return(0,Rc.A)().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.abrupt("return",new Promise(function(un){yt.file(function(xn){be(xn)?(yt.fullPath&&!xn.webkitRelativePath&&(Object.defineProperties(xn,{webkitRelativePath:{writable:!0}}),xn.webkitRelativePath=yt.fullPath.replace(/^\//,""),Object.defineProperties(xn,{webkitRelativePath:{writable:!1}})),un(xn)):un(null)})}));case 1:case"end":return It.stop()}},nt)})),ao.apply(this,arguments)},Kn=function(nt){return ao.apply(this,arguments)},Xt=function(){return Xt=(0,f1.A)((0,Rc.A)().mark(function nt(yt){var dt,It,un,xn,gn;return(0,Rc.A)().wrap(function(vo){for(;;)switch(vo.prev=vo.next){case 0:dt=yt.createReader(),It=[];case 2:return vo.next=5,new Promise(function(Co){dt.readEntries(Co,function(){return Co([])})});case 5:if(un=vo.sent,xn=un.length,xn){vo.next=9;break}return vo.abrupt("break",12);case 9:for(gn=0;gn<xn;gn++)It.push(un[gn]);vo.next=2;break;case 12:return vo.abrupt("return",It);case 13:case"end":return vo.stop()}},nt)})),Xt.apply(this,arguments)},tn=function(nt){return Xt.apply(this,arguments)},Mt=[],ut=[],oe.forEach(function($e){return ut.push($e.webkitGetAsEntry())}),v=function(){var $e=(0,f1.A)((0,Rc.A)().mark(function nt(yt,dt){var It,un;return(0,Rc.A)().wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(yt){gn.next=2;break}return gn.abrupt("return");case 2:if(yt.path=dt||"",!yt.isFile){gn.next=10;break}return gn.next=6,Kn(yt);case 6:It=gn.sent,It&&Mt.push(It),gn.next=15;break;case 10:if(!yt.isDirectory){gn.next=15;break}return gn.next=13,tn(yt);case 13:un=gn.sent,ut.push.apply(ut,(0,Xc.A)(un));case 15:case"end":return gn.stop()}},nt)}));return function(yt,dt){return $e.apply(this,arguments)}}(),K=0;case 9:if(!(K<ut.length)){me.next=15;break}return me.next=12,v(ut[K]);case 12:K++,me.next=9;break;case 15:return me.abrupt("return",Mt);case 16:case"end":return me.stop()}},F)}));return function(oe,be){return I.apply(this,arguments)}}();const ip=g1;var v2=+new Date,y1=0;function sp(){return"rc-upload-".concat(v2,"-").concat(++y1)}var x2=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Zp=function(I){(0,g2.A)(oe,I);var F=(0,Gp.A)(oe);function oe(){var be;(0,ne.A)(this,oe);for(var Mt=arguments.length,ut=new Array(Mt),tn=0;tn<Mt;tn++)ut[tn]=arguments[tn];return be=F.call.apply(F,[this].concat(ut)),(0,Oe.A)((0,xc.A)(be),"state",{uid:sp()}),(0,Oe.A)((0,xc.A)(be),"reqs",{}),(0,Oe.A)((0,xc.A)(be),"fileInput",void 0),(0,Oe.A)((0,xc.A)(be),"_isMounted",void 0),(0,Oe.A)((0,xc.A)(be),"onChange",function(Xt){var Kn=be.props,ao=Kn.accept,v=Kn.directory,K=Xt.target.files,te=(0,Xc.A)(K).filter(function(me){return!v||rp(me,ao)});be.uploadFiles(te),be.reset()}),(0,Oe.A)((0,xc.A)(be),"onClick",function(Xt){var Kn=be.fileInput;if(Kn){var ao=Xt.target,v=be.props.onClick;if(ao&&ao.tagName==="BUTTON"){var K=Kn.parentNode;K.focus(),ao.blur()}Kn.click(),v&&v(Xt)}}),(0,Oe.A)((0,xc.A)(be),"onKeyDown",function(Xt){Xt.key==="Enter"&&be.onClick(Xt)}),(0,Oe.A)((0,xc.A)(be),"onDataTransferFiles",function(){var Xt=(0,f1.A)((0,Rc.A)().mark(function Kn(ao,v){var K,te,me,$e,nt,yt,dt;return(0,Rc.A)().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(K=be.props,te=K.multiple,me=K.accept,$e=K.directory,nt=(0,Xc.A)(ao.items||[]),yt=(0,Xc.A)(ao.files||[]),(yt.length>0||nt.some(function(xn){return xn.kind==="file"}))&&(v==null||v()),!$e){un.next=11;break}return un.next=7,ip(Array.prototype.slice.call(nt),function(xn){return rp(xn,be.props.accept)});case 7:yt=un.sent,be.uploadFiles(yt),un.next=14;break;case 11:dt=(0,Xc.A)(yt).filter(function(xn){return rp(xn,me)}),te===!1&&(dt=yt.slice(0,1)),be.uploadFiles(dt);case 14:case"end":return un.stop()}},Kn)}));return function(Kn,ao){return Xt.apply(this,arguments)}}()),(0,Oe.A)((0,xc.A)(be),"onFilePaste",function(){var Xt=(0,f1.A)((0,Rc.A)().mark(function Kn(ao){var v,K;return(0,Rc.A)().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(v=be.props.pastable,v){me.next=3;break}return me.abrupt("return");case 3:if(ao.type!=="paste"){me.next=6;break}return K=ao.clipboardData,me.abrupt("return",be.onDataTransferFiles(K,function(){ao.preventDefault()}));case 6:case"end":return me.stop()}},Kn)}));return function(Kn){return Xt.apply(this,arguments)}}()),(0,Oe.A)((0,xc.A)(be),"onFileDragOver",function(Xt){Xt.preventDefault()}),(0,Oe.A)((0,xc.A)(be),"onFileDrop",function(){var Xt=(0,f1.A)((0,Rc.A)().mark(function Kn(ao){var v;return(0,Rc.A)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(ao.preventDefault(),ao.type!=="drop"){te.next=4;break}return v=ao.dataTransfer,te.abrupt("return",be.onDataTransferFiles(v));case 4:case"end":return te.stop()}},Kn)}));return function(Kn){return Xt.apply(this,arguments)}}()),(0,Oe.A)((0,xc.A)(be),"uploadFiles",function(Xt){var Kn=(0,Xc.A)(Xt),ao=Kn.map(function(v){return v.uid=sp(),be.processFile(v,Kn)});Promise.all(ao).then(function(v){var K=be.props.onBatchStart;K==null||K(v.map(function(te){var me=te.origin,$e=te.parsedFile;return{file:me,parsedFile:$e}})),v.filter(function(te){return te.parsedFile!==null}).forEach(function(te){be.post(te)})})}),(0,Oe.A)((0,xc.A)(be),"processFile",function(){var Xt=(0,f1.A)((0,Rc.A)().mark(function Kn(ao,v){var K,te,me,$e,nt,yt,dt,It,un;return(0,Rc.A)().wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(K=be.props.beforeUpload,te=ao,!K){gn.next=14;break}return gn.prev=3,gn.next=6,K(ao,v);case 6:te=gn.sent,gn.next=12;break;case 9:gn.prev=9,gn.t0=gn.catch(3),te=!1;case 12:if(te!==!1){gn.next=14;break}return gn.abrupt("return",{origin:ao,parsedFile:null,action:null,data:null});case 14:if(me=be.props.action,typeof me!="function"){gn.next=21;break}return gn.next=18,me(ao);case 18:$e=gn.sent,gn.next=22;break;case 21:$e=me;case 22:if(nt=be.props.data,typeof nt!="function"){gn.next=29;break}return gn.next=26,nt(ao);case 26:yt=gn.sent,gn.next=30;break;case 29:yt=nt;case 30:return dt=((0,Be.A)(te)==="object"||typeof te=="string")&&te?te:ao,dt instanceof File?It=dt:It=new File([dt],ao.name,{type:ao.type}),un=It,un.uid=ao.uid,gn.abrupt("return",{origin:ao,data:yt,parsedFile:un,action:$e});case 35:case"end":return gn.stop()}},Kn,null,[[3,9]])}));return function(Kn,ao){return Xt.apply(this,arguments)}}()),(0,Oe.A)((0,xc.A)(be),"saveFileInput",function(Xt){be.fileInput=Xt}),be}return(0,lt.A)(oe,[{key:"componentDidMount",value:function(){this._isMounted=!0;var Mt=this.props.pastable;Mt&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(Mt){var ut=this.props.pastable;ut&&!Mt.pastable?document.addEventListener("paste",this.onFilePaste):!ut&&Mt.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(Mt){var ut=this,tn=Mt.data,Xt=Mt.origin,Kn=Mt.action,ao=Mt.parsedFile;if(this._isMounted){var v=this.props,K=v.onStart,te=v.customRequest,me=v.name,$e=v.headers,nt=v.withCredentials,yt=v.method,dt=Xt.uid,It=te||Bc,un={action:Kn,filename:me,data:tn,file:ao,headers:$e,withCredentials:nt,method:yt||"post",onProgress:function(gn){var wo=ut.props.onProgress;wo==null||wo(gn,ao)},onSuccess:function(gn,wo){var vo=ut.props.onSuccess;vo==null||vo(gn,ao,wo),delete ut.reqs[dt]},onError:function(gn,wo){var vo=ut.props.onError;vo==null||vo(gn,wo,ao),delete ut.reqs[dt]}};K(Xt),this.reqs[dt]=It(un)}}},{key:"reset",value:function(){this.setState({uid:sp()})}},{key:"abort",value:function(Mt){var ut=this.reqs;if(Mt){var tn=Mt.uid?Mt.uid:Mt;ut[tn]&&ut[tn].abort&&ut[tn].abort(),delete ut[tn]}else Object.keys(ut).forEach(function(Xt){ut[Xt]&&ut[Xt].abort&&ut[Xt].abort(),delete ut[Xt]})}},{key:"render",value:function(){var Mt=this.props,ut=Mt.component,tn=Mt.prefixCls,Xt=Mt.className,Kn=Mt.classNames,ao=Kn===void 0?{}:Kn,v=Mt.disabled,K=Mt.id,te=Mt.name,me=Mt.style,$e=Mt.styles,nt=$e===void 0?{}:$e,yt=Mt.multiple,dt=Mt.accept,It=Mt.capture,un=Mt.children,xn=Mt.directory,gn=Mt.openFileDialogOnClick,wo=Mt.onMouseEnter,vo=Mt.onMouseLeave,Co=Mt.hasControlInside,Eo=(0,Xe.A)(Mt,x2),go=Ae()((0,Oe.A)((0,Oe.A)((0,Oe.A)({},tn,!0),"".concat(tn,"-disabled"),v),Xt,Xt)),xo=xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},jo=v?{}:{onClick:gn?this.onClick:function(){},onKeyDown:gn?this.onKeyDown:function(){},onMouseEnter:wo,onMouseLeave:vo,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:Co?void 0:"0"};return M.createElement(ut,(0,f.A)({},jo,{className:go,role:Co?void 0:"button",style:me}),M.createElement("input",(0,f.A)({},(0,y2.A)(Eo,{aria:!0,data:!0}),{id:K,name:te,disabled:v,type:"file",ref:this.saveFileInput,onClick:function(na){return na.stopPropagation()},key:this.state.uid,style:(0,F0.A)({display:"none"},nt.input),className:ao.input,accept:dt},xo,{multiple:yt,onChange:this.onChange},It!=null?{capture:It}:{})),un)}}]),oe}(M.Component);const lp=Zp;function cp(){}var R1=function(I){(0,g2.A)(oe,I);var F=(0,Gp.A)(oe);function oe(){var be;(0,ne.A)(this,oe);for(var Mt=arguments.length,ut=new Array(Mt),tn=0;tn<Mt;tn++)ut[tn]=arguments[tn];return be=F.call.apply(F,[this].concat(ut)),(0,Oe.A)((0,xc.A)(be),"uploader",void 0),(0,Oe.A)((0,xc.A)(be),"saveUploader",function(Xt){be.uploader=Xt}),be}return(0,lt.A)(oe,[{key:"abort",value:function(Mt){this.uploader.abort(Mt)}},{key:"render",value:function(){return M.createElement(lp,(0,f.A)({},this.props,{ref:this.saveUploader}))}}]),oe}(M.Component);(0,Oe.A)(R1,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:cp,onError:cp,onSuccess:cp,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const dp=R1;var pp=i(94815),Nl=i(34321),Nd=i(90912),ud=i(85879);const Ds=I=>{const{componentCls:F,iconCls:oe}=I;return{[F+"-wrapper"]:{[F+"-drag"]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:I.colorFillAlter,border:(0,wn.zA)(I.lineWidth)+" dashed "+I.colorBorder,borderRadius:I.borderRadiusLG,cursor:"pointer",transition:"border-color "+I.motionDurationSlow,[F]:{padding:I.padding},[F+"-btn"]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:I.borderRadiusLG,"&:focus-visible":{outline:(0,wn.zA)(I.lineWidthFocus)+" solid "+I.colorPrimaryBorder}},[F+"-drag-container"]:{display:"table-cell",verticalAlign:"middle"},["\n &:not("+F+"-disabled):hover,\n &-hover:not("+F+"-disabled)\n "]:{borderColor:I.colorPrimaryHover},["p"+F+"-drag-icon"]:{marginBottom:I.margin,[oe]:{color:I.colorPrimary,fontSize:I.uploadThumbnailSize}},["p"+F+"-text"]:{margin:"0 0 "+(0,wn.zA)(I.marginXXS),color:I.colorTextHeading,fontSize:I.fontSizeLG},["p"+F+"-hint"]:{color:I.colorTextDescription,fontSize:I.fontSize},["&"+F+"-disabled"]:{["p"+F+"-drag-icon "+oe+",\n p"+F+"-text,\n p"+F+"-hint\n "]:{color:I.colorTextDisabled}}}}}},Kp=I=>{const{componentCls:F,iconCls:oe,fontSize:be,lineHeight:Mt,calc:ut}=I,tn=F+"-list-item",Xt=tn+"-actions",Kn=tn+"-action";return{[F+"-wrapper"]:{[F+"-list"]:Object.assign(Object.assign({},(0,So.t6)()),{lineHeight:I.lineHeight,[tn]:{position:"relative",height:ut(I.lineHeight).mul(be).equal(),marginTop:I.marginXS,fontSize:be,display:"flex",alignItems:"center",transition:"background-color "+I.motionDurationSlow,borderRadius:I.borderRadiusSM,"&:hover":{backgroundColor:I.controlItemBgHover},[tn+"-name"]:Object.assign(Object.assign({},So.L9),{padding:"0 "+(0,wn.zA)(I.paddingXS),lineHeight:Mt,flex:"auto",transition:"all "+I.motionDurationSlow}),[Xt]:{whiteSpace:"nowrap",[Kn]:{opacity:0},[oe]:{color:I.actionsColor,transition:"all "+I.motionDurationSlow},["\n "+Kn+":focus-visible,\n &.picture "+Kn+"\n "]:{opacity:1}},[F+"-icon "+oe]:{color:I.colorIcon,fontSize:be},[tn+"-progress"]:{position:"absolute",bottom:I.calc(I.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:ut(be).add(I.paddingXS).equal(),fontSize:be,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[tn+":hover "+Kn]:{opacity:1},[tn+"-error"]:{color:I.colorError,[tn+"-name, "+F+"-icon "+oe]:{color:I.colorError},[Xt]:{[oe+", "+oe+":hover"]:{color:I.colorError},[Kn]:{opacity:1}}},[F+"-list-item-container"]:{transition:"opacity "+I.motionDurationSlow+", height "+I.motionDurationSlow,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var V0=i(24982);const b2=I=>{const{componentCls:F}=I,oe=new wn.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:I.calc(I.marginXS).div(-2).equal()}}),be=new wn.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:I.calc(I.marginXS).div(-2).equal()}}),Mt=F+"-animate-inline";return[{[F+"-wrapper"]:{[Mt+"-appear, "+Mt+"-enter, "+Mt+"-leave"]:{animationDuration:I.motionDurationSlow,animationTimingFunction:I.motionEaseInOutCirc,animationFillMode:"forwards"},[Mt+"-appear, "+Mt+"-enter"]:{animationName:oe},[Mt+"-leave"]:{animationName:be}}},{[F+"-wrapper"]:(0,V0.p9)(I)},oe,be]};var f0=i(59640);const W0=I=>{const{componentCls:F,iconCls:oe,uploadThumbnailSize:be,uploadProgressOffset:Mt,calc:ut}=I,tn=F+"-list",Xt=tn+"-item";return{[F+"-wrapper"]:{["\n "+tn+tn+"-picture,\n "+tn+tn+"-picture-card,\n "+tn+tn+"-picture-circle\n "]:{[Xt]:{position:"relative",height:ut(be).add(ut(I.lineWidth).mul(2)).add(ut(I.paddingXS).mul(2)).equal(),padding:I.paddingXS,border:(0,wn.zA)(I.lineWidth)+" "+I.lineType+" "+I.colorBorder,borderRadius:I.borderRadiusLG,"&:hover":{background:"transparent"},[Xt+"-thumbnail"]:Object.assign(Object.assign({},So.L9),{width:be,height:be,lineHeight:(0,wn.zA)(ut(be).add(I.paddingSM).equal()),textAlign:"center",flex:"none",[oe]:{fontSize:I.fontSizeHeading2,color:I.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[Xt+"-progress"]:{bottom:Mt,width:"calc(100% - "+(0,wn.zA)(ut(I.paddingSM).mul(2).equal())+")",marginTop:0,paddingInlineStart:ut(be).add(I.paddingXS).equal()}},[Xt+"-error"]:{borderColor:I.colorError,[Xt+"-thumbnail "+oe]:{["svg path[fill='"+f0.z1[0]+"']"]:{fill:I.colorErrorBg},["svg path[fill='"+f0.z1.primary+"']"]:{fill:I.colorError}}},[Xt+"-uploading"]:{borderStyle:"dashed",[Xt+"-name"]:{marginBottom:Mt}}},[""+tn+tn+"-picture-circle "+Xt]:{["&, &::before, "+Xt+"-thumbnail"]:{borderRadius:"50%"}}}}},v1=I=>{const{componentCls:F,iconCls:oe,fontSizeLG:be,colorTextLightSolid:Mt,calc:ut}=I,tn=F+"-list",Xt=tn+"-item",Kn=I.uploadPicCardSize;return{["\n "+F+"-wrapper"+F+"-picture-card-wrapper,\n "+F+"-wrapper"+F+"-picture-circle-wrapper\n "]:Object.assign(Object.assign({},(0,So.t6)()),{display:"block",[""+F+F+"-select"]:{width:Kn,height:Kn,textAlign:"center",verticalAlign:"top",backgroundColor:I.colorFillAlter,border:(0,wn.zA)(I.lineWidth)+" dashed "+I.colorBorder,borderRadius:I.borderRadiusLG,cursor:"pointer",transition:"border-color "+I.motionDurationSlow,["> "+F]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},["&:not("+F+"-disabled):hover"]:{borderColor:I.colorPrimary}},[""+tn+tn+"-picture-card, "+tn+tn+"-picture-circle"]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:I.marginXS,marginInlineEnd:I.marginXS}},"@supports (gap: 1px)":{gap:I.marginXS},[tn+"-item-container"]:{display:"inline-block",width:Kn,height:Kn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Xt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - "+(0,wn.zA)(ut(I.paddingXS).mul(2).equal())+")",height:"calc(100% - "+(0,wn.zA)(ut(I.paddingXS).mul(2).equal())+")",backgroundColor:I.colorBgMask,opacity:0,transition:"all "+I.motionDurationSlow,content:'" "'}},[Xt+":hover"]:{["&::before, "+Xt+"-actions"]:{opacity:1}},[Xt+"-actions"]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all "+I.motionDurationSlow,["\n "+oe+"-eye,\n "+oe+"-download,\n "+oe+"-delete\n "]:{zIndex:10,width:be,margin:"0 "+(0,wn.zA)(I.marginXXS),fontSize:be,cursor:"pointer",transition:"all "+I.motionDurationSlow,color:Mt,"&:hover":{color:Mt},svg:{verticalAlign:"baseline"}}},[Xt+"-thumbnail, "+Xt+"-thumbnail img"]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[Xt+"-name"]:{display:"none",textAlign:"center"},[Xt+"-file + "+Xt+"-name"]:{position:"absolute",bottom:I.margin,display:"block",width:"calc(100% - "+(0,wn.zA)(ut(I.paddingXS).mul(2).equal())+")"},[Xt+"-uploading"]:{["&"+Xt]:{backgroundColor:I.colorFillAlter},["&::before, "+oe+"-eye, "+oe+"-download, "+oe+"-delete"]:{display:"none"}},[Xt+"-progress"]:{bottom:I.marginXL,width:"calc(100% - "+(0,wn.zA)(ut(I.paddingXS).mul(2).equal())+")",paddingInlineStart:0}}}),[F+"-wrapper"+F+"-picture-circle-wrapper"]:{[""+F+F+"-select"]:{borderRadius:"50%"}}}},C2=I=>{const{componentCls:F}=I;return{[F+"-rtl"]:{direction:"rtl"}}},Ou=I=>{const{componentCls:F,colorTextDisabled:oe}=I;return{[F+"-wrapper"]:Object.assign(Object.assign({},(0,So.dF)(I)),{[F]:{outline:0,"input[type='file']":{cursor:"pointer"}},[F+"-select"]:{display:"inline-block"},[F+"-hidden"]:{display:"none"},[F+"-disabled"]:{color:oe,cursor:"not-allowed"}})}},t0=I=>({actionsColor:I.colorIcon}),B1=(0,Ln.OF)("Upload",I=>{const{fontSizeHeading3:F,fontHeight:oe,lineWidth:be,controlHeightLG:Mt,calc:ut}=I,tn=(0,Mn.oX)(I,{uploadThumbnailSize:ut(F).mul(2).equal(),uploadProgressOffset:ut(ut(oe).div(2)).add(be).equal(),uploadPicCardSize:ut(Mt).mul(2.55).equal()});return[Ou(tn),Ds(tn),W0(tn),v1(tn),Kp(tn),b2(tn),C2(tn),(0,ud.A)(tn)]},t0);var hd={icon:function(F,oe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:oe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:F}}]}},name:"file",theme:"twotone"};const U1=hd;var Lc=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:U1}))},H0=M.forwardRef(Lc);const G0=H0;var up=i(66147),tl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const F1=tl;var tu=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:F1}))},nu=M.forwardRef(tu);const ou=nu;var cc={icon:function(F,oe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:F}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:oe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:oe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:oe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:F}}]}},name:"picture",theme:"twotone"};const au=cc;var w2=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:au}))},hp=M.forwardRef(w2);const mp=hp;var V1=i(38088),n0=i(13199);function Yp(){const[,I]=M.useReducer(F=>F+1,0);return I}var fp=i(54709),gp=i(67916);function Kd(I){return Object.assign(Object.assign({},I),{lastModified:I.lastModified,lastModifiedDate:I.lastModifiedDate,name:I.name,size:I.size,type:I.type,uid:I.uid,percent:0,originFileObj:I})}function Xp(I,F){const oe=(0,Xc.A)(F),be=oe.findIndex(Mt=>{let{uid:ut}=Mt;return ut===I.uid});return be===-1?oe.push(I):oe[be]=I,oe}function Qp(I,F){const oe=I.uid!==void 0?"uid":"name";return F.filter(be=>be[oe]===I[oe])[0]}function S2(I,F){const oe=I.uid!==void 0?"uid":"name",be=F.filter(Mt=>Mt[oe]!==I[oe]);return be.length===F.length?null:be}const ru=function(I){I===void 0&&(I="");const F=I.split("/"),be=F[F.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(be)||[""])[0]},iu=I=>I.indexOf("image/")===0,z1=I=>{if(I.type&&!I.thumbUrl)return iu(I.type);const F=I.thumbUrl||I.url||"",oe=ru(F);return/^data:image\//.test(F)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(oe)?!0:!(/^data:/.test(F)||oe)},md=200;function rd(I){return new Promise(F=>{if(!I.type||!iu(I.type)){F("");return}const oe=document.createElement("canvas");oe.width=md,oe.height=md,oe.style.cssText="position: fixed; left: 0; top: 0; width: "+md+"px; height: "+md+"px; z-index: 9999; display: none;",document.body.appendChild(oe);const be=oe.getContext("2d"),Mt=new Image;if(Mt.onload=()=>{const{width:ut,height:tn}=Mt;let Xt=md,Kn=md,ao=0,v=0;ut>tn?(Kn=tn*(md/ut),v=-(Kn-Xt)/2):(Xt=ut*(md/tn),ao=-(Xt-Kn)/2),be.drawImage(Mt,ao,v,Xt,Kn);const K=oe.toDataURL();document.body.removeChild(oe),window.URL.revokeObjectURL(Mt.src),F(K)},Mt.crossOrigin="anonymous",I.type.startsWith("image/svg+xml")){const ut=new FileReader;ut.onload=()=>{ut.result&&typeof ut.result=="string"&&(Mt.src=ut.result)},ut.readAsDataURL(I)}else if(I.type.startsWith("image/gif")){const ut=new FileReader;ut.onload=()=>{ut.result&&F(ut.result)},ut.readAsDataURL(I)}else Mt.src=window.URL.createObjectURL(I)})}var Jp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const A2=Jp;var W1=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:A2}))},Ru=M.forwardRef(W1);const su=Ru;var H1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const lu=H1;var qp=function(F,oe){return M.createElement(V.A,(0,f.A)({},F,{ref:oe,icon:lu}))},cu=M.forwardRef(qp);const yp=cu;var Yd=i(95132),Z0=i(98101),Fl=i(52656),jd=i(28086),fd=i(29321),vp={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$p=function(){var F=(0,M.useRef)([]),oe=(0,M.useRef)(null);return(0,M.useEffect)(function(){var be=Date.now(),Mt=!1;F.current.forEach(function(ut){if(ut){Mt=!0;var tn=ut.style;tn.transitionDuration=".3s, .3s, .3s, .06s",oe.current&&be-oe.current<100&&(tn.transitionDuration="0s, 0s")}}),Mt&&(oe.current=Date.now())}),F.current},M2=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],K0=function(F){var oe=(0,F0.A)((0,F0.A)({},vp),F),be=oe.className,Mt=oe.percent,ut=oe.prefixCls,tn=oe.strokeColor,Xt=oe.strokeLinecap,Kn=oe.strokeWidth,ao=oe.style,v=oe.trailColor,K=oe.trailWidth,te=oe.transition,me=(0,Xe.A)(oe,M2);delete me.gapPosition;var $e=Array.isArray(Mt)?Mt:[Mt],nt=Array.isArray(tn)?tn:[tn],yt=$p(),dt=Kn/2,It=100-Kn/2,un="M ".concat(Xt==="round"?dt:0,",").concat(dt,"\n L ").concat(Xt==="round"?It:100,",").concat(dt),xn="0 0 100 ".concat(Kn),gn=0;return M.createElement("svg",(0,f.A)({className:Ae()("".concat(ut,"-line"),be),viewBox:xn,preserveAspectRatio:"none",style:ao},me),M.createElement("path",{className:"".concat(ut,"-line-trail"),d:un,strokeLinecap:Xt,stroke:v,strokeWidth:K||Kn,fillOpacity:"0"}),$e.map(function(wo,vo){var Co=1;switch(Xt){case"round":Co=1-Kn/100;break;case"square":Co=1-Kn/2/100;break;default:Co=1;break}var Eo={strokeDasharray:"".concat(wo*Co,"px, 100px"),strokeDashoffset:"-".concat(gn,"px"),transition:te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},go=nt[vo]||nt[nt.length-1];return gn+=wo,M.createElement("path",{key:vo,className:"".concat(ut,"-line-path"),d:un,strokeLinecap:Xt,stroke:go,strokeWidth:Kn,fillOpacity:"0",ref:function(jo){yt[vo]=jo},style:Eo})}))};const k2=K0;var E2=i(79544),I2=0,x1=(0,E2.A)();function e2(){var I;return x1?(I=I2,I2+=1):I="TEST_OR_SSR",I}const T2=function(I){var F=M.useState(),oe=(0,tt.A)(F,2),be=oe[0],Mt=oe[1];return M.useEffect(function(){Mt("rc_progress_".concat(e2()))},[]),I||be};var C0=function(F){var oe=F.bg,be=F.children;return M.createElement("div",{style:{width:"100%",height:"100%",background:oe}},be)};function b1(I,F){return Object.keys(I).map(function(oe){var be=parseFloat(oe),Mt="".concat(Math.floor(be*F),"%");return"".concat(I[oe]," ").concat(Mt)})}var C1=M.forwardRef(function(I,F){var oe=I.prefixCls,be=I.color,Mt=I.gradientId,ut=I.radius,tn=I.style,Xt=I.ptg,Kn=I.strokeLinecap,ao=I.strokeWidth,v=I.size,K=I.gapDegree,te=be&&(0,Be.A)(be)==="object",me=te?"#FFF":void 0,$e=v/2,nt=M.createElement("circle",{className:"".concat(oe,"-circle-path"),r:ut,cx:$e,cy:$e,stroke:me,strokeLinecap:Kn,strokeWidth:ao,opacity:Xt===0?0:1,style:tn,ref:F});if(!te)return nt;var yt="".concat(Mt,"-conic"),dt=K?"".concat(180+K/2,"deg"):"0deg",It=b1(be,(360-K)/360),un=b1(be,1),xn="conic-gradient(from ".concat(dt,", ").concat(It.join(", "),")"),gn="linear-gradient(to ".concat(K?"bottom":"top",", ").concat(un.join(", "),")");return M.createElement(M.Fragment,null,M.createElement("mask",{id:yt},nt),M.createElement("foreignObject",{x:0,y:0,width:v,height:v,mask:"url(#".concat(yt,")")},M.createElement(C0,{bg:gn},M.createElement(C0,{bg:xn}))))});const xp=C1;var w1=100,G1=function(F,oe,be,Mt,ut,tn,Xt,Kn,ao,v){var K=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,te=be/100*360*((360-tn)/360),me=tn===0?0:{bottom:0,top:180,left:90,right:-90}[Xt],$e=(100-Mt)/100*oe;ao==="round"&&Mt!==100&&($e+=v/2,$e>=oe&&($e=oe-.01));var nt=w1/2;return{stroke:typeof Kn=="string"?Kn:void 0,strokeDasharray:"".concat(oe,"px ").concat(F),strokeDashoffset:$e+K,transform:"rotate(".concat(ut+te+me,"deg)"),transformOrigin:"".concat(nt,"px ").concat(nt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},id=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function w0(I){var F=I!=null?I:[];return Array.isArray(F)?F:[F]}var o0=function(F){var oe=(0,F0.A)((0,F0.A)({},vp),F),be=oe.id,Mt=oe.prefixCls,ut=oe.steps,tn=oe.strokeWidth,Xt=oe.trailWidth,Kn=oe.gapDegree,ao=Kn===void 0?0:Kn,v=oe.gapPosition,K=oe.trailColor,te=oe.strokeLinecap,me=oe.style,$e=oe.className,nt=oe.strokeColor,yt=oe.percent,dt=(0,Xe.A)(oe,id),It=w1/2,un=T2(be),xn="".concat(un,"-gradient"),gn=It-tn/2,wo=Math.PI*2*gn,vo=ao>0?90+ao/2:-90,Co=wo*((360-ao)/360),Eo=(0,Be.A)(ut)==="object"?ut:{count:ut,gap:2},go=Eo.count,xo=Eo.gap,jo=w0(yt),pa=w0(nt),na=pa.find(function(bi){return bi&&(0,Be.A)(bi)==="object"}),Ma=na&&(0,Be.A)(na)==="object",Ka=Ma?"butt":te,Fa=G1(wo,Co,0,100,vo,ao,v,K,Ka,tn),xr=$p(),Tr=function(){var Er=0;return jo.map(function(Ya,Br){var qa=pa[Br]||pa[pa.length-1],Mr=G1(wo,Co,Er,Ya,vo,ao,v,qa,Ka,tn);return Er+=Ya,M.createElement(xp,{key:Br,color:qa,ptg:Ya,radius:gn,prefixCls:Mt,gradientId:xn,style:Mr,strokeLinecap:Ka,strokeWidth:tn,gapDegree:ao,ref:function(ts){xr[Br]=ts},size:w1})}).reverse()},fi=function(){var Er=Math.round(go*(jo[0]/100)),Ya=100/go,Br=0;return new Array(go).fill(null).map(function(qa,Mr){var qr=Mr<=Er-1?pa[0]:K,ts=qr&&(0,Be.A)(qr)==="object"?"url(#".concat(xn,")"):void 0,Ci=G1(wo,Co,Br,Ya,vo,ao,v,qr,"butt",tn,xo);return Br+=(Co-Ci.strokeDashoffset+xo)*100/Co,M.createElement("circle",{key:Mr,className:"".concat(Mt,"-circle-path"),r:gn,cx:It,cy:It,stroke:ts,strokeWidth:tn,opacity:1,style:Ci,ref:function(sc){xr[Mr]=sc}})})};return M.createElement("svg",(0,f.A)({className:Ae()("".concat(Mt,"-circle"),$e),viewBox:"0 0 ".concat(w1," ").concat(w1),style:me,id:be,role:"presentation"},dt),!go&&M.createElement("circle",{className:"".concat(Mt,"-circle-trail"),r:gn,cx:It,cy:It,stroke:K,strokeLinecap:Ka,strokeWidth:Xt||tn,style:Fa}),go?fi():Tr())};const Z1=o0,du={Line:k2,Circle:Z1};var Dd=i(20366);function Y0(I){return!I||I<0?0:I>100?100:I}function K1(I){let{success:F,successPercent:oe}=I,be=oe;return F&&"progress"in F&&(be=F.progress),F&&"percent"in F&&(be=F.percent),be}const _2=I=>{let{percent:F,success:oe,successPercent:be}=I;const Mt=Y0(K1({success:oe,successPercent:be}));return[Mt,Y0(Y0(F)-Mt)]},P2=I=>{let{success:F={},strokeColor:oe}=I;const{strokeColor:be}=F;return[be||f0.uy.green,oe||null]},t2=(I,F,oe)=>{var be,Mt,ut,tn;let Xt=-1,Kn=-1;if(F==="step"){const ao=oe.steps,v=oe.strokeWidth;typeof I=="string"||typeof I>"u"?(Xt=I==="small"?2:14,Kn=v!=null?v:8):typeof I=="number"?[Xt,Kn]=[I,I]:[Xt=14,Kn=8]=Array.isArray(I)?I:[I.width,I.height],Xt*=ao}else if(F==="line"){const ao=oe==null?void 0:oe.strokeWidth;typeof I=="string"||typeof I>"u"?Kn=ao||(I==="small"?6:8):typeof I=="number"?[Xt,Kn]=[I,I]:[Xt=-1,Kn=8]=Array.isArray(I)?I:[I.width,I.height]}else(F==="circle"||F==="dashboard")&&(typeof I=="string"||typeof I>"u"?[Xt,Kn]=I==="small"?[60,60]:[120,120]:typeof I=="number"?[Xt,Kn]=[I,I]:Array.isArray(I)&&(Xt=(Mt=(be=I[0])!==null&&be!==void 0?be:I[1])!==null&&Mt!==void 0?Mt:120,Kn=(tn=(ut=I[0])!==null&&ut!==void 0?ut:I[1])!==null&&tn!==void 0?tn:120));return[Xt,Kn]},S1=3,bp=I=>S1/I*100,n2=I=>{const{prefixCls:F,trailColor:oe=null,strokeLinecap:be="round",gapPosition:Mt,gapDegree:ut,width:tn=120,type:Xt,children:Kn,success:ao,size:v=tn,steps:K}=I,[te,me]=t2(v,"circle");let{strokeWidth:$e}=I;$e===void 0&&($e=Math.max(bp(te),6));const nt={width:te,height:me,fontSize:te*.15+6},yt=M.useMemo(()=>{if(ut||ut===0)return ut;if(Xt==="dashboard")return 75},[ut,Xt]),dt=_2(I),It=Mt||Xt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(I.strokeColor)==="[object Object]",xn=P2({success:ao,strokeColor:I.strokeColor}),gn=Ae()(F+"-inner",{[F+"-circle-gradient"]:un}),wo=M.createElement(Z1,{steps:K,percent:K?dt[1]:dt,strokeWidth:$e,trailWidth:$e,strokeColor:K?xn[1]:xn,strokeLinecap:be,trailColor:oe,prefixCls:F,gapDegree:yt,gapPosition:It}),vo=te<=20,Co=M.createElement("div",{className:gn,style:nt},wo,!vo&&Kn);return vo?M.createElement(Dd.A,{title:Kn},Co):Co},Nc="--progress-line-stroke-color",Xd="--progress-percent",o2=I=>{const F=I?"100%":"-100%";return new wn.Mo("antProgress"+(I?"RTL":"LTR")+"Active",{"0%":{transform:"translateX("+F+") scaleX(0)",opacity:.1},"20%":{transform:"translateX("+F+") scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},A1=I=>{const{componentCls:F,iconCls:oe}=I;return{[F]:Object.assign(Object.assign({},(0,So.dF)(I)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:I.fontSize},[F+"-outer"]:{display:"inline-flex",alignItems:"center",width:"100%"},[F+"-inner"]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:I.remainingColor,borderRadius:I.lineBorderRadius},[F+"-inner:not("+F+"-circle-gradient)"]:{[F+"-circle-path"]:{stroke:I.defaultColor}},[F+"-success-bg, "+F+"-bg"]:{position:"relative",background:I.defaultColor,borderRadius:I.lineBorderRadius,transition:"all "+I.motionDurationSlow+" "+I.motionEaseInOutCirc},[F+"-layout-bottom"]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[F+"-text"]:{width:"max-content",marginInlineStart:0,marginTop:I.marginXXS}},[F+"-bg"]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var("+Nc+")"]},height:"100%",width:"calc(1 / var("+Xd+") * 100%)",display:"block"},["&"+F+"-bg-inner"]:{minWidth:"max-content","&::after":{content:"none"},[F+"-text-inner"]:{color:I.colorWhite,["&"+F+"-text-bright"]:{color:"rgba(0, 0, 0, 0.45)"}}}},[F+"-success-bg"]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:I.colorSuccess},[F+"-text"]:{display:"inline-block",marginInlineStart:I.marginXS,color:I.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[oe]:{fontSize:I.fontSize},["&"+F+"-text-outer"]:{width:"max-content"},["&"+F+"-text-outer"+F+"-text-start"]:{width:"max-content",marginInlineStart:0,marginInlineEnd:I.marginXS}},[F+"-text-inner"]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:"0 "+(0,wn.zA)(I.paddingXXS),["&"+F+"-text-start"]:{justifyContent:"start"},["&"+F+"-text-end"]:{justifyContent:"end"}},["&"+F+"-status-active"]:{[F+"-bg::before"]:{position:"absolute",inset:0,backgroundColor:I.colorBgContainer,borderRadius:I.lineBorderRadius,opacity:0,animationName:o2(),animationDuration:I.progressActiveMotionDuration,animationTimingFunction:I.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&"+F+"-rtl"+F+"-status-active"]:{[F+"-bg::before"]:{animationName:o2(!0)}},["&"+F+"-status-exception"]:{[F+"-bg"]:{backgroundColor:I.colorError},[F+"-text"]:{color:I.colorError}},["&"+F+"-status-exception "+F+"-inner:not("+F+"-circle-gradient)"]:{[F+"-circle-path"]:{stroke:I.colorError}},["&"+F+"-status-success"]:{[F+"-bg"]:{backgroundColor:I.colorSuccess},[F+"-text"]:{color:I.colorSuccess}},["&"+F+"-status-success "+F+"-inner:not("+F+"-circle-gradient)"]:{[F+"-circle-path"]:{stroke:I.colorSuccess}}})}},Cp=I=>{const{componentCls:F,iconCls:oe}=I;return{[F]:{[F+"-circle-trail"]:{stroke:I.remainingColor},["&"+F+"-circle "+F+"-inner"]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&"+F+"-circle "+F+"-text"]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:I.circleTextColor,fontSize:I.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[oe]:{fontSize:I.circleIconFontSize}},[F+"-circle&-status-exception"]:{[F+"-text"]:{color:I.colorError}},[F+"-circle&-status-success"]:{[F+"-text"]:{color:I.colorSuccess}}},[F+"-inline-circle"]:{lineHeight:1,[F+"-inner"]:{verticalAlign:"bottom"}}}},A0=I=>{const{componentCls:F}=I;return{[F]:{[F+"-steps"]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:I.progressStepMinWidth,marginInlineEnd:I.progressStepMarginInlineEnd,backgroundColor:I.remainingColor,transition:"all "+I.motionDurationSlow,"&-active":{backgroundColor:I.defaultColor}}}}}},Qd=I=>{const{componentCls:F,iconCls:oe}=I;return{[F]:{[F+"-small&-line, "+F+"-small&-line "+F+"-text "+oe]:{fontSize:I.fontSizeSM}}}},wp=I=>({circleTextColor:I.colorText,defaultColor:I.colorInfo,remainingColor:I.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:I.fontSize/I.fontSizeSM+"em"}),a0=(0,Ln.OF)("Progress",I=>{const F=I.calc(I.marginXXS).div(2).equal(),oe=(0,Mn.oX)(I,{progressStepMarginInlineEnd:F,progressStepMinWidth:F,progressActiveMotionDuration:"2.4s"});return[A1(oe),Cp(oe),A0(oe),Qd(oe)]},wp);var M0=function(I,F){var oe={};for(var be in I)Object.prototype.hasOwnProperty.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,be=Object.getOwnPropertySymbols(I);Mt<be.length;Mt++)F.indexOf(be[Mt])<0&&Object.prototype.propertyIsEnumerable.call(I,be[Mt])&&(oe[be[Mt]]=I[be[Mt]]);return oe};const ke=I=>{let F=[];return Object.keys(I).forEach(oe=>{const be=parseFloat(oe.replace(/%/g,""));Number.isNaN(be)||F.push({key:be,value:I[oe]})}),F=F.sort((oe,be)=>oe.key-be.key),F.map(oe=>{let{key:be,value:Mt}=oe;return Mt+" "+be+"%"}).join(", ")},Ve=(I,F)=>{const{from:oe=f0.uy.blue,to:be=f0.uy.blue,direction:Mt=F==="rtl"?"to left":"to right"}=I,ut=M0(I,["from","to","direction"]);if(Object.keys(ut).length!==0){const Xt=ke(ut),Kn="linear-gradient("+Mt+", "+Xt+")";return{background:Kn,[Nc]:Kn}}const tn="linear-gradient("+Mt+", "+oe+", "+be+")";return{background:tn,[Nc]:tn}},wt=I=>{const{prefixCls:F,direction:oe,percent:be,size:Mt,strokeWidth:ut,strokeColor:tn,strokeLinecap:Xt="round",children:Kn,trailColor:ao=null,percentPosition:v,success:K}=I,{align:te,type:me}=v,$e=tn&&typeof tn!="string"?Ve(tn,oe):{[Nc]:tn,background:tn},nt=Xt==="square"||Xt==="butt"?0:void 0,yt=Mt!=null?Mt:[-1,ut||(Mt==="small"?6:8)],[dt,It]=t2(yt,"line",{strokeWidth:ut}),un={backgroundColor:ao||void 0,borderRadius:nt},xn=Object.assign(Object.assign({width:Y0(be)+"%",height:It,borderRadius:nt},$e),{[Xd]:Y0(be)/100}),gn=K1(I),wo={width:Y0(gn)+"%",height:It,borderRadius:nt,backgroundColor:K==null?void 0:K.strokeColor},vo={width:dt<0?"100%":dt},Co=M.createElement("div",{className:F+"-inner",style:un},M.createElement("div",{className:Ae()(F+"-bg",F+"-bg-"+me),style:xn},me==="inner"&&Kn),gn!==void 0&&M.createElement("div",{className:F+"-success-bg",style:wo})),Eo=me==="outer"&&te==="start",go=me==="outer"&&te==="end";return me==="outer"&&te==="center"?M.createElement("div",{className:F+"-layout-bottom"},Co,Kn):M.createElement("div",{className:F+"-outer",style:vo},Eo&&Kn,Co,go&&Kn)},za=I=>{const{size:F,steps:oe,rounding:be=Math.round,percent:Mt=0,strokeWidth:ut=8,strokeColor:tn,trailColor:Xt=null,prefixCls:Kn,children:ao}=I,v=be(oe*(Mt/100)),K=F==="small"?2:14,te=F!=null?F:[K,ut],[me,$e]=t2(te,"step",{steps:oe,strokeWidth:ut}),nt=me/oe,yt=Array.from({length:oe});for(let dt=0;dt<oe;dt++){const It=Array.isArray(tn)?tn[dt]:tn;yt[dt]=M.createElement("div",{key:dt,className:Ae()(Kn+"-steps-item",{[Kn+"-steps-item-active"]:dt<=v-1}),style:{backgroundColor:dt<=v-1?It:Xt,width:nt,height:$e}})}return M.createElement("div",{className:Kn+"-steps-outer"},yt,ao)};var Qa=function(I,F){var oe={};for(var be in I)Object.prototype.hasOwnProperty.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,be=Object.getOwnPropertySymbols(I);Mt<be.length;Mt++)F.indexOf(be[Mt])<0&&Object.prototype.propertyIsEnumerable.call(I,be[Mt])&&(oe[be[Mt]]=I[be[Mt]]);return oe};const rr=null,Ji=["normal","exception","active","success"],jr=M.forwardRef((I,F)=>{const{prefixCls:oe,className:be,rootClassName:Mt,steps:ut,strokeColor:tn,percent:Xt=0,size:Kn="default",showInfo:ao=!0,type:v="line",status:K,format:te,style:me,percentPosition:$e={}}=I,nt=Qa(I,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:yt="end",type:dt="outer"}=$e,It=Array.isArray(tn)?tn[0]:tn,un=typeof tn=="string"||Array.isArray(tn)?tn:void 0,xn=M.useMemo(()=>{if(It){const Tr=typeof It=="string"?It:Object.values(It)[0];return new Rt.Y(Tr).isLight()}return!1},[tn]),gn=M.useMemo(()=>{var Tr,fi;const bi=K1(I);return parseInt(bi!==void 0?(Tr=bi!=null?bi:0)===null||Tr===void 0?void 0:Tr.toString():(fi=Xt!=null?Xt:0)===null||fi===void 0?void 0:fi.toString(),10)},[Xt,I.success,I.successPercent]),wo=M.useMemo(()=>!Ji.includes(K)&&gn>=100?"success":K||"normal",[K,gn]),{getPrefixCls:vo,direction:Co,progress:Eo}=M.useContext(Bn.QO),go=vo("progress",oe),[xo,jo,pa]=a0(go),na=v==="line",Ma=na&&!ut,Ka=M.useMemo(()=>{if(!ao)return null;const Tr=K1(I);let fi;const bi=te||(Ya=>Ya+"%"),Er=na&&xn&&dt==="inner";return dt==="inner"||te||wo!=="exception"&&wo!=="success"?fi=bi(Y0(Xt),Y0(Tr)):wo==="exception"?fi=na?M.createElement(jd.A,null):M.createElement(fd.A,null):wo==="success"&&(fi=na?M.createElement(Z0.A,null):M.createElement(Fl.A,null)),M.createElement("span",{className:Ae()(go+"-text",{[go+"-text-bright"]:Er,[go+"-text-"+yt]:Ma,[go+"-text-"+dt]:Ma}),title:typeof fi=="string"?fi:void 0},fi)},[ao,Xt,gn,wo,v,go,te]);let Fa;v==="line"?Fa=ut?M.createElement(za,Object.assign({},I,{strokeColor:un,prefixCls:go,steps:typeof ut=="object"?ut.count:ut}),Ka):M.createElement(wt,Object.assign({},I,{strokeColor:It,prefixCls:go,direction:Co,percentPosition:{align:yt,type:dt}}),Ka):(v==="circle"||v==="dashboard")&&(Fa=M.createElement(n2,Object.assign({},I,{strokeColor:It,prefixCls:go,progressStatus:wo}),Ka));const xr=Ae()(go,go+"-status-"+wo,{[go+"-"+(v==="dashboard"&&"circle"||v)]:v!=="line",[go+"-inline-circle"]:v==="circle"&&t2(Kn,"circle")[0]<=20,[go+"-line"]:Ma,[go+"-line-align-"+yt]:Ma,[go+"-line-position-"+dt]:Ma,[go+"-steps"]:ut,[go+"-show-info"]:ao,[go+"-"+Kn]:typeof Kn=="string",[go+"-rtl"]:Co==="rtl"},Eo==null?void 0:Eo.className,be,Mt,jo,pa);return xo(M.createElement("div",Object.assign({ref:F,style:Object.assign(Object.assign({},Eo==null?void 0:Eo.style),me),className:xr,role:"progressbar","aria-valuenow":gn,"aria-valuemin":0,"aria-valuemax":100},(0,n0.A)(nt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Fa))}),Ki=M.forwardRef((I,F)=>{let{prefixCls:oe,className:be,style:Mt,locale:ut,listType:tn,file:Xt,items:Kn,progress:ao,iconRender:v,actionIconRender:K,itemRender:te,isImgUrl:me,showPreviewIcon:$e,showRemoveIcon:nt,showDownloadIcon:yt,previewIcon:dt,removeIcon:It,downloadIcon:un,extra:xn,onPreview:gn,onDownload:wo,onClose:vo}=I;var Co,Eo;const{status:go}=Xt,[xo,jo]=M.useState(go);M.useEffect(()=>{go!=="removed"&&jo(go)},[go]);const[pa,na]=M.useState(!1);M.useEffect(()=>{const Js=setTimeout(()=>{na(!0)},300);return()=>{clearTimeout(Js)}},[]);const Ma=v(Xt);let Ka=M.createElement("div",{className:oe+"-icon"},Ma);if(tn==="picture"||tn==="picture-card"||tn==="picture-circle")if(xo==="uploading"||!Xt.thumbUrl&&!Xt.url){const Js=Ae()(oe+"-list-item-thumbnail",{[oe+"-list-item-file"]:xo!=="uploading"});Ka=M.createElement("div",{className:Js},Ma)}else{const Js=me!=null&&me(Xt)?M.createElement("img",{src:Xt.thumbUrl||Xt.url,alt:Xt.name,className:oe+"-list-item-image",crossOrigin:Xt.crossOrigin}):Ma,sl=Ae()(oe+"-list-item-thumbnail",{[oe+"-list-item-file"]:me&&!me(Xt)});Ka=M.createElement("a",{className:sl,onClick:di=>gn(Xt,di),href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Js)}const Fa=Ae()(oe+"-list-item",oe+"-list-item-"+xo),xr=typeof Xt.linkProps=="string"?JSON.parse(Xt.linkProps):Xt.linkProps,Tr=(typeof nt=="function"?nt(Xt):nt)?K((typeof It=="function"?It(Xt):It)||M.createElement(su,null),()=>vo(Xt),oe,ut.removeFile,!0):null,fi=(typeof yt=="function"?yt(Xt):yt)&&xo==="done"?K((typeof un=="function"?un(Xt):un)||M.createElement(yp,null),()=>wo(Xt),oe,ut.downloadFile):null,bi=tn!=="picture-card"&&tn!=="picture-circle"&&M.createElement("span",{key:"download-delete",className:Ae()(oe+"-list-item-actions",{picture:tn==="picture"})},fi,Tr),Er=typeof xn=="function"?xn(Xt):xn,Ya=Er&&M.createElement("span",{className:oe+"-list-item-extra"},Er),Br=Ae()(oe+"-list-item-name"),qa=Xt.url?M.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Br,title:Xt.name},xr,{href:Xt.url,onClick:Js=>gn(Xt,Js)}),Xt.name,Ya):M.createElement("span",{key:"view",className:Br,onClick:Js=>gn(Xt,Js),title:Xt.name},Xt.name,Ya),Mr=(typeof $e=="function"?$e(Xt):$e)&&(Xt.url||Xt.thumbUrl)?M.createElement("a",{href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Js=>gn(Xt,Js),title:ut.previewFile},typeof dt=="function"?dt(Xt):dt||M.createElement(Yd.A,null)):null,qr=(tn==="picture-card"||tn==="picture-circle")&&xo!=="uploading"&&M.createElement("span",{className:oe+"-list-item-actions"},Mr,xo==="done"&&fi,Tr),{getPrefixCls:ts}=M.useContext(Bn.QO),Ci=ts(),Al=M.createElement("div",{className:Fa},Ka,qa,bi,qr,pa&&M.createElement(V1.Ay,{motionName:Ci+"-fade",visible:xo==="uploading",motionDeadline:2e3},Js=>{let{className:sl}=Js;const di="percent"in Xt?M.createElement(jr,Object.assign({type:"line",percent:Xt.percent,"aria-label":Xt["aria-label"],"aria-labelledby":Xt["aria-labelledby"]},ao)):null;return M.createElement("div",{className:Ae()(oe+"-list-item-progress",sl)},di)})),sc=Xt.response&&typeof Xt.response=="string"?Xt.response:((Co=Xt.error)===null||Co===void 0?void 0:Co.statusText)||((Eo=Xt.error)===null||Eo===void 0?void 0:Eo.message)||ut.uploadError,hc=xo==="error"?M.createElement(Dd.A,{title:sc,getPopupContainer:Js=>Js.parentNode},Al):Al;return M.createElement("div",{className:Ae()(oe+"-list-item-container",be),style:Mt,ref:F},te?te(hc,Xt,Kn,{download:wo.bind(null,Xt),preview:gn.bind(null,Xt),remove:vo.bind(null,Xt)}):hc)}),Zr=(I,F)=>{const{listType:oe="text",previewFile:be=rd,onPreview:Mt,onDownload:ut,onRemove:tn,locale:Xt,iconRender:Kn,isImageUrl:ao=z1,prefixCls:v,items:K=[],showPreviewIcon:te=!0,showRemoveIcon:me=!0,showDownloadIcon:$e=!1,removeIcon:nt,previewIcon:yt,downloadIcon:dt,extra:It,progress:un={size:[-1,2],showInfo:!1},appendAction:xn,appendActionVisible:gn=!0,itemRender:wo,disabled:vo}=I,Co=Yp(),[Eo,go]=M.useState(!1),xo=["picture-card","picture-circle"].includes(oe);M.useEffect(()=>{oe.startsWith("picture")&&(K||[]).forEach(Ya=>{!(Ya.originFileObj instanceof File||Ya.originFileObj instanceof Blob)||Ya.thumbUrl!==void 0||(Ya.thumbUrl="",be==null||be(Ya.originFileObj).then(Br=>{Ya.thumbUrl=Br||"",Co()}))})},[oe,K,be]),M.useEffect(()=>{go(!0)},[]);const jo=(Ya,Br)=>{if(Mt)return Br==null||Br.preventDefault(),Mt(Ya)},pa=Ya=>{typeof ut=="function"?ut(Ya):Ya.url&&window.open(Ya.url)},na=Ya=>{tn==null||tn(Ya)},Ma=Ya=>{if(Kn)return Kn(Ya,oe);const Br=Ya.status==="uploading";if(oe.startsWith("picture")){const qa=oe==="picture"?M.createElement(up.A,null):Xt.uploading,Mr=ao!=null&&ao(Ya)?M.createElement(mp,null):M.createElement(G0,null);return Br?qa:Mr}return Br?M.createElement(up.A,null):M.createElement(ou,null)},Ka=(Ya,Br,qa,Mr,qr)=>{const ts={type:"text",size:"small",title:Mr,onClick:Ci=>{var Al,sc;Br(),M.isValidElement(Ya)&&((sc=(Al=Ya.props).onClick)===null||sc===void 0||sc.call(Al,Ci))},className:qa+"-list-item-action",disabled:qr?vo:!1};return M.isValidElement(Ya)?M.createElement(Pr.Ay,Object.assign({},ts,{icon:(0,gp.Ob)(Ya,Object.assign(Object.assign({},Ya.props),{onClick:()=>{}}))})):M.createElement(Pr.Ay,Object.assign({},ts),M.createElement("span",null,Ya))};M.useImperativeHandle(F,()=>({handlePreview:jo,handleDownload:pa}));const{getPrefixCls:Fa}=M.useContext(Bn.QO),xr=Fa("upload",v),Tr=Fa(),fi=Ae()(xr+"-list",xr+"-list-"+oe),bi=M.useMemo(()=>(0,n0.A)((0,fp.A)(Tr),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Tr]),Er=Object.assign(Object.assign({},xo?{}:bi),{motionDeadline:2e3,motionName:xr+"-"+(xo?"animate-inline":"animate"),keys:(0,Xc.A)(K.map(Ya=>({key:Ya.uid,file:Ya}))),motionAppear:Eo});return M.createElement("div",{className:fi},M.createElement(V1.aF,Object.assign({},Er,{component:!1}),Ya=>{let{key:Br,file:qa,className:Mr,style:qr}=Ya;return M.createElement(Ki,{key:Br,locale:Xt,prefixCls:xr,className:Mr,style:qr,file:qa,items:K,progress:un,listType:oe,isImgUrl:ao,showPreviewIcon:te,showRemoveIcon:me,showDownloadIcon:$e,removeIcon:nt,previewIcon:yt,downloadIcon:dt,extra:It,iconRender:Ma,actionIconRender:Ka,itemRender:wo,onPreview:jo,onDownload:pa,onClose:na})}),xn&&M.createElement(V1.Ay,Object.assign({},Er,{visible:gn,forceRender:!0}),Ya=>{let{className:Br,style:qa}=Ya;return(0,gp.Ob)(xn,Mr=>({className:Ae()(Mr.className,Br),style:Object.assign(Object.assign(Object.assign({},qa),{pointerEvents:Br?"none":void 0}),Mr.style)}))}))},Ii=M.forwardRef(Zr);var _i=function(I,F,oe,be){function Mt(ut){return ut instanceof oe?ut:new oe(function(tn){tn(ut)})}return new(oe||(oe=Promise))(function(ut,tn){function Xt(v){try{ao(be.next(v))}catch(K){tn(K)}}function Kn(v){try{ao(be.throw(v))}catch(K){tn(K)}}function ao(v){v.done?ut(v.value):Mt(v.value).then(Xt,Kn)}ao((be=be.apply(I,F||[])).next())})};const ii="__LIST_IGNORE_"+Date.now()+"__",$i=(I,F)=>{const{fileList:oe,defaultFileList:be,onRemove:Mt,showUploadList:ut=!0,listType:tn="text",onPreview:Xt,onDownload:Kn,onChange:ao,onDrop:v,previewFile:K,disabled:te,locale:me,iconRender:$e,isImageUrl:nt,progress:yt,prefixCls:dt,className:It,type:un="select",children:xn,style:gn,itemRender:wo,maxCount:vo,data:Co={},multiple:Eo=!1,hasControlInside:go=!0,action:xo="",accept:jo="",supportServerRender:pa=!0,rootClassName:na}=I,Ma=M.useContext(Zt.A),Ka=te!=null?te:Ma,[Fa,xr]=(0,pp.A)(be||[],{value:oe,postState:is=>is!=null?is:[]}),[Tr,fi]=M.useState("drop"),bi=M.useRef(null),Er=M.useRef(null);M.useMemo(()=>{const is=Date.now();(oe||[]).forEach((Gs,ml)=>{!Gs.uid&&!Object.isFrozen(Gs)&&(Gs.uid="__AUTO__"+is+"_"+ml+"__")})},[oe]);const Ya=(is,Gs,ml)=>{let Rl=(0,Xc.A)(Gs),Mc=!1;vo===1?Rl=Rl.slice(-1):vo&&(Mc=Rl.length>vo,Rl=Rl.slice(0,vo)),(0,ac.flushSync)(()=>{xr(Rl)});const y0={file:is,fileList:Rl};ml&&(y0.event=ml),(!Mc||is.status==="removed"||Rl.some(ku=>ku.uid===is.uid))&&(0,ac.flushSync)(()=>{ao==null||ao(y0)})},Br=(is,Gs)=>_i(void 0,void 0,void 0,function*(){const{beforeUpload:ml,transformFile:Rl}=I;let Mc=is;if(ml){const y0=yield ml(is,Gs);if(y0===!1)return!1;if(delete is[ii],y0===ii)return Object.defineProperty(is,ii,{value:!0,configurable:!0}),!1;typeof y0=="object"&&y0&&(Mc=y0)}return Rl&&(Mc=yield Rl(Mc)),Mc}),qa=is=>{const Gs=is.filter(Mc=>!Mc.file[ii]);if(!Gs.length)return;const ml=Gs.map(Mc=>Kd(Mc.file));let Rl=(0,Xc.A)(Fa);ml.forEach(Mc=>{Rl=Xp(Mc,Rl)}),ml.forEach((Mc,y0)=>{let ku=Mc;if(Gs[y0].parsedFile)Mc.status="uploading";else{const{originFileObj:Yu}=Mc;let Eu;try{Eu=new File([Yu],Yu.name,{type:Yu.type})}catch(fl){Eu=new Blob([Yu],{type:Yu.type}),Eu.name=Yu.name,Eu.lastModifiedDate=new Date,Eu.lastModified=new Date().getTime()}Eu.uid=Mc.uid,ku=Eu}Ya(ku,Rl)})},Mr=(is,Gs,ml)=>{try{typeof is=="string"&&(is=JSON.parse(is))}catch(y0){}if(!Qp(Gs,Fa))return;const Rl=Kd(Gs);Rl.status="done",Rl.percent=100,Rl.response=is,Rl.xhr=ml;const Mc=Xp(Rl,Fa);Ya(Rl,Mc)},qr=(is,Gs)=>{if(!Qp(Gs,Fa))return;const ml=Kd(Gs);ml.status="uploading",ml.percent=is.percent;const Rl=Xp(ml,Fa);Ya(ml,Rl,is)},ts=(is,Gs,ml)=>{if(!Qp(ml,Fa))return;const Rl=Kd(ml);Rl.error=is,Rl.response=Gs,Rl.status="error";const Mc=Xp(Rl,Fa);Ya(Rl,Mc)},Ci=is=>{let Gs;Promise.resolve(typeof Mt=="function"?Mt(is):Mt).then(ml=>{var Rl;if(ml===!1)return;const Mc=S2(is,Fa);Mc&&(Gs=Object.assign(Object.assign({},is),{status:"removed"}),Fa==null||Fa.forEach(y0=>{const ku=Gs.uid!==void 0?"uid":"name";y0[ku]===Gs[ku]&&!Object.isFrozen(y0)&&(y0.status="removed")}),(Rl=bi.current)===null||Rl===void 0||Rl.abort(Gs),Ya(Gs,Mc))})},Al=is=>{fi(is.type),is.type==="drop"&&(v==null||v(is))};M.useImperativeHandle(F,()=>({onBatchStart:qa,onSuccess:Mr,onProgress:qr,onError:ts,fileList:Fa,upload:bi.current,nativeElement:Er.current}));const{getPrefixCls:sc,direction:hc,upload:Js}=M.useContext(Bn.QO),sl=sc("upload",dt),di=Object.assign(Object.assign({onBatchStart:qa,onError:ts,onProgress:qr,onSuccess:Mr},I),{data:Co,multiple:Eo,action:xo,accept:jo,supportServerRender:pa,prefixCls:sl,disabled:Ka,beforeUpload:Br,onChange:void 0,hasControlInside:go});delete di.className,delete di.style,(!xn||Ka)&&delete di.id;const Ss=sl+"-wrapper",[Ol,Ac,I1]=B1(sl,Ss),[Ed]=(0,Nl.A)("Upload",Nd.A.Upload),{showRemoveIcon:Vi,showPreviewIcon:qs,showDownloadIcon:ll,removeIcon:i0,previewIcon:kp,downloadIcon:g0,extra:Au}=typeof ut=="boolean"?{}:ut,D2=typeof Vi>"u"?!Ka:Vi,cl=(is,Gs)=>ut?M.createElement(Ii,{prefixCls:sl,listType:tn,items:Fa,previewFile:K,onPreview:Xt,onDownload:Kn,onRemove:Ci,showRemoveIcon:D2,showPreviewIcon:qs,showDownloadIcon:ll,removeIcon:i0,previewIcon:kp,downloadIcon:g0,iconRender:$e,extra:Au,locale:Object.assign(Object.assign({},Ed),me),isImageUrl:nt,progress:yt,appendAction:is,appendActionVisible:Gs,itemRender:wo,disabled:Ka}):is,vd=Ae()(Ss,It,na,Ac,I1,Js==null?void 0:Js.className,{[sl+"-rtl"]:hc==="rtl",[sl+"-picture-card-wrapper"]:tn==="picture-card",[sl+"-picture-circle-wrapper"]:tn==="picture-circle"}),ed=Object.assign(Object.assign({},Js==null?void 0:Js.style),gn);if(un==="drag"){const is=Ae()(Ac,sl,sl+"-drag",{[sl+"-drag-uploading"]:Fa.some(Gs=>Gs.status==="uploading"),[sl+"-drag-hover"]:Tr==="dragover",[sl+"-disabled"]:Ka,[sl+"-rtl"]:hc==="rtl"});return Ol(M.createElement("span",{className:vd,ref:Er},M.createElement("div",{className:is,style:ed,onDrop:Al,onDragOver:Al,onDragLeave:Al},M.createElement(dp,Object.assign({},di,{ref:bi,className:sl+"-btn"}),M.createElement("div",{className:sl+"-drag-container"},xn))),cl()))}const Ml=Ae()(sl,sl+"-select",{[sl+"-disabled"]:Ka,[sl+"-hidden"]:!xn}),Mu=M.createElement("div",{className:Ml,style:ed},M.createElement(dp,Object.assign({},di,{ref:bi})));return Ol(tn==="picture-card"||tn==="picture-circle"?M.createElement("span",{className:vd,ref:Er},cl(Mu,!!xn)):M.createElement("span",{className:vd,ref:Er},Mu,cl()))},vi=M.forwardRef($i);var Yi=function(I,F){var oe={};for(var be in I)Object.prototype.hasOwnProperty.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,be=Object.getOwnPropertySymbols(I);Mt<be.length;Mt++)F.indexOf(be[Mt])<0&&Object.prototype.propertyIsEnumerable.call(I,be[Mt])&&(oe[be[Mt]]=I[be[Mt]]);return oe};const _s=M.forwardRef((I,F)=>{var{style:oe,height:be,hasControlInside:Mt=!1}=I,ut=Yi(I,["style","height","hasControlInside"]);return M.createElement(vi,Object.assign({ref:F,hasControlInside:Mt},ut,{type:"drag",style:Object.assign(Object.assign({},oe),{height:be})}))}),As=vi;As.Dragger=_s,As.LIST_IGNORE=ii;const ql=As;var dc=Object.defineProperty,Hl=Object.defineProperties,gd=Object.getOwnPropertyDescriptors,ss=Object.getOwnPropertySymbols,fs=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,es=(I,F,oe)=>F in I?dc(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,xs=(I,F)=>{for(var oe in F||(F={}))fs.call(F,oe)&&es(I,oe,F[oe]);if(ss)for(var oe of ss(F))Wi.call(F,oe)&&es(I,oe,F[oe]);return I},Ui=(I,F)=>Hl(I,gd(F)),Ns=(I,F)=>{var oe={};for(var be in I)fs.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&ss)for(var be of ss(I))F.indexOf(be)<0&&Wi.call(I,be)&&(oe[be]=I[be]);return oe},ic=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Ns(oe,["size","spin","style"]);const Xt=xs(xs({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Ui(xs({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M17.7773 4C19.0046 4 20 4.99536 20 6.22266V17.7773C20 19.0046 19.0046 20 17.7773 20H6.22266L5.99512 19.9883C4.87451 19.8745 4 18.928 4 17.7773V6.22266C4 5.07204 4.87451 4.12548 5.99512 4.01172L6.22266 4H17.7773ZM14.8428 13.5049C14.5454 13.2076 14.0756 13.1721 13.7373 13.4219L6.86719 18.5H17.7773C18.1762 18.5 18.5 18.1762 18.5 17.7773V17.1611L14.8428 13.5049ZM6.22266 5.5C5.82378 5.5 5.5 5.82378 5.5 6.22266V17.6455L12.8457 12.2158C13.7811 11.5246 15.0818 11.6219 15.9043 12.4443L18.5 15.04V6.22266C18.5 5.82378 18.1762 5.5 17.7773 5.5H6.22266ZM8.79883 8.04395C9.65777 8.04406 10.3544 8.74067 10.3545 9.59961C10.3545 10.4586 9.65784 11.1552 8.79883 11.1553C7.93972 11.1553 7.24316 10.4587 7.24316 9.59961C7.24328 8.7406 7.93979 8.04395 8.79883 8.04395Z",fill:"#19191A"}))});const Fc=new WeakMap,Bu=I=>{let{element:F,onChange:oe,onUploadImage:be}=I;const[Mt,ut]=(0,M.useState)("default"),tn=(0,M.useRef)(null),Xt=async Kn=>{tn.current=new AbortController,Fc.set(F,tn.current),ut("loading");try{var ao;const v=await(be==null?void 0:be({file:Kn}));v&&!((ao=tn.current)!=null&&ao.signal.aborted)&&(oe==null||oe(location.origin+v))}catch(v){console.error(v)}finally{Fc.delete(F),ut("default")}return!1};return(0,M.useEffect)(()=>{let Kn;if(F&&Mt==="loading"){const v=F.ownerDocument.body;if(!v)return;Kn=new MutationObserver(K=>{if(K.some($e=>$e.type==="childList")&&(!v||!v.contains(F))){var me;(me=Fc.get(F))==null||me.abort()}}),Kn.observe(v,{subtree:!0,childList:!0})}else{var ao;(ao=Kn)==null||ao.disconnect()}return()=>{var v;(v=Kn)==null||v.disconnect()}},[F,Mt]),(0,M.useEffect)(()=>{Fc.has(F)&&ut("loading")},[F]),(0,ln.jsx)(ql,{accept:"image/png, image/jpeg, image/gif",beforeUpload:Xt,style:{display:"block"},showUploadList:!1,children:(0,ln.jsx)(lr,{variant:"text",color:"default",icon:(0,ln.jsx)(ic,{size:24}),tooltip:{title:I18N.HtmlVisualEditor.replace_image}})})};var Sp=Object.defineProperty,nh=Object.defineProperties,B=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,x=(I,F,oe)=>F in I?Sp(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,b=(I,F)=>{for(var oe in F||(F={}))A.call(F,oe)&&x(I,oe,F[oe]);if(R)for(var oe of R(F))u.call(F,oe)&&x(I,oe,F[oe]);return I},T=(I,F)=>nh(I,B(F)),L=(I,F)=>{var oe={};for(var be in I)A.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&R)for(var be of R(I))F.indexOf(be)<0&&u.call(I,be)&&(oe[be]=I[be]);return oe},W=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=L(oe,["size","spin","style"]);const Xt=b(b({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",T(b({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M19.25 7C19.6642 7 20 7.33579 20 7.75C20 8.16421 19.6642 8.5 19.25 8.5H18V18C18 18.9665 17.2165 19.75 16.25 19.75H7.75C6.7835 19.75 6 18.9665 6 18V8.5H4.75C4.33579 8.5 4 8.16421 4 7.75C4 7.33579 4.33579 7 4.75 7H19.25ZM7.5 8.5V18C7.5 18.1381 7.61193 18.25 7.75 18.25H16.25C16.3881 18.25 16.5 18.1381 16.5 18V8.5H7.5ZM10.25 11C10.6642 11 11 11.3358 11 11.75V15.25C11 15.6642 10.6642 16 10.25 16C9.83579 16 9.5 15.6642 9.5 15.25V11.75C9.5 11.3358 9.83579 11 10.25 11ZM13.75 11C14.1642 11 14.5 11.3358 14.5 11.75V15.25C14.5 15.6642 14.1642 16 13.75 16C13.3358 16 13 15.6642 13 15.25V11.75C13 11.3358 13.3358 11 13.75 11ZM15.25 4C15.6642 4 16 4.33579 16 4.75C16 5.16421 15.6642 5.5 15.25 5.5H8.75C8.33579 5.5 8 5.16421 8 4.75C8 4.33579 8.33579 4 8.75 4H15.25Z",fill:"#717273"}))});const X=I=>{let{onClick:F,isDisabled:oe}=I;return(0,ln.jsx)(br.A,{content:I18N.HtmlVisualEditor.delete_element,direction:"down",distance:12,className:"floating-tooltip",children:(0,ln.jsx)(ee,{disabled:oe,variant:"text",color:"default",icon:(0,ln.jsx)(W,{size:24}),onClick:F})})},ee=(0,cn.Ay)(Pr.Ay).withConfig({displayName:"DeleteSetter__StyledDeleteSetter",componentId:"sc-8x8dbe-0"})(["border-radius:6px;color:",";"," &:hover:not(:disabled){color:"," !important;background-color:"," !important;}"],I=>I.theme.color_text_L1,I=>{let{disabled:F}=I;return F&&(0,cn.AH)(["color:"," !important;"],oe=>oe.theme.color_text_disabled01)},I=>I.theme.color_text_L1,I=>I.theme.color_btn_secondary_hover),pe=X,ye=cn.Ay.div.withConfig({displayName:"style__StyledSetterToolbar",componentId:"sc-sj231m-0"})([".text-setter-item{.ant-select-selector,.ant-input-number-outlined{border:none;}}.ant-select-outlined,.ant-select-selector,.ant-input-number-outlined{box-shadow:none !important;}.ant-select-open .ant-select-selector .ant-select-selection-item{color:",";}.ant-select-prefix,.ant-input-number-prefix{min-width:12px;font-family:'PingFang FC';}.ant-popover-inner{padding:4px;}.ant-color-picker .ant-popover-inner{padding:16px;}.ant-btn-icon svg:not(.fill-keeped){*[fill]{fill:currentColor;}*[fill=\"none\"]{fill:none;}}.setter-sub-title{font-size:12px;color:",";line-height:18px;font-weight:500;}.ant-dropdown{&.font-size-overlay{width:160px;height:336px;box-sizing:border-box;}border-radius:16px;.ant-dropdown-menu{padding:8px;}.ant-dropdown-menu-item{border-radius:8px;color:",";padding-left:28px;.selected-icon{visibility:hidden;position:absolute;left:8px;top:50%;transform:translateY(-50%);path{fill:",";}}&:hover{background-color:",";}&.ant-dropdown-menu-item-selected{background-color:",";color:",";.selected-icon{visibility:visible;}}}}"],I=>I.theme.color_text_L1,I=>I.theme.color_text_L1,I=>I.theme.color_text_L1,I=>I.theme.color_text_L1,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_bg_border_02,I=>I.theme.color_text_L1),Ie=cn.Ay.div.withConfig({displayName:"style__StyledSetterList",componentId:"sc-sj231m-1"})(["display:flex;align-items:center;gap:6px;border-radius:12px;min-height:40px;box-sizing:border-box;margin-right:6px;.setter-divider-vertical{height:20px;border-left:1px solid ",";}.ant-select-selector{padding:0 6px !important;}.ant-input-number{border-color:transparent;&:hover,&.ant-dropdown-open{border-color:",";}}.text-setter-item .ant-select-selection-item{img{vertical-align:-2px;}}"],I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_bg_border_01),Ue=["body"],Re=["div","header","footer","nav","main","section","article","aside","ul","ol","li","dl","dt","dd","table","tbody","thead","tfoot","tr","th","td","form","figure","fieldset","details","hr","picture","button","input","textarea"],ze=["p","h1","h2","h3","h4","h5","h6","span","a","strong","em","u","s","code","sub","sup","b","i","q","th","td","caption","label","option","input","textarea","pre","blockquote","figcaption","summary","legend"],st=["text","password","textarea","tel","search","url","email"],xt="img",Nt=["svg","iconify-icon"],$t={invisible:0,thin:100,thinItalic:110,extraLight:200,extraLightItalic:210,light:300,lightItalic:310,regular:400,regularItalic:410,mediumItalic:490,medium:500,semiBoldItalic:590,semiBold:600,boldItalic:690,bold:700,extraBoldItalic:790,extraBold:800,blackItalic:890,black:900,extraBlackItalic:990,extraBlack:1e3};var An=i(40461),zn=i(15921);let lo=function(I){return I.TextEditingSetter="textEditingSetter",I.ChatSetter="chatSetter",I.FontFamilySetter="fontFamilySetter",I.FontSizeSetter="fontSizeSetter",I.ColorSetter="colorSetter",I.TextStyleSetter="textStyleSetter",I.TextAlignSetter="textAlignSetter",I.TextEditSetter="textEditSetter",I.GapSetter="gapSetter",I.BackgroundColorSetter="backgroundColorSetter",I.BorderColorSetter="borderColorSetter",I.BorderWidthSetter="borderWidthSetter",I.BorderRadiusSetter="borderRadiusSetter",I.ImageUploadSetter="imageUploadSetter",I.IconSelectSetter="iconSelectSetter",I.DeleteSetter="deleteSetter",I}({});var Qn=Object.defineProperty,Sn=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,ua=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,wa=(I,F,oe)=>F in I?Qn(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Ja=(I,F)=>{for(var oe in F||(F={}))ua.call(F,oe)&&wa(I,oe,F[oe]);if(qo)for(var oe of qo(F))Ea.call(F,oe)&&wa(I,oe,F[oe]);return I},La=(I,F)=>Sn(I,Wo(F)),Na=(I,F)=>{var oe={};for(var be in I)ua.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&qo)for(var be of qo(I))F.indexOf(be)<0&&Ea.call(I,be)&&(oe[be]=I[be]);return oe},Pi=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Na(oe,["size","spin","style"]);const Xt=Ja(Ja({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",La(Ja({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"#00B42A"}),M.createElement("path",{d:"M8.5 12L10.8333 14L15.5 10",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))});const _r=I=>{let{onSave:F}=I;return(0,ln.jsx)(ci,{color:"default",variant:"text",icon:(0,ln.jsx)(Pi,{size:24,className:"fill-keeped"}),onClick:F,onMouseDown:oe=>oe.preventDefault(),children:I18N.HtmlVisualEditor.save})},ci=(0,cn.Ay)(Pr.Ay).withConfig({displayName:"TextEditingSetter__StyledButton",componentId:"sc-oyu2dh-0"})(["gap:4px;padding:0 6px 0 4px;color:",";&:hover{color:"," !important;}"],I=>I.theme.color_text_L1,I=>I.theme.color_text_L1),Ws=_r;var kr=Object.defineProperty,Fi=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,Ai=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,Hr=(I,F,oe)=>F in I?kr(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Wr=(I,F)=>{for(var oe in F||(F={}))Rr.call(F,oe)&&Hr(I,oe,F[oe]);if(Ai)for(var oe of Ai(F))Cs.call(F,oe)&&Hr(I,oe,F[oe]);return I},Ti=(I,F)=>Fi(I,xi(F)),jl=(I,F)=>{var oe={};for(var be in I)Rr.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Ai)for(var be of Ai(I))F.indexOf(be)<0&&Cs.call(I,be)&&(oe[be]=I[be]);return oe},Vs=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=jl(oe,["size","spin","style"]);const Xt=Wr(Wr({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Ti(Wr({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2328 9.71702L9.68682 19.263L5.30575 19.8106C4.65868 19.8915 4.10856 19.3414 4.18944 18.6943L4.69452 14.6537C4.7221 14.433 4.82245 14.2278 4.97969 14.0706L14.283 4.76727C15.0641 3.98623 16.3304 3.98623 17.1114 4.76727L19.2328 6.8886C20.0138 7.66964 20.0138 8.93597 19.2328 9.71702ZM15.6972 11.1312L8.99009 17.8384L5.7576 18.2424L6.16166 15.01L12.8688 8.30281L15.6972 11.1312ZM16.7579 10.0706L18.1721 8.65636C18.3674 8.4611 18.3674 8.14452 18.1721 7.94926L16.0508 5.82793C15.8555 5.63267 15.5389 5.63267 15.3437 5.82793L13.9295 7.24215L16.7579 10.0706Z",fill:"#19191A"}))});const ji=I=>{let{onEdit:F}=I;return(0,ln.jsx)(lr,{tooltip:{title:I18N.HtmlVisualEditor.edit_text},color:"default",variant:"text",icon:(0,ln.jsx)(Vs,{size:24}),onClick:F})};var Or=i(74388),Ms=Object.defineProperty,Qs=Object.defineProperties,r0=Object.getOwnPropertyDescriptors,sd=Object.getOwnPropertySymbols,Od=Object.prototype.hasOwnProperty,a2=Object.prototype.propertyIsEnumerable,oc=(I,F,oe)=>F in I?Ms(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,Rd=(I,F)=>{for(var oe in F||(F={}))Od.call(F,oe)&&oc(I,oe,F[oe]);if(sd)for(var oe of sd(F))a2.call(F,oe)&&oc(I,oe,F[oe]);return I},Bd=(I,F)=>Qs(I,r0(F)),Ap=(I,F)=>{var oe={};for(var be in I)Od.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&sd)for(var be of sd(I))F.indexOf(be)<0&&a2.call(I,be)&&(oe[be]=I[be]);return oe},oh=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Ap(oe,["size","spin","style"]);const Xt=Rd(Rd({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Bd(Rd({ref:F,style:Xt},tn),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),M.createElement("path",{d:"M4.40002 7.87999C4.40002 8.06999 4.46002 8.22999 4.60002 8.34999L6.54002 10.25C6.67002 10.39 6.84002 10.45 7.02002 10.45C7.21002 10.45 7.37002 10.39 7.50002 10.25L11.5 6.32999C11.64 6.19999 11.7 6.03999 11.7 5.85999C11.7026 5.77185 11.6861 5.68418 11.6516 5.60305C11.6171 5.52191 11.5654 5.44922 11.5 5.38999C11.3743 5.26754 11.2055 5.19932 11.03 5.19999C10.9407 5.19965 10.8523 5.21717 10.7698 5.25152C10.6874 5.28587 10.6127 5.33634 10.55 5.39999L7.02002 8.83999L5.55002 7.40999C5.48738 7.34634 5.41265 7.29587 5.33022 7.26152C5.24779 7.22717 5.15932 7.20965 5.07002 7.20999C4.89233 7.20999 4.72191 7.28058 4.59626 7.40623C4.47061 7.53187 4.40002 7.70229 4.40002 7.87999Z",fill:"white"}))});const ah=[12,13,14,16,18,20,28,36,48,72].map(I=>({label:(0,ln.jsxs)(ln.Fragment,{children:[(0,ln.jsx)(oh,{className:"selected-icon",size:16}),String(I)]}),key:String(I)})),Vc=I=>{let{value:F,onChange:oe}=I;const[be,Mt]=(0,M.useState)(),[ut,tn]=(0,M.useState)(!1),Xt=nt=>{var yt;nt=Math.round((yt=nt!=null?nt:be)!=null?yt:parseInt(F)),Mt(nt)},Kn=nt=>{nt=Math.min(Math.max(0,nt),1e3),Xt(nt),oe==null||oe(nt+"px","fontSize")},ao={items:ah,selectable:!0,selectedKeys:[String(be)],onSelect:nt=>{let{key:yt}=nt;Kn(parseInt(yt))}},v=nt=>{nt.key.toLowerCase()!=="escape"&&tn(!1)},K=nt=>{tn(nt)};(0,M.useEffect)(()=>{Mt(parseInt(F))},[F]),C(ut,tn);const{dropdownPosition:te}=(0,M.useContext)(vr),me=(0,M.useMemo)(()=>te==="bottom"?"bottomLeft":"topLeft",[te]),$e=(0,M.useMemo)(()=>te==="bottom"?{offset:[0,9]}:{offset:[0,-9]},[te]);return(0,ln.jsx)(cn.e$,{children:nt=>(0,ln.jsx)(Or.A,{trigger:["click"],menu:ao,getPopupContainer:ea,onOpenChange:K,open:ut,overlayClassName:"font-size-overlay",align:$e,placement:me,overlayStyle:{borderRadius:16,overflow:"hidden",border:"1px solid "+(nt==null?void 0:nt.color_bg_border_01),background:""+(nt==null?void 0:nt.color_bg_white),boxShadow:"0 4px 10px 0 rgba(0, 18, 38, 0.10)"},popupRender:yt=>(0,ln.jsx)(jh,{onMouseDown:dt=>dt.preventDefault(),children:yt}),children:(0,ln.jsx)("div",{children:(0,ln.jsx)(br.A,{content:"\u5B57\u53F7",direction:"down",distance:12,className:"floating-tooltip",children:(0,ln.jsx)("div",{children:(0,ln.jsx)(ko,{value:be,originValue:parseInt(F),step:1,style:{width:56,backgroundColor:"transparent"},onStep:Kn,onBlur:()=>Kn(be!=null?be:parseInt(F)),onPressEnter:()=>Kn(be!=null?be:parseInt(F)),onKeyDown:v,onChange:Xt})})})})})})},jh=cn.Ay.div.withConfig({displayName:"FontSizeSetter__StyledFontSizeRender",componentId:"sc-itxyaa-0"})(["background-color:",";.ant-dropdown-menu{background-color:",";}"],I=>I.theme.color_bg_white,I=>I.theme.color_bg_white),L2=(0,M.memo)(Vc),vm=I=>{let{isTextEditing:F,editStore:oe,elem:be,isCanEditText:Mt,onEditingModeChange:ut,onSave:tn}=I;const Xt=(0,M.useRef)(null);return(0,M.useEffect)(()=>{if(!Mt)return;const K=[];return K.push((0,An.vY)(be,"blur",()=>{ut==null||ut("none"),oe.editElementTextContent(be,"save")}),(0,An.vY)(be,"dblclick",()=>{be.ownerDocument.activeElement!==be&&(ut==null||ut("text"),oe.editElementTextContent(be,"edit"))})),()=>{var te,me,$e;(te=be.ownerDocument.activeElement)==null||(me=te.blur)==null||me.call(te),($e=Xt.current)==null||$e.call(Xt),K.forEach(nt=>nt())}},[oe,be]),{handleEditTextContent:()=>{F?ut==null||ut("none"):(ut==null||ut("text"),oe.editElementTextContent(be,"edit"),Xt.current=()=>{be&&(be.blur(),oe.editElementTextContent(be,"save"),ut==null||ut("none"),Xt.current=null)})},handleSaveTextContent:()=>{oe.editElementTextContent(be,"save"),ut==null||ut("none"),Xt.current=null,Promise.resolve().then(()=>tn==null?void 0:tn())},handleCancelTextContent:()=>{oe.editElementTextContent(be,"revert"),ut==null||ut("none"),Xt.current=null}}},pu=I=>{let{elem:F,stateId:oe,editStore:be,computedStyle:Mt,onCancelSelect:ut,onEditingModeChange:tn,onSubmitChat:Xt}=I;const Kn=(0,M.useRef)(Mt);Kn.current=Mt;const ao=(dt,It,un)=>{const xn=oe+"-"+dt;It!=null&&It.needCombine&&It.isStart&&be.combineMarkStart(xn),un(),It!=null&&It.needCombine&&It.isEnd&&be.combineMarkEnd(xn)},v=(0,M.useCallback)((dt,It,un)=>{const xn=It.toLowerCase();!xn.includes("color")&&!xn.includes("border")&&!xn.includes("margin")&&!xn.includes("padding")&&[...P].forEach(gn=>gn(!1)),ao(It,un,()=>{if(dt){const gn={[It]:dt};if(It==="borderWidth"){const wo=Kn.current["border-style"];(!wo||wo==="none")&&(gn.borderStyle="solid")}be.setElementStyle(F,gn)}})},[oe,F,be]),K=(dt,It,un)=>{ao(It,un,()=>{const xn=F.querySelectorAll("*"),gn=F.innerHTML,wo=[];xn.forEach(vo=>{const Co=vo.getAttribute("fill"),Eo=vo.getAttribute("stroke");Co&&Co!=="none"&&Co!=="currentColor"&&!Co.startsWith("url")&&vo.setAttribute("fill",dt),(!Co||Co==="none")&&Eo&&Eo!=="none"&&Eo!=="currentColor"&&!Eo.startsWith("url")&&vo.setAttribute("stroke",dt),wo.push(vo.outerHTML)}),be.setElementInnerHTML(F,wo.join(""),gn),be.setElementStyle(F,{color:dt})})},te=(0,M.useCallback)(dt=>{let{path:It,viewBox:un,isMultiColorIcon:xn}=dt;if(be.combineMarkStart("svg-change"),F.nodeName.toLowerCase()==="svg")F.setAttribute("data-is-multi-color-icon",xn?"true":"false"),be.setElementInnerHTML(F,It),be.setElementAttributes(F,{viewBox:un});else{const gn=F.ownerDocument.createElementNS("http://www.w3.org/2000/svg","svg");gn.setAttribute("data-is-multi-color-icon",xn?"true":"false"),gn.setAttribute("xmlns","http://www.w3.org/2000/svg"),gn.setAttribute("width",F.clientWidth+""),gn.setAttribute("height",F.clientHeight+""),gn.setAttribute("class",F.className),gn.setAttribute("viewBox",un),gn.setAttribute("style",F.getAttribute("style")||""),gn.insertAdjacentHTML("beforeend",It),be.replaceElement(F,gn),gn.dispatchEvent(new MouseEvent("mousedown"))}be.combineMarkEnd("svg-change")},[F,be]),me=(0,M.useCallback)(dt=>{be.setElementAttributes(F,{src:dt})},[F,be]),$e=(0,M.useCallback)((dt,It)=>{const un=F.ownerDocument;if(!un)return;const[xn,gn]=dt,wo=xn.replace(/\W/g,"_"),vo=un.head.querySelector("style#"+wo);if(be.combineMarkStart("font-family"),!vo){const Eo=un.createElement("style");Eo.id=wo,Eo.innerHTML=It.getFontStyle(xn),be.appendElement(Eo,un.head)}const Co={fontFamily:"'"+xn+"'"};gn&&(Co.fontWeight=gn),be.setElementStyle(F,Co),be.combineMarkEnd("font-family")},[F,be]),nt=()=>{be.removeElement(F),ut==null||ut()};return{handleSubmitChat:(0,M.useCallback)(dt=>{Xt==null||Xt(dt)},[Xt]),handleStyleChange:v,handleSaveSvgFill:K,handleReplaceSvg:te,handleReplaceImage:me,handleFontFamilyChange:$e,handleDeleteElement:nt}};var rh=Object.defineProperty,ih=Object.defineProperties,sh=Object.getOwnPropertyDescriptors,r2=Object.getOwnPropertySymbols,Dh=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,X0=(I,F,oe)=>F in I?rh(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,i2=(I,F)=>{for(var oe in F||(F={}))Dh.call(F,oe)&&X0(I,oe,F[oe]);if(r2)for(var oe of r2(F))Os.call(F,oe)&&X0(I,oe,F[oe]);return I},uu=(I,F)=>ih(I,sh(F)),M1=(I,F)=>{var oe={};for(var be in I)Dh.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&r2)for(var be of r2(I))F.indexOf(be)<0&&Os.call(I,be)&&(oe[be]=I[be]);return oe},lh=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=M1(oe,["size","spin","style"]);const Xt=i2(i2({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",uu(i2({ref:F,style:Xt},tn),{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9ZM9 5C6.79086 5 5 6.79086 5 9C5 11.2091 6.79086 13 9 13C11.2091 13 13 11.2091 13 9C13 6.79086 11.2091 5 9 5Z",fill:"url(#pattern0_3681_157)"}),M.createElement("defs",null,M.createElement("pattern",{id:"pattern0_3681_157",patternContentUnits:"objectBoundingBox",width:"3.27111",height:"3.27111"},M.createElement("use",{xlinkHref:"#image0_3681_157",transform:"scale(0.0127778)"})),M.createElement("image",{id:"image0_3681_157",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOTSURBVHgB7duxkQMxDARB3hdTUP4BKgCY/BxE62q6E1hvCg6emTnrwvf7XTc+n8+6Yd++/d/9LSBLACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLB/7KOfQFtGNhQAAAAASUVORK5CYII="})))}),xm=Object.defineProperty,$c=Object.defineProperties,k0=Object.getOwnPropertyDescriptors,Mp=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable,Rh=(I,F,oe)=>F in I?xm(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,hu=(I,F)=>{for(var oe in F||(F={}))Hs.call(F,oe)&&Rh(I,oe,F[oe]);if(Mp)for(var oe of Mp(F))ch.call(F,oe)&&Rh(I,oe,F[oe]);return I},bm=(I,F)=>$c(I,k0(F)),Cm=(I,F)=>{var oe={};for(var be in I)Hs.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&Mp)for(var be of Mp(I))F.indexOf(be)<0&&ch.call(I,be)&&(oe[be]=I[be]);return oe},Vl=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=Cm(oe,["size","spin","style"]);const Xt=hu(hu({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",bm(hu({ref:F,style:Xt},tn),{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),M.createElement("rect",{width:"18",height:"18",rx:"9",fill:"url(#pattern0_3681_152)"}),M.createElement("defs",null,M.createElement("pattern",{id:"pattern0_3681_152",patternContentUnits:"objectBoundingBox",width:"3.27111",height:"3.27111"},M.createElement("use",{xlinkHref:"#image0_3681_152",transform:"scale(0.0127778)"})),M.createElement("image",{id:"image0_3681_152",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOTSURBVHgB7duxkQMxDARB3hdTUP4BKgCY/BxE62q6E1hvCg6emTnrwvf7XTc+n8+6Yd++/d/9LSBLACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLB/7KOfQFtGNhQAAAAASUVORK5CYII="})))}),wm=Object.defineProperty,Sm=Object.defineProperties,s2=Object.getOwnPropertyDescriptors,dh=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,Bh=Object.prototype.propertyIsEnumerable,Am=(I,F,oe)=>F in I?wm(I,F,{enumerable:!0,configurable:!0,writable:!0,value:oe}):I[F]=oe,N2=(I,F)=>{for(var oe in F||(F={}))mu.call(F,oe)&&Am(I,oe,F[oe]);if(dh)for(var oe of dh(F))Bh.call(F,oe)&&Am(I,oe,F[oe]);return I},Mm=(I,F)=>Sm(I,s2(F)),ph=(I,F)=>{var oe={};for(var be in I)mu.call(I,be)&&F.indexOf(be)<0&&(oe[be]=I[be]);if(I!=null&&dh)for(var be of dh(I))F.indexOf(be)<0&&Bh.call(I,be)&&(oe[be]=I[be]);return oe},fu=(0,M.forwardRef)((I,F)=>{var oe=I,{size:be,spin:Mt,style:ut}=oe,tn=ph(oe,["size","spin","style"]);const Xt=N2(N2({width:be||"var(--x-icon-size, 1em)",height:be||"var(--x-icon-size, 1em)",animation:Mt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ut);return M.createElement("svg",Mm(N2({ref:F,style:Xt},tn),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),M.createElement("rect",{x:"4",y:"17",width:"16",height:"3",rx:"1",fill:"url(#pattern0_1819_146)"}),M.createElement("rect",{x:"4.25",y:"17.25",width:"15.5",height:"2.5",rx:"0.75",stroke:"#52649A",strokeOpacity:"0.13",strokeWidth:"0.5"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9792 4.87314C11.0078 4.79895 11.0791 4.75 11.1586 4.75H12.8398C12.9193 4.75 12.9906 4.79895 13.0192 4.87314L17.1078 15.4887C17.1563 15.6146 17.0634 15.75 16.9284 15.75H15.512C15.4312 15.75 15.359 15.6995 15.3313 15.6235L14.3992 13.0637H9.58354L8.65143 15.6235C8.62378 15.6995 8.5516 15.75 8.4708 15.75H7.07001C6.93507 15.75 6.84213 15.6146 6.89063 15.4887L10.9792 4.87314ZM13.8816 11.652H10.1012L11.957 6.61469C11.9635 6.59703 11.9804 6.58529 11.9992 6.58529C12.018 6.58529 12.0349 6.59708 12.0414 6.61481L13.8816 11.652Z",fill:"#19191A"}),M.createElement("defs",null,M.createElement("pattern",{id:"pattern0_1819_146",patternContentUnits:"objectBoundingBox",width:"1.6",height:"8.53333"},M.createElement("use",{xlinkHref:"#image0_1819_146",transform:"scale(0.00625 0.0333333)"})),M.createElement("image",{id:"image0_1819_146",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOUSURBVHgB7dsxkQQxEARB7YdwHH9ch2AY6DmcrI3KJNBexTjzzMxZF77f77rx+XzWDfv27f/ubwFZAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBh2z+1ffvdfRcAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhD0zc9YF/9z27b933wUAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYds/tX373X0XAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQ9M3PWBf/c9u2/d98FAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGHbP7V9+919FwCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCEPTNz1gX/3Pbtv3ffBQBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBh2z+1ffvdfRcAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhD0zc9YF/9z27b933wUAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYds/tX373X0XAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQ9M3PWBf/c9u2/d98FAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGECAGHbP7V9+919FwCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCECQCEPTNz1gX/3Pbtv3ffBQBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBhAgBh2z+1ffvdfRcAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhAkAhD0zc9YF/9z27b933wUAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYQIAYds/tX373X0XAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIQJAIT9A+T0ncDTDafFAAAAAElFTkSuQmCC"})))});const gu=I=>{let{color:F,ring:oe}=I;const be=oe?"color-border":"color-fill";return(0,ln.jsx)(yu,{className:be,color:F,children:oe?(0,ln.jsx)(lh,{size:18}):(0,ln.jsx)(Vl,{size:18})})},pc=I=>{let{color:F}=I;return(0,ln.jsxs)(Q0,{children:[(0,ln.jsx)(fu,{size:28,className:"fill-keeped"}),(0,ln.jsx)(fu,{size:28,className:"shadow-icon",style:{color:F}})]})},yu=cn.Ay.div.withConfig({displayName:"ColorSetter__StyledColorIcon",componentId:"sc-1dhwfbc-0"})(["position:relative;width:18px;height:18px;svg{display:block !important;}&::before,&::after{width:100%;height:100%;content:'';position:absolute;top:0;left:0;border-radius:50%;}&::before{z-index:1;}&::after{z-index:2;}&.color-fill{&::before{background:",";}&:after{border:1px solid ",";}}&.color-border{&::before{background:transparent;border:5.5px solid ",";box-sizing:border-box;}&::after{background:transparent;border:1px solid ",";outline:1px solid ",";outline-offset:-5.5px;}}"],I=>I.color,I=>I.theme.color_bg_border_02,I=>I.color,I=>I.theme.color_bg_border_02,I=>I.theme.color_bg_border_02),Q0=cn.Ay.div.withConfig({displayName:"ColorSetter__StyledTextColorIcon",componentId:"sc-1dhwfbc-1"})(["position:relative;display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;.fill-keeped path{fill:",";}.shadow-icon{position:absolute;path{visibility:hidden;}rect{fill:currentColor;}}"],I=>I.theme.color_text_L1),J0=I=>{let{handleSubmitChat:F,handleEditTextContent:oe,handleSaveTextContent:be,handleStyleChange:Mt,handleSaveSvgFill:ut,handleReplaceSvg:tn,handleReplaceImage:Xt,handleFontFamilyChange:Kn,handleDeleteElement:ao,onUploadImage:v,isTextEditing:K,isNotEditableInput:te,elem:me,computedStyle:$e,nodeName:nt,attributes:yt}=I;const dt=Re.includes(nt),It=ze.includes(nt)&&(te||(0,An.fg)(me,!1))||dt&&(0,An.fg)(me),un=xt===nt,xn=Nt.includes(nt),gn=(0,M.useCallback)(()=>[{setter:lo.TextEditingSetter,props:{onSave:be}}],[be]),wo=(0,M.useCallback)(()=>[{setter:lo.ChatSetter,props:{onSubmit:F}}],[F]),vo=(0,M.useCallback)(()=>{const pa=[{setter:lo.FontFamilySetter,props:{tooltip:I18N.HtmlVisualEditor.font,value:$e["font-family"],onChange:Kn,computedStyle:$e}},{setter:lo.FontSizeSetter,props:{tooltip:I18N.HtmlVisualEditor.font_size,value:$e["font-size"],onChange:Mt,attr:"fontSize"}},{setter:lo.ColorSetter,props:{tooltip:I18N.HtmlVisualEditor.text_color,value:$e.color,onChange:Mt,attr:"color",getIcon:()=>(0,ln.jsx)(pc,{color:$e.color})}},{setter:lo.TextStyleSetter,props:{tooltip:I18N.HtmlVisualEditor.text_style,computedStyle:$e,onChange:Mt}},{setter:lo.TextAlignSetter,props:{tooltip:I18N.HtmlVisualEditor.text_align,value:$e["text-align"],onChange:Mt}}];return te||pa.push({setter:lo.TextEditSetter,props:{onEdit:oe}}),pa},[oe,Kn,Mt,$e,te]),Co=(0,M.useCallback)(()=>[{setter:lo.GapSetter,props:{value:{margin:$e.margin,padding:$e.padding},onChange:Mt}}],[Mt,$e]),Eo=(0,M.useCallback)(()=>{const pa=$e["border-width"],na=!pa||pa.split(" ").every(Ka=>parseFloat(Ka)===0);return[{setter:lo.BackgroundColorSetter,props:{tooltip:I18N.HtmlVisualEditor.background_color,value:$e["background-color"],onChange:Mt,attr:"backgroundColor",computedStyle:$e,getIcon:()=>(0,ln.jsx)(gu,{color:$e["background-color"]})}},na?null:{setter:lo.BorderColorSetter,props:{tooltip:I18N.HtmlVisualEditor.border_color,value:$e["border-color"],onChange:Mt,attr:"borderColor",computedStyle:$e,getIcon:()=>(0,ln.jsx)(gu,{color:$e["border-color"],ring:!0})}},{setter:lo.BorderWidthSetter,props:{tooltip:I18N.HtmlVisualEditor.border_width,value:$e["border-width"],onChange:Mt,computedStyle:$e}},{setter:lo.BorderRadiusSetter,props:{tooltip:I18N.HtmlVisualEditor.border_radius,value:$e["border-radius"],onChange:Mt,computedStyle:$e}}].filter(Boolean)},[Mt,$e]),go=(0,M.useCallback)(()=>[{setter:lo.ImageUploadSetter,props:{tooltip:I18N.HtmlVisualEditor.image_upload,onChange:Xt,element:me,onUploadImage:v}},{setter:lo.BorderRadiusSetter,props:{tooltip:I18N.HtmlVisualEditor.border_radius,value:$e["border-radius"],onChange:Mt,computedStyle:$e}}],[Xt,me,$e,Mt,v]),xo=(0,M.useCallback)(()=>[(yt==null?void 0:yt["data-is-multi-color-icon"])==="true"?null:{setter:lo.ColorSetter,props:{tooltip:I18N.HtmlVisualEditor.icon_color,value:$e.color,attr:"color",onChange:ut,getIcon:()=>(0,ln.jsx)(gu,{color:$e.color})}},{setter:lo.IconSelectSetter,props:{tooltip:I18N.HtmlVisualEditor.replace_icon,onSelect:tn}}].filter(Boolean),[yt,$e,ut,tn]),jo=(0,M.useCallback)(()=>[{setter:lo.DeleteSetter,props:{onClick:ao,isDisabled:Ue.includes(nt)}}],[ao,nt]);return(0,M.useMemo)(()=>{if(K)return[gn()];const pa=[];return pa.push(wo()),It&&(pa.push(vo()),dt||pa.push(Co())),dt&&(pa.push(Eo()),It||pa.push(Co())),un&&pa.push(go()),xn&&pa.push(xo()),pa.push(jo()),pa},[K,It,dt,un,xn,wo,Eo,jo,Co,go,xo,gn,vo])};var Ud=i(55112),vu=i(29798);const Uu=function(I,F,oe,be){oe===void 0&&(oe=2),message.destroy(),message[I]({content:F,duration:oe,key:be})};let xu="";const Fu="NETWORK_ERROR",Vu=function(I,F,oe){F===void 0&&(F=performance.now()),oe===void 0&&(oe="error"),xu!==F&&(xu=F,Ud.Ay.destroy(),Ud.Ay.error({key:F,content:(0,ln.jsxs)(je.A,{gap:12,align:"center",children:[I,(0,ln.jsx)(Pr.Ay,{size:"small",icon:(0,ln.jsx)(vu.A,{size:20}),type:"text",onClick:()=>{Ud.Ay.destroy(F)}})]}),duration:0,type:oe,onClose:()=>{xu=""}}))},Y1=I=>{message.destroy(I)},uh=I=>{let{editingMode:F,editStore:oe,onUpdateEditingMode:be}=I;const Mt=(0,M.useRef)(F),ut=(0,M.useRef)(oe);return(0,M.useEffect)(()=>{Mt.current=F,ut.current=oe},[F,oe]),{onSave:(0,M.useCallback)(async()=>{if(Mt.current!=="drag"){if(ut.current.getSaved()&&!ut.current.isEditingText()){setTimeout(()=>{navigator.onLine?Ud.Ay.success(I18N.HtmlVisualEditor.save_success,2):Vu(I18N.HtmlVisualEditor.save_failed_network,Fu)},200);return}try{be("none"),await ut.current.saveToCloud()?Ud.Ay.success(I18N.HtmlVisualEditor.save_success,2):navigator.onLine||Vu(I18N.HtmlVisualEditor.save_failed_network,Fu)}catch(Xt){console.log(Xt)}}},[])}},zu={[lo.TextEditingSetter]:Ws,[lo.ChatSetter]:null,[lo.FontFamilySetter]:null,[lo.FontSizeSetter]:L2,[lo.ColorSetter]:null,[lo.TextStyleSetter]:m0,[lo.TextAlignSetter]:m1,[lo.TextEditSetter]:ji,[lo.GapSetter]:El,[lo.BackgroundColorSetter]:null,[lo.BorderColorSetter]:null,[lo.BorderWidthSetter]:ri,[lo.BorderRadiusSetter]:Is,[lo.ImageUploadSetter]:Bu,[lo.IconSelectSetter]:null,[lo.DeleteSetter]:pe},yd=I=>{let{element:F,editStore:oe,editingMode:be="none",onEditingModeChange:Mt,onCancelSelect:ut,onSubmitChat:tn,onUploadImage:Xt,config:Kn={},commonProps:ao,registerTogglePanel:v}=I;const{element:K,nodeName:te,computedStyle:me,stateId:$e,attributes:nt}=F,yt=be==="text",dt=be==="drag",It=te==="input"&&!st.includes(K.type);(0,M.useEffect)(()=>{oe.combineMarkEnd()},[$e,oe]);const{onSave:un}=uh({editingMode:be,editStore:oe,onUpdateEditingMode:Mt}),{handleEditTextContent:xn,handleSaveTextContent:gn}=vm({editStore:oe,elem:K,isTextEditing:yt,isCanEditText:ze.includes(te)&&(!It||(0,An.fg)(K,!1))||Re.includes(te)&&(0,An.fg)(K),onEditingModeChange:Mt,onSave:un}),{handleSubmitChat:wo,handleStyleChange:vo,handleSaveSvgFill:Co,handleReplaceSvg:Eo,handleReplaceImage:go,handleFontFamilyChange:xo,handleDeleteElement:jo}=pu({elem:K,stateId:$e,editStore:oe,computedStyle:me,onCancelSelect:ut,onEditingModeChange:Mt,onSubmitChat:tn}),pa=J0({handleSubmitChat:wo,handleEditTextContent:xn,handleSaveTextContent:gn,handleStyleChange:vo,handleSaveSvgFill:Co,handleReplaceSvg:Eo,handleReplaceImage:go,handleFontFamilyChange:xo,handleDeleteElement:jo,onUploadImage:Xt,isTextEditing:yt,isNotEditableInput:It,elem:K,computedStyle:me,nodeName:te,attributes:nt}),na={...zu,...Kn};return dt?null:(0,ln.jsx)(ye,{id:"ai-setter-toolbar",children:(0,ln.jsx)(Ie,{children:(0,ln.jsx)(vr.Provider,{value:{dropdownPosition:ao==null?void 0:ao.dropdownPosition},children:pa.map((Ma,Ka)=>(0,ln.jsxs)(ln.Fragment,{children:[Ma.map(Fa=>{let{setter:xr,props:Tr}=Fa;const fi=na[xr];return fi?Kn[xr]&&typeof Kn[xr]=="function"?(0,ln.jsx)(fi,{...ao,...Tr,registerTogglePanel:v==null?void 0:v.bind(null,xr)},xr):(0,ln.jsx)(fi,{...Tr},xr):null}),Ka<pa.length-1&&(0,ln.jsx)("div",{className:"setter-divider-vertical"})]}))})})},F.stateId)};var km=i(79371),Em=i.n(km),bu=i(51657);function Wu(I){var F=(0,M.useRef)(I);return F.current=I,F}const Cu=Wu;var Im=function(I){return I!==null&&typeof I=="object"},q0=function(I){return typeof I=="function"},Tm=function(I){return typeof I=="string"},_m=function(I){return typeof I=="boolean"},Uh=function(I){return typeof I=="number"},hh=function(I){return typeof I>"u"},Fh=!!(typeof window<"u"&&window.document&&window.document.createElement);const Vh=Fh;function mh(I,F){if(Vh){if(!I)return F;var oe;return q0(I)?oe=I():"current"in I?oe=I.current:oe=I,oe}}var Xm=!1;const Pm=Xm;var fh=function(I){Pm&&(q0(I)||console.error("useUnmount expected parameter is a function, got ".concat(typeof I)));var F=Cu(I);(0,M.useEffect)(function(){return function(){F.current()}},[])};const wu=fh;function I0(I,F){if(I===F)return!0;for(var oe=0;oe<I.length;oe++)if(!Object.is(I[oe],F[oe]))return!1;return!0}const gh=I0;var l2=function(I){var F=function(oe,be,Mt){var ut=(0,M.useRef)(!1),tn=(0,M.useRef)([]),Xt=(0,M.useRef)([]),Kn=(0,M.useRef)(void 0);I(function(){var ao,v=Array.isArray(Mt)?Mt:[Mt],K=v.map(function(te){return mh(te)});if(!ut.current){ut.current=!0,tn.current=K,Xt.current=be,Kn.current=oe();return}(K.length!==tn.current.length||!gh(tn.current,K)||!gh(Xt.current,be))&&((ao=Kn.current)===null||ao===void 0||ao.call(Kn),tn.current=K,Xt.current=be,Kn.current=oe())}),wu(function(){var ao;(ao=Kn.current)===null||ao===void 0||ao.call(Kn),ut.current=!1})};return F},Gu=l2(M.useEffect);const k1=Gu;var j2=i(3485),yh=i.n(j2),zh=function(I,F){return I===void 0&&(I=[]),F===void 0&&(F=[]),yh()(I,F)},Qm=function(I,F,oe){var be=(0,M.useRef)(void 0),Mt=(0,M.useRef)(0);zh(F,be.current)||(Mt.current+=1),be.current=F,k1(I,[Mt.current],oe)};const Lm=Qm;var Nm=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),uc={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Nm?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Su={ctrl:function(I){return I.ctrlKey},shift:function(I){return I.shiftKey},alt:function(I){return I.altKey},meta:function(I){return I.type==="keyup"?uc.meta.includes(I.keyCode):I.metaKey}};function Zu(I){return Tm(I)||Uh(I)}function Wh(I){var F=Object.keys(Su).reduce(function(oe,be){return Su[be](I)?oe+1:oe},0);return[16,17,18,91,92].includes(I.keyCode)?F:F+1}function Hh(I,F,oe){var be,Mt;if(!I.key)return!1;if(Uh(F))return I.keyCode===F?F:!1;var ut=F.split("."),tn=0;try{for(var Xt=(0,bu.Ju)(ut),Kn=Xt.next();!Kn.done;Kn=Xt.next()){var ao=Kn.value,v=Su[ao],K=uc[ao.toLowerCase()];(v&&v(I)||K&&K===I.keyCode)&&tn++}}catch(te){be={error:te}}finally{try{Kn&&!Kn.done&&(Mt=Xt.return)&&Mt.call(Xt)}finally{if(be)throw be.error}}return oe?tn===ut.length&&Wh(I)===ut.length?F:!1:tn===ut.length?F:!1}function Ku(I,F){return q0(I)?I:Zu(I)?function(oe){return Hh(oe,I,F)}:Array.isArray(I)?function(oe){return I.find(function(be){return Hh(oe,be,F)})}:function(){return!!I}}var Gh=["keydown"];function vh(I,F,oe){var be=oe||{},Mt=be.events,ut=Mt===void 0?Gh:Mt,tn=be.target,Xt=be.exactMatch,Kn=Xt===void 0?!1:Xt,ao=be.useCapture,v=ao===void 0?!1:ao,K=Cu(F),te=Cu(I);Lm(function(){var me,$e,nt,yt=mh(tn,window);if(yt){var dt=function(gn){var wo,vo=gn,Co=Ku(te.current,Kn),Eo=Co(vo),go=Zu(Eo)?Eo:vo.key;if(Eo)return(wo=K.current)===null||wo===void 0?void 0:wo.call(K,vo,go)};try{for(var It=(0,bu.Ju)(ut),un=It.next();!un.done;un=It.next()){var xn=un.value;(nt=yt==null?void 0:yt.addEventListener)===null||nt===void 0||nt.call(yt,xn,dt,v)}}catch(gn){me={error:gn}}finally{try{un&&!un.done&&($e=It.return)&&$e.call(It)}finally{if(me)throw me.error}}return function(){var gn,wo,vo;try{for(var Co=(0,bu.Ju)(ut),Eo=Co.next();!Eo.done;Eo=Co.next()){var go=Eo.value;(vo=yt==null?void 0:yt.removeEventListener)===null||vo===void 0||vo.call(yt,go,dt,v)}}catch(xo){gn={error:xo}}finally{try{Eo&&!Eo.done&&(wo=Co.return)&&wo.call(Co)}finally{if(gn)throw gn.error}}}}},[ut],tn)}const jm=vh;var $=i(25530);const H=/(Macintosh)/i.test(navigator.userAgent)?"meta":"ctrl",ae=[H+".z","esc","delete","backspace",H+".s",H+".enter"],de=["iframe","object","audio","embed"],le=I=>{let{iframe:F,editingMode:oe="none",mousePoint:be,onFileChanged:Mt,htmlId:ut,onSelectElement:tn,onHoverElement:Xt,onUpdateEditingMode:Kn,onSaveEditStore:ao,onExitEdit:v,onSaveHtml:K,removeRejectElement:te}=I;const[me,$e]=(0,M.useState)(null),[nt,yt]=(0,M.useState)(null),{elementState:dt}=(0,$.A)(F,me),{elementState:It}=(0,$.A)(F,nt,!0),un=(0,M.useRef)(new zn.hY({htmlId:ut,saveFile:K,removeRejectElement:te}));(0,M.useEffect)(()=>{ao(un.current)},[]);const xn=(0,M.useRef)(oe),gn=(0,M.useRef)(nt);xn.current=oe,gn.current=nt;const{onSave:wo}=uh({editingMode:oe,editStore:un.current,onUpdateEditingMode:Kn}),vo=(0,M.useCallback)((Co,Eo)=>{if(Eo==="esc"){if(P.size||q!=null&&q.size){[...P].forEach(jo=>jo(!1)),O();return}if(xn.current!=="none"){if(xn.current==="text"){var go;un.current.editElementTextContent(gn.current,"revert"),(go=gn.current)==null||go.blur()}Kn("none");return}gn.current?yt(null):v==null||v()}if(Eo===H+".s"&&(Co.preventDefault(),Co.stopPropagation(),wo()),Eo===H+".enter"&&xn.current==="text"){var xo;Co.preventDefault(),Co.stopPropagation(),(xo=gn.current)==null||xo.blur(),Kn("none"),Promise.resolve().then(()=>wo())}(0,An.Xl)(Co.target)||(Eo===H+".z"&&(Co.preventDefault(),Co.shiftKey?un.current.redo():un.current.undo()),["delete","backspace"].includes(Eo)&&gn.current&&(un.current.removeElement(gn.current),yt(null)))},[]);return(0,M.useEffect)(()=>{if(typeof window<"u"&&window.Mousetrap){var Co;(Co=window.Mousetrap)==null||Co.pause()}return()=>{if(typeof window<"u"&&window.Mousetrap){var Eo;(Eo=window.Mousetrap)==null||Eo.unpause()}}},[]),jm(ae,vo),(0,M.useEffect)(()=>{const Co=[];let Eo=null;const go=()=>{const xo=F==null?void 0:F.contentWindow;if(!xo)return;const jo=xo.document;F.focus(),un.current.setDocument(jo),un.current.readCache(),(()=>{if(be){const{x:Mr,y:qr}=be,ts=jo.elementFromPoint(Mr,qr);if(ts){var qa;yt(((qa=ts.closest)==null?void 0:qa.call(ts,"svg"))||ts)}}else yt(jo.body.firstElementChild||jo.body)})();const na=Em()(qa=>{var Mr,qr;if(xn.current==="drag")return;let ts=qa.toElement;if(ts.tagName.toLowerCase()!=="html"&&!P.size){if(qa.target===jo.getElementById(zn.Q4)){const Ci=Eo;(0,zn.Qh)(jo,Ci),$e(Ci);return}if(de.includes(ts.tagName.toLowerCase())){const Ci=qa.target;Eo=Ci,(0,zn.Qh)(jo,Ci),$e(Ci);return}ts=((Mr=ts)==null||(qr=Mr.closest)==null?void 0:qr.call(Mr,"svg"))||ts,$e(ts)}},100),Ma=qa=>{var Mr,qr;const{button:ts,clientX:Ci,clientY:Al}=qa;if(ts!==0)return;if(P.size){[...P].forEach(hc=>hc(!1));return}na.cancel();let sc=qa.target;if(sc.tagName.toLowerCase()!=="html"){if(qa.target===jo.getElementById(zn.Q4)){yt(Eo);return}sc=((Mr=sc)==null||(qr=Mr.closest)==null?void 0:qr.call(Mr,"svg"))||sc,yt(hc=>{if(sc!==hc&&document.activeElement){var Js,sl;(Js=(sl=document.activeElement).blur)==null||Js.call(sl)}return sc}),(0,An.Xl)(sc)||qa.preventDefault()}},Ka=qa=>{if(qa.currentTarget!==F)return;const qr=qa.relatedTarget;qr&&(qr.closest('[data-editor-ui="dnd-setter"]')||qr.closest('[data-editor-ui="outline-box"]'))||(na.cancel(),$e(null))},Fa=qa=>{qa.preventDefault(),qa.stopPropagation(),qa.stopImmediatePropagation()},xr=qa=>{let qr={Escape:"esc",Delete:"delete",Backspace:"backspace"}[qa.key]||qa.key.toLowerCase();const ts=qa.metaKey||qa.ctrlKey;if(ts&&qr==="z"&&(qr=H+".z"),ts&&qr==="s"&&(qr=H+".s"),qr==="enter"){var Ci;ts||qa.shiftKey?qr=H+".enter":(Ci=qa.target)!=null&&Ci.isContentEditable&&(qa.preventDefault(),(0,An.ZI)(jo))}ae.includes(qr)&&vo(qa,qr)};let Tr=null;const fi=qa=>{var Mr;const qr=qa.target,ts=((Mr=gn.current)==null?void 0:Mr.contains(qr))&&(0,An.Xl)(gn.current);if(xn.current==="text"&&ts&&qa.clipboardData){qa.preventDefault();const Ci=qa.clipboardData.getData("text/plain")||"";if(Tr===Ci)return;jo.execCommand("insertText",!1,Ci),Tr=Ci,setTimeout(()=>Tr=null,20)}},bi=qa=>{let Mr;qa.type.startsWith("mouse")&&(Mr=new MouseEvent(qa.type)),Mr&&document.dispatchEvent(Mr)};function Er(qa){const Mr={verticalScrollables:[],horizontalScrollables:[]};let qr=qa;for(;qr;){if(!xo)return Mr;const ts=xo.getComputedStyle(qr),Ci=ts.overflowY,Al=ts.overflowX,sc=["auto","scroll"];let hc=!1,Js=!1;qr===jo.documentElement?(hc=Ci!=="hidden"&&qr.scrollHeight>qr.clientHeight,Js=Al!=="hidden"&&qr.scrollWidth>qr.clientWidth):(hc=sc.includes(Ci)&&qr.scrollHeight>qr.clientHeight,Js=sc.includes(Al)&&qr.scrollWidth>qr.clientWidth),hc&&Mr.verticalScrollables.push(qr),Js&&Mr.horizontalScrollables.push(qr),qr=qr.parentElement}return Mr}function Ya(qa,Mr){const{scrollTop:qr,scrollLeft:ts,clientHeight:Ci,clientWidth:Al,scrollHeight:sc,scrollWidth:hc}=qa;switch(Mr){case"down":return qr+Ci>=sc-1;case"up":return qr<=0;case"left":return ts<=0;case"right":return ts+Al>=hc-1;default:return!1}}const Br=qa=>{const Mr=F.getBoundingClientRect(),qr=MB.getScale()/100;if(qa.ctrlKey||qa.metaKey){qa.preventDefault(),F.dispatchEvent(new WheelEvent("wheel",{deltaX:qa.deltaX,deltaY:qa.deltaY,ctrlKey:qa.ctrlKey,metaKey:qa.metaKey,shiftKey:qa.shiftKey,clientX:Math.round(qa.clientX*qr+Mr.left),clientY:Math.round(qa.clientY*qr+Mr.top),bubbles:!0}));return}const{verticalScrollables:ts,horizontalScrollables:Ci}=Er(qa.target),Al=!qa.shiftKey&&qa.deltaY>0,sc=!qa.shiftKey&&qa.deltaY<0,hc=qa.deltaX<0||qa.shiftKey&&qa.deltaY<0,Js=qa.deltaX>0||qa.shiftKey&&qa.deltaY>0;let sl=!1;Al&&(ts.length===0||ts.every(di=>Ya(di,"down")))&&(sl=!0),sc&&(ts.length===0||ts.every(di=>Ya(di,"up")))&&(sl=!0),hc&&(Ci.length===0||Ci.every(di=>Ya(di,"left")))&&(sl=!0),Js&&(Ci.length===0||Ci.every(di=>Ya(di,"right")))&&(sl=!0),sl&&(qa.preventDefault(),F.dispatchEvent(new WheelEvent("wheel",{deltaX:qa.deltaX,deltaY:qa.deltaY,ctrlKey:qa.ctrlKey,metaKey:qa.metaKey,shiftKey:qa.shiftKey,clientX:Math.round(qa.clientX*qr+Mr.left),clientY:Math.round(qa.clientY*qr+Mr.top),bubbles:!0})))};jo.addEventListener("wheel",Br,{passive:!1}),Co.push((0,An.vY)(jo,"mouseover",na,!0),(0,An.vY)(jo,"mousedown",Ma,!0),(0,An.vY)(jo,"click",Fa,!0),(0,An.vY)(jo,"wheel",na,!0),(0,An.vY)(jo,"keydown",xr,!0),(0,An.vY)(jo,"paste",fi,!0),(0,An.vY)(jo,"mouseup",bi,!0),(0,An.vY)(xo,"beforeunload",()=>{$e(null),yt(null)}),(0,An.vY)(F,"mouseleave",Ka),(0,An.vY)(F,"load",go),(0,An.vY)(window,"beforeunload",qa=>{(!un.current.getSaved()||un.current.isEditingText())&&(qa.preventDefault(),qa.returnValue="")}),()=>jo.removeEventListener("wheel",Br,{passive:!1}))};return go(),async()=>{xn.current==="text"&&un.current.editElementTextContent(gn.current,"save"),un.current.getSaved()||await wo(),un.current.getChanged()&&(Mt==null||Mt()),Co.forEach(xo=>xo()),un.current.cache(),un.current.clear()}},[]),(0,M.useEffect)(()=>{Xt(dt)},[dt]),(0,M.useEffect)(()=>{tn(It)},[It]),(0,ln.jsx)(ln.Fragment,{})};var Ee=i(53439),Pe=i(89759),Fe=i(26880),Ke=i(31541),ct=i(15186);const vt=new Set,Ft=I=>{const{element:F,editStore:oe,editingMode:be,onEditingModeChange:Mt,onCancelSelectElement:ut,onSubmitChat:tn,onUploadImage:Xt,registerTogglePanel:Kn}=m(I),ao=(0,M.useMemo)(()=>({[lo.ChatSetter]:pn,[lo.FontFamilySetter]:to,[lo.ColorSetter]:Po,[lo.BackgroundColorSetter]:Po,[lo.BorderColorSetter]:Po,[lo.IconSelectSetter]:Ho}),[]);return F?(0,ln.jsx)(yd,{element:F,editStore:oe,editingMode:be,onEditingModeChange:Mt,onCancelSelect:ut,onSubmitChat:tn,onUploadImage:Xt,config:ao,commonProps:I,registerTogglePanel:Kn}):null},pn=I=>{const{onSubmit:F,...oe}=I;return(0,ln.jsx)(Fe.s,{...oe,placeholder:I18N.ChatGPT.aicomponent.edit_selected_element,isCanEsc:!1,onSubmit:F})},bn=(I,F)=>{const oe=F.find(ut=>ut.value===I||ut.type==="cloud"&&Object.values(ut.weightExtKeyKV).includes(I));if(!oe)return"";if(oe.type==="cloud"){var be;const ut=(be=Object.entries(oe.weightExtKeyKV).find(tn=>tn[1]===I))==null?void 0:be[0];return ut?"\n @font-face {\n font-family: '"+I+"';\n src: url('"+oe.typeUrlKV[ut]+"');\n }\n ":""}return oe.typeList.map(ut=>{const tn=oe.typeUrlKV[ut],Xt=$t[ut]||400,Kn=ut.includes("Italic")?"italic":"normal";return"\n @font-face {\n font-family: '"+I+"';\n src: url('"+tn+"');\n font-weight: "+Xt+";\n font-style: "+Kn+";\n }\n "}).join("\n")},to=I=>{const{tooltip:F="",value:oe,onChange:be,computedStyle:Mt={},...ut}=I,tn=(0,M.useRef)([]),Xt=(0,M.useRef)([]),Kn=me=>{let{value:$e,attr:nt,dispatch:yt}=me;if(nt==="fontFamily"){tn.current[0]=$e;return}if(nt==="fontWeight"){const dt=$t[$e]||400;tn.current[1]=dt;return}tn.current.every(dt=>dt)&&be(tn.current,{getFontStyle:dt=>bn(dt,Xt.current)})},ao=me=>{Xt.current=me},v=me=>{console.log("fakeOverride not supported in toolbar",me)},K=me=>me.includes(",")?me.split(",")[0]:me,te=me=>{var $e;return($e=Object.entries($t).find(nt=>nt[1]===Number(me)))==null?void 0:$e[0]};return(0,ln.jsx)(Ke.ay,{...ut,textInfo:{fontFamily:K(oe),fontWeight:te(Mt["font-weight"]),fontStyle:Mt["font-style"],isTextEditing:!1,fontSize:parseInt(Mt["font-size"]||"14"),lineHeight:parseFloat(Mt["line-height"]||"1.5"),subMenuDirection:"right"},config:{inDropdown:!0,icon:"font",className:"font-family-setter",title:F},onChange:Kn,onFakeOverrideChange:v,onLoadAllFontList:ao})},Po=I=>{const{tooltip:F="",attr:oe,value:be,onChange:Mt,getIcon:ut,...tn}=I,Xt=Kn=>{const ao=(0,ct.t0)(Kn);Mt(ao,oe)};return(0,ln.jsx)(Ke.OS,{...tn,attr:"solidColor",supAttr:"xxxxxxxxx",color:be,onChange:Xt,config:{title:F},getMode:()=>"button",customBtn:ut?ut():void 0,style:{margin:0}})},fo=I=>{const F=new DOMParser().parseFromString(I,"text/html"),oe=Mt=>{for(let ut=0;ut<Mt.length;ut++){const tn=Mt[ut],Xt=tn.getAttribute("fill"),Kn=tn.getAttribute("stroke");Xt!=="none"&&tn.setAttribute("fill",Xt||!Kn||Kn==="none"?"currentColor":"none"),Kn!=="none"&&tn.setAttribute("stroke",Kn?"currentColor":"none"),tn.children.length&&oe(tn.children)}},be=F.body.children;return oe(be),F.body.innerHTML},Ho=I=>{const{tooltip:F="",getIcon:oe,onSelect:be,...Mt}=I,ut=(tn,Xt)=>{const{path:Kn,view_box:ao}=tn;be({path:Xt?Kn:fo(Kn),viewBox:ao,isMultiColorIcon:Xt})};return(0,ln.jsx)(Ke.In,{...Mt,config:{title:F},onSetCurrentNodeIcon:ut})};var Ko=i(7018);const ha=()=>{const I=(0,a.d4)(k.Ag),F=(0,a.wA)(),oe=(0,M.useRef)(""),be=(0,M.useRef)(""),Mt=(0,M.useRef)(!1),ut=(0,M.useCallback)(te=>{F({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{selectedElementState:te}}})},[F]),tn=(0,M.useCallback)(te=>{F({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{hoverElementState:te}}})},[F]),Xt=(0,M.useCallback)(async te=>{const{htmlId:me,content:$e}=te;return oe.current=me,be.current=$e,Mt.current&&await Kn(),Promise.resolve()},[]),Kn=async()=>{const te=oe.current,me=be.current;!te||!me||(F({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:te,injection:(0,Ko.o)(me),isCombineChange:!0}}),await rootSdk.saveAsync())},ao=(0,M.useCallback)(()=>{F({type:"entry:aiComponent:quit:edit",payload:{widgetKey:I==null?void 0:I.key}})},[F,I==null?void 0:I.key]),v=(0,M.useCallback)(te=>{F({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{editStore:te}}})},[F]),{onUpdateEditingMode:K}=D();return(0,M.useEffect)(()=>()=>{setTimeout(async()=>{Mt.current=!0,Kn()},100)},[]),{htmlId:I==null?void 0:I.key,iframe:I==null?void 0:I.iframe,editingMode:I==null?void 0:I.editingMode,mousePoint:I==null?void 0:I.mousePoint,onSelectElement:ut,onHoverElement:tn,onSaveHtml:Xt,onExitEdit:ao,onSaveEditStore:v,onUpdateEditingMode:K}},Aa=I=>{let{removeRejectElement:F}=I;const{htmlId:oe,iframe:be,editingMode:Mt,mousePoint:ut,onSelectElement:tn,onHoverElement:Xt,onSaveHtml:Kn,onExitEdit:ao,onSaveEditStore:v,onUpdateEditingMode:K}=ha();return be?(0,ln.jsx)(le,{iframe:be,editingMode:Mt,htmlId:oe,mousePoint:ut,onSelectElement:tn,onHoverElement:Xt,onSaveHtml:Kn,onExitEdit:ao,onSaveEditStore:v,onUpdateEditingMode:K,removeRejectElement:F}):null}},63850:(eo,ot,i)=>{"use strict";i.d(ot,{Q:()=>M,q:()=>P});var a=i(67787),k=i(26842);const M=a.Ay.div.withConfig({displayName:"styles__StyledLibModal",componentId:"sc-wem5zp-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);"],C=>C.theme.color_bg_white,C=>C.theme.color_bg_border_01),P=a.Ay.div.withConfig({displayName:"styles__StyledLibContent",componentId:"sc-wem5zp-1"})(['width:100%;header{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0px 10px 0 16px;&[type="draggable"]{cursor:move;}.title{color:',";font-size:12px;font-style:normal;font-weight:600;line-height:16px;cursor:pointer;}.right-content{display:flex;}.svg-icon{",";color:",";&.times-icon{margin-left:4px;}}}.divider{width:100%;height:1px;background:",";}"],C=>C.theme.color_text_L1,k.eK,C=>C.theme.color_text_L1,C=>C.theme.color_bg_border_01)},64814:(eo,ot,i)=>{"use strict";i.d(ot,{I:()=>k});var a=i(67787);const k=(0,a.AH)(["border-radius:6px;background:",";border:1px solid transparent;&:hover:not(.is-active):not(.is-disabled){border:1px solid transparent;background:",";}&:active:not(.is-active):not(.is-disabled){border:1px solid transparent;outline:1px solid transparent;}&.is-active:not(.is-disabled){background:",";border:1px solid ",";outline:1px solid ",";outline-offset:-2px;&.has-menu{input{border:1px solid transparent;outline:1px solid transparent;}}}.action{button{&:hover,&:active{color:",";}}}"],M=>M.theme.color_bg_card,M=>M.theme.color_btn_secondary_active,M=>M.theme.color_btn_secondary_active,M=>M.theme.color_btn_primary_normal,M=>M.theme.color_btn_primary_normal,M=>M.theme.color_btn_primary_normal)},65251:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=function(){function E(f,h){for(var S=0;S<h.length;S++){var V=h[S];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(f,V.key,V)}}return function(f,h,S){return h&&E(f.prototype,h),S&&E(f,S),f}}(),k=i(38502),M=J(k),P=i(25582),C=J(P),q=i(36221),Y=J(q);function J(E){return E&&E.__esModule?E:{default:E}}function O(E,f){if(!(E instanceof f))throw new TypeError("Cannot call a class as a function")}function l(E,f){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:E}function D(E,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);E.prototype=Object.create(f&&f.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(E,f):E.__proto__=f)}var m=function(E){D(f,E);function f(h){O(this,f);var S=l(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));return S.handleChange=S.handleChange.bind(S),S}return a(f,[{key:"componentDidMount",value:function(){this._input.focus()}},{key:"handleChange",value:function(S){this.props.onChange(S.target.value)}},{key:"render",value:function(){var S=this,V=this.props,We=V.value,re=V.onKeyDown;return M.default.createElement("input",{ref:function(we){S._input=we},className:"data-editor",value:We,onChange:this.handleChange,onKeyDown:re})}}]),f}(k.PureComponent);ot.default=m,m.propTypes={value:C.default.node.isRequired,row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(Y.default),onChange:C.default.func.isRequired,onCommit:C.default.func.isRequired,onRevert:C.default.func.isRequired,onKeyDown:C.default.func.isRequired}},65282:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05024 7.05025C7.2455 6.85499 7.56209 6.85499 7.75735 7.05025L12 11.2929L16.2426 7.05025C16.4379 6.85499 16.7545 6.85499 16.9497 7.05025C17.145 7.24551 17.145 7.5621 16.9497 7.75736L12.7071 12L16.9497 16.2426C17.145 16.4379 17.145 16.7545 16.9497 16.9497C16.7545 17.145 16.4379 17.145 16.2426 16.9497L12 12.7071L7.75735 16.9497C7.56209 17.145 7.2455 17.145 7.05024 16.9497C6.85498 16.7545 6.85498 16.4379 7.05024 16.2426L11.2929 12L7.05024 7.75736C6.85498 7.5621 6.85498 7.24551 7.05024 7.05025Z",fill:"#19191A"}))})},65296:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_97)"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_97)",fillOpacity:"0.5"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_97)",fillOpacity:"0.8"}),a.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_97)",strokeWidth:"0.5"}),a.createElement("path",{d:"M16.73 12.02C16.73 12.54 16.45 12.82 15.93 12.82H9.1C8.58 12.82 8.3 12.54 8.3 12.02V4.99C8.3 4.47 8.58 4.19 9.1 4.19H15.93C16.45 4.19 16.73 4.47 16.73 4.99V12.02ZM9.5 11.58C9.5 11.71 9.57 11.78 9.7 11.78H15.32C15.45 11.78 15.52 11.71 15.52 11.58V5.43C15.52 5.3 15.45 5.23 15.32 5.23H9.7C9.57 5.23 9.5 5.3 9.5 5.43V11.58ZM14.2 7.66V10.16C14.2 10.84 13.84 11.29 13.18 11.37C12.71 11.42 12.11 11.39 11.63 11.27L11.36 10.23C11.82 10.34 12.4 10.36 12.71 10.32C12.94 10.29 13.04 10.16 13.04 9.94V8.31C12.37 9.19 11.39 10 10.04 10.66L9.73 9.51C10.86 8.91 11.62 8.39 12.22 7.66H10.14L10.04 6.66H13.04V5.52H14.2V6.66H15.13V7.66H14.2ZM24.24 5.96C24.4 8.49 25.26 10.26 26.82 11.69L26.31 13.06C25.09 11.98 24.27 10.66 23.76 9.16C23.3 10.64 22.48 11.96 21.09 13.08L20.57 11.85C22.66 10 23.04 8.32 23.04 5.36V4.01H24.25V5.31C24.25 5.53 24.25 5.75 24.24 5.96ZM19.2 10.28V12.99H18.03V4.84C18.03 4.45 18.26 4.24 18.68 4.24H20.79C21.21 4.24 21.41 4.4 21.44 4.8C21.46 5.03 21.41 5.23 21.36 5.41L20.78 7.53C21.23 8.15 21.41 8.99 21.41 9.76C21.41 10.7 21.04 11.08 20.17 11.11C19.89 11.12 19.63 11.1 19.43 11.07L19.2 10.28ZM19.2 10.12C19.38 10.14 19.63 10.16 19.87 10.15C20.12 10.14 20.27 10.07 20.27 9.75C20.27 9.13 20.09 8.42 19.83 7.95C19.73 7.77 19.71 7.61 19.75 7.42L20.25 5.2H19.3C19.23 5.2 19.2 5.23 19.2 5.3V10.12Z",fill:"#C6500F"}),a.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#C6500F"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_291_97",x1:"23.2273",y1:"1.59091",x2:"29.9893",y2:"18.2067",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFCC7C"}),a.createElement("stop",{offset:"1",stopColor:"#FFF1CC"})),a.createElement("linearGradient",{id:"paint1_linear_291_97",x1:"-2.55304",y1:"20.9444",x2:"9.30572",y2:"2.20874",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF7658"}),a.createElement("stop",{offset:"1",stopColor:"#D55C5C",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_291_97",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_291_97",x1:"0.867647",y1:"8",x2:"50.8676",y2:"8",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFD897"}),a.createElement("stop",{offset:"1",stopColor:"#FFEDC6"}))))})},65575:(eo,ot,i)=>{"use strict";i.d(ot,{fs:()=>dn,Qq:()=>Ot,ZE:()=>Ce,fc:()=>Jn,YR:()=>rn,F0:()=>He,ns:()=>Bn,QR:()=>Lt,av:()=>ht,lD:()=>jt,ep:()=>mt,OD:()=>Pt,qv:()=>Nn,u2:()=>on,YJ:()=>Ut,Ld:()=>so,Kf:()=>mo,xx:()=>mn,c_:()=>o,$m:()=>Fn,sg:()=>Yt,do:()=>Gt,yX:()=>Ht,Om:()=>no,cz:()=>Vt,Am:()=>Tt,af:()=>At,Xr:()=>G});var a=i(38502),k=i(53732),M=i.n(k),P=i(21066),C=i(83199),q=i(17307),Y=i(56202),J=i(67787);const O=J.Ay.div.withConfig({displayName:"styles__StyledIconTips",componentId:"sc-g9m8f2-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:row;.shortfont{color:#c8cdd0;margin-left:10px;white-space:nowrap;kbd{display:inline-block;text-align:center;min-width:12px;}}"]);var l=i(72214);const D=qt=>{const{iconClassName:Zt,name:jn,onClick:ro,content:Tn,direction:bt="down",hotKeyText:Wt,iconProps:wn}=qt,uo=(0,a.useRef)(null),In=Mn=>{ro&&ro(Mn)},So={down:"bottom",up:"top",left:"left",right:"right"}[bt],Qt=Wt&&Wt.length>0&&((0,Y.cX)()?Wt.filter(Mn=>Mn!=="+"):Wt),Ln=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(O,{children:[Tn,Qt&&Qt.length>0&&(0,l.jsx)("div",{className:"shortfont",children:Qt.map((Mn,Rt)=>(0,l.jsx)("kbd",{children:Mn},Rt))})]})});return(0,l.jsx)(C.A,{content:Ln(),direction:So,children:(0,l.jsx)("a",{className:Zt,ref:uo,onClick:In,children:(0,l.jsx)(q.C,{...wn,name:jn})})})},m=qt=>(0,l.jsx)(C.A,{component:(0,l.jsx)(D,{...qt})});var E=i(93257),f=i(88856),h=i(65541),S=i(86594),V=i(79150),We=i(78661),re=i(99917),ve=i(87945),we=i(15515),Ae=i(53008),Oe=i(43641),Be=i(88944),tt=i(5209),Xe=i(93971),ne=i(88670),lt=i(8228),rt=i(61790),Te=i(81122),Ge=i(61893),ue=i(43838),Me=i(21677),Ze=i(70812),fe=i(13642),it=i(6357);const et=qt=>qt.stopPropagation(),Ut=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=bt=>{bt.preventDefault(),Zt({type:"entry:group:items"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Combination})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.group,onClick:Tn,hotKeyText:We.V.group,disabled:jn})}),G=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=bt=>{bt.preventDefault(),Zt({type:"entry:ungroup:items"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.BreakUp})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.ungroup,onClick:Tn,hotKeyText:We.V.ungroup,disabled:jn})}),Ht=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn}=qt,ro=Tn=>{Tn.preventDefault(),Zt({type:"entry:design:zoom:selection"})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.zoom_to_the_element,onClick:ro,disabled:jn})}),Tt=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=Wt=>{Wt.preventDefault(),Zt({type:"entry:items:send:front"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Top})},bt=Wt=>{Wt.preventDefault(),!jn&&(Zt({type:"entry:items:forward"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.MoveUp}))};return(0,l.jsxs)(it.n_,{children:[(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.send_front,onClick:Tn,disabled:jn,hotKeyText:We.V.sendFront}),(0,l.jsx)("div",{className:M()("icon-box","forward","menu-right-box",{disabled:jn}),onClick:bt,onMouseDown:et,children:(0,l.jsx)(m,{name:"common/z_forward",iconClassName:"menu-icon-box menu-z_forward",tagName:"SVGIcon",content:I18N.ContextMenu.z_forward,hotKeyText:We.V.zForward,direction:"right"})})]})}),Vt=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=Wt=>{Wt.preventDefault(),Zt({type:"entry:items:send:back"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Bottom})},bt=Wt=>{Wt.preventDefault(),!jn&&(Zt({type:"entry:items:backward"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.MoveDown}))};return(0,l.jsxs)(it.n_,{children:[(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.send_back,onClick:Tn,disabled:jn,hotKeyText:We.V.sendBack}),(0,l.jsx)("div",{className:M()("icon-box","backward","menu-right-box",{disabled:jn}),onClick:bt,onMouseDown:et,children:(0,l.jsx)(m,{name:"common/z_backward",iconClassName:"menu-icon-box menu-z_backward",tagName:"SVGIcon",content:I18N.ContextMenu.z_backward,hotKeyText:We.V.zBackward,direction:"right"})})]})}),He=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=()=>{Zt({type:"entry:items:canvasList:backward",payload:{attr:"order"}}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.MoveUp})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.move_up,disabled:jn,onClick:Tn})}),rn=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=()=>{Zt({type:"entry:items:canvasList:forward",payload:{attr:"order"}}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.MoveDown})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.move_down,disabled:jn,onClick:Tn})}),Lt=(0,a.memo)(qt=>{const{dispatch:Zt,from:jn}=qt,ro=Tn=>{if(Tn.preventDefault(),MB.f.editingRichText){fe.A.emit("draft:text:copy");return}Zt({type:"entry:copy:items"}),(0,Be.O3)({operation_from:jn,operation_type:Be.VW.Copy}),(0,Y.H8)()&&(0,S.P8)()};return(0,l.jsx)(P.Dr,{text:""+I18N.ContextMenu.copy,onClick:ro,hotKeyText:We.V.copy})}),jt=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=bt=>{if(!jn){if(bt.preventDefault(),MB.f.editingRichText){fe.A.emit("draft:text:cut");return}Zt({type:"entry:cut:items"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Cut}),(0,Y.H8)()&&(0,S.P8)()}};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.cut,onClick:Tn,hotKeyText:We.V.cut,disabled:jn})}),mt=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=bt=>{jn||(bt.preventDefault(),Zt({type:"entry:delete:selected-items"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Delete}))};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.delete,onClick:Tn,disabled:jn})}),Jn=(0,a.memo)(qt=>{const{from:Zt,dispatch:jn}=qt,ro=Zt===ve.G.TopBar,Tn=Wt=>{if(Wt.preventDefault(),ENV.IS_MO){bt(Wt);return}jn({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:Zt||ve.G.RightClick}}),(0,Be.O3)({operation_from:Zt,operation_type:Be.VW.AutoFill}),(0,Me.Z)(lt.SR.AutoFill)},bt=Wt=>{Wt.preventDefault();const wn=(0,lt.$I)().find(uo=>uo.type===lt.SR.AutoFill);wn.source="\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",jn({type:ne.X.AIOpenModal,payload:wn})};return(0,l.jsxs)(it.n_,{children:[(0,l.jsx)(P.Dr,{text:I18N.ChatGPT.magic_fill,onClick:Tn}),!ENV.IS_ON_PREMISES&&(0,l.jsx)(V.A,{size:16,name:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,className:M()("en-auto-fill-box",ro&&"from-topbar")})]})}),o=(0,a.memo)(qt=>{const{isLocked:Zt,dispatch:jn,disabled:ro,from:Tn}=qt,[bt]=Zt?[I18N.ContextMenu.unlock]:[I18N.ContextMenu.lock_widget],Wt=wn=>{wn.preventDefault(),jn({type:"entry:toggle:lock"}),(0,Be.O3)({operation_from:Tn,operation_type:Zt?Be.VW.UnLocked:Be.VW.Locked})};return(0,l.jsx)(P.Dr,{text:bt,onClick:Wt,hotKeyText:We.V.lock,disabled:ro})}),so=(0,a.memo)(qt=>{const{isVisible:Zt,from:jn,disabled:ro,dispatch:Tn}=qt,bt=Zt?I18N.ContextMenu.hide:I18N.ContextMenu.show,Wt=wn=>{wn.preventDefault(),Tn({type:"entry:toggle:visible"}),(0,Be.O3)({operation_from:jn,operation_type:Zt?Be.VW.Hide:Be.VW.Show})};return(0,l.jsx)(P.Dr,{text:bt,onClick:Wt,hotKeyText:We.V.hide,disabled:ro})}),Et=(0,a.memo)(qt=>{const{from:Zt,isMeDesign:jn,isEditingOrgCombo:ro,isEditingUserCombo:Tn,canEditLibrary:bt,dispatch:Wt}=qt,wn=In=>{MB.global.experienceLoginModalHelper("isSave")||(In.preventDefault(),Wt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"user",callback:()=>{(0,Be.O3)({operation_from:Zt,operation_type:Be.VW.AddToMyCombo})}}}))},uo=In=>{MB.global.experienceLoginModalHelper("isSave")||(In.preventDefault(),Wt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"org",callback:()=>{(0,Be.O3)({operation_from:Zt,operation_type:Be.VW.AddToOrgCombo})}}}))};return(0,l.jsxs)(l.Fragment,{children:[!Tn&&(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.my_widgets,onClick:wn}),!jn&&!ro&&(0,l.jsx)(C.A,{maxWidth:"236px",content:bt?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,l.jsx)(P.Dr,{disabled:!bt,text:I18N.ContextMenu.org_widgets,onClick:uo})})]})}),Jt=(0,a.memo)(qt=>{const{isMeDesign:Zt,canEditLibrary:jn,dispatch:ro}=qt,Tn=Wt=>{MB.global.experienceLoginModalHelper("isSave")||(Wt.preventDefault(),ro({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"user"}}))},bt=Wt=>{MB.global.experienceLoginModalHelper("isSave")||(Wt.preventDefault(),ro({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"org"}}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.my_assets,onClick:Tn}),!Zt&&(0,l.jsx)(C.A,{maxWidth:"236px",content:jn?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,l.jsx)(P.Dr,{disabled:!jn,text:I18N.ContextMenu.org_assets,onClick:bt})})]})}),Ot=(0,a.memo)(qt=>{const{canCreateCombo:Zt,canCreateAsset:jn,isMeDesign:ro,dispatch:Tn,canEditLibrary:bt,canAddToMyOrOrgAsset:Wt,isEditingOrgCombo:wn,isEditingUserCombo:uo,from:In,disabled:Dn}=qt;return(0,l.jsxs)(P.Dr,{text:I18N.ContextMenu.add_to,disabled:Dn,isAiry:!0,children:[Zt&&(0,l.jsx)(Et,{canEditLibrary:bt,isMeDesign:ro,isEditingOrgCombo:wn,isEditingUserCombo:uo,dispatch:Tn,from:In}),jn&&Wt&&(0,l.jsx)(Jt,{canEditLibrary:bt,isMeDesign:ro,dispatch:Tn})]})}),dn=(0,a.memo)(qt=>{const{dispatch:Zt,selectedItems:jn,isEditingBasket:ro,from:Tn,disabled:bt}=qt,Wt=async wn=>{if(wn.preventDefault(),MB.global.experienceLoginModalHelper("isSave")||bt)return;const uo=jn[0].hotAttr.name||(0,rt.KD)(jn[0].key);Zt({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:uo,onConfirm:async In=>{let{name:Dn,onSuccess:So}=In;await Zt({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:Dn},onSuccess:So,isCreateFolder:!0}}),(0,Be.O3)({operation_from:Tn,operation_type:Be.VW.SwitchMuban})}}}}),(0,Xe.SJ)("\u53F3\u952E\u8F6C\u5316\u6BCD\u7248",ro,jn.map(In=>In.key))};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.create_master,onClick:Wt,disabled:bt})}),Ce=(0,a.memo)(qt=>{const{dispatch:Zt,selectedItems:jn,isEditingBasket:ro,from:Tn,disabled:bt}=qt,Wt=async()=>{await Zt({type:"entry:create:basket",payload:{basketType:"bDanli"}}),Zt({type:"entry:screenContainer:enter:editing:widget"}),(0,Be.O3)({operation_from:Tn,operation_type:Be.VW.SwitchBasket}),(0,Xe.XG)("\u53F3\u952E\u8F6C\u6362\u52A8\u6001\u7EC4\u4EF6",ro,jn.map(uo=>uo.key))},wn=async uo=>{bt||(uo.preventDefault(),jn.length===1&&jn[0].hotAttr.type==="wBasket"&&jn[0].hotAttr.basket==="bDanli"?Zt({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"contextMenu",onConfirm:()=>Wt()}}}):Wt())};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.create_panel,onClick:wn,disabled:bt})}),Pt=(0,a.memo)(qt=>{const{dispatch:Zt}=qt,jn=()=>{MB.global.experienceLoginModalHelper("isSave")||(Zt({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,tt.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.detach_panel}))};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.detach_panel,onClick:jn})}),Nn=(0,a.memo)(qt=>{const{disabled:Zt,dispatch:jn}=qt,ro=()=>{MB.global.experienceLoginModalHelper("isSave")||jn({type:"entry:detach:basket"})};return(0,l.jsx)(P.Dr,{text:I18N.Basket.separateState,onClick:ro,disabled:Zt})}),At=(0,a.memo)(qt=>{const{widget:Zt,dispatch:jn}=qt,ro=async()=>{await jn({type:"entry:basket:muban:commitOwa"}),(0,tt.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.sync_to_muban})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:ro,disabled:!sdkStore.hasOwa(Zt.cid)})}),on=(0,a.memo)(qt=>{const{widget:Zt,dispatch:jn}=qt,ro=()=>{const Tn=sdkStore.getHotItem(Zt.refRBPageKey);jn({type:"entry:edit:basket:source:muban",payload:{item:{...Tn,...Tn.hotAttr}}}),(0,tt.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.edit_muban})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.edit_muban,onClick:ro})}),no=(0,a.memo)(qt=>{const{selectItems:Zt,dispatch:jn}=qt,ro=Zt.every(bt=>!sdkStore.hasOwa(bt.cid)),Tn=()=>{jn({type:"entry:basket:muban:resetOwa"}),(0,tt.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.reset_to_muban})};return(0,l.jsx)(P.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:Tn,disabled:ro})}),mo=(0,a.memo)(qt=>{const{dispatch:Zt}=qt,jn=ro=>{ro.preventDefault(),Zt({type:"entry:image-view:edit",payload:{operationType:re.bl.cutting}}),Zt({type:"entry:image-view:cutting"})};return(0,l.jsx)(P.Dr,{text:I18N.SettingPanel.crop,onClick:jn})}),mn=(0,a.memo)(qt=>{const{dispatch:Zt}=qt,jn=ro=>{ro.preventDefault(),Zt({type:"entry:image-view:edit",payload:{operationType:re.bl.slicing}}),Zt({type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:ro.clientX,y:ro.clientY}}})};return(0,l.jsx)(P.Dr,{text:I18N.SettingPanel.division,onClick:jn})}),ht=(0,a.memo)(qt=>{const{canvas:Zt,currentProject:jn,dispatch:ro,isFromAbar:Tn}=qt,bt=async(Wt,wn)=>{if(Wt.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)ro({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Ge.hC.MaxSharingCount,isFromScreenList:!0,project:jn}}});else{var In;const Dn=Zt.hotAttr.name;let So;const Qt=Zt==null?void 0:Zt.sup;wn==="curPage"?So=Qt?[Qt]:[]:wn==="allPage"&&(So=[]),So=(0,Ae.Uh)(So);const Ln=(0,we.Yt)(jn.cid+"_default_sharing_view_mode","read_only",we.qW.String),Mn=(0,Ae.CV)({accessToken:jn.access_token,view_mode:Ln,pageKey:Qt,targetKey:Zt.key,selection:So}),Rt=(0,Ae.R_)(Mn,MB.getRootProject().name,Dn,"");(0,Oe.$)(Rt),Tn||(0,Te.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:f.pU,duration:5e3}),Ze.U4.protoEditorShareTrack((In=MB)==null||(In=In.user)==null?void 0:In.id,"\u9875\u9762\u53F3\u952E\u5206\u4EAB")}};return(0,l.jsx)(Fn,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_canvas,onClick:Wt=>bt(Wt,"allpage")})}),Fn=(0,a.memo)(qt=>{const{text:Zt,tips:jn,distance:ro=10,maxWidth:Tn=ENV.IS_MO?"none":"250px",onClick:bt}=qt;return(0,l.jsxs)(it.g$,{children:[(0,l.jsx)(P.Dr,{text:Zt,onClick:bt}),(0,l.jsx)(E.A,{content:jn,direction:"right",tipClassName:"tips-container",distance:ro,maxWidth:Tn,children:(0,l.jsx)(V.A,{className:"tipsIcon",name:"common/tip",size:16})}),(0,l.jsx)(it.hb,{})]})}),Yt=(0,a.memo)(qt=>{const{dispatch:Zt,disabled:jn,from:ro}=qt,Tn=async bt=>{if(bt.preventDefault(),MB.f.editing){fe.A.emit("draft:text:paste");return}Zt({type:"entry:toggle:paste:direct:by:contextmenu"}),(0,Be.O3)({operation_from:ro,operation_type:Be.VW.Paste})};return(0,l.jsx)(P.Dr,{text:I18N.ToolBar.paste,onClick:Tn,hotKeyText:We.V.past,disabled:jn})}),Gt=(0,a.memo)(qt=>{const{from:Zt,disabled:jn,position:{top:ro,left:Tn},dispatch:bt}=qt,Wt=async wn=>{const uo={clientX:Tn,clientY:ro};if(wn.preventDefault(),MB.f.editing)return;const In=await(0,S.LD)({isShowPrompt:!0});await(0,ue.$H)({hasNotice:!1})?In!=null&&In.data?bt({type:"entry:paste:items:at",payload:{clientPos:uo,hasPrompt:!0}}):bt({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:uo}}):bt({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:uo}}),(0,Be.O3)({operation_from:Zt,operation_type:Be.VW.Paste})};return(0,l.jsx)(P.Dr,{text:""+I18N.ToolBar.paste+I18N.ContextMenu.paste_to_point,onClick:Wt,hotKeyText:We.V.pastToPoint,disabled:jn})}),Bn=(0,a.memo)(qt=>{const{dispatch:Zt}=qt,jn=ro=>{ro.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&Zt({type:"modal:update:state",payload:{canvasConvertedToPixsoModal:{isOpen:!0,from:"contextMenu"}}})};return ENV.IS_ON_PREMISES?null:(0,l.jsx)(P.Dr,{className:"in-beta-icon",text:I18N.ContextMenu.converted_pixso,icon:(0,l.jsx)(h.A,{className:"beta is-multi-color-icon"}),onClick:jn})})},65710:(eo,ot,i)=>{"use strict";i.d(ot,{$S:()=>k,Jh:()=>O,Wq:()=>Y,lJ:()=>M,z4:()=>q});var a=i(74302);const k=[{dataType:"png",text:"PNG",iconName:"png",tempDisabled:!1},{dataType:"pdf",text:"PDF",iconName:"pdf",tempDisabled:!1},{dataType:"htmlzip",text:"html5_zip",iconName:"htmlzip",tempDisabled:!1},{dataType:"apk",text:"apk_file",iconName:"apk",tempDisabled:!1},{dataType:"source_file",text:"source_file",iconName:"source_file",tempDisabled:!1}],M=[{label:"current_screen",value:"currentPage"},{label:"all_screen",value:"allPage"}],P=l=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:l},{label:"3x",value:3,isDisabled:l}],C=l=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:l}],q=function(l,D){switch(D===void 0&&(D=!1),l){case a.xk.PNG:return P(D);default:return C(D)}},Y={png:{postfix:".png",MIME:"image/png"},pdf:{postfix:".pdf",MIME:"application/pdf"},pngs:{postfix:".zip",MIME:"application/zip"},htmlzip:{postfix:".zip",MIME:"application/zip"},apk:{postfix:".apk",MIME:"application/vnd.android.package-archive"},source_file:{postfix:".mdrp",MIME:"application/zip"}},J='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill="#FFF"><path d="M8 0C3.6 0 0 3.6 0 8 0 12.4 3.6 16 8 16 12.4 16 16 12.4 16 8 16 3.6 12.4 0 8 0ZM8.6 12.4C8.4 12.6 8.2 12.7 7.9 12.7 7.7 12.7 7.5 12.6 7.3 12.5 7.1 12.3 7 12.1 7 11.8 7 11.5 7.1 11.3 7.3 11.1 7.4 10.9 7.7 10.8 7.9 10.8 8.2 10.8 8.4 10.9 8.6 11.1 8.8 11.3 8.8 11.5 8.8 11.8 8.8 12.1 8.8 12.3 8.6 12.4ZM10.9 6.7C10.7 7 10.6 7.2 10.4 7.4 10.2 7.6 9.8 7.9 9.3 8.4 9.2 8.5 9.1 8.6 9 8.7 8.9 8.8 8.8 8.9 8.8 9 8.8 9 8.7 9.1 8.7 9.2 8.7 9.3 8.6 9.4 8.6 9.6 8.5 10.1 8.3 10.3 7.9 10.3 7.6 10.3 7.5 10.2 7.3 10.1 7.2 9.9 7.1 9.7 7.1 9.4 7.1 9.1 7.1 8.8 7.3 8.5 7.4 8.3 7.5 8.1 7.7 7.9 7.9 7.7 8.1 7.4 8.4 7.2 8.7 6.9 8.9 6.8 9 6.7 9.1 6.5 9.2 6.4 9.3 6.3 9.4 6.1 9.4 6 9.4 5.8 9.4 5.5 9.3 5.2 9 5 8.8 4.7 8.5 4.6 8.1 4.6 7.6 4.6 7.3 4.7 7.1 5 6.9 5.2 6.7 5.5 6.5 6 6.4 6.4 6.1 6.7 5.7 6.7 5.5 6.7 5.3 6.6 5.1 6.4 5 6.3 4.9 6.1 4.9 5.9 4.9 5.5 5 5.1 5.3 4.7 5.5 4.3 5.9 4 6.4 3.7 6.9 3.4 7.4 3.3 8.1 3.3 8.7 3.3 9.2 3.4 9.7 3.6 10.1 3.9 10.5 4.2 10.7 4.5 11 4.9 11.1 5.3 11.1 5.8 11.1 6.1 11 6.4 10.9 6.7Z"/></g></svg>',O="https://mockitt.wondershare.com/pricing.html"},65712:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Ge});var a=i(38502),k=i(53732),M=i.n(k),P=i(94815),C=i(49358);const q=ue=>ue?typeof ue=="function"?ue():ue:null;var Y=i(54709),J=i(67916),O=i(46757),l=i(20366),D=i(28706),m=i(55095),E=i(60587),f=i(42223),h=i(65737),S=i(47096),V=i(58196),We=i(48150);const re=ue=>{const{componentCls:Me,popoverColor:Ze,titleMinWidth:fe,fontWeightStrong:it,innerPadding:et,boxShadowSecondary:Ut,colorTextHeading:G,borderRadiusLG:Ht,zIndexPopup:Tt,titleMarginBottom:Vt,colorBgElevated:He,popoverBg:rn,titleBorderBottom:Lt,innerContentPadding:jt,titlePadding:mt}=ue;return[{[Me]:Object.assign(Object.assign({},(0,m.dF)(ue)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Tt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":He,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[Me+"-content"]:{position:"relative"},[Me+"-inner"]:{backgroundColor:rn,backgroundClip:"padding-box",borderRadius:Ht,boxShadow:Ut,padding:et},[Me+"-title"]:{minWidth:fe,marginBottom:Vt,color:G,fontWeight:it,borderBottom:Lt,padding:mt},[Me+"-inner-content"]:{color:Ze,padding:jt}})},(0,f.Ay)(ue,"var(--antd-arrow-background-color)"),{[Me+"-pure"]:{position:"relative",maxWidth:"none",margin:ue.sizePopupArrow,display:"inline-block",[Me+"-content"]:{display:"inline-block"}}}]},ve=ue=>{const{componentCls:Me}=ue;return{[Me]:S.s.map(Ze=>{const fe=ue[Ze+"6"];return{["&"+Me+"-"+Ze]:{"--antd-arrow-background-color":fe,[Me+"-inner"]:{backgroundColor:fe},[Me+"-arrow"]:{background:"transparent"}}}})}},we=ue=>{const{lineWidth:Me,controlHeight:Ze,fontHeight:fe,padding:it,wireframe:et,zIndexPopupBase:Ut,borderRadiusLG:G,marginXS:Ht,lineType:Tt,colorSplit:Vt,paddingSM:He}=ue,rn=Ze-fe,Lt=rn/2,jt=rn/2-Me,mt=it;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ut+30},(0,h.n)(ue)),(0,f.Ke)({contentRadius:G,limitVerticalRadius:!0})),{innerPadding:et?0:12,titleMarginBottom:et?0:Ht,titlePadding:et?Lt+"px "+mt+"px "+jt+"px":0,titleBorderBottom:et?Me+"px "+Tt+" "+Vt:"none",innerContentPadding:et?He+"px "+mt+"px":0})},Ae=(0,V.OF)("Popover",ue=>{const{colorBgElevated:Me,colorText:Ze}=ue,fe=(0,We.oX)(ue,{popoverBg:Me,popoverColor:Ze});return[re(fe),ve(fe),(0,E.aB)(fe,"zoom-big")]},we,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Oe=function(ue,Me){var Ze={};for(var fe in ue)Object.prototype.hasOwnProperty.call(ue,fe)&&Me.indexOf(fe)<0&&(Ze[fe]=ue[fe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,fe=Object.getOwnPropertySymbols(ue);it<fe.length;it++)Me.indexOf(fe[it])<0&&Object.prototype.propertyIsEnumerable.call(ue,fe[it])&&(Ze[fe[it]]=ue[fe[it]]);return Ze};const Be=ue=>{let{title:Me,content:Ze,prefixCls:fe}=ue;return!Me&&!Ze?null:a.createElement(a.Fragment,null,Me&&a.createElement("div",{className:fe+"-title"},Me),Ze&&a.createElement("div",{className:fe+"-inner-content"},Ze))},tt=ue=>{const{hashId:Me,prefixCls:Ze,className:fe,style:it,placement:et="top",title:Ut,content:G,children:Ht}=ue,Tt=q(Ut),Vt=q(G),He=M()(Me,Ze,Ze+"-pure",Ze+"-placement-"+et,fe);return a.createElement("div",{className:He,style:it},a.createElement("div",{className:Ze+"-arrow"}),a.createElement(D.z,Object.assign({},ue,{className:Me,prefixCls:Ze}),Ht||a.createElement(Be,{prefixCls:Ze,title:Tt,content:Vt})))},ne=ue=>{const{prefixCls:Me,className:Ze}=ue,fe=Oe(ue,["prefixCls","className"]),{getPrefixCls:it}=a.useContext(O.QO),et=it("popover",Me),[Ut,G,Ht]=Ae(et);return Ut(a.createElement(tt,Object.assign({},fe,{prefixCls:et,hashId:G,className:M()(Ze,Ht)})))};var lt=function(ue,Me){var Ze={};for(var fe in ue)Object.prototype.hasOwnProperty.call(ue,fe)&&Me.indexOf(fe)<0&&(Ze[fe]=ue[fe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,fe=Object.getOwnPropertySymbols(ue);it<fe.length;it++)Me.indexOf(fe[it])<0&&Object.prototype.propertyIsEnumerable.call(ue,fe[it])&&(Ze[fe[it]]=ue[fe[it]]);return Ze};const Te=a.forwardRef((ue,Me)=>{var Ze,fe;const{prefixCls:it,title:et,content:Ut,overlayClassName:G,placement:Ht="top",trigger:Tt="hover",children:Vt,mouseEnterDelay:He=.1,mouseLeaveDelay:rn=.1,onOpenChange:Lt,overlayStyle:jt={},styles:mt,classNames:Jn}=ue,o=lt(ue,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:so,className:Et,style:Jt,classNames:Ot,styles:dn}=(0,O.TP)("popover"),Ce=so("popover",it),[Pt,Nn,At]=Ae(Ce),on=so(),no=M()(G,Nn,At,Et,Ot.root,Jn==null?void 0:Jn.root),mo=M()(Ot.body,Jn==null?void 0:Jn.body),[mn,ht]=(0,P.A)(!1,{value:(Ze=ue.open)!==null&&Ze!==void 0?Ze:ue.visible,defaultValue:(fe=ue.defaultOpen)!==null&&fe!==void 0?fe:ue.defaultVisible}),Fn=(Zt,jn)=>{ht(Zt,!0),Lt==null||Lt(Zt,jn)},Yt=Zt=>{Zt.keyCode===C.A.ESC&&Fn(!1,Zt)},Gt=Zt=>{Fn(Zt)},Bn=q(et),qt=q(Ut);return Pt(a.createElement(l.A,Object.assign({placement:Ht,trigger:Tt,mouseEnterDelay:He,mouseLeaveDelay:rn},o,{prefixCls:Ce,classNames:{root:no,body:mo},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},dn.root),Jt),jt),mt==null?void 0:mt.root),body:Object.assign(Object.assign({},dn.body),mt==null?void 0:mt.body)},ref:Me,open:mn,onOpenChange:Gt,overlay:Bn||qt?a.createElement(Be,{prefixCls:Ce,title:Bn,content:qt}):null,transitionName:(0,Y.b)(on,"zoom-big",o.transitionName),"data-popover-inject":!0}),(0,J.Ob)(Vt,{onKeyDown:Zt=>{var jn,ro;(0,a.isValidElement)(Vt)&&((ro=Vt==null?void 0:(jn=Vt.props).onKeyDown)===null||ro===void 0||ro.call(jn,Zt)),Yt(Zt)}})))});Te._InternalPanelDoNotUseOrYouWillBeFired=ne;const Ge=Te},65744:(eo,ot,i)=>{var a=i(57327),k=i(22625);function M(P,C){return P&&P.length?k(P,a(C,3),!0):[]}eo.exports=M},65791:(eo,ot,i)=>{"use strict";i.d(ot,{Eq:()=>f,FC:()=>P,Fi:()=>S,JI:()=>O,Lt:()=>E,MM:()=>Y,XA:()=>m,c3:()=>M,dr:()=>l,ru:()=>h,sq:()=>C,xN:()=>q,zA:()=>D});const a=V=>V.ui.leftLayout.page.meTemplateList,k=V=>V.ui.leftLayout.page.isLoadedTemplateMeData,M=V=>V.ui.leftLayout.page.filePlatformType,P=V=>V.ui.leftLayout.page.fileTemplateList,C=V=>V.ui.leftLayout.page.isLoadedfileData,q=V=>V.ui.leftLayout.page.isLoadedPageSingleData,Y=V=>V.ui.leftLayout.page.isLoadedPageLibraryData,J=V=>V.ui.leftLayout.page.templatePageSingleDataMap,O=V=>V.ui.leftLayout.page.templatePageLibraryList,l=V=>V.ui.leftLayout.page.templateLibraryPlatformType,D=V=>V.ui.leftLayout.page.templateLibraryPlatformSubType,m=V=>V.ui.leftLayout.page.templateLibraryPlatformSubTypeListMap,E=V=>V.ui.leftLayout.page.pageMode,f=V=>V.ui.leftLayout.page.meNavIndex,h=V=>V.ui.leftLayout.page.meFilter,S=V=>V.ui.leftLayout.page.currentStarResourcesCid},66313:(eo,ot,i)=>{"use strict";i.d(ot,{q:()=>P});var a=i(67787),k=i(32330),M=i(72214);const P=q=>{let{onClick:Y,isDisabled:J}=q;return(0,M.jsx)(C,{onClick:Y,className:"chat-submit "+(J?"disabled":""),children:(0,M.jsx)(k.A,{size:24})})},C=a.Ay.div.withConfig({displayName:"SendIcon__StyledDivButton",componentId:"sc-1keqio0-0"})(["align-self:flex-end;background-color:",";background-clip:content-box;color:",";cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:4px;border-radius:50%;transition:background-color 0.3s ease;&.disabled{background-color:",";cursor:not-allowed;}&:hover:not(.disabled){background-color:",";}&:active:not(.disabled){background-color:",";}path{fill:currentColor;}"],q=>q.theme.color_btn_primary_normal,q=>q.theme.color_text_white,q=>q.theme.color_btn_primary_disabled,q=>q.theme.color_btn_primary_hover,q=>q.theme.color_btn_primary_clicked)},66339:(eo,ot,i)=>{"use strict";i.d(ot,{$d:()=>E,xq:()=>m});var a=i(67787),k=i(53732),M=i.n(k),P=i(27660),C=i(72214);const q=a.Ay.div.withConfig({displayName:"common__StyledLine",componentId:"sc-198dvpo-0"})(["width:43px;height:2px;color:",";background-repeat:repeat-x;background-position:left center;&.solid{background-image:linear-gradient(to right,currentColor 0%,currentColor 100%,transparent 0%);background-size:43px 1px;}&.dotted{background-image:linear-gradient(to right,currentColor 0%,currentColor 25%,transparent 25%);background-size:4px 1px;}&.dashed{background-image:linear-gradient(to right,currentColor 0%,currentColor 55%,transparent 55%);background-size:22% 1px;}"],S=>S.theme.color_text_L1),Y=()=>(0,C.jsx)(q,{className:M()("border-line solid")}),J=()=>(0,C.jsx)(q,{className:M()("border-line dotted")}),O=()=>(0,C.jsx)(q,{className:M()("border-line dashed")}),l=(0,P.R)(()=>[{label:(0,C.jsx)(Y,{}),value:"solid",tip_title:I18N.SettingPanel.solid_line},{label:(0,C.jsx)(J,{}),value:"dotted",tip_title:I18N.SettingPanel.dot_line},{label:(0,C.jsx)(O,{}),value:"dashed",tip_title:I18N.SettingPanel.break_line}]),D=S=>S.map(V=>({label:V.toString(),value:V})),m=D([0,1,2,3,4,5,6,7,8,9]),E=D([1,2,3,4,5,6,7,8,9]),f=D([1,2,3,4,5,6,7,8,9,10]),h=D([0,30,45,60,90])},66361:(eo,ot,i)=>{"use strict";i.d(ot,{$:()=>a});let a=function(k){return k[k.MOVEUP=1]="MOVEUP",k[k.MOVEDOWN=-1]="MOVEDOWN",k[k.UPGRADE=2]="UPGRADE",k[k.DOWNGRADE=0]="DOWNGRADE",k}({})},67487:(eo,ot,i)=>{"use strict";/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var a=i(38502);function k(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}var M=typeof Object.is=="function"?Object.is:k,P=a.useState,C=a.useEffect,q=a.useLayoutEffect,Y=a.useDebugValue;function J(m,E){var f=E(),h=P({inst:{value:f,getSnapshot:E}}),S=h[0].inst,V=h[1];return q(function(){S.value=f,S.getSnapshot=E,O(S)&&V({inst:S})},[m,f,E]),C(function(){return O(S)&&V({inst:S}),m(function(){O(S)&&V({inst:S})})},[m]),Y(f),f}function O(m){var E=m.getSnapshot;m=m.value;try{var f=E();return!M(m,f)}catch(h){return!0}}function l(m,E){return E()}var D=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:J;ot.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:D},69130:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M9.87 10.175C10.3757 10.183 10.878 10.0899 11.3473 9.90129C11.8166 9.71265 12.2435 9.43221 12.603 9.07643C12.9625 8.72064 13.2474 8.29666 13.4409 7.82934C13.6344 7.36203 13.7327 6.86078 13.73 6.35499C13.73 5.32064 13.3191 4.32866 12.5877 3.59727C11.8563 2.86588 10.8643 2.45499 9.83 2.45499C8.79566 2.45499 7.80368 2.86588 7.07228 3.59727C6.34089 4.32866 5.93 5.32064 5.93 6.35499C5.93249 6.8661 6.03699 7.37158 6.23738 7.84178C6.43777 8.31199 6.73001 8.73745 7.09697 9.09324C7.46394 9.44903 7.89824 9.72797 8.37441 9.91373C8.85058 10.0995 9.35905 10.1883 9.87 10.175ZM13.7 11.795C12.9281 11.29 12.0223 11.0287 11.1 11.045H8.83C7.93 11.045 6.97 11.275 6.23 11.755C5.55509 12.1935 4.99858 12.7914 4.60965 13.496C4.22071 14.2007 4.01133 14.9902 4 15.795V16.095C4 17.515 6.13 17.545 8.87 17.545H11.13C13.87 17.545 16 17.545 16 16.095V15.795C16 14.115 15.07 12.635 13.7 11.795Z",fill:"#B7B9BD"}))})},70169:(eo,ot,i)=>{"use strict";i.d(ot,{oB:()=>o,C5:()=>He});var a=i(70933),k=i(20119),M=i(70422),P=i(24496),C=i(60651),q=i(4235),Y=i(41589),J=i.n(Y);function O(so,Et,Jt){const Ot=[];return Jt.forEach(dn=>{const Ce=J()(dn.hotAttr);if(Ce.textV0){var Pt;const Nn=Ce.textV0.text;so==="textColor"&&(Ce.textV0.text=m(Nn)),so==="bold"&&(Ce.textV0.text=h(Nn)),so==="italic"&&(Ce.textV0.text=E(Nn)),so==="textDecoration"&&Et==="line-through"&&(Ce.textV0.text=S(Nn)),so==="textDecoration"&&Et==="underline"&&(Ce.textV0.text=f(Nn)),so==="fontSize"&&!((Pt=dn.refVars)!=null&&(Pt=Pt.textV0)!=null&&Pt.lineHeight)&&(Ce.textV0.lineHeight=Math.round(Et*1.45))}Ot.push({...dn,hotAttr:Ce})}),Ot}function l(so,Et,Jt,Ot){const dn=[];return Jt.forEach(Ce=>{const Pt=J()(Ce.hotAttr);Pt.textV0&&(Pt.type!=="wTree"||!Ot)&&(so==="bold"&&(Pt.textV0.bold=Et),so==="italic"&&(Pt.textV0.italic=Et),so==="fontFamily"&&(Pt.textV0.fontFamily=Et),so==="fontWeight"&&(Pt.textV0.fontWeight=Et)),dn.push({...Ce,hotAttr:Pt})}),dn}function D(so){let{attr:Et,value:Jt,supAttr:Ot,items:dn}=so;const Ce=[];return dn.forEach(Pt=>{const Nn=J()(Pt.hotAttr);Pt[Ot]&&Ot==="textInput"&&Et==="prefillTextColorV0"&&(Nn.textInput.prefillTextColorV0=Jt),Ce.push({...Pt,hotAttr:Nn})}),Ce}const m=so=>so.replace(/<font.*?>(.*?)<\/font>/g,"$1"),E=so=>so.replace(/<i>(.*?)<\/i>/g,"$1"),f=so=>so.replace(/<u>(.*?)<\/u>/g,"$1"),h=so=>so.replace(/<b>(.*?)<\/b>/g,"$1").replace(/<span.*?>(.*?)<\/span>/g,"$1"),S=so=>so.replace(/<strike>(.*?)<\/strike>/g,"$1");var V=i(15186),We=i(9521),re=i(78401),ve=i(56202),we=i(20089),Ae=i(45709),Oe=i(69815),Be=i(98915),tt=i(40610),Xe=i(49021),ne=i(62587),lt=i(37342),rt=i(46199),Te=i(63763),Ge=i(68049),ue=i(55584),Me=i(39679),Ze=i(34748),fe=i(83744),it=i(8580),et=i(28068),Ut=i(86493),G=i(66360),Ht=i(25997),Tt=i(73662),Vt=i(9680);const He={"entry:batch:edit:text:content":(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{contentArray:dn,refVar:Ce}}=Et;const Pt=Jt(),Nn=(0,q.nE)(Pt),At=[];Nn.forEach(on=>{const no=o(on,dn,Ce);no&&At.push({key:on.key,hotAttr:no.hotAttr})}),At.length>0&&Ot({type:"entry:widget:change",payload:{flatChgList:At}})},"entry:set:specify:text:attr":(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{attr:dn,value:Ce,widgets:Pt}}=Et;const Nn=Jt();rn({widgets:Pt,dispatch:Ot,attr:dn,value:Ce,state:Nn}),(0,fe.Xq)(Pt.map(At=>(0,it.Op)(At.key)))},"entry:set:text:align":(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{attr:dn,value:Ce}}=Et;const Pt=Jt(),Nn=(0,q.nE)(Pt),At=Nn.filter(mo=>tt.VV.includes(mo.hotAttr.type)),on=Nn.filter(mo=>!tt.VV.includes(mo.hotAttr.type));if(At.length>0){const mo=At.map(mn=>({key:mn.key,hotAttr:{richTextV1:{...mn.hotAttr.richTextV1,[dn]:Ce}}}));Ot({type:"entry:widget:change",payload:{flatChgList:mo}})}const no=At.filter(mo=>we.Q.USE_CLIP_TEXT.includes(mo.hotAttr.type));if(no.length>0){const mo=no.map(mn=>{const ht=sdkStore.getHotItem(mn.key);return ht?{key:mn.key,hotAttr:{...!ht.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,Be.Ro)(ht.hotAttr)}}}:null});Ot({type:"entry:widget:change",payload:{flatChgList:mo}})}if(on.length>0){const mo=on.map(mn=>({key:mn.key,hotAttr:{textV0:{...mn.hotAttr.textV0,[dn]:Ce}}}));Ot({type:"entry:widget:change",payload:{flatChgList:mo}})}(0,fe.Xq)(Nn.map(mo=>(0,it.Op)(mo.key)))},"entry:set:text:attr":(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{attr:dn,value:Ce,refVar:Pt,compressible:Nn=!0,fromUI:At}}=Et;const on=Jt(),no=(0,q.nE)(on),mo=(0,C.nx)(on),mn=(0,k.c)(on),ht=(0,P.WH)(on),Fn=(0,P.GP)(on),Yt=(0,P.OX)(on),Gt=(0,P.aJ)(on),Bn=Tt.y.query.getMissFontHiKeySet(on),qt=(no==null?void 0:no.length)===1&&no[0].key===ht&&Yt.length,Zt=qt?Yt:no,jn=qt?Fn:mn,ro=Zt.filter(uo=>Xe.cX.includes(uo.hotAttr.type));if(ro.length===0)return;const Tn=ro.filter(uo=>tt.VV.includes(uo.hotAttr.type)),bt=ro.filter(uo=>!tt.VV.includes(uo.hotAttr.type)),Wt=ro.filter(uo=>(0,rt.kY)(uo.hotAttr));if(sdkStore.combineMergeMark("update-text-attr"),rn({widgets:ro,dispatch:Ot,attr:dn,value:Ce,refVar:Pt,state:on,compressible:Nn,fromUI:At,recordAvailableInheritTextAttrs:fe.Xq,missFontHiKeySet:Bn}),jn&&!Gt&&((0,tt.e_)(jn.hotAttr.type)||(0,tt.gM)(jn.hotAttr.type)))return;const wn=Tn.filter(uo=>we.Q.USE_CLIP_TEXT.includes(uo.hotAttr.type));if(wn.length>0){const uo=[];wn.forEach(In=>{const Dn=sdkStore.getHotItem(In.key);if(!Dn)return null;Dn.hotAttr.richTextV1.isClipText||uo.push({key:In.key,hotAttr:{richTextMetric:(0,Be.Ro)(Dn.hotAttr)}})}),Ot({type:"entry:widget:change",payload:{flatChgList:uo}})}if(!(dn==="sizeType"&&ro.find(uo=>uo.hotAttr.type===we.x.WRichText))){if(Object.keys(mo).length===0){const uo=Dn=>{let{a:So,v:Qt,supAttr:Ln,list:Mn}=Dn;const Rt=Mn.map(Qe=>{const En=sdkStore.getHotItem(Qe.key);return{key:Qe.key,hotAttr:{[Ln]:{...En.hotAttr[Ln],[So]:Qt}}}});Ot({type:"entry:widget:change",payload:{flatChgList:Rt}})},In=Tn.filter(Dn=>Dn.hotAttr.type===we.x.WMindNode);if(In.length>0){const{a:Dn,v:So}=Jn(dn,Ce,"wMind");uo({a:Dn,v:So,supAttr:"richTextV1",list:In})}if(bt.length>0){const{a:Dn,v:So}=Jn(dn,Ce,"commonText");uo({a:Dn,v:So,supAttr:"textV0",list:bt})}if(Wt.length>0)if(dn==="prefillTextColorV0")uo({a:"prefillTextColorV0",v:Ce,supAttr:"textInput",list:Wt});else{const{a:Dn,v:So}=Jn(dn,Ce,"commonText");uo({a:Dn,v:So,supAttr:"textV0",list:Wt})}}qt&&dn!=="textColor"&&Ot({type:"entry:mind:update:mind-size"}),Ot({type:"settings:update:currentTextRefStyle",payload:null}),sdkStore.combineMerge("update-text-attr")}},"entry:set:text:attr:fakeOverride":(so,Et)=>{var Jt;let{getState:Ot,dispatch:dn}=so,{payload:{attrValueList:Ce,supAttr:Pt,isTreeSelectNode:Nn}}=Et;const At=Ot(),on=(0,q.nE)(At),no=(0,k.c)(At),mo=(0,P.WH)(At),mn=(0,Ht.UV)(At),ht=(0,P.OX)(At),Fn=(0,a.Mj)(At),Gt=(on==null?void 0:on.length)===1&&on[0].key===mo&&ht.length?ht:on;if(no&&no.key===((Jt=Gt[0])==null?void 0:Jt.key)&&Fn&&(0,tt.AG)(no)){(0,Oe.nk)(Fn,Ce);return}jt({widgets:Gt,attrValueList:Ce,widgetStore:mn,supAttr:Pt,isTreeSelectNode:Nn})},"entry:set:text:attr:fakeOverride:restore":so=>{let{getState:Et,dispatch:Jt}=so;const Ot=Et(),dn=(0,Ht.UV)(Ot),Ce=mt(dn);Ce&&Jt({type:"selection:update:state",payload:{widgetTreeData:Ce}})},"entry:set:text:attr:by:key":async(so,Et)=>{var Jt;let{getState:Ot,dispatch:dn}=so,{payload:{attr:Ce,action:Pt,isInEditing:Nn=!1}}=Et;const At=Ot(),on=(0,q.nE)(At),no=(0,P.OX)(At),mo=on.some(Wt=>{let{hotAttr:{type:wn}}=Wt;return wn===we.x.WMind})&&!no.length;if(on.length===0||((Jt=on[0])==null?void 0:Jt.hotAttr.bunch)===we.x.RbPage||mo)return;const mn=no[0]||on[0],ht=(0,M.zX)(At),Fn=(mn==null?void 0:mn.hotAttr.type)===we.x.WTable&&ht,Yt=(0,tt.AG)(mn);if(!Yt&&mn&&!mn.hotAttr.textV0)return;const Gt={underline:"textDecoration",lineThrough:"textDecoration",boldType:"bold"},Bn={lineThrough:"strikethrough",boldType:"fontWeight"};let qt;Yt?qt=Bn[Ce]||Ce:qt=Gt[Ce]||Ce;const Zt=Yt?(0,Ze.xH)({baseItem:mn.hotAttr})[qt]:mn.hotAttr.textV0[qt],jn={bold:!Zt,boldType:!Zt,italic:!Zt,fontSize:Pt==="increase"?Zt+1:Zt-1<1?1:Zt-1,textDecoration:Zt==="line-through"||Zt==="underline"?"noraml":qt==="underline"?"underline":"line-through",underline:Zt==="normal"||Zt==="line-through"?"underline":"normal",lineThrough:Zt==="normal"||Zt==="underline"?"line-through":"normal"},ro={...jn,underline:!Zt,lineThrough:!Zt,fontWeight:Zt==="bold"?"regular":"bold"},Tn=Yt?ro[qt]:jn[qt];if(Fn){dn({type:"entry:table:set:cell:attr:new",payload:{attr:qt,value:Tn}});return}let bt=qt;Yt&&(bt=qt==="bold"?"boldType":qt==="strikethrough"?"line-through":qt),await dn({type:"entry:set:text:attr",payload:{attr:bt,value:Tn}})},"entry:set:richText:attr:fontWeight":async(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{fontFamily:dn,fontWeight:Ce,boldType:Pt}}=Et;if(dn){const At=(0,Ae.dA)(dn).map(no=>{let{value:mo}=no;return mo});Pt===1?!(0,Ae.GZ)(Ce)&&At.includes("bold")&&await Ot({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"bold"}}):await Ot({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"regular"}})}},"entry:paste:text:from:clipboard":(so,Et)=>{let{getState:Jt,dispatch:Ot}=so,{payload:{html:dn,pasteAtData:Ce}}=Et;if(MB.f.isPastingRichText=!0,dn===void 0)return;const Nn=new DOMParser().parseFromString(dn,"text/html"),At=Nn.querySelectorAll("[data-mb-type]");let on,no,mo,mn=null;if(At.length>0)on=(0,Me.lN)("COPIED__MB__WIDGET");else{var ht,Fn;mn=Nn.querySelector("[data-mb-text-flag]"),no=(ht=Nn.querySelector("[data-mb-richData]"))==null?void 0:ht.getAttribute("data-mb-richdata"),mo=(Fn=Nn.querySelector("[data-ref-style-text]"))==null?void 0:Fn.getAttribute("data-ref-style-text"),on=(0,ue.Ld)({html:dn,isClearStyle:mn===null})}const Yt=(0,Te.gu)({type:we.x.WRichText,attrs:{textV1:on,isRawText:mn===null}});if(no)try{const Gt=JSON.parse(no).richData;Yt.w=Gt.w,Yt.h=Gt.h,Yt.richTextV1=Gt.richTextV1,Yt.refStyles={text:mo}}catch(Gt){console.warn("clipboard-richData-error",Gt,{html:dn,richDataAttr:no})}Ce?(Yt.x=Ce.worldPos.x,Yt.y=Ce.worldPos.y,Ot({type:"entry:batch:create:items",payload:{data:[{items:[Yt],width:Yt.w,height:Yt.h}],sup:Ce.keyRndSup,offset:{top:0,left:0}}})):Ot({type:"entry:batch:create:items",payload:{data:[{items:[Yt],width:Yt.w,height:Yt.h}]}})},"entry:min:fontsize:issue":so=>{let{getState:Et,dispatch:Jt}=so;if(MB.f.inSharing||(0,ve.Fr)())return;const Ot=Et(),dn=Ot==null?void 0:Ot.ui.fixedLayout.preference;if(!dn||!dn.showFsWarning)return;const Ce=dn.theme;return MB.global.popupHelper.confirmAsync({title:I18N.railsLib.warning,desc:I18N.railsLib.font_size_issue,confirmText:I18N.railsLib.know_how,cancelText:I18N.railsLib.remind_not,isClose:!1,theme:Ce}).then(Pt=>{if(Pt)return(0,lt.JW)("/hc/articles/127","_blank","noreferrer");Jt({type:"entry:update:preference-data",payload:{show_fs_warning:!1}})})}};function rn(so){let{widgets:Et,dispatch:Jt,attr:Ot,value:dn,refVar:Ce,state:Pt,compressible:Nn=!0,fromUI:At,recordAvailableInheritTextAttrs:on,missFontHiKeySet:no}=so;sdkStore.combineMergeMark("text-attr");const mo=(0,k.c)(Pt),mn=(0,a.Mj)(Pt),ht=mo&&mo.key===Et[0].key;Ot==="fontFamily"&&(Et=Et.map(Bn=>({...Bn,hotAttr:{...Bn.hotAttr,"!ffVersion":1}})));const Fn=Et.filter(Bn=>Bn.hotAttr.type===we.x.WRichText);if(Fn.length>0&&Ot==="sizeType"){const Bn=(0,We.GP)(dn,Fn);Jt({type:"entry:widget:change",payload:{flatChgList:Bn}}),sdkStore.combineMerge("text-attr");return}const Yt=Et.filter(Bn=>we.Q.USE_TEXT_FONT_DIRECTION.includes(Bn.hotAttr.type));if(Ot==="fontDirection"){const Bn=(0,We.rA)(dn,Yt);Jt({type:"entry:widget:change",payload:{flatChgList:Bn}}),sdkStore.combineMerge("text-attr"),on==null||on(Bn.map(qt=>(0,it.Op)(qt.key)));return}if(Ot==="isClipText"){const Bn=Et.filter(qt=>we.Q.USE_CLIP_TEXT.includes(qt.hotAttr.type)).map(qt=>({key:qt.key,hotAttr:{richTextV1:{...qt.hotAttr.richTextV1,isClipText:dn}}}));Jt({type:"entry:widget:change",payload:{flatChgList:Bn}}),sdkStore.combineMerge("text-attr");return}if(ht){if((0,tt.AG)(mo)&&mn){const Bn=Zt=>{if((0,G.$B)(Zt)&&!["sizeType","listType","isClipText","paddingTuple"].includes(Ot)){const jn=(0,et.dM)(Zt.getCurrentContent()),ro=(0,Ut.qn)(jn);on==null||on([mo].map(Tn=>(0,it.Op)(Tn.key,{textV1:ro})))}};(0,Oe.l2)(mn,Ot,dn,Nn,Bn);const qt=mo.hotAttr.richTextV1;if(Ot==="fontSize"&&(0,Oe.ul)(mn)&&(qt==null?void 0:qt.fontSize)!==dn){var Gt;const Zt=(Gt=(0,We.zs)([mo],Ot,dn,At)[0])==null||(Gt=Gt.hotAttr.richTextV1)==null?void 0:Gt.lineHeight;Jt({type:"entry:widget:change",payload:{flatChgList:[{key:mo.key,hotAttr:{richTextV1:{...qt,fontSize:dn,...Zt&&{lineHeight:Zt}}}}]}})}else if(Ot==="lineHeight"){const Zt=Et.filter(jn=>{var ro;return((ro=jn.hotAttr.richTextV1)==null?void 0:ro["!lhVersion"])===1}).map(jn=>{const ro=sdkStore.getHotItem(jn.key);return{key:jn.key,hotAttr:{richTextV1:{...ro.hotAttr.richTextV1,"!lhVersion":3}}}});Zt.length>0&&Jt({type:"entry:widget:change",payload:{flatChgList:Zt}})}else if(Ot==="paraSpacing"){const Zt=Et.filter(jn=>jn.hotAttr["!psVersion"]===1).map(jn=>({key:jn.key,hotAttr:{"!psVersion":3}}));Zt.length>0&&Jt({type:"entry:widget:change",payload:{flatChgList:Zt}})}}}else{const Bn=Et.filter(So=>(0,tt.AG)(So)),qt=Et.filter(So=>!(0,tt.AG)(So)),{a:Zt,v:jn}=Jn(Ot,dn,"richText"),ro=(0,We.zs)(Bn,Zt,jn,At),{a:Tn,v:bt}=Jn(Ot,dn,"commonText"),Wt=O(Tn,bt,qt),wn=Wt.filter(So=>(0,rt.kY)(So.hotAttr));if(wn.length>0&&Ot==="prefillTextColorV0"){const So=D({attr:"prefillTextColorV0",value:dn,supAttr:"textInput",items:wn});Wt.forEach((Qt,Ln)=>{const Mn=So.find(Rt=>Rt.key===Qt.key);Mn&&(Wt[Ln]=Mn)})}const uo=ro.concat(Wt),In=(0,Vt.b4)(uo,Ot,Ce),Dn=uo.map(So=>{var Qt,Ln,Mn,Rt,Qe,En,qn;let{key:Hn,hotAttr:Yn}=So;const oo=In.find(Qo=>Qo.key===Hn),To=oo?oo.refVars:Yn.refVars,po=(Yn==null||(Qt=Yn.refStyles)==null?void 0:Qt.text)&&sdkStore.getHotItem(Yn==null||(Ln=Yn.refStyles)==null?void 0:Ln.text),Oo=po?{color:{...(Mn=Yn==null||(Rt=Yn.refStyles)==null?void 0:Rt.color)!=null?Mn:{},...(Qe=(En=po.hotAttr)==null||(En=En.refStyles)==null?void 0:En.color)!=null?Qe:{}},appear:Yn==null||(qn=Yn.refStyles)==null?void 0:qn.appear,text:""}:{...Yn.refStyles};return{key:Hn,hotAttr:{...Yn,refVars:To,refStyles:Oo}}});Jt({type:"entry:widget:change",payload:{flatChgList:Dn}}),["sizeType","listType","isClipText","paddingTuple"].includes(Ot)||on&&on(uo.map(So=>(0,it.Op)(So.key)))}sdkStore.combineMerge("text-attr")}const Lt=new Set,jt=so=>{let{widgets:Et,attrValueList:Jt,supAttr:Ot,widgetStore:dn,isTreeSelectNode:Ce}=so,Pt=Et.filter(no=>(0,tt.AG)(no)),Nn=Et.filter(no=>!(0,tt.AG)(no));for(const[no,mo]of Jt){const{a:mn,v:ht}=Jn(no,mo,"richText"),{a:Fn,v:Yt}=Jn(no,mo,"commonText");if(Pt=(0,We.zs)(Pt,mn,ht),Nn=l(Fn,Yt,Nn,Ce),Ot){const Gt=Ot.split("-"),Bn=Gt.length;for(const qt of Nn){let Zt=qt.hotAttr;if(Zt.type===we.x.WTree)Ce&&(Zt.selectNode[Fn]=Yt);else{var At;for(let jn=0;jn<Bn;jn++)Zt=Zt[Gt[jn]];(At=Zt)!=null&&At.textV0&&(Zt.textV0[Fn]=Yt)}}}}const on=Pt.concat(Nn);on.forEach(no=>Lt.add(no.key)),dn.triggerSnapshotChange(on)},mt=so=>{if(Lt.size===0)return;const Et=[...Lt.keys()];so.triggerSnapshotChange(Et),Lt.clear()},Jn=(so,Et,Jt)=>{let Ot=so,dn=Et;return Jt==="richText"?(so==="textColor"&&typeof Et=="number"&&(dn=(0,V.t0)(Et)),so==="textDecoration"&&(Et==="underline"&&(Ot="underline",dn=!0),Et==="line-through"&&(Ot="line-through",dn=!0),Et==="normal"&&(Ot="underline",dn=!1)),so==="italic"&&(Ot="fontStyle",dn=Et?"italic":"normal"),{a:Ot,v:dn}):Jt==="wMind"?(so==="textColor"&&typeof Et=="number"&&(dn=(0,V.t0)(Et)),so==="boldType"&&(Ot="bold"),so==="line-through"&&(Ot="strikethrough"),{a:Ot,v:dn}):(so==="textColor"&&typeof Et=="string"&&(dn=(0,ne.dT)(Et)),so==="underline"&&(Ot="textDecoration",dn=Et?"underline":"normal"),so==="line-through"&&(Ot="textDecoration",dn=Et?"line-through":"normal"),so==="fontStyle"&&(Ot="italic",dn=Et==="italic"),{a:Ot,v:dn})};function o(so,Et,Jt){const{hotAttr:Ot,hotAttr:{type:dn,textV0:Ce,textV1:Pt,textInput:Nn,refVars:At}}=so;let on,no;if(tt.VV.includes(dn)){const mn=(0,Oe.Qj)(Pt,Et);if(mn){var mo;on=((mo=(0,We.zs)([so],"textV1",mn,!1)[0])==null?void 0:mo.hotAttr)||{},on.refVars={...At,textV1:(0,Vt.JK)(At==null?void 0:At.textV1,"text",Jt)}}}else{dn===we.x.WMSelect||[we.x.WWebpage,we.x.WButton,we.x.WButtonSolid,we.x.WMTextInput,we.x.WMTextArea,we.x.WDropMenu,we.x.WElbow].includes(dn)?no=Et.join("\n"):no=(0,re.c1)(Et.join("\n"));let mn={textV0:{...Ce,text:no}};if(mn.refVars={...At,textV0:(0,Vt.JK)(At==null?void 0:At.textV0,"text",Jt)},[we.x.WMTextInput,we.x.WMTextArea].includes(dn)&&(mn={textInput:{...Nn,prefillTextV0:no}},mn.refVars={...At,textInput:(0,Vt.JK)(At==null?void 0:At.textInput,"prefillTextV0",Jt)}),on={...Ot,...mn},dn===we.x.WMTooltip){const ht=(0,Ge.EO)(on),Fn=Ot.y-Ot.h/2;on={...on,h:ht,y:Fn+ht/2}}}return{...so,hotAttr:on}}},70466:(eo,ot,i)=>{"use strict";i.d(ot,{F:()=>O,u:()=>J});var a=i(96986),k=i(21489),M=i(70933),P=i(78915),C=i(34860),q=i(77866),Y=i(67588);const J={"entry:comment:toggle":(l,D)=>{var m;let{getState:E,dispatch:f}=l,{payload:h}=D;const S=E(),V=(0,a.sI)(S);if((m=MB.user)!=null&&m.id){if(h!=null&&h.onlyView){const We=(0,M.z$)(S);if((We==null?void 0:We.comment_permission)==="off")return}f({type:"entry:vector:exit:edit"}),f({type:"entry:pencil:vector:exit:edit"}),V?(f({type:"entry:comment:disabled"}),f({type:"set:quick-create-widget",payload:{widget:null}})):(f({type:"entry:comment:enable",payload:h}),f({type:"set:quick-create-widget",payload:{widget:null}}))}},"entry:comment:enable":(l,D)=>{let{getState:m,dispatch:E}=l,{payload:f}=D;E({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!0}}),E({type:"entry:observe:dom:right-panel-width"}),f!=null&&f.onlyView&&(E(P.GO.toggleInspectMode(!1)),E(P.GO.toggleHandMode(!1)),E(P.GO.select([])))},"entry:comment:disabled":(l,D)=>{var m;let{getState:E,dispatch:f}=l,{payload:h}=D;const S=E(),V=S==null||(m=S.editor)==null||(m=m.state)==null||(m=m.mode)==null?void 0:m.previewViewMode,{noWigglingCommentCid:We}=h||{};if(!We){const re=O();if(re){f({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:re}});return}}f(P.GO.hoverItem("")),f({type:"entry:comment:clear"}),f({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!1}}),f({type:"entry:observe:dom:right-panel-width"}),V==="inspect"&&(f(P.GO.toggleHandMode(!1)),f(P.GO.toggleInspectMode(!0)),f(P.GO.select([])))},"entry:comment:clear":l=>{let{dispatch:D}=l;D({type:"comment:update:creatingComment",payload:{creatingComment:null}}),D({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),D({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),D({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),D({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:""}}),D({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),D({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),D({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),D({type:"entry:comment:benot-dragging"})},"entry:comment:init:item":(l,D)=>{let{getState:m,dispatch:E}=l,{payload:{type:f,curComment:h,message:S}}=D;if(f==="thread"){if(!rootSdk.cmtStore.getHotItem(h.screenCid)){const Te=(0,k.$S)(h.screenCid);rootSdk.cmtStore.updateHotItem(Te)}const{cid:We,x:re,y:ve,w:we,h:Ae,z:Oe,userInfo:Be,canvasVec2:tt,canvasCid:Xe,screenCid:ne,threadType:lt}=h,rt=(0,k.Ch)(ne,We,{message:S,x:re,y:ve,w:we,h:Ae,z:Oe,userInfo:Be,canvasCid:Xe,canvasVec2:tt,threadType:lt});rootSdk.cmtStore.updateHotItem(rt)}else if(f==="content"){const{cid:V}=h,We=(0,k.Bh)(V,{userInfo:MB.user,message:S});rootSdk.cmtStore.updateHotItem(We)}E({type:"entry:comment:rebuild:commentList"})},"entry:comment:del:item":(l,D)=>{let{getState:m,dispatch:E}=l,{payload:{cid:f}}=D;rootSdk.cmtStore.deleteHotItem(f),E({type:"entry:comment:rebuild:commentList"})},"entry:comment:update:item":(l,D)=>{let{getState:m,dispatch:E}=l,{payload:{cid:f,attr:h}}=D;const S=rootSdk.cmtStore.getHotItem(f),V={...S,hotAttr:{...S.hotAttr,...h}};rootSdk.cmtStore.updateHotItem(V),E({type:"entry:comment:rebuild:commentList"})},"entry:comment:create:esc":l=>{let{getState:D,dispatch:m}=l;const E=D(),f=(0,a.V8)(E),h=(0,a.QV)(E),S=(0,a.uX)(E);f&&h?(0,k.IP)(f,S)?m({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:f.cid}}):m({type:"entry:comment:cancel"}):m({type:"entry:comment:disabled"})},"enter:comment:shortcut:del":l=>{var D;let{getState:m,dispatch:E}=l;const f=m(),h=(0,a.Cb)(f),S=(0,a.EH)(f),V=(0,a.sI)(f),re=(0,a.Vr)(f).find(Oe=>Oe.cid===h),ve=(0,a.QV)(f),we=(0,Y.O4)(f);if(!(V||S)||ve||!re)return;if((0,k.ug)(re.userInfo).cid!==((D=MB.user)==null?void 0:D.cid)){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc,theme:we}).then(Oe=>{var Be;Oe&&(E({type:"entry:comment:delete",payload:{cid:h}}),(0,q.i4)({operation_type:q.nU.deleteInPanel,comment_type:q.ej[re.threadType],relation:!!h,operation_from:q.HI[(Be=f.editor)==null?void 0:Be.state.mode.viewType]||q.HI.edit}))})},"entry:comment:wigglingCommentCid":(l,D)=>{let{dispatch:m}=l,{payload:{wigglingCommentCid:E}}=D;m({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:E}}),m({type:"comment:update:activeCommentCid",payload:{activeCommentCid:E}}),E&&setTimeout(()=>{m({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:""}})},1e3)},"entry:comment:checked":(l,D)=>{let{getState:m,dispatch:E}=l,{payload:{cid:f,status:h}}=D;const S=m(),We=(0,a.Vr)(S).find(ve=>ve.cid===f);if(!We)return;const re={isCompleted:!We.isCompleted};E({type:"entry:comment:update:item",payload:{cid:f,attr:re}}),E({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}})}},O=()=>{var l,D;const m=(0,C.oK)()?(l=MB.webpackInterface.store)==null?void 0:l.getState():(D=MB.__store__)==null?void 0:D.getState();if(!m)return;const E=(0,a.QV)(m),f=(0,a.az)(m),h=(0,a.Ou)(m),S=(0,a.uX)(m),V=(0,a.V8)(m),We=(0,C.oK)()?(0,a.CI)(m):(0,a.AU)(m);let re;V&&E&&(0,k.IP)(V,S)&&(re=V.cid);const ve=We.find(we=>we.cid===f);if(ve&&E&&(0,k.IP)(ve,S)&&(re=ve.cid),h){const we=rootSdk.cmtStore.getHotItem(h),{hotAttr:{type:Ae}}=we;Ae==="cCmtContent"?re=we.sup:Ae==="cCmtThread"&&(re=h)}return re}},70526:(eo,ot,i)=>{"use strict";var a=i(24229);/*! iScroll v5.2.0-snapshot ~ (c) 2008-2017 Matteo Spinelli ~ http://cubiq.org/license */(function(k,M,P){let C="";var q=k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.mozRequestAnimationFrame||k.oRequestAnimationFrame||k.msRequestAnimationFrame||function(D){k.setTimeout(D,16.666666666666668)},Y=function(){var D={},m=M.createElement("div").style,E=function(){for(var S=["t","webkitT","MozT","msT","OT"],V,We=0,re=S.length;We<re;We++)if(V=S[We]+"ransform",V in m)return S[We].substr(0,S[We].length-1);return!1}();function f(S){return E===!1?!1:E===""?S:E+S.charAt(0).toUpperCase()+S.substr(1)}D.getTime=Date.now||function(){return new Date().getTime()},D.extend=function(S,V){for(var We in V)S[We]=V[We]},D.addEvent=function(S,V,We,re){S.addEventListener(V,We,!!re)},D.removeEvent=function(S,V,We,re){S.removeEventListener(V,We,!!re)},D.prefixPointerEvent=function(S){return k.MSPointerEvent?"MSPointer"+S.charAt(7).toUpperCase()+S.substr(8):S},D.momentum=function(S,V,We,re,ve,we){var Ae=S-V,Oe=P.abs(Ae)/We,Be,tt;return we=we===void 0?6e-4:we,Be=S+Oe*Oe/(2*we)*(Ae<0?-1:1),tt=Oe/we,Be<re?(Be=ve?re-ve/2.5*(Oe/8):re,Ae=P.abs(Be-S),tt=Ae/Oe):Be>0&&(Be=ve?ve/2.5*(Oe/8):0,Ae=P.abs(S)+Be,tt=Ae/Oe),{destination:P.round(Be),duration:tt}};var h=f("transform");return D.extend(D,{hasTransform:h!==!1,hasPerspective:f("perspective")in m,hasTouch:"ontouchstart"in k,hasPointer:!!(k.PointerEvent||k.MSPointerEvent),hasTransition:f("transition")in m}),D.isBadAndroid=function(){var S=k.navigator.appVersion;if(/Android/.test(S)&&!/Chrome\/\d/.test(S)){var V=S.match(/Safari\/(\d+.\d)/);return V&&typeof V=="object"&&V.length>=2?parseFloat(V[1])<535.19:!0}else return!1}(),D.extend(D.style={},{transform:h,transitionTimingFunction:f("transitionTimingFunction"),transitionDuration:f("transitionDuration"),transitionDelay:f("transitionDelay"),transformOrigin:f("transformOrigin"),touchAction:f("touchAction")}),D.hasClass=function(S,V){var We=new RegExp("(^|\\s)"+V+"(\\s|$)");return We.test(S.className)},D.addClass=function(S,V){if(!D.hasClass(S,V)){var We=S.className.split(" ");We.push(V),S.className=We.join(" ")}},D.removeClass=function(S,V){if(D.hasClass(S,V)){var We=new RegExp("(^|\\s)"+V+"(\\s|$)","g");S.className=S.className.replace(We," ")}},D.offset=function(S){for(var V=-S.offsetLeft,We=-S.offsetTop;S=S.offsetParent;)V-=S.offsetLeft,We-=S.offsetTop;return{left:V,top:We}},D.preventDefaultException=function(S,V){for(var We in V)if(V[We].test(S[We]))return!0;return!1},D.extend(D.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),D.extend(D.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(S){return S*(2-S)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(S){return P.sqrt(1- --S*S)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(S){var V=4;return(S=S-1)*S*((V+1)*S+V)+1}},bounce:{style:"",fn:function(S){return(S/=1)<1/2.75?7.5625*S*S:S<2/2.75?7.5625*(S-=1.5/2.75)*S+.75:S<2.5/2.75?7.5625*(S-=2.25/2.75)*S+.9375:7.5625*(S-=2.625/2.75)*S+.984375}},elastic:{style:"",fn:function(S){var V=.22,We=.4;return S===0?0:S==1?1:We*P.pow(2,-10*S)*P.sin((S-V/4)*(2*P.PI)/V)+1}}}),D.tap=function(S,V){var We=M.createEvent("Event");We.initEvent(V,!0,!0),We.pageX=S.pageX,We.pageY=S.pageY,S.target.dispatchEvent(We)},D.click=function(S){var V=S.target,We;/(SELECT|INPUT|TEXTAREA)/i.test(V.tagName)||(We=M.createEvent(k.MouseEvent?"MouseEvents":"Event"),We.initEvent("click",!0,!0),We.view=S.view||k,We.detail=1,We.screenX=V.screenX||0,We.screenY=V.screenY||0,We.clientX=V.clientX||0,We.clientY=V.clientY||0,We.ctrlKey=!!S.ctrlKey,We.altKey=!!S.altKey,We.shiftKey=!!S.shiftKey,We.metaKey=!!S.metaKey,We.button=0,We.relatedTarget=null,We._constructed=!0,V.dispatchEvent(We))},D.getTouchAction=function(S,V){var We="none";return S==="vertical"?We="pan-y":S==="horizontal"&&(We="pan-x"),V&&We!="none"&&(We+=" pinch-zoom"),We},D.getRect=function(S){if(S instanceof SVGElement){var V=S.getBoundingClientRect();return{top:V.top,left:V.left,width:V.width,height:V.height}}else return{top:S.offsetTop,left:S.offsetLeft,width:S.offsetWidth,height:S.offsetHeight}},D}();function J(D,m){this.wrapper=typeof D=="string"?M.querySelector(D):D,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!Y.hasPointer,disableTouch:Y.hasPointer||!Y.hasTouch,disableMouse:Y.hasPointer||Y.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:typeof k.onmousedown>"u"};for(var E in m)this.options[E]=m[E];this.translateZ=this.options.HWCompositing&&Y.hasPerspective?" translateZ(0)":"",this.options.useTransition=Y.hasTransition&&this.options.useTransition,this.options.useTransform=Y.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY,this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing=typeof this.options.bounceEasing=="string"?Y.ease[this.options.bounceEasing]||Y.ease.circular:this.options.bounceEasing,this.options.resizePolling=this.options.resizePolling===void 0?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),!this.options.useTransition&&!this.options.useTransform&&(/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative")),this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.options.probeType==3&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}J.prototype={version:"5.2.0-snapshot",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy"),this.destroyed=!0},_transitionEnd:function(D){D.target!=this.scroller||!this.isInTransition||(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(D){if(Y.eventType[D.type]!=1){var m;if(D.which?m=D.button:m=D.button<2?0:D.button==4?1:2,m!==0)return}if(!(!this.enabled||this.initiated&&Y.eventType[D.type]!==this.initiated)&&!(this.options.ignoreEventException&&this.options.ignoreEventException(D,this))){this.options.preventDefault&&!Y.isBadAndroid&&!Y.preventDefaultException(D.target,this.options.preventDefaultException)&&D.preventDefault();var E=D.touches?D.touches[0]:D,f;this.initiated=Y.eventType[D.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=Y.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,f=this.getComputedPosition(),this._translate(P.round(f.x),P.round(f.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,C="",this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=E.pageX,this.pointY=E.pageY,this._execEvent("beforeScrollStart")}},_move:function(D){if(!(!this.enabled||Y.eventType[D.type]!==this.initiated)){this.options.preventDefault&&D.preventDefault();var m=D.touches?D.touches[0]:D,E=m.pageX-this.pointX,f=m.pageY-this.pointY,h=Y.getTime(),S,V,We,re;if(this.pointX=m.pageX,this.pointY=m.pageY,this.distX+=E,this.distY+=f,We=P.abs(this.distX),re=P.abs(this.distY),!(h-this.endTime>300&&We<10&&re<10)){if(!this.directionLocked&&!this.options.freeScroll&&(We>re+this.options.directionLockThreshold?this.directionLocked="h":re>=We+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")D.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}f=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")D.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}E=0}E=this.hasHorizontalScroll?E:0,f=this.hasVerticalScroll?f:0,!(this.options.ignoreEventException&&this.options.ignoreEventException(D,this,{deltaX:E,deltaY:f}))&&(S=this.x+E,V=this.y+f,(S>0||S<this.maxScrollX)&&(S=this.options.bounce?this.x+E/3:S>0?0:this.maxScrollX),(V>0||V<this.maxScrollY)&&(V=this.options.bounce?this.y+f/3:V>0?0:this.maxScrollY),this.directionX=E>0?-1:E<0?1:0,this.directionY=f>0?-1:f<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(S,V),h-this.startTime>300&&(this.startTime=h,this.startX=this.x,this.startY=this.y,this.options.probeType==1&&this._execEvent("scroll")),this.options.probeType>1&&this._execEvent("scroll"))}}},_end:function(D){if(!(!this.enabled||Y.eventType[D.type]!==this.initiated)){this.options.preventDefault&&!Y.preventDefaultException(D.target,this.options.preventDefaultException)&&D.preventDefault();var m=D.changedTouches?D.changedTouches[0]:D,E,f,h=Y.getTime()-this.startTime,S=P.round(this.x),V=P.round(this.y),We=P.abs(S-this.startX),re=P.abs(V-this.startY),ve=0,we="";if(this.isInTransition=0,this.initiated=0,this.endTime=Y.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(S,V),!this.moved){this.options.tap&&Y.tap(D,this.options.tap),this.options.click&&Y.click(D),this._execEvent("scrollCancel");return}if(this._events.flick&&h<200&&We<100&&re<100){this._execEvent("flick");return}if(this.options.momentum&&h<300&&(E=this.hasHorizontalScroll?Y.momentum(this.x,this.startX,h,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:S,duration:0},f=this.hasVerticalScroll?Y.momentum(this.y,this.startY,h,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:V,duration:0},S=E.destination,V=f.destination,ve=P.max(E.duration,f.duration),this.isInTransition=1),this.options.snap){var Ae=this._nearestSnap(S,V);this.currentPage=Ae,ve=this.options.snapSpeed||P.max(P.max(P.min(P.abs(S-Ae.x),1e3),P.min(P.abs(V-Ae.y),1e3)),300),S=Ae.x,V=Ae.y,this.directionX=0,this.directionY=0,we=this.options.bounceEasing}if(S!=this.x||V!=this.y){(S>0||S<this.maxScrollX||V>0||V<this.maxScrollY)&&(we=Y.ease.quadratic),this.scrollTo(S,V,ve,we);return}this._execEvent("scrollEnd")}}},_resize:function(){var D=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){D.refresh()},this.options.resizePolling)},resetPosition:function(D){var m=this.x,E=this.y;return D=D||0,!this.hasHorizontalScroll||this.x>0?m=0:this.x<this.maxScrollX&&(m=this.maxScrollX),!this.hasVerticalScroll||this.y>0?E=0:this.y<this.maxScrollY&&(E=this.maxScrollY),m==this.x&&E==this.y?!1:(this.scrollTo(m,E,D,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){Y.getRect(this.wrapper),this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight;var D=Y.getRect(this.scroller);this.scrollerWidth=D.width,this.scrollerHeight=D.height,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,Y.hasPointer&&!this.options.disablePointer&&(this.wrapper.style[Y.style.touchAction]=Y.getTouchAction(this.options.eventPassthrough,!0),this.wrapper.style[Y.style.touchAction]||(this.wrapper.style[Y.style.touchAction]=Y.getTouchAction(this.options.eventPassthrough,!1))),this.wrapperOffset=Y.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(D,m){this._events[D]||(this._events[D]=[]),this._events[D].push(m)},off:function(D,m){if(this._events[D]){var E=this._events[D].indexOf(m);E>-1&&this._events[D].splice(E,1)}},_execEvent:function(D){if(this._events[D]){var m=0,E=this._events[D].length;if(E)for(;m<E;m++)this._events[D][m].apply(this,[].slice.call(arguments,1))}},scrollBy:function(D,m,E,f){D=this.x+D,m=this.y+m,E=E||0,this.scrollTo(D,m,E,f)},scrollTo:function(D,m,E,f){f=f||Y.ease.circular,this.isInTransition=this.options.useTransition&&E>0;var h=this.options.useTransition&&f.style;!E||h?(h&&(this._transitionTimingFunction(f.style),this._transitionTime(E)),this._translate(D,m)):this._animate(D,m,E,f.fn)},scrollToElement:function(D,m,E,f,h){if(D=D.nodeType?D:this.scroller.querySelector(D),!!D){var S=Y.offset(D);S.left-=this.wrapperOffset.left,S.top-=this.wrapperOffset.top;var V=Y.getRect(D),We=Y.getRect(this.wrapper);E===!0&&(E=P.round(V.width/2-We.width/2)),f===!0&&(f=P.round(V.height/2-We.height/2)),S.left-=E||0,S.top-=f||0,S.left=S.left>0?0:S.left<this.maxScrollX?this.maxScrollX:S.left,S.top=S.top>0?0:S.top<this.maxScrollY?this.maxScrollY:S.top,m=m==null||m==="auto"?P.max(P.abs(this.x-S.left),P.abs(this.y-S.top)):m,this.scrollTo(S.left,S.top,m,h)}},_transitionTime:function(D){if(this.options.useTransition){D=D||0;var m=Y.style.transitionDuration;if(m){if(this.scrollerStyle[m]=D+"ms",!D&&Y.isBadAndroid){this.scrollerStyle[m]="0.0001ms";var E=this;q(function(){E.scrollerStyle[m]==="0.0001ms"&&(E.scrollerStyle[m]="0s")})}if(this.indicators)for(var f=this.indicators.length;f--;)this.indicators[f].transitionTime(D)}}},_transitionTimingFunction:function(D){if(this.scrollerStyle[Y.style.transitionTimingFunction]=D,this.indicators)for(var m=this.indicators.length;m--;)this.indicators[m].transitionTimingFunction(D)},_translate:function(D,m){if(this.options.useTransform?this.scrollerStyle[Y.style.transform]="translate("+D+"px,"+m+"px)"+this.translateZ:(D=P.round(D),m=P.round(m),this.scrollerStyle.left=D+"px",this.scrollerStyle.top=m+"px"),this.x=D,this.y=m,this.indicators)for(var E=this.indicators.length;E--;)this.indicators[E].updatePosition()},_initEvents:function(D){var m=D?Y.removeEvent:Y.addEvent,E=this.options.bindToWrapper?this.wrapper:k;m(k,"orientationchange",this),m(k,"resize",this),this.options.click&&m(this.wrapper,"click",this,!0),this.options.disableMouse||(m(this.wrapper,"mousedown",this),m(E,"mousemove",this),m(E,"mousecancel",this),m(E,"mouseup",this)),Y.hasPointer&&!this.options.disablePointer&&(m(this.wrapper,Y.prefixPointerEvent("pointerdown"),this),m(E,Y.prefixPointerEvent("pointermove"),this),m(E,Y.prefixPointerEvent("pointercancel"),this),m(E,Y.prefixPointerEvent("pointerup"),this)),Y.hasTouch&&!this.options.disableTouch&&(m(this.wrapper,"touchstart",this),m(E,"touchmove",this),m(E,"touchcancel",this),m(E,"touchend",this)),m(this.scroller,"transitionend",this),m(this.scroller,"webkitTransitionEnd",this),m(this.scroller,"oTransitionEnd",this),m(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var D=k.getComputedStyle(this.scroller,null),m,E;return this.options.useTransform?(D=D[Y.style.transform].split(")")[0].split(", "),m=+(D[12]||D[4]),E=+(D[13]||D[5])):(m=+D.left.replace(/[^-\d.]/g,""),E=+D.top.replace(/[^-\d.]/g,"")),{x:m,y:E}},_initIndicators:function(){var D=this.options.interactiveScrollbars,m=typeof this.options.scrollbars!="string",E=[],f,h=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(f={el:O("v",D,this.options.scrollbars),interactive:D,defaultScrollbars:!0,customStyle:m,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(f.el),E.push(f)),this.options.scrollX&&(f={el:O("h",D,this.options.scrollbars),interactive:D,defaultScrollbars:!0,customStyle:m,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(f.el),E.push(f))),this.options.indicators&&(E=E.concat(this.options.indicators));for(var S=E.length;S--;)this.indicators.push(new l(this,E[S]));function V(We){if(h.indicators)for(var re=h.indicators.length;re--;)We.call(h.indicators[re])}this.options.fadeScrollbars&&(this.on("scrollEnd",function(){V(function(){this.fade()})}),this.on("scrollCancel",function(){V(function(){this.fade()})}),this.on("scrollStart",function(){V(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){V(function(){this.fade(1,!0)})})),this.on("refresh",function(){V(function(){this.refresh()})}),this.on("destroy",function(){V(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){Y.addEvent(this.wrapper,"wheel",this),Y.addEvent(this.wrapper,"mousewheel",this),Y.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,Y.removeEvent(this.wrapper,"wheel",this),Y.removeEvent(this.wrapper,"mousewheel",this),Y.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(D){if(this.enabled){if(D.metaKey||D.ctrlKey||D.buttons===4)return!0;if(!(this.options.ignoreEventException&&this.options.ignoreEventException(D,this,{deltaX:D.deltaX,deltaY:D.deltaY}))){var m,E,f,h,S=this;if(this.wheelTimeout===void 0&&S._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){S.options.snap||S._execEvent("scrollEnd"),S.wheelTimeout=void 0},400),"deltaX"in D)D.deltaMode===1?(m=-D.deltaX*this.options.mouseWheelSpeed,E=-D.deltaY*this.options.mouseWheelSpeed):(m=-D.deltaX,E=-D.deltaY);else if("wheelDeltaX"in D)m=D.wheelDeltaX/120*this.options.mouseWheelSpeed,E=D.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in D)m=E=D.wheelDelta/120*this.options.mouseWheelSpeed;else if("detail"in D)m=E=-D.detail/3*this.options.mouseWheelSpeed;else return;if(m*=this.options.invertWheelDirection,E*=this.options.invertWheelDirection,this.options.snap){f=this.currentPage.pageX,h=this.currentPage.pageY,m>0?f--:m<0&&f++,E>0?h--:E<0&&h++,this.goToPage(f,h);return}f=this.x+P.round(this.hasHorizontalScroll?m:0),h=this.y+P.round(this.hasVerticalScroll?E:0),this.directionX=m>0?-1:m<0?1:0,this.directionY=E>0?-1:E<0?1:0,f>0?f=0:f<this.maxScrollX&&(f=this.maxScrollX),h>0?h=0:h<this.maxScrollY&&(h=this.maxScrollY),this.scrollTo(f,h,0),this.options.probeType>1&&this._execEvent("scroll")}}},_initSnap:function(){this.currentPage={},typeof this.options.snap=="string"&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var D=0,m,E=0,f,h,S,V=0,We,re=this.options.snapStepX||this.wrapperWidth,ve=this.options.snapStepY||this.wrapperHeight,we,Ae;if(this.pages=[],!(!this.wrapperWidth||!this.wrapperHeight||!this.scrollerWidth||!this.scrollerHeight)){if(this.options.snap===!0)for(h=P.round(re/2),S=P.round(ve/2);V>-this.scrollerWidth;){for(this.pages[D]=[],m=0,We=0;We>-this.scrollerHeight;)this.pages[D][m]={x:P.max(V,this.maxScrollX),y:P.max(We,this.maxScrollY),width:re,height:ve,cx:V-h,cy:We-S},We-=ve,m++;V-=re,D++}else for(we=this.options.snap,m=we.length,f=-1;D<m;D++)Ae=Y.getRect(we[D]),(D===0||Ae.left<=Y.getRect(we[D-1]).left)&&(E=0,f++),this.pages[E]||(this.pages[E]=[]),V=P.max(-Ae.left,this.maxScrollX),We=P.max(-Ae.top,this.maxScrollY),h=V-P.round(Ae.width/2),S=We-P.round(Ae.height/2),this.pages[E][f]={x:V,y:We,width:Ae.width,height:Ae.height,cx:h,cy:S},V>this.maxScrollX&&E++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=P.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=P.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var D=this.options.snapSpeed||P.max(P.max(P.min(P.abs(this.x-this.startX),1e3),P.min(P.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,D)})},_nearestSnap:function(D,m){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var E=0,f=this.pages.length,h=0;if(P.abs(D-this.absStartX)<this.snapThresholdX&&P.abs(m-this.absStartY)<this.snapThresholdY)return this.currentPage;for(D>0?D=0:D<this.maxScrollX&&(D=this.maxScrollX),m>0?m=0:m<this.maxScrollY&&(m=this.maxScrollY);E<f;E++)if(D>=this.pages[E][0].cx){D=this.pages[E][0].x;break}for(f=this.pages[E].length;h<f;h++)if(m>=this.pages[0][h].cy){m=this.pages[0][h].y;break}return E==this.currentPage.pageX&&(E+=this.directionX,E<0?E=0:E>=this.pages.length&&(E=this.pages.length-1),D=this.pages[E][0].x),h==this.currentPage.pageY&&(h+=this.directionY,h<0?h=0:h>=this.pages[0].length&&(h=this.pages[0].length-1),m=this.pages[0][h].y),{x:D,y:m,pageX:E,pageY:h}},goToPage:function(D,m,E,f){f=f||this.options.bounceEasing,D>=this.pages.length?D=this.pages.length-1:D<0&&(D=0),m>=this.pages[D].length?m=this.pages[D].length-1:m<0&&(m=0);var h=this.pages[D][m].x,S=this.pages[D][m].y;E=E===void 0?this.options.snapSpeed||P.max(P.max(P.min(P.abs(h-this.x),1e3),P.min(P.abs(S-this.y),1e3)),300):E,this.currentPage={x:h,y:S,pageX:D,pageY:m},this.scrollTo(h,S,E,f)},next:function(D,m){var E=this.currentPage.pageX,f=this.currentPage.pageY;E++,E>=this.pages.length&&this.hasVerticalScroll&&(E=0,f++),this.goToPage(E,f,D,m)},prev:function(D,m){var E=this.currentPage.pageX,f=this.currentPage.pageY;E--,E<0&&this.hasVerticalScroll&&(E=0,f--),this.goToPage(E,f,D,m)},_initKeys:function(D){var m={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},E;if(typeof this.options.keyBindings=="object")for(E in this.options.keyBindings)typeof this.options.keyBindings[E]=="string"&&(this.options.keyBindings[E]=this.options.keyBindings[E].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(E in m)this.options.keyBindings[E]=this.options.keyBindings[E]||m[E];Y.addEvent(k,"keydown",this),this.on("destroy",function(){Y.removeEvent(k,"keydown",this)})},_key:function(D){if(this.enabled){var m=this.options.snap,E=m?this.currentPage.pageX:this.x,f=m?this.currentPage.pageY:this.y,h=Y.getTime(),S=this.keyTime||0,V=.25,We;switch(this.options.useTransition&&this.isInTransition&&(We=this.getComputedPosition(),this._translate(P.round(We.x),P.round(We.y)),this.isInTransition=!1),this.keyAcceleration=h-S<200?P.min(this.keyAcceleration+V,50):0,D.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?E+=m?1:this.wrapperWidth:f+=m?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?E-=m?1:this.wrapperWidth:f-=m?1:this.wrapperHeight;break;case this.options.keyBindings.end:E=m?this.pages.length-1:this.maxScrollX,f=m?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:E=0,f=0;break;case this.options.keyBindings.left:E+=m?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:f+=m?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:E-=m?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:f-=m?1:5+this.keyAcceleration>>0;break;default:return}if(m){this.goToPage(E,f);return}E>0?(E=0,this.keyAcceleration=0):E<this.maxScrollX&&(E=this.maxScrollX,this.keyAcceleration=0),f>0?(f=0,this.keyAcceleration=0):f<this.maxScrollY&&(f=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(E,f,0),this.keyTime=h}},_animate:function(D,m,E,f){var h=this,S=this.x,V=this.y,We=Y.getTime(),re=We+E;const ve=(0,a.cF)();C=ve;function we(){if(h.destroyed){h._execEvent("scrollEnd");return}if(ve!==C){h._execEvent("scrollEnd");return}var Ae=Y.getTime(),Oe,Be,tt;if(Ae>=re){C="",h.isAnimating=!1,h._translate(D,m),h.resetPosition(h.options.bounceTime)||h._execEvent("scrollEnd");return}Ae=(Ae-We)/E,tt=f(Ae),Oe=(D-S)*tt+S,Be=(m-V)*tt+V,h._translate(Oe,Be),h.isAnimating&&q(we),h.options.probeType==3&&h._execEvent("scroll")}this.isAnimating=!0,we()},handleEvent:function(D){switch(D.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(D);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(D);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(D);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(D);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(D);break;case"keydown":this._key(D);break;case"click":this.enabled&&!D._constructed&&(D.preventDefault(),D.stopPropagation());break}}};function O(D,m,E){var f=M.createElement("div"),h=M.createElement("div");return E===!0&&(f.style.cssText="position:absolute;z-index:9999",h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),h.className="iScrollIndicator",D=="h"?(E===!0&&(f.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",h.style.height="100%"),f.className="iScrollHorizontalScrollbar"):(E===!0&&(f.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",h.style.width="100%"),f.className="iScrollVerticalScrollbar"),f.style.cssText+=";overflow:hidden",m||(f.style.pointerEvents="none"),f.appendChild(h),f}function l(D,m){this.wrapper=typeof m.el=="string"?M.querySelector(m.el):m.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=D,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var E in m)this.options[E]=m[E];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(Y.addEvent(this.indicator,"touchstart",this),Y.addEvent(k,"touchend",this)),this.options.disablePointer||(Y.addEvent(this.indicator,Y.prefixPointerEvent("pointerdown"),this),Y.addEvent(k,Y.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(Y.addEvent(this.indicator,"mousedown",this),Y.addEvent(k,"mouseup",this))),this.options.fade){this.wrapperStyle[Y.style.transform]=this.scroller.translateZ;var f=Y.style.transitionDuration;if(!f)return;this.wrapperStyle[f]=Y.isBadAndroid?"0.0001ms":"0ms";var h=this;Y.isBadAndroid&&q(function(){h.wrapperStyle[f]==="0.0001ms"&&(h.wrapperStyle[f]="0s")}),this.wrapperStyle.opacity="0"}}l.prototype={handleEvent:function(D){switch(D.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(D);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(D);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(D);break}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(Y.removeEvent(this.indicator,"touchstart",this),Y.removeEvent(this.indicator,Y.prefixPointerEvent("pointerdown"),this),Y.removeEvent(this.indicator,"mousedown",this),Y.removeEvent(k,"touchmove",this),Y.removeEvent(k,Y.prefixPointerEvent("pointermove"),this),Y.removeEvent(k,"mousemove",this),Y.removeEvent(k,"touchend",this),Y.removeEvent(k,Y.prefixPointerEvent("pointerup"),this),Y.removeEvent(k,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(D){var m=D.touches?D.touches[0]:D;D.preventDefault(),D.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=m.pageX,this.lastPointY=m.pageY,this.startTime=Y.getTime(),this.options.disableTouch||Y.addEvent(k,"touchmove",this),this.options.disablePointer||Y.addEvent(k,Y.prefixPointerEvent("pointermove"),this),this.options.disableMouse||Y.addEvent(k,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(D){var m=D.touches?D.touches[0]:D,E,f,h,S,V=Y.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,E=m.pageX-this.lastPointX,this.lastPointX=m.pageX,f=m.pageY-this.lastPointY,this.lastPointY=m.pageY,h=this.x+E,S=this.y+f,this._pos(h,S),this.scroller.options.probeType==1&&V-this.startTime>300?(this.startTime=V,this.scroller._execEvent("scroll")):this.scroller.options.probeType>1&&this.scroller._execEvent("scroll"),D.preventDefault(),D.stopPropagation()},_end:function(D){if(this.initiated){if(this.initiated=!1,D.preventDefault(),D.stopPropagation(),Y.removeEvent(k,"touchmove",this),Y.removeEvent(k,Y.prefixPointerEvent("pointermove"),this),Y.removeEvent(k,"mousemove",this),this.scroller.options.snap){var m=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),E=this.options.snapSpeed||P.max(P.max(P.min(P.abs(this.scroller.x-m.x),1e3),P.min(P.abs(this.scroller.y-m.y),1e3)),300);(this.scroller.x!=m.x||this.scroller.y!=m.y)&&(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=m,this.scroller.scrollTo(m.x,m.y,E,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(D){D=D||0;var m=Y.style.transitionDuration;if(m&&(this.indicatorStyle[m]=D+"ms",!D&&Y.isBadAndroid)){this.indicatorStyle[m]="0.0001ms";var E=this;q(function(){E.indicatorStyle[m]==="0.0001ms"&&(E.indicatorStyle[m]="0s")})}},transitionTimingFunction:function(D){this.indicatorStyle[Y.style.transitionTimingFunction]=D},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(Y.addClass(this.wrapper,"iScrollBothScrollbars"),Y.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(Y.removeClass(this.wrapper,"iScrollBothScrollbars"),Y.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px")),Y.getRect(this.wrapper),this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=P.max(P.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=P.max(P.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var D=this.options.listenX&&P.round(this.sizeRatioX*this.scroller.x)||0,m=this.options.listenY&&P.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(D<this.minBoundaryX?(this.options.shrink=="scale"&&(this.width=P.max(this.indicatorWidth+D,8),this.indicatorStyle.width=this.width+"px"),D=this.minBoundaryX):D>this.maxBoundaryX?this.options.shrink=="scale"?(this.width=P.max(this.indicatorWidth-(D-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",D=this.maxPosX+this.indicatorWidth-this.width):D=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),m<this.minBoundaryY?(this.options.shrink=="scale"&&(this.height=P.max(this.indicatorHeight+m*3,8),this.indicatorStyle.height=this.height+"px"),m=this.minBoundaryY):m>this.maxBoundaryY?this.options.shrink=="scale"?(this.height=P.max(this.indicatorHeight-(m-this.maxPosY)*3,8),this.indicatorStyle.height=this.height+"px",m=this.maxPosY+this.indicatorHeight-this.height):m=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=D,this.y=m,this.scroller.options.useTransform?this.indicatorStyle[Y.style.transform]="translate("+D+"px,"+m+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=D+"px",this.indicatorStyle.top=m+"px")},_pos:function(D,m){D<0?D=0:D>this.maxPosX&&(D=this.maxPosX),m<0?m=0:m>this.maxPosY&&(m=this.maxPosY),D=this.options.listenX?P.round(D/this.sizeRatioX):this.scroller.x,m=this.options.listenY?P.round(m/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(D,m)},fade:function(D,m){if(!(m&&!this.visible)){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var E=D?250:500,f=D?0:300;D=D?"1":"0",this.wrapperStyle[Y.style.transitionDuration]=E+"ms",this.fadeTimeout=setTimeout((function(h){this.wrapperStyle.opacity=h,this.visible=+h}).bind(this,D),f)}}},J.utils=Y,k.IScroll=J})(window,document,Math)},70629:(eo,ot,i)=>{"use strict";i.d(ot,{j:()=>We});var a=i(38502),k=i(53732),M=i.n(k),P=i(88656),C=i(29303),q=i(82066),Y=i(36689),J=i(95549),O=i(17307),l=i(83199),D=i(58053),m=i(67787),E=i(15400);const f=m.Ay.div.withConfig({displayName:"styles__StyledFullScreenMode",componentId:"sc-1a8kzq2-0"})(["&{position:relative;",";border-radius:4px;transition:all 0.2s ease-in-out;cursor:pointer;}&.isEmbedV2Preview.NotFullScreen{.fullscreen{width:28px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}&.isCommunityPreview{.fullscreen .svg-icon{color:#666;}}.fullscreen{position:relative;display:flex;justify-content:center;width:38px;height:32px;.svg-icon{width:32px;height:32px;}}&:hover&:not(.active){background-color:",";}&.active{background-color:",";}"],E.om,re=>re.theme.color_btn_secondary_active,re=>re.theme.color_btn_secondary_active);var h=i(72214);class S extends a.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"handleFullScreen",async()=>{const{isFullScreenMode:ve,dispatch:we}=this.props;ve?(await D.A.exit(),we({type:"entry:exit:fill-screen-mode"})):we({type:"entry:enter:full-screen-mode"})})}render(){const{isFullScreenMode:ve,isEmbedV2:we,isCommunityPreview:Ae}=this.props,Oe=ve?"design/collapse_screen":"design/fullscreen";return(0,h.jsx)(f,{className:M()("fullscreen-box",{isEmbedV2Preview:we},{NotFullScreen:!ve},{isCommunityPreview:Ae}),children:(0,h.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,h.jsx)("div",{className:"fullscreen-wrapper",children:(0,h.jsx)("div",{className:"fullscreen",onClick:this.handleFullScreen,children:(0,h.jsx)(O.C,{name:Oe})})})})})}}(0,J.A)(S,"defaultProps",{isFullScreenMode:!1});const V=m.Ay.div.withConfig({displayName:"styles__StyledOperationBox",componentId:"sc-1448df2-0"})(["position:absolute;height:36px;border-radius:4px;box-shadow:0px 9px 28px rgba(0,0,0,0.05);display:flex;flex-direction:row;background:#fff;top:16px;right:16px;pointer-events:auto;align-items:center;padding:4px 6px 4px 4px;transition:right 0.2s ease-in-out;&.dark{background-color:#252626;svg{color:#F2F4F5 !important;}.communityZoomBox.isComboPreview{border:1px solid #454647;}& > div.divider{border-left:1px solid #454647;}}&.isCommunityComboPreview{right:24px;&.isPreviewOnly{.save-tips-dropdown{margin-right:10px;}}}.save-tips-dropdown.isCommunity .toolbar-icon-item{width:36px;height:28px;margin-top:1px;svg{color:#666666;}}& > div.divider{border-left:1px solid #e5e5e5;margin:0 6px;height:20px;}.fullscreen{width:36px;height:28px;align-items:center;.fullIcon{width:36px;height:28px;.svg-icon{width:32px;height:32px;color:#666666;}}}span.divider{margin-left:8px;height:20px;border-right:1px solid #e5e5e5;}.zoom-control{&.zoom-in{width:36px;height:28px;svg{path{stroke:#666666;}}}&.zoom-out{width:36px;height:28px;svg{path{stroke:#666666;}}}&.disabled{svg{path{stroke:#ccc;}}}}.communityZoomBox{width:71px;height:28px;&.isComboPreview{border:1px solid #E5E5E5;border-radius:3px;}.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}.mac,.others{top:120%;}}button.zoom-options-panel-toggle{width:47px;height:28px;border-radius:4px;margin:0 4px;text-align:center;&:hover{background-color:",";}}"],re=>re.theme.color_btn_secondary_active);class We extends a.PureComponent{render(){const{isReadOnly:ve,isFullScreenMode:we,scale:Ae,theme:Oe,isEmbedV2Preview:Be,isCommunityPreview:tt,isCommunityComboPreview:Xe,handleZoomIn:ne,handleZoomOut:lt,handleZoomInitialScale:rt,handleZoomSpecifiedScale:Te,handleZoomSelection:Ge,handleToggleFullScreenMode:ue,dispatch:Me}=this.props;return(0,h.jsxs)(V,{className:M()("operation-box",{isCommunityComboPreview:Xe},{isPreviewOnly:!ve},""+Oe),children:[ve?(0,h.jsx)(P.X,{}):(0,h.jsx)(C.A,{}),!Xe&&!ve&&(0,h.jsx)("div",{className:"divider"}),ve?(0,h.jsx)(Y.A,{scale:Ae,fullScreenMode:we,isShowZoomSelection:!1,isEmbedV2Preview:Be,onZoomIn:ne,onZoomOut:lt,onZoomInitialScale:rt,onZoomSpecifiedScale:Te,onZoomSelection:Ge,dispatch:Me}):(0,h.jsx)(q.Pd,{onlyPreview:!ve,className:M()("communityZoomBox",{isComboPreview:Xe&&!ve}),scale:Ae,isShowZoomSelection:!1,onZoomIn:ne,onZoomOut:lt,onZoomInitialScale:rt,onZoomSpecifiedScale:Te,onZoomSelection:Ge}),!Xe&&!ve&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(S,{dispatch:Me,isFullScreenMode:we,isEmbedV2:Be,isCommunityPreview:tt})]})]})}}},70829:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"4.5",y:"4.5",width:"55",height:"55",rx:"27.5",fill:"white",stroke:"#8B8C8F"}))})},71123:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>uo});var a={};i.r(a),i.d(a,{basketScrollLeft:()=>Et,basketScrollTop:()=>so,zoomQuickPreview:()=>o});var k=i(18381),M=i(12211),P=i(16454),C=i(95549),q=i(38502),Y=i(53732),J=i.n(Y),O=i(35639),l=i(58315),D=i(15186),m=i(86769),E=i(69212),f=i(77670),h=i(72214);const S=(0,q.memo)(In=>{let{overlayEntry:Dn}=In;const{activeCanvasKey:So,activePageKey:Qt}=(0,E.f)(),{idx:Ln,tick:Mn,isOverlayIn:Rt,transition:Qe,targetRBPageKey:En,targetOverlayKey:qn,overlayRelativePosX:Hn,overlayRelativePosY:Yn,addBackdrop:oo,backdropColor:To,backdropFilterBlurRadius:po,closeWhenClickingOutside:Oo}=Dn,Qo=(0,q.useRef)(null),ea=(0,q.useRef)(null),_n=(0,k.wA)(),Un=(0,q.useRef)();Un.current=Qe.callback;const cn=Qe.name==="auto",nn=sdkStore.getHotItem(qn);if(!nn)return null;const Zn=m.A.getOverlayRunnerViewport(Qt,So);if(!Zn)return null;const ho=()=>{Oo&&_n({type:"entry:runner:close:overlay"})};return(0,h.jsxs)(f.Tt,{id:qn+Ln,className:"overlay-runner",zIndex:Ln,transitionDuration:Qe.duration,destXY:{x:Hn,y:Yn},overlayWH:{w:nn.hotAttr.w,h:nn.hotAttr.h},overlayRunnerViewportBR:{r:Zn.right,b:Zn.bottom},addBackdrop:oo,backdropColor:(0,D.t0)(To),backdropFilterBlurRadius:po,children:[(0,h.jsx)(l.A,{in:Rt,appear:!0,timeout:Qe.duration,nodeRef:Qo,className:Qe.name+" overlay",onEntered:Qe.callback,children:(0,h.jsx)("div",{ref:Qo,children:(0,h.jsx)(O.A,{pageKey:En,canvasKey:qn,transition:Qe,isShow:!0,style:{},isActive:!0,onTransitionEnd:cn?Qe.callback:void 0})})},Mn),(0,h.jsx)(l.A,{in:Rt,appear:!0,nodeRef:ea,timeout:Qe.duration,className:"fade overlay-backdrop",children:(0,h.jsx)("div",{ref:ea,onClick:ho})})]})}),V=()=>{const Dn=(0,k.d4)(P.mf).overlayStack;return Dn.length===0?null:(0,h.jsx)(f.wJ,{children:Dn.map(So=>(0,h.jsx)(S,{overlayEntry:So},So.idx))})};var We=i(62280),re=i(20089),ve=i(98915);const we=(In,Dn)=>{const So=In.children.filter(Ln=>{if(Ln.widget.fixPosTo!=="none")return!1;const Mn=Widget.USE_CLIP_TEXT.includes(Ln.widget.type)?calcRichTextedLocalBound(Ln.key,Ln.widgetStore.sdkStore):Ln.widget.type==="wWrap"?calcRichTextedWrapLocalBound(Ln.key,Ln.widgetStore.sdkStore):Ln.widgetStore.sdkStore.getLocalBound(Ln.key);return fromWBoundToAABB(Mn)[1]<Dn}),Qt=In.dup();return Qt.children=So,Qt},Ae=(In,Dn,So)=>{const Qt=In.children.filter(Mn=>{if(Mn.widget.fixPosTo!=="none")return!1;const Rt=Widget.USE_CLIP_TEXT.includes(Mn.widget.type)?calcRichTextedLocalBound(Mn.key,Mn.widgetStore.sdkStore):Mn.widget.type==="wWrap"?calcRichTextedWrapLocalBound(Mn.key,Mn.widgetStore.sdkStore):Mn.widgetStore.sdkStore.getLocalBound(Mn.key),Qe=fromWBoundToAABB(Rt);return Dn<Qe[3]+So}),Ln=In.dup();return Ln.children=Qt,Ln},Oe=(In,Dn)=>{if(!In||!Dn||!sdkStore.isActiveKey(Dn))return{};const So=sdkStore.getHotItem(Dn),{hotAttr:{stickyHeaderHeight:Qt,stickyFooterHeight:Ln,h:Mn}}=So,Rt=fromWBoundToAABB(In),Qe=Qt>0&&Rt[1]<Qt,En=Ln>0&&Mn<Rt[3]+Ln;return{isFixedOnHeader:Qe,isFixedOnFooter:En}},Be=(In,Dn)=>!In||!Dn||!sdkStore.isActiveKey(In)||!sdkStore.isActiveKey(Dn)?{}:Oe(sdkStore.getRelocateLocalBound(In,Dn),Dn),tt=["leftmenu","rightmenu","leftdrawer","rightdrawer"],Xe=(In,Dn)=>In==="none"?Dn<1?["","none"]:["none",""]:Dn<1?["",""]:[tt.includes(In)?"":"none",""],ne=["leftout","rightout","topout","popout","slideleft2-reverse","slideright2-reverse","topin-reverse","popin-reverse","leftmenu","rightmenu","leftdrawer-reverse","rightdrawer-reverse"],lt=In=>ne.includes(In)?[3,2]:[2,3],rt={boxShadow:"0 0 8px #aaa",borderLeft:"1px solid #bbb"},Te={boxShadow:"0 0 8px #aaa",borderRight:"1px solid #bbb"},Ge={boxShadow:"0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22), 0 0 10px 1000px rgba(0, 0, 0, 0.2)"},ue=(In,Dn)=>{switch(In){case"leftmenu":return[rt,null];case"leftmenu-reverse":return Dn<1?[null,rt]:[null,null];case"rightmenu":return[Te,null];case"rightmenu-reverse":return Dn<1?[null,Te]:[null,null];case"leftdrawer":case"rightdrawer":return[null,Ge];case"leftdrawer-reverse":case"rightdrawer-reverse":return Dn<1?[Ge,null]:[null,null];default:return[null,null]}},Me=(In,Dn,So)=>{const Qt=Dn*So;switch(In){case"none":return["none","none"];case"leftmenu":return["translateX("+(0+Qt)+"%)","translateX("+(-100+Qt)+"%)"];case"leftmenu-reverse":return["translateX("+(-100+So-Qt)+"%)","translateX("+(0+So-Qt)+"%)"];case"rightmenu":return["translateX("+(0-Qt)+"%)","translateX("+(100-Qt)+"%)"];case"rightmenu-reverse":return["translateX("+(100-So+Qt)+"%)","translateX("+(0-So+Qt)+"%)"];case"leftdrawer":return["none","translateX("+(-100+Qt)+"%)"];case"leftdrawer-reverse":return["translateX("+(-100+So-Qt)+"%)","none"];case"rightdrawer":return["none","translateX("+(100-Qt)+"%)"];case"rightdrawer-reverse":return["translateX("+(100-So+Qt)+"%)","none"];case"slideright":return["translateX("+Qt+"%)","translateX("+(-100+Qt)+"%)"];case"slideleft":return["translateX("+(0-Qt)+"%)","translateX("+(100-Qt)+"%)"];case"slidetop":return["translateY("+Qt+"%)","translateY("+(-100+Qt)+"%)"];case"slidebottom":return["translateY("+(0-Qt)+"%)","translateY("+(100-Qt)+"%)"];case"slideleft2":return["none","translateX("+(-100+Qt)+"%)"];case"slideright2":return["none","translateX("+(100-Qt)+"%)"];case"topin":return["none","translateY("+(-100+Qt)+"%)"];case"popin":return["none","translateY("+(100-Qt)+"%)"];case"leftout":return["translateX("+(0-Qt)+"%)","none"];case"rightout":return["translateX("+Qt+"%)","none"];case"topout":return["translateY("+(0-Qt)+"%)","none"];case"popout":return["translateY("+Qt+"%)","none"];default:return console.error("\u53D1\u73B0\u672A\u77E5\u52A8\u753B\u540D\u79F0: "+In),["none","none"]}},Ze=function(In,Dn,So){if(So===void 0&&(So=100),In==="auto"||In==="none")return[{display:"none"},{display:""}];const[Qt,Ln]=Xe(In,Dn),[Mn,Rt]=lt(In),[Qe,En]=ue(In,Dn),[qn,Hn]=Me(In,Dn,So);return[{display:Qt,...Qe,zIndex:Mn,transform:qn},{display:Ln,...En,zIndex:Rt,transform:Hn}]},fe=In=>{switch(In){case"none":return"none";case"auto":return"auto";case"leftmenu":return"leftmenu-reverse";case"rightmenu":return"rightmenu-reverse";case"leftdrawer":return"leftdrawer-reverse";case"rightdrawer":return"rightdrawer-reverse";case"slideright":return"slideleft";case"slideleft":return"slideright";case"slidetop":return"slidebottom";case"slidebottom":return"slidetop";case"slideleft2":return"leftout";case"slideright2":return"rightout";case"topin":return"topout";case"popin":return"popout";case"leftout":return"slideleft2";case"rightout":return"slideright2";case"topout":return"topin";case"popout":return"popin"}},it=In=>In<.5?4*In*In*In:(In-1)*(2*In-2)*(2*In-2)+1,Ut=()=>{const{sdkStore:In,activeCanvasKey:Dn,transition:So,activePageKey:Qt}=(0,E.f)(),[Ln,Mn]=(0,q.useState)(Dn),[Rt,Qe]=(0,q.useState)(""),{name:En,duration:qn,offset:Hn,callback:Yn}=So||{},oo=En==="none"||qn<=0,[To,po]=(0,q.useState)(oo?1:0),Oo=(0,q.useRef)(),Qo=Un=>{var cn;if((cn=Oo.current)==null||cn.call(Oo),Un<=0){po(1);return}let nn;const Zn=Date.now();po(0);const ho=()=>{let Xn=(Date.now()-Zn)/Un;isNaN(Xn)&&(Xn=1/0);const Mo=it(Xn),Zo=Math.min(Mo,1);po(Zo),Zo<1&&(nn=requestAnimationFrame(ho))};return nn=requestAnimationFrame(ho),()=>{cancelAnimationFrame(nn)}};Ln!==Dn&&(Qe(Ln),Mn(Dn),Dn&&(Oo.current=Qo(oo?0:qn))),(0,q.useEffect)(()=>{To>=1&&Dn&&(En&&/(menu|drawer)-reverse/.test(En)&&(MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(""),MB.runnerController.setCurrentCanvasKey("")),MB.runnerController.doneTransition(Qt,Dn),Yn==null||Yn())},[To,Dn]),(0,q.useEffect)(()=>(Dn&&MB.runnerController.doneTransition(Qt,Dn),()=>{var Un;(Un=Oo.current)==null||Un.call(Oo)}),[]);const[ea,_n]=(0,q.useMemo)(()=>Ze(En,To,Hn),[En,To,Hn]);return!In||!Ln||!sdkStore.isActiveKey(Ln)?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(V,{}),Rt&&(ea==null?void 0:ea.display)!=="none"&&(0,h.jsx)(O.A,{pageKey:Qt,canvasKey:Rt,transition:So,isShow:!0,style:ea,isActive:!1}),Ln&&(_n==null?void 0:_n.display)!=="none"&&(0,h.jsx)(O.A,{pageKey:Qt,canvasKey:Ln,transition:So,isShow:!0,style:_n,isActive:!0})]})};var G=i(66092),Ht=i(67787);const Tt=Ht.Ay.div.withConfig({displayName:"styles__StyledNonCanvas",componentId:"sc-zu9fdm-0"})(["z-index:1;display:flex;position:absolute;flex-direction:column;width:100%;height:100%;.screen-content{position:relative;flex:1;overflow:hidden;.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;.non-canvas-wrapper{position:absolute;top:","px;left:","px;width:0px;height:0px;z-index:1;pointer-events:auto;}}}}"],In=>-In.top,In=>-In.left),He=()=>{const{sdkStore:In,activePageKey:Dn,transition:So}=(0,E.f)(),[Qt,Ln]=(0,q.useState)(In.getSnapshotItem(Dn)),Mn=(0,q.useRef)(Dn),Rt=(0,q.useRef)(null),Qe=()=>{const{delay:Yn,duration:oo}=So;setTimeout(()=>Rt.current&&MB.runnerController.initMouseEventHandler(Rt.current),Yn+oo+100)};if(Mn.current!==Dn&&(Mn.current=Dn,Qe()),(0,q.useEffect)(()=>{var Yn;Qe();const oo=()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),Qe()},To=Qo=>{const{changedKeyList:ea,changedKeySet:_n}=Qo;if(!(_n!=null&&_n.size))return;if(ea.some(Zn=>{var ho;return((ho=sdkStore.getHotItem(Zn))==null||(ho=ho.hotAttr)==null?void 0:ho.type)===re.x.WMindNode})){setTimeout(oo);return}let Un=!1;const cn=ea.filter(Zn=>{const[ho,Xn]=In.getSnapshotDiffedHotItem(Zn);if(!Xn)return!1;const Mo=In.locUpRBPageKey(Zn),Zo=Dn===Mo;return!Zo&&ho&&(Un=!0),Zo});if(!(cn!=null&&cn.length)&&!Un)return;let nn;cn.forEach(Zn=>{const[ho,Xn]=In.getSnapshotDiffedHotItem(Zn);ho!==Xn&&(nn=!0)}),nn&&oo()},po=In.addSdkStoreChangeListener(To),Oo=In.externalSubscribe(Qo=>{Qo!=null&&Qo.includes(Dn)&&Ln(In.getSnapshotItem(Dn))});return(Yn=So.callback)==null||Yn.call(So),MB.runnerController.execTimerEventCallbackSet(),()=>{po(),Oo()}},[]),!Qt)return null;const qn=In.getRenderableSubHotItems(Qt).filter(Yn=>![re.x.WSticky,re.x.WTear,re.x.Canvas].includes(Yn.hotAttr.type)),Hn=sdkStore.getHotKeyListAABB(qn.map(Yn=>Yn.key));return(0,h.jsx)(Tt,{className:"pnoncanvas",top:Hn[1],left:Hn[0],ref:Rt,children:(0,h.jsx)("div",{className:"screen-content",children:(0,h.jsx)("div",{className:"widgets",children:(0,h.jsx)("div",{className:"scontainer",children:(0,h.jsx)("div",{className:"non-canvas-wrapper",children:qn.map(Yn=>(0,h.jsx)(G.A,{hotItem:Yn,mode:"preview"},Yn.key))})})})})})},Lt=()=>{const{sdkStore:In,activeWidgetKey:Dn}=(0,E.f)(),So=In.getHotItem(Dn),Qt=(0,q.useMemo)(()=>So&&{...So,hotAttr:{...So.hotAttr,r:0,fixPosTo:"none"}},[So]);if((0,q.useRef)(So).current!==So&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),!Qt)return null;const{x:Mn,y:Rt,w:Qe,h:En}=In.getCCSBound2308(Dn);return(0,h.jsx)(Tt,{className:"pnoncanvas",top:Rt-En/2,left:Mn-Qe/2,children:(0,h.jsx)("div",{className:"screen-content",children:(0,h.jsx)("div",{className:"widgets",children:(0,h.jsx)("div",{className:"scontainer",children:(0,h.jsx)("div",{className:"non-canvas-wrapper",children:(0,h.jsx)(G.A,{hotItem:Qt,mode:"preview"})})})})})})};var jt=i(62530),mt=i(74222),Jn=i(72064);const o=()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"})},so=(In,Dn)=>{MB.webpackInterface.store.dispatch({type:"runner:update:basket:scroll-top",payload:{basketKey:In,scrollTop:Dn}})},Et=(In,Dn)=>{MB.webpackInterface.store.dispatch({type:"runner:update:basket:scroll-left",payload:{basketKey:In,scrollLeft:Dn}})};var Jt=i(52183);const Ot=(0,M.Mz)([P.KR,P.Mo,P.ub,P.hM,P.mf,P.wS],(In,Dn,So,Qt,Ln,Mn)=>{const{basketCanvasMap:Rt,activePageKey:Qe,activeCanvasKey:En,activeWidgetKey:qn,transition:Hn,runnerCacheTag:Yn}=Ln;let oo;return Mn===jt.L.canvas?oo=In?Dn:mt.$k:Mn===jt.L.nonCanvas?oo=Qe:Mn===jt.L.code&&(oo=qn),{isPanelPreviewMode:In,panelPreviewBasketKey:Dn,isEditingCombo:So||Qt,basketCanvasMap:Rt,activePageKey:Qe,activeCanvasKey:En,activeWidgetKey:qn,transition:Hn,runnerCacheTag:Yn,runnerMode:Mn,rootKey:oo}}),Ce=()=>{const{runnerMode:In,rootKey:Dn,runnerCacheTag:So,isPanelPreviewMode:Qt,panelPreviewBasketKey:Ln,isEditingCombo:Mn,basketCanvasMap:Rt,activePageKey:Qe,activeCanvasKey:En,activeWidgetKey:qn,transition:Hn}=(0,k.d4)(Ot),Yn=(0,q.useRef)(null),oo=(0,q.useMemo)(()=>{if(Yn.current&&(Yn.current.destory(),Yn.current=null),!Dn)return;const po=new Jn.Ay(sdkStore,Dn);return Yn.current=po,po},[Dn]),To=(0,q.useMemo)(()=>({sdkStore:oo,actions:a,runnerCacheTag:So,isPanelPreviewMode:Qt,panelPreviewBasketKey:Ln,isEditingCombo:Mn,basketCanvasMap:Rt,activePageKey:Qe,activeCanvasKey:En,activeWidgetKey:qn,transition:Hn}),[oo,Qt,Ln,Mn,Rt,Qe,En,qn,Hn]);return(0,q.useEffect)(()=>(MB.runnerController.didInit()||MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!0}}),()=>{var po;(po=Yn.current)==null||po.destory()}),[]),(0,Jt.A)(Yn),oo?(0,h.jsx)(E.i.Provider,{value:To,children:In===jt.L.canvas?(0,h.jsx)(Ut,{},Dn+So):In===jt.L.nonCanvas?(0,h.jsx)(He,{},Dn+So):In===jt.L.code?(0,h.jsx)(Lt,{},Dn+So):null}):null};var Pt=i(15207);const Nn=Ht.Ay.div.withConfig({displayName:"style__StyledAppSplash",componentId:"sc-5h7nzf-0"})(["position:absolute;width:100%;height:100%;background:#f5f5f5;overflow:hidden;margin-bottom:500px;top:0;z-index:2;img{position:absolute;width:100%;height:100%;}.loading{display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 15px);width:100%;height:30px;.splash-loading{width:30px;height:30px;}&.common-loading{top:calc(50% - 25px);height:50px;.splash-loading{width:50px;height:50px;}}}&.landscape{img{transform:rotate(90deg);transform-origin:bottom left;}}"]);class At extends q.PureComponent{render(){const{homeScreen:Dn,url:So,isPanelPreviewMode:Qt,isQuickPreview:Ln,isPreviewCombo:Mn}=this.props,Rt=Qt||Ln||Mn,Qe=0,En=0;let qn;return Dn.width!==Qe?qn={top:0-Qe,width:En,height:Qe}:qn={top:0,width:Qe,height:"101%"},(0,h.jsxs)(Nn,{className:J()("splash",Dn.orientation),style:{backgroundColor:Dn.bgcolor},children:[So&&!Rt&&(0,h.jsx)("img",{src:So,style:qn}),(0,h.jsx)("div",{className:J()("loading",{"common-loading":Rt}),children:Rt?(0,h.jsx)(Pt.f,{className:"splash-loading"}):(0,h.jsx)(Pt.T,{className:"splash-loading"})})]})}}var on=i(509),no=i(78795),mo=i(97605),mn=i(42715),ht=i(32267),Fn=i(33236),Yt=i(97644),Gt=i(88856),Bn=i(63763),qt=i(16958);const Zt=(0,Ht.AH)([".iScrollVerticalScrollbar{width:6px !important;}.iScrollHorizontalScrollbar{height:6px !important;}.iScrollIndicator{background-color:#d2d2d8 !important;border-radius:4px !important;border:none !important;&:hover{background-color:"," !important;}}"],In=>In.theme.color_background_split_hover),jn=Ht.Ay.div.withConfig({displayName:"style__StyledSimulator",componentId:"sc-239cgm-0"})(["transform-origin:top left;background-size:100% 100%;position:relative;z-index:4;width:100%;height:100%;overflow:hidden;"," &.is-modal-preview{overflow:unset;}&.ios,&.android{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAABblBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQX////////////////////////////////////////////////////////////////////////////+/v7///8CAgL///////////8AAAAAAAD///////////////////////////8AAAADAwP///////////8AAAD///////////8BAQH///8AAAD////t7e3///8DAwNDQ0MkJCQXFxcgICDl5eX8/Pz8/Pz19fW4uLj///+0tLSurq7////AwMChoaFZWVlAQECqqqqfn591dXVqampOTk4vLy/q6urx8fHr6+vg4ODa2trz8/POzs7CwsLKysr19fXg4OC7u7v////k5OT09PT///////+ysrL////39/fn5+eWlpbT09PLy8u5ubmamprS0tKzs7Obm5stLS1WVlbJycnX19dISEiZmZnPz8/R0dGZmZlISEjBwcG/v7/YpJ28AAAAenRSTlMAAwYLEg4XCS8tNzJEST81KiglIyBCR049OhgbTB0WVBMUGhBYVg4eC1EmIwlcBykcY14sOyBSBVovNzEtNZ6MhXx4dHRualxMPz0SYkdGMjCqo6Ccl5KMiYaFhXx7eXhvbWdgX19eU0pGOjIvLBwaFxMTBXBvZDwdHMsX0GIAAAKhSURBVEjHpZYHk5pAFICTCHheNP1OjSEGYnIRgmjQE3vv9XrvvbfUf59d6nkI7sx9w4yF/ea9XZb39skwnuoY7pkMf6aBYEnj7TYbLmGz2eySZimA8TiGUYQERWFAkyQrAcMImmQZXhB4hiVJGlgg1HBHFiia5LvlpYXszEx2Yanc5WM0ASTZMRogJTr2Z31+NpffKG1vlzbyudn59SZLEpgcyGhgBJkqzuVK1YhGtZSbK2ZiNIZLjtFg29l8NfJjgEg1n/3N0BR0jAZTXNzZ4zhR5EROQ+T2dhaLAvnQkYz+8mpEDAxBjKyupKADUtMNO04wKwXuiwlcYVkgMbhuelo4xZa3RL8p4laZp6FzLy3ysBCYhgSngyrgq/Y7UDhkCZiaEgSklVoLuC0JrGWk1LQgscq++4Ml7v0Ko4WBQZKbQdcI3JtNKYw6k4rfNTkCl78CZqMqFPPT5RyJ65dAYyAzqOBE48A5MRLnQUPKDE4Fo9uTLxCYbMdgZvJ67To9UU8UXB4z4P2JXUZVKLbm8UKi3ii4vGZ4ajyN22WFqUXHEYjWwPwVhT8af4nA+FFCV46fI3GsK8zJGBInemJsfcyBwFhdmz4WqzteIeCog0VWH2XH8RoBRwc+SmXDJM/eIHCmbGV5/qdvETjVtiXc/J13CHTh5tdesdR5eCoMrikD4E8I+DjX3mR5zRo+C8K+cNjna9x7kWGY9MX7EVzoQZTZJP9+tORfUy1KeulLXn+y4Dqplz69wPZuPpty01MK7GAZ53utrya0koJcxg3Not/6NpRW39AsVIdNXYW+GwhdZbSWZHRIIX0bDw0Qv00l1MZn0l4T6Uv7XVzhzn6ZTmjt1aKJJ9JgFI5TJJtOGJs4+lHhsQcS9GPP4w9X6Ee4/9WZxSosYtQDAAAAAElFTkSuQmCC') 25 25,default;&:active{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAA51BMVEUAAADu7u7t7e3s7Ozl5eXr6+vq6uro6OgAAAAAAADt7e3s7Ozq6uro6Ojs7Ozp6enm5ubk5OTv7+/n5+fv7+/v7+/q6uri4uLh4eHs7Ozp6enw8PDf39/v7+/h4eHx8fHw8PDi4uLd3d3v7+/o6Ojw8PDm5ubr6+soKCi/v7/l5eXx8fHw8PDa2trx8fHAwMCZmZlmZmbHx8e5ubnh4eHOzs66urro6Ojc3NzAwMDc3NzZ2dnm5ubk5OTW1tbS0tLLy8vQ0NC0tLSvr6+MjIyCgoLf39/i4uLs7Ozh4eHW1tbPz8/q6uojhl1DAAAATXRSTlMAgHlyVG1qWwcCfHRoYG9hV1GGXYOMZktJd2STRIhGlpBNQY5YmVJ/DGJNmoiGjmYoFHBbjHNgk4J4m5GMf316eXhKSB8cdp6Xko6GhVNXB78AAAI1SURBVEjH3ZZrd6IwEIa3oJKoKHZbVIpaVmRBF1FAvF/qrdf//3t2kGVDBJXPfTKZzHvkPTkcJMOP7w7GCOk6QhinvB4NnNHKfH83VyNngPBtw8EwF6zEaYqicRK7MI0Dvm4YGi6r1mT51wlZrqmsawyvmNDWZbUmXE+Qm1rJ3aKLDmOpVuUYNXVpXPDo04LWTKJWKWz0xD022UotgSrMSnaKEhxWtlINUKoxKkcr5sHbpaB0u0pXAbpBRLWw3OIzy3DCaRUaWnPm8GwTS8qEaBBhpWmQAiSL3mY/4TJCBiJEEE7an/80N9nTm4iqKqgCAAsARaiDCUmktkFrnrsJv0YRy+DI/6TgSfZToI4D4sBGkefLfEBYxLVoYGKxi+WyVP6PBCMIyS9DRJtY0KgoiREkUZIgwxLUgP97cYSI5SVXjCDCSCL3Qiz6KpeKlU4s62wq1sSCRmypBHEiVhEdvRebTYVNLNiuF1JQtzGxOHWmDsEw/upXydrBkT/MhGGYPHOd/GRAHPBg8imAx0LA3t3d7zAgwfDTmfYw9YqZdzcx9/SL7Hw9+Nw/EM70F9w8xdC8j9MIkw8cFzR45zYaf4LwEyy0dnc4dvR5i8crLJyk43L62O63n2Ge6Pfb4QDGNko+xsfPNE/+9PN4ql9qFuOnRMbe5Qazm7+1YrzNd+hq45u1er1Op9fqQG71Oq3ODBrfjfZqfbyCpQcWiNcP64DTNHFv8zmfzeafG4808fSfCt+cvwzTdVIzvwMmAAAAAElFTkSuQmCC') 25 25,default;}}.panel .tree-node{pointer-events:auto;}.invisible{*{visibility:hidden !important;animation-play-state:paused !important;}}.wBasket.tree-node{transform:translateX(0);}.panel{.panel-scroll-box{position:relative;width:100%;height:100%;overflow:hidden;}&.panelShow{overflow:visible;.panel-scroll-box{overflow:visible !important;.pstate{overflow:visible !important;}}}&.panelHidden{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollX{overflow:hidden;.panel-scroll-box{overflow:hidden;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollY{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;.pstate{overflow:hidden;}}}}.lr{background:transparent;opacity:1;border:none;}.clickable > .region{position:absolute;top:0;left:0;width:100%;height:100%;background-color:",";z-index:",";display:none;background-repeat:no-repeat;background-position:50%;border:1px solid ","}.pg{display:none;left:50%;margin-left:-20px;z-index:110;justify-content:center;align-items:center;&.stap{top:10px;}&.sleft{top:60px;}&.sright{top:120px;}&.sup{top:180px;}&.sdown{top:240px;}&.sshake{top:300px;}&.sdtap{top:300px;}}#app{width:100%;height:100%;position:absolute;background-size:100% auto;z-index:1;transform:translate(0,0);overflow:hidden;.pstate{position:absolute;overflow:hidden;width:100%;height:100%;z-index:1;}.pcanvas{display:flex;flex-direction:column;.screen-header,.screen-footer{position:relative;overflow:hidden;}.screen-footer{.footer-widgets{position:absolute;top:0;left:0;width:100%;height:100%;}}.screen-content{position:relative;flex:1;overflow:hidden;.iScrollVerticalScrollbar,.iScrollHorizontalScrollbar{z-index:2147483647 !important;}}}.pnoncanvas,.pcanvas,.pstate{z-index:1;width:100%;height:100%;position:absolute;left:0;top:0;background-color:transparent;background-repeat:repeat;background-position:top left;background-size:100% auto;overflow:hidden;&.as-overlay{overflow:visible;> .screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;}}&.mouseIn,&.mouseOut{pointer-events:auto;}}.panel-preview-mode-scroll-container{width:100%;height:100%;&.overFlowHide{overflow:hidden;}&.overFlowAuto{overflow:auto;overflow:overlay;}&.overFlowX{overflow-x:auto;overflow-x:overlay;overflow-y:hidden;}&.overFlowY{overflow-y:auto;overflow-y:overlay;overflow-x:hidden;}}}&.is-outside-visible{#app{overflow:visible;.pcanvas{overflow:visible;.screen-header,.screen-footer{overflow:visible;}.screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}}}&.is-mobile{#app{overflow:visible;.pcanvas{overflow:visible;}}.panel{overflow:auto;&.panelShow{overflow:visible;}&.overFlowHide{overflow:hidden;}}.wMapView{.image{overflow:auto;}}}&.simulator-hide-shell{border-radius:0px;}&.is-panel-preview{#app{.pcanvas{.screen-content{","}}.panel-preview-mode-scroll-container{","}}&.overFlowX{#app{.pcanvas{.screen-content{.iScrollVerticalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollVerticalScrollbar{opacity:0;}}}}&.overFlowY{#app{.pcanvas{.screen-content{.iScrollHorizontalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollHorizontalScrollbar{opacity:0;}}}}}"],qt.Jj,In=>In.theme.color_hotspot,Bn.Mh,In=>In.theme.color_comments,Zt,Zt);var ro=i(45796),Tn=i(68033);class bt extends q.PureComponent{constructor(Dn){super(Dn),(0,C.A)(this,"setRef",So=>this.ref=So),this.state={homeScreen:Dn.screen,windowSize:{width:window.innerWidth,height:window.innerHeight}}}componentDidMount(){const{previewOptions:Dn,isImmersive:So}=this.props,{isMobile:Qt}=Dn;if(Qt){const Ln=()=>{setTimeout(()=>{this.forceUpdate()},100)},Mn="onorientationchange"in window?"orientationchange":"resize";window.addEventListener(Mn,Ln,!1),this.resizeObserver=new ResizeObserver(Rt=>{const{windowSize:Qe}=this.state;for(const En of Rt)if(En.contentRect){const{width:qn,height:Hn}=En.contentRect;(Qe.width!==qn||Qe.height!==Hn)&&this.setState({windowSize:{width:qn,height:Hn}})}}),this.resizeObserver.observe(document.body)}MB.runnerController.initEventHandler(this.ref,{isImmersive:So,isMobile:Qt})}componentWillUnmount(){var Dn;(Dn=this.resizeObserver)==null||Dn.disconnect(),this.resizeObserver=void 0}render(){const{activePageKey:Dn,activeCanvasKey:So,project:Qt,screen:Ln,isShowSplash:Mn,isPanelPreviewMode:Rt,previewOptions:Qe,isShellShow:En,isPreviewCombo:qn,panelPreviewBasketKey:Hn,isQuickPreview:Yn}=this.props,{homeScreen:oo={},windowSize:To}=this.state,{isMobile:po}=Qe,{splash:Oo=""}=Qt||{},{deviceOrientation:Qo,device:ea}=Ln||{},_n=(0,mo.gE)({orientation:Qo},ea),Un=Dn&&So?(0,ht.T)({activePageKey:Dn,activeCanvasKey:So,previewOptions:Qe,windowSize:To}):{},cn=En?(0,mn.uQ)(ea):{},nn="";let Zn;if(Rt&&Hn){var ho;const Xn=(ho=sdkStore.getHotItem(Hn))==null?void 0:ho.hotAttr;Xn&&(Zn=Xn.scroll?Tn.M5[Xn.scroll]:"overflowHide")}return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(jn,{id:"simulator",className:J()({"is-mobile":po,"simulator-hide-shell":po||!En,"is-modal-preview":qn||Rt},_n,nn),style:Un,children:[(0,h.jsx)("div",{id:"event-container",ref:this.setRef,children:(0,h.jsx)("div",{id:"app",style:cn,children:Rt?(0,h.jsx)("div",{className:J()("panel-preview-mode-scroll-container",Zn),children:(0,h.jsx)(Ce,{})}):(0,h.jsx)(Ce,{})})}),Mn&&!po&&(0,h.jsx)(At,{homeScreen:oo,url:Oo,isPanelPreviewMode:Rt,isQuickPreview:Yn,isPreviewCombo:qn}),(0,h.jsx)(Yt.l,{}),(0,h.jsx)(ro.Sn,{}),po&&(0,h.jsx)(Fn.l,{})]}),po&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(no.A,{}),(0,h.jsx)(on.A,{}),(0,h.jsx)(Gt.Ay,{})]})]})}}const Wt=In=>In.container.previewSetting.isShowSplash,wn=(0,M.Mz)([P.Ur,P.PL,P.Kv,Wt,P.bF,P.KR,P.mf,P.hM,P.Mo,P.k6],(In,Dn,So,Qt,Ln,Mn,Rt,Qe,En,qn)=>{let{activePageKey:Hn,activeCanvasKey:Yn}=Rt;return{screen:In,project:Dn,isImmersive:So,isShowSplash:Qt,previewOptions:Ln,isPanelPreviewMode:Mn,activePageKey:Hn,activeCanvasKey:Yn,isPreviewCombo:Qe,panelPreviewBasketKey:En,isQuickPreview:qn}}),uo=(0,k.Ng)(In=>wn(In))(bt)},71181:(eo,ot,i)=>{"use strict";i.d(ot,{d:()=>l});var a=i(38502),k=i(18381),M=i(23522),P=i(62587),C=i(41818),q=i(15186),Y=i(81973),J=i(50077);const O=D=>{if(!D)return"transparent";if(typeof D=="number")return(0,q.t0)(D);if(typeof D=="string")return D;if(typeof D=="object"){const E=D.knobList||D.solidColor||("bdrColor"in D?D.bdrColor:void 0),f=D.fillIsVisible||("bdrColor"in D?D.bdrIsVisible:void 0);if(!E||!f)return"transparent";let h;if(Array.isArray(E)){var m;h=(m=E[0])==null?void 0:m.color}else h=E;return h?(0,q.t0)(h):"transparent"}return"transparent"},l=D=>{let{widget:m,editorState:E,getTextV1:f,setTextV1:h,dispatch:S}=D;const{hotAttr:{fill:V,border:We,styleType:re,stateType:ve,defaultColor:we}}=m,Ae=(0,k.d4)(Y.Dw),{handleClearRef:Oe,handleClearTextRef:Be,handleClearTextColorRef:tt}=(0,J.l)(m),Xe=(0,a.useMemo)(()=>Object.values(M.g).map(Tt=>[Tt[7],"#ffffff",Tt[2],Tt[5]]),[]),ne=Ht=>{const Tt=C.Q.hex(Ht);return(0,q.u_)({R:Tt[0]*255,G:Tt[1]*255,B:Tt[2]*255,A:100})},lt=(0,a.useMemo)(()=>{if(we)return C.Q.toHexAndAlpha((0,P.WR)(we))[0]},[we]),rt=(0,a.useMemo)(()=>{const Ht=new Map,Tt=new Map;return Object.keys(M.g).forEach(Vt=>{const He=ne(Vt);Ht.set(Vt,He),Tt.set(He,Vt)}),{hexToNumberMap:Ht,numberToHexMap:Tt}},[]),Te=(0,a.useCallback)((Ht,Tt)=>{if(!(m!=null&&m.hotAttr))return;const{hotAttr:{stateType:Vt}}=m,He=Tt||Vt,rn=M.g[Ht];if(!(rn!=null&&rn.length))return;let Lt="",jt="";switch(He){case"default":{Lt=rn[5],jt=rn[0];break}case"hover":{Lt=rn[6],jt=rn[1];break}case"active":{Lt=rn[7],jt=rn[2];break}case"disabled":{Lt=rn[2],jt=rn[0];break}default:break}if(Lt&&jt){const mt=ne(Lt),Jn=ne(jt),o=ne("#ffffff");return{main:[Lt,mt],light:[jt,Jn],white:["#ffffff",o]}}},[m]),Ge=(Ht,Tt)=>{const He=Object.values(M.g).find(rn=>rn[Tt]===Ht);if(He)return He[5]},ue=(0,a.useMemo)(()=>{var Ht;if(!(m!=null&&m.hotAttr))return;const{hotAttr:{fill:Tt,border:Vt,styleType:He,stateType:rn}}=m,Lt=(Ht=f(E))==null?void 0:Ht.color,jt=(0,P.dT)(Lt),mt=ne("#ffffff");let Jn=null,o=null;switch(He){case"fill_drak":{Tt.fillIsVisible&&Tt.fill==="solid"&&Tt.solidColor===Vt.bdrColor&&!Vt.bdrIsVisible&&jt.solidColor===mt&&(Jn=Tt.solidColor);break}case"fill_light":{Tt.fillIsVisible&&Tt.fill==="solid"&&Tt.solidColor===Vt.bdrColor&&!Vt.bdrIsVisible&&(Jn=(jt==null?void 0:jt.fill)==="solid"?jt.solidColor:null,o=Tt.solidColor);break}case"border":{Tt.fillIsVisible&&Tt.fill==="solid"&&Tt.solidColor===mt&&jt.fill==="solid"&&jt.solidColor===Vt.bdrColor&&Vt.bdrStyle==="solid"&&Vt.bdrIsVisible&&(Jn=Vt.bdrColor);break}case"border_dashed":{Tt.fillIsVisible&&Tt.fill==="solid"&&Tt.solidColor===mt&&jt.fill==="solid"&&jt.solidColor===Vt.bdrColor&&Vt.bdrStyle==="dashed"&&Vt.bdrIsVisible&&(Jn=Vt.bdrColor);break}case"ghost":{!Tt.fillIsVisible&&jt.fill==="solid"&&jt.solidColor===Vt.bdrColor&&Vt.bdrStyle==="solid"&&Vt.bdrIsVisible&&(Jn=Vt.bdrColor);break}case"text":!Tt.fillIsVisible&&!Vt.bdrIsVisible&&jt.fill==="solid"&&(Jn=jt.solidColor);default:break}if(!Jn)return;const so=rn==="default"?5:rn==="hover"?6:rn==="active"?7:rn==="disabled"?2:5,Et=Ge(C.Q.toHexAndAlpha((0,P.WR)(Jn))[0],so);if(!Et)return;const Jt=Te(Et);if(!Jt)return;const{main:Ot,light:dn}=Jt;if(Jn===Ot[1]&&(!o||o===dn[1]))return Et},[m,E,f,rt]),Me=(0,a.useMemo)(()=>{var Ht;const Tt=(Ht=f(E))==null?void 0:Ht.color,Vt=(0,P.dT)(Tt);return[O(We),O(Vt),O(V)]},[E,V,We,f]),Ze=(0,a.useMemo)(()=>{if(!lt||!M.g[lt])return{isCustomize:!0,colorItem:Me};const Ht=Xe.find(Tt=>Tt[3]===lt);return Ht?ue!==lt?{isCustomize:!0,colorItem:Me}:{isCustomize:!1,colorItem:Ht}:{isCustomize:!0,colorItem:Me}},[Me,lt,Xe]),fe=(0,a.useCallback)(Ht=>{let{value:Tt,attr:Vt}=Ht;switch(Vt){case"fill":case"border":S({type:"entry:widget:change",payload:{flatChgList:[{key:m.key,hotAttr:{[Vt]:Tt}}]}});break;case"color":h("color",(0,q.t0)(Tt));default:break}},[S,h]),it=(0,a.useCallback)((Ht,Tt,Vt)=>{if(!Ht)return;const He=Te(Ht,Vt);if(!He)return;const{main:rn,light:Lt,white:jt}=He;if(!(rn!=null&&rn.length)||!(Lt!=null&&Lt.length)||!(jt!=null&&jt.length))return;const mt={fillIsVisible:!0,fill:"solid",solidColor:rn[1]},Jn={fillIsVisible:!0,fill:"solid",solidColor:Lt[1]},o={fillIsVisible:!0,fill:"solid",solidColor:jt[1]};switch(Tt){case"fill_drak":{fe({attr:"fill",value:mt}),fe({attr:"border",value:{...We,bdrColor:rn[1],bdrIsVisible:!1}}),fe({attr:"color",value:jt[1]});break}case"fill_light":{fe({attr:"fill",value:Jn}),fe({attr:"border",value:{...We,bdrColor:Lt[1],bdrIsVisible:!1}}),fe({attr:"color",value:rn[1]});break}case"border":{fe({attr:"fill",value:o}),fe({attr:"border",value:{...We,bdrColor:rn[1],bdrIsVisible:!0,bdrStyle:"solid"}}),fe({attr:"color",value:rn[1]});break}case"border_dashed":{fe({attr:"fill",value:o}),fe({attr:"border",value:{...We,bdrColor:rn[1],bdrIsVisible:!0,bdrStyle:"dashed"}}),fe({attr:"color",value:rn[1]});break}case"ghost":{fe({attr:"fill",value:{...V,fillIsVisible:!1}}),fe({attr:"border",value:{...We,bdrColor:rn[1],bdrIsVisible:!0,bdrStyle:"solid"}}),fe({attr:"color",value:rn[1]});break}case"text":{fe({attr:"fill",value:{...V,fillIsVisible:!1}}),fe({attr:"border",value:{...We,bdrIsVisible:!1}}),fe({attr:"color",value:rn[1]});break}default:break}S({type:"entry:widget:change",payload:{flatChgList:[{key:m.key,hotAttr:{defaultColor:ne(Ht)}}]}}),Oe()},[V,We,ve,fe,Oe]),et=(0,a.useCallback)(Ht=>{if(!(Ht!=null&&Ht.length))return;const Tt=Ht[3];let Vt={};re||(Vt={...Vt,styleType:"fill_drak"}),ve||(Vt={...Vt,stateType:"default"}),S({type:"entry:widget:change",payload:{flatChgList:[{key:m.key,hotAttr:Vt}]}}),it(Tt,re||"fill_drak",ve||"default"),S({type:"entry:auto:show:hide:item"})},[V,We,re,ve,fe]),Ut=(0,a.useCallback)(Ht=>{const Tt=lt&&M.g[lt]?lt:M.C;let Vt={styleType:Ht};ve||(Vt={...Vt,stateType:"default"}),S({type:"entry:widget:change",payload:{flatChgList:[{key:m.key,hotAttr:Vt}]}}),it(Tt,Ht,ve||"default"),S({type:"entry:auto:show:hide:item"})},[lt,Ae,ve,we,it,S]),G=(0,a.useCallback)(Ht=>{const Tt=lt&&M.g[lt]?lt:M.C;let Vt={stateType:Ht};re||(Vt={...Vt,styleType:"fill_drak"}),S({type:"entry:widget:change",payload:{flatChgList:[{key:m.key,hotAttr:Vt}]}}),it(Tt,re||"fill_drak",Ht),S({type:"entry:auto:show:hide:item"})},[V,We,re,ve,lt,fe]);return{colors:Xe,defaultColorHex:lt,activeColorItem:Ze,gradientMainColorsHexNumberMap:rt,getNumberColorFromHex:ne,getMainLightColor:Te,handleChangeAppearAttr:fe,handleChangeDefaultColor:et,handleChangeStyleType:Ut,handleChangeStateType:G,handleClearTextRef:Be,handleClearTextColorRef:tt}}},71217:(eo,ot,i)=>{"use strict";i.d(ot,{Bf:()=>a,S$:()=>k,hF:()=>M,j1:()=>P});function a(C){if(!C)return"";try{if(!C.startsWith("data:image/svg+xml;base64,"))throw new Error("\u8F93\u5165\u7684 BASE64 \u6570\u636E\u4E0D\u662F SVG \u7C7B\u578B");const q=C.split(",")[1],Y=atob(q),J=new Uint8Array(Y.length);for(let D=0;D<Y.length;D++)J[D]=Y.charCodeAt(D);return new TextDecoder("utf-8").decode(J)}catch(q){return console.error("BASE64 \u5230 SVG \u8F6C\u6362\u5931\u8D25:",q),""}}const k=(C,q)=>q.width>q.height?{width:q.width,height:Math.round(q.width*(C.height/C.width))}:{height:q.height,width:Math.round(q.height*(C.width/C.height))},M={h:391,w:281},P="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0iYmFja2dyb3VuZDogI2ZmZmZmZjsgYmFja2dyb3VuZC1jb2xvcjogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7IGNvbG9yLXNjaGVtZTogbGlnaHQgZGFyazsiIHZlcnNpb249IjEuMSIgd2lkdGg9IjI4MXB4IiBoZWlnaHQ9IjM5MXB4IiB2aWV3Qm94PSItMC41IC0wLjUgMjgxIDM5MSIgY29udGVudD0iJmx0O214ZmlsZSBob3N0PSZxdW90O2FwcC5kaWFncmFtcy5uZXQmcXVvdDsgYWdlbnQ9JnF1b3Q7TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEzNC4wLjAuMCBTYWZhcmkvNTM3LjM2JnF1b3Q7IHZlcnNpb249JnF1b3Q7MjYuMS4zJnF1b3Q7IHNjYWxlPSZxdW90OzEmcXVvdDsgYm9yZGVyPSZxdW90OzAmcXVvdDsmZ3Q7JiMxMDsgICZsdDtkaWFncmFtIGlkPSZxdW90O0M1UkJzNDNvRGEtS2R6WmVOdHV5JnF1b3Q7IG5hbWU9JnF1b3Q7UGFnZS0xJnF1b3Q7Jmd0OyYjMTA7ICAgICZsdDtteEdyYXBoTW9kZWwgZHg9JnF1b3Q7MTQzNCZxdW90OyBkeT0mcXVvdDs3ODAmcXVvdDsgZ3JpZD0mcXVvdDsxJnF1b3Q7IGdyaWRTaXplPSZxdW90OzEwJnF1b3Q7IGd1aWRlcz0mcXVvdDsxJnF1b3Q7IHRvb2x0aXBzPSZxdW90OzEmcXVvdDsgY29ubmVjdD0mcXVvdDsxJnF1b3Q7IGFycm93cz0mcXVvdDsxJnF1b3Q7IGZvbGQ9JnF1b3Q7MSZxdW90OyBwYWdlPSZxdW90OzEmcXVvdDsgcGFnZVNjYWxlPSZxdW90OzEmcXVvdDsgcGFnZVdpZHRoPSZxdW90OzgyNyZxdW90OyBwYWdlSGVpZ2h0PSZxdW90OzExNjkmcXVvdDsgbWF0aD0mcXVvdDswJnF1b3Q7IHNoYWRvdz0mcXVvdDswJnF1b3Q7Jmd0OyYjMTA7ICAgICAgJmx0O3Jvb3QmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTAmcXVvdDsgLyZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0yJnF1b3Q7IHZhbHVlPSZxdW90OyZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7ZWRnZVN0eWxlPW9ydGhvZ29uYWxFZGdlU3R5bGU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0zJnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi02JnF1b3Q7IGVkZ2U9JnF1b3Q7MSZxdW90OyZndDsmIzEwOyAgICAgICAgICAmbHQ7bXhHZW9tZXRyeSByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICZsdDsvbXhDZWxsJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTMmcXVvdDsgdmFsdWU9JnF1b3Q7TGFtcCBkb2VzbiZhbXA7IzM5O3Qgd29yayZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTE7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtmb250U2l6ZT0xMjtnbGFzcz0wO3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHZlcnRleD0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHg9JnF1b3Q7MTYwJnF1b3Q7IHk9JnF1b3Q7ODAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi00JnF1b3Q7IHZhbHVlPSZxdW90O1llcyZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7ZWRnZVN0eWxlPW9ydGhvZ29uYWxFZGdlU3R5bGU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi02JnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMCZxdW90OyBlZGdlPSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeT0mcXVvdDsyMCZxdW90OyByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICAgJmx0O214UG9pbnQgYXM9JnF1b3Q7b2Zmc2V0JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICAgJmx0Oy9teEdlb21ldHJ5Jmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi01JnF1b3Q7IHZhbHVlPSZxdW90O05vJnF1b3Q7IHN0eWxlPSZxdW90O2VkZ2VTdHlsZT1vcnRob2dvbmFsRWRnZVN0eWxlO3JvdW5kZWQ9MDtodG1sPTE7amV0dHlTaXplPWF1dG87b3J0aG9nb25hbExvb3A9MTtmb250U2l6ZT0xMTtlbmRBcnJvdz1ibG9jaztlbmRGaWxsPTA7ZW5kU2l6ZT04O3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7bGFiZWxCYWNrZ3JvdW5kQ29sb3I9bm9uZTsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgc291cmNlPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTYmcXVvdDsgdGFyZ2V0PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTcmcXVvdDsgZWRnZT0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHk9JnF1b3Q7MTAmcXVvdDsgcmVsYXRpdmU9JnF1b3Q7MSZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyZndDsmIzEwOyAgICAgICAgICAgICZsdDtteFBvaW50IGFzPSZxdW90O29mZnNldCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAgICZsdDsvbXhHZW9tZXRyeSZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtNiZxdW90OyB2YWx1ZT0mcXVvdDtMYW1wJmFtcDtsdDticiZhbXA7Z3Q7cGx1Z2dlZCBpbj8mcXVvdDsgc3R5bGU9JnF1b3Q7cmhvbWJ1czt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO3NoYWRvdz0wO2ZvbnRGYW1pbHk9SGVsdmV0aWNhO2ZvbnRTaXplPTEyO2FsaWduPWNlbnRlcjtzdHJva2VXaWR0aD0xO3NwYWNpbmc9NjtzcGFjaW5nVG9wPS00OyZxdW90OyBwYXJlbnQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMSZxdW90OyB2ZXJ0ZXg9JnF1b3Q7MSZxdW90OyZndDsmIzEwOyAgICAgICAgICAmbHQ7bXhHZW9tZXRyeSB4PSZxdW90OzE3MCZxdW90OyB5PSZxdW90OzE3MCZxdW90OyB3aWR0aD0mcXVvdDsxMDAmcXVvdDsgaGVpZ2h0PSZxdW90OzgwJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICZsdDsvbXhDZWxsJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTcmcXVvdDsgdmFsdWU9JnF1b3Q7UGx1ZyBpbiBsYW1wJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MTt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO2ZvbnRTaXplPTEyO2dsYXNzPTA7c3Ryb2tlV2lkdGg9MTtzaGFkb3c9MDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDszMjAmcXVvdDsgeT0mcXVvdDsxOTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi04JnF1b3Q7IHZhbHVlPSZxdW90O05vJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MDtodG1sPTE7amV0dHlTaXplPWF1dG87b3J0aG9nb25hbExvb3A9MTtmb250U2l6ZT0xMTtlbmRBcnJvdz1ibG9jaztlbmRGaWxsPTA7ZW5kU2l6ZT04O3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7bGFiZWxCYWNrZ3JvdW5kQ29sb3I9bm9uZTtlZGdlU3R5bGU9b3J0aG9nb25hbEVkZ2VTdHlsZTsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgc291cmNlPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEwJnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMSZxdW90OyBlZGdlPSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDswLjMzMzMmcXVvdDsgeT0mcXVvdDsyMCZxdW90OyByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICAgJmx0O214UG9pbnQgYXM9JnF1b3Q7b2Zmc2V0JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICAgJmx0Oy9teEdlb21ldHJ5Jmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi05JnF1b3Q7IHZhbHVlPSZxdW90O1llcyZxdW90OyBzdHlsZT0mcXVvdDtlZGdlU3R5bGU9b3J0aG9nb25hbEVkZ2VTdHlsZTtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMCZxdW90OyB0YXJnZXQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTImcXVvdDsgZWRnZT0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHk9JnF1b3Q7MTAmcXVvdDsgcmVsYXRpdmU9JnF1b3Q7MSZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyZndDsmIzEwOyAgICAgICAgICAgICZsdDtteFBvaW50IGFzPSZxdW90O29mZnNldCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAgICZsdDsvbXhHZW9tZXRyeSZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTAmcXVvdDsgdmFsdWU9JnF1b3Q7QnVsYiZhbXA7bHQ7YnImYW1wO2d0O2J1cm5lZCBvdXQ/JnF1b3Q7IHN0eWxlPSZxdW90O3Job21idXM7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtzaGFkb3c9MDtmb250RmFtaWx5PUhlbHZldGljYTtmb250U2l6ZT0xMjthbGlnbj1jZW50ZXI7c3Ryb2tlV2lkdGg9MTtzcGFjaW5nPTY7c3BhY2luZ1RvcD0tNDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDsxNzAmcXVvdDsgeT0mcXVvdDsyOTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTAwJnF1b3Q7IGhlaWdodD0mcXVvdDs4MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMSZxdW90OyB2YWx1ZT0mcXVvdDtSZXBhaXIgTGFtcCZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTE7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtmb250U2l6ZT0xMjtnbGFzcz0wO3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHZlcnRleD0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHg9JnF1b3Q7MTYwJnF1b3Q7IHk9JnF1b3Q7NDMwJnF1b3Q7IHdpZHRoPSZxdW90OzEyMCZxdW90OyBoZWlnaHQ9JnF1b3Q7NDAmcXVvdDsgYXM9JnF1b3Q7Z2VvbWV0cnkmcXVvdDsgLyZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTImcXVvdDsgdmFsdWU9JnF1b3Q7UmVwbGFjZSBCdWxiJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MTt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO2ZvbnRTaXplPTEyO2dsYXNzPTA7c3Ryb2tlV2lkdGg9MTtzaGFkb3c9MDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDszMjAmcXVvdDsgeT0mcXVvdDszMTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICZsdDsvcm9vdCZndDsmIzEwOyAgICAmbHQ7L214R3JhcGhNb2RlbCZndDsmIzEwOyAgJmx0Oy9kaWFncmFtJmd0OyYjMTA7Jmx0Oy9teGZpbGUmZ3Q7JiMxMDsiPjxkZWZzLz48cmVjdCBmaWxsPSIjZmZmZmZmIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7Ii8+PGc+PGcgZGF0YS1jZWxsLWlkPSJXSXlXbExrNkdKUXNxYVVCS1ROVi0wIj48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTEiPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMiI+PGc+PHBhdGggZD0iTSA2MCA0MCBMIDYwIDc5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCA4OC44OCBMIDU1LjUgNzkuODggTCA2NC41IDc5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMyI+PGc+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDIwcHg7IG1hcmdpbi1sZWZ0OiAxcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5MYW1wIGRvZXNuJ3Qgd29yazwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMSIgeT0iMTMuNSIgd2lkdGg9IjExOCIgaGVpZ2h0PSIxNyIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFkZ0FBQUJFQ0FZQUFBQWlDaVFWQUFBQUFYTlNSMElBcnM0YzZRQUFHR3BKUkVGVWVGN3RuUVhRTmpjUng3ZTRlM0dLZTNFclZseUxRM0VyN3U3dVVJckw0TjdpWHR5ZDR1NU9jWGUzKzgyWERQbDJOcGZrNUwxSE5qT2R0cytidXlULzVQYWZsV3oyRUMrT2dDUGdDRGdDam9Bak1Ea0NlMHorUm4raEkrQUlPQUtPZ0NQZ0NJZ1RyQzhDUjhBUmNBUWNBVWRnQmdTY1lHY0ExVi9wQ0RnQ2pvQWo0QWc0d2ZvYWNBUWNBVWZBRVhBRVprREFDWFlHVVAyVmpvQWo0QWc0QW82QUU2eXZBVWZBRVhBRUhBRkhZQVlFbkdCbkFOVmY2UWc0QW82QUkrQUlPTUg2R25BRUhBRkh3QkZ3QkdaQVlKVUo5bndpOGlFUk9VWXk3cXVKeUtFejRPQ3YzQTRFOUpyNm9ZanNJeUkvM1k3aGI4d29yeW9pYjFhanVaK0lITGd4STl5T2daeE1SQTRUa2IzQ2NQOGlJdnVLeUdjMlpmaE9zSnN5a3o2T0dnU2NZR3RRV3YwNlF3bjJiQ0p5RHhGNW9JajhmUFdIdWZFOWRJSmRjSXBkZzEwUS9BMXQyZ2wyTXlhMmxXQVI1QThSa2R1SmlGc3RWbWNOT01FdU9CZE9zQXVDdjZGTk84RnV4c1MyRU95NVJPVDlJbkw4TUhRbjJOVlpBMDZ3Qzg2RkUreUM0RzlvMDA2d216R3hMUVRyYzc2NmMrNEV1K0RjT01FdUNQNkdOdTNDZGpNbTFpTFllNHJJazR6aCtaeXY3cHc3d1M0NE4wNndDNEsvb1UyN3NOMk1pYjFZTVBzZUtRem52eUp5ZVJGNWp4UHNXazJ3RSt5QzArVUV1eUQ0RzlxMEUreG1UT3pwUk9TakluTFNNSnpmZE9RSzZYN05DWGF0SnRnSmRzSHBjb0pkRVB3TmJkb0pkak1tbG9DbGQ0bkkrY053dnRwcHRKY1FrVjg1d2E3VkJEdkJMamhkU3hMc2tidUVGclIvM1M3WnhhVkY1QXdpY3N3RWkvK0VjUDhQaXNqTGc3bnFueFZZNlFYRjgxY1JrVCtGWjg4c0luZnZEbHJqWXpwNStJMjJ2aUlpTHhHUkY0dklyNDEyamlnaUZ4S1J1d1JUV1l5WS9MT0lmSzVMMXZINExxSENPN3J6ZjZVKzl2V1BNOU1YRFAzREhCZmI0SjJmRlpGbmlNZ2JSSVEyZDdJd0wxY1drVnNHTFNiTzB5OUNmNTRzSXQ4SUhScExzT0NNVUQ5QVJLNlVISkRuOVl6N3l5THlDaEY1NVFUbkxOTnhnWHZFbTdhSWhDVXk5cmxkUHo0aEl2OGVDUGhKUk9UNkhUNDNFSkc5MVJvbitjYkhST1JWM2J5L3JYSmVTK3Y3VkYxU2o5dDJtdWIxUkFRdDlBaWgzNy9zRWd5OFQwU2VWamtlVE1OZ2ZPM3cvT3ZDT1A0Vi90L3kwZVlnR3BQYzRFYWRiRGc0ZVhFZjBldjJHZXVka3g5L0hKS2UvS2hpTHZXek5VazJUaWdpMXhDUld4dHpIZGZUODdwdjZaTVZjaUoyTVRmZmZBc1hENGsvU09SQytXM1lGS1Z6UEpSZ0x5c2lyeEdSNHlWWS9VNUU5Z3RydGdMQ25hbmlpU1oyeC9ub0luSXJFWGxVRnpCeG5JWXArRU00WS9mcWdyRExMY2lqZE9hdVozZEV1bitoVGNpTS9yMU1SUEE3VVU0VFNQN0NoV2UvTGlMWHlwalJTaDlNUy84NHhQK1VobyswQWViZHFrSjJiSURBclRSWFR3am5JRWswa0dZSHF6MnlRVnNJODRNVXFmYjFIUUZBVW9NYWdabStoeldJNEdVTnN0RXJsZStJeUcwQzRjWTFVWG9HMHlxQ3JyVGU0bnRZZHc4U2thZUx5Rjk3WHA1YjMvVHJzWXBRY3E5aFBCRCtwd3FEZUxTSVBDRFVlVXhJSGhFZjJTbUNQYXVJZktURDhnU2hZUWorVXVHM3Z1NGZxOXVvdlNWbzNiRmVueDg1ZlpmVzNrc2JoRk9LeUNORjVPYWxSUkgrem1ibnJpSlNrbVZVdCthYjcrVCtJa0xRbVZYU2NRNGhXRGFiNzF3SGNtWHdUckQvWHdJc1JEU3dhSGFxWEkrN1ZVUFlvMFhtTkVWclFkNHA3TWJQWHRrZ0dpM0V3cTZkdnI2OTB4NVBWUG5zejRKR2J2bXFjaC9NVFlQbWpPQ29MYThORzRIZjF6N1FXQS90RG8yNVZtancraGVJeUl2Q0xqcW0zNndoMkNGdHhlRmdza1JiUXp1cktXeVdJT1loYS9DSlFiQ1ZyQlJZWTlCSXoxalRJVlhudzJIdHNZNnNZcTF2a2p1d0lXd1pFMk5BczM1OVR4OVQ3ZkhHM1hnT1NlcnVGTUZhUkZtalRXcGlqbDJ2ZVZaYllUNGRyRlpvaUxwZ2ZjTUNVU3NmMHVleGxpR2IraXhTZXI1WkgyeGcyV1RuQ2hhWEszU1dNR1JESzhIbXlKV05vaFhnTm1DSlQvdUlFK3d1UEk4YkNPc3lCcnpzNkRDVllYS2tuRGpreTB4TmR2RXhkbWZYNlJFTWVrRmgrdjFiTUVmSGQyRHF3TC9FQXNTTVJtNU9yY2w4dXpNVDNpS1FSaW9vTVlVUy9FRzVhR2V1eE9Tc0M2YTFtM1FhU1RTbnBYL1gvZU5qK0ltSVhET3BCTUZqMnFZUDRJYTVPRFhWeEtxWW0rNDRneVlMRnM4TXBpNDl0aEoyYncwYkRMUkVTb2xnKzlZRkpJQXcrVzZublIwMWFDT25OdkN1SVFzZTQ5bDNaNGlQT1VCVFlrM1FwMHVHZGFpYksyR2VHMDgwODM4eHZMQ3ZEUVF2R3JORjVEWHJ1eFkzMWhjRWNmZ0FrWGZ1N251OVEzaHV6ODVOY3ZWRW1maEhaeUpsQXhpSkE0MGNOOEwzQjdUREk2a216Zit6ZVVHTDQ3dk9GU3hKYkpCMTBhWnU2M2xNN0d6a1k5SGFlL3lkUHFDRlJqTjgrcTRmaEcvNDd6MHlodnE0bGRqbzVEYktlcjZaVzh6M2tWZFl0NUg0TU92aTlzSTZ3K2FZMGtLd2JFclErcEdKc2ZDOXJ5eTUwa2tuMkYxVGRWOFJlWnhhelNRVHY1dUlmQy96bFVCZStNQWd3TFJndm9DUUxGT2FYbERwY3dnUy9JaG9PNmxQRGZQbnMwVGtocW9keUR6T0gzMkZ6TFE1OHB4Qks5ZUxFdjhJL2tKZCt2cEhYVDRNZHFlWXhHUEJmSHE1b0tYb25mSzlSQVROYXNxQ3RvSkdsQlkwUlRZTkVGU0tIV1NNQnZrY2RXbEVmTGFQWUJFVW1FVFJ3SFJiQ0xrM0dlNEFyQ0NZWHRNTkNjOGlDQ0FML09GV3lSRWZGaFZNYlhvTk11L25DSDU1eUNRdGZaaXp2cDZmVkdhenhQZ2dUVTJZdEVFV0pIektaMG1lZ2FBZytJOGJBK2xiUDZ3WlNBK2hyOXRpbmFKcHBlM3crbFFZRDExRFkvM3VwWGIxa1NISWk4MHRQdFZjMFQ3VVdJL04ya1Y2L1BkSEM4Uk16QUVsWjFZK1Q1QWpldVBMWExLZTlPVVdmZTRXeUp4NXFObVF4M0d3cm5DUElDL2k5OGg2T20zNEZvajZwdFFTckxYNXhEU09KWTlOODhvV0oxZ1JBajArb0Q1dXpIU1lvRXJtTmpRaGhIME10bUNpTVoveGdmR3g2SklUUU44S0pNWEhhUldyajdGZVNXc2grQW5TVG04bFFxaENPclg5NDROQk9CTm9sZlB6V2FaSGhBeGtudHVrdEg0WVdBOFlTMnBPQnpzRURocFBybGltSmVyMkVTeWJCbmJ3cVFhQU9RN3k3UE9yOGsyeDJYbXFlcGJkTndMQjJuaFpHeno4aXdTbjlRVXdZYjVHQUxMcGlBWGh5YVpQNDZHRk0vVnJDQXl6OVh1VjVzREdBMWRJN2ZxcG1TTkxpT29nd05iMVF2MjVDWlpOSmYzRXYwOHArVksxRHpVZFU4bUhxNDhuRVZmQlppZTl1QUNaeENhRzRNbFkrSDd4cTJMNTZmUFRXMjR5bnIxaTJMeld6amRyRjRXbEZCTlFRN0JyUzY2QTVRUXJndWtDazJ6RUFtMGpwK0ZaSDdqZXdTSkFPVEpnQldsWUJNc2loQ0FRNW4xRm02S29pNGtaelNpYXI2M25MY0hhS2lCclB4aUx6R3VFZUszZ3hGekZMandXdENubUQ5OVBxYURKOG15NjVuTUVpL2JLeG9uMllza1JsOVV1YlR3aUJBYWxRczRTVk5ibXFiUnBTdHNrT2hRLy9BV1NIeC9lL2ZmRFZNZG9CMWRIdEdhVWdtUFN4L0hGc1daaXlmbjlyUFhkSjZBMWRycWRsc2phM1B6UFRiRE05UXRWUEVET2JFc2ZzUXF3WG84ZE9veExodzE1TExtTVZQeWQ2enF4bk1TQzVRRlhVVXBrQkR1aU1CQ1lHQXNCYzF4MlVDSTg2ck5SeHZYQlhNYVMyeHhhODkyeXFTNFJMTUY0YkJhUXg3R3NoZVlhTytzRXUydkJvNTJoNVNCOFdKeVlZeTJUaVBVUlc0c3NkMit0VlRkMSt1ZUVCTCszNUYvVjc5RW1xWmQyV3VYTmpNYXMvbG03NUZ3L0lTWTBLdkNNWlFvdGhIZnBveG44MXVkUDFuMWtaNC9KbFFDTFdISUVhd1dodEc0VUxPSzBCS0xlTkxRUWVSeUhmb2QxWEVUUGJVbGJTdkdEdkRIRi9iSFRqQ0JYVE4xbzZGb2J0OVpQeS96cnpXckxKaUMzSnVjbVdOclZ4M1hRK1BIN1dnRkNhVjNHZC92Z0E0NlJ5SDErV1AwZEUyM05ONUFXWGFmbCs0M3YwUnVkM0R4WTgxM2pSNDd0OUJHczVUYXBqV2ZvazZNNytqY24yUEZ3anlYWW5EYXBlNmFGVDR1QTFDYklGb0sxdEtFKzFMUkZvQy9MVGd2NnB3Z0JYR2tna1k0ZUxiMVBDOEljd2VwNmZXYi92amExMVVFVG42WDlXQ1JjR3BjMkhWcHJBNDJKQUJ6V1VTeWxxT0JTdS9ydjFyZlFwODNwNS9VNDFvVmc5WVlzdDE3MGZMTWVPSnZLV2ZwUzBneHRXcmJhc016UExmakgrZER6d08rV1c4bWFiMkkwYUxPbTVBZ1c5d1pFblFhZHJoMjVBb0FUYk0weTZLOHpsbUJyU1VMdnhGdUlheWpCdHBCNFJBay96bUVpQWlIR2dna2NNK2FZb2pjWUxlT1A3V3J6WEk1Z0NRUkt0ZkNheUZCcmJIcXpvUW5ERW9oOUpzSWNmaFo1V2dJUnMvRkQxVXZRUXRsd1FleWZxWWc3Nkp0RDYxc2dQcUh2dUUzNnZwTEpjTWo2MlFrTjFyS09vTUVTZkpnV1BkOWd6cmwyOEk5QmpEa1hrMTcvMXByVTY3dmtEODdoYWJtVnJFMTVpK3l6MnJMbUcxa0JKbWxjQWVNQUg2MnREMWtQTy9xTUUrd3d1SWxPUFZNd0EzRk9WQitIYVRFUjUrcnFubzBSRkVNSmRvZ1BiT2pad05KTTZLTU5wWWhMNjMzYUQya1JiSXZQdXRSblN4Tkk1OXY2TzVIUXJVZEdXSThFdGFSUjNKYm1Zdm5YMGpIZ0w4VUVqRStSYUhpQzdtcjhkdkVkbHNCdDJWeXRLOEV5ZnYyTldaWXAvUTNIVFJBUnQybTB2YlU1MHUrMzZreHBQZExXRjh2VVA4YnRBR2JXOHdURVlSSFFwVGJ3dFBSTjd1amZuV0R6Y0lNTmZwSFRCOS9zZWJzZGFmekhPZ09idnFtV1lGczB4Q1VJbHJPWENFaDhiN1hGOHBVT01WUHA5clNBYWZIdHhYZHA4cmNJZHNvTlFtbUhiNlVEcmNXNVZDL25CbUNqZ2laUWt5V0tnRCtPejVDZ0ErSXRwV1FjUzVCam43Y3dHZlBkbERCTy82NDFUT3ZiU2Mrd3B0WU0vYXgyRStoTlh5NFFVOGRwbE01NTk0MnY1bnNiTzErNVV4Vld2OWpvNFhObVBhNU5jWUxkZmFvUU9rUjZzcmlJeHJNT2FkZE1iaTNCdHZpWXhnaUtvUnJzRUJJREg0N3pvTm5Ia2hQMk5WakdPalVmZk9sOXEwQ3dhYmFlSlFnV2pEaFNnaEJQSTQ5TDJHRzZaS05FRUUxNkRqcDlibXFCMi9KOTVQby81cnNwWVpMK1hSL1gwUzRNeS84YUx5alFsaFVkcGEwdEhibnZjazZDdGNoNjZ2bldlR05SU1dVd1ZpdjhzcTBXbnBaNW5MU3VFK3d1T01HQlZJQWtqa0JqYlNsa0t5R2NQRjBJVHJCT3NLd2hhNGVlK3R5WEl0aTQ1akhGM1R0RXdkWm90RHpYbDlONmFvRzdUZ1JyQmF5bGM2MEpPTlZTdGRWSGoxdEhpZWNDRCtja1dPdG8xdFR6SGVWdVBMZUx1UmhmY3lwYit4SmZ0TWp0SGFuckJMdUxYSzNFQU5ZRWNJU0MyeVk0VDhoeEhsTExZUzRtcUdldjVJRnRKbGpMaDFtVFk3VzA0RGRGZzAzWGhpYllLUWlsaEtQMWR6TDVFRk5BRWcyQ1NVcDVzU0ZaRW5Ib2hCdFRDOXdwOE5ncERSWmNOUkdtSklxMUFNMHpwdW5VUGxUdGg0M2tySW03ejYwMEo4SFcrR0JiNTh2YWdLWkpNVmlYK3RoZnk3bnFJZC9DcE04NHdlNjY1azFuT2dMa3ozZVJzQno0NTlBMUpvbDRwWnllZ0pLZmJTb1QyaGhCTWRSRVBDU1FxRGFpdFhVaFR5RThkQlRuM0VGTzFubmFOT2hIUjMyQ1NVdFFVQ3VHdGZYWkpCRnZnSm1mQkIxV3JtbnJYUEMyRTZ3MjVhWmFYODcvR3VkRSsyRzVuSUpvV3EzNTlsMkpOMldRa3o1UGE1M3RuWHErOGJOeVhTZHR4K0E2S3pDdkpzRk83VnFmdGQ2MkU2eVZzWWZ6VnB5REpDRjRUUVRsSmhQc2tLTXdXc2dNUFNxZ0Y3N1dBRnAzeTd4UDl5MFhCRklqWEdvK1RPNk14Y1FWQzhGaVpLWDVRdmhCKzk3NGVRcHR2Nlp2dFhYUUlyaTFDUGRKYXFyYkNZRTdaSTcxdU1ac1RHc3hpdlcwOVNiMm4vbE83NisxU0ZLZjg0N2tqRFdCdTMrUlZaUytjL09sRFYzdGVFakJTY2FvOUJ4cUpQeXBGQWJlVTB2UWFQdmtZMDlMUzNhcTJuRlBYbS9iQ2RZNkp0RTZjVnJ3TTBtYllpSm1MRmEybUw2RnFOTzUxU1EvcjFuWUZobmxjaXJuM3FmN3RuU2lDY3VjM25kWlJHNWNZQVBoRWZXTzhPWWZCR0lrY3A3RFVvTjJURm8ra3V1VGkvckJOY0NIR0FWeXk5NG5xYjhUUVMvclJyREFZeDJuSVdsQ21xL1lTaWFpL2JCeGM4dWFUUzhpc2M3WHhtbFpPdEZFNjN6VkVpekJpWnlseGkwUkMyMlJKcFpNZUN0YnRwMWd0VmxtaUxhbDA0cHRHc0cycENPMExBSXR6L2Q5S0ZZUVNVdVVzOVczbGxTSnJacmxxWUxyQVJOWExKWmcxZXVuSmI5eWZLKytZY2hheDJOOTJEVW0rbHFCbVp2bnNjOWI3OTFKRFpiMnRVeUJYRW15VDc3enFJWG1Ob1o2anJBY0hKQmN6RjZ6V2RYV2x5SFgvdWwrMUtaS25JdGc0d1pSdS9MSVJNYTZuT3ZlNmRIRXZlMEVxMzBXQU5yaUE4c2QzTjhrRGJZbHFFRGZRRk43a1VIdFF1WUlGU2JYZE4xeVRkM0JGUy9BTk12ZGxHa1M5SjFNOXAvREFoTWdBWE5wa2dpMFVUSWcxUWdPTW1lUm5DSzk2bzNnTzNiM3YwNXcwWUsvbGNpMTBMWE9lWTRseUxIUHJ3TEJhcDhwcE1qNmpKZVE5NUdRZFphV0kxVXhUM0hOWm5XT1pQODVxOHJZK1dwNTNycEFnL21lNDByTUNuRlNWMlhiQ2RZS011bTdVRHBGRlhKOVl5YmlNcGNlcm1WQjZSa2NzeE1mR3VRVSswQ3dFNW1DdnRhenJMaVhsTlJ3YUc2eHRHaVlOU3ZXdW9xcjV0Smw2eW85Mm11OXJvN2dpdjFDaHFOY2YzTlI2WkFnU1I1MHNCejF1ZkNiNjhUU2dsQkcwN0VTeHNkNjRJRlBMazNyeU45SUlKOWV5czF2SkU5SFVHSXFqcVYwVFdLc1oxMVpaeVVQR2JPK2FXdnM4elVFT3pTdmRNMzZqSFZTTFpLb1grWThCb3IxQlNsWitiYlRkbXZTcWxyZlNDU2lKdzI4cm83b2NwMzJjWXI1YXAxdjY3ckswbDNMTGZNMmVkMXRKMWhMNkFBeURuVk1ndGFCZXE0SDQxalBnM3F5NGVUTWlhMExLcDN3SlFtV2ZvQUZBcC9ybzlLTVBnVEJFR2xLeEhWNjUyeXJobFM3dUsyN1hRbE1ZejRnbS9TR2w3N0w0RXNFbTd0d1BZZERGRGlrdk1Odm5SYUVBTGY0Y01UTEtwWVdTajBpMmNHYzUzVEFYUzVaUkovMmExMVcvNTFBeUpqZmRLYW1lRDZjVFdlNmNlS0NlKzRoWmNPUmxqSHJld3FCYldGckJmN1UzTFZidXg2dGV0clhuOWJwdTh6QnlvSVduMjBKT014ZHVNNXRVdHpqcTQ5WDhaM2cyOFV2bjFwU2FMdnY2c1FsNXR1NmRyTHZydVV4OHpqNjJYVWoyTkVETmdLUUxLRkRPNWhHRVNEYzY0cmdnWXd4NFp4Y2RRTGhUcktKOUphWDNJMFNZeGJrVWdTTFlFL1hDUm9WcGxidW9HVkhpVW5kU2xLQTFueFFaU1IyNjd4aUlZRG9kYVl0NW9KalZXamM5QTBYQUJHUnVWSktKV2RkbVJYZmxiWjExT0FuUzlkQXJNYzY0cUoxZkhGOUpYY3BQTStrbU5NVzQ5THJrSHFIQnczN1M1bUdjdHBOYklQejNHQkhJUUJ3bnd4K3Via2RzNzduSWxodHNvM1FnQ21reFR6aTY2eTVVN2gyblZyQmsvSFpVbUNldGpiRjUxb3ZuTWg5STd3UHN6WFdwYitIZWQ0Mzh3MlhYQlZMekRleTVwQk9OdSt2SnFQV1ZWUTdoNVBVYzRMZFJRNllkRmo0cllYZFA5b0svcjAwV1RmWFQwSGNXdXNZc3lDWElGajhSV1Q2SVhPTTN0bm1zRW9QaXRjY2MyckZuUHFzVys2ekpWSzJKWjBsRjY0ai9LS1p0RVN3dEFYSnNyTm41OXhhMEhaSlBsQjdrNUJsWnE5dEUzSkZjMExyN1N2V0pkYTFiVkNQeU9NRE03ZnVqRm5mY3hGc3pnU2Zqcm5HOU5xQ2tSVWR6dk0xUVVEYUR4dmJiUTJ5NHptT2llRzNQVTVMNTBOZGN2NXlkcmN2RG1DcCtiYmlGb2Jjb3p3QWxyWkhuR0IzNFFYSjNxMzdOemRJMUtTTVEzQmlrdVJhTTB5U09sZ3FGKzAzWmtFdVJiRHNiZ21XWWROQUFFVmZRZHRIRzhEUHRCT2xOcWN1V2dyQkVPUkk1bndmT1dBcE5RUkxQVXhvYUtGY01yNW41Y0R3Z1VKR21GTmJDc0tRbzJLNElXbzNEODhJUVRTNUhNRzZmVFJacnE0RGs5bzJ5TjVFbnppVG1kczRqVm5mOUhIczh6bWNTNXVLS1M2ajBHMWJtbWlmL3pVK2IvbGhhNGc1TjNiY0QvaGV0Y2FYcTQvU1FEd0FHbk5wZ3p4MnZzWTh6N1dPVDFDRHFJMmZhZmtlUjlWMWd0MGRQdnlyN0diUlN2ZFc1akdFTWNJRm91SGZDTzFZT0lkSUpHZ2F5V21aTE1Zc3FDVUpsbnRDSVJtaWVNbmdRNFJxM0loZ0hqODArR28rVy9GUmpscXd4c1AwQzQwVTN4TDlpZ1FZVGZ5UUtoOGVtNFNhWlA5OS9XUE01S3dtblNEL1R0TmovcmJUSUJrL1dqTEJiMmtFNzVBeG96bHpCSUVOQytkV1UyS25yVzhHek1lMGhma2NFei9hK1VVQ3djVytzcjR4RnhNWXhVWVNjbGpIMjNUaWVOaFVjT1FGU3hVYVVMcXh3SHlQcFlHQXBLbUtsV2U2ei84YTI3WDhzRlllNE5aKzRrTm5rd2pScHJLTjc0UjVobENSYlRXM0pzVzJ4OGl6c1JzcXZnL2tEdGJEV0JoTExpQ3JGYTlKNnE4eXdVNHlRSDlKRXdKalA1aW14cnl5SStBSU9BS2JqSUFUN0NiUGJ2dlluR0RiTWZNbkhBRkh3QkV3RVhDQzlZV1JJdUFFNit2QkVYQUVISUdKRUhDQ25RaklEWG1ORSt5R1RLUVB3eEZ3QkpaSHdBbDIrVGxZcFI0NHdhN1NiSGhmSEFGSFlLMFJjSUpkNittYnZQTk9zSk5ENmk5MEJCeUJiVVhBQ1haYlo5NGV0eE9zcndkSHdCRndCQ1pDd0FsMklpQTM1RFZPc0JzeWtUNE1SOEFSV0I0Qko5amw1MkNWZXVBRXUwcXo0WDF4QkJ5QnRVYkFDWGF0cDIveXpqdkJUZzZwdjlBUmNBUzJGUUVuMkcyZGVSKzNJK0FJT0FLT3dLd0lPTUhPQ3ErLzNCRndCQndCUjJCYkVYQ0MzZGFaOTNFN0FvNkFJK0FJeklxQUUreXM4UHJMSFFGSHdCRndCTFlWQVNmWWJaMTVIN2NqNEFnNEFvN0FyQWc0d2M0S3I3L2NFWEFFSEFGSFlGc1JjSUxkMXBuM2NUc0Nqb0FqNEFqTWlvQVQ3S3p3K3NzZEFVZkFFWEFFdGhVQko5aHRuWGtmdHlQZ0NEZ0Nqc0NzQ0RqQnpncXZ2OXdSY0FRY0FVZGdXeEZ3Z3QzV21mZHhPd0tPZ0NQZ0NNeUtnQlBzclBENnl4MEJSOEFSY0FTMkZRRW4yRzJkZVIrM0krQUlPQUtPd0t3SU9NSE9DcSsvM0JGd0JCd0JSMkJiRWZnZjNiRVB2WHFZYlJFQUFBQUFTVVZPUks1Q1lJST0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTQiPjxnPjxwYXRoIGQ9Ik0gNjAgMTcwIEwgNjAgMTk5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCAyMDguODggTCA1NS41IDE5OS44OCBMIDY0LjUgMTk5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxOTBweDsgbWFyZ2luLWxlZnQ6IDgwcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPlllczwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iNzEiIHk9IjE4NCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE1Ljc1IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUVnQUFBQS9DQVlBQUFCRHlvNCtBQUFBQVhOU1IwSUFyczRjNlFBQUJneEpSRUZVZUY3dG1XZUlaVVVRaGI4MVljSWNmeGd3Z0FFRWM4NDVMdW9xSmxSVVJCR3pZc1FmWWtURmpJazFZRnAxVjFsenhvenBod0VUaXBoQTBUVkhGRU9mcFZwcWUrNjd0Kys3dSs4TlF6Y01NL05lZDkzcWMwOVZuNm9lUnhtMUNJd3IrTlFqVUFCcVlFZ0JxQURVTFlrVUJoVUdGUVoxUXlDRFFhY0I1eVh6VGdjdUFQN3QrUFQxZ01lQWhaeWRHNENqZ0w4NjJoN0ljdVdnQllFSGdFM2RFMzhEdGdKZTZlQkZsZDMzZ1cyQkx6cllIZWpTbUtUWEI1NEc1blZQZng3WUZmaXhENDlrOTlTRW1mOEFPd0JQOUdGdmFFc2lRUHA5TW5CaDRzazV3Rmw5aEpyWStHUUFhQzVucjE5YlF3TkhEL2JIdkVKaUNyQzE4K2hQWUp2d21kaVVPeFlGSGdIV2RRdWVBdmJzazQyNXo1MGw4MUlkVkpWVVh3dTVhRWZnMnd3UFpPOXM0RXczOXdkZ2UrRFZqUFdqYmtvS1VOZFFVd0orTklBMG05dnBTY0FsbzI3bm1RNVZLZWwrUTIwSlMvU3J1MmMvQ093Ti9KN3B6NmliMXF2VVdOTTI2L1ZMWGFqSnpxWEFzVzZIWHdZYm13RWZqYnBkdDNDb3JoWTdFYmc0ODFUYkRialBoWllFNXI3QVhSbSt6QjZTdW1URzRjQ1d3TEp1elRkQmp6MEgzR0toMjFaY3pnZnNEaHdNckFVc25MekFsNXBzMXdFMFAzQ3ZDYnRvdCtwVXF3cXRYTFc4T1RBUldERUR5SjhNeExzelpNZWN3SEhBdWVGSGZ6Y04yVDRDa08yLy9lU21hcjRxMUx5QXJBcXREdzNVVDJ1OEVtdkUwRlIzTlcxRTMxOExIRk5UcWdpUUsyekRPZmI4bkJHMm13RFNZaUY3VGZLa2VES2xnakJITGZjNktUOERyZ3VoY0w5SkNqRjRJNnZidkthU0szVU1QU0F3OGxibnIzeTZEWmdVdE5qYnhoRFoxb2w3U2hMU21xdVFsQS9UUnc1QTh4ajFka25pVjJXSUVyT3Y0WExVY2hXb0p3QlhwZlIyUG01bkc0eUh4b2lOMkZ4dFhDZW5RbGRER214blFMbW1hbWh2VndLSHVpOGZObEg3Unk1QW1xZWorNW13aWNXY29lK1RwSmRUdThraEpYTUpSdzBsOC8xdDgwMmRnN1JlVkNFdE83NVdYRFVvL3hkQ2lDMWk5bThHRG1uSVdVdmEzbGF4TlYrRmVuRmo0T00yQVBVS3RZaFhybHJlMEp5Sk5Wb2JuU1MyNjIyclZSTEJGYk5VODhXeHRwMTZzZWpPQVVockx3UDJNMUFFdkNMams3WUFLZm5kRHV4VndWWEY4a1VacDR0T0ZmV2E0bEMra00zY0lUa3gxVTFXSCtzTTkvOEtJYmU4R0JMNVV2YVpYdHcrSVpjOW51RmJwUTg1T2NndlhNbmUwTkx1UTdVdjlnQithZGpsM0ZZTTcyVHpwSzZWRU4vS1JTZklqalVzUkJXcUdqUGtpM0FxcGlFY1RiOWhPVTVGdEFSc1V6ai83MUpiZ0xSUW91MUF0eW4xZlhLT2ErV3ZaMFBDWDYwRklFMVRYdzhKV0dHbWZCaEhWVDNvN2Z4cW9sTWlWc3lxN1hjTkVpQ3g3dVhrV0cwQ29PbDdTWU1OakJWeHJ2YWtQSFY1VWpUM3N2VkI4T2xHNE01d21uMmVUaHFMQU1VOWlxbnFJcWlMbVR1a2xRVHVkeDd0M01WeFhyOGhsaktvNnUyMzlTVm52cm9UQ3NQRHJQbm5XekZWNjJkbzdnMlNRZEliRW13NmFUVDBsallCM3N2WjVVeWFveEpuZVFOSyttaWRIbUdvOER4ZXlYeVFBS215MWhIdFc3cmp2YXlmU1NDME1TUHBJcVd0cm9Vdm1OODFOVDV0a0FESmNSV1JSN3NkWEczL1p4KzdOYnVmd3pZcnJTUWxyQ05mK1NlSG9hbDgrZGxLcURjSERaQWNsbmFKejUwV2xQVVdRWHkray9uYUpTeWxqbFVPNkc1TjdRblZjR3JEVkwwQTlhU1VlSnRHV3NNTkRTQWxUTjIwcXE2S0kvZkdZem03VTF2WnJSVWJCVkFjNlF2SXFRKzFObVhRMEVKTXpxVGRSMzBta05UMTYzWGpxc1I2anlYVkNJWllwOXZmcngxQVZWZE9kd0JIQW1xS1ZRMFZ0bXFmcUJxSVl5aEpPajVjdVVMRllTdzY0K2RxcHlwOEZEYmF2RTRjTmV3VVZoT1MwMGJ0RGwwRzZCNHZIVlV2UU9Db0dhYjVVUXd1WThlL21tK0xPeU9xNG5XUXRDNVdvNDErZFpEZmlFNlA4NjJyMkpRZjB1OEZwRm9razN2VVZMMGFjam5QR2RFL0duU1M5azdxMldyU1g1L1prOVphM2F3b0ZKVWo2b1pzaTJHeXZVQU9Nblo3ckJwek9uUGlHQ1pBMFllNld3MnhSV0E4WkVXeSt0MXRKSUdZcXNSOWtMVnZmUmNpMnBZMnV3bFFEMzJFN1g0QXlud2hZMk5hQVNnalZzZkdxNTVGdXlnTUtnenFScTNDb01LZ3dxQnVDQlFHZGNPdjVLRENvTUtnYmdnVUJuWERyK1Nnd3FEQ29HNElGQVoxdzYva29NS2d3cUJ1Q0JRR2RjT3Y1S0RDb0c0TStnOHN1VlJQdUZJcGVnQUFBQUJKUlU1RXJrSmdnZz09Ii8+PC9zd2l0Y2g+PC9nPjwvZz48L2c+PGcgZGF0YS1jZWxsLWlkPSJXSXlXbExrNkdKUXNxYVVCS1ROVi01Ij48Zz48cGF0aCBkPSJNIDExMCAxMzAgTCAxNDkuODggMTMwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSAxNTguODggMTMwIEwgMTQ5Ljg4IDEzNC41IEwgMTQ5Ljg4IDEyNS41IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxMjBweDsgbWFyZ2luLWxlZnQ6IDEzNXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMXB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vd3JhcDsgIj5ObzwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMTI4IiB5PSIxMTQiIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNS43NSIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFEZ0FBQUEvQ0FZQUFBQzFnd3VtQUFBQUFYTlNSMElBcnM0YzZRQUFBOHhKUkVGVWFFUHRtVm5JVFZFVXgzK2ZxY2dESmFXSVJJbFNNanlKaUpBcDg0dndRSVpDaGlKa0tJbUVrQXh2NWtJVUhneVpsUkJLa2ZJa252UXBTaDRROXIvTzBmNk9lKzdaKzV4TCszN09lYnZucmozODluL3R0ZGJlcDRGbS9qUTBjejVLd0hwWHVGU3dWRER3RmZqdlhQUW9NTWNTNVJVd0duaVhVNmoyd0dWZ2VOVCtDekFNZUpLelArOW1TUVdUZ09wd0w3QUMrT25kTzlRRjRBOWdMSEM5dVFLSzZ3VXdFbmp2Q1ZrWENzWk1lVnkxcmdDL0FxT0FleDRxMWhXZ3VCNEQ0NEFQanBEQkE4b3RGd050TEtDdHdFYkhxQm84NEdSZ01MREJBdlJ4MWVBQkp4bVhmR2lTODAyZ253V3BmVGpSNU1kUEdhNWFGTENiS1RMbUExcm92a0RyYUx4dndFdmdGSEFhZUpzMmo2eEVMOEJMVVRWekJXaGhkYlFPMko3aHFua0J1d0w3Z0NtT2UvMHNzTEpTeGVVS0tMczl3SEpyUUpWZHlvMVNPTzNKQXpqZXFIVUdhT2NJRjVzMUFoTGtnZDNPRlZCdE91ZHdWVi9BSWNCVm9FTUM3aHh3ekxqcXMrajlBRk4wTElrcUxOdjBvd0VjQXp5S1gvb0FxbzFXNklLSHEvb0F5aTFWRHZheFpxeGlmeGJ3UEVYTi90RjhlbHIvTjZtNmZBRmJBZnVCUlZhSGY2eWE5WjhQNEdhem56ZFpiVjlIZS85TmhxdDJqeGFtdDJXM0Z0aWgzNzZBYWxOcHBXOEEweXBFVlZmQVRzQ2RLRkpxREoxY3BnUG5IZmVoVkZZMGpYa1VZWFZFYTh3RG1PYXFhNENkaWFqcUNqalVUT2dXSUEvUm84Q2x2WlNWaG1MK2pzQTFjL1ljRkwzNGJoWnNoQ2t0NytjRlRITlZSZFU0RUdnc1YwQ0YrRjJXV3R1QTlZN3F4V1pLSzB1dE5xdUEzWGtCMVU4bDMxZVFtQXA4amdaeUJVeE9ialp3MGhOd0lYRElhcU5Zc2F3SW9QclN2bFBPc2d1QTFaWWFyb0RKbTRTNHdQQmhWR1YxMFdxZ3RESzNLS0JLcHdQQWdrUlVqVjIxN2dIRjFRTlFGTFZ6a1M2YVpnSXRIUytkZ2xVd0ZpNFpwdlZleDZ3VGpvQzEySU1WQTFWUkY0MEI1YXBIZ0htV3E2bzIxTDVRUVo1MWJaZ01FTFdJb2lwR0R0Y0tNTTFWZGF4UzBUd3dBays3RnkyYUI1T0ZRdUU4bUJiZEZONlBWd2w5YVlCRks1bmt1SVVybVRRR3VhcnkxNHdVZzJvMzI3V3NSYmVZOGRWZnJsbzBLemYxTXVmRXU4Yi91MVF3ckFaWXE5TkVrODhOdGR5RE5rK2FxMlo5bS9BNUQrb2JpZ3B5K3lsOEhzeFNMLzYvYlZUaFRFZzB5QUtVZVpFVHZkS1Y3bzkrUDM5TFFRMmdTNnJiZ0FKSS9MZ0F5dmFmMzhtNEtwZTBVeTQ2bUFNd2JsTHRWdTFwZEFaVU1aRjZFZjNmZlFETnExU3c3VW9GZzVYR2NXS2xnbzRMRmF4WnFXQ3cwamhPckZUUWNhR0NOU3NWREZZYXg0bVZDam91VkxCbXBZTEJTdU00c1ZKQng0VUsxcXhVTUZocEhDZFdLdWk0VU1HYU5Yc0Zmd0hhR2tGUEJBZUZRQUFBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtNiI+PGc+PHBhdGggZD0iTSA2MCA5MCBMIDExMCAxMzAgTCA2MCAxNzAgTCAxMCAxMzAgWiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDkwcHg7IGhlaWdodDogMXB4OyBwYWRkaW5nLXRvcDogMTI4cHg7IG1hcmdpbi1sZWZ0OiAxNXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+TGFtcDxiciAvPnBsdWdnZWQgaW4/PC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSIxNSIgeT0iMTE0IiB3aWR0aD0iOTAiIGhlaWdodD0iMzIiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBV2dBQUFDQUNBWUFBQUFtaGZPT0FBQUFBWE5TUjBJQXJzNGM2UUFBR3I1SlJFRlVlRjd0blFmMFBVZFZ4Ny8wS3AySUlZQ0FIRW9RYVZJRUFncWhGNm1oSnBHT05KVWlKVUZLYUJwUjJnR0NxQ0F0b1IwSklMMkVFam9IRk1nUlFhcWgxMUJFaXZ2SmYrWmtHR1ozWjkvYjMzdTdiNzl6VGs3Ty8vZG1wM3p2N0hmdTNybjN6dW5rWWdTTWdCRXdBcE5FNEhTVEhKVUhaUVNNZ0JFd0FqSkJleEVZQVNOZ0JDYUtnQWw2b29MeHNJeUFFVEFDSm1pdkFTTmdCSXpBUkJFd1FVOVVNQjZXRVRBQ1JzQUU3VFZnQkl5QUVaZ29BaWJvaVFyR3d6SUNSc0FJbUtDOUJveUFFVEFDRTBYQUJEMVJ3ZXpSc1A1UzBsT1N0cjhvNlJxU1R0NmovdHlzRVRBQ2F5QmdnbDREdkJrK2FvS2VvZEE4NU9VaVlJSmVsdXhOME11U3QyYzdjd1JNMERNWDRNRGhtNkFIQXVicVJtQ2JDSmlndDRuKzV2czJRVzhlYy9kb0JGWkd3QVM5TW5TemZOQUVQVXV4ZWRCTFJjQUV2U3pKbTZDWEpXL1BkdVlJbUtCbkxzQ0J3emRCRHdUTTFZM0FOaEV3UVc4VC9jMzNiWUxlUE9idTBRaXNqSUFKZW1Yb1p2bmdOZ242ckpLdUorbldrcTRyNlJLU3pwU2crSCtTUGlmcFRaSmVLdW5Ea241ZWdYSStwMXRLT2o0OGQ3YlEzNE1rWFRucDd6dVMzaXpwR1pJKzBOTFArU1VkTHVrd1NRZEtPbjFvaytDZVYwcjZlMGxmV25OODU1SjByMElmL3hQbXdQZytMZW1YRmYyNHlnNGlZSUxlUWFGMlRHa2JCQTBKSFNucHdSa2g5eUgvV1VuM2JzajhIVDBFVlNMbzEwbTZtYVNYU0tML3J2STJTWGVWOU5WUTZReVM3aS9wNklyeE1xK25TbUp6YVN2cmp1OURZWHovMlFlWWY5ODlCRXpRdXlmVHJobHRtcUN2MkdpdXI1VjBrVFZnZm1oRHNrL3JJT2w4VHJkcWlQbFNnV0JydTRXa2J5dnBSMEdydm0vdGcyRnNqTEZOeXkyTkQ4MmVyNFNvbGZkMXg3anVJT24xZlJYOSsyNGhZSUxlTFhuMnpXYVRCSDB4U1c4SlpKbVBDelBCK3lWOUwveUF1WU9jSU9jb1RBQnlPa2pTUjFvbWw4L3BXRW0zejhnUGM4bkhKSjBsbUZjWVcxNGVLZWtYUVNPT3Y2RVp2MEhTMXlYdEorbW1CYTM2cDhGMGMyTGwrUDVhMGdNa25UMnBqMG5qclpMK1Y5S1ZKRjIxME5aM0pkMm9HY01IKzRUczMzY0hBUlAwN3NpeVppYWJJdWd6U25wdVk2TzlSemFvNXdSeng3Y0tnMlV0WHJQUnRsOGc2VExaNzgrVzlNQVdMVFdmVS9wb3FULzZ1V0hUeDhzYk8vSjVrc3Bvd1BGOVlGUEFOZ3pacDNad05OOUhORVQrbUpIRzEyYkd3ZjdOVjhPaFdUOG5TVHBZMHBkcmhPMDY4MGZBQkQxL0dRNlp3YVlJK3ZLUzNwMFI0RkdCMlBvT3ZDNFl0TlpVaTBRRGhsUTUzTXRMRzBIejk3L3BNRDJneFQ1ekJVMlZnODFqd2dGaWZQeFRRVFAvNW9EeGdROW1pMmo3emgvRkZ2NXdTVS9LZm5oYzgrL0hEaEc2Njg0WEFSUDBmR1czeXNnM1JkRDNDUnAwSENPYUh4NGNYNnNjOUYwa3ZUaXArNVZnQWlscGppV0N4aE1FYjVFZmQvU0hXZVc5elRndmxOVzVYemIyVWhNM0NGNGc4ZjM1ZG1PaXVIYnd1S2paUVBCV3VYNUQ4cC92d2FPMEdRekZzaEp5VjVzaUFpYm9LVXBsNzhhMEtZSkcyK1hRN2VxU0xpb0pVOE9qQjB6cktwSk9TT3kwWFhib0VrSGZLWmd3dXJvOFoyUHJ4ZHNEbDc5WXZ0RFl6YS9WbURmWUVMcktaU1c5cHpsUVBGK29OSFI4bUd1ZVZZbEhqZ1dQY1JESzRhdkxqaU5nZ3Q1eEFXZlQyeFJCcjR2cU9nVGRwYzJtNDhKT2poMmFqU1NXVjBtNm82U2Y5VXpndDhJaEo1c1BaUWhCUS83WGFYeWYvN3NTSlB6SEdSY0hsTEZnbXNHMzIyWEhFVEJCNzdpQUYwalFYZmJxWE5vdnpBN2lhb2x2SFlLdTNRVFNzVDZxOFI1NVl2SUgzQUxSb24rNHJPVzd2Tm1hb0pjbDh5bHIwR2lLVndnYUxZRWoreWVpR2FLaHZxdUpRcnk1cEZNcVJKc1ROQjRhQko3MGxYVUlHbE5QZnZEWDE5OHRNcE9HcnlyclEyeEhmamRCNzRnZ0s2ZXhiWUxHTXdFWHNzdEp1bkN3VVYrdENaM0c2NlBrQXgybk5ZU2doMmlvMnlCb1RDcXZycFJYck1ZQkpCR1ZtR1VvZUg1Z0srZXcwV1dIRVRCQjc3QndDMVBiQmtGRHZBU09FRzFIVG90VnloQ0NmbEhJYlZIVHp6WUlPczBWVWpORzZneXh5ZGUyNlhvelFNQUVQUU1oalRqRVRSSTAyakordmdTczlPWER5S2RJWkIxbWhEUndwQzJhTUorVENYckVCZU9tdG91QUNYcTcrRys2OTAwUk5QNjdUNWIwa0o0SkVscU5QWlh3Wld6SC9FZFNJR3pScTdyWjdTSkI1MzdYdGtGditzM1pVbjhtNkMwQnY2VnVOMFhRaDBoNldhSUJ4K21TYjRJQWxQZUZWSjAvYWNGaHlDZjkzRFJvTmkzQ3VJZVUyd1JYdS9oTVYrVGlrSFpkZCtJSW1LQW5McUNSaDdjSmdqNTN5T2xNa0Vvc2hFQmplMjFMS0pSUGM1Y0p1dGFWTDhVRUZ6dGM3V0loZ1JPSGpXMGIzTWpMeHMxdEN3RVQ5TGFRMzA2L215RG8zT09BbWQ0dEM5M3VtMzJ1TWU3U0lTRVhCSkNWTG1ieTY4T2lGUEZZNnc3WTE3Wi9uemdDSnVpSkMyams0VzJDb1BNOEdyV1JmWEdxckVtMFRKTG14N0pMQk4yWG5qUVhPUm4rM3RuNFRwODUvREQwK1pHWGtKdmJKQUltNkUyaXZmMitOa0hRZWFLa0g0VFE1bzlYVHA4d2FHelZrWkI0YkpjSW12bVFBd1FQbDY1a1R0UWp2ZWx4SWZBbXdsZVRDS29TYWxlYk9nSW02S2xMYU56eGJZS2dieExTaGFZangzNzZsSXE3OWRBV1NRSjBnV3phRUJsSmpiaitLUzl6T3lTTTR5ZHRLTGJsdHV1eVNwNHdwR3E5M1FxQkx1T3VJcmUyTVFSTTBCdURlaElkYllLZ0x4NXlRUk1wR0F2dWRJUTRQNzFGYStSS0xFaTg2NnFwdGdDUHVSSTAyTHdtSkQzSzA2Z2VJSWxMQ3BoeldsNGhDUk5TMXgySWsxaG9Ic1E0Q0ppZ3g4RnhMcTEwM1Q2eTZoeHluMXpXMU9PYmpIQkhGQnFFV0Q0cTZSUGhONjZSSWdEbHZGbmQ3d2V6UnBxcnVTMUVlbTRFbmQ3Y0VxZjl5WEM3T1A4bWhQdlNCZXcrRTI1VElTV3F5MElRTUVFdlJOQmhtcHNnYUxyQzFZNVVuamRlQVY1YzhlNGNDRDY5TXFzdHlkRGNDSnBydExnWlpzakZ0R1RvNHdJQ1gzVzF3b0thOHlNbTZEbExiL2pZTjBYUWpJd2NIRVFUa3B5K3BxQ0pQeXdFWkhBUFlIN1kySmFsYm00RVRhVGozWU9YeXRHRlMyaFRyUGppNEVzRXI1YStBOFVhakYxblpnaVlvR2Ntc0RXSHUwbUNqa1BGdm56UGtMK1lMSFljZmxHd1M1T05qYUNMbHphZUNtaUo2UVd0K2IyR3VKY1I4c3hkZm1tWkkwRWZGaVpBdmhIY0NVbXZHbThhajJhZzV6ZkpwYkE1WSs1eFdTZ0NKdWlGQ3Q3VDNoZ0M2MndnR3h1a081b21BaWJvYWNyRm85b2RCRXpRdXlQTGpjL0VCTDF4eU4zaHdoQXdRUzlNNEdOTzF3UTlKcHB1eXdqOE9nSW1hSytLbFJFd1FhOE1uUjgwQWxVSW1LQ3JZSEtsRWdJbWFLOExJN0MzQ0ppZzl4YmZuVzdkQkwzVDR2WGtKb0NBQ1hvQ1FwanJFRXpRYzVXY3h6MFhCRXpRYzVIVUJNZHBncDZnVUR5a25VTEFCTDFUNHR6c1pFelFtOFhidlMwUEFSUDA4bVErMm94TjBLTkI2WWFNZ0JFd0F1TWlZSUllRjArM1pnU01nQkVZRFFFVDlHaFF1aUVqWUFTTXdMZ0ltS0RIeGRPdEdRRWpZQVJHUThBRVBScVVic2dJR0FFak1DNENKdWh4OFhSclJzQUlHSUhSRURCQmp3YWxHeklDUnNBSWpJdUFDWHBjUE4yYUVUQUNSbUEwQkV6UW8wSHBob3lBRVRBQzR5SmdnaDRYVDdkbUJJeUFFUmdOQVJQMGFGQzZJU05nQkl6QXVBaVlvTWZGTTdhVzUxOTRWM05yOWMwbG5iSTMzYm5WR1NEQURkN3ZsM1RSTU5ZZlNUcEkwa2RHR3ZzNUpiMU8wbldUOW00cDZmaVIyaCt6bVhOSXVxbWtRd0lHRjB3YTUxYnpUMGw2dmFRWFN2cU1wRitPMmZtYzJqSkI3NDIwVE5CN2crdWNXelZCUzJlVDlFQkpSMGs2VTZVd1Q1SjAvMmJqZWNjU2lkb0VYYmxLQmxZelFROEViQUhWbDA3UUIwaDZUYVBsWDNWRldSOHA2YW1TMExBWFUwelFleU5xRS9UZTREcm5WcGRNMEJlVDlCWkpseW9JRU1JOVFkTG5KSjFCMHRVbEhkZ2k2TCtWOU1nbGtiUUplbTllZVJQMDN1QTY1MWFYU3RDWU1vNlJkSGdtdkM4RmN3ZDI4NTludjUyLytmZGpKVDBnK3p1MjZEdEpPbmJPQzJISTJFM1FROUNxcjJ1Q3JzZHFLVFgzbXFDbml1UEJrdDRvNmZUSkFEbjQ0KzlmNkJnMDNIU1lwQmRrejM2eTBiai9TTkxYcHpyaE1jZGxnaDRUemRQYU1rSHZEYTV6Ym5XSkJIMUdTZjhpNlk2SjRQQmVnV0EvVUNGTStPa1JrcDZVMVVXTGZubkY4N092WW9MZUd4R2FvUGNHMXptM3VrU0N2bkNqS2I5WEVqYm9XSjRkVEJ1MXJuTy9LZW1kRFNGZkptbmptWkllTk9mRlVEdDJFM1F0VXNQcW1hQ0g0YldFMmtzazZHc0g5emcwYVFxa2pQOHpKby9hQWtlOVdOS2Rrd2ZlSU9tMmpYYjlrOXBHNWxwdlNRU2RPL0ovc1ZrbzE1QjBjaERlcFNYOWVSTTRjSXZtVUdQLzhMZGZTTUxtaGNQOFB6YzcvN2NxQlQyRW9HbjcwS1RkRndYYlcyVlhwNDV0MWVjNU5mOURTZmNNbjUweFlJQ1Q5WTlLZWxad2pmcGhHQXpZdkRZWkdKK2Z1RDdWRkh4Z2J4YjZ1cHFrODRhSGFQczlrdENzZUhHakcxV080WkNnQythRk85ZWZOSi9TTjBtQ1EranlPMkZ1eUJPM3J6aTNtam5rZFRnQUE3KzdTN3BoTmljT3YvNnVJYVFQQm1MYWE0SWVFcWlTanlVUHBMcEk4MTdjSndTU1hDS3hBWCtqQ1N4NXU2Um5CQk5GZnJpWDQzUEZ4bGI4cDVKb0F3MzRaMkdkNGJFeHBBeDVuNGEwTy9tNkptanB1ODBDZkh3VDVmZlFDbW54YVlXYlQ5OUxQV1JCclVPd0RIblY1NGs0NHdEbWtqM3ovcjZrZTBzNkxrUkREaVZvMXRnZHdrbit1WHI2K3F5a2V6U2tCMkdzUXREMEJXSGlOZEEzTDRiQ1puQ0VKT1Q2NHdyNXh5cEQrbm1GcFB0S09zdUVJZ25iQ0JvTjk4bkJCTkVIQjdMQ0Z2eWh2b29qL1A0UFlWM0Vwb1lxTVNNTVlUdE5MSjJnZVprZmxRbS9UeElmbG5UclJoUDhja2ZGS1JNME1pY3k2K25aNlhqZnZNSHAwMEhyakhYN05HZzBURjc0aC9RMW52ek9Wd3Vmc3hjUHo4YWYralJvTlBRbmhxK2dBZDJkV3JWR3ByRk41b1I4bnpDZ0U2TGdpS0RqMDN3S29kNGxnbVlUNFVCdlNDQUpHeHdIZ0s4ZWdNWFFxaVViTkdOOTN0Q0c1bGgveVFUOWxmQzVmcjlNY0x5c0h3c2F6dzBTYzBkYTdXM0JCdmE5RnFGUG1hQ3gzYUVOcDI1UFVadU1BUVBuYmc1bXJpZHB2MngrNUkyNFN2SzNMb0ptYlQyc3hRVENGOGhiZzZzVWZZQXorUmxpaWFhbDMwMysxa1hRa0NZbWtuc1Y1RUZmNU1Eb0M0U29kZjFxbXhOa0JRSGovbFdhRXlSOStXYWMwWXkwelZ3Y09VRmp4c09lbThvMkRTQkIrK2VMS3ozc2kxRC9WekJiNE5jOGRpbXRJYjU0cnlQcFA4YnViSXJ0TFptZ2MzbGdqK1JrT05XTXdlZjNKTDBzTzBYbTJlY0dyUWk3V2w2bVN0QlhDamJFOHlRRGJ2dk1yL21NN3lKb0NCVk0wNDBBY3duYUR4dEVhci9FWm93WkJFemJ6Q0J0Qk4yMkVmQUp6dWFMemJRVUNJRUduRy9PUkx2ZHBpT3BGY1RBeG5MbUREL2E0Yk03RFVObVRyaVRZVWJDcHB1WEtSRjBPalpraE4wWUdlVmgxVmNJUVNLcFJ3WFA4blhBZWNXWUpackdYcHF0SWI3OE9DdXE5UUlaYzB3YmI4c0V2US95eDRYUDQ3WTQvL00xMnM4cmczMHpDdW1uUWNzOGNTWUVqWmI1a3ViUTgvYkplTkZHK0RlazAxWXVGRjVXeUNrdmJRUk5KTmkvTlJuSmZqOTVBQTJXakg2WVNkcktaVU5HTmc2Vjh0SkcwR2g5YVA1blR4NUFXNzFkcytGK3U2T3Z0a0NJdXdXdmdmeFJUQ2pSRGg5L0F6OE9QdC9YMFU5Ym1QTVVDWnF2Q0x3czBJcmJTbWsrWTJkcmJEUEQ5WDI1ZGd4N25qK1pvUGQ1WjNBSTFwZUU1YmViVHlzV1NFb2ViVDZkVTlTZ3J4bjhTVlB0RDgwUHJiV3YvRTRnUVQ2TjA5SkcwTmdsK2VxSUJaUEZqVU0raHI2K1Nsb3F6NVFJbXZYTEFSODI5VmhxVEJXeExzOXpRTXhCWVN3RVVOeW8wZEp5ODFVSnZ6WXl6K2RJZmdrMCtYUVRtUnBCRDVFUklkamdIZ3ZtUWp5aXVzNWwrdVFlZjBlUmVIU2pJZjlWOXNBUXVkYjJOZmw2U3lmb29mYXNuSGdKVmIxV1kvdGtnYVpsaWdUTkFSb0hmWDFFMUxabzg1ZVNlaVdDeHVlVktDOXMzYkh3Yjhpc1pBN0sreXVSTG5WS0JNMUI0cnNsRVJBUlN5MXB4dnA1RzN3NjR6S1hmMVdzZzE5cFRsTWo2Q0ZhY083ZlBOWmMrRXJCTlJFWHY3VFVhUGFUSjl0VkJyaDBnaDVDSE9ETEp6Zyt1NWc4S0cwdjg5UUlHcC9qTjJjbjlIMGVHUGw2NHN1QnFEQk1IckdVMmlqVnUxWG1QOTIzVm5NQ2FDTm9TUHRmazhiYU5zeXUva29iQ3FIRmFIR3hsSHlNOHpwRDV6UVdxWFdOc2Mwc2xCOFMwc2FRK2VReUhtTXViUWU5UXp4cyttUXd1OStYVHRCM0RYYlpXc0g5UmppcGgwQml3WVhzYVZrRFV5UG9mR05CazhYRmtNMm10dUJsQVJsZXY0ZWc4Y2hnTTRocjY2dmhLMk5JY0FLdVZkaDFVM05TaVd4eXJSWVRGSnRCbjU5NlBtZStMR2dybGp4U0xTZWt0bzI1Qzh0OFRtT1FXdHJmT29FcXRNTVhUNjI3M05oQk4yMEh2YXdqZksyN3poSnExKzhzNnkyWm9BbE13SFZvcUtOOVRXREkxQWc2SjgxVmJZWjV3RUJKZytiek5MVnJzd2x3OFBTREFXOUlhVFBJQ2JxaytYNiswczZkRCtYS21Zc1pXaHRtRHFJT0tSeDJZZ0xnRTV6Q1hMQ1ZmM3lOT1UyTm9KRVJCN3MxWld5Q0xwMDdjQ2hQaEd1Yksydk5PR2RmWjhrRXZTcEo1VnJicTRLemZtcGZuUnBCNHpyR09HUEp3OXhyRjNJK3J4SkI1OXJvRU50bU9vNThJOHdKdXFReDFzNmpyMTZPVHg3aXZpcCs2WnltUk5CRHh6SW1RWmN5M25HdUFPYUxKbWNXNlpJSmV0V1hySVo4YStwRWtxalJ5THNJcGViNUllUHA2cXVHb0d2RzAwZVEvRzZDcmtIcHREcnJtRGkyU2RBbDg5SFFoRXJEa0pwUmJSUDBhY21TYXNWV1EzWTFkVXpRM1lpYm9HdFg1TDU2Y3lYbzNQekdqZDZZSHI4NWJQcTdXZHNFUFp5Z3llUkY1RlFzcGNRdFV5UG9wWmc0aG5xbTFMN1ZObkg4S2xKam1qanVrZ1VHclhyUVd5dkxXZFZiTWtHdmN0QURYbmx1MmxMeThLa1JOQ2szOFV5SVpWWDdlODBoNFY5STRuTFBXUGJxa0xCMGtFaFlOUWRMWTVjOFduR29TWUR4NUllYXE3VFJOYSs1YXRENXU3S1lUSFUxaTNUSkJMMktxMVRKbjdpVVdXc0lRZGRvNUcyeUxKRlVhWUdUVDRTREY5d0VLYXU0MlowMUhEUmlINHlscExIbW04RXFibllYQ0Y0VGwwdjZLcm5aNVJ2R3FnZVNmZS9LQVNIaFVob1FNOVMzTzE4N0p1aDlxSnVnTzFiZmtna2FXTWpCd2UzQnRhVldreHBDMEhsZGtzUGduMTJUREtia0wxd2k2TkxHTWpUQnphcUJLcXZjb2xFYnFKSzc5QTJOREVYdU1jcVBGS2NjSEpPeEQvOWJ2RjZpWjA1cEl4eDY3Vkx0MnFsZGkzbTl1V3JRcTg1M0VjOHRuYURiOGk2MENSOHlUM01FdEQyL0RrRVBNUW5rQnl5TXUrMFRNZGZVaDg2ZFRZTjh3V2twYWRBbFRYdEl4R1lwUHdaOWxqUm8wbmZ5WlpCbTV6dEswbU1xTnpqYUxlVVpxVEZiRFUyem1hOGRhOUNMb05qMUpybDBnZ2E5Mm9SQkI0WmtRM3greDlLbWhRNGg2UHlRcEZZTExHV242eUxvZFpMOThJbFBLczQ4eldSdHNpUXkvN0daUUtaOXBaUVN0WTJnMnpMTWtleUlxNmI2Q25aaHlCZ3pWU3drRFNKYWtvdEswN0xPWmxEYUJFelFmZEx4NzR2Mmc0N2lyMG01Q1VHUjJ6aTliYUpMZ3hwQzBLVjBtYzhQR2RyYU11eVJhL2poaGV2b3V3aTZMZDFvWDdwTWt2ZGo2eVY5WjE2R3BCdXRTWGhUd2puMjJaWlg0dUJ3bDJHYWQ3b210V2xidm1IdUVpUTNkWDRGRnZWSjVQUGdqTXk1b2d1WHdEYVRWQ2xWTFUyWW9FM0F2UWhZZzk0SFVWL1NlbEtTNWtuWHU3S21EU0hvdG9pNDU0UnNjU1JRVHd2WjEvQ1M0TnF0VXVrNkJXOUwyUDluelcwWi81U1JFbXVERzAwZ0h5Ny9MSldoQ2Z2eGJjVnVURTZQUEdGL1YzSjcrbTRqNkpJV0hBbVFDeGl3NmVka3k2VUFSSVNTb1M4dGJOWmQybmRiYm1lUzFaTmNLWlVWK0xWZDltQ0NQZzMxM045OTdJMnJsd1NuWEdIcEJJM1drMktRWHZPRDVrZytodFMrR1dYWnArRU9JV2pheEUrWjNBTzVQUGpjeGpNQmJiMTA3UkMvazZpSkd6QmlydUUrTnlVKzV5SC92T1J6TDExNWxlUFZkK1ZWcm5IR1B2dXV2TXI3NlNKb2ZrTldIT3FsaVp4aVgyQkVibzJZTjROTnFuVHZIdlVnN0JJMktWYmNTUDZtd3JwSSsybTdNaXh0WjJ3aW11c2hvUW02WTRkWU9rR2pPWEtQSGZibDJvTDJ5czNlWFFuK2h4TDBxcGVyOG5uTjNXeVFlQzFCSTNOOGxZK3VuWEJ6NkFiNUhCbVM3cWMzcS9RRmhqQXZEaWRURzI5ZnR4QVhWeHFoa2NZTFZ2c0lPcEowbXltbXIwL21oK21DQ3hocXZHZXdwM05iZDJuemJ1dnJqZUdyQVpPU05XaHIwSDFyOHRUZmwwN1FmRGFUNDVqc2ErbFZVQ1h3dU9PT20xZTRUcW52SlI1SzBQUlhjeTlmSEJkamdad2g1dHlHM2FkQlI3bVRidlNZeGpQamtqMHJCYlBFSWVIUURmc3NZYml4bEZLdDVzME5tZGRKNFdzQ1V3TVh2YVlFWFpOdExmYkZ2WFh4Y3RhK0Y0RnNob2MzZG1kQ2pJY1U3T1ZzUG0ybXByUXROa004UzFobmg1cWdmd1ZtYTlBZHE4NEVMUjBmTmlvK1hkSGN1RGN2M2pCTnVrbDhZdEhNSU9iODh0RTJhRmNoNk5nV2ZmUFM4N21ONTBBNkZqd1QwUExReHFJR3Z3cEJ4NzdRY0xtSzZyQnd3U24rMGhUYS9tZ2dJQTVIc2VFTytZUXU0UkxuQlJseVBWS2NGK1lPWEF2eHBvaGE1cnFoeE13TGVmSjF4SVlDMGNkRFJPYkdJU0oyY0NJUE9ienMyM0RiNU16N1E2NXRiTjBFNktRYkNwc283b1hQYXpiVGVPTzFzOW45T3BJbWFCUDBxUWlzU3pCRHRLdGRyRnNLZHFuUmFsZkJJZytLV1NVc2Y1VisvWXdSbUJRQzFxRDNhZEF1L1FqazRjNWpIM0tsSThnVDVLK2FHclovVnE1aEJDYU1nQWw2T1FUOWo4R2NnYTBWOHdWUmdmOCtZRzFpQ2lIaFVsd3ptQW4rb0FuMCtWcldCbDhxZUZSdzhCcTlKN0IxNXhmcmRuV2RYMURyREdjREJPV3F1NE9BQ1hvNUJKM2J4VXMzd2JTdDdGS1FTOWZ6dVYxeHlJV2s1dzlYTDZGRnh6TGsrZDE1T3oyVHhTTmdnbDRPUWVjM1lHT2lJRGlFbkJ4ZHBlMUNUeTd6NUJDc1ZQTE5BRzBiSDJYdURPd3FwWnVkQ1JQSEovdkV4Yit0Qm1CeENKaWdsMFBRUkVLK1BTUUhpZ3VkeURlQ1hJNXI4ZXRHbXlYSlR4NXhSMTRPZ210T2FYbGpTdUhyZURXUTk0UXhsTHhoMmlJa2NVMGo1MGw2NStQaVhsUlBlSmtJbUtDWFE5Q3M4SzRvUXV6U253aXZBWkZ3cFB6Y3YvQmE0REpHc0VXWC9icVV0eUkyaFZzZFBzNW8xWlQ5R3RJK1NGSjA4VXU3eEszd2o1dnc4Sk9YK1hwNjFrdEh3QVM5TElMR2hFQ0VYcG95ZGNnN0VBTkpQbDN4RUg3T2FMK2tLVjJsY0RESXN5VDhkekVDaTBUQUJMMHNnbWFSSS9QYUtNTDRVaEFLVFlETUVWbENvTDZYWmtnVVlXeUxvQmcyRUJJUTVVbU8rdnJ6NzBaZ3B4QXdRUytQb09NQ2hqeEpHc1JOSW1Sd0l6Z0VEVHVXYnpTSGlDYzBrWExIQnZjNlRCT3JGdHBsVTZDdlBMS1BOdkZ6SmxLVHpIUDh2eXZQeWFwajhITkdZSFlJTEltZ1p5Y2NEOWdJR0lGbEkyQ0NYcmI4UFhzallBUW1qSUFKZXNMQzhkQ01nQkZZTmdJbTZHWEwzN00zQWtaZ3dnaVlvQ2NzSEEvTkNCaUJaU05nZ2w2Mi9EMTdJMkFFSm95QUNYckN3dkhRaklBUldEWUNKdWhseTkrek53SkdZTUlJbUtBbkxCd1B6UWdZZ1dVallJSmV0dnc5ZXlOZ0JDYU1nQWw2d3NMeDBJeUFFVmcyQWlib1pjdmZzemNDUm1EQ0NKaWdKeXdjRDgwSUdJRmxJMkNDWHJiOFBYc2pZQVFtaklBSmVzTEM4ZENNZ0JGWU5nSW02R1hMMzdNM0FrWmd3Z2lZb0Njc0hBL05DQmlCWlNOZ2dsNjIvRDE3STJBRUpvekEvd05qV05QcVNHZlpGd0FBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtNyI+PGc+PHJlY3QgeD0iMTYwIiB5PSIxMTAiIHdpZHRoPSIxMjAiIGhlaWdodD0iNDAiIHJ4PSI2IiByeT0iNiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjMDAwMDAwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0iZmlsbDogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7IHN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PC9nPjxnPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjUgLTAuNSkiPjxzd2l0Y2g+PGZvcmVpZ25PYmplY3Qgc3R5bGU9Im92ZXJmbG93OiB2aXNpYmxlOyB0ZXh0LWFsaWduOiBsZWZ0OyIgcG9pbnRlci1ldmVudHM9Im5vbmUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHJlcXVpcmVkRmVhdHVyZXM9Imh0dHA6Ly93d3cudzMub3JnL1RSL1NWRzExL2ZlYXR1cmUjRXh0ZW5zaWJpbGl0eSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImRpc3BsYXk6IGZsZXg7IGFsaWduLWl0ZW1zOiB1bnNhZmUgY2VudGVyOyBqdXN0aWZ5LWNvbnRlbnQ6IHVuc2FmZSBjZW50ZXI7IHdpZHRoOiAxMThweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxMzBweDsgbWFyZ2luLWxlZnQ6IDE2MXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+UGx1ZyBpbiBsYW1wPC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSIxNjEiIHk9IjEyMy41IiB3aWR0aD0iMTE4IiBoZWlnaHQ9IjE3IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWRnQUFBQkVDQVlBQUFBaUNpUVZBQUFBQVhOU1IwSUFyczRjNlFBQUVNMUpSRUZVZUY3dG5YZnNQelVaeDkrNFZ4QVhUaVFLS280WTk0Z2J4UVZxVkhDdktLSUdSZU5ldUhDQW9sRlVRQkFIdUVDVWlLSzRCK0lXMUFnYURTNVVjQ0NJRThWeGIyMURlZEs3YSsrdW44LzFjKzhtL01IdmM5ZnhldnJ0KzlvK2Zib0ZsRVJBQkVSQUJFUkFCQ1luc01Ya09TcERFUkFCRVJBQkVSQUJTR0RWQ1VSQUJFUkFCRVNnQUFFSmJBR295bElFUkVBRVJFQUVKTERxQXlJZ0FpSWdBaUpRZ0lBRXRnQlVaU2tDSWlBQ0lpQUNFbGoxQVJFUUFSRVFBUkVvUUVBQ1d3Q3FzaFFCRVJBQkVSQUJDYXo2Z0FpSWdBaUlnQWdVSUNDQkxRQzFZSmIzQTNEc2lQei9EZUFNQUw4RThFbVgxM2NBL0NzaHo2c0QrQnFBYXdmUDNoL0FSeFBlWGZJanp3T3did0RnY0FDUHJSQ0k3RitoMFZUbDlSS1F3SzZYZjI3cFl3VTJWdDd2QUR3ZHdGRTlRcXNCTnRkYS8zOWVBanVNbTk0U2dlb0pTR0RyTW1FSmdmVUVqbTVtdHJzRCtHTUxFZ25zc0w0aWdSM0dUVytKUVBVRUpMQjFtYkNrd0pMRW9RRDJCUERQQ0JZSjdMQytJb0VkeGsxdmlVRDFCQ1N3ZFprd0pyQTUrNkFYQjdBMWdEc0JlQ1dBN1NMTmZ6U0E5MGhnSitzWUV0akpVQ29qRWFpTGdBUzJMbnVORmRpd3RaY0c4R1lBVHpBSVRnR3dJNERmbW4vWERMYXV2akoxYldYL3FZa3F2NDBuSUlHdHk4UlRDaXhiZm5rQUh3SndkNFBoQVJGdlpRMndkZldWcVdzciswOU5WUGx0UEFFSmJGMG1ubHBnMmZwN0EvZzRjS0dibFRpejNVc3oyTG82UitIYVNtQUxBMWIybTBkQUFsdVhUVXNJN0pVQmZMRTVwbk9qQUFYL2Z4Y0FmdzcrVFFOc1hYMWw2dHJLL2xNVFZYNGJUMEFDVzVlSlN3anM1UUI4RE1CZEFoVGZBbkRQNW56czJRTUYxanIyeEFTN2kvelk5N2NIOEVRQUR3SndYUUFYY1lXZEJ1QURBTjdXN0QyZjd2N05Da2R1WGZ0NlVLcVRrN1hETHdEY3pnVUdZUmxYQXZBNEFIUkM0OGNRSGRhWWFLTnZBSGhyOC96eExSN2dmWFZNK1gyc3dGNEt3RjBCUE5EMU5kckZ0NEhsMDNQOUp5NEF5dnVhRHp6MndaUUFLSlp2NlBSSFB3T1d4OVdZV3hobW53SndBSUN2dDVUamVUTW95STJEUGtTNzhFamJHNE0rbE5PWHcvcHQ2ZnFwTGVQWExvQUw2L2NEQVA5Sk1aQ2VtUjhCQ2V6OGJOSlZvMVVKckIzY1dhZWNBWGFzUUE1OS8ycU5sL1NCYmxEdHN5eVh3VjhBZ0lOY0dLRnFiZ0w3ZXdEUGFNVGhWVWFRWXUwN0Y4QWpBUnhYWUZET3NYOVlOL0xkMndVekNRVzF6ejc4R05xakVlUFA5N1FsSnJEOFlOd1p3SHVkZmJ2SytpeUFSd0U0MHoxMFVYZFViZjhFM216WGZqMGZOV1ByOTAxWHZ4LzFBZFB2OHlNZ2daMmZUZVlnc0dPWGlJY0twRy83a1BkdjVoeXp0c2t3S1FmdnA3azlhQjhDY2s0Q2V5OEErd0RZTmFOTmZQVFpqYkM4WVdLUkhTS3dRMnhpbTlyWEZ0dFg2S0IzUFFBVXlOUkVrWDB3Z0wrNldlMlRVMTkwbkZuSHRsbG1ySDZjV1hPVzdsZFcrb3BqdlI3aVBwejZudFh2TXlJZ2daMlJNUktxVW1JR2UwMEFKd0xZTmlpZm5zVVBBM0IrOEc4NUErd1FnUXlibi9zKzYvNXBON0JhakR4MnhHVkFwdHU2NWI3d0djNlUyTGJMdUgrY2k4QXloT1ZKQUNpeVBqR1dOSmRPdjlzSUwyZGFzZmJ3V1E3SWR3Ync3WVErbGZwSWp2MlpaNWROdUVMQ1ZRTWZOWXpMeFZ3T3YyeWtNbjF0c1gzbFNBQzdHZkVpczVNQlhOSXRUNGQ5M1JmSjFRenk1WXpVSnk1YjB3R1FSOVo0ZnZ5K2tWbnRQOXpTOTFkYlFOcjZ2UmJBVTRQK3h0ZTRKUHlaWmtYbFBBQTNiN1pzYmhYSjZ4elhGN2dkb0ZRSkFRbHNKWVp5MVN3aHNCVFM5eHNNenpjRERYL09HV0J6QmRKYUllZDk3bDErdVBsSTJNbGtjb3piZStQRkJtRzZscHVsY0c4dWx1WWlzR0hkT05DL3hKMWIva3VrUGUrS0hMWGluaXhuNTFQdDMrWFkvMklBRG82Y3NUN0lMUmVmRlFIUHNlajJBQTVyOXNsM01MOTN0Y1gybGZEVldIa3NoLzRGM0l2ZktuaVluUHg0U0ZIbkhqN0ZPdHdINXN5VGZ4dTBSWmlHMXE5dEdaejd2MXlCZUl3cDU0ZXVuOXMrWGRjb3RxRGFTbURyTXZiVUFzdXY4cytaV1YzYkYzbk9BSnNqa0RFTDVMelAvYk1qVENZdmQzdVdzWkNQZkpSN2dTOXF4T2Vsa2NMbkpyQ2N1WEEvOFNzZFhUVjJudm5uemF6K0RvMVEvR3FpTHA1ai81czBnbitDRVRCR0RxTXc5UW4rVmR5c01aekZ4Wnp1ZkxQYUJKYi8vcnFPOGppTDVENjhUWDB6UmZhZFE1ekRtWC8zVkRjejVuNjVUVzMxSXg4dSsvcTlYL3NlVnlpZUMrRFZrYjc5c29sc3Ftd0tFNURBRmdZOGNmWlRDaXhuY3R3SFl0akVNTkZCaEgvNGZ6UC9ualBBNWdqa0dJR2xzUERhUFM2Vit0UldmMXNPQjBvNndYQTVNVXh6RTlpbnVObGdYMWV5NTVscFAzcUcwMGxtaXBSai95ZVpPblBtUlEvaTN5UldoSTVhWWJoT2ZpUndDVGsyYzRzSkdQc0VWeWhzSHc2TDU3STB0MGJvR0JlbUZONzNBRUF2WkQ5Ky9xRlo0cjJqOC9pMVRZelZqOTdTRE83eXN4NGVNVEhQWlptSVhJK1ZJQ0NCTFVHMVhKNWpCSmEydnFMYjQrRlJEODc4ckpNRmw4WVlKdEh2V1lZdHlSbGdWeVd3SE5Ub3FNUWxTYWErL1RCcm1kaE1hMDRDbXpNTGpRbEdUcHpxdmw2YlkzOHV3ZEpwaUI4K2RCN2pVaTFYREZMVExadCsrS1ZnbjdKckh6WW1ZQTkzUzhCZDVjV09wNlh5dmlHQUw3dS9KNWFSV3o4dTNiOGxFWVpsd2RkaWtkWVNzOU5qcXlRZ2dWMGw3ZkZsbGI1TnAydFpMV2VBWFpYQTh1aktDd09zdWVKSVllWmVITVhBcDl3OCtxdzY5QndzODQwNW03V1Zkd1UzcXdxWFZ0Y2xzSDFNK240Zkk3QmRzOG13M0pqdFUzbmJ2NFVjZ2VWc25LdEdQKzJENEg3bitXSFdpdzVXUHNVaXJTVm1wOGRXU1VBQ3UwcmE0OHNxS2JBVWd0ZDNITzZmbThER0JoN3VWK1hNbEdpUlo3cDJ6MUZnMlJhN0I5ZldpMkl6c2lVS2JOZCtyV1gzYnVOSWxDcGNZd1EyVmNURHV2SWpraCtUUHZGWUVXZXgxdUZ0L0FpakhDWWxJSUdkRkdmeHpFb0lMSTlMOEVZZE9tcDBwYmtKYkN6RUkyZWk5Q2pPU2ZkeFRqVnpGTmhuT1cvU2xQYlVMckQ4WUxxcFcwM2c5c1UxZ2tibnpCQnpWaUNzd01hODUyUHN4d2hzemtlVEw5diszY2NDd2FUMEVUMnpZZ0lTMkJVREgxbmNXSUhsRnk4ZFRTaXFuM0JuUjFNZFQrWW1zSFRTWWp0NGp0ZW5JVE0ydXh5Wk0wQ25tSFBNRW5GT2Uyb1FXSHJHOGdnS1F6M1NidHlqdlUwVGVwQjc0YkV6c0o1dmpzRG16QkRYSWJCRFBnS3Ryd0U5aitraFRtY3BwUmtUa01ETzJEaVJxbzF4Y2hyYjBya0piTTQrWFZmYkpiQnBQU1BIL21HT0ZFNTZhalBhRVdQNkRrazVBbnQ0czcvSjJMNHBhUjBDbS9QUjVOc3dWVjlQWWFKbkppUWdnWjBRNWdxeWtzQmVBSG1xUVVjQ205Wnhjd1dXczFVZTkyTEFDY1lqemttTWJNVHl3c0FQYlpHcFVsY0lZdVZMWUhPc29tZXpDVWhnczVHdDlRVUo3QVg0dFVSODRhNDRweVZpbnQ5OERRRHVJWGNsaGlia2ZpTEQvM0ZwbnY4eHFEMzNZb2NlMDluRUdhdzlkNnM5MkxVT3crbUZTMkRUV2MzaFNRbnNCVmE0cW90dXhQT2ZQZzNaMzVxemsxUE9jdUtjQlBhaEx2eW1IVjhZYjVjQkpCaVZpdGNGL3IzbGp5cG5kYUsyR1d5TzQ1ckh3MnNYdWJmc1UxZmtxRG1NVTZxREl5Q0JyYXNyMUNLd05wSlBydVBRMjAwYzI5ajczTnY3aUluQk8rU1l6dGk2OXZXZ1ZBRVlLNUJqMys5clIrb1NjU3k2RmtNSThtT2hMU0MrTFh1VEJUYjFLRkRJeEo3MzVnVUUvSmhzKzBEcHM2VitYeEVCQ2V5S1FFOVVUQzBDYSt2SnFEYzhLUCtuQkE0eDRXd1RhRHZ3cElUSUM2c3c5MEFUTmM1Z3JjY3JlVE55V0JqNnNLOGIyQm5iSmprNU1Vb2FiMGp5TnduMXNZaDlPS1VlSityTFc3OFhKaUNCTFF4NDR1eHJGZGl1V0xJV2tRMUR4OS9iQk5idVRlV0dTdHplN2ZWeGR1WlQ3bXk3ejhSTG04SGFPTUtwa1pVOFI0NUpuT1h0R1lEZEpJSE43YU84WWVnTFRjQ1JTemdldWUvMzlVLzlYcENBQkxZZzNBSloxeUt3ZGhiREcxUTRnejIraHduNzR5dWFlMmhmYko1ckU3M1ljdVFIQVhDUWI3dEp4MmZOMlNzSGNudTV0Z1EyYnFUVUpXSzc1TTVWQzRZRzVCMjJLWW5QY3EvV0N3cmYyU1NCWlh0U0w2VGc5WGhITlhjQTd4S0F5MTJsU1dHdVp3b1JrTUFXQWxzbzIxb0VObmFKTzhPN2NkK29iV21NZlpISE9uakRqNzJFb0V2MFl0ZlZNYlFjTDdZTzcvSU1UY0t5T0VONlUyWlpROHk2dEJtc2RSb2pNOXBqMzRTcjZqaGJPN1lKaE04b1hXSHF1aGtvbFcvTWR1czRwdVBya1hLbG92WEU1b2ZxcmdPaWxRM3B0M3BuQWdJUzJBa2dyakNMV2dTVy9lb2Q1czVNWXVMZ1NXR3oxNDR4dWcvdnVPUWRuYkhVSmJCdEY2N3pFbmw2Yko1aE1tUlorelFSclhndFdXNVpRMHlkS2dCam5aVEd2dC9YdHRRWjdIWGNYYkJoaEMwZXgyR0lRSDdReEs2UTI4YUpzRjFOQ092VXRoK2R5bmR1QXN2NkhBTmdyOGpmQTQrZzhSSjN0amxNcWFzemZiYlU3eXNpSUlGZEVlaUppcWxGWU5uYzJEVmJIZ01Ec3AvY0NCMkRFVEJjbm8zd3c2dThlSituSDZUN2xtMzVQdmVwN015SDVaMFNYTDhYSzR1emd2RHZvSytzWEZPbUNzQllnUno3ZmwrN1VnVzJiWm1mK1hQWi9pUUEzM09GYlEyQUFTUjRFMUNZem5YTHd1RmRyVzFIc0ZMNXprVmdiWCt6ZlpRaEVHOFFxZXlQbS90cmR3TEFLL1dVS2lFZ2dhM0VVSzZhTlFsczF6SnNGM1V1bmIzVE9SL3hMbEdtRk5Iak5XMk1yeHdUMmJieWptNDhYRTlyWmxVY3BIMUtLU3VuMTZRS3dGaUJIUHQrWDV0U0JaYjVjRytjMXdEeUV2amN4S004ajNENzhMeUV3cWUySVBtcGZPY2lzRWNDT0R1eTk5L0ZpUitrL09DTVhUaWZ5MWZQcjVDQUJIYUZzQ2NvcWlhQlpYUFp2KzdXM0l4eUNJRHRldHJQV2NzZXpxbURNeGNHOHM4UldHYlBwYlVEM0dEVWgzdHZBUHU1NitxNFAralQxRmVCcFFyQVdJRWMrMzRmcnh5QlpWNDhic1U5UkY0dW5wSVluZWc1THFBQzk4NVR6eWVuOHAyTHdETFMxT1BkVnNuK3pUVjBqSHJWbGpqanA4TWZuZkZpUytzcFhQWE1HZ2xJWU5jSWYwRFJ0UW1zYnlJSEVjNW11UC9LMjFQOGtpQnY5L2wrTSt2a2tqRDNvL3o5bG5Zd3o1bFZzay96cUE4SDZKMk5zSE8yeXBrVjk3ZjgzdXlZQVRyRmhLbjVqeFhJc2UvM3RTVlhZSDErM0YvZDNkMWZ5bHQwdktCd1g1YTN3VEJvQWgzYk9Fc0xuZEo0dzg0SkFMWnlHZkY0Q285bDhkL0NsTXAzVGdMckx5TWdVLzVOMEZGdlcxZEJ2NHgrYUxOMXdqMVhmbmdxVlVwQUFsdXA0VlR0eVFqWVlCV0hPVUdZckFCbHRHZ0NZejRBRmcxdUV4b3ZnZDBFSzZvTlF3bXcvelBDRVBmOGZGS1VuS0UwOVY2TWdBUjJ3ZjFDQXJ0ZzQyOUEwN2xrenJPTTNMOWpDRG91Tng3WDdGdWRuOWcyWGhoQTcrTWRndWNaRUlQT1Vrb2lNQVVCQ2V3VUZDdk5Rd0picWVGVTdmOFJzRWVCemdUQVl3N2MyMHRKTmtoRjd2c3BaZWlaWlJPUXdDN1kvaExZQlJ0L0E1b2VpeGlWR2pXSXpsWU1PK2VkYUlpRERsQU1USjg2QTk0QWhHcENZUUlTMk1LQTU1eTlCSGJPMWxIZCtnZ3dudkRCNW1vN3ZrT3ZaRWFHT2l1U0FiMVlHWkx4UUFCYkJyK2YwNXk5M2RFRndPZ3JWNytMUUNvQkNXd3FxUTE4VGdLN2dVWmRXSk82b2pqeFdNNkpBTTV6VWFOdTdhSkcyVmpIUERMQ01JMEhMWXlkbWx1ZWdBUzJQT1BabGlDQm5hMXBWTEVNQWp3ZnlUT0Q0WEp2NnVzOGQ4aHpta2NrQktOUHpWUFBpWUFuSUlGZGNGK1F3QzdZK0J2VzlKd29UcjdwakJiRmNIeW5iaGdMTldjK0JDU3c4N0hGeW1zaWdWMDVjaFZZbUFBakIzR1BkYmNtUXREMVRTQjVIem1LczEzZXMzbDY0Ym9vZXhHUXdDNjREMGhnRjJ4OE5WMEVSRUFFUktBY0FRbHNPYmJLV1FSRVFBUkVZTUVFSkxBTE5yNmFMZ0lpSUFJaVVJNkFCTFljVytVc0FpSWdBaUt3WUFJUzJBVWJYMDBYQVJFUUFSRW9SMEFDVzQ2dGNoWUJFUkFCRVZnd0FRbnNnbzJ2cG91QUNJaUFDSlFqSUlFdHgxWTVpNEFJaUlBSUxKaUFCSGJCeGxmVFJVQUVSRUFFeWhHUXdKWmpxNXhGUUFSRVFBUVdURUFDdTJEanEra2lJQUlpSUFMbENFaGd5N0ZWemlJZ0FpSWdBZ3NtSUlGZHNQSFZkQkVRQVJFUWdYSUVKTERsMkNwbkVSQUJFUkNCQlJQNEx4MjhHcENHekFqckFBQUFBRWxGVGtTdVFtQ0MiLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTgiPjxnPjxwYXRoIGQ9Ik0gNjAgMjkwIEwgNjAgMzM5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCAzNDguODggTCA1NS41IDMzOS44OCBMIDY0LjUgMzM5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAzMzBweDsgbWFyZ2luLWxlZnQ6IDgwcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPk5vPC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSI3MyIgeT0iMzI0IiB3aWR0aD0iMTQiIGhlaWdodD0iMTUuNzUiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBRGdBQUFBL0NBWUFBQUMxZ3d1bUFBQUFBWE5TUjBJQXJzNGM2UUFBQTh4SlJFRlVhRVB0bVZuSVRWRVV4MytmcWNnREphV0lSSWxTTWp5SmlKQXA4NHZ3UUlaQ2hpSmtLSW1Fa0F4djVrSVVIZ3labFJCS2tmSWtudlFwU2g0UTlyL08wZjZPZSs3Wis1eEwrMzdPZWJ2bnJqMzg5bi90dGRiZXA0Rm0valEwY3o1S3dIcFh1RlN3VkREd0ZmanZYUFFvTU1jUzVSVXdHbmlYVTZqMndHVmdlTlQrQ3pBTWVKS3pQKzltU1FXVGdPcHdMN0FDK09uZE85UUY0QTlnTEhDOXVRS0s2d1V3RW5qdkNWa1hDc1pNZVZ5MXJnQy9BcU9BZXg0cTFoV2d1QjRENDRBUGpwREJBOG90RndOdExLQ3R3RWJIcUJvODRHUmdNTERCQXZSeDFlQUJKeG1YZkdpUzgwMmdud1dwZlRqUjVNZFBHYTVhRkxDYktUTG1BMXJvdmtEcmFMeHZ3RXZnRkhBYWVKczJqNnhFTDhCTFVUVnpCV2hoZGJRTzJKN2hxbmtCdXdMN2dDbU9lLzBzc0xKU3hlVUtLTHM5d0hKclFKVmR5bzFTT08zSkF6amVxSFVHYU9jSUY1czFBaExrZ2QzT0ZWQnRPdWR3VlYvQUljQlZvRU1DN2h4d3pManFzK2o5QUZOMExJa3FMTnYwb3dFY0F6eUtYL29BcW8xVzZJS0hxL29BeWkxVkR2YXhacXhpZnhid1BFWE4vdEY4ZWxyL042bTZmQUZiQWZ1QlJWYUhmNnlhOVo4UDRHYXpuemRaYlY5SGUvOU5ocXQyanhhbXQyVzNGdGloMzc2QWFsTnBwVzhBMHlwRVZWZkFUc0NkS0ZKcURKMWNwZ1BuSGZlaFZGWTBqWGtVWVhWRWE4d0RtT2FxYTRDZGlhanFDampVVE9nV0lBL1JvOENsdlpTVmhtTCtqc0ExYy9ZY0ZMMzRiaFpzaENrdDcrY0ZUSE5WUmRVNEVHZ3NWMENGK0YyV1d0dUE5WTdxeFdaS0swdXROcXVBM1hrQjFVOGwzMWVRbUFwOGpnWnlCVXhPYmpadzBoTndJWERJYXFOWXNhd0lvUHJTdmxQT3NndUExWllhcm9ESm00UzR3UEJoVkdWMTBXcWd0REszS0tCS3B3UEFna1JValYyMTdnSEYxUU5RRkxWemtTNmFaZ0l0SFMrZGdsVXdGaTRacHZWZXg2d1Rqb0MxMklNVkExVlJGNDBCNWFwSGdIbVdxNm8yMUw1UVFaNTFiWmdNRUxXSW9pcEdEdGNLTU0xVmRheFMwVHd3QWsrN0Z5MmFCNU9GUXVFOG1CYmRGTjZQVndsOWFZQkZLNW5rdUlVcm1UUUd1YXJ5MTR3VWcybzMyN1dzUmJlWThkVmZybG8wS3pmMU11ZkV1OGIvdTFRd3JBWllxOU5Fazg4TnRkeUROaythcTJaOW0vQTVEK29iaWdweSt5bDhIc3hTTC82L2JWVGhURWcweUFLVWVaRVR2ZEtWN285K1AzOUxRUTJnUzZyYmdBSkkvTGdBeXZhZjM4bTRLcGUwVXk0Nm1BTXdibEx0VnUxcGRBWlVNWkY2RWYzZmZRRE5xMVN3N1VvRmc1WEdjV0tsZ280TEZheFpxV0N3MGpoT3JGVFFjYUdDTlNzVkRGWWF4NG1WQ2pvdVZMQm1wWUxCU3VNNHNWSkJ4NFVLMXF4VU1GaHBIQ2RXS3VpNFVNR2FOWHNGZndIYUdrRlBCQWVGUUFBQUFBQkpSVTVFcmtKZ2dnPT0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTkiPjxnPjxwYXRoIGQ9Ik0gMTEwIDI1MCBMIDE0OS44OCAyNTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0ic3Ryb2tlIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48cGF0aCBkPSJNIDE1OC44OCAyNTAgTCAxNDkuODggMjU0LjUgTCAxNDkuODggMjQ1LjUgWiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJzdHJva2U6IGxpZ2h0LWRhcmsocmdiKDAsIDAsIDApLCByZ2IoMjU1LCAyNTUsIDI1NSkpOyIvPjwvZz48Zz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMC41IC0wLjUpIj48c3dpdGNoPjxmb3JlaWduT2JqZWN0IHN0eWxlPSJvdmVyZmxvdzogdmlzaWJsZTsgdGV4dC1hbGlnbjogbGVmdDsiIHBvaW50ZXItZXZlbnRzPSJub25lIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiByZXF1aXJlZEZlYXR1cmVzPSJodHRwOi8vd3d3LnczLm9yZy9UUi9TVkcxMS9mZWF0dXJlI0V4dGVuc2liaWxpdHkiPjxkaXYgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHN0eWxlPSJkaXNwbGF5OiBmbGV4OyBhbGlnbi1pdGVtczogdW5zYWZlIGNlbnRlcjsganVzdGlmeS1jb250ZW50OiB1bnNhZmUgY2VudGVyOyB3aWR0aDogMXB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDI0MHB4OyBtYXJnaW4tbGVmdDogMTM1cHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPlllczwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMTI2IiB5PSIyMzQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNS43NSIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFFZ0FBQUEvQ0FZQUFBQkR5bzQrQUFBQUFYTlNSMElBcnM0YzZRQUFCZ3hKUkVGVWVGN3RtV2VJWlVVUWhiODFZY0ljZnhnd2dBRUVjODQ1THVvcUpsUlVSQkd6WXNRZllrVEZqSWsxWUZwMVYxbHp4b3pwaHdFVGlwaEEwVFZIRkVPZnBWcHFlKzY3dCsrN3UrOE5RemNNTS9OZWQ5M3FjMDlWbjZvZVJ4bTFDSXdyK05RalVBQnFZRWdCcUFEVUxZa1VCaFVHRlFaMVF5Q0RRYWNCNXlYelRnY3VBUDd0K1BUMWdNZUFoWnlkRzRDamdMODYyaDdJY3VXZ0JZRUhnRTNkRTM4RHRnSmU2ZUJGbGQzM2dXMkJMenJZSGVqU21LVFhCNTRHNW5WUGZ4N1lGZml4RDQ5azk5U0VtZjhBT3dCUDlHRnZhRXNpUVBwOU1uQmg0c2s1d0ZsOWhKclkrR1FBYUM1bnIxOWJRd05IRC9iSHZFSmlDckMxOCtoUFlKdndtZGlVT3hZRkhnSFdkUXVlQXZic2s0MjV6NTBsODFJZFZKVlVYd3U1YUVmZzJ3d1BaTzlzNEV3Mzl3ZGdlK0RWalBXamJrb0tVTmRRVXdKK05JQTBtOXZwU2NBbG8yN25tUTVWS2VsK1EyMEpTL1NydTJjL0NPd04vSjdwejZpYjFxdlVXTk0yNi9WTFhhakp6cVhBc1c2SFh3WWJtd0VmamJwZHQzQ29yaFk3RWJnNDgxVGJEYmpQaFpZRTVyN0FYUm0rekI2U3VtVEc0Y0NXd0xKdXpUZEJqejBIM0dLaDIxWmN6Z2ZzRGh3TXJBVXNuTHpBbDVwczF3RTBQM0N2Q2J0b3QrcFVxd3F0WExXOE9UQVJXREVEeUo4TXhMc3paTWVjd0hIQXVlRkhmemNOMlQ0Q2tPMi8vZVNtYXI0cTFMeUFyQXF0RHczVVQydThFbXZFMEZSM05XMUUzMThMSEZOVHFnaVFLMnpET2ZiOG5CRzJtd0RTWWlGN1RmS2tlREtsZ2pCSExmYzZLVDhEcmd1aGNMOUpDakY0STZ2YnZLYVNLM1VNUFNBdzhsYm5yM3k2RFpnVXROamJ4aERaMW9sN1NoTFNtcXVRbEEvVFJ3NUE4eGoxZGtuaVYyV0lFck92NFhMVWNoV29Kd0JYcGZSMlBtNW5HNHlIeG9pTjJGeHRYQ2VuUWxkREdteG5RTG1tYW1odlZ3S0h1aThmTmxIN1J5NUFtcWVqKzVtd2ljV2NvZStUcEpkVHU4a2hKWE1KUncwbDgvMXQ4MDJkZzdSZVZDRXRPNzVXWERVby94ZENpQzFpOW04R0RtbklXVXZhM2xheE5WK0ZlbkZqNE9NMkFQVUt0WWhYcmxyZTBKeUpOVm9iblNTMjYyMnJWUkxCRmJOVTg4V3h0cDE2c2VqT0FVaHJMd1AyTTFBRXZDTGprN1lBS2ZuZER1eFZ3VlhGOGtVWnA0dE9GZldhNGxDK2tNM2NJVGt4MVUxV0grc005LzhLSWJlOEdCTDVVdmFaWHR3K0laYzludUZicFE4NU9jZ3ZYTW5lME5MdVE3VXY5Z0IrYWRqbDNGWU03MlR6cEs2VkVOL0tSU2ZJampVc1JCV3FHalBraTNBcXBpRWNUYjloT1U1RnRBUnNVemovNzFKYmdMUlFvdTFBdHluMWZYS09hK1d2WjBQQ1g2MEZJRTFUWHc4SldHR21mQmhIVlQzbzdmeHFvbE1pVnN5cTdYY05FaUN4N3VYa1dHMENvT2w3U1lNTmpCVnhydmFrUEhWNVVqVDNzdlZCOE9sRzRNNXdtbjJlVGhxTEFNVTlpcW5xSXFpTG1UdWtsUVR1ZHg3dDNNVnhYcjhobGpLbzZ1MjM5U1ZudnJvVENzUERyUG5uV3pGVjYyZG83ZzJTUWRJYkVtdzZhVFQwbGpZQjNzdlo1VXlhb3hKbmVRTksrbWlkSG1HbzhEeGV5WHlRQUtteTFoSHRXN3JqdmF5ZlNTQzBNU1BwSXFXdHJvVXZtTjgxTlQ1dGtBREpjUldSUjdzZFhHMy9aeCs3TmJ1Znd6WXJyU1FsckNOZitTZUhvYWw4K2RsS3FEY0hEWkFjbG5hSno1MFdsUFVXUVh5K2svbmFKU3lsamxVTzZHNU43UW5WY0dyRFZMMEE5YVNVZUp0R1dzTU5EU0FsVE4yMHFxNktJL2ZHWXptN1UxdlpyUlViQlZBYzZRdklxUSsxTm1YUTBFSk16cVRkUjMwbWtOVDE2M1hqcXNSNmp5WFZDSVpZcDl2ZnJ4MUFWVmRPZHdCSEFtcUtWUTBWdG1xZnFCcUlZeWhKT2o1Y3VVTEZZU3c2NCtkcXB5cDhGRGJhdkU0Y05ld1VWaE9TMDBidERsMEc2QjR2SFZVdlFPQ29HYWI1VVF3dVk4ZS9tbStMT3lPcTRuV1F0QzVXbzQxK2RaRGZpRTZQODYycjJKUWYwdThGcEZva2szdlVWTDBhY2puUEdkRS9HblNTOWs3cTJXclNYNS9aazlaYTNhd29GSlVqNm9ac2kyR3l2VUFPTW5aN3JCcHpPblBpR0NaQTBZZTZXdzJ4UldBOFpFV3krdDF0SklHWXFzUjlrTFZ2ZlJjaTJwWTJ1d2xRRDMyRTdYNEF5bndoWTJOYUFTZ2pWc2ZHcTU1RnV5Z01LZ3pxUnEzQ29NS2d3cUJ1Q0JRR2RjT3Y1S0RDb01LZ2JnZ1VCblhEcitTZ3dxRENvRzRJRkFaMXc2L2tvTUtnd3FCdUNCUUdkY092NUtEQ29HNE0rZzhzdVZSUHVGSXBlZ0FBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMTAiPjxnPjxwYXRoIGQ9Ik0gNjAgMjEwIEwgMTEwIDI1MCBMIDYwIDI5MCBMIDEwIDI1MCBaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9ImFsbCIgc3R5bGU9ImZpbGw6IGxpZ2h0LWRhcmsoI2ZmZmZmZiwgdmFyKC0tZ2UtZGFyay1jb2xvciwgIzEyMTIxMikpOyBzdHJva2U6IGxpZ2h0LWRhcmsocmdiKDAsIDAsIDApLCByZ2IoMjU1LCAyNTUsIDI1NSkpOyIvPjwvZz48Zz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMC41IC0wLjUpIj48c3dpdGNoPjxmb3JlaWduT2JqZWN0IHN0eWxlPSJvdmVyZmxvdzogdmlzaWJsZTsgdGV4dC1hbGlnbjogbGVmdDsiIHBvaW50ZXItZXZlbnRzPSJub25lIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiByZXF1aXJlZEZlYXR1cmVzPSJodHRwOi8vd3d3LnczLm9yZy9UUi9TVkcxMS9mZWF0dXJlI0V4dGVuc2liaWxpdHkiPjxkaXYgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHN0eWxlPSJkaXNwbGF5OiBmbGV4OyBhbGlnbi1pdGVtczogdW5zYWZlIGNlbnRlcjsganVzdGlmeS1jb250ZW50OiB1bnNhZmUgY2VudGVyOyB3aWR0aDogOTBweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAyNDhweDsgbWFyZ2luLWxlZnQ6IDE1cHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5CdWxiPGJyIC8+YnVybmVkIG91dD88L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjE1IiB5PSIyMzQiIHdpZHRoPSI5MCIgaGVpZ2h0PSIzMiIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFXZ0FBQUNBQ0FZQUFBQW1oZk9PQUFBQUFYTlNSMElBcnM0YzZRQUFHT1ZKUkVGVWVGN3RuUWZVUGtkVnhoK3ExSUNoaVlRZ0JJOUlSSlJpcUtHR0ducVhGZ1JDUzBCRnFWRVJBUU1DQ2xGREVTWDBqaUlsMUlRZ0drcUVxQkFFQXlJdE5DRzBBTkwyZDVnOURPUHN1N1B2dS90dGUrYWNuSlAvOTg3c3pEeDM5dGs3ZCs2OWN6YTVHQUVqWUFTTXdDUVJPTnNrUitWQkdRRWpZQVNNZ0V6UVhnUkd3QWdZZ1lraVlJS2VxR0E4TENOZ0JJeUFDZHByd0FnWUFTTXdVUVJNMEJNVmpJZGxCSXlBRVRCQmV3MFlBU05nQkNhS2dBbDZvb0x4c0l5QUVUQUNKbWl2QVNOZ0JJekFSQkV3UVU5VU1CTVoxaU1sSGIzbFdQNVAwcWNrdlV2U3l5U2RLT25iV3o1cjZHWlhsWFNTcFBPRmpyNGw2V0JKcDJRNlRqRjVnYVI3RHoxQVAzK2RDSmlnMXluMzBsbnZRdEJwSHhEMlVaS09rWFJXNlFEMnFKNEplbytBZGpmZEVEQkJkOE5yYmJYN0pPZ2FPelRxTzBzNlkwSmdtcUFuSkF3UDVTY0ltS0M5R2pZaE1BUkIwOS9iSmQxQjBwa1RnZDhFUFJGQmVCZy9qWUFKMml1aUMwSC9qNlJyU1BwY0Myem5rclN2cEN0SnVwZWtlMmJxUDByU2t5Y0N2d2w2SW9Md01FelFYZ1BsQ0tRYWRDbEJwejFjUzlJYkpGMDQrdUV6bFNaOTNlcUE3UlBsd3htc3BnbDZNR2o5NEYwUXNBYTlDM3JMYjlzWFFZUFVBeVVkbTBCMkQwa3ZuZ0NNSnVnSkNNRkQrUDhJbUtDOUtvWXdjZVNlZVNsSjc1WjBtZWpINTBtNjN3UkVZSUtlZ0JBOEJCTzAxMEEzQlByVW9NOVQyYVJmTGVrVzBSQTRMTHlOcEc5MkcxYnZ0VTNRdlVQcUIvYUJnRFhvUGxCYzdqUDZKR2hRT2k0Y0d0YUl2VlBTb1pLK2tZSHdrcEpPbHJSLzlOdXRKZjFqSWR4ZDJ2ZEYwT2VYZEI5SmgwczZVTkxadzFoUER6YjRaMHM2VGRJUEMrZmdhaXRId0FTOThnWFFNdjArQ2ZxY0lhSVE5N3E2YklyQzYwS3d1V2wwYWI4clFSOG02WmJCbnI1UEM2WjhkSWc4L0tpWG5oRm9ROEFFM1liUXVuL3ZrNkF2RWNLOXJ4QkJ5c0VoV3VXdUJMdHIrMTBJK29XU1RwWDAxQTVMaFZCeWduWHdiSEV4QW8wSW1LQzlPRFloMENkQjQ3RUJtZFdsemMydWl3WThKa0ZEdHRqWGEzTUdZL21zcExkSitvNmtYNWQwdGN3QXZ5cnBwcFZOL3IxZWdrYWdDUUVUdE5mR1hoRDBqU3ViN0NzVFArakhoRVJNVGZiWXVSQjBqTjhISmQyOTBvNC9uSUI2RVVsUFQrenZWUGxRbGFUcGhwSys0R1ZvQkhJSW1LQzlMb1lnNkhOVVNaRWdwYXRJZWxoMTJIZXpwSk9TVU8rNUVYVGJuTURrRVpLZWxHQXhwWWhLdncwVFE4QUVQVEdCVEd3NFErVGllTDZrSXdwYzYrWkUwQityZkx3UHFUdzRQdGtpUDBMZ0NjeTVVMVR2STVWdC92cVNQajh4MlhzNEUwREFCRDBCSVV4NENIMFM5UGVETnYwc1NmeC9XNWtUUWQ4dGVLaTB6WW5mcnhrT1M4OGRLbVBpd1RmOCtKTEdyck11QkV6UTY1SjMxOW4yU2RCMTM5aHBNWHVRZG5TVFAvQmNDTHFyQm55QjZ0RHc5Wkt1RndrRHM4ZGp1d3JIOVplUGdBbDYrVExlWllaREVIUTlucWRWWGc2UHJvaUpSUDY1TWhlQ2Zva2tQRlM2Qko4OFVSS0hwSFdaU2tUbExtdkZiUWRBd0FROUFLZ0xldVF1Ym5ab2lod1Vrckh1b1pYUDc5VXp1RHkrK3R2akdzaHRMZ1M5elNFZm5oNHZpdkQ0dUNReS90a092YUNYcDQrcG1LRDdRSEc1ejlpRm9HTlVXR2Uza3ZUUzZONC9mdjlCOFBCNGF3YkN1UkEwa1pHdjZiZ0V3T0oxVVp0dDA3aDI3TmJWNTRhQUNYcHVFdHZiOGZaRjBQV29JYk5YSkVFZGI2NGk4VzZYdWFkd0xnVGRKVDlJalFPN0NmS1FuRGY4d1FTOXQrdDZOcjJab0djanFsRUcyamRCNTl6TXZoN01JSVJMeDJYSkJIMmQ2cER3QkVua0o2R1lvRWRaM3RQdjFBUTlmUm1OT2NLK0NacTVwUFpYL3BiVFF1ZEMwRFp4akxsQ0Y5NjNDWHJoQXQ1eGVrTVFkR3AvWllpNWc3YTVFSFFmaDRUdmwzU1R5djN3S3p2S3k4MFhob0FKZW1FQzdYazZZeEwwUllPZDlvclJuTHJZZTY4Y2ZLMHZXTkIrbDJ4MjI5d0s4MHhKUjBiajRpS0R1MHI2WHMveTgrTm1qb0FKZXVZQ0hIajRReEIwcVlrakY5RFJ4Wnh3YzBsdlRQQnBJdmhkQ0xxcjludWhLcHFRZzlHRG9yRnRvNFVQTEhvL2Znb0ltS0NuSUlYcGpxRnZndVpRakpTamFJdDFJVjNud1pVYjNpa0pERG1DSnRvdVRUYlVoRjZxcFRiWnV2bjdMZ1Q5M1pCTDQxOEt4VWppS0Q0Yzlidlh0WDFoTjY2MkJBUk0wRXVRNG5CejZKdWdTU2hFem9rNGQvSjdRbDdrTTVOcDVHNWdhWExKU3hHNGZKWEc4NlRxTWdEczJIRVpRb1BtK1lSdWs0RC9yQlpSb0QxelpSZkJPM1VwbmROd1V2YVRKNHVBQ1hxeW9wbkV3UG9rYUpJRUVaeUJiVGt1RDVKRUFxVmNTZnNuc0FVaXhHYmJWUGFWOUtyS2ZuMkRUSVdoQ0pxdUNOMSt5b1pFVVBnOEh5UHB2dEc0Q0ErLzR4YUJMcE5ZSEI3RThBaVlvSWZIZU00OTdFTFFyQzNJa3FDTVhFNW9jSG1mSkd6RlgyNEFLVFU5VUEyVHlQMGx2VHdoUS9JdGsveisyTXFNY2tERDg0WWthTHJranNYZnpjem5zcEtlV3gxYTNpZ1pGNmxYdVdDMktSL0puTmVPeDk0REFpYm9Ia0JjOENPR1RKWlVjdVVUWmc2MDYxanJyT0dtL1Zza1lScTV1Q1J1YmVGVzdicVFvL25FUU9iMTM0WWdhTFQ1MjBjMlpmcmk0UEFEa3Zob1hMc0tjZitsekJxaERoR1VuMTd3K3ZIVWRrVEFCTDBqZ0F0dlBoUkJmMG5TWGFyRHdYY1U0TGVmcE5jMjNPdlgxSnprUTRlR0FKaWpvMHBERURRbUNzdzNEeStZUzEyRjdIVmt3RHVqUXh0WFhTRUNKdWdWQ3IzRGxQc21hTGJ5ejZnMHl6K3BUQUZmNnpDT2ZTU1JvcE9iV05vS1pQN2dRSDdwK0ljZ2FKNkpWOFpEd3MzZWhMTTNGZVovVkxCRnR4MG90czNUdjY4QUFSUDBDb1M4d3hSM0plZ3ZoaHV1MFpUeGRDQkoveTcyMWt0TGVrRFF2aThYZVlPUXkrSk5sYzBiMTdyVG92U2xlMFhRZUdaUThCcUJxSEVqck8zZ0hHeHlPZXh4a3JBNU45bmJkeENUbXk0VkFSUDBVaVhyZVJrQkl6QjdCRXpRc3hlaEoyQUVqTUJTRVRCQkwxV3lucGNSTUFLelI4QUVQWHNSZWdKR3dBZ3NGUUVUOUZJbDYza1pBU013ZXdSTTBMTVhvU2RnQkl6QVVoRXdRUzlWc3A2WEVUQUNzMGZBQkQxN0VYb0NSc0FJTEJVQkUvUlNKZXQ1R1FFak1Ic0VUTkN6RjZFbllBU013RklSTUVFdlZiS2VseEV3QXJOSHdBUTlleEY2QWtiQUNDd1ZBUlAwVWlYcmVSa0JJekI3QkV6UXN4ZWhKMkFFak1CU0VUQkJMMVd5bnBjUk1BS3pSOEFFUFhzUmVnSkd3QWdzRlFFVDlGSWw2M2taQVNNd2V3Uk0wTE1Yb1NkZ0JJekFVaEV3UVM5VnNwNlhFVEFDczBmQUJEMTdFWG9DUnNBSUxCVUJFL1JTSmV0NUdRRWpNSHNFbGt6UUZ3ZzNTVjh2a3RLdEpkVTNNTTllZUo1QWJ3aGNWZEpKa3M0WG5zZ3Q0ZGVvYmhEL1hHODkrRUdiRURpL3BGdUUyOW9QbG5TeHFESzN3SDlZMGh2Q3plZ2ZpMjV0WHp5cUp1akZpOWdUTEVEQUJGMEFVa3VWL1NUOW5xUy9rM1JxNGVQT0srbElTVStRZEs3Q05oK1I5QkJKSjZ5QnFFM1FoYXZDMVJhTmdBbDZlL0h1SSttM0pSMGxDVzBYRGZpVWdzZEI2Syt0ZHJsWEs2aWJxL0lIa3A0Yyt0enlFZE52Wm9LZXZvdzh3dUVSTUVGdmgvSEZKZjJUcEY4TXpiOVZTTkNYa2ZUV3FGM2NPeVNQdWVuamtzNGg2U0JKQnpZTTcybVNIcjFra2paQmI3Y3czV3BaQ0ppZ3Q1UG5KU1dkTEduL0RnU05LZU01a2c1THV2eFVNSGU4WHRMM2s5OHVVdjM3Y1pLT1NQNytRMGwzay9UeTdZWS8vVlltNk9uTHlDTWNIZ0VUOUhZWWIwUFFoMVFIc01kTE9udlVKUWQvL1AyVEc0WUJWOTFiMHZPU3RoK3FOTzRiU3ZyQ2RsT1lkaXNUOUxUbDQ5SHREUUltNk8xdzdrclE1NVQwUWtsM2pickRMQUxCdnFkZ0NQRFZveVE5S2FtTEZ2MnlndmF6cTJLQ25wM0lQT0FCRURCQmJ3ZHFWNEsrVktVcHY3dnk5TUFHWFplL0NxWU56QlVsNVJLU1Rxd0krUXBSNVdNa1BiU2s4ZHpxbUtEbkpqR1Bkd2dFVE5EYm9kcVZvSzhUM09QUXBDbVFNdjdQbUR4S0M1ejFJa20vR1RWNG82UTdWTnIxdDBzZk1wZDZheWJveXdhL3pkdFdoeFkvSHdUR0NmSy9TbnBwV0FSZkxoVGtJeVVkSGRWOXA2UkRxK2QvWTREMmFWOTE4QTN1VG8rVmRMaWtDMHY2Z1NUc2M4ZEplbjZscGRSemFXclBVRG5BdVZud00vME5TVDhiNFVLd0FOdlQrRm1GMC91cGFuVlF3bjBseFgxUWlRQVIvRnM1UkdMTG14NFdkZWt2N2dkaTROOFViSlc0ZC8xNWRjRDBuK0Z2WXhIMHBjTWhGMlJ6eGNnWEdObmh4UUR4L0UwSTFDakZBbm5mS3dMcUJjRjJXNHBkVy9zVXE3Ym54c0ZodjFiaC8yQkpsd3NhOFBlQ2VZTzVkaW03dm05ZCtocTE3aG9KK20zVkljUGpBemx2QXArWGhLMFRwUGZORmludHVtQzZ0TThSTENmZ3I2c09VSGpoY3lYV01Kb0ltb2hMRG1BT0tGaVJUNjArQUg4bzZheUN1bldWcmtFSnA0ZVBUZGVBQkZ5ejdpenBXWkw0YUcwcTlUd2d4NzJNSktTL3Z3Z0hZeVVRZGduT2FDUFl0djdhMnU5QzBHMTlsLzdPUjRzUGZGMjZmb1JLK3htOTN0b0lHczBDYlFVdHNiUzh2NHFNdXAya1QyOW8wSVZnYzQvcDBqNnRTNUFBa1ZXMUwycnUrZkVoU3RyK05zRk42aG5KNlhnYlBteExPZXc1czYxaXBYWC9RdVhMK3NvdGd4SzYrTHFpSmY5bHhvVnIweEQ1S0JIOTlwWTlDUFhtZmJ0bjBJcExJK2Zpc1pjRVo3UVJiSnU0MnRxUFRkQTVHL1FESlQyN2JXSnovSDF0QlAyL2t2Wk5CQVVCZjBEU3oxUk85emVPekIxeHRiY0hHMWNUR1hVaDJMNEpHdTIrM3I2ajlXTmUrYS9LUkhQNXlseUFWdnpSNmxEbCtwSStIenBPeDRvUDZaMFNjc2JkaWVkOEoyeEhpUTdMRVFvbjZrUnpiU3FiZ2hJK0d3SWR3UFZDWVp3RVA2VGx1ZUVqaEFtcXFUQStEcHp1bjZudzFVREE5TVAyT3AwUGVSN3dKRURMcHd5Umk0TjM3ZmMzNElVNXFqYnJYRGw4ekdKWHRIcGE3QXc0RUd2Q29vMWcyM2lxclQwZjI5OEpXTEh1N2xoNVZadzdQQlNiOGo5VXN2cGkxTWxmUy9wZ1c2ZUZ2K2N3UkxiWHJjYnhINFhQbUZXMXRSRjBMSnhqZzh2TzE2SS9nZ2N2QnpibytKU1lLbWlZTE16Y2FmT1lCRjBQbnc4TlJQdmYwWHg0Z1NCSTdNZDFTY2NhWTRKdDl1R1Z6ZklUeVNxR3VDQ1hQMDcrenRZN0p2OTA4VU82cjVaMG8rU0hwbjdBLzByQmJvNjlNaTdrZVVDYmJpcjNDRGJ5K1BjdkJZMlZxTFhZaGd1WjN5Vm9YWFdDcExqZEVBU05MWlo1cDZUTEJ3NjNzWGdkTXBaTkpxRk5XTFFSYkJ0QmRXbmY5WkN3cmU5TnY3TTJNRjI5Sk1GdzAzdTVTMytUYUx0V2dvYWsvbXhEc2hXMDdGZFZXdVFOSWlsdENtTWRtNkE1WklFRVkzSnVXbUJOQlAyWWFvdi9sQTBIYzAwYUlDWVM3Tis1a3V1cnJSK2V3NGNGVFJIU3JRdVo1ZEI4MlIya0JhMzdIVWxJTU1FUGVBams2dGZ0T2FSOGN6aFVIWktnYytOalBVRTRhTytiQ2grcTlIeUJEdzhmUnJUdXRIUWgyRnkvWGRydkZVR3o5akRqcFdhNHRwM3RKRWgybDBHc2thQkx0c3RnaW9tQWd5TVdZVjJhZkRiSEptZzBXMEpoUzBxT05BbXZoU3phRHYxeTlqOE9VZFBBQWNhUnExdUtQZTBKNzMxVFJXQlhqeWJWTkU5czRleDY2dkxkWUs1NlZ3RWdhTkswamQrRnZqWG9kSHdNQzFzMDdtSWxoUzA4aDl1MUtZRTJUWnBqRjRLZEEwR3oyMkdOL1ZFeTJKTG93eEpzSjExbmJRVDltV0N2U3Jmd1RVS0M5T0tGMGJTbEg1T2djVlZDMHlkcFRVbkpFZlFtTFRoK0p2NnJSR3poYzFxWHBoUDBsSlEyYWNCTjQwNmZnYWtHdXpvYVpGMXlZMktNRUNEWXRCVk1DWmdlYmhwVjdKT2d6eFBNUEdqemRVRnI1K0M1N1lOWTErYzl4YU1JTGJJdW5CTmN1N0s1czZianNpU0NSamE0UXo0Z21XUEo3cWhON3JQNGZXMEUzVFZxS1QyeGJpTERNUW1hRjVUazhwdThUT0xGbUk3MWpQQ2lsL3FpUGxFU1pvcE5CTTI2K3R2RW13TC82ZC9xbU1PWEF6MGl6MzR1ZEpiRFB4ZWRobW5reFIzZXdMc24ybXlmQkozT2dXRjFIUjl0Y2tFZU53bWE5UklKdXVuUXQ4U3Jxb1BvcDExMWJRU041dmVhRGlJaFVBUDNxemhuTFlkb1QwK2VNU1pCN3hvVWcrYU5kdmYxUWx6U3VlWTA2RkxjMnJxOFlBaldnSnpxa3JwVXBjU0ZwdzUvTzYzdDRkSHZIQXhqRHFFL1NwOEVmZk13aDdxN2JjWkgyNHNHenhwOHFPdVM4NkpaZ2diZGRON0J1NGpMS0JpdW9xeUpvRXR6MWNhQ3oyMmY4WnU5MzRRSUdpOEpUQUVsMjNtR25SSXNCeTJZT05xQ2Nlb3BseEIwVG12RWs2TGtFRE9HRmkyS2lFeklxUzdZdTdGSjF1WDJ3WVJRLzV1ZHdMVWl0OEtTRnhsNytUOEhGN3krQ1pydE9RZWVkY21aYVVyR1dHcGVXZ0pCNTJ6dUhOcnozcFg0M1pmZ09ZczZheUxvcnFhQVdvQWxDMzVNRGJwckZGVUp3VzVhdkNYdHV3WXpkSGxaMHZudWlqMTlwL2RYOXFsQjl6RytMbXV4WkwxdXdydEwreUc4T0hJWjc5amQzR3B0NUl5UTFrVFEyNzUwMkZ1eHU5WWxSNGk3dm9SZDJwY1E1SzRFdTJ0N0UvUlBFT3dpMjdZUFZVcWVPZk5XRjRMTjlkZWwvUkFFbmU2K3RrbW8xSWJqYkg0M1FiZUxxdVJRYk5lWHNFdDdFL1NQRTdmWHBRdDJUZEtlcXdhZE0yOTFJZGdwRWpUUnZOaWFhMjdhMWlUVS9tYlBvTWFhQ05vbWpoOHZ5TDBnK0ZTRDNzYitYL3I2ckptZ2M3dTV1Uk4wNmxIVDlZeWtkTjNNb3Q2YUNIb2Jrc2dkektTSFZEblMyOVd6WWxQN3ZTRFlYVTBjcVZjRXo4TlRoTUNUdmd1MnlUaVNjUnRUVnVwMXNzMHptdWJWMXlGaHpwODZkMkE5ZDRMZWRYMzN2YjVHZmQ2YUNIb2Jrc2k1TnVWOFdOT1hzQ3RCcCtrVDUwN1FxVmNFMkpja1Z0cm1aU0RTRUx6cVJFZmJmSWhUdTJlZkJKMXUyWEZueEV2aDFJNlR6V0dhYy9sOFpyaWhwSDU4bDBOa1F1eEpkaFRuVHRuVWZnZ2J0QWs2V2hockkraWM5cnZwUGJsbXVGNm5EckZ0ZXZsVExhNkxiM0h1cFpnN1FmY1JQWWRjSUNXMnVPUkd3UmJKZjJpTk1ibmxpS3RyK2trU0dVRk1kZW1Ub1BjNlVDVWxPSklMb1ZTVVhDbVZ3M0t2Q2JyamQydloxZGRHMEtSekpLUzN4SmN5RjE3YjFENGw2QzcyN2w4T1lkcHhHdFM1RXpSdnpSRWhQTGwrZzdya3g2amJwQm5xSUprMGVpNFh0ZGhsQjVOejYrcVRvSE1mcXk3akF3dkdpQzkxbktTK0tkUTdKZWd1eWtLcTdkTzNDWHJFYjhEYUNCcW9INVFFRGpUQmYxRElrQmFub3p3eUpJUlAyMng3MXhyNGM3dkxVY2tEbDBEUUI0YmRSeHhrMGlYNzJINVZDRHJCTFhIYTEzOExlWnZUcThpNGdJRmJZK0wxWEpxTUtCY1UwU2RCSTlvaGtpVTFwUzFJRDlsSzh5VVRGRVI0UENscjQyS0NOa0VQZ2tEcU9sVjN3b0s5WllnY2ErcVlUSGE4OFBFdEphU3RKS2s3MTB1bEpaY1BvbzJNbXZMYjh1d2xFRFR6STlITnd4S3d5T0NHQ1dKVDVDTDJaSklEeFJyanBvOHI5VjhSb2c1ak9VTTJaSUhySW1mcTlrM1F1WFNqSk55SHVOdFNEK1RTamJLR1dZdGNOSkdXbkE5Nld4WkJyZ2w3UkVOV3dpNEUzVFZ4MXlBdi9wSWV1a1lOR3ZueGNxQkpzL2ppbXlsWXFJZUV4Tyt4NXNmV21od0EzRDZTSzdsdE52WHdMaUFEV1pySWlGU2FaTXJEREpBclN5Qm81cFhUZ3ZrN04yeEEwdS9OMkViSk5VRmlwVGpOS0czYVBuaTUzTTdJbHQwSlpCOW5qbXVTY3kyTHZnbWE1ellsN09lS0xrTFhjd243N3hQdUxreHZzOEdNMFpUUHZFa3h5VjFRd2JpNFBKbUxFTWl1bHl1YkNEcDNpTTRaQVR2TjBreDlhWitwRjhvMmg3Nkw0ZWcxRVRUWDhIQXRUcHlFbnhjWVRabWJucm45QS9zbU4yS25wZVJldkUzUmMvVzFXaEFEcGhPMi8zSGhKZVVGUVJPbkxJV2dtVXRUVW54K1E0dEd3d1gvVFZlT3NXdGgxL1B2TFc4ZXliRFFwTk5iUzVBenViM0owNEUyaTYyMXZpWXM5OGdoQ0xvcEFWRGRmK21WVjIzYU1NOGpQd201SzlMM083NFNEYnhKM2NxTk8zWGhkeEtCY2ZOMmJkcmJSTkE1K3pyUEFtK3lKRkw0K0hBYmZHa3hRVWRJclltZ2VlbTRQNDA3MHVMc2RHMExwK1NpVHA3UmRPdEQyL05KUXMrbHBSREkvZ3NrYUthVTI2YTM0VkwvRGptamZaYmNhNGNNaURKRWk4dmQ1OWZVSnduNzhiYmc0MGtaZ3FEck5jTE9qUnU5dDdrMGxodHYyQkZzdXB1UmZuajJuNGJyeTBweGhwd3hLYUhFb0NDVUVEVFBaaWVFZHQ1VXVucE9tYUJYVE5Ea1RlWWlWRTdFMDhPUWRJR2RMdW53U3NzNG9kQkZxWDRCMGRDZlUya05CN1M4R1d4cGVUNGFIL21PVDE0d1FRUEZQcFUzd2hPQ3lhZVVQSnUyLzIyazAyUW1TZHRCZE56dkJ5bmdab2RHT1NSQjEvMHpQajRpck1lUzhyNmcxYklUS3kzczFyZ2xoN1VPOXBzS2F4MXlocGpUbldDYkgzWHVlcks0cjY3WkZrM1FLeWRvYnZaQTAyTHJ6U1d3bURXSUpLT3c1Y1l0aVJQeTR3czBsYVpGandhRFp3SDJaL3FKbjQrR0F2RndpMGQ5VUpZNi9DL0p4SkZpaENrSnQ4VERxZ095WDYyd3ZsaFU0U3ZoRm5LMjhYOWYyVEpUYjQxU2NxSmViVTdpQm13TzFPcCswQlF4SjBBRTJMcnBZOGhjSEUxalpnMXlDSTNHai9rRzBxNjFhajRjK0h4elh5SGo1QWFSRWovbVhGOFFLT1l6emp0K0pUTHRnRFZuQU9sYTcwclFOZGEzRFJjTFh5WFpIZkJSNFIyanY1SmlnbDRKUVpjc0J0Y3hBa2JBQ0V3V2dTWGJvQ2NMdWdkbUJJeUFFU2hCd0FSZGdwTHJHQUVqWUFSR1FNQUVQUUxvN3RJSUdBRWpVSUtBQ2JvRUpkY3hBa2JBQ0l5QWdBbDZCTkRkcFJFd0FrYWdCQUVUZEFsS3JtTUVqSUFSR0FFQkUvUUlvTHRMSTJBRWpFQUpBaWJvRXBSY3h3Z1lBU013QWdJbTZCRkFkNWRHd0FnWWdSSUVUTkFsS0xtT0VUQUNSbUFFQkV6UUk0RHVMbzJBRVRBQ0pRaVlvRXRRY2gwallBU013QWdJbUtCSEFOMWRHZ0VqWUFSS0VEQkJsNkRrT2tiQUNCaUJFUkF3UVk4QXVyczBBa2JBQ0pRZ1lJSXVRY2wxaklBUk1BSWpJR0NDSGdGMGQya0VqSUFSS0VIQUJGMkNrdXNZQVNOZ0JFWkF3QVE5QXVqdTBnZ1lBU05RZ29BSnVnUWwxekVDUnNBSWpJQ0FDWG9FME4ybEVUQUNScUFFQVJOMENVcXVZd1NNZ0JFWUFRRVQ5QWlndTBzallBU01RQWtDSnVnU2xGekhDQmdCSXpBQ0FpYm9FVUIzbDBiQUNCaUJFZ1JNMENVb3VZNFJNQUpHWUFRRVROQWpnTzR1allBUk1BSWxDUHdJZU44bDZzZnd1S1FBQUFBQVNVVk9SSzVDWUlJPSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMTEiPjxnPjxyZWN0IHg9IjAiIHk9IjM1MCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDM3MHB4OyBtYXJnaW4tbGVmdDogMXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+UmVwYWlyIExhbXA8L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjEiIHk9IjM2My41IiB3aWR0aD0iMTE4IiBoZWlnaHQ9IjE3IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWRnQUFBQkVDQVlBQUFBaUNpUVZBQUFBQVhOU1IwSUFyczRjNlFBQUVyRkpSRUZVZUY3dG5RZk1kelVWeGc5dVJjVTljT0RlVVZ5NDk4UVpGVkRjQzlTb0tGRlV4QWp1aVlwN0p1NkZHNks0RmNVdGppQk8zSW9MQjg2NDd5KzAycFQyM3ZhdTk5NzMvelQ1OGlYdnY3ZTNmVTV2bjU3VGMwNTNNQlVoSUFTRWdCQVFBa0pnZEFSMkdMMUZOU2dFaElBUUVBSkNRQWlZQ0ZhVFFBZ0lBU0VnQklUQUJBaUlZQ2NBVlUwS0FTRWdCSVNBRUJEQmFnNElBU0VnQklTQUVKZ0FBUkhzQktDcVNTRWdCSVNBRUJBQ0lsak5BU0VnQklTQUVCQUNFeUFnZ3AwQVZEVXBCSVNBRUJBQ1FrQUVxemtnQklTQUVCQUNRbUFDQkVTd0U0QTZVcE92TTdON2o5RFc3OHpzVjJaMmpKa2RaV1lmTXJNL2pOQ3VtaWhENExGbTlzeWc2dXZON0Q1bGo4NVM2K3BtZHJTWm5TVjQyeDNNN0loWjNxNlhDSUZ0aklBSWRybkNIWXRnVXlOOHNaa2RaR1luTDNmNDI2Wm5JdGh0STBvTlJBalVJU0NDcmNOcnp0cFRFaXpqK0lhWjNkYk1malRub0Rid1hTTFlEUlM2aGl3RVFFQUV1OXg1RUJQc3Y4M3NSRFBqLzlKeUxqUGJzYVh5Ujgzc0xqSVpsOExacTU0SXRoZHNla2dJckI4QkVleHlaUmdUN0NmTjdIWm05cWZLTHAvSnpHN1ZQSE9JbWUyYWVQWko3cmZLWmxXOUVBRVJiQ0ZRcWlZRXRoc0NJdGpsU25Rc2d2VWpQTDA3ZHowNEd2TFB6T3dHamVQTkQ1WUxoWG8ySVFKeWNwb1FYRFc5MlFpSVlKY3IvN0VKbHBGQ3NtOXF6bC8zaklhOXQ1bTlkYmxRcUdjVElpQ0NuUkJjTmIzWkNJaGdseXYvS1FpVzBWN2Z6RDV1WnFjTGh2NGlNOXR2dVZDb1p4TWlJSUtkRUZ3MXZka0lpR0NYSy8rcENQYUNadlk1TTd0b01QU2x4V1l1VnlyYnIyY2kyTzBuVTQxb0lRaUlZQmNpaUVRM2xreXdweld6YXpRaFB2Y3pzOTBqc2lheHhiRm05bG96ZTdlWi9ia1E0ck0yYlI3WmFOYzNjdlYvM0NUR3VMYnpuT1pQbDIyOG5mYzNzOXViMmM2dURoN1ZoQnVCRmU4N3FmQmRxV3JuZDA1a3RMK2JtYkVSQ1F2aitvNlpIVzVtYnplem54UytxOVRKcVczOFYyaTh3Wi9UYkl4dWJXYW5jWmgrMnN4ZTRwS0gvS093TDZscVcwbXdIRm53L3IyYVpCYzNOYk5MUlY3dnlKZDVnSVBmbTUzbHBXU3M4U1l5ZGhEc081ZVk5OWR5MXA1Ym10azVIYURNOGE4MHlUcWVYU2lQdHY2eEpqUC9tT3ZoT3hnMzN4VXg3RFhmMVlDcG9VZUhJaUNDSFlyZ2RNOVBSYkNYY0ZtZEx0QkRnMlcrM0tRaHVGZWEyU1VMaHM2aThBUXp3d1Q5MTQ3Nk9ZTDVmVU1xVDI2OHB4OWQ4RDdlYzJBRnFkTWs1UFdDQnBOYkZMUWZWbUdSdzZ6KzA0N25oaERzZGMzc1RzMUNmcGdqMXRTckh0eHNCbDVSMmZldytsWVE3SmtiM0I3WUhGTTgxY3pPWHRGM0VxTXdYalk0LzJwNUxrZGdaekN6bHlkOEVPS21tTGYwN3cxbTloLzM0OFVjeVYrbm83L2ZNck03bTlrM0orNGZpV0tZdHlVYmpncUlWWFZNQkVTd1k2STVibHRURWV3OTNjSVI5dlpSelVMM3ZJN3VzeWcremUyc2EwZjZKVWNVYldTVUlsakkvUEdOdHZpQWloZVd2SXZtbVBzUDdTQ3ZydGYreG1ud3ZETlhoaEFzTXVFZldtdXFqT0VCUGpmQlh0aHBZRmhBK2haSWtzMU5qbHhTQlBzdzU4aDN4Y0tYb2oyaldiL1RXV3MrMEdpUDV5bDg5aGRPSTgrUmJLcC9wRVhGQ3NPY0x5M3ZjQnNCcFQ0dFJXem1laUxZbVFHdmVOMFVCTHVMbVgyNDhTUytkTkNQdjVqWkRSdlQ2NWRiK29ZcEQzUGtQb2s2bU1jNDAvMittWGtUV21vUis2N1RFbk9abzJLQ2hUemVaMllQaWQ0Sm1XR09PNk9aM1R3d0Y0ZlZTaEpva0dBRFRTZ21MeGJ0NHgwZWFFbU02WnFOYVpneHBZaXVLejY1TDhHaU9mM1RlWDR6TmpSNThrZ1RCMzA5WnpKSEpnOFB0S3lLNmZXL3FuTVM3RTZPc0c2VzZPaXZHNVBvWjF6ZWJINCtuNXVYM2d3YlBnSTJlNWpadXpJRGpnbU1ZNFMvT1hPMGY4VGpDVGxoMWVFYllKNkg1WHVOaWZyK1p2YWE2SnY1dHJNQ1VkZkxJdTRLWHZuM2NqS01mNHY3OTNreis3bmJoUHE2RUR4eml6NkFHK2JpY3lURyt5cTNVWlFtMjJmMlQveU1DSFppZ0FjMFB6YkJZdUxpL0REV0hOb1dBcnJQSERuQXpKNFZqZVVFUjM0ZlM1anJ6dDBRMDFNUzVBaTVZejVMSmN1SUNUYUdMbVdTcFc5WGFjam1MWTEyY3Jub0FiUWN5QWVTaXN0Rm1nV1ZmblBtNXdzYmpRZVoyZHN5bWhFYVBHZk9tT1hDaFpqRi9qYnU3QzBsN3I0RUc3YjFmQmZESEpyWkdRT0xLdHJTa0RJbndjWlkwRzgyVVk5c2ljUG12SlFqQ1Fnd0xCOTBoSlE2ZWtnNTh2bG5PVHZISWhMUFcwelZMMnZPMmU4ZXZRZjUrbldTdm1MMWlDMHhWM1phT1VUdEN3Uk9mUGx4Q2VHMDlZL3FxVnpoYlBRNHhzQnNIV3ZTSEo4Y09tUVM2TmxwRUJEQlRvUHJHSzBPSlZoSUFDM2dhczB1R0xNd08vNVlBK3ZTS2hsSGFnRW16SWYyZnRzeVVPWVd0OGF3K3cvZnk2NytqWW5uMmdpV2JGT1lwM083ZEZKQ1lpNEx6V3QvTjdNYk4xbXNQcHQ0RitaQ3ptdDlvUzdhOEtjS0JJY3pEdVpDenZOOGVib2p3TlRqUXdrV3MrRytFNTYxelVXd09KRjlJdG9Jc2VHN1I4SFkyTnhBTEZnZGZHRmpnZmFJNVNRdU9RTHJtdStwUHZxMnV6UkZuSjhnN2ZCV290ejVlSzUvYUsyUVA5KytQL3VOeDhhbThQMlJSajNHVVVIQjFGZVZXZ1JFc0xXSXpWZC82bVQvSmVlSHpBK0lpRjI3TDEyTFZJZ1F6K09naEtPVEw1akRTTjBZbnh2bENMYVVZTkRRTVEySFdrVEtoRXJxU003VjBEcDlxVEcxRWorTTFoOHU5bmk0c29sSkxZcERDTFp0a3pEV1RKeUxZTm5BWU9MMmEwNmJocGNhV3h5L2plYUt4L2tYQ3dtMnk5TGdtMkVqeDdsL1dEQXhzN0hpMnNkY1NjMnJYSHg1am1CNUwxY2I1c2pWdnp0RjVsaHIwSHhWRm9TQUNIWkJ3b2k2TWlYQm9xbmhWUEhEanVGZjNHbDFGd3JxNVRUUVhGTnhHeXdlbkNkOUpIb2dSYkMxaTNCTVpwejNvdVd3dy9jRmJRZ3RBZk1kNW5MTytMai9sTENYMGhLL3ArMGNkZ2pCY3Q0TVZvUUlUVlhtSWxoTStlQk9DQXFiSUxSWnpMRXBFMzVxckNsU3l0MWJtNnFiMjlqRjd5Sk1DMU53V0I2WE9DSko5ZkdGN2xqQy81YUxMMC8xRCs5akxDNi9MQkEwbXp5T1FFTG52eTVmZ0lKbVZXVnNCRVN3WXlNNlhudGpFeXptVlp4Q09NLzdRc0V1bVpHd2dMMDNHRktLc0xwR25OTDRVaWJWRk1GMm5RL0g3NzY4STBwTXhwUWNtWGYxdWV2M3VRaTJUVFB1Nm1QcDczTVJiR2wvY3ZXR0VteHB0ckpZVTJZRHdORkR5UWFzZERPVkdrdnRwUnV4UllEakd2cmVGaDQwVkFaNnZoSUJFV3dsWUROV3I3bXVqak5PUHRyNGpCV0NlYWxMVW9CalJsdnNZR3Bvc2JrTUUrd2RLK05NYVJmVEYyMzV3aGtTSmxZOE8zMUpFU3htVjNJbmw1YXp1Zk1wRmhwZlNrS1FTdHYzOWVZaTJGTE5xYmIvWWYxTklkalN1UlRqVVVOY2ZRbTJoc1M5N0FoM3ducy90QzV4N0lGL2dNcENFQkRCTGtRUWlXN1VPam41RUJtOFhBa3JDUXNtTHp4a2F6eE9VNW9uSm1VOGdXc0xqbFlzWEw2a1RKOHh3YmFkc2JXOVA4WnRyRFNRZUVhVCtBR25IRHloUTAvaXFVekVwYVJRSzQrMUVDd1lYOFp0NmpqU3dLTTRMRFVtNGx6ZEdMdVlZT09NWW0xWTl5VllqakRJV3RhVnRDUjhkMnBET3NlR2JNaGMyN2huUmJETEZYa3R3ZnFSc0NnOXc4elEzTUtDdHlYM3laYWFrTHJDWm9ZZ2wxcTBVbkd3dFlzT2ZZcTFiaHlhN2xaNDFvZWpDcDZraEYwUUJvTXpDYVRLbVdFdTJRUHZuSXBnUzBsaGlDeTJXb05sRGNLa1QyWXdjR1l6NXYrbFltRDdFR3lOaHJnVkJJdjVHZTN6anhXQ0xEMTZxV2hTVmNkR1FBUTdOcUxqdGRlWFlPbEJMakZFalFmd1ZoTnNqZVlRb2w1anZ1VTVpSlE0VExSRndwcjZGQkZzSFdyTVQvSXFJeXRTRDdadFh0cGFMdFZnUzVLcCtQZHNCY0gyZFZDYXlscFRKMDNWemlJZ2dsM3U1QmhDc0l3S2t5Ym5NYkc1dUNUTEVjOXZkNElsc1FEYUxqR3hOUVZuTVVLY3dzc0FSTEJsQ05ibXNnNWJKZE1SK2JORE1oYkJuaElONE10WXh5RmwwbFN0VGdSRXNKMFFiVm1Gb1FSTHgxUHhjdndkellIYldkcmk3ZVkrNCttNlRhZFVFQ1doRXFYNWNFa0RTYXE2WTF4WUNmK2ZhR2FQY2ZHS3ZrOGkyRzdwMU9SK0JtTTgzVW1kU0RqUDExMDRWWHpONGlZVGJDcnVWbWV3M2ZOdzFob2kyRm5ocm5yWkdBU0xmUG5vQ0lzSkN5WXpBdWVKRGN5VkhWMklUcGczbHF4TTNESXlSWWtKbHZNb1lsVy9WdkV5eGt1V3FERGRYUnllZ1htUzFIdjNqZHJGcVFvTmdMQ2tyN3FrQWptdjZ4b3pkS25qUzJwRHM1M09ZSE9iUGJBbVM5TFJMaTQ3bFVZVFVRMEowMW02aVJqL0NNNzZTMkpnL2JSTmVjd1B2Vm1wNGxOVDFSSUVSTEFsS0cxTm5URUlscDduVE1WdGVZSDlpRjg5WXpCN1REQjlZbGh4aWlGYlVKaHZPVjUwT1BOREt3cFRIZkxNM2gycEg4TlpJSUt0K3lad3lDSFZJYzVtdm1CcXh5T2JGSmRkbVl1Mk84SFdoQUo1L09KckovdDhMM1ZTVk8xcUJFU3cxWkROOXNCWUJFdUhTUkorVk1LWmhKdHF5QWlUSzRUMmhML1habGFpWFo5dUVhMFN4eVZ1N1lIUThPNE5zL2lrTkxqYTRQdllRU1dsdWNSZXhwZ2pTU1NQS2Jpa3BMUmttWWpia1V2ZFFjeGRzRThzSkZkYXg1Y0FuTW5FNWN0Mk1SRXpIalo0SkZZcExXTWtnU2w5bCtyMVJFQUUyeE80R1I0YmsyRFJJRENWb3MyRkJkTVVKdUJjeXNRcnVWU0o0VFZadFFzanlja3gvNFZPUWFtc09pbUNMVTF2NThkMFNMTmdIeHdNTUg0K0ZkcVFTbnJSSnQ1VVFuZ1JiUHNIRVdkSDZxTnR4UmMwOE1idFJMQTFXY3RTRm9HYTUyZFl2dlFLcjEwSWlXVWlNQ2JCTXNJVTBmSDN0bXZkMEJhNE01WDRXVi9RWWtuV2p4TktWMGtST3plR1FPcVlhY09TODFydTBySjlHOXpYU3B2aFZWNXhBdlNVWTBoTmRxclU1UVc4WHdUYlBoUGl0SDdVcnNrNmxKdTcyNGxnK1M0SVhTcEo1QkpicEVvdk11ajZYdlg3eUFoSWd4MFowQkdiRzV0ZzZSb2FMSGRlaHFYcnFyYVVlYmtrYVFWemE2OG1Fdy81ZE1QUWlpUGQzK043UEhNRUM2SHZtYmdjSUJ4RHlpc1lreStPWE56L0daYjRYTG5FNFl2bnlaUkY4bzc0WGx4K2Ewc1VJQ2VuVSs3czVZSUpISE44S2IwbENYSjlqN3Z3UHY2OFNMZVp1blE5ZG9oYXVwT1RIMWZKZDdXcnU0eUErRzFmK3NiUmpyaGNxYWtVQWlMWTVjNkxLUWgycHlabDRSSE9PemNjT1lzZnQ0akVWOGhSSjJkZVp0SGF6eEZvVEphNUdOTTI3YmN0N2hhSEdLNjh3N1FjdnN2SFZiSllod3NPL2M3ZCtvT2pEUmUwaHdVU3hxdVllMjVqaDV1MkZKUytqYmFrR0NKWU0rWWRGNlRqU1J3V05udDR1WitjK0F4eHp1T2FST1FlcHFVTXErYkNVdFpLc0l3TkxOZ0lZemtLdmRpWmgzZDFIdGZobmJOZEcrVGxybkFiMERNUjdIS0ZQQVhCTXRvK0RrOHNrRGdsaFNFN0hqbE1XK1FXOXVFMFY0MjhlTU42bktQRkdyVC9QVVd3a0YwNFJ5RmF6blBaNmRNbnJuSUx6NGQ5VzIyWFkrZThxbm1XYStGbzM5LzdTY3BFMHZiRkN6eTNDckdJZTAva3RseXlheVRZTWI2SzJIeExwaXc4aWVQQy9PRytWZTUxaFZDUUsyZTJPMGNWa1QzSkpuWUovbjVRSWdTTm45ZElzUEZjSndhYkt4MlppMlFZdzZTZTJtaVV4TFNQSVUrMTBRTUJFV3dQMEdaNlpDcUN6V21rWGQ2MExIeVlWL2ZvTVg0VzBVZVlHUmViNTBJeVVnUkxDc045TXViQlhEY09OYk1Eell3Rk9WY0k0eUhMVlhoZVd6cXM1N3B4aEplN3QxMU1JSUk5QlZuSWdTUWdzYU5kQ2U0bk9DOWI0cUtScnkrNTYveldSckJZZ3c1b05wTjR6WmZPeVpKdnFnUmIxWmtRQVJIc2hPQU9iSG9xZ3FWYmZSeWVlQTR6RmVlcWh6VWtjOTdDOGFHWllINDl2cU4rTHRFQzJaTnd4T0ljdHEyd0NPK2JNZk9tbnVPV0ZwSlN4S2trYysvQStRVENaeHcxV1hSRXNQOUhGSklGUTBLbGNtYmZFSC9NcFppSTJkaXhpWW1kcFhMM0U2K1JZQWtWTzhrZHVSQ3IzVlpLdjZuQ1QxVFZwa0pBQkRzVnNzUGJuWkpnNlYzSzRhblVrNUhGY1RlblhkN0l6QzRhT0RLaE9XTENKU01TbVorNFlLQWtrVUJiSmlQbUtlL2IzM2swazJXS2drbVhtRm9XWU01UGErKzc5ZWVyRURPWGFqTU9YekRSSGRkb3o0ZTc4N0RZV1NvT0cySFIyOTB0a3FIMFJiQ24vaFl3MDJNeUp2YVRVREF2VDJweW5vMHMwVTc1UDdSRXBFS2tVbWZ0YXlWWVlzU1prM2dUNHdHUGs1N2ZpR0FleDMrQzQ0OWpDNytwNGF1UVdoaUVnQWgyRUh4NmVFUUV0aXBWNEloRFVGTkNvQWlCSVJ1QW9oZW8waklRRU1FdVF3N3FSZnIybmpseThRcDdJVEEzQWlMWXVSSGZvdmVKWUxjSWVMMzJWQWhJZzlXazJCUUVSTEFiSW1rUjdJWUllZ1hERk1HdVFFanE0aWdJaUdCSGdYSDVqWWhnbHkralRlbWhDSFpUSksxeGltQTNaQTZJWURkRTBDc1lwZ2gyQlVKU0YwZEJRQVE3Q296TGIwUUV1M3daYlVvUFJiQ2JJbW1OVXdTN0lYTkFCTHNoZ2w3Qk1FV3dLeENTdWpnS0FpTFlVV0JjZmlNaTJPWExhRk42S0lMZEZFbHJuQ0xZRFprREl0Z05FZlFLaGltQ1hZR1ExTVZSRUJEQmpnTGo4aHNSd1M1ZlJ1cWhFQkFDUWtBSXJCQUJFZXdLaGFZdUN3RWhJQVNFd1BJUkVNRXVYMGJxb1JBUUFrSkFDS3dRQVJIc0NvV21MZ3NCSVNBRWhNRHlFUkRCTGw5RzZxRVFFQUpDUUFpc0VBRVI3QXFGcGk0TEFTRWdCSVRBOGhFUXdTNWZSdXFoRUJBQ1FrQUlyQkFCRWV3S2hhWXVDd0VoSUFTRXdQSVJFTUV1WDBicW9SQVFBa0pBQ0t3UUFSSHNDb1dtTGdzQklTQUVoTUR5RVJEQkxsOUc2cUVRRUFKQ1FBaXNFQUVSN0FxRnBpNExBU0VnQklUQThoRVF3UzVmUnVxaEVCQUNRa0FJckJBQkVld0toYVl1Q3dFaElBU0V3UElSK0MrckJVNlFZR1VnTmdBQUFBQkpSVTVFcmtKZ2dnPT0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTEyIj48Zz48cmVjdCB4PSIxNjAiIHk9IjIzMCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDI1MHB4OyBtYXJnaW4tbGVmdDogMTYxcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5SZXBsYWNlIEJ1bGI8L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjE2MSIgeT0iMjQzLjUiIHdpZHRoPSIxMTgiIGhlaWdodD0iMTciIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBZGdBQUFCRUNBWUFBQUFpQ2lRVkFBQUFBWE5TUjBJQXJzNGM2UUFBRlA5SlJFRlVlRjd0blFXd1BUY1Z4azl4TFc3RkhRb3pXQ251bE9KUTNJb1h0d0xGdFdqUndkMkxPN1JBc2VMdWcwT3g0aTVGaXU4UEVpWmtzcnNuZTdOdjczM3Z5OHgvL2pQdlJyOWs4K1ZJVG5ZeEpTRWdCSVNBRUJBQ1FxQTVBcnMwcjFFVkNnRWhJQVNFZ0JBUUFpYUMxU0lRQWtKQUNBZ0JJVEFEQWlMWUdVQlZsVUpBQ0FnQklTQUVSTEJhQTBKQUNBZ0JJU0FFWmtCQUJEc0RxS3BTQ0FnQklTQUVoSUFJVm10QUNBZ0JJU0FFaE1BTUNJaGdad0JWVlFvQklTQUVoSUFRRU1GcURRZ0JJU0FFaElBUW1BRUJFZXdNb0ZaV2VTSXpPOFRNTGxkWnJwVDlGMmIyWXpQN3FKbTkzY3crWUdaL2FWRHZKbGZ4TWpPN1pUS0FsNXZaclRaNVFOdWs3L204MUF6cmoyYjJRek03ek14ZWJXYWZOYk8vMVZTd2hYbTk2NiswRDF3N2ZNZGIyRjAxMVJJQkVXeExOS2ZWMVpKZzh4Nnc2VHpFeko1aFpuK2UxcjJOTCtYZDREWitvQnMyZ0ZVSU5oL3E3ODNzVG1iMk9qUDd4NXJoNEYxL0l0ZzFtN2dXM1JIQnRrQnh0VHJtSk5qWXMzZVoyVTNNN0hlcmRYVWpTM3MzdUkwYzNBWjN1aVhCUmhnT0RrU0xoTHN1eWJ2K1JMRHJNbU1OK3lHQ2JRam14S3BLSHhhUzUwOHI2enV0bVIxN29Nd0x6T3l1YTZ4S3F4eXVPN3QzZzNOWHFJeE5FSmlEWU9uWXVxMXo3L29Ud1RaWlZ1dFZpUWgyK2Zrb2ZWaFQ3WVFuTWJOOXpPeVJabmFtd3RCdWFtYXZXWDdJVzlvRDd3YTNwWjFTWTViUHl3Zk43SnBtZHRRSU5zY3pzMU9hMllYTTdPNmR2OEZlV2Y1L21ka056T3hOYTRLeGQvMkpZTmRrd2xwMlF3VGJFczFwZGJVazJOaURFNXJaYzgzc0ZsbVhQbWxtZSs4d1ZiRjNnNXMyZXlvMUZZR3BCSnUyeC81MUl6TjdsWmtkSS9saG5kYTVkLzJKWUtldXBEVXVKNEpkZm5MbUlGaEdkUW96ZTZlWlhUUVo0bDg3eitMTGR5VDc4ZVdIdldVOThHNXdXOVloTmZRZkJGb1FMUFd3aHozVnpPNlo0UHAzTTd1Q21YMWtEYkQycmo4UjdCcE1WdXN1aUdCYkkxcGYzMXdFUzA5dWJtWTRmcVFKYjh2bjFYZHpZMHQ0TjdpTkhlQ0dkcndWd1RMOGk1alpoOHpzQkFrVzl6R3pwNndCTnQ3MUo0SmRnOGxxM1FVUmJHdEU2K3ViazJCTEc4OER6T3lnK201dWJBbnZCcmV4QTl6UWpyY2tXR3l5MkhCM1Q3QjRVWGRYOXZacmdJMTMvWWxnMTJDeVduZEJCTnNhMGZyNjFwMWdVVFZmMTh6Mk03UHpteG4yWGRJL3V3QU8zekd6ZHdTSitHdG1ob09KSjEzTHpONldaRXhKLy9qQlVlc2VYWjRMSjU3UnZ6R3pkNXZaMDgwTUc1djN2cU4zZ3l2MUc2OXNEaW5ZK2E3WWFRUE9rWXcvWXZDRHNMbGpCeng4QlMvdFkzWUJSL1l3czV1WjJkWE43R3lKWFpHeGY4N01YbXBtYnphektkZFErTmJQYVdhM003UHJaZlZUMzVkRDBBWTBIci95VE9LS2VWb1NiTzAzbEI4OC8yUm1sdzBCS3p6RHFpbnZYWDlqQkh2V3pnSHN2dUZiM0MxMGt0c0dyQXVDYld6VnZIbndVWjZBZ0FoMithVlF1em5VOVBqU1lkTS9WZytaRGRXMWEwZHVqekd6dXprYi9MU1ozYm9qbzY4Njh2Y1JMUFppTm91emo5UnhSQ0FLcEpheDVOM2cwbm9nZWFTZlIzZHFSbkR3cGlrQkQvZ0dzUmMrcS9Qd1BvK2pJUUtHM00vTW5sTnh5RUN5ZzV4VGUveFFVOC9zRGdvUE5qUEdNMWRxU2JBbkM0Y3ZEaWd4RFdscWFnaXlOUDZhOHQ3MTEwZXc3KzBPV2djR2NoMmFDdzY4QkpSaDNxWWN3T2FhNXgxZHJ3aDIrZW1maTJDWld6NU1Jam1sQ2VrSTU2ZWh4RWI4UmpNN1l5VThmT1E0bTBBV1E5SnNpV0EvM0JIQW9XWjJVbWViM3JhOEcxeHM5Z3hCU2t3M2EyZVgvcGNORDI0azhMSHdmUkE1RGpwM3JHMGdTQ3pZMDRjMlU2UmlEa2pZSWxNdlcwOXpSM2JTRWFINnZ1REpQQ0ZQUzRKRnM4TDZpV3VIdFhjVk00T2NWaVhJVmN0NzExOXBIeURFSnhxTnExYmcrNW1nQVNLVXBOTENDSWhnRjU0QU01dUxZUGNNc1ZwVHd2cSttVjJxVS9mK2FHRFlwWEl4TzVJamNZNlBOck5UZDE2YVY4NVVwakhmL2J1L1AzR0FaSE9DZldGUXdhSVdqZW0zUVNvaCtoU3FXV0kxNXlRQnlhSys1VERRbDd3YkhPVzVSMHhkVnlwVVJwem5qNW5aejhOdmpCKzFJdEpUbmp4M01WRS9jeEJCOVo0bmlCbW5IVlR3eHcxalAzTWhIMFRPWFZDOFp2UEV0MzFBajcwOXFoYS9GQXBkSUtpbmMzeVpBNjUxZldxR3o2UVZ3WllPa21QWGRHb2swTkxRYThwNzExOXBIL2gxWnhJNWVkWUJDUFR6WVYzdy9VVjFjWnJ0ZldaMi9SMTJIVytHSmJwNmxTTFkxVEZjdFlZNUNMWlBBaVVBeFNNR09zd20vcDVncTB1em9US2tYRzZiUTBMQ05vbERTU3J0UW53RXZFanRyR2w5T2NHbXYvV3BXYkg5WW9QSyt3OEowQWMyblZMeWJuQ1U1V0R3K0t3U3huQ3Y3b0dBNy9iVWYrNXVrM3QrSU5zMEM0SG93YUF2QmpSZXJrL0s2bVRzZHdreGRWUHBsKy8wWWtGcVRkWG40SXgwdzV6bGlRMlcyTHdwYWZiVlQxbndSZXBHTFo2VytYb0k1dEJhSW1wQnNPREN3dzJzdjlobkRqY0VWSG50d0RxdkljZ2xDVFp0RzVNQWF1OVViYy80T1J4aFZzbk5DMC9yQ0hiL0NyK0lWZmN4bFM4Z0lJSmRmbG0wSUZpaTI1ekd6QzRUTmh4T3Rua2FPOVZpcDBVaXdna21Kalp3VkZSczFFTXFYOEkwa29mMlk4SW1lN1VlaDVrK2drVmlJNW9QRGxPbDFCZFlnT2hVKy9aSWNsNkNCVDllSDBvM3F0ZUhxMDRlVmU4cmd0UVErMDJvUzdRRmpDbFBPS3lnMGp4OThzTzNnblBUdHdlV1pPa0FWQ0p5RGp2dkQ1Si9yTTVUUDNsWk80dzcxWHhBdWc5cnZGbFBKVmdrZjdRSGx3d1NlbTVYOW9SSzNEU0NIZE1JSWVXK0lkank0M3pYT200dHZ4TnV3eDZJWUplZjFLMEk5djhWTTd1R21hRWk3a3U1SFl0OFl4OTJXaGRxWE5TYXAwdisyQmVhc1VTd2JBaElvcWozaGhKcmxwUDhZNU5NU0xHUU81NndlZklTTE1TQ2wzTDhKb2JxTFBVdmR5aERja1d0elVFalQ5aEZjVWhKTjBQUDJNbVBCekNiYWV4bktYaElYbit0cXBjSVlCd1lZc0trQUw1OVV2eVVyeWlmbHlsMTVHVWVHbFRpWXdlaVRTSll6NEVCSEVyZkh5WUlUQWhlNy80V2M2QTZFZ1JFc01zdmg3a0pGdW1PSVAvWWM0WVNxdGVISnhtR0pOQytldkk2dU1LRHFqSi9rN1pFc0RXYlFVbEM2L01hOVJJc3FqYWtkMnpRMklLUlpwSGVTL2JOMHZnNVdId2lpd0ZkZXMrek5OK29PSEZZOHJTRm5SaXBGWlZ4VEdsUWhkTHZ0UkpvcVk3V0FVcGFFaXlPWGh6bWVBUFpremFGWUdzUE52bjNoM3FmeUcwLzg0Q2lQTzBSRU1HMng3UzJ4amtJRm9rRkd4UWVxdDl3ZEtqVWh5a0JLWElwcms5Tm1oUHNsQkNPM0lmbGRCNVRINWw3Q2RZQjAyQVdMOEdlTjRUd2k4NHJTQmQ0ZHZPa29EYzlLbmdlNDZURVBjaTNCQWNzeXE5S0hyRVBYTkY2VU5JaG5MOTQ4dEJ6Q1BDTW95WEJ4dmF3UldNdkg3c3F0aXBHTmVXOTY2LzBEZFljT2t0enYwNGhJejFyWXR2bEVjRXVQNlcxejlWaEswM1ZzSEVFQkY3Z1NnNzNIVG14MXFpRmtOandEc2FXR3BQbk9rK09IbGRja09LaWJiSHZ1a1JPc0hoR2NxMkNnQXJlaEtvMDlSN0cxb2xkTGordGV6YzRiN3Q5K2J3RWkxMmF3MEJNU0NrWDcrN2R0bklpeXNOajl1RXlOdDRjWDBnTGxmY3Z4d282ZjUrRFlHbmFjMzJyaGlCTHc2a3A3MTEvcFgwQTdVL05xMENsKzhEckVqTFN1U3kyVnpZUjdQTHpPY1hKQ1VjUGJLcDRvZVpCR1o0ZEFoSFVYRGJQSlUrSThhMmRhcG1yS1RVSlQxU2VDanRPVWdoNzNpdXpTbktDSlFvUytXb09CZDVOenJ2QjFZd3o1bVVlenRWNU1GK25jMmJpemlJZXhXa3FxWWh6VDJVQzBuT1krY09VRGhUSzVKSW5oSGlJNDA1dVh0VlpzcWZnaHB5MnBuUjlxcE1UYmVHQWRhclF2M3NYdmdGSTlqYWRxcDluSDFjbHlGWExlOWRmdmc5TWNWTGk4STFKQ0dLT2FWMUNSazVaSXh0ZlJnUzcvQlJPSWRqWWEyeGwzQ0dGMU5LRWh5cjNRNzJQdGc5ZG0xa1ZvWktxT1crUDZET3AwNUtuelZ6cTdsT0hlVGU0dmpiNVJsRG5jcENoVGNJM3huK2xPN0JqQkl2YUZSS01DZTl1Q0xybVFEU0V6MXlTNFpRTnY2YWYzdmRnOHpyN2dtbHdzTUQraUlOZm5yeUhzNzcrMTVUM3JyOThINWlxMmZDMjUvbkdsR2RGQkVTd0t3TFlvUGdxQkV2emZjRVJ4cTdscEYxZm1tQ24ySHU5S3RrcEd3NlNLZmRMa1RZdk1TRUtVc1MySk1GTzZVL05NdHRwQkFzMmZVRTErbXlZTlFSWndyNm12SGUrODMyQUdOZVlEbjVTTS9uQmJwNGU0SkRpdVN1c3RBQUNJdGdGUU0rYVhKVmdxYTdrb3MvZnZTNytJdGovVGtxTUMwemdpTEY0eVBuSytYR3dZYWRCR2tTdy9kL1hLaXJpVXEybDk0Lzc3TTgxQkxscEJKdWJDRVN3Qys3eEl0Z0Z3UTlOdHlCWXFycHhpT2lTenFrbmxDQmxjNEtkZW5yMm9qbjBtbzYzanR3YnQwK0Y2WlVnd0kzclRFVEFHWXZiaTFSQitFQkNKM0tkQjI5ZTFNV2VhenI1QmppM2luaGROOWpXQk11NnliSHRXeE9iUUxCU0VYdDNnalhPSjRKZGZuSmFFU3hxVFNRdlhyUkpFNmQ0WXV0K2IyQ291V2NyRGpjRUZ2amlUUERrQkR2RkVZTUlQdGp0Q0poUDRwNHZ6bHA1RkNndndYS3ZsT2hINmFQZDFFdXdlelFCQk5FQXc2TjZNUEdxck9kMmNzSW1uMGJqYWszZ3JaYkVIQVJiQ25WWjBpSnNBc0ZPc1htWG5KendiY0RIUVdrQkJFU3dDNENlTmRtS1lLbTJUMVU4RkJTZWNnUlp3REhxeEVuZmNMenBpeVc4S21vNXdmYmRZUjFxSjcrTzBuZU54RU93YkV4RUx1S2VaMHhFQTZJTm9pWjV2SnU5Qkp0ZmY1a2lxVUFRZUFhekNjZmc3MGplUkkvQ3EvYkp5VGc4RHp5c09wOVR5aTlKc0Y3dFI5KzQ4Z1BwRUJsNjFoL3RsUGFCMnF0eXBZZm5TMTc4VStaTFpTWWdJSUtkQUZyaklpMEpscTRSY1lmQTRHa2FDZ3BQdnRLSFdYdkpuWG9JdDhobGYrN2tzdkYvczZ1Ymh3SlFPYWNwSjlqYWlEV3MyeGRuMGpyM2YyOWJJRVBQQmxlNkIxd2IvU2lYcUJsdlNYcktEek5qVDZ1VmxsdCt1RWp2RWVjaEg2Y0VzcUJOd2kzeThBSDNjd2xmU1dRdk5BMTlqeGZVZmhaekVLeFhSWndmaG9iQ1dwYkdsUjlpNWlMWVd1a1RoenhNRnZHYTNCUXB1SFllbFg4QUFSSHM4c3VqTmNGU0g1ZlQ5OHFHaG9RS3NmSDhXNTVZQjhUR3hRWVpFM1pHbm1NYkNqNmYxbE42TnF4UGJWdHlxdXFMVzF5YW9WS3cvTDd5SG9JdDNRTWVlayswMUtjOC9tOGZ3WmJDRU5ZY1prclNOblBIU3ppa1ZSNHRpT01xT1F4TjBUSU1mVjJ0Q2JhRWE1LzBYdEkyZUlNNjhMQUdBVTZRTG1PYWkyREhudDNMdjcvOEc2NHB2L3hPdUExN0lJSmRmbEpiRXl3anduN0tZOU5wd0FmK3puTnZxZm93SFQyRVRMaSsxTUhINjRWTVBSY0tOc3owRlJaQytFRjhubGpFM0ZjazRIMThiN1Z2WmxpemhJRGtZZmVZaG1LdWVnZzJsL3FvdDBZOTE2ZWFMMG13MUozSGpQVStkRURaM0g2WVM2Z2xmTHpPYmhIUDBsTjZ0dzhTYktzdnBqWEJsalEzZmE4c2xTSWVlUTg1cFc5ckxvSUY2enVIVjY3R2NDLzVFQkJLRkEyUzBrSUlpR0FYQWo1cGRnNkNMVzJ5TkRra2xlSXN4Sk56UEJlWEp0NlFSZlUyOUVKSjZibXNJYlYwMzdXZ2c0T0t1eS9vUXArbjc5QTlXZy9CbG16UXFKenY0SWlBQkxseWtEaGZZU24xU1VWOXo5Vnh5Qmw2OGFpRWN5bEFBMzFCVllqcVB5YmlVOTh3SEx5R1ZqM2hKZy9ObnF2ekhuNXF2cVpXQk11YUlOQUswY0p3OUl0cGFQMlZUQXllRjRlWWF5VDVjMllEblpOZzZSZFIyL0JZNzB1bGZxRjU0c0I2Wk0ya0tHOWJCRVN3YmZHY1V0c2NCRXMvQ0hXSEJ5bjJ4VFFORVVkSkNxVXNtd3AycC96aGdLRjdvMFBTNzlDOVcyeDllRUxuQWR0M0RUWkJUdlJwR252MXgwT3dKZlVpYlpRZXVZNXRvMFpGcFU3ODUzUmpUL3MyUlB3bGlZdk5FQTlndkpteFk4Y0V6cVdIdFlkSXBDU0Zrdi9Bb0FGSUgrNm1IUTVZU0R6WW5uT2lJaXBZR3ZkNXlqclB5NnhDc0VSdjRrMVlWUHNIZEFlQy9FMVkyaHA3eXhmdEF1RkEwd1QrckwzRE0xcytlSUFCWVVoWmgzbWFrMkJwaThNdDY1NHJWK2xCRnh3NGxPR2dseDZtUEkvT3Q1aEQxVEdDZ0FoMitTVXlGOEV5c2lrT1QwaGRTTEtsdTZDb2I1R01zT05DU3RncFU1VndSSk03b3RjZGlFS1RFeXdiUXI0V2tlU1F6bzRPNnVjOUNsUGxrVG84QkV2VitSdW9zVGxJQ1FrT0lvZjBHRGNiKzI1WmY5ajRDRGJCbytneERZV0FaTk5HTGJsZllWeEk4S2o0d1p2MkNQa0hvZVJwNkwzZW9mcXBoekZobzJOTVNFQUU4aS9OK1JQQ05ZOVdyK2pFTWN3VmNZcjZlVngrVEJzdzlJb1Y4d2orckQwT3FQZ2lwSWNPRHE2WVBaQXNTWE1RTEhIQWVkLzRDc21rczhZNDdNWjEwZmY5WVFaNm9FUDdzdnp1dDgxN0lJSmRmb0xuSk5nK2g2Y3hxWStOQTVMTjc0UjYwTUtqZForUjEyRnlnc1VCQzZrdGZZOTJyQzJrRGFRUTdxa09KUy9Cc29IeUJCNkhrdHAwUkxBMVk1OUxiZHhqanhqUTV1TzZRUDlJbTdYSm83cGZwWDc2TStkR1BSZkJZby9uS2xSK0g3cUU3d1hEVlRUZUYvYW1HT2Y3b1BEQXcxd0VpK2M5cW0razV0TGhzcSsvM2tmbnZlTlZ2aFVRRU1HdUFGNmpvbk1TTEYyYzR2QkVPWjZlZTBxdzIzbUd5dWthZFNtZWpHTlhPWEtDUlZLRkxKRVVzS1dWMUhCcEgzRGNRRHJNMVp5bGZub0pscklRRXUrSlluUHVVL3VtYmRBK1l5YTRBMlBPbmFVOGQxQnJ3ek5DNXRpR2N6Vm0zeHpGK3BHV3orT1pTRE9yYmNOWjdmOWxhMDJ3K1Z4NCs4UTY1MkRGb1hBc3NiYVJETkV3cFAyZlE0S04wZFNRb3JuSGp2MThLRzNGbkkzaG85OHpCRVN3eXkrSnVRbTJ6K0ZwNkxXUkZCV3VmUkNBQVc5Z25tWkxYNUJCamNXRDM5eVBSSFhsZlJHbVJMQTRWeEVsQ1hKRmJjcHpZOUZ4S0twcGNZTEMzbFFUQUwyR1lPTzRzYStpTW1iTTNPM2xHYjZZMlBnZ042UlQvazl0WXFVck12dDJLbGo2UFphd3ArRUpDbm1pRmp4VFVvQjNjcEh3R1F1ZTNrTU9aMzN0VVAvdW5XWUJiK0M5ZytvekhpTEFsM0VkMXFtNFh4THVNS2MyNExHK1QvbDlWWUpsRGNRK0V4QUZUY2JVUHZPTkVIeUNxMDRFa1lqWWd3dVIwRjdidmNIOHZNeGhhS3NJbG5IU3Z6MDcwOHord1N3VHYwRytONTQ3NVBBMGRWMU1tVHVWY1NJZ2duVUNwV3hORVJnaTJLWU5xVEloSUFTRXdGSUlpR0NYUW41bnR5dUMzZG56cjlFTGdSMkJnQWgyUjB6ejJnMVNCTHQyVTZJT0NRRWgwQm9CRVd4clJGV2ZCd0VSckFjbDVSRUNRbUNqRVJEQmJ2VDBiV3puUmJBYk8zWHF1QkFRQWw0RVJMQmVwSlN2SlFJaTJKWm9xaTRoSUFUV0VnRVI3RnBPeTdidmxBaDIyMCt4QmlnRWhJQUlWbXRnQ1FSRXNFdWdyamFGZ0JEWVVnUkVzRnNLdHhvTENJaGd0UlNFZ0JEWTlnaUlZTGY5RksvbEFFV3dhemt0NnBRUUVBSXRFUkRCdGtSVGRRa0JJU0FFaElBUUNBaUlZTFVVaElBUUVBSkNRQWpNZ0lBSWRnWlFWYVVRRUFKQ1FBZ0lBUkdzMW9BUUVBSkNRQWdJZ1JrUUVNSE9BS3FxRkFKQ1FBZ0lBU0VnZ3RVYUVBSkNRQWdJQVNFd0F3SWkyQmxBVlpWQ1FBZ0lBU0VnQkVTd1dnTkNRQWdJQVNFZ0JHWkFRQVE3QTZpcVVnZ0lBU0VnQklTQUNGWnJRQWdJQVNFZ0JJVEFEQWlJWUdjQVZWVUtBU0VnQklTQUVCREJhZzBJQVNFZ0JJU0FFSmdCQVJIc0RLQ3FTaUVnQklTQUVCQUNJbGl0QVNFZ0JJU0FFQkFDTXlEd2I1RDR4NUFyWjBOV0FBQUFBRWxGVGtTdVFtQ0MiLz48L3N3aXRjaD48L2c+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4="},72680:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{clipPath:"url(#clip0_429_142)"},a.createElement("rect",{width:"32",height:"32",rx:"7.07292",fill:"#FF715E"}),a.createElement("path",{d:"M9.67896 21.0657C9.88557 20.5482 10.455 20.2607 11.0024 20.4169C11.5864 20.5837 11.9253 21.1928 11.7586 21.7768L10.6586 25.6268C10.4918 26.2108 9.88269 26.5497 9.29868 26.3831C8.71469 26.2162 8.37582 25.6071 8.54243 25.0231L9.64243 21.1731L9.67896 21.0657Z",fill:"white",fillOpacity:"0.7"}),a.createElement("path",{d:"M22.321 21.0657C22.1144 20.5482 21.545 20.2607 20.9976 20.4169C20.4136 20.5837 20.0747 21.1928 20.2414 21.7768L21.3414 25.6268C21.5082 26.2108 22.1173 26.5497 22.7013 26.3831C23.2853 26.2162 23.6242 25.6071 23.4576 25.0231L22.3576 21.1731L22.321 21.0657Z",fill:"white",fillOpacity:"0.7"}),a.createElement("path",{d:"M23.7002 5.99976C25.5225 5.99986 26.9998 7.47729 27 9.29956V19.2C27 21.0224 25.5226 22.4997 23.7002 22.4998H8.2998C6.47735 22.4997 5 21.0224 5 19.2V9.29956C5.00024 7.47729 6.4775 5.99986 8.2998 5.99976H23.7002Z",fill:"white"}),a.createElement("path",{d:"M22 15.9999C22.5522 15.9999 22.9999 16.4477 23 16.9999C23 17.5522 22.5523 17.9999 22 17.9999H17C16.4477 17.9999 16 17.5522 16 16.9999C16.0001 16.4477 16.4478 15.9999 17 15.9999H22ZM24 10.4999C24.5522 10.4999 24.9999 10.9477 25 11.4999C25 12.0522 24.5523 12.4999 24 12.4999H17C16.4477 12.4999 16 12.0522 16 11.4999C16.0001 10.9477 16.4478 10.4999 17 10.4999H24Z",fill:"#FFB7AD"}),a.createElement("path",{d:"M10.5803 10.5173C10.7466 10.1609 11.2534 10.1609 11.4197 10.5173L12.4027 12.6235C12.4487 12.7221 12.5279 12.8013 12.6265 12.8473L14.7327 13.8303C15.0891 13.9966 15.0891 14.5034 14.7327 14.6697L12.6265 15.6527C12.5279 15.6987 12.4487 15.7779 12.4027 15.8765L11.4197 17.9827C11.2534 18.3391 10.7466 18.3391 10.5803 17.9827L9.59731 15.8765C9.5513 15.7779 9.47205 15.6987 9.37346 15.6527L7.26731 14.6697C6.9109 14.5034 6.9109 13.9966 7.26731 13.8303L9.37346 12.8473C9.47205 12.8013 9.5513 12.7221 9.59731 12.6235L10.5803 10.5173Z",fill:"#FF715D"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_429_142"},a.createElement("rect",{width:"32",height:"32",fill:"white"}))))})},73629:(eo,ot,i)=>{"use strict";i.d(ot,{Ot:()=>P,SW:()=>C,_l:()=>M,qz:()=>q});var a=i(1072),k=i(11619);const M=(Y,J,O)=>{const{x:l,y:D}=Y,m=J/100;return{left:l*m+18+((O==null?void 0:O.left)||0),top:D*m-10+((O==null?void 0:O.top)||0)}},P=Y=>{let{tearAttr:J,scale:O,activeCanvasKey:l,scrollTop:D,scrollLeft:m,activePageKey:E,STBasketMap:f,basketScrollTopMap:h,basketScrollLeftMap:S,tearOffset:V}=Y;const We=O/100;let re={left:0,top:0};return J.isInBasket?re=(0,k.OL)(J,We,D,m,f,h,S):(0,a.r)(J.refWCKey)?re=(0,k.hr)(J,l,We,E):re=(0,k.TE)(J,l,We,D,m),{left:re.left+((V==null?void 0:V.left)||0),top:re.top+((V==null?void 0:V.top)||0)}},C=Y=>Y>120,q=Y=>Y>300?300:Y},73681:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{x:"4.5",y:"15.5",width:"55",height:"33",fill:"white",stroke:"#8B8C8F"}))})},73756:eo=>{const ot=q=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[q.APOS_STRING_MODE,q.QUOTE_STRING_MODE]}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],M=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],P=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(q){const Y=ot(q),J=M,O=k,l="@[a-z-]+",D="and or not only",E={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[q.C_LINE_COMMENT_MODE,q.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},Y.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+O.join("|")+")"},{className:"selector-pseudo",begin:"::("+J.join("|")+")"},E,{begin:/\(/,end:/\)/,contains:[q.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+P.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[E,Y.HEXCOLOR,q.CSS_NUMBER_MODE,q.QUOTE_STRING_MODE,q.APOS_STRING_MODE,Y.IMPORTANT]},{begin:"@(page|font-face)",lexemes:l,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:D,attribute:a.join(" ")},contains:[{begin:l,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},E,q.QUOTE_STRING_MODE,q.APOS_STRING_MODE,Y.HEXCOLOR,q.CSS_NUMBER_MODE]}]}}eo.exports=C},74901:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>P});var a=i(38502),k=i(28086);const P=C=>{let q;return typeof C=="object"&&(C!=null&&C.clearIcon)?q=C:C&&(q={clearIcon:a.createElement(k.A,null)}),q}},75276:(eo,ot,i)=>{"use strict";i.d(ot,{S1:()=>k,U6:()=>M,gK:()=>C,j9:()=>q});var a=i(12211);const k=Y=>Y.watermark.mdWMMktList,M=Y=>Y.watermark.mtWMMktList,P=Y=>Y.watermark.noWMMktList,C=Y=>Y.watermark.isShowUpMktTip,q=(0,a.Mz)([k,M,P],(Y,J,O)=>({mdWMMktList:Y,mtWMMktList:J,noWMMktList:O}))},75504:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>O});var a=i(38502),k=i(53732),M=i.n(k),P=i(17307),C=i(67787),q=i(58320);const Y=(0,C.Ay)(q.H).withConfig({displayName:"styles__StyledPreOpenHyperlinkModal",componentId:"sc-1sxrjtt-0"})(["&.pre-open-hyperlink-modal{.content{padding:0;.title{display:flex;padding:9px 20px;font-size:12px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}.hyperlink-content{padding:20px;.hyperlink-container{display:flex;padding:8px;border-radius:6px;align-items:center;color:",";border:1px solid ",";background-color:",";.svg-container{width:28px;height:28px;color:#fff;margin-right:8px;border-radius:6px;line-height:32px;text-align:center;background-color:",";}span{width:405px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center;color:",";font-weight:500;}}}}&.is-mobile{width:295px;height:auto;padding:32px 20px 0 20px;header{display:none;}.content{padding:0;.wechat-internal-url-new-tab-tip{margin:8px 26px 20px 26px;text-align:center;font-size:18px;}.hyperlink-container{height:72px;padding:16px 12px;.svg-container{display:none;}}}.wechat-tip{margin-top:20px;margin-bottom:-10px;font-size:12px;color:#1f292e;}footer{margin-top:10px;margin-bottom:22px;padding:0;button{width:124px;}}}}"],l=>l.theme.color_background_white_modal_tips,l=>l.theme.color_title_text_state,l=>l.theme.color_text_L1,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_card,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2);var J=i(72214);class O extends a.PureComponent{render(){const{isOpen:D,isMobile:m,displayWeChatNewTabExternalUrlTip:E,displayWeChatNewTabInternalUrlTip:f,confirmText:h,onConfirm:S,onClose:V,hyperlink:We}=this.props;return(0,J.jsx)(Y,{isOpen:D,onClose:()=>V("preOpenHyperlinkModal"),onConfirm:S,confirmText:h,onCancel:()=>V("preOpenHyperlinkModal"),cancelText:I18N.Common.cancel,title:I18N.SettingPanel.about_to_jump_to_an_external_website,className:M()("pre-open-hyperlink-modal",{"is-mobile":m}),modalStyle:{width:m?"100%":480,borderRadius:m?0:10},children:f?(0,J.jsx)("div",{className:"wechat-internal-url-new-tab-tip",children:I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("div",{className:"title",children:[(0,J.jsx)(P.C,{className:"tips-icon",name:"common/screen_trash"}),(0,J.jsx)("p",{children:I18N.SettingPanel.if_you_wish_to_continue})]}),(0,J.jsx)("div",{className:"hyperlink-content",children:(0,J.jsxs)("div",{className:"hyperlink-container",children:[(0,J.jsx)("div",{className:"svg-container",children:(0,J.jsx)(P.C,{name:"link/link_icon"})}),(0,J.jsx)("span",{children:We})]})}),E&&(0,J.jsxs)("p",{className:"wechat-tip",children:["*",I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip]})]})})}}},75908:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>we,_:()=>re});var a=i(38502),k=i(53732),M=i.n(k),P=i(93413);const C=[P.c.GUIDE_NOVICE_V9_2408_STEP_1,P.c.GUIDE_NOVICE_V9_2408_STEP_2,P.c.GUIDE_NOVICE_V9_2408_STEP_3],q=function(Ae){return Ae===void 0&&(Ae=!1),{[P.c.GUIDE_NOVICE_V9_2408_STEP_1]:{selector:"."+P.c.GUIDE_NOVICE_V9_2408_STEP_1,arrowPosition:Ae?{right:-8}:{left:-8},relativePos:Ae?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u6D41\u7A0B\u56FE",content:"\u6D41\u7A0B\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u6D41\u7A0B\u4E2D\u3002"},[P.c.GUIDE_NOVICE_V9_2408_STEP_2]:{selector:"."+P.c.GUIDE_NOVICE_V9_2408_STEP_2,arrowPosition:Ae?{right:-8}:{left:-8},relativePos:Ae?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u601D\u7EF4\u5BFC\u56FE",content:"\u601D\u7EF4\u5BFC\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u57FA\u7840\u7EC4\u4EF6\u4E2D\u3002"},[P.c.GUIDE_NOVICE_V9_2408_STEP_3]:{selector:"."+P.c.GUIDE_NOVICE_V9_2408_STEP_3,arrowPosition:{top:-5},relativePos:"bottom",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u58A8\u5200AI",content:"Al \u529F\u80FD\u805A\u5408\u81F3\u9876\u90E8\u5DE5\u5177\u680F\u3002"}}},Y=function(Ae,Oe){return Ae===void 0&&(Ae=!1),Oe===void 0&&(Oe=!1),{[P.c.GUIDE_NOVICE_V9_2408_STEP_1]:{offset:{x:Oe?Ae?300:168:Ae?310:-12,y:Oe?-432:0}},[P.c.GUIDE_NOVICE_V9_2408_STEP_2]:{offset:{x:Ae?310:-12,y:0}},[P.c.GUIDE_NOVICE_V9_2408_STEP_3]:{offset:{x:0,y:-2}}}};var J=i(77257),O=i(67588),l=i(78257),D=i(37860),m=i(74923),E=i(18356),f=i(15515),h=i(72214);const S=10,V=(Ae,Oe,Be)=>{const tt=document.querySelector(Ae);if(!tt)return null;const{top:Xe,left:ne,bottom:lt,right:rt,width:Te,height:Ge}=tt.getBoundingClientRect(),{x:ue=0,y:Me=0}=Be||{};switch(Oe){case"top":return{bottom:Me+window.innerHeight-Xe+4,left:ue+ne+Te/2};case"bottom":return{top:Me+lt+4,left:ue+ne+Te/2};case"left":return{top:Me+Xe+Ge/2,left:ne-ue-6};case"right":return{top:Me+Xe+Ge/2,left:rt-ue+4}}},We=(Ae,Oe,Be)=>{if(!Ae||!Oe)return!1;const tt=Ae.top-Oe.top,Xe=Ae.bottom-Oe.top;return tt>=Be&&Xe<=Oe.height&&Ae.left>=Oe.left&&Ae.right<=Oe.right},re=(Ae,Oe,Be)=>{if(!Ae||!Oe)return;const tt=Ae.getBoundingClientRect(),Xe=Oe.getBoundingClientRect(),ne=60;if(We(tt,Xe,ne)){Be&&Be();return}let lt=Ae.offsetTop-Xe.top-ne;const rt=Oe.scrollHeight-Oe.clientHeight;lt>rt&&(lt=rt);let Te=!1;const Ge=()=>{const ue=Oe.scrollTop;Math.abs(ue-lt)<S&&!Te&&(Oe.removeEventListener("scroll",Ge),Be&&Be(),Te=!0)};Oe.addEventListener("scroll",Ge),Oe.scrollTo({top:lt,behavior:"smooth"})},ve=Ae=>{var Oe,Be,tt,Xe;let{guideType:ne,onClose:lt,store:rt}=Ae;const{dispatch:Te,getState:Ge}=rt,ue=Ge(),Ze=(0,O.bP)(ue)==="old_right",fe=q(Ze),it=fe[ne],{relativePos:et,selector:Ut,title:G,content:Ht,arrowPosition:Tt}=it,Vt=Object.keys(fe),He=Vt.indexOf(ne),rn=(0,O.MZ)(ue),Lt=(0,m.S2)(ue),jt=(0,E.yj)(),{sceName:mt}=jt;let Jn=!1;if(ne===P.c.GUIDE_NOVICE_V9_2408_STEP_1){const Pt=document.querySelector(Ut),Nn=document.querySelector(".widget-panel-container");if(!Pt||!Nn)return null;Pt.getAttribute("data-cid")==="\u6D41\u7A0B"&&(Jn=!0)}const so=Y(Ze,Jn)[ne],{offset:Et}=so,Jt=V(Ut,et,Et),Ot=()=>{var Pt,Nn;lt(),(Pt=MB.commonGuideHelper)==null||Pt.markGuideAsRead(P.c.GUIDE_NOVICE_V9_2408);const At=(Nn=MB.commonGuideHelper)==null?void 0:Nn.getState().commonGuidesHasShown;Te({type:"update:taskList:data",payload:{completeList:At}})},dn=()=>{var Pt;if(lt(),He>=Vt.length)return;const Nn=Vt[He+1];if(He===0){Te({type:"left-panel:collapse:panel:show"}),Te({type:"entry:active:popup:panel",payload:{name:l.lS.Builtin}}),Te({type:"widget-panel:update:selectedPLabel:by:name",payload:D.P8});const At=Lt.filter(on=>on!=="\u57FA\u7840");Te({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:At}}),(0,f.a0)(mt+"-collapsed-categories",At,f.qW.Array),setTimeout(()=>{const on=document.querySelector('[data-guide-id="mind"]'),no=document.querySelector(".widget-panel-container");re(on,no,()=>{var mo;return(mo=MB.commonGuideHelper)==null?void 0:mo.tryToShowGuide(Nn)})},200);return}(Pt=MB.commonGuideHelper)==null||Pt.tryToShowGuide(Nn)},Ce=()=>{const Pt=[J.EH,J.yP,J.cZ];if(He>=Pt.length)return;const Nn=Pt[He];return(0,h.jsx)(Nn,{})};return(Oe=MB.commonGuideHelper)!=null&&Oe.checkGuideHasShown(P.c.GUIDE_NOVICE_V9_2408)||(Be=MB.commonGuideHelper)!=null&&Be.checkGuideHasShown(P.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(He+1)))||!Jt?null:((tt=MB.commonGuideHelper)==null||tt.markGuideAsRead(P.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(He+1))),He===2&&((Xe=MB.commonGuideHelper)==null||Xe.markGuideAsRead(P.c.GUIDE_NOVICE_V9_2408)),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(J.eA,{id:"MD_"+ne,className:M()("on-"+et),style:Jt,children:[(0,h.jsx)("div",{className:"arrow",style:Tt,children:(0,h.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,h.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,h.jsxs)("div",{className:"content",children:[(0,h.jsx)("svg",{className:"close-icon",onClick:Ot,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,h.jsx)("span",{className:"title",children:G}),(0,h.jsx)("span",{className:"main-content",children:Ht}),(0,h.jsxs)("div",{className:"footer",children:[(0,h.jsx)("span",{className:"count",children:He+1+"/3"}),(0,h.jsx)("span",{className:"btn-next",onClick:dn,children:He===2?"\u77E5\u9053\u4E86":"\u4E0B\u4E00\u4E2A"})]})]})]}),Ce()]}))},we=(0,a.memo)(ve)},76682:function(eo){/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(i,a){eo.exports=a()})(this,function(){return function(){var ot={686:function(k,M,P){"use strict";P.d(M,{default:function(){return Ze}});var C=P(279),q=P.n(C),Y=P(370),J=P.n(Y),O=P(817),l=P.n(O);function D(fe){try{return document.execCommand(fe)}catch(it){return!1}}var m=function(it){var et=l()(it);return D("cut"),et},E=m;function f(fe){var it=document.documentElement.getAttribute("dir")==="rtl",et=document.createElement("textarea");et.style.fontSize="12pt",et.style.border="0",et.style.padding="0",et.style.margin="0",et.style.position="absolute",et.style[it?"right":"left"]="-9999px";var Ut=window.pageYOffset||document.documentElement.scrollTop;return et.style.top="".concat(Ut,"px"),et.setAttribute("readonly",""),et.value=fe,et}var h=function(it,et){var Ut=f(it);et.container.appendChild(Ut);var G=l()(Ut);return D("copy"),Ut.remove(),G},S=function(it){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ut="";return typeof it=="string"?Ut=h(it,et):it instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(it==null?void 0:it.type)?Ut=h(it.value,et):(Ut=l()(it),D("copy")),Ut},V=S;function We(fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?We=function(et){return typeof et}:We=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},We(fe)}var re=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=it.action,Ut=et===void 0?"copy":et,G=it.container,Ht=it.target,Tt=it.text;if(Ut!=="copy"&&Ut!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Ht!==void 0)if(Ht&&We(Ht)==="object"&&Ht.nodeType===1){if(Ut==="copy"&&Ht.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ut==="cut"&&(Ht.hasAttribute("readonly")||Ht.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}else throw new Error('Invalid "target" value, use a valid Element');if(Tt)return V(Tt,{container:G});if(Ht)return Ut==="cut"?E(Ht):V(Ht,{container:G})},ve=re;function we(fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(et){return typeof et}:we=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},we(fe)}function Ae(fe,it){if(!(fe instanceof it))throw new TypeError("Cannot call a class as a function")}function Oe(fe,it){for(var et=0;et<it.length;et++){var Ut=it[et];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(fe,Ut.key,Ut)}}function Be(fe,it,et){return it&&Oe(fe.prototype,it),et&&Oe(fe,et),fe}function tt(fe,it){if(typeof it!="function"&&it!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(it&&it.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),it&&Xe(fe,it)}function Xe(fe,it){return Xe=Object.setPrototypeOf||function(Ut,G){return Ut.__proto__=G,Ut},Xe(fe,it)}function ne(fe){var it=Te();return function(){var Ut=Ge(fe),G;if(it){var Ht=Ge(this).constructor;G=Reflect.construct(Ut,arguments,Ht)}else G=Ut.apply(this,arguments);return lt(this,G)}}function lt(fe,it){return it&&(we(it)==="object"||typeof it=="function")?it:rt(fe)}function rt(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function Te(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(fe){return!1}}function Ge(fe){return Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},Ge(fe)}function ue(fe,it){var et="data-clipboard-".concat(fe);if(it.hasAttribute(et))return it.getAttribute(et)}var Me=function(fe){tt(et,fe);var it=ne(et);function et(Ut,G){var Ht;return Ae(this,et),Ht=it.call(this),Ht.resolveOptions(G),Ht.listenClick(Ut),Ht}return Be(et,[{key:"resolveOptions",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof G.action=="function"?G.action:this.defaultAction,this.target=typeof G.target=="function"?G.target:this.defaultTarget,this.text=typeof G.text=="function"?G.text:this.defaultText,this.container=we(G.container)==="object"?G.container:document.body}},{key:"listenClick",value:function(G){var Ht=this;this.listener=J()(G,"click",function(Tt){return Ht.onClick(Tt)})}},{key:"onClick",value:function(G){var Ht=G.delegateTarget||G.currentTarget,Tt=this.action(Ht)||"copy",Vt=ve({action:Tt,container:this.container,target:this.target(Ht),text:this.text(Ht)});this.emit(Vt?"success":"error",{action:Tt,text:Vt,trigger:Ht,clearSelection:function(){Ht&&Ht.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(G){return ue("action",G)}},{key:"defaultTarget",value:function(G){var Ht=ue("target",G);if(Ht)return document.querySelector(Ht)}},{key:"defaultText",value:function(G){return ue("text",G)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(G){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return V(G,Ht)}},{key:"cut",value:function(G){return E(G)}},{key:"isSupported",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Ht=typeof G=="string"?[G]:G,Tt=!!document.queryCommandSupported;return Ht.forEach(function(Vt){Tt=Tt&&!!document.queryCommandSupported(Vt)}),Tt}}]),et}(q()),Ze=Me},828:function(k){var M=9;if(typeof Element<"u"&&!Element.prototype.matches){var P=Element.prototype;P.matches=P.matchesSelector||P.mozMatchesSelector||P.msMatchesSelector||P.oMatchesSelector||P.webkitMatchesSelector}function C(q,Y){for(;q&&q.nodeType!==M;){if(typeof q.matches=="function"&&q.matches(Y))return q;q=q.parentNode}}k.exports=C},438:function(k,M,P){var C=P(828);function q(O,l,D,m,E){var f=J.apply(this,arguments);return O.addEventListener(D,f,E),{destroy:function(){O.removeEventListener(D,f,E)}}}function Y(O,l,D,m,E){return typeof O.addEventListener=="function"?q.apply(null,arguments):typeof D=="function"?q.bind(null,document).apply(null,arguments):(typeof O=="string"&&(O=document.querySelectorAll(O)),Array.prototype.map.call(O,function(f){return q(f,l,D,m,E)}))}function J(O,l,D,m){return function(E){E.delegateTarget=C(E.target,l),E.delegateTarget&&m.call(O,E)}}k.exports=Y},879:function(k,M){M.node=function(P){return P!==void 0&&P instanceof HTMLElement&&P.nodeType===1},M.nodeList=function(P){var C=Object.prototype.toString.call(P);return P!==void 0&&(C==="[object NodeList]"||C==="[object HTMLCollection]")&&"length"in P&&(P.length===0||M.node(P[0]))},M.string=function(P){return typeof P=="string"||P instanceof String},M.fn=function(P){var C=Object.prototype.toString.call(P);return C==="[object Function]"}},370:function(k,M,P){var C=P(879),q=P(438);function Y(D,m,E){if(!D&&!m&&!E)throw new Error("Missing required arguments");if(!C.string(m))throw new TypeError("Second argument must be a String");if(!C.fn(E))throw new TypeError("Third argument must be a Function");if(C.node(D))return J(D,m,E);if(C.nodeList(D))return O(D,m,E);if(C.string(D))return l(D,m,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function J(D,m,E){return D.addEventListener(m,E),{destroy:function(){D.removeEventListener(m,E)}}}function O(D,m,E){return Array.prototype.forEach.call(D,function(f){f.addEventListener(m,E)}),{destroy:function(){Array.prototype.forEach.call(D,function(f){f.removeEventListener(m,E)})}}}function l(D,m,E){return q(document.body,D,m,E)}k.exports=Y},817:function(k){function M(P){var C;if(P.nodeName==="SELECT")P.focus(),C=P.value;else if(P.nodeName==="INPUT"||P.nodeName==="TEXTAREA"){var q=P.hasAttribute("readonly");q||P.setAttribute("readonly",""),P.select(),P.setSelectionRange(0,P.value.length),q||P.removeAttribute("readonly"),C=P.value}else{P.hasAttribute("contenteditable")&&P.focus();var Y=window.getSelection(),J=document.createRange();J.selectNodeContents(P),Y.removeAllRanges(),Y.addRange(J),C=Y.toString()}return C}k.exports=M},279:function(k){function M(){}M.prototype={on:function(P,C,q){var Y=this.e||(this.e={});return(Y[P]||(Y[P]=[])).push({fn:C,ctx:q}),this},once:function(P,C,q){var Y=this;function J(){Y.off(P,J),C.apply(q,arguments)}return J._=C,this.on(P,J,q)},emit:function(P){var C=[].slice.call(arguments,1),q=((this.e||(this.e={}))[P]||[]).slice(),Y=0,J=q.length;for(Y;Y<J;Y++)q[Y].fn.apply(q[Y].ctx,C);return this},off:function(P,C){var q=this.e||(this.e={}),Y=q[P],J=[];if(Y&&C)for(var O=0,l=Y.length;O<l;O++)Y[O].fn!==C&&Y[O].fn._!==C&&J.push(Y[O]);return J.length?q[P]=J:delete q[P],this}},k.exports=M,k.exports.TinyEmitter=M}},i={};function a(k){if(i[k])return i[k].exports;var M=i[k]={exports:{}};return ot[k](M,M.exports,a),M.exports}return function(){a.n=function(k){var M=k&&k.__esModule?function(){return k.default}:function(){return k};return a.d(M,{a:M}),M}}(),function(){a.d=function(k,M){for(var P in M)a.o(M,P)&&!a.o(k,P)&&Object.defineProperty(k,P,{enumerable:!0,get:M[P]})}}(),function(){a.o=function(k,M){return Object.prototype.hasOwnProperty.call(k,M)}}(),a(686)}().default})},76914:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=function(){function Be(tt,Xe){for(var ne=0;ne<Xe.length;ne++){var lt=Xe[ne];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(tt,lt.key,lt)}}return function(tt,Xe,ne){return Xe&&Be(tt.prototype,Xe),ne&&Be(tt,ne),tt}}(),k=i(38502),M=S(k),P=i(25582),C=S(P),q=i(83466),Y=i(27122),J=S(Y),O=i(36221),l=S(O),D=i(65251),m=S(D),E=i(52171),f=S(E),h=i(27921);function S(Be){return Be&&Be.__esModule?Be:{default:Be}}function V(Be,tt){if(!(Be instanceof tt))throw new TypeError("Cannot call a class as a function")}function We(Be,tt){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt&&(typeof tt=="object"||typeof tt=="function")?tt:Be}function re(Be,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tt);Be.prototype=Object.create(tt&&tt.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),tt&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,tt):Be.__proto__=tt)}function ve(Be){var tt=Be.cell,Xe=Be.row,ne=Be.col,lt=Be.valueRenderer,rt=Be.dataRenderer;return(0,h.renderData)(tt,Xe,ne,lt,rt)}function we(Be){var tt=Be.cell,Xe=Be.row,ne=Be.col,lt=Be.valueRenderer;return(0,h.renderValue)(tt,Xe,ne,lt)}function Ae(Be){var tt=typeof Be.width=="number"?Be.width+"px":Be.width;return tt?{width:tt}:null}var Oe=function(Be){re(tt,Be);function tt(Xe){V(this,tt);var ne=We(this,(tt.__proto__||Object.getPrototypeOf(tt)).call(this,Xe));return ne.handleChange=ne.handleChange.bind(ne),ne.handleCommit=ne.handleCommit.bind(ne),ne.handleRevert=ne.handleRevert.bind(ne),ne.handleKey=ne.handleKey.bind(ne),ne.handleMouseDown=ne.handleMouseDown.bind(ne),ne.handleMouseOver=ne.handleMouseOver.bind(ne),ne.handleContextMenu=ne.handleContextMenu.bind(ne),ne.handleDoubleClick=ne.handleDoubleClick.bind(ne),ne.state={updated:!1,reverting:!1,committing:!1,value:""},ne}return a(tt,[{key:"componentDidUpdate",value:function(ne){var lt=this;if(!this.props.cell.disableUpdatedFlag&&we(ne)!==we(this.props)&&(this.setState({updated:!0}),this.timeout=setTimeout(function(){return lt.setState({updated:!1})},700)),this.props.editing===!0&&ne.editing===!1){var rt=this.props.clearing?"":ve(this.props);this.setState({value:rt,reverting:!1})}ne.editing===!0&&this.props.editing===!1&&!this.state.reverting&&!this.state.committing&&this.state.value!==ve(this.props)&&this.props.onChange(this.props.row,this.props.col,this.state.value)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"handleChange",value:function(ne){this.setState({value:ne,committing:!1})}},{key:"handleCommit",value:function(ne,lt){var rt=this.props,Te=rt.onChange,Ge=rt.onNavigate;ne!==ve(this.props)?(this.setState({value:ne,committing:!0}),Te(this.props.row,this.props.col,ne)):this.handleRevert(),lt&&(lt.preventDefault(),Ge(lt,!0))}},{key:"handleRevert",value:function(){this.setState({reverting:!0}),this.props.onRevert()}},{key:"handleMouseDown",value:function(ne){var lt=this.props,rt=lt.row,Te=lt.col,Ge=lt.onMouseDown,ue=lt.cell;ue.disableEvents||Ge(rt,Te,ne)}},{key:"handleMouseOver",value:function(ne){var lt=this.props,rt=lt.row,Te=lt.col,Ge=lt.onMouseOver,ue=lt.cell;ue.disableEvents||Ge(rt,Te)}},{key:"handleDoubleClick",value:function(ne){var lt=this.props,rt=lt.row,Te=lt.col,Ge=lt.onDoubleClick,ue=lt.cell;ue.disableEvents||Ge(rt,Te)}},{key:"handleContextMenu",value:function(ne){var lt=this.props,rt=lt.row,Te=lt.col,Ge=lt.onContextMenu,ue=lt.cell;ue.disableEvents||Ge(ne,rt,Te)}},{key:"handleKey",value:function(ne){var lt=ne.which||ne.keyCode;if(lt===q.ESCAPE_KEY)return this.handleRevert();var rt=this.props,Te=rt.cell.component,Ge=rt.forceEdit,ue=Ge||!!Te,Me=lt===q.ENTER_KEY||lt===q.TAB_KEY||!ue&&[q.LEFT_KEY,q.RIGHT_KEY,q.UP_KEY,q.DOWN_KEY].includes(lt);Me&&this.handleCommit(this.state.value,ne)}},{key:"renderComponent",value:function(ne,lt){var rt=lt.component,Te=lt.readOnly,Ge=lt.forceComponent;if(ne&&!Te||Ge)return rt}},{key:"renderEditor",value:function(ne,lt,rt,Te,Ge){if(ne){var ue=lt.dataEditor||Ge||m.default;return M.default.createElement(ue,{cell:lt,row:rt,col:Te,value:this.state.value,onChange:this.handleChange,onCommit:this.handleCommit,onRevert:this.handleRevert,onKeyDown:this.handleKey})}}},{key:"renderViewer",value:function(ne,lt,rt,Te,Ge){var ue=ne.valueViewer||Ge||f.default,Me=(0,h.renderValue)(ne,lt,rt,Te);return M.default.createElement(ue,{cell:ne,row:lt,col:rt,value:Me})}},{key:"render",value:function(){var ne=this.props,lt=ne.row,rt=ne.col,Te=ne.cell,Ge=ne.cellRenderer,ue=ne.valueRenderer,Me=ne.dataEditor,Ze=ne.valueViewer,fe=ne.attributesRenderer,it=ne.selected,et=ne.editing,Ut=ne.onKeyUp,G=this.state.updated,Ht=this.renderComponent(et,Te)||this.renderEditor(et,Te,lt,rt,Me)||this.renderViewer(Te,lt,rt,ue,Ze),Tt=[Te.className,"cell",Te.overflow,it&&"selected",et&&"editing",Te.readOnly&&"read-only",G&&"updated"].filter(function(Vt){return Vt}).join(" ");return M.default.createElement(Ge,{row:lt,col:rt,cell:Te,selected:it,editing:et,updated:G,attributesRenderer:fe,className:Tt,style:Ae(Te),onMouseDown:this.handleMouseDown,onMouseOver:this.handleMouseOver,onDoubleClick:this.handleDoubleClick,onContextMenu:this.handleContextMenu,onKeyUp:Ut},Ht)}}]),tt}(k.PureComponent);ot.default=Oe,Oe.propTypes={row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(l.default).isRequired,forceEdit:C.default.bool,selected:C.default.bool,editing:C.default.bool,editValue:C.default.any,clearing:C.default.bool,cellRenderer:C.default.func,valueRenderer:C.default.func.isRequired,dataRenderer:C.default.func,valueViewer:C.default.func,dataEditor:C.default.func,attributesRenderer:C.default.func,onNavigate:C.default.func.isRequired,onMouseDown:C.default.func.isRequired,onMouseOver:C.default.func.isRequired,onDoubleClick:C.default.func.isRequired,onContextMenu:C.default.func.isRequired,onChange:C.default.func.isRequired,onRevert:C.default.func.isRequired,onEdit:C.default.func},Oe.defaultProps={forceEdit:!1,selected:!1,editing:!1,clearing:!1,cellRenderer:J.default}},77212:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M16.5255 4.40633C16.2098 4.09826 15.845 3.9447 15.4321 3.9447H12.1886C12.0183 3.49444 11.7392 3.12665 11.3503 2.84322C10.9605 2.55884 10.5111 2.41666 10.001 2.41666C9.48989 2.41666 9.04042 2.5579 8.65159 2.84227C8.26275 3.12665 7.98268 3.49349 7.81328 3.94375H4.56785C4.15496 3.94375 3.79018 4.09826 3.47449 4.40539C3.15784 4.71441 3 5.06893 3 5.47179V16.0553C3 16.4572 3.15881 16.8127 3.47449 17.1207C3.79018 17.4298 4.15496 17.5833 4.56785 17.5833H15.4321C15.845 17.5833 16.2098 17.4288 16.5255 17.1217C16.8422 16.8136 17 16.4591 17 16.0562V5.47179C17 5.06988 16.8412 4.71441 16.5255 4.40633ZM9.45236 4.15703C9.59865 4.01579 9.78056 3.94375 10 3.94375C10.2194 3.94375 10.4013 4.01484 10.5476 4.15703C10.6939 4.29922 10.7661 4.47648 10.7661 4.68976C10.7661 4.90304 10.693 5.08694 10.5476 5.2405C10.4013 5.39501 10.2185 5.47179 10 5.47179C9.78152 5.47179 9.59865 5.39501 9.45236 5.24145C9.30606 5.08789 9.23388 4.90399 9.23388 4.69071C9.23388 4.47743 9.30606 4.30017 9.45236 4.15703ZM11.5679 14.5642H6.09913V13.0362H11.5669L11.5679 14.5642ZM13.9009 11.5091H6.09913V10.018H13.9009V11.5091ZM13.9009 8.48996H6.09913V6.96286H13.9009V8.48996Z",fill:"#B7B9BD"}))})},77257:(eo,ot,i)=>{"use strict";i.d(ot,{EH:()=>P,cZ:()=>q,eA:()=>M,yP:()=>C});var a=i(67787),k=i(46712);const M=a.Ay.div.withConfig({displayName:"styles__StyledV9UserGuide",componentId:"sc-xzm77o-0"})(["width:300px;height:120px;position:absolute;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);svg{}}}> .content{width:100%;height:100%;position:relative;z-index:20;min-width:2em;min-height:2em;padding:18px 20px 20px;background-color:",";border-radius:10px;color:#fff;display:flex;flex-direction:column;span{width:100%;}.title{margin-bottom:8px;font-size:14px;font-weight:500;}.main-content{margin-bottom:8px;}.footer{display:flex;justify-content:space-between;.count{max-width:max-content;line-height:28px;}.btn-next{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";line-height:12px;font-weight:500;cursor:pointer;}}}.close-icon{position:absolute;top:16px;right:19px;cursor:pointer;}"],Y=>Y.theme.color_proto,Y=>Y.theme.color_proto,Y=>Y.theme.color_proto),P=(0,a.DU)(["#workspace{#popups-builtin-panel{.widget-insertable-cagegory-nav{.GUIDE_NOVICE_V9_2408_STEP_1{",";}}}}"],k.K6),C=(0,a.DU)(["#workspace{#popups-builtin-panel{.widget-panel-container{.widget-insertable-list .GUIDE_NOVICE_V9_2408_STEP_2{",";}}}}"],k.K6),q=(0,a.DU)(["#workspace{#mb-toolbar{.toolbar-center{div.GUIDE_NOVICE_V9_2408_STEP_3{a{",";}}}}}"],k.K6)},77533:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(38502),k=i(53732),M=i.n(k),P=i(67787);const C=P.Ay.ul.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-1pj18ld-0"})(["&,ol,li{list-style:none;}"]);var q=i(72214);const J=(0,a.memo)(l=>{let{activeScreenMetaCid:D="",editingScreenMetaCid:m="",screenSelection:E=[],renderScreenMetaItem:f,screenTreeData:h,dummySelect:S=new Set,collapseScreenMetaCidSet:V=new Set,dispatch:We}=l;return(0,q.jsx)(C,{children:h.children.map(re=>(0,q.jsx)(O,{treeNode:re,depth:0,screenSelection:E,activeScreenMetaCid:D,editingScreenMetaCid:m,renderScreenMetaItem:f,dummySelect:S,collapseScreenMetaCidSet:V,dispatch:We},re.cid))})});class O extends a.PureComponent{render(){const{treeNode:D,depth:m,activeScreenMetaCid:E,editingScreenMetaCid:f,screenSelection:h,renderScreenMetaItem:S,dummySelect:V,collapseScreenMetaCidSet:We,dispatch:re}=this.props,{cid:ve,data:we,children:Ae}=D,Oe=!We.has(ve),Be=!!Ae.length,tt=E===ve,Xe=h.includes(ve),ne=V.has(ve);return(0,q.jsxs)("li",{"data-cid":ve,className:M()("rn-content-item",{active:tt,select:Xe,"dummy-select":ne}),id:"mobile-page-item",children:[S({depth:m,screenMeta:we,hasScreenMetaChildren:Be,screenSelection:h,activeScreenMetaCid:E,editingScreenMetaCid:f,dummySelect:V,collapseScreenMetaCidSet:We,dispatch:re}),Ae.length>0&&Oe&&(0,q.jsx)("ul",{type:"screen-list",className:"child-screens",children:Ae.map((lt,rt)=>(0,q.jsx)(O,{treeNode:lt,depth:m+1,screenSelection:h,activeScreenMetaCid:E,editingScreenMetaCid:f,renderScreenMetaItem:S,dummySelect:V,collapseScreenMetaCidSet:We,dispatch:re},lt.cid))})]})}}},77595:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>m});var a=i(38502),k=i(53732),M=i.n(k),P=i(67787),C=i(49439),q=i(17307),Y=i(77866),J=i(93257),O=i(72214);const l=E=>{const{selected:f,dispatch:h,isShowCompletedComment:S,viewType:V}=E,[We,re]=(0,a.useState)(!1),ve=[{label:"all",value:""},{label:"only_your_treads",value:"me"},{label:"mentioned_you",value:"@me"}],we=(0,a.useCallback)(tt=>{tt!==f&&h({type:"comment:update:commentFilterSelected",payload:{commentFilterSelected:tt}})},[f]),Ae=(0,a.useCallback)((tt,Xe)=>()=>{tt==="selected"&&(we&&we(Xe),(0,Y.i4)({operation_type:Y.nU[Xe]||Y.nU.all,comment_type:"",relation:"",operation_from:Y.HI[V]}))},[we,V]),Oe=()=>{h({type:"comment:toggle:isShowCompletedComment"}),(0,Y.i4)({operation_type:Y.nU.ShowFinishedComment,comment_type:"",relation:"",operation_from:Y.HI[V]})},Be=f!=="";return(0,O.jsx)(D,{children:(0,O.jsx)(C.A,{dark:!0,top:30,right:0,className:"comment-filter-dropdown",onShow:()=>re(!0),onClose:()=>re(!1),trigger:(0,O.jsx)(J.A,{content:I18N.Comment.filter,direction:"down",children:(0,O.jsx)("div",{className:M()("filter-trigger-container",We?"active":""),children:Be?(0,O.jsx)(q.C,{className:"filter-active-icon",name:"comment/filter-active"}):(0,O.jsx)(q.C,{name:"comment/filter"})})}),children:(0,O.jsx)("div",{className:"filter-content-container",children:(0,O.jsxs)("div",{className:"list-container",children:[ve.map(tt=>(0,O.jsxs)("div",{className:"item-container",onClick:Ae("selected",tt.value),children:[(0,O.jsx)("div",{className:"icon-left",children:tt.value===f&&(0,O.jsx)(q.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,O.jsx)("div",{className:"value-right",children:I18N.Comment[tt.label]})]},tt.value)),(0,O.jsx)("div",{className:"separate-line"}),(0,O.jsxs)("div",{className:"item-container",onClick:Oe,children:[(0,O.jsx)("div",{className:"icon-left",children:S&&(0,O.jsx)(q.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,O.jsx)("div",{className:"value-right",children:I18N.Comment.show_resolved_comments})]})]})})})})},D=P.Ay.div.withConfig({displayName:"FilterDropdown__StyledFilterDropdown",componentId:"sc-1m6lf97-0"})([".comment-filter-dropdown{margin:0;.svg-icon{circle{fill:none;stroke:currentColor;}}}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684FC !important;}path{fill:#FFF !important;stroke:#FFF !important;}}}.filter-content-container{min-width:144px;width:max-content;display:flex;justify-content:center;position:relative;padding:8px;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;height:28px;padding-left:8px;padding-right:8px;color:",";cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background:",";}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:",";margin:6px 0;}}.filter-content-container{border-radius:8px;border:1px solid ",";background:",";box-shadow:0px 4px 10px 0px ",";.list-container{.item-container{border-radius:4px;.icon-left svg path{fill:",";}}}}"],E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_white,E=>E.theme.shadow_m,E=>E.theme.color_text_L1),m=(0,a.memo)(l)},77866:(eo,ot,i)=>{"use strict";i.d(ot,{HI:()=>C,ej:()=>P,i4:()=>q,nU:()=>M});var a=i(81717),k=i(5209);let M=function(Y){return Y.Create="\u65B0\u5EFA",Y.Response="\u56DE\u590D",Y.edit="\u7F16\u8F91",Y.FinishInEditArea="\u5B8C\u6210",Y.CancelFinishInEditArea="\u53D6\u6D88\u5B8C\u6210",Y.deleteInEditArea="\u5220\u9664",Y.SelectComment="\u9009\u4E2D\u8BC4\u8BBA-\u5217\u8868",Y.FinishInPanel="\u5B8C\u6210-\u5217\u8868",Y.CancelFinishInPanel="\u53D6\u6D88\u5B8C\u6210-\u5217\u8868",Y.deleteInPanel="\u5220\u9664-\u5217\u8868",Y.ShowFinishedComment="\u663E\u793A\u5DF2\u5B8C\u6210\u7684\u8BC4\u8BBA",Y.me="\u6211\u521B\u5EFA\u7684",Y["@me"]="\u63D0\u5230\u6211\u7684",Y.all="\u5168\u90E8",Y}({}),P=function(Y){return Y.point="\u6253\u70B9",Y.frame="\u6846\u9009",Y}({}),C=function(Y){return Y.edit="\u7F16\u8F91\u6A21\u5F0F",Y.only_view="\u53EA\u8BFB\u6A21\u5F0F",Y.device="\u771F\u673A\u6A21\u5F0F",Y}({});const q=Y=>{let{operation_type:J,comment_type:O,relation:l,operation_from:D}=Y;J===void 0||O===void 0||l===void 0||D===void 0||((0,k.kH)("comment_operation_V8",{operation_type:J,comment_type:O,relation:l,operation_from:D}),a.Y4.editProjectNew("\u8BC4\u8BBA\u64CD\u4F5C"))}},77938:(eo,ot,i)=>{"use strict";i.d(ot,{Hh:()=>M,W8:()=>C,a7:()=>q,hu:()=>P,qX:()=>k,wb:()=>a});const a=Y=>Y.ui.fixedLayout.autoFillPanel.show,k=Y=>Y.ui.fixedLayout.autoFillPanel.position,M=Y=>Y.ui.fixedLayout.autoFillPanel.openFrom,P=Y=>Y.ui.fixedLayout.autoFillPanel.defaultTab,C=Y=>Y.ui.fixedLayout.autoFillPanel.isShowClose,q=Y=>Y.ui.fixedLayout.autoFillPanel.canShowAllTab},78778:(eo,ot,i)=>{"use strict";i.d(ot,{K:()=>k});var a=i(67787);const k=(0,a.DU)(['[role~="tooltip"]{position:relative;}[role~="tooltip"]::before,[role~="tooltip"]::after{transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;position:absolute;box-sizing:border-box;z-index:10;transform-origin:top;}[role~="tooltip"]:not([class^="ant-"][class*="-inner"]):not([class*=" ant-"][class*="-inner"])::after{background:',";border-radius:2px;color:",';content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);text-transform:var(--microtip-text-transform,none);padding:3px 7px;white-space:nowrap;box-sizing:content-box;}[role~="tooltip"]:hover::before,[role~="tooltip"]:hover::after,[role~="tooltip"]:focus::before,[role~="tooltip"]:focus::after{opacity:1;pointer-events:auto;}[role~="tooltip"][data-microtip-position|="top"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-bottom:5px;}[role~="tooltip"][data-microtip-position|="top"]::after{margin-bottom:11px;}[role~="tooltip"][data-microtip-position|="top"]::before{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position|="top"]:hover::before{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position|="top"]::after{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position="top"]:hover::after{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position="top-left"]::after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-left"]:hover::after{transform:translate3d(calc(-100% + 16px),-5px,0);}[role~="tooltip"][data-microtip-position="top-right"]::after{transform:translate3d(calc(0% + -16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-right"]:hover::after{transform:translate3d(calc(0% + -16px),-5px,0);}[role~="tooltip"][data-microtip-position|="bottom"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position|="bottom"]::after{margin-top:11px;}[role~="tooltip"][data-microtip-position|="bottom"]::before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%;}[role~="tooltip"][data-microtip-position|="bottom"]:hover::before{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position|="bottom"]::after{transform:translate3d(-50%,-10px,0);top:100%;left:50%;}[role~="tooltip"][data-microtip-position="bottom"]:hover::after{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position="bottom-left"]::after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after{transform:translate3d(calc(-100% + 16px),0,0);}[role~="tooltip"][data-microtip-position="bottom-right"]::after{transform:translate3d(calc(0% + -16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after{transform:translate3d(calc(0% + -16px),0,0);}[role~="tooltip"][data-microtip-position="left"]::before,[role~="tooltip"][data-microtip-position="left"]::after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0);}[role~="tooltip"][data-microtip-position="left"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position="left"]::after{margin-right:11px;}[role~="tooltip"][data-microtip-position="left"]:hover::before,[role~="tooltip"][data-microtip-position="left"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before,[role~="tooltip"][data-microtip-position="right"]::after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px;}[role~="tooltip"][data-microtip-position="right"]::after{margin-left:11px;}[role~="tooltip"][data-microtip-position="right"]:hover::before,[role~="tooltip"][data-microtip-position="right"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-size="small"]::after{white-space:initial;width:80px;}[role~="tooltip"][data-microtip-size="medium"]::after{white-space:initial;width:150px;}[role~="tooltip"][data-microtip-size="large"]::after{white-space:initial;width:260px;}'],M=>M.theme.color_tips_black,M=>M.theme.color_text_btn)},78795:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Ts});var a=i(18381),k=i(12211),M=i(16454),P=i(95549),C=i(38502),q=i(94319),Y=i.n(q),J=i(53732),O=i.n(J),l=Object.defineProperty,D=Object.defineProperties,m=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,S=(Pn,an,Gn)=>an in Pn?l(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,V=(Pn,an)=>{for(var Gn in an||(an={}))f.call(an,Gn)&&S(Pn,Gn,an[Gn]);if(E)for(var Gn of E(an))h.call(an,Gn)&&S(Pn,Gn,an[Gn]);return Pn},We=(Pn,an)=>D(Pn,m(an)),re=(Pn,an)=>{var Gn={};for(var _o in Pn)f.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&E)for(var _o of E(Pn))an.indexOf(_o)<0&&h.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},we=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=re(Gn,["size","spin","style"]);const Sr=V(V({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",We(V({ref:an,style:Sr},Lr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071Z",fill:"#414142"}))}),Ae=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,lt=(Pn,an,Gn)=>an in Pn?Ae(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,rt=(Pn,an)=>{for(var Gn in an||(an={}))Xe.call(an,Gn)&&lt(Pn,Gn,an[Gn]);if(tt)for(var Gn of tt(an))ne.call(an,Gn)&&lt(Pn,Gn,an[Gn]);return Pn},Te=(Pn,an)=>Oe(Pn,Be(an)),Ge=(Pn,an)=>{var Gn={};for(var _o in Pn)Xe.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&tt)for(var _o of tt(Pn))an.indexOf(_o)<0&&ne.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},Me=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=Ge(Gn,["size","spin","style"]);const Sr=rt(rt({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Te(rt({ref:an,style:Sr},Lr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("path",{d:"M7.22299 7.22241C7.53336 6.91203 8.0524 6.92779 8.38217 7.25757L12.0003 10.8757L15.6175 7.25854C15.9473 6.92877 16.4663 6.91301 16.7767 7.22339C17.0869 7.53378 17.0713 8.05284 16.7415 8.38257L13.1244 11.9998L16.7415 15.6169C17.0713 15.9467 17.0871 16.4657 16.7767 16.7761C16.4663 17.0865 15.9473 17.0707 15.6175 16.741L12.0003 13.1238L8.38217 16.7419C8.0524 17.0716 7.53331 17.0874 7.22299 16.7771C6.91268 16.4668 6.92855 15.9477 7.25815 15.6179L10.8763 11.9998L7.25815 8.38159C6.92844 8.05187 6.9128 7.53281 7.22299 7.22241Z",fill:"#414142"}))}),Ze=i(17307),fe=i(62490),it=i(78401),et=i(69246),Ut=i(85584),G=i(20089),Ht=i(67787),Tt=i(51090);const Vt=Ht.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-1i9nu12-0"})(["display:flex;align-items:center;height:45px;padding-right:20px;position:relative;&.active{background:#f2f2f2;}.choosed{height:14px;min-width:14px;margin-right:16px;color:#999999;}.expander{height:22px;width:22px;margin-left:-16px;display:flex;justify-content:center;align-items:center;.arrow-icon{height:22px;width:22px;color:#8d9ea7;&.is-expand{transform:rotate(90deg);}}}.screen-name{display:flex;align-items:center;width:100%;height:100%;justify-content:space-between;flex-direction:row;align-items:center;.screen-left{display:flex;flex-direction:row;align-items:center;width:calc(100% - 70px);}.screen-item-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;flex-shrink:0;margin-right:6px;}.editable-span{font-size:14px;color:#000000;width:calc(100% - 30px);",";}.screen-right{display:flex;flex-direction:row;align-items:center;width:62px;.page-number{width:40px;text-align:right;}.gray-number{color:#cccccc;}svg{width:22px;height:22px;margin-left:6px;}}}.item-line{height:1px;background:#f2f2f2;position:absolute;left:20px;right:20px;top:0;}"],Tt.L9);var He=i(72214);class rn extends C.PureComponent{constructor(){super(...arguments),(0,P.A)(this,"setElementRef",an=>this.$elem=an),(0,P.A)(this,"handleExpand",an=>{an.stopPropagation();const{screenMeta:Gn,actionProps:{onExpand:_o}}=this.props;_o(Gn)}),(0,P.A)(this,"handleClick",an=>{an.stopPropagation();const{screenMeta:Gn,actionProps:{onSelect:_o}}=this.props,Da=(0,Ut.Mo)(Gn),{cid:pr}=Gn,Lr=sdkStore.findAllTypeUnderNoSubPage(pr,G.x.Canvas).filter(Sr=>!Sr.hotAttr.asOverlay);!Lr||Lr.length===0||Da||_o(Gn)})}componentDidMount(){if(!(0,it.zN)(this.$elem)){if(!this.$elem.classList.contains("active"))return;const Gn=document.querySelector(".rn-content-body");if(!Gn)return;const _o=Gn.getBoundingClientRect(),{bottom:Da}=this.$elem.getBoundingClientRect();Gn.scrollTop+=Da-_o.bottom+20}}stopPropagation(an){an.stopPropagation()}render(){const{screenMeta:an,depth:Gn,isExpand:_o,isActive:Da,showExpander:pr,theme:Lr}=this.props,Sr=10*(Gn+1)+25,Bi=(0,Ut.Mo)(an),{cid:cs,name:Us,icon:rl}=an,zl=sdkStore.findAllTypeUnderNoSubPage(cs,G.x.Canvas).filter(Ys=>!Ys.hotAttr.asOverlay),ds=zl&&zl.length>0;return(0,He.jsxs)(Vt,{ref:this.setElementRef,"data-cid":cs,onClick:this.handleClick,style:{paddingLeft:Sr},className:O()("rn-list-item",{active:Da,folder:Bi}),children:[pr&&(0,He.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,He.jsx)(Ze.C,{className:O()("arrow-icon",{"is-expand":!_o}),name:"common/mobile/expand"})}),(0,He.jsxs)("div",{className:"screen-name",children:[(0,He.jsxs)("div",{className:"screen-left",children:[(0,He.jsx)("div",{className:"screen-item-icon",children:(0,He.jsx)(et.k,{icon:rl,theme:Lr,isExpand:Bi?!_o:_o})}),(0,He.jsx)(fe.O,{className:"editable-span",children:(0,it.wh)(Us)})]}),Bi?(0,He.jsx)(He.Fragment,{}):(0,He.jsxs)("div",{className:"screen-right",children:[(0,He.jsx)("div",{className:"page-number "+(ds?"":"gray-number"),children:(zl==null?void 0:zl.length)||0}),(0,He.jsx)(Ze.C,{isColorPure:!0,name:ds?"preview/scree/right-arror":"preview/scree/right-arror-gray"})]})]}),Gn===0&&(0,He.jsx)("div",{className:"item-line"})]})}}var Lt=i(77533),jt=i(22835);const mt=Ht.Ay.div.withConfig({displayName:"styles__StyledPageList",componentId:"sc-8jjx0w-0"})(["height:100%;width:100%;.page-item{height:45px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;width:100%;padding:0 20px;box-sizing:border-box;svg{width:20px;height:20px;margin-left:16px;}.page-name{font-size:14px;color:#000;margin-left:6px;display:flex;flex:1;span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;max-width:260px;}.invisible{width:20px;height:20px;margin-right:16px;}}.bottom-line{display:flex;position:absolute;left:20px;right:20px;bottom:0px;height:1px;background:#f2f2f2;}}"]);class Jn extends C.PureComponent{constructor(){super(...arguments),(0,P.A)(this,"pageItemHandle",an=>{const{runnerState:{activeCanvasKey:Gn},dispatch:_o,currentCanvasCid:Da}=this.props;Gn!==an&&_o({type:"entry:runner:activate:canvas",payload:{pageKey:Da,canvasKey:an}})}),(0,P.A)(this,"pageItem",(an,Gn)=>{const{runnerState:{activeCanvasKey:_o}}=this.props,{key:Da,hotAttr:{name:pr,isVisible:Lr}}=Gn,Sr=_o===Da;return(0,He.jsxs)("div",{"data-cid":Da,id:"mobile-page-item",className:"page-item",onClick:()=>this.pageItemHandle(Da),onDoubleClick:Bi=>{Bi.stopPropagation()},style:{background:Sr?"#f2f2f2":""},children:[(0,He.jsx)(Ze.C,{name:"preview/share/part_page"}),(0,He.jsxs)("div",{className:"page-name",children:[(0,He.jsx)("span",{children:pr}),!Lr&&(0,He.jsx)(Ze.C,{className:"invisible",name:"common/invisible"})]}),(0,He.jsx)("div",{className:"bottom-line"})]},an)})}componentDidMount(){const{runnerState:{activeCanvasKey:an}}=this.props;(0,jt.H1)(an)}render(){const{currentCanvasCid:an}=this.props,Gn=sdkStore.findAllTypeUnderNoSubPage(an,G.x.Canvas).filter(_o=>!_o.hotAttr.asOverlay).sort((_o,Da)=>_o.hotAttr.order-Da.hotAttr.order);return(0,He.jsx)(mt,{children:Gn&&Gn.map((_o,Da)=>this.pageItem(Da,_o))})}}var o=i(56202),so=i(20640),Et=i(34860);const Jt="sharing",Ot="screen",dn=Pn=>{try{const an=_o=>{let Da=0;const pr=[];for(const Lr in _o){const{hotAttr:{asFolder:Sr}}=_o[Lr];Sr||(pr.push(_o[Lr]),Da=Da+sdkStore.findAllTypeUnderNoSubPage(Lr,G.x.Canvas).length)}return{canvas:pr.length,pages:Da}};if((0,Et.St)()){const{screen_visible_list:_o,screen_visible_switch:Da}=Pn;if(Da){const{screenDataMap:pr}=(0,so.wb)(_o);return an(pr)}}const{screenDataMap:Gn}=(0,so.tb)();return an(Gn)}catch(an){return{canvas:0,pages:0}}},Ce=Pn=>{try{const{screenDataMap:an}=(0,so.tb)();return an[Pn]}catch(an){console.warn("getCanvasInfo error:",an)}return null},Pt=68,Nn=370,At=Ht.Ay.div.withConfig({displayName:"styles__StyledPreviewMask",componentId:"sc-addbg1-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:5;background:#19191A99;"]),on=Ht.Ay.div.withConfig({displayName:"styles__StyledPreviewSetting",componentId:"sc-addbg1-1"})(["position:fixed;bottom:-","px;display:flex;flex-direction:column;z-index:6;height:","px;padding-bottom:15px;width:100%;transition:bottom 0.3s ease-in-out;background:white;border-top-right-radius:24px;border-top-left-radius:24px;overflow:hidden;&.is-open{bottom:0;}.panel-bg{position:absolute;left:0;top:0;width:100%;height:160px;z-index:-1;object-fit:cover;}.theContent{display:flex;flex-grow:1;flex-direction:column;.line{border-bottom:1px solid #F2F2F2;margin:0 20px;}.contentItem{display:flex;flex-direction:row;justify-content:flex-start;margin:0 20px;padding:20px 0;border-bottom:1px solid rgb(242,242,242);.menuBlock{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-right:30px;.menuBlockIcon{border-radius:10px;background-color:white;height:60px;width:60px;margin-bottom:8px;border:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;.blockIcon{height:36px;width:36px;color:#ffffff;}}.menuBlockName{display:flex;align-items:center;font-size:12px;color:#84817a;.redDot{width:4px;height:4px;background:#eb5648;border-radius:50%;margin-right:2px;}}}}.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;color:#415058;border-bottom:1px solid #F2F2F2;.headerIcon{height:40px;width:40px;margin-right:12px;border-radius:6px;img{height:40px;width:40px;}svg{width:40px;height:40px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#415058;text-align:left;width:300px;}.headerIntro{margin-top:4px;color:#8d9ea7;font-size:12px;font-weight:400;text-align:left;}}}}.top-line{border-top:1px solid #F2F2F2;}@supports (bottom:env(safe-area-inset-bottom)){&.is-open{margin-bottom:env(safe-area-inset-bottom);}}.close-icon{position:absolute;right:12px;top:12px;}"],Nn+10,Nn,Pt),no=Ht.Ay.div.withConfig({displayName:"styles__StyledScreenSetting",componentId:"sc-50ucr4-0"})(["flex:1;width:100%;height:100%;.theHeader{display:flex;align-items:center;justify-content:space-between;height:","px;margin:0 20px;border-bottom:1px solid #f2f2f2;.header-left{display:flex;align-items:center;}.backBtn{display:flex;}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-size:16px;color:#000;font-weight:500;}}}.screen-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}.when-ws .choosed path{fill:#4257ff;}"],Pt,Pt);class mo extends C.PureComponent{constructor(an){super(an),(0,P.A)(this,"initCollapseKeySet",()=>{const{activeCid:Gn}=this.props,_o=(0,Ut.e7)(Gn),Da=new Set(_o.map(pr=>{let{cid:Lr}=pr;return Lr}));this.setState({collapseKeySet:Da})}),(0,P.A)(this,"handleSelectScreenMeta",Gn=>{this.setState({showPageList:!0,currentCanvasCid:Gn.cid})}),(0,P.A)(this,"handleScreenMetaExpand",Gn=>{let{cid:_o}=Gn;const{collapseKeySet:Da}=this.state,pr=new Set(Da);Da.has(_o)?pr.delete(_o):pr.add(_o),this.setState({collapseKeySet:pr})}),(0,P.A)(this,"backHeader",()=>{const{projectName:Gn,onBack:_o,onExitPanel:Da}=this.props,{showPageList:pr,currentCanvasCid:Lr}=this.state;let Sr=Gn;if(pr){const Bi=Ce(Lr);if(Bi){const{hotAttr:{name:cs}}=Bi;Sr=cs}}return(0,He.jsxs)("div",{className:"theHeader",children:[(0,He.jsxs)("div",{className:"header-left",children:[(0,He.jsx)("div",{className:"backBtn","data-value":"",onClick:()=>{if(pr){this.setState({showPageList:!1});return}_o()},children:((0,o.Md)()||pr)&&(0,He.jsx)(we,{size:24})}),(0,He.jsx)("div",{className:"headerTitle",children:(0,He.jsx)("div",{className:"headerName",children:Sr})})]}),(0,He.jsx)("div",{style:{display:"flex",alignItems:"center"},children:!(0,o.Md)()&&!pr&&(0,He.jsx)(Me,{size:24,onClick:Da})})]})}),(0,P.A)(this,"renderScreenMetaItem",Gn=>{let{depth:_o,screenMeta:Da,hasScreenMetaChildren:pr,collapseScreenMetaCidSet:Lr,activeScreenMetaCid:Sr,dispatch:Bi}=Gn;const{theme:cs}=this.props,{cid:Us}=Da,rl=Sr===Us,zl=Lr.has(Us),ds=pr||(0,Ut.Mo)(Da);return(0,He.jsx)(rn,{theme:cs,depth:_o,screenMeta:Da,isActive:rl,isExpand:zl,showExpander:ds,actionProps:this.literalActionProps})}),this.state={collapseKeySet:new Set,showPageList:!1,currentCanvasCid:""},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta}}componentDidMount(){const{activeCid:an}=this.props;this.setState({currentCanvasCid:an}),this.initCollapseKeySet(),(0,jt.H1)(an)}render(){const{activeCid:an,screenTreeData:Gn,runnerState:_o,dispatch:Da,isStatePanelShow:pr}=this.props,{collapseKeySet:Lr,showPageList:Sr,currentCanvasCid:Bi}=this.state;return(0,He.jsx)(He.Fragment,{children:!pr&&(0,He.jsxs)(no,{children:[this.backHeader(),(0,He.jsx)("div",{className:O()("screen-list",{"when-ws":!!ENV.IS_MO}),id:"mobile-screen-tree",children:Sr?(0,He.jsx)(Jn,{currentCanvasCid:Bi,runnerState:_o,dispatch:Da}):(0,He.jsx)(Lt.A,{collapseScreenMetaCidSet:Lr,activeScreenMetaCid:an,screenTreeData:Gn,renderScreenMetaItem:this.renderScreenMetaItem,dispatch:Da})})]})})}}const mn=(0,k.Mz)([M.O4,M.oJ,M.Ur,M.mf,M.t$],(Pn,an,Gn,_o,Da)=>{const pr=Gn.cid;return{screenTreeData:an,activeCid:pr,runnerState:_o,isStatePanelShow:Da,theme:Pn}}),ht=(0,a.Ng)(Pn=>mn(Pn))(mo);var Fn=i(18183);const Yt=Ht.Ay.div.withConfig({displayName:"styles__StyledSharingSetting",componentId:"sc-1gzo5az-0"})(["flex:1;display:flex;flex-grow:1;flex-direction:column;height:100%;padding:0 25px 25px 25px;.nav-header{width:100%;display:flex;align-items:center;justify-content:center;height:","px;color:#415058;.backBtn{position:absolute;left:20px;}}.header-title{display:flex;flex-direction:column;align-items:center;.headerName{font-weight:bold;font-size:16px;color:#19191A;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8B8C8F;}}.share-container{flex:1;width:100%;padding:0 25px;display:flex;align-items:center;flex-direction:row;justify-content:space-around;&.disabled{opacity:0.4;pointer-events:none;}.item{color:#414651;font-size:14px;line-height:20px;display:flex;flex-direction:column;align-items:center;gap:6px;}}"],Pt),Gt=Ht.Ay.div.withConfig({displayName:"styles__StyledOldVersion",componentId:"sc-1gzo5az-1"})(["display:flex;align-items:center;flex-direction:column;height:calc(100% - ","px);justify-content:center;.version-low{width:100px;}.center{color:#415058;font-size:16px;margin-top:24px;}.bottom{color:#7D8B94;font-size:12px;margin-top:8px;}"],Pt);var Bn=i(25306),qt=Object.defineProperty,Zt=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Wt=(Pn,an,Gn)=>an in Pn?qt(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,wn=(Pn,an)=>{for(var Gn in an||(an={}))Tn.call(an,Gn)&&Wt(Pn,Gn,an[Gn]);if(ro)for(var Gn of ro(an))bt.call(an,Gn)&&Wt(Pn,Gn,an[Gn]);return Pn},uo=(Pn,an)=>Zt(Pn,jn(an)),In=(Pn,an)=>{var Gn={};for(var _o in Pn)Tn.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&ro)for(var _o of ro(Pn))an.indexOf(_o)<0&&bt.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},So=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=In(Gn,["size","spin","style"]);const Sr=wn(wn({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",uo(wn({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),C.createElement("path",{d:"M19.9424 24.6016C20.409 24.1354 21.1654 24.1351 21.6318 24.6016C22.0984 25.0682 22.0984 25.8254 21.6318 26.292L19.3018 28.6211C17.6237 30.2992 17.6237 33.0202 19.3018 34.6982C20.9798 36.3763 23.7008 36.3763 25.3789 34.6982L27.708 32.3682C28.1746 31.9016 28.9318 31.9016 29.3984 32.3682C29.8649 32.8346 29.8646 33.591 29.3984 34.0576L27.0684 36.3877C24.4571 38.9989 20.2236 38.9989 17.6123 36.3877C15.0011 33.7764 15.0011 29.5429 17.6123 26.9316L19.9424 24.6016ZM29.5215 22.79C29.9881 22.3235 30.7444 22.3235 31.2109 22.79C31.6773 23.2566 31.6774 24.013 31.2109 24.4795L24.4795 31.2109C24.0129 31.6771 23.2565 31.6772 22.79 31.2109C22.3234 30.7443 22.3234 29.9871 22.79 29.5205L29.5215 22.79ZM26.9316 17.6123C29.5429 15.0011 33.7764 15.0011 36.3877 17.6123C38.9989 20.2236 38.9989 24.4571 36.3877 27.0684L34.0576 29.3984C33.591 29.8646 32.8346 29.8649 32.3682 29.3984C31.9016 28.9318 31.9016 28.1746 32.3682 27.708L34.6982 25.3789C36.3763 23.7008 36.3763 20.9798 34.6982 19.3018C33.0202 17.6237 30.2992 17.6237 28.6211 19.3018L26.292 21.6318C25.8254 22.0984 25.0682 22.0984 24.6016 21.6318C24.1351 21.1654 24.1354 20.409 24.6016 19.9424L26.9316 17.6123Z",fill:"#2EA7E0",stroke:"#2EA7E0",strokeWidth:"0.192857"}))}),Qt=Object.defineProperty,Ln=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,qn=(Pn,an,Gn)=>an in Pn?Qt(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,Hn=(Pn,an)=>{for(var Gn in an||(an={}))Qe.call(an,Gn)&&qn(Pn,Gn,an[Gn]);if(Rt)for(var Gn of Rt(an))En.call(an,Gn)&&qn(Pn,Gn,an[Gn]);return Pn},Yn=(Pn,an)=>Ln(Pn,Mn(an)),oo=(Pn,an)=>{var Gn={};for(var _o in Pn)Qe.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&Rt)for(var _o of Rt(Pn))an.indexOf(_o)<0&&En.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},po=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=oo(Gn,["size","spin","style"]);const Sr=Hn(Hn({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Yn(Hn({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),C.createElement("g",{clipPath:"url(#clip0_2376_114)"},C.createElement("path",{d:"M35.4523 29.1998C35.7572 29.1958 36.0486 29.0728 36.2642 28.8572C36.4799 28.6415 36.6028 28.3501 36.6068 28.0452C36.6068 27.4049 36.0938 26.8906 35.4523 26.8906C34.8107 26.8906 34.2977 27.4049 34.2977 28.0452C34.2977 28.688 34.812 29.1998 35.4523 29.1998ZM29.763 29.1998C30.0679 29.1958 30.3593 29.0728 30.575 28.8572C30.7906 28.6415 30.9135 28.3501 30.9175 28.0452C30.9175 27.4049 30.4033 26.8906 29.763 26.8906C29.1201 26.8906 28.6084 27.4049 28.6084 28.0452C28.6084 28.688 29.1214 29.1998 29.763 29.1998ZM38.2063 35.6798C38.1239 35.7255 38.0581 35.7962 38.0184 35.8817C37.9787 35.9671 37.967 36.063 37.9851 36.1555C37.9851 36.2172 37.9851 36.2802 38.0173 36.3445C38.1433 36.8806 38.3953 37.7343 38.3953 37.7665C38.3953 37.8603 38.4274 37.9233 38.4274 37.9876C38.4274 38.0249 38.42 38.0618 38.4057 38.0962C38.3915 38.1306 38.3705 38.1618 38.3441 38.1881C38.3177 38.2144 38.2864 38.2352 38.2519 38.2493C38.2174 38.2634 38.1805 38.2706 38.1433 38.2705C38.079 38.2705 38.0481 38.2396 37.9851 38.2088L36.1221 37.1339C35.9861 37.059 35.8349 37.0159 35.6798 37.0079C35.586 37.0079 35.4908 37.0079 35.4278 37.0388C34.5433 37.292 33.6278 37.418 32.6494 37.418C27.9437 37.418 24.1547 34.259 24.1547 30.3402C24.1547 26.4226 27.9437 23.2623 32.6494 23.2623C37.3538 23.2623 41.1428 26.4226 41.1428 30.3402C41.1428 32.4578 40.0063 34.385 38.2063 35.681V35.6798ZM33.0081 21.9843C32.8882 21.9803 32.7681 21.9782 32.6481 21.9779C27.2815 21.9779 22.869 25.655 22.869 30.3415C22.869 31.0538 22.9718 31.7429 23.1621 32.3986H23.0477C21.9243 32.3873 20.8073 32.2282 19.7254 31.9255C19.6303 31.8933 19.5351 31.8933 19.44 31.8933C19.25 31.8974 19.0645 31.9519 18.9025 32.0515L16.6551 33.3436C16.5908 33.3758 16.5278 33.4079 16.4648 33.4079C16.3731 33.4069 16.2854 33.37 16.2205 33.3051C16.1556 33.2402 16.1187 33.1525 16.1177 33.0608C16.1177 32.9656 16.1485 32.9026 16.1807 32.8075C16.2115 32.7766 16.497 31.7352 16.6551 31.1052C16.6551 31.0409 16.686 30.947 16.686 30.884C16.6856 30.7738 16.6598 30.6652 16.6105 30.5666C16.5612 30.468 16.4898 30.3822 16.4018 30.3158C14.2174 28.769 12.8571 26.4676 12.8571 23.9116C12.8571 19.2149 17.4471 15.4285 23.0785 15.4285C27.9193 15.4285 31.9885 18.2172 33.0081 21.983V21.9843ZM26.3815 22.5218C27.1183 22.5218 27.7007 21.9085 27.7007 21.2026C27.7007 20.4659 27.1183 19.8835 26.3815 19.8835C25.6448 19.8835 25.0624 20.4659 25.0624 21.2026C25.0624 21.9393 25.6448 22.5218 26.3815 22.5218ZM19.6187 22.5218C20.3554 22.5218 20.9391 21.9085 20.9391 21.2026C20.9391 20.4659 20.3554 19.8835 19.6187 19.8835C18.8833 19.8835 18.2995 20.4659 18.2995 21.2026C18.2995 21.9393 18.8833 22.5218 19.6187 22.5218Z",fill:"#00C70A"})),C.createElement("defs",null,C.createElement("clipPath",{id:"clip0_2376_114"},C.createElement("rect",{width:"30.8571",height:"30.8571",fill:"white",transform:"translate(11.5715 11.5713)"}))))}),Oo=Object.defineProperty,Qo=Object.defineProperties,ea=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,nn=(Pn,an,Gn)=>an in Pn?Oo(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,Zn=(Pn,an)=>{for(var Gn in an||(an={}))Un.call(an,Gn)&&nn(Pn,Gn,an[Gn]);if(_n)for(var Gn of _n(an))cn.call(an,Gn)&&nn(Pn,Gn,an[Gn]);return Pn},ho=(Pn,an)=>Qo(Pn,ea(an)),Xn=(Pn,an)=>{var Gn={};for(var _o in Pn)Un.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&_n)for(var _o of _n(Pn))an.indexOf(_o)<0&&cn.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},Zo=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=Xn(Gn,["size","spin","style"]);const Sr=Zn(Zn({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",ho(Zn({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),C.createElement("g",{clipPath:"url(#clip0_2376_113)"},C.createElement("path",{d:"M27.0069 14.4639C26.5336 14.4639 26.0603 14.4917 25.6009 14.5474C24.4594 14.6727 23.3875 14.9511 22.3573 15.3687C22.3573 15.3687 30.7794 23.7073 31.0161 24.0136V15.1181C30.7655 15.0346 30.501 14.9511 30.2505 14.8815C29.2064 14.617 28.1345 14.4639 27.0069 14.4639Z",fill:"#F95352"}),C.createElement("path",{d:"M35.819 18.0832C35.4849 17.7491 35.123 17.4428 34.761 17.1505C33.8701 16.4405 32.8956 15.8698 31.8933 15.4382C31.8933 15.4382 31.949 27.2849 31.8933 27.6607L38.1717 21.3685C38.0603 21.1319 37.9211 20.8952 37.7958 20.6585C37.2529 19.7398 36.5986 18.8767 35.819 18.0832Z",fill:"#6367EF"}),C.createElement("path",{d:"M38.5751 22.3711C38.5751 22.3711 30.2365 30.7932 29.9303 31.0299H38.8257C38.9092 30.7793 38.9927 30.5148 39.0623 30.2642C39.3408 29.2341 39.4939 28.1482 39.4939 27.0346C39.4939 26.5613 39.466 26.088 39.4104 25.6286C39.2712 24.4731 38.9927 23.3873 38.5751 22.3711Z",fill:"#5283EF"}),C.createElement("path",{d:"M26.2135 31.9485L32.5057 38.2407C32.7424 38.1293 32.9791 37.9901 33.2157 37.8648C34.1484 37.3359 35.0115 36.6676 35.805 35.8881C36.1391 35.554 36.4453 35.192 36.7377 34.8301C37.4477 33.9392 38.0184 32.9786 38.4499 31.9624C38.436 31.9485 26.5894 32.0181 26.2135 31.9485Z",fill:"#00B0FD"}),C.createElement("path",{d:"M22.9839 29.9717V38.8671C23.2344 38.9506 23.499 39.0342 23.7495 39.1037C24.7797 39.3822 25.8655 39.5353 26.9792 39.5353C27.4525 39.5353 27.9258 39.5074 28.3852 39.4518C29.5267 39.3265 30.5986 39.0481 31.6287 38.6304C31.6287 38.6165 23.2066 30.2779 22.9839 29.9717Z",fill:"#66D01F"}),C.createElement("path",{d:"M22.0932 26.2688L15.8009 32.561C15.9123 32.7977 16.0515 33.0343 16.1768 33.271C16.7058 34.2036 17.374 35.0668 18.1536 35.8602C18.4877 36.1943 18.8496 36.5006 19.2115 36.7929C20.1025 37.5029 21.063 38.0737 22.0792 38.5052C22.0932 38.4913 22.0375 26.6447 22.0932 26.2688Z",fill:"#9AD121"}),C.createElement("path",{d:"M14.9379 23.7493C14.6595 24.7794 14.5063 25.8653 14.5063 26.9789C14.5063 27.4522 14.5342 27.9255 14.5899 28.3849C14.7151 29.5265 14.9936 30.5983 15.4112 31.6285C15.4112 31.6285 23.7498 23.2064 24.056 22.9836H15.1606C15.0771 23.2342 15.0075 23.4848 14.9379 23.7493Z",fill:"#FFC716"}),C.createElement("path",{d:"M20.7147 16.1761C19.782 16.7051 18.9189 17.3733 18.1254 18.1529C17.7913 18.487 17.485 18.849 17.1927 19.2109C16.4827 20.1018 15.912 21.0763 15.4804 22.0925C15.4804 22.0925 27.3271 22.0368 27.7168 22.0925L21.4246 15.8003L20.7146 16.1761H20.7147Z",fill:"#FF7612"})),C.createElement("defs",null,C.createElement("clipPath",{id:"clip0_2376_113"},C.createElement("rect",{width:"24.9912",height:"25.0714",fill:"white",transform:"translate(14.5044 14.4639)"}))))}),ia=Object.defineProperty,xa=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,ln=(Pn,an,Gn)=>an in Pn?ia(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,ta=(Pn,an)=>{for(var Gn in an||(an={}))Ra.call(an,Gn)&&ln(Pn,Gn,an[Gn]);if(zo)for(var Gn of zo(an))Sa.call(an,Gn)&&ln(Pn,Gn,an[Gn]);return Pn},ko=(Pn,an)=>xa(Pn,fa(an)),bo=(Pn,an)=>{var Gn={};for(var _o in Pn)Ra.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&zo)for(var _o of zo(Pn))an.indexOf(_o)<0&&Sa.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},ma=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=bo(Gn,["size","spin","style"]);const Sr=ta(ta({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",ko(ta({ref:an,style:Sr},Lr),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("g",{clipPath:"url(#clip0_2376_241)"},C.createElement("path",{d:"M7.74414 5.24408C8.06958 4.91864 8.59709 4.91864 8.92252 5.24408L13.0892 9.41074C13.4146 9.73618 13.4146 10.2637 13.0892 10.5891L8.92252 14.7558C8.59709 15.0812 8.06958 15.0812 7.74414 14.7558C7.4187 14.4304 7.4187 13.9028 7.74414 13.5774L11.3216 9.99994L7.74414 6.42246C7.4187 6.09703 7.4187 5.56951 7.74414 5.24408Z",fill:"#414651"})),C.createElement("defs",null,C.createElement("clipPath",{id:"clip0_2376_241"},C.createElement("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H14C17.3137 0 20 2.68629 20 6V14C20 17.3137 17.3137 20 14 20H6C2.68629 20 0 17.3137 0 14V6Z",fill:"white"}))))});const dr=Ht.Ay.div.withConfig({displayName:"styles__StyledSettingItem",componentId:"sc-1aj7uzy-0"})(["width:100%;height:56px;display:flex;flex-direction:row;justify-content:space-between;font-size:14px;color:#19191A;align-items:center;&.disabled{opacity:0.4;pointer-events:none;}.item-right{display:flex;align-items:center;flex-direction:row;gap:2px;}"]),ni=Pn=>{let{item:an}=Pn;const{label:Gn,rightChildren:_o,disabled:Da,onClick:pr}=an;return(0,He.jsxs)(dr,{className:Da?"disabled":"",onClick:pr,children:[(0,He.jsx)("div",{children:Gn}),_o]})};var Ir=i(66147),$a=i(94586),Va=i(53034),Ha=i(59895),or=i(94815),gi=i(49358),Qr=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Qi=C.forwardRef(function(Pn,an){var Gn,_o=Pn.prefixCls,Da=_o===void 0?"rc-switch":_o,pr=Pn.className,Lr=Pn.checked,Sr=Pn.defaultChecked,Bi=Pn.disabled,cs=Pn.loadingIcon,Us=Pn.checkedChildren,rl=Pn.unCheckedChildren,zl=Pn.onClick,ds=Pn.onChange,Ys=Pn.onKeyDown,Tc=(0,Ha.A)(Pn,Qr),Pd=(0,or.A)(!1,{value:Lr,defaultValue:Sr}),Kc=(0,Va.A)(Pd,2),ui=Kc[0],Ls=Kc[1];function zs(_c,Wd){var Jd=ui;return Bi||(Jd=_c,Ls(Jd),ds==null||ds(Jd,Wd)),Jd}function Il(_c){_c.which===gi.A.LEFT?zs(!1,_c):_c.which===gi.A.RIGHT&&zs(!0,_c),Ys==null||Ys(_c)}function ul(_c){var Wd=zs(!ui,_c);zl==null||zl(Wd,_c)}var Oc=O()(Da,pr,(Gn={},(0,P.A)(Gn,"".concat(Da,"-checked"),ui),(0,P.A)(Gn,"".concat(Da,"-disabled"),Bi),Gn));return C.createElement("button",(0,$a.A)({},Tc,{type:"button",role:"switch","aria-checked":ui,disabled:Bi,className:Oc,ref:an,onKeyDown:Il,onClick:ul}),cs,C.createElement("span",{className:"".concat(Da,"-inner")},C.createElement("span",{className:"".concat(Da,"-inner-checked")},Us),C.createElement("span",{className:"".concat(Da,"-inner-unchecked")},rl)))});Qi.displayName="Switch";const rs=Qi;var Li=i(82745),ns=i(46757),Es=i(16981),ys=i(37567),sr=i(61972),mi=i(95390),Bt=i(55095),vn=i(58196),Io=i(48150);const No=Pn=>{const{componentCls:an,trackHeightSM:Gn,trackPadding:_o,trackMinWidthSM:Da,innerMinMarginSM:pr,innerMaxMarginSM:Lr,handleSizeSM:Sr,calc:Bi}=Pn,cs=an+"-inner",Us=(0,sr.zA)(Bi(Sr).add(Bi(_o).mul(2)).equal()),rl=(0,sr.zA)(Bi(Lr).mul(2).equal());return{[an]:{["&"+an+"-small"]:{minWidth:Da,height:Gn,lineHeight:(0,sr.zA)(Gn),[an+"-inner"]:{paddingInlineStart:Lr,paddingInlineEnd:pr,[cs+"-checked, "+cs+"-unchecked"]:{minHeight:Gn},[cs+"-checked"]:{marginInlineStart:"calc(-100% + "+Us+" - "+rl+")",marginInlineEnd:"calc(100% - "+Us+" + "+rl+")"},[cs+"-unchecked"]:{marginTop:Bi(Gn).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[an+"-handle"]:{width:Sr,height:Sr},[an+"-loading-icon"]:{top:Bi(Bi(Sr).sub(Pn.switchLoadingIconSize)).div(2).equal(),fontSize:Pn.switchLoadingIconSize},["&"+an+"-checked"]:{[an+"-inner"]:{paddingInlineStart:pr,paddingInlineEnd:Lr,[cs+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[cs+"-unchecked"]:{marginInlineStart:"calc(100% - "+Us+" + "+rl+")",marginInlineEnd:"calc(-100% + "+Us+" - "+rl+")"}},[an+"-handle"]:{insetInlineStart:"calc(100% - "+(0,sr.zA)(Bi(Sr).add(_o).equal())+")"}},["&:not("+an+"-disabled):active"]:{["&:not("+an+"-checked) "+cs]:{[cs+"-unchecked"]:{marginInlineStart:Bi(Pn.marginXXS).div(2).equal(),marginInlineEnd:Bi(Pn.marginXXS).mul(-1).div(2).equal()}},["&"+an+"-checked "+cs]:{[cs+"-checked"]:{marginInlineStart:Bi(Pn.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Bi(Pn.marginXXS).div(2).equal()}}}}}}},_a=Pn=>{const{componentCls:an,handleSize:Gn,calc:_o}=Pn;return{[an]:{[an+"-loading-icon"+Pn.iconCls]:{position:"relative",top:_o(_o(Gn).sub(Pn.fontSize)).div(2).equal(),color:Pn.switchLoadingIconColor,verticalAlign:"top"},["&"+an+"-checked "+an+"-loading-icon"]:{color:Pn.switchColor}}}},Ur=Pn=>{const{componentCls:an,trackPadding:Gn,handleBg:_o,handleShadow:Da,handleSize:pr,calc:Lr}=Pn,Sr=an+"-handle";return{[an]:{[Sr]:{position:"absolute",top:Gn,insetInlineStart:Gn,width:pr,height:pr,transition:"all "+Pn.switchDuration+" ease-in-out","&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:_o,borderRadius:Lr(pr).div(2).equal(),boxShadow:Da,transition:"all "+Pn.switchDuration+" ease-in-out",content:'""'}},["&"+an+"-checked "+Sr]:{insetInlineStart:"calc(100% - "+(0,sr.zA)(Lr(pr).add(Gn).equal())+")"},["&:not("+an+"-disabled):active"]:{[Sr+"::before"]:{insetInlineEnd:Pn.switchHandleActiveInset,insetInlineStart:0},["&"+an+"-checked "+Sr+"::before"]:{insetInlineEnd:0,insetInlineStart:Pn.switchHandleActiveInset}}}}},fr=Pn=>{const{componentCls:an,trackHeight:Gn,trackPadding:_o,innerMinMargin:Da,innerMaxMargin:pr,handleSize:Lr,calc:Sr}=Pn,Bi=an+"-inner",cs=(0,sr.zA)(Sr(Lr).add(Sr(_o).mul(2)).equal()),Us=(0,sr.zA)(Sr(pr).mul(2).equal());return{[an]:{[Bi]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:pr,paddingInlineEnd:Da,transition:"padding-inline-start "+Pn.switchDuration+" ease-in-out, padding-inline-end "+Pn.switchDuration+" ease-in-out",[Bi+"-checked, "+Bi+"-unchecked"]:{display:"block",color:Pn.colorTextLightSolid,fontSize:Pn.fontSizeSM,transition:"margin-inline-start "+Pn.switchDuration+" ease-in-out, margin-inline-end "+Pn.switchDuration+" ease-in-out",pointerEvents:"none",minHeight:Gn},[Bi+"-checked"]:{marginInlineStart:"calc(-100% + "+cs+" - "+Us+")",marginInlineEnd:"calc(100% - "+cs+" + "+Us+")"},[Bi+"-unchecked"]:{marginTop:Sr(Gn).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&"+an+"-checked "+Bi]:{paddingInlineStart:Da,paddingInlineEnd:pr,[Bi+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[Bi+"-unchecked"]:{marginInlineStart:"calc(100% - "+cs+" + "+Us+")",marginInlineEnd:"calc(-100% + "+cs+" - "+Us+")"}},["&:not("+an+"-disabled):active"]:{["&:not("+an+"-checked) "+Bi]:{[Bi+"-unchecked"]:{marginInlineStart:Sr(_o).mul(2).equal(),marginInlineEnd:Sr(_o).mul(-1).mul(2).equal()}},["&"+an+"-checked "+Bi]:{[Bi+"-checked"]:{marginInlineStart:Sr(_o).mul(-1).mul(2).equal(),marginInlineEnd:Sr(_o).mul(2).equal()}}}}}},Ar=Pn=>{const{componentCls:an,trackHeight:Gn,trackMinWidth:_o}=Pn;return{[an]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.dF)(Pn)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:_o,height:Gn,lineHeight:(0,sr.zA)(Gn),verticalAlign:"middle",background:Pn.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all "+Pn.motionDurationMid,userSelect:"none",["&:hover:not("+an+"-disabled)"]:{background:Pn.colorTextTertiary}}),(0,Bt.K8)(Pn)),{["&"+an+"-checked"]:{background:Pn.switchColor,["&:hover:not("+an+"-disabled)"]:{background:Pn.colorPrimaryHover}},["&"+an+"-loading, &"+an+"-disabled"]:{cursor:"not-allowed",opacity:Pn.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&"+an+"-rtl"]:{direction:"rtl"}})}},zr=Pn=>{const{fontSize:an,lineHeight:Gn,controlHeight:_o,colorWhite:Da}=Pn,pr=an*Gn,Lr=_o/2,Sr=2,Bi=pr-Sr*2,cs=Lr-Sr*2;return{trackHeight:pr,trackHeightSM:Lr,trackMinWidth:Bi*2+Sr*4,trackMinWidthSM:cs*2+Sr*2,trackPadding:Sr,handleBg:Da,handleSize:Bi,handleSizeSM:cs,handleShadow:"0 2px 4px 0 "+new mi.Y("#00230b").setA(.2).toRgbString(),innerMinMargin:Bi/2,innerMaxMargin:Bi+Sr+Sr*2,innerMinMarginSM:cs/2,innerMaxMarginSM:cs+Sr+Sr*2}},Fr=(0,vn.OF)("Switch",Pn=>{const an=(0,Io.oX)(Pn,{switchDuration:Pn.motionDurationMid,switchColor:Pn.colorPrimary,switchDisabledOpacity:Pn.opacityLoading,switchLoadingIconSize:Pn.calc(Pn.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, "+Pn.opacityLoading+")",switchHandleActiveInset:"-30%"});return[Ar(an),fr(an),Ur(an),_a(an),No(an)]},zr);var os=function(Pn,an){var Gn={};for(var _o in Pn)Object.prototype.hasOwnProperty.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Da=0,_o=Object.getOwnPropertySymbols(Pn);Da<_o.length;Da++)an.indexOf(_o[Da])<0&&Object.prototype.propertyIsEnumerable.call(Pn,_o[Da])&&(Gn[_o[Da]]=Pn[_o[Da]]);return Gn};const Kl=C.forwardRef((Pn,an)=>{const{prefixCls:Gn,size:_o,disabled:Da,loading:pr,className:Lr,rootClassName:Sr,style:Bi,checked:cs,value:Us,defaultChecked:rl,defaultValue:zl,onChange:ds}=Pn,Ys=os(Pn,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Tc,Pd]=(0,or.A)(!1,{value:cs!=null?cs:Us,defaultValue:rl!=null?rl:zl}),{getPrefixCls:Kc,direction:ui,switch:Ls}=C.useContext(ns.QO),zs=C.useContext(Es.A),Il=(Da!=null?Da:zs)||pr,ul=Kc("switch",Gn),Oc=C.createElement("div",{className:ul+"-handle"},pr&&C.createElement(Ir.A,{className:ul+"-loading-icon"})),[_c,Wd,Jd]=Fr(ul),Op=(0,ys.A)(_o),ep=O()(Ls==null?void 0:Ls.className,{[ul+"-small"]:Op==="small",[ul+"-loading"]:pr,[ul+"-rtl"]:ui==="rtl"},Lr,Sr,Wd,Jd),o1=Object.assign(Object.assign({},Ls==null?void 0:Ls.style),Bi),N0=function(){for(var Rp=arguments.length,a1=new Array(Rp),p0=0;p0<Rp;p0++)a1[p0]=arguments[p0];Pd(a1[0]),ds==null||ds.apply(void 0,a1)};return _c(C.createElement(Li.A,{component:"Switch"},C.createElement(rs,Object.assign({},Ys,{checked:Tc,onChange:N0,prefixCls:ul,className:ep,style:o1,disabled:Il,ref:an,loadingIcon:Oc}))))});Kl.__ANT_SWITCH=!0;const as=Kl;var al=Object.defineProperty,pd=Object.defineProperties,Cd=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Ni=(Pn,an,Gn)=>an in Pn?al(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,Bs=(Pn,an)=>{for(var Gn in an||(an={}))ba.call(an,Gn)&&Ni(Pn,Gn,an[Gn]);if(wc)for(var Gn of wc(an))$r.call(an,Gn)&&Ni(Pn,Gn,an[Gn]);return Pn},Ec=(Pn,an)=>pd(Pn,Cd(an)),ps=(Pn,an)=>{var Gn={};for(var _o in Pn)ba.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&wc)for(var _o of wc(Pn))an.indexOf(_o)<0&&$r.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},ls=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=ps(Gn,["size","spin","style"]);const Sr=Bs(Bs({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Ec(Bs({ref:an,style:Sr},Lr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5381 7.94683C18.9775 8.38617 18.9775 9.09848 18.5381 9.53782L10.6742 17.4018C10.4632 17.6128 10.177 17.7313 9.87868 17.7313C9.58031 17.7313 9.29416 17.6128 9.08319 17.4018L4.84054 13.1591C4.4012 12.7198 4.4012 12.0075 4.84054 11.5681C5.27988 11.1288 5.99219 11.1288 6.43153 11.5681L9.87868 15.0153L16.9471 7.94683C17.3865 7.50749 18.0988 7.50749 18.5381 7.94683Z",fill:"#336FFF"}))});const wl=Ht.Ay.div.withConfig({displayName:"styles__StyledPermissionPanel",componentId:"sc-powogo-0"})(["flex:1;width:100%;display:flex;flex-direction:column;"]),Sc=Pn=>{let{access:an="public",onChangeAccess:Gn}=Pn;const _o=(0,C.useMemo)(()=>[{label:"\u6240\u6709\u4EBA",value:"public",rightChildren:an==="public"?(0,He.jsx)(ls,{size:24}):(0,He.jsx)(He.Fragment,{}),onClick:()=>{Gn&&Gn("public")}},{label:"\u4EC5\u56E2\u961F\u6210\u5458",value:"restricted",rightChildren:an==="restricted"?(0,He.jsx)(ls,{size:24}):(0,He.jsx)(He.Fragment,{}),onClick:()=>{Gn&&Gn("restricted")}}],[an,Gn]);return(0,He.jsx)(wl,{children:_o.map((Da,pr)=>(0,He.jsx)(ni,{item:Da},pr))})},lc=Ht.Ay.div.withConfig({displayName:"styles__StyledPasswordPanel",componentId:"sc-4yiitn-0"})(["flex:1;width:100%;display:flex;flex-direction:column;position:relative;.input-box{width:100%;height:44px;padding:0 12px;overflow:hidden;border-radius:10px;background:#F3F3F5;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;.password-input{flex:1;height:100%;}.random{color:#336FFF;}}.copy-password{position:absolute;bottom:0;left:0;width:100%;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-style:Medium;font-size:16px;color:white;background:#336FFF;&.disabled{opacity:0.4;pointer-events:none;}}"]);var Ic=i(39572),Gc=i(43641),mc=i(78042);const Zc=Pn=>{let{password:an="",onChangePassword:Gn}=Pn;const _o=(0,C.useRef)(null),[Da,pr]=(0,C.useState)(an),{passwordClose:Lr,canCopyPassWord:Sr}=(0,C.useMemo)(()=>{const Ys=!an||an.length===0,Tc=Da&&!(/^\s*$/.test(Da)||!/^\w+$/.test(Da));return{passwordClose:Ys,canCopyPassWord:Tc}},[an,Da]),Bi={label:"\u5BC6\u7801\u4FDD\u62A4",rightChildren:(0,He.jsx)(as,{checked:!Lr,onChange:Ys=>{if(Ys){cs();return}pr(""),Gn&&Gn("")}})},cs=(0,C.useCallback)(()=>{const Ys=(0,Ic.I)(6);pr(Ys),Gn&&Gn(Ys)},[Gn]),Us=()=>{if(/^\s*$/.test(Da)||!/^\w+$/.test(Da)){try{MB.notice({text:"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF\uFF0C\u4E0D\u5F97\u4E3A\u7A7A\u6216\u7279\u6B8A\u5B57\u7B26",type:"warning"})}catch(Ys){(0,mc.A)(JSON.stringify({sharingMessage:"sharing:notice"}),"*")}pr(an);return}Gn&&Gn(Da)},rl=Ys=>{if(Ys.nativeEvent.key==="Enter"){var Tc;Us(),_o==null||(Tc=_o.current)==null||Tc.blur()}},zl=Ys=>{pr(Ys.target.value)},ds=async()=>{Us(),await(0,Gc.$)(Da),MB.notice({text:"\u590D\u5236\u6210\u529F",type:"success"})};return(0,He.jsxs)(lc,{children:[(0,He.jsx)(ni,{item:Bi}),!Lr&&(0,He.jsxs)("div",{className:"input-box",children:[(0,He.jsx)("input",{ref:_o,type:"text",className:"password-input",style:{pointerEvents:Da?"auto":"none"},value:Da,onChange:zl,onBlur:Us,onKeyPress:rl}),(0,He.jsx)("div",{className:"random",onClick:cs,children:"\u968F\u673A\u751F\u6210"})]}),(0,He.jsx)("div",{className:"copy-password "+(Sr?"":"disabled"),onClick:ds,children:"\u590D\u5236\u5BC6\u7801"})]})};var gc=i(54844),Fo=i(54190);const Ca=Pn=>{const an=(0,a.wA)(),{onBackSetting:Gn,projectShare:_o,project:Da}=Pn,[pr,Lr]=(0,C.useState)(!1),[Sr,Bi]=(0,C.useState)(Da),cs=Da==null?void 0:Da.is_org_project,{shareDisabled:Us,shareClose:rl}=(0,C.useMemo)(()=>{const zs=(Sr==null?void 0:Sr.visibility)==="close";return{shareClose:zs,shareDisabled:zs||!pr}},[pr,Sr==null?void 0:Sr.visibility]);console.log("~~~shareProject~~~",Da);const[zl,ds]=(0,C.useState)("main"),Ys=(0,C.useMemo)(()=>({main:I18N.pPreview.mobileMenu.share,permission:"\u8BBF\u95EE\u6743\u9650",password:"\u5BC6\u7801\u4FDD\u62A4"}),[]),Tc=(0,C.useMemo)(()=>{const zs=()=>{const ul=(_o==null?void 0:_o.access_token)||(0,Fn.H)(location),Oc=(_o==null?void 0:_o.type)==="default"?_o==null?void 0:_o.view_mode:_o==null?void 0:_o.device_model;return""+window.location.origin+Fn.o$+"/"+ul+"/sharing?view_mode="+(Oc||"read_only")},Il=[{label:"\u590D\u5236\u94FE\u63A5",icon:(0,He.jsx)(So,{size:54}),onClick:()=>{var ul;(ul=MB)!=null&&ul.messageBucket&&MB.messageBucket.send(Bn.Q8.copyLinkAddress,JSON.stringify({url:zs(),shareName:""}))}},{label:"\u5FAE\u4FE1\u597D\u53CB",icon:(0,He.jsx)(po,{size:54}),onClick:()=>{var ul;(ul=MB)!=null&&ul.messageBucket&&MB.messageBucket.send(Bn.Q8.shareToWX,JSON.stringify({url:zs(),project:Da,shareName:""}))}},{label:"\u670B\u53CB\u5708",icon:(0,He.jsx)(Zo,{size:54}),onClick:()=>{var ul;(ul=MB)!=null&&ul.messageBucket&&MB.messageBucket.send(Bn.Q8.shareToWXMoments,JSON.stringify({url:zs(),project:Da,shareName:""}))}}];return ENV.IS_ON_PREMISES||ENV.IS_MO?Il.slice(0,1):Il},[Da,_o]),Pd=(0,C.useMemo)(()=>{const zs=!cs||(Sr==null?void 0:Sr.access)==="public"?"\u6240\u6709\u4EBA":"\u4EC5\u56E2\u961F\u6210\u5458",Il=Sr!=null&&Sr.password?"\u5DF2\u5F00\u542F":"\u5173\u95ED",ul=[{label:"\u542F\u7528\u5206\u4EAB",disabled:!pr,rightChildren:(0,He.jsx)(as,{checked:!rl,onChange:async()=>{Da!=null&&Da.cid&&(Bi(Oc=>{if(Oc){const _c=Oc.visibility==="close"?"open":"close";return an({type:"preview:set:root-project",payload:{rootProject:{...Oc,visibility:_c}}}),{...Oc,visibility:_c}}return Oc}),await(0,Fo.Yu)(Da.cid,{visibility:(Sr==null?void 0:Sr.visibility)==="close"?"open":"close"}))}})},{label:"\u8BBF\u95EE\u6743\u9650",disabled:Us||!cs,rightChildren:(0,He.jsxs)("div",{className:"item-right",onClick:()=>{ds("permission")},children:[zs,(0,He.jsx)(ma,{size:20})]})},{label:"\u5BC6\u7801\u4FDD\u62A4",disabled:Us,rightChildren:(0,He.jsxs)("div",{className:"item-right",onClick:()=>{ds("password")},children:[Il,(0,He.jsx)(ma,{size:20})]})}];return cs?ul:ul.filter(Oc=>Oc.label!=="\u8BBF\u95EE\u6743\u9650")},[an,pr,Us,cs,rl,Da==null?void 0:Da.cid,Sr==null?void 0:Sr.visibility,Sr==null?void 0:Sr.access,Sr==null?void 0:Sr.password]),Kc=()=>{if(zl==="main"){Gn();return}ds("main")},ui=async zs=>{Da!=null&&Da.cid&&(Bi(Il=>Il&&(an({type:"preview:set:root-project",payload:{rootProject:{...Il,password:zs}}}),{...Il,password:zs})),await(0,Fo.Yu)(Da.cid,{password:zs}))},Ls=async zs=>{Da!=null&&Da.cid&&(ds("main"),Bi(Il=>Il&&(an({type:"preview:set:root-project",payload:{rootProject:{...Il,access:zs}}}),{...Il,access:zs})),await(0,Fo.Yu)(Da.cid,{access:zs}))};return(0,C.useEffect)(()=>{(async()=>{if(!(Da!=null&&Da.cid))return;const{result:{result:Il},statusOk:ul}=await(0,gc.QC)(Da==null?void 0:Da.cid);ul&&Lr(Il)})()},[Da==null?void 0:Da.cid]),(0,He.jsxs)(Yt,{children:[(0,He.jsxs)("div",{className:"nav-header",children:[(0,He.jsx)(we,{className:"backBtn",size:24,onClick:Kc}),(0,He.jsxs)("div",{className:"header-title",children:[(0,He.jsx)("div",{className:"headerName",children:Ys[zl]}),zl==="main"&&(0,He.jsx)("div",{className:"headerIntro",children:I18N.pPreview.mobileMenu.shareTo})]})]}),!ENV.IS_ON_PREMISES&&!ENV.IS_MO&&zl==="main"&&(0,He.jsxs)("div",{className:"setting-panel",children:[Pd.map((zs,Il)=>(0,He.jsx)(ni,{item:zs},Il)),(0,He.jsx)("div",{className:"share-container "+(rl?"disabled":""),children:Tc.map(zs=>(0,He.jsxs)("div",{className:"item",onClick:zs.onClick,children:[zs.icon,(0,He.jsx)("div",{className:"item-label",children:zs.label})]},zs.label))})]}),zl==="permission"&&(0,He.jsx)(Sc,{onChangeAccess:Ls,access:Sr==null?void 0:Sr.access}),zl==="password"&&(0,He.jsx)(Zc,{onChangePassword:ui,password:Sr==null?void 0:Sr.password})]})},ya=Ht.Ay.div.withConfig({displayName:"styles__StyledSharingPanel",componentId:"sc-z94kjc-0"})(["flex:1;width:100%;height:100%;.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;border-bottom:1px solid #F2F2F2;.backBtn{padding:10px 10px 10px 0;.backIcon{height:32px;width:32px;color:#fff;margin-top:4px;margin-left:-10px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:15px;color:#000000;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8D9EA7;}}}.sharing-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}"],Pt,Pt);function Ba(Pn){const{onBack:an,project:Gn,projectShare:_o}=Pn;return(0,He.jsx)(ya,{children:(0,He.jsx)(Ca,{isMultiLink:!0,project:Gn,onBackSetting:an,projectShare:_o})})}var Xa=Object.defineProperty,Kt=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Vo=(Pn,an,Gn)=>an in Pn?Xa(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,Do=(Pn,an)=>{for(var Gn in an||(an={}))Wn.call(an,Gn)&&Vo(Pn,Gn,an[Gn]);if(io)for(var Gn of io(an))$n.call(an,Gn)&&Vo(Pn,Gn,an[Gn]);return Pn},Bo=(Pn,an)=>Kt(Pn,Vn(an)),Ro=(Pn,an)=>{var Gn={};for(var _o in Pn)Wn.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&io)for(var _o of io(Pn))an.indexOf(_o)<0&&$n.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},la=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=Ro(Gn,["size","spin","style"]);const Sr=Do(Do({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Bo(Do({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),C.createElement("path",{d:"M18.7287 32.0991C19.2964 32.0993 19.757 32.5596 19.757 33.1274C19.7568 33.6951 19.2963 34.1555 18.7287 34.1558H18.1154C17.5476 34.1557 17.0872 33.6952 17.0871 33.1274C17.0871 32.5595 17.5475 32.0992 18.1154 32.0991H18.7287ZM35.8849 32.0991C36.4527 32.0993 36.9132 32.5596 36.9132 33.1274C36.9131 33.6951 36.4526 34.1555 35.8849 34.1558H22.4044C21.8366 34.1557 21.3763 33.6952 21.3761 33.1274C21.3761 32.5595 21.8365 32.0992 22.4044 32.0991H35.8849ZM18.7287 25.9712C19.2963 25.9714 19.7567 26.4319 19.757 26.9995C19.757 27.5673 19.2964 28.0276 18.7287 28.0278H18.1154C17.5475 28.0278 17.0871 27.5674 17.0871 26.9995C17.0873 26.4318 17.5476 25.9713 18.1154 25.9712H18.7287ZM35.8849 25.9712C36.4525 25.9714 36.913 26.4319 36.9132 26.9995C36.9132 27.5673 36.4527 28.0276 35.8849 28.0278H22.4044C21.8365 28.0278 21.3761 27.5674 21.3761 26.9995C21.3763 26.4318 21.8367 25.9713 22.4044 25.9712H35.8849ZM18.7287 19.8442C19.2964 19.8445 19.7569 20.3048 19.757 20.8726C19.757 21.4404 19.2964 21.9007 18.7287 21.9009H18.1154C17.5475 21.9008 17.0871 21.4405 17.0871 20.8726C17.0871 20.3047 17.5475 19.8443 18.1154 19.8442H18.7287ZM35.8849 19.8442C36.4526 19.8445 36.9131 20.3048 36.9132 20.8726C36.9132 21.4404 36.4527 21.9007 35.8849 21.9009H22.4044C21.8365 21.9008 21.3761 21.4405 21.3761 20.8726C21.3762 20.3047 21.8366 19.8443 22.4044 19.8442H35.8849Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.218571"}))}),Go=Object.defineProperty,ir=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,lr=(Pn,an,Gn)=>an in Pn?Go(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,ei=(Pn,an)=>{for(var Gn in an||(an={}))Pr.call(an,Gn)&&lr(Pn,Gn,an[Gn]);if(wr)for(var Gn of wr(an))br.call(an,Gn)&&lr(Pn,Gn,an[Gn]);return Pn},vr=(Pn,an)=>ir(Pn,tr(an)),ar=(Pn,an)=>{var Gn={};for(var _o in Pn)Pr.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&wr)for(var _o of wr(Pn))an.indexOf(_o)<0&&br.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},mr=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=ar(Gn,["size","spin","style"]);const Sr=ei(ei({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",vr(ei({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),C.createElement("path",{d:"M35.0996 17.9229C35.6393 17.9229 36.0771 18.3607 36.0771 18.9004V24.2998C36.0771 24.8395 35.6393 25.2773 35.0996 25.2773H29.7002C29.1605 25.2773 28.7226 24.8395 28.7226 24.2998C28.7227 23.7602 29.1606 23.3232 29.7002 23.3232H33.0986C31.8512 21.2586 29.5879 19.877 27 19.877C23.0661 19.877 19.8769 23.0662 19.8769 27C19.8769 30.9338 23.0661 34.123 27 34.123C30.0701 34.123 32.6866 32.1803 33.6875 29.457C33.8425 29.0353 34.2312 28.7227 34.6894 28.7227C35.3188 28.7227 35.8055 29.3057 35.5986 29.916C34.3841 33.4986 30.9932 36.0771 27 36.0771C21.9868 36.0771 17.9228 32.0132 17.9228 27C17.9228 21.9868 21.9868 17.9229 27 17.9229C29.8892 17.9229 32.4607 19.2747 34.123 21.3779V18.9004C34.123 18.3609 34.5601 17.9231 35.0996 17.9229Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.154286"}))}),Yr=Object.defineProperty,yi=Object.defineProperties,Ri=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,Nr=(Pn,an,Gn)=>an in Pn?Yr(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,si=(Pn,an)=>{for(var Gn in an||(an={}))ri.call(an,Gn)&&Nr(Pn,Gn,an[Gn]);if(vs)for(var Gn of vs(an))us.call(an,Gn)&&Nr(Pn,Gn,an[Gn]);return Pn},Is=(Pn,an)=>yi(Pn,Ri(an)),St=(Pn,an)=>{var Gn={};for(var _o in Pn)ri.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&vs)for(var _o of vs(Pn))an.indexOf(_o)<0&&us.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},qe=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=St(Gn,["size","spin","style"]);const Sr=si(si({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Is(si({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),C.createElement("path",{d:"M31.5967 16.9712C33.6957 16.9713 35.3974 18.673 35.3975 20.772C35.3975 22.8711 33.6958 24.5726 31.5967 24.5728C30.5593 24.5728 29.6194 24.1567 28.9336 23.4829L25.1924 25.6685C25.3475 26.0829 25.4326 26.5312 25.4327 26.9995C25.4327 27.4677 25.3473 27.9162 25.1924 28.3306L28.9336 30.5161C29.6194 29.8426 30.5595 29.4263 31.5967 29.4263C33.6958 29.4264 35.3975 31.1289 35.3975 33.228C35.3973 35.3269 33.6956 37.0287 31.5967 37.0288C29.4977 37.0288 27.7962 35.327 27.7959 33.228C27.7959 32.8867 27.8414 32.5556 27.9258 32.2407L24.0166 29.9575C23.3644 30.484 22.5353 30.8013 21.6319 30.8013C19.5328 30.8011 17.8311 29.0986 17.8311 26.9995C17.8313 24.9006 19.533 23.1989 21.6319 23.1987C22.5352 23.1987 23.3645 23.5152 24.0166 24.0415L27.9258 21.7583C27.8415 21.4437 27.7959 21.113 27.7959 20.772C27.7961 18.6729 29.4976 16.9712 31.5967 16.9712ZM31.5967 31.4233C30.6004 31.4233 29.792 32.2317 29.792 33.228C29.7923 34.2242 30.6005 35.0317 31.5967 35.0317C32.5928 35.0316 33.4002 34.2241 33.4004 33.228C33.4004 32.2318 32.5929 31.4235 31.5967 31.4233ZM21.6319 25.1958C20.6358 25.196 19.8284 26.0035 19.8282 26.9995C19.8282 27.9957 20.6357 28.804 21.6319 28.8042C22.6282 28.8042 23.4366 27.9958 23.4366 26.9995C23.4363 26.0034 22.6281 25.1958 21.6319 25.1958ZM31.5967 18.9683C30.6005 18.9683 29.7922 19.7758 29.792 20.772C29.792 21.7683 30.6004 22.5767 31.5967 22.5767C32.5929 22.5765 33.4004 21.7682 33.4004 20.772C33.4003 19.7759 32.5928 18.9684 31.5967 18.9683Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.128571"}))}),Le=Object.defineProperty,at=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,yn=(Pn,an,Gn)=>an in Pn?Le(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,yo=(Pn,an)=>{for(var Gn in an||(an={}))en.call(an,Gn)&&yn(Pn,Gn,an[Gn]);if(kt)for(var Gn of kt(an))kn.call(an,Gn)&&yn(Pn,Gn,an[Gn]);return Pn},Uo=(Pn,an)=>at(Pn,ft(an)),Xo=(Pn,an)=>{var Gn={};for(var _o in Pn)en.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&kt)for(var _o of kt(Pn))an.indexOf(_o)<0&&kn.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},ja=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=Xo(Gn,["size","spin","style"]);const Sr=yo(yo({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",Uo(yo({ref:an,style:Sr},Lr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.2436 18.7552H20.249V35.2452H29.2436V34.1209C29.2436 33.5 29.747 32.9966 30.3679 32.9966C30.9888 32.9966 31.4922 33.5 31.4922 34.1209V35.2452C31.4922 36.4871 30.4855 37.4939 29.2436 37.4939H20.249C19.0071 37.4939 18.0004 36.4871 18.0004 35.2452V18.7552C18.0004 17.5133 19.0071 16.5066 20.249 16.5066H29.2436C30.4855 16.5066 31.4922 17.5133 31.4922 18.7552V19.8795C31.4922 20.5005 30.9888 21.0039 30.3679 21.0039C29.747 21.0039 29.2436 20.5005 29.2436 19.8795V18.7552ZM33.0473 23.5818C32.6082 23.1427 31.8963 23.1427 31.4572 23.5818C31.0182 24.0209 31.0182 24.7328 31.4572 25.1718L31.832 25.5466L32.1613 25.8759H25.1094C24.4884 25.8759 23.985 26.3793 23.985 27.0002C23.985 27.6212 24.4884 28.1245 25.1094 28.1245H32.1613L31.832 28.4539L31.4572 28.8286C31.0182 29.2677 31.0182 29.9796 31.4572 30.4186C31.8963 30.8577 32.6082 30.8577 33.0473 30.4186L33.422 30.0439L34.1716 29.2943L35.6707 27.7952C36.1098 27.3562 36.1098 26.6443 35.6707 26.2052L34.1716 24.7061L33.422 23.9566L33.0473 23.5818Z",fill:"#336FFF"}))}),ka=Object.defineProperty,ga=Object.defineProperties,er=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,ti=(Pn,an,Gn)=>an in Pn?ka(Pn,an,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Pn[an]=Gn,Xr=(Pn,an)=>{for(var Gn in an||(an={}))Cr.call(an,Gn)&&ti(Pn,Gn,an[Gn]);if(Za)for(var Gn of Za(an))Dr.call(an,Gn)&&ti(Pn,Gn,an[Gn]);return Pn},li=(Pn,an)=>ga(Pn,er(an)),ur=(Pn,an)=>{var Gn={};for(var _o in Pn)Cr.call(Pn,_o)&&an.indexOf(_o)<0&&(Gn[_o]=Pn[_o]);if(Pn!=null&&Za)for(var _o of Za(Pn))an.indexOf(_o)<0&&Dr.call(Pn,_o)&&(Gn[_o]=Pn[_o]);return Gn},hs=(0,C.forwardRef)((Pn,an)=>{var Gn=Pn,{size:_o,spin:Da,style:pr}=Gn,Lr=ur(Gn,["size","spin","style"]);const Sr=Xr(Xr({width:_o||"var(--x-icon-size, 1em)",height:_o||"var(--x-icon-size, 1em)",animation:Da?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),pr);return C.createElement("svg",li(Xr({ref:an,style:Sr},Lr),{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),C.createElement("rect",{width:"50",height:"50",rx:"14",fill:"#459BFF",fillOpacity:"0.17"}),C.createElement("g",{filter:"url(#filter0_d_2633_83)"},C.createElement("rect",{x:"12",y:"11.999",width:"26",height:"26.002",rx:"5.6875",fill:"url(#paint0_linear_2633_83)"}),C.createElement("rect",{x:"17.218",y:"19.801",width:"7.8",height:"13",rx:"1.12907",fill:"white"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5892 25.0443C26.5892 24.0959 27.358 23.3271 28.3064 23.3271H32.0066C32.9549 23.3271 33.7237 24.0959 33.7237 25.0443V31.4528C33.7237 32.4011 32.9549 33.1699 32.0066 33.1699H28.3064C27.358 33.1699 26.5892 32.4011 26.5892 31.4528V25.0443ZM28.3064 24.5033C28.0076 24.5033 27.7654 24.7455 27.7654 25.0443V31.4528C27.7654 31.7516 28.0076 31.9938 28.3064 31.9938H32.0066C32.3054 31.9938 32.5476 31.7516 32.5476 31.4528V25.0443C32.5476 24.7455 32.3054 24.5033 32.0066 24.5033H28.3064Z",fill:"white",fillOpacity:"0.8"}),C.createElement("rect",{x:"15.8997",y:"17.1992",width:"18.2",height:"5.2",rx:"1.12907",fill:"#BADAFF",fillOpacity:"0.8"}),C.createElement("rect",{width:"22",height:"10",rx:"4",transform:"matrix(-1 1.74846e-07 1.74846e-07 1 36.26 25.499)",fill:"url(#paint1_linear_2633_83)",fillOpacity:"0.32"})),C.createElement("defs",null,C.createElement("filter",{id:"filter0_d_2633_83",x:"9",y:"10.999",width:"32",height:"32.002",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},C.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),C.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),C.createElement("feOffset",{dy:"2"}),C.createElement("feGaussianBlur",{stdDeviation:"1.5"}),C.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),C.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.270588 0 0 0 0 0.607843 0 0 0 0 1 0 0 0 0.25 0"}),C.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2633_83"}),C.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2633_83",result:"shape"})),C.createElement("linearGradient",{id:"paint0_linear_2633_83",x1:"25",y1:"11.999",x2:"25",y2:"38.001",gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#459BFF",stopOpacity:"0.64"}),C.createElement("stop",{offset:"1",stopColor:"#459BFF"})),C.createElement("linearGradient",{id:"paint1_linear_2633_83",x1:"8.76001",y1:"1.69995",x2:"14.0525",y2:"10.5245",gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"white",stopOpacity:"0"}),C.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"}))))});const Di=Ht.Ay.div.withConfig({displayName:"styles__StyledSettingMainPanel",componentId:"sc-1b0bxt2-0"})(["width:100%;height:100%;padding:0 25px;display:flex;flex-direction:column;gap:24px;align-items:center;overflow:hidden;color:#19191A;.project-info{width:100%;margin-top:50px;display:flex;flex-direction:column;align-items:center;.project-icon{width:50px;height:50px;object-fit:cover;}.project-name{max-width:85%;margin-top:14px;font-family:HarmonyOS Sans SC;font-size:14px;line-height:100%;letter-spacing:0px;vertical-align:middle;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.screen-number{margin-top:6px;font-family:HarmonyOS Sans SC;font-weight:400;font-style:Regular;font-size:12px;color:#A2A4A8;}}.item-container{display:flex;width:100%;flex-direction:row;.item{width:75px;display:flex;flex-direction:column;gap:6px;color:#414651;align-items:center;.item-label{font-family:HarmonyOS Sans SC;font-style:Regular;font-size:14px;line-height:20px;letter-spacing:0%;vertical-align:middle;}}}.toggle-link{width:100%;height:56px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;color:#19191A;};"]),ms=Pn=>{const{project:an,isHighlight:Gn,isHTMLZip:_o,projectShare:Da,isDummyApk:pr,onUpdateSetting:Lr,onProjectPreviewReload:Sr,onPreviewExit:Bi,onUpdateProjectHighlight:cs}=Pn,Us=(0,C.useMemo)(()=>{const ui=[{label:"\u9875\u9762\u5217\u8868",icon:(0,He.jsx)(la,{size:54}),onClick:()=>{Lr(Ot)}},{label:"\u5237\u65B0",icon:(0,He.jsx)(mr,{size:54}),onClick:()=>{Sr()}},{label:"\u5206\u4EAB",icon:(0,He.jsx)(qe,{size:54}),onClick:()=>{Lr(Jt)}},{label:"\u9000\u51FA\u9884\u89C8",icon:(0,He.jsx)(ja,{size:54}),onClick:()=>{Bi()}}];return pr?ui.slice(0,ui.length-1):ui},[Lr,Sr,Bi,pr]),rl=ui=>{cs()},{name:zl,icon:ds}=an,Ys=ds?(_o?".":"")+ds:"/images/app_icon.svg",{canvas:Tc,pages:Pd}=dn(Da),Kc=(window.innerWidth-50-75*Us.length)/(Us.length-1);return(0,He.jsxs)(Di,{children:[(0,He.jsxs)("div",{className:"project-info",children:[ds?(0,He.jsx)("img",{src:Ys,className:"project-icon"}):(0,He.jsx)(hs,{size:50}),(0,He.jsx)("div",{className:"project-name",children:zl}),(0,He.jsxs)("div",{className:"screen-number",children:[Tc,"\u4E2A\u753B\u5E03 \xB7 ",Pd,"\u4E2A\u9875\u9762"]})]}),(0,He.jsx)("div",{className:"item-container",style:{gap:Kc+"px"},children:Us.map(ui=>(0,He.jsxs)("div",{className:"item",onClick:ui.onClick,children:[ui.icon,(0,He.jsx)("div",{className:"item-label",children:ui.label})]},ui.label))}),(0,He.jsxs)("div",{className:"toggle-link",children:[(0,He.jsx)("div",{children:"\u663E\u793A\u94FE\u63A5"}),(0,He.jsx)("div",{className:"right-switch-container",children:(0,He.jsx)(as,{checked:Gn,onChange:rl})})]})]})};var Zi=i(39e3);class El extends C.PureComponent{constructor(an){super(an),(0,P.A)(this,"justOpenedUntil",0),(0,P.A)(this,"justClosedUntil",0),(0,P.A)(this,"setElementRef",Gn=>this.$elem=Gn),(0,P.A)(this,"handleBackPreviewSetting",()=>{this.setState({currentMenuType:""})}),(0,P.A)(this,"handleClosePreviewSetting",()=>{this.setState({isOpen:!1,currentMenuType:""}),this.justClosedUntil=Date.now()+300,MB.messageBucket.send(Bn.Q8.closePreviewSettingMenu)}),(0,P.A)(this,"handleUpdateProjectHighlight",()=>{const{isHighlight:Gn,dispatch:_o}=this.props;_o({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Gn}}),MB.messageBucket.send("setDisplayLinkOK",{isHighlight:!Gn})}),(0,P.A)(this,"handleProjectPreviewReload",()=>{MB.messageBucket.send("refreshPreview")}),(0,P.A)(this,"handlePreviewExit",()=>{MB.messageBucket.send("exitAppPreview")}),(0,P.A)(this,"handleUpdateSetting",Gn=>{this.setState({currentMenuType:Gn})}),(0,P.A)(this,"handleShowModal",()=>{MB.messageBucket.send("toggleOffline")}),(0,P.A)(this,"onClickOutside",Gn=>{let{target:_o}=Gn;Date.now()<this.justOpenedUntil||this.$elem.contains(_o)||this.handleClosePreviewSetting()}),this.state={isOpen:!1,currentMenuType:""}}async componentDidMount(){const an=this,Gn=document.querySelector("#workspace"),_o=new(Y()).Manager(Gn),Da=new(Y()).Tap({event:"doubletap",pointers:2}),pr=new(Y()).Press({event:"press",pointers:2,time:500});_o.add([Da,pr]),_o.on("doubletap",function(Lr){Date.now()<an.justClosedUntil||(an.setState({isOpen:!0}),an.justOpenedUntil=Date.now()+300,MB.messageBucket.send(Bn.Q8.openPreviewSettingMenu))}),_o.on("press",function(Lr){Date.now()<an.justClosedUntil||(an.setState({isOpen:!0}),an.justOpenedUntil=Date.now()+300,MB.messageBucket.send(Bn.Q8.openPreviewSettingMenu))})}render(){const{project:an,isHTMLZip:Gn,isHighlight:_o,isDummyApk:Da,isMultiLink:pr,projectShare:Lr}=this.props,{isOpen:Sr,currentMenuType:Bi}=this.state;let cs=Bi===Jt,Us=Bi===Ot,rl=Bi==="";return(0,o.Md)()||(cs=!1,rl=!1,Us=!0),(0,He.jsxs)(He.Fragment,{children:[Sr&&(0,He.jsx)(At,{className:"mask"}),(0,He.jsxs)(on,{className:O()({"is-open":Sr}),ref:this.setElementRef,children:[!Us&&(0,He.jsx)("img",{src:"/mb-proto2/images/preview/mobile-setting-panel-bg.png",className:"panel-bg"}),rl&&(0,He.jsx)(ms,{project:an,isHTMLZip:Gn,isHighlight:_o,isDummyApk:Da,onUpdateSetting:this.handleUpdateSetting,onPreviewExit:this.handlePreviewExit,onProjectPreviewReload:this.handleProjectPreviewReload,onUpdateProjectHighlight:this.handleUpdateProjectHighlight,onShowModal:this.handleShowModal,projectShare:Lr}),cs&&(0,He.jsx)(Ba,{isMultiLink:pr,project:an,onBack:this.handleBackPreviewSetting,projectShare:Lr}),Us&&(0,He.jsx)(ht,{onBack:this.handleBackPreviewSetting,projectName:an.name,onExitPanel:this.handleClosePreviewSetting}),rl&&(0,He.jsx)(Me,{className:"close-icon",size:24,onClick:this.handleClosePreviewSetting}),Sr&&(0,He.jsx)(Zi.A,{target:document,onClick:(0,Zi.t)(this.onClickOutside,{capture:!0})})]})]})}}const yc=(0,k.Mz)([M.PL,M.Re,M.bF,M.ts,M.UB],(Pn,an,Gn,_o,Da)=>{let{isHTMLZip:pr,isMultiLink:Lr}=Gn;return{project:Pn,isHighlight:an,isHTMLZip:pr,isDummyApk:_o,isMultiLink:Lr,projectShare:Da}}),Ts=(0,a.Ng)(Pn=>yc(Pn))(El)},78859:(eo,ot,i)=>{"use strict";var a,k=i(72274).Zz;a=!0,ot.tY=function(){if(arguments.length!==0)return typeof arguments[0]=="object"?k:k.apply(null,arguments)},a=function(){return function(M){return M}}},78903:(eo,ot,i)=>{"use strict";i.d(ot,{R:()=>f});var a=i(38502),k=i(18381),M=i(72606),P=i(46322),C=i(78257),q=i(67052),Y=i(33680),J=i(70933),O=i(94875),l=i(67787);const D=l.Ay.ul.withConfig({displayName:"styles__StyledAssetThumbnailList",componentId:"sc-199vaeo-0"})(["padding:0 4px 0px 12px;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,109px);"]);var m=i(9501),E=i(72214);const f=(0,a.memo)(h=>{const S=(0,k.wA)(),V=(0,k.d4)(Te=>(0,q.ld)(Te)),We=(0,k.d4)(Te=>(0,q.p)(Te)),re=(0,k.d4)(J.YY),{shouldAuth:ve,canEditLibrary:we,canAddToOrg:Ae,currentUserId:Oe,assetList:Be=[],pictureList:tt=[],assetActions:Xe,containerRect:ne,canListItemGroup:lt}=h,rt=Te=>{if(!Te)return null;if(Te.includes("findPicture_")){if(!(V!=null&&V.length))return null;for(const Ge of V)for(const ue of Ge.imgs)if("findPicture_"+ue[0]===Te)return(0,Y.Kb)(Ge.tab,ue)}if(Te.includes("findSticker_")){if(!(We!=null&&We.length))return null;for(const Ge of We)for(const ue of(Ge==null?void 0:Ge.list)||[])if("findSticker_"+(ue==null?void 0:ue.url)===Te)return(0,Y.nA)(Ge==null?void 0:Ge.category,ue)}return null};return(0,E.jsxs)(D,{children:[Be.map(Te=>(0,E.jsx)(M.O,{asset:Te,shouldAuth:ve,canEditLibrary:we,canAddToOrg:Ae,assetActions:Xe,containerRect:ne,currentUserId:Oe,canListItemGroup:lt,createTemplatesData:re,dispatch:S},Te.cid)),((V==null?void 0:V.length)||(We==null?void 0:We.length))&&tt.map(Te=>{const Ge=rt(Te);return Ge?(0,E.jsxs)("div",{children:[Te.includes("findPicture_")&&(0,E.jsx)(P.I,{isHistoryItem:!0,asset:Ge,popupsName:C.lS.History}),Te.includes("findSticker_")&&(0,E.jsx)(m.B,{asset:Ge,popupsName:C.lS.History}),(0,E.jsx)(O.f,{children:Ge.img_tag.join(" ")||Ge.name})]},Te):null})]})})},79495:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),a.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H19.25C19.6642 11.25 20 11.5858 20 12C20 12.4142 19.6642 12.75 19.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),a.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))})},80226:(eo,ot,i)=>{"use strict";i.d(ot,{D:()=>l});var a=i(38502),k=i(53732),M=i.n(k),P=i(17307),C=i(67787);const q=C.Ay.div.withConfig({displayName:"styles__StyledViewModeSwitch",componentId:"sc-m9643m-0"})(["display:flex;width:164px;height:36px;padding:2px;align-items:center;justify-content:center;flex-shrink:0;&:lang(en){width:212px;}&.compact{padding:4px;display:flex;position:absolute;top:16px;left:16px;width:64px;height:36px;padding:4px;background-color:",";color:",";z-index:106;pointer-events:auto;.switch-btn{width:28px;height:28px;padding:0;&.active{background-color:",";}.svg-icon{width:16px;height:16px;}}}&.small{width:120px;height:24px;.switch-btn{padding:1.5px 8px;font-size:12px;line-height:16px;.svg-icon{width:14px;height:14px;}}}&:not(.compact):not(.small){.switch-btn{border:1px solid transparent;&.active{border:1px solid ",";}}}border-radius:6px;background-color:",";color:",";.switch-btn{display:flex;padding:2px 10px;justify-content:center;align-items:center;gap:4px;flex:1 0 0;align-self:stretch;color:",";font-size:14px;cursor:pointer;.svg-icon{display:flex;width:16px;height:16px;padding:1px;justify-content:center;align-items:center;gap:10px;color:",";&.device{padding:1px 3px;> *{fill:transparent;stroke:",";}}}&.active{background-color:",";color:",";font-weight:500;border-radius:6px;.svg-icon{color:",";&.device > *{fill:transparent;stroke:",";}}}}"],D=>D.theme.color_bg_white,D=>D.theme.color_text_L3,D=>D.theme.color_btn_secondary_hover,D=>D.theme.color_bg_border_02,D=>D.theme.color_btn_secondary_hover,D=>D.theme.color_text_L3,D=>D.theme.color_text_L3,D=>D.theme.color_text_L3,D=>D.theme.color_text_L3,D=>D.theme.color_bg_white,D=>D.theme.color_text_L1,D=>D.theme.color_text_L1,D=>D.theme.color_text_L1),Y=C.Ay.div.withConfig({displayName:"styles__StyledPreviewViewModeSwitch",componentId:"sc-m9643m-1"})(["display:flex;width:144px;height:36px;align-items:center;justify-content:space-between;flex-shrink:0;.preview-switch-btn{font-size:13px;font-weight:500;line-height:16px;color:",";width:32px;line-height:36px;text-align:center;height:100%;position:relative;cursor:pointer;&::after{content:'';display:inline-block;position:absolute;bottom:2px;left:3px;width:calc(100% - 6px);height:2px;opacity:0;}&:hover:not(.active){&::after{opacity:1;background-color:",";}}&.active{color:",";&::after{opacity:1;background-color:",";}}}"],D=>D.theme.color_text_L1,D=>D.theme.color_slider_normal,D=>D.theme.color_text_link_normal,D=>D.theme.color_text_link_normal);var J=i(72214);const O=D=>{let{mode:m,size:E,handleModeSwitch:f}=D;return(0,J.jsxs)(q,{className:E,children:[(0,J.jsxs)("div",{className:M()("switch-btn",{active:m==="read_only"}),onClick:()=>f("read_only"),children:[(0,J.jsx)(P.C,{name:"common/mode/read_only"}),E!=="compact"&&I18N.ToolBar.overview]}),(0,J.jsxs)("div",{className:M()("switch-btn",{active:m==="device"}),onClick:()=>f("device"),children:[(0,J.jsx)(P.C,{name:"common/mode/device",className:"device"}),E!=="compact"&&I18N.ToolBar.preview]})]})},l=(0,a.memo)(D=>{let{mode:m,size:E,isShowInspect:f,onSwitch:h}=D;const S=V=>{switch(h&&h(V),V){case"read_only":MB.switchToReadOnly();break;case"device":MB.switchToPreview();break;case"inspect":MB.switchToInspect();break;default:break}};return f?(0,J.jsxs)(Y,{children:[(0,J.jsx)("div",{className:M()("preview-switch-btn",{active:m==="read_only"}),onClick:()=>S("read_only"),children:I18N.ToolBar.overview}),(0,J.jsx)("div",{className:M()("preview-switch-btn",{active:m==="device"}),onClick:()=>S("device"),children:I18N.ToolBar.preview}),(0,J.jsx)("div",{className:M()("preview-switch-btn",{active:m==="inspect"}),onClick:()=>S("inspect"),children:I18N.ToolBar.inspect})]}):(0,J.jsx)(O,{mode:m,size:E,handleModeSwitch:S})})},80228:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=i(18381),M=i(53732),P=i.n(M),C=i(17307),q=i(12566),Y=i(4235),J=i(83199),O=i(2099),l=i(63850),D=i(72214);const m=(f,h)=>{let{className:S="",type:V,isShowCreate:We=!0,onGetNewEditModalPostion:re,onClose:ve,onDidMount:we}=f;const Ae=(0,k.d4)(Y.p$),Oe=(0,k.wA)(),Be=()=>{const tt=re();V==="appear"&&Oe({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:tt,type:"create",...(0,O.xe)(Ae)}}}),V==="text"&&Oe({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:tt,type:"create",...(0,O.l$)(Ae)}}})};return(0,a.useEffect)(()=>{we&&we()},[h]),(0,D.jsxs)(l.q,{className:P()(S,"lib-panel-modal-content"),ref:h,children:[(0,D.jsxs)("header",{type:"draggable",children:[(0,D.jsx)("span",{className:"title",children:""+I18N.libPanel.modal.header[V]}),(0,D.jsxs)("div",{className:"right-content",children:[V!=="muban"&&We&&(0,D.jsx)(J.A,{content:""+I18N.libPanel.manage.create_ref[V],direction:"down",distance:8,children:(0,D.jsx)(C.C,{className:"add-icon",name:"common/add@24",size:24,onClick:Be})}),ve&&(0,D.jsx)(J.A,{content:I18N.Common.close,direction:"down",distance:8,children:(0,D.jsx)(C.C,{className:"times-icon",name:"common/close@24",size:24,onClick:ve})})]})]}),(0,D.jsx)("div",{className:"divider"}),(0,D.jsx)(q.k,{type:V,onClose:ve,onGetNewEditModalPostion:re})]})},E=(0,a.memo)((0,a.forwardRef)(m))},80595:(eo,ot,i)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var a=Object.assign||function(rt){for(var Te=1;Te<arguments.length;Te++){var Ge=arguments[Te];for(var ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&(rt[ue]=Ge[ue])}return rt},k=function(){function rt(Te,Ge){for(var ue=0;ue<Ge.length;ue++){var Me=Ge[ue];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Te,Me.key,Me)}}return function(Te,Ge,ue){return Ge&&rt(Te.prototype,Ge),ue&&rt(Te,ue),Te}}(),M=i(38502),P=ve(M),C=i(25582),q=ve(C),Y=i(34835),J=ve(Y),O=i(27276),l=ve(O),D=i(27122),m=ve(D),E=i(76914),f=ve(E),h=i(65251),S=ve(h),V=i(52171),We=ve(V),re=i(83466);function ve(rt){return rt&&rt.__esModule?rt:{default:rt}}function we(rt,Te){var Ge={};for(var ue in rt)Te.indexOf(ue)>=0||Object.prototype.hasOwnProperty.call(rt,ue)&&(Ge[ue]=rt[ue]);return Ge}function Ae(rt,Te){if(!(rt instanceof Te))throw new TypeError("Cannot call a class as a function")}function Oe(rt,Te){if(!rt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Te&&(typeof Te=="object"||typeof Te=="function")?Te:rt}function Be(rt,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Te);rt.prototype=Object.create(Te&&Te.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}),Te&&(Object.setPrototypeOf?Object.setPrototypeOf(rt,Te):rt.__proto__=Te)}var tt=function(Te){return Object.keys(Te).length===0},Xe=function(Te,Ge){for(var ue=[],Me=Ge-Te>0,Ze=Te;Me?Ze<=Ge:Ze>=Ge;Me?Ze++:Ze--)Me?ue.push(Ze):ue.unshift(Ze);return ue},ne=function(Te){return Te.split(/\r\n|\n|\r/).map(function(Ge){return Ge.split(" ")})},lt=function(rt){Be(Te,rt);function Te(Ge){Ae(this,Te);var ue=Oe(this,(Te.__proto__||Object.getPrototypeOf(Te)).call(this,Ge));return ue.onMouseDown=ue.onMouseDown.bind(ue),ue.onMouseUp=ue.onMouseUp.bind(ue),ue.onMouseOver=ue.onMouseOver.bind(ue),ue.onDoubleClick=ue.onDoubleClick.bind(ue),ue.onContextMenu=ue.onContextMenu.bind(ue),ue.handleNavigate=ue.handleNavigate.bind(ue),ue.handleKey=ue.handleKey.bind(ue).bind(ue),ue.handleCut=ue.handleCut.bind(ue),ue.handleCopy=ue.handleCopy.bind(ue),ue.handlePaste=ue.handlePaste.bind(ue),ue.pageClick=ue.pageClick.bind(ue),ue.onChange=ue.onChange.bind(ue),ue.onRevert=ue.onRevert.bind(ue),ue.isSelected=ue.isSelected.bind(ue),ue.isEditing=ue.isEditing.bind(ue),ue.isClearing=ue.isClearing.bind(ue),ue.handleComponentKey=ue.handleComponentKey.bind(ue),ue.handleKeyboardCellMovement=ue.handleKeyboardCellMovement.bind(ue),ue.defaultState={start:{},end:{},selecting:!1,forceEdit:!1,editing:{},clear:{}},ue.state=ue.defaultState,ue.removeAllListeners=ue.removeAllListeners.bind(ue),ue.handleIEClipboardEvents=ue.handleIEClipboardEvents.bind(ue),ue}return k(Te,[{key:"removeAllListeners",value:function(){document.removeEventListener("mousedown",this.pageClick),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("cut",this.handleCut),document.removeEventListener("copy",this.handleCopy),document.removeEventListener("paste",this.handlePaste),document.removeEventListener("keydown",this.handleIEClipboardEvents)}},{key:"componentDidMount",value:function(){this.dgDom&&this.dgDom.addEventListener("keydown",this.handleComponentKey)}},{key:"componentWillUnmount",value:function(){this.dgDom&&this.dgDom.removeEventListener("keydown",this.handleComponentKey),this.removeAllListeners()}},{key:"isSelectionControlled",value:function(){return"selected"in this.props}},{key:"getState",value:function(){var ue=this.state;if(this.isSelectionControlled()){var Me=this.props.selected||{},Ze=Me.start,fe=Me.end;Ze=Ze||this.defaultState.start,fe=fe||this.defaultState.end,ue=a({},ue,{start:Ze,end:fe})}return ue}},{key:"_setState",value:function(ue){var Me=this.props.editModeChanged;if(Me&&ue.editing){var Ze=!tt(this.state.editing),fe=!tt(ue.editing);Ze!=fe&&Me(fe)}if(this.isSelectionControlled()&&("start"in ue||"end"in ue)){var it=ue.start,et=ue.end,Ut=we(ue,["start","end"]),G=this.props,Ht=G.selected,Tt=G.onSelect;Ht=Ht||{},it||(it="start"in Ht?Ht.start:this.defaultState.start),et||(et="end"in Ht?Ht.end:this.defaultState.end),Tt&&Tt({start:it,end:et}),this.setState(Ut)}else this.setState(ue)}},{key:"pageClick",value:function(ue){if(!this.props.disablePageClick){var Me=this.dgDom;Me.contains(ue.target)||(this.setState(this.defaultState),this.removeAllListeners())}}},{key:"handleCut",value:function(ue){if(tt(this.state.editing)){ue.preventDefault(),this.handleCopy(ue);var Me=this.getState(),Ze=Me.start,fe=Me.end;this.clearSelectedCells(Ze,fe)}}},{key:"handleIEClipboardEvents",value:function(ue){ue.ctrlKey&&(ue.keyCode===67?this.handleCopy(ue):ue.keyCode===88?this.handleCut(ue):(ue.keyCode===86||ue.which===86)&&this.handlePaste(ue))}},{key:"handleCopy",value:function(ue){if(tt(this.state.editing)){ue.preventDefault();var Me=this.props,Ze=Me.dataRenderer,fe=Me.valueRenderer,it=Me.data,et=this.getState(),Ut=et.start,G=et.end;if(this.props.handleCopy)this.props.handleCopy({event:ue,dataRenderer:Ze,valueRenderer:fe,data:it,start:Ut,end:G,range:Xe});else{var Ht=Xe(Ut.i,G.i).map(function(Tt){return Xe(Ut.j,G.j).map(function(Vt){var He=it[Tt][Vt],rn=Ze?Ze(He,Tt,Vt):null;return rn===""||rn===null||typeof rn>"u"?fe(He,Tt,Vt):rn}).join(" ")}).join("\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",Ht):ue.clipboardData.setData("text/plain",Ht)}}}},{key:"handlePaste",value:function(ue){if(tt(this.state.editing)){var Me=this.getState(),Ze=Me.start,fe=Me.end;Ze={i:Math.min(Ze.i,fe.i),j:Math.min(Ze.j,fe.j)},fe={i:Math.max(Ze.i,fe.i),j:Math.max(Ze.j,fe.j)};var it=this.props.parsePaste||ne,et=[],Ut=[];window.clipboardData&&window.clipboardData.getData?Ut=it(window.clipboardData.getData("Text")):ue.clipboardData&&ue.clipboardData.getData&&(Ut=it(ue.clipboardData.getData("text/plain")));var G=this.props,Ht=G.data,Tt=G.onCellsChanged,Vt=G.onPaste,He=G.onChange;if(Tt){var rn=[];Ut.forEach(function(Lt,jt){Lt.forEach(function(mt,Jn){fe={i:Ze.i+jt,j:Ze.j+Jn};var o=Ht[fe.i]&&Ht[fe.i][fe.j];o?o.readOnly||et.push({cell:o,row:fe.i,col:fe.j,value:mt}):rn.push({row:fe.i,col:fe.j,value:mt})})}),rn.length?Tt(et,rn):Tt(et)}else Vt?(Ut.forEach(function(Lt,jt){var mt=[];Lt.forEach(function(Jn,o){fe={i:Ze.i+jt,j:Ze.j+o};var so=Ht[fe.i]&&Ht[fe.i][fe.j];mt.push({cell:so,data:Jn})}),et.push(mt)}),Vt(et)):He&&Ut.forEach(function(Lt,jt){Lt.forEach(function(mt,Jn){fe={i:Ze.i+jt,j:Ze.j+Jn};var o=Ht[fe.i]&&Ht[fe.i][fe.j];o&&!o.readOnly&&He(o,fe.i,fe.j,mt)})});this._setState({end:fe})}}},{key:"handleKeyboardCellMovement",value:function(ue){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=this.getState(),fe=Ze.start,it=Ze.editing,et=this.props.data,Ut=it&&!tt(it),G=et[fe.i]&&et[fe.i][fe.j];if(Ut&&!Me)return!1;var Ht=G&&G.component,Tt=ue.which||ue.keyCode;if(Ht&&Ut){ue.preventDefault();return}Tt===re.TAB_KEY?this.handleNavigate(ue,{i:0,j:ue.shiftKey?-1:1},!0):Tt===re.RIGHT_KEY?this.handleNavigate(ue,{i:0,j:1}):Tt===re.LEFT_KEY?this.handleNavigate(ue,{i:0,j:-1}):Tt===re.UP_KEY?this.handleNavigate(ue,{i:-1,j:0}):Tt===re.DOWN_KEY?this.handleNavigate(ue,{i:1,j:0}):Me&&Tt===re.ENTER_KEY&&this.handleNavigate(ue,{i:ue.shiftKey?-1:1,j:0})}},{key:"handleKey",value:function(ue){if(!(ue.isPropagationStopped&&ue.isPropagationStopped())){var Me=ue.which||ue.keyCode,Ze=this.getState(),fe=Ze.start,it=Ze.end,et=Ze.editing,Ut=et&&!tt(et),G=!fe||tt(fe),Ht=ue.ctrlKey||ue.metaKey,Tt=Me===re.DELETE_KEY||Me===re.BACKSPACE_KEY,Vt=Me===re.ENTER_KEY,He=Me>=48&&Me<=57,rn=Me>=65&&Me<=90,Lt=Me>=160&&Me<=255,jt=Me>=96&&Me<=105,mt=!G&&this.props.data[fe.i][fe.j],Jn=[187,189,190,107,109,110].indexOf(Me)>-1;if(G||Ht)return!0;Ut||(this.handleKeyboardCellMovement(ue),Tt?(ue.preventDefault(),this.clearSelectedCells(fe,it)):mt&&!mt.readOnly&&(Vt?(this._setState({editing:fe,clear:{},forceEdit:!0}),ue.preventDefault()):(He||jt||rn||Lt||Jn)&&this._setState({editing:fe,clear:fe,forceEdit:!1})))}}},{key:"getSelectedCells",value:function(ue,Me,Ze){var fe=[];return Xe(Me.i,Ze.i).map(function(it){Xe(Me.j,Ze.j).map(function(et){ue[it]&&ue[it][et]&&fe.push({cell:ue[it][et],row:it,col:et})})}),fe}},{key:"clearSelectedCells",value:function(ue,Me){var Ze=this,fe=this.props,it=fe.data,et=fe.onCellsChanged,Ut=fe.onChange,G=this.getSelectedCells(it,ue,Me).filter(function(Ht){return!Ht.cell.readOnly}).map(function(Ht){return a({},Ht,{value:""})});et?(et(G),this.onRevert()):Ut&&setTimeout(function(){G.forEach(function(Ht){var Tt=Ht.cell,Vt=Ht.row,He=Ht.col,rn=Ht.value;Ut(Tt,Vt,He,rn)}),Ze.onRevert()},0)}},{key:"updateLocationSingleCell",value:function(ue){this._setState({start:ue,end:ue,editing:{}})}},{key:"updateLocationMultipleCells",value:function(ue){var Me=this.getState(),Ze=Me.start,fe=Me.end,it=this.props.data,et={i:Ze.i,j:Ze.j},Ut={i:fe.i+ue.i,j:Math.min(it[0].length-1,Math.max(0,fe.j+ue.j))};this._setState({start:et,end:Ut,editing:{}})}},{key:"searchForNextSelectablePos",value:function(ue,Me,Ze,fe,it){for(var et=function(He){return{i:He.i-1,j:Me[0].length-1}},Ut=function(He){return{i:He.i+1,j:0}},G=function(He){return{i:He.i+fe.i,j:He.j+fe.j}},Ht=function(He){var rn=He.i,Lt=He.j;return Me[rn]&&typeof Me[rn][Lt]<"u"},Tt=G(Ze);Ht(Tt)&&!ue(Me[Tt.i][Tt.j],Tt.i,Tt.j);)Tt=G(Tt);if(!Ht(Tt)){if(!it)return null;fe.j<0?Tt=et(Tt):Tt=Ut(Tt)}return Ht(Tt)&&!ue(Me[Tt.i][Tt.j],Tt.i,Tt.j)?this.searchForNextSelectablePos(ue,Me,Tt,fe,it):Ht(Tt)?Tt:null}},{key:"handleNavigate",value:function(ue,Me,Ze){if(Me&&(Me.i||Me.j)){var fe=this.props.data,it=this.getState(),et=it.start,Ut=ue.shiftKey&&!Ze,G=this.props.isCellNavigable?this.props.isCellNavigable:function(){return!0};if(Ut)this.updateLocationMultipleCells(Me);else{var Ht=this.searchForNextSelectablePos(G,fe,et,Me,Ze);Ht&&this.updateLocationSingleCell(Ht)}ue.preventDefault()}}},{key:"handleComponentKey",value:function(ue){var Me=this,Ze=ue.which||ue.keyCode;if([re.ENTER_KEY,re.ESCAPE_KEY,re.TAB_KEY].includes(Ze)){var fe=this.state.editing,it=this.props.data,et=!tt(fe);if(et){var Ut=it[fe.i][fe.j],G=ue.shiftKey?-1:1;if(Ut&&Ut.component&&!Ut.forceComponent){ue.preventDefault();var Ht=this.onRevert;Ze===re.ENTER_KEY?Ht=function(){return Me.handleNavigate(ue,{i:G,j:0})}:Ze===re.TAB_KEY&&(Ht=function(){return Me.handleNavigate(ue,{i:0,j:G},!0)}),setTimeout(function(){Ht(),Me.dgDom&&Me.dgDom.focus({preventScroll:!0})},1)}}}}},{key:"onContextMenu",value:function(ue,Me,Ze){var fe=this.props.data[Me][Ze];this.props.onContextMenu&&this.props.onContextMenu(ue,fe,Me,Ze)}},{key:"onDoubleClick",value:function(ue,Me){var Ze=this.props.data[ue][Me];Ze.readOnly||this._setState({editing:{i:ue,j:Me},forceEdit:!0,clear:{}})}},{key:"onMouseDown",value:function(ue,Me,Ze){var fe=!tt(this.state.editing)&&this.state.editing.i===ue&&this.state.editing.j===Me,it=tt(this.state.editing)||this.state.editing.i!==ue||this.state.editing.j!==Me?{}:this.state.editing;this._setState({selecting:!fe,start:Ze.shiftKey?this.getState().start:{i:ue,j:Me},end:{i:ue,j:Me},editing:it,forceEdit:!!fe});var et=window.navigator.userAgent,Ut=/MSIE|Trident/.test(et);Ut&&document.addEventListener("keydown",this.handleIEClipboardEvents),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousedown",this.pageClick),document.addEventListener("cut",this.handleCut),document.addEventListener("copy",this.handleCopy),document.addEventListener("paste",this.handlePaste)}},{key:"onMouseOver",value:function(ue,Me){this.state.selecting&&tt(this.state.editing)&&this._setState({end:{i:ue,j:Me}})}},{key:"onMouseUp",value:function(){this._setState({selecting:!1}),document.removeEventListener("mouseup",this.onMouseUp)}},{key:"onChange",value:function(ue,Me,Ze){var fe=this.props,it=fe.onChange,et=fe.onCellsChanged,Ut=fe.data;et?et([{cell:Ut[ue][Me],row:ue,col:Me,value:Ze}]):it&&it(Ut[ue][Me],ue,Me,Ze),this.onRevert()}},{key:"onRevert",value:function(){var ue=this;this._setState({editing:{}}),setTimeout(function(){ue.dgDom&&ue.dgDom.focus({preventScroll:!0})},1)}},{key:"componentDidUpdate",value:function(ue,Me){var Ze=this.state,fe=Ze.start,it=Ze.end,et=Me.end;!tt(it)&&!(it.i===et.i&&it.j===et.j)&&!this.isSelectionControlled()&&this.props.onSelect&&this.props.onSelect({start:fe,end:it})}},{key:"isSelectedRow",value:function(ue){var Me=this.getState(),Ze=Me.start,fe=Me.end,it=Ze.i,et=fe.i;return it<=et?ue>=it&&ue<=et:ue<=it&&ue>=et}},{key:"isSelected",value:function(ue,Me){var Ze=this.getState(),fe=Ze.start,it=Ze.end,et=Me>=fe.j&&Me<=it.j,Ut=Me<=fe.j&&Me>=it.j,G=ue>=fe.i&&ue<=it.i,Ht=ue<=fe.i&&ue>=it.i;return et&&G||Ut&&G||Ut&&Ht||et&&Ht}},{key:"isEditing",value:function(ue,Me){return this.state.editing.i===ue&&this.state.editing.j===Me}},{key:"isClearing",value:function(ue,Me){return this.state.clear.i===ue&&this.state.clear.j===Me}},{key:"render",value:function(){var ue=this,Me=this.props,Ze=Me.sheetRenderer,fe=Me.rowRenderer,it=Me.cellRenderer,et=Me.dataRenderer,Ut=Me.valueRenderer,G=Me.dataEditor,Ht=Me.valueViewer,Tt=Me.attributesRenderer,Vt=Me.className,He=Me.overflow,rn=Me.data,Lt=Me.keyFn,jt=this.state.forceEdit;return P.default.createElement("span",{ref:function(Jn){ue.dgDom=Jn},tabIndex:"0",className:"data-grid-container",onKeyDown:this.handleKey},P.default.createElement(Ze,{data:rn,className:["data-grid",Vt,He].filter(function(mt){return mt}).join(" ")},rn.map(function(mt,Jn){return P.default.createElement(fe,{key:Lt?Lt(Jn):Jn,row:Jn,cells:mt,selected:ue.isSelectedRow(Jn)},mt.map(function(o,so){var Et=ue.isEditing(Jn,so);return P.default.createElement(f.default,a({key:o.key?o.key:Jn+"-"+so,row:Jn,col:so,cell:o,forceEdit:!1,onMouseDown:ue.onMouseDown,onMouseOver:ue.onMouseOver,onDoubleClick:ue.onDoubleClick,onContextMenu:ue.onContextMenu,onChange:ue.onChange,onRevert:ue.onRevert,onNavigate:ue.handleKeyboardCellMovement,onKey:ue.handleKey,selected:ue.isSelected(Jn,so),editing:Et,clearing:ue.isClearing(Jn,so),attributesRenderer:Tt,cellRenderer:it,valueRenderer:Ut,dataRenderer:et,valueViewer:Ht,dataEditor:G},Et?{forceEdit:jt}:{}))}))})))}}]),Te}(M.PureComponent);ot.default=lt,lt.propTypes={data:q.default.array.isRequired,className:q.default.string,disablePageClick:q.default.bool,overflow:q.default.oneOf(["wrap","nowrap","clip"]),onChange:q.default.func,onCellsChanged:q.default.func,onContextMenu:q.default.func,onSelect:q.default.func,isCellNavigable:q.default.func,selected:q.default.shape({start:q.default.shape({i:q.default.number,j:q.default.number}),end:q.default.shape({i:q.default.number,j:q.default.number})}),valueRenderer:q.default.func.isRequired,dataRenderer:q.default.func,sheetRenderer:q.default.func.isRequired,rowRenderer:q.default.func.isRequired,cellRenderer:q.default.func.isRequired,valueViewer:q.default.func,dataEditor:q.default.func,parsePaste:q.default.func,attributesRenderer:q.default.func,keyFn:q.default.func,handleCopy:q.default.func,editModeChanged:q.default.func},lt.defaultProps={sheetRenderer:J.default,rowRenderer:l.default,cellRenderer:m.default,valueViewer:We.default,dataEditor:S.default}},80777:(eo,ot,i)=>{var a=i(71602),k=i(48236),M=i(51071),P=i(52255),C=k(function(q){return M(a(q,1,P,!0))});eo.exports=C},80783:(eo,ot,i)=>{"use strict";i.d(ot,{L:()=>k,R:()=>M});var a=i(67787);const k=a.Ay.div.withConfig({displayName:"style__StyledPlatformSubFilter",componentId:"sc-i9rqvv-0"})(["label{width:100%;height:100%;display:flex;padding:0 4px 0 6px;border-radius:6px;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";font-size:12px;}button{display:flex;align-items:center;.Tooltip{display:flex;align-items:center;}.arrow-icon{transition:0.3s ease-out;transform:rotate(0);&.is-expand{transform:rotate(180deg);}path{stroke:",";}}}&:hover,&.is-open{background:",";}}.svg-icon{width:8px;height:8px;margin-right:7px;}"],P=>P.theme.color_text_L1,P=>P.theme.color_text_L1,P=>P.theme.color_btn_secondary_hover),M=(0,a.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.DesignDropdownMenuBase{.DesignDropdownMenu{&.platform-sub-filter-menu{width:100%;overflow-y:overlay;border-radius:9px;box-shadow:",";border:1px solid ",";margin-top:0;&.is-downward{top:0;right:0;left:0;bottom:initial;}&.x-center.is-open{transition:unset;transform:unset;}.content{padding:0;background:",";color:",";width:100%;}ul{width:100%;list-style:none;font-size:12px;padding:8px;li{border-radius:4px;height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.checked{width:16px;height:16px;position:absolute;left:8px;}svg:not(.checked){margin-right:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:4px 0;opacity:0.1;}}}&.official-platform-type-menu{ul{li{padding:0 0 0 28px;svg{path{fill:",";}&.mp-applet{path{stroke:",";fill:none;}}}}}}&.modal-template-drop-menu{max-height:360px;}&.page-detail-dropdown-menu{max-height:300px;}}}}"],P=>P.theme.shadow_m,P=>P.theme.color_bg_border_01,P=>P.theme.color_bg_white,P=>P.theme.color_text_L1,P=>P.theme.color_text_L1,P=>P.theme.color_btn_secondary_hover,P=>P.theme.color_bg_border_01,P=>P.theme.color_text_L1,P=>P.theme.color_text_L1)},81646:(eo,ot,i)=>{"use strict";i.d(ot,{K:()=>a});class a{constructor(M){this.user=M}getIsMktMemberBeforeOrgMtVip(){const{flags:M}=this.user;return!!(M&128)}getIsMdMember(){const{member:M}=this.user||{};return M}getIsMktMember(){const{mt_next_billing_on:M}=this.user||{};return+new Date(M)-+new Date>1e3*60*60*24}getIsSoloMdMember(){const{next_billing_on:M}=this.user||{};return+new Date(M)-+new Date>1e3*60*60*24}getIsBeforeMdMember(){const{mt_vip_old:M}=this.user||{};return this.getIsMdMember()&&M}getIsNewMdMember(){const{mt_vip_old:M}=this.user||{};return this.getIsMdMember()&&!M}getFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:M}=this.user||{},{downloadeds:P}=M||{};return P}getLeftFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:M}=this.user||{},{left_downloads:P}=M||{};return P}getUsesPaidProjectMtCidsThisMonth(){const{usePaidProtoProjectMktInfo:M}=this.user||{},{user_uses_vip_mt_cids_this_month:P=[]}=M||{};return P}}},81900:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Ge});var a=i(25582),k=i.n(a),M=i(38502),P=i(67787);function C(ue,Me){if(!(ue instanceof Me))throw new TypeError("Cannot call a class as a function")}function q(ue,Me){for(var Ze=0;Ze<Me.length;Ze++){var fe=Me[Ze];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ue,fe.key,fe)}}function Y(ue,Me,Ze){return Me&&q(ue.prototype,Me),Ze&&q(ue,Ze),ue}function J(ue,Me,Ze){return Me in ue?Object.defineProperty(ue,Me,{value:Ze,enumerable:!0,configurable:!0,writable:!0}):ue[Me]=Ze,ue}function O(ue){for(var Me=1;Me<arguments.length;Me++){var Ze=arguments[Me]!=null?arguments[Me]:{},fe=Object.keys(Ze);typeof Object.getOwnPropertySymbols=="function"&&(fe=fe.concat(Object.getOwnPropertySymbols(Ze).filter(function(it){return Object.getOwnPropertyDescriptor(Ze,it).enumerable}))),fe.forEach(function(it){J(ue,it,Ze[it])})}return ue}function l(ue,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ue.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ue,writable:!0,configurable:!0}}),Me&&m(ue,Me)}function D(ue){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(Ze){return Ze.__proto__||Object.getPrototypeOf(Ze)},D(ue)}function m(ue,Me){return m=Object.setPrototypeOf||function(fe,it){return fe.__proto__=it,fe},m(ue,Me)}function E(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function f(ue,Me){return Me&&(typeof Me=="object"||typeof Me=="function")?Me:E(ue)}var h=P.Ay.div.withConfig({displayName:"StyledRect",componentId:"sc-1uso172-0"})(["position:absolute;border:1px solid #eb5648;.square{position:absolute;width:7px;height:7px;background:white;border:1px solid #eb5648;border-radius:1px;}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.t,&.tr{top:-7px;}&.tl,&.l,&.bl{left:-7px;}&.bl,&.b,&.br{bottom:-7px;}&.br,&.r,&.tr{right:-7px;}&.l,&.r{margin-top:-7px;}&.t,&.b{margin-left:-7px;}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;}.t,.tl,.tr{top:-3px;}.b,.bl,.br{bottom:-3px;}.r,.tr,.br{right:-3px;}.tl,.l,.bl{left:-3px;}.l,.r{top:50%;margin-top:-3px;}.t,.b{left:50%;margin-left:-3px;}"]),S=function(Me,Ze){return Math.sqrt(Me*Me+Ze*Ze)},V=function(Me,Ze){var fe=Me.x,it=Me.y,et=Ze.x,Ut=Ze.y,G=fe*et+it*Ut,Ht=fe*Ut-it*et,Tt=Math.atan2(Ht,G)/Math.PI*180;return(Tt+360)%360},We=function(Me){return Me*Math.PI/180},re=function(Me){return Math.cos(We(Me))},ve=function(Me){return Math.sin(We(Me))},we=function(Me,Ze,fe){var it=Me+Ze;return it>fe?Me=it:(Ze=fe-Me,Me=fe),{width:Me,deltaW:Ze}},Ae=function(Me,Ze,fe){var it=Me+Ze;return it>fe?Me=it:(Ze=fe-Me,Me=fe),{height:Me,deltaH:Ze}},Oe=function(Me,Ze,fe,it,et,Ut,G){var Ht=Ze.width,Tt=Ze.height,Vt=Ze.centerX,He=Ze.centerY,rn=Ze.rotateAngle,Lt=Ht<0?-1:1,jt=Tt<0?-1:1;switch(Ht=Math.abs(Ht),Tt=Math.abs(Tt),Me){case"r":{var mt=we(Ht,fe,Ut);Ht=mt.width,fe=mt.deltaW,et?(it=fe/et,Tt=Ht/et,Vt+=fe/2*re(rn)-it/2*ve(rn),He+=fe/2*ve(rn)+it/2*re(rn)):(Vt+=fe/2*re(rn),He+=fe/2*ve(rn));break}case"tr":{it=-it;var Jn=we(Ht,fe,Ut);Ht=Jn.width,fe=Jn.deltaW;var o=Ae(Tt,it,G);Tt=o.height,it=o.deltaH,et&&(fe=it*et,Ht=Tt*et),Vt+=fe/2*re(rn)+it/2*ve(rn),He+=fe/2*ve(rn)-it/2*re(rn);break}case"br":{var so=we(Ht,fe,Ut);Ht=so.width,fe=so.deltaW;var Et=Ae(Tt,it,G);Tt=Et.height,it=Et.deltaH,et&&(fe=it*et,Ht=Tt*et),Vt+=fe/2*re(rn)-it/2*ve(rn),He+=fe/2*ve(rn)+it/2*re(rn);break}case"b":{var Jt=Ae(Tt,it,G);Tt=Jt.height,it=Jt.deltaH,et?(fe=it*et,Ht=Tt*et,Vt+=fe/2*re(rn)-it/2*ve(rn),He+=fe/2*ve(rn)+it/2*re(rn)):(Vt-=it/2*ve(rn),He+=it/2*re(rn));break}case"bl":{fe=-fe;var Ot=we(Ht,fe,Ut);Ht=Ot.width,fe=Ot.deltaW;var dn=Ae(Tt,it,G);Tt=dn.height,it=dn.deltaH,et&&(Tt=Ht/et,it=fe/et),Vt-=fe/2*re(rn)+it/2*ve(rn),He-=fe/2*ve(rn)-it/2*re(rn);break}case"l":{fe=-fe;var Ce=we(Ht,fe,Ut);Ht=Ce.width,fe=Ce.deltaW,et?(Tt=Ht/et,it=fe/et,Vt-=fe/2*re(rn)+it/2*ve(rn),He-=fe/2*ve(rn)-it/2*re(rn)):(Vt-=fe/2*re(rn),He-=fe/2*ve(rn));break}case"tl":{fe=-fe,it=-it;var Pt=we(Ht,fe,Ut);Ht=Pt.width,fe=Pt.deltaW;var Nn=Ae(Tt,it,G);Tt=Nn.height,it=Nn.deltaH,et&&(Ht=Tt*et,fe=it*et),Vt-=fe/2*re(rn)-it/2*ve(rn),He-=fe/2*ve(rn)+it/2*re(rn);break}case"t":{it=-it;var At=Ae(Tt,it,G);Tt=At.height,it=At.deltaH,et?(Ht=Tt*et,fe=it*et,Vt+=fe/2*re(rn)+it/2*ve(rn),He+=fe/2*ve(rn)-it/2*re(rn)):(Vt+=it/2*ve(rn),He-=it/2*re(rn));break}}return{position:{centerX:Vt,centerY:He},size:{width:Ht*Lt,height:Tt*jt}}},Be=function(Me){var Ze=Me.centerX,fe=Me.centerY,it=Me.width,et=Me.height,Ut=Me.rotateAngle;return{top:fe-et/2,left:Ze-it/2,width:it,height:et,rotateAngle:Ut}},tt=function(Me){var Ze=Me.top,fe=Me.left,it=Me.width,et=Me.height,Ut=Me.rotateAngle;return{position:{centerX:fe+it/2,centerY:Ze+et/2},size:{width:it,height:et},transform:{rotateAngle:Ut}}},Xe={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},ne={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},lt={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},rt=function(ue){l(Me,ue);function Me(){var Ze,fe;C(this,Me);for(var it=arguments.length,et=new Array(it),Ut=0;Ut<it;Ut++)et[Ut]=arguments[Ut];return fe=f(this,(Ze=D(Me)).call.apply(Ze,[this].concat(et))),J(E(E(fe)),"setElementRef",function(G){fe.$element=G}),J(E(E(fe)),"startDrag",function(G){var Ht=G.clientX,Tt=G.clientY;fe.props.onDragStart&&fe.props.onDragStart(),fe._isMouseDown=!0;var Vt=function(Lt){if(fe._isMouseDown){Lt.stopImmediatePropagation();var jt=Lt.clientX,mt=Lt.clientY,Jn=jt-Ht,o=mt-Tt;fe.props.onDrag(Jn,o),Ht=jt,Tt=mt}},He=function rn(){document.removeEventListener("mousemove",Vt),document.removeEventListener("mouseup",rn),fe._isMouseDown&&(fe._isMouseDown=!1,fe.props.onDragEnd&&fe.props.onDragEnd())};document.addEventListener("mousemove",Vt),document.addEventListener("mouseup",He)}),J(E(E(fe)),"startRotate",function(G){if(G.button===0){var Ht=G.clientX,Tt=G.clientY,Vt=fe.props.styles.transform.rotateAngle,He=fe.$element.getBoundingClientRect(),rn={x:He.left+He.width/2,y:He.top+He.height/2},Lt={x:Ht-rn.x,y:Tt-rn.y};fe.props.onRotateStart&&fe.props.onRotateStart(),fe._isMouseDown=!0;var jt=function(o){if(fe._isMouseDown){o.stopImmediatePropagation();var so=o.clientX,Et=o.clientY,Jt={x:so-rn.x,y:Et-rn.y},Ot=V(Lt,Jt);fe.props.onRotate(Ot,Vt)}},mt=function Jn(){document.removeEventListener("mousemove",jt),document.removeEventListener("mouseup",Jn),fe._isMouseDown&&(fe._isMouseDown=!1,fe.props.onRotateEnd&&fe.props.onRotateEnd())};document.addEventListener("mousemove",jt),document.addEventListener("mouseup",mt)}}),J(E(E(fe)),"startResize",function(G,Ht){if(G.button===0){document.body.style.cursor=Ht;var Tt=fe.props,Vt=Tt.styles,He=Vt.position,rn=He.centerX,Lt=He.centerY,jt=Vt.size,mt=jt.width,Jn=jt.height,o=Tt.cursorAngle,so=G.clientX,Et=G.clientY,Jt={width:mt,height:Jn,centerX:rn,centerY:Lt,cursorAngle:o},Ot=G.target.getAttribute("class").split(" ")[0];fe.props.onResizeStart&&fe.props.onResizeStart(),fe._isMouseDown=!0;var dn=function(Nn){if(fe._isMouseDown){Nn.stopImmediatePropagation();var At=Nn.clientX,on=Nn.clientY,no=At-so,mo=on-Et,mn=Math.atan2(mo,no),ht=S(no,mo),Fn=Nn.shiftKey;fe.props.onResize(ht,mn,Jt,Ot,Fn)}},Ce=function Pt(){document.body.style.cursor="auto",document.removeEventListener("mousemove",dn),document.removeEventListener("mouseup",Pt),fe._isMouseDown&&(fe._isMouseDown=!1,fe.props.onResizeEnd&&fe.props.onResizeEnd())};document.addEventListener("mousemove",dn),document.addEventListener("mouseup",Ce)}}),fe}return Y(Me,[{key:"render",value:function(){var fe=this,it=this.props,et=it.styles,Ut=et.position,G=Ut.centerX,Ht=Ut.centerY,Tt=et.size,Vt=Tt.width,He=Tt.height,rn=et.transform.rotateAngle,Lt=it.zoomable,jt=it.rotatable,mt=it.cursorAngle,Jn={width:Math.abs(Vt),height:Math.abs(He),transform:"rotate(".concat(rn,"deg)"),left:G-Math.abs(Vt)/2,top:Ht-Math.abs(He)/2},o=Lt.split(",").map(function(so){return so.trim()}).filter(function(so){return so});return M.createElement(h,{ref:this.setElementRef,onMouseDown:this.startDrag,className:"rect single-resizer",style:Jn},jt&&M.createElement("div",{className:"rotate",onMouseDown:this.startRotate},M.createElement("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"}))),o.map(function(so){var Et=mt+lt[so],Jt=ne.RESIZE_ARROW_NORMAL.replace("__absAngle__","".concat(Et));return M.createElement("div",{key:so,style:{cursor:Jt},className:"".concat(Xe[so]," resizable-handler"),onMouseDown:function(dn){return fe.startResize(dn,Jt)}})}),o.map(function(so){return M.createElement("div",{key:so,className:"".concat(Xe[so]," square")})}))}}]),Me}(M.PureComponent);J(rt,"propTypes",{styles:k().object,zoomable:k().string,rotatable:k().bool,onResizeStart:k().func,onResize:k().func,onResizeEnd:k().func,onRotateStart:k().func,onRotate:k().func,onRotateEnd:k().func,onDragStart:k().func,onDrag:k().func,onDragEnd:k().func,parentRotateAngle:k().number,cursorAngle:k().number});var Te=function(ue){l(Me,ue);function Me(){var Ze,fe;C(this,Me);for(var it=arguments.length,et=new Array(it),Ut=0;Ut<it;Ut++)et[Ut]=arguments[Ut];return fe=f(this,(Ze=D(Me)).call.apply(Ze,[this].concat(et))),J(E(E(fe)),"handleRotate",function(G,Ht){if(fe.props.onRotate){var Tt=Math.round(Ht+G);Tt>=360?Tt-=360:Tt<0&&(Tt+=360),Tt>356||Tt<4?Tt=0:Tt>86&&Tt<94?Tt=90:Tt>176&&Tt<184?Tt=180:Tt>266&&Tt<274&&(Tt=270),fe.props.onRotate(Tt)}}),J(E(E(fe)),"handleResize",function(G,Ht,Tt,Vt,He){if(fe.props.onResize){var rn=fe.props,Lt=rn.aspectRatio,jt=rn.minWidth,mt=rn.minHeight,Jn=rn.parentRotateAngle,o=rn.cursorAngle,so=Ht-We(o+Jn),Et=G*Math.cos(so),Jt=G*Math.sin(so),Ot=He&&!Lt?Tt.width/Tt.height:Lt,dn=Oe(Vt,O({},Tt,{rotateAngle:o}),Et,Jt,Ot,jt,mt),Ce=dn.position,Pt=Ce.centerX,Nn=Ce.centerY,At=dn.size,on=At.width,no=At.height;fe.props.onResize(Be({centerX:Pt,centerY:Nn,width:on,height:no,rotateAngle:o}),He,Vt)}}),J(E(E(fe)),"handleDrag",function(G,Ht){fe.props.onDrag&&fe.props.onDrag(G,Ht)}),fe}return Y(Me,[{key:"render",value:function(){var fe=this.props,it=fe.top,et=fe.left,Ut=fe.width,G=fe.height,Ht=fe.rotateAngle,Tt=fe.parentRotateAngle,Vt=fe.zoomable,He=fe.rotatable,rn=fe.onRotate,Lt=fe.onResizeStart,jt=fe.onResizeEnd,mt=fe.onRotateStart,Jn=fe.onRotateEnd,o=fe.onDragStart,so=fe.onDragEnd,Et=fe.cursorAngle,Jt=tt({top:it,left:et,width:Ut,height:G,rotateAngle:Ht});return M.createElement(rt,{styles:Jt,zoomable:Vt,rotatable:!!(He&&rn),parentRotateAngle:Tt,cursorAngle:Et,onResizeStart:Lt,onResize:this.handleResize,onResizeEnd:jt,onRotateStart:mt,onRotate:this.handleRotate,onRotateEnd:Jn,onDragStart:o,onDrag:this.handleDrag,onDragEnd:so})}}]),Me}(M.Component);J(Te,"propTypes",{left:k().number.isRequired,top:k().number.isRequired,width:k().number.isRequired,height:k().number.isRequired,rotatable:k().bool,rotateAngle:k().number,parentRotateAngle:k().number,zoomable:k().string,minWidth:k().number,minHeight:k().number,aspectRatio:k().oneOfType([k().number,k().bool]),onRotateStart:k().func,onRotate:k().func,onRotateEnd:k().func,onResizeStart:k().func,onResize:k().func,onResizeEnd:k().func,onDragStart:k().func,onDrag:k().func,onDragEnd:k().func,cursorAngle:k().number}),J(Te,"defaultProps",{parentRotateAngle:0,rotateAngle:0,cursorAngle:0,rotatable:!0,zoomable:"",minWidth:10,minHeight:10});const Ge=Te},82009:(eo,ot,i)=>{"use strict";i.d(ot,{Ct:()=>k,NY:()=>P,OO:()=>C,PP:()=>q,Q:()=>Y,jC:()=>M});var a=i(19249);const k=async J=>await(0,a.DE)("/api/upper/web_v1/sclibs/space_libs?space_cid="+J),M=async()=>{var J;const{mkts:O,project_metas:l}=await(0,a.DE)("/api/upper/web_v1/sclibs/featured_mkts");return(J=O==null?void 0:O.map(D=>{var m;return{...D,name:D.title,sclib_cid:(m=l.find(E=>E.upper_cid===D.cid))==null?void 0:m.cid}}))!=null?J:[]},P=async J=>{let{cid:O,libs:l}=J;return await(0,a.zi)("/api/upper/web_v1/sclibs/status",{cid:O,libs:l})},C=async J=>await(0,a.SN)("/api/upper/web_v1/sclibs/withdraw",{cid:J}),q=async J=>{let{cid:O,info:l,notes:D,version:m}=J;return await(0,a.SN)("/api/upper/web_v1/sclibs/data",{project_cid:O,release_info:l})},Y=async J=>{try{return await(0,a.DE)("/api/upper/web_v1/sclibs/data?project_cid="+J)}catch(O){console.log("e",O)}}},82066:(eo,ot,i)=>{"use strict";i.d(ot,{Pd:()=>ve});var a=i(95549),k=i(25582),M=i.n(k),P=i(38502),C=i(17307),q=i(5649),Y=i(39e3),J=i(83199),O=i(67787);const l=O.Ay.div.withConfig({displayName:"styles__CSSDesignZoomBoxDiv",componentId:"sc-ru8w0z-0"})(["position:relative;width:64px;height:32px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;border-radius:6px;transition:all 0.2s ease-out;&.isBorder{outline:1px solid #E5E5E5;margin-right:6px;}.zoom-main{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.zoom-box{display:flex;align-items:center;line-height:16px;height:16px;font-size:13px;color:",";.zoom-arrow{width:7px;transform:translateY(-1px);margin-left:8px;}}.zoom-tip{margin-top:8px;color:#415058;height:12px;line-height:12px;font-size:12px;}&:hover{background:",";}&.active,&:active{background-color:",";}"],Oe=>Oe.theme.color_text_L1,Oe=>Oe.theme.color_btn_secondary_hover,Oe=>Oe.theme.color_btn_secondary_active),D=O.Ay.div.withConfig({displayName:"styles__StyledZoomOptionsPanel",componentId:"sc-ru8w0z-1"})(["position:absolute;padding:8px;",":",";right:0;border-radius:8px;min-width:178px;font-size:12px;background:",";box-shadow:",";border:1px solid ",";.zoom-input-number-wrap{height:32px;display:flex;align-items:center;justify-content:center;.zoom-input{width:140px;border-color:",";&:hover{border-color:",";}input,.suffix{color:",";}}}.divider{margin:8px 0;border-top:1px solid ",";}.zoom-item{display:flex;align-items:center;justify-content:space-between;height:28px;padding:0 16px 0 32px;border-radius:4px;color:",";.zoom-text{position:relative;}.kbd-size{white-space:nowrap;margin-left:auto;kbd{color:",";display:inline-block;text-align:center;min-width:12px;margin-right:2px;}kbd:first-child{margin-left:0;}.kbd:last-child{margin-right:0;}}&:not(.is-disabled):hover{background:",";}&.is-disabled{cursor:not-allowed;color:",";}.zoom-select{position:absolute;left:-20px;top:7px;width:8px;color:",";}}&.mac .others,&.others .mac{display:none;}"],Oe=>Oe.position==="top"?"top":"bottom",Oe=>Oe.position==="top"?"calc(100% + 8px)":"100%",Oe=>Oe.theme.color_bg_white,Oe=>Oe.theme.shadow_m,Oe=>Oe.theme.color_bg_border_01,Oe=>Oe.theme.color_bg_border_02,Oe=>Oe.theme.color_proto,Oe=>Oe.theme.color_text_L1,Oe=>Oe.theme.color_bg_border_01,Oe=>Oe.theme.color_text_L1,Oe=>Oe.theme.color_text_L2,Oe=>Oe.theme.color_btn_secondary_hover,Oe=>Oe.theme.color_text_disabled01,Oe=>Oe.theme.color_text_L1);var m=i(53732),E=i.n(m),f=i(56202),h=i(53940),S=i(94590),V=i(64580),We=i(48281),re=i(72214);class ve extends P.PureComponent{constructor(Be){super(Be),(0,a.A)(this,"handleToggleZoomContentShow",tt=>{const{onlyView:Xe,onlyPreview:ne}=this.props;tt.stopPropagation(),this.setState({isZoomContentShow:!this.state.isZoomContentShow}),ne?(0,We.v)({operation_type:We.$.Zoom}):Xe?(0,V.A)({operation_type:V.D.Zoom}):(0,S.kX)({operation_type:S.mV.View})}),(0,a.A)(this,"handleZoomIn",tt=>{tt.stopPropagation();const{onZoomIn:Xe}=this.props;Xe()}),(0,a.A)(this,"handleZoomOut",tt=>{tt.stopPropagation();const{onZoomOut:Xe}=this.props;Xe()}),this.state={isZoomContentShow:!1}}render(){const{scale:Be,onZoomInitialScale:tt,onZoomSpecifiedScale:Xe,onZoomSelection:ne,isShowZoomSelection:lt,className:rt,onlyPreview:Te,isHtmlZipPreview:Ge,withDropdownMarker:ue}=this.props,{isZoomContentShow:Me}=this.state,Ze=h.I.indexOf(Be),fe=Ze!==h.I.length-1,it=Ze!==0;return(0,re.jsx)(J.A,{content:I18N.DesignZoomBox.zoom,direction:"down",distance:8,children:(0,re.jsxs)(l,{onClick:this.handleToggleZoomContentShow,className:E()(rt||"",{active:Me},{isBorder:Ge}),children:[(0,re.jsx)("div",{className:"zoom-main",children:(0,re.jsxs)("div",{className:"zoom-box",children:[(0,re.jsx)("p",{className:"zoom-scale",children:Math.round(Be)+"%"}),ue&&(0,re.jsx)(C.C,{className:"zoom-arrow",name:"toolbar/triangle-down"})]})}),Me&&(0,re.jsx)(we,{position:"top",scale:Be,minScale:h.sI,maxScale:h.sH,canZoomIn:fe,handleZoomIn:this.handleZoomIn,canZoomOut:it,handleZoomOut:this.handleZoomOut,onZoomInitialScale:tt,onZoomSpecifiedScale:Xe,onZoomSelection:ne,isShowZoomSelection:lt,isZoomOptionPanelVisible:Me,setIsZoomOptionPanelVisible:et=>this.setState({isZoomContentShow:et}),onlyPreview:Te})]})})}}(0,a.A)(ve,"propTypes",{scale:M().number,isShowZoomSelection:M().bool,onZoomSpecifiedScale:M().func,onZoomIn:M().func,onZoomOut:M().func,onZoomInitialScale:M().func,onZoomSelection:M().func,className:M().string,onlyPreview:M().bool,isHtmlZipPreview:M().bool,onlyView:M().bool,withDropdownMarker:M().bool}),(0,a.A)(ve,"defaultProps",{isShowZoomSelection:!0,withDropdownMarker:!0});const we=Oe=>{let{position:Be,scale:tt,minScale:Xe,maxScale:ne,canZoomIn:lt,handleZoomIn:rt,canZoomOut:Te,handleZoomOut:Ge,onZoomInitialScale:ue,onZoomSpecifiedScale:Me,onZoomSelection:Ze,isShowZoomSelection:fe,isZoomOptionPanelVisible:it,setIsZoomOptionPanelVisible:et,onlyPreview:Ut}=Oe;if(!it)return null;const G=(0,f.cX)()?"mac":"others",Ht=(0,P.useRef)(null),Tt=He=>{const{target:rn}=He;if(!rn.closest(".zoom-main")&&it){var jt;(jt=Ht.current)!=null&&jt.contains(rn)||et(!1)}},Vt=He=>{He.stopPropagation();const rn=He.currentTarget.dataset.value;Me(rn)};return it&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(D,{className:E()("preview-zoom-options-panel",G),position:Be,ref:Ht,children:[(0,re.jsx)("div",{className:"zoom-input-number-wrap",onClick:He=>He.stopPropagation(),children:(0,re.jsx)("form",{children:(0,re.jsx)(q.A,{className:"zoom-input",min:Xe,max:ne,precision:0,suffix:"%",actionButton:!1,value:Math.round(tt),isSelect:!0,onConfirm:Me,onlyPreview:Ut})})}),(0,re.jsx)("div",{className:"divider"}),(0,re.jsxs)("div",{className:E()("zoom-item",{"is-disabled":!lt}),onClick:rt,children:[(0,re.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomin}),(0,re.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomIn}}),(0,re.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomIn}})]}),(0,re.jsxs)("div",{className:E()("zoom-item",{"is-disabled":!Te}),onClick:Ge,children:[(0,re.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomout}),(0,re.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomOut}}),(0,re.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomOut}})]}),(0,re.jsx)("div",{className:"divider"}),(0,re.jsx)("div",{className:"zoom-item","data-value":50,onClick:Vt,children:(0,re.jsxs)("p",{className:"zoom-text",children:[Math.round(tt)===50&&(0,re.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"50%"]})}),(0,re.jsxs)("div",{className:"zoom-item","data-value":100,onClick:Vt,children:[(0,re.jsxs)("p",{className:"zoom-text",children:[Math.round(tt)===100&&(0,re.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"100%"]}),(0,re.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomReset}}),(0,re.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomReset}})]}),(0,re.jsx)("div",{className:"zoom-item","data-value":200,onClick:Vt,children:(0,re.jsxs)("p",{className:"zoom-text",children:[Math.round(tt)===200&&(0,re.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"200%"]})}),(0,re.jsx)("div",{className:"divider"}),(0,re.jsxs)("div",{className:"zoom-item",onClick:ue,children:[(0,re.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.fit_canvas}),(0,re.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomFit}}),(0,re.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomFit}})]}),fe&&(0,re.jsxs)("div",{className:"zoom-item",onClick:Ze,children:[(0,re.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoom_selection}),(0,re.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomSelect}}),(0,re.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:Ae[G].zoomSelect}})]})]}),(0,re.jsx)(Y.A,{target:document,onClick:(0,Y.t)(Tt,{capture:!0})})]})};we.propTypes={position:M().string,scale:M().number,minScale:M().number,maxScale:M().number,canZoomIn:M().bool,handleZoomIn:M().func,canZoomOut:M().bool,handleZoomOut:M().func,onZoomInitialScale:M().func,onZoomSpecifiedScale:M().func,onZoomSelection:M().func,isShowZoomSelection:M().bool,isZoomOptionPanelVisible:M().bool,setIsZoomOptionPanelVisible:M().func,onlyPreview:M().bool};const Ae={mac:{zoomOut:"<kbd>\u2318</kbd><kbd>-</kbd>",zoomIn:"<kbd>\u2318</kbd><kbd>+</kbd>",zoomReset:"<kbd>\u2318</kbd><kbd>0</kbd>",zoomFit:"<kbd>\u2318</kbd><kbd>1</kbd>",zoomSelect:"<kbd>\u2318</kbd><kbd>2</kbd>"},others:{zoomOut:"<kbd>Ctrl</kbd><kbd>-</kbd>",zoomIn:"<kbd>Ctrl</kbd><kbd>+</kbd>",zoomReset:"<kbd>Ctrl</kbd><kbd>0</kbd>",zoomFit:"<kbd>Ctrl</kbd><kbd>1</kbd>",zoomSelect:"<kbd>Ctrl</kbd><kbd>2</kbd>"}}},82515:(eo,ot,i)=>{"use strict";i.d(ot,{Z:()=>k});var a=i(44327);const k=async M=>{let{fcg:P,userId:C,isOrg:q=!1}=M;if(!P||!C)return;const Y=!q||(0,a.Bk)(),J=await(0,a.i_)({...P,userId:C,repaint:!0,isAllowDat:Y});J&&(q?(Object.assign(globalThis,{orgSdk:J,orgSdkStore:J.sdkStore}),await MB.action("entry:load:org:combo:group:list")):(Object.assign(globalThis,{userSdk:J,userSdkStore:J.sdkStore}),await MB.action("entry:load:user:combo:group:list")))}},83106:(eo,ot,i)=>{var a=i(71893),k=i(48236),M=i(52255),P=k(function(C,q){return M(C)?a(C,q):[]});eo.exports=P},83291:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"32",height:"32",rx:"7",fill:"#5B5CF9"}),a.createElement("path",{opacity:"0.5",d:"M11.983 6.50268C11.9127 6.29519 12.067 6.08002 12.2861 6.08002H16.7304C16.8675 6.08002 16.9895 6.16744 17.0335 6.29736L23.5367 25.4974C23.607 25.7048 23.4527 25.92 23.2336 25.92H18.7893C18.6521 25.92 18.5302 25.8326 18.4862 25.7027L11.983 6.50268Z",fill:"white"}),a.createElement("path",{d:"M15.1831 6.50268C15.1128 6.29519 15.2671 6.08002 15.4862 6.08002H19.9304C20.0676 6.08002 20.1895 6.16744 20.2335 6.29736L26.7368 25.4974C26.807 25.7048 26.6527 25.92 26.4337 25.92H21.9894C21.8522 25.92 21.7303 25.8326 21.6863 25.7027L15.1831 6.50268Z",fill:"white"}),a.createElement("g",{clipPath:"url(#clip0_654_88)"},a.createElement("path",{d:"M8.70013 18.1874C8.86647 17.8309 9.37328 17.8309 9.53962 18.1874L10.5226 20.2935C10.5686 20.3921 10.6478 20.4713 10.7464 20.5174L12.8526 21.5003C13.209 21.6666 13.209 22.1734 12.8526 22.3398L10.7464 23.3227C10.6478 23.3687 10.5686 23.448 10.5226 23.5466L9.53962 25.6527C9.37328 26.0091 8.86647 26.0091 8.70013 25.6527L7.71718 23.5466C7.67117 23.448 7.59192 23.3687 7.49333 23.3227L5.38719 22.3398C5.03077 22.1734 5.03077 21.6666 5.38718 21.5003L7.49333 20.5174C7.59192 20.4713 7.67117 20.3921 7.71718 20.2935L8.70013 18.1874Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_654_88"},a.createElement("rect",{width:"8",height:"8",fill:"white",transform:"translate(5.11987 17.92)"}))))})},83413:(eo,ot,i)=>{"use strict";i.d(ot,{x:()=>C});var a=i(38502),k=i(18381),M=i(70933),P=i(44327);const C=()=>{const q=(0,k.d4)(M.HW),Y=(0,k.d4)(M.wA),J=(0,k.d4)(M.F2),O=(0,k.d4)(M._x),[l,D]=(0,a.useState)(!0),m=async f=>{let{fcg:h,userId:S,isOrg:V=!1}=f;if(!h||!S)return;const We=!V||(0,P.Bk)(),re=await(0,P.i_)({...h,userId:S,repaint:!0,isAllowDat:We});re&&(V?(Object.assign(globalThis,{orgSdk:re,orgSdkStore:re.sdkStore}),await MB.action("entry:load:org:combo:group:list")):(Object.assign(globalThis,{userSdk:re,userSdkStore:re.sdkStore}),await MB.action("entry:load:user:combo:group:list")))},E=(0,a.useCallback)(async function(f){f===void 0&&(f=!1);const h=q==null?void 0:q.id;h&&(f&&!window.orgSdkStore&&Y&&O&&(D(!0),await m({fcg:O,userId:h,isOrg:!0})),!window.userSdkStore&&J&&(D(!0),await m({fcg:J,userId:h})),D(!1))},[q,Y,J,O,m]);return{isLoading:l,initComboSdkStore:E}}},83466:(eo,ot)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var i=ot.TAB_KEY=9,a=ot.ENTER_KEY=13,k=ot.ESCAPE_KEY=27,M=ot.LEFT_KEY=37,P=ot.UP_KEY=38,C=ot.RIGHT_KEY=39,q=ot.DOWN_KEY=40,Y=ot.DELETE_KEY=46,J=ot.BACKSPACE_KEY=8},83815:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"32",height:"32",rx:"7",fill:"#8B63FF"}),a.createElement("path",{d:"M21.0957 15.3115L19.5225 20.0322C19.3805 20.4577 19.042 20.788 18.6133 20.9199L7.94922 24.2012C7.78705 24.251 7.63501 24.0997 7.68457 23.9375L10.9658 13.2734C11.0977 12.8447 11.429 12.5062 11.8545 12.3643L16.5742 10.79L21.0957 15.3115Z",stroke:"white",strokeWidth:"2.11571"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1956 19.639C13.4562 19.3783 13.8542 19.3333 14.2158 19.4047C14.9102 19.5416 15.6578 19.3411 16.1958 18.8031C17.0535 17.9454 17.0535 16.5548 16.1958 15.6971C15.3381 14.8394 13.9475 14.8394 13.0898 15.6971C12.5515 16.2354 12.3511 16.9836 12.4885 17.6783C12.5601 18.0402 12.5152 18.4384 12.2544 18.6993L7.44618 23.5075C7.37318 23.5805 7.31818 23.6695 7.28553 23.7674C7.11224 24.2873 7.60682 24.7819 8.12668 24.6086C8.22462 24.5759 8.31361 24.5209 8.38661 24.4479L13.1956 19.639Z",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6901 6.30077L25.8621 12.4728C26.2631 12.8738 26.2631 13.524 25.8621 13.9251C25.382 14.4052 24.8193 14.7951 24.2011 15.0761L22.1141 16.0248C21.5296 16.2905 20.8415 16.1657 20.3875 15.7117L16.4512 11.7754C15.9972 11.3214 15.8724 10.6333 16.1381 10.0488L17.0868 7.96174C17.3678 7.34355 17.7577 6.78094 18.2378 6.30077C18.6389 5.89974 19.289 5.89974 19.6901 6.30077Z",fill:"#ECD7FF",fillOpacity:"0.7"}))})},84748:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M16.9784 8.22499L16.0003 8.09178C15.7831 8.06181 15.607 7.91861 15.5215 7.72379C15.3283 7.2792 15.082 6.86292 14.7879 6.48328C14.6563 6.31343 14.6169 6.09197 14.699 5.89549L15.0701 5.00465C15.1846 4.73158 15.0735 4.41687 14.8102 4.27034L12.6949 3.07978C12.4316 2.93159 12.0981 2.99486 11.9117 3.22798L11.3064 3.98227C11.1713 4.15211 10.9524 4.23038 10.7336 4.20373C10.4942 4.17376 10.2496 4.15711 10.0017 4.15711C9.75374 4.15711 9.50922 4.17376 9.26982 4.20373C9.05094 4.23038 8.83206 4.15211 8.69697 3.98227L8.09164 3.22798C7.90525 2.99486 7.57181 2.93159 7.30847 3.07978L5.19322 4.26867C4.92988 4.41687 4.82045 4.72991 4.9333 5.00299L5.30437 5.89383C5.38645 6.09197 5.34712 6.31177 5.21545 6.48161C4.92133 6.86126 4.67339 7.27754 4.48187 7.72212C4.39637 7.91861 4.22024 8.06181 4.00307 8.09011L3.02496 8.22332C2.72401 8.26495 2.5 8.51472 2.5 8.81111V11.1906C2.5 11.4853 2.72401 11.7351 3.02325 11.7767L4.00136 11.9099C4.21853 11.9399 4.39466 12.0831 4.48016 12.2779C4.67339 12.7225 4.91962 13.1387 5.21374 13.5184C5.34541 13.6882 5.38474 13.9097 5.30266 14.1062L4.93159 14.997C4.81703 15.2701 4.92817 15.5848 5.19151 15.7313L7.30676 16.9202C7.5701 17.0684 7.90354 17.0051 8.08993 16.772L8.69527 16.0177C8.83035 15.8479 9.04923 15.7696 9.26811 15.7963C9.50751 15.8262 9.75203 15.8429 9.99998 15.8429C10.2479 15.8429 10.4925 15.8262 10.7319 15.7963C10.9507 15.7696 11.1696 15.8479 11.3047 16.0177L11.91 16.772C12.0964 17.0051 12.4299 17.0684 12.6932 16.9202L14.8085 15.7313C15.0718 15.5831 15.1812 15.2701 15.0684 14.997L14.6973 14.1062C14.6152 13.9097 14.6546 13.6882 14.7862 13.5184C15.0803 13.1387 15.3283 12.7225 15.5198 12.2779C15.6053 12.0814 15.7814 11.9382 15.9986 11.9099L16.9767 11.7767C17.2777 11.7351 17.5 11.4853 17.5 11.1906V8.81111C17.5034 8.51472 17.2794 8.26495 16.9784 8.22499ZM10.0017 12.3128C8.69014 12.3128 7.62653 11.2771 7.62653 10C7.62653 8.72286 8.69014 7.68715 10.0017 7.68715C11.3132 7.68715 12.3769 8.72286 12.3769 10C12.3769 11.2771 11.3132 12.3128 10.0017 12.3128Z",fill:"#B7B9BD"}))})},84860:(eo,ot,i)=>{"use strict";i.d(ot,{_:()=>D,l:()=>m});var a=i(25582),k=i.n(a),M=i(69368),P=i(67787);const C=P.Ay.span.withConfig({displayName:"styled__StyledFormKey",componentId:"sc-1ecbqe2-0"})(["align-self:flex-start;display:flex;align-items:center;flex-basis:7em;height:34px;.required-sign{margin:0 0.25em;color:#eb5648;}"]),q=P.Ay.span.withConfig({displayName:"styled__StyledFormVal",componentId:"sc-1ecbqe2-1"})(["flex:1;& > .Input,.CoreInput{display:block;width:100%;.small{margin-top:12px;margin-bottom:12px;}}.Textarea,.CoreTextarea{display:block;width:100%;}.CoreCheck,.Radio,.CoreRadio,.CheckGroup,.CoreCheckGroup,.RadioGroup,.CoreRadioGroup{margin-top:calc((34px - 1.5em)/2);}"]),Y=P.Ay.div.withConfig({displayName:"styled__StyledFormDiv",componentId:"sc-1ecbqe2-2"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]),J=P.Ay.label.withConfig({displayName:"styled__StyledFormLabel",componentId:"sc-1ecbqe2-3"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]);var O=i(72214);function l(E){let{name:f,children:h,isRequired:S}=E;return(0,O.jsxs)(O.Fragment,{children:[f&&(0,O.jsxs)(C,{className:"FormEntry-Key key",children:[f,S&&(0,O.jsx)("span",{className:"required-sign",children:"*"})]}),(0,O.jsx)(q,{className:"FormEntry-Val val",children:h})]})}l.propTypes={children:k().node,name:k().any,isRequired:k().bool};function D(E){const{className:f,type:h}=E;return(0,O.jsx)(Y,{className:(0,M.Hn)(["FormEntry",f]),type:h,children:(0,O.jsx)(l,{...E})})}D.propTypes={className:k().string,type:k().string};function m(E){const{className:f,type:h}=E;return(0,O.jsx)(J,{className:(0,M.Hn)(["FormEntry",f]),type:h,children:(0,O.jsx)(l,{...E})})}m.propTypes={className:k().string,type:k().string}},84864:(eo,ot,i)=>{"use strict";i.d(ot,{B:()=>q});var a=i(38502),k=i(18381),M=i(70933),P=i(67052),C=i(11032);const q=Y=>{let{templateList:J=[],marketTemplateListMap:O=new Map,isFromSameResource:l=!1}=Y;const[D,m]=(0,a.useState)(new Set),[E,f]=(0,a.useState)(null),h=(0,k.d4)(P.fm),S=(0,k.d4)(M.HW),V=(0,k.d4)(M.wA),We=(0,k.wA)(),re=Te=>{var Ge;return(Te==null?void 0:Te.marketTemplateCid)||(Te==null||(Ge=Te.marketTemplateSource)==null?void 0:Ge.cid)},ve=Te=>{if(!l){const Ge=[...Te];Ge.filter(Me=>{const Ze=O==null?void 0:O.get(Me),{show:fe}=(0,C.o3)(Ze,S);return fe}).length==0&&Ge.length>0?f(O==null?void 0:O.get(Ge[0])):f(null)}},we=Te=>{const Ge=new Set(D);Ge.has(Te)?Ge.delete(Te):Ge.add(Te),m(Ge);const ue=new Set;J.forEach(Me=>{Ge.has(Me.key)&&ue.add(re(Me))}),ve(ue)},Ae=()=>{MB.global.experienceLoginModalHelper("isSave")||E&&We({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:E,currentOrg:V,paidCallback:onPaidResources,isFooter:!0}}})},Oe=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{category:Te}=E||{};let Ge="",ue="";Te==="combo_group"?(Ge="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",ue="workspace-v8_components_buy_vip"):Te==="screen_list"?(Ge="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",ue="workspace-v8_pages_buy_vip"):(Ge="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",ue="workspace-v8_template_buy_vip");const Me={mode:"mat",payEntrance:Ge,checkoutArea:"proto",checkoutPlace:ue};MB.global.popupHelper.chargeAsync(Me)},Be=Te=>{const{type:Ge,key:ue,marketTemplateSource:Me}=Te;return{isRequestRecent:!0,projectUpperType:Ge,projectUpperCid:Me==null?void 0:Me.cid,itemCid:ue,from:"template-modal",isTrack:!0}};return{checkedResourceSet:D,currentResources:E,handleChangeCheckedResource:we,handleBySeparately:Ae,handleMemberClick:Oe,handleAddItems:()=>{const Te=new Map;J.forEach(ue=>{if(D.has(ue.key)){var Me;const Ze=re(ue),fe=(Me=Te.get(Ze))!=null?Me:[],it=Be(ue);Te.set(Ze,[...fe,{...ue,recent:it}])}});const Ge=[...Te.keys()].map(ue=>{const Me=h.get(ue);return[Te.get(ue),Me]});We({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),We({type:"entry:resources:quick:create:template",payload:{data:Ge}})},handleAddItemsAll:()=>{const Te=new Map;J.forEach(ue=>{var Me;const Ze=re(ue),fe=(Me=Te.get(Ze))!=null?Me:[],it=Be(ue);Te.set(Ze,[...fe,{...ue,recent:it}])});const Ge=[...Te.keys()].map(ue=>{const Me=h.get(ue);return[Te.get(ue),Me]});We({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),We({type:"entry:resources:quick:create:template",payload:{data:Ge}})},handleSelectAll:()=>{const Te=J==null?void 0:J.map(ue=>ue.key),Ge=new Set;J.forEach(ue=>{Ge.add(re(ue))}),m(new Set(Te)),ve(Ge)},handleClearAll:()=>{m(new Set)},handleOpenPreviewModal:Te=>{const Ge=J.map(Me=>Me.marketTemplateSource?{...Me}:{...Me,marketTemplateSource:O.get(Me==null?void 0:Me.marketTemplateCid)}),ue=Ge==null?void 0:Ge.find(Me=>Me.key===Te);We({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{type:"page",isOpen:!0,list:Ge,currentTemplate:ue}}})}}}},84877:(eo,ot,i)=>{"use strict";i.d(ot,{c:()=>rt});var a=i(95549),k=i(38502),M=i(3542),P=i(40867),C=i(53732),q=i.n(C);class Y{constructor(){(0,a.A)(this,"inputFocused",!1),(0,a.A)(this,"editorMouseDown",!1),(0,a.A)(this,"onEditorMouseDown",()=>{this.editorFocused=!0}),(0,a.A)(this,"onInputMouseDown",()=>{this.inputFocused=!0}),(0,a.A)(this,"isEditorBlur",Ge=>(Ge.target.tagName==="INPUT"||Ge.target.tagName==="LABEL"||Ge.target.tagName==="TEXTAREA")&&!this.editorFocused?(this.inputFocused=!1,!0):(Ge.target.tagName!=="INPUT"||Ge.target.tagName!=="LABEL"||Ge.target.tagName!=="TEXTAREA")&&!this.inputFocused?(this.editorFocused=!1,!0):!1),(0,a.A)(this,"isEditorFocused",()=>this.inputFocused?(this.inputFocused=!1,!1):!0),(0,a.A)(this,"isToolbarFocused",()=>this.editorFocused?(this.editorFocused=!1,!1):!0),(0,a.A)(this,"isInputFocused",()=>this.inputFocused)}}let J=[];const O={onKeyDown:Te=>{J.forEach(Ge=>{Ge(Te)})},registerCallBack:Te=>{J.push(Te)},deregisterCallBack:Te=>{J=J.filter(Ge=>Ge!==Te)}};let l;const D={open:()=>{l=!0},close:()=>{l=!1},isOpen:()=>l},E=Te=>Ge=>{if(!Te)return"";const ue=Ge.getData()&&Ge.getData().get("text-align");return ue?"rdw-"+ue+"-aligned-block":""};function f(Te,Ge){if(Te)for(const ue in Te)({}).hasOwnProperty.call(Te,ue)&&Ge(ue,Te[ue])}function h(Te,Ge){let ue=!1;if(Te){for(const Me in Te)if({}.hasOwnProperty.call(Te,Me)&&Ge===Me){ue=!0;break}}return ue}function S(Te){return!Te||!Te.trim()}function V(Te){return Object.prototype.toString.call(Te)==="[object Object]"}function We(Te,Ge){const ue=Object.keys(Te).filter(Ze=>Ge.indexOf(Ze)<0),Me={};return ue&&ue.length>0&&ue.forEach(Ze=>{Me[Ze]=Te[Ze]}),Me}function re(Te){Te.stopPropagation()}const we=(Te,Ge)=>ue=>{if(typeof Ge=="function"){const Me=Ge(ue,Te,Te.getEditorState);if(Me)return Me}},Ae=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Oe=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Be(Te){return String(Te).replace(Ae,"").match(Oe)?Te:"#"}var tt=i(72214);function Xe(Te,Ge,ue){Te.findEntityRanges(Me=>{const Ze=Me.getEntity();return Ze!==null&&ue.getEntity(Ze).getType()==="LINK"},Ge)}function ne(Te){return class extends k.Component{constructor(){super(...arguments),(0,a.A)(this,"state",{showPopOver:!1}),(0,a.A)(this,"openLink",()=>{const{entityKey:ue,contentState:Me}=this.props,{url:Ze}=Me.getEntity(ue).getData(),fe=window.open(Be(Ze),"blank");fe&&fe.focus()}),(0,a.A)(this,"toggleShowPopOver",()=>{const ue=!this.state.showPopOver;this.setState({showPopOver:ue})})}render(){const{children:ue,entityKey:Me,contentState:Ze}=this.props,{url:fe,targetOption:it}=Ze.getEntity(Me).getData();return(0,tt.jsx)("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver,children:(0,tt.jsx)("a",{href:Be(fe),target:it,children:ue})})}}}const lt=Te=>({strategy:Xe,component:ne(Te)});class rt extends k.Component{constructor(Ge){super(Ge),(0,a.A)(this,"onEditorBlur",()=>{this.setState({editorFocused:!1})}),(0,a.A)(this,"onEditorFocus",Ze=>{const{onFocus:fe}=this.props;this.setState({editorFocused:!0});const it=this.focusHandler.isEditorFocused();fe&&it&&fe(Ze)}),(0,a.A)(this,"onEditorMouseDown",Ze=>{Ze.button===2||this.focusHandler.onEditorMouseDown()}),(0,a.A)(this,"keyBindingFn",Ze=>{if(Ze.key==="Tab"){const{onTab:fe}=this.props;if(!fe||!fe(Ze)){const it=(0,P.ar)(this.state.editorState,Ze.shiftKey?-1:1,4);it&&it!==this.state.editorState&&(this.onChange(it),Ze.preventDefault())}return null}return(Ze.key==="ArrowUp"||Ze.key==="ArrowDown")&&D.isOpen()&&Ze.preventDefault(),(0,M.K6)(Ze)}),(0,a.A)(this,"onWrapperBlur",Ze=>{const{onBlur:fe}=this.props;fe&&this.focusHandler.isEditorBlur(Ze)&&fe(Ze,this.getEditorState())}),(0,a.A)(this,"onChange",Ze=>{const{readOnly:fe,onEditorStateChange:it}=this.props;!fe&&!((0,P.iG)(Ze)==="atomic"&&Ze.getSelection().isCollapsed)&&(it&&it(Ze,this.props.wrapperId),h(this.props,"editorState")?this.afterChange(Ze):this.setState({editorState:Ze},this.afterChange(Ze)))}),(0,a.A)(this,"setWrapperReference",Ze=>{this.props.editorRef&&this.props.editorRef(Ze),this.wrapper=Ze}),(0,a.A)(this,"setEditorReference",Ze=>{this.editor=Ze}),(0,a.A)(this,"getCompositeDecorator",()=>{const Ze=[...this.props.customDecorators||[],lt({})];return new M.t8(Ze)}),(0,a.A)(this,"getWrapperRef",()=>this.wrapper),(0,a.A)(this,"getEditorState",()=>this.state?this.state.editorState:null),(0,a.A)(this,"afterChange",Ze=>{setTimeout(()=>{const{onChange:fe,onContentStateChange:it}=this.props;fe&&fe((0,M.dM)(Ze.getCurrentContent())),it&&it((0,M.dM)(Ze.getCurrentContent()))})}),(0,a.A)(this,"isReadOnly",()=>this.props.readOnly),(0,a.A)(this,"createEditorState",Ze=>{let fe;if(h(this.props,"editorState"))this.props.editorState&&(fe=M.$t.set(this.props.editorState,{decorator:Ze}));else if(h(this.props,"defaultEditorState"))this.props.defaultEditorState&&(fe=M.$t.set(this.props.defaultEditorState,{decorator:Ze}));else if(h(this.props,"contentState")){if(this.props.contentState){const it=(0,M.Ot)(this.props.contentState);fe=M.$t.createWithContent(it,Ze),fe=M.$t.moveSelectionToEnd(fe)}}else if(h(this.props,"defaultContentState")||h(this.props,"initialContentState")){let it=this.props.defaultContentState||this.props.initialContentState;it&&(it=(0,M.Ot)(it),fe=M.$t.createWithContent(it,Ze),fe=M.$t.moveSelectionToEnd(fe))}return fe||(fe=M.$t.createEmpty(Ze)),fe}),(0,a.A)(this,"filterEditorProps",Ze=>We(Ze,["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","editorClassName","wrapperClassName","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"])),(0,a.A)(this,"getStyleMap",Ze=>({...(0,P.RM)(),...Ze.customStyleMap})),(0,a.A)(this,"changeEditorState",Ze=>{const fe=(0,M.Ot)(Ze);let{editorState:it}=this.state;return it=M.$t.push(it,fe,"insert-characters"),it=M.$t.moveSelectionToEnd(it),it}),(0,a.A)(this,"focusEditor",()=>{setTimeout(()=>{var Ze;(Ze=this.editor)==null||Ze.focus()})}),(0,a.A)(this,"handleKeyCommand",Ze=>!1),(0,a.A)(this,"handleReturn",Ze=>{if(D.isOpen())return!0;const{editorState:fe}=this.state,it=(0,P.h_)(fe,Ze);return it?(this.onChange(it),!0):!1}),(0,a.A)(this,"handlePastedTextFn",(Ze,fe)=>{const{editorState:it}=this.state,{handlePastedText:et}=this.props;return et?et(Ze,fe,it,this.onChange):!1}),(0,a.A)(this,"preventDefault",Ze=>{Ze.target.tagName==="INPUT"||Ze.target.tagName==="LABEL"||Ze.target.tagName==="TEXTAREA"?this.focusHandler.onInputMouseDown():Ze.preventDefault()});const ue=Ge.wrapperId?Ge.wrapperId:Math.floor(Math.random()*1e4);this.wrapperId="rdw-wrapper-"+ue,this.focusHandler=new Y,this.blockRendererFn=we({isReadOnly:this.isReadOnly,getEditorState:this.getEditorState,onChange:this.onChange},Ge.customBlockRenderFunc),this.editorProps=this.filterEditorProps(Ge),this.customStyleMap=this.getStyleMap(Ge),this.compositeDecorator=this.getCompositeDecorator();const Me=this.createEditorState(this.compositeDecorator);(0,P.Mn)(Me),this.state={editorState:Me,editorFocused:!1}}componentDidCatch(){this.forceUpdate()}componentDidUpdate(Ge){if(Ge===this.props)return;const ue={},{editorState:Me,contentState:Ze}=this.props;if(h(this.props,"editorState")&&Me!==Ge.editorState)Me?ue.editorState=M.$t.set(Me,{decorator:this.compositeDecorator}):ue.editorState=M.$t.createEmpty(this.compositeDecorator);else if(h(this.props,"contentState")&&Ze!==Ge.contentState)if(Ze){const fe=this.changeEditorState(Ze);fe&&(ue.editorState=fe)}else ue.editorState=M.$t.createEmpty(this.compositeDecorator);(Ge.editorState!==Me||Ge.contentState!==Ze)&&(0,P.Mn)(ue.editorState),Object.keys(ue).length&&this.setState(ue),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}render(){const{editorState:Ge}=this.state,{editorClassName:ue,wrapperClassName:Me,editorStyle:Ze,wrapperStyle:fe,ariaLabel:it,canBlockAlign:et=!1,lhVersion:Ut}=this.props;return(0,tt.jsx)("div",{id:this.wrapperId,className:q()(Me,"rdw-editor-wrapper"),style:fe,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper",children:(0,tt.jsx)("div",{ref:this.setWrapperReference,className:q()(ue,"rdw-editor-main"),style:Ze,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:O.onKeyDown,onMouseDown:this.onEditorMouseDown,children:(0,tt.jsx)(M.KE,{ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:Ge,onChange:this.onChange,blockStyleFn:E(et),customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:it||"rdw-editor",blockRenderMap:P.qq,lhVersion:Ut,...this.editorProps})})})}}},85657:eo=>{const ot=O=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[O.APOS_STRING_MODE,O.QUOTE_STRING_MODE]}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],M=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],P=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(O){return O?typeof O=="string"?O:O.source:null}function q(O){return Y("(?=",O,")")}function Y(){for(var O=arguments.length,l=new Array(O),D=0;D<O;D++)l[D]=arguments[D];return l.map(E=>C(E)).join("")}function J(O){const l=ot(O),D={className:"built_in",begin:/[\w-]+(?=\()/},m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},E="and or not only",f=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",S=[O.APOS_STRING_MODE,O.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[O.C_BLOCK_COMMENT_MODE,m,O.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+k.join("|")+")"},{begin:"::("+M.join("|")+")"}]},{className:"attribute",begin:"\\b("+P.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[l.HEXCOLOR,l.IMPORTANT,O.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},D]},{begin:q(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:a.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,O.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b"}]}}eo.exports=J},86102:eo=>{/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/(function(){"use strict";var ot=typeof window<"u"&&typeof window.document<"u"?window.document:{},i=eo.exports,a=function(){for(var P,C=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],q=0,Y=C.length,J={};q<Y;q++)if(P=C[q],P&&P[1]in ot){for(q=0;q<P.length;q++)J[C[0][q]]=P[q];return J}return!1}(),k={change:a.fullscreenchange,error:a.fullscreenerror},M={request:function(P,C){return new Promise((function(q,Y){var J=(function(){this.off("change",J),q()}).bind(this);this.on("change",J),P=P||ot.documentElement;var O=P[a.requestFullscreen](C);O instanceof Promise&&O.then(J).catch(Y)}).bind(this))},exit:function(){return new Promise((function(P,C){if(!this.isFullscreen){P();return}var q=(function(){this.off("change",q),P()}).bind(this);this.on("change",q);var Y=ot[a.exitFullscreen]();Y instanceof Promise&&Y.then(q).catch(C)}).bind(this))},toggle:function(P,C){return this.isFullscreen?this.exit():this.request(P,C)},onchange:function(P){this.on("change",P)},onerror:function(P){this.on("error",P)},on:function(P,C){var q=k[P];q&&ot.addEventListener(q,C,!1)},off:function(P,C){var q=k[P];q&&ot.removeEventListener(q,C,!1)},raw:a};if(!a){i?eo.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(M,{isFullscreen:{get:function(){return!!ot[a.fullscreenElement]}},element:{enumerable:!0,get:function(){return ot[a.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!ot[a.fullscreenEnabled]}}}),i?eo.exports=M:window.screenfull=M})()},88124:(eo,ot,i)=>{"use strict";i.d(ot,{Eb:()=>Y,Vy:()=>h,aP:()=>We,lB:()=>l,nm:()=>O,sA:()=>E});var a=i(61972),k=i(48150);const M=re=>({borderColor:re.hoverBorderColor,backgroundColor:re.hoverBg}),P=re=>({color:re.colorTextDisabled,backgroundColor:re.colorBgContainerDisabled,borderColor:re.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},M((0,k.oX)(re,{hoverBorderColor:re.colorBorder,hoverBg:re.colorBgContainerDisabled})))}),C=(re,ve)=>({background:re.colorBgContainer,borderWidth:re.lineWidth,borderStyle:re.lineType,borderColor:ve.borderColor,"&:hover":{borderColor:ve.hoverBorderColor,backgroundColor:re.hoverBg},"&:focus, &:focus-within":{borderColor:ve.activeBorderColor,boxShadow:ve.activeShadow,outline:0,backgroundColor:re.activeBg}}),q=(re,ve)=>({["&"+re.componentCls+"-status-"+ve.status+":not("+re.componentCls+"-disabled)"]:Object.assign(Object.assign({},C(re,ve)),{[re.componentCls+"-prefix, "+re.componentCls+"-suffix"]:{color:ve.affixColor}}),["&"+re.componentCls+"-status-"+ve.status+re.componentCls+"-disabled"]:{borderColor:ve.borderColor}}),Y=(re,ve)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},C(re,{borderColor:re.colorBorder,hoverBorderColor:re.hoverBorderColor,activeBorderColor:re.activeBorderColor,activeShadow:re.activeShadow})),{["&"+re.componentCls+"-disabled, &[disabled]"]:Object.assign({},P(re))}),q(re,{status:"error",borderColor:re.colorError,hoverBorderColor:re.colorErrorBorderHover,activeBorderColor:re.colorError,activeShadow:re.errorActiveShadow,affixColor:re.colorError})),q(re,{status:"warning",borderColor:re.colorWarning,hoverBorderColor:re.colorWarningBorderHover,activeBorderColor:re.colorWarning,activeShadow:re.warningActiveShadow,affixColor:re.colorWarning})),ve)}),J=(re,ve)=>({["&"+re.componentCls+"-group-wrapper-status-"+ve.status]:{[re.componentCls+"-group-addon"]:{borderColor:ve.addonBorderColor,color:ve.addonColor}}}),O=re=>({"&-outlined":Object.assign(Object.assign(Object.assign({[re.componentCls+"-group"]:{"&-addon":{background:re.addonBg,border:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},J(re,{status:"error",addonBorderColor:re.colorError,addonColor:re.colorErrorText})),J(re,{status:"warning",addonBorderColor:re.colorWarning,addonColor:re.colorWarningText})),{["&"+re.componentCls+"-group-wrapper-disabled"]:{[re.componentCls+"-group-addon"]:Object.assign({},P(re))}})}),l=(re,ve)=>{const{componentCls:we}=re;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&"+we+"-disabled, &[disabled]"]:{color:re.colorTextDisabled,cursor:"not-allowed"},["&"+we+"-status-error"]:{"&, & input, & textarea":{color:re.colorError}},["&"+we+"-status-warning"]:{"&, & input, & textarea":{color:re.colorWarning}}},ve)}},D=(re,ve)=>{var we;return{background:ve.bg,borderWidth:re.lineWidth,borderStyle:re.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(we=ve==null?void 0:ve.inputColor)!==null&&we!==void 0?we:"unset"},"&:hover":{background:ve.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:ve.activeBorderColor,backgroundColor:re.activeBg}}},m=(re,ve)=>({["&"+re.componentCls+"-status-"+ve.status+":not("+re.componentCls+"-disabled)"]:Object.assign(Object.assign({},D(re,ve)),{[re.componentCls+"-prefix, "+re.componentCls+"-suffix"]:{color:ve.affixColor}})}),E=(re,ve)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D(re,{bg:re.colorFillTertiary,hoverBg:re.colorFillSecondary,activeBorderColor:re.activeBorderColor})),{["&"+re.componentCls+"-disabled, &[disabled]"]:Object.assign({},P(re))}),m(re,{status:"error",bg:re.colorErrorBg,hoverBg:re.colorErrorBgHover,activeBorderColor:re.colorError,inputColor:re.colorErrorText,affixColor:re.colorError})),m(re,{status:"warning",bg:re.colorWarningBg,hoverBg:re.colorWarningBgHover,activeBorderColor:re.colorWarning,inputColor:re.colorWarningText,affixColor:re.colorWarning})),ve)}),f=(re,ve)=>({["&"+re.componentCls+"-group-wrapper-status-"+ve.status]:{[re.componentCls+"-group-addon"]:{background:ve.addonBg,color:ve.addonColor}}}),h=re=>({"&-filled":Object.assign(Object.assign(Object.assign({[re.componentCls+"-group-addon"]:{background:re.colorFillTertiary,"&:last-child":{position:"static"}}},f(re,{status:"error",addonBg:re.colorErrorBg,addonColor:re.colorErrorText})),f(re,{status:"warning",addonBg:re.colorWarningBg,addonColor:re.colorWarningText})),{["&"+re.componentCls+"-group-wrapper-disabled"]:{[re.componentCls+"-group"]:{"&-addon":{background:re.colorFillTertiary,color:re.colorTextDisabled},"&-addon:first-child":{borderInlineStart:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder,borderTop:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder,borderBottom:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder},"&-addon:last-child":{borderInlineEnd:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder,borderTop:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder,borderBottom:(0,a.zA)(re.lineWidth)+" "+re.lineType+" "+re.colorBorder}}}})}),S=(re,ve)=>({background:re.colorBgContainer,borderWidth:(0,a.zA)(re.lineWidth)+" 0",borderStyle:re.lineType+" none",borderColor:"transparent transparent "+ve.borderColor+" transparent",borderRadius:0,"&:hover":{borderColor:"transparent transparent "+ve.borderColor+" transparent",backgroundColor:re.hoverBg},"&:focus, &:focus-within":{borderColor:"transparent transparent "+ve.borderColor+" transparent",outline:0,backgroundColor:re.activeBg}}),V=(re,ve)=>({["&"+re.componentCls+"-status-"+ve.status+":not("+re.componentCls+"-disabled)"]:Object.assign(Object.assign({},S(re,ve)),{[re.componentCls+"-prefix, "+re.componentCls+"-suffix"]:{color:ve.affixColor}}),["&"+re.componentCls+"-status-"+ve.status+re.componentCls+"-disabled"]:{borderColor:"transparent transparent "+ve.borderColor+" transparent"}}),We=(re,ve)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(re,{borderColor:re.colorBorder,hoverBorderColor:re.hoverBorderColor,activeBorderColor:re.activeBorderColor,activeShadow:re.activeShadow})),{["&"+re.componentCls+"-disabled, &[disabled]"]:{color:re.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:"transparent transparent "+re.colorBorder+" transparent"}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),V(re,{status:"error",borderColor:re.colorError,hoverBorderColor:re.colorErrorBorderHover,activeBorderColor:re.colorError,activeShadow:re.errorActiveShadow,affixColor:re.colorError})),V(re,{status:"warning",borderColor:re.colorWarning,hoverBorderColor:re.colorWarningBorderHover,activeBorderColor:re.colorWarning,activeShadow:re.warningActiveShadow,affixColor:re.colorWarning})),ve)})},88656:(eo,ot,i)=>{"use strict";i.d(ot,{X:()=>tt});var a=i(38502),k=i(18381),M=i(53732),P=i.n(M),C=i(12211),q=i(21066),Y=i(87332),J=i(78301),O=i(25067),l=i(17307),D=i(94590),m=i(64580),E=i(70933),f=i(67052),h=i(81973),S=i(28173),V=i(10472),We=i(96986),re=i(77709),ve=i(67588),we=i(60651),Ae=i(78915),Oe=i(78661),Be=i(72214);const tt=(0,a.memo)(()=>{var ne;const lt=(0,k.wA)(),{onlyView:rt,isLeftShow:Te,isShowRightPanel:Ge,isShowCommentInCanvas:ue,isShowMultiCursor:Me,fullScreenMode:Ze,canToggleSticky:fe,isShowSticky:it,isCommunityPreview:et,isEmbedV2Preview:Ut,isHtmlZipPreview:G,isEditingCombo:Ht,isEmptyScreen:Tt,currentProject:Vt,isDisabledComment:He}=(0,k.d4)(Xe),rn=(0,Be.jsx)(l.C,{name:"toolbar/selected",className:"selected-icon"}),Lt=()=>{lt({type:"entry:update:preference",payload:{isShowMultiCursor:!Me}}),rt?(0,m.A)({operation_type:m.D.CollaborationPointer}):(0,D.kX)({operation_type:D.mV.CollaborationPointer})},jt=()=>{lt({type:"entry:toggle:left-nav-panel"}),rt?(0,m.A)({operation_type:m.D.ShowLeftPanel}):(0,D.kX)({operation_type:D.mV.ShowLeftPanel})},mt=()=>{lt({type:"entry:toggle:right-panel"}),rt?(0,m.A)({operation_type:m.D.ShowRightPanel}):(0,D.kX)({operation_type:D.mV.ShowRightPanel})},Jn=()=>{lt({type:"entry:isShowSticky:toggle"}),rt?(0,m.A)({operation_type:m.D.Sticky}):(0,D.kX)({operation_type:D.mV.Sticky})},o=()=>{lt({type:"comment:toggle:isShowCommentInCanvas"}),rt?(0,m.A)({operation_type:m.D.Comment}):(0,D.kX)({operation_type:D.mV.Comment})};return(0,Be.jsx)(Y.A,{isDisabled:Tt,className:P()("save-tips-dropdown",{isEmbedV2Preview:Ut},{NotFullScreen:!Ze},{isCommunity:et}),renderOpener:(0,Be.jsx)(O.A,{className:"fixed-layout-position",name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),onClickIcon:()=>(0,D.kX)({operation_type:D.mV.Layout}),renderMenu:(0,Be.jsx)(J.Sv,{className:P()("onlyRead",""+((Vt==null?void 0:Vt.category)||""),{fullScreen:Ze},{isCommunity:et},{isEmbedV2Preview:Ut}),position:{top:46,left:void 0},onClose:()=>({}),style:{right:212},children:et||Ut?(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!fe,icon:it?rn:void 0,onClick:Jn})}):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.left_panel,className:"SelectOption",disabled:!1,icon:Te?rn:void 0,onClick:jt,hotKeyText:Oe.V.showLeftPanel}),(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.right_panel,className:"SelectOption",disabled:!fe&&He,icon:Ge?rn:void 0,onClick:mt,hotKeyText:Oe.V.showRightPanel}),(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!fe,icon:it?rn:void 0,onClick:Jn}),!Ht&&((ne=MB)==null||(ne=ne.user)==null?void 0:ne.id)&&(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.comment,className:"SelectOption",disabled:He,icon:!He&&ue?rn:void 0,onClick:o}),!G&&(0,Be.jsx)(q.Dr,{text:I18N.PreferenceBar.multi_user_mouse_pointer,className:"SelectOption",disabled:!1,icon:Me?rn:void 0,onClick:Lt})]})})})}),Xe=(0,C.Mz)([we.jx,ve.qT,ve.O4,f.Xf,ve.gf,h.UI,ve.lU,we.T7,re.$7,re.I9,we.pH,we.rg,we.uu,E.PL,V.r,S.C,We.EH,E.z$],(ne,lt,rt,Te,Ge,ue,Me,Ze,fe,it,et,Ut,G,Ht,Tt,Vt,He,rn)=>{let{isEditingCombo:Lt}=Tt,{isEmptyScreen:jt}=Vt;const mt=ne===Ae.qi.OnlyView,Jn=mt&&(rn==null?void 0:rn.comment_permission)==="off";return{onlyView:mt,showRuler:lt,theme:rt,isLeftShow:Te,isShowReferLine:Ge,isShowRightPanel:ue,isShowMultiCursor:Me,fullScreenMode:Ze,isShowSticky:fe,canToggleSticky:it,isCommunityPreview:et,isEmbedV2Preview:Ut,isHtmlZipPreview:G,isEditingCombo:Lt,isEmptyScreen:jt,isShowCommentInCanvas:He,currentProject:Ht,isDisabledComment:Jn}})},88849:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>V});var a=i(95549),k=i(38502),M=i(18381),P=i(12211),C=i(53732),q=i.n(C),Y=i(16454),J=i(79150),O=i(83199),l=i(98267),D=i(48281),m=i(67787);const E=m.Ay.div.withConfig({displayName:"styles__StyledPaging",componentId:"sc-1mu84yq-0"})(["position:absolute;display:flex;padding:0 6px;height:40px;left:50%;transform:translateX(-50%);bottom:24px;background:",";box-shadow:0 2px 6px rgba(39,54,78,0.08);display:flex;align-items:center;justify-content:center;border-radius:6px;pointer-events:auto;z-index:1;gap:6px;.next{transform:rotate(180deg);}.page{font-size:12px;color:",";}.divider{border-left:1px solid ",";height:24px;}.comment,.homepage,.prev,.next,.back{width:28px;height:28px;border-radius:6px;}.svg-icon{[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}.comment{cursor:pointer;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:24px;height:24px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";}}"],We=>We.theme.color_bg_white,We=>We.theme.color_text_L1,We=>We.theme.color_bg_border_02,We=>We.theme.color_text_disabled01,We=>We.theme.color_text_L1);var f=i(72214);class h extends k.PureComponent{constructor(){super(...arguments),(0,a.A)(this,"handleHomePage",()=>{const{activeCanvasKey:re,history:ve,dispatch:we}=this.props,Ae=ve.at(-1);if(!Ae)return;const[Oe,Be]=(0,l.Lf)(Ae);re!==Be&&(we({type:"entry:runner:activate:canvas",payload:{pageKey:Oe,canvasKey:Be}}),we({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})),(0,D.v)({operation_type:D.$.BackHome})}),(0,a.A)(this,"handleBack",re=>{re||(this.props.dispatch({type:"entry:runner:back-to-prev-canvas"}),this.props.dispatch({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),(0,D.v)({operation_type:D.$.Back}))}),(0,a.A)(this,"handleGoto",re=>{const{dispatch:ve}=this.props;ve({type:"entry:preview:switch:page",payload:{isPrev:re}}),(0,D.v)({operation_type:re?D.$.previousPage:D.$.NextPage})})}render(){const{activeCanvasKey:re,canvasKeyList:ve,history:we,isPanelPreviewMode:Ae}=this.props;if(Ae)return null;const Oe=ve==null?void 0:ve.length,Be=ve.indexOf(re)+1,tt=(we==null?void 0:we.length)<=1,Xe=[0,1].includes(Be),ne=[0,Oe].includes(Be);return(0,f.jsxs)(E,{children:[(0,f.jsx)(O.A,{content:I18N.w.home,direction:"up",children:(0,f.jsx)(J.A,{name:"toolbar/preview/homepage",className:"homepage",onClick:this.handleHomePage})}),(0,f.jsx)(O.A,{content:I18N.w.prev_page,direction:"up",children:(0,f.jsx)(J.A,{name:"toolbar/preview/arrow",className:q()("prev",{disabled:Xe}),onClick:Xe?void 0:()=>this.handleGoto(!0)})}),(0,f.jsxs)("div",{className:"page",children:[Be," / ",Oe]}),(0,f.jsx)(O.A,{content:I18N.w.next_page,direction:"up",children:(0,f.jsx)(J.A,{name:"toolbar/preview/arrow",className:q()("next",{disabled:ne}),onClick:ne?void 0:()=>this.handleGoto(!1)})}),(0,f.jsx)(O.A,{content:I18N.pPreviewToolbar.back,direction:"up",children:(0,f.jsx)(J.A,{name:"toolbar/preview/back",className:q()("back",{disabled:tt}),onClick:()=>this.handleBack(tt)})})]})}}const S=(0,P.Mz)([Y.mf,Y.lR,Y.KR],(We,re,ve)=>{let{activeCanvasKey:we,history:Ae}=We;return{activeCanvasKey:we,history:Ae,canvasKeyList:re,isPanelPreviewMode:ve}}),V=(0,M.Ng)(We=>S(We))(h)},88878:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M17.6486 10.2282C17.8716 10.4417 17.9885 10.6766 17.9991 10.9328C18.0097 11.189 17.9248 11.4025 17.7442 11.5733C17.5423 11.7547 17.3086 11.8401 17.043 11.8295C16.7775 11.8188 16.565 11.7441 16.4057 11.6053C16.3525 11.5626 16.1905 11.4131 15.9196 11.1569C15.6488 10.9008 15.3248 10.5938 14.9476 10.2362C14.5705 9.87862 14.1668 9.49433 13.7366 9.08334C13.3064 8.67236 12.9 8.28539 12.5176 7.92244C12.1352 7.55949 11.8059 7.24458 11.5297 6.97771C11.2535 6.71083 11.0782 6.54537 11.0038 6.48132C10.6639 6.17175 10.3293 6.0223 9.99994 6.03297C9.67062 6.04365 9.34662 6.1931 9.02792 6.48132C8.92169 6.5774 8.72251 6.76154 8.43038 7.03375C8.13824 7.30596 7.80096 7.62354 7.41853 7.98649C7.0361 8.34944 6.63242 8.7284 6.2075 9.12337C5.78257 9.51834 5.38952 9.88663 5.02834 10.2282C4.66715 10.5698 4.35643 10.8607 4.09616 11.1009C3.8359 11.3411 3.67921 11.4825 3.62609 11.5252C3.46674 11.6533 3.25428 11.7227 2.98871 11.7334C2.72313 11.7441 2.49473 11.664 2.30352 11.4932C2.09105 11.3011 1.99014 11.0689 2.00076 10.7967C2.01138 10.5245 2.10168 10.3083 2.27165 10.1482C2.33539 10.0841 2.53191 9.89731 2.86123 9.58773C3.19054 9.27816 3.5836 8.90987 4.04039 8.48287C4.49718 8.05588 4.9885 7.59685 5.51434 7.10581C6.04018 6.61476 6.52885 6.15574 6.98033 5.72874C7.43181 5.30174 7.81955 4.93612 8.14355 4.63189C8.46756 4.32765 8.65612 4.14884 8.70923 4.09547C9.11291 3.7005 9.54846 3.50034 10.0159 3.495C10.4833 3.48967 10.8817 3.64712 11.211 3.96737C11.2747 4.02075 11.4075 4.14618 11.6093 4.34366C11.8112 4.54115 12.0582 4.78134 12.3503 5.06422C12.6424 5.34711 12.9691 5.66469 13.3303 6.01696C13.6915 6.36923 14.058 6.72418 14.4298 7.08179C14.8016 7.4394 15.1654 7.79434 15.5213 8.14661C15.8772 8.49889 16.2038 8.81647 16.5013 9.09935C16.7987 9.38224 17.0483 9.62509 17.2502 9.82792L17.6486 10.2282ZM9.02792 7.90643C9.2935 7.6609 9.61219 7.53014 9.984 7.51412C10.3558 7.49811 10.6904 7.62888 10.9879 7.90643C11.0198 7.93845 11.1154 8.02919 11.2747 8.17864L11.8802 8.73907C12.1139 8.96325 12.3769 9.21411 12.669 9.49166C12.9611 9.76921 13.2612 10.0468 13.5693 10.3243C14.281 10.9862 15.0778 11.7281 15.9595 12.55V15.5924C15.9595 15.8272 15.8718 16.0354 15.6966 16.2169C15.5213 16.3983 15.2849 16.4944 14.9875 16.5051H11.9758V14.0232C11.9758 13.6709 11.8112 13.4948 11.4819 13.4948H8.43834C8.25775 13.4948 8.13293 13.5481 8.06388 13.6549C7.99483 13.7616 7.96031 13.8844 7.96031 14.0232C7.96031 14.0872 7.95765 14.25 7.95234 14.5116C7.94703 14.7731 7.94437 15.0533 7.94437 15.3522V16.5051H5.02834C4.72027 16.5051 4.47594 16.4357 4.29534 16.2969C4.11475 16.1582 4.02446 15.9607 4.02446 15.7045V12.518C4.89555 11.7174 5.68697 10.9915 6.39871 10.3403C6.69616 10.0628 6.99361 9.78789 7.29105 9.51568C7.5885 9.24346 7.85939 8.99527 8.10372 8.7711C8.34805 8.54692 8.55254 8.35744 8.7172 8.20266C8.88186 8.04787 8.98543 7.94913 9.02792 7.90643Z",fill:"#B7B9BD"}))})},89759:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>C});var a=i(67787),k=i(72214);const M=q=>{let{outline:Y,color:J,offset:O,className:l,style:D,children:m,zIndex:E,outlineWidth:f}=q;const{top:h,left:S,width:V,height:We}=Y,re={...D,top:h,left:S,width:V,height:We,zIndex:E};return J&&(re.outlineColor=J),typeof O=="number"&&(re.outlineOffset=O),typeof f=="number"&&(re.outlineWidth=f),(0,k.jsx)(P,{className:l,style:re,"data-editor-ui":"outline-box",children:m})},P=a.Ay.div.withConfig({displayName:"OutlineBox__StyledOutlineBox",componentId:"sc-pfn1gk-0"})(["position:absolute;outline-width:1px;outline-style:solid;outline-color:",";outline-offset:-1px;pointer-events:none;box-sizing:border-box;"],q=>q.theme.color_proto),C=M},89868:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.57518 10.3084C6.57518 10.7034 6.11161 10.9163 5.81197 10.6589L2.19537 7.55194C1.98364 7.37005 1.98028 7.04339 2.18823 6.85719L5.80484 3.61875C6.10247 3.35224 6.57518 3.56348 6.57518 3.963V4.80583C6.57518 5.06103 6.78206 5.26792 7.03727 5.26792H11.1387C11.3939 5.26792 11.6008 5.4748 11.6008 5.73001V8.57153C11.6008 8.82674 11.3939 9.03362 11.1387 9.03362H7.03727C6.78206 9.03362 6.57518 9.2405 6.57518 9.49571V10.3084ZM12.8466 14.5068C12.8466 14.2516 12.6397 14.0447 12.3845 14.0447H8.29754C8.04233 14.0447 7.83545 13.8378 7.83545 13.5826V10.7411C7.83545 10.4859 8.04233 10.279 8.29754 10.279H12.3845C12.6397 10.279 12.8466 10.0721 12.8466 9.81691V8.69617C12.8466 8.30296 13.3065 8.08943 13.6069 8.34314L17.8017 11.886C18.0154 12.0665 18.021 12.3939 17.8137 12.5816L13.6189 16.3796C13.3218 16.6486 12.8466 16.4378 12.8466 16.0371V14.5068Z",fill:"#B7B9BD"}))})},89960:(eo,ot,i)=>{"use strict";i.d(ot,{L:()=>Y});var a=i(38502),k=i(77595),M=i(72214);function P(J){var O;const{isShowCompletedComment:l,dispatch:D,selected:m,viewType:E}=J;return(0,M.jsxs)("div",{className:"filter-header",children:[(0,M.jsx)("h3",{children:I18N.Comment.comment}),((O=MB)==null||(O=O.user)==null?void 0:O.id)&&(0,M.jsx)(k.A,{selected:m,isShowCompletedComment:l,viewType:E,dispatch:D})]})}var C=i(54222),q=i(49420);const Y=J=>{const{commentList:O,activeCommentCid:l,viewType:D,commentPanelWidth:m,isHtmlZipPreview:E,selected:f,isShowCompletedComment:h,theme:S,dispatch:V}=J;return(0,M.jsxs)(q.A,{className:"comment-panel",style:{width:m},children:[(0,M.jsx)(P,{isShowCompletedComment:h,selected:f,viewType:D,dispatch:V}),(0,M.jsx)(C.K,{activeCommentCid:l,commentList:O,viewType:D,commentPanelWidth:m,isHtmlZipPreview:E,theme:S})]})}},90243:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_74)"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_74)",fillOpacity:"0.68"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_74)",fillOpacity:"0.7"}),a.createElement("g",{filter:"url(#filter0_d_941_74)"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("mask",{id:"mask0_941_74",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("g",{mask:"url(#mask0_941_74)"},a.createElement("path",{d:"M7.25 7.62511V5.12506L6.43054 2.25701C6.43054 2.25701 6.28336 1.91172 5.89453 1.87109C5.61401 1.84179 5.10547 1.79297 5.10547 1.79297C4.55859 1.60547 4.30469 1.44922 3.25 1.125L1.75 2.6251L3.25035 7.62511H7.25Z",fill:"url(#paint3_linear_941_74)"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_d_941_74",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.47 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_74"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_74",result:"shape"})),a.createElement("linearGradient",{id:"paint0_linear_941_74",x1:"6.54545",y1:"1.59583",x2:"1.09229",y2:"7.30091",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#131210"}),a.createElement("stop",{offset:"1",stopColor:"#515459"})),a.createElement("linearGradient",{id:"paint1_linear_941_74",x1:"11.6786",y1:"10",x2:"8.13035",y2:"9.36952",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#682B00"}),a.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_941_74",x1:"11.0294",y1:"0.980891",x2:"7.84283",y2:"3.58088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF8DF"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_941_74",x1:"6.75",y1:"4.125",x2:"6.75",y2:"7.625",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE485",stopOpacity:"0.6"}),a.createElement("stop",{offset:"1",stopColor:"#FFE485",stopOpacity:"0"}))))})},90853:(eo,ot,i)=>{"use strict";i.d(ot,{C:()=>q});var a=i(18381),k=i(67588),M=i(67787),P=i(20862),C=i(72214);const q=J=>{let{isShowAiButton:O=!0}=J;const l=(0,a.d4)(k.O4);return(0,C.jsxs)(Y,{className:"empty-content",children:[(0,C.jsx)("img",{src:"/mb-proto2/images/workspace/design/no_template_star_"+l+".svg",alt:""}),(0,C.jsx)("span",{className:"title",children:"\u6682\u65E0\u6A21\u677F"}),(0,C.jsx)("span",{className:"desc",children:"\u60A8\u53EF\u4EE5\u5728\u6A21\u677Ftab\u6216\u7D20\u6750\u5E7F\u573A\u6536\u85CF/\u8D2D\u4E70\u9875\u9762\u6587\u4EF6\uFF0C\u65B9\u4FBF\u60A8\u7EDF\u4E00\u7BA1\u7406\u548C\u4F7F\u7528"}),O&&(0,C.jsx)(P.l,{})]})},Y=M.Ay.div.withConfig({displayName:"MeEmpty__StyledMeEmpty",componentId:"sc-1i7923a-0"})(["&.empty-content{height:100%;display:flex;justify-content:center;align-items:center;width:180px;text-align:center;font-size:12px;flex-direction:column;margin:0 auto 100px;span{display:block;}svg{margin-bottom:20px;}.title{font-weight:500;line-height:16px;color:",";margin-bottom:10px;}.desc{font-weight:400;line-height:22px;color:",";}}"],J=>J.theme.color_text_L1,J=>J.theme.color_text_L3)},91429:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{clipPath:"url(#clip0_244_156)"},a.createElement("g",{filter:"url(#filter0_i_244_156)"},a.createElement("rect",{width:"28",height:"28",fill:"#00C691"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.4684 10.3942C21.8038 10.3818 22.1356 10.4698 22.4232 10.6474C22.6962 10.8146 22.905 11.0727 23.0148 11.3788C23.1246 11.6849 23.1287 12.0204 23.0265 12.3292L20.8411 18.7408C20.7876 18.881 20.6934 19.001 20.5712 19.0845C20.4491 19.1681 20.3049 19.2112 20.1582 19.2079H7.85417C7.70742 19.2112 7.56325 19.1681 7.44112 19.0845C7.31899 19.001 7.22479 18.881 7.17124 18.7408L5.89645 15.1321L4.9745 12.4109C4.87106 12.101 4.87581 11.7638 4.98793 11.457C5.10004 11.1502 5.31257 10.8929 5.58913 10.7292C5.88301 10.5359 6.22813 10.4411 6.5768 10.4579C6.92547 10.4746 7.26046 10.6021 7.53547 10.8226L9.81188 12.6328L12.555 6.98033C12.6915 6.70988 12.8995 6.48432 13.1552 6.32943C13.4108 6.17454 13.7037 6.09656 14.0005 6.10442C14.2961 6.10176 14.5864 6.18474 14.8381 6.34381C15.0898 6.50289 15.2926 6.73161 15.4232 7.00368L17.9842 12.6445L20.5338 10.7175C20.8081 10.519 21.1329 10.4067 21.4684 10.3942ZM8.76391 20.363H19.2354C19.4173 20.3861 19.5846 20.4768 19.706 20.618C19.8274 20.7591 19.8943 20.941 19.8943 21.1294C19.8943 21.3177 19.8274 21.4996 19.706 21.6408C19.5846 21.7819 19.4173 21.8726 19.2354 21.8957H8.76391C8.58205 21.8726 8.41469 21.7819 8.29333 21.6408C8.17197 21.4996 8.10499 21.3177 8.10499 21.1294C8.10499 20.941 8.17197 20.7591 8.29333 20.618C8.41469 20.4768 8.58205 20.3861 8.76391 20.363Z",fill:"url(#paint0_linear_244_156)"}))),a.createElement("defs",null,a.createElement("filter",{id:"filter0_i_244_156",x:"0",y:"0",width:"28",height:"28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.4305"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_244_156"})),a.createElement("linearGradient",{id:"paint0_linear_244_156",x1:"14.0002",y1:"6.10388",x2:"14.0002",y2:"21.8959",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"white"}),a.createElement("stop",{offset:"1",stopColor:"white"})),a.createElement("clipPath",{id:"clip0_244_156"},a.createElement("rect",{width:"28",height:"28",rx:"7",fill:"white"}))))})},91771:(eo,ot,i)=>{"use strict";i.d(ot,{E:()=>k});var a=i(83557);const k=async M=>{MB.safeLoading&&MB.safeLoading(I18N.dApis.save);const P=MB.getRootProject(),C={name:P.title,device:P.device,model:P.model,width:P.width,height:P.height,attr:P.attr};try{const{clientData:{upperCid:q}}=await(0,a.Nc)(rootSdk.fssDat.getFlatStore().getFlatTree(),M,C);location.href="/proto/design/"+q}catch(q){console.error("eTASAL",q)}}},91774:(eo,ot,i)=>{"use strict";i.d(ot,{T:()=>nh});var a=i(70933),k=i(25997),M=i(53940),P=i(20089),C=i(79770),q=i(13217);const Y=M.I,J={"entry:move:canvas":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{dx:b=0,dy:T=0}=x,L=A(),z=(0,a.ER)(L),W={x:z.x+b,y:z.y+T};u({type:"design:set:canvas:offset",payload:{offset:W}}),u({type:"entry:update:ruler"})},"entry:design:zoom:in":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.X_)(u),b=Y.findIndex(L=>L>x),T=Y[b]||Y[Y.length-1];A({type:"entry:set:scale",payload:{scale:T}})},"entry:design:zoom:out":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.X_)(u),b=Y.findIndex(L=>L>=x),T=Y[b-1]||Y[0];A({type:"entry:set:scale",payload:{scale:T}})},"entry:design:zoom:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{hotItem:x,mindKey:b}}=R;const T=A(),L=(0,k.UV)(T);if(!x)return;const z=document.querySelector('#canvas .group-list [data-cid="'+x.key+'"]')||document.querySelector('#mb-panel-edit-list [data-cid="'+x.key+'"]'),W=document.querySelector(".main-content");if(!z||!W)return;const X=z.getBoundingClientRect(),ee=W.getBoundingClientRect(),{leftSidePanelWidth:pe}=(0,q._)(!1),ye=M.xM,Ie=ee.left+pe,Ue=ee.top,Re=ee.width-pe-ye,ze=ee.height,st=X.left>=Ie&&X.right<=Ie+Re,xt=X.top>=Ue&&X.bottom<=Ue+ze;if(!st||!xt){let Nt=0,$t=0,An=0,zn=0;if(x.hotAttr.type===P.x.WMindNode&&b){const[Ea,wa]=(0,C.C0)(sdkStore,b,x.hotAttr),Ja=L.mindTrees.get(b),La=(Ja==null?void 0:Ja.getMindPosition())||{x:0,y:0},{w:Na,h:gr}=(Ja==null?void 0:Ja.getNodeSize(x.key))||{w:0,h:0};Nt=Na,$t=gr;const{x:Pi,y:_r}=(Ja==null?void 0:Ja.getNodePosition(x.key))||{x:0,y:0};An=Ea+La.x+Pi,zn=wa+La.y+_r}else{const[Ea,wa,Ja,La]=(0,C.C0)(sdkStore,x.key,x.hotAttr);Nt=Ja-Ea,$t=La-wa,An=Ea,zn=wa}const Qn=(0,a.X_)(T)/100,Sn=-Nt/2-An,Wo=-$t/2-zn,qo=Sn*Qn,ua=Wo*Qn;u({type:"current:update:state",payload:{currentScreenOriginOffset:{x:qo,y:ua}}}),u({type:"design:set:canvas:offset",payload:{offset:{x:qo,y:ua}}}),u({type:"entry:update:ruler"})}}};var O=i(79287),l=i.n(O),D=i(15515),m=i(93413),E=i(40625),f=i(29187),h=i(67052),S=i(4410),V=i(22835),We=i(30728),re=i(63902),ve=i(47695),we=i(63763),Ae=i(4235),Oe=i(24229),Be=i(21385);const tt={name:"wImage",zIndex:20,r:0,w:500,h:176,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}},Xe={name:"wImage",zIndex:20,r:0,w:380,h:134,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}};var ne=i(92272),lt=i(67588),rt=i(75908);const Te=B=>setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(m.c.GUIDE_NOVICE_V9_2408_STEP_1),B),Ge=()=>{if(MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_NOVICE_V9_2408_STEP_1))return null;const B=document.querySelector("."+m.c.GUIDE_NOVICE_V9_2408_STEP_1),R=document.querySelector(".widget-panel-container");if(!B||!R)return null;B.getAttribute("data-cid")==="\u6D41\u7A0B"?setTimeout(()=>(0,rt._)(B,R,()=>Te(200)),50):Te(200)};var ue=i(32060);const Me={"entry:initial:guide:type":async B=>{let{getState:R,dispatch:A}=B;const u=R(),{isExperience:x,isLoggedExperience:b}=(0,a.W4)(u);if(x||b)return;const T=(0,a.HW)(u),L=(0,a.wA)(u);if((0,lt.MZ)(u)==="recommend"){var X;!(0,ve.XM)()&&(X=(0,ve.yX)())!=null&&X.isCompleted&&setTimeout(()=>Ge(),200)}if(l()(T.created_at).isAfter("2023-08-17")&&!MB.commonGuideHelper.checkGuideHasShown(m.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)){const ye=L?L.created_at:T.solo_active_date;l()().isSame(ye,"day")&&MB.commonGuideHelper.markGuideAsRead(m.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)}const ee=(0,f.jN)(),pe=(0,D.Yt)(E.d,!0,D.qW.Boolean);if(ee!=null&&ee.isCompleted){pe||A({type:"update:taskList:isHide",payload:{isHide:!1}}),ee!=null&&ee.isShowTaskList&&A({type:"entry:show:taskList"});return}else ee!=null&&ee.isToShow&&(A({type:"update:taskList:isHide",payload:{isHide:!1}}),A({type:"update:taskList:isCollapse",payload:{isCollapse:!0}}));(0,ue.iX)(),(0,ve.rB)(u)},"entry:prepare:novice:guide:screen:data":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{mtResourceCid:x,marketTemplateKey:b,sceneTag:T}}=R;const L=A(),z=(0,a.X_)(L),W=(0,a.Ur)(L),ee=(0,h.fm)(L).get(x);if(!ee||!b)return;let pe=0,ye=!0;const Ie=(0,Be.VC)(T)==="PC";b.forEach(Ue=>{const Re=[Ue],{w:ze,h:st}=(0,S.lY)({sub:Re},ee);let{left:xt,top:Nt}=(0,V.u5)({width:ze,height:st,scale:z});Ie?(Nt+=pe,pe+=st+80):(xt+=pe,pe+=ze+80);const $t=We.Z.xy(xt,Nt),An=W==null?void 0:W.cid,zn=ee.saveSubtree(Re),lo=(0,re.BB)({data:zn,worldPos:$t,keyRndSup:An,currentPageKey:An});ye&&(u({type:"entry:select:items",payload:{cids:lo}}),ye=!1),u({type:"entry:refresh:link-list"})}),u({type:"entry:zoom:fit:scale:offset"}),u({type:"entry:show:guide:popup:panel",payload:{isGuidePC:Ie}})},"entry:show:guide:popup:panel":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isGuidePC:x}}=R;const b=(0,Ae.nE)(A());if(!b||b.length===0)return;const{key:T,hotAttr:{x:L,y:z,w:W,h:X}}=b[0],ee={left:L+W/2-10,top:z+X/2},pe={left:L+W/2-650,top:z+X/2+100},ye=(0,Oe.cF)("imgtip"),Ie={key:ye,hotAttr:{type:P.x.WImage,x:x?pe.left:ee.left,y:x?pe.top:ee.top,...x?tt:Xe,image:{imageFilter:"",imageClipType:"none",imageRectAspectRatio:3.15,imageRectR:0,imageRectCenterX:x?222.2:168.87,imageRectCenterY:x?80.83:61.43,imageRectWidth:x?506.46:384.91,imageRectHeight:x?161.62:122.83,imageRectOriginalWidth:780,imageRectOriginalHeight:248,imageFillType:"stretch",imageRef:(0,ne.q4)("\u5F15\u5BFC\u56FE\u7247","https://cdn.modao.cc/app_guide.png").key}},sub:[],sup:T};sdkStore.updateHotItem(Ie);const Ue=[{key:ye,hotAttr:{...Ie.hotAttr}}];u({type:"entry:widget:change",payload:{flatChgList:Ue,isCreateWidget:!0,shouldReBuildTree:!0}})},"entry:skip:novice:guide":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.Ur)(u),b=sdkStore.findAllTypeUnder(x==null?void 0:x.cid,"rResCanvas");if((b==null?void 0:b.length)!==0)return;const T=(0,we.gu)({type:P.x.Canvas,screen:x,attrs:{width:0,height:0}});A({type:"entry:batch:create:items",payload:{data:[{items:[T],width:T.w,height:T.h}],isSkipUpdateGuides:!0}}),A({type:"entry:zoom:fit:scale:offset"})},"entry:update:novice:guide:and:task":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{guideType:x,taskType:b}}=R;x&&(0,f.EG)(x),b&&u({type:"entry:update:guide:task",payload:{taskType:b}})},"entry:move:screen:right":B=>{var R,A;let{getState:u,dispatch:x}=B;const b=u(),T=(0,a.X_)(b),L=(0,a.ER)(b),z=(0,a.eo)(b),X=(R=(A=sdkStore.findAllTypeUnder(z,P.x.Canvas).pop())==null?void 0:A.key)!=null?R:null;if(X===null)return;const ee=sdkStore.getHotAABB(X),[pe,ye]=ee,Ue=(ye-pe)*(T/100),Re={x:L.x+Ue,y:L.y};x({type:"design:set:canvas:offset",payload:{offset:Re}})}};var Ze=i(19249),fe=i(18833);const it=async()=>{let B=null;try{const R=await(0,Ze.DE)("/api/library/v4/workspace_labels");R!=null&&R.keywords&&(B=R==null?void 0:R.keywords)}catch(R){(0,fe.$r)()}return B},et=async()=>{let B=[];try{const R=await(0,Ze.DE)("/api/web/v3/configuration/square_search_keywords");R!=null&&R.keywords&&(B=R==null?void 0:R.keywords.split(/[,]/))}catch(R){(0,fe.$r)()}return B};var Ut=i(93093),G=i(54190),Ht=i(8293),Tt=i(37860);const Vt={"entry:init:hotKeyWords":async B=>{let{dispatch:R,getState:A}=B;const u=A();if(!(0,h.t$)(u))try{const b=await et(),T=b.length>0?b.slice(0,5):[];R({type:"update:popups:state",payload:{hotKeyWords:T}}),R({type:"resources:update:popupLoaded",payload:{isHotKeyWordsLoaded:!0}})}catch(b){(0,Ut.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,Ut.Cp)(b)}},"entry:init:design:configurations":async B=>{let{dispatch:R,getState:A}=B;const u=A();if(!(0,h.RD)(u))try{const b=await(0,G.dC)(),T=(0,Tt.nh)(),L={...b,...T};(0,Ht.IP)(b),R({type:"widget-panel:update:state",payload:{sceToPLabelMap:L}});const z=await it();let W=[];z!=null&&z.screen_list&&(W=Object.keys(z==null?void 0:z.screen_list)),R({type:"page-panel:update:state",payload:{libraryFilterWords:W}}),R({type:"resources:update:popupLoaded",payload:{isFilterWordsLoaded:!0}})}catch(b){(0,Ut.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,Ut.Cp)(b)}}};var He=i(70248),rn=i(14084),Lt=i(60651),jt=i(24496),mt=i(50353),Jn=i(99917),o=i(78915),so=i(12410),Et=i(60312),Jt=i(30294),Ot=i(19396),dn=i.n(Ot),Ce=i(73662),Pt=i(65057);const Nn={"entry:screenContainer:selecting":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;const{target:b}=x;if(b.closest(".selection-handler")||b.closest(".gap-adjuster")||b.closest(".imageWrapperResizeBox")||b.closest(".line"))return;const T=A(),L=(0,Lt.jx)(T),z=(0,jt.WH)(T);!x.shiftKey&&!z&&setTimeout(()=>u({type:"entry:clear:selection"}),0),L!==o.qi.OnlyView&&u({type:"start:range:select",payload:{startX:x.clientX,startY:x.clientY}})},"entry:screenContainer:enter:editing:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=x==null?void 0:x.event,T=A(),z=(0,Lt.jx)(T)===o.qi.OnlyView,W=(0,Ae.p$)(T),X=(0,k.UV)(T),ee=(0,rn.j)(T),pe=(0,Ae.U2)(T);if(W.length!==1)return;const ye=X.getHotItem(W[0]);if(!ye)return;const{key:Ie,hotAttr:Ue}=ye,Re=Ue.type;if(Re===P.x.Canvas||Re===P.x.WWrap||Re===P.x.WIcon||Ue.isLock||Re===P.x.WElbow&&b.target.classList.contains("line-rect-anchor"))return;if(z){Re===P.x.WBasket&&Ue&&u({type:"entry:edit:bDanli",payload:{bDanliKey:Ie}});return}if(z)return;const ze=(0,Et.ji)(Ue);if(Re===P.x.WElbow){const{elbow:{textPositionProportion:Nt,dPathList:$t,elbowType:An}}=Ue;if(Nt===void 0||Nt===-1){const zn=(0,Jt.ce)($t,An);u({type:"entry:elbow:update:textPositionProportion",payload:{key:Ie,textPositionProportion:zn}})}}if(Re===P.x.WBasket){if(ee&&!z)return;Ue.basket==="bDanli"&&u({type:"entry:edit:bDanli",payload:{bDanliKey:pe}})}else if((0,mt.a$)(Re)&&!ze){if(Re===P.x.WSwimlane)u({type:so.X.entryKey["entry:flow:text-edit:prepare"],payload:{event:b}});else{const Nt=Ce.y.query.getMissFontHiKeySet(T);if(Nt&&Nt.has(Ie)){u({type:Ce.y.entryKey["font:miss:modal:open"]});return}u({type:"entry:set:editing:cid",payload:{item:ye}})}u({type:"entry:select:items",payload:{cids:[Ie]}})}else if(Re===P.x.WImage){var st,xt;if(!Ue.image||!((st=Ue.image)!=null&&st.imageRef)||(0,He.OO)(Ie))return;((xt=Ue.image)==null?void 0:xt.imageClipType)==="none"&&sdkStore.updateHotAttrMerge(Ie,{image:{...Ue.image,imageClipType:Jn.Mg.square}}),u({type:"image:update:state",payload:{isEditingImageWrapperCid:Ie,currentImageOperateType:Jn.bl.cutting}}),u({type:"entry:select:items",payload:{cids:[Ie]}})}else if(Re===P.x.WChart)u({type:"entry:chart:in:edit",payload:{widget:ye,trackType:"\u53CC\u51FB"}});else if(ze||(0,mt.X3)(Re))u({type:"entry:select:items",payload:{cids:[Ie]}}),u({type:"mode:update:state",payload:{isEditingEditableWidgetCid:Ie}});else if([P.x.WMind,P.x.WTable].includes(Re))u({type:"entry:select:items",payload:{cids:[Ie]}});else if(Re===P.x.WCode)u({type:"entry:aiComponent:in:edit",payload:{cid:Ie,event:b}});else if(Re===P.x.WGraph){if(ee)return;u({type:"entry:widget:graph:edit",payload:{action:"update-widget"}})}},"entry:screenContainer:create:widget:mousemove":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,isTear:b=!1}}=R;const T=A(),L=(0,a.X_)(T),z=(0,a.ER)(T),W=(0,a.$S)(T),X=(0,a.Ur)(T),ee=(0,Ae.p$)(T),pe=(0,Pt.mG)(x,{scale:L,offset:z,viewportRect:W}),ye=x.ctrlKey||x.metaKey,Ie=(0,Pt.nS)({isTear:b,world:pe,scale:L,newSelection:ee,currentPageKey:X.cid,isCtrlDown:ye});u(o.GO.hoverItem(Ie))},"entry:screenContainer:dragCanvas":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:{e:T}}=R;const L=T.clientX,z=T.clientY,W=x(),{x:X,y:ee}=(0,a.ER)(W);b({type:"close:contextmenu"}),b({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!0}}),b({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});const pe=(A=(u=MB).getWidgetStore)==null?void 0:A.call(u).getTreeSize(),ye=Re=>{const ze={x:X+(Re.clientX-L),y:ee+(Re.clientY-z)};b({type:"entry:set:canvas:offset",payload:{offset:ze}}),b(o.GO.toggleIsShowFloatingToolbar(!1))},Ie=pe>800?dn()(ye,16):ye,Ue=Re=>{var ze;(ze=Ie.flush)==null||ze.call(Ie),document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ue),b({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!1}}),b(o.GO.toggleIsShowFloatingToolbar(!0))};document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ue)}};var At=i(10472),on=i(96986),no=i(77709),mo=i(7457),mn=i(99587),ht=i(87765),Fn=i(63986),Yt=i.n(Fn),Gt=i(59025),Bn=i(74945),qt=i(45815),Zt=i(20315),jn=i(14166),ro=i(40610),Tn=i(81717),bt=i(5209),Wt=function(B){return B[B.Toolbar=1]="Toolbar",B[B.ShortCut=2]="ShortCut",B[B.TransformDoubleClick=3]="TransformDoubleClick",B[B.TransformSettingPanel=4]="TransformSettingPanel",B}(Wt||{});const wn={[Wt.Toolbar]:"\u9876\u90E8\u680F\u5355\u51FB",[Wt.ShortCut]:"\u5FEB\u6377\u952E",[Wt.TransformDoubleClick]:"\u7EC4\u4EF6\u8F6C\u6362-\u53CC\u51FB\u8DEF\u5F84",[Wt.TransformSettingPanel]:"\u7EC4\u4EF6\u8F6C\u6362-\u53F3\u4FA7\u9762\u677F\u6309\u94AE"};var uo=function(B){return B[B.Enter=1]="Enter",B[B.Esc=2]="Esc",B[B.ClickBlank=3]="ClickBlank",B[B.Exit=4]="Exit",B[B.Other=5]="Other",B}(uo||{});const In={[uo.Enter]:"Enter",[uo.Esc]:"Esc",[uo.ClickBlank]:"\u70B9\u51FB\u7A7A\u767D",[uo.Exit]:"\u70B9\u51FB\u5B8C\u6210\u7F16\u8F91",[uo.Other]:"\u5176\u4ED6"},Dn=(B,R,A)=>{(0,bt.kH)("add_vector_V8",{source:wn[B],vector_type:R?"\u95ED\u5408":"\u975E\u95ED\u5408",vector_finish:In[A]}),Tn.Y4.editProjectNew("\u65B0\u5EFA\u77E2\u91CF")};var So=i(62532),Qt=i(93e3),Ln=i(27480),Mn=i(16402),Rt=i(18637),Qe=i(8452);const En=B=>({x:B.clientX,y:B.clientY}),qn=(B,R)=>We.Z.subtract(R,{x:B,y:M.E0}),Hn=B=>{const R=MB.__store__.getState(),A=(0,Lt.lY)(R),{key:u}=A;if(!u)return;const x=(0,Lt.Je)(R),b=(0,Mn.n)(R),T=(0,Mn.H)(R),L=En(B),z=qn(b,L),W=Qt.L.applyInverse(T,z),{hotAttr:{vector:X}}=sdkStore.getHotItem(u),ee=(X==null?void 0:X.points)||[],pe=(0,Rt.YW)(u),ye=ee.map(ze=>{let{x:st,y:xt}=ze;return pe.apply({x:st,y:xt})});x!==0&&MB.action("start:range:select",{startX:B.clientX,startY:B.clientY});let Ie=!1;const Ue=ze=>{if(x!==0){const st=En(ze),xt=qn(b,st);if(We.Z.distance(L,st)>2&&(Ie=!0),Ie){const Nt=Qt.L.applyInverse(T,xt),$t=W.x<Nt.x?W.x:Nt.x,An=W.x>=Nt.x?W.x:Nt.x,zn=W.y<Nt.y?W.y:Nt.y,lo=W.y>=Nt.y?W.y:Nt.y,Qn=Ln.rw.ltrb($t,zn,An,lo),Sn=[];ye.forEach((Wo,qo)=>{Ln.rw.contains(Qn,Wo)&&Sn.push(qo)}),MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:Sn,selectedAssistIndex:void 0}})}}},Re=()=>{x!==0&&(Ie===!1&&(x===1?MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:[],selectedAssistIndex:void 0}}):(A==null?void 0:A.selectedIndex.length)>0?MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:[],selectedAssistIndex:void 0}}):MB.action("entry:vector:exit:edit",{end:Qe.z9.ClickBlank})),MB.action("mode:update:state",{enabledRangeSelection:0})),document.removeEventListener("mousemove",Ue),document.removeEventListener("mouseup",Re)};document.addEventListener("mousemove",Ue),document.addEventListener("mouseup",Re)};var Yn=i(94754),oo=i(13642),To=i(20119),po=i(89054),Oo=i(34860),Qo=i(95657),ea=i(60589),_n=i(21489),Un=i(44229),cn=i(37780);let nn=!1;const ho={...Nn,...{"entry:screenContainer:mousedown":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),T=(0,a.wq)(b),L=(0,a.Sb)(b),z=(0,a.L8)(b),W=(0,on.sI)(b),X=(0,Qo.y1)(b),ee=(0,Lt.Ro)(b),pe=(0,Lt.lY)(b),ye=(0,Bn.Q1)(b),Ie=(0,on.EH)(b),Ue=(0,Lt.jx)(b),{isSpaceDown:Re}=(0,a.ZS)(b),ze=(0,a.YY)(b);if(x.button!==0)x.button===1?u({type:"entry:screenContainer:dragCanvas",payload:{e:x}}):u({type:"entry:screenContainer:contextmenu",payload:{e:x}});else if(u({type:"close:contextmenu"}),X)u({type:"entry:aiComponent:create:mousedown",payload:{event:x}});else if(Re||ee)Ue===o.qi.OnlyView&&ee?u({type:"entry:screenContainer:pointDown",payload:{event:x}}):u({type:"entry:screenContainer:dragCanvas",payload:{e:x}});else if(W)u({type:"entry:comment:create:mousedown",payload:{event:x}});else if(pe)Hn(x);else if(ye)u({type:"entry:elbow:isInElbowMode:create",payload:{event:x,canInstantCreate:!1}});else if(T)if(L===mt.Hq.modal)u({type:"entry:template:screen:create",payload:{e:x}});else{const st=(0,Gt.Y$)(T.metaType||T.type);u(st?{type:"entry:widget:quick:create",payload:{e:x}}:{type:"entry:widget:quick:create:noRect",payload:{e:x}})}else ze?u({type:"entry:widget:create:by:data",payload:{e:x}}):z?u({type:"entry:widget:quick:create:noRect",payload:{e:x}}):(Ie&&u({type:"entry:comment:create:mousedown",payload:{event:x}}),u({type:"entry:screenContainer:pointDown",payload:{event:x}}))},"entry:screenContainer:pointDown":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{event:b}}=R;b.persist();const{target:T}=b,L=u(),z=(0,To.c)(L),W=(0,Lt.jx)(L),X=(0,Lt.IL)(L),ee=(0,Ae.p$)(L);if(T.closest(".resizable-handler")||T.closest(".square")||T.closest(".line")||T.closest(".canvas-title .is-editing-title")||b.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||b.target.closest(".draft-link-decorator-a"))return;b.target.closest(".draft-link-toast")||!z&&oo.A.emit("draft:link-toast:quit");const pe=(A=sdkStore.getHotItem(X))==null?void 0:A.hotAttr.type,ye=X?CSS.escape(X):"",Ie=T.closest("#elbow-text-dom-"+ye);(Ie||pe==="wElbow"&&T.closest(".wElbow #text-dom-"+ye))&&(ee.length===0||ee.length===1&&Ie.dataset.elbowKey===X)&&x({type:"elbow:update",payload:{isDraggingElbowText:!0}}),u().screencontainer.domVisibilityState||x({type:"update:screenContainer:state",payload:{domVisibilityState:!0}});const Ue=We.Z.xy(b.clientX,b.clientY);nn=!!X;const Re=st=>{const xt=()=>{if(We.Z.distance(Ue,Nt)>1){if(document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",ze),W===o.qi.OnlyView){if(b.target.closest(".read-only-text-can-select"))return;x({type:"entry:screenContainer:dragCanvas",payload:{e:b}})}else x({type:"entry:screenContainer:dragStart",payload:{event:b}});nn=!1}},Nt=We.Z.xy(st.clientX,st.clientY);u().screencontainer.domVisibilityState&&xt()},ze=st=>{if(nn=!1,W===o.qi.OnlyView){if(st.target.closest(".emoji-toast")||st.target.closest(".project-member-list")){document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",ze);return}x({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}})}if(x({type:"entry:screenContainer:mousedown:hit",payload:{event:b,rehitForContextMenu:!1,gas:0}}),W===o.qi.OnlyView&&!Oo.eT){const xt=(0,Ae.p$)(u());(0,po.f3)(xt[0])}document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",ze),x({type:"entry:screenContainer:mouseup",payload:{event:st}})};document.addEventListener("mousemove",Re),document.addEventListener("mouseup",ze)},"entry:screenContainer:contextmenu":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A();if((0,a.wq)(b)||MB.f.editing||x.target.closest(".iconWrap")||(x.preventDefault(),x.ctrlKey))return;const L={left:x.clientX,top:x.clientY};u({type:"entry:screenContainer:mousedown:hit",payload:{event:x,rehitForContextMenu:!0,gas:0}}),u({type:"entry:contextmenu:withtype",payload:{position:L}})},"entry:screenContainer:mousemove":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;if(MB.f.isResizing||nn)return;const b=A();if((0,a.pO)(b))return;if((0,Zt.LS)(b).bindingKey!==""){u(o.GO.update({isHitVectorPath:!1}));return}const{isKeySDown:z}=(0,a.ZS)(b);if(z||(0,a.AW)(b)||(0,ea.vv)(b)||(0,mo.RT)(b))return;if(x.target.closest(".design-widget-portal-menu")){u(o.GO.update({hover:{item:"",panel:""}}));return}if((0,Qo.y1)(b)){u({type:"entry:aiComponent:create:mousemove",payload:{event:x}});return}const ye=(0,a.X_)(b),Ie=(0,a.ER)(b),Ue=(0,a.$S)(b),Re=(0,a.eo)(b),ze=(0,Lt.jx)(b),st=(0,Ae.p$)(b),xt=(0,a.iv)(b),Nt=(0,a.w8)(b),$t=(0,Lt._b)(b),An=(0,So.o5)(b),zn=(0,on.fd)(b),lo=(0,Lt.Ro)(b),Qn=(0,on.sI)(b),Sn=(0,on.Cb)(b),Wo=(0,on.AU)(b),qo=(0,mo.nF)(b),ua=(0,mo.tC)(b),Ea=(0,a.rV)(b),{isEditingCombo:wa}=(0,At.r)(b),Ja=(0,Pt.mG)(x,{scale:ye,offset:Ie,viewportRect:Ue}),La=x.ctrlKey||x.metaKey||$t,Na=(0,Bn.rP)(b),gr=(0,a.wq)(b),Pi=(0,no.$7)(b),_r=x.altKey,ci=(0,Zt.jy)(b),Ws=(0,Zt.Hr)(b),kr=(0,Zt.tI)(b),Fi=(0,Lt.lY)(b),xi=(0,Lt._W)(b),Ai=(0,Lt.IL)(b),Rr=so.X.query.getIsDeepEditing(b),Cs=(0,Bn.Q1)(b),Hr=(0,Pt.mG)(x,{scale:100,offset:Ie,viewportRect:Ue}),Wr={x:Hr.x/ye*100,y:Hr.y/ye*100};if(gr||ci){const Dl=(gr==null?void 0:gr.type)===P.x.WTear||(st==null?void 0:st.length)===1,ji=(gr==null?void 0:gr.type)===P.x.WVector;Dl&&!ji&&u({type:"entry:screenContainer:create:widget:mousemove",payload:{event:x,isTear:Dl}}),Fi&&xi&&u(o.GO.update({isHitVectorPath:!1})),(gr==null?void 0:gr.type)===P.x.Canvas&&u({type:"update:screenContainer:state",payload:{cursorPos:Wr}});return}if(kr&&x.target.closest(".STSticky")){Ai&&u(o.GO.hoverItem(""));return}if((!ci&&(An||lo&&ze!==o.qi.OnlyView||Ea.isActive||MB.f.isResizing||Ws)||Fi||Rr)&&Ai&&u(o.GO.hoverItem("")),zn){const Dl=(0,_n.xJ)(Ja,Re);Ai!==Dl&&u(o.GO.hoverItem(Dl));return}const Ti=Wo.find(Dl=>Dl.cid===Sn);if(Qn||Ti){u({type:"entry:screenContainer:create:widget:mousemove",payload:{event:x}}),u({type:"entry:comment:create:mousemove",payload:{event:x}});return}const jl=qo||_r||Na||Cs||ci||ua||(gr==null?void 0:gr.type)===P.x.WTear,bs=!jl,Vs=(0,C.Dg)(Ja,ye/100,Re,{isDraggingElbow:Na||Cs,isShowSticky:Pi,isDraggingWTear:ci,needHitCanvasEdge:bs,event:x},st);if((0,C.h9)(Vs,st,La||Na||Cs?"ctrl":"default",jl),Vs!=null&&Vs.hitKey){const Dl=(ci||ua)&&Vs.hitIType===P.x.WSticky;let ji=Vs.hitKey;if(Dl&&(ji=""),qo){const Ms=sdkStore.locUpColdCanvasKey(Vs.hitKey),Qs=sdkStore.locUpColdCanvasKey(st[0]||"");(0,He.OO)(ji)?ji=Qs!==Ms?ji:"":Ms?ji===Qs?ji="":Qs!==Ms&&(ji=Vs.hitIType===P.x.Canvas?ji:Ms||""):ji=wa?ji:"",ji===st[0]&&(ji="")}if(ze!==o.qi.OnlyView&&ro.LM.includes(Vs.hitIType)&&st.length===1&&st[0]===ji){if(!(0,Gt.td)([ji])){const Qs=(0,C.AJ)(Ja,ye/100,ji);Qs!==xi&&u(o.GO.update({isHitVectorPath:Qs}))}}else xi&&u(o.GO.update({isHitVectorPath:!1}));Ai!==ji&&u(o.GO.hoverItem(ji));const Or=st.length===1&&Vs.hitKey===st[0];if(ze!==o.qi.OnlyView&&Or&&(0,mt.v8)(Vs.hitIType)&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),ze===o.qi.OnlyView&&u(o.GO.toggleHandMode(!1)),Cs){const Ms=(0,qt.s)(Vs.hitKey,Wr);u(Ms!==void 0?{type:"elbow:update",payload:{highlightAnchor:Ms.key}}:{type:"elbow:update",payload:{highlightAnchor:""}})}}else Ai&&u(o.GO.hoverItem("")),xi&&u(o.GO.update({isHitVectorPath:!1})),ze!==o.qi.OnlyView&&xt&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:Nt}}),ze===o.qi.OnlyView&&u(o.GO.toggleHandMode(!0));u({type:"update:screenContainer:state",payload:{cursorPos:Wr}})},"entry:screenContainer:mousedown:hit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,rehitForContextMenu:b,gas:T}}=R;const L=A(),z=(0,a.X_)(L),W=(0,a.ER)(L),X=(0,a.$S)(L),ee=(0,a.eo)(L),pe=(0,Ae.p$)(L),ye=(0,mn.P2)(L),Ie=(0,So.o5)(L),{isAdjustingColGap:Ue,isAdjustingRowGap:Re}=(0,ht.$)(L),ze=(0,Lt.jx)(L),st=(0,on.sI)(L),xt=(0,on.Cb)(L),Nt=(0,on.AU)(L),$t=(0,Lt._b)(L),An=(0,no.$7)(L),zn=(0,Lt.lY)(L),lo=(0,Lt.IL)(L),{isKeySDown:Qn}=(0,a.ZS)(L);if(Qn)return;const{shiftKey:Sn,ctrlKey:Wo,metaKey:qo}=x,ua=(0,Pt.mG)(x,{scale:z,offset:W,viewportRect:X}),Ea=Wo||qo||$t,wa=T>0?"dblclick":Ea?"ctrl":"default";if(wa==="dblclick"){const xi=document.elementFromPoint(x.clientX,x.clientY);if(xi!=null&&xi.closest(".DraftEditor-editorContainer")||xi!=null&&xi.closest(".STSticky")||xi!=null&&xi.closest(".table-add-handle"))return}if(ye||Ie||Ue||Re||zn!=null&&zn.key)return;let Ja;const La=Nt.find(xi=>xi.cid===xt);if(st||La)return;const Na=(0,C.Dg)(ua,z/100,ee,{isShowSticky:An,needHitCanvasEdge:!0,event:x},pe),gr=$t&&x.buttons===1&&Na.hitKey,{hasUnusedDblclick:Pi}=(0,C.h9)(Na,pe,wa,!1);if(Na.hitKey&&(Ja=Na.hitKey),gr&&Na.hitIType==="wLr"){const xi=(0,C.Dg)(ua,z/100,ee,{isShowSticky:An,needHitCanvasEdge:!0,filterKey:Na.hitKey,event:x},pe);xi.hitKey!==void 0&&xi.hitKey!==Na.hitKey&&MB.notice({text:I18N.ContextMenu.inspect_lr,type:"info"})}let _r=!1;if(ro.LM.includes(Na.hitIType)?_r=!(0,Gt.td)([Ja]):P.x.WMind===Na.hitIType&&u(o.GO.toggleIsShowFloatingToolbar(!0)),Pi){if(Ja){if(_r&&Na.hitIType!=="wLine"&&(0,C.AJ)(ua,z/100,Ja)){u({type:"entry:vector:enter:edit",payload:{key:Ja}}),u({type:"update:screenContainer:state",payload:{addVectorSource:Na.hitIType===P.x.WVector?null:Wt.TransformDoubleClick}});return}u({type:"entry:screenContainer:enter:editing:widget",payload:{event:x}})}return}let ci=(0,C.jT)(pe,Ja,Sn&&!$t,b);if(ci.length===0&&b){const xi=(0,C.Tg)(ua,ee);xi&&(ci=[xi])}if(!Yt()(pe,ci)){var Ws,kr,Fi;const xi=((Ws=ci)==null?void 0:Ws.length)===1?ci[0]:"";if(lo!==xi&&u(o.GO.hoverItem(xi)),u({type:"flow:update:clear"}),(kr=ci)!=null&&kr.length?(u({type:"entry:select:items",payload:{cids:ci}}),(0,Un._o)(()=>{const Ai=(0,Ae.p$)(A());Ai!=null&&Ai.length&&u({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Ai}})},{timeout:200})):(u({type:"entry:clear:selection"}),u(cn.R7.command.clearAllCommand({}))),((Fi=ci)==null?void 0:Fi.length)===1){const Ai=sdkStore.getHotItem(ci[0]);Ai&&ze!==o.qi.OnlyView&&(0,mt.v8)(Ai.hotAttr.type)&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}})}}},"entry:screenContainer:mouseup":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;const b=A(),T=(0,Ae.p$)(b);if((T==null?void 0:T.length)===1){const L=sdkStore.getHotItem(T[0]);if(L.hotAttr.type===P.x.WElbow)u({type:"elbow:update",payload:{isDraggingElbowText:!1,activeElbowKey:"",highlightAnchor:""}});else if(L.hotAttr.type===P.x.WTear){const z=x.button===0;u({type:"ST:toggle:wTearLeftDown",payload:{isLeftDown:z,activeTearKey:L.key}})}}},"entry:screenContainer:dragStart":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{event:b}}=R;const T=u(),L=(0,a.X_)(T),z=(0,a.ER)(T),W=(0,a.$S)(T),X=(0,Ae.p$)(T),ee=(0,Lt.IL)(T),pe=(0,Bn.CP)(T),ye=so.X.query.getIsShallowEditing(T),{isAdjustingColGap:Ie,isAdjustingRowGap:Ue}=(0,ht.$)(T),Re=(0,jt.WH)(T);if(pe||Ie||Ue||ye)return;const ze=X.filter($t=>!sdkStore.getHotItem($t).hotAttr.isLock),st=(0,Pt.mG)(b,{scale:L,offset:z,viewportRect:W}),xt=ze.length>0&&!ze.includes(Re)&&(0,jn.N0)(sdkStore.getHotKeyListAABB(ze),st),Nt=ee!==""&&!((A=sdkStore.getHotItem(ee))!=null&&(A=A.hotAttr)!=null&&A.isLock)&&(Re?ee!==Re:!0);xt||Nt?(ee&&!X.includes(ee)&&x({type:"entry:screenContainer:mousedown:hit",payload:{event:b}}),x({type:"entry:event:item:drag-start",payload:{event:b}})):x({type:"entry:screenContainer:selecting",payload:{event:b}})},"entry:screenContainer:drop":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;x.stopPropagation(),x.preventDefault();const b=A(),T=(0,Lt.jx)(b),{isExperience:L,isLoggedExperience:z}=(0,a.W4)(b),W=(0,a.Pz)(b),X=(0,a.PL)(b),ee=(0,a.HW)(b),pe=(0,a.wA)(b),ye=(0,a.X_)(b);if(T===o.qi.OnlyView)return;if(L||z){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}MB.f.editingRichText&&u({type:"quit:rich:text:editing"}),u({type:"entry:clear:selection"});const Ie=ye/100;let Ue=x.nativeEvent.pageY-(W==null?void 0:W.canvasTop);const Re=x.nativeEvent.pageX-(W==null?void 0:W.canvasLeft),ze=[];await(0,Yn.i3)({files:x.nativeEvent.dataTransfer.files,rootProject:X,isCreate:!0,callback:(st,xt)=>{const Nt=(st==null?void 0:st.w)||(st==null?void 0:st.width)||0,$t=(st==null?void 0:st.h)||(st==null?void 0:st.height)||0;st.top=Math.round(Ue/Ie)+$t/2,st.left=Math.round(Re/Ie)+Nt/2;const An=st.type===P.x.WIcon?(0,ne.kk)(st):(0,ne.BL)(st);ze.push(An),Ue+=An.h*Ie,xt&&u({type:"entry:batch:create:items",payload:{data:[{items:ze,width:An.w,height:An.h}],offset:{top:0,left:0},isShouldCalcSup:!0}})}},ee,pe)}}};var Xn=i(32424),Mo=i(78401),Zo=i(61627),ia=i(31348),xa=i(70466),fa=i(86493);const zo=B=>{const R=(0,a.X_)(B),A=(0,a.ER)(B),u=(0,a.$S)(B);return{scale:R/100,offset:A,size:u}},Ra={...xa.u,"entry:comment:create:mousedown":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;const b=A(),T=(0,on.sI)(b),L=(0,a.X_)(b),z=(0,a.ER)(b),W=(0,a.$S)(b),X=(0,on.nO)(b),ee=(0,on.fd)(b),pe=(0,on.YW)(b),ye=(0,on.AU)(b),Ie=(0,on.Cb)(b),Ue=(0,on.V8)(b);if((0,_n.m0)(x)){X&&u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),ee&&u({type:"entry:comment:benot-dragging"});return}if(pe)return;const Re=(0,xa.F)();if(Re){u({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Re}});return}if(Ue){u({type:"entry:comment:clear"});return}if(Ie){const Qn=ye.find(Sn=>Sn.cid===Ie);if(Qn){const{comments:Sn}=Qn,Wo=(0,on.Ou)(b);[Qn,...Sn].find(ua=>ua.cid===Wo)&&u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!T)return;const st=(0,k.UV)(b).getRootSnapshot().key,xt=(0,Pt.mG)(x,{scale:L,offset:z,viewportRect:W}),Nt=(0,_n.xJ)(xt,st),$t=(0,_n.vl)(xt,Nt),{cid:An}=(0,a.Ur)(b),{user:zn}=window.MB,lo={threadType:"point",cid:(0,Xn.xc)(),isCompleted:!1,comments:[],screenCid:An||"",canvasCid:Nt||"",canvasVec2:$t,message:"",x:xt.x,y:xt.y,w:0,h:0,z:1,userInfo:zn,userId:zn==null?void 0:zn.id,vec2:xt,rect:null,status:"creating"};u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:xt}}),u({type:"comment:update:creatingComment",payload:{creatingComment:lo}})},"entry:comment:create:mousemove":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;const b=A(),T=(0,on.nO)(b),z=(0,k.UV)(b).getRootSnapshot().key,W=(0,a.X_)(b),X=(0,a.ER)(b),ee=(0,a.$S)(b);if(!T)return;let pe=(0,on.V8)(b);if(!pe)return;const ye=(0,Pt.mG)(x,{scale:W,offset:X,viewportRect:ee});if(We.Z.distance(T,ye)<5){const Ue=(0,_n.xJ)(ye,z),Re=(0,_n.vl)(ye,Ue);pe={threadType:"point",...pe,canvasVec2:Re,vec2:ye,rect:null,x:ye.x,y:ye.y,w:0,h:0,canvasCid:Ue||""},u(o.GO.hoverItem(Ue))}else{const{x:Ue,y:Re}=T,{x:ze,y:st}=ye,xt={x:Ue<=ze?Ue:ze,y:Re<=st?Re:st,w:Math.abs(ze-Ue),h:Math.abs(st-Re),rotate:0},Nt=[xt.x,xt.y,xt.x+xt.w,xt.y+xt.h],$t=(0,_n.kJ)(Nt,z),An=(0,_n.vl)(xt,$t);pe={...pe,threadType:"frame",vec2:null,rect:xt,x:Ue<=ze?Ue:ze,y:Re<=st?Re:st,w:Math.abs(ze-Ue),h:Math.abs(st-Re),canvasVec2:An,canvasCid:$t||""},u(o.GO.hoverItem($t))}u({type:"comment:update:creatingComment",payload:{creatingComment:pe}})},"entry:comment:create:mouseup":B=>{let{getState:R,dispatch:A}=B;const u=R();if(!(0,on.nO)(u))return;A({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const b=(0,on.V8)(u);b&&(A({type:"comment:update:activeCommentCid",payload:{activeCommentCid:b.cid}}),A({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),A({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),A({type:"comment:update:editingCommentCid",payload:{editingCommentCid:b.cid}})),A({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:resize":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,rect:b}}=R;const T=A(),L=(0,on.AU)(T),W=(0,k.UV)(T).getRootSnapshot().key,X=(0,on.V8)(T);if(!L.find(ze=>ze.cid===x)&&(X==null?void 0:X.cid)!==x)return;const pe=Ln.rw.enclosingRects([b]),ye=[b.x,b.y,b.x+b.w,b.y+b.h],Ie=(0,_n.kJ)(ye,W),Ue=(0,_n.vl)(b,Ie),Re={x:pe.x,y:pe.y,w:pe.w,h:pe.h,canvasVec2:Ue,canvasCid:Ie||""};if((X==null?void 0:X.cid)===x){const ze={...X,...Re,rect:{...pe}};u({type:"comment:update:creatingComment",payload:{creatingComment:ze}})}else u({type:"entry:comment:update:item",payload:{cid:x,attr:Re}});u(o.GO.hoverItem(Ie))},"entry:comment:cancel":B=>{let{getState:R,dispatch:A}=B;A({type:"entry:comment:clear"})},"entry:comment:confirm":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x}}=R;const b=A(),T=(0,on.V8)(b),L=(0,on.AU)(b),z=(0,on.uX)(b),W=(0,a.$5)(b),X=T||L.find(xt=>xt.cid===x);if(!X)return;const{user:ee}=window.MB,pe=W||[],{content:ye,replyUserCid:Ie,userCids:Ue}=(0,_n.bL)(z);let Re="";const ze=Ue.concat(Ie).filter(Boolean);if(T)Re=ze.length>0?"appointed":"comment";else{Re=ze.length>0?"replied_appoint":"replied_comment";const{userInfo:xt}=X;if(ee.cid!==xt.cid){const Nt=pe.find($t=>$t.user_cid===xt.cid);Nt&&(xt.name=Nt.name,xt.avatar=Nt.avatar,xt.email=Nt.email),xt.cid}}const st=(0,fa.qn)(z);u({type:"entry:comment:noticeAtUsers",payload:{content:ye,noticeType:Re,userCids:ze,commentCid:x}}),u(T?{type:"entry:comment:init:item",payload:{type:"thread",curComment:X,message:st}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:X,message:st}}),u({type:"comment:update:creatingComment",payload:{creatingComment:null}}),u({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),u(o.GO.hoverItem(""))},"entry:comment:delete":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x}}=R;const b=A(),T=(0,on.AU)(b);if(!x)return;const L=T.find(X=>X.cid===x);if(!L)return;const{userInfo:z}=L,{user:W}=window.MB;if(W.cid!==z.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}u({type:"entry:comment:del:item",payload:{cid:x}}),u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,recordCid:b}}=R;const T=A(),z=(0,on.AU)(T).find(X=>X.cid===x);!z||![...z.comments,z].find(X=>X.cid===b)||(u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:b}}))},"entry:comment:record:delete":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,recordCid:b}}=R;const T=A(),z=(0,on.AU)(T).find(X=>X.cid===x);!z||![...z.comments,z].find(X=>X.cid===b)||(u({type:"entry:comment:del:item",payload:{cid:b||x}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,recordCid:b,rawContent:T}}=R;const L=A(),W=(0,on.AU)(L).find(st=>st.cid===x);if(!W)return;let X=-1,ee=null;if(W.cid===b?ee=W:W.comments.forEach((st,xt)=>{st.cid===b&&(X=xt,ee=st)}),!ee)return;const{content:pe,replyUserCid:ye,userCids:Ie}=(0,_n.bL)(T),Ue=Ie.concat(ye).filter(Boolean);let Re="";X===-1?(Re="comment",Ue.length>0&&(Re="appointed")):(Re="replied_comment",Ue.length>0&&(Re="replied_appoint")),u({type:"entry:comment:noticeAtUsers",payload:{content:pe,noticeType:Re,userCids:Ue,commentCid:x}});const ze={message:T,mtime:rootSdk.fssCmt.getClockStore().getMtime()};u({type:"entry:comment:update:item",payload:{cid:b||x,attr:ze}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:cancel":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,recordCid:b}}=R;const T=A(),z=(0,on.AU)(T).find(ee=>ee.cid===x);!z||![z,...z.comments].find(ee=>ee.cid===b)||!(0,on.Ou)(T)||u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:anchor:mousedown":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,comment:b}}=R;const T=A(),L=zo(T),z=(0,on.V8)(T),W=(0,on.Cb)(T),X=(0,on.az)(T),ee={x:x.pageX,y:x.pageY},pe={...b};let ye;if(pe.vec2){const Ue=Qt.L.apply(L,pe.vec2),Re=ee.x-Ue.x,ze=ee.y-Ue.y;ye={x:Re,y:ze}}const Ie=(0,xa.F)();if(Ie){u({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Ie}});return}z&&u({type:"comment:update:creatingComment",payload:{creatingComment:null}}),u({type:"entry:clear:selection"}),(0,Mo.FJ)({onPointerDown:()=>{b.cid===X&&u({type:"entry:comment:clear"})},onDragStart:()=>{const Ue=(0,Lt.Ro)(T);(0,Lt.jx)(T)!==o.qi.OnlyView&&Ue||!(0,Oo.OB)()&&!MB.canEditByCurrentUser||u({type:"entry:comment:be-dragging"})},onDrag:(Ue,Re)=>{const ze=(0,Lt.Ro)(T);(0,Lt.jx)(T)!==o.qi.OnlyView&&ze||!(0,Oo.OB)()&&!MB.canEditByCurrentUser||u({type:"entry:comment:drag",payload:{cid:b.cid,prevComment:pe,prevPoint:ee,curPoint:{x:Ue,y:Re},vec2Delta:ye}})},onDrop:(Ue,Re)=>{const ze=pe&&pe.cid;Re&&!W&&u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:b.cid}}),Re&&b.cid===ze&&["created","checked"].includes(b.status)?b.cid===W?u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:b.cid}}):u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:b.cid}}),setTimeout(()=>{u({type:"entry:comment:benot-dragging",payload:{cid:b.cid,undo:!0}}),u(o.GO.hoverItem(""))},16.7)}})},"entry:comment:drag":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,prevComment:b,prevPoint:T,curPoint:L,vec2Delta:z}}=R;const W=A(),X=(0,on.AU)(W),ee=zo(W),pe=(0,a.dK)(W),Ie=(0,k.UV)(W).getRootSnapshot().key;if(!X.find(zn=>zn.cid===x))return;const Re=Qt.L.applyInverse(ee,T),ze=Qt.L.applyInverse(ee,L);let st,xt;if(pe){const[zn,lo]=(0,_n.RR)(Re,ze,!0,!1);st=lo.x-zn.x,xt=lo.y-zn.y}else st=ze.x-Re.x,xt=ze.y-Re.y;const{threadType:Nt,vec2:$t,rect:An}=b;if(Nt==="point"){const zn=We.Z.add($t,{x:st,y:xt}),lo=(0,_n.xJ)(zn,Ie),Qn=(0,_n.vl)(zn,lo),Sn={x:zn.x,y:zn.y,canvasVec2:Qn,canvasCid:lo||""};u({type:"entry:comment:update:item",payload:{cid:x,attr:Sn}}),u(o.GO.hoverItem(lo))}else{const zn={...An,x:An.x+st,y:An.y+xt},lo=Ln.rw.enclosingRects([zn]),Qn=[zn.x,zn.y,zn.x+zn.w,zn.y+zn.h],Sn=(0,_n.kJ)(Qn,Ie),Wo=(0,_n.vl)(zn,Sn),qo={rect:zn,x:lo.x,y:lo.y,canvasVec2:Wo,canvasCid:Sn||""};u({type:"entry:comment:update:item",payload:{cid:x,attr:qo}}),u(o.GO.hoverItem(Sn))}},"entry:comment:be-dragging":B=>{let{dispatch:R}=B;R({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:benot-dragging":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;u({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:fit-viewport":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x}}=R;const b=A(),T=zo(b),L=(0,a.$S)(b),W=(0,on.AU)(b).find(Re=>Re.cid===x);if(!W)return;const X={x:L.x,y:L.y,w:L.width,h:L.height},{x:ee,y:pe,w:ye,h:Ie,threadType:Ue}=W;if(Ue==="point"){const Re=Qt.L.apply(T,{x:ee,y:pe}),ze={x:L.x+L.width/2,y:L.y+L.height/2},st={x:ze.x+Re.x,y:ze.y+Re.y};if(!Ln.rw.contains(X,st)){const{offset:Nt,scale:$t}=T,An=We.Z.subtract(ze,st),zn=We.Z.add(Nt,An);u({type:"design:set:canvas:offset",payload:{offset:zn}}),u({type:"design:set:scale",payload:{scale:$t*100}})}}else{const Re=Qt.L.applyRect(T,{x:ee,y:pe,w:ye,h:Ie}),ze={x:L.x+L.width/2,y:L.y+L.height/2},st={...Re,x:ze.x+Re.x,y:ze.y+Re.y};if(!Zo.a.containsRect(Zo.a.fromRect(X),st)){const{offset:Nt,scale:$t}=T,An=We.Z.subtract(ze,{x:st.x+st.w/2,y:st.y+st.h/2}),zn=We.Z.add(Nt,An);u({type:"design:set:canvas:offset",payload:{offset:zn}}),u({type:"design:set:scale",payload:{scale:$t*100}})}}u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:x}}),u({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}})},"entry:comment:noticeAtUsers":(B,R)=>{let{getState:A}=B,{payload:{content:u,noticeType:x,userCids:b,commentCid:T}}=R;const L=A(),z=(0,a.PL)(L),W=(0,h.Hs)(L);let X=(0,Lt.jI)(L);const ee=z.cid;X&&(0,He.OO)(X)&&(X=(0,He.QL)(X).pop()),ia.A.noticeCommentAtUsers({projectCid:ee,noticeType:x,userCids:b,content:u,screenCid:W[0],commentCid:T,basketCid:X})},"entry:comment:rightPanel:active":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{commentCid:x}}=R;const b=A(),T=(0,h.He)(b),z=(0,on.Vr)(b).find(ee=>ee.cid===x);if(!z)return;const{cid:W}=(0,a.Ur)(b),X=T[W];if(!X){u({type:"entry:comment:fit-viewport",payload:{cid:x}});return}X.key===z.screenCid&&u({type:"entry:comment:fit-viewport",payload:{cid:x}})},"entry:comment:move-canvas":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{updates:x}}=R;const b=A();(0,on.AU)(b).forEach(L=>{var z;const W=(z=x.find(X=>X.key===L.canvasCid))==null?void 0:z.hotAttr;if(W){const{canvasVec2:X}=L,ee={x:W.x-W.w/2,y:W.y-W.h/2},pe=We.Z.add(ee,X),ye={x:pe.x,y:pe.y};u({type:"entry:comment:update:item",payload:{cid:L.cid,attr:ye}})}})},"entry:comment:update:atStyle":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x}}=R;const b=A(),T=(0,a.X_)(b),L=(0,a.ER)(b),z=(0,a.$S)(b),W=(0,Pt.mG)(x,{scale:T,offset:L,viewportRect:z}),X=T/100,ee=W.x*X+16,pe=W.y*X+16+20;u({type:"comment:update:atStyle",payload:{atStyle:{top:pe,left:ee}}})},"entry:comment:update:emojiToastStyle":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,scrollTop:b}}=R;const T=A(),L=(0,a.X_)(T),z=(0,a.ER)(T),W=(0,a.$S)(T),X=(0,Pt.mG)(x,{scale:L,offset:z,viewportRect:W}),ee=L/100;u({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:X.x*ee-20,top:X.y*ee-b+59}}})}};var Sa=i(63917),ln=i(43678),ta=i(41589),ko=i.n(ta),bo=i(47946),aa=i(2099),ma=i(21856),dr=i(8926),ni=i(15186),Ir=i(82009),$a=i(8614),Va=i(64320);const Ha={"entry:libStyle:add:usedLib:form:usedLibList":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{key:b}=x,T=A(),z=(0,$a.xg)(T).find(X=>X.key===b),W={...z.hotAttr,extInfo:{...z.hotAttr.extInfo,isRemove:!1}};u({type:"style-lib:add:addedLibList",payload:{...z,hotAttr:W}}),u({type:"style-lib:remove:usedLibList",payload:{key:b}})},"entry:libStyle:add:recommendLib":async(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const{lib:T}=b,L=u(),z=(0,$a.xg)(L),W=(0,$a.nC)(L),X=(0,a.HW)(L),ee=T.sclib_cid||(T==null||(A=T.hotAttr)==null||(A=A.extInfo)==null?void 0:A.flatKey);if(!W.get(ee)){const{sdkStore:Ie}=await(0,bo.O3)({flpakKey:ee});x({type:"style-lib:set:libSdkStoreMap",payload:{key:ee,value:Ie}})}x({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:ee}});const ye=(0,dr.$t)(T,X);x({type:"style-lib:add:addedLibList",payload:ye}),z.findIndex(Ie=>Ie.key===ye.key)!==-1&&x({type:"style-lib:remove:usedLibList",payload:{key:ye.key}})},"entry:libStyle:remove:addedLibList":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{key:b}=x,T=A(),z=(0,$a.oo)(T).find(X=>X.key===b);u({type:"style-lib:remove:addedLibList",payload:{key:b}});const W={...z.hotAttr,extInfo:{...z.hotAttr.extInfo,isRemove:!0}};u({type:"style-lib:add:usedLibList",payload:{...z,hotAttr:W}})},"entry:libStyle:manage:set:needUpdateLibs":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();if((0,$a.$Y)(b))return;const L=(0,$a.oo)(b),z=(0,$a.nC)(b),W=[];var X=!1,ee=!1,pe;try{for(var ye=(0,ln.A)(L),Ie;X=!(Ie=await ye.next()).done;X=!1){const Nt=Ie.value;try{var Ue,Re;const $t=(Nt==null||(Ue=Nt.hotAttr.extInfo)==null?void 0:Ue.projectCid)||(Nt==null?void 0:Nt.cid);if($t.startsWith("mt"))continue;const An=await(0,Ir.Q)($t),zn=JSON.parse(An==null?void 0:An.release_info);if(zn?l()(Nt==null||(Re=Nt.hotAttr.extInfo)==null?void 0:Re.updateTime).isBefore(l()(zn==null?void 0:zn.updateTime)):!1){var ze;const Qn=sdkStore.getHotItem(Nt==null?void 0:Nt.key),Sn=Qn==null||(ze=Qn.hotAttr)==null||(ze=ze.extInfo)==null?void 0:ze.flatKey,Wo=(0,aa.xT)({type:"all",libKey:Sn}).map(Ea=>({...Ea,hotAttr:{...Ea.hotAttr,libKey:""}})),qo=(0,aa.r)(sdkStore,Sn),ua=(0,aa.Ny)(sdkStore,Sn);if(Wo.length>0||qo.length>0||ua.length>0){const Ea=z.get(Sn),wa=await(0,aa.f9)({libKey:Sn,oldStyleList:[...Wo,...qo],oldMubanList:[...ua],sclibSdkStore:Ea});if(wa.length>0){const Ja={style:wa.filter(La=>(La==null?void 0:La.hotAttr.type)==="rResStyle"),var:wa.filter(La=>(La==null?void 0:La.hotAttr.type)==="rResVar"),muban:wa.filter(La=>(La==null?void 0:La.hotAttr.type)==="rResBunch")};W.push({...Qn,...zn,updateMap:Ja})}}}}catch($t){console.log("e",$t)}}}catch(Nt){ee=!0,pe=Nt}finally{try{X&&ye.return!=null&&await ye.return()}finally{if(ee)throw pe}}W.length>0&&u({type:"style-lib:set:needUpdateLibs",payload:W});const st=Date.now(),xt=st-((x==null?void 0:x.startTime)||st);xt>0&&xt<1e3?setTimeout(()=>{u({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!0}})},1e3):u({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!0}})},"entry:libStyle:manage:add:lib:from:paste:widget":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{subs:b}=x,T=new Set;b.forEach(ze=>{var st,xt;const Nt=(ze==null||(st=ze.attr)==null?void 0:st.lK)||(ze==null||(xt=ze.hotAttr)==null?void 0:xt.libKey);Nt&&T.add(Nt)});const L=A(),z=(0,$a.oo)(L),W=(0,a.m1)(L),X=(0,a.HW)(L),ee=(0,$a.xg)(L),pe=(0,$a.nC)(L),ye=(0,a.PL)(L),Ue=(await(0,Ir.Ct)(W.cid)).filter(ze=>ze.cid!==ye.cid);let Re=(0,$a.Qe)(L);Re.length===0&&(Re=await(0,Ir.jC)());for(const ze of Array.from(T)){const st=Ue.findIndex(Sn=>Sn.sclib_cid===ze)!==-1,xt=Re.findIndex(Sn=>Sn.sclib_cid===ze)!==-1;if(!st&&!xt||z.findIndex(Sn=>{var Wo;return(Sn==null||(Wo=Sn.hotAttr)==null||(Wo=Wo.extInfo)==null?void 0:Wo.flatKey)===ze})!==-1)continue;const $t=ee.find(Sn=>{var Wo;return(Sn==null||(Wo=Sn.hotAttr)==null||(Wo=Wo.extInfo)==null?void 0:Wo.flatKey)===ze});if($t){const Sn=(0,dr.$t)($t,X);u({type:"style-lib:add:addedLibList",payload:Sn}),u({type:"style-lib:remove:usedLibList",payload:{key:$t.key}}),u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:ze}});continue}const An=Ue.find(Sn=>Sn.sclib_cid===ze),zn=Re.find(Sn=>Sn.sclib_cid===ze),lo=An||zn,Qn=(0,dr.$t)(lo,X);if(u({type:"style-lib:add:addedLibList",payload:Qn}),!pe.get(ze)){const{sdkStore:Sn}=zn?await(0,bo.O3)({flpakKey:ze}):await(0,bo.tr)({flpakKey:ze});u({type:"style-lib:set:libSdkStoreMap",payload:{key:ze,value:Sn}})}u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:ze}}),u({type:"style-lib:set:attr",payload:{teamLibList:Ue}})}}};var or=i(42459);const gi={"entry:libStyle:mubanPanel:init:libMubanTreeMap":async B=>{let{getState:R,dispatch:A}=B;const u=R();if((0,$a.kR)(u))return;const b=(0,$a.nC)(u),T=(0,$a.oo)(u);{const pe=new Map,ye=(0,aa.t_)();if(ye.length&&pe.set("local",ye),T.length>0){var L=!1,z=!1,W;try{for(var X=(0,ln.A)(T),ee;L=!(ee=await X.next()).done;L=!1){const Ie=ee.value;{const Ue=Ie.hotAttr.extInfo.flatKey,Re=b.get(Ue);pe.set(Ue,(0,aa.t_)(Re))}}}catch(Ie){z=!0,W=Ie}finally{try{L&&X.return!=null&&await X.return()}finally{if(z)throw W}}}pe.size>0&&A({type:"style-lib:set:attr",payload:{libMubanTreeMap:pe}}),A({type:"style-lib:set:attr",payload:{isFetchMubanData:!0}})}},"entry:libStyle:update:mubanPanel:libMubanTreeMap":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{libFlatKey:b,needUpdate:T=!1}}=R;const L=u(),z=(0,$a.fn)(L);if(!T&&z.get(b))return;const X=(A=(0,$a.nC)(L).get(b))!=null?A:sdkStore,ee=(0,aa.t_)(X),pe=new Map(z);pe.set(b,ee),x({type:"style-lib:set:attr",payload:{libMubanTreeMap:pe}})},"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{libKey:b,key:T,supKey:L="B@ref-muban"}=x,z=A();let X=[...(0,$a.fn)(z).get(b)];if(L==="B@ref-muban"||!L)X=(0,or.Op)(X,ee=>ee.key===T);else{const ee=X.find(pe=>pe.key===L);(ee==null?void 0:ee.sub.length)===1&&(ee==null?void 0:ee.sub[0])===T?X=(0,or.Op)(X,pe=>pe.key===L):X=X.map(pe=>pe.key===L?{...pe,children:(0,or.Op)(pe.children,ye=>ye.key===T)}:pe)}u({type:"style-lib:update:libMubanTreeMap",payload:{key:b,val:X}})},"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{libKey:b,data:T,supKey:L="B@ref-muban"}=x,z=A();let X=[...(0,$a.fn)(z).get(b)];L==="B@ref-muban"||!L?X=(0,or.u5)(X,T).sort((ee,pe)=>{var ye,Ie;return((ye=pe.hotAttr)==null?void 0:ye.zIndex)-((Ie=ee.hotAttr)==null?void 0:Ie.zIndex)}):X=X.map(ee=>ee.key===L?{...ee,children:(0,or.u5)(ee.children,T).sort((pe,ye)=>{var Ie,Ue;return((Ie=ye.hotAttr)==null?void 0:Ie.zIndex)-((Ue=pe.hotAttr)==null?void 0:Ue.zIndex)})}:ee),u({type:"style-lib:update:libMubanTreeMap",payload:{key:b,val:X}})},"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{libKey:b,data:T,supKey:L="B@ref-muban"}=x,z=A();let X=[...(0,$a.fn)(z).get(b)];L==="B@ref-muban"||!L?X=(0,or.$G)(X,ee=>ee.key===T.key,T):X=X.map(ee=>ee.key===L?{...ee,children:(0,or.$G)(ee.children,pe=>pe.key===T.key,T)}:ee),u({type:"style-lib:update:libMubanTreeMap",payload:{key:b,val:X}})}};var Qr=i(8580),Qi=i(83744);const rs=B=>{var R,A;const u=ko()(B==null||(R=B.refStyles)==null?void 0:R.color),x=ko()(B==null||(A=B.refStyles)==null?void 0:A.refVars);if(u){var b,T,L,z,W,X;u!=null&&(b=u.fill)!=null&&b.solidColor&&(u==null||(T=u.fill)==null||delete T.solidColor),u!=null&&(L=u.border)!=null&&L.bdrColor&&(u==null||(z=u.border)==null||delete z.bdrColor),u!=null&&(W=u.shadow)!=null&&W.shadowColor&&(u==null||(X=u.shadow)==null||delete X.shadowColor)}if(x){var ee,pe;x!=null&&(ee=x.border)!=null&&ee.bdrWidth&&(x==null||(pe=x.border)==null||delete pe.bdrWidth),x!=null&&x.borderRadius&&(x==null||delete x.borderRadius),x!=null&&x.shadow&&(x==null||delete x.shadow)}return{color:u,refVars:x}},Li={"entry:libStyle:init":async B=>{var R,A;let{getState:u,dispatch:x}=B;const b=u();if((0,$a.SP)(b))return;const L=(0,a.PL)(b),z=(0,a.m1)(b),W=sdkStore.getSubHotItemList("B@ext").filter(Qn=>Qn.hotAttr.extType==="extProtoLib"),X=await(0,Ir.NY)({cid:L.cid,libs:[...W.map(Qn=>Qn.hotAttr.extInfo.projectCid),L.cid]}),pe=(await(0,Ir.Ct)(z.cid)).filter(Qn=>Qn.cid!==L.cid),ye=await(0,Ir.jC)(),Ie=new Map,Ue=[];var Re=!1,ze=!1,st;try{for(var xt=(0,ln.A)(W),Nt;Re=!(Nt=await xt.next()).done;Re=!1){const Qn=Nt.value;{const Sn=ko()(Qn),Wo=pe.find(Ea=>Ea.cid===Qn.hotAttr.extInfo.projectCid),qo=X.find(Ea=>Ea.cid===Qn.hotAttr.extInfo.projectCid),ua=Qn.hotAttr.extInfo.projectCid.startsWith("mt");if(ua){const Ea=ye.find(wa=>wa.cid===Qn.hotAttr.extInfo.projectCid);Ea&&(Ea==null?void 0:Ea.cover)!==Qn.hotAttr.extData&&(Sn.hotAttr.extData=Ea.cover),Ue.push(Sn)}if(qo){var $t;Qn.hotAttr.name!==qo.name&&(Sn.hotAttr.name=qo.name,sdkStore.updateHotAttrKV(Qn.key,"name",qo.name)),(qo.deleted||qo.is_sclib===!1||qo.in_same_space===!1)&&(Qn.hotAttr.extInfo.isRemove||(Sn.hotAttr.extInfo.isRemove=!0),Sn.hotAttr.isCanNotUse=!0),Qn.hotAttr.extInfo.flatKey!==qo.sclib_cid&&qo.sclib_cid&&(Sn.hotAttr.extInfo.flatKey=qo.sclib_cid);const Ea=Wo!=null&&Wo.is_custom_cover?Wo==null?void 0:Wo.custom_cover:($t=Wo==null?void 0:Wo.cover)!=null?$t:"";Qn.hotAttr.extData!==Ea&&(Sn.hotAttr.extData=Ea),Ue.push(Sn)}if(!Sn.hotAttr.isCanNotUse){const Ea=Sn.hotAttr.extInfo.flatKey,{sdkStore:wa}=ua?await(0,bo.O3)({flpakKey:Ea}):await(0,bo.tr)({flpakKey:Ea});Ie.set(Ea,wa)}}}}catch(Qn){ze=!0,st=Qn}finally{try{Re&&xt.return!=null&&await xt.return()}finally{if(ze)throw st}}const An=(R=(A=X.find(Qn=>Qn.cid===L.cid))==null?void 0:A.is_sclib)!=null?R:!1;if(An){const Qn=MB.sclibKey,{sdkStore:Sn}=await(0,bo.tr)({flpakKey:Qn});Ie.set(Qn,Sn)}const zn=Ue.filter(Qn=>!Qn.hotAttr.extInfo.isRemove),lo=Ue.filter(Qn=>Qn.hotAttr.extInfo.isRemove);sdkStore.updateHotItemBatch(Ue),x({type:"style-lib:set:attr",payload:{isLoadedInitialData:!0,isCurrentProjectSclib:An,addedLibList:zn,usedLibList:lo,libSdkStoreMap:Ie,recommendLibList:ye,teamLibList:pe}})},"entry:libStyle:text:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),{title:L,desc:z,textAttr:W,refStyles:X,sup:ee}=x,{hotItems:pe,name:ye}=(0,aa.ws)(L,"text",ee),Ie=(0,ma.Z_)(ee||"B@style"),Ue={...W},Re=X!=null?X:{},ze=(0,aa.QH)({name:ye,zIndex:Ie+1,styleType:"text",desc:z,libKey:"",...Ue},pe.length>0?pe[pe.length-1].key:ee);u({type:"settings:update:currentTextRefStyle",payload:ze});let st=[];T.length>0&&(st=(0,dr.d0)({selections:T,attrs:W,isAutoSize:!0,currentRefStyle:ze,isDelRef:!0}),(0,Qi.Xq)(st.map(Nt=>(0,Qr.Op)(Nt.key,Nt.hotAttr))));const{color:xt}=rs({refStyles:Re});st.push({key:ze.key,hotAttr:{refStyles:{color:xt}}}),u({type:"entry:widget:change",payload:{flatChgList:st}}),setTimeout(()=>{(0,aa.qP)(ze.key)},100)},"entry:libStyle:text:edit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),L=(0,a.eo)(b),{title:z,desc:W,textAttr:X,refStyles:ee,currentKey:pe,isNeedUpdateWidget:ye}=x,Ie=sdkStore.getHotItem(pe);if(Ie){var Ue,Re;let xt=Ie.sup,Nt=z;const{hotItems:$t,name:An}=(0,aa.ws)(z,"text",xt);$t.length>0&&(xt=(Ue=$t[$t.length-1])==null?void 0:Ue.key),Nt=An;const zn={...Ie,hotAttr:{...Ie.hotAttr,name:Nt,desc:W,refStyles:ee,...X},sup:xt};if(sdkStore.updateHotItem(zn),((Re=(0,aa.OP)({selections:T,styleType:"text"}))==null?void 0:Re.key)===pe&&u({type:"settings:update:currentTextRefStyle",payload:zn}),ye){var ze,st;const{flatChgList:lo,otherPageFlatChgList:Qn,isUpdateBasket:Sn}=(0,dr.Gh)({currentPageKey:L,currentKey:pe,attrs:X});u({type:"entry:widget:change",payload:{flatChgList:lo}}),Sn&&u({type:"entry:rebuild:screen-widget-tree"});const Wo=lo.length>0?(0,Qr.Op)((ze=lo[0])==null?void 0:ze.key):Qn.length>0?(0,Qr.Op)((st=Qn[0])==null?void 0:st.key):{...zn.hotAttr,...zn,type:"wRichText"};(0,Qi.Xq)([Wo]),setTimeout(()=>{sdkStore.updateHotItemBatch(Qn)},16)}}},"entry:libStyle:appear:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),{title:L,desc:z,appearAttr:W,sup:X,refStyles:ee}=x,{hotItems:pe,name:ye}=(0,aa.ws)(L,"appear",X),Ie=(0,ma.Z_)(X||"B@style"),Ue=ee!=null?ee:{},Re={...W},ze=(0,aa.QH)({name:ye,zIndex:Ie+1,styleType:"appear",desc:z,libKey:"",...Re},pe.length>0?pe[pe.length-1].key:X);u({type:"settings:update:currentAppearRefStyle",payload:ze});let st=[];T.length>0&&(st=T.map(Nt=>{var $t,An;const zn=($t=sdkStore.getHotItem(Nt))==null?void 0:$t.hotAttr,{color:lo,refVars:Qn}=rs(zn);return{key:Nt,hotAttr:{refStyles:{color:lo,text:zn==null||(An=zn.refStyles)==null?void 0:An.text,appear:ze==null?void 0:ze.key},refVars:Qn,...W,...(0,dr.St)({...zn,key:Nt},W.borderRadius)}}}));const{color:xt}=(0,dr.Pn)({refStyles:Ue});st.push({key:ze.key,hotAttr:{refStyles:{color:xt}}}),u({type:"entry:widget:change",payload:{flatChgList:st}}),setTimeout(()=>{(0,aa.qP)(ze.key)},100)},"entry:libStyle:appear:edit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),L=(0,a.eo)(b),{title:z,desc:W,appearAttr:X,refStyles:ee,currentKey:pe,isNeedUpdateWidget:ye}=x,Ie=sdkStore.getHotItem(pe);if(Ie){var Ue,Re;let ze=Ie.sup,st=z;const{hotItems:xt,name:Nt}=(0,aa.ws)(z,"appear",ze);xt.length>0&&(ze=(Ue=xt[xt.length-1])==null?void 0:Ue.key),st=Nt;const $t={...Ie,hotAttr:{...Ie.hotAttr,name:st,desc:W,refStyles:ee,...X},sup:ze};if(sdkStore.updateHotItem($t),((Re=(0,aa.OP)({selections:T,styleType:"appear"}))==null?void 0:Re.key)===pe&&u({type:"settings:update:currentAppearRefStyle",payload:$t}),ye){const{flatChgList:An,otherPageFlatChgList:zn,isUpdateBasket:lo}=(0,dr.ER)({currentPageKey:L,currentKey:pe,attrs:X});u({type:"entry:widget:change",payload:{flatChgList:An}}),lo&&u({type:"entry:rebuild:screen-widget-tree"}),setTimeout(()=>{sdkStore.updateHotItemBatch(zn)},16)}}},"entry:libStyle:use:appearRef":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:T}=R;const L=x(),z=(0,ea.I5)(L),W=(0,a.th)(L),X=(0,a.Hi)(L),ee=(0,Ae.p$)(L),{currentRefStyle:pe,onSetRefStyle:ye}=T;if((pe==null||(A=pe.hotAttr)==null?void 0:A.styleType)==="color"){var Ie,Ue;const ze=(Ie=(Ue=sdkStore.getHotItem(z.currentKey))==null||(Ue=Ue.hotAttr)==null?void 0:Ue.refStyles)!=null?Ie:{};if(z.type==="create")ze.appear=z.currentKey;else{var Re;const Nt=(Re=ko()(ze==null?void 0:ze.color))!=null?Re:{},$t=X==null?void 0:X.split("-");(0,aa.$b)({supAttrArr:$t,color:Nt,key:W,val:pe==null?void 0:pe.key}),ze.color=Nt}let st;switch(W){case"solidColor":st={fill:{...z.attrs.fill,solidColor:pe==null?void 0:pe.hotAttr.fill}};break;case"bdrColor":st={border:{...z.attrs.border,bdrColor:pe==null?void 0:pe.hotAttr.fill}};break;case"shadowColor":st={shadow:{...z.attrs.shadow,shadowColor:pe==null?void 0:pe.hotAttr.fill}};break;default:break}const xt={...z.attrs,...st,refStyles:ze};b({type:"modal:update:libEditAppearModal:attrs",payload:xt}),ye(pe)}if((pe==null||(u=pe.hotAttr)==null?void 0:u.styleType)==="appear"){const ze={borderRadius:pe==null?void 0:pe.hotAttr.borderRadius,borderVisibility:pe==null?void 0:pe.hotAttr.borderVisibility,borderRadiusIsVisible:pe==null?void 0:pe.hotAttr.borderRadiusIsVisible,border:pe==null?void 0:pe.hotAttr.border,shadow:pe==null?void 0:pe.hotAttr.shadow,fill:pe==null?void 0:pe.hotAttr.fill};b({type:"settings:update:currentAppearRefStyle",payload:pe});const st=ee.map(xt=>{var Nt,$t;const An=(Nt=sdkStore.getHotItem(xt))==null?void 0:Nt.hotAttr,{color:zn,refVars:lo}=rs(An);return{key:xt,hotAttr:{...ze,...(0,dr.St)({...An,key:xt},ze.borderRadius),refStyles:{color:zn,text:An==null||($t=An.refStyles)==null?void 0:$t.text,appear:pe==null?void 0:pe.key},refVars:lo}}});b({type:"entry:widget:change",payload:{flatChgList:st}})}b({type:"entry:auto:show:hide:item"})},"entry:libStyle:use:textRef":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:T}=R;const L=x(),z=(0,ea.md)(L),W=(0,a.th)(L),X=(0,a.Hi)(L),ee=(0,Ae.p$)(L),{currentRefStyle:pe,onSetRefStyle:ye}=T;if((pe==null||(A=pe.hotAttr)==null?void 0:A.styleType)==="color"){var Ie,Ue;const ze=(Ie=(Ue=sdkStore.getHotItem(z.currentKey))==null||(Ue=Ue.hotAttr)==null?void 0:Ue.refStyles)!=null?Ie:{};if(z.type==="create")ze.text=z.currentKey;else{var Re;const xt=(Re=ko()(ze==null?void 0:ze.color))!=null?Re:{},Nt=X==null?void 0:X.split("-");(0,aa.$b)({supAttrArr:Nt,color:xt,key:W,val:pe==null?void 0:pe.key}),ze.color=xt}const st={...z.attrs,textColor:(0,ni.t0)(pe==null?void 0:pe.hotAttr.fill),refStyles:ze};b({type:"modal:update:libEditTextModal:attrs",payload:st}),ye(pe)}if((pe==null||(u=pe.hotAttr)==null?void 0:u.styleType)==="text"){const ze={...pe.hotAttr};b({type:"settings:update:currentTextRefStyle",payload:pe});const st=(0,dr.d0)({selections:ee,attrs:ze,currentRefStyle:pe,isDelRef:!0});b({type:"entry:widget:change",payload:{flatChgList:st}}),(0,Qi.Xq)(st.map(xt=>(0,Qr.Op)(xt.key,{refStyles:xt.hotAttr.refStyles})))}b({type:"entry:auto:show:hide:item"})},"entry:libStyle:open:color:modal":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),{color:L=Va.OT,position:z,sup:W,onConfirm:X=()=>{},onCancel:ee=()=>{}}=x;u({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:z,type:"create",attr:"solidColor",supAttr:"fill",color:L,sup:W,onSetRefStyle:()=>{},onColorChange:pe=>{let{value:ye}=pe;if(T.length===0)return;const Ie=T.map(Ue=>{const Re=sdkStore.getHotItem(Ue);return{key:Ue,hotAttr:{fill:{...Re==null?void 0:Re.hotAttr.fill,...ye}}}});u({type:"entry:widget:change",payload:{flatChgList:Ie}})},onConfirm:X,onCancel:ee}}})},"entry:libStyle:re-build:treeData":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{type:b}=x,T=A(),L=(0,$a.Ip)(T);b==="color"&&(L.buildStyleTree("color"),u({type:"style-lib:set:attr",payload:{colorStyleTree:L.colorStyleTree}})),b==="appear"&&(L.buildStyleTree("appear"),u({type:"style-lib:set:attr",payload:{appearStyleTree:L.appearStyleTree}})),b==="text"&&(L.buildStyleTree("text"),u({type:"style-lib:set:attr",payload:{textStyleTree:L.textStyleTree}}))},"entry:libStyle:update:widget:refStyles":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{selections:b,type:T,key:L,supAttr:z,refKey:W}=x,X=z==null?void 0:z.split("-"),ee=b.map(pe=>{var ye,Ie;const Ue=(ye=(Ie=sdkStore.getHotItem(pe))==null||(Ie=Ie.hotAttr)==null?void 0:Ie.refStyles)!=null?ye:{};if(T==="color"){var Re;const ze=(Re=ko()(Ue==null?void 0:Ue.color))!=null?Re:{};return(0,aa.$b)({supAttrArr:X,color:ze,key:L,val:W}),{key:pe,hotAttr:{refStyles:{...Ue,color:ze}}}}return{key:pe,hotAttr:{refStyles:{...Ue,[L]:W}}}});u({type:"entry:widget:change",payload:{flatChgList:ee}}),z==="richTextV1"&&L==="textColor"&&(0,Qi.Xq)(ee.map(pe=>(0,Qr.Op)(pe.key,{refStyles:pe.hotAttr.refStyles})))},"entry:libStyle:del:widget:refStyles":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,ea.md)(b),L=(0,ea.I5)(b),{type:z,selections:W,key:X,supAttr:ee,updateType:pe="widget",refStyle:ye,refKey:Ie,isLibText:Ue=!1}=x,Re=ee==null?void 0:ee.split("-"),ze=W.map(st=>{var xt,Nt,$t,An;const zn=pe==="textRef"?T.refStyles:pe==="appearRef"?L.refStyles:Ue?(xt=(Nt=sdkStore.getHotItem(Ie))==null||(Nt=Nt.hotAttr)==null?void 0:Nt.refStyles)!=null?xt:{}:($t=(An=sdkStore.getHotItem(st))==null||(An=An.hotAttr)==null?void 0:An.refStyles)!=null?$t:{};if(Ue&&zn!=null&&zn.color)return{key:st,hotAttr:{refStyles:{...zn,text:void 0}}};if(z==="color"&&zn!=null&&zn.color){var lo;const Ea=(lo=ko()(zn==null?void 0:zn.color))!=null?lo:{};return(0,aa.$b)({supAttrArr:Re,color:Ea,key:X,actionType:"del"}),{key:st,hotAttr:{refStyles:{...zn,color:Ea}}}}else{let Ea={};if(z==="appear"){var Qn,Sn,Wo;Ea={...(Qn=ye==null||(Sn=ye.hotAttr)==null||(Sn=Sn.refStyles)==null?void 0:Sn.color)!=null?Qn:{},richTextV1:{...zn==null||(Wo=zn.color)==null?void 0:Wo.richTextV1}}}if(z==="text"){var qo,ua;Ea={richTextV1:{...ye==null||(qo=ye.hotAttr)==null||(qo=qo.refStyles)==null||(qo=qo.color)==null?void 0:qo.richTextV1},...(ua=zn==null?void 0:zn.color)!=null?ua:{}}}return{key:st,hotAttr:{refStyles:{...zn,color:{...zn==null?void 0:zn.color,...Ea},[z]:void 0}}}}});if(ze.length>0)switch(pe){case"widget":u({type:"entry:widget:change",payload:{flatChgList:ze}}),u({type:"entry:auto:show:hide:item"});break;case"textRef":u({type:"modal:update:state",payload:{libEditTextModal:{...T,refStyles:ze[0].hotAttr.refStyles}}});break;case"appearRef":u({type:"modal:update:state",payload:{libEditAppearModal:{...L,refStyles:ze[0].hotAttr.refStyles}}});break;default:u({type:"entry:widget:change",payload:{flatChgList:ze}});break}Ue&&z==="color"&&u({type:"settings:update:currentTextRefStyle",payload:null})},"entry:libStyle:del:widget:colorRefStyles:by:refKey":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{selections:b,refKey:T}=x,L=b.map(z=>{var W,X,ee;const pe=(W=(X=sdkStore.getHotItem(z))==null||(X=X.hotAttr)==null?void 0:X.refStyles)!=null?W:{},ye=(ee=ko()(pe==null?void 0:pe.color))!=null?ee:{},Ie=(0,aa.rf)(ye,T);for(const Ue of Ie){const Re=Ue.split("-"),ze=Re[Re.length-1],st=Re.splice(0,Re.length-1);(0,aa.$b)({supAttrArr:st,color:ye,key:ze,val:T,actionType:"del"})}return{key:z,hotAttr:{refStyles:{...pe,color:ye}}}});u({type:"entry:widget:change",payload:{flatChgList:L}})},...Ha,...gi};var ns=i(63172),Es=i(60129),ys=i(16666);const sr={"entry:initial:guide:task":async B=>{let{dispatch:R}=B;if((0,ve.Ge)()){const A=MB.commonGuideHelper.getState().commonGuidesHasShown;R({type:"update:taskList:data",payload:{completeList:A}}),Es._D.every(b=>A.includes(b))&&R({type:"update:taskList:completed"}),Es.vY.every(b=>A.includes(b))&&(R({type:"update:taskList:completed"}),MB.commonGuideHelper.batchMarkGuideAsRead(Es._D)),ENV.IS_MO&&Es._D.every(T=>A.indexOf(T)===-1)&&(0,bt.kH)("novice_task_V8",{operation_type:"\u65E0"})}else R({type:"update:taskList:completed"})},"entry:update:guide:task":async(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{taskType:b}}=R;if(!(0,ve.Ge)())return;const T=u();if((0,a.jj)(T))return;const{scene_tag:z}=(0,a.PL)(T);if((A=MB.commonGuideHelper)!=null&&A.checkGuideHasShown&&MB.commonGuideHelper.checkGuideHasShown(b))return;await MB.commonGuideHelper.markGuideAsRead(b);const W=MB.commonGuideHelper.getState().commonGuidesHasShown;if(x({type:"update:taskList:data",payload:{completeList:W}}),(z==null?void 0:z.split("-")[0])==="DS"&&!MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_NOVICE_2309))return;if(Es._D.every(ye=>W.includes(ye))){x({type:"update:taskList:completed"});try{ENV.IS_MO?x({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!0,orgCid:"",addDay:!1}}}):await x({type:"entry:fetch:guideTask:award"})}catch(ye){console.error("guide error:",ye)}!ENV.IS_MO&&(0,bt.kH)("novice_task_V8",{operation_type:"\u7ED3\u675F"})}if(ENV.IS_MO){var pe;const ye=(pe=Es.Pr.find(Ie=>Ie.guideKey===b))==null?void 0:pe.track;(0,bt.kH)("novice_task_V8",{operation_type:ye})}},"entry:show:taskList":B=>{let{dispatch:R}=B;R({type:"update:taskList:isHide",payload:{isHide:!1}}),R({type:"update:taskList:isCollapse",payload:{isCollapse:!1}})},"entry:hide:taskList":B=>{let{dispatch:R}=B;R({type:"update:taskList:isHide",payload:{isHide:!0}}),R({type:"update:taskList:isCollapse",payload:{isCollapse:!0}})},"entry:fetch:guideTask:award":async B=>{var R,A;let{getState:u,dispatch:x}=B;if((R=MB)!=null&&R.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_AWARDED))return;(A=MB)==null||A.commonGuideHelper.markGuideAsRead(m.c.GUIDE_AWARDED);const b=u(),T="v8_proto",L=(0,a.wA)(b),{data:z}=await(0,ys.Qt)(T);setTimeout(()=>x({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!0,org:L,coupons:[z]}}}),2e3)}};var mi=i(88670),Bt=i(3902),vn=i(75627),Io=i(19713),No=i(33421);const _a={"entry:findReplacePanel:search":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isCurrentScreen:x,searchValue:b}}=R;const T=A(),L=(0,a.eo)(T),z=(0,Lt.jI)(T),W=(0,Lt.bt)(T);u({type:"findReplacePanel:update",payload:{status:vn.nW.searching}});const X=(0,Io.wp)({isCurrentScreen:x||z,currentScreenCid:L}),ee=[],pe=[];let ye=null;const Ie=z&&sdkStore.getHotItem(z);z&&(ye={widget:Ie,pageKey:(0,Io.bB)(z)});const Ue=new Set;(0,Io.k1)({widgetList:X,searchValue:b,findWidgetList:ee,findWidgetPanelList:pe,mubans:Ue,parent:ye});const Re=ee.length>0,ze=Re?vn.nW.hasResults:vn.nW.notFound;if(u({type:"findReplacePanel:update",payload:{findWidgetList:ee,findWidgetPanelList:pe,status:ze}}),Re)if(u({type:"entry:findReplacePanel:select:widget",payload:{index:1}}),u({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),z){const st=W||(Ie==null?void 0:Ie.hotAttr.basket)==="bMuban";MB.notice({text:I18N.Popups.findReplacePanel.notice.searchedOther.replace(/%name%/,st?"\u6BCD\u7248":"\u52A8\u6001\u7EC4\u4EF6")})}else MB.notice({text:I18N.Popups.findReplacePanel.notice.searched})},"entry:findReplacePanel:select:widget":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{index:x}}=R;const b=A(),T=(0,Bt.sI)(b),L=(0,Lt.jI)(b),z=(0,a.eo)(b),{searchValue:W}=(0,Bt.Gh)(b),X=T[x-1];if(!X)return;const{index:ee,parent:pe}=X;if(pe&&!(0,Io.kB)(pe)){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:x}});return}const ye=(0,Io.kB)(X);if(!ye){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:x}});return}const Ie=(0,Io.YU)(ye,W);if(Ie.length===0||ee>=Ie.length){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:x}});return}if(X){const{parent:Ue,widget:Re,pageKey:ze}=X,st=ze===z;if(Ue)st&&L?u({type:"entry:findReplacePanel:goto:widget",payload:{select:X,parent:Ue}}):(L&&u({type:"entry:exit:edit:basket"}),u({type:"entry:findReplacePanel:goto:panel:widget",payload:{parent:Ue}}),u({type:"entry:findReplacePanel:goto:widget",payload:{select:X,parent:Ue}}));else{const{isInPanel:xt}=X;L&&!xt&&u({type:"entry:exit:edit:basket"}),u({type:"entry:findReplacePanel:goto:widget",payload:{select:X,isSamePanel:st}})}u({type:"findReplacePanel:update",payload:{findSelectWidgetCid:Re.key,selectIndex:x}}),u({type:"entry:design:zoom:widget",payload:{hotItem:ye,mindKey:X.mindKey}})}},"entry:findReplacePanel:goto:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{select:x,parent:b=null,isSamePanel:T=!1}}=R;const L=A(),z=(0,a.eo)(L),{widget:W,isInPanel:X,pageKey:ee,mindKey:pe}=x;let ye=!1;ee!==z&&!b&&(X||(u({type:"entry:goto:project-alike",payload:{screenMetaCid:ee}}),u({type:"screen:update:screen-selection",payload:{screenSelection:[ee]}}),ye=!0),T||(u({type:"entry:goto:project-alike",payload:{screenMetaCid:ee}}),ye=!0)),u({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),W.hotAttr.type===P.x.WMindNode?pe&&u({type:"entry:select:items",payload:{cids:[pe]}}):u({type:"entry:select:items",payload:{cids:[W.key]}}),ye&&MB.notice({text:I18N.Popups.findReplacePanel.notice.gotoOtherPages})},"entry:findReplacePanel:goto:panel:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{parent:x}}=R;const{widget:b}=x;u({type:"entry:edit:basket:directly",payload:{basketKey:b.key}})},"entry:findReplacePanel:replace:widget":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.eo)(u),b=Ce.y.query.getMissFontHiKeySet(u),{selectIndex:T,findWidgetList:L,searchValue:z,replaceValue:W}=(0,Bt.Gh)(u),X=L[T-1],{index:ee,pageKey:pe}=X,ye=(0,Io.kB)(X),Ie=L.length,Ue=T>=Ie?1:T;if(ye){const Re=(0,Io.YU)(ye,z),ze=(0,Io.t$)(W).includes((0,Io.t$)(z)),st=(0,No.mR)(b,ye.key);if(Re.length>0&&ee<=Re.length-1){const xt=Re[ee];if(st){const $t=T>=Ie?1:T+1;A({type:"entry:findReplacePanel:select:widget",payload:{index:$t}}),(0,No.od)();return}const{newItem:Nt}=(0,Io.qk)({hotItem:ye,matchValue:z,replaceValue:W,current:xt});if(Nt){if(sdkStore.updateHotItem(Nt),pe===x&&A({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[Nt]}}),!ze){const $t=(0,Io.LH)(L,T,Nt);A({type:"findReplacePanel:update",payload:{findWidgetList:$t,selectIndex:Ue}}),$t.length===0?A({type:"findReplacePanel:update",payload:{status:vn.nW.notFound,selectIndex:1}}):(A({type:"findReplacePanel:update",payload:{selectIndex:Ue}}),A({type:"entry:findReplacePanel:select:widget",payload:{index:Ue}}))}MB.notice({text:I18N.Popups.findReplacePanel.notice.singleReplaceSuccess,type:"success"});return}}}MB.notice({text:I18N.Popups.findReplacePanel.notice.searchNotFound})},"entry:findReplacePanel:replace:all:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{handleReplaceAllNotice:x}}=R;const b=A(),T=Ce.y.query.getMissFontHiKeySet(b),{findWidgetList:L,searchValue:z,replaceValue:W}=(0,Bt.Gh)(b),X=(0,a.eo)(b),ee=(0,Io.FH)(L),pe=[];let ye=!1;for(const st of ee)(0,No.mR)(T,st[0].widget.key)?ye=!0:pe.push(st);const Ie=(0,Io.t$)(W).includes((0,Io.t$)(z));let Ue=[];const Re=[],ze=[];pe.forEach(st=>{const{widget:xt,pageKey:Nt}=st[0],$t=(0,Io.kB)(st[0]),An=(0,Io.YU)(xt,z);if($t){const zn=(0,Io.YU)($t,z);if(zn.length>0){Re.push(zn);const lo=(0,Io.Ly)({hotItem:$t,matchValue:z,replaceValue:W,indexs:zn});ze.push(lo),Nt===X&&u({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[lo]}})}zn.length<An.length&&(Ue=Ue.concat(new Array(An.length-zn.length).fill(1)))}else Ue.push(An)}),sdkStore.updateHotItemBatch(ze),x(Re.flat(),Ue.flat()),Ie||u({type:"findReplacePanel:update",payload:{findWidgetList:[],selectIndex:1,status:vn.nW.notFound}}),ye&&(0,No.od)()},"entry:findReplacePanel:delete:current:item":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{index:x}}=R;const b=A(),L=(0,Bt.sI)(b).filter((z,W)=>x-1!==W);if(await u({type:"findReplacePanel:update",payload:{findWidgetList:L}}),L.length===0)u({type:"findReplacePanel:update",payload:{status:vn.nW.notFound,selectIndex:1}});else{const z=L.length,W=x>=z?z:x;u({type:"entry:findReplacePanel:select:widget",payload:{index:W}})}MB.notice({text:I18N.Popups.findReplacePanel.notice.nextNotFound})},"entry:findReplacePanel:toggle:show":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,h.Xf)(u),b=(0,h.uE)(u),T=(0,Bt.jQ)(u),z=x?b+0:0,W=(0,D.Yt)(vn.nb,56,D.qW.Number),X=(0,D.Yt)(vn.Zz,z+8,D.qW.Number);A({type:"findReplacePanel:update",payload:{show:!T,isFocusPanel:!T}}),A({type:"findReplacePanel:set:position",payload:{position:{top:W,left:X}}}),A({type:"mind:exit:edit:state"}),T&&A({type:"findReplacePanel:reset:state"})},"entry:findReplacePanel:remove:findSelectWidgetCid":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{selections:x}}=R;const b=A(),T=(0,Bt.gP)(b);if(T&&x.includes(T)){const z=(0,Bt.sI)(b).filter(W=>W.widget.key!==T);u({type:"findReplacePanel:update",payload:{findSelectWidgetCid:"",selectIndex:0,findWidgetList:z}})}}};var Ur=i(77938),fr=i(70169),Ar=i(67526),zr=i(47163),Fr=i(55052),os=i(87945);const Ei={"entry:autoFillPanel:toggle:show":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ur.wb)(b),{canClose:L=!0,openFrom:z,defaultTab:W,position:X,isShowClose:ee=!0,canShowAllTab:pe=!0}=x;if(X)u({type:"autoFillPanel:set:position",payload:{position:X}});else{const ye=(0,D.Yt)(Ar.i,52,D.qW.Number),Ie=(0,D.Yt)(Ar.W,215,D.qW.Number);u({type:"autoFillPanel:set:position",payload:{position:{top:ye,left:Ie}}})}L?(u({type:"autoFillPanel:update",payload:{show:!T,openFrom:z,defaultTab:W,isShowClose:ee,canShowAllTab:pe}}),T&&u({type:"autoFillPanel:reset:state"})):u({type:"autoFillPanel:update",payload:{show:!0,openFrom:z,defaultTab:W,isShowClose:ee,canShowAllTab:pe}})},"entry:autoFill:update:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=Ce.y.query.getMissFontHiKeySet(b),{widgetType:L,data:z,type:W,device:X}=x,ee=(0,Lt.$W)(b),pe=(0,Ur.Hh)(b);let ye=!1,Ie;if(W==="create")L===P.x.WRichText?Ie=(0,we.gu)({type:P.x.WRichText,attrs:{richText:(0,we.DV)(z.content,(0,zr.w)(),X)}}):L===P.x.WImage&&(Ie=(0,ne.BL)(z)),(0,S.Q7)([Ie],Ie.width||Ie.w,Ie.height||Ie.h);else if(W==="update"){var Ue;let Re;switch(L){case P.x.WRichText:{const ze=[];z.forEach(st=>{if(T.has(st.key)){ye=!0;return}const xt=(0,fr.oB)(st,st.content);xt&&ze.push({key:xt.key,hotAttr:xt.hotAttr})}),ze!=null&&ze.length&&(Re=ze);break}case P.x.WImage:{Re=z.map(ze=>{const st=(0,Fr.JB)(ze.asset,[ze])[0];return delete ze.asset,{key:ze.key,hotAttr:st}});break}case P.x.WPlaceholder:{Re=z.map(ze=>{const st=(0,Fr.De)(ze.asset,[ze])[0];return delete ze.asset,{key:ze.key,hotAttr:st}});break}case P.x.WCarousel:{Re=z.map(ze=>{const st=ko()(ze.carousel.slides);for(let xt=0;xt<ze.carousel.slides.length;xt++){const Nt=sdkStore.getHotItem(st[xt].asset)?sdkStore.getHotItem(st[xt].asset).hotAttr.extData:st[xt].asset;st[xt].asset=(0,ne.q4)("Carousel",Nt).key}return{key:ze.key,hotAttr:{carousel:{...ze.carousel,slides:st}}}});break}default:Re=z.map(ze=>{var st,xt;const Nt={...ze,name:ze.display_name||ze.name},$t=(st=sdkStore.getHotItem(ze.key))==null?void 0:st.hotAttr;if(Nt.type===P.x.WTable&&(xt=ze.refVars)!=null&&xt.cells&&$t){var An;const zn={...(An=ze.refVars)==null?void 0:An.cells};Object.keys(zn).forEach(lo=>{var Qn,Sn;((Qn=ze.cells[lo])==null?void 0:Qn.data)!==((Sn=$t.cells[lo])==null?void 0:Sn.data)&&delete zn[lo].data}),Nt.refVars={...$t.refVars,cells:zn}}return{key:ze.key,hotAttr:Nt}})}(Ue=Re)!=null&&Ue.length&&(u({type:"entry:widget:change",payload:{flatChgList:Re}}),u({type:"entry:auto:show:hide:item"})),ye&&(0,No._f)(),ee&&[os.G.QuickMenuText,os.G.QuickMenuImage].includes(pe)&&u({type:"autoFillPanel:reset:state"})}}};var Kl=i(28173),as=i(78257),al=i(81122),pd=i(11446);const Cd=B=>B.replace(/_(\w)/g,(R,A)=>A.toUpperCase()),wc={"entry:update:preference":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{isFromAbar:T}=(0,a.fv)(b)||{};await u({type:"entry:update:preference-data",payload:x}),u({type:"entry:update:ui:by:preference"}),T&&(0,al.sg)("currentTheme",x)},"entry:update:iconinfo":async(B,R)=>{let{dispatch:A}=B,{payload:u}=R;const{iconDefaultSize:x,iconDefaultColor:b}=u,T={};b&&(T.icon_color=b),x&&(T.icon_size=x),await A({type:"entry:update:preference-data",payload:T}),A({type:"entry:update:ui:by:iconinfo"})},"entry:update:history-colors":(B,R)=>{let{dispatch:A}=B,{payload:u}=R;const{historyColors:x}=u;A({type:"colorpanel:set:historyColors",payload:{historyColors:JSON.parse(x)}}),x&&A({type:"entry:update:preference-data",payload:{history_colors_v2:x}})},"entry:update:favorite-colors":(B,R)=>{let{dispatch:A}=B,{payload:u}=R;const{favoriteColors:x}=u;A({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:JSON.parse(x)}}),x&&A({type:"entry:update:preference-data",payload:{favorite_colors_v2:x}})},"entry:update:auto-fill-history":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attr:x,value:b}}=R;const T=A(),L={...(0,lt.dd)(T),[x]:b};u({type:"entry:update:preference-data",payload:{auto_fill_history:JSON.stringify(L)}})},"entry:update:color_panel_mode":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{mode:x}}=R;u({type:"entry:update:preference-data",payload:{color_panel_mode:x}})},"entry:update:preference_flags_by_sticky":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{info:x}}=R;const b=A(),T=(0,lt.uI)(b);if(x){const{showAuthor:L,showTime:z}=x;let W=(0,pd.TX)(T,L);W=(0,pd.F1)(W,z),u({type:"entry:update:preference-data",payload:{flags:W}})}},"entry:update:preference_flags":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{option:x,bool:b}}=R;const T=A(),L=(0,lt.uI)(T),z=(0,pd.jy)(L,x,b);u({type:"entry:update:preference-data",payload:{flags:z}})},"entry:update:preference-layout_v8":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{layout_v8:x}}=R;u({type:"entry:update:preference-data",payload:{layout_v8:x}});const b=A(),T=(0,h.OW)(b),{isEmptyScreen:L}=(0,Kl.C)(b);x==="old_right"&&T===as.lS.Directory&&u({type:"entry:resources:update:current:popup:panel",payload:{name:as.lS.Builtin}}),T||u({type:"entry:resources:update:current:popup:panel",payload:{name:x==="old_right"?as.lS.Builtin:as.lS.Directory}}),L&&x!=="old_right"&&u({type:"entry:resources:update:current:popup:panel",payload:{name:as.lS.Directory}}),setTimeout(()=>{u({type:"entry:update:viewport:rect"}),u({type:"entry:update:screen_list_rect"})},200)},"entry:update:preference-data":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{isDesign:T}=(0,a.W4)(b),L={};x&&Object.entries(x).forEach(z=>{let[W,X]=z;const ee=Cd(W);["builtinListInvisible","recentlyUsedScreenMetaIcons"].includes(ee)?L[ee]=new Set(JSON.parse(X)):ee==="autoFillHistory"||ee==="defaultFontFamily"||ee==="defaultFontSize"?L[ee]=JSON.parse(X):L[ee]=X}),await u({type:"preference:update:state",payload:L}),T&&await(0,G.SD)(x)},"preference:toggle:theme":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.O4)(u);A({type:"entry:update:preference",payload:{theme:x===M.Sx.LIGHT?M.Sx.DARK:M.Sx.LIGHT}}),A({type:"entry:init:ruler:canvas"})},"preference:toggle:multiplayerMouse":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.lU)(u);A({type:"entry:update:preference",payload:{isShowMultiCursor:!x}})},"preference:toggle:showRulerReferLine":B=>{let{getState:R,dispatch:A}=B;const u=R();if(!(0,lt.qT)(u)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const b=(0,lt.gf)(u);A({type:"entry:update:preference",payload:{show_ruler_line:!b}})},"preference:toggle:ruler":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.qT)(u);A({type:"entry:update:preference",payload:{ruler:!x}})},"preference:toggle:AlignLine":B=>{let{getState:R,dispatch:A}=B;const u=R();if(!(0,lt.qT)(u)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const b=(0,lt.Nn)(u);A({type:"entry:update:preference",payload:{show_align_line:!b}})},"preference:toggle:containSelect":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.vZ)(u);A({type:"entry:update:preference",payload:{contain_select:!x}})},"preference:toggle:useNativeEyedropper":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.AM)(u);A({type:"entry:update:preference",payload:{use_native_eyedropper:!x}})},"preference:toggle:dragMode":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.PI)(u);A({type:"entry:update:preference",payload:{show_drag_mode:!x}})},"preference:toggle:panelLinkDefaultTransition":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.Bl)(u);A({type:"entry:update:preference",payload:{panel_link_default_transition:x===0?1:0}})},"preference:toggle:stateLinkDefaultTransition":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.EK)(u);A({type:"entry:update:preference",payload:{state_link_default_transition:x===0?1:0}})}};var ba=i(74923),$r=i(85584),Ni=i(34121),Bs=i(20640),Ec=i(26034),ps=i(66361),Yl=i(53559),ls=i(79209),wl=i(72214);const Sc=B=>(0,$r.e7)(B.key).map(A=>{let{key:u}=A;return u}),lc=B=>{const R=B.map(x=>x.cid),A=[],u=x=>x.map(b=>({...b,children:u(b.children.filter(T=>{if(R.includes(T.cid))return A.push(T.cid),!0}))}));return u(B).filter(x=>!A.includes(x.cid))},Ic=B=>{const R=[],A=u=>{const{hotAttr:x,sub:b=[]}=sdkStore.getHotItem(u)||{};(x==null?void 0:x.bunch)===P.x.RbPage&&!(x!=null&&x.asFolder)?R.push(u):b.forEach(T=>A(T))};return B.forEach(u=>A(u)),R},Gc=(B,R)=>{let A=Fo(B,R);return A||mc(B,R)},mc=(B,R)=>{let A=B,u=sdkStore.getHotItem(A.sup);for(;(x=u)!=null&&x.key&&((b=u)==null?void 0:b.key)!=="@@M";){var x,b,T,L;let z=sdkStore.getSubHotItemList((T=u)==null?void 0:T.key).filter(X=>X.hotAttr.type==="rResBunch").sort((X,ee)=>{var pe,ye;return((pe=X.hotAttr)==null?void 0:pe.zIndex)-((ye=ee.hotAttr)==null?void 0:ye.zIndex)});const W=z==null?void 0:z.findIndex(X=>X.key===A.key);if(W>0)for(let X=W-1;X>=0;X--){let ee=Zc(z[X],R);if(ee)return ee}if(!((L=u)!=null&&L.hotAttr.asFolder)&&!R.includes(u.key))return u;A=u,u=sdkStore.getHotItem(A.sup)}return null},Zc=(B,R)=>{if(!B)return B;const A=sdkStore.getSubHotItemList(B.key).filter(u=>u.hotAttr.type==="rResBunch").sort((u,x)=>{var b,T;return((b=u.hotAttr)==null?void 0:b.zIndex)-((T=x.hotAttr)==null?void 0:T.zIndex)});if(A.length!==0)for(let u=A.length-1;u>=0;u--){let x=Zc(A[u],R);if(x)return x}return!B.hotAttr.asFolder&&!R.includes(B.key)?B:null},gc=(B,R)=>{if(!B||!B.hotAttr.asFolder&&!R.includes(B.key))return B;const A=sdkStore.getSubHotItemList(B.key).filter(u=>u.hotAttr.type==="rResBunch").sort((u,x)=>{var b,T;return((b=u.hotAttr)==null?void 0:b.zIndex)-((T=x.hotAttr)==null?void 0:T.zIndex)});if(A.length!==0)for(let u=0;u<A.length;u++){let x=gc(A[u],R);if(x)return x}return null},Fo=(B,R)=>{let A=B,u=sdkStore.getHotItem(A.sup);for(;(x=u)!=null&&x.key&&((b=u)==null?void 0:b.key)!=="@@M";){var x,b,T;let L=sdkStore.getSubHotItemList((T=u)==null?void 0:T.key).filter(W=>W.hotAttr.type==="rResBunch").sort((W,X)=>{var ee,pe;return((ee=W.hotAttr)==null?void 0:ee.zIndex)-((pe=X.hotAttr)==null?void 0:pe.zIndex)});const z=L==null?void 0:L.findIndex(W=>W.key===A.key);if(z+1<L.length)for(let W=z+1;W<L.length;W++){let X=gc(L[W],R);if(X)return X}A=u,u=sdkStore.getHotItem(A.sup)}return null},Ca={"entry:update:screen:list":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.z$)(u);if((0,Oo.St)()&&x.screen_visible_switch){const{screenTreeData:b,screenTreeMap:T,screenDataMap:L}=(0,Bs.wb)(x.screen_visible_list);A({type:"screen:set:all:screen-data",payload:{screenTreeData:b,screenTreeMap:T,screenDataMap:L}})}else{const{screenTreeData:b,screenTreeMap:T,screenDataMap:L}=(0,Bs.tb)("B@main");A({type:"screen:set:all:screen-data",payload:{screenTreeData:b,screenTreeMap:T,screenDataMap:L}})}},"entry:create:screen:auto:to:root-project":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={isCreateChildren:!1,parentScreen:null,direction:ps.$.MOVEUP}}=R;const b=A();if(!(0,ls.Iz)())return;const{isCreateChildren:T,parentScreen:L,direction:z}=x;if(T&&L){u({type:"entry:create:new:child:screen",payload:{screen:L}});return}const W=(0,h.He)(b),X=(0,a.Ur)(b),ee=X==null?void 0:X.cid,pe=(0,h.Hs)(b),ye=W[pe.length===1?pe[0]:ee],Ie=W[ee];u({type:"entry:create:screen:to:root-project",payload:{screen:L||ye||Ie,direction:z}})},"entry:create:screen:to:root-project":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x,direction:b=ps.$.MOVEUP}}=R;const T=A(),L=(0,a.PL)(T);if(!x){u({type:"entry:create:and:activate:screen",payload:{attrs:{name:I18N.LeftSidePanel.page,zIndex:1,sup:"B@main"}}});return}const z=(0,$r.BS)(x),W=z.findIndex(Ie=>Ie.cid===x.key),X=b===ps.$.MOVEDOWN?W+b<0?0:W+b+1:W+b;z.splice(X,0,null),z.forEach((Ie,Ue)=>{Ie&&(Ie.sup!==x.sup||Ie.zIndex!==Ue+1)&&sdkStore.updateHotAttrMerge(Ie.cid,{zIndex:Ue+1})});const pe={name:(0,Ni.pV)(z),zIndex:X+1,sup:x.sup};u({type:"entry:create:and:activate:screen",payload:{attrs:pe}});const ye=Sc(x);u({type:"screen:del:collapseKeySet",payload:{refs:ye,projectCid:L.cid}})},"entry:create:new:child:screen":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{screen:b}}=R;const T=u(),L=(0,a.PL)(T);let z=[];if(b!=null&&(A=b.sub)!=null&&A.length){const pe=sdkStore.getHotItem(b.sub[0]);z=(0,$r.BS)(pe)}const X={name:(0,Ni.pV)(z),zIndex:z.length+1,sup:b.key};x({type:"entry:create:and:activate:screen",payload:{attrs:X}});const ee=Sc(b).concat(b.key);x({type:"screen:del:collapseKeySet",payload:{refs:ee,projectCid:L.cid}})},"entry:create:and:activate:screen":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attrs:x}}=R;const b=A(),{attr:{orientation:T}}=(0,a.PL)(b),{width:L,height:z,model:W}=(0,a.PL)(b),X=T==="landscape"?z:L,ee=T==="landscape"?L:z;sdkStore.combineMergeMark("create-screen");const pe=(0,Ni.Hz)({...x,device:W,deviceH:ee,deviceW:X,deviceOrientation:T});u({type:"entry:update:screen:list"}),u({type:"entry:goto:project-alike",payload:{screenMetaCid:pe.key}}),u(o.GO.editBasketItemKey("")),u(o.GO.editBasketRefPage("")),u({type:"screen:update:editing-screen-cid",payload:{cid:pe.key}});const ye={...Ec.N[P.x.Canvas](),w:X,h:ee,x:0,y:0,name:"\u9875\u9762",orientation:T||"portrait",device:W};u({type:"entry:batch:create:items",payload:{data:[{items:[ye]}],offset:{top:ee/2,left:X/2},sup:pe.key}}),u({type:"entry:zoom:fit:scale:offset"}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:pe.key}}),u({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:pe.key}}),u({type:"entry:memory:current:screen:offset:scale"}),u({type:"screen:update:state",payload:{currentPage:pe}}),sdkStore.combineMerge("create-screen")},"entry:create:screen_folder:auto:to:root-project":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={isCreateChildren:!1,parentScreenFolder:null}}=R;const{isCreateChildren:b,parentScreenFolder:T}=x;if(b){let Ue=T;if(!Ue){const Re=A(),ze=(0,ba.I_)(Re),st=(0,h.He)(Re),{contextScreenSelection:xt}=ze,Nt=xt.length===1,$t=st[xt[0]];Ue=Nt?$t:null}if(Ue){u({type:"entry:create:new:child:screen_folder",payload:{screen:Ue}});return}}const L=A(),z=(0,h.He)(L),W=(0,a.Ur)(L),X=W==null?void 0:W.cid,ee=(0,h.Hs)(L),pe=z[ee.length===1?ee[0]:X],ye=z[X];u({type:"entry:create:screen_folder:to:root-project",payload:{screen:pe||ye}})},"entry:create:creeen_folder:auto:to:current_folder":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={curScreenFolder,isCreateNextSibling:!1}}=R;return function(){const{isCreateNextSibling:b,curScreenFolder:T}=x,L=sdkStore.getHotItem(T.sup),z={cid:L.key},W=(0,$r.BS)(T),X=(0,Ni.pV)(W,!0),ee=W.indexOf(W.find(ye=>ye.cid===T.key)),pe={name:X,zIndex:b?ee:ee-1,sup:L.key,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:pe,screenGlue:z}})}()},"entry:create:screen_folder:to:root-project":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x}}=R;const b=A(),T=(0,a.PL)(b),L={cid:T.cid};if(!x){u({type:"entry:create:and:select:screen_folder",payload:{attrs:{name:I18N.LeftSidePanel.page_folder,zIndex:1,sup:"B@main",asFolder:!0},screenGlue:L}});return}const z=(0,$r.BS)(x),X=z.findIndex(ye=>ye.cid===x.key)+1;z.splice(X,0,null),z.forEach((ye,Ie)=>{if(ye&&(ye.sup!==x.sup||ye.zIndex!==Ie+1)){const Ue=sdkStore.getHotItem(ye.cid),Re={...Ue,hotAttr:{...Ue.hotAttr,zIndex:Ie+1}};sdkStore.updateHotItem(Re)}});const ee={name:(0,Ni.pV)(z,!0),zIndex:X+1,sup:x.sup,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:ee,screenGlue:L}});const pe=Sc(x);u({type:"screen:del:collapseKeySet",payload:{refs:pe,projectCid:T.cid}})},"entry:create:new:child:screen_folder":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x}}=R;const b=A(),T=(0,a.PL)(b),L={cid:T.cid},z=(0,$r.BS)(x),X={name:(0,Ni.pV)(z,!0),zIndex:z.length+1,sup:x.key,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:X,screenGlue:L}});const ee=Sc(x).concat(x.cid);u({type:"screen:del:collapseKeySet",payload:{refs:ee,projectCid:T.cid}})},"entry:create:and:select:screen_folder":(B,R)=>{let{dispatch:A}=B,{payload:{attrs:u}}=R;const x=(0,Ni.Hz)(u);A({type:"entry:update:screen:list"}),A({type:"screen:update:editing-screen-cid",payload:{cid:x.key}}),A({type:"entry:reset:screen:selection",payload:{resetScreenCid:x.key}})},"entry:check:dup:screen:page:folder:batch":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,h.Hs)(u),b=(0,h.HA)(u),{isEditingCombo:T}=(0,At.r)(u);let L=!1;const z=x.filter(W=>{var X;const ee=(X=rootSdk.sdkStore.getHotItem(W))==null?void 0:X.hotAttr;return ee?!(ee.bunch===P.x.RbPage&&ee.asFolder):!1});if(!(!T&&!(0,ls.X9)(z,!1))){if(x.forEach(W=>{var X;const ee=(0,$r.Bq)(W,b);!(ee!=null&&(X=ee.data)!=null&&X.asFolder)&&(ee==null?void 0:ee.children.length)>0&&(L=!0)}),L){A({type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,isBatch:!0,isEditingCombo:T}}});return}if(T){A({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:!1}});return}A({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1}})}},"entry:dup:screen:page:folder:batch":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{isWithChildren:b,isScreenSelectionContextMenu:T=!1}}=R;const L=u(),{isEditingCombo:z}=(0,At.r)(L),W=(0,h.Hs)(L);if(!z&&!(0,ls.X9)(W,b))return;const X=(0,h.He)(L),ee=(0,h.HA)(L),pe=W[W.length-1],ye=(0,$r.zK)(pe,ee),Ie=[];let Ue=!0;const Re=W.map(st=>{const xt=X[st],Nt=(0,$r.Bq)(xt==null?void 0:xt.key,ee);if((b||(0,$r.Mo)(xt.hotAttr))&&!T){const $t=(0,$r.QR)(Nt);if(ye+$t-1>7){Ue=!1,MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,7),type:"error"});return}}return xt});if(!Ue)return;sdkStore.combineMergeMark("dup-folder-batch"),Re.forEach(st=>{const{key:xt}=(0,Ni.o)(st);Ie.push(xt),(b||(0,$r.Mo)(st.hotAttr))&&!T&&(0,Ni.NA)(st,xt)});const ze=(A=Re[W.length-1])==null?void 0:A.sup;x({type:"entry:update:screen:list"}),x({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Ie,parentCid:ze,cid:pe,type:"nextSibling",isSort:!1}}),x({type:"screen:update:screen-selection",payload:{screenSelection:Ie}}),sdkStore.combineMerge("dup-folder-batch")},"entry:check:dup:screen:page:folder":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x}}=R;const b=A(),T=(0,h.HA)(b),L=(0,$r.Bq)(x==null?void 0:x.key,T);if((0,$r.Mo)(L.data))u({type:"entry:dup:screen:folder",payload:{screen:x}});else{const W=L.children.length;u(W?{type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,screen:x,screenTreeNode:L}}}:{type:"entry:dup:screen:page",payload:{screen:x}})}},"entry:dup:screen:selection":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isScreenSelectionContextMenu:x}}=R;const b=A(),L=(0,h.Hs)(b).filter(z=>{var W;const X=(W=rootSdk.sdkStore.getHotItem(z))==null?void 0:W.hotAttr;return X?!(X.bunch===P.x.RbPage&&X.asFolder):!1});(0,ls.X9)(L,!1)&&u({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1,isScreenSelectionContextMenu:x}})},"entry:dup:screen:folder":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x}}=R;const b=A(),T=(0,h.HA)(b),{isEditingCombo:L}=(0,At.r)(b);if(!L&&!(0,ls.Rk)(x,!0))return;sdkStore.combineMergeMark("dup-folder");const{key:z}=(0,Ni.o)(x);(0,Ni.NA)(x,z),(0,Ni.Pv)(x,T),sdkStore.combineMerge("dup-folder"),u({type:"entry:update:screen:list"}),u({type:"screen:update:editing-screen-cid",payload:{cid:z}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:z}}),L?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copied_successfully})},"entry:dup:screen:page":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x,isWithChildren:b=!1}}=R;const T=A(),{isEditingCombo:L}=(0,At.r)(T),z=(0,h.HA)(T),W=(0,Lt.jI)(T),X=(0,Lt.bt)(T);if(!L&&!(0,ls.Rk)(x,b))return;const{key:ee}=(0,Ni.o)(x);b&&(0,Ni.NA)(x,ee),(0,Ni.Pv)(x,z),u({type:"entry:update:screen:list"}),W&&u({type:"entry:exit:edit:basket"}),X||(u({type:"entry:activate:screen",payload:{screenCid:ee}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:ee}}),u({type:"screen:update:editing-screen-cid",payload:{cid:ee}})),L?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copy_page_success})},"entry:transfer:screen":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x,isScreenSelectionContextMenu:b=!1}}=R;const T=A(),L=(0,h.He)(T),z=(0,h.HA)(T),W=(0,h.WU)(T);let X=new Set,ee=[],pe=[];if(b){const Re=(0,h.Hs)(T);ee=Re,pe=lc(Re.map(ze=>(0,$r.Bq)(ze,z)))}else if(x){const Re=(0,$r.Bq)(x.key,z);ee=(0,$r.kz)(Re),pe=[Re]}else{const Re=(0,ba.q3)(T),st=Array.from(Re).map(xt=>(0,$r.Bq)(xt,z));ee=st.map(xt=>[...(0,$r.kz)(xt)]).flat(),pe=st}X=new Set(ee);const Ie=Object.values(L).filter(Re=>!(0,$r.Mo)(Re)&&!X.has(Re.key)).length===0;u({type:"modal:update:state",payload:{screenTransferModal:{isOpen:!0,screenMetaList:pe,isAllTransfer:Ie,isMultiplePage:W}}})},"entry:remove:screen:check:del":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screen:x}}=R;const b=A(),T=(0,a.HW)(b),{isEditingCombo:L}=(0,At.r)(b),z=(0,Lt.jI)(b),W=(0,Lt.bt)(b),X=(0,h.p$)(b),{hotAttr:{name:ee,asFolder:pe},sub:ye,key:Ie}=x,Ue=Ic(ye),Re=(0,h.He)(b),ze=(0,h.HA)(b),st=(0,$r.Bq)(x.key,ze),xt=(0,$r.kz)(st),Nt=new Set(xt);if(Object.values(Re).filter(zn=>!(0,$r.Mo)(zn)&&!Nt.has(zn.key)).length===0&&!L)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const An=Ue.length;if(pe){if(An===0)(0,Ni.X3)(x.key,T),u({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}});else{const zn=()=>{u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[x.key,...Ue]}}),(0,Ni.X3)(x.key,T),Ue.includes(X==null?void 0:X.key)&&z&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}}),u({type:"entry:update:screen_list_rect"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_folders,desc:L?I18N.__entry__.del_screen_folder_desc.replace(/%s/,ee).replace(/%d/,An):""+I18N.__entry__.del_screen_folder_desc.replace(/%s/,ee).replace(/%d/,An)+I18N.__entry__.restore_in_recycle_in,confirmText:I18N.__entry__.delete,onConfirm:zn}})}return}An>0?u({type:"modal:update:state",payload:{screenRemovalModal:{isOpen:!0,name:ee,count:An,isEditingCombo:L,onConfirm:lo=>{u({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:x,isRemovingAll:lo}}),L?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!L&&u({type:"screen:update:state",payload:{isMultiplePage:!1}})}}}}):(u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[x.key]}}),(0,Ni.X3)(x.key,T),(X==null?void 0:X.key)===Ie&&z&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),L?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!L&&u({type:"screen:update:state",payload:{isMultiplePage:!1}})),u({type:"entry:update:linkNodeList",payload:x})},"entry:remove:screen:after:new_selection":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{delScreenSelection:T}=x,L=(0,h.p$)(b),z=(0,a.PL)(b);if(L&&T.includes(L.key)){const W=Gc(L,T);if(!W){u({type:"entry:activate:root-project:home-screen"});return}const{key:X}=W,ee=Sc(W);u({type:"screen:del:collapseKeySet",payload:{refs:ee,projectCid:z.cid}}),u({type:"entry:goto:project-alike",payload:{screenMetaCid:X}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:X}}),u({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:X}}),u({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(X)}});const pe=b.ui.fixedLayout.modals.previewModal;if(pe!=null&&pe.isOpen){const Ie=pe.basketKey;Ie&&sdkStore.isTrashed(Ie)&&u({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}const ye=b.ui.fixedLayout.modals.previewComboModal;if(ye!=null&&ye.isOpen){const Ie=ye.activeWidgetKey;Ie&&sdkStore.isTrashed(Ie)&&u({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}})}}},"entry:remove:screen:list:by:context_menu":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenSelection:x}}=R;const b=A(),T=(0,h.He)(b),L=(0,h.HA)(b),z=new Set(x),W=(0,a.HW)(b),X=(0,a.wA)(b),{isEditingCombo:ee}=(0,At.r)(b),pe=(0,Lt.jI)(b),ye=(0,Lt.bt)(b),Ie=(0,h.p$)(b);if((0,$r.sV)(L,st=>{const{cid:xt,children:Nt}=st;if(z.has(xt)&&Nt.length>0)for(const $t of st.children)z.add($t.cid)}),Object.values(T).filter(st=>!(0,$r.Mo)(st)&&!z.has(st.key)).length===0&&!ee)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const Re=(0,Yl.ln)(W,X),ze=()=>{sdkStore.combineMergeMark("remove-screen");const st=[];for(const xt of Array.from(z)){const Nt=T[xt];Nt&&st.push(Nt)}u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:st}}),(0,Ni.gu)(st,W),z.has(Ie==null?void 0:Ie.key)&&pe&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("remove-screen"),MB.notice({text:I18N.dModals.delete_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}}),u({type:"entry:update:screen_list_rect"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:ee?I18N.__entry__.del_widget_title:I18N.dModals.delete_page_confirm_title,desc:ee?I18N.__entry__.del_multi_widget_desc:I18N.dModals.delete_page_confirm_content,className:"screen-action-modal",renderDesc:()=>ee?null:(0,wl.jsx)("p",{style:{color:"#999",fontSize:"12px",marginTop:"2px"},children:I18N.dModals.delete_page_confirm_des.replace(/{recycleDays}/,Re)}),confirmText:I18N.__entry__.delete,onConfirm:ze}})},"entry:remove:screen:list:by:managePageModal":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenSelection:x}}=R;const b=A(),T=(0,h.He)(b),L=new Set(x),z=(0,a.HW)(b),{isEditingCombo:W}=(0,At.r)(b),X=Object.values(T).filter(pe=>!(0,$r.Mo)(pe)&&!L.has(pe.key)).map(pe=>pe==null?void 0:pe.key);if(X.length===0&&!W)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});sdkStore.combineMergeMark("remove-screen");const ee=[];for(const pe of Array.from(L)){const ye=T[pe];ye&&ee.push(ye)}for(const pe of X){const Ie=sdkStore.findUpHotItemList(pe).map(Ue=>Ue==null?void 0:Ue.key).filter(Ue=>Ue!==pe).find(Ue=>!L.has(Ue));Ie&&sdkStore.moveHotItem(pe,Ie)}u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:ee}}),(0,Ni.gu)(ee,z),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("remove-screen"),MB.notice({text:I18N.dModals.delete_success})},"entry:remove:screen:selection:del":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.HW)(u),b=(0,h.Hs)(u),T=(0,h.He)(u),{isEditingCombo:L}=(0,At.r)(u);if(Object.values(T).filter(X=>!(0,$r.Mo)(X)&&!b.includes(X.key)).length===0&&!L)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const W=()=>{sdkStore.combineMergeMark("remove-screen-selection"),b.forEach(X=>{const ee=sdkStore.getHotItem(X),{sub:pe}=ee;pe.filter(Ue=>{const{hotAttr:{bunch:Re}}=sdkStore.getHotItem(Ue);return Re===P.x.RbPage}).length>0?A({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:ee,isRemovingAll:!1}}):(A({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[ee.key]}}),(0,Ni.X3)(ee.key,x),A({type:"entry:update:screen:list"}),A({type:"entry:rebuild:screen-widget-tree"}))}),MB.notice({text:I18N.dModals.page_del_success}),sdkStore.combineMerge("remove-screen-selection"),A({type:"screen:update:state",payload:{isMultiplePage:!1}}),A({type:"entry:update:screen_list_rect"})};A({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_screens,renderDesc:()=>(0,wl.jsxs)("p",{children:[(0,wl.jsx)("span",{className:"desc-text-1",children:I18N.__entry__.del_screens_desc}),(0,wl.jsx)("span",{className:"desc-text-2",children:I18N.__entry__.del_screens_desc_2})]}),confirmText:I18N.__entry__.delete,onConfirm:W}})},"entry:activate:root-project:home-screen":B=>{let{getState:R,dispatch:A}=B;const{screenTreeData:u,screenTreeMap:x,screenDataMap:b}=(0,Bs.tb)();A({type:"screen:set:all:screen-data",payload:{screenTreeData:u,screenTreeMap:x,screenDataMap:b}});const T=(0,$r.Ct)(u);if(!T){A({type:"current:update:state",payload:{isEditingCid:"",currentScreen:null}}),A({type:"screen:update:state",payload:{currentPage:{}}});return}const{cid:L}=T;A({type:"entry:goto:project-alike",payload:{screenMetaCid:L}}),A({type:"entry:reset:screen:selection",payload:{resetScreenCid:L}}),A({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:T.cid}}),A({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(L)}});const z=R(),W=z.ui.fixedLayout.modals.previewModal;if(W!=null&&W.isOpen){const ee=W.basketKey;ee&&sdkStore.isTrashed(ee)&&A({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}const X=z.ui.fixedLayout.modals.previewComboModal;if(X!=null&&X.isOpen){const ee=X.activeWidgetKey;ee&&sdkStore.isTrashed(ee)&&A({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}})}},"entry:expand:all:screen":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.PL)(u);A({type:"screen:reset:collapseKeySet",payload:{projectCid:x.cid}}),A({type:"entry:update:screen:list"})},"entry:unExpand:all:screen":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,h.HA)(u),b=(0,a.PL)(u),T=(0,$r.Gw)(x);A({type:"screen:add:collapseKeySet",payload:{refs:T,projectCid:b.cid}}),A({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pathSelectedIds:x,parentCid:b,type:T,cid:L,isUndo:z=!0,isSort:W=!0}}=R;const X=A(),ee=(0,a.PL)(X),{cid:pe}=(0,a.Ur)(X),{screenDataMap:ye}=(0,Bs.tb)(),Ie=[];for(const xt of x){const Nt=ye[xt];Nt&&Ie.push(Nt)}W&&Ie.sort((xt,Nt)=>{var $t,An;return(($t=xt.hotAttr)==null?void 0:$t.zIndex)-((An=Nt.hotAttr)==null?void 0:An.zIndex)});const Ue=sdkStore.getHotItem(b),Re=Ue.sub.filter(xt=>!x.includes(xt)).map(xt=>sdkStore.getHotItem(xt)).sort((xt,Nt)=>xt.hotAttr.zIndex-Nt.hotAttr.zIndex),ze=Re.findIndex(xt=>xt.key===L),st=T==="prevSibling"?ze:T==="firstChild"?0:T==="nextSibling"?ze+1:"error";Re.splice(st,0,...Ie),T==="firstChild"&&Ue&&u({type:"screen:del:collapseKeySet",payload:{refs:[Ue==null?void 0:Ue.key],projectCid:ee==null?void 0:ee.cid}}),sdkStore.combineMergeMark("sort-screen"),Re.forEach((xt,Nt)=>{var $t;if(xt.sup!==b||(($t=xt.hotAttr)==null?void 0:$t.zIndex)!==Nt+1){const An=sdkStore.getHotItem(xt.key),zn={...An,sup:b,hotAttr:{...An.hotAttr,zIndex:Nt+1}};if(sdkStore.updateHotItem(zn),pe===xt.key){const lo=(0,Bs.ON)(zn);u({type:"entry:update:current:screen-mata",payload:{screenMeta:lo}})}}}),sdkStore.combineMerge("sort-screen"),u({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort:direction":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenMeta:x,direction:b}}=R;const T=A(),L=(0,h.Hs)(T),z=(0,h.He)(T),W=x?[x.key]:L,X=W.map(ee=>z[ee]).sort((ee,pe)=>{var ye,Ie,Ue,Re;return b===ps.$.MOVEUP||b===ps.$.DOWNGRADE?((ye=ee.hotAttr)==null?void 0:ye.zIndex)-((Ie=pe.hotAttr)==null?void 0:Ie.zIndex):((Ue=pe.hotAttr)==null?void 0:Ue.zIndex)-((Re=ee.hotAttr)==null?void 0:Re.zIndex)});if(sdkStore.combineMergeMark("update-screen"),(b===ps.$.DOWNGRADE||b===ps.$.UPGRADE)&&W.length>1){const ee=(0,ba.q3)(T);X.forEach(pe=>{ee.has(pe.key)&&u({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[pe],direction:b,isUndo:!1}})}),sdkStore.combineMerge("update-screen");return}X.forEach(ee=>{u({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[ee],direction:b,isUndo:!1}})}),sdkStore.combineMerge("update-screen")},"entry:screen:delete:page:by:father":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenTreeNode:x,isRemovingAll:b}}=R;const T=A(),L=(0,a.HW)(T),z=(0,Lt.jI)(T),W=(0,Lt.bt)(T),X=(0,h.p$)(T);if(sdkStore.combineMergeMark("delete-page-by-father"),!b){const{sup:pe,key:ye}=x,Ie=sdkStore.getSubHotItemList(ye).filter(xt=>{var Nt;return(xt==null||(Nt=xt.hotAttr)==null?void 0:Nt.bunch)===P.x.RbPage}).map(xt=>xt.key),Ue=sdkStore.getSubHotItemList(pe).filter(xt=>{var Nt;return(xt==null||(Nt=xt.hotAttr)==null?void 0:Nt.bunch)===P.x.RbPage}).sort((xt,Nt)=>{var $t,An;return(xt==null||($t=xt.hotAttr)==null?void 0:$t.zIndex)-(Nt==null||(An=Nt.hotAttr)==null?void 0:An.zIndex)}).map(xt=>xt.key),Re=Ue.findIndex(xt=>xt===ye),ze=Ue[Re===Ue.length-1?Re-1:Re+1],st=Re===Ue.length-1?"nextSibling":"prevSibling";u({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Ie,parentCid:pe,cid:ze,type:st,isUndo:!1}})}const ee=b?sdkStore.findAllTypeUnder(x.key,"rResBunch").map(pe=>pe==null?void 0:pe.key):[x.key];u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:ee}}),(0,Ni.X3)(x.key,L),ee!=null&&ee.includes(X==null?void 0:X.key)&&z&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("delete-page-by-father")},"entry:update:screen_list:by:sort:direction:single":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenMetaList:x,direction:b,isUndo:T=!0}}=R;const L=A(),z=(0,h.He)(L),W=(0,a.PL)(L),X=(0,ba.ey)(L),ee=x.map($t=>$t.key);if(b===ps.$.MOVEUP||b===ps.$.MOVEDOWN){var pe,ye;if(b===ps.$.MOVEUP){var Ie;if(X.has((Ie=x[0])==null?void 0:Ie.key))return}else{var Ue;if((0,ba.Xw)(L).has((Ue=x[0])==null?void 0:Ue.key))return}const $t=(0,$r.BS)(x[0]).sort((Qn,Sn)=>Qn.zIndex-Sn.zIndex),zn=$t.findIndex(Qn=>{var Sn;return Qn.cid===((Sn=x[0])==null?void 0:Sn.key)})-b,lo=(pe=$t[zn])==null?void 0:pe.cid;if(!lo)return;u({type:"entry:update:screen_list:by:sort",payload:{isUndo:T,pathSelectedIds:ee,parentCid:(ye=x[0])==null?void 0:ye.sup,cid:lo,type:b===ps.$.MOVEUP?"prevSibling":"nextSibling"}})}else{if(b===ps.$.UPGRADE){var Re;const $t=z[(Re=x[0])==null?void 0:Re.sup];if(!$t)return;u({type:"entry:update:screen_list:by:sort",payload:{isUndo:T,pathSelectedIds:ee,parentCid:$t.sup,cid:$t.key,type:"nextSibling"}})}if(b===ps.$.DOWNGRADE){var ze,st,xt,Nt;if((0,ba.nF)(L).has((ze=x[0])==null?void 0:ze.key)||X.has((st=x[0])==null?void 0:st.key))return;const An=(0,$r.BS)(x[0]),zn=An.findIndex(Wo=>{var qo;return Wo.cid===((qo=x[0])==null?void 0:qo.key)}),lo=(xt=An[zn-1])==null?void 0:xt.cid;if(!lo)return;const Qn=z[lo],Sn=Qn==null?void 0:Qn.sub[(Qn==null||(Nt=Qn.sub)==null?void 0:Nt.length)-1];u({type:"screen:del:collapseKeySet",payload:{refs:[Qn==null?void 0:Qn.key],projectCid:W==null?void 0:W.cid}}),u({type:"entry:update:screen_list:by:sort",payload:{isUndo:T,pathSelectedIds:ee,parentCid:lo,cid:Sn,type:"nextSibling"}})}}},"entry:memory:current:screen:offset:scale":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.ER)(u),b=(0,a.X_)(u),T=(0,a.Ur)(u);T&&A({type:"screen:update:screenInfoMap",payload:{key:T.cid,value:{offset:x,scale:b}}})}};var ya=i(29078);const Kt={...{"entry:set:default:left-side-panel-width":B=>{let{getState:R,dispatch:A}=B;const u=R(),b=(0,lt.bP)(u)==="old_right"?M.sR:M.Cj;A({type:"left-panel:set:width",payload:{width:b,isNotSaveLocal:!0}})},"entry:toggle:left-nav-panel":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={isAlwaysShow:!1}}=R;const{isAlwaysShow:b}=x,T=A(),L=(0,Lt.T7)(T),z=document.querySelector(".mb-left-panel");if(z&&(z.style.transition="none"),b){u({type:"left-panel:collapse:panel:show",payload:{isMemorize:!L}}),u({type:"entry:observe:dom:size:update-viewport-rect"});return}u({type:"left-panel:collapse:panel",payload:{isMemorize:!L}}),u({type:"entry:observe:dom:size:update-viewport-rect"})},"entry:open:contextmenu:by:component-list":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x,position:b,byComponentList:T=!0,byCanvasLayers:L=!1}}=R;const z=A(),W=(0,k.GO)(z),X=(0,Ae.p$)(z),ee=X.includes(x)?X:[x],pe=W.includes(x),ye=ee.filter(Ie=>pe?W.includes(Ie):!W.includes(Ie));u({type:"entry:update:selection:select:items",payload:{cids:ye}}),u({type:"open:contextmenu",payload:{position:b,byComponentList:T,byCanvasLayers:L}})}},...Ca,...{"layerExpandedKeySet:open:ref":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.Ur)(u).cid,b=(0,ya.vl)(x);A({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:b}})}}};var Vn=i(3862),io=i(49903),Wn=i(75661),$n=i(11032),Vo=i(16335),Do=i(12991),Bo=i(77277),Ro=i(5288),Pa=i(30275),la=i(82515),Go=i(70812);const ir=B=>B?Do.rf.Org:Do.rf.User,tr=(B,R)=>{var A;return(A=B[R])==null?void 0:A.list},wr=(B,R)=>{var A;return(A=B[R])==null?void 0:A.total},Pr=B=>{var R;let{searchResultListMap:A,category:u,nextSearchResultList:x,nextTotal:b=0}=B;return{...A,[u]:{...A[u],list:x,total:b||((R=A[u])==null?void 0:R.total)}}},br={"entry:search-panel:update:combo:or:asset:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,type:b,attr:T,isOrg:L=!1,category:z}}=R;const W=A(),X=(0,ba.uq)(W),ee=tr(X,z);if(!(ee!=null&&ee.length))return;const pe=ir(L),ye=(0,Do.dU)({list:ee,keys:[pe],type:b,mapFunc:Ie=>Ie.map(Ue=>Ue.key===x?{...Ue,hotAttr:{...Ue.hotAttr,...T}}:Ue)});u({type:"searchPanel:update:state",payload:{searchResultListMap:Pr({searchResultListMap:X,category:z,nextSearchResultList:ye})}})},"entry:search-panel:remove:combo:or:asset:from:cidSet":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cidsSet:x,type:b,isOrg:T=!1,category:L}}=R;const z=A(),W=(0,ba.uq)(z),X=tr(W,L),ee=wr(W,L),pe=(0,ba.Vs)(z),ye=(0,ba.lW)(z);if(!(X!=null&&X.length)||ye)return;const Ie=ir(T),Ue=(0,Do.dU)({list:X,keys:[Ie],type:b,mapFunc:Re=>Re.filter(ze=>{let{key:st,cid:xt}=ze;return!x.has(st||xt)})});u({type:"searchPanel:update:state",payload:{searchResultSum:pe-x.size,searchResultListMap:Pr({searchResultListMap:W,category:L,nextSearchResultList:Ue,nextTotal:ee-x.size})}})},"entry:search-panel:remove:group":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{matchSelectDelSet:x,isOrg:b=!1,category:T}}=R;const L=A(),z=(0,ba.uq)(L),W=tr(z,T),X=wr(z,T),ee=(0,ba.Vs)(L);if(!(W!=null&&W.length))return;const pe=ir(b),ye=(0,Do.dU)({list:W,keys:[pe],type:Bo.I.Group,mapFunc:Ie=>Ie.filter(Ue=>{let{cid:Re}=Ue;return!x.has(Re)})});u({type:"searchPanel:update:state",payload:{searchResultSum:ee-x.size,searchResultListMap:Pr({searchResultListMap:z,category:T,nextSearchResultList:ye,nextTotal:X-x.size})}})},"entry:search-panel:refresh:group:add":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{category:x,groupAddList:b}}=R;const T=A(),L=(0,ba.uq)(T),z=tr(L,x),W=wr(L,x),X=(0,ba.Vs)(T);if(!(z!=null&&z.length))return;const ee=(0,Do.dU)({list:z,keys:[Do.rf.Org],category:x,type:Bo.I.Group,addList:b,mapFunc:pe=>[...pe].concat(b),spliceFunc:(pe,ye)=>pe.splice(1,0,ye)});u({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,Do.wt)(x,Do.rf.Org)}}),u({type:"searchPanel:update:state",payload:{searchResultSum:X+1,searchResultListMap:Pr({searchResultListMap:L,category:x,nextSearchResultList:ee,nextTotal:W+1})}})},"entry:search-panel:remove:combo:from:comboCid":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboCidsSet:x,isOrg:b=!1}}=R;u({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:x,type:Bo.I.SelfMakeCombo,isOrg:b,category:Vn.t_}})},"entry:search-panel:update:combo:name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,name:b,isOrg:T=!1}}=R;u({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:x,type:Bo.I.SelfMakeCombo,attr:{name:b},isOrg:T,category:Vn.t_}})},"entry:search-panel:dup:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,comboGroupCid:b,isOrg:T=!1,category:L=Vn.t_}}=R;const z=A(),W=(0,ba.uq)(z),X=tr(W,L),ee=wr(W,L),pe=(0,ba.Vs)(z),ye=(0,ba.lW)(z);if(!(X!=null&&X.length)||ye)return;const Ie=ir(T),Ue=(0,ba.wS)(z),Re=(0,ba.lb)(z),st=(T?Re:Ue).find(zn=>zn.cid===b),xt=st==null?void 0:st.children;if(!(xt!=null&&xt.length))return;const Nt=xt.find(zn=>zn.key===x);if(!Nt)return;const $t={...Nt,hotAttr:{...Nt.hotAttr,name:Nt.hotAttr.name+" "+I18N.__entry__.name_copy},group:st},An=(0,Do.dU)({list:X,keys:[Ie],type:Bo.I.SelfMakeCombo,mapFunc:zn=>zn.concat($t)});u({type:"searchPanel:update:state",payload:{searchResultSum:pe+1,searchResultListMap:Pr({searchResultListMap:W,category:L,nextSearchResultList:An,nextTotal:ee+1})}})},"entry:search-panel:transfer:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{transferCombos:x,isOrg:b=!1,category:T=Vn.t_}}=R;const L=A(),z=(0,ba.uq)(L),W=tr(z,T);if(!(W!=null&&W.length))return;const X=ir(b),ee=ye=>ye.map(Ie=>x.find(Ue=>Ue.key===Ie.key)||Ie),pe=(0,Do.dU)({list:W,keys:[X],type:Bo.I.SelfMakeCombo,mapFunc:ee});u({type:"searchPanel:update:state",payload:{searchResultListMap:Pr({searchResultListMap:z,category:T,nextSearchResultList:pe})}})},"entry:search-panel:refresh:star:resources":async(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:{category:T,resources:L,isFromIconSelectPopup:z,updateResources:W}}=R;const X=x(),ee=(0,ba.uq)(X),pe=(A=ee[T])==null?void 0:A.list,ye=(0,ba.NA)(X),Ie=z?ye:pe,Ue=z?"iconSelectPopupSearchResultList":"searchResultListMap";if(!(Ie!=null&&Ie.length))return;const Re=T===Vn.C,ze=T===Vn.Gd,st=T===Vn.RD,{is_star:xt}=L,Nt=Do.rf.User,$t=zn=>zn?Nt:Do.rf.Find;let An=[];if(Re||st)An=Ie.map(zn=>{if([Bo.I.Resources,Bo.I.IconList].includes(zn.type)){const lo=zn.items.map(Qn=>Qn.cid===L.cid?W(Qn):Qn);return{...zn,items:lo}}return zn});else if(ze){const zn=W(L);An=(0,Do.o0)(Ie,zn)}else{const zn=W(L);An=(0,Do.dU)({list:pe,keys:[$t(!xt)],category:T,type:Bo.I.Resources,addList:[zn],mapFunc:Qn=>[...Qn].concat(zn),spliceFunc:(Qn,Sn)=>{const Wo=xt?Qn.length:0;Qn.splice(Wo,0,Sn)},otherKeys:[$t(xt)],filterFunc:Qn=>Qn.filter(Sn=>Sn.cid!==zn.cid)}),An=(0,Do.dU)({list:An,keys:[Do.rf.Find],category:T,type:Bo.I.MarketTemplate,mapFunc:Qn=>Qn.map(Sn=>Sn.currentResources.cid===zn.cid?{...Sn,currentResources:zn}:Sn)});const lo=(0,Do.wt)(T,$t(!xt));b({type:"searchPanel:add:collapsePanelSet",payload:{id:lo}})}if((u=An)!=null&&u.length)if(z)b({type:"searchPanel:update:state",payload:{[Ue]:An}});else{const zn={...ee,[T]:{...ee[T],list:An}};b({type:"searchPanel:update:state",payload:{[Ue]:zn}})}},"entry:search-panel:remove:resources":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{resources:x}}=R;const b=A(),T=x.category,L=(0,ba.uq)(b),z=tr(L,T),W=wr(L,T),X=(0,ba.Vs)(b);if(!(z!=null&&z.length))return;const ee=(0,Do.dU)({list:z,keys:[Do.rf.Star,Do.rf.User,Do.rf.Find],type:Bo.I.Resources,mapFunc:pe=>pe.filter(ye=>ye.cid!==x.cid)});u({type:"searchPanel:update:state",payload:{searchResultSum:X-1,searchResultListMap:Pr({searchResultListMap:L,category:T,nextSearchResultList:ee,nextTotal:W-1})}})},"entry:search-panel:update:asset:name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,name:b,isOrg:T=!1}}=R;u({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:x,type:Bo.I.Asset,attr:{name:b},isOrg:T,category:Vn.b4}})},"entry:search-panel:remove:asset:from:asset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{asset:x,isOrg:b=!1}}=R;const T=new Set([x.cid]);u({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:T,type:Bo.I.Asset,isOrg:b,category:Vn.b4}})},"entry:search-panel:transfer:user:asset:to:org":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,groupCid:b,category:T=Vn.b4}}=R;const L=A(),z=(0,ba.uq)(L),W=tr(z,T),X=wr(z,T),ee=(0,ba.Vs)(L),pe=(0,ba.lW)(L);if(!(W!=null&&W.length)||pe)return;const{orgAssets:ye}=await(0,G.l9)(),Ie=ye.filter(ze=>st=>st.group_cid===b);if(!Ie)return;for(const ze of Ie)ze.cid=ze.asset_cid;const Ue=Ie.find(ze=>ze.cid===x);if(!Ue)return;const Re=(0,Do.dU)({list:W,keys:[Do.rf.Org],type:Bo.I.Asset,mapFunc:ze=>ze.concat(Ue),category:Vn.b4,addList:[Ue],spliceFunc:(ze,st)=>ze.splice(1,0,st)});u({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,Do.wt)(Vn.b4,Do.rf.Org)}}),u({type:"searchPanel:update:state",payload:{searchResultSum:ee+1,searchResultListMap:Pr({searchResultListMap:z,category:T,nextSearchResultList:Re,nextTotal:X+1})}})},"entry:search-panel:search:from:keyword":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{from:x,category:b,isHistoryWord:T=!1,isHotKeyWord:L=!1}}=R;const z=x===Pa.Z.iconSelectPopup,W=A(),{isEditingProjectMain:X,isEditingCombo:ee,isEditingBasket:pe,isEditingMuban:ye}=(0,At.r)(W),Ie=(0,ba.uJ)(W),Ue=(0,ba.TF)(W),Re=(0,a.wA)(W),ze=(0,h.OW)(W),st=(0,a.HW)(W),xt=(0,a.F2)(W),Nt=(0,a._x)(W),$t=(0,ro.D1)(X,!(ee||pe||ye),Ie),An=(0,ba.XN)(W),zn=(0,ba.qY)(W),lo=(0,h.aN)(W),Qn=(0,ba.sF)(W),Sn=(0,ba.zX)(W),Wo=new Set(Qn.concat(Sn).map(Na=>{let{cid:gr}=Na;return gr})),qo=Re==null?void 0:Re.cid,ua=z?Ue.trim():Ie.trim(),Ea=z?"isIconSelectPopupLoading":"isLoading",wa=!z;if(ua){if(u({type:"exalt:panel:order",payload:{name:as.lS.Search}}),u({type:"searchPanel:update:state",payload:{[Ea]:!0,type:b}}),u(z?{type:"icon-select-popup:update:state",payload:{isShowSearch:!0}}:{type:"searchPanel:update:state",payload:{show:!0}}),wa||b===Vn.t_){const gr=st==null?void 0:st.id;!window.userSdkStore&&xt&&await(0,la.Z)({fcg:xt,userId:gr}),!window.orgSdkStore&&Re!=null&&Re.cid&&Nt&&await(0,la.Z)({fcg:Nt,userId:gr,isOrg:!0})}try{var Ja,La;(0,G.Gx)(ua);const gr=z?"iconSelectPopupSearchResultList":"searchResultListMap",Pi=z?"iconSelectPopupSearchResultSum":"searchResultSum",_r=A(),ci=(0,ba.wS)(_r),Ws=(0,ba.lb)(_r),{scene_tag:kr}=(0,a.PL)(_r),Fi=Date.now(),xi=await(0,Do.WA)({dispatch:u,category:b,isSearchAll:wa,keyword:ua,orgCid:qo,builtWidgets:$t,assetGroupCidSet:Wo,userResourcesComboGroup:ci,orgResourcesComboGroup:Ws,sceneTag:kr,from:x,userAssetsMap:An,orgAssetsMap:zn,isSaveAllAssetsMap:lo}),Ai=Date.now()-Fi,Rr=new Map;(Ja=xi.resources)!=null&&Ja.length&&xi.resources.forEach(Wr=>{var Ti;const{cid:jl,project_metas:bs}=Wr;Rr.set(jl,(Ti=bs[0])==null?void 0:Ti.cid)});let Cs;if(wa){({total:Cs}=xi);const{result:Wr}=xi;let Ti=[$t==null?void 0:$t.cid];Object.entries(Wr).forEach(jl=>{let[bs,{list:Vs}]=jl;Ti=Ti.concat(Vs.map(Dl=>{let{cid:ji}=Dl;return ji}))}),[Vn.t_,Vn.Gd,Vn.RD,Vn.C,Vn.b4,Ro.Jf].forEach(jl=>Ti.push(jl)),u({type:"searchPanel:update:state",payload:{searchResultCategory:b,searchCollapsePanelSet:new Set(Ti),searchMtMetaCidMap:Rr}}),u({type:"searchPanel:update:state",payload:{[gr]:Wr,[Pi]:Cs,[Ea]:!1}})}else{({total:Cs}=xi);const{list:Wr}=xi;u({type:"searchPanel:update:state",payload:{[gr]:Wr,[Pi]:Cs,[Ea]:!1}})}const Hr=wa?xi.result?(La=xi.result[b])==null?void 0:La.total:0:xi.total;Go.U4.searchResultTrack(ua,ze,Hr)}catch(gr){console.error("search error",gr),u({type:"searchPanel:update:state",payload:{[Ea]:!1}})}}else u({type:"entry:search-panel:clear:state",payload:{from:x}})},"entry:search-panel:clear:state":async(B,R)=>{let{dispatch:A}=B,{payload:u}=R,x=!1;u&&(x=u.from===Pa.Z.iconSelectPopup),x?(A({type:"searchPanel:clear:search:state:from:icon-select-popup"}),A({type:"icon-select-popup:update:state",payload:{isShowSearch:!1}})):A({type:"entry:search-panel:clear:search:state"}),A({type:"update:popups:state",payload:{showGlobalHeader:!0}})},"entry:search-panel:close:combo-group":async B=>{let{getState:R}=B;const A=R(),u=(0,ba.uq)(A),x=tr(u,Vn.t_);if(x!=null&&x.length){const b=x.map(L=>{let{list:z}=L;if(z&&z!=null&&z.length)return z.map(W=>{let{type:X,items:ee}=W;if(X===Bo.I.SelfMakeCombo)return ee.map(pe=>{let{project_meta_cid:ye}=pe;return ye})})}).flat(1/0).filter(L=>!!L),T=Array.from(new Set(b));T&&T!=null&&T.length&&T.forEach(L=>{})}},"entry:search-panel:clear:search:state":async B=>{let{dispatch:R}=B;R({type:"entry:search-panel:close:combo-group"}),R({type:"searchPanel:clear:search:state"})},"entry:search-panel:resources:set:mtSdkStore:map":async(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{mtResourceCidList:x}}=R;const b=u(),T=(0,ba.FM)(b);A({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:x,mtProjectMetaCidMap:T}})}};var lr=i(22440);const ei=(B,R)=>{const u=new RegExp("^"+R+"(\\s(\\d+))?$").exec(B);return u&&Number(u[2])||0},vr=B=>{const R=Math.max.apply(null,B);for(let A=1;A<=R;A++)if(B.indexOf(A)===-1)return A;return R+1},ar=B=>{const R=[],A=u=>{u.forEach(x=>{R.push(x.name),x.subFolder&&x.subFolder.length>0&&A(x.subFolder)})};return A(B),R},hr=(B,R)=>{const A=ar(B),u=new RegExp("^"+R+"\\s(\\d+)$"),x=[];return A.forEach(b=>{u.exec(b)&&x.push(ei(b,R))}),x.length>0?R+" "+vr(x):R+" 1"};var mr=i(61790),Yr=i(95956),yi=i(24640),Ri=i(20085),vs=i(25306),ri=i(27845);const us={"entry:prepare:asset:to:user:org:group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={targetType:"user"}}=R;const{targetType:b}=x,T=A(),L=b==="user",z=(0,a.wA)(T),W=(0,a.HW)(T),X=(0,ba.cb)(T),ee=(0,ba.Hl)(T),pe=(0,Ae.nE)(T).filter(Qn=>!(0,He.OO)(Qn.key)),ye=L?I18N.dModals.add_image_me_asset:I18N.dModals.add_image_org_asset;MB.safeDelayLoading(I18N.__entry__.in_progress);let Ie=0;const Ue=[];for(const Qn of pe){const{image:{imageRef:Sn}}=Qn.hotAttr,Wo=(0,ne.Kf)(Sn);if(L){const{asset:qo,user_asset:ua}=await(0,G.E8)(Wo);ua||(Ie+=qo.size,Ue.push(qo))}else{const{asset:qo,org_asset:ua}=await(0,G.Wr)(Wo,z.cid);ua||(Ie+=qo.size,Ue.push(qo))}}if(!Ue.length){MB.safeDelayLoading(!1),L?MB.notice({text:I18N.dModals.me_asset_exit_image}):MB.notice({text:I18N.dModals.org_asset_exit_image});return}let Re=null;if(L){if(!X){const{userAssetGroupList:La}=await(0,G.OJ)();u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:La}}),u({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})}const Qn=A(),Sn=(0,ba.sF)(Qn);MB.safeDelayLoading(!1);let Wo=0;for(const La of Sn){const{assets_size:Na}=La;Wo=Wo+Na}const qo=W.limitation.storage,ua=Number(qo),Ea=ua>=1e3?ua/1e3+"GB":ua+"MB",Ja=vs.tz.InitialUser(W).planSdk.prototypePlan.getUserPlan()===ri.L1.Free;if(Wo+Ie>qo*1024*1024)return(0,lr.Nd)("storage",{storage:" "+Ea,action:Ja?"upgradeByFree":"upgradeByNotFree",role:"user",submit:Ja?I18N.__entry__.upgrade_solo:I18N.__entry__.renew_prompt.check_enterprise,gotoPrice:!Ja,paymentRenewModalParams:Ja?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0;Re=Sn}else{if(!ee){const{orgAssetGroupList:wa}=await(0,G.l9)(z.cid);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:wa}}),u({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}})}const Qn=A(),Sn=(0,ba.zX)(Qn);if(MB.safeDelayLoading(!1),!Sn)return;let Wo=0;for(const wa of Sn){const{assets_size:Ja}=wa;Wo=Wo+Ja}const{storage:qo}=(0,Yl.xR)(W,z),ua=Number(qo),Ea=ua>=1e3?ua/1e3+"GB":ua+"MB";if(Wo+Ie>qo*1024*1024)return(0,lr.Nd)("storage",{storage:" "+Ea,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.__entry__.renew_prompt.add_seats,orgCid:z.cid}),!0;Re=Sn}MB.safeDelayLoading(!1);const ze=pe.length?(0,mr.KD)(pe[0].key):I18N.__entry__.untitled,st=hr(Re,I18N.__entry__.folder),xt=Re.sort((Qn,Sn)=>Sn.created_at-Qn.created_at),Nt=xt.length===0,$t=xt.length&&xt[0].name,An=String($t),zn=(0,Ri.H)(xt);u({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:Nt,modalTitle:ye,createName:ze,targetGroupCid:An,groupName:st,optionGroupItemList:zn,onModalConfirm:async Qn=>{let{isCreating:Sn,createName:Wo,targetGroupCid:qo,groupName:ua,onModalClose:Ea}=Qn;Ea();let wa="";if(Sn){if(Re.some(La=>La.name===ua))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(L){const La=(0,ba.sF)(T),Na=W.solo_org.cid,gr={name:ua,position:0},{asset_group:Pi}=await(0,G.A9)(Na,gr);wa=Pi.cid;const _r=(0,yi.ON)(Pi,La,G.Qs);await u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:_r}})}else{const La=(0,ba.zX)(T),Na=z.cid,gr={name:ua,position:0},{asset_group:Pi}=await(0,G.A9)(Na,gr);wa=Pi.cid;const _r=(0,yi.ON)(Pi,La,(0,G.XG)(Na));await u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:_r}})}}else wa=qo;L?!(0,ba.$L)(T).includes(wa)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:wa}}):!(0,ba.i)(T).includes(wa)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:wa}});for(const Ja of Ue)L?await(0,G.Xw)({assetCid:Ja.cid,name:Wo,groupCid:wa}):await(0,G.ob)({assetCid:Ja.cid,name:Wo,groupCid:wa});L?(await u({type:"entry:load:user:asset:group:list"}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:wa}})):(await u({type:"entry:load:org:asset:group:list"}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:wa}})),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:wa,isOrg:!L}})}}}})},"entry:check:asset:auto:to:user:org:group":(B,R)=>{let{dispatch:A}=B,{payload:{isOrg:u}}=R;A({type:"entry:create:asset:to:user:org:group",payload:{targetType:!u?"user":"org"}})},"entry:create:asset:to:user:org:group":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={targetType:"user"}}=R;const{targetType:b}=x,T=A(),L=(0,a.wA)(T),z=(0,a.HW)(T),{storage:W}=(0,Yl.xR)(z,L),X=b==="user",ee=X?(0,ba.sF)(T):(0,ba.zX)(T),pe=X?I18N.Resources.upload_image_to_my_assets:I18N.Resources.upload_image_to_team_library,ye=I18N.__entry__.folder,Ie=ee.length===0,Re=ee.length&&ee[0].cid||"";u({type:"modal:update:state",payload:{assetCreateWithGroupModal:{isOpen:!0,isCreating:Ie,modalTitle:pe,targetGroupCid:Re,groupName:ye,optionGroupItemList:ee,onModalConfirm:async st=>{var xt;let{files:Nt,isCreating:$t,targetGroupCid:An,groupName:zn,onModalClose:lo}=st;lo();let Qn;if($t){if(ee.some(Ja=>Ja.name===zn))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(X){const Ja=(0,ba.sF)(T),La=z.solo_org.cid,Na={name:zn,position:0},gr=await(0,G.A9)(La,Na);if(!gr)return;const{asset_group:Pi}=gr,_r=Pi;Qn=_r.cid;const ci=(0,yi.ON)(_r,Ja,G.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ci}})}else{const Ja=(0,ba.zX)(T),La=L.cid,Na={name:zn,position:0},gr=await(0,G.A9)(La,Na);if(!gr)return;const{asset_group:Pi}=gr;Qn=Pi.cid;const _r=(0,yi.ON)(Pi,Ja,(0,G.XG)(La));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:_r}})}}else Qn=An;X?(!(0,ba.$L)(T).includes(Qn)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:Qn}}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:Qn}})):(!(0,ba.i)(T).includes(Qn)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:Qn}}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:Qn}})),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Qn,isOrg:!X}});const Sn={assetType:"flat_image",groupCid:Qn,orgCid:X?z==null||(xt=z.solo_org)==null?void 0:xt.cid:L.cid,userName:z.name},Wo=wa=>{u({type:"update:popups:state",payload:{assetUpload:wa}})},qo=wa=>{u({type:"update:popups:state",payload:{assetUploadState:wa}})};let ua=0;for(const wa of ee){const{assets_size:Ja}=wa;ua=ua+Ja}const Ea=W;Nr(Nt,{assetAttrs:Sn,userId:z.id,onChangeAssetUpload:Wo,onChangeAssetUploadState:qo,exceededChecker:wa=>{const Ja=Number(Ea),La=Ja>=1e3?Ja/1e3+"GB":Ja+"MB",gr=vs.tz.InitialUser(z).planSdk.prototypePlan.getUserPlan()===ri.L1.Free;if(ua+wa>Ea*1024*1024)return(0,lr.Nd)("storage",{storage:" "+La,action:gr?"upgradeByFree":"upgradeByNotFree",role:"user",submit:gr?I18N.LibraryContainer.renew_prompt.upgrade_solo:I18N.LibraryContainer.renew_prompt.check_enterprise,gotoPrice:!gr,paymentRenewModalParams:gr?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0},callback:(wa,Ja,La)=>{const Na=Ja===La;setTimeout(()=>{u({type:"entry:refresh:asset:add",payload:{asset:{...wa,asset_cid:wa==null?void 0:wa.cid},isCreateToUser:X}}),Wo({index:Ja,indexMax:La,assetUploaderFailure:[]}),Na&&setTimeout(()=>{qo("end")},1e3)},100),!X&&Tn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u4E0A\u4F20\u56FE\u7247"})}},"workspace",z,L)}}}})},"entry:refresh:asset:add":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{asset:x,isCreateToUser:b}}=R;const T=A(),L=x.group_cid,W=(b?(0,ba.XN)(T):(0,ba.qY)(T)).get(L);if(W){const X=[...W],ee={},pe=[];for(const ye of W)ee[ye.cid]=ye;ee[x.cid]||(X.push(x),pe.push(x),b?(u({type:"image-panel:set:user-assets-map",payload:{groupCid:L,userAssets:X}}),u({type:"entry:refresh:image-modal:user:image",payload:{addAssetList:pe}}),u({type:"entry:refresh:user-asset:count:url"})):(u({type:"image-panel:set:org-assets-map",payload:{groupCid:L,orgAssets:X}}),u({type:"entry:refresh:image-modal:org:image",payload:{addAssetList:pe}})))}else if(b){const X=(0,ba.sF)(T),ee=[];for(const pe of X)L===pe.cid&&(pe.assets_count=pe.assets_count+1),ee.push(pe);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ee}})}}},Nr=(B,R,A,u,x)=>{let{assetAttrs:b,userId:T,onChangeAssetUpload:L,onChangeAssetUploadState:z,exceededChecker:W,callback:X}=R;if(B=Array.from(B),!B.length)return;const ee=B.reduce((pe,ye)=>pe+ye.size,0);W(ee)||(z("start"),si(B,T,b,X,A,u,x,"design").catch(pe=>console.warn("[Asset]",pe)).then(pe=>{if(!pe){z("close");return}const{assetUploaderSuccess:ye,assetUploaderFailure:Ie}=pe,Ue=ye.length,Re=Ue!==0,ze=Ie.length!==0;Re&&setTimeout(()=>{z("close"),L({index:0,indexMax:0,assetUploaderFailure:[]})},2e3),ze&&setTimeout(()=>{z("failure"),L({index:0,indexMax:0,assetUploaderFailure:Ie})},2e3),setTimeout(()=>{Ue===B.length?MB.notice({text:I18N.LibraryContainer.image_upload_success,type:"success"}):Ue>0&&Ue<B.length?MB.notice({text:I18N.LibraryContainer.someimage_upload_success}):Ue===0&&(MB.notice({text:I18N.LibraryContainer.image_faild_tips,type:"warning"}),z("close"))},2e3)}))},si=async function(B,R,A,u,x,b,T,L){R===void 0&&(R="");let{assetType:z,groupCid:W,orgCid:X,userName:ee=""}=A;const pe=[],ye=[];for(let Ie=0,Ue=B.length;Ie<Ue;Ie++)try{const Re=B[Ie];(0,Yr.XI)(Re,x,b,T,L),await(0,Yn.lO)(Re,{assetType:z,orgCid:X,groupCid:W,userId:R},void 0).then(ze=>{ze&&(ze.group_cid=W,ze.user_id=R,ze.user_name=ee,ze.name=Re.name,ze.size=Re.size,ze.created_at=new Date().valueOf(),ye.push(ze),z==="org_image"&&(ze.org_cid=X),u&&u(ze,ye.length,Ue))})}catch(Re){console.error(Re),Re.asset&&pe.push(Re.asset),(Re==null?void 0:Re.message)!=="NoErrorTips"&&(0,Yr.lK)(Re)}return{assetUploaderSuccess:ye,assetUploaderFailure:pe}},Is={"entry:refresh:user-asset:from:cid":async(B,R)=>{let{dispatch:A}=B,{payload:{groupCid:u}}=R;const{userAssets:x}=await(0,G.OJ)(),b=x.filter(T=>T.group_cid===u);b&&A({type:"image-panel:set:user-assets-map",payload:{groupCid:u,userAssets:b}})},"entry:batch:remove:user-asset":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userAsset:x,callback:b}}=R;const[T,L]=[I18N.LibraryContainer.materialLibrary.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,x.name)],z=A(),W=(0,ba.XN)(z);W!=null&&W.get(x.group_cid)||await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:x.group_cid}});const X=()=>{u({type:"entry:refresh:user-asset:delete",payload:{userAsset:x}}),u({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:x}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),b&&b()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:T,desc:L,onConfirm:()=>{X()}}})},"entry:batch:transfer:user-asset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userAsset:x,callback:b}}=R;const T=A(),L=(0,ba.sF)(T),z=async X=>{let{selectedGroupCid:ee}=X;if(ee===x.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const pe=[x.group_cid];x.group_cid=ee,pe.push(ee),await u({type:"entry:refresh:transfer:user-asset:from:group_cid",payload:{refreshGroupCidList:pe,userAsset:x}}),await(0,G.wR)({cids:[x.cid],...x}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,ba.$L)(T).includes(ee)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:ee}}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:ee}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:ee,isOrg:!1}}),b&&b()},W=I18N.LibraryContainer.materialLibrary.asset_move;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:W,selectCidSet:new Set(x.cid),itemGroups:L,isImage:!0,onModalTransfer:z}}})},"entry:refresh:user-asset:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userAsset:x}}=R;const b=A(),T=(0,ba.sF)(b),L=(0,ba.XN)(b);for(const z of T)if(x.group_cid===z.cid&&L.get(x.group_cid)){const W=[],X=L.get(x.group_cid);for(const ee of X)ee.cid!==x.cid?W.push(ee):(0,G.Qy)(x);u({type:"image-panel:set:user-assets-map",payload:{groupCid:x.group_cid,userAssets:W}})}u({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:transfer:user-asset:from:group_cid":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{refreshGroupCidList:x,userAsset:b}}=R;const T=A(),L=(0,ba.XN)(T),[z,W]=x;if(L.get(z)){const pe=[],ye=L.get(z);for(const Ie of ye)Ie.cid!==b.cid&&pe.push(Ie);u({type:"image-panel:set:user-assets-map",payload:{groupCid:z,userAssets:pe}})}const ee=[...L.get(W)||[],b];u({type:"image-panel:set:user-assets-map",payload:{groupCid:W,userAssets:ee}}),u({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:update":async(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{userAssetUpdateList:b}}=R;const T=u(),L=(0,ba.XN)(T),z=(0,h.ut)(T),W=[],X=b[0].group_cid,ee=b[0].cid,pe=L.get(X),ye=(0,ba.uq)(T),Ie=(A=ye[Vn.b4])==null?void 0:A.list;if(z){var Ue;if(!(Ie!=null&&Ie.length))return;const ze=(0,Do.dU)({list:Ie,keys:[Do.rf.User],type:Bo.I.Asset,mapFunc:function(xt){return xt===void 0&&(xt=[]),xt.map(Nt=>(Nt==null?void 0:Nt.cid)===ee?{...b[0]}:Nt)}}),st={...ye,asset:{...ye[Do.rf.Org],list:ze,total:(Ue=ye.asset)==null?void 0:Ue.total}};x({type:"searchPanel:update:state",payload:{searchResultListMap:st}})}const Re={};for(const ze of b)Re[ze.cid]=ze,(0,G.wR)({cids:[ze.cid],...ze});if(pe){for(const ze of pe)if(Re[ze.cid]){const st=Re[ze.cid];W.push(st)}else W.push(ze);x({type:"image-panel:set:user-assets-map",payload:{groupCid:X,userAssets:W}})}x({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:count:url":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.XN)(u),b=(0,ba.sF)(u),T=[];for(const L of b){const z=x.get(L.cid);if(z){let W=0;for(const ee of z)W=W+ee.size;const X={...L,assets_count:z.length,assets_size:W};T.push(X)}else T.push(L)}A({type:"image-panel:set:user-assets-groups",payload:{nextGroups:T}})},"entry:batch:transfer:user:asset:to:org":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userAsset:x,callback:b}}=R;const T=A(),L=(0,a.wA)(T);let z=0;MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const W=[],{org_asset:X,asset:ee}=await(0,G.Wr)(x.image,L.cid);if(X||W.push(X),MB.safeDelayLoading(!1),!W.length){MB.notice({text:"\u4F01\u4E1A\u7D20\u6750\u5E93\u5DF2\u5B58\u5728\u56FE\u7247",type:"error"});return}z+=x.size,MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:pe}=await(0,G.l9)(L.cid);if(!pe)return;let ye=0;for(const ze of pe){const{assets_size:st}=ze;ye=ye+st}MB.safeDelayLoading(!1);const Ie=L?L.limitation.storage:0,Ue=Number(Ie),Re=Ue>=1e3?Ue/1e3+"GB":Ue+"MB";if(ye+z>Ie*1024*1024)return(0,lr.Nd)("storage",{storage:" "+Re,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:L.cid}),!0;{const ze=async Nt=>{let{selectedGroupCid:$t}=Nt;const An=await(0,G.ob)({assetCid:ee.cid,name:x.name,groupCid:$t});u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:$t}}),u({type:"entry:search-panel:transfer:user:asset:to:org",payload:{cid:An,groupCid:$t}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),b&&b()},st=I18N.LibraryContainer.add_assets_from_personal_to_team,xt=I18N.LibraryContainer.add_to_team_assets;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:st,confirmText:xt,selectCidSet:new Set(x.cid),itemGroups:pe,isImage:!0,onModalTransfer:ze}}})}}},St={"entry:refresh:org-asset:from:cid":async(B,R)=>{let{dispatch:A}=B,{payload:{groupCid:u}}=R;const{orgAssets:x}=await(0,G.l9)(),b=x.filter(T=>T.group_cid===u);b&&A({type:"image-panel:set:org-assets-map",payload:{groupCid:u,orgAssets:b}})},"entry:batch:remove:org-asset":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAsset:x,callback:b}}=R;const T=A(),L=(0,ba.qY)(T),z=[];if(z.push(x),z.length===0){MB.notice({text:I18N.LibraryContainer.no_image_can_del});return}const[W,X]=[I18N.LibraryContainer.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,z[0].name)];L!=null&&L.get(x.group_cid)||await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:x.group_cid}});const ee=()=>{const pe=new Set(z.map(ye=>{let{cid:Ie}=ye;return Ie}));pe.size===1?(u({type:"entry:refresh:org-asset:delete",payload:{orgAsset:x}}),u({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:x,isOrg:!0}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),b&&b()):pe.size===0&&MB.notice({text:I18N.LibraryContainer.no_image_can_del}),Tn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u5220\u9664"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:W,desc:X,onConfirm:()=>{ee()}}})},"entry:batch:transfer:org-asset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAsset:x,callback:b}}=R;const T=A(),L=(0,ba.zX)(T),z=async X=>{let{selectedGroupCid:ee}=X;if(ee===x.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const pe=[x.group_cid];x.group_cid=ee,pe.push(ee),await u({type:"entry:refresh:org-asset:from:group_cid",payload:{refreshGroupCidList:pe,orgAsset:x}}),await(0,G.hY)({cids:[x.cid],...x}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,ba.i)(T).includes(ee)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:ee}}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:ee}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:ee,isOrg:!0}}),b&&b(),Tn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u79FB\u52A8"})},W=I18N.LibraryContainer.materialLibrary.asset_move;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:W,selectCidSet:new Set(x.cid),itemGroups:L,isImage:!0,onModalTransfer:z}}})},"entry:refresh:org-asset:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAsset:x}}=R;const b=A(),T=(0,ba.zX)(b),L=(0,ba.qY)(b);for(const z of T)if(x.group_cid===z.cid&&L.get(x.group_cid)){const W=[],X=L.get(x.group_cid);for(const ee of X)ee.cid!==x.cid?W.push(ee):(0,G.vS)(x);u({type:"image-panel:set:org-assets-map",payload:{groupCid:x.group_cid,orgAssets:W}})}u({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:from:group_cid":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{refreshGroupCidList:x,orgAsset:b}}=R;const T=A(),L=(0,ba.qY)(T),[z,W]=x;if(L.get(z)){const X=[],ee=L.get(z);for(const pe of ee)pe.cid!==b.cid&&X.push(pe);u({type:"image-panel:set:org-assets-map",payload:{groupCid:z,orgAssets:X}})}if(L.get(W)){const ee=[...L.get(W),b];u({type:"image-panel:set:org-assets-map",payload:{groupCid:W,orgAssets:ee}})}u({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:update":async(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:{orgAssetUpdateList:T}}=R;const L=x(),z=(0,ba.qY)(L),W=[],X=T[0].group_cid,ee=T[0].cid,pe=z.get(X),ye=(0,ba.uq)(L),Ie=(A=ye[Vn.b4])==null?void 0:A.list;if(!(Ie!=null&&Ie.length))return;const Ue=(0,Do.dU)({list:Ie,keys:[Do.rf.Org],type:Bo.I.Asset,mapFunc:function(st){return st===void 0&&(st=[]),st.map(xt=>(xt==null?void 0:xt.cid)===ee?{...T[0]}:xt)}}),Re={...ye,asset:{...ye[Do.rf.Org],list:Ue,total:(u=ye.asset)==null?void 0:u.total}};b({type:"searchPanel:update:state",payload:{searchResultListMap:Re}});const ze={};for(const st of T)ze[st.cid]=st,(0,G.hY)({cids:[st.cid],...st});if(pe){for(const st of pe)if(ze[st.cid]){const xt=ze[st.cid];W.push(xt)}else W.push(st);b({type:"image-panel:set:org-assets-map",payload:{groupCid:X,orgAssets:W}})}b({type:"entry:refresh:org-asset:count:url"}),Tn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u91CD\u547D\u540D"})},"entry:refresh:org-asset:count:url":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.qY)(u),b=(0,ba.zX)(u),T=[];for(const L of b){const z=x.get(L.cid);if(z){let W=0;for(const ee of z)W=W+ee.size;const X={...L,assets_count:z.length,assets_size:W};T.push(X)}else T.push(L)}A({type:"image-panel:set:org-assets-groups",payload:{nextGroups:T}})},"entry:update:org:asset":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAssetList:x,type:b,fromUser:T}}=R;const L=A();if(!((0,h.OW)(L)===as.lS.Asset))return;const X=(0,ba.qY)(L),ee=(0,a.HW)(L),pe={};for(const ye of x)pe[ye.cid]=ye;for(const ye of x)if(X.get(ye.group_cid)){const Ie=X.get(ye.group_cid),Ue={},Re=[];for(const ze of Ie)Ue[ze.cid]=ze;if(b==="del")for(const ze of Ie)pe[ze.cid]||Re.push(ze);else{for(const ze of Ie)pe[ze.cid]&&Ue[ze.cid]?(Re.push(pe[ze.cid]),delete pe[ze.cid]):Ue[ze.cid]&&Re.push(Ue[ze.cid]);for(const ze of Object.values(pe))Ue[ze.cid]||ee.id!==T.id&&Re.push(ze)}u({type:"image-panel:set:org-assets-map",payload:{groupCid:ye.group_cid,orgAssets:Re}})}}};var je=i(98033);const qe=(B,R)=>{let A=0;for(;R!==null;){const u=B.find(x=>x.cid===R);if(u)R=u.parent_cid,A++;else throw new Error("Parent node "+R+" not found.")}return A},Le=(B,R,A)=>R===null?!0:qe(B,R)+1<=A,at=(B,R)=>{const A=[R];function u(x){const b=B.filter(T=>T.parent_cid===x);A.push(...b),b.forEach(T=>u(T.cid))}return u(R.cid),Array.from(new Set(A))},ft=(B,R,A)=>{const u=at(R,B),x=[];return u.forEach(b=>{x.push(...A.get(b.cid)||[])}),{groupsAndSub:u,assets:x}},kt=(B,R)=>{const A=(0,Ri.H)(B),u=[],x=(b,T,L)=>{for(const W of b){var z;W.level<=T&&W.cid!==L&&(W.level===T&&(W.subFolder=[]),u.push(W)),((z=W.subFolder)==null?void 0:z.length)>0&&x(W.subFolder,T,L)}};return x(A,R.level,R.cid),u};var en=i(29152);const Uo={...us,...Is,...St,...{"entry:load:user:asset:group:list":async B=>{let{dispatch:R}=B;const{userAssetGroupList:A}=await(0,G.OJ)();await R({type:"image-panel:set:user-assets-groups",payload:{nextGroups:A}}),await R({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})},"entry:create:user-asset-group":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.sF)(u),b=(0,a.HW)(u),T={cid:(0,je.Z)()?(0,Xn.kt)("oag"):(0,Xn.kt)("uag"),name:hr(x,I18N.LibraryContainer.folder),expanded:!1,position:0,parent_cid:null},{asset_group:L}=await(0,G.A9)(b.solo_org.cid,T),z=L.cid,W=(0,yi.ON)(L,x,G.Qs);A({type:"image-panel:set:user-assets-groups",payload:{nextGroups:W}}),A({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:z,isOrg:!1}}),A({type:"update:popups:state",payload:{editingCid:z}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-asset-group-insertion":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,insertionType:b}}=R;const T=A(),L=(0,ba.sF)(T),z=(0,a.HW)(T),{cid:W,position:X,parent_cid:ee}=x;let pe;L.forEach(Re=>{Re.cid!==W?Re.position>X&&(Re.position+=1):b==="up"?(pe={cid:(0,je.Z)()?(0,Xn.kt)("oag"):(0,Xn.kt)("uag"),name:hr(L,I18N.LibraryContainer.folder),expanded:!1,position:X,parentCid:ee},Re.position+=1):pe={cid:(0,je.Z)()?(0,Xn.kt)("oag"):(0,Xn.kt)("uag"),name:hr(L,I18N.LibraryContainer.folder),expanded:!1,position:X+1,parentCid:ee}});const{asset_group:ye}=await(0,G.A9)(z.solo_org.cid,pe),Ie=ye.cid,Ue=(0,yi.b4)(ye,L,G.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Ue}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Ie,isOrg:!1}}),u({type:"update:popups:state",payload:{editingCid:Ie}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:b==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x}}=R;const b=A(),T=(0,ba.sF)(b),L=(0,a.HW)(b),{cid:z,position:W}=x;try{if(!Le(T,z,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(Ie){}let X;T.forEach(Ie=>{Ie.cid!==z?Ie.position>W&&(Ie.position+=1):X={cid:(0,je.Z)()?(0,Xn.kt)("oag"):(0,Xn.kt)("uag"),name:hr(T,I18N.LibraryContainer.folder),expanded:!1,position:W+1,parentCid:z}});const{asset_group:ee}=await(0,G.A9)(L.solo_org.cid,X),pe=ee.cid,ye=(0,yi.b4)(ee,T,G.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ye}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:pe,isOrg:!1}}),u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:x.cid}}),u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:x.cid}}),u({type:"update:popups:state",payload:{editingCid:pe}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,callback:b}}=R;const T=A(),L=(0,en.IE)(T),z=(0,ba.sF)(T);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{userAssets:W}=await(0,G.OJ)(),X=at(z,x),ee=new Map;X.forEach(Re=>{ee.set(Re.cid,[])}),W.forEach(Re=>{ee.has(Re.group_cid)&&ee.set(Re.group_cid,[...ee.get(Re.group_cid),Re])}),ee.forEach((Re,ze)=>{ze.length>0&&u({type:"image-panel:set:org-assets-map",payload:{groupCid:Re,orgAssets:ze}})});const pe=ee.get(x.cid),{assets:ye}=ft(x,z,ee),Ie=kt(z,x),Ue=async Re=>{let{isDeleteAsset:ze,selectedCid:st}=Re;if(ze)for(const Nt of ye)u({type:"entry:refresh:user-asset:delete",payload:{userAsset:Nt}});else{const Nt=[],$t=[];pe.forEach(An=>{Nt.push(An.cid)}),x.subFolder.forEach(An=>{const zn={cid:An.cid,parent_cid:st,position:9999};$t.push(zn)}),$t.length>0&&await(0,G.Jm)($t),Nt.length>0&&await(0,G.r3)(Nt,{groupCid:st})}const xt=[];for(const Nt of z)x.cid!==Nt.cid?xt.push(Nt):await(0,G.ty)(Nt.cid);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:xt}}),u({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([x.cid]),isOrg:!1,category:Vn.b4}}),u({type:"entry:load:user:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),b&&b(),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:x,otherAssetGroups:Ie,assetToRemove:ye,onModalDelete:Ue}}})},"entry:refresh:user-asset-group:update":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userAssetGroupUpdateList:x}}=R;const b=A(),T=(0,ba.sF)(b),L={};for(const W of x)L[W.cid]=W;const z=[];for(const W of T)L[W.cid]?(z.push(L[W.cid]),(0,G.V7)(L[W.cid])):z.push(W);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:z}})},"entry:transfer:to:org:asset-groups":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,callback:b}}=R;const T=A(),L=(0,a.wA)(T),z=(0,ba.zX)(T);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:W}=await(0,G.l9)(L.cid);if(!W)return;let X=0;for(const ze of W){const{assets_size:st}=ze;X=X+st}const{storage:ee}=(0,Yl.xR)(null,L),pe=Number(ee),ye=pe>=1e3?pe/1e3+"GB":pe+"MB";let Ie=0;const{userAssets:Ue}=await(0,G.OJ)();if(Ue.filter(ze=>ze.group_cid===x.cid).forEach(ze=>Ie+=ze.size),MB.safeDelayLoading(!1),X+Ie>ee*1024*1024)return(0,lr.Nd)("storage",{storage:" "+ye,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:L.cid}),!0;{const ze=async()=>{const st=(0,Xn.kt)("oag"),{name:xt,cid:Nt}=x,$t=await(0,G.kZ)({org_cid:L.cid,name:xt,group_cid:Nt});u({type:"entry:load:org:asset:group:list"}),u({type:"entry:search-panel:refresh:group:add",payload:{category:Vn.b4,groupAddList:[$t]}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),b&&b()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.LibraryContainer.add_to_org_material,desc:I18N.LibraryContainer.materialLibrary.add_to_org_tips.replace(/%s/,(0,Mo.rB)().process(x.name)),onConfirm:()=>{ze()}}})}},"entry:refresh:user-asset-group:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{matchSelectDelSet:x}}=R;const b=A(),T=(0,ba.sF)(b),L=[];for(const z of T)x.has(z.cid)?(0,G.ty)(z.cid):L.push(z);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:L}})}},...{"entry:load:org:asset:group:list":async B=>{let{dispatch:R,getState:A}=B;const u=A(),x=(0,a.wA)(u),{orgAssetGroupList:b}=await(0,G.l9)(x.cid);b&&(await R({type:"image-panel:set:org-assets-groups",payload:{nextGroups:b}}),await R({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}}))},"entry:refresh:org-asset-group:update":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAssetGroupUpdateList:x}}=R;const b=A(),T=(0,ba.zX)(b),L={};for(const W of x)L[W.cid]=W;const z=[];for(const W of T)L[W.cid]?(z.push(L[W.cid]),(0,G.A1)(L[W.cid])):z.push(W);u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:z}})},"entry:create:org-asset-group":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.wA)(u),b=(0,ba.zX)(u),T={cid:(0,Xn.kt)("oag"),org_cid:x.cid,name:hr(b,I18N.LibraryContainer.folder),expanded:!1,position:0},{asset_group:L}=await(0,G.A9)(x.cid,T),z=L.cid,W=(0,yi.ON)(L,b,(0,G.XG)(x.cid));A({type:"image-panel:set:org-assets-groups",payload:{nextGroups:W}}),A({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:z,isOrg:!0}}),A({type:"update:popups:state",payload:{editingCid:z}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-asset-group-insertion":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,insertionType:b}}=R;const T=A(),L=(0,a.wA)(T),z=(0,ba.zX)(T),{cid:W,position:X,parent_cid:ee}=x;let pe;z.forEach(Re=>{Re.cid!==W?Re.position>X&&(Re.position+=1):b==="up"?(pe={cid:(0,Xn.kt)("oag"),name:hr(z,I18N.LibraryContainer.folder),expanded:!1,position:X,parentCid:ee},Re.position+=1):pe={cid:(0,Xn.kt)("oag"),name:hr(z,I18N.LibraryContainer.folder),expanded:!1,position:X+1,parentCid:ee}});const{asset_group:ye}=await(0,G.A9)(L.cid,pe),Ie=ye.cid,Ue=(0,yi.b4)(ye,z,(0,G.XG)(L.cid));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:Ue}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Ie,isOrg:!0}}),u({type:"update:popups:state",payload:{editingCid:Ie}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:b==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x}}=R;const b=A(),T=(0,ba.zX)(b),{cid:L,position:z}=x,W=(0,a.wA)(b);try{if(!Le(T,L,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(Ie){}let X;T.forEach(Ie=>{Ie.cid!==L?Ie.position>z&&(Ie.position+=1):X={cid:(0,Xn.kt)("oag"),name:hr(T,I18N.LibraryContainer.folder),expanded:!1,position:z+1,parentCid:L}});const{asset_group:ee}=await(0,G.A9)(W.cid,X),pe=ee.cid,ye=(0,yi.b4)(ee,T,(0,G.XG)(W.cid));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ye}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:pe,isOrg:!0}}),u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:x.cid}}),u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:x.cid}}),u({type:"update:popups:state",payload:{editingCid:pe}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:refresh:org-asset-group:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{matchSelectDelSet:x}}=R;const b=A(),T=(0,ba.zX)(b),L=[];for(const z of T)x.has(z.cid)?(0,G.yV)(z.cid):L.push(z);MB.notice({text:I18N.LibraryContainer.floder_del_success}),u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:L}})},"entry:remove:org-asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,callback:b}}=R;const T=A(),L=(0,en.IE)(T),z=(0,ba.zX)(T);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssets:W}=await(0,G.l9)(L),X=at(z,x),ee=new Map;X.forEach(Re=>{ee.set(Re.cid,[])}),W.forEach(Re=>{ee.has(Re.group_cid)&&ee.set(Re.group_cid,[...ee.get(Re.group_cid),Re])}),ee.forEach((Re,ze)=>{ze.length>0&&u({type:"image-panel:set:org-assets-map",payload:{groupCid:Re,orgAssets:ze}})});const pe=ee.get(x.cid),{assets:ye}=ft(x,z,ee),Ie=kt(z,x),Ue=async Re=>{let{isDeleteAsset:ze,selectedCid:st}=Re;if(ze)for(const Nt of ye)u({type:"entry:refresh:org-asset:delete",payload:{orgAsset:Nt}});else{const Nt=[],$t=[];pe.forEach(An=>{Nt.push(An.cid)}),x.subFolder.forEach(An=>{const zn={cid:An.cid,parent_cid:st,position:9999};$t.push(zn)}),$t.length>0&&await(0,G.Jm)($t),Nt.length>0&&await(0,G.r3)(Nt,{groupCid:st})}const xt=[];for(const Nt of z)x.cid!==Nt.cid?xt.push(Nt):await(0,G.yV)(Nt.cid);u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:xt}}),u({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([x.cid]),isOrg:!0,category:Vn.b4}}),u({type:"entry:load:org:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),b&&b(),Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:x,otherAssetGroups:Ie,assetToRemove:ye,onModalDelete:Ue}}})},"entry:update:org:asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgAssetGroupList:x,type:b}}=R;const T=A(),L=(0,ba.zX)(T),z=(0,h.OW)(T),W=[],X={},ee={};if(z===as.lS.Asset){for(const ye of x)X[ye.cid]=ye;for(const ye of L)ee[ye.cid]=ye;if(b==="del")for(const ye of L)X[ye.cid]||W.push(ye);else{for(const ye of L)X[ye.cid]&&ee[ye.cid]?(W.push(X[ye.cid]),delete X[ye.cid]):ee[ye.cid]&&W.push(ee[ye.cid]);for(const ye of Object.values(X))ee[ye.cid]||W.push(ye)}u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:W}})}}},...{"entry:create:widget:by:asset":(B,R)=>{let{dispatch:A}=B,{payload:{asset:u}}=R;if(!(0,ls._c)({type:P.x.WImage}))return;const x=(0,ne.BL)(u),b=[{items:[x],width:x.w,height:x.h}];A({type:"entry:batch:create:items",payload:{data:b}})},"entry:replace:widget:by:asset":(B,R)=>{let{dispatch:A}=B,{payload:{asset:u,assetReplaceMode:x}}=R;x===P.x.WImage?A({type:"entry:items:set:asset",payload:{asset:u}}):x===P.x.WCarousel&&A({type:"entry:replace:carousel:image",payload:{image:u==null?void 0:u.image,resetSelectIndex:!1}})},"entry:insert:sticky:by:asset":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{asset:b}}=R;const T=u(),L=(0,a.lh)(T),z=sdkStore.getHotItem(L);z&&[P.x.WSticky,P.x.WTear].includes(z==null||(A=z.hotAttr)==null?void 0:A.type)&&oo.A.emit("draft:side-toolbar:image",{asset:b})}}};function Xo(B,R,A){if(B.cid===R.sup){B.subFolder.forEach(x=>{x.data.zIndex=x.data.zIndex>=A?(x.data.zIndex||0)+1:x.data.zIndex});return}B&&B.folder&&B.folder.forEach(u=>Xo(u,R,A))}function Ia(B,R,A){A===void 0&&(A=0);for(const u of B){if(u.cid===R)return A;if(u.subFolder&&u.subFolder.length>0){const x=Ia(u.subFolder,R,A+1);if(x!==-1)return x}}return-1}const ja=(B,R,A)=>{const u=Ia(B,R);if(u===-1)throw new Error("cid not found");return u<A-1},ka=(B,R)=>{const A=u=>{for(const T of u){var x,b;if((x=T.children)!=null&&x.length&&(T.children.some(L=>L.key===R)||A(T.children))||(b=T.subFolder)!=null&&b.length&&A(T.subFolder))return!0}return!1};return A(B)},ga=(B,R)=>{const A=u=>{for(const b of u){var x;if(b.cid===R)return b;if((x=b.subFolder)!=null&&x.length){const T=A(b.subFolder);if(T)return T}}return null};return A(B)},er=function(B,R,A){A===void 0&&(A=null);const u=x=>{for(const L of x){var b,T;if((b=L.children)!=null&&b.length){const z=L.children.find(X=>X.key===R);if(z)return A&&A(z),B;const W=u(L.children);if(W)return W}if((T=L.subFolder)!=null&&T.length){const z=u(L.subFolder);if(z)return z}}return null};return u(B)},Za=(B,R)=>{const A=[],u=[],x=(T,L)=>{for(const W of T){var z;if(W.cid===L)return b(W),!0;if(((z=W.subFolder)==null?void 0:z.length)>0&&x(W.subFolder,L))return!0}return!1},b=T=>{var L;if(A.push(...T.children),u.push(T),((L=T.subFolder)==null?void 0:L.length)>0)for(const z of T.subFolder)b(z)};return x(R,B.cid),{combos:A,groupsAndSub:u}},Cr=(B,R)=>{const A=[],u=new Set,x=ko()(R),b=(T,L,z)=>{for(const X of T){var W;X.level<=L&&(X.level===L&&(X.subFolder=[]),!u.has(X.cid)&&A.push(X),X.subFolder=X.subFolder.filter(ee=>{if(u.add(ee.cid),ee.cid!==z)return ee})),((W=X.subFolder)==null?void 0:W.length)>0&&b(X.subFolder,L,z)}};return b(x,B.level,B.cid),A},Dr=(B,R)=>{const A=function(x,b,T){T===void 0&&(T=[]);for(const L of x){const z=[...T,L.name];if(L.cid===b)return z;if(L.subFolder){const W=A(L.subFolder,b,z);if(W)return W}}return null},u=A(B,R)||[];return u.length===0?"\u9876\u5C42\u6587\u4EF6\u5939":u.join("/")};var ti=i(88987);const Xr=Symbol("CREATE_FOLDER"),li=Symbol("DELETE_FOLDER"),ur=Symbol("RENAME_FOLDER"),oi=Symbol("MOVE_FOLDER"),hs=Symbol("CREATE_ELEMENT"),Di=Symbol("MOVE_ELEMENT"),Gr=Symbol("DELETE_ELEMENT"),ms=Symbol("CHANGE_ACCESS"),Zi={[Xr]:4e3,[li]:4001,[ur]:4002,[oi]:4003,[hs]:4004,[Di]:4005,[Gr]:4006,[ms]:4010},El=(B,R)=>{const{userName:A,folderCid:u,folderName:x,folderNewName:b,folderType:T,folderContainsCount:L,category:z,elementName:W,memberName:X,memberId:ee,policy:pe,elementPath:ye,folderPath:Ie}=R;switch(B){case Xr:return{user_name:A,design_folder_cid:u,design_folder_name:x,design_folder_type:T};case li:return{user_name:A,design_folder_cid:u,design_folder_name:x,design_folder_type:T,design_folder_contains:L};case ur:return{user_name:A,design_folder_cid:u,design_folder_name:x,design_folder_type:T,design_folder_new_name:b};case hs:return{user_name:A,design_category:z,design_element_name:W};case Di:return{user_name:A,design_category:z,design_element_name:W,element_path:ye};case oi:return{user_name:A,design_folder_cid:u,design_folder_name:x,design_folder_type:T,folder_path:Ie};case Gr:return{user_name:A,design_category:z,design_element_name:W};case ms:return{user_name:A,member_name:X,member_id:ee,policy:pe};default:return{}}},yc={"entry:track:org:library:operation:log":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{operationType:b,optional:T}=x,L=A(),{cid:z}=(0,a.wA)(L),W=(0,a.HW)(L),X=El(b,{...T,userName:W.name});await(0,ti.VX)({actionType:4,action:Zi[b],orgCid:z,extra:X})}};var Ts=i(45611);const Pn={"entry:create:combo:to:user:org:group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={group_cid:"",targetType:"user"}}=R;const{group_cid:b,targetType:T,callback:L}=x,z=A(),W=(0,Ae.nE)(z).filter(Wo=>!(0,He.OO)(Wo.key)),X=T==="user",ee=(0,a.HW)(z),pe=ee==null?void 0:ee.id;if(X&&!window.userSdkStore){const Wo=(0,a.F2)(z);await(0,la.Z)({fcg:Wo,userId:pe})}if(!X&&!window.orgSdkStore){const Wo=(0,a._x)(z);await(0,la.Z)({fcg:Wo,userId:pe,isOrg:!0})}const ye=A(),Ie=X?(0,ba.wS)(ye):(0,ba.lb)(ye),Ue=(0,Gt.ju)(W),Re=X?userSdkStore:orgSdkStore,ze=W.map(Wo=>(0,Ts.l8)(Wo)).flat();ze.length&&!Ue&&(ze.some(Wo=>Wo.hotAttr.type===P.x.WBasket)?MB.notice({text:I18N.__entry__.dynamic_create_tips}):MB.notice({text:I18N.__entry__.master_create_tips})),MB.safeDelayLoading(I18N.__entry__.in_progress);const st=(0,Ae.p$)(z),xt=st.length?(0,mr.KD)(st[0]):I18N.__entry__.untitled,Nt=hr(Ie,I18N.__entry__.folder),$t=Ie.sort((Wo,qo)=>Wo.data.zIndex-qo.data.zIndex),An=$t.length===0,zn=$t.length&&$t[0].cid,lo=b||zn,Qn=X?I18N.__entry__.add_to_my_widget:I18N.__entry__.add_to_org_widget;Re.combineMergeMark("create-combo");const Sn=async Wo=>{let{isCreating:qo,createName:ua,targetGroupCid:Ea,groupName:wa,onModalClose:Ja}=Wo,La;if(qo){const Ai=(0,Ni.Hz)({name:wa,sup:"B@main",asFolder:!0,store:Re,zIndex:0});La=Ai.key;const Rr={cid:Ai.key,name:Ai.hotAttr.name,data:Ai.hotAttr,children:[]};X?await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[Rr]}}):await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[Rr]}})}else La=Ea;const Na=ga(Ie,Ea),gr=(Na==null?void 0:Na.children)||[],Pi=(0,Ni.Hz)({name:ua,sup:La,store:Re}),_r=sdkStore.saveSubtree(ze.map(Ai=>Ai.key)),{contentFlatTree:ci}=sdkStore.parseSubtree(_r),[Ws,kr]=sdkStore.getHotKeyListAABB(W.map(Ai=>Ai.key)),Fi={x:-Ws,y:-kr};(0,re.BB)({data:_r,worldPos:{x:0,y:0},keyRndSup:Pi.key,currentPageKey:Pi.key,store:Re,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:Fi});const xi=[Pi].concat(gr).map((Ai,Rr)=>({...Ai,hotAttr:{...Ai.hotAttr,zIndex:Rr+1}}));Re.updateHotItemBatch(xi),ci.get("B@ref-muban").sub.forEach(Ai=>{Array.from(Re._calcIntActConnMapCached().refPageToBasket[Ai]||[]).forEach(Rr=>{u({type:"entry:basket:transform",payload:{itemsKeyList:[Rr],store:Re,hasUpdateWidgetTreeData:!1,type:"createCombo"}})})}),Re.combineMerge("create-combo"),Ja(),X?(u({type:"entry:load:user:combo:group:list"}),!(0,ba.MV)(z).includes(La)&&u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:La}}),MB.notice({text:I18N.__entry__.widget_move_to_solo_success}),userSdk.saveAsync()):(u({type:"entry:load:org:combo:group:list"}),!(0,ba.bg)(z).includes(La)&&u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:La}}),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),u({type:"entry:track:org:library:operation:log",payload:{operationType:hs,optional:{category:"combo",elementName:ua}}}),orgSdk.saveAsync()),u({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:La,isOrg:!X}}),L&&L()};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:An,modalTitle:Qn,createName:xt,targetGroupCid:lo,groupName:Nt,optionGroupItemList:$t,onModalConfirm:Sn}}})},"entry:check:combo:auto:to:user:org:group":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{isOrg:b}=x;u({type:"entry:create:combo:to:user:org:group",payload:{targetType:b?"org":"user"}})},"entry:batch:transfer:user:combo:to:org":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{combo:x,callback:b}}=R;const T=A(),L=(0,a.wA)(T),z=(0,a.HW)(T),W=(0,a._x)(T);!window.orgSdkStore&&L&&W&&z&&await(0,la.Z)({fcg:W,userId:z.id,isOrg:!0});const X=async ze=>{let{selectedGroupCid:st}=ze;const xt=pe.find(Sn=>Sn.cid===st),Nt=userSdkStore.getHotItem(x.key),$t=(0,Ni.Hz)({name:Nt.hotAttr.name,sup:st,store:orgSdkStore}),An=userSdkStore.saveSubtree(Nt.sub),{x:zn,y:lo}=(0,S.lY)(Nt,userSdkStore);(0,re.BB)({data:An,worldPos:{x:zn,y:lo},keyRndSup:$t.key,currentPageKey:$t.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}});const Qn=[$t].concat((xt==null?void 0:xt.children)||[]).map((Sn,Wo)=>({...Sn,sup:st,hotAttr:{...Sn.hotAttr,zIndex:Wo+1}}));orgSdkStore.updateHotItemBatch(Qn),b&&b(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),u({type:"entry:load:org:combo:group:list"})},ee=A(T),pe=(0,ba.lb)(ee),ye=new Set([x.key]),Ie=I18N.LibraryContainer.add_assets_from_personal_to_team,Ue=I18N.LibraryContainer.add_to_team_assets;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:Ie,confirmText:Ue,selectCidSet:ye,itemGroups:pe,onModalTransfer:X}}}),await orgSdk.saveAsync()}},an={"entry:batch:remove:user:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{group:x,combo:b,callback:T}}=R;const L=A(),z=(0,ba.wS)(L);ka(z,b.key)&&u({type:"entry:auto:remove:combo",payload:{group:x,combosToRemove:[b],callback:T}})},"entry:batch:transfer:user:combos":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{excludedCombo:b,selectedGroupCid:T}=x,L=A(),W=(0,ba.wS)(L).find(pe=>pe.cid===T),X=[b].concat((W==null?void 0:W.children)||[]).map((pe,ye)=>({...pe,sup:T,hotAttr:{...pe.hotAttr,zIndex:ye+1}}));userSdkStore.updateHotItemBatch(X),u({type:"entry:load:user:combo:group:list"});const ee=[b].map(pe=>({...pe,group:W}));u({type:"entry:search-panel:transfer:combo",payload:{transferCombos:ee}}),await userSdk.saveAsync()},"entry:update:user-combo:name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{groupCid:x,itemCid:b,name:T}}=R;const L=A(),z=(0,ba.wS)(L),W=er(z,b,X=>{userSdkStore.updateHotAttrMerge(X.key,{name:T}),X.hotAttr.name=T});u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:W}}),userSdk.saveAsync()}},Gn={"entry:batch:remove:org:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{group:x,combo:b,callback:T}}=R;const L=A(),z=(0,ba.lb)(L),W=ka(z,b.key),X=[b];W&&u({type:"entry:auto:remove:combo",payload:{group:x,combosToRemove:X,isOrg:!0,callback:()=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:Gr,optional:{elementName:X.map(pe=>{let{hotAttr:ye}=pe;return ye.name}).join(","),category:"combo"}}}),T&&T()}}})},"entry:batch:transfer:org:combos":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{excludedCombo:b,selectedGroupCid:T}=x,L=A(),z=(0,ba.lb)(L),W=z.find(ye=>ye.cid===T),X=[b].concat((W==null?void 0:W.children)||[]).map((ye,Ie)=>({...ye,sup:T,hotAttr:{...ye.hotAttr,zIndex:Ie+1}}));orgSdkStore.updateHotItemBatch(X),u({type:"entry:load:org:combo:group:list"});const ee=[b].map(ye=>({...ye,group:W}));u({type:"entry:search-panel:transfer:combo",payload:{transferCombos:ee,isOrg:!0}});const pe=Dr(z,T);u({type:"entry:track:org:library:operation:log",payload:{operationType:Di,optional:{category:"combo",elementName:ee.map(ye=>{let{hotAttr:Ie}=ye;return Ie.name}).join(","),elementPath:pe}}}),orgSdk.saveAsync()},"entry:update:org-combo:name":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{groupCid:x,itemCid:b,name:T}}=R;const L=A(),z=(0,ba.lb)(L),W=er(z,b,X=>{orgSdkStore.updateHotAttrMerge(X.key,{name:T}),X.hotAttr.name=T});u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:W}}),orgSdk.saveAsync(),Tn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u91CD\u547D\u540D"})}},_o=B=>{const R=B.sdkStore,{screenDataMap:A}=(0,Bs.tb)("B@main",R),u=(W,X)=>{const ee=[],pe=R.getSubHotItemList(W.key).filter(ye=>ye.hotAttr.bunch===P.x.RbPage&&!(0,$r.Mo)(ye)).map(ye=>({...ye,flpakKey:B.fssDat.flpakKey,level:X})).sort((ye,Ie)=>ye.hotAttr.zIndex-Ie.hotAttr.zIndex);return ee.push(...pe),pe.forEach(ye=>ee.push(...u(ye,X+1))),ee},x=(W,X)=>W.map(ee=>{const pe=A[ee],ye=X+1;if((0,$r.Mo)(pe))return{cid:pe.key,name:pe.hotAttr.name,data:pe.hotAttr,level:ye,subFolder:x(pe.sub,ye),children:u(pe,ye),sup:pe.sup}}).filter(Boolean),b=[];Array.from(Object.values(A)).filter(W=>(0,$r.Mo)(W)&&W.sup==="B@main").sort((W,X)=>W.hotAttr.zIndex-X.hotAttr.zIndex).forEach(W=>{b.push({cid:W.key,name:W.hotAttr.name,data:W.hotAttr,level:0,subFolder:x(W.sub,0),children:u(W,0),sup:W.sup})});const T=W=>W.sort((X,ee)=>X.data.zIndex-ee.data.zIndex),L=W=>T(W).map((ee,pe)=>{const ye=pe;return ee.data.zIndex!==ye&&(ee={...ee,data:{...ee.data,zIndex:ye+1}}),ee.subFolder&&ee.subFolder.length>0&&(ee.subFolder=L(ee.subFolder)),ee});return L(b)},Da={"entry:load:user:combo:group:list":async B=>{let{dispatch:R}=B;const A=_o(userSdk);await R({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:A}})},"entry:upgrade:user:combo:group:list":async(B,R)=>{let{dispatch:A}=B,{payload:{upgradeUserComboGroupList:u}}=R;A({type:"widget-panel:update:state",payload:{upgradeUserComboGroupList:u,isRequestV7UserComboGroup:!0}})},"entry:upgrade:org:combo:group:list":async(B,R)=>{let{dispatch:A}=B,{payload:{upgradeOrgComboGroupList:u}}=R;A({type:"widget-panel:update:state",payload:{upgradeOrgComboGroupList:u,isRequestV7OrgComboGroup:!0}})},"entry:create:user-combo-group":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.wS)(u),b=(0,Ni.Hz)({name:hr(x,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:userSdkStore,zIndex:0}),T={cid:b.key,name:b.hotAttr.name,data:b.hotAttr,children:[]};await A({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[T]}}),A({type:"update:popups:state",payload:{editingCid:T.cid}}),A({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:T.cid,isOrg:!1}}),userSdk.saveAsync(),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-combo-group-insertion":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x,insertionType:b}}=R;const T=A(),L=(0,ba.wS)(T);b==="up"?Xo(L,x,x.data.zIndex):Xo(L,x,x.data.zIndex+1);const z=(0,Ni.Hz)({name:hr(L,I18N.__entry__.folder),asFolder:!0,sup:x.sup,store:userSdkStore,zIndex:b==="up"?x.data.zIndex:x.data.zIndex+1}),W={cid:z.key,name:z.hotAttr.name,data:z.hotAttr,children:[],sup:z.sup};await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[W]}}),u({type:"update:popups:state",payload:{editingCid:W.cid}}),userSdk.saveAsync(),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:b==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x}}=R;const b=A(),T=(0,ba.wS)(b);try{if(!ja(T,x.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(W){console.log(W)}const L=(0,Ni.Hz)({name:hr(T,I18N.__entry__.folder),asFolder:!0,sup:x.cid,store:userSdkStore}),z={cid:L.key,name:L.hotAttr.name,data:L.hotAttr,children:[],sup:L.sup};await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[z]}}),u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:x.cid}}),u({type:"update:popups:state",payload:{editingCid:z.cid}}),userSdk.saveAsync(),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x,callback:b}}=R;const T=A(),L=(0,ba.wS)(T);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:z}=Za(x,L),W=Cr(x,L),X=async ee=>{let{isDeleteCombo:pe,selectedCid:ye}=ee;if(!pe&&ga(L,ye)){const Re=[...x.children].map((ze,st)=>({key:ze.key,sup:ye,hotAttr:{...ze.hotAttr,zIndex:st+1},sub:ze.sub})).concat([...x.subFolder.map((ze,st)=>({key:ze.cid,sup:ye,hotAttr:{...ze.data,zIndex:st+1},sub:ze.sub}))]);userSdkStore.updateHotItemBatch(Re),u({type:"entry:load:user:combo:group:list"})}const Ie=new Set([x.cid]);u({type:"entry:refresh:user-combo-group:delete",payload:{matchSelectDelSet:Ie}}),b&&b(),userSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:x,combosToRemove:z,comboGroupsCanMoveTo:W,onModalDelete:X}}})},"entry:transfer:to:org:combo-groups":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x,callback:b}}=R;const T=A(),L=(0,ba.lb)(T),z=(0,a.wA)(T),W=(0,a.HW)(T),X=(0,a._x)(T);!window.orgSdkStore&&z&&X&&W&&await(0,la.Z)({fcg:X,userId:W.id,isOrg:!0});const ee=async()=>{const pe=(Re,ze)=>{Re.forEach(st=>{const xt=userSdkStore.getHotItem(st);if(xt!=null&&xt.hotAttr.asFolder){const Nt=(0,Ni.Hz)({name:xt.hotAttr.name,sup:ze,store:orgSdkStore,asFolder:xt.hotAttr.asFolder});xt.sub&&xt.sub.length&&xt.hotAttr.asFolder&&pe(xt.sub,Nt.key)}else{const Nt=userSdkStore.getHotItem(st),$t=userSdkStore.saveSubtree(Nt.sub),An=(0,Ni.Hz)({name:Nt.hotAttr.name,sup:ze,store:orgSdkStore,asFolder:Nt.hotAttr.asFolder,zIndex:Nt.hotAttr.zIndex}),{x:zn,y:lo}=(0,S.lY)(Nt,userSdkStore);(0,re.BB)({data:$t,worldPos:{x:zn,y:lo},keyRndSup:An.key,currentPageKey:An.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}})}})},ye=userSdkStore.getHotItem(x.cid),Ie=(0,Ni.Hz)({name:ye.hotAttr.name,sup:"B@main",store:orgSdkStore,asFolder:ye.hotAttr.asFolder});ye.sub&&ye.sub.length&&pe(ye.sub,Ie.key);const Ue=Re=>{Re.forEach((ze,st)=>{var xt;((xt=ze.data)==null?void 0:xt.zIndex)!==st+2&&orgSdkStore.updateHotAttrMerge(ze.cid,{zIndex:st+2}),ze.subFolder&&ze.subFolder.length&&Ue(ze.subFolder)})};Ue(L),u({type:"entry:load:org:combo:group:list"}),u({type:"entry:search-panel:refresh:group:add",payload:{category:Vn.t_,groupAddList:[{cid:Ie.key,name:Ie.hotAttr.name,data:Ie.hotAttr}]}}),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),b&&b()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.add_to_org_material,desc:I18N.__entry__.add_to_org_tips.replace(/%s/,(0,Mo.rB)().process(x.name)),onConfirm:()=>{ee()}}})},"entry:refresh:user-combo-group:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{matchSelectDelSet:x}}=R;const b=A(),T=(0,a.HW)(b),L=(0,ba.wS)(b),z=X=>X.filter(ee=>{const pe=!x.has(ee.cid);return pe||(0,Ni.X3)(ee.cid,T,userSdkStore),ee.subFolder=z(ee.subFolder),pe}),W=z(L);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:W}})},"entry:refresh:user-combo-group:update":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userComboGroupUpdateList:x}}=R;const b=A(),T=(0,ba.wS)(b),L={};for(const X of x){const ee=(X==null?void 0:X.children)||[];L[X.cid]={...X,children:ee}}const z=X=>X.map(ee=>{if(L[ee.cid]){const pe=L[ee.cid],{name:ye}=pe;return userSdkStore.updateHotAttrMerge(ee.cid,{name:ye}),pe.subFolder=z(ee.subFolder),pe}else return ee.subFolder=z(ee.subFolder),ee}),W=z(T);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:W}}),userSdk.saveAsync()},"entry:refresh:user-combo-group:add":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{userComboGroupAddList:x}}=R;const b=A(),T=(0,ba.wS)(b),L=(0,yi.jD)(...x,T,userSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:L}})},"entry:refresh:user-combo-group:add:migrate":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{oldUserComboGroups:x}}=R;const b=A(),T=(0,ba.wS)(b),L=[];for(const W of T){let X=!1;const{cid:ee}=W;for(const pe of x){const{cid:ye}=pe;if(ye===ee){X=!0;break}}X||L.push(W)}const z=(0,yi.CF)(L,x,userSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:z}}),await userSdk.saveAsync()}},pr={"entry:load:org:combo:group:list":async B=>{let{dispatch:R}=B;const A=_o(orgSdk);await R({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:A}})},"entry:create:org:combo-group":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.lb)(u),b=(0,Ni.Hz)({name:hr(x,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:orgSdkStore,zIndex:0}),T={cid:b.key,name:b.hotAttr.name,data:b.hotAttr,children:[]};await A({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[T]}}),A({type:"update:popups:state",payload:{editingCid:T.cid}}),A({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:T.cid,isOrg:!0}}),orgSdk.saveAsync(),A({type:"entry:track:org:library:operation:log",payload:{operationType:Xr,optional:{folderCid:T.cid,folderName:T.name,folderType:"combo"}}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-combo-group-insertion":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x,insertionType:b}}=R;const T=A(),L=(0,ba.lb)(T);b==="up"?Xo(L,x,x.data.zIndex):Xo(L,x,x.data.zIndex+1);const z=(0,Ni.Hz)({name:hr(L,I18N.__entry__.folder),asFolder:!0,sup:x.sup,store:orgSdkStore,zIndex:b==="up"?x.data.zIndex:x.data.zIndex+1}),W={cid:z.key,name:z.hotAttr.name,data:z.hotAttr,children:[],sup:z.sup};await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[W]}}),u({type:"update:popups:state",payload:{editingCid:W.cid}}),orgSdk.saveAsync(),u({type:"entry:track:org:library:operation:log",payload:{operationType:Xr,optional:{folderCid:W.cid,folderName:W.name,folderType:"combo"}}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:b==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x}}=R;const b=A(),T=(0,ba.lb)(b);try{if(!ja(T,x.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(W){console.log(W)}const L=(0,Ni.Hz)({name:hr(T,I18N.__entry__.folder),asFolder:!0,sup:x.cid,store:orgSdkStore}),z={cid:L.key,name:L.hotAttr.name,data:L.hotAttr,children:[],sup:L.sup};await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[z]}}),u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:x.cid}}),u({type:"update:popups:state",payload:{editingCid:z.cid}}),orgSdk.saveAsync(),u({type:"entry:track:org:library:operation:log",payload:{operationType:Xr,optional:{folderCid:z.cid,folderName:z.name,folderType:"combo"}}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:org-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{comboGroup:x,callback:b}}=R;const T=A(),L=(0,ba.lb)(T);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:z}=Za(x,L),W=Cr(x,L),X=async ee=>{let{isDeleteCombo:pe,selectedCid:ye}=ee;if(!pe&&ga(L,ye)){const Re=[...x.children].map((st,xt)=>({key:st.key,sup:ye,hotAttr:{...st.hotAttr,zIndex:xt+1},sub:st.sub})).concat([...x.subFolder.map((st,xt)=>({key:st.cid,sup:ye,hotAttr:{...st.data,zIndex:xt+1},sub:st.sub}))]);orgSdkStore.updateHotItemBatch(Re),u({type:"entry:load:org:combo:group:list"});const ze=Dr(L,ye);x.children.forEach(st=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:Di,optional:{category:"combo",elementName:st.hotAttr.name,elementPath:ze}}})}),x.subFolder.forEach(st=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:oi,optional:{folderType:"combo",folderCid:st.cid,folderName:st.name,folderPath:ze}}})})}const Ie=new Set([x.cid]);u({type:"entry:refresh:org-combo-group:delete",payload:{matchSelectDelSet:Ie}}),b&&b(),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),u({type:"entry:track:org:library:operation:log",payload:{operationType:li,optional:{folderCid:x.cid,folderName:x.name,folderType:"combo",folderContainsCount:pe?z.length:0}}}),Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:x,combosToRemove:z,comboGroupsCanMoveTo:W,onModalDelete:X}}})},"entry:refresh:org-combo-group:delete":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{matchSelectDelSet:x}}=R;const b=A(),T=(0,a.HW)(b),L=(0,ba.lb)(b),z=X=>X.filter(ee=>{const pe=!x.has(ee.cid);return pe||(0,Ni.X3)(ee.cid,T,orgSdkStore),ee.subFolder=z(ee.subFolder),pe}),W=z(L);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:W}})},"entry:refresh:org-combo-group:update":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgComboGroupUpdateList:x}}=R;const b=A(),T=(0,ba.lb)(b),L={};for(const X of x){const ee=(X==null?void 0:X.children)||[];L[X.cid]={...X,children:ee}}const z=X=>X.map(ee=>{if(L[ee.cid]){const pe=L[ee.cid],{name:ye}=pe;return orgSdkStore.updateHotAttrMerge(ee.cid,{name:ye}),pe.subFolder=z(ee.subFolder),pe}else return ee.subFolder=z(ee.subFolder),ee}),W=z(T);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:W}}),orgSdk.saveAsync()},"entry:refresh:org-combo-group:add":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgComboGroupAddList:x}}=R;const b=A(),T=(0,ba.lb)(b),L=x[0],z=(0,yi.jD)(L,T,orgSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:z}})},"entry:update:org-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{orgComboGroupList:x,type:b}}=R;const T=A(),L=(0,ba.lb)(T),z=[],W={},X={};for(const ee of x)W[ee.cid]=ee;for(const ee of L)X[ee.cid]=ee;if(b==="del")for(const ee of L)W[ee.cid]||z.push(ee);else{for(const ee of L)W[ee.cid]&&X[ee.cid]?(z.push(W[ee.cid]),delete W[ee.cid]):X[ee.cid]&&z.push(ee);for(const ee of Object.values(W))X[ee.cid]||z.push(ee)}u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:z}})},"entry:refresh:org-combo-group:add:migrate":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{oldOrgComboGroups:x}}=R;const b=A(),T=(0,ba.lb)(b),L=[];for(const W of T){let X=!1;const{cid:ee}=W;for(const pe of x){const{cid:ye}=pe;if(ye===ee){X=!0;break}}X||L.push(W)}const z=(0,yi.CF)(L,x,orgSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:z}}),orgSdk.saveAsync()}},Lr=(B,R,A,u)=>{const x=b=>b.map(T=>{if(T.cid===R){const z=A(T.children).map((W,X)=>({...W,hotAttr:{...W.hotAttr,zIndex:X+1}}));return u.updateHotItemBatch(z),{...T,children:z}}return T.subFolder&&T.subFolder.length?{...T,subFolder:x(T.subFolder)}:T.children&&T.children.length?{...T,children:x(T.children)}:T});return x(B)},Sr=(B,R)=>{const A=(0,$r.BS)({sup:B}),u=(0,Ni.pV)(A,!1,!0),x=R===void 0?A==null?void 0:A.length:R;return A.splice(x,0,null),A.forEach((b,T)=>{if(b&&b.zIndex!==T+1){const L=sdkStore.getHotItem(b.cid),z={...L,hotAttr:{...L.hotAttr,zIndex:T+1}};sdkStore.updateHotItem(z)}}),{name:u,sup:B,zIndex:x+1}},cs={...Pn,...an,...Gn,...Da,...pr,...{"entry:auto:duplicate:combo":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{group:b,combo:T,isOrg:L}}=R;const z=u(),W=(0,ba.lb)(z),X=(0,ba.wS)(z),ee=L?W:X,pe=L?orgSdkStore:userSdkStore,ye=(0,Ni.Hz)({name:T.hotAttr.name+" "+I18N.__entry__.name_copy,sup:T.sup,store:pe});pe.dupRBPageSub(T.key,ye.key);const Ie=pe.getHotItem(ye.key),Ue=Lr(ee,T.sup,ze=>[Ie].concat(ze),pe),Re=L?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_dup_success}),x({type:"widget-panel:update:state",payload:{[Re]:Ue}}),x({type:"entry:search-panel:dup:combo",payload:{cid:ye.key,comboGroupCid:(A=T.group)==null?void 0:A.cid,isOrg:L}}),L?orgSdk.saveAsync():userSdk.saveAsync(),L&&Tn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u521B\u5EFA\u526F\u672C"})},"entry:auto:batch:remove:combo":(B,R)=>{let{dispatch:A}=B,{payload:{group:u,combo:x,isOrg:b,callback:T}}=R;A(b?{type:"entry:batch:remove:org:combo",payload:{group:u,combo:x,callback:T}}:{type:"entry:batch:remove:user:combo",payload:{group:u,combo:x,callback:T}})},"entry:auto:remove:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{group:x,combosToRemove:b,isOrg:T=!1,callback:L}}=R;if(!b.length)return;const z=b[0],[W,X]=b.length===1?[I18N.__entry__.del_widget_title,I18N.__entry__.del_widget_desc.replace(/%s/,(0,Mo.rB)().process(z.hotAttr.name))]:[I18N.__entry__.del_widget_title,I18N.__entry__.del_multi_widget_desc],ee=T?orgSdkStore:userSdkStore,pe=A(),ye=(0,a.HW)(pe),Ie=(0,ba.lb)(pe),Ue=(0,ba.wS)(pe),Re=T?Ie:Ue,ze=()=>{b.forEach($t=>(0,Ni.X3)($t.key,ye,ee));const st=b.map($t=>$t.key),xt=Lr(Re,x.cid,$t=>$t.filter(An=>!st.includes(An.key)),ee),Nt=T?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_del_success}),u({type:"widget-panel:update:state",payload:{[Nt]:xt}}),u({type:"entry:search-panel:remove:combo:from:comboCid",payload:{comboCidsSet:new Set(st),isOrg:T}}),L&&L(),T?orgSdk.saveAsync():userSdk.saveAsync(),T&&Tn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u5220\u9664"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:W,desc:X,confirmText:I18N.__entry__.delete,onConfirm:ze}})},"entry:auto:transfer:combo":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{group:x,excludedCombo:b,isOrg:T,callback:L}}=R;const z=A(),W=!T;MB.safeDelayLoading(I18N.__entry__.in_progress);const X=W?(0,ba.wS)(z):(0,ba.lb)(z),ee=new Set([b.key]),pe=async Ue=>{let{selectedGroupCid:Re}=Ue;if(Re===b.sup){MB.notice({text:"\u7EC4\u4EF6\u5DF2\u5728\u8BE5\u6587\u4EF6\u5939\u4E2D",type:"error"});return}ka(X,b.key)&&(W?(u({type:"entry:batch:transfer:user:combos",payload:{excludedCombo:b,selectedGroupCid:Re}}),!(0,ba.MV)(z).includes(Re)&&u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:Re}})):(u({type:"entry:batch:transfer:org:combos",payload:{excludedCombo:b,selectedGroupCid:Re}}),!(0,ba.bg)(z).includes(Re)&&u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:Re}})),MB.notice({text:I18N.__entry__.widget_move_success}),u({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:Re,isOrg:!W}}),L&&L(),!W&&Tn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u79FB\u52A8"}))},Ie={isOpen:!0,title:I18N.LibraryContainer.materialLibrary.combo_move,selectCidSet:ee,itemGroups:X,onModalTransfer:pe};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{designTransferModal:Ie}})},"entry:auto:create:combo-group":(B,R)=>{let{dispatch:A}=B,{payload:{isOrg:u}}=R;A(u?{type:"entry:create:org:combo-group"}:{type:"entry:create:user-combo-group"})},"entry:auto:create:sub-combo-group":(B,R)=>{let{dispatch:A}=B,{payload:{comboGroup:u,isOrg:x}}=R;A(!x?{type:"entry:create:user-sub-combo-group",payload:{comboGroup:u}}:{type:"entry:create:org-sub-combo-group",payload:{comboGroup:u}})},"entry:auto:create:combo-group-insertion":(B,R)=>{let{dispatch:A}=B,{payload:{comboGroup:u,isOrg:x,insertionType:b}}=R;A(!x?{type:"entry:create:user-combo-group-insertion",payload:{comboGroup:u,insertionType:b}}:{type:"entry:create:org-combo-group-insertion",payload:{comboGroup:u,insertionType:b}})},"entry:auto:change:confirm:combo_group:name":(B,R)=>{let{dispatch:A}=B,{payload:{comboGroup:u,comboGroupName:x,isOrg:b,callback:T}}=R;if(x.trim()==="")A({type:"update:popups:state",payload:{editingCid:""}});else if(u.name===x)A({type:"update:popups:state",payload:{editingCid:""}}),T&&T();else{const z=u.name;u.name=x,b?(A({type:"entry:refresh:org-combo-group:update",payload:{orgComboGroupUpdateList:[u]}}),A({type:"entry:track:org:library:operation:log",payload:{operationType:ur,optional:{folderCid:u.cid,folderName:z,folderNewName:x,folderType:"combo"}}})):A({type:"entry:refresh:user-combo-group:update",payload:{userComboGroupUpdateList:[u]}}),A({type:"update:popups:state",payload:{editingCid:""}})}b&&Tn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:update:combo:name":(B,R)=>{let{dispatch:A}=B,{payload:{isOrg:u,...x}}=R;A(u?{type:"entry:update:org-combo:name",payload:{...x}}:{type:"entry:update:user-combo:name",payload:{...x}})},"entry:auto:create:combo:on:screenList":B=>{let{getState:R,dispatch:A}=B;const u=R(),{isEditingCombo:x}=(0,At.r)(u);if(!x)return;const b=(0,a.Ur)(u),T=(0,h.Hs)(u),L=(0,h.He)(u),W=(0,h.HA)(u).children.filter(Ie=>(0,$r.Mo)(Ie.data)).map(Ie=>Ie.data),X=T==null?void 0:T.find(Ie=>W==null?void 0:W.find(Ue=>Ue.cid===Ie));let ee=null;if(X)ee=Sr(X);else if(b){var pe;const Ie=(pe=L[b.cid])==null?void 0:pe.sup;if(!Ie)return;const ze=(0,$r.BS)({sup:Ie}).findIndex(st=>st.cid===b.cid)+1;ee=Sr(Ie,ze)}else if(W!=null&&W.length)ee=Sr(W[0].cid);else{const Ie=hr(W,I18N.__entry__.folder);ee={name:"\u7EC4\u4EF61",sup:(0,Ni.Hz)({name:Ie,sup:"B@main",asFolder:!0}).key}}if(!ee)return;const ye=(0,Ni.Hz)(ee);A({type:"entry:update:screen:list"}),A({type:"entry:goto:project-alike",payload:{screenMetaCid:ye.key}}),A(o.GO.editBasketItemKey("")),A(o.GO.editBasketHotItem(null)),A({type:"screen:update:editing-screen-cid",payload:{cid:ye.key}}),A({type:"entry:zoom:fit:scale:offset"}),A({type:"entry:reset:screen:selection",payload:{resetScreenCid:ye.key}}),A({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:ye.key}}),A({type:"entry:memory:current:screen:offset:scale"}),A({type:"screen:update:state",payload:{currentPage:ye}})},"entry:auto:create:comboGroup:on:screenList":B=>{let{getState:R,dispatch:A}=B;const u=R(),{isEditingCombo:x}=(0,At.r)(u);if(!x)return;const T=(0,h.HA)(u).children.filter(ee=>(0,$r.Mo)(ee.data)).map(ee=>ee.data),L=hr(T,I18N.__entry__.folder),z=(0,$r.BS)({sup:"B@main"}),W=0;z.splice(W,0,null),z.forEach((ee,pe)=>{if(ee&&ee.zIndex!==pe+1){const ye=sdkStore.getHotItem(ee.cid),Ie={...ye,hotAttr:{...ye.hotAttr,zIndex:pe+1}};sdkStore.updateHotItem(Ie)}});const X=(0,Ni.Hz)({name:L,zIndex:W+1,sup:"B@main",asFolder:!0});A({type:"entry:update:screen:list"}),A({type:"screen:update:editing-screen-cid",payload:{cid:X.key}}),A({type:"entry:reset:screen:selection",payload:{resetScreenCid:X.key}})},"entry:auto:dup:combo:comboGroup:on:screenList":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isWithChildren:x}}=R;const b=A(),{isEditingCombo:T}=(0,At.r)(b);if(!T)return;const L=(0,h.Hs)(b),z=(0,h.He)(b),W=(0,h.HA)(b);sdkStore.combineMergeMark("dup-combo-group");const X=L.map(ee=>{const pe=z[ee],{key:ye}=(0,Ni.o)(pe);return(x||(0,$r.Mo)(pe))&&(0,Ni.NA)(pe,ye),(0,Ni.Pv)(pe,W),ye});sdkStore.combineMerge("dup-combo-group"),u({type:"entry:update:screen:list"}),u({type:"screen:update:screen-selection",payload:{screenSelection:X}}),MB.notice({text:I18N.__entry__.widget_dup_success})},"entry:auto:change:confirm:asset_group:name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{assetGroup:x,assetGroupName:b,callback:T,isOrg:L}}=R;const z=A(),W=(0,ba.sF)(z),X=(0,ba.zX)(z),ye=(L?X:W).filter(Ue=>Ue.cid!==x.cid).some(Ue=>Ue.name===b),Ie=b.trim()==="";ye||Ie?(ye&&MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),u({type:"update:popups:state",payload:{editingCid:""}})):x.name===b?(u({type:"update:popups:state",payload:{editingCid:""}}),T&&T()):(x.name=b,u(L?{type:"entry:refresh:org-asset-group:update",payload:{orgAssetGroupUpdateList:[x]}}:{type:"entry:refresh:user-asset-group:update",payload:{userAssetGroupUpdateList:[x]}}),u({type:"update:popups:state",payload:{editingCid:""}})),L&&Tn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:create:asset-group":(B,R)=>{let{dispatch:A}=B,{payload:{isOrg:u}}=R;A(!u?{type:"entry:create:user-asset-group"}:{type:"entry:create:org-asset-group"})},"entry:auto:create:asset-group-insertion":(B,R)=>{let{dispatch:A}=B,{payload:{assetGroup:u,isOrg:x,insertionType:b}}=R;A(!x?{type:"entry:create:user-asset-group-insertion",payload:{assetGroup:u,insertionType:b}}:{type:"entry:create:org-asset-group-insertion",payload:{assetGroup:u,insertionType:b}})},"entry:auto:create:sub-asset-group":(B,R)=>{let{dispatch:A}=B,{payload:{assetGroup:u,isOrg:x}}=R;A(!x?{type:"entry:create:user-sub-asset-group",payload:{assetGroup:u}}:{type:"entry:create:org-sub-asset-group",payload:{assetGroup:u}})},"entry:auto:scroll-to:active-combo-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{activeComboGroup:x}}=R;const b=document.querySelector("#group-list"),T=b==null?void 0:b.querySelector(".combo-group-panel[data-cid="+x+"]");T&&setTimeout(()=>{b.scrollTop=T.offsetTop},300)},"entry:auto:scroll-to:active-asset-group":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{activeAssetGroup:x}}=R;const b=document.querySelector("#group-list"),T=b==null?void 0:b.querySelector(".asset-group-panel[data-cid="+x+"]");T&&setTimeout(()=>{b.scrollTop=T.offsetTop},300)}}};var Us=i(14861),rl=i(65791),zl=i(47424),ds=i(48790),Ys=i(91474);const Tc={"entry:resources:set:templatePanel:single:page:fetch:data":async B=>{let{dispatch:R,getState:A}=B;const u=A(),x=(0,ba.CL)(u),b=(0,ba.v3)(u),T=(0,ba.E)(u),L=(0,ba.WG)(u),z=new Map,W=new Map,X=new Map(b),ee=T+"-"+L;if(b.has(ee))return;R({type:"page-panel:update:state",payload:{findLoading:!0}});const pe=async(Ue,Re)=>{const ze=Ue+"-"+Re;if(!X.has(ze)){let st=[];if(Re==="recommend"){const xt=await(0,Vo.Jv)(Ue),Nt=Object.values(xt).map($t=>{const{market_template:An,project_meta_cid:zn,p2mList:lo}=$t,Qn=(0,ds.QD)(An,zn,lo);let Sn=Qn;if((lo==null?void 0:lo.length)>2){const Wo=Math.floor(Math.random()*lo.length);let qo=Math.floor(Math.random()*lo.length);qo===Wo&&(qo=(Wo+1)%lo.length),Sn=[Qn[Wo],Qn[qo]]}return st=st.concat(Sn),{marketTemplateCid:An.cid,marketTemplate:An,marketTemplateItemGroup:Qn}});return{renderListKey:ze,marketTemplateItemList:st,data:Nt}}else{const{marketTemplates:xt,p2mMMap:Nt}=await(0,Vo.je)({platform:Ue,firstTypeCid:Re}),$t=xt&&xt.map(An=>{const{project_meta_cid:zn,cid:lo}=An,Qn=Object.values(Nt[zn]),Sn=(0,ds.QD)(An,zn,Qn);return st=st.concat(Sn),{marketTemplateCid:lo,marketTemplate:An,marketTemplateItemGroup:Sn}});return{renderListKey:ze,marketTemplateItemList:st,data:$t}}}};(await(async(Ue,Re)=>{const ze=Ue.map(async xt=>{let{cid:Nt}=xt;return await pe(Re,Nt)});return await Promise.all(ze)})(x.get(T),T)).forEach(Ue=>{let{renderListKey:Re,marketTemplateItemList:ze,data:st}=Ue;X.set(Re,ze),st.forEach(xt=>{let{marketTemplateCid:Nt,marketTemplate:$t,marketTemplateItemGroup:An}=xt;z.set(Nt,$t),W.set(Nt,An)})}),R({type:"page-panel:update:state",payload:{findPlatformSubTypeMtDataMap:X}}),R({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:z}}),R({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:W}}),R({type:"page-panel:update:state",payload:{isLoadedPageSingleData:!0}}),R({type:"page-panel:update:state",payload:{findLoading:!1}})},"entry:resources:set:templatePanel:page:single:init:data":async B=>{var R;let{dispatch:A,getState:u}=B;const x=u(),b=(0,a.Ur)(x),T=(0,ba.E)(x),L=(0,ba.WG)(x),z=(0,ba.xQ)(x),W=(0,a.PL)(x),X={findPlatformType:"mobile",findCurrentMtResourceCid:""};if(!T)try{var pe,ye;const st=(0,a.PL)(x),xt=(0,D.kV)(st.cid+"-platformType"),Nt=["ipad","web"].includes((pe=Us.v2[b==null?void 0:b.device])==null?void 0:pe.device)?"web":["display_screen"].includes((ye=Us.v2[b==null?void 0:b.device])==null?void 0:ye.device)?"visual":"mobile",$t=xt||Nt||"mobile";$t&&$t!==X.findPlatformType&&(X.findPlatformType=$t)}catch(st){console.log(st.message)}else X.findPlatformType=T,X.findCurrentMtResourceCid=z;A({type:"page-panel:update:state",payload:X});const Ie=X.findPlatformType;A({type:"page-panel:update:state",payload:{findPlatformType:Ie}}),W.cid&&Ie&&(0,D.cH)(W.cid+"-platformType",Ie),A({type:"page-panel:update:state",payload:{findLoading:!0}});const Ue=new Map;for(const st of Ys.Ny){let xt=[];const Nt=await(0,Vo.ZF)(st);xt=st==="visual"&&!ENV.IS_ON_PREMISES?[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]},...Nt]:Nt,Ue.set(st,xt)}const Re=(R=Ue.get(Ie)[0])==null?void 0:R.cid;A({type:"page-panel:update:state",payload:{findPlatformSubType:Re}}),A({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeListMap",value:Ue}}),A({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMap",value:new Map([[Ie,Re]])}}),!(0,rl.xN)(x)&&A({type:"entry:resources:set:templatePanel:single:page:fetch:data"})},"entry:resources:set:templatePanel:page:library:init:data":async B=>{let{dispatch:R,getState:A}=B;const u={templateLibraryPlatformType:"\u63A8\u8350",templateLibraryPlatformSubType:"",templateLibraryPlatformSubTypeListMap:new Map,templatePageLibraryList:[]},{screen_list:x}=await it(),b=Object.keys(x),T=await(0,zl.kz)(b);u.templatePageLibraryList=T,b.forEach(L=>{const z=T==null?void 0:T.find(W=>W.title===L);u.templateLibraryPlatformSubTypeListMap.set(L,x[L].filter(W=>{var X;return((X=z.templateList.find(ee=>ee.title===W))==null||(X=X.list)==null?void 0:X.length)>0}))}),u.templateLibraryPlatformType=b[0]||"\u63A8\u8350",u.templateLibraryPlatformSubType=x[u.templateLibraryPlatformType][0],R({type:"page-panel:update:state",payload:{...u,isLoadedPageLibraryData:!0}})},"entry:resources:set:templatePanel:file:update:data":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{filePlatformType:T}=x;T&&u({type:"page-panel:update:state",payload:{filePlatformType:T}})},"entry:resources:set:templatePanel:modals:page:category:data":async(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{updatedPlatformType:x,updatedPlatformSubType:b,callback:T}}=R;const L=u(),z=(0,a.PL)(L),W=(0,ba.v3)(L),X=x+"-"+b;if(!W.has(X)){let ee=[];const pe=[],ye=new Map,Ie=new Map,Ue=new Map,{marketTemplates:Re,p2mMMap:ze}=await(0,Vo.je)({platform:x,firstTypeCid:b,isPopup:!0});Re&&Re.forEach(st=>{const{project_meta_cid:xt,cid:Nt}=st,$t=Object.values(ze[xt]),An=(0,ds.QD)(st,xt,$t);ee=ee.concat(An),pe.push(Nt),ye.set(Nt,xt),Ie.set(Nt,st),Ue.set(Nt,An)}),A({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMtDataMap",value:new Map([[X,ee]])}}),A({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:Ie}}),A({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:Ue}}),A({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:pe,mtProjectMetaCidMap:ye}})}T()},"entry:resources:reset:templatePanel:filter":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,rl.Lt)(u),b=(0,ba.CL)(u),T=(0,ba.E)(u);if(x==="single"){const W=b.get(T);if((W==null?void 0:W.length)>0){var L;const X=(L=W[0])==null?void 0:L.cid;A({type:"page-panel:update:state",payload:{findPlatformSubType:X}})}}if(x==="library"){var z;const W=(0,rl.XA)(u),X="\u63A8\u8350",ee=(z=W.get(X))==null?void 0:z[0];A({type:"page-panel:update:state",payload:{templateLibraryPlatformType:X,templateLibraryPlatformSubType:ee}})}}};var Pd=i(60441),Kc=i(22375),ui=i(15722);const Ls="/api/community/v1/community_search",zs="/api/community/v1/community_search_balanced",Il="/api/community/v1/market_template/star/:cid",ul="/api/community/v1/market_template/like/:cid",Oc=[Kc._n.Everyone,Kc._n.MktMemberFree,Kc._n.MktMemberDiscount,Kc._n.MdMemberFree],_c={everyone_mt_member_free_mt_member_discount_member_free:"every_md_mt_free",everyone:"everyone",mt_member_free_mt_member_discount:"mt_free_discount",member_free:"member_free",everyone_mt_member_free_mt_member_discount:"every_mt_free",everyone_member_free:"every_md_free",mt_member_free_mt_member_discount_member_free:"md_mt_free"},Wd=B=>{const R=B.policy;if(R.length>0&&R.includes(ui.y))return ui.y;const A=Oc.map(u=>{if(R.includes(u))return u}).filter(u=>u).join("_");return _c[A]};function Jd(B,R){const A={};return Object.keys(B).forEach(u=>{R(B[u],u)&&(A[u]=B[u])}),A}const Op=B=>!(B==null||B==="default"||B.length===0),ep=async B=>{const R=Wd(B),A=Jd({...B,policy:R,keyword:ui.y},Op),u=!A.q&&A.order==="recommend"&&!A.policy,x=!A.q&&A.order==="recommend",b=u&&!ENV.IS_ON_PREMISES?zs:Ls,T=x&&!ENV.IS_ON_PREMISES?{...A,content_quality_score:!0}:A;try{return await(0,Ze.zi)(b,T)}catch(L){return console.log(L),null}},o1=B=>({page_size:30,version:"v2",q:B.keyword}),N0=async B=>{let{filter:R}=B;const A={...R,...o1(R)},u=await ep(A);if(!u)return{market_templates:[],isFetchingDone:!0,total_count:0};const{market_templates:x,total_count:b}=u;return{market_templates:x.filter(T=>!["design-draft","flow-chart","mind-map"].includes(T.project_type)),isFetchingDone:x.length===0,total_count:b}},Rp=B=>{try{return fetchPostHead(ul.replace(":cid",B),{})}catch(R){console.log(R)}},a1=async B=>{try{return fetchDeleteHeadWithHeader(ul.replace(":cid",B))}catch(R){console.log(R)}},p0=B=>{try{return fetchPostHead(Il.replace(":cid",B),{})}catch(R){console.log(R)}},p2=B=>{try{return fetchDeleteHeadWithHeader(Il.replace(":cid",B))}catch(R){console.log(R)}};var r1=i(75258);const i1={...{"entry:widget-modal:init":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,ba.f3)(u);let b=0;[r1.Iw.MP_App,r1.Iw.MP_H5].includes(x)?b=1:r1.Iw.MP_Applet===x&&(b=2),A({type:"widget-modal:update:largeFactory",payload:{tab:b}})},"entry:widget-modal:componentLibrary:update:templateList":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Pd.ri)(b),L=(0,Pd.GL)(b);await u({type:"widget-modal:update:componentLibrary",payload:{isFetchingMktData:!0}});const{page:z,platform:W,order:X,policy:ee,templateList:pe}=L,ye={page:z,platform:W,order:X,policy:ee,category:Vn.t_,keyword:T},{market_templates:Ie,isFetchingDone:Ue,total_count:Re}=await N0({filter:ye}),ze=z===1?[...Ie]:[...pe,...Ie],st=new Map;ze.forEach(xt=>{st.set(xt.cid,xt)}),u({type:"widget-modal:update:componentLibrary",payload:{templateList:ze,isFetchingMktData:!1,isFetchingDone:Ue,totalCount:Re,resourcesMap:st}}),x!=null&&x.callback&&(x==null||x.callback())}}},s1=(B,R)=>{const A=new Map,u=[];return B.sort((x,b)=>x.position-b.position).forEach(x=>{const b=R.filter(T=>T.group_cid===x.cid).sort((T,L)=>L.timestamp-T.timestamp);b!=null&&b.length&&(A.set(x.cid,b),u.push(...b))}),{assetsMap:A,assets:u}},K2={"entry:init:user:image":async B=>{let{dispatch:R}=B;const{userAssetGroupList:A,userAssets:u}=await(0,G.OJ)();await R({type:"image-panel:set:user-assets-groups",payload:{nextGroups:A}}),await R({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}});const{assetsMap:x,assets:b}=s1(A,u);await R({type:"image-panel:update:state",payload:{userAssetsMap:x,userAssets:b,isRequestUserAssets:!0}})},"entry:init:org:image":async B=>{let{dispatch:R}=B;const{orgAssetGroupList:A,orgAssets:u}=await(0,G.l9)();await R({type:"image-panel:set:org-assets-groups",payload:{nextGroups:A}}),await R({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}});const{assetsMap:x,assets:b}=s1(A,u);await R({type:"image-panel:update:state",payload:{orgAssetsMap:x,orgAssets:b,isRequestOrgAssets:!0}})},"entry:refresh:image-modal:user:image":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{addAssetList:x}}=R;const b=A(),T=(0,ba.sF)(b),L=(0,ba.Qz)(b),z=(0,ea.$J)(b);if(!(z!=null&&z.isOpen))return;const{assetsMap:W,assets:X}=s1(T,[...L,...x]);u({type:"image-panel:update:state",payload:{userAssetsMap:W,userAssets:X}})},"entry:refresh:image-modal:org:image":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{addAssetList:x}}=R;const b=A(),T=(0,ba.zX)(b),L=(0,ba.pI)(b),z=(0,ea.$J)(b);if(!(z!=null&&z.isOpen))return;const{assetsMap:W,assets:X}=s1(T,[...L,...x]);u({type:"image-panel:update:state",payload:{orgAssetsMap:W,orgAssets:X}})}},Bp=(B,R,A)=>{const{group_cid:u}=B;let x={};if(A==="user_asset"){var b;x={projectUpperType:A,projectUpperCid:u,itemCid:(b=B.cid)!=null?b:B.asset_cid}}else if(A==="picture"||A==="sticker"){var T;x={projectUpperType:"picture",projectUpperCid:(T=B.cid)!=null?T:B.asset_cid}}else{var L;const z=B.asset_cid.includes("findPicture_")||B.asset_cid.includes("findSticker_"),W=z?"picture":"user_asset",X=z?B.asset_cid:B.group_cid,ee=z?"":(L=B.cid)!=null?L:B.asset_cid;x={projectUpperType:W,projectUpperCid:X,itemCid:ee}}return{isRequestRecent:!R,...x}},x0={...K2,"entry:image-panel:set:image":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{asset:b,isOrg:T,type:L="user_asset"}=x,z=A(),W=(0,Ae.nE)(z);if(!(W!=null&&W.length))return;const X=(0,a.lh)(z),ee=(0,jt.WH)(z),pe=(0,jt.fo)(z),ye=X?sdkStore.getHotItem(X):null;if(!W.some(Re=>{var ze;const{hotAttr:{type:st}}=Re;if([P.x.WImage,P.x.WPlaceholder,P.x.WCarousel].includes(st)||Re.key===X&&ye&&[P.x.WSticky,P.x.WTear].includes(ye==null||(ze=ye.hotAttr)==null?void 0:ze.type)||Re.key===ee&&(pe==null?void 0:pe.length)===1)return!0})||(W.forEach(Re=>{const{hotAttr:{type:ze}}=Re;[P.x.WImage,P.x.WPlaceholder].includes(ze)?u({type:"entry:replace:widget:by:asset",payload:{asset:b,assetReplaceMode:P.x.WImage}}):ze===P.x.WCarousel&&u({type:"entry:replace:widget:by:asset",payload:{asset:b,assetReplaceMode:P.x.WCarousel}})}),u({type:"entry:insert:sticky:by:asset",payload:{asset:b}}),u({type:"entry:mind:insert:asset",payload:{asset:b}}),u({type:"entry:auto:show:hide:item"}),T))return;const Ue=Bp(b,T,L);(0,G.Cp)(Ue)},"entry:image-panel:create:image:by:click":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{asset:b,isOrg:T,isTrack:L=!1,type:z="user_asset"}=x,W=A(),X=(0,Ae.nE)(W),ee=(0,a.lh)(W),pe=(0,jt.WH)(W),ye=(0,jt.fo)(W),Ie=ee?sdkStore.getHotItem(ee):null;if(X.some(xt=>{var Nt;const{hotAttr:{type:$t}}=xt;if([P.x.WImage,P.x.WPlaceholder,P.x.WCarousel].includes($t)||xt.key===ee&&Ie&&[P.x.WSticky,P.x.WTear].includes(Ie==null||(Nt=Ie.hotAttr)==null?void 0:Nt.type)||xt.key===pe&&(ye==null?void 0:ye.length)===1)return!0})){u({type:"entry:image-panel:set:image",payload:{asset:b,isOrg:T,type:z}});return}const Re=(0,ne.BL)(b),ze=Bp(b,T,z),st=[{...Re,recent:{...ze,isTrack:L}}];u({type:"entry:resources:quick:create:template",payload:{data:st}})}},j0=B=>{if(B!=null&&B.length){var R,A,u;if((R=[P.x.WIcon,P.x.WImage])!=null&&R.includes((A=B[0])==null?void 0:A.type))return B[0];if((u=B[0])!=null&&u.length){var x;if(((x=B[0][0])==null?void 0:x.length)===1)return B[0][0][0]}}return null},od={...{...Tc,...i1,...x0,"entry:active:popup:panel":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{name:b}=x,T=A(),L=(0,lt.bP)(T),z=(0,h.OW)(T);u({type:"historyPanel:set:show",payload:{show:!1}}),u({type:"searchPanel:set:show",payload:{show:!1}}),u({type:"exalt:panel:order",payload:{name:b}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:b}}),as.Mf[b]&&u({type:"searchPanel:update:state",payload:{type:as.Mf[b]}}),u({type:"entry:init:hotKeyWords"}),u({type:"entry:init:design:configurations"}),b===as.lS.Page&&u({type:"entry:resources:reset:templatePanel:filter"}),L==="recommend"&&b!==z&&(b===as.lS.Directory||z===as.lS.Directory)&&setTimeout(()=>{u({type:"entry:update:screen_list_rect"})},200)},"entry:toggle:popup:panel":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{name:b}=x,T=A(),L=(0,h.OW)(T);u({type:"historyPanel:set:show",payload:{show:!1}}),u({type:"searchPanel:set:show",payload:{show:!1}}),L===b?u({type:"entry:resources:update:current:popup:panel",payload:{name:null}}):(u({type:"exalt:panel:order",payload:{name:b}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:b}}),as.Mf[b]&&u({type:"searchPanel:update:state",payload:{type:as.Mf[b]}}))},"entry:toggle:icon-select-popup":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{iconName:b,source:T}=x,L=A(),z=(0,ba.p8)(L),W=(0,ba.bw)(L);let X=(0,ba.Ou)(L),ee=null;if(b){let pe=b==null?void 0:b.slice(0,b==null?void 0:b.indexOf("-"));if(pe==="fa"&&(pe="fa5"),pe){let ye=(0,ba.CQ)(L);if(!ye){const{result:{market_templates:Ie}}=await(0,Vo.X)("&category="+Vn.C);ye=Ie,u({type:"icon-select-popup:update:state",payload:{iconGroupData:ye}})}ee=ye.find(Ie=>{let{title:Ue}=Ie;return pe==="if"?io.rJ.includes(Ue):Ue===io.jS[pe]||Ue===pe})}}z===Wn.Z.navigationMenuSettingPanel&&W&&(u({type:"icon-select-popup:update:state",payload:{navigationIconResources:W}}),X=W),T===Wn.Z.navigationMenuSettingPanel&&!ee&&X&&(ee=X),u({type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:ee}}),u({type:"icon-select-popup:update:state",payload:{source:T}})},"entry:resources:update:current:popup:panel":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{name:x}}=R;const b=A(),T=(0,a.PL)(b),L=(0,lt.bP)(b);if(L==="old_right"&&x===as.lS.Directory||(T.cid&&x&&(0,D.cH)("current_popup_panel_name_"+T.cid,x),u({type:"set:current:popup:panel",payload:{name:x}}),L==="old_right"))return;const z=M.Cj;x===as.lS.Directory?u({type:"left-panel:set:width",payload:{width:(0,D.Yt)("layer_left_panel_width_"+T.cid,z,D.qW.Number),isNotSaveLocal:!0}}):u({type:"left-panel:set:width",payload:{width:z,isNotSaveLocal:!0}})},"entry:resources:goto:square":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.wA)(u);A({type:"exalt:panel:order",payload:{name:as.lS.Builtin}}),A({type:"entry:resources:update:current:popup:panel",payload:{name:as.lS.Builtin}}),A({type:"widget-panel:update:state",payload:{navIndex:x?3:2}})},"entry:resources:starred:icon_groups":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{resources:x}}=R;if(MB.global.experienceLoginModalHelper("isSave"))return;const b=A(),T=(0,ba.IR)(b),L=(0,ba.nn)(b),z=(0,ba.Bu)(b),{is_star:W,cid:X}=x;await(0,$n.lU)(W,X);const ee={...x,is_star:!W},pe=z.map(ye=>ye.cid===X?ee:ye);if(W){const ye=[ee].concat(T),Ie=L.filter(Ue=>Ue.cid!==X);u({type:"icon-panel:update:state",payload:{resources:pe,unStarResources:ye,starResources:Ie}})}else{const ye=[ee].concat(L),Ie=T.filter(Ue=>Ue.cid!==X);u({type:"icon-panel:update:state",payload:{resources:pe,starResources:ye,unStarResources:Ie}})}},"entry:resources:paid:success:goto:starred":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,category:b}}=R;if(MB.global.experienceLoginModalHelper("isSave"))return;const T=A(),L=(0,h.ut)(T),z=(0,h.SE)(T);L?u({type:"entry:search-panel:clear:state"}):z&&u({type:"historyPanel:set:show",payload:{show:!1}});const W=b===Vn.t_?as.lS.Builtin:b===Vn.Gd?as.lS.Page:as.lS.Icon;if(u({type:"exalt:panel:order",payload:{name:W}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:W}}),b===Vn.t_)u({type:"widget-panel:update:state",payload:{navIndex:1,currentStarResourcesCid:x}});else if(b===Vn.Gd)u({type:"page-panel:update:state",payload:{navIndex:2,currentStarResourcesCid:x}});else if(b===Vn.C){u({type:"icon-panel:update:state",payload:{navIndex:1}});const X=await(0,Vo.Yk)(x);if(X){const{market_template:ee}=X;ee&&u({type:"icon-panel:update:state",payload:{currentIconResources:ee}})}}},"entry:resources:update:find:data":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cid:x,category:b,updateData:T}}=R;const L=A(),z=(0,ba.AC)(L),W=(0,ba.Cd)(L),X=(0,ba.SQ)(L),ee=(0,ba.zS)(L),ye=T||(Ie=>({...Ie,is_purchased:!0,is_star:!0}));if(b===Vn.t_){if(z.has(x)){const Ie=z.get(x).map(Ue=>({...Ue,marketTemplateSource:ye(Ue.marketTemplateSource)}));u({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:new Map([[x,Ie]])}})}}else if(b===Vn.Gd&&W!=null&&W.size){const Ie=X?(0,$n.Z_)(X,x,ye):null,Ue=ee?ye(ee):null,Re=(0,$n.Z1)(W,x,ye);u({type:"page-panel:update:state",payload:{libraryCurrentSquareTopic:Ie,libraryCurrentResources:Ue,libraryTopicListMap:Re}})}},"entry:resource:open:assetPanel":(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{isToFindPanel:x=!1}={}}=R;const b="asset";if(A({type:"historyPanel:set:show",payload:{show:!1}}),A({type:"searchPanel:set:show",payload:{show:!1}}),A({type:"exalt:panel:order",payload:{name:b}}),A({type:"entry:resources:update:current:popup:panel",payload:{name:b}}),x){const{is_org_project:T}=(0,a.PL)(u());A({type:"image-panel:update:state",payload:{navIndex:T?2:1}})}A({type:"searchPanel:update:state",payload:{type:as.Mf[b]}}),A({type:"entry:set:default:left-side-panel-width"})},"entry:resources:init:marketTemplateItemList:map":async(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{resourcesCids:x}}=R;const b=u(),T=(0,ba.AC)(b),L=(0,ba.fK)(b),W=Array.from(new Set(x)).filter(Ie=>!T.has(Ie));if(!W.length)return;const{marketTemplateItemListMap:X,marketTemplateListDataMap:ee}=await(0,$n._4)(W);A({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:X}});const pe=new Map;ee.forEach((Ie,Ue)=>{var Re;let{projectMetaList:ze}=Ie;pe.set(Ue,(Re=ze[0])==null?void 0:Re.cid)}),A({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:W,mtProjectMetaCidMap:pe}});const ye=new Map(L);X.forEach((Ie,Ue)=>{var Re;const ze=(Re=Ie[0])==null?void 0:Re.marketTemplateSource;ze&&ye.set(Ue,ze)}),A({type:"resources:set:resources_map",payload:{mtResourcesMap:ye}})},"entry:resources:set:mtSdkStore:map":async(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{mtResourceCidList:x,mtProjectMetaCidMap:b}}=R;const T=u(),L=(0,h.fm)(T),W=Array.from(new Set(x)).filter(ee=>!L.has(ee)),X=new Map(L);await(0,$n.jA)(X,W,b),A({type:"resources:set:resources_mtSdkStore_list_map",payload:{mtResourceSdkStoreMap:X}})},"entry:resources:set:pagePanel:find:update:data":async(B,R)=>{let{dispatch:A,getState:u}=B,{payload:x}=R;const b=u(),T=(0,a.PL)(b),L=(0,ba.E)(b),z=(0,ba.WG)(b),{scene_tag:W}=T,{platformType:X,platformSubType:ee,isReRequest:pe}=x||{},ye=X||L;let Ie=ee||z||"recommend";A({type:"page-panel:update:state",payload:{findPlatformType:ye}}),T.cid&&ye&&(0,D.cH)(T.cid+"-platformType",ye),A({type:"page-panel:update:state",payload:{findPlatformSubType:Ie}}),A({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMap",value:new Map([[ye,Ie]])}}),A({type:"entry:resources:set:templatePanel:single:page:fetch:data"})},"entry:number:key":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{key:b}=x,T=A(),L=(0,lt.bP)(T);if([6,7,8].includes(b))return;const z=(0,h.OW)(T),{isEditingBasket:W,isEditingMuban:X,isEditingCombo:ee}=(0,At.r)(T),pe=(0,a.HW)(T),ye=!!(pe!=null&&pe.id),Ie=as.qB;if(b>Ie.length)return;const Ue=Ie[b-1];if(!(Ue===as.lS.AI&&ENV.IS_ON_PREMISES)&&!(Ue===as.lS.AI&&!ye)&&!(Ue===as.lS.Asset&&MB.global.experienceLoginModalHelper("isSave"))&&!([as.lS.Page,as.lS.Template,as.lS.AI].includes(Ue)&&ee)&&!([as.lS.Page,as.lS.AI].includes(Ue)&&(W||X))){if(Ue&&z!==Ue){L!=="old_right"&&u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"entry:active:popup:panel",payload:{name:Ue}});return}L!=="old_right"&&u({type:"entry:toggle:left-nav-panel"}),u({type:"entry:active:popup:panel",payload:{name:L==="old_right"?null:Ue}})}},"entry:directory:nav:key":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x}}=R;const b=A(),T=(0,lt.bP)(b),L=(0,h.OW)(b),z=(0,h.AT)(b);if(x>2)return;const W=x-1;if(T==="old_right"||L===as.lS.Directory){if(z!==W){u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"directory-panel:bottom:set:nav",payload:{nav:W}});return}u({type:"entry:toggle:left-nav-panel"})}else L!==as.lS.Directory&&(u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"entry:active:popup:panel",payload:{name:as.lS.Directory}}),u({type:"directory-panel:bottom:set:nav",payload:{nav:W}}))},"entry:resources:escape:quickCreateWidget":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,on.sI)(u),b=(0,Bn.Q1)(u);(0,Lt.Ro)(u)?A({type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}):b?A({type:"elbow:update",payload:{isInElbowMode:!1}}):x&&A({type:"entry:comment:create:esc"}),A(o.GO.toggleInspectMode(!1)),A(o.GO.toggleHandMode(!1)),A({type:"entry:pencil:vector:exit:edit"}),A({type:"set:quick-create-widget",payload:{widget:null}}),A({type:"entry:ST:STMode:disable"})},"entry:resources:escape:template":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,on.sI)(u),b=(0,Bn.Q1)(u);(0,Lt.Ro)(u)?A({type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}):b?A({type:"elbow:update",payload:{isInElbowMode:!1}}):x&&A({type:"entry:comment:create:esc"}),A(o.GO.toggleInspectMode(!1)),A(o.GO.toggleHandMode(!1)),A({type:"entry:pencil:vector:exit:edit"}),A({type:"set:quick-create-widget",payload:{widget:null}}),A({type:"entry:ST:STMode:disable"}),A({type:"update:screenContainer:state",payload:{createTemplatesData:null}})},"entry:resources:quick:create:template":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{data:x}}=R;const b=A(),T=(0,a.YY)(b);u({type:"entry:resources:escape:quickCreateWidget"});const L=j0(T),z=j0(x);if(T&&x&&L&&z){if(L.type===P.x.WIcon&&z.type===P.x.WIcon){if(L._icon_id===z._icon_id){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}else if(L.type===P.x.WImage&&z.type===P.x.WImage){var W,X;if((L==null||(W=L.image)==null?void 0:W.imageRef)===(z==null||(X=z.image)==null?void 0:X.imageRef)){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}else if((L==null?void 0:L.key)===(z==null?void 0:z.key)){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}u({type:"update:screenContainer:state",payload:{createTemplatesData:x}})}},...br,...Uo,...cs,...yc},wd={...Kt,...od},u2={"entry:toggle:right-panel":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.T7)(u);A({type:"right-side-panel:collapse:panel",payload:{isMemorize:!x}}),A({type:"entry:observe:dom:size:update-viewport-rect"})}};var Sd=i(81973);const O0={...u2,...{"entry:STPanel:fit-viewport":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{STKey:x}}=R;const b=A(),T=(0,a.X_)(b),L=(0,a.ER)(b),z=(0,a.$S)(b),W=sdkStore.getHotAABB(x),[X,ee,pe,ye]=W,Ie={scale:T/100,size:{w:z.width,h:z.height},offset:L};if((0,ma._W)(Ie,z.left,W))return;const Re=X,ze=ee,st=pe-X,xt=ye-ee,Nt=T/100,$t=(-st/2-Re)*Nt,An=(-xt/2-ze)*Nt;u({type:"design:set:canvas:offset",payload:{offset:{x:$t,y:An}}})},"entry:STPanel:update:expandKeySet":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x}}=R;const b=A(),T=(0,Sd.zM)(b),L=new Set(T);L.has(x)?L.delete(x):L.add(x),u({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:L}})},"entry:STPanel:toggle:all:expandKeySet":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isExpandAll:x,stickyList:b}}=R;const T=A(),L=(0,Sd.ju)(T),z=x?[]:b.map(W=>{let{key:X}=W;return X}).filter(W=>!L.has(W));u({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:new Set(z)}})}}};var Up=i(75862),l1=i(58053),Tl=i(97529),il=i(34394),Fp=i(85131),X2=i(24437),tp=i(37342),h2=i(64580),Vp=i(94590),m2=i(76863),np=i(31222),ad=i(93157),Pc=i(47266);const Ga={"entry:toolbar:open:versionControl:modal":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Sd.UI)(u),b=(0,Sd.vr)(u);x||A({type:"entry:toggle:right-panel"}),A({type:"versions:update",payload:{isVersionManagementPaneShow:!b}})},"entry:toolbar:open:export_menu":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Up.bc)(b);if(!((0,Tl.Lm)(x==null?void 0:x.open)?x.open:!T)){u({type:"export:update:state",payload:{isExportMenuShow:!1,progress:0}});return}if(!(0,Pc.v)()){u({type:"modal:update:state",payload:{mktWMExportModal:{isOpen:!0,onExport:()=>{u({type:"export:update:state",payload:{isExportMenuShow:!0}})}}}}),Go.U4.watermarkExposureTrack("export");return}u({type:"export:update:state",payload:{isExportMenuShow:!0,progress:0}})},"entry:toolbar:restore:leftrightpane":B=>{let{dispatch:R}=B;const A=(0,D.Yt)((0,Oo.OB)()?m2.me:m2.KP,!0,D.qW.Boolean);R({type:"right-side-panel:collapse:panel",payload:{show:A}});const u=(0,D.Yt)((0,Oo.OB)()?np.lS:np.jm,!0,D.qW.Boolean);R({type:"left-panel:collapse:panel:show",payload:{show:u}})},"entry:toolbar:toggle:fullScreen":async B=>{let{dispatch:R}=B;l1.A.isFullscreen?(await l1.A.exit(),R({type:"entry:update:mode:viewType"}),R({type:"entry:toolbar:restore:leftrightpane"})):(await l1.A.request(),R(o.GO.setOnlyViewMode()),R({type:"right-side-panel:collapse:panel",payload:{show:!1,isMemorize:!1}}),R({type:"left-panel:collapse:panel:show",payload:{show:!1,isMemorize:!1}})),R(o.GO.toggleFullScreenMode()),R(o.GO.toggleHandMode()),setTimeout(()=>{R({type:"entry:update:viewport:rect"})},200)},"entry:toolbar:toggle:handTool":B=>{let{dispatch:R}=B;R({type:"entry:hand-tool:toggle"}),R(o.GO.toggleInspectMode(!1)),R({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),R({type:"entry:ST:STMode:disable"}),R({type:"elbow:update",payload:{isInElbowMode:!1}})},"entry:open:Launch":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:T}=R;if(MB.global.experienceLoginModalHelper("isSave"))return;const L=x(),z=(0,h.Hs)(L),W=(0,Ae.nE)(L),{isFromAbar:X}=(0,a.fv)(L)||{},ee=(0,a.eo)(L),pe=(0,Lt.rg)(L),ye=(0,Lt.uu)(L),Ie=(0,a.PL)(L),{isDesign:Ue}=(0,a.W4)(L)||{},{isEditingCombo:Re}=(0,At.r)(L)||{},ze=Re&&Ue,xt=(0,Lt.jx)(L)===o.qi.OnlyView,Nt=(0,a.z$)(L);if(ye||b({type:"entry:start:saving"}),ze){b({type:"entry:preview:combo"});return}const $t=W.filter(qo=>qo.hotAttr.type===il.x.Canvas),An=(T==null?void 0:T.activePageKey)||ee||z[0],zn=(T==null?void 0:T.activeCanvasKey)||((A=(u=$t[$t.length-1])==null?void 0:u.key)!=null?A:(0,Fp.XV)(An)),lo=new URLSearchParams(location.search).get("selection"),Qn=(0,Oo.St)()?pe?"launch":"sharing":"",Sn=(Nt==null?void 0:Nt.access_token)||Ie.access_token,Wo=(0,X2.s_)({isHtmlZipPreview:ye,isEmbedV2Preview:pe,accessToken:Sn,pageId:An,canvasId:zn,selection:lo,from:Qn});pe?(0,tp.JW)(Wo,"_self"):(X&&!xt?(0,al.sg)(al.ZW.enterPreview,{link:Wo}):(0,tp.JW)(Wo,"_blank","noreferrer"),b({type:"entry:update:novice:guide:and:task",payload:{guideType:m.c.GUIDE_NOVICE_2309_STEP_4,taskType:m.c.GUIDE_NOVICE_2309_TASK_4}})),(0,ad.bO)({currentProject:Ie,preview_type:(T==null?void 0:T.preview_type)||null,source:(T==null?void 0:T.source)||"\u7F16\u8F91\u533A"}),xt?(0,h2.A)({operation_type:h2.D.Device}):(0,Vp.kX)({operation_type:Vp.mV.Device})}};var Xl=i(43838),js=i(7018),ai=i(86594);const Oa={"entry:contextmenu:withtype":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{position:x,type:b}}=R;const T=A(),L=(0,Ae.nE)(T);let z=!1,W=!1;if(b==="text")if(await(0,Xl.$H)({hasNotice:!1})){const X=await(0,ai.LD)({isShowPrompt:!1});X!=null&&X.html&&(z=!0)}else{const X=await(0,Xl.oV)({itemType:"text/plain"}),ee=await(0,Xl.Tq)(),pe=await(0,Xl.EU)("widget");(pe!=null&&pe.html||ee||X)&&(z=!0)}else await(0,Xl.$H)({hasNotice:!1})?z=!!await(0,ai.LD)({isShowPrompt:!1}):z=!!await(0,ai.LD)({isShowPrompt:!1})||await(0,Xl.Xy)(),W=(await(0,ai.FR)(L)).canPaste;u({type:"open:contextmenu",payload:{position:x,canPaste:z,canPasteProperties:W}})},"copy:as:html":async B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.nE)(u),{injection:b}=x[0].hotAttr,T=(0,js.f)(b);try{await(0,Xl.ZC)(T),MB.notice({text:"\u4EE3\u7801\u590D\u5236\u6210\u529F",type:"success"})}catch(L){MB.notice({text:"\u4EE3\u7801\u590D\u5236\u5931\u8D25",type:"error"})}}};var Ql=i(67934),Sl=i(83535);const ju={"entry:update:linkNodeList":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ql.$_)(b),{isEditingCombo:L}=(0,At.r)(b),z=[...T],X=(0,lt.Jv)(b)===2;(0,Sl.uG)({linkNodeList:z,widget:x,isShowAllLinks:X,isSet:!0,isEditingCombo:L})&&u({type:"links:update:link-node-list",payload:{linkNodeList:z}})},"entry:remove:linkNodeList":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{link:b}=x,T=A(),L=(0,Ql.$_)(T),z=(0,or.Op)(L,W=>W.key===b.key);u({type:"links:update:link-node-list",payload:{linkNodeList:z}})}},Q2={...{"entry:observe:dom:size:update-viewport-rect":B=>{let{dispatch:R}=B;const A=document.querySelector(".mb-viewport");if(!A)return;const u=new ResizeObserver(function(x){R({type:"entry:update:viewport:rect"}),u.disconnect()});u.observe(A)}},...sr,...mi.Q,..._a,...Ei,...wc,...wd,...O0,...Ga,...Oa,...ju};var qd=i(80730),c1=i(28894),Hd=i(49899),$d=i(55109),Ad=i(65710),vc=i(77337),Pl=i(78998),Md=i(73658),Ld=i(74302),Jl=i(16966),d1=i(74222);const Wl=B=>{let{trackParams:R,start:A,success:u}=B;const x=performance.now(),b=Math.ceil((x-A)/1e3);(0,bt.kH)("download_project",{...R,is_download_success:u,download_time:b}),Tn.Y4.editProjectNew("\u4E0B\u8F7D\u9879\u76EE")};var Ll=i(87612),p1=i(26812),op=i(96737),ap=i(94529),j1=i(41011),b0=i(36397),Gd=i(547),Zd=i(14002);const qc=B=>{var R;if(!(0,He.OO)(B))return!1;const A=(0,He.QL)(B)[0],u=sdkStore.getHotItem(A);return(u==null||(R=u.hotAttr)==null?void 0:R.basket)!=="bMuban"},u1=B=>{var R;if(!isShadowKey(B))return!1;const A=fromShadowKey(B)[0],u=sdkStore.getHotItem(A);return(u==null||(R=u.hotAttr)==null?void 0:R.basket)==="bMuban"};var h1=i(88856);const J2=(B,R,A)=>{const u={source:"\u5DE5\u4F5C\u533A",project_type:"\u539F\u578B V8",project_name:R.name,project_cid:R.cid,download_source:(0,Oo.OB)()?"\u7F16\u8F91\u533A\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":A?"\u6807\u6CE8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":"\u603B\u89C8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA"},x=B.map(T=>{let{format:L,scale:z,isWithDeviceFrame:W}=T;const X={...u,download_type:L,export_image_times:z+"x",include_device_frame:W?1:0};return L==="png"&&(X.download_page_type="\u5F53\u524D\u9875"),{trackParams:X,start:performance.now()}});return T=>{x.forEach(L=>{let{trackParams:z,start:W}=L;return Wl({trackParams:z,start:W,success:T})})}},D1={...{"entry:export:item":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{exportConfigList:x}}=R;u({type:"export:update:state",payload:{isWidgetBeingExported:!0,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const b=A(),T=(0,a.PL)(b),L=(0,Lt._b)(b),z=T.name,W=(0,Pl.XB)((0,a.HW)(b),(0,a.wA)(b),(0,a.PL)(b));let X=(0,Ae.p$)(b);X.length===0&&((0,Zt.Lc)(b)||(0,on.sI)(b)||(0,Lt.jx)(b)===o.qi.OnlyView)&&(X=(0,Md.UR)((0,a.Ur)(b).cid).map(ye=>ye.key));const ee=[];for(const ye of X)for(const Ie of x)ee.push({...Ie,hasWatermark:W,itemKey:ye});const pe=J2(x,T,L);await(0,vc.WE)(ee,z,(ye,Ie)=>(0,vc.oB)(ye,u,Ie),pe),u({type:"export:update:state",payload:{isWidgetBeingExported:!1}})},"copy:as:png":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{exportConfigList:x}}=R;if(await(0,Xl.AU)())return;u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const b=A(),T=(0,a.PL)(b),L=(0,a.HW)(b),z=(0,a.wA)(b),W=(0,Pl.XB)(L,z,T);MB.notice({text:I18N.ContextMenu.copy_png_ing,type:"loading"});const X=(0,Ae.p$)(b),ee=(0,jn.F1)();for(const $t of X){const An=sdkStore.getHotItem($t);switch((0,jn.il)(ee,(0,b0.Gq)(sdkStore,$t,!1,"hot")),An.hotAttr.type){case"rResCanvas":{if(An.hotAttr.isClipContent)continue;for(const zn of An.sub)(0,b0.Gq)(sdkStore,zn,!1,"hot");break}}}const pe=(0,d1.gO)("",9,10,10,"",0,0,""),ye={key:(0,Oe.cF)("rbp"),hotAttr:pe,sup:d1.$k,sub:[]},Ie=(0,Jl.Nc)("asdf");Ie.w=ee[2]-ee[0],Ie.h=ee[3]-ee[1],Ie.x=ee[0]+Ie.w/2,Ie.y=ee[1]+Ie.h/2,Ie.fill.fillIsVisible=!1,Ie.isClipContent=!1;const Ue={key:(0,Oe.cF)("rc"),hotAttr:Ie,sup:ye.key,sub:[]},Re=(0,op.aw)((0,ap.b8)(),(0,j1.aF)({})),ze=(0,p1.uq)(Re);ze.updateHotItem(ye),ze.updateHotItem(Ue);const st=sdkStore.saveSubtree(X);(0,re.Td)({data:st,worldPos:{x:Ue.hotAttr.x-Ue.hotAttr.w/2,y:Ue.hotAttr.y-Ue.hotAttr.h/2},keyRndSup:Ue.key,commonKeyRndSup:"",currentPageKey:ye.key,store:ze,keepSup:!0});const xt=x[0],Nt=(0,vc.gD)({itemKey:Ue.key,pseudoSdkStore:ze,...xt,hasWatermark:W,isExportSticky:!0});try{try{Nt.validateIE(xt.format)}catch(An){if((0,vc.oB)(An,u,{exportLen:x.length,downloadType:"item"})!=="continue")return}const $t=await Nt.toIE(xt.format);await navigator.clipboard.write([new ClipboardItem({[$t.type]:$t})]),MB.notice({text:I18N.ContextMenu.copy_png_success,type:"success"})}catch($t){if($t.name==="NotAllowedError")return;MB.notice({text:I18N.ContextMenu.copy_png_faild_common,type:"error"}),(0,Ut.Cp)($t)}},"copy:as:png:thumbnail":async B=>{let{getState:R,dispatch:A}=B;const u=R(),{screenTreeData:x}=(0,Bs.tb)("B@main"),b=(0,$r.uS)(x),T=(0,a.Ur)(u);if(b!==(T==null?void 0:T.cid))return;const L=(0,a.X_)(u),z=(0,a.ER)(u),W=(0,a.$S)(u),X=(0,k.UV)(u),ee=(0,a.PL)(u),{left:pe,top:ye,width:Ie,height:Ue}=W,Re={clientX:pe,clientY:ye},ze={clientX:pe+Ie,clientY:ye+Ue},st=(0,Pt.mG)(Re,{scale:L,offset:z,viewportRect:W}),xt=(0,Pt.mG)(ze,{scale:L,offset:z,viewportRect:W}),Nt={startX:pe,startY:0,endX:pe+Ie,endY:Ue},$t=(0,Gd.vI)(Nt,L)||Nt,An=(0,Gd.rn)($t),zn={x:An.left,y:An.top,w:An.width,h:An.height},Qn=(0,Zd.I)(X,zn,!1,!1,L).filter(Fi=>!(sdkStore.isTrashed(Fi)||qc(Fi))),Sn=(xt.y-st.y)*1.48,Wo=(xt.x+st.x)/2,qo=Wo-Sn*.5,ua=Wo+Sn*.5,Ea=(0,jn.il)((0,jn.F1)(),[qo,st.y,ua,xt.y]),wa=(0,jn.F1)();for(const Fi of Qn)(0,jn.il)(wa,(0,b0.Gq)(sdkStore,Fi,!1,"hot"));const Ja=(0,d1.gO)("",9,10,10,"",0,0,""),La={key:(0,Oe.cF)("rbp"),hotAttr:Ja,sup:d1.$k,sub:[]},Na=(0,Jl.Nc)("asdf");Na.fill.solidColor=4109694463,Na.w=Ea[2]-Ea[0],Na.h=Ea[3]-Ea[1],Na.x=Ea[0]+Na.w/2,Na.y=Ea[1]+Na.h/2,Na.isClipContent=!1;const gr={key:(0,Oe.cF)("rc"),hotAttr:Na,sup:La.key,sub:[]},Pi=(0,op.aw)((0,ap.b8)(),(0,j1.aF)({})),_r=(0,p1.uq)(Pi);_r.updateHotItem(La),_r.updateHotItem(gr);const ci=sdkStore.saveSubtree(Qn);(0,re.Td)({data:ci,worldPos:{x:wa[0],y:wa[1]},keyRndSup:gr.key,commonKeyRndSup:"",currentPageKey:La.key,store:_r,keepSup:!0});const Ws={format:"png",scale:L/150,affix:"suffix",isWithDeviceFrame:!1},kr=(0,vc.gD)({itemKey:gr.key,pseudoSdkStore:_r,...Ws,hasWatermark:!1,isExportSticky:!0,isIncludeCanvasName:!1});try{kr.validateIE(Ws.format);const Fi=await kr.toIE(Ws.format),xi=await(0,qd.G6)(Fi);await(0,G.Ip)(ee.cid,{cover:xi})}catch(Fi){console.error("err",Fi)}kr.destory()},"entry:export:page":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pageToExportKeyList:x,scale:b,isWithDeviceFrame:T,format:L,isExportSticky:z=!1,downloadPageType:W,isIncludeCanvasName:X=!1,trackParams:ee}}=R;const pe=L,ye=performance.now();u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const Ie=A(),Ue=(0,a.PL)(Ie),Re=(0,a.HW)(Ie),ze=(0,a.wA)(Ie),st=Ue.name,xt=(0,Pl.XB)(Re,ze,Ue);T=W===Ld.y5.CANVAS?!1:T,X=W===Ld.y5.PAGE?!1:X;const Nt=[];for(const lo of x){const Qn=(0,vc.QV)({pageKey:lo,downloadPageType:W,scale:b,hasWatermark:xt,isWithDeviceFrame:T,isExportSticky:z,isIncludeCanvasName:X});try{Qn.validatePE(pe),Nt.push(Qn)}catch(Sn){const Wo=(0,vc.oB)(Sn,u,{exportLen:x.length,downloadType:"page"});if(Wo==="stop"){(0,Ll.p)("export-"+pe+"-failed",Sn),Wl({trackParams:ee,start:ye,success:!1});return}if(Wo==="skip")continue;Nt.push(Qn)}}if(Nt.length===0){const lo=W===Ld.y5.CANVAS?new vc.hk:new vc.ll;if((0,vc.oB)(lo,u,{exportLen:x.length,downloadType:"page"})==="stop"){(0,Ll.p)("export-"+pe+"-failed",lo),Wl({trackParams:ee,start:ye,success:!1});return}}u({type:"export:update:state",payload:{type:pe,loading:!0,progress:0}}),setTimeout(()=>{!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,h1.eY)(I18N.Common.view),duration:5e3})},2e3);let $t,An;const zn=(0,Pl.K4)(lo=>u({type:"export:update:state",payload:{progress:lo}})).splitTo(Nt.length);if(Nt.length===1)try{const lo=zn[0],Qn=Nt[0];$t=await(pe==="png"?Qn.toPngZipFilePE(pe,lo):Qn.toPdfFilePE(pe,lo)),An=$t.name,(0,Hd.saveAs)($t,An),Wl({trackParams:ee,start:ye,success:!0})}catch(lo){if((0,vc.oB)(lo,u,{exportLen:Nt.length,downloadType:"page"})==="stop"){(0,Ll.p)("export-"+pe+"-failed",lo),Wl({trackParams:ee,start:ye,success:!1});return}}else{const{JsZip:lo}=await c1.QN.loadLLG(),Qn=new lo,Sn=new Map;try{const Wo=Nt.map((qo,ua)=>async()=>{var Ea;const wa=zn[ua],Ja=(Ea=Sn.get(qo.name))!=null?Ea:0,La=ua+" "+(Ja>0?qo.name+" ("+(Ja+1)+")":qo.name);Sn.set(qo.name,Ja+1);const Na=Qn.folder(La);if(pe==="png")(await qo.toPngFilesPE("png-unzip",wa)).forEach(Pi=>Na.file(""+Pi.name,Pi));else{const gr=await qo.toPdfFilePE(pe,wa);Na.file(ua+" "+gr.name,gr)}});for(const qo of Wo)await qo()}catch(Wo){if((0,vc.oB)(Wo,u,{exportLen:Nt.length,downloadType:"page"})==="stop"){(0,Ll.p)("export-"+pe+"-failed",Wo),Wl({trackParams:ee,start:ye,success:!1});return}}(0,Pl.vb)(Qn),$t=await Qn.generateAsync({type:"blob"}),An=st+".zip",(0,Hd.saveAs)($t,An),Wl({trackParams:ee,start:ye,success:!0})}u({type:"export:update:state",payload:{type:pe,loading:!1,progress:100,downloadable:$t,downloadFileName:An}})},"entry:export:all:page":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{scale:x,isWithDeviceFrame:b,format:T,isExportSticky:L,downloadPageType:z,isIncludeCanvasName:W,trackParams:X}}=R;const ee=T,pe=performance.now();u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const ye=A(),Ie=(0,a.PL)(ye),Ue=(0,a.HW)(ye),Re=(0,a.wA)(ye),ze=Ie==null?void 0:Ie.name,st=(0,Pl.XB)(Ue,Re,Ie);b=z===Ld.y5.CANVAS?!1:b,W=z===Ld.y5.PAGE?!1:W;const xt=sdkStore.findAllTypeUnder("B@main","rResBunch"),Nt={};for(const{key:Wo,hotAttr:qo}of xt){if(qo.bunch!=="rbPage"||qo.asFolder)continue;const ua=(0,vc.QV)({pageKey:Wo,downloadPageType:z,scale:x,hasWatermark:st,isWithDeviceFrame:b,isExportSticky:L,isIncludeCanvasName:W});try{ua.validatePE(ee),Nt[Wo]=ua}catch(Ea){const wa=(0,vc.oB)(Ea,u,{exportLen:xt.length,downloadType:"page"});if(wa==="stop"){(0,Ll.p)("export-"+ee+"-failed",Ea),Wl({trackParams:X,start:pe,success:!1});return}if(wa==="skip")continue;Nt[Wo]=ua}}if(Object.values(Nt).length===0){const Wo=z===Ld.y5.CANVAS?new vc.hk:new vc.ll;if((0,vc.oB)(Wo,u,{exportLen:xt.length,downloadType:"page"})==="stop"){(0,Ll.p)("export-"+ee+"-failed",Wo),Wl({trackParams:X,start:pe,success:!1});return}}u({type:"export:update:state",payload:{type:ee,loading:!0,progress:0}}),setTimeout(()=>{!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,h1.eY)(I18N.Common.view),duration:5e3})},2e3);const $t=new Map,An=async(Wo,qo,ua)=>{const Ea=sdkStore.getSubHotItemList(qo).sort((La,Na)=>La.hotAttr.zIndex-Na.hotAttr.zIndex).filter(La=>La.hotAttr.bunch==="rbPage"),wa=ua.splitTo(Ea.length),Ja=Ea.map((La,Na)=>async()=>{const gr=wa[Na],Pi=La.hotAttr;if(Pi.asFolder){const ci=Wo.folder(Na+" "+Pi.name);await An(ci,La.key,gr)}else{var _r;const ci=Nt[La.key];if(!ci){gr.advanceRR(1);return}const Ws=(_r=$t.get(ci.name))!=null?_r:0,kr=Na+" "+(Ws>0?ci.name+" ("+(Ws+1)+")":ci.name);$t.set(ci.name,Ws+1);const Fi=Wo.folder(kr),[xi,Ai]=gr.divideAt(1/(1+sdkStore.getSubHotItemList(La.key).filter(Rr=>Rr.hotAttr.bunch==="rbPage").length));if(ee==="png")(await ci.toPngFilesPE("png-unzip",xi)).forEach(Cs=>Fi.file(""+Cs.name,Cs));else{const Rr=await ci.toPdfFilePE(ee,xi);Fi.file(Na+" "+Rr.name,Rr)}return An(Fi,La.key,Ai)}});for(const La of Ja)await La()},{JsZip:zn}=await c1.QN.loadLLG(),lo=new zn;try{await An(lo,"B@main",(0,Pl.K4)(Wo=>u({type:"export:update:state",payload:{progress:Wo}})))}catch(Wo){if((0,vc.oB)(Wo,u,{exportLen:allPageKeyList.length,downloadType:"page"})==="stop"){(0,Ll.p)("export-"+ee+"-failed",Wo),Wl({trackParams:X,start:pe,success:!1});return}}(0,Pl.vb)(lo);const Qn=await lo.generateAsync({type:"blob"}),Sn=ze+".zip";(0,Hd.saveAs)(Qn,Sn),Wl({trackParams:X,start:pe,success:!0}),u({type:"export:update:state",payload:{type:ee,loading:!1,progress:100,downloadable:Qn,downloadFileName:Sn}})},"entry:download:project":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{type:x="htmlzip",trackParams:b}}=R;const T=performance.now(),L=A(),z=(0,a.PL)(L),W=(0,a.YT)(L),{name:X}=z;u({type:"export:update:state",payload:{type:x,loading:!0,progress:0}});try{if(x===Ld.xk.APK){if(!(W!=null&&W.cid))return;const{flcchTimeB36:ee}=await(0,$d.r_)({flpakKey:W==null?void 0:W.cid}),pe=location.origin+"/flatkiq/apk/download?fKey="+(W==null?void 0:W.cid)+"&fTim="+ee,ye=""+X+Ad.Wq[x].postfix;(0,Pl.Q)(pe,ye),u({type:"export:update:state",payload:{downloadable:pe,downloadFileName:ye,loading:!1,progress:100}}),Wl({trackParams:b,start:T,success:!0})}else if(x===Ld.xk.HTMLZIP){const{flcchTimeB36:ee}=await(0,$d.wr)({flpakKey:W==null?void 0:W.cid}),pe=location.origin+"/flatkiq/htmlzip/download?fKey="+(W==null?void 0:W.cid)+"&fTim="+ee,ye=""+X+Ad.Wq[x].postfix;(0,Pl.Q)(pe,ye),u({type:"export:update:state",payload:{downloadable:pe,downloadFileName:"",loading:!1,progress:100}}),Wl({trackParams:b,start:T,success:!0})}else if(x===Ld.xk.SOURCE_FILE){const{key:ee}=await(0,$d.ax)({flpakKey:W==null?void 0:W.cid}),pe="/go/v1/mdrp/download?key="+ee,ye=""+X+Ad.Wq[x].postfix;(0,Pl.Q)(pe,ye),u({type:"export:update:state",payload:{downloadable:pe,downloadFileName:"",loading:!1,progress:100}}),Wl({trackParams:b,start:T,success:!0})}!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,h1.eY)(I18N.Common.view),duration:5e3})}catch(ee){ee.status===413?(u({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),u({type:"export:update:state",payload:{loading:!1}})):MB.global.popupHelper.alertAsync({title:"\u79BB\u7EBF\u6F14\u793A\u5305\u4E0B\u8F7D\u5931\u8D25"}),(0,Ll.p)("export-"+x+"-failed",ee),Wl({trackParams:b,start:T,success:!1})}}}};var u0=i(50060);const f2={"entry:refresh:combo:status":B=>{let{dispatch:R,getState:A}=B;R({type:"entry:exit:edit:basket"});const u=A(),{isEditingCombo:x}=(0,At.r)(u);x&&R({type:"entry:exit:combo"})},"entry:edit:combo":(B,R)=>{let{dispatch:A,getState:u}=B,{payload:{isOrg:x,combo:b}}=R;A({type:"modal:reset:preview:modal:state"}),A({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),setTimeout(()=>{A({type:"screen:update:state",payload:{isMultiplePage:!1}}),A({type:"entry:refresh:combo:status"}),A({type:"set:quick-create-widget",payload:{widget:null}});const T=u(),L=(0,a.Ur)(T),z=(0,lt.bP)(T),W=(0,a.F2)(T),X=(0,a._x)(T);A(o.GO.hoverItem("")),A({type:"entry:clear:selection"}),A({type:"current:update:state",payload:{editingComboPageKey:L.cid}}),A(x?o.GO.toggleEditingOrgComboMode(!0):o.GO.toggleEditingUserComboMode(!0)),A({type:"widget-panel:update:state",payload:{navIndex:0}});const ee=x?orgSdk:userSdk;Object.assign(globalThis,{...ee});const pe=x?{...X,name:I18N.SettingPanel.team_widgets}:{...W,name:I18N.SettingPanel.my_widgets},ye=pe.attr instanceof Object?pe:Object.assign(pe,{attr:{}}),Ie=x?{cid:X.project_meta_cid}:{cid:W.project_meta_cid},{screenTreeData:Ue,screenTreeMap:Re,screenDataMap:ze}=(0,Bs.tb)("B@main");(0,u0.sk)(!0),A({type:"current:update:state",payload:{comboCurrentProject:ye,comboCurrentProjectMeta:Ie}}),A({type:"screen:set:all:screen-data",payload:{screenTreeData:Ue,screenTreeMap:Re,screenDataMap:ze}}),A({type:"entry:activate:screen",payload:{screenCid:b.key}}),A({type:"entry:init:design:scale"}),A({type:"settings:set:activeIndex",payload:{activeIndex:0}}),A({type:"entry:resources:update:current:popup:panel",payload:{name:z==="old_right"?as.lS.Builtin:as.lS.Directory}}),A({type:"entry:update:trash:page"}),A({type:"entry:comment:disabled"}),A({type:Ce.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{A({type:"entry:update:viewport:rect"})},200)}),x&&Tn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u7F16\u8F91"})},"entry:exit:combo":B=>{let{dispatch:R,getState:A}=B;R({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{R(o.GO.hoverItem("")),R({type:"entry:clear:selection"}),R({type:"entry:exit:edit:basket"});const u=A(),x=(0,a.vD)(u),b=(0,a.PL)(u),T=(0,a.YT)(u),{isEditingUserCombo:L}=(0,At.r)(u);R(L?o.GO.toggleEditingUserComboMode(!1):o.GO.toggleEditingOrgComboMode(!1)),Object.assign(globalThis,{...rootSdk}),(0,u0.sk)(),R({type:"entry:activate:root-project",payload:{projectBasic:b,projectMeta:T,screenCid:x}}),R(L?{type:"entry:load:user:combo:group:list"}:{type:"entry:load:org:combo:group:list"}),R({type:"entry:resources:update:current:popup:panel",payload:{name:as.lS.Builtin}}),R({type:"widget-panel:update:state",payload:{navIndex:L?1:2}}),R({type:Ce.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{R({type:"entry:update:viewport:rect"})},200)})}};var R0=i(60399);const kd={"entry:undo-stack:screen":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.Ur)(u);!x||!sdkStore.isTrashed(x.cid)||(A({type:"entry:clear:selection"}),A({type:"current:update:state",payload:{currentScreen:null}}))},"entry:update:root-project:name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{name:x}}=R;const b=A(),T=(0,a.PL)(b);if((T==null?void 0:T.name)!==x){if(x.trim().length===0){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}u({type:"entry:update:root-project:attr",payload:{attr:"name",value:x}}),(0,al.sg)(al.ZW.projectNameChange,{name:x}),document.title=""+(0,Mo.qk)(x),MB.notice({text:I18N.ToolBar.project_updated})}},"entry:update:root-project:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attr:x,value:b}}=R;const T=A();let L=(0,a.PL)(T);L[x]=b,L=(0,R0.n)(L),(0,G.Yu)(L.cid,{[x]:b}),u({type:"current:update:state",payload:{currentProject:L}})},"entry:update:root-project:object":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{currentProject:x}}=R;(0,G.Yu)(x.cid,x),u({type:"current:update:state",payload:{currentProject:x}})},"entry:update:root-project:bgcolor":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{fill:x}}=R;const b=A(),T=(0,a.Ur)(b);T&&(sdkStore.updateHotAttrMerge(T.cid,{fill:x}),u({type:"current:update:state",payload:{currentScreen:{...T,fill:x}}}))},"entry:update:all-screen:bgcolor":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{fill:x}}=R;const b=A(),T=(0,h.Hs)(b);if(T.length===1){u({type:"entry:update:root-project:bgcolor",payload:{fill:{...x,fillIsVisible:!0}}});return}const L=(0,a.Ur)(b),z=T.map(W=>[W,{fill:x}]);sdkStore.updateHotAttrMergeBatch(z),u({type:"current:update:state",payload:{currentScreen:{...L,fill:x}}})},"entry:update:root-project:exportSettings":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();let T=(0,a.PL)(b);const{exportSettings:L,exportWithDeviceFrame:z}=x;T.attr?(T.attr.export_settings=L,T.attr.export_with_device_frame=z):T.attr={export_settings:L,export_with_device_frame:z},T=(0,R0.n)(T),(0,G.Yu)(T.cid,{cid:T.cid,attr:{export_settings:L,export_with_device_frame:z}}),u({type:"current:update:state",payload:{rootProject:T}})},"entry:update:current:screen-mata":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{screenMeta:x,updateWidgetTreeData:b=!0}}=R;if(b){const W=[{key:x.cid,hotAttr:{device:x.device,deviceW:x.deviceW,deviceH:x.deviceH,deviceOrientation:x.deviceOrientation,deviceScroll:x.deviceScroll}}];u({type:"entry:widget:change",payload:{flatChgList:W}})}u({type:"current:update:state",payload:{currentScreen:x}});const T=A(),L=(0,Lt.jI)(T),z=(0,Lt.bt)(T);!L&&!z||u({type:"artboard:update:state",payload:{basketPathCacheTag:Math.random()}})},"entry:memory:last:screenAndCanvas":(B,R)=>{var A;let{getState:u}=B,{payload:{screenMetaCid:x,canvasKey:b}}=R;const T=u(),L=(0,Lt.jI)(T),z=(0,Lt.bt)(T);if(L||z)return;const W=(0,a.PL)(T),ee=(0,a.ZI)(T)||W,pe=x||((A=(0,a.Ur)(T))==null?void 0:A.cid);(0,D.a0)(M.NF+"-"+ee.cid,pe+","+(b||""),D.qW.String)},"entry:update:screen-name":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attr:x,value:b,screen:T}}=R;if(T[x]===b)return;const L=A(),z=(0,h.He)(L),W=(0,h.HA)(L),X=sdkStore.getHotItem(T.cid),ee={...X,hotAttr:{...X.hotAttr,[x]:b}};sdkStore.updateHotItem(ee),u({type:"screen:update:state",payload:{screenDataMap:(0,Ni.iZ)([ee],z),screenTreeData:(0,Ni.Ed)([ee],W)}});const pe=(0,Lt.jI)(L),ye=(0,Lt.bt)(L);if(x==="name"&&!(0,$r.Mo)(T)&&!pe&&!ye){const Ie=(0,Bs.ON)(ee);u({type:"entry:update:current:screen-mata",payload:{screenMeta:Ie}})}}};var B0=i(60892),Wp=i(76805),O1=i(18183),Hp=i(53008),Yc=i(85449),q2=i(71577);const U0=async()=>{const B=Date.now();await rootSdk.saveAsync(),await(0,B0.Y_)(Math.max(B+1e3-Date.now(),0)),await(0,q2.G_)()},h0={"entry:leave:project":B=>{let{dispatch:R,getState:A}=B;const u=A(),{isEditingProjectMain:x}=(0,At.r)(u);MB.commonGuideHelper.closeAllGuide(),(async()=>{if(x&&rootSdk.hasSave()){if(!(0,Yc.ys)())return R({type:"modal:update:state",payload:{doNotLeaveProjectModal:{isOpen:!0}}});MB.safeLoading&&MB.safeLoading(I18N.__entry__.saving),await U0(),R({type:"copy:as:png:thumbnail"}),MB.safeLoading&&MB.safeLoading(!1)}R({type:"entry:clear:selection"}),MB.global.onBackButtonClick()})()},"entry:preview:current-project":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.jI)(u),b=(0,Lt.bt)(u);if(x){const{hotAttr:{refRBPageKey:T},sub:L}=sdkStore.getHotItem(x);A({type:"entry:preview:panel",payload:{activePageKey:T,activeCanvasKey:L[0],basketKey:x}})}else if(b){const T=sdkStore.getHotItem(b).hotAttr;A({type:"entry:preview:panel",payload:{activePageKey:b,activeCanvasKey:T.defaultCanvasKey,basketKey:b}})}},"entry:preview:root-or-current:project":B=>{var R,A;let{getState:u,dispatch:x}=B;const b=u(),{isEditingCombo:T,isDirectlyEditingBasket:L,isEditingBasket:z}=(0,At.r)(b),W=(0,a.PL)(b),X=(0,h.Hs)(b),{isDesign:ee}=(0,a.W4)(b),pe=(0,Ae.nE)(b),ye=(0,a.z$)(b),Ie=(0,Lt.rg)(b),Ue=(0,Lt.uu)(b);if(L||z){x({type:"entry:preview:current-project"});return}const Re=T&&ee,ze=pe.filter(An=>An.hotAttr.type===P.x.Canvas),st=ye!=null&&ye.screen_visible_switch?ye==null?void 0:ye.screen_visible_list:[];if(!Ue&&!MB.global.experienceLoginModalHelper("isSave")&&x({type:"entry:start:saving"}),Re){x({type:"entry:preview:combo"});return}const xt=X[0],Nt=(R=(A=ze[ze.length-1])==null?void 0:A.key)!=null?R:(0,Fp.XV)(xt),$t=(0,Hp.Uh)(st);if(Ue){(0,tp.JW)(location.pathname+"?view_mode=device&screen="+xt+"&canvasId="+Nt,"_blank","noreferrer");return}if((0,Oo.St)()){const An=(0,O1.H)({search:"",pathname:location.pathname});Ie?(0,tp.JW)((0,O1.Dw)(An+"/embed/v2?view_mode=device"+($t?"&selection="+$t:"")+"&screen="+xt+"&canvasId="+Nt+"&from=launch"),"_self"):(0,tp.JW)((0,O1.Dw)(An+"?view_mode=device"+($t?"&selection="+$t:"")+"&screen="+xt+"&canvasId="+Nt+"&from=sharing"),"_blank","noreferrer")}else x({type:"entry:update:novice:guide:and:task",payload:{guideType:m.c.GUIDE_NOVICE_2309_STEP_4,taskType:m.c.GUIDE_NOVICE_2309_TASK_4}}),MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_2407_PREVIEW)&&MB.commonGuideHelper.closeGuide(m.c.GUIDE_2407_PREVIEW),(0,tp.JW)((0,O1.Dw)(W.access_token+"?view_mode=device"+($t?"&selection="+$t:"")+"&screen="+xt+"&canvasId="+Nt),"_blank","noreferrer")},"entry:preview:panel":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{activePageKey:x,activeCanvasKey:b,basketKey:T}}=R;const L=A(),{isEditingCombo:z}=(0,At.r)(L),W=(0,a.PL)(L),X=(0,a.YT)(L),ee=(0,a.ZI)(L),pe=(0,a.SA)(L),ye=(0,a.HW)(L),Ie=z?pe:X,Ue=z?ee:W,Re=L.ui.fixedLayout.modals.previewModal,{hotAttr:{w:ze,h:st,basket:xt}}=sdkStore.getHotItem(T);!b||sdkStore.isTrashed(b)||Re!=null&&Re.isOpen&&(Re==null?void 0:Re.basketKey)===T||(u({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(b)||u({type:"modal:update:state",payload:{previewModal:{isOpen:!0,activePageKey:x,activeCanvasKey:b,basketKey:T,currentProjectMeta:Ie,projectAlike:Ue,width:ze,height:st}}})},600),Go.U4.protoEditorPresentTrack(ye==null?void 0:ye.id,xt==="bMuban"?"\u6BCD\u7248\u7EC4\u4EF6\u6F14\u793A":"\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A"))},"entry:preview:combo":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.Ur)(u),b=(0,a.ZI)(u),T=(0,a.SA)(u),L=(0,a.HW)(u),z=(0,Lt.pj)(u),W=u.ui.fixedLayout.modals.previewComboModal,X=x==null?void 0:x.cid;!X||sdkStore.isTrashed(X)||W!=null&&W.isOpen&&!(W!=null&&W.activeWidgetKey)||(A({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(X)||A({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:X,currentProjectMeta:T,projectAlike:b}}})},600),Go.U4.protoEditorPresentTrack(L==null?void 0:L.id,z?"\u6211\u7684\u7EC4\u4EF6\u6F14\u793A":"\u56E2\u961F\u7EC4\u4EF6\u6F14\u793A"))},"entry:preview:widget":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{activePageKey:x,activeWidgetKey:b}}=R;const T=A(),L=(0,a.PL)(T),z=(0,a.YT)(T),W=T.ui.fixedLayout.modals.previewComboModal;if(!b||sdkStore.isTrashed(b)||W!=null&&W.isOpen&&(W==null?void 0:W.activeWidgetKey)===b)return;const X=sdkStore.getHotItem(b);!X||!(X!=null&&X.hotAttr)||(u({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(b)||u({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:x,activeWidgetKey:b,currentProjectMeta:z,projectAlike:L,width:X.hotAttr.w,height:X.hotAttr.h}}})},600))},"entry:preview:canvas":(B,R)=>{var A,u,x;let{getState:b,dispatch:T}=B,{payload:{activePageKey:L,activeCanvasKey:z}}=R;const W=b(),X=(0,a.PL)(W),ee=(0,a.YT)(W),pe=(0,a.HW)(W),ye=(0,Lt.jx)(W),Ie=(A=sdkStore.getHotItem(L))==null?void 0:A.hotAttr,Ue=(u=sdkStore.getHotItem(z))==null?void 0:u.hotAttr,Re=W.ui.fixedLayout.modals.previewCanvasModal;if(!Ie||!Ue||Re!=null&&Re.isOpen&&(Re==null?void 0:Re.activeCanvasKey)===z)return;const{deviceW:ze,deviceH:st,deviceOrientation:xt,device:Nt}=Ie,{w:$t,h:An}=Ue;let{width:zn,height:lo}=xt==="portrait"?{width:ze,height:st}:{width:st,height:ze};Nt==="none"&&(zn=$t,lo=An),T({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(z)||T({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!0,activePageKey:L,activeCanvasKey:z,currentProjectMeta:ee,projectAlike:X,width:zn,height:lo}}})},600),ye===o.qi.Edit&&Go.U4.protoEditorPresentTrack(pe==null?void 0:pe.id,"\u9875\u9762\u5FEB\u901F\u6F14\u793A",(x=MB.getCurrentScreen())==null?void 0:x.device)},"entry:start:saving":(0,Wp.Ds)(async B=>{let{getState:R,dispatch:A}=B;const u=R();if((0,Lt.jx)(u)===o.qi.OnlyView)return;A({type:"set:saving",payload:{saving:!0}});const T=Date.now();await U0(),A({type:"set:saving",payload:{saving:!1}}),MB.notice({text:I18N.Common.save_notice}),await(0,B0.Y_)(Math.max(T+3e3-Date.now(),0))}).trigger};var m1=i(37320),m0=i(50001),Xc=i(26781),ac=i(63966),xc=i(23314),g2=i(94986),Gp=i(58664);const F0=(B,R)=>{const{previewComboModal:A,previewModal:u,previewCanvasModal:x}=B.ui.fixedLayout.modals,b=[];if(A!=null&&A.isOpen){const T=A.activeWidgetKey;T&&sdkStore.isTrashed(T)&&b.push("previewComboModal")}if(u!=null&&u.isOpen){const T=u.basketKey;T&&sdkStore.isTrashed(T)&&b.push("previewModal")}if(x!=null&&x.isOpen){const T=x.activeCanvasKey;T&&sdkStore.isTrashed(T)&&b.push("previewCanvasModal")}b.length&&R({type:"modal:update:state",payload:b.reduce((T,L)=>(T[L]={isOpen:!1},T),{})})};let Rc;const y2={...f2,...kd,...h0,...{"entry:widget:change":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{flatChgList:x=[],shouldReBuildTree:b=!1,isCombineChange:T=!0,shouldBreakLayerUICache:L=!1,shouldBreakCanvasUICache:z=!1,isCreateWidget:W=!1,shouldReBuildChildren:X=!1}}=R;if(!x.length)return;const ee=A(),{isEditingMuban:pe}=(0,At.r)(ee);T&&sdkStore.combineMergeMark("widget-change");const ye=[];let Ie=b;const Ue=["x","y","r","w","h"],Re=[];x.forEach(st=>{let{key:xt,sup:Nt,hotAttr:$t}=st;try{const An=sdkStore.getHotItem(xt);if(!An)return;const zn=An.hotAttr;if($t&&Object.keys($t).length){const lo={key:xt,sup:Nt||An.sup,sub:An.sub,hotAttr:{...zn,...$t}};Re.push(lo),!Ie&&Ue.some(Qn=>Qn in $t&&An.hotAttr[Qn]!==$t[Qn])&&(Ie=!0)}}catch(An){console.error("[fatal]: sdkStore.getHotItem error",An,{key:xt,hotAttr:$t,sup:Nt}),(0,Ll.p)("[fatal]: sdkStore.getHotItem",An)}});const ze=(0,Lt.PR)(ee);if(pe&&ze){const st=sdkStore.getHotItem(ze.key);st&&Re.push({...st,hotAttr:{...st.hotAttr,mtime:rootSdk.fssCmt.getClockStore().getMtime()}})}try{sdkStore.updateHotItemBatch(Re),(0,xc.b2)(Re)}catch(st){console.error("[fatal]: sdkStore.updateHotItemBatch error",st,Re),(0,Ll.p)("[fatal]: sdkStore.updateHotItemBatch",st);return}for(const{key:st}of x){const xt=sdkStore.getHotItem(st);u({type:"entry:update:linkNodeList",payload:xt}),ye.push(xt)}T&&sdkStore.combineMerge("widget-change"),clearTimeout(Rc),Ie&&(Rc=setTimeout(()=>{u({type:"entry:update:ruler"})})),L&&u({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),z&&u({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),u({type:"entry:comment:move-canvas",payload:{updates:ye}})},"entry:widget:delete":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{keys:x,shouldBreakLayerUICache:b=!1,shouldRefreshLinkList:T=!1,shouldBreakCanvasUICache:L=!1}}=R;const z=A(),W=(0,k.VH)(z),X=(0,Bn.Zn)(z);b&&u({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),L&&u({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),T&&u({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),W&&sdkStore.isTrashed(W)&&u({type:"set:echo:item",payload:{cid:void 0}}),X&&sdkStore.isTrashed(X)&&u({type:"elbow:clear"}),F0(z,u)},"entry:widget:quick:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),T=(0,a.wq)(b),L=(0,k.UV)(b),z=(0,lt.PI)(b),W=(0,lt.k3)(b),X=(0,a.ER)(b),ee=(0,a.$S)(b),pe=(0,Lt.jx)(b),ye=(0,a.Ur)(b),Ie=(0,a.X_)(b);if(pe===o.qi.OnlyView)return;MB.f.isSelecting=!0;const Re=document.querySelector(".mb-viewport"),{top:ze,left:st,bottom:xt,right:Nt}=Re.getBoundingClientRect(),$t=(0,Pt.mG)(x,{scale:Ie,offset:X,viewportRect:ee}),An=(0,C.Tg)($t,L.getRootSnapshot().key);let lo=An&&T.type!==P.x.Canvas?An:ye==null?void 0:ye.cid,Qn=x.clientX,Sn=x.clientY-ze,Wo;(z||W)&&(Wo=(0,m1.ay)({movableItems:[],createSnapper:z?m0.WY:m1.xb,viewport:{scale:Ie/100}}));const qo={startX:Qn,startY:Sn,endX:Qn,endY:Sn},ua=(0,Gd.vI)(qo,Ie),Ea=(0,Xc.q2)(T.type,ua);let wa;if(T.type===P.x.WElbow){const kr={x:ua.startX,y:ua.startY};sdkStore.combineMergeMark("elbow-create"),wa=(0,ac.Z1)(kr,ye.cid),u({type:"entry:elbow:create:start",payload:{elbowKey:wa,cursorWorldPos:$t,moveAnchor:"start"}})}else u({type:"set:quick-create-widget",payload:{widget:{...T,top:Ea.top,left:Ea.left,width:0,height:0,x:Ea.left+T.w/2,y:Ea.top+T.h/2,line:Ea.line}}});if(T.type===P.x.Canvas&&u({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!0}}),T.type===P.x.WVector){var Ja;if(((Ja=T.vector)==null?void 0:Ja.toolType)===S.pv.PENCIL){MB.f.isSelecting=!1;return}let kr=We.Z.xy(Ea.left,Ea.top);if(An){const Fi=sdkStore.getHotItem(An);if(Fi){const{hotAttr:{x:xi,y:Ai,w:Rr,h:Cs}}=Fi;kr=We.Z.subtract(kr,{x:xi-Rr/2,y:Ai-Cs/2})}}u({type:"entry:vector:editor:drag",payload:{pos:kr,sup:lo}});return}const[La,Na]=[P.x.WLine,P.x.WArrow].includes(T.name)?[45,0]:[90,45];let gr=!1,Pi=0;const _r=new Date().getTime(),ci=kr=>{gr=gr||Math.abs(kr.clientX-Qn)>1||Math.abs(kr.clientY-Sn+ze)>1,gr&&Pi===0&&u({type:"update:screenContainer:state",payload:{isDragClickWidget:!0}}),Pi++;const Fi=kr.clientX,xi=kr.clientY-ze,Ai={startX:Qn,startY:Sn,endX:Fi,endY:xi};let Rr=0,Cs=0;if(kr.clientX<st?Rr=10:kr.clientX>Nt&&(Rr=-10),kr.clientY<ze?Cs=10:kr.clientY>xt&&(Cs=-10),Rr||Cs){Qn+=Rr,Sn+=Cs;const{x:Ti,y:jl}=X,bs={x:Ti+Rr,y:jl+Cs};u({type:"entry:set:canvas:offset",payload:{offset:bs}})}const Hr=(0,Gd.vI)(Ai,Ie);let Wr;if(kr.shiftKey)Wr=(0,Gd.T7)(Hr,La,Na);else{const Ti={left:Fi<Qn,right:Fi>=Qn,top:xi<Sn,bottom:xi>=Sn},jl=(0,Gd.rn)(Hr);let bs,Vs,Dl,ji,Or,Ms,Qs;z||W?({top:bs,left:Vs,width:Dl,height:ji,alignment:Or,distributed:Ms,sameSize:Qs}=Wo({_rect:jl,resizing:(0,g2.$)(Ti),sup:lo}),u({type:"set:alignment",payload:{alignment:Or}}),u({type:"set:sameSize",payload:{sameSize:Qs}}),u({type:"set:distributed",payload:{distributed:Ms}})):{top:bs,left:Vs,width:Dl,height:ji}=jl,Wr={startX:Ti.left?Vs+Dl:Vs,startY:Ti.top?bs+ji:bs,endX:Ti.right?Vs+Dl:Vs,endY:Ti.bottom?bs+ji:bs}}if(T.type===P.x.WElbow){const Ti={x:Wr.endX,y:Wr.endY};u({type:"entry:elbow:create:start",payload:{elbowKey:wa,cursorWorldPos:Ti,moveAnchor:"end"}})}else if(T.type===P.x.Canvas){const Ti=(0,Xc.q2)(T.type,Wr);u({type:"set:quick-create-widget",payload:{widget:{...T,...Ti,w:Ti.width,h:Ti.height,x:Ti.left+Ti.width/2,y:Ti.top+Ti.height/2,line:Ti.line,device:"customize"}}})}else{const Ti=(0,Xc.q2)(T.type,Wr);u({type:"set:quick-create-widget",payload:{widget:{...T,...Ti,w:Ti.width,h:Ti.height,x:Ti.left+Ti.width/2,y:Ti.top+Ti.height/2,line:Ti.line}}})}},Ws=kr=>{if(MB.f.isSelecting=!1,u({type:"update:screenContainer:state",payload:{isDragClickWidget:!1}}),document.removeEventListener("mousemove",ci),document.removeEventListener("mouseup",Ws),!(0,ls._c)({type:T.type,count:1})){u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"});return}const Fi=A(),xi=(0,At.r)(Fi),Ai=(0,Lt.IL)(Fi),Rr=(0,a.wq)(Fi);if(!Rr)return;const Cs=(0,Gp.P)(xi),Hr=1,Ti=new Date().getTime()-_r,jl=()=>Ti<200||Rr.width<Hr&&Rr.height<Hr||Rr.width<=4/(Ie/100)&&Rr.height<=4/(Ie/100)&&Math.pow(Rr.width,2)+Math.pow(Rr.height,2)<=Math.pow(4/(Ie/100),2);let bs;if(T.type===P.x.WRichText){const ji=(0,po.gg)(Rr);bs={...ji,width:ji.w,height:ji.h}}else if([P.x.WLine,P.x.WArrow].includes(T.type)){if(T.type===P.x.WLine?jl():Rr.width<3&&Rr.height<3){const{startX:ji,startY:Or}=(0,Gd.vI)({startX:Qn,startY:Sn,endX:0,endY:0},Ie);bs=(0,Xc.q2)(T.type,{startX:ji,startY:Or,endX:ji+150,endY:Or}),bs.x=Rr.left+bs.width/2,bs.y=Rr.top+bs.height/2}}else if([P.x.WLR,P.x.WOval,P.x.WRect].includes(T.type)){if(jl()){const ji=Cs.find(Or=>{let{name:Ms}=Or;return Ms===T.type});if(ji){const Or=ji.default.width,Ms=ji.default.height;bs={x:Rr.left+Or/2,y:Rr.top+Ms/2,width:Or,height:Ms}}else{const Or=Math.max(Rr.width,Hr),Ms=Math.max(Rr.height,Hr);bs={x:Rr.left+Or/2,y:Rr.top+Ms/2,width:Or,height:Ms}}}}else if([P.x.WSticky].includes(T.type)){let ji=Rr.width,Or=Rr.height;const Ms=Cs.find(sd=>{let{name:Od}=sd;return Od===T.type});Ms&&(ji=ji<280?Ms.default.width:ji,Or=Or<120?Ms.default.height:Or);const Qs=ye.cid,r0=(0,Md.Be)(Qs);bs={x:Rr.left+ji/2,y:Rr.top+Or/2,width:ji,height:Or,order:r0+1},lo=ye==null?void 0:ye.cid}else if(T.type===P.x.WImage)if(jl())bs={x:Rr.left+200/2,y:Rr.top+100/2,width:200,height:100};else{const ji=Math.max(Rr.width,Hr),Or=Math.max(Rr.height,Hr);bs={x:Rr.left+ji/2,y:Rr.top+Or/2,width:ji,height:Or}}else if(T.type===P.x.Canvas)if(jl())bs=(0,we.X0)(ye),bs.width=bs.w,bs.height=bs.h,bs.x=Rr.left+bs.w/2,bs.y=Rr.top+bs.h/2;else{const ji=Math.max(Rr.width,Hr),Or=Math.max(Rr.height,Hr);bs={x:Rr.left+ji/2,y:Rr.top+Or/2,width:ji,height:Or}}else if(T.type===P.x.WTear){const ji=(0,Md.Be)(ye.cid),Or=(0,C.Tg)($t,L.getRootSnapshot().key);let Ms;Ai?(0,Md.yT)(sdkStore.getHotItem(Ai).hotAttr.type)?Ms="":Ms=Ai:Ms=Or||"",lo=ye==null?void 0:ye.cid,bs={x:Rr.x+Rr.width*.5,y:Rr.y+Rr.height*.5,width:20,height:20,order:ji+1,refWCKey:Ms},u({type:"ST:update",payload:{isLeftDown:!0}})}else{const ji=Math.max(Rr.width,10),Or=Math.max(Rr.height,10);bs={x:Rr.left+ji/2,y:Rr.top+Or/2,width:ji,height:Or}}const Vs={...Rr,...bs},Dl={...Vs,w:(Vs==null?void 0:Vs.width)||(Vs==null?void 0:Vs.w),h:(Vs==null?void 0:Vs.height)||(Vs==null?void 0:Vs.h)};(z||W)&&(u({type:"set:alignment",payload:{alignment:{}}}),u({type:"set:sameSize",payload:{sameSize:{}}}),u({type:"set:distributed",payload:{distributed:{}}})),T.type===P.x.WElbow?(u({type:"entry:elbow:after-quick-create",payload:{elbowKey:wa,originalSup:lo}}),u({type:"entry:select:items",payload:{cids:[wa]}}),u({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}}),sdkStore.combineMerge("elbow-create")):u({type:"entry:batch:create:items",payload:{data:[{items:[Dl]}],offset:{top:0,left:0},sup:lo,source:"draw"}}),T.type===P.x.Canvas&&u({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!1}}),u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"})};document.addEventListener("mousemove",ci),document.addEventListener("mouseup",Ws)},"entry:widget:quick:create:noRect":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{e:b}}=R;const T=u(),L=(0,a.wq)(T),z=(0,a.L8)(T),W=(0,Lt.jx)(T),X=(0,a.X_)(T),ee=(0,a.ER)(T),pe=(0,a.$S)(T),ye=((A=(0,a.Ur)(T))==null?void 0:A.cid)||"",Ie=(0,Ae.p$)(T);if(W===o.qi.OnlyView||!(z||L))return;if(!(0,ls._c)({type:(L==null?void 0:L.type)||"widget",count:1})){x({type:"set:quick-create-widget",payload:{widget:null}}),x({type:"entry:ST:STMode:disable"});return}let Re=ye;const ze=(0,ma.dk)(Ie,sdkStore);ze&&sdkStore.getHotItem(ze).hotAttr.type==="wWrap"&&(Re=ze);const st=(0,Pt.mG)(b,{scale:X,offset:ee,viewportRect:pe});z?x({type:"entry:paste:items",payload:{data:z,worldPos:st,keyRndSup:Re,commonKeyRndSup:Re,isPaste:!1}}):L&&x({type:"entry:batch:create:items",payload:{data:[{items:[L]}],offset:{left:st.x,top:st.y},sup:Re}}),x({type:"set:quick-create-widget",payload:{widget:null}}),x({type:"entry:ST:STMode:disable"})},"entry:template:screen:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),T=(0,a.wq)(b),L=(0,a.ER)(b),z=(0,a.$S)(b),W=(0,Lt.jx)(b),X=(0,a.Ur)(b),ee=(0,a.X_)(b);if(W===o.qi.OnlyView)return;MB.f.isSelecting=!0;const ye=X==null?void 0:X.cid;if(!(0,ls._c)({type:T.type,count:1})){u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"});return}const Ue=(0,h.fm)(b).get(T.mktCid),Re=[T.key],ze=Ue.saveSubtree(Re),st=(0,Pt.mG)(x,{scale:ee,offset:L,viewportRect:z}),xt=We.Z.xy(st.x+x.clientX/ee,st.y+x.clientY/ee),Nt=(0,re.BB)({data:ze,worldPos:xt,keyRndSup:ye,currentPageKey:ye});MB.action("entry:select:items",{cids:Nt}),MB.action("entry:refresh:link-list"),MB.action("entry:publish:create:items:success",{newKeys:Nt}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page}),u({type:"set:quick-create-widget",payload:{widget:null}})},"entry:collaborate:widget:change":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{creates:x,updates:b,deletes:T,shouldReBuildChildren:L}}=R;const z=A(),W=(0,k.UV)(z),X=(0,k.RX)(z),ee=(0,Lt.jI)(z),pe=(0,Lt.bt)(z),ye=(0,a.Ur)(z),{isEditingCombo:Ie}=(0,At.r)(z),Ue=(0,jt.ul)(z),ze={folderKey:ye==null?void 0:ye.cid,isEditingCombo:Ie,editingBasketRefPage:pe,editingBDanliKey:ee};if(!((x==null?void 0:x.length)||(T==null?void 0:T.length)||(b==null?void 0:b.length)))return;let xt=X;if(x!=null&&x.length&&x.forEach(Nt=>{const $t={cid:Nt.key,...(0,Qr.Op)(Nt.key),...Nt.hotAttr,sup:Nt.sup};xt=W.newWidgets([$t],Nt.sup,ze)}),b!=null&&b.length){const Nt=[];for(const{key:$t,hotAttr:An,sup:zn}of b)Nt.push({cid:$t,...(0,Qr.Op)($t),...An,sup:zn});xt=W.updateWidgets(Nt,ze,L)}if(T!=null&&T.length&&(xt=W.deleteWidgets(T),Ue!=null&&Ue.length)){const Nt=Ue.filter($t=>!sdkStore.isTrashed($t));u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:Nt}})}u({type:"selection:update:state",payload:{widgetTreeData:xt}}),MB.action("selection:update:state",{layerListCacheTag:Math.random()}),MB.action("entry:refresh:link-list")},"entry:widget:create:by:data":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),T=(0,a.YY)(b),L=(0,a.F2)(b),z=(0,a._x)(b),W=(0,Lt.jx)(b),X=(0,Lt.bt)(b);if(!(W===o.qi.OnlyView||!T)){if(X){var pe;if(((pe=T[0])==null||(pe=pe[0])==null?void 0:pe[0]).key===X){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}try{var ye;MB.f.isSelecting=!0;const Ie=((ye=T[0])==null||(ye=ye[0])==null||(ye=ye[0])==null?void 0:ye.category)===Vn.Gd,Ue=Re=>{var ze;if(!(Re!=null&&(ze=Re.recent)!=null&&ze.isTrack)||!(Re!=null&&Re.recent))return;const{projectUpperType:st,projectUpperCid:xt}=Re.recent;if(["user_combo",Vn.t_].includes(st)){if(Re.marketTemplateSource){var Nt,$t,An;const{isVipTemplate:La,isMdVipTemplate:Na}=(0,$n.f9)(Re.marketTemplateSource);Go.U4.protoComponentAddTrack({source:(Re==null||(Nt=Re.recent)==null?void 0:Nt.from)==="widget-modal"?"\u7EC4\u4EF6\u5F39\u7A97":"\u5DE6\u4FA7\u680F",component_type:"\u7EC4\u4EF6\u7D20\u6750",component_paytype:Na?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":La?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:($t=Re==null||(An=Re.hotAttr)==null?void 0:An.name)!=null?$t:"",component_cid:Re.key})}else if(Re.flpakKey){var zn,lo;const La=Re.flpakKey===(L==null?void 0:L.project_meta_cid)?"\u6211\u7684\u7EC4\u4EF6":Re.flpakKey===(z==null?void 0:z.project_meta_cid)?"\u56E2\u961F\u7EC4\u4EF6":"";if(!La)return;Go.U4.protoComponentAddTrack({source:"\u7EC4\u4EF6\u5F39\u7A97",component_type:La,component_paytype:"\u514D\u8D39",component_name:(zn=Re==null||(lo=Re.hotAttr)==null?void 0:lo.name)!=null?zn:"",component_cid:Re.key})}}else if(Re.type===P.x.WImage){var Qn;const La=xt.includes("findSticker_");Go.U4.protoComponentAddTrack({source:"\u56FE\u7247\u5F39\u7A97",component_type:"\u56FE\u7247",component_paytype:La?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:(Qn=Re==null?void 0:Re.name)!=null?Qn:"",component_cid:xt})}else if(Re.type===P.x.WIcon){var Sn,Wo,qo;if(!(Re!=null&&Re.iconData))return;Go.U4.protoComponentAddTrack({source:"\u56FE\u6807\u5F39\u7A97",component_type:"\u56FE\u6807",component_paytype:Re!=null&&(Sn=Re.iconData)!=null&&Sn.isMultiColorIcon?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:(Wo=Re==null||(qo=Re.iconData)==null?void 0:qo.iconName)!=null?Wo:"",component_cid:Re==null?void 0:Re._icon_id})}else if(Re.type==="screen_list"&&Re.marketTemplateSource){var ua,Ea,wa,Ja;const{isVipTemplate:La,isMdVipTemplate:Na}=(0,$n.f9)(Re.marketTemplateSource);Go.U4.protoPageAddTrack((ua=MB)==null||(ua=ua.user)==null?void 0:ua.id,(Re==null||(Ea=Re.recent)==null?void 0:Ea.from)==="template-modal"?"\u6A21\u677F\u5F39\u7A97":"\u6A21\u677F\u5DE6\u4FA7\u680F","\u9875\u9762",Na?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":La?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",Re==null||(wa=Re.hotAttr)==null?void 0:wa.name,Re==null||(Ja=Re.marketTemplateSource)==null?void 0:Ja.cid)}};Ie?(0,S.aJ)(x,T,Re=>{var ze;Re!=null&&(ze=Re.recent)!=null&&ze.isRequestRecent&&(0,Vo.Cp)(Re.recent),Ue(Re)}):(0,S.en)(x,T,Re=>{var ze;Re!=null&&(ze=Re.recent)!=null&&ze.isRequestRecent&&(0,Vo.Cp)(Re.recent),Ue(Re)}),MB.f.isSelecting=!1,u({type:"update:screenContainer:state",payload:{createTemplatesData:null}})}catch(Ie){console.log(Ie)}}}}};var rp=i(15653),rc=i(18630),fc=i(21191),Bc=i(9634),g1=i(17573);const ip=function(B,R){R===void 0&&(R=!0);const A=new Map,u={};if(R){const{hotAttr:x,key:b}=sdkStore.getHotItem(B),T=x.type===P.x.WBasket?x==null?void 0:x.refRBPageKey:b,L=(0,Md.Mn)(T);for(const z of L){const{key:W,hotAttr:{refWCKey:X}}=z;!X||!sdkStore.locUpColdCanvasKey(X)||((0,rc.Ie)(X,u),(0,rc.Ie)(W,u),A.has(X)?A.set(X,A.get(X).concat([W])):A.set(X,[W]))}}return{keyRefWCToKeyTear:A,preDragSnapshot:u}},v2=(B,R)=>{const A={},u=[];return B.forEach((x,b)=>{(0,rc.Ie)(b,A);const T=A[b],L=R[b];if(T&&L&&x!=null&&x.length){const z=T.hb.x-L.hb.x,W=T.hb.y-L.hb.y;for(const X of x){const{hb:ee,wasoX:pe,wasoY:ye}=R[X],{x:Ie,y:Ue}=sdkStore.toAttrXY({x:ee.x+z,y:ee.y+W},X);u.push({key:X,hotAttr:{x:Ie+pe,y:Ue+ye}})}}}),u},y1=B=>B.reduce((A,u)=>{const x=sdkStore.getHotItem(u);return x&&x.hotAttr.type===P.x.Canvas?A.concat([u]):A},[])[0],sp={"entry:create:basket":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{basketType:x="bDanli",attr:b={},isToDoubleTheCanvas:T=!1,isCreateFolder:L,onSuccess:z=()=>0}={}}=R;u({type:"entry:create:basket:v2",payload:{basketType:x,attr:b,isToDoubleTheCanvas:T,isCreateFolder:L,onSuccess:z}})},"entry:create:basket:v2":async(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:{basketType:T="bDanli",attr:L={},isToDoubleTheCanvas:z=!1,isCreateFolder:W=!1,onSuccess:X}={}}=R;const ee=x(),pe=(0,a.Ur)(ee).cid,ye=(0,Ae.p$)(ee).filter(Sn=>!(0,He.OO)(Sn)),Ie=(0,Lt.jI)(ee);if(!(ye!=null&&ye.length))return;let Ue=1;const Re=ye.length;if(T==="bDanli"?Ue=z?Re*2+1:1:Ue=Re+1+1,!(0,ls._c)({type:"basket",count:Ue}))return;setTimeout(()=>{X==null||X()});const ze=ye.map(Sn=>sdkStore.getHotItem(Sn)),st=!Ie&&W;let xt=(L==null?void 0:L.name)||(0,mr.KD)(ze[0].key),Nt;if(st&&(0,g1.bJ)()){const Sn=L==null?void 0:L.name.split("/");Sn.length>1&&(Nt=Sn[0],xt=Sn.slice(1).join(""))}if(ze.length===1&&((A=ze[0])==null?void 0:A.hotAttr.type)===P.x.WBasket&&((u=ze[0])==null||(u=u.hotAttr)==null?void 0:u.basket)==="bDanli"&&T==="bMuban"){b({type:"entry:basket:transform",payload:{basketType:T,attr:{name:xt,folderName:Nt},type:"danliToMuban",needCreateFolder:st}});return}const $t=(0,Oe.cF)("wb"),An=(0,Oe.cF)("rc"),zn=(0,fc.Lf)(ye);if(!zn)return;if(sdkStore.combineMergeMark("create-basket"),sdkStore.summonRCanvas(ye,pe,An,I18N.Basket.state1,5),sdkStore.updateHotAttrMerge(An,{fill:{fillIsVisible:!1,fill:"solid",solidColor:4294967295}}),sdkStore.summonWBasketFromRCanvas(An,zn.sup,$t,T,xt,zn.hotAttr.zIndex),Ie&&(0,rp.On)($t,Ie),z){const Sn=sdkStore.getHotItem($t).hotAttr.refRBPageKey,Wo=sdkStore.loadSubtreeTL(sdkStore.saveSubtree([An]),Sn,0,0)[0];sdkStore.updateHotAttrMerge(Wo,{name:I18N.Basket.state2,order:(0,Fp.QN)(Sn)})}const lo=sdkStore.getHotItem(An).sup,Qn=[];if(sdkStore.walkHotItemSubtree2(lo,Sn=>{(0,Md.yT)(Sn.hotAttr.type)&&Qn.push([Sn.key,lo])}),sdkStore.moveHotItemBatch(Qn),(0,ma.hf)(ye,pe,b),(0,ma.F6)(ye),(0,ma.gs)(lo,ye),(0,ma.gs)(pe,[]),st&&Nt&&(0,g1.bJ)()){const Sn=(0,dr.i)(Nt,zn.hotAttr.zIndex),Wo=sdkStore.getHotItem(lo);sdkStore.updateHotItem({...Wo,sup:Sn}),b({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})}sdkStore.combineMerge("create-basket"),b({type:"links:active:link",payload:{cid:[]}}),b({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),b({type:"update:link:selectLinkItem",payload:null}),b({type:"entry:refresh:link-list"}),b(o.GO.select([$t])),b(o.GO.hoverItem("")),T==="bMuban"&&b({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})},"entry:basket:transform":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{itemsKeyList:x=[],attr:b={},basketType:T="bDanli",store:L=sdkStore,type:z,needCreateFolder:W=!1}={},hasUpdateWidgetTreeData:X=!0}=R;const ee=A(),ye=(x.length>0?x:(0,Ae.p$)(ee)).filter(st=>!(0,He.OO)(st));if(ye.length===0)return;let Ie=0;if(z==="detachMuban"){var Ue;Ie=(0,ls.UU)({initKeyList:[(Ue=sdkStore.getHotItem(ye[0]))==null?void 0:Ue.hotAttr.refRBPageKey].filter(Boolean)})}else z==="danliToMuban"?Ie=1:z==="createCombo"&&(Ie=0);if(!(0,ls._c)({type:"basket",count:Ie}))return;sdkStore.combineMergeMark("transform-basket");const Re=[];ye.forEach(st=>{const{hotAttr:xt}=L.getHotItem(st);if((xt==null?void 0:xt.type)===P.x.WBasket){var Nt,$t;L.convertWBasketType(st,T);const An=(Nt=L.getHotItem(st).hotAttr)==null?void 0:Nt.refRBPageKey,zn=($t=L.getHotItem(st))==null?void 0:$t.hotAttr;if(T==="bDanli"){L.updateHotAttrMerge(An,{defaultCanvasKey:zn==null?void 0:zn.refContentKey});const lo=(0,Bc.gk)(st,L);lo!=null&&lo.length&&lo.forEach(Qn=>{var Sn,Wo,qo;const ua=L.getHotItem(Qn==null||(Sn=Qn.hotAttr)==null?void 0:Sn.refRBPageKey);if((ua==null||(Wo=ua.hotAttr)==null?void 0:Wo.defaultCanvasKey)!==(Qn==null||(qo=Qn.hotAttr)==null?void 0:qo.refContentKey)){var Ea;L.updateHotAttrMerge(Qn.key,{refContentKey:ua==null||(Ea=ua.hotAttr)==null?void 0:Ea.defaultCanvasKey})}})}if(L.updateHotAttrMerge(An,{w:zn.w,h:zn.h,scroll:zn.scroll,name:b==null?void 0:b.name}),z==="danliToMuban"&&W&&b!=null&&b.folderName&&(0,g1.bJ)()){const lo=sdkStore.getHotItem(An),Qn=(0,dr.i)(b==null?void 0:b.folderName,lo==null?void 0:lo.hotAttr.zIndex);sdkStore.updateHotItem({...lo,sup:Qn}),u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})}Re.push({cid:st,...(0,Qr.Op)(st)})}}),sdkStore.combineMerge("transform-basket");const ze=ee.ui.fixedLayout.modals.previewModal;if(ze!=null&&ze.isOpen){const st=ze.basketKey;if(st){const xt=(0,He.OO)(st)?(0,He.QL)(st).pop():st;ye.includes(xt)&&u({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}}},"entry:basket:delete":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{removeList:x}}=R;const b=A(),T=(0,Lt.jI)(b),L=(0,Lt.bt)(b),z=(0,Lt.PR)(b);sdkStore.combineMergeMark("delete-basket"),sdkStore.deleteHotItemBatch(x);let W;if(T){var X;const{refContentKey:pe,refRBPageKey:ye}=(X=sdkStore.getHotItem(T))==null?void 0:X.hotAttr,{sub:Ie,hotAttr:{defaultCanvasKey:Ue}}=sdkStore.getHotItem(ye),Re=y1(Ie);Re&&(x.includes(pe)&&sdkStore.updateHotAttrKV((0,He.OO)(T)?(0,He.QL)(T).pop():T,"refContentKey",Re),x.includes(Ue)&&sdkStore.updateHotAttrKV(ye,"defaultCanvasKey",Re)),T===(z==null?void 0:z.key)&&(W=sdkStore.getHotItem(T))}if(L){const{hotAttr:{defaultCanvasKey:pe},sub:ye}=sdkStore.getHotItem(L),Ie=y1(ye);if(Ie){x.includes(pe)&&sdkStore.updateHotAttrKV(L,"defaultCanvasKey",Ie);for(const Ue of sdkStore.findAllBasketFRBPage(L)){var ee;const{refContentKey:Re}=(ee=sdkStore.getHotItem(Ue))==null?void 0:ee.hotAttr;x.includes(Re)&&sdkStore.updateHotAttrKV(Ue,"refContentKey",Ie)}}L===(z==null?void 0:z.key)&&(W=sdkStore.getHotItem(L))}u({type:"entry:refresh:canvas:order"}),u({type:"entry:layout:basket-canvas"}),W&&u(o.GO.editBasketHotItem(W)),sdkStore.combineMerge("delete-basket")},"entry:exit:edit:basket":B=>{var R;let{getState:A,dispatch:u}=B;sdkStore.setPCXYConfigMap(void 0);const x=A(),b=(0,Lt.jI)(x),T=(0,Lt.bt)(x);if(!b&&!T)return;const[L]=(0,Lt.ER)(x),z=(0,h.OW)(x),W=(0,Lt.uj)(x);u(o.GO.editBasketItemKey("")),u(o.GO.editBasketHotItem(null)),u(o.GO.editBasketRefPage("")),u({type:"entry:clear:selection"}),u({type:"entry:memory:current:screen:offset:scale"}),sdkStore.isTrashed(L)?u({type:"entry:activate:root-project:home-screen"}):(u({type:"entry:goto:project-alike",payload:{screenMetaCid:L}}),u({type:"screen:update:screen-selection",payload:{screenSelection:[L]}})),z===as.lS.List&&u({type:"set:current:popup:panel",payload:{name:W}}),(R=MB.commonGuideHelper)!=null&&R.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&(MB.commonGuideHelper.closeGuide(m.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_BASKET_QUICK_COPY_CANVAS)),u({type:"modal:reset:preview:modal:state"})},"entry:detach:basket":B=>{let{getState:R,dispatch:A}=B;A({type:"entry:detach:basket:v2"})},"entry:detach:basket:v1":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u)[0],b=sdkStore.getHotItem(x),T=sdkStore.locUpRBPageKey(x);sdkStore.combineMergeMark("basket-detach");const{sub:L,hotAttr:{zIndex:z,name:W}}=sdkStore.getHotItem(b==null?void 0:b.hotAttr.refContentKey),{x:X,y:ee,w:pe,h:ye}=sdkStore.getHotBound(b.key),Ie=X-pe/2,Ue=ee-ye/2;let Re="";if(L.length>0){Re=(0,Oe.cF)("ww");const Nt={key:Re,sub:[],sup:b.sup,hotAttr:{...Ec.N[P.x.WWrap](),name:W||(0,Qr.Mn)(b.hotAttr),zIndex:b.hotAttr.zIndex,fixPosTo:b.hotAttr.fixPosTo}};sdkStore.updateHotItem(Nt),sdkStore.loadSubtreeTL(sdkStore.saveSubtree(L),Re,Ie,Ue)}sdkStore.deleteHotItem(b.hotAttr.refContentKey);const ze=sdkStore.findAllTypeUnder(b.hotAttr.refRBPageKey,"rResCanvas").map(Nt=>Nt.key);if(ze.length>0){const Nt=ze[0];sdkStore.updateHotAttrKV(b.key,"refContentKey",Nt),sdkStore.updateHotAttrKV(b.hotAttr.refRBPageKey,"defaultCanvasKey",Nt),Re&&sdkStore.updateHotAttrKV(Re,"zIndex",(0,ma.Z_)(b.sup)+1)}else{var st;sdkStore.deleteHotItem(b.key),sdkStore.getHotItem(b.hotAttr.refRBPageKey).sub.filter(Sn=>["wSticky","wTear"].includes(sdkStore.getHotItem(Sn).hotAttr.type)).sort((Sn,Wo)=>sdkStore.getHotItem(Sn).hotAttr.order-sdkStore.getHotItem(Wo).hotAttr.order).forEach(Sn=>{const Wo=sdkStore.getHotItem(Sn).hotAttr;Wo.type==="wSticky"&&Wo.sticky.point.length&&sdkStore.updateHotAttrKV(Sn,"sticky",{...Wo.sticky,point:[Wo.sticky.point[0]+Ie,Wo.sticky.point[1]+Ue]}),sdkStore.updateHotAttrKV(Sn,"order",(0,Md.Be)(T)+1),sdkStore.changeRndSup(Sn,T);const{x:qo,y:ua}=sdkStore.getHotBound(Sn);sdkStore.updateHotAttrMerge(Sn,{...sdkStore.toAttrXY({x:qo+Ie,y:ua+Ue},Sn)})});const $t=sdkStore.getHotItem(b.hotAttr.refRBPageKey).sub.filter(Sn=>!["wSticky","wTear"].includes(sdkStore.getHotItem(Sn).hotAttr.type)),{lowZIndexItemsKeyList:An,highZIndexItemsKeyList:zn}=(0,ma.CB)($t,z),{lowZIndexItemsKeyList:lo,highZIndexItemsKeyList:Qn}=(0,ma.CB)(sdkStore.getHotItem(b.sup).sub.filter(Sn=>!P.Q.ALWAYS_ON_TOP_NAMES.includes(sdkStore.getHotItem(Sn).hotAttr.type)),b.hotAttr.zIndex);lo.concat(An).concat(Re?[Re]:[]).concat(zn).concat(Qn).forEach((Sn,Wo)=>sdkStore.updateHotAttrKV(Sn,"zIndex",Wo+1)),$t.forEach(Sn=>{sdkStore.changeRndSup(Sn,b.sup);const{x:Wo,y:qo}=sdkStore.getHotBound(Sn);sdkStore.updateHotAttrMerge(Sn,{...sdkStore.toAttrXY({x:Wo+Ie,y:qo+Ue},Sn)})}),(st=rootSdk.cmtStore.getHotItem(b.hotAttr.refRBPageKey))==null||st.sub.forEach(Sn=>{const Wo=rootSdk.cmtStore.getHotItem(Sn).hotAttr;if(!rootSdk.cmtStore.getHotItem(T)){const qo=(0,_n.$S)(T);rootSdk.cmtStore.updateHotItem(qo)}rootSdk.cmtStore.moveHotItem(Sn,T),rootSdk.cmtStore.updateHotAttrMerge(Sn,{x:Wo.x+Ie,y:Wo.y+Ue})})}sdkStore.combineMerge("basket-detach"),A({type:"entry:comment:rebuild:commentList"}),Re&&A({type:"entry:select:items",payload:{cids:[Re]}});const xt=u.ui.fixedLayout.modals.previewModal;if(xt!=null&&xt.isOpen){const Nt=xt.basketKey;Nt&&sdkStore.isTrashed(Nt)&&A({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:detach:basket:v2":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u)[0],b=sdkStore.getHotItem(x),T=(0,a.eo)(u);sdkStore.combineMergeMark("basket-detach");const{sup:L,hotAttr:{refContentKey:z,refRBPageKey:W,zIndex:X}}=b,{sub:ee,hotAttr:{zIndex:pe,name:ye}}=sdkStore.getHotItem(z),Ie=sdkStore.getHotItem(L),[Ue,Re]=sdkStore.getHotAABB(b.key);let ze=null;const st=(0,fc.G9)(T),xt=Ie.hotAttr.type==="wWrap";if(xt)ze=L;else if(ee.length>0){const Sn=sdkStore.getHotKeyListAABB(ee),Wo=Sn[2]-Sn[0],qo=Sn[3]-Sn[1],ua=[Ue,Re,Ue+Wo,Re+qo];ze=st(ua,Ie.hotAttr.type==="rResCanvas"?Ie.key:null)||T}const Nt=new Map,$t=Sn=>{if(!Nt.has(Sn)){const Wo=Sn===ze?X:(0,ma.Z_)(Sn),qo=sdkStore.getSubHotItemList(L).filter(ua=>!fc.o7.has(ua.hotAttr.type)&&ua.hotAttr.zIndex>Wo).sort((ua,Ea)=>ua.hotAttr.zIndex-Ea.hotAttr.zIndex);Nt.set(Sn,{anchorZIndex:Wo,theDetachedZ:null,aboveAnchorList:qo})}return Nt.get(Sn)},An=[],zn=sdkStore.getSubHotItemList(W).filter(Sn=>Sn.hotAttr.type==="rResCanvas"&&Sn.key!==z);if(zn.length>0){const Sn=zn[0].key;sdkStore.updateHotAttrKV(x,"refContentKey",Sn)}else{var lo;const Sn=[],Wo=[];sdkStore.getSubHotItemList(W).forEach(Na=>{(0,Md.yT)(Na.hotAttr.type)?Sn.push(Na):Na.hotAttr.type!=="rResCanvas"&&Wo.push(Na)});let qo=(0,Md.Be)(T);const ua=Sn.sort((Na,gr)=>Na.hotAttr.order-gr.hotAttr.order).map(Na=>{const{x:gr,y:Pi}=sdkStore.getHotBound(Na.key);return{...Na,sup:T,hotAttr:{...Na.hotAttr,...sdkStore.toAttrXY({x:gr+Ue,y:Pi+Re},Na.key),...Na.hotAttr.type==="wSticky"&&Na.hotAttr.sticky.point.length>0&&(Na.hotAttr.refWCKey===z||sdkStore.isTrashed(Na.hotAttr.refWCKey))&&{sticky:{...Na.hotAttr.sticky,point:[Na.hotAttr.sticky.point[0]+Ue,Na.hotAttr.sticky.point[1]+Re]}},order:++qo}}}),Ea=Wo.sort((Na,gr)=>Na.hotAttr.zIndex-gr.hotAttr.zIndex).map(Na=>{An.push(Na.key);let gr=null,Pi=null,_r=null;if(xt){const ci=$t(ze);Na.hotAttr.zIndex<pe?Pi=ci.anchorZIndex+1:ci.theDetachedZ!==null?(Pi=ci.anchorZIndex+1,_r=ci.theDetachedZ):(_r=ci.anchorZIndex+1,Pi=ci.anchorZIndex+2),Nt.set(ze,{...ci,anchorZIndex:Pi,theDetachedZ:_r})}else{const ci=sdkStore.getHotAABB(Na.key),Ws=[ci[0]+Ue,ci[1]+Re,ci[2]+Ue,ci[3]+Re];gr=st(Ws,Ie.hotAttr.type==="rResCanvas"?Ie.key:null)||T;const kr=$t(gr);Na.hotAttr.zIndex<pe?Pi=kr.anchorZIndex+1:kr.theDetachedZ!==null?(Pi=kr.anchorZIndex+1,_r=kr.theDetachedZ):(_r=kr.anchorZIndex+1,Pi=kr.anchorZIndex+2),Nt.set(gr,{...kr,anchorZIndex:Pi,theDetachedZ:_r})}return{...Na,sup:gr,hotAttr:{...Na.hotAttr,...sdkStore.toAttrXY({x:Na.hotAttr.x+Ue,y:Na.hotAttr.y+Re},Na.key,gr),zIndex:Pi}}}),wa=$t(ze);let Ja=wa.anchorZIndex;const La=wa.aboveAnchorList.map(Na=>(Ja+=1,{...Na,hotAttr:{...Na.hotAttr,zIndex:Ja}}));Nt.set(ze,{...wa,anchorZIndex:Ja}),sdkStore.updateHotItemBatch(ua.concat(Ea)),(lo=rootSdk.cmtStore.getHotItem(W))==null||lo.sub.forEach(Na=>{const gr=rootSdk.cmtStore.getHotItem(Na).hotAttr;if(!rootSdk.cmtStore.getHotItem(T)){const Pi=(0,_n.$S)(T);rootSdk.cmtStore.updateHotItem(Pi)}rootSdk.cmtStore.moveHotItem(Na,T),rootSdk.cmtStore.updateHotAttrMerge(Na,{x:gr.x+Ue,y:gr.y+Re})}),sdkStore.deleteHotItem(x)}if(ee.length>0){const Sn=(0,Oe.cF)("ww");An.push(Sn);const Wo=$t(ze);let qo=Wo.anchorZIndex;const ua=Wo.theDetachedZ||++qo;sdkStore.summonWWrap(ee,ze,Sn,ye,ua,!0,!0);const Ea=sdkStore.getHotKeyListAABB(ee),wa=Ea[2]-Ea[0],Ja=Ea[3]-Ea[1];sdkStore.updateHotAttrMerge(Sn,{...sdkStore.toAttrXY({x:Ue+wa/2,y:Re+Ja/2},Sn)});const La=Wo.aboveAnchorList.map(Na=>(qo+=1,{...Na,hotAttr:{...Na.hotAttr,zIndex:qo}}));sdkStore.updateHotItemBatch(La),Nt.set(ze,{...Wo,anchorZIndex:qo})}sdkStore.deleteHotItem(z),sdkStore.combineMerge("basket-detach"),A({type:"entry:comment:rebuild:commentList"}),A({type:"entry:select:items",payload:{cids:An}});const Qn=u.ui.fixedLayout.modals.previewModal;if(Qn!=null&&Qn.isOpen){const Sn=Qn.basketKey;Sn&&sdkStore.isTrashed(Sn)&&A({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:finish:resize:canvas:within:basket":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.jI)(u),b=(0,Lt.bt)(u),T=(0,Lt.PR)(u);if(!x&&!b)return;const{hotAttr:L,key:z}=T,{w:W,h:X}=L,ee=L.type===P.x.WBasket?L==null?void 0:L.refRBPageKey:z,pe=sdkStore.getSubHotItemList(ee).filter(Re=>Re.hotAttr.type===P.x.Canvas),{keyRefWCToKeyTear:ye,preDragSnapshot:Ie}=ip(z);sdkStore.combineMergeMark("resize-basket");for(const{key:Re,hotAttr:{x:ze,y:st,w:xt,h:Nt}}of pe){const{x:$t,y:An}=sdkStore.getSourceHotItem(Re).hotAttr,zn=xt*.5,lo=Nt*.5;$t<0-zn?sdkStore.updateHotAttrKV(Re,"x",ze-$t-zn):$t>W+zn&&sdkStore.updateHotAttrKV(Re,"x",ze-$t+W+zn),An<0-lo?sdkStore.updateHotAttrKV(Re,"y",st-An-lo):An>X+lo&&sdkStore.updateHotAttrKV(Re,"y",st-An+X+lo)}const Ue=v2(ye,Ie);A({type:"entry:widget:change",payload:{flatChgList:Ue}}),sdkStore.combineMerge("resize-basket")},"entry:layout:basket-canvas":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={canUpdateTear:!0}}=R;const b=A(),T=(0,Lt.jI)(b),L=(0,Lt.bt)(b),z=(0,Lt.PR)(b),W=(0,k.UV)(b);if(!T&&!L||!z)return;const X=x==null?void 0:x.canUpdateTear;sdkStore.setPCXYConfigMap(void 0);const ee=(0,rp.fR)(z.key);if(sdkStore.setPCXYConfigMap(ee),X){const{keyRefWCToKeyTear:pe,preDragSnapshot:ye}=ip(z.key,X),Ie=v2(pe,ye);u({type:"entry:widget:change",payload:{flatChgList:Ie}})}W.triggerSnapshotChange(Object.keys(ee)),u({type:"entry:refresh:link-list"})},"entry:basket:muban:resetOwa":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u);if(sdkStore.combineMergeMark("owa-reset-to-muban"),x.forEach(L=>sdkStore.resetOwa(L)),x.length===1){var b,T;const L=((b=sdkStore.getHotItem(x[0]))==null||(b=b.hotAttr)==null?void 0:b.interactions.length)>0?(T=sdkStore.getHotItem(x[0]))==null||(T=T.hotAttr)==null?void 0:T.interactions.map(z=>z.key):"";A({type:"links:active:link",payload:{cid:L}})}A({type:"entry:refresh:link-list"}),sdkStore.combineMerge("owa-reset-to-muban")},"entry:basket:muban:commitOwa":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u);sdkStore.combineMergeMark("owa-commit-to-muban");const b=[];x.forEach(T=>{const L=sdkStore.getHotItem(T),z=L==null?void 0:L.hotAttr.refRBPageKey;if(z){const W=sdkStore.getHotItem(z);W&&b.push({...W,hotAttr:{...W.hotAttr,mtime:rootSdk.fssCmt.getClockStore().getMtime()}})}sdkStore.commitOwa(T)}),sdkStore.updateHotItemBatch(b),sdkStore.combineMerge("owa-commit-to-muban")}},x2={"entry:set:carousel:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{attr:b,value:T}=x,L=A(),z=(0,Ae.nE)(L);if(!(z!=null&&z.length))return;const W=z.map(X=>({key:X.key,hotAttr:{carousel:{...X.hotAttr.carousel,[b]:T}}}));u({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:replace:carousel:image":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:T}=R;const{image:L,resetSelectIndex:z=!0,carouselImageIndex:W,carousel:X}=T,ee=x(),pe=X!=null?X:(0,Ae.nE)(ee)[0],ye=(A=W!=null?W:(0,Sd.Yg)(ee))!=null?A:0;if((pe==null?void 0:pe.hotAttr.type)!==P.x.WCarousel)return;const Ie=JSON.parse(JSON.stringify(pe==null||(u=pe.hotAttr.carousel)==null?void 0:u.slides));Ie!==void 0&&(Ie[ye].asset=(0,ne.q4)("Carousel",L).key,Ie[ye].fillType="fill",b({type:"entry:set:carousel:attr",payload:{attr:"slides",value:Ie}}),z&&b({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}}))},"entry:carousel:image:displayIndex:update":(B,R)=>{let{dispatch:A}=B,{payload:u}=R;A({type:"entry:set:carousel:attr",payload:{attr:"displayIndex",value:u}})}};var Zp=i(18390),lp=i(68033);const cp={"entry:set:chart:series:color:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attr:x,color:b}}=R;const T=A(),L=(0,Ae.nE)(T);if(!(L.length>0))return;const W=L.map(X=>{const{key:ee,hotAttr:{chartData:pe}}=X,ye=(0,lp.xH)(x),Ie=ko()(pe.series);Ie[ye].color=b;const Ue={...pe,series:Ie};return{key:ee,hotAttr:{chartData:Ue}}});u({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:set:chart:mapSolidColor":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{color:x}}=R;const b=A(),T=(0,Ae.nE)(b);if(!(T.length>0))return;const z=T.map(W=>{const{key:X,hotAttr:{chartConfig:ee}}=W,pe={...ee,mapSolidColor:x};return{key:X,hotAttr:{chartConfig:pe}}});u({type:"entry:widget:change",payload:{flatChgList:z}})},"entry:set:chart:chartData:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{attr:x,value:b}}=R;const T=A(),L=(0,Ae.nE)(T);if(!(L.length>0))return;const W=L.map(X=>{const{key:ee,hotAttr:{chartData:pe}}=X,ye={...pe,[x]:b};return{key:ee,hotAttr:{chartData:ye}}});u({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:chart:in:edit":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{widget:x}}=R;const{key:b,hotAttr:T}=x;if(u({type:"entry:select:items",payload:{cids:[b]}}),u({type:"mode:update:state",payload:{isEditChartDataCid:b}}),![Zp.N.progress_chart,Zp.N.gauge_chart].includes(T.chartConfig.chartType)){const L=A().ui.fixedLayout.modals.chartTableSettingModal;MB.f.editing=!L.isOpen,u({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!L.isOpen}}})}},"entry:chart:out:edit":B=>{let{dispatch:R}=B;MB.f.editing=!1,R({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!1}}}),R({type:"mode:update:state",payload:{isEditChartDataCid:""}})}};var R1=i(52049),$2=i(51320),dp=i(70422),pp=i(56202),Nl=i(44628),Nd=i(93971),ud=i(20166),e0=i(34697),Ds=i(96427),Xs=i(55584),Kp=i(9233),V0=i(29158),z0=i(67167);const b2={"entry:toggle:paste:direct:by:contextmenu":async B=>{let{getState:R,dispatch:A}=B;const u=await(0,ai.LD)({isShowPrompt:!0});await(0,Xl.$H)({hasNotice:!1})?u&&(u.data?A({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu",hasPrompt:!0}}):A({type:"entry:paste:text:create",payload:{content:u.html}})):A({type:"entry:prepare:paste:by:contextmenu",payload:{}})},"entry:copy:items":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{needPasteProperties:b}=x||{},T=A(),L=(0,Ae.nE)(T);if(L.length>0){var z;const W=L.sort((0,fc.tU)()).map(Ie=>Ie.key),X=L.some(Ie=>{var Ue;return((Ue=Ie.hotAttr)==null?void 0:Ue.type)===mt.Z6.canvas}),ee=(0,ma.dk)(W),pe=ee?sdkStore.getHotItem(ee).hotAttr.type===mt.Z6.canvas:!1,ye=sdkStore.saveSubtree(W,pe?{x:sdkStore.getHotAABB(ee)[0],y:sdkStore.getHotAABB(ee)[1]}:0);await(0,ai.NO)({data:ye,commonKeyRndSup:ee,isIncludeCanvas:X,isUnderSameCanvas:pe,currentProjectCid:(z=(0,a.PL)(T))==null?void 0:z.cid}),u({type:"entry:update:toolbar"})}b&&u({type:"entry:copy:items:properties"})},"entry:duplicate:items":(B,R)=>{let{dispatch:A}=B,{payload:{shift:u}}=R;A({type:"entry:copy:items"}),A(u?{type:"entry:paste:items:at",payload:{clientPos:{clientX:MB.clientX,clientY:MB.clientY}}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},"entry:prepare:paste:by:shortcut":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),T=(0,jt.aJ)(b);if(document.querySelector("input:focus, textarea:focus, .widget div[contenteditable]:focus, .setting-drag-menu-container div[contenteditable]:focus, .annotateEditorItem div[contenteditable]:focus")||MB.f.isEditTable)return;if(MB.f.editing&&!T){x.preventDefault(),v1(x);return}let{pasteType:L,pasteTypeList:z}=await f0(x);if(z.length>2&&L==="FILES"&&(L=z[1]),L==="FILES"&&((0,pp.H8)()||(0,pp.gm)()))u({type:"entry:paste:images:by:shortcut",payload:{e:x}});else if(L==="TEXT"){const W=x.clipboardData.getData("text/plain");u({type:"entry:paste:text:by:shortcut",payload:{e:x,pasteType:L,plainText:W}})}else if(L==="HTML"){const W=x.clipboardData.getData("text/html"),X=await(0,Xl.c3)(W,"widget");u(X?{type:"entry:paste:items:into:current-page",payload:{contentFromCBE:X,triggerType:"shortcut"}}:{type:"entry:paste:text:by:shortcut",payload:{e:x,pasteType:L,html:W}})}else if(L==="WIDGET")if(x.preventDefault(),await(0,Xl.$H)({hasNotice:!1})){const W=(0,ai.bC)();if(!W||typeof W!="object")return;W.data?u({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}):u({type:"entry:paste:text:create",payload:{e:x,content:W.html}})}else if(await(0,Xl.EU)("widget"))u({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}});else{const W=await(0,Xl.oV)({itemType:"text/html"});u({type:"entry:paste:text:create",payload:{e:x,content:W}})}else L==="WIDGET_V7"&&MB.notice({text:"\u6682\u4E0D\u652F\u6301\u7C98\u8D34\u65E7\u7248\u5143\u7D20\uFF0C\u53EF\u901A\u8FC7\u521B\u5EFA\u65B0\u7248\u526F\u672C\u8FC1\u79FB\u6570\u636E\u3002 ",duration:5e3,showClose:!1,CustomChildComponent:(0,h1.At)(I18N.CommonGuides.version_guide_learn_more)})},"entry:prepare:paste:by:contextmenu":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{cursorPos:x}}=R;const b=A();let T;if(x){const L=(0,a.Ur)(b).cid,z=(0,a.X_)(b),W=(0,a.ER)(b),X=(0,a.$S)(b),ee=(0,Pt.mG)(x,{scale:z,offset:W,viewportRect:X}),pe={x:Math.round(ee.x),y:Math.round(ee.y)},ye=(0,C.Tg)(pe,L)||L;T={worldPos:ee,keyRndSup:ye}}if(await(0,Xl.$H)({hasNotice:!1})){const L=await(0,ai.LD)({isShowPrompt:!1});L&&(L.data?u({type:"entry:paste:items:at",payload:{clientPos:x}}):u({type:"entry:paste:text:create",payload:{content:L.html,pasteAtData:T}}))}else await(0,Xl.oV)({itemType:"image/png"})&&(!await(0,Xl.oV)({itemType:"text/plain"})||!await(0,Xl.oV)({itemType:"text/html"}))?u({type:"entry:paste:images:by:clipboard",payload:{pasteAtData:T}}):await(0,Xl.oV)({itemType:"text/html"})?await(0,Xl.EU)("widget")?u(x?{type:"entry:paste:items:at",payload:{clientPos:x}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}}):u({type:"entry:paste:text:by:clibpoard",payload:{type:"html",pasteAtData:T}}):await(0,Xl.oV)({itemType:"text/plain"})&&u({type:"entry:paste:text:by:clibpoard",payload:{type:"plain",pasteAtData:T}})},"entry:paste:items:into:current-page":async(B,R)=>{var A,u,x,b;let{getState:T,dispatch:L}=B,{payload:{contentFromCBE:z,triggerType:W,hasPrompt:X,isZoom:ee,targetItemKey:pe,getWorldPos:ye=Hr=>({x:Hr[0],y:Hr[3]})}}=R;if(document.querySelector("input:focus, textarea:focus")||!(!!z||await(0,ai.LD)({isShowPrompt:!1})))return;const Ue=T(),Re=(0,jt.ul)(Ue),ze=(0,Lt.jI)(Ue),st=(0,Lt.bt)(Ue),{isEditingCombo:xt}=(0,At.r)(Ue),Nt=(0,a.Ur)(Ue).cid,$t=(0,a.X_)(Ue),An=(0,a.ER)(Ue),zn=(0,a.$S)(Ue),lo=z||await(0,ai.LD)({isShowPrompt:!X&&W==="contextmenu"});if(!lo)return;const{data:Qn,commonKeyRndSup:Sn,isIncludeCanvas:Wo,isUnderSameCanvas:qo,currentProjectCid:ua,imageUploadTasks:Ea}=lo,wa=await(0,ma.rB)(Qn,Ea);if(Re.length>0){const{contentFlatTree:Hr}=sdkStore.parseSubtree(wa);if(Hr.get("B@main").sub.every(Wr=>Hr.get(Wr).attr.T===R1.H2)){sdkStore.combineMergeMark("paste-mind-nodes");const Wr=[];Re.forEach(Ti=>{const jl=sdkStore.loadSubtree(wa,"B@main"),bs=sdkStore.getSubHotItemList(Ti).reduce((ji,Or)=>Math.max(ji,Or.hotAttr.order),0),{placement:Vs,expand:Dl}=sdkStore.getHotItem(Ti).hotAttr;Dl||sdkStore.updateHotAttrKV(Ti,"expand",!0),jl.forEach((ji,Or)=>{const[Ms]=sdkStore.getHotItem(sdkStore.getHotItem(ji).hotAttr.refContentKey).sub;sdkStore.moveHotItem(Ms,Ti),sdkStore.updateHotAttrMerge(Ms,{isRoot:!1,order:bs+Or+1}),sdkStore.walkHotItemSubtree(Ms,Qs=>{sdkStore.updateHotAttrKV(Qs.key,"placement",Vs)}),sdkStore.deleteHotItem(ji),Wr.push(Ms)})}),(0,Ds.h)("\u589E\u52A0\u8282\u70B9"),L({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:Wr}}),L({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("paste-mind-nodes");return}else L({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[]}}),L({type:"mind:update:state",payload:{editMindKey:""}})}if((xt||ze||st)&&Wo){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}if(!wa)return;const{contentFlatTree:Ja,hotXY:La,hotAABB:Na}=sdkStore.parseSubtree(wa),gr=Ja,Pi=La,_r=Na;if(st&&gr.get("B@ref-muban").sub.includes(st)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(xt&&gr.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}const ci=pe?[pe]:(0,Ae.p$)(Ue),Ws=sdkStore.getHotKeyListAABB(ci),kr={scale:$t/100,size:{w:zn.width,h:zn.height},offset:An},Fi=(0,ma.Dl)(kr,zn.left);if(Wo)if(ci.length>0){let Hr=Ws[2],Wr=(0,ma.Q5)(Hr,Nt);for(;;){if(!Wr||Wr[0]>Hr+_r[2]-_r[0]+50){const Ti={x:Hr+50,y:Ws[1]};L({type:"entry:paste:items",payload:{data:wa,worldPos:Ti,keyRndSup:Nt,commonKeyRndSup:Sn,isZoom:ee}});break}Hr=Wr[2],Wr=(0,ma.Q5)(Hr,Nt)}}else if(sdkStore.getHotItem(Nt).sub.length){let Hr=Sn===Nt?_r[2]:-1/0,Wr=(0,ma.Q5)(Hr,Nt);for(Hr===-1/0&&(Wr?Hr=Wr[2]:Hr=Fi.x-(_r[2]-_r[0])/2);;){if(!Wr||Wr[0]>Hr+_r[2]-_r[0]+50){const Ti={x:Hr+50,y:_r[1]};L({type:"entry:paste:items",payload:{data:wa,worldPos:Ti,keyRndSup:Nt,commonKeyRndSup:Sn,isZoom:ee}});break}Hr=Wr[2],Wr=(0,ma.Q5)(Hr,Nt)}}else{const Hr={x:Fi.x-(_r[2]-_r[0])/2,y:Fi.y-(_r[3]-_r[1])/2};L({type:"entry:paste:items",payload:{data:wa,worldPos:Hr,keyRndSup:Nt,commonKeyRndSup:Sn,isZoom:ee}})}else if(qo)if(ci.length>0)if(ci.every(Hr=>sdkStore.getHotItem(Hr).hotAttr.type===mt.Z6.canvas)){const Hr=ci.map(Wr=>{const Ti=sdkStore.getHotAABB(Wr),{x:jl,y:bs}=sdkStore.getHotBound(Wr),[Vs,Dl]=Ti,ji=[Vs-Pi.x+_r[0],Dl-Pi.y+_r[1],Vs-Pi.x+_r[2],Dl-Pi.y+_r[3]];return{worldPos:(0,jn.cj)(Ti,ji)?{x:ji[0],y:ji[1]}:{x:jl-(_r[2]-_r[0])/2,y:bs-(_r[3]-_r[1])/2},keyRndSup:Wr}});L({type:"entry:batch:paste:items",payload:{data:wa,worldPosKeyRndSupList:Hr,commonKeyRndSup:Sn}})}else{const Hr={x:Ws[0],y:Ws[3]},Wr=(0,ma.dk)(ci)||Nt;L({type:"entry:paste:items",payload:{data:wa,worldPos:Hr,keyRndSup:Wr,commonKeyRndSup:Sn}})}else{const Hr=(0,ma.Zb)(kr,zn.left,_r)&&sdkStore.getSubHotItemList(Nt).find(Ti=>Ti.key===Sn)?{x:Math.ceil(_r[0]),y:Math.ceil(_r[1])}:{x:Math.ceil(Fi.x-(_r[2]-_r[0])/2),y:Math.ceil(Fi.y-(_r[3]-_r[1])/2)},Wr=(0,C.Tg)({x:Hr.x+.5*(_r[2]-_r[0]),y:Hr.y+.5*(_r[3]-_r[1])},Nt)||Nt;L({type:"entry:paste:items",payload:{data:wa,worldPos:Hr,keyRndSup:Wr,commonKeyRndSup:Sn}})}else if(ci.length>0)if(ci.every(Hr=>sdkStore.getHotItem(Hr).hotAttr.type===mt.Z6.canvas)){const Hr=ci.map(Wr=>{const{x:Ti,y:jl}=sdkStore.getHotBound(Wr);return{worldPos:{x:Ti-(_r[2]-_r[0])/2,y:jl-(_r[3]-_r[1])/2},keyRndSup:Wr}});L({type:"entry:batch:paste:items",payload:{data:wa,worldPosKeyRndSupList:Hr,commonKeyRndSup:Sn}})}else{const Hr=ye(Ws),Wr=(0,ma.dk)(ci)||Nt;L({type:"entry:paste:items",payload:{data:wa,worldPos:Hr,newKeyRndSup:Wr,commonKeyRndSup:Sn}})}else{const Hr=(0,ma.Zb)(kr,zn.left,_r)&&Sn===Nt?{x:_r[0],y:_r[1]}:{x:Fi.x-(_r[2]-_r[0])/2,y:Fi.y-(_r[3]-_r[1])/2},Wr=(0,C.Tg)({x:Hr.x+.5*(_r[2]-_r[0]),y:Hr.y+.5*(_r[3]-_r[1])},Nt)||Nt;L({type:"entry:paste:items",payload:{data:wa,worldPos:Hr,keyRndSup:Wr,commonKeyRndSup:Sn}})}const xi=(A=(u=gr.get("B@style"))==null?void 0:u.sub)!=null?A:[],Ai=(x=(b=gr.get("B@ref-muban"))==null?void 0:b.sub)!=null?x:[];if(xi.length>0||Ai.length>0){var Rr,Cs;const Hr=[...(Rr=xi.map(Wr=>gr.get(Wr)))!=null?Rr:[],...(Cs=Ai.map(Wr=>gr.get(Wr)))!=null?Cs:[]];L({type:"entry:libStyle:manage:add:lib:from:paste:widget",payload:{subs:Hr}})}},"entry:paste:items:at":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{clientPos:x,hasPrompt:b}}=R;if(!await(0,ai.LD)({isShowPrompt:!1})||!u({type:"entry:pre:paste:items"}))return;const L=A(),z=(0,Lt.jI)(L),W=(0,Lt.bt)(L),{isEditingCombo:X}=(0,At.r)(L),ee=(0,a.Ur)(L).cid,pe=(0,a.X_)(L),ye=(0,a.ER)(L),Ie=(0,a.$S)(L),Ue=await(0,ai.LD)({isShowPrompt:!b});if(!Ue)return;const{data:Re,isIncludeCanvas:ze,commonKeyRndSup:st,imageUploadTasks:xt}=Ue;if((X||z||W)&&ze){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}const Nt=await(0,ma.rB)(Re,xt),$t=(0,Pt.mG)(x,{scale:pe,offset:ye,viewportRect:Ie}),An={x:Math.round($t.x),y:Math.round($t.y)},zn=ze?ee:(0,C.Tg)(An,ee)||ee;u({type:"entry:paste:items",payload:{data:Nt,worldPos:An,keyRndSup:zn,commonKeyRndSup:st}})},"entry:batch:paste:items":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{data:x,worldPosKeyRndSupList:b,commonKeyRndSup:T}}=R;const L=A(),z=(0,a.PL)(L),W=(0,a.X_)(L),X=(0,a.ER)(L),ee=(0,a.$S)(L),pe=(0,a.eo)(L),ye=(0,Ae.p$)(L),Ie={scale:W/100,size:{w:ee.width,h:ee.height},offset:X},Ue=(0,ma.Dl)(Ie,ee.left);if(!(0,ls.z5)(x))return;sdkStore.combineMergeMark("paste-items");const Re=b.reduce((Nt,$t)=>{const{worldPos:An,keyRndSup:zn}=$t,lo=(0,re.Dd)(x,An,pe,ye,T);return[...Nt,...lo]},[]);(0,ma.F6)(Re),(0,ma.gs)(pe,Re),sdkStore.combineMerge("paste-items");const ze=sdkStore.getHotKeyListAABB(Re);if(!(0,ma.Zb)(Ie,ee.left,ze)){const Nt=(Ue.x-(ze[0]+(ze[2]-ze[0])/2))*W/100;u({type:"design:set:canvas:offset",payload:{offset:{x:X.x+Nt,y:X.y}}})}let st=!1;if(Re.forEach(Nt=>{sdkStore.getHotItem(Nt).hotAttr.type===P.x.WMind&&(st=!0,u({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:Nt,resizeOrigin:"tl"}}))}),st&&(0,Nd.gJ)("\u7C98\u8D34\u521B\u5EFA"),u({type:"entry:refresh:link-list"}),u({type:Ce.y.entryKey["font:cloudFontExtList:refresh"]}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:Re}}),u({type:"entry:layout:basket-canvas"}),Re&&Re.length===1){var xt;const Nt=(xt=sdkStore.getHotItem(Re[0]))==null?void 0:xt.hotAttr;(0,Nd.lF)(Nt,z)}},"entry:paste:items":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{data:x,worldPos:b,keyRndSup:T,newKeyRndSup:L,commonKeyRndSup:z,isPaste:W=!0,isZoom:X}}=R;const ee=A(),pe=(0,a.PL)(ee),ye=(0,a.X_)(ee),Ie=(0,a.ER)(ee),Ue=(0,a.$S)(ee),Re=(0,a.eo)(ee),ze=(0,Ae.p$)(ee),st=(0,Lt.bt)(ee),{isEditingCombo:xt}=(0,At.r)(ee),Nt={scale:ye/100,size:{w:Ue.width,h:Ue.height},offset:Ie},$t=(0,ma.Dl)(Nt,Ue.left);if(!(0,ls.z5)(x,b))return;const{contentFlatTree:An}=sdkStore.parseSubtree(x);if(An&&st&&An.get("B@ref-muban").sub.includes(st)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(xt&&An.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}sdkStore.combineMergeMark("paste-item-single");const zn=L||Re,lo=(0,re.Dd)(x,b,zn,ze,z);(0,ma.F6)(lo),(0,ma.gs)(zn,lo);const Qn=sdkStore.getHotKeyListAABB(lo);if(!(0,ma.Zb)(Nt,Ue.left,Qn)){const qo=($t.x-(Qn[0]+(Qn[2]-Qn[0])/2))*ye/100;u({type:"design:set:canvas:offset",payload:{offset:{x:Ie.x+qo,y:Ie.y}}})}let Sn=!1;if(lo.forEach(qo=>{sdkStore.getHotItem(qo).hotAttr.type===P.x.WMind&&(Sn=!0,u({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:qo,resizeOrigin:"tl"}}))}),sdkStore.combineMerge("paste-item-single"),Sn&&W&&(0,Nd.gJ)("\u7C98\u8D34\u521B\u5EFA"),u({type:"entry:refresh:link-list"}),u({type:Ce.y.entryKey["font:cloudFontExtList:refresh"]}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:lo}}),X&&u({type:"entry:design:zoom:selection"}),u({type:"entry:publish:create:items:success",payload:{newKeys:lo}}),u({type:"entry:layout:basket-canvas"}),lo&&lo.length===1){var Wo;const qo=(Wo=sdkStore.getHotItem(lo[0]))==null?void 0:Wo.hotAttr;(qo==null?void 0:qo.type)===P.x.Canvas?(0,ud.mB)({page:qo}):(0,Nd.lF)(qo,pe)}},"entry:paste:images:by:clipboard":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pasteAtData:x}}=R;const b=A(),{isExperience:T,isLoggedExperience:L}=(0,a.W4)(b);if(T||L){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const z=await navigator.clipboard.read(),W=[];for(const X of z){if(!X.types.includes("image/png"))continue;const ee=await X.getType("image/png");W.push(ee)}W.length!==0&&u({type:"entry:paste:images:command",payload:{files:W,pasteAtData:x}})},"entry:paste:images:by:shortcut":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x}}=R;const b=A(),{isExperience:T,isLoggedExperience:L}=(0,a.W4)(b);if(T||L){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const z=Array.from(x.clipboardData.items).filter(W=>W.type.match(/^image\//)).map(W=>W.getAsFile()).filter(W=>W);z.length!==0&&u({type:"entry:paste:images:command",payload:{files:z,givinPosition:void 0}})},"entry:paste:images:command":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{files:x,pasteAtData:b}}=R;const T=A(),L=(0,a.Ur)(T),z=(0,a.PL)(T),W=(0,a.HW)(T),X=(0,a.wA)(T),ee=(0,jt.ul)(T),{isExperience:pe,isLoggedExperience:ye}=(0,a.W4)(T);if(pe||ye){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Yn.i3)({files:x,rootProject:z,isCreate:ee.length!==1,callback:Ie=>{if(ee.length===1)u({type:"entry:mind:insert:asset",payload:{asset:Ie}});else{const Ue=Ie.type===P.x.WIcon?(0,ne.kk)(Ie):(0,ne.BL)(Ie);b?(Ue.x=b.worldPos.x,Ue.y=b.worldPos.y,u({type:"entry:batch:create:items",payload:{data:[{items:[Ue],width:Ue.width,height:Ue.height}],offset:{top:0,left:0},sup:b.keyRndSup}})):u({type:"entry:batch:create:items",payload:{data:[{items:[Ue],width:Ue.width,height:Ue.height}]}})}}},W,X)},"entry:cut:items":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u),b=x.filter(T=>!(0,He.OO)(T));if((0,Gt.td)(x)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}b.length!==0&&(A({type:"entry:copy:items"}),A({type:"entry:delete:selected-items"}))},"entry:copy:items:properties":B=>{let{getState:R}=B;const A=R(),u=(0,Ae.nE)(A);if((0,Gt.pH)(u)){const x=(0,$2.g)(A);(0,z0.vz)(x)}},"entry:paste:items:properties":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.nE)(b),L=(0,dp.zX)(b),z=(0,jt.fo)(b),W=Ce.y.query.getMissFontHiKeySet(b),{canPaste:X,trees:ee}=await(0,ai.FR)(T);if(X){sdkStore.combineMergeMark("paste-propertities");const Ie=await(0,z0.hS)(ee,L,z,W);if(Ie!=null&&Ie.length){var pe,ye;await u({type:"entry:widget:change",payload:{flatChgList:Ie}});const Ue=(pe=Ie[0])==null||(pe=pe.hotAttr)==null||(pe=pe.refStyles)==null?void 0:pe.text,Re=(ye=Ie[0])==null||(ye=ye.hotAttr)==null||(ye=ye.refStyles)==null?void 0:ye.appear;if(Ue){const ze=sdkStore.getHotItem(Ue);ze&&u({type:"settings:update:currentTextRefStyle",payload:ze})}if(Re){const ze=sdkStore.getHotItem(Re);ze&&u({type:"settings:update:currentAppearRefStyle",payload:ze})}(0,Qi.Xq)(Ie.map(ze=>(0,Qr.Op)(ze.key)))}sdkStore.combineMerge("paste-propertities")}},"entry:delete:selected-items":B=>{let{getState:R,dispatch:A}=B;const u=R();if((0,Gt.td)((0,Ae.p$)(u))){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}const x=(0,a.eo)(u),b=(0,ma.Ar)((0,Ae.p$)(u).filter(pe=>!(0,He.OO)(pe))),T=(0,Lt.jI)(u),L=(0,Lt.bt)(u),z=u.ui.fixedLayout.modals.previewModal;if(A({type:"entry:clear:selection"}),sdkStore.combineMergeMark("delete-items"),T||L){var W,X,ee;const pe=T?(W=sdkStore.getHotItem(T))==null||(W=W.hotAttr)==null?void 0:W.refRBPageKey:L,ye=T?(X=sdkStore.getHotItem(T))==null||(X=X.hotAttr)==null?void 0:X.refContentKey:(ee=sdkStore.getHotItem(L))==null||(ee=ee.hotAttr)==null?void 0:ee.defaultCanvasKey,Ue=sdkStore.findAllTypeUnder(pe,P.x.Canvas).map(Re=>Re.key).every(Re=>b.includes(Re))?b.filter(Re=>Re!==ye):b;A({type:"entry:basket:delete",payload:{removeList:Ue}})}else sdkStore.deleteHotItemBatch(b);if((0,ma.hf)(b,x,A),(0,ma.gs)(x,[]),A({type:"entry:refresh:canvas:order",payload:{newSelection:b,combineMergeUndo:"delete-items"}}),A({type:"entry:widget:delete",payload:{keys:b,shouldBreakLayerUICache:!0,shouldRefreshLinkList:!0,shouldBreakCanvasUICache:!0}}),A({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),A({type:"entry:findReplacePanel:remove:findSelectWidgetCid",payload:{selections:b}}),z!=null&&z.isOpen){const pe=b.map(ye=>{const Ie=sdkStore.getHotItem(ye);return Ie.hotAttr.type===P.x.WBasket?Ie:null}).filter(Boolean);pe!=null&&pe.length&&pe.some(Ie=>Ie.key===z.basketKey)&&A({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:refresh:canvas:order":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={newSelection:[],combineMergeUndo:null}}=R;const b=A(),T=(0,a.Ur)(b),{combineMergeUndo:L,newSelection:z}=x||{};if(!T)return;sdkStore.getSubHotItemList(T.cid).filter(X=>{var ee;return((ee=X.hotAttr)==null?void 0:ee.type)===P.x.Canvas&&!z.includes(X.key)}).sort((X,ee)=>ee.hotAttr.zIndex-X.hotAttr.zIndex).sort((X,ee)=>{var pe,ye;return((pe=X.hotAttr)==null?void 0:pe.order)-((ye=ee.hotAttr)==null?void 0:ye.order)}).forEach((X,ee)=>{const{key:pe,hotAttr:{order:ye}}=X;ye!==ee+1&&sdkStore.updateHotAttrKV(pe,"order",ee+1)}),L&&sdkStore.combineMerge(L)},"entry:paste:text:by:shortcut":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x,pasteType:b,html:T,plainText:L}}=R;(0,ls._c)({type:P.x.WImage})&&u(b==="HTML"?{type:"entry:paste:text:create",payload:{e:x,content:T}}:{type:"entry:paste:text:resolve:plain",payload:{e:x,content:L}})},"entry:paste:text:by:clibpoard":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{type:x,pasteAtData:b}}=R;if((0,ls._c)({type:P.x.WImage}))if(x==="plain"){const T=await(0,Xl.oV)({itemType:"text/plain"});u({type:"entry:paste:text:resolve:plain",payload:{pasteAtData:b,content:T}})}else{const T=await(0,Xl.oV)({itemType:"text/html"});u({type:"entry:paste:text:create",payload:{content:T,pasteAtData:b}})}},"entry:paste:text:resolve:plain":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x,content:b,pasteAtData:T}}=R;const L=b.replace(Nl.Qt,"");if(Nl.Bq.test(L))x==null||x.preventDefault(),u({type:"entry:paste:svg",payload:{pastedPlainText:L,pasteAtData:T}});else if(W0(b)==="TEXT"){const W=b.split("\n").map(X=>"<p>"+X+"</p>").join("");u({type:"entry:paste:text:create",payload:{e:x,content:W,pasteAtData:T}})}},"entry:paste:text:create":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{e:x,content:b,pasteAtData:T}}=R;const L=A(),z=(0,jt.ul)(L);if(b)if(z.length>0){x==null||x.preventDefault();const W=(0,Xs.Ld)({html:b,isClearStyle:!0});let X="";for(const ee of Object.values(W.blocks))X+=ee.text;u({type:"entry:mind:add:node-mind",payload:{defaultText:X,type:e0.eB.CHILD_LEVEL}})}else u({type:"entry:paste:text:from:clipboard",payload:{html:b,pasteAtData:T}})},"entry:paste:svg":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pastedPlainText:x,pasteAtData:b}}=R;const T=A(),L=(0,a.PL)(T),z=(0,a.HW)(T),W=(0,a.wA)(T),X=new Blob([x],{type:"image/svg+xml"}),ee=new File([X],I18N.w.svg_icon_button+".svg",{type:"image/svg+xml"});/<image/.test(x)?(0,Yn._E)({imageFiles:[ee],svgFilesCount:0,allCount:1,rootProject:L,callback:async pe=>{const ye=(0,ne.BL)(pe);await u({type:"entry:batch:create:items",payload:{data:[{items:[ye],width:ye.width,height:ye.height}]}})}},!1,z,W):(0,Yn.pD)({svgFiles:[ee],rootProject:L,allCount:1,callback:async pe=>{const ye={...(0,ne.kk)(pe),x:0,y:0};b?(ye.x=b.worldPos.x,ye.y=b.worldPos.y,await u({type:"entry:batch:create:items",payload:{data:[{items:[ye],width:ye.width||ye.w,height:ye.height||ye.h}],offset:{top:0,left:0},sup:b.keyRndSup}})):await u({type:"entry:batch:create:items",payload:{data:[{items:[ye],width:ye.width||ye.w,height:ye.height||ye.h}]}})}},z,W)},"entry:copy:canvas":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.nE)(u).filter(T=>T.hotAttr.type===P.x.Canvas);if(x.length>0){var b;const T=x.map(X=>X.key),L=(0,ma.dk)(T),z=L?sdkStore.getHotItem(L).hotAttr.type===mt.Z6.canvas:!1,W=sdkStore.saveSubtree(T,z?{x:sdkStore.getHotAABB(L)[0],y:sdkStore.getHotAABB(L)[1]}:0);(0,ai.NO)({data:W,commonKeyRndSup:L,isIncludeCanvas:!0,isUnderSameCanvas:z,currentProjectCid:(b=(0,a.PL)(u))==null?void 0:b.cid}),A({type:"entry:update:toolbar"})}},"entry:cut:canvas":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u).filter(T=>{var L;return((L=sdkStore.getHotItem(T))==null||(L=L.hotAttr)==null?void 0:L.type)===P.x.Canvas}),b=x.filter(T=>!(0,He.OO)(T));if((0,Gt.td)(x)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}b.length!==0&&(A({type:"entry:copy:items"}),A({type:"entry:delete:selected-items"}))}},f0=async B=>{const A=B.clipboardData.types;let u;const x=[];for(let z=0;z<A.length;z++){const W=A[z];(W==="Files"||W.match(/^image\//))&&(u="FILES",x.push("FILES"))}B.clipboardData.getData("text/html")&&(u||(u="HTML"),x.push("HTML"));const T=B.clipboardData.getData("text/plain"),L=W0(T);return L&&(u||(u=L),x.push(L)),{pasteType:u,pasteTypeList:x}},W0=B=>{if(/COPIED__MB__WIDGET_V7/.test(B))return"WIDGET_V7";if(/COPIED__MB__WIDGET/.test(B))return"WIDGET";if(B)return"TEXT"},v1=B=>{const R=B.clipboardData.getData("text/plain");let A;/\r/.test(R)?A=R.replace(/\r\n\r\n/g,"\n"):A=R.replace(/\n\n/g,"\n"),document.execCommand("insertText",!1,A)},eu=(B,R)=>{const A=createFlatStore(createInitialFlatTree(),createClockStore({})),u=createSdkStore(A),x=newRBPage("",9,10,10,"",0,0,""),b={key:createKey("rbp"),hotAttr:x,sup:KEY_RB_MAIN,sub:[]};u.updateHotItem(b);const T=u.loadSubtreeTL(B,b.key,R.x,R.y),L=[];return T.forEach(z=>{const W=u.getHotItem(z);W&&![WidgetType.WTear,WidgetType.WSticky].includes(W.hotAttr.type)&&L.push(W)}),getIsSelectItemsDisabledForCode(L,u)};var C2=i(13235),Ou=i(40033);function t0(B,R,A,u){const x=[];return B.forEach(b=>{let{items:T,width:L,height:z}=b;if(T.length===0)return;const W=T[0].type===P.x.Canvas,{top:X,left:ee}=R(L,z,W);T.forEach(pe=>{if(pe.type!==P.x.WWrap){let ye=We.Z.xy(ee+pe.x-pe.w/2,X+pe.y-pe.h/2);const{sup:Ie}=A(ye,pe);pe.sup=pe.gid||Ie,ye=u(ye,pe),pe.x=ye.x+pe.w/2,pe.y=ye.y+pe.h/2}pe.name=(0,mr.aw)(pe),x.push(pe)})}),x}var B1=i(65209),hd=i(76431),U1=i(49425);const Lc={"entry:batch:create:items":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{data:x,offset:b,sup:T=MB.getCurrentScreen().cid,source:L,isShouldCalcSup:z=!1,isSkipUpdateGuides:W=!1}}=R;const X=A(),ee=(0,a.X_)(X),pe=(0,Ae.nE)(X),ye=(0,k.UV)(X),Ie=(0,a.eo)(X),Ue=(0,Ae.p$)(X),Re=sdkStore.getSubHotItemList(Ie).filter(Qn=>{let{hotAttr:{type:Sn}}=Qn;return Sn===P.x.Canvas}).map(Qn=>{let{key:Sn}=Qn;return Sn}),ze=(0,S.ZZ)(Ue),st=T,xt=t0(x,(Qn,Sn,Wo)=>{const qo=!!(Wo&&(Re!=null&&Re.length)),ua=pe.filter(Ja=>Ja.hotAttr.type===P.x.Canvas),Ea=!!(Wo&&ua.length>0);let wa;return b?wa=b:Ea?wa=(0,V.hw)(Ie,Qn,ua):qo?wa=(0,V.Fw)(ye.getRenderableSubHotItems(ye.getRootSnapshot()),{width:Qn,height:Sn,scale:ee},pe):wa=(0,V.u5)({width:Qn,height:Sn,scale:ee}),{top:wa.top,left:wa.left}},(Qn,Sn)=>{if((Sn==null?void 0:Sn.type)===P.x.Canvas)return{sup:Ie};if((Sn==null?void 0:Sn.type)===P.x.WSticky||(Sn==null?void 0:Sn.type)===P.x.WTear)return{sup:Ie};if(ze)return{sup:ze};{const Wo=[Qn.x,Qn.y,Qn.x+Sn.w,Qn.y+Sn.h];return{sup:(0,fc.G9)(Ie,[])(Wo)||Ie}}},(Qn,Sn)=>{if(Sn.type===P.x.Canvas||Sn.gid)return Qn;const Wo={x:Qn.x+Sn.w/2,y:Qn.y+Sn.h/2,w:Sn.w,h:Sn.h},{x:qo,y:ua}=sdkStore.toAttrXY(Wo,"",Sn.sup);return{x:qo-Sn.w/2,y:ua-Sn.h/2}});if(xt.forEach(Qn=>{if(Qn.type===P.x.WImage){const{image:{imageRef:Sn,imageClipType:Wo,imageRectOriginalWidth:qo}}=Qn;Wo!=="none"&&Sn&&qo?Qn.image=(0,Fr.aR)(Qn):Qn.image=(0,Fr.VX)(Qn,{originWidth:Qn.w,originHeight:Qn.h}).image}}),xt.length===0)return;const Nt=xt.map(Qn=>{const{sup:Sn,...Wo}=Qn;let ua=(0,B1._)(Sn);if(Wo.type===P.x.WSticky||Wo.type===P.x.WTear){var Ea;const Ja=((Ea=(0,Md.UR)(Sn).at(-1))==null?void 0:Ea.hotAttr.order)||0;ua=we.Mh+Ja}const wa=Wo.type===P.x.Canvas?"rc":"";return{key:(0,Oe.cF)(wa),sup:Sn,sub:[],hotAttr:{...Wo,zIndex:ua}}}),$t=(Nt==null?void 0:Nt.length)===1&&Nt[0].hotAttr.type===P.x.Canvas&&!Nt[0].hotAttr.asOverlay,An=Nt.some(Qn=>[P.x.WTear,P.x.WSticky].includes(Qn.hotAttr.type));if(sdkStore.combineMergeMark("create-widget"),sdkStore.updateHotItemBatch(Nt),$t){const Qn=Nt[0],Sn=(0,U1.y2)(Qn);Sn!==void 0&&(sdkStore.updateHotItemBatch(Sn),Sn.length===1?Qn.hotAttr.stickyHeaderHeight=Sn[0].hotAttr.h:(Qn.hotAttr.stickyHeaderHeight=Sn[0].hotAttr.h,Qn.hotAttr.stickyFooterHeight=Sn[1].hotAttr.h))}u({type:"entry:widget:change",payload:{flatChgList:Nt,isCreateWidget:!0,sup:st,shouldBreakLayerUICache:!0}}),u({type:"entry:refresh:link-list"}),xt.length===1&&([P.x.WRichText,P.x.WTear,P.x.WSticky].includes(xt[0].type)?(xt[0].type===P.x.WSticky?u({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:Nt[0].key,createSource:L}}):xt[0].type===P.x.WTear&&u({type:"entry:ST:tear:bind",payload:{tearKey:Nt[0].key,afterCreate:!0}}),u({type:"entry:set:editing:cid",payload:{item:{key:Nt[0].key,hotAttr:xt[0]}}})):xt[0].type===P.x.WSwimlane&&u({type:"flow:update:clear"}));const lo=[Nt.at(-1).key];u({type:"entry:select:items",payload:{cids:lo}}),u({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:lo}}),An&&u({type:"toolbar:update:state",payload:{isShowSticky:!0}}),$t&&u({type:"entry:update:free:widget:by:create:canvas",payload:{canvasKey:Nt[0].key}}),sdkStore.combineMerge("create-widget"),u({type:"entry:publish:create:items:success",payload:{newItems:xt,sup:T,isSkipUpdateGuides:W,newHotItemKeys:lo}})},"entry:create:svg_icon_path:by:mousedown":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,h.QU)(b),L=(0,h.Ct)(b),z=(0,Ou.G)(b),W=(0,a.Pz)(b),X=(0,a.PL)(b),ee=(0,lt.PI)(b),pe=(0,lt.k3)(b),ye=(0,h.B8)(b),Ie=(0,Ae.nE)(b),{event:Ue,iconName:Re,iconDisplayName:ze,icon:st,callback:xt,isMultiColorIcon:Nt,isTrack:$t=!1}=x,An={iconData:{viewBox:st.view_box,path:st.path,iconName:Re,iconSize:L,iconColor:T||"",svgAttr:{fill:st.fill,stroke:st.stroke},isMultiColorIcon:Nt},width:L,height:L,display_name:ze,name:ze,z,view_box:st.view_box,left:0,top:0,path:st.path},zn=(0,ne.kk)(An),lo={...An,...zn,fill:{...zn.fill,solidColor:typeof T=="number"?T:(0,C2.Wi)(T)},mktCid:st.groupCid||void 0,_keywords:st.keywords,_type:st.type,_icon_id:st.id};if(Ue.type==="mousedown"){var Qn;const Sn=(Qn=document.getElementById(ye))==null?void 0:Qn.getBoundingClientRect();(0,S.dD)({e:Ue,items:[lo],width:lo.width||lo.w,height:lo.height||lo.h,doNotCreateRect:Sn,callback:xt,canvasRect:W,rootProject:X,showDragMode:ee,isAdsorbentReferenceLine:pe})}else if(Ue.type==="click"){if(Ie.some(wa=>{const{hotAttr:{type:Ja,iconData:La}}=wa;return Ja===P.x.WIcon?!((La==null?void 0:La.iconName)===void 0||(La==null?void 0:La.viewBox)===void 0||(La==null?void 0:La.path)===void 0):!1})){u({type:"entry:items:set:icon",payload:{icon:st,iconName:Re,iconDisplayName:ze,isMultiColorIcon:Nt}});return}const Wo=st.id.split("-"),qo=Wo[0],ua=qo==="fa5"?Wo.slice(1,Wo.length-1).join("-"):qo===st.type&&qo!=="\u6570\u5B57"?st.id.slice(st.id.indexOf("-")+1):st.id,Ea={isRequestRecent:!0,projectUpperType:"icon_group",projectUpperCid:st.groupCid,itemCid:ua,isTrack:$t};u({type:"entry:resources:quick:create:template",payload:{data:[{...lo,recent:Ea}]}})}else(0,S.Q7)([lo],lo.width||lo.w,lo.height||lo.h),xt&&xt()},"entry:update:free:widget:by:create:canvas":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{canvasKey:x}}=R;const b=sdkStore.getHotItem(x),T=sdkStore.getHotAABB(x);if(!b||!b.sup)return;const L=sdkStore.getSubHotItemList(b.sup).filter(z=>{const{hotAttr:{type:W,bunch:X}}=z,ee=X!=null?X:W;if([P.x.Canvas,P.x.WTear,P.x.WSticky,P.x.RbPage].includes(ee))return!1;const pe=sdkStore.getHotAABB(z.key);return(0,jn.Pn)(T,pe)});L.length&&(L.forEach(z=>{sdkStore.changeRndSup(z.key,x)}),u({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[x]}}),u({type:"entry:refresh:link-list"}))},"entry:batch:create:items:position":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{finalWidget:x}}=R;(0,ls._c)({type:x.type})&&(u({type:"entry:batch:create:items",payload:{data:[{items:[x],width:x.w,height:x.h}]}}),u({type:"entry:batch:set:canvas:offset"}))},"entry:batch:set:canvas:offset":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.X_)(u),b=(0,a.$S)(u),T=(0,a.ER)(u),L=(0,a.eo)(u),z=sdkStore.findAllTypeUnder(L,P.x.Canvas).pop().key,W=sdkStore.getHotAABB(z),[X,ee,pe,ye]=W,Ie={scale:x/100,size:{w:b.width,h:b.height},offset:T};if(!(0,ma._W)(Ie,b.left,W)){const Re=X,ze=ee,st=pe-X,xt=ye-ee,Nt=x/100,$t=(-st/2-Re)*Nt,An=(-xt/2-ze)*Nt;A({type:"design:set:canvas:offset",payload:{offset:{x:$t,y:An}}})}},"entry:publish:create:items:success":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{newItems:x,sup:b,newKeys:T=[],isSkipUpdateGuides:L=!1,newHotItemKeys:z=[]}}=R;try{const W=x||T.map(Ue=>{var Re;return(Re=sdkStore.getHotItem(Ue))==null?void 0:Re.hotAttr}),X=W==null?void 0:W.filter(Ue=>Ue==null?void 0:Ue.type);if(!X||X.length<1||L)return;const ee=X.find(Ue=>Ue.type===P.x.Canvas&&!Ue.asOverlay),pe=(X==null?void 0:X.length)===1&&ee,ye=A(),{scene_tag:Ie}=(0,a.PL)(ye);if(pe){const Ue=b||(0,a.eo)(ye),Re=(0,h.OW)(ye);(0,hd.K)(I18N)[m.c.GUIDE_MORE_PAGE].howToShow({currentPopupPanel:Re,sup:Ue})}else if((X==null?void 0:X.length)===1&&X[0].type===P.x.Canvas&&X[0].asOverlay)MB.commonGuideHelper.tryToShowGuide(m.c.GUIDE_NEW_OVERLAY_ONCE);else{if(!Ie)return;if(Ie.split("-")[0]==="DS"&&MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_NOVICE_2309_STEP_2))u({type:"entry:update:novice:guide:and:task",payload:{guideType:m.c.GUIDE_NOVICE_2309_STEP_3}});else{const Ue=(0,f.jN)(),Re=(0,a.eo)(ye),ze=(0,fc.G9)(Re,[]),st=z[0]||T[0],xt=sdkStore.getHotAABB(st),Nt=ze(xt);if(Ue&&Ue.isInProgress){if(Nt){const $t=sdkStore.findAllTypeUnder(Re,P.x.WImage).filter(An=>{let{key:zn}=An;return zn.startsWith("imgtip")});sdkStore.deleteHotItemBatch($t.map(An=>{let{key:zn}=An;return zn})),u({type:"entry:update:novice:guide:and:task",payload:{guideType:m.c.GUIDE_NOVICE_2309_STEP_2,taskType:m.c.GUIDE_NOVICE_2309_TASK_2}})}}else u({type:"entry:update:novice:guide:and:task",payload:{taskType:m.c.GUIDE_NOVICE_2309_TASK_2}})}}Ie.split("-")[0]==="DS"?ee&&u({type:"entry:update:novice:guide:and:task",payload:{taskType:m.c.GUIDE_NOVICE_2309_TASK_1,guideType:m.c.GUIDE_NOVICE_2309_STEP_1}}):ee&&(u({type:"entry:update:novice:guide:and:task",payload:{taskType:m.c.GUIDE_NOVICE_2309_TASK_1,guideType:m.c.GUIDE_NOVICE_2408_CREATE_PAGE}}),MB.commonGuideHelper.tryToCloseMountGuide(m.c.GUIDE_NOVICE_2408_CREATE_PAGE))}catch(W){console.log(W.message)}},"entry:import:aihtml":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{htmlText:x,htmlString:b}}=R;const T=A(),L=(0,Lt.jI)(T),z=(0,Lt.bt)(T),{isEditingCombo:W}=(0,At.r)(T),X=(0,a.Ur)(T).cid,ee=(0,a.X_)(T),pe=(0,a.ER)(T),ye=(0,a.$S)(T),Ie=(0,Ae.p$)(T),Ue=sdkStore.getHotKeyListAABB(Ie),Re={scale:ee/100,size:{w:ye.width,h:ye.height},offset:pe},ze=(0,ma.Dl)(Re,ye.left),st=await(0,Xl.c3)(x,"widget"),{data:xt,imageUploadTasks:Nt}=st;if(!(0,ls.z5)(xt))return;const $t=await(0,ma.rB)(xt,Nt);if(W||L||z){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}if(!$t)return;const{contentFlatTree:An,hotAABB:zn}=sdkStore.parseSubtree($t),lo=An,Qn=zn;if(z){var Sn;const ua=(Sn=lo.get("B@ref-muban"))==null?void 0:Sn.sub;if(ua!=null&&ua.includes(z)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}}if(W){MB.notice({text:"\u6211\u7684\u7EC4\u4EF6/\u4F01\u4E1A\u7EC4\u4EF6\u4E2D\u4E0D\u5141\u8BB8\u63D2\u5165 AI \u7EC4\u4EF6",type:"warning"});return}const Wo=ua=>{let{data:Ea,worldPos:wa}=ua;const Ja=(0,re.Dd)(Ea,wa,X,Ie,""),La=sdkStore.getHotKeyListAABB(Ja);if(!(0,ma.Zb)(Re,ye.left,La)){const Na=(ze.x-(La[0]+(La[2]-La[0])/2))*ee/100;u({type:"design:set:canvas:offset",payload:{offset:{x:pe.x+Na,y:pe.y}}})}return u({type:"entry:refresh:link-list"}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:Ja}}),u({type:"entry:layout:basket-canvas"}),Ja};sdkStore.combineMergeMark("import-aihtml");let qo=[];if(Ie.length>0){let ua=Ue[2],Ea=(0,ma.Q5)(ua,X);for(;;){if(!Ea||Ea[0]>ua+Qn[2]-Qn[0]+50){const wa={x:ua+50,y:Ue[1]};qo=Wo({data:$t,worldPos:wa});break}ua=Ea[2],Ea=(0,ma.Q5)(ua,X)}}else if(sdkStore.getHotItem(X).sub.length){let ua=Qn[2],Ea=(0,ma.Q5)(ua,X);for(ua===-1/0&&(Ea?ua=Ea[2]:ua=ze.x-(Qn[2]-Qn[0])/2);;){if(!Ea||Ea[0]>ua+Qn[2]-Qn[0]+50){const wa={x:ua+50,y:Qn[1]};qo=Wo({data:$t,worldPos:wa});break}ua=Ea[2],Ea=(0,ma.Q5)(ua,X)}}else{const ua={x:ze.x-(Qn[2]-Qn[0])/2,y:ze.y-(Qn[3]-Qn[1])/2};qo=Wo({data:$t,worldPos:ua})}sdkStore.combineMerge("import-aihtml"),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:qo}}),u({type:"entry:design:zoom:selection"}),MB.notice({text:I18N.aiHTML.export_succeeded,duration:2e3})}};var H0=i(36449),G0=i(8281),up=i(56696),tl=i(33848),F1=i(11135),tu=i(10390),nu=i(71247),ou=i(88944);const cc=70,au={"entry:elbow:isInElbowMode:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,key:b,canInstantCreate:T,givinStartInfo:L}}=R;x.persist();const z=We.Z.xy(x.clientX,x.clientY),W=A(),X=b||(0,Lt.IL)(W),ee=(0,a.ER)(W),pe=(0,a.X_)(W),ye=(0,a.$S)(W),Ie=(0,k.UV)(W),Ue=(0,a.eo)(W),Re=(0,a.Sb)(W);let ze,st=!1,xt;if(!(0,ls._c)({type:P.x.WElbow,count:1})||x.target.closest("#widget-popup"))return;const Nt=pe/100;sdkStore.combineMergeMark("elbowmode-create");const $t=x.target.tagName==="circle"&&x.target.closest("span.elbow-anchor-start-point");let An="";$t&&(An=$t.dataset.cid);const zn=Qn=>{const Sn=We.Z.xy(Qn.clientX,Qn.clientY);let Wo=(0,Pt.mG)(Qn,{scale:pe,offset:ee,viewportRect:ye});if(We.Z.distance(z,Sn)>1&&st===!1){if(st=!0,L!=null&&L.key){const{x:qo,y:ua,w:Ea,h:wa}=sdkStore.getHotBound(L.key);switch(L.startDirection){case"left":Wo={x:qo-Ea*.5,y:ua};break;case"right":Wo={x:qo+Ea*.5,y:ua};break;case"top":Wo={x:qo,y:ua-wa*.5};break;case"bottom":Wo={x:qo,y:ua+wa*.5};break;default:break}}ze=(0,ac.Z1)(Wo,MB.getCurrentScreen().cid),u({type:"elbow:update",payload:{isDraggingElbow:!0}}),u({type:"entry:elbow:create:start",payload:{elbowKey:ze,cursorWorldPos:Wo,moveAnchor:"start",fresh:!1,givinStartInfo:L,isCreateElbowFromItem:!!$t,eventTargetItemKey:An}})}ze&&u({type:"entry:elbow:create:start",payload:{elbowKey:ze,cursorWorldPos:Wo,moveAnchor:"end"}})},lo=Qn=>{const Sn=(0,Pt.mG)(Qn,{scale:pe,offset:ee,viewportRect:ye});xt=(0,C.Tg)(Sn,Ie.getRootSnapshot().key)||Ue;let qo={x:0,y:0};const ua={x:Qn.clientX,y:Qn.clientY};if(st){const Ea=sdkStore.getHotItem(ze).hotAttr;if(L!=null&&L.key){const{x:wa,y:Ja,w:La,h:Na}=sdkStore.getHotBound(L.key);switch(L.startDirection){case"left":qo={x:wa-La*.5,y:Ja};break;case"right":qo={x:wa+La*.5,y:Ja};break;case"top":qo={x:wa,y:Ja-Na*.5};break;case"bottom":qo={x:wa,y:Ja+Na*.5};break;default:break}u({type:"entry:elbow:create:start",payload:{elbowKey:ze,cursorWorldPos:qo,moveAnchor:"start",fresh:!1,givinStartInfo:L}}),u({type:"entry:elbow:after-quick-create",payload:{elbowKey:ze,originalSup:xt}}),Ea.elbow.elbowType==="curve"&&u({type:"entry:elbow:drag:start",payload:{elbowKey:ze,cursorWorldPos:Sn,moveAnchor:"end",event:Qn}}),u({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:ze,openFrom:"drag-out",mousePos:ua}}),sdkStore.combineMerge("elbowmode-create")}else u({type:"entry:elbow:after-quick-create",payload:{elbowKey:ze,originalSup:xt}}),Ea.elbow.elbowType==="curve"&&u({type:"entry:elbow:drag:start",payload:{elbowKey:ze,cursorWorldPos:Sn,moveAnchor:"end",event:Qn}}),u({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}});sdkStore.combineMerge("elbowmode-create")}else if(T){const Ea=sdkStore.getHotItem(X).hotAttr.type;if(![P.x.WTear,P.x.WElbow].includes(Ea)){const{x:wa,y:Ja,w:La,h:Na}=sdkStore.getHotBound(L.key),gr=cc*Nt;switch(L.startDirection){case"left":qo={x:wa-La*.5,y:Ja},ua.x=(0,Pt.mY)(qo).x-gr;break;case"right":qo={x:wa+La*.5,y:Ja},ua.x=(0,Pt.mY)(qo).x+gr;break;case"top":qo={x:wa,y:Ja-Na*.5},ua.y=(0,Pt.mY)(qo).y-gr;break;case"bottom":qo={x:wa,y:Ja+Na*.5},ua.y=(0,Pt.mY)(qo).y+gr;break;default:break}ze=(0,ac.Z1)(qo,MB.getCurrentScreen().cid),u({type:"entry:elbow:create:start",payload:{elbowKey:ze,cursorWorldPos:qo,moveAnchor:"start",fresh:!1}}),u({type:"entry:elbow:popup:elbow:modify",payload:{elbowKey:ze,givinStartInfo:L,sup:xt}}),u({type:"entry:elbow:after-quick-create",payload:{elbowKey:ze,originalSup:xt}}),u({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:ze,openFrom:"instant",mousePos:ua}}),sdkStore.combineMerge("elbowmode-create")}}if(u({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,Nd.Yp)({source:Re===Nd.Hq.ToolBar?""+Nd.ol.ToolBar+Nd.k8.Click:Nd.ol.ShortCut,widgetName:(0,Nd.KR)(P.x.WElbow)}),ze){const Ea=sdkStore.getHotItem(ze).hotAttr.elbow.elbowType;(0,ou.Zf)(Ea)}document.removeEventListener("mousemove",zn),document.removeEventListener("mouseup",lo)};document.addEventListener("mousemove",zn),document.addEventListener("mouseup",lo)},"entry:elbow:create:start":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,cursorWorldPos:b,moveAnchor:T,fresh:L=!0,givinStartInfo:z,isCreateElbowFromItem:W=!1,eventTargetItemKey:X=""}}=R;const ee=A(),pe=sdkStore.getHotItem(x),ye=(0,Lt.IL)(ee),Ie=(0,a.X_)(ee),Ue=(0,k.UV)(ee),Re=(0,Ae.p$)(ee),ze=(0,no.$7)(ee),st=(0,C.Dg)(b,Ie/100,Ue.getRootSnapshot().key,{isDraggingElbow:!0,isShowSticky:ze,isCreateElbowFromItem:W,eventTargetItemKey:X});(0,C.h9)(st,Re,"ctrl",!0);let xt;if(st.hitKey&&st.hitIType!==P.x.WTear){const Nt=sdkStore.getHotBound(st.hitKey);let $t={...b,key:"",direction:"none"};if(z!==void 0)$t={...b,key:z.key,direction:z.startDirection};else{const An=(0,tl.yT)(Nt,b);if(An!==void 0){const zn=W===!0&&X===st.hitKey?X:ye;$t={...An.xy,key:zn,direction:An.key}}}xt=(0,ac.b)({elbowKey:pe.key,worldPos:$t,moveAnchor:T,refKey:$t.key,direction:$t.direction,isUseWroldBound:!0})}else xt=(0,ac.b)({elbowKey:pe.key,worldPos:b,moveAnchor:T,refKey:"",direction:"none",isUseWroldBound:!0});xt&&sdkStore.updateHotItem(xt)},"entry:elbow:drag:start":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,cursorWorldPos:b,moveAnchor:T,event:L}}=R;const z=A(),W=sdkStore.getHotItem(x);if(W&&W.hotAttr&&W.hotAttr.type!==P.x.WElbow)return;const X=(0,Lt.IL)(z),ee=(0,a.X_)(z),pe=(0,k.UV)(z),ye=(0,Ae.p$)(z),Ie=(0,no.$7)(z),Ue=(0,C.Dg)(b,ee/100,pe.getRootSnapshot().key,{isDraggingElbow:!0,isShowSticky:Ie,event:L});(0,C.h9)(Ue,ye,"ctrl",!0);let Re;if(Ue.hitKey&&Ue.hitIType!==P.x.WTear){const{realPos:st,updated:xt,offsetSup:Nt}=(0,xc.GN)(x,b),{hotAttr:$t}=W,{elbow:An}=$t;let zn=st;const lo=sdkStore.getHotBound(Ue.hitKey),Qn=(0,tl.yT)(lo,b);let Sn="",Wo="none";Qn!==void 0?(xt&&An.elbowType!=="curve"?zn=sdkStore.toAttrXY(Qn.xy,"",Nt):zn=Qn.xy,Sn=X,Wo=Qn.key,u({type:"elbow:update",payload:{highlightAnchor:Qn.key}})):u({type:"elbow:update",payload:{highlightAnchor:""}}),Re=(0,ac.b)({elbowKey:W.key,worldPos:zn,moveAnchor:T,refKey:Sn,direction:Wo})}else{const{realPos:st}=(0,xc.GN)(x,b);Re=(0,ac.b)({elbowKey:W.key,worldPos:st,moveAnchor:T,refKey:"",direction:"none"})}const ze=[Re];(0,xc.f7)(Re.key,ze),u({type:"entry:widget:change",payload:{flatChgList:ze}})},"entry:elbow:line-segment-move":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{event:x,fromIndex:b,toIndex:T,direction:L,elbowKey:z}}=R;const W=A(),X=(0,a.$S)(W),ee=(0,a.X_)(W),pe=(0,a.ER)(W),ye=(0,Pt.mG)(x,{scale:100,offset:pe,viewportRect:X}),Ie={x:ye.x/ee*100,y:ye.y/ee*100},Ue=sdkStore.getHotItem(z),{realPos:Re}=(0,xc.GN)(z,Ie),{x:ze,y:st,w:xt,h:Nt,elbow:{dPathList:$t}}=Ue.hotAttr,An=ze-xt*.5,zn=st-Nt*.5,lo=(0,tl.Ui)(We.Z.xy(An,zn),$t);if(b===0||T===lo.length-1)return;const Sn=(0,G0.eQ)(lo,Re,b,T,L,10),Wo=Ln.rw.enclosing(Sn),qo=(0,tl.uK)(We.Z.xy(Wo.x,Wo.y),Sn),ua=Wo.w,Ea=Wo.h,wa=Wo.x+ua*.5,Ja=Wo.y+Ea*.5,La={...Ue,hotAttr:{...Ue.hotAttr,elbow:{...Ue.hotAttr.elbow,dPathList:qo.map((Na,gr)=>(gr===b||gr===T?gr!==0&&gr!==qo.length-1&&(Na.isAdjusted=!0):Na.isAdjusted=!1,Na))},x:wa,y:Ja,h:Ea,w:ua}};sdkStore.updateHotItem(La)},"entry:elbow:line-anchor-add":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{length:x,index:b,event:T,elbowKey:L,direction:z}}=R;const W=A(),X=(0,a.$S)(W),ee=(0,a.X_)(W),pe=(0,a.ER)(W),ye=(0,Pt.mG)(T,{scale:100,offset:pe,viewportRect:X}),Ie={x:ye.x/ee*100,y:ye.y/ee*100},{realPos:Ue}=(0,xc.GN)(L,Ie),Re=sdkStore.getHotItem(L),{x:ze,y:st,elbow:{dPathList:xt},w:Nt,h:$t}=Re.hotAttr,An=ze-Nt*.5,zn=st-$t*.5,lo=(0,tl.Ui)(We.Z.xy(An,zn),xt),Qn=!1,Sn=null,Wo=!1,qo=null,ua=JSON.parse(JSON.stringify(lo));let Ea,wa,Ja;if(x===1){Ea=1,wa=0;const kr=ua[0],Fi=ua[1];let xi,Ai,Rr,Cs;if(z==="horizontal"){const Hr=Math.round((kr.y+Ue.y)/2),Wr=Math.round((Fi.y+Ue.y)/2),Ti=Ue.x-kr.x;Qn?(xi={x:Sn.x,y:Sn.y},Ai={x:Sn.x+Ti,y:Sn.y}):(xi={x:kr.x,y:Hr},Ai={x:kr.x+Ti,y:Hr}),Wo?(Rr={x:qo.x+Ti,y:qo.y},Cs={x:qo.x,y:qo.y}):(Rr={x:Fi.x+Ti,y:Wr},Cs={x:Fi.x,y:Wr})}else{const Hr=Math.round((kr.x+Ue.x)/2),Wr=Math.round((Fi.x+Ue.x)/2),Ti=Ue.y-kr.y;Qn?(xi={x:Sn.x,y:Sn.y},Ai={x:Sn.x,y:Sn.y+Ti}):(xi={x:Hr,y:kr.y},Ai={x:Hr,y:kr.y+Ti}),Wo?(Rr={x:qo.x,y:qo.y+Ti},Cs={x:qo.x,y:qo.y}):(Rr={x:Wr,y:Fi.y+Ti},Cs={x:Wr,y:Fi.y})}Ja=[xi,Ai,Rr,Cs]}if(x!==1){wa=1;let kr,Fi,xi;if(b===0){const Ai=ua[0],Rr=ua[1];if(Ea=1,z==="horizontal"){const Cs=Math.round((Ai.y+Ue.y)/2),Hr=Math.round(Ue.x-Ai.x);Qn?(kr={x:Sn.x,y:Sn.y},Fi={x:Sn.x+Hr,y:Sn.y},xi={x:Rr.x+Hr,y:Rr.y}):(kr={x:Ai.x,y:Cs},Fi={x:Ai.x+Hr,y:Cs},xi={x:Rr.x+Hr,y:Rr.y})}if(z==="vertical"){const Cs=Math.round((Ai.x+Ue.x)/2),Hr=Math.round(Ue.y-Ai.y);Qn?(kr={x:Sn.x,y:Sn.y},Fi={x:Sn.x,y:Sn.y+Hr},xi={x:Rr.x,y:Rr.y+Hr}):(kr={x:Cs,y:Ai.y},Fi={x:Cs,y:Ai.y+Hr},xi={x:Rr.x,y:Rr.y+Hr})}Ja=[kr,Fi,xi]}else{const Ai=ua[ua.length-2],Rr=ua[ua.length-1];if(Ea=ua.length-2,z==="horizontal"){const Cs=Math.round((Rr.y+Ue.y)/2),Hr=Math.round(Ue.x-Ai.x);Wo?(kr={x:Ai.x+Hr,y:Ai.y},Fi={x:qo.x+Hr,y:qo.y},xi={x:qo.x,y:qo.y}):(kr={x:Ai.x+Hr,y:Ai.y},Fi={x:Rr.x+Hr,y:Cs},xi={x:Rr.x,y:Cs})}if(z==="vertical"){const Cs=Math.round((Rr.x+Ue.x)/2),Hr=Math.round(Ue.y-Rr.y);Wo?(kr={x:Ai.x,y:Ai.y+Hr},Fi={x:qo.x,y:qo.y+Hr},xi={x:qo.x,y:qo.y}):(kr={x:Ai.x,y:Ai.y+Hr},Fi={x:Cs,y:Rr.y+Hr},xi={x:Cs,y:Rr.y})}Ja=[kr,Fi,xi]}}ua.splice(Ea,wa,...Ja);const La=Ln.rw.enclosing(ua),Na=(0,tl.uK)(We.Z.xy(La.x,La.y),ua),gr=La.w,Pi=La.h,_r=La.x+gr*.5,ci=La.y+Pi*.5,Ws={...Re,hotAttr:{...Re.hotAttr,elbow:{...Re.hotAttr.elbow,dPathList:Na},x:_r,y:ci,h:Pi,w:gr}};sdkStore.updateHotItem(Ws)},"entry:elbow:line-optimize":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x}}=R;const b=sdkStore.getHotItem(x),{hotAttr:{x:T,y:L,w:z,h:W,elbow:{dPathList:X}}}=b,ee=T-z*.5,pe=L-W*.5,ye=(0,tl.Ui)(We.Z.xy(ee,pe),X),Ie=(0,G0.rD)([...ye]),Ue=Ln.rw.enclosing(Ie),Re=Ue.w,ze=Ue.h,st=Ue.x+Re*.5,xt=Ue.y+ze*.5,Nt=(0,tl.uK)(We.Z.xy(Ue.x,Ue.y),Ie),$t={...b,hotAttr:{...b.hotAttr,elbow:{...b.hotAttr.elbow,dPathList:Nt},x:st,y:xt,w:Re,h:ze}};sdkStore.updateHotItem($t)},"entry:elbow:line-adjust":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x}}=R;const b=sdkStore.getHotItem(x),T=b.hotAttr,{x:L,y:z,elbow:W,w:X,h:ee,refFromKey:pe,refToKey:ye}=T,{dPathList:Ie,fromDirection:Ue,toDirection:Re}=W,ze=L-X*.5,st=z-ee*.5,xt=(0,tl.Ui)(We.Z.xy(ze,st),[Ie[0]])[0],Nt=(0,tl.Ui)(We.Z.xy(ze,st),[Ie[Ie.length-1]])[0],$t={elbowKey:x,currentElbowItem:b,startPickPoint:{...xt,key:pe,direction:Ue},endPickPoint:{...Nt,key:ye,direction:Re},isAdjust:!0},{data:An}=(0,up.X)($t),zn=[];if(sdkStore._updateHotItem(An,zn),zn.length>0){sdkStore.updateHotItem(An);return}u({type:"entry:set:editing:cid",payload:{item:{...b==null?void 0:b.hotAttr,cid:x}}})},"entry:elbow:after-quick-create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,originalSup:b}}=R;u({type:"entry:elbow:after-quick-create:v2",payload:{elbowKey:x}})},"entry:elbow:after-quick-create:v1":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,originalSup:b}}=R;const T=A(),L=(0,Lt.IL)(T),z=(0,a.eo)(T);let W=b;if(L){const ye=sdkStore.locUpHotCanvasKey(L);ye?(0,He.OO)(ye)?W=z:W=ye:W=z}const{sup:X}=sdkStore.getHotItem(x);X!==W&&(0,xc.F2)(x,W);const ee=(0,mr.aw)({type:"wElbow",sup:W,key:x}),pe=(0,B1._)(W);sdkStore.updateHotAttrMerge(x,{name:ee,zIndex:pe}),u({type:"entry:publish:create:items:success",payload:{newKeys:[x]}})},"entry:elbow:after-quick-create:v2":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x}}=R;const b=A(),T=(0,a.eo)(b),L=(0,fc.G9)(T),z=sdkStore.getHotItem(x),{hotAttr:{elbow:{dPathList:W},w:X,h:ee,refFromKey:pe,refToKey:ye}}=z,Ie=sdkStore.getHotAABB(x),Ue={x:.5*(Ie[0]+Ie[2]),y:.5*(Ie[1]+Ie[3])},Re={x:Ue.x-X*.5,y:Ue.y-ee*.5},ze=sdkStore.getHotItem(pe||""),st=sdkStore.getHotItem(ye||""),xt=(0,tl.Ui)(Re,[W[0]])[0],Nt=(0,tl.Ui)(Re,[W[W.length-1]])[0],$t=(0,C.Tg)(xt,T),An=(0,C.Tg)(Nt,T);let zn;if(ze&&st){const Sn=sdkStore.locUpHotCanvasKey(ze.key),Wo=sdkStore.locUpHotCanvasKey(st.key);zn=Sn&&Wo&&Sn===Wo?Sn:T}else if(ze&&!st){const Sn=sdkStore.locUpHotCanvasKey(ze.key);zn=Sn&&Sn===An?Sn:T}else if(!ze&&st){const Sn=sdkStore.locUpHotCanvasKey(st.key);zn=Sn&&Sn===$t?Sn:T}else zn=L(Ie)||T;const lo=(0,fc.YQ)(),Qn=(0,fc.Us)();sdkStore.updateHotItem({...z,sup:zn,hotAttr:{...z.hotAttr,...sdkStore.toAttrXY(Ue,x,zn),name:lo(zn,"wElbow",z.hotAttr.name,Sn=>Sn.key!==x),zIndex:Qn(x,zn)}})},"entry:elbow:after-quick-create:popup":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,openFrom:b,mousePos:T}}=R;if(sdkStore.getHotItem(x).hotAttr.refToKey)return;const[L,z]=sdkStore.getHotAABB(x),{elbow:{dPathList:W,elbowType:X}}=sdkStore.getHotItem(x).hotAttr;let ee=W.at(-1);X==="curve"&&(ee=(0,Rt.Ig)({closed:!1,points:W}).at(-1));const pe={x:L+ee.x,y:z+ee.y};u({type:"elbow:update",payload:{isShowWidgetPopup:!0,popupWorldPos:pe}}),oo.A.emit("elbowPopupShowed",{from:b,mousePos:T,elbowKey:x})},"entry:elbow:popup:create":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,widgetType:b,openFrom:T}}=R;if(!(0,ls._c)({type:"widget",count:1}))return;const L=A(),z=(0,a.Ur)(L),W=(0,Bn.Fc)(L),X=(0,we.gu)({type:b,screen:z}),ee=sdkStore.getHotItem(x),pe={...ee,hotAttr:{...ee.hotAttr,elbow:{...ee.hotAttr.elbow}}},{dPathList:ye,elbowType:Ie}=pe.hotAttr.elbow,Ue=(0,ac.R)(ye,Ie),Re=pe.hotAttr.refFromKey,ze=Re&&!sdkStore.isTrashed(Re);if(T==="instant"&&ze){const zn=sdkStore.getHotBound(Re),{x:lo,y:Qn,w:Sn,h:Wo}=zn;Ue==="up"?(X.x=lo,X.y=Qn-Wo*.5-X.h*.5-cc,pe.hotAttr.elbow.toDirection="bottom"):Ue==="down"?(X.x=lo,X.y=Qn+Wo*.5+X.h*.5+cc,pe.hotAttr.elbow.toDirection="top"):Ue==="left"?(X.x=lo-Sn*.5-X.w*.5-cc,X.y=Qn,pe.hotAttr.elbow.toDirection="right"):(X.x=lo+Sn*.5+X.w*.5+cc,X.y=Qn,pe.hotAttr.elbow.toDirection="left")}else Ue==="up"?(X.x=W.x,X.y=W.y-X.h*.5,pe.hotAttr.elbow.toDirection="bottom"):Ue==="down"?(X.x=W.x,X.y=W.y+X.h*.5,pe.hotAttr.elbow.toDirection="top"):Ue==="left"?(X.x=W.x-X.w*.5,X.y=W.y,pe.hotAttr.elbow.toDirection="right"):(X.x=W.x+X.w*.5,X.y=W.y,pe.hotAttr.elbow.toDirection="left");const xt=(0,C.Tg)(W,z.cid)||z.cid,Nt=(0,B1._)(xt),$t={key:(0,Oe.cF)(),sup:z.cid,sub:[],hotAttr:{...X,zIndex:Nt}};$t.hotAttr.name=(0,mr.aw)({...X,sup:xt}),sdkStore.combineMergeMark("widgetpopup-create"),sdkStore.updateHotItem($t),sdkStore.changeRndSup($t.key,xt),pe.hotAttr.refToKey=$t.key,sdkStore.updateHotItem(pe),sdkStore.combineMerge("widgetpopup-create"),u({type:"entry:select:items",payload:{cids:[$t.key]}});const An=T==="instant"?"\u7EC4\u4EF6\u52A0\u53F7\u6DFB\u52A0":"\u7EBF\u6761\u62D6\u62FD";(0,F1.W)({widget_source:An,widget_type:b})},"entry:elbow:popup:elbow:modify":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,givinStartInfo:b,sup:T}}=R;const L=sdkStore.getHotItem(x),{key:z,startDirection:W}=b,ee=sdkStore.getHotBound(z),pe=L.hotAttr.elbow.elbowType==="curve"?[...nu.XS]:[{x:0,y:0},{x:0,y:0}],ye={...L,hotAttr:{...L.hotAttr,elbow:{...L.hotAttr.elbow,dPathList:pe}}},Ie=pe.length-1;ye.hotAttr.refFromKey=b.key,ye.hotAttr.elbow.fromDirection=b.startDirection;let Ue={x:0,y:0},Re={x:0,y:0};if(W==="left"?(ye.hotAttr.elbow.dPathList[0].x=cc,ye.hotAttr.elbow.dPathList[0].y=0,ye.hotAttr.elbow.dPathList[Ie].x=0,ye.hotAttr.elbow.dPathList[Ie].y=0,ye.hotAttr.x=ee.x-ee.w*.5-cc*.5,ye.hotAttr.y=ee.y,ye.hotAttr.w=cc,ye.hotAttr.h=0,ye.hotAttr.elbow.elbowType==="curve"&&(Ue={x:ee.x-ee.w/2,y:ee.y},Re={x:ee.x-ee.w/2-cc,y:ee.y})):W==="right"?(ye.hotAttr.elbow.dPathList[0].x=0,ye.hotAttr.elbow.dPathList[0].y=0,ye.hotAttr.elbow.dPathList[Ie].x=cc,ye.hotAttr.elbow.dPathList[Ie].y=0,ye.hotAttr.x=ee.x+ee.w*.5+cc*.5,ye.hotAttr.y=ee.y,ye.hotAttr.w=cc,ye.hotAttr.h=0,ye.hotAttr.elbow.elbowType==="curve"&&(Ue={x:ee.x+ee.w/2,y:ee.y},Re={x:ee.x+ee.w/2+cc,y:ee.y})):W==="bottom"?(ye.hotAttr.elbow.dPathList[0].x=0,ye.hotAttr.elbow.dPathList[0].y=0,ye.hotAttr.elbow.dPathList[Ie].x=0,ye.hotAttr.elbow.dPathList[Ie].y=cc,ye.hotAttr.x=ee.x,ye.hotAttr.y=ee.y+ee.h*.5+cc*.5,ye.hotAttr.h=cc,ye.hotAttr.w=0,ye.hotAttr.elbow.elbowType==="curve"&&(Ue={x:ee.x,y:ee.y+ee.h/2},Re={x:ee.x,y:ee.y+ee.h/2+cc})):(ye.hotAttr.elbow.dPathList[0].x=0,ye.hotAttr.elbow.dPathList[0].y=cc,ye.hotAttr.elbow.dPathList[Ie].x=0,ye.hotAttr.elbow.dPathList[Ie].y=0,ye.hotAttr.x=ee.x,ye.hotAttr.y=ee.y-ee.h*.5-cc*.5,ye.hotAttr.h=cc,ye.hotAttr.w=0,ye.hotAttr.elbow.elbowType==="curve"&&(Ue={x:ee.x,y:ee.y-ee.h/2},Re={x:ee.x,y:ee.y-ee.h/2-cc})),sdkStore.updateHotItem(ye),ye.hotAttr.elbow.elbowType==="curve"){const ze=(0,ac.b)({elbowKey:x,moveAnchor:"start",worldPos:Ue,refKey:b.key,direction:b.startDirection});sdkStore.updateHotItem(ze);const st=(0,ac.b)({elbowKey:x,moveAnchor:"end",worldPos:Re,refKey:"",direction:"none"});sdkStore.updateHotItem(st)}sdkStore.changeRndSup(ye.key,T)},"entry:elbow:popup:elbow:from:modify":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{elbowKey:x,givinStartInfo:b,isInstantCreate:T=!1}}=R;const L=sdkStore.getHotItem(x),{key:z,startDirection:W}=b,X={...L,hotAttr:{...L.hotAttr,elbow:{...L.hotAttr.elbow,dPathList:[]}}};X.hotAttr.refFromKey=z,X.hotAttr.elbow.fromDirection=W,sdkStore.updateHotItem(X)},"entry:elbow:isInElbowMode:toggle":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Bn.Q1)(u);A({type:"elbow:update",payload:{isInElbowMode:!x}}),A({type:"entry:clear:selection"})},"entry:elbow:type:transform":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.p$)(b),{nextType:L}=x,z=[];for(const W of T){const X=sdkStore.getHotItem(W),{elbow:ee,w:pe,h:ye,x:Ie,y:Ue,refToKey:Re,refFromKey:ze}=X.hotAttr,{dPathList:st,toDirection:xt,fromDirection:Nt}=ee;if(L===ee.elbowType)continue;const $t={...ee,elbowType:L},An=Ie-pe/2,zn=Ue-ye/2,lo=()=>{const Qn=(0,Rt.Ig)({closed:!1,points:ee.dPathList}).map((Ea,wa)=>wa===0||wa===ee.dPathList.length-1?{x:Ea.x+An,y:Ea.y+zn,isAdjusted:!1}:{x:Ea.x,y:Ea.y,isAdjusted:!1}),Sn=Qn[0],Wo=Qn.at(-1),qo=(0,ac.b)({elbowKey:W,moveAnchor:"end",worldPos:Wo,refKey:Re,direction:xt},{...X,hotAttr:{...X.hotAttr,elbow:{...$t,dPathList:[{x:0,y:0,isAdjusted:!1},Wo]}}}),ua=(0,ac.b)({elbowKey:W,moveAnchor:"start",worldPos:Sn,refKey:ze,direction:Nt},qo);z.push({...ua,notTriggerAttachedUpdate:!0})};switch($t.elbowType){case"sharp":case"rounded":{if(ee.elbowType==="straight"){const Qn=st.at(-1),Sn={x:An+Qn.x,y:zn+Qn.y},Wo=(0,ac.b)({elbowKey:W,moveAnchor:"end",worldPos:Sn,refKey:Re,direction:xt},{...X,hotAttr:{...X.hotAttr,elbow:$t}});z.push({...Wo,notTriggerAttachedUpdate:!0})}else ee.elbowType==="curve"?lo():z.push({key:W,hotAttr:{elbow:$t},notTriggerAttachedUpdate:!0});break}case"straight":{if(ee.elbowType==="rounded"||ee.elbowType==="sharp"){const Qn=[ee.dPathList[0],ee.dPathList.at(-1)];$t.dPathList=Qn,z.push({key:W,hotAttr:{elbow:$t},notTriggerAttachedUpdate:!0})}else ee.elbowType==="curve"&&lo();break}case"curve":{const Qn=(0,tl.Ui)(We.Z.xy(An,zn),[st[0]])[0],Sn=(0,tl.Ui)(We.Z.xy(An,zn),[st[st.length-1]])[0],Wo=(Qn.x+Sn.x)/2,qo=(Qn.y+Sn.y)/2,ua=Math.abs(Sn.x-Qn.x),Ea=Math.abs(Sn.y-Qn.y),wa=[{x:0,y:0,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:0,y:0,type:"mirrored",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:Sn.x-Qn.x,y:Sn.y-Qn.y,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0}];(0,ac.eO)(wa),$t.dPathList=wa,$t.middleIsAdjusted=!1,z.push({key:W,hotAttr:{elbow:$t,x:Wo,y:qo,w:ua,h:Ea},notTriggerAttachedUpdate:!0})}}}u({type:"entry:widget:change",payload:{flatChgList:z}})},"entry:elbow:middle-anchor:reset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{elbowKey:b}=x,T=sdkStore.getHotItem(b),{elbow:L,elbow:{dPathList:z}}=T.hotAttr,W=JSON.parse(JSON.stringify(z));(0,ac.eO)(W);const{x:X,y:ee,w:pe,h:ye}=(0,tu.zh)({key:b,vector:{closed:!1,points:W}}),Ie=[];Ie.push({key:b,hotAttr:{x:X,y:ee,w:pe,h:ye,elbow:{...L,dPathList:W,middleIsAdjusted:!1}}}),u({type:"entry:widget:change",payload:{flatChgList:Ie}}),u({type:"entry:select:items",payload:{cids:[b]}})},"entry:elbow:update:textPositionProportion":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();if(!(b&&(0,Bn.CP)(b)))return;const{key:L,textPositionProportion:z}=x||{},W=sdkStore.getHotItem(L);if(!W)return;const X=[{key:L,hotAttr:{...W.hotAttr,elbow:{...W.hotAttr.elbow,textPositionProportion:z}}}];u({type:"entry:widget:change",payload:{flatChgList:X}})}};var w2=i(81592),hp=i(55514);const mp={"entry:image-view:edit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{operationType:T}=x,z=(0,Ae.nE)(b).filter(X=>{var ee;let{hotAttr:pe}=X;return pe.type===P.x.WImage&&((ee=pe.image)==null?void 0:ee.imageRef)}),W=T===Jn.bl.cutting;(z==null?void 0:z.length)>0&&(u({type:"image:update:state",payload:{isEditingImageWrapperCid:z.map(X=>{let{key:ee}=X;return ee}).join(","),currentImageOperateType:T}}),!W&&MB.commonGuideHelper.checkGuideToBeShown(m.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown(m.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide(m.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_IMAGE_SLICING)))},"entry:image-view:cutting":B=>{var R;let{getState:A,dispatch:u}=B;const x=A(),b=(0,mn.tl)(x);if(!b||!(b!=null&&b.length))return;const T=b[0];if(((R=T.widget)==null||(R=R.image)==null?void 0:R.imageClipType)==="none"){var L;u({type:"entry:widget:change",payload:{flatChgList:[{key:T.key||T.cid,hotAttr:{image:{...(L=T.widget)==null?void 0:L.image,imageClipType:Jn.Mg.square}}}]}})}},"entry:image-view:exit:edit":B=>{let{dispatch:R}=B;R({type:"image:update:state",payload:{isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:Jn.Q7.cutFrame}})},"entry:image-view:slicing":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{wImageKeyList:x,sliceWorldPos:b,slicingDirection:T}}=R;u({type:"entry:image-view:exit:edit"}),sdkStore.combineMergeMark("image-slice");const L=x.reduce((z,W)=>{const X=(0,w2.A)({sdk:sdkStore,sliceWorldPos:b,wImageKey:W,slicingDirection:T});return X.forEach(ee=>{ee.hotAttr.image.imageFillType="stretch"}),X.length>0&&(sdkStore.deleteHotItem(W),sdkStore.updateHotItemBatch(X)),[...z,...X.map(ee=>ee.key)]},[]);sdkStore.combineMerge("image-slice"),u({type:"entry:refresh:link-list"}),u({type:"entry:select:items",payload:{cids:L}})},"entry:image-view:fill-type":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{imageFillType:x}}=R;const b=A();if(!x)return;let T;const z=((0,Ae.p$)(b)||[]).map(Ie=>sdkStore.getHotItem(Ie)).filter(Ie=>Ie.hotAttr.type==="wImage");if(!z||z.length===0)return;const W=z[0],{hotAttr:{w:X,h:ee,image:{imageRectOriginalWidth:pe,imageRectOriginalHeight:ye}}}=W;if(x==="fill"){const Ie=(0,hp.Z)({w:X,h:ee,imageRectOriginalWidth:pe,imageRectOriginalHeight:ye});T={...W.hotAttr.image,...Ie,imageFillType:x}}else x==="stretch"&&(T={...W.hotAttr.image,imageFillType:x,imageRectWidth:X,imageRectHeight:ee,imageRectCenterX:X/2,imageRectCenterY:ee/2});u({type:"entry:widget:change",payload:{flatChgList:[{key:W.key,hotAttr:{image:T}}]}})},"entry:image-view:horizontal-flip":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isImage:x}}=R;const b=A(),L=((0,Ae.p$)(b)||[]).map(z=>sdkStore.getHotItem(z)).filter(z=>{var W;return!!(z.hotAttr.type===P.x.WImage&&(W=z.hotAttr.image)!=null&&W.imageRef&&x||z.hotAttr.type===P.x.WIcon&&!x)});!L||L.length===0||(L.forEach(z=>{z.hotAttr.flip.flipH=!z.hotAttr.flip.flipH}),u({type:"entry:widget:change",payload:{flatChgList:L,shouldReBuildTree:!0}}),u({type:"entry:auto:show:hide:item"}),(0,Tn.$j)({operation_type:"\u6C34\u5E73\u7FFB\u8F6C",widget_type:x?"\u56FE\u7247":"\u56FE\u6807"}))},"entry:image-view:vertically-flip":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isImage:x}}=R;const b=A(),L=((0,Ae.p$)(b)||[]).map(z=>sdkStore.getHotItem(z)).filter(z=>{var W;return!!(z.hotAttr.type===P.x.WImage&&(W=z.hotAttr.image)!=null&&W.imageRef&&x||z.hotAttr.type===P.x.WIcon&&!x)});!L||L.length===0||(L.forEach(z=>{z.hotAttr.flip.flipV=!z.hotAttr.flip.flipV}),u({type:"entry:widget:change",payload:{flatChgList:L,shouldReBuildTree:!0}}),u({type:"entry:auto:show:hide:item"}),(0,Tn.$j)({operation_type:"\u5782\u76F4\u7FFB\u8F6C",widget_type:x?"\u56FE\u7247":"\u56FE\u6807"}))}};var V1=i(38047),n0=i(31569);const Yp=(B,R,A,u)=>{const{x,y:b,w:T,h:L}=B,z=R[2]-R[0],W=R[3]-R[1];switch(A){case"left":return{x:u[0]+z/2,y:b,w:T,h:L};case"center":return{x:(u[0]+u[2])*.5,y:b,w:T,h:L};case"right":return{x:u[2]-z/2,y:b,w:T,h:L};case"top":return{x,y:u[1]+W/2,w:T,h:L};case"middle":return{x,y:(u[1]+u[3])*.5,w:T,h:L};case"bottom":return{x,y:u[3]-W/2,w:T,h:L}}},fp=(B,R)=>{const A=B.sub.filter(x=>x!==R);return sdkStore.getHotKeyListAABB(A)},gp=(B,R,A)=>{const u={};B.forEach(T=>(0,rc.Ie)(T,u));const x=(0,u0.vC)(B,T=>{var L;const z=((L=sdkStore.getHotItem(T))==null?void 0:L.hotAttr.type)===P.x.WTear;return z&&(0,rc.Ie)(T,u),z}),b=[];if(B.length===1){const T=B[0],L=sdkStore.locUpColdCanvasKey(T),z=sdkStore.getHotItem(T),W=sdkStore.findUpType(z.sup,P.x.WWrap);if(W){const X=fp(W,T),ee=Yp(sdkStore.getHotBound(T),sdkStore.getHotAABB(T),R,X);(0,rc.$O)(b,T,ee,u),(0,Bc.PB)(b,T,ee,x,u)}else if(L){const X=Yp(sdkStore.getHotBound(T),sdkStore.getHotAABB(T),R,sdkStore.getHotAABB(L));(0,rc.$O)(b,T,X,u),(0,Bc.PB)(b,T,X,x,u)}}else B.forEach(T=>{const L=Yp(sdkStore.getHotBound(T),sdkStore.getHotAABB(T),R,sdkStore.getHotKeyListAABB(B));(0,rc.$O)(b,T,L,u),(0,Bc.PB)(b,T,L,x,u)});return b},Kd=(B,R,A)=>{const u={};B.forEach(L=>(0,rc.Ie)(L,u));const x=sdkStore.getHotKeyListAABB(B),b=(0,u0.vC)(B,L=>{var z;const W=((z=sdkStore.getHotItem(L))==null?void 0:z.hotAttr.type)===P.x.WTear;return W&&(0,rc.Ie)(L,u),W}),T=[];if(B.length>2)switch(R){case"horizontal":{const L=(x[2]-x[0]-B.reduce((X,ee)=>{const pe=sdkStore.getHotAABB(ee),ye=pe[2]-pe[0];return X+ye},0))/(B.length-1),z=B.sort((X,ee)=>sdkStore.getHotAABB(X)[0]-sdkStore.getHotAABB(ee)[0]);let W=sdkStore.getHotAABB(z[0])[2];z.slice(1,-1).forEach((X,ee)=>{const{y:pe,w:ye,h:Ie}=sdkStore.getHotBound(X),Ue=sdkStore.getHotAABB(X),Re=Ue[2]-Ue[0];W+=L+Re;const ze={x:W-Re/2,y:pe,w:ye,h:Ie};(0,rc.$O)(T,X,ze,u),(0,Bc.PB)(T,X,ze,b,u)});break}case"vertical":{const L=(x[3]-x[1]-B.reduce((X,ee)=>{const pe=sdkStore.getHotAABB(ee),ye=pe[3]-pe[1];return X+ye},0))/(B.length-1),z=B.sort((X,ee)=>sdkStore.getHotAABB(X)[1]-sdkStore.getHotAABB(ee)[1]);let W=sdkStore.getHotAABB(z[0])[3];z.slice(1,-1).forEach((X,ee)=>{const{x:pe,w:ye,h:Ie}=sdkStore.getHotBound(X),Ue=sdkStore.getHotAABB(X),Re=Ue[3]-Ue[1];W+=L+Re;const ze={x:pe,y:W-Re/2,w:ye,h:Ie};(0,rc.$O)(T,X,ze,u),(0,Bc.PB)(T,X,ze,b,u)});break}}return T},Xp=[P.x.WWrap,P.x.Canvas,P.x.RbPage],Qp=B=>{const A=B.map(L=>{if(sdkStore.isTrashed(L.key))return[];const z=sdkStore.findUpHotItemList(L.key);return!z||!(z!=null&&z.length)?[]:z.filter(W=>{let{key:X}=W;return X!==L.key}).map(W=>{let{key:X}=W;return X})}).filter(L=>L==null?void 0:L.length).reduce((L,z)=>L.filter(W=>z.some(X=>W===X))),u=(L,z)=>{const W=[],X=sdkStore.getHotItem(L),ee=z(X);ee&&W.push(ee);const{hotAttr:{type:pe,bunch:ye}}=X,Ie=ye!=null?ye:pe;return Xp.includes(Ie)&&sdkStore.getSubHotItemList(L).sort((Ue,Re)=>Re.hotAttr.zIndex-Ue.hotAttr.zIndex).forEach(Ue=>{let{key:Re}=Ue;return W.push(...u(Re,z))}),W},x=A[0],b=u(x,L=>L.key);return B.sort((L,z)=>b.indexOf(L.key)-b.indexOf(z.key))[0]},S2=B=>{const A=B.map(W=>sdkStore.getHotItem(W)).filter(W=>![P.x.WTear,P.x.WSticky].includes(W.hotAttr.type)&&!(0,He.OO)(W.key)&&!sdkStore.isTrashed(W.key));if(!(A!=null&&A.length))return[];const u=Qp(A),x=u.sup,b=u.hotAttr.zIndex,T=sdkStore.findAllTypeUnder(x,P.x.WWrap),L=T.length?I18N.w[P.x.WWrap]+" "+(T.length+1):I18N.w[P.x.WWrap],z=(0,Oe.cF)("ww");return sdkStore.summonWWrap(A.map(W=>W.key),x,z,L,b,!0,!0),[z]},ru=B=>{const R=new Map,A=(u,x)=>u.hotAttr.zIndex-x.hotAttr.zIndex;return B.forEach(u=>{const x=sdkStore.getHotItem(u),b=R.get(u);let T=b?b.hotAttr.zIndex:x.hotAttr.zIndex;const L=sdkStore.getSubHotItemList(x.sup).sort(A),z=L.findIndex(ee=>ee.key===u),W=L.slice(z+1,L.length);if(sdkStore.getSubHotItemList(x.key).sort(A).forEach(ee=>{R.set(ee.key,{...ee,hotAttr:{...ee.hotAttr,zIndex:++T}})}),W.length){const ee=W[0].hotAttr.zIndex;T>=ee&&W.forEach(pe=>{R.set(pe.key,{...pe,hotAttr:{...pe.hotAttr,zIndex:++T}})})}}),Array.from(R.values())},iu=new Set(["rResCanvas","wTear","wSticky"]),z1=B=>!iu.has(B.hotAttr.type)&&!(0,He.OO)(B.key),md=B=>{const R=B.map(W=>sdkStore.getHotItem(W)),[A,u]=R.reduce((W,X)=>{let[ee,pe]=W;return z1(X)?[ee,pe.concat([X])]:[ee.concat([X]),pe]},[[],[]]);if(!u.length)return;const x=(0,fc.Lf)(B);if(!x)return;const b=x.sup;if((0,He.OO)(b))return;sdkStore.combineMergeMark("summon-wwrap-from-selection");const T=[];B.filter(W=>W!==x.key).forEach(W=>{const X=sdkStore.getHotItem(W).sup,ee=sdkStore.getSubHotItemList(X).filter(pe=>pe.key!==W);ee!=null&&ee.length||T.push(X)});const L=(0,fc.YQ)(),z=(0,Oe.cF)("ww");return sdkStore.updateHotAttrMergeBatch(u.sort((0,fc.tU)(b)).map((W,X)=>[W.key,{zIndex:X+1}])),sdkStore.summonWWrap(u.map(W=>W.key),b,z,L(b,"wWrap",I18N.w[P.x.WWrap]),x.hotAttr.zIndex,!0,!0),T!=null&&T.length&&sdkStore.deleteHotItemBatch(T),sdkStore.combineMerge("summon-wwrap-from-selection"),A.map(W=>W.key).concat([z])},rd=function(B,R,A){A===void 0&&(A="zIndex");const u=[];return B.forEach(x=>{const{cids:b,siblings:T}=x,L=[...T].sort((W,X)=>W.hotAttr[A]-X.hotAttr[A]),z=Jp(b,L,R,A);u.push(...z)}),u},Jp=(B,R,A,u)=>{const x=R.map(X=>X.hotAttr[u]),b=A2(x),T=R.map(X=>X.key),L=A===1?W1(T,B):Ru(T,B),z={};L.forEach((X,ee)=>z[X]=b[ee]);const W=[];return R.forEach(X=>{const ee=z[X.key];X.hotAttr[u]!==ee&&W.push({...X,hotAttr:{...X.hotAttr,[u]:ee}})}),W},A2=B=>{const R=[];return B.forEach((A,u)=>{const x=R[u-1];u===0||A>x?R.push(A):R.push(x+1)}),R},W1=(B,R)=>{const A=[];let u=[];return B.forEach(x=>{R.includes(x)?u.push(x):(A.push(x),A.push(...u),u=[])}),A.push(...u),A},Ru=(B,R)=>{const A=[...B].reverse();return W1(A,R).reverse()};var su=i(16249),H1=i(5621),lu=i(74413),qp=i(38358);const cu=B=>{var R;if(sdkStore.isTrashed(B))return null;const A=sdkStore.getHotItem(B);return(R=sdkStore.findUpHotItemList(B).find(x=>{let{hotAttr:b}=x;return A.hotAttr.type===P.x.Canvas?b.bunch===P.x.RbPage:b.bunch===P.x.RbPage||b.type===P.x.Canvas&&!(0,He.OO)(B)}))==null?void 0:R.key},yp=B=>{let{keyList:R,pageKey:A,pre:u,dir:x}=B;const b={},T=(0,Bc.oh)(R,!0),L=(0,u0.vC)(T,z=>{var W;const X=((W=sdkStore.getHotItem(z))==null?void 0:W.hotAttr.type)===P.x.WTear;return X&&(0,rc.Ie)(z,b),X});return T.reduce((z,W)=>{const X=cu(W);if(!X)return z;const{hotAttr:ee}=sdkStore.getHotItem(W),{x:pe,y:ye,w:Ie,h:Ue}=sdkStore.getRelocateLocalBound(W,X),Re=sdkStore.getLocalBound(W),ze=L.get(W)||[];if(x==="left"){const st=ee.x-Re.x,{x:xt}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:u+Ie/2+st,y:ye},W,X),W),Nt=xt-ee.x,$t=(0,Bc.ol)(ze,Nt,0,b);return[...z,...$t,{key:W,hotAttr:{x:xt}}]}else if(x==="top"){const st=ee.y-Re.y,{y:xt}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:pe,y:u+Ue/2+st},W,X),W),Nt=xt-ee.y,$t=(0,Bc.ol)(ze,0,Nt,b);return[...z,...$t,{key:W,hotAttr:{y:xt}}]}return[]},[])},Yd=B=>{let{keyList:R,pre:A,dir:u}=B;const b=(0,Bc.oh)(R,!0)[0];if(!cu(b))return;const{hotAttr:L}=sdkStore.getHotItem(b),z=MB.getScale()/100,{x:W,y:X,w:ee,h:pe}=sdkStore.getHotBound(b),Ie={...u==="left"?{x:W+(A-L.x+ee/2)/z,y:X}:{x:W,y:X+(A-L.y+pe/2)/z},r:L.r,w:ee,h:pe},{x:Ue,y:Re}=sdkStore.toAttrXY(Ie,b);return[{key:b,hotAttr:{x:Ue,y:Re,image:{...L.image,...(0,w2.N)(b,Ie),imageFillType:"stretch"}}}]},Z0=B=>{let{keyList:R,pageKey:A,offsetX:u,offsetY:x}=B;const b={},T=(0,Bc.oh)(R,!1,!0),L=(0,u0.vC)(T,W=>{var X;const ee=((X=sdkStore.getHotItem(W))==null?void 0:X.hotAttr.type)===P.x.WTear;return ee&&(0,rc.Ie)(W,b),ee});return{flatChgList:T.reduce((W,X)=>{const{x:ee,y:pe}=sdkStore.getHotItem(X).hotAttr,ye=L.get(X),Ie=(0,Bc.ol)(ye,u,x,b);return[...W,...Ie,{key:X,hotAttr:{x:ee+u,y:pe+x}}]},[]),keyList:T}};var Fl=i(34748);const jd=B=>{if(!(0,g1._5)()||MB.commonGuideHelper.checkGuideHasShown(m.c.UNGROUP_WITH_WM))return!0;const R=(0,Yc.fV)();if(!R)return!0;const{mdWMMktList:A,mtWMMktList:u}=R,x=new Set([...A,...u]),b=[];return B.forEach(T=>{sdkStore.walkHotItemSubtree2(T.key,L=>{L.hotAttr.mktCid&&x.has(L.hotAttr.mktCid)&&b.push(L.key)})}),b.length<2};var fd=i(9680);const vp={"entry:group:items":B=>{let{getState:R,dispatch:A}=B;A({type:"entry:group:items:v2"})},"entry:group:items:v1":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u);if(!(0,Gt.kE)(x))return;const T=S2(x);T!=null&&T.length&&(A({type:"entry:select:items",payload:{cids:T}}),A({type:"entry:refresh:link-list"}),A({type:"mind:exit:edit:state"}),A({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:group:items:v2":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u);if(!(0,Gt.kE)(x))return;const T=md(x);T!=null&&T.length&&(A({type:"entry:select:items",payload:{cids:T}}),A({type:"entry:refresh:link-list"}),A({type:"mind:exit:edit:state"}),A({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:ungroup:items":B=>{let{getState:R,dispatch:A}=B;A({type:"entry:ungroup:items:v2"})},"entry:ungroup:items:v1":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u);if(!(0,Gt.P6)(x))return;const b=(0,a.eo)(u),T=x.map(X=>sdkStore.getHotItem(X)),L=T.reduce((X,ee)=>ee.hotAttr.type===P.x.WWrap?[...X,ee.key]:X,[]).sort(C.tM).reverse();if(L.length===0)return;sdkStore.combineMergeMark("ungroup"),(0,ma.hf)(L,b,A);const z=ru(L);z!=null&&z.length&&sdkStore.updateHotItemBatch(z),L.forEach(X=>sdkStore.dispelWWrap(X));const W=T.reduce((X,ee)=>ee.hotAttr.type===P.x.WWrap?[...X,...ee.sub]:[...X,ee.key],[]);sdkStore.combineMerge("ungroup"),A(o.GO.hoverItem("")),A({type:"clear:echo:item"}),A({type:"entry:select:items",payload:{cids:W}}),A({type:"entry:refresh:link-list"}),A({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:ungroup:items:v2":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u),b=(0,a.eo)(u),T=x.map(Ue=>sdkStore.getHotItem(Ue)),[L,z]=T.reduce((Ue,Re)=>{let[ze,st]=Ue;return Re.hotAttr.type===P.x.WWrap?[ze,st.concat([Re])]:[ze.concat([Re]),st]},[[],[]]);if(z.length===0)return;if(!jd(z)){A({type:"modal:update:state",payload:{mktWMUngroupModal:{isOpen:!0}}}),Go.U4.watermarkExposureTrack("ungroup");return}const W=[],X=z.map(Ue=>Ue.key);sdkStore.combineMergeMark("ungroup"),(0,ma.hf)(X,b,A);const ee=(0,fc.wr)(X),pe=(0,fc.G9)(b,[]),ye=[];for(const Ue of z){const{key:Re,sup:ze,sub:st}=Ue,xt=st.map(zn=>sdkStore.getHotItem(zn)).sort((zn,lo)=>zn.hotAttr.zIndex-lo.hotAttr.zIndex),Nt=sdkStore.getHotItem(ze),$t=Nt.hotAttr.type==="wWrap",An=Nt.hotAttr.type==="rResCanvas";for(const zn of xt){const lo=sdkStore.getHotAABB(zn.key),Qn=$t||An&&(0,jn.cj)(lo,sdkStore.getHotAABB(ze))?ze:pe(lo)||b;ye.push({key:zn.key,sup:Qn,hotAttr:{...sdkStore.getRelocateLocalXYR(zn.key,Qn),zIndex:ee.getReStackZIndex(zn.key,Qn)}}),W.push(zn.key)}sdkStore.dispelWWrap(Re)}ee.subsequentReStack(ye),sdkStore.deleteHotItemBatch(X),sdkStore.updateHotItemBatch(ye.map(Ue=>{const Re=sdkStore.getHotItem(Ue.key);return{...Re,sup:Ue.sup||Re.sup,hotAttr:{...Re.hotAttr,...Ue.hotAttr}}})),sdkStore.combineMerge("ungroup");const Ie=W.concat(L.map(Ue=>Ue.key));A(o.GO.hoverItem("")),A({type:"clear:echo:item"}),A({type:"entry:select:items",payload:{cids:Ie}}),A({type:"entry:refresh:link-list"}),A({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();if((0,Lt.lY)(b))return;const{attr:L,widget:z}=x,W=z!=null&&z.key?sdkStore.getHotItem(z.key):null,X=W?[W]:(0,Ae.nE)(b),ee=L==="isVisible"?X.filter(ze=>!(0,Md.yT)(ze.hotAttr.type)):X,pe=(0,a.Ur)(b),ye=ee.length===1&&ee[0].key===pe.cid,Ie=ee.length===0;if(ye||Ie)return;const Ue=(0,n0.i)(ee,L),Re=ee.map(ze=>{let{key:st}=ze;return{key:st,hotAttr:{[L]:!Ue}}});u({type:"entry:widget:change",payload:{flatChgList:Re,shouldBreakLayerUICache:!0}}),u({type:"mind:exit:edit:state"})},"entry:toggle:lock":(B,R)=>{let{dispatch:A}=B,{payload:u={}}=R;A({type:"entry:toggle:attr",payload:{attr:"isLock",...u}}),A({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:visible":(B,R)=>{let{dispatch:A}=B,{payload:u={}}=R;A({type:"entry:toggle:attr",payload:{attr:"isVisible",...u}}),A({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})},"entry:set:Fixed":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{value:x}}=R;const b=A(),L=(0,Ae.p$)(b).filter(W=>!(0,He.OO)(W)).map(sdkStore.getHotItem).filter(W=>!(0,Md.yT)(W.hotAttr.type));if(L.length===0)return;const z=L.map(W=>{let{key:X}=W;return{key:X,hotAttr:{fixPosTo:x}}});u({type:"entry:widget:change",payload:{flatChgList:z}})},"entry:align:items":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{direction:b}=x,T=A(),L=(0,Ae.p$)(T),z=(0,Lt.lY)(T),W=(0,a.eo)(T);if(!((0,Gt.GS)(L)&&!z))return;const ee=(0,Bc.oh)(L),pe=gp(ee,b,W);u({type:"entry:widget:change",payload:{flatChgList:pe}}),u({type:"entry:refresh:link-list"}),u({type:"entry:select:smartly"})},"entry:distribute:items":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{direction:b}=x,T=A(),L=(0,Lt.lY)(T),z=(0,Ae.p$)(T),W=(0,a.eo)(T);if(!((0,Gt.oR)(z)&&!L))return;const ee=(0,Bc.oh)(z),pe=Kd(ee,b,W);u({type:"entry:widget:change",payload:{flatChgList:pe}}),u({type:"entry:refresh:link-list"}),u({type:"entry:select:smartly"})},"entry:items:set:icon":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{icon:x,iconName:b,iconDisplayName:T,isMultiColorIcon:L}}=R;const z=A(),W=(0,Ae.nE)(z);if(W.length===0)return;const X=[],ee=new Set;W.forEach(pe=>{let{key:ye,hotAttr:{iconData:Ie,mktCid:Ue}}=pe;Ue&&ee.add(Ue),x.groupCid&&ee.delete(x.groupCid),!((Ie==null?void 0:Ie.iconName)===void 0||(Ie==null?void 0:Ie.viewBox)===void 0||(Ie==null?void 0:Ie.path)===void 0)&&(Ie&&(!Ie.iconColor||Ie.iconColor==="unset")&&(Ie.iconColor="rgba(16, 16, 16, 1)"),X.push({key:ye,hotAttr:{w:Ie==null?void 0:Ie.iconSize,h:Ie==null?void 0:Ie.iconSize,name:T,mktCid:x.groupCid||void 0,iconData:{...Ie,iconName:b,viewBox:x.view_box,path:x.path,isMultiColorIcon:L}}}))}),u({type:"entry:widget:change",payload:{flatChgList:X}})},"entry:items:set:asset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{asset:x}}=R;const b=A(),T=(0,Ae.nE)(b),L=T.filter(ye=>ye.hotAttr.type===P.x.WImage),z=T.filter(ye=>ye.hotAttr.type===P.x.WPlaceholder),W=(0,Fr.JB)(x,L),X=(0,Fr.De)(x,z),ee=W.map((ye,Ie)=>({key:L[Ie].key,hotAttr:{...ye}})),pe=X.map((ye,Ie)=>({key:z[Ie].key,hotAttr:{...ye}}));u({type:"entry:widget:change",payload:{flatChgList:[...ee,...pe]}})},"entry:items:set:clipType":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{clipType:x}}=R;const b=A(),T=(0,Ae.nE)(b).filter(z=>{var W;return z.hotAttr.type===P.x.WImage&&((W=z.hotAttr.image)==null?void 0:W.imageRef)}),L=(0,Fr.lt)(x,T);L.forEach(z=>{let{key:W,hotAttr:X}=z;X.refVars=(0,fd.VN)(W,X)}),u({type:"entry:widget:change",payload:{flatChgList:L}})},"entry:items:set:top":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{top:x}}=R;const b=A(),T=(0,Lt.jI)(b),L=(0,Lt.bt)(b),z=(0,a.eo)(b),W=(0,Ae.p$)(b);if((0,mn.tR)(b)===Jn.bl.cutting){const ee=Yd({keyList:W,pre:x,dir:"top"});u({type:"entry:widget:change",payload:{flatChgList:ee}})}else{const ee=yp({keyList:W,pageKey:z,pre:x,dir:"top"});u({type:"entry:widget:change",payload:{flatChgList:ee}}),(T||L)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:left":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{left:x}}=R;const b=A(),T=(0,Lt.jI)(b),L=(0,Lt.bt)(b),z=(0,a.eo)(b),W=(0,Ae.p$)(b);if((0,mn.tR)(b)===Jn.bl.cutting){const ee=Yd({keyList:W,pre:x,dir:"left"});u({type:"entry:widget:change",payload:{flatChgList:ee}})}else{const ee=yp({keyList:W,pageKey:z,pre:x,dir:"left"});u({type:"entry:widget:change",payload:{flatChgList:ee}}),(T||L)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:width":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{width:x,refVar:b}}=R;const T=A(),L=(0,Ae.p$)(T),z=(0,Lt.jI)(T),W=(0,Lt.bt)(T);if((0,mn.tR)(T)===Jn.bl.cutting){const ee=(0,qp.kP)({keyList:L,pre:x,type:"width"});u({type:"entry:widget:change",payload:{flatChgList:ee}})}else{const ee=L.filter(Ie=>sdkStore.getHotItem(Ie).hotAttr.type!==P.x.WMind),pe={};ee.forEach(Ie=>(0,rc.Ie)(Ie,pe));const ye=[];ee.forEach(Ie=>{if((0,He.OO)(Ie))return;const Ue=sdkStore.getHotItem(Ie),{isLockAspect:Re}=Ue.hotAttr,ze=sdkStore.getHotBound(Ie),st=Re?(0,H1.K)(ze.w,ze.h):!1,xt=(0,qp.Wj)(ze,x-ze.w,0,"w",st);(0,rc.$O)(ye,Ie,xt,pe,st,void 0,{width:b})}),ye.forEach(Ie=>{var Ue;let{key:Re,hotAttr:ze}=Ie;const{refVars:st,isLockAspect:xt,w:Nt,h:$t}=sdkStore.getHotItem(Re).hotAttr;if(ee.includes(Re)){let An=b;(st==null?void 0:st.w)!==An&&(ze.refVars={...st,w:An})}else st!=null&&st.w&&(ze.refVars={...st,w:void 0});xt&&ze.h!==$t&&st!=null&&st.h&&(ze.refVars={...ze.refVars||st,h:void 0}),xt&&(Ue=ze.refVars)!=null&&Ue.w&&ze.refVars.h&&(ze.isLockAspect=!1)}),u({type:"entry:widget:change",payload:{flatChgList:ye}}),(z||W)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:height":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{height:x,refVar:b}}=R;const T=A(),L=(0,Ae.p$)(T),z=(0,Lt.jI)(T),W=(0,Lt.bt)(T);if((0,mn.tR)(T)===Jn.bl.cutting){const ee=(0,qp.kP)({keyList:L,pre:x,type:"height"});u({type:"entry:widget:change",payload:{flatChgList:ee}})}else{const ee=L.filter(Ie=>sdkStore.getHotItem(Ie).hotAttr.type!==P.x.WMind),pe={};ee.forEach(Ie=>(0,rc.Ie)(Ie,pe));const ye=[];ee.forEach(Ie=>{if((0,He.OO)(Ie))return;const{isLockAspect:Ue}=sdkStore.getHotItem(Ie).hotAttr,Re=sdkStore.getHotBound(Ie),ze=Ue?(0,H1.K)(Re.w,Re.h):!1,st=(0,qp.Wj)(Re,0,x-Re.h,"h",ze);(0,rc.$O)(ye,Ie,st,pe,ze,void 0,{height:b})}),ye.forEach(Ie=>{var Ue;let{key:Re,hotAttr:ze}=Ie;const{refVars:st,isLockAspect:xt,w:Nt,h:$t}=sdkStore.getHotItem(Re).hotAttr;if(ee.includes(Re)){let An=b;(st==null?void 0:st.h)!==An&&(ze.refVars={...st,h:An})}else st!=null&&st.h&&(ze.refVars={...st,h:void 0});xt&&ze.w!==Nt&&st!=null&&st.w&&(ze.refVars={...ze.refVars||st,w:void 0}),xt&&(Ue=ze.refVars)!=null&&Ue.w&&ze.refVars.h&&(ze.isLockAspect=!1)}),u({type:"entry:widget:change",payload:{flatChgList:ye}}),(z||W)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:move:by:offset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{offsetX:b,offsetY:T}=x,L=A(),z=(0,a.eo)(L),W=(0,Ae.p$)(L),{flatChgList:X,keyList:ee}=Z0({keyList:W,pageKey:z,offsetX:b,offsetY:T});u({type:"entry:widget:change",payload:{flatChgList:X}}),(ee==null?void 0:ee.length)>1&&u({type:"entry:select:smartly"})},"entry:items:forward":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={attr:"zIndex"}}=R;const{attr:b}=x,T=A(),L=(0,Ae.p$)(T),z=(0,Lt.lY)(T);if(!((0,Gt.sQ)(L)&&!z))return;const X=(0,yi.GF)(L),ee=rd(X,1,b);ee.length&&u({type:"entry:widget:change",payload:{flatChgList:ee,shouldReBuildTree:!0}})},"entry:items:canvasList:forward":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={attr:"zIndex"}}=R;const{attr:b}=x,T=A(),L=(0,Ae.p$)(T),z=(0,yi.cm)(L),W=rd(z,1,b);W.length&&u({type:"entry:widget:change",payload:{flatChgList:W,shouldBreakCanvasUICache:!0}})},"entry:items:backward":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={attr:"zIndex"}}=R;const{attr:b}=x,T=A(),L=(0,Ae.p$)(T),z=(0,Lt.lY)(T);if(!((0,Gt.sQ)(L)&&!z))return;const X=(0,yi.GF)(L),ee=rd(X,-1,b);ee.length&&u({type:"entry:widget:change",payload:{flatChgList:ee,shouldReBuildTree:!0}})},"entry:items:canvasList:backward":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x={attr:"zIndex"}}=R;const{attr:b}=x,T=A(),L=(0,Ae.p$)(T),z=(0,yi.cm)(L),W=rd(z,-1,b);W.length&&u({type:"entry:widget:change",payload:{flatChgList:W,shouldBreakCanvasUICache:!0}})},"entry:items:send:front":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u),b=(0,Lt.lY)(u);if(!((0,Gt.sQ)(x)&&!b))return;const L=(0,yi.GF)(x),z=(0,su.j)(L,1);z.length&&A({type:"entry:widget:change",payload:{flatChgList:z,shouldReBuildTree:!0}})},"entry:items:send:back":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.p$)(u),b=(0,Lt.lY)(u);if(!((0,Gt.sQ)(x)&&!b))return;const L=(0,yi.GF)(x),z=(0,su.j)(L,-1);z.length&&A({type:"entry:widget:change",payload:{flatChgList:z,shouldReBuildTree:!0}})},"entry:set:editing:cid":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{item:x}}=R;const b=A(),T=x.cid||x.key,L=(0,To.c)(b);L&&L.key!==T&&(0,po.ay)(L,"remove");const z=x.hotAttr||x;if((0,ro.gM)(z.type)){const W=(0,Fl.xH)({baseItem:z});u(o.GO.updateTextEditorDefaultAttrs(W))}u({type:"set:editing:cid",payload:{cid:T}}),(0,po.ay)(x,"add")},"entry:set:line:length":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{value:b,refVar:T}}=R;const L=u(),z=(0,Ae.p$)(L);if(!(z!=null&&z.length))return;const W=sdkStore.getHotItem(z[0]);if(!W)return;const{key:X,hotAttr:ee}=W,pe=(0,lu.wh)(ee,b);((A=ee.refVars)==null?void 0:A.w)!==T&&(pe.refVars={...ee.refVars,w:T}),x({type:"entry:widget:change",payload:{flatChgList:[{key:X,hotAttr:pe}]}})},"entry:set:rotate":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{value:x,refVar:b}}=R;const T=A(),L=(0,Ae.nE)(T),z=(0,mn.P2)(T),W=(0,mn.KF)(T);if(x=(0,V1.wj)(x),W==="img"&&L.length===1&&L[0].key===z&&L[0].hotAttr.type===P.x.WImage)u({type:"entry:widget:change",payload:{flatChgList:[{key:L[0].key,hotAttr:{image:{...L[0].hotAttr.image,imageRectR:x}}}]}});else{const X=[];L.forEach(pe=>{(0,rc.bp)(X,pe.key,x,L.length===1)});const ee=L.map(pe=>pe.key);X.forEach(pe=>{var ye;let{key:Ie,hotAttr:Ue}=pe;const Re=((ye=sdkStore.getHotItem(Ie))==null?void 0:ye.hotAttr).refVars;if(ee.includes(Ie)){let ze=b;b&&Ue.r!==x&&(ze=void 0),ze!==(Re==null?void 0:Re.r)&&(Ue.refVars={...Re,r:ze})}else Re!=null&&Re.r&&(Ue.refVars={...Re,r:void 0})}),X.length&&u({type:"entry:widget:change",payload:{flatChgList:X}})}},"entry:shortcut:undoable:items:set:attr:border":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const T=u(),z=(0,Ae.p$)(T).map(sdkStore.getHotItem),W=(A=z[0])==null||(A=A.hotAttr)==null?void 0:A.type;if(W)if(W===P.x.WSlider){const X=z[0].hotAttr.slider.thumbBorder,ee={...X,bdrIsVisible:!X.bdrIsVisible},pe=z.filter(ye=>ye.hotAttr.type===P.x.WSlider).map(ye=>({key:ye.key,hotAttr:{slider:{...ye.hotAttr.slider,thumbBorder:ee}}}));x({type:"entry:widget:change",payload:{flatChgList:pe}})}else{const X=z.find(Ie=>Ie.hotAttr.border);if(X===void 0)return;const ee=X.hotAttr.border,pe={...ee,bdrIsVisible:!ee.bdrIsVisible},ye=z.map(Ie=>({key:Ie.key,hotAttr:{border:pe}}));x({type:"entry:widget:change",payload:{flatChgList:ye}}),x({type:"entry:auto:show:hide:item"})}}};var $p=i(62280),M2=i(5379);const K0=10,k2=B=>{const R=new Set(B);let A=!1;const u=B.reduce((x,b)=>{const T=(0,He.OO)(b);if(T||sdkStore.isTrashed(b))return T&&(A=!0),x;const z=sdkStore.findUpHotItemList(b).slice(1).map(X=>X.key).filter(X=>R.has(X));if(z!=null&&z.length)return A=!0,x;const W=sdkStore.getHotItem(b);if(!W||W.hotAttr.isLock)return x;if(W.hotAttr.type==="wElbow"){const{refFromKey:X,refToKey:ee}=W.hotAttr,{isRefFromExist:pe,isRefToExist:ye}=(0,M2.v)(b,X,ee);if(pe&&ye){const Ie=sdkStore.findUpHotItemList(X).map(Re=>Re.key).filter(Re=>R.has(Re)),Ue=sdkStore.findUpHotItemList(ee).map(Re=>Re.key).filter(Re=>R.has(Re));if(!(Ie.length&&Ue.length))return x}}return x.concat([W])},[]);return{shouldReBuildTree:A,draggableItems:u}},E2=(B,R,A)=>{let{currPageKey:u,getState:x,draggableItems:b,getScale:T,getOffset:L,getViewportRect:z,getWidgetStore:W,dispatch:X}=R,{onDragStart:ee,onDragEnd:pe}=A,ye=!1;const Ie=(0,Pt.mG)(B,{scale:T(),offset:L(),viewportRect:z()}),Ue=b.map(An=>An.key),Re={};for(const An of b)(0,rc.Ie)(An.key,Re);const ze=[];(0,u0.vC)(Ue,An=>{var zn;const lo=((zn=sdkStore.getHotItem(An))==null?void 0:zn.hotAttr.type)===P.x.WTear;return lo&&((0,rc.Ie)(An,Re),ze.push(An)),lo}),Re["@@START-DND"]={hb:(0,$p.T3)(sdkStore.getHotKeyListAABB(Ue)),lbR:0,wasoX:0,wasoY:0,sup:"",zIndex:0},X({type:"update:drag-event:state",payload:{isActive:!0,draggableItems:b,boundTearKeyList:ze,worldPosPreDrag:Ie,worldPosLastDrag:Ie,eventOnDrag:B,preDragSnapshot:Re}}),b.length===1&&b[0].hotAttr.type===P.x.WSticky&&X({type:"ST:update",payload:{fakePointToDir:b[0].hotAttr.pointToDir}});const st=An=>{if(ye=ye||Math.abs(An.clientX-B.clientX)>1||Math.abs(An.clientY-B.clientY)>1,!ye)return;if(b.length===0){X({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}});return}const zn=(0,Pt.mG)(An,{scale:T(),offset:L(),viewportRect:z()});ee();const lo=b.filter(Qn=>Qn.hotAttr.type===P.x.WTear&&!ze.includes(Qn.key)).map(Qn=>Qn.key);if(lo!=null&&lo.length){const Qn=(0,Md.Cu)(zn,lo[0],An);X({type:"ST:update",payload:{fakeBindingInfo:{...Qn,stickyKey:lo.join(",")}}})}X({type:"update:drag-event:state",payload:{eventOnDrag:An,worldPosOnDrag:zn,isToLockDragAxis:An.shiftKey}})},xt=W().getTreeSize(),Nt=xt>400?dn()(st,Math.min(Math.ceil(xt/400)*8,80)):st,$t=()=>{var An;document.removeEventListener("mousemove",Nt),document.removeEventListener("mouseup",$t),(An=Nt.flush)==null||An.call(Nt),pe(ye);const zn=x(),lo=z(zn),Qn=(0,a.ER)(zn),Wo={scale:T(zn)/100,size:{w:lo.width,h:lo.height},offset:Qn},qo=(0,f.jN)();if(qo&&qo.isInProgress){const ua=b.some(wa=>{const{x:Ja,y:La}=sdkStore.getHotItem(wa.key).hotAttr;return!wa.key.startsWith("imgtip")&&Ja>=0&&Ja<=Wo.size.w&&La>=0&&La<=Wo.size.h}),Ea=(0,a.eo)(zn);if(ua){const wa=sdkStore.findAllTypeUnder(Ea,P.x.WImage).filter(Ja=>{let{key:La}=Ja;return La.startsWith("imgtip")});sdkStore.deleteHotItemBatch(wa.map(Ja=>{let{key:La}=Ja;return La})),X({type:"entry:update:novice:guide:and:task",payload:{guideType:m.c.GUIDE_NOVICE_2309_STEP_2,taskType:m.c.GUIDE_NOVICE_2309_TASK_2}})}}};document.addEventListener("mousemove",Nt),document.addEventListener("mouseup",$t)},I2=B=>{var R;let{getState:A,dispatch:u,subscribe:x,draggableItems:b}=B,T,L,z;const W=A(),X=(0,lt.PI)(W),ee=(0,lt.k3)(W),pe=(R=(0,a.Ur)(W))==null?void 0:R.cid;if(!pe)return;let ye=[];const Ie=function($t,An){An===void 0&&(An=0),ye.push(setTimeout($t,An))},Ue=()=>{ye.forEach(clearTimeout),ye=[]};let Re=[];const ze=$t=>{const An=$t.some((zn,lo)=>zn!==Re[lo]);return Re=$t,An},xt=x(()=>{var $t,An;const zn=A(),lo=(0,a.$S)(zn),Qn=(0,a.ER)(zn),Sn=zn.screencontainer.dragEventState,Wo=(0,a.X_)(zn);if(ze([lo,Qn,Sn,Wo])&&Sn.isActive&&Sn.worldPosOnDrag&&((($t=T)==null?void 0:$t.x)!==Sn.worldPosOnDrag.x||((An=T)==null?void 0:An.y)!==Sn.worldPosOnDrag.y)){const{draggableItems:ua,worldPosPreDrag:Ea,worldPosOnDrag:wa,isToLockDragAxis:Ja,preDragSnapshot:La,boundTearKeyList:Na}=Sn;if(ua.length===0)return;L=typeof L=="function"?L:!ua.every(Qs=>Qs.hotAttr.type===P.x.WTear)&&(X||ee)?(0,m1.ay)({movableItems:ua,createSnapper:X?m0.WY:m1.xb,viewport:{scale:Wo/100}}):null,T=wa;let gr=wa.x-Ea.x>>0,Pi=wa.y-Ea.y>>0;Ja?z?(z==="y"&&(gr=0),z==="x"&&(Pi=0)):Math.abs(gr)>Math.abs(Pi)?(Pi=0,z="x"):(gr=0,z="y"):z=null;const _r=[],{hb:ci}=La["@@START-DND"],Ws=ci.w*.5,kr=ci.h*.5,Fi={left:Math.round(ci.x-Ws+gr),right:Math.round(ci.x+Ws+gr),top:Math.round(ci.y-kr+Pi),bottom:Math.round(ci.y+kr+Pi),width:Math.round(ci.w),height:Math.round(ci.h)},xi=Array.from(new Set(ua.reduce((Qs,r0)=>{let{key:sd}=r0;const Od=sdkStore.getHotItem(sd);return!Od||Od.hotAttr.type==="wSticky"||Od.hotAttr.type==="wTear"?Qs:Qs.concat([Od.sup])},[]))),Ai=L?L({_rect:Fi,sup:xi.length===1?xi[0]:pe}):{left:Fi.left,top:Fi.top},{left:Rr,top:Cs,alignment:Hr,sameSize:Wr,distributed:Ti}=Ai;gr=Rr-(ci.x-Ws),Pi=Cs-(ci.y-kr);for(const Qs of ua)if(La[Qs.key]){const{hb:r0,wasoX:sd,wasoY:Od}=La[Qs.key],{x:a2,y:oc}=sdkStore.toAttrXY({x:r0.x+gr,y:r0.y+Pi},Qs.key),Rd=_r.findIndex(Bd=>Bd.key===Qs.key);Rd!==-1?_r[Rd]={..._r[Rd],hotAttr:{..._r[Rd].hotAttr,x:a2+sd,y:oc+Od}}:_r.push({key:Qs.key,hotAttr:{x:a2+sd,y:oc+Od}})}for(const Qs of Na)if(La[Qs]){const{hb:r0,wasoX:sd,wasoY:Od}=La[Qs],{x:a2,y:oc}=sdkStore.toAttrXY({x:r0.x+gr,y:r0.y+Pi},Qs);_r.push({key:Qs,hotAttr:{x:a2+sd,y:oc+Od}})}u({type:"entry:widget:change",payload:{flatChgList:_r,shouldBreakLayerUICache:!1}}),Ue(),typeof L=="function"&&(u({type:"set:alignment",payload:{alignment:Hr}}),u({type:"set:sameSize",payload:{sameSize:Wr}}),u({type:"set:distributed",payload:{distributed:Ti}}));const jl={scale:Wo/100,size:{w:lo.width,h:lo.height},offset:Qn},[bs,Vs,Dl,ji]=(0,ma.WO)(jl,lo.left),Or=[],Ms=10/(Wo/100);if(wa.x<bs+Ms?Or[0]=K0:wa.x>Dl-Ms&&(Or[0]=-K0),wa.y<Vs+Ms?Or[1]=K0:wa.y>ji-Ms&&(Or[1]=-K0),Or.length){const[Qs=0,r0=0]=Or;Ie(()=>u({type:"entry:set:canvas:offset",payload:{offset:{x:Qn.x+Qs,y:Qn.y+r0}}}))}}});return()=>{xt(),Ue()}};var x1=i(32286),e2=i(28681);const T2={"entry:event:item:drag-start":(B,R)=>{var A,u;let{getState:x,dispatch:b}=B,{payload:{event:T}}=R,L=x();if((0,Lt.jx)(L)===o.qi.OnlyView)return;let X=(0,Ae.p$)(L);const ee=(0,Lt.Pm)(L),pe=(0,Ae.nE)(L),ye=(0,a.PL)(L),Ie=(0,Bn.Zn)(L),Ue=(0,a.lh)(L),Re=(0,a.Ur)(L),ze=(0,jt.WH)(L),st=pe.every(qo=>{let{hotAttr:ua}=qo;return(ua==null?void 0:ua.type)===P.x.WTear}),{isKeySDown:xt}=(0,a.ZS)(L);if(xt||Ie&&Ie===Ue||((A=pe[0])==null?void 0:A.key)===ee||((u=pe[0])==null?void 0:u.key)===ze)return;const Nt=k2(X);let{draggableItems:$t}=Nt;if($t.length===0)return;sdkStore.combineMergeMark("dnd-item");const zn=(0,D.kV)(e2._v)||"alt";if(zn.includes("alt")&&T.altKey||zn.includes("ctrl")&&T.ctrlKey){if(!(0,ls.x7)($t)){sdkStore.combineMerge("dnd-item");return}const qo=$t.map(wa=>wa.key),ua=sdkStore.dupWithinPage(qo),Ea=$t[0].sup;if((0,re.Nt)({selections:ua,keyRndSup:Ea,commonKeyRndSup:Ea,option:{isOptionDup:!0}}),(0,ma.F6)(ua),(0,ma.gs)(Re.cid,ua),$t=ua.map(sdkStore.getHotItem),b({type:"entry:select:items",payload:{cids:ua}}),(0,x1.L)("alt+\u9F20\u6807\u62D6\u62FD"),$t&&$t.length===1){var lo;const wa=(lo=$t[0])==null?void 0:lo.hotAttr;(wa==null?void 0:wa.type)===P.x.Canvas?(0,ud.mB)({page:wa}):(0,Nd.lF)(wa,ye)}}L=x(),X=(0,Ae.p$)(L),$t=k2(X).draggableItems;const Sn=new Map;$t.forEach(qo=>(0,fc.s_)(qo.key,Sn));const Wo=I2({getState:x,dispatch:b,subscribe:MB.__store__.subscribe,draggableItems:$t});b({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),E2(T,{getState:x,draggableItems:$t,currPageKey:Re.cid,getScale:()=>(0,a.X_)(x()),getOffset:()=>(0,a.ER)(x()),getViewportRect:()=>(0,a.$S)(x()),getWidgetStore:()=>(0,k.UV)(x()),dispatch:b},{onDragStart:()=>{st&&b({type:"ST:update",payload:{isDraggingWTear:!0}}),$t.length===1&&$t[0].hotAttr.type===P.x.WSticky&&b({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:$t[0].key}})},onDragEnd:qo=>{if(qo){const ua=[],Ea=(0,fc.G9)(Re.cid,$t.map(gr=>gr.key)),wa=(0,fc.wr)();let Ja=!1;for(const{key:gr}of $t.sort((0,fc.tU)())){const Pi=(0,fc.Rv)(ua,gr,Sn,Ea,wa);Ja=Ja||Pi!==null}b({type:"entry:widget:change",payload:{flatChgList:ua,shouldBreakLayerUICache:Ja}});const La=T.button===0;if(b({type:"ST:update",payload:{isLeftDown:La}}),$t.length===1){const{hotAttr:gr,key:Pi}=$t[0];gr.type===P.x.WSticky&&b({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:Pi}})}const Na=$t.filter(gr=>gr.hotAttr.type===P.x.WTear).map(gr=>gr.key);b({type:"entry:ST:tears:bind",payload:{tearKeys:Na}}),b({type:"ST:clear:fake-related"}),b({type:"entry:finish:resize:canvas:within:basket"}),b({type:"entry:layout:basket-canvas"}),b({type:"entry:select:smartly"})}b({type:"entry:reset:dragging:state"}),Wo==null||Wo(),b({type:"entry:refresh:link-list"}),sdkStore.combineMerge("dnd-item")}})},"entry:reset:dragging:state":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,lt.PI)(u);A({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),x&&(A({type:"set:alignment",payload:{alignment:{}}}),A({type:"set:sameSize",payload:{sameSize:{}}}),A({type:"set:distributed",payload:{distributed:{}}})),A({type:"reset:drag-event:state"})}};var C0=i(95549),b1=i(41818),C1=i(62587);const xp={"entry:enter:key":B=>{var R;let{getState:A,dispatch:u}=B;const x=A(),b=(0,a.rZ)(x),T=Ce.y.query.getMissFontHiKeySet(x);b&&(u({type:"colorpanel:set:attr",payload:{attr:void 0}}),u({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})),u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),u({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}});const L=(0,Ae.nE)(x),z=L.length===1&&L[0],W=(0,Bt.u7)(x);if(z&&!(z!=null&&z.hotAttr.isLock)&&z.hotAttr.type!==P.x.WSwimlane&&!/_status_bar$/.test(z==null||(R=z.hotAttr)==null?void 0:R.type)&&!W){var X;const ee=(0,Et.ji)(z);(0,mt.a$)(z==null||(X=z.hotAttr)==null?void 0:X.type)&&!ee&&(T.has(z.key)?u({type:Ce.y.entryKey["font:miss:modal:open"]}):u({type:"entry:set:editing:cid",payload:{item:z}}))}},"entry:arrow:key":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,Ae.nE)(b),L=(0,a.Ur)(b),z=(0,So.uE)(b),W=(0,ea.kA)(b);if(z||(0,Gt.td)((0,Ae.p$)(b))||W)return;const{direction:X,rate:ee}=x,[pe,ye]=[ee*10,ee],[Ie,Ue,Re,ze]=X==="x"?[pe,0,ye,0]:[0,pe,0,ye],st=T.length===1&&T[0].key===L.cid,xt=T.length===0;u(st||xt?{type:"entry:move:canvas",payload:{dx:Ie,dy:Ue}}:{type:"entry:items:move:by:offset",payload:{offsetX:Re,offsetY:ze}})},"entry:escape:key":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,mn.P2)(u),b=(0,on.sI)(u),T=(0,Zt.Lc)(u),L=(0,a.YY)(u);document.querySelector(".--mb--color-picker")?(A({type:"colorpanel:set:attr",payload:{attr:void 0}}),A({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})):A(x?{type:"entry:image-view:exit:edit"}:b?{type:"entry:comment:create:esc"}:T?{type:"entry:ST:STMode:disable"}:L?{type:"update:screenContainer:state",payload:{createTemplatesData:null}}:{type:"entry:clear:selection"})},"entry:i:key":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{color:b}=x,T=A(),L=(0,Ae.nE)(T).map(Ts.Dx).flat(),z=(0,a.th)(T),W=(0,a.Hi)(T),X=(0,ea.Ai)(T),ee=(0,ea.I5)(T),pe=(0,ea.md)(T);let ye=!1;const Ie=(0,C1.dT)(b);if(X.isOpen){u({type:"modal:update:state",payload:{libEditColorModal:{...X,color:Ie}}});return}if(ee.isOpen){const xt=W&&z?W:"fill",Nt=W&&z?z:"solidColor";u({type:"modal:update:state",payload:{libEditAppearModal:{...ee,attrs:{...ee.attrs,[xt]:{...ee.attrs[xt],[Nt]:Ie==null?void 0:Ie.solidColor}}}}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[ee==null?void 0:ee.currentKey],key:Nt,supAttr:xt,type:"color",updateType:"appearRef"}});return}if(pe.isOpen){u({type:"modal:update:state",payload:{libEditTextModal:{...pe,attrs:{...pe.attrs,textColor:b1.Q.hex2rgbaStr(b,1)}}}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[pe==null?void 0:pe.currentKey],key:"textColor",supAttr:"richTextV1",type:"color",updateType:"textRef"}});return}if(L.length===0){MB.notice({text:"\u8BF7\u9009\u62E9\u66F4\u6539\u989C\u8272\u7684\u5BF9\u8C61"});return}if(z){const xt=new w1;xt.generatePathMap(L,z);let Nt;if(z==="fill")Nt=L.map(An=>{const zn=xt.deepUpdate(An.hotAttr,z,(0,C1.dT)(b));return{key:An.key,hotAttr:zn}});else if(z==="bgcolor"){u({type:"entry:update:root-project:bgcolor",payload:{bgcolor:b1.Q.hex2rgbaStr(b,1)}});return}else Nt=L.map(An=>{const zn=xt.deepUpdate(An.hotAttr,z,(0,C1.zX)(b));return{key:An.key,hotAttr:zn}});u({type:"entry:widget:change",payload:{flatChgList:Nt}});const $t=Nt.map(An=>An.key);u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:$t,key:z,supAttr:W,type:"color",updateType:"widget"}});return}const Ue=L.filter(xt=>{let{hotAttr:{type:Nt}}=xt;return Nt===P.x.WRichText});if(Ue.length>0){ye=!0,u({type:"entry:set:specify:text:attr",payload:{widgets:Ue,attr:"textColor",value:b1.Q.hex2rgbaStr(b,1)}});const xt=Ue.map(Nt=>Nt.key);u({type:"settings:update:currentTextRefStyle",payload:null}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:xt,key:"textColor",supAttr:"richTextV1",type:"color",updateType:"widget"}})}const Re=L.filter(xt=>{let{hotAttr:{type:Nt}}=xt;return[P.x.Canvas,P.x.WRect,P.x.WOval,P.x.WImage,P.x.WButton,P.x.WButtonSolid,P.x.WPlaceholder,P.x.WMTextInput,P.x.WMTextArea,P.x.WMSelect,P.x.WPolygon,P.x.WStar,P.x.WTriangleB,P.x.WDropMenu,P.x.WTriangleTL,P.x.WIcon].includes(Nt)});if(Re.length>0){ye=!0;const xt=Re.filter(Nt=>{let{hotAttr:{type:$t}}=Nt;return[...P.Q.BACKGROUND_TO_FILLS,...P.Q.TC_TO_FILLS].includes($t)});if(xt.length>0){const Nt=xt.map(An=>An.key),$t=xt.map(An=>({key:An.key,hotAttr:{fill:(0,C1.dT)(b),refStyles:{...An.hotAttr.refStyles,appear:void 0}}}));u({type:"entry:widget:change",payload:{flatChgList:$t}}),u({type:"settings:update:currentAppearRefStyle",payload:null}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:Nt,key:"solidColor",supAttr:"fill",type:"color",updateType:"widget"}})}}const ze=L.filter(xt=>{let{hotAttr:{type:Nt}}=xt;return Nt===P.x.WLine});if(ze.length>0){ye=!0;const xt=ze.map($t=>$t.key),Nt=ze.map($t=>({key:$t.key,hotAttr:{border:{...$t.hotAttr.border,bdrColor:(0,C1.zX)(b)}}}));u({type:"entry:widget:change",payload:{flatChgList:Nt}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:xt,key:"bdrColor",supAttr:"border",type:"color",updateType:"widget"}})}const st=L.filter(xt=>{let{hotAttr:{type:Nt}}=xt;return Nt===P.x.WArrow});if(st.length>0){ye=!0;const xt=st.map($t=>$t.key),Nt=st.map($t=>({key:$t.key,hotAttr:{arrow:{...$t.hotAttr.arrow,arrowStroke:{...$t.hotAttr.arrow.arrowStroke,bdrColor:(0,C1.zX)(b)}}}}));u({type:"entry:widget:change",payload:{flatChgList:Nt}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:xt,key:"bdrColor",supAttr:"arrow-arrowStroke",type:"color",updateType:"widget"}})}ye||MB.notice({text:"\u9009\u4E2D\u7684\u5BF9\u8C61\u4E0D\u652F\u6301\u5FEB\u901F\u66F4\u6539\u989C\u8272",type:"warning"})},"entry:keyC":B=>{let{getState:R,dispatch:A}=B;const u=R(),{isEditingCombo:x}=(0,At.r)(u);x||(A({type:"entry:comment:toggle"}),A({type:"entry:ST:STMode:disable"}),A({type:"elbow:update",payload:{isInElbowMode:!1}}))}};class w1{constructor(){(0,C0.A)(this,"pathMap",new Map),(0,C0.A)(this,"keyPath",""),(0,C0.A)(this,"findObjectPathByTargetKey",(R,A,u)=>{Object.entries(R).forEach(x=>{let[b,T]=x;b===A?this.keyPath=u+":"+b:typeof R[b]=="object"&&R[b]!==null&&this.findObjectPathByTargetKey(R[b],A,(u===""?"":u+":")+b)})}),(0,C0.A)(this,"detectWhichPath",(R,A)=>{let u="";const x=this.pathMap.get(A);return x==null||x.forEach(b=>{const T=b.split(":");let L=R[T[0]];if(L!==void 0){for(let z=1;z<T.length&&(L=L[T[z]],L!==void 0);z++);L!==void 0&&(u=b)}}),u}),(0,C0.A)(this,"generatePathMap",(R,A)=>{R.forEach(u=>{u.hotAttr[A]!==void 0?this.keyPath=A:this.findObjectPathByTargetKey(u.hotAttr,A,"");const x=this.pathMap.get(A);x===void 0?this.pathMap.set(A,[this.keyPath]):this.pathMap.set(A,[...x,this.keyPath])})}),(0,C0.A)(this,"deepUpdate",(R,A,u)=>{const b=this.detectWhichPath(R,A).split(":"),T=(L,z)=>b[z]===A?{...L,[A]:u}:{...L,[b[z]]:{...T(L[b[z]],z+1)}};return T(R,0)})}}const G1={"entry:select:link":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{link:x}}=R;u({type:"entry:select:items",payload:{cids:[x.data.triggerItemKey]}})},"entry:set:option:item":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.nE)(u)[0];A({type:"update:link:selectOptionLinkItem",payload:{selectOptionLinkItem:x}})}};var id=i(70756),w0=i(35083),o0=i(52822);const Z1=B=>{const R=B.map(b=>b.mindNodePosition.x),A=Math.min(...R),u=B.map(b=>b.mindNodePosition.x+b.mindNodeSize.w);return Math.max(...u)-A},du=B=>{const R=B.map(b=>b.mindNodePosition.y),A=Math.min(...R),u=B.map(b=>b.mindNodePosition.y+b.mindNodeSize.h);return Math.max(...u)-A},Dd=(B,R)=>{const A=[],u=R(B);return u&&A.push(u),B.widget.expand&&B.children.forEach(x=>{A.push(...Dd(x,R))}),A},Y0=B=>{const R=[];return Dd(B,A=>{R.push(A)}),R},K1=B=>{var R;const A=(R=B.children[0])==null?void 0:R.children.find(T=>T.widget.isRoot),u=Y0(A),x=Z1(u),b=du(u);return{w:x+DISTANCE_PADDING_H*2,h:b+DISTANCE_PADDING_V*2}},_2=B=>{let R=B;const A=[];if(!B)return A;for(;R&&(A.push(R),R.sub.length&&R.hotAttr.expand);)R=sdkStore.getHotItem(R.sub[0]);return A},P2=(B,R)=>B.hotAttr.order-R.hotAttr.order,t2=(B,R)=>{if(!B)return{x:0,y:0};const{hotAttr:{border:{bdrIsVisible:A,bdrWidth:u}}}=R.sdkStore.getHotItem(R.mindKey),x=A?-u:0,T=R.getAllMindNodes().map(st=>R.getNodePosition(st.key).x),L=Math.min(...T),z=DISTANCE_PADDING_H-(L-x),W=B.sub.map(st=>R.sdkStore.getHotItem(st)),X=W.filter(st=>{let{sup:xt,hotAttr:Nt}=st;return Nt.placement==="left"&&R.getSubTreeSize(xt).h>R.getNodeSize(xt).h}).sort(P2)[0],ee=W.filter(st=>{let{sup:xt,hotAttr:Nt}=st;return Nt.placement==="right"&&R.getSubTreeSize(xt).h>R.getNodeSize(xt).h}).sort(P2)[0],pe=_2(X),ye=_2(ee),Ie=pe.map(st=>R.getNodePosition(st.key).y),Ue=ye.map(st=>R.getNodePosition(st.key).y),Re=!Ie.length&&!Ue.length?0:Math.min(...Ie,...Ue),ze=DISTANCE_PADDING_V-(Re-x);return{x:z,y:ze}},S1=(B,R)=>{const{x:A,y:u}=R,{x,y:b,r:T,w:L,h:z}=sdkStore.getHotBound(B);return(0,w0.of)((0,w0.bj)(),(0,w0.CR)(x,b,L*.5,z*.5,(0,V1.EQ)(T)),(0,w0.Q6)(A,u,0))},bp=(B,R)=>{const{key:A,sub:u,hotAttr:x}=B,{w:b,h:T}=R.getNodeSize(A),{h:L}=R.getSubTreeSize(A),{x:z,y:W}=R.getNodePosition(A),X=(0,jn.F1)();return!u.length||!x.expand||L<=T?(X[0]=z-(x.placement==="left"?48:0),X[1]=W,X[2]=X[0]+b+48,X[3]=X[1]+T):(X[0]=z-(x.placement==="left"?48:0),X[1]=W-(L-T)/2,X[2]=X[0]+b+48,X[3]=X[1]+L),X},S0=(B,R,A,u)=>{const x=(0,id.Si)(z=>A.sdkStore.getRenderableSubHotItems(z));let b,T;const L=bp(R,A);return(0,jn.N0)(L,B)?{closestMindNode:R,relPos:(B.x<(L[0]+L[2])/2?"left":"right")+"-"+(B.y<(L[1]+L[3])/2?"top":"bottom")}:(x(R,z=>{const W=bp(z,A);if((0,jn.N0)(W,B))return b=z,T=(B.x<(W[0]+W[2])/2?"left":"right")+"-"+(B.y<(W[1]+W[3])/2?"top":"bottom"),id.Hs;if(u(z.key)||!z.hotAttr.expand)return id.NU}),{closestMindNode:b,relPos:T})},n2=(B,R,A)=>{const u=B.hotAttr.placement||"right",x=A.sdkStore.getRenderableSubHotItems(B);if(B.hotAttr.isRoot)if(R==="right-top"||R==="right-bottom"){const b=x.filter(T=>T.hotAttr.placement==="right");return b.length===0?[B,"right",!0]:R==="right-top"?[b[0],"above",!1]:[b.slice(-1)[0],"below",!1]}else{const b=x.filter(T=>T.hotAttr.placement==="left");return b.length===0?[B,"left",!0]:R==="left-top"?[b[0],"above",!1]:[b.slice(-1)[0],"below",!1]}else return u==="right"?R==="left-top"||R==="left-bottom"?[B,R==="left-top"?"above":"below",!1]:x.length===0||!B.hotAttr.expand?[B,"right",!0]:R==="right-top"?[x[0],"above",!1]:[x.slice(-1)[0],"below",!1]:R==="right-top"||R==="right-bottom"?[B,R==="right-top"?"above":"below",!1]:x.length===0||!B.hotAttr.expand?[B,"left",!0]:R==="left-top"?[x[0],"above",!1]:[x.slice(-1)[0],"below",!1]},Nc=(B,R,A)=>{let{scale:u,offset:x,viewportRect:b}=R,{onDragStart:T,onDragging:L,onDragEnd:z}=A;const W=u/100;let X=!1;const ee=B.clientX,pe=B.clientY;let ye=!1;const Ie=Re=>{ye=ye||Math.abs(Re.clientX-ee)>1||Math.abs(Re.clientY-pe)>1,ye&&(!X&&T(),X=!0,L((0,Pt.mG)(Re,{scale:u,offset:x,viewportRect:b})))},Ue=()=>{document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ue),ye&&z()};document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ue)};var Xd=i(28068),o2=i(9521),A1=i(39679);const Cp={"entry:mind:update:mind-size":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),{keyMindToUpdateSize:T="",resizeOrigin:L="ctr",isCombineChange:z=!0}=x!=null?x:{},W=T||(0,jt.WH)(b),X=(0,k.UV)(b);if(!W)return;const ee=X.mindTrees.get(W);ee&&ee.updateMind()},"entry:mind:mindNode:by:rect":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{rect:{top:b,left:T,width:L,height:z},originalSelection:W}=x,X=A(),ee=(0,jt.WH)(X),pe=(0,k.UV)(X),ye=(0,lt.vZ)(X);if(!ee)return;const Ie=[T,b,T+L,b+z],Ue=pe.mindTrees.get(ee),Re=Ue.getAllMindNodes(),[ze,st]=sdkStore.getHotKeyAABB(ee),xt=Ue.getMindPosition()||{x:0,y:0},$t=Re.filter(zn=>!zn.hotAttr.expand).reduce((zn,lo)=>{let{key:Qn,sub:Sn}=lo;return zn.push(...Sn),zn},[]);let An=Re.filter(zn=>{if($t.includes(zn.key))return!1;const{x:lo,y:Qn}=Ue.getNodePosition(zn.key),{w:Sn,h:Wo}=Ue.getNodeSize(zn.key),qo=ze+lo+xt.x,ua=st+Qn+xt.y,Ea=[qo,ua,qo+Sn,ua+Wo];return ye?(0,jn.Pn)(Ie,Ea):(0,jn.cj)(Ie,Ea)}).map(zn=>zn.key);An=[...An,...W].filter(zn=>!An.includes(zn)||!W.includes(zn)),u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:An}})},"entry:mind:add:node-mind":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{node:x,type:b,defaultText:T,attr:L={}}}=R;if(!(0,ls._c)({type:P.x.WMindNode}))return;const z=A(),W=(0,jt.ul)(z);if(W.length>1)return;const X=(0,k.UV)(z),ee=(0,jt.WH)(z),pe=X.mindTrees.get(ee),ye=x||X.getHotItem(W[0]),Ie=pe.addNode(ye,b,L,T);Ie&&u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[Ie]}})},"entry:mind:del:selected:node-mind":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,jt.UN)(u),b=(0,jt.g0)(u);if(x||b){sdkStore.combineMergeMark("delete-mindNode-param"),x?(A({type:"entry:widget:change",payload:{flatChgList:[{key:x,hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),A({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),A({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[x]}})):(A({type:"entry:widget:change",payload:{flatChgList:[{key:b,hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),A({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),A({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[b]}})),A({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-param");return}const T=(0,k.UV)(u),L=(0,jt.WH)(u),z=T.mindTrees.get(L),W=(0,jt.fo)(u).filter(ye=>!ye.hotAttr.isRoot),X=M0(W);let ee=W[W.length-1],pe;if(ee){let ye=sdkStore.getHotItem(ee.sup);for(;ye&&X.find(ze=>ze.key===ye.key);)ee=ye,ye=sdkStore.getHotItem(ye.sup);const Ie=z==null?void 0:z.isRootSub(ee.key);let Ue=T.getRenderableSubHotItems(ee.sup);Ie&&(Ue=Ue.filter(ze=>ze.hotAttr.placement===ee.hotAttr.placement));let Re=Ue.findIndex(ze=>ze.key===ee.key);for(;Re-->=0&&!pe;)pe=Ue[Re],pe&&X.find(ze=>ze.key===pe.key)&&(pe=null);if(!pe)for(pe=sdkStore.getHotItem(ee.sup);!pe.hotAttr.isRoot&&X.find(ze=>ze.key===pe.key);)pe=sdkStore.getHotItem(pe.sup)}z.deleteNodes(W),pe&&(sdkStore.isTrashed(pe.key)||A({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[pe.key]}}))},"entry:mind:insert:asset":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{asset:x}}=R;const b=A(),T=(0,jt.fo)(b);if(T.length===1){const L=(0,ne.t$)(x),z=T[0].key,W=[{key:z,hotAttr:{image:L}}];sdkStore.combineMergeMark("insert-mindNode-image"),u({type:"entry:widget:change",payload:{flatChgList:W,shouldReBuildTree:!0,isCombineChange:!1}}),u({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("insert-mindNode-image"),u({type:"mind:update:state",payload:{selectedMindNodeImageKey:z}})}},"entry:mind:copy:node:properties":async(B,R)=>{let{getState:A}=B,{payload:u}=R;const x=A(),b=(0,jt.fo)(x);if(b.length===1){const T=(0,$2.g)(x);await(0,z0.vz)({...T,selectedItems:b}),await(0,Xl.$H)({hasNotice:!1})&&(0,ai.P8)()}},"entry:mind:cut:node":B=>{let{dispatch:R}=B;R({type:"entry:mind:copy:selected:node-mind"}),R({type:"entry:mind:del:selected:node-mind"})},"entry:mind:paste:node:properties":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,jt.fo)(b),L=await(0,ai._d)({isShowPrompt:!0});if(L&&T!=null&&T.length){sdkStore.combineMergeMark("paste-propertities");const z=T.map(W=>{let{key:X,hotAttr:ee}=W;const pe=new Set,ye=(0,z0.MP)(L,ee,pe,!1);return{key:X,hotAttr:ye}});u({type:"entry:widget:change",payload:{flatChgList:z,shouldReBuildTree:!0}}),u({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("paste-propertities")}},"entry:mind:start:drag:mind-node":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{e:b,mindNodeKey:T}=x,L=A(),z=(0,a.X_)(L),W=(0,a.$S)(L),X=(0,a.ER)(L),ee=(0,jt.ul)(L),pe=(0,k.UV)(L),ye=(0,jt.WH)(L),Ie=(0,jt.UN)(L),Ue=(0,jt.g0)(L),Re=(0,jt.aJ)(L),ze=pe.mindTrees.get(ye),xt=ze.getAllMindNodes().find(Qn=>Qn.hotAttr.isRoot),Nt=ze.getMindPosition();let $t=[...ee];if(ee.includes(T)||($t=[T]),$t.length===0||$t.find(Qn=>sdkStore.getHotItem(Qn).hotAttr.isRoot)||Ie||Ue||!Re)return;let An,zn,lo=null;Nc(b,{scale:z,viewportRect:W,offset:X},{onDragStart:()=>{ee.includes(T)||u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[T]}}),u({type:"mind:update:draggingState",payload:{isDragging:!0}}),u({type:"end:range:select"})},onDragging:Qn=>{const Sn=S1(ye,Nt),Wo=(0,w0.fJ)(Sn,Qn.x,Qn.y);let{closestMindNode:qo,relPos:ua}=S0(Wo,xt,ze,Ea=>$t.includes(Ea))||{};if(qo?zn=Wo:zn&&Math.abs(zn.x-Wo.x)<100&&Math.abs(zn.y-Wo.y)<100&&(qo=An,ua=lo),qo!==An||ua!==lo){if(An=qo,lo=ua,!qo){u({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}if($t.includes(qo.key)&&(qo.hotAttr.placement==="right"?ua.startsWith("right"):ua.startsWith("left"))){u({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}const[Ea,wa,Ja]=n2(qo,ua,ze);u({type:"mind:update:draggingState",payload:{mindNodeToAttach:Ea,attachPosition:wa,attachToSelf:Ja}})}},onDragEnd:()=>{const Qn=A(),{mindNodeToAttach:Sn,attachPosition:Wo}=(0,jt.H_)(Qn);if(Sn){const qo=$t.map(Ea=>pe.getHotItem(Ea));let ua=[...$t];switch(qo.forEach(Ea=>{let{key:wa,sup:Ja}=Ea,La=pe.getHotItem(Ja);do{var Na;if(ua.includes(Ja)){ua=ua.filter(gr=>wa!==gr);break}La=La&&pe.getHotItem(La.sup)}while(((Na=La)==null?void 0:Na.hotAttr.type)==="wMindNode")}),sdkStore.combineMergeMark("drag-and-attach"),Wo){case"left":{const Ea=sdkStore.getSubHotItemList(Sn.key).reduce((wa,Ja)=>Math.max(Ja.hotAttr.order,wa),0);ua.forEach((wa,Ja)=>{sdkStore.moveHotItem(wa,Sn.key),sdkStore.updateHotAttrMerge(wa,{placement:"left",order:Ja+Ea+1}),sdkStore.walkHotItemSubtree(wa,La=>{sdkStore.updateHotAttrKV(La.key,"placement","left")})});break}case"right":{const Ea=sdkStore.getSubHotItemList(Sn.key).reduce((wa,Ja)=>Math.max(Ja.hotAttr.order,wa),0);ua.forEach((wa,Ja)=>{sdkStore.moveHotItem(wa,Sn.key),sdkStore.updateHotAttrMerge(wa,{placement:"right",order:Ja+Ea+1}),sdkStore.walkHotItemSubtree(wa,La=>{sdkStore.updateHotAttrKV(La.key,"placement","right")})});break}case"above":{const Ea=sdkStore.getSubHotItemList(Sn.sup).filter(La=>La.hotAttr.placement===Sn.hotAttr.placement).sort((La,Na)=>La.hotAttr.order-Na.hotAttr.order).map(La=>La.key),wa=Sn.hotAttr.placement,Ja=Ea.findIndex(La=>La===Sn.key);Ea.slice(Ja,Ea.length).forEach(La=>{const Na=sdkStore.getHotItem(La).hotAttr.order||0;sdkStore.updateHotAttrKV(La,"order",Na+ua.length)}),ua.forEach((La,Na)=>{sdkStore.moveHotItem(La,Sn.sup),sdkStore.updateHotAttrMerge(La,{order:Sn.hotAttr.order+Na,placement:wa}),sdkStore.walkHotItemSubtree(La,gr=>{sdkStore.updateHotAttrKV(gr.key,"placement",wa)})});break}case"below":{const Ea=sdkStore.getSubHotItemList(Sn.sup).filter(La=>La.hotAttr.placement===Sn.hotAttr.placement).sort((La,Na)=>La.hotAttr.order-Na.hotAttr.order).map(La=>La.key),wa=Sn.hotAttr.placement,Ja=Ea.findIndex(La=>La===Sn.key);Ea.slice(Ja+1,Ea.length).forEach(La=>{const Na=sdkStore.getHotItem(La).hotAttr.order||0;sdkStore.updateHotAttrKV(La,"order",Na+ua.length)}),ua.forEach((La,Na)=>{sdkStore.moveHotItem(La,Sn.sup),sdkStore.updateHotAttrMerge(La,{order:Sn.hotAttr.order+Na+1,placement:wa}),sdkStore.walkHotItemSubtree(La,gr=>{sdkStore.updateHotAttrKV(gr.key,"placement",wa)})});break}}u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:ua}}),u({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("drag-and-attach")}u({type:"mind:update:draggingState",payload:{isDragging:!1,mindNodeToAttach:null,attachPosition:null,attachToSelf:null}})}})},"entry:mind:copy:selected:node-mind":async B=>{var R;let{getState:A,dispatch:u}=B;const x=A(),b=(0,jt.ul)(x),T=(0,jt.WH)(x),L=(0,k.UV)(x),z=b.map(ee=>L.getHotItem(ee));let W=[...b];z.forEach(ee=>{let{key:pe,sup:ye}=ee,Ie=L.getHotItem(ye);do{var Ue;if(W.includes(ye)){W=W.filter(Re=>pe!==Re);break}Ie=Ie&&L.getHotItem(Ie.sup)}while(((Ue=Ie)==null?void 0:Ue.hotAttr.type)==="wMindNode")});const X=sdkStore.saveSubtree(W);await(0,ai.NO)({data:X,commonKeyRndSup:(R=sdkStore.getHotItem(T))==null?void 0:R.sup}),u({type:"entry:mind:copy:node:properties"})},"entry:mind:enter:text:editing":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{isSelectAll:x=!1}}=R;const b=A(),T=(0,jt.ul)(b);if(!T.length)return;const L=T[T.length-1];u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[L]}}),u({type:"mind:update:isShallowEditText",payload:!1}),u({type:"mind:update:isEditingSelectAll",payload:x}),u({type:"mind:update:isEditingMoveToEnd",payload:!x})},"entry:mind:update:textV1":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,jt.ux)(u),b=(0,a.Mj)(u),T=(0,k.UV)(u),L=(0,jt.WH)(u),z=T.mindTrees.get(L);if(!b||!x||!z)return;const{key:W,hotAttr:X}=x,ee=(0,Xd.dM)(b.getCurrentContent()),pe=(0,fa.qn)(ee),ye=(0,jt.ul)(u);if((0,A1.eI)(pe,X.textV1))return;const Ie=(0,o2.zs)([x],"textV1",pe);sdkStore.combineMergeMark("edit-mind-node"),A({type:"entry:widget:change",payload:{flatChgList:Ie}}),z.updateMind(),sdkStore.combineMerge("edit-mind-node"),ye.length===1&&ye[0]===W||A({type:"mind:update:state",payload:{selectedMindNodeKeys:[W]}}),A({type:"mind:update:isShallowEditText",payload:!1}),A({type:"mind:update:isEditingSelectAll",payload:!1}),A({type:"mind:update:isEditingMoveToEnd",payload:!1})},"entry:mind:arrow:key":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{direction:b}=x,T=A(),L=(0,jt.fo)(T),z=(0,jt.UN)(T),W=(0,jt.g0)(T),X=(0,k.UV)(T),ee=(0,jt.WH)(T),pe=X.mindTrees.get(ee);if(L.length===0||z||W)return;const ye=L[L.length-1],{key:Ie,hotAttr:Ue,sup:Re}=ye,ze=pe.isRootSub(Ie);let st="";switch(b){case e0.M8.LEFT:st=Ue.isRoot||Ue.placement==="left"?Qd(ye,"left",pe):Re;break;case e0.M8.RIGHT:st=Ue.placement==="left"?Re:Qd(ye,"right",pe);break;case e0.M8.UP:if(Ue.isRoot)break;if(ze){var xt;const zn=a0(ye,X);st=(xt=zn[zn.findIndex(lo=>lo.key===Ie)-1])==null?void 0:xt.key}else{var Nt;const zn=wp(ye,X);st=(Nt=zn[zn.findIndex(lo=>lo.key===Ie)-1])==null?void 0:Nt.key}break;case e0.M8.DOWN:if(Ue.isRoot)break;if(ze){var $t;const zn=a0(ye,X);st=($t=zn[zn.findIndex(lo=>lo.key===Ie)+1])==null?void 0:$t.key}else{var An;const zn=wp(ye,X);st=(An=zn[zn.findIndex(lo=>lo.key===Ie)+1])==null?void 0:An.key}break;default:st="";break}st&&(u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[st]}}),u({type:"entry:mind:move:in:viewport",payload:{newKey:st}}))},"entry:mind:move:in:viewport":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{newKey:x=""}}=R;const b=A(),T=(0,jt.WH)(b);if(!x&&!T)return;const z=(0,k.UV)(b).mindTrees.get(T),[W,X]=sdkStore.getHotAABB(T),ee=z.getMindPosition(),pe=z.getNodePosition(x),ye=z.getNodeSize(x),Ie=[W,X,W+pe.x+ee.x+ye.w,X+pe.y+ee.y+ye.h],Ue=(0,a.X_)(b),Re=(0,a.$S)(b),ze=(0,a.ER)(b),st={scale:Ue/100,size:{w:Re.width,h:Re.height},offset:ze};if(!(0,ma._W)(st,Re.left,Ie)){const Nt=(0,ma.WO)(st,Re.left);let $t=0,An=0;Nt[0]>Ie[0]&&($t=Ie[0]-Nt[0]),Nt[2]<Ie[2]&&($t=Ie[2]-Nt[2]),Nt[1]>Ie[1]&&(An=Ie[1]-Nt[1]),Nt[3]<Ie[3]&&(An=Ie[3]-Nt[3]),u({type:"design:set:canvas:offset",payload:{offset:{x:ze.x-$t,y:ze.y-An}}})}}},A0=B=>{const R=[...B.parent.children],A=R.findIndex(u=>u.key===B.key)+1;R.splice(A,0,null),R.forEach((u,x)=>{if(u&&(u.sup!==B.sup||u.widget.order!==x+1)){const b=sdkStore.getHotItem(u.key),T={...b,hotAttr:{...b.hotAttr,order:x+1}};sdkStore.updateHotItem(T)}})},Qd=function(B,R,A){R===void 0&&(R="left");const{key:u,hotAttr:x}=B;if(!x.expand)return"";const T=A.sdkStore.getRenderableSubHotItems(B).filter(pe=>pe.hotAttr.placement===R);if(T.length===0)return"";const L=T[0],z=A.getNodePosition(u),W=A.getNodePosition(L.key);let X=Math.abs(W.y-z.y),ee=T[0].key;for(let pe=1;pe<T.length;pe++){const ye=A.getNodePosition(T[pe].key);Math.abs(ye.y-z.y)<X&&(X=Math.abs(ye.y-z.y),ee=T[pe].key)}return ee},wp=(B,R)=>{const A=R.getHotItem(B.sup).sup;return R.getRenderableSubHotItems(A).map(x=>R.getRenderableSubHotItems(x).filter(b=>b.hotAttr.placement===B.hotAttr.placement)).flat()},a0=(B,R)=>{const A=B.hotAttr.placement;return R.getRenderableSubHotItems(B.sup).filter(x=>x.hotAttr.placement===A)},M0=B=>{const R=[];return B.forEach(A=>{R.push(A),Array.prototype.push.apply(R,M0(sdkStore.getSubHotItemList(A.key)))}),R},ke={"entry:navigationMenu:migrate":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{key:b}=x;if(!sdkStore.getHotItem(b))return;let L=!1;if((0,He.OO)(b)){var z;const ee=(0,He.QL)(b)[0],pe=(z=sdkStore.getHotItem(ee))==null?void 0:z.hotAttr;pe&&(L=pe.type==="wBasket"&&pe.basket==="bDanli")}if(L)return;u({type:"entry:widget:change",payload:{flatChgList:[{key:b,hotAttr:{"!version":2}}]}})},"entry:set:navigationMenu:canExpandOneMenu":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.nE)(u);if(!(x.length>0))return;const T=[];x.forEach(L=>{let{key:z,hotAttr:W}=L;if(W.optionData.findIndex(ee=>ee.data.designExpanded)!==-1){const ee=W.optionData.map((pe,ye)=>ye?{...pe,data:{...pe.data,designExpanded:!1}}:{...pe,data:{...pe.data,designExpanded:!0}});T.push({key:z,hotAttr:{optionData:ee}})}}),A({type:"entry:widget:change",payload:{flatChgList:T}})},"entry:set:navigationMenu:canExpandOneMenu2":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Ae.nE)(u);if(!(x.length>0))return;const T=[];x.forEach(L=>{let{key:z,hotAttr:W}=L,X=!1;const{optionDataDesignUnExpanded:ee=[]}=W;let pe=[...ee];W.optionData.forEach((ye,Ie)=>{pe.findIndex(Ue=>Ue===ye.data.cid)===-1&&Ie&&(pe.push(ye.data.cid),X=!0),ee.includes(ye.data.cid)&&!Ie&&(pe=pe.filter(Ue=>Ue!==ye.data.cid),X=!0)}),X&&T.push({key:z,hotAttr:{optionDataDesignUnExpanded:pe}})}),A({type:"entry:widget:change",payload:{flatChgList:T}})}};var Ve=i(69815),Ye=i(10549);const wt={"quit:rich:text:editing":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{isWidgetFirstEdit:b,isNeedMigrateLinkItalic:T,onlySave:L}=x||{};MB.f.isPastingRichText=!1;const z=A(),W=(0,To.c)(z),X=(0,jt.ux)(z),ee=(0,a.Mj)(z),pe=W||X;if(!pe||(L||W&&(0,po.ay)(W,"remove"),!ee))return;let ye={...pe.hotAttr};const Ie=ee.getCurrentContent(),Ue=(0,Xd.dM)(Ie),Re=(0,fa.qn)(Ue),ze=(0,Ye.SD)(Re.blocks);b&&!ze&&(0,Qi.p4)(ye.type,ye.richTextV1),T&&(ye["!liVersion"]=3);let st;if(ye.type===P.x.WSwimlane){const{tl:{x:lo,y:Qn}}=so.X.query.getSelectedCellsInfo(z),{cells:Sn,table:Wo}=ye.database;if(st=Wo[Qn][lo],st){const{richTextV1:qo,textV1:ua}=Sn[st];ye.textV1=ua,ye.richTextV1=qo}}const xt=(0,o2.zs)([{...pe,hotAttr:ye}],"textV1",Re);if(st&&xt[0]){const{cells:lo}=xt[0].hotAttr.database;lo[st].textV1=xt[0].hotAttr.textV1}const Nt=(0,fd.m5)(pe.hotAttr),$t=Ie.getPlainText();Nt&&$t!==(0,fd.U_)(Nt)&&xt.forEach(lo=>{var Qn;lo.hotAttr.refVars={...lo.hotAttr.refVars,textV1:(0,fd.JK)((Qn=lo.hotAttr.refVars)==null?void 0:Qn.textV1,"text")}});const zn=xt.map(lo=>({...lo,notTriggerAttachedUpdate:L}));u({type:"entry:widget:change",payload:{flatChgList:zn,shouldBreakLayerUICache:!0}}),!L&&(u({type:"set:editing:cid",payload:{cid:""}}),u({type:"clear:rich:text:editor:state"}),u({type:"flow:update:state",payload:{isDeepEditing:!1}}),u(o.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),X&&u({type:"entry:mind:update:mind-size"}))},"entry:remove:selected:items:from-rich-text":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{hotItems:x}}=R;const b=x[0];if(b){const{key:L,hotAttr:{type:z,textV1:W}}=b;if(z===P.x.WRichText){var T;const X=(0,Ve.YZ)(W),ee=document.createElement("div");ee.innerHTML=X,((T=ee.innerText)==null?void 0:T.length)===0&&sdkStore.deleteHotItem(L)}}}};var Ua=i(64972),za=i(40486);let Qa=null;const rr=1e3,Ji={"entry:select:all":B=>{let{getState:R,dispatch:A}=B;const u=R();let x=[];const b=(0,Ae.p$)(u);let T=!1,L=!1,z=!1,W=!1;const X=[...new Set(b.map(ee=>{let pe=!1,ye=ee;const{hotAttr:Ie}=sdkStore.getHotItem(ee),{type:Ue,refWCKey:Re,isLock:ze}=Ie;ze&&(W=!0),(Ue==="wSticky"||Ue==="wTear")&&(Re?sdkStore.getHotItem(Re).hotAttr.type==="rResCanvas"&&(pe=!0):T=!0,ye=Re);let st="";if(ye){const{hotAttr:xt}=sdkStore.getHotItem(ye);xt.type==="rResCanvas"&&!pe&&(L=!0),st=sdkStore.locUpColdCanvasKey(ye)}return st||(T=!0),st}))];if(z=X.length===1,!L&&z&&!T){const ee=sdkStore.getHotItem(X[0]).sub.filter(Ie=>{const Ue=sdkStore.getHotItem(Ie);return Ue.hotAttr.type==="wWrap"&&Ue.sub.length===0?!1:W||Ue.hotAttr.isLock!==!0}),pe=(0,a.Ur)(u).cid,ye=(0,Md.GG)(pe,X[0]).map(Ie=>Ie.key);x=ee.concat(ye)}else x=(0,Lt.Bk)(u).map(pe=>pe.key).filter(pe=>W||sdkStore.getHotItem(pe).hotAttr.isLock!==!0);A({type:"entry:update:selection:select:items",payload:{cids:x}}),A({type:"entry:select:smartly",payload:{shouldAlign:!0}})},"entry:select:items":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{cids:b,hasClearVectorEditing:T=!0,fromUndoRedo:L}}=R;const z=u(),W=(0,a.KW)(z),X=(0,Lt.Pm)(z);if(b=b.filter(Ue=>!(sdkStore.isTrashed(Ue)||qc(Ue))),!(b.length===1&&b[0]===X)&&X&&x({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),W&&(clearTimeout(Qa),x({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}})),b.length===1){var ee;const Ue=sdkStore.getHotItem(b[0]);if(Ue&&((ee=Ue.hotAttr)==null?void 0:ee.type)===P.x.WTable){const Re=(0,dp.nh)(z);(Ue==null?void 0:Ue.key)!==(Re==null?void 0:Re.key)&&x({type:"table:update:info",payload:{selectTableCellInfo:null}})}}const pe=Array.from(new Set(b));x({type:"entry:update:selection:select:items",payload:{cids:pe}}),x({type:"entry:update:select:items:links",payload:{fromUndoRedo:L}});const ye=(0,Ae.nE)(u());if(ye.length===1&&((A=ye[0])==null||(A=A.hotAttr)==null?void 0:A.type)===P.x.Canvas){var Ie;x({type:"entry:memory:last:screenAndCanvas",payload:{canvasKey:(Ie=ye[0])==null?void 0:Ie.key}})}T&&x({type:"entry:vector:exit:edit"}),setTimeout(()=>{var Ue,Re,ze;x({type:"entry:select:smartly",payload:{shouldAlign:!0}}),(0,hd.K)(I18N)[m.c.GUIDE_ALL_REPLACE_PAGE].howToShow(pe),(0,hd.K)(I18N)[m.c.GUIDE_BASKET_MUBAN_USE].howToShow(pe),(0,hd.K)(I18N)[m.c.GUIDE_SELECT_STICKY].howToShow(pe),(Ue=MB)==null||(Ue=Ue.commonGuideHelper)==null||Ue.tryToShowGuide(m.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE),!(ENV.IS_MO||MB.f.isSelecting||pe.length<2||(Re=MB)!=null&&(Re=Re.commonGuideHelper)!=null&&Re.checkGuideHasShown(m.c.GUIDE_COPY_AS_PNG))&&((ze=MB)==null||(ze=ze.commonGuideHelper)==null||ze.tryToShowGuide(m.c.GUIDE_COPY_AS_PNG))})},"entry:update:select:items:links":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();if((0,k.FG)(b))return;const L=(0,Ql.yk)(b),z=(0,Ae.nE)(b),W=(0,Ql.vy)(b),X=(0,dp.zX)(b),ee=z.length===1?z[0].hotAttr.interactions.reduce((Ie,Ue)=>Ue.subKey?Ie:Ie.concat([Ue.key]),[]):"",pe=Yt()(W,ee);if(X){var ye;if(x!=null&&x.fromUndoRedo&&((ye=z[0])==null||(ye=ye.hotAttr)==null?void 0:ye.type)==="wTable"&&(0,za.PP)(X)===1){const{interactions:Ie,cells:Ue,table:Re}=sdkStore.getHotItem(z[0].key).hotAttr,{selectionLeftTopInfo:{x:ze,y:st},selectionRightBottomInfo:{x:xt,y:Nt}}=X;(0,za.In)({x1:ze,x2:xt,y1:st,y2:Nt},($t,An)=>{const{oldCellItas:zn}=(0,Sl.iL)({cells:Ue,table:Re,interactions:Ie,j:An,i:$t});u({type:"links:active:link",payload:{cid:zn.map(lo=>lo.key)}})})}}else pe||u({type:"links:active:link",payload:{cid:ee}});L&&!ee.includes(L.key)&&u({type:"update:link:selectLinkItem",payload:null}),x!=null&&x.fromUndoRedo||document.getElementById("interaction-panel-float")||u(cn.R7.command.clearAllCommand({}))},"entry:select:items:by:rect":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{rect:{top:b,left:T,width:L,height:z},originalSelection:W}=x,X=A(),ee=(0,k.UV)(X),pe=(0,no.$7)(X),ye=(0,a.X_)(X);if((0,Lt.lY)(X))return;const Ue=(0,lt.vZ)(X),Re={x:T,y:b,w:L,h:z};let ze=(0,Zd.I)(ee,Re,!Ue,pe,ye);ze=[...ze,...W].filter(st=>!ze.includes(st)||!W.includes(st)),u({type:"entry:select:items",payload:{cids:ze}})},"entry:auto:show:hide:item":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=!(0,a.KW)(u),b=!(0,ht.$)(u).isHidden;x&&A({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),b&&A(Ua.UU.update({isHidden:!0})),clearTimeout(Qa),Qa=setTimeout(()=>{A({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),A(Ua.UU.update({isHidden:!1}))},rr)},"entry:expend:groupOrCanvasOrBasket":(B,R)=>{let{dispatch:A}=B,{payload:{cids:u}}=R;const x=new Set;u.map(b=>{sdkStore.findUpHotItemList(b).filter(T=>{var L;return[P.x.Canvas,P.x.WWrap,P.x.WBasket].includes(T==null||(L=T.hotAttr)==null?void 0:L.type)&&T.key!==b}).forEach(T=>x.add(T.key))}),x.size!==0&&A({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[...Array.from(x)]}})},"entry:isShowSticky:toggle":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const T=u();if(!((A=b==null?void 0:b.isShowSticky)!=null?A:!(0,no.$7)(T))){const W=(0,Ae.nE)(T).filter(X=>{var ee;return((ee=X.hotAttr)==null?void 0:ee.type)!==P.x.WSticky}).map(X=>X.key);x({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:W}})}x({type:"toolbar:isShowSticky:toggle",payload:b})}},Jr=(B,R,A,u)=>{var x,b;const{hotAttr:T}=sdkStore.getHotItem(B),L=(x=T[R])==null?void 0:x[A],z=T.refVars,W={[R]:{...T[R],[A]:u}};return L!==u&&z!=null&&(b=z[R])!=null&&b[A]&&(z[R][A]=void 0,W.refVars=z),{key:B,hotAttr:W}},qi={"entry:set:slider:attr":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{attr:b,value:T}=x,L=A(),W=(0,Ae.p$)(L).map(X=>Jr(X,"slider",b,T));u({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:digital-stepper:attr:set":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{attr:b,value:T}=x,L=A(),W=(0,Ae.p$)(L).map(X=>Jr(X,"digitalStepper",b,T));u({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:switch:attr:set":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const{attr:b,value:T}=x,L=A(),W=(0,Ae.p$)(L).map(X=>Jr(X,"switch",b,T));u({type:"entry:widget:change",payload:{flatChgList:W}})}};var jr=i(27879);const zi={"entry:smart-selection:updating:gap":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,ht.$)(b),L=T.selectedWidgetInfo,{rowGap:z,colGap:W}=x;let X,ee;if(z!==void 0){const{colGap:pe,rowStates:ye}=T;({result:X,changes:ee}=(0,jr.KC)(L,pe,z,ye))}else if(W!==void 0){const{rowGap:pe,rowStates:ye}=T;({result:X,changes:ee}=(0,jr.KC)(L,W,pe,ye))}u(Ua.UU.update({...x,rowStates:X})),u({type:"entry:widget:change",payload:{flatChgList:ee}})},"entry:select:smartly":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const T=u(),L=(0,jr.$3)((0,Ae.nE)(T));if(L.length<=1){x(Ua.UU.reset());return}const z=(0,jr.cb)(L),W=(0,jr.kW)(z,L),X=(A=b==null?void 0:b.shouldAlign)!=null?A:!1;let ee=[],pe=[],ye=jr.jH,Ie=jr.jH;W&&({result:pe,changes:ee,lineSpace:ye,itemMargin:Ie}=(0,jr.Im)(z,null,null,L.length===2?!1:X)),x(Ua.UU.update({isActive:ee.length===0&&W,selectedWidgetInfo:z,rowGap:ye,colGap:Ie,rowStates:pe,changes:ee,enableMarginChange:W}))},"entry:smart-selection:arrange:widgets":B=>{let{getState:R,dispatch:A}=B;const u=R(),{changes:x}=(0,ht.$)(u);A({type:"entry:widget:change",payload:{flatChgList:x}});const b=(0,jr.$3)((0,Ae.nE)(u)),T=(0,jr.cb)(b),{result:L}=(0,jr.Im)(T,null,null);A(Ua.UU.update({rowStates:L,isActive:!0,changes:[]}))}},Ki=B=>{let{pageKey:R,stickyAABB:A,fakePointToDir:u,isOnlyCanvas:x=!1,isCtrlDown:b,stickyPointVersion:T}=B;const[L,z,W]=A;let X={x:L-35,y:z+9};u==="r"&&(X={x:W+35,y:z+9});const ee=(0,C.Dg)(X,1,R,{isSkipST:!0,isOnlyCanvas:x});if(ee.hitKey){(0,C.h9)(ee,[],b?"ctrl":"default",!0);const{x:pe,y:ye,w:Ie,h:Ue}=sdkStore.getHotBound(ee.hitKey);return T===2?{point:[X.x-pe+Ie/2,X.y-ye+Ue/2],bindingKey:ee.hitKey}:{point:[X.x-pe,X.y-ye],bindingKey:ee.hitKey}}},Zr=B=>{let{stickyAABB:R,canvasKey:A}=B;const u=sdkStore.getHotAABB(A),x=[u[0]-40,u[1],u[2]+40,u[3]];return(0,jn.cj)(x,R)},Si={"entry:ST:STMode:disable":B=>{let{dispatch:R}=B;R({type:"ST:update",payload:{STMode:!1}}),R({type:"entry:observe:dom:right-panel-width"})},"entry:ST:STMode:enable":B=>{let{dispatch:R}=B;R(o.GO.select([])),R({type:"ST:update",payload:{STMode:!0}}),R({type:"entry:observe:dom:right-panel-width"})},"entry:ST:tear:bind":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{tearKey:x,afterCreate:b=!1}}=R;const T=A(),L=(0,a.eo)(T),z=(0,Ae.p$)(T),{isCtrlDown:W}=(0,a.ZS)(T);if(b){const X=sdkStore.getHotItem(x),ee=(0,C.Dg)(X.hotAttr,1,L,{isSkipST:!0});ee&&((0,C.h9)(ee,z,W?"ctrl":"default",!0),u({type:"entry:widget:change",payload:{flatChgList:[{key:x,hotAttr:{refWCKey:ee.hitKey}}]}}))}else{const X=(0,Zt.LS)(T);u({type:"entry:widget:change",payload:{flatChgList:[{key:x,hotAttr:{refWCKey:X.bindingKey}}]}})}},"entry:ST:tears:bind":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{tearKeys:b}}=R;const T=u(),L=(0,Zt.LS)(T);if(!L||!(L!=null&&L.stickyKey))return;const z=L==null||(A=L.stickyKey)==null?void 0:A.split(",");if(!(z!=null&&z.length))return;const W=[];b.forEach(X=>{z.includes(X)&&W.push({key:X,hotAttr:{refWCKey:L.bindingKey}})}),x({type:"entry:widget:change",payload:{flatChgList:W}})},"entry:ST:drag:sticky:point:fake:bind":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{stickyKey:b,stickyAABBP:T,callback:L}}=R;const z=u(),W=(0,a.eo)(z),X=(0,Zt.sL)(z),ee=(0,Zt.SF)(z),pe=sdkStore.getHotItem(b),{isCtrlDown:ye}=(0,a.ZS)(z);if(pe!=null&&pe.hotAttr.refWCKey||pe!=null&&(A=pe.hotAttr.sticky.point)!=null&&A.length)return;const Ie=T||sdkStore.getHotAABB(b);let Ue,Re,ze=ee,st;if(ee)if(Zr({stickyAABB:Ie,canvasKey:ee}))Re=(0,C.di)({stickyAABB:Ie,canvasKey:ee,preDir:X}),st=Ki({pageKey:W,stickyAABB:Ie,fakePointToDir:Re,isCtrlDown:ye});else{const xt=(0,C.VI)(Ie,W);Re=xt?(0,C.di)({stickyAABB:Ie,canvasKey:xt,preDir:X}):X,ze=xt||"",st=Ki({pageKey:W,stickyAABB:Ie,fakePointToDir:Re,isCtrlDown:ye})}else{const xt=(0,C.VI)(Ie,W);ze=xt||"",Re=xt?(0,C.di)({stickyAABB:Ie,canvasKey:xt,preDir:X}):X,st=Ki({pageKey:W,stickyAABB:Ie,fakePointToDir:Re,isCtrlDown:ye})}st?Ue={stickyKey:b,bindingKey:st.bindingKey,isBinded:!0}:Ue={stickyKey:b,bindingKey:"",isBinded:!1},x({type:"ST:update",payload:{fakeBindingInfo:Ue,fakePointToDir:Re,prevBindingCanvasKey:ze}}),L&&L({fakeBindingInfo:Ue,fakePointToDir:Re})},"entry:ST:drag:sticky:point:real:bind":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{stickyKey:b,stickyAABBP:T,callback:L,createSource:z}}=R;const W=u(),X=sdkStore.getHotItem(b);if(!X)return;const{isCtrlDown:ee}=(0,a.ZS)(W),{refWCKey:pe,sticky:ye,"!stickyPointVersion":Ie}=X.hotAttr;if(pe||((A=ye.point)==null?void 0:A.length)>0)return;const Ue=(0,a.eo)(W),Re=(0,Zt.sL)(W),ze=T||sdkStore.getHotAABB(b);let st,xt=!1,Nt=!1;if((z==="draw"||z==="click")&&(xt=!0,Nt=!0),Nt){const An=Ki({pageKey:Ue,stickyAABB:ze,fakePointToDir:"l",isOnlyCanvas:xt,isCtrlDown:ee,stickyPointVersion:Ie});An?st=An:st=Ki({pageKey:Ue,stickyAABB:ze,fakePointToDir:"r",isOnlyCanvas:xt,isCtrlDown:ee,stickyPointVersion:Ie})}else st=Ki({pageKey:Ue,stickyAABB:ze,fakePointToDir:Re,isOnlyCanvas:xt,isCtrlDown:ee,stickyPointVersion:Ie});x({type:"ST:clear:fake-related"});const $t=st===void 0?[{key:b,hotAttr:{pointToDir:Re}}]:[{key:b,hotAttr:{refWCKey:st.bindingKey,sticky:{point:st.point}}}];x({type:"entry:widget:change",payload:{flatChgList:$t}})}};var Ii=i(89002),_i=i(11619);const ii={"entry:sticky:bind":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{widget:b,event:T}}=R;const{key:L,hotAttr:z}=b,W=u(),X=(0,Lt.IL)(W),ee=(0,a.eo)(W),pe=(0,a.X_)(W),ye=(0,a.ER)(W),Ie=(0,a.$S)(W);let Re=(0,Zt.LS)(W).bindingKey||X;if(X!==L){if([P.x.WSticky,P.x.WTear].includes((A=sdkStore.getHotItem(X))==null||(A=A.hotAttr)==null?void 0:A.type)){const ze=(0,Pt.mG)(T,{scale:pe,offset:ye,viewportRect:Ie});Re=(0,C.Tg)(ze,ee)}if(!Re)x({type:"entry:widget:change",payload:{flatChgList:[{key:L,hotAttr:{refWCKey:""}}]}});else{const{x:ze,y:st,w:xt,h:Nt}=sdkStore.getHotBound(Re),[$t=0,An=0]=[...z.sticky.point],[zn,lo]=(0,_i.OH)({stickyPointVersion:z["!stickyPointVersion"],getV1Offset:()=>[$t-ze,An-st],getV2Offset:()=>[$t-(ze-xt/2),An-(st-Nt/2)]});x({type:"entry:widget:change",payload:{flatChgList:[{key:L,hotAttr:{refWCKey:Re,sticky:{...z.sticky,point:[zn,lo]}}}]}})}}},"entry:sticky:migrate":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x}}=R;const b=A();if((0,Lt.jx)(b)===o.qi.OnlyView||(0,He.OO)(x)&&!(0,Ii.K)(x))return;const{hotAttr:{refWCKey:L,sticky:z,"!stickyPointVersion":W}}=sdkStore.getHotItem(x);if(W===2)return;let X;if(!L||!sdkStore.getHotItem(L))X=[{key:x,hotAttr:{"!stickyPointVersion":2}}];else{const ee=sdkStore.getHotBound(L),{point:pe}=z,ye=[pe[0]+ee.w/2,pe[1]+ee.h/2];X=[{key:x,hotAttr:{"!stickyPointVersion":2,sticky:{point:ye}}}]}u({type:"entry:widget:change",payload:{flatChgList:X}})}};var $i=i(175);const Ta={"entry:set:tabs:selected:optionData":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const{index:T}=b,L=u(),z=(0,Ae.nE)(L);if(!(z.length>0))return;const X=z[0],ee=(A=X.hotAttr)==null||(A=A.optionData)==null?void 0:A.map((pe,ye)=>ye===T?{...pe,data:{...pe.data,selected:!0}}:{...pe,data:{...pe.data,selected:!1}});x({type:"entry:widget:change",payload:{flatChgList:[{key:X.key,hotAttr:{optionData:ee}}]}})}},vi={"entry:undo-stack:undo":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.jI)(u),b=(0,Ae.p$)(u),T=(0,Lt.bt)(u),L=(0,h.Hs)(u),z=(0,a.Ur)(u),W=(0,h.WU)(u),X=(0,h.p$)(u),ee=x||T;if(!sdkStore.canUndo())return;if(sdkStore.undo(),A({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),ee&&sdkStore.isTrashed(ee)){A(o.GO.editBasketHotItem(null)),A({type:"entry:clear:selection"}),A(x?o.GO.editBasketItemKey(""):o.GO.editBasketRefPage("")),L[0]&&A({type:"entry:goto:project-alike",payload:{screenMetaCid:L[0]}});return}A({type:"entry:select:items",payload:{cids:b,fromUndoRedo:!0}}),A({type:"entry:undo-stack:screen"}),A({type:"entry:refresh:link-list"}),A(cn.R7.command.undoCommand({})),ee&&(A(o.GO.editBasketHotItem(sdkStore.getHotItem(ee))),A({type:"entry:layout:basket-canvas"})),A({type:"entry:update:screen:list"}),A({type:"entry:select:smartly"}),A({type:"entry:undo-stack:active:screen"}),A({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),W&&A({type:"entry:reset:screen:selection",payload:{resetScreenCid:z.cid}}),(!(X!=null&&X.key)||X!=null&&X.key&&sdkStore.isTrashed(X.key))&&A({type:"entry:activate:root-project:home-screen"}),A({type:"entry:aiComponent:undo"}),A({type:"settings:update:varList",payload:{varList:(0,fd.pU)()}});const Ie=(0,k.UV)(u);Ie==null||Ie.refreshMindTrees(),Ie==null||Ie.refreshButtonNodes()},"entry:undo-stack:redo":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.jI)(u),b=(0,Ae.p$)(u),T=(0,Lt.bt)(u),L=x||T,z=(0,h.Hs)(u),W=(0,a.Ur)(u),X=(0,h.WU)(u),ee=(0,h.p$)(u);if(!sdkStore.canRedo())return;if(sdkStore.redo(),A({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),L&&sdkStore.isTrashed(L)){A(o.GO.editBasketHotItem(null)),A({type:"entry:clear:selection"}),A(x?o.GO.editBasketItemKey(""):o.GO.editBasketRefPage("")),z[0]&&A({type:"entry:goto:project-alike",payload:{screenMetaCid:z[0]}});return}A({type:"entry:select:items",payload:{cids:b,fromUndoRedo:!0}}),A({type:"entry:refresh:link-list"}),L&&A({type:"entry:layout:basket-canvas"}),A({type:"entry:update:screen:list"}),A({type:"entry:select:smartly"}),A({type:"entry:undo-stack:active:screen"}),X&&A({type:"entry:reset:screen:selection",payload:{resetScreenCid:W.cid}}),(!(ee!=null&&ee.key)||ee!=null&&ee.key&&sdkStore.isTrashed(ee.key))&&A({type:"entry:activate:root-project:home-screen"}),A({type:"entry:aiComponent:redo"}),A({type:"settings:update:varList",payload:{varList:(0,fd.pU)()}});const Ie=(0,k.UV)(u);Ie==null||Ie.refreshMindTrees(),Ie==null||Ie.refreshButtonNodes()},"entry:undo-stack:active:screen":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,a.Ur)(u),b=(0,a.PL)(u),T=(0,h.HA)(u);if(x)return;let L=(0,D.Yt)(M.NF+"-"+b.cid,"",D.qW.String);if(sdkStore.isTrashed(L)){var W;L=(W=(0,$r.YU)(T).filter(ee=>ee.bunch===P.x.RbPage&&!(0,$r.Mo)(ee))[0])==null?void 0:W.cid}L&&A({type:"entry:goto:project-alike",payload:{screenMetaCid:L}})}};var Yi=i(44115),hl=i(98915);const _s=()=>{MB.commonGuideHelper.checkGuideToBeShown(m.c.GUIDE_VECTOR_TASK_QUICK_CREATE)&&(MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_VECTOR_TASK_QUICK_CREATE),MB.commonGuideHelper.closeGuide(m.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),MB.commonGuideHelper.checkGuideToBeShown(m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)&&(MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),MB.commonGuideHelper.closeGuide(m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)),MB.commonGuideHelper.tryToShowGuide(m.c.GUIDE_VECTOR_TASK_ENDING_EDITING)},As={"entry:vector:clear:vectorEditor":B=>{let{dispatch:R}=B;R(o.GO.update({vectorEditor:null})),R({type:"set:quick-create-widget",payload:{widget:null}})},"entry:vector:esc":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u),b=(0,a.s3)(u);if(!x)return;const{key:T}=x,{hotAttr:{vector:L}}=sdkStore.getHotItem(T),z=()=>{A({type:"entry:select:items",payload:{cids:[T],hasClearVectorEditing:!1}}),A({type:"entry:vector:clear:vectorEditor"}),A({type:"entry:vector:transform:undo",payload:{key:T}}),A({type:"entry:publish:create:items:success",payload:{newKeys:[T]}}),A(o.GO.update({transformVector:null})),b&&Dn(b,L.closed,uo.Esc),_s()},W=()=>{A({type:"entry:delete:selected-items"}),A({type:"entry:vector:clear:vectorEditor"}),A(o.GO.update({transformVector:null})),_s()},X=(0,Rt.vm)(x,"Vector",L,z,W);if(X){const{vectorEditor:ee}=X;A(o.GO.update({vectorEditor:ee}))}},"entry:vector:exit:edit":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:b}=R;const T=u(),L=(0,Lt.lY)(T),z=(0,a.s3)(T);if(!L)return;const{key:W}=L;if(!W||sdkStore.isTrashed(W)||!((A=sdkStore.getHotItem(W))!=null&&(A=A.hotAttr)!=null&&A.vector))return;const{hotAttr:{vector:{points:X,closed:ee}}}=sdkStore.getHotItem(W);X.length===1&&x({type:"entry:delete:selected-items"}),x({type:"entry:vector:clear:vectorEditor"}),x({type:"entry:vector:transform:undo",payload:{key:W}});const pe=sdkStore.getHotItem(W);if(!pe)return null;if(x({type:"entry:widget:change",payload:{flatChgList:[{key:W,hotAttr:{...!pe.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,hl.Ro)(pe.hotAttr)}}}]}}),X.length>1&&x({type:"entry:publish:create:items:success",payload:{newKeys:[W]}}),x(o.GO.update({transformVector:null})),X.length>1&&z){const ye=(b==null?void 0:b.end)||uo.Other;Dn(z,ee,ye)}b!=null&&b.isNoGuide||_s()},"entry:vector:enter:edit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x}}=R;if(!x)return;const b=A(),T=(0,a.Ur)(b);if((0,Lt.jx)(b)===o.qi.OnlyView||!!(0,Lt.pq)(b))return;const X=sdkStore.getHotItem(x);if(!X||![...ro.LM,P.x.WLine].includes(X.hotAttr.type))return;const ee=(0,we.gu)({type:P.x.WVector,screen:T,attrs:{width:0,height:0}});if(X.hotAttr.type===P.x.WVector){const ye=X.hotAttr.vector.points;if(!(ye!=null&&ye.length))return;u(o.GO.update({vectorEditor:{key:x,selectedIndex:[ye.length-1]}}))}else{var pe;const ye=(0,Rt.K1)(X.key),Ie=ye==null||(pe=ye.vector)==null?void 0:pe.points;if(!(Ie!=null&&Ie.length))return;sdkStore.combineMergeMark("transform-vector"),sdkStore.deleteHotItem(x);const Ue={...X,hotAttr:{...ee,...X.hotAttr,type:P.x.WVector,...ye}};sdkStore.updateHotItem(Ue),sdkStore.combineMerge("transform-vector"),u(o.GO.update({vectorEditor:{key:x,selectedIndex:[Ie.length-1]}}));const{hotAttr:{vector:Re}}=sdkStore.getHotItem(x);u(o.GO.update({transformVector:{hotItem:X,vector:Re}}))}u({type:"entry:select:items",payload:{cids:[x],hasClearVectorEditing:!1}}),u({type:"set:quick-create-widget",payload:{widget:ee}}),MB.commonGuideHelper.checkGuideToBeShown(m.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(m.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(m.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(m.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)},"entry:vector:transform:undo":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{key:x}}=R;const b=A(),T=(0,Lt.AC)(b);if(!T)return;const L=sdkStore.getHotItem(x),{hotAttr:{vector:z}}=L,{hotItem:W,vector:X}=T;if(W.key===x&&Yt()(X,z)){sdkStore.deleteHotItem(x);const ee={...W,...L,hotAttr:{...W.hotAttr,...L.hotAttr,type:W.hotAttr.type,w:W.hotAttr.w,h:W.hotAttr.h,refVars:W.hotAttr.refVars}};sdkStore.updateHotItem(ee),u({type:"entry:widget:change",payload:{flatChgList:[ee],shouldReBuildTree:!0}})}},"entry:vector:open:path":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b,selectedIndex:T}=x;if(T.length===0)return;const{hotAttr:{vector:L}}=sdkStore.getHotItem(b);if(L!=null&&L.length)return;const z=[],W=L.points.length;for(let X=1;X<W;X++){const ee=(T[0]+X)%W,pe=L.points[ee];z.push(pe)}z.length===1?(A({type:"entry:delete:selected-items"}),A({type:"entry:vector:clear:vectorEditor"})):(A(o.GO.update({vectorEditor:{key:b,selectedIndex:[0]}})),A({type:"entry:vector:update:vector",payload:{vector:{points:z,closed:!1}}}))},"entry:vector:update:radius":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{radius:x,refVar:b}}=R;const T=A(),L=(0,Ae.nE)(T);if(!(L!=null&&L.length))return;const z=L.map(W=>{var X,ee;const{key:pe,hotAttr:{vector:ye,refVars:Ie,borderRadiusIsVisible:Ue}}=W;if(!(ye!=null&&(X=ye.points)!=null&&X.length))return null;const{points:Re}=ye,ze=Re.map($t=>({...$t,radius:x})),st={...ye,points:ze},xt=(Ie==null||(ee=Ie.vector)==null?void 0:ee.points)||[];if(!Ue)return{key:pe,hotAttr:{vector:st,refVars:{...Ie,vector:{...Ie==null?void 0:Ie.vector,points:Re.map(($t,An)=>({...xt==null?void 0:xt[An],radius:b}))}}}};const Nt=(0,Rt.GU)({key:pe,vector:st});return{key:pe,hotAttr:{...Nt,vector:st,refVars:{...Ie,vector:{...Ie==null?void 0:Ie.vector,points:ze.map(($t,An)=>({...xt==null?void 0:xt[An],radius:b}))}}}}}).filter(W=>!!W);u({type:"entry:widget:change",payload:{flatChgList:z,shouldReBuildTree:!0}})},"entry:vector:update:borderRadiusIsVisible":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{borderRadiusIsVisible:x}}=R;const b=A(),T=(0,Ae.nE)(b);if(!(T!=null&&T.length))return;const L=T.map(z=>{const{key:W,hotAttr:{vector:X}}=z,{points:ee}=X,pe=ee.map(st=>({...st,radius:x?st.radius:0})),ye={...X,points:pe},{x:Ie,y:Ue,w:Re,h:ze}=(0,Rt.GU)({key:W,vector:ye});return{key:W,hotAttr:{x:Ie,y:Ue,w:Re,h:ze,borderRadiusIsVisible:x}}}).filter(z=>!!z);u({type:"entry:widget:change",payload:{flatChgList:L,shouldReBuildTree:!0}})},"entry:vector:update:vector":(B,R)=>{var A;let{getState:u,dispatch:x}=B,{payload:{vector:b,refVars:T,compressible:L}}=R;const z=u(),W=(0,Lt.lY)(z);if(!W)return;const{key:X}=W,{x:ee,y:pe,w:ye,h:Ie}=(0,Rt.GU)({key:X,vector:b}),Ue={x:ee,y:pe,w:ye,h:Ie,vector:b},Re=(A=sdkStore.getHotItem(X))==null?void 0:A.hotAttr.refVars;typeof T<"u"&&(Ue.refVars={...Re,...T}),Ue.refVars=(0,fd.VN)(X,Ue),x({type:"entry:widget:change",payload:{flatChgList:[{key:X,hotAttr:Ue}],shouldReBuildTree:!0,isCombineChange:!L}})},"entry:vector:shortcut:by:pointType":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pointType:x}}=R;const b=A(),T=(0,Lt.lY)(b);if(!T)return;const{key:L}=T,{hotAttr:{vector:z}}=sdkStore.getHotItem(L),{vector:W}=(0,Rt.Vn)(x,T,z),{x:X,y:ee,w:pe,h:ye}=(0,Rt.GU)({key:L,vector:W}),Ie={x:X,y:ee,w:pe,h:ye,vector:W};Ie.refVars=(0,fd.VN)(L,Ie),u({type:"entry:widget:change",payload:{flatChgList:[{key:L,hotAttr:Ie}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:arrowKey":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{dir:x,rate:b}}=R;const T=A(),L=(0,Lt.lY)(T),z=(0,Mn.H)(T);if(!L)return;const{key:W}=L,{hotAttr:{vector:X}}=sdkStore.getHotItem(W),ee=(0,Rt.YW)(W),pe=Qt.L.toMutableTransform(z).append(ee),ye=(0,Rt.z3)(x,b,L,X,pe);if(!ye||!ye.vector)return;const{vector:Ie}=ye,{x:Ue,y:Re,w:ze,h:st}=(0,Rt.GU)({key:W,vector:Ie}),xt={x:Ue,y:Re,w:ze,h:st,vector:Ie};xt.refVars=(0,fd.VN)(W,xt),u({type:"entry:widget:change",payload:{flatChgList:[{key:W,hotAttr:xt}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:mod":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,{hotAttr:{vector:T}}=sdkStore.getHotItem(b),L=(0,Rt.rX)(x,T);if(!L||!L.vector)return;const{vector:z}=L,{x:W,y:X,w:ee,h:pe}=(0,Rt.GU)({key:b,vector:z}),ye={x:W,y:X,w:ee,h:pe,vector:z};ye.refVars=(0,fd.VN)(b,ye),A({type:"entry:widget:change",payload:{flatChgList:[{key:b,hotAttr:ye}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:selectAll":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,{hotAttr:{vector:T}}=sdkStore.getHotItem(b),{vectorEditor:L}=(0,Rt.sG)(T);A(o.GO.update({vectorEditor:{key:b,...L}}))},"entry:vector:shortcut:by:toggle:closed":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,{hotAttr:{vector:T}}=sdkStore.getHotItem(b),{vector:L}=(0,Rt.T_)(T),{x:z,y:W,w:X,h:ee}=(0,Rt.GU)({key:b,vector:L}),pe={x:z,y:W,w:X,h:ee,vector:L};pe.refVars=(0,fd.VN)(b,pe),A({type:"entry:widget:change",payload:{flatChgList:[{key:b,hotAttr:pe}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:tab":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,{hotAttr:{vector:T}}=sdkStore.getHotItem(b),{vectorEditor:L}=(0,Rt.VD)(x,T);L&&A(o.GO.update({vectorEditor:{key:b,...L}}))},"entry:vector:shortcut:by:del":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,{hotAttr:{vector:T}}=sdkStore.getHotItem(b),L=()=>{A({type:"entry:delete:selected-items"}),A({type:"entry:vector:clear:vectorEditor"})},z=(0,Rt.wc)("Vector",x,T,L);if(!z)return;const{props:{vector:W},mode:{vectorEditor:X}}=z;A(o.GO.update({vectorEditor:{key:b,...X}}));const{x:ee,y:pe,w:ye,h:Ie}=(0,Rt.GU)({key:b,vector:W}),Ue={x:ee,y:pe,w:ye,h:Ie,vector:W};Ue.refVars=(0,fd.VN)(b,Ue),A({type:"entry:widget:change",payload:{flatChgList:[{key:b,hotAttr:Ue}],shouldReBuildTree:!0}})},"entry:vector:rectify:vectorEditor:selectedIndex":B=>{let{getState:R,dispatch:A}=B;const u=R(),x=(0,Lt.lY)(u);if(!x)return;const{key:b}=x,T=sdkStore.isTrashed(b),L=sdkStore.getHotItem(b);if(!L||T){A({type:"entry:clear:selection"}),A({type:"entry:vector:clear:vectorEditor"});return}const{hotAttr:{vector:z}}=L,W=z==null?void 0:z.points,{selectedIndex:X}=x;if(!(W!=null&&W.length)){A({type:"entry:clear:selection"}),A({type:"entry:vector:clear:vectorEditor"});return}(X<0||X>=(W==null?void 0:W.length))&&A(o.GO.update({vectorEditor:{key:b,selectedIndex:[W.length-1]}}))},"entry:vector:editor:drag":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{pos:x,sup:b}}=R;const T=A(),L=(0,a.wq)(T);u(o.GO.select([])),sdkStore.combineMergeMark("vector-quick-create");const z={key:(0,Oe.cF)(),sup:b,hotAttr:{...L,x:x.x,y:x.y,zIndex:(0,B1._)(b),name:(0,mr.aw)({type:P.x.WVector,sup:b})}};sdkStore.updateHotItem(z),u({type:"entry:select:items",payload:{cids:[z.key],hasClearVectorEditing:!1}}),MB.f.isSelecting=!1;const W=sdkStore.getHotMatrix(z.key),X=new Yi.h(W.a,W.b,W.c,W.d,W.tx,W.ty),ee=(0,Pt.cj)(z.key),{x:pe,y:ye}=ee.apply({x:0,y:0}),Ie=0,Ue=[],Re={type:Rt.pQ.Straight,x:0,y:0,next:We.Z.zero,prev:We.Z.zero,radius:0};sdkStore.updateHotAttrMerge(z.key,{vector:{...z.hotAttr.vector,points:[Re]}}),u(o.GO.update({vectorEditor:{key:z.key,selectedIndex:[Ie]}}));let ze=0;const st=Nt=>{if(ze<5)return ze++;const $t={x:Nt.offsetX,y:Nt.offsetY},An=ee.inverted().apply({x:$t.x,y:$t.y}),{x:zn,y:lo}=X.apply(An),{x:Qn,y:Sn}=X.inverted().apply({x:Math.round(zn),y:Math.round(lo)}),Wo="next";let qo;u(o.GO.update({vectorEditor:{key:z.key,selectedIndex:[Ie],selectedAssistIndex:Wo}}));const ua={x:Qn,y:Sn};ua.x===0&&ua.y===0||Math.abs(pe-Nt.clientX)<6&&Math.abs(ye-Nt.clientY)<6?qo={...Re,type:Rt.pQ.Straight}:(qo={...Re,type:Rt.pQ.Mirrored},qo=(0,Rt.Yw)(qo,Wo,ua)),Ue[Ie]=qo;const Ea={points:Ue,closed:!1};sdkStore.updateHotAttrMerge(z.key,{vector:Ea})},xt=()=>{u(o.GO.update({vectorEditor:{key:z.key,selectedIndex:[Ie],selectedAssistIndex:void 0}})),u({type:"entry:ST:STMode:disable"}),document.removeEventListener("mousemove",st),document.removeEventListener("mouseup",xt)};sdkStore.combineMerge("vector-quick-create"),document.addEventListener("mousemove",st),document.addEventListener("mouseup",xt)}};var ql=i(31093);const dc={"entry:pencil:vector:enter:edit":(B,R)=>{let{dispatch:A}=B,{payload:{source:u}}=R;A(o.GO.select([])),A(o.GO.togglePencilMode(!0)),A({type:"settings:set:autoTabIndex",payload:{autoTabIndex:0}}),A(o.GO.updateAddShapeToCanvasTrackSource(u))},"entry:pencil:vector:exit:edit":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;u(o.GO.togglePencilMode(!1));const{isSelectLastCreate:b=!1}=x||{},T=(0,ql.n$)(A());T&&b&&u(o.GO.select([T])),u({type:"pencil:clear:lastCreateKey"}),u(o.GO.updateAddShapeToCanvasTrackSource(""))},"entry:pencil:create:vector":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A(),T=(0,a.wq)(b),L=(0,Mn.H)(b),{cid:z}=(0,a.Ur)(b),W=(0,ql.lu)(b),X=(0,ql.E)(b),ee=(0,ql.pp)(b),pe=(0,Lt.kr)(b),{scale:ye}=L,{path:Ie,getRelativeVectorFromPath:Ue}=x,Re=Ie.segments[0].point;Ie.simplify(100);const{bounds:ze}=Ie,{width:st,height:xt,centerX:Nt,centerY:$t}=ze;if(st<6&&xt<6)return;let An=Qt.L.applyInverse(L,{x:Nt,y:$t}),zn=z;const lo=Qt.L.applyInverse(L,{x:Re.x,y:Re.y}),Qn=(0,C.Tg)(lo,z);if(Qn){zn=Qn;const wa=sdkStore.getHotItem(Qn);if(wa){const{hotAttr:{x:Ja,y:La,w:Na,h:gr}}=wa;An=We.Z.subtract(An,{x:Ja-Na/2,y:La-gr/2})}}const Sn=Ue(Ie),Wo=gd(Sn,ye),qo={key:(0,Oe.cF)(),sup:zn,hotAttr:{...T,border:{...T==null?void 0:T.border,bdrColor:W,bdrWidth:X,bdrStyle:ee},w:Hl(st,ye),h:Hl(xt,ye),x:An.x,y:An.y,zIndex:(0,B1._)(zn),name:(0,mr.aw)({type:il.x.WVector,sup:zn}),vector:{...T==null?void 0:T.vector,...Wo}}},ua=qo.key;sdkStore.combineMergeMark("pencil-vector-quick-create"),sdkStore.updateHotItem(qo),sdkStore.combineMerge("pencil-vector-quick-create");const Ea=sdkStore.getHotItem(ua);u({type:"pencil:update:lastCreateKey",payload:{lastCreateKey:ua}}),u({type:"entry:widget:change",payload:{isCreateWidget:!0,shouldReBuildTree:!0,sup:Ea.sup,isCombineChange:!1,flatChgList:[Ea]}}),Go.U4.addShapeToCanvasTrack("\u94C5\u7B14",pe)}},Hl=(B,R)=>B/R,gd=(B,R)=>{const{points:A,closed:u}=B,x=A[0],b=A.map(T=>{const L={x:Hl(T.x-x.x,R),y:Hl(T.y-x.y,R)},z={x:Hl(T.prev.x,R),y:Hl(T.prev.y,R)},W={x:Hl(T.next.x,R),y:Hl(T.next.y,R)};return{...T,...L,prev:z,next:W}});return{closed:u,points:b}};var ss=i(71217);const fs=()=>{if(!(0,pp.b8)())return!0;if(!window.MB_DESKTOP_VERSION)return!1;const B=window.MB_DESKTOP_VERSION.split(".").map(R=>parseInt(R,10));return B[0]>=1&&B[1]>=4&&B[2]>=1},Wi={"entry:widget:graph:edit":async(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;if(!fs()){MB.notice({duration:6e3,text:'<a target="_blank" href="https://modao.cc/feature/downloads.html#part1">\u8BF7\u5347\u7EA7\u5BA2\u6237\u7AEF\u7248\u672C\u4F7F\u7528</a>\uFF0C\u6216\u8BF7\u524D\u5F80web\u7AEF\u4F7F\u7528',type:"warning"});return}const{action:b,targetArea:T}=x,L=A(),z=(0,Ae.p$)(L),W=(0,a.Ur)(L);switch(b){case"new-widget":{let ee={editType:"newWidget"};if(T==="drawio"){const pe=(0,we.gu)({type:"wGraph",screen:W});(0,S.Q7)([{...pe,xmlData:ss.j1,...ss.hF}],ss.hF.w,ss.hF.h);const ye=(0,Ae.p$)(A());ye!=null&&ye.length&&(ee=sdkStore.getHotItem(ye[0]))}u({type:"set:current:drawio:editor:item",payload:{hotItem:ee}});break}case"update-widget":const X=sdkStore.getHotItem(z[0]);u({type:"set:current:drawio:editor:item",payload:{hotItem:X}});break;default:break}}};var es=i(24457);const xs={"entry:button:update:textV1":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{firstcall:x}}=R;const b=A(),T=(0,es.c)(b),L=(0,a.Mj)(b),z=(0,k.UV)(b);if(!L||!T)return;const{key:W,hotAttr:X}=T,{textV1:ee}=X,pe=z.buttonNodes.get(W);if(!pe)return;const ye=(0,Xd.dM)(L.getCurrentContent()),Ie=(0,fa.qn)(ye);if((0,A1.eI)(Ie,ee)&&!x)return;sdkStore.combineMergeMark("edit-button-textV1-node");const Ue=(0,o2.zs)([T],"textV1",Ie);u({type:"entry:widget:change",payload:{flatChgList:Ue}}),pe.updateButton(),sdkStore.combineMerge("edit-button-textV1-node")}},Ui={...sp,...x2,...cp,...b2,...Lc,...H0.k.__entry,...au,...mp,...vp,...T2,...xp,...G1,...Cp,...ke,...wt,...Ji,...qi,...zi,...Si,...ii,...so.X.__entry,...$i.Z8,...Ta,...fr.C5,...vi,...As,...dc,...Ce.y.__entry,...cn.R7.__entry,...Wi,...xs},Ns={...y2,...Ui};var Uc=i(53102),ic=i(29794),Fc=i(59323);const Sp={...{...{"entry:update:current-screen:screen-align":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:{lines:x}}=R;const b=A(),T=(0,a.eo)(b),L=sdkStore.getHotItem(T),z={...L,hotAttr:{...L.hotAttr,alignH:x.h,alignV:x.v}};sdkStore.updateHotItem(z),u({type:"entry:widget:change",payload:{flatChgList:[z]}})},"entry:update:canvas:align":(B,R)=>{let{dispatch:A}=B,{payload:{canvasCid:u,lines:x}}=R;A({type:"entry:widget:change",payload:{flatChgList:[{key:u,hotAttr:{alignH:x.h,alignV:x.v}}]}})}},"entry:init:ruler:canvas":B=>{let{getState:R,dispatch:A}=B;const u=R();if(!(0,k.UV)(u))return;const b=(0,lt.qT)(u),T=(0,a.X_)(u),L=(0,lt.O4)(u),z=(0,Ae.p$)(u),{canvasTop:W,canvasLeft:X}=(0,a.Pz)(u),ee=(0,a.$S)(u),pe=(0,So.Hw)(u),ye=(0,lt.MZ)(u);if(!b||!ee)return;const Ie=T/100,{x:Ue,y:Re,w:ze,h:st}=(0,Xc.dP)(z),xt=(0,Fc.zB)(z),Nt=xt.size===1?[...xt.values()][0]:null,{rulerWidth:$t,rulerHeight:An,startX:zn,startY:lo,shadow:Qn,startWithCanvas:Sn}=(0,ic.eA)({ratio:Ie,viewportRect:ee,canvasTop:W,canvasLeft:X,x:Ue,y:Re,width:ze,height:st,selectedParentCanvas:Nt,rulerLineCanvas:pe}),Wo={scale:Ie,width:$t,height:An,thick:Uc.MV,startX:zn,startY:lo,theme:L,shadow:Qn,palette:Uc.MF[L],startWithCanvas:Sn,layoutV9:ye};A({type:"ruler:update:state",payload:{rulerConfig:Wo,rulerRect:{startX:zn,startY:lo}}})},"entry:update:ruler":(B,R)=>{let{getState:A,dispatch:u}=B,{payload:x}=R;const b=A();if(!(0,k.UV)(b))return;const L=(0,lt.qT)(b),z=(0,a.X_)(b),W=(0,lt.O4)(b),X=(0,Ae.p$)(b),{canvasTop:ee,canvasLeft:pe}=(0,a.Pz)(b),ye=(0,a.$S)(b),Ie=(0,So.Hw)(b);if(!L||!ye)return;const Ue=z/100,{x:Re,y:ze,w:st,h:xt}=(0,Xc.dP)(X),Nt=(0,Fc.zB)(X),$t=Nt.size===1?[...Nt.values()][0]:null,{rulerWidth:An,rulerHeight:zn,startX:lo,startY:Qn,shadow:Sn,startWithCanvas:Wo}=(0,ic.eA)({ratio:Ue,viewportRect:ye,canvasTop:ee,canvasLeft:pe,x:Re,y:ze,width:st,height:xt,selectedParentCanvas:$t,rulerLineCanvas:Ie}),qo={scale:Ue,width:An,height:zn,thick:Uc.MV,startX:lo,startY:Qn,theme:W,shadow:Sn,palette:Uc.MF[W],startWithCanvas:Wo,isUpdateContext:x==null?void 0:x.isUpdateContext};u({type:"ruler:update:state",payload:{rulerConfig:qo,rulerRect:{startX:lo,startY:Qn}}})}}},nh={...J,...Vt,...ho,...Ra,...Sa.G,...Li,...Me,...ns.s,...Q2,...D1,...Ns,...Sp}},92755:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Xe});var a=i(38502),k=i(53732),M=i.n(k),P=i(13199),C=i(54254),q=i(46757),Y=i(58196),J=i(48150);const O=["wrap","nowrap","wrap-reverse"],l=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],D=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],m=(ne,lt)=>{const rt=lt.wrap===!0?"wrap":lt.wrap;return{[ne+"-wrap-"+rt]:rt&&O.includes(rt)}},E=(ne,lt)=>{const rt={};return D.forEach(Te=>{rt[ne+"-align-"+Te]=lt.align===Te}),rt[ne+"-align-stretch"]=!lt.align&&!!lt.vertical,rt},f=(ne,lt)=>{const rt={};return l.forEach(Te=>{rt[ne+"-justify-"+Te]=lt.justify===Te}),rt};function h(ne,lt){return M()(Object.assign(Object.assign(Object.assign({},m(ne,lt)),E(ne,lt)),f(ne,lt)))}const S=h,V=ne=>{const{componentCls:lt}=ne;return{[lt]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},We=ne=>{const{componentCls:lt}=ne;return{[lt]:{"&-gap-small":{gap:ne.flexGapSM},"&-gap-middle":{gap:ne.flexGap},"&-gap-large":{gap:ne.flexGapLG}}}},re=ne=>{const{componentCls:lt}=ne,rt={};return O.forEach(Te=>{rt[lt+"-wrap-"+Te]={flexWrap:Te}}),rt},ve=ne=>{const{componentCls:lt}=ne,rt={};return D.forEach(Te=>{rt[lt+"-align-"+Te]={alignItems:Te}}),rt},we=ne=>{const{componentCls:lt}=ne,rt={};return l.forEach(Te=>{rt[lt+"-justify-"+Te]={justifyContent:Te}}),rt},Ae=()=>({}),Oe=(0,Y.OF)("Flex",ne=>{const{paddingXS:lt,padding:rt,paddingLG:Te}=ne,Ge=(0,J.oX)(ne,{flexGapSM:lt,flexGap:rt,flexGapLG:Te});return[V(Ge),We(Ge),re(Ge),ve(Ge),we(Ge)]},Ae,{resetStyle:!1});var Be=function(ne,lt){var rt={};for(var Te in ne)Object.prototype.hasOwnProperty.call(ne,Te)&&lt.indexOf(Te)<0&&(rt[Te]=ne[Te]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Te=Object.getOwnPropertySymbols(ne);Ge<Te.length;Ge++)lt.indexOf(Te[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ne,Te[Ge])&&(rt[Te[Ge]]=ne[Te[Ge]]);return rt};const Xe=a.forwardRef((ne,lt)=>{const{prefixCls:rt,rootClassName:Te,className:Ge,style:ue,flex:Me,gap:Ze,children:fe,vertical:it=!1,component:et="div"}=ne,Ut=Be(ne,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:G,direction:Ht,getPrefixCls:Tt}=a.useContext(q.QO),Vt=Tt("flex",rt),[He,rn,Lt]=Oe(Vt),jt=it!=null?it:G==null?void 0:G.vertical,mt=M()(Ge,Te,G==null?void 0:G.className,Vt,rn,Lt,S(Vt,ne),{[Vt+"-rtl"]:Ht==="rtl",[Vt+"-gap-"+Ze]:(0,C.X)(Ze),[Vt+"-vertical"]:jt}),Jn=Object.assign(Object.assign({},G==null?void 0:G.style),ue);return Me&&(Jn.flex=Me),Ze&&!(0,C.X)(Ze)&&(Jn.gap=Ze),He(a.createElement(et,Object.assign({ref:lt,className:mt,style:Jn},(0,P.A)(Ut,["justify","wrap","align"])),fe))})},92898:(eo,ot,i)=>{var a=i(19108),k=1/0,M=17976931348623157e292;function P(C){if(!C)return C===0?C:0;if(C=a(C),C===k||C===-k){var q=C<0?-1:1;return q*M}return C===C?C:0}eo.exports=P},93157:(eo,ot,i)=>{"use strict";i.d(ot,{Mg:()=>C,W2:()=>q,bO:()=>J,fN:()=>Y});var a=i(81717),k=i(5209),M=i(76844),P=function(O){return O.NoLogin="\u672A\u767B\u5F55\u7528\u6237",O.LoginButNotOrgMember="\u975E\u56E2\u961F\u767B\u5F55\u7528\u6237",O.ProjectMember="\u534F\u4F5C\u6210\u5458",O.TeamMember="\u56E2\u961F\u6210\u5458",O}(P||{});let C=function(O){return O.NotLogin="\u4EC5\u56E2\u961F\u6210\u5458-\u672A\u767B\u5F55",O.NotOrgMember="\u4EC5\u56E2\u961F\u6210\u5458-\u5DF2\u767B\u5F55\u4F46\u975E\u56E2\u961F\u6210\u5458",O.NeedPwd="\u5BC6\u7801\u67E5\u770B-\u9700\u8F93\u5165\u5BC6\u7801",O.NotPublicAccess="\u516C\u5F00\u8BBF\u95EE\u5173\u95ED",O.Delete="\u5DF2\u5220\u9664",O}({});const q=O=>{let{userId:l,orgPermissions:D,spacePermissions:m,projectPermissions:E}=O;if(!l)return P.NoLogin;const f=D?(0,M.ox)(l,D):!1,h=m?(0,M.ox)(l,m):!1,S=E?(0,M.ox)(l,E):!1;if(!f)return P.LoginButNotOrgMember;if(h||S)return P.ProjectMember;if(f)return P.TeamMember},Y=O=>{let{access_success:l,no_access_reason:D,access_from:m,user_type:E}=O;(0,k.kH)("share_links_access_V8",{user_type:E,access_success:l,no_access_reason:D,access_from:m})},J=O=>{let{currentProject:l,preview_type:D=null,source:m="\u7F16\u8F91\u533A"}=O;(0,k.kH)("preview_project",{project_type:"\u539F\u578B V8",source:m,project_name:l.name,project_cid:l.cid,preview_type:D}),a.Y4.editProjectNew("\u9884\u89C8\u9879\u76EE")}},93645:(eo,ot,i)=>{"use strict";i.d(ot,{$y:()=>k,TQ:()=>M,dV:()=>P});var a=i(67787);const k=a.Ay.div.withConfig({displayName:"styles__DraftInlineToolbarDiv",componentId:"sc-rd87l1-0"})(["position:absolute;height:42px;min-width:42px;display:flex;flex-direction:row;justify-content:center;align-items:center;transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);background:",";border-radius:8px;box-sizing:border-box;box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1);z-index:5;border:1px solid ",";.drag-box{width:100%;height:100%;padding:0 4px;border-radius:8px 0 0 8px;background:",";cursor:move;display:flex;align-items:center;justify-content:center;margin-right:6px;margin-left:-1px;&:hover,&.is-dragging{svg{color:",";path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}}.draft-separator-v{height:20px;border-right:1px solid ",";}.draft-separator-v + .quick-menu-option{margin-left:6px;}.draft-separator-h{width:100%;border-bottom:1px solid ",";margin-top:3px;margin-bottom:3px;}.draft-inline{&.svg-icon{color:",";width:28px;height:28px;}}.draft-link{cursor:pointer;&.svg-icon{width:28px;height:28px;color:",";}}.draft-image{cursor:pointer;&.svg-icon{width:28px;height:28px;}}.content-container{.svg-icon{color:",";}.option-title{color:",";}&.width-140{width:140px;padding:8px;&:lang(en){width:auto;}}&.width-240{width:240px;padding:8px 16px 16px 16px;&:lang(en){width:auto;}}&.draft-block-type-options{.option-content{flex:1;display:flex;align-items:center;margin-left:32px;svg{width:16px !important;height:16px !important;path[fill]{fill:",";}}.option-title{flex:auto;margin-left:8px;}}}&.draft-font-color-options{width:158px;padding:16px 14px;.rect-color-option-list{gap:6px;}}&.draft-bg-color-options{width:192px;padding:16px 14px;.rect-color-option-list{gap:6px;}}&.draft-inline-options{padding:8px;width:max-content;flex-direction:row;flex-wrap:wrap;.draft-toolbar-dropdown-option{width:32px;height:32px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0 4px 0 0;padding:0;background-color:transparent;box-sizing:border-box;border-radius:6px;&:last-child{margin:0;}svg{color:inherit;path[fill]{fill:currentColor;}}&.active{background-color:",";color:",";}&:hover{background-color:",";}}.svg-icon{width:28px;height:28px;}}&.draft-fontsize-options{width:140px;padding:8px;.svg-icon,.draft-check{width:16px;height:16px;margin-right:13px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-image-options{width:136px;padding:8px;.svg-icon{width:16px;height:16px;margin-right:10px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-info-options{width:136px;padding:8px;.draft-toolbar-dropdown-option{display:flex;justify-content:space-between;padding:0 12px;align-items:center;}.left-label{font-size:12px;line-height:16px;}.right-content{display:flex;justify-content:center;align-items:center;}}.floating-tooltip{background-color:",";color:",";}}.content-container{&.draft-block-type-options,&.draft-fontsize-options,&.draft-image-options,&.draft-info-options{border-radius:8px;}&:not(.font-options){.var-input-container{&:hover:not(.is-disabled){.input{&:not(.is-disabled,.is-active){&.input-number{border-color:transparent;}}}}}}}.quick-menu-fixed-container{width:450px;height:42px;border-radius:8px;border:1px dashed ",";display:flex;align-items:center;justify-content:center;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}&.is-active{background:",";}}"],C=>C.theme.color_bg_white,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_navigation_hover,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_bg_tab,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_background_white_modal,C=>C.theme.color_text_L1,C=>C.theme.color_slider_hover,C=>C.theme.color_text_L3,C=>C.theme.color_navigation_hover),M=a.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-rd87l1-1"})(["width:100%;height:0;border-bottom:1px solid ",";margin:8px 0;"],C=>C.theme.color_bg_border_01),P=a.Ay.div.withConfig({displayName:"styles__StyledQuickMenuFixedContainer",componentId:"sc-rd87l1-2"})(["width:450px;height:42px;border-radius:8px;background:",";border:1px dashed ",";display:flex;align-items:center;justify-content:center;z-index:4;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}&.is-active{background:",";border-color:",";span{color:",";}}"],C=>C.theme.color_bg_canvas,C=>C.theme.color_slider_hover,C=>C.theme.color_text_L3,C=>C.theme.color_info_bg,C=>C.theme.color_text_link_normal,C=>C.theme.color_text_link_normal)},94319:(eo,ot,i)=>{var a;/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */(function(k,M,P,C){"use strict";var q=["","webkit","Moz","MS","ms","o"],Y=M.createElement("div"),J="function",O=Math.round,l=Math.abs,D=Date.now;function m(Bt,vn,Io){return setTimeout(ve(Bt,Io),vn)}function E(Bt,vn,Io){return Array.isArray(Bt)?(f(Bt,Io[vn],Io),!0):!1}function f(Bt,vn,Io){var No;if(Bt)if(Bt.forEach)Bt.forEach(vn,Io);else if(Bt.length!==C)for(No=0;No<Bt.length;)vn.call(Io,Bt[No],No,Bt),No++;else for(No in Bt)Bt.hasOwnProperty(No)&&vn.call(Io,Bt[No],No,Bt)}function h(Bt,vn,Io){var No="DEPRECATED METHOD: "+vn+"\n"+Io+" AT \n";return function(){var _a=new Error("get-stack-trace"),Ur=_a&&_a.stack?_a.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",fr=k.console&&(k.console.warn||k.console.log);return fr&&fr.call(k.console,No,Ur),Bt.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(vn){if(vn===C||vn===null)throw new TypeError("Cannot convert undefined or null to object");for(var Io=Object(vn),No=1;No<arguments.length;No++){var _a=arguments[No];if(_a!==C&&_a!==null)for(var Ur in _a)_a.hasOwnProperty(Ur)&&(Io[Ur]=_a[Ur])}return Io}:S=Object.assign;var V=h(function(vn,Io,No){for(var _a=Object.keys(Io),Ur=0;Ur<_a.length;)(!No||No&&vn[_a[Ur]]===C)&&(vn[_a[Ur]]=Io[_a[Ur]]),Ur++;return vn},"extend","Use `assign`."),We=h(function(vn,Io){return V(vn,Io,!0)},"merge","Use `assign`.");function re(Bt,vn,Io){var No=vn.prototype,_a;_a=Bt.prototype=Object.create(No),_a.constructor=Bt,_a._super=No,Io&&S(_a,Io)}function ve(Bt,vn){return function(){return Bt.apply(vn,arguments)}}function we(Bt,vn){return typeof Bt===J?Bt.apply(vn&&vn[0]||C,vn):Bt}function Ae(Bt,vn){return Bt===C?vn:Bt}function Oe(Bt,vn,Io){f(ne(vn),function(No){Bt.addEventListener(No,Io,!1)})}function Be(Bt,vn,Io){f(ne(vn),function(No){Bt.removeEventListener(No,Io,!1)})}function tt(Bt,vn){for(;Bt;){if(Bt==vn)return!0;Bt=Bt.parentNode}return!1}function Xe(Bt,vn){return Bt.indexOf(vn)>-1}function ne(Bt){return Bt.trim().split(/\s+/g)}function lt(Bt,vn,Io){if(Bt.indexOf&&!Io)return Bt.indexOf(vn);for(var No=0;No<Bt.length;){if(Io&&Bt[No][Io]==vn||!Io&&Bt[No]===vn)return No;No++}return-1}function rt(Bt){return Array.prototype.slice.call(Bt,0)}function Te(Bt,vn,Io){for(var No=[],_a=[],Ur=0;Ur<Bt.length;){var fr=vn?Bt[Ur][vn]:Bt[Ur];lt(_a,fr)<0&&No.push(Bt[Ur]),_a[Ur]=fr,Ur++}return Io&&(vn?No=No.sort(function(zr,Fr){return zr[vn]>Fr[vn]}):No=No.sort()),No}function Ge(Bt,vn){for(var Io,No,_a=vn[0].toUpperCase()+vn.slice(1),Ur=0;Ur<q.length;){if(Io=q[Ur],No=Io?Io+_a:vn,No in Bt)return No;Ur++}return C}var ue=1;function Me(){return ue++}function Ze(Bt){var vn=Bt.ownerDocument||Bt;return vn.defaultView||vn.parentWindow||k}var fe=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in k,et=Ge(k,"PointerEvent")!==C,Ut=it&&fe.test(navigator.userAgent),G="touch",Ht="pen",Tt="mouse",Vt="kinect",He=25,rn=1,Lt=2,jt=4,mt=8,Jn=1,o=2,so=4,Et=8,Jt=16,Ot=o|so,dn=Et|Jt,Ce=Ot|dn,Pt=["x","y"],Nn=["clientX","clientY"];function At(Bt,vn){var Io=this;this.manager=Bt,this.callback=vn,this.element=Bt.element,this.target=Bt.options.inputTarget,this.domHandler=function(No){we(Bt.options.enable,[Bt])&&Io.handler(No)},this.init()}At.prototype={handler:function(){},init:function(){this.evEl&&Oe(this.element,this.evEl,this.domHandler),this.evTarget&&Oe(this.target,this.evTarget,this.domHandler),this.evWin&&Oe(Ze(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Be(this.element,this.evEl,this.domHandler),this.evTarget&&Be(this.target,this.evTarget,this.domHandler),this.evWin&&Be(Ze(this.element),this.evWin,this.domHandler)}};function on(Bt){var vn,Io=Bt.options.inputClass;return Io?vn=Io:et?vn=Qt:Ut?vn=Yn:it?vn=Oo:vn=wn,new vn(Bt,no)}function no(Bt,vn,Io){var No=Io.pointers.length,_a=Io.changedPointers.length,Ur=vn&rn&&No-_a===0,fr=vn&(jt|mt)&&No-_a===0;Io.isFirst=!!Ur,Io.isFinal=!!fr,Ur&&(Bt.session={}),Io.eventType=vn,mo(Bt,Io),Bt.emit("hammer.input",Io),Bt.recognize(Io),Bt.session.prevInput=Io}function mo(Bt,vn){var Io=Bt.session,No=vn.pointers,_a=No.length;Io.firstInput||(Io.firstInput=Fn(vn)),_a>1&&!Io.firstMultiple?Io.firstMultiple=Fn(vn):_a===1&&(Io.firstMultiple=!1);var Ur=Io.firstInput,fr=Io.firstMultiple,Ar=fr?fr.center:Ur.center,zr=vn.center=Yt(No);vn.timeStamp=D(),vn.deltaTime=vn.timeStamp-Ur.timeStamp,vn.angle=Zt(Ar,zr),vn.distance=qt(Ar,zr),mn(Io,vn),vn.offsetDirection=Bn(vn.deltaX,vn.deltaY);var Fr=Gt(vn.deltaTime,vn.deltaX,vn.deltaY);vn.overallVelocityX=Fr.x,vn.overallVelocityY=Fr.y,vn.overallVelocity=l(Fr.x)>l(Fr.y)?Fr.x:Fr.y,vn.scale=fr?ro(fr.pointers,No):1,vn.rotation=fr?jn(fr.pointers,No):0,vn.maxPointers=Io.prevInput?vn.pointers.length>Io.prevInput.maxPointers?vn.pointers.length:Io.prevInput.maxPointers:vn.pointers.length,ht(Io,vn);var os=Bt.element;tt(vn.srcEvent.target,os)&&(os=vn.srcEvent.target),vn.target=os}function mn(Bt,vn){var Io=vn.center,No=Bt.offsetDelta||{},_a=Bt.prevDelta||{},Ur=Bt.prevInput||{};(vn.eventType===rn||Ur.eventType===jt)&&(_a=Bt.prevDelta={x:Ur.deltaX||0,y:Ur.deltaY||0},No=Bt.offsetDelta={x:Io.x,y:Io.y}),vn.deltaX=_a.x+(Io.x-No.x),vn.deltaY=_a.y+(Io.y-No.y)}function ht(Bt,vn){var Io=Bt.lastInterval||vn,No=vn.timeStamp-Io.timeStamp,_a,Ur,fr,Ar;if(vn.eventType!=mt&&(No>He||Io.velocity===C)){var zr=vn.deltaX-Io.deltaX,Fr=vn.deltaY-Io.deltaY,os=Gt(No,zr,Fr);Ur=os.x,fr=os.y,_a=l(os.x)>l(os.y)?os.x:os.y,Ar=Bn(zr,Fr),Bt.lastInterval=vn}else _a=Io.velocity,Ur=Io.velocityX,fr=Io.velocityY,Ar=Io.direction;vn.velocity=_a,vn.velocityX=Ur,vn.velocityY=fr,vn.direction=Ar}function Fn(Bt){for(var vn=[],Io=0;Io<Bt.pointers.length;)vn[Io]={clientX:O(Bt.pointers[Io].clientX),clientY:O(Bt.pointers[Io].clientY)},Io++;return{timeStamp:D(),pointers:vn,center:Yt(vn),deltaX:Bt.deltaX,deltaY:Bt.deltaY}}function Yt(Bt){var vn=Bt.length;if(vn===1)return{x:O(Bt[0].clientX),y:O(Bt[0].clientY)};for(var Io=0,No=0,_a=0;_a<vn;)Io+=Bt[_a].clientX,No+=Bt[_a].clientY,_a++;return{x:O(Io/vn),y:O(No/vn)}}function Gt(Bt,vn,Io){return{x:vn/Bt||0,y:Io/Bt||0}}function Bn(Bt,vn){return Bt===vn?Jn:l(Bt)>=l(vn)?Bt<0?o:so:vn<0?Et:Jt}function qt(Bt,vn,Io){Io||(Io=Pt);var No=vn[Io[0]]-Bt[Io[0]],_a=vn[Io[1]]-Bt[Io[1]];return Math.sqrt(No*No+_a*_a)}function Zt(Bt,vn,Io){Io||(Io=Pt);var No=vn[Io[0]]-Bt[Io[0]],_a=vn[Io[1]]-Bt[Io[1]];return Math.atan2(_a,No)*180/Math.PI}function jn(Bt,vn){return Zt(vn[1],vn[0],Nn)+Zt(Bt[1],Bt[0],Nn)}function ro(Bt,vn){return qt(vn[0],vn[1],Nn)/qt(Bt[0],Bt[1],Nn)}var Tn={mousedown:rn,mousemove:Lt,mouseup:jt},bt="mousedown",Wt="mousemove mouseup";function wn(){this.evEl=bt,this.evWin=Wt,this.pressed=!1,At.apply(this,arguments)}re(wn,At,{handler:function(vn){var Io=Tn[vn.type];Io&rn&&vn.button===0&&(this.pressed=!0),Io&Lt&&vn.which!==1&&(Io=jt),this.pressed&&(Io&jt&&(this.pressed=!1),this.callback(this.manager,Io,{pointers:[vn],changedPointers:[vn],pointerType:Tt,srcEvent:vn}))}});var uo={pointerdown:rn,pointermove:Lt,pointerup:jt,pointercancel:mt,pointerout:mt},In={2:G,3:Ht,4:Tt,5:Vt},Dn="pointerdown",So="pointermove pointerup pointercancel";k.MSPointerEvent&&!k.PointerEvent&&(Dn="MSPointerDown",So="MSPointerMove MSPointerUp MSPointerCancel");function Qt(){this.evEl=Dn,this.evWin=So,At.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}re(Qt,At,{handler:function(vn){var Io=this.store,No=!1,_a=vn.type.toLowerCase().replace("ms",""),Ur=uo[_a],fr=In[vn.pointerType]||vn.pointerType,Ar=fr==G,zr=lt(Io,vn.pointerId,"pointerId");Ur&rn&&(vn.button===0||Ar)?zr<0&&(Io.push(vn),zr=Io.length-1):Ur&(jt|mt)&&(No=!0),!(zr<0)&&(Io[zr]=vn,this.callback(this.manager,Ur,{pointers:Io,changedPointers:[vn],pointerType:fr,srcEvent:vn}),No&&Io.splice(zr,1))}});var Ln={touchstart:rn,touchmove:Lt,touchend:jt,touchcancel:mt},Mn="touchstart",Rt="touchstart touchmove touchend touchcancel";function Qe(){this.evTarget=Mn,this.evWin=Rt,this.started=!1,At.apply(this,arguments)}re(Qe,At,{handler:function(vn){var Io=Ln[vn.type];if(Io===rn&&(this.started=!0),!!this.started){var No=En.call(this,vn,Io);Io&(jt|mt)&&No[0].length-No[1].length===0&&(this.started=!1),this.callback(this.manager,Io,{pointers:No[0],changedPointers:No[1],pointerType:G,srcEvent:vn})}}});function En(Bt,vn){var Io=rt(Bt.touches),No=rt(Bt.changedTouches);return vn&(jt|mt)&&(Io=Te(Io.concat(No),"identifier",!0)),[Io,No]}var qn={touchstart:rn,touchmove:Lt,touchend:jt,touchcancel:mt},Hn="touchstart touchmove touchend touchcancel";function Yn(){this.evTarget=Hn,this.targetIds={},At.apply(this,arguments)}re(Yn,At,{handler:function(vn){var Io=qn[vn.type],No=oo.call(this,vn,Io);No&&this.callback(this.manager,Io,{pointers:No[0],changedPointers:No[1],pointerType:G,srcEvent:vn})}});function oo(Bt,vn){var Io=rt(Bt.touches),No=this.targetIds;if(vn&(rn|Lt)&&Io.length===1)return No[Io[0].identifier]=!0,[Io,Io];var _a,Ur,fr=rt(Bt.changedTouches),Ar=[],zr=this.target;if(Ur=Io.filter(function(Fr){return tt(Fr.target,zr)}),vn===rn)for(_a=0;_a<Ur.length;)No[Ur[_a].identifier]=!0,_a++;for(_a=0;_a<fr.length;)No[fr[_a].identifier]&&Ar.push(fr[_a]),vn&(jt|mt)&&delete No[fr[_a].identifier],_a++;if(Ar.length)return[Te(Ur.concat(Ar),"identifier",!0),Ar]}var To=2500,po=25;function Oo(){At.apply(this,arguments);var Bt=ve(this.handler,this);this.touch=new Yn(this.manager,Bt),this.mouse=new wn(this.manager,Bt),this.primaryTouch=null,this.lastTouches=[]}re(Oo,At,{handler:function(vn,Io,No){var _a=No.pointerType==G,Ur=No.pointerType==Tt;if(!(Ur&&No.sourceCapabilities&&No.sourceCapabilities.firesTouchEvents)){if(_a)Qo.call(this,Io,No);else if(Ur&&_n.call(this,No))return;this.callback(vn,Io,No)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Qo(Bt,vn){Bt&rn?(this.primaryTouch=vn.changedPointers[0].identifier,ea.call(this,vn)):Bt&(jt|mt)&&ea.call(this,vn)}function ea(Bt){var vn=Bt.changedPointers[0];if(vn.identifier===this.primaryTouch){var Io={x:vn.clientX,y:vn.clientY};this.lastTouches.push(Io);var No=this.lastTouches,_a=function(){var Ur=No.indexOf(Io);Ur>-1&&No.splice(Ur,1)};setTimeout(_a,To)}}function _n(Bt){for(var vn=Bt.srcEvent.clientX,Io=Bt.srcEvent.clientY,No=0;No<this.lastTouches.length;No++){var _a=this.lastTouches[No],Ur=Math.abs(vn-_a.x),fr=Math.abs(Io-_a.y);if(Ur<=po&&fr<=po)return!0}return!1}var Un=Ge(Y.style,"touchAction"),cn=Un!==C,nn="compute",Zn="auto",ho="manipulation",Xn="none",Mo="pan-x",Zo="pan-y",ia=zo();function xa(Bt,vn){this.manager=Bt,this.set(vn)}xa.prototype={set:function(Bt){Bt==nn&&(Bt=this.compute()),cn&&this.manager.element.style&&ia[Bt]&&(this.manager.element.style[Un]=Bt),this.actions=Bt.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Bt=[];return f(this.manager.recognizers,function(vn){we(vn.options.enable,[vn])&&(Bt=Bt.concat(vn.getTouchAction()))}),fa(Bt.join(" "))},preventDefaults:function(Bt){var vn=Bt.srcEvent,Io=Bt.offsetDirection;if(this.manager.session.prevented){vn.preventDefault();return}var No=this.actions,_a=Xe(No,Xn)&&!ia[Xn],Ur=Xe(No,Zo)&&!ia[Zo],fr=Xe(No,Mo)&&!ia[Mo];if(_a){var Ar=Bt.pointers.length===1,zr=Bt.distance<2,Fr=Bt.deltaTime<250;if(Ar&&zr&&Fr)return}if(!(fr&&Ur)&&(_a||Ur&&Io&Ot||fr&&Io&dn))return this.preventSrc(vn)},preventSrc:function(Bt){this.manager.session.prevented=!0,Bt.preventDefault()}};function fa(Bt){if(Xe(Bt,Xn))return Xn;var vn=Xe(Bt,Mo),Io=Xe(Bt,Zo);return vn&&Io?Xn:vn||Io?vn?Mo:Zo:Xe(Bt,ho)?ho:Zn}function zo(){if(!cn)return!1;var Bt={},vn=k.CSS&&k.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Io){Bt[Io]=vn?k.CSS.supports("touch-action",Io):!0}),Bt}var Ra=1,Sa=2,ln=4,ta=8,ko=ta,bo=16,aa=32;function ma(Bt){this.options=S({},this.defaults,Bt||{}),this.id=Me(),this.manager=null,this.options.enable=Ae(this.options.enable,!0),this.state=Ra,this.simultaneous={},this.requireFail=[]}ma.prototype={defaults:{},set:function(Bt){return S(this.options,Bt),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Bt){if(E(Bt,"recognizeWith",this))return this;var vn=this.simultaneous;return Bt=Ir(Bt,this),vn[Bt.id]||(vn[Bt.id]=Bt,Bt.recognizeWith(this)),this},dropRecognizeWith:function(Bt){return E(Bt,"dropRecognizeWith",this)?this:(Bt=Ir(Bt,this),delete this.simultaneous[Bt.id],this)},requireFailure:function(Bt){if(E(Bt,"requireFailure",this))return this;var vn=this.requireFail;return Bt=Ir(Bt,this),lt(vn,Bt)===-1&&(vn.push(Bt),Bt.requireFailure(this)),this},dropRequireFailure:function(Bt){if(E(Bt,"dropRequireFailure",this))return this;Bt=Ir(Bt,this);var vn=lt(this.requireFail,Bt);return vn>-1&&this.requireFail.splice(vn,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Bt){return!!this.simultaneous[Bt.id]},emit:function(Bt){var vn=this,Io=this.state;function No(_a){vn.manager.emit(_a,Bt)}Io<ta&&No(vn.options.event+dr(Io)),No(vn.options.event),Bt.additionalEvent&&No(Bt.additionalEvent),Io>=ta&&No(vn.options.event+dr(Io))},tryEmit:function(Bt){if(this.canEmit())return this.emit(Bt);this.state=aa},canEmit:function(){for(var Bt=0;Bt<this.requireFail.length;){if(!(this.requireFail[Bt].state&(aa|Ra)))return!1;Bt++}return!0},recognize:function(Bt){var vn=S({},Bt);if(!we(this.options.enable,[this,vn])){this.reset(),this.state=aa;return}this.state&(ko|bo|aa)&&(this.state=Ra),this.state=this.process(vn),this.state&(Sa|ln|ta|bo)&&this.tryEmit(vn)},process:function(Bt){},getTouchAction:function(){},reset:function(){}};function dr(Bt){return Bt&bo?"cancel":Bt&ta?"end":Bt&ln?"move":Bt&Sa?"start":""}function ni(Bt){return Bt==Jt?"down":Bt==Et?"up":Bt==o?"left":Bt==so?"right":""}function Ir(Bt,vn){var Io=vn.manager;return Io?Io.get(Bt):Bt}function $a(){ma.apply(this,arguments)}re($a,ma,{defaults:{pointers:1},attrTest:function(Bt){var vn=this.options.pointers;return vn===0||Bt.pointers.length===vn},process:function(Bt){var vn=this.state,Io=Bt.eventType,No=vn&(Sa|ln),_a=this.attrTest(Bt);return No&&(Io&mt||!_a)?vn|bo:No||_a?Io&jt?vn|ta:vn&Sa?vn|ln:Sa:aa}});function Va(){$a.apply(this,arguments),this.pX=null,this.pY=null}re(Va,$a,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ce},getTouchAction:function(){var Bt=this.options.direction,vn=[];return Bt&Ot&&vn.push(Zo),Bt&dn&&vn.push(Mo),vn},directionTest:function(Bt){var vn=this.options,Io=!0,No=Bt.distance,_a=Bt.direction,Ur=Bt.deltaX,fr=Bt.deltaY;return _a&vn.direction||(vn.direction&Ot?(_a=Ur===0?Jn:Ur<0?o:so,Io=Ur!=this.pX,No=Math.abs(Bt.deltaX)):(_a=fr===0?Jn:fr<0?Et:Jt,Io=fr!=this.pY,No=Math.abs(Bt.deltaY))),Bt.direction=_a,Io&&No>vn.threshold&&_a&vn.direction},attrTest:function(Bt){return $a.prototype.attrTest.call(this,Bt)&&(this.state&Sa||!(this.state&Sa)&&this.directionTest(Bt))},emit:function(Bt){this.pX=Bt.deltaX,this.pY=Bt.deltaY;var vn=ni(Bt.direction);vn&&(Bt.additionalEvent=this.options.event+vn),this._super.emit.call(this,Bt)}});function Ha(){$a.apply(this,arguments)}re(Ha,$a,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xn]},attrTest:function(Bt){return this._super.attrTest.call(this,Bt)&&(Math.abs(Bt.scale-1)>this.options.threshold||this.state&Sa)},emit:function(Bt){if(Bt.scale!==1){var vn=Bt.scale<1?"in":"out";Bt.additionalEvent=this.options.event+vn}this._super.emit.call(this,Bt)}});function or(){ma.apply(this,arguments),this._timer=null,this._input=null}re(or,ma,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Zn]},process:function(Bt){var vn=this.options,Io=Bt.pointers.length===vn.pointers,No=Bt.distance<vn.threshold,_a=Bt.deltaTime>vn.time;if(this._input=Bt,!No||!Io||Bt.eventType&(jt|mt)&&!_a)this.reset();else if(Bt.eventType&rn)this.reset(),this._timer=m(function(){this.state=ko,this.tryEmit()},vn.time,this);else if(Bt.eventType&jt)return ko;return aa},reset:function(){clearTimeout(this._timer)},emit:function(Bt){this.state===ko&&(Bt&&Bt.eventType&jt?this.manager.emit(this.options.event+"up",Bt):(this._input.timeStamp=D(),this.manager.emit(this.options.event,this._input)))}});function gi(){$a.apply(this,arguments)}re(gi,$a,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xn]},attrTest:function(Bt){return this._super.attrTest.call(this,Bt)&&(Math.abs(Bt.rotation)>this.options.threshold||this.state&Sa)}});function Qr(){$a.apply(this,arguments)}re(Qr,$a,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ot|dn,pointers:1},getTouchAction:function(){return Va.prototype.getTouchAction.call(this)},attrTest:function(Bt){var vn=this.options.direction,Io;return vn&(Ot|dn)?Io=Bt.overallVelocity:vn&Ot?Io=Bt.overallVelocityX:vn&dn&&(Io=Bt.overallVelocityY),this._super.attrTest.call(this,Bt)&&vn&Bt.offsetDirection&&Bt.distance>this.options.threshold&&Bt.maxPointers==this.options.pointers&&l(Io)>this.options.velocity&&Bt.eventType&jt},emit:function(Bt){var vn=ni(Bt.offsetDirection);vn&&this.manager.emit(this.options.event+vn,Bt),this.manager.emit(this.options.event,Bt)}});function Qi(){ma.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}re(Qi,ma,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ho]},process:function(Bt){var vn=this.options,Io=Bt.pointers.length===vn.pointers,No=Bt.distance<vn.threshold,_a=Bt.deltaTime<vn.time;if(this.reset(),Bt.eventType&rn&&this.count===0)return this.failTimeout();if(No&&_a&&Io){if(Bt.eventType!=jt)return this.failTimeout();var Ur=this.pTime?Bt.timeStamp-this.pTime<vn.interval:!0,fr=!this.pCenter||qt(this.pCenter,Bt.center)<vn.posThreshold;this.pTime=Bt.timeStamp,this.pCenter=Bt.center,!fr||!Ur?this.count=1:this.count+=1,this._input=Bt;var Ar=this.count%vn.taps;if(Ar===0)return this.hasRequireFailures()?(this._timer=m(function(){this.state=ko,this.tryEmit()},vn.interval,this),Sa):ko}return aa},failTimeout:function(){return this._timer=m(function(){this.state=aa},this.options.interval,this),aa},reset:function(){clearTimeout(this._timer)},tryEmit:function(Bt,vn){return vn===void 0&&(vn={isForceEmit:!1}),this.emit(Bt)},emit:function(){this.state==ko&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function rs(Bt,vn){return vn=vn||{},vn.recognizers=Ae(vn.recognizers,rs.defaults.preset),new Es(Bt,vn)}rs.VERSION="2.0.7",rs.defaults={domEvents:!1,touchAction:nn,enable:!0,inputTarget:null,inputClass:null,preset:[[gi,{enable:!1}],[Ha,{enable:!1},["rotate"]],[Qr,{direction:Ot}],[Va,{direction:Ot},["swipe"]],[Qi],[Qi,{event:"doubletap",taps:2},["tap"]],[or]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Li=1,ns=2;function Es(Bt,vn){this.options=S({},rs.defaults,vn||{}),this.options.inputTarget=this.options.inputTarget||Bt,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Bt,this.input=on(this),this.touchAction=new xa(this,this.options.touchAction),ys(this,!0),f(this.options.recognizers,function(Io){var No=this.add(new Io[0](Io[1]));Io[2]&&No.recognizeWith(Io[2]),Io[3]&&No.requireFailure(Io[3])},this)}Es.prototype={set:function(Bt){return S(this.options,Bt),Bt.touchAction&&this.touchAction.update(),Bt.inputTarget&&(this.input.destroy(),this.input.target=Bt.inputTarget,this.input.init()),this},stop:function(Bt){this.session.stopped=Bt?ns:Li},recognize:function(Bt){var vn=this.session;if(!vn.stopped){this.touchAction.preventDefaults(Bt);var Io,No=this.recognizers,_a=vn.curRecognizer;(!_a||_a&&_a.state&ko)&&(_a=vn.curRecognizer=null);for(var Ur=0;Ur<No.length;)Io=No[Ur],vn.stopped!==ns&&(!_a||Io==_a||Io.canRecognizeWith(_a))?Io.recognize(Bt):Io.reset(),!_a&&Io.state&(Sa|ln|ta)&&(_a=vn.curRecognizer=Io),Ur++}},get:function(Bt){if(Bt instanceof ma)return Bt;for(var vn=this.recognizers,Io=0;Io<vn.length;Io++)if(vn[Io].options.event==Bt)return vn[Io];return null},add:function(Bt){if(E(Bt,"add",this))return this;var vn=this.get(Bt.options.event);return vn&&this.remove(vn),this.recognizers.push(Bt),Bt.manager=this,this.touchAction.update(),Bt},remove:function(Bt){if(E(Bt,"remove",this))return this;if(Bt=this.get(Bt),Bt){var vn=this.recognizers,Io=lt(vn,Bt);Io!==-1&&(vn.splice(Io,1),this.touchAction.update())}return this},on:function(Bt,vn){if(Bt!==C&&vn!==C){var Io=this.handlers;return f(ne(Bt),function(No){Io[No]=Io[No]||[],Io[No].push(vn)}),this}},off:function(Bt,vn){if(Bt!==C){var Io=this.handlers;return f(ne(Bt),function(No){vn?Io[No]&&Io[No].splice(lt(Io[No],vn),1):delete Io[No]}),this}},emit:function(Bt,vn){this.options.domEvents&&sr(Bt,vn);var Io=this.handlers[Bt]&&this.handlers[Bt].slice();if(!(!Io||!Io.length)){vn.type=Bt,vn.preventDefault=function(){vn.srcEvent.preventDefault()};for(var No=0;No<Io.length;)Io[No](vn),No++}},destroy:function(){this.element&&ys(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function ys(Bt,vn){var Io=Bt.element;if(Io.style){var No;f(Bt.options.cssProps,function(_a,Ur){No=Ge(Io.style,Ur),vn?(Bt.oldCssProps[No]=Io.style[No],Io.style[No]=_a):Io.style[No]=Bt.oldCssProps[No]||""}),vn||(Bt.oldCssProps={})}}function sr(Bt,vn){var Io=M.createEvent("Event");Io.initEvent(Bt,!0,!0),Io.gesture=vn,vn.target.dispatchEvent(Io)}S(rs,{INPUT_START:rn,INPUT_MOVE:Lt,INPUT_END:jt,INPUT_CANCEL:mt,STATE_POSSIBLE:Ra,STATE_BEGAN:Sa,STATE_CHANGED:ln,STATE_ENDED:ta,STATE_RECOGNIZED:ko,STATE_CANCELLED:bo,STATE_FAILED:aa,DIRECTION_NONE:Jn,DIRECTION_LEFT:o,DIRECTION_RIGHT:so,DIRECTION_UP:Et,DIRECTION_DOWN:Jt,DIRECTION_HORIZONTAL:Ot,DIRECTION_VERTICAL:dn,DIRECTION_ALL:Ce,Manager:Es,Input:At,TouchAction:xa,TouchInput:Yn,MouseInput:wn,PointerEventInput:Qt,TouchMouseInput:Oo,SingleTouchInput:Qe,Recognizer:ma,AttrRecognizer:$a,Tap:Qi,Pan:Va,Swipe:Qr,Pinch:Ha,Rotate:gi,Press:or,on:Oe,off:Be,each:f,merge:We,extend:V,assign:S,inherit:re,bindFn:ve,prefixed:Ge});var mi=typeof k<"u"?k:typeof self<"u"?self:{};mi.Hammer=rs,a=(function(){return rs}).call(ot,i,ot,eo),a!==C&&(eo.exports=a)})(window,document,"Hammer")},94456:(eo,ot,i)=>{"use strict";i.d(ot,{w:()=>M,y:()=>P});var a=i(56202),k=i(15542);const M={electron:()=>k.um,wondershare:()=>k.um,mac:()=>k.um,windows:()=>k.JL},P=()=>(0,a.b8)()?"electron":ENV.IS_MO?"wondershare":(0,a.cX)()?"mac":"windows"},94590:(eo,ot,i)=>{"use strict";i.d(ot,{bZ:()=>P,kX:()=>C,mV:()=>M});var a=i(5209),k=i(78257);let M=function(q){return q.BackDropMenu="\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",q.TitleDropMenu="\u6807\u9898\u4E0B\u62C9\u83DC\u5355",q.Sharing="\u5206\u4EAB",q.Download="\u4E0B\u8F7D",q.Device="\u6F14\u793A",q.Layout="\u5E03\u5C40",q.View="\u89C6\u56FE",q.FullScreen="\u5168\u5C4F",q.ExitFullScreen="\u9000\u51FA\u5168\u5C4F",q.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",q.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",q.Sticky="\u6279\u6CE8",q.Comment="\u8BC4\u8BBA",q.CollaborationPointer="\u591A\u4EBA\u6307\u9488",q.VersionToDropMenu="\u7248\u672C\u8BB0\u5F55-\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",q.VersionToTitleMenu="\u7248\u672C\u8BB0\u5F55-\u6807\u9898\u4E0B\u62C9\u83DC\u5355",q.directory="\u76EE\u5F55",q.directoryPage="\u76EE\u5F55-\u9875\u9762",q.directoryLayer="\u76EE\u5F55-\u56FE\u5C42",q.Widget="\u7EC4\u4EF6",q.Icon="\u56FE\u6807",q.Image="\u56FE\u7247",q.Page="\u9875\u9762",q.Flow="\u6D41\u7A0B",q.Mind="\u8111\u56FE",q.Muban="\u6BCD\u7248",q.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",q.MubanPreview="\u6BCD\u7248\u6F14\u793A",q.PagePreview="\u9875\u9762\u6F14\u793A",q.AI="AI",q.NewbieVideo="\u5FEB\u901F\u5165\u95E8",q.EditMubanPreview="\u7F16\u8F91\u533A-\u6BCD\u7248\u9884\u89C8",q.EditBasketPreview="\u7F16\u8F91\u533A-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",q.EditAIComponentPreview="\u7F16\u8F91\u533A-AI\u7EC4\u4EF6\u9884\u89C8",q}({});const P={[k.lS.Directory]:M.directory,[k.lS.Builtin]:M.Widget,[k.lS.Icon]:M.Icon,[k.lS.Page]:M.Page,[k.lS.Asset]:M.Image,[k.lS.Flow]:M.Flow,[k.lS.Mind]:M.Mind,[k.lS.Template]:M.Muban,[k.lS.AI]:M.AI},C=q=>{let{operation_type:Y}=q;(0,a.kH)("edit_click_V8",{operation_type:Y})}},94986:(eo,ot,i)=>{"use strict";i.d(ot,{$:()=>M,t:()=>a});const a=P=>{const C=k(P);return M(C)},k=P=>({top:P.includes("t"),left:P.includes("l"),bottom:P.includes("b"),right:P.includes("r")}),M=P=>{const C=[];return Object.entries(P).forEach(q=>{let[Y,J]=q;return J&&C.push(Y)}),C}},95132:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>J});var a=i(94586),k=i(38502),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const P=M;var C=i(40080),q=function(l,D){return k.createElement(C.A,(0,a.A)({},l,{ref:D,icon:P}))},Y=k.forwardRef(q);const J=Y},95142:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M6.75 5.75C6.75 5.33579 7.08579 5 7.5 5L16 5C16.4142 5 16.75 5.33579 16.75 5.75C16.75 6.16421 16.4142 6.5 16 6.5H7.5C7.08579 6.5 6.75 6.16421 6.75 5.75Z",fill:"#19191A"}),a.createElement("path",{d:"M4 11.75C4 11.3358 4.33579 11 4.75 11H19C19.4142 11 19.75 11.3358 19.75 11.75C19.75 12.1642 19.4142 12.5 19 12.5H4.75C4.33579 12.5 4 12.1642 4 11.75Z",fill:"#19191A"}),a.createElement("path",{d:"M6.75 17.75C6.75 17.3358 7.08579 17 7.5 17H16C16.4142 17 16.75 17.3358 16.75 17.75C16.75 18.1642 16.4142 18.5 16 18.5H7.5C7.08579 18.5 6.75 18.1642 6.75 17.75Z",fill:"#19191A"}))})},95358:(eo,ot,i)=>{"use strict";i.d(ot,{v:()=>a});const a=k=>{let{data:M,params:P,productId:C="315118",isWonderShare:q=!1,wsLink:Y="https://mockitt.wondershare.com/feedback.html"}=k;if(q){window.open(Y,"_blank");return}const J=document.createElement("form");J.id="TucaoForm",J.name="form",document.body.appendChild(J);for(const O in M){const l=document.createElement("input");l.type="text",l.name=O,l.value=M[O],J.appendChild(l)}J.method="POST",J.target="_blank",J.action="https://support.qq.com/product/"+C+P,J.submit(),document.body.removeChild(J)}},95767:function(eo,ot,i){(function(a,k){eo.exports=k(i(38502))})(this,function(a){return(()=>{var k={703:(q,Y,J)=>{"use strict";var O=J(414);function l(){}function D(){}D.resetWarningCache=l,q.exports=function(){function m(h,S,V,We,re,ve){if(ve!==O){var we=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw we.name="Invariant Violation",we}}function E(){return m}m.isRequired=m;var f={array:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:E,element:m,elementType:m,instanceOf:E,node:m,objectOf:E,oneOf:E,oneOfType:E,shape:E,exact:E,checkPropTypes:D,resetWarningCache:l};return f.PropTypes=f,f}},697:(q,Y,J)=>{q.exports=J(703)()},414:q=>{"use strict";q.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},427:q=>{"use strict";q.exports=a}},M={};function P(q){var Y=M[q];if(Y!==void 0)return Y.exports;var J=M[q]={exports:{}};return k[q](J,J.exports,P),J.exports}P.n=q=>{var Y=q&&q.__esModule?()=>q.default:()=>q;return P.d(Y,{a:Y}),Y},P.d=(q,Y)=>{for(var J in Y)P.o(Y,J)&&!P.o(q,J)&&Object.defineProperty(q,J,{enumerable:!0,get:Y[J]})},P.o=(q,Y)=>Object.prototype.hasOwnProperty.call(q,Y),P.r=q=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})};var C={};return(()=>{"use strict";P.r(C),P.d(C,{Component:()=>rt,containCrop:()=>ne,default:()=>rt,makeAspectCrop:()=>Be});var q=P(427),Y=P.n(q),J=P(697),O=P.n(J);function l(Te){var Ge,ue,Me="";if(typeof Te=="string"||typeof Te=="number")Me+=Te;else if(typeof Te=="object")if(Array.isArray(Te))for(Ge=0;Ge<Te.length;Ge++)Te[Ge]&&(ue=l(Te[Ge]))&&(Me&&(Me+=" "),Me+=ue);else for(Ge in Te)Te[Ge]&&(Me&&(Me+=" "),Me+=Ge);return Me}function D(Te){return(D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge})(Te)}function m(Te,Ge){if(!(Te instanceof Ge))throw new TypeError("Cannot call a class as a function")}function E(Te,Ge){for(var ue=0;ue<Ge.length;ue++){var Me=Ge[ue];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Te,Me.key,Me)}}function f(Te,Ge){return(f=Object.setPrototypeOf||function(ue,Me){return ue.__proto__=Me,ue})(Te,Ge)}function h(Te,Ge){return!Ge||D(Ge)!=="object"&&typeof Ge!="function"?S(Te):Ge}function S(Te){if(Te===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Te}function V(Te){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(Ge){return Ge.__proto__||Object.getPrototypeOf(Ge)})(Te)}function We(Te,Ge){var ue=Object.keys(Te);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(Te);Ge&&(Me=Me.filter(function(Ze){return Object.getOwnPropertyDescriptor(Te,Ze).enumerable})),ue.push.apply(ue,Me)}return ue}function re(Te){for(var Ge=1;Ge<arguments.length;Ge++){var ue=arguments[Ge]!=null?arguments[Ge]:{};Ge%2?We(Object(ue),!0).forEach(function(Me){ve(Te,Me,ue[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Te,Object.getOwnPropertyDescriptors(ue)):We(Object(ue)).forEach(function(Me){Object.defineProperty(Te,Me,Object.getOwnPropertyDescriptor(ue,Me))})}return Te}function ve(Te,Ge,ue){return Ge in Te?Object.defineProperty(Te,Ge,{value:ue,enumerable:!0,configurable:!0,writable:!0}):Te[Ge]=ue,Te}function we(Te,Ge,ue){return Math.min(Math.max(Te,Ge),ue)}function Ae(Te){return Te&&!isNaN(Te.width)&&!isNaN(Te.height)}function Oe(Te){return Te==="n"?"s":Te==="ne"?"sw":Te==="e"?"w":Te==="se"?"nw":Te==="s"?"n":Te==="sw"?"ne":Te==="w"?"e":Te==="nw"?"se":Te}function Be(Te,Ge,ue){if(isNaN(Te.aspect))return console.warn("`crop.aspect` should be a number in order to make an aspect crop",Te),Te;var Me=re({unit:"px",x:0,y:0},Te);return Te.width&&(Me.height=Me.width/Te.aspect),Te.height&&(Me.width=Me.height*Te.aspect),Me.y+Me.height>ue&&(Me.height=ue-Me.y,Me.width=Me.height*Te.aspect),Me.x+Me.width>Ge&&(Me.width=Ge-Me.x,Me.height=Me.width/Te.aspect),Me}function tt(Te,Ge,ue){return Te.unit==="%"?Te:{unit:"%",aspect:Te.aspect,x:Te.x/Ge*100,y:Te.y/ue*100,width:Te.width/Ge*100,height:Te.height/ue*100}}function Xe(Te,Ge,ue){return Te.unit?Te.unit==="px"?Te:{unit:"px",aspect:Te.aspect,x:Te.x*Ge/100,y:Te.y*ue/100,width:Te.width*Ge/100,height:Te.height*ue/100}:re(re({},Te),{},{unit:"px"})}function ne(Te,Ge,ue,Me){var Ze=Xe(Ge,ue,Me),fe=Xe(Te,ue,Me),it=re({},Ze);if(!Ze.aspect)return Ze.x<0?(it.x=0,it.width+=Ze.x):Ze.x+Ze.width>ue&&(it.width=ue-Ze.x),Ze.y+Ze.height>Me&&(it.height=Me-Ze.y),it;var et=!1;Ze.x<0?(it.x=0,it.width+=Ze.x,it.height=it.width/Ze.aspect,et=!0):Ze.x+Ze.width>ue&&(it.width=ue-Ze.x,it.height=it.width/Ze.aspect,et=!0),et&&fe.y>it.y&&(it.y=Ze.y+(Ze.height-it.height));var Ut=!1;return it.y+it.height>Me&&(it.height=Me-Ze.y,it.width=it.height*Ze.aspect,Ut=!0),Ut&&fe.x>it.x&&(it.x=Ze.x+(Ze.width-it.width)),it}var lt={capture:!0,passive:!1},rt=function(Te){(function(et,Ut){if(typeof Ut!="function"&&Ut!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(Ut&&Ut.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Ut&&f(et,Ut)})(it,Te);var Ge,ue,Me,Ze,fe=(Me=it,Ze=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(et){return!1}}(),function(){var et,Ut=V(Me);if(Ze){var G=V(this).constructor;et=Reflect.construct(Ut,arguments,G)}else et=Ut.apply(this,arguments);return h(this,et)});function it(){var et;m(this,it);for(var Ut=arguments.length,G=new Array(Ut),Ht=0;Ht<Ut;Ht++)G[Ht]=arguments[Ht];return ve(S(et=fe.call.apply(fe,[this].concat(G))),"window",typeof window<"u"?window:{}),ve(S(et),"document",typeof document<"u"?document:{}),ve(S(et),"state",{}),ve(S(et),"keysDown",new Set),ve(S(et),"onCropPointerDown",function(Tt){var Vt=et.props,He=Vt.crop,rn=Vt.disabled,Lt=et.mediaDimensions,jt=Xe(He,Lt.width,Lt.height);if(!rn){Tt.cancelable&&Tt.preventDefault(),et.bindDocMove(),et.componentRef.focus({preventScroll:!0});var mt=Tt.target.dataset.ord,Jn=mt==="nw"||mt==="w"||mt==="sw",o=mt==="nw"||mt==="n"||mt==="ne";et.evData={clientStartX:Tt.clientX,clientStartY:Tt.clientY,cropStartWidth:jt.width,cropStartHeight:jt.height,cropStartX:Jn?jt.x+jt.width:jt.x,cropStartY:o?jt.y+jt.height:jt.y,xInversed:Jn,yInversed:o,xCrossOver:Jn,yCrossOver:o,startXCrossOver:Jn,startYCrossOver:o,isResize:Tt.target.dataset.ord,ord:mt},et.mouseDownOnCrop=!0,et.setState({cropIsActive:!0})}}),ve(S(et),"onComponentPointerDown",function(Tt){var Vt=et.props,He=Vt.crop,rn=Vt.disabled,Lt=Vt.locked,jt=Vt.keepSelection,mt=Vt.onChange,Jn=et.mediaWrapperRef.firstChild;if(Tt.target===Jn&&Jn.contains(Tt.target)&&!(rn||Lt||jt&&Ae(He))){Tt.cancelable&&Tt.preventDefault(),et.bindDocMove(),et.componentRef.focus({preventScroll:!0});var o=et.mediaWrapperRef.getBoundingClientRect(),so=Tt.clientX-o.left,Et=Tt.clientY-o.top,Jt={unit:"px",aspect:He?He.aspect:void 0,x:so,y:Et,width:0,height:0};et.evData={clientStartX:Tt.clientX,clientStartY:Tt.clientY,cropStartWidth:Jt.width,cropStartHeight:Jt.height,cropStartX:Jt.x,cropStartY:Jt.y,xInversed:!1,yInversed:!1,xCrossOver:!1,yCrossOver:!1,startXCrossOver:!1,startYCrossOver:!1,isResize:!0,ord:"nw"},et.mouseDownOnCrop=!0;var Ot=et.mediaDimensions,dn=Ot.width,Ce=Ot.height;mt(Xe(Jt,dn,Ce),tt(Jt,dn,Ce)),et.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}}),ve(S(et),"onDocPointerMove",function(Tt){var Vt=et.props,He=Vt.crop,rn=Vt.disabled,Lt=Vt.onChange,jt=Vt.onDragStart;if(!rn&&et.mouseDownOnCrop){Tt.cancelable&&Tt.preventDefault(),et.dragStarted||(et.dragStarted=!0,jt(Tt));var mt,Jn=S(et).evData;if(Jn.xDiff=Tt.clientX-Jn.clientStartX,Jn.yDiff=Tt.clientY-Jn.clientStartY,(mt=Jn.isResize?et.resizeCrop():et.dragCrop())!==He){var o=et.mediaDimensions,so=o.width,Et=o.height;Lt(Xe(mt,so,Et),tt(mt,so,Et))}}}),ve(S(et),"onComponentKeyDown",function(Tt){var Vt=et.props,He=Vt.crop,rn=Vt.disabled,Lt=Vt.onChange,jt=Vt.onComplete;if(!rn){et.keysDown.add(Tt.key);var mt=!1;if(Ae(He)){var Jn=et.makeNewCrop(),o=(navigator.platform.match("Mac")?Tt.metaKey:Tt.ctrlKey)?it.nudgeStepLarge:Tt.shiftKey?it.nudgeStepMedium:it.nudgeStep;if(et.keysDown.has("ArrowLeft")&&(Jn.x-=o,mt=!0),et.keysDown.has("ArrowRight")&&(Jn.x+=o,mt=!0),et.keysDown.has("ArrowUp")&&(Jn.y-=o,mt=!0),et.keysDown.has("ArrowDown")&&(Jn.y+=o,mt=!0),mt){Tt.cancelable&&Tt.preventDefault();var so=et.mediaDimensions,Et=so.width,Jt=so.height;Jn.x=we(Jn.x,0,Et-Jn.width),Jn.y=we(Jn.y,0,Jt-Jn.height);var Ot=Xe(Jn,Et,Jt),dn=tt(Jn,Et,Jt);Lt(Ot,dn),jt(Ot,dn)}}}}),ve(S(et),"onComponentKeyUp",function(Tt){et.keysDown.delete(Tt.key)}),ve(S(et),"onDocPointerDone",function(Tt){var Vt=et.props,He=Vt.crop,rn=Vt.disabled,Lt=Vt.onComplete,jt=Vt.onDragEnd;if(et.unbindDocMove(),!rn&&et.mouseDownOnCrop){et.mouseDownOnCrop=!1,et.dragStarted=!1;var mt=et.mediaDimensions,Jn=mt.width,o=mt.height;jt(Tt),Lt(Xe(He,Jn,o),tt(He,Jn,o)),et.setState({cropIsActive:!1,newCropIsBeingDrawn:!1})}}),ve(S(et),"onMediaLoaded",function(){var Tt=et.props,Vt=Tt.onComplete,He=Tt.onChange,rn=et.createNewCrop(),Lt=rn.pixelCrop,jt=rn.percentCrop;He(Lt,jt),Vt(Lt,jt)}),ve(S(et),"onImageLoad",function(Tt){var Vt=Tt.target,He=et.props,rn=He.onComplete,Lt=He.onChange;if((0,He.onImageLoaded)(Vt)!==!1){var jt=et.createNewCrop(),mt=jt.pixelCrop,Jn=jt.percentCrop;Lt(mt,Jn),rn(mt,Jn)}}),ve(S(et),"bindComponentRef",function(Tt){et.componentRef=Tt}),ve(S(et),"bindMediaWrapperRef",function(Tt){et.mediaWrapperRef=Tt}),ve(S(et),"bindImageRef",function(Tt){et.imageRef=Tt}),ve(S(et),"bindCropSelectionRef",function(Tt){et.cropSelectRef=Tt}),et}return Ge=it,(ue=[{key:"componentDidMount",value:function(){this.componentRef.addEventListener&&this.componentRef.addEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentWillUnmount",value:function(){this.componentRef.removeEventListener&&this.componentRef.removeEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentDidUpdate",value:function(et){var Ut=this.props.crop;if(this.imageRef&&et.crop!==Ut&&Ut.aspect&&(Ut.width&&!Ut.height||!Ut.width&&Ut.height)){var G=this.imageRef,Ht=G.width,Tt=G.height,Vt=Be(this.makeNewCrop(),Ht,Tt),He=Xe(Vt,Ht,Tt),rn=tt(Vt,Ht,Tt);this.props.onChange(He,rn),this.props.onComplete(He,rn)}}},{key:"bindDocMove",value:function(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,lt),this.document.addEventListener("pointerup",this.onDocPointerDone,lt),this.document.addEventListener("pointercancel",this.onDocPointerDone,lt),this.docMoveBound=!0)}},{key:"unbindDocMove",value:function(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,lt),this.document.removeEventListener("pointerup",this.onDocPointerDone,lt),this.document.removeEventListener("pointercancel",this.onDocPointerDone,lt),this.docMoveBound=!1)}},{key:"createNewCrop",value:function(){var et,Ut,G,Ht=this.mediaDimensions,Tt=Ht.width,Vt=Ht.height,He=(et=this.makeNewCrop(),Ut=Tt,G=Vt,!et.aspect||et.width&&et.height?et:Be(et,Ut,G));return{pixelCrop:Xe(He,Tt,Vt),percentCrop:tt(He,Tt,Vt)}}},{key:"mediaDimensions",get:function(){var et=this.mediaWrapperRef;return{width:et.clientWidth,height:et.clientHeight}}},{key:"getCropStyle",value:function(){var et=this.makeNewCrop(this.props.crop?this.props.crop.unit:"px");return{top:"".concat(et.y).concat(et.unit),left:"".concat(et.x).concat(et.unit),width:"".concat(et.width).concat(et.unit),height:"".concat(et.height).concat(et.unit)}}},{key:"getNewSize",value:function(){var et,Ut=this.props,G=Ut.crop,Ht=Ut.minWidth,Tt=Ut.maxWidth,Vt=Ut.minHeight,He=Ut.maxHeight,rn=this.evData,Lt=this.mediaDimensions,jt=Lt.width,mt=Lt.height,Jn=rn.cropStartWidth+rn.xDiff;return rn.xCrossOver&&(Jn=Math.abs(Jn)),Jn=we(Jn,Ht,Tt||jt),et=G.aspect?Jn/G.aspect:rn.cropStartHeight+rn.yDiff,rn.yCrossOver&&(et=Math.min(Math.abs(et),rn.cropStartY)),et=we(et,Vt,He||mt),G.aspect&&(Jn=we(et*G.aspect,0,jt)),{width:Jn,height:et}}},{key:"dragCrop",value:function(){var et=this.makeNewCrop(),Ut=this.evData,G=this.mediaDimensions,Ht=G.width,Tt=G.height;return et.x=we(Ut.cropStartX+Ut.xDiff,0,Ht-et.width),et.y=we(Ut.cropStartY+Ut.yDiff,0,Tt-et.height),et}},{key:"resizeCrop",value:function(){var et=this.evData,Ut=this.makeNewCrop(),G=et.ord;et.xInversed&&(et.xDiff-=2*et.cropStartWidth),et.yInversed&&(et.yDiff-=2*et.cropStartHeight);var Ht=this.getNewSize(),Tt=et.cropStartX,Vt=et.cropStartY;et.xCrossOver&&(Tt=Ut.x+(Ut.width-Ht.width)),et.yCrossOver&&(Vt=et.lastYCrossover===!1?Ut.y-Ht.height:Ut.y+(Ut.height-Ht.height));var He=this.mediaDimensions,rn=He.width,Lt=He.height,jt=ne(this.props.crop,{unit:Ut.unit,x:Tt,y:Vt,width:Ht.width,height:Ht.height,aspect:Ut.aspect},rn,Lt);return Ut.aspect||it.xyOrds.indexOf(G)>-1?(Ut.x=jt.x,Ut.y=jt.y,Ut.width=jt.width,Ut.height=jt.height):it.xOrds.indexOf(G)>-1?(Ut.x=jt.x,Ut.width=jt.width):it.yOrds.indexOf(G)>-1&&(Ut.y=jt.y,Ut.height=jt.height),et.lastYCrossover=et.yCrossOver,this.crossOverCheck(),Ut.width<this.props.minWidth||Ut.height<this.props.minHeight?this.props.crop:Ut}},{key:"createCropSelection",value:function(){var et=this.props,Ut=et.disabled,G=et.locked,Ht=et.renderSelectionAddon,Tt=et.ruleOfThirds,Vt=et.crop,He=this.getCropStyle();return Y().createElement("div",{ref:this.bindCropSelectionRef,style:He,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown},!Ut&&!G&&Y().createElement("div",{className:"ReactCrop__drag-elements"},Y().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),Y().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),Y().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),Y().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw"}),Y().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w"})),Ht&&Ae(Vt)&&Y().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:function(rn){return rn.stopPropagation()}},Ht(this.state)),Tt&&Y().createElement(Y().Fragment,null,Y().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),Y().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}},{key:"makeNewCrop",value:function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"px",Ut=re(re({},it.defaultCrop),this.props.crop||{}),G=this.mediaDimensions,Ht=G.width,Tt=G.height;return et==="px"?Xe(Ut,Ht,Tt):tt(Ut,Ht,Tt)}},{key:"crossOverCheck",value:function(){var et=this.evData,Ut=this.props,G=Ut.minWidth,Ht=Ut.minHeight;!G&&(!et.xCrossOver&&-Math.abs(et.cropStartWidth)-et.xDiff>=0||et.xCrossOver&&-Math.abs(et.cropStartWidth)-et.xDiff<=0)&&(et.xCrossOver=!et.xCrossOver),!Ht&&(!et.yCrossOver&&-Math.abs(et.cropStartHeight)-et.yDiff>=0||et.yCrossOver&&-Math.abs(et.cropStartHeight)-et.yDiff<=0)&&(et.yCrossOver=!et.yCrossOver);var Tt=et.xCrossOver!==et.startXCrossOver,Vt=et.yCrossOver!==et.startYCrossOver;et.inversedXOrd=!!Tt&&Oe(et.ord),et.inversedYOrd=!!Vt&&Oe(et.ord)}},{key:"render",value:function(){var et=this.props,Ut=et.children,G=et.circularCrop,Ht=et.className,Tt=et.crossorigin,Vt=et.crop,He=et.disabled,rn=et.locked,Lt=et.imageAlt,jt=et.onImageError,mt=et.renderComponent,Jn=et.src,o=et.style,so=et.imageStyle,Et=et.ruleOfThirds,Jt=this.state,Ot=Jt.cropIsActive,dn=Jt.newCropIsBeingDrawn,Ce=Ae(Vt)&&this.componentRef?this.createCropSelection():null,Pt=function(){for(var Nn,At,on=0,no="";on<arguments.length;)(Nn=arguments[on++])&&(At=l(Nn))&&(no&&(no+=" "),no+=At);return no}("ReactCrop",Ht,{"ReactCrop--active":Ot,"ReactCrop--disabled":He,"ReactCrop--locked":rn,"ReactCrop--new-crop":dn,"ReactCrop--fixed-aspect":Vt&&Vt.aspect,"ReactCrop--circular-crop":Vt&&G,"ReactCrop--rule-of-thirds":Vt&&Et,"ReactCrop--invisible-crop":!this.dragStarted&&Vt&&!Vt.width&&!Vt.height});return Y().createElement("div",{ref:this.bindComponentRef,className:Pt,style:o,onPointerDown:this.onComponentPointerDown,tabIndex:0,onKeyDown:this.onComponentKeyDown,onKeyUp:this.onComponentKeyUp},Y().createElement("div",{ref:this.bindMediaWrapperRef},mt||Y().createElement("img",{ref:this.bindImageRef,crossOrigin:Tt,className:"ReactCrop__image",style:so,src:Jn,onLoad:this.onImageLoad,onError:jt,alt:Lt})),Ut,Ce)}}])&&E(Ge.prototype,ue),it}(q.PureComponent);rt.xOrds=["e","w"],rt.yOrds=["n","s"],rt.xyOrds=["nw","ne","se","sw"],rt.nudgeStep=1,rt.nudgeStepMedium=10,rt.nudgeStepLarge=100,rt.defaultCrop={x:0,y:0,width:0,height:0,unit:"px"},rt.propTypes={className:O().string,children:O().oneOfType([O().arrayOf(O().node),O().node]),circularCrop:O().bool,crop:O().shape({aspect:O().number,x:O().number,y:O().number,width:O().number,height:O().number,unit:O().oneOf(["px","%"])}),crossorigin:O().string,disabled:O().bool,locked:O().bool,imageAlt:O().string,imageStyle:O().shape({}),keepSelection:O().bool,minWidth:O().number,minHeight:O().number,maxWidth:O().number,maxHeight:O().number,onChange:O().func.isRequired,onImageError:O().func,onComplete:O().func,onImageLoaded:O().func,onDragStart:O().func,onDragEnd:O().func,src:O().string.isRequired,style:O().shape({}),renderComponent:O().node,renderSelectionAddon:O().func,ruleOfThirds:O().bool},rt.defaultProps={circularCrop:!1,className:void 0,crop:void 0,crossorigin:void 0,disabled:!1,locked:!1,imageAlt:"",maxWidth:void 0,maxHeight:void 0,minWidth:0,minHeight:0,keepSelection:!1,onComplete:function(){},onImageError:function(){},onImageLoaded:function(){},onDragStart:function(){},onDragEnd:function(){},children:void 0,style:void 0,renderComponent:void 0,imageStyle:void 0,renderSelectionAddon:void 0,ruleOfThirds:!1}})(),C})()})},95975:eo=>{function ot(C){return C?typeof C=="string"?C:C.source:null}function i(C){return k("(?=",C,")")}function a(C){return k("(",C,")?")}function k(){for(var C=arguments.length,q=new Array(C),Y=0;Y<C;Y++)q[Y]=arguments[Y];return q.map(O=>ot(O)).join("")}function M(){for(var C=arguments.length,q=new Array(C),Y=0;Y<C;Y++)q[Y]=arguments[Y];return"("+q.map(O=>ot(O)).join("|")+")"}function P(C){const q=k(/[A-Z_]/,a(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),Y=/[A-Za-z0-9._:-]+/,J={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},O={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=C.inherit(O,{begin:/\(/,end:/\)/}),D=C.inherit(C.APOS_STRING_MODE,{className:"meta-string"}),m=C.inherit(C.QUOTE_STRING_MODE,{className:"meta-string"}),E={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:Y,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[J]},{begin:/'/,end:/'/,contains:[J]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[O,m,D,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[O,l,m,D]}]}]},C.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},J,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[E],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[E],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:k(/</,i(k(q,M(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:q,relevance:0,starts:E}]},{className:"tag",begin:k(/<\//,i(k(q,/>/))),contains:[{className:"name",begin:q,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}eo.exports=P},96163:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>E});var a=i(38502),k=Object.defineProperty,M=Object.defineProperties,P=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,J=(f,h,S)=>h in f?k(f,h,{enumerable:!0,configurable:!0,writable:!0,value:S}):f[h]=S,O=(f,h)=>{for(var S in h||(h={}))q.call(h,S)&&J(f,S,h[S]);if(C)for(var S of C(h))Y.call(h,S)&&J(f,S,h[S]);return f},l=(f,h)=>M(f,P(h)),D=(f,h)=>{var S={};for(var V in f)q.call(f,V)&&h.indexOf(V)<0&&(S[V]=f[V]);if(f!=null&&C)for(var V of C(f))h.indexOf(V)<0&&Y.call(f,V)&&(S[V]=f[V]);return S},E=(0,a.forwardRef)((f,h)=>{var S=f,{size:V,spin:We,style:re}=S,ve=D(S,["size","spin","style"]);const we=O(O({width:V||"var(--x-icon-size, 1em)",height:V||"var(--x-icon-size, 1em)",animation:We?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),re);return a.createElement("svg",l(O({ref:h,style:we},ve),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_75)"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_75)",fillOpacity:"0.68"}),a.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_75)",fillOpacity:"0.7"}),a.createElement("g",{filter:"url(#filter0_d_941_75)"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("mask",{id:"mask0_941_75",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},a.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),a.createElement("g",{mask:"url(#mask0_941_75)"},a.createElement("path",{d:"M7.25 7.62511V5.12506L6.43054 2.25701C6.43054 2.25701 6.28336 1.91172 5.89453 1.87109C5.61401 1.84179 5.10547 1.79297 5.10547 1.79297C4.55859 1.60547 4.30469 1.44922 3.25 1.125L1.75 2.6251L3.25035 7.62511H7.25Z",fill:"url(#paint3_linear_941_75)"})),a.createElement("defs",null,a.createElement("filter",{id:"filter0_d_941_75",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",null),a.createElement("feGaussianBlur",{stdDeviation:"0.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.47 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_75"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_75",result:"shape"})),a.createElement("linearGradient",{id:"paint0_linear_941_75",x1:"6.54545",y1:"1.59583",x2:"1.09229",y2:"7.30091",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#4D4840"}),a.createElement("stop",{offset:"1",stopColor:"#747880"})),a.createElement("linearGradient",{id:"paint1_linear_941_75",x1:"11.6786",y1:"10",x2:"8.13035",y2:"9.36952",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#E47C31"}),a.createElement("stop",{offset:"1",stopColor:"#E47C31",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint2_linear_941_75",x1:"11.0294",y1:"0.980891",x2:"7.84283",y2:"3.58088",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFF8DF"}),a.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),a.createElement("linearGradient",{id:"paint3_linear_941_75",x1:"6.75",y1:"4.125",x2:"6.75",y2:"7.625",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE485",stopOpacity:"0.6"}),a.createElement("stop",{offset:"1",stopColor:"#FFE485",stopOpacity:"0"}))))})},96986:(eo,ot,i)=>{"use strict";i.d(ot,{AU:()=>Oe,CI:()=>Be,Cb:()=>O,EH:()=>Y,Li:()=>h,M5:()=>J,Ou:()=>ve,QV:()=>V,RF:()=>f,V8:()=>We,VT:()=>Xe,Vr:()=>q,YW:()=>l,ZA:()=>tt,az:()=>re,c1:()=>E,fd:()=>m,nO:()=>D,sI:()=>C,sT:()=>we,uX:()=>S,ud:()=>Ae});var a=i(86493),k=i(70933),M=i(16454),P=i(12211);const C=ne=>ne.comment.isInCommentMode,q=ne=>ne.comment.allCommentList,Y=ne=>ne.comment.isShowCommentInCanvas,J=ne=>ne.comment.isShowCompletedComment,O=ne=>ne.comment.activeCommentCid,l=ne=>ne.comment.wigglingCommentCid,D=ne=>ne.comment.startCommentAnchorPoint,m=ne=>ne.comment.isCommentDragging,E=ne=>ne.comment.commentFilterSelected,f=ne=>ne.comment.emojiToastStyle,h=ne=>ne.comment.atStyle,S=ne=>ne.comment.editorRawContentObject,V=ne=>ne.comment.editorIsEditing,We=ne=>ne.comment.creatingComment,re=ne=>ne.comment.editingCommentCid,ve=ne=>ne.comment.editingRecordCid,we=ne=>ne.comment.previewCommentCacheTag,Ae=(0,P.Mz)([re,ve],(ne,lt)=>ne||lt),Oe=(0,P.Mz)([q,k.Ur],(ne,lt)=>{if(!lt)return[];const{cid:rt}=lt;return ne.filter(Te=>Te.screenCid===rt)}),Be=(0,P.Mz)([q,M.mf],(ne,lt)=>{const{activePageKey:rt,activeCanvasKey:Te}=lt;return ne.filter(ue=>ue.screenCid===rt&&ue.canvasCid===Te)}),tt=(0,P.Mz)([Oe,E,J],(ne,lt,rt)=>{const{user:Te}=window.MB;return ne.filter(Ge=>{const{status:ue,userInfo:Me,comments:Ze,message:fe}=Ge;if(ue==="creating")return!1;if(lt==="")return!0;if(lt==="me")return Me.cid===Te.cid;if(lt==="@me"){const it=(0,a.mx)(fe),{entityMap:et={}}=it;return Object.values(et).some(G=>G.type==="LINK"&&G.data&&G.data.url.includes(Te.cid))?!0:Ze.some(G=>{let Ht;try{const Tt=(0,a.mx)(G.message),{entityMap:Vt}=Tt;Ht=Object.values(Vt).some(He=>He.type==="LINK"&&He.data&&He.data.url.includes(Te.cid))}catch(Tt){Ht=!1}return Ht})}return!1}).filter(Ge=>Ge.status==="checked"?rt:!0)}),Xe=(0,P.Mz)([Be,E,J],(ne,lt,rt)=>{const{user:Te}=window.MB;return ne.filter(Ge=>{const{status:ue,userInfo:Me,comments:Ze,message:fe}=Ge;if(ue==="creating")return!1;if(lt==="")return!0;if(lt==="me")return Me.cid===Te.cid;if(lt==="@me"){const it=(0,a.mx)(fe),{entityMap:et={}}=it;return Object.values(et).some(G=>G.type==="LINK"&&G.data&&G.data.url.includes(Te.cid))?!0:Ze.some(G=>{let Ht;try{const Tt=(0,a.mx)(G.message),{entityMap:Vt}=Tt;Ht=Object.values(Vt).some(He=>He.type==="LINK"&&He.data&&He.data.url.includes(Te.cid))}catch(Tt){Ht=!1}return Ht})}return!1}).filter(Ge=>Ge.status==="checked"?rt:!0)})},97109:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>mn});var a=i(18381),k=i(16454),M=i(95549),P=i(38502),C=i(39e3),q=i(53732),Y=i.n(q),J=i(16976),O=i(29372),l=i(12211),D=i(70629),m=i(72214);const E=ht=>{let{scale:Fn,dispatch:Yt,isFullScreenMode:Gt,isSquare:Bn,isEmbedV2:qt,isCommunityComboPreview:Zt,theme:jn}=ht;const ro=()=>{Yt({type:"entry:preview:zoom-in"})},Tn=()=>{Yt({type:"entry:preview:zoom-out"})},bt=wn=>{Yt({type:"entry:preview:set:scale",payload:{scale:wn}})},Wt=()=>{Yt({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),Yt({type:"entry:auto-fit:preview:scale"})};return(0,m.jsx)(D.j,{isReadOnly:!1,isFullScreenMode:Gt,scale:Fn,theme:jn,isEmbedV2Preview:qt,isCommunityPreview:Bn,isCommunityComboPreview:Zt,handleZoomIn:ro,handleZoomOut:Tn,handleZoomInitialScale:Wt,handleZoomSpecifiedScale:bt,dispatch:Yt})},f=(0,l.Mz)([k.St,k.Ph,k.ub,k.m5],(ht,Fn,Yt,Gt)=>({scale:ht,isFullScreenMode:Fn,isCommunityComboPreview:Yt,theme:Gt})),h=(0,a.Ng)(ht=>f(ht))(E);var S=i(17307),V=i(83199),We=i(93257),re=i(67787);const ve=re.Ay.a.withConfig({displayName:"styles__StyledSimulatorDisplayModeNav",componentId:"sc-1moc13t-0"})(["position:relative;width:32px;height:36px;display:flex;justify-content:center;align-items:center;border:2px solid ",";background:",";transition:all 0.2s ease-out;cursor:pointer;.svg-icon{color:#fff;}"],ht=>ht.theme.color_proto,ht=>ht.theme.color_proto),we=re.Ay.ul.withConfig({displayName:"styles__StyledSimulatorDisplay",componentId:"sc-1moc13t-1"})(["list-style:none;position:absolute;padding:4px 0;width:108px;top:125px;left:calc(100% + 8px);background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);border-radius:2px;.option{display:flex;align-items:center;height:32px;padding:0 12px;color:",";transition:all 0.2s ease-out;cursor:pointer;.outside_artboard-icon{width:19px;height:16px;}.option-icon-box{display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:2px;}.svg-icon{transition:all 0.2s ease-out;color:",";}:hover{background:",";color:",";}&.active{background:",";color:",";.svg-icon{color:",";}}}"],ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_proto,ht=>ht.theme.color_bg_canvas,ht=>ht.theme.color_proto,ht=>ht.theme.color_proto);class Ae extends P.PureComponent{constructor(){var Fn;super(...arguments),Fn=this,(0,M.A)(this,"state",{isShowList:!1}),(0,M.A)(this,"OPTION_LIST",[{iconName:"art_board/preview/device",value:"device",label:I18N.pMainContent.prd_device,tooptipTitle:I18N.pMainContent.prd_device_des},{iconName:"art_board/preview/long_page",value:"long_page",label:I18N.pMainContent.prd_page,tooptipTitle:I18N.pMainContent.prd_page_des},{iconName:"art_board/preview/outside_artboard",value:"outside_artboard",label:I18N.pMainContent.prd_prd,tooptipTitle:I18N.pMainContent.prd_prd_des}]),(0,M.A)(this,"handleToggleDisplayMode",Yt=>{Yt.stopPropagation();const{dispatch:Gt}=this.props,Bn=Yt.currentTarget.dataset.value;Gt({type:"entry:preview-setting:update:simulatorType",payload:{simulatorType:Bn}})}),(0,M.A)(this,"handleClickModeNav",Yt=>{Yt.stopPropagation(),this.handleToggleShow()}),(0,M.A)(this,"handleToggleShow",function(Yt){Yt===void 0&&(Yt=void 0);const{isShowList:Gt}=Fn.state,Bn=Yt===void 0?!Gt:Yt;Fn.setState({isShowList:Bn})}),(0,M.A)(this,"handleClickOutSide",Yt=>{let{target:Gt}=Yt;const{isShowList:Bn}=this.state;Bn&&(Gt.closest(".modeNav")||Gt.closest(".display-mode-list")||this.handleToggleShow(!1))})}render(){const{simulatorType:Fn,isInspect:Yt,isShowOutsideArtboardNav:Gt}=this.props,{OPTION_LIST:Bn}=this,{isShowList:qt}=this.state;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(V.A,{content:I18N.imockSharing.preview_mode,direction:"right",children:(0,m.jsx)(ve,{className:"nav modeNav",onClick:this.handleClickModeNav,children:(0,m.jsx)(S.C,{name:"art_board/preview/"+Fn,className:"mode-icon "+Fn+"-icon"})})}),qt&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(we,{className:"display-mode-list",children:Bn.map(Zt=>{const{iconName:jn,value:ro,label:Tn,tooptipTitle:bt}=Zt;return Yt&&ro==="device"||!Gt&&ro==="outside_artboard"?null:(0,m.jsx)(We.A,{content:bt,direction:"right",distance:8,maxWidth:"230px",children:(0,m.jsxs)("li",{className:Y()("option",{active:ro===Fn}),"data-value":ro,onClick:this.handleToggleDisplayMode,children:[(0,m.jsx)("div",{className:"option-icon-box",children:(0,m.jsx)(S.C,{name:jn,className:ro+"-icon"})}),(0,m.jsx)("p",{children:Tn})]})},ro)})}),(0,m.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(this.handleClickOutSide,{capture:!0})})]})]})}}var Oe=i(28322),Be=i.n(Oe),tt=i(27660),Xe=i(47163),ne=i(14861);const lt=(0,tt.R)(()=>({"zh-CN":{android:{customize:I18N.pMainContent.customize},web:{desktop:I18N.pMainContent.desktop,smart_tv:I18N.pMainContent.smart_tv},smart_car:{car_play:I18N.pMainContent.car_play},customize:{customize:I18N.pMainContent.customize}},en:{android:{customize:"Customize"}}})),rt={name:"customize"},Te=ht=>{const{device:Fn,model:Yt}=ht,Gt=(0,Xe.w)(),Bn=ne.v2[Yt]||rt;return Be()(lt(),[Gt,Fn,Yt],Bn.name)},ue=re.Ay.div.withConfig({displayName:"style__StyledSquareOptionList",componentId:"sc-ixn107-0"})(["position:absolute;left:16px;top:16px;.option-list-wrapper{background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:2px;pointer-events:auto;width:32px;height:36px;overflow-y:hidden;&.isExpand{height:100%;overflow:unset;}&.shell-wrapper{margin:16px 0 0 0;.svg-icon{width:24px;height:24px;}}}.nav{border-radius:0 0 2px 2px;&:hover{border:2px solid rgb(22,132,252);}.svg-icon{width:24px;height:24px;}& > .svg-icon path{fill:#fff;}}.expand-btn{display:flex;justify-content:center;width:32px;height:20px;margin:4px 0 0 0;background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;cursor:pointer;.svg-icon{transition:all 0.2s ease-in-out;&.isExpand{transform:rotate(-180deg);}}}.command-wrapper{height:36px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:first-child{border-radius:2px 2px 0 0;}&:hover{background:#e8e8e8;}&.active{background:#1684fc;.svg-icon path{fill:#fff !important;}}}.wrapper-top{margin-bottom:8px;border-radius:2px;background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);}.locate{width:12px;height:16px;}.rotate{width:16px;height:16px;}.link{width:11px;height:16px;}.sticky-icon{width:14px;height:16px;}"],ht=>ht.theme.color_bg_white);class Me extends P.PureComponent{constructor(){super(...arguments),(0,M.A)(this,"state",{isExpand:!1}),(0,M.A)(this,"handleToggleHighlight",()=>{const{isHighlight:Fn}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Fn}})}),(0,M.A)(this,"handleToggleStatePanel",()=>{const{dispatch:Fn,isEmbedV2:Yt,isStatePanelShow:Gt}=this.props;Yt&&Fn({type:"entry:preview-setting:update:is-statePanel-show",payload:{isStatePanelShow:!Gt}})}),(0,M.A)(this,"handleToggleSticky",()=>{const{isStickyShow:Fn}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-sticky-show",payload:{isStickyShow:!Fn}})}),(0,M.A)(this,"handleExpandList",()=>{this.setState({isExpand:!this.state.isExpand})}),(0,M.A)(this,"handleToggleShellType",()=>{const{isShowShell:Fn,dispatch:Yt}=this.props;Yt({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!Fn}})})}render(){const{isHighlight:Fn,isStickyShow:Yt,isStickyAvailable:Gt,dispatch:Bn,simulatorType:qt,isShowOutsideArtboardNav:Zt,isShowShell:jn,project:ro,isEmbedV2:Tn,isStatePanelShow:bt}=this.props,{isExpand:Wt}=this.state,wn=qt==="device";return(0,m.jsxs)(ue,{children:[Tn&&(0,m.jsx)(V.A,{content:I18N.pMainContent.statePanel,direction:"right",children:(0,m.jsx)("a",{className:Y()("command-wrapper wrapper-top",{active:bt}),onClick:this.handleToggleStatePanel,children:(0,m.jsx)(S.C,{name:"art_board/state",style:{fontSize:"24px"}})})}),(0,m.jsxs)("div",{className:Y()("option-list-wrapper",{isExpand:Wt}),children:[(0,m.jsx)(V.A,{content:I18N.pSquareOptionsList.highlighted,direction:"left",children:(0,m.jsx)("div",{className:Y()("command-wrapper",{active:Fn}),onClick:this.handleToggleHighlight,children:(0,m.jsx)(S.C,{name:"square/preview/link",className:"link"})})}),Gt&&(0,m.jsx)(V.A,{content:I18N.pMainContent.sticky_visible,direction:"left",children:(0,m.jsx)("div",{className:Y()("command-wrapper",{active:Yt}),onClick:this.handleToggleSticky,children:(0,m.jsx)(S.C,{name:"square/preview/sticky",className:"sticky-icon"})})}),(0,m.jsx)(Ae,{isInspect:!1,simulatorType:qt,isShowOutsideArtboardNav:Zt,dispatch:Bn})]}),Wt&&wn&&(0,m.jsx)("div",{className:"option-list-wrapper shell-wrapper",children:(0,m.jsx)(V.A,{content:jn?""+Te(ro):I18N.pMainContent.hide_border,direction:"right",children:(0,m.jsx)("div",{className:Y()("command-wrapper","shell",{active:jn}),onClick:this.handleToggleShellType,children:jn?(0,m.jsx)(S.C,{name:"art_board/shell/open"}):(0,m.jsx)(S.C,{name:"art_board/shell/close"})})})}),(0,m.jsx)("div",{className:"expand-btn",onClick:this.handleExpandList,children:(0,m.jsx)(S.C,{name:"common/triangle-down",className:Y()({isExpand:Wt})})})]})}}const Ze=(0,a.Ng)(ht=>{const Fn=ht.container.previewSetting.isHighlight,Yt=ht.container.previewSetting.isStickyShow,Gt=ht.container.previewSetting.isStickyAvailable,Bn=ht.container.previewSetting.simulatorType,qt=ht.container.previewSetting.isShowOutsideArtboardNav,Zt=ht.container.previewSetting.isShowShell,jn=ht.container.current.rootProject,ro=ht.container.previewSetting.isStatePanelShow;return{isHighlight:Fn,isStickyShow:Yt,isStickyAvailable:Gt,simulatorType:Bn,isShowOutsideArtboardNav:qt,isShowShell:Zt,project:jn,isStatePanelShow:ro}})(Me);var fe=i(88849),it=i(80226),et=i(42715);const Ut=ht=>!ht.template&&!ht.combo&&["android","ipad","iphone"].includes(ht.device),G=ht=>!!(0,et.MR)(ht.model),Ht=ht=>G(ht)?"device":"none",Tt=(ht,Fn,Yt,Gt)=>{const Bn=Vt(ht,Fn),[qt,Zt]=Yt?[Bn.height,Bn.width]:[Bn.width,Bn.height],jn=Gt&&ht.platform!=="web"?60:0;return{width:qt,height:Zt+jn}},Vt=(ht,Fn)=>He(ht,Fn)||rn(ht,Fn),He=(ht,Fn)=>{let{model:Yt}=ht;if(Fn!=="device")return null;const Gt=(0,et.MR)(Yt);return Gt?{...Gt}:null},rn=(ht,Fn)=>{const Yt=Fn==="none"?0:12,Gt=ht.width+Yt*2,Bn=ht.height+Yt*2,[qt,Zt]=Ut(ht)?[Math.min(Gt,Bn),Math.max(Gt,Bn)]:[Gt,Bn];return{device:"default",top:Yt,left:Yt,width:qt,height:Zt}};var Lt=i(53940);const jt=re.Ay.div.withConfig({displayName:"styles__StyledAppContainer",componentId:"sc-pkjkb4-0"})(["flex:1;overflow:hidden;position:relative;.app-placeholder{min-width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;.app-content{background:black;&.hide-back{background:inherit;}}&.wait-drag{cursor:grab;}}.layout{position:absolute;top:15px;right:180px;}.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}"]);class mt extends P.PureComponent{constructor(){super(...arguments),(0,M.A)(this,"state",{isDraggingCanvas:!1}),(0,M.A)(this,"setElementRef",Fn=>this.$elem=Fn),(0,M.A)(this,"handleKeyDown",Fn=>{const{dispatch:Yt}=this.props,Gt=Fn.target.matches("input")||Fn.target.matches("textarea");Fn.keyCode===32&&!Gt&&(Fn.preventDefault(),Yt({type:"preview:set:key:flags",payload:{isSpaceDown:!0}})),Fn.keyCode===16&&!Gt&&(Fn.preventDefault(),Yt({type:"preview:set:key:flags",payload:{isShiftDown:!0}}))}),(0,M.A)(this,"handleKeyUp",()=>{this.props.dispatch({type:"preview:reset:key:flags"})}),(0,M.A)(this,"handleWheel",Fn=>{const{scale:Yt,dispatch:Gt,canvasOffset:{x:Bn,y:qt},isPreviewCombo:Zt}=this.props;if(Fn.preventDefault(),Zt)return;const jn=Math.max(-1,Math.min(Fn.deltaY,1));if(Fn.ctrlKey||Fn.metaKey){const{top:ro,left:Tn,right:bt,bottom:Wt}=this.$elem.getBoundingClientRect(),wn=(Tn+bt)/2,uo=(ro+Wt)/2;let In=Yt<=100?Yt-jn*5:Yt-Yt*jn*.05;const Dn=Fn.pageX-wn,So=Fn.pageY-uo;In=Math.min(Math.max(In,Lt.sI),Lt.sH);const Qt=In/Yt;if(Qt===1)return;const Ln=Dn+Qt*(Bn-Dn),Mn=So+Qt*(qt-So),Rt={x:Ln,y:Mn};Gt({type:"entry:preview:set:scale",payload:{scale:In}}),Gt({type:"preview:set:canvas:offset",payload:{offset:Rt}})}else Gt({type:"preview:set:canvas:offset",payload:{offset:{x:Bn-Fn.deltaX,y:qt-Fn.deltaY}}})}),(0,M.A)(this,"handleMouseDown",Fn=>{const{isSpaceDown:Yt}=this.props;Fn.button===1||Fn.button===2?this.initDraggingCanvas(Fn):Yt&&this.initDraggingCanvas(Fn)})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.addEventListener("mousedown",this.handleMouseDown,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.removeEventListener("mouseDown",this.handleMouseDown,{passive:!1})}initDraggingCanvas(Fn){const Yt=Fn.clientX,Gt=Fn.clientY,{canvasOffset:{x:Bn,y:qt},dispatch:Zt}=this.props;this.setState({isDraggingCanvas:!0});const jn=Tn=>{const bt={x:Bn+(Tn.clientX-Yt),y:qt+(Tn.clientY-Gt)};Zt({type:"preview:set:canvas:offset",payload:{offset:bt}})},ro=()=>{this.setState({isDraggingCanvas:!1}),document.removeEventListener("mousemove",jn),document.removeEventListener("mouseup",ro)};document.addEventListener("mousemove",jn),document.addEventListener("mouseup",ro)}render(){const{scale:Fn,project:Yt,screen:Gt,isShowShell:Bn,simulatorType:qt,previewOptions:Zt,isSpaceDown:jn,isFullScreenMode:ro,isCommunityComboPreview:Tn,isPreviewCombo:bt,isHiddenToolBar:Wt,dispatch:wn}=this.props,{isDraggingCanvas:uo}=this.state,In=Fn/100,Dn=Gt.orientation==="landscape",So=qt==="device"&&Bn?Ht(Yt):"none",{width:Qt,height:Ln}=Tt(Yt,So,Dn,Zt.isSquare),Mn={width:Qt*In,height:Ln*In},{isSquare:Rt,isEmbedV2:Qe}=Zt,En=!0,qn=!(Rt||Qe)&&!bt,Hn=Rt&&Yt.category!=="screen_list"&&Yt.category!=="combo_group"&&!ro;return(0,m.jsxs)(jt,{ref:this.setElementRef,children:[(0,m.jsx)("div",{className:Y()("app-placeholder",{"wait-drag":jn||uo}),style:Mn,children:(0,m.jsxs)("div",{className:Y()("app-content",!En&&"hide-back"),children:[(0,m.jsx)(J.A,{}),(0,m.jsx)(O.d,{})]})}),qn&&(0,m.jsx)(Ze,{isEmbedV2:Qe}),Hn&&(0,m.jsx)(it.D,{size:"compact",mode:"device",isShowInspect:!1}),!Qe&&!ro&&!bt&&(0,m.jsx)(h,{isSquare:Rt,isEmbedV2:Qe}),!Tn&&!bt&&(0,m.jsx)("div",{onMouseEnter:()=>wn({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>wn({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:Y()("preview-footer-toolbar",{hidden:Wt}),children:(0,m.jsx)(fe.A,{})}),(0,m.jsx)(C.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const Jn=(0,a.Ng)(ht=>{const Fn=(0,k.St)(ht),Yt=(0,k.Ur)(ht)||{},Gt=(0,k.PL)(ht)||{},Bn=(0,k.J8)(ht),qt=(0,k.lB)(ht),Zt=(0,k.Mh)(ht),jn=(0,k.bF)(ht),ro=(0,k.lQ)(ht),Tn=(0,k.ER)(ht),bt=(0,k.p$)(ht),Wt=(0,k.Nz)(ht),wn=!(Tn.x===Wt.x&&Tn.y===Wt.y),uo=16,{isFullScreenMode:In}=(0,k.ZR)(ht),Dn=(0,k.ub)(ht),So=(0,k.hM)(ht),Qt=(0,k.kM)(ht);return{scale:Fn,screen:Yt,project:Gt,screenGlue:Bn,simulatorType:qt,isShowShell:Zt,previewOptions:jn,isStickyShow:ro,canvasOffset:Tn,isSpaceDown:bt,isDisplaced:wn,zoomOptionBarRight:uo,isFullScreenMode:In,isCommunityComboPreview:Dn,isPreviewCombo:So,isHiddenToolBar:Qt}})(mt);var o=i(9135),so=i(13696),Et=i(601),Jt=i(509),Ot=i(9338),dn=i(58053),Ce=i(7198),Pt=i(3149),Nn=i(12583),At=i(82738),on=i(33236);const no=re.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-vzhfqv-0"})(["width:100%;height:100%;display:flex;flex-direction:",";background:",";"],ht=>ht.isPreviewCombo?"column":"row",ht=>ht.theme.color_bg_canvas);class mo extends P.PureComponent{constructor(){super(...arguments),(0,M.A)(this,"keyboardManager",new Ce.Rr),(0,M.A)(this,"handleFullScreenChange",()=>{dn.A.isFullscreen||(this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}))})}preventDefault(Fn){Fn.preventDefault()}componentDidMount(){dn.A.on("change",this.handleFullScreenChange)}componentWillUnmount(){dn.A.off("change",this.handleFullScreenChange)}render(){const{previewOptions:Fn,previewSetting:Yt,isCommunityComboPreview:Gt,isPreviewCombo:Bn,onCloseModal:qt}=this.props,{isSquare:Zt,isEmbedV2:jn}=Fn,{isFullScreenMode:ro}=Yt,Tn=jn&&ro||Zt&&!Gt,bt=jn&&ro,Wt=jn||Zt&&ro||Bn,wn=jn||Gt||Bn;return(0,m.jsx)(Ce.M.Provider,{value:this.keyboardManager,children:(0,m.jsx)(At.$,{children:(0,m.jsx)(Ot.A,{children:(0,m.jsxs)(no,{onContextMenu:this.preventDefault,isPreviewCombo:Bn,children:[Wt&&(0,m.jsx)(o.A,{onCloseModal:qt}),Tn&&(0,m.jsx)(so.A,{}),(0,m.jsx)(Jn,{}),bt&&(0,m.jsx)(Et.A,{}),!Bn&&(0,m.jsx)(Nn.Cd,{sheet:Zt||jn?Pt.r:Pt.t}),wn&&(0,m.jsx)(Jt.A,{}),!Bn&&(0,m.jsx)(on.r,{})]})})})})}}const mn=(0,a.Ng)(ht=>{const Fn=(0,k.ZR)(ht),Yt=(0,k.bF)(ht),Gt=(0,k.ub)(ht),Bn=(0,k.hM)(ht);return{previewOptions:Yt,previewSetting:Fn,isCommunityComboPreview:Gt,isPreviewCombo:Bn}})(mo)},97320:(eo,ot,i)=>{"use strict";i.d(ot,{Ay:()=>we,MG:()=>ve,XM:()=>E,j_:()=>J,wj:()=>m});var a=i(61972),k=i(55095),M=i(91112),P=i(48150),C=i(58196),q=i(35125),Y=i(88124);const J=Ae=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ae,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),O=Ae=>({borderColor:Ae.activeBorderColor,boxShadow:Ae.activeShadow,outline:0,backgroundColor:Ae.activeBg}),l=Ae=>{const{paddingBlockLG:Oe,lineHeightLG:Be,borderRadiusLG:tt,paddingInlineLG:Xe}=Ae;return{padding:(0,a.zA)(Oe)+" "+(0,a.zA)(Xe),fontSize:Ae.inputFontSizeLG,lineHeight:Be,borderRadius:tt}},D=Ae=>({padding:(0,a.zA)(Ae.paddingBlockSM)+" "+(0,a.zA)(Ae.paddingInlineSM),fontSize:Ae.inputFontSizeSM,borderRadius:Ae.borderRadiusSM}),m=Ae=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:(0,a.zA)(Ae.paddingBlock)+" "+(0,a.zA)(Ae.paddingInline),color:Ae.colorText,fontSize:Ae.inputFontSize,lineHeight:Ae.lineHeight,borderRadius:Ae.borderRadius,transition:"all "+Ae.motionDurationMid},J(Ae.colorTextPlaceholder)),{"&-lg":Object.assign({},l(Ae)),"&-sm":Object.assign({},D(Ae)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),E=Ae=>{const{componentCls:Oe,antCls:Be}=Ae;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ae.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg "+Oe+", &-lg > "+Oe+"-group-addon"]:Object.assign({},l(Ae)),["&-sm "+Oe+", &-sm > "+Oe+"-group-addon"]:Object.assign({},D(Ae)),["&-lg "+Be+"-select-single "+Be+"-select-selector"]:{height:Ae.controlHeightLG},["&-sm "+Be+"-select-single "+Be+"-select-selector"]:{height:Ae.controlHeightSM},["> "+Oe]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[Oe+"-group"]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 "+(0,a.zA)(Ae.paddingInline),color:Ae.colorText,fontWeight:"normal",fontSize:Ae.inputFontSize,textAlign:"center",borderRadius:Ae.borderRadius,transition:"all "+Ae.motionDurationSlow,lineHeight:1,[Be+"-select"]:{margin:(0,a.zA)(Ae.calc(Ae.paddingBlock).add(1).mul(-1).equal())+" "+(0,a.zA)(Ae.calc(Ae.paddingInline).mul(-1).equal()),["&"+Be+"-select-single:not("+Be+"-select-customize-input):not("+Be+"-pagination-size-changer)"]:{[Be+"-select-selector"]:{backgroundColor:"inherit",border:(0,a.zA)(Ae.lineWidth)+" "+Ae.lineType+" transparent",boxShadow:"none"}}},[Be+"-cascader-picker"]:{margin:"-9px "+(0,a.zA)(Ae.calc(Ae.paddingInline).mul(-1).equal()),backgroundColor:"transparent",[Be+"-cascader-input"]:{textAlign:"start",border:0,boxShadow:"none"}}}},[Oe]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[Oe+"-search-with-button &"]:{zIndex:0}}},["> "+Oe+":first-child, "+Oe+"-group-addon:first-child"]:{borderStartEndRadius:0,borderEndEndRadius:0,[Be+"-select "+Be+"-select-selector"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> "+Oe+"-affix-wrapper"]:{["&:not(:first-child) "+Oe]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) "+Oe]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> "+Oe+":last-child, "+Oe+"-group-addon:last-child"]:{borderStartStartRadius:0,borderEndStartRadius:0,[Be+"-select "+Be+"-select-selector"]:{borderStartStartRadius:0,borderEndStartRadius:0}},[Oe+"-affix-wrapper"]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[Oe+"-search &"]:{borderStartStartRadius:Ae.borderRadius,borderEndStartRadius:Ae.borderRadius}},["&:not(:first-child), "+Oe+"-search &:not(:first-child)"]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&"+Oe+"-group-compact"]:Object.assign(Object.assign({display:"block"},(0,k.t6)()),{[Oe+"-group-addon, "+Oe+"-group-wrap, > "+Oe]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ae.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},["\n & > "+Oe+"-affix-wrapper,\n & > "+Oe+"-number-affix-wrapper,\n & > "+Be+"-picker-range\n "]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:Ae.calc(Ae.lineWidth).mul(-1).equal(),borderInlineEndWidth:Ae.lineWidth},[Oe]:{float:"none"},["& > "+Be+"-select > "+Be+"-select-selector,\n & > "+Be+"-select-auto-complete "+Oe+",\n & > "+Be+"-cascader-picker "+Oe+",\n & > "+Oe+"-group-wrapper "+Oe]:{borderInlineEndWidth:Ae.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},["& > "+Be+"-select-focused"]:{zIndex:1},["& > "+Be+"-select > "+Be+"-select-arrow"]:{zIndex:1},["& > *:first-child,\n & > "+Be+"-select:first-child > "+Be+"-select-selector,\n & > "+Be+"-select-auto-complete:first-child "+Oe+",\n & > "+Be+"-cascader-picker:first-child "+Oe]:{borderStartStartRadius:Ae.borderRadius,borderEndStartRadius:Ae.borderRadius},["& > *:last-child,\n & > "+Be+"-select:last-child > "+Be+"-select-selector,\n & > "+Be+"-cascader-picker:last-child "+Oe+",\n & > "+Be+"-cascader-picker-focused:last-child "+Oe]:{borderInlineEndWidth:Ae.lineWidth,borderStartEndRadius:Ae.borderRadius,borderEndEndRadius:Ae.borderRadius},["& > "+Be+"-select-auto-complete "+Oe]:{verticalAlign:"top"},[Oe+"-group-wrapper + "+Oe+"-group-wrapper"]:{marginInlineStart:Ae.calc(Ae.lineWidth).mul(-1).equal(),[Oe+"-affix-wrapper"]:{borderRadius:0}},[Oe+"-group-wrapper:not(:last-child)"]:{["&"+Oe+"-search > "+Oe+"-group"]:{["& > "+Oe+"-group-addon > "+Oe+"-search-button"]:{borderRadius:0},["& > "+Oe]:{borderStartStartRadius:Ae.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ae.borderRadius}}}})}},f=Ae=>{const{componentCls:Oe,controlHeightSM:Be,lineWidth:tt,calc:Xe}=Ae,lt=Xe(Be).sub(Xe(tt).mul(2)).sub(16).div(2).equal();return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.dF)(Ae)),m(Ae)),(0,Y.Eb)(Ae)),(0,Y.sA)(Ae)),(0,Y.lB)(Ae)),(0,Y.aP)(Ae)),{'&[type="color"]':{height:Ae.controlHeight,["&"+Oe+"-lg"]:{height:Ae.controlHeightLG},["&"+Oe+"-sm"]:{height:Be,paddingTop:lt,paddingBottom:lt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},h=Ae=>{const{componentCls:Oe}=Ae;return{[Oe+"-clear-icon"]:{margin:0,padding:0,lineHeight:0,color:Ae.colorTextQuaternary,fontSize:Ae.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color "+Ae.motionDurationSlow,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:Ae.colorIcon},"&:active":{color:Ae.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 "+(0,a.zA)(Ae.inputAffixPadding)}}}},S=Ae=>{const{componentCls:Oe,inputAffixPadding:Be,colorTextDescription:tt,motionDurationSlow:Xe,colorIcon:ne,colorIconHover:lt,iconCls:rt}=Ae,Te=Oe+"-affix-wrapper",Ge=Oe+"-affix-wrapper-disabled";return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},m(Ae)),{display:"inline-flex",["&:not("+Oe+"-disabled):hover"]:{zIndex:1,[Oe+"-search-with-button &"]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input"+Oe]:{padding:0},["> input"+Oe+", > textarea"+Oe]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[Oe]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ae.paddingXS}},"&-show-count-suffix":{color:tt,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:Ae.paddingXXS},"&-prefix":{marginInlineEnd:Be},"&-suffix":{marginInlineStart:Be}}}),h(Ae)),{[""+rt+Oe+"-password-icon"]:{color:ne,cursor:"pointer",transition:"all "+Xe,"&:hover":{color:lt}}}),[Oe+"-underlined"]:{borderRadius:0},[Ge]:{[""+rt+Oe+"-password-icon"]:{color:ne,cursor:"not-allowed","&:hover":{color:ne}}}}},V=Ae=>{const{componentCls:Oe,borderRadiusLG:Be,borderRadiusSM:tt}=Ae;return{[Oe+"-group"]:Object.assign(Object.assign(Object.assign({},(0,k.dF)(Ae)),E(Ae)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[Oe+"-group-addon"]:{borderRadius:Be,fontSize:Ae.inputFontSizeLG}},"&-sm":{[Oe+"-group-addon"]:{borderRadius:tt}}},(0,Y.nm)(Ae)),(0,Y.Vy)(Ae)),{["&:not("+Oe+"-compact-first-item):not("+Oe+"-compact-last-item)"+Oe+"-compact-item"]:{[Oe+", "+Oe+"-group-addon"]:{borderRadius:0}},["&:not("+Oe+"-compact-last-item)"+Oe+"-compact-first-item"]:{[Oe+", "+Oe+"-group-addon"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not("+Oe+"-compact-first-item)"+Oe+"-compact-last-item"]:{[Oe+", "+Oe+"-group-addon"]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not("+Oe+"-compact-last-item)"+Oe+"-compact-item"]:{[Oe+"-affix-wrapper"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not("+Oe+"-compact-first-item)"+Oe+"-compact-item"]:{[Oe+"-affix-wrapper"]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},We=Ae=>{const{componentCls:Oe,antCls:Be}=Ae,tt=Oe+"-search";return{[tt]:{[Oe]:{"&:hover, &:focus":{["+ "+Oe+"-group-addon "+tt+"-button:not("+Be+"-btn-color-primary):not("+Be+"-btn-variant-text)"]:{borderInlineStartColor:Ae.colorPrimaryHover}}},[Oe+"-affix-wrapper"]:{height:Ae.controlHeight,borderRadius:0},[Oe+"-lg"]:{lineHeight:Ae.calc(Ae.lineHeightLG).sub(2e-4).equal()},["> "+Oe+"-group"]:{["> "+Oe+"-group-addon:last-child"]:{insetInlineStart:-1,padding:0,border:0,[tt+"-button"]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[tt+"-button:not("+Be+"-btn-color-primary)"]:{color:Ae.colorTextDescription,"&:hover":{color:Ae.colorPrimaryHover},"&:active":{color:Ae.colorPrimaryActive},["&"+Be+"-btn-loading::before"]:{inset:0}}}},[tt+"-button"]:{height:Ae.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[Oe+"-affix-wrapper, "+tt+"-button"]:{height:Ae.controlHeightLG}},"&-small":{[Oe+"-affix-wrapper, "+tt+"-button"]:{height:Ae.controlHeightSM}},"&-rtl":{direction:"rtl"},["&"+Oe+"-compact-item"]:{["&:not("+Oe+"-compact-last-item)"]:{[Oe+"-group-addon"]:{[Oe+"-search-button"]:{marginInlineEnd:Ae.calc(Ae.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not("+Oe+"-compact-first-item)"]:{[Oe+","+Oe+"-affix-wrapper"]:{borderRadius:0}},["> "+Oe+"-group-addon "+Oe+"-search-button,\n > "+Oe+",\n "+Oe+"-affix-wrapper"]:{"&:hover, &:focus, &:active":{zIndex:2}},["> "+Oe+"-affix-wrapper-focused"]:{zIndex:2}}}}},re=Ae=>{const{componentCls:Oe}=Ae;return{[Oe+"-out-of-range"]:{["&, & input, & textarea, "+Oe+"-show-count-suffix, "+Oe+"-data-count"]:{color:Ae.colorError}}}},ve=(0,C.OF)(["Input","Shared"],Ae=>{const Oe=(0,P.oX)(Ae,(0,q.C)(Ae));return[f(Oe),S(Oe)]},q.b,{resetFont:!1}),we=(0,C.OF)(["Input","Component"],Ae=>{const Oe=(0,P.oX)(Ae,(0,q.C)(Ae));return[V(Oe),We(Oe),re(Oe),(0,M.G)(Oe)]},q.b,{resetFont:!1})},97605:(eo,ot,i)=>{"use strict";i.d(ot,{Ep:()=>C,Km:()=>P,Qx:()=>q,gE:()=>Y});var a=i(14861),k=i(56202),M=i(15170);const P=J=>{const O=(0,M.y)(J);return((0,k.cX)()?"mac":(0,k.uF)()?"windows":"other-os")+" "+O+" "+J},C=J=>{var O;const l=((O=Object.entries(a.Am).find(D=>{let[m,E]=D;return E.includes(J)}))==null?void 0:O[0])||"";return(0,M.y)(l)+" "+J},q=()=>(0,k.cX)()?"mac":(0,k.uF)()?"windows":"other-os",Y=(J,O)=>{const l=J.orientation,D=C(O);return"mb-screen "+q()+" "+D+" "+l}},97644:(eo,ot,i)=>{"use strict";i.d(ot,{e:()=>M,l:()=>k});var a=i(67787);/*!
NOTICE: 内含我们的改动, 请勿升级版本
NOTICE: 内含我们的改动, 请勿升级版本
NOTICE: 内含我们的改动, 请勿升级版本
Animate.css - http://daneden.me/animate
Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2015 Daniel Eden
*/const k=(0,a.DU)([".animated{animation-duration:1s;animation-fill-mode:backwards;}.animated.infinite{animation-iteration-count:infinite;}.animated.bounceIn{animation-duration:.75s;}@keyframes bounce{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0);}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-30px,0);}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-15px,0);}90%{transform:translate3d(0,-4px,0);}}.bounce{animation-name:bounce;transform-origin:center bottom;}@keyframes flash{from,50%,to{opacity:1;}25%,75%{opacity:0;}}.flash{animation-name:flash;}@keyframes pulse{from{transform:scale3d(1,1,1);}50%{transform:scale3d(1.05,1.05,1.05);}to{transform:scale3d(1,1,1);}}.pulse{animation-name:pulse;}@keyframes rubberBand{from{transform:scale3d(1,1,1);}30%{transform:scale3d(1.25,0.75,1);}40%{transform:scale3d(0.75,1.25,1);}50%{transform:scale3d(1.15,0.85,1);}65%{transform:scale3d(.95,1.05,1);}75%{transform:scale3d(1.05,.95,1);}to{transform:scale3d(1,1,1);}}.rubberBand{animation-name:rubberBand;}@keyframes shake{from,to{transform:translate3d(0,0,0);}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0);}20%,40%,60%,80%{transform:translate3d(10px,0,0);}}.shake{animation-name:shake;}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg);}40%{transform:rotate3d(0,0,1,-10deg);}60%{transform:rotate3d(0,0,1,5deg);}80%{transform:rotate3d(0,0,1,-5deg);}to{transform:rotate3d(0,0,1,0deg);}}.swing{transform-origin:top center;animation-name:swing;}@keyframes tada{from{transform:scale3d(1,1,1);}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);}to{transform:scale3d(1,1,1);}}.tada{animation-name:tada;}@keyframes wobble{from{transform:none;}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);}to{transform:none;}}.wobble{animation-name:wobble;}@keyframes jello{from,11.1%,to{transform:none;}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg);}33.3%{transform:skewX(6.25deg) skewY(6.25deg);}44.4%{transform:skewX(-3.125deg) skewY(-3.125deg);}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg);}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg);}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg);}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg);}}.jello{animation-name:jello;transform-origin:center;}@keyframes bounceIn{from,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:scale3d(.3,.3,.3);}20%{transform:scale3d(1.1,1.1,1.1);}40%{transform:scale3d(.9,.9,.9);}60%{opacity:1;transform:scale3d(1.03,1.03,1.03);}80%{transform:scale3d(.97,.97,.97);}to{opacity:1;transform:scale3d(1,1,1);}}.bounceIn{animation-name:bounceIn;}@keyframes bounceInDown{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(0,-3000px,0);}60%{opacity:1;transform:translate3d(0,25px,0);}75%{transform:translate3d(0,-10px,0);}90%{transform:translate3d(0,5px,0);}to{transform:none;}}.bounceInDown{animation-name:bounceInDown;}@keyframes bounceInLeft{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(-3000px,0,0);}60%{opacity:1;transform:translate3d(25px,0,0);}75%{transform:translate3d(-10px,0,0);}90%{transform:translate3d(5px,0,0);}to{transform:none;}}.bounceInLeft{animation-name:bounceInLeft;}@keyframes bounceInRight{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(3000px,0,0);}60%{opacity:1;transform:translate3d(-25px,0,0);}75%{transform:translate3d(10px,0,0);}90%{transform:translate3d(-5px,0,0);}to{transform:none;}}.bounceInRight{animation-name:bounceInRight;}@keyframes bounceInUp{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(0,3000px,0);}60%{opacity:1;transform:translate3d(0,-20px,0);}75%{transform:translate3d(0,10px,0);}90%{transform:translate3d(0,-5px,0);}to{transform:translate3d(0,0,0);}}.bounceInUp{animation-name:bounceInUp;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}.fadeIn{animation-name:fadeIn;}@keyframes fadeOut{from{opacity:1;}to{opacity:0;}}.fadeOut{animation-name:fadeOut;}@keyframes flipInX{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg);}to{transform:perspective(400px);}}.flipInX{backface-visibility:visible !important;animation-name:flipInX;}@keyframes flipInY{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg);}to{transform:perspective(400px);}}.flipInY{backface-visibility:visible !important;animation-name:flipInY;}@keyframes spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}@keyframes spinning-reverse{0%{transform:rotate(359deg);}100%{transform:rotate(0deg);}}.spinning{animation-name:spinning;animation-timing-function:linear;}.spinning-reverse{animation-name:spinning-reverse;animation-timing-function:linear;}@keyframes rotateIn{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0;}to{transform-origin:center;transform:none;opacity:1;}}.rotateIn{animation-name:rotateIn;}@keyframes rotateInDownLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInDownLeft{animation-name:rotateInDownLeft;}@keyframes rotateInDownRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInDownRight{animation-name:rotateInDownRight;}@keyframes rotateInUpLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInUpLeft{animation-name:rotateInUpLeft;}@keyframes rotateInUpRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInUpRight{animation-name:rotateInUpRight;}@keyframes rollIn{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);}to{opacity:1;transform:none;}}.rollIn{animation-name:rollIn;}@keyframes zoomIn{from{opacity:0;transform:scale3d(.3,.3,.3);}50%{opacity:1;}}.zoomIn{animation-name:zoomIn;}@keyframes zoomInDown{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInDown{animation-name:zoomInDown;}@keyframes zoomInLeft{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInLeft{animation-name:zoomInLeft;}@keyframes zoomInRight{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInRight{animation-name:zoomInRight;}@keyframes zoomInUp{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInUp{animation-name:zoomInUp;}@keyframes slideInDown{from{transform:translate3d(0,-100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInDown{animation-name:slideInDown;}@keyframes slideInLeft{from{transform:translate3d(-100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInLeft{animation-name:slideInLeft;}@keyframes slideInRight{from{transform:translate3d(100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInRight{animation-name:slideInRight;}@keyframes slideInUp{from{transform:translate3d(0,100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInUp{animation-name:slideInUp;}@keyframes lightSpeedIn{from{transform:translate3d(100%,0,0) skewX(-30deg);opacity:0;}60%{transform:skewX(20deg);opacity:1;}80%{transform:skewX(-5deg);opacity:1;}to{transform:none;opacity:1;}}.lightSpeedIn{animation-name:lightSpeedIn;animation-timing-function:ease-out;}@keyframes shakeY{from,to{transform:translate3d(0,0,0);}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0);}20%,40%,60%,80%{transform:translate3d(0,10px,0);}}.shakeY{animation-name:shakeY;}@keyframes headShake{0%{transform:translateX(0);}6.5%{transform:translateX(-6px) rotateY(-9deg);}18.5%{transform:translateX(5px) rotateY(7deg);}31.5%{transform:translateX(-3px) rotateY(-5deg);}43.5%{transform:translateX(2px) rotateY(3deg);}50%{transform:translateX(0);}}.headShake{animation-name:headShake;animation-timing-function:ease-in-out;}@keyframes heartBeat{0%{transform:scale(1);}14%{transform:scale(1.3);}28%{transform:scale(1);}42%{transform:scale(1.3);}70%{transform:scale(1);}}.heartBeat{animation-name:heartBeat;animation-timing-function:ease-in-out;}@keyframes zoomOut{from{opacity:1;}50%{opacity:0;transform:scale3d(0.3,0.3,0.3);}to{opacity:0;}}.zoomOut{animation-name:zoomOut;}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1);}}.zoomOutDown{animation-name:zoomOutDown;transform-origin:center bottom;}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(42px,0,0);}to{opacity:0;transform:scale(0.1) translate3d(-2000px,0,0);}}.zoomOutLeft{animation-name:zoomOutLeft;transform-origin:left center;}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-42px,0,0);}to{opacity:0;transform:scale(0.1) translate3d(2000px,0,0);}}.zoomOutRight{animation-name:zoomOutRight;transform-origin:right center;}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1);}}.zoomOutUp{animation-name:zoomOutUp;transform-origin:center bottom;}@keyframes slideOutDown{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(0,100%,0);}}.slideOutDown{animation-name:slideOutDown;}@keyframes slideOutLeft{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(-100%,0,0);}}.slideOutLeft{animation-name:slideOutLeft;}@keyframes slideOutRight{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(100%,0,0);}}.slideOutRight{animation-name:slideOutRight;}@keyframes slideOutUp{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(0,-100%,0);}}.slideOutUp{animation-name:slideOutUp;}@keyframes rollOut{from{opacity:1;}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);}}.rollOut{animation-name:rollOut;}@keyframes jackInTheBox{from{opacity:0;transform:scale(0.1) rotate(30deg);transform-origin:center bottom;}50%{transform:rotate(-10deg);}70%{transform:rotate(3deg);}to{opacity:1;transform:scale(1);}}.jackInTheBox{animation-name:jackInTheBox;}@keyframes lightSpeedInLeft{from{transform:translate3d(-100%,0,0) skewX(30deg);opacity:0;}60%{transform:skewX(-20deg);opacity:1;}80%{transform:skewX(5deg);}to{transform:translate3d(0,0,0);}}.lightSpeedInLeft{animation-name:lightSpeedInLeft;animation-timing-function:ease-out;}@keyframes lightSpeedOutRight{from{opacity:1;}to{transform:translate3d(100%,0,0) skewX(30deg);opacity:0;}}.lightSpeedOutRight{animation-name:lightSpeedOutRight;animation-timing-function:ease-in;}@keyframes lightSpeedOutLeft{from{opacity:1;}to{transform:translate3d(-100%,0,0) skewX(-30deg);opacity:0;}}.lightSpeedOutLeft{animation-name:lightSpeedOutLeft;animation-timing-function:ease-in;}@keyframes vanishIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(2,2);filter:blur(90px);}100%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);filter:blur(0px);}}.vanishIn{animation-name:vanishIn;}@keyframes boingInUp{0%{opacity:0;transform-origin:50% 0%;transform:perspective(800px) rotateX(-90deg);}50%{opacity:1;transform-origin:50% 0%;transform:perspective(800px) rotateX(50deg);}100%{opacity:1;transform-origin:50% 0%;transform:perspective(800px) rotateX(0deg);}}.boingInUp{animation-name:boingInUp;}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0,-100%,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInDown{animation-name:fadeInDown;}@keyframes fadeInDownBig{from{opacity:0;transform:translate3d(0,-2000px,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInDownBig{animation-name:fadeInDownBig;}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInLeft{animation-name:fadeInLeft;}@keyframes fadeInLeftBig{from{opacity:0;transform:translate3d(-2000px,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInLeftBig{animation-name:fadeInLeftBig;}@keyframes fadeInRight{from{opacity:0;transform:translate3d(100%,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInRight{animation-name:fadeInRight;}@keyframes fadeInRightBig{from{opacity:0;transform:translate3d(2000px,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInRightBig{animation-name:fadeInRightBig;}@keyframes fadeInUp{from{opacity:0;transform:translate3d(0,100%,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInUp{animation-name:fadeInUp;}@keyframes fadeInUpBig{from{opacity:0;transform:translate3d(0,2000px,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInUpBig{animation-name:fadeInUpBig;}@keyframes flip{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out;}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out;}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in;}80%{transform:perspective(400px) scale3d(0.95,0.95,0.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in;}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in;}}.flip{animation-name:flip;}@keyframes vibrate{0%{transform:translate(0);}20%{transform:translate(-2px,2px);}40%{transform:translate(-2px,-2px);}60%{transform:translate(2px,2px);}80%{transform:translate(2px,-2px);}100%{transform:translate(0);}}.vibrate{animation-name:vibrate;animation-timing-function:linear;}@keyframes wobbleHorBottom{0%,100%{transform:translateX(0%);transform-origin:50% 50%;}15%{transform:translateX(-30px) rotate(-6deg);}30%{transform:translateX(15px) rotate(6deg);}45%{transform:translateX(-15px) rotate(-3.6deg);}60%{transform:translateX(9px) rotate(2.4deg);}75%{transform:translateX(-6px) rotate(-1.2deg);}}.wobbleHorBottom{animation-name:wobbleHorBottom;}@keyframes wobbleHorTop{0%,100%{transform:translateX(0%);transform-origin:50% 50%;}15%{transform:translateX(-30px) rotate(6deg);}30%{transform:translateX(15px) rotate(-6deg);}45%{transform:translateX(-15px) rotate(3.6deg);}60%{transform:translateX(9px) rotate(-2.4deg);}75%{transform:translateX(-6px) rotate(1.2deg);}}.wobbleHorTop{animation-name:wobbleHorTop;}"]),M=(0,a.AH)(['--duration:5s;--easing:linear;--c-color-1:#61acff;--c-color-2:#0058f7;--c-color-3:#1684FC;--c-color-4:#88eafe;@keyframes circle-1{33%{transform:translate(0px,10px);}66%{transform:translate(5px,42px);}}@keyframes circle-2{33%{transform:translate(34px,-6px);}66%{transform:translate(30px,-32px);}}@keyframes circle-3{33%{transform:translate(8px,8px);}66%{transform:translate(5px,2px);}}@keyframes circle-4{33%{transform:translate(32px,-8px);}66%{transform:translate(49px,-5px);}}@keyframes circle-5{33%{transform:translate(36px,18px);}66%{transform:translate(16px,-20px);}}@keyframes circle-6{33%{transform:translate(12px,-10px);}66%{transform:translate(32px,-36px);}}@keyframes circle-7{33%{transform:translate(3px,18px);}66%{transform:translate(8px,-40px);}}@keyframes circle-8{33%{transform:translate(8px,-2px);}66%{transform:translate(24px,-12px);}}@keyframes circle-9{33%{transform:translate(8px,-8px);}66%{transform:translate(34px,-5px);}}@keyframes circle-10{33%{transform:translate(28px,12px);}66%{transform:translate(42px,18px);}}@keyframes circle-11{33%{transform:translate(2px,3px);}66%{transform:translate(28px,12px);}}@keyframes circle-12{33%{transform:translate(24px,0px);}66%{transform:translate(26px,-21px);}}@keyframes opacity{100%{opacity:0;}}position:relative;overflow:hidden;&:before{content:"";pointer-events:none;position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;border-radius:6px;}span{z-index:2;}.circle{position:absolute;left:0;top:0;width:16px;height:20px;border-radius:50%;filter:blur(var(--blur,6px));background:var(--background,transparent);transform:translate(var(--x,0),var(--y,0));animation:var(--animation,none) var(--duration) var(--easing) infinite;}.circle.circle-1,.circle.circle-9,.circle.circle-10{--background:var(--c-color-4);}.circle.circle-3,.circle.circle-4{--background:var(--c-color-2);--blur:5px;}.circle.circle-5,.circle.circle-6{--background:var(--c-color-3);}.circle.circle-2,.circle.circle-7,.circle.circle-8,.circle.circle-11,.circle.circle-12{--background:var(--c-color-1);}.circle.circle-1{--x:0;--y:-20px;--animation:circle-1;}.circle.circle-2{--x:40px;--y:5px;--animation:circle-2;}.circle.circle-3{--x:-6px;--y:-9px;--animation:circle-3;}.circle.circle-4{--x:40px;--y:-8px;--animation:circle-4;}.circle.circle-5{--x:5px;--y:-3px;--animation:circle-5;}.circle.circle-6{--x:24px;--y:10px;--animation:circle-6;}.circle.circle-7{--x:0px;--y:10px;--animation:circle-7;}.circle.circle-8{--x:18px;--y:-3px;--animation:circle-8;}.circle.circle-9{--x:0px;--y:-5px;--animation:circle-9;}.circle.circle-10{--x:20px;--y:6px;--animation:circle-10;}.circle.circle-11{--x:-8px;--y:-9px;--animation:circle-11;}.circle.circle-12{--blur:8px;--x:22px;--y:10px;--animation:circle-12;}.animation-list.is-hidding{animation:opacity var(--duration) var(--easing) forwards;}'])},98033:(eo,ot,i)=>{"use strict";i.d(ot,{Z:()=>a,n:()=>k});const a=function(M){let{flags:P}=M===void 0?MB.user:M;return!!(P&1<<21)},k=M=>{let{user:P,org:C}=M;const q=(C==null?void 0:C.otype)==="personal"?null:C;return{currentUser:P,currentOrg:q}}},98226:(eo,ot,i)=>{"use strict";eo.exports=i(67487)},98267:(eo,ot,i)=>{"use strict";i.d(ot,{$8:()=>D,AT:()=>J,Lf:()=>Y,N8:()=>O,NG:()=>q,pE:()=>l});var a=i(20089),k=i(70248),M=i(95106),P=i(76613),C=i(16454);const q=(m,E,f)=>({current:m+"/"+E,from:f}),Y=m=>m?m.current.split("/"):[],J=(m,E,f)=>{if(f||sdkStore.isTrashed(m)||sdkStore.isTrashed(E))return;const h=new URL(location.href),S=h.searchParams.get("view_mode");S===null||["read_only","inspect"].includes(S)||(m&&h.searchParams.set("screen",m),E&&h.searchParams.set("canvasId",E),window.history.replaceState("","",h))},O=function(m,E){E===void 0&&(E=!0);const f=new URL(location.href);f.searchParams.get("view_mode")!==null&&(f.searchParams.set("view_mode",m),["read_only","inspect"].includes(m)&&E&&(f.searchParams.delete("screen"),f.searchParams.delete("canvasId")),window.history.replaceState("","",f))},l=m=>{let{isPanelPreviewMode:E,basketKey:f,canvasKey:h,sharing:S}=m,V=!0;if(h&&sdkStore.isTrashed(h))return!1;if(E)if(f){const We=(0,k.OO)(h)?(0,k.QL)(h).pop():h,{key:re,sup:ve,hotAttr:we}=sdkStore.getHotItem(f);if(we.bunch===a.x.RbPage&&ve==="B@ref-muban"){const{sub:Ae}=sdkStore.getHotItem(re);V=Ae.includes(We)}else if(we.basket==="bMuban"){const{sub:Ae}=sdkStore.getHotItem(we.refRBPageKey);V=Ae.includes(We)}else if(we.basket==="bDanli"){const{sub:Ae}=sdkStore.getHotItem(we.refRBPageKey);V=Ae.includes(We)}}else V=!1;if(h&&S&&S.type==="advanced"&&S.screen_visible_switch){for(const We of S.screen_visible_list)if(sdkStore.isActiveKey(We)&&sdkStore.getHotItem(We).sub.find(re=>re===h))return V=!0,V;V=!1}return V},D=(m,E)=>{let f=m.targetWidgetKey;if(m.targetWidgetKey===P.rE)f=m.triggerItemKey;else if(m.targetWidgetKey===P.VZ){const h=E.store.getState(),S=(0,C.KR)(h),V=(0,C.Mo)(h);f=S&&sdkStore.locTopRBActiveKey(V)==="B@ref-muban"?V:(0,M.JC)(sdkStore,m.triggerItemKey)}return f}},98481:(eo,ot,i)=>{"use strict";i.d(ot,{A:()=>Hn});var a={};i.r(a),i.d(a,{clearWithoutStreamingKeyList:()=>Wt,openRightPanel:()=>ro,quitEditAI:()=>Tn,selectItems:()=>Zt,updateEditingAIComponentInfo:()=>bt,updateWidget:()=>jn});var k=i(18381),M=i(12211),P=i(70933),C=i(28173),q=i(10472),Y=i(96986),J=i(67588),O=i(95657),l=i(60651),D=i(95549),m=i(38502),E=i(53732),f=i.n(E),h=i(79371),S=i.n(h),V=i(15186),We=i(67787),re=i(70422),ve=i(74945),we=i(77709),Ae=i(55804),Oe=i(69594),Be=i(20089),tt=i(4410),Xe=i(72214);const ne=(0,m.memo)(function(oo){const{isInAIComponentSnapshotCreateMode:To,isInCommentMode:po,isDraggingCanvas:Oo,children:Qo,...ea}=oo,{handMode:_n,isInElbowMode:Un,isDraggingRadiusResizer:cn,isHitVectorPath:nn,isSpaceDown:Zn,vectorEditor:ho,isTableDragging:Xn,currentToolBarHeight:Mo,quickCreateWidgetName:Zo,quickCreateWidget:ia,createTemplatesData:xa,quickCreateBuiltinSceneData:fa}=(0,k.d4)(lt),zo=f()("cursor-styled",{"wait-drag":Zn||_n,dragging:Oo||Xn,"wait-create-comment":!Zn&&!Oo&&po,"wait-radius-resizer":cn,["wait-create-"+Zo]:!Zn&&!Oo&&!ho&&Zo,"hit-vector-path":nn,"in-elbow-mode":!Zn&&Un,"wait-create-ai-component":!Zn&&!Oo&&To,"wait-create-widget":!!ia||!!xa||!!fa});return(0,Xe.jsx)(rt,{...ea,currenttoolbarheight:Mo,className:zo,children:Qo})}),lt=(0,M.Mz)([P.iv,P.w8,l._W,l.Ro,ve.Q1,P.ZS,l.lY,re.sx,we.wT,P.wq,P.YY,P.L8],(Yn,oo,To,po,Oo,Qo,ea,_n,Un,cn,nn,Zn)=>{const ho=Yn&&oo,{isSpaceDown:Xn}=Qo,Mo=(0,tt.F6)(cn);return{isDraggingRadiusResizer:ho,isHitVectorPath:To,handMode:po,isInElbowMode:Oo,isSpaceDown:Xn,vectorEditor:ea,isTableDragging:_n,currentToolBarHeight:Un,quickCreateWidget:cn,quickCreateWidgetName:Mo,createTemplatesData:nn,quickCreateBuiltinSceneData:Zn}}),rt=(0,We.Ay)(Ae.A).withConfig({displayName:"CursorStyled__StyledCursor",componentId:"sc-1bxy14q-0"})(["position:fixed;top:","px;left:0;right:0;bottom:0;width:auto;height:auto;overflow:hidden;cursor:",";display:flex;justify-content:center;align-items:center;&.wait-drag{cursor:grab;.tree-node{pointer-events:none !important;}}&.dragging{cursor:grabbing;.tree-node{pointer-events:none !important;}}&.wait-radius-resizer{cursor:",';}&[class*="wait-create"]{cursor:',";&:not(.wait-create-annotate){.tree-node{pointer-events:none !important;.line svg path{pointer-events:none !important;}}}&.wait-create-rich_text{cursor:text;}&.wait-create-comment{cursor:",";}&.wait-create-ai-component{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}}&.hit-vector-path{cursor:",";}&.in-elbow-mode{cursor:",";}&.wait-create-widget{cursor:",";}"],Yn=>Yn.currenttoolbarheight,Oe.M.default,Oe.M.radiusResize,Oe.M.defaultCreate,Oe.M.comment,Oe.M.aiComponent,Be.x.WRect,Oe.M.rectCreate,Be.x.WOval,Oe.M.circleCreate,Be.x.Canvas,Oe.M.canvasCreate,Be.x.WTear,Oe.M.annotate,Be.x.WVector,Oe.M.vectorCreate,tt.pv.PENCIL,Oe.M.pencilCreate,Oe.M.vectorPathEdit,Oe.M.defaultCreate,Oe.M.defaultCreate);var Te=i(39e3),Ge=i(78915),ue=i(58664),Me=i(32286),Ze=i(77728);class fe extends m.PureComponent{render(){if(!this.props.isShow)return null;const{widget:oo}=this.props,{y:To,x:po,w:Oo,h:Qo}=oo,ea=To-Qo/2,_n=po-Oo/2,Un=Oo>0&&Qo>0,nn=MB.getScale()/100,Zn=oo.type===Be.x.WLine,ho=oo.type===Be.x.WSticky;return(0,Xe.jsxs)(it,{ratio:1/nn,className:oo.type,style:{top:ea,left:_n,width:Oo,height:Qo},children:[Zn&&(0,Xe.jsx)(Ze.E,{widget:{hotAttr:oo}}),ho&&(0,Xe.jsx)("div",{className:"fake-sticky",children:(0,Xe.jsx)("div",{className:"header"})}),Un&&(0,Xe.jsx)("div",{className:"meta-info",children:Oo+" \xD7 "+(Zn?1:Qo)})]})}}const it=We.Ay.div.withConfig({displayName:"WidgetRect__StyledWidget",componentId:"sc-yhlws3-0"})(["z-index:2;position:absolute;pointer-events:none;overflow:visible !important;&.",",&.","{border:1px solid #bbb;}&.",",&.","{background:white;border:1px solid #bbb;}&.","{background:white;border:1px solid #bbb;border-radius:100%;}&.","{background:",";border:1px solid ","}.fake-sticky{width:100%;height:100%;background:white;border:1px solid rgb(253,209,67);.header{background-color:#FDD143;width:100%;height:20px;padding:0 12px;position:relative;}}&.line{path{stroke:rgba(187,187,187,1);stroke-width:1px;}}&.lr{background:","}.meta-info{position:absolute;padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:calc(100% + 10px);border-radius:2px;white-space:nowrap;transform-origin:0 0;transform:","}"],Be.x.WRichText,Be.x.WImage,Be.x.Canvas,Be.x.WRect,Be.x.WOval,Be.x.WLR,Yn=>Yn.theme.color_hotspot,Yn=>Yn.theme.color_comments,Yn=>Yn.theme.color_hotspot,Yn=>"scale("+Yn.ratio+")");var et=i(57479),Ut=i(63763),G=i(93413),Ht=i(12410),Tt=i(70812);class Vt extends m.PureComponent{constructor(){super(...arguments),(0,D.A)(this,"handleKeyDown",oo=>{if(MB.isEditing(oo)||MB.f.isSelecting||MB.f.isEditTable||oo.metaKey||oo.ctrlKey||oo.altKey)return;const{dispatch:To,isEditingComment:po,widget:Oo,isDirectlyEditingProjectMain:Qo,currentScreen:ea,vectorEditor:_n,swimlaneIsShallowEditing:Un}=this.props;if(Un)return;const cn=(0,ue.P)(Qo),nn=cn.filter(ho=>ho.keyCode===oo.keyCode);let Zn=nn==null?void 0:nn[0];if(nn.length>1&&oo.shiftKey){const ho=nn.find(Xn=>Xn==null?void 0:Xn.shiftKey);ho&&(Zn=ho)}if(po){oo.key===et._.Escape&&To({type:"entry:comment:create:esc"});return}if(Zn){const ho=(()=>{if(!Oo)return null;const Zo=cn.filter(ia=>(0,tt.xy)(ia)===(0,tt.F6)(Oo));if(Zo.length===0)return null;if(Zo.length>1)throw new Error("\u7B5B\u9009\u7ED3\u679C\u4E0D\u552F\u4E00");return Zo[0]})(),Xn=JSON.stringify(ho)===JSON.stringify(Zn),Mo=(0,tt.xy)(Zn);if(Xn){if(Mo===Be.x.WElbow)To({type:"elbow:update",payload:{highlightAnchor:""}});else if(Be.Q.ST_MODE_WIDGET_NAMES.includes(Mo))To({type:"entry:ST:STMode:disable"});else if(Mo===Be.x.WVector&&_n){To({type:"entry:vector:exit:edit"});const Zo=(0,Ut.gu)({type:Mo,screen:ea,attrs:{width:0,height:0}});To({type:"set:quick-create-widget",payload:{widget:Zo}});return}else Mo===tt.pv.PENCIL&&To({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});To({type:"set:quick-create-widget",payload:{widget:null}})}else{Mo===Be.x.Canvas&&To({type:"right-side-panel:show:panel"}),To({type:"entry:vector:exit:edit",payload:{isNoGuide:!0}}),To({type:"entry:pencil:vector:exit:edit"}),Be.Q.ST_MODE_WIDGET_NAMES.includes(Mo)?(To({type:"entry:ST:STMode:enable"}),To({type:"toolbar:update:state",payload:{isShowSticky:!0}})):To({type:"entry:ST:STMode:disable"}),To(Ge.GO.hoverItem("")),To({type:"entry:image-view:exit:edit"});const Zo=(0,Ut.gu)({type:Zn.name,screen:ea,attrs:{width:0,height:0,...Zn.attrs}});To({type:"set:quick-create-widget",payload:{widget:Zo}}),To(Ge.GO.toggleHandMode(!1)),(0,Me.L)(Zn.shortcut),Mo===Be.x.WVector&&(MB.commonGuideHelper.checkGuideToBeShown(G.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(G.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(G.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(G.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),Mo===tt.pv.PENCIL&&To({type:"entry:pencil:vector:enter:edit",payload:{source:Tt.U4.addShapeToCanvasTrackSourceMap.quickCreate}})}To({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),To({type:"elbow:update",payload:{isInElbowMode:!1}}),Mo!==Be.x.WTear&&Mo!==Be.x.WSticky&&To({type:"entry:ST:STMode:disable"})}else Oo&&oo.key===et._.Escape?((Oo.type!==Be.x.WVector||!_n)&&To({type:"set:quick-create-widget",payload:{widget:null}}),To(Ge.GO.toggleHandMode(!1)),To({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),To({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),To({type:"entry:ST:STMode:disable"})):oo.key===et._.Escape&&(To(Ge.GO.toggleHandMode(!1)),To({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),To({type:"elbow:update",payload:{isInElbowMode:!1}}))})}render(){const{widget:oo}=this.props;return(0,Xe.jsxs)(m.Fragment,{children:[(0,Xe.jsx)(Te.A,{target:document,onKeyDown:this.handleKeyDown}),(0,Xe.jsx)(fe,{isShow:oo&&oo.width>0&&oo.height>0,widget:oo})]})}}const He=(0,M.Mz)([Y.ud,l.lY,Ht.X.query.getIsShallowEditing,P.wq],(Yn,oo,To,po)=>({isEditingComment:Yn,vectorEditor:oo,swimlaneIsShallowEditing:To,widget:po})),rn=(0,k.Ng)(Yn=>He(Yn))(Vt);var Lt=i(53940),jt=i(16958);const mt=We.Ay.div.withConfig({displayName:"styles__StyledScreenContainer",componentId:"sc-hwjgpp-0"})(["position:absolute;inset:0;width:100%;height:100%;&.is-community-combo-preview{.zoom-area{left:-100px;}}.zoom-area{position:relative;#canvas{position:absolute;z-index:1;}}.screen-viewport{position:relative;.zoom-area{position:absolute;top:0;left:0;width:100%;height:100%;transform-origin:center center;}.editing-text-area{pointer-events:none;z-index:1;"," ","}}.screen{position:relative;&::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);}}.first-page-divider{position:absolute;border-bottom:1px dashed ",";border-right:1px dashed ",";}.canvas-bg-area{position:absolute;top:0;left:0;pointer-events:none;z-index:1;&.shield-corner-events{.slider-wrapper,.resizer{pointer-events:none;}}}.canvas-operation-wrap{pointer-events:auto;}.tree-node{input,label,select,textarea{pointer-events:none;}&.is-dynamic-widget-editing{display:none;}&.is-text-editing{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:none !important;}&.",",&.","{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:block !important;visibility:hidden;opacity:0;pointer-events:none;}}.flow-unclosed p{opacity:0;}}&.read-only-text-can-select{div:not(.aboard-line,.wElbow,.wMFileInput),span,span *,text,p,p *,pre,td,form,select,li,button,textarea,input{cursor:text;user-select:text !important;}text,&.widget.wMTextInput input,&.widget.wNavigationMenu span,&.widget.wTree span,&.widget.wTabs li,&.widget.wSelectionControl span,&.widget.wMobileTabBars span,&.widget.wSegmentedControl button,&.widget.wMTextarea textarea,&.widget.wCollapse span,&.widget.wCollapse div,&.widget.wTable .jexcel_container .jexcel_content table tbody td div.tdDiv{pointer-events:auto !important;}}}"],jt.H0,jt.PE,Yn=>Yn.theme.color_proto,Yn=>Yn.theme.color_proto,Be.x.WElbow,Be.x.WButton);var Jn=i(36449),o=i(30179),so=i(75495);const Et=()=>{const{rect:Yn}=(0,so.v)(),oo=(0,k.d4)(P.X_);if(!Yn)return{};const{x:To,y:po,w:Oo,h:Qo}=Yn,ea=oo/100,_n=Oo*ea,Un=Qo*ea,cn=To*ea,nn=po*ea;return{width:_n,height:Un,left:cn,top:nn}},Jt=()=>{let Yn="";for(let oo=0;oo<100;oo++)Yn+="\n "+oo+"% {\n --angle: "+oo*3.6+"deg\n }\n ";return Yn},Ot=We.Ay.div.withConfig({displayName:"styles__StyledAIComponentSelectedArea",componentId:"sc-vltazm-0"})(["position:absolute;z-index:2;--angle:0deg;background:conic-gradient(from var(--angle),#EF45FE 0%,#4551FE 33%,#1684FC 66%,#EF45FE 100%);mask:linear-gradient(to right,#000 6px,transparent 6px) repeat-x,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y,linear-gradient(to right,#000 6px,transparent 6px) repeat-x 0 100%,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y 100% 0;mask-image:linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px),linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px);mask-size:8px 2px,2px 8px,8px 2px,2px 8px;animation:selectedAreaRotate 4s infinite;@keyframes selectedAreaRotate{","}"],Jt()),dn=()=>{const Yn=Et();return Yn?(0,Xe.jsx)(Ot,{style:Yn}):null},Ce=()=>(0,k.d4)(O.l3)?(0,Xe.jsx)(Pt,{children:(0,Xe.jsx)(dn,{})}):null,Pt=We.Ay.div.withConfig({displayName:"aiComponent__StyledAIComponent",componentId:"sc-jbeefb-0"})(["position:absolute;"]);var Nn=i(42520);const At=Yn=>(0,Xe.jsx)(Nn.A,{mode:"design",...Yn}),on=(0,M.Mz)([P.X_,P.ER,P.$S,Y.Cb,Y.YW,Y.uX,Y.QV,Y.Ou,Y.fd,Y.RF,Y.Li,Y.V8,Y.ZA,l.jx,P.wA,J.O4],(Yn,oo,To,po,Oo,Qo,ea,_n,Un,cn,nn,Zn,ho,Xn,Mo,Zo)=>({viewport:{offset:oo,scale:Yn,viewportRect:To},activeCommentCid:po,wigglingCommentCid:Oo,editorRawContentObject:Qo,commentIsEditing:ea,editingRecordCid:_n,isCommentDragging:Un,emojiToastStyle:cn,atStyle:nn,creatingComment:Zn,commentList:ho,viewType:Xn,currentOrg:Mo,theme:Zo})),no=(0,k.Ng)(Yn=>on(Yn))(At),mo=(0,M.Mz)([Y.sI,Y.EH,l.pH,l.rg,l.uu,l._b],(Yn,oo,To,po,Oo,Qo)=>({isShow:!(To||po||Oo)&&(Yn||oo)&&!Qo})),mn=Yn=>{const{isShow:oo}=Yn;return oo?(0,Xe.jsx)(no,{}):null},ht=(0,k.Ng)(Yn=>mo(Yn))(mn),Yt=()=>{const Yn=(0,k.d4)(l.jx)===Ge.qi.OnlyView;return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(o.t5,{onlyView:Yn}),(0,Xe.jsx)(o.bK,{}),(0,Xe.jsx)(o.S1,{}),(0,Xe.jsx)(ht,{}),(0,Xe.jsx)(Ce,{}),(0,Xe.jsx)(o.vp,{}),(0,Xe.jsx)(o.zE,{}),(0,Xe.jsx)(o.HN,{}),(0,Xe.jsx)(o.kX,{}),(0,Xe.jsx)(o.Mc,{}),(0,Xe.jsx)(o.wy,{}),(0,Xe.jsx)(o.GM,{})]})};var Gt=i(92598),Bn=i(97605),qt=i(57892);const Zt=Yn=>{MB.action("entry:select:items",{cids:Yn})},jn=Yn=>{MB.action("entry:widget:change",{flatChgList:Yn})},ro=Yn=>{MB.action("right-side-panel:show:panel"),typeof Yn=="number"&&MB.action("settings:set:autoTabIndex",{autoTabIndex:Yn})},Tn=Yn=>{MB.action("entry:aiComponent:quit:edit",{widgetKey:Yn})},bt=Yn=>{MB.action("ai-component:update:editingAIComponentInfo",{updateInfo:Yn})},Wt=Yn=>{MB.action("ai-component:remove:withoutStreamingKey",{key:Yn})};var wn=i(25997);const uo=(0,M.Mz)([P.PL,P.Ur,l.jI,l.bt,l.pj,l.gm,l.jx,l.Pm,wn.UV],(Yn,oo,To,po,Oo,Qo,ea,_n,Un)=>{const cn=Oo||Qo,nn=ea===Ge.qi.OnlyView;return{currentScreen:oo,editingPanelCid:To,editingPanelRefPage:po,isEditingCombo:cn,onlyView:nn,device:Yn==null?void 0:Yn.device,editingEditableWidgetCid:_n,sdkStore:Un,actions:a}}),Dn=Yn=>{let{children:oo}=Yn;const To=(0,k.d4)(uo);return(0,m.useEffect)(()=>()=>{uo.clearCache()},[]),(0,Xe.jsx)(qt.G.Provider,{value:To,children:oo})};var So=i(52183);const Qt=We.Ay.div.withConfig({displayName:"CanvasContainer__StyledCanvasContainer",componentId:"sc-1lxribq-0"})([""," &.hidden-sticky{.widget.wSticky,.widget.wTear{display:none !important;}}"],jt.Jj),Ln=()=>{const Yn=(0,k.d4)(we.$7),oo=(0,k.d4)(wn.RX),To=(0,qt.n)()||{},{onlyView:po,device:Oo,currentScreen:Qo,sdkStore:ea}=To,_n=(0,m.useRef)(ea),Un=(0,m.useRef)([]);(0,m.useEffect)(()=>{const ho=()=>{var Xn;(Xn=window.getSelection())==null||Xn.removeAllRanges()};return performance.measure("canvasRendered","setupSDK:start"),po&&document.addEventListener("mousedown",ho,{capture:!0}),()=>{po&&document.removeEventListener("mousedown",ho,{capture:!0})}},[po]),(0,So.A)(_n);const cn=(0,m.useMemo)(()=>{var ho;if(_n.current=ea,!ea||!(oo!=null&&(ho=oo.sub)!=null&&ho.length))return null;const Xn=ea.getRenderableSubHotItems(oo,!0,!0),Mo=Un.current.map(Zo=>Xn.find(ia=>ia.key===Zo)).filter(Boolean).concat(Xn.filter(Zo=>!Un.current.includes(Zo.key)));return Un.current=Mo.map(Zo=>Zo.key),Mo.map(Zo=>(0,Xe.jsx)(Gt.o,{hotItem:Zo,mode:"design"},Zo.key))},[oo,ea]);if(!oo||!To)return null;const{deviceOrientation:nn,cid:Zn}=Qo;return Zn!==oo.key&&console.warn("[RootWiget Not Ready!!]"),(0,Xe.jsx)(Qt,{id:"canvas",className:f()((0,Bn.gE)({orientation:nn},Oo),{"hidden-sticky":!Yn}),children:(0,Xe.jsx)("div",{className:"group-list",children:cn})})},Rt=()=>(0,Xe.jsx)(Dn,{children:(0,Xe.jsx)(Ln,{})});var Qe=i(62532);class En extends m.PureComponent{constructor(oo){super(oo),(0,D.A)(this,"debounceMouseMove",()=>{var To;((To=MB.getWidgetStore())==null?void 0:To.getTreeSize())>800?this.debouncedMouseMove=S()(this.handleMouseMove,10):this.debouncedMouseMove=this.handleMouseMove}),(0,D.A)(this,"handleMouseDown",To=>{var po,Oo;(po=(Oo=this.debouncedMouseMove).flush)==null||po.call(Oo),this.props.dispatch({type:"entry:screenContainer:mousedown",payload:{e:To}})}),(0,D.A)(this,"handleMouseUp",To=>{const{dispatch:po,isInCommentMode:Oo,isInAIComponentSnapshotCreateMode:Qo}=this.props;Oo&&po({type:"entry:comment:create:mouseup"}),Qo&&po({type:"entry:aiComponent:create:mouseup",payload:{event:To}}),po({type:"ST:update",payload:{isDraggingWTear:!1}}),po({type:"clear:range:select"}),setTimeout(()=>{(0,Qe.o5)(MB.__store__.getState())&&(console.error("[Ruler line unexpect dragging state]"),po({type:"ruler:update:state",payload:{isDraggingLine:!1}}))})}),(0,D.A)(this,"handleVisibilityChange",()=>{document.visibilityState==="hidden"&&this.props.dispatch({type:"update:screenContainer:state",payload:{domVisibilityState:!1}})}),(0,D.A)(this,"handleMouseMove",To=>{const{clientX:po,clientY:Oo}=To;Object.assign(MB,{clientX:po,clientY:Oo});const{dispatch:Qo}=this.props;Qo({type:"entry:screenContainer:mousemove",payload:{event:To}}),Qo({type:Jn.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:To,from:"design"}})}),(0,D.A)(this,"handleDoubleClick",To=>this.props.dispatch({type:"entry:screenContainer:mousedown:hit",payload:{event:To,rehitForContextMenu:!1,gas:1}})),(0,D.A)(this,"handleScaleAndOffsetChange",(To,po,Oo)=>{this.props.dispatch({type:"design:set:scale-and-offset",payload:{scale:Oo,offset:{x:To,y:po}}}),this.props.dispatch({type:"entry:update:ruler"})}),(0,D.A)(this,"handleOffsetChange",(To,po)=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:{x:To,y:po}}})),(0,D.A)(this,"handleScroll",To=>{To.target.scrollTop=0,To.target.scrollLeft=0}),(0,D.A)(this,"handleDrop",To=>this.props.dispatch({type:"entry:screenContainer:drop",payload:{e:To}})),this.debounceMouseMove()}UNSAFE_componentWillUpdate(oo){var To,po;((To=oo.currentScreen)==null?void 0:To.cid)!==((po=this.props.currentScreen)==null?void 0:po.cid)&&this.debounceMouseMove()}componentDidMount(){document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentWillUnmount(){document.removeEventListener("visibilitychange",this.handleVisibilityChange)}preventDefault(oo){MB.f.editing||oo.preventDefault()}handleDragOver(oo){oo.stopPropagation(),oo.preventDefault(),oo.nativeEvent.dataTransfer.dropEffect="copy"}render(){const{theme:oo,canvasOffset:To,isHighlight:po,isDraggingCanvas:Oo,isInCommentMode:Qo,isInAIComponentSnapshotCreateMode:ea,isDirectlyEditingProjectMain:_n,currentScreen:Un,onlyView:cn,isCommunityComboPreview:nn,isEmptyScreen:Zn}=this.props;if(Zn)return null;const ho=MB.getScale(),Xn=ho/100,{x:Mo,y:Zo}=To,ia="translate("+Math.round(Mo)+"px, "+Math.round(Zo)+"px)",xa={transform:ia},fa={transform:ia+" scale("+Xn+")"},zo=f()("screen-container",{"is-community-combo-preview":nn}),Ra={backgroundColor:po?oo===Lt.Sx.DARK?"#454647":"rgba(31, 41, 46, 0.3)":(0,V.t0)((0,Lt.t6)(oo,Un))};return(0,Xe.jsxs)(mt,{id:"screens",style:Ra,className:zo,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onContextMenu:this.preventDefault,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onMouseMove:this.debouncedMouseMove,onDoubleClick:this.handleDoubleClick,children:[(0,Xe.jsxs)(ne,{isInAIComponentSnapshotCreateMode:ea,isInCommentMode:Qo,isDraggingCanvas:Oo,x:Mo,y:Zo,scale:ho,isDisabled:Oo,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onScroll:this.handleScroll,children:[(0,Xe.jsxs)("div",{className:"zoom-area",style:fa,children:[(0,Xe.jsx)(Rt,{}),!cn&&(0,Xe.jsx)(rn,{isDirectlyEditingProjectMain:_n,currentScreen:Un})]}),(0,Xe.jsxs)("div",{className:"screen-viewport",style:xa,children:[cn?(0,Xe.jsx)(o.qR,{}):(0,Xe.jsx)(o.q,{}),(0,Xe.jsx)(Yt,{})]},"1")]}),(0,Xe.jsx)(o.rK,{}),!cn&&(0,Xe.jsx)(o.MH,{}),(0,Xe.jsx)(o.$j,{})]})}}const qn=(0,M.Mz)([P.ER,P.AW,J.O4,P.PL,P.Ur,l.jx,l.pH,q.r,C.C,Y.sI,P.lh,O.y1],(Yn,oo,To,po,Oo,Qo,ea,_n,Un,cn,nn,Zn)=>{let{isEditingProjectMain:ho,isEditingBasket:Xn,isDirectlyEditingBasket:Mo,isEditingCombo:Zo}=_n,{isEmptyScreen:ia}=Un;const xa=Xn||Mo,fa=Qo===Ge.qi.OnlyView,zo=ea&&(po==null?void 0:po.category)==="combo_group";return{isHighlight:xa,canvasOffset:Yn,isDraggingCanvas:oo,theme:To,isDirectlyEditingProjectMain:ho,rootProject:po,currentScreen:Oo,onlyView:fa,isCommunityComboPreview:zo,isEmptyScreen:ia,isInCommentMode:cn,editingCid:nn,isInAIComponentSnapshotCreateMode:Zn}}),Hn=(0,k.Ng)(Yn=>qn(Yn))(En)},98722:(eo,ot,i)=>{"use strict";i.d(ot,{B8:()=>V,MQ:()=>h,_k:()=>We,aW:()=>D,tE:()=>m,xk:()=>E});var a=i(78401),k=i(25997),M=i(20089),P=i(59025),C=i(70248),q=i(61790);const Y=[M.x.WWrap,M.x.Canvas],J=re=>Y.includes(re.hotAttr.type)||re.hotAttr.type==="wBasket"&&re.hotAttr.basket==="bMuban",O=re=>sdkStore.getSubHotItemList(re).sort((ve,we)=>we.hotAttr.zIndex-ve.hotAttr.zIndex),l=(re,ve)=>{const we=[],Ae=ve(re);Ae&&we.push(Ae);const{key:Oe,hotAttr:{type:Be,bunch:tt,basket:Xe},sub:ne}=re,lt=tt!=null?tt:Be;if(Y.includes(lt))O(Oe).forEach(rt=>{let{key:Te}=rt;return we.push(...l(sdkStore.getHotItem(Te),ve))});else if(lt===M.x.WBasket&&Xe==="bMuban"){const rt=ne[0];rt&&O(rt).forEach(Te=>{let{key:Ge}=Te;return we.push(...l(sdkStore.getHotItem(Ge),ve))})}return we},D=re=>O(re).filter(we=>we.hotAttr.bunch!==M.x.RbPage).reduce((we,Ae)=>(we.push(...l(Ae,Oe=>Oe.key)),we),[]),m=(re,ve,we)=>{const Ae=document.querySelector("#layer-scroll-list"),Oe=document.querySelector("#mb-enabled-layer-list"),Be=Array.from(Oe.querySelectorAll(".rn-content-item")),tt=Ae.getBoundingClientRect(),Xe=Oe.getBoundingClientRect(),ne=[],lt={},rt=[],Te=new Set(ve);for(const Tt of ve)if(!(0,C.OO)(Tt)&&!sdkStore.isTrashed(Tt)){const He=sdkStore.findUpHotItemList(Tt).slice(1).map(rn=>rn.key).filter(rn=>Te.has(rn));He!=null&&He.length||rt.push(Tt)}let Ge=1;const ue=rt.some(Tt=>{var Vt;return((Vt=sdkStore.getHotItem(Tt))==null||(Vt=Vt.hotAttr)==null?void 0:Vt.type)===M.x.Canvas}),Me=re.filter(Tt=>Tt.node.hotAttr.type===M.x.Canvas).map(Tt=>{let{key:Vt}=Tt;return Vt}),Ze=new Set(rt),fe=[];re.forEach(Tt=>{l(Tt.node,Vt=>{const{key:He,sub:rn,hotAttr:{type:Lt}}=Vt;Ze.has(He)&&rn.length>0&&Y.includes(Lt)&&rn.forEach(jt=>Ze.add(jt)),rt.includes(He)&&rn.length>0&&Y.includes(Lt)&&fe.push(Vt)})});for(const Tt of fe){const Vt=sdkStore.findUpHotItemList(Tt.key).filter(He=>He.hotAttr.type!=="rResBunch").length;Ge=Math.max(Vt,Ge)}const it=Tt=>{if(!Tt)return!1;const{hotAttr:{type:Vt,bunch:He}}=Tt,rn=He!=null?He:Vt,Lt=sdkStore.findUpHotItemList(Tt.key).map(jt=>{let{key:mt}=jt;return mt});return ue?rn===M.x.WWrap?!1:!Me.some(jt=>Lt.includes(jt)):Y.concat(M.x.RbPage).includes(rn)},et=Tt=>sdkStore.getSubHotItemList(Tt).sort((Vt,He)=>He.hotAttr.zIndex-Vt.hotAttr.zIndex),Ut=Tt=>{const{sup:Vt,key:He}=Tt,rn=et(Vt);return{isLastChild:rn[rn.length-1].key===He}},G=Tt=>{var Vt;return(Tt==null||(Vt=Tt.hotAttr)==null?void 0:Vt.type)==="rResBunch"||!(Tt!=null&&Tt.sup)?null:sdkStore.getHotItem(Tt.sup)},Ht=Be.length;return Be.forEach((Tt,Vt)=>{const He=Tt.dataset.cid,rn=sdkStore.getHotItem(He),{sub:Lt,sup:jt,hotAttr:{type:mt}}=rn,Jn=Tt.querySelector(":scope > .rn-list-item"),o=Jn.getBoundingClientRect(),so=(0,a.yB)(Jn),Et=Tt.getBoundingClientRect(),Jt={top:o.top-Xe.top,left:o.left-Xe.left,width:o.width,height:o.height},Ot={top:so.top-Xe.top,left:so.left-Xe.left,width:so.width,height:so.height},dn={top:Et.top-Xe.top,left:Ot.left,width:Ot.width,height:Et.height};lt[He]={rect:Jt,contentRect:Ot,treeRect:dn};const{left:Ce,top:Pt,width:Nn,height:At}=Jt,on=Ce+Nn,no=Pt+At/3,mo=Pt+At/3*2,mn=Pt+At;if(Ze.has(He)){ne.push({cid:He,type:null,min:{x:Ce,y:Pt},max:{x:on,y:mn},isValid:!1});return}const ht=sdkStore.getHotItem(jt),Fn=it(ht)&&!(0,P.td)([jt]);Vt===0&&ne.push({cid:He,type:"prevSibling",parentCid:jt,min:{x:Ce,y:Pt},max:{x:on,y:no},isValid:Fn}),Vt===Ht-1&&ne.push({cid:He,type:"nextSibling",parentCid:jt,min:{x:Ce,y:mn},max:{x:on,y:tt.height},isValid:Fn});const Yt=it(rn)&&!(0,P.td)([He]);Y.includes(mt)&&ne.push({cid:He,type:"firstChild",parentCid:He,min:{x:Ce,y:Pt},max:{x:on,y:mo},isValid:Yt});const Gt=we.has(He);if(Y.includes(mt)&&Gt&&Lt.length){const jn=et(He)[0].key;ne.push({cid:jn,type:"prevSibling",parentCid:He,min:{x:Ce,y:mo},max:{x:on,y:mn},isValid:Yt})}else{const Zt=ht&&Ut(rn).isLastChild,jn=it(ht)&&!(0,P.td)([jt]);if(Zt){ne.push({cid:He,type:"nextSibling",parentCid:jt,min:{x:lt[He].contentRect.left,y:mo},max:{x:on,y:mn},isValid:jn});let ro=rn,Tn=null;for(;ro&&((Bn=ro)==null||(Bn=Bn.hotAttr)==null?void 0:Bn.bunch)!==M.x.RbPage&&Ut(ro).isLastChild&&(Tn=G(ro));){var Bn,qt;const bt=G(Tn);if(!bt)break;const Wt=it(bt)&&!(0,P.td)([bt==null?void 0:bt.key]);lt[Tn.key]&&ne.push({cid:Tn.key,type:"nextSibling",parentCid:Tn.sup,min:{x:lt[Tn.key].contentRect.left,y:mo},max:{x:(qt=lt[ro.key])==null||(qt=qt.contentRect)==null?void 0:qt.left,y:mn},isValid:Wt}),ro=Tn}}else ne.push({cid:He,type:"nextSibling",parentCid:jt,min:{x:Ce,y:mo},max:{x:on,y:mn},isValid:jn})}}),{matchDataList:ne,containerRect:tt,rectQueryMap:lt,pathSelectedIds:rt}},E=re=>{const ve=MB.__store__.getState(),we=(0,k.UV)(ve),Ae=[],Oe=Be=>{const tt=[];return we.getRenderableSubHotItems(Be.key).forEach(Xe=>{tt.push(Xe.key,...Oe(Xe))}),tt};return re&&re.length>0&&re.map(Be=>{const tt=we.getHotItem(Be);!tt||(tt==null?void 0:tt.hotAttr.bunch)===M.x.RbPage||Ae.push(...Oe(tt))}),new Set(Ae)},f=(re,ve)=>re.findIndex(we=>we===ve),h=(re,ve)=>{const we=re.length,Ae=re[we-1]&&sdkStore.getHotItem(re[we-1]);let Oe=!1;Ae&&(Oe=J(Ae));const Be=Oe?l(Ae,Te=>Te.key):[],tt=re.concat(Be),Xe=[];let ne=[];re.sort((Te,Ge)=>f(ve,Te)-f(ve,Ge)).forEach((Te,Ge)=>{const ue=Xe.includes(Te);if((Ge===0||Ge===we-1)&&!ue&&ne.push(Te),!ue){const Me=sdkStore.getHotItem(Te);if(!Me)return;if(J(Me)){const fe=l(Me,et=>et.key);fe.every(et=>tt.includes(et))&&Xe.push(...fe)}ne.push(Te)}}),ne=Array.from(new Set(ne));const lt=f(ve,ne[0]),rt=f(ve,ne[ne.length-1]);return{rangeStart:lt,rangeEnd:rt,selected:ne}},S=[M.x.WSticky,M.x.WTear],V=re=>ve=>{const{type:we}=ve.hotAttr;return!S.includes(we)&&(re?(0,q.KD)(ve).toLowerCase().includes(re):!0)},We=function(re,ve,we,Ae){Ae===void 0&&(Ae=!0);const Oe=we(re),{key:Be,hotAttr:{type:tt}}=re;if(!Ae)return Oe?{key:Be,node:re,children:[]}:void 0;const ne=(tt===M.x.WMind?[]:ve.getRenderableSubHotItems?ve.getRenderableSubHotItems(re,!0):ve.getSubHotItemList(Be).sort((lt,rt)=>lt.hotAttr.order-rt.hotAttr.order)).map(lt=>We(lt,ve,we)).filter(Boolean);if(Oe||ne.length)return{key:Be,node:re,children:ne}}},99863:(eo,ot,i)=>{"use strict";i.d(ot,{j:()=>Ce});var a=i(38502),k=i(18381),M=i(53732),P=i.n(M),C=i(87332),q=i(17307),Y=i(67787),J=i(78915),O=i(70812),l=Object.defineProperty,D=Object.defineProperties,m=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,S=(At,on,no)=>on in At?l(At,on,{enumerable:!0,configurable:!0,writable:!0,value:no}):At[on]=no,V=(At,on)=>{for(var no in on||(on={}))f.call(on,no)&&S(At,no,on[no]);if(E)for(var no of E(on))h.call(on,no)&&S(At,no,on[no]);return At},We=(At,on)=>D(At,m(on)),re=(At,on)=>{var no={};for(var mo in At)f.call(At,mo)&&on.indexOf(mo)<0&&(no[mo]=At[mo]);if(At!=null&&E)for(var mo of E(At))on.indexOf(mo)<0&&h.call(At,mo)&&(no[mo]=At[mo]);return no},we=(0,a.forwardRef)((At,on)=>{var no=At,{size:mo,spin:mn,style:ht}=no,Fn=re(no,["size","spin","style"]);const Yt=V(V({width:mo||"var(--x-icon-size, 1em)",height:mo||"var(--x-icon-size, 1em)",animation:mn?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ht);return a.createElement("svg",We(V({ref:on,style:Yt},Fn),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_161)"}),a.createElement("path",{d:"M8.46045 17.1664V16.3748C8.46045 15.0632 9.52368 14 10.8352 14H17.168C18.4796 14 19.5428 15.0632 19.5428 16.3748V17.1664",stroke:"white",strokeWidth:"1.74152",strokeLinecap:"round"}),a.createElement("foreignObject",{x:"1.36961",y:"14.0347",width:"14.1787",height:"11.8037"},a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",height:"100%",width:"100%"}})),a.createElement("g",{filter:"url(#filter0_i_3186_161)",dataFigmaBgBlurRadius:"3.13136"},a.createElement("rect",{x:"5.37174",y:"18.0368",width:"6.17447",height:"3.79968",rx:"1.50404",stroke:"white",strokeWidth:"1.74152"})),a.createElement("foreignObject",{x:"12.4536",y:"14.0347",width:"14.1787",height:"11.8037"},a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",height:"100%",width:"100%"}})),a.createElement("g",{filter:"url(#filter1_i_3186_161)",dataFigmaBgBlurRadius:"3.13136"},a.createElement("rect",{x:"16.4557",y:"18.0368",width:"6.17447",height:"3.79968",rx:"1.50404",stroke:"white",strokeWidth:"1.74152"})),a.createElement("path",{d:"M14.0005 11.625L14.0005 13.2082",stroke:"white",strokeWidth:"1.74152",strokeLinecap:"square"}),a.createElement("foreignObject",{x:"6.9099",y:"2.16112",width:"14.1787",height:"11.8037"},a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",clipPath:"url(#bgblur_0_3186_161_clip_path)",height:"100%",width:"100%"}})),a.createElement("rect",{dataFigmaBgBlurRadius:"3.13136",x:"10.0413",y:"5.29248",width:"7.91599",height:"5.5412",rx:"2.3748",fill:"white",fillOpacity:"0.6"}),a.createElement("defs",null,a.createElement("filter",{id:"filter0_i_3186_161",x:"1.36961",y:"14.0347",width:"14.1787",height:"11.8037",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.835031"}),a.createElement("feGaussianBlur",{stdDeviation:"2.50509"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_3186_161"})),a.createElement("filter",{id:"filter1_i_3186_161",x:"12.4536",y:"14.0347",width:"14.1787",height:"11.8037",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"0.835031"}),a.createElement("feGaussianBlur",{stdDeviation:"2.50509"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),a.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_3186_161"})),a.createElement("clipPath",{id:"bgblur_0_3186_161_clip_path",transform:"translate(-6.9099 -2.16112)"},a.createElement("rect",{x:"10.0413",y:"5.29248",width:"7.91599",height:"5.5412",rx:"2.3748"})),a.createElement("linearGradient",{id:"paint0_linear_3186_161",x1:"36.75",y1:"41.5625",x2:"2.625",y2:"1.75",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FF409A"}),a.createElement("stop",{offset:"1",stopColor:"#FFBE33"}))))}),Ae=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,lt=(At,on,no)=>on in At?Ae(At,on,{enumerable:!0,configurable:!0,writable:!0,value:no}):At[on]=no,rt=(At,on)=>{for(var no in on||(on={}))Xe.call(on,no)&&lt(At,no,on[no]);if(tt)for(var no of tt(on))ne.call(on,no)&&lt(At,no,on[no]);return At},Te=(At,on)=>Oe(At,Be(on)),Ge=(At,on)=>{var no={};for(var mo in At)Xe.call(At,mo)&&on.indexOf(mo)<0&&(no[mo]=At[mo]);if(At!=null&&tt)for(var mo of tt(At))on.indexOf(mo)<0&&ne.call(At,mo)&&(no[mo]=At[mo]);return no},Me=(0,a.forwardRef)((At,on)=>{var no=At,{size:mo,spin:mn,style:ht}=no,Fn=Ge(no,["size","spin","style"]);const Yt=rt(rt({width:mo||"var(--x-icon-size, 1em)",height:mo||"var(--x-icon-size, 1em)",animation:mn?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ht);return a.createElement("svg",Te(rt({ref:on,style:Yt},Fn),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_168)"}),a.createElement("path",{d:"M19.4902 15.0801C19.6509 14.9194 19.892 14.9194 20.0527 15.0801L21.8203 17.0889C21.9004 17.1689 21.9004 17.1691 21.9004 17.249C21.9004 17.4097 21.8199 17.4902 21.6592 17.4902H20.6152C20.6152 20.0615 18.5254 22.1514 15.9541 22.1514H15.6328C15.3918 22.1513 15.2314 21.99 15.2314 21.749V20.624C15.2316 20.3832 15.3919 20.2227 15.6328 20.2227H15.9541C17.4808 20.2227 18.7666 18.9369 18.7666 17.4102H17.8828C17.8025 17.4101 17.7217 17.3298 17.7217 17.4102C17.6417 17.3298 17.6417 17.1692 17.7217 17.0889L19.4902 15.0801ZM11.5146 14.5381C12.624 14.5382 13.5234 15.4375 13.5234 16.5469V20.0615C13.5234 21.1709 12.624 22.0702 11.5146 22.0703H7.99902C6.8896 22.0703 5.99023 21.171 5.99023 20.0615V16.5469C5.99023 15.4374 6.8896 14.5381 7.99902 14.5381H11.5146ZM12.168 6C12.4088 6.0001 12.5692 6.1606 12.5693 6.40137V7.44629C12.5693 7.68728 12.4089 7.84756 12.168 7.84766H11.8467C10.3201 7.84766 9.03436 9.13359 9.03418 10.6602H9.91797C9.99816 10.6602 9.99798 10.741 10.0781 10.8213C10.1585 10.9016 10.1585 11.0622 10.0781 11.1426L8.31055 13.1514C8.14984 13.312 7.90872 13.312 7.74805 13.1514L5.98047 11.1426C5.90017 11.0623 5.90039 11.0618 5.90039 10.9814C5.90054 10.8209 5.98104 10.6602 6.1416 10.6602H7.18555C7.18572 8.089 9.27549 6 11.8467 6H12.168Z",fill:"white"}),a.createElement("path",{d:"M14.3281 8.00883C14.3281 6.89938 15.2275 6 16.337 6H19.8524C20.9618 6 21.8612 6.89938 21.8612 8.00883V11.5243C21.8612 12.6337 20.9618 13.5331 19.8524 13.5331H16.337C15.2275 13.5331 14.3281 12.6337 14.3281 11.5243V8.00883Z",fill:"white",fillOpacity:"0.7"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_3186_168",x1:"26.25",y1:"38.0625",x2:"3.5",y2:"-2.1875",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#41F4FF"}),a.createElement("stop",{offset:"1",stopColor:"#699CFF"}))))}),Ze=Object.defineProperty,fe=Object.defineProperties,it=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Ht=(At,on,no)=>on in At?Ze(At,on,{enumerable:!0,configurable:!0,writable:!0,value:no}):At[on]=no,Tt=(At,on)=>{for(var no in on||(on={}))Ut.call(on,no)&&Ht(At,no,on[no]);if(et)for(var no of et(on))G.call(on,no)&&Ht(At,no,on[no]);return At},Vt=(At,on)=>fe(At,it(on)),He=(At,on)=>{var no={};for(var mo in At)Ut.call(At,mo)&&on.indexOf(mo)<0&&(no[mo]=At[mo]);if(At!=null&&et)for(var mo of et(At))on.indexOf(mo)<0&&G.call(At,mo)&&(no[mo]=At[mo]);return no},Lt=(0,a.forwardRef)((At,on)=>{var no=At,{size:mo,spin:mn,style:ht}=no,Fn=He(no,["size","spin","style"]);const Yt=Tt(Tt({width:mo||"var(--x-icon-size, 1em)",height:mo||"var(--x-icon-size, 1em)",animation:mn?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),ht);return a.createElement("svg",Vt(Tt({ref:on,style:Yt},Fn),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_173)"}),a.createElement("path",{d:"M11.7118 9.09843C11.7118 10.2636 10.7672 11.2081 9.60209 11.2081C8.43696 11.2081 7.49243 10.2636 7.49243 9.09843C7.49243 7.9333 8.43696 6.98877 9.60209 6.98877C10.7672 6.98877 11.7118 7.9333 11.7118 9.09843Z",fill:"white"}),a.createElement("path",{opacity:"0.5",d:"M5.08946 19.535L8.95057 15.2449C9.40441 14.7406 10.1951 14.7406 10.6489 15.2449L14.5101 19.535C15.1717 20.2702 14.65 21.4417 13.6609 21.4417H5.93865C4.94954 21.4417 4.42778 20.2702 5.08946 19.535Z",fill:"white"}),a.createElement("path",{d:"M10.8399 19.5274L16.0972 13.7921C16.55 13.2981 17.3288 13.2981 17.7816 13.7921L23.0389 19.5274C23.7106 20.2602 23.1908 21.4418 22.1967 21.4418H11.682C10.688 21.4418 10.1682 20.2602 10.8399 19.5274Z",fill:"white"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_3186_173",x1:"-4.23752e-08",y1:"-2.625",x2:"24.0625",y2:"32.8125",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#A56DFF"}),a.createElement("stop",{offset:"1",stopColor:"#7CB2FF"}))))}),jt=i(72214);const mt=()=>[{key:"drawio",classname:"drawio",title:I18N.LeftSidePanel.graphModal.graph.title,desc:I18N.LeftSidePanel.graphModal.graph.desc,icon:(0,jt.jsx)(we,{size:28}),disabled:!1},...ENV.IS_ON_PREMISES?[]:[{key:"htmlimport",classname:"preview",title:"HTML\u8F6C\u58A8\u5200",desc:"\u5C06HTML\u8F6C\u6362\u4E3A\u53EF\u7F16\u8F91\u7684\u9875\u9762",icon:(0,jt.jsx)(Me,{size:28}),disabled:!1},{key:"image2prototype",classname:"image2prototype",title:"\u56FE\u7247\u8F6C\u539F\u578B",desc:"\u4E0A\u4F20\u56FE\u7247\uFF0C\u4E00\u952E\u8F6C\u4E3A\u539F\u578B\u754C\u9762",icon:(0,jt.jsx)(Lt,{size:28}),disabled:!1}]],Jn="Ai_image_to_proto_db",o=1,so="file_data",Et=()=>new Promise((At,on)=>{const no=indexedDB.open(Jn,o);no.onerror=()=>on(no.error),no.onsuccess=()=>At(no.result),no.onupgradeneeded=mo=>{const mn=mo.target.result;mn.objectStoreNames.contains(so)||mn.createObjectStore(so)}}),Jt=async(At,on)=>{try{const mn=(await Et()).transaction([so],"readwrite").objectStore(so);return new Promise((ht,Fn)=>{const Yt=mn.put(on,At);Yt.onsuccess=()=>ht(),Yt.onerror=()=>Fn(Yt.error)})}catch(no){console.error("IndexedDB \u5B58\u50A8\u5931\u8D25:",no)}},Ot=async()=>{try{await(await Et()).transaction([so],"readwrite").objectStore(so).clear()}catch(At){console.error("IndexedDB \u6E05\u7406\u5931\u8D25:",At)}},dn=async At=>{const on=document.createElement("input");return on.type="file",on.accept=".jpeg,.jpg,.png,.gif,.webp",on.multiple=!0,new Promise(no=>{on.onchange=async mo=>{const mn=Array.from(mo.target.files||[]);if(mn.length===0){no(!1);return}const ht=mn.slice(0,10);try{const Fn=ht,Yt="ai_image_to_proto_files_"+Date.now()+"_"+Math.random().toString(36).substring(2,9);try{await Ot(),await Jt(Yt,Fn),At&&At(Yt)}catch(Gt){At&&At("")}no(!0)}catch(Fn){no(!1)}},on.click()})},Ce=At=>{let{direction:on="right",portalClassName:no="#left-slide-panel .left-panel-box"}=At;const[mo,mn]=(0,a.useState)(!1),ht=(0,k.wA)(),Fn=on==="left",Yt=qt=>{mn(qt)},Gt=qt=>{ht(J.GO.updateAIHTMLAgentType("prototyping")),ht(J.GO.enableAIHTML()),ht(J.GO.expandAIHTML()),ht(J.GO.updateAIHTMLFileStorageKey(qt)),MB.commonGuideHelper.hideAllGuides(),O.U4.AIOpenSourceTrack("AIHTML")},Bn=qt=>{qt==="drawio"&&ht({type:"entry:widget:graph:edit",payload:{action:"new-widget"}}),qt==="htmlimport"&&ht({type:"htmlImportPanel:set:show",payload:{show:!0}}),qt==="image2prototype"&&dn(Zt=>Gt(Zt))};return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsx)(Pt,{direction:on,className:P()("more-graph-dropdown",{"is-open":mo}),renderOpener:(0,jt.jsxs)("div",{className:P()("more-opener"),children:[(0,jt.jsx)(q.C,{name:mo?"left_panel/dropdown/more/selected":"left_panel/dropdown/more",className:"item-icon",size:32}),(0,jt.jsx)("span",{className:"item-label",children:I18N.WorkspaceGuidePane.tool})]}),onClick:Yt,offsetX:Fn?-8:-4,renderMenu:(0,jt.jsx)(Nn,{children:mt().map(qt=>(0,jt.jsxs)("li",{className:P()("item-menu",qt.classname,{disabled:qt.disabled}),onClick:()=>Bn(qt.key),children:[(0,jt.jsx)("div",{className:"image-box",children:qt.icon}),(0,jt.jsxs)("div",{className:"wrap",children:[(0,jt.jsx)("span",{className:"title",children:qt.title}),(0,jt.jsx)("span",{className:"desc",children:qt.desc})]})]},qt.key))})})})},Pt=(0,Y.Ay)(C.A).withConfig({displayName:"MoreGraphDropDown__StyledMoreGraphDropDown",componentId:"sc-gb2pwg-0"})(["border-radius:6px;"," .more-opener{width:100%;display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;cursor:pointer;position:relative;color:",";.item-label{font-size:12px;font-weight:400;line-height:12px;white-space:nowrap;}.item-icon{width:32px;height:32px;}}&:not(.is-open):hover{background-color:",";}&.is-open{background:",";}"],At=>At.direction==="right"&&" width: 38px;\n height: 52px;\n margin-top: 8px;\n ",At=>At.theme.color_text_L1,At=>At.direction==="left"?At.theme.color_navigation_hover:At.theme.color_navigation_active,At=>At.theme.color_navigation_active),Nn=Y.Ay.ul.withConfig({displayName:"MoreGraphDropDown__StyledMoreGraphMenu",componentId:"sc-gb2pwg-1"})(["width:240px;background:",";box-shadow:",";border-radius:10px;color:",";border:1px solid ",";padding:16px;display:flex;gap:10px;flex-direction:column;li.item-menu{list-style:none;display:flex;border:1px solid ",";height:48px;border-radius:8px;align-items:center;padding-left:10px;.image-box{width:28px;height:28px;margin-right:10px;}&.disabled{.wrap .title{color:",";}}.icon-box{width:32px;height:32px;background:",";border:1px solid ",";border-radius:8px;display:flex;align-items:center;justify-content:center;margin-right:12px;}.wrap{display:flex;font-size:12px;line-height:16px;display:flex;flex-direction:column;.title{font-weight:500;color:",";}.desc{color:",";font-size:11px;}}&:not(.disabled):hover{cursor:pointer;background:",";border-color:",";}}"],At=>At.theme.color_bg_white,At=>At.theme.shadow_m,At=>At.theme.color_text_L0,At=>At.theme.color_bg_border_01,At=>At.theme.color_bg_border_01,At=>At.theme.color_text_L3,At=>At.theme.color_bg_white,At=>At.theme.color_bg_border_01,At=>At.theme.color_text_L1,At=>At.theme.color_text_L3,At=>At.theme.color_btn_secondary_hover,At=>At.theme.color_btn_secondary_hover)}}]);
//# sourceMappingURL=3.h4vam-vendor-2d698da2724b2e432fa0.js.map