!function(){var t,e,i={8875:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return o}});var s=i(8333),n=i(6546),o=(e={name:"VimeoPlayerIframe",components:{},props:{item:{type:Object,required:!0},vimeoId:{type:String,required:!0},pluginVideoPageIndex:{type:Number,required:!0},isPhonePopup:{type:Boolean,required:!1}},data(){return{vimeoPlayer:null,isShowCover:!0}},mounted(){this.createVimeoPlayer(),this.bindFlipEvent()},methods:{createVimeoPlayer:function(){try{this.vimeoPlayer=new s.Z("VimeoPlayer"+this.item.id,{id:Number.parseInt(this.vimeoId)}),this.getVideoWidthHeight(),this.setAutopause(!1),(this.isAutoplay||this.isPhonePopup)&&this.playVideo(),this.isLoop&&this.vimeoPlayer.setLoop(!0),this.vimeoPlayer.on("play",this.videoPlayEvent),this.vimeoPlayer.on("timeupdate",(t=>{this.checkIsCurrentPage()||this.isPhonePopup||this.pauseVideo()}))}catch(t){}},playVideo:function(){this.vimeoPlayer&&(this.isPhonePopup||this.checkIsCurrentPage())&&(this.isPhonePopup&&this.isIOS&&this.vimeoPlayer.setVolume(0),this.vimeoPlayer.play().catch((t=>{})))},pauseVideo:function(){this.vimeoPlayer&&this.vimeoPlayer.pause().then((t=>{})).catch((t=>{}))},setAutopause:function(t){this.vimeoPlayer.setAutopause(t).then((t=>{})).catch((t=>{}))},videoCoverClick:function(){this.isShowCover=!1,this.vimeoPlayer&&this.playVideo()},videoPlayEvent:function(t){t&&(this.isShowCover=!1)},vimeoPlayerDestroy:function(){this.vimeoPlayer&&(this.vimeoPlayer.destroy(),this.vimeoPlayer=null)},checkIsCurrentPage:function(){var t,e;return!!window.BookInfo&&(t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages(),this.pluginVideoPageIndex+1===t||-1{this.playVideo()})),n.Q.$on("SLIDER_LEAVE_PAGE",(()=>{this.pauseVideo()})))},unbindFlipEvent:function(){this.isPhonePopup||(this.isAutoplay&&n.Q.$off("SLIDER_ENTER_PAGE"),n.Q.$off("SLIDER_LEAVE_PAGE"))},getVideoWidthHeight:function(){var t=this.vimeoPlayer.getVideoWidth(),e=this.vimeoPlayer.getVideoHeight();Promise.all([t,e]).then((t=>{this.$emit("getWidthHeight",t)}))}},computed:{isAutoplay:function(){return"EVT_PageViewed"===this.item.moviePlayTriggerEvt},isLoop:function(){return this.item.isLoop},videothumbUrl:function(){return this.item.thumbUrlFileName?this.item.thumbUrl:""},isShowVideoCover:function(){return!this.isPhonePopup&&!(!this.isShowCover||!this.videothumbUrl)},isIOS:function(){return this.$store.state.isIOS}},beforeDestroy(){this.vimeoPlayerDestroy(),this.unbindFlipEvent()}},(0,i(1001).Z)(e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"VimeoPlayerIframe"},[t.isShowVideoCover?e("div",{staticClass:"video-cover",style:{"background-image":`url(${t.videothumbUrl})`},on:{click:t.videoCoverClick}},[e("div",{staticClass:"vimeo-play-button"})]):t._e(),e("div",{staticClass:"vimeo-player-container",attrs:{id:"VimeoPlayer"+t.item.id,"data-vimeo-width":"100%","data-vimeo-height":"100%"}})])}),[],!1,null,"7e033770",null).exports)},1845:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return n}});var s=i(6546),n=(e={name:"YoutubePlayerIframe",components:{},data(){return{youtubeApiSrc:"https://www.youtube.com/iframe_api",youtubePlayer:null,isShowCover:!0,youtubePlayerStatus:-1,playerEvents:{onStateChange:this.onStateChange},playerVars:{}}},props:{item:{type:Object,required:!0},youtubeId:{type:String,required:!0},pluginVideoPageIndex:{type:Number,required:!0},isPhonePopup:{type:Boolean,required:!1}},mounted(){this.createYoutubeApi(),this.createPlayer(),this.bindFlipEvent()},watch:{youtubePlayerStatus:function(t){this.isPhonePopup||1===t&&(this.isShowCover=!1)}},methods:{createYoutubeApi:function(){var t;document.querySelector("#YouTubeApi")||((t=document.createElement("script")).setAttribute("src",this.youtubeApiSrc),t.setAttribute("id","YouTubeApi"),this.loadScriptEvent(t),document.head.appendChild(t))},loadScriptEvent:function(t){t.addEventListener("error",(()=>{var t=document.querySelector("#YouTubeApi");t&&t.remove(),this.createYoutubeApi()}))},createPlayer:function(){const t=window.setInterval((()=>{void 0!==window.YT&&window.YT.loaded&&(this.createYoutubePlayer(),window.clearInterval(t))}),500)},createYoutubePlayer:function(){this.releaseYoutubeObj(),this.isLoop&&(this.playerVars.loop=1,this.playerVars.playlist=this.youtubeId),this.isAutoplay&&this.checkIsCurrentPage()&&(this.playerVars.autoplay=1),this.isPhonePopup&&(this.playerVars.autoplay=1);try{var t="youtubePlayer"+this.item.id,e={height:"100%",width:"100%",videoId:this.youtubeId,playerVars:this.playerVars,events:this.playerEvents};this.youtubePlayer=new window.YT.Player(t,e),this.phoneAutoPlayVideo()}catch(t){}},onStateChange:function(t){this.youtubePlayerStatus=t.data},releaseYoutubeObj:function(){this.youtubePlayer&&(this.youtubePlayer.destroy(),this.youtubePlayer=null)},videoCoverClick:function(){this.isShowCover=!1,this.playVideo()},playVideo:function(){if(this.checkIsCurrentPage()||this.isPhonePopup){const t=window.setInterval((()=>{if(this.youtubePlayer&&window.YT&&window.YT.loaded)try{this.isIOS&&this.isPhonePopup&&this.youtubePlayer.mute(),this.youtubePlayer.playVideo(),window.clearInterval(t)}catch(t){}}),500)}},pauseVideo:function(){this.youtubePlayer&&1===this.youtubePlayerStatus&&this.youtubePlayer.pauseVideo()},checkIsCurrentPage:function(){var t,e;return!!window.BookInfo&&(t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages(),this.pluginVideoPageIndex+1===t||-1{this.playVideo()})),s.Q.$on("PAGE_START_FLIP_"+this.pluginVideoPageIndex,(()=>{this.checkIsCurrentPage()||this.pauseVideo()})),s.Q.$on("SLIDER_LEAVE_PAGE",(()=>{this.pauseVideo()})))},unbindFlipEvent:function(){this.isPhonePopup||(this.isAutoplay&&s.Q.$off("SLIDER_ENTER_PAGE"),s.Q.$off("SLIDER_LEAVE_PAGE"))},phoneAutoPlayVideo:function(){this.isPhonePopup&&this.playVideo()}},computed:{isAutoplay:function(){return"EVT_PageViewed"===this.item.moviePlayTriggerEvt},isLoop:function(){return this.item.isLoop},thumbUrlFileName:function(){return this.item.thumbUrlFileName},videothumbUrl:function(){return this.thumbUrlFileName?this.item.thumbUrl:""},isShowVideoCover:function(){return!this.isPhonePopup&&!(!this.isShowCover||!this.videothumbUrl)},isIOS:function(){return this.$store.state.isIOS}},beforeDestroy(){this.releaseYoutubeObj(),this.unbindFlipEvent()}},(0,i(1001).Z)(e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"YoutubePlayerIframe"},[t.isShowVideoCover?e("div",{staticClass:"video-cover",style:{"background-image":`url(${t.videothumbUrl})`},on:{click:t.videoCoverClick}},[e("div",{staticClass:"youtube-play-button"})]):t._e(),e("div",{attrs:{id:"youtubePlayer"+t.item.id}})])}),[],!1,null,"32af860a",null).exports)},8749:function(){},6546:function(t,e,i){"use strict";i.d(e,{Y:function(){return s},Q:function(){return n}}),e=i(144);const s={PAGE_FINISHED:"PAGE_FINISHED",PAGE_POP_FINISHED:"PAGE_POP_FINISHED",TEXT_ADJUST_GROUP:"TEXT_ADJUST_GROUP",TIMELINE_CREATE_ANIME:"TIMELINE_CREATE_ANIME",TIMELINE_SEEK_ANIME_POSITION:"TIMELINE_SEEK_ANIME_POSITION",TIMELINE_LAYER_SCROLL_TO_VIEW:"TIMELINE_LAYER_SCROLL_TO_VIEW",GET_EMIT_CAMERA_SEEK_ANIME:"GET_EMIT_CAMERA_SEEK_ANIME",OPEN_SCREENSHOT_SETTING:"OPEN_SCREENSHOT_SETTING",CLEAR_ACTION_ANIME:"CLEAR_ACTION_ANIME",SEEK_TIMELINE_INEND:"SEEK_TIMELINE_INEND",CLEAR_EMIT_EVENT_TIMELINE:"CLEAR_EMIT_EVENT_TIMELINE",CLEAR_PREVIEW_TIMELINE:"CLEAR_PREVIEW_TIMELINE",PAGE_START_FLIP:"PAGE_START_FLIP",PAGE_END_FLIP:"PAGE_END_FLIP",MUSIC_ENDED_EVENT:"MUSIC_ENDED_EVENT",ENTER_PAGE:"ENTER_PAGE",LEAVE_PAGE:"LEAVE_PAGE",CANCEL_LINK_ANIME:"CANCEL_LINK_ANIME",SLIDER_ENTER_PAGE:"SLIDER_ENTER_PAGE",SLIDER_LEAVE_PAGE:"SLIDER_LEAVE_PAGE"},n=new e.default},9238:function(t,e,i){"use strict";var s={},n=(i.r(s),i.d(s,{Lottie:function(){return Zi}}),{}),o=(i.r(n),i.d(n,{AngularRectangle:function(){return tn},Arc:function(){return vn},ArithmeticsDivision:function(){return Ps},ArithmeticsEquality:function(){return Ls},ArithmeticsInequality:function(){return Ms},ArithmeticsMinus:function(){return ks},ArithmeticsMultiply:function(){return Ts},ArithmeticsPlus:function(){return Ss},ArrowDownArc:function(){return dn},ArrowLeftArc:function(){return ln},ArrowRightArc:function(){return hn},ArrowUpArc:function(){return cn},BlockBentArrow:function(){return qi},BlockBentUpArrow:function(){return Ji},BlockChevronArrow:function(){return Ki},BlockDoubleArrow:function(){return Yi},BlockDownArrow:function(){return ts},BlockDownCalloutArrow:function(){return Is},BlockLeftArrow:function(){return es},BlockLeftCalloutArrow:function(){return As},BlockLeftRightCalloutArrow:function(){return $s},BlockLeftRightUpArrow:function(){return ys},BlockLeftUpArrow:function(){return vs},BlockNotchedArrow:function(){return Xi},BlockPentagonArrow:function(){return Qi},BlockQuadArrow:function(){return xs},BlockQuadCalloutArrow:function(){return os},BlockRightArrow:function(){return is},BlockRightCalloutArrow:function(){return Es},BlockStripedArrow:function(){return Ui},BlockUpArrow:function(){return ss},BlockUpCalloutArrow:function(){return bs},BlockUpDownArrow:function(){return ji},BlockUpDownCalloutArrow:function(){return Cs},CrossPolygon:function(){return ns},Cube:function(){return en},CurlyBraces:function(){return Ws},CurlyBracesLeft:function(){return _s},CurlyBracesRight:function(){return Fs},CurveDirectionLine:function(){return rs},CurveDoubleDirectionLine:function(){return as},CurveLine:function(){return ls},CutASingleCornerRoundedRectangle:function(){return js},CutOffTheApexRectangle:function(){return Gs},CutSingleAngleRectangle:function(){return Zs},CutTheDiagonalRectangle:function(){return Vs},CutwayRectangle:function(){return zs},Cylindrical:function(){return sn},DeformableCircle:function(){return rn},Dike:function(){return hs},DoubleWave:function(){return on},EightSided:function(){return ds},FoldDirectionLine:function(){return cs},FoldDoubleDirectionLine:function(){return us},ForbiddenCharacter:function(){return an},GreaterThan:function(){return yn},HalfDosedFrame:function(){return Ks},HollowRound:function(){return Ds},HorizontalScroll:function(){return un},LShape:function(){return Js},LessThan:function(){return xn},LineArc:function(){return ps},LineDash:function(){return gs},LineStraight:function(){return ws},LordosisCurvedRibbon:function(){return gn},LordosisRibbon:function(){return fn},NewMoon:function(){return Hs},Parallelogram:function(){return ms},RectangleSingleCornerRounded:function(){return Ys},RectangularSquareHole:function(){return qs},RoundBracket:function(){return Os},RoundBracketLeft:function(){return Bs},RoundBracketRight:function(){return Rs},RoundedRectangle:function(){return fs},RoundedRectangleOnTheSide:function(){return Us},RoundedTopRectangle:function(){return Xs},StringShape:function(){return Ns},Trapezoid:function(){return Vi},Triangle:function(){return Gi},Twill:function(){return Qs},UpCurvedRibbon:function(){return mn},UpRibbon:function(){return wn},VerticalRoll:function(){return pn},Wave:function(){return nn}}),i(144)),r=(i(7658),i(629)),a=i(6154);const l=["st","fl"];function h(t){return`rgba(${parseInt(255*t[0])}, ${parseInt(255*t[1])}, ${parseInt(255*t[2])}, ${t[3]})`}function d(t,e){var{colorInfo:e,widthInfo:i,colorList:s,widthList:n}=function(t){var e=t.layers,i=t.assets;let s=[],n=[],o=[],r=[];function a(t,e,i,d,...c){var u;l.includes(t.ty)?("number"==typeof(u=t.c.k)[0]&&(s.push(h(u)),u={assetIndex:d,layerIndex:e,shapeIndex:i,color:h(u),itIndex:c},n.push(u)),void 0!==(u=t.w)&&"number"==typeof(u=u.k)&&(o.push(u),u={assetIndex:d,layerIndex:e,shapeIndex:i,width:u,itIndex:c},r.push(u))):void 0!==t.it&&t.it.forEach(((t,s)=>{a(t,e,i,d,...c,s)}))}return e.forEach(((t,e)=>{t=t.shapes,void 0!==t&&t.forEach(((t,i)=>{a(t,e,i,-1)}))})),i.forEach(((t,e)=>{t.layers.forEach(((t,i)=>{t=t.shapes,void 0!==t&&t.forEach(((t,s)=>{a(t,i,s,e)}))}))})),s=Array.from(new Set(s)),n.forEach((t=>{var e=s.indexOf(t.color);t.colorIndex=e})),o=Array.from(new Set(o)),r.forEach((t=>{var e=o.indexOf(t.width);t.widthIndex=e})),{json:t,colorList:s,colorInfo:n,widthInfo:r,widthList:o}}(e);0!==e.length&&0===t.colorList.length?t.colorList=s:e.forEach((e=>{t.colorList[e.colorIndex]?e.color=t.colorList[e.colorIndex]:o.default.set(t.colorList,e.colorIndex,e.color)})),0!==i.length&&0===t.widthList.length?t.widthList=n:i.forEach((e=>{t.widthList[e.widthIndex]?e.width=t.widthList[e.widthIndex]:o.default.set(t.widthList,e.widthIndex,e.width)})),o.default.set(t,"colorInfo",e),o.default.set(t,"widthInfo",i)}var c={getColor:function({startColor:t,endColor:e,step:i}){t=this.colorToRgb(t);var s=t[0],n=t[1],o=t[2],r=(t=this.colorToRgb(e),(t[0]-s)/i),a=(t[1]-n)/i,l=(t[2]-o)/i,h=[];for(let c=0;cMath.PI&&(s=1),g=`M${l} ${h} L ${g} ${m} A ${d} ${d} 0 ${s} 1 ${f} ${w} Z`,c.push(g),m={},m.x=l+(d+4*n)*Math.sin((i+a)/2)-2*n,m.y=h-(d+2.5*n)*Math.cos((i+a)/2)-.5*n,p.push(m),r.push({startAngle:a,angle:e,endAngle:i}),a=i}}return 1===c.length&&(e="top"===e,u=parseInt(Math.min(i/2-6*n,s/2-6*n)),c=[`M${i/2}, ${e?s/2+2.5*n:s/2-2.5*n}m ${-u}, 0a${u},${u} 0 0,1 ${2*u},0a${u},${u} 0 0,1 ${-2*u},0`]),{pathArray:c,textPointArray:p,angleArray:r}},p=function({startAngle:t,endAngle:e,width:i,height:s,position:n,pointR:o}){var r=e-t,a=i/2;let l=s/2-2.5*o;"top"===n&&(l=s/2+2.5*o),n=Math.min(i/2-6*o,s/2-6*o),i=a+n*Math.sin(t),s=l-n*Math.cos(t),o=a+n*Math.sin(e),t=l-n*Math.cos(e);let h=0;return r>Math.PI&&(h=1),`M${a} ${l} L ${i} ${s} A ${n} ${n} 0 ${h} 1 ${o} ${t} Z`},g={getExistColorList({svgCode:t,colorIndexArray:e,colorList:i}){let s=i,n=e,o=t;if(e&&i||(e=this.getColorList({svgCode:t}),n=e.colorIndexList,s=e.originColorList),s&&0!==s.length)for(let a=0;a${o}`;return{svgString:o}},getColorList({svgCode:t,fillNone:e}){var i=t.match(/(rgb(a)?\(.*?\)|(#[0-9a-fA-F]{6})|url\(#gradient.*?\))/gi);let s=t;if(i){var n=[];let t=0;var o={},r=[],a=i.length;for(let d=0;d/g,"")).replace(//g,"")).replace(//g,"")).replace(//g,"")).replace(//g,"")).replace(/<\/switch>/g,"")).replace(/i:extraneous="self"/g,"")).replace(/\/tspanx=".*">/g,"/tspan>")).replace(//)&&(t=s.match(/.*?<\/defs>/),s=(s=t&&i?(s=t[0].replace(//,"").replace(/<\/defs>/,"")).replace(/id=".*?"/,`id="${e}"`):s).replace(//,"").replace(/<\/svg>/,"")),s},replaceStyle:function({svgString:t,item:e}){var i=(t=t.replace(/\n|\r|\f|\v|\t/g,"")).match(/id=".*?"/g);i&&!i[0].match("QQTID")&&i.forEach((i=>{var s=Math.random().toString().substr(2,8)+(new Date).getTime().toString().substr(0,2),n=i.indexOf('"');""!==(i=(i=i.slice(n+1,-1)).replace(/(^\s*)|(\s*$)/g,""))&&(n=new RegExp("\\?","g"),i=i.replace(n,"Q"),n=new RegExp(""+i,"g"),i="QQTID"+e.id.substr(0,5)+s,t=t.replace(n,i))})),i=t.match(/.*?<\/style>/);if(i&&(i=t.match(/.*?<\/style>/)[0].match(/\..*?{/g),i&&-1===i[0].indexOf("QQTClass"))){let e=[];t.match(/class=".*?"/g).forEach((t=>{var i=(t=(t=t.slice(7,-1)).replace(/(^\s*)|(\s*$)/g,"")).split(" "),s=i.length;if(1{e=new RegExp(""+e,"g");var i="QQTClass"+(Math.random().toString().substr(2,6)+(new Date).getTime().toString().substr(0,4));t=t.replace(e,i)}))}return t},getPathSvg:function({item:t,scale:e,scaleX:i,scaleY:s,direction:n}){var o=t.svg.svgViewBox.split(" "),r=o[2],a=(o=o[3],t.svg.lastViewBox.split(" ")),l=a[2];a=a[3];let h=0,d=0,c="";0!==e&&("vertical"===n?(h=a*e,c=`0 0 ${r} `+h):"level"===n?(d=l*e,c=`0 0 ${d} `+o):"both"===n&&(h=a*s,d=l*i,c=`0 0 ${d} `+h)),r=t.svg.originViewBox.split(" "),o=r[2],a=r[3],s=t.gNode.transform.match(/scale\(.*?\)/)[0];let u=t.gNode.transform.match(/translate\(.*?\)/);u=u&&u[0];var p,g;l=s.indexOf("("),i=s.indexOf(")"),r=s.indexOf(","),l=s.substring(l+1,r),r=s.substring(r+1,i);let m=0,f=0,w=(u&&(i=u.indexOf("("),g=u.indexOf(")"),p=u.indexOf(","),m=u.substring(i+1,p),f=u.substring(p+1,g)),""),v="",y=(0!==e&&("vertical"===n?(i=h/a,w=`scale(${l},${i})`,u&&(v=`translate(${m},${f*i/r})`)):"level"===n?(p=d/o,t.svg.hasDefs?w=`scale(1,${r})`:(w=`scale(${p},${r})`,u&&(v=`translate(${m*p/l},${f})`))):"both"===n&&(g=h/a,e=d/o,t.svg.hasDefs?w=`scale(1,${g})`:(w=`scale(${e},${g})`,u&&(v=`translate(${m*e/l},${f*g/r})`)))),t.gNode.transform.replace(u,v));return y=y.replace(s,w),{viewBox:c,transform:y}},resetSvgId:function(){}},m={getOffset:function(t,e){if(e=document.querySelector(e),e){e=e.getAttribute("d");let t=0;return""!==e&&e.match(/M.*?Z/g).forEach((e=>{var i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d",e),e=i.getTotalLength();t{var t,n;(e||i)&&(n=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,n.drawImage(o,0,0),o._dataUrl=t.toDataURL()),s(o,r)},o.onerror=n,e&&(o.crossOrigin="Anonymous"),o.src=r}))},hasAnime:function(t){var e=t.animations,i=e.in;return"text"!==t.type&&("一直显示"!==i.name||"一直显示"!==e.out.name||1{s.onload=()=>{var n=document.createElement("canvas");n.width=Number.parseFloat(e),n.height=Number.parseFloat(i),n.getContext("2d").drawImage(s,0,0),n=n.toDataURL("image/png"),t(n)},s.onerror=t=>{n(t)}}))}}var k=i(7873);const T=new class{constructor(){(0,k.Z)(this,"hasAddedFonts",new Set),(0,k.Z)(this,"errorFonts",new Set)}addFont(t,e,i){i&&document.fonts.add(i),this.hasAddedFonts.has(t)||(this.hasAddedFonts.add(t),this.createFontFaceNode(t,e))}addErrorFont(t){this.errorFonts.add(t)}createFontFaceNode(t,e){document.getElementById("readerFont");var i=document.createElement("style");t=document.createTextNode(`@font-face{font-family: '${t}';src:url('${e}')}`);i.appendChild(t),document.querySelector("head").appendChild(i)}};var P=i(6546);class L{static getDefaultItemKey(){return{actionList:[],isPlayingActAnime:!1,actAnimeTime:-1,actIsHidden:!1,isHidden:!1,isActionHideCase:!1,showOrHideIsFirstHide:!1,isLocked:!1,rotate:0,rotateX:0,rotateY:0,isShowShadow:!1,publishThumbUrl:"",range:"0",existStartTime:-1,existEndTime:-1,filter:{selectedIndex:0,dropShadow:{shadowX:4,shadowY:4,shadowBlur:2,shadowColor:"#808080"},brightness:1,saturate:1,contrast:1,hueRotate:0,grayscale:0,invert:0,sepia:0,blur:0},pathHeight:0,pathWidth:0,isShowMaskImage:!1,pathViewBox:"",pathTransform:"",animations:{in:{},middle:[],out:{}},animationFiles:{maskFiles:{in:{url:"",fileName:"",isNewFile:!1},out:{url:"",fileName:"",isNewFile:!1}},maskImageFile:{url:"",fileName:"",width:0,height:0,originW:0,originH:0,x:0,y:0,fileType:"png",isUploadMask:!1,maskRepeat:"no-repeat",isNewFile:!1},scrawlFiles:{in:{url:"",fileName:"",isNewFile:!1,handId:-1,left:"",top:"",scale:1}},outEraseFiles:{out:{url:"",fileName:"",isNewFile:!1,handId:-1,left:"",top:"",scale:1}},handPaintedFiles:{in:{url:"",fileName:"",isNewFile:!1,handId:-1,left:"",top:"",scale:1}}},scrawlConfig:{in:{maskType:"scrawl",opacity:1,maskImage:"none",repeat:"no-repeat",position:"center center"}},maskConfig:{in:{maskType:"",opacity:1,maskImage:"none",maskSize:"none",repeat:"repeat",position:"center"},out:{maskType:"",opacity:1,maskImage:"none",maskSize:"none",repeat:"repeat",position:"center"}},outEraseConfig:{out:{maskType:"outErase",opacity:1,maskImage:"none",repeat:"no-repeat",position:"center center"}}}}constructor(...t){var e=L.getDefaultItemKey();this.setConfig(e,...t)}setConfig(...t){return f.deepAssign(this,...t)}}class M extends L{constructor(t){super({name:"形状",type:"svg",style:{width:t.style?t.style.width:"",height:t.style?t.style.height:""},isQRCode:!1,urlPrefix:"http://",qrcodeUrl:"www.xiuzhan365.com",gNode:t.gNode,svgUrl:"",userHasChangedColor:!0,gradientColorList:[],originColorList:[],pathViewBox:t.svg.svgViewBox,pathTransform:t.gNode.transform,paintSvgCode:"",paintPathLengthList:[],qrcodeGap:15,isQRCodeImg:!1,qrcodeImgSrc:""},t)}}var A={getGradientColorVal:function({gradientItem:t}={}){if(t){let e="",i=[],s="";return this.getSortColorList({colorList:t.colorList}).forEach((t=>{i.push(t.color+" "+t.percent),s=i.toString()})),e="linear"===t.gradientType?"linear-gradient("+t.gradientDeg+"deg,"+s+")":"radial-gradient("+s+")"}},rgbaToRgb:function(t){var e=/[0-9]{1,3}/g;t=t.split(",");return{rgb:`rgb(${t[0].match(e)[0]}, ${t[1].match(e)[0]}, ${t[2].match(e)[0]})`,alpha:t[3].match(/\d?\.?\d+?/g)[0]}},getSortColorList:function({colorList:t}={}){return f.copy(t,!0).sort(this.sortNumber)},sortNumber:function(t,e){return parseFloat(t.percent)-parseFloat(e.percent)},hexToRgb:function(t){let e=t;if(-1===t.indexOf("#")||-1!==t.indexOf("url"))return t;if(4===e.length){let t="#";for(let i=1;i<4;i+=1)t+=e.slice(i,i+1).concat(e.slice(i,i+1));e=t}return t=e.replace("#","0x"),`rgb(${t>>16&255}, ${t>>8&255}, ${255&t})`},hexToRgba:function(t,e){if(t=t.toUpperCase(),/^#[0-9a-fA-F]{3,6}$/.test(t)){var i=[];let s=1;for(let e=1;e<=3;e++)t.length-2*e>3-e?(i.push(Number("0x"+t.substring(s,s+2))),s+=2):(i.push(Number("0x"+t.charAt(s)+t.charAt(s))),s+=1);return"rgba("+i.join(",")+","+e+")"}return t},getRgbaColor:function(t){let e=t;return t=(e=t.match(/rgb/gi)?e:this.hexToRgba(t,1)).match(/([1-9]\d*|0)(\.\d{1,3})?/g),{r:t[0],g:t[1],b:t[2],a:t[3]}}};let E=t=>{let e="",i="";const s=document.createElement("g");var n=t.style;return e=n.stroke||"",(i=n.fill||"")||(n=t.getAttribute("fill"),i=n||""),e||(n=t.getAttribute("stroke"),e=n||""),i&&"none"!==i||e&&"none"!==e?(s.setAttribute("style",`fill: ${i}; stroke: `+e),t.childNodes.forEach((t=>{s.appendChild(t.cloneNode(!0))})),(n=t.cloneNode()).appendChild(s),n):t},W=t=>{var e=Array.from(t.querySelectorAll("style"));let i=_(e);for(const s in i)Array.from(t.querySelectorAll(s)).forEach((t=>{var e=t.style,n=(B(e),i[s]);for(const i in n)""!==e[i]&&void 0!==e[i]||(e[i.trim()]=n[i])}));for(let s=0;s{let e={};return t.forEach((t=>{if(t.sheet){var i=t.sheet.cssRules;if(null!=i&&0!==i.length)for(let t=0,a=i.length;tt.trim()));for(let t=0,i=n.length;t{let i={};for(let s=0;s{let e=0;for(var i in t)"number"!=typeof Number(i)||isNaN(Number(i))||Number(i)+1>e&&(e=Number(i)+1);return e})(r));e[o]=Object.assign(e[o]||{},r)}}}}else t=t.textContent.replace(/[\n|\t]/g,"").match(/\.[\w\d]*.*?\}/g),t&&t.forEach((t=>{var i=t.match(/\.[\w\d]*.*?{/)[0].slice(0,-1);const s={};t.match(/{.*?}/g)[0].slice(1,-1).split(";").forEach((t=>{t&&1<(t=t.split(":")).length&&(s[t[0]]=t[1])})),e[i]=Object.assign(e[i]||{},s)}))})),e};const F={opacity:"opacity",fill:"fill",stroke:"stroke",stopColor:"stop-color"},O=["fill","stroke","stop-color"];let B=(t,e)=>{for(var i in F){var s=i,n=(i=F[i],t[s]);n&&(n="opacity"===s?n:A.hexToRgb(n),e?(e.setAttribute(i,n),t[s]=""):t[s]=n)}},R=t=>{O.forEach((e=>{var i=t.getAttribute(e);i&&(i=A.hexToRgb(i),t.setAttribute(e,i))})),B(t.style,t)};var H=t=>{t.querySelectorAll("stop").forEach((t=>{R(t)}))},N=t=>{R(t),z(t),G(t)};const D={title:t=>{t.parentNode.removeChild(t)},svg:t=>{z(t)},g:t=>{z(t),G(t)},path:t=>{R(t),z(t),G(t)},lineargradient:H,radialgradient:H,defs:t=>{z(t)},clippath:t=>{z(t)},polygon:N,polyline:N,rect:t=>{R(t),z(t),G(t)},circle:t=>{R(t),z(t),G(t)},ellipse:t=>{R(t),z(t),G(t)},line:t=>{R(t),z(t),G(t)},metadata:t=>{t.parentNode.removeChild(t)}};let z=t=>{var e=t.childNodes;for(let i=e.length-1;0<=i;i--)1===e[i].nodeType&&Z(e[i])},Z=t=>{var e=t.nodeName.toLowerCase();e=D[e];null!=e&&e(t)};function G(t){var e=t.id;e&&!isNaN(Number(e))&&(e=t.nodeName.toLowerCase()+Math.random().toString().substr(2,4)+(new Date).getTime().toString().substr(0,2),t.setAttribute("id",e)),t.classList&&t.setAttribute("class","")}function V({item:t,svgStr:e}){var i="line"===t.svgClass;let s=e;1===Number(t.parseSvgType)||i?(e=f.getUniqueId(),s=g.getSvgString(s,e,i),i||(s=g.replaceStyle({svgString:s,item:t}))):(s=function(t){var e=(new DOMParser).parseFromString(t,"image/svg+xml");if(e){var i=e.querySelector("parsererror");if(!i){if(W(e),i=e.querySelector("svg"),i){i=E(i),z(i);let t=i.outerHTML;return t=t.replace(//,"").replace(/<\/svg>/,"")}t=t.replace(//,"").replace(/<\/svg>/,"")}return t}return t.replace(//,"").replace(/<\/svg>/,"")}(s),s=g.replaceStyle({svgString:s,item:t}));var n,{originColorList:e,newColorList:i,colorIndexList:o}=g.getColorList({svgCode:s}),r=i.slice(t.colorList.length),a=t.colorList.concat(r);r=t.colorList,n=i,i=-1!==r.map((t=>(t=A.getRgbaColor(t),t.a?`rgba(${t.r},${t.g},${t.b},${t.a})`:`rgb(${t.r},${t.g},${t.b})`))).findIndex(((t,e)=>t.replace(/\s/g,"")!==n[e].replace(/\s/g,"")));if(t.userHasChangedColor=i){s=g.getExistColorList({colorList:e,svgCode:s,colorIndexArray:o}).svgString;var l=a.length;for(let t=0;t!t))}}function nt(){return new st}o.default.use(r.ZP,a.Z);var ot=new r.ZP.Store({state:{isDev:!1,project:"flip",pages:[],isSupportWebp:!1,isMobile:!1,isIOS:!1,pageConfig:{originPageWidth:0,originPageHeight:0,fitPageLeft:0,fitPageTop:0},canvas:{width:736,height:500},isShowAlertMsg:!1,vueObj:[],popVueObj:[],currentAutoPlayer:"",currentPlayerIndex:-1,animeTime:{},isPlayingAnime:{},folder:"videoMask",isShowPopVideo:!1,isShowPopupVideo:!1,isPlayAudio:!1,isShowPopupMsg:!1,isShowAddWechat:!1,curItem:"",textSearchResults:Object.freeze([]),globalAudioItems:[]},getters:{isFlipPro:t=>"flip"===t.project,isYZPro:t=>"yunzhan"===t.project,isH5Pro:t=>"h5"===t.project,apiHost:t=>{var e=window.location.href;return-1t.isDev?`/test/${t.folder}/extfile/`:(window.location.pathname,"./files/editor/files/extfile/"),ossImgSuffix:t=>"",ossGifSuffix:t=>{},fitViewScale:function(t){var e=t.canvas.width/t.pageConfig.originPageWidth;t=t.canvas.height/t.pageConfig.originPageHeight;return Math.min(e,t)},realPageWH:function(t,e){var i=t.pageConfig.originPageWidth,s=t.pageConfig.originPageHeight,n=t.canvas.width;t=t.canvas.height,e=e.fitViewScale,i*=e,s*=e;return{pageInnerWidth:i,pageInnerHeight:s,pageInnerLeft:(n-i)/2,pageInnerTop:(t-s)/2}},getCurItem:function(t){return t.curItem}},mutations:{IS_SUPPORT_WEBP:(t,{isSupport:e})=>{t.isSupportWebp=e},NAVIGATOR_INFO:(t,{isMobile:e,isIOS:i})=>{void 0!==e&&(t.isMobile=e),void 0!==i&&(t.isIOS=i)},SAVE_PAGE_CONFIG:(t,{pageConfig:e})=>{t.pageConfig.originPageWidth=e.pageWidth,t.pageConfig.originPageHeight=e.pageHeight},CLEAR_PAGE:(t,{pageIndex:e})=>{var i;t.pages[e]&&(i=nt()["clearPageItem"],i(t.pages[e])),o.default.set(t.animeTime,e,-1),o.default.set(t.isPlayingAnime,e,!1)},REFRESH_CODE:(t,{item:e,type:i,value:s})=>{switch(i){case"svg":o.default.set(e,"svgCode",s);break;case"frames":var n;"string"==typeof s&&(n=f.getUniqueId(),n=g.getSvgString(s,n,!1),n=[g.getColorList({svgCode:n,fillNone:!0}).svgString],o.default.set(e,"containerList",n)),"object"==typeof s&&(n={},e.hasFillSvg&&(n.fillColor=e.fillColor),delete s.type,delete s.viewBox,Object.assign(e,s,n))}},SET_CANVAS:(t,{width:e,height:i})=>{t.canvas.width=e,t.canvas.height=i;var s=t.pageConfig.originPageWidth,n=t.pageConfig.originPageHeight;t.pageConfig.fitPageLeft=(e-s)/2,t.pageConfig.fitPageTop=(i-n)/2},SET_PAGE_STYLE:(t,{page:e,width:i,height:s,left:n,top:o,scale:r})=>{void 0!==i&&(e.width=i),void 0!==s&&(e.height=s),void 0!==n&&(e.left=n),void 0!==o&&(e.top=o),void 0!==r&&(e.scale=r)},UPDATE_PAGE_STATUS:(t,{pageIndex:e,status:i})=>{o.default.set(t.isPlayingAnime,e,i)},UPDATE_PAGE_TIME:(t,{pageIndex:e,time:i})=>{o.default.set(t.animeTime,e,i)},STORE_TEXT_SEARCH_RESULTS:(t,{results:e,clear:i=!1})=>{i?t.textSearchResults=[]:((i=Object.isFrozen(t.textSearchResults)?JSON.parse(JSON.stringify(t.textSearchResults)):t.textSearchResults).push(...e),t.textSearchResults=Object.freeze(i))}},actions:{ASYN_GET_ITEM_RES({state:t,commit:e},{page:s}){return new Promise((n=>{let r=[],l=[],h=s=>{if("text"===s.type&&!s.systemFontToSvg){const t=s.innerTextStyle.fontFamily;if(!l.includes(t)&&!T.hasAddedFonts.has(t)&&!T.errorFonts.has(t)){l.push(t);const e=s.isUploadedFont?s.uploadFontUrl:s.minFontUrl,i=new FontFace(t,`url(${e})`);r.push(i.load().then((s=>{T.addFont(t,e,i)})).catch((i=>{T.addErrorFont(t),T.createFontFaceNode(t,e)})).finally((()=>{P.Q.$emit("FONT_HAS_LOAD_"+t)})))}}if("table"===s.type){const t=new Map;s.tableList.forEach((e=>{e.filter((e=>!t.has(e.innerTextStyle.fontFamily)&&t.set(e.innerTextStyle.fontFamily,1))).forEach((t=>{const e=t.innerTextStyle.fontFamily;if(!l.includes(e)&&!T.hasAddedFonts.has(e)&&!T.errorFonts.has(e)){l.push(e);const i=t.isUploadedFont?t.uploadFontUrl:t.minFontUrl,s=new FontFace(e,`url(${i})`);r.push(s.load().then((t=>{T.addFont(e,i,s)})).catch((t=>{T.addErrorFont(e),T.createFontFaceNode(e,i)})).finally((()=>{P.Q.$emit("FONT_HAS_LOAD_"+e)})))}}))}))}if("image"===s.type&&(s.isSprite?s.gifs.forEach((e=>{e.hasLoadedNormal=!1;let i=e.jsonUrl.length-1,s=[0,i=t.isMobile?1:i];o.default.set(e,"loadImageIndex",i),e.jsonUrl.forEach(((t,i)=>{s.includes(i)&&(t=a.Z.get(t).then((t=>{o.default.set(e.grids,i,t.data)})).catch((()=>{})),r.push(t)),0!==i||l.includes(e.image[0])||(l.push(e.image[0]),t=f.preLoadImage(e.image[0]).catch((()=>{})),r.push(t))}))})):l.includes(s.fileName)||(l.push(s.fileName),n=f.preLoadImage(s.url).catch((()=>{})),r.push(n))),"frames"===s.type&&0===s.containerList.length){var n=""+s.jsonUrl;n=a.Z.get(n).then((t=>{e("REFRESH_CODE",{item:s,type:"frames",value:t.data})})).catch((t=>{}));r.push(n);for(let t=0;t{})),r.push(c))}}if("svg"===s.type&&!s.svgCode)if(s.isQRCode){n=s.urlPrefix+s.qrcodeUrl;var u=s.colorList;let t=new(i(7304))({content:n,padding:0,width:60,height:60,color:u[1],background:u[0],ecl:"M"}).svg();n=t.match(""),t=(t=t.replace(n,"")).replace(/<\/svg>/,""),e("REFRESH_CODE",{item:s,type:"svg",value:t})}else{u=""+s.svgUrl,n=a.Z.get(u).then((t=>{var{userHasChangedColor:t,svgString:i}=V({item:s,svgStr:t.data});t&&e("REFRESH_CODE",{item:s,type:"svg",value:i})})).catch((t=>{}));r.push(n)}"effect"===s.type&&(u=""+s.jsonUrl,s.hasLoadedJson=!1,n=a.Z.get(u).then((t=>{s.hasLoadedJson=!0,s.json=t.data,d(s,t.data)})).catch((()=>{})),r.push(n))};s.items.forEach((t=>{var e,i,s,n,o,d;e=t,i=e.animations.in,s=e.animations.out,n=e.animationFiles.maskFiles,o=n.in,n=n.out,d=[],rt(i)&&""!==o.url&&d.push(o.url),rt(s)&&""!==n.url&&d.push(n.url),void 0!==e.animationFiles.maskImageFile&&""!==e.animationFiles.maskImageFile.url&&d.push(e.animationFiles.maskImageFile.url),d.forEach((t=>{var e=f.getPathFilename(t);l.includes(e)||(l.push(e),e=a.Z.get(t).catch((()=>{})),r.push(e))})),h(t),"group"===t.type&&t.items.forEach((t=>{h(t)}))})),s.subtitle.items.forEach((t=>h(t))),Promise.all(r).then((()=>{})).catch((t=>{})).finally((()=>{n()}))}))}},modules:{}});let rt=t=>"mask"===t.type&&"svg"===t.props[0].maskType,at=(t,e)=>{var i=t.pageIndex,s=f.getPageTime(i-1);i=ot.state.animeTime[i]-s;if(e){if(s=t.animations.in,i>=s.delay&&i<=s.delay+s.duration)return!0}else if(e=t.animations.out,s=t.existEndTime,i<=s&&i>=s-e.duration)return!0;return!1};H={name:"OutMaskDom",data(){return{}},inject:["getCurrentPage"],props:["item","groupKey"],computed:{maskImageFile:function(){return this.item.animationFiles.maskImageFile},showMaskImgDom:function(){return this.item.isShowMaskImage&&""!==this.maskImageFile.url},maskImgDomStyle:function(){var t,e,i;return this.showMaskImgDom?(t={},e=this.maskImageFile.x*parseFloat(this.item.style.width)/100,i=this.maskImageFile.y*parseFloat(this.item.style.height)/100,t.maskImage=`url(${this.maskImageFile.url})`,t.maskRepeat=this.maskImageFile.maskRepeat,t.maskPosition=e+`px ${i}px`,t.maskSize=`${this.maskImageFile.width}% ${this.maskImageFile.height}%`,t):{}},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},pageIndex:function(){return this.item.pageIndex},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},currentPage:function(){},pageTotalTime:function(){return 0},transform:function(){return this.item.pathTransform},viewBox:function(){var t=this.item.pathViewBox;let e=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[2]),i=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[3]);return e<1&&(e=1),i<1&&(i=1),`0 0 ${e} `+i},maskFile:function(){return this.item.animationFiles.maskFiles},inMaskFile:function(){return this.maskFile.in},outMaskFile:function(){return this.maskFile.out},oppositeTime:function(){return-1},hasPaintedAnime:function(){var t=this.item;return!it(t)&&"painted"===t.animations.in.type},paintedAnimeOpacity:function(){var t,e,i;return this.hasPaintedAnime?(t={},e=this.item.animations.in,-1!==this.oppositeTime&&(i=e.duration,e=e.delay,(i=this.oppositeTime-e-.8*i-(e=.1*i))<=0&&(t.opacity=0),0<=i)&&i<=e&&(t.opacity=i/e),t):{}},pathAnimeOpacity:function(){var t,e,i,s,n,o={};return this.hasPaintedAnime?(-1!==this.oppositeTime&&(t=(s=this.item.animations.in).duration,i=this.oppositeTime,s=s.delay,o.opacity=(n=s+(e=.1*t)+.8*t)<=i&&i<=s+t?1-(i-n)/e:it))):n,s.showOutMaskDom||s.showMaskImgDom||s.hasPaintedAnime?(i=t("div",{class:"paintedAnimeOpacity",style:s.paintedAnimeOpacity},[n]),e=s.hasPaintedAnime?t("div",{class:"painted",style:s.pathAnimeOpacity},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/1999/xlink",width:"100%",height:"100%",viewBox:s.viewBox,id:"svg"+s.item.id}},[t("g",{attrs:{transform:s.transform},domProps:{innerHTML:s.item.paintSvgCode}})])]):"",i=s.showOutMaskDom?t("div",{class:"outMaskDom",style:s.outMaskDomStyle},[s.showMaskImgDom?t("div",{class:"maskImgDom",style:s.maskImgDomStyle},[s.hasPaintedAnime?i:n]):s.hasPaintedAnime?i:n]):s.showMaskImgDom?t("div",{class:"maskImgDom",style:s.maskImgDomStyle},[s.hasPaintedAnime?i:n]):s.hasPaintedAnime?i:n,s.hasPaintedAnime?t("div",[i,e]):i):n}},N=i(1001),r=(0,N.Z)(H,void 0,void 0,!1,null,"2ec25600",null).exports;var lt=function(t,e){var i=f.getPageTime(e-1),s=t.existStartTime+i;i=t.existEndTime+i;let n=ot.state.animeTime[e]||0,o=!1;return t.isPlayingActAnime&&(n=t.actAnimeTime),-1!==t.existStartTime&&(n=i||o},ht=i(8501),dt=i(3441);function ct(t,e,i,s){const n=new Float32Array(11);if(t!==e||i!==s)for(let o=0;o<11;++o)n[o]=ut(.1*o,t,i);return function(o){return t===e&&i===s?o:0===o?0:1===o?1:ut(function(e){let s=0,o=1;for(;10!==o&&n[o]<=e;++o)s+=.1;--o;var r=(e-n[o])/(n[o+1]-n[o]),a=(r=s+.1*r,pt(r,t,i));return.001<=a?function(t,e,i,s){for(let r=0;r<4;++r){var n=pt(e,i,s);if(0===n)return e;var o=ut(e,i,s)-t;e-=o/n}return e}(e,r,t,i):0===a?r:function(t,e,i,s,n){let o,r,a=0;for(;r=e+(i-e)/2,0<(o=ut(r,s,n)-t)?i=r:e=r,1e-7{"in"===e&&n===t.props.length-1&&void 0!==s.timePercent&&2===t.props.length&&(t.props[0].timePercent=1,delete t.props[1].timePercent),s.timePercent&&(i+=s.timePercent)})):i=1,Math.abs(i-1),Number.EPSILON,Math.pow(2,2)},getPreAnimeStyle:function({item:t,isMiddleAnime:e,middleIndex:i,propsIndex:s,perMiddleAnimeProps:n}){var o=t.animations.middle;if(e){if(0===i)return 0===s?{w:parseFloat(t.style.width),h:parseFloat(t.style.height)}:{w:n[s-1].css.width,h:n[s-1].css.height};{let r=null;for(let e=i-1;0<=e;e--)if("path"===t.animations.middle[e].type){r=e;break}return 0===s?null!==r?{w:(e=o[r].props)[e.length-1].css.width,h:e[e.length-1].css.height}:{w:parseFloat(t.style.width),h:parseFloat(t.style.height)}:{w:n[s-1].css.width,h:n[s-1].css.height}}}for(let l=o.length-1;0<=l;l--){var r=o[l],a=o[l].props.length-1;if("path"===r.type)return{w:r.props[a].css.width,h:r.props[a].css.height}}return{w:parseFloat(t.style.width),h:parseFloat(t.style.height)}},isEmpty:function(t){return null==t||"{}"===JSON.stringify(t)||"[]"===JSON.stringify(t)},checkHasRotatePath:function(){let t=[],e=this.$store.state.pagePanel.pages;e.forEach(((e,i)=>{let s=i+1;e.items.forEach(((i,n)=>{let o=e.items.length-n,r=0!==i.rotate;r&&"path"===i.animations.in.type&&(n={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:i.name,animeType:"in"},t.push(n));let a=i;i.animations.middle.forEach(((e,i)=>{r&&"path"===e.type&&(e={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:a.name,animeType:"middle第"+(i+1)+"个"},t.push(e))})),r&&"path"===i.animations.out.type&&(n={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:i.name,animeType:"out"},t.push(n))}))}))},setEase:function(t,e){if("default"===t.ease&&t.defaultCutomEase&&0!==t.defaultCutomEase.length&&t.props.forEach(((e,i)=>{t.defaultCutomEase.forEach(((t,s)=>{var n,o,r;i===s&&(Array.isArray(t)&&0!==t.length?(s=t[0],n=t[1],o=t[2],r=t[3],e.ease=ct(s,n,o,r)):0!==t.length&&("object"==typeof t?"Back"===t.ease&&(e.ease=dt.eJ[t.easeType].config(t.configNum)):e.ease=t))}))})),"path"===t.type&&"straight"===t.pathType&&t.props.forEach((e=>{e.ease="default"===t.ease?"Power0.easeNone":t.ease})),1===t.duration&&t.defaultDuration&&(t.duration=t.defaultDuration),"SteppedEase"===t.ease&&t.props.forEach((t=>{t.ease=new dt.NB(12)})),e)return t.props}};function mt(t,e){if(Object.keys(t).includes("cycle")){let i=t.cycle;Object.keys(i).forEach((s=>{switch(s){case"strokeDasharray":t.cycle.strokeDasharray=m.getOffset;break;case"strokeDashoffset":t.cycle.strokeDashoffset=m.getOffset;break;case"stroke":t.cycle.stroke=m.getStrokeColor;break;case"strokeWidth":t.cycle.strokeWidth=m.getStrokeWidth;break;case"fill":t.cycle.fill=m.getColor;break;case"waveY":delete i.waveY,t.cycle.y=function(t){return 3*-Math.cos(3.14*t/e)*100+"%"};break;case"waveX":delete i.waveX,t.cycle.x=function(t){return 3*-Math.cos(3.14*t/e)*100+"%"};break;case"bounceDownIn":delete i.bounceDownIn,t.cycle.y=function(){return"-200%"};break;case"bounceUpIn":delete i.bounceUpIn,t.cycle.y=function(){return"200%"};break;case"bounceUpOut":delete i.bounceUpOut,t.cycle.y=function(){return"-200%"};break;case"bounceDownOut":delete i.bounceDownOut,t.cycle.y=function(){return"200%"}}}))}return t}var ft=i(1100);function wt({item:t,scaleY:e,scaleX:i,toReal:s}){let n="",o="";switch(t.strategy){case"stretch":if("100% 100%"===t.style.backgroundSize||"0px 0px"===t.style.backgroundSize||s)o="100% 100%",n="0 0";else{let s=0,l=0,h=0,d=0;var r=f.fetchStrDigit(t.style.backgroundPosition),a=f.fetchStrDigit(t.style.backgroundSize);h=i?(s=t.cropInfor.originalPx*i,t.cropInfor.originalSx*i):(s=r[0],a[0]),d=e?(l=t.cropInfor.originalPy*e,t.cropInfor.originalSy*e):(l=r[1],a[1]),o=`${h}px ${d}px`,n=`${s}px ${l}px`}break;case"tile":r=ot.state.pageConfig.originPageWidth,a=t.originalWidth>.4*r?.4*r:t.originalWidth,r=a*t.originalHeight/t.originalWidth,o=a+`px ${r}px`,n="0 0";break;case"contain":o="contain",n="center";break;case"cover":n=function({item:t}){let e,i,s,n,o,r=parseFloat(t.style.width),a=parseFloat(t.style.height),l=parseFloat(t.originalWidth),h=parseFloat(t.originalHeight),d=r/a,c=l/h;return c{var e=t.length;let i=t[0];for(let n=1;n{var e,i,s,n=document.querySelector("#realSvgDom"+t.id).querySelectorAll("path");let o=[];return n&&0!==n.length?(n=function(t){let e=[];var i=t.length;if(i{let s=0,n=[],r=(e,i)=>{if("SVG"!==e.tagName.toUpperCase()&&e.id!=="realSvgDom"+t.id){var o=window.getComputedStyle(e).transform;let t={};t="none"===o?new xt:new xt(o),i&&(o=vt([t.a,t.b,t.c,t.d,t.e,t.f]),s=o.rotate+o.skew+s),n.push(t),r(e.parentNode,!0)}};r(i,!1);var a=bt(n),l={path:"",matrix:[a.a,a.c,a.e,a.b,a.d,a.f,0,0,1],scaleX:1,scaleY:1,rotate:s};a=vt([a.a,a.b,a.c,a.d,a.e,a.f]),l.scaleX=a.scale[0],l.scaleY=a.scale[1],a=i.getAttribute("d");try{var h=a.match(/(M|m)/g);let t="";(t=2<=h.length?a.match(/(M\s?\d+.*?)(M|m)/)[1]:a).match(/(Z|z)/g);var d=function(t){let e={},i=0,s=[];return t.forEach(((n,o)=>{if(o===i)if(0<=" MCSQTLHVAZ".indexOf(n))if("H"===n)s.push(n),e.x=Number(t[o+1]),s.push(Number(t[o+1])),i=o+2;else if("V"===n)s.push(n),e.y=Number(t[o+1]),s.push(Number(t[o+1])),i=o+2;else if("A"===n){let r=0;for(s.push(n);++r%7!=1&&r%7!=2&&(r%7==6?e.x=Number(t[o+r]):r%7==0&&(e.y=Number(t[o+r]))),s.push(Number(t[o+r])),!isNaN(Number(t[o+r+1])););i=o+r+1}else if(0<=" SQ".indexOf(n)){let r=0;for(s.push(n);++r%4==1||r%4==2?s.push(Number(t[o+r])):r%4==3?(s.push(Number(t[o+r])),e.x=Number(t[o+r])):r%4==0&&(s.push(Number(t[o+r])),e.y=Number(t[o+r])),!isNaN(Number(t[o+r+1])););i=o+r+1}else if(0<=" MCTL".indexOf(n))if(0<=" ML".indexOf(n)){let r=0;for(s.push(n);++r%2==1?(s.push(Number(t[o+r])),e.x=Number(t[o+r])):(s.push(Number(t[o+r])),e.y=Number(t[o+r]),isNaN(Number(t[r+o+1]))||s.push("L")),!isNaN(Number(t[r+o+1])););i=o+r+1}else{let r=0;for(s.push(n);++r%6==5?e.x=Number(t[o+r]):r%6==0&&(e.y=Number(t[o+r])),s.push(Number(t[o+r])),!isNaN(Number(t[r+o+1])););i=o+r+1}else"Z"===n&&(s.push(n),i=o+1);else if(0<=" mcsqtlhvaz".indexOf(n))if("h"===n)s.push("H"),s.push(e.x+Number(t[o+1])),e.x=e.x+Number(t[o+1]),i=o+2;else if("v"===n)s.push("V"),s.push(e.y+Number(t[o+1])),e.y=e.y+Number(t[o+1]),i=o+2;else if("a"===n){let n=0;s.push("A");do{var r;++n%7==1||n%7==2?s.push(Number(t[o+n])):n%7==6?(r=Number(e.x)+Number(t[o+n]),s.push(r),e.x=r):n%7==0?(r=Number(e.y)+Number(t[o+n]),s.push(r),e.y=r):s.push(Number(t[o+n]))}while(!isNaN(Number(t[o+n+1])));i=o+n+1}else if(0<=" sq".indexOf(n)){let r=0;s.push(n.toUpperCase());do{var a;++r%4==1?s.push(Number(e.x)+Number(t[o+r])):r%4==2?s.push(Number(e.y)+Number(t[o+r])):r%4==3?(a=Number(e.x)+Number(t[o+r]),s.push(a),e.x=a):r%4==0&&(a=Number(e.y)+Number(t[o+r]),s.push(a),e.y=a)}while(!isNaN(Number(t[o+r+1])));i=o+r+1}else if(0<=" mctl".indexOf(n))if(0<=" ml".indexOf(n)){let r=0;s.push(n.toUpperCase());do{var l;++r%2==1?(l=Number(e.x)+Number(t[o+r]),s.push(l),e.x=l):r%2==0&&(l=Number(e.y)+Number(t[o+r]),s.push(l),e.y=l,isNaN(Number(t[r+o+1]))||s.push("L"))}while(!isNaN(Number(t[r+o+1])));i=o+r+1}else if("t"===n){let r=0;s.push(n.toUpperCase());do{var h;++r%2==1?(h=Number(e.x)+Number(t[o+r]),s.push(h),e.x=h):r%2==0&&(h=Number(e.y)+Number(t[o+r]),s.push(h),e.y=h)}while(!isNaN(Number(t[r+o+1])));i=o+r+1}else{let r=0;s.push(n.toUpperCase());do{var d;++r%6==1?s.push(Number(e.x)+Number(t[o+r])):r%6==2?s.push(Number(e.y)+Number(t[o+r])):r%6==3?s.push(Number(e.x)+Number(t[o+r])):r%6==4?s.push(Number(e.y)+Number(t[o+r])):r%6==5?(d=Number(e.x)+Number(t[o+r]),s.push(d),e.x=d):r%6==0&&(d=Number(e.y)+Number(t[o+r]),s.push(d),e.y=d)}while(!isNaN(Number(t[r+o+1])));i=o+r+1}else"z"===n&&(s.push(n.toUpperCase()),i=o+1)})),s}(t.match(/-?\d*\.\d+(e-?\d+)*|-?\d+|[a-zA-Z]/g)).join().replace(/,/g," ");l.path=d}catch(e){i=[{item:t}["item"]][0],a=`M${(h=i.pathViewBox.match(/\d+\.\d+|\d+/g)[2])/2},${i.pathViewBox.match(/\d+\.\d+|\d+/g)[3]/2}H${(2+Number(h))/2}Z`,l.path=a}o.push(l)})):(n=[{item:t}["item"]][0],e=n.pathViewBox.match(/\d+\.\d+|\d+/g)[2],i=(n=n.pathViewBox.match(/\d+\.\d+|\d+/g)[3])/5,(s=[]).push(`M${e/=4},${2*i}H`+3*e,`M${e},${n/2}H`+3*e,`M${e},${3*i}H`+3*e),s.forEach((t=>{t={path:t,matrix:[1,0,0,0,1,0,0,0,1],scaleX:1,scaleY:1,rotate:0},o.push(t)}))),o};function St({item:t,durArr:e,lenArr:i,handPaintedTimeline:s}){for(let n=0;n(t.sort(((t,e)=>Number(t[0])-Number(e[0]))),t.reduce(((t,e,i,s)=>{if(0===t.length)t.push(e);else{let i=!1;var n=Number(e[0]),o=Number(e[1]);for(let e=0,s=t.length;eh&&(r=a-h,a=h),n>t&&(o=o+n-t,n=t)):th&&(o=n-h,n=h),a>e)&&(r=r+a-e,a=e),s.push([n,o,r,a]);if(e<=t)for(;nt&&(o=n-t+o,n=t)):(o+=l,r+=l,o>e&&(o=e),r>t&&(r=t)),s.push([n,o,r,a]),o<=e-1;);else if(te&&(r=a-e+r,a=e)):(o+=l,r+=l,o>e&&(o=e),r>t&&(r=t)),s.push([n,o,r,a]),r<=t-1;);let d=[],c=(s.forEach(((t,e)=>{e%2==0?d.push(t):d.push([t[2],t[3],t[0],t[1]])})),"M0,0"),u=(d.forEach((t=>{c+=` L${t[0]},${t[1]} L${t[2]},`+t[3]})),[]),p=(s.forEach((t=>{u.push(Math.sqrt(Math.pow(t[0]-t[2],2)+Math.pow(t[1]-t[3],2))+l)})),0),g=(u.forEach((t=>{p+=t})),[]);return u.forEach((t=>{g.push(t/p)})),{scrawlPath:c,avgSegmentTime:g}}function Mt({width:t,height:e,segment:i}){var s=[];let n=0,o=0,r=0,a=0,l=(t+e)/i;var h=eh&&(r=a-h,a=h),n>t&&(o=o+n-t,n=t)):th&&(o=n-h,n=h),a>e)&&(r=r+a-e,a=e),s.push([n,o,r,a]);if(e<=t)for(;nt&&(o=n-t+o,n=t)):(o+=l,r+=l,o>e&&(o=e),r>t&&(r=t)),s.push([n,o,r,a]),o<=e-1;);else if(te&&(r=a-e+r,a=e)):(o+=l,r+=l,o>e&&(o=e),r>t&&(r=t)),s.push([n,o,r,a]),r<=t-1;);let d=[],c=(s.forEach(((t,e)=>{e%2==0?d.push(t):d.push([t[2],t[3],t[0],t[1]])})),"M0,0"),u=(d.forEach((t=>{c+=` L${t[0]},${t[1]} L${t[2]},`+t[3]})),[]),p=(s.forEach((t=>{u.push(Math.sqrt(Math.pow(t[0]-t[2],2)+Math.pow(t[1]-t[3],2))+l)})),0),g=(u.forEach((t=>{p+=t})),[]);return u.forEach((t=>{g.push(t/p)})),{scrawlPath:c,avgSegmentTime:g}}let At=t=>{var e=t.animations.middle;for(let s=e.length,n=s-1;0<=n;n--){var i=e[n];if("path"===i.type)return{left:(i=(i=i.props)[i.length-1].css).left,top:i.top,width:i.width,height:i.height,rotate:parseFloat(i.rotation)}}return{left:parseFloat(t.style.left),top:parseFloat(t.style.top),width:parseFloat(t.style.width),height:parseFloat(t.style.height),rotate:t.rotate}},Et={setInBasicAnime:function({item:t,inTimeline:e,target:i}){let s=t.animations.in,n=s.props.length,o=s.noFaded,r=s.isRemainOrigin;if(gt.checkTimePercent(s,"in"),1{void 0!==r.css.opacity||o||(r.css.opacity=+t),t+=r.timePercent,0===a?e.fromTo(i,s.duration*r.timePercent,r,s.props[a+1]):a!==n-1&&(o&&delete s.props[a+1].css.opacity,e.to(i,s.duration*r.timePercent,s.props[a+1]))}))}else o&&delete s.props[0].css.opacity,e.from(i,s.duration,s.props[0],"in");e.eventCallback("onComplete",(()=>{r||e.set(i,{transformOrigin:"center"})}),["{self}"])},setInTextAnime:function({item:t,inTimeline:e}){var i=t.animations.in,s=i.props.length,n=t.svgText.pathCount;let o=t.id;t=Array.from({length:n},((t,e)=>"#pathAnime"+o+e));var r=i.advanced.interval;let a=i.duration;0!==r&&(a/=(n+1/r-1)*r);var l;r*=a;void 0!==(n=mt(f.copy(i.props[0],!0),n)).cycle&&delete n.css,1{var e;clearTimeout(t.audioTimer),d&&(e=ot.state.isPlayingAnime[t.pageIndex],d.currentTime=r,e)&&(d.volume=o.volume,d.play())})),m.eventCallback("onUpdate",(e=>{e=e.progress(),e>x&&eI&&e{s||(d.pause(),clearTimeout(t.audioTimer))})),e.add(m,f)}},setInPathAnime:function({item:t,itemLayoutTarget:e,inTimeline:i,target:s}){let n=t.animations.in;var r=n.noFaded,a=("default"!==n.ease&&""!==n.ease||(n.ease="Power0.easeNone"),"default"!==n.easeFn&&""!==n.easeFn||(n.easeFn="Power0.easeNone"),()=>{let e=parseFloat(n.props[0].css.width),s=parseFloat(t.style.width),o=parseFloat(n.props[0].css.height),r=parseFloat(t.style.height);i.eventCallback("onUpdate",(i=>{var n,a=e+(s-e)*i.progress();t.pathWidth=a,i=o+(r-o)*i.progress(),t.pathHeight=i,a/=s,i/=r;"svg"===t.type?(n=g.getPathSvg({item:t,scaleX:a,scaleY:i,direction:"both"}),t.pathTransform=n.transform,t.pathViewBox=n.viewBox):"image"===t.type&&(n=wt({item:t,scaleY:i,scaleX:a}),t.pathBackgroundSize=n.backgroundSize,t.pathBackgroundPosition=n.backgroundPosition)}),["{self}"])});let l=({fromProps:t,toProps:e,groupInTimeline:i,groupItem:s})=>{let n=parseFloat(t.css.width),o=parseFloat(e.css.width),r=parseFloat(t.css.height),a=parseFloat(e.css.height);i.eventCallback("onUpdate",(t=>{var e,i=n+(o-n)*t.progress();s.pathWidth=i,t=r+(a-r)*t.progress(),s.pathHeight=t,i/=o,t/=a;"svg"===s.type?(e=g.getPathSvg({item:s,scaleX:i,scaleY:t,direction:"both"}),s.pathTransform=e.transform,s.pathViewBox=e.viewBox):"image"===s.type&&(e=wt({item:s,scaleY:t,scaleX:i}),s.pathBackgroundSize=e.backgroundSize,s.pathBackgroundPosition=e.backgroundPosition)}),["{self}"])};switch(void 0===n.pathType&&(n.pathType="straight"),n.pathType){case"straight":"group"===t.type&&t.items.forEach((t=>{var e,s,o,r,a=document.querySelector("#groupItem"+t.id);"path"===t.animations.in.type&&(e=new ht.ZP({}),"default"===t.animations.in.ease&&(t.animations.in.ease="Power0.easeNone"),"default"===t.animations.in.easeFn&&(t.animations.in.easeFn="Power0.easeNone"),s={css:{width:parseFloat(t.style.width),height:parseFloat(t.style.height),left:parseFloat(t.style.left),top:parseFloat(t.style.top)},ease:n.ease},t.animations.in.props[0].css.opacity=1,gt.setEase(t.animations.in),(o=f.copy(t.animations.in.props[0],!0)).css.x=o.css.left-parseFloat(t.style.left),o.css.y=o.css.top-parseFloat(t.style.top),delete o.css.left,delete o.css.top,delete o.css.rotation,(r=f.copy(s,!0)).css.x=r.css.left-parseFloat(t.style.left),r.css.y=r.css.top-parseFloat(t.style.top),delete r.css.left,delete r.css.top,e.fromTo(a,n.duration,o,r),a=t.animations.in.props[0],l({fromProps:a,toProps:s,groupInTimeline:e,groupItem:t}),i.add(e,"in"))})),o.default.set(n.props[0].css,"opacity",0),"default"!==n.ease&&""!==n.ease||(n.ease="Power0.easeNone"),"default"!==n.easeFn&&""!==n.easeFn||(n.easeFn="Power0.easeNone");var h={css:{rotation:n.props[0].css.rotation},ease:n.ease,immediateRender:!0},d=f.copy(n.props[0],!0),c=(r&&delete d.css.opacity,delete d.css.rotation,d.css.x=d.css.left-parseFloat(t.style.left),d.css.y=d.css.top-parseFloat(t.style.top),"SteppedEase"===n.ease?d.ease=new dt.NB(12):d.ease=n.ease,delete d.css.left,delete d.css.top,{css:{width:parseFloat(t.style.width),height:parseFloat(t.style.height),x:0,y:0,opacity:t.style.opacity},ease:n.ease});i.fromTo(s,n.duration,d,c,0),"group"===t.type&&(h.css.width=d.css.width,h.css.height=d.css.height),i.from(e,n.duration,h,0),a();break;case"circle":{"group"===t.type&&t.items.forEach((t=>{var e=document.querySelector("#groupItem"+t.id),s=new ht.ZP({}),o={css:{width:t.animations.in.props[0].css.width,height:t.animations.in.props[0].css.height,left:t.animations.in.props[0].css.left,top:t.animations.in.props[0].css.top},ease:n.ease},r=(t.animations.in.ease=n.ease,t.animations.in.easeFn=n.easeFn,{css:{width:parseFloat(t.style.width),height:parseFloat(t.style.height),left:parseFloat(t.style.left),top:parseFloat(t.style.top)},ease:n.ease});s.fromTo(e,n.duration,o,r),i.add(s,"in"),e=o;l({fromProps:e,toProps:r,groupInTimeline:s,groupItem:t})})),c=parseFloat(t.style.left);let g=parseFloat(t.style.width);d=parseFloat(t.style.top);let f=parseFloat(t.style.height),w=n.props[0].css;h=w.width/2;var u=w.height/2,p=g/2,m=f/2;p=(n.differData||(h=n.controlPoint.c1[0]-(h+w.left),u=n.controlPoint.c1[1]-(u+w.top),o.default.set(n,"differData",[h,u])),t.differData||(h=t.controlPoint.c1[0]-(c+p),u=t.controlPoint.c1[1]-(d+m),o.default.set(t,"differData",[h,u])),[{x:w.left-c,y:w.top-d,height:w.height,width:w.width,opacity:r?1:0},{x:-n.differData[0]+w.left-c,y:-n.differData[1]+w.top-d,height:w.height,width:w.width,opacity:r?1:0},{x:t.differData[0],y:t.differData[1],height:f,width:g,opacity:1},{x:c-c,y:d-d,height:f,width:g,opacity:1}]),m=[{rotation:w.rotation},{rotation:w.rotation},{rotation:t.rotate+"_short"},{rotation:t.rotate+"_short"}];"group"===t.type&&m.forEach(((t,e)=>{0!==e&&1!==e||(t.height=w.height,t.width=w.width),2!==e&&3!==e||(t.height=f,t.width=g)})),i.to(s,n.duration,{bezier:{type:"cubic",values:p},immediateRender:!0,ease:n.ease},0),i.to(e,n.duration,{bezier:{type:"cubic",values:m},immediateRender:!0,ease:n.ease},0),a()}}},setOutTextAnime:function({item:t,outTimeline:e}){var i=t.animations.out,s=t.svgText.pathCount;let n=t.id;t=Array.from({length:s},((t,e)=>"#pathAnime"+n+e));var o,r,a,l=i.props.length;i.advanced.interval;let h=i.duration;0!==i.advanced.interval&&(h/=(s+1/i.advanced.interval-1)*i.advanced.interval),o=h*i.advanced.interval,1{t.timePercent||1!==s.props.length||(t.timePercent=1),n&&delete t.css.opacity,delete t.immediateRender,e.to(i,s.duration*t.timePercent,t)})),e.eventCallback("onComplete",(()=>{e.set(i,{transformPerspective:"none"})}),["{self}"])},setSpriteAnime:function({item:t,gifItem:e,singleGifTimeline:i,gifIndex:s}){e.clipInfo&&e.clipInfo.hasClip||o.default.set(e,"clipInfo",{startTime:0,endTime:e.duration,clipDuration:e.duration,hasClip:!1,speedTime:e.duration,timeScaleNum:1});let n=e.clipInfo,r=n.startTime,a={grids:e.grids,url:e.image},l=(0===s&&o.default.set(t,"config",{time:n.startTime,duration:n.speedTime,grids:a.grids,url:a.url,imageUrl:a.url[0],characterId:e.characterId,expressionId:e.expressionId,gifIndex:0}),0);if(e.isLoop){var h=e.animations.duration;let t;t=n.hasClip?e.clipInfo.clipDuration:e.duration,l=h/t,l=Math.round(10*l)/10-1}else l=0;const d={t:0};i.to(d,e.animations.duration,{a:1}),0<=l&&((h=ft.Q3.to(d,e.clipInfo.clipDuration,{t:1,repeat:l})).eventCallback("onUpdate",(e=>{e=r+e.time(),parseInt(l)!==parseFloat(l)&&1===d.t||(t.config.time=e)}),["{self}"]),i.add(h,0)),i.eventCallback("onUpdate",(i=>{l<0&&(i=i.time()+r,t.config.time=i),t.config.duration=n.speedTime,t.config.grids=a.grids,t.config.url=a.url,t.config.imageUrl=a.url[0],t.config.characterId=e.characterId,t.config.expressionId=e.expressionId,t.config.gifIndex=s}),["{self}"])},setVideoAnime:function({item:t,videoTimeline:e}){let i=ot.state.noControl,s=t.videoInfo,n=s.startTime;var r=s.endTime-n,a=s.duration,l=Math.ceil(a/r);let h=document.querySelector("#video"+t.id);var d={},c=s.fadeIn,u=s.fadeOut;let p=s.volume;for(let v=0;v{var e;h&&ot.state.isPlayingAnime[t.pageIndex]&&(h.currentTime=n,clearTimeout(t.videoTimer),h.volume=s.volume,void 0!==(e=h.play()))&&e.then((()=>{o.default.set(t,"isNeedControls",!1)})).catch((()=>{o.default.set(t,"isNeedControls",!0)}))})),m.eventCallback("onUpdate",(e=>{e=e.progress(),e>x&&eI&&e{i||(clearTimeout(t.videoTimer),h.pause())})),e.add(m,f)}},setMiddleBasicAnime:function({perMiddleAnime:t,middleTimeline:e,target:i}){let s=t.isRemainOrigin,n=!1;switch(t.animeKey){case"flipXHalf":case"flipYHalf":case"rotateHalfInBottom":case"rotateHalfInLeft":case"rotateHalfInRight":case"rotateHalfInTop":n=!0}t.props.forEach((s=>{s.timePercent||1!==t.props.length||(s.timePercent=1),e.to(i,t.duration*s.timePercent,s)})),e.eventCallback("onComplete",(()=>{s||n||e.set(i,{transformOrigin:"center"})}),["{self}"])},setMiddleColorAnime:function({item:t,perMiddleAnime:e,middleTimeline:i}){let s=t.svgText.pathCount;e.props.forEach(((n,o)=>{var r="#pathAnime"+t.id+o;s-1>=o&&i.to(r,e.duration,n,0)}))},setMiddlePathAnime:function({item:t,itemLayoutTarget:e,perMiddleAnime:i,middleTimeline:s,target:n,lastPathData:r,middleIndex:a}){let l=({pathType:t,p0:e,p1:i,p2:s,p3:n})=>{let o=0;if("straight"===t){t=Math.abs(n[0]-e[0]);var r=Math.abs(n[1]-e[1]);o=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))}else{let t=[];var a,l;let r,h;for(let o=.01;o<=1;o+=.01)a=e[0]*Math.pow(1-o,3)+3*i[0]*o*Math.pow(1-o,2)+3*s[0]*Math.pow(o,2)*(1-o)+n[0]*Math.pow(o,3),l=e[1]*Math.pow(1-o,3)+3*i[1]*o*Math.pow(1-o,2)+3*s[1]*Math.pow(o,2)*(1-o)+n[1]*Math.pow(o,3),t.push([a,l]);t.forEach(((e,i)=>{i!==t.length-1&&(r=Math.abs(t[i+1][0]-e[0]),h=Math.abs(t[i+1][1]-e[1]),o+=Math.sqrt(Math.pow(r,2)+Math.pow(h,2)))}))}return o},h=(t,e,i,s)=>({x:t+s/2,y:e+i/2}),d=({pathType:e,copyMidProps:i,perMiddleAnimeProps:s,propsIndex:n,perMiddleAnime:o})=>{let r,l,d,c;if("straight"===e){if(0===a)r=0===n?[(u=h(parseFloat(t.style.left),parseFloat(t.style.top),parseFloat(t.style.height),parseFloat(t.style.width))).x,u.y]:(u=s[n-1].css,[(u=h(u.left,u.top,u.height,u.width)).x,u.y]);else{let e,i;for(let s=a-1;0<=s;s--)if("path"===t.animations.middle[s].type){e=s;break}r=0===n?[(i=e?(u=(u=t.animations.middle[e].props)[u.length-1].css,h(u.left,u.top,u.height,u.width)):h(parseFloat(t.style.left),parseFloat(t.style.top),parseFloat(t.style.height),parseFloat(t.style.width))).x,i.y]:(u=s[n-1].css,[(u=h(u.left,u.top,u.height,u.width)).x,u.y])}var u=h(i.css.left,i.css.top,i.css.height,i.css.width);return c=[u.x,u.y],{p0:r,p3:c}}if("circle"===e){if(0===a)c=0===n?(u=h(parseFloat(t.style.left),parseFloat(t.style.top),parseFloat(t.style.height),parseFloat(t.style.width)),e=h(i.css.left,i.css.top,i.css.height,i.css.width),r=[u.x,u.y],l=[-t.differData[0]+u.x,-t.differData[1]+u.y],d=[o.differData[0][0]+e.x,o.differData[0][1]+e.y],[e.x,e.y]):(u=s[n-1].css,e=h(u.left,u.top,u.height,u.width),u=h(i.css.left,i.css.top,i.css.height,i.css.width),r=[e.x,e.y],l=[-o.differData[n-1][0]+e.x,-o.differData[n-1][1]+e.y],d=[o.differData[n][0]+u.x,o.differData[n][1]+u.y],[u.x,u.y]);else{let g;var p;let m;for(let e=a-1;0<=e;e--)if("path"===t.animations.middle[e].type){g=e;break}l=g?(p=(u=(e=t.animations.middle[g]).props)[u.length-1],m=h(p.css.left,p.css.top,p.css.height,p.css.width),[-e.differData[u.length-1][0]+m.x,-e.differData[u.length-1][1]+m.y]):(m=h(parseFloat(t.style.left),parseFloat(t.style.top),parseFloat(t.style.height),parseFloat(t.style.width)),[-t.differData[0]+m.x,-t.differData[1]+m.y]),c=0===n?(p=h(i.css.left,i.css.top,i.css.height,i.css.width),r=[m.x,m.y],d=[o.differData[0][0]+p.x,o.differData[0][1]+p.y],[p.x,p.y]):(e=s[n-1].css,u=h(e.left,e.top,e.height,e.width),p=h(i.css.left,i.css.top,i.css.height,i.css.width),r=[u.x,u.y],l=[-o.differData[n-1][0]+u.x,-o.differData[n-1][1]+u.y],d=[o.differData[n][0]+p.x,o.differData[n][1]+p.y],[p.x,p.y])}return{p0:r,p1:l,p2:d,p3:c}}},c=(e,i,s,n)=>{s=gt.getPreAnimeStyle({item:t,isMiddleAnime:!0,middleIndex:a,propsIndex:s,perMiddleAnimeProps:n});let o=s.w,r=s.h,l=i.css.width,h=i.css.height;e.eventCallback("onUpdate",(e=>{var i,s=o+(l-o)*e.progress();t.pathWidth=s,e=r+(h-r)*e.progress(),t.pathHeight=e,s/=parseFloat(t.style.width),e/=parseFloat(t.style.height);"svg"===t.type?(i=g.getPathSvg({item:t,scaleX:s,scaleY:e,direction:"both"}),t.pathTransform=i.transform,t.pathViewBox=i.viewBox):"image"===t.type&&(i=wt({item:t,scaleY:e,scaleX:s}),t.pathBackgroundSize=i.backgroundSize,t.pathBackgroundPosition=i.backgroundPosition)}),["{self}"])},u=({groupItem:t,curMiddleAnime:e,groupMiddleTimeline:i,propsIndex:s,perMiddleAnimeProps:n})=>{n=gt.getPreAnimeStyle({item:t,isMiddleAnime:!0,middleIndex:a,propsIndex:s,perMiddleAnimeProps:n});let o=n.w,r=n.h,l=e.props[s].css.width,h=e.props[s].css.height;i.eventCallback("onUpdate",(e=>{var i,s=o+(l-o)*e.progress();t.pathWidth=s,e=r+(h-r)*e.progress(),t.pathHeight=e,s/=parseFloat(t.style.width),e/=parseFloat(t.style.height);"svg"===t.type?(i=g.getPathSvg({item:t,scaleX:s,scaleY:e,direction:"both"}),t.pathTransform=i.transform,t.pathViewBox=i.viewBox):"image"===t.type&&(i=wt({item:t,scaleY:e,scaleX:s}),t.pathBackgroundSize=i.backgroundSize,t.pathBackgroundPosition=i.backgroundPosition)}),["{self}"])};switch(void 0===i.pathType&&(i.pathType="straight"),i.pathType){case"straight":{let o=0,r=(i.props.forEach(((t,e)=>{t=d({pathType:"straight",copyMidProps:f.copy(t,!0),perMiddleAnimeProps:i.props,propsIndex:e,perMiddleAnime:i}),e=l({pathType:"straight",p0:t.p0,p3:t.p3}),o+=e})),"group"===t.type&&t.items.forEach(((t,e)=>{let n=t.animations.middle[a];if(n){n.repeat=i.repeat,n.isYoyo=i.isYoyo,n.repeatDelay=i.repeatDelay,n.ease=i.ease,n.easeFn=i.easeFn;let e=document.querySelector("#groupItem"+t.id),r=new ht.ZP({});n.props.forEach(((s,a)=>{var h=new ht.ZP({delay:0}),c=(gt.setEase(n),f.copy(n.props[a],!0)),p=(c.css.x=c.css.left-parseFloat(t.style.left),c.css.y=c.css.top-parseFloat(t.style.top),d({pathType:"straight",copyMidProps:f.copy(i.props[a],!0),perMiddleAnimeProps:i.props,propsIndex:a,perMiddleAnime:i}));p=l({pathType:"straight",p0:p.p0,p3:p.p3});delete c.css.left,delete c.css.top,delete c.css.rotation,h.to(e,i.duration*(p/o),c,0),r.add(h),u({groupItem:t,curMiddleAnime:n,groupMiddleTimeline:h,propsIndex:a,perMiddleAnimeProps:n.props})})),s.add(r,0)}})),"default"!==i.ease&&""!==i.ease||(i.ease="Power0.easeNone"),"default"!==i.easeFn&&""!==i.easeFn||(i.easeFn="Power0.easeNone"),new ht.ZP({}));i.props.forEach(((a,h)=>{var u=new ht.ZP({delay:0}),p={css:{rotation:a.css.rotation},ease:a.ease},g=f.copy(a,!0),m=(delete g.css.rotation,g.css.x=g.css.left-parseFloat(t.style.left),g.css.y=g.css.top-parseFloat(t.style.top),d({pathType:"straight",copyMidProps:f.copy(a,!0),perMiddleAnimeProps:i.props,propsIndex:h,perMiddleAnime:i}));m=l({pathType:"straight",p0:m.p0,p3:m.p3}),"SteppedEase"===i.ease&&(i.ease=new dt.NB(12)),delete g.css.left,delete g.css.top,"group"===t.type&&(p.css.width=a.css.width,p.css.height=a.css.height),m=i.duration*(m/o);0!==o&&(u.to(n,m,g,0),u.to(e,m,p,0)),"group"===t.type?(r.add(u),s.add(r,0)):s.add(u),c(u,a,h,i.props)}));break}case"circle":{let h=0,p=(i.props.forEach(((e,s)=>{var n,c=i.props[s].css,u=c.width/2,p=c.height/2,g=(e=>{let s,n,o,l;var h;return 0===a?gt.isEmpty(r)&&(l=0===e?(s=parseFloat(t.style.left),n=parseFloat(t.style.width),o=parseFloat(t.style.top),parseFloat(t.style.height)):(h=i.props[e-1],s=h.css.left,n=h.css.width,o=h.css.top,h.css.height)):l=0===e?gt.isEmpty(r)?(s=parseFloat(t.style.left),n=parseFloat(t.style.width),o=parseFloat(t.style.top),parseFloat(t.style.height)):(h=(h=r.props)[h.length-1],s=h.css.left,n=h.css.width,o=h.css.top,h.css.height):(h=i.props[e-1],s=h.css.left,n=h.css.width,o=h.css.top,h.css.height),{itemLeft:s,itemWidth:n,itemTop:o,itemHeight:l}})(s);void 0===t.differData&&(t.controlPoint?(n=t.controlPoint.c1[0]-(g.itemLeft+g.itemWidth/2),g=t.controlPoint.c1[1]-(g.itemTop+g.itemHeight/2),o.default.set(t,"differData",[n,g])):o.default.set(t,"differData",[0,0])),void 0===i.differData&&(n=i.controlPoint.c1[0]-(u+c.left),g=i.controlPoint.c1[1]-(p+c.top),o.default.set(i,"differData",[[n,g]])),1===i.props.length&&"number"==typeof i.differData[0]&&(u=f.copy(i.differData,!0),i.differData=[[u[0],u[1]]]),p=d({pathType:"circle",copyMidProps:f.copy(e,!0),perMiddleAnimeProps:i.props,propsIndex:s,perMiddleAnime:i}),c=l({pathType:"circle",p0:p.p0,p1:p.p1,p2:p.p2,p3:p.p3});h+=c})),"group"===t.type&&t.items.forEach((t=>{let e=t.animations.middle[a];if(e){e.repeat=i.repeat,e.isYoyo=i.isYoyo,e.repeatDelay=i.repeatDelay,e.ease=i.ease,e.easeFn=i.easeFn;let n=document.querySelector("#groupItem"+t.id),o=new ht.ZP({});e.props.forEach(((s,r)=>{var a=new ht.ZP({delay:0}),c=d({pathType:"circle",copyMidProps:f.copy(i.props[r],!0),perMiddleAnimeProps:i.props,propsIndex:r,perMiddleAnime:i}),p=(c=l({pathType:"circle",p0:c.p0,p1:c.p1,p2:c.p2,p3:c.p3}),f.copy(e.props[r],!0));delete p.css.rotation,a.to(n,i.duration*(c/h),p),o.add(a),u({groupItem:t,curMiddleAnime:e,groupMiddleTimeline:a,propsIndex:r,perMiddleAnimeProps:e.props})})),s.add(o,0)}})),new ht.ZP);i.props.forEach(((o,u)=>{var g=new ht.ZP({delay:0});let m,w,v,y,x,C,$,b=(0===a?gt.isEmpty(r)&&(C=0===u?(m=parseFloat(t.style.left),w=parseFloat(t.style.width),v=parseFloat(t.style.top),y=parseFloat(t.style.height),x=t,!0):(T=i.props[u-1],m=T.css.left,w=T.css.width,v=T.css.top,y=T.css.height,x=i,!1)):C=0===u?gt.isEmpty(r)?(m=parseFloat(t.style.left),w=parseFloat(t.style.width),v=parseFloat(t.style.top),y=parseFloat(t.style.height),x=t,!0):(T=(T=r.props)[T.length-1],m=T.css.left,w=T.css.width,v=T.css.top,y=T.css.height,x=i,!1):(T=i.props[u-1],m=T.css.left,w=T.css.width,v=T.css.top,y=T.css.height,x=i,!1),m),I=v,S=x.rotate+"_short",k=(C||(b=parseFloat(t.style.left),I=parseFloat(t.style.top)),i.props[u].css);1===i.props.length&&"number"==typeof i.differData[0]&&(T=f.copy(i.differData,!0),i.differData=[[T[0],T[1]]]),S=0===a?0===u?($=x.differData,x.rotate+"_short"):($=i.differData[u-1],i.props[u-1].css.rotation):0===u?gt.isEmpty(r)?($=x.differData,x.rotate+"_short"):(T=r.differData,P=r.props,$=T[T.length-1],P[P.length-1].css.rotation):($=i.differData[u-1],i.props[u-1].css.rotation);var T=[{x:m-b,y:v-I,height:y,width:w,opacity:1},{x:-$[0]+m-b,y:-$[1]+v-I,height:y,width:w,opacity:1},{x:i.differData[u][0]+k.left-b,y:i.differData[u][1]+k.top-I,height:k.height,width:k.width,opacity:1},{x:k.left-b,y:k.top-I,height:k.height,width:k.width,opacity:1}],P=[{rotation:S},{rotation:S},{rotation:k.rotation},{rotation:k.rotation}],L=("group"===t.type&&P.forEach(((t,e)=>{0!==e&&1!==e||(t.height=y,t.width=w),2!==e&&3!==e||(t.height=k.height,t.width=k.width)})),d({pathType:"circle",copyMidProps:f.copy(o,!0),perMiddleAnimeProps:i.props,propsIndex:u,perMiddleAnime:i}));L=l({pathType:"circle",p0:L.p0,p1:L.p1,p2:L.p2,p3:L.p3}),"default"!==i.ease&&""!==i.ease||(i.ease="Power0.easeNone"),"default"!==i.easeFn&&""!==i.easeFn||(i.easeFn="Power0.easeNone"),L=i.duration*(L/h);0!==h&&(g.to(n,L,{bezier:{type:"cubic",values:T},ease:i.ease},0),g.to(e,L,{bezier:{type:"cubic",values:P},ease:i.ease},0)),"group"===t.type?(p.add(g),s.add(p,0)):s.add(g),c(g,o,u,i.props)}));break}}},setForegroundAnime:function({foreground:t,fgTimeline:e,target:i,foregroundIndex:s}){var n=(t=t.animations).delay,o=t.duration,r=t.inAnime,a=r.duration,l=(t=t.outAnime).duration;n=new ht.ZP({delay:n});r.props[0].immediateRender=!0,n.from(i,a,r.props[0]),e.add(n,"foregroundIn"+s).addLabel("foregroundInEnd"+s),(r=new ht.ZP({delay:0})).from(i,o-a-l,{ease:"Power0.easeNone",css:{}}),e.add(r),n=new ht.ZP({delay:0}),t.props[0].immediateRender=!1,n.to(i,l,t.props[0]),e.add(n)},setSubtitleAnime:function({subtitle:t,subTimeline:e,target:i,subtitleIndex:s}){var n=(t=t.animations).delay,o=t.duration,r=t.inAnime,a=r.duration,l=(t=t.outAnime).duration;n=new ht.ZP({delay:n});r.props[0].immediateRender=!0,n.from(i,a,r.props[0]),e.add(n,"subtitleIn"+s).addLabel("subtitleInEnd"+s),(r=new ht.ZP({delay:0})).from(i,o-a-l,{ease:"Power0.easeNone",css:{}}),e.add(r),n=new ht.ZP({delay:0}),t.props[0].immediateRender=!1,n.to(i,l,t.props[0]),e.add(n)},setBackgroundAnime:function({background:t,bgTimeline:e,target:i,backgroundIndex:s}){var n=(t=t.animations).delay,o=t.duration,r=t.inAnime,a=r.duration,l=(t=t.outAnime).duration;n=new ht.ZP({delay:n});r.props[0].immediateRender=!0,n.from(i,a,r.props[0]),e.add(n,"backgroundIn"+s).addLabel("backgroundInEnd"+s),(r=new ht.ZP({delay:0})).from(i,o-a-l,{ease:"Power0.easeNone",css:{}}),e.add(r),n=new ht.ZP({delay:0}),t.props[0].immediateRender=!1,n.to(i,l,t.props[0]),e.add(n)},setMiddleTextAnime:function({item:t,perMiddleAnime:e,middleTimeline:i}){var s=t.svgText.pathCount;let n=t.id,o=(t=Array.from({length:s},((t,e)=>(e="#pathAnime"+n+e,gt.checkTarget(e),e))),mt(f.copy(e.props[0],!0),s));if(o.cycle){var r=e.advanced.interval;let n=e.duration,a=(0!==r&&(n/=(s+1/r-1)*r),r*=n,{transformOrigin:o.transformOrigin||"center",bezier:function(){return o.cycle}});void 0!==o.cycle?delete o.css:a=o,a.ease=gt.setEase(e,!0)[0].ease,i.staggerTo(t,n,a,r,"middle")}else{let n=new ht.ZP({});r=e.advanced.interval;let o=e.duration,a=0===r?o:o/((s+1/r-1)*r),l=a*r;t.forEach(((t,i)=>{let s=new ht.ZP({});e.props.forEach((i=>{var n=1===e.props.length?a:a*i.timePercent;i.css.transformOrigin=i.css.transformOrigin||"center",s.to(t,n,i)})),i*=l,n.add(s,i),n.totalDuration(o)})),i.add(n)}},setMiddleTextScrollAnime:function({item:t,perMiddleAnime:e,middleTimeline:i}){kt.Z;const s=new ht.ZP({});let n=null;if(t.isHideScrollBar&&(n=document.querySelector("#ItemLayout"+t.id)),t.isHideScrollBar||(n=document.querySelector(`#ItemLayout${t.id} [data-overlayscrollbars-viewport]`)),t=e.duration,n){const e=n.scrollHeight,o=n.offsetHeight;s.addCallback((()=>{0{s.set(n,{scrollTop:0})})),s.eventCallback("onComplete",(()=>{s.set(n,{scrollTop:e-o})})),s.to(n,t,{scrollTo:e-o,ease:Tt.qD.easeNone}),i.add(s)}},setOutPathAnime:function({item:t,itemLayoutTarget:e,outTimeline:i,target:s,lastPathData:n}){let r=t.animations.out;var a=r.noFaded,l=("default"!==r.ease&&""!==r.ease||(r.ease="Power0.easeNone"),"default"!==r.easeFn&&""!==r.easeFn||(r.easeFn="Power0.easeNone"),()=>{var e=gt.getPreAnimeStyle({item:t,isMiddleAnime:!1});let s=e.w,n=e.h,o=r.props[0].css.width,a=r.props[0].css.height;i.eventCallback("onUpdate",(e=>{var i,r=s+(o-s)*e.progress();t.pathWidth=r,e=n+(a-n)*e.progress(),t.pathHeight=e,r/=parseFloat(t.style.width),e/=parseFloat(t.style.height);"svg"===t.type?(i=g.getPathSvg({item:t,scaleX:r,scaleY:e,direction:"both"}),t.pathTransform=i.transform,t.pathViewBox=i.viewBox):"image"===t.type&&(i=wt({item:t,scaleY:e,scaleX:r}),t.pathBackgroundSize=i.backgroundSize,t.pathBackgroundPosition=i.backgroundPosition)}),["{self}"])});let h=({groupItem:t,groupOutTimeline:e,pathType:i,newGroupProps:s})=>{var n=gt.getPreAnimeStyle({item:t,isMiddleAnime:!1});let o,r,a=n.w,l=n.h;"straight"===i?(o=t.animations.out.props[0].css.width,r=t.animations.out.props[0].css.height):"circle"===i&&(o=s.css.width,r=s.css.height),e.eventCallback("onUpdate",(e=>{var i,s=a+(o-a)*e.progress();t.pathWidth=s,e=l+(r-l)*e.progress(),t.pathHeight=e,s/=parseFloat(t.style.width),e/=parseFloat(t.style.height);"svg"===t.type?(i=g.getPathSvg({item:t,scaleX:s,scaleY:e,direction:"both"}),t.pathTransform=i.transform,t.pathViewBox=i.viewBox):"image"===t.type&&(i=wt({item:t,scaleY:e,scaleX:s}),t.pathBackgroundSize=i.backgroundSize,t.pathBackgroundPosition=i.backgroundPosition)}),["{self}"])};switch(void 0===r.pathType&&(r.pathType="straight"),r.pathType){case"straight":"group"===t.type&&t.items.forEach(((t,e)=>{var s,n,o;"path"===t.animations.out.type&&(s=new ht.ZP({}),t.animations.out.ease=r.ease,t.animations.out.easeFn=r.easeFn,n=document.querySelector("#groupItem"+t.id),t.animations.out.props[0].ease=r.ease,gt.setEase(t.animations.out),(o=f.copy(t.animations.out.props[0],!0)).css.x=o.css.left-parseFloat(t.style.left),o.css.y=o.css.top-parseFloat(t.style.top),delete o.css.left,delete o.css.top,delete o.css.rotation,s.to(n,r.duration,o),i.add(s,0),h({groupItem:t,groupOutTimeline:s,pathType:"straight"}))})),r.props[0].css.opacity=0,"default"!==r.ease&&""!==r.ease||(r.ease="Power0.easeNone"),"default"!==r.easeFn&&""!==r.easeFn||(r.easeFn="Power0.easeNone");var d={css:{rotation:r.props[0].css.rotation},ease:r.ease},c=f.copy(r.props[0],!0);delete c.css.rotation,c.css.x=c.css.left-parseFloat(t.style.left),c.css.y=c.css.top-parseFloat(t.style.top),"SteppedEase"===r.ease?c.ease=new dt.NB(12):c.ease=r.ease,delete c.css.left,delete c.css.top,a&&delete c.css.opacity,i.to(s,r.duration,c,0),"group"===t.type&&(d.css.width=r.props[0].css.width,d.css.height=r.props[0].css.height),i.to(e,r.duration,d,0),l();break;case"circle":{let g,m,w,v,y,x;"group"===t.type&&t.items.forEach(((t,e)=>{var s=new ht.ZP({}),n={css:{width:t.animations.out.props[0].css.width,height:t.animations.out.props[0].css.height,left:t.animations.out.props[0].css.left,top:t.animations.out.props[0].css.top},ease:r.ease},o=(t.animations.out.ease=r.ease,t.animations.out.easeFn=r.easeFn,document.querySelector("#groupItem"+t.id));s.to(o,r.duration,n),i.add(s,0),h({groupItem:t,groupOutTimeline:s,pathType:"circle",newGroupProps:n})})),x=gt.isEmpty(n)?(g=parseFloat(t.style.left),m=parseFloat(t.style.width),w=parseFloat(t.style.top),v=parseFloat(t.style.height),y=t,!0):(c=f.copy(n.props[n.props.length-1],!0),g=c.css.left,m=c.css.width,w=c.css.top,v=c.css.height,c.differData=n.differData[n.props.length-1],y=c,!1);let C=g,$=w,b=y.rotate+"_short",I=(x||(C=parseFloat(t.style.left),$=parseFloat(t.style.top),b=y.css.rotation),r.props[0].css);d=I.width/2,c=I.height/2;var u=m/2,p=v/2;u=(r.differData||(d=r.controlPoint.c1[0]-(d+I.left),c=r.controlPoint.c1[1]-(c+I.top),o.default.set(r,"differData",[d,c])),t.differData||(d=t.controlPoint.c1[0]-(g+u),c=t.controlPoint.c1[1]-(w+p),o.default.set(t,"differData",[d,c])),[{x:g-C,y:w-$,height:v,width:m,opacity:1},{x:-y.differData[0]+g-C,y:-y.differData[1]+w-$,height:v,width:m,opacity:1},{x:r.differData[0]+I.left-C,y:r.differData[1]+I.top-$,height:I.height,width:I.width,opacity:a?1:0},{x:I.left-C,y:I.top-$,height:I.height,width:I.width,opacity:a?1:0}]),p=[{rotation:b},{rotation:b},{rotation:I.rotation},{rotation:I.rotation}];"group"===t.type&&p.forEach(((t,e)=>{0!==e&&1!==e||(t.height=v,t.width=m),2!==e&&3!==e||(t.height=I.height,t.width=I.width)})),i.to(s,r.duration,{bezier:{type:"cubic",values:u},ease:r.ease},0),i.to(e,r.duration,{bezier:{type:"cubic",values:p},ease:r.ease},0),l();break}}},setInMaskAnime:function({item:t,inTimeline:e,target:i,inMaskTimeline:s,setAnimeFromTrigger:n}){let o=t.animations.in,r=o.props.length,a=o.props[0],l=(t.maskConfig.in.maskType=a.maskType,o.noFaded?s.fromTo(i,o.duration,{opacity:1},{opacity:1}):s.fromTo(i,o.duration,{opacity:0},{opacity:1}),t.pathWidth{e=e.time()/o.duration;let r="",h="no-repeat",d="center";"svg"===a.maskType?r=i*e*l+"px":(s=`${a.gradientType}(${a.direction}, #000 ${100*e}%, transparent ${100*e}%)`,r=`${a.maskSizeX*l}px ${a.maskSizeY*l}px`,h=a.repeat,d=a.position,n||(t.maskConfig.in.maskImage=s)),t.maskConfig.in.maskSize=r,t.maskConfig.in.repeat=h,t.maskConfig.in.position=d,n&&(e=document.querySelector("#item"+t.id),"svg"===a.maskType?e.style.webkitMaskImage=`url( ${s})`:e.style.webkitMaskImage=s,e.style.webkitMaskSize=r,e.style.webkitMaskPosition=d,e.style.webkitMaskRepeat=h)}),["{self}"]),n&&e.eventCallback("onComplete",(e=>{var i=document.querySelector("#item"+t.id);i.style.webkitMaskImage="",i.style.webkitMaskSize="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}),["{self}"])}else"clipPath"===a.maskType&&o.props.forEach(((t,s)=>{0===s?e.fromTo(i+">div",o.duration*t.timePercent,t.css,o.props[s+1].css):s!==r-1&&e.to(i+">div",o.duration*t.timePercent,o.props[s+1])}))},setOutMaskAnime:function({item:t,outTimeline:e,target:i,outMaskTimeline:s,setAnimeFromTrigger:n}){let o=t.animations.out,r=o.props.length,a=o.props[0],l=(t.maskConfig.out.maskType=a.maskType,o.noFaded?s.fromTo(i,o.duration,{opacity:1},{opacity:1}):s.fromTo(i,o.duration,{opacity:1},{opacity:0}),t.pathWidth{e=1-e.time()/o.duration;let s,r,h,d;"svg"===a.maskType?(s=t.animationFiles.maskFiles.out.url,r=i*e*l+"px",h="no-repeat",d="center"):(s=`${a.gradientType}(${a.direction}, #000 ${100*e}%, transparent ${100*e}%)`,r=`${a.maskSizeX*l}px ${a.maskSizeY*l}px`,h=a.repeat,d=a.position,t.maskConfig.out.maskImage=s),t.maskConfig.out.maskSize=r,t.maskConfig.out.repeat=h,t.maskConfig.out.position=d,n&&(e=document.querySelector("#item"+t.id),"svg"===a.maskType?e.style.webkitMaskImage=`url(${s})`:e.style.webkitMaskImage=s,e.style.webkitMaskSize=r,e.style.webkitMaskPosition=d,e.style.webkitMaskRepeat=h)}),["{self}"]),n&&e.eventCallback("onComplete",(e=>{var i=document.querySelector("#item"+t.id);i.style.webkitMaskImage="",i.style.webkitMaskSize="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}),["{self}"])}else"clipPath"===a.maskType&&o.props.forEach(((t,s)=>{0===s?e.fromTo(i+">div",o.duration*t.timePercent,t.css,o.props[s+1].css):s!==r-1&&e.to(i+">div",o.duration*t.timePercent,o.props[s+1])}))},setHandPaintedAnime:function({item:t,inTimeline:e,target:i,handPaintedTimeline:s}){var n=t.animations.in.duration;let r=.1*n,a=.8*n;void 0!==t.paintSvgCode&&""!==t.paintSvgCode?o.default.nextTick((()=>{var i=t.paintPathLengthList,n=Ct(i);n=$t({item:t,arr:i,totalLen:n}),s.fromTo("#penCon"+t.id,r,{y:"500%"},{y:"0%"}),St({item:t,durArr:n,lenArr:i,handPaintedTimeline:s}),n="#paintedImg"+t.id;s.fromTo(n,a,{},{ease:"Power0.easeNone"},r),s.to(n,r,{}),e.add(s,0)})):(l=It({item:t}),l=(({item:t,allPathLists:e})=>{let i=document.createElementNS("http://www.w3.org/2000/svg","g"),s=[];return e.forEach(((e,n)=>{var o=document.createElementNS("http://www.w3.org/2000/svg","path"),r=(o.style.fill="none",o.style.strokeWidth="1px",o.style.stroke="black",e.matrix);r=`matrix(${r[0]}, ${r[3]},${r[1]},${r[4]},${r[2]},${r[5]})`,o.setAttribute("transform",r),o.setAttribute("d",e.path),o.setAttribute("id",t.type+t.id+n),i.appendChild(o),r=o.getTotalLength();o.style.strokeDasharray=Math.ceil(r),o.style.strokeDashoffset=Math.ceil(r),s.push(Math.ceil(r))})),{allPathArr:s,paintSvgCode:i.innerHTML}})({item:t,allPathLists:l}),t.paintSvgCode=l.paintSvgCode,t.paintPathLengthList=l.allPathArr,o.default.nextTick((()=>{var i=t.paintPathLengthList,n=Ct(i);n=$t({item:t,arr:i,totalLen:n}),s.fromTo("#penCon"+t.id,r,{y:"500%"},{y:"0%"}),St({item:t,durArr:n,lenArr:i,handPaintedTimeline:s}),n="#paintedImg"+t.id;s.fromTo(n,a,{},{},r),s.to(n,r,{}),e.add(s,0)})));var l=new ht.ZP({paused:!1});l.to(i,n,{}),e.add(l,0)},setScrawlAnime:function({item:t,inTimeline:e,target:i,scrawlTimeline:s,setAnimeFromTrigger:n,isDefaultAmine:r,pageIndex:a}){a=ot.state.pages[a].scale;let l=parseFloat(t.style.width)*a,h=parseFloat(t.style.height)*a,d=t.animations.in,c=d.duration,u="#scrawlImg"+t.id;n&&!r&&(u="#scrawlImg-action"+t.id),o.default.nextTick((()=>{var i=Lt({width:Math.ceil(l),height:Math.ceil(h),segment:20}).avgSegmentTime;let o=0,a=[],p=void i.forEach((t=>{o+=t,a.push(o)}));s.eventCallback("onUpdate",(e=>{if(e=e.time()/d.duration,p=function({timePercent:t,segmentArr:e}){let i=e.length,s="";return e.forEach(((e,n)=>{e<=t&&(s=`linear-gradient(135deg, #000 ${(n+1)/i*100}%, transparent ${(n+1)/i*100}%)`)})),s=""===s?"linear-gradient(135deg, #000 0%, transparent 0%)":s}({timePercent:e,segmentArr:a}),t.scrawlConfig.in.maskImage=p,n){t.isRunAnime=!0,e=document.querySelector("#item"+t.id);let i=document.querySelector("#scrawlCon-action"+t.id);(i=r?document.querySelector("#scrawlCon"+t.id):i).style.opacity=1,e.style.webkitMaskImage=p,e.style.webkitMaskPosition="center",e.style.webkitMaskRepeat="no-repeat"}}),["{self}"]),s.eventCallback("onComplete",(e=>{if(n){t.isRunAnime=!1,t.scrawlConfig.in.maskImage="";var i=document.querySelector("#item"+t.id);let e=document.querySelector("#scrawlCon-action"+t.id);(e=r?document.querySelector("#scrawlCon"+t.id):e).style.opacity=0,i.style.webkitMaskImage="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}}),["{self}"]),s.fromTo(u,c,{offsetDistance:"0%"},{offsetDistance:"100%",ease:"Power0.easeNone"},0),e.add(s,0)})),(a=new ht.ZP({paused:!1})).to(i,c,{}),e.add(a,0)},setEraseAnime:function({item:t,outTimeline:e,target:i,outEraseTimeline:s,setAnimeFromTrigger:n,isDefaultAmine:r,pageIndex:a}){a=ot.state.pages[a].scale;var l=At(t);let h=l.width*a,d=l.height*a,c=t.animations.out,u=c.duration,p="#eraseImg"+t.id;n&&!r&&(p="#eraseImg-action"+t.id),o.default.nextTick((()=>{var i=Mt({width:Math.ceil(h),height:Math.ceil(d),segment:15}).avgSegmentTime;let o=0,a=[];i.forEach((t=>{o+=t,a.push(o)})),t.outEraseConfig.out.maskImage="",s.eventCallback("onUpdate",(e=>{if(e=function({timePercent:t,segmentArr:e}){let i,s=e.length;return e.forEach(((e,n)=>{e<=t&&(i=`linear-gradient(135deg, transparent ${(n+1)/s*100}%, #000 ${(n+1)/s*100}%)`)})),i}({timePercent:e.time()/c.duration,segmentArr:a}),t.outEraseConfig.out.maskImage=e,n){t.isRunAnime=!0;var i=document.querySelector("#item"+t.id);let s=document.querySelector("#eraseCon-action"+t.id);(s=r?document.querySelector("#eraseCon"+t.id):s).style.opacity=1,i.style.webkitMaskImage=e,i.style.webkitMaskPosition="center",i.style.webkitMaskRepeat="no-repeat"}}),["{self}"]),s.eventCallback("onComplete",(e=>{if(n){t.isRunAnime=!1,t.scrawlConfig.in.maskImage="";var i=document.querySelector("#item"+t.id);let e=document.querySelector("#eraseCon-action"+t.id);(e=r?document.querySelector("#eraseCon"+t.id):e).style.opacity=0,i.style.webkitMaskImage="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}}),["{self}"]),s.fromTo(p,u,{offsetDistance:"0%"},{offsetDistance:"100%",ease:"Power0.easeNone"},0),e.add(s,0)})),(l=new ht.ZP({paused:!1})).to(i,u,{}),e.add(l,0)},setBGMAnime:({bgmMainTimeline:t,BGMInfo:e,pageTotalTime:i})=>{let s=(()=>{let t=[];return ot.state.pages.forEach(((e,i)=>{let s=f.getPageTime(i-1);e.items.forEach((e=>{var i,n,o;"music"===e.type&&e.isAdjustable&&(i=(o=e.animations.in).duration,n=(o.delay+s).toFixed(4),o=(o.delay+s+i).toFixed(4),t.push([n,o])),"video"===e.type&&e.isAdjustable&&(n=(i=e.videoInfo).duration,o=(i.delay+s).toFixed(4),e=(i.delay+s+n).toFixed(4),t.push([o,e]))}))})),t=Pt(t)})(),n={ease:"Power0.easeNone"},o=i;e.forEach(((e,i)=>{var r=e.delayTime;if(ro?o-r:a;var h=Math.ceil(u/a);for(let t=1;t<=h;t++){let i=new ht.ZP({paused:!1,delay:0});var d=(t-1)*a;d=t*a<=u?a:u-d;i.to(c,d,n),l.add(i),i.eventCallback("onStart",(()=>{clearTimeout(e.audioTimer);var t=i.time();ot.state.isPlayingAnime&&(c.currentTime=e.startTime+t,c.volume=e.volume,c.play())})),i.eventCallback("onUpdate",(t=>{t=((t,e)=>{for(let s=0,n=e.length;s=Number(i[0])&&t<=Number(i[1]))return!0}return!1})(t.time(),s),c.volume=t?.15:e.volume}),["{self}"]),i.eventCallback("onComplete",(()=>{c.pause()}))}t.add(l,0)}}))},setInPluginMusicAnime:function({item:t,target:e,duration:i,pluginMusicTimeline:s}){s.to(e,i,{}),s.eventCallback("onStart",(()=>{clearTimeout(t.audioTimer),e&&ot.state.isPlayingAnime[t.pageIndex]&&"none"!==t.moviePlayTriggerEvt&&e.play()}))},setInChartAnime:function({item:t,inTimeline:e,target:i}){let s=t.animations.in,n=s.isRemainOrigin;gt.checkTimePercent(s,"in"),e.from(i,s.duration,s.props[0],"in"),e.eventCallback("onUpdate",(t=>{s.props[0].css.progress=t.progress()}),["{self}"]),e.eventCallback("onComplete",(()=>{n||e.set(i,{transformOrigin:"center"})}),["{self}"])}};function Wt(t){t.pathWidth=parseFloat(t.style.width),t.pathHeight=parseFloat(t.style.height),"svg"===t.type?(t.pathViewBox=t.svg.svgViewBox,t.pathTransform=t.gNode.transform):"image"===t.type&&(t.pathBackgroundSize=t.style.backgroundSize,t.pathBackgroundPosition=t.style.backgroundPosition)}function _t(t){var e;return!("image"!==t.type||!t.isSprite)||"video"===t.type||"music"===t.type||0<(t=t.animations).middle.length||(e=t.in,t=t.out,"alwaysIn"!==e.animeKey)||"alwaysIn"!==t.animeKey}function Ft({item:t,realItem:e,isChangeTargetToRender:i=!1,setAnimeFromTrigger:s=!1,curTimeScale:n=1}){let r="#anime"+t.id,a="#ItemLayout"+t.id;s||_t(t)||(r="#fakeDom",a="#fakeDom1");var l=t.isDefault;s?(e.isPlayingActAnime=s,e.actAnimeTime=0,e.existStartTime=t.animations.in.delay,l&&(t=e)):(t.isPlayingActAnime=!1,t.actAnimeTime=-1),d=t,"group"===d.type?(Wt(d),d.items.forEach((t=>{Wt(t)}))):Wt(d);let h=new ht.ZP({});if("component"===t.type)return{itemTimeline:null};gt.checkTarget(r);var d=s?e:t,c=(h.set(r,{width:parseFloat(d.style.width),height:parseFloat(d.style.height),left:parseFloat(d.style.left),top:parseFloat(d.style.top),transformPerspective:600}),void 0===d.rotateX?0:d.rotateX),u=void 0===d.rotateY?0:d.rotateY;h.set(a,{rotation:d.rotate+"_short",rotationY:u,rotationX:c}),d=t.animations.in;if(!(s&&d.isAlways||gt.isEmpty(d))){gt.setEase(d),void 0===d.type&&(d.type="basic"),d.isHoverBorder=!1,d.props[0].immediateRender=!0;var p=new ht.ZP({delay:s?0:d.delay});switch(d.type){case"basic":Et.setInBasicAnime({item:t,inTimeline:p,target:r});break;case"text":Et.setInTextAnime({item:t,inTimeline:p,target:r,isChangeTargetToRender:i});break;case"painted":var g=new ht.ZP({delay:0});Et.setHandPaintedAnime({item:t,inTimeline:p,target:r,handPaintedTimeline:g});break;case"scrawl":g=new ht.ZP({delay:0}),Et.setScrawlAnime({item:t,inTimeline:p,target:r,scrawlTimeline:g,setAnimeFromTrigger:s,isDefaultAmine:l});break;case"path":Et.setInPathAnime({item:t,itemLayoutTarget:a,inTimeline:p,target:r,isChangeTargetToRender:i});break;case"music":Et.setInMusicAnime({item:t,inTimeline:p,target:r,isChangeTargetToRender:i,curTimeScale:n});break;case"mask":g=new ht.ZP({delay:0}),Et.setInMaskAnime({item:t,realItem:e,inTimeline:p,target:r,inMaskTimeline:g,setAnimeFromTrigger:s,isDefaultAmine:l}),p.add(g,0);break;case"chart":Et.setInChartAnime({item:t,inTimeline:p,target:r})}(s?(e.existStartTime=d.delay,h.add(p,d.delay).addLabel("in",d.delay)):(t.existStartTime=d.delay,h.add(p,"in"))).addLabel("inEnd")}d.isAlways&&(s?e.existStartTime=-1:t.existStartTime=-1),u=t.animations.middle,c=t;let m=c.animations.middle.findIndex((t=>void 0!==t.repeat&&-1===t.repeat)),f={};gt.isEmpty(u)||u.forEach(((n,l)=>{if(n.isHoverBorder=!1,!(-1!==m&&m{})),y.add(x,0)}s?(c=y.totalDuration(),h.add(y,"+="+d.delay).addLabel("out","-="+c).addLabel("outEnd"),-1===m?"visibleOut"===d.animeKey?e.existEndTime=h.getLabelTime("out"):e.existEndTime=h.getLabelTime("outEnd"):e.existEndTime=-1):(h.add(y,"out").addLabel("outEnd"),t.existEndTime=-1===m?h.getLabelTime("outEnd"):-1)}d.isAlways&&(s?e.existEndTime=-1:t.existEndTime=-1);let C=null;return t.isSprite&&"image"===t.type&&(C=new ht.ZP({}),t.gifs.forEach(((e,i)=>{var s=new ht.ZP({delay:e.animations.delay});Et.setSpriteAnime({item:t,gifItem:e,singleGifTimeline:s,gifIndex:i}),C.add(s,"gifStart"+i).addLabel("gifEnd"+i)})),h.add(C,0)),"video"===t.type&&(u=new ht.ZP({delay:t.videoInfo.delay}),Et.setVideoAnime({item:t,isChangeTargetToRender:i,target:r,videoTimeline:u,curTimeScale:n}),h.add(u,0)),s&&(w=h,v=e,w.eventCallback("onUpdate",(()=>{v.actAnimeTime=w.time()}))),s||_t(t)?{itemTimeline:h,gifTimeline:C}:{itemTimeline:null,gifTimeline:null}}function Ot(t){t&&(t.getChildren(!0,!1,!0).forEach((t=>{t.clear(),t.kill(),Ot(t)})),t.clear(),t.kill())}var Bt=i(8598),Rt=(H=(0,N.Z)({name:"commentPreview",props:["commentOpts","item"],data(){return{position:"Top Right",isShowComment:!1,isShowLineSvg:!1,commentMaxWidth:0,horizontalDistance:15,transformX:0,transformY:0,defaultContent:"Enter Your Comment Content!",commentPosChangeCount:0,startPoint:{x:0,y:0},transitionPoint:{x:0,y:0},endPoint:{x:0,y:0},winPositionMap:{topRight:"Top Right",topLeft:"Top Left",bottomLeft:"Bottom Left",bottomRight:"Bottom Right",top:"Top",left:"Left",bottom:"Bottom",right:"Right",center:"Center"}}},computed:{isH5Pro:function(){return this.$store.getters.isH5Pro},isFlipPro:function(){return this.$store.getters.isFlipPro},isYZPro:function(){return this.$store.getters.isYZPro},pageStyle:function(){var{pageInnerWidth:t,pageInnerHeight:e,pageInnerLeft:i,pageInnerTop:s}=this.$store.getters.realPageWH;return{pageInnerWidth:t,pageInnerHeight:e,pageInnerLeft:i,pageInnerTop:s}},pageConfig:function(){return this.$store.state.pageConfig},canvas:function(){return this.$store.state.canvas},commentStyle:function(){var t={maxWidth:this.commentMaxWidth+"px",background:this.commentOpts.contentProps.bgColor,textAlign:this.commentOpts.contentProps.textAlign,fontSize:this.commentOpts.contentProps.fontSize+"px",color:this.commentOpts.contentProps.fontColor,fontFamily:this.commentOpts.contentProps.fontFamily,lineHeight:this.commentOpts.contentProps.lineHeight,letterSpacing:this.commentOpts.contentProps.letterSpacing+"px"};return~this.commentOpts.contentProps.elements.indexOf("bold")&&(t.fontWeight="bold"),~this.commentOpts.contentProps.elements.indexOf("italic")&&(t.fontStyle="italic"),~this.commentOpts.contentProps.elements.indexOf("underline")&&(t.textDecoration="underline"),t},contentBoxStyle:function(){var t={width:this.commentMaxWidth+"px"},e="calc(100% + 15px)",i=`calc(100% + ${this.horizontalDistance}px)`;switch(this.position){case this.winPositionMap.topRight:t.bottom=e,t.left=i,t.textAlign="left";break;case this.winPositionMap.bottomRight:t.top=e,t.left=i,t.textAlign="left";break;case this.winPositionMap.topLeft:t.bottom=e,t.right=i,t.textAlign="right";break;case this.winPositionMap.bottomLeft:t.top=e,t.right=i,t.textAlign="right";break;case this.winPositionMap.top:t.bottom="calc(100% + 15px)",t.left="50%",t.transform=`translateX(calc(-50% + ${this.transformX}px))`,t.textAlign="center";break;case this.winPositionMap.left:t.top="50%",t.right="calc(100% + 15px)",t.transform=`translateY(calc(-50% + ${this.transformY}px))`,t.textAlign="right";break;case this.winPositionMap.bottom:t.top="calc(100% + 15px)",t.left="50%",t.transform=`translateX(calc(-50% + ${this.transformX}px))`,t.textAlign="center";break;case this.winPositionMap.right:t.top="50%",t.left="calc(100% + 15px)",t.transform=`translateY(calc(-50% + ${this.transformY}px))`,t.textAlign="left";break;case this.winPositionMap.center:t.top="50%",t.left="50%",t.transform=`translate(calc(-50% + ${this.transformX}px),calc(-50% + ${this.transformY}px))`,t.textAlign="center"}return t},points:function(){return`${this.startPoint.x},${this.startPoint.y} ${this.transitionPoint.x},${this.transitionPoint.y} ${this.endPoint.x},`+this.endPoint.y},svgLine:function(){let t;switch(this.commentOpts.lineOpts.lineType){case"solid":t="none";break;case"dotted":t="1,1";break;default:t="3,4"}return t}},mounted(){this.isYZPro?this.defaultContent="请输入标注内容!":(this.isFlipPro||this.isH5Pro)&&(this.defaultContent="Enter Your Comment Content!"),this.isShowLineSvg=this.commentOpts.lineOpts.isAddLine,this.commentMaxWidth=this.commentOpts.windowWP.maxW,this.showComment(this.commentOpts.windowWP.winP)},methods:{showComment(t){this.position=t,this.$nextTick((()=>{var e=this.$refs.comment.offsetWidth,i=this.$refs.comment.offsetHeight;if(this.commentWithinPage(t,e,i))this.isShowLineSvg&&this.showLineSvg(t);else{var{top:s,left:n,width:o,height:r}=this.item.style,{originPageWidth:a,originPageHeight:l}=this.pageConfig,h=parseFloat(n)+parseFloat(o)+15+e-a,d=15+i-parseFloat(s),c=.5*e-parseFloat(n)-.5*parseFloat(o),u=parseFloat(n)+.5*parseFloat(o)+.5*e-a,p=15+e-parseFloat(n),g=.5*i-parseFloat(s)-.5*parseFloat(r),m=parseFloat(s)+.5*parseFloat(r)+.5*i-l,f=parseFloat(s)+parseFloat(r)+15+i-l,w=Math.min(.25*parseFloat(o)+15,parseFloat(n)+parseFloat(o)+15),v=Math.min(a-parseFloat(n)-.5*parseFloat(o)-.5*e,.5*e),y=(e=Math.min(.5*e,parseFloat(n)+.5*parseFloat(o)-.5*e),Math.min(.25*parseFloat(o)+15,a-(parseFloat(n)-15))),l=Math.min(l-parseFloat(s)-.5*parseFloat(r)-.5*i,.5*i);i=Math.min(.5*i,parseFloat(s)+.5*parseFloat(r)-.5*i);if(t===this.winPositionMap.topRight){if(d<=0&&0!(!(0,Ht.Z)(t)||!e)&&(0,Nt.Z)(t,e),zt=({ignoreId:t,isAll:e=!1})=>{var i;(t||e)&&0!==(i=document.querySelectorAll(".play-audio")).length&&i.forEach((i=>{if(e)return i.pause();i.getAttribute("id")!==t&&i.pause()}))};var Zt={getAudioElement:function(t,e){let i;return i=void 0!==t.isPlayAcrossPage&&!0===t.isPlayAcrossPage?`#audio${e}${t.id}acrossPage`:"#audio"+e+t.id,document.querySelector(i)},getAllAudioElement:function(){return document.querySelectorAll(".audio-container audio")},audioIsMute:function(t,e){if(t=this.getAudioElement(t,e),t)return t.volume},isWechatBrowser(){var t=navigator.userAgent;return/MicroMessenger/i.test(t)},audioEvent:function(t,e,i,s={}){var n=this.getAudioElement(e,i);if(n)switch(t){case"play":this.audioPlayMethod(s,n,e);break;case"pause":n.paused||n.pause();break;case"replay":n.currentTime=0,n.play();break;case"mute":n.volume=0;break;case"unMute":n.volume=s.originVolume||.5;break;case"setVolume":n.volume=s.volume||.5;break;case"timeUpdate":n.currentTime=s.currentTime||0;break;case"setSrc":n.src=s.src||""}},audioPlayMethod:function(t,e,i){!e.paused||i.musicSkin&&3===i.musicSkin||(e.volume=i.volume/100,void 0!==t.delay?window.setTimeout((()=>{e.play().catch((()=>{this.isWechatBrowser&&this.wechatAutoPlayAudio(e)}))}),1e3*t.delay):e.play().catch((()=>{this.isWechatBrowser&&this.wechatAutoPlayAudio(e)})))},wechatAutoPlayAudio:function(t){window.WeixinJSBridge?window.WeixinJSBridge.invoke("getNetworkType",{},(function(){t.play()}),!1):document.addEventListener("WeixinJSBridgeReady",(function(){window.WeixinJSBridge.invoke("getNetworkType",{},(function(){t.play()}))}),!1)},getFirstAutoPlayAudio:function(t,e){var i,s,n;return void 0===window.BookInfo?null:(i=window.BookInfo.getCurrentPages(),1===(s=window.BookInfo.getCurrentPages().length)&&e+1===i[0]?void 0===t.items||0===(n=t.items).length?null:n.find((t=>{if("pluginMusic"===t.type&&"EVT_PageViewed"===t.moviePlayTriggerEvt)return t})):2===s&&i.includes(e+1)&&void 0!==t.items&&0!==(n=t.items).length?n.find((t=>{if("pluginMusic"===t.type&&"EVT_PageViewed"===t.moviePlayTriggerEvt)return t})):null)},acrossPageAudioPause:function(t,e){void 0!==e.isPlayAcrossPage&&!1===e.isPlayAcrossPage||this.acrossPageAudioIsInRange(e)||t.pause()},acrossPageAudioIsInRange:function(t){var e,i;return!!window.BookInfo&&0!==(e=window.BookInfo.getCurrentPages()).length&&(i=t.playFromPage,t=t.playToPage,1===e.length?!(e[0]t):1t))},getPlayingAudio:function(){var t=document.querySelectorAll(".audio-container audio");if(0===t.length)return[];let e=[];return t.forEach((t=>{t.paused||e.push(t)})),e},findConflictAudioItem:function(){var t=ot.state.globalAudioItems;if(0!==t.length){let e=[];return t.forEach((t=>{t.item.isPlayAcrossPage&&e.push(t)})),0===e?[]:1===e?e[0]:2<=e.length?e.filter((t=>{if(window.BookInfo){var e=window.BookInfo.getCurrentPageIndex();if(0{"EVT_PageViewed"===t.item.moviePlayTriggerEvt&&e.includes(t.originMapIndex)&&i.push(t)})),0===i?[]:i[0]}},getAllPlayingAudio:function(){var t=this.getAllAudioElement(),e=ot.state.globalAudioItems;if(0===t.length||0===e.length)return[];let i=[];return t.forEach((t=>{t.paused||i.push(t)})),i},isNeedToPlayBgSound:function(){var t=this.getAllPlayingAudio(),e=ot.state.globalAudioItems;if(0===t.length||0===e.length)return!0;let i=!0;for(let o=0;o{var e;if(e=t.playAudio,0!==Object.keys(e).length&&e.type&&"playAudio"===e.type&&(0!==e.audioList.length||0!==e.link||0!==e.specifyAudioList.length))return t})).playAudio,t)||{}},currentSrc:function(){if(-1===this.audioType)return"";let t="";switch(this.audioType){case 0:t=this.currentPlayAudio.link;break;case 1:t=this.currentPlayAudio.audioList[0].localLink;break;case 2:t=this.getSpecSrc()}return t},audioType:function(){return Dt(this.currentPlayAudio,"audioType")?this.currentPlayAudio.audioType:-1},pauseOrStopOnReClick:function(){return Dt(this.currentPlayAudio,"pauseOrStopOnReClick")?this.currentPlayAudio.pauseOrStopOnReClick:-1},isPauseBgSoundWhenPlay:function(){return!!Dt(this.currentPlayAudio,"isPauseBgSoundWhenPlay")&&this.currentPlayAudio.isPauseBgSoundWhenPlay},rotateWhenPlay:function(){return!!Dt(this.currentPlayAudio,"rotateWhenPlay")&&this.currentPlayAudio.rotateWhenPlay},specifyAudioList:function(){return Dt(this.currentPlayAudio,"specifyAudioList")&&0!==this.currentPlayAudio.specifyAudioList.length?this.currentPlayAudio.specifyAudioList:[]}},methods:{isCurrentPage:function(){var t,e;return!!window.BookInfo&&(t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages(),this.pageIndex+1===t||-1{t.paused||t.pause()}))},rotate:function(t){this.rotateWhenPlay&&this.itemLayout&&(this.rotateId?(window.clearInterval(this.rotateId),this.rotateId=null):this.rotateId=window.setInterval((()=>{t.paused?(window.clearInterval(this.rotateId),this.rotateId=null):(360<=this.rotateVal&&(this.rotateVal=0),this.rotateVal+=1.2,this.itemLayout.style.transform=`rotateZ(${this.rotateVal}deg) rotateX(${this.item.rotateX}deg) rotateY(${this.item.rotateY}deg)`)}),10))},getSpecSrc:function(){var t;return 0===this.specifyAudioList.length||(t=this.specifyAudioList[0].musicList,this.specPlayIndex>t.length-1)?"":t[this.specPlayIndex].url},playSpecList:async function(t){++this.specPlayIndex;var e=this.specifyAudioList[0].musicList;this.specPlayIndex>e.length-1||(t.load(),await this.$nextTick(),t.play())}}},Vt=(Gt=(0,N.Z)(Gt,(function(){var t=this._self._c;return t("div",{staticClass:"PlayAudio"},[t("audio",{ref:"playAudio",staticClass:"play-audio",attrs:{id:"playAudio"+this.item.id,preload:"auto",src:this.currentSrc},on:{play:this.playEvent,pause:this.pauseEvent,timeupdate:this.timeupdateEvent,ended:this.endEvent}})])}),[],!1,null,"4dac24c6",null).exports,(0,N.Z)({name:"ItemLayout",data(){return{timelineObj:[],firstLoad:!1,currentEventType:"",showFilter:!0,isShowComment:!1,commentOpts:{},scrollbarInfo:{},showPlayAudio:!1}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getCurrentPage"],computed:{curItemHasAnime:function(){return _t(this.item)},curItemHasAction:function(){return void 0!==this.item.actionList&&0!==this.item.actionList.length&&this.actionListHasAction()},isPhone:function(){return window.isPhone&&window.isPhone()},isSpecialItem:function(){return it(this.item)},actionList:function(){return this.isSpecialItem?[]:this.item.actionList},viewPercent:function(){return this.viewScale},currentPage:function(){},currentPageItems:function(){},pageIsVisiable:function(){return!0},canNotSelect:function(){return!(!this.curItemHasAnime&&!this.item.isPlayingActAnime)&<(this.item,this.pageIndex)},pageOriginalWidth:function(){return this.$store.state.pageConfig.originPageWidth},pageOriginalHeight:function(){return this.$store.state.pageConfig.originPageHeight},maskFile:function(){return this.item.animationFiles.maskFiles},inMaskFile:function(){return this.maskFile.in},outMaskFile:function(){return this.maskFile.out},itemMaskStyle:function(){var t,e,i,s,n=this.item,o={};return this.isSpecialItem||(e=void 0!==(t=n.animations.in)?t.type:"",s=n.maskConfig,i=n.scrawlConfig,t&&"mask"===e&&!n.isPlayingActAnime&&-1!==this.groupKey&&(at(n,!0)?(o.clipPath="none",s=s.in,rt(t)?(o.maskImage=`url( ${this.inMaskFile.url})`,o.maskSize=s.maskSize):"gradient"===s.maskType?o.maskImage=s.maskImage:o.maskImage="none",o.maskRepeat=s.repeat,o.maskPosition=s.position,o.maskSize=s.maskSize):o.maskImage="none"),t&&"scrawl"===e&&!n.isPlayingActAnime&&-1===this.groupKey&&(at(n,!0)?(s=i.in,o.maskImage=s.maskImage,o.clipPath="none",o.maskRepeat="no-repeat",o.maskPosition="center"):o.maskImage="none")),{...o}},curItemHasFilter:function(){var t;return!this.isGroup&&(this.item.isSubtitle?this.item.isShowShadow:!(0===(t=this.item.filter).blur&&1===t.brightness&&1===t.contrast&&0===t.grayscale&&0===t.hueRotate&&0===t.invert&&1===t.saturate&&0===t.sepia&&!this.item.isShowShadow))},itemStyle:function(){var t={pointerEvents:"auto"};if(!this.curItemHasFilter)return t;if(!this.showFilter)return t;var e=this.item,i=this.isGroup,s={};if(!i)if(e.isSubtitle)e.isShowShadow&&(n=(i=e.filter.dropShadow).shadowX,o=i.shadowY,r=i.shadowBlur,i=i.shadowColor,s.filter=`drop-shadow(${n}px ${o}px ${r}px ${i})`);else if(e.filter){var n=e.filter;let t;var o="blur("+n.blur+"px) ",r="brightness("+n.brightness+") ",a=(i="contrast("+n.contrast+") ","grayscale("+n.grayscale+") "),l="hue-rotate("+n.hueRotate+"deg) ",h="invert("+n.invert+") ",d="saturate("+n.saturate+") ",c="sepia("+n.sepia+")";e=(t=e.isShowShadow?"drop-shadow("+(e=n.dropShadow).shadowX+"px "+e.shadowY+"px "+e.shadowBlur+"px "+e.shadowColor+") ":"")+o+r+i+a+l+h+d+c;0===n.blur&&1===n.brightness&&1===n.contrast&&0===n.grayscale&&0===n.hueRotate&&0===n.invert&&1===n.saturate&&0===n.sepia&&""===t||(s.filter=e)}return Object.assign(t,s)},linkItemStyle:function(){if("link"!==this.item.type)return{};{let t="";switch(this.currentEventType){case"mouseenter":t=this.item.style.hoverColor;break;case"mousedown":case"touchstart":t=this.item.style.clickColor;break;default:t=this.item.style.background}return{background:t,borderRadius:this.item.style.borderRadius}}},itemTransformStyle:function(){var t=this.item,e=t.rotateX,i=t.rotateY;let s="";return{transform:s=0!==t.rotate&&360!==t.rotate||0!==t.rotateX||0!==t.rotateY?`rotateZ(${t.rotate}deg) rotateX(${e}deg) rotateY(${i}deg)`:s}},itemSizePostionStyle:function(){var t=this.item,e=this.isGroupItem;t={top:t.style.top,left:t.style.left,width:parseFloat(t.style.width)<1?"1px":t.style.width,height:parseFloat(t.style.height)<1?"1px":t.style.height};return e||(t.width="100%",t.height="100%",t.top=0,t.left=0),{...t}},canNotSelectStyle:function(){return this.isGroupItem||this.isSpecialItem||!(this.canNotSelect||this.item.actIsHidden&&-1===this.item.actAnimeTime)?{opacity:this.item.style.opacity}:Object.assign({opacity:0},this.canNotSelect?{pointerEvents:"none"}:{})},textItemOverflowStyle:function(){var t,e,i={};return"text"===this.item.type&&this.textIsSetOverflow&&(i.overflow=this.item.overflow,!this.isHideScrollBar&&void 0!==this.isHideScrollBar||(i.width="100%"),this.isHideScrollBar||(f.isEmptyObject(this.textScrollBarInfo)||(t=Number.parseFloat(this.textScrollBarInfo.width),i.width=`calc(100% + ${t}px)`,i["padding-right"]=t+"px"),f.isEmptyObject(this.textScrollBarInfo)&&(i.width="calc(100% + 6px)")),f.isEmptyObject(this.textScrollBarInfo)||(t=this.textScrollBarInfo.radius,e=.01*this.textScrollBarInfo.opacity,i["--scrollbar-width"]=this.textScrollBarInfo.width+"px",i["--scrollbar-thumb-color"]=this.textScrollBarInfo.thumbColor,i["--scrollbar-track-color"]=this.textScrollBarInfo.trackColor,i["--scrollbar-thumb-radius"]=t+"px",i["--scrollbar-thumb-opacity"]=""+e)),i},textIsSetOverflow:function(){return"text"===this.item.type&&!(void 0===this.item.overflow||!this.item.overflow)},isQQOrWechatBrowser(){var t=navigator.userAgent;return/MQQBrowser|MicroMessenger|QQ/i.test(t)},itemIsShow:function(){if(void 0===this.item.showOrHideIsFirstHide)return!this.item.isActionHideCase;if(void 0!==this.item.showOrHideIsFirstHide&&(this.item.showOrHideIsFirstHide||!this.item.showOrHideIsFirstHide)){if(this.item.isActionHideCase)return!1;this.item.isActionHideCase}return!0},getInverseLinkClass:function(){let t="";if("link"===this.item.type&&this.item.isInverse)for(let e=0;e{t.pause("inEnd"),Ot(t)})),Ot(e),e="",this.timelineObj[t].itemTimelines=[],delete this.timelineObj[t])}},clearAnimationListMaskAndHand:function(){if(this.actionList&&this.actionList.length)for(let r=0;r{e.add(t.id)}));this.emitEventPageItemsIndexArr=[...e]},refreshEmitAnimeIdArr:function(){this.emitEventPageItemsIdArr=[];for(let t=0;t{-1===this.emitEventPageItemsIdArr.indexOf(t.id)&&this.emitEventPageItemsIdArr.push(t.id)}))},emitItemEvent:function(t,e){if("ended"!==t&&this.changeEventType(t,e),this.cancelLinkItemAnime(),this.actionListHasAction()&&(this.item.isInverse&&e.match(/mouseenter|mouseleave|mousemove/)&&this.toggleArticleTitle(t,"mouseleave"!==e),this.emitActionEvent(e),this.isHasCurrentEvent(e))){t.type===e&&"click"===e&&t.stopPropagation(),this.destroyTimeLines(),this.refreshIndexArr(e),this.refreshEmitAnimeIdArr(),P.Q.$emit("CLEAR_EMIT_EVENT_TIMELINE_"+this.pageIndex,{idArr:this.emitEventPageItemsIdArr}),P.Q.$emit("SEEK_TIMELINE_INEND_"+this.pageIndex,{indexArr:this.emitEventPageItemsIndexArr,seekTime:"inEnd"}),this.timelineObj[e]={},this.timelineObj[e].mainTimeline=new ht.ZP({paused:!0}),this.timelineObj[e].itemTimelines=[];for(let t=0;t{if(e.event===t||Object.keys(e.comment).length){if("click"!==t&&"mousedown"!==t&&"mouseup"!==t||window.BookEvent&&window.BookEvent.trigger("clickPageItem",[parseInt(this.item.pageIndex)+1,this.item.type,this.item.style.left,this.item.style.top,this.item.style.width,this.item.style.height]),Object.keys(e.linkList).length){let t=e.linkList.url;if(!0===e.linkList.isHasUrlParams&&(t=this.openLinkUrl(e)),e.linkList.url&&-1===e.linkList.url.toLowerCase().search(/^\/\/|^http|:\/\//)&&(t=e.linkList.urlHead+e.linkList.url),window.BookEvent&&window.BookEvent.trigger("jumpLink",["openUrl",window.BookInfo.getCurrentPages().join("-"),t]))return;if(0===e.linkList.target)window.open(t,"_blank");else{if(1===this.getUrlParam("isClientEnv")||"1"===this.getUrlParam("isClientEnv"))return;window.location.href=t}}if(Object.keys(e.openPage).length&&window.gotoPageFun&&window.gotoPageFun(e.openPage.page,!1,"action openPage"),Object.keys(e.phone).length){if(window.BookEvent&&window.BookEvent.trigger("jumpLink",["telePhoneNumber",window.BookInfo.getCurrentPages().join("-"),e.phone.phoneNumber]))return;window.open("tel:"+e.phone.phoneNumber,"_self")}if(Object.keys(e.iframe).length&&e.iframe.url&&(this.isPhone&&(e.iframe.width=window.innerWidth-50,e.iframe.height=window.innerHeight-50),window.vuePopDom)&&window.vuePopDom.popWindow(e.iframe,"iframe"),Object.keys(e.popupMsg).length&&window.vuePopDom&&window.vuePopDom.popWindow(e.popupMsg,"popupMsg"),Object.keys(e.popupImg).length&&window.vuePopDom&&window.vuePopDom.popWindow(e.popupImg,"popupImg"),e.showOrHideList&&e.showOrHideList.length)for(let t=0;t{await o.default.nextTick(),t.PlayAudio&&t.PlayAudio.playControl&&t.PlayAudio.playControl()})(this.$refs)),Object.keys(e.runJavaScript).length)try{var r=Function;let t=e.runJavaScript.javaScriptCode;return new r(t=t.replaceAll(/\r|\n|\t/g,""))()}catch(i){}var a;e.showArticle&&Object.keys(e.showArticle).length&&window.showArticleById&&window.showArticleById(e.showArticle.articleId),Object.keys(e.addWechat).length&&window.vuePopDom&&window.vuePopDom.popWindow(e.addWechat,"addWechat"),Object.keys(e.attachmentFile).length&&void 0!==e.attachmentFile.fileObject.url&&void 0!==e.attachmentFile.fileObject.name&&(a=(r=e.attachmentFile.fileObject).url,r=r.name,this.downloadFile(a,r)),Object.keys(e.comment).length&&e.comment.edited&&(("click"===t||"mouseleave"===t&&"mouseleave"!==e.event&&e.comment.autoDisappear)&&this.isShowComment?this.isShowComment=!1:e.event!==t||this.isShowComment||(this.isShowComment=!0,this.commentOpts=e.comment))}}))},createAnime:function({animationList:t,mainTimeline:e,itemTimelines:i}){t.forEach((t=>{var s=this.getItem(t)["realItem"];s.actAnimeTime=-1,t.actAnimeTime=-1,t=Ft({item:t,isGroupItem:!1,realItem:s,setAnimeFromTrigger:!0,groupKey:-1,pageIndex:this.pageIndex});t.itemTimeline&&(i.push(t.itemTimeline),e.add(t.itemTimeline,0))}))},getItem:function(t){let e={};if(this.getCurrentPage)return this.getCurrentPage().items.forEach(((i,s)=>{i.id===t.id&&(e={realItem:i,index:s})})),e},getUrlParam:function(t){return t=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(t),null!=t?decodeURI(t[2]):null},openLinkUrl:function(t){var e;return t.linkList.url?"mailto:"===t.linkList.urlHead?t.linkList.url:(e=this.openLinkUrlParams(t),t.linkList.url+e):""},openLinkUrlParams:function(t){var e;return t.linkList.isHasUrlParams&&""!==(e=window.location.search)?-1!==t.linkList.url.indexOf("?")?"&"+window.location.search.slice(1):e:""},downloadFile:function(t,e){if(t&&e)if(this.isQQOrWechatBrowser){const i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("target","_blank"),i.setAttribute("download",e),document.body.appendChild(i),i.click(),window.setTimeout((()=>{document.body.removeChild(i)}),300)}else(0,a.Z)({method:"get",url:t,responseType:"blob"}).then((t=>{200!==t.status&&"OK"!==t.statusText||(0,Bt.saveAs)(t.data,e)})).catch((t=>{}))},cancelLinkItemAnime:function(){"link"===this.item.type&&P.Q.$emit("CANCEL_LINK_ANIME",this.item)},initScrollbar:function(){this.textIsSetOverflow&&!this.isHideScrollBar&&this.$nextTick((()=>{var t=document.querySelector("#ItemLayout"+this.item.id);t&&(Rt.UN.plugin(Rt.ZA),this.scrollbarInfo=(0,Rt.UN)(t,{overflow:{y:"scroll",x:"hidden"},scrollbars:{clickScroll:!0}}))}))},releaseScrollbar:function(){!this.textIsSetOverflow||this.isHideScrollBar||f.isEmptyObject(this.scrollbarInfo)||(this.scrollbarInfo.destroy(),this.scsrollbarInfo={})},emitHideComment:function(){P.Q.$emit("HIDE_COMMENT_"+this.pageIndex)},hideComment:function(){this.isShowComment&&(this.isShowComment=!1)}},mounted(){var t;this.actionList&&this.actionList.length&&(P.Q.$on("CLEAR_ACTION_ANIME_"+this.pageIndex,(()=>{this.destroyTimeLines(),this.clearAnimationListMaskAndHand(),this.changeItemActionCase()})),P.Q.$on("CLEAR_EMIT_EVENT_TIMELINE_"+this.pageIndex,(({idArr:t=[]})=>{this.clearEmitEventTimeline({idArr:t})})),P.Q.$on("HIDE_COMMENT_"+this.pageIndex,this.hideComment),t=document.getElementById("scalePage"+this.pageIndex))&&t.addEventListener("click",this.emitHideComment),this.curItemHasFilter&&(P.Q.$on("PAGE_START_FLIP_"+this.pageIndex,(()=>{this.showFilter=!1})),P.Q.$on("PAGE_END_FLIP_"+this.pageIndex,(()=>{this.showFilter=!0}))),"pluginMusic"===this.item.type&&P.Q.$on("musicEnded"+this.pageIndex,(t=>{this.endedEmitEvent(t)})),this.initScrollbar()},beforeDestroy(){var t;this.actionList&&this.actionList.length&&(P.Q.$off("CLEAR_ACTION_ANIME_"+this.pageIndex),P.Q.$off("CLEAR_EMIT_EVENT_TIMELINE_"+this.pageIndex),P.Q.$off("HIDE_COMMENT_"+this.pageIndex),t=document.getElementById("scalePage"+this.pageIndex))&&t.removeEventListener("click",this.emitHideComment),this.curItemHasFilter&&(P.Q.$off("PAGE_START_FLIP_"+this.pageIndex),P.Q.$off("PAGE_END_FLIP_"+this.pageIndex)),"pluginMusic"===this.item.type&&P.Q.$off("musicEnded"+this.pageIndex),this.releaseScrollbar()},components:{OutMaskDom:r,CommentPreview:H,PlayAudio:Gt},directives:{}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:!t.item.isActionHideCase,expression:"!item.isActionHideCase"}],staticClass:"ItemLayout",class:[{canClick:t.curItemHasAction,"text-can-overflow":t.textIsSetOverflow,"flip-action":t.textIsSetOverflow},t.getInverseLinkClass],style:[t.itemStyle,t.linkItemStyle,t.itemTransformStyle,t.itemSizePostionStyle,t.itemMaskStyle,t.canNotSelectStyle,t.textItemOverflowStyle],attrs:{id:"ItemLayout"+t.item.id},on:{click:function(e){return t.emitItemEvent(e,"click")},mouseenter:function(e){return e.stopPropagation(),t.emitItemEvent(e,"mouseenter")},mouseleave:function(e){return e.stopPropagation(),t.emitItemEvent(e,"mouseleave")},mousemove:function(e){return e.stopPropagation(),t.toggleArticleTitle(e,!0)},mousedown:function(e){return t.changeEventType(e,"mousedown")},mouseup:function(e){return t.changeEventType(e,"mouseup")},touchstart:function(e){return t.changeEventType(e,"touchstart")},touchend:function(e){return t.changeEventType(e,"touchend")}}},[e("OutMaskDom",{attrs:{item:t.item,groupKey:t.groupKey}},[t._t("default")],2),t.isShowComment?e("CommentPreview",{attrs:{item:t.item,commentOpts:t.commentOpts}}):t._e(),t.showPlayAudio?e("PlayAudio",{ref:"PlayAudio",attrs:{item:t.item,pageIndex:t.pageIndex}}):t._e()],1)}),[],!1,null,"53a931d5",null).exports);class jt{constructor(t){this.defaultOptions={sourceSize:{width:0,height:0},background:{url:"",x:0,y:0},size:{width:0,height:0},width:0,height:0,left:0,top:0},t&&(this.options=Object.assign(t,{}))}set(t){this.options=Object.assign(t,{})}get({time:t,totalTime:e,gridsIndex:i}){if(!this.options||!this.options.grids||!this.options.url)return this.defaultOptions;let s=0;var n=this.options.grids[i];e&&(t%=e,s=parseInt(t*n.frames.length/e),s=Math.min(s,n.frames.length-1),s=Math.max(s,0)),t=n.frames[s];return{sourceSize:{width:t.sourceSize.w,height:t.sourceSize.h},background:{url:this.options.url[i],x:t.frame.x,y:t.frame.y},size:{width:n.meta.size.w,height:n.meta.size.h},width:t.frame.w,height:t.frame.h,left:t.spriteSourceSize.x,top:t.spriteSourceSize.y,framesIndex:s}}}var Yt=(0,N.Z)({name:"ImgForSprite",data:function(){return{defaultGrids:{sourceSize:{width:0,height:0},background:{url:"",x:0,y:0},size:{width:0,height:0},width:0,height:0,left:0,top:0}}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{isMobile:function(){return this.$store.state.isMobile},noControl:function(){return this.$store.state.noControl},gifSpriteStyle:function(){if(!this.item.config||!this.item.config.grids)return this.defaultGrids;var t=new jt({grids:this.item.config.grids,url:this.item.config.url});let e=0;return this.currentGif&&(this.currentGif.hasLoadedNormal||this.noControl)&&(e=this.currentGif.loadImageIndex),t.get({time:this.item.config.time,totalTime:this.item.config.duration,gridsIndex:e})},gifs:function(){return this.item.gifs},currentGif:function(){if(""!==this.imageUrl&&this.item.config)return this.item.gifs[this.item.config.gifIndex]},imageUrl:function(){return this.item.config?this.item.config.imageUrl:""},itemWidth:function(){return this.item.pathWidth},itemHeight:function(){return this.item.pathHeight},metaWidth:function(){return this.gifSpriteStyle.sourceSize.width},metaHeight:function(){return this.gifSpriteStyle.sourceSize.height},itemScale:function(){var t=this.itemWidth/this.metaWidth,e=this.itemHeight/this.metaHeight;return 73<=this.item.config.characterId?e:Math.min(t,e)},spriteWrapperStyle:function(){var t,e={};return this.currentGif&&(t=this.currentGif.isHorizonFlip,e.transform=void 0===t||!1===t?"rotateY(0deg)":"rotateY(180deg)"),e},spriteStyle:function(){if(this.currentGif&&this.currentGif.styleFix&&this.item.config&&this.item.config.grids){var t=new jt({grids:this.item.config.grids,url:this.item.config.url});let h=0;(this.currentGif.hasLoadedNormal||this.noControl)&&(h=this.currentGif.loadImageIndex);var e=t.get({time:0,totalTime:this.item.config.duration,gridsIndex:h}),i=(t=t.get({time:this.item.config.time,totalTime:this.item.config.duration,gridsIndex:h}),e.width),s=e.left,n=e.top,o=(e=e.height,t.width),r=t.left,a=t.height,l=(t=t.top,this.currentGif.styleFix);i=(l.x/100*i*l.scale+(s-r)*(1-l.scale))/(o*l.scale)*100,s=((l.scale-1)*(t-n)*100-(1-l.scale)*(a-e)*100+l.y*e)/a;return{width:parseInt(this.gifSpriteStyle.width)+"px",height:parseInt(this.gifSpriteStyle.height)+"px",left:parseInt(this.gifSpriteStyle.left)+"px",top:parseInt(this.gifSpriteStyle.top)+"px",transform:`scale(${l.scale}) translate(${i}%,${s}%)`,transformOrigin:"left bottom",background:`url(${this.gifSpriteStyle.background.url}) ${-parseInt(this.gifSpriteStyle.background.x)}px ${-parseInt(this.gifSpriteStyle.background.y)}px no-repeat`,position:"absolute"}}return{width:parseInt(this.gifSpriteStyle.width)+"px",height:parseInt(this.gifSpriteStyle.height)+"px",left:parseInt(this.gifSpriteStyle.left)+"px",top:parseInt(this.gifSpriteStyle.top)+"px",background:`url(${this.gifSpriteStyle.background.url}) ${-parseInt(this.gifSpriteStyle.background.x)}px ${-parseInt(this.gifSpriteStyle.background.y)}px no-repeat`,position:"absolute"}},spriteContainerStyle:function(){var t={transform:`scale(${this.itemScale})`,width:this.metaWidth+"px",height:this.metaHeight+"px",top:0,left:0,transformOrigin:"0 0"};return 73<=this.item.config.characterId&&(t.transform=`scale(${this.itemScale}) translateX(-50%) translateY(-50%)`,t.top="50%",t.left="50%"),t}},watch:{},mounted:function(){},methods:{loadImage:function(t){t.hasLoadedNormal=!0}},components:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ImgForSprite imgItem"},[t.item.isSprite?e("div",{staticClass:"sprite-container",style:t.spriteContainerStyle},[e("div",{staticClass:"sprite-wrapper",style:t.spriteWrapperStyle},[e("div",{style:t.spriteStyle})])]):t._e(),t.item.isSprite?t._l(t.gifs,(function(i,s){return e("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:s,attrs:{src:i.image[i.loadImageIndex]},on:{load:function(e){return t.loadImage(i)}}})})):t._e()],2)}),[],!1,null,"15ba6e38",null).exports,Xt=(H=i(8749),i.n(H)),Ut=(0,N.Z)({name:"ImgForGif",data:function(){return{showCanvas:!1,canvasNode:null,msg:null}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{noControl:function(){return this.$store.state.noControl},gifIsTurningToCanvas:function(){return this.item.gifIsTurningToCanvas},gifHasTurnedCanvas:function(){return this.item.gifHasTurnedCanvas},gifToCanvas:function(){return this.item.gifToCanvas},gifImageLoop:function(){return this.item.gifImageLoop},showNormalGif:function(){return!this.noControl||!this.gifToCanvas||!this.gifHasTurnedCanvas},imgBackPosition:function(){return this.item.pathBackgroundPosition},imgBackSize:function(){return this.item.pathBackgroundSize},normalStyle:function(){var t=this.item,e={width:"100%",height:"100%",backgroundPosition:this.imgBackPosition,backgroundSize:this.imgBackSize};return e.backgroundImage=`url("${t.url}")`,t.borderRadius&&t.showBorderRadius&&!t.isBGI&&(e.borderTopLeftRadius=t.borderRadius.topLeft+"px",e.borderTopRightRadius=t.borderRadius.topRight+"px",e.borderBottomLeftRadius=t.borderRadius.bottomLeft+"px",e.borderBottomRightRadius=t.borderRadius.bottomRight+"px"),"tile"===t.strategy?e.backgroundRepeat="repeat":e.backgroundRepeat="no-repeat",e},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},currentPage:function(){return this.$store.state.pages[this.pageIndex]},pageTotalTime:function(){return this.currentPage.totalTime},subTime:function(){let t=this.item;if(this.curSliderTimethis.intoPageTime+this.pageTotalTime)return this.curSliderTime=t.existStartTime?-1===t.existEndTime||e<=t.existEndTime?1e3*(e-t.existStartTime):1e3*t.existEndTime:0},currentStep:function(){if(this.gifHasTurnedCanvas){var t=this.item.superGif.get_length(),e=this.item.superGif.get_info();let i=e.duration||e.durationChrome,s=(i=i||1,t*(this.subTime%i)/i);return s=!this.gifImageLoop&&this.subTime>i?t-1:s}return 0}},watch:{currentStep:function(){this.gifHasTurnedCanvas&&this.seekGIFCanvas()}},mounted:function(){var t;this.gifHasTurnedCanvas&&(t=this.item.superGif.get_canvas(),Xt().appendCanvas(this.item,t),this.seekGIFCanvas())},methods:{seekGIFCanvas:function(){this.item.superGif.move_to(this.currentStep)}},beforeDestroy:function(){this.item.superGif&&this.item.superGif.clearData()},destroyed:function(){},components:{}},(function(){var t=this._self._c;return t("div",{staticClass:"ImgForGif imgItem"},[this.showNormalGif?t("div",{style:this.normalStyle}):this._e(),t("div",{staticClass:"gif-canvas-container",attrs:{id:"canvasCon"+this.item.id}})])}),[],!1,null,"d5158bfa",null).exports,qt=(0,N.Z)({name:"ImgForNormal",data:function(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{isQRCodeImg:function(){return this.item.isQRCodeImg},imgBackPosition:function(){return this.item.pathBackgroundPosition},imgBackSize:function(){return this.item.pathBackgroundSize},normalStyle:function(){var t=this.item,e={width:"100%",height:"100%",backgroundPosition:this.imgBackPosition,backgroundSize:this.imgBackSize};return e.backgroundImage=`url("${t.url}")`,t.borderRadius&&t.showBorderRadius&&!t.isBGI&&(e.borderTopLeftRadius=t.borderRadius.topLeft+"px",e.borderTopRightRadius=t.borderRadius.topRight+"px",e.borderBottomLeftRadius=t.borderRadius.bottomLeft+"px",e.borderBottomRightRadius=t.borderRadius.bottomRight+"px"),"tile"===t.strategy?e.backgroundRepeat="repeat":e.backgroundRepeat="no-repeat",e}},watch:{},mounted:function(){},methods:{isIphone:function(){return!(!window.isIphone||!window.isIpad)&&(window.isIphone()||window.isIpad())},canDownload:function(){return!window.bookConfig.isStopMouseMenu}},components:{},render(t){return this.isQRCodeImg?t("div",{class:"img-box"},[t("img",{class:["img",this.isIphone()&&!this.canDownload()?"iphone-qrcode":"",this.isIphone()&&this.canDownload()?"iphone-canDownload":""],attrs:{src:this.item.url}})]):t("div",{style:this.normalStyle})}},void 0,void 0,!1,null,"71e13132",null).exports,Qt=(Gt=(0,N.Z)({name:"ItemForImage",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],watch:{},methods:{},computed:{imgComponent:function(){var t=this.item.isGifImage,e=this.item.isSprite;return t||e?e?Yt:t?Ut:void 0:qt}},components:{ItemLayout:Vt,ImgForSprite:Yt,ImgForGif:Ut,ImgForNormal:qt},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[e(t.imgComponent,{tag:"component",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}})],1)}),[],!1,null,"0086b7d5",null).exports,i(7628)),Kt=i(4602);const Jt={addClass:Kt.cn,removeClass:Kt.IV,hasClass:Kt.pv,toggleClass:Kt.Vj,attr:Kt.Lj,removeAttr:Kt.uV,transform:Kt.vs,transition:Kt.eR,on:Kt.on,off:Kt.S1,trigger:Kt.X$,transitionEnd:Kt.ld,outerWidth:Kt.iO,outerHeight:Kt.Pb,styles:Kt.W2,offset:Kt.cv,css:Kt.iv,each:Kt.S6,html:Kt.dy,text:Kt.fL,is:Kt.is,index:Kt.Kz,eq:Kt.eq,append:Kt.R3,prepend:Kt.Ce,next:Kt.lp,nextAll:Kt.eG,prev:Kt.mp,prevAll:Kt.pJ,parent:Kt.qm,parents:Kt.wV,closest:Kt.oq,find:Kt.sE,children:Kt.pI,filter:Kt.hX,remove:Kt.Od};Object.keys(Jt).forEach((t=>{Object.defineProperty(Kt.$.fn,t,{value:Jt[t],writable:!0})}));var te=Kt.$;function ee(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function ie(){return Date.now()}function se(t,e){void 0===e&&(e="x");var i=(0,Qt.Jj)();let s,n,o;return t=function(t){var e=(0,Qt.Jj)();let i;return(i=!(i=e.getComputedStyle?e.getComputedStyle(t,null):i)&&t.currentStyle?t.currentStyle:i)||t.style}(t),i.WebKitCSSMatrix?(6<(n=t.transform||t.webkitTransform).split(",").length&&(n=n.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===n?"":n)):(o=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=o.toString().split(",")),"x"===e&&(n=i.WebKitCSSMatrix?o.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),(n="y"===e?i.WebKitCSSMatrix?o.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5]):n)||0}function ne(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function oe(t){var e,i=Object(arguments.length<=0?void 0:t);const s=["__proto__","constructor","prototype"];for(let l=1;ls.indexOf(t)<0));for(let t=0,e=o.length;to?"next":"prev"),d=(t,e)=>"next"===h&&e<=t||"prev"===h&&t<=e,c=()=>{r=(new Date).getTime(),null===a&&(a=r);var t=Math.max(Math.min((r-a)/l,1),0);t=.5-Math.cos(t*Math.PI)/2;let h=o+t*(i-o);d(h,i)&&(h=i),e.wrapperEl.scrollTo({[s]:h}),d(h,i)?(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:h})})),n.cancelAnimationFrame(e.cssModeFrameID)):e.cssModeFrameID=n.requestAnimationFrame(c)};c()}let le,he,de;function ce(){return le=le||function(){const t=(0,Qt.Jj)();var e=(0,Qt.Me)();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{var i=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t}}()}function ue(t){return void 0===t&&(t={}),he=he||function(t){t=(void 0===t?{}:t)["userAgent"];var e=ce(),i=(o=(0,Qt.Jj)()).navigator.platform,s=(t=t||o.navigator.userAgent,{ios:!1,android:!1}),n=o.screen.width,o=o.screen.height,r=t.match(/(Android);?[\s\/]+([\d.]+)?/);let a=t.match(/(iPad).*OS\s([\d_]+)/);var l=t.match(/(iPod)(.*OS\s([\d_]+))?/),h=!a&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===i;i="MacIntel"===i;return!a&&i&&e.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(n+"x"+o)&&(a=(a=t.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"]),r&&!d&&(s.os="android",s.android=!0),(a||h||l)&&(s.os="ios",s.ios=!0),s}(t)}function pe(){return de=de||function(){const t=(0,Qt.Jj)();return{isSafari:0<=(e=t.navigator.userAgent.toLowerCase()).indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)};var e}()}function ge(t){var{swiper:t,runCallbacks:e,direction:i,step:s}=t,{activeIndex:n,previousIndex:o}=t;let r=i;r=r||(o{var i,s=(0,Qt.Me)(),{params:n,touchEvents:o,el:r,wrapperEl:a,device:l,support:h}=t,d=!!n.nested,c="on"===e?"addEventListener":"removeEventListener";h.touch?(i=!("touchstart"!==o.start||!h.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1},r[c](o.start,t.onTouchStart,i),r[c](o.move,t.onTouchMove,h.passiveListener?{passive:!1,capture:d}:d),r[c](o.end,t.onTouchEnd,i),o.cancel&&r[c](o.cancel,t.onTouchEnd,i)):(r[c](o.start,t.onTouchStart,!1),s[c](o.move,t.onTouchMove,d),s[c](o.end,t.onTouchEnd,!1)),(n.preventClicks||n.preventClicksPropagation)&&r[c]("click",t.onClick,!0),n.cssMode&&a[c]("scroll",t.onScroll),n.updateOnWindowResize?t[e](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",fe,!0):t[e]("observerUpdate",fe,!0)},xe=(t,e)=>t.grid&&e.grid&&1{s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}))}return s},once(t,e,i){const s=this;return"function"!=typeof e?s:(n.__emitterProxy=e,s.on(t,n,i));function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,o=new Array(i),r=0;r{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((s,n)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[t].splice(n,1)}))})),i},emit(){const t=this;if(t.eventsListeners){let n,o,r;for(var e=arguments.length,i=new Array(e),s=0;s{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(r,[e,...o])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((t=>{t.apply(r,o)}))}))}return t}},update:{updateSize:function(){var t=this;let e,i;var s=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:s[0].clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:s[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}const s=t.params;var{$wrapperEl:n,size:o,rtlTranslate:r,wrongRTL:a}=t,l=t.virtual&&s.virtual.enabled,h=(l?t.virtual:t).slides.length;const d=n.children("."+t.params.slideClass);var c=(l?t.virtual.slides:d).length;let u=[];const p=[];var g=[];let m=s.slidesOffsetBefore,f=("function"==typeof m&&(m=s.slidesOffsetBefore.call(t)),s.slidesOffsetAfter);"function"==typeof f&&(f=s.slidesOffsetAfter.call(t));var w=t.snapGrid.length,v=t.slidesGrid.length;let y=s.spaceBetween,x=-m,C=0,$=0;if(void 0!==o){"string"==typeof y&&0<=y.indexOf("%")&&(y=parseFloat(y.replace("%",""))/100*o),t.virtualSize=-y,r?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(re(t.wrapperEl,"--swiper-centered-offset-before",""),re(t.wrapperEl,"--swiper-centered-offset-after",""));var b=s.grid&&1void 0!==s.breakpoints[t].slidesPerView)).length;for(let n=0;n!s.cssMode||e!==d.length-1)).css({[a]:y+"px"})),s.centeredSlides&&s.centeredSlidesBounds){let t=0;g.forEach((e=>{t+=e+(s.spaceBetween||0)}));const e=(t-=s.spaceBetween)-o;u=u.map((t=>t<0?-m:t>e?e+f:t))}if(s.centerInsufficientSlides){let t=0;if(g.forEach((e=>{t+=e+(s.spaceBetween||0)})),(t-=s.spaceBetween){u[i]=t-e})),p.forEach(((t,i)=>{p[i]=t+e}))}}if(Object.assign(t,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){re(t.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),re(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-g[g.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}c!==h&&t.emit("slidesLengthChange"),u.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==v&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect||(n=s.containerModifierClass+"backface-hidden",r=t.$el.hasClass(n),c<=s.maxBackfaceHiddenSlides?r||t.$el.addClass(n):r&&t.$el.removeClass(n))}},updateAutoHeight:function(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n,o=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);var r,a=t=>(s?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t)):e.slides.eq(t))[0];if("auto"!==e.params.slidesPerView&&1{i.push(t)}));else for(n=0;ne.slides.length&&!s)break;i.push(a(l))}else i.push(a(e.activeIndex));for(n=0;no?r:o);!o&&0!==o||e.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){var t=this.slides;for(let e=0;e=e.size)&&(e.visibleSlides.push(r),e.visibleSlidesIndexes.push(t),s.eq(t).addClass(i.slideVisibleClass)),r.progress=n?-a:a,r.originalProgress=n?-l:l}e.visibleSlides=te(e.visibleSlides)}},updateProgress:function(t){var e=this,i=(void 0===t&&(i=e.rtlTranslate?-1:1,t=e&&e.translate&&e.translate*i||0),e.params),s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:o,isEnd:r}=e;var a=o,l=r;r=0==s?(n=0,o=!0):(n=(t-e.minTranslate())/s,o=n<=0,1<=n),Object.assign(e,{progress:n,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),r&&!l&&e.emit("reachEnd toEdge"),(a&&!o||l&&!r)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){var{slides:t,params:e,$wrapperEl:i,activeIndex:s,realIndex:n}=this,o=this.virtual&&e.virtual.enabled;t.removeClass(`${e.slideActiveClass} ${e.slideNextClass} ${e.slidePrevClass} ${e.slideDuplicateActiveClass} ${e.slideDuplicateNextClass} `+e.slideDuplicatePrevClass);let r,a=((r=o?this.$wrapperEl.find(`.${e.slideClass}[data-swiper-slide-index="${s}"]`):t.eq(s)).addClass(e.slideActiveClass),e.loop&&(r.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${n}"]`):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${n}"]`)).addClass(e.slideDuplicateActiveClass),r.nextAll("."+e.slideClass).eq(0).addClass(e.slideNextClass)),l=(e.loop&&0===a.length&&(a=t.eq(0)).addClass(e.slideNextClass),r.prevAll("."+e.slideClass).eq(0).addClass(e.slidePrevClass));e.loop&&0===l.length&&(l=t.eq(-1)).addClass(e.slidePrevClass),e.loop&&((a.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${a.attr("data-swiper-slide-index")}"]`):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${a.attr("data-swiper-slide-index")}"]`)).addClass(e.slideDuplicateNextClass),(l.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`)).addClass(e.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(t){var e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:r,realIndex:a,snapIndex:l}=e;let h,d=t;if(void 0===d){for(let t=0;t=s[t]&&i=s[t]&&i=s[t]&&(d=t);o.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}(h=0<=n.indexOf(i)?n.indexOf(i):(t=Math.min(o.slidesPerGroupSkip,d))+Math.floor((d-t)/o.slidesPerGroup))>=n.length&&(h=n.length-1),d===r?h!==l&&(e.snapIndex=h,e.emit("snapIndexChange")):(t=parseInt(e.slides.eq(d).attr("data-swiper-slide-index")||d,10),Object.assign(e,{snapIndex:h,realIndex:t,previousIndex:r,activeIndex:d}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==t&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange"))},updateClickedSlide:function(t){var e=this,i=e.params,s=te(t).closest("."+i.slideClass)[0];let n,o=!1;if(s)for(let r=0;r=t.length&&(g=t.length-1),(d||o.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");var m=-t[g];if(r.updateProgress(m),o.normalizeSlideIndex)for(let x=0;xr.translate&&m>r.maxTranslate()&&(d||0)!==a)return!1}let y;if(y=a>d?"next":a{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}));else{if(!r.support.smoothScroll)return ae({swiper:r,targetPosition:p,side:n?"left":"top"}),!0;u.scrollTo({[n?"left":"top"]:p,behavior:"smooth"})}else r.setTransition(e),r.setTranslate(m),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,y),0===e?r.transitionEnd(i,y):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,y))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd));return!0},slideToLoop:function(t,e,i,s){void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);let n=t=void 0===t?0:t;return this.params.loop&&(n+=this.loopedSlides),this.slideTo(n,e,i,s)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var s=this,{animating:n,enabled:o,params:r}=s;if(!o)return s;let a=r.slidesPerGroup;if("auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1)),o=s.activeIndexd(t)));let u=r[h.indexOf(c)-1];if(void 0===u&&n.cssMode){let t;r.forEach(((e,i)=>{c>=e&&(t=i)})),void 0!==t&&(u=r[0=n.snapGrid[a]?(r=n.snapGrid[a],(n.snapGrid[a+1]-r)*st.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=s.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]:not(.${i.slideDuplicateClass})`).eq(0).index(),ee((()=>{t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=s.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]:not(.${i.slideDuplicateClass})`).eq(0).index(),ee((()=>{t.slideTo(o)}))):t.slideTo(o)):t.slideTo(o)}},loop:{loopCreate:function(){const t=this;var e=(0,Qt.Me)(),{params:i,$wrapperEl:s}=t,n=0o.length&&(t.loopedSlides=o.length);const l=[],h=[];o.each(((e,i)=>{var s=te(e);i=o.length-t.loopedSlides&&l.push(e),s.attr("data-swiper-slide-index",i)}));for(let d=0;d=i.length-s&&(l=-i.length+e+s,l+=s,t.slideTo(l,0,!1,!0))&&0!=r&&t.setTranslate((a?-t.translate:t.translate)-r),t.allowSlidePrev=n,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){var{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.`+e.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){var e;this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||((e="container"===this.params.touchEventsTarget?this.el:this.wrapperEl).style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab")},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){var t=this,e=(0,Qt.Me)(),{params:i,support:s}=t;t.onTouchStart=function(t){var e=this,i=(0,Qt.Me)(),s=(0,Qt.Jj)(),n=e.touchEventsData,{params:o,touches:r,enabled:a}=e;if(a&&(!e.animating||!o.preventInteractionOnTransition)){!e.animating&&o.cssMode&&o.loop&&e.loopFix();let c=t,u=(c.originalEvent&&(c=c.originalEvent),te(c.target));if(("wrapper"!==o.touchEventsTarget||u.closest(e.wrapperEl).length)&&(n.isTouchEvent="touchstart"===c.type,n.isTouchEvent||!("which"in c)||3!==c.which)&&!(!n.isTouchEvent&&"button"in c&&0=s.innerWidth-d)){if("prevent"!==h)return;t.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=l,r.startY=a,n.touchStartTime=ie(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,0o.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(to.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&e.activeElement&&d.target===e.activeElement&&te(d.target).is(s.focusableElements))s.isMoved=!0,i.allowClick=!1;else if(s.allowTouchCallbacks&&i.emit("touchMove",d),!(d.targetTouches&&1n.touchAngle:90-l>n.touchAngle)),s.isScrolling&&i.emit("touchMoveOpposite",d),void 0!==s.startMoving||o.currentX===o.startX&&o.currentY===o.startY||(s.startMoving=!0),s.isScrolling)s.isTouched=!1;else if(s.startMoving){i.allowClick=!1,!n.cssMode&&d.cancelable&&d.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&d.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",d)),i.emit("sliderMove",d),s.isMoved=!0;let t=i.isHorizontal()?e:h,a=(o.diff=t,t*=n.touchRatio,r&&(t=-t),i.swipeDirection=0i.minTranslate()?(a=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+t)**l)):t<0&&s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),0n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,s.currentTranslate=s.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}}}else te(d.target).is(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(o,{startX:t,startY:a,currentX:t,currentY:a}),s.touchStartTime=ie())}else s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",d)}}.bind(t),t.onTouchEnd=function(t){const e=this;var i=e.touchEventsData,{params:s,touches:n,rtlTranslate:o,slidesGrid:r,enabled:a}=e;if(a){let h=t;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",h),i.allowTouchCallbacks=!1,i.isTouched)if(s.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1),a=ie(),t=a-i.touchStartTime,e.allowClick&&(l=h.path||h.composedPath&&h.composedPath(),e.updateClickedSlide(l&&l[0]||h.target),e.emit("tap click",h),t<300)&&a-i.lastClickTime<300&&e.emit("doubleTap doubleClick",h),i.lastClickTime=ie(),ee((()=>{e.destroyed||(e.allowClick=!0)})),i.isTouched&&i.isMoved&&e.swipeDirection&&0!==n.diff&&i.currentTranslate!==i.startTranslate){let n;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,n=s.followFinger?o?e.translate:-e.translate:-i.currentTranslate,!s.cssMode)if(e.params.freeMode&&s.freeMode.enabled)e.freeMode.onTouchEnd({currentPos:n});else{let i=0,o=e.slidesSizesGrid[0];for(let t=0;t=r[t]&&n=r[t]&&(i=t,o=r[r.length-1]-r[r.length-2])}let a=null,d=null;s.rewind&&(e.isBeginning?d=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(a=0));var l=(n-r[i])/o;const c=is.longSwipesMs?s.longSwipes?("next"===e.swipeDirection&&(l>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?a:i+c):e.slideTo(i)),"prev"===e.swipeDirection&&(l>1-s.longSwipesRatio?e.slideTo(i+c):null!==d&&l<0&&Math.abs(l)>s.longSwipesRatio?e.slideTo(d):e.slideTo(i))):e.slideTo(e.activeIndex):s.shortSwipes?!e.navigation||h.target!==e.navigation.nextEl&&h.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==a?a:i+c),"prev"===e.swipeDirection&&e.slideTo(null!==d?d:i)):h.target===e.navigation.nextEl?e.slideTo(i+c):e.slideTo(i):e.slideTo(e.activeIndex)}}else i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;else i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1}}.bind(t),i.cssMode&&(t.onScroll=function(){var t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(s){let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses(),s=t.maxTranslate()-t.minTranslate(),(n=0==s?0:(t.translate-t.minTranslate())/s)!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}.bind(t)),t.onClick=function(t){this.enabled&&!this.allowClick&&(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation)&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation())}.bind(t),s.touch&&!we&&(e.addEventListener("touchstart",ve),we=!0),ye(t,"on")},detachEvents:function(){ye(this,"off")}},breakpoints:{setBreakpoint:function(){var t,e,i,s,n=this,{activeIndex:o,initialized:r,loopedSlides:a=0,params:l,$el:h}=n,d=l.breakpoints;d&&0!==Object.keys(d).length&&(t=n.getBreakpoint(d,n.params.breakpointsBase,n.el))&&n.currentBreakpoint!==t&&(d=(t in d?d[t]:void 0)||n.originalParams,i=xe(n,l),s=xe(n,d),e=l.enabled,i&&!s?(h.removeClass(`${l.containerModifierClass}grid ${l.containerModifierClass}grid-column`),n.emitContainerClasses()):!i&&s&&(h.addClass(l.containerModifierClass+"grid"),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===l.grid.fill)&&h.addClass(l.containerModifierClass+"grid-column"),n.emitContainerClasses()),i=d.direction&&d.direction!==l.direction,s=l.loop&&(d.slidesPerView!==l.slidesPerView||i),i&&r&&n.changeDirection(),oe(n.params,d),h=n.params.enabled,Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),e&&!h?n.disable():!e&&h&&n.enable(),n.currentBreakpoint=t,n.emit("_beforeBreakpoint",d),s&&r&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(o-a+n.loopedSlides,0,!1)),n.emit("breakpoint",d))},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),t&&("container"!==e||i)){let a=!1;var s=(0,Qt.Jj)();const l="window"===e?s.innerHeight:i.clientHeight;var n=Object.keys(t).map((t=>{var e;return"string"==typeof t&&0===t.indexOf("@")?(e=parseFloat(t.substr(1)),{value:l*e,point:t}):{value:t,point:t}}));n.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;tt):e.isLocked=1===e.snapGrid.length,!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),i&&i!==e.isLocked&&(e.isEnd=!1),i!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var{classNames:t,params:e,rtl:i,$el:s,device:n,support:o}=this,o=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((s=>{t[s]&&i.push(e+s)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",e.direction,{"pointer-events":!o.touch},{"free-mode":this.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&1{i=oe({},e,{el:i}),t.push(new Ie(i))})),t}const o=this,r=(o.__swiper__=!0,o.support=ce(),o.device=ue({userAgent:e.userAgent}),o.browser=pe(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],e.modules&&Array.isArray(e.modules)&&o.modules.push(...e.modules),{});o.modules.forEach((t=>{var i,s;t({swiper:o,extendParams:(i=e,s=r,function(t){void 0===t&&(t={});var e=Object.keys(t)[0],n=t[e];"object"==typeof n&&null!==n&&(0<=["navigation","pagination","scrollbar"].indexOf(e)&&!0===i[e]&&(i[e]={auto:!0}),e in i&&"enabled"in n)&&(!0===i[e]&&(i[e]={enabled:!0}),"object"!=typeof i[e]||"enabled"in i[e]||(i[e].enabled=!0),i[e]||(i[e]={enabled:!1})),oe(s,t)}),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));var a,l=oe({},Ce,r);return o.params=oe({},l,be,e),o.originalParams=oe({},o.params),o.passedParams=oe({},e),o.params&&o.params.on&&Object.keys(o.params.on).forEach((t=>{o.on(t,o.params.on[t])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),o.$=te,Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:te(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===o.params.direction},isVertical(){return"vertical"===o.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],a=["pointerdown","pointermove","pointerup"],o.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},o.touchEventsDesktop={start:a[0],move:a[1],end:a[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:ie(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(t,e){t=Math.min(Math.max(t,0),1);var i=this.minTranslate(),s=this.maxTranslate();this.translateTo((s-i)*t+i,void 0===e?0:e),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const t=this;var e;t.params._emitClasses&&t.el&&(e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass))),t.emit("_containerClasses",e.join(" ")))}getSlideClasses(t){const e=this;return t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(t.params._emitClasses&&t.el){const e=[];t.slides.each((i=>{var s=t.getSlideClasses(i);e.push({slideEl:i,classNames:s}),t.emit("_slideClass",i,s)})),t.emit("_slideClasses",e)}}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);var{params:i,slides:s,slidesGrid:n,slidesSizesGrid:o,size:r,activeIndex:a}=this;let l=1;if(i.centeredSlides){let t,e=s[a].swiperSlideSize;for(let i=a+1;ir)&&(t=!0);for(let i=a-1;0<=i;--i)s[i]&&!t&&(e+=s[i].swiperSlideSize,l+=1,e>r)&&(t=!0)}else if("current"===t)for(let h=a+1;h{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}mount(t){const e=this;if(!e.mounted){const s=te(t||e.params.el);if(!(t=s[0]))return!1;t.swiper=e;const n=()=>"."+(e.params.wrapperClass||"").trim().split(" ").join(".");var i;let o=t&&t.shadowRoot&&t.shadowRoot.querySelector?((i=te(t.shadowRoot.querySelector(n()))).children=t=>s.children(t),i):s.children(n());0===o.length&&e.params.createElements&&(i=(0,Qt.Me)().createElement("div"),o=te(i),i.className=e.params.wrapperClass,s.append(i),s.children("."+e.params.slideClass).each((t=>{o.append(t)}))),Object.assign(e,{$el:s,el:t,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===s.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===s.css("direction")),wrongRTL:"-webkit-box"===o.css("display")})}return!0}init(t){var e=this;return e.initialized||!1!==e.mount(t)&&(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this;var{params:s,$el:n,$wrapperEl:o,slides:r}=i;if(void 0!==i.params&&!i.destroyed){if(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),n.removeAttr("style"),o.removeAttr("style"),r)&&r.length&&r.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index"),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t){i.$el[0].swiper=null;{e=i;const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}}i.destroyed=!0}return null}static extendDefaults(t){oe(be,t)}static get extendedDefaults(){return be}static get defaults(){return Ce}static installModule(t){Ie.prototype.__modules__||(Ie.prototype.__modules__=[]);var e=Ie.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?t.forEach((t=>Ie.installModule(t))):Ie.installModule(t),Ie}}Object.keys($e).forEach((t=>{Object.keys($e[t]).forEach((e=>{Ie.prototype[e]=$e[t][e]}))})),Ie.use([function(t){let{swiper:e,on:i,emit:s}=t;const n=(0,Qt.Jj)();let o=null,r=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeResize"),s("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};i("init",(()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(o=new ResizeObserver((t=>{r=n.requestAnimationFrame((()=>{var{width:i,height:s}=e;let n=i,o=s;t.forEach((t=>{var{contentBoxSize:t,contentRect:i,target:s}=t;s&&s!==e.el||(n=i?i.width:(t[0]||t).inlineSize,o=i?i.height:(t[0]||t).blockSize)})),n===i&&o===s||a()}))}))).observe(e.el):(n.addEventListener("resize",a),n.addEventListener("orientationchange",l))})),i("destroy",(()=>{r&&n.cancelAnimationFrame(r),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",l)}))},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;function o(t,e){void 0===e&&(e={});var i=new(a.MutationObserver||a.WebkitMutationObserver)((t=>{var e;1===t.length?n("observerUpdate",t[0]):(e=function(){n("observerUpdate",t[0])},a.requestAnimationFrame?a.requestAnimationFrame(e):a.setTimeout(e,0))}));i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),r.push(i)}const r=[],a=(0,Qt.Jj)();i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(e.params.observer){if(e.params.observeParents){var t=e.$el.parents();for(let e=0;e{r.forEach((t=>{t.disconnect()})),r.splice(0,r.length)}))}]);var Se=Ie;function ke(t,e,i,s){const n=(0,Qt.Me)();return t.params.createElements&&Object.keys(s).forEach((o=>{if(!i[o]&&!0===i.auto){let r=t.$el.children("."+s[o])[0];r||((r=n.createElement("div")).className=s[o],t.$el.append(r)),i[o]=r,e[o]=r}})),i}function Te(t){return"."+(t=void 0===t?"":t).trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function Pe(t){const{effect:e,swiper:i,on:s,setTranslate:n,setTransition:o,overwriteParams:r,perspective:a}=t;let l;s("beforeInit",(()=>{var t;i.params.effect===e&&(i.classNames.push(""+i.params.containerModifierClass+e),a&&a()&&i.classNames.push(i.params.containerModifierClass+"3d"),t=r?r():{},Object.assign(i.params,t),Object.assign(i.originalParams,t))})),s("setTranslate",(()=>{i.params.effect===e&&n()})),s("setTransition",((t,s)=>{i.params.effect===e&&o(s)})),s("virtualUpdate",(()=>{i.slides.length||(l=!0),requestAnimationFrame((()=>{l&&i.slides.length&&(n(),l=!1)}))}))}function Le(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function Me(t){let{swiper:e,duration:i,transformEl:s,allSlides:n}=t;const{slides:o,activeIndex:r,$wrapperEl:a}=e;if(e.params.virtualTranslate&&0!==i){let t,i=!1;(t=n?s?o.find(s):o:s?o.eq(r).find(s):o.eq(r)).transitionEnd((()=>{if(!i&&e&&!e.destroyed){i=!0,e.animating=!1;var t=["webkitTransitionEnd","transitionend"];for(let e=0;e`),t.append(n)),n}i(6229),i(7330),i(2062),Se.use([function(t){let e,{swiper:i,extendParams:s,on:n,emit:o}=t;function r(t,e){var s=i.params.virtual;return s.cache&&i.virtual.cache[e]?i.virtual.cache[e]:((t=s.renderSlide?te(s.renderSlide.call(i,t,e)):te(`
${t}
`)).attr("data-swiper-slide-index")||t.attr("data-swiper-slide-index",e),s.cache&&(i.virtual.cache[e]=t),t)}function a(t){var{slidesPerView:e,slidesPerGroup:s,centeredSlides:n}=i.params,{addSlidesBefore:a,addSlidesAfter:l}=i.params.virtual;const{from:h,to:d,slides:c,slidesGrid:u,offset:p}=i.virtual;i.params.cssMode||i.updateActiveIndex();var g=i.activeIndex||0;let m,f,w;m=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",w=n?(f=Math.floor(e/2)+s+l,Math.floor(e/2)+s+a):(f=e+(s-1)+l,s+a);const v=Math.max((g||0)-w,0),y=Math.min((g||0)+f,c.length-1);function x(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load(),o("virtualUpdate")}if(n=(i.slidesGrid[v]||0)-(i.slidesGrid[0]||0),Object.assign(i.virtual,{from:v,to:y,offset:n,slidesGrid:i.slidesGrid}),h!==v||d!==y||t)if(i.params.virtual.renderExternal)i.params.virtual.renderExternal.call(i,{offset:n,from:v,to:y,slides:function(){var t=[];for(let e=v;e<=y;e+=1)t.push(c[e]);return t}()}),i.params.virtual.renderExternalUpdate?x():o("virtualUpdate");else{var C=[],$=[];if(t)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(let t=h;t<=d;t+=1)(ty)&&i.$wrapperEl.find(`.${i.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e=v&&e<=y&&(void 0===d||t?$.push(e):(e>d&&$.push(e),e{i.$wrapperEl.append(r(c[t],t))})),C.sort(((t,e)=>e-t)).forEach((t=>{i.$wrapperEl.prepend(r(c[t],t))})),i.$wrapperEl.children(".swiper-slide").css(m,n+"px"),x()}else i.slidesGrid!==u&&n!==p&&i.slides.css(m,n+"px"),i.updateProgress(),o("virtualUpdate")}s({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},n("beforeInit",(()=>{i.params.virtual.enabled&&(i.virtual.slides=i.params.virtual.slides,i.classNames.push(i.params.containerModifierClass+"virtual"),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,i.params.initialSlide||a())})),n("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(e),e=setTimeout((()=>{a()}),100)):a())})),n("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&re(i.wrapperEl,"--swiper-virtual-size",i.virtualSize+"px")})),Object.assign(i.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e{var s=t[i],o=s.attr("data-swiper-slide-index");o&&s.attr("data-swiper-slide-index",parseInt(o,10)+n),e[parseInt(i,10)+n]=s})),i.virtual.cache=e}a(!0),i.slideTo(s,0)},removeSlide:function(t){if(null!=t){let e=i.activeIndex;if(Array.isArray(t))for(let s=t.length-1;0<=s;--s)i.virtual.slides.splice(t[s],1),i.params.virtual.cache&&delete i.virtual.cache[t[s]],t[s]{e.params.keyboard.enabled&&l()})),s("destroy",(()=>{e.keyboard.enabled&&h()})),Object.assign(e.keyboard,{enable:l,disable:h})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const o=(0,Qt.Jj)();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let r,a,l=ie();const h=[];function d(){e.enabled&&(e.mouseEntered=!0)}function c(){e.enabled&&(e.mouseEntered=!1)}function u(t){e.params.mousewheel.thresholdDelta&&t.deltaMath.abs(l.pixelY)))return!0;c=-l.pixelX*o}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;c=-l.pixelY}else c=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*o:-l.pixelY;if(0===c)return!0;s.invert&&(c=-c);let p=e.getTranslate()+c*s.sensitivity;if((p=p>=e.minTranslate()?e.minTranslate():p)<=e.maxTranslate()&&(p=e.maxTranslate()),(!!e.params.loop||!(p===e.minTranslate()||p===e.maxTranslate()))&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:ie(),delta:Math.abs(c),direction:Math.sign(c)};if(o=a&&t.time=e.minTranslate()?e.minTranslate():d)<=e.maxTranslate()&&(d=e.maxTranslate()),e.setTransition(0),e.setTranslate(d),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!l&&e.isBeginning||!s&&e.isEnd)&&e.updateSlidesClasses(),e.params.freeMode.sticky){if(clearTimeout(r),r=void 0,15<=h.length&&h.shift(),l=h.length?h[h.length-1]:void 0,s=h[0],h.push(t),l&&(t.delta>l.delta||t.direction!==l.direction))h.splice(0);else if(15<=h.length&&t.time-s.time<500&&1<=s.delta-t.delta&&t.delta<=6){const i=0{e.slideToClosest(e.params.speed,!0,void 0,i)}),0)}r=r||ee((()=>{a=t,h.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)}),500)}if(o||n("scroll",i),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),d===e.minTranslate()||d===e.maxTranslate())return!0}}else if(l={time:ie(),delta:Math.abs(c),direction:Math.sign(c),raw:t},2<=h.length&&h.shift(),s=h.length?h[h.length-1]:void 0,h.push(l),(!s||l.direction!==s.direction||l.delta>s.delta||l.time>s.time+150)&&u(l),function(t){var i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return 1}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return 1}(l))return!0;return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}}function g(t){let i=e.$el;(i="container"!==e.params.mousewheel.eventsTarget?te(e.params.mousewheel.eventsTarget):i)[t]("mouseenter",d),i[t]("mouseleave",c),i[t]("wheel",p)}function m(){if(e.params.cssMode)e.wrapperEl.removeEventListener("wheel",p);else{if(e.mousewheel.enabled)return!1;g("on"),e.mousewheel.enabled=!0}return!0}function f(){if(e.params.cssMode)e.wrapperEl.addEventListener(event,p);else{if(!e.mousewheel.enabled)return!1;g("off"),e.mousewheel.enabled=!1}return!0}s("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&f(),e.params.mousewheel.enabled&&m()})),s("destroy",(()=>{e.params.cssMode&&m(),e.mousewheel.enabled&&f()})),Object.assign(e.mousewheel,{enable:m,disable:f})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;function o(t){let i;return t&&(i=te(t),e.params.uniqueNavElements)&&"string"==typeof t&&1{d(),a()})),s("toEdge fromEdge lock unlock",(()=>{a()})),s("destroy",(()=>{c()})),s("enable disable",(()=>{var{$nextEl:t,$prevEl:i}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),s("click",((t,i)=>{var{$nextEl:s,$prevEl:o}=e.navigation;i=i.target;if(e.params.navigation.hideOnClick&&!te(i).is(o)&&!te(i).is(s)&&(!(e.pagination&&e.params.pagination&&e.params.pagination.clickable)||e.pagination.el!==i&&!e.pagination.el.contains(i))){let t;s?t=s.hasClass(e.params.navigation.hiddenClass):o&&(t=o.hasClass(e.params.navigation.hiddenClass)),n(!0===t?"navigationShow":"navigationHide"),s&&s.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}})),Object.assign(e.navigation,{update:a,init:d,destroy:c})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;t="swiper-pagination",i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:t+"-bullet",bulletActiveClass:t+"-bullet-active",modifierClass:t+"-",currentClass:t+"-current",totalClass:t+"-total",hiddenClass:t+"-hidden",progressbarFillClass:t+"-progressbar-fill",progressbarOppositeClass:t+"-progressbar-opposite",clickableClass:t+"-clickable",lockClass:t+"-lock",horizontalClass:t+"-horizontal",verticalClass:t+"-vertical"}}),e.pagination={el:null,$el:null,bullets:[]};let o,r=0;function a(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,i){var s=e.params.pagination["bulletActiveClass"];t[i]().addClass(s+"-"+i)[i]().addClass(s+`-${i}-`+i)}function h(){var t=e.rtl;const i=e.params.pagination;if(!a()){var s=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,h=e.pagination.$el;let a;var d=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((a=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>s-1-2*e.loopedSlides&&(a-=s-2*e.loopedSlides),a>d-1&&(a-=d),a<0&&"bullets"!==e.params.paginationType&&(a=d+a)):a=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&0i.dynamicMainBullets-1?r=i.dynamicMainBullets-1:r<0&&(r=0)),n=Math.max(a-r,0),d=n+(Math.min(c.length,i.dynamicMainBullets)-1),g=(d+n)/2),c.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>""+i.bulletActiveClass+t)).join(" ")),1{t=te(t);var e=t.index();e===a&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(e>=n&&e<=d&&t.addClass(i.bulletActiveClass+"-main"),e===n&&l(t,"prev"),e===d)&&l(t,"next")}));else{s=c.eq(a);var u=s.index();if(s.addClass(i.bulletActiveClass),i.dynamicBullets){s=c.eq(n);var p=c.eq(d);for(let t=n;t<=d;t+=1)c.eq(t).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(u>=c.length){for(let t=i.dynamicMainBullets;0<=t;--t)c.eq(c.length-t).addClass(i.bulletActiveClass+"-main");c.eq(c.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else l(s,"prev"),l(p,"next");else l(s,"prev"),l(p,"next")}}i.dynamicBullets&&(u=Math.min(c.length,i.dynamicMainBullets+4),s=(o*u-o)/2-g*o,p=t?"right":"left",c.css(e.isHorizontal()?p:"top",s+"px"))}if("fraction"===i.type&&(h.find(Te(i.currentClass)).text(i.formatFractionCurrent(a+1)),h.find(Te(i.totalClass)).text(i.formatFractionTotal(d))),"progressbar"===i.type){let t;t=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical",u=(a+1)/d;let s=1,n=1;"horizontal"===t?s=u:n=u,h.find(Te(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${s}) scaleY(${n})`).transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(h.html(i.renderCustom(e,a+1,d)),n("paginationRender",h[0])):n("paginationUpdate",h[0]),e.params.watchOverflow&&e.enabled&&h[e.isLocked?"addClass":"removeClass"](i.lockClass)}}function d(){var t=e.params.pagination;if(!a()){var i=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,s=e.pagination.$el;let o="";if("bullets"===t.type){let n=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&n>i&&(n=i);for(let i=0;i`;s.html(o),e.pagination.bullets=s.find(Te(t.bulletClass))}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `,s.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``,s.html(o)),"custom"!==t.type&&n("paginationRender",e.pagination.$el[0])}}function c(){e.params.pagination=ke(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});var t=e.params.pagination;if(t.el){let i=te(t.el);0===i.length||(e.params.uniqueNavElements&&"string"==typeof t.el&&1te(t).parents(".swiper")[0]===e.el))),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),i.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),r=0,t.dynamicMainBullets<1)&&(t.dynamicMainBullets=1),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click",Te(t.bulletClass),(function(t){t.preventDefault();let i=te(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object.assign(e.pagination,{$el:i,el:i[0]}),e.enabled)||i.addClass(t.lockClass)}}function u(){var t,i=e.params.pagination;a()||((t=e.pagination.$el).removeClass(i.hiddenClass),t.removeClass(i.modifierClass+i.type),t.removeClass(e.isHorizontal()?i.horizontalClass:i.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(i.bulletActiveClass),i.clickable&&t.off("click",Te(i.bulletClass)))}s("init",(()=>{c(),d(),h()})),s("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&h()})),s("snapIndexChange",(()=>{e.params.loop||h()})),s("slidesLengthChange",(()=>{e.params.loop&&(d(),h())})),s("snapGridLengthChange",(()=>{e.params.loop||(d(),h())})),s("destroy",(()=>{u()})),s("enable disable",(()=>{var t=e.pagination["$el"];t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),s("lock unlock",(()=>{h()})),s("click",((t,i)=>{i=i.target;var s=e.pagination["$el"];e.params.pagination.el&&e.params.pagination.hideOnClick&&0l&&(r=l+h):h<0?(r=a+h,h=0):h+a>l&&(r=l-h),e.isHorizontal()?(n.transform(`translate3d(${h}px, 0, 0)`),n[0].style.width=r+"px"):(n.transform(`translate3d(0px, ${h}px, 0)`),n[0].style.height=r+"px"),t.hide&&(clearTimeout(c),o[0].style.opacity=1,c=setTimeout((()=>{o[0].style.opacity=0,o.transition(400)}),1e3))}}function g(){var t,i,s;e.params.scrollbar.el&&e.scrollbar.el&&(t=e["scrollbar"],({$dragEl:i,$el:s}=t),i[0].style.width="",i[0].style.height="",l=e.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),a="auto"===e.params.scrollbar.dragSize?l*h:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=a+"px":i[0].style.height=a+"px",s[0].style.display=1<=h?"none":"",e.params.scrollbar.hide&&(s[0].style.opacity=0),e.params.watchOverflow)&&e.enabled&&t.$el[e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}function m(t){return e.isHorizontal()?("touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0]:t).clientX:("touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0]:t).clientY}function f(t){var{scrollbar:i,rtlTranslate:s}=e,i=i["$el"];let n;n=(m(t)-i.offset()[e.isHorizontal()?"left":"top"]-(null!==r?r:a/2))/(l-a),n=Math.max(Math.min(n,1),0),s&&(n=1-n),t=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*n,e.updateProgress(t),e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}function w(t){var i=e.params.scrollbar,{scrollbar:s,$wrapperEl:o}=e,{$el:s,$dragEl:a}=s;d=!0,r=t.target===a[0]||t.target===a?m(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.transition(100),a.transition(100),f(t),clearTimeout(u),s.transition(0),i.hide&&s.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),n("scrollbarDragStart",t)}function v(t){var{scrollbar:i,$wrapperEl:s}=e,{$el:i,$dragEl:o}=i;d&&(t.preventDefault?t.preventDefault():t.returnValue=!1,f(t),s.transition(0),i.transition(0),o.transition(0),n("scrollbarDragMove",t))}function y(t){var i=e.params.scrollbar,{scrollbar:s,$wrapperEl:o}=e;const r=s["$el"];d&&(d=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),o.transition("")),i.hide&&(clearTimeout(u),u=ee((()=>{r.css("opacity",0),r.transition(400)}),1e3)),n("scrollbarDragEnd",t),i.snapOnRelease)&&e.slideToClosest()}function x(t){var{scrollbar:i,touchEventsTouch:s,touchEventsDesktop:n,params:r,support:a}=e,i=i.$el[0],l=!(!a.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},r=!(!a.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};i&&(t="on"===t?"addEventListener":"removeEventListener",a.touch?(i[t](s.start,w,l),i[t](s.move,v,l),i[t](s.end,y,r)):(i[t](n.start,w,l),o[t](n.move,v,l),o[t](n.end,y,r)))}function C(){var{scrollbar:t,$el:i}=e,s=(e.params.scrollbar=ke(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"}),e.params.scrollbar);if(s.el){let n=te(s.el),o=(n=e.params.uniqueNavElements&&"string"==typeof s.el&&1`),n.append(o)),Object.assign(t,{$el:n,el:n[0],$dragEl:o,dragEl:o[0]}),s.draggable&&e.params.scrollbar.el&&x("on"),n&&n[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}}function $(){e.params.scrollbar.el&&x("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),e.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},s("init",(()=>{C(),g(),p()})),s("update resize observerUpdate lock unlock",(()=>{g()})),s("setTranslate",(()=>{p()})),s("setTransition",((t,i)=>{e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(i)})),s("enable disable",(()=>{var t=e.scrollbar["$el"];t&&t[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)})),s("destroy",(()=>{$()})),Object.assign(e.scrollbar,{updateSize:g,setTranslate:p,init:C,destroy:$})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({parallax:{enabled:!1}});const n=(t,i)=>{var s=e["rtl"],n=(t=te(t),s=s?-1:1,t.attr("data-swiper-parallax")||"0");let o=t.attr("data-swiper-parallax-x"),r=t.attr("data-swiper-parallax-y");var a=t.attr("data-swiper-parallax-scale"),l=t.attr("data-swiper-parallax-opacity");o||r?(o=o||"0",r=r||"0"):e.isHorizontal()?(o=n,r="0"):(r=n,o="0"),o=0<=o.indexOf("%")?parseInt(o,10)*i*s+"%":o*i*s+"px",r=0<=r.indexOf("%")?parseInt(r,10)*i+"%":r*i+"px",null!=l&&(n=l-(l-1)*(1-Math.abs(i)),t[0].style.opacity=n),null==a?t.transform(`translate3d(${o}, ${r}, 0px)`):(s=a-(a-1)*(1-Math.abs(i)),t.transform(`translate3d(${o}, ${r}, 0px) scale(${s})`))},o=()=>{const{$el:t,slides:i,progress:s,snapGrid:o}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{n(t,s)})),i.each(((t,i)=>{let r=t.progress;1{n(t,r)}))}))};s("beforeInit",(()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)})),s("init",(()=>{e.params.parallax.enabled&&o()})),s("setTranslate",(()=>{e.params.parallax.enabled&&o()})),s("setTransition",((t,i)=>{var s;e.params.parallax.enabled&&(void 0===(s=i)&&(s=e.params.speed),e.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{t=te(t);let e=parseInt(t.attr("data-swiper-parallax-duration"),10)||s;0===s&&(e=0),t.transition(e)})))}))},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const o=(0,Qt.Jj)();i({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let r,a,l,h=1,d=!1;const c={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},u={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},p={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;function m(t){var e,i,s;return t.targetTouches.length<2?1:(e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,s=t.targetTouches[1].pageX,t=t.targetTouches[1].pageY,Math.sqrt((s-e)**2+(t-i)**2))}function f(t){var i=e.support,s=e.params.zoom;if(a=!1,l=!1,!i.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;a=!0,c.scaleStart=m(t)}c.$slideEl&&c.$slideEl.length||(c.$slideEl=te(t.target).closest("."+e.params.slideClass),0===c.$slideEl.length&&(c.$slideEl=e.slides.eq(e.activeIndex)),c.$imageEl=c.$slideEl.find("."+s.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),c.$imageWrapEl=c.$imageEl.parent("."+s.containerClass),c.maxRatio=c.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,0!==c.$imageWrapEl.length)?(c.$imageEl&&c.$imageEl.transition(0),d=!0):c.$imageEl=void 0}function w(t){var i=e.support,s=e.params.zoom,n=e.zoom;if(!i.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;l=!0,c.scaleMove=m(t)}c.$imageEl&&0!==c.$imageEl.length?(i.gestures?n.scale=t.scale*h:n.scale=c.scaleMove/c.scaleStart*h,n.scale>c.maxRatio&&(n.scale=c.maxRatio-1+(n.scale-c.maxRatio+1)**.5),n.scaleu.touchesStart.x))return void(u.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.yu.touchesStart.y))return void(u.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),u.isMoved=!0,u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX,u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY,u.currentXu.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentYu.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),p.prevPositionX||(p.prevPositionX=u.touchesCurrent.x),p.prevPositionY||(p.prevPositionY=u.touchesCurrent.y),p.prevTime||(p.prevTime=Date.now()),p.x=(u.touchesCurrent.x-p.prevPositionX)/(Date.now()-p.prevTime)/2,p.y=(u.touchesCurrent.y-p.prevPositionY)/(Date.now()-p.prevTime)/2,Math.abs(u.touchesCurrent.x-p.prevPositionX)<2&&(p.x=0),Math.abs(u.touchesCurrent.y-p.prevPositionY)<2&&(p.y=0),p.prevPositionX=u.touchesCurrent.x,p.prevPositionY=u.touchesCurrent.y,p.prevTime=Date.now(),c.$imageWrapEl.transform(`translate3d(${u.currentX}px, ${u.currentY}px,0)`)}}}function x(){var t=e.zoom;c.$slideEl&&e.previousIndex!==e.activeIndex&&(c.$imageEl&&c.$imageEl.transform("translate3d(0,0,0) scale(1)"),c.$imageWrapEl&&c.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,h=1,c.$slideEl=void 0,c.$imageEl=void 0,c.$imageWrapEl=void 0)}function C(t){var i,s,n,r,a=e.zoom,l=e.params.zoom;if(c.$slideEl||(t&&t.target&&(c.$slideEl=te(t.target).closest("."+e.params.slideClass)),c.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?c.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):c.$slideEl=e.slides.eq(e.activeIndex)),c.$imageEl=c.$slideEl.find("."+l.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),c.$imageWrapEl=c.$imageEl.parent("."+l.containerClass)),c.$imageEl&&0!==c.$imageEl.length&&c.$imageWrapEl&&0!==c.$imageWrapEl.length){let d,p,g,m;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),c.$slideEl.addClass(""+l.zoomedSlideClass),p=void 0===u.touchesStart.x&&t?(d=("touchend"===t.type?t.changedTouches[0]:t).pageX,("touchend"===t.type?t.changedTouches[0]:t).pageY):(d=u.touchesStart.x,u.touchesStart.y),a.scale=c.$imageWrapEl.attr("data-swiper-zoom")||l.maxRatio,h=c.$imageWrapEl.attr("data-swiper-zoom")||l.maxRatio,t?(l=c.$slideEl[0].offsetWidth,t=c.$slideEl[0].offsetHeight,i=c.$slideEl.offset().left+o.scrollX,s=c.$slideEl.offset().top+o.scrollY,i=i+l/2-d,s=s+t/2-p,n=c.$imageEl[0].offsetWidth,r=c.$imageEl[0].offsetHeight,n*=a.scale,r*=a.scale,n=-(l=Math.min(l/2-n/2,0)),r=-(t=Math.min(t/2-r/2,0)),g=i*a.scale,m=s*a.scale,(g=gn&&(g=n),(m=mr&&(m=r)):(g=0,m=0),c.$imageWrapEl.transition(300).transform(`translate3d(${g}px, ${m}px,0)`),c.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${a.scale})`)}}function $(){var t=e.zoom,i=e.params.zoom;c.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?c.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):c.$slideEl=e.slides.eq(e.activeIndex),c.$imageEl=c.$slideEl.find("."+i.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),c.$imageWrapEl=c.$imageEl.parent("."+i.containerClass)),c.$imageEl&&0!==c.$imageEl.length&&c.$imageWrapEl&&0!==c.$imageWrapEl.length&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,h=1,c.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),c.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),c.$slideEl.removeClass(""+i.zoomedSlideClass),c.$slideEl=void 0)}function b(t){var i=e.zoom;i.scale&&1!==i.scale?$():C(t)}function I(){var t=e.support;return{passiveListener:!("touchstart"!==e.touchEvents.start||!t.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!t.passiveListener||{passive:!1,capture:!0}}}function S(){return"."+e.params.slideClass}function k(t){var i=I()["passiveListener"],s=S();e.$wrapperEl[t]("gesturestart",s,f,i),e.$wrapperEl[t]("gesturechange",s,w,i),e.$wrapperEl[t]("gestureend",s,v,i)}function T(){r||(r=!0,k("on"))}function P(){r&&(r=!1,k("off"))}function L(){var t,i,s,n=e.zoom;n.enabled||(n.enabled=!0,n=e.support,({passiveListener:t,activeListenerWithCapture:i}=I()),s=S(),n.gestures?(e.$wrapperEl.on(e.touchEvents.start,T,t),e.$wrapperEl.on(e.touchEvents.end,P,t)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,s,f,t),e.$wrapperEl.on(e.touchEvents.move,s,w,i),e.$wrapperEl.on(e.touchEvents.end,s,v,t),e.touchEvents.cancel)&&e.$wrapperEl.on(e.touchEvents.cancel,s,v,t),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,y,i))}function M(){var t,i,s,n=e.zoom;n.enabled&&(t=e.support,({passiveListener:n,activeListenerWithCapture:i}=(n.enabled=!1,I())),s=S(),t.gestures?(e.$wrapperEl.off(e.touchEvents.start,T,n),e.$wrapperEl.off(e.touchEvents.end,P,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,s,f,n),e.$wrapperEl.off(e.touchEvents.move,s,w,i),e.$wrapperEl.off(e.touchEvents.end,s,v,n),e.touchEvents.cancel)&&e.$wrapperEl.off(e.touchEvents.cancel,s,v,n),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,y,i))}Object.defineProperty(e.zoom,"scale",{get(){return g},set(t){var e,i;g!==t&&(e=c.$imageEl?c.$imageEl[0]:void 0,i=c.$slideEl?c.$slideEl[0]:void 0,n("zoomChange",t,e,i)),g=t}}),s("init",(()=>{e.params.zoom.enabled&&L()})),s("destroy",(()=>{M()})),s("touchStart",((t,i)=>{var s;e.zoom.enabled&&(s=e.device,c.$imageEl)&&0!==c.$imageEl.length&&!u.isTouched&&(s.android&&i.cancelable&&i.preventDefault(),u.isTouched=!0,u.touchesStart.x=("touchstart"===i.type?i.targetTouches[0]:i).pageX,u.touchesStart.y=("touchstart"===i.type?i.targetTouches[0]:i).pageY)})),s("touchEnd",((t,i)=>{if(e.zoom.enabled){var s=e.zoom;if(c.$imageEl&&0!==c.$imageEl.length)if(u.isTouched&&u.isMoved){u.isTouched=!1,u.isMoved=!1;let t=300,e=300;var n=p.x*t,o=(n=u.currentX+n,p.y*e),r=(o=u.currentY+o,0!==p.x&&(t=Math.abs((n-u.currentX)/p.x)),0!==p.y&&(e=Math.abs((o-u.currentY)/p.y)),Math.max(t,e));n=(u.currentX=n,u.currentY=o,u.width*s.scale),o=u.height*s.scale;u.minX=Math.min(c.slideWidth/2-n/2,0),u.maxX=-u.minX,u.minY=Math.min(c.slideHeight/2-o/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),c.$imageWrapEl.transition(r).transform(`translate3d(${u.currentX}px, ${u.currentY}px,0)`)}else u.isTouched=!1,u.isMoved=!1}})),s("doubleTap",((t,i)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&b(i)})),s("transitionEnd",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&x()})),s("slideChange",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&x()})),Object.assign(e.zoom,{enable:L,disable:M,in:C,out:$,toggle:b})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t,o=(i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),!(e.lazy={})),r=!1;function a(t,i){void 0===i&&(i=!0);const s=e.params.lazy;if(void 0!==t&&0!==e.slides.length){const o=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t);t=o.find(`.${s.elementClass}:not(.${s.loadedClass}):not(.${s.loadingClass})`),!o.hasClass(s.elementClass)||o.hasClass(s.loadedClass)||o.hasClass(s.loadingClass)||t.push(o[0]),0!==t.length&&t.each((t=>{const r=te(t),l=(r.addClass(s.loadingClass),r.attr("data-background")),h=r.attr("data-src"),d=r.attr("data-srcset"),c=r.attr("data-sizes"),u=r.parent("picture");e.loadImage(r[0],h||l,d,c,!1,(()=>{var t;void 0===e||null===e||!e||e&&!e.params||e.destroyed||(l?(r.css("background-image",`url("${l}")`),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),u.length&&u.children("source").each((t=>{t=te(t),t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),h&&(r.attr("src",h),r.removeAttr("data-src"))),r.addClass(s.loadedClass).removeClass(s.loadingClass),o.find("."+s.preloaderClass).remove(),e.params.loop&&i&&(t=o.attr("data-swiper-slide-index"),o.hasClass(e.params.slideDuplicateClass)?a(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1):a(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)),n("lazyImageReady",o[0],r[0]),e.params.autoHeight&&e.updateAutoHeight())})),n("lazyImageLoad",o[0],r[0])}))}}function l(){const{$wrapperEl:t,params:i,slides:s,activeIndex:n}=e,o=e.virtual&&i.virtual.enabled;var l=i.lazy;let h=i.slidesPerView;function d(e){if(o){if(t.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]`).length)return 1}else if(s[e])return 1}function c(t){return o?te(t).attr("data-swiper-slide-index"):te(t).index()}if("auto"===h&&(h=0),r=r||!0,e.params.watchSlidesProgress)t.children("."+i.slideVisibleClass).each((t=>{a(o?te(t).attr("data-swiper-slide-index"):te(t).index())}));else if(1{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)})),s("init",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?h:l)()})),s("scroll",(()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&l()})),s("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?h:l)()})),s("transitionStart",(()=>{!e.params.lazy.enabled||!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.loadOnTransitionStart||r)||(e.params.lazy.checkInView?h:l)()})),s("transitionEnd",(()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?h:l)()})),s("slideChange",(()=>{var{lazy:t,cssMode:i,watchSlidesProgress:s,touchReleaseOnEdges:n,resistanceRatio:o}=e.params;t.enabled&&(i||s&&(n||0===o))&&l()})),Object.assign(e.lazy,{load:l,loadInSlide:a})},function(t){let{swiper:e,extendParams:i,on:s}=t;function n(t,e){const i=function(){let t,e,i;return(s,n)=>{for(e=-1,t=s.length;1>1]<=n?e=i:t=i;return t}}();let s,n;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(n=i(this.x,t),s=n-1,(t-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function o(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},s("beforeInit",(()=>{e.controller.control=e.params.controller.control})),s("update",(()=>{o()})),s("resize",(()=>{o()})),s("observerUpdate",(()=>{o()})),s("setTranslate",((t,i,s)=>{e.controller.control&&e.controller.setTranslate(i,s)})),s("setTransition",((t,i,s)=>{e.controller.control&&e.controller.setTransition(i,s)})),Object.assign(e.controller,{setTranslate:function(t,i){var s=e.controller.control;let o,r;var a=e.constructor;function l(t){var i,s=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(i=t,e.controller.spline||(e.controller.spline=e.params.loop?new n(e.slidesGrid,i.slidesGrid):new n(e.snapGrid,i.snapGrid)),r=-e.controller.spline.interpolate(-s)),r&&"container"!==e.params.controller.by||(o=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),r=(s-e.minTranslate())*o+t.minTranslate()),e.params.controller.inverse&&(r=t.maxTranslate()-r),t.updateProgress(r),t.setTranslate(r,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(s))for(let e=0;e{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{n&&(i.params.loop&&"slide"===e.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(n))for(o=0;o{r(t),"BUTTON"!==t[0].tagName&&(l(t,"button"),t.on("keydown",p)),d(t,i),t.attr("aria-controls",e)},w=t=>{var i,s;t=t.target.closest("."+e.params.slideClass);t&&e.slides.includes(t)&&(i=e.slides.indexOf(t)===e.activeIndex,s=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(t),i||s||e.slideTo(e.slides.indexOf(t),0))};function v(){const t=e.params.a11y;e.$el.append(n);var i=e.$el,s=(i=(t.containerRoleDescriptionMessage&&h(i,t.containerRoleDescriptionMessage),t.containerMessage&&d(i,t.containerMessage),e.$wrapperEl),i.attr("id")||"swiper-wrapper-"+"x".repeat(s=void 0===(s=16)?16:s).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))),o=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";i.attr("id",s),i.attr("aria-live",o),t.itemRoleDescriptionMessage&&h(te(e.slides),t.itemRoleDescriptionMessage),l(te(e.slides),t.slideRole);const r=(e.params.loop?e.slides.filter((t=>!t.classList.contains(e.params.slideDuplicateClass))):e.slides).length;let a,c;e.slides.each(((i,s)=>{i=te(i),s=e.params.loop?parseInt(i.attr("data-swiper-slide-index"),10):s,d(i,t.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,r))})),e.navigation&&e.navigation.$nextEl&&(a=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(c=e.navigation.$prevEl),a&&a.length&&f(a,s,t.nextSlideMessage),c&&c.length&&f(c,s,t.prevSlideMessage),m()&&e.pagination.$el.on("keydown",Te(e.params.pagination.bulletClass),p),e.$el.on("focus",w,!0)}s("beforeInit",(()=>{n=te(``)})),s("afterInit",(()=>{e.params.a11y.enabled&&v()})),s("fromEdge toEdge afterInit lock unlock",(()=>{var t,i;e.params.a11y.enabled&&!e.params.loop&&!e.params.rewind&&e.navigation&&(({$nextEl:t,$prevEl:i}=e.navigation),i&&0{if(e.params.a11y.enabled){const t=e.params.a11y;g()&&e.pagination.bullets.each((i=>{i=te(i),e.params.pagination.clickable&&(r(i),e.params.pagination.renderBullet||(l(i,"button"),d(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))),i.is("."+e.params.pagination.bulletActiveClass)?i.attr("aria-current","true"):i.removeAttr("aria-current")}))}})),s("destroy",(()=>{if(e.params.a11y.enabled){let t,i;n&&0t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=t=>{var e=(0,Qt.Jj)();let i;return t=(i=t?new URL(t):e.location).pathname.slice(1).split("/").filter((t=>""!==t)),e=t.length,{key:t[e-2],value:t[e-1]}},l=(t,i)=>{var s=(0,Qt.Jj)();if(n&&e.params.history.enabled){let n;n=e.params.url?new URL(e.params.url):s.location,i=e.slides.eq(i);let o=r(i.attr("data-history"));if(0{if(i)for(let o=0,a=e.slides.length;o{o=a(e.params.url),h(e.params.speed,e.paths.value,!1)};s("init",(()=>{var t;e.params.history.enabled&&(t=(0,Qt.Jj)(),e.params.history)&&(t.history&&t.history.pushState?(n=!0,((o=a(e.params.url)).key||o.value)&&(h(0,o.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",d))):(e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0))})),s("destroy",(()=>{var t;e.params.history.enabled&&(t=(0,Qt.Jj)(),e.params.history.replaceState||t.removeEventListener("popstate",d))})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{n&&l(e.params.history.key,e.activeIndex)})),s("slideChange",(()=>{n&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)}))},function(t){let{swiper:e,extendParams:i,emit:s,on:n}=t,o=!1;const r=(0,Qt.Me)(),a=(0,Qt.Jj)(),l=(i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}}),()=>{s("hashChange");var t=r.location.hash.replace("#","");t!==e.slides.eq(e.activeIndex).attr("data-hash")&&void 0!==(t=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index())&&e.slideTo(t)}),h=()=>{var t;o&&e.params.hashNavigation.enabled&&(e.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?a.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||""):(t=(t=e.slides.eq(e.activeIndex)).attr("data-hash")||t.attr("data-history"),r.location.hash=t||""),s("hashSet"))};n("init",(()=>{if(e.params.hashNavigation.enabled&&!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){o=!0;var t=r.location.hash.replace("#","");if(t)for(let s=0,n=e.slides.length;s{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&te(a).off("hashchange",l)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&h()})),n("slideChange",(()=>{o&&e.params.cssMode&&h()}))},function(t){let e,{swiper:i,extendParams:s,on:n,emit:o}=t;function r(){var t=i.slides.eq(i.activeIndex);let s=i.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(s=t.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(e),e=ee((()=>{let t;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),t=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?l():(t=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),o("autoplay")):(t=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.params.loop?(i.loopFix(),t=i.slideNext(i.params.speed,!0,!0),o("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?l():(t=i.slideTo(0,i.params.speed,!0,!0),o("autoplay")):(t=i.slideNext(i.params.speed,!0,!0),o("autoplay")),(i.params.cssMode&&i.autoplay.running||!1===t)&&r()}),s)}function a(){return void 0===e&&!i.autoplay.running&&(i.autoplay.running=!0,o("autoplayStart"),r(),!0)}function l(){return!!i.autoplay.running&&void 0!==e&&(e&&(clearTimeout(e),e=void 0),i.autoplay.running=!1,o("autoplayStop"),!0)}function h(t){!i.autoplay.running||i.autoplay.paused||(e&&clearTimeout(e),i.autoplay.paused=!0,0!==t&&i.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].addEventListener(t,c)})):(i.autoplay.paused=!1,r()))}function d(){var t=(0,Qt.Me)();"hidden"===t.visibilityState&&i.autoplay.running&&h(),"visible"===t.visibilityState&&i.autoplay.paused&&(r(),i.autoplay.paused=!1)}function c(t){i&&!i.destroyed&&i.$wrapperEl&&t.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].removeEventListener(t,c)})),i.autoplay.paused=!1,(i.autoplay.running?r:l)())}function u(){(i.params.autoplay.disableOnInteraction?l:(o("autoplayPause"),h))(),["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].removeEventListener(t,c)}))}function p(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,o("autoplayResume"),r())}i.autoplay={running:!1,paused:!1},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",(()=>{i.params.autoplay.enabled&&(a(),(0,Qt.Me)().addEventListener("visibilitychange",d),i.params.autoplay.pauseOnMouseEnter)&&(i.$el.on("mouseenter",u),i.$el.on("mouseleave",p))})),n("beforeTransitionStart",((t,e,s)=>{i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):l())})),n("sliderFirstMove",(()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?l:h)()})),n("touchEnd",(()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&r()})),n("destroy",(()=>{i.$el.off("mouseenter",u),i.$el.off("mouseleave",p),i.autoplay.running&&l(),(0,Qt.Me)().removeEventListener("visibilitychange",d)})),Object.assign(i.autoplay,{pause:h,run:r,start:a,stop:l})},function(t){let{swiper:e,extendParams:i,on:s}=t,n=(i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}}),!1),o=!1;function r(){var t=e.thumbs.swiper;if(t){var i=t.clickedIndex,s=t.clickedSlide;if(!(s&&te(s).hasClass(e.params.thumbs.slideThumbActiveClass)||null==i)){let n;if(n=t.params.loop?parseInt(te(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){let i=e.activeIndex;e.slides.eq(i).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,i=e.activeIndex),s=e.slides.eq(i).prevAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),t=e.slides.eq(i).nextAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),n=void 0===s||void 0!==t&&t-ie.previousIndex?"next":"prev"):(l=e.realIndex)>e.previousIndex?"next":"prev",a&&(l+="next"===h?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(l)<0&&(i.params.centeredSlides?l=l>d?l-Math.floor(o/2)+1:l+Math.floor(o/2)-1:l>d&&i.params.slidesPerGroup,i.slideTo(l,t?0:void 0))}let h=1;var l=e.params.thumbs.slideThumbActiveClass;if(1{var t=e.params["thumbs"];t&&t.swiper&&(a(),l(!0))})),s("slideChange update resize observerUpdate",(()=>{e.thumbs.swiper&&l()})),s("setTransition",((t,i)=>{var s=e.thumbs.swiper;s&&s.setTransition(i)})),s("beforeDestroy",(()=>{var t=e.thumbs.swiper;t&&o&&t&&t.destroy()})),Object.assign(e.thumbs,{init:a,update:l})},function(t){let{swiper:e,extendParams:i,emit:s,once:n}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){var t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){var{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:ie()})},onTouchEnd:function(t){t=t.currentPos;const{params:i,$wrapperEl:o,rtlTranslate:r,snapGrid:a,touchEventsData:l}=e;var h=ie()-l.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.lengthe.minTranslate())i.freeMode.momentumBounce?(p-e.minTranslate()>c&&(p=e.minTranslate()+c),u=e.minTranslate(),g=!0,l.allowMomentumBounce=!0):p=e.minTranslate(),i.loop&&i.centeredSlides&&(m=!0);else if(i.freeMode.sticky){let t;for(let e=0;e-p){t=e;break}p=-(p=Math.abs(a[t]-p){e.loopFix()})),0!==e.velocity)h=r?Math.abs((-p-e.translate)/e.velocity):Math.abs((p-e.translate)/e.velocity),i.freeMode.sticky&&(t=Math.abs((r?-p:p)-e.translate),d=e.slidesSizesGrid[e.activeIndex],h=t{e&&!e.destroyed&&l.allowMomentumBounce&&(s("momentumBounce"),e.setTransition(i.speed),setTimeout((()=>{e.setTranslate(u),o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(s("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(h),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode&&s("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||h>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function(t){let e,i,s,{swiper:n,extendParams:o}=t;o({grid:{rows:1,fill:"column"}}),n.grid={initSlides:t=>{var o=n.params["slidesPerView"],{rows:r,fill:a}=n.params.grid;i=e/r,s=Math.floor(t/r),e=Math.floor(t/r)===t/r?t:Math.ceil(t/r)*r,"auto"!==o&&"row"===a&&(e=Math.max(e,o*r))},updateSlide:(t,o,r,a)=>{var l,h,{slidesPerGroup:d,spaceBetween:c}=n.params,{rows:u,fill:p}=n.params.grid;let g,m;"row"===p&&1s||g===s&&m===u-1)&&(m+=1)>=u&&(m=0,g+=1)):(m=Math.floor(t/i),g=t-m*i),o.css(a("margin-top"),0!==m?c&&c+"px":"")},updateWrapperSize:(t,i,s)=>{var{spaceBetween:o,centeredSlides:r,roundLengths:a}=n.params,l=n.params.grid["rows"];if(n.virtualSize=(t+o)*e,n.virtualSize=Math.ceil(n.virtualSize/l)-o,n.$wrapperEl.css({[s("width")]:n.virtualSize+o+"px"}),r){i.splice(0,i.length);var h=[];for(let t=0;tt?r+1:r;var a=[];for(let e=o-1;e>=t;--e){var l=i.slides.eq(e);l.remove(),a.unshift(l)}if("object"==typeof e&&"length"in e){for(let t=0;tt?r+e.length:r}else s.append(e);for(let t=0;t{var t=e["slides"],i=e.params.fadeEffect;for(let o=0;o{var i=e.params.fadeEffect["transformEl"];(i?e.slides.find(i):e.slides).transition(t),Me({swiper:e,duration:t,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),Pe({effect:"cube",swiper:e,on:s,setTranslate:()=>{var t,{$el:i,$wrapperEl:s,slides:n,width:o,height:r,rtlTranslate:a,size:l,browser:h}=e,d=e.params.cubeEffect,c=e.isHorizontal(),u=e.virtual&&e.params.virtual.enabled;let p,g=0;d.shadow&&(c?(0===(p=s.find(".swiper-cube-shadow")).length&&(p=te('
'),s.append(p)),p.css({height:o+"px"})):0===(p=i.find(".swiper-cube-shadow")).length&&(p=te('
'),i.append(p)));for(let e=0;e`),m.append(t)),0===e.length&&(e=te(`
`),m.append(e)),t.length&&(t[0].style.opacity=Math.max(-f,0)),e.length&&(e[0].style.opacity=Math.max(f,0))}}s.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),d.shadow&&(c?p.transform(`translate3d(0px, ${o/2+d.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${d.shadowScale})`):(i=Math.abs(g)-90*Math.floor(Math.abs(g)/90),o=1.5-(Math.sin(2*i*Math.PI/360)/2+Math.cos(2*i*Math.PI/360)/2),i=d.shadowScale,o=d.shadowScale/o,t=d.shadowOffset,p.transform(`scale3d(${i}, 1, ${o}) translate3d(0px, ${r/2+t}px, ${-r/2/o}px) rotateX(-90deg)`))),i=h.isSafari||h.isWebView?-l/2:0,s.transform(`translate3d(0px,0,${i}px) rotateX(${e.isHorizontal()?0:g}deg) rotateY(${e.isHorizontal()?-g:0}deg)`)},setTransition:t=>{var{$el:i,slides:s}=e;s.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&i.find(".swiper-cube-shadow").transition(t)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),Pe({effect:"flip",swiper:e,on:s,setTranslate:()=>{var{slides:t,rtlTranslate:i}=e,s=e.params.flipEffect;for(let r=0;r{var i=e.params.flipEffect["transformEl"];(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),Me({swiper:e,duration:t,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),Pe({effect:"coverflow",swiper:e,on:s,setTranslate:()=>{var{width:t,height:i,slides:s,slidesSizesGrid:n}=e,o=e.params.coverflowEffect,r=e.isHorizontal(),a=e.translate,l=r?t/2-a:i/2-a,h=r?o.rotate:-o.rotate,d=o.depth;for(let e=0,g=s.length;e{var i=e.params.coverflowEffect["transformEl"];(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}}),Pe({effect:"creative",swiper:e,on:s,setTranslate:()=>{var{slides:t,$wrapperEl:i,slidesSizesGrid:s}=e,n=e.params.creativeEffect;const o=n["progressMultiplier"];var r=e.params.centeredSlides;r&&(s=s[0]/2-e.params.slidesOffsetBefore||0,i.transform(`translateX(calc(50% - ${s}px))`));for(let u=0;u{p[e]=`calc(${t}px + (${t=f.translate[e],"string"==typeof t?t:t+"px"} * ${Math.abs(i*o)}))`})),g.forEach(((t,e)=>{g[e]=f.rotate[e]*Math.abs(i*o)})),a[0].style.zIndex=-Math.abs(Math.round(l))+t.length;h=p.join(", "),l=`rotateX(${g[0]}deg) rotateY(${g[1]}deg) rotateZ(${g[2]}deg)`;var d=s<0?`scale(${1+(1-f.scale)*s*o})`:`scale(${1-(1-f.scale)*s*o})`,c=s<0?1+(1-f.opacity)*s*o:1-(1-f.opacity)*s*o;h=`translate3d(${h}) ${l} `+d;if(m&&f.shadow||!m){let t=a.children(".swiper-slide-shadow");(t=0===t.length&&f.shadow?Ae(n,a):t).length&&(l=n.shadowPerProgress?i*(1/n.limitProgress):i,t[0].style.opacity=Math.min(Math.max(Math.abs(l),0),1))}d=Le(n,a),d.transform(h).css({opacity:c}),f.origin&&d.css("transform-origin",f.origin)}},setTransition:t=>{var i=e.params.creativeEffect["transformEl"];(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),Me({swiper:e,duration:t,transformEl:i,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({cardsEffect:{slideShadows:!0,transformEl:null}}),Pe({effect:"cards",swiper:e,on:s,setTranslate:()=>{var{slides:t,activeIndex:i}=e,s=e.params.cardsEffect,{startTranslate:n,isTouched:o}=e.touchEventsData,r=e.translate;for(let p=0;p{var i=e.params.cardsEffect["transformEl"];(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),Me({swiper:e,duration:t,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}]);class Ee{constructor(t,e=new We){(0,k.Z)(this,"swiperCase",null),this.swiperCase=new Se(t,e)}}class We{constructor(t){(0,k.Z)(this,"allowSlideNext",!0),(0,k.Z)(this,"allowSlidePrev",!0),(0,k.Z)(this,"allowTouchMove",!0),(0,k.Z)(this,"autoHeight",!1),(0,k.Z)(this,"breakpoints",null),(0,k.Z)(this,"direction","horizontal"),(0,k.Z)(this,"effect","slide"),(0,k.Z)(this,"enabled",!0),(0,k.Z)(this,"init",!1),(0,k.Z)(this,"initialSlide",0),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"loopAdditionalSlides",0),(0,k.Z)(this,"loopFillGroupWithBlank",!1),(0,k.Z)(this,"loopedSlides",null),(0,k.Z)(this,"modules",[]),(0,k.Z)(this,"on",new _e),(0,k.Z)(this,"roundLengths",!0),(0,k.Z)(this,"runCallbacksOnInit",!0),(0,k.Z)(this,"slideActiveClass","swiper-slide-active"),(0,k.Z)(this,"slideBlankClass","swiper-slide-invisible-blank"),(0,k.Z)(this,"slideClass","swiper-slide"),(0,k.Z)(this,"slideDuplicateActiveClass","swiper-slide-duplicate-active"),(0,k.Z)(this,"slideDuplicateClass","swiper-slide-duplicate"),(0,k.Z)(this,"slideDuplicateNextClass","swiper-slide-duplicate-next"),(0,k.Z)(this,"slideDuplicatePrevClass","swiper-slide-duplicate-prev"),(0,k.Z)(this,"slideNextClass","swiper-slide-next"),(0,k.Z)(this,"slidePrevClass","swiper-slide-prev"),(0,k.Z)(this,"slideVisibleClass","swiper-slide-visible"),(0,k.Z)(this,"speed",300),(0,k.Z)(this,"preloadImages",!0),(0,k.Z)(this,"updateOnImagesReady",!0),t&&t.on&&Object.keys(t.on).forEach((t=>{Se.on(t,Se.params.on[t])}))}}class _e{init(t){}touchStart(t,e){}touchMove(t,e){}touchEnd(t,e){}sliderMove(t,e){}click(t,e){}tap(t,e){}doubleTap(t,e){}progress(t,e){}reachBeginning(t){}reachEnd(t){}}H={name:"SimpleSwiper",data(){return{swiper:null}},props:{viewScale:{type:Number,default:1,desc:"页面的缩放比例"},index:{desc:"item选中的下标"},swiperId:{type:String,default:"#mySwiper",desc:"组件初始化节点选择器"},swiperOpts:{type:Object,desc:"开放给用户调整的参数"},swiperType:{type:String,default:"Normal",desc:"swiper类型"}},computed:{pageScale:function(){return this.viewScale},slideBlockStyle:function(){if("Grid"===this.swiperType)return{height:`calc((100% - ${this.swiperOpts.spaceBetween||0}px) / 2)`}},slideBg:function(){return{backgroundColor:this.swiperOpts.sliderBgColor}},localSwiperId:function(){return this.swiperId},localSwiperConStyle:function(){return{width:this.swiperOpts.width+"px",height:this.swiperOpts.height+"px",minWidth:"30px",minHeight:"20px"}},createSwiperOpts:function(){let t={watchOverflow:!0,preventClicks:!1};switch(this.swiperType){case"Cards":t.effect="cards";break;case"Carousel":t={...t,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-125%",0,-800],rotate:[0,0,-90]},next:{shadow:!0,translate:["125%",0,-800],rotate:[0,0,90]}}};break;case"Coverflow":t={...t,effect:"coverflow",coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}};break;case"Cube":t={...t,effect:"cube"};break;case"Drawer":t={...t,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:[0,0,-400]},next:{translate:["100%",0,0]}}};break;case"Fade":t={...t,effect:"fade",spaceBetween:30};break;case"Flip":t={...t,effect:"flip"};break;case"Fold":t={...t,effect:"creative",creativeEffect:{prev:{shadow:!0,origin:"left center",translate:["-5%",0,-200],rotate:[0,100,0]},next:{origin:"right center",translate:["5%",0,-200],rotate:[0,-100,0]}}};break;case"Grid":t={...t,grid:{fill:"column",rows:2}};break;case"Interval":t={...t,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-120%",0,-500]},next:{shadow:!0,translate:["120%",0,-500]}}};break;case"Scroll":t={...t,slidesPerView:"auto",freeMode:!0,scrollbar:{el:".swiper-scrollbar",hide:!0,draggable:!0},loop:!1,mousewheel:!0,direction:"vertical"};break;case"SimpleSlider":t={...t,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}}}}return this.swiperOpts.changeBtnColor&&document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-navigation-size",35/this.pageScale+"px"),this.swiperOpts.paginationColor&&(document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-inactive-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-width",8/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-height",8/this.pageScale+"px")),this.swiperOpts.spaceBetween&&(t.spaceBetween=parseInt(this.swiperOpts.spaceBetween)),this.swiperOpts.autoplay&&(t.autoplay={delay:1e3*Number(this.swiperOpts.delayTime),stopOnLastSlide:!1,disableOnInteraction:!1}),this.swiperOpts.zoom&&(t.zoom=!0),this.swiperOpts.slidesPerView&&(t.slidesPerView=parseInt(this.swiperOpts.slidesPerView)),this.swiperOpts.direction&&(t.direction="vertical"),this.swiperOpts.grabCursor&&(t.grabCursor=!0),this.swiperOpts.centeredSlides&&(t.centeredSlides=!0),this.swiperOpts.freeMode&&(t.freeMode=!0),this.swiperOpts.loop&&(t.loop=!0),this.swiperOpts.addChangeBtn&&(t.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}),this.swiperOpts.mousewheel&&(t.mousewheel={enabled:!0,onlyInViewport:!0}),this.swiperOpts.addScrollbar&&(t.scrollbar={hide:!0,draggable:!0,el:".swiper-scrollbar"}),this.swiperOpts.addPagination&&(t.pagination={clickable:!0,type:"bullets",el:".swiper-pagination"}),t},nodeUpdate:function(){return this.swiperOpts.nodeUpdate}},mounted(){this.createSwiper()},watch:{nodeUpdate:function(){this.$nextTick((()=>{if(this.swiper.destroy(),this.createSwiper(),this.swiperOpts.paginationColor&&(document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-inactive-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-color",this.swiperOpts.paginationColor)),"Grid"===this.swiperType)for(const t of document.getElementsByClassName("swiper-grid-container-class"))t.style.height=`calc((100% - ${this.swiperOpts.spaceBetween||0}px) / 2)`}))},pageScale:function(){document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-navigation-size",35/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-width",8/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-height",8/this.pageScale+"px")}},methods:{stopPropagation:function(t){t.stopPropagation()},swiperWheel:function(){this.swiperOpts.mousewheel||"Scroll"===this.swiperType?this.$refs.thisSwiper.addEventListener("wheel",this.stopPropagation):this.$refs.thisSwiper.removeEventListener("wheel",this.stopPropagation)},createSwiper:function(){this.swiper=new Ee(this.localSwiperId,{init:!0,...this.createSwiperOpts,on:{init:function(){}}}).swiperCase}},components:{}},H=(0,N.Z)(H,(function(){var t=this,e=t._self._c;return e("div",{ref:"thisSwiper",staticClass:"swiper mySwiper",attrs:{id:t.localSwiperId.slice(1)},on:{pointerdown:function(t){t.stopPropagation()},mousedown:function(t){t.stopPropagation()},touchdown:function(t){t.stopPropagation()},touchstart:function(t){t.stopPropagation()}}},[0===t.swiperOpts.sliderFill.length?e("div",{staticClass:"swiper-wrapper",on:{mousewheel:t.swiperWheel}},t._l(5,(function(i){return e("div",{key:i,staticClass:"swiper-slide",class:[{"swiper-grid-container-class":"Grid"===t.swiperType},"slide-demo"],style:t.slideBlockStyle},[e("div",{staticClass:"swiper-zoom-container"},[e("div",{staticClass:"swiper-zoom-target"},[t._v(t._s(t.swiperOpts.demoTitle))])])])})),0):t._e(),0!==t.swiperOpts.sliderFill.length?e("div",{staticClass:"swiper-wrapper",on:{mousewheel:t.swiperWheel}},t._l(t.swiperOpts.sliderFill,(function(i,s){return e("div",{key:s,staticClass:"swiper-slide",class:{"swiper-grid-container-class":"Grid"===t.swiperType},style:t.slideBlockStyle},[e("div",{staticClass:"swiper-zoom-container",style:{backgroundColor:t.swiperOpts.sliderBgColor}},[e("div",{staticClass:"swiper-zoom-target img-show",style:{backgroundImage:`url(${i.url})`}})])])})),0):t._e(),t.swiperOpts.addChangeBtn?e("div",{staticClass:"swiper-button-next",style:{color:t.swiperOpts.changeBtnColor}}):t._e(),t.swiperOpts.addChangeBtn?e("div",{staticClass:"swiper-button-prev",style:{color:t.swiperOpts.changeBtnColor}}):t._e(),t.swiperOpts.addScrollbar||"Scroll"===t.swiperType?e("div",{staticClass:"swiper-scrollbar"}):t._e(),t.swiperOpts.addPagination?e("div",{staticClass:"swiper-pagination"}):t._e()])}),[],!1,null,"09300397",null).exports,H=(0,N.Z)({name:"ItemForSwiper",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{render2:function(){return this.render},currentPage:function(){return this.$store.getters.currentPage},pageTotalTime:function(){return this.currentPage.totalTime},swiperCom:function(){return this.item.swiperType,"SimpleSwiper"}},methods:{},components:{ItemLayout:Vt,SimpleSwiper:H}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForSwiper",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[t.render2?t._e():e(t.swiperCom,{tag:"component",attrs:{index:t.index,viewScale:t.viewScale,swiperType:t.item.swiperType,swiperId:"#mySwiper"+t.item.id,swiperOpts:t.item.swiperOpts}})],1)}),[],!1,null,"e2a4ae78",null).exports;var Fe=(0,N.Z)({name:"ItemForSvgText",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted:function(){},updated:function(){var t;this.gradient.show&&(t=this.$refs["rect"+this.item.id])&&(t.style.display="none",t.style.display="block")},watch:{},computed:{svgUrl:function(){return"../files/pageConfig/"+this.item.id+".svg"},linearId:function(){return"linearID"+this.item.id.toString().substring(0,6)},maskId:function(){return"maskID"+this.item.id.toString().substring(0,6)},isIE:function(){return this.$store.state.isIE},textScale:function(){return this.viewScale},scaleStyle:function(){var t=this.item,e={};return e.width=t.style.width,e.height=t.style.height,e.transform="scale(1)",e},textStyle:function(){var t,e=[this.item.innerTextStyle];return"number"==typeof e[0].fontSize&&(e[0].fontSize=e[0].fontSize+"px"),this.item.isShowStroke&&(t={textStroke:this.item.stroke.width+"px "+this.item.stroke.color},e.push(t)),e},rectCode:function(){return this.item.svgText.svgCode.match(//)[0]},gCode:function(){let t=this.item.svgText.svgCode;return(t=t.replace(/fill=".*?"/g,'fill="#ffffff"')).replace(this.rectCode,"")},rectCodeWH:function(){return{width:parseFloat(this.rectCode.match(/".*?"/g)[0].slice(1,-1))+40,height:parseFloat(this.rectCode.match(/".*?"/g)[1].slice(1,-1))+40}},lessScaleStyle:function(){var t={},e=parseFloat(this.item.innerTextStyle.fontSize);return e<12&&(t.transform=`scale(${e/=12})`,t.width=parseFloat(this.item.style.width)/e+"px",t.height=parseFloat(this.item.style.height)/e+"px"),t},gradient:function(){return this.item.gradient},svgGradientDeg(){return function(t){return t-90+" 0.5 0.5"}},subBColor:function(){return this.item.isSubtitle?this.item.subBColor:{}},showTextBackgroundDom:function(){return this.item.isSubtitle&&this.subBColor.isShow},textBackgroundColor:function(){var t,e,i,s;return this.showTextBackgroundDom?(e=(t=this.subBColor).opacity,i=t.color,i=A.getRgbaColor(i),{top:-(s=t.padding)+"px",height:parseFloat(this.item.style.height)+2*s+"px",backgroundColor:`rgba(${i.r}, ${i.g}, ${i.b}, ${e})`,border:`${t.borderWidth}px ${t.borderType} `+t.borderColor,borderRadius:parseFloat(t.borderRadius)+"px"}):{}},isTextSetScroll:function(){return void 0===this.item.overflow||""===this.item.overflow?null:this.item.overflow},getTextRealWidth:function(){return void 0!==this.item.textAreaWidth&&this.isTextSetScroll&&this.item.textAreaWidth||"100%"},getTextRealHeight:function(){return void 0!==this.item.textAreaHeight&&this.isTextSetScroll&&this.item.textAreaHeight||"100%"}},methods:{},components:{ItemLayout:Vt},render(t){var e=this,i=e.$props;return t(Vt,{attrs:{item:i.item,viewScale:i.viewScale,index:i.index,groupKey:i.groupKey,isGroup:i.isGroup,isGroupItem:i.isGroupItem,pageIndex:i.pageIndex}},[e.showTextBackgroundDom?t("div",{class:"textBackgroundColor",style:e.textBackgroundColor}):"",t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/1999/xlink",width:e.getTextRealWidth,height:e.getTextRealHeight,overflow:"visible",id:"svgtext"+i.item.id,viewBox:i.item.svgText.viewBox},class:"visible textSvg",ref:"textSvg"+i.item.id},[t("defs",[t("filter",{attrs:{id:"blur"}},[t("feGaussianBlur",{attrs:{in:"SourceGraphic",stdDeviation:"2"}})])]),t("rect",{class:"filterRect",attrs:{filter:"url(#blur)",stroke:"none",fill:"transparent",x:"0",y:-2*parseFloat(i.item.style.height),width:parseFloat(i.item.style.width),height:4*parseFloat(i.item.style.height)},style:"pointer-events: none"}),t("g",{domProps:{innerHTML:i.item.svgText.svgCode},attrs:{overflow:"visible"}}),e.gradient.show?t("g",[t("defs",[e.gradient.isLinear?t("linearGradient",{attrs:{id:e.linearId,gradientTransform:`rotate(${e.svgGradientDeg(e.gradient.gradientDeg)})`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[e.gradient.colorList.map(((e,i)=>t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})))]):t("radialGradient",{attrs:{id:e.linearId}},[e.gradient.colorList.map(((e,i)=>t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})))]),t("mask",{attrs:{id:e.maskId},domProps:{innerHTML:e.gCode}})]),t("g",{attrs:{mask:`url(#${e.maskId})`}},[t("rect",{attrs:{width:e.rectCodeWH.width,height:e.rectCodeWH.height,fill:`url(#${e.linearId})`,id:"rect"+i.item.id,x:"-20",y:"-20",opacity:"1"},ref:"rect"+i.item.id})])]):""])])}},void 0,void 0,!1,null,"825346dc",null).exports,Oe=i(6749);class Be{constructor(t,e,i,s){(0,k.Z)(this,"mainRect",null),(0,k.Z)(this,"angle",0),(0,k.Z)(this,"count",new Set),(0,k.Z)(this,"itemId",0),(0,k.Z)(this,"colorList",["red","green","blue","black","pink","yellow"]),(0,k.Z)(this,"colorHead",0),this.mainRect=t.getBoundingClientRect(),this.angle=e,this.itemId=i,this.pageIndex=s}addRectCoordinateY(t){this.count.has(t)||~[...this.count].findIndex((e=>Math.abs(e-t)<3))||this.count.add(Math.round(t))}paintRect(t,e,i){var s=document.createElement("div");s.style.position="absolute",s.style.width=t.width+"px",s.style.height=t.height+"px",s.style.top=t.y+"px",s.style.left=t.x+"px",s.style.backgroundColor=this.colorList[this.colorHead],this.colorHead=++this.colorHead%this.colorList.length,s.style.opacity=.1,s.setAttribute("class","rect"+this.itemId),t=this.getRectCenterPointer(t);s.dataset.centerPointerY=t.y,s.dataset.childIndex=e,s.dataset.rectText=i,s.dataset.centerPointerX=t.x,document.querySelector("body").appendChild(s)}paintHighLightRect(t,e,i="yellow"){var s=document.createElement("div");s.style.position="absolute",s.style.width=t.width+"px",s.style.height=t.height+"px",s.style.top=t.y+"px",s.style.left=t.x+"px",s.style.backgroundColor=i,s.style.opacity=.4,s.style.pointerEvents="none",e&&(s.style.transform=e),s.setAttribute("class",Be.highLightDomClassName),document.querySelector("body").appendChild(s)}static clearHighLight(){Array.from(document.getElementsByClassName(Be.highLightDomClassName)).forEach((t=>{t.parentNode&&t.parentNode.removeChild(t)}))}getBookClassName(){return window.BookInfo?"#animation"+window.BookInfo.getBookType()+"-"+(this.pageIndex+1):"#animation0-"+(this.pageIndex+1)}computeContentRow(t){var e=Array.from(t.childNodes);for(let s=0;s{this.addRectCoordinateY(t)})):this.computeContentRow(i)}}getTextNodeRow(t,e,i){var s=document.createRange(),n=(s.setStart(e,i),s.setEnd(e,i+1),s.getClientRects()),o=new Set;for(let a=0;a=e.x?(r=n-o,e.y+s*Math.sin(r)):(r=Math.PI-n+o,e.y-s*Math.sin(r)),e.x+s*Math.cos(r));return 0===r&&(l=i.x,a=i.y),Object.assign({},JSON.parse(JSON.stringify(t)),{x:l-t.width/2,y:a-t.height/2})}getRectCenterPointer(t){return{x:t.left+t.width/2,y:t.top+t.height/2}}searchNormalText(t,e,i,s=!0){var n=Array.from(t.childNodes);for(let r=0;r{i.push(new Re(e,-1,t.input,t.highLightRect,t.highLightTransform))})):this.searchNormalText(o,e,i,s)}}textHighLight(t,e,i,s=!1){var n=new RegExp(i,"ig");n=Array.from([...t.wholeText.matchAll(n)]);return n&&n.forEach((e=>{var n=e.index,o=i.length+n,r=document.createRange(),a=(r.setStart(t,n),r.setEnd(t,o),r.getClientRects());for(let t=0;t{t.highLightRect.forEach((t=>{var a=(t.x-i)/e-n,l=(t.y-s)/e-o,h=t.width/e;t=t.height/e,a=new He(a,l,h,t,this.angle);r.push(a)}))})),r}}(0,k.Z)(Be,"highLightDomClassName","reader_highlight_text");class Re{constructor(t,e,i,s,n){(0,k.Z)(this,"searchText",""),(0,k.Z)(this,"search_page",-1),(0,k.Z)(this,"search_text",""),(0,k.Z)(this,"highLightRect",[]),(0,k.Z)(this,"highLightTransform",""),this.searchText=t,this.search_page=-1,this.search_text=i,this.highLightRect=s,this.highLightTransform=n}}class He{constructor(t,e,i,s,n){(0,k.Z)(this,"left",0),(0,k.Z)(this,"top",0),(0,k.Z)(this,"width",0),(0,k.Z)(this,"height",0),(0,k.Z)(this,"rotate",0),(0,k.Z)(this,"id",0),this.left=t,this.top=e,this.width=i,this.height=s,this.rotate=n,this.id=(0,Oe.Z)("high_light_")}}class Ne extends L{constructor(t){super({name:"图表",type:"chart",style:{width:t.style.width,height:t.style.height},showClassName:!0,showGradient:!0,showTitle:!0,titleColor:"#2C2525",position:"top",gNode:t.gNode,isShowPoint:!0,showHighlight:!1,isFixedRatio:!0,highlightRange:"1",highlightTitle:"买入"},t)}}class De extends L{constructor(t){super({name:"基础图形",type:"baseShape",style:{width:t.style.width,height:t.style.height},noBorder:!1,border:{style:"solid",color:"#7D8693",width:7,originBorder:7},showBorderRadius:!1,keepRatio:!0,borderRadius:{topLeft:10,topRight:10,bottomLeft:10,bottomRight:10},hasGradient:!1,gradient:{}},t)}}class ze extends L{constructor(t){super({name:"图片吸附框",type:"frames",style:{width:t.style.width,height:t.style.height},containerList:[],imageInfor:[],imageList:[],isNewFileList:[],fileNameList:[],hasFillSvg:!1,parseSvgType:1,fileIsIsSystemTeamplateResource:[],jsonUrl:""},t)}}class Ze extends L{constructor(t){super({type:"text",name:"文字",style:{width:t.style.width,height:t.style.height},innerTextStyle:{opacity:1,lineHeight:1,letterSpacing:"0px",fontSize:"150px",fontFamily:"SourceHanSansCN",color:"#000000",wordSpacing:"-0.1em",textAlign:"center",textIndent:"",writingMode:"",textOrientation:""},stroke:{color:"#888888",width:1},svgText:{svgCode:"",viewBox:""},gradient:{show:!1,isLinear:!0,colorList:[{percent:"0%",color:"#99E265"},{percent:"100%",color:"#00A3CB"}],gradientDeg:90,gradientType:"linear"},textStr:t.textStr,transformPositionText:!0,systemFontToSvg:!0,highLightRects:[],needToCheckRow:!0,isShowStroke:!1,contentRow:0,overflow:"",textAreaWidth:"100%",textAreaHeight:"100%",isHideScrollBar:!1,scrollBarInfo:{thumbColor:"#cccccc",trackColor:"#fafafa",width:6,radius:16,opacity:100}},t)}}class Ge extends L{constructor(t){var e=Ge.getImgStyle(t);e.gifHasTurnedCanvas=!1,super({type:"image",name:"图片",style:{backgroundPosition:"0px 0px",backgroundSize:"100% 100%",width:t.style.width,height:t.style.height,top:t.style.top,left:t.style.left},pathBackgroundPosition:t.style.backgroundPosition,pathBackgroundSize:t.style.backgroundSize,url:t.url,isBGI:!1,isGifImage:!1,isQRCodeImg:!1,imgOriginalProportions:!1,gifIsTurningToCanvas:!1,gifToCanvas:!1,gifHasTurnedCanvas:!1,turnCanvasFail:!1,strategy:"stretch",originalWidth:0,originalHeight:0,showBorderRadius:!1,gifStartTime:-1,gifEndTime:-1,superGif:null,gifDuration:-1,gifLength:-1,borderRadius:{topLeft:20,topRight:20,bottomLeft:20,bottomRight:20},cropInfor:{isCropped:!1,originalPx:0,originalPy:0,originalSx:0,originalSy:0},config:{},images:[],gifs:[],image:"",isLoop:!0,isSprite:!1,gifImageLoop:!0,isHorizonFlip:!1,updateGifItemIndex:0},e)}static getImgStyle(t){if(t.isBGI){let l=0,h=0,d=0,c=0;var e=ot.state.pageConfig,i=e.originPageWidth,s=(e=e.originPageHeight,ot.getters.fitViewScale),n=parseFloat(t.style.width),o=parseFloat(t.style.height),r=Math.floor(i)===Math.floor(n),a=Math.floor(e)===Math.floor(o);(r||a)&&(n/=o,r&&(o=Math.ceil(Math.ceil(i*s)/s),l=o,h=o/n,c=(i-l)/2,d=parseFloat(t.style.top)),a&&(r=Math.ceil(Math.ceil(e*s)/s),h=r,l=r*n,d=(e-h)/2,c=parseFloat(t.style.left)),t.style.width=l+"px",t.style.height=h+"px",t.style.top=d+"px",t.style.left=c+"px")}return t}}class Ve extends L{constructor(t){super({type:"music",name:"音频",style:{top:"-20px",left:"-20px",width:"20px",height:"20px",opacity:1},audioInfo:{url:"",duration:"",startTime:0,endTime:t.audioInfo.duration,name:"",repeatTime:1,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0},isAdjustable:!1,isHidden:!0,hasLoadedMusic:!0,isLocked:!1,audioTimer:null},t)}}class je extends L{constructor(t){super({type:"video",name:t.name||"视频",style:{width:.4,height:.4},fileName:"",thumbUrlFileName:"",thumbUrl:"",isBGI:!1,isNewFile:!0,videoTimer:null,isAdjustable:!1,isNeedControls:!1,videoInfo:{name:"",duration:0,delay:0,url:"",startTime:0,originDuration:0,endTime:t.videoInfo.duration,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0}},t)}}class Ye extends L{constructor(t){var e=t,i=t.pointNum||1,s=t.ratioX||new Array(i).fill(.2);t=t.ratioY||new Array(i).fill(.2);super({name:"可形变图形",type:"transShape",style:{width:e.style.width,height:e.style.height},lineWidth:5,strokeDashes:0,linecap:"round",isAdvance:!1,ratioX:s,ratioY:t,strokeColor:"#7c879b",fillColor:"#99a5bc",fillColor2:"#FF4C4C",transType:"",colours:1,pointNum:i,gradientColorList:[],splitX:new Array(i).fill(0),splitY:new Array(i).fill(0)},e)}}class Xe{constructor(t){return t=Xe.getSubtitleStyle(t),JSON.parse(JSON.stringify(f.deepAssign({type:"text",isSubtitle:!0,id:f.getUniqueId(),name:"添加字幕内容",rotate:0,style:{opacity:1},existStartTime:0,existEndTime:0,animations:{duration:1,delay:.3,isHoverBorder:!1,inAnime:{duration:0,props:[{css:{}}]},outAnime:{duration:0,props:[{css:{}}]}},isShowShadow:!1,filter:{dropShadow:{shadowX:4,shadowY:4,shadowBlur:2,shadowColor:"#808080"}},innerTextStyle:{opacity:1,lineHeight:1,letterSpacing:"0px",fontSize:"150px",fontFamily:"SourceHanSansCN",color:"#000000",wordSpacing:"-0.1em",textAlign:"center",textIndent:"",writingMode:"",textOrientation:""},isAllBold:!1,isAllItalic:!1,isAllUndeline:!1,isAllStrikeThrough:!1,isShowStroke:!1,stroke:{color:"#888888",width:1},gradient:{show:!1,isLinear:!0,colorList:[{percent:"0%",color:"#99E265"},{percent:"100%",color:"#00A3CB"}],gradientDeg:90,gradientType:"linear"},textStr:"添加字幕内容",contenteditable:!1,textStyleType:0,contentRow:0,needToCheckRow:!0,svgText:{svgCode:"",viewBox:"",pathCount:0},systemFontToSvg:!0,subBColor:{isShow:!1,color:"#ffffff",opacity:.8,padding:0,borderWidth:0,borderColor:"#000000",borderType:"solid",borderRadius:0},highLightRects:[],transformPositionText:!0,subtitleAlign:"bottom",overflow:"",textAreaWidth:"100%",textAreaHeight:"100%",isHideScrollBar:!1,scrollBarInfo:{thumbColor:"#cccccc",trackColor:"#fafafa",width:6,radius:16,opacity:100}},t)))}static getSubtitleStyle(t){return Xe.isOldConfig(t)&&(t.animations.inAnime={duration:0,props:[{css:{}}]},t.animations.outAnime={duration:0,props:[{css:{}}]}),t}static isOldConfig(t){let e=!1;return t.animations&&t.animations.inAnime&&2===(t=t.animations.inAnime.props).length&&t.forEach((t=>{t=Object.keys(t.css),1===t.length&&"opacity"===t[0]&&(e=!0)})),e}}class Ue{constructor(t){var e;return t.isSvgBGI?f.deepAssign(this,{type:"background",id:f.getUniqueId(),name:"矢量背景",rotate:0,existStartTime:0,existEndTime:0,isSvgBGI:!0,style:{width:0,height:0,top:0,left:0,opacity:1},isBGI:!0,isNewFile:!1,gradientColorList:[],gNode:{transform:"translate(0, 0) scale(1, 1)"},animations:{duration:2,delay:.3,isHoverBorder:!1,inAnime:{duration:0,props:[{css:{}}]},outAnime:{duration:0,props:[{css:{}}]}}},t):(e=Ue.getBackgroundStyle(t),JSON.parse(JSON.stringify(f.deepAssign({type:"background",name:t.hasBGI?"图片背景":"颜色背景",rotate:0,existStartTime:0,existEndTime:0,style:{width:0,height:0,backgroundPosition:"0px 0px",backgroundSize:"cover",top:0,left:0,opacity:1},isBGI:!0,isNewFile:!1,hasBGI:!1,hasLoaded:!1,isGradient:!1,strategy:"contain",originalHeight:0,originalWidth:0,url:"",fileName:"",isUpload:!1,backgroundColor:"#ffffff",gradient:{colorList:[],gradientType:"linear",gradientDeg:90},bgColor:"#000000",animations:{duration:1,delay:.3,isHoverBorder:!1,inAnime:{duration:0,props:[{css:{}}]},outAnime:{duration:0,props:[{css:{}}]}}},t,{style:e}))))}static getBackgroundStyle(t){let e=0,i=0,s=0,n=0;var o,r=ot.state.pageConfig,a=r.originPageWidth,l=(r=r.originPageHeight,ot.getters.fitViewScale),h=parseFloat(t.style.width),d=parseFloat(t.style.height),c=Math.floor(a)===Math.floor(h),u=Math.floor(r)===Math.floor(d);return c||u?(o=h/d,c&&(c=Math.ceil(Math.ceil(a*l)/l),e=c,i=c/o,n=(a-e)/2,s=parseFloat(t.style.top)),u&&(c=Math.ceil(Math.ceil(r*l)/l),i=c,e=c*o,s=(r-i)/2,n=parseFloat(t.style.left))):(e=h,i=d,s=parseFloat(t.style.top),n=parseFloat(t.style.left)),{width:e+"px",height:i+"px",top:s+"px",left:n+"px"}}}class qe{constructor(t){return JSON.parse(JSON.stringify(f.deepAssign({type:"foreground",foregroundType:"cloud",id:f.getUniqueId(),name:"前景动画",rotate:0,itemNumber:{value:10},period:{value:16700},advanced:null,style:{width:0,height:0,top:0,left:0,opacity:1},existStartTime:0,existEndTime:0,fileName:"",svgUrl:"",originalWidth:0,originalHeight:0,fgFileNameList:[],fgFileUrlList:[],svg:{viewBox:"0 0 500 500",svgCode:"",transform:""},hasSvgCode:!1,animations:{duration:2,delay:.3,isHoverBorder:!1,inAnime:{duration:0,props:[{css:{}}]},outAnime:{duration:0,props:[{css:{}}]}}},t)))}}class Qe{constructor(t){return JSON.parse(JSON.stringify(f.deepAssign({type:"camera",name:"镜头",rotate:0,animations:{duration:1,delay:.3,isHoverBorder:!1}},t)))}}class Ke extends L{constructor(t){super({name:"特效元素",type:"effect",effectType:"Lottie",style:{width:t.style.width,height:t.style.height},cycle:1,ease:"line",hasLoadedJson:!1,colorList:[],colorInfo:[],widthList:[],widthInfo:[],json:null,isAutoPlay:!1,speed:1,noCycle:!0,noEase:!0,fileName:"",jsonUrl:"",isNewFile:!0,isLoop:!0,isHotSpotEffect:!1},t)}}class Je extends L{constructor(t){super({type:"link",name:"link",isIndicated:!0,isInverse:!1,style:{background:"rgba(128, 128, 128, 0)",hoverColor:"rgba(128, 128, 128, 0.3)",clickColor:"rgba(128, 128, 128, 0.6)",borderRadius:"0px",width:"100px",height:"20px"}},t)}}class ti extends L{constructor(t){super({type:"like",name:"点赞",style:{width:"100px",height:"50px",background:"transparent"},positionType:1,count:0,initNum:0,iconType:1,size:20,bookId:"",timeId:"",color:"#f00",limitType:"one",previousLikeTime:0},t)}}class ei extends L{constructor(t){super({type:"phone",style:{width:.1,height:.1},action:{actionType:"phone",phoneNumber:"",page:1}},t)}}class ii extends L{constructor(t={}){super({type:"pluginMusic",name:"音频播放控件",style:{width:.4,height:.4},isHidden:!1,isLocked:!1,musicList:[],musicSkin:1,moviePlayTriggerEvt:"none",movieStopTriggerEvt:"EVT_PageOffView",isAdjustable:!1,isPauseBgSoundWhenPlay:!0,waveformImg:"",fileName:"",audioTimer:null,playFromSeconds:0,syncWithTimeline:!0,returnThisPageToReplay:!1,volume:50,volumeBeforeMute:50,isMute:!1,skinId:1,isPauseOtherMusicWhenPlay:!0,isPlayAcrossPage:!1,playFromPage:1,playToPage:1,skin1ColorObj:{isSelectColor:!1,progressTrackColor:"#e5e9f2",progressColor:"#20a0ff",buttonBackgroundColor:ot.getters.isFlipPro?"#44B986":"#3e89e4",playAndPauseIconColor:"#ffffff"},skin0ColorObj:{isSelectColor:!1,controlIconColor:"#081A2E",buttonBackgroundColor:"#f5f5f5",progressRunwayColor:ot.getters.isFlipPro?"#44b986":"#4697cc"},audioIsPlaying:!1,musicType:2,createTime:0,update:{progressBar:[{progressBarSize:"1685429337651"}]},qrcodeGap:15,isMusicQRCodeImg:!1,qrcodeForeground:"rgba(0, 0, 0, 1)",qrcodeBackground:"rgba(255, 255, 255, 1)"},t)}}class si extends L{constructor(t={}){super({type:"pluginVideo",name:"视频播放控件",style:{width:.4,height:.4},fileName:"",videoHeight:0,videoWidth:0,thumbUrlFileName:"",thumbUrl:"",thumbUrlIsNewFile:"",isPauseBgSoundWhenPlay:!0,isBGI:!1,isNewFile:!1,videoTimer:null,isUpload:!1,isAdjustable:!1,isLoop:!1,moviePlayTriggerEvt:"none",movieStopTriggerEvt:"EVT_PageOffView",generalCode:"",videoLink:"",pluginVideoType:0,videoInfo:{name:"",duration:0,delay:0,url:"",startTime:0,originDuration:0,endTime:0,repeatTime:1,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0},youTubeId:"",vimeoId:"",playerType:2,qrcodeGap:15,isVideoQRCodeImg:!1,qrcodeForeground:"rgba(0, 0, 0, 1)",qrcodeBackground:"rgba(255, 255, 255, 1)"},t)}}class ni extends L{constructor(t){"folder"===t.type&&(t.type="component",t.isOpenComponent=t.isOpenFolder),super({type:"component",name:"组件",isOpenComponent:!0,style:{width:"0px",height:"0px",left:"0px",top:"0px"}},t)}}class oi extends L{constructor(t){super({type:"button",itemIndex:"",buttonFont:{fontSize:"14px",fontWeight:400,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:"0px",color:"#000000",fontFamily:"Arial",fontStyle:"normal",textDecoration:"none",padding:"0 10px"},buttonText:"主要按钮",buttonTextEdit:!1,style:{width:"102px",height:"28px"},buttonIcon:{isShowIconEdit:!0,iconType:"font",iconHref:"el-icon-platform-eleme",isNewFile:!1,fontSize:"20px",color:"#ffffff",iconSite:"left"},buttonBackground:{display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(360deg,#FF9A9E 0%,#FECFEF 100%)",hoverColor:"#000000",clickColor:"#1663C7",hasgradient:!0,gradient:{},borderStyle:"none",borderWidth:"1px",borderColor:"",showBorderRadius:!0,keepRatio:!0,borderTopLeftRadius:"16px",borderTopRightRadius:"16px",borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px"}},t)}}class ri extends L{constructor(t){super({type:"swiper",style:{width:.4,height:.2},swiperOpts:{sliderBgColor:"rgba(0,0,0,0)",sliderFill:[],nodeUpdate:0,delayTime:3,...ri.returnConfig(t.swiperType)}},t)}static returnConfig(t){switch(t){case"Drawer":case"Interval":case"SimpleSlider":case"Carousel":case"Fold":return new ai;case"Grid":return new li;case"Scroll":return new hi;case"Flip":return new ui;case"Coverflow":return new di;case"Fade":return new ci;case"Cube":return new mi;case"Cards":return new gi;default:return new pi}}}class ai{constructor(){(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"zoom",!1),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee"),(0,k.Z)(this,"addScrollbar",!1)}}class li{constructor(){(0,k.Z)(this,"spaceBetween",10),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"slidesPerView",2),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"centeredSlides",!1),(0,k.Z)(this,"freeMode",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addChangeBtn",!1),(0,k.Z)(this,"changeBtnColor","#eee"),(0,k.Z)(this,"mousewheel",!0),(0,k.Z)(this,"addScrollbar",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee")}}class hi{}class di{constructor(){(0,k.Z)(this,"slidesPerView",3),(0,k.Z)(this,"centeredSlides",!1),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"zoom",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1)}}class ci{constructor(){(0,k.Z)(this,"zoom",!1),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"direction",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee"),(0,k.Z)(this,"mousewheel",!1)}}class ui{constructor(){(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"direction",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee"),(0,k.Z)(this,"mousewheel",!1)}}class pi{constructor(){(0,k.Z)(this,"spaceBetween",10),(0,k.Z)(this,"zoom",!1),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"slidesPerView",1),(0,k.Z)(this,"direction",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"centeredSlides",!1),(0,k.Z)(this,"freeMode",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addChangeBtn",!0),(0,k.Z)(this,"changeBtnColor","#eee"),(0,k.Z)(this,"mousewheel",!1),(0,k.Z)(this,"addScrollbar",!1),(0,k.Z)(this,"addPagination",!0),(0,k.Z)(this,"paginationColor","#eee")}}class gi{constructor(){(0,k.Z)(this,"zoom",!1),(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"direction",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee"),(0,k.Z)(this,"mousewheel",!1)}}class mi{constructor(){(0,k.Z)(this,"autoplay",!1),(0,k.Z)(this,"grabCursor",!1),(0,k.Z)(this,"loop",!1),(0,k.Z)(this,"addPagination",!1),(0,k.Z)(this,"paginationColor","#eee"),(0,k.Z)(this,"mousewheel",!1)}}class fi extends L{constructor(t){super({type:"iframe",name:"iframe",style:{width:"540px",height:"360px"}},t)}}class wi{constructor(t){return{value:"",width:t.width,height:t.height,checked:!1,innerTextStyle:{opacity:1,lineHeight:1.28,letterSpacing:"0px",fontSize:"12px",fontFamily:"Hero",color:"#000000",wordSpacing:"-0.1em",textAlign:"left",direction:"ltr",textIndent:"",writingMode:"",textOrientation:""},borderWidth:1,borderColor:"#333333",bgColor:"#FFFFFF",isAllBold:!1,isAllItalic:!1,isAllUndeline:!1,strikeThrough:!1}}}class vi extends L{constructor(t){super({name:"表格",type:"table",style:{width:.4*L.pageOriginalWidth+"px",height:.4*L.pageOriginalWidth/1.5+"px"},border:!0,rows:3,columns:3,borderStyle:{borderWidth:1,borderColor:"#333333"},bgColor:"#FFFFFF",contenteditable:!0,innerTextStyle:{opacity:1,lineHeight:1.28,letterSpacing:"0px",fontSize:"12px",fontFamily:"Hero",color:"#000000",wordSpacing:"-0.1em",textAlign:"left",direction:"ltr",textIndent:"",writingMode:"",textOrientation:""},tableList:vi.initTable(t.rows,t.columns,Math.floor(.4*L.pageOriginalWidth),Math.floor(.4*L.pageOriginalWidth/1.5))},t)}static initTable(t,e,i,s){var n=Array.from(new Array(t),(()=>new Array(e))),o=i/e,r=s/t;for(let l=0;l{e=Ci.getTextNode(e,t);const s=[];e.forEach((e=>{var i,n=s.findIndex((t=>t.rowTop===e.top));-1===n?(i=new $i(e.top,e.left,e.height),"justify"===t.innerTextStyle.textAlign&&(i.justify=!0),i.addText(e),s.push(i)):s[n].addText(e)})),0{i.addText(t)})),i.rowText}}}static positionListToStr(t,e){var i=document.createElement("div");if(1===Ci.positionType)for(let a=0;a{var o=[];Ci.getParentsUntilDiv(t,o);const r=new bi;r.fontSize=Math.floor(parseFloat(e.innerTextStyle.fontSize)),r.fontFamily=e.innerTextStyle.fontFamily,"#00000"!==e.innerTextStyle.color&&(r.color=e.innerTextStyle.color),o.forEach((t=>{switch(t.tagName){case"B":r.bold=!0,t.style.color&&(r.color=t.style.color),"italic"===t.style.fontStyle&&(r.italic=!0);break;case"U":r.underline=!0,t.style.color&&(r.color=t.style.color),"italic"===t.style.fontStyle&&(r.italic=!0),"bold"===t.style.fontWeight&&(r.bold=!0);break;case"I":r.italic=!0,t.style.color&&(r.color=t.style.color),"bold"===t.style.fontWeight&&(r.bold=!0);break;case"FONT":t.color&&(r.color=t.color),t.style.color&&(r.color=t.style.color),"italic"===t.style.fontStyle&&(r.italic=!0),"bold"===t.style.fontWeight&&(r.bold=!0);break;case"SPAN":t.style.color&&(r.color=t.style.color),"italic"===t.style.fontStyle&&(r.italic=!0),"bold"===t.style.fontWeight&&(r.bold=!0);break;case"STRIKE":r.strikeThrough=!0,t.style.color&&(r.color=t.style.color),"italic"===t.style.fontStyle&&(r.italic=!0),"bold"===t.style.fontWeight&&(r.bold=!0)}}));let a=t.offsetWidth,l=t.offsetLeft;0===a&&0!==n&&(a=i[n-1].offsetWidth,l-=a/2),r.text=t.innerText,r.left=l,r.top=t.offsetTop,r.width=a,r.height=t.offsetHeight,s.push(r)})),s}static getParentsUntilDiv(t,e){if("DIV"===t.tagName)return e;Ci.getParentsUntilDiv(t.parentNode,e)}}(0,k.Z)(Ci,"positionType",1);class $i{constructor(t,e,i){(0,k.Z)(this,"text",""),(0,k.Z)(this,"rowTop",0),(0,k.Z)(this,"rowLeft",0),(0,k.Z)(this,"rowHeight",0),(0,k.Z)(this,"rowWidth",0),(0,k.Z)(this,"justify",!1),(0,k.Z)(this,"rowText",[]),this.rowTop=t,this.rowLeft=e,this.rowHeight=i}addText(t){var e=$i.formatCharacterText(t);e=t.left+`,@#${t.top},@#${t.width},@#${t.height},@#${t.color},@#${t.bold?1:0},@#${t.italic?1:0},@#${t.underline?1:0},@#'${e}',@#${t.strikeThrough?1:0},@#0,@#0,@#0`;this.rowText.push(e)}static formatCharacterText(t){let e=t.text;return isNaN(e.charCodeAt(0))?" ":e}static patchRowCharacter(t){if(1{s="string"==typeof s?$i.characterStr2Character(s):s;0===e.length&&e.push(JSON.parse(JSON.stringify(s))),n!==t.length-1&&(s="string"==typeof t[n+1]?$i.characterStr2Character(t[n+1]):t[n+1],$i.patchCharacter(e[i],s)?e[i].text=e[i].text+$i.formatCharacterText(s):(e.push(JSON.parse(JSON.stringify(s))),i++))})),e}return"string"==typeof t[0]?[$i.characterStr2Character(t[0])]:t}static rowToInnerHtml(t,e){t=$i.patchRowCharacter(t);const i=document.createElement("div");return t.forEach((t=>{var s=document.createElement("span"),n=t.text;s.textContent=n,t.bold&&s.classList.add("text_bold"),t.italic&&s.classList.add("text_italic"),t.underline&&s.classList.add("text_undeline"),t.strikeThrough&&s.classList.add("text_lineThrough"),s.style.color=t.color,s.style.left=t.left-e.rowLeft+"px",s.classList.add("text_position"),s.dataset.dateText=n,i.appendChild(s)})),i.innerHTML}static characterStr2Character(t){t=t.split(xi);var e=new bi;return e.left=t[0],e.top=t[1],e.width=t[2],e.height=t[3],e.color=t[4],e.bold=1===Number(t[5]),e.italic=1===Number(t[6]),e.underline=1===Number(t[7]),e.text=t[8].slice(1,-1),e.strikeThrough=1===Number(t[9]),e}static patchCharacter(t,e){return!1}}class bi{constructor(){(0,k.Z)(this,"bold",!1),(0,k.Z)(this,"underline",!1),(0,k.Z)(this,"italic",!1),(0,k.Z)(this,"fontSize","12px"),(0,k.Z)(this,"fontFamily",""),(0,k.Z)(this,"color","#000000"),(0,k.Z)(this,"text",""),(0,k.Z)(this,"left",0),(0,k.Z)(this,"top",0),(0,k.Z)(this,"width",0),(0,k.Z)(this,"height",0),(0,k.Z)(this,"strikeThrough",!1)}}function Ii(t){return t.replace(/(rgb(a)?\(.*?\)|(#[0-9a-fA-F]{6}))/gi,"")}var Si=(0,N.Z)({name:"ItemForNormalText",data(){return{originLetterSpacing:0,fixedLetterSpaceing:"0px",timer:null}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted:function(){this.originLetterSpacing=parseFloat(String(this.item.innerTextStyle.letterSpacing)),this.fixedLetterSpaceing=this.originLetterSpacing+"px",this.item.isSubtitle||(P.Q.$on("SEARCH_TEXT_"+this.pageIndex,(t=>{var e,i,s;t&&(s=document.getElementById("textArea"+this.item.id))&&(e=[],(i=new Be(s,this.item.rotate,this.item.id)).searchNormalText(s,t,e,!1),e.forEach((t=>{t.search_page=this.item.pageIndex+1})),s=document.getElementById("pageInnerAnime"+this.item.pageIndex).getBoundingClientRect(),t=i.computedRelativeHighLight(e,this.viewScale,s.x,s.y),this.item.highLightRects.push(...t))})),P.Q.$on("SEARCH_TEXT_CLEAR",(()=>{this.item.highLightRects=[]})))},destroyed(){P.Q.$off("PAGE_END_FLIP_"+this.pageIndex),P.Q.$off("SEARCH_TEXT_"+this.pageIndex)},updated:function(){},watch:{},computed:{textStyle:function(){var t=parseFloat(String(this.item.innerTextStyle.fontSize)),e=[this.item.innerTextStyle];return e[0].fontSize="number"==typeof t?Math.floor(t)+"px":Math.floor(parseFloat(t))+"px",this.item.isShowStroke&&e.push({textStroke:this.item.stroke.width+"px "+this.item.stroke.color}),t<12&&e.push({fontSize:"12px"}),this.gradient.show&&e.push({backgroundImage:A.getGradientColorVal({gradientItem:this.gradient}),backgroundClip:"text","-webkit-background-clip":"text",color:"transparent"}),1===this.item.contentRow&&e.push({whiteSpace:"nowrap"}),e},gradient:function(){return this.item.gradient},showFontSizeScaleDom:function(){return parseFloat(this.item.innerTextStyle.fontSize)<12},lessScaleStyle:function(){var t,e={};return this.showFontSizeScaleDom&&(t=parseFloat(this.item.innerTextStyle.fontSize)/12,e.transform=`scale(${t})`,e.width=parseFloat(this.item.style.width)/t+"px",e.height=parseFloat(this.item.style.height)/t+"px"),e},subBColor:function(){return this.item.isSubtitle?this.item.subBColor:{}},showTextBackgroundDom:function(){return this.item.isSubtitle&&this.subBColor.isShow},textBackgroundColor:function(){var t,e,i,s;return this.showTextBackgroundDom?(e=(t=this.subBColor).opacity,i=t.color,i=A.getRgbaColor(i),{top:-(s=t.padding)+"px",height:parseFloat(this.item.style.height)+2*s+"px",backgroundColor:`rgba(${i.r}, ${i.g}, ${i.b}, ${e})`,border:`${t.borderWidth}px ${t.borderType} `+t.borderColor,borderRadius:parseFloat(t.borderRadius)+"px"}):{}},textContentInnerHtml:function(){if(this.gradient.show)return Ii(this.item.textStr);var t=this.item.textStr,e=document.createElement("div");e.innerHTML=t;for(var i=t=Array.from(e.childNodes);0!==i.length;){var s,n=i.pop();1===n.nodeType&&("B"===(s=n.nodeName).toLocaleUpperCase()&&(n.style.fontWeight="bold"),"I"===s.toLocaleUpperCase()&&(n.style.fontStyle="italic"),"U"===s.toLocaleUpperCase())&&(n.style.textDecoration="underline"),n.childNodes&&i.push(...Array.from(n.childNodes))}return e.innerHTML}},methods:{checkContentRow(t){var e,i=this.item.innerTextStyle.fontFamily,s=(i=T.errorFonts.has(i)||T.hasAddedFonts.has(i),this.item.contentRow);void 0===s&&0===s||!i||(this.$store.state.needToFixItemId.has(this.item.id)?this.fixedLetterSpaceing=this.originLetterSpacing-2+"px":(i=document.getElementById("textArea"+this.item.id))&&((e=new Be(i,this.item.rotate,this.item.id,this.pageIndex)).computeContentRow(i),s<(i=e.count).size&&i.size-s==1&&0!==i.size?(this.fixedLetterSpaceing=this.originLetterSpacing-2+"px",this.$store.commit("ADD_FIXED_ITEM",{id:this.item.id})):0!==i.size&&parseFloat(this.fixedLetterSpaceing)===parseFloat(this.originLetterSpacing)&&this.$store.commit("ADD_NO_FIXED_ITEM",{id:this.item.id})))}},components:{ItemLayout:Vt},render(t){var e=this.$props,i=t("div",{attrs:{spellcheck:"false",id:"textArea"+this.item.id},class:"textArea",style:[...this.textStyle,{letterSpacing:this.fixedLetterSpaceing}],domProps:{innerHTML:this.textContentInnerHtml}});return t(Vt,{attrs:{item:e.item,viewScale:e.viewScale,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,pageIndex:e.pageIndex}},[this.showTextBackgroundDom?t("div",{class:"textBackgroundColor",style:this.textBackgroundColor}):"",this.showFontSizeScaleDom?t("div",{class:"lessScale-wrapper scale-wrapper",style:this.lessScaleStyle},[i]):i])}},void 0,void 0,!1,null,"722edf18",null).exports,ki=(0,N.Z)({name:"ItemForNormalText",data(){return{originLetterSpacing:0,fixedLetterSpaceing:"0px",timer:null}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex","groupStyle"],mounted:function(){this.item.isSubtitle||(P.Q.$on("SEARCH_TEXT_"+this.pageIndex,(t=>{var e,i,s;t&&(s=document.getElementById("normalTextArea"+this.item.id))&&(e=[],(i=new Be(s,this.item.rotate,this.item.id)).searchNormalText(s,t,e,!1),e.forEach((t=>{t.search_page=this.item.pageIndex+1})),s=document.getElementById("pageInnerAnime"+this.item.pageIndex).getBoundingClientRect(),t=i.computedRelativeHighLight(e,this.viewScale,s.x,s.y),this.item.highLightRects.push(...t))})),P.Q.$on("SEARCH_TEXT_CLEAR",(()=>{this.item.highLightRects=[]})))},destroyed(){},updated:function(){},watch:{},computed:{textStyle:function(){var t=parseFloat(String(this.item.innerTextStyle.fontSize)),e=[Object.assign({},this.item.innerTextStyle)];return e[0].fontSize="number"==typeof t?Math.floor(t)+"px":Math.floor(parseFloat(t))+"px",this.item.isShowStroke&&e.push({textStroke:this.item.stroke.width+"px "+this.item.stroke.color}),t<12&&e.push({fontSize:"12px"}),this.gradient.show&&e.push({backgroundImage:A.getGradientColorVal({gradientItem:this.gradient}),backgroundClip:"text","-webkit-background-clip":"text",color:"transparent"}),1===this.item.contentRow&&e.push({whiteSpace:"nowrap"}),this.item.innerTextStyle.textIndent&&e.forEach((t=>{t.textIndent&&(this.gradient.show?t.textIndent="2em":t.textIndent="unset")})),e},showFontSizeScaleDom:function(){return parseFloat(this.item.innerTextStyle.fontSize)<12},lessScaleStyle:function(){var t,e={};return this.showFontSizeScaleDom&&(t=parseFloat(this.item.innerTextStyle.fontSize)/12,e.transform=`scale(${t})`,e.width=parseFloat(this.item.style.width)/t+"px",e.height=parseFloat(this.item.style.height)/t+"px"),e},subBColor:function(){return this.item.isSubtitle?this.item.subBColor:{}},showTextBackgroundDom:function(){return this.item.isSubtitle&&this.subBColor.isShow},textBackgroundColor:function(){var t,e,i,s;return this.showTextBackgroundDom?(e=(t=this.subBColor).opacity,i=t.color,i=A.getRgbaColor(i),{top:-(s=t.padding)+"px",height:parseFloat(this.item.style.height)+2*s+"px",backgroundColor:`rgba(${i.r}, ${i.g}, ${i.b}, ${e})`,border:`${t.borderWidth}px ${t.borderType} `+t.borderColor,borderRadius:parseFloat(t.borderRadius)+"px"}):{}},highLightRects:function(){return this.item.highLightRects},gradient:function(){return this.item.gradient},showPositionText:function(){return!this.gradient.show&&Array.isArray(this.item.positionText)&&0!==this.item.positionText.length},textContentInnerHtml:function(){var t;return this.gradient.show?Ii(this.item.textStr):(t=this.item.positionText,Array.isArray(t)&&0!==t.length?Ci.positionListToStr(t,this.item):""!==t?t:this.item.textStr)},itemRotateStyle:function(){return 0!==this.item.rotate&&360!==this.item.rotate?{transform:`rotate(-${this.item.rotate}deg)`}:{}}},methods:{},components:{ItemLayout:Vt},render(t){var e=this,i=e.$props,s=t("div",{attrs:{spellcheck:"false",id:"textArea"+e.item.id},class:{textArea:!0,textBreakWord:!e.showPositionText},style:[...e.textStyle],domProps:{innerHTML:e.textContentInnerHtml}}),n=t("div",{attrs:{spellcheck:"false",id:"normalTextArea"+e.item.id},class:"textArea normalTextArea",style:[...e.textStyle],domProps:{innerHTML:e.item.textStr}});return e.highLightRects.map(((e,i)=>t("div",{class:"reader_highlight_text_inner",key:i,style:e.style}))),t(Vt,{attrs:{item:i.item,viewScale:i.viewScale,index:i.index,groupKey:i.groupKey,isGroup:i.isGroup,isGroupItem:i.isGroupItem,pageIndex:i.pageIndex}},[t("div",{class:"textArea_container"},[e.showTextBackgroundDom?t("div",{class:"textBackgroundColor",style:e.textBackgroundColor}):"",e.showFontSizeScaleDom?t("div",{class:"lessScale-wrapper scale-wrapper",style:e.lessScaleStyle},[s]):s,e.showFontSizeScaleDom?t("div",{class:"lessScale-wrapper scale-wrapper normalTextArea",style:e.lessScaleStyle},[n]):n])])}},void 0,void 0,!1,null,"4e78f501",null).exports,Ti=(0,N.Z)({name:"ItemForText",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex","groupStyle"],mounted:function(){},updated:function(){},watch:{},computed:{componentId:function(){return this.showTextSvg?Fe:this.hasPositionText?ki:Si},hasPositionText:function(){return void 0!==this.item.positionText&&""!==this.item.positionText&&0!==this.item.positionText.length&&this.item.transformPositionText},showTextSvg:function(){return""!==this.item.svgText.svgCode}},methods:{},components:{ItemForSvgText:Fe,ItemForNormalText:Si,ItemForPositionTextVue:ki}},(function(){var t=this;return(0,t._self._c)(t.componentId,{tag:"component",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex,groupStyle:t.groupStyle}})}),[],!1,null,"85418bee",null).exports,Pi=(0,N.Z)({name:"ItemForSvgImage",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{}},computed:{svgImageStyle:function(){var t=this.transform.match(/scale\(.*?\)/)[0],e=t.indexOf("("),i=t.indexOf(")"),s=t.indexOf(",");e=t.substring(e+1,s),t=t.substring(s+1,i);return{width:1/Number(e)*100+"%",height:1/Number(t)*100+"%"}},svgUrl:function(){return this.item.svgUrl},svgId:function(){return this.render?"":"svg"+this.item.id},svgRealDomId:function(){return this.render?"":"realSvgDom"+this.item.id},transform:function(){return this.item.pathTransform},viewBox:function(){var t=this.item.pathViewBox;let e=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[2]),i=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[3]);return e<1&&(e=1),i<1&&(i=1),`0 0 ${e} `+i}},mounted:function(){},methods:{},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForSvg",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[e("svg",{staticClass:"visible",attrs:{id:t.svgId,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:v":"http://schemas.microsoft.com/visio/2003/SVGExtensions/",width:"100%",height:"100%",viewBox:t.viewBox,overflow:"visible"}},[t.item.svg.hasDefs?t._e():e("g",{attrs:{transform:t.transform,id:t.svgRealDomId}},[e("image",{attrs:{"xlink:href":t.svgUrl,x:"0",y:"0",height:t.svgImageStyle.height,width:t.svgImageStyle.width}})])])])}),[],!1,null,"ccc4ecf0",null).exports,Li=i(1803),Mi=i.n(Li),Ai=(0,N.Z)({name:"ItemForSvgStr",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{qrcodeImgSrc:""}},computed:{svgId:function(){return this.render?"":"svg"+this.item.id},svgRealDomId:function(){return this.render?"":"realSvgDom"+this.item.id},transform:function(){return this.item.pathTransform},viewBox:function(){var t=this.item.pathViewBox;let e=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[2]),i=parseFloat(t.match(/-?\d.*\d/g)[0].split(" ")[3]);return e<1&&(e=1),i<1&&(i=1),`0 0 ${e} `+i},getSize:function(){return{width:this.item.style.width,height:this.item.style.height}},gradientColorList:function(){return f.removeArrEmpty(this.item.gradientColorList.slice(0))},svgGradientDeg(){return function(t){return t-90+" 0.5 0.5"}},isYZPro:function(){return this.$store.getters.isYZPro},isQRCodeImg:function(){return this.item.isQRCodeImg},isShowQrcodeImg:function(){let t=!0;return!!(this.isYZPro&&this.isQRCodeImg&&this.qrcodeImgSrc)&&t},qrcodeItemStyle:function(){var t,e,i,s,n,o,r;return this.isYZPro&&this.item.isQRCode&&this.item.qrcodeGap?((t={padding:"","background-color":"","background-image":""}).padding=this.item.qrcodeGap+"px",t["background-color"]=this.item.colorList[0],this.gradientColorList[0]&&(e=this.gradientColorList[0].gradientType,i=this.gradientColorList[0].gradientDeg,s=this.gradientColorList[0].colorList[0].color,n=this.gradientColorList[0].colorList[0].percent,o=this.gradientColorList[0].colorList[1].color,r=this.gradientColorList[0].colorList[1].percent,"linear"===e&&(t["background-image"]=`linear-gradient(${i}deg, ${s} ${n}, ${o} ${r})`),t["background-color"]=o),t):{}}},watch:{},mounted:function(){this.svgToPng()},methods:{svgToPng:function(){this.isYZPro&&this.isQRCodeImg&&window.setTimeout((()=>{Mi().svgAsDataUri(this.$refs.svgRef,{encoderOptions:1}).then((t=>{this.qrcodeImgSrc=t})).catch((t=>{}))}))}},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForSvg",style:[t.qrcodeItemStyle],attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[t.isShowQrcodeImg?e("div",{staticClass:"qrcode-img"},[e("img",{attrs:{src:t.qrcodeImgSrc}})]):e("svg",{ref:"svgRef",staticClass:"visible",attrs:{id:t.svgId,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:v":"http://schemas.microsoft.com/visio/2003/SVGExtensions/",width:"100%",height:"100%",viewBox:t.viewBox,overflow:"visible"}},[t._l(t.gradientColorList,(function(i,s){return e("defs",{key:s},[i.isLinear?e("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${t.svgGradientDeg(i.gradientDeg)})`}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1):e("radialGradient",{attrs:{id:i.id}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1)],1)})),t.item.svg.hasDefs?t._e():e("g",{attrs:{transform:t.transform,id:t.svgRealDomId},domProps:{innerHTML:t._s(t.item.svgCode)}}),t.item.svg.hasDefs?e("g",{attrs:{transform:t.transform,id:t.svgRealDomId}},[e("defs",{domProps:{innerHTML:t._s(t.item.svgCode)}}),e("rect",{attrs:{fill:`url(#${t.item.rectNode.id})`,width:t.item.rectNode.width,height:t.item.rectNode.height,x:"0",y:"0"}})]):t._e()],2)])}),[],!1,null,"1940494e",null).exports,Ei=(Li=(0,N.Z)({name:"ItemForSvg",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{}},computed:{componentId:function(){return this.item.userHasChangedColor?Ai:Pi}},mounted:function(){},methods:{},components:{ItemForSvgImageVue:Pi,ItemForSvgStrVue:Ai}},(function(){return(0,this._self._c)(this.componentId,{tag:"component",attrs:{item:this.item,index:this.index,groupKey:this.groupKey,isGroup:this.isGroup,isGroupItem:this.isGroupItem,viewScale:this.viewScale,pageIndex:this.pageIndex}})}),[],!1,null,"205e2d17",null).exports,i(1223)),Wi=i.n(Ei),_i=(Ei=(0,N.Z)({name:"ItemForChart",props:["item","index","groupKey","isGroup","isGroupItem","pageIndex"],data(){return{beTb:!1,singleHLTextWidth:0}},computed:{pointR:function(){return Math.max(Math.min(.3*this.rectWidth,6),1)},startX:function(){return Math.min(.12*Math.min(this.width,this.height),40)},startY:function(){return"top"===this.item.position?Math.min(.22*Math.min(this.width,this.height),60):Math.min(.15*Math.min(this.width,this.height),40)},endX:function(){return this.width-Math.min(1.5*this.startX,60)},endY:function(){return this.xToTop},ySize:function(){return this.endY-this.startY},xSize:function(){return this.endX-this.startX},height:function(){return this.item.isFixedRatio?500:parseFloat(this.item.style.height)},width:function(){return this.item.isFixedRatio?500:parseFloat(this.item.style.width)},xToTop:function(){return"top"===this.item.position?this.height-Math.min(.12*Math.min(this.width,this.height),60):this.height-Math.min(.22*Math.min(this.width,this.height),60)},circleToTop:function(){return"top"===this.item.position?this.height/2+2.5*this.pointR:this.height/2-2.5*this.pointR},circleR:function(){return.78*Math.min(this.width/2-6*this.pointR,this.height/2-6*this.pointR)},minNum:function(){let t=0;return this.dataNumber.forEach((e=>{t=Math.min(e,t)})),t=t<0?-Math.ceil(Math.abs(t)):t},maxYAxis:function(){var t=this.maxDataNumber.toString().split(""),e=t.length;let i;if(1===e)i=Math.ceil(this.maxDataNumber);else if(2===e){var s=parseInt(this.maxDataNumber/10);i=t[1]%s!=0?Math.ceil(this.maxDataNumber/s)*s:this.maxDataNumber}else if(3===e)s=Math.min(t[0]+"0",50),i=Math.ceil(this.maxDataNumber/s)*s;else if(4===e){s=t[0];var n=t[1],o=Number(s+n+"00")-this.maxDataNumber;i=0!=o?Number(s+n+"00")+100:this.maxDataNumber}else{o=t[0],s=t[1];let r="0";for(let t=1;tNumber("5"+r)&&(t=2),i=Number(o+s+r+"0")+Number("5"+r)*t}else i=this.maxDataNumber}return i-this.minNum},chartType:function(){return this.item.chartType},chartClass:function(){return this.item.chartClass},dataNumber:function(){return this.item.dataNumber.filter(((t,e)=>{if(""!==t&&void 0!==t)return t}))},maxDataNumber:function(){return Math.ceil(Math.max(...this.dataNumber))},rectWidth:function(){var t=this.xSize,e=this.dataNumber.length;return t/(3*e+e+1)*3},yAxisLabel:function(){var t=this.maxYAxis/5,e=[];for(let s=0;s<=5;s++){var i=parseInt(t*s*100)/100;e.unshift(parseInt(100*(this.minNum+i))/100)}return e},rectColorList:function(){var t,e,i=this.dataNumber.length;return this.item.showGradient?(t=this.item.colorList[0],e=this.item.colorList[this.item.colorList.length-1],c.getColor({startColor:t,endColor:e,step:i})):this.item.colorList},translateArr:function(){var t=this.dataNumber.length,e=[];for(let s=0;st&&!isNaN(t)))).map((t=>t-1<0?0:t-1))).length&&(t[1]{t+=`L${e.x+this.rectWidth/2}, `+e.y})),t+=`L${this.translateArr[e].x+this.rectWidth/2}, `+this.xToTop},currentPieIndex:function(){let t=0;var e=this.originProgress*Math.PI*2;for(let i=0;i=this.angleArray[i].startAngle&&e<=this.angleArray[i].endAngle){t=i;break}return t}},watch:{},mounted:function(){setTimeout((()=>{this.getSingleHLTextWidth()}),1)},methods:{getSingleHLTextWidth:function(){var t;this.item.showHighlight&&this.item.highlightTitle&&((t=document.getElementById("highText"+this.item.id))&&t.getBBox().width?this.singleHLTextWidth=t.getBBox().width+2.5*this.pointR:setTimeout(this.getSingleHLTextWidth,500))},getPath:function({firstPoint:t,secondPoint:e}){return`M${t.x+this.rectWidth/2}, ${t.y} L${e.x+this.rectWidth/2}, `+e.y},getPathLength:function(t){return Wi().path.getTotalLength(t)},getDashArray:function(t){return this.isChartAnime?Math.ceil(this.getPathLength(t)):0},isShowLineCircle:function(t){return this.pathArray.length*this.progress>=t},getRgbaColor:function(t,e){return A.hexToRgba(t,e)},getDashOffset:function(t,e){let i=0;var s=this.progress*this.pathArray.length;return 0<=s-t&&s-t<1&&(i=this.getPathLength(e),i+=i*(t-s)),i},getRectHeight:function(t,e){var i=this.progress*this.dataNumber.length;return i-e<0?0:0<=i-e&&i-e<1?Math.abs(t*this.ySize/this.maxYAxis)*(i-e):Math.abs(t*this.ySize/this.maxYAxis)},getRectTrans:function(t){return t=t*this.ySize/this.maxYAxis-1,(t<0?"scale(1, -1)":"scale(1, 1) ")+"rotate(180,"+this.rectWidth/2+","+(t<0?-t/2:t/2)+")"},getCirclePath:function(t){var e;return t\n \n \n `:"wechat-stroke"===this.iconHref?`\n \n \n \n \n \n `:void 0;var t},mouseEvent:function(t){switch(t){case"mouseenter":this.buttonForBackground=this.item.buttonBackground.hoverColor;break;case"mousedown":this.buttonForBackground=this.item.buttonBackground.clickColor;break;default:this.item.buttonBackground.hasgradient&&!f.isEmptyObject(this.item.buttonBackground.gradient)?this.buttonForBackground=A.getGradientColorVal({gradientItem:this.item.buttonBackground.gradient}):this.buttonForBackground=this.item.buttonBackground.background}}},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForButton",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,pageIndex:t.pageIndex,viewScale:t.viewScale},on:{mouseEvent:t.mouseEvent}},[e("div",{staticClass:"button_con",style:[t.buttonBackground,t.showBorderRadius]},[e("div",{staticClass:"button_icon",style:[t.buttonIcon,t.isShowIcon,t.iconSiteLeft]},["wechat-fill"!==t.iconHref&&"wechat-stroke"!==t.iconHref?e("i",{class:t.iconHref}):t._e(),"wechat-fill"===t.iconHref||"wechat-stroke"===t.iconHref?e("p",{staticClass:"wechat",style:t.getSvgSize,domProps:{innerHTML:t._s(t.getIconSvg())}}):t._e()]),e("div",{staticClass:"button_text",style:[t.buttonFont]},[e("span",{attrs:{id:"editSpan"}},[t._v(t._s(t.buttonText))])]),e("div",{staticClass:"button_icon",style:[t.buttonIcon,t.isShowIcon,t.iconSiteRight]},["wechat-fill"!==t.iconHref&&"wechat-stroke"!==t.iconHref?e("i",{class:t.iconHref}):t._e(),"wechat-fill"===t.iconHref||"wechat-stroke"===t.iconHref?e("p",{staticClass:"wechat",style:t.getSvgSize,domProps:{innerHTML:t._s(t.getIconSvg())}}):t._e()])])])}),[],!1,null,"6115b14e",null).exports;const Hi={resolution:500,iframes:[],interval:null,Iframe:function(){this.element=arguments[0],this.cb=arguments[1],this.hasTracked=!1},track:function(t,e){this.iframes.push(new this.Iframe(t,e)),this.interval||(this.interval=window.setInterval((()=>{this.checkClick()}),this.resolution))},checkClick:function(){if(document.activeElement){var t,e=document.activeElement;for(t in this.iframes)e===this.iframes[t].element?0==this.iframes[t].hasTracked&&(this.iframes[t].cb.apply(window,[]),this.iframes[t].hasTracked=!0):this.iframes[t].hasTracked=!1}}};var Ni=(0,N.Z)({name:"ItemForVideo",data(){return{videoDom:null,startSeek:0,time:0}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},videoInfo:function(){return this.item.videoInfo},videoBGIStyle:function(){return this.item.isBGI?{backgroundColor:"#000"}:{}},isPlayingAnime:function(){return this.$store.state.isPlayingAnime[this.pageIndex]},currentPageIndex:function(){return this.$store.state.currentPageIndex},noControl:function(){return this.$store.state.noControl},isIos:function(){return window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad()}},mounted:function(){this.videoDom=this.$refs["video"+this.item.id],this.videoDom.addEventListener("play",(()=>{this.item.isNeedControls=!1,window.bgSound&&window.bgSound.pause()})),this.videoDom.addEventListener("pause",(()=>{window.bgSound&&window.bgSound.play()}))},watch:{},methods:{videoPlay:function(){},videoPause:function(){},videoCanplay:function(){},videoSeeked:function(){},videoSeeking:function(){this.startTime=(new Date).getTime()},videoTimeupdate:function(){},videoError:function(){}},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForVideo",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,pageIndex:t.pageIndex}},[e("div",{staticClass:"videoBGI",style:t.videoBGIStyle},[e("video",{ref:"video"+t.item.id,attrs:{id:"video"+t.item.id,src:t.videoInfo.url,width:"100%",height:"100%",preload:"auto",controls:t.item.isNeedControls,"webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x5-video-orientation":"portraint"},on:{play:t.videoPlay,pause:t.videoPause,canplay:t.videoCanplay,seeked:t.videoSeeked,seeking:t.videoSeeking,timeupdate:t.videoTimeupdate,error:t.videoError}})])])}),[],!1,null,"2eb411fc",null).exports,Di=i(8234),zi=i.n(Di),Zi=(0,N.Z)({name:"Lottie",data(){return{dom:null,lottieObj:null,error:!1}},props:["item","currentStep"],computed:{isFlipPro:function(){return this.$store.getters.isFlipPro},itemId:function(){return"dom"+this.item.id},jsonUrl:function(){return this.item.jsonUrl},speed:function(){return this.item.speed},isDev:function(){return this.$store.state.isDev},hasLoadedJson:function(){return this.item.hasLoadedJson},json:function(){return this.item.json},isAutoPlay:function(){return this.item.isAutoPlay},colorInfo:function(){return this.item.colorInfo},widthInfo:function(){return this.item.widthInfo},noControl:function(){return this.$store.state.noControl},isLoop:function(){return this.item.isLoop},lottieIsLoop:function(){return!!this.isFlipPro||this.isLoop},lottieIsAutoPlay:function(){return!!this.isFlipPro||this.isAutoPlay}},watch:{currentStep:function(t){this.isAutoPlay||this.lottieObj.goToAndStop(t,!1)},hasLoadedJson:function(){this.setLottie()}},mounted(){},destroyed(){this.lottieObj&&(this.lottieObj.destroy(),this.lottieObj=null)},methods:{setLottie:function(){this.lottieObj&&(this.lottieObj.destroy(),this.lottieObj=null);try{var t=this.setLottieColor(),e=(t=this.setLottieWidth(t),this.$refs[this.itemId]);this.lottieObj=zi().loadAnimation({container:e,renderer:"svg",loop:this.lottieIsLoop,autoplay:this.lottieIsAutoPlay,animationData:t}),this.lottieObj.addEventListener("DOMLoaded",(()=>{this.noControl})),this.lottieObj.addEventListener("data_failed",(()=>{})),this.lottieObj.renderer.layerElement.removeAttribute("clip-path"),this.lottieObj.renderer.svgElement.setAttribute("overflow","visible"),this.lottieObj.renderer.svgElement.style.transform="",this.lottieObj.setSpeed(this.speed)}catch(t){this.noControl}},setLottieColor:function(){try{let t=f.copy(this.json,!0);return this.colorInfo.forEach((e=>{var i=e.color;i=A.getRgbaColor(i);let s={};s=(-1===e.assetIndex?t:t.assets[e.assetIndex]).layers[e.layerIndex].shapes[e.shapeIndex],e.itIndex.forEach((t=>{s=s.it[t]})),s.o.k=100*Number(i.a),s.c.k[0]=parseInt(i.r)/255,s.c.k[1]=parseInt(i.g)/255,s.c.k[2]=parseInt(i.b)/255})),t}catch(H){}},setLottieWidth:function(t){return this.widthInfo.forEach((e=>{var i=e.width;if(i){let s={};s=(-1===e.assetIndex?t:t.assets[e.assetIndex]).layers[e.layerIndex].shapes[e.shapeIndex],e.itIndex.forEach((t=>{s=s.it[t]})),s.w.k=Number(i)}})),t}}},(function(){var t=this._self._c;return t("div",{staticClass:"lottieBox"},[t("div",{ref:this.itemId,staticClass:"lottieBox",attrs:{id:this.itemId}})])}),[],!1,null,"3c3af45c",null).exports,Gi=(Di=(0,N.Z)({name:"ItemForEffect",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getCurrentPage"],computed:{curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},currentPage:function(){},pageTotalTime:function(){return this.getCurrentPage?this.getCurrentPage().totalTime:0},subTime:function(){let t=this.item;if(this.curSliderTimethis.intoPageTime+this.pageTotalTime)return this.curSliderTime=t.existStartTime?-1===t.existEndTime||e<=t.existEndTime?1e3*(e-t.existStartTime):1e3*t.existEndTime:0},componentClassName:function(){return this.item.effectType},cycleTime:function(){return"Lottie"===this.item.effectType?1e3*this.item.cycle/this.item.speed:1e3*this.item.cycle},isLoop:function(){return this.item.isLoop},currentStep:function(){return!this.isLoop&&this.subTime>this.cycleTime?this.cycleTime:this.subTime%this.cycleTime},hasLoadedJson:function(){return this.item.hasLoadedJson}},watch:{},methods:{},components:{ItemLayout:Vt,...s}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForEffect",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[e(t.componentClassName,{tag:"component",attrs:{item:t.item,currentStep:t.currentStep}})],1)}),[],!1,null,"4cb5d44f",null).exports,(0,N.Z)({name:"Triangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height-t.lineWidth/2} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5ef90034",null).exports),Vi=(0,N.Z)({name:"Trapezoid",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width/2,e);return e=Math.max(t.lineWidth/2,e),`M${t.lineWidth/2} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-e} ${t.height-t.lineWidth/2} L${e} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3a3ab986",null).exports,ji=(0,N.Z)({name:"BlockUpDownArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height/2,i),i=Math.max(t.lineWidth/2,i),`M${t.lineWidth/2} ${i}L${t.width/2} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${i}L${t.width-e} ${i}L${t.width-e} ${t.height-i}L${t.width-t.lineWidth/2} ${t.height-i}L${t.width/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-i}L${e} ${t.height-i}L${e} ${i}L${t.lineWidth/2} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"68d538de",null).exports,Yi=(0,N.Z)({name:"BlockDoubleArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height/2,i),i=Math.max(t.lineWidth/2,i),`M${t.lineWidth/2} ${t.height/2}L${e} ${t.lineWidth/2}L${e} ${i}L${t.width-e} ${i}L${t.width-e} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height/2}L${t.width-e} ${t.height-t.lineWidth/2}L${t.width-e} ${t.height-i}L${e} ${t.height-i}L${e} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4a32bd36",null).exports,Xi=(0,N.Z)({name:"BlockNotchedArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.max(t.lineWidth/2,e),i=Math.min(t.height/2,i);return i=Math.max(t.lineWidth/2,i),`M${(t.width-e)/2} ${t.height/2}L${t.lineWidth/2} ${i}L${e} ${i}L${e} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-t.lineWidth/2}L${e} ${t.height-i}L${t.lineWidth/2} ${t.height-i}L${(t.width-e)/2} ${t.height/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"9d803512",null).exports,Ui=(0,N.Z)({name:"BlockStripedArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.max(5*t.width/24,e),i=Math.min(t.height/2,i);return i=Math.max(t.lineWidth/2,i),`M${t.lineWidth/2} ${i}L${t.width/24} ${i}L${t.width/24} ${t.height-i}L${t.lineWidth/2} ${t.height-i}L${t.lineWidth/2} ${i}z M${t.width/12} ${i}L${t.width/6} ${i}L${t.width/6} ${t.height-i}L${t.width/12} ${t.height-i}L${t.width/12} ${i}z M${5*t.width/24} ${i}L${e} ${i}L${e} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-t.lineWidth/2}L${e} ${t.height-i}L${5*t.width/24} ${t.height-i}L${5*t.width/24} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6e49fab2",null).exports,qi=(0,N.Z)({name:"BlockBentArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.max(t.width/2,e),i=Math.min(t.height/4,i);return`M${t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height/2}A${t.width/2},${t.height/2-i} 0 0,1 ${t.width/2},${i} L${e} ${i}L${e} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height/4}L${e} ${t.height/2}L${e} ${t.height/2-i}L${t.width/2} ${t.height/2-i}A${2*i/t.height*t.width},${i} 0 0,0 ${t.width/2-2*i/t.height*t.width+t.lineWidth/2},${t.height/2}L${t.width/2-2*i/t.height*t.width+t.lineWidth/2} ${t.height-t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"45bc9072",null).exports,Qi=(0,N.Z)({name:"BlockPentagonArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width,e);return e=Math.max(t.lineWidth,e),i=Math.min(t.lineWidth/2,i),i=Math.max(t.lineWidth/2,i),`M${t.lineWidth/2} ${i}L${e} ${i}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-i}L${t.lineWidth/2} ${t.height-i}L${t.lineWidth/2} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5233cdc0",null).exports,Ki=(0,N.Z)({name:"BlockChevronArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width,e);return e=Math.max(t.lineWidth,e),i=Math.min(t.lineWidth/2,i),i=Math.max(t.lineWidth/2,i),`M${t.width-e} ${t.height/2}L${t.lineWidth/2} ${i}L${e} ${i}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-i}L${t.lineWidth/2} ${t.height-i}L${t.width-e} ${t.height/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"94a83f84",null).exports,Ji=(0,N.Z)({name:"BlockBentUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[1];s=Math.min(2*e-t.width,s);return s=Math.max(t.width/2,s),n=Math.min(t.lineWidth/2,n),n=Math.max(t.lineWidth/2,n),e=Math.max((t.width+s)/2,e),e=Math.min(t.width-t.lineWidth/2,e),i=Math.min(t.height/2,i),`M${e} ${i=Math.max(t.lineWidth/2,i)}L${t.width-t.lineWidth/2} ${i}L${(t.width+s)/2} ${n}L${s} ${i}L${s+t.width-e} ${i}L${s+t.width-e} ${t.height-2*e+s+t.width}L${t.lineWidth/2} ${t.height-2*e+s+t.width}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${e} ${t.height-t.lineWidth/2}L${e} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7baa3e2b",null).exports,ts=(0,N.Z)({name:"BlockDownArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height-t.lineWidth/2,i),i=Math.max(t.lineWidth/2,i),`M${e} ${t.lineWidth/2} L${t.width-e} ${t.lineWidth/2} L${t.width-e} ${i} L${t.width-t.lineWidth/2} ${i} L${t.width/2} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${i} L${e} ${i} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1c3d84d9",null).exports,es=(0,N.Z)({name:"BlockLeftArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height/2,i),i=Math.max(t.lineWidth/2,i),`M${e} ${t.lineWidth/2} L${e} ${i} L${t.width-t.lineWidth/2} ${i} L${t.width-t.lineWidth/2} ${t.height-i} L${e} ${t.height-i} L${e} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height/2} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"190712f6",null).exports,is=(0,N.Z)({name:"BlockRightArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height/2,i),i=Math.max(t.lineWidth/2,i),`M${e} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height/2} L${e} ${t.height-t.lineWidth/2} L${e} ${t.height-i} L${t.lineWidth/2} ${t.height-i} L${t.lineWidth/2} ${i} L${e} ${i} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"ee30383c",null).exports,ss=(0,N.Z)({name:"BlockUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0];e=Math.min(t.width/2,e);return e=Math.max(t.lineWidth/2,e),i=Math.min(t.height-t.lineWidth/2,i),i=Math.max(t.lineWidth/2,i),`M${e} ${t.height-t.lineWidth/2} L${t.width-e} ${t.height-t.lineWidth/2} L${t.width-e} ${i} L${t.width-t.lineWidth/2} ${i} L${t.width/2} ${t.lineWidth/2} L${t.lineWidth/2} ${i} L${e} ${i} L${e} ${t.height-t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"deec4f7e",null).exports,ns=(0,N.Z)({name:"CrossPolygon",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width/2,e);return e=Math.min(t.height/2,e),`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-e} ${t.lineWidth/2} L${t.width-e} ${e} L${t.width-t.lineWidth/2} ${e} L${t.width-t.lineWidth/2} ${t.height-e} L${t.width-e} ${t.height-e} L${t.width-e} ${t.height-t.lineWidth/2} L${e} ${t.height-t.lineWidth/2} L${e} ${t.height-e} L${t.lineWidth/2} ${t.height-e} L${t.lineWidth/2} ${e} L${e} ${e} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"54b80d23",null).exports,os=(0,N.Z)({name:"BlockQuadCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1],s=t.splitY[1],n=t.splitY[2];n=Math.min(e/t.width*t.height,n),s=Math.min(n,s);return n=Math.max(s,n),i=Math.min(t.width/2,i),e=Math.min(i,e),e=Math.max(n/t.height*t.width,e),i=Math.max(e,i),s=Math.max(t.lineWidth/2,s),`M${t.width/2} ${t.lineWidth/2} L${e} ${s} L${i} ${s} L${i} ${n} L${n/t.height*t.width} ${n} L${n/t.height*t.width} ${i/t.width*t.height} L${s/t.height*t.width} ${i/t.width*t.height}L${s/t.height*t.width} ${e/t.width*t.height}L${t.lineWidth/2} ${t.height/2}L${s/t.height*t.width} ${t.height-e/t.width*t.height}L${s/t.height*t.width} ${t.height-i/t.width*t.height}L${n/t.height*t.width} ${t.height-i/t.width*t.height} L${n/t.height*t.width} ${t.height-n}L${i} ${t.height-n}L${i} ${t.height-s}L${e} ${t.height-s}L${t.width/2} ${t.height-t.lineWidth/2}L${t.width-e} ${t.height-s}L${t.width-i} ${t.height-s}L${t.width-i} ${t.height-n}L${t.width-n/t.height*t.width} ${t.height-n}L${t.width-n/t.height*t.width} ${t.height-i/t.width*t.height}L${t.width-s/t.height*t.width} ${t.height-i/t.width*t.height}L${t.width-s/t.height*t.width} ${t.height-e/t.width*t.height}L${t.width-t.lineWidth/2} ${t.height/2}L${t.width-s/t.height*t.width} ${e/t.width*t.height}L${t.width-s/t.height*t.width} ${i/t.width*t.height}L${t.width-n/t.height*t.width} ${i/t.width*t.height}L${t.width-n/t.height*t.width} ${n}L${t.width-i} ${n}L${t.width-i} ${s}L${t.width-e} ${s}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5821391a",null).exports,rs=(0,N.Z)({name:"CurveDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-3*t.lineWidth,e);return e=Math.max(t.lineWidth/2,e),`M0 ${t.lineWidth/2} a${e},${(t.height-t.lineWidth)/2} 0 0,1 ${e},${(t.height-t.lineWidth)/2} M${t.width-3*t.lineWidth} ${t.height-2*t.lineWidth} a${t.width-e},${(t.height-t.lineWidth)/2} 0 0,1 ${-t.width+e+3*t.lineWidth},`+(-t.height/2+2*t.lineWidth)},d1:function(){var t=this.transConfig;return`M${t.width-3*t.lineWidth} ${t.height-t.lineWidth} L${t.width-3*t.lineWidth} ${t.height-3*t.lineWidth} L${t.width-t.lineWidth} ${t.height-2*t.lineWidth}z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,"stroke-dasharray":t.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"round","stroke-linecap":t.transConfig.linecap}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"07c7383a",null).exports,as=(0,N.Z)({name:"CurveDoubleDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-3*t.lineWidth,e);return e=Math.max(3*t.lineWidth,e),`M${3*t.lineWidth} ${2*t.lineWidth} a${e},${(t.height-t.lineWidth)/2} 0 0,1 ${e-3*t.lineWidth},${t.height/2-2*t.lineWidth} M${t.width-3*t.lineWidth} ${t.height-2*t.lineWidth} a${t.width-e},${(t.height-t.lineWidth)/2} 0 0,1 ${-t.width+e+3*t.lineWidth},${-t.height/2+2*t.lineWidth} `},d1:function(){var t=this.transConfig;return`M${3*t.lineWidth} ${t.lineWidth} L${3*t.lineWidth} ${3*t.lineWidth} L${t.lineWidth} ${2*t.lineWidth}z`},d2:function(){var t=this.transConfig;return`M${t.width-3*t.lineWidth} ${t.height-t.lineWidth} L${t.width-3*t.lineWidth} ${t.height-3*t.lineWidth} L${t.width-t.lineWidth} ${t.height-2*t.lineWidth}z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:"transparent","stroke-dasharray":t.transConfig.strokeDashes,"stroke-linejoin":"round","stroke-linecap":t.transConfig.linecap}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"0ffa30f8",null).exports,ls=(0,N.Z)({name:"CurveLine",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),`M0 ${t.lineWidth/2} a${e},${(t.height-t.lineWidth)/2} 0 0,1 ${e},${(t.height-t.lineWidth)/2} M${t.width} ${t.height-t.lineWidth/2} a${t.width-e},${(t.height-t.lineWidth)/2} 0 0,1 ${-t.width+e},`+(-t.height+t.lineWidth)/2}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,"stroke-dasharray":this.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"round","stroke-linecap":this.transConfig.linecap}})])}),[],!1,null,"d51d3e1c",null).exports,hs=(0,N.Z)({name:"Dike",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),`M${t.lineWidth/2} ${t.lineWidth/2} L${e} ${t.lineWidth/2} L${e} ${t.height-t.lineWidth/2} L${t.width-t.lineWidth/2} `+(t.height-t.lineWidth/2)}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:"transparent","stroke-dasharray":this.transConfig.strokeDashes,"stroke-linejoin":this.transConfig.linecap,"stroke-linecap":this.transConfig.linecap}})])}),[],!1,null,"34f592bb",null).exports,ds=(0,N.Z)({name:"EightSided",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width/2,e);return e=Math.min(t.height/2,e),`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-e} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${e} L${t.width-t.lineWidth/2} ${t.height-e} L${t.width-e} ${t.height-t.lineWidth/2} L${e} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height-e} L${t.lineWidth/2} ${e} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"a1bdd0d6",null).exports,cs=(0,N.Z)({name:"FoldDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),`M${t.width-3*t.lineWidth} ${t.height-2*t.lineWidth} L${e} ${t.height-2*t.lineWidth} L${e} ${t.lineWidth/2} L${t.lineWidth/2} `+t.lineWidth/2},d1:function(){var t=this.transConfig;return`M${t.width-3*t.lineWidth} ${t.height-t.lineWidth} L${t.width-3*t.lineWidth} ${t.height-3*t.lineWidth} L${t.width-t.lineWidth} ${t.height-2*t.lineWidth}z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,"stroke-dasharray":t.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":t.transConfig.linecap,"stroke-linecap":t.transConfig.linecap}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"7104f33f",null).exports,us=(0,N.Z)({name:"FoldDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return e=Math.max(t.lineWidth/2,e),`M${t.width-3*t.lineWidth} ${t.height-2*t.lineWidth} L${e} ${t.height-2*t.lineWidth} L${e} ${2*t.lineWidth} L${3*t.lineWidth} `+2*t.lineWidth},d1:function(){var t=this.transConfig;return`M${t.width-3*t.lineWidth} ${t.height-t.lineWidth} L${t.width-3*t.lineWidth} ${t.height-3*t.lineWidth} L${t.width-t.lineWidth} ${t.height-2*t.lineWidth}z`},d2:function(){var t=this.transConfig;return`M${3*t.lineWidth} ${t.lineWidth} L${3*t.lineWidth} ${3*t.lineWidth} L${t.lineWidth} ${2*t.lineWidth}z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,"stroke-dasharray":t.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":t.transConfig.linecap,"stroke-linecap":t.transConfig.linecap}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"334faacb",null).exports,ps=(0,N.Z)({name:"lineArc",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=(e=Math.min(t.width-t.lineWidth/2,e),e=Math.max(t.lineWidth/2,e),i=Math.min(t.height-t.lineWidth/2,i),i=Math.max(t.lineWidth/2,i),e=Math.min(t.width-t.lineWidth/2,e),e=Math.max(t.lineWidth/2,e),i>t.height/2?0:1);e=Math.sqrt(Math.pow((t.width-t.lineWidth)/2,2)+Math.pow((e*e+i*i-t.height*t.height/4-t.width*e-t.lineWidth*t.lineWidth/4+t.lineWidth*t.width/2)/(2*i-t.height)-t.height/2,2));return`M${t.lineWidth/2} ${t.height/2} a${e},${e} 0 0,${s} ${t.width-t.lineWidth},0`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,"stroke-dasharray":this.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"miter","stroke-linecap":this.transConfig.linecap}})])}),[],!1,null,"32171692",null).exports,gs=(0,N.Z)({name:"LineDash",data(){return{}},props:["transConfig"],computed:{dasharray:function(){return 3*this.transConfig.lineWidth+","+this.transConfig.lineWidth},d:function(){var t=this.transConfig,e=t.splitY[0],i=(e=Math.min(7*t.height/8,e),e=Math.max(t.height/8,e),t.height/2);let s=(4*e-t.height/2)/3;return i===s&&(s+=.1),`M0 ${i} L${t.width} `+s}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:"transparent","stroke-linejoin":"miter","stroke-linecap":"miter","stroke-dasharray":this.dasharray}})])}),[],!1,null,"e440f21a",null).exports,ms=(0,N.Z)({name:"Parallelogram",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-e} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height-t.lineWidth/2} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"da2f5bf4",null).exports,fs=(0,N.Z)({name:"RoundedRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width/2,e);return e=Math.min(t.height/2,e),`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-e} ${t.lineWidth/2} a${e},${e} 0 0,1 ${e-t.lineWidth/2},${e-t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height-e} a${e},${e} 0 0,1 ${-e+t.lineWidth/2},${e-t.lineWidth/2} L${e} ${t.height-t.lineWidth/2} a${e},${e} 0 0,1 ${-e+t.lineWidth/2},${-e+t.lineWidth/2} L${t.lineWidth/2} ${e} a${e},${e} 0 0,1 ${e-t.lineWidth/2},${-e+t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1f6d9601",null).exports,ws=(0,N.Z)({name:"LineStraight",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitY[0],i=parseFloat(String(t.lineWidth)),s=(e=Math.min(7*(t.height-i/2)/8,e),e=Math.max((t.height-i/2)/8+i/2,e),t.height/2);let n=(4*e-t.height/2)/3;return s===n&&(n+=.1),`M${0+i/2} ${s} L${t.width-i/2} `+n}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:"transparent","stroke-dasharray":this.transConfig.strokeDashes,"stroke-linejoin":"miter","stroke-linecap":this.transConfig.linecap}})])}),[],!1,null,"52c5e3f5",null).exports,vs=(0,N.Z)({name:"BlockLeftUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1];s=Math.min(2*e-t.width,s);return s=Math.max(t.width/2,s),e=Math.max((t.width+s)/2,e),e=Math.min(t.width-t.lineWidth/2,e),i=Math.min(t.height/2,i),i=Math.max(t.lineWidth/2,i),`M${(t.width+s)/2} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${i}L${e} ${i}L${e} ${e/t.width*t.height}L${i/t.height*t.width} ${e/t.width*t.height}L${i/t.height*t.width} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${(t.width/2+s/2)/t.width*t.height} L${i/t.height*t.width} ${s/t.width*t.height}L${i/t.height*t.width} ${(t.width-e+s)/t.width*t.height}L${t.width-e+s} ${(t.width-e+s)/t.width*t.height}L${t.width-e+s} ${i}L${s} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4b70b185",null).exports,ys=(0,N.Z)({name:"BlockLeftRightUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1];i=Math.min(t.height/4,i);return i=Math.max(t.lineWidth/2,i),e=Math.min(t.width/2,e),s=Math.max(i/t.height*t.width,s),s=Math.min(t.width/2,s),e=Math.max(s,e),`M${t.width/2} ${t.lineWidth/2}L${s} ${i}L${e} ${i}L${e} ${(e+s)/t.width*t.height}L${i/t.height*t.width} ${(e+s)/t.width*t.height}L${i/t.height*t.width} ${2*s/t.width*t.height}L${t.lineWidth/2} ${(t.width/2+s)/t.width*t.height}L${i/t.height*t.width} ${t.height-t.lineWidth/2}L${i/t.height*t.width} ${(t.width-e+s)/t.width*t.height}L${(t.height-i)/t.height*t.width} ${(t.width-e+s)/t.width*t.height}L${(t.height-i)/t.height*t.width} ${t.height-t.lineWidth/2}L${t.width-t.lineWidth/2} ${(t.width/2+s)/t.width*t.height}L${(t.height-i)/t.height*t.width} ${2*s/t.width*t.height}L${(t.height-i)/t.height*t.width} ${(e+s)/t.width*t.height}L${t.width-e} ${(e+s)/t.width*t.height}L${t.width-e} ${i}L${t.width-s} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6e29c624",null).exports,xs=(0,N.Z)({name:"BlockQuadArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1];s=Math.max(i,s),e=Math.max(s,e);return s=Math.min(t.width/2,s),e=Math.min(t.width/2,e),i=Math.min(t.height/4,i),i=Math.max(t.lineWidth/2,i),`M${t.width/2} ${t.lineWidth/2}L${s} ${i}L${e} ${i}L${e} ${e/t.width*t.height}L${i/t.height*t.width} ${e/t.width*t.height}L${i/t.height*t.width} ${s/t.width*t.height}L${t.lineWidth/2} ${t.height/2}L${i/t.height*t.width} ${(t.width-s)/t.width*t.height}L${i/t.height*t.width} ${(t.width-e)/t.width*t.height}L${e} ${(t.width-e)/t.width*t.height}L${e} ${t.height-i}L${s} ${t.height-i}L${t.width/2} ${t.height-t.lineWidth/2}L${t.width-s} ${t.height-i}L${t.width-e} ${t.height-i}L${t.width-e} ${(t.width-e)/t.width*t.height}L${(t.height-i)/t.height*t.width} ${(t.width-e)/t.width*t.height}L${(t.height-i)/t.height*t.width} ${(t.width-s)/t.width*t.height}L${t.width-t.lineWidth/2} ${t.height/2}L${(t.height-i)/t.height*t.width} ${s/t.width*t.height}L${(t.height-i)/t.height*t.width} ${e/t.width*t.height}L${t.width-e} ${e/t.width*t.height}L${t.width-e} ${i}L${t.width-s} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4d98ccae",null).exports,Cs=(0,N.Z)({name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[2];e=Math.min(t.width/2,e);return e=Math.max(s,e),s=Math.min(e,s),s=Math.max(t.lineWidth/2,s),i=Math.max(t.lineWidth/2,i),n=Math.min(t.height/2,n),i=Math.min(n,i),n=Math.max(i,n),`M${t.width/2} ${t.lineWidth/2}L${s} ${i}L${e} ${i}L${e} ${n}L${t.lineWidth/2} ${n}L${t.lineWidth/2} ${t.height-n}L${e} ${t.height-n}L${e} ${t.height-i}L${s} ${t.height-i}L${t.width/2} ${t.height-t.lineWidth/2}L${t.width-s} ${t.height-i}L${t.width-e} ${t.height-i}L${t.width-e} ${t.height-n}L${t.width-t.lineWidth/2} ${t.height-n}L${t.width-t.lineWidth/2} ${n}L${t.width-e} ${n}L${t.width-e} ${i}L${t.width-s} ${i}L${t.width/2} ${t.lineWidth/2}Z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"207790ac",null).exports,$s=(0,N.Z)({name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitY[1],n=t.splitX[2];i=Math.min(t.height/2,i),s=Math.min(i,s);return s=Math.max(t.lineWidth/2,s),i=Math.max(s,i),n=Math.min(t.width/2,n),e=Math.min(n,e),e=Math.max(t.lineWidth/2,e),n=Math.max(e,n),`M${t.lineWidth/2} ${t.height/2} L${e} ${s} L${e} ${i} L${n} ${i} L${n} ${t.lineWidth/2} L${t.width-n} ${t.lineWidth/2} L${t.width-n} ${i} L${t.width-e} ${i} L${t.width-e} ${s} L${t.width-t.lineWidth/2} ${t.height/2} L${t.width-e} ${t.height-s} L${t.width-e} ${t.height-i} L${t.width-n} ${t.height-i} L${t.width-n} ${t.height-t.lineWidth/2} L${n} ${t.height-t.lineWidth/2} L${n} ${t.height-i} L${e} ${t.height-i} L${e} ${t.height-s} L${t.lineWidth/2} ${t.height/2} z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"63ac9d96",null).exports,bs=(0,N.Z)({name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[2];e=Math.min(t.width/2,e);return e=Math.max(s,e),s=Math.min(e,s),s=Math.max(t.lineWidth/2,s),n=Math.min(t.height-t.lineWidth/2,n),n=Math.max(i,n),i=Math.min(n,i),i=Math.max(t.lineWidth/2,i),`M${t.width/2} ${t.lineWidth/2}L${s} ${i}L${e} ${i}L${e} ${n}L${t.lineWidth/2} ${n}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.width-t.lineWidth/2} ${n}L${t.width-e} ${n}L${t.width-e} ${i}L${t.width-e} ${i}L${t.width-e} ${i}L${t.width-s} ${i}L${t.width/2} ${t.lineWidth/2}Z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"e69d5260",null).exports,Is=(0,N.Z)({name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[2];e=Math.min(t.width/2,e),s=Math.min(e,s);return s=Math.max(t.lineWidth/2,s),e=Math.max(s,e),n=Math.min(i,n),n=Math.max(t.lineWidth/2,n),i=Math.max(n,i),`M${t.width/2} ${t.height-t.lineWidth/2}L${s} ${i}L${e} ${i}L${e} ${n}L${t.lineWidth/2} ${n}L${t.lineWidth/2} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${n}L${t.width-e} ${n}L${t.width-e} ${i}L${t.width-s} ${i}L${t.width/2} ${t.height-t.lineWidth/2}Z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"d4cc6f30",null).exports,Ss=(0,N.Z)({name:"ArithmeticsPlus",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitY[0];return e=Math.min(t.height/2,e),0<=t.height-2*e&&(e=Math.max(t.height/8,e)),`M${t.width/8} ${e}L${(t.width-t.height+2*e)/2} ${e}L${(t.width-t.height+2*e)/2} ${t.height/8}L${(t.width+t.height-2*e)/2} ${t.height/8}L${(t.width+t.height-2*e)/2} ${e}L${7*t.width/8} ${e}L${7*t.width/8} ${e+t.height-2*e}L${(t.width+t.height-2*e)/2} ${e+t.height-2*e}L${(t.width+t.height-2*e)/2} ${7*t.height/8}L${(t.width-t.height+2*e)/2} ${7*t.height/8}L${(t.width-t.height+2*e)/2} ${e+t.height-2*e}L${t.width/8} ${e+t.height-2*e}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"0571a92c",null).exports,ks=(0,N.Z)({name:"ArithmeticsMinus",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitY[0];return 0<=t.height-e&&(e=Math.max(t.height/8,e)),e=Math.min(t.height/2,e),`M${t.width/8} ${e}L${7*t.width/8} ${e}L${7*t.width/8} ${t.height-e}L${t.width/8} ${t.height-e}L${t.width/8} ${e}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4949887c",null).exports,Ts=(0,N.Z)({name:"ArithmeticsMultiply",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitY[0];e=Math.min(2*t.height/5,e);return e=Math.max(t.lineWidth/2,e),`M${t.width/16} ${e+t.height/16}L${e/t.height*t.width+t.height/16} ${t.height/16}L${t.width/2} ${t.height/2-e}L${t.width-e/t.height*t.width-t.height/16} ${t.height/16}L${15*t.width/16} ${e+t.height/16}L${t.width-t.width/2*(1-2*e/t.height)} ${t.height/2}L${15*t.width/16} ${15*t.height/16-e}L${t.width-e/t.height*t.width-t.height/16} ${15*t.height/16}L${t.width/2} ${t.height/2+e}L${e/t.height*t.width+t.height/16} ${15*t.height/16}L${t.width/16} ${15*t.height/16-e}L${t.width/2*(1-2*e/t.height)} ${t.height/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2ea59988",null).exports,Ps=(0,N.Z)({name:"ArithmeticsDivision",data(){return{cx:"",d:"",r:"",cy:"",cy1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitY[0],i=t.splitX[1],s=t.splitY[2];i=Math.min(t.width/2,i);i=Math.max(t.width/2-s+t.lineWidth/2,i),s=Math.max(t.width/2-i,s),e=Math.max(t.height/2-(t.height/2-t.width/2+i-s)+t.lineWidth/2,e),s=Math.min(t.height/2,s),e=Math.min(t.height/2,e),this.d=`M${t.width/8} ${e}L${7*t.width/8} ${e}L${7*t.width/8} ${t.height-e}L${t.width/8} ${t.height-e}L${t.width/8} ${e}z`,this.cx=t.width/2,this.r=t.width/2-i,this.r<0&&(this.r=0),this.cy=s,this.cy1=t.height-s}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("circle",{attrs:{cx:t.cx,cy:t.cy,r:t.r,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("circle",{attrs:{cx:t.cx,cy:t.cy1,r:t.r,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5f0b5361",null).exports,Ls=(0,N.Z)({name:"ArithmeticsEquality",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitY[0],i=t.splitY[1];e=Math.min(i,e);return e=Math.max(t.height/8,e),i=Math.min(t.height/2,i),i=Math.max(e,i),`M${t.width/8} ${e}L${7*t.width/8} ${e}L${7*t.width/8} ${i}L${t.width/8} ${i}L${t.width/8} ${e}z M${t.width/8} ${t.height-i}L${7*t.width/8} ${t.height-i}L${7*t.width/8} ${t.height-e}L${t.width/8} ${t.height-e}L${t.width/8} ${t.height-i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2d77e9aa",null).exports,Ms=(0,N.Z)({name:"ArithmeticsInequality",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitY[0],i=t.splitY[1],s=(i=Math.max(e,i),e=Math.min(i,e),e=Math.min(t.height/2,e),e=Math.max(t.height/8,e),(i=Math.min(t.height/2,i))-e),n=90-60*s/t.height,o=Math.cos(n*Math.PI/180),r=(n=Math.tan(n*Math.PI/180),(-t.height+t.lineWidth/2+n*t.width/2)/n),a=(-t.lineWidth/2+n*t.width/2)/n;return`M${t.width/8} ${e}L${e/n+r} ${e} L${o*s/n+r} ${o*s} L${t.width/2} ${t.lineWidth/2}L${e/n+a} ${e} L${7*t.width/8} ${e}L${7*t.width/8} ${i} L${i/n+a} ${i} L${(t.height-i)/n+a} ${t.height-i}L${7*t.width/8} ${t.height-i}L${7*t.width/8} ${t.height-e} L${(t.height-e)/n+a} ${t.height-e} L${t.width-o*s/n-r} ${t.height-o*s} L${t.width/2} ${t.height-t.lineWidth/2} L${(t.height-e)/n+r} ${t.height-e} L${t.width/8} ${t.height-e} L${t.width/8} ${t.height-i} L${(t.height-i)/n+r} ${t.height-i} L${i/n+r} ${i} L${t.width/8} ${i}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7cafad26",null).exports,As=(0,N.Z)({name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitY[1],n=t.splitX[2];s=Math.min(i,s);return s=Math.max(t.lineWidth/2,s),i=Math.min(t.height/2,i),i=Math.max(s,i),e=Math.min(n,e),e=Math.max(t.lineWidth/2,e),n=Math.max(e,n),`M${t.lineWidth/2} ${t.height/2} L${e} ${s} L${e} ${i} L${n} ${i} L${n} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2} L${n} ${t.height-t.lineWidth/2} L${n} ${t.height-i} L${e} ${t.height-i} L${e} ${t.height-s} L${t.lineWidth/2} ${t.height/2} z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2bfc6ec3",null).exports,Es=(0,N.Z)({name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[0],s=t.splitY[1],n=t.splitX[2];s=Math.min(i,s),i=Math.min(t.height/2,i);return i=Math.max(s,i),e=Math.max(n,e),n=Math.min(e,n),`M${t.lineWidth/2} ${t.lineWidth/2}L${n} ${t.lineWidth/2}L${n} ${i}L${e} ${i}L${e} ${s}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-s}L${e} ${t.height-i}L${n} ${t.height-i}L${n} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3e75bf4e",null).exports,Ws=(0,N.Z)({name:"CurlyBraces",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitY[0];return e=t.widthl?t.height-t.lineWidth/2:t.lineWidth/2:((e=e>a?a+d:a-d)-a)*h+l,d=(n-l)/(s-a),h=Math.sqrt(Math.pow(o,2)*Math.pow(s-a,2)*Math.pow(r,2)/(Math.pow(s-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(n-l,2)));n=s===a?n>l?t.height-t.lineWidth/2:t.lineWidth/2:((s=s>a?a+h:a-h)-a)*d+l;let c="";return c=i<=t.height/2?n<=t.height/2?e>s?0:1:e+s>=t.width?1:0:n=t.width?0:1:e>s?1:0,`M${e} ${i} A${o},${r} 0 ${c},0 ${s},${n} L${e} `+i}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1ceb596f",null).exports,Ds=(0,N.Z)({name:"HollowRound",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.max(t.lineWidth/2,e);return`M${e=Math.min(t.width/2,e)} ${t.height/2} A${t.width/2-e},${t.height/2-e/t.width*t.height} 0 0,1 ${t.width-e},${t.height/2} A${t.width/2-e},${t.height/2-e/t.width*t.height} 0 0,1 ${e},${t.height/2} M${t.lineWidth/2} ${t.height/2} A${t.width/2-t.lineWidth/2},${t.height/2-t.lineWidth/2} 0 0,1 ${t.width-t.lineWidth/2},${t.height/2} A${t.width/2-t.lineWidth/2},${t.height/2-t.lineWidth/2} 0 0,1 ${t.lineWidth/2},${t.height/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"040fadde",null).exports,zs=(0,N.Z)({name:"CutwayRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0];return t.heightt.height/2&&(e=t.height/2):e=Math.min(t.width/2,e),`M${e} ${t.lineWidth/2} L${t.width-e} ${t.lineWidth/2} A${e},${e} 0 0,0 ${t.width-t.lineWidth/2},${e} L${t.width-t.lineWidth/2} ${t.height-e} A${e},${e} 0 0,0 ${t.width-e},${t.height-t.lineWidth/2}L${e} ${t.height-t.lineWidth/2} A${e},${e} 0 0,0 ${t.lineWidth/2},${t.height-e} L${t.lineWidth/2} ${e} A${e},${e} 0 0,0 ${e},`+t.lineWidth/2}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"16a81739",null).exports,Zs=(0,N.Z)({name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];return`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${(t.width-e)/t.width*t.height} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2ae91fbd",null).exports,Gs=(0,N.Z)({name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];return`M${e=Math.max(t.width/2,e)} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${(t.width-e)/t.width*t.height} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${(t.width-e)/t.width*t.height}L${t.width-e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5b160344",null).exports,Vs=(0,N.Z)({name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1];e=Math.max(t.width/2,e),i=Math.min(t.width/2,i);return`M${e} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${(t.width-e)/t.width*t.height}L${t.width-t.lineWidth/2} ${(t.width-i)/t.width*t.height} L${t.width-i} ${t.height-t.lineWidth/2}L${t.width-e} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${e/t.width*t.height}L${t.lineWidth/2} ${i/t.width*t.height}L${i} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"d0b64cf2",null).exports,js=(0,N.Z)({name:"CutASingleCornerRoundedRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];let i=t.splitX[1];return e=Math.max(t.width/2,e),i=t.width>t.height?Math.min(t.height/2,i):Math.min(t.width/2,i),`M${e} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${(t.width-e)/t.width*t.height} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${i} A${i},${i} 0 0,1 ${i},${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"46b6679d",null).exports,Ys=(0,N.Z)({name:"RectangleSingleCornerRounded",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0];return e=Math.max(t.lineWidth/2,e),`M${e=t.width>t.height?Math.max(t.width-t.height/2,e):Math.max(t.width/2,e)} ${t.lineWidth/2} A${t.width-e},${t.width-e} 0 0,1 ${t.width-t.lineWidth/2},${t.width-e} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"422ab568",null).exports,Xs=(0,N.Z)({name:"RoundedTopRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0],i=t.splitX[1];return e=Math.max(t.lineWidth/2,e),i=Math.max(t.lineWidth/2,i),e=t.width>t.height?Math.min(t.height/2,e):Math.min(t.width/2,e),i=t.width>t.height?Math.min(t.height/2,i):Math.min(t.width/2,i),`M${e} ${t.lineWidth/2} A${e},${e} 0 0,0 ${t.lineWidth/2},${e} L${t.lineWidth/2} ${t.height-i}A${i},${i} 0 0,0 ${i},${t.height-t.lineWidth/2}L${t.width-i} ${t.height-t.lineWidth/2}A${i},${i} 0 0,0 ${t.width-t.lineWidth/2},${t.height-i} L${t.width-t.lineWidth/2},${e}A${e},${e} 0 0,0 ${t.width-e},${t.lineWidth/2} L${e} ${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"32680158",null).exports,Us=(0,N.Z)({name:"RoundedRectangleOnTheSide",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0],i=t.splitX[1];return e=Math.max(t.lineWidth/2,e),i=Math.max(t.lineWidth/2,i),e=t.width>t.height?Math.min(t.height/2,e):Math.min(t.width/2,e),i=t.width>t.height?Math.min(t.height/2,i):Math.min(t.width/2,i),`M${e} ${t.lineWidth/2} A${e},${e} 0 0,0 ${t.lineWidth/2},${e} L${t.lineWidth/2} ${t.height-i}A${i},${i} 0 0,0 ${i},${t.height-t.lineWidth/2}L${t.width-e} ${t.height-t.lineWidth/2}A${e},${e} 0 0,0 ${t.width-t.lineWidth/2},${t.height-e}L${t.width-t.lineWidth/2} ${i}A${i},${i} 0 0,0 ${t.width-i},${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"79f54918",null).exports,qs=(0,N.Z)({name:"HollowRound",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0];return e>=t.height/2&&(e=t.height/2),e=Math.max(t.lineWidth/2,e),e=Math.min(t.width/2,e),`M${t.lineWidth/2} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${t.height-t.lineWidth/2}z M${e} ${e} L${e} ${t.height-e} L${t.width-e} ${t.height-e}L${t.width-e} ${e}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7cdc09ca",null).exports,Qs=(0,N.Z)({name:"Twill",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0];e=Math.min(t.width-t.lineWidth/2,e);return`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.lineWidth/2} ${e/t.width*t.height}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3a4bb558",null).exports,Ks=(0,N.Z)({name:"HalfDosedFrame",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1];e=Math.min((1-i/t.height)*t.width,e),i=Math.min((1-e/t.width)*t.height,i);return`M${t.lineWidth/2} ${t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2}L${t.width-t.width/t.height*i} ${i}L${e} ${i}L${e} ${t.height-t.height/t.width*e}L${t.lineWidth/2} ${t.height-t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4247896e",null).exports,Js=(0,N.Z)({name:"LShape",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1];e=Math.min(t.width-t.lineWidth/2,e),i=Math.min(t.height-t.lineWidth/2,i);return`M${t.lineWidth/2} ${t.lineWidth/2} L${e} ${t.lineWidth/2}L${e} ${i}L${t.width-t.lineWidth/2} ${i}L${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"669c2acd",null).exports,tn=(0,N.Z)({name:"AngularRectangle",data(){return{d1:"",d2:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig;let e=t.splitX[0];t.height,t.width,e=Math.max(t.width/2,e),this.d1=`M${t.width-t.lineWidth/2} ${e/t.width*t.height} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.lineWidth/2} ${t.lineWidth/2}L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${e} `+(t.height-t.lineWidth/2),this.d2=`M${e} ${t.height-t.lineWidth/2}L${t.width-t.lineWidth/2} ${e/t.width*t.height}L${e+.1*(t.width-e)} ${t.height/t.width*(e+.1*(t.width-e)-t.width)+t.height}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d1,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:this.d2,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7da04c9e",null).exports,en=(0,N.Z)({name:"Cube",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitY[0];return`M${t.lineWidth/2} ${e} L${t.lineWidth/2} ${t.height-t.lineWidth/2}L${(t.height-9*e/10)/t.height*t.width} ${t.height-t.lineWidth/2}L${(t.height-9*e/10)/t.height*t.width} ${e}Z M${(t.height-9*e/10)/t.height*t.width} ${e} L${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-(t.height-9*e/10)/t.height*t.width} ${t.lineWidth/2} L${t.lineWidth/2} ${e} M${t.width-t.lineWidth/2} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height-e}L${(t.height-9*e/10)/t.height*t.width} ${t.height-t.lineWidth/2}L${(t.height-9*e/10)/t.height*t.width} ${e}Z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1378e4b8",null).exports,sn=(0,N.Z)({name:"Cylindrical",data(){return{d1:"",cx:"",cy:"",rx:"",ry:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitY[0];e=Math.max(t.lineWidth,e);this.cx=t.width/2,this.cy=e/2,t.width>t.lineWidth?this.rx=t.width/2-t.lineWidth/2:this.rx=0,this.ry=e/2-t.lineWidth/2,this.d1=`M${t.lineWidth/2} ${e/2}L${t.lineWidth/2} ${t.height-e/2} A${t.width/2-t.lineWidth/2},${e/2-t.lineWidth/2} 0 0,0 ${t.width-t.lineWidth/2},${t.height-e/2} L${t.width-t.lineWidth/2} ${e/2}A${t.width/2-t.lineWidth/2},${e/2-t.lineWidth/2} 0 0,1 ${t.lineWidth/2},`+e/2}}},(function(){var t=this,e=t._self._c;return e("g",[e("ellipse",{attrs:{cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"06629c98",null).exports,nn=(0,N.Z)({name:"Wave",data(){return{d:"",skew:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitX[1],i=t.splitY[0];e=Math.min(5*t.width/8,e);e=Math.max(3*t.width/8,e),i=Math.min(t.height/6,i),i=Math.max(t.lineWidth/2,i);let s="";e>=t.width/2?(s=e-t.width/2,this.d=`M${t.lineWidth/2} ${i} Q${t.width/4} ${-i+t.lineWidth} ${t.width/2} ${i} T${t.width-t.lineWidth/2-s} ${i} L${t.width-t.lineWidth/2} ${t.height-i} Q${3*t.width/4} ${i+t.height-t.lineWidth} ${t.width/2} ${t.height-i} T${s+t.lineWidth/2} ${t.height-i}z`):(s=t.width/2-e,this.d=`M${t.lineWidth/2+s} ${i} Q${t.width/4+s} ${-i+t.lineWidth} ${t.width/2} ${i} T${t.width-t.lineWidth/2} ${i} L${t.width-t.lineWidth/2-s} ${t.height-i} Q${3*t.width/4-s} ${i+t.height-t.lineWidth} ${t.width/2} ${t.height-i} T${t.lineWidth/2} ${t.height-i}z`)}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"760737e8",null).exports,on=(0,N.Z)({name:"DoubleWave",data(){return{d:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitX[1],i=t.splitY[0];e=Math.min(5*t.width/8,e);e=Math.max(4*t.width/9,e),i=Math.min(t.height/6,i),i=Math.max(t.lineWidth/2,i);let s="";e>=t.width/2?(s=e-t.width/2,this.d=`M${t.lineWidth/2} ${i} Q${t.width/8-s} ${-i+11*t.lineWidth/10} ${t.width/4-s} ${i} T${t.width/2-s} ${i}T${3*t.width/4-s} ${i}T${t.width-s-t.lineWidth/2} ${i}L${t.width-t.lineWidth/2} ${t.height-i}Q${7*t.width/8+s} ${i+t.height-t.lineWidth} ${3*t.width/4+s} ${t.height-i} T${t.width/2+s} ${t.height-i} T${t.width/4+s} ${t.height-i} T${s+t.lineWidth/2} ${t.height-i}z`):(s=t.width/2-e,this.d=`M${t.lineWidth/2+s} ${i} Q${t.width/8+s} ${-i+11*t.lineWidth/10} ${t.width/4+s} ${i} T${t.width/2+s} ${i}T${3*t.width/4+s} ${i}T${t.width-t.lineWidth/2} ${i}L${t.width-t.lineWidth/2-s} ${t.height-i} Q${7*t.width/8-s} ${i+t.height-t.lineWidth} ${3*t.width/4-s} ${t.height-i} T${t.width/2-s} ${t.height-i} T${t.width/4-s} ${t.height-i} T${t.lineWidth/2} ${t.height-i}z`)}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3d9df9bd",null).exports,rn=(0,N.Z)({name:"DeformableCircle",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[1];var o=t.splitX[2],r=(e=Math.max(t.lineWidth/2,e),e=Math.min(t.width-t.lineWidth/2,e),s=Math.max(t.lineWidth/2,s),s=Math.min(t.width-t.lineWidth/2,s),o=Math.max(t.width/2,o),o=Math.min(t.width-t.lineWidth,o),(t.width-t.lineWidth)/2),a=(t.height-t.lineWidth)/2,l=o-(t.width-t.lineWidth)/2,h=(o=(o-(t.width-t.lineWidth)/2)/t.width*t.height,t.width/2),d=t.height/2;let c="",u="",p="",g="";var m=(i-d)/(e-h),f=Math.sqrt(Math.pow(r,2)*Math.pow(e-h,2)*Math.pow(a,2)/(Math.pow(e-h,2)*Math.pow(a,2)+Math.pow(r,2)*Math.pow(i-d,2)));let w=Math.sqrt(Math.pow(l,2)*Math.pow(e-h,2)*Math.pow(o,2)/(Math.pow(e-h,2)*Math.pow(o,2)+Math.pow(l,2)*Math.pow(i-d,2)));l||(w=0),u=e===h?(i=i>d?t.height-t.lineWidth/2:t.lineWidth/2,c=h,i>d?t.height/2+o:t.height/2-o):((c=e>h?(e=h+f,i=(e-h)*m+d,h+w):(e=h-f,i=(e-h)*m+d,h-w))-h)*m+d,f=(n-d)/(s-h),m=Math.sqrt(Math.pow(r,2)*Math.pow(s-h,2)*Math.pow(a,2)/(Math.pow(s-h,2)*Math.pow(a,2)+Math.pow(r,2)*Math.pow(n-d,2)));let v=Math.sqrt(Math.pow(l,2)*Math.pow(s-h,2)*Math.pow(o,2)/(Math.pow(s-h,2)*Math.pow(o,2)+Math.pow(l,2)*Math.pow(n-d,2))),y=(l||(v=0),g=s===h?(n=n>d?t.height-t.lineWidth/2:t.lineWidth/2,p=h,n>d?t.height/2+o:t.height/2-o):((p=s>h?(s=h+m,n=(s-h)*f+d,h+v):(s=h-m,n=(s-h)*f+d,h-v))-h)*f+d,"");return y=i<=t.height/2?n<=t.height/2?e>s?0:1:e+s>=t.width?1:0:n=t.width?0:1:e>s?1:0,`M${e} ${i} A${r},${a} 0 ${y},0 ${s},${n} M${e} ${i} L${c} ${u} A${l},${o} 0 ${y},0 ${p},${g} L${s},`+n}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"25292a26",null).exports,an=(0,N.Z)({name:"ForbiddenCharacter",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=(e=Math.max(t.lineWidth/2,e),e=Math.min(t.width/3,e),Math.tan(45*Math.PI/180)),s=t.width/2-Math.sqrt(2)*(e/2),n=t.width/2+Math.sqrt(2)*(e/2),o=t.height/2,r=(t.width-t.lineWidth)/2-e,a=(e=((t.width-t.lineWidth)/2-e)/t.width*t.height,t.width/2),l=t.height/2,h=o-s*i-l,d=(l=o-n*i-l,Math.pow(e,2)+Math.pow(r,2)*Math.pow(i,2)),c=2*Math.pow(e,2)*a-2*Math.pow(r,2)*i*h,u=2*Math.pow(e,2)*a-2*Math.pow(r,2)*i*l,p=(h=Math.pow(e,2)*Math.pow(a,2)-Math.pow(e,2)*Math.pow(r,2)+Math.pow(r,2)*Math.pow(h,2),a=Math.pow(e,2)*Math.pow(a,2)-Math.pow(e,2)*Math.pow(r,2)+Math.pow(r,2)*Math.pow(l,2),l=(c+Math.sqrt(Math.abs(Math.pow(c,2)-4*d*h)))/(2*d),i*l-s*i+o),g=(c=(c-Math.sqrt(Math.abs(Math.pow(c,2)-4*d*h)))/(2*d),h=i*c-s*i+o,s=(u+Math.sqrt(Math.abs(Math.pow(u,2)-4*d*a)))/(2*d),i*s-n*i+o);u=(u-Math.sqrt(Math.abs(Math.pow(u,2)-4*d*a)))/(2*d);return`M${t.lineWidth/2} ${t.height/2} A${t.width/2-t.lineWidth/2},${t.height/2-t.lineWidth/2} 0 0,1 ${t.width-t.lineWidth/2},${t.height/2} A${t.width/2-t.lineWidth/2},${t.height/2-t.lineWidth/2} 0 0,1 ${t.lineWidth/2},${t.height/2}z M${l} ${p} A${r},${e} 0 0,1 ${c},${h}z M${s} ${g} A${r},${e} 0 0,0 ${u},${i*u-n*i+o}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"2d9daca3",null).exports,ln=(0,N.Z)({name:"ArrowLeftArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitY[0],i=t.splitY[1],s=t.splitX[2],n=(s=Math.min(t.width-t.lineWidth/2,s),i=Math.min(t.height-e-2*t.lineWidth,i),e=(i=Math.max(t.height/2,i),Math.min(t.height/2,e)),t.width-t.lineWidth/2),o=(t.height-e+i)/4,r=t.width,a=o+t.lineWidth/2,l=2*a;a=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(s-r,2)/Math.pow(n,2)),r=(l+Math.sqrt(Math.abs(Math.pow(l,2)-4*a)))/2;this.d=`M${t.width-t.lineWidth/2} ${t.lineWidth/2} A${n},${o} 0 0,0 ${t.lineWidth/2},${o} L${t.lineWidth/2} ${o+e} A${n},${o} 0 0,1 ${t.width-t.lineWidth/2},${e+t.lineWidth/2}z`,this.d1=`M${t.lineWidth/2} ${o} A${n},${o} 0 0,0 ${s},${r} L${s} ${r-(t.height-e-i)/2} L${t.width-t.lineWidth/2} ${(t.height-i)/2+i} L${s} ${r+(t.height-e-i)/2+e}L${s} ${r+e}A${n},${o} 0 0,1 ${t.lineWidth/2},${o+e} L${t.lineWidth/2},${o}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:this.d1,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"e80b444c",null).exports,hn=(0,N.Z)({name:"ArrowRightArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitY[0],i=t.splitY[1],s=t.splitX[2],n=(s=Math.min(t.width-t.lineWidth/2,s),i=(s=Math.max(t.lineWidth/2,s),i=Math.min(t.height-e-2*t.lineWidth,i),Math.max(t.height/2,i)),e=Math.min(t.height/2,e),t.width-t.lineWidth/2),o=(t.height-e+i)/4,r=o+t.lineWidth/2,a=2*r;r=Math.pow(r,2)-Math.pow(o,2)*(1-Math.pow(+s,2)/Math.pow(n,2)),a=(a+Math.sqrt(Math.abs(Math.pow(a,2)-4*r)))/2;this.d=`M${t.lineWidth/2} ${t.lineWidth/2} A${n},${o} 0 0,1 ${t.width-t.lineWidth/2},${o} L${t.width-t.lineWidth/2} ${o+e} A${n},${o} 0 0,0 ${t.lineWidth/2},${e+t.lineWidth/2}z`,this.d1=`M${t.width-t.lineWidth/2} ${o} A${n},${o} 0 0,1 ${s},${a} L${s} ${a-(t.height-e-i)/2} L${t.lineWidth/2} ${(t.height-i)/2+i} L${s} ${a+(t.height-e-i)/2+e}L${s} ${a+e}A${n},${o} 0 0,0 ${t.width-t.lineWidth/2},${o+e} L${t.width-t.lineWidth/2},${o}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:this.d1,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"28b0e2b8",null).exports,dn=(0,N.Z)({name:"ArrowDownArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1],s=t.splitY[2],n=(s=Math.min(t.height-t.lineWidth/2,s),i=(s=Math.max(t.lineWidth/2,s),i=Math.min(t.width-e-2*t.lineWidth,i),Math.max(t.width/2,i)),e=Math.min(t.width/2,e),(t.width-e+i)/4),o=t.height-t.lineWidth/2,r=n+t.lineWidth/2,a=2*r;r=Math.pow(r,2)-Math.pow(n,2)*(1-Math.pow(+s,2)/Math.pow(o,2)),a=(a+Math.sqrt(Math.abs(Math.pow(a,2)-4*r)))/2;this.d=`M${t.lineWidth/2} ${t.lineWidth/2} A${n},${o} 0 0,0 ${n},${t.height-t.lineWidth/2} L${n+e} ${t.height-t.lineWidth/2} A${n},${o} 0 0,1 ${e+t.lineWidth/2},${t.lineWidth/2}z`,this.d1=`M${n} ${t.height-t.lineWidth/2} A${n},${o} 0 0,0 ${a},${s} L${a-(t.width-e-i)/2} ${s} L${(t.width-i)/2+i} ${t.lineWidth/2} L${a+(t.width-e-i)/2+e} ${s}L${a+e} ${s}A${n},${o} 0 0,1 ${n+e},${t.height-t.lineWidth/2} L${n},${t.height-t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:this.d1,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"5e4bd272",null).exports,cn=(0,N.Z)({name:"ArrowDownArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1],s=t.splitY[2],n=(s=Math.min(t.height-t.lineWidth/2,s),i=(s=Math.max(t.lineWidth/2,s),i=Math.min(t.width-e-2*t.lineWidth,i),Math.max(t.width/2,i)),e=Math.min(t.width/2,e),(t.width-e+i)/4),o=t.height-t.lineWidth/2,r=n+t.lineWidth/2,a=t.height,l=2*r;r=Math.pow(r,2)-Math.pow(n,2)*(1-Math.pow(s-a,2)/Math.pow(o,2)),a=(l+Math.sqrt(Math.abs(Math.pow(l,2)-4*r)))/2;this.d=`M${t.lineWidth/2} ${t.height-t.lineWidth/2} A${n},${o} 0 0,1 ${n},${t.lineWidth/2} L${n+e} ${t.lineWidth/2} A${n},${o} 0 0,0 ${e+t.lineWidth/2},${t.height-t.lineWidth/2}z`,this.d1=`M${n} ${t.lineWidth/2} A${n},${o} 0 0,1 ${a},${s} L${a-(t.width-e-i)/2} ${s} L${(t.width-i)/2+i} ${t.height-t.lineWidth/2} L${a+(t.width-e-i)/2+e} ${s}L${a+e} ${s}A${n},${o} 0 0,0 ${n+e},${t.lineWidth/2} L${n},${t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:this.d1,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"1a572cb2",null).exports,un=(0,N.Z)({name:"HorizontalScroll",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitX[0];let i=e=Math.min(.13*t.width,e);t.width/4-t.lineWidth/2>e/t.width*t.height&&(i=e/t.width*t.height),this.d=`M${t.lineWidth/2} ${3*i+t.lineWidth/2} A${i},${i} 0 0,0 ${t.lineWidth/2+2*i},${3*i+t.lineWidth/2} L${t.lineWidth/2+2*i} ${t.height-i-t.lineWidth/2}A${i},${i} 0 0,1 ${t.lineWidth/2},${t.height-i-t.lineWidth/2} L${t.lineWidth/2} ${3*i+t.lineWidth/2}z`,this.d1=` M${t.lineWidth/2} ${3*i+t.lineWidth/2} A${i},${i} 0 0,1 ${t.lineWidth/2+i},${2*i+t.lineWidth/2} L${t.width-i-t.lineWidth/2} ${2*i+t.lineWidth/2} A${i},${i} 0 0,0 ${t.width-t.lineWidth/2},${i+t.lineWidth/2} L${t.width-t.lineWidth/2} ${t.height-3*i-t.lineWidth/2} A${i},${i} 0 0,1 ${t.width-i-t.lineWidth/2},${t.height-2*i-t.lineWidth/2} L${2*i+t.lineWidth/2} ${t.height-2*i-t.lineWidth/2} L${2*i+t.lineWidth/2} ${3*i|+t.lineWidth/2} A${i},${i} 0 0,1 ${t.lineWidth/2},${3*i+t.lineWidth/2}z`,this.d2=`M${t.width-t.lineWidth/2-2*i} ${2*i+t.lineWidth/2} L${t.width-t.lineWidth/2-2*i} ${i+t.lineWidth/2} A${i/2},${i/2} 0 0,0 ${t.width-t.lineWidth/2-i},${i+t.lineWidth/2} L${t.width-t.lineWidth/2-i} ${2*i+t.lineWidth/2}z`,this.d3=`M${t.lineWidth/2+2*i} ${3*i+t.lineWidth/2} A${i},${i} 0 0,1 ${t.lineWidth/2+i},${4*i+t.lineWidth/2} L${i+t.lineWidth/2} ${3*i+t.lineWidth/2} A${i/2},${i/2} 0 0,1 ${2*i+t.lineWidth/2},`+(3*i+t.lineWidth/2),this.d4=`M${t.width-t.lineWidth/2-i} ${i+t.lineWidth/2} A${i/2},${i/2} 0 0,1 ${t.width-t.lineWidth/2-2*i},${i+t.lineWidth/2} A${i},${i} 0 1,1 ${t.width-t.lineWidth/2-i},${2*i+t.lineWidth/2} L${t.width-t.lineWidth/2-i} `+(i+t.lineWidth/2)}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2968c5d8",null).exports,pn=(0,N.Z)({name:"VerticalRoll",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitY[0];let i=e=Math.min(.13*t.height,e);t.height/4-t.lineWidth/2>e/t.height*t.width&&(i=e/t.height*t.width),this.d=`M${3*i+t.lineWidth/2} ${t.lineWidth/2} A${i},${i} 0 0,1 ${3*i+t.lineWidth/2},${t.lineWidth/2+2*i} L${t.width-i-t.lineWidth/2} ${t.lineWidth/2+2*i} A${i},${i} 0 0,0 ${t.width-i-t.lineWidth/2},${t.lineWidth/2} L${3*i+t.lineWidth/2} ${t.lineWidth/2} z`,this.d1=`M${2*i+t.lineWidth/2} ${t.height-t.lineWidth/2-2*i} L${i+t.lineWidth/2} ${t.height-t.lineWidth/2-2*i} A${i/2},${i/2} 0 0,1 ${i+t.lineWidth/2},${t.height-t.lineWidth/2-i} L ${2*i+t.lineWidth/2} ${t.height-t.lineWidth/2-i}z`,this.d2=` M${3*i+t.lineWidth/2} ${t.lineWidth/2} A${i},${i} 0 0,0 ${2*i+t.lineWidth/2},${t.lineWidth/2+i} L${2*i+t.lineWidth/2} ${t.height-i-t.lineWidth/2} A${i},${i} 0 0,1 ${i+t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.width-3*i-t.lineWidth/2} ${t.height-t.lineWidth/2} A${i},${i} 0 0,0 ${t.width-2*i-t.lineWidth/2} ,${t.height-i-t.lineWidth/2} L${t.width-2*i-t.lineWidth/2} ${2*i+t.lineWidth/2} L${3*i+t.lineWidth/2} ${2*i+t.lineWidth/2} A${i},${i} 0 0,0 ${3*i+t.lineWidth/2},${t.lineWidth/2}z`,this.d3=`M${3*i+t.lineWidth/2} ${t.lineWidth/2+2*i} A${i},${i} 0 0,0 ${4*i+t.lineWidth/2},${t.lineWidth/2+i} L${3*i+t.lineWidth/2} ${i+t.lineWidth/2} A${i/2},${i/2} 0 0,0 ${3*i+t.lineWidth/2},`+(2*i+t.lineWidth/2),this.d4=`M${i+t.lineWidth/2} ${t.height-t.lineWidth/2-i} A${i/2},${i/2} 0 0,0 ${i+t.lineWidth/2},${t.height-t.lineWidth/2-2*i} A${i},${i} 0 1,0 ${2*i+t.lineWidth/2},${t.height-t.lineWidth/2-i} L${i+t.lineWidth/2} `+(t.height-t.lineWidth/2-i)}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4522b4dd",null).exports,gn=(0,N.Z)({name:"LordosisCurvedRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1],s=t.splitY[2],n=(i=Math.min(t.height-t.lineWidth/2,i),e=(i=Math.max(t.height/2,i),e=Math.max(.13*t.width,e),Math.min(.37*t.width,e)),1.15*(t.width/2-t.lineWidth)),o=(i=1.7*(t.height-i-t.lineWidth/2),t.width/2),r=-i/2,a=e+.13*t.width,l=.13*t.width,h=2*r,d=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(a-o,2)/Math.pow(n,2)),c=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(e-o,2)/Math.pow(n,2)),u=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(l-o,2)/Math.pow(n,2));r=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(t.width/2-o,2)/Math.pow(n,2)),o=(h+Math.sqrt(Math.abs(Math.pow(h,2)-4*d)))/2,d=(h+Math.sqrt(Math.abs(Math.pow(h,2)-4*c)))/2,c=(h+Math.sqrt(Math.abs(Math.pow(h,2)-4*u)))/2,u=(h+Math.sqrt(Math.abs(Math.pow(h,2)-4*r)))/2,s=Math.min(t.height/2,s);s=Math.max(u,s),this.d=`M${t.lineWidth/2} ${t.lineWidth/2} A${n},${i} 0 0,0 ${a},${o} L${e} ${d+s-u} L${e} ${d+t.height-s} A${n},${i} 0 0,1 ${t.lineWidth/2},${t.height-s} L${l} ${c+(t.height-s)/2} L${t.lineWidth/2} ${t.lineWidth/2}z`,this.d1=`M${t.width-t.lineWidth/2} ${t.lineWidth/2} A${n},${i} 0 0,1 ${t.width-a},${o} L${t.width-e} ${d+s-u} L${t.width-e} ${d+t.height-s} A${n},${i} 0 0,0 ${t.width-t.lineWidth/2},${t.height-s} L${t.width-l} ${c+(t.height-s)/2} L${t.width-t.lineWidth/2} ${t.lineWidth/2}z`,this.d2=`M${e} ${d+s-u} A${n},${i} 0 0,0 ${t.width-e},${d+s-u} L${t.width-e} ${d+t.height-u-t.lineWidth/2} A${n},${i} 0 0,1 ${e},${d+t.height-u-t.lineWidth/2}z`,this.d3=`M${e} ${d+s-u} L${a} ${o} L${a} ${o+s-u} A${n},${i} 0 0,1 ${e},${d+s-u}z`,this.d4=`M${t.width-e} ${d+s-u} L${t.width-a} ${o} L${t.width-a} ${o+s-u} A${n},${i} 0 0,1 ${t.width-e},${d+s-u}z`}}},(function(){var t=this,e=t._self._c;return e("g",[t._l(t.gradientColorList,(function(i,s){return e("defs",{key:s},[i.isLinear?e("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${i.rotate})`}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1):e("radialGradient",{attrs:{id:i.id}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1)],1)})),e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})],2)}),[],!1,null,"42ab37b6",null).exports,mn=(0,N.Z)({name:"UpCurvedRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1],s=t.splitY[2],n=(i=Math.max(t.lineWidth,i),e=(i=Math.min(t.height/2,i),e=Math.max(.13*t.width,e),Math.min(.37*t.width,e)),1.15*(t.width/2-t.lineWidth)),o=(i=1.7*(i-t.lineWidth/2),t.width/2),r=t.height+i/2,a=e+.13*t.width,l=.13*t.width,h=2*r,d=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(a-o,2)/Math.pow(n,2)),c=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(e-o,2)/Math.pow(n,2)),u=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(l-o,2)/Math.pow(n,2));r=Math.pow(r,2)-Math.pow(i,2)*(1-Math.pow(t.width/2-o,2)/Math.pow(n,2)),o=(h-Math.sqrt(Math.abs(Math.pow(h,2)-4*d)))/2,d=(h-Math.sqrt(Math.abs(Math.pow(h,2)-4*c)))/2,c=(h-Math.sqrt(Math.abs(Math.pow(h,2)-4*u)))/2,u=(h-Math.sqrt(Math.abs(Math.pow(h,2)-4*r)))/2,s=Math.max(t.height/2-t.lineWidth/4,s);s=Math.min(u,s),this.d=`M${t.lineWidth/2} ${t.height-t.lineWidth/2} A${n},${i} 0 0,1 ${a},${o} L${e} ${d-u+s} L${e} ${d-s} A${n},${i} 0 0,0 ${t.lineWidth/2},${t.height-s} L${l} ${c-s/2}z`,this.d1=`M${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2} A${n},${i} 0 0,0 ${t.width-a},${o} L${t.width-e} ${d-u+s} L${t.width-e} ${d-s} A${n},${i} 0 0,1 ${t.width-t.lineWidth/2},${t.height-s} L${t.width-l} ${c-s/2}z`,this.d2=`M${e} ${d-u+s} A${n},${i} 0 0,1 ${t.width-e} ${d-u+s} L${t.width-e} ${d-u+t.lineWidth/2} A${n},${i} 0 0,0 ${e} ${d-u+t.lineWidth/2}z`,this.d3=`M${a} ${o} L${e} ${d-u+s} A${n},${i} 0 0,1 ${a} ${o-u+s}z`,this.d4=`M${t.width-a} ${o} L${t.width-e} ${d-u+s} A${n},${i} 0 0,0 ${t.width-a} ${o-u+s}z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"cd21fac0",null).exports,fn=(0,N.Z)({name:"LordosisRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1],s=(i=Math.min(t.height/2,i),e=(i=Math.max(t.lineWidth/2,i),e=Math.max(.13*t.width,e),Math.min(.37*t.width,e)),.032*t.width);i/=2;this.d=`M${t.lineWidth/2} ${t.lineWidth/2} L${e+t.width/8-s} ${t.lineWidth/2} Q${e+t.width/8} ${t.lineWidth/2} ${e+t.width/8} ${i/2} Q${e+t.width/8} ${i} ${e+t.width/8-s} ${i} L${e+s} ${i} Q${e} ${i} ${e} ${1.5*i} L${e} ${2*i} L${t.lineWidth/2} ${2*i} L${t.width/8} ${i}Z`,this.d1=`M${t.width-t.lineWidth/2} ${t.lineWidth/2} L${t.width-(e+t.width/8-s)} ${t.lineWidth/2} Q${t.width-(e+t.width/8)} ${t.lineWidth/2} ${t.width-(e+t.width/8)} ${i/2} Q${t.width-(e+t.width/8)} ${i} ${t.width-(e+t.width/8-s)} ${i} L${t.width-(e+s)} ${i} Q${t.width-e} ${i} ${t.width-e} ${1.5*i} L${t.width-e} ${2*i} L${t.width-t.lineWidth/2} ${2*i} L${t.width-t.width/8} ${i}Z`,this.d2=`M${e} ${1.5*i} Q${e} ${2*i} ${e+s} ${2*i} L${t.width-(e+s)} ${2*i} Q${t.width-e} ${2*i} ${t.width-e} ${1.5*i} L${t.width-e} ${t.height-i/2} Q${t.width-e} ${t.height-t.lineWidth/2} ${t.width-e-s} ${t.height-t.lineWidth/2} L${e+s} ${t.height-t.lineWidth/2} Q${e} ${t.height-t.lineWidth/2} ${e} ${t.height-i/2}Z`,this.d3=`M${e+t.width/8} ${i/2} Q${e+t.width/8} ${i} ${e+t.width/8-s} ${i} L${e+s} ${i} Q${e} ${i} ${e} ${1.5*i} Q${e} ${2*i} ${e+s} ${2*i} L${e+t.width/8} ${2*i}Z`,this.d4=`M${t.width-(e+t.width/8)} ${i/2} Q${t.width-(e+t.width/8)} ${i} ${t.width-(e+t.width/8-s)} ${i} L${t.width-(e+s)} ${i} Q${t.width-e} ${i} ${t.width-e} ${1.5*i} Q${t.width-e} ${2*i} ${t.width-(e+s)} ${2*i} L${t.width-e-t.width/8} ${2*i}Z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"9d9f22fa",null).exports,wn=(0,N.Z)({name:"LordosisRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitY[1],s=(i=Math.max(t.height/2,i),e=(i=Math.min(t.height-t.lineWidth/2,i),e=Math.max(.13*t.width,e),Math.min(.37*t.width,e)),.032*t.width),n=(t.height-i)/2;this.d=`M${t.lineWidth/2} ${t.height-t.lineWidth/2} L${e+t.width/8-s} ${t.height-t.lineWidth/2} Q${e+t.width/8} ${t.height-t.lineWidth/2} ${e+t.width/8} ${t.height-n/2} Q${e+t.width/8} ${t.height-n} ${e+t.width/8-s} ${t.height-n} L${e+s} ${t.height-n} Q${e} ${t.height-n} ${e} ${t.height-1.5*n} L${e} ${t.height-i} L${t.lineWidth/2} ${t.height-i} L${t.width/8} ${t.height-i/2}Z`,this.d1=`M${t.width-t.lineWidth/2} ${t.height-t.lineWidth/2} L${t.width-(e+t.width/8-s)} ${t.height-t.lineWidth/2} Q${t.width-(e+t.width/8)} ${t.height-t.lineWidth/2} ${t.width-(e+t.width/8)} ${t.height-n/2} Q${t.width-(e+t.width/8)} ${t.height-n} ${t.width-(e+t.width/8-s)} ${t.height-n} L${t.width-(e+s)} ${t.height-n} Q${t.width-e} ${t.height-n} ${t.width-e} ${t.height-1.5*n} L${t.width-e} ${t.height-i} L${t.width-t.lineWidth/2} ${t.height-i} L${t.width-t.width/8} ${t.height-i/2}Z`,this.d2=`M ${e} ${t.height-1.5*n} Q${e} ${t.height-2*n} ${e+s} ${t.height-2*n} L${t.width-(e+s)} ${t.height-2*n} Q${t.width-e} ${t.height-2*n} ${t.width-e} ${t.height-1.5*n} L${t.width-e} ${n/2} Q${t.width-e} ${t.lineWidth/2} ${t.width-e-s} ${t.lineWidth/2} L${e+s} ${t.lineWidth/2} Q${e} ${t.lineWidth/2} ${e} ${n/2}Z`,this.d3=`M${e+t.width/8} ${t.height-n/2} Q${e+t.width/8} ${t.height-n} ${e+t.width/8-s} ${t.height-n} L${e+s} ${t.height-n} Q${e} ${t.height-n} ${e} ${t.height-1.5*n} Q${e} ${t.height-2*n} ${e+s} ${t.height-2*n} L${e+t.width/8} ${t.height-2*n}Z`,this.d4=`M${t.width-(e+t.width/8)} ${t.height-n/2} Q${t.width-(e+t.width/8)} ${t.height-n} ${t.width-(e+t.width/8-s)} ${t.height-n} L${t.width-(e+s)} ${t.height-n} Q${t.width-e} ${t.height-n} ${t.width-e} ${t.height-1.5*n} Q${t.width-e} ${t.height-2*n} ${t.width-(e+s)} ${t.height-2*n} L${t.width-(e+t.width/8)} ${t.height-2*n}Z`}}},(function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{d:t.d,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d1,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d2,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d3,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),e("path",{attrs:{d:t.d4,stroke:t.transConfig.strokeColor,"stroke-width":t.transConfig.lineWidth,fill:t.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6a120639",null).exports,vn=(0,N.Z)({name:"Arc",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig;let e=t.splitX[0],i=t.splitY[0],s=t.splitX[1],n=t.splitY[1];e=Math.max(t.lineWidth/2,e),e=Math.min(t.width-t.lineWidth/2,e),s=Math.max(t.lineWidth/2,s),s=Math.min(t.width-t.lineWidth/2,s);var o=(t.width-t.lineWidth)/2,r=(t.height-t.lineWidth)/2,a=t.width/2,l=t.height/2,h=(i-l)/(e-a),d=Math.sqrt(Math.pow(o,2)*Math.pow(e-a,2)*Math.pow(r,2)/(Math.pow(e-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(i-l,2)));i=e===a?i>l?t.height-t.lineWidth/2:t.lineWidth/2:((e=e>a?a+d:a-d)-a)*h+l,d=(n-l)/(s-a),h=Math.sqrt(Math.pow(o,2)*Math.pow(s-a,2)*Math.pow(r,2)/(Math.pow(s-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(n-l,2)));n=s===a?n>l?t.height-t.lineWidth/2:t.lineWidth/2:((s=s>a?a+h:a-h)-a)*d+l;let c="";return c=i<=t.height/2?n<=t.height/2?e>s?0:1:e+s>=t.width?1:0:n=t.width?0:1:e>s?1:0,`M${e} ${i} A${o},${r} 0 ${c},0 ${s},`+n}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,"stroke-dasharray":this.transConfig.strokeDashes,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":this.transConfig.linecap}})])}),[],!1,null,"226b1f84",null).exports,yn=(0,N.Z)({name:"GreaterThan",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1],s=Math.atan(t.height/2/(t.width-e)),n=Math.cos(s)*(t.width-i),o=Math.sin(s)*n;s=Math.cos(s)*n,n=e-t.width+i+s,n=Math.max(t.lineWidth/2,n),i=Math.max(t.lineWidth/2,i);return i=Math.min(t.width-t.lineWidth/2,i),e=Math.min(t.width-t.lineWidth/2,e),`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2}L${t.width-t.lineWidth/2} ${t.height/2}L${e} ${t.height-t.lineWidth/2}L${n} ${t.height-o-t.lineWidth/2}L${i} ${t.height/2}L${n} ${o+t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1d6c3156",null).exports,xn=(0,N.Z)({name:"LessThan",data(){return{}},props:["transConfig"],computed:{d:function(){var t=this.transConfig,e=t.splitX[0],i=t.splitX[1],s=Math.atan(t.height/2/e),n=Math.cos(s)*i,o=Math.sin(s)*n;s=e+i-Math.cos(s)*n,s=Math.min(t.width-t.lineWidth/2,s),i=Math.max(t.lineWidth/2,i);return i=Math.min(t.width-t.lineWidth/2,i),e=Math.min(t.width-t.lineWidth/2,e),`M${e=Math.max(t.lineWidth/2,e)} ${t.lineWidth/2}L${t.lineWidth/2} ${t.height/2}L${e} ${t.height-t.lineWidth/2}L${s} ${t.height-o-t.lineWidth/2}L${i} ${t.height/2}L${s} ${o+t.lineWidth/2}z`}}},(function(){var t=this._self._c;return t("g",[t("path",{attrs:{d:this.d,stroke:this.transConfig.strokeColor,"stroke-width":this.transConfig.lineWidth,fill:this.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"186335b7",null).exports,Cn=(s=(0,N.Z)({name:"ItemForTransShape",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{points:new Array(this.item.pointNum).fill({x:0,y:0})}},computed:{itemWidth:function(){return this.item.pathWidth},itemHeight:function(){return this.item.pathHeight},transConfig:function(){let t=this.item.splitX,e=(this.item.ratioX.forEach(((e,i)=>{t[i]=parseFloat(e*this.itemWidth)})),this.item.splitY);return this.item.ratioY.forEach(((t,i)=>{e[i]=parseFloat(t*this.itemHeight)})),{transType:this.item.transType,lineWidth:this.item.lineWidth,splitX:t,splitY:e,strokeColor:this.item.strokeColor,fillColor:this.item.fillColor,fillColor2:this.item.fillColor2,strokeDashes:this.item.strokeDashes,linecap:this.item.linecap,width:this.itemWidth,height:this.itemHeight}},currentTransShapeComponent:function(){return this.item.transType.substr(0,1).toUpperCase()+this.item.transType.substr(1)},gradientColorList:function(){return f.removeArrEmpty(this.item.gradientColorList.slice(0))},svgGradientDeg(){return function(t){return t-90+" 0.5 0.5"}}},watch:{},mounted:function(){},methods:{},components:{ItemLayout:Vt,...n}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForTransShape",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[e("svg",{ref:"mySvg",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",overflow:"visible"}},[t._l(t.gradientColorList,(function(i,s){return e("defs",{key:s},[i.isLinear?e("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${t.svgGradientDeg(i.gradientDeg)})`}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1):e("radialGradient",{attrs:{id:i.id}},t._l(i.colorList,(function(t,i){return e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})})),1)],1)})),e(t.currentTransShapeComponent,{tag:"component",attrs:{transConfig:t.transConfig}})],2)])}),[],!1,null,"1d003872",null).exports,n=(0,N.Z)({name:"ItemForComponent",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{},watch:{currentPageIndex:function(){this.timeSeekFlag=!0}},methods:{},mounted:function(){},components:{ItemLayout:Vt}},(function(){return(0,this._self._c)("ItemLayout",{attrs:{item:this.item,index:this.index,groupKey:this.groupKey,isGroup:this.isGroup,isGroupItem:this.isGroupItem,viewScale:this.viewScale,pageIndex:this.pageIndex}})}),[],!1,null,"2345a969",null).exports,(0,N.Z)({name:"ItemForLink",data(){return{}},computed:{},methods:{},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],components:{ItemLayout:Vt}},(function(){return(0,this._self._c)("ItemLayout",{staticClass:"ItemForLink",attrs:{item:this.item,index:this.index,groupKey:this.groupKey,isGroup:this.isGroup,isGroupItem:this.isGroupItem,viewScale:this.viewScale,pageIndex:this.pageIndex}})}),[],!1,null,"486b2794",null).exports),$n=(0,N.Z)({name:"ItemForLike",data(){return{isRunLikeAnime:!1,isShowMsg:!1}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted(){},created(){this.getLikeCount()},computed:{isYZPro:function(){return this.$store.getters.isYZPro},size:function(){return this.item.size},dashSize:function(){return this.size/20+","+this.size/2},count:{get:function(){return this.item.count},set:function(t){this.item.count=t}},totalCount:function(){return this.item.count+this.item.initNum},iconStyle:function(){return{width:this.size+"px",height:this.size+"px"}},likeStyle:function(){return this.iconType,{padding:"2px",color:this.item.color,width:this.item.size+"px",height:this.item.size+"px"}},fontStyle:function(){return{color:this.item.color,"font-size":this.item.size+"px",height:this.item.size+"px"}},color:function(){return this.item.color},horizontalCountStyle:function(){return 1===this.item.positionType?{height:this.item.size+"px"}:""},previousLikeTime:{get:function(){return this.item.previousLikeTime},set:function(t){this.item.previousLikeTime=t}},isBetweenLimitTime:function(){if(!this.previousLikeTime)return!1;var t=(new Date).getTime();switch(this.limitType){case"one":return!0;case"day":return!(864e5{this.openSound&&this.$refs.likeAudio.pause(),this.isRunLikeAnime=!1}),500)},getLikeCount:function(){this.$http.get(this.$store.getters.apiHost+"api/likes/get-book-likes",{params:{bookId:this.item.bookId}}).then((t=>{t.data.code+""=="OK"&&t.data.data.forEach((t=>{parseFloat(this.item.timeId)===parseFloat(t.obj_id)&&(this.getUpdateTime(),this.item.count=t.likes_num)}))}))},showLikeLimitMsg:function(){this.isShowAlertMsg=!0},addLikeRequest:function(){this.$http.get(this.$store.getters.apiHost+"api/likes/inc-likes",{params:{id:this.item.timeId,bookId:this.item.bookId}}).then((t=>{t.data.code+""=="OK"&&this.setUpdateTime()}))},addCount:function(){if(this.previousLikeTime)switch(this.limitType){case"one":this.showLikeLimitMsg();break;case"day":864e5<(new Date).getTime()-this.previousLikeTime?this.addOneCount():this.showLikeLimitMsg();break;case"hours":36e5<(new Date).getTime()-this.previousLikeTime?this.addOneCount():this.showLikeLimitMsg();break;case"no":this.addOneCount()}else this.addOneCount()}},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForLike",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[e("div",{staticClass:"like"},[e("div",{staticClass:"like-outer-box",class:{vertical:2===t.item.positionType},style:{"font-size":t.item.size+"px"},on:{click:function(e){return e.stopPropagation(),t.addCount.apply(null,arguments)}}},[1!==t.item.iconType||t.isBetweenLimitTime||t.isRunLikeAnime?t._e():e("div",{staticClass:"likeIconBox",style:[t.likeStyle]},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 23"}},[e("defs"),e("g",{attrs:{id:"图层_2","data-name":"图层 2"}},[e("g",{attrs:{id:"图层_1-2","data-name":"图层 1"}},[e("path",{attrs:{id:"路径_2605","data-name":"路径 2605",fill:t.color,d:"M7.5,2a5.61,5.61,0,0,1,3.91,1.55,5.37,5.37,0,0,1,.5.57L13.5,6.21l1.59-2.09a4.44,4.44,0,0,1,.5-.56,5.68,5.68,0,0,1,7.82,0,5,5,0,0,1,0,7.33l-9.88,9.55-10-9.55a5,5,0,0,1,0-7.34A5.61,5.61,0,0,1,7.5,2h0m0-2A7.61,7.61,0,0,0,2.2,2.11a7,7,0,0,0,0,10.22l11,10.52a.54.54,0,0,0,.38.15.53.53,0,0,0,.37-.15L24.81,12.33a7,7,0,0,0,0-10.22,7.7,7.7,0,0,0-10.6,0,7.46,7.46,0,0,0-.7.79,6.49,6.49,0,0,0-.7-.79A7.62,7.62,0,0,0,7.5,0Z"}})])])])]),1===t.item.iconType&&(t.isBetweenLimitTime||t.isRunLikeAnime)?e("div",{staticClass:"likeIconBox solidIcon",class:{runAnime:t.isRunLikeAnime},style:[t.likeStyle]},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 23"}},[e("defs"),e("g",{attrs:{id:"图层_2","data-name":"图层 2"}},[e("g",{attrs:{id:"图层_1-2","data-name":"图层 1"}},[e("path",{attrs:{id:"路径_2605","data-name":"路径 2605",fill:t.color,d:"M24.81,12.33a7,7,0,0,0,0-10.22,7.71,7.71,0,0,0-10.6,0,7.46,7.46,0,0,0-.7.79,6.49,6.49,0,0,0-.7-.79,7.7,7.7,0,0,0-10.6,0,7,7,0,0,0,0,10.22l11,10.52a.54.54,0,0,0,.75,0Z"}})])])]),e("div",{staticClass:"animeBox"},[e("div",{staticClass:"circle-bg",class:{runAnime:t.isRunLikeAnime}},[e("svg",{staticStyle:{width:"100%",height:"100%"},attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[e("circle",{attrs:{cx:1.5*t.size/2,cy:1.5*t.size/2,r:1.5*t.size/2,stroke:t.color,"stroke-width":t.size/20,"stroke-dasharray":t.dashSize,fill:"none"}})])])])]):t._e(),2!==t.item.iconType||t.isBetweenLimitTime||t.isRunLikeAnime?t._e():e("div",{staticClass:"likeIconBox",style:[t.likeStyle]},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 26"}},[e("defs"),e("g",{attrs:{id:"图层_2","data-name":"图层 2"}},[e("g",{attrs:{id:"图层_1-2","data-name":"图层 1"}},[e("path",{attrs:{fill:t.color,d:"M14.57,2h.11a2.32,2.32,0,0,1,.46.07,1.52,1.52,0,0,1,.94,1.79L16,4,14.55,9.65l-.67,2.51h8.61a.58.58,0,0,1,.39.16.46.46,0,0,1,.11.39l0,.09L19.87,24H6V12c3.29-2,6.53-7.55,7.63-9.54A1.16,1.16,0,0,1,14.57,2m0-2a3.17,3.17,0,0,0-2.65,1.43S7.22,10,4,10.74V26H20a2,2,0,0,0,1.75-1.44l3.14-11.25,0-.16A2.51,2.51,0,0,0,24.36,11a2.57,2.57,0,0,0-1.87-.81h-6L18,4.49l0-.17A3.53,3.53,0,0,0,15.76.17a3.72,3.72,0,0,0-1-.17Z"}}),e("rect",{attrs:{fill:t.color,y:"11",width:"2",height:"15"}})])])])]),2===t.item.iconType&&(t.isBetweenLimitTime||t.isRunLikeAnime)?e("div",{staticClass:"likeIconBox solidIcon",class:{runAnime:t.isRunLikeAnime},style:[t.likeStyle]},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 26"}},[e("defs"),e("g",{attrs:{id:"图层_2","data-name":"图层 2"}},[e("g",{attrs:{id:"图层_1-2","data-name":"图层 1"}},[e("path",{attrs:{fill:t.color,d:"M14.71,0a3.72,3.72,0,0,1,1,.17A3.53,3.53,0,0,1,18,4.32l0,.17-1.5,5.67h5.95a2.6,2.6,0,0,1,1.93.81A2.51,2.51,0,0,1,25,13.15l0,.16L21.77,24.56A2,2,0,0,1,20,26H4V10.74c3.22-.7,7.92-9.31,7.92-9.31A3.17,3.17,0,0,1,14.71,0Z"}}),e("rect",{attrs:{fill:t.color,y:"11",width:"2",height:"15"}})])])]),e("div",{staticClass:"animeBox"},[e("div",{staticClass:"circle-bg",class:{runAnime:t.isRunLikeAnime}},[e("svg",{staticStyle:{width:"100%",height:"100%"},attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[e("circle",{attrs:{cx:1.5*t.size/2,cy:1.5*t.size/2,r:1.5*t.size/2,stroke:t.color,"stroke-width":t.size/20,"stroke-dasharray":t.dashSize,fill:"none"}})])])])]):t._e()]),e("span",{staticClass:"count",class:{vertical:2===t.item.positionType},style:[t.fontStyle,t.horizontalCountStyle,{"font-size":t.item.size+"px"}]},[t._v(t._s(t.totalCount))]),e("audio",{ref:"likeAudio",attrs:{src:"https://test2.yunzhan365.com/resourceFiles/editor/phone/like.mp3"}})])])}),[],!1,null,"2179932e",null).exports,bn=(0,N.Z)({name:"ItemForPhone",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],components:{ItemLayout:Vt},computed:{},methods:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ItemForPhone",on:{click:t.runLink}},[t._v(" this is phone layout "),e("ItemLayout",{staticClass:"ItemForPhone",attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}})],1)}),[],!1,null,"811aefc0",null).exports,In=(0,N.Z)({name:"SpecialItemContainer",data:function(){return{}},props:["item","pageIndex","itemIndex","isGroupInner","isLastBg"],computed:{lastPage:function(){return this.pageIndex===this.$store.state.pages.length-1},intoPageInAnimeTime:function(){return f.getPageInnerDelay(this.pageIndex-1)},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},pageVisibleTime:function(){return f.getPageTotalAnimeTime(this.pageIndex)},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},currentPage:function(){},pageIsVisiable:function(){return!0},itemStyle:function(){var t,e=f.copy(this.item,!0);return"background"===e.type?(t=e.style,e.hasBGI?e.isSvgBGI||(t.backgroundColor=e.backgroundColor,t.backgroundImage=`url("${e.url}")`,"tile"===e.strategy?t.backgroundRepeat="repeat":t.backgroundRepeat="no-repeat"):e.isGradient?t.background=A.getGradientColorVal({gradientItem:e.gradient}):t.background=e.bgColor,t):this.getItemStyle({item:e})}},methods:{getItemStyle:function({item:t}){var e={};return e.top=parseFloat(t.style.top)+"px",e.left=parseFloat(t.style.left)+"px",e.width=parseFloat(t.style.width)+"px",e.height=parseFloat(t.style.height)+"px",this.pageIsVisiable&&(e.transform=` rotate(${t.rotate}deg)`),this.curSliderTimethis.intoPageTime+t.existEndTime?e.visibility="hidden":e.visibility="visible",e}}},(function(){return(0,this._self._c)("div",{staticClass:"SpecialItemContainer",style:this.itemStyle},[this._t("default")],2)}),[],!1,null,"258aa146",null).exports,Sn=(In=(0,N.Z)({name:"ViewModule",data(){return{}},props:["page","pageIndex"],watch:{},created:function(){},mounted:function(){},updated:function(){},computed:{noControl:{get:function(){return this.$store.state.noControl},set:function(t){this.$store.state.noControl=t}},intoPageInAnimeTime:function(){return f.getPageInnerDelay(this.pageIndex-1)},intoPageTime:function(){return f.getPageTime(this.pageIndex-1)},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},currentPage:function(){},pageIsVisiable:function(){return!0},itemWrapSubtitleStyleArr:function(){var t=[],e=this.currentPageSubtitles,i=e.length;for(let n=0;n{this.checkIsCurrentPage()||this.$refs.pluginVideo.pause(),window.bgSound&&this.item.isPauseBgSoundWhenPlay&&window.bgSound.pause()})),this.$refs.pluginVideo.addEventListener("pause",(()=>{window.bgSound&&window.bgSound.play()})))},updated:function(){},computed:{isYZPro:function(){return this.$store.getters.isYZPro},isCurrentPage:function(){return window.BookInfo&&(this.pageIndex+1===window.BookInfo.getCurrentPageIndex()||-1\s*<\/iframe>/," width='100%' height='100%' >"):-1`:void 0},isYoutube:function(){return 3===this.item.pluginVideoType&&""!==this.item.youTubeId.trim()},isVimeo:function(){return 4===this.item.pluginVideoType&&""!==this.item.vimeoId.trim()},outerVideoHtml:function(){let t="";var e,i;return this.isYoutube&&(i=this.isAutoPlay?"&autoplay=1&mute=1":"",e=this.isLoop?"&loop=1&playlist="+this.youTubeId:"",i=`https://www.youtube.com/embed/${this.youTubeId}?enablejsapi=1&rel=0`+i+e,t=`\n \n `),this.isVimeo&&(e=this.isAutoPlay?"?autoplay=1&muted=1":"",i="https://player.vimeo.com/video/"+this.vimeoId+e+this.vimeoIsLoop,t=`\n \n `),t},outerAutoPlayVideoHtml:function(){let t="";var e;return this.isYoutube&&(e=this.isLoop?"&loop=1&playlist="+this.youTubeId:"",e=`https://www.youtube.com/embed/${this.youTubeId}?enablejsapi=1&rel=0&autoplay=1&mute=1`+e,t=`\n \n `),this.isVimeo&&(e=`https://player.vimeo.com/video/${this.vimeoId}?autoplay=1&muted=1`+this.vimeoIsLoop,t=`\n \n `),t},isShowPopVideo:{get:function(){return this.$store.state.isShowPopVideo},set:function(t){this.$store.state.isShowPopVideo=t}},isLoop:function(){return this.item.isLoop},vimeoIsLoop:function(){let t="";return this.isLoop?this.isAutoPlay?"&loop=1&autopause=0":"?loop=1&autopause=0":t},pluginVideoType:function(){return this.item.pluginVideoType},youTubeId:function(){return this.item.youTubeId},vimeoId:function(){return this.item.vimeoId},playerType:function(){return void 0===this.item.playerType?2:this.item.playerType},isVideoQRCodeImg:function(){return this.item.isVideoQRCodeImg},qrcodeForeground:function(){return this.item.qrcodeForeground},qrcodeBackground:function(){return this.item.qrcodeBackground},qrcodeStyle:function(){return this.isYZPro&&3===this.playerType&&this.hasVideo?{padding:this.item.qrcodeGap+"px","background-color":this.item.qrcodeBackground}:{}}},methods:{pluginVideoClick:function(t){t.preventDefault()},popOuterVideo:function(t){window.bgSound&&this.item.isPauseBgSoundWhenPlay&&window.bgSound.pause();var e={isLoop:this.isLoop,item:this.item,youTubeId:this.youTubeId,vimeoId:this.vimeoId,pluginVideoPageIndex:this.pageIndex};switch(t){case"video":this.isShowPopVideo=!0,window.vuePopDom&&window.vuePopDom.popWindow(this.getVideoSrc,t,e);break;case"vimeo":case"youtube":window.vuePopDom&&window.vuePopDom.popWindow(this.outerAutoPlayVideoHtml,t,e);break;case"outerVideo":window.vuePopDom&&window.vuePopDom.popWindow(this.getGeneralCode,t,e)}},handleCover:function(){this.$nextTick((()=>{var t=this.$refs.htmlIframe;void 0!==t&&(t=t.querySelector("iframe"))&&Hi.track(t,(()=>{this.isShowHtmlIframeCover=!1}))}))},createVideoQRCode:async function(){if(this.videoInfo.url||this.item.videoLink){var t=Number.parseInt(this.item.pluginVideoType);let e="";if(1===t&&(e=this.item.videoLink),e=2===t?this.videoInfo.url:e){t=this.handleQRCodeUrl(e);let i=60,s=60,n=(this.isYZPro&&this.isVideoQRCodeImg&&(i=Number.parseFloat(this.item.style.width),s=Number.parseFloat(this.item.style.height)),new(Ln())({content:t,padding:0,width:i,height:s,ecl:"M",xmlDeclaration:!1,color:this.qrcodeForeground,background:this.qrcodeBackground}).svg());this.videoBase64Src=await S(n,i,s),n=(n=n.replace(/<\?xml.*?>/,"")).replace(//,"").replace(/<\/svg>/,""),this.videoQRCode=n}}},handleQRCodeUrl:function(t){var e=t.indexOf("../");let i=t;if(-1{this.checkIsCurrentPage()&&window.setTimeout((()=>{this.$refs.pluginVideo.play()}),500)}))},unbindVideoEvent:function(){this.isAutoPlay&&this.hasVideo&&P.Q.$off("SLIDER_ENTER_PAGE")}},components:{ItemLayout:Vt,YoutubePlayerIframe:kn.default,VimeoPlayerIframe:Tn.default},directives:{}},kn=(0,N.Z)(Pn,(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForPluginVideo",style:[t.qrcodeStyle],attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[t.hasVideo?e("div",{staticClass:"flip-action videoBGI"},[3!==t.playerType?e("div",{staticClass:"origin-video"},[t.isPhone?t._e():e("video",{ref:"pluginVideo",staticClass:"video",attrs:{poster:t.videothumbUrl,id:t.videoId,src:t.getVideoSrc,loop:t.isLoop,autoplay:t.isAutoPlay,controls:"",width:"100%",controlsList:"nodownload",preload:"auto","webkit-playsinline":"true",playsinline:"true"},on:{click:function(e){return t.pluginVideoClick(e)}}}),t.isPhone?e("div",{staticClass:"phone-video video-bg",class:{"other-video-cover":!t.videothumbUrl},style:[t.getPhoneVideoThumb],on:{click:function(e){return e.stopPropagation(),t.popOuterVideo("video")}}},[t.videothumbUrl?e("div",{staticClass:"other-video-play-icon"}):t._e()]):t._e()]):t._e(),3===t.playerType?e("div",{staticClass:"video-qrcode"},[t.isVideoQRCodeImg?e("img",{attrs:{src:t.videoBase64Src}}):e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:v":"http://schemas.microsoft.com/visio/2003/SVGExtensions/",viewBox:"0 0 60 60",width:"100%",height:"100%",preserveAspectRatio:"none"}},[e("g",{domProps:{innerHTML:t._s(t.videoQRCode)}})])]):t._e()]):t.isHtmlIframe?e("div",{ref:"htmlIframe",staticClass:"htmlVideoCon"},[t.isPhone?t._e():e("div",{staticClass:"pc-video-style"},[t.isShowHtmlIframeCover&&""!==t.videothumbUrl?e("div",{staticClass:"video-cover",style:{"background-image":`url(${t.videothumbUrl})`}},[e("div",{staticClass:"htmlIframe-play-button"})]):t._e(),e("div",{staticClass:"htmlVideo",domProps:{innerHTML:t._s(t.getGeneralCode)}})]),t.isPhone?e("div",{class:["phone-video","phoneHtmlVideo"],style:{"background-image":`url(${t.videothumbUrl})`},on:{click:function(e){return e.stopPropagation(),t.popOuterVideo("outerVideo")}}},[t.videothumbUrl?t._e():e("div",{staticClass:"other-video-cover"}),""!==t.videothumbUrl?e("div",{staticClass:"player-icon"}):t._e()]):t._e()]):t.isYoutube?e("div",{ref:"youtubeVideo",staticClass:"video-style"},[t.isPhone?t._e():e("div",{staticClass:"pc-video-style"},[e("YoutubePlayerIframe",{attrs:{item:t.item,youtubeId:t.youTubeId,pluginVideoPageIndex:t.pageIndex}})],1),t.isPhone?e("div",{staticClass:"youtube phone-video",style:{"background-image":`url(${t.videothumbUrl})`},on:{click:function(e){return e.stopPropagation(),t.popOuterVideo("youtube")}}},[""===t.videothumbUrl?e("div",{staticClass:"youtube-logo"}):t._e(),""!==t.videothumbUrl?e("div",{staticClass:"youtube-play",style:[t.getOuterPlayStyle]}):t._e()]):t._e()]):t.isVimeo?e("div",{ref:"vimeoVideo",staticClass:"video-style"},[t.isPhone?t._e():e("div",{staticClass:"pc-video-style"},[e("VimeoPlayerIframe",{attrs:{item:t.item,vimeoId:t.vimeoId,pluginVideoPageIndex:t.pageIndex}})],1),t.isPhone?e("div",{staticClass:"vimeo phone-video",style:{"background-image":`url(${t.videothumbUrl})`},on:{click:function(e){return e.stopPropagation(),t.popOuterVideo("vimeo")}}},[""===t.videothumbUrl?e("div",{staticClass:"vimeo-logo"}):t._e(),""!==t.videothumbUrl?e("div",{staticClass:"vimeo-play",style:[t.getOuterPlayStyle]}):t._e()]):t._e()]):e("div",{staticClass:"emptyPlugin"},[e("span",{staticClass:"icon icon-video"})])])}),[],!1,null,"7efd174a",null).exports,{globalAudioItems:[],pagesData:[],host:ot.getters.host,initAudioList:async function(){await this.getReaderConfig(),this.getPluginMusicItems(),this.parsePluginMusicItem()},getReaderConfig:async function(){var t=ot.state.isDev,e=ot.state.folder;t?await a.Z.get(`/test/${e}/config.js`).then((t=>{t=JSON.parse(t.data.replace(/var.*?=\s{/,"{").replace(/export\sdefault.*/,"")),this.pagesData=t.pages})):void 0!==window.readerConfig&&(this.pagesData=window.readerConfig.pages)},getPluginMusicItems:function(){if(0!==this.pagesData.length){var t=this.pagesData;for(let s=0;s/,"")).replace(//,"").replace(/<\/svg>/,""),this.isMusicQRCodeImg||(this.musicQRCode=s)}},handleQRCodeUrl:function(t){var e=t.indexOf("../");let i=t;if(-1{var i=e.getBoundingClientRect().top,s=t.getBoundingClientRect().top;this.volumeSliderIsBlock=i=this.musicList.length-1&&(this.musicPlayIndex===this.musicList.length-1&&2===this.musicSkin&&0===this.skinId&&(this.musicListIsEnd=!0),this.musicPlayIndex>this.musicList.length-1)&&(this.musicPlayIndex=0),this.musicList.length&&window.setTimeout((()=>{Zt.audioEvent("setSrc",this.item,this.pageIndex,{src:this.currentMusic}),this.play()}),100)},replayAudio:function(){Zt.audioEvent("replay",this.item,this.pageIndex)},muteOrRecover:function(){var t;this.isMute?(t=0===this.volumeBeforeMute?50:this.volumeBeforeMute,Zt.audioEvent("unMute",this.item,this.pageIndex,{originVolume:t/100}),this.volume=t,this.isMute=!1):(this.volumeBeforeMute=this.volume,Zt.audioEvent("mute",this.item,this.pageIndex),this.volume=0,this.isMute=!0)},progressInput:function(t){this.audioProgress=t.target.value,t=t.target.value/100*this.curMusicTotalTime,Zt.audioEvent("timeUpdate",this.item,this.pageIndex,{currentTime:Math.round(t)})},progressMouseDown:function(t){this.isDraging=!0,this.pause()},progressMouseMove:function(t){this.isDraging&&(this.audioProgress=t.target.value)},progressMouseUp:function(t){this.isDraging=!1,this.play()},initCreateAudioElement:function(t,e){Mn.createAudioContainer(),Mn.createAudioElement(t,e)},getAudioElement:function(){let t;return t=void 0!==this.isPlayAcrossPage&&!0===this.isPlayAcrossPage?`#audio${this.pageIndex}${this.item.id}acrossPage`:"#audio"+this.pageIndex+this.item.id,document.querySelector(t)},setAudioBindEvent:function(){window.setTimeout((()=>{var t=Zt.getAudioElement(this.item,this.pageIndex);t&&this.audioEvent(t)}),30)},audioEvent:function(t){t.addEventListener("canplay",(()=>{this.curMusicTotalTime=t.duration,t.paused&&(this.audioIsPlaying=!1)})),t.addEventListener("loadstart",(()=>{this.audioProgress=0})),t.addEventListener("loadedmetadata",(()=>{this.curMusicTotalTime=t.duration})),t.addEventListener("play",(()=>{this.audioIsPlaying=!0,void 0!==this.isPauseOtherMusicWhenPlay&&this.isPauseOtherMusicWhenPlay&&this.isPauseBgSoundWhenPlay&&(this.pauseOtherPluginMusic(t),window.bgSound)&&window.bgSound.pause()})),t.addEventListener("timeupdate",(()=>{var e;this.isCurrentPage()||this.isPlayAcrossPage||t.pause(),this.visibilitychangeEvent(t),3===this.musicSkin&&t.pause(),Number.isNaN(t.duration)?this.curMusicTotalTime=0:this.curMusicTotalTime=t.duration,t.paused?this.audioIsPlaying=!1:this.audioIsPlaying=!0,this.curMusicCurTime=t.currentTime,0!==this.skinId||this.isDraging||(0===this.curMusicTotalTime?this.audioProgress=0:(e=this.curMusicCurTime/this.curMusicTotalTime*100,this.audioProgress=e)),Zt.acrossPageAudioPause(t,this.item)})),t.addEventListener("pause",(()=>{var t=Zt.isNeedToPlayBgSound();window.bgSound&&t&&window.bgSound.play(),this.audioIsPlaying=!1})),t.addEventListener("ended",(()=>{if(1===this.musicSkin&&P.Q.$emit("musicEnded"+this.pageIndex,{e:"ended",eventType:"ended",pageIndex:this.pageIndex}),2===this.musicSkin){if(0===this.skinId&&this.musicListIsEnd)return;this.musicListIsEnd&&P.Q.$emit("musicEnded"+this.pageIndex,{e:"ended",eventType:"ended",pageIndex:this.pageIndex}),this.switchAudio(1)}this.audioProgress=0})),this.eventBusBindEvent(t)},eventBusBindEvent:function(t){this.isPlayAcrossPage&&this.isAutoPlay&&(P.Q.$off("ENTER_PAGE"+this.playFromPage),P.Q.$on("ENTER_PAGE"+this.playFromPage,(()=>{this.play()}))),P.Q.$on("SLIDER_ENTER_PAGE",(()=>{var e;this.isCurrentPage()&&(this.returnThisPageToReplay&&(t.currentTime=0,this.musicPlayIndex=0,this.musicListIsEnd=!1),this.isAutoPlay)&&(e=Zt.getFirstAutoPlayAudio(this.pages,this.pageIndex))&&this.play(e)}))},getCurrentAudioDuration:function(){var t;void 0!==this.isPlayAcrossPage&&!0===this.isPlayAcrossPage&&(t=Zt.getAudioElement(this.item,this.pageIndex))&&0{e!==t&&e.pause()})),zt({isAll:!0}))},currentPageAudioPlay:function(){this.isCurrentPage()&&this.isAutoPlay&&this.play()},visibilitychangeEvent:function(t){this.isYZPro&&this.isPhone&&!t.paused&&"hidden"===document.visibilityState&&t.pause()}},components:{ItemLayout:Vt,CircleSkin:Pn,RectangleSkin:An}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{staticClass:"ItemForPluginMusic",style:[t.qrcodeStyle],attrs:{item:t.item,index:t.index,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,viewScale:t.viewScale,pageIndex:t.pageIndex}},[1===t.skinId?e("CircleSkin",{attrs:{item:t.item,playPercent:t.playPercent,curMusicSrc:t.currentMusic},on:{play:t.play,pause:t.pause,switchAudio:t.switchAudio}}):t._e(),0===t.skinId?e("RectangleSkin",{attrs:{item:t.item,pageIndex:t.pageIndex,curMusicSrc:t.currentMusic,curMusicCurTime:t.curMusicCurTime,curMusicTotalTime:t.curMusicTotalTime,progress:t.audioProgress},on:{replayAudio:t.replayAudio,play:t.play,pause:t.pause,switchAudio:t.switchAudio,muteOrRecover:t.muteOrRecover,progressInput:t.progressInput,progressMouseDown:t.progressMouseDown,progressMouseMove:t.progressMouseMove,progressMouseUp:t.progressMouseUp}}):t._e()],1)}),[],!1,null,"78fb6708",null).exports,_n=(0,N.Z)({name:"ItemForIframe",components:{ItemLayout:Vt},data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted(){},methods:{},computed:{iframeSrc:function(){return this.item.iframeItemInfo.url?this.item.iframeItemInfo.urlHead+this.item.iframeItemInfo.url+this.iframeSrcParams:""},iframeSrcParams:function(){return this.item.iframeItemInfo.isHasUrlParams&&""!==window.location.search?-1!==this.item.iframeItemInfo.url.indexOf("?")?"&"+window.location.search.slice(1):window.location.search:""}}},(function(){var t=this._self._c;return t("ItemLayout",{staticClass:"ItemForIframe",attrs:{item:this.item,index:this.index,groupKey:this.groupKey,isGroup:this.isGroup,isGroupItem:this.isGroupItem,viewScale:this.viewScale,pageIndex:this.pageIndex}},[t("div",{staticClass:"iframe-cover"},[t("iframe",{attrs:{src:this.iframeSrc,frameborder:"0",width:"100%",height:"100%"}})])])}),[],!1,null,"1bd7d2e1",null).exports,Fn=(0,N.Z)({name:"ItemForTable",data(){return{value:"",selectColIndex:null,selectRowIndex:null,tableList:[],showText:!0,clickNum:null,isTextEdit:!1,quickInput:null,tableOldHeight:0,tableOldWidth:0}},props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageIndex"],mounted(){this.initTable(),this.changeTableHeight()},watch:{tableList:function(t,e){this.$set(this.item,"tableList",t)},currentSelectedItem:function(t){t&&"table"===t.type?this.clickNum=1:(this.clickNum=null,this.item.tableList.forEach((t=>{t.forEach((t=>{t.checked=!1}))})))},rows:{handler(){this.initTable(),this.changeTableHeight()},immediate:!0},columns:function(t){this.initTable(),this.changeTableHeight()},fontSize:function(){this.fontSizeId===this.item.id&&this.changeTextHeight()},fontName:function(){this.changeSelectHeight(1e3)},borderWidth:function(){this.changeSelectHeight(10)},tableTextIndent:function(){this.changeSelectHeight(10)},"itemStyle.height":function(t){},"itemStyle.width":function(t){var e=this.$refs.table.offsetWidth,i=this.$refs.table.offsetHeight;this.item.style.width=f.copy(e+"px"),this.item.style.height=f.copy(i+"px"),this.tableList.forEach((e=>{e.forEach((e=>{e.width=this.splitPx(t)/this.item.columns}))})),this.item.tableList=this.tableList},"item.id":function(t){this.selectColIndex=null,this.selectRowIndex=null,this.clickNum=null,this.item.tableList.forEach((t=>{t.forEach((t=>{t.checked=!1}))}))}},computed:{itemStyle:function(){return this.item.style},itemWidth:{get:function(){return this.itemStyle.width},set:function(t){this.itemStyle.width=t}},localRender:function(){return this.render},pathAnime:function(){return this.$store.state.timeline.pathAnime},pathItemSelectedIndex:function(){return this.pathAnime.pathItemSelectedIndex},currentSelectedItem:function(){return this.$store.getters.currentSelectedItem},isSelectCell:function(){return 2<=this.clickNum&&this.currentSelectedItem},rows:function(){return this.item.rows},columns:function(){return this.item.columns}},methods:{initTable:function(){this.tableList=[],this.tableList=f.copy(this.item.tableList)},splitPx:function(t){let e=0;return t?parseFloat(t.split("px")[0]):e},textChange:function(t,e,i){this.isTextEdit=!0,this.tableList[e][i].innerTextStyle.fontFamily,setTimeout((()=>{let t=document.getElementById(""+this.item.id+e+i);this.tableList[e][i].height{i.forEach((i=>{s===e&&(i.height=t.scrollHeight)}))})),this.$set(this.item,"tableList",this.tableList),this.$refs.table.offsetHeight,this.splitPx(this.item.style.height)}))},paste:function(t,e,i){},textContentHtml:function(t,e){return this.item.tableList[t][e].value},blurText:function(t,e,i){t=t.target.innerText,this.tableList[e][i].value=t,this.$set(this.item,"tableList",this.tableList)},changeTableHeight:function(){setTimeout((()=>{this.item.style.height=this.$refs.table&&this.$refs.table.offsetHeight+"px"}),10)},fontStyle:function(t,e){t=this.item.tableList[t][e],e=parseFloat(t.innerTextStyle.fontSize);let i="none";return i=t.isAllUndeline&&t.strikeThrough?"underline line-through":t.isAllUndeline&&!t.strikeThrough?"underline":!t.isAllUndeline&&t.strikeThrough?"line-through":"none",{"font-size":t.innerTextStyle.fontSize,color:t.innerTextStyle.color,"text-align":t.innerTextStyle.textAlign,"text-indent":t.innerTextStyle.textIndent||"unset","font-family":t.innerTextStyle.fontFamily,"font-weight":t.isAllBold?"bold":"normal",background:"transparent","font-style":t.isAllItalic?"italic":"","text-decoration":i,transform:`scale(${e<12?e/12:1})`}},textStyle:function(t,e){return t=this.item.tableList[t][e],{height:"auto !important","min-height":t&&(10<=t.height?t.height:10)+"px",width:"auto !important"}},cellStyle:function(t,e){return t=this.item.tableList[t][e],{"background-color":t.bgColor,border:t.borderWidth+"px solid "+t.borderColor}},changeTextHeight:function(){this.$nextTick((()=>{this.tableList.forEach(((t,e)=>{t.forEach(((t,i)=>{i=document.getElementById(""+this.item.id+e+i),t.value&&(t.height=i.getBoundingClientRect().height)}))})),setTimeout((()=>{this.item.style.height=f.copy(this.$refs.table.offsetHeight+"px")}))}))},changeSelectHeight:function(t){},textFocus(t,e){this.isSelectCell&&((t=document.getElementById(""+(this.item.id+t+e))).setAttribute("contenteditable",!0),t.focus(),document.activeElement)}},components:{ItemLayout:Vt}},(function(){var t=this,e=t._self._c;return e("ItemLayout",{key:t.item.id,staticClass:"ItemForTable",attrs:{item:t.item,index:t.index,render:t.localRender,groupKey:t.groupKey,isGroup:t.isGroup,isGroupItem:t.isGroupItem,thumbRender:t.thumbRender,thumbPanel:t.thumbPanel,isPathItem:t.isPathItem,pageIndex:t.pageIndex}},[t.tableList&&t.tableList.length?e("table",{ref:"table",staticClass:"table-content",style:{border:t.item.borderWidth+"px solid "+t.item.borderColor},attrs:{id:"table"+t.item.id,border:t.item.border}},[e("tbody",{staticClass:"table-tbody"},t._l(t.item.rows,(function(i,s){return e("tr",{key:s,staticClass:"table-tr"},t._l(t.item.columns,(function(i,n){return e("td",{key:n,class:{"td-selected":t.tableList[s][n]&&t.tableList[s][n].checked&&t.isSelectCell},style:t.cellStyle(s,n)},[e("div",{staticClass:"text-content",style:t.textStyle(s,n)},[e("div",{staticClass:"textArea",style:t.fontStyle(s,n),attrs:{"data-textid":t.item.id,id:t.item.id+s+n},domProps:{innerHTML:t._s(t.textContentHtml(s,n))},on:{blur:function(e){return t.blurText(e,s,n)}}})])])})),0)})),0)]):t._e()])}),[],!1,null,"d63ec5ee",null).exports,On=(0,N.Z)({name:"ItemForMap",data(){return{map:null,googleUrl:"https://www.google.com/maps/embed/v1/place?key=AIzaSyBw8XwUSywFulb0VXyp9qhDrsIeY8dnHLU",addressHeight:59}},props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageInnerIndex","pageIndex"],mounted(){this.insertScript(),setTimeout((()=>{this.addressHeight=document.getElementById("address"+this.item.id)&&document.getElementById("address"+this.item.id).offsetHeight}),1e3)},computed:{mapId:function(){return"mapId"+(this.pageInnerIndex?"sideSpace":"workSpace")+this.item.id},isPreviewMode:function(){return this.$store.state.topHeader.isPreviewMode},itemStyle:function(){return this.item.style},itemWidth:{get:function(){return this.itemStyle.width},set:function(t){this.itemStyle.width=t}},itemHeight:function(){return parseFloat(this.itemStyle.height.split("px")[0])-60+"px"},showBorderRadius:function(){return this.item.buttonBackground.showBorderRadius?{borderRadius:`${this.item.buttonBackground.borderTopLeftRadius} ${this.item.buttonBackground.borderTopRightRadius} ${this.item.buttonBackground.borderBottomRightRadius} `+this.item.buttonBackground.borderBottomLeftRadius}:{borderRadius:"0"}},zoom:function(){return this.item.zoom},lng:function(){return this.item.center[0]},lat:function(){return this.item.center[1]},center:function(){return this.item.center},googleIframeCenter:function(){return this.lat+","+this.lng},url:function(){return this.googleUrl+"&q="+this.item.place.detailAddress+"&zoom="+this.zoom+"¢er="+this.googleIframeCenter},isYZPro:function(){return this.$store.getters.isYZPro},routeStyle:function(){return{"background-color":this.item.routeBgColor}},jumpUrl:function(){var t="https://www.google.com.hk/maps/search/"+this.item.place.address;let e="";var i=this.$store.getters.isH5Pro;return i?t:e}},watch:{mapId:function(){},zoom:function(){},center:{handler(){var t={lat:this.lat,lng:this.lng};this.map.setCenter(t),this.createMark()},deep:!0}},methods:{initMap:function(){},jumpMap:function(){var t="https://www.google.com.hk/maps/search/"+this.item.place.address;let e="";this.$store.getters.isH5Pro&&(e=t),window.open(e,"_blank")},browserAPPVersion:function(){var t=navigator.userAgent;return navigator.appVersion,{trident:-1{"text"===t.type?e.push(...t.highLightRects||[]):"group"===t.type&&t.items.forEach((t=>{"text"===t.type&&e.push(...t.highLightRects||[])}))})),e}},components:{ItemForSwiper:H,ItemForImage:Gt,ItemForText:Ti,ItemForSvg:Li,ItemForChart:Ei,ItemForFrames:Fi,ItemForBaseShape:_i,ItemForCamera:Bi,ItemForButton:Ri,ItemForMusic:Oi,ItemForVideo:Ni,ItemForComponent:n,ItemForLink:Cn,ItemForLike:$n,ItemForPhone:bn,ViewModule:In,ItemForEffect:Di,ItemForHighLight:Wn,ItemContainer:Sn,ItemForTransShape:s,ItemForPluginVideo:kn,ItemForPluginMusic:Tn,ItemForIframe:_n,OutMaskDom:r,ItemForTable:Fn,ItemForMap:On},directives:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageInner",style:t.pageStyle,attrs:{id:"pageInnerAnime"+t.pageIndex}},[e("div",{staticClass:"scalePage",style:t.scalePageStyle,attrs:{id:"scalePage"+t.pageIndex}},[t._l(t.pageItems,(function(i,s){return e("ItemContainer",{key:i.id,attrs:{id:"anime"+i.id,item:i,pageIndex:t.pageIndex,itemIndex:s}},[i.items?t._e():e(t.currentItemComponent(i),{directives:[{name:"show",rawName:"v-show",value:!i.isHidden,expression:"!item.isHidden"}],ref:""+i.type+i.id,refInFor:!0,tag:"component",staticClass:"item singleItem",attrs:{item:i,index:s,groupKey:-1,pageIndex:t.pageIndex,viewScale:t.viewScale}}),i.items?e("ItemContainer",{directives:[{name:"show",rawName:"v-show",value:!i.isHidden,expression:"!item.isHidden"}],attrs:{id:"item"+i.id,item:i,itemIndex:s,pageIndex:t.pageIndex,isGroupInner:!0}},[e("OutMaskDom",{attrs:{groupKey:-1,item:i}},t._l(i.items,(function(n,o){return e(t.currentItemComponent(n),{key:o,tag:"component",staticClass:"item",attrs:{item:n,index:s,groupKey:o,isGroupItem:!0,pageIndex:t.pageIndex,viewScale:t.viewScale,isGroup:!1,id:"groupItem"+n.id,groupStyle:i.style}})})),1)],1):t._e()],1)})),t._l(t.textHighLightItems,(function(i){return e("ItemForHighLight",{key:i.id,attrs:{highLightItem:i,"z-index":t.pageItems.length}})}))],2),e("ViewModule",{attrs:{page:t.page,pageIndex:t.pageIndex}})],1)}),[],!1,null,"71581a5e",null).exports;class Rn{toFH5Key(t){return this[t]}toEditorKey(t){var e;for(e of Object.keys(this))if(this[e]===t)return e}}function Hn(t,e,i,s){return t=function(t,e,i,s){let n=t/e,o=i/s,r=0,a=0,l=0,h=0,d=i/t;return h=o{var s=new U(t||{});if(void 0!==t.insertPageLink){void 0===t.items&&(t.items=[]);var{t:i,l:n}=function({pageIndex:t,insertPage:e}){var i=window.flipHtml5_pages;if(Array.isArray(i)&&(i=i[t],i)){t=void 0!==i.normalSize;var s="../"+i.t;let e="";return{l:e=t?(t=2<=i.normalSize.length?i.normalSize[1]:i.normalSize[0],s.replace(/_\d*?\./,`_${t}.`)):"../"+i.l,t:s,s:""}}return e&&void 0!==e.l?{l:"../"+e.l,t:"../"+e.t}:[]}({pageIndex:i,insertPage:t.insertPage}),n=(s.backgroundImage=n,s.thumbImg=i,t.insertPageLink);const o=[];n.forEach(((t,i)=>{var s,n,r,a;f.isEmptyObject(t)||(t.isInverse&&(s=t,n=e,r=(s=JSON.parse(JSON.stringify(s))).location,n=(1-(r=Hn(r.pageWidth,r.pageHeight,n.pageWidth,n.pageHeight)).width)/2,a=(1-r.height)/2,s.location.x=s.location.x*r.width+n,s.location.y=s.location.y*r.height+a,s.location.width=s.location.width*r.width,s.location.height=s.location.height*r.height,t=s),o.push(function({item:t,pageWidth:e,pageHeight:i}){let s=t.annotype,n={},o={};return!function({item:t}){return void 0!==t.location&&!isNaN(t.location.width)}({item:t})||void 0!==(o=function({item:t,pageWidth:e,pageHeight:i}){let s=t.location,n=e*parseFloat(s.x),o=i*parseFloat(s.y),r=e*parseFloat(s.width),a=i*parseFloat(s.height);a<0&&(a=Math.abs(a),o-=a),r<0&&(r=Math.abs(r),n-=r),t=parseFloat(s.rotation),void 0!==s.rotation&&0!==t&&(e=n+r/2,i=o+a/2,({x:e,y:i}=L.getRotateXY({x:e,y:i,x0:n,y0:o,deg:t})),n=e-r/2,o=i-a/2);let l=null;return void 0!==s.tannoName&&""!==s.tannoName&&(l=s.tannoName),Object.assign({style:{width:r+"px",height:a+"px",top:o+"px",left:n+"px"},rotate:t},l?{name:l}:{})}({item:t,pageWidth:e,pageHeight:i})).id||(o.id=f.getUniqueId()),e=function({item:t}){let e=[],i=Dn(),s=t.action,n=t.annotype,o=!0;if(void 0!==s)switch(s.actionType){case zn.openPage:i.openPage={type:"openPage",page:Number(s.pageIndex)},i.event=Gn(s.triggerEventType);break;case zn.openUrl:var r=s.url,a=-1!==r.indexOf("mailto:"),l=-1!==r.indexOf("tel:");if(a)i.linkList={type:"link",urlHead:"mailto:",url:r.replace(/^mailto:[/]*/,""),originEmail:r.replace(/^mailto:[/]*/,""),originUrl:"",target:0,isHasUrlParams:!1},i.event=Gn(s.triggerEventType);else if(l)i.phone={type:"phone",phoneNumber:r.replace(/^tel:[/]*/,"")},i.event=Gn(s.triggerEventType);else{if(n===Zn.link){let t="http://",e=s.url;-1{return[t={}]=[t],e={index:-1,id:0,type:"",name:"",animations:(e=L.getDefaultItemKey()).animations,animationFiles:e.animationFiles,maskConfig:e.maskConfig,outEraseConfig:e.outEraseConfig,scrawlConfig:e.scrawlConfig,style:{},pathHeight:0,pathWidth:0,rotate:0,existEndTime:-1,existStartTime:-1,isDefault:!1,actIsHidden:!1,showOrHideType:"hide",isActionHideCase:!1,showOrHideIsFirstHide:!1,showOrHideLabel:"",isExpandAnimePanel:!0,isAction:!0,svg:{},gNode:{},items:[]},f.deepAssign(e,t);var e})),t.actionList[i].animationList=e),f.isEmptyObject(t.actionList[i].playAudio)||void 0===t.actionList[i].playAudio.rotateWhenPlay&&(t.actionList[i].playAudio.rotateWhenPlay=!1)}}function jn({item:t,justNeedResList:e=!1}){let i=ot.getters.host;const s=[];if(t.actionList.forEach((t=>{var e;void 0!==t.popupImg&&void 0!==t.popupImg.imgList&&t.popupImg.imgList.forEach((t=>{var e;-1===t.url.indexOf("upload-control/files")&&(e=t.fileName,t.url=Un.getPrivateRes(""+i+e),s.push(t.url))})),void 0!==t.addWechat&&void 0!==t.addWechat.imgList&&(t.addWechat.imgList.forEach((t=>{t.url=Un.getPrivateRes(""+i+t.fileName),s.push(t.url)})),t.addWechat.logoObj.fileName)&&(t.addWechat.logoObj.url=Un.getPrivateRes(""+i+t.addWechat.logoObj.fileName),s.push(t.addWechat.logoObj.url)),void 0!==t.popupMsg&&void 0!==t.popupMsg.imageOpts&&t.popupMsg.imageOpts.name&&(e=t.popupMsg.imageOpts.name,t.popupMsg.imageOpts.imageUrl=Un.getPrivateRes(""+i+e),s.push(t.popupMsg.imageOpts.imageUrl)),void 0!==t.popupVideo&&void 0!==t.popupVideo.videoInfo&&((e=t.popupVideo.videoInfo).localLink=Un.getPrivateRes(""+i+e.videoName),s.push(e.localLink)),void 0!==t.playAudio&&void 0!==t.playAudio.audioList&&t.playAudio.audioList.forEach((t=>{var e=t.fileName;t.localLink=Un.getPrivateRes(""+i+e),s.push(t.localLink)})),void 0!==t.attachmentFile&&void 0!==t.attachmentFile.fileObject&&void 0!==t.attachmentFile.fileObject.fileName&&(e=t.attachmentFile.fileObject,t=t.attachmentFile.fileObject.fileName,e.url=Un.getPrivateRes(""+i+t),s.push(e.url))})),e)return s}function Yn(t,e=""){return e=e?-1===e.lastIndexOf("?")?"":e.slice(e.lastIndexOf("?")+1):location.search,e?t?(t=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),(t=e.slice(1).match(t))?decodeURIComponent(t[2]):null):(t={},e.replace("?","").split("&").reduce(((t,e)=>{var i=t,[e,s]=e.split("=");return i[e]=s,t}),t),t):{}}function Xn({item:t,justNeedResList:e=!1}){var i,s,n=ot.getters.host,o=t.animationFiles.maskFiles,r=t.animations,a=[];return void 0!==r&&void 0!==o&&(i=r.in,r=r.out,s=o.in,rt(i)?(s.url=""+n+s.fileName,e&&a.push(s.url)):s.url="",i=o.out,rt(r)?(i.url=""+n+i.fileName,e&&a.push(i.url)):i.url=""),void 0!==t.animationFiles&&void 0!==t.animationFiles.maskImageFile&&""!==(s=t.animationFiles.maskImageFile).fileName&&(e?a.push(""+n+s.fileName):s.url=Un.getPrivateRes(""+n+s.fileName)),a}const Un=new class{constructor(){(0,k.Z)(this,"collect",new Map),(0,k.Z)(this,"extraParams",{})}add(t){var e=f.getPathFilename(decodeURIComponent(t));this.collect.has(e)||this.collect.set(e,t)}collectPagePrivateRes(t){t=t.items;const e=new Set;return this.collectItemsRes(t).forEach((t=>{e.add(t)})),[...e].map((t=>(t=t.slice(0,-1!==t.lastIndexOf("?")?t.lastIndexOf("?"):t.length),this.toAbsURL(t)))).filter((t=>{var e=f.getPathFilename(t);if(!this.collect.has(e))return t}))}collectItemsRes(t){const e=[];return t.forEach((t=>{e.push(...jn({item:t,justNeedResList:!0})),e.push(...Xn({item:t,justNeedResList:!0}));var i=Jn(t,!0);i instanceof Array&&e.push(...i),"group"===t.type&&e.push(...this.collectItemsRes(t.items))})),e}getPrivateRes(t){var e=f.getPathFilename(t);return[...this.collect.keys()].includes(e)?this.joinCode(this.collect.get(e)):this.joinCode(t)}toAbsURL(t){var e=document.createElement("a");return e.href=t,e.href}checkCurrentHrefCode(){var t=Yn("code");t&&!f.isEmptyObject(t)&&(this.extraParams.code=t)}joinCode(t){var e=Yn("",t),i=Object.keys(this.extraParams).reduce(((t,e)=>t+(e+"=")+this.extraParams[e]),"");return i?e&&!f.isEmptyObject(e)?t+"&"+i:t+"?"+i:t}},qn={AlibabaPuHuiTiRegular:"AlibabaPuHuiTiRegular.ttf",BaoTuXiaoBai:"BaoTuXiaoBai.ttf",ChaoJiXi:"ChaoJiXi.ttf",HuXiaoBoNanShenTi:"HuXiaoBoNanShenTi.otf",HuXiaoBoSaoBaoiTi:"HuXiaoBoSaoBaoiTi.otf",HuXiaoBoZhenShuaiTi:"HuXiaoBoZhenShuaiTi.otf",jiangchengyuanti:"jiangchengyuanti.ttf",JiangXiZhuoKaiTi:"JiangXiZhuoKaiTi.otf",LianMengQiYiLuShuaiZhengRuiHeiTi:"LianMengQiYiLuShuaiZhengRuiHeiTi.ttf",MuYaoRuanBiShouShuTi:"MuYaoRuanBiShouShuTi.ttf",PangMenZhengDaoBiaoTiTi:"PangMenZhengDaoBiaoTiTi.ttf",PangMenZhengDaoCuTi:"PangMenZhengDaoCuTi.ttf",PangMenZhengDaoQST:"PangMenZhengDaoQST.otf",QingSongShouXieTi1:"QingSongShouXieTi1.ttf",QingSongShouXieTi2:"QingSongShouXieTi2.ttf",RuiZiZhenYan:"RuiZiZhenYan.ttf",ShuShouTi:"ShuShouTi.ttf",SourceHanSansCN:"SourceHanSansCN.ttf",SourceHanSerifCN:"SourceHanSerifCN.otf",WenCangShuFang:"WenCangShuFang.ttf",WenDingJianBaoSong:"WenDingJianBaoSong.ttf",WenQuanDengKuanWeiMiHei:"WenQuanDengKuanWeiMiHei.ttf",WenQuanDengKuanZhengHei:"WenQuanDengKuanZhengHei.ttf",WenQuanWeiMiHei:"WenQuanWeiMiHei.ttf",WenQuanZhengHei:"WenQuanZhengHei.ttf",XianErTi:"XianErTi.ttf",XinYeNianTi:"XinYeNianTi.otf",YangRenDongZhuShiTi:"YangRenDongZhuShiTi.ttf",YeGenYouRuiJinTi:"YeGenYouRuiJinTi.ttf",YeGenYouShouZhongQuHua:"YeGenYouShouZhongQuHua.ttf",YeGenYouWeiDian:"YeGenYouWeiDian.ttf",YeGenYouWeiShanYun:"YeGenYouWeiShanYun.ttf",YouSheBiaoTiHei:"YouSheBiaoTiHei.ttf",YuanRouTi:"YuanRouTi.ttf",ZhanKuGaoDianHeiTi:"ZhanKuGaoDianHeiTi.ttf",ZhanKuHeiTi:"ZhanKuHeiTi.ttf",ZhanKuKuaiLeTi:"ZhanKuKuaiLeTi.ttf",ZhanKuWenYiTi:"ZhanKuWenYiTi.ttf",ZhanKuXiaoWei:"ZhanKuXiaoWei.otf",ZhengQingKeHuangYouTi:"ZhengQingKeHuangYouTi.ttf",ZiTiShiJieFaGunTi:"ZiTiShiJieFaGunTi.ttf","Addict Italic1":"Addict Italic1.ttf","Addict Italic2":"Addict Italic2.ttf",Age:"Age.otf",Akrobat:"Akrobat.otf",Aleo:"Aleo.ttf",Archive:"Archive.otf",Arkhip:"Arkhip.ttf",Averta:"Averta.otf",BebasNeue:"BebasNeue.ttf","BERNIER Distressed":"BERNIER Distressed.otf","BERNIER Shade":"BERNIER Shade.otf",BERNIER:"BERNIER.otf","Blogger Sans":"Blogger Sans.ttf",Braxton:"Braxton.otf",BukhariScript:"BukhariScript.otf",Campton:"Campton.otf","Canter Bold Shadow":"Canter Bold Shadow.otf","Canter Bold Strips":"Canter Bold Strips.otf","Canter Bold":"Canter Bold.otf","Canter Bold3D":"Canter Bold3D.otf","Canter Outline":"Canter Outline.otf",Canter:"Canter.otf",Casper:"Casper.ttf","Cheque Black":"Cheque Black.otf",Cheque:"Cheque.otf","Choplin ExtraLight":"Choplin ExtraLight.otf","Choplin Medium":"Choplin Medium.otf",CODE:"CODE.otf",Colus:"Colus.otf",Dan:"Dan.otf",Dekar:"Dekar.otf","Disclaimer Classic":"Disclaimer Classic.otf","Disclaimer Plain":"Disclaimer Plain.otf","Donau Neue Uppercase":"Donau Neue Uppercase.otf","Facet Black":"Facet Black.ttf","Facet Ultra":"Facet Ultra.ttf",File:"File.otf",Gagalin:"Gagalin.otf",Gilam:"Gilam.otf","Glober SemiBold":"Glober SemiBold.otf","Glober Thin":"Glober Thin.otf","GOGOIA Deco":"GOGOIA Deco.otf",GOGOIA:"GOGOIA.otf","Gota Light":"Gota Light.otf",Gota:"Gota.otf",GUERRILLA:"GUERRILLA.otf","Hagin Caps Medium":"Hagin Caps Medium.otf","Hagin Caps Thin":"Hagin Caps Thin.otf","Hero Light":"Hero Light.otf",Hero:"Hero.otf","HighTide Sans":"HighTide Sans.otf",HighTide:"HighTide.otf","Idealist Sans":"Idealist Sans.ttf","Intro Cond Black":"Intro Cond Black.otf","Intro Cond":"Intro Cond.otf","Intro Inline":"Intro Inline.otf",Intro:"Intro.otf",IntroHeadR:"IntroHeadR.otf","IntroRustG Line":"IntroRustG Line.otf","IntroScriptR H2":"IntroScriptR H2.otf",Kankin:"Kankin.ttf","Kelson Sans":"Kelson Sans.otf",LOT:"LOT.otf","Lovelo Black":"Lovelo Black.otf","Lovelo Line":"Lovelo Line.otf","Madras Extra Light":"Madras Extra Light.otf",Metropolis1920:"Metropolis1920.otf",MOD:"MOD.otf","Mont Heavy":"Mont Heavy.otf",Multicolore:"Multicolore.otf","Myra4F Caps":"Myra4F Caps.ttf","Nexa Bold":"Nexa Bold.otf","Nexa Slab":"Nexa Slab.otf",Nexa:"Nexa.otf","NexaRust Handmade":"NexaRust Handmade.otf","NexaRust Sans Black":"NexaRust Sans Black.otf","NexaRust ScriptL":"NexaRust ScriptL.otf","NexaRust Slab BlackShadow":"NexaRust Slab BlackShadow.otf",NexaScript:"NexaScript.otf",Nickainley:"Nickainley.otf",Null:"Null.otf","Oval Single":"Oval Single.otf","Panton Blackitalic Caps":"Panton Blackitalic Caps.otf",Perfograma:"Perfograma.otf","PH-300 CondCaps":"PH-300 CondCaps.otf","PH-400 Caps":"PH-400 Caps.otf",Phenomena:"Phenomena.otf","Portal Black":"Portal Black.otf",Prime:"Prime.otf","Quad Ultra":"Quad Ultra.otf",Quad:"Quad.otf","Rafale RU":"Rafale RU.otf",RBNo2Light:"RBNo2Light.otf",Resphekt:"Resphekt.otf","Rex Bold Inline":"Rex Bold Inline.otf","Rex Bold":"Rex Bold.otf",Rex:"Rex.otf",SAF:"SAF.otf",SantElia:"SantElia.otf","Sensa Sans":"Sensa Sans.otf","SensaBrush Fill":"SensaBrush Fill.otf",Sensei:"Sensei.ttf",Signika:"Signika.ttf",Silverfake:"Silverfake.otf",Slovic:"Slovic.ttf",Solena:"Solena.otf","Sprite Graffiti Shadow":"Sprite Graffiti Shadow.otf","Sprite Graffiti":"Sprite Graffiti.otf",Sreda:"Sreda.otf",Static:"Static.otf","Stiff Staff":"Stiff Staff.otf",Summer:"Summer.otf",Sunday:"Sunday.ttf","Tetra Decorative":"Tetra Decorative.ttf",TETRA:"TETRA.otf",Track:"Track.ttf","Uni Sans Heavy":"Uni Sans Heavy.otf","Uni Sans Thin":"Uni Sans Thin.otf",UniNeue:"UniNeue.otf","VAL Stencil":"VAL Stencil.otf",VAL:"VAL.otf",Vision:"Vision.otf",Weston:"Weston.otf",Yarin:"Yarin.ttf",Zag:"Zag.otf","ZingRust D2":"ZingRust D2.otf","ZingRust L":"ZingRust L.otf","ZingRust Script":"ZingRust Script.otf","ZingRust Sh1":"ZingRust Sh1.otf",ZingRust:"ZingRust.otf","ZingRustL H1 Fill":"ZingRustL H1 Fill.otf","Zona Pro":"Zona Pro.otf",cwTeXQFangSong:"cwTeXQFangSong.ttf",cwTeXQHeiTi:"cwTeXQHeiTi.ttf",cwTeXQKaiTi:"cwTeXQKaiTi.ttf",cwTeXQYuanTi:"cwTeXQYuanTi.ttf","HHZ BoKaTiKongYin":"HHZ BoKaTiKongYin.ttf","HHZ ChaoHeiQiaoPiDongWu":"HHZ ChaoHeiQiaoPiDongWu.ttf","HHZ ChaoMing":"HHZ ChaoMing.ttf","HHZ CuGangTi":"HHZ CuGangTi.ttf","HHZ CuGangTiShiYin":"HHZ CuGangTiShiYin.ttf","HHZ CuGangTiShuangKong":"HHZ CuGangTiShuangKong.ttf","HHZ CuMing":"HHZ CuMing.ttf","HHZ GangBiXingKai":"HHZ GangBiXingKai.ttf","HHZ HaiBaoTiBanTianShui":"HHZ HaiBaoTiBanTianShui.ttf","HHZ KuLiHaiBao":"HHZ KuLiHaiBao.ttf","HHZ TeHei":"HHZ TeHei.ttf","HHZ WeiBeiJianTi":"HHZ WeiBeiJianTi.ttf","HHZ XiHei":"HHZ XiHei.ttf","HHZ XiMing":"HHZ XiMing.ttf","HHZ XinSongJianTi":"HHZ XinSongJianTi.ttf","HHZ XiYuan":"HHZ XiYuan.ttf","HHZ YanTi":"HHZ YanTi.ttf","HHZ ZhengHaiBao":"HHZ ZhengHaiBao.ttf",KeShiLuGangBiHeTi:"KeShiLuGangBiHeTi.ttf",KeShiLuYanTi:"KeShiLuYanTi.ttf",LaiHuZiTi:"LaiHuZiTi.ttf",SiYuanRouHei:"SiYuanRouHei.ttf",TaiBeiHeiTi:"TaiBeiHeiTi.ttf",YuanJieMingChao:"YuanJieMingChao.ttf",YuanYunMingTi:"YuanYunMingTi.ttf",ZhuangJiaMingChao:"ZhuangJiaMingChao.ttf"};function Qn(t){var e,i,s,n,o;return"music"!==t.type&&"foreground"!==t.type&&(Kn((e=t.animations).in),n=parseFloat(t.style.left),o=parseFloat(t.style.width),i=parseFloat(t.style.top),s=parseFloat(t.style.height),void 0===t.differData&&void 0!==t.controlPoint&&(n=t.controlPoint.c1[0]-(n+o/2),o=t.controlPoint.c1[1]-(i+s/2),t.differData=[n,o],delete t.controlPoint),Kn(i=e.out),void 0!==i.name)&&0===i.name.indexOf("笔画退出")&&(s=i.props[0],n=i.props[1],void 0===s.opacity&&(s.opacity=1),void 0!==n.opacity)&&delete n.opacity,"text"===t.type&&void 0!==t.gradient&&void 0!==(o=t.gradient).startColor&&(o.isLinear=!0,o.colorList=[{percent:"0%",color:o.startColor},{percent:"100%",color:o.endColor}],o.gradientType="linear",o.gradientDeg=o.horizontal?90:180,delete o.startColor,delete o.endColor,delete o.horizontal),"effect"===t.type&&void 0!==t.isHotSpotEffect&&t.isHotSpotEffect&&(t.isLoop=!0,t.isAutoPlay=!0),t}function Kn(t){t.props&&t.props.forEach((t=>{Array.isArray(t.css)&&0===t.css.length&&(t.css={})}))}function Jn(t,e=!1){let i=ot.getters.host;var s=t.type,n=ot.getters.ossImgSuffix,o=ot.getters.ossGifSuffix;switch(s){case"text":return e&&!t.systemFontToSvg?t.isUploadedFont?[""+i+t.uploadedFontFileName]:(r=t.innerTextStyle.fontFamily,[""+i+qn[r]]):(void 0!==window.textSvgConfig&&void 0!==window.textSvgConfig[t.id]?t.svgText=window.textSvgConfig[t.id]:(t.svgText.svgCode="",t.systemFontToSvg||void 0===t.systemFontToSvg||(t.isUploadedFont?t.uploadFontUrl=Un.getPrivateRes(""+i+t.uploadedFontFileName):(r=t.innerTextStyle.fontFamily,t.minFontUrl=Un.getPrivateRes(""+i+qn[r])))),new(t.isSubtitle?Xe:Ze)(t));case"image":if(t.isSprite){const s=[];if(t.gifs.forEach((t=>{let n=[],o=[];t.fileName.forEach(((e,s)=>{e=Un.getPrivateRes(""+i+e),n.push(e),e=f.getPathFilename(t.jsonUrl[s]),o.push(Un.getPrivateRes(""+i+e))})),e?s.push(...n,...o):(t.image=n,t.jsonUrl=o)})),e)return s}else{var r=f.getPathSuffix(t.fileName);let s=""+i+t.fileName;var a=2*Math.ceil(Math.max(parseFloat(String(t.style.width)),parseFloat(String(t.style.height))));if("gif"===r?o&&(s=""+i+t.fileName+"?"+o.replace("%maxSize%",a)):n&&(s=""+i+t.fileName+"?"+n.replace("%maxSize%",a)),e)return[s];t.url=Un.getPrivateRes(s)}return r=wt({item:t}),t.style.backgroundPosition=r.backgroundPosition,t.style.backgroundSize=r.backgroundSize,new Ge(t);case"svg":return e?t.isQRCode?null:[""+i+t.fileName]:(t.svgUrl=Un.getPrivateRes(""+i+t.fileName),void 0===t.parseSvgType&&(t.parseSvgType=1),new M(t));case"chart":return e?null:new Ne(t);case"baseShape":return e?null:new De(t);case"frames":var l=[];""===t.jsonUrl&&t.fileName&&(e?l.push(""+i+t.fileName):t.jsonUrl=Un.getPrivateRes(""+i+t.fileName));for(let r=0;r{e?s.push(""+i+t):s.push(Un.getPrivateRes(""+i+t))})),e)return s;t.fgFileUrlList=s}return new qe(t);case"swiper":var u=[];if(t.swiperOpts&&t.swiperOpts.sliderFill)for(const n of t.swiperOpts.sliderFill)e?u.push(""+i+n.name):n.url=Un.getPrivateRes(""+i+n.name);return e?u:new ri(t);case"transShape":return e?null:new Ye(t);case"camera":return e?null:new Qe(t);case"background":{let s="";return t.hasBGI&&(s=""+i+t.fileName),e?[s]:(void 0===t.isSvgBGI&&(t.isSvgBGI=!1),void 0===t.parseSvgType&&(t.parseSvgType=1),t.hasBGI&&(t.isSvgBGI?t.svgUrl=Un.getPrivateRes(s):t.url=Un.getPrivateRes(s)),new Ue(t))}case"component":return e?null:new ni(t);case"effect":return e?[""+i+t.fileName]:(t.jsonUrl=Un.getPrivateRes(""+i+t.fileName),t.hasLoadedJson=!1,e?[t.jsonUrl]:new Ke(t));case"music":return e?[""+i+t.fileName]:(t.audioInfo.url=Un.getPrivateRes(""+i+t.fileName),t.style={top:"0px",left:"0px",width:"20px",height:"20px",opacity:1},t.isHidden=!1,new Ve(t));case"video":return e?[""+i+t.fileName]:(t.videoInfo.url=Un.getPrivateRes(""+i+t.fileName),new je(t));case"link":return e?null:new Je(t);case"like":return e?null:new ti(t);case"phone":return e?null:new ei(t);case"pluginVideo":return a=[],2===t.pluginVideoType&&(e?a.push(""+i+t.fileName):t.videoInfo.url=Un.getPrivateRes(""+i+t.fileName)),""!==t.thumbUrlFileName&&(e?a.push(""+i+t.thumbUrlFileName):t.thumbUrl=Un.getPrivateRes(""+i+t.thumbUrlFileName)),e?a:new si(t);case"pluginMusic":const s=[];return t.musicList.forEach((t=>{e?s.push(""+i+t.fileName):t.url=Un.getPrivateRes(""+i+t.fileName)})),e?s:new ii(t);case"button":return e?null:new oi(t);case"iframe":return e?null:new fi(t);case"table":if(e){let e=[];return t.tableList.forEach((t=>{t.forEach((t=>{var s=t.innerTextStyle.fontFamily;e.push(""+i+qn[s]),t.minFontUrl=Un.getPrivateRes(""+i+qn[s])}))})),e}return t.tableList.forEach((t=>{t.forEach((t=>{var e=t.innerTextStyle.fontFamily;t.minFontUrl=Un.getPrivateRes(""+i+qn[e])}))})),new vi(t);case"map":return e?null:new yi(t);default:return t}}var to=i(9975),eo=i(5947),io=i(5033);Pn=(0,N.Z)({name:"Loading",props:["page","pageIndex"],computed:{},methods:{getPreviewStyle:function(){if(!this.page)return"";let t="";return this.page.previewImage?t=this.page.previewImage:window.bookConfig&&window.bookConfig.previewPath&&window.bookConfig.previewSuffix&&(t=window.bookConfig.previewPath+(this.pageIndex+1)+"."+window.bookConfig.previewSuffix),t&&(-1{setTimeout(t,0)}))}async function oo(t){for(performance.now();0{e=e.split(".").reduce(((t,e)=>{if(!(0,X.Z)(t)&&!(0,X.Z)(t[e]))return ko(t[e])?t[e]:{target:t,key:e}}),t),ko(e)&&((0,X.Z)(e.target)&&(0,X.Z)(e.key)?Object.freeze(e):So(e.key,e.target))}));var e=ao.slice(0);switch(t.type){case"text":e.push(...lo);break;case"image":e.push(...ho);break;case"baseShape":e.push(...co);break;case"svg":e.push(...uo);break;case"frames":e.push(...po);break;case"button":e.push(...go);break;case"iframe":e.push(...mo);break;case"like":e.push(...fo);break;case"link":e.push(...wo);break;case"pluginMusic":e.push(...vo);break;case"pluginVideo":e.push(...yo);break;case"swiper":e.push(...xo);break;case"table":e.push(...Co);break;case"transShape":e.push(...$o);break;case"chart":e.push(...bo)}e.forEach((e=>{So(e,t)}))}var Po=(0,N.Z)({name:"app",data:function(){return{plugins:[to.Z,eo.C,io.Z,Tt.SX,Tt.qD,Tt.EA,Tt.Lp,Tt.Aq,Tt.Yp,Tt.bJ,dt.eJ,dt.tQ,dt.sm,dt.l6,dt.Dd,dt.NB,dt.zO,dt.Au,dt.Yv,dt.$p],currentPage:null,pageIndex:"",pageTimeline:null,pageAnimeTime:0,cameraInfo:{},pageAudioItems:[],pageVideoItems:[],autoPlayArray:[],replayTimer:null,isLoadingRes:!1,isCreatingAnime:!1,playTimer:null,isShowPreviewImage:!1}},provide:function(){return{getCurrentPage:()=>this.currentPage}},mounted:async function(){let t=this.$root.pageIndex;this.isShowPreviewImage=!0;var e=navigator.userAgent.toLowerCase();e.match(/i(?:pod|phone|pad)|android|wpdesktop|blackberry|mobile|windows phone/gi)&&this.$store.commit("NAVIGATOR_INFO",{isMobile:!0}),e.match(/macintosh|pad|ipad/gi)&&this.$store.commit("NAVIGATOR_INFO",{isPad:!0}),e.match(/iphone|ipod|ipad|ios/g)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!0}),e.match(/macintosh|mac os x/gi)&&!e.match(/mobile/gi)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!1});let i=[],s={};this.isDev?(await this.$http.get(`/test/${this.folder}/config.js`).then((e=>{e=JSON.parse(e.data.replace(/var.*?=\s{/,"{").replace(/export\sdefault.*/,"")),window.readerConfig={pages:e.pages,pageConfig:e.pageConfig},i=e.pages[t],s=e.pageConfig})),await this.$http.get(`/test/${this.folder}/textSvgConfig.js`).then((t=>{t=JSON.parse(t.data.replace(/var.*?=\s{/,"{").replace(/export\sdefault.*/,"")),window.textSvgConfig=t}))):(i=f.copy(window.readerConfig.pages[t],!0),s=window.readerConfig.pageConfig);var n,o;e=this.getCurrentInverseList(t);if(e&&(i.insertPageLink=e),i=Nn([i],s)[0],Un.checkCurrentHrefCode(),window.bookConfig&&window.bookConfig.isEncryptionBook&&0<(e=Un.collectPagePrivateRes(i)).length&&(n=window.BookRestrict?window.BookRestrict.getRestrictToken():"",o=window.restrictUrl||"",await a.Z.post(o,{token:n,urls:JSON.stringify(e)}).then((t=>{if("ok"===t.data.code.toLocaleLowerCase())return t.data.data})).catch((t=>({}))).then((t=>{Object.keys(t).forEach((e=>{e=t[e],Un.add(e)}))})).catch((()=>({})))),await this.isSupportWebpTest(),this.isHasItems(i)?this.isLoadingRes=!0:this.isShowPreviewImage=!1,this.parsePages(t,i),this.$root.lazy){const e=i.items,s=(i.items=[],i.subtitle.items),n=(i.subtitle.items=[],this);await oo([function(){n.currentPage=i},function(){n.setPageSizeStyle()},n.setPageSizeStyle,function(){n.pageIndex=t},function(){return async function(t,e,i){for(;0{this.$nextTick((()=>{this.createAnime({page:i,pageIndex:t,isFirstTime:!0}),this.isLoadingRes=!1,P.Q.$emit("PAGE_FINISHED_"+t,t)}))})),P.Q.$on("SEEK_TIMELINE_INEND_"+this.pageIndex,(({indexArr:t,seekTime:e})=>{this.pauseAnimeByTrigger({indexArr:t,seekTime:e})}))},beforeDestroy:function(){P.Q.$off("CANCEL_LINK_ANIME"),P.Q.$off("SEEK_TIMELINE_INEND_"+this.pageIndex)},computed:{getPreviewStyle:function(){if(this.currentPage){var t=this.currentPage;let e="";return t.previewImage?e=t.previewImage:window.bookConfig&&window.bookConfig.previewPath&&window.bookConfig.previewSuffix&&(e=window.bookConfig.previewPath+(this.pageIndex+1)+"."+window.bookConfig.previewSuffix),e&&(-1=t.totalTime&&this.pause("",!0)}},methods:{getCurrentInverseList:function(t){if(window.inverseEditor&&"[object Array]"===Object.prototype.toString.call(window.inverseEditor)&&window.inverseEditor.length&&window.inverseEditor[t]&&window.inverseEditor[t].length){if(window.articleConfig&&window.articleConfig.hotArea)for(var e=window.articleConfig.hotArea,i=window.inverseEditor[t],s=0;s{e&&"load"===e.type?this.$store.commit("IS_SUPPORT_WEBP",{isSupport:1===t.width}):this.$store.commit("IS_SUPPORT_WEBP",{isSupport:!1}),t=null};return new Promise((function(i){t.onload=t=>{e(t),i()},t.onerror=t=>{e(t),i()},t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="}))},searchSvgText(t,e=!1){for(let s=0;s{var i,s;e.pageIndex=t,"group"===e.type&&(i=L.getDefaultItemKey(),e=f.deepAssign(i,e)),Qn(e),(s=(i=e).animations.in).isAlways?i.existStartTime=-1:i.existStartTime=s.delay,Vn({item:e}),jn({item:e});const n=Jn(e,!1);return Xn({item:n}),this.getPaintedAnimeInfo({item:n}),this.getScrawlAnimeInfo({item:n}),this.getEraseAnimeInfo({item:n}),this.isPhone||"pluginVideo"!==n.type||"EVT_PageViewed"!==n.moviePlayTriggerEvt||this.autoPlayArray.push("#video"+n.id),"group"===n.type&&(n.items=this.parseItems(t,n.items)),To(n),["video","pluginVideo"].includes(n.type)&&this.pageVideoItems.push(n),["music","pluginMusic"].includes(n.type)&&this.pageAudioItems.push(n),0!==n.actionList.length&&n.actionList.forEach((t=>{t.playAudio&&(t.playAudio.link||t.playAudio.audioList)&&this.pageAudioItems.push(n)})),n}))},parsePages:function(t,e){e.items=this.parseItems(t,e.items),q.forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&("background"===t?e.background.items=[]:e[t].items=e[t].items.map((t=>(t=Jn(t),To(t),t))))})),this.initAutoPlayList(t)},getAutoPlayArray:function(){return this.autoPlayArray},loadPageRes:function(t,e){return this.$store.dispatch("ASYN_GET_ITEM_RES",{pageIndex:t,page:e})},initAutoPlayList:function(t){window.vuePopDom&&window.vuePopDom.initAutoplayList(this.autoPlayArray,t+1)},getScrawlAnimeInfo:function({item:t}){var e=t.animationFiles.scrawlFiles,i=t.animations.in;e=e.in;return"scrawl"===i.type?(""===e.handId&&(e.handId=-1),-1!==e.handId&&(e.url=""+this.host+e.fileName)):e.url="",t},getEraseAnimeInfo:function({item:t}){var e=t.animationFiles.outEraseFiles,i=t.animations.out;e=e.out;return"outErase"===i.type&&(""===e.handId&&(e.handId=-1),-1!==e.handId)&&(e.url=""+this.host+e.fileName),t},getPaintedAnimeInfo:function({item:t}){var e=t.animationFiles.handPaintedFiles,i=t.animations.in;e=e.in;return"painted"===i.type&&(""===e.handId&&(e.handId=-1),-1!==e.handId)&&(e.url=""+this.host+e.fileName),t},pauseAnimeByTrigger:function({indexArr:t,seekTime:e}){this.pageTimeline&&this.pageTimeline.getChildren(!0,!1,!0).map((i=>{t.includes(i.id)&&i.pause(e)}))},cancelLinkAnime:function(t){P.Q.$on("CANCEL_LINK_ANIME",(e=>{t.pause(),t.to("#ItemLayout"+e.id,0,{background:e.style.background})}))},createAnime:function({page:t,pageIndex:e}){this.isCreatingAnime=!0;var i=t.items;let s=new ht.ZP({paused:!0});i.forEach(((t,i)=>{var n=("link"===t.type&&((n=new ht.ZP({})).to("#ItemLayout"+t.id,.5,{background:t.style.hoverColor,onUpdate:this.cancelLinkAnime(n)}).to("#ItemLayout"+t.id,.5,{background:t.style.background,onUpdate:this.cancelLinkAnime(n)}),s.add(n,0)),Ft({item:t,index:i,isGroupItem:!1,groupKey:-1,curTimeScale:this.curTimeScale,pageIndex:e}))["itemTimeline"];n&&(n.seek("in"),n.id=t.id,s.add(n,0))})),this.setStayTimeline(t,s),this.setSpecialyItemAnime(t,s,e),i=new ht.ZP({delay:0}),i.to("fakedom",t.totalTime,{a:1}),s.add(i,0),this.pageTimeline=s,this.isCreatingAnime=!1,this.pageTimeline.eventCallback("onUpdate",this.pageTimelineUpdate,["{self}"])},pageTimelineStart:function(){},pageTimelineUpdate:function(){var t=this.pageTimeline.duration()*this.pageTimeline.progress();this.pageAnimeTime=t,this.$store.commit("UPDATE_PAGE_TIME",{pageIndex:this.pageIndex,time:t})},pageTimelineComplete:function(){},getCameraInfo:function(t){let e=[],i=this.$store.state.pageConfig,s=this.$store.getters.fitViewScale;t.forEach((t=>{var n={},o=(t=t.style,parseFloat(t.width)),r=parseFloat(t.left),a=parseFloat(t.top),l=(t=parseFloat(t.height),i.originPageWidth),h=i.originPageHeight,d=i.fitPageTop,c=i.fitPageLeft,u=l/o*s,p=l*u,g=h*u;c-=(r+o/2-l/2)*u,r=d-(a+t/2-h/2)*u;n.endPercent=u,n.endPageLeft=c,n.endPageTop=r,n.endCanvasWidth=p,n.endCanvasHeight=g,e.push(n)})),this.cameraInfo=e},setSpecialyItemAnime:function(t,e,i){q.forEach((s=>{"subtitle"===s&&t.subtitle.isEnable&&this.setSubtitleTimeline(t,e,i)}))},setSubtitleTimeline:function(t,e){let i=new ht.ZP({});t.subtitle.items.forEach(((t,e)=>{var s="#anime"+t.id,n=new ht.ZP({}),o=t.animations.delay;Et.setSubtitleAnime({subtitle:t,subTimeline:n,target:s,subtitleIndex:e}),i.add(n,"subtitleStart"+e).addLabel("subtitleEnd"+e),s=i.getLabelTime("subtitleStart"+e)+o,n=i.getLabelTime("subtitleEnd"+e);t.existStartTime=s,t.existEndTime=n})),e.add(i,0)},setCameraTimeline:function(t,e){let i=document.querySelector("#scalePage"+this.pageIndex),s=this.cameraInfo,n=new ht.ZP({});t.camera.items.forEach(((e,o)=>{var r=e.animations.duration;e=e.animations.delay;let a=s[o];var l={ease:"Power0.easeNone",css:{}};if(0===o){var h=new ht.ZP({delay:0});h.from(i,r,l,"in"),h.eventCallback("onStart",(()=>{this.$store.commit("SET_PAGE_STYLE",{page:t,width:a.endCanvasWidth,height:a.endCanvasHeight,left:a.endPageLeft,top:a.endPageTop})})),this.$store.commit("SET_PAGE_STYLE",{page:t,width:a.endCanvasWidth,height:a.endCanvasHeight,left:a.endPageLeft,top:a.endPageTop}),n.add(h,"in").addLabel("inEnd")}else{h=new ht.ZP({delay:e}),e=s[o-1];var d=a;let c=e.endPageLeft,u=e.endPageTop,p=e.endCanvasWidth,g=e.endCanvasHeight,m=d.endPageLeft-c,f=d.endPageTop-u,w=d.endCanvasWidth-p,v=d.endCanvasHeight-g;h.to(i,r,l),h.eventCallback("onUpdate",(e=>{e=e.progress();var i=p+w*e,s=g+v*e,n=c+m*e;e=u+f*e;this.$store.commit("SET_PAGE_STYLE",{page:t,width:i,height:s,left:n,top:e})}),["{self}"]),n.add(h,"camera"+o)}})),e.add(n,0)},setForegroundTimeline:function(t,e){let i=new ht.ZP({});t.foreground.items.forEach(((t,e)=>{var s="#anime"+t.id,n=new ht.ZP({}),o=t.animations.delay;Et.setForegroundAnime({foreground:t,fgTimeline:n,target:s,foregroundIndex:e}),i.add(n,"foregroundStart"+e).addLabel("foregroundEnd"+e),s=i.getLabelTime("foregroundStart"+e)+o,n=i.getLabelTime("foregroundEnd"+e);t.existStartTime=s,t.existEndTime=n})),e.add(i,0)},setBackgroundTimeline:function(t,e){let i=new ht.ZP({});t.background.items.forEach(((e,s)=>{var n=e.animations.delay,o="#anime"+e.id,r=new ht.ZP({});Et.setBackgroundAnime({background:e,bgTimeline:r,target:o,backgroundIndex:s}),i.add(r,"backgroundStart"+s).addLabel("backgroundEnd"+s),o=i.getLabelTime("backgroundStart"+s)+n;e.existStartTime=o,0{-1!==e.getLabelTime("inEnd")&&(void 0!==t?-1===t?e.pause():e.pause(t):e.pause("inEnd"))}))},destroy:function(){this.clearTimeline(),this.autoPlayArray=[],this.$store.commit("CLEAR_PAGE",{pageIndex:this.pageIndex}),this.currentPage=null,this.pageIndex=""},clearTimeline:function(){this.pageTimeline&&(this.pageTimeline.pause(),this.pauseItemAnimeInEnd(),this.pageTimeline.kill(),this.pageTimeline=null,this.audioPause(),this.videoPause())},play:function(t){this.pageTimeline?(this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!0}),this.pageTimeline.play(),this.audioOrVideoPlay()):(this.playTimer&&clearTimeout(this.playTimer),this.playTimer=setTimeout(this.play.bind(this),100))},pauseToInEnd:function(){this.pageTimeline&&(this.pageTimeline.pause(),this.pauseItemAnimeInEnd(),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1}))},clearActionAnime:function(){P.Q.$emit("CLEAR_ACTION_ANIME_"+this.pageIndex)},pause:function(t,e=!1){this.pageTimeline&&(this.pageTimeline.pause(),this.audioPause(e),this.videoPause(e),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1}))},replay:function(){this.replayTimer&&(clearTimeout(this.replayTimer),this.replayTimer=null),this.pageTimeline?(P.Q.$emit("CLEAR_ACTION_ANIME_"+this.pageIndex),this.creatPageAnime(),this.pageTimeline.play(),this.audioOrVideoPlay(),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!0})):this.replayTimer=setTimeout(this.replay.bind(this),100)},creatPageAnime:function(){var t;this.pageTimeline&&(this.clearTimeline(),t=this.pageIndex,this.createAnime({page:this.currentPage,pageIndex:t}),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1}))},resize:function({width:t,height:e}){this.$store.commit("SET_CANVAS",{width:t,height:e,needResetPage:!0}),this.setPageSizeStyle()},audioPause:function(t){},videoPause:function(t){this.pageVideoItems.forEach((e=>{var i=e.id;i=document.querySelector("#video"+i);e.videoTimer&&clearTimeout(e.videoTimer),"video"!==e.type&&(t||"pluginVideo"!==e.type||1!==e.pluginVideoType&&2!==e.pluginVideoType)||i&&i.pause()}))},audioOrVideoPlay:function(){window.vuePopDom&&window.vuePopDom.sliderEnterPage()},startFlip:function(){P.Q.$emit("PAGE_START_FLIP_"+this.pageIndex)},endFlip:function(){P.Q.$emit("PAGE_END_FLIP_"+this.pageIndex)},searchText:function(t){this.searchSvgText(t),P.Q.$emit("SEARCH_TEXT_"+this.pageIndex,t)},matchAllText:function(t){},getSearchTextResults:function(){return this.$store.state.textSearchResults},clearHighLight:function(){this.searchSvgText("",!0),Be.clearHighLight(),P.Q.$emit("SEARCH_TEXT_CLEAR"),this.$store.commit("STORE_TEXT_SEARCH_RESULTS",{clear:!0})},setPageSizeStyle:function(){var t=this.$store.state.canvas,e=this.$store.state.pageConfig,i=t.width,s=(t=t.height,e.originPageWidth);e=e.originPageHeight,this.currentPage.width=i,this.currentPage.height=t,this.currentPage.left=(i-s)/2,this.currentPage.top=(t-e)/2,i/=s;this.currentPage.scale=Math.min(i,t/e)}},components:{WorkSpacePageInner:En,Loading:Pn}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"app"},[""!==t.pageIndex?[e("WorkSpacePageInner",{key:t.pageIndex,class:{invisibleDom:t.isLoadingRes},attrs:{pageIndex:t.pageIndex,page:t.currentPage,pageAnimeTime:t.pageAnimeTime}})]:t._e()],2)}),[],!1,null,null,null).exports,Lo=(An=(0,N.Z)({name:"Lightbox",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShowPopClose","isNoPaddingTop","isTriggleBox","isHiddenHeaderTitle","isAutoPopSize","isAutoPopImg","isPhone","isShowBottomPadding","modalType","sizeType","isShow","showClose","showOutsideClose","showConfirm","showAlert","hideTitleLine","isAutoWidth","customWidth","customHeight","hasNoBorderRadius","hasLoading","hasPadding","title","secondTitle","message","forbidClickBg","forbidClose","forbidConfirm","forbidKeyboard","isClickContentClose","closeCallBack","confirmCallBack","confirmCallBackNoClose","confirmBtnTxt","cancelBtnTxt","lightboxZIndex","hiddenOverFlow","isArticle","lightboxContentBackground"],computed:{lightboxTarget:function(){let t="Lightbox";return this.modalType?this.modalType:t},lightboxStyle:function(){var t={};return this.lightboxZIndex&&(t.zIndex=this.lightboxZIndex),t},lightboxCenteredStyle:function(){var t={};if(this.customWidth){let e=this.customWidth;e>.85*window.innerWidth&&(e=.85*window.innerWidth),t.width=e+"px",t.maxWidth=e+"px"}if(this.customHeight){let e=this.customHeight;e>.85*window.innerHeight&&(e=.85*window.innerHeight),t.height=e+"px",t.maxHeight=e+"px"}return this.hiddenOverFlow||(t.overflow="hidden"),t},lightBoxTitle:function(){let t=this.title;return""!==t&&!this.message||(t="提示"),this.isHiddenHeaderTitle?"":t},isHasPadding:function(){let t=this.hasPadding||this.title||this.message||this.showConfirm||this.showAlert;return!1!==this.hasPadding&&t},showCloseIcon:function(){let t=this.title||this.showClose||this.message||this.showConfirm||this.showAlert;return!1!==this.showClose&&t},backgroundStyle:function(){var t={"background-color":"#ffffff"};return this.lightboxContentBackground&&(t["background-color"]=this.lightboxContentBackground),t}},methods:{afterEnter:function(){this.$emit("domLoaded"),this.$refs.Lightbox&&this.$refs.Lightbox.addEventListener("keydown",(t=>{t.cancelBubble=!0,t.stopPropagation()}))},closeLightbox:function(t){this.forbidClose||0!==t.button&&"click"===t.type||this.forbidClose||"lightbox-centered"===t.target.className&&this.forbidClickBg||(this.showContent=!1,this.isShowLightbox=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})),this.closeCallBack&&this.closeCallBack())},confirmFn:function(){this.forbidConfirm||(this.confirmCallBackNoClose?this.confirmCallBackNoClose():(this.showContent=!1,this.isShowLightbox=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})),this.confirmCallBack?this.confirmCallBack():this.confirmCallBackNoClose))},contentClickFn:function(t){this.isClickContentClose&&(this.showContent=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})))}},mounted:function(){let t=this;t.isShow&&(t.showContent=!0),t.forbidKeyboard||"Confirm"!==t.modalType||(t.handler=function(){var e=event||window.event,i=e.keyCode;e.stopPropagation(),e.cancelBubble=!0,t.isShowLightbox&&(13===i&&t.confirmFn(),27===i)&&t.closeLightbox(e)},document.addEventListener("keyup",t.handler))},destroyed:function(){document.removeEventListener("keyup",this.handler)}},(function(){var t=this,e=t._self._c;return e("portal",{attrs:{to:t.lightboxTarget}},[e("transition",{attrs:{name:"lightbox-fade"}},[e("div",{ref:"Lightbox",staticClass:"Lightbox",class:{triggleBox:t.isTriggleBox},style:t.lightboxStyle,attrs:{id:"Lightbox"},on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"lightbox-bg"}),e("transition",{attrs:{name:"fade"},on:{"after-enter":t.afterEnter}},[t.showContent?e("div",{staticClass:"lightbox-container",class:{"pop-container":t.isShowPopClose}},[t.isShowPopClose?e("div",{staticClass:"outer-pop-circle",on:{click:t.closeLightbox}},[e("div",{staticClass:"reader-icon outPopBtn"})]):t._e(),e("div",{staticClass:"lightbox-table"},[e("div",{staticClass:"lightbox-centered",on:{mousedown:function(e){return e.stopPropagation(),t.closeLightbox.apply(null,arguments)}}},[t.isShow?e("div",{staticClass:"lightbox-content",class:[t.sizeType,{isAutoWidth:t.isAutoWidth,hasNoBorderRadius:t.hasNoBorderRadius,isAutoPop:t.isAutoPopSize,isPhone:t.isPhone,isAutoPopImg:t.isAutoPopImg}],style:[t.lightboxCenteredStyle,t.backgroundStyle],on:{mousedown:function(t){t.stopPropagation()},click:function(e){return e.stopPropagation(),t.contentClickFn.apply(null,arguments)}}},[t.hasLoading?e("div",{staticClass:"loading"},[e("svg",{attrs:{viewBox:"25 25 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])]):t._e(),e("div",{staticClass:"content-container",class:{hasPadding:t.isHasPadding,paddingTop:t.isHiddenHeaderTitle&&!t.isNoPaddingTop,noPaddingTop:t.isNoPaddingTop,hasNoPaddingBottom:!t.showConfirm&&!t.showAlert&&!t.isShowBottomPadding}},[t.showOutsideClose?e("div",{staticClass:"reader-icon outsideBtn",class:{disabled:t.forbidClose},on:{click:t.closeLightbox}}):t._e(),t.isHiddenHeaderTitle||t.lightBoxTitle||t.showCloseIcon?e("div",{staticClass:"box-header",class:{hideTitleLine:t.hideTitleLine,noTitle:!t.lightBoxTitle},style:{"border-bottom":t.isShowBottomPadding?"none":""}},[t.lightBoxTitle?e("p",{staticClass:"box-title"},[e("span",{domProps:{innerHTML:t._s(t.lightBoxTitle)}}),e("span",{staticClass:"seconde-title",domProps:{innerHTML:t._s(t.secondTitle)}})]):t._e()]):t._e(),e("div",{staticClass:"box-main",class:{hasNoPadding:!1===t.isHasPadding,noTitleMain:t.isHiddenHeaderTitle}},[t.message?e("p",{staticClass:"box-message"},[t._v(t._s(t.message))]):t._e(),e("div",{staticClass:"content",style:t.backgroundStyle},[t._t("default")],2)]),t.showConfirm||t.showAlert?e("div",{staticClass:"box-btns",class:{isConfirm:"Confirm"===t.modalType}},[e("el-row",[e("el-col",{staticClass:"btn-option"},[e("div",{staticClass:"btn btn-green btn-block",class:{forbidConfirm:t.forbidConfirm},on:{click:t.confirmFn}},[t._v(" "+t._s(t.confirmBtnTxt||t.$t("ChangePageSizePanel_vue.text9"))+" ")])]),t.showConfirm?e("el-col",{staticClass:"btn-option"},[e("div",{staticClass:"btn btn-white btn-block",class:{forbidConfirm:t.forbidClose},on:{click:t.closeLightbox}},[t._v(" "+t._s(t.cancelBtnTxt||t.$t("MenuForPathTool_vue.text3"))+" ")])]):t._e()],1)],1):t._e()]),t.showCloseIcon?e("div",{staticClass:"reader-icon closeBtn",class:{disabled:t.forbidClose,noTitle:!t.lightBoxTitle},on:{click:t.closeLightbox}}):t._e(),t.isArticle&&t.isPhone?e("div",{staticClass:"reader-icon backBtn",class:{disabled:t.forbidClose,noTitle:!t.lightBoxTitle},on:{click:function(e){return e.stopPropagation(),t.closeLightbox.apply(null,arguments)}}}):t._e()]):t._e()])])]):t._e()])],1)])],1)}),[],!1,null,"1dd43d6d",null).exports,Bn=(0,N.Z)({name:"PhoneSlideBox",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShow","isHidePopTitleAndDesc","currentPopImgItem","currentPopImgLength","currentPopImageIndex"],computed:{hasTitle:function(){return!!this.currentPopImgItem.title.trim()}},methods:{hidePhoneSlideBox:function(){setTimeout((()=>{this.$emit("update:isShow",!1)}))},openPopImgLink:function(t){t.link&&window.open("http://"+t.link)}},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("portal",{attrs:{to:"PhoneSlideBox"}},[e("transition",{attrs:{name:"slide-fade"}},[e("div",{ref:"SlideBox",staticClass:"SlideBox",attrs:{id:"SlideBox"},on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"SlideBox-bg"}),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isHidePopTitleAndDesc,expression:"!isHidePopTitleAndDesc"}],staticClass:"SlideBox-top",class:{"top-noTitle":!t.hasTitle}},[e("div",{staticClass:"top-content"},[e("p",{staticClass:"SlideBox-title"},[t._v(t._s(t.currentPopImgItem.title))]),e("div",{staticClass:"top-btn-box"},[e("span",{staticClass:"reader-icon slide-back",on:{click:function(e){return e.stopPropagation(),t.hidePhoneSlideBox.apply(null,arguments)}}}),t.currentPopImgItem.link?e("span",{staticClass:"reader-icon slide-link",on:{click:function(e){return e.stopPropagation(),t.openPopImgLink(t.currentPopImgItem)}}}):t._e()]),1Promise.resolve().then(i.bind(i,1845)),VimeoPlayerIframe:()=>Promise.resolve().then(i.bind(i,8875))},beforeDestroy:function(){window.removeEventListener("resize",this.recordWindowWidth)},directives:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"popPhoneVideo"},[e("div",{staticClass:"slide-back-outer",class:{"slide-back-outer-yz":t.isYZPro},on:{click:function(e){return e.stopPropagation(),t.hidePhoneVideoBox.apply(null,arguments)}}},[e("span",{staticClass:"reader-icon slide-back"}),t.isYZPro?e("span",{staticClass:"slide-back-tips"},[t._v("返回书页")]):t._e()]),e("div",{staticClass:"video-container",class:{horizontal:t.isVimeo},style:[t.videoContainerStyle]},["video"!==t.videoType?e("div",{staticClass:"iframe-video"},[t.isHtmlIframe?e("div",{staticClass:"video-outer-box",domProps:{innerHTML:t._s(t.videoUrl)}}):t._e(),t.isYoutube?e("div",{staticClass:"embed-video-box"},[e("div",{staticClass:"iframe-player-container"},[e("YoutubePlayerIframe",{attrs:{item:t.pluginVideoItem,youtubeId:t.youTubeId,pluginVideoPageIndex:t.pageIndex,isPhonePopup:!0}})],1)]):t._e(),t.isVimeo?e("div",{staticClass:"embed-video-box"},[e("div",{staticClass:"iframe-player-container"},[e("VimeoPlayerIframe",{attrs:{item:t.pluginVideoItem,vimeoId:t.vimeoId,vimeoPageIndex:t.pageIndex,isPhonePopup:!0},on:{getWidthHeight:t.getVideoWidthHeight}})],1)]):t._e()]):t._e(),"video"===t.videoType?e("div",{staticClass:"video-outer-box"},[e("video",{ref:"video",staticClass:"video",attrs:{src:t.videoUrl,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload",autoplay:!0,loop:t.isLoop}})]):t._e()])])}),[],!1,null,"38599ffc",null).exports,Gt=(0,N.Z)({name:"PhonePopupVideoBox",data(){return{}},props:["videoLink","videoType","generalCode","videoLocalLink","youTubeIdOrVimeoId","isAutoPlay","isLoop","isPauseBgSoundWhenPlay"],watch:{},created:function(){},mounted:function(){window.bgSound&&this.isPauseBgSoundWhenPlay&&window.bgSound.pause()},updated:function(){},computed:{isShowPopupVideo:{get:function(){return this.$store.state.isShowPopupVideo},set:function(t){this.$store.state.isShowPopupVideo=t}},isYZPro:function(){return this.$store.getters.isYZPro}},methods:{hidePhoneVideoBox:function(){this.isShowPopupVideo=!1,window.bgSound&&window.bgSound.play()}},components:{},directives:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"popPhoneVideo",class:{"yz-background":t.isYZPro}},[e("div",{staticClass:"slide-back-outer"},[e("span",{staticClass:"reader-icon slide-back",on:{click:function(e){return e.stopPropagation(),t.hidePhoneVideoBox.apply(null,arguments)}}})]),0===t.videoType?e("div",{staticClass:"video-outer-box",domProps:{innerHTML:t._s(t.generalCode)}}):t._e(),1===t.videoType?e("div",{staticClass:"video-outer-box"},[e("video",{ref:"popupVideoOuterLink",staticClass:"video",attrs:{src:t.videoLink,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload",autoplay:t.isAutoPlay,loop:t.isLoop}})]):t._e(),2===t.videoType?e("div",{staticClass:"video-outer-box"},[e("video",{ref:"popupVideoLocalLink",staticClass:"video",attrs:{src:t.videoLocalLink,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload",autoplay:t.isAutoPlay,loop:t.isLoop}})]):t._e(),3===t.videoType||4===t.videoType?e("div",{staticClass:"video-outer-box"},[e("div",{staticClass:"outer-video",domProps:{innerHTML:t._s(t.youTubeIdOrVimeoId)}})]):t._e()])}),[],!1,null,"5bdb71f3",null).exports,Ti=(0,N.Z)({name:"PreviewBlock",props:["popupMsgOpts"],data(){return{}},computed:{isFlipPro:function(){return this.$store.getters.isFlipPro},titleStyle:function(){var t={textAlign:this.popupMsgOpts.titleProps.textAlign,fontSize:this.popupMsgOpts.titleProps.fontSize+"px",color:this.popupMsgOpts.titleProps.fontColor,fontFamily:this.popupMsgOpts.titleProps.fontFamily};return~this.popupMsgOpts.titleProps.elements.indexOf("bold")&&(t.fontWeight="bold"),~this.popupMsgOpts.titleProps.elements.indexOf("italic")&&(t.fontStyle="italic"),~this.popupMsgOpts.titleProps.elements.indexOf("underline")&&(t.textDecoration="underline"),t},contentStyle:function(){var t={textAlign:this.popupMsgOpts.contentProps.textAlign,fontSize:this.popupMsgOpts.contentProps.fontSize+"px",color:this.popupMsgOpts.contentProps.fontColor,fontFamily:this.popupMsgOpts.contentProps.fontFamily,lineHeight:this.popupMsgOpts.contentProps.lineHeight,letterSpacing:this.popupMsgOpts.contentProps.letterSpacing+"px"};return~this.popupMsgOpts.contentProps.elements.indexOf("bold")&&(t.fontWeight="bold"),~this.popupMsgOpts.contentProps.elements.indexOf("italic")&&(t.fontStyle="italic"),~this.popupMsgOpts.contentProps.elements.indexOf("underline")&&(t.textDecoration="underline"),t}},methods:{clickConfirm:function(){this.popupMsgOpts.btnOpts.isClickClose&&this.$emit("closePanel","confirm"),this.popupMsgOpts.btnOpts.btnLink&&window.open(this.popupMsgOpts.btnOpts.btnLinkHead+this.popupMsgOpts.btnOpts.btnLink)},clickColse:function(){this.$emit("closePanel","close")}},components:{}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"t-previewBlock"},[e("div",{staticClass:"top-title",style:{background:t.popupMsgOpts.titleProps.bgColor}},[e("span",{staticClass:"title",style:t.titleStyle,attrs:{title:t.popupMsgOpts.titleProps.content}},[t._v(t._s(t.popupMsgOpts.titleProps.content))]),e("div",{staticClass:"close-btn",on:{click:t.clickColse}},[e("div",{staticClass:"close-icon"})])]),e("div",{staticClass:"content-block",style:{background:t.popupMsgOpts.contentProps.bgColor}},[e("div",{staticClass:"content-top",class:{addBtn:t.popupMsgOpts.btnOpts.isAddBtn}},[1===t.popupMsgOpts.imageOpts.imgPosition?[e("div",{staticClass:"contnet scrollbarStyle",style:t.contentStyle},[t._v(t._s(t.popupMsgOpts.contentProps.content))]),t.popupMsgOpts.imageOpts.imageUrl&&t.popupMsgOpts.imageOpts.isAddImage?e("img",{staticClass:"img img-right",attrs:{src:t.popupMsgOpts.imageOpts.imageUrl}}):t._e()]:[t.popupMsgOpts.imageOpts.imageUrl&&t.popupMsgOpts.imageOpts.isAddImage?e("img",{staticClass:"img img-left",attrs:{src:t.popupMsgOpts.imageOpts.imageUrl}}):t._e(),e("div",{staticClass:"contnet scrollbarStyle",style:t.contentStyle},[t._v(t._s(t.popupMsgOpts.contentProps.content))])]],2),t.popupMsgOpts.btnOpts.isAddBtn?e("div",{staticClass:"confirm-btn"},[e("div",{staticClass:"this-btn",style:{background:t.popupMsgOpts.btnOpts.bgColor,color:t.popupMsgOpts.btnOpts.fontColor},on:{click:t.clickConfirm}},[t._v(" "+t._s(t.popupMsgOpts.btnOpts.btnText||(t.isFlipPro?"Confirm":"确认"))+" ")])]):t._e()])])}),[],!1,null,"5dba07fb",null).exports,Li=(i(6470),(0,N.Z)({name:"AlertMsg",data(){return{msg:"您已经点过赞了"}},created(){setTimeout((()=>{this.isShowAlertMsg=!1}),3e3)},computed:{isShowAlertMsg:{get:function(){return this.$store.state.isShowAlertMsg},set:function(t){this.$store.state.isShowAlertMsg=t}}}},(function(){return(0,this._self._c)("div",{staticClass:"alert-msg-box warning"},[this._v(" "+this._s(this.msg)+" ")])}),[],!1,null,"8ff1e80e",null).exports),Ei=(0,N.Z)({name:"ParseAddWechat",components:{Lightbox:An},props:["index","curIframe"],data(){return{currentPopImgScale:1,currentPopImageIndex:0,isTitleOneline:!1,isDescOneline:!1}},mounted(){setTimeout((()=>{this.$refs.addWechatTitle&&this.$refs.addWechatTitle.clientHeight<25&&(this.isTitleOneline=!0),this.$refs.addWechatDesc&&this.$refs.addWechatDesc.clientHeight<25&&(this.isDescOneline=!0)}),10)},computed:{isShowAddWechat:{get:function(){return this.$store.state.isShowAddWechat},set:function(t){this.$store.state.isShowAddWechat=t}},isPhone:function(){return window.isPhone&&window.isPhone()},isPopupImgSvg:function(){return!!(this.isShowPopupImg&&this.curIframe&&this.curIframe.imgList&&this.curIframe.imgList.length)&&-1{t.isLoading=!1,t.naturalWidth=e.naturalWidth,t.naturalHeight=e.naturalHeight,this.isPhone||(this.isLoadingPop=!1)}}}},(function(){var t=this,e=t._self._c;return t.isShowAddWechat&&t.curIframe&&t.curIframe.imgList&&t.curIframe.imgList.length?e("Lightbox",{attrs:{isShow:t.isShowAddWechat,isHasPadding:!0,hideTitleLine:!0,showClose:!1,hasNoBorderRadius:!0,title:" ",isShowBottomPadding:!0,hiddenOverFlow:!0,isAutoPopImg:!1,isHiddenHeaderTitle:!0,isTriggleBox:!0,isShowPopClose:!0,customWidth:312},on:{"update:isShow":function(e){t.isShowAddWechat=e},"update:is-show":function(e){t.isShowAddWechat=e}}},[e("div",{staticClass:"window-iframe isPC ParseAddWechat"},[t.curIframe.logoObj.fileName||t.curIframe.imgList[t.currentPopImageIndex].title||t.curIframe.imgList[t.currentPopImageIndex].desc?e("div",{staticClass:"head",class:{hasLogo:t.curIframe.logoObj.fileName}},[t.curIframe.logoObj.fileName?e("div",{staticClass:"logo",style:t.getLogoStyle}):t._e(),e("div",{staticClass:"msg",class:{"no-logo":!t.curIframe.logoObj.fileName}},[t.curIframe.imgList[t.currentPopImageIndex].title?e("div",{ref:"addWechatTitle",staticClass:"title",class:{"no-desc":!t.curIframe.imgList[t.currentPopImageIndex].desc&&t.isTitleOneline}},[t._v(" "+t._s(t.curIframe.imgList[t.currentPopImageIndex].title)+" ")]):t._e(),t.curIframe.imgList[t.currentPopImageIndex].desc?e("div",{ref:"addWechatDesc",staticClass:"desc",class:{"no-title":!t.curIframe.imgList[t.currentPopImageIndex].title&&t.isDescOneline}},[t._v(" "+t._s(t.curIframe.imgList[t.currentPopImageIndex].desc)+" ")]):t._e()])]):t._e(),t._l(t.curIframe.imgList,(function(i,s){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg",class:{noPaddingBottom:!i.desc.trim()}},[e("div",{staticClass:"popupImg-outer"},[e("div",{staticClass:"border-corner left-top"}),e("div",{staticClass:"border-corner right-top"}),e("div",{staticClass:"border-corner left-bottom"}),e("div",{staticClass:"border-corner right-bottom"}),e("div",{staticClass:"popupImg-scale"},[e("img",{staticClass:"popupImg-img",style:{maxHeight:t.getMaxHeight()+"px",height:t.isPopupImgSvg?t.getMaxHeight()+"px":""},attrs:{src:i.url},on:{load:function(e){return t.loadImg(i)}}})])]),e("div",{staticClass:"alert"},[e("span",[t._v("扫描二维码添加微信")])])])}))],2)]):t._e()}),[],!1,null,"2e977c74",null).exports,(0,N.Z)({name:"popapp",data:function(){return{pageIndex:"",isPopWindow:!1,currentPopImageIndex:0,currentPopImgScale:1,isFirstEnterPopImg:!0,isExpandedPopDesc:!1,isPopDescOverHeight:!1,isLoadingPop:!0,isLoadedText:!1,textTimer:null,isHidePopTitleAndDesc:!1,isShowFirstEnterAlert:!0,isShowOnOuter:!1,isShowIframe:!1,isShowPopupImg:!1,isChangePopImg:!1,isMouseDown:!1,scaleOriginX:"",scaleOriginY:"",popupImgTop:0,popupImgLeft:0,isTouchStart:!1,popupImgTouchStore:{pageX:"",pageY:"",pageX2:"",pageY2:"",originX:"",originY:"",moveable:!1,originScale:"",scale:"",touchStartX:"",touchStartY:""},preTouchPosition:{x:0,y:0},curIframe:{},popupMsgCurIframe:{},bookDefaultUrl:"",bookDefaultTitle:"",startPos:"",videoUrl:"",videoType:"",currentPlayer:"",pagesAutoPlayList:{},autoPlayTimer:null,isPhoneHasTouched:!1,videoPlayParams:{}}},mounted:async function(){Mn.initAudioList();let t=this.$root.pageIndex;this.isPopWindow=this.$root.isPop;var e=navigator.userAgent.toLowerCase();e.match(/i(?:pod|phone|pad)|android|wpdesktop|blackberry|mobile|windows phone/gi)&&this.$store.commit("NAVIGATOR_INFO",{isMobile:!0}),e.match(/macintosh|pad|ipad/gi)&&this.$store.commit("NAVIGATOR_INFO",{isPad:!0}),e.match(/iphone|ipod|ipad|ios/g)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!0}),e.match(/macintosh|mac os x/gi)&&!e.match(/mobile/gi)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!1}),window.localStorage&&null!==window.localStorage.getItem("isShowFirstEnterAlert")&&(this.isShowFirstEnterAlert=window.localStorage.getItem("isShowFirstEnterAlert")),this.$nextTick((()=>{P.Q.$emit(P.Y.PAGE_POP_FINISHED,t)})),this.firstTouchBind=this.firstToutch.bind(this),document.addEventListener("touchstart",this.firstTouchBind,!1),document.addEventListener("mousedown",this.firstTouchBind,!1)},beforeDestroy:function(){},computed:{isShowAddWechat:{get:function(){return this.$store.state.isShowAddWechat},set:function(t){this.$store.state.isShowAddWechat=t}},isArticle:function(){return i.g.templeteName&&i.g.templeteName.match(/article/)},isPopupImgSvg:function(){return!!(this.isShowPopupImg&&this.curIframe&&this.curIframe.imgList&&this.curIframe.imgList.length)&&-1":4===this.curIframe.videoInfo.videoType?"":""},popupVideoIsAutoPlay:function(){return this.curIframe.videoInfo.isAutoPlay},popupVideoIsLoop:function(){return this.curIframe.videoInfo.isLoop},vimeoLoop:function(){return this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"&loop=1":!this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"?loop=1":""},isHasPopupVideoLink:function(){return!!(this.curIframe.videoInfo.link||this.curIframe.videoInfo.youTubeId||this.curIframe.videoInfo.vimeoId||this.curIframe.videoInfo.generalCode||this.curIframe.videoInfo.videoName)},isPauseBgSoundWhenPlay:function(){return this.curIframe.videoInfo.isPauseBgSoundWhenPlay},isShowAlertMsg:function(){return this.$store.state.isShowAlertMsg}},watch:{currentPopImageIndex:function(){this.currentPopImgScale=1,this.popupImgTop=0,this.popupImgLeft=0}},methods:{firstToutch:function(){this.isPhoneHasTouched=!0,this.sliderEnterPage(),document.removeEventListener("touchstart",this.firstTouchBind,!1),document.removeEventListener("mousedown",this.firstTouchBind,!1),this.firstTouchBind=null},initAutoplayList:function(t,e){this.pagesAutoPlayList[e]||(this.pagesAutoPlayList[e]=t)},sliderEnterPage:function(){if(P.Q.$emit("SLIDER_ENTER_PAGE"),this.isPhoneHasTouched)if(this.currentPlayer)this.playAuto();else{this.clearAutoTimer();var t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages();if(this.pagesAutoPlayList[t]&&this.pagesAutoPlayList[t].length)this.currentPlayer=this.pagesAutoPlayList[t][0],this.playAuto();else for(let t=0;t{this.playAuto()}),200))},clearAutoTimer:function(){this.playTimer&&(clearTimeout(this.playTimer),this.playTimer=null)},sliderLeavePage:function(t){P.Q.$emit("SLIDER_LEAVE_PAGE"),this.clearAutoTimer(),this.currentPlayer&&(this.currentPlayer=""),this.$refs.playAudio&&!this.$refs.playAudio.paused&&this.$refs.playAudio.pause()},closeLightbox:function(){this.isShowPopupVideo=!1},initPopVideo:function(t,e,i){t&&e&&(this.videoUrl=t,this.videoType=e,this.isShowPopVideo=!0,this.videoPlayParams=i)},getMaxHeight:function(){let t=.9*window.innerHeight-50;return this.curIframe.imgList[this.currentPopImageIndex].title&&(t-=40),t},isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},isIphone:function(){return!!(window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad())},popArticleIframe:function(){this.isArticle&&(this.bookDefaultUrl=window.location.href,this.bookDefaultTitle=window.document.title,window.document.title=this.curIframe.title||window.document.title,window.set_weixin_share)&&window.set_weixin_share(document.title,document.desc,this.curIframe.urlHead+this.curIframe.url,window.imgUrl)},closeArticleIframe:function(){this.isArticle&&(window.document.title=this.bookDefaultTitle,window.set_weixin_share)&&window.set_weixin_share(document.title,document.desc,this.bookDefaultUrl,window.imgUrl)},popWindow:function(t,e,i){this.isPopWindow&&("video"===e||"vimeo"===e||"youtube"===e||"outerVideo"===e?this.initPopVideo(t,e,i):(this.curIframe=JSON.parse(JSON.stringify(t)),"popupImg"===e&&(this.curIframe.imgList.forEach(((t,e)=>{this.curIframe.imgList[e].isLoading=!0})),this.isPhone()&&(this.isHidePopTitleAndDesc=!1,this.isPopDescOverHeight=!1,this.loadText()),this.currentPopImgScale=1,this.currentPopImageIndex=0,this.isShowPopupImg=!0),"addWechat"===e&&(this.curIframe.imgList.forEach(((t,e)=>{this.curIframe.imgList[e].isLoading=!0})),this.isShowAddWechat=!0),"iframe"===e&&(this.isShowIframe=!0,this.popArticleIframe()),"popupVideo"===e&&(this.curIframe.videoInfo.isPauseBgSoundWhenPlay&&!this.isPhone()&&window.bgSound&&window.setTimeout((()=>{var t;this.$refs.popupVideo&&((t=this.$refs.popupVideo).addEventListener("play",(()=>{window.bgSound.pause()})),t.addEventListener("pause",(()=>{window.bgSound.play()})))})),this.isHasPopupVideoLink)&&(this.isShowPopupVideo=!0,this.safariAutoPlayVideo()),"popupMsg"!==e||this.isShowPopupMsg||(this.popupMsgCurIframe=JSON.parse(JSON.stringify(t)),this.isShowPopupMsg=!0)))},loadText:function(){var t;this.isHidePopTitleAndDesc||(void 0===this.curIframe.imgList[this.currentPopImageIndex]&&(this.currentPopImageIndex=0),this.curIframe.imgList[this.currentPopImageIndex].desc.trim()?(t=document.querySelector("#popupImg-desc"+this.currentPopImageIndex),this.isLoadingPop=!0,this.isLoadedText=!1,t?(clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(t)):this.textTimer=setTimeout((()=>{this.loadText()}),100)):(this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0))},waitTextLoaded:function(t){this.isPopDescOverHeight?(this.isLoadingPop=!1,this.isLoadedText=!0):0{this.waitTextLoaded(t)}),100)},showOrHidePopMsg:function(){this.isHidePopTitleAndDesc=!this.isHidePopTitleAndDesc,this.onlyLoadText()},onlyLoadText:function(){var t;this.isLoadedText||(this.curIframe.imgList[this.currentPopImageIndex].desc.trim()?(this.isLoadedText=!1,(t=document.querySelector("#popupImg-desc"+this.currentPopImageIndex))?(clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(t)):this.textTimer=setTimeout((()=>{this.onlyLoadText()}),100)):(this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0))},exPandPopDesc:function(t){this.isExpandedPopDesc=t},openPopImgLink:function(t){t.link&&window.open("https://"+t.link)},closeFirstAlert:function(){this.isShowFirstEnterAlert&&(this.isShowFirstEnterAlert=!1,window.localStorage)&&window.localStorage.setItem("isShowFirstEnterAlert",!1)},popImgTouchStart:function(t){1{t.isLoading=!1,t.naturalWidth=e.naturalWidth,t.naturalHeight=e.naturalHeight,this.isPhone()||(this.isLoadingPop=!1)}},getImgUrl:function(t){return t.url},updatePopupImgIndex:function(t){this.currentPopImageIndex+=t,this.currentPopImageIndex<0&&(this.currentPopImageIndex=this.curIframe.imgList.length-1),this.currentPopImageIndex>=this.curIframe.imgList.length&&(this.currentPopImageIndex=0),this.isPhone()&&(this.isPopDescOverHeight=!1,this.isLoadedText=!1,this.loadText())},popupImgScale:function(t){0{this.loadText()}),10))},enterPage:function(){var t,e;window.BookInfo&&(t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages(),P.Q.$emit("ENTER_PAGE"+t,e))},leavePage:function(){var t,e;window.BookInfo&&(t=window.BookInfo.getCurrentPageIndex(),e=window.BookInfo.getCurrentPages(),P.Q.$emit("LEAVE_PAGE"+t,e))},safariAutoPlayVideo:function(){if(/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)){let t=window.setInterval((()=>{this.$refs.popupVideo&&(this.$refs.popupVideo.play(),this.$refs.popupVideo.paused||window.clearInterval(t))}),300)}}},components:{PreviewBlock:Ti,Lightbox:An,PhoneSlideBox:Bn,PhoneVideoBox:H,PhonePopupVideoBox:Gt,AlertMsg:Li,ParseAddWechat:Ei}},(function(){var t=this,e=t._self._c;return e("div",{ref:"popapp",staticClass:"popapp"},[e("portal-target",{key:"lightBox",attrs:{name:"Lightbox"}}),e("portal-target",{key:"PhoneSlideBox",attrs:{name:"PhoneSlideBox"}}),t.isShowIframe?e("Lightbox",{key:"phone-iframe-lightbox",attrs:{isShow:t.isShowIframe,isShowBottomPadding:!0,title:t.curIframe.title||" ",hasNoBorderRadius:!t.isPhone(),isPhone:t.isPhone(),isHiddenHeaderTitle:t.isArticle&&t.isPhone(),isArticle:t.isArticle,showClose:!(t.isArticle&&t.isPhone()),hasPadding:!(t.isArticle&&t.isPhone()),isNoPaddingTop:t.isArticle&&t.isPhone(),isAutoPopSize:!0,isTriggleBox:!0,closeCallBack:t.isArticle?t.closeArticleIframe:""},on:{"update:isShow":function(e){t.isShowIframe=e},"update:is-show":function(e){t.isShowIframe=e}}},[e("div",{staticClass:"window-iframe"},[e("iframe",{attrs:{src:t.curIframe.urlHead+t.curIframe.url,frameborder:"0",width:"100%",height:"100%"}})])]):t._e(),t.isShowPopupMsg&&t.popupMsgCurIframe&&Object.keys(t.popupMsgCurIframe.windowWH).length?e("Lightbox",{attrs:{isShow:t.isShowPopupMsg,isShowBottomPadding:!1,customWidth:t.popupMsgCurIframe.windowWH.maxW,customHeight:t.popupMsgCurIframe.windowWH.maxH,hasNoBorderRadius:!1,isAutoPopSize:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,lightboxContentBackground:"unset"},on:{"update:isShow":function(e){t.isShowPopupMsg=e},"update:is-show":function(e){t.isShowPopupMsg=e}}},[e("PreviewBlock",{attrs:{popupMsgOpts:t.popupMsgCurIframe},on:{closePanel:function(e){t.isShowPopupMsg=!1}}})],1):t._e(),!t.isPhone()&&t.isShowPopupVideo&&t.curIframe&&Object.keys(t.curIframe).length?e("Lightbox",{attrs:{isShow:t.isShowPopupVideo,isHasPadding:!0,customWidth:t.curIframe.videoInfo.width,customHeight:t.curIframe.videoInfo.height,title:t.curIframe.videoInfo.title||" ",hasNoBorderRadius:!1,isAutoPopSize:!0,isShowBottomPadding:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,isShowPopClose:!0},on:{"update:isShow":function(e){t.isShowPopupVideo=e},"update:is-show":function(e){t.isShowPopupVideo=e}}},[e("div",{staticClass:"window-iframe popup-video"},[e("div",{staticClass:"title"},[t._v(" "+t._s(t.curIframe.videoInfo.title)+" ")]),0===t.curIframe.videoInfo.videoType?e("div",{staticClass:"popupVideo-iframe",domProps:{innerHTML:t._s(t.curIframe.videoInfo.generalCode)}}):t._e(),1===t.curIframe.videoInfo.videoType||2===t.curIframe.videoInfo.videoType?e("video",{ref:"popupVideo",attrs:{src:t.popupVideoSrc,width:"100%",height:"100%",controls:"",preload:"metadata",controlslist:"nodownload","webkit-playsinline":"true",playsinline:"true",autoplay:t.popupVideoIsAutoPlay,loop:t.popupVideoIsLoop}}):t._e(),3===t.curIframe.videoInfo.videoType||4===t.curIframe.videoInfo.videoType?e("div",{staticClass:"popupVideo-iframe",domProps:{innerHTML:t._s(t.outerVideoHtml)}}):t._e()])]):t._e(),!t.isPhone()&&t.isShowPopupImg&&t.curIframe&&t.curIframe.imgList&&t.curIframe.imgList.length?e("Lightbox",{key:"pc-iframe-lightbox",attrs:{isShow:t.isShowPopupImg,isHasPadding:!0,hideTitleLine:!0,showClose:!1,hasNoBorderRadius:!0,title:t.curIframe.imgList[t.currentPopImageIndex].title||" ",isShowBottomPadding:!0,hiddenOverFlow:!0,isAutoPopImg:!0,isHiddenHeaderTitle:!t.curIframe.imgList[t.currentPopImageIndex].title,isTriggleBox:!0,isShowPopClose:!0},on:{"update:isShow":function(e){t.isShowPopupImg=e},"update:is-show":function(e){t.isShowPopupImg=e}}},[e("div",{staticClass:"window-iframe isPC"},[1{o.default.use(t)})),i(3925));function Ao(t,e){return""===e?[]:(t=t.map(((t,i)=>{var s;t=(0,Mo.Z)((s=e,t.items.map((t=>function t(e,i){if("text"===e.type)return Eo(e.textStr,i);if("group"===e.type){const s=[];return e.items.forEach((e=>{s.push(...t(e,i))})),s}return[]}(t,s)))));return t.forEach((t=>{t.search_page=i+1})),[t]})),(0,Mo.Z)(t))}function Eo(t,e){var i=document.createElement("div");i.innerHTML=t,t=i.innerText,i=new RegExp(e,"ig"),t=Array.from([...t.matchAll(i)]);return t?t.map((t=>new Wo(e,t.input,t.index))):[]}class Wo{constructor(t,e,i=-1,s=-1){(0,k.Z)(this,"searchText",""),(0,k.Z)(this,"search_page",-1),(0,k.Z)(this,"search_text",""),(0,k.Z)(this,"search_index",-1),this.searchText=t,this.search_text=e,this.search_page=s,this.search_index=i}}function _o(t){return{hidePreviewImage:function(){t.$children.forEach((function(t){t.hidePreviewImage()}))},play:function(e){t.$children.forEach((function(t){t.isPlayingAnime=!0,t.play(e)}))},pause:function(e){t.$children.forEach((function(t){t.isPlayingAnime=!1,t.pause(e)}))},replay:function(){t.$children.forEach((function(t){t.isPlayingAnime=!0,t.replay()}))},getAutoPlayArray:function(){let e=[];return t.$children.forEach((function(t){e=t.getAutoPlayArray()})),e},seek:function(e){t.$children.forEach((function(t){t.seek(e),t.isPlayingAnime=!1,t.pause()}))},reset:function(){t.$children.forEach((function(t){t.seek(0),t.isPlayingAnime=!1,t.pause(),t.clearActionAnime()}))},resize:function(e,i){t.$children.forEach((function(t){t.resize({width:parseFloat(e),height:parseFloat(i)})}))},clear:function(){t.$children.forEach((function(t){t.clearTimeline()}))},popWindow:function(e,i,s){t.$children[0].popWindow(e,i,s)},initAutoplayList:function(e,i){t.$children[0].initAutoplayList(e,i)},sliderEnterPage:function(e,i,s){t.$children[0].sliderEnterPage(e,i,s)},sliderLeavePage:function(e){t.$children[0].sliderLeavePage(e)},destoryed:function(){t.$children.forEach((function(t){t.$destroy()})),t.$destroy(),t=null},startFlip:function(){t.$children[0].startFlip()},endFlip:function(){t.$children[0].endFlip()},enterPage:function(){t.$children[0].enterPage()},leavePage:function(){t.$children[0].leavePage()},searchText:function(e){return t.$children[0].searchText(e),t.$children[0].getSearchTextResults()},getSearchTextResults:function(){return t.$children[0].getSearchTextResults()},clearHighLight:function(){t.$children[0].clearHighLight()}}}o.default.config.productionTip=!1,o.default.prototype.$http=a.Z,o.default.use(_i()),ot.state.folder,void 0!==window.readerConfig&&(Ri=window.readerConfig.pageConfig,ot.commit("SAVE_PAGE_CONFIG",{pageConfig:Ri})),window.setVueDom=function({dom:t,scaleDom:e,pageIndex:i,width:s,height:n,pageStr:r,lazy:a=!1}){return new Promise((l=>{const h=Number(i);ot.commit("SET_CANVAS",{width:s,height:n,needResetPage:!1});var d=t;const c=new o.default({data:{pageStr:r,scaleDom:e,lazy:a,pageIndex:h},store:ot,render:t=>t(Po)}).$mount(d);P.Q.$on("PAGE_FINISHED_"+h,(t=>{l(_o(c,h)),P.Q.$off("PAGE_FINISHED_"+h)}))}))},window.setVuePopDom=function({dom:t,scaleDom:e,pageIndex:i,width:s,height:n,pageStr:r}){return new Promise((a=>{const l=Number(i);ot.commit("SET_CANVAS",{width:s,height:n,needResetPage:!1});var h=t;const d=new o.default({data:{pageStr:r,scaleDom:e,pageIndex:l,isPop:!0},store:ot,render:t=>t(Lo)}).$mount(h);P.Q.$on(P.Y.PAGE_POP_FINISHED,(()=>{a(_o(d,l)),P.Q.$off(P.Y.PAGE_POP_FINISHED)}))}))},window._matchEditorText=function(t){return Ao(window.readerConfig&&window.readerConfig.pages?window.readerConfig.pages:[],t)}},9951:function(){}},s={};function n(t){var e=s[t];return void 0!==e||(e=s[t]={id:t,loaded:!1,exports:{}},i[t].call(e.exports,e,e.exports,n),e.loaded=!0),e.exports}function o(t,i){var s,o,r,a=i[0],l=i[1],h=i[2],d=0;if(a.some((function(t){return 0!==e[t]}))){for(s in l)n.o(l,s)&&(n.m[s]=l[s]);h&&(r=h(n))}for(t&&t(i);do;a--)t[a]=t[a-1];t[a]=[i,s,o]},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),n.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e={143:0},n.O.j=function(t){return 0===e[t]},(r=self.webpackChunkyzreader=self.webpackChunkyzreader||[]).forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r));var r=n.O(void 0,[998],(function(){return n(9238)}));n.O(r)}();