!function(){function A(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,r)}return t}function e(e){for(var r=1;r{r=A.r,s=A.w,o=A.c,B=A.b,i=A.d,a=A.x,c=A.aI,l=A.aJ,g=A.Y,u=A.X,Q=A.g,w=A.v,C=A.a,U=A.I,d=A.Z,h=A.aK,F=A.aL,f=A.W,p=A.k,y=A.y,H=A.aC,m=A.av,E=A.f,I=A.V,v=A.h,K=A.ad,b=A.F,L=A.m,D=A.aa,x=A.n,S=A.t,M=A.a3,k=A.z,O=A.aM,T=A.aN,V=A.ab,G=A.aO,R=A.a7,P=A.A,N=A.C,_=A.U,J=A.M,X=A.e,W=A.a5,Y=A.al,Z=A.L,q=A.a0,j=A.aP,z=A.aQ,$=A.E,AA=A.am,eA=A.D},A=>{tA=A.M},A=>{rA=A.i,nA=A.b,sA=A.c},A=>{oA=A.g,BA=A.s,iA=A.a,aA=A.b},A=>{cA=A.T},null,null],execute:function(){var lA=document.createElement("style");lA.textContent="._back_1y3kp_1{position:fixed;left:.4rem;top:.45333rem;width:.82667rem;height:.82667rem}._back_1y3kp_1>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._back_1y3kp_1:active{opacity:.8}._musicCFixed_1y3kp_16{position:fixed;top:.45333rem;left:1.46667rem}._musicCFixed_1y3kp_16 ._musicName_1y3kp_21{font-size:.4rem;font-weight:600;color:#fff;line-height:.88rem}._popoverMusic_1y3kp_27{width:4.26667rem;--van-popover-action-width: 100%}._popoverMusic_1y3kp_27 .van-popover__content{max-height:70vh;overflow-x:hidden;overflow-y:auto}._container_1y3kp_36{background:url("+new URL("icon_bg-f94bd665.png",t.meta.url).href+") no-repeat center center / cover;padding:1.68rem .48rem .48rem .98667rem;height:100vh;overflow:hidden}._content_1y3kp_42{display:flex;height:calc(100vh - 2.16rem);overflow:hidden}._opacityBg_1y3kp_47{background:linear-gradient(134deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,.34) 100%);border-radius:.48rem;border:.05333rem solid #fff}._leftContent_1y3kp_52{position:relative;display:flex;width:37%}._leftBg_1y3kp_57{position:absolute;left:0;top:0;width:2.53333rem;height:100%;background:linear-gradient(48deg,#43b2ff 0%,#159af7 100%);border:.05333rem solid #fff;border-radius:.48rem .24rem 0 .48rem;z-index:1}._leftBg2_1y3kp_68{position:absolute;left:0;top:0;width:calc(100% - .32rem);height:100%;background:linear-gradient(134deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,.34) 100%);border-radius:.48rem;border:.05333rem solid #fff}._types_1y3kp_78{position:relative;top:.05333rem;width:2.53333rem;height:calc(100% - .10667rem);padding:.10667rem 0;overflow-x:hidden;overflow-y:auto;border-radius:.48rem;z-index:1;flex-shrink:0}._types_1y3kp_78::-webkit-scrollbar{width:0;display:none}._types_1y3kp_78 ._type_1y3kp_78{position:relative;padding:.10667rem .32rem}._types_1y3kp_78 ._type_1y3kp_78._typeActive_1y3kp_98 ._typeImg_1y3kp_98{padding:.16rem;border-color:#99ffd0;animation:_scaleBtn_1y3kp_1 1s ease-in-out}._types_1y3kp_78 ._typeImg_1y3kp_98{border:.05333rem solid transparent;border-radius:.16rem;height:2.53333rem;transition:.3s}._types_1y3kp_78 ._typeImg_1y3kp_98:active{transform:scale(.8)}._types_1y3kp_78 ._typeIcon_1y3kp_112{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;opacity:0;transition:opacity .3s}._types_1y3kp_78 ._typeIcon_1y3kp_112[loaded=true]{opacity:1}._center_1y3kp_123{flex:1;position:relative;padding-right:.32rem;height:100%;overflow:hidden}._center_1y3kp_123 ._centerSearch_1y3kp_130{padding:.16rem .24rem}._center_1y3kp_123 #coai-0 .van-search{width:100%;z-index:1;padding:0}._center_1y3kp_123 #coai-0 .van-field__control::-webkit-input-placeholder{font-size:.32rem}._musicContent_1y3kp_141{width:100%;height:calc(100% - var(--van-search-input-height) - .32rem - .05333rem);padding:.16rem .32rem .32rem;overflow-x:hidden;overflow-y:auto}._musicContent_1y3kp_141::-webkit-scrollbar{width:0;display:none}._searchNotice_1y3kp_152{position:fixed;padding:0;pointer-events:none}._searchNotice_1y3kp_152 .van-notice-bar{padding:0;height:100%}._searchNoticeShow_1y3kp_161 .van-field__control{opacity:0}._musicItem_1y3kp_164{position:relative;display:flex;align-items:center;border:.08rem solid #fff;border-radius:.24rem;margin-bottom:.16rem;background-color:#fff;padding:.10667rem;transition:all .3s;overflow:hidden;--van-notice-bar-text-color: #333}._musicItem_1y3kp_164._disableNotic_1y3kp_177 .van-notice-bar__content{transition-duration:0s!important;transform:none!important}._musicItem_1y3kp_164._musicActive_1y3kp_181{border-width:.08rem;background:linear-gradient(180deg,#ffffff 0%,#bfe1ff 100%);transform:scale(1.05);box-shadow:0 .05333rem .10667rem #499fe4;--van-notice-bar-text-color: #499fe4}._musicItem_1y3kp_164._musicActive_1y3kp_181 .van-notice-bar__content{transition-property:transform}._musicItem_1y3kp_164 ._musicAvtor_1y3kp_191{display:block;width:7.2vw;height:7.2vw;border-radius:.26667rem;-o-object-fit:cover;object-fit:cover;flex-shrink:0;margin-right:1vw;opacity:0;transition:opacity .3s}._musicItem_1y3kp_164 ._musicAvtor_1y3kp_191[loaded=true]{opacity:1}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205{flex:1}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205 ._musicName_1y3kp_21{font-weight:600;color:#333;margin-bottom:.08rem}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205 ._noticeBar_1y3kp_213{padding:0;height:.74667rem}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205 ._musicDes_1y3kp_217{width:100%;display:flex;align-items:center}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205 ._musicFavitor_1y3kp_222{border:.02667rem solid #ffc5c5;color:#ff6a6a;padding:.02667rem .08rem .02667rem .37333rem;border-radius:.10667rem;background-color:#fff8f7;background-image:url("+new URL("icon_hot-954f4a46.svg",t.meta.url).href+");background-repeat:no-repeat;background-size:auto 70%;background-position:.05333rem center;margin-right:.10667rem}._musicItem_1y3kp_164 ._musicInfo_1y3kp_205 ._musicAuthor_1y3kp_234{flex:1;font-size:.32rem;font-weight:400;color:#777;line-height:.32rem;max-width:9vw}._musicItem_1y3kp_164 ._musicIcon_1y3kp_242{flex-shrink:0;margin-right:.10667rem}._right_1y3kp_246{position:relative;background:#fff;overflow:hidden;border:none;width:63%;border-radius:.48rem}._right-musicName_1y3kp_254{font-size:.4rem;font-weight:500;color:#131415;line-height:.53333rem;text-align:center;padding:.32rem 0}._staff_1y3kp_262{width:100%}._rightBox_1y3kp_265{width:100%;height:100%;border-radius:.48rem;overflow:hidden}._rightBtns_1y3kp_271{position:absolute;bottom:0;left:0;right:0;padding:0 .48rem .48rem;display:flex;align-items:flex-end;height:2.08rem;background:#fff;background-image:linear-gradient(180deg,rgba(255,255,255,0) 0%,#c1eeff 100%);border-radius:0 0 .48rem .48rem}._rightBtns_1y3kp_271>img{margin:0 .10667rem;height:.8rem;transition:.3s}._rightBtns_1y3kp_271>img:active{transform:scale(.6)}._rightBtns_1y3kp_271 .van-popover__wrapper{display:flex;align-items:center;margin-right:.32rem}._rightBtns_1y3kp_271 ._rightBtnsRight_1y3kp_297{transition:.3s;margin:0 .10667rem;padding:.13333rem .26667rem 0;margin-left:auto}._rightBtns_1y3kp_271 ._rightBtnsRight_1y3kp_297 img{height:.8rem;animation:_scaleBtn_1y3kp_1 1s ease-in-out infinite}@keyframes _scaleBtn_1y3kp_1{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes _displayIcon_1y3kp_1{to{opacity:1}}._loadingWrap_1y3kp_323{display:flex;justify-content:center;min-height:2.13333rem}._empty_1y3kp_328 .van-empty__image{width:100%;height:initial}._empty_1y3kp_328 .van-empty__description{color:#fff;padding:0}\n",document.head.appendChild(lA);const[gA,uA]=o("notice-bar"),QA={text:String,mode:String,color:String,delay:B(1),speed:B(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var wA=i({name:gA,props:QA,emits:["close","replay"],setup(A,{emit:e,slots:t}){let n,o=0,B=0;const i=r(),p=r(),y=a({show:!0,offset:0,duration:0}),H=t=>{"closeable"===A.mode&&(y.show=!1,e("close",t))},m=()=>{if(t["right-icon"])return t["right-icon"]();const e="closeable"===A.mode?"cross":"link"===A.mode?"arrow":void 0;return e?C(U,{name:e,class:uA("right-icon"),onClick:H},null):void 0},E=()=>{y.offset=o,y.duration=0,F((()=>{h((()=>{y.offset=-B,y.duration=(B+o)/+A.speed,e("replay")}))}))},I=()=>{const e=!1===A.scrollable&&!A.wrapable,r={transform:y.offset?`translateX(${y.offset}px)`:"",transitionDuration:`${y.duration}s`};return C("div",{ref:i,role:"marquee",class:uA("wrap")},[C("div",{ref:p,style:r,class:[uA("content"),{"van-ellipsis":e}],onTransitionend:E},[t.default?t.default():A.text])])},v=()=>{const{delay:e,speed:t,scrollable:r}=A,s=f(e)?1e3*+e:0;o=0,B=0,y.offset=0,y.duration=0,clearTimeout(n),n=setTimeout((()=>{if(!i.value||!p.value||!1===r)return;const A=d(i).width,e=d(p).width;(r||e>A)&&h((()=>{o=A,B=e,y.offset=-B,y.duration=B/+t}))}),s)};return c(v),l(v),g("pageshow",v),u({reset:v}),s((()=>[A.text,A.scrollable]),v),()=>{const{color:e,wrapable:r,background:n}=A;return Q(C("div",{role:"alert",class:uA({wrapable:r}),style:{color:e,background:n}},[t["left-icon"]?t["left-icon"]():A.leftIcon?C(U,{class:uA("left-icon"),name:A.leftIcon},null):void 0,I(),m()]),[[w,y.show]])}}});const CA=p(wA);function UA(A){if(null==A)return window;if("[object Window]"!==A.toString()){var e=A.ownerDocument;return e&&e.defaultView||window}return A}function dA(A){return A instanceof UA(A).Element||A instanceof Element}function hA(A){return A instanceof UA(A).HTMLElement||A instanceof HTMLElement}function FA(A){return"undefined"!=typeof ShadowRoot&&(A instanceof UA(A).ShadowRoot||A instanceof ShadowRoot)}var fA=Math.round;function pA(){var A=navigator.userAgentData;return null!=A&&A.brands?A.brands.map((function(A){return A.brand+"/"+A.version})).join(" "):navigator.userAgent}function yA(A,e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=A.getBoundingClientRect(),n=1,s=1;e&&hA(A)&&(n=A.offsetWidth>0&&fA(r.width)/A.offsetWidth||1,s=A.offsetHeight>0&&fA(r.height)/A.offsetHeight||1);var o=(dA(A)?UA(A):window).visualViewport,B=!!/^((?!chrome|android).)*safari/i.test(pA())&&t,i=(r.left+(B&&o?o.offsetLeft:0))/n,a=(r.top+(B&&o?o.offsetTop:0))/s,c=r.width/n,l=r.height/s;return{width:c,height:l,top:a,right:i+c,bottom:a+l,left:i,x:i,y:a}}function HA(A){var e=UA(A);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mA(A){return A?(A.nodeName||"").toLowerCase():null}function EA(A){return((dA(A)?A.ownerDocument:A.document)||window.document).documentElement}function IA(A){return UA(A).getComputedStyle(A)}function vA(A){var e=IA(A),t=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+r)}function KA(A,e,t){void 0===t&&(t=!1);var r,n,s=hA(e),o=hA(e)&&function(A){var e=A.getBoundingClientRect(),t=fA(e.width)/A.offsetWidth||1,r=fA(e.height)/A.offsetHeight||1;return 1!==t||1!==r}(e),B=EA(e),i=yA(A,o,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!t)&&(("body"!==mA(e)||vA(B))&&(a=(r=e)!==UA(r)&&hA(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:HA(r)),hA(e)?((c=yA(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):B&&(c.x=function(A){return yA(EA(A)).left+HA(A).scrollLeft}(B))),{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function bA(A){return"html"===mA(A)?A:A.assignedSlot||A.parentNode||(FA(A)?A.host:null)||EA(A)}function LA(A){return["html","body","#document"].indexOf(mA(A))>=0?A.ownerDocument.body:hA(A)&&vA(A)?A:LA(bA(A))}function DA(A,e){var t;void 0===e&&(e=[]);var r=LA(A),n=r===(null==(t=A.ownerDocument)?void 0:t.body),s=UA(r),o=n?[s].concat(s.visualViewport||[],vA(r)?r:[]):r,B=e.concat(o);return n?B:B.concat(DA(bA(o)))}function xA(A){return["table","td","th"].indexOf(mA(A))>=0}function SA(A){return hA(A)&&"fixed"!==IA(A).position?A.offsetParent:null}function MA(A){for(var e=UA(A),t=SA(A);t&&xA(t)&&"static"===IA(t).position;)t=SA(t);return t&&("html"===mA(t)||"body"===mA(t)&&"static"===IA(t).position)?e:t||function(A){var e=/firefox/i.test(pA());if(/Trident/i.test(pA())&&hA(A)&&"fixed"===IA(A).position)return null;var t=bA(A);for(FA(t)&&(t=t.host);hA(t)&&["html","body"].indexOf(mA(t))<0;){var r=IA(t);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return t;t=t.parentNode}return null}(A)||e}var kA="top",OA="bottom",TA="right",VA="left",GA="auto",RA="start",PA="end",NA=[].concat([kA,OA,TA,VA],[GA]).reduce((function(A,e){return A.concat([e,e+"-"+RA,e+"-"+PA])}),[]),_A=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function JA(A){var e=new Map,t=new Set,r=[];function n(A){t.add(A.name),[].concat(A.requires||[],A.requiresIfExists||[]).forEach((function(A){if(!t.has(A)){var r=e.get(A);r&&n(r)}})),r.push(A)}return A.forEach((function(A){e.set(A.name,A)})),A.forEach((function(A){t.has(A.name)||n(A)})),r}function XA(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==B.reset){var g=B.orderedModifiers[l],u=g.fn,Q=g.options,w=void 0===Q?{}:Q,C=g.name;"function"==typeof u&&(B=u({state:B,options:w,name:C,instance:c})||B)}else B.reset=!1,l=-1}}else console.error(zA)}},update:(n=function(){return new Promise((function(A){c.forceUpdate(),A(B)}))},function(){return o||(o=new Promise((function(A){Promise.resolve().then((function(){o=void 0,A(n())}))}))),o}),destroy:function(){l(),a=!0}};if(!Ae(A,e))return console.error(zA),c;function l(){i.forEach((function(A){return A()})),i=[]}return c.setOptions(t).then((function(A){!a&&t.onFirstUpdate&&t.onFirstUpdate(A)})),c}}var te={passive:!0};var re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(A){var e=A.state,t=A.instance,r=A.options,n=r.scroll,s=void 0===n||n,o=r.resize,B=void 0===o||o,i=UA(e.elements.popper),a=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&a.forEach((function(A){A.addEventListener("scroll",t.update,te)})),B&&i.addEventListener("resize",t.update,te),function(){s&&a.forEach((function(A){A.removeEventListener("scroll",t.update,te)})),B&&i.removeEventListener("resize",t.update,te)}},data:{}};var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:function(A){var e=A.state,t=A.name;e.modifiersData[t]=function(A){var e,t=A.reference,r=A.element,n=A.placement,s=n?qA(n):null,o=n?jA(n):null,B=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2;switch(s){case kA:e={x:B,y:t.y-r.height};break;case OA:e={x:B,y:t.y+t.height};break;case TA:e={x:t.x+t.width,y:i};break;case VA:e={x:t.x-r.width,y:i};break;default:e={x:t.x,y:t.y}}var a=s?function(A){return["top","bottom"].indexOf(A)>=0?"x":"y"}(s):null;if(null!=a){var c="y"===a?"height":"width";switch(o){case RA:e[a]=e[a]-(t[c]/2-r[c]/2);break;case PA:e[a]=e[a]+(t[c]/2-r[c]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(A){var e,t=A.popper,r=A.popperRect,n=A.placement,s=A.variation,o=A.offsets,B=A.position,i=A.gpuAcceleration,a=A.adaptive,c=A.roundOffsets,l=A.isFixed,g=o.x,u=void 0===g?0:g,Q=o.y,w=void 0===Q?0:Q,C="function"==typeof c?c({x:u,y:w}):{x:u,y:w};u=C.x,w=C.y;var U=o.hasOwnProperty("x"),d=o.hasOwnProperty("y"),h=VA,F=kA,f=window;if(a){var p=MA(t),y="clientHeight",H="clientWidth";if(p===UA(t)&&"static"!==IA(p=EA(t)).position&&"absolute"===B&&(y="scrollHeight",H="scrollWidth"),n===kA||(n===VA||n===TA)&&s===PA)F=OA,w-=(l&&p===f&&f.visualViewport?f.visualViewport.height:p[y])-r.height,w*=i?1:-1;if(n===VA||(n===kA||n===OA)&&s===PA)h=TA,u-=(l&&p===f&&f.visualViewport?f.visualViewport.width:p[H])-r.width,u*=i?1:-1}var m,E=Object.assign({position:B},a&&se),I=!0===c?function(A){var e=A.x,t=A.y,r=window.devicePixelRatio||1;return{x:fA(e*r)/r||0,y:fA(t*r)/r||0}}({x:u,y:w}):{x:u,y:w};return u=I.x,w=I.y,i?Object.assign({},E,((m={})[F]=d?"0":"",m[h]=U?"0":"",m.transform=(f.devicePixelRatio||1)<=1?"translate("+u+"px, "+w+"px)":"translate3d("+u+"px, "+w+"px, 0)",m)):Object.assign({},E,((e={})[F]=d?w+"px":"",e[h]=U?u+"px":"",e.transform="",e))}var Be={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(A){var e=A.state,t=A.options,r=t.gpuAcceleration,n=void 0===r||r,s=t.adaptive,o=void 0===s||s,B=t.roundOffsets,i=void 0===B||B,a=IA(e.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some((function(A){return a.indexOf(A)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var c={placement:qA(e.placement),variation:jA(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,oe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,oe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ie={name:"applyStyles",enabled:!0,phase:"write",fn:function(A){var e=A.state;Object.keys(e.elements).forEach((function(A){var t=e.styles[A]||{},r=e.attributes[A]||{},n=e.elements[A];hA(n)&&mA(n)&&(Object.assign(n.style,t),Object.keys(r).forEach((function(A){var e=r[A];!1===e?n.removeAttribute(A):n.setAttribute(A,!0===e?"":e)})))}))},effect:function(A){var e=A.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach((function(A){var r=e.elements[A],n=e.attributes[A]||{},s=Object.keys(e.styles.hasOwnProperty(A)?e.styles[A]:t[A]).reduce((function(A,e){return A[e]="",A}),{});hA(r)&&mA(r)&&(Object.assign(r.style,s),Object.keys(n).forEach((function(A){r.removeAttribute(A)})))}))}},requires:["computeStyles"]},ae=ee({defaultModifiers:[re,ne,Be,ie]});var ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(A){var e=A.state,t=A.options,r=A.name,n=t.offset,s=void 0===n?[0,0]:n,o=NA.reduce((function(A,t){return A[t]=function(A,e,t){var r=qA(A),n=[VA,kA].indexOf(r)>=0?-1:1,s="function"==typeof t?t(Object.assign({},e,{placement:A})):t,o=s[0],B=s[1];return o=o||0,B=(B||0)*n,[VA,TA].indexOf(r)>=0?{x:B,y:o}:{x:o,y:B}}(t,e.rects,s),A}),{}),B=o[e.placement],i=B.x,a=B.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=a),e.modifiersData[r]=o}};const[le,ge]=o("popover"),ue=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Qe={show:Boolean,theme:L("light"),overlay:Boolean,actions:D(),actionsDirection:L("vertical"),trigger:L("click"),duration:x,showArrow:S,placement:L("bottom"),iconPrefix:String,overlayClass:M,overlayStyle:Object,closeOnClickAction:S,closeOnClickOverlay:S,closeOnClickOutside:S,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var we=i({name:le,props:Qe,emits:["select","touchstart","update:show"],setup(A,{emit:e,slots:t,attrs:n}){let o;const B=r(),i=r(),a=r(),c=((A,e)=>{const t=r(A());return s(A,(A=>{A!==t.value&&(t.value=A)})),s(t,(t=>{t!==A()&&e(t)})),t})((()=>A.show),(A=>e("update:show",A))),l=()=>({placement:A.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},V({},ce,{options:{offset:A.offset}})]}),g=()=>{k((()=>{c.value&&(o?o.setOptions(l()):(o=i.value&&a.value?ae(i.value,a.value.popupRef.value,l()):null,O&&(window.addEventListener("animationend",g),window.addEventListener("transitionend",g))))}))},u=A=>{c.value=A},Q=()=>{"click"===A.trigger&&(c.value=!c.value)},w=(e,r)=>t.action?t.action({action:e,index:r}):[e.icon&&C(U,{name:e.icon,classPrefix:A.iconPrefix,class:ge("action-icon")},null),C("div",{class:[ge("action-text"),{[G]:"vertical"===A.actionsDirection}]},[e.text])],d=(t,r)=>{const{icon:n,color:s,disabled:o,className:B}=t;return C("div",{role:"menuitem",class:[ge("action",{disabled:o,"with-icon":n}),{[T]:"horizontal"===A.actionsDirection},B],style:{color:s},tabindex:o?void 0:0,"aria-disabled":o||void 0,onClick:()=>((t,r)=>{t.disabled||(e("select",t,r),A.closeOnClickAction&&(c.value=!1))})(t,r)},[w(t,r)])};return y((()=>{g(),H((()=>{var A;B.value=null==(A=a.value)?void 0:A.popupRef.value}))})),m((()=>{o&&(O&&(window.removeEventListener("animationend",g),window.removeEventListener("transitionend",g)),o.destroy(),o=null)})),s((()=>[c.value,A.offset,A.placement]),g),E([i,B],(()=>{c.value&&A.closeOnClickOutside&&(!A.overlay||A.closeOnClickOverlay)&&(c.value=!1)}),{eventName:"touchstart"}),()=>{var e;return C(b,null,[C("span",{ref:i,class:ge("wrapper"),onClick:Q},[null==(e=t.reference)?void 0:e.call(t)]),C(I,v({ref:a,show:c.value,class:ge([A.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":u},n,K(A,ue)),{default:()=>[A.showArrow&&C("div",{class:ge("arrow")},null),C("div",{role:"menu",class:ge("content",A.actionsDirection)},[t.default?t.default():A.actions.map(d)])]})])}}});const Ce=p(we),Ue={back:"_back_1y3kp_1",musicCFixed:"_musicCFixed_1y3kp_16",musicName:"_musicName_1y3kp_21",popoverMusic:"_popoverMusic_1y3kp_27",container:"_container_1y3kp_36",content:"_content_1y3kp_42",opacityBg:"_opacityBg_1y3kp_47",leftContent:"_leftContent_1y3kp_52",leftBg:"_leftBg_1y3kp_57",leftBg2:"_leftBg2_1y3kp_68",types:"_types_1y3kp_78",type:"_type_1y3kp_78",typeActive:"_typeActive_1y3kp_98",typeImg:"_typeImg_1y3kp_98",scaleBtn:"_scaleBtn_1y3kp_1",typeIcon:"_typeIcon_1y3kp_112",center:"_center_1y3kp_123",centerSearch:"_centerSearch_1y3kp_130",musicContent:"_musicContent_1y3kp_141",searchNotice:"_searchNotice_1y3kp_152",searchNoticeShow:"_searchNoticeShow_1y3kp_161",musicItem:"_musicItem_1y3kp_164",disableNotic:"_disableNotic_1y3kp_177",musicActive:"_musicActive_1y3kp_181",musicAvtor:"_musicAvtor_1y3kp_191",musicInfo:"_musicInfo_1y3kp_205",noticeBar:"_noticeBar_1y3kp_213",musicDes:"_musicDes_1y3kp_217",musicFavitor:"_musicFavitor_1y3kp_222",musicAuthor:"_musicAuthor_1y3kp_234",musicIcon:"_musicIcon_1y3kp_242",right:"_right_1y3kp_246","right-musicName":"_right-musicName_1y3kp_254",staff:"_staff_1y3kp_262",rightBox:"_rightBox_1y3kp_265",rightBtns:"_rightBtns_1y3kp_271",rightBtnsRight:"_rightBtnsRight_1y3kp_297",loadingWrap:"_loadingWrap_1y3kp_323",empty:"_empty_1y3kp_328",displayIcon:"_displayIcon_1y3kp_1"},de=""+new URL("icon_down-27184904.svg",t.meta.url).href,he=""+new URL("icon_jianpuActive-17580202.svg",t.meta.url).href,Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAA8CAMAAAAt4rT4AAAC61BMVEUAAAA+vP9Dyf8nn/9Fyv9Cwf9Eyf8mnv8oof9Fy/9FzP8mnv9Cxv8mnv9Dyf9Eyv8nn/8pov9Izf8roP9Eyv9Gzf8ooP8on/8oov9Gy/8nnv8pn/8qo/9Bx/9Fzf9GzP9Cx/////8mn/8oof9Dyf8rpv8yr/4pov0qpP88vv49wP4sqP83t/8wrP40s/47vf86vP4sp/05uv4tqf81tP82tf8+wv84uP5Eyv8uqv8xrv82tv0vq/8lnf8zsf08v/89v/8/xP5Bxf86u/9Bx/5Fy/8/xP8ysP/n+P89wP/w+//q+f/e9f/b9P/X8/84uP/h9v9Cx//j9/9Bxv/4/v8wrf/s+v84uf80sv/z/P/p+f/Z8/85u/8ek+r2/f87vfwqpPkhl+8zsf8uqvonoPAjmu/l9/8sqPi+4fsxrvk0svggler1/f8ooPrh8f0qpPX8/v45uvowrPgrpPLu+v/G5fsmnvMkm+4hl+wlnfYgle2v4//J5vosp/opofQekuj5/P4mnvklnf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Al0bIKc7OespNFiPbZYjlIUxyuQCVRpXAQUS59WWjcE04Y0412u91DtRvUFIAQhPEEzxeg5hVJGpSjNDVlGJw4oV+BStIsW4TGFBp8B1UqzEQFKsmKPSPNWYlylYN31OUkjXBcNAhxCXguVpA0+tRv4JNDamgnaWZSBNRBSbSIko+bFSRN8EGQZVsGdZWk/SlJ8+BGTJK6qGoDwC4c47NJwJJiGmeLbnEZptwTkJM62QyDCh05CbfmdRGSezIGNMVoUM49lSEn6Wj5nqGYZDnU+og7vNqldDVKoXHxKrBWP8M7egdVHC2UrMFgCvmqxvig9MZFSs3oatplbgWlFrICfEpnC2bZ81ZAraUIMu0yBBTCUMy3cIkqt4upuNllw4UmSAO7gN65rqpcFJVTalswi7wuAVC0z1ZsGejIghLsKZT56YkI8t2AcR8uAyXDLRXG4VJVkkjmbuV2bdb1tlWLG1fshH7jIvZkpwy6FZRauBWbRulOCGD87nj/k3Wy8HxJA0kTHLINF6crBYTIPSWAUE1myxF/ERasJBg1tYvt9y3tSV63MFxTE1thKd5/y48xaBd0kUKOrdBHS1FJHy18k1ITSbyca51JQEl+wastGS3dMtLTk7F3rkpzVluFsRXe+mOMf11rnoZKh2qbAAAAAElFTkSuQmCC"; /*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var fe=function(A,e){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},fe(A,e)};function pe(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}fe(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var ye=function(){return ye=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=55296&&n<=56319&&t>10),o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xe=0;xe<64;xe++)De[Le.charCodeAt(xe)]=xe;for(var Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ke=0;ke<64;ke++)Me[Se.charCodeAt(ke)]=ke;for(var Oe=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Te=function(){function A(A,e,t,r,n,s){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=s}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Re=0;Re<64;Re++)Ge[Ve.charCodeAt(Re)]=Re;var Pe=10,Ne=13,_e=15,Je=17,Xe=18,We=19,Ye=20,Ze=21,qe=22,je=24,ze=25,$e=26,At=27,et=28,tt=30,rt=32,nt=33,st=34,ot=35,Bt=37,it=38,at=39,ct=40,lt=42,gt=[9001,65288],ut="×",Qt="÷",wt=function(A,e){var t=function(A){var e,t,r,n,s,o=.75*A.length,B=A.length,i=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e>4,c[i++]=(15&r)<<4|n>>2,c[i++]=(3&n)<<6|63&s;return a}(A),r=Array.isArray(t)?function(A){for(var e=A.length,t=[],r=0;r0;){var o=r[--s];if(Array.isArray(A)?-1!==A.indexOf(o):A===o)for(var B=t;B<=r.length;){var i;if((i=r[++B])===e)return!0;if(i!==Pe)break}if(o!==Pe)break}return!1},Ht=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==Pe)return r;t--}return 0},mt=function(A,e,t,r,n){if(0===t[r])return ut;var s=r-1;if(Array.isArray(n)&&!0===n[s])return ut;var o=s-1,B=s+1,i=e[s],a=o>=0?e[o]:0,c=e[B];if(2===i&&3===c)return ut;if(-1!==Ut.indexOf(i))return"!";if(-1!==Ut.indexOf(c))return ut;if(-1!==dt.indexOf(c))return ut;if(8===Ht(s,e))return Qt;if(11===wt.get(A[s]))return ut;if((i===rt||i===nt)&&11===wt.get(A[B]))return ut;if(7===i||7===c)return ut;if(9===i)return ut;if(-1===[Pe,Ne,_e].indexOf(i)&&9===c)return ut;if(-1!==[Je,Xe,We,je,et].indexOf(c))return ut;if(Ht(s,e)===qe)return ut;if(yt(23,qe,s,e))return ut;if(yt([Je,Xe],Ze,s,e))return ut;if(yt(12,12,s,e))return ut;if(i===Pe)return Qt;if(23===i||23===c)return ut;if(16===c||16===i)return Qt;if(-1!==[Ne,_e,Ze].indexOf(c)||14===i)return ut;if(36===a&&-1!==pt.indexOf(i))return ut;if(i===et&&36===c)return ut;if(c===Ye)return ut;if(-1!==Ct.indexOf(c)&&i===ze||-1!==Ct.indexOf(i)&&c===ze)return ut;if(i===At&&-1!==[Bt,rt,nt].indexOf(c)||-1!==[Bt,rt,nt].indexOf(i)&&c===$e)return ut;if(-1!==Ct.indexOf(i)&&-1!==ht.indexOf(c)||-1!==ht.indexOf(i)&&-1!==Ct.indexOf(c))return ut;if(-1!==[At,$e].indexOf(i)&&(c===ze||-1!==[qe,_e].indexOf(c)&&e[B+1]===ze)||-1!==[qe,_e].indexOf(i)&&c===ze||i===ze&&-1!==[ze,et,je].indexOf(c))return ut;if(-1!==[ze,et,je,Je,Xe].indexOf(c))for(var l=s;l>=0;){if((g=e[l])===ze)return ut;if(-1===[et,je].indexOf(g))break;l--}if(-1!==[At,$e].indexOf(c))for(l=-1!==[Je,Xe].indexOf(i)?o:s;l>=0;){var g;if((g=e[l])===ze)return ut;if(-1===[et,je].indexOf(g))break;l--}if(it===i&&-1!==[it,at,st,ot].indexOf(c)||-1!==[at,st].indexOf(i)&&-1!==[at,ct].indexOf(c)||-1!==[ct,ot].indexOf(i)&&c===ct)return ut;if(-1!==ft.indexOf(i)&&-1!==[Ye,$e].indexOf(c)||-1!==ft.indexOf(c)&&i===At)return ut;if(-1!==Ct.indexOf(i)&&-1!==Ct.indexOf(c))return ut;if(i===je&&-1!==Ct.indexOf(c))return ut;if(-1!==Ct.concat(ze).indexOf(i)&&c===qe&&-1===gt.indexOf(A[B])||-1!==Ct.concat(ze).indexOf(c)&&i===Xe)return ut;if(41===i&&41===c){for(var u=t[s],Q=1;u>0&&41===e[--u];)Q++;if(Q%2!=0)return ut}return i===rt&&c===nt?ut:Qt},Et=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach((function(A,s){var o=wt.get(A);if(o>50?(n.push(!0),o-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(s),t.push(16);if(4===o||11===o){if(0===s)return r.push(s),t.push(tt);var B=t[s-1];return-1===Ft.indexOf(B)?(r.push(r[s-1]),t.push(B)):(r.push(s),t.push(tt))}return r.push(s),31===o?t.push("strict"===e?Ze:Bt):o===lt||29===o?t.push(tt):43===o?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(Bt):t.push(tt):void t.push(o)})),[r,t,n]}(A,e.lineBreak),r=t[0],n=t[1],s=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[ze,tt,lt].indexOf(A)?Bt:A})));var o="keep-all"===e.wordBreak?s.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,n,o]},It=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return be.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),vt=45,Kt=43,bt=-1,Lt=function(A){return A>=48&&A<=57},Dt=function(A){return Lt(A)||A>=65&&A<=70||A>=97&&A<=102},xt=function(A){return 10===A||9===A||32===A},St=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},Mt=function(A){return St(A)||Lt(A)||A===vt},kt=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},Ot=function(A,e){return 92===A&&10!==e},Tt=function(A,e,t){return A===vt?St(e)||Ot(e,t):!!St(A)||!(92!==A||!Ot(A,e))},Vt=function(A,e,t){return A===Kt||A===vt?!!Lt(e)||46===e&&Lt(t):Lt(46===A?e:A)},Gt=function(A){var e=0,t=1;A[e]!==Kt&&A[e]!==vt||(A[e]===vt&&(t=-1),e++);for(var r=[];Lt(A[e]);)r.push(A[e++]);var n=r.length?parseInt(be.apply(void 0,r),10):0;46===A[e]&&e++;for(var s=[];Lt(A[e]);)s.push(A[e++]);var o=s.length,B=o?parseInt(be.apply(void 0,s),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;A[e]!==Kt&&A[e]!==vt||(A[e]===vt&&(i=-1),e++);for(var a=[];Lt(A[e]);)a.push(A[e++]);var c=a.length?parseInt(be.apply(void 0,a),10):0;return t*(n+B*Math.pow(10,-o))*Math.pow(10,i*c)},Rt={type:2},Pt={type:3},Nt={type:4},_t={type:13},Jt={type:8},Xt={type:21},Wt={type:9},Yt={type:10},Zt={type:11},qt={type:12},jt={type:14},zt={type:23},$t={type:1},Ar={type:25},er={type:24},tr={type:26},rr={type:27},nr={type:28},sr={type:29},or={type:31},Br={type:32},ir=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(Ke(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Br;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Mt(e)||Ot(t,r)){var n=Tt(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;break;case 39:return this.consumeStringToken(39);case 40:return Rt;case 41:return Pt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),jt;break;case Kt:if(Vt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return Nt;case vt:var s=A,o=this.peekCodePoint(0),B=this.peekCodePoint(1);if(Vt(s,o,B))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Tt(s,o,B))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===vt&&62===B)return this.consumeCodePoint(),this.consumeCodePoint(),er;break;case 46:if(Vt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint()))return this.consumeToken();if(i===bt)return this.consumeToken()}break;case 58:return tr;case 59:return rr;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===vt&&this.peekCodePoint(2)===vt)return this.consumeCodePoint(),this.consumeCodePoint(),Ar;break;case 64:var a=this.peekCodePoint(0),c=this.peekCodePoint(1),l=this.peekCodePoint(2);if(Tt(a,c,l))return{type:7,value:this.consumeName()};break;case 91:return nr;case 92:if(Ot(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return sr;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Jt;break;case 123:return Zt;case 125:return qt;case 117:case 85:var g=this.peekCodePoint(0),u=this.peekCodePoint(1);return g!==Kt||!Dt(u)&&63!==u||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Wt;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Xt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Yt;break;case bt:return Br}return xt(A)?(this.consumeWhiteSpace(),or):Lt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):St(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:be(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();Dt(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(be.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(be.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var r=parseInt(be.apply(void 0,A),16);if(this.peekCodePoint(0)===vt&&Dt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];Dt(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(be.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===bt)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===bt||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),zt)}for(;;){var r=this.consumeCodePoint();if(r===bt||41===r)return{type:22,value:be.apply(void 0,A)};if(xt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===bt||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:be.apply(void 0,A)}):(this.consumeBadUrlRemnants(),zt);if(34===r||39===r||40===r||kt(r))return this.consumeBadUrlRemnants(),zt;if(92===r){if(!Ot(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),zt;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;xt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===bt)return;Ot(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=be.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===bt||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),$t;if(92===r){var n=this._value[t+1];n!==bt&&void 0!==n&&(10===n?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):Ot(r,n)&&(e+=this.consumeStringSlice(t),e+=be(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(t!==Kt&&t!==vt||A.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&Lt(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===t||101===t)&&((r===Kt||r===vt)&&Lt(n)||Lt(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Lt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Gt(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);return Tt(r,n,s)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Dt(A)){for(var e=be(A);Dt(this.peekCodePoint(0))&&e.length<6;)e+=be(this.consumeCodePoint());xt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===bt?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Mt(e))A+=be(e);else{if(!Ot(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=be(this.consumeEscapedCodePoint())}}},A}(),ar=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new ir;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||dr(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?Br:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),cr=function(A){return 15===A.type},lr=function(A){return 17===A.type},gr=function(A){return 20===A.type},ur=function(A){return 0===A.type},Qr=function(A,e){return gr(A)&&A.value===e},wr=function(A){return 31!==A.type},Cr=function(A){return 31!==A.type&&4!==A.type},Ur=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},dr=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},hr=function(A){return 17===A.type||15===A.type},Fr=function(A){return 16===A.type||hr(A)},fr=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},pr={type:17,number:0,flags:4},yr={type:16,number:50,flags:4},Hr={type:16,number:100,flags:4},mr=function(A,e,t){var r=A[0],n=A[1];return[Er(r,e),Er(void 0!==n?n:r,t)]},Er=function(A,e){if(16===A.type)return A.number/100*e;if(cr(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Ir="grad",vr="turn",Kr=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case Ir:return Math.PI/200*e.number;case"rad":return e.number;case vr:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},br=function(A){return 15===A.type&&("deg"===A.unit||A.unit===Ir||"rad"===A.unit||A.unit===vr)},Lr=function(A){switch(A.filter(gr).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[pr,pr];case"to top":case"bottom":return Dr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[pr,Hr];case"to right":case"left":return Dr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hr,Hr];case"to bottom":case"top":return Dr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hr,pr];case"to left":case"right":return Dr(270)}return 0},Dr=function(A){return Math.PI*A/180},xr=function(A,e){if(18===e.type){var t=Rr[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);return kr(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);var o=e.value.substring(3,4);return kr(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(o+o,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6);return kr(parseInt(r,16),parseInt(n,16),parseInt(s,16),1)}if(8===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6),o=e.value.substring(6,8);return kr(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(o,16)/255)}}if(20===e.type){var B=Nr[e.value.toUpperCase()];if(void 0!==B)return B}return Nr.TRANSPARENT},Sr=function(A){return 0==(255&A)},Mr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},kr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},Or=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},Tr=function(A,e){var t=e.filter(Cr);if(3===t.length){var r=t.map(Or),n=r[0],s=r[1],o=r[2];return kr(n,s,o,1)}if(4===t.length){var B=t.map(Or),i=(n=B[0],s=B[1],o=B[2],B[3]);return kr(n,s,o,i)}return 0};function Vr(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var Gr=function(A,e){var t=e.filter(Cr),r=t[0],n=t[1],s=t[2],o=t[3],B=(17===r.type?Dr(r.number):Kr(A,r))/(2*Math.PI),i=Fr(n)?n.number/100:0,a=Fr(s)?s.number/100:0,c=void 0!==o&&Fr(o)?Er(o,1):1;if(0===i)return kr(255*a,255*a,255*a,1);var l=a<=.5?a*(i+1):a+i-a*i,g=2*a-l,u=Vr(g,l,B+1/3),Q=Vr(g,l,B),w=Vr(g,l,B-1/3);return kr(255*u,255*Q,255*w,c)},Rr={hsl:Gr,hsla:Gr,rgb:Tr,rgba:Tr},Pr=function(A,e){return xr(A,ar.create(e).parseComponentValue())},Nr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_r={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(gr(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Jr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Xr=function(A,e){var t=xr(A,e[0]),r=e[1];return r&&Fr(r)?{color:t,stop:r}:{color:t,stop:null}},Wr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=pr),null===r.stop&&(r.stop=Hr);for(var n=[],s=0,o=0;os?n.push(i):n.push(s),s=i}else n.push(null)}var a=null;for(o=0;oA.optimumDistance)?{optimumCorner:e,optimumDistance:B}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},jr=function(A,e){var t=Dr(180),r=[];return Ur(e).forEach((function(e,n){if(0===n){var s=e[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(t=Lr(e));if(br(s))return void(t=(Kr(A,s)+Dr(270))%Dr(360))}var o=Xr(A,e);r.push(o)})),{angle:t,stops:r,type:1}},zr="closest-side",$r="farthest-side",An="closest-corner",en="farthest-corner",tn="circle",rn="ellipse",nn="cover",sn="contain",on=function(A,e){var t=0,r=3,n=[],s=[];return Ur(e).forEach((function(e,o){var B=!0;if(0===o?B=e.reduce((function(A,e){if(gr(e))switch(e.value){case"center":return s.push(yr),!1;case"top":case"left":return s.push(pr),!1;case"right":case"bottom":return s.push(Hr),!1}else if(Fr(e)||hr(e))return s.push(e),!1;return A}),B):1===o&&(B=e.reduce((function(A,e){if(gr(e))switch(e.value){case tn:return t=0,!1;case rn:return t=1,!1;case sn:case zr:return r=0,!1;case $r:return r=1,!1;case An:return r=2,!1;case nn:case en:return r=3,!1}else if(hr(e)||Fr(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),B)),B){var i=Xr(A,e);n.push(i)}})),{size:r,shape:t,stops:n,position:s,type:2}},Bn=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=cn[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)};var an,cn={"linear-gradient":function(A,e){var t=Dr(180),r=[];return Ur(e).forEach((function(e,n){if(0===n){var s=e[0];if(20===s.type&&"to"===s.value)return void(t=Lr(e));if(br(s))return void(t=Kr(A,s))}var o=Xr(A,e);r.push(o)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":jr,"-ms-linear-gradient":jr,"-o-linear-gradient":jr,"-webkit-linear-gradient":jr,"radial-gradient":function(A,e){var t=0,r=3,n=[],s=[];return Ur(e).forEach((function(e,o){var B=!0;if(0===o){var i=!1;B=e.reduce((function(A,e){if(i)if(gr(e))switch(e.value){case"center":return s.push(yr),A;case"top":case"left":return s.push(pr),A;case"right":case"bottom":return s.push(Hr),A}else(Fr(e)||hr(e))&&s.push(e);else if(gr(e))switch(e.value){case tn:return t=0,!1;case rn:return t=1,!1;case"at":return i=!0,!1;case zr:return r=0,!1;case nn:case $r:return r=1,!1;case sn:case An:return r=2,!1;case en:return r=3,!1}else if(hr(e)||Fr(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),B)}if(B){var a=Xr(A,e);n.push(a)}})),{size:r,shape:t,stops:n,position:s,type:2}},"-moz-radial-gradient":on,"-ms-radial-gradient":on,"-o-radial-gradient":on,"-webkit-radial-gradient":on,"-webkit-gradient":function(A,e){var t=Dr(180),r=[],n=1;return Ur(e).forEach((function(e,t){var s=e[0];if(0===t){if(gr(s)&&"linear"===s.value)return void(n=1);if(gr(s)&&"radial"===s.value)return void(n=2)}if(18===s.type)if("from"===s.name){var o=xr(A,s.values[0]);r.push({stop:pr,color:o})}else if("to"===s.name){o=xr(A,s.values[0]);r.push({stop:Hr,color:o})}else if("color-stop"===s.name){var B=s.values.filter(Cr);if(2===B.length){o=xr(A,B[1]);var i=B[0];lr(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:o})}}})),1===n?{angle:(t+Dr(180))%Dr(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},ln={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return Cr(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!cn[A.name])}(A)})).map((function(e){return Bn(A,e)}))}},gn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(gr(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},un={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Ur(e).map((function(A){return A.filter(Fr)})).map(fr)}},Qn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Ur(e).map((function(A){return A.filter(gr).map((function(A){return A.value})).join(" ")})).map(wn)}},wn=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(an||(an={}));var Cn,Un={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Ur(e).map((function(A){return A.filter(dn)}))}},dn=function(A){return gr(A)||Fr(A)},hn=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Fn=hn("top"),fn=hn("right"),pn=hn("bottom"),yn=hn("left"),Hn=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return fr(e.filter(Fr))}}},mn=Hn("top-left"),En=Hn("top-right"),In=Hn("bottom-right"),vn=Hn("bottom-left"),Kn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bn=Kn("top"),Ln=Kn("right"),Dn=Kn("bottom"),xn=Kn("left"),Sn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return cr(e)?e.number:0}}},Mn=Sn("top"),kn=Sn("right"),On=Sn("bottom"),Tn=Sn("left"),Vn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Gn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},Rn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(gr).reduce((function(A,e){return A|Pn(e.value)}),0)}},Pn=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Nn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_n={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Cn||(Cn={}));var Jn,Xn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Cn.STRICT:Cn.NORMAL}},Wn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Yn=function(A,e){return gr(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Fr(A)?Er(A,e):e},Zn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Bn(A,e)}},qn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},jn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},zn=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},$n=zn("top"),As=zn("right"),es=zn("bottom"),ts=zn("left"),rs={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(gr).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},ns={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},ss=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},os=ss("top"),Bs=ss("right"),is=ss("bottom"),as=ss("left"),cs={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ls={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},gs={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Qr(e[0],"none")?[]:Ur(e).map((function(e){for(var t={color:Nr.TRANSPARENT,offsetX:pr,offsetY:pr,blur:pr},r=0,n=0;n1?1:0],this.overflowWrap=Js(A,ns,e.overflowWrap),this.paddingTop=Js(A,os,e.paddingTop),this.paddingRight=Js(A,Bs,e.paddingRight),this.paddingBottom=Js(A,is,e.paddingBottom),this.paddingLeft=Js(A,as,e.paddingLeft),this.paintOrder=Js(A,Vs,e.paintOrder),this.position=Js(A,ls,e.position),this.textAlign=Js(A,cs,e.textAlign),this.textDecorationColor=Js(A,Hs,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Js(A,ms,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Js(A,gs,e.textShadow),this.textTransform=Js(A,us,e.textTransform),this.transform=Js(A,Qs,e.transform),this.transformOrigin=Js(A,ds,e.transformOrigin),this.visibility=Js(A,hs,e.visibility),this.webkitTextStrokeColor=Js(A,Gs,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Js(A,Rs,e.webkitTextStrokeWidth),this.wordBreak=Js(A,Fs,e.wordBreak),this.zIndex=Js(A,fs,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return Sr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Ls(this.display,4)||Ls(this.display,33554432)||Ls(this.display,268435456)||Ls(this.display,536870912)||Ls(this.display,67108864)||Ls(this.display,134217728)},A}(),Ns=function(A,e){this.content=Js(A,Ds,e.content),this.quotes=Js(A,ks,e.quotes)},_s=function(A,e){this.counterIncrement=Js(A,xs,e.counterIncrement),this.counterReset=Js(A,Ss,e.counterReset)},Js=function(A,e,t){var r=new ir,n=null!=t?t.toString():e.initialValue;r.write(n);var s=new ar(r.read());switch(e.type){case 2:var o=s.parseComponentValue();return e.parse(A,gr(o)?o.value:e.initialValue);case 0:return e.parse(A,s.parseComponentValue());case 1:return e.parse(A,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return Kr(A,s.parseComponentValue());case"color":return xr(A,s.parseComponentValue());case"image":return Bn(A,s.parseComponentValue());case"length":var B=s.parseComponentValue();return hr(B)?B:pr;case"length-percentage":var i=s.parseComponentValue();return Fr(i)?i:pr;case"time":return ps(A,s.parseComponentValue())}}},Xs=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},Ws=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Xs(e,3),this.styles=new Ps(A,window.getComputedStyle(e,null)),zo(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=ve(this.context,e),Xs(e,4)&&(this.flags|=16)},Ys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zs="undefined"==typeof Uint8Array?[]:new Uint8Array(256),qs=0;qs<64;qs++)Zs[Ys.charCodeAt(qs)]=qs;for(var js=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},zs=function(){function A(A,e,t,r,n,s){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=s}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),$s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ao="undefined"==typeof Uint8Array?[]:new Uint8Array(256),eo=0;eo<64;eo++)Ao[$s.charCodeAt(eo)]=eo;var to,ro=8,no=9,so=11,oo=12,Bo=function(){for(var A=[],e=0;e>10),o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},io=function(A,e){var t=function(A){var e,t,r,n,s,o=.75*A.length,B=A.length,i=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e>4,c[i++]=(15&r)<<4|n>>2,c[i++]=(3&n)<<6|63&s;return a}(A),r=Array.isArray(t)?function(A){for(var e=A.length,t=[],r=0;r=55296&&n<=56319&&t=t)return{done:!0,value:null};for(var A=ao;ro.x||n.y>o.y;return o=n,0===e||B}));return A.body.removeChild(e),B}(document);return Object.defineProperty(Co,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(n){return!1}return!0}(document);return Object.defineProperty(Co,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,s=e.toDataURL();n.src=s;var o=Qo(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),wo(o).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=A.createElement("div");return o.style.backgroundImage="url("+s+")",o.style.height=t+"px",uo(n)?wo(Qo(t,t,0,0,o)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),uo(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Co,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Co,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Co,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Co,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Co,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Uo=function(A,e){this.text=A,this.bounds=e},ho=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var s=ve(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return Ie.EMPTY},Fo=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},fo=function(A){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){for(var e,t=go(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},po=function(A,e){return 0!==e.letterSpacing?fo(A):function(A,e){if(Co.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return Ho(A,e)}(A,e)},yo=[32,160,4961,65792,65793,4153,4241],Ho=function(A,e){for(var t,r=function(A,e){var t=Ke(A),r=Et(t,e),n=r[0],s=r[1],o=r[2],B=t.length,i=0,a=0;return{next:function(){if(a>=B)return{done:!0,value:null};for(var A=ut;a0)if(Co.SUPPORT_RANGE_BOUNDS){var n=Fo(r,o,e.length).getClientRects();if(n.length>1){var B=fo(e),i=0;B.forEach((function(e){s.push(new Uo(e,Ie.fromDOMRectList(A,Fo(r,i+o,e.length).getClientRects()))),i+=e.length}))}else s.push(new Uo(e,Ie.fromDOMRectList(A,n)))}else{var a=r.splitText(e.length);s.push(new Uo(e,ho(A,r))),r=a}else Co.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length})),s}(A,this.text,t,e)},Eo=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Io,vo);case 2:return A.toUpperCase();default:return A}},Io=/(^|\s|:|-|\(|\))([a-z])/g,vo=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Ko=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return pe(e,A),e}(Ws),bo=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return pe(e,A),e}(Ws),Lo=function(A){function e(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,s=ve(e,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return pe(e,A),e}(Ws),Do=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return pe(e,A),e}(Ws),xo=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return pe(e,A),e}(Ws),So=[{type:15,flags:0,unit:"px",number:3}],Mo=[{type:16,flags:0,number:50}],ko="checkbox",Oo="radio",To="password",Vo=707406591,Go=function(A){function e(e,t){var r,n,s,o=A.call(this,e,t)||this;switch(o.type=t.type.toLowerCase(),o.checked=t.checked,o.value=0===(n=(r=t).type===To?new Array(r.value.length+1).join("•"):r.value).length?r.placeholder||"":n,o.type!==ko&&o.type!==Oo||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(s=o.bounds).width>s.height?new Ie(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width0)t.textNodes.push(new mo(A,n,t.styles));else if(jo(n))if(gB(n)&&n.assignedNodes)n.assignedNodes().forEach((function(e){return Jo(A,e,t,r)}));else{var o=Xo(A,n);o.styles.isVisible()&&(Yo(n,o,r)?o.flags|=4:Zo(o.styles)&&(o.flags|=2),-1!==_o.indexOf(n.tagName)&&(o.flags|=8),t.elements.push(o),n.slot,n.shadowRoot?Jo(A,n.shadowRoot,o,r):cB(n)||rB(n)||lB(n)||Jo(A,n,o,r))}},Xo=function(A,e){return BB(e)?new Ko(A,e):sB(e)?new bo(A,e):rB(e)?new Lo(A,e):AB(e)?new Do(A,e):eB(e)?new xo(A,e):tB(e)?new Go(A,e):lB(e)?new Ro(A,e):cB(e)?new Po(A,e):iB(e)?new No(A,e):new Ws(A,e)},Wo=function(A,e){var t=Xo(A,e);return t.flags|=4,Jo(A,e,t,t),t},Yo=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||nB(A)&&t.styles.isTransparent()},Zo=function(A){return A.isPositioned()||A.isFloating()},qo=function(A){return A.nodeType===Node.TEXT_NODE},jo=function(A){return A.nodeType===Node.ELEMENT_NODE},zo=function(A){return jo(A)&&void 0!==A.style&&!$o(A)},$o=function(A){return"object"==typeof A.className},AB=function(A){return"LI"===A.tagName},eB=function(A){return"OL"===A.tagName},tB=function(A){return"INPUT"===A.tagName},rB=function(A){return"svg"===A.tagName},nB=function(A){return"BODY"===A.tagName},sB=function(A){return"CANVAS"===A.tagName},oB=function(A){return"VIDEO"===A.tagName},BB=function(A){return"IMG"===A.tagName},iB=function(A){return"IFRAME"===A.tagName},aB=function(A){return"STYLE"===A.tagName},cB=function(A){return"TEXTAREA"===A.tagName},lB=function(A){return"SELECT"===A.tagName},gB=function(A){return"SLOT"===A.tagName},uB=function(A){return A.tagName.indexOf("-")>0},QB=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var s=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];s.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),s},A}(),wB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},CB={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},UB={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},dB={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},hB=function(A,e,t,r,n,s){return At?vB(A,n,s.length>0):r.integers.reduce((function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e}),"")+s},FB=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},fB=function(A,e,t,r,n){var s=t-e+1;return(A<0?"-":"")+(FB(Math.abs(A),s,r,(function(A){return be(Math.floor(A%s)+e)}))+n)},pB=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return FB(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},yB=function(A,e,t,r,n,s){if(A<-9999||A>9999)return vB(A,4,n.length>0);var o=Math.abs(A),B=n;if(0===o)return e[0]+B;for(var i=0;o>0&&i<=4;i++){var a=o%10;0===a&&Ls(s,1)&&""!==B?B=e[a]+B:a>1||1===a&&0===i||1===a&&1===i&&Ls(s,2)||1===a&&1===i&&Ls(s,4)&&A>100||1===a&&i>1&&Ls(s,8)?B=e[a]+(i>0?t[i-1]:"")+B:1===a&&i>0&&(B=t[i-1]+B),o=Math.floor(o/10)}return(A<0?r:"")+B},HB="十百千萬",mB="拾佰仟萬",EB="マイナス",IB="마이너스",vB=function(A,e,t){var r=t?". ":"",n=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var B=fB(A,48,57,!0,r);return B.length<4?"0"+B:B;case 4:return pB(A,"〇一二三四五六七八九",n);case 6:return hB(A,1,3999,wB,3,r).toLowerCase();case 7:return hB(A,1,3999,wB,3,r);case 8:return fB(A,945,969,!1,r);case 9:return fB(A,97,122,!1,r);case 10:return fB(A,65,90,!1,r);case 11:return fB(A,1632,1641,!0,r);case 12:case 49:return hB(A,1,9999,CB,3,r);case 35:return hB(A,1,9999,CB,3,r).toLowerCase();case 13:return fB(A,2534,2543,!0,r);case 14:case 30:return fB(A,6112,6121,!0,r);case 15:return pB(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return pB(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return yB(A,"零一二三四五六七八九",HB,"負",n,14);case 47:return yB(A,"零壹貳參肆伍陸柒捌玖",mB,"負",n,15);case 42:return yB(A,"零一二三四五六七八九",HB,"负",n,14);case 41:return yB(A,"零壹贰叁肆伍陆柒捌玖",mB,"负",n,15);case 26:return yB(A,"〇一二三四五六七八九","十百千万",EB,n,0);case 25:return yB(A,"零壱弐参四伍六七八九","拾百千万",EB,n,7);case 31:return yB(A,"영일이삼사오육칠팔구","십백천만",IB,s,7);case 33:return yB(A,"零一二三四五六七八九","十百千萬",IB,s,0);case 32:return yB(A,"零壹貳參四五六七八九","拾百千",IB,s,7);case 18:return fB(A,2406,2415,!0,r);case 20:return hB(A,1,19999,dB,3,r);case 21:return fB(A,2790,2799,!0,r);case 22:return fB(A,2662,2671,!0,r);case 22:return hB(A,1,10999,UB,3,r);case 23:return pB(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return pB(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return fB(A,3302,3311,!0,r);case 28:return pB(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return pB(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return fB(A,3792,3801,!0,r);case 37:return fB(A,6160,6169,!0,r);case 38:return fB(A,4160,4169,!0,r);case 39:return fB(A,2918,2927,!0,r);case 40:return fB(A,1776,1785,!0,r);case 43:return fB(A,3046,3055,!0,r);case 44:return fB(A,3174,3183,!0,r);case 45:return fB(A,3664,3673,!0,r);case 46:return fB(A,3872,3881,!0,r);default:return fB(A,48,57,!0,r)}},KB="data-html2canvas-ignore",bB=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new QB,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,r=DB(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=r.contentWindow,B=o.document,i=MB(r).then((function(){return He(t,void 0,void 0,(function(){var A,t;return me(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(GB),o&&(o.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||o.scrollY===e.top&&o.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:B.fonts&&B.fonts.ready?[4,B.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,SB(B)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(B,t)})).then((function(){return r}))]:[2,r]}}))}))}));return B.open(),B.write(TB(document.doctype)+""),VB(this.referenceElement.ownerDocument,n,s),B.replaceChild(B.adoptNode(this.documentElement),B.documentElement),B.close(),i},A.prototype.createElementClone=function(A){if(Xs(A,2),sB(A))return this.createCanvasClone(A);if(oB(A))return this.createVideoClone(A);if(aB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return BB(e)&&(BB(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),uB(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return OB(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),"SecurityError"!==n.name)throw n}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(i){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(o){var B=o.getContextAttributes();!1===(null==B?void 0:B.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return r}catch(i){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(n){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){jo(e)&&("SCRIPT"===e.tagName||e.hasAttribute(KB)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&jo(e)&&aB(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(jo(n)&&gB(n)&&"function"==typeof n.assignedNodes){var s=n.assignedNodes();s.length&&s.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(qo(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&jo(A)&&(zo(A)||$o(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&zo(r)&&(this.clonedReferenceElement=r),nB(r)&&_B(r);var B=this.counters.parse(new _s(this.context,n)),i=this.resolvePseudoContent(A,r,s,to.BEFORE);uB(A)&&(e=!0),oB(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var a=this.resolvePseudoContent(A,r,o,to.AFTER);return a&&r.appendChild(a),this.counters.pop(B),(n&&(this.options.copyStyles||$o(A))&&!iB(A)||e)&&OB(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(cB(A)||lB(A))&&(cB(r)||lB(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var s=t.content,o=e.ownerDocument;if(o&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==t.display){this.counters.parse(new _s(this.context,t));var B=new Ns(this.context,t),i=o.createElement("html2canvaspseudoelement");OB(t,i),B.content.forEach((function(e){if(0===e.type)i.appendChild(o.createTextNode(e.value));else if(22===e.type){var t=o.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(gr);r.length&&i.appendChild(o.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var s=e.values.filter(Cr),a=s[0],c=s[1];if(a&&gr(a)){var l=n.counters.getCounterValue(a.value),g=c&&gr(c)?jn.parse(n.context,c.value):3;i.appendChild(o.createTextNode(vB(l,g,!1)))}}else if("counters"===e.name){var u=e.values.filter(Cr),Q=(a=u[0],u[1]);c=u[2];if(a&&gr(a)){var w=n.counters.getCounterValues(a.value),C=c&&gr(c)?jn.parse(n.context,c.value):3,U=Q&&0===Q.type?Q.value:"",d=w.map((function(A){return vB(A,C,!1)})).join(U);i.appendChild(o.createTextNode(d))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(o.createTextNode(Os(B.quotes,n.quoteDepth++,!0)));break;case"close-quote":i.appendChild(o.createTextNode(Os(B.quotes,--n.quoteDepth,!1)));break;default:i.appendChild(o.createTextNode(e.value))}})),i.className=RB+" "+PB;var a=r===to.BEFORE?" "+RB:" "+PB;return $o(e)?e.className.baseValue+=a:e.className+=a,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(to||(to={}));var LB,DB=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(KB,"true"),A.body.appendChild(t),t},xB=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},SB=function(A){return Promise.all([].slice.call(A.images,0).map(xB))},MB=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},kB=["all","d","content"],OB=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===kB.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},TB=function(A){var e="";return A&&(e+=""),e},VB=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},GB=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},RB="___html2canvas___pseudoelement_before",PB="___html2canvas___pseudoelement_after",NB='{\n content: "" !important;\n display: none !important;\n}',_B=function(A){JB(A,"."+RB+":before"+NB+"\n ."+PB+":after"+NB)},JB=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},XB=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),WB=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Ai(A)||jB(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return He(this,void 0,void 0,(function(){var e,t,r,n,s=this;return me(this,(function(o){switch(o.label){case 0:return e=XB.isSameOrigin(A),t=!zB(A)&&!0===this._options.useCORS&&Co.SUPPORT_CORS_IMAGES&&!e,r=!zB(A)&&!e&&!Ai(A)&&"string"==typeof this._options.proxy&&Co.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||zB(A)||Ai(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,($B(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,s){var o=Co.SUPPORT_RESPONSE_TYPE?"blob":"text",B=new XMLHttpRequest;B.onload=function(){if(200===B.status)if("text"===o)n(B.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return s(A)}),!1),A.readAsDataURL(B.response)}else s("Failed to proxy resource "+r+" with status code "+B.status)},B.onerror=s;var i=t.indexOf("?")>-1?"&":"?";if(B.open("GET",""+t+i+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&B instanceof XMLHttpRequest&&(B.responseType=o),e._options.imageTimeout){var a=e._options.imageTimeout;B.timeout=a,B.ontimeout=function(){return s("Timed out ("+a+"ms) proxying "+r)}}B.send()}))},A}(),YB=/^data:image\/svg\+xml/i,ZB=/^data:image\/.*;base64,/i,qB=/^data:image\/.*/i,jB=function(A){return Co.SUPPORT_SVG_DRAWING||!ei(A)},zB=function(A){return qB.test(A)},$B=function(A){return ZB.test(A)},Ai=function(A){return"blob"===A.substr(0,4)},ei=function(A){return"svg"===A.substr(-3).toLowerCase()||YB.test(A)},ti=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),ri=function(A,e,t){return new ti(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},ni=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=ri(this.start,this.startControl,e),n=ri(this.startControl,this.endControl,e),s=ri(this.endControl,this.end,e),o=ri(r,n,e),B=ri(n,s,e),i=ri(o,B,e);return t?new A(this.start,r,o,i):new A(i,B,s,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),si=function(A){return 1===A.type},oi=function(A){var e=A.styles,t=A.bounds,r=mr(e.borderTopLeftRadius,t.width,t.height),n=r[0],s=r[1],o=mr(e.borderTopRightRadius,t.width,t.height),B=o[0],i=o[1],a=mr(e.borderBottomRightRadius,t.width,t.height),c=a[0],l=a[1],g=mr(e.borderBottomLeftRadius,t.width,t.height),u=g[0],Q=g[1],w=[];w.push((n+B)/t.width),w.push((u+c)/t.width),w.push((s+Q)/t.height),w.push((i+l)/t.height);var C=Math.max.apply(Math,w);C>1&&(n/=C,s/=C,B/=C,i/=C,c/=C,l/=C,u/=C,Q/=C);var U=t.width-B,d=t.height-l,h=t.width-c,F=t.height-Q,f=e.borderTopWidth,p=e.borderRightWidth,y=e.borderBottomWidth,H=e.borderLeftWidth,m=Er(e.paddingTop,A.bounds.width),E=Er(e.paddingRight,A.bounds.width),I=Er(e.paddingBottom,A.bounds.width),v=Er(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?Bi(t.left+H/3,t.top+f/3,n-H/3,s-f/3,LB.TOP_LEFT):new ti(t.left+H/3,t.top+f/3),this.topRightBorderDoubleOuterBox=n>0||s>0?Bi(t.left+U,t.top+f/3,B-p/3,i-f/3,LB.TOP_RIGHT):new ti(t.left+t.width-p/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=c>0||l>0?Bi(t.left+h,t.top+d,c-p/3,l-y/3,LB.BOTTOM_RIGHT):new ti(t.left+t.width-p/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=u>0||Q>0?Bi(t.left+H/3,t.top+F,u-H/3,Q-y/3,LB.BOTTOM_LEFT):new ti(t.left+H/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?Bi(t.left+2*H/3,t.top+2*f/3,n-2*H/3,s-2*f/3,LB.TOP_LEFT):new ti(t.left+2*H/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=n>0||s>0?Bi(t.left+U,t.top+2*f/3,B-2*p/3,i-2*f/3,LB.TOP_RIGHT):new ti(t.left+t.width-2*p/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=c>0||l>0?Bi(t.left+h,t.top+d,c-2*p/3,l-2*y/3,LB.BOTTOM_RIGHT):new ti(t.left+t.width-2*p/3,t.top+t.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=u>0||Q>0?Bi(t.left+2*H/3,t.top+F,u-2*H/3,Q-2*y/3,LB.BOTTOM_LEFT):new ti(t.left+2*H/3,t.top+t.height-2*y/3),this.topLeftBorderStroke=n>0||s>0?Bi(t.left+H/2,t.top+f/2,n-H/2,s-f/2,LB.TOP_LEFT):new ti(t.left+H/2,t.top+f/2),this.topRightBorderStroke=n>0||s>0?Bi(t.left+U,t.top+f/2,B-p/2,i-f/2,LB.TOP_RIGHT):new ti(t.left+t.width-p/2,t.top+f/2),this.bottomRightBorderStroke=c>0||l>0?Bi(t.left+h,t.top+d,c-p/2,l-y/2,LB.BOTTOM_RIGHT):new ti(t.left+t.width-p/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=u>0||Q>0?Bi(t.left+H/2,t.top+F,u-H/2,Q-y/2,LB.BOTTOM_LEFT):new ti(t.left+H/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||s>0?Bi(t.left,t.top,n,s,LB.TOP_LEFT):new ti(t.left,t.top),this.topRightBorderBox=B>0||i>0?Bi(t.left+U,t.top,B,i,LB.TOP_RIGHT):new ti(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||l>0?Bi(t.left+h,t.top+d,c,l,LB.BOTTOM_RIGHT):new ti(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=u>0||Q>0?Bi(t.left,t.top+F,u,Q,LB.BOTTOM_LEFT):new ti(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||s>0?Bi(t.left+H,t.top+f,Math.max(0,n-H),Math.max(0,s-f),LB.TOP_LEFT):new ti(t.left+H,t.top+f),this.topRightPaddingBox=B>0||i>0?Bi(t.left+Math.min(U,t.width-p),t.top+f,U>t.width+p?0:Math.max(0,B-p),Math.max(0,i-f),LB.TOP_RIGHT):new ti(t.left+t.width-p,t.top+f),this.bottomRightPaddingBox=c>0||l>0?Bi(t.left+Math.min(h,t.width-H),t.top+Math.min(d,t.height-y),Math.max(0,c-p),Math.max(0,l-y),LB.BOTTOM_RIGHT):new ti(t.left+t.width-p,t.top+t.height-y),this.bottomLeftPaddingBox=u>0||Q>0?Bi(t.left+H,t.top+Math.min(F,t.height-y),Math.max(0,u-H),Math.max(0,Q-y),LB.BOTTOM_LEFT):new ti(t.left+H,t.top+t.height-y),this.topLeftContentBox=n>0||s>0?Bi(t.left+H+v,t.top+f+m,Math.max(0,n-(H+v)),Math.max(0,s-(f+m)),LB.TOP_LEFT):new ti(t.left+H+v,t.top+f+m),this.topRightContentBox=B>0||i>0?Bi(t.left+Math.min(U,t.width+H+v),t.top+f+m,U>t.width+H+v?0:B-H+v,i-(f+m),LB.TOP_RIGHT):new ti(t.left+t.width-(p+E),t.top+f+m),this.bottomRightContentBox=c>0||l>0?Bi(t.left+Math.min(h,t.width-(H+v)),t.top+Math.min(d,t.height+f+m),Math.max(0,c-(p+E)),l-(y+I),LB.BOTTOM_RIGHT):new ti(t.left+t.width-(p+E),t.top+t.height-(y+I)),this.bottomLeftContentBox=u>0||Q>0?Bi(t.left+H+v,t.top+F,Math.max(0,u-(H+v)),Q-(y+I),LB.BOTTOM_LEFT):new ti(t.left+H+v,t.top+t.height-(y+I))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(LB||(LB={}));var Bi=function(A,e,t,r,n){var s=(Math.sqrt(2)-1)/3*4,o=t*s,B=r*s,i=A+t,a=e+r;switch(n){case LB.TOP_LEFT:return new ni(new ti(A,a),new ti(A,a-B),new ti(i-o,e),new ti(i,e));case LB.TOP_RIGHT:return new ni(new ti(A,e),new ti(A+o,e),new ti(i,a-B),new ti(i,a));case LB.BOTTOM_RIGHT:return new ni(new ti(i,e),new ti(i,e+B),new ti(A+o,a),new ti(A,a));case LB.BOTTOM_LEFT:default:return new ni(new ti(i,a),new ti(i-o,a),new ti(A,e+B),new ti(A,e))}},ii=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},ai=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},ci=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},li=function(A,e){this.path=A,this.target=e,this.type=1},gi=function(A){this.opacity=A,this.type=2,this.target=6},ui=function(A){return 1===A.type},Qi=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},wi=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ci=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new oi(this.container),this.container.styles.opacity<1&&this.effects.push(new gi(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new ci(t,r,n))}if(0!==this.container.styles.overflowX){var s=ii(this.curves),o=ai(this.curves);Qi(s,o)?this.effects.push(new li(s,6)):(this.effects.push(new li(s,2)),this.effects.push(new li(o,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var n=t.effects.filter((function(A){return!ui(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var s=ii(t.curves),o=ai(t.curves);Qi(s,o)||r.unshift(new li(o,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter((function(e){return Ls(e.target,A)}))},A}(),Ui=function(A,e,t,r){A.container.elements.forEach((function(n){var s=Ls(n.flags,4),o=Ls(n.flags,2),B=new Ci(n,A);Ls(n.styles.display,2048)&&r.push(B);var i=Ls(n.flags,8)?[]:r;if(s||o){var a=s||n.styles.isPositioned()?t:e,c=new wi(B);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var g=0;a.negativeZIndex.some((function(A,e){return l>A.element.container.styles.zIndex.order?(g=e,!1):g>0})),a.negativeZIndex.splice(g,0,c)}else if(l>0){var u=0;a.positiveZIndex.some((function(A,e){return l>=A.element.container.styles.zIndex.order?(u=e+1,!1):u>0})),a.positiveZIndex.splice(u,0,c)}else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?a.nonPositionedFloats.push(c):a.nonPositionedInlineLevel.push(c);Ui(B,c,s?c:t,i)}else n.styles.isInlineLevel()?e.inlineLevel.push(B):e.nonInlineLevel.push(B),Ui(B,e,t,i);Ls(n.flags,8)&&di(n,i)}))},di=function(A,e){for(var t=A instanceof xo?A.start:1,r=A instanceof xo&&A.reversed,n=0;n0&&A.intrinsicHeight>0){var r=yi(A),n=ai(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return He(this,void 0,void 0,(function(){var t,r,n,s,o,B,i,a,c,l,g,u,Q,w,C,U,d,h;return me(this,(function(F){switch(F.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,n=t.styles,s=0,o=t.textNodes,F.label=1;case 1:return s0&&y>0&&(U=r.ctx.createPattern(Q,"repeat"),r.renderRepeat(h,U,m,E))):function(A){return 2===A.type}(t)&&(d=Hi(A,e,[null,null,null]),h=d[0],F=d[1],f=d[2],p=d[3],y=d[4],H=0===t.position.length?[yr]:t.position,m=Er(H[0],p),E=Er(H[H.length-1],y),I=function(A,e,t,r,n){var s=0,o=0;switch(A.size){case 0:0===A.shape?s=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(s=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)s=o=Math.min(Zr(e,t),Zr(e,t-n),Zr(e-r,t),Zr(e-r,t-n));else if(1===A.shape){var B=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),i=qr(r,n,e,t,!0),a=i[0],c=i[1];o=B*(s=Zr(a-e,(c-t)/B))}break;case 1:0===A.shape?s=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(s=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)s=o=Math.max(Zr(e,t),Zr(e,t-n),Zr(e-r,t),Zr(e-r,t-n));else if(1===A.shape){B=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var l=qr(r,n,e,t,!1);a=l[0],c=l[1],o=B*(s=Zr(a-e,(c-t)/B))}}return Array.isArray(A.size)&&(s=Er(A.size[0],r),o=2===A.size.length?Er(A.size[1],n):s),[s,o]}(t,m,E,p,y),v=I[0],K=I[1],v>0&&K>0&&(b=r.ctx.createRadialGradient(F+m,f+E,0,F+m,f+E,v),Wr(t.stops,2*v).forEach((function(A){return b.addColorStop(A.stop,Mr(A.color))})),r.path(h),r.ctx.fillStyle=b,v!==K?(L=A.bounds.left+.5*A.bounds.width,D=A.bounds.top+.5*A.bounds.height,S=1/(x=K/v),r.ctx.save(),r.ctx.translate(L,D),r.ctx.transform(1,0,0,x,0,0),r.ctx.translate(-L,-D),r.ctx.fillRect(F,S*(f-D)+D,p,y*S),r.ctx.restore()):r.ctx.fill())),M.label=6;case 6:return e--,[2]}}))},r=this,n=0,s=A.styles.backgroundImage.slice(0).reverse(),B.label=1;case 1:return n0?2!==i.style?[3,5]:[4,this.renderDashedDottedBorder(i.color,i.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return c.sent(),[3,11];case 5:return 3!==i.style?[3,7]:[4,this.renderDashedDottedBorder(i.color,i.width,s,A.curves,3)];case 6:return c.sent(),[3,11];case 7:return 4!==i.style?[3,9]:[4,this.renderDoubleBorder(i.color,i.width,s,A.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(i.color,s,A.curves)];case 10:c.sent(),c.label=11;case 11:s++,c.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,e,t,r,n){return He(this,void 0,void 0,(function(){var s,o,B,i,a,c,l,g,u,Q,w,C,U,d,h,F;return me(this,(function(f){return this.ctx.save(),s=function(A,e){switch(e){case 0:return Fi(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Fi(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Fi(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Fi(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(r,t),o=hi(r,t),2===n&&(this.path(o),this.ctx.clip()),si(o[0])?(B=o[0].start.x,i=o[0].start.y):(B=o[0].x,i=o[0].y),si(o[1])?(a=o[1].end.x,c=o[1].end.y):(a=o[1].x,c=o[1].y),l=0===t||2===t?Math.abs(B-a):Math.abs(i-c),this.ctx.beginPath(),3===n?this.formatPath(s):this.formatPath(o.slice(0,2)),g=e<3?3*e:2*e,u=e<3?2*e:e,3===n&&(g=e,u=e),Q=!0,l<=2*g?Q=!1:l<=2*g+u?(g*=w=l/(2*g+u),u*=w):(C=Math.floor((l+u)/(g+u)),U=(l-C*g)/(C-1),u=(d=(l-(C+1)*g)/C)<=0||Math.abs(u-U){console.log(`coai-${s.step}`);const A=document.getElementById(`coai-${s.step}`);if(A){const e=A.getBoundingClientRect();s.box={left:e.x+"px",top:e.y+"px",width:e.width+"px",height:e.height+"px"}}else g()};y((()=>{c(),window.addEventListener("resize",l)}));const l=()=>{c()};R((()=>{window.removeEventListener("resize",l)}));const g=()=>{s.step>=3?u():(s.step=s.step+1,c())},u=function(){var A=n((function*(){B.value?B.value.coaiGuide=!0:B.value={coaiGuide:!0};try{yield aA({guideTag:"guideInfo",guideValue:JSON.stringify(B.value)})}catch(A){console.log(A)}o.value=!1}));return function(){return A.apply(this,arguments)}}();return()=>C(I,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",BA.guidePopup],show:o.value,"onUpdate:show":A=>o.value=A},{default:()=>[C("div",{class:BA.content,onClick:()=>g()},[s.step!=s.steps.length-1&&C("div",{class:BA.backBtn,onClick:A=>{A.stopPropagation(),u()}},[P("跳过")]),C("div",{class:BA.box,style:e(e({},s.box),s.steps[s.step].boxStyle),id:`modeType-${s.step}`},[s.steps.map(((A,e)=>{var t,r;return C("div",{onClick:A=>A.stopPropagation(),class:BA.item,style:{display:e===s.step?"":"none",left:`${null===(t=A.eleRect)||void 0===t?void 0:t.left}px`,top:`${null===(r=A.eleRect)||void 0===r?void 0:r.top}px`}},[C("img",{class:BA.img,style:A.imgStyle,src:A.img},null),C("img",{class:BA.iconHead,style:A.handStyle,src:oA("indexDot.png")},null),C("div",{class:BA.btns,style:A.btnsStyle},[s.step+1==s.steps.length?C(b,null,[C(N,{class:[BA.btn],round:!0,type:"primary",onClick:()=>u()},{default:()=>[P("完成")]}),C(N,{class:[BA.btn,BA.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{s.step=0,c()}},{default:()=>[P("再看一遍")]})]):C(N,{class:BA.btn,round:!0,type:"primary",onClick:()=>g()},{default:()=>[P("下一步 ("),s.step+1,P("/"),s.steps.length,P(")")]})])])}))])])]})}});A("default",i({name:"co-ai",setup(){var A,t;const s=_(),o=a({page:1,rows:999,subjectId:(null===(A=J.user.data)||void 0===A?void 0:A.subjectId)||"",musicTagIds:s.query.musicTagId?[s.query.musicTagId]:[]}),B=a({page:1,rows:20,status:1,keyword:"",musicSheetCategoriesId:s.query.id}),i=a({musicSheetCategoriesName:s.query.name,typeIndex:0,musicIndex:0,showMusicImg:"first",popoverShow:!1,popoverMusicShow:!1,types:[],musics:[],loading:!0,finshed:!1,searchNoticeShow:!1,searchNotice:{left:"",top:"",width:"",height:""},showVip:!1,vipMember:null===(t=J.user.data)||void 0===t?void 0:t.vipMember}),c=r(),l=r(!1),g=X((()=>[{value:"staff",text:"五线谱"},{value:"first",text:"首调"},{value:"fixed",text:"固定调"}].map(((A,t)=>e(e({},A),{},{color:i.showMusicImg===A.value?"var(--van-primary-color)":"",className:i.showMusicImg===A.value?"fontBlod":""}))))),u=X((()=>i.types.map((A=>e(e({},A),{},{color:B.musicSheetCategoriesId==A.value?"var(--van-primary-color)":"",className:B.musicSheetCategoriesId==A.value?"fontBlod":""}))))),Q=()=>{W({api:"goBack"})},w=function(){var A=n((function*(){z({message:"正在保存",duration:0});try{(A=c.value,e={backgroundColor:"#fff",allowTaint:!0,useCORS:!0},void 0===e&&(e={}),Ni(A,e)).then(function(){var A=n((function*(A){var e=A.toDataURL("image/png",1);setTimeout((()=>{$("已保存到相册")}),500);yield AA({api:"savePicture",content:{base64:e}})}));return function(e){return A.apply(this,arguments)}}()).catch((()=>{setTimeout((()=>{$("保存失败")}),500)}))}catch(t){setTimeout((()=>{$("保存失败")}),500)}var A,e}));return function(){return A.apply(this,arguments)}}(),d=function(){var A=n((function*(){try{var A;const t=yield nA(e({},o));if(200===t.code&&Array.isArray(null==t||null===(A=t.data)||void 0===A?void 0:A.rows)){const A=[];t.data.rows.forEach((e=>{A.push({value:e.id,text:e.name})})),i.types=A}}catch(t){console.log("🚀 ~ error:",t)}}));return function(){return A.apply(this,arguments)}}(),h=function(){var A=n((function*(){i.loading=!0;try{var A;const t=yield sA(e({},B));200===t.code&&Array.isArray(null==t||null===(A=t.data)||void 0===A?void 0:A.rows)&&(i.musics=[...i.musics,...t.data.rows],i.finshed=!t.data.next),l.value=!0}catch(t){console.log("🚀 ~ error:",t)}i.loading=!1}));return function(){return A.apply(this,arguments)}}(),F=()=>{B.page=1,i.musics=[],h()},f=r();return y(n((function*(){W({api:"setStatusBarVisibility",content:{isVisibility:0}}),yield d(),h();const A=new IntersectionObserver((A=>{A[0].intersectionRatio>0&&(i.loading||i.finshed||(B.page=B.page+1,h()))}));k((()=>{A.observe(f.value)}));const e=function(){var A=n((function*(){const A=yield eA.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});200===(null==A?void 0:A.code)&&(i.vipMember=A.data.vipMember)}));return function(){return A.apply(this,arguments)}}();Y("webViewOnResume",(()=>{console.log("页面显示"),e(),i.typeIndex=0,i.musicIndex=0,F()})),(()=>{const A=document.querySelector(".searchNotice .van-field__control");if(A){const e=A.getBoundingClientRect();i.searchNotice.left=e.x+"px",i.searchNotice.top=e.y+"px",i.searchNotice.width=e.width+"px",i.searchNotice.height=e.height+"px"}})()}))),()=>{var A,t,r,n,s;return C("div",{class:Ue.container},[C("div",{class:Ue.back,onClick:Q},[C("img",{src:rA},null)]),C("div",{class:Ue.musicCFixed},[C(Ce,{show:i.popoverMusicShow,"onUpdate:show":A=>i.popoverMusicShow=A,class:Ue.popoverMusic,actions:u.value,placement:"bottom",showArrow:!1,onSelect:A=>{A.value!=B.musicSheetCategoriesId&&(i.musics=[],B.musicSheetCategoriesId=A.value,i.musicSheetCategoriesName=A.text,i.popoverMusicShow=!1,h())}},{reference:()=>C("span",{class:Ue.musicName},[i.musicSheetCategoriesName,C(U,{name:"arrow-down"},null)])})]),C("div",{class:Ue.content},[C("div",{class:[Ue.leftContent]},[C("div",{class:Ue.leftBg2},null),C("div",{class:Ue.center},[C("div",{class:Ue.centerSearch},[C("div",{id:"coai-0"},[C(tA,{class:["searchNotice",i.searchNoticeShow?Ue.searchNoticeShow:""],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",modelValue:B.keyword,onFocus:()=>i.searchNoticeShow=!1,onBlur:A=>{B.keyword=(null==A?void 0:A.trim())||"",requestAnimationFrame((()=>{requestAnimationFrame((()=>{B.keyword&&(i.searchNoticeShow=!0)}))}))},onSearch:A=>{B.keyword=A,F()}},null)])]),C("div",{class:Ue.musicContent},[i.musics.map(((A,e)=>C("div",{class:[Ue.musicItem,i.musicIndex===e?Ue.musicActive:Ue.disableNotic],onClick:()=>i.musicIndex=e},[C("img",{class:Ue.musicAvtor,src:A.titleImg,onLoad:A=>{A.target.setAttribute("loaded","true")}},null),C("div",{class:Ue.musicInfo},[C("div",{class:Ue.musicName},[C(CA,{text:A.musicSheetName,class:Ue.noticeBar,background:"none"},null)]),C("div",{class:Ue.musicDes},[C("div",{class:Ue.musicFavitor},[A.usedNum]),C("div",{class:[Ue.musicAuthor,"van-ellipsis"]},[A.composer||"佚名"])])])]))),!i.finshed&&C("div",{ref:f,class:Ue.loadingWrap},[C(Z,{color:"#259CFE"},null)]),!i.loading&&0===i.musics.length&&C("div",{class:Ue.empty},[C(q,{description:"暂无曲谱"},null)])])])]),C("div",{class:[Ue.opacityBg,Ue.right]},[C("div",{class:Ue.rightBox},[C("div",{ref:c},[C("div",{class:Ue["right-musicName"]},[null===(A=i.musics[i.musicIndex])||void 0===A?void 0:A.musicSheetName]),"first"===i.showMusicImg?C(b,null,[null===(t=i.musics[i.musicIndex])||void 0===t||null===(r=t.musicSvg)||void 0===r?void 0:r.split(",").map(((A,e)=>C("img",{class:Ue.staff,src:A+"?v="+Date.now(),key:A,crossorigin:"anonymous"},null)))]):"fixed"===i.showMusicImg?C(b,null,[C(j,{name:"van-fade"},{default:()=>{var A,e;return[null===(A=i.musics[i.musicIndex])||void 0===A||null===(e=A.musicJianSvg)||void 0===e?void 0:e.split(",").map(((A,e)=>C("img",{class:Ue.staff,src:A+"?v="+Date.now(),key:A,crossorigin:"anonymous"},null)))]}})]):C(b,null,[null===(n=i.musics[i.musicIndex])||void 0===n||null===(s=n.musicImg)||void 0===s?void 0:s.split(",").map(((A,e)=>C("img",{class:Ue.staff,src:A+"?v="+Date.now(),key:A,crossorigin:"anonymous"},null)))])])]),C("div",{class:Ue.rightBtns},[C(Ce,{show:i.popoverShow,"onUpdate:show":A=>i.popoverShow=A,class:Ue.popover,actions:g.value,placement:"top-start",onSelect:A=>{i.showMusicImg=A.value,i.popoverShow=!1}},{reference:()=>C("img",{id:"coai-1",src:he},null)}),C("img",{id:"coai-2",src:de,onClick:w},null),C("div",{class:Ue.rightBtnsRight,id:"coai-3"},[C("img",{src:Fe,onClick:()=>(()=>{var A;if(!i.vipMember)return void(i.showVip=!0);let e=`${location.origin}/instrument?id=${null===(A=i.musics[i.musicIndex])||void 0===A?void 0:A.id}&showGuide=true`;console.log(e),W({api:"openAccompanyWebView",content:{url:e,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}})})()},null)])])])]),i.searchNotice.width&&i.searchNoticeShow&&C("div",{class:Ue.searchNotice,style:e({},i.searchNotice)},[C(CA,{text:B.keyword,color:"#333",background:"none"},null)]),l.value&&C(Ji,null,null),C(I,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:i.showVip,"onUpdate:show":A=>i.showVip=A},{default:()=>[C(cA,{onClose:A=>{A&&W({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),i.showVip=!1}},null)]})])}}}))}}}))}();