Files
blog/dist/assets/Home-DB27eT-U.js

195 lines
182 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{P as B0,Q as P0,r as re,w as Je,x as te,g as R0,d as Ve,E as lr,b as yn,c as We,o as Ee,_ as Fl,h as or,L as en,i as O,R as Bs,M as we,a as ce,O as De,j as bt,F as ar,N as Rl,n as Rn,S as li,t as ln,f as K,D as $l,p as Ps,T as Nl,k as Rs,I as D0,s as tn,l as At,m as ql,G as Ds,U as F0,V as $0,v as Fs,W as $s,q as N0,y as q0,z as ys,A as W0,B as z0,C as U0,u as H0,K as Dl,X as nr,Y as V0,Z as Pn,$ as G0,a0 as er,a1 as Y0,a2 as K0,a3 as Z0,a4 as X0,a5 as J0,a6 as Q0,a7 as j0,a8 as eg,a9 as tg,aa as Jr}from"./index-Ciy1cxtB.js";var _s;const Ns=typeof window<"u",ng=u=>typeof u=="string",El=()=>{};Ns&&((_s=window?.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rg(u){return B0()?(P0(u),!0):!1}function rr(u){var d;const i=te(u);return(d=i?.$el)!=null?d:i}const qs=Ns?window:void 0;function Qr(...u){let d,i,m,p;if(ng(u[0])?([i,m,p]=u,d=qs):[d,i,m,p]=u,!d)return El;let _=El;const v=Je(()=>rr(d),f=>{_(),f&&(f.addEventListener(i,m,p),_=()=>{f.removeEventListener(i,m,p),_=El})},{immediate:!0,flush:"post"}),a=()=>{v(),_()};return rg(a),a}function ig(u,d,i={}){const{window:m=qs,ignore:p,capture:_=!0,detectIframe:v=!1}=i;if(!m)return;const a=re(!0);let f;const w=g=>{m.clearTimeout(f);const L=rr(u),A=g.composedPath();!L||L===g.target||A.includes(L)||!a.value||p&&p.length>0&&p.some(y=>{const k=rr(y);return k&&(g.target===k||A.includes(k))})||d(g)},x=[Qr(m,"click",w,{passive:!0,capture:_}),Qr(m,"pointerdown",g=>{const L=rr(u);a.value=!!L&&!g.composedPath().includes(L)},{passive:!0}),Qr(m,"pointerup",g=>{if(g.button===0){const L=g.composedPath();g.composedPath=()=>L,f=m.setTimeout(()=>w(g),50)}},{passive:!0}),v&&Qr(m,"blur",g=>{var L;const A=rr(u);((L=document.activeElement)==null?void 0:L.tagName)==="IFRAME"&&!A?.contains(document.activeElement)&&d(g)})].filter(Boolean);return()=>x.forEach(g=>g())}const ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bs="__vueuse_ssr_handlers__";ws[bs]=ws[bs]||{};var xs;(function(u){u.UP="UP",u.RIGHT="RIGHT",u.DOWN="DOWN",u.LEFT="LEFT",u.NONE="NONE"})(xs||(xs={}));var Ol={exports:{}},Cs;function lg(){return Cs||(Cs=1,function(u,d){(function(i,m){u.exports=m()})(window,function(){return function(i){var m={};function p(_){if(m[_])return m[_].exports;var v=m[_]={i:_,l:!1,exports:{}};return i[_].call(v.exports,v,v.exports,p),v.l=!0,v.exports}return p.m=i,p.c=m,p.d=function(_,v,a){p.o(_,v)||Object.defineProperty(_,v,{configurable:!1,enumerable:!0,get:a})},p.r=function(_){Object.defineProperty(_,"__esModule",{value:!0})},p.n=function(_){var v=_&&_.__esModule?function(){return _.default}:function(){return _};return p.d(v,"a",v),v},p.o=function(_,v){return Object.prototype.hasOwnProperty.call(_,v)},p.p="/",p(p.s=41)}([function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=/mobile/i.test(window.navigator.userAgent),v={secondToTime:function(a){var f=Math.floor(a/3600),w=Math.floor((a-3600*f)/60),x=Math.floor(a-3600*f-60*w);return(f>0?[f,w,x]:[w,x]).map(function(o){return o<10?"0"+o:""+o}).join(":")},getElementViewLeft:function(a){var f=a.offsetLeft,w=a.offsetParent,x=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;w!==null&&w!==a;)f+=w.offsetLeft,w=w.offsetParent;else for(;w!==null;)f+=w.offsetLeft,w=w.offsetParent;return f-x},getElementViewTop:function(a,f){for(var w,x=a.offsetTop,o=a.offsetParent;o!==null;)x+=o.offsetTop,o=o.offsetParent;return w=document.body.scrollTop+document.documentElement.scrollTop,f?x:x-w},isMobile:_,storage:{set:function(a,f){localStorage.setItem(a,f)},get:function(a){return localStorage.getItem(a)}},nameMap:{dragStart:_?"touchstart":"mousedown",dragMove:_?"touchmove":"mousemove",dragEnd:_?"touchend":"mouseup"},randomOrder:function(a){return function(f){for(var w=f.length-1;w>=0;w--){var x=Math.floor(Math.random()*(w+1)),o=f[x];f[x]=f[w],f[w]=o}return f}([].concat(function(f){if(Array.isArray(f)){for(var w=0,x=Array(f.length);w<f.length;w++)x[w]=f[w];return x}return Array.from(f)}(Array(a))).map(function(f,w){return w}))}};m.default=v},function(i,m,p){var _=p(2);i.exports=function(v){v=v||{};var a="",f=_.$each,w=v.audio,x=(v.$value,v.$index,_.$escape),o=v.theme,g=v.index;return f(w,function(L,A){a+=`
<li>
<span class="aplayer-list-cur" style="background-color: `,a+=x(L.theme||o),a+=`;"></span>
<span class="aplayer-list-index">`,a+=x(A+g),a+=`</span>
<span class="aplayer-list-title">`,a+=x(L.name),a+=`</span>
<span class="aplayer-list-author">`,a+=x(L.artist),a+=`</span>
</li>
`}),a}},function(i,m,p){i.exports=p(15)},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=q(p(33)),v=q(p(32)),a=q(p(31)),f=q(p(30)),w=q(p(29)),x=q(p(28)),o=q(p(27)),g=q(p(26)),L=q(p(25)),A=q(p(24)),y=q(p(23)),k=q(p(22)),F=q(p(21)),E=q(p(20)),B=q(p(19));function q(C){return C&&C.__esModule?C:{default:C}}var $={play:_.default,pause:v.default,volumeUp:a.default,volumeDown:f.default,volumeOff:w.default,orderRandom:x.default,orderList:o.default,menu:g.default,loopAll:L.default,loopOne:A.default,loopNone:y.default,loading:k.default,right:F.default,skip:E.default,lrc:B.default};m.default=$},function(i,m,p){var _,v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};_=function(){return this}();try{_=_||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":v(window))==="object"&&(_=window)}i.exports=_},function(i,m,p){var _,v,a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};(v=typeof(_=function(){if((typeof window>"u"?"undefined":a(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var f=function(o,g,L,A){return L>A?g:o+(g-o)*((y=L/A)<.5?4*y*y*y:(y-1)*(2*y-2)*(2*y-2)+1);var y},w=function(o,g,L,A){g=g||500;var y=(A=A||window).scrollTop||window.pageYOffset;if(typeof o=="number")var k=parseInt(o);else var k=function(B,q){return B.nodeName==="HTML"?-q:B.getBoundingClientRect().top+q}(o,y);var F=Date.now(),E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(B){window.setTimeout(B,15)};(function B(){var q=Date.now()-F;A!==window?A.scrollTop=f(y,k,q,g):window.scroll(0,f(y,k,q,g)),q>g?typeof L=="function"&&L(o):E(B)})()},x=function(o){if(!o.defaultPrevented){o.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var g=document.getElementById(this.hash.substring(1));if(!g)return;w(g,500,function(L){location.replace("#"+L.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var o,g=document.querySelectorAll('a[href^="#"]:not([href="#"])'),L=g.length;o=g[--L];)o.addEventListener("click",x,!1)}),w}})=="function"?_.call(m,p,m,i):_)===void 0||(i.exports=v)},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function o(g,L){for(var A=0;A<L.length;A++){var y=L[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,L,A){return L&&o(g.prototype,L),A&&o(g,A),g}}(),v=w(p(1)),a=w(p(0)),f=w(p(5));function w(o){return o&&o.__esModule?o:{default:o}}var x=function(){function o(g){(function(L,A){if(!(L instanceof A))throw new TypeError("Cannot call a class as a function")})(this,o),this.player=g,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return _(o,[{key:"bindEvents",value:function(){var g=this;this.player.template.list.addEventListener("click",function(L){var A=void 0;A=L.target.tagName.toUpperCase()==="LI"?L.target:L.target.parentElement;var y=parseInt(A.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;y!==g.index?(g.switch(y),g.player.play()):g.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(g){this.player.events.trigger("listadd",{audios:g}),Object.prototype.toString.call(g)!=="[object Array]"&&(g=[g]),g.map(function(y){return y.name=y.name||y.title||"Audio name",y.artist=y.artist||y.author||"Audio artist",y.cover=y.cover||y.pic,y.type=y.type||"normal",y});var L=!(this.audios.length>1),A=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,v.default)({theme:this.player.options.theme,audio:g,index:this.audios.length+1}),this.audios=this.audios.concat(g),L&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=a.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=g.theme||this.player.options.theme,A&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(g){if(this.player.events.trigger("listremove",{index:g}),this.audios[g])if(this.audios.length>1){var L=this.player.container.querySelectorAll(".aplayer-list li");L[g].remove(),this.audios.splice(g,1),this.player.lrc&&this.player.lrc.remove(g),g===this.index&&(this.audios[g]?this.switch(g):this.switch(g-1)),this.index>g&&this.index--;for(var A=g;A<L.length;A++)L[A].getElementsByClassName("aplayer-list-index")[0].textContent=A;this.audios.length===1&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(g){if(this.player.events.trigger("listswitch",{index:g}),g!==void 0&&this.audios[g]){this.index=g;var L=this.audios[this.index];this.player.template.pic.style.backgroundImage=L.cover?"url('"+L.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=L.name,this.player.template.author.innerHTML=L.artist?" - "+L.artist:"";var A=this.player.container.getElementsByClassName("aplayer-list-light")[0];A&&A.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,f.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(L),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),this.player.duration!==1&&(this.player.template.dtime.innerHTML=a.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=a.default.secondToTime(0)}}]),o}();m.default=x},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function a(f,w){for(var x=0;x<w.length;x++){var o=w[x];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(f,o.key,o)}}return function(f,w,x){return w&&a(f.prototype,w),x&&a(f,x),f}}(),v=function(){function a(){(function(f,w){if(!(f instanceof w))throw new TypeError("Cannot call a class as a function")})(this,a),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return _(a,[{key:"on",value:function(f,w){this.type(f)&&typeof w=="function"&&(this.events[f]||(this.events[f]=[]),this.events[f].push(w))}},{key:"trigger",value:function(f,w){if(this.events[f]&&this.events[f].length)for(var x=0;x<this.events[f].length;x++)this.events[f][x](w)}},{key:"type",value:function(f){return this.playerEvents.indexOf(f)!==-1?"player":this.audioEvents.indexOf(f)!==-1?"audio":(console.error("Unknown event name: "+f),null)}}]),a}();m.default=v},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function a(f,w){for(var x=0;x<w.length;x++){var o=w[x];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(f,o.key,o)}}return function(f,w,x){return w&&a(f.prototype,w),x&&a(f,x),f}}(),v=function(){function a(f){(function(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")})(this,a),this.player=f,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(w){window.setTimeout(w,1e3/60)},this.types=["loading"],this.init()}return _(a,[{key:"init",value:function(){var f=this;this.types.forEach(function(w){f["init"+w+"Checker"]()})}},{key:"initloadingChecker",value:function(){var f=this,w=0,x=0,o=!1;this.loadingChecker=setInterval(function(){f.enableloadingChecker&&(x=f.player.audio.currentTime,o||x!==w||f.player.audio.paused||(f.player.container.classList.add("aplayer-loading"),o=!0),o&&x>w&&!f.player.audio.paused&&(f.player.container.classList.remove("aplayer-loading"),o=!1),w=x)},100)}},{key:"enable",value:function(f){this["enable"+f+"Checker"]=!0,f==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(f){this["enable"+f+"Checker"]=!1}},{key:"destroy",value:function(){var f=this;this.types.forEach(function(w){f["enable"+w+"Checker"]=!1,f[w+"Checker"]&&clearInterval(f[w+"Checker"])})}}]),a}();m.default=v},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function x(o,g){for(var L=0;L<g.length;L++){var A=g[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(o,A.key,A)}}return function(o,g,L){return g&&x(o.prototype,g),L&&x(o,L),o}}(),v=f(p(0)),a=f(p(3));function f(x){return x&&x.__esModule?x:{default:x}}var w=function(){function x(o){(function(g,L){if(!(g instanceof L))throw new TypeError("Cannot call a class as a function")})(this,x),this.player=o,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),v.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return _(x,[{key:"initPlayButton",value:function(){var o=this;this.player.template.pic.addEventListener("click",function(){o.player.toggle()})}},{key:"initPlayBar",value:function(){var o=this,g=function(A){var y=((A.clientX||A.changedTouches[0].clientX)-v.default.getElementViewLeft(o.player.template.barWrap))/o.player.template.barWrap.clientWidth;y=Math.max(y,0),y=Math.min(y,1),o.player.bar.set("played",y,"width"),o.player.lrc&&o.player.lrc.update(y*o.player.duration),o.player.template.ptime.innerHTML=v.default.secondToTime(y*o.player.duration)},L=function A(y){document.removeEventListener(v.default.nameMap.dragEnd,A),document.removeEventListener(v.default.nameMap.dragMove,g);var k=((y.clientX||y.changedTouches[0].clientX)-v.default.getElementViewLeft(o.player.template.barWrap))/o.player.template.barWrap.clientWidth;k=Math.max(k,0),k=Math.min(k,1),o.player.bar.set("played",k,"width"),o.player.seek(o.player.bar.get("played","width")*o.player.duration),o.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(v.default.nameMap.dragStart,function(){o.player.disableTimeupdate=!0,document.addEventListener(v.default.nameMap.dragMove,g),document.addEventListener(v.default.nameMap.dragEnd,L)})}},{key:"initVolumeButton",value:function(){var o=this;this.player.template.volumeButton.addEventListener("click",function(){o.player.audio.muted?(o.player.audio.muted=!1,o.player.switchVolumeIcon(),o.player.bar.set("volume",o.player.volume(),"height")):(o.player.audio.muted=!0,o.player.switchVolumeIcon(),o.player.bar.set("volume",0,"height"))});var g=function(A){var y=1-((A.clientY||A.changedTouches[0].clientY)-v.default.getElementViewTop(o.player.template.volumeBar,o.player.options.fixed))/o.player.template.volumeBar.clientHeight;y=Math.max(y,0),y=Math.min(y,1),o.player.volume(y)},L=function A(y){o.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(v.default.nameMap.dragEnd,A),document.removeEventListener(v.default.nameMap.dragMove,g);var k=1-((y.clientY||y.changedTouches[0].clientY)-v.default.getElementViewTop(o.player.template.volumeBar,o.player.options.fixed))/o.player.template.volumeBar.clientHeight;k=Math.max(k,0),k=Math.min(k,1),o.player.volume(k)};this.player.template.volumeBarWrap.addEventListener(v.default.nameMap.dragStart,function(){o.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(v.default.nameMap.dragMove,g),document.addEventListener(v.default.nameMap.dragEnd,L)})}},{key:"initOrderButton",value:function(){var o=this;this.player.template.order.addEventListener("click",function(){o.player.options.order==="list"?(o.player.options.order="random",o.player.template.order.innerHTML=a.default.orderRandom):o.player.options.order==="random"&&(o.player.options.order="list",o.player.template.order.innerHTML=a.default.orderList)})}},{key:"initLoopButton",value:function(){var o=this;this.player.template.loop.addEventListener("click",function(){o.player.list.audios.length>1?o.player.options.loop==="one"?(o.player.options.loop="none",o.player.template.loop.innerHTML=a.default.loopNone):o.player.options.loop==="none"?(o.player.options.loop="all",o.player.template.loop.innerHTML=a.default.loopAll):o.player.options.loop==="all"&&(o.player.options.loop="one",o.player.template.loop.innerHTML=a.default.loopOne):o.player.options.loop==="one"||o.player.options.loop==="all"?(o.player.options.loop="none",o.player.template.loop.innerHTML=a.default.loopNone):o.player.options.loop==="none"&&(o.player.options.loop="all",o.player.template.loop.innerHTML=a.default.loopAll)})}},{key:"initMenuButton",value:function(){var o=this;this.player.template.menu.addEventListener("click",function(){o.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var o=this;this.player.template.miniSwitcher.addEventListener("click",function(){o.player.setMode(o.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var o=this;this.player.template.skipBackButton.addEventListener("click",function(){o.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){o.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){o.player.toggle()})}},{key:"initLrcButton",value:function(){var o=this;this.player.template.lrcButton.addEventListener("click",function(){o.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(o.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),o.player.lrc&&o.player.lrc.show()):(o.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),o.player.lrc&&o.player.lrc.hide())})}}]),x}();m.default=w},function(i,m,p){var _=p(2);i.exports=function(v){v=v||{};var a="",f=_.$each,w=v.lyrics,x=(v.$value,v.$index,_.$escape);return f(w,function(o,g){a+=`
<p`,g===0&&(a+=' class="aplayer-lrc-current"'),a+=">",a+=x(o[1]),a+=`</p>
`}),a}},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _,v=function(){function x(o,g){for(var L=0;L<g.length;L++){var A=g[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(o,A.key,A)}}return function(o,g,L){return g&&x(o.prototype,g),L&&x(o,L),o}}(),a=p(10),f=(_=a)&&_.__esModule?_:{default:_},w=function(){function x(o){(function(g,L){if(!(g instanceof L))throw new TypeError("Cannot call a class as a function")})(this,x),this.container=o.container,this.async=o.async,this.player=o.player,this.parsed=[],this.index=0,this.current=[]}return v(x,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||o<this.current[this.index][0]||!this.current[this.index+1]||o>=this.current[this.index+1][0])for(var g=0;g<this.current.length;g++)o>=this.current[g][0]&&(!this.current[g+1]||o<this.current[g+1][0])&&(this.index=g,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[g].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(o){var g=this;if(!this.parsed[o])if(this.async){this.parsed[o]=[["00:00","Loading"]];var L=new XMLHttpRequest;L.onreadystatechange=function(){o===g.player.list.index&&L.readyState===4&&(L.status>=200&&L.status<300||L.status===304?g.parsed[o]=g.parse(L.responseText):(g.player.notice("LRC file request fails: status "+L.status),g.parsed[o]=[["00:00","Not available"]]),g.container.innerHTML=(0,f.default)({lyrics:g.parsed[o]}),g.update(0),g.current=g.parsed[o])};var A=this.player.list.audios[o].lrc;L.open("get",A,!0),L.send(null)}else this.player.list.audios[o].lrc?this.parsed[o]=this.parse(this.player.list.audios[o].lrc):this.parsed[o]=[["00:00","Not available"]];this.container.innerHTML=(0,f.default)({lyrics:this.parsed[o]}),this.update(0),this.current=this.parsed[o]}},{key:"parse",value:function(o){if(o){for(var g=(o=o.replace(/([^\]^\n])\[/g,function(C,N){return N+`
[`})).split(`
`),L=[],A=g.length,y=0;y<A;y++){var k=g[y].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),F=g[y].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(k)for(var E=k.length,B=0;B<E;B++){var q=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(k[B]),$=60*q[1]+parseInt(q[2])+(q[4]?parseInt(q[4])/((q[4]+"").length===2?100:1e3):0);L.push([$,F])}}return(L=L.filter(function(C){return C[1]})).sort(function(C,N){return C[0]-N[0]}),L}return[]}},{key:"remove",value:function(o){this.parsed.splice(o,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),x}();m.default=w},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _,v=function(){function x(o,g){for(var L=0;L<g.length;L++){var A=g[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(o,A.key,A)}}return function(o,g,L){return g&&x(o.prototype,g),L&&x(o,L),o}}(),a=p(0),f=(_=a)&&_.__esModule?_:{default:_},w=function(){function x(o){(function(g,L){if(!(g instanceof L))throw new TypeError("Cannot call a class as a function")})(this,x),this.storageName=o.options.storageName,this.data=JSON.parse(f.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||o.options.volume}return v(x,[{key:"get",value:function(o){return this.data[o]}},{key:"set",value:function(o,g){this.data[o]=g,f.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),x}();m.default=w},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function a(f,w){for(var x=0;x<w.length;x++){var o=w[x];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(f,o.key,o)}}return function(f,w,x){return w&&a(f.prototype,w),x&&a(f,x),f}}(),v=function(){function a(f){(function(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")})(this,a),this.elements={},this.elements.volume=f.volume,this.elements.played=f.played,this.elements.loaded=f.loaded}return _(a,[{key:"set",value:function(f,w,x){w=Math.max(w,0),w=Math.min(w,1),this.elements[f].style[x]=100*w+"%"}},{key:"get",value:function(f,w){return parseFloat(this.elements[f].style[w])/100}}]),a}();m.default=v},function(i,m,p){(function(_){i.exports=!1;try{i.exports=Object.prototype.toString.call(_.process)==="[object process]"}catch{}}).call(this,p(4))},function(i,m,p){(function(_){var v=p(14),a=Object.create(v?_:window),f=/["&'<>]/;a.$escape=function(w){return function(x){var o=""+x,g=f.exec(o);if(!g)return x;var L="",A=void 0,y=void 0,k=void 0;for(A=g.index,y=0;A<o.length;A++){switch(o.charCodeAt(A)){case 34:k="&#34;";break;case 38:k="&#38;";break;case 39:k="&#39;";break;case 60:k="&#60;";break;case 62:k="&#62;";break;default:continue}y!==A&&(L+=o.substring(y,A)),y=A+1,L+=k}return y!==A?L+o.substring(y,A):L}(function x(o){return typeof o!="string"&&(o=o==null?"":typeof o=="function"?x(o.call(o)):JSON.stringify(o)),o}(w))},a.$each=function(w,x){if(Array.isArray(w))for(var o=0,g=w.length;o<g;o++)x(w[o],o);else for(var L in w)x(w[L],L)},i.exports=a}).call(this,p(4))},function(i,m,p){var _=p(2);i.exports=function(v){var a="",f=(v=v||{}).options,w=v.cover,x=_.$escape,o=v.icons,g=function(A){return a+=A},L=v.getObject;return v.theme,v.audio,v.index,f.fixed?(a+=`
<div class="aplayer-list`,f.listFolded&&(a+=" aplayer-list-hide"),a+='"',f.listMaxHeight&&(a+=' style="max-height: ',a+=x(f.listMaxHeight),a+='"'),a+=`>
<ol`,f.listMaxHeight&&(a+=' style="max-height: ',a+=x(f.listMaxHeight),a+='"'),a+=`>
`,g(p(1)(L({theme:f.theme,audio:f.audio,index:1}))),a+=`
</ol>
</div>
<div class="aplayer-body">
<div class="aplayer-pic" style="`,w&&(a+="background-image: url(&quot;",a+=x(w),a+="&quot;);"),a+="background-color: ",a+=x(f.theme),a+=`;">
<div class="aplayer-button aplayer-play">`,a+=o.play,a+=`</div>
</div>
<div class="aplayer-info" style="display: none;">
<div class="aplayer-music">
<span class="aplayer-title">No audio</span>
<span class="aplayer-author"></span>
</div>
<div class="aplayer-controller">
<div class="aplayer-bar-wrap">
<div class="aplayer-bar">
<div class="aplayer-loaded" style="width: 0"></div>
<div class="aplayer-played" style="width: 0; background: `,a+=x(f.theme),a+=`;">
<span class="aplayer-thumb" style="background: `,a+=x(f.theme),a+=`;">
<span class="aplayer-loading-icon">`,a+=o.loading,a+=`</span>
</span>
</div>
</div>
</div>
<div class="aplayer-time">
<span class="aplayer-time-inner">
<span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
</span>
<span class="aplayer-icon aplayer-icon-back">
`,a+=o.skip,a+=`
</span>
<span class="aplayer-icon aplayer-icon-play">
`,a+=o.play,a+=`
</span>
<span class="aplayer-icon aplayer-icon-forward">
`,a+=o.skip,a+=`
</span>
<div class="aplayer-volume-wrap">
<button type="button" class="aplayer-icon aplayer-icon-volume-down">
`,a+=o.volumeDown,a+=`
</button>
<div class="aplayer-volume-bar-wrap">
<div class="aplayer-volume-bar">
<div class="aplayer-volume" style="height: 80%; background: `,a+=x(f.theme),a+=`;"></div>
</div>
</div>
</div>
<button type="button" class="aplayer-icon aplayer-icon-order">
`,f.order==="list"?a+=o.orderList:f.order==="random"&&(a+=o.orderRandom),a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-loop">
`,f.loop==="one"?a+=o.loopOne:f.loop==="all"?a+=o.loopAll:f.loop==="none"&&(a+=o.loopNone),a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-menu">
`,a+=o.menu,a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-lrc">
`,a+=o.lrc,a+=`
</button>
</div>
</div>
</div>
<div class="aplayer-notice"></div>
<div class="aplayer-miniswitcher"><button class="aplayer-icon">`,a+=o.right,a+=`</button></div>
</div>
<div class="aplayer-lrc">
<div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
</div>
`):(a+=`
<div class="aplayer-body">
<div class="aplayer-pic" style="`,w&&(a+="background-image: url(&quot;",a+=x(w),a+="&quot;);"),a+="background-color: ",a+=x(f.theme),a+=`;">
<div class="aplayer-button aplayer-play">`,a+=o.play,a+=`</div>
</div>
<div class="aplayer-info">
<div class="aplayer-music">
<span class="aplayer-title">No audio</span>
<span class="aplayer-author"></span>
</div>
<div class="aplayer-lrc">
<div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
</div>
<div class="aplayer-controller">
<div class="aplayer-bar-wrap">
<div class="aplayer-bar">
<div class="aplayer-loaded" style="width: 0"></div>
<div class="aplayer-played" style="width: 0; background: `,a+=x(f.theme),a+=`;">
<span class="aplayer-thumb" style="background: `,a+=x(f.theme),a+=`;">
<span class="aplayer-loading-icon">`,a+=o.loading,a+=`</span>
</span>
</div>
</div>
</div>
<div class="aplayer-time">
<span class="aplayer-time-inner">
<span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
</span>
<span class="aplayer-icon aplayer-icon-back">
`,a+=o.skip,a+=`
</span>
<span class="aplayer-icon aplayer-icon-play">
`,a+=o.play,a+=`
</span>
<span class="aplayer-icon aplayer-icon-forward">
`,a+=o.skip,a+=`
</span>
<div class="aplayer-volume-wrap">
<button type="button" class="aplayer-icon aplayer-icon-volume-down">
`,a+=o.volumeDown,a+=`
</button>
<div class="aplayer-volume-bar-wrap">
<div class="aplayer-volume-bar">
<div class="aplayer-volume" style="height: 80%; background: `,a+=x(f.theme),a+=`;"></div>
</div>
</div>
</div>
<button type="button" class="aplayer-icon aplayer-icon-order">
`,f.order==="list"?a+=o.orderList:f.order==="random"&&(a+=o.orderRandom),a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-loop">
`,f.loop==="one"?a+=o.loopOne:f.loop==="all"?a+=o.loopAll:f.loop==="none"&&(a+=o.loopNone),a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-menu">
`,a+=o.menu,a+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-lrc">
`,a+=o.lrc,a+=`
</button>
</div>
</div>
</div>
<div class="aplayer-notice"></div>
<div class="aplayer-miniswitcher"><button class="aplayer-icon">`,a+=o.right,a+=`</button></div>
</div>
<div class="aplayer-list`,f.listFolded&&(a+=" aplayer-list-hide"),a+='"',f.listMaxHeight&&(a+=' style="max-height: ',a+=x(f.listMaxHeight),a+='"'),a+=`>
<ol`,f.listMaxHeight&&(a+=' style="max-height: ',a+=x(f.listMaxHeight),a+='"'),a+=`>
`,g(p(1)(L({theme:f.theme,audio:f.audio,index:1}))),a+=`
</ol>
</div>
`),a}},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function x(o,g){for(var L=0;L<g.length;L++){var A=g[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(o,A.key,A)}}return function(o,g,L){return g&&x(o.prototype,g),L&&x(o,L),o}}(),v=f(p(3)),a=f(p(16));function f(x){return x&&x.__esModule?x:{default:x}}var w=function(){function x(o){(function(g,L){if(!(g instanceof L))throw new TypeError("Cannot call a class as a function")})(this,x),this.container=o.container,this.options=o.options,this.randomOrder=o.randomOrder,this.init()}return _(x,[{key:"init",value:function(){var o="";this.options.audio.length&&(o=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,a.default)({options:this.options,icons:v.default,cover:o,getObject:function(g){return g}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),x}();m.default=w},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0}),m.default=function(_){var v={container:_.element||document.getElementsByClassName("aplayer")[0],mini:_.narrow||_.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:_.showlrc||_.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:_.fixed,listMaxHeight:_.listmaxheight||"250px",audio:_.music||[],storageName:"aplayer-setting"};for(var a in v)v.hasOwnProperty(a)&&!_.hasOwnProperty(a)&&(_[a]=v[a]);return Object.prototype.toString.call(_.audio)!=="[object Array]"&&(_.audio=[_.audio]),_.audio.map(function(f){return f.name=f.name||f.title||"Audio name",f.artist=f.artist||f.author||"Audio artist",f.cover=f.cover||f.pic,f.type=f.type||"normal",f}),_.audio.length<=1&&_.loop==="one"&&(_.loop="all"),_}},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(i,m){i.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(i,m,p){var _,v,a=i.exports={};function f(){throw new Error("setTimeout has not been defined")}function w(){throw new Error("clearTimeout has not been defined")}function x(B){if(_===setTimeout)return setTimeout(B,0);if((_===f||!_)&&setTimeout)return _=setTimeout,setTimeout(B,0);try{return _(B,0)}catch{try{return _.call(null,B,0)}catch{return _.call(this,B,0)}}}(function(){try{_=typeof setTimeout=="function"?setTimeout:f}catch{_=f}try{v=typeof clearTimeout=="function"?clearTimeout:w}catch{v=w}})();var o,g=[],L=!1,A=-1;function y(){L&&o&&(L=!1,o.length?g=o.concat(g):A=-1,g.length&&k())}function k(){if(!L){var B=x(y);L=!0;for(var q=g.length;q;){for(o=g,g=[];++A<q;)o&&o[A].run();A=-1,q=g.length}o=null,L=!1,function($){if(v===clearTimeout)return clearTimeout($);if((v===w||!v)&&clearTimeout)return v=clearTimeout,clearTimeout($);try{v($)}catch{try{return v.call(null,$)}catch{return v.call(this,$)}}}(B)}}function F(B,q){this.fun=B,this.array=q}function E(){}a.nextTick=function(B){var q=new Array(arguments.length-1);if(arguments.length>1)for(var $=1;$<arguments.length;$++)q[$-1]=arguments[$];g.push(new F(B,q)),g.length!==1||L||x(k)},F.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=E,a.addListener=E,a.once=E,a.off=E,a.removeListener=E,a.removeAllListeners=E,a.emit=E,a.prependListener=E,a.prependOnceListener=E,a.listeners=function(B){return[]},a.binding=function(B){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(B){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(i,m,p){(function(_,v){(function(a,f){if(!a.setImmediate){var w,x,o,g,L,A=1,y={},k=!1,F=a.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(a);E=E&&E.setTimeout?E:a,{}.toString.call(a.process)==="[object process]"?w=function($){v.nextTick(function(){q($)})}:function(){if(a.postMessage&&!a.importScripts){var $=!0,C=a.onmessage;return a.onmessage=function(){$=!1},a.postMessage("","*"),a.onmessage=C,$}}()?(g="setImmediate$"+Math.random()+"$",L=function($){$.source===a&&typeof $.data=="string"&&$.data.indexOf(g)===0&&q(+$.data.slice(g.length))},a.addEventListener?a.addEventListener("message",L,!1):a.attachEvent("onmessage",L),w=function($){a.postMessage(g+$,"*")}):a.MessageChannel?((o=new MessageChannel).port1.onmessage=function($){q($.data)},w=function($){o.port2.postMessage($)}):F&&"onreadystatechange"in F.createElement("script")?(x=F.documentElement,w=function($){var C=F.createElement("script");C.onreadystatechange=function(){q($),C.onreadystatechange=null,x.removeChild(C),C=null},x.appendChild(C)}):w=function($){setTimeout(q,0,$)},E.setImmediate=function($){typeof $!="function"&&($=new Function(""+$));for(var C=new Array(arguments.length-1),N=0;N<C.length;N++)C[N]=arguments[N+1];var U={callback:$,args:C};return y[A]=U,w(A),A++},E.clearImmediate=B}function B($){delete y[$]}function q($){if(k)setTimeout(q,0,$);else{var C=y[$];if(C){k=!0;try{(function(N){var U=N.callback,G=N.args;switch(G.length){case 0:U();break;case 1:U(G[0]);break;case 2:U(G[0],G[1]);break;case 3:U(G[0],G[1],G[2]);break;default:U.apply(f,G)}})(C)}finally{B($),k=!1}}}}})(typeof self>"u"?_===void 0?void 0:_:self)}).call(this,p(4),p(34))},function(i,m,p){var _=Function.prototype.apply;function v(a,f){this._id=a,this._clearFn=f}m.setTimeout=function(){return new v(_.call(setTimeout,window,arguments),clearTimeout)},m.setInterval=function(){return new v(_.call(setInterval,window,arguments),clearInterval)},m.clearTimeout=m.clearInterval=function(a){a&&a.close()},v.prototype.unref=v.prototype.ref=function(){},v.prototype.close=function(){this._clearFn.call(window,this._id)},m.enroll=function(a,f){clearTimeout(a._idleTimeoutId),a._idleTimeout=f},m.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},m._unrefActive=m.active=function(a){clearTimeout(a._idleTimeoutId);var f=a._idleTimeout;f>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},f))},p(35),m.setImmediate=setImmediate,m.clearImmediate=clearImmediate},function(i,m,p){(function(_){var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},a=setTimeout;function f(){}function w(y){if(!(this instanceof w))throw new TypeError("Promises must be constructed via new");if(typeof y!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],A(y,this)}function x(y,k){for(;y._state===3;)y=y._value;y._state!==0?(y._handled=!0,w._immediateFn(function(){var F=y._state===1?k.onFulfilled:k.onRejected;if(F!==null){var E;try{E=F(y._value)}catch(B){return void g(k.promise,B)}o(k.promise,E)}else(y._state===1?o:g)(k.promise,y._value)})):y._deferreds.push(k)}function o(y,k){try{if(k===y)throw new TypeError("A promise cannot be resolved with itself.");if(k&&((k===void 0?"undefined":v(k))==="object"||typeof k=="function")){var F=k.then;if(k instanceof w)return y._state=3,y._value=k,void L(y);if(typeof F=="function")return void A((E=F,B=k,function(){E.apply(B,arguments)}),y)}y._state=1,y._value=k,L(y)}catch(q){g(y,q)}var E,B}function g(y,k){y._state=2,y._value=k,L(y)}function L(y){y._state===2&&y._deferreds.length===0&&w._immediateFn(function(){y._handled||w._unhandledRejectionFn(y._value)});for(var k=0,F=y._deferreds.length;k<F;k++)x(y,y._deferreds[k]);y._deferreds=null}function A(y,k){var F=!1;try{y(function(E){F||(F=!0,o(k,E))},function(E){F||(F=!0,g(k,E))})}catch(E){if(F)return;F=!0,g(k,E)}}w.prototype.catch=function(y){return this.then(null,y)},w.prototype.then=function(y,k){var F=new this.constructor(f);return x(this,new function(E,B,q){this.onFulfilled=typeof E=="function"?E:null,this.onRejected=typeof B=="function"?B:null,this.promise=q}(y,k,F)),F},w.prototype.finally=function(y){var k=this.constructor;return this.then(function(F){return k.resolve(y()).then(function(){return F})},function(F){return k.resolve(y()).then(function(){return k.reject(F)})})},w.all=function(y){return new w(function(k,F){if(!y||y.length===void 0)throw new TypeError("Promise.all accepts an array");var E=Array.prototype.slice.call(y);if(E.length===0)return k([]);var B=E.length;function q(C,N){try{if(N&&((N===void 0?"undefined":v(N))==="object"||typeof N=="function")){var U=N.then;if(typeof U=="function")return void U.call(N,function(G){q(C,G)},F)}E[C]=N,--B==0&&k(E)}catch(G){F(G)}}for(var $=0;$<E.length;$++)q($,E[$])})},w.resolve=function(y){return y&&(y===void 0?"undefined":v(y))==="object"&&y.constructor===w?y:new w(function(k){k(y)})},w.reject=function(y){return new w(function(k,F){F(y)})},w.race=function(y){return new w(function(k,F){for(var E=0,B=y.length;E<B;E++)y[E].then(k,F)})},w._immediateFn=typeof _=="function"&&function(y){_(y)}||function(y){a(y,0)},w._unhandledRejectionFn=function(y){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",y)},i.exports=w}).call(this,p(36).setImmediate)},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0});var _=function(){function $(C,N){for(var U=0;U<N.length;U++){var G=N[U];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(C,G.key,G)}}return function(C,N,U){return N&&$(C.prototype,N),U&&$(C,U),C}}(),v=E(p(37)),a=E(p(0)),f=E(p(3)),w=E(p(18)),x=E(p(17)),o=E(p(13)),g=E(p(12)),L=E(p(11)),A=E(p(9)),y=E(p(8)),k=E(p(7)),F=E(p(6));function E($){return $&&$.__esModule?$:{default:$}}var B=[],q=function(){function $(C){if(function(G,ge){if(!(G instanceof ge))throw new TypeError("Cannot call a class as a function")}(this,$),this.options=(0,w.default)(C),this.container=this.options.container,this.paused=!0,this.playedPromise=v.default.resolve(),this.mode="normal",this.randomOrder=a.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),a.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var N=this.container.getElementsByClassName("aplayer-lrc-content"),U=0;U<N.length;U++)this.options.audio[U]&&(this.options.audio[U].lrc=N[U].innerHTML);this.template=new x.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new L.default({container:this.template.lrc,async:this.options.lrcType===3,player:this})),this.events=new k.default,this.storage=new g.default(this),this.bar=new o.default(this.template),this.controller=new A.default(this),this.timer=new y.default(this),this.list=new F.default(this),this.initAudio(),this.bindEvents(),this.options.order==="random"?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),B.push(this)}return _($,[{key:"initAudio",value:function(){var C=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var N=function(G){C.audio.addEventListener(C.events.audioEvents[G],function(ge){C.events.trigger(C.events.audioEvents[G],ge)})},U=0;U<this.events.audioEvents.length;U++)N(U);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var C=this;this.on("play",function(){C.paused&&C.setUIPlaying()}),this.on("pause",function(){C.paused||C.setUIPaused()}),this.on("timeupdate",function(){if(!C.disableTimeupdate){C.bar.set("played",C.audio.currentTime/C.duration,"width"),C.lrc&&C.lrc.update();var U=a.default.secondToTime(C.audio.currentTime);C.template.ptime.innerHTML!==U&&(C.template.ptime.innerHTML=U)}}),this.on("durationchange",function(){C.duration!==1&&(C.template.dtime.innerHTML=a.default.secondToTime(C.duration))}),this.on("progress",function(){var U=C.audio.buffered.length?C.audio.buffered.end(C.audio.buffered.length-1)/C.duration:0;C.bar.set("loaded",U,"width")});var N=void 0;this.on("error",function(){C.list.audios.length>1?(C.notice("An audio error has occurred, player will skip forward in 2 seconds."),N=setTimeout(function(){C.skipForward(),C.paused||C.play()},2e3)):C.list.audios.length===1&&C.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){N&&clearTimeout(N)}),this.on("ended",function(){C.options.loop==="none"?C.options.order==="list"?C.list.index<C.list.audios.length-1?(C.list.switch((C.list.index+1)%C.list.audios.length),C.play()):(C.list.switch((C.list.index+1)%C.list.audios.length),C.pause()):C.options.order==="random"&&(C.randomOrder.indexOf(C.list.index)<C.randomOrder.length-1?(C.list.switch(C.nextIndex()),C.play()):(C.list.switch(C.nextIndex()),C.pause())):C.options.loop==="one"?(C.list.switch(C.list.index),C.play()):C.options.loop==="all"&&(C.skipForward(),C.play())})}},{key:"setAudio",value:function(C){this.hls&&(this.hls.destroy(),this.hls=null);var N=C.type;this.options.customAudioType&&this.options.customAudioType[N]?Object.prototype.toString.call(this.options.customAudioType[N])==="[object Function]"?this.options.customAudioType[N](this.audio,C,this):console.error("Illegal customType: "+N):(N&&N!=="auto"||(N=/m3u8(#|\?|$)/i.exec(C.url)?"hls":"normal"),N==="hls"?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(C.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=C.url:this.notice("Error: HLS is not supported."):N==="normal"&&(this.audio.src=C.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[N]&&(this.list.audios[N].theme=C),this.template.listCurs[N]&&(this.template.listCurs[N].style.backgroundColor=C),N===this.list.index&&(this.template.pic.style.backgroundColor=C,this.template.played.style.background=C,this.template.thumb.style.background=C,this.template.volume.style.background=C)}},{key:"seek",value:function(C){C=Math.max(C,0),C=Math.min(C,this.duration),this.audio.currentTime=C,this.bar.set("played",C/this.duration,"width"),this.template.ptime.innerHTML=a.default.secondToTime(C)}},{key:"setUIPlaying",value:function(){var C=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){C.template.button.innerHTML=f.default.pause},100),this.template.skipPlayButton.innerHTML=f.default.pause),this.timer.enable("loading"),this.options.mutex)for(var N=0;N<B.length;N++)this!==B[N]&&B[N].pause()}},{key:"play",value:function(){var C=this;this.setUIPlaying();var N=this.audio.play();N&&N.catch(function(U){console.warn(U),U.name==="NotAllowedError"&&C.setUIPaused()})}},{key:"setUIPaused",value:function(){var C=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){C.template.button.innerHTML=f.default.play},100),this.template.skipPlayButton.innerHTML=f.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=f.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=f.default.volumeDown:this.template.volumeButton.innerHTML=f.default.volumeOff}},{key:"volume",value:function(C,N){return C=parseFloat(C),isNaN(C)||(C=Math.max(C,0),C=Math.min(C,1),this.bar.set("volume",C,"height"),N||this.storage.set("volume",C),this.audio.volume=C,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(C,N){this.events.on(C,N)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(C){this.list.switch(C)}},{key:"addAudio",value:function(C){this.list.add(C)}},{key:"removeAudio",value:function(C){this.list.remove(C)}},{key:"destroy",value:function(){B.splice(B.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=C,C==="mini"?this.container.classList.add("aplayer-narrow"):C==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(C){var N=this,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=C,this.template.notice.style.opacity=G,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:C}),U&&(this.noticeTime=setTimeout(function(){N.template.notice.style.opacity=0,N.events.trigger("noticehide")},U))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var C=this.randomOrder.indexOf(this.list.index);return C===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[C-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var C=this.randomOrder.indexOf(this.list.index);return C===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[C+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),$}();m.default=q},,function(i,m,p){},function(i,m,p){Object.defineProperty(m,"__esModule",{value:!0}),p(40);var _,v=p(38),a=(_=v)&&_.__esModule?_:{default:_};m.default=a.default}]).default})}(Ol)),Ol.exports}var ag=lg();const og=R0(ag),sg={id:"aplayer"},ug=Ve({__name:"aplayer",setup(u){const d=lr({audio:[],info:{fixed:!0,loop:"all",order:"list",preload:"metadata",volume:.5,mutex:!0,lrcType:3}});return yn(async()=>{let _=await(await fetch("https://met.hxyouzi.com/api?server=tencent&type=playlist&id=7567066822")).json();d.audio=[],_.forEach(o=>{d.audio.push({title:o.title,author:o.author,url:o.url,pic:o.pic,lrc:o.lrc})});const v=new og({container:document.getElementById("aplayer"),audio:d.audio,...d.info}),a=document.querySelector("#aplayer > div.aplayer-body > div.aplayer-miniswitcher > button");let f=!0;const w=document.querySelector("#aplayer > div.aplayer-lrc");w.style.display="block",w.style.transform="translateY(50px)",a.addEventListener("click",()=>{f?(w.style.transform="translateY(0)",v.lrc.show(),f=!1):(w.style.transform="translateY(50px)",v.lrc.hide(),v.list.hide(),f=!0)}),document.querySelector(".aplayer-list > ol")?.addEventListener("mousewheel",o=>{o.stopPropagation()}),document.documentElement.clientWidth<767&&a.click()}),(i,m)=>(Ee(),We("div",sg))}}),cg=Fl(ug,[["__scopeId","data-v-8fd9c3ca"]]),fg="/blog/assets/offwork-gFqEdesJ.png",dg="/blog/assets/onwork-DoTs-gez.png";function Il(u,d){const i=new Date(u);if(!(i instanceof Date&&!isNaN(i.getTime()))){console.error("不合法的日期!");return}const m=i.getFullYear(),p=i.getMonth()+1,_=i.getDate(),v=i.getHours(),a=i.getMinutes(),f=i.getSeconds(),w=k=>k.toString().padStart(2,"0"),x=w(p),o=w(_),g=w(v),L=w(a),A=w(f);let y=d.toString();return y=y.replace("YYYY",m.toString()),d.includes("M")&&(y=d.includes("MM")?y.replace("MM",x):y.replace("M",p.toString())),d.includes("D")&&(y=d.includes("DD")?y.replace("DD",o):y.replace("D",_.toString())),d.includes("h")&&(y=d.includes("hh")?y.replace("hh",g):y.replace("h",v.toString())),d.includes("m")&&(y=d.includes("mm")?y.replace("mm",L):y.replace("m",a.toString())),d.includes("s")&&(y=d.includes("ss")?y.replace("ss",A):y.replace("s",f.toString())),y}function Ws(u){if(u===null||typeof u!="object")return u;let d=u instanceof Array?[]:{};if(window.JSON)d=JSON.parse(JSON.stringify(u));else for(const i in u)d[i]=typeof u[i]=="object"?Ws(u[i]):u[i];return d}function hg(u,d,i,m){let p="";return u.forEach(_=>{_[d]===i&&(p=_[m])}),p}const pg={class:"pr-8"},vg={class:"flex items-center"},gg={class:"w-full pr-20 text-center text-[#ec66ab] font-500 text-4xl font-[yj]"},mg={class:"mt-3 flex justify-between"},yg={key:0,class:"absolute top-0 right-4",width:"120",src:fg,alt:""},_g={key:1,class:"absolute top-0 right-4",width:"120",src:dg,alt:""},wg={class:"flex items-center"},bg=["href"],xg={class:"flex items-center"},Cg={class:"text-primary"},Tg={class:"mt-2 justify-between flex items-center"},Lg={class:"devui-link text-[#ec66ab] flex items-center",href:"https://www.baidu.com/s?ie=utf-8&wd=百度新闻",target:"_blank"},Sg={class:"flex items-center"},Ag={class:"ml-12 text-[#ec66ab] font-500"},kg={class:"truncate text-sm mx-[5%]"},Mg={class:"truncate text-sm mx-[5%]"},Eg={class:"w-full flex justify-center"},Og=["src"],Ig={class:"mt-2 text-center"},Bg=Ve({__name:"homeSide",setup(u){const d=re(""),i=re("");let m=null;const p=re(""),_=re(""),v=re([]);function a(){const x=new Date;d.value=Il(x,"hh:mm:ss"),i.value=Il(x,"YYYY 年 MM 月 DD 日")}async function f(){const x=await $http.mix.getJq({date:Il(new Date,"YYYYMMDD")});x.data,p.value=x.data;const o=x.data.solarTerms.slice(0,2);_.value="https://www.hxyouzi.com/img/jq/"+o+".png"}async function w(){const x=await $http.mix.getBdhot();x.data,v.value=x.data.slice(0,5)}return yn(()=>{f(),w(),m=setInterval(()=>{a()},1e3)}),or(()=>{clearInterval(m)}),(x,o)=>{const g=en("icon-time"),L=Bs,A=en("icon-news"),y=en("icon-hot"),k=en("icon-right"),F=en("icon-date");return Ee(),We("div",pg,[O(L,{shadow:"never",class:"mt-4 bg-white"},{title:we(()=>[ce("div",vg,[O(g,{class:"w-5 mr-2"}),o[0]||(o[0]=bt(" 时间日期 "))])]),content:we(()=>[ce("div",gg,De(te(d)),1),ce("div",mg,[ce("span",null,"今年已过了"+De(te(p).dayOfYear)+"天",1),bt(" "+De(te(i)),1)]),te(p).type!=0?(Ee(),We("img",yg)):(Ee(),We("img",_g))]),_:1}),O(L,{shadow:"never",class:"mt-4 bg-white"},{title:we(()=>[ce("div",wg,[O(A,{class:"w-5 mr-2"}),o[1]||(o[1]=bt(" 百度新闻 "))])]),content:we(()=>[(Ee(!0),We(ar,null,Rl(te(v),E=>(Ee(),We("div",{class:"py-1",key:E.id},[ce("a",{class:"devui-link flex justify-between truncate",href:E.url,target:"_blank"},[ce("span",xg,[bt(De(E.index)+". "+De(E.title)+" ",1),Rn(O(y,{class:"ml-2 w-4 text-[red] inline-block"},null,512),[[li,E.index<4]])]),ce("span",Cg,De(E.hot),1)],8,bg)]))),128)),ce("div",Tg,[o[3]||(o[3]=ce("div",{class:"w-2/5 h-px bg-[#ec66ab]"},null,-1)),ce("a",Lg,[o[2]||(o[2]=bt(" 更多 ")),O(k,{class:"ml-1 w-4 text-primary inline-block"})]),o[4]||(o[4]=ce("div",{class:"w-2/5 h-px bg-[#ec66ab]"},null,-1))])]),_:1}),O(L,{shadow:"never",class:"mt-4 bg-white"},{title:we(()=>[ce("div",Sg,[O(F,{class:"w-5 mr-2"}),o[5]||(o[5]=bt(" 农历节气 ")),ce("div",Ag,De(te(p).yearTips)+"年 "+De(te(p).lunarCalendar),1)])]),content:we(()=>[ce("div",kg," 宜:"+De(te(p).suit),1),ce("div",Mg," 忌:"+De(te(p).avoid),1),ce("div",Eg,[ce("img",{class:"mt-2 w-[90%] rounded",src:te(_),alt:""},null,8,Og)]),ce("div",Ig,De(te(p).solarTerms),1)]),_:1})])}}}),Pg=Fl(Bg,[["__scopeId","data-v-c4704ce2"]]),Rg={type:{type:String,default:""},color:{type:String,default:""},titleContent:{type:String,default:""},checked:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},size:{type:String,default:"md"}};function jr(u,d,i){let m=u;return d&&(m+=`__${d}`),i&&(m+=`--${i}`),m}function zs(u,d=!1){const i=d?`.devui-${u}`:`devui-${u}`;return{b:()=>jr(i),e:a=>a?jr(i,a):"",m:a=>a?jr(i,"",a):"",em:(a,f)=>a&&f?jr(i,a,f):""}}function Dg(u){const d=zs("tag");return K(()=>{const{type:i,color:m,deletable:p}=u;return`${d.e("item")} ${d.m(i||(m?"colorful":"")||"default")} ${p?d.m("deletable"):""} ${d.m(u.size)}`})}function Fg(u){return K(()=>{const{color:d,type:i}=u,m={primary:"var(--devui-primary, #5e7ce0)",success:"var(--devui-success, #50d4ab)",warning:"var(--devui-warning, #fac20a)",danger:"var(--devui-danger, #f66f6a)"},p={"blue-w98":"#3383ff","aqua-w98":"#39afcc","olivine-w98":"#2fa898","green-w98":"#4eb15e","yellow-w98":"#b08d1a","orange-w98":"#d47f35","red-w98":"#f66f6a","pink-w98":"#f3689a","purple-w98":"#a97af8"};return!d&&i?m[i]:p[d]||d})}var $g=Ve({name:"DTag",props:Rg,emits:["click","tagDelete","checkedChange"],setup(u,{slots:d,emit:i}){const m=zs("tag"),{type:p,color:_,checked:v,titleContent:a,deletable:f}=ln(u),w=Dg(u),x=Fg(u),o=a.value||"",g=()=>!p.value&&!_.value,L=E=>{i("click",E)},A=E=>{E.stopPropagation(),i("tagDelete",E)},y=K(()=>g()?"":v.value?"#fff":x.value),k=()=>{const E=g()?"error-o":"close";return f.value?O("a",{class:"remove-button",onClick:A},[O(en("d-icon"),{size:"12px",name:E,color:y.value},null)]):null},F=Je(v,E=>{i("checkedChange",E)});return or(()=>F()),()=>{var E;return O("div",{class:m.b(),onClick:L},[O("span",{class:w.value,style:{display:"block",color:y.value,backgroundColor:v.value?x.value:_.value?"var(--devui-base-bg, #ffffff)":""},title:o},[(E=d.default)==null?void 0:E.call(d),k()])])}}});function ai(u,d){let i=u;return typeof d=="object"&&Object.keys(d).forEach(m=>{d[m]&&(i+=` ${m}`)}),i}function ei(u,d,i){let m=u;return d&&(m+=`__${d}`),i&&(m+=`--${i}`),m}function Qe(u,d=!1){const i=d?`.devui-${u}`:`devui-${u}`;return{b:()=>ei(i),e:a=>a?ei(i,a):"",m:a=>a?ei(i,"",a):"",em:(a,f)=>a&&f?ei(i,a,f):""}}var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nn={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(u,d){(function(){var i,m="4.17.21",p=200,_="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",a="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",w=500,x="__lodash_placeholder__",o=1,g=2,L=4,A=1,y=2,k=1,F=2,E=4,B=8,q=16,$=32,C=64,N=128,U=256,G=512,ge=30,Ge="...",Ot=800,Ht=16,ft=1,an=2,xt=3,Fe=1/0,je=9007199254740991,on=17976931348623157e292,dt=NaN,Be=4294967295,It=Be-1,j=Be>>>1,H=[["ary",N],["bind",k],["bindKey",F],["curry",B],["curryRight",q],["flip",G],["partial",$],["partialRight",C],["rearg",U]],Z="[object Arguments]",Ce="[object Array]",ze="[object AsyncFunction]",$e="[object Boolean]",Se="[object Date]",Bt="[object DOMException]",W="[object Error]",ee="[object Function]",he="[object GeneratorFunction]",pe="[object Map]",it="[object Number]",sn="[object Null]",Pe="[object Object]",Dn="[object Promise]",si="[object Proxy]",le="[object RegExp]",Ye="[object Set]",Pt="[object String]",sr="[object Symbol]",Js="[object Undefined]",Fn="[object WeakMap]",Qs="[object WeakSet]",$n="[object ArrayBuffer]",_n="[object DataView]",ui="[object Float32Array]",ci="[object Float64Array]",fi="[object Int8Array]",di="[object Int16Array]",hi="[object Int32Array]",pi="[object Uint8Array]",vi="[object Uint8ClampedArray]",gi="[object Uint16Array]",mi="[object Uint32Array]",js=/\b__p \+= '';/g,eu=/\b(__p \+=) '' \+/g,tu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zl=/&(?:amp|lt|gt|quot|#39);/g,Ul=/[&<>"']/g,nu=RegExp(zl.source),ru=RegExp(Ul.source),iu=/<%-([\s\S]+?)%>/g,lu=/<%([\s\S]+?)%>/g,Hl=/<%=([\s\S]+?)%>/g,au=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ou=/^\w*$/,su=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yi=/[\\^$.*+?()[\]{}|]/g,uu=RegExp(yi.source),_i=/^\s+/,cu=/\s/,fu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,du=/\{\n\/\* \[wrapped with (.+)\] \*/,hu=/,? & /,pu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vu=/[()=,{}\[\]\/\s]/,gu=/\\(\\)?/g,mu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vl=/\w*$/,yu=/^[-+]0x[0-9a-f]+$/i,_u=/^0b[01]+$/i,wu=/^\[object .+?Constructor\]$/,bu=/^0o[0-7]+$/i,xu=/^(?:0|[1-9]\d*)$/,Cu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ur=/($^)/,Tu=/['\n\r\u2028\u2029\\]/g,cr="\\ud800-\\udfff",Lu="\\u0300-\\u036f",Su="\\ufe20-\\ufe2f",Au="\\u20d0-\\u20ff",Gl=Lu+Su+Au,Yl="\\u2700-\\u27bf",Kl="a-z\\xdf-\\xf6\\xf8-\\xff",ku="\\xac\\xb1\\xd7\\xf7",Mu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Eu="\\u2000-\\u206f",Ou=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Zl="A-Z\\xc0-\\xd6\\xd8-\\xde",Xl="\\ufe0e\\ufe0f",Jl=ku+Mu+Eu+Ou,wi="[']",Iu="["+cr+"]",Ql="["+Jl+"]",fr="["+Gl+"]",jl="\\d+",Bu="["+Yl+"]",ea="["+Kl+"]",ta="[^"+cr+Jl+jl+Yl+Kl+Zl+"]",bi="\\ud83c[\\udffb-\\udfff]",Pu="(?:"+fr+"|"+bi+")",na="[^"+cr+"]",xi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ci="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+Zl+"]",ra="\\u200d",ia="(?:"+ea+"|"+ta+")",Ru="(?:"+wn+"|"+ta+")",la="(?:"+wi+"(?:d|ll|m|re|s|t|ve))?",aa="(?:"+wi+"(?:D|LL|M|RE|S|T|VE))?",oa=Pu+"?",sa="["+Xl+"]?",Du="(?:"+ra+"(?:"+[na,xi,Ci].join("|")+")"+sa+oa+")*",Fu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ua=sa+oa+Du,Nu="(?:"+[Bu,xi,Ci].join("|")+")"+ua,qu="(?:"+[na+fr+"?",fr,xi,Ci,Iu].join("|")+")",Wu=RegExp(wi,"g"),zu=RegExp(fr,"g"),Ti=RegExp(bi+"(?="+bi+")|"+qu+ua,"g"),Uu=RegExp([wn+"?"+ea+"+"+la+"(?="+[Ql,wn,"$"].join("|")+")",Ru+"+"+aa+"(?="+[Ql,wn+ia,"$"].join("|")+")",wn+"?"+ia+"+"+la,wn+"+"+aa,$u,Fu,jl,Nu].join("|"),"g"),Hu=RegExp("["+ra+cr+Gl+Xl+"]"),Vu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yu=-1,xe={};xe[ui]=xe[ci]=xe[fi]=xe[di]=xe[hi]=xe[pi]=xe[vi]=xe[gi]=xe[mi]=!0,xe[Z]=xe[Ce]=xe[$n]=xe[$e]=xe[_n]=xe[Se]=xe[W]=xe[ee]=xe[pe]=xe[it]=xe[Pe]=xe[le]=xe[Ye]=xe[Pt]=xe[Fn]=!1;var be={};be[Z]=be[Ce]=be[$n]=be[_n]=be[$e]=be[Se]=be[ui]=be[ci]=be[fi]=be[di]=be[hi]=be[pe]=be[it]=be[Pe]=be[le]=be[Ye]=be[Pt]=be[sr]=be[pi]=be[vi]=be[gi]=be[mi]=!0,be[W]=be[ee]=be[Fn]=!1;var Ku={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ju={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qu=parseFloat,ju=parseInt,ca=typeof tr=="object"&&tr&&tr.Object===Object&&tr,ec=typeof self=="object"&&self&&self.Object===Object&&self,Ne=ca||ec||Function("return this")(),Li=d&&!d.nodeType&&d,un=Li&&!0&&u&&!u.nodeType&&u,fa=un&&un.exports===Li,Si=fa&&ca.process,ht=function(){try{var T=un&&un.require&&un.require("util").types;return T||Si&&Si.binding&&Si.binding("util")}catch{}}(),da=ht&&ht.isArrayBuffer,ha=ht&&ht.isDate,pa=ht&&ht.isMap,va=ht&&ht.isRegExp,ga=ht&&ht.isSet,ma=ht&&ht.isTypedArray;function lt(T,I,M){switch(M.length){case 0:return T.call(I);case 1:return T.call(I,M[0]);case 2:return T.call(I,M[0],M[1]);case 3:return T.call(I,M[0],M[1],M[2])}return T.apply(I,M)}function tc(T,I,M,V){for(var ne=-1,ve=T==null?0:T.length;++ne<ve;){var Oe=T[ne];I(V,Oe,M(Oe),T)}return V}function pt(T,I){for(var M=-1,V=T==null?0:T.length;++M<V&&I(T[M],M,T)!==!1;);return T}function nc(T,I){for(var M=T==null?0:T.length;M--&&I(T[M],M,T)!==!1;);return T}function ya(T,I){for(var M=-1,V=T==null?0:T.length;++M<V;)if(!I(T[M],M,T))return!1;return!0}function Vt(T,I){for(var M=-1,V=T==null?0:T.length,ne=0,ve=[];++M<V;){var Oe=T[M];I(Oe,M,T)&&(ve[ne++]=Oe)}return ve}function dr(T,I){var M=T==null?0:T.length;return!!M&&bn(T,I,0)>-1}function Ai(T,I,M){for(var V=-1,ne=T==null?0:T.length;++V<ne;)if(M(I,T[V]))return!0;return!1}function Te(T,I){for(var M=-1,V=T==null?0:T.length,ne=Array(V);++M<V;)ne[M]=I(T[M],M,T);return ne}function Gt(T,I){for(var M=-1,V=I.length,ne=T.length;++M<V;)T[ne+M]=I[M];return T}function ki(T,I,M,V){var ne=-1,ve=T==null?0:T.length;for(V&&ve&&(M=T[++ne]);++ne<ve;)M=I(M,T[ne],ne,T);return M}function rc(T,I,M,V){var ne=T==null?0:T.length;for(V&&ne&&(M=T[--ne]);ne--;)M=I(M,T[ne],ne,T);return M}function Mi(T,I){for(var M=-1,V=T==null?0:T.length;++M<V;)if(I(T[M],M,T))return!0;return!1}var ic=Ei("length");function lc(T){return T.split("")}function ac(T){return T.match(pu)||[]}function _a(T,I,M){var V;return M(T,function(ne,ve,Oe){if(I(ne,ve,Oe))return V=ve,!1}),V}function hr(T,I,M,V){for(var ne=T.length,ve=M+(V?1:-1);V?ve--:++ve<ne;)if(I(T[ve],ve,T))return ve;return-1}function bn(T,I,M){return I===I?yc(T,I,M):hr(T,wa,M)}function oc(T,I,M,V){for(var ne=M-1,ve=T.length;++ne<ve;)if(V(T[ne],I))return ne;return-1}function wa(T){return T!==T}function ba(T,I){var M=T==null?0:T.length;return M?Ii(T,I)/M:dt}function Ei(T){return function(I){return I==null?i:I[T]}}function Oi(T){return function(I){return T==null?i:T[I]}}function xa(T,I,M,V,ne){return ne(T,function(ve,Oe,_e){M=V?(V=!1,ve):I(M,ve,Oe,_e)}),M}function sc(T,I){var M=T.length;for(T.sort(I);M--;)T[M]=T[M].value;return T}function Ii(T,I){for(var M,V=-1,ne=T.length;++V<ne;){var ve=I(T[V]);ve!==i&&(M=M===i?ve:M+ve)}return M}function Bi(T,I){for(var M=-1,V=Array(T);++M<T;)V[M]=I(M);return V}function uc(T,I){return Te(I,function(M){return[M,T[M]]})}function Ca(T){return T&&T.slice(0,Aa(T)+1).replace(_i,"")}function at(T){return function(I){return T(I)}}function Pi(T,I){return Te(I,function(M){return T[M]})}function Nn(T,I){return T.has(I)}function Ta(T,I){for(var M=-1,V=T.length;++M<V&&bn(I,T[M],0)>-1;);return M}function La(T,I){for(var M=T.length;M--&&bn(I,T[M],0)>-1;);return M}function cc(T,I){for(var M=T.length,V=0;M--;)T[M]===I&&++V;return V}var fc=Oi(Ku),dc=Oi(Zu);function hc(T){return"\\"+Ju[T]}function pc(T,I){return T==null?i:T[I]}function xn(T){return Hu.test(T)}function vc(T){return Vu.test(T)}function gc(T){for(var I,M=[];!(I=T.next()).done;)M.push(I.value);return M}function Ri(T){var I=-1,M=Array(T.size);return T.forEach(function(V,ne){M[++I]=[ne,V]}),M}function Sa(T,I){return function(M){return T(I(M))}}function Yt(T,I){for(var M=-1,V=T.length,ne=0,ve=[];++M<V;){var Oe=T[M];(Oe===I||Oe===x)&&(T[M]=x,ve[ne++]=M)}return ve}function pr(T){var I=-1,M=Array(T.size);return T.forEach(function(V){M[++I]=V}),M}function mc(T){var I=-1,M=Array(T.size);return T.forEach(function(V){M[++I]=[V,V]}),M}function yc(T,I,M){for(var V=M-1,ne=T.length;++V<ne;)if(T[V]===I)return V;return-1}function _c(T,I,M){for(var V=M+1;V--;)if(T[V]===I)return V;return V}function Cn(T){return xn(T)?bc(T):ic(T)}function Ct(T){return xn(T)?xc(T):lc(T)}function Aa(T){for(var I=T.length;I--&&cu.test(T.charAt(I)););return I}var wc=Oi(Xu);function bc(T){for(var I=Ti.lastIndex=0;Ti.test(T);)++I;return I}function xc(T){return T.match(Ti)||[]}function Cc(T){return T.match(Uu)||[]}var Tc=function T(I){I=I==null?Ne:Tn.defaults(Ne.Object(),I,Tn.pick(Ne,Gu));var M=I.Array,V=I.Date,ne=I.Error,ve=I.Function,Oe=I.Math,_e=I.Object,Di=I.RegExp,Lc=I.String,vt=I.TypeError,vr=M.prototype,Sc=ve.prototype,Ln=_e.prototype,gr=I["__core-js_shared__"],mr=Sc.toString,ye=Ln.hasOwnProperty,Ac=0,ka=function(){var e=/[^.]+$/.exec(gr&&gr.keys&&gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yr=Ln.toString,kc=mr.call(_e),Mc=Ne._,Ec=Di("^"+mr.call(ye).replace(yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_r=fa?I.Buffer:i,Kt=I.Symbol,wr=I.Uint8Array,Ma=_r?_r.allocUnsafe:i,br=Sa(_e.getPrototypeOf,_e),Ea=_e.create,Oa=Ln.propertyIsEnumerable,xr=vr.splice,Ia=Kt?Kt.isConcatSpreadable:i,qn=Kt?Kt.iterator:i,cn=Kt?Kt.toStringTag:i,Cr=function(){try{var e=vn(_e,"defineProperty");return e({},"",{}),e}catch{}}(),Oc=I.clearTimeout!==Ne.clearTimeout&&I.clearTimeout,Ic=V&&V.now!==Ne.Date.now&&V.now,Bc=I.setTimeout!==Ne.setTimeout&&I.setTimeout,Tr=Oe.ceil,Lr=Oe.floor,Fi=_e.getOwnPropertySymbols,Pc=_r?_r.isBuffer:i,Ba=I.isFinite,Rc=vr.join,Dc=Sa(_e.keys,_e),Ie=Oe.max,Ue=Oe.min,Fc=V.now,$c=I.parseInt,Pa=Oe.random,Nc=vr.reverse,$i=vn(I,"DataView"),Wn=vn(I,"Map"),Ni=vn(I,"Promise"),Sn=vn(I,"Set"),zn=vn(I,"WeakMap"),Un=vn(_e,"create"),Sr=zn&&new zn,An={},qc=gn($i),Wc=gn(Wn),zc=gn(Ni),Uc=gn(Sn),Hc=gn(zn),Ar=Kt?Kt.prototype:i,Hn=Ar?Ar.valueOf:i,Ra=Ar?Ar.toString:i;function s(e){if(Ae(e)&&!ie(e)&&!(e instanceof fe)){if(e instanceof gt)return e;if(ye.call(e,"__wrapped__"))return Fo(e)}return new gt(e)}var kn=function(){function e(){}return function(t){if(!Le(t))return{};if(Ea)return Ea(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function kr(){}function gt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:iu,evaluate:lu,interpolate:Hl,variable:"",imports:{_:s}},s.prototype=kr.prototype,s.prototype.constructor=s,gt.prototype=kn(kr.prototype),gt.prototype.constructor=gt;function fe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Be,this.__views__=[]}function Vc(){var e=new fe(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function Gc(){if(this.__filtered__){var e=new fe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yc(){var e=this.__wrapped__.value(),t=this.__dir__,n=ie(e),r=t<0,l=n?e.length:0,c=ad(0,l,this.__views__),h=c.start,b=c.end,S=b-h,P=r?b:h-1,R=this.__iteratees__,D=R.length,z=0,Y=Ue(S,this.__takeCount__);if(!n||!r&&l==S&&Y==S)return lo(e,this.__actions__);var J=[];e:for(;S--&&z<Y;){P+=t;for(var oe=-1,Q=e[P];++oe<D;){var ue=R[oe],de=ue.iteratee,ut=ue.type,Xe=de(Q);if(ut==an)Q=Xe;else if(!Xe){if(ut==ft)continue e;break e}}J[z++]=Q}return J}fe.prototype=kn(kr.prototype),fe.prototype.constructor=fe;function fn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kc(){this.__data__=Un?Un(null):{},this.size=0}function Zc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Xc(e){var t=this.__data__;if(Un){var n=t[e];return n===f?i:n}return ye.call(t,e)?t[e]:i}function Jc(e){var t=this.__data__;return Un?t[e]!==i:ye.call(t,e)}function Qc(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Un&&t===i?f:t,this}fn.prototype.clear=Kc,fn.prototype.delete=Zc,fn.prototype.get=Xc,fn.prototype.has=Jc,fn.prototype.set=Qc;function Rt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jc(){this.__data__=[],this.size=0}function ef(e){var t=this.__data__,n=Mr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xr.call(t,n,1),--this.size,!0}function tf(e){var t=this.__data__,n=Mr(t,e);return n<0?i:t[n][1]}function nf(e){return Mr(this.__data__,e)>-1}function rf(e,t){var n=this.__data__,r=Mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Rt.prototype.clear=jc,Rt.prototype.delete=ef,Rt.prototype.get=tf,Rt.prototype.has=nf,Rt.prototype.set=rf;function Dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function lf(){this.size=0,this.__data__={hash:new fn,map:new(Wn||Rt),string:new fn}}function af(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t}function of(e){return Wr(this,e).get(e)}function sf(e){return Wr(this,e).has(e)}function uf(e,t){var n=Wr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Dt.prototype.clear=lf,Dt.prototype.delete=af,Dt.prototype.get=of,Dt.prototype.has=sf,Dt.prototype.set=uf;function dn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Dt;++t<n;)this.add(e[t])}function cf(e){return this.__data__.set(e,f),this}function ff(e){return this.__data__.has(e)}dn.prototype.add=dn.prototype.push=cf,dn.prototype.has=ff;function Tt(e){var t=this.__data__=new Rt(e);this.size=t.size}function df(){this.__data__=new Rt,this.size=0}function hf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function pf(e){return this.__data__.get(e)}function vf(e){return this.__data__.has(e)}function gf(e,t){var n=this.__data__;if(n instanceof Rt){var r=n.__data__;if(!Wn||r.length<p-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dt(r)}return n.set(e,t),this.size=n.size,this}Tt.prototype.clear=df,Tt.prototype.delete=hf,Tt.prototype.get=pf,Tt.prototype.has=vf,Tt.prototype.set=gf;function Da(e,t){var n=ie(e),r=!n&&mn(e),l=!n&&!r&&jt(e),c=!n&&!r&&!l&&In(e),h=n||r||l||c,b=h?Bi(e.length,Lc):[],S=b.length;for(var P in e)(t||ye.call(e,P))&&!(h&&(P=="length"||l&&(P=="offset"||P=="parent")||c&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||qt(P,S)))&&b.push(P);return b}function Fa(e){var t=e.length;return t?e[Xi(0,t-1)]:i}function mf(e,t){return zr(et(e),hn(t,0,e.length))}function yf(e){return zr(et(e))}function qi(e,t,n){(n!==i&&!Lt(e[t],n)||n===i&&!(t in e))&&Ft(e,t,n)}function Vn(e,t,n){var r=e[t];(!(ye.call(e,t)&&Lt(r,n))||n===i&&!(t in e))&&Ft(e,t,n)}function Mr(e,t){for(var n=e.length;n--;)if(Lt(e[n][0],t))return n;return-1}function _f(e,t,n,r){return Zt(e,function(l,c,h){t(r,l,n(l),h)}),r}function $a(e,t){return e&&Mt(t,Re(t),e)}function wf(e,t){return e&&Mt(t,nt(t),e)}function Ft(e,t,n){t=="__proto__"&&Cr?Cr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Wi(e,t){for(var n=-1,r=t.length,l=M(r),c=e==null;++n<r;)l[n]=c?i:bl(e,t[n]);return l}function hn(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function mt(e,t,n,r,l,c){var h,b=t&o,S=t&g,P=t&L;if(n&&(h=l?n(e,r,l,c):n(e)),h!==i)return h;if(!Le(e))return e;var R=ie(e);if(R){if(h=sd(e),!b)return et(e,h)}else{var D=He(e),z=D==ee||D==he;if(jt(e))return so(e,b);if(D==Pe||D==Z||z&&!l){if(h=S||z?{}:ko(e),!b)return S?Jf(e,wf(h,e)):Xf(e,$a(h,e))}else{if(!be[D])return l?e:{};h=ud(e,D,b)}}c||(c=new Tt);var Y=c.get(e);if(Y)return Y;c.set(e,h),rs(e)?e.forEach(function(Q){h.add(mt(Q,t,n,Q,e,c))}):ts(e)&&e.forEach(function(Q,ue){h.set(ue,mt(Q,t,n,ue,e,c))});var J=P?S?ol:al:S?nt:Re,oe=R?i:J(e);return pt(oe||e,function(Q,ue){oe&&(ue=Q,Q=e[ue]),Vn(h,ue,mt(Q,t,n,ue,e,c))}),h}function bf(e){var t=Re(e);return function(n){return Na(n,e,t)}}function Na(e,t,n){var r=n.length;if(e==null)return!r;for(e=_e(e);r--;){var l=n[r],c=t[l],h=e[l];if(h===i&&!(l in e)||!c(h))return!1}return!0}function qa(e,t,n){if(typeof e!="function")throw new vt(v);return Qn(function(){e.apply(i,n)},t)}function Gn(e,t,n,r){var l=-1,c=dr,h=!0,b=e.length,S=[],P=t.length;if(!b)return S;n&&(t=Te(t,at(n))),r?(c=Ai,h=!1):t.length>=p&&(c=Nn,h=!1,t=new dn(t));e:for(;++l<b;){var R=e[l],D=n==null?R:n(R);if(R=r||R!==0?R:0,h&&D===D){for(var z=P;z--;)if(t[z]===D)continue e;S.push(R)}else c(t,D,r)||S.push(R)}return S}var Zt=po(kt),Wa=po(Ui,!0);function xf(e,t){var n=!0;return Zt(e,function(r,l,c){return n=!!t(r,l,c),n}),n}function Er(e,t,n){for(var r=-1,l=e.length;++r<l;){var c=e[r],h=t(c);if(h!=null&&(b===i?h===h&&!st(h):n(h,b)))var b=h,S=c}return S}function Cf(e,t,n,r){var l=e.length;for(n=ae(n),n<0&&(n=-n>l?0:l+n),r=r===i||r>l?l:ae(r),r<0&&(r+=l),r=n>r?0:ls(r);n<r;)e[n++]=t;return e}function za(e,t){var n=[];return Zt(e,function(r,l,c){t(r,l,c)&&n.push(r)}),n}function qe(e,t,n,r,l){var c=-1,h=e.length;for(n||(n=fd),l||(l=[]);++c<h;){var b=e[c];t>0&&n(b)?t>1?qe(b,t-1,n,r,l):Gt(l,b):r||(l[l.length]=b)}return l}var zi=vo(),Ua=vo(!0);function kt(e,t){return e&&zi(e,t,Re)}function Ui(e,t){return e&&Ua(e,t,Re)}function Or(e,t){return Vt(t,function(n){return Wt(e[n])})}function pn(e,t){t=Jt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Et(t[n++])];return n&&n==r?e:i}function Ha(e,t,n){var r=t(e);return ie(e)?r:Gt(r,n(e))}function Ke(e){return e==null?e===i?Js:sn:cn&&cn in _e(e)?ld(e):yd(e)}function Hi(e,t){return e>t}function Tf(e,t){return e!=null&&ye.call(e,t)}function Lf(e,t){return e!=null&&t in _e(e)}function Sf(e,t,n){return e>=Ue(t,n)&&e<Ie(t,n)}function Vi(e,t,n){for(var r=n?Ai:dr,l=e[0].length,c=e.length,h=c,b=M(c),S=1/0,P=[];h--;){var R=e[h];h&&t&&(R=Te(R,at(t))),S=Ue(R.length,S),b[h]=!n&&(t||l>=120&&R.length>=120)?new dn(h&&R):i}R=e[0];var D=-1,z=b[0];e:for(;++D<l&&P.length<S;){var Y=R[D],J=t?t(Y):Y;if(Y=n||Y!==0?Y:0,!(z?Nn(z,J):r(P,J,n))){for(h=c;--h;){var oe=b[h];if(!(oe?Nn(oe,J):r(e[h],J,n)))continue e}z&&z.push(J),P.push(Y)}}return P}function Af(e,t,n,r){return kt(e,function(l,c,h){t(r,n(l),c,h)}),r}function Yn(e,t,n){t=Jt(t,e),e=Io(e,t);var r=e==null?e:e[Et(_t(t))];return r==null?i:lt(r,e,n)}function Va(e){return Ae(e)&&Ke(e)==Z}function kf(e){return Ae(e)&&Ke(e)==$n}function Mf(e){return Ae(e)&&Ke(e)==Se}function Kn(e,t,n,r,l){return e===t?!0:e==null||t==null||!Ae(e)&&!Ae(t)?e!==e&&t!==t:Ef(e,t,n,r,Kn,l)}function Ef(e,t,n,r,l,c){var h=ie(e),b=ie(t),S=h?Ce:He(e),P=b?Ce:He(t);S=S==Z?Pe:S,P=P==Z?Pe:P;var R=S==Pe,D=P==Pe,z=S==P;if(z&&jt(e)){if(!jt(t))return!1;h=!0,R=!1}if(z&&!R)return c||(c=new Tt),h||In(e)?Lo(e,t,n,r,l,c):rd(e,t,S,n,r,l,c);if(!(n&A)){var Y=R&&ye.call(e,"__wrapped__"),J=D&&ye.call(t,"__wrapped__");if(Y||J){var oe=Y?e.value():e,Q=J?t.value():t;return c||(c=new Tt),l(oe,Q,n,r,c)}}return z?(c||(c=new Tt),id(e,t,n,r,l,c)):!1}function Of(e){return Ae(e)&&He(e)==pe}function Gi(e,t,n,r){var l=n.length,c=l,h=!r;if(e==null)return!c;for(e=_e(e);l--;){var b=n[l];if(h&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++l<c;){b=n[l];var S=b[0],P=e[S],R=b[1];if(h&&b[2]){if(P===i&&!(S in e))return!1}else{var D=new Tt;if(r)var z=r(P,R,S,e,t,D);if(!(z===i?Kn(R,P,A|y,r,D):z))return!1}}return!0}function Ga(e){if(!Le(e)||hd(e))return!1;var t=Wt(e)?Ec:wu;return t.test(gn(e))}function If(e){return Ae(e)&&Ke(e)==le}function Bf(e){return Ae(e)&&He(e)==Ye}function Pf(e){return Ae(e)&&Kr(e.length)&&!!xe[Ke(e)]}function Ya(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?ie(e)?Xa(e[0],e[1]):Za(e):gs(e)}function Yi(e){if(!Jn(e))return Dc(e);var t=[];for(var n in _e(e))ye.call(e,n)&&n!="constructor"&&t.push(n);return t}function Rf(e){if(!Le(e))return md(e);var t=Jn(e),n=[];for(var r in e)r=="constructor"&&(t||!ye.call(e,r))||n.push(r);return n}function Ki(e,t){return e<t}function Ka(e,t){var n=-1,r=tt(e)?M(e.length):[];return Zt(e,function(l,c,h){r[++n]=t(l,c,h)}),r}function Za(e){var t=ul(e);return t.length==1&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Gi(n,e,t)}}function Xa(e,t){return fl(e)&&Mo(t)?Eo(Et(e),t):function(n){var r=bl(n,e);return r===i&&r===t?xl(n,e):Kn(t,r,A|y)}}function Ir(e,t,n,r,l){e!==t&&zi(t,function(c,h){if(l||(l=new Tt),Le(c))Df(e,t,h,n,Ir,r,l);else{var b=r?r(hl(e,h),c,h+"",e,t,l):i;b===i&&(b=c),qi(e,h,b)}},nt)}function Df(e,t,n,r,l,c,h){var b=hl(e,n),S=hl(t,n),P=h.get(S);if(P){qi(e,n,P);return}var R=c?c(b,S,n+"",e,t,h):i,D=R===i;if(D){var z=ie(S),Y=!z&&jt(S),J=!z&&!Y&&In(S);R=S,z||Y||J?ie(b)?R=b:ke(b)?R=et(b):Y?(D=!1,R=so(S,!0)):J?(D=!1,R=uo(S,!0)):R=[]:jn(S)||mn(S)?(R=b,mn(b)?R=as(b):(!Le(b)||Wt(b))&&(R=ko(S))):D=!1}D&&(h.set(S,R),l(R,S,r,c,h),h.delete(S)),qi(e,n,R)}function Ja(e,t){var n=e.length;if(n)return t+=t<0?n:0,qt(t,n)?e[t]:i}function Qa(e,t,n){t.length?t=Te(t,function(c){return ie(c)?function(h){return pn(h,c.length===1?c[0]:c)}:c}):t=[rt];var r=-1;t=Te(t,at(X()));var l=Ka(e,function(c,h,b){var S=Te(t,function(P){return P(c)});return{criteria:S,index:++r,value:c}});return sc(l,function(c,h){return Zf(c,h,n)})}function Ff(e,t){return ja(e,t,function(n,r){return xl(e,r)})}function ja(e,t,n){for(var r=-1,l=t.length,c={};++r<l;){var h=t[r],b=pn(e,h);n(b,h)&&Zn(c,Jt(h,e),b)}return c}function $f(e){return function(t){return pn(t,e)}}function Zi(e,t,n,r){var l=r?oc:bn,c=-1,h=t.length,b=e;for(e===t&&(t=et(t)),n&&(b=Te(e,at(n)));++c<h;)for(var S=0,P=t[c],R=n?n(P):P;(S=l(b,R,S,r))>-1;)b!==e&&xr.call(b,S,1),xr.call(e,S,1);return e}function eo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var l=t[n];if(n==r||l!==c){var c=l;qt(l)?xr.call(e,l,1):ji(e,l)}}return e}function Xi(e,t){return e+Lr(Pa()*(t-e+1))}function Nf(e,t,n,r){for(var l=-1,c=Ie(Tr((t-e)/(n||1)),0),h=M(c);c--;)h[r?c:++l]=e,e+=n;return h}function Ji(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=Lr(t/2),t&&(e+=e);while(t);return n}function se(e,t){return pl(Oo(e,t,rt),e+"")}function qf(e){return Fa(Bn(e))}function Wf(e,t){var n=Bn(e);return zr(n,hn(t,0,n.length))}function Zn(e,t,n,r){if(!Le(e))return e;t=Jt(t,e);for(var l=-1,c=t.length,h=c-1,b=e;b!=null&&++l<c;){var S=Et(t[l]),P=n;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(l!=h){var R=b[S];P=r?r(R,S,b):i,P===i&&(P=Le(R)?R:qt(t[l+1])?[]:{})}Vn(b,S,P),b=b[S]}return e}var to=Sr?function(e,t){return Sr.set(e,t),e}:rt,zf=Cr?function(e,t){return Cr(e,"toString",{configurable:!0,enumerable:!1,value:Tl(t),writable:!0})}:rt;function Uf(e){return zr(Bn(e))}function yt(e,t,n){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var c=M(l);++r<l;)c[r]=e[r+t];return c}function Hf(e,t){var n;return Zt(e,function(r,l,c){return n=t(r,l,c),!n}),!!n}function Br(e,t,n){var r=0,l=e==null?r:e.length;if(typeof t=="number"&&t===t&&l<=j){for(;r<l;){var c=r+l>>>1,h=e[c];h!==null&&!st(h)&&(n?h<=t:h<t)?r=c+1:l=c}return l}return Qi(e,t,rt,n)}function Qi(e,t,n,r){var l=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var h=t!==t,b=t===null,S=st(t),P=t===i;l<c;){var R=Lr((l+c)/2),D=n(e[R]),z=D!==i,Y=D===null,J=D===D,oe=st(D);if(h)var Q=r||J;else P?Q=J&&(r||z):b?Q=J&&z&&(r||!Y):S?Q=J&&z&&!Y&&(r||!oe):Y||oe?Q=!1:Q=r?D<=t:D<t;Q?l=R+1:c=R}return Ue(c,It)}function no(e,t){for(var n=-1,r=e.length,l=0,c=[];++n<r;){var h=e[n],b=t?t(h):h;if(!n||!Lt(b,S)){var S=b;c[l++]=h===0?0:h}}return c}function ro(e){return typeof e=="number"?e:st(e)?dt:+e}function ot(e){if(typeof e=="string")return e;if(ie(e))return Te(e,ot)+"";if(st(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-Fe?"-0":t}function Xt(e,t,n){var r=-1,l=dr,c=e.length,h=!0,b=[],S=b;if(n)h=!1,l=Ai;else if(c>=p){var P=t?null:td(e);if(P)return pr(P);h=!1,l=Nn,S=new dn}else S=t?[]:b;e:for(;++r<c;){var R=e[r],D=t?t(R):R;if(R=n||R!==0?R:0,h&&D===D){for(var z=S.length;z--;)if(S[z]===D)continue e;t&&S.push(D),b.push(R)}else l(S,D,n)||(S!==b&&S.push(D),b.push(R))}return b}function ji(e,t){return t=Jt(t,e),e=Io(e,t),e==null||delete e[Et(_t(t))]}function io(e,t,n,r){return Zn(e,t,n(pn(e,t)),r)}function Pr(e,t,n,r){for(var l=e.length,c=r?l:-1;(r?c--:++c<l)&&t(e[c],c,e););return n?yt(e,r?0:c,r?c+1:l):yt(e,r?c+1:0,r?l:c)}function lo(e,t){var n=e;return n instanceof fe&&(n=n.value()),ki(t,function(r,l){return l.func.apply(l.thisArg,Gt([r],l.args))},n)}function el(e,t,n){var r=e.length;if(r<2)return r?Xt(e[0]):[];for(var l=-1,c=M(r);++l<r;)for(var h=e[l],b=-1;++b<r;)b!=l&&(c[l]=Gn(c[l]||h,e[b],t,n));return Xt(qe(c,1),t,n)}function ao(e,t,n){for(var r=-1,l=e.length,c=t.length,h={};++r<l;){var b=r<c?t[r]:i;n(h,e[r],b)}return h}function tl(e){return ke(e)?e:[]}function nl(e){return typeof e=="function"?e:rt}function Jt(e,t){return ie(e)?e:fl(e,t)?[e]:Do(me(e))}var Vf=se;function Qt(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:yt(e,t,n)}var oo=Oc||function(e){return Ne.clearTimeout(e)};function so(e,t){if(t)return e.slice();var n=e.length,r=Ma?Ma(n):new e.constructor(n);return e.copy(r),r}function rl(e){var t=new e.constructor(e.byteLength);return new wr(t).set(new wr(e)),t}function Gf(e,t){var n=t?rl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Yf(e){var t=new e.constructor(e.source,Vl.exec(e));return t.lastIndex=e.lastIndex,t}function Kf(e){return Hn?_e(Hn.call(e)):{}}function uo(e,t){var n=t?rl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function co(e,t){if(e!==t){var n=e!==i,r=e===null,l=e===e,c=st(e),h=t!==i,b=t===null,S=t===t,P=st(t);if(!b&&!P&&!c&&e>t||c&&h&&S&&!b&&!P||r&&h&&S||!n&&S||!l)return 1;if(!r&&!c&&!P&&e<t||P&&n&&l&&!r&&!c||b&&n&&l||!h&&l||!S)return-1}return 0}function Zf(e,t,n){for(var r=-1,l=e.criteria,c=t.criteria,h=l.length,b=n.length;++r<h;){var S=co(l[r],c[r]);if(S){if(r>=b)return S;var P=n[r];return S*(P=="desc"?-1:1)}}return e.index-t.index}function fo(e,t,n,r){for(var l=-1,c=e.length,h=n.length,b=-1,S=t.length,P=Ie(c-h,0),R=M(S+P),D=!r;++b<S;)R[b]=t[b];for(;++l<h;)(D||l<c)&&(R[n[l]]=e[l]);for(;P--;)R[b++]=e[l++];return R}function ho(e,t,n,r){for(var l=-1,c=e.length,h=-1,b=n.length,S=-1,P=t.length,R=Ie(c-b,0),D=M(R+P),z=!r;++l<R;)D[l]=e[l];for(var Y=l;++S<P;)D[Y+S]=t[S];for(;++h<b;)(z||l<c)&&(D[Y+n[h]]=e[l++]);return D}function et(e,t){var n=-1,r=e.length;for(t||(t=M(r));++n<r;)t[n]=e[n];return t}function Mt(e,t,n,r){var l=!n;n||(n={});for(var c=-1,h=t.length;++c<h;){var b=t[c],S=r?r(n[b],e[b],b,n,e):i;S===i&&(S=e[b]),l?Ft(n,b,S):Vn(n,b,S)}return n}function Xf(e,t){return Mt(e,cl(e),t)}function Jf(e,t){return Mt(e,So(e),t)}function Rr(e,t){return function(n,r){var l=ie(n)?tc:_f,c=t?t():{};return l(n,e,X(r,2),c)}}function Mn(e){return se(function(t,n){var r=-1,l=n.length,c=l>1?n[l-1]:i,h=l>2?n[2]:i;for(c=e.length>3&&typeof c=="function"?(l--,c):i,h&&Ze(n[0],n[1],h)&&(c=l<3?i:c,l=1),t=_e(t);++r<l;){var b=n[r];b&&e(t,b,r,c)}return t})}function po(e,t){return function(n,r){if(n==null)return n;if(!tt(n))return e(n,r);for(var l=n.length,c=t?l:-1,h=_e(n);(t?c--:++c<l)&&r(h[c],c,h)!==!1;);return n}}function vo(e){return function(t,n,r){for(var l=-1,c=_e(t),h=r(t),b=h.length;b--;){var S=h[e?b:++l];if(n(c[S],S,c)===!1)break}return t}}function Qf(e,t,n){var r=t&k,l=Xn(e);function c(){var h=this&&this!==Ne&&this instanceof c?l:e;return h.apply(r?n:this,arguments)}return c}function go(e){return function(t){t=me(t);var n=xn(t)?Ct(t):i,r=n?n[0]:t.charAt(0),l=n?Qt(n,1).join(""):t.slice(1);return r[e]()+l}}function En(e){return function(t){return ki(ps(hs(t).replace(Wu,"")),e,"")}}function Xn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kn(e.prototype),r=e.apply(n,t);return Le(r)?r:n}}function jf(e,t,n){var r=Xn(e);function l(){for(var c=arguments.length,h=M(c),b=c,S=On(l);b--;)h[b]=arguments[b];var P=c<3&&h[0]!==S&&h[c-1]!==S?[]:Yt(h,S);if(c-=P.length,c<n)return bo(e,t,Dr,l.placeholder,i,h,P,i,i,n-c);var R=this&&this!==Ne&&this instanceof l?r:e;return lt(R,this,h)}return l}function mo(e){return function(t,n,r){var l=_e(t);if(!tt(t)){var c=X(n,3);t=Re(t),n=function(b){return c(l[b],b,l)}}var h=e(t,n,r);return h>-1?l[c?t[h]:h]:i}}function yo(e){return Nt(function(t){var n=t.length,r=n,l=gt.prototype.thru;for(e&&t.reverse();r--;){var c=t[r];if(typeof c!="function")throw new vt(v);if(l&&!h&&qr(c)=="wrapper")var h=new gt([],!0)}for(r=h?r:n;++r<n;){c=t[r];var b=qr(c),S=b=="wrapper"?sl(c):i;S&&dl(S[0])&&S[1]==(N|B|$|U)&&!S[4].length&&S[9]==1?h=h[qr(S[0])].apply(h,S[3]):h=c.length==1&&dl(c)?h[b]():h.thru(c)}return function(){var P=arguments,R=P[0];if(h&&P.length==1&&ie(R))return h.plant(R).value();for(var D=0,z=n?t[D].apply(this,P):R;++D<n;)z=t[D].call(this,z);return z}})}function Dr(e,t,n,r,l,c,h,b,S,P){var R=t&N,D=t&k,z=t&F,Y=t&(B|q),J=t&G,oe=z?i:Xn(e);function Q(){for(var ue=arguments.length,de=M(ue),ut=ue;ut--;)de[ut]=arguments[ut];if(Y)var Xe=On(Q),ct=cc(de,Xe);if(r&&(de=fo(de,r,l,Y)),c&&(de=ho(de,c,h,Y)),ue-=ct,Y&&ue<P){var Me=Yt(de,Xe);return bo(e,t,Dr,Q.placeholder,n,de,Me,b,S,P-ue)}var St=D?n:this,Ut=z?St[e]:e;return ue=de.length,b?de=_d(de,b):J&&ue>1&&de.reverse(),R&&S<ue&&(de.length=S),this&&this!==Ne&&this instanceof Q&&(Ut=oe||Xn(Ut)),Ut.apply(St,de)}return Q}function _o(e,t){return function(n,r){return Af(n,e,t(r),{})}}function Fr(e,t){return function(n,r){var l;if(n===i&&r===i)return t;if(n!==i&&(l=n),r!==i){if(l===i)return r;typeof n=="string"||typeof r=="string"?(n=ot(n),r=ot(r)):(n=ro(n),r=ro(r)),l=e(n,r)}return l}}function il(e){return Nt(function(t){return t=Te(t,at(X())),se(function(n){var r=this;return e(t,function(l){return lt(l,r,n)})})})}function $r(e,t){t=t===i?" ":ot(t);var n=t.length;if(n<2)return n?Ji(t,e):t;var r=Ji(t,Tr(e/Cn(t)));return xn(t)?Qt(Ct(r),0,e).join(""):r.slice(0,e)}function ed(e,t,n,r){var l=t&k,c=Xn(e);function h(){for(var b=-1,S=arguments.length,P=-1,R=r.length,D=M(R+S),z=this&&this!==Ne&&this instanceof h?c:e;++P<R;)D[P]=r[P];for(;S--;)D[P++]=arguments[++b];return lt(z,l?n:this,D)}return h}function wo(e){return function(t,n,r){return r&&typeof r!="number"&&Ze(t,n,r)&&(n=r=i),t=zt(t),n===i?(n=t,t=0):n=zt(n),r=r===i?t<n?1:-1:zt(r),Nf(t,n,r,e)}}function Nr(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=wt(t),n=wt(n)),e(t,n)}}function bo(e,t,n,r,l,c,h,b,S,P){var R=t&B,D=R?h:i,z=R?i:h,Y=R?c:i,J=R?i:c;t|=R?$:C,t&=~(R?C:$),t&E||(t&=-4);var oe=[e,t,l,Y,D,J,z,b,S,P],Q=n.apply(i,oe);return dl(e)&&Bo(Q,oe),Q.placeholder=r,Po(Q,e,t)}function ll(e){var t=Oe[e];return function(n,r){if(n=wt(n),r=r==null?0:Ue(ae(r),292),r&&Ba(n)){var l=(me(n)+"e").split("e"),c=t(l[0]+"e"+(+l[1]+r));return l=(me(c)+"e").split("e"),+(l[0]+"e"+(+l[1]-r))}return t(n)}}var td=Sn&&1/pr(new Sn([,-0]))[1]==Fe?function(e){return new Sn(e)}:Al;function xo(e){return function(t){var n=He(t);return n==pe?Ri(t):n==Ye?mc(t):uc(t,e(t))}}function $t(e,t,n,r,l,c,h,b){var S=t&F;if(!S&&typeof e!="function")throw new vt(v);var P=r?r.length:0;if(P||(t&=-97,r=l=i),h=h===i?h:Ie(ae(h),0),b=b===i?b:ae(b),P-=l?l.length:0,t&C){var R=r,D=l;r=l=i}var z=S?i:sl(e),Y=[e,t,n,r,l,R,D,c,h,b];if(z&&gd(Y,z),e=Y[0],t=Y[1],n=Y[2],r=Y[3],l=Y[4],b=Y[9]=Y[9]===i?S?0:e.length:Ie(Y[9]-P,0),!b&&t&(B|q)&&(t&=-25),!t||t==k)var J=Qf(e,t,n);else t==B||t==q?J=jf(e,t,b):(t==$||t==(k|$))&&!l.length?J=ed(e,t,n,r):J=Dr.apply(i,Y);var oe=z?to:Bo;return Po(oe(J,Y),e,t)}function Co(e,t,n,r){return e===i||Lt(e,Ln[n])&&!ye.call(r,n)?t:e}function To(e,t,n,r,l,c){return Le(e)&&Le(t)&&(c.set(t,e),Ir(e,t,i,To,c),c.delete(t)),e}function nd(e){return jn(e)?i:e}function Lo(e,t,n,r,l,c){var h=n&A,b=e.length,S=t.length;if(b!=S&&!(h&&S>b))return!1;var P=c.get(e),R=c.get(t);if(P&&R)return P==t&&R==e;var D=-1,z=!0,Y=n&y?new dn:i;for(c.set(e,t),c.set(t,e);++D<b;){var J=e[D],oe=t[D];if(r)var Q=h?r(oe,J,D,t,e,c):r(J,oe,D,e,t,c);if(Q!==i){if(Q)continue;z=!1;break}if(Y){if(!Mi(t,function(ue,de){if(!Nn(Y,de)&&(J===ue||l(J,ue,n,r,c)))return Y.push(de)})){z=!1;break}}else if(!(J===oe||l(J,oe,n,r,c))){z=!1;break}}return c.delete(e),c.delete(t),z}function rd(e,t,n,r,l,c,h){switch(n){case _n:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $n:return!(e.byteLength!=t.byteLength||!c(new wr(e),new wr(t)));case $e:case Se:case it:return Lt(+e,+t);case W:return e.name==t.name&&e.message==t.message;case le:case Pt:return e==t+"";case pe:var b=Ri;case Ye:var S=r&A;if(b||(b=pr),e.size!=t.size&&!S)return!1;var P=h.get(e);if(P)return P==t;r|=y,h.set(e,t);var R=Lo(b(e),b(t),r,l,c,h);return h.delete(e),R;case sr:if(Hn)return Hn.call(e)==Hn.call(t)}return!1}function id(e,t,n,r,l,c){var h=n&A,b=al(e),S=b.length,P=al(t),R=P.length;if(S!=R&&!h)return!1;for(var D=S;D--;){var z=b[D];if(!(h?z in t:ye.call(t,z)))return!1}var Y=c.get(e),J=c.get(t);if(Y&&J)return Y==t&&J==e;var oe=!0;c.set(e,t),c.set(t,e);for(var Q=h;++D<S;){z=b[D];var ue=e[z],de=t[z];if(r)var ut=h?r(de,ue,z,t,e,c):r(ue,de,z,e,t,c);if(!(ut===i?ue===de||l(ue,de,n,r,c):ut)){oe=!1;break}Q||(Q=z=="constructor")}if(oe&&!Q){var Xe=e.constructor,ct=t.constructor;Xe!=ct&&"constructor"in e&&"constructor"in t&&!(typeof Xe=="function"&&Xe instanceof Xe&&typeof ct=="function"&&ct instanceof ct)&&(oe=!1)}return c.delete(e),c.delete(t),oe}function Nt(e){return pl(Oo(e,i,qo),e+"")}function al(e){return Ha(e,Re,cl)}function ol(e){return Ha(e,nt,So)}var sl=Sr?function(e){return Sr.get(e)}:Al;function qr(e){for(var t=e.name+"",n=An[t],r=ye.call(An,t)?n.length:0;r--;){var l=n[r],c=l.func;if(c==null||c==e)return l.name}return t}function On(e){var t=ye.call(s,"placeholder")?s:e;return t.placeholder}function X(){var e=s.iteratee||Ll;return e=e===Ll?Ya:e,arguments.length?e(arguments[0],arguments[1]):e}function Wr(e,t){var n=e.__data__;return dd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ul(e){for(var t=Re(e),n=t.length;n--;){var r=t[n],l=e[r];t[n]=[r,l,Mo(l)]}return t}function vn(e,t){var n=pc(e,t);return Ga(n)?n:i}function ld(e){var t=ye.call(e,cn),n=e[cn];try{e[cn]=i;var r=!0}catch{}var l=yr.call(e);return r&&(t?e[cn]=n:delete e[cn]),l}var cl=Fi?function(e){return e==null?[]:(e=_e(e),Vt(Fi(e),function(t){return Oa.call(e,t)}))}:kl,So=Fi?function(e){for(var t=[];e;)Gt(t,cl(e)),e=br(e);return t}:kl,He=Ke;($i&&He(new $i(new ArrayBuffer(1)))!=_n||Wn&&He(new Wn)!=pe||Ni&&He(Ni.resolve())!=Dn||Sn&&He(new Sn)!=Ye||zn&&He(new zn)!=Fn)&&(He=function(e){var t=Ke(e),n=t==Pe?e.constructor:i,r=n?gn(n):"";if(r)switch(r){case qc:return _n;case Wc:return pe;case zc:return Dn;case Uc:return Ye;case Hc:return Fn}return t});function ad(e,t,n){for(var r=-1,l=n.length;++r<l;){var c=n[r],h=c.size;switch(c.type){case"drop":e+=h;break;case"dropRight":t-=h;break;case"take":t=Ue(t,e+h);break;case"takeRight":e=Ie(e,t-h);break}}return{start:e,end:t}}function od(e){var t=e.match(du);return t?t[1].split(hu):[]}function Ao(e,t,n){t=Jt(t,e);for(var r=-1,l=t.length,c=!1;++r<l;){var h=Et(t[r]);if(!(c=e!=null&&n(e,h)))break;e=e[h]}return c||++r!=l?c:(l=e==null?0:e.length,!!l&&Kr(l)&&qt(h,l)&&(ie(e)||mn(e)))}function sd(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ye.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ko(e){return typeof e.constructor=="function"&&!Jn(e)?kn(br(e)):{}}function ud(e,t,n){var r=e.constructor;switch(t){case $n:return rl(e);case $e:case Se:return new r(+e);case _n:return Gf(e,n);case ui:case ci:case fi:case di:case hi:case pi:case vi:case gi:case mi:return uo(e,n);case pe:return new r;case it:case Pt:return new r(e);case le:return Yf(e);case Ye:return new r;case sr:return Kf(e)}}function cd(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fu,`{
/* [wrapped with `+t+`] */
`)}function fd(e){return ie(e)||mn(e)||!!(Ia&&e&&e[Ia])}function qt(e,t){var n=typeof e;return t=t??je,!!t&&(n=="number"||n!="symbol"&&xu.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,n){if(!Le(n))return!1;var r=typeof t;return(r=="number"?tt(n)&&qt(t,n.length):r=="string"&&t in n)?Lt(n[t],e):!1}function fl(e,t){if(ie(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||st(e)?!0:ou.test(e)||!au.test(e)||t!=null&&e in _e(t)}function dd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function dl(e){var t=qr(e),n=s[t];if(typeof n!="function"||!(t in fe.prototype))return!1;if(e===n)return!0;var r=sl(n);return!!r&&e===r[0]}function hd(e){return!!ka&&ka in e}var pd=gr?Wt:Ml;function Jn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ln;return e===n}function Mo(e){return e===e&&!Le(e)}function Eo(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in _e(n))}}function vd(e){var t=Gr(e,function(r){return n.size===w&&n.clear(),r}),n=t.cache;return t}function gd(e,t){var n=e[1],r=t[1],l=n|r,c=l<(k|F|N),h=r==N&&n==B||r==N&&n==U&&e[7].length<=t[8]||r==(N|U)&&t[7].length<=t[8]&&n==B;if(!(c||h))return e;r&k&&(e[2]=t[2],l|=n&k?0:E);var b=t[3];if(b){var S=e[3];e[3]=S?fo(S,b,t[4]):b,e[4]=S?Yt(e[3],x):t[4]}return b=t[5],b&&(S=e[5],e[5]=S?ho(S,b,t[6]):b,e[6]=S?Yt(e[5],x):t[6]),b=t[7],b&&(e[7]=b),r&N&&(e[8]=e[8]==null?t[8]:Ue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function md(e){var t=[];if(e!=null)for(var n in _e(e))t.push(n);return t}function yd(e){return yr.call(e)}function Oo(e,t,n){return t=Ie(t===i?e.length-1:t,0),function(){for(var r=arguments,l=-1,c=Ie(r.length-t,0),h=M(c);++l<c;)h[l]=r[t+l];l=-1;for(var b=M(t+1);++l<t;)b[l]=r[l];return b[t]=n(h),lt(e,this,b)}}function Io(e,t){return t.length<2?e:pn(e,yt(t,0,-1))}function _d(e,t){for(var n=e.length,r=Ue(t.length,n),l=et(e);r--;){var c=t[r];e[r]=qt(c,n)?l[c]:i}return e}function hl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bo=Ro(to),Qn=Bc||function(e,t){return Ne.setTimeout(e,t)},pl=Ro(zf);function Po(e,t,n){var r=t+"";return pl(e,cd(r,wd(od(r),n)))}function Ro(e){var t=0,n=0;return function(){var r=Fc(),l=Ht-(r-n);if(n=r,l>0){if(++t>=Ot)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zr(e,t){var n=-1,r=e.length,l=r-1;for(t=t===i?r:t;++n<t;){var c=Xi(n,l),h=e[c];e[c]=e[n],e[n]=h}return e.length=t,e}var Do=vd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(su,function(n,r,l,c){t.push(l?c.replace(gu,"$1"):r||n)}),t});function Et(e){if(typeof e=="string"||st(e))return e;var t=e+"";return t=="0"&&1/e==-Fe?"-0":t}function gn(e){if(e!=null){try{return mr.call(e)}catch{}try{return e+""}catch{}}return""}function wd(e,t){return pt(H,function(n){var r="_."+n[0];t&n[1]&&!dr(e,r)&&e.push(r)}),e.sort()}function Fo(e){if(e instanceof fe)return e.clone();var t=new gt(e.__wrapped__,e.__chain__);return t.__actions__=et(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function bd(e,t,n){(n?Ze(e,t,n):t===i)?t=1:t=Ie(ae(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var l=0,c=0,h=M(Tr(r/t));l<r;)h[c++]=yt(e,l,l+=t);return h}function xd(e){for(var t=-1,n=e==null?0:e.length,r=0,l=[];++t<n;){var c=e[t];c&&(l[r++]=c)}return l}function Cd(){var e=arguments.length;if(!e)return[];for(var t=M(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Gt(ie(n)?et(n):[n],qe(t,1))}var Td=se(function(e,t){return ke(e)?Gn(e,qe(t,1,ke,!0)):[]}),Ld=se(function(e,t){var n=_t(t);return ke(n)&&(n=i),ke(e)?Gn(e,qe(t,1,ke,!0),X(n,2)):[]}),Sd=se(function(e,t){var n=_t(t);return ke(n)&&(n=i),ke(e)?Gn(e,qe(t,1,ke,!0),i,n):[]});function Ad(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:ae(t),yt(e,t<0?0:t,r)):[]}function kd(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:ae(t),t=r-t,yt(e,0,t<0?0:t)):[]}function Md(e,t){return e&&e.length?Pr(e,X(t,3),!0,!0):[]}function Ed(e,t){return e&&e.length?Pr(e,X(t,3),!0):[]}function Od(e,t,n,r){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&Ze(e,t,n)&&(n=0,r=l),Cf(e,t,n,r)):[]}function $o(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var l=n==null?0:ae(n);return l<0&&(l=Ie(r+l,0)),hr(e,X(t,3),l)}function No(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var l=r-1;return n!==i&&(l=ae(n),l=n<0?Ie(r+l,0):Ue(l,r-1)),hr(e,X(t,3),l,!0)}function qo(e){var t=e==null?0:e.length;return t?qe(e,1):[]}function Id(e){var t=e==null?0:e.length;return t?qe(e,Fe):[]}function Bd(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:ae(t),qe(e,t)):[]}function Pd(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var l=e[t];r[l[0]]=l[1]}return r}function Wo(e){return e&&e.length?e[0]:i}function Rd(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var l=n==null?0:ae(n);return l<0&&(l=Ie(r+l,0)),bn(e,t,l)}function Dd(e){var t=e==null?0:e.length;return t?yt(e,0,-1):[]}var Fd=se(function(e){var t=Te(e,tl);return t.length&&t[0]===e[0]?Vi(t):[]}),$d=se(function(e){var t=_t(e),n=Te(e,tl);return t===_t(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Vi(n,X(t,2)):[]}),Nd=se(function(e){var t=_t(e),n=Te(e,tl);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Vi(n,i,t):[]});function qd(e,t){return e==null?"":Rc.call(e,t)}function _t(e){var t=e==null?0:e.length;return t?e[t-1]:i}function Wd(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var l=r;return n!==i&&(l=ae(n),l=l<0?Ie(r+l,0):Ue(l,r-1)),t===t?_c(e,t,l):hr(e,wa,l,!0)}function zd(e,t){return e&&e.length?Ja(e,ae(t)):i}var Ud=se(zo);function zo(e,t){return e&&e.length&&t&&t.length?Zi(e,t):e}function Hd(e,t,n){return e&&e.length&&t&&t.length?Zi(e,t,X(n,2)):e}function Vd(e,t,n){return e&&e.length&&t&&t.length?Zi(e,t,i,n):e}var Gd=Nt(function(e,t){var n=e==null?0:e.length,r=Wi(e,t);return eo(e,Te(t,function(l){return qt(l,n)?+l:l}).sort(co)),r});function Yd(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,l=[],c=e.length;for(t=X(t,3);++r<c;){var h=e[r];t(h,r,e)&&(n.push(h),l.push(r))}return eo(e,l),n}function vl(e){return e==null?e:Nc.call(e)}function Kd(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Ze(e,t,n)?(t=0,n=r):(t=t==null?0:ae(t),n=n===i?r:ae(n)),yt(e,t,n)):[]}function Zd(e,t){return Br(e,t)}function Xd(e,t,n){return Qi(e,t,X(n,2))}function Jd(e,t){var n=e==null?0:e.length;if(n){var r=Br(e,t);if(r<n&&Lt(e[r],t))return r}return-1}function Qd(e,t){return Br(e,t,!0)}function jd(e,t,n){return Qi(e,t,X(n,2),!0)}function eh(e,t){var n=e==null?0:e.length;if(n){var r=Br(e,t,!0)-1;if(Lt(e[r],t))return r}return-1}function th(e){return e&&e.length?no(e):[]}function nh(e,t){return e&&e.length?no(e,X(t,2)):[]}function rh(e){var t=e==null?0:e.length;return t?yt(e,1,t):[]}function ih(e,t,n){return e&&e.length?(t=n||t===i?1:ae(t),yt(e,0,t<0?0:t)):[]}function lh(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:ae(t),t=r-t,yt(e,t<0?0:t,r)):[]}function ah(e,t){return e&&e.length?Pr(e,X(t,3),!1,!0):[]}function oh(e,t){return e&&e.length?Pr(e,X(t,3)):[]}var sh=se(function(e){return Xt(qe(e,1,ke,!0))}),uh=se(function(e){var t=_t(e);return ke(t)&&(t=i),Xt(qe(e,1,ke,!0),X(t,2))}),ch=se(function(e){var t=_t(e);return t=typeof t=="function"?t:i,Xt(qe(e,1,ke,!0),i,t)});function fh(e){return e&&e.length?Xt(e):[]}function dh(e,t){return e&&e.length?Xt(e,X(t,2)):[]}function hh(e,t){return t=typeof t=="function"?t:i,e&&e.length?Xt(e,i,t):[]}function gl(e){if(!(e&&e.length))return[];var t=0;return e=Vt(e,function(n){if(ke(n))return t=Ie(n.length,t),!0}),Bi(t,function(n){return Te(e,Ei(n))})}function Uo(e,t){if(!(e&&e.length))return[];var n=gl(e);return t==null?n:Te(n,function(r){return lt(t,i,r)})}var ph=se(function(e,t){return ke(e)?Gn(e,t):[]}),vh=se(function(e){return el(Vt(e,ke))}),gh=se(function(e){var t=_t(e);return ke(t)&&(t=i),el(Vt(e,ke),X(t,2))}),mh=se(function(e){var t=_t(e);return t=typeof t=="function"?t:i,el(Vt(e,ke),i,t)}),yh=se(gl);function _h(e,t){return ao(e||[],t||[],Vn)}function wh(e,t){return ao(e||[],t||[],Zn)}var bh=se(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Uo(e,n)});function Ho(e){var t=s(e);return t.__chain__=!0,t}function xh(e,t){return t(e),e}function Ur(e,t){return t(e)}var Ch=Nt(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,l=function(c){return Wi(c,e)};return t>1||this.__actions__.length||!(r instanceof fe)||!qt(n)?this.thru(l):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ur,args:[l],thisArg:i}),new gt(r,this.__chain__).thru(function(c){return t&&!c.length&&c.push(i),c}))});function Th(){return Ho(this)}function Lh(){return new gt(this.value(),this.__chain__)}function Sh(){this.__values__===i&&(this.__values__=is(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ah(){return this}function kh(e){for(var t,n=this;n instanceof kr;){var r=Fo(n);r.__index__=0,r.__values__=i,t?l.__wrapped__=r:t=r;var l=r;n=n.__wrapped__}return l.__wrapped__=e,t}function Mh(){var e=this.__wrapped__;if(e instanceof fe){var t=e;return this.__actions__.length&&(t=new fe(this)),t=t.reverse(),t.__actions__.push({func:Ur,args:[vl],thisArg:i}),new gt(t,this.__chain__)}return this.thru(vl)}function Eh(){return lo(this.__wrapped__,this.__actions__)}var Oh=Rr(function(e,t,n){ye.call(e,n)?++e[n]:Ft(e,n,1)});function Ih(e,t,n){var r=ie(e)?ya:xf;return n&&Ze(e,t,n)&&(t=i),r(e,X(t,3))}function Bh(e,t){var n=ie(e)?Vt:za;return n(e,X(t,3))}var Ph=mo($o),Rh=mo(No);function Dh(e,t){return qe(Hr(e,t),1)}function Fh(e,t){return qe(Hr(e,t),Fe)}function $h(e,t,n){return n=n===i?1:ae(n),qe(Hr(e,t),n)}function Vo(e,t){var n=ie(e)?pt:Zt;return n(e,X(t,3))}function Go(e,t){var n=ie(e)?nc:Wa;return n(e,X(t,3))}var Nh=Rr(function(e,t,n){ye.call(e,n)?e[n].push(t):Ft(e,n,[t])});function qh(e,t,n,r){e=tt(e)?e:Bn(e),n=n&&!r?ae(n):0;var l=e.length;return n<0&&(n=Ie(l+n,0)),Zr(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&bn(e,t,n)>-1}var Wh=se(function(e,t,n){var r=-1,l=typeof t=="function",c=tt(e)?M(e.length):[];return Zt(e,function(h){c[++r]=l?lt(t,h,n):Yn(h,t,n)}),c}),zh=Rr(function(e,t,n){Ft(e,n,t)});function Hr(e,t){var n=ie(e)?Te:Ka;return n(e,X(t,3))}function Uh(e,t,n,r){return e==null?[]:(ie(t)||(t=t==null?[]:[t]),n=r?i:n,ie(n)||(n=n==null?[]:[n]),Qa(e,t,n))}var Hh=Rr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Vh(e,t,n){var r=ie(e)?ki:xa,l=arguments.length<3;return r(e,X(t,4),n,l,Zt)}function Gh(e,t,n){var r=ie(e)?rc:xa,l=arguments.length<3;return r(e,X(t,4),n,l,Wa)}function Yh(e,t){var n=ie(e)?Vt:za;return n(e,Yr(X(t,3)))}function Kh(e){var t=ie(e)?Fa:qf;return t(e)}function Zh(e,t,n){(n?Ze(e,t,n):t===i)?t=1:t=ae(t);var r=ie(e)?mf:Wf;return r(e,t)}function Xh(e){var t=ie(e)?yf:Uf;return t(e)}function Jh(e){if(e==null)return 0;if(tt(e))return Zr(e)?Cn(e):e.length;var t=He(e);return t==pe||t==Ye?e.size:Yi(e).length}function Qh(e,t,n){var r=ie(e)?Mi:Hf;return n&&Ze(e,t,n)&&(t=i),r(e,X(t,3))}var jh=se(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ze(e,t[0],t[1])?t=[]:n>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),Qa(e,qe(t,1),[])}),Vr=Ic||function(){return Ne.Date.now()};function ep(e,t){if(typeof t!="function")throw new vt(v);return e=ae(e),function(){if(--e<1)return t.apply(this,arguments)}}function Yo(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,$t(e,N,i,i,i,i,t)}function Ko(e,t){var n;if(typeof t!="function")throw new vt(v);return e=ae(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ml=se(function(e,t,n){var r=k;if(n.length){var l=Yt(n,On(ml));r|=$}return $t(e,r,t,n,l)}),Zo=se(function(e,t,n){var r=k|F;if(n.length){var l=Yt(n,On(Zo));r|=$}return $t(t,r,e,n,l)});function Xo(e,t,n){t=n?i:t;var r=$t(e,B,i,i,i,i,i,t);return r.placeholder=Xo.placeholder,r}function Jo(e,t,n){t=n?i:t;var r=$t(e,q,i,i,i,i,i,t);return r.placeholder=Jo.placeholder,r}function Qo(e,t,n){var r,l,c,h,b,S,P=0,R=!1,D=!1,z=!0;if(typeof e!="function")throw new vt(v);t=wt(t)||0,Le(n)&&(R=!!n.leading,D="maxWait"in n,c=D?Ie(wt(n.maxWait)||0,t):c,z="trailing"in n?!!n.trailing:z);function Y(Me){var St=r,Ut=l;return r=l=i,P=Me,h=e.apply(Ut,St),h}function J(Me){return P=Me,b=Qn(ue,t),R?Y(Me):h}function oe(Me){var St=Me-S,Ut=Me-P,ms=t-St;return D?Ue(ms,c-Ut):ms}function Q(Me){var St=Me-S,Ut=Me-P;return S===i||St>=t||St<0||D&&Ut>=c}function ue(){var Me=Vr();if(Q(Me))return de(Me);b=Qn(ue,oe(Me))}function de(Me){return b=i,z&&r?Y(Me):(r=l=i,h)}function ut(){b!==i&&oo(b),P=0,r=S=l=b=i}function Xe(){return b===i?h:de(Vr())}function ct(){var Me=Vr(),St=Q(Me);if(r=arguments,l=this,S=Me,St){if(b===i)return J(S);if(D)return oo(b),b=Qn(ue,t),Y(S)}return b===i&&(b=Qn(ue,t)),h}return ct.cancel=ut,ct.flush=Xe,ct}var tp=se(function(e,t){return qa(e,1,t)}),np=se(function(e,t,n){return qa(e,wt(t)||0,n)});function rp(e){return $t(e,G)}function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new vt(v);var n=function(){var r=arguments,l=t?t.apply(this,r):r[0],c=n.cache;if(c.has(l))return c.get(l);var h=e.apply(this,r);return n.cache=c.set(l,h)||c,h};return n.cache=new(Gr.Cache||Dt),n}Gr.Cache=Dt;function Yr(e){if(typeof e!="function")throw new vt(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ip(e){return Ko(2,e)}var lp=Vf(function(e,t){t=t.length==1&&ie(t[0])?Te(t[0],at(X())):Te(qe(t,1),at(X()));var n=t.length;return se(function(r){for(var l=-1,c=Ue(r.length,n);++l<c;)r[l]=t[l].call(this,r[l]);return lt(e,this,r)})}),yl=se(function(e,t){var n=Yt(t,On(yl));return $t(e,$,i,t,n)}),jo=se(function(e,t){var n=Yt(t,On(jo));return $t(e,C,i,t,n)}),ap=Nt(function(e,t){return $t(e,U,i,i,i,t)});function op(e,t){if(typeof e!="function")throw new vt(v);return t=t===i?t:ae(t),se(e,t)}function sp(e,t){if(typeof e!="function")throw new vt(v);return t=t==null?0:Ie(ae(t),0),se(function(n){var r=n[t],l=Qt(n,0,t);return r&&Gt(l,r),lt(e,this,l)})}function up(e,t,n){var r=!0,l=!0;if(typeof e!="function")throw new vt(v);return Le(n)&&(r="leading"in n?!!n.leading:r,l="trailing"in n?!!n.trailing:l),Qo(e,t,{leading:r,maxWait:t,trailing:l})}function cp(e){return Yo(e,1)}function fp(e,t){return yl(nl(t),e)}function dp(){if(!arguments.length)return[];var e=arguments[0];return ie(e)?e:[e]}function hp(e){return mt(e,L)}function pp(e,t){return t=typeof t=="function"?t:i,mt(e,L,t)}function vp(e){return mt(e,o|L)}function gp(e,t){return t=typeof t=="function"?t:i,mt(e,o|L,t)}function mp(e,t){return t==null||Na(e,t,Re(t))}function Lt(e,t){return e===t||e!==e&&t!==t}var yp=Nr(Hi),_p=Nr(function(e,t){return e>=t}),mn=Va(function(){return arguments}())?Va:function(e){return Ae(e)&&ye.call(e,"callee")&&!Oa.call(e,"callee")},ie=M.isArray,wp=da?at(da):kf;function tt(e){return e!=null&&Kr(e.length)&&!Wt(e)}function ke(e){return Ae(e)&&tt(e)}function bp(e){return e===!0||e===!1||Ae(e)&&Ke(e)==$e}var jt=Pc||Ml,xp=ha?at(ha):Mf;function Cp(e){return Ae(e)&&e.nodeType===1&&!jn(e)}function Tp(e){if(e==null)return!0;if(tt(e)&&(ie(e)||typeof e=="string"||typeof e.splice=="function"||jt(e)||In(e)||mn(e)))return!e.length;var t=He(e);if(t==pe||t==Ye)return!e.size;if(Jn(e))return!Yi(e).length;for(var n in e)if(ye.call(e,n))return!1;return!0}function Lp(e,t){return Kn(e,t)}function Sp(e,t,n){n=typeof n=="function"?n:i;var r=n?n(e,t):i;return r===i?Kn(e,t,i,n):!!r}function _l(e){if(!Ae(e))return!1;var t=Ke(e);return t==W||t==Bt||typeof e.message=="string"&&typeof e.name=="string"&&!jn(e)}function Ap(e){return typeof e=="number"&&Ba(e)}function Wt(e){if(!Le(e))return!1;var t=Ke(e);return t==ee||t==he||t==ze||t==si}function es(e){return typeof e=="number"&&e==ae(e)}function Kr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ae(e){return e!=null&&typeof e=="object"}var ts=pa?at(pa):Of;function kp(e,t){return e===t||Gi(e,t,ul(t))}function Mp(e,t,n){return n=typeof n=="function"?n:i,Gi(e,t,ul(t),n)}function Ep(e){return ns(e)&&e!=+e}function Op(e){if(pd(e))throw new ne(_);return Ga(e)}function Ip(e){return e===null}function Bp(e){return e==null}function ns(e){return typeof e=="number"||Ae(e)&&Ke(e)==it}function jn(e){if(!Ae(e)||Ke(e)!=Pe)return!1;var t=br(e);if(t===null)return!0;var n=ye.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mr.call(n)==kc}var wl=va?at(va):If;function Pp(e){return es(e)&&e>=-je&&e<=je}var rs=ga?at(ga):Bf;function Zr(e){return typeof e=="string"||!ie(e)&&Ae(e)&&Ke(e)==Pt}function st(e){return typeof e=="symbol"||Ae(e)&&Ke(e)==sr}var In=ma?at(ma):Pf;function Rp(e){return e===i}function Dp(e){return Ae(e)&&He(e)==Fn}function Fp(e){return Ae(e)&&Ke(e)==Qs}var $p=Nr(Ki),Np=Nr(function(e,t){return e<=t});function is(e){if(!e)return[];if(tt(e))return Zr(e)?Ct(e):et(e);if(qn&&e[qn])return gc(e[qn]());var t=He(e),n=t==pe?Ri:t==Ye?pr:Bn;return n(e)}function zt(e){if(!e)return e===0?e:0;if(e=wt(e),e===Fe||e===-Fe){var t=e<0?-1:1;return t*on}return e===e?e:0}function ae(e){var t=zt(e),n=t%1;return t===t?n?t-n:t:0}function ls(e){return e?hn(ae(e),0,Be):0}function wt(e){if(typeof e=="number")return e;if(st(e))return dt;if(Le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ca(e);var n=_u.test(e);return n||bu.test(e)?ju(e.slice(2),n?2:8):yu.test(e)?dt:+e}function as(e){return Mt(e,nt(e))}function qp(e){return e?hn(ae(e),-je,je):e===0?e:0}function me(e){return e==null?"":ot(e)}var Wp=Mn(function(e,t){if(Jn(t)||tt(t)){Mt(t,Re(t),e);return}for(var n in t)ye.call(t,n)&&Vn(e,n,t[n])}),os=Mn(function(e,t){Mt(t,nt(t),e)}),Xr=Mn(function(e,t,n,r){Mt(t,nt(t),e,r)}),zp=Mn(function(e,t,n,r){Mt(t,Re(t),e,r)}),Up=Nt(Wi);function Hp(e,t){var n=kn(e);return t==null?n:$a(n,t)}var Vp=se(function(e,t){e=_e(e);var n=-1,r=t.length,l=r>2?t[2]:i;for(l&&Ze(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],h=nt(c),b=-1,S=h.length;++b<S;){var P=h[b],R=e[P];(R===i||Lt(R,Ln[P])&&!ye.call(e,P))&&(e[P]=c[P])}return e}),Gp=se(function(e){return e.push(i,To),lt(ss,i,e)});function Yp(e,t){return _a(e,X(t,3),kt)}function Kp(e,t){return _a(e,X(t,3),Ui)}function Zp(e,t){return e==null?e:zi(e,X(t,3),nt)}function Xp(e,t){return e==null?e:Ua(e,X(t,3),nt)}function Jp(e,t){return e&&kt(e,X(t,3))}function Qp(e,t){return e&&Ui(e,X(t,3))}function jp(e){return e==null?[]:Or(e,Re(e))}function ev(e){return e==null?[]:Or(e,nt(e))}function bl(e,t,n){var r=e==null?i:pn(e,t);return r===i?n:r}function tv(e,t){return e!=null&&Ao(e,t,Tf)}function xl(e,t){return e!=null&&Ao(e,t,Lf)}var nv=_o(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=yr.call(t)),e[t]=n},Tl(rt)),rv=_o(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=yr.call(t)),ye.call(e,t)?e[t].push(n):e[t]=[n]},X),iv=se(Yn);function Re(e){return tt(e)?Da(e):Yi(e)}function nt(e){return tt(e)?Da(e,!0):Rf(e)}function lv(e,t){var n={};return t=X(t,3),kt(e,function(r,l,c){Ft(n,t(r,l,c),r)}),n}function av(e,t){var n={};return t=X(t,3),kt(e,function(r,l,c){Ft(n,l,t(r,l,c))}),n}var ov=Mn(function(e,t,n){Ir(e,t,n)}),ss=Mn(function(e,t,n,r){Ir(e,t,n,r)}),sv=Nt(function(e,t){var n={};if(e==null)return n;var r=!1;t=Te(t,function(c){return c=Jt(c,e),r||(r=c.length>1),c}),Mt(e,ol(e),n),r&&(n=mt(n,o|g|L,nd));for(var l=t.length;l--;)ji(n,t[l]);return n});function uv(e,t){return us(e,Yr(X(t)))}var cv=Nt(function(e,t){return e==null?{}:Ff(e,t)});function us(e,t){if(e==null)return{};var n=Te(ol(e),function(r){return[r]});return t=X(t),ja(e,n,function(r,l){return t(r,l[0])})}function fv(e,t,n){t=Jt(t,e);var r=-1,l=t.length;for(l||(l=1,e=i);++r<l;){var c=e==null?i:e[Et(t[r])];c===i&&(r=l,c=n),e=Wt(c)?c.call(e):c}return e}function dv(e,t,n){return e==null?e:Zn(e,t,n)}function hv(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:Zn(e,t,n,r)}var cs=xo(Re),fs=xo(nt);function pv(e,t,n){var r=ie(e),l=r||jt(e)||In(e);if(t=X(t,4),n==null){var c=e&&e.constructor;l?n=r?new c:[]:Le(e)?n=Wt(c)?kn(br(e)):{}:n={}}return(l?pt:kt)(e,function(h,b,S){return t(n,h,b,S)}),n}function vv(e,t){return e==null?!0:ji(e,t)}function gv(e,t,n){return e==null?e:io(e,t,nl(n))}function mv(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:io(e,t,nl(n),r)}function Bn(e){return e==null?[]:Pi(e,Re(e))}function yv(e){return e==null?[]:Pi(e,nt(e))}function _v(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=wt(n),n=n===n?n:0),t!==i&&(t=wt(t),t=t===t?t:0),hn(wt(e),t,n)}function wv(e,t,n){return t=zt(t),n===i?(n=t,t=0):n=zt(n),e=wt(e),Sf(e,t,n)}function bv(e,t,n){if(n&&typeof n!="boolean"&&Ze(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=zt(e),t===i?(t=e,e=0):t=zt(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var l=Pa();return Ue(e+l*(t-e+Qu("1e-"+((l+"").length-1))),t)}return Xi(e,t)}var xv=En(function(e,t,n){return t=t.toLowerCase(),e+(n?ds(t):t)});function ds(e){return Cl(me(e).toLowerCase())}function hs(e){return e=me(e),e&&e.replace(Cu,fc).replace(zu,"")}function Cv(e,t,n){e=me(e),t=ot(t);var r=e.length;n=n===i?r:hn(ae(n),0,r);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function Tv(e){return e=me(e),e&&ru.test(e)?e.replace(Ul,dc):e}function Lv(e){return e=me(e),e&&uu.test(e)?e.replace(yi,"\\$&"):e}var Sv=En(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Av=En(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),kv=go("toLowerCase");function Mv(e,t,n){e=me(e),t=ae(t);var r=t?Cn(e):0;if(!t||r>=t)return e;var l=(t-r)/2;return $r(Lr(l),n)+e+$r(Tr(l),n)}function Ev(e,t,n){e=me(e),t=ae(t);var r=t?Cn(e):0;return t&&r<t?e+$r(t-r,n):e}function Ov(e,t,n){e=me(e),t=ae(t);var r=t?Cn(e):0;return t&&r<t?$r(t-r,n)+e:e}function Iv(e,t,n){return n||t==null?t=0:t&&(t=+t),$c(me(e).replace(_i,""),t||0)}function Bv(e,t,n){return(n?Ze(e,t,n):t===i)?t=1:t=ae(t),Ji(me(e),t)}function Pv(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Rv=En(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function Dv(e,t,n){return n&&typeof n!="number"&&Ze(e,t,n)&&(t=n=i),n=n===i?Be:n>>>0,n?(e=me(e),e&&(typeof t=="string"||t!=null&&!wl(t))&&(t=ot(t),!t&&xn(e))?Qt(Ct(e),0,n):e.split(t,n)):[]}var Fv=En(function(e,t,n){return e+(n?" ":"")+Cl(t)});function $v(e,t,n){return e=me(e),n=n==null?0:hn(ae(n),0,e.length),t=ot(t),e.slice(n,n+t.length)==t}function Nv(e,t,n){var r=s.templateSettings;n&&Ze(e,t,n)&&(t=i),e=me(e),t=Xr({},t,r,Co);var l=Xr({},t.imports,r.imports,Co),c=Re(l),h=Pi(l,c),b,S,P=0,R=t.interpolate||ur,D="__p += '",z=Di((t.escape||ur).source+"|"+R.source+"|"+(R===Hl?mu:ur).source+"|"+(t.evaluate||ur).source+"|$","g"),Y="//# sourceURL="+(ye.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yu+"]")+`
`;e.replace(z,function(Q,ue,de,ut,Xe,ct){return de||(de=ut),D+=e.slice(P,ct).replace(Tu,hc),ue&&(b=!0,D+=`' +
__e(`+ue+`) +
'`),Xe&&(S=!0,D+=`';
`+Xe+`;
__p += '`),de&&(D+=`' +
((__t = (`+de+`)) == null ? '' : __t) +
'`),P=ct+Q.length,Q}),D+=`';
`;var J=ye.call(t,"variable")&&t.variable;if(!J)D=`with (obj) {
`+D+`
}
`;else if(vu.test(J))throw new ne(a);D=(S?D.replace(js,""):D).replace(eu,"$1").replace(tu,"$1;"),D="function("+(J||"obj")+`) {
`+(J?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+D+`return __p
}`;var oe=vs(function(){return ve(c,Y+"return "+D).apply(i,h)});if(oe.source=D,_l(oe))throw oe;return oe}function qv(e){return me(e).toLowerCase()}function Wv(e){return me(e).toUpperCase()}function zv(e,t,n){if(e=me(e),e&&(n||t===i))return Ca(e);if(!e||!(t=ot(t)))return e;var r=Ct(e),l=Ct(t),c=Ta(r,l),h=La(r,l)+1;return Qt(r,c,h).join("")}function Uv(e,t,n){if(e=me(e),e&&(n||t===i))return e.slice(0,Aa(e)+1);if(!e||!(t=ot(t)))return e;var r=Ct(e),l=La(r,Ct(t))+1;return Qt(r,0,l).join("")}function Hv(e,t,n){if(e=me(e),e&&(n||t===i))return e.replace(_i,"");if(!e||!(t=ot(t)))return e;var r=Ct(e),l=Ta(r,Ct(t));return Qt(r,l).join("")}function Vv(e,t){var n=ge,r=Ge;if(Le(t)){var l="separator"in t?t.separator:l;n="length"in t?ae(t.length):n,r="omission"in t?ot(t.omission):r}e=me(e);var c=e.length;if(xn(e)){var h=Ct(e);c=h.length}if(n>=c)return e;var b=n-Cn(r);if(b<1)return r;var S=h?Qt(h,0,b).join(""):e.slice(0,b);if(l===i)return S+r;if(h&&(b+=S.length-b),wl(l)){if(e.slice(b).search(l)){var P,R=S;for(l.global||(l=Di(l.source,me(Vl.exec(l))+"g")),l.lastIndex=0;P=l.exec(R);)var D=P.index;S=S.slice(0,D===i?b:D)}}else if(e.indexOf(ot(l),b)!=b){var z=S.lastIndexOf(l);z>-1&&(S=S.slice(0,z))}return S+r}function Gv(e){return e=me(e),e&&nu.test(e)?e.replace(zl,wc):e}var Yv=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Cl=go("toUpperCase");function ps(e,t,n){return e=me(e),t=n?i:t,t===i?vc(e)?Cc(e):ac(e):e.match(t)||[]}var vs=se(function(e,t){try{return lt(e,i,t)}catch(n){return _l(n)?n:new ne(n)}}),Kv=Nt(function(e,t){return pt(t,function(n){n=Et(n),Ft(e,n,ml(e[n],e))}),e});function Zv(e){var t=e==null?0:e.length,n=X();return e=t?Te(e,function(r){if(typeof r[1]!="function")throw new vt(v);return[n(r[0]),r[1]]}):[],se(function(r){for(var l=-1;++l<t;){var c=e[l];if(lt(c[0],this,r))return lt(c[1],this,r)}})}function Xv(e){return bf(mt(e,o))}function Tl(e){return function(){return e}}function Jv(e,t){return e==null||e!==e?t:e}var Qv=yo(),jv=yo(!0);function rt(e){return e}function Ll(e){return Ya(typeof e=="function"?e:mt(e,o))}function e0(e){return Za(mt(e,o))}function t0(e,t){return Xa(e,mt(t,o))}var n0=se(function(e,t){return function(n){return Yn(n,e,t)}}),r0=se(function(e,t){return function(n){return Yn(e,n,t)}});function Sl(e,t,n){var r=Re(t),l=Or(t,r);n==null&&!(Le(t)&&(l.length||!r.length))&&(n=t,t=e,e=this,l=Or(t,Re(t)));var c=!(Le(n)&&"chain"in n)||!!n.chain,h=Wt(e);return pt(l,function(b){var S=t[b];e[b]=S,h&&(e.prototype[b]=function(){var P=this.__chain__;if(c||P){var R=e(this.__wrapped__),D=R.__actions__=et(this.__actions__);return D.push({func:S,args:arguments,thisArg:e}),R.__chain__=P,R}return S.apply(e,Gt([this.value()],arguments))})}),e}function i0(){return Ne._===this&&(Ne._=Mc),this}function Al(){}function l0(e){return e=ae(e),se(function(t){return Ja(t,e)})}var a0=il(Te),o0=il(ya),s0=il(Mi);function gs(e){return fl(e)?Ei(Et(e)):$f(e)}function u0(e){return function(t){return e==null?i:pn(e,t)}}var c0=wo(),f0=wo(!0);function kl(){return[]}function Ml(){return!1}function d0(){return{}}function h0(){return""}function p0(){return!0}function v0(e,t){if(e=ae(e),e<1||e>je)return[];var n=Be,r=Ue(e,Be);t=X(t),e-=Be;for(var l=Bi(r,t);++n<e;)t(n);return l}function g0(e){return ie(e)?Te(e,Et):st(e)?[e]:et(Do(me(e)))}function m0(e){var t=++Ac;return me(e)+t}var y0=Fr(function(e,t){return e+t},0),_0=ll("ceil"),w0=Fr(function(e,t){return e/t},1),b0=ll("floor");function x0(e){return e&&e.length?Er(e,rt,Hi):i}function C0(e,t){return e&&e.length?Er(e,X(t,2),Hi):i}function T0(e){return ba(e,rt)}function L0(e,t){return ba(e,X(t,2))}function S0(e){return e&&e.length?Er(e,rt,Ki):i}function A0(e,t){return e&&e.length?Er(e,X(t,2),Ki):i}var k0=Fr(function(e,t){return e*t},1),M0=ll("round"),E0=Fr(function(e,t){return e-t},0);function O0(e){return e&&e.length?Ii(e,rt):0}function I0(e,t){return e&&e.length?Ii(e,X(t,2)):0}return s.after=ep,s.ary=Yo,s.assign=Wp,s.assignIn=os,s.assignInWith=Xr,s.assignWith=zp,s.at=Up,s.before=Ko,s.bind=ml,s.bindAll=Kv,s.bindKey=Zo,s.castArray=dp,s.chain=Ho,s.chunk=bd,s.compact=xd,s.concat=Cd,s.cond=Zv,s.conforms=Xv,s.constant=Tl,s.countBy=Oh,s.create=Hp,s.curry=Xo,s.curryRight=Jo,s.debounce=Qo,s.defaults=Vp,s.defaultsDeep=Gp,s.defer=tp,s.delay=np,s.difference=Td,s.differenceBy=Ld,s.differenceWith=Sd,s.drop=Ad,s.dropRight=kd,s.dropRightWhile=Md,s.dropWhile=Ed,s.fill=Od,s.filter=Bh,s.flatMap=Dh,s.flatMapDeep=Fh,s.flatMapDepth=$h,s.flatten=qo,s.flattenDeep=Id,s.flattenDepth=Bd,s.flip=rp,s.flow=Qv,s.flowRight=jv,s.fromPairs=Pd,s.functions=jp,s.functionsIn=ev,s.groupBy=Nh,s.initial=Dd,s.intersection=Fd,s.intersectionBy=$d,s.intersectionWith=Nd,s.invert=nv,s.invertBy=rv,s.invokeMap=Wh,s.iteratee=Ll,s.keyBy=zh,s.keys=Re,s.keysIn=nt,s.map=Hr,s.mapKeys=lv,s.mapValues=av,s.matches=e0,s.matchesProperty=t0,s.memoize=Gr,s.merge=ov,s.mergeWith=ss,s.method=n0,s.methodOf=r0,s.mixin=Sl,s.negate=Yr,s.nthArg=l0,s.omit=sv,s.omitBy=uv,s.once=ip,s.orderBy=Uh,s.over=a0,s.overArgs=lp,s.overEvery=o0,s.overSome=s0,s.partial=yl,s.partialRight=jo,s.partition=Hh,s.pick=cv,s.pickBy=us,s.property=gs,s.propertyOf=u0,s.pull=Ud,s.pullAll=zo,s.pullAllBy=Hd,s.pullAllWith=Vd,s.pullAt=Gd,s.range=c0,s.rangeRight=f0,s.rearg=ap,s.reject=Yh,s.remove=Yd,s.rest=op,s.reverse=vl,s.sampleSize=Zh,s.set=dv,s.setWith=hv,s.shuffle=Xh,s.slice=Kd,s.sortBy=jh,s.sortedUniq=th,s.sortedUniqBy=nh,s.split=Dv,s.spread=sp,s.tail=rh,s.take=ih,s.takeRight=lh,s.takeRightWhile=ah,s.takeWhile=oh,s.tap=xh,s.throttle=up,s.thru=Ur,s.toArray=is,s.toPairs=cs,s.toPairsIn=fs,s.toPath=g0,s.toPlainObject=as,s.transform=pv,s.unary=cp,s.union=sh,s.unionBy=uh,s.unionWith=ch,s.uniq=fh,s.uniqBy=dh,s.uniqWith=hh,s.unset=vv,s.unzip=gl,s.unzipWith=Uo,s.update=gv,s.updateWith=mv,s.values=Bn,s.valuesIn=yv,s.without=ph,s.words=ps,s.wrap=fp,s.xor=vh,s.xorBy=gh,s.xorWith=mh,s.zip=yh,s.zipObject=_h,s.zipObjectDeep=wh,s.zipWith=bh,s.entries=cs,s.entriesIn=fs,s.extend=os,s.extendWith=Xr,Sl(s,s),s.add=y0,s.attempt=vs,s.camelCase=xv,s.capitalize=ds,s.ceil=_0,s.clamp=_v,s.clone=hp,s.cloneDeep=vp,s.cloneDeepWith=gp,s.cloneWith=pp,s.conformsTo=mp,s.deburr=hs,s.defaultTo=Jv,s.divide=w0,s.endsWith=Cv,s.eq=Lt,s.escape=Tv,s.escapeRegExp=Lv,s.every=Ih,s.find=Ph,s.findIndex=$o,s.findKey=Yp,s.findLast=Rh,s.findLastIndex=No,s.findLastKey=Kp,s.floor=b0,s.forEach=Vo,s.forEachRight=Go,s.forIn=Zp,s.forInRight=Xp,s.forOwn=Jp,s.forOwnRight=Qp,s.get=bl,s.gt=yp,s.gte=_p,s.has=tv,s.hasIn=xl,s.head=Wo,s.identity=rt,s.includes=qh,s.indexOf=Rd,s.inRange=wv,s.invoke=iv,s.isArguments=mn,s.isArray=ie,s.isArrayBuffer=wp,s.isArrayLike=tt,s.isArrayLikeObject=ke,s.isBoolean=bp,s.isBuffer=jt,s.isDate=xp,s.isElement=Cp,s.isEmpty=Tp,s.isEqual=Lp,s.isEqualWith=Sp,s.isError=_l,s.isFinite=Ap,s.isFunction=Wt,s.isInteger=es,s.isLength=Kr,s.isMap=ts,s.isMatch=kp,s.isMatchWith=Mp,s.isNaN=Ep,s.isNative=Op,s.isNil=Bp,s.isNull=Ip,s.isNumber=ns,s.isObject=Le,s.isObjectLike=Ae,s.isPlainObject=jn,s.isRegExp=wl,s.isSafeInteger=Pp,s.isSet=rs,s.isString=Zr,s.isSymbol=st,s.isTypedArray=In,s.isUndefined=Rp,s.isWeakMap=Dp,s.isWeakSet=Fp,s.join=qd,s.kebabCase=Sv,s.last=_t,s.lastIndexOf=Wd,s.lowerCase=Av,s.lowerFirst=kv,s.lt=$p,s.lte=Np,s.max=x0,s.maxBy=C0,s.mean=T0,s.meanBy=L0,s.min=S0,s.minBy=A0,s.stubArray=kl,s.stubFalse=Ml,s.stubObject=d0,s.stubString=h0,s.stubTrue=p0,s.multiply=k0,s.nth=zd,s.noConflict=i0,s.noop=Al,s.now=Vr,s.pad=Mv,s.padEnd=Ev,s.padStart=Ov,s.parseInt=Iv,s.random=bv,s.reduce=Vh,s.reduceRight=Gh,s.repeat=Bv,s.replace=Pv,s.result=fv,s.round=M0,s.runInContext=T,s.sample=Kh,s.size=Jh,s.snakeCase=Rv,s.some=Qh,s.sortedIndex=Zd,s.sortedIndexBy=Xd,s.sortedIndexOf=Jd,s.sortedLastIndex=Qd,s.sortedLastIndexBy=jd,s.sortedLastIndexOf=eh,s.startCase=Fv,s.startsWith=$v,s.subtract=E0,s.sum=O0,s.sumBy=I0,s.template=Nv,s.times=v0,s.toFinite=zt,s.toInteger=ae,s.toLength=ls,s.toLower=qv,s.toNumber=wt,s.toSafeInteger=qp,s.toString=me,s.toUpper=Wv,s.trim=zv,s.trimEnd=Uv,s.trimStart=Hv,s.truncate=Vv,s.unescape=Gv,s.uniqueId=m0,s.upperCase=Yv,s.upperFirst=Cl,s.each=Vo,s.eachRight=Go,s.first=Wo,Sl(s,function(){var e={};return kt(s,function(t,n){ye.call(s.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),s.VERSION=m,pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),pt(["drop","take"],function(e,t){fe.prototype[e]=function(n){n=n===i?1:Ie(ae(n),0);var r=this.__filtered__&&!t?new fe(this):this.clone();return r.__filtered__?r.__takeCount__=Ue(n,r.__takeCount__):r.__views__.push({size:Ue(n,Be),type:e+(r.__dir__<0?"Right":"")}),r},fe.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),pt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==ft||n==xt;fe.prototype[e]=function(l){var c=this.clone();return c.__iteratees__.push({iteratee:X(l,3),type:n}),c.__filtered__=c.__filtered__||r,c}}),pt(["head","last"],function(e,t){var n="take"+(t?"Right":"");fe.prototype[e]=function(){return this[n](1).value()[0]}}),pt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");fe.prototype[e]=function(){return this.__filtered__?new fe(this):this[n](1)}}),fe.prototype.compact=function(){return this.filter(rt)},fe.prototype.find=function(e){return this.filter(e).head()},fe.prototype.findLast=function(e){return this.reverse().find(e)},fe.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new fe(this):this.map(function(n){return Yn(n,e,t)})}),fe.prototype.reject=function(e){return this.filter(Yr(X(e)))},fe.prototype.slice=function(e,t){e=ae(e);var n=this;return n.__filtered__&&(e>0||t<0)?new fe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=ae(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},fe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fe.prototype.toArray=function(){return this.take(Be)},kt(fe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),l=s[r?"take"+(t=="last"?"Right":""):t],c=r||/^find/.test(t);l&&(s.prototype[t]=function(){var h=this.__wrapped__,b=r?[1]:arguments,S=h instanceof fe,P=b[0],R=S||ie(h),D=function(ue){var de=l.apply(s,Gt([ue],b));return r&&z?de[0]:de};R&&n&&typeof P=="function"&&P.length!=1&&(S=R=!1);var z=this.__chain__,Y=!!this.__actions__.length,J=c&&!z,oe=S&&!Y;if(!c&&R){h=oe?h:new fe(this);var Q=e.apply(h,b);return Q.__actions__.push({func:Ur,args:[D],thisArg:i}),new gt(Q,z)}return J&&oe?e.apply(this,b):(Q=this.thru(D),J?r?Q.value()[0]:Q.value():Q)})}),pt(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var l=arguments;if(r&&!this.__chain__){var c=this.value();return t.apply(ie(c)?c:[],l)}return this[n](function(h){return t.apply(ie(h)?h:[],l)})}}),kt(fe.prototype,function(e,t){var n=s[t];if(n){var r=n.name+"";ye.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[Dr(i,F).name]=[{name:"wrapper",func:i}],fe.prototype.clone=Vc,fe.prototype.reverse=Gc,fe.prototype.value=Yc,s.prototype.at=Ch,s.prototype.chain=Th,s.prototype.commit=Lh,s.prototype.next=Sh,s.prototype.plant=kh,s.prototype.reverse=Mh,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Eh,s.prototype.first=s.prototype.head,qn&&(s.prototype[qn]=Ah),s},Tn=Tc();un?((un.exports=Tn)._=Tn,Li._=Tn):Ne._=Tn}).call(tr)})(nn,nn.exports);const Us="dForm";function ti(u,d,i){let m=u;return d&&(m+=`__${d}`),i&&(m+=`--${i}`),m}function Ng(u,d=!1){const i=d?`.devui-${u}`:`devui-${u}`;return{b:()=>ti(i),e:a=>a?ti(i,a):"",m:a=>a?ti(i,"",a):"",em:(a,f)=>a&&f?ti(i,a,f):""}}const oi="dFormItem",qg={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1},fitOriginWidth:{type:Boolean,default:!1}};function Wg(u,d,i,m){let{x:p,y:_}=d;if(!u){const{width:v,height:a}=m;p&&i.includes("start")&&(p=12),p&&i.includes("end")&&(p=Math.round(v-24)),_&&i.includes("start")&&(_=10),_&&i.includes("end")&&(_=a-14)}return{x:p,y:_}}function zg(u,d){const{fitOriginWidth:i,position:m,showArrow:p}=ln(u),_=re(),v=re(),a=re(0);let f;const w=K(()=>i.value?{width:a.value+"px"}:{}),x=(k,F,E,B)=>{const{x:q,y:$}=Wg(u.isArrowCenter,E,F,B.getBoundingClientRect()),C={top:"bottom",right:"left",bottom:"top",left:"right"}[F.split("-")[0]];Object.assign(k.style,{left:q?`${q}px`:"",top:$?`${$}px`:"",right:"",bottom:"",[C]:"-4px"})},o=async()=>{const k=u.origin,F=te(_.value),E=te(v.value),[B,...q]=m.value,$=[q0(u.offset)];$.push(q.length?ys({fallbackPlacements:q}):ys()),p.value&&$.push(W0({element:v.value}));const{x:C,y:N,placement:U,middlewareData:G}=await z0(k,F,{strategy:"fixed",placement:B,middleware:$});let ge=C,Ge=N;d("positionChange",U),Object.assign(F.style,{top:`${Ge}px`,left:`${ge}px`}),u.showArrow&&x(E,U,G.arrow,F)},g=k=>{var F,E;const B=k.target;B?.contains((E=(F=u.origin)==null?void 0:F.$el)!=null?E:u.origin)&&o()},L=k=>{a.value=k.getBoundingClientRect().width,o()},A=()=>{var k,F;if(i.value&&typeof window<"u"){const E=(F=(k=u.origin)==null?void 0:k.$el)!=null?F:u.origin;E&&(f=new window.ResizeObserver(()=>L(E)),f.observe(E))}},y=()=>{var k,F;const E=(F=(k=u.origin)==null?void 0:k.$el)!=null?F:u.origin;E&&f?.unobserve(E)};return Je(()=>u.modelValue,()=>{u.modelValue&&u.origin?($l(o),window.addEventListener("scroll",g,!0),window.addEventListener("resize",o),A()):(window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",o),y())}),or(()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",o),y()}),{arrowRef:v,overlayRef:_,styles:w,updatePosition:o}}const Hs=Ve({name:"DFlexibleOverlay",inheritAttrs:!1,props:qg,emits:["update:modelValue","positionChange"],setup(u,{slots:d,attrs:i,emit:m,expose:p}){const _=Qe("flexible-overlay"),{clickEventBubble:v}=ln(u),{arrowRef:a,overlayRef:f,styles:w,updatePosition:x}=zg(u,m);return p({updatePosition:x}),()=>{var o;return u.modelValue&&O("div",ql({ref:f,class:_.b(),style:w.value},i,{onClick:tn(()=>({}),[v.value?"":"stop"]),onPointerup:tn(()=>({}),["stop"])}),[(o=d.default)==null?void 0:o.call(d),u.showArrow&&O("div",{ref:a,class:_.e("arrow")},null)])}}}),Vs=Symbol("popper-trigger");/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Ug=u=>u!==null&&typeof u=="object",Hg=Qe("popper-trigger");function Ts(u){return Fs("span",{class:Hg.b()},u)}function Gs(u){for(const d of u){if(Ug(d)){if(d.type===U0)continue;return d.type==="svg"||d.type===H0?Ts(d):d.type===ar?Gs(d.children):d}return Ts(d)}return null}var Vg=Ve({name:"DPopperTrigger",setup(u,d){const{slots:i,attrs:m}=d;return()=>{var p;const _=(p=i.default)==null?void 0:p.call(i,m),v=At(Vs);if(!_)return null;const a=Gs(_);return a?Rn(N0(a,m),[[{mounted(f){v.value=f},updated(f){v.value=f},unmounted(){v.value=null}}]]):null}}});const Gg={isOpen:{type:Boolean,default:!1},position:{type:Array,default:()=>["top","right","bottom","left"]},offset:{type:[Number,Object],default:8},content:{type:String,default:""},trigger:{type:String,default:"click"},popType:{type:String,default:"default"},showAnimation:{type:Boolean,default:!0},mouseEnterDelay:{type:Number,default:150},mouseLeaveDelay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},Yg={top:"50% calc(100% + 8px)",bottom:"50% -8px",left:"calc(100% + 8px)",right:"-8px 50%"};function Kg(u,d,i,m,p){const{trigger:_,isOpen:v}=ln(u),a=K(()=>({zIndex:"var(--devui-z-index-pop-up, 1060)",transformOrigin:Yg[i.value]})),f=w=>{var x,o;!((x=m.value)!=null&&x.contains(w.target))&&!((o=p.value.$el)!=null&&o.contains(w.target))&&(d.value=!1)};return Je(v,w=>{d.value=w}),Je(d,()=>{d.value&&_.value!=="manually"?document.addEventListener("click",f):document.removeEventListener("click",f)}),or(()=>{document.removeEventListener("click",f)}),{overlayStyles:a}}function Zg(u,d,i){const{trigger:m,position:p,mouseEnterDelay:_,mouseLeaveDelay:v,disabled:a}=ln(u),f=K(()=>m.value==="click"),w=K(()=>m.value==="hover"),x=re(p.value[0].split("-")[0]),o=re(!1),g=()=>{a.value||f.value&&(d.value=!d.value)},L=nn.exports.debounce(()=>{o.value&&(d.value=!0)},_.value),A=nn.exports.debounce(()=>{!o.value&&(d.value=!1)},v.value),y=()=>{a.value||w.value&&(o.value=!0,L())},k=()=>{w.value&&(o.value=!1,A())},F=()=>{o.value=!1,d.value=!1};Je(a,B=>{B&&d.value&&F()});const E=B=>{x.value=B.split("-")[0]};return yn(()=>{m.value==="click"?i.value.addEventListener("click",g):m.value==="hover"&&(i.value.addEventListener("mouseenter",y),i.value.addEventListener("mouseleave",k))}),{placement:x,handlePositionChange:E,onMouseenter:y,onMouseleave:k}}const rn=Qe("popover");function Xg(){return O("svg",{class:[rn.e("icon"),rn.em("icon","success")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("circle",{cx:"8",cy:"8",r:"7"},null),O("path",{d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z","fill-rule":"nonzero"},null),O("polygon",{"stroke-width":"0.4","fill-rule":"nonzero",points:"8.16 10.48 7.32 11.32 6.48 10.48 6.48 10.48 3.6 7.68 4.44 6.84 7.28 9.68 11.52 5.44 12.36 6.28"},null)])])}function Jg(){return O("svg",{class:[rn.e("icon"),rn.em("icon","warning")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("polygon",{points:"7.5 1.74501946 1.39184847 13.5954649 7.08947368 14.2207621 13.9973698 13.5954649 10.9383683 5.61273879 8.40084114 1.27624313"},null),O("path",{d:`M8.51325441,0.127397589 C8.70423071,0.228333932
8.8605922,0.383286648 8.96244623,0.57254229 L15.8714442,13.4101975
C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158
C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15
C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684
0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987
8.51325441,0.127397589 Z M8.87894737,11.2105263 L7.08947368,11.2105263 L7.08947368,13
L8.87894737,13 L8.87894737,11.2105263 Z M8.96842105,4.5 L7,4.5 L7.08947368,9.86842105
L8.87894737,9.86842105 L8.96842105,4.5 Z`},null)])])}function Qg(){return O("svg",{class:[rn.e("icon"),rn.em("icon","info")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("circle",{cx:"8",cy:"8",r:"7"},null),O("g",{"stroke-width":"1"},[O("path",{d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z M9,5 L7,5 L7,3 L9,3 L9,5 Z M9,12.6 L7,12.6 L7,6.6 L9,6.6 L9,12.6 Z"},null)])])])}function jg(){return O("svg",{class:[rn.e("icon"),rn.em("icon","error")],width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("circle",{cx:"8",cy:"8",r:"7"},null),O("path",{d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z M9,12.6 L7,12.6 L7,10.6 L9,10.6 L9,12.6 Z M9,9.1 L7,9.1 L6.9,3.1 L9.1,3.1 L9,9.1 Z","fill-rule":"nonzero"},null)])])}var em=Ve({props:{type:{type:String,default:"default"}},setup(u){const d=Qe("popover");return()=>u.type&&u.type!=="default"&&O("span",{class:d.e("icon-wrap")},[u.type==="success"&&O(Xg,null,null),u.type==="warning"&&O(Jg,null,null),u.type==="info"&&O(Qg,null,null),u.type==="error"&&O(jg,null,null)])}}),tm=Ve({name:"DPopover",inheritAttrs:!1,props:Gg,emits:["show","hide"],setup(u,{slots:d,attrs:i,emit:m}){const{content:p,popType:_,position:v,offset:a,showAnimation:f}=ln(u),w=re(),x=re(),o=re(!1),{placement:g,handlePositionChange:L,onMouseenter:A,onMouseleave:y}=Zg(u,o,w),{overlayStyles:k}=Kg(u,o,g,w,x),F=Qe("popover");return Ps(Vs,w),Je(o,E=>{m(E?"show":"hide")}),()=>O(ar,null,[O(Vg,null,{default:()=>{var E;return[(E=d.default)==null?void 0:E.call(d)]}}),O(Nl,{to:"body"},{default:()=>[O(Rs,{name:f.value?F.m(`fade-${g.value}`):""},{default:()=>[O(Hs,ql({modelValue:o.value,"onUpdate:modelValue":E=>o.value=E,ref:x,origin:w.value,position:v.value,offset:a.value,class:[F.e("content"),_.value!=="default"?"is-icon":""],"show-arrow":!0,"is-arrow-center":!1,style:k.value},i,{onPositionChange:L,onMouseenter:A,onMouseleave:y}),{default:()=>{var E;return[O(em,{type:_.value},null),((E=d.content)==null?void 0:E.call(d))||O("span",null,[p.value])]}})]})]})])}});function nm(u,d,i,m,p,_,v){const a=At(Us,void 0),f=At(oi,void 0),w=Qe("select"),x=re(),o=K(()=>a?.disabled||u.disabled),g=K(()=>u.size||a?.size||"md"),L=re(!1),A=re(),y=re(!1),k=W=>{o.value||(y.value=W,i.emit("toggle-change",W))};ig(x,()=>{k(!1)},{ignore:[d]});const F=Qe("dropdown-menu-multiple"),E=K(()=>ai(w.b(),{[w.m("open")]:y.value,[F.b()]:u.multiple,[w.m("lg")]:g.value==="lg",[w.m("sm")]:g.value==="sm",[w.m("underlined")]:u.overview==="underlined",[w.m("disabled")]:o.value,[w.m("focus")]:_.value})),B=new Map,q=K(()=>{const{multiple:W,modelValue:ee}=u;return u.options.map(he=>{let pe;return typeof he=="object"?pe={name:he.name?he.name:he.value+"",_checked:!1,...he}:pe={name:he+"",value:he,_checked:!1},W&&(Array.isArray(ee)?pe._checked=ee.includes(pe.value):pe._checked=!1),B.set(pe.value,pe),pe})}),$=W=>W.map(ee=>B.get(ee)),C=re(new Map),N=(W,ee,he)=>{ee==="add"?C.value.set(W.value,W):ee==="delete"&&C.value.get(W.value)&&C.value.delete(W.value),L.value=he},U=()=>{if(u.multiple&&Array.isArray(u.modelValue))for(const W of C.value.values())u.modelValue.includes(W.value)?W._checked=!0:W._checked=!1},G=W=>W.map(ee=>{if(u.allowCreate){const he=C.value.get(ee);return he||(ee?{name:ee,value:ee,_checked:!0}:he)}else return C.value.get(ee)}),ge=re(""),Ge=K(()=>u.multiple&&Array.isArray(u.modelValue)?G(u.modelValue).filter(W=>!!W):Array.isArray(u.modelValue)?[]:G([u.modelValue]).filter(W=>!!W)),Ot=K(()=>nn.exports.isFunction(u.filter)||typeof u.filter=="boolean"&&u.filter),Ht=W=>{if(q.value.length)i.emit("value-change",$(W).filter(ee=>!!ee));else if(L.value){const ee=G(W).filter(he=>!!he);i.emit("value-change",ee)}else i.emit("value-change",W)},ft=W=>{q.value.length?i.emit("value-change",$([W.value])[0]):L.value?i.emit("value-change",W):i.emit("value-change",W.value)},an=W=>{const{multiple:ee}=u;let{modelValue:he}=u;if(ee){const pe=Array.isArray(he)?he.slice():[],it=pe.indexOf(W.value),sn=G([W.value])[0];sn&&(sn._checked=!sn._checked);const Pe=$([W.value])[0];Pe&&(Pe._checked=!Pe._checked),it>-1?pe.splice(it,1):pe.push(W.value),he=pe,i.emit("update:modelValue",he),W.create&&(ge.value=""),Ot.value&&m(),Ht(pe)}else W.create&&(ge.value=""),i.emit("update:modelValue",W.value),ft(W),k(!1)},xt=()=>{y.value=!1,i.emit("toggle-change",!1)},Fe=()=>{u.multiple?(i.emit("update:modelValue",[]),i.emit("value-change",[])):(i.emit("update:modelValue",""),i.emit("value-change","")),i.emit("clear"),y.value&&(xt(),p()),ge.value=""},je=W=>{let{modelValue:ee}=u;const he=[];for(const pe of Ge.value)W.value===pe.value&&(pe._checked=!1),pe._checked&&he.push(pe.value);ee=he,i.emit("update:modelValue",ee),i.emit("remove-tag",W.value),Ht(he)},on=W=>{i.emit("focus",W),o.value||(_.value=!0)},dt=W=>{i.emit("blur",W),o.value||(_.value=!1)},Be=W=>{ge.value=W,i.emit("input-change",W)},It=K(()=>typeof u.loading=="boolean"&&u.loading),j=K(()=>u.remote?300:0),H=W=>{var ee;nn.exports.isFunction(u.filter)?u.filter(W):(Be(W),(ee=x.value)==null||ee.updatePosition())},Z=nn.exports.debounce(W=>{H(W)},j.value),Ce=K(()=>Array.from(C.value.values())),ze=K(()=>{const W=Ce.value.filter(ee=>!ee.create).some(ee=>ee.name===ge.value);return typeof u.filter=="boolean"&&u.filter&&u.allowCreate&&!!ge.value&&!W});Je(ze,()=>{var W;(W=x.value)==null||W.updatePosition()});const $e=K(()=>{const W=Ce.value.filter(ee=>(ee.name||ee.value).toString().toLocaleLowerCase().includes(ge.value.toLocaleLowerCase().trim())).length;return It.value?"":Ot.value&&ge.value&&Ce.value.length>0&&W===0?u.noMatchText||v("noMatchText"):Ce.value.length===0?u.noDataText||v("noDataText"):""}),Se=K(()=>!!$e.value&&(!u.allowCreate||It.value||u.allowCreate&&Ce.value.length===0)),Bt=W=>{const ee=u.optionDisabledKey?!!W[u.optionDisabledKey]:!1;if(u.multiple){let he=[];return he=u.modelValue,ee||!!u.multipleLimit&&u.multipleLimit<=he.length&&!he.includes(W.value)}else return ee};return Je(()=>u.modelValue,()=>{f?.validate("change").catch(W=>console.warn(W)),U()},{deep:!0}),Je(C,()=>{var W;y.value&&((W=x.value)==null||W.updatePosition())},{deep:!0}),Je(y,W=>{var ee;W&&((ee=x.value)==null||ee.updatePosition())},{flush:"post"}),yn(()=>{$l(U)}),{selectDisabled:o,selectSize:g,originRef:A,dropdownRef:x,isOpen:y,selectCls:E,mergeOptions:q,selectedOptions:Ge,filterQuery:ge,emptyText:$e,isLoading:It,isShowEmptyText:Se,handleClear:Fe,valueChange:an,handleClose:xt,updateInjectOptions:N,tagDelete:je,onFocus:on,onBlur:dt,isDisabled:Bt,toggleChange:k,debounceQueryFilter:Z,isShowCreateOption:ze}}const rm={modelValue:{type:[String,Number,Array],default:""},"onUpdate:modelValue":{type:Function,default:void 0},options:{type:Array,default:()=>[]},position:{type:Array,default:()=>["bottom","top","left","right"]},size:{type:String,default:""},overview:{type:String,default:"border"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},optionDisabledKey:{type:String,default:""},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},filter:{type:[Boolean,Function],default:!1},remote:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},noDataText:{type:String,default:""},noMatchText:{type:String,default:""},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},onToggleChange:{type:Function,default:void 0},onValueChange:{type:Function,default:void 0},multipleLimit:{type:Number,default:0},showGlowStyle:{type:Boolean,default:!0},menuClass:{type:String,default:""},maxLength:{type:Number}},im={value:{type:[String,Number],default:""},name:{type:String,default:""},disabled:{type:Boolean,default:!1},create:{type:Boolean,default:!1}},Wl=Symbol("dSelect"),lm=Symbol("dOptionGroup"),am={name:{type:String,default:void 0},halfChecked:{type:Boolean,default:!1},isShowTitle:{type:Boolean,default:!0},title:{type:String},color:{type:String,default:void 0},showAnimation:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},beforeChange:{type:Function,default:void 0},size:{type:String},showGlowStyle:{type:Boolean,default:!0}},om={...am,checked:{type:Boolean,default:!1},value:{type:[Number,String]},label:{type:String,default:""},"onUpdate:checked":{type:Function,default:void 0},onChange:{type:Function,default:void 0},modelValue:{type:Boolean},"onUpdate:modelValue":{type:Function},border:{type:Boolean,default:!1}},sm=Symbol("d-checkbox-group");function um(u,d){const i=At(Us,void 0),m=At(oi,void 0),p=At(sm,null),_=K(()=>u.checked||u.modelValue),v=K(()=>{var B,q;return(q=(B=p?.isItemChecked)==null?void 0:B.call(p,u.value))!=null?q:_.value}),a=K(()=>{const B=p?.max.value;return!!B&&p?.modelValue.value.length>=B&&!v.value}),f=K(()=>p?.disabled.value||u.disabled||i?.disabled||a.value),w=K(()=>{var B;return(B=p?.isShowTitle.value)!=null?B:u.isShowTitle}),x=K(()=>{var B;return(B=p?.showAnimation.value)!=null?B:u.showAnimation}),o=K(()=>{var B;return(B=p?.color.value)!=null?B:u.color}),g=p?.itemWidth,L=p?.direction,A=(B,q)=>{var $;if(f.value)return Promise.resolve(!1);const C=($=u.beforeChange)!=null?$:p?.beforeChange;if(C){const N=C(B,q);return typeof N=="boolean"?Promise.resolve(N):N}return Promise.resolve(!0)},y=()=>{const B=!v.value;p?.toggleGroupVal(u.value),d.emit("update:checked",B),d.emit("update:modelValue",B),d.emit("change",B)},k=()=>{A(!v.value,u.label).then(B=>B&&y())},F=K(()=>u.size||p?.size.value||i?.size||"md"),E=K(()=>{var B;return(B=p?.border.value)!=null?B:u.border});return Je(()=>u.modelValue,()=>{m?.validate("change").catch(()=>{})}),{mergedChecked:v,mergedDisabled:f,mergedIsShowTitle:w,mergedShowAnimation:x,mergedColor:o,itemWidth:g,direction:L,handleClick:k,size:F,border:E}}var Ls=Ve({name:"DCheckbox",props:om,emits:["change","update:checked","update:modelValue"],setup(u,d){const i=Ng("checkbox"),{mergedChecked:m,mergedDisabled:p,mergedIsShowTitle:_,mergedShowAnimation:v,mergedColor:a,itemWidth:f,direction:w,handleClick:x,size:o,border:g}=um(u,d);return()=>{var L,A;const y=K(()=>({[i.e("column-margin")]:w?.value==="column",[i.e("wrap")]:typeof f?.value<"u"})),k=K(()=>f?.value?[`width: ${f.value}px`]:[]),F={[i.b()]:!0,active:m.value,"half-checked":u.halfChecked,disabled:p.value,unchecked:!m.value,[i.m("glow-style")]:u.showGlowStyle,[i.m(`checkbox-${o.value}`)]:g.value,[i.m("checkbox-bordered")]:g.value},E=_.value?u.title||u.label:"",B=a.value&&u.halfChecked||a.value?`linear-gradient(${a.value}, ${a.value})`:"",q=[`border-color:${(m.value||u.halfChecked)&&a.value?a.value:""}`,`background-image:${B}`,`background-color:${a.value&&u.halfChecked?a.value:""}`],$={[i.e("material")]:!0,"custom-color":a.value,[i.m("no-label")]:!u.label&&!d.slots.default,[i.m("no-animation")]:!v.value,[i.e("default-background")]:!u.halfChecked},C={[i.e("tick")]:!0,[i.m("no-animation")]:!v.value},N={[i.m(o.value)]:g.value,[i.m("bordered")]:g.value},U=ge=>ge.stopPropagation(),G={indeterminate:u.halfChecked};return O("div",{class:y.value,style:k.value},[O("div",{class:F},[u.showGlowStyle&&v.value&&O("div",{class:i.e("glow-box")},[O("span",{class:"glow-bg"},null)]),O("label",{title:E,onClick:x,class:N,style:{width:f?.value?"100%":"auto"}},[O("input",ql({name:u.name||u.value,class:i.e("input"),type:"checkbox"},G,{checked:m.value,disabled:p.value,onClick:U,onChange:U}),null),O("span",{style:q,class:$},[O("span",{class:i.e("halfchecked-bg")},null),O("svg",{viewBox:"0 0 14 14",width:"14",height:"14",class:i.e("tick-wrap")},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("path",{d:"M 2.3 7.0 5.6 9.6 11.4 3.5",stroke:"#fff","stroke-width":"1.5",fill:"none",class:C},null)])])]),O("span",{class:i.e("label-text")},[u.label||((A=(L=d.slots).default)==null?void 0:A.call(L))])])])])}}});function cm(u){const d=Qe("select"),i=At(Wl,null),m=At(lm,null),p=K(()=>u.name||u.value),_=K(()=>i?.modelValue?i?.multiple?Array.isArray(i.modelValue)&&i.modelValue.includes(u.value):i.modelValue===u.value:!1),v=K(()=>({name:u.name||u.value+""||"",value:u.value,create:u.create,_checked:!1})),a=K(()=>u.disabled||!!m?.disabled),f=re(!!u.name),w=K(()=>ai(d.e("item"),{active:_.value,disabled:a.value})),x=()=>{a.value||i?.valueChange(v.value)},o=K(()=>{if(i?.filterQuery){const g=i?.filterQuery.toLocaleLowerCase().trim();return p.value.toString().toLocaleLowerCase().includes(g)}else return!0});return F0(()=>{i?.updateInjectOptions(v.value,"add",f.value)}),$0(()=>{i?.updateInjectOptions(v.value,"delete",f.value)}),{currentName:p,selectOptionCls:w,isVisible:o,optionSelect:x}}var Ss=Ve({name:"DOption",props:im,setup(u,d){const{currentName:i,selectOptionCls:m,isVisible:p,optionSelect:_}=cm(u);return()=>{var v;return Rn(O("li",{onClick:tn(_,["prevent","stop"]),class:m.value},[(v=d.slots)!=null&&v.default?d.slots.default():i.value]),[[li,p.value]])}}});function fm(){return O("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("path",{d:`M3.64644661,5.64644661 C3.82001296,5.47288026 4.08943736,5.45359511 4.2843055,5.58859116 L4.35355339,5.64644661
L8,9.293 L11.6464466,5.64644661 C11.820013,5.47288026 12.0894374,5.45359511 12.2843055,5.58859116 L12.3535534,5.64644661
C12.5271197,5.82001296 12.5464049,6.08943736 12.4114088,6.2843055 L12.3535534,6.35355339 L8.35355339,10.3535534
C8.17998704,10.5271197 7.91056264,10.5464049 7.7156945,10.4114088 L7.64644661,10.3535534 L3.64644661,6.35355339
C3.45118446,6.15829124 3.45118446,5.84170876 3.64644661,5.64644661 Z`},null)])])}function dm(){return O("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("path",{d:"M8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 C4.13400675,15 1,11.8659932 1,8 C1,4.13400675 4.13400675,1 8,1 Z M5.87867966,5.17157288 C5.68341751,4.97631073 5.36683502,4.97631073 5.17157288,5.17157288 C4.99800652,5.34513923 4.97872137,5.61456363 5.11371742,5.80943177 L5.17157288,5.87867966 L7.29218611,7.99929289 L5.17157288,10.1213203 C4.97631073,10.3165825 4.97631073,10.633165 5.17157288,10.8284271 C5.34513923,11.0019935 5.61456363,11.0212786 5.80943177,10.8862826 L5.87867966,10.8284271 L7.99929289,8.70639967 L10.1213203,10.8284271 C10.3165825,11.0236893 10.633165,11.0236893 10.8284271,10.8284271 C11.0019935,10.6548608 11.0212786,10.3854364 10.8862826,10.1905682 L10.8284271,10.1213203 L8.70710678,8 L10.8284271,5.87867966 C11.0236893,5.68341751 11.0236893,5.36683502 10.8284271,5.17157288 C10.6548608,4.99800652 10.3854364,4.97872137 10.1905682,5.11371742 L10.1213203,5.17157288 L8,7.29289322 L5.87867966,5.17157288 Z",id:"形状",fill:"#D5D5DB","fill-rule":"nonzero"},null)])])}const hm={type:{type:String,default:""},color:{type:String,default:""},titleContent:{type:String,default:""},checked:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},size:{type:String,default:"md"}};function pm(u){const d=Qe("tag");return K(()=>{const{type:i,color:m,deletable:p}=u;return`${d.e("item")} ${d.m(i||(m?"colorful":"")||"default")} ${p?d.m("deletable"):""} ${d.m(u.size)}`})}function vm(u){return K(()=>{const{color:d,type:i}=u,m={primary:"var(--devui-primary, #5e7ce0)",success:"var(--devui-success, #50d4ab)",warning:"var(--devui-warning, #fac20a)",danger:"var(--devui-danger, #f66f6a)"},p={"blue-w98":"#3383ff","aqua-w98":"#39afcc","olivine-w98":"#2fa898","green-w98":"#4eb15e","yellow-w98":"#b08d1a","orange-w98":"#d47f35","red-w98":"#f66f6a","pink-w98":"#f3689a","purple-w98":"#a97af8"};return!d&&i?m[i]:p[d]||d})}var ni=Ve({name:"DTag",props:hm,emits:["click","tagDelete","checkedChange"],setup(u,{slots:d,emit:i}){const m=Qe("tag"),{type:p,color:_,checked:v,titleContent:a,deletable:f}=ln(u),w=pm(u),x=vm(u),o=a.value||"",g=()=>!p.value&&!_.value,L=E=>{i("click",E)},A=E=>{E.stopPropagation(),i("tagDelete",E)},y=K(()=>g()?"":v.value?"#fff":x.value),k=()=>{const E=g()?"error-o":"close";return f.value?O("a",{class:"remove-button",onClick:A},[O(en("d-icon"),{size:"12px",name:E,color:y.value},null)]):null},F=Je(v,E=>{i("checkedChange",E)});return or(()=>F()),()=>{var E;return O("div",{class:m.b(),onClick:L},[O("span",{class:w.value,style:{display:"block",color:y.value,backgroundColor:v.value?x.value:_.value?"var(--devui-base-bg, #ffffff)":""},title:o},[(E=d.default)==null?void 0:E.call(d),k()])])}}});function Ys(...u){const d=i=>i&&typeof i=="object";return u.reduce((i,m)=>(Object.keys(m).forEach(p=>{const _=i[p],v=m[p];Array.isArray(_)&&Array.isArray(v)?i[p]=Array.from(new Set([...v,..._])):d(_)&&d(v)?i[p]=Ys(_,v):i[p]=v}),i),{})}var gm={pagination:{totalItemText:"所有条目",goToText:"跳至",perPage:"条/页"},accordion:{loading:"加载中",noData:"没有数据"},autoCompleteDropdown:{latestInput:"最近输入"},cascaderList:{noData:"没有数据"},colorPicker:{foundationPanel:"基础面板",advancedPanel:"高级面板"},datePickerPro:{ok:"确定",placeholder:"请选择日期",month1:"1月",month2:"2月",month3:"3月",month4:"4月",month5:"5月",month6:"6月",month7:"7月",month8:"8月",month9:"9月",month10:"10月",month11:"11月",month12:"12月",year:"年",startPlaceholder:"请选择开始日期",endPlaceholder:"请选择结束日期",getWeekDays(){return["日","一","二","三","四","五","六"]},getTimeArr(){return["时","分","秒"]},getYearMonthStr(u,d){return`${u}${d}`}},editableSelect:{noRelatedRecords:"找不到相关记录",noData:"没有数据"},input:{placeholder:"请输入"},splitterBar:{collapse:"收起",expand:"展开"},stepsGuide:{previous:"上一步",continue:"我知道啦,继续",ok:"我知道啦"},table:{selectAll:"全选",ok:"确定"},dataGrid:{selectAll:"全选",ok:"确定"},timePopup:{ok:"确定"},transfer:{unit:"项",panelUnit:"项",headerUnit:"项",noData:"暂无数据",placeholder:"请输入关键词搜索"},tree:{loading:"加载中",newNode:"新节点",selectPlaceholder:"请选择"},upload:{placeholder:"选择文件",getExistSameNameFilesMsg(u){return`您上传的 "${u}" 存在重名文件, 请重新选择文件`},getAllFilesBeyondMaximalFileSizeMsg(u){return`最大支持上传${u}MB的文件, 您本次上传的所有文件超过可上传文件大小`},getBeyondMaximalFileSizeMsg(u,d){return`最大支持上传${d}MB的文件, 您上传的文件"${u}"超过可上传文件大小`},getNotAllowedFileTypeMsg(u,d){return`支持的文件类型: "${d}", 您上传的文件"${u}"不在允许范围内,请重新选择文件`}},search:{placeholder:"请输入关键字"},select:{placeholder:"请选择",noDataText:"无数据",noMatchText:"找不到相关记录",loadingText:"加载中..."},tagInput:{maxTagsText:"已达到最大个数:"},timeSelect:{placeholder:"请选择时间"}};const ii=re("zh-CN");let Bl=lr({[ii.value]:gm});const mm={messages(){return Bl[ii.value]},lang(){return ii.value},use(u,d){ii.value=u,this.add({[u]:d})},add(u={}){Bl=Ys(Bl,u)}},ym=u=>u.substring(1).replace(/^\S/,d=>d.toLocaleLowerCase());function As(u,d){const i=d.split(".");let m=u;return i.forEach(p=>{var _;m=(_=m[p])!=null?_:""}),m}function Ks(u,d,i){const m=ym(u)+".";return p=>{var _;const v=((_=d?.appContext.config.globalProperties.langMessages)==null?void 0:_.value)||mm.messages();return As(v,m+p)||As(v,p)}}function _m(){const u=Qe("select"),d=At(Wl),i=At(oi,void 0),m=Ds(),p=Ks("DSelect",m),_=re(""),v=K(()=>d?.selectedOptions||[]),a=K(()=>!!d?.selectDisabled),f=K(()=>!!d?.collapseTags),w=K(()=>!!d?.collapseTagsTooltip),x=K(()=>i?.validateState==="error"),o=K(()=>d?nn.exports.isFunction(d.filter)?!1:!(typeof d.filter=="boolean"&&d.filter):!0),g=K(()=>{var G;return d?.selectedOptions?d.selectedOptions.length>1?d.selectedOptions.map(ge=>ge?.name||ge?.value||"").join(","):((G=d.selectedOptions[0])==null?void 0:G.name)||"":""}),L=K(()=>!a.value&&!!d?.allowClear&&!!g.value),A=K(()=>!w.value||!!d?.isOpen),y=K(()=>ai(u.e("selection"),{[u.e("clearable")]:L.value,[u.em("selection","error")]:x.value,[u.em("selection","glow-style")]:!!d?.showGlowStyle})),k=K(()=>ai(u.e("input"),{[u.em("input","lg")]:d?.selectSize==="lg",[u.em("input","sm")]:d?.selectSize==="sm"})),F=K(()=>d?.selectSize||"sm"),E=K(()=>g.value?"":d?.placeholder||p("placeholder")),B=K(()=>!!d?.multiple);return{select:d,searchQuery:_,selectedData:v,isSelectDisable:a,isSupportCollapseTags:f,isDisabledTooltip:A,isReadOnly:o,selectionCls:y,inputCls:k,tagSize:F,placeholder:E,isMultiple:B,displayInputValue:g,handleClear:G=>{G.preventDefault(),G.stopPropagation(),d?.handleClear()},tagDelete:G=>{G&&(G.value||G.value===0)&&d?.tagDelete(G)},onFocus:G=>{d?.onFocus(G)},onBlur:G=>{d?.onBlur(G)},queryFilter:G=>{G.preventDefault(),G.stopPropagation();const ge=G.target.value;!o.value&&d?.debounceQueryFilter&&d?.debounceQueryFilter(ge)}}}var wm=Ve({name:"SelectContent",setup(){const u=At(oi,void 0),d=Qe("select"),i=K(()=>({[d.e("clear")]:!0,[d.em("clear","feedback")]:!!u?.validateState&&u?.showFeedback})),m=K(()=>({[d.e("arrow")]:!0,[d.em("arrow","feedback")]:!!u?.validateState&&u?.showFeedback})),p=d.e("multiple"),_=d.em("multiple","input"),{select:v,searchQuery:a,selectedData:f,isSelectDisable:w,isSupportCollapseTags:x,isDisabledTooltip:o,isReadOnly:g,selectionCls:L,inputCls:A,tagSize:y,placeholder:k,isMultiple:F,displayInputValue:E,handleClear:B,tagDelete:q,onFocus:$,onBlur:C,queryFilter:N}=_m();return()=>O("div",{class:L.value},[F.value?O("div",{class:p},[!x.value&&f.value.length>=1&&f.value.map(U=>O(ni,{deletable:!0,onTagDelete:tn(()=>q(U),["prevent","stop"]),key:U.value,size:y.value},{default:()=>[U.name]})),x.value&&f.value.length>=1&&O(ni,{deletable:!0,onTagDelete:tn(()=>q(f.value[0]),["prevent","stop"]),size:y.value},{default:()=>[f.value[0].name]}),x.value&&f.value.length>1&&O(tm,{trigger:"hover",disabled:o.value},{default:()=>O(ni,{size:y.value},{default:()=>[`+${f.value.length-1}`]}),content:()=>O("div",null,[f.value.map((U,G)=>G!==0&&O(ni,{deletable:!0,onTagDelete:tn(()=>q(U),["prevent","stop"]),key:U.value,size:y.value},{default:()=>[U.name]}))])}),O("div",{class:_},[O("input",{ref:"input",value:a.value,type:"text",class:A.value,placeholder:k.value,readonly:g.value,disabled:w.value,maxlength:v?.maxLength,onInput:N,onFocus:$,onBlur:C},null)])]):O("input",{ref:"input",value:E.value,type:"text",class:A.value,placeholder:k.value,readonly:g.value,disabled:w.value,maxlength:v?.maxLength,onFocus:$,onBlur:C,onInput:N},null),O("span",{onClick:B,class:i.value},[O(dm,null,null)]),O("span",{class:m.value},[O(fm,null,null)])])}});function bm(u,d){const i=re(!1),m=K(()=>{var v;return((v=d.value)==null?void 0:v.$refs).input});return{isSelectFocus:i,focus:()=>{var v;u.disabled||(i.value=!0),(v=m?.value)==null||v.focus()},blur:()=>{var v;u.disabled||(i.value=!1),(v=m?.value)==null||v.blur()}}}class Zs{constructor(){this.top="50%",this.left="50%"}}const xm={message:String,backdrop:Boolean,view:{type:Object,default:()=>new Zs},zIndex:Number,isFull:{type:Boolean,default:!1}};class Cm{constructor(){this.backdrop=!0,this.positionType="relative",this.view=new Zs}}var Tm=Ve({name:"Loading",inheritAttrs:!1,props:xm,setup(u){const d={top:u.view.top,left:u.view.left,zIndex:u.zIndex};u.message||(d.background="none");const i=re(!1);return{style:d,isShow:i,open:()=>{i.value=!0},close:()=>{i.value=!1}}},render(){var u;const{isShow:d,isFull:i,backdrop:m,style:p,message:_,$slots:v}=this,a=Qe("loading");return d&&O("div",{class:[a.b(),i?a.m("full"):""]},[((u=v.default)==null?void 0:u.call(v))||O("div",{class:a.e("wrapper")},[m?O("div",{class:a.e("mask")},null):null,O("div",{style:p,class:a.e("area")},[O("div",{class:a.e("busy-default-spinner")},[O("div",{class:a.e("bar1")},null),O("div",{class:a.e("bar2")},null),O("div",{class:a.e("bar3")},null),O("div",{class:a.e("bar4")},null)]),_?O("span",{class:a.e("text")},[_]):null])])])}});const Xs=Symbol("dev_component_container");function Lm(u,d,i=null){const m=Fs(u,{...d},i),p=document.createElement("div");return m[Xs]=p,$s(m,p),m.component}function Sm(u){$s(null,u?.vnode[Xs])}const Am=Ve(Tm),ir=new WeakSet,Pl=u=>{if(!u)return!0;if(Array.isArray(u))return u.length===0;if(u instanceof Set||u instanceof Map)return u.size===0;if(u instanceof Promise)return!1;if(typeof u=="object")try{return Object.keys(u).length===0}catch{return!1}return!1},ks=u=>Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),km=u=>{switch(ks(u)){case"promise":return[u];case"array":return u.some(i=>ks(i)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):u;default:return!1}},Ms=u=>{ir.delete(u),u.instance.proxy.close(),Sm(u.instance)},Es=(u,d)=>{var i,m,p;if(d.value){const _=km(d.value);if(_==="error")return;(p=(m=(i=u?.instance)==null?void 0:i.proxy)==null?void 0:m.open)==null||p.call(m),u.appendChild(u.mask),ir.add(u),_&&Promise.all(_).catch(v=>{console.error(new Error("Promise handling errors"),v)}).finally(()=>{Ms(u)})}else Ms(u)},Os=u=>{u.removeAttribute("zindex"),u.removeAttribute("positiontype"),u.removeAttribute("backdrop"),u.removeAttribute("message"),u.removeAttribute("view"),u.removeAttribute("loadingtemplateref")},Is=(u,d)=>{var i;const m={...new Cm,...d},p=m.loadingTemplateRef,_=Lm(Am,{...m},p?()=>p:null);u.style.position=m.positionType||"relative",u.options=m,u.instance=_,u.mask=(i=_?.proxy)==null?void 0:i.$el},Mm={mounted:function(u,d,i){Is(u,i.props),Os(u),!Pl(d.value)&&Es(u,d)},updated:function(u,d,i){!Pl(d.value)&&ir.has(u)||Pl(d.value)&&!ir.has(u)||(!ir.has(u)&&Is(u,i.props),Os(u),Es(u,d))}};var Em=Ve({name:"DSelect",directives:{dLoading:Mm},props:rm,emits:["toggle-change","value-change","update:modelValue","focus","blur","remove-tag","clear","input-change"],setup(u,d){const i=Ds(),m=Ks("DSelect",i),p=re(),{isSelectFocus:_,focus:v,blur:a}=bm(u,p),{selectDisabled:f,selectSize:w,originRef:x,dropdownRef:o,isOpen:g,selectCls:L,mergeOptions:A,selectedOptions:y,filterQuery:k,emptyText:F,isLoading:E,isShowEmptyText:B,valueChange:q,handleClear:$,updateInjectOptions:C,tagDelete:N,onFocus:U,onBlur:G,debounceQueryFilter:ge,isDisabled:Ge,toggleChange:Ot,isShowCreateOption:Ht}=nm(u,p,d,v,a,_,m),ft=re(),an=Qe("scrollbar"),xt=Qe("select"),Fe=xt.e("dropdown"),je={[xt.e("dropdown-list")]:!0,[an.b()]:!0},on=xt.em("dropdown","empty");d.expose({focus:v,blur:a,toggleChange:Ot});const dt=re(!1),Be=re("bottom"),It=Z=>{Be.value=Z.split("-")[0]==="top"?"top":"bottom"},j=K(()=>({transformOrigin:Be.value==="top"?"0% 100%":"0% 0%","z-index":"var(--devui-z-index-dropdown, 1052)"}));Je(p,Z=>{Z&&(x.value=Z.$el)});const H=()=>{const Z=ft.value.scrollHeight-ft.value.clientHeight;ft.value.scrollTop===Z&&d.emit("load-more")};return yn(()=>{dt.value=!0,$l(()=>{var Z;(Z=ft.value)==null||Z.addEventListener("scroll",H)})}),Ps(Wl,lr({...ln(u),selectDisabled:f,selectSize:w,isOpen:g,selectedOptions:y,filterQuery:k,valueChange:q,handleClear:$,updateInjectOptions:C,tagDelete:N,onFocus:U,onBlur:G,debounceQueryFilter:ge})),()=>O("div",{class:L.value,onClick:tn(()=>{Ot(!g.value)},["stop"])},[O(wm,{ref:p},null),O(Nl,{to:"body"},{default:()=>[O(Rs,{name:`fade-${Be.value}`},{default:()=>[Rn(O(Hs,{modelValue:dt.value,"onUpdate:modelValue":Z=>dt.value=Z,ref:o,origin:x.value,offset:4,"fit-origin-width":!0,position:u.position,onPositionChange:It,style:j.value,class:u.menuClass},{default:()=>{var Z,Ce,ze,$e;return[Rn(O("div",{class:Fe},[Rn(O("ul",{class:je,ref:ft},[Ht.value&&O(Ss,{value:k.value,name:k.value,create:!0},{default:()=>[u.multiple?O(Ls,{modelValue:!1,label:k.value},null):k.value]}),((Z=d.slots)==null?void 0:Z.default)&&d.slots.default(),!((Ce=d.slots)!=null&&Ce.default)&&A.value.length>=1&&A.value.map(Se=>O(Ss,{key:Se.value,value:Se.value,name:Se.name,disabled:Ge(Se)},{default:()=>[u.multiple?O(Ls,{modelValue:Se._checked,label:Se.name,disabled:Ge(Se)},null):Se.name||Se.value]}))]),[[li,!E.value&&!B.value]]),(E.value||B.value)&&O("div",null,[((ze=d.slots)==null?void 0:ze.empty)&&d.slots.empty(),!(($e=d.slots)!=null&&$e.empty)&&O("p",{class:on},[F.value])])]),[[D0("dLoading"),E.value]])]}}),[[li,g.value]])]})]})])}});const Om=Ve({__name:"contextMenu",props:{show:{type:Boolean},options:{}},setup(u){const d=u,i=K(()=>({top:d.options.y+"px",left:d.options.x+"px"}));return yn(()=>{}),(m,p)=>u.show?(Ee(),Dl(Nl,{key:0,to:"body"},[ce("div",{class:"fixed z-[99999]",style:Pn(te(i))},[V0(m.$slots,"default")],4)])):nr("",!0)}}),Im={class:"pt-8 px-12 relative hidden lg:block"},Bm={key:0,class:"flex gap-6 px-2 mt-6 mb-3 flex-wrap lg:px-12"},Pm={class:"mt-1 w-full flex flex-col items-center cursor-pointer hover:!text-primary"},Rm=["src","onError"],Dm={class:"mt-2 w-full text-center text-lg truncate"},Fm={class:"flex"},$m=["src"],Nm={key:1,class:"ml-5 w-[30px] h-[30px]"},qm={class:"mt-14 w-full flex justify-between"},Wm={class:"mb-2"},zm={key:0,class:"text-primary"},Um={key:1,class:"text-primary"},Hm={key:2,class:"text-primary"},Vm={class:"mt-8 flex justify-between"},ri="!m-0 py-3 px-6 text-sm text-gray-700 w-full flex items-center justify-center hover:bg-[#f5f0f0] hover:text-primary",Gm=Ve({__name:"Home",setup(u){const d=re(!1),i=lr({}),m=re(null),p=re(0),_=re(!1),v=re(""),a=re(!1),f=lr({menu_link:"",menu_name:"",tag:"",menu_icon:""}),w=re(null),x=re(null),o=$store.nav.useNavStore(),g=re({}),L=re({}),A=re(""),y=re("bing"),k=re([{name:"必应",value:"bing",url:"https://cn.bing.com/search?q="},{name:"百度",value:"baidu",url:"https://www.baidu.com/s?wd="},{name:"谷歌",value:"google",url:"https://www.google.com/search?q="},{name:"翻译",value:"trans",url:"https://translate.volcengine.com?text="}]),F=re([]);let E=[];const B=re([{name:"全部",color:"",checked:!0}]),q=$store.log.useLogStore();let $=null;const C=()=>{$=setTimeout(()=>{d.value=!1},2e3)},N=()=>{clearTimeout($)};function U(j){if(d.value=!1,p.value=j,j==4){if(!m.value)return;$modal({title:"删除导航",content:`确定要删除【${m.value.menu_name}】吗?删除后不可恢复哦~`,cancelText:"取消",submitText:"删除",handdleSubmit:async()=>{(await $http.nav.deleteNav(m.value.nid)).code==200&&($msg.success("删除成功"),Ge())}});return}_.value=!0}function G(){_.value=!1,v.value=""}async function ge(){if(!v.value){$msg.error("请输入修改内容");return}let j={};p.value==1?j.menu_name=v.value:p.value==2?j.menu_link=v.value:p.value==3&&(j.tag=v.value.slice(0,4)),(await $http.nav.editNav(m.value.nid,j)).code==200&&($msg.success("修改成功"),_.value=!1,v.value="",Ge())}async function Ge(){if(!$cookies.get("userinfo")){F.value=[];return}const H=await $http.nav.getNavList();H.data?.forEach(Z=>{Z.icon_error=!1,Z.first=Z.menu_name.at(0),Z.color=Fe()}),F.value=H.data,F.value,H.data.forEach(Z=>{B.value.find(Ce=>Ce.name==Z.tag)||B.value.push({name:Z.tag.substring(0,4),color:Fe(30,128),checked:!1})}),E=Ws(H.data)}function Ot(j){const H=B.value.find(Z=>Z.name==j.tag);return H?H.color:Fe(30,128)}function Ht(j){if(j.checked=!j.checked,j.name=="全部"){B.value.forEach(Z=>{Z.name!=="全部"&&(Z.checked=!1)}),F.value=E;return}else{const Z=B.value.find(Ce=>Ce.name=="全部");Z&&(Z.checked=!1)}const H=B.value.filter(Z=>Z.checked&&Z.name!=="全部").map(Z=>Z.name);if(H.length===0){const Z=B.value.find(Ce=>Ce.name=="全部");Z&&(Z.checked=!0),F.value=E;return}F.value=E.filter(Z=>H.includes(Z.tag))}function ft(j){F.value[j].icon_error=!0}function an(j){window.open(j,"_BLANK")}function xt(){const j=hg(k.value,"value",y.value,"url");j&&window.open(j+A.value,"_BLANK")}const Fe=(j=30,H=128)=>{j=Math.max(0,j),H=Math.min(255,H),H<=j&&(H=j+30);const Z=Math.floor(Math.random()*(H-j+1))+j,Ce=Math.floor(Math.random()*(H-j+1))+j,ze=Math.floor(Math.random()*(H-j+1))+j,$e=Se=>{const Bt=Se.toString(16);return Bt.length===1?"0"+Bt:Bt};return`#${$e(Z)}${$e(Ce)}${$e(ze)}`};function je(){if(!$cookies.get("token")){$msg.error("请先登录");return}a.value=!0}async function on(){if(!f.menu_link)return;const j=await $http.mix.getIcon({url:f.menu_link});j.code==200&&(f.menu_icon=j.data.url)}function dt(){a.value=!1,w.value.resetFields()}async function Be(){if(!f.menu_link||!f.menu_name||!f.tag){$msg.error("请输入链接、标签和名称");return}f.tag=f.tag.slice(0,4),(await $http.nav.addNav(f)).code==200&&($msg.success("添加成功"),a.value=!1,w.value.resetFields(),Ge()),f.menu_link="",f.menu_name="",f.tag="",f.menu_icon=""}function It(j,H){d.value=!0,i.x=j.clientX,i.y=j.clientY,m.value=H}return Je(()=>q.isLogin,j=>{j?Ge():F.value=[]}),yn(()=>{o.navH,g.value={height:`${window.innerHeight-o.navH}px)`},L.value={height:`${window.innerHeight-x.value.getBoundingClientRect().y-20}px`},B.value=[{name:"全部",color:Fe(30,128),checked:!0}],Ge(),window.addEventListener("resize",()=>{g.value={height:`calc(100vh - ${o.navH}px)`},L.value={height:`${window.innerHeight-x.value.getBoundingClientRect().top-20}px`}})}),(j,H)=>{const Z=Em,Ce=J0,ze=Z0,$e=$g,Se=Bs,Bt=en("PerfectScrollbar"),W=K0,ee=Pg,he=Q0,pe=G0,it=eg,sn=j0,Pe=tg,Dn=Y0,si=cg;return Ee(),We("div",{class:"home-page",style:Pn(te(g))},[O(pe,null,{default:we(()=>[O(W,{class:"main-content"},{default:we(()=>[ce("div",Im,[O(ze,{class:"devui-input-demo__mt",size:"lg",modelValue:te(A),"onUpdate:modelValue":H[1]||(H[1]=le=>er(A)?A.value=le:null),onKeyup:X0(xt,["enter"]),placeholder:"请输入"},{prepend:we(()=>[O(Z,{class:"w-48",size:"lg",modelValue:te(y),"onUpdate:modelValue":H[0]||(H[0]=le=>er(y)?y.value=le:null),options:te(k)},null,8,["modelValue","options"])]),append:we(()=>[O(Ce,{name:"search",style:{"font-size":"inherit"},onClick:xt})]),_:1},8,["modelValue"])]),te(F).length?(Ee(),We("div",Bm,[(Ee(!0),We(ar,null,Rl(te(B),le=>(Ee(),Dl($e,{class:"cursor-pointer truncate",hideBeyondTags:"",checked:le.checked,color:le.color,onClick:Ye=>Ht(le)},{default:we(()=>[bt(De(le.name),1)]),_:2},1032,["checked","color","onClick"]))),256))])):nr("",!0),O(Bt,{class:"",style:Pn(te(L))},{default:we(()=>[ce("div",{ref_key:"navcards",ref:x,class:"navcard grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-5 pt-3 pb-6 px-2 lg:px-12"},[(Ee(!0),We(ar,null,Rl(te(F),(le,Ye)=>(Ee(),Dl(Se,{class:"bg-[#ffffff80] h-24",key:Ye,onClick:Pt=>an(le.menu_link),onContextmenu:tn(Pt=>It(Pt,le),["prevent"])},{content:we(()=>[ce("div",Pm,[le.icon_error?(Ee(),We("div",{key:0,style:Pn({background:le.color}),class:"w-8 h-8 rounded-full text-white flex items-center justify-center"},De(le.first),5)):(Ee(),We("img",{key:1,class:"grid-image w-8 h-8 rounded-full",src:le.menu_icon,onError:Pt=>ft(Ye)},null,40,Rm)),ce("div",Dm,De(le.menu_name||""),1),ce("em",{class:"absolute rounded-md top-0 left-0 px-2 text-white text-center text-sm",style:Pn({background:Ot(le)})},De(le.tag),5)])]),_:2},1032,["onClick","onContextmenu"]))),128)),O(Se,{class:"bg-[#ffffff80] h-25"},{default:we(()=>[ce("div",{onClick:je,class:"w-full h-full flex flex-col items-center justify-center cursor-pointer"},[ce("div",{style:Pn({background:Fe()}),class:"w-12 h-12 rounded-full text-2xl text-white flex items-center justify-center"}," + ",4)])]),_:1})],512)]),_:1},8,["style"])]),_:1}),O(he,{class:"daside hidden w-120 lg:block"},{default:we(()=>[O(ee)]),_:1})]),_:1}),O(Dn,{class:"!w-120",modelValue:te(a),"onUpdate:modelValue":H[6]||(H[6]=le=>er(a)?a.value=le:null),title:"新增导航"},{default:we(()=>[O(sn,{ref_key:"formNav",ref:w,layout:"vertical",data:te(f)},{default:we(()=>[O(it,{class:"h-8",field:"username"},{default:we(()=>[O(ze,{onBlur:on,modelValue:te(f).menu_link,"onUpdate:modelValue":H[2]||(H[2]=le=>te(f).menu_link=le),placeholder:"请输入单行链接(必填)"},null,8,["modelValue"])]),_:1}),O(it,{class:"h-8",field:"password"},{default:we(()=>[O(ze,{modelValue:te(f).menu_name,"onUpdate:modelValue":H[3]||(H[3]=le=>te(f).menu_name=le),placeholder:"请输入导航名称(必填)"},null,8,["modelValue"])]),_:1}),O(it,{class:"h-8",field:"tag"},{default:we(()=>[O(ze,{modelValue:te(f).tag,"onUpdate:modelValue":H[4]||(H[4]=le=>te(f).tag=le),placeholder:"请自定义一个标签(必填,只取前四字)"},null,8,["modelValue"])]),_:1}),O(it,{class:"h-8 form-operation-wrap"},{default:we(()=>[ce("div",Fm,[O(ze,{modelValue:te(f).menu_icon,"onUpdate:modelValue":H[5]||(H[5]=le=>te(f).menu_icon=le),placeholder:"请输入图标链接"},null,8,["modelValue"]),te(f).menu_icon?(Ee(),We("img",{key:0,class:"ml-5",width:"30",height:"30",src:te(f).menu_icon,alt:""},null,8,$m)):(Ee(),We("div",Nm))])]),_:1})]),_:1},8,["data"]),ce("div",qm,[O(Pe,{onClick:dt,variant:"text",class:"w-[49%] hover:bg-[#8a6684] hover:!text-white"},{default:we(()=>H[13]||(H[13]=[bt("取消")])),_:1,__:[13]}),H[15]||(H[15]=ce("span",{class:"text-[20px]"}," | ",-1)),O(Pe,{onClick:Be,variant:"text",class:"w-[49%] hover:bg-[#5c866a] hover:!text-white",color:"primary"},{default:we(()=>H[14]||(H[14]=[bt("确定")])),_:1,__:[14]})])]),_:1},8,["modelValue"]),O(si),O(Om,{show:te(d),options:te(i)},{default:we(()=>[ce("div",{class:"!p-0 !m-0 bg-white cursor-pointer !rounded-md shadow-md",onMouseenter:N,onMouseleave:C},[ce("div",{class:Jr(ri),onClick:H[7]||(H[7]=le=>U(1))}," 修改名称 "),ce("div",{class:Jr(ri),onClick:H[8]||(H[8]=le=>U(2))}," 修改链接 "),ce("div",{class:Jr(ri),onClick:H[9]||(H[9]=le=>U(3))}," 修改标签 "),ce("div",{class:Jr(ri),onClick:H[10]||(H[10]=le=>U(4))}," 删除导航 ")],32)]),_:1},8,["show","options"]),O(Dn,{class:"!w-120",modelValue:te(_),"onUpdate:modelValue":H[12]||(H[12]=le=>er(_)?_.value=le:null),title:"导航修改"},{default:we(()=>[ce("div",Wm,[H[16]||(H[16]=bt(" 原 ")),te(p)===1?(Ee(),We("span",zm,"导航名称:"+De(te(m).menu_name),1)):nr("",!0),te(p)===2?(Ee(),We("span",Um,"导航链接:"+De(te(m).menu_link),1)):nr("",!0),te(p)===3?(Ee(),We("span",Hm,"导航标签:"+De(te(m).tag),1)):nr("",!0)]),O(ze,{modelValue:te(v),"onUpdate:modelValue":H[11]||(H[11]=le=>er(v)?v.value=le:null),placeholder:"请输入修改内容"},null,8,["modelValue"]),ce("div",Vm,[O(Pe,{class:"w-[48%]",variant:"solid",color:"secondary",onClick:G},{default:we(()=>H[17]||(H[17]=[bt("取消")])),_:1,__:[17]}),O(Pe,{class:"w-[48%]",variant:"solid",color:"primary",onClick:ge},{default:we(()=>H[18]||(H[18]=[bt("确定")])),_:1,__:[18]})])]),_:1},8,["modelValue"])],4)}}}),Km=Fl(Gm,[["__scopeId","data-v-8fa6741d"]]);export{Km as default};