PageSourceSearch

https://rplay.live/js/CXicKHb4SP2.js

js rplay.live collected 2026-10-02 11:56:11 UTC 85,204 bytes, 57 lines download raw bytes

1import{o as Je,t as ie}from"./CCsIRJX9sy.js";import{a as Ze,c as pt,d as ht,f as gt,i as Ge,l as vt,n as yt,o as mt,s as bt,v as rt,y as Se}from"./D4s8NS7eBb.js";import{t as Ae}from"./CAzdJxL5qq.js";import{$ as Ke,A as Le,Dt as et,Et as Ye,I as wt,J as L,L as ce,S as re,Tt as le,_ as Q,g as Xe,h as x,kt as ge,l as Pe,o as tt,ot as J,tt as Oe,v as T,x as he,xt as ze,z as Ne}from"./Qp7DIKPca1.js";import{t as qe}from"./DXLFET3NEE.js";import{b as nt,nt as We}from"../assets/index-Bk5f3PUP.js";import{t as xt}from"./CCUQA_Vl9j.js";import{n as Me,t as Ve}from"./gA6wlOek_4.js";import{t as St}from"./Bx_OBXj2zx.js";import"./DK-QUE0afv.js";import Ct from"./BEXhNRhS7Z2.js";import{t as Et}from"./upOIVl5bJn2.js";Le();var Mt={name:"ScenarioEdge",props:{dashed:{required:!0},edgeData:{type:Object,required:!0}},components:{},computed:{edgeGraphic(){return this.edgeData.edgeGraphic}},methods:{onDeleteEdge(){this.$emit("delete-edge",this.edgeData)},quadFromState({alignX:t,alignY:e}){let i;return t?e?i=4:i=1:e?i=3:i=2,i}},created(){},mounted(){},data(){return{}}},Ot=["set"],kt={class:"absolute flex h-8 w-8 items-center justify-center rounded-pill text-lg leading-relaxed font-weight-bold text-content-primary"},Pt={class:"whitespace-no-wrap relative flex h-0 w-full items-center justify-center"},jt={class:"z-dropdown rounded border-strong bg-inverse-surface px-2 text-xs leading-standard text-content-tertiary"},_t={class:"absolute flex h-8 w-8 items-center justify-center rounded-pill text-lg leading-relaxed font-weight-bold text-content-primary"};function At(t,e,i,v,o,s){return L(),T("div",{class:ce(["absolute z-dropdown flex h-0 w-0 flex-col bg-status-form-error-soft",{"items-start":s.edgeGraphic.alignX,"items-end":!s.edgeGraphic.alignX,"justify-start":s.edgeGraphic.alignY,"justify-end":!s.edgeGraphic.alignY}]),style:Ne({left:s.edgeGraphic.corner1x+"px",top:s.edgeGraphic.corner1y+"px"})},[x("div",{class:"flex flex-col",style:Ne({"min-height":s.edgeGraphic.height+"px",height:s.edgeGraphic.height+"px","min-width":s.edgeGraphic.width+"px",width:s.edgeGraphic.width+"px"}),set:t.quad=s.quadFromState(s.edgeGraphic)},[x("div",{class:ce(["relative w-full border-b-strong border-dashed border-border-strong",{"border-r-strong":t.quad==1||t.quad==3,"border-l-strong":t.quad==4||t.quad==2}]),style:{height:"50%"}},[x("div",{class:ce(["absolute bottom-0 flex h-full w-0 items-end justify-center",{"left-0":t.quad==4||t.quad==2,"right-0":t.quad==3||t.quad==1}])},[x("div",kt,J(t.quad==3||t.quad==4?"▼":"▲"),1)],2)],2),x("div",Pt,[x("span",jt,[he(J(t._tr("Studio","opt"))+" "+J(i.edgeData.edgeType)+" ",1),x("button",{class:"z-dropdown p-1 text-xs leading-standard text-accent-default hover:opacity-disabled",onClick:e[0]||(e[0]=(...g)=>s.onDeleteEdge&&s.onDeleteEdge(...g))},J(t._tr("Studio","del")),1)])]),x("div",{class:ce(["relative w-full border-dashed border-border-strong",{"border-l-strong":t.quad==1||t.quad==3,"border-r-strong":t.quad==4||t.quad==2}]),style:{height:"50%"}},[x("div",{class:ce(["absolute flex h-full w-0 items-start justify-center",{"left-0":t.quad==3||t.quad==1,"right-0":t.quad==4||t.quad==2}])},[x("div",_t,J(t.quad==3||t.quad==4?"▼":"▲"),1)],2)],2)],12,Ot)],6)}var Nt=qe(Mt,[["render",At]]);Le();var Lt={name:"ScenarioStudio",components:{Spinner:xt,PlaxButton:nt,ContentThumbnail2:St,ScenarioEdge:Nt},props:{navBarHeight:{required:!0},showSidebar:{type:Boolean},scenarioData:{type:Object}},computed:{currentUserInfo(){return this.$store.getters["AccountModule/currentUserInfo"]},currentWipScenario(){return this.$store.getters["AccountModule/getScenarioWip"]},contentOids(){return this.contents?Object.keys(this.contents):[]},sidebarWidth(){return this.showSidebar?216:0}},methods:{initWithMetadata(t){if(t.metadata)for(const e of Object.keys(t.metadata))Me(this.metadata,e,t.metadata[e]);this.scenarioOid=t._id,this.edgeSet=t.edgeSet||{},this.contents=t.contents||{},this.updateWipScenario(this.scenarioOid)},updateWipScenario(t){this.$store.dispatch("AccountModule/updateScenarioWip",{scenarioOid:t})},addPageHeight(){Me(this.metadata,"pageHeight",this.metadata.pageHeight+1e3)},assignStartingContent(t){return()=>{let e=!1;if(t.edges){for(const i of Object.keys(t.edges))if(i.includes("in")){e=!0;break}}e?Ae.$emit("on-open-confirm-popup",{question:`${this._tr("StudioPublishPrompt","you-cant-do-that")}`,message:`${this._tr("StudioPublishPrompt","scenario-cant-assign")}`}):Me(this.metadata,"entryContent",t.contentOid)}},deleteEdgesInContent(t){if(this.contents[t].edges&&Object.keys(this.contents[t].edges).length!=0)for(const e of Object.keys(this.contents[t].edges)){const i=this.contents[t].edges[e],v=i.start==t?i.end:i.start,o=this.contents[v],s={};
1for(const g of Object.keys(o.edges)){const _=o.edges[g];_.edgeHash!=i.edgeHash&&(s[g]=_)}o.edges=s,Ve(this.edgeSet,i.edgeHash)}},deleteContent(t){return()=>{this.deleteEdgesInContent(t),Ve(this.contents,t),Me(this.contentMap[t],"selected",!1)}},editPrompt(t){return()=>{this.contents[t].choices?this.choicesEditMode=JSON.parse(JSON.stringify(this.contents[t].choices)):this.choicesEditMode={},Ae.$emit("on-open-query-prompt",{context:this,callbackYes:()=>new Promise(e=>{this.contents[t].choices=JSON.parse(JSON.stringify(this.choicesEditMode)),this.choicesEditMode={},e()}),message:this._tr("Studio","input-opt"),question:this._tr("Studio","edit-opt")})}},edgeGraphicFromContentDrag(t){const e=this.edgeSet[t],i=e.edgeGraphic.offsetX,v=e.edgeGraphic.offsetY,o=this.contents[e.start],s=this.contents[e.end],g=10,_=o.pos.x-i,C=o.pos.y+v,V=s.pos.x+this.sidebarWidth>_,b=s.pos.y-this.navBarHeight()-g>C;return{offsetX:i,offsetY:v,corner1x:_,corner1y:C,width:Math.abs(o.pos.x-s.pos.x-i),height:Math.abs(o.pos.y-(s.pos.y-this.navBarHeight()-g-v)),alignX:V,alignY:b}},newEdgeGraphic(t,e){let i=0;this.edgeCreateMode==="A"?i=90:this.edgeCreateMode==="B"?i=30:this.edgeCreateMode==="C"?i=-30:this.edgeCreateMode==="D"&&(i=-90);const v=85,o=t.pos.x-i,s=t.pos.y+v,g=e.pageX>o,_=e.pageY-this.navBarHeight()>s,C=Math.abs(t.pos.x-i-e.pageX),V=Math.abs(t.pos.y-(e.pageY-this.navBarHeight()-v));return{offsetX:i,offsetY:v,corner1x:o,corner1y:s,width:C,height:V,alignX:g,alignY:_}},reset(){this.selectedContent&&(this.selectedContent=void 0),this.edgeCreateMode=void 0,this.stagedContent=void 0,this.edgeBeingCreated=void 0},consolidateEdge(t){if(!this.edgeBeingCreated)return;const e=new Date().getTime().toString(16);this.edgeBeingCreated.end=t,this.edgeBeingCreated.edgeHash=e;const i=JSON.parse(JSON.stringify(this.edgeBeingCreated)),v=this.edgeBeingCreated.edgeType,o=this.contents[this.edgeBeingCreated.start],s=this.contents[t];this.metadata.entryContent==s.contentOid&&Me(this.metadata,"entryContent",void 0),o.edges||(o.edges={}),o.edges[v]=i,s.edges||(s.edges={}),s.edges[`in-${Object.keys(s.edges).length}`]=i,this.edgeSet[e]=i,this.edgeSet[e].edgeGraphic=this.edgeGraphicFromContentDrag(e),this.edgeBeingCreated=void 0,this.selectedContent=void 0,this.edgeCreateMode=void 0,this.stagedContent=void 0},redrawNewEdge(t){if(this.edgeCreateMode){this.mouseMoveEvent=t;const e=this.newEdgeGraphic(this.stagedContent,t);Me(this.edgeBeingCreated,"edgeGraphic",e)}},redrawExistingEdge(t){const e=this.edgeGraphicFromContentDrag(t);Me(this.edgeSet[t],"edgeGraphic",e)},deleteSingleEdge(t,e){const i=this.contents[t].edges;if(!i||!i[e]||Object.keys(i).length==0)return;const v=i[e].end,o=this.contents[v].edges,s=i[e].edgeHash;Ve(this.edgeSet,s),Ve(i,e);for(const g of Object.keys(o)){const _=o[g];if(_.start==t&&_.edgeType==e){Ve(o,g);break}}},createEdgeFrom(t,e){return()=>{this.deleteSingleEdge(t.contentOid,e);const i=this.newEdgeGraphic(this.stagedContent,this.mouseMoveEvent);this.edgeBeingCreated={start:t.contentOid,edgeType:e,edgeGraphic:i},wt(()=>{this.edgeCreateMode=e})}},onStageContent(t,e){e.stopPropagation(),this.stagedContent=this.contents[t]},generateMetaData(){return{scenarioOid:this.scenarioOid,contents:this.contents,edgeSet:this.edgeSet,metadata:this.metadata}},async onSaveScenario(){this.processing=!0;const{data:t}=await We.updateScenario({operation:"save",scenario:this.generateMetaData()});this.scenarioOid=t.scenarioOid,this.updateWipScenario(this.scenarioOid),setTimeout(()=>{this.processing=!1},500)},publishScenarioPrompt(){Ae.$emit("scenario-publish-prompt",{creatorOid:this.currentUserInfo,scenarioOid:this.scenarioOid,scenarioData:this.generateMetaData(),metadataSaveCallback:this.metadataSaveCallback})},onAddContent(){Ae.$emit("add-scenario-content",{context:{contents:this.contents,contentMap:this.contentMap,onSelectContentCallback:this.onSelectContentCallback},callbackYes:()=>new Promise(t=>{t()})})},onSelectContentCallback(t){Me(this.contentMap[t],"selected",!0);const e={x:400+(Math.random()-1)*200,y:400+(Math.random()-1)*200};Me(this.contents,t,{contentOid:t,pos:e})},onContentMouseDown(t,e){e.stopPropagation(),e.preventDefault(),this.onStageContent(t,e),this.selectedContent=this.contents[t],this.$store.dispatch("StudioMo
1dule/updateMouseAction",{type:1,caller:"content",event:e,thingBeingClicked:this.selectedContent})},onContentMouseUp(t,e){e.stopPropagation(),e.preventDefault(),this.stagedContent=void 0,this.$store.dispatch("StudioModule/updateMouseAction",{type:-1,caller:"content",event:e})},setSelectedContentPositionWithEvent(t,e,i){const v=this.$refs[e.contentOid][0].clientWidth;this.$refs[e.contentOid][0].clientHeight;const o=v/2-i.downEvent.offsetX,s=6-i.downEvent.offsetY;if(e.pos={x:t.pageX+o,pageX:t.pageX,y:Math.min(t.pageY+s,this.metadata.pageHeight-this.navBarHeight()-150),pageY:t.pageY},e.edges)for(const g of Object.keys(e.edges))this.redrawExistingEdge(e.edges[g].edgeHash);this.edgeStateIdx++},onContentSelectCallback(t){},onContentUnselectCallback(t){this.selectedContent=void 0},onContentRelease(){},onMouseMove(t,e,i,v){this.setSelectedContentPositionWithEvent(t,i,v)},attachMouseCallbacks(){this.$store.dispatch("StudioModule/registerCallback",{name:"onContentSelect",type:1,callback:this.onContentSelectCallback,caller:"content"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onContentDrag",type:0,caller:"content",callback:this.onMouseMove}),this.$store.dispatch("StudioModule/registerCallback",{name:"onContentRelease",type:-1,callback:this.onContentUnselectCallback,caller:"content"})}},updated(){},created(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(this.isMobile=!0);const t=this.$route.params.scenarioData;t?this.initWithMetadata(t):this.currentWipScenario?We.getContentWithOid({oid:this.currentWipScenario,status:"scenario"}).then(({data:e})=>{this.initWithMetadata(e)}):We.getNewOidForPublish({isScenario:!0}).then(({data:e})=>{this.initWithMetadata(e)})},mounted(){const t={};if(this.currentUserInfo){if(this.currentUserInfo.published)for(const e of this.currentUserInfo.published)t[e]={selected:!1};this.contentMap=t,this.attachMouseCallbacks()}},beforeUnmount(){this.$store.dispatch("StudioModule/removeCallback",{name:"onContentSelect",type:1,caller:"content"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onContentDrag",type:0,caller:"content"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onContentRelease",type:-1,caller:"content"})},data(){return{isMobile:!1,edgeStateIdx:0,tickIdx:0,processing:!1,mouseMoveEvent:void 0,edgeCreateMode:void 0,stagedContent:void 0,selectedContent:void 0,hoveringContent:void 0,choicesEditMode:{},contents:{},contentMap:{},edgeSet:{},scenarioOid:void 0,metadata:{title:"",published:!1,synopsis:"",creatorOid:void 0,creatorNickname:void 0,entryContent:void 0,views:0,allowWholesale:!1,allowBonus:!1,bonusCoinConsumeRate:100,wholesalePrice:0,pageHeight:1e3,hashtags:{}},edgeBeingCreated:void 0}}},qt={key:0,class:"absolute top-0 flex h-screen w-full items-center justify-center",style:{"z-index":"var(--layer-navigation)"}},Tt={class:"rounded-xl p-2",style:{"background-color":"var(--color-studio-saved-surface)"}},It={class:"absolute bottom-0 mb-10 flex w-full justify-center"},Dt={key:0,class:"fixed mt-2 flex w-full items-center justify-center",style:{width:"inherit","z-index":"var(--layer-navigation)"}},Rt={class:"flex w-full flex-row justify-between rounded-compact bg-surface-sunken p-2"},Bt={class:"flex flex-row items-center justify-center"},Ft=["onClick","onMouseenter"],Vt=["onMousedown","on:mouseUp"],Gt={key:0,class:"absolute top-0 z-dropdown -mt-10 rounded-pill bg-accent-default p-2 text-xs leading-standard"},Ht={class:"w-full rounded bg-surface-sunken",style:{padding:"var(--space-component-sm-tight)"}},Yt={key:1,class:"absolute left-0 top-0 z-navigation flex h-screen w-full flex-col items-start justify-center bg-surface-canvas px-12 text-xl leading-tight font-weight-bold"};function zt(t,e,i,v,o,s){const g=Oe("router-link"),_=Oe("ScenarioEdge"),C=Oe("PlaxButton"),V=Oe("ContentThumbnail2");return L(),T("div",{class:"noscrollbar relative min-h-screen w-full bg-surface-raised text-content-primary",style:Ne({height:o.metadata.pageHeight+"px"}),onMousedown:e[15]||(e[15]=(...b)=>s.reset&&s.reset(...b)),onMousemove:e[16]||(e[16]=(...b)=>s.redrawNewEdge&&s.redrawNewEdge(...b))},[re(Pe,{name:"fade",mode:"out-in"},{default:le(()=>[o.processing?(L(),T("div",qt,[x("span",Tt,J(t._tr("Studio","saved")),1)])):Q("",!0)],void 0,!0),_:1}),x("div",It,[x("button",{class:"w-32 rounded-pill bg-accent-default px-2 py-1 text-xs leading-standard",onClick:e[0]||(e[0]=(...b)=>s.addPageHeight&&s.addPageHeight(...b))},J(t._tr("Studio","expand")),1)]),o.isMobile?Q("",!0):(L(),T("div",Dt,[x("div",Rt,[x("button",{class:"mx-2 w-32 rounded-pill bg-accent-default px-2 py-1 text-xs leading-standard",onClick:e[1]||(e[1]=(...b)=>s.onAddContent&&s.onAddContent(...b))}," + "+J(t._tr("Studio","add-cont")),1),x("button",{class:"text-xs leading-standard",onClick:e[2]||(e[2]=(...b)=>s.publishScenarioPrompt&&s.publishScenarioPrompt(...b))},J(o.metadata.title?o.metadata.title:t._tr("Studio","untitled")),1),x("div",Bt,[re(g,{class:"mr-2 w-32 rounded-pill bg-surface-disabled-soft px-2 py-1 text-center text-xs leading-standard",to:{name:"ScenarioStudioGuide"},target:"_blank"},{default:le(()=>[he(J(t._tr("Studio","guide")),1)],void 0,!0),_:1}),x("button",{class:"mr-2 w-32 rounded-pill bg-accent-default px-2 py-1 text-xs leading-standard",onClick:e[3]||(e[3]=(...b)=>s.publishScenarioPrompt&&s.publishScenarioPrompt(...b))},J(t._tr("Studio","upload-setting")),1),o.metadata.published?Q("",!0):(L(),T("button",{key:0,class:"w-32 rounded-pill bg-accent-default px-2 py-1 text-xs leading-standard",onClick:e[4]||(e[4]=(...b)=>s.onSaveScenario&&s.onSaveScenario(...b))},J(t._tr("Studio","save")),1))])])])),(L(),T("div",{class:"absolute top-0 z-base w-full",key:o.edgeStateIdx},[(L(!0),T(tt,null,Ke(Object.keys(o.edgeSet),b=>(L(),Xe(_,{key:b,dashed:!0,edgeData:o.edgeSet[b],onDeleteEdge:B=>s.deleteSingleEdge(o.edgeSet[b].start,o.edgeSet[b].edgeType)},null,8,["edgeData","onDeleteEdge"]))),128)),o.edgeCreateMode&&o.mouseMoveEvent?(L(),Xe(_,{key:0,dashed:!0,edgeData:o.edgeBeingCreated},null,8,["edgeData"])):Q("",!0)])),(L(!0),T(tt,null,Ke(s.contentOids,b=>(L(),T("div",{class:"z-local-content",key:b},[x("div",{class:"absolute flex h-0 w-0 flex-col items-center justify-center",onClick:B=>s.consolidateEdge(b),onMouseenter:B=>o.hoveringContent=b,onMouseleave:e[14]||(e[14]=B=>o.hoveringContent=void 0),style:Ne({left:o.contents[b].pos.x+"px",top:o.contents[b].pos.y+"px"})},[x("button",{class:"relative flex justify-center rounded",style:{width:"180px"},ref_for:!0,ref:`${b}`,onMousedown:B=>s.onContentMouseDown(b,B),"on:mouseUp":B=>s.onContentMouseUp(b,B)},[b==o.metadata.entryContent?(L(),T("div",Gt,J(t._tr("Studio","start-point")),1)):Q("",!0),o.stagedContent&&o.stagedContent==o.contents[b]?(L(),T("div",{key:1,class:"absolute right-0 z-dropdown mt-5 flex h-0 w-0 flex-col items-start justify-center px-2",onMousedown:e[8]||(e[8]=ge(B=>
1o.mouseMoveEvent=B,["stop"])),style:{"--recipe-scenario-studio-action-inline-offset":"-100px","margin-left":"var(--recipe-scenario-studio-action-inline-offset)",height:"100px"}},[re(C,{class:"mx-4 mb-3 h-6 w-24 text-xs leading-standard",onMousedown:e[5]||(e[5]=ge(()=>{},["stop"])),buttonColor:"plaxgray-90",isRenewal:!0,callback:s.deleteContent(b)},{default:le(()=>[he(J(t._tr("Studio","del")),1)],void 0,!0),_:1},8,["callback"]),re(C,{class:"mx-4 mb-3 h-6 w-24 text-xs leading-standard",onMousedown:e[6]||(e[6]=ge(()=>{},["stop"])),buttonColor:"plaxgray-90",isRenewal:!0,callback:s.editPrompt(b)},{default:le(()=>[he(J(t._tr("Studio","edit-opt")),1)],void 0,!0),_:1},8,["callback"]),re(C,{class:"mx-4 h-6 w-24 text-xs leading-standard",onMousedown:e[7]||(e[7]=ge(()=>{},["stop"])),buttonColor:"plaxgray-90",isRenewal:!0,callback:s.assignStartingContent(o.contents[b])},{default:le(()=>[he(J(t._tr("Studio","pin-start")),1)],void 0,!0),_:1},8,["callback"])],32)):Q("",!0),o.stagedContent&&o.stagedContent==o.contents[b]?(L(),T("div",{key:2,class:"absolute bottom-0 z-dropdown mt-2 flex h-20 flex-row items-center justify-center px-2",onMousedown:e[13]||(e[13]=ge(B=>o.mouseMoveEvent=B,["stop"])),style:{"--recipe-scenario-studio-action-block-offset":"-55px",width:"250px","margin-bottom":"var(--recipe-scenario-studio-action-block-offset)"}},[re(C,{class:"mx-1 h-6 text-xs leading-standard",style:{width:"50px"},onMousedown:e[9]||(e[9]=ge(()=>{},["stop"])),buttonColor:"plaxsky",isRenewal:!0,callback:s.createEdgeFrom(o.stagedContent,"A")},{default:le(()=>[he(J(t._tr("Studio","opt"))+" A ",1)],void 0,!0),_:1},8,["callback"]),re(C,{class:"mx-1 h-6 text-xs leading-standard",style:{width:"50px"},onMousedown:e[10]||(e[10]=ge(()=>{},["stop"])),buttonColor:"plaxsky",isRenewal:!0,callback:s.createEdgeFrom(o.stagedContent,"B")},{default:le(()=>[he(J(t._tr("Studio","opt"))+" B ",1)],void 0,!0),_:1},8,["callback"]),re(C,{class:"mx-1 h-6 text-xs leading-standard",style:{width:"50px"},onMousedown:e[11]||(e[11]=ge(()=>{},["stop"])),buttonColor:"plaxsky",isRenewal:!0,callback:s.createEdgeFrom(o.stagedContent,"C")},{default:le(()=>[he(J(t._tr("Studio","opt"))+" C ",1)],void 0,!0),_:1},8,["callback"]),re(C,{class:"mx-1 h-6 text-xs leading-standard",style:{width:"50px"},onMousedown:e[12]||(e[12]=ge(()=>{},["stop"])),buttonColor:"plaxsky",isRenewal:!0,callback:s.createEdgeFrom(o.stagedContent,"D")},{default:le(()=>[he(J(t._tr("Studio","opt"))+" D ",1)],void 0,!0),_:1},8,["callback"])],32)):Q("",!0),x("div",Ht,[re(V,{forceVisible:!0,dontBlur:!0,contentOid:b,isMobile:!1,withCreatorInfo:!1,style:{"pointer-events":"none"}},null,8,["contentOid"])])],40,Vt)],44,Ft)]))),128)),o.isMobile?(L(),T("div",Yt,[e[17]||(e[17]=x("span",{class:"mb-2 self-center",style:{"font-size":"var(--recipe-scenario-studio-mobile-icon-size)"}},"😭",-1)),he(" "+J(t._tr("Studio","mobile-unavailable")),1),e[18]||(e[18]=x("br",null,null,-1)),he(J(t._tr("Studio","mobile-unavailable-2")),1)])):Q("",!0)],36)}var Ut=qe(Lt,[["render",zt],["__scopeId","data-v-2d588fe3"]]);Le();var Wt={name:"RightClickMenu",props:{context:{type:Object},durationCallback:{default:void 0},fillCallback:{default:void 0},trashCallback:{default:void 0}},watch:{context(t){t&&this.onMount()}},methods:{executeDurationCallback(t){const e=this.context.selected;this.$emit("durationPopup",{durationInfo:{start:e.start,end:e.end},callbackYes:t})},executeCallbackAndClose(t){t(),this.$emit("on-menu-close")},fullLength(){this.timelineLayerAssetObject.start=0,this.timelineLayerAssetObject.end=this.timelineLayerAssetObject.sessionLength,EventBus.$emit("onRefreshTimelineAsset",{timelinehash:this.timelineLayerAssetObject.timelinehash})},fullScreen(){const t=1920/this.metaData.sizeX*100,e=1080/this.metaData.sizeY*100;this.timelineLayerAssetObject.magnification=t>e?Math.ceil(t):Math.ceil(e),EventBus.$emit("onRefreshTimelineAsset",{timelinehash:this.timelineLayerAssetObject.timelinehash})},onMount(){this.metaData=this.context.selected;const t=this.metaData.s3key.split("/")[2];
1this.assetMetaData=this.$store.getters["StudioModule/assetStateFromHash"](t),this.layerNameFromTypeAndLayerNumber(this.metaData.type,this.metaData.layer),this.timelineLayerAssetObject=this.context,this.loaded=!0},secondsToHourMinuteSeconds(t){let e=Math.floor(t/3600);e<10&&(e=`0${e}`);let i=Math.floor((t-3600*e)/60);i<10&&(i=`0${i}`);let v=t-3600*e-60*i;return v=Math.round(v),v<10&&(v=`0${v}`),parseInt(e)>0?`${e}:${i}:${v}`:`${i}:${v}`},layerNameFromTypeAndLayerNumber(t,e){let i="";if(t.includes("image"))i+="image";else if(t.includes("audio")||t.includes("video"))return i+="audioAndVideoLayer",i;return i+=`Layer${e||""}`,i},isValidFloat(t){return/^[0-9]+(\.)?[0-9]*$/.test(t)},round(t){return(Math.floor(t/1e3)*1e3).toFixed(1)}},data(){return{}},mounted(){this.onMount()}},Xt={key:0,class:"tooltiptext text-caption-xs"},$t={key:0,class:"tooltiptext text-caption-xs"},Jt={key:0,class:"tooltiptext text-caption-xs"};function Zt(t,e,i,v,o,s){return L(),T("div",{class:"rounded relative flex h-full flex-col items-center justify-between bg-surface-interactive p-1 py-2 text-xs leading-standard text-content-tertiary",onMousedown:e[3]||(e[3]=ge(()=>{},["stop"]))},[x("div",{class:ce(["tooltip mb-1 flex items-center justify-center rounded-compact bg-surface-interactive py-2 transition-all duration-standard",{"cursor-pointer hover:bg-surface-interactive":!!i.durationCallback}]),onClick:e[0]||(e[0]=g=>i.durationCallback?s.executeDurationCallback(i.durationCallback):1),style:{width:"40px",height:"40px"}},[x("div",{style:{width:"30px",height:"30px"},class:ce({"opacity-quarter":!i.durationCallback})},[...e[4]||(e[4]=[x("img",{class:"object-fill",src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.3.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='레이어_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2028%2028'%20style='enable-background:new%200%200%2028%2028;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23AFAFAF;}%20%3c/style%3e%3cpath%20class='st0'%20d='M27.7,13.5L22,7.7c-0.3-0.3-0.8-0.3-1.1,0c-0.2,0.2-0.2,0.3-0.2,0.6c0,0.2,0.1,0.4,0.2,0.5l4.4,4.4h-9h-4.6h-9%20l4.4-4.4c0.2-0.2,0.2-0.3,0.2-0.5c0-0.2-0.1-0.4-0.2-0.6C6.8,7.4,6.4,7.4,6,7.7l-5.7,5.8c-0.3,0.3-0.3,0.8,0,1.1L6,20.3%20c0.3,0.3,0.8,0.3,1.1,0c0.2-0.2,0.2-0.3,0.2-0.5s-0.1-0.4-0.2-0.5l-4.4-4.4h9h4.6h9l-4.4,4.4c-0.2,0.2-0.2,0.3-0.2,0.5%20s0.1,0.4,0.2,0.5c0.3,0.3,0.8,0.3,1.1,0l5.7-5.7C28,14.3,28,13.8,27.7,13.5z'/%3e%3c/svg%3e"},null,-1)])],2),i.durationCallback?(L(),T("div",Xt,J(t._tr("Studio","set-interval")),1)):Q("",!0)],2),x("div",{class:ce(["tooltip mb-1 flex items-center justify-center rounded-compact bg-surface-interactive transition-all duration-standard",{"cursor-pointer hover:bg-surface-interactive":!!i.fillCallback}]),onClick:e[1]||(e[1]=g=>i.fillCallback?s.executeCallbackAndClose(i.fillCallback):1),style:{width:"40px",height:"40px"}},[i.fillCallback?(L(),T("div",$t,J(t._tr("Studio","fill-screen")),1)):Q("",!0),x("div",{style:{width:"30px",height:"30px"},class:ce({"opacity-quarter":!i.fillCallback})},[...e[5]||(e[5]=[x("img",{class:"object-fill pb-2",src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.3.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='레이어_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2028%2028'%20style='enable-background:new%200%200%2028%2028;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23AFAFAF;}%20%3c/style%3e%3cpath%20class='st0'%20d='M27.2,18.2c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v6.3l-9.6-9.6c0,0-0.1-0.1-0.2-0.1L15.1,14%20L26.4,2.7V9c0,0.2,0.1,0.4,0.2,0.5c0.2,0.2,0.4,0.2,0.6,0.2c0.4,0,0.8-0.3,0.8-0.8l0-8.2c0-0.4-0.3-0.8-0.8-0.8H19%20c-0.4,0-0.8,0.3-0.8,0.8c0,0.2,0.1,0.4,0.2,0.5s0.3,0.2,0.5,0.2h6.3L14,12.9L2.7,1.6H9c0.2,0,0.4-0.1,0.5-0.2%20c0.2-0.2,0.2-0.4,0.2-0.6c0-0.4-0.3-0.8-0.8-0.8l-8.2,0c-0.4,0-0.8,0.3-0.8,0.8V9c0,0.4,0.3,0.8,0.8,0.8c0.2,0,0.4-0.1,0.5-0.2%20S1.6,9.2,1.6,9V2.7L12.9,14l-2.6,2.6c0,0,0,0.1-0.1,0.1l-8.7,8.7V19c0-0.2-0.1-0.4-0.2-0.5c-0.2-0.2-0.4-0.2-0.6-0.2%20c-0.4,0-0.8,0.3-0.8,0.8l0,8.2c0,0.4,0.3,0.8,0.8,0.8H9c0.4,0,0.8-0.3,0.8-0.8c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2H2.7%20l9.6-9.6c0,0,0-0.1,0.1-0.1l1.6-1.6l2.2,2.2c0,0,0.1,0.1,0.2,0.1l8.9,8.9H19c-0.2,0-0.4,0.1-0.5,0.2c-0.2,0.2-0.2,0.4-0.2,0.6%20c0,0.4,0.3,0.8,0.8,0.8l8.2,0c0.4,0,0.8-0.3,0.8-0.8V19C27.9,18.6,27.6,18.2,27.2,18.2z'/%3e%3c/svg%3e"},null,-1)])],2)],2),e[7]||(e[7]=x("div",{class:"h-2 w-full"},null,-1)),e[8]||(e[8]=x("div",{class:"w-full bg-surface-interactive",style:{height:"1px"}},null,-1)),e[9]||(e[9]=x("div",{class:"h-2 w-full"},null,-1)),x("div",{class:ce(["tooltip flex items-center justify-center rounded-compact bg-surface-interactive transition-all duration-standard",{"curs
1or-pointer hover:bg-surface-interactive":!!i.trashCallback}]),onClick:e[2]||(e[2]=g=>i.trashCallback?s.executeCallbackAndClose(i.trashCallback):1),style:{width:"40px",height:"40px"}},[i.trashCallback?(L(),T("div",Jt,J(t._tr("Studio","delete-timeline")),1)):Q("",!0),x("div",{style:{width:"25px",height:"25px"},class:ce({"opacity-quarter":!i.trashCallback})},[...e[6]||(e[6]=[x("img",{class:"object-fill",src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.3.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='레이어_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2028%2030.8'%20style='enable-background:new%200%200%2028%2030.8;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23AFAFAF;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M26.1,4.4h-3.3h-3.3V1.1C19.5,0.5,19,0,18.4,0H9.6C9,0,8.5,0.5,8.5,1.1v3.3H5.2H1.9c-0.6,0-1.1,0.5-1.1,1.1%20s0.5,1.1,1.1,1.1h2.2l1.1,23.2c0,0.6,0.5,1.1,1.1,1.1h15.4c0.6,0,1.1-0.5,1.1-1.1l1.1-23.2h2.2c0.6,0,1.1-0.5,1.1-1.1%20S26.7,4.4,26.1,4.4z%20M10.7,2.2h6.6v2.2h-6.6V2.2z%20M20.6,28.6H7.3l-1-22h3.2h8.8h3.2L20.6,28.6z'/%3e%3c/g%3e%3c/svg%3e"},null,-1)])],2)],2)],32)}var Qt=qe(Wt,[["render",Zt],["__scopeId","data-v-1abef563"]]),ot=ie(((t,e)=>{function i(p){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(p)}function v(p,d){for(var w=0;w<d.length;w++){var y=d[w];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,s(y.key),y)}}function o(p,d,w){return d&&v(p.prototype,d),w&&v(p,w),Object.defineProperty(p,"prototype",{writable:!1}),p}function s(p){var d=g(p,"string");return i(d)==="symbol"?d:String(d)}function g(p,d){if(i(p)!=="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var y=w.call(p,d||"default");if(i(y)!=="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(p)}function _(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function C(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),d&&V(p,d)}function V(p,d){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,W){return y.__proto__=W,y},V(p,d)}function b(p){var d=Y();return function(){var y=j(p),W;if(d){var q=j(this).constructor;W=Reflect.construct(y,arguments,q)}else W=y.apply(this,arguments);return B(this,W)}}function B(p,d){if(d&&(i(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(p)}function K(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function Y(){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{return!1}}
1function j(p){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},j(p)}var A={},ee,ae;function Z(p,d,w){w||(w=Error);function y(W,q,ne){return typeof d=="string"?d:d(W,q,ne)}A[p]=(function(W){C(ne,W);var q=b(ne);function ne(Ce,me,ve){var we;return _(this,ne),we=q.call(this,y(Ce,me,ve)),we.code=p,we}return o(ne)})(w)}function z(p,d){if(Array.isArray(p)){var w=p.length;return p=p.map(function(y){return String(y)}),w>2?"one of ".concat(d," ").concat(p.slice(0,w-1).join(", "),", or ")+p[w-1]:w===2?"one of ".concat(d," ").concat(p[0]," or ").concat(p[1]):"of ".concat(d," ").concat(p[0])}else return"of ".concat(d," ").concat(String(p))}function U(p,d,w){return p.substr(!w||w<0?0:+w,d.length)===d}function se(p,d,w){return(w===void 0||w>p.length)&&(w=p.length),p.substring(w-d.length,w)===d}function oe(p,d,w){return typeof w!="number"&&(w=0),w+d.length>p.length?!1:p.indexOf(d,w)!==-1}Z("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),Z("ERR_INVALID_ARG_TYPE",function(p,d,w){ee===void 0&&(ee=$e()),ee(typeof p=="string","'name' must be a string");var y;typeof d=="string"&&U(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var W;if(se(p," argument"))W="The ".concat(p," ").concat(y," ").concat(z(d,"type"));else{var q=oe(p,".")?"property":"argument";W='The "'.concat(p,'" ').concat(q," ").concat(y," ").concat(z(d,"type"))}return W+=". Received type ".concat(i(w)),W},TypeError),Z("ERR_INVALID_ARG_VALUE",function(p,d){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";ae===void 0&&(ae=Ge());var y=ae.inspect(d);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(w,". Received ").concat(y)},TypeError,RangeError),Z("ERR_INVALID_RETURN_VALUE",function(p,d,w){var y;return w&&w.constructor&&w.constructor.name?y="instance of ".concat(w.constructor.name):y="type ".concat(i(w)),"Expected ".concat(p,' to be returned from the "').concat(d,'"')+" function but got ".concat(y,".")},TypeError),Z("ERR_MISSING_ARGS",function(){for(var p=arguments.length,d=new Array(p),w=0;w<p;w++)d[w]=arguments[w];ee===void 0&&(ee=$e()),ee(d.length>0,"At least one arg needs to be specified");var y="The ",W=d.length;switch(d=d.map(function(q){return'"'.concat(q,'"')}),W){case 1:y+="".concat(d[0]," argument");break;case 2:y+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:y+=d.slice(0,W-1).join(", "),y+=", and ".concat(d[W-1]," arguments");break}return"".concat(y," must be specified")},TypeError),e.exports.codes=A})),Kt=ie(((t,e)=>{rt();function i(h,f){var E=Object.keys(h);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(h);f&&(S=S.filter(function(N){return Object.getOwnPropertyDescriptor(h,N).enumerable})),E.push.apply(E,S)}return E}function v(h){for(var f=1;f<arguments.length;f++){var E=arguments[f]!=null?arguments[f]:{};f%2?i(Object(E),!0).forEach(function(S){o(h,S,E[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(E)):i(Object(E)).forEach(function(S){Object.defineProperty(h,S,Object.getOwnPropertyDescriptor(E,S))})}return h}function o(h,f,E){return f=C(f),f in h?Object.defineProperty(h,f,{value:E,enumerable:!0,configurable:!0,writable:!0}):h[f]=E,h}function s(h,f){if(!(h instanceof f))throw new TypeError("Cannot call a class as a function")}function g(h,f){for(var E=0;E<f.length;E++){var S=f[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,C(S.key),S)}}function _(h,f,E){return f&&g(h.prototype,f),E&&g(h,E),Object.defineProperty(h,"prototype",{writable:!1}),h}function C(h){var f=V(h,"string");return U(f)==="symbol"?f:String(f)}function V(h,f){if(U(h)!=="object"||h===null)return h;var E=h[Symbol.toPrimitive];if(E!==void 0){var S=E.call(h,f||"default");if(U(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}function b(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(f&&f.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),f&&Z(h,f)}function B(h){var f=ee();return function(){var S=z(h),N;if(f){var X=z(this).constructor;N=Reflect.construct(S,arguments,X)}else N=S.apply(this,arguments);return K(this,N)}}function K(h,f){if(f&&(U(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y(h)}
1function Y(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function j(h){var f=typeof Map=="function"?new Map:void 0;return j=function(S){if(S===null||!ae(S))return S;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f<"u"){if(f.has(S))return f.get(S);f.set(S,N)}function N(){return A(S,arguments,z(this).constructor)}return N.prototype=Object.create(S.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),Z(N,S)},j(h)}function A(h,f,E){return ee()?A=Reflect.construct.bind():A=function(N,X,te){var G=[null];G.push.apply(G,X);var c=new(Function.bind.apply(N,G));return te&&Z(c,te.prototype),c},A.apply(null,arguments)}function ee(){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{return!1}}function ae(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function Z(h,f){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,N){return S.__proto__=N,S},Z(h,f)}function z(h){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},z(h)}function U(h){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},U(h)}var se=Ge().inspect,oe=ot().codes.ERR_INVALID_ARG_TYPE;function p(h,f,E){return(E===void 0||E>h.length)&&(E=h.length),h.substring(E-f.length,E)===f}function d(h,f){if(f=Math.floor(f),h.length==0||f==0)return"";var E=h.length*f;for(f=Math.floor(Math.log(f)/Math.log(2));f;)h+=h,f--;return h+=h.substring(0,E-h.length),h}var w="",y="",W="",q="",ne={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},Ce=10;function me(h){var f=Object.keys(h),E=Object.create(Object.getPrototypeOf(h));return f.forEach(function(S){E[S]=h[S]}),Object.defineProperty(E,"message",{value:h.message}),E}function ve(h){return se(h,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(h,f,E){var S="",N="",X=0,te="",G=!1,c=ve(h),r=c.split(`
2`),a=ve(f).split(`
3`),u=0,P="";if(E==="strictEqual"&&U(h)==="object"&&U(f)==="object"&&h!==null&&f!==null&&(E="strictEqualObject"),r.length===1&&a.length===1&&r[0]!==a[0]){var O=r[0].length+a[0].length;if(O<=Ce){if((U(h)!=="object"||h===null)&&(U(f)!=="object"||f===null)&&(h!==0||f!==0))return"".concat(ne[E],`
4
5`)+"".concat(r[0]," !== ").concat(a[0],`
6`)}else if(E!=="strictEqualObject"&&O<(Se.stderr&&Se.stderr.isTTY?Se.stderr.columns:80)){for(;r[0][u]===a[0][u];)u++;u>2&&(P=`
7  `.concat(d(" ",u),"^"),u=0)}}for(var I=r[r.length-1],F=a[a.length-1];I===F&&(u++<2?te=`
8  `.concat(I).concat(te):S=I,r.pop(),a.pop(),!(r.length===0||a.length===0));)I=r[r.length-1],F=a[a.length-1];var ue=Math.max(r.length,a.length);if(ue===0){var be=c.split(`
9`);if(be.length>30)for(be[26]="".concat(w,"...").concat(q);be.length>27;)be.pop();return"".concat(ne.notIdentical,`
10
11`).concat(be.join(`
12`),`
13`)}u>3&&(te=`
14`.concat(w,"...").concat(q).concat(te),G=!0),S!==""&&(te=`
15  `.concat(S).concat(te),S="");var pe=0,Ie=ne[E]+`
16`.concat(y,"+ actual").concat(q," ").concat(W,"- expected").concat(q),He=" ".concat(w,"...").concat(q," Lines skipped");for(u=0;
vendor: 13,759 bytes, lines 16-48
16u<ue;u++){var ye=u-X;if(r.length<u+1)ye>1&&u>2&&(ye>4?(N+=`
17`.concat(w,"...").concat(q),G=!0):ye>3&&(N+=`
18  `.concat(a[u-2]),pe++),N+=`
19  `.concat(a[u-1]),pe++),X=u,S+=`
20`.concat(W,"-").concat(q," ").concat(a[u]),pe++;else if(a.length<u+1)ye>1&&u>2&&(ye>4?(N+=`
21`.concat(w,"...").concat(q),G=!0):ye>3&&(N+=`
22  `.concat(r[u-2]),pe++),N+=`
23  `.concat(r[u-1]),pe++),X=u,N+=`
24`.concat(y,"+").concat(q," ").concat(r[u]),pe++;else{var ke=a[u],xe=r[u],De=xe!==ke&&(!p(xe,",")||xe.slice(0,-1)!==ke);De&&p(ke,",")&&ke.slice(0,-1)===xe&&(De=!1,xe+=","),De?(ye>1&&u>2&&(ye>4?(N+=`
25`.concat(w,"...").concat(q),G=!0):ye>3&&(N+=`
26  `.concat(r[u-2]),pe++),N+=`
27  `.concat(r[u-1]),pe++),X=u,N+=`
28`.concat(y,"+").concat(q," ").concat(xe),S+=`
29`.concat(W,"-").concat(q," ").concat(ke),pe+=2):(N+=S,S="",(ye===1||u===0)&&(N+=`
30  `.concat(xe),pe++))}if(pe>20&&u<ue-2)return"".concat(Ie).concat(He,`
31`).concat(N,`
32`).concat(w,"...").concat(q).concat(S,`
33`)+"".concat(w,"...").concat(q)}return"".concat(Ie).concat(G?He:"",`
34`).concat(N).concat(S).concat(te).concat(P)}var Te=(function(h,f){b(S,h);var E=B(S);function S(N){var X;if(s(this,S),U(N)!=="object"||N===null)throw new oe("options","Object",N);var te=N.message,G=N.operator,c=N.stackStartFn,r=N.actual,a=N.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,te!=null)X=E.call(this,String(te));else if(Se.stderr&&Se.stderr.isTTY&&(Se.stderr&&Se.stderr.getColorDepth&&Se.stderr.getColorDepth()!==1?(w="\x1B[34m",y="\x1B[32m",q="\x1B[39m",W="\x1B[31m"):(w="",y="",q="",W="")),U(r)==="object"&&r!==null&&U(a)==="object"&&a!==null&&"stack"in r&&r instanceof Error&&"stack"in a&&a instanceof Error&&(r=me(r),a=me(a)),G==="deepStrictEqual"||G==="strictEqual")X=E.call(this,we(r,a,G));else if(G==="notDeepStrictEqual"||G==="notStrictEqual"){var P=ne[G],O=ve(r).split(`
35`);if(G==="notStrictEqual"&&U(r)==="object"&&r!==null&&(P=ne.notStrictEqualObject),O.length>30)for(O[26]="".concat(w,"...").concat(q);O.length>27;)O.pop();O.length===1?X=E.call(this,"".concat(P," ").concat(O[0])):X=E.call(this,"".concat(P,`
36
37`).concat(O.join(`
38`),`
39`))}else{var I=ve(r),F="",ue=ne[G];G==="notDeepEqual"||G==="notEqual"?(I="".concat(ne[G],`
40
41`).concat(I),I.length>1024&&(I="".concat(I.slice(0,1021),"..."))):(F="".concat(ve(a)),I.length>512&&(I="".concat(I.slice(0,509),"...")),F.length>512&&(F="".concat(F.slice(0,509),"...")),G==="deepEqual"||G==="equal"?I="".concat(ue,`
42
43`).concat(I,`
44
45should equal
46
47`):F=" ".concat(G," ").concat(F)),X=E.call(this,"".concat(I).concat(F))}return Error.stackTraceLimit=u,X.generatedMessage=!te,Object.defineProperty(Y(X),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),X.code="ERR_ASSERTION",X.actual=r,X.expected=a,X.operator=G,Error.captureStackTrace&&Error.captureStackTrace(Y(X),c),X.stack,X.name="AssertionError",K(X)}return _(S,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f,value:function(X,te){return se(this,v(v({},te),{},{customInspect:!1,depth:0}))}}]),S})(j(Error),se.custom);e.exports=Te})),it=ie(((t,e)=>{var i=Object.prototype.toString;e.exports=function(o){var s=i.call(o),g=s==="[object Arguments]";return g||(g=s!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&i.call(o.callee)==="[object Function]"),g}})),er=ie(((t,e)=>{var i;if(!Object.keys){var v=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=it(),g=Object.prototype.propertyIsEnumerable,_=!g.call({toString:null},"toString"),C=g.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=function(j){var A=j.constructor;return A&&A.prototype===j},B={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},K=(function(){if(typeof window>"u")return!1;for(var j in window)try{if(!B["$"+j]&&v.call(window,j)&&window[j]!==null&&typeof window[j]=="object")try{b(window[j])}catch{return!0}}catch{return!0}return!1})(),Y=function(j){if(typeof window>"u"||!K)return b(j);try{return b(j)}catch{return!1}};i=function(A){var ee=A!==null&&typeof A=="object",ae=o.call(A)==="[object Function]",Z=s(A),z=ee&&o.call(A)==="[object String]",U=[];if(!ee&&!ae&&!Z)throw new TypeError("Object.keys called on a non-object");var se=C&&ae;if(z&&A.length>0&&!v.call(A,0))for(var oe=0;oe<A.length;++oe)U.push(String(oe));if(Z&&A.length>0)for(var p=0;p<A.length;++p)U.push(String(p));else for(var d in A)!(se&&d==="prototype")&&v.call(A,d)&&U.push(String(d));if(_)for(var w=Y(A),y=0;y<V.length;++y)!(w&&V[y]==="constructor")&&v.call(A,V[y])&&U.push(V[y]);return U}}e.exports=i})),at=ie(((t,e)=>{var i=Array.prototype.slice,v=it(),o=Object.keys,s=o?function(C){return o(C)}:er(),g=Object.keys;s.shim=function(){return Object.keys?(function(){var C=Object.keys(arguments);return C&&C.length===arguments.length})(1,2)||(Object.keys=function(V){return v(V)?g(i.call(V)):g(V)}):Object.keys=s,Object.keys||s},e.exports=s})),tr=ie(((t,e)=>{var i=at(),v=gt()(),o=pt(),s=ht(),g=o("Array.prototype.push"),_=o("Object.prototype.propertyIsEnumerable"),C=v?s.getOwnPropertySymbols:null;e.exports=function(b,B){if(b==null)throw new TypeError("target must be an object");var K=s(b);if(arguments.length===1)return K;for(var Y=1;Y<arguments.length;++Y){var j=s(arguments[Y]),A=i(j),ee=v&&(s.getOwnPropertySymbols||C);if(ee)for(var ae=ee(j),Z=0;Z<ae.length;++Z){var z=ae[Z];_(j,z)&&g(A,z)}for(var U=0;U<A.length;++U){var se=A[U];_(j,se)&&(K[se]=j[se])}}return K}})),rr=ie(((t,e)=>{var i=tr(),v=function(){if(!Object.assign)return!1;for(var s="abcdefghijklmnopqrst",g=s.split(""),_={},C=0;C<g.length;++C)_[g[C]]=g[C];var V=Object.assign({},_),b="";for(var B in V)b+=B;return s!==b},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var s=Object.preventExtensions({1:2});try{Object.assign(s,"xy")}catch{return s[1]==="y"}return!1};e.exports=function(){return!Object.assign||v()||o()?i:Object.assign}})),st=ie(((t,e)=>{var i=function(v){return v!==v};e.exports=function(o,s){return o===0&&s===0?1/o===1/s:!!(o===s||i(o)&&i(s))}})),Qe=ie(((t,e)=>{var i=st();e.exports=function(){return typeof Object.is=="function"?Object.is:i}})),nr=ie(((t,e)=>{var i=vt(),v=Ze(),o=v(i("String.prototype.indexOf"));e.exports=function(g,_){var C=i(g,!!_);return typeof C=="function"&&o(g,".prototype.")>-1?v(C):C}})),Ue=ie(((t,e)=>{var i=at(),v=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,s=Array.prototype.concat,g=bt(),_=function(B){return typeof B=="function"&&o.call(B)==="[object Function]"},C=mt()(),V=function(B,K,Y,j){if(K in B){if(j===!0){if(B[K]===Y)return}else if(!_(j)||!j())return}C?g(B,K,Y,!0):g(B,K,Y)},b=function(B,K){var Y=arguments.length>2?arguments[2]:{},j=i(K);v&&(j=s.call(j,Object.getOwnPropertySymbols(K)));for(var A=0;A<j.length;A+=1)V(B,j[A],K[j[A]],Y[j[A]])};b.supportsDescriptors=!!C,e.exports=b})),or=ie(((t,e)=>{var i=Qe(),v=Ue();e.exports=function(){var s=i();return v(Object,{is:s},{is:function(){return Object.is!==s}}),s}})),ir=ie(((t,e)=>{var i=Ue(),v=Ze(),o=st(),s=Qe(),g=or(),_=v(s(),Object);i(_,{getPolyfill:s,implementation:o,shim:g}),e.exports=_})),lt=ie(((t,e)=>{e.exports=function(v){return v!==v}})),ct=ie(((t,e)=>{var i=lt();e.exports=function(){return Number.isNaN&&!Number.isNaN("a")?Number.isNaN:i}})),ar=ie(((t,e)=>{var i=Ue(),v=ct();e.exports=function(){var s=v();return i(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}})),sr=ie(((t,e)=>{var i=Ze(),v=Ue(),o=lt(),s=ct(),g=ar(),_=i(s(),Number);v(_,{getPolyfill:s,implementation:o,shim:g}),e.exports=_})),lr=ie(((t,e)=>{function i(n,l){return _(n)||g(n,l)||o(n,l)||v()}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(n,l){if(n){if(typeof n=="string")return s(n,l);var m=Object.prototype.toString.call(n).slice(8,-1);if(m==="Object"&&n.constructor&&(m=n.constructor.name),m==="Map"||m==="Set")return Array.from(n);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return s(n,l)}}function s(n,l){(l==null||l>n.length)&&(l=n.length);for(var m=0,M=new Array(l);m<l;m++)M[m]=n[m];return M}function g(n,l){var m=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(m!=null){var M,k,R,D,H=[],$=!0,de=!1;try{if(R=(m=m.call(n)).next,l===0){if(Object(m)!==m)return;$=!1}else for(;!($=(M=R.call(m)).done)&&(H.push(M.value),H.length!==l);$=!0);}catch(fe){de=!0,k=fe}finally{try{if(!$&&m.return!=null&&(D=m.return(),Object(D)!==D))return}finally{if(de)throw k}}return H}}function _(n){if(Array.isArray(n))return n}function C(n){"@babel/helpers - typeof";return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},C(n)}var V=/a/g.flags!==void 0,b=function(l){var m=[];return l.forEach(function(M){return m.push(M)}),m},B=function(l){var m=[];return l.forEach(function(M,k){return m.push([k,M])}),m},K=Object.is?Object.is:ir(),Y=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},j=Number.isNaN?Number.isNaN:sr();function A(n){return n.call.bind(n)}var ee=A(Object.prototype.hasOwnProperty),ae=A(Object.prototype.propertyIsEnumerable),Z=A(Object.prototype.toString),z=Ge().types,U=z.isAnyArrayBuffer,se=z.isArrayBufferView,oe=z.isDate,p=z.isMap,d=z.isRegExp,w=z.isSet,y=z.isNativeError,W=z.isBoxedPrimitive,q=z.isNumberObject,ne=z.isStringObject,Ce=z.isBooleanObject,me=z.isBigIntObject,ve=z.isSymbolObject,we=z.isFloat32Array,Te=z.isFloat64Array;function h(n){if(n.length===0||n.length>10)return!0;for(var l=0;l<n.length;l++){var m=n.charCodeAt(l);if(m<48||m>57)return!0}return n.length===10&&n>=Math.pow(2,32)}function f(n){return Object.keys(n).filter(h).concat(Y(n).filter(Object.prototype.propertyIsEnumerable.bind(n)))}function E(n,l){if(n===l)return 0;for(var m=n.length,M=l.length,k=0,R=Math.min(m,M);k<R;++k)if(n[k]!==l[k]){m=n[k],M=l[k];break}return m<M?-1:M<m?1:0}var S=void 0,N=!0,X=!1,te=0,G=1,c=2,r=3;function a(n,l){return V?n.source===l.source&&n.flags===l.flags:RegExp.prototype.toString.call(n)===RegExp.prototype.toString.call(l)}function u(n,l){if(n.byteLength!==l.byteLength)return!1;for(var m=0;m<n.byteLength;m++)if(n[m]!==l[m])return!1;return!0}function P(n,l){return n.byteLength!==l.byteLength?!1:E(new Uint8Array(n.buffer,n.byteOffset,n.byteLength),new Uint8Array(l.buffer,l.byteOffset,l.byteLength))===0}function O(n,l){return n.byteLength===l.byteLength&&E(new Uint8Array(n),new Uint8Array(l))===0}function I(n,l){return q(n)?q(l)&&K(Number.prototype.valueOf.call(n),Number.prototype.valueOf.call(l)):ne(n)?ne(l)&&String.prototype.valueOf.call(n)===String.prototype.valueOf.call(l):Ce(n)?Ce(l)&&Boolean.prototype.valueOf.call(n)===Boolean.prototype.valueOf.call(l):me(n)?me(l)&&BigInt.prototype.valueOf.call(n)===BigInt.prototype.valueOf.call(l):ve(l)&&Symbol.prototype.valueOf.call(n)===Symbol.prototype.valueOf.call(l)}function F(n,l,m,M){if(n===l)return n!==0?!0:m?K(n,l):!0;if(m){if(C(n)!=="object")return typeof n=="number"&&j(n)&&j(l);if(C(l)!=="object"||n===null||l===null||Object.getPrototypeOf(n)!==Object.getPrototypeOf(l))return!1}else{if(n===null||C(n)!=="object")return l===null||C(l)!=="object"?n==l:!1;if(l===null||C(l)!=="object")return!1}var k=Z(n);if(k!==Z(l))return!1;if(Array.isArray(n)){if(n.length!==l.length)return!1;var R=f(n,S),D=f(l,S);return R.length!==D.length?!1:be(n,l,m,M,G,R)}if(k==="[object Object]"&&(!p(n)&&p(l)||!w(n)&&w(l)))return!1;if(oe(n)){if(!oe(l)||Date.prototype.getTime.call(n)!==Date.prototype.getTime.call(l))return!1}else if(d(n)){if(!d(l)||!a(n,l))return!1}else if(y(n)||n instanceof Error){if(n.message!==l.message||n.name!==l.name)return!1}else if(se(n)){if(!m&&(we(n)||Te(n))){if(!u(n,l))return!1}else if(!P(n,l))return!1;var H=f(n,S),$=f(l,S);return H.length!==$.length?!1:be(n,l,m,M,te,H)}else{if(w(n))return!w(l)||n.size!==l.size?!1:be(n,l,m,M,c);if(p(n))return!p(l)||n.size!==l.size?!1:be(n,l,m,M,r);if(U(n)){if(!O(n,l))return!1}else if(W(n)&&!I(n,l))return!1}return be(n,l,m,M,te)}function ue(n,l){return l.filter(function(m){return ae(n,m)})}function be(n,l,m,M,k,R){if(arguments.length===5){R=Object.keys(n);var D=Object.keys(l);if(R.length!==D.length)return!1}for(var H=0;H<R.length;H++)if(!ee(l,R[H]))return!1;if(m&&arguments.length===5){var $=Y(n);if($.length!==0){var de=0;for(H=0;H<$.length;H++){var fe=$[H];if(ae(n,fe)){if(!ae(l,fe))return!1;R.push(fe),de++}else if(ae(l,fe))return!1}var Re=Y(l);if($.length!==Re.length&&ue(l,Re).length!==de)return!1}else{var je=Y(l);if(je.length!==0&&ue(l,je).length!==0)return!1}}if(R.length===0&&(k===te||k===G&&n.length===0||n.size===0))return!0;if(M===void 0)M={val1:new Map,val2:new Map,position:0};else{var Be=M.val1.get(n);if(Be!==void 0){var Ee=M.val2.get(l);if(Ee!==void 0)return Be===Ee}M.position++}M.val1.set(n,M.position),M.val2.set(l,M.position);var Fe=ut(n,l,m,R,M,k);return M.val1.delete(n),M.val2.delete(l),Fe}function pe(n,l,m,M){for(var k=b(n),R=0;R<k.length;R++){var D=k[R];if(F(l,D,m,M))return n.delete(D),!0}return!1}function Ie(n){switch(C(n)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":n=+n;case"number":if(j(n))return!1}return!0}function He(n,l,m){var M=Ie(m);return M??(l.has(M)&&!n.has(M))}function ye(n,l,m,M,k){var R=Ie(m);
48if(R!=null)return R;var D=l.get(R);return D===void 0&&!l.has(R)||!F(M,D,!1,k)?!1:!n.has(R)&&F(M,D,!1,k)}function ke(n,l,m,M){for(var k=null,R=b(n),D=0;D<R.length;D++){var H=R[D];if(C(H)==="object"&&H!==null)k===null&&(k=new Set),k.add(H);else if(!l.has(H)){if(m||!He(n,l,H))return!1;k===null&&(k=new Set),k.add(H)}}if(k!==null){for(var $=b(l),de=0;de<$.length;de++){var fe=$[de];if(C(fe)==="object"&&fe!==null){if(!pe(k,fe,m,M))return!1}else if(!m&&!n.has(fe)&&!pe(k,fe,m,M))return!1}return k.size===0}return!0}function xe(n,l,m,M,k,R){for(var D=b(n),H=0;H<D.length;H++){var $=D[H];if(F(m,$,k,R)&&F(M,l.get($),k,R))return n.delete($),!0}return!1}function De(n,l,m,M){for(var k=null,R=B(n),D=0;D<R.length;D++){var H=i(R[D],2),$=H[0],de=H[1];if(C($)==="object"&&$!==null)k===null&&(k=new Set),k.add($);else{var fe=l.get($);if(fe===void 0&&!l.has($)||!F(de,fe,m,M)){if(m||!ye(n,l,$,de,M))return!1;k===null&&(k=new Set),k.add($)}}}if(k!==null){for(var Re=B(l),je=0;je<Re.length;je++){var Be=i(Re[je],2),Ee=Be[0],Fe=Be[1];if(C(Ee)==="object"&&Ee!==null){if(!xe(k,n,Ee,Fe,m,M))return!1}else if(!m&&(!n.has(Ee)||!F(n.get(Ee),Fe,!1,M))&&!xe(k,n,Ee,Fe,!1,M))return!1}return k.size===0}return!0}function ut(n,l,m,M,k,R){var D=0;if(R===c){if(!ke(n,l,m,k))return!1}else if(R===r){if(!De(n,l,m,k))return!1}else if(R===G)for(;D<n.length;D++)if(ee(n,D)){if(!ee(l,D)||!F(n[D],l[D],m,k))return!1}else{if(ee(l,D))return!1;for(var H=Object.keys(n);D<H.length;D++){var $=H[D];if(!ee(l,$)||!F(n[$],l[$],m,k))return!1}return H.length===Object.keys(l).length}for(D=0;D<M.length;D++){var de=M[D];if(!F(n[de],l[de],m,k))return!1}return!0}function dt(n,l){return F(n,l,X)}function ft(n,l){return F(n,l,N)}e.exports={isDeepEqual:dt,isDeepStrictEqual:ft}})),$e=ie(((t,e)=>{rt();function i(c){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(c)}function v(c,r){for(var a=0;a<r.length;a++){var u=r[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(c,s(u.key),u)}}function o(c,r,a){return r&&v(c.prototype,r),a&&v(c,a),Object.defineProperty(c,"prototype",{writable:!1}),c}function s(c){var r=g(c,"string");return i(r)==="symbol"?r:String(r)}function g(c,r){if(i(c)!=="object"||c===null)return c;var a=c[Symbol.toPrimitive];if(a!==void 0){var u=a.call(c,r||"default");if(i(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(c)}function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}var C=ot().codes,V=C.ERR_AMBIGUOUS_ARGUMENT,b=C.ERR_INVALID_ARG_TYPE,B=C.ERR_INVALID_ARG_VALUE,K=C.ERR_INVALID_RETURN_VALUE,Y=C.ERR_MISSING_ARGS,j=Kt(),A=Ge().inspect,ee=Ge().types,ae=ee.isPromise,Z=ee.isRegExp,z=rr()(),U=Qe()(),se=nr()("RegExp.prototype.test"),oe,p;function d(){var c=lr();oe=c.isDeepEqual,p=c.isDeepStrictEqual}var w=!1,y=e.exports=me,W={};function q(c){throw c.message instanceof Error?c.message:new j(c)}function ne(c,r,a,u,P){var O=arguments.length,I;if(O===0?I="Failed":O===1?(a=c,c=void 0):(w===!1&&(w=!0,(Se.emitWarning?Se.emitWarning:(()=>{}).bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),O===2&&(u="!=")),a instanceof Error)throw a;var F={actual:c,expected:r,operator:u===void 0?"fail":u,stackStartFn:P||ne};a!==void 0&&(F.message=a);var ue=new j(F);throw I&&(ue.message=I,ue.generatedMessage=!0),ue}y.fail=ne,y.AssertionError=j;function Ce(c,r,a,u){if(!a){var P=!1;if(r===0)P=!0,u="No value argument passed to `assert.ok()`";else if(u instanceof Error)throw u;var O=new j({actual:a,expected:!0,message:u,operator:"==",stackStartFn:c});throw O.generatedMessage=P,O}}function me(){for(var c=arguments.length,r=new Array(c),a=0;a<c;a++)r[a]=arguments[a];Ce.apply(void 0,[me,r.length].concat(r))}y.ok=me,y.equal=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");r!=a&&q({actual:r,expected:a,message:u,operator:"==",stackStartFn:c})},y.notEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");r==a&&q({actual:r,expected:a,message:u,operator:"!=",stackStartFn:c})},y.deepEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");oe===void 0&&d(),oe(r,a)||q({actual:r,expected:a,message:u,operator:"deepEqual",stackStartFn:c})},y.notDeepEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");oe===void 0&&d(),oe(r,a)&&q({actual:r,expected:a,message:u,operator:"notDeepEqual",stackStartFn:c})},y.deepStrictEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");oe===void 0&&d(),p(r,a)||q({actual:r,expected:a,message:u,operator:"deepStrictEqual",stackStartFn:c})},y.notDeepStrictEqual=ve;function ve(c,r,a){if(arguments.length<2)throw new Y("actual","expected");oe===void 0&&d(),p(c,r)&&q({actual:c,expected:r,message:a,operator:"notDeepStrictEqual",stackStartFn:ve})}y.strictEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");U(r,a)||q({actual:r,expected:a,message:u,operator:"strictEqual",stackStartFn:c})},y.notStrictEqual=function c(r,a,u){if(arguments.length<2)throw new Y("actual","expected");
vendor: 4,815 bytes, lines 48-57
48U(r,a)&&q({actual:r,expected:a,message:u,operator:"notStrictEqual",stackStartFn:c})};var we=o(function c(r,a,u){var P=this;_(this,c),a.forEach(function(O){O in r&&(u!==void 0&&typeof u[O]=="string"&&Z(r[O])&&se(r[O],u[O])?P[O]=u[O]:P[O]=r[O])})});function Te(c,r,a,u,P,O){if(!(a in c)||!p(c[a],r[a])){if(!u){var I=new j({actual:new we(c,P),expected:new we(r,P,c),operator:"deepStrictEqual",stackStartFn:O});throw I.actual=c,I.expected=r,I.operator=O.name,I}q({actual:c,expected:r,message:u,operator:O.name,stackStartFn:O})}}function h(c,r,a,u){if(typeof r!="function"){if(Z(r))return se(r,c);if(arguments.length===2)throw new b("expected",["Function","RegExp"],r);if(i(c)!=="object"||c===null){var P=new j({actual:c,expected:r,message:a,operator:"deepStrictEqual",stackStartFn:u});throw P.operator=u.name,P}var O=Object.keys(r);if(r instanceof Error)O.push("name","message");else if(O.length===0)throw new B("error",r,"may not be an empty object");return oe===void 0&&d(),O.forEach(function(I){typeof c[I]=="string"&&Z(r[I])&&se(r[I],c[I])||Te(c,r,I,a,O,u)}),!0}return r.prototype!==void 0&&c instanceof r?!0:Error.isPrototypeOf(r)?!1:r.call({},c)===!0}function f(c){if(typeof c!="function")throw new b("fn","Function",c);try{c()}catch(r){return r}return W}function E(c){return ae(c)||c!==null&&i(c)==="object"&&typeof c.then=="function"&&typeof c.catch=="function"}function S(c){return Promise.resolve().then(function(){var r;if(typeof c=="function"){if(r=c(),!E(r))throw new K("instance of Promise","promiseFn",r)}else if(E(c))r=c;else throw new b("promiseFn",["Function","Promise"],c);return Promise.resolve().then(function(){return r}).then(function(){return W}).catch(function(a){return a})})}function N(c,r,a,u){if(typeof a=="string"){if(arguments.length===4)throw new b("error",["Object","Error","Function","RegExp"],a);if(i(r)==="object"&&r!==null){if(r.message===a)throw new V("error/message",'The error message "'.concat(r.message,'" is identical to the message.'))}else if(r===a)throw new V("error/message",'The error "'.concat(r,'" is identical to the message.'));u=a,a=void 0}else if(a!=null&&i(a)!=="object"&&typeof a!="function")throw new b("error",["Object","Error","Function","RegExp"],a);if(r===W){var P="";a&&a.name&&(P+=" (".concat(a.name,")")),P+=u?": ".concat(u):".";var O=c.name==="rejects"?"rejection":"exception";q({actual:void 0,expected:a,operator:c.name,message:"Missing expected ".concat(O).concat(P),stackStartFn:c})}if(a&&!h(r,a,u,c))throw r}function X(c,r,a,u){if(r!==W){if(typeof a=="string"&&(u=a,a=void 0),!a||h(r,a)){var P=u?": ".concat(u):".",O=c.name==="doesNotReject"?"rejection":"exception";q({actual:r,expected:a,operator:c.name,message:"Got unwanted ".concat(O).concat(P,`
49`)+'Actual message: "'.concat(r&&r.message,'"'),stackStartFn:c})}throw r}}y.throws=function c(r){for(var a=arguments.length,u=new Array(a>1?a-1:0),P=1;P<a;P++)u[P-1]=arguments[P];N.apply(void 0,[c,f(r)].concat(u))},y.rejects=function c(r){for(var a=arguments.length,u=new Array(a>1?a-1:0),P=1;P<a;P++)u[P-1]=arguments[P];return S(r).then(function(O){return N.apply(void 0,[c,O].concat(u))})},y.doesNotThrow=function c(r){for(var a=arguments.length,u=new Array(a>1?a-1:0),P=1;P<a;P++)u[P-1]=arguments[P];X.apply(void 0,[c,f(r)].concat(u))},y.doesNotReject=function c(r){for(var a=arguments.length,u=new Array(a>1?a-1:0),P=1;P<a;P++)u[P-1]=arguments[P];return S(r).then(function(O){return X.apply(void 0,[c,O].concat(u))})},y.ifError=function c(r){if(r!=null){var a="ifError got unwanted exception: ";i(r)==="object"&&typeof r.message=="string"?r.message.length===0&&r.constructor?a+=r.constructor.name:a+=r.message:a+=A(r);var u=new j({actual:r,expected:null,operator:"ifError",message:a,stackStartFn:c}),P=r.stack;if(typeof P=="string"){var O=P.split(`
50`);O.shift();for(var I=u.stack.split(`
51`),F=0;F<O.length;F++){var ue=I.indexOf(O[F]);if(ue!==-1){I=I.slice(0,ue);break}}u.stack="".concat(I.join(`
52`),`
53`).concat(O.join(`
54`))}throw u}};function te(c,r,a,u,P){if(!Z(r))throw new b("regexp","RegExp",r);var O=P==="match";if(typeof c!="string"||se(r,c)!==O){if(a instanceof Error)throw a;var I=!a;a=a||(typeof c!="string"?'The "string" argument must be of type string. Received type '+"".concat(i(c)," (").concat(A(c),")"):(O?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(A(r),`. Input:
55
56`).concat(A(c),`
57`));var F=new j({actual:c,expected:r,message:a,operator:P,stackStartFn:u});throw F.generatedMessage=I,F}}y.match=function c(r,a,u){te(r,a,u,c,"match")},y.doesNotMatch=function c(r,a,u){te(r,a,u,c,"doesNotMatch")};function G(){for(var c=arguments.length,r=new Array(c),a=0;a<c;a++)r[a]=arguments[a];Ce.apply(void 0,[G,r.length].concat(r))}y.strict=z(G,y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStr
57ictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict})),sn=Je(yt()),ln=Je($e());Le();var _e=100,cr={name:"RightClickMenu",props:{layerData:{type:Object,required:!0}},computed:{layerShowName(){let t="";return this.layerName.includes("image")?t+="이미지 레이어 ":this.layerName.includes("audio")&&(t+="오디오 레이어 "),t+=this.layerNumber,t},layerObject(){return this.layerData.layer.layerObject}},methods:{onDeleteLayer(){Ae.$emit("onDeleteLayer",{layerType:this.layerType,layerIdx:this.layerNumber-1}),this.$emit("on-menu-close")},onToggleVisible(){this.layerType=="image"?this.layerOptions[this.layerNumber-1].visible=!this.layerOptions[this.layerNumber-1].visible:this.layerType=="audio"&&(this.layerOptions[this.layerNumber-1].active=!this.layerOptions[this.layerNumber-1].active,Ae.$emit("onUpdateTimelineActive",{layerName:this.layerName,visible:this.layerOptions[this.layerNumber-1].active}))},isValidInt(t){return/^([1-9]\d*|0)$/.test(t)},setEditMode(t){this.editMode=t,t=="opacity"?this.inputBuffer.opacity=this.layerOptions[this.layerNumber-1].opacity:t=="volume"&&(this.inputBuffer.volume=this.layerOptions[this.layerNumber-1].volume)},onFinishEditMode(t,e){this.editMode=void 0,t=="opacity"&&(this.isValidInt(this.inputBuffer.opacity)?this.layerOptions[this.layerNumber-1].opacity=Math.max(0,Math.min(_e,this.inputBuffer.opacity)):this.layerOptions[this.layerNumber-1].opacity=_e),t=="volume"&&(this.isValidInt(this.inputBuffer.volume)?this.layerOptions[this.layerNumber-1].volume=Math.max(0,Math.min(_e,this.inputBuffer.volume)):this.layerOptions[this.layerNumber-1].volume=_e)},onMouseDown(t){this.onFinishEditMode(void 0,void 0)},parseLayerName(){this.layerName,this.layerNumber=parseInt(this.layerName.replace(/\D/g,"")),this.layerName.includes("image")?this.layerType="image":this.layerName.includes("audio")&&(this.layerType="audio")}},data(){return{inputBuffer:{},editMode:void 0,loaded:!1,layerName:"",layerType:"",layerOptionsForThisLayer:void 0,layerOptionsDefault:{visible:void 0,opacity:_e,volume:_e,active:!0},layerNumber:0,timelineLayerAssetObject:{start:0,end:0,position:[0,0],magnification:0},timelinehash:void 0,metaData:{start:0,end:0,position:[0,0],magnification:0,type:""},assetMetaData:{username:"",assetname:""}}},mounted(){this.layerName=this.layerData.layer.layerName,this.parseLayerName(),this.layerType=="image"?(this.layerOptions=this.$store.getters["StudioMo
57dule/metaDataEditMode"].layerOptions.imageLayerOptions,this.layerOptionsForThisLayer=this.layerOptions[this.layerNumber-1]):this.layerType=="audio"&&(this.layerOptions=this.$store.getters["StudioModule/metaDataEditMode"].layerOptions.audioLayerOptions,this.layerOptionsForThisLayer=this.layerOptions[this.layerNumber-1])}},ur={key:0,class:"rounded absolute z-dropdown -mt-1 h-full w-full bg-surface-canvas opacity-disabled"},dr={class:"flex w-full flex-row items-center bg-surface-raised p-1"},fr={class:"w-full bg-surface-raised p-1 text-center"},pr={key:0,class:"rounded flex w-full flex-row items-center bg-surface-raised p-1"},hr={key:0,class:"flex w-1/2 justify-center text-center"},gr={key:1,class:"rounded flex w-full flex-row items-center bg-surface-raised p-1"},vr={class:"rounded flex w-1/2 justify-center text-center"},yr={key:2,class:"rounded flex w-full flex-row items-center bg-surface-raised p-1"},mr={key:0,class:"flex w-1/2 justify-center text-center"},br={key:3,class:"rounded flex w-full flex-row items-center bg-surface-raised p-1"},wr={class:"rounded flex w-1/2 justify-center text-center"},xr={class:"rounded flex w-full flex-row items-center bg-surface-raised p-1"},Sr={class:"rounded flex w-full justify-center p-1 text-center"};function Cr(t,e,i,v,o,s){return L(),T("div",{class:"rounded relative flex h-full w-full flex-col items-center bg-surface-raised p-1 text-xs leading-standard text-content-primary",onMousedown:e[13]||(e[13]=g=>{g.stopPropagation(),s.onMouseDown(g)})},[re(Pe,{name:"fade"},{default:le(()=>[o.editMode!==void 0?(L(),T("div",ur)):Q("",!0)],void 0,!0),_:1}),x("div",dr,[x("div",fr,J(s.layerShowName),1)]),o.layerType=="image"?(L(),T("div",pr,[e[14]||(e[14]=x("div",{class:"rounded w-1/2 bg-surface-interactive p-1 text-center"},"보이기",-1)),o.layerOptionsForThisLayer.visible!==void 0?(L(),T("div",hr,[x("div",{class:ce(["flex w-12 rounded-pill bg-inverse-surface",{"justify-start":o.layerOptionsForThisLayer.visible,"justify-end":!o.layerOptionsForThisLayer.visible}]),style:{padding:"var(--space-component-hairline)"}},[re(Pe,{name:"bounce",mode:"out-in"},{default:le(()=>[(L(),T("button",{class:ce(["flex h-6 w-8 rounded-pill",{"bg-data-7-deep":o.layerOptionsForThisLayer.visible,"bg-surface-inverse-disabled":!o.layerOptionsForThisLayer.visible}]),key:`visible${o.layerOptionsForThisLayer.visible}`,onClick:e[0]||(e[0]=(...g)=>s.onToggleVisible&&s.onToggleVisible(...g))},null,2))],void 0,!0),_:1})],2)])):Q("",!0)])):Q("",!0),o.layerType=="image"?(L(),T("div",gr,[e[15]||(e[15]=x("div",{class:"rounded w-1/2 bg-surface-interactive p-1 text-center"},"투명도",-1)),x("div",vr,[o.editMode!="opacity"?(L(),T("div",{key:0,class:"rounded w-1/2 border-strong border-border-strong text-center",onMousedown:e[1]||(e[1]=g=>g.stopPropagation()),onClick:e[2]||(e[2]=g=>s.setEditMode("opacity"))},J(o.layerOptionsForThisLayer.opacity)+"% ",33)):o.editMode=="opacity"?Ye((L(),T("input",{key:1,class:"z-dropdown w-1/2 rounded-compact bg-inverse-surface text-center text-content-on-inverse-strong",onMousedown:e[3]||(e[3]=g=>g.stopPropagation()),onKeydown:e[4]||(e[4]=et(g=>s.onFinishEditMode("opacity"),["enter"])),"onUpdate:modelValue":e[5]||(e[5]=g=>o.inputBuffer.opacity=g)},null,544)),[[ze,o.inputBuffer.opacity]]):Q("",!0)])])):Q("",!0),o.layerType=="audio"?(L(),T("div",yr,[e[16]||(e[16]=x("div",{class:"rounded w-1/2 bg-surface-interactive p-1 text-center"},"음소거",-1)),o.layerOptionsForThisLayer.active!==void 0?(L(),T("div",mr,[x("div",{class:ce(["flex w-12 rounded-pill bg-inverse-surface",{"justify-start":o.layerOptionsForThisLayer.active,"justify-end":!o.layerOptionsForThisLayer.active}]),style:{padding:"var(--space-component-hairline)"}},[re(Pe,{name:"bounce",mode:"out-in"},{default:le(()=>[(L(),T("button",{class:ce(["flex h-6 w-8 rounded-pill",{"bg-data-7-deep":o.layerOptionsForThisLayer.active,"bg-surface-inverse-disabled":!o.layerOptionsForThisLayer.active}]),key:`active${o.layerOptionsForThisLayer.active}`,onClick:e[6]||(e[6]=(...g)=>s.onToggleVisible&&s.onToggleVisible(...g))},null,2))],void 0,!0),_:1})],2)])):Q("",!0)])):Q("",!0),o.layerType=="audio"?(L(),T("div",br,[e[17]||(e[17]=x("div",{class:"rounded w-1/2 bg-surface-interactive p-1 text-center"},"레이어 볼륨",-1)),x("div",wr,[o.editMode!="volume"?(L(),T("div",{key:0,class:"rounded w-1/2 border-strong border-border-strong text-center",onMousedown:e[7]||(e[7]=g=>g.stopPropagation()),onClick:e[8]||(e[8]=g=>s.setEditMode("volume"))},J(o.layerOptionsForThisLayer.volume)+"% ",33)):o.editMode=="volume"?Ye((L(),T("input",{key:1,class:"z-dropdown w-1/2 roun
57ded-compact bg-inverse-surface text-center text-content-on-inverse-strong",onMousedown:e[9]||(e[9]=g=>g.stopPropagation()),onKeydown:e[10]||(e[10]=et(g=>s.onFinishEditMode("volume"),["enter"])),"onUpdate:modelValue":e[11]||(e[11]=g=>o.inputBuffer.volume=g)},null,544)),[[ze,o.inputBuffer.volume]]):Q("",!0)])])):Q("",!0),x("div",xr,[x("div",Sr,[x("button",{class:"rounded flex w-1/2 flex-row items-center justify-center border-strong border-status-danger-foreground p-1 text-caption-xs",onClick:e[12]||(e[12]=g=>s.onDeleteLayer())}," 레이어 삭제 ")])])],32)}var Er=qe(cr,[["render",Cr],["__scopeId","data-v-5dceaea6"]]),cn=Je(Et());Le();var Mr={name:"StudioDurationPrompt",components:{PlaxButton:nt},watch:{},props:{isMobile:{type:Boolean,default:!1},duration:{type:Object},messageYes:{type:String,default:"적용"},messageNo:{type:String,default:"취소"},callbackYes:{required:!0},callbackNo:{required:!1}},data(){return{start:0,end:0}},mounted(){this.start=this.duration.start.toFixed(2),this.end=this.duration.end.toFixed(2)},methods:{onClosePopup(){this.$emit("close-popup")},yes(){this.callbackYes?Promise.resolve(this.callbackYes({start:parseFloat(this.start),end:parseFloat(this.end)})).then(()=>{this.$emit("close-popup")}):this.$emit("close-popup")},no(){this.callbackNo?Promise.resolve(this.callbackNo()).then(()=>{this.$emit("close-popup")}):this.$emit("close-popup")}}},Or={class:"rounded relative flex w-full flex-col items-center bg-inverse-surface px-8 py-6 text-inverse-content"},kr={class:"flex w-full flex-col items-start"},Pr={class:"header flex w-full flex-row items-center justify-between border-b-strong border-border-inverse-subtle pb-3"},jr={class:"inner w-full"},_r={class:"description flex w-full flex-row pt-4"},Ar={class:"flex w-2/5 justify-center px-2"},Nr={class:"flex w-2/5 justify-center px-2"},Lr={class:"flex w-full flex-wrap px-3 py-5 md:flex-row md:justify-center"};function qr(t,e,i,v,o,s){const g=Oe("PlaxButton");return L(),T("div",Or,[x("div",kr,[x("div",Pr,[e[4]||(e[4]=x("span",{class:""}," 이미지 노출 구간을 설정 해주세요. ",-1)),x("button",{class:"w-4 md:w-5",onClick:e[0]||(e[0]=(..._)=>s.onClosePopup&&s.onClosePopup(..._))},[...e[3]||(e[3]=[x("img",{class:"block w-full",src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M18.6894%205.3212C18.2753%204.90709%2017.6064%204.90709%2017.1923%205.3212L12%2010.5028L6.80774%205.31058C6.39363%204.89647%205.72469%204.89647%205.31058%205.31058C4.89647%205.72469%204.89647%206.39363%205.31058%206.80774L10.5028%2012L5.31058%2017.1923C4.89647%2017.6064%204.89647%2018.2753%205.31058%2018.6894C5.72469%2019.1035%206.39363%2019.1035%206.80774%2018.6894L12%2013.4972L17.1923%2018.6894C17.6064%2019.1035%2018.2753%2019.1035%2018.6894%2018.6894C19.1035%2018.2753%2019.1035%2017.6064%2018.6894%2017.1923L13.4972%2012L18.6894%206.80774C19.0929%206.40425%2019.0929%205.72469%2018.6894%205.3212Z'%20fill='white'/%3e%3c/svg%3e",alt:"cls"},null,-1)])])]),x("div",jr,[x("div",_r,[x("span",Ar,[Ye(x("input",{class:"border rounded w-1/2 bg-inverse-surface text-center","onUpdate:modelValue":e[1]||(e[1]=_=>o.start=_)},null,512),[[ze,o.start]]),e[5]||(e[5]=x("span",{class:"px-2"},"초",-1))]),e[7]||(e[7]=x("span",{class:"w-1/5 text-center text-lg leading-relaxed"},"~",-1)),x("span",Nr,[Ye(x("input",{class:"border rounded w-1/2 bg-inverse-surface text-center","onUpdate:modelValue":e[2]||(e[2]=_=>o.end=_)},null,512),[[ze,o.end]]),e[6]||(e[6]=x("span",{class:"px-2"},"초",-1))])]),x("div",Lr,[x("div",{class:ce({"w-full pb-2":!i.isMobile,"w-1/2 pr-1":i.isMobile})},[re(g,{class:"h-10 w-full text-xs leading-standard",buttonColor:"white",callback:s.no},{default:le(()=>[he(J(i.messageNo),1)],void 0,!0),_:1},8,["callback"])],2),x("div",{class:ce({"w-full pt-2":!i.isMobile,"w-1/2 pl-1":i.isMobile})},[re(g,{class:"h-10 w-full text-xs leading-standard",buttonColor:"plaxsky",callback:s.yes},{default:le(()=>[he(J(i.messageYes),1)],void 0,!0),_:1},8,["callback"])],2)])])])])}var Tr=qe(Mr,[["render",qr],["__scopeId","data-v-70f0083e"]]),Ir="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='25px'%20height='22px'%20viewBox='0%200%2025%2022'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2064%20(93537)%20-%20https://sketch.com%20--%3e%3ctitle%3e%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Desktop-HD'%20transform='translate(-1115.000000,%20-323.000000)'%20fill='%23000000'%2
570fill-rule='nonzero'%3e%3cpath%20d='M1137.81161,344.417414%20C1138.1834,344.454593%201138.49941,344.361646%201138.75966,344.138575%20C1139.01991,343.915504%201139.16863,343.618075%201139.20581,343.24629%20L1139.20581,343.24629%20L1139.98655,328.579352%20C1140.02373,328.244745%201139.92149,327.947317%201139.67983,327.687067%20C1139.43817,327.426817%201139.13145,327.278103%201138.75966,327.240925%20L1138.75966,327.240925%20L1134.13093,327.017853%20L1133.85209,324.006391%20C1133.81492,323.708962%201133.6755,323.458007%201133.43384,323.253525%20C1133.19217,323.049043%201132.90404,322.965392%201132.56943,323.00257%20L1132.56943,323.00257%20L1116.06216,324.340998%20C1115.72755,324.378176%201115.45801,324.517596%201115.25353,324.759256%20C1115.04904,325.000917%201114.96539,325.270462%201115.00257,325.56789%20L1115.00257,325.56789%20L1116.17369,338.729096%20C1116.21087,339.026524%201116.35029,339.27748%201116.59195,339.481962%20C1116.83361,339.686444%201117.12175,339.770095%201117.45635,339.732917%20L1117.45635,339.732917%20L1118.29287,339.677149%20L1118.18134,342.242469%20C1118.14416,342.614254%201118.2464,342.911683%201118.48806,343.134754%20C1118.72972,343.357825%201119.03644,343.48795%201119.40823,343.525129%20L1119.40823,343.525129%20L1137.81161,344.417414%20Z%20M1117.56789,336.442615%20L1116.6756,326.515943%20L1116.6756,326.460175%20C1116.6756,326.125568%201116.8615,325.958265%201117.23328,325.958265%20L1117.23328,325.958265%20L1131.78868,324.731373%20C1132.08611,324.731373%201132.27201,324.880087%201132.34636,325.177515%20L1132.34636,325.177515%20L1132.34636,325.233283%20L1132.40213,325.233283%20L1132.51367,326.962085%20L1120.30051,326.348639%20C1119.92873,326.348639%201119.622,326.46947%201119.38034,326.71113%20C1119.13868,326.952791%201118.99926,327.240925%201118.96209,327.575532%20L1118.96209,327.575532%20L1118.57171,335.04842%20L1117.56789,336.442615%20Z%20M1137.58854,340.736738%20L1134.96745,337.669507%20L1133.46172,335.829169%20C1133.35018,335.643277%201133.1457,335.55033%201132.84827,335.55033%20C1132.6252,335.55033%201132.42072,335.624687%201132.23483,335.773401%20L1132.23483,335.773401%20L1131.28677,336.442615%20C1131.0637,336.554151%201130.8964,336.609919%201130.78486,336.609919%20C1130.56179,336.609919%201130.3759,336.535562%201130.22719,336.386848%20L1130.22719,336.386848%20L1130.05988,336.219544%20L1127.66187,333.486921%20C1127.47597,333.226671%201127.21572,333.096546%201126.88112,333.096546%20C1126.58369,333.096546%201126.32344,333.208082%201126.10037,333.431153%20L1126.10037,333.431153%20L1120.41205,339.509846%20L1120.07744,339.90022%20L1120.07744,339.509846%20L1120.46782,332.371564%20L1120.63512,328.858191%20L1120.63512,328.802424%20C1120.70948,328.467817%201120.93255,328.300513%201121.30433,328.300513%20L1121.30433,328.300513%20L1132.68097,328.802424%20L1134.29824,328.913959%20L1137.53277,329.081263%20C1137.94173,329.081263%201138.14622,329.267155%201138.14622,329.638941%20L1138.14622,329.638941%20L1138.14622,329.694709%20L1137.58854,340.736738%20Z%20M1134.0194,334.044599%20C1134.5399,334.044599%201134.99533,333.849412%201135.38571,333.459037%20C1135.77608,333.068662%201135.97127,332.613225%201135.97127,332.092725%20C1135.97127,331.572225%201135.78538,331.116788%201135.41359,330.726414%20C1135.04181,330.336039%201134.57708,330.140851%201134.0194,330.140851%20C1133.4989,330.140851%201133.04346,330.326744%201132.65309,330.69853%20C1132.26271,331.070315%201132.06752,331.535047%201132.06752,332.092725%20C1132.06752,332.650403%201132.25342,333.115135%201132.6252,333.486921%20C1132.99699,333.858706%201133.46172,334.044599%201134.0194,334.044599%20Z'%20id=''%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='12'%20fill='currentColor'%20viewBox='0%200%2018%2012'%3e%3cpath%20d='M17,10.5V7a1,1,0,0,0-1-1H4A1,1,0,0,0,3,7V17a1,1,0,0,0,1,1H16a1,1,0,0,0,1-1V13.5l4,4V6.5Z'%20transform='translate(-3%20-6)'/%3e%3c/svg%3e",Rr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26'%20height='30'%20fill='currentColor'%20viewBox='0%200%2026%2030'%3e%3cpath%20d='M0,0V1.8A12.593,12.593,0,0,0,11.142,14.22V18h3.713V14.22A12.729,12.729,0,0,0,26,1.8V0H22.287V1.8A9.173,9.173,0,0,1,13,10.8a9.057,9.057,0,0,1-9.285-9V0Z'%20transform='translate(0%2012)'/%3e%3cpath%20d='M11,12.6V5.4A5.353,5.353,0,0,0,5.5,0,5.353,5.353,0,0,0,0,5.4v7.2A5.353,5.353,0,0,0,5.5,18,5.354,5.354,0,0,0,11,12.6Z'%20transform='translate(8)'/%3e%3c/svg%3e";Le();var Br={name:"ContainterStudio",methods:{closeMenus(){this.contextMenu=void 0,this.layerContextMenu=void 0},onParentMouseDown(t,e,i){if(this.contextMenu=void 0,e=="usable_asset"){if(i.state.type!="ready")return;this.dragPos=[t.clientX,t.clientY-this.navBarHeight()+window.scrollY],this.draggingAsset=i.asset.type}},onParentMouseUp(t,e,i){this.draggingAsset=void 0},onParentMouseMove(t,e,i,v){e=="usable_asset"&&(this.dragPos=[t.clientX,t.clientY-this.navBarHeight()+window.scrollY])},onContextMenu(t,e,{asset:i,callbacks:v}){if(t.preventDefault(),this.contextMenu)this.contextMenu=void 0;
57else if(this.$store.getters["StudioModule/selectedStreamerAsset"]){window.innerWidth,window.innerHeight;const o=t.clientX,s=t.clientY-this.navBarHeight()+window.scrollY;this.contextMenuCallbacks=v,this.contextMenu={x:o,y:s,selected:i},this.contextMenuStateIdx+=1}},onLayerContextMenu(t,e,i){t.preventDefault(),this.layerContextMenu=void 0,window.innerWidth,window.innerHeight;const v=t.clientX,o=t.clientY-this.navBarHeight()+window.scrollY;this.layerContextMenu={x:v,y:o,layer:i}},onClosePopup(){this.confirmPopupVisible=!1,this.durationPromptVisible=!1,this.durationInfo=void 0,this.durationPopupCallbackYes=void 0,this.confirmPopupCallbackNo&&this.confirmPopupCallbackNo(),this.confirmPopupQuestion=void 0,this.confirmPopupMessage=void 0,this.confirmPopupCallbackYes=void 0,this.confirmPopupCallbackNo=void 0,this.confirmPopupVisible=void 0},onOpenConfirmPopup({question:t,message:e,callbackYes:i,callbackNo:v}){this.confirmPopupQuestion=t,this.confirmPopupMessage=e,this.confirmPopupCallbackYes=i,this.confirmPopupCallbackNo=v,this.confirmPopupVisible=!0},onOpenAssetDurationPopup({durationInfo:t,callbackYes:e}){this.assetDurationInfo=t,this.durationPopupCallbackYes=e,this.durationPromptVisible=!0}},computed:{},beforeUnmount(){this.$store.dispatch("StudioModule/removeCallback",{name:"onParentMouseDown",type:1,caller:"container"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onParentMouseMove",type:0,caller:"container"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onParentMouseUp",type:-1,caller:"container"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onContextMenu",type:1,caller:"image_right_click"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onContextMenu",type:1,caller:"streamable_right_click"}),this.$store.dispatch("StudioModule/removeCallback",{name:"onLayerContextMenu",type:1,caller:"layer_right_click"}),this.$store.dispatch("StudioModule/wipeAllCallbacks")},mounted(){this.$store.dispatch("StudioModule/registerCallback",{name:"onParentMouseDown",type:1,callback:this.onParentMouseDown,caller:"container"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onParentMouseMove",type:0,callback:this.onParentMouseMove,caller:"container"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onParentMouseUp",type:-1,callback:this.onParentMouseUp,caller:"container"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onContextMenu",type:1,callback:this.onContextMenu,caller:"image_right_click"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onContextMenu",type:1,callback:this.onContextMenu,caller:"streamable_right_click"}),this.$store.dispatch("StudioModule/registerCallback",{name:"onLayerContextMenu",type:1,callback:this.onLayerContextMenu,caller:"layer_right_click"})},data(){return{contextMenuCallbacks:{},contextMenu:void 0,layerContextMenu:void 0,streamerAssetDragger:void 0,draggingAsset:void 0,dragPos:void 0,confirmPopupVisible:!1,confirmPopupMessage:void 0,confirmPopupQuestion:void 0,confirmPopupCallbackYes:void 0,confirmPopupCallbackNo:void 0,durationPromptVisible:!1,durationPopupCallbackYes:void 0,assetDurationInfo:{},contextMenuStateIdx:0}},props:{navBarHeight:{required:!0},studionavbar:{type:Boolean},navbar:{type:Boolean},sidebar:{type:Boolean},studiosidebar:{type:Boolean},isMobile:{type:Boolean}},components:{ScenarioStudio:Ut,StudioDurationPrompt:Tr,ConfirmationPrompt:Ct,RightClickMenuNew:Qt,LayerRightClickMenu:Er}},Fr={class:"absolute bottom-0"},Vr={key:0,class:"h-full w-full",src:Ir,style:{"pointer-events":"none"}},Gr={key:1,class:"h-full w-full",src:Dr,style:{"pointer-events":"none"}},Hr={key:2,class:"h-full w-full",src:Rr,style:{"pointer-events":"none"}},Yr={class:"flex-grow relative flex w-full flex-col items-center overflow-visible"},zr={key:0,class:"fixed z-dropdown flex w-full self-center justify-self-center p-1 md:w-2/5 lg:w-2/5",style:{"z-index":"var(--layer-header)"}};function Ur(t,e,i,v,o,s){const g=Oe("RightClickMenuNew"),_=Oe("ConfirmationPrompt"),C=Oe("StudioDurationPrompt"),V=Oe("ScenarioStudio");return L(),T("div",{class:"flex-grow relative flex h-full w-full flex-col",onMousemove:[e[3]||(e[3]=ge(()=>{},["prevent"])),e[7]||(e[7]=b=>
57t.$store.dispatch("StudioModule/updateMouseAction",{type:0,caller:"container",event:b}))],ref:"content",onWheel:e[4]||(e[4]=b=>t.$store.dispatch("StudioModule/updateMouseAction",{type:1,caller:"container",event:b})),onMousedown:e[5]||(e[5]=b=>t.$store.dispatch("StudioModule/updateMouseAction",{type:1,caller:"container",event:b})),onMouseup:e[6]||(e[6]=b=>t.$store.dispatch("StudioModule/updateMouseAction",{type:-1,caller:"container",event:b}))},[re(Pe,{name:"bounce",mode:"out-in"},{default:le(()=>[o.contextMenu?(L(),T("div",{class:"relative flex h-0 w-0 rounded-compact",key:o.contextMenuStateIdx,style:Ne([{left:`${o.contextMenu.x}px`,top:`${o.contextMenu.y}px`},{"z-index":"var(--layer-layout-content)"}])},[x("div",Fr,[re(g,{class:"absolute bottom-0 w-12",style:{height:"160px"},onOnMenuClose:s.closeMenus,context:o.contextMenu,trashCallback:o.contextMenuCallbacks.trashCallback,durationCallback:o.contextMenuCallbacks.durationCallback,fillCallback:o.contextMenuCallbacks.fillCallback,onDurationPopup:s.onOpenAssetDurationPopup},null,8,["onOnMenuClose","context","trashCallback","durationCallback","fillCallback","onDurationPopup"])])],4)):Q("",!0)],void 0,!0),_:1}),o.draggingAsset?(L(),T("div",{key:0,class:"absolute overflow-visible rounded-compact bg-inverse-surface p-1",style:Ne([{"pointer-events":"none",width:"60px",height:"60px","z-index":"var(--layer-navigation)"},{left:o.dragPos[0]-30+"px",top:o.dragPos[1]-30+"px"}])},[o.draggingAsset.includes("image")?(L(),T("img",Vr)):o.draggingAsset.includes("video")?(L(),T("img",Gr)):(L(),T("img",Hr))],4)):Q("",!0),x("div",Yr,[re(Pe,{name:"fade"},{default:le(()=>[o.confirmPopupVisible||o.durationPromptVisible?(L(),T("div",{key:0,class:"absolute h-full w-full bg-surface-canvas opacity-prominent",onClick:e[0]||(e[0]=(...b)=>s.onClosePopup&&s.onClosePopup(...b)),style:{"--recipe-container-studio-floating-action-layer":"75","z-index":"var(--recipe-container-studio-floating-action-layer)"}})):Q("",!0)],void 0,!0),_:1}
57),re(Pe,{name:"bounce2"},{default:le(()=>[o.confirmPopupVisible?(L(),T("div",zr,[re(_,{onClosePopup:s.onClosePopup,message:o.confirmPopupMessage,question:o.confirmPopupQuestion,callbackYes:o.confirmPopupCallbackYes,callbackNo:o.confirmPopupCallbackNo},null,8,["onClosePopup","message","question","callbackYes","callbackNo"])])):Q("",!0),o.durationPromptVisible?(L(),T("div",{key:1,class:"fixed z-dropdown flex w-full self-center justify-self-center p-1 md:w-2/5 lg:w-2/5",style:{"z-index":"var(--layer-header)","padding-top":"var(--space-layout-hero-offset)"},onClick:e[2]||(e[2]=ge(()=>{},["stop"]))},[re(C,{onClick:e[1]||(e[1]=ge(()=>{},["stop"])),onClosePopup:s.onClosePopup,duration:o.assetDurationInfo,callbackYes:o.durationPopupCallbackYes},null,8,["onClosePopup","duration","callbackYes"])])):Q("",!0)],void 0,!0),_:1}),(L(),Xe(V,{class:"overflow-scroll-y",key:t.$route.fullPath,navBarHeight:i.navBarHeight},null,8,["navBarHeight"]))])],544)}var un=qe(Br,[["render",Ur],["__scopeId","data-v-2d1b4d85"]]);export{un as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.