import{h as n,g as t}from"./dayjs-9ee440cb.js";var e={exports:{}};
/* nprogress, (c) 2013, 2014 rico sta. cruz - http://ricostacruz.com/nprogress
* @license mit */const r=t(e.exports=function(){var n,t,e={version:"0.2.0"},r=e.settings={minimum:.08,easing:"ease",positionusing:"",speed:200,trickle:!0,tricklerate:.02,tricklespeed:800,showspinner:!0,barselector:'[role="bar"]',spinnerselector:'[role="spinner"]',parent:"body",template:'
'};function i(n,t,e){return ne?e:n}function s(n){return 100*(-1+n)}function o(n,t,e){var i;return(i="translate3d"===r.positionusing?{transform:"translate3d("+s(n)+"%,0,0)"}:"translate"===r.positionusing?{transform:"translate("+s(n)+"%,0)"}:{"margin-left":s(n)+"%"}).transition="all "+t+"ms "+e,i}e.configure=function(n){var t,e;for(t in n)void 0!==(e=n[t])&&n.hasownproperty(t)&&(r[t]=e);return this},e.status=null,e.set=function(n){var t=e.isstarted();n=i(n,r.minimum,1),e.status=1===n?null:n;var s=e.render(!t),c=s.queryselector(r.barselector),l=r.speed,d=r.easing;return s.offsetwidth,a((function(t){""===r.positionusing&&(r.positionusing=e.getpositioningcss()),u(c,o(n,l,d)),1===n?(u(s,{transition:"none",opacity:1}),s.offsetwidth,settimeout((function(){u(s,{transition:"all "+l+"ms linear",opacity:0}),settimeout((function(){e.remove(),t()}),l)}),l)):settimeout(t,l)})),this},e.isstarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){settimeout((function(){e.status&&(e.trickle(),n())}),r.tricklespeed)};return r.trickle&&n(),this},e.done=function(n){return n||e.status?e.inc(.3+.5*math.random()).set(1):this},e.inc=function(n){var t=e.status;return t?("number"!=typeof n&&(n=(1-t)*i(math.random()*t,.1,.95)),t=i(t+n,0,.994),e.set(t)):e.start()},e.trickle=function(){return e.inc(math.random()*r.tricklerate)},n=0,t=0,e.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&e.start(),n++,t++,r.always((function(){0==--t?(n=0,e.done()):e.set((n-t)/n)})),this):this},e.render=function(n){if(e.isrendered())return document.getelementbyid("nprogress");l(document.documentelement,"nprogress-busy");var t=document.createelement("div");t.id="nprogress",t.innerhtml=r.template;var i,o=t.queryselector(r.barselector),a=n?"-100":s(e.status||0),c=document.queryselector(r.parent);return u(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),r.showspinner||(i=t.queryselector(r.spinnerselector))&&m(i),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendchild(t),t},e.remove=function(){d(document.documentelement,"nprogress-busy"),d(document.queryselector(r.parent),"nprogress-custom-parent");var n=document.getelementbyid("nprogress");n&&m(n)},e.isrendered=function(){return!!document.getelementbyid("nprogress")},e.getpositioningcss=function(){var n=document.body.style,t="webkittransform"in n?"webkit":"moztransform"in n?"moz":"mstransform"in n?"ms":"otransform"in n?"o":"";return t+"perspective"in n?"translate3d":t+"transform"in n?"translate":"margin"};var a=function(){var n=[];function t(){var e=n.shift();e&&e(t)}return function(e){n.push(e),1==n.length&&t()}}(),u=function(){var n=["webkit","o","moz","ms"],t={};function e(n){return n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(n,t){return t.touppercase()}))}function r(t){var e=document.body.style;if(t in e)return t;for(var r,i=n.length,s=t.charat(0).touppercase()+t.slice(1);i--;)if((r=n[i]+s)in e)return r;return t}function i(n){return n=e(n),t[n]||(t[n]=r(n))}function s(n,t,e){t=i(t),n.style[t]=e}return function(n,t){var e,r,i=arguments;if(2==i.length)for(e in t)void 0!==(r=t[e])&&t.hasownproperty(e)&&s(n,e,r);else s(n,i[1],i[2])}}();function c(n,t){return("string"==typeof n?n:f(n)).indexof(" "+t+" ")>=0}function l(n,t){var e=f(n),r=e+t;c(e,t)||(n.classname=r.substring(1))}function d(n,t){var e,r=f(n);c(n,t)&&(e=r.replace(" "+t+" "," "),n.classname=e.substring(1,e.length-1))}function f(n){return(" "+(n.classname||"")+" ").replace(/\s+/gi," ")}function m(n){n&&n.parentnode&&n.parentnode.removechild(n)}return e}());export{r as n};